[Ada] Ada2020: Reduction expressions
[official-gcc.git] / gcc / ada / sinfo.ads
blobc453c281f52256a9151a38a91f0d1f717ec1a684
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S I N F O --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2018, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
17 -- --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
21 -- --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
26 -- --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
29 -- --
30 ------------------------------------------------------------------------------
32 -- This package defines the structure of the abstract syntax tree. The Tree
33 -- package provides a basic tree structure. Sinfo describes how this structure
34 -- is used to represent the syntax of an Ada program.
36 -- The grammar in the RM is followed very closely in the tree design, and is
37 -- repeated as part of this source file.
39 -- The tree contains not only the full syntactic representation of the
40 -- program, but also the results of semantic analysis. In particular, the
41 -- nodes for defining identifiers, defining character literals, and defining
42 -- operator symbols, collectively referred to as entities, represent what
43 -- would normally be regarded as the symbol table information. In addition a
44 -- number of the tree nodes contain semantic information.
46 -- WARNING: Several files are automatically generated from this package.
47 -- See below for details.
49 with Namet; use Namet;
50 with Types; use Types;
51 with Uintp; use Uintp;
52 with Urealp; use Urealp;
54 package Sinfo is
56 ---------------------------------
57 -- Making Changes to This File --
58 ---------------------------------
60 -- If changes are made to this file, a number of related steps must be
61 -- carried out to ensure consistency. First, if a field access function is
62 -- added, it appears in these places:
64 -- In sinfo.ads:
65 -- The documentation associated with the field (if semantic)
66 -- The documentation associated with the node
67 -- The spec of the access function
68 -- The spec of the set procedure
69 -- The entries in Is_Syntactic_Field
70 -- The pragma Inline for the access function
71 -- The pragma Inline for the set procedure
72 -- In sinfo.adb:
73 -- The body of the access function
74 -- The body of the set procedure
76 -- The field chosen must be consistent in all places, and, for a node that
77 -- is a subexpression, must not overlap any of the standard expression
78 -- fields.
80 -- In addition, if any of the standard expression fields is changed, then
81 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
82 -- must be updated appropriately, since it special cases expression fields.
84 -- If a new tree node is added, then the following changes are made:
86 -- Add it to the documentation in the appropriate place
87 -- Add its fields to this documentation section
88 -- Define it in the appropriate classification in Node_Kind
89 -- Add an entry in Is_Syntactic_Field
90 -- In the body (sinfo), add entries to the access functions for all
91 -- its fields (except standard expression fields) to include the new
92 -- node in the checks.
93 -- Add an appropriate section to the case statement in sprint.adb
94 -- Add an appropriate section to the case statement in sem.adb
95 -- Add an appropriate section to the case statement in exp_util.adb
96 -- (Insert_Actions procedure)
97 -- For a subexpression, add an appropriate section to the case
98 -- statement in sem_eval.adb
99 -- For a subexpression, add an appropriate section to the case
100 -- statement in sem_res.adb
102 -- All back ends must be made aware of the new node kind.
104 -- Finally, four utility programs must be run:
106 -- (Optional.) Run CSinfo to check that you have made the changes
107 -- consistently. It checks most of the rules given above. This utility
108 -- reads sinfo.ads and sinfo.adb and generates a report to standard
109 -- output. This step is optional because XSinfo runs CSinfo.
111 -- Run XSinfo to create sinfo.h, the corresponding C header. This
112 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
113 -- not need to read sinfo.adb, since the contents of the body are
114 -- algorithmically determinable from the spec.
116 -- Run XTreeprs to create treeprs.ads, an updated version of the module
117 -- that is used to drive the tree print routine. This utility reads (but
118 -- does not modify) treeprs.adt, the template that provides the basic
119 -- structure of the file, and then fills in the data from the comments
120 -- in sinfo.ads.
122 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
123 -- spec of the Nmake package which contains functions for constructing
124 -- nodes.
126 -- The above steps are done automatically by the build scripts when you do
127 -- a full bootstrap.
129 -- Note: sometime we could write a utility that actually generated the body
130 -- of sinfo from the spec instead of simply checking it, since, as noted
131 -- above, the contents of the body can be determined from the spec.
133 --------------------------------
134 -- Implicit Nodes in the Tree --
135 --------------------------------
137 -- Generally the structure of the tree very closely follows the grammar as
138 -- defined in the RM. However, certain nodes are omitted to save space and
139 -- simplify semantic processing. Two general classes of such omitted nodes
140 -- are as follows:
142 -- If the only possibilities for a non-terminal are one or more other
143 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
144 -- corresponding node is omitted from the tree, and the target construct
145 -- appears directly. For example, a real type definition is either
146 -- floating point definition or a fixed point definition. No explicit node
147 -- appears for real type definition. Instead either the floating point
148 -- definition or fixed point definition appears directly.
150 -- If a non-terminal corresponds to a list of some other non-terminal
151 -- (possibly with separating punctuation), then usually it is omitted from
152 -- the tree, and a list of components appears instead. For example,
153 -- sequence of statements does not appear explicitly in the tree. Instead
154 -- a list of statements appears directly.
156 -- Some additional cases of omitted nodes occur and are documented
157 -- individually. In particular, many nodes are omitted in the tree
158 -- generated for an expression.
160 -------------------------------------------
161 -- Handling of Defining Identifier Lists --
162 -------------------------------------------
164 -- In several declarative forms in the syntax, lists of defining
165 -- identifiers appear (object declarations, component declarations, number
166 -- declarations etc.)
168 -- The semantics of such statements are equivalent to a series of identical
169 -- declarations of single defining identifiers (except that conformance
170 -- checks require the same grouping of identifiers in the parameter case).
172 -- To simplify semantic processing, the parser breaks down such multiple
173 -- declaration cases into sequences of single declarations, duplicating
174 -- type and initialization information as required. The flags More_Ids and
175 -- Prev_Ids are used to record the original form of the source in the case
176 -- where the original source used a list of names, More_Ids being set on
177 -- all but the last name and Prev_Ids being set on all but the first name.
178 -- These flags are used to reconstruct the original source (e.g. in the
179 -- Sprint package), and also are included in the conformance checks, but
180 -- otherwise have no semantic significance.
182 -- Note: the reason that we use More_Ids and Prev_Ids rather than
183 -- First_Name and Last_Name flags is so that the flags are off in the
184 -- normal one identifier case, which minimizes tree print output.
186 -----------------------
187 -- Use of Node Lists --
188 -----------------------
190 -- With a few exceptions, if a construction of the form {non-terminal}
191 -- appears in the tree, lists are used in the corresponding tree node (see
192 -- package Nlists for handling of node lists). In this case a field of the
193 -- parent node points to a list of nodes for the non-terminal. The field
194 -- name for such fields has a plural name which always ends in "s". For
195 -- example, a case statement has a field Alternatives pointing to list of
196 -- case statement alternative nodes.
198 -- Only fields pointing to lists have names ending in "s", so generally the
199 -- structure is strongly typed, fields not ending in s point to single
200 -- nodes, and fields ending in s point to lists.
202 -- The following example shows how a traversal of a list is written. We
203 -- suppose here that Stmt points to a N_Case_Statement node which has a
204 -- list field called Alternatives:
206 -- Alt := First (Alternatives (Stmt));
207 -- while Present (Alt) loop
208 -- ..
209 -- -- processing for case statement alternative Alt
210 -- ..
211 -- Alt := Next (Alt);
212 -- end loop;
214 -- The Present function tests for Empty, which in this case signals the end
215 -- of the list. First returns Empty immediately if the list is empty.
216 -- Present is defined in Atree; First and Next are defined in Nlists.
218 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
219 -- contexts, which is handled as described in the previous section, and
220 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
221 -- using the First_Name and Last_Name flags, as further detailed in the
222 -- description of the N_With_Clause node.
224 -------------
225 -- Pragmas --
226 -------------
228 -- Pragmas can appear in many different context, but are not included in
229 -- the grammar. Still they must appear in the tree, so they can be properly
230 -- processed.
232 -- Two approaches are used. In some cases, an extra field is defined in an
233 -- appropriate node that contains a list of pragmas appearing in the
234 -- expected context. For example pragmas can appear before an
235 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
236 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
238 -- The other approach is to simply allow pragmas to appear in syntactic
239 -- lists where the grammar (of course) does not include the possibility.
240 -- For example, the Variants field of an N_Variant_Part node points to a
241 -- list that can contain both N_Pragma and N_Variant nodes.
243 -- To make processing easier in the latter case, the Nlists package
244 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
245 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
246 -- ignoring all pragmas.
248 -- In the case of the variants list, we can either write:
250 -- Variant := First (Variants (N));
251 -- while Present (Variant) loop
252 -- ...
253 -- Variant := Next (Variant);
254 -- end loop;
256 -- or
258 -- Variant := First_Non_Pragma (Variants (N));
259 -- while Present (Variant) loop
260 -- ...
261 -- Variant := Next_Non_Pragma (Variant);
262 -- end loop;
264 -- In the first form of the loop, Variant can either be an N_Pragma or an
265 -- N_Variant node. In the second form, Variant can only be N_Variant since
266 -- all pragmas are skipped.
268 ---------------------
269 -- Optional Fields --
270 ---------------------
272 -- Fields which correspond to a section of the syntax enclosed in square
273 -- brackets are generally omitted (and the corresponding field set to Empty
274 -- for a node, or No_List for a list). The documentation of such fields
275 -- notes these cases. One exception to this rule occurs in the case of
276 -- possibly empty statement sequences (such as the sequence of statements
277 -- in an entry call alternative). Such cases appear in the syntax rules as
278 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
279 -- statement sequences always contain an empty list (not No_List) if no
280 -- statements are present.
282 -- Note: the utility program that constructs the body and spec of the Nmake
283 -- package relies on the format of the comments to determine if a field
284 -- should have a default value in the corresponding make routine. The rule
285 -- is that if the first line of the description of the field contains the
286 -- string "(set to xxx if", then a default value of xxx is provided for
287 -- this field in the corresponding Make_yyy routine.
289 -----------------------------------
290 -- Note on Body/Spec Terminology --
291 -----------------------------------
293 -- In informal discussions about Ada, it is customary to refer to package
294 -- and subprogram specs and bodies. However, this is not technically
295 -- correct, what is normally referred to as a spec or specification is in
296 -- fact a package declaration or subprogram declaration. We are careful in
297 -- GNAT to use the correct terminology and in particular, the full word
298 -- specification is never used as an incorrect substitute for declaration.
299 -- The structure and terminology used in the tree also reflects the grammar
300 -- and thus uses declaration and specification in the technically correct
301 -- manner.
303 -- However, there are contexts in which the informal terminology is useful.
304 -- We have the word "body" to refer to the Interp_Etype declared by the
305 -- declaration of a unit body, and in some contexts we need similar term to
306 -- refer to the entity declared by the package or subprogram declaration,
307 -- and simply using declaration can be confusing since the body also has a
308 -- declaration.
310 -- An example of such a context is the link between the package body and
311 -- its declaration. With_Declaration is confusing, since the package body
312 -- itself is a declaration.
314 -- To deal with this problem, we reserve the informal term Spec, i.e. the
315 -- popular abbreviation used in this context, to refer to the entity
316 -- declared by the package or subprogram declaration. So in the above
317 -- example case, the field in the body is called With_Spec.
319 -- Another important context for the use of the word Spec is in error
320 -- messages, where a hyper-correct use of declaration would be confusing to
321 -- a typical Ada programmer, and even for an expert programmer can cause
322 -- confusion since the body has a declaration as well.
324 -- So, to summarize:
326 -- Declaration always refers to the syntactic entity that is called
327 -- a declaration. In particular, subprogram declaration
328 -- and package declaration are used to describe the
329 -- syntactic entity that includes the semicolon.
331 -- Specification always refers to the syntactic entity that is called
332 -- a specification. In particular, the terms procedure
333 -- specification, function specification, package
334 -- specification, subprogram specification always refer
335 -- to the syntactic entity that has no semicolon.
337 -- Spec is an informal term, used to refer to the entity
338 -- that is declared by a task declaration, protected
339 -- declaration, generic declaration, subprogram
340 -- declaration or package declaration.
342 -- This convention is followed throughout the GNAT documentation
343 -- both internal and external, and in all error message text.
345 ------------------------
346 -- Internal Use Nodes --
347 ------------------------
349 -- These are Node_Kind settings used in the internal implementation which
350 -- are not logically part of the specification.
352 -- N_Unused_At_Start
353 -- Completely unused entry at the start of the enumeration type. This
354 -- is inserted so that no legitimate value is zero, which helps to get
355 -- better debugging behavior, since zero is a likely uninitialized value).
357 -- N_Unused_At_End
358 -- Completely unused entry at the end of the enumeration type. This is
359 -- handy so that arrays with Node_Kind as the index type have an extra
360 -- entry at the end (see for example the use of the Pchar_Pos_Array in
361 -- Treepr, where the extra entry provides the limit value when dealing with
362 -- the last used entry in the array).
364 -----------------------------------------
365 -- Note on the settings of Sloc fields --
366 -----------------------------------------
368 -- The Sloc field of nodes that come from the source is set by the parser.
369 -- For internal nodes, and nodes generated during expansion the Sloc is
370 -- usually set in the call to the constructor for the node. In general the
371 -- Sloc value chosen for an internal node is the Sloc of the source node
372 -- whose processing is responsible for the expansion. For example, the Sloc
373 -- of an inherited primitive operation is the Sloc of the corresponding
374 -- derived type declaration.
376 -- For the nodes of a generic instantiation, the Sloc value is encoded to
377 -- represent both the original Sloc in the generic unit, and the Sloc of
378 -- the instantiation itself. See Sinput.ads for details.
380 -- Subprogram instances create two callable entities: one is the visible
381 -- subprogram instance, and the other is an anonymous subprogram nested
382 -- within a wrapper package that contains the renamings for the actuals.
383 -- Both of these entities have the Sloc of the defining entity in the
384 -- instantiation node. This simplifies some ASIS queries.
386 -----------------------
387 -- Field Definitions --
388 -----------------------
390 -- In the following node definitions, all fields, both syntactic and
391 -- semantic, are documented. The one exception is in the case of entities
392 -- (defining identifiers, character literals, and operator symbols), where
393 -- the usage of the fields depends on the entity kind. Entity fields are
394 -- fully documented in the separate package Einfo.
396 -- In the node definitions, three common sets of fields are abbreviated to
397 -- save both space in the documentation, and also space in the string
398 -- (defined in Tree_Print_Strings) used to print trees. The following
399 -- abbreviations are used:
401 -- Note: the utility program that creates the Treeprs spec (in the file
402 -- xtreeprs.adb) knows about the special fields here, so it must be
403 -- modified if any change is made to these fields.
405 -- "plus fields for binary operator"
406 -- Chars (Name1) Name_Id for the operator
407 -- Left_Opnd (Node2) left operand expression
408 -- Right_Opnd (Node3) right operand expression
409 -- Entity (Node4-Sem) defining entity for operator
410 -- Associated_Node (Node4-Sem) for generic processing
411 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
412 -- Has_Private_View (Flag11-Sem) set in generic units.
414 -- "plus fields for unary operator"
415 -- Chars (Name1) Name_Id for the operator
416 -- Right_Opnd (Node3) right operand expression
417 -- Entity (Node4-Sem) defining entity for operator
418 -- Associated_Node (Node4-Sem) for generic processing
419 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
420 -- Has_Private_View (Flag11-Sem) set in generic units.
422 -- "plus fields for expression"
423 -- Paren_Count number of parentheses levels
424 -- Etype (Node5-Sem) type of the expression
425 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
426 -- Is_Static_Expression (Flag6-Sem) set for static expression
427 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
428 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
429 -- Do_Range_Check (Flag9-Sem) set if a range check needed
430 -- Has_Dynamic_Length_Check (Flag10-Sem) set if length check inserted
431 -- Has_Dynamic_Range_Check (Flag12-Sem) set if range check inserted
432 -- Assignment_OK (Flag15-Sem) set if modification is OK
433 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
435 -- Note: see under (EXPRESSION) for further details on the use of
436 -- the Paren_Count field to record the number of parentheses levels.
438 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
439 -- The actual definition of this type is given later (the reason for this
440 -- is that we want the descriptions ordered by logical chapter in the RM,
441 -- but the type definition is reordered to facilitate the definition of
442 -- some subtype ranges. The individual descriptions of the nodes show how
443 -- the various fields are used in each node kind, as well as providing
444 -- logical names for the fields. Functions and procedures are provided for
445 -- accessing and setting these fields using these logical names.
447 -----------------------
448 -- Gigi Restrictions --
449 -----------------------
451 -- The tree passed to Gigi is more restricted than the general tree form.
452 -- For example, as a result of expansion, most of the tasking nodes can
453 -- never appear. For each node to which either a complete or partial
454 -- restriction applies, a note entitled "Gigi restriction" appears which
455 -- documents the restriction.
457 -- Note that most of these restrictions apply only to trees generated when
458 -- code is being generated, since they involved expander actions that
459 -- destroy the tree.
461 ---------------
462 -- ASIS Mode --
463 ---------------
465 -- When a file is compiled in ASIS mode (-gnatct), expansion is skipped,
466 -- and the analysis must generate a tree in a form that meets all ASIS
467 -- requirements.
469 -- ASIS must be able to recover the original tree that corresponds to the
470 -- source. It relies heavily on Original_Node for this purpose, which as
471 -- described in Atree, records the history when a node is rewritten. ASIS
472 -- uses Original_Node to recover the original node before the Rewrite.
474 -- At least in ASIS mode (not really important in non-ASIS mode), when
475 -- N1 is rewritten as N2:
477 -- The subtree rooted by the original node N1 should be fully decorated,
478 -- i.e. all semantic fields noted in sinfo.ads should be set properly
479 -- and any referenced entities should be complete (with exceptions for
480 -- representation information, noted below).
482 -- For all the direct descendants of N1 (original node) their Parent
483 -- links should point not to N1, but to N2 (rewriting node).
485 -- The Parent links of rewritten nodes (N1 in this example) are set in
486 -- some cases (to point to the rewritten parent), but in other cases
487 -- they are set to Empty. This needs sorting out ??? It would be much
488 -- cleaner if they could always be set in the original node ???
490 -- There are a few cases when ASIS has to use not the original, but the
491 -- rewritten tree structures. This happens when because of some important
492 -- technical reasons it is impossible or very hard to have the original
493 -- structure properly decorated by semantic information, and the rewritten
494 -- structure fully reproduces the original source. Below is the (incomplete
495 -- for the moment???) list of such exceptions:
497 -- Generic specifications and generic bodies
498 -- Function calls that use prefixed notation (Operand.Operation [(...)])
500 -- Representation Information
502 -- For the purposes of the data description annex, the representation
503 -- information for source declared entities must be complete in the
504 -- ASIS tree.
506 -- This requires that the front end call the back end (gigi/gcc) in
507 -- a special "back annotate only" mode to obtain information on layout
508 -- from the back end.
510 -- For the purposes of this special "back annotate only" mode, the
511 -- requirements that would normally need to be met to generate code
512 -- are relaxed as follows:
514 -- Anonymous types need not have full representation information (e.g.
515 -- sizes need not be set for types where the front end would normally
516 -- set the sizes), since anonymous types can be ignored in this mode.
518 -- In this mode, gigi will see at least fragments of a fully annotated
519 -- unexpanded tree. This means that it will encounter nodes it does
520 -- not normally handle (such as stubs, task bodies etc). It should
521 -- simply ignore these nodes, since they are not relevant to the task
522 -- of back annotating representation information.
524 -- Some other ASIS-specific issues are covered in specific comments in
525 -- sections for particular nodes or flags.
527 ----------------
528 -- Ghost Mode --
529 ----------------
531 -- The SPARK RM 6.9 defines two classes of constructs - Ghost entities and
532 -- Ghost statements. The intent of the feature is to treat Ghost constructs
533 -- as non-existent when Ghost assertion policy Ignore is in effect.
535 -- The corresponding nodes which map to Ghost constructs are:
537 -- Ghost entities
538 -- Declaration nodes
539 -- N_Package_Body
540 -- N_Subprogram_Body
542 -- Ghost statements
543 -- N_Assignment_Statement
544 -- N_Procedure_Call_Statement
545 -- N_Pragma
547 -- In addition, the compiler treats instantiations as Ghost entities
549 -- To achieve the removal of ignored Ghost constructs, the compiler relies
550 -- on global variable Ghost_Mode and a mechanism called "Ghost regions".
551 -- The values of the global variable are as follows:
553 -- 1. Check - All static semantics as defined in SPARK RM 6.9 are in
554 -- effect. The Ghost region has mode Check.
556 -- 2. Ignore - Same as Check, ignored Ghost code is not present in ALI
557 -- files, object files, and the final executable. The Ghost region
558 -- has mode Ignore.
560 -- 3. None - No Ghost region is in effect
562 -- A Ghost region is a compiler operating mode, similar to Check_Syntax,
563 -- however a region is much more finely grained and depends on the policy
564 -- in effect. The region starts prior to the analysis of a Ghost construct
565 -- and ends immediately after its expansion. The region is established as
566 -- follows:
568 -- 1. Declarations - Prior to analysis, if the declaration is subject to
569 -- pragma Ghost.
571 -- 2. Renaming declarations - Same as 1) or when the renamed entity is
572 -- Ghost.
574 -- 3. Completing declarations - Same as 1) or when the declaration is
575 -- partially analyzed and the declaration completes a Ghost entity.
577 -- 4. N_Package_Body, N_Subprogram_Body - Same as 1) or when the body is
578 -- partially analyzed and completes a Ghost entity.
580 -- 5. N_Assignment_Statement - After the left hand side is analyzed and
581 -- references a Ghost entity.
583 -- 6. N_Procedure_Call_Statement - After the name is analyzed and denotes
584 -- a Ghost procedure.
586 -- 7. N_Pragma - During analysis, when the related entity is Ghost or the
587 -- pragma encloses a Ghost entity.
589 -- 8. Instantiations - Save as 1) or when the instantiation is partially
590 -- analyzed and the generic template is Ghost.
592 -- Routines Mark_And_Set_Ghost_xxx and Set_Ghost_Mode install a new Ghost
593 -- region and routine Restore_Ghost_Mode ends a Ghost region. A region may
594 -- be reinstalled similarly to scopes for decoupled expansion such as the
595 -- generation of dispatch tables or the creation of a predicate function.
597 -- If the mode of a Ghost region is Ignore, any newly created nodes as well
598 -- as source entities are marked as ignored Ghost. In additon, the marking
599 -- process signals all enclosing scopes that an ignored Ghost node resides
600 -- within. The compilation unit where the node resides is also added to an
601 -- auxiliary table for post processing.
603 -- After the analysis and expansion of all compilation units takes place
604 -- as well as the instantiation of all inlined [generic] bodies, the GNAT
605 -- driver initiates a separate pass which removes all ignored Ghost nodes
606 -- from all units stored in the auxiliary table.
608 --------------------
609 -- GNATprove Mode --
610 --------------------
612 -- When a file is compiled in GNATprove mode (-gnatd.F), a very light
613 -- expansion is performed and the analysis must generate a tree in a
614 -- form that meets additional requirements.
616 -- This light expansion does two transformations of the tree that cannot
617 -- be postponed till after semantic analysis:
619 -- 1. Replace object renamings by renamed object. This requires the
620 -- introduction of temporaries at the point of the renaming, which
621 -- must be properly analyzed.
623 -- 2. Fully qualify entity names. This is needed to generate suitable
624 -- local effects and call-graphs in ALI files, with the completely
625 -- qualified names (in particular the suffix to distinguish homonyms).
627 -- The tree after this light expansion should be fully analyzed
628 -- semantically, which sometimes requires the insertion of semantic
629 -- pre-analysis, for example for subprogram contracts and pragma
630 -- check/assert. In particular, all expression must have their proper type,
631 -- and semantic links should be set between tree nodes (partial to full
632 -- view, etc.) Some kinds of nodes should be either absent, or can be
633 -- ignored by the formal verification backend:
635 -- N_Object_Renaming_Declaration: can be ignored safely
636 -- N_Expression_Function: absent (rewritten)
637 -- N_Expression_With_Actions: absent (not generated)
639 -- SPARK cross-references are generated from the regular cross-references
640 -- (used for browsing and code understanding) and additional references
641 -- collected during semantic analysis, in particular on all dereferences.
642 -- These SPARK cross-references are output in a separate section of ALI
643 -- files, as described in spark_xrefs.adb. They are the basis for the
644 -- computation of data dependences in GNATprove. This implies that all
645 -- cross-references should be generated in this mode, even those that would
646 -- not make sense from a user point-of-view, and that cross-references that
647 -- do not lead to data dependences for subprograms can be safely ignored.
649 -- GNATprove relies on the following front end behaviors:
651 -- 1. The first declarations in the list of visible declarations of
652 -- a package declaration for a generic instance, up to the first
653 -- declaration which comes from source, should correspond to
654 -- the "mappings nodes" between formal and actual generic parameters.
656 -- 2. In addition pragma Debug statements are removed from the tree
657 -- (rewritten to NULL stmt), since they should be ignored in formal
658 -- verification.
660 -- 3. An error is also issued for missing subunits, similar to the
661 -- warning issued when generating code, to avoid formal verification
662 -- of a partial unit.
664 -- 4. Unconstrained types are not replaced by constrained types whose
665 -- bounds are generated from an expression: Expand_Subtype_From_Expr
666 -- should be a no-op.
668 -- 5. Errors (instead of warnings) are issued on compile-time-known
669 -- constraint errors even though such cases do not correspond to
670 -- illegalities in the Ada RM (this is simply another case where
671 -- GNATprove implements a subset of the full language).
673 -- However, there are a few exceptions to this rule for cases where
674 -- we want to allow the GNATprove analysis to proceed (e.g. range
675 -- checks on empty ranges, which typically appear in deactivated
676 -- code in a particular configuration).
678 -- 6. Subtypes should match in the AST, even after a generic is
679 -- instantiated. In particular, GNATprove relies on the fact that,
680 -- on a selected component, the type of the selected component is
681 -- the type of the corresponding component in the prefix of the
682 -- selected component.
684 -- Note that, in some cases, we know that this rule is broken by the
685 -- frontend. In particular, if the selected component is a packed
686 -- array depending on a discriminant of a unconstrained formal object
687 -- parameter of a generic.
689 ----------------
690 -- SPARK Mode --
691 ----------------
693 -- The SPARK RM 1.6.5 defines a mode of operation called "SPARK mode" which
694 -- starts a scope where the SPARK language semantics are either On, Off, or
695 -- Auto, where Auto leaves the choice to the tools. A SPARK mode may be
696 -- specified by means of an aspect or a pragma.
698 -- The following entities may be subject to a SPARK mode. Entities marked
699 -- with * may possess two differente SPARK modes.
701 -- E_Entry
702 -- E_Entry_Family
703 -- E_Function
704 -- E_Generic_Function
705 -- E_Generic_Package *
706 -- E_Generic_Procedure
707 -- E_Operator
708 -- E_Package *
709 -- E_Package_Body *
710 -- E_Procedure
711 -- E_Protected_Body
712 -- E_Protected_Subtype
713 -- E_Protected_Type *
714 -- E_Subprogram_Body
715 -- E_Task_Body
716 -- E_Task_Subtype
717 -- E_Task_Type *
718 -- E_Variable
720 -- In order to manage SPARK scopes, the compiler relies on global variables
721 -- SPARK_Mode and SPARK_Mode_Pragma and a mechanism called "SPARK regions."
722 -- Routines Install_SPARK_Mode and Set_SPARK_Mode create a new SPARK region
723 -- and routine Restore_SPARK_Mode ends a SPARK region. A region may be
724 -- reinstalled similarly to scopes.
726 -----------------------
727 -- Check Flag Fields --
728 -----------------------
730 -- The following flag fields appear in expression nodes:
732 -- Do_Division_Check
733 -- Do_Overflow_Check
734 -- Do_Range_Check
736 -- These three flags are always set by the front end during semantic
737 -- analysis, on expression nodes that may trigger the corresponding
738 -- check. The front end then inserts or not the check during expansion. In
739 -- particular, these flags should also be correctly set in ASIS mode and
740 -- GNATprove mode. As a special case, the front end does not insert a
741 -- Do_Division_Check flag on float exponentiation expressions, for the case
742 -- where the value is 0.0 and the exponent is negative, although this case
743 -- does lead to a division check failure.
745 -- Note: the expander always takes care of the Do_Range check case,
746 -- so this flag will never be set in the expanded tree passed to the
747 -- back end code generator.
749 -- Note that this accounts for all nodes that trigger the corresponding
750 -- checks, except for range checks on subtype_indications, which may be
751 -- required to check that a range_constraint is compatible with the given
752 -- subtype (RM 3.2.2(11)).
754 -- The following flag fields appear in various nodes:
756 -- Do_Accessibility_Check
757 -- Do_Discriminant_Check
758 -- Do_Length_Check
759 -- Do_Storage_Check
760 -- Do_Tag_Check
762 -- These flags are used in some specific cases by the front end, either
763 -- during semantic analysis or during expansion, and cannot be expected
764 -- to be set on all nodes that trigger the corresponding check.
766 ------------------------
767 -- Common Flag Fields --
768 ------------------------
770 -- The following flag fields appear in all nodes:
772 -- Analyzed
773 -- This flag is used to indicate that a node (and all its children) have
774 -- been analyzed. It is used to avoid reanalysis of a node that has
775 -- already been analyzed, both for efficiency and functional correctness
776 -- reasons.
778 -- Comes_From_Source
779 -- This flag is set if the node comes directly from an explicit construct
780 -- in the source. It is normally on for any nodes built by the scanner or
781 -- parser from the source program, with the exception that in a few cases
782 -- the parser adds nodes to normalize the representation (in particular
783 -- a null statement is added to a package body if there is no begin/end
784 -- initialization section.
786 -- Most nodes inserted by the analyzer or expander are not considered
787 -- as coming from source, so the flag is off for such nodes. In a few
788 -- cases, the expander constructs nodes closely equivalent to nodes
789 -- from the source program (e.g. the allocator built for build-in-place
790 -- case), and the Comes_From_Source flag is deliberately set.
792 -- Error_Posted
793 -- This flag is used to avoid multiple error messages being posted on or
794 -- referring to the same node. This flag is set if an error message
795 -- refers to a node or is posted on its source location, and has the
796 -- effect of inhibiting further messages involving this same node.
798 -----------------------
799 -- Modify_Tree_For_C --
800 -----------------------
802 -- If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
803 -- in ways that help match the semantics better with C, easing the task of
804 -- interfacing to C code generators (other than GCC, where the work is done
805 -- in gigi, and there is no point in changing that), and also making life
806 -- easier for Cprint in generating C source code.
808 -- The current modifications implemented are as follows:
810 -- N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
811 -- are eliminated from the tree (since these operations do not exist in
812 -- C), and the operations are rewritten in terms of logical shifts and
813 -- other logical operations that do exist in C. See Exp_Ch4 expansion
814 -- routines for these operators for details of the transformations made.
816 -- The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
817 -- less than the word size (since other values are not well-defined in
818 -- C). This is done using an explicit test if necessary.
820 -- Min and Max attributes are expanded into equivalent if expressions,
821 -- dealing properly with side effect issues.
823 -- Mod for signed integer types is expanded into equivalent expressions
824 -- using Rem (which is % in C) and other C-available operators.
826 -- Functions returning bounded arrays are transformed into procedures
827 -- with an extra out parameter, and the calls updated accordingly.
829 -- Aggregates are only kept unexpanded for object declarations, otherwise
830 -- they are systematically expanded into loops (for arrays) and
831 -- individual assignments (for records).
833 -- Unconstrained array types are handled by means of fat pointers.
835 -- Postconditions are inlined by the frontend since their body may have
836 -- references to itypes defined in the enclosing subprogram.
838 ------------------------------------
839 -- Description of Semantic Fields --
840 ------------------------------------
842 -- The meaning of the syntactic fields is generally clear from their names
843 -- without any further description, since the names are chosen to
844 -- correspond very closely to the syntax in the reference manual. This
845 -- section describes the usage of the semantic fields, which are used to
846 -- contain additional information determined during semantic analysis.
848 -- Accept_Handler_Records (List5-Sem)
849 -- This field is present only in an N_Accept_Alternative node. It is used
850 -- to temporarily hold the exception handler records from an accept
851 -- statement in a selective accept. These exception handlers will
852 -- eventually be placed in the Handler_Records list of the procedure
853 -- built for this accept (see Expand_N_Selective_Accept procedure in
854 -- Exp_Ch9 for further details).
856 -- Access_Types_To_Process (Elist2-Sem)
857 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
858 -- Contains the list of access types which may require specific treatment
859 -- when the nature of the type completion is completely known. An example
860 -- of such treatment is the generation of the associated_final_chain.
862 -- Actions (List1-Sem)
863 -- This field contains a sequence of actions that are associated with the
864 -- node holding the field. See the individual node types for details of
865 -- how this field is used, as well as the description of the specific use
866 -- for a particular node type.
868 -- Activation_Chain_Entity (Node3-Sem)
869 -- This is used in tree nodes representing task activators (blocks,
870 -- subprogram bodies, package declarations, and task bodies). It is
871 -- initially Empty, and then gets set to point to the entity for the
872 -- declared Activation_Chain variable when the first task is declared.
873 -- When tasks are declared in the corresponding declarative region this
874 -- entity is located by name (its name is always _Chain) and the declared
875 -- tasks are added to the chain. Note that N_Extended_Return_Statement
876 -- does not have this attribute, although it does have an activation
877 -- chain. This chain is used to store the tasks temporarily, and is not
878 -- used for activating them. On successful completion of the return
879 -- statement, the tasks are moved to the caller's chain, and the caller
880 -- activates them.
882 -- Acts_As_Spec (Flag4-Sem)
883 -- A flag set in the N_Subprogram_Body node for a subprogram body which
884 -- is acting as its own spec. In the case of a library-level subprogram
885 -- the flag is set as well on the parent compilation unit node.
887 -- Actual_Designated_Subtype (Node4-Sem)
888 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
889 -- needs to known the dynamic constrained subtype of the designated
890 -- object, this attribute is set to that type. This is done for
891 -- N_Free_Statements for access-to-classwide types and access to
892 -- unconstrained packed array types, and for N_Explicit_Dereference when
893 -- the designated type is an unconstrained packed array and the
894 -- dereference is the prefix of a 'Size attribute reference.
896 -- Address_Warning_Posted (Flag18-Sem)
897 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
898 -- posted a warning for the address clause regarding size or alignment
899 -- issues. Used to inhibit multiple redundant messages.
901 -- Aggregate_Bounds (Node3-Sem)
902 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
903 -- known at compile time, this field points to an N_Range node with those
904 -- bounds. Otherwise Empty.
906 -- Alloc_For_BIP_Return (Flag1-Sem)
907 -- Present in N_Allocator nodes. True if the allocator is one of those
908 -- generated for a build-in-place return statement.
910 -- All_Others (Flag11-Sem)
911 -- Present in an N_Others_Choice node. This flag is set for an others
912 -- exception where all exceptions are to be caught, even those that are
913 -- not normally handled (in particular the tasking abort signal). This
914 -- is used for translation of the at end handler into a normal exception
915 -- handler.
917 -- Aspect_Rep_Item (Node2-Sem)
918 -- Present in N_Aspect_Specification nodes. Points to the corresponding
919 -- pragma/attribute definition node used to process the aspect.
921 -- Assignment_OK (Flag15-Sem)
922 -- This flag is set in a subexpression node for an object, indicating
923 -- that the associated object can be modified, even if this would not
924 -- normally be permissible (either by direct assignment, or by being
925 -- passed as an out or in-out parameter). This is used by the expander
926 -- for a number of purposes, including initialization of constants and
927 -- limited type objects (such as tasks), setting discriminant fields,
928 -- setting tag values, etc. N_Object_Declaration nodes also have this
929 -- flag defined. Here it is used to indicate that an initialization
930 -- expression is valid, even where it would normally not be allowed
931 -- (e.g. where the type involved is limited). It is also used to stop
932 -- a Force_Evaluation call for an unchecked conversion, but this usage
933 -- is unclear and not documented ???
935 -- Associated_Node (Node4-Sem)
936 -- Present in nodes that can denote an entity: identifiers, character
937 -- literals, operator symbols, expanded names, operator nodes, and
938 -- attribute reference nodes (all these nodes have an Entity field).
939 -- This field is also present in N_Aggregate, N_Selected_Component, and
940 -- N_Extension_Aggregate nodes. This field is used in generic processing
941 -- to create links between the generic template and the generic copy.
942 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
943 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
944 -- the normal function of Entity is not required at the point where the
945 -- Associated_Node is set. Note also, that in generic templates, this
946 -- means that the Entity field does not necessarily point to an Entity.
947 -- Since the back end is expected to ignore generic templates, this is
948 -- harmless.
950 -- Atomic_Sync_Required (Flag14-Sem)
951 -- This flag is set on a node for which atomic synchronization is
952 -- required for the corresponding reference or modification.
954 -- At_End_Proc (Node1)
955 -- This field is present in an N_Handled_Sequence_Of_Statements node.
956 -- It contains an identifier reference for the cleanup procedure to be
957 -- called. See description of this node for further details.
959 -- Backwards_OK (Flag6-Sem)
960 -- A flag present in the N_Assignment_Statement node. It is used only
961 -- if the type being assigned is an array type, and is set if analysis
962 -- determines that it is definitely safe to do the copy backwards, i.e.
963 -- starting at the highest addressed element. This is the case if either
964 -- the operands do not overlap, or they may overlap, but if they do,
965 -- then the left operand is at a higher address than the right operand.
967 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
968 -- means that the front end could not determine that either direction is
969 -- definitely safe, and a runtime check may be required if the backend
970 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
971 -- set, it means that the front end can assure no overlap of operands.
973 -- Body_To_Inline (Node3-Sem)
974 -- Present in subprogram declarations. Denotes analyzed but unexpanded
975 -- body of subprogram, to be used when inlining calls. Present when the
976 -- subprogram has an Inline pragma and inlining is enabled. If the
977 -- declaration is completed by a renaming_as_body, and the renamed entity
978 -- is a subprogram, the Body_To_Inline is the name of that entity, which
979 -- is used directly in later calls to the original subprogram.
981 -- Body_Required (Flag13-Sem)
982 -- A flag that appears in the N_Compilation_Unit node indicating that
983 -- the corresponding unit requires a body. For the package case, this
984 -- indicates that a completion is required. In Ada 95, if the flag is not
985 -- set for the package case, then a body may not be present. In Ada 83,
986 -- if the flag is not set for the package case, then body is optional.
987 -- For a subprogram declaration, the flag is set except in the case where
988 -- a pragma Import or Interface applies, in which case no body is
989 -- permitted (in Ada 83 or Ada 95).
991 -- By_Ref (Flag5-Sem)
992 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
993 -- this flag is set when the returned expression is already allocated on
994 -- the secondary stack and thus the result is passed by reference rather
995 -- than copied another time.
997 -- Cleanup_Actions (List5-Sem)
998 -- Present in block statements created for transient blocks, contains
999 -- additional cleanup actions carried over from the transient scope.
1001 -- Check_Address_Alignment (Flag11-Sem)
1002 -- A flag present in N_Attribute_Definition clause for a 'Address
1003 -- attribute definition. This flag is set if a dynamic check should be
1004 -- generated at the freeze point for the entity to which this address
1005 -- clause applies. The reason that we need this flag is that we want to
1006 -- check for range checks being suppressed at the point where the
1007 -- attribute definition clause is given, rather than testing this at the
1008 -- freeze point.
1010 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
1011 -- Present in N_Simple_Return_Statement nodes. True if this node was
1012 -- constructed as part of the N_Extended_Return_Statement expansion.
1014 -- Compile_Time_Known_Aggregate (Flag18-Sem)
1015 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
1016 -- evaluated at compile time without raising constraint error. Such
1017 -- aggregates can be passed as is to the back end without any expansion.
1018 -- See Exp_Aggr for specific conditions under which this flag gets set.
1020 -- Componentwise_Assignment (Flag14-Sem)
1021 -- Present in N_Assignment_Statement nodes. Set for a record assignment
1022 -- where all that needs doing is to expand it into component-by-component
1023 -- assignments. This is used internally for the case of tagged types with
1024 -- rep clauses, where we need to avoid recursion (we don't want to try to
1025 -- generate a call to the primitive operation, because this is the case
1026 -- where we are compiling the primitive operation). Note that when we are
1027 -- expanding component assignments in this case, we never assign the _tag
1028 -- field, but we recursively assign components of the parent type.
1030 -- Condition_Actions (List3-Sem)
1031 -- This field appears in else-if nodes and in the iteration scheme node
1032 -- for while loops. This field is only used during semantic processing to
1033 -- temporarily hold actions inserted into the tree. In the tree passed
1034 -- to gigi, the condition actions field is always set to No_List. For
1035 -- details on how this field is used, see the routine Insert_Actions in
1036 -- package Exp_Util, and also the expansion routines for the relevant
1037 -- nodes.
1039 -- Context_Pending (Flag16-Sem)
1040 -- This field appears in Compilation_Unit nodes, to indicate that the
1041 -- context of the unit is being compiled. Used to detect circularities
1042 -- that are not otherwise detected by the loading mechanism. Such
1043 -- circularities can occur in the presence of limited and non-limited
1044 -- with_clauses that mention the same units.
1046 -- Controlling_Argument (Node1-Sem)
1047 -- This field is set in procedure and function call nodes if the call
1048 -- is a dispatching call (it is Empty for a non-dispatching call). It
1049 -- indicates the source of the call's controlling tag. For procedure
1050 -- calls, the Controlling_Argument is one of the actuals. For function
1051 -- that has a dispatching result, it is an entity in the context of the
1052 -- call that can provide a tag, or else it is the tag of the root type
1053 -- of the class. It can also specify a tag directly rather than being a
1054 -- tagged object. The latter is needed by the implementations of AI-239
1055 -- and AI-260.
1057 -- Conversion_OK (Flag14-Sem)
1058 -- A flag set on type conversion nodes to indicate that the conversion
1059 -- is to be considered as being valid, even though it is the case that
1060 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
1061 -- Fixed_Value and Integer_Value, for internal conversions done for
1062 -- fixed-point operations, and for certain conversions for calls to
1063 -- initialization procedures. If Conversion_OK is set, then Etype must be
1064 -- set (the analyzer assumes that Etype has been set). For the case of
1065 -- fixed-point operands, it also indicates that the conversion is to be
1066 -- direct conversion of the underlying integer result, with no regard to
1067 -- the small operand.
1069 -- Convert_To_Return_False (Flag13-Sem)
1070 -- Present in N_Raise_Expression nodes that appear in the body of the
1071 -- special predicateM function used to test a predicate in the context
1072 -- of a membership test, where raise expression results in returning a
1073 -- value of False rather than raising an exception.
1075 -- Corresponding_Aspect (Node3-Sem)
1076 -- Present in N_Pragma node. Used to point back to the source aspect from
1077 -- the corresponding pragma. This field is Empty for source pragmas.
1079 -- Corresponding_Body (Node5-Sem)
1080 -- This field is set in subprogram declarations, package declarations,
1081 -- entry declarations of protected types, and in generic units. It points
1082 -- to the defining entity for the corresponding body (NOT the node for
1083 -- the body itself).
1085 -- Corresponding_Formal_Spec (Node3-Sem)
1086 -- This field is set in subprogram renaming declarations, where it points
1087 -- to the defining entity for a formal subprogram in the case where the
1088 -- renaming corresponds to a generic formal subprogram association in an
1089 -- instantiation. The field is Empty if the renaming does not correspond
1090 -- to such a formal association.
1092 -- Corresponding_Generic_Association (Node5-Sem)
1093 -- This field is defined for object declarations and object renaming
1094 -- declarations. It is set for the declarations within an instance that
1095 -- map generic formals to their actuals. If set, the field points to
1096 -- a generic_association which is the original parent of the expression
1097 -- or name appearing in the declaration. This simplifies ASIS queries.
1099 -- Corresponding_Integer_Value (Uint4-Sem)
1100 -- This field is set in real literals of fixed-point types (it is not
1101 -- used for floating-point types). It contains the integer value used
1102 -- to represent the fixed-point value. It is also set on the universal
1103 -- real literals used to represent bounds of fixed-point base types
1104 -- and their first named subtypes.
1106 -- Corresponding_Spec (Node5-Sem)
1107 -- This field is set in subprogram, package, task, and protected body
1108 -- nodes, where it points to the defining entity in the corresponding
1109 -- spec. The attribute is also set in N_With_Clause nodes where it points
1110 -- to the defining entity for the with'ed spec, and in a subprogram
1111 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
1112 -- if there is no corresponding spec, as in the case of a subprogram body
1113 -- that serves as its own spec.
1115 -- In Ada 2012, Corresponding_Spec is set on expression functions that
1116 -- complete a subprogram declaration.
1118 -- Corresponding_Spec_Of_Stub (Node2-Sem)
1119 -- This field is present in subprogram, package, task, and protected body
1120 -- stubs where it points to the corresponding spec of the stub. Due to
1121 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
1123 -- Corresponding_Stub (Node3-Sem)
1124 -- This field is present in an N_Subunit node. It holds the node in
1125 -- the parent unit that is the stub declaration for the subunit. It is
1126 -- set when analysis of the stub forces loading of the proper body. If
1127 -- expansion of the proper body creates new declarative nodes, they are
1128 -- inserted at the point of the corresponding_stub.
1130 -- Dcheck_Function (Node5-Sem)
1131 -- This field is present in an N_Variant node, It references the entity
1132 -- for the discriminant checking function for the variant.
1134 -- Default_Expression (Node5-Sem)
1135 -- This field is Empty if there is no default expression. If there is a
1136 -- simple default expression (one with no side effects), then this field
1137 -- simply contains a copy of the Expression field (both point to the tree
1138 -- for the default expression). Default_Expression is used for
1139 -- conformance checking.
1141 -- Default_Storage_Pool (Node3-Sem)
1142 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
1143 -- copy of Opt.Default_Pool at the end of the compilation unit. See
1144 -- package Opt for details. This is used for inheriting the
1145 -- Default_Storage_Pool in child units.
1147 -- Discr_Check_Funcs_Built (Flag11-Sem)
1148 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
1149 -- discriminant checking functions are constructed. The purpose is to
1150 -- avoid attempting to set these functions more than once.
1152 -- Do_Accessibility_Check (Flag13-Sem)
1153 -- This flag is set on N_Parameter_Specification nodes to indicate
1154 -- that an accessibility check is required for the parameter. It is
1155 -- not yet decided who takes care of this check (TBD ???).
1157 -- Do_Discriminant_Check (Flag3-Sem)
1158 -- This flag is set on N_Selected_Component nodes to indicate that a
1159 -- discriminant check is required using the discriminant check routine
1160 -- associated with the selector. The actual check is generated by the
1161 -- expander when processing selected components. In the case of
1162 -- Unchecked_Union, the flag is also set, but no discriminant check
1163 -- routine is associated with the selector, and the expander does not
1164 -- generate a check. This flag is also present in assignment statements
1165 -- (and set if the assignment requires a discriminant check), and in type
1166 -- conversion nodes (and set if the conversion requires a check).
1168 -- Do_Division_Check (Flag13-Sem)
1169 -- This flag is set on a division operator (/ mod rem) to indicate
1170 -- that a zero divide check is required. The actual check is dealt
1171 -- with by the backend (all the front end does is to set the flag).
1173 -- Do_Length_Check (Flag4-Sem)
1174 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1175 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1176 -- is required. It is not determined who deals with this flag (???).
1178 -- Do_Overflow_Check (Flag17-Sem)
1179 -- This flag is set on an operator where an overflow check is required on
1180 -- the operation. The actual check is dealt with by the backend (all the
1181 -- front end does is to set the flag). The other cases where this flag is
1182 -- used is on a Type_Conversion node and for attribute reference nodes.
1183 -- For a type conversion, it means that the conversion is from one base
1184 -- type to another, and the value may not fit in the target base type.
1185 -- See also the description of Do_Range_Check for this case. The only
1186 -- attribute references which use this flag are Pred and Succ, where it
1187 -- means that the result should be checked for going outside the base
1188 -- range. Note that this flag is not set for modular types. This flag is
1189 -- also set on if and case expression nodes if we are operating in either
1190 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1191 -- properly process overflow checking for dependent expressions).
1193 -- Do_Range_Check (Flag9-Sem)
1194 -- This flag is set on an expression which appears in a context where a
1195 -- range check is required. The target type is clear from the context.
1196 -- The contexts in which this flag can appear are the following:
1198 -- Right side of an assignment. In this case the target type is
1199 -- taken from the left side of the assignment, which is referenced
1200 -- by the Name of the N_Assignment_Statement node.
1202 -- Subscript expressions in an indexed component. In this case the
1203 -- target type is determined from the type of the array, which is
1204 -- referenced by the Prefix of the N_Indexed_Component node.
1206 -- Argument expression for a parameter, appearing either directly in
1207 -- the Parameter_Associations list of a call or as the Expression of an
1208 -- N_Parameter_Association node that appears in this list. In either
1209 -- case, the check is against the type of the formal. Note that the
1210 -- flag is relevant only in IN and IN OUT parameters, and will be
1211 -- ignored for OUT parameters, where no check is required in the call,
1212 -- and if a check is required on the return, it is generated explicitly
1213 -- with a type conversion.
1215 -- Initialization expression for the initial value in an object
1216 -- declaration. In this case the Do_Range_Check flag is set on
1217 -- the initialization expression, and the check is against the
1218 -- range of the type of the object being declared. This includes the
1219 -- cases of expressions providing default discriminant values, and
1220 -- expressions used to initialize record components.
1222 -- The expression of a type conversion. In this case the range check is
1223 -- against the target type of the conversion. See also the use of
1224 -- Do_Overflow_Check on a type conversion. The distinction is that the
1225 -- overflow check protects against a value that is outside the range of
1226 -- the target base type, whereas a range check checks that the
1227 -- resulting value (which is a value of the base type of the target
1228 -- type), satisfies the range constraint of the target type.
1230 -- Note: when a range check is required in contexts other than those
1231 -- listed above (e.g. in a return statement), an additional type
1232 -- conversion node is introduced to represent the required check.
1234 -- A special case arises for the arguments of the Pred/Succ attributes.
1235 -- Here the range check needed is against First + 1 .. Last (Pred) or
1236 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
1237 -- these checks are what would be performed within the implicit body of
1238 -- the functions that correspond to these attributes. In these cases,
1239 -- the Do_Range check flag is set on the argument to the attribute
1240 -- function, and the back end must special case the appropriate range
1241 -- to check against.
1243 -- Do_Storage_Check (Flag17-Sem)
1244 -- This flag is set in an N_Allocator node to indicate that a storage
1245 -- check is required for the allocation, or in an N_Subprogram_Body node
1246 -- to indicate that a stack check is required in the subprogram prologue.
1247 -- The N_Allocator case is handled by the routine that expands the call
1248 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1249 -- backend, and all the semantics does is set the flag.
1251 -- Do_Tag_Check (Flag13-Sem)
1252 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1253 -- N_Procedure_Call_Statement, N_Type_Conversion,
1254 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1255 -- node to indicate that the tag check can be suppressed. It is not
1256 -- yet decided how this flag is used (TBD ???).
1258 -- Elaborate_Present (Flag4-Sem)
1259 -- This flag is set in the N_With_Clause node to indicate that pragma
1260 -- Elaborate pragma appears for the with'ed units.
1262 -- Elaborate_All_Desirable (Flag9-Sem)
1263 -- This flag is set in the N_With_Clause mode to indicate that the static
1264 -- elaboration processing has determined that an Elaborate_All pragma is
1265 -- desirable for correct elaboration for this unit.
1267 -- Elaborate_All_Present (Flag14-Sem)
1268 -- This flag is set in the N_With_Clause node to indicate that a
1269 -- pragma Elaborate_All pragma appears for the with'ed units.
1271 -- Elaborate_Desirable (Flag11-Sem)
1272 -- This flag is set in the N_With_Clause mode to indicate that the static
1273 -- elaboration processing has determined that an Elaborate pragma is
1274 -- desirable for correct elaboration for this unit.
1276 -- Else_Actions (List3-Sem)
1277 -- This field is present in if expression nodes. During code
1278 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1279 -- actions at an appropriate place in the tree to get elaborated at the
1280 -- right time. For if expressions, we have to be sure that the actions
1281 -- for the Else branch are only elaborated if the condition is False.
1282 -- The Else_Actions field is used as a temporary parking place for
1283 -- these actions. The final tree is always rewritten to eliminate the
1284 -- need for this field, so in the tree passed to Gigi, this field is
1285 -- always set to No_List.
1287 -- Enclosing_Variant (Node2-Sem)
1288 -- This field is present in the N_Variant node and identifies the Node_Id
1289 -- corresponding to the immediately enclosing variant when the variant is
1290 -- nested, and N_Empty otherwise. Set during semantic processing of the
1291 -- variant part of a record type.
1293 -- Entity (Node4-Sem)
1294 -- Appears in all direct names (identifiers, character literals, and
1295 -- operator symbols), as well as expanded names, and attributes that
1296 -- denote entities, such as 'Class. Points to entity for corresponding
1297 -- defining occurrence. Set after name resolution. For identifiers in a
1298 -- WITH list, the corresponding defining occurrence is in a separately
1299 -- compiled file, and Entity must be set by the library Load procedure.
1301 -- Note: During name resolution, the value in Entity may be temporarily
1302 -- incorrect (e.g. during overload resolution, Entity is initially set to
1303 -- the first possible correct interpretation, and then later modified if
1304 -- necessary to contain the correct value after resolution).
1306 -- Note: This field overlaps Associated_Node, which is used during
1307 -- generic processing (see Sem_Ch12 for details). Note also that in
1308 -- generic templates, this means that the Entity field does not always
1309 -- point to an Entity. Since the back end is expected to ignore generic
1310 -- templates, this is harmless.
1312 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1313 -- It is used only for stream attributes definition clauses. In this
1314 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1315 -- conceptually at the point of the clause. Thus the visibility of the
1316 -- attribute definition clause (in the sense of 8.3(23) as amended by
1317 -- AI-195) can be checked by testing the visibility of that subprogram.
1319 -- Note: Normally the Entity field of an identifier points to the entity
1320 -- for the corresponding defining identifier, and hence the Chars field
1321 -- of an identifier will match the Chars field of the entity. However,
1322 -- there is no requirement that these match, and there are obscure cases
1323 -- of generated code where they do not match.
1325 -- Note: Ada 2012 aspect specifications require additional links between
1326 -- identifiers and various attributes. These attributes can be of
1327 -- arbitrary types, and the entity field of identifiers that denote
1328 -- aspects must be used to store arbitrary expressions for later semantic
1329 -- checks. See section on aspect specifications for details.
1331 -- Entity_Or_Associated_Node (Node4-Sem)
1332 -- A synonym for both Entity and Associated_Node. Used by convention in
1333 -- the code when referencing this field in cases where it is not known
1334 -- whether the field contains an Entity or an Associated_Node.
1336 -- Etype (Node5-Sem)
1337 -- Appears in all expression nodes, all direct names, and all entities.
1338 -- Points to the entity for the related type. Set after type resolution.
1339 -- Normally this is the actual subtype of the expression. However, in
1340 -- certain contexts such as the right side of an assignment, subscripts,
1341 -- arguments to calls, returned value in a function, initial value etc.
1342 -- it is the desired target type. In the event that this is different
1343 -- from the actual type, the Do_Range_Check flag will be set if a range
1344 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1345 -- points to an essentially arbitrary choice from the possible set of
1346 -- types.
1348 -- Exception_Junk (Flag8-Sem)
1349 -- This flag is set in a various nodes appearing in a statement sequence
1350 -- to indicate that the corresponding node is an artifact of the
1351 -- generated code for exception handling, and should be ignored when
1352 -- analyzing the control flow of the relevant sequence of statements
1353 -- (e.g. to check that it does not end with a bad return statement).
1355 -- Exception_Label (Node5-Sem)
1356 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1357 -- to be used for transforming the corresponding exception into a goto,
1358 -- or contains Empty, if this exception is not to be transformed. Also
1359 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1360 -- that there may be a local raise for the handler, so that expansion
1361 -- to allow a goto is required (and this field contains the label for
1362 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1364 -- Expansion_Delayed (Flag11-Sem)
1365 -- Set on aggregates and extension aggregates that need a top-down rather
1366 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1367 -- up. For nested aggregates the expansion is delayed until the enclosing
1368 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1369 -- delay it we set this flag. This is done to avoid creating a temporary
1370 -- for each level of a nested aggregate, and also to prevent the
1371 -- premature generation of constraint checks. This is also a requirement
1372 -- if we want to generate the proper attachment to the internal????
1373 -- finalization lists (for record with controlled components). Top down
1374 -- expansion of aggregates is also used for in-place array aggregate
1375 -- assignment or initialization. When the full context is known, the
1376 -- target of the assignment or initialization is used to generate the
1377 -- left-hand side of individual assignment to each sub-component.
1379 -- Expression_Copy (Node2-Sem)
1380 -- Present in N_Pragma_Argument_Association nodes. Contains a copy of the
1381 -- original expression. This field is best used to store pragma-dependent
1382 -- modifications performed on the original expression such as replacement
1383 -- of the current type instance or substitutions of primitives.
1385 -- First_Inlined_Subprogram (Node3-Sem)
1386 -- Present in the N_Compilation_Unit node for the main program. Points
1387 -- to a chain of entities for subprograms that are to be inlined. The
1388 -- Next_Inlined_Subprogram field of these entities is used as a link
1389 -- pointer with Empty marking the end of the list. This field is Empty
1390 -- if there are no inlined subprograms or inlining is not active.
1392 -- First_Named_Actual (Node4-Sem)
1393 -- Present in procedure call statement and function call nodes, and also
1394 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1395 -- named parameter where parameters are ordered by declaration order (as
1396 -- opposed to the actual order in the call which may be different due to
1397 -- named associations). Note: this field points to the explicit actual
1398 -- parameter itself, not the N_Parameter_Association node (its parent).
1400 -- First_Real_Statement (Node2-Sem)
1401 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1402 -- Empty. Used only when declarations are moved into the statement part
1403 -- of a construct as a result of wrapping an AT END handler that is
1404 -- required to cover the declarations. In this case, this field is used
1405 -- to remember the location in the statements list of the first real
1406 -- statement, i.e. the statement that used to be first in the statement
1407 -- list before the declarations were prepended.
1409 -- First_Subtype_Link (Node5-Sem)
1410 -- Present in N_Freeze_Entity node for an anonymous base type that is
1411 -- implicitly created by the declaration of a first subtype. It points
1412 -- to the entity for the first subtype.
1414 -- Float_Truncate (Flag11-Sem)
1415 -- A flag present in type conversion nodes. This is used for float to
1416 -- integer conversions where truncation is required rather than rounding.
1418 -- Forwards_OK (Flag5-Sem)
1419 -- A flag present in the N_Assignment_Statement node. It is used only
1420 -- if the type being assigned is an array type, and is set if analysis
1421 -- determines that it is definitely safe to do the copy forwards, i.e.
1422 -- starting at the lowest addressed element. This is the case if either
1423 -- the operands do not overlap, or they may overlap, but if they do,
1424 -- then the left operand is at a lower address than the right operand.
1426 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1427 -- means that the front end could not determine that either direction is
1428 -- definitely safe, and a runtime check may be required if the backend
1429 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1430 -- set, it means that the front end can assure no overlap of operands.
1432 -- From_Aspect_Specification (Flag13-Sem)
1433 -- Processing of aspect specifications typically results in insertion in
1434 -- the tree of corresponding pragma or attribute definition clause nodes.
1435 -- These generated nodes have the From_Aspect_Specification flag set to
1436 -- indicate that they came from aspect specifications originally.
1438 -- From_At_End (Flag4-Sem)
1439 -- This flag is set on an N_Raise_Statement node if it corresponds to
1440 -- the reraise statement generated as the last statement of an AT END
1441 -- handler when SJLJ exception handling is active. It is used to stop
1442 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1443 -- because if the restriction is set, the reraise is not generated.
1445 -- From_At_Mod (Flag4-Sem)
1446 -- This flag is set on the attribute definition clause node that is
1447 -- generated by a transformation of an at mod phrase in a record
1448 -- representation clause. This is used to give slightly different (Ada 83
1449 -- compatible) semantics to such a clause, namely it is used to specify a
1450 -- minimum acceptable alignment for the base type and all subtypes. In
1451 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1452 -- must be a multiple of the given value, and the representation clause
1453 -- is considered to be type specific instead of subtype specific.
1455 -- From_Conditional_Expression (Flag1-Sem)
1456 -- This flag is set on if and case statements generated by the expansion
1457 -- of if and case expressions respectively. The flag is used to suppress
1458 -- any finalization of controlled objects found within these statements.
1460 -- From_Default (Flag6-Sem)
1461 -- This flag is set on the subprogram renaming declaration created in an
1462 -- instance for a formal subprogram, when the formal is declared with a
1463 -- box, and there is no explicit actual. If the flag is present, the
1464 -- declaration is treated as an implicit reference to the formal in the
1465 -- ali file.
1467 -- Generalized_Indexing (Node4-Sem)
1468 -- Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1469 -- that are Ada 2012 container indexing operations. The value of the
1470 -- attribute is a function call (possibly dereferenced) that corresponds
1471 -- to the proper expansion of the source indexing operation. Before
1472 -- expansion, the source node is rewritten as the resolved generalized
1473 -- indexing. In ASIS mode, the expansion does not take place, so that
1474 -- the source is preserved and properly annotated with types.
1476 -- Generic_Parent (Node5-Sem)
1477 -- Generic_Parent is defined on declaration nodes that are instances. The
1478 -- value of Generic_Parent is the generic entity from which the instance
1479 -- is obtained.
1481 -- Generic_Parent_Type (Node4-Sem)
1482 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1483 -- actuals of formal private and derived types. Within the instance, the
1484 -- operations on the actual are those inherited from the parent. For a
1485 -- formal private type, the parent type is the generic type itself. The
1486 -- Generic_Parent_Type is also used in an instance to determine whether a
1487 -- private operation overrides an inherited one.
1489 -- Handler_List_Entry (Node2-Sem)
1490 -- This field is present in N_Object_Declaration nodes. It is set only
1491 -- for the Handler_Record entry generated for an exception in zero cost
1492 -- exception handling mode. It references the corresponding item in the
1493 -- handler list, and is used to delete this entry if the corresponding
1494 -- handler is deleted during optimization. For further details on why
1495 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1497 -- Has_Dereference_Action (Flag13-Sem)
1498 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1499 -- indicate that the expansion has aready produced a call to primitive
1500 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1501 -- Such dereference actions are produced for debugging purposes.
1503 -- Has_Dynamic_Length_Check (Flag10-Sem)
1504 -- This flag is present in all expression nodes. It is set to indicate
1505 -- that one of the routines in unit Checks has generated a length check
1506 -- action which has been inserted at the flagged node. This is used to
1507 -- avoid the generation of duplicate checks.
1509 -- Has_Dynamic_Range_Check (Flag12-Sem)
1510 -- This flag is present in N_Subtype_Declaration nodes and on all
1511 -- expression nodes. It is set to indicate that one of the routines in
1512 -- unit Checks has generated a range check action which has been inserted
1513 -- at the flagged node. This is used to avoid the generation of duplicate
1514 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1515 -- it mean in that context???
1517 -- Has_Local_Raise (Flag8-Sem)
1518 -- Present in exception handler nodes. Set if the handler can be entered
1519 -- via a local raise that gets transformed to a goto statement. This will
1520 -- always be set if Local_Raise_Statements is non-empty, but can also be
1521 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1522 -- nodes requiring generation of back end checks.
1524 -- Has_No_Elaboration_Code (Flag17-Sem)
1525 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1526 -- or not elaboration code is present for this unit. It is initially set
1527 -- true for subprogram specs and bodies and for all generic units and
1528 -- false for non-generic package specs and bodies. Gigi may set the flag
1529 -- in the non-generic package case if it determines that no elaboration
1530 -- code is generated. Note that this flag is not related to the
1531 -- Is_Preelaborated status, there can be preelaborated packages that
1532 -- generate elaboration code, and non-preelaborated packages which do
1533 -- not generate elaboration code.
1535 -- Has_Pragma_Suppress_All (Flag14-Sem)
1536 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1537 -- pragma appears anywhere in the unit. This accommodates the rather
1538 -- strange placement rules of other compilers (DEC permits it at the
1539 -- end of a unit, and Rational allows it as a program unit pragma). We
1540 -- allow it anywhere at all, and consider it equivalent to a pragma
1541 -- Suppress (All_Checks) appearing at the start of the configuration
1542 -- pragmas for the unit.
1544 -- Has_Private_View (Flag11-Sem)
1545 -- A flag present in generic nodes that have an entity, to indicate that
1546 -- the node has a private type. Used to exchange private and full
1547 -- declarations if the visibility at instantiation is different from the
1548 -- visibility at generic definition.
1550 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1551 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1552 -- flag the presence of a pragma Relative_Deadline.
1554 -- Has_Self_Reference (Flag13-Sem)
1555 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1556 -- of the expressions contains an access attribute reference to the
1557 -- enclosing type. Such a self-reference can only appear in default-
1558 -- initialized aggregate for a record type.
1560 -- Has_SP_Choice (Flag15-Sem)
1561 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1562 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1563 -- True if the Discrete_Choices list has at least one occurrence of a
1564 -- statically predicated subtype.
1566 -- Has_Storage_Size_Pragma (Flag5-Sem)
1567 -- A flag present in an N_Task_Definition node to flag the presence of a
1568 -- Storage_Size pragma.
1570 -- Has_Target_Names (Flag8-Sem)
1571 -- Present in assignment statements. Indicates that the RHS contains
1572 -- target names (see AI12-0125-3) and must be expanded accordingly.
1574 -- Has_Wide_Character (Flag11-Sem)
1575 -- Present in string literals, set if any wide character (i.e. character
1576 -- code outside the Character range but within Wide_Character range)
1577 -- appears in the string. Used to implement pragma preference rules.
1579 -- Has_Wide_Wide_Character (Flag13-Sem)
1580 -- Present in string literals, set if any wide character (i.e. character
1581 -- code outside the Wide_Character range) appears in the string. Used to
1582 -- implement pragma preference rules.
1584 -- Header_Size_Added (Flag11-Sem)
1585 -- Present in N_Attribute_Reference nodes, set only for attribute
1586 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1587 -- hidden list header used by the runtime finalization support has been
1588 -- added to the size of the prefix. The flag also prevents the infinite
1589 -- expansion of the same attribute in the said context.
1591 -- Hidden_By_Use_Clause (Elist5-Sem)
1592 -- An entity list present in use clauses that appear within
1593 -- instantiations. For the resolution of local entities, entities
1594 -- introduced by these use clauses have priority over global ones,
1595 -- and outer entities must be explicitly hidden/restored on exit.
1597 -- Implicit_With (Flag16-Sem)
1598 -- Present in N_With_Clause nodes. The flag indicates that the clause
1599 -- does not comes from source and introduces an implicit dependency on
1600 -- a particular unit. Such implicit with clauses are generated by:
1602 -- * ABE mechanism - The static elaboration model of both the default
1603 -- and the legacy ABE mechanism use with clauses to encode implicit
1604 -- Elaborate[_All] pragmas.
1606 -- * Analysis - A with clause for child unit A.B.C is equivalent to
1607 -- a series of clauses that with A, A.B, and A.B.C. Manipulation of
1608 -- contexts utilizes implicit with clauses to emulate the visibility
1609 -- of a particular unit.
1611 -- * RTSfind - The compiler generates code which references entities
1612 -- from the runtime.
1614 -- Import_Interface_Present (Flag16-Sem)
1615 -- This flag is set in an Interface or Import pragma if a matching
1616 -- pragma of the other kind is also present. This is used to avoid
1617 -- generating some unwanted error messages.
1619 -- Includes_Infinities (Flag11-Sem)
1620 -- This flag is present in N_Range nodes. It is set for the range of
1621 -- unconstrained float types defined in Standard, which include not only
1622 -- the given range of values, but also legitimately can include infinite
1623 -- values. This flag is false for any float type for which an explicit
1624 -- range is given by the programmer, even if that range is identical to
1625 -- the range for Float.
1627 -- Incomplete_View (Node2-Sem)
1628 -- Present in full type declarations that are completions of incomplete
1629 -- type declarations. Denotes the corresponding incomplete type
1630 -- declaration. Used to simplify the retrieval of primitive operations
1631 -- that may be declared between the partial and the full view of an
1632 -- untagged type.
1634 -- Inherited_Discriminant (Flag13-Sem)
1635 -- This flag is present in N_Component_Association nodes. It indicates
1636 -- that a given component association in an extension aggregate is the
1637 -- value obtained from a constraint on an ancestor. Used to prevent
1638 -- double expansion when the aggregate has expansion delayed.
1640 -- Instance_Spec (Node5-Sem)
1641 -- This field is present in generic instantiation nodes, and also in
1642 -- formal package declaration nodes (formal package declarations are
1643 -- treated in a manner very similar to package instantiations). It points
1644 -- to the node for the spec of the instance, inserted as part of the
1645 -- semantic processing for instantiations in Sem_Ch12.
1647 -- Is_Abort_Block (Flag4-Sem)
1648 -- Present in N_Block_Statement nodes. True if the block protects a list
1649 -- of statements with an Abort_Defer / Abort_Undefer_Direct pair.
1651 -- Is_Accessibility_Actual (Flag13-Sem)
1652 -- Present in N_Parameter_Association nodes. True if the parameter is
1653 -- an extra actual that carries the accessibility level of the actual
1654 -- for an access parameter, in a function that dispatches on result and
1655 -- is called in a dispatching context. Used to prevent a formal/actual
1656 -- mismatch when the call is rewritten as a dispatching call.
1658 -- Is_Analyzed_Pragma (Flag5-Sem)
1659 -- Present in N_Pragma nodes. Set for delayed pragmas that require a two
1660 -- step analysis. The initial step is peformed by routine Analyze_Pragma
1661 -- and verifies the overall legality of the pragma. The second step takes
1662 -- place in the various Analyze_xxx_In_Decl_Part routines which perform
1663 -- full analysis. The flag prevents the reanalysis of a delayed pragma.
1665 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1666 -- A flag set in a Block_Statement node to indicate that it is the
1667 -- expansion of an asynchronous entry call. Such a block needs cleanup
1668 -- handler to assure that the call is cancelled.
1670 -- Is_Boolean_Aspect (Flag16-Sem)
1671 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1672 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1674 -- Is_Checked (Flag11-Sem)
1675 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1676 -- assertion aspect or pragma, or check pragma for an assertion, that
1677 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1678 -- is set (they cannot both be set), then this means that the status of
1679 -- the pragma has been checked at the appropriate point and should not
1680 -- be further modified (in some cases these flags are copied when a
1681 -- pragma is rewritten).
1683 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
1684 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1685 -- related to a checked Ghost entity or encloses a checked Ghost entity.
1686 -- This flag has no relation to Is_Checked.
1688 -- Is_Component_Left_Opnd (Flag13-Sem)
1689 -- Is_Component_Right_Opnd (Flag14-Sem)
1690 -- Present in concatenation nodes, to indicate that the corresponding
1691 -- operand is of the component type of the result. Used in resolving
1692 -- concatenation nodes in instances.
1694 -- Is_Controlling_Actual (Flag16-Sem)
1695 -- This flag is set on an expression that is a controlling argument in
1696 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1697 -- details of its use.
1699 -- Is_Declaration_Level_Node (Flag5-Sem)
1700 -- Present in call marker and instantiation nodes. Set when the constuct
1701 -- appears within the declarations of a block statement, an entry body,
1702 -- a subprogram body, or a task body. The flag aids the ABE Processing
1703 -- phase to catch certain forms of guaranteed ABEs.
1705 -- Is_Delayed_Aspect (Flag14-Sem)
1706 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1707 -- come from aspect specifications, where the evaluation of the aspect
1708 -- must be delayed to the freeze point. This flag is also set True in
1709 -- the corresponding N_Aspect_Specification node.
1711 -- Is_Disabled (Flag15-Sem)
1712 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1713 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1714 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1715 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1716 -- If this flag is set, the aspect or policy is not analyzed for semantic
1717 -- correctness, so any expressions etc will not be marked as analyzed.
1719 -- Is_Dispatching_Call (Flag6-Sem)
1720 -- Present in call marker nodes. Set when the related call which prompted
1721 -- the creation of the marker is dispatching.
1723 -- Is_Dynamic_Coextension (Flag18-Sem)
1724 -- Present in allocator nodes, to indicate that this is an allocator
1725 -- for an access discriminant of a dynamically allocated object. The
1726 -- coextension must be deallocated and finalized at the same time as
1727 -- the enclosing object.
1729 -- Is_Effective_Use_Clause (Flag1-Sem)
1730 -- Present in both N_Use_Type_Clause and N_Use_Package_Clause to indicate
1731 -- a use clause is "used" in the current source.
1733 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
1734 -- Present in the following nodes:
1736 -- assignment statement
1737 -- attribute reference
1738 -- call marker
1739 -- entry call statement
1740 -- expanded name
1741 -- function call
1742 -- function instantiation
1743 -- identifier
1744 -- package instantiation
1745 -- procedure call statement
1746 -- procedure instantiation
1747 -- requeue statement
1749 -- Set when the node appears within a context which allows the generation
1750 -- of run-time ABE checks. This flag detemines whether the ABE Processing
1751 -- phase generates conditional ABE checks and guaranteed ABE failures.
1753 -- Is_Elaboration_Code (Flag9-Sem)
1754 -- Present in assignment statements. Set for an assignment which updates
1755 -- the elaboration flag of a package or subprogram when the corresponding
1756 -- body is successfully elaborated.
1758 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
1759 -- Present in the following nodes:
1761 -- call marker
1762 -- entry call statement
1763 -- function call
1764 -- function instantiation
1765 -- package instantiation
1766 -- procedure call statement
1767 -- procedure instantiation
1768 -- requeue statement
1770 -- Set when the node appears within a context where elaboration warnings
1771 -- are enabled. This flag determines whether the ABE processing phase
1772 -- generates diagnostics on various elaboration issues.
1774 -- Is_Entry_Barrier_Function (Flag8-Sem)
1775 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1776 -- nodes which emulate the barrier function of a protected entry body.
1777 -- The flag is used when checking for incorrect use of Current_Task.
1779 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1780 -- This flag is set in an N_Function_Call node to indicate that the extra
1781 -- actuals to support a build-in-place style of call have been added to
1782 -- the call.
1784 -- Is_Expanded_Contract (Flag1-Sem)
1785 -- Present in N_Contract nodes. Set if the contract has already undergone
1786 -- expansion activities.
1788 -- Is_Finalization_Wrapper (Flag9-Sem)
1789 -- This flag is present in N_Block_Statement nodes. It is set when the
1790 -- block acts as a wrapper of a handled construct which has controlled
1791 -- objects. The wrapper prevents interference between exception handlers
1792 -- and At_End handlers.
1794 -- Is_Generic_Contract_Pragma (Flag2-Sem)
1795 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1796 -- a source construct, applies to a generic unit or its body, and denotes
1797 -- one of the following contract-related annotations:
1798 -- Abstract_State
1799 -- Contract_Cases
1800 -- Depends
1801 -- Extensions_Visible
1802 -- Global
1803 -- Initial_Condition
1804 -- Initializes
1805 -- Post
1806 -- Post_Class
1807 -- Postcondition
1808 -- Pre
1809 -- Pre_Class
1810 -- Precondition
1811 -- Refined_Depends
1812 -- Refined_Global
1813 -- Refined_Post
1814 -- Refined_State
1815 -- Test_Case
1817 -- Is_Ignored (Flag9-Sem)
1818 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1819 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1820 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1821 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1822 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1823 -- gives a policy for the aspect or pragma, then there are two cases. For
1824 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1825 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1826 -- ignored because of the absence of a -gnata switch. For any other
1827 -- aspects or pragmas, the flag is off. If this flag is set, the
1828 -- aspect/pragma is fully analyzed and checked for other syntactic
1829 -- and semantic errors, but it does not have any semantic effect.
1831 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
1832 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1833 -- related to an ignored Ghost entity or encloses ignored Ghost entity.
1834 -- This flag has no relation to Is_Ignored.
1836 -- Is_In_Discriminant_Check (Flag11-Sem)
1837 -- This flag is present in a selected component, and is used to indicate
1838 -- that the reference occurs within a discriminant check. The
1839 -- significance is that optimizations based on assuming that the
1840 -- discriminant check has a correct value cannot be performed in this
1841 -- case (or the discriminant check may be optimized away).
1843 -- Is_Inherited_Pragma (Flag4-Sem)
1844 -- This flag is set in an N_Pragma node that appears in a N_Contract node
1845 -- to indicate that the pragma has been inherited from a parent context.
1847 -- Is_Initialization_Block (Flag1-Sem)
1848 -- Defined in block nodes. Set when the block statement was created by
1849 -- the finalization machinery to wrap initialization statements. This
1850 -- flag aids the ABE Processing phase to suppress the diagnostics of
1851 -- finalization actions in initialization contexts.
1853 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
1854 -- NOTE: this flag is shared between the legacy ABE mechanism and the
1855 -- default ABE mechanism.
1857 -- Present in the following nodes:
1859 -- call marker
1860 -- formal package declaration
1861 -- function call
1862 -- function instantiation
1863 -- package instantiation
1864 -- procedure call statement
1865 -- procedure instantiation
1867 -- Set when the elaboration or evaluation of the scenario results in
1868 -- a guaranteed ABE. The flag is used to suppress the instantiation of
1869 -- generic bodies because gigi cannot handle certain forms of premature
1870 -- instantiation, as well as to prevent the reexamination of the node by
1871 -- the ABE Processing phase.
1873 -- Is_Machine_Number (Flag11-Sem)
1874 -- This flag is set in an N_Real_Literal node to indicate that the value
1875 -- is a machine number. This avoids some unnecessary cases of converting
1876 -- real literals to machine numbers.
1878 -- Is_Null_Loop (Flag16-Sem)
1879 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1880 -- can be determined to be null at compile time. This is used to remove
1881 -- the loop entirely at expansion time.
1883 -- Is_Overloaded (Flag5-Sem)
1884 -- A flag present in all expression nodes. Used temporarily during
1885 -- overloading determination. The setting of this flag is not relevant
1886 -- once overloading analysis is complete.
1888 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1889 -- A flag present only in N_Op_Expon nodes. It is set when the
1890 -- exponentiation is of the form 2 ** N, where the type of N is an
1891 -- unsigned integral subtype whose size does not exceed the size of
1892 -- Standard_Integer (i.e. a type that can be safely converted to
1893 -- Natural), and the exponentiation appears as the right operand of an
1894 -- integer multiplication or an integer division where the dividend is
1895 -- unsigned. It is also required that overflow checking is off for both
1896 -- the exponentiation and the multiply/divide node. If this set of
1897 -- conditions holds, and the flag is set, then the division or
1898 -- multiplication can be (and is) converted to a shift.
1900 -- Is_Prefixed_Call (Flag17-Sem)
1901 -- This flag is set in a selected component within a generic unit, if
1902 -- it resolves to a prefixed call to a primitive operation. The flag
1903 -- is used to prevent accidental overloadings in an instance, when a
1904 -- primitive operation and a private record component may be homographs.
1906 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1907 -- A flag set in a Subprogram_Body block to indicate that it is the
1908 -- implementation of a protected subprogram. Such a body needs cleanup
1909 -- handler to make sure that the associated protected object is unlocked
1910 -- when the subprogram completes.
1912 -- Is_Qualified_Universal_Literal (Flag4-Sem)
1913 -- Present in N_Qualified_Expression nodes. Set when the qualification is
1914 -- converting a universal literal to a specific type. Such qualifiers aid
1915 -- the resolution of accidental overloading of binary or unary operators
1916 -- which may occur in instances.
1918 -- Is_Read (Flag1-Sem)
1919 -- Present in variable reference markers. Set when the original variable
1920 -- reference constitues a read of the variable.
1922 -- Is_Source_Call (Flag4-Sem)
1923 -- Present in call marker nodes. Set when the related call came from
1924 -- source.
1926 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
1927 -- Present in nodes which represent an elaboration scenario. Those are
1928 -- assignment statement, attribute reference, call marker, entry call
1929 -- statement, expanded name, function call, identifier, instantiation,
1930 -- procedure call statement, and requeue statement nodes. Set when the
1931 -- node appears within a context subject to SPARK_Mode On. This flag
1932 -- determines when the SPARK model of elaboration be activated by the
1933 -- ABE Processing phase.
1935 -- Is_Static_Coextension (Flag14-Sem)
1936 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1937 -- of an object allocated on the stack rather than the heap.
1939 -- Is_Static_Expression (Flag6-Sem)
1940 -- Indicates that an expression is a static expression according to the
1941 -- rules in (RM 4.9). Note that it is possible for this flag to be set
1942 -- when Raises_Constraint_Error is also set. In practice almost all cases
1943 -- where a static expression is required do not allow an expression which
1944 -- raises Constraint_Error, so almost always, callers should call the
1945 -- Is_Ok_Static_Expression routine instead of testing this flag. See
1946 -- spec of package Sem_Eval for full details on the use of this flag.
1948 -- Is_Subprogram_Descriptor (Flag16-Sem)
1949 -- Present in N_Object_Declaration, and set only for the object
1950 -- declaration generated for a subprogram descriptor in fast exception
1951 -- mode. See Exp_Ch11 for details of use.
1953 -- Is_Task_Allocation_Block (Flag6-Sem)
1954 -- A flag set in a Block_Statement node to indicate that it is the
1955 -- expansion of a task allocator, or the allocator of an object
1956 -- containing tasks. Such a block requires a cleanup handler to call
1957 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1958 -- allocated but not activated when the allocator completes abnormally.
1960 -- Is_Task_Body_Procedure (Flag1-Sem)
1961 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1962 -- nodes which emulate the body of a task unit.
1964 -- Is_Task_Master (Flag5-Sem)
1965 -- A flag set in a Subprogram_Body, Block_Statement, or Task_Body node to
1966 -- indicate that the construct is a task master (i.e. has declared tasks
1967 -- or declares an access to a task type).
1969 -- Is_Write (Flag2-Sem)
1970 -- Present in variable reference markers. Set when the original variable
1971 -- reference constitues a write of the variable.
1973 -- Itype (Node1-Sem)
1974 -- Used in N_Itype_Reference node to reference an itype for which it is
1975 -- important to ensure that it is defined. See description of this node
1976 -- for further details.
1978 -- Kill_Range_Check (Flag11-Sem)
1979 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1980 -- result should not be subjected to range checks. This is used for the
1981 -- implementation of Normalize_Scalars.
1983 -- Label_Construct (Node2-Sem)
1984 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1985 -- N_Block_Statement or N_Loop_Statement node to which the label
1986 -- declaration applies. This attribute is used both in the compiler and
1987 -- in the implementation of ASIS queries. The field is left empty for the
1988 -- special labels generated as part of expanding raise statements with a
1989 -- local exception handler.
1991 -- Library_Unit (Node4-Sem)
1992 -- In a stub node, Library_Unit points to the compilation unit node of
1993 -- the corresponding subunit.
1995 -- In a with clause node, Library_Unit points to the spec of the with'ed
1996 -- unit.
1998 -- In a compilation unit node, the usage depends on the unit type:
2000 -- For a library unit body, Library_Unit points to the compilation unit
2001 -- node of the corresponding spec, unless it's a subprogram body with
2002 -- Acts_As_Spec set, in which case it points to itself.
2004 -- For a spec, Library_Unit points to the compilation unit node of the
2005 -- corresponding body, if present. The body will be present if the spec
2006 -- is or contains generics that we needed to instantiate. Similarly, the
2007 -- body will be present if we needed it for inlining purposes. Thus, if
2008 -- we have a spec/body pair, both of which are present, they point to
2009 -- each other via Library_Unit.
2011 -- For a subunit, Library_Unit points to the compilation unit node of
2012 -- the parent body.
2013 -- ??? not (always) true, in (at least some, maybe all?) cases it points
2014 -- to the corresponding spec for the parent body.
2016 -- Note that this field is not used to hold the parent pointer for child
2017 -- unit (which might in any case need to use it for some other purpose as
2018 -- described above). Instead for a child unit, implicit with's are
2019 -- generated for all parents.
2021 -- Local_Raise_Statements (Elist1)
2022 -- This field is present in exception handler nodes. It is set to
2023 -- No_Elist in the normal case. If there is at least one raise statement
2024 -- which can potentially be handled as a local raise, then this field
2025 -- points to a list of raise nodes, which are calls to a routine to raise
2026 -- an exception. These are raise nodes which can be optimized into gotos
2027 -- if the handler turns out to meet the conditions which permit this
2028 -- transformation. Note that this does NOT include instances of the
2029 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
2030 -- handled by the back end (using the N_Push/N_Pop mechanism).
2032 -- Loop_Actions (List2-Sem)
2033 -- A list present in Component_Association nodes in array aggregates.
2034 -- Used to collect actions that must be executed within the loop because
2035 -- they may need to be evaluated anew each time through.
2037 -- Limited_View_Installed (Flag18-Sem)
2038 -- Present in With_Clauses and in package specifications. If set on
2039 -- with_clause, it indicates that this clause has created the current
2040 -- limited view of the designated package. On a package specification, it
2041 -- indicates that the limited view has already been created because the
2042 -- package is mentioned in a limited_with_clause in the closure of the
2043 -- unit being compiled.
2045 -- Local_Raise_Not_OK (Flag7-Sem)
2046 -- Present in N_Exception_Handler nodes. Set if the handler contains
2047 -- a construct (reraise statement, or call to subprogram in package
2048 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
2049 -- for a local raise (one that could otherwise be converted to a goto).
2051 -- Must_Be_Byte_Aligned (Flag14-Sem)
2052 -- This flag is present in N_Attribute_Reference nodes. It can be set
2053 -- only for the Address and Unrestricted_Access attributes. If set it
2054 -- means that the object for which the address/access is given must be on
2055 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
2056 -- of the object is to be made before taking the address (this copy is in
2057 -- the current scope on the stack frame). This is used for certain cases
2058 -- of code generated by the expander that passes parameters by address.
2060 -- The reason the copy is not made by the front end is that the back end
2061 -- has more information about type layout and may be able to (but is not
2062 -- guaranteed to) prevent making unnecessary copies.
2064 -- Must_Not_Freeze (Flag8-Sem)
2065 -- A flag present in all expression nodes. Normally expressions cause
2066 -- freezing as described in the RM. If this flag is set, then this is
2067 -- inhibited. This is used by the analyzer and expander to label nodes
2068 -- that are created by semantic analysis or expansion and which must not
2069 -- cause freezing even though they normally would. This flag is also
2070 -- present in an N_Subtype_Indication node, since we also use these in
2071 -- calls to Freeze_Expression.
2073 -- Next_Entity (Node2-Sem)
2074 -- Present in defining identifiers, defining character literals, and
2075 -- defining operator symbols (i.e. in all entities). The entities of a
2076 -- scope are chained, and this field is used as the forward pointer for
2077 -- this list. See Einfo for further details.
2079 -- Next_Exit_Statement (Node3-Sem)
2080 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
2081 -- chained (in reverse order of appearance) from the First_Exit_Statement
2082 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
2083 -- the next entry on this chain (Empty = end of list).
2085 -- Next_Implicit_With (Node3-Sem)
2086 -- Present in N_With_Clause. Part of a chain of with_clauses generated
2087 -- in rtsfind to indicate implicit dependencies on predefined units. Used
2088 -- to prevent multiple with_clauses for the same unit in a given context.
2089 -- A postorder traversal of the tree whose nodes are units and whose
2090 -- links are with_clauses defines the order in which CodePeer must
2091 -- examine a compiled unit and its full context. This ordering ensures
2092 -- that any subprogram call is examined after the subprogram declaration
2093 -- has been seen.
2095 -- Next_Named_Actual (Node4-Sem)
2096 -- Present in parameter association nodes. Set during semantic analysis
2097 -- to point to the next named parameter, where parameters are ordered by
2098 -- declaration order (as opposed to the actual order in the call, which
2099 -- may be different due to named associations). Not that this field
2100 -- points to the explicit actual parameter itself, not to the
2101 -- N_Parameter_Association node (its parent).
2103 -- Next_Pragma (Node1-Sem)
2104 -- Present in N_Pragma nodes. Used to create a linked list of pragma
2105 -- nodes. Currently used for two purposes:
2107 -- Create a list of linked Check_Policy pragmas. The head of this list
2108 -- is stored in Opt.Check_Policy_List (which has further details).
2110 -- Used by processing for Pre/Postcondition pragmas to store a list of
2111 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
2112 -- details).
2114 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
2115 -- the apply to the same construct. These are visible/private mode for
2116 -- a package spec and declarative/statement mode for package body.
2118 -- Next_Rep_Item (Node5-Sem)
2119 -- Present in pragma nodes, attribute definition nodes, enumeration rep
2120 -- clauses, record rep clauses, aspect specification nodes. Used to link
2121 -- representation items that apply to an entity. See full description of
2122 -- First_Rep_Item field in Einfo for further details.
2124 -- Next_Use_Clause (Node3-Sem)
2125 -- While use clauses are active during semantic processing, they are
2126 -- chained from the scope stack entry, using Next_Use_Clause as a link
2127 -- pointer, with Empty marking the end of the list. The head pointer is
2128 -- in the scope stack entry (First_Use_Clause). At the end of semantic
2129 -- processing (i.e. when Gigi sees the tree, the contents of this field
2130 -- is undefined and should not be read).
2132 -- No_Ctrl_Actions (Flag7-Sem)
2133 -- Present in N_Assignment_Statement to indicate that no Finalize nor
2134 -- Adjust should take place on this assignment even though the RHS is
2135 -- controlled. Also indicates that the primitive _assign should not be
2136 -- used for a tagged assignment. This is used in init procs and aggregate
2137 -- expansions where the generated assignments are initializations, not
2138 -- real assignments.
2140 -- No_Elaboration_Check (Flag4-Sem)
2141 -- NOTE: this flag is relevant only for the legacy ABE mechanism and
2142 -- should not be used outside of that context.
2144 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
2145 -- that no elaboration check is needed on the call, because it appears in
2146 -- the context of a local Suppress pragma. This is used on calls within
2147 -- task bodies, where the actual elaboration checks are applied after
2148 -- analysis, when the local scope stack is not present
2150 -- No_Entities_Ref_In_Spec (Flag8-Sem)
2151 -- Present in N_With_Clause nodes. Set if the with clause is on the
2152 -- package or subprogram spec where the main unit is the corresponding
2153 -- body, and no entities of the with'ed unit are referenced by the spec
2154 -- (an entity may still be referenced in the body, so this flag is used
2155 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
2156 -- full details).
2158 -- No_Initialization (Flag13-Sem)
2159 -- Present in N_Object_Declaration and N_Allocator to indicate that the
2160 -- object must not be initialized (by Initialize or call to an init
2161 -- proc). This is needed for controlled aggregates. When the Object
2162 -- declaration has an expression, this flag means that this expression
2163 -- should not be taken into account (needed for in place initialization
2164 -- with aggregates, and for object with an address clause, which are
2165 -- initialized with an assignment at freeze time).
2167 -- No_Minimize_Eliminate (Flag17-Sem)
2168 -- This flag is present in membership operator nodes (N_In/N_Not_In).
2169 -- It is used to indicate that processing for extended overflow checking
2170 -- modes is not required (this is used to prevent infinite recursion).
2172 -- No_Side_Effect_Removal (Flag17-Sem)
2173 -- Present in N_Function_Call nodes. Set when a function call does not
2174 -- require side effect removal. This attribute suppresses the generation
2175 -- of a temporary to capture the result of the function which eventually
2176 -- replaces the function call.
2178 -- No_Truncation (Flag17-Sem)
2179 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
2180 -- only if the RM_Size of the source is greater than the RM_Size of the
2181 -- target for scalar operands. Normally in such a case we truncate some
2182 -- higher order bits of the source, and then sign/zero extend the result
2183 -- to form the output value. But if this flag is set, then we do not do
2184 -- any truncation, so for example, if an 8 bit input is converted to 5
2185 -- bit result which is in fact stored in 8 bits, then the high order
2186 -- three bits of the target result will be copied from the source. This
2187 -- is used for properly setting out of range values for use by pragmas
2188 -- Initialize_Scalars and Normalize_Scalars.
2190 -- Null_Excluding_Subtype (Flag16)
2191 -- Present in N_Access_To_Object_Definition. Indicates that the subtype
2192 -- indication carries a null-exclusion indicator, which is distinct from
2193 -- the null-exclusion indicator that may precede the access keyword.
2195 -- Original_Discriminant (Node2-Sem)
2196 -- Present in identifiers. Used in references to discriminants that
2197 -- appear in generic units. Because the names of the discriminants may be
2198 -- different in an instance, we use this field to recover the position of
2199 -- the discriminant in the original type, and replace it with the
2200 -- discriminant at the same position in the instantiated type.
2202 -- Original_Entity (Node2-Sem)
2203 -- Present in numeric literals. Used to denote the named number that has
2204 -- been constant-folded into the given literal. If literal is from
2205 -- source, or the result of some other constant-folding operation, then
2206 -- Original_Entity is empty. This field is needed to handle properly
2207 -- named numbers in generic units, where the Associated_Node field
2208 -- interferes with the Entity field, making it impossible to preserve the
2209 -- original entity at the point of instantiation (ASIS problem).
2211 -- Others_Discrete_Choices (List1-Sem)
2212 -- When a case statement or variant is analyzed, the semantic checks
2213 -- determine the actual list of choices that correspond to an others
2214 -- choice. This list is materialized for later use by the expander and
2215 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
2216 -- this materialized list of choices, which is in standard format for a
2217 -- list of discrete choices, except that of course it cannot contain an
2218 -- N_Others_Choice entry.
2220 -- Parent_Spec (Node4-Sem)
2221 -- For a library unit that is a child unit spec (package or subprogram
2222 -- declaration, generic declaration or instantiation, or library level
2223 -- rename) this field points to the compilation unit node for the parent
2224 -- package specification. This field is Empty for library bodies (the
2225 -- parent spec in this case can be found from the corresponding spec).
2227 -- Parent_With (Flag1-Sem)
2228 -- Present in N_With_Clause nodes. The flag indicates that the clause
2229 -- was generated for an ancestor unit to provide proper visibility. A
2230 -- with clause for child unit A.B.C produces two implicit parent with
2231 -- clauses for A and A.B.
2233 -- Premature_Use (Node5-Sem)
2234 -- Present in N_Incomplete_Type_Declaration node. Used for improved
2235 -- error diagnostics: if there is a premature usage of an incomplete
2236 -- type, a subsequently generated error message indicates the position
2237 -- of its full declaration.
2239 -- Present_Expr (Uint3-Sem)
2240 -- Present in an N_Variant node. This has a meaningful value only after
2241 -- Gigi has back annotated the tree with representation information. At
2242 -- this point, it contains a reference to a gcc expression that depends
2243 -- on the values of one or more discriminants. Give a set of discriminant
2244 -- values, this expression evaluates to False (zero) if variant is not
2245 -- present, and True (non-zero) if it is present. See unit Repinfo for
2246 -- further details on gigi back annotation. This field is used during
2247 -- ASIS processing (data decomposition annex) to determine if a field is
2248 -- present or not.
2250 -- Prev_Use_Clause (Node1-Sem)
2251 -- Present in both N_Use_Package_Clause and N_Use_Type_Clause. Used in
2252 -- detection of ineffective use clauses by allowing a chain of related
2253 -- clauses together to avoid traversing the current scope stack.
2255 -- Print_In_Hex (Flag13-Sem)
2256 -- Set on an N_Integer_Literal node to indicate that the value should be
2257 -- printed in hexadecimal in the sprint listing. Has no effect on
2258 -- legality or semantics of program, only on the displayed output. This
2259 -- is used to clarify output from the packed array cases.
2261 -- Procedure_To_Call (Node2-Sem)
2262 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2263 -- and N_Extended_Return_Statement nodes. References the entity for the
2264 -- declaration of the procedure to be called to accomplish the required
2265 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
2266 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
2267 -- allocating the return value), and for the Deallocate procedure in the
2268 -- case of N_Free_Statement.
2270 -- Raises_Constraint_Error (Flag7-Sem)
2271 -- Set on an expression whose evaluation will definitely fail constraint
2272 -- error check. In the case of static expressions, this flag must be set
2273 -- accurately (and if it is set, the expression is typically illegal
2274 -- unless it appears as a non-elaborated branch of a short-circuit form).
2275 -- For a non-static expression, this flag may be set whenever an
2276 -- expression (e.g. an aggregate) is known to raise constraint error. If
2277 -- set, the expression definitely will raise CE if elaborated at runtime.
2278 -- If not set, the expression may or may not raise CE. In other words, on
2279 -- static expressions, the flag is set accurately, on non-static
2280 -- expressions it is set conservatively.
2282 -- Redundant_Use (Flag13-Sem)
2283 -- Present in nodes that can appear as an operand in a use clause or use
2284 -- type clause (identifiers, expanded names, attribute references). Set
2285 -- to indicate that a use is redundant (and therefore need not be undone
2286 -- on scope exit).
2288 -- Renaming_Exception (Node2-Sem)
2289 -- Present in N_Exception_Declaration node. Used to point back to the
2290 -- exception renaming for an exception declared within a subprogram.
2291 -- What happens is that an exception declared in a subprogram is moved
2292 -- to the library level with a unique name, and the original exception
2293 -- becomes a renaming. This link from the library level exception to the
2294 -- renaming declaration allows registering of the proper exception name.
2296 -- Return_Statement_Entity (Node5-Sem)
2297 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
2298 -- Points to an E_Return_Statement representing the return statement.
2300 -- Return_Object_Declarations (List3)
2301 -- Present in N_Extended_Return_Statement. Points to a list initially
2302 -- containing a single N_Object_Declaration representing the return
2303 -- object. We use a list (instead of just a pointer to the object decl)
2304 -- because Analyze wants to insert extra actions on this list.
2306 -- Rounded_Result (Flag18-Sem)
2307 -- Present in N_Type_Conversion, N_Op_Divide, and N_Op_Multiply nodes.
2308 -- Used in the fixed-point cases to indicate that the result must be
2309 -- rounded as a result of the use of the 'Round attribute. Also used for
2310 -- integer N_Op_Divide nodes to indicate that the result should be
2311 -- rounded to the nearest integer (breaking ties away from zero), rather
2312 -- than truncated towards zero as usual. These rounded integer operations
2313 -- are the result of expansion of rounded fixed-point divide, conversion
2314 -- and multiplication operations.
2316 -- SCIL_Entity (Node4-Sem)
2317 -- Present in SCIL nodes. References the specific tagged type associated
2318 -- with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
2319 -- the controlling type of the call; for an N_SCIL_Membership_Test node
2320 -- generated as part of testing membership in T'Class, this is T; for an
2321 -- N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
2323 -- SCIL_Controlling_Tag (Node5-Sem)
2324 -- Present in N_SCIL_Dispatching_Call nodes. References the controlling
2325 -- tag of a dispatching call. This is usually an N_Selected_Component
2326 -- node (for a _tag component), but may be an N_Object_Declaration or
2327 -- N_Parameter_Specification node in some cases (e.g., for a call to
2328 -- a classwide streaming operation or a call to an instance of
2329 -- Ada.Tags.Generic_Dispatching_Constructor).
2331 -- SCIL_Tag_Value (Node5-Sem)
2332 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
2333 -- of the value that is being tested.
2335 -- SCIL_Target_Prim (Node2-Sem)
2336 -- Present in N_SCIL_Dispatching_Call nodes. References the primitive
2337 -- operation named (statically) in a dispatching call.
2339 -- Scope (Node3-Sem)
2340 -- Present in defining identifiers, defining character literals, and
2341 -- defining operator symbols (i.e. in all entities). The entities of a
2342 -- scope all use this field to reference the corresponding scope entity.
2343 -- See Einfo for further details.
2345 -- Shift_Count_OK (Flag4-Sem)
2346 -- A flag present in shift nodes to indicate that the shift count is
2347 -- known to be in range, i.e. is in the range from zero to word length
2348 -- minus one. If this flag is not set, then the shift count may be
2349 -- outside this range, i.e. larger than the word length, and the code
2350 -- must ensure that such shift counts give the appropriate result.
2352 -- Source_Type (Node1-Sem)
2353 -- Used in an N_Validate_Unchecked_Conversion node to point to the
2354 -- source type entity for the unchecked conversion instantiation
2355 -- which gigi must do size validation for.
2357 -- Split_PPC (Flag17)
2358 -- When a Pre or Post aspect specification is processed, it is broken
2359 -- into AND THEN sections. The left most section has Split_PPC set to
2360 -- False, indicating that it is the original specification (e.g. for
2361 -- posting errors). For other sections, Split_PPC is set to True.
2362 -- This flag is set in both the N_Aspect_Specification node itself,
2363 -- and in the pragma which is generated from this node.
2365 -- Storage_Pool (Node1-Sem)
2366 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2367 -- and N_Extended_Return_Statement nodes. References the entity for the
2368 -- storage pool to be used for the allocate or free call or for the
2369 -- allocation of the returned value from function. Empty indicates that
2370 -- the global default pool is to be used. Note that in the case
2371 -- of a return statement, this field is set only if the function returns
2372 -- value of a type whose size is not known at compile time on the
2373 -- secondary stack.
2375 -- Suppress_Assignment_Checks (Flag18-Sem)
2376 -- Used in generated N_Assignment_Statement nodes to suppress predicate
2377 -- and range checks in cases where the generated code knows that the
2378 -- value being assigned is in range and satisfies any predicate. Also
2379 -- can be set in N_Object_Declaration nodes, to similarly suppress any
2380 -- checks on the initializing value. In assignment statements it also
2381 -- suppresses access checks in the generated code for out- and in-out
2382 -- parameters in entry calls.
2384 -- Suppress_Loop_Warnings (Flag17-Sem)
2385 -- Used in N_Loop_Statement node to indicate that warnings within the
2386 -- body of the loop should be suppressed. This is set when the range
2387 -- of a FOR loop is known to be null, or is probably null (loop would
2388 -- only execute if invalid values are present).
2390 -- Target (Node1-Sem)
2391 -- Present in call and variable reference marker nodes. References the
2392 -- entity of the original entity, operator, or subprogram being invoked,
2393 -- or the original variable being read or written.
2395 -- Target_Type (Node2-Sem)
2396 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
2397 -- type entity for the unchecked conversion instantiation which gigi must
2398 -- do size validation for.
2400 -- Then_Actions (List3-Sem)
2401 -- This field is present in if expression nodes. During code expansion
2402 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
2403 -- at an appropriate place in the tree to get elaborated at the right
2404 -- time. For if expressions, we have to be sure that the actions for
2405 -- for the Then branch are only elaborated if the condition is True.
2406 -- The Then_Actions field is used as a temporary parking place for
2407 -- these actions. The final tree is always rewritten to eliminate the
2408 -- need for this field, so in the tree passed to Gigi, this field is
2409 -- always set to No_List.
2411 -- Treat_Fixed_As_Integer (Flag14-Sem)
2412 -- This flag appears in operator nodes for divide, multiply, mod, and rem
2413 -- on fixed-point operands. It indicates that the operands are to be
2414 -- treated as integer values, ignoring small values. This flag is only
2415 -- set as a result of expansion of fixed-point operations. Typically a
2416 -- fixed-point multiplication in the source generates subsidiary
2417 -- multiplication and division operations that work with the underlying
2418 -- integer values and have this flag set. Note that this flag is not
2419 -- needed on other arithmetic operations (add, neg, subtract etc.) since
2420 -- in these cases it is always the case that fixed is treated as integer.
2421 -- The Etype field MUST be set if this flag is set. The analyzer knows to
2422 -- leave such nodes alone, and whoever makes them must set the correct
2423 -- Etype value.
2425 -- TSS_Elist (Elist3-Sem)
2426 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2427 -- entries for each TSS (type support subprogram) associated with the
2428 -- frozen type. The elements of the list are the entities for the
2429 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2430 -- if there are no type support subprograms for the type or if the freeze
2431 -- node is not for a type.
2433 -- Uneval_Old_Accept (Flag7-Sem)
2434 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'A'
2435 -- (accept) at the point where the pragma is encountered (including the
2436 -- case of a pragma generated from an aspect specification). It is this
2437 -- setting that is relevant, rather than the setting at the point where
2438 -- a contract is finally analyzed after the delay till the freeze point.
2440 -- Uneval_Old_Warn (Flag18-Sem)
2441 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'W'
2442 -- (warn) at the point where the pragma is encountered (including the
2443 -- case of a pragma generated from an aspect specification). It is this
2444 -- setting that is relevant, rather than the setting at the point where
2445 -- a contract is finally analyzed after the delay till the freeze point.
2447 -- Unreferenced_In_Spec (Flag7-Sem)
2448 -- Present in N_With_Clause nodes. Set if the with clause is on the
2449 -- package or subprogram spec where the main unit is the corresponding
2450 -- body, and is not referenced by the spec (it may still be referenced by
2451 -- the body, so this flag is used to generate the proper message (see
2452 -- Sem_Util.Check_Unused_Withs for details)
2454 -- Uninitialized_Variable (Node3-Sem)
2455 -- Present in N_Formal_Private_Type_Definition and in N_Private_
2456 -- Extension_Declarations. Indicates that a variable in a generic unit
2457 -- whose type is a formal private or derived type is read without being
2458 -- initialized. Used to warn if the corresponding actual type is not
2459 -- a fully initialized type.
2461 -- Used_Operations (Elist2-Sem)
2462 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2463 -- are made potentially use-visible by the clause. Simplifies processing
2464 -- on exit from the scope of the use_type_clause, in particular in the
2465 -- case of Use_All_Type, when those operations several scopes.
2467 -- Was_Attribute_Reference (Flag2-Sem)
2468 -- Present in N_Subprogram_Body. Set to True if the original source is an
2469 -- attribute reference which is an actual in a generic instantiation. The
2470 -- instantiation prologue renames these attributes, and expansion later
2471 -- converts them into subprogram bodies.
2473 -- Was_Expression_Function (Flag18-Sem)
2474 -- Present in N_Subprogram_Body. True if the original source had an
2475 -- N_Expression_Function, which was converted to the N_Subprogram_Body
2476 -- by Analyze_Expression_Function. This is needed by ASIS to correctly
2477 -- recreate the expression function (for the instance body) when the
2478 -- completion of a generic function declaration is an expression
2479 -- function.
2481 -- Was_Originally_Stub (Flag13-Sem)
2482 -- This flag is set in the node for a proper body that replaces stub.
2483 -- During the analysis procedure, stubs in some situations get rewritten
2484 -- by the corresponding bodies, and we set this flag to remember that
2485 -- this happened. Note that it is not good enough to rely on the use of
2486 -- Original_Node here because of the case of nested instantiations where
2487 -- the substituted node can be copied.
2489 -- Withed_Body (Node1-Sem)
2490 -- Present in N_With_Clause nodes. Set if the unit in whose context
2491 -- the with_clause appears instantiates a generic contained in the
2492 -- library unit of the with_clause and as a result loads its body.
2493 -- Used for a more precise unit traversal for CodePeer.
2495 --------------------------------------------------
2496 -- Note on Use of End_Label and End_Span Fields --
2497 --------------------------------------------------
2499 -- Several constructs have end lines:
2501 -- Loop Statement end loop [loop_IDENTIFIER];
2502 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2503 -- Task Definition end [task_IDENTIFIER]
2504 -- Protected Definition end [protected_IDENTIFIER]
2505 -- Protected Body end [protected_IDENTIFIER]
2507 -- Block Statement end [block_IDENTIFIER];
2508 -- Subprogram Body end [DESIGNATOR];
2509 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2510 -- Task Body end [task_IDENTIFIER];
2511 -- Accept Statement end [entry_IDENTIFIER]];
2512 -- Entry Body end [entry_IDENTIFIER];
2514 -- If Statement end if;
2515 -- Case Statement end case;
2517 -- Record Definition end record;
2518 -- Enumeration Definition );
2520 -- The End_Label and End_Span fields are used to mark the locations of
2521 -- these lines, and also keep track of the label in the case where a label
2522 -- is present.
2524 -- For the first group above, the End_Label field of the corresponding node
2525 -- is used to point to the label identifier. In the case where there is no
2526 -- label in the source, the parser supplies a dummy identifier (with
2527 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2528 -- marks the location of the token following the END token.
2530 -- For the second group, the use of End_Label is similar, but the End_Label
2531 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2532 -- simply because in some cases there is no room in the parent node.
2534 -- For the third group, there is never any label, and instead of using
2535 -- End_Label, we use the End_Span field which gives the location of the
2536 -- token following END, relative to the starting Sloc of the construct,
2537 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2538 -- following the End_Label.
2540 -- The record definition case is handled specially, we treat it as though
2541 -- it required an optional label which is never present, and so the parser
2542 -- always builds a dummy identifier with Comes From Source set False. The
2543 -- reason we do this, rather than using End_Span in this case, is that we
2544 -- want to generate a cross-ref entry for the end of a record, since it
2545 -- represents a scope for name declaration purposes.
2547 -- The enumeration definition case is handled in an exactly similar manner,
2548 -- building a dummy identifier to get a cross-reference.
2550 -- Note: the reason we store the difference as a Uint, instead of storing
2551 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2552 -- distinguished from other types of values, and we count on all general
2553 -- use fields being self describing. To make things easier for clients,
2554 -- note that we provide function End_Location, and procedure
2555 -- Set_End_Location to allow access to the logical value (which is the
2556 -- Source_Ptr value for the end token).
2558 ---------------------
2559 -- Syntactic Nodes --
2560 ---------------------
2562 ---------------------
2563 -- 2.3 Identifier --
2564 ---------------------
2566 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2567 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2569 -- An IDENTIFIER shall not be a reserved word
2571 -- In the Ada grammar identifiers are the bottom level tokens which have
2572 -- very few semantics. Actual program identifiers are direct names. If
2573 -- we were being 100% honest with the grammar, then we would have a node
2574 -- called N_Direct_Name which would point to an identifier. However,
2575 -- that's too many extra nodes, so we just use the N_Identifier node
2576 -- directly as a direct name, and it contains the expression fields and
2577 -- Entity field that correspond to its use as a direct name. In those
2578 -- few cases where identifiers appear in contexts where they are not
2579 -- direct names (pragmas, pragma argument associations, attribute
2580 -- references and attribute definition clauses), the Chars field of the
2581 -- node contains the Name_Id for the identifier name.
2583 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2584 -- cases. First, an incorrect use of a reserved word as an identifier is
2585 -- diagnosed and then treated as a normal identifier. Second, an
2586 -- attribute designator of the form of a reserved word (access, delta,
2587 -- digits, range) is treated as an identifier.
2589 -- Note: The set of letters that is permitted in an identifier depends
2590 -- on the character set in use. See package Csets for full details.
2592 -- N_Identifier
2593 -- Sloc points to identifier
2594 -- Chars (Name1) contains the Name_Id for the identifier
2595 -- Entity (Node4-Sem)
2596 -- Associated_Node (Node4-Sem)
2597 -- Original_Discriminant (Node2-Sem)
2598 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
2599 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
2600 -- Has_Private_View (Flag11-Sem) (set in generic units)
2601 -- Redundant_Use (Flag13-Sem)
2602 -- Atomic_Sync_Required (Flag14-Sem)
2603 -- plus fields for expression
2605 --------------------------
2606 -- 2.4 Numeric Literal --
2607 --------------------------
2609 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2611 ----------------------------
2612 -- 2.4.1 Decimal Literal --
2613 ----------------------------
2615 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2617 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2619 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2621 -- Decimal literals appear in the tree as either integer literal nodes
2622 -- or real literal nodes, depending on whether a period is present.
2624 -- Note: literal nodes appear as a result of direct use of literals
2625 -- in the source program, and also as the result of evaluating
2626 -- expressions at compile time. In the latter case, it is possible
2627 -- to construct real literals that have no syntactic representation
2628 -- using the standard literal format. Such literals are listed by
2629 -- Sprint using the notation [numerator / denominator].
2631 -- Note: the value of an integer literal node created by the front end
2632 -- is never outside the range of values of the base type. However, it
2633 -- can be the case that the created value is outside the range of the
2634 -- particular subtype. This happens in the case of integer overflows
2635 -- with checks suppressed.
2637 -- N_Integer_Literal
2638 -- Sloc points to literal
2639 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2640 -- has been constant-folded into its literal value.
2641 -- Intval (Uint3) contains integer value of literal
2642 -- Print_In_Hex (Flag13-Sem)
2643 -- plus fields for expression
2645 -- N_Real_Literal
2646 -- Sloc points to literal
2647 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2648 -- has been constant-folded into its literal value.
2649 -- Realval (Ureal3) contains real value of literal
2650 -- Corresponding_Integer_Value (Uint4-Sem)
2651 -- Is_Machine_Number (Flag11-Sem)
2652 -- plus fields for expression
2654 --------------------------
2655 -- 2.4.2 Based Literal --
2656 --------------------------
2658 -- BASED_LITERAL ::=
2659 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2661 -- BASE ::= NUMERAL
2663 -- BASED_NUMERAL ::=
2664 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2666 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2668 -- Based literals appear in the tree as either integer literal nodes
2669 -- or real literal nodes, depending on whether a period is present.
2671 ----------------------------
2672 -- 2.5 Character Literal --
2673 ----------------------------
2675 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2677 -- N_Character_Literal
2678 -- Sloc points to literal
2679 -- Chars (Name1) contains the Name_Id for the identifier
2680 -- Char_Literal_Value (Uint2) contains the literal value
2681 -- Entity (Node4-Sem)
2682 -- Associated_Node (Node4-Sem)
2683 -- Has_Private_View (Flag11-Sem) set in generic units.
2684 -- plus fields for expression
2686 -- Note: the Entity field will be missing (set to Empty) for character
2687 -- literals whose type is Standard.Wide_Character or Standard.Character
2688 -- or a type derived from one of these two. In this case the character
2689 -- literal stands for its own coding. The reason we take this irregular
2690 -- short cut is to avoid the need to build lots of junk defining
2691 -- character literal nodes.
2693 -------------------------
2694 -- 2.6 String Literal --
2695 -------------------------
2697 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2699 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2700 -- single GRAPHIC_CHARACTER other than a quotation mark.
2702 -- Is_Folded_In_Parser is True if the parser created this literal by
2703 -- folding a sequence of "&" operators. For example, if the source code
2704 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2705 -- is set. This flag is needed because the parser doesn't know about
2706 -- visibility, so the folded result might be wrong, and semantic
2707 -- analysis needs to check for that.
2709 -- N_String_Literal
2710 -- Sloc points to literal
2711 -- Strval (Str3) contains Id of string value
2712 -- Has_Wide_Character (Flag11-Sem)
2713 -- Has_Wide_Wide_Character (Flag13-Sem)
2714 -- Is_Folded_In_Parser (Flag4)
2715 -- plus fields for expression
2717 ------------------
2718 -- 2.7 Comment --
2719 ------------------
2721 -- A COMMENT starts with two adjacent hyphens and extends up to the
2722 -- end of the line. A COMMENT may appear on any line of a program.
2724 -- Comments are skipped by the scanner and do not appear in the tree.
2725 -- It is possible to reconstruct the position of comments with respect
2726 -- to the elements of the tree by using the source position (Sloc)
2727 -- pointers that appear in every tree node.
2729 -----------------
2730 -- 2.8 Pragma --
2731 -----------------
2733 -- PRAGMA ::= pragma IDENTIFIER
2734 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2736 -- Note that a pragma may appear in the tree anywhere a declaration
2737 -- or a statement may appear, as well as in some other situations
2738 -- which are explicitly documented.
2740 -- N_Pragma
2741 -- Sloc points to PRAGMA
2742 -- Next_Pragma (Node1-Sem)
2743 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2744 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2745 -- Pragma_Identifier (Node4)
2746 -- Next_Rep_Item (Node5-Sem)
2747 -- Is_Generic_Contract_Pragma (Flag2-Sem)
2748 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
2749 -- Is_Inherited_Pragma (Flag4-Sem)
2750 -- Is_Analyzed_Pragma (Flag5-Sem)
2751 -- Class_Present (Flag6) set if from Aspect with 'Class
2752 -- Uneval_Old_Accept (Flag7-Sem)
2753 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
2754 -- Is_Ignored (Flag9-Sem)
2755 -- Is_Checked (Flag11-Sem)
2756 -- From_Aspect_Specification (Flag13-Sem)
2757 -- Is_Delayed_Aspect (Flag14-Sem)
2758 -- Is_Disabled (Flag15-Sem)
2759 -- Import_Interface_Present (Flag16-Sem)
2760 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2761 -- Uneval_Old_Warn (Flag18-Sem)
2763 -- Note: we should have a section on what pragmas are passed on to
2764 -- the back end to be processed. This section should note that pragma
2765 -- Psect_Object is always converted to Common_Object, but there are
2766 -- undoubtedly many other similar notes required ???
2768 -- Note: utility functions Pragma_Name_Unmapped and Pragma_Name may be
2769 -- applied to pragma nodes to obtain the Chars or its mapped version.
2771 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2772 -- aspect name, as does the Pragma_Identifier. In this case if the
2773 -- pragma has a local name argument (such as pragma Inline), it is
2774 -- resolved to point to the specific entity affected by the pragma.
2776 --------------------------------------
2777 -- 2.8 Pragma Argument Association --
2778 --------------------------------------
2780 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2781 -- [pragma_argument_IDENTIFIER =>] NAME
2782 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2784 -- In Ada 2012, there are two more possibilities:
2786 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2787 -- [pragma_argument_ASPECT_MARK =>] NAME
2788 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2790 -- where the interesting allowed cases (which do not fit the syntax of
2791 -- the first alternative above) are
2793 -- ASPECT_MARK => Pre'Class |
2794 -- Post'Class |
2795 -- Type_Invariant'Class |
2796 -- Invariant'Class
2798 -- We allow this special usage in all Ada modes, but it would be a
2799 -- pain to allow these aspects to pervade the pragma syntax, and the
2800 -- representation of pragma nodes internally. So what we do is to
2801 -- replace these ASPECT_MARK forms with identifiers whose name is one
2802 -- of the special internal names _Pre, _Post, or _Type_Invariant.
2804 -- We do a similar replacement of these Aspect_Mark forms in the
2805 -- Expression of a pragma argument association for the cases of
2806 -- the first arguments of any Check pragmas and Check_Policy pragmas
2808 -- N_Pragma_Argument_Association
2809 -- Sloc points to first token in association
2810 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2811 -- Expression_Copy (Node2-Sem)
2812 -- Expression (Node3)
2814 ------------------------
2815 -- 2.9 Reserved Word --
2816 ------------------------
2818 -- Reserved words are parsed by the scanner, and returned as the
2819 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2821 ----------------------------
2822 -- 3.1 Basic Declaration --
2823 ----------------------------
2825 -- BASIC_DECLARATION ::=
2826 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2827 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2828 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2829 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2830 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2831 -- | GENERIC_INSTANTIATION
2833 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2834 -- see further description in section on semantic nodes.
2836 -- Also, in the tree that is constructed, a pragma may appear
2837 -- anywhere that a declaration may appear.
2839 ------------------------------
2840 -- 3.1 Defining Identifier --
2841 ------------------------------
2843 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2845 -- A defining identifier is an entity, which has additional fields
2846 -- depending on the setting of the Ekind field. These additional
2847 -- fields are defined (and access subprograms declared) in package
2848 -- Einfo.
2850 -- Note: N_Defining_Identifier is an extended node whose fields are
2851 -- deliberate layed out to match the layout of fields in an ordinary
2852 -- N_Identifier node allowing for easy alteration of an identifier
2853 -- node into a defining identifier node. For details, see procedure
2854 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2856 -- N_Defining_Identifier
2857 -- Sloc points to identifier
2858 -- Chars (Name1) contains the Name_Id for the identifier
2859 -- Next_Entity (Node2-Sem)
2860 -- Scope (Node3-Sem)
2861 -- Etype (Node5-Sem)
2863 -----------------------------
2864 -- 3.2.1 Type Declaration --
2865 -----------------------------
2867 -- TYPE_DECLARATION ::=
2868 -- FULL_TYPE_DECLARATION
2869 -- | INCOMPLETE_TYPE_DECLARATION
2870 -- | PRIVATE_TYPE_DECLARATION
2871 -- | PRIVATE_EXTENSION_DECLARATION
2873 ----------------------------------
2874 -- 3.2.1 Full Type Declaration --
2875 ----------------------------------
2877 -- FULL_TYPE_DECLARATION ::=
2878 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2879 -- is TYPE_DEFINITION
2880 -- [ASPECT_SPECIFICATIONS];
2881 -- | TASK_TYPE_DECLARATION
2882 -- | PROTECTED_TYPE_DECLARATION
2884 -- The full type declaration node is used only for the first case. The
2885 -- second case (concurrent type declaration), is represented directly
2886 -- by a task type declaration or a protected type declaration.
2888 -- N_Full_Type_Declaration
2889 -- Sloc points to TYPE
2890 -- Defining_Identifier (Node1)
2891 -- Incomplete_View (Node2-Sem)
2892 -- Discriminant_Specifications (List4) (set to No_List if none)
2893 -- Type_Definition (Node3)
2894 -- Discr_Check_Funcs_Built (Flag11-Sem)
2896 ----------------------------
2897 -- 3.2.1 Type Definition --
2898 ----------------------------
2900 -- TYPE_DEFINITION ::=
2901 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2902 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2903 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2904 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2906 --------------------------------
2907 -- 3.2.2 Subtype Declaration --
2908 --------------------------------
2910 -- SUBTYPE_DECLARATION ::=
2911 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2912 -- [ASPECT_SPECIFICATIONS];
2914 -- The subtype indication field is set to Empty for subtypes
2915 -- declared in package Standard (Positive, Natural).
2917 -- N_Subtype_Declaration
2918 -- Sloc points to SUBTYPE
2919 -- Defining_Identifier (Node1)
2920 -- Null_Exclusion_Present (Flag11)
2921 -- Subtype_Indication (Node5)
2922 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2923 -- Exception_Junk (Flag8-Sem)
2924 -- Has_Dynamic_Range_Check (Flag12-Sem)
2926 -------------------------------
2927 -- 3.2.2 Subtype Indication --
2928 -------------------------------
2930 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2932 -- Note: if no constraint is present, the subtype indication appears
2933 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2934 -- node is used only if a constraint is present.
2936 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2937 -- with the null-exclusion part (see AI-231), we had to introduce a new
2938 -- attribute in all the parents of subtype_indication nodes to indicate
2939 -- if the null-exclusion is present.
2941 -- Note: the reason that this node has expression fields is that a
2942 -- subtype indication can appear as an operand of a membership test.
2944 -- N_Subtype_Indication
2945 -- Sloc points to first token of subtype mark
2946 -- Subtype_Mark (Node4)
2947 -- Constraint (Node3)
2948 -- Etype (Node5-Sem)
2949 -- Must_Not_Freeze (Flag8-Sem)
2951 -- Note: Depending on context, the Etype is either the entity of the
2952 -- Subtype_Mark field, or it is an itype constructed to reify the
2953 -- subtype indication. In particular, such itypes are created for a
2954 -- subtype indication that appears in an array type declaration. This
2955 -- simplifies constraint checking in indexed components.
2957 -- For subtype indications that appear in scalar type and subtype
2958 -- declarations, the Etype is the entity of the subtype mark.
2960 -------------------------
2961 -- 3.2.2 Subtype Mark --
2962 -------------------------
2964 -- SUBTYPE_MARK ::= subtype_NAME
2966 -----------------------
2967 -- 3.2.2 Constraint --
2968 -----------------------
2970 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2972 ------------------------------
2973 -- 3.2.2 Scalar Constraint --
2974 ------------------------------
2976 -- SCALAR_CONSTRAINT ::=
2977 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2979 ---------------------------------
2980 -- 3.2.2 Composite Constraint --
2981 ---------------------------------
2983 -- COMPOSITE_CONSTRAINT ::=
2984 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2986 -------------------------------
2987 -- 3.3.1 Object Declaration --
2988 -------------------------------
2990 -- OBJECT_DECLARATION ::=
2991 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2992 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2993 -- [ASPECT_SPECIFICATIONS];
2994 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2995 -- ACCESS_DEFINITION [:= EXPRESSION]
2996 -- [ASPECT_SPECIFICATIONS];
2997 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2998 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2999 -- [ASPECT_SPECIFICATIONS];
3000 -- | SINGLE_TASK_DECLARATION
3001 -- | SINGLE_PROTECTED_DECLARATION
3003 -- Note: aliased is not permitted in Ada 83 mode
3005 -- The N_Object_Declaration node is only for the first three cases.
3006 -- Single task declaration is handled by P_Task (9.1)
3007 -- Single protected declaration is handled by P_protected (9.5)
3009 -- Although the syntax allows multiple identifiers in the list, the
3010 -- semantics is as though successive declarations were given with
3011 -- identical type definition and expression components. To simplify
3012 -- semantic processing, the parser represents a multiple declaration
3013 -- case as a sequence of single declarations, using the More_Ids and
3014 -- Prev_Ids flags to preserve the original source form as described
3015 -- in the section on "Handling of Defining Identifier Lists".
3017 -- The flag Has_Init_Expression is set if an initializing expression
3018 -- is present. Normally it is set if and only if Expression contains
3019 -- a non-empty value, but there is an exception to this. When the
3020 -- initializing expression is an aggregate which requires explicit
3021 -- assignments, the Expression field gets set to Empty, but this flag
3022 -- is still set, so we don't forget we had an initializing expression.
3024 -- Note: if a range check is required for the initialization
3025 -- expression then the Do_Range_Check flag is set in the Expression,
3026 -- with the check being done against the type given by the object
3027 -- definition, which is also the Etype of the defining identifier.
3029 -- Note: the contents of the Expression field must be ignored (i.e.
3030 -- treated as though it were Empty) if No_Initialization is set True.
3032 -- Note: the back end places some restrictions on the form of the
3033 -- Expression field. If the object being declared is Atomic, then
3034 -- the Expression may not have the form of an aggregate (since this
3035 -- might cause the back end to generate separate assignments). In this
3036 -- case the front end must generate an extra temporary and initialize
3037 -- this temporary as required (the temporary itself is not atomic).
3039 -- Note: there is no node kind for object definition. Instead, the
3040 -- corresponding field holds a subtype indication, an array type
3041 -- definition, or (Ada 2005, AI-406) an access definition.
3043 -- N_Object_Declaration
3044 -- Sloc points to first identifier
3045 -- Defining_Identifier (Node1)
3046 -- Aliased_Present (Flag4)
3047 -- Constant_Present (Flag17) set if CONSTANT appears
3048 -- Null_Exclusion_Present (Flag11)
3049 -- Object_Definition (Node4) subtype indic./array type def./access def.
3050 -- Expression (Node3) (set to Empty if not present)
3051 -- Handler_List_Entry (Node2-Sem)
3052 -- Corresponding_Generic_Association (Node5-Sem)
3053 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3054 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3055 -- No_Initialization (Flag13-Sem)
3056 -- Assignment_OK (Flag15-Sem)
3057 -- Exception_Junk (Flag8-Sem)
3058 -- Is_Subprogram_Descriptor (Flag16-Sem)
3059 -- Has_Init_Expression (Flag14)
3060 -- Suppress_Assignment_Checks (Flag18-Sem)
3062 -------------------------------------
3063 -- 3.3.1 Defining Identifier List --
3064 -------------------------------------
3066 -- DEFINING_IDENTIFIER_LIST ::=
3067 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
3069 -------------------------------
3070 -- 3.3.2 Number Declaration --
3071 -------------------------------
3073 -- NUMBER_DECLARATION ::=
3074 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
3076 -- Although the syntax allows multiple identifiers in the list, the
3077 -- semantics is as though successive declarations were given with
3078 -- identical expressions. To simplify semantic processing, the parser
3079 -- represents a multiple declaration case as a sequence of single
3080 -- declarations, using the More_Ids and Prev_Ids flags to preserve
3081 -- the original source form as described in the section on "Handling
3082 -- of Defining Identifier Lists".
3084 -- N_Number_Declaration
3085 -- Sloc points to first identifier
3086 -- Defining_Identifier (Node1)
3087 -- Expression (Node3)
3088 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3089 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3091 ----------------------------------
3092 -- 3.4 Derived Type Definition --
3093 ----------------------------------
3095 -- DERIVED_TYPE_DEFINITION ::=
3096 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
3097 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
3099 -- Note: ABSTRACT, LIMITED, and record extension part are not permitted
3100 -- in Ada 83 mode.
3102 -- Note: a record extension part is required if ABSTRACT is present
3104 -- N_Derived_Type_Definition
3105 -- Sloc points to NEW
3106 -- Abstract_Present (Flag4)
3107 -- Null_Exclusion_Present (Flag11) (set to False if not present)
3108 -- Subtype_Indication (Node5)
3109 -- Record_Extension_Part (Node3) (set to Empty if not present)
3110 -- Limited_Present (Flag17)
3111 -- Task_Present (Flag5) set in task interfaces
3112 -- Protected_Present (Flag6) set in protected interfaces
3113 -- Synchronized_Present (Flag7) set in interfaces
3114 -- Interface_List (List2) (set to No_List if none)
3115 -- Interface_Present (Flag16) set in abstract interfaces
3117 -- Note: Task_Present, Protected_Present, Synchronized_Present,
3118 -- Interface_List, and Interface_Present are used for abstract
3119 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3121 ---------------------------
3122 -- 3.5 Range Constraint --
3123 ---------------------------
3125 -- RANGE_CONSTRAINT ::= range RANGE
3127 -- N_Range_Constraint
3128 -- Sloc points to RANGE
3129 -- Range_Expression (Node4)
3131 ----------------
3132 -- 3.5 Range --
3133 ----------------
3135 -- RANGE ::=
3136 -- RANGE_ATTRIBUTE_REFERENCE
3137 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
3139 -- Note: the case of a range given as a range attribute reference
3140 -- appears directly in the tree as an attribute reference.
3142 -- Note: the field name for a reference to a range is Range_Expression
3143 -- rather than Range, because range is a reserved keyword in Ada.
3145 -- Note: the reason that this node has expression fields is that a
3146 -- range can appear as an operand of a membership test. The Etype
3147 -- field is the type of the range (we do NOT construct an implicit
3148 -- subtype to represent the range exactly).
3150 -- N_Range
3151 -- Sloc points to ..
3152 -- Low_Bound (Node1)
3153 -- High_Bound (Node2)
3154 -- Includes_Infinities (Flag11)
3155 -- plus fields for expression
3157 -- Note: if the range appears in a context, such as a subtype
3158 -- declaration, where range checks are required on one or both of
3159 -- the expression fields, then type conversion nodes are inserted
3160 -- to represent the required checks.
3162 ----------------------------------------
3163 -- 3.5.1 Enumeration Type Definition --
3164 ----------------------------------------
3166 -- ENUMERATION_TYPE_DEFINITION ::=
3167 -- (ENUMERATION_LITERAL_SPECIFICATION
3168 -- {, ENUMERATION_LITERAL_SPECIFICATION})
3170 -- Note: the Literals field in the node described below is null for
3171 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
3172 -- which special processing handles these types as special cases.
3174 -- N_Enumeration_Type_Definition
3175 -- Sloc points to left parenthesis
3176 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
3177 -- End_Label (Node4) (set to Empty if internally generated record)
3179 ----------------------------------------------
3180 -- 3.5.1 Enumeration Literal Specification --
3181 ----------------------------------------------
3183 -- ENUMERATION_LITERAL_SPECIFICATION ::=
3184 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
3186 ---------------------------------------
3187 -- 3.5.1 Defining Character Literal --
3188 ---------------------------------------
3190 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
3192 -- A defining character literal is an entity, which has additional
3193 -- fields depending on the setting of the Ekind field. These
3194 -- additional fields are defined (and access subprograms declared)
3195 -- in package Einfo.
3197 -- Note: N_Defining_Character_Literal is an extended node whose fields
3198 -- are deliberate layed out to match the layout of fields in an ordinary
3199 -- N_Character_Literal node allowing for easy alteration of a character
3200 -- literal node into a defining character literal node. For details, see
3201 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
3203 -- N_Defining_Character_Literal
3204 -- Sloc points to literal
3205 -- Chars (Name1) contains the Name_Id for the identifier
3206 -- Next_Entity (Node2-Sem)
3207 -- Scope (Node3-Sem)
3208 -- Etype (Node5-Sem)
3210 ------------------------------------
3211 -- 3.5.4 Integer Type Definition --
3212 ------------------------------------
3214 -- Note: there is an error in this rule in the latest version of the
3215 -- grammar, so we have retained the old rule pending clarification.
3217 -- INTEGER_TYPE_DEFINITION ::=
3218 -- SIGNED_INTEGER_TYPE_DEFINITION
3219 -- | MODULAR_TYPE_DEFINITION
3221 -------------------------------------------
3222 -- 3.5.4 Signed Integer Type Definition --
3223 -------------------------------------------
3225 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
3226 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3228 -- Note: the Low_Bound and High_Bound fields are set to Empty
3229 -- for integer types defined in package Standard.
3231 -- N_Signed_Integer_Type_Definition
3232 -- Sloc points to RANGE
3233 -- Low_Bound (Node1)
3234 -- High_Bound (Node2)
3236 ------------------------------------
3237 -- 3.5.4 Modular Type Definition --
3238 ------------------------------------
3240 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
3242 -- N_Modular_Type_Definition
3243 -- Sloc points to MOD
3244 -- Expression (Node3)
3246 ---------------------------------
3247 -- 3.5.6 Real Type Definition --
3248 ---------------------------------
3250 -- REAL_TYPE_DEFINITION ::=
3251 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
3253 --------------------------------------
3254 -- 3.5.7 Floating Point Definition --
3255 --------------------------------------
3257 -- FLOATING_POINT_DEFINITION ::=
3258 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
3260 -- Note: The Digits_Expression and Real_Range_Specifications fields
3261 -- are set to Empty for floating-point types declared in Standard.
3263 -- N_Floating_Point_Definition
3264 -- Sloc points to DIGITS
3265 -- Digits_Expression (Node2)
3266 -- Real_Range_Specification (Node4) (set to Empty if not present)
3268 -------------------------------------
3269 -- 3.5.7 Real Range Specification --
3270 -------------------------------------
3272 -- REAL_RANGE_SPECIFICATION ::=
3273 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3275 -- N_Real_Range_Specification
3276 -- Sloc points to RANGE
3277 -- Low_Bound (Node1)
3278 -- High_Bound (Node2)
3280 -----------------------------------
3281 -- 3.5.9 Fixed Point Definition --
3282 -----------------------------------
3284 -- FIXED_POINT_DEFINITION ::=
3285 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
3287 --------------------------------------------
3288 -- 3.5.9 Ordinary Fixed Point Definition --
3289 --------------------------------------------
3291 -- ORDINARY_FIXED_POINT_DEFINITION ::=
3292 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
3294 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3296 -- N_Ordinary_Fixed_Point_Definition
3297 -- Sloc points to DELTA
3298 -- Delta_Expression (Node3)
3299 -- Real_Range_Specification (Node4)
3301 -------------------------------------------
3302 -- 3.5.9 Decimal Fixed Point Definition --
3303 -------------------------------------------
3305 -- DECIMAL_FIXED_POINT_DEFINITION ::=
3306 -- delta static_EXPRESSION
3307 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
3309 -- Note: decimal types are not permitted in Ada 83 mode
3311 -- N_Decimal_Fixed_Point_Definition
3312 -- Sloc points to DELTA
3313 -- Delta_Expression (Node3)
3314 -- Digits_Expression (Node2)
3315 -- Real_Range_Specification (Node4) (set to Empty if not present)
3317 ------------------------------
3318 -- 3.5.9 Digits Constraint --
3319 ------------------------------
3321 -- DIGITS_CONSTRAINT ::=
3322 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
3324 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3325 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
3327 -- N_Digits_Constraint
3328 -- Sloc points to DIGITS
3329 -- Digits_Expression (Node2)
3330 -- Range_Constraint (Node4) (set to Empty if not present)
3332 --------------------------------
3333 -- 3.6 Array Type Definition --
3334 --------------------------------
3336 -- ARRAY_TYPE_DEFINITION ::=
3337 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
3339 -----------------------------------------
3340 -- 3.6 Unconstrained Array Definition --
3341 -----------------------------------------
3343 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
3344 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
3345 -- COMPONENT_DEFINITION
3347 -- Note: dimensionality of array is indicated by number of entries in
3348 -- the Subtype_Marks list, which has one entry for each dimension.
3350 -- N_Unconstrained_Array_Definition
3351 -- Sloc points to ARRAY
3352 -- Subtype_Marks (List2)
3353 -- Component_Definition (Node4)
3355 -----------------------------------
3356 -- 3.6 Index Subtype Definition --
3357 -----------------------------------
3359 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
3361 -- There is no explicit node in the tree for an index subtype
3362 -- definition since the N_Unconstrained_Array_Definition node
3363 -- incorporates the type marks which appear in this context.
3365 ---------------------------------------
3366 -- 3.6 Constrained Array Definition --
3367 ---------------------------------------
3369 -- CONSTRAINED_ARRAY_DEFINITION ::=
3370 -- array (DISCRETE_SUBTYPE_DEFINITION
3371 -- {, DISCRETE_SUBTYPE_DEFINITION})
3372 -- of COMPONENT_DEFINITION
3374 -- Note: dimensionality of array is indicated by number of entries
3375 -- in the Discrete_Subtype_Definitions list, which has one entry
3376 -- for each dimension.
3378 -- N_Constrained_Array_Definition
3379 -- Sloc points to ARRAY
3380 -- Discrete_Subtype_Definitions (List2)
3381 -- Component_Definition (Node4)
3383 -- Note: although the language allows the full syntax for discrete
3384 -- subtype definitions (i.e. a discrete subtype indication or a range),
3385 -- in the generated tree, we always rewrite these as N_Range nodes.
3387 --------------------------------------
3388 -- 3.6 Discrete Subtype Definition --
3389 --------------------------------------
3391 -- DISCRETE_SUBTYPE_DEFINITION ::=
3392 -- discrete_SUBTYPE_INDICATION | RANGE
3394 -------------------------------
3395 -- 3.6 Component Definition --
3396 -------------------------------
3398 -- COMPONENT_DEFINITION ::=
3399 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
3401 -- Note: although the syntax does not permit a component definition to
3402 -- be an anonymous array (and the parser will diagnose such an attempt
3403 -- with an appropriate message), it is possible for anonymous arrays
3404 -- to appear as component definitions. The semantics and back end handle
3405 -- this case properly, and the expander in fact generates such cases.
3406 -- Access_Definition is an optional field that gives support to
3407 -- Ada 2005 (AI-230). The parser generates nodes that have either the
3408 -- Subtype_Indication field or else the Access_Definition field.
3410 -- N_Component_Definition
3411 -- Sloc points to ALIASED, ACCESS, or to first token of subtype mark
3412 -- Aliased_Present (Flag4)
3413 -- Null_Exclusion_Present (Flag11)
3414 -- Subtype_Indication (Node5) (set to Empty if not present)
3415 -- Access_Definition (Node3) (set to Empty if not present)
3417 -----------------------------
3418 -- 3.6.1 Index Constraint --
3419 -----------------------------
3421 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3423 -- It is not in general possible to distinguish between discriminant
3424 -- constraints and index constraints at parse time, since a simple
3425 -- name could be either the subtype mark of a discrete range, or an
3426 -- expression in a discriminant association with no name. Either
3427 -- entry appears simply as the name, and the semantic parse must
3428 -- distinguish between the two cases. Thus we use a common tree
3429 -- node format for both of these constraint types.
3431 -- See Discriminant_Constraint for format of node
3433 ---------------------------
3434 -- 3.6.1 Discrete Range --
3435 ---------------------------
3437 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3439 ----------------------------
3440 -- 3.7 Discriminant Part --
3441 ----------------------------
3443 -- DISCRIMINANT_PART ::=
3444 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3446 ------------------------------------
3447 -- 3.7 Unknown Discriminant Part --
3448 ------------------------------------
3450 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
3452 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
3454 -- There is no explicit node in the tree for an unknown discriminant
3455 -- part. Instead the Unknown_Discriminants_Present flag is set in the
3456 -- parent node.
3458 ----------------------------------
3459 -- 3.7 Known Discriminant Part --
3460 ----------------------------------
3462 -- KNOWN_DISCRIMINANT_PART ::=
3463 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3465 -------------------------------------
3466 -- 3.7 Discriminant Specification --
3467 -------------------------------------
3469 -- DISCRIMINANT_SPECIFICATION ::=
3470 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3471 -- [:= DEFAULT_EXPRESSION]
3472 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3473 -- [:= DEFAULT_EXPRESSION]
3475 -- Although the syntax allows multiple identifiers in the list, the
3476 -- semantics is as though successive specifications were given with
3477 -- identical type definition and expression components. To simplify
3478 -- semantic processing, the parser represents a multiple declaration
3479 -- case as a sequence of single specifications, using the More_Ids and
3480 -- Prev_Ids flags to preserve the original source form as described
3481 -- in the section on "Handling of Defining Identifier Lists".
3483 -- N_Discriminant_Specification
3484 -- Sloc points to first identifier
3485 -- Defining_Identifier (Node1)
3486 -- Null_Exclusion_Present (Flag11)
3487 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3488 -- Expression (Node3) (set to Empty if no default expression)
3489 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3490 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3492 -----------------------------
3493 -- 3.7 Default Expression --
3494 -----------------------------
3496 -- DEFAULT_EXPRESSION ::= EXPRESSION
3498 ------------------------------------
3499 -- 3.7.1 Discriminant Constraint --
3500 ------------------------------------
3502 -- DISCRIMINANT_CONSTRAINT ::=
3503 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3505 -- It is not in general possible to distinguish between discriminant
3506 -- constraints and index constraints at parse time, since a simple
3507 -- name could be either the subtype mark of a discrete range, or an
3508 -- expression in a discriminant association with no name. Either
3509 -- entry appears simply as the name, and the semantic parse must
3510 -- distinguish between the two cases. Thus we use a common tree
3511 -- node format for both of these constraint types.
3513 -- N_Index_Or_Discriminant_Constraint
3514 -- Sloc points to left paren
3515 -- Constraints (List1) points to list of discrete ranges or
3516 -- discriminant associations
3518 -------------------------------------
3519 -- 3.7.1 Discriminant Association --
3520 -------------------------------------
3522 -- DISCRIMINANT_ASSOCIATION ::=
3523 -- [discriminant_SELECTOR_NAME
3524 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3526 -- Note: a discriminant association that has no selector name list
3527 -- appears directly as an expression in the tree.
3529 -- N_Discriminant_Association
3530 -- Sloc points to first token of discriminant association
3531 -- Selector_Names (List1) (always non-empty, since if no selector
3532 -- names are present, this node is not used, see comment above)
3533 -- Expression (Node3)
3535 ---------------------------------
3536 -- 3.8 Record Type Definition --
3537 ---------------------------------
3539 -- RECORD_TYPE_DEFINITION ::=
3540 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3542 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3544 -- There is no explicit node in the tree for a record type definition.
3545 -- Instead the flags for Tagged_Present and Limited_Present appear in
3546 -- the N_Record_Definition node for a record definition appearing in
3547 -- the context of a record type definition.
3549 ----------------------------
3550 -- 3.8 Record Definition --
3551 ----------------------------
3553 -- RECORD_DEFINITION ::=
3554 -- record
3555 -- COMPONENT_LIST
3556 -- end record
3557 -- | null record
3559 -- Note: the Abstract_Present, Tagged_Present, and Limited_Present
3560 -- flags appear only for a record definition appearing in a record
3561 -- type definition.
3563 -- Note: the NULL RECORD case is not permitted in Ada 83
3565 -- N_Record_Definition
3566 -- Sloc points to RECORD or NULL
3567 -- End_Label (Node4) (set to Empty if internally generated record)
3568 -- Abstract_Present (Flag4)
3569 -- Tagged_Present (Flag15)
3570 -- Limited_Present (Flag17)
3571 -- Component_List (Node1) empty in null record case
3572 -- Null_Present (Flag13) set in null record case
3573 -- Task_Present (Flag5) set in task interfaces
3574 -- Protected_Present (Flag6) set in protected interfaces
3575 -- Synchronized_Present (Flag7) set in interfaces
3576 -- Interface_Present (Flag16) set in abstract interfaces
3577 -- Interface_List (List2) (set to No_List if none)
3579 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3580 -- Interface_List and Interface_Present are used for abstract
3581 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3583 -------------------------
3584 -- 3.8 Component List --
3585 -------------------------
3587 -- COMPONENT_LIST ::=
3588 -- COMPONENT_ITEM {COMPONENT_ITEM}
3589 -- | {COMPONENT_ITEM} VARIANT_PART
3590 -- | null;
3592 -- N_Component_List
3593 -- Sloc points to first token of component list
3594 -- Component_Items (List3)
3595 -- Variant_Part (Node4) (set to Empty if no variant part)
3596 -- Null_Present (Flag13)
3598 -------------------------
3599 -- 3.8 Component Item --
3600 -------------------------
3602 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3604 -- Note: A component item can also be a pragma, and in the tree
3605 -- that is obtained after semantic processing, a component item
3606 -- can be an N_Null node resulting from a non-recognized pragma.
3608 --------------------------------
3609 -- 3.8 Component Declaration --
3610 --------------------------------
3612 -- COMPONENT_DECLARATION ::=
3613 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3614 -- [:= DEFAULT_EXPRESSION]
3615 -- [ASPECT_SPECIFICATIONS];
3617 -- Note: although the syntax does not permit a component definition to
3618 -- be an anonymous array (and the parser will diagnose such an attempt
3619 -- with an appropriate message), it is possible for anonymous arrays
3620 -- to appear as component definitions. The semantics and back end handle
3621 -- this case properly, and the expander in fact generates such cases.
3623 -- Although the syntax allows multiple identifiers in the list, the
3624 -- semantics is as though successive declarations were given with the
3625 -- same component definition and expression components. To simplify
3626 -- semantic processing, the parser represents a multiple declaration
3627 -- case as a sequence of single declarations, using the More_Ids and
3628 -- Prev_Ids flags to preserve the original source form as described
3629 -- in the section on "Handling of Defining Identifier Lists".
3631 -- N_Component_Declaration
3632 -- Sloc points to first identifier
3633 -- Defining_Identifier (Node1)
3634 -- Component_Definition (Node4)
3635 -- Expression (Node3) (set to Empty if no default expression)
3636 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3637 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3639 -------------------------
3640 -- 3.8.1 Variant Part --
3641 -------------------------
3643 -- VARIANT_PART ::=
3644 -- case discriminant_DIRECT_NAME is
3645 -- VARIANT {VARIANT}
3646 -- end case;
3648 -- Note: the variants list can contain pragmas as well as variants.
3649 -- In a properly formed program there is at least one variant.
3651 -- N_Variant_Part
3652 -- Sloc points to CASE
3653 -- Name (Node2)
3654 -- Variants (List1)
3656 --------------------
3657 -- 3.8.1 Variant --
3658 --------------------
3660 -- VARIANT ::=
3661 -- when DISCRETE_CHOICE_LIST =>
3662 -- COMPONENT_LIST
3664 -- N_Variant
3665 -- Sloc points to WHEN
3666 -- Discrete_Choices (List4)
3667 -- Component_List (Node1)
3668 -- Enclosing_Variant (Node2-Sem)
3669 -- Present_Expr (Uint3-Sem)
3670 -- Dcheck_Function (Node5-Sem)
3671 -- Has_SP_Choice (Flag15-Sem)
3673 -- Note: in the list of Discrete_Choices, the tree passed to the back
3674 -- end does not have choice entries corresponding to names of statically
3675 -- predicated subtypes. Such entries are always expanded out to the list
3676 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3677 -- mode also has this expansion, but done with a proper Rewrite call on
3678 -- the N_Variant node so that ASIS can properly retrieve the original.
3680 ---------------------------------
3681 -- 3.8.1 Discrete Choice List --
3682 ---------------------------------
3684 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3686 ----------------------------
3687 -- 3.8.1 Discrete Choice --
3688 ----------------------------
3690 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3692 -- Note: in Ada 83 mode, the expression must be a simple expression
3694 -- The only choice that appears explicitly is the OTHERS choice, as
3695 -- defined here. Other cases of discrete choice (expression and
3696 -- discrete range) appear directly. This production is also used
3697 -- for the OTHERS possibility of an exception choice.
3699 -- Note: in accordance with the syntax, the parser does not check that
3700 -- OTHERS appears at the end on its own in a choice list context. This
3701 -- is a semantic check.
3703 -- N_Others_Choice
3704 -- Sloc points to OTHERS
3705 -- Others_Discrete_Choices (List1-Sem)
3706 -- All_Others (Flag11-Sem)
3708 ----------------------------------
3709 -- 3.9.1 Record Extension Part --
3710 ----------------------------------
3712 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3714 -- Note: record extension parts are not permitted in Ada 83 mode
3716 --------------------------------------
3717 -- 3.9.4 Interface Type Definition --
3718 --------------------------------------
3720 -- INTERFACE_TYPE_DEFINITION ::=
3721 -- [limited | task | protected | synchronized]
3722 -- interface [interface_list]
3724 -- Note: Interfaces are implemented with N_Record_Definition and
3725 -- N_Derived_Type_Definition nodes because most of the support
3726 -- for the analysis of abstract types has been reused to
3727 -- analyze abstract interfaces.
3729 ----------------------------------
3730 -- 3.10 Access Type Definition --
3731 ----------------------------------
3733 -- ACCESS_TYPE_DEFINITION ::=
3734 -- ACCESS_TO_OBJECT_DEFINITION
3735 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3737 --------------------------
3738 -- 3.10 Null Exclusion --
3739 --------------------------
3741 -- NULL_EXCLUSION ::= not null
3743 ---------------------------------------
3744 -- 3.10 Access To Object Definition --
3745 ---------------------------------------
3747 -- ACCESS_TO_OBJECT_DEFINITION ::=
3748 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3749 -- SUBTYPE_INDICATION
3751 -- N_Access_To_Object_Definition
3752 -- Sloc points to ACCESS
3753 -- All_Present (Flag15)
3754 -- Null_Exclusion_Present (Flag11)
3755 -- Null_Excluding_Subtype (Flag16)
3756 -- Subtype_Indication (Node5)
3757 -- Constant_Present (Flag17)
3759 -----------------------------------
3760 -- 3.10 General Access Modifier --
3761 -----------------------------------
3763 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3765 -- Note: general access modifiers are not permitted in Ada 83 mode
3767 -- There is no explicit node in the tree for general access modifier.
3768 -- Instead the All_Present or Constant_Present flags are set in the
3769 -- parent node.
3771 -------------------------------------------
3772 -- 3.10 Access To Subprogram Definition --
3773 -------------------------------------------
3775 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3776 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3777 -- | [NULL_EXCLUSION] access [protected] function
3778 -- PARAMETER_AND_RESULT_PROFILE
3780 -- Note: access to subprograms are not permitted in Ada 83 mode
3782 -- N_Access_Function_Definition
3783 -- Sloc points to ACCESS
3784 -- Null_Exclusion_Present (Flag11)
3785 -- Null_Exclusion_In_Return_Present (Flag14)
3786 -- Protected_Present (Flag6)
3787 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3788 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3790 -- N_Access_Procedure_Definition
3791 -- Sloc points to ACCESS
3792 -- Null_Exclusion_Present (Flag11)
3793 -- Protected_Present (Flag6)
3794 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3796 -----------------------------
3797 -- 3.10 Access Definition --
3798 -----------------------------
3800 -- ACCESS_DEFINITION ::=
3801 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3802 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3804 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3806 -- N_Access_Definition
3807 -- Sloc points to ACCESS
3808 -- Null_Exclusion_Present (Flag11)
3809 -- All_Present (Flag15)
3810 -- Constant_Present (Flag17)
3811 -- Subtype_Mark (Node4)
3812 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3814 -----------------------------------------
3815 -- 3.10.1 Incomplete Type Declaration --
3816 -----------------------------------------
3818 -- INCOMPLETE_TYPE_DECLARATION ::=
3819 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3821 -- N_Incomplete_Type_Declaration
3822 -- Sloc points to TYPE
3823 -- Defining_Identifier (Node1)
3824 -- Discriminant_Specifications (List4) (set to No_List if no
3825 -- discriminant part, or if the discriminant part is an
3826 -- unknown discriminant part)
3827 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3828 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3829 -- Tagged_Present (Flag15)
3831 ----------------------------
3832 -- 3.11 Declarative Part --
3833 ----------------------------
3835 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3837 -- Note: although the parser enforces the syntactic requirement that
3838 -- a declarative part can contain only declarations, the semantic
3839 -- processing may add statements to the list of actions in a
3840 -- declarative part, so the code generator should be prepared
3841 -- to accept a statement in this position.
3843 ----------------------------
3844 -- 3.11 Declarative Item --
3845 ----------------------------
3847 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3849 ----------------------------------
3850 -- 3.11 Basic Declarative Item --
3851 ----------------------------------
3853 -- BASIC_DECLARATIVE_ITEM ::=
3854 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3856 ----------------
3857 -- 3.11 Body --
3858 ----------------
3860 -- BODY ::= PROPER_BODY | BODY_STUB
3862 -----------------------
3863 -- 3.11 Proper Body --
3864 -----------------------
3866 -- PROPER_BODY ::=
3867 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3869 ---------------
3870 -- 4.1 Name --
3871 ---------------
3873 -- NAME ::=
3874 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3875 -- | INDEXED_COMPONENT | SLICE
3876 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3877 -- | TYPE_CONVERSION | FUNCTION_CALL
3878 -- | CHARACTER_LITERAL
3880 ----------------------
3881 -- 4.1 Direct Name --
3882 ----------------------
3884 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3886 -----------------
3887 -- 4.1 Prefix --
3888 -----------------
3890 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3892 -------------------------------
3893 -- 4.1 Explicit Dereference --
3894 -------------------------------
3896 -- EXPLICIT_DEREFERENCE ::= NAME . all
3898 -- N_Explicit_Dereference
3899 -- Sloc points to ALL
3900 -- Prefix (Node3)
3901 -- Actual_Designated_Subtype (Node4-Sem)
3902 -- Has_Dereference_Action (Flag13-Sem)
3903 -- Atomic_Sync_Required (Flag14-Sem)
3904 -- plus fields for expression
3906 -------------------------------
3907 -- 4.1 Implicit Dereference --
3908 -------------------------------
3910 -- IMPLICIT_DEREFERENCE ::= NAME
3912 ------------------------------
3913 -- 4.1.1 Indexed Component --
3914 ------------------------------
3916 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3918 -- Note: the parser may generate this node in some situations where it
3919 -- should be a function call. The semantic pass must correct this
3920 -- misidentification (which is inevitable at the parser level).
3922 -- N_Indexed_Component
3923 -- Sloc contains a copy of the Sloc value of the Prefix
3924 -- Prefix (Node3)
3925 -- Expressions (List1)
3926 -- Generalized_Indexing (Node4-Sem)
3927 -- Atomic_Sync_Required (Flag14-Sem)
3928 -- plus fields for expression
3930 -- Note: if any of the subscripts requires a range check, then the
3931 -- Do_Range_Check flag is set on the corresponding expression, with
3932 -- the index type being determined from the type of the Prefix, which
3933 -- references the array being indexed.
3935 -- Note: in a fully analyzed and expanded indexed component node, and
3936 -- hence in any such node that gigi sees, if the prefix is an access
3937 -- type, then an explicit dereference operation has been inserted.
3939 ------------------
3940 -- 4.1.2 Slice --
3941 ------------------
3943 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3945 -- Note: an implicit subtype is created to describe the resulting
3946 -- type, so that the bounds of this type are the bounds of the slice.
3948 -- N_Slice
3949 -- Sloc points to first token of prefix
3950 -- Prefix (Node3)
3951 -- Discrete_Range (Node4)
3952 -- plus fields for expression
3954 -------------------------------
3955 -- 4.1.3 Selected Component --
3956 -------------------------------
3958 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3960 -- Note: selected components that are semantically expanded names get
3961 -- changed during semantic processing into the separate N_Expanded_Name
3962 -- node. See description of this node in the section on semantic nodes.
3964 -- N_Selected_Component
3965 -- Sloc points to the period
3966 -- Prefix (Node3)
3967 -- Selector_Name (Node2)
3968 -- Associated_Node (Node4-Sem)
3969 -- Do_Discriminant_Check (Flag3-Sem)
3970 -- Is_In_Discriminant_Check (Flag11-Sem)
3971 -- Atomic_Sync_Required (Flag14-Sem)
3972 -- Is_Prefixed_Call (Flag17-Sem)
3973 -- plus fields for expression
3975 --------------------------
3976 -- 4.1.3 Selector Name --
3977 --------------------------
3979 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3981 --------------------------------
3982 -- 4.1.4 Attribute Reference --
3983 --------------------------------
3985 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3987 -- Note: the syntax is quite ambiguous at this point. Consider:
3989 -- A'Length (X) X is part of the attribute designator
3990 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3991 -- A'Class (X) X is the expression of a type conversion
3993 -- It would be possible for the parser to distinguish these cases
3994 -- by looking at the attribute identifier. However, that would mean
3995 -- more work in introducing new implementation defined attributes,
3996 -- and also it would mean that special processing for attributes
3997 -- would be scattered around, instead of being centralized in the
3998 -- semantic routine that handles an N_Attribute_Reference node.
3999 -- Consequently, the parser in all the above cases stores the
4000 -- expression (X in these examples) as a single element list in
4001 -- in the Expressions field of the N_Attribute_Reference node.
4003 -- Similarly, for attributes like Max which take two arguments,
4004 -- we store the two arguments as a two element list in the
4005 -- Expressions field. Of course it is clear at parse time that
4006 -- this case is really a function call with an attribute as the
4007 -- prefix, but it turns out to be convenient to handle the two
4008 -- argument case in a similar manner to the one argument case,
4009 -- and indeed in general the parser will accept any number of
4010 -- expressions in this position and store them as a list in the
4011 -- attribute reference node. This allows for future addition of
4012 -- attributes that take more than two arguments.
4014 -- Note: named associates are not permitted in function calls where
4015 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
4016 -- to skip the normal subprogram argument processing.
4018 -- Note: for the attributes whose designators are technically keywords,
4019 -- i.e. digits, access, delta, range, the Attribute_Name field contains
4020 -- the corresponding name, even though no identifier is involved.
4022 -- Note: the generated code may contain stream attributes applied to
4023 -- limited types for which no stream routines exist officially. In such
4024 -- case, the result is to use the stream attribute for the underlying
4025 -- full type, or in the case of a protected type, the components
4026 -- (including any discriminants) are merely streamed in order.
4028 -- See Exp_Attr for a complete description of which attributes are
4029 -- passed onto Gigi, and which are handled entirely by the front end.
4031 -- Gigi restriction: For the Pos attribute, the prefix cannot be
4032 -- a non-standard enumeration type or a nonzero/zero semantics
4033 -- boolean type, so the value is simply the stored representation.
4035 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
4036 -- references a subprogram that is a renaming, then the front end must
4037 -- rewrite the attribute to refer directly to the renamed entity.
4039 -- Note: syntactically the prefix of an attribute reference must be a
4040 -- name, and this (somewhat artificial) requirement is enforced by the
4041 -- parser. However, for many attributes, such as 'Valid, it is quite
4042 -- reasonable to apply the attribute to any value, and hence to any
4043 -- expression. Internally in the tree, the prefix is an expression which
4044 -- does not have to be a name, and this is handled fine by the semantic
4045 -- analysis and expansion, and back ends. This arises for the case of
4046 -- attribute references built by the expander (e.g. 'Valid for the case
4047 -- of an implicit validity check).
4049 -- Note: In generated code, the Address and Unrestricted_Access
4050 -- attributes can be applied to any expression, and the meaning is
4051 -- to create an object containing the value (the object is in the
4052 -- current stack frame), and pass the address of this value. If the
4053 -- Must_Be_Byte_Aligned flag is set, then the object whose address
4054 -- is taken must be on a byte (storage unit) boundary, and if it is
4055 -- not (or may not be), then the generated code must create a copy
4056 -- that is byte aligned, and pass the address of this copy.
4058 -- N_Attribute_Reference
4059 -- Sloc points to apostrophe
4060 -- Prefix (Node3) (general expression, see note above)
4061 -- Attribute_Name (Name2) identifier name from attribute designator
4062 -- Expressions (List1) (set to No_List if no associated expressions)
4063 -- Entity (Node4-Sem) used if the attribute yields a type
4064 -- Associated_Node (Node4-Sem)
4065 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
4066 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
4067 -- Header_Size_Added (Flag11-Sem)
4068 -- Redundant_Use (Flag13-Sem)
4069 -- Must_Be_Byte_Aligned (Flag14-Sem)
4070 -- plus fields for expression
4072 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
4073 -- into equivalent if expressions, properly taking care of side effects.
4075 ---------------------------------
4076 -- 4.1.4 Attribute Designator --
4077 ---------------------------------
4079 -- ATTRIBUTE_DESIGNATOR ::=
4080 -- IDENTIFIER [(static_EXPRESSION)]
4081 -- | access | delta | digits
4083 -- There is no explicit node in the tree for an attribute designator.
4084 -- Instead the Attribute_Name and Expressions fields of the parent
4085 -- node (N_Attribute_Reference node) hold the information.
4087 -- Note: if ACCESS, DELTA, or DIGITS appears in an attribute
4088 -- designator, then they are treated as identifiers internally
4089 -- rather than the keywords of the same name.
4091 --------------------------------------
4092 -- 4.1.4 Range Attribute Reference --
4093 --------------------------------------
4095 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
4097 -- A range attribute reference is represented in the tree using the
4098 -- normal N_Attribute_Reference node.
4100 ---------------------------------------
4101 -- 4.1.4 Range Attribute Designator --
4102 ---------------------------------------
4104 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
4106 -- A range attribute designator is represented in the tree using the
4107 -- normal N_Attribute_Reference node.
4109 --------------------
4110 -- 4.3 Aggregate --
4111 --------------------
4113 -- AGGREGATE ::=
4114 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
4116 -----------------------------
4117 -- 4.3.1 Record Aggregate --
4118 -----------------------------
4120 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
4122 -- N_Aggregate
4123 -- Sloc points to left parenthesis
4124 -- Expressions (List1) (set to No_List if none or null record case)
4125 -- Component_Associations (List2) (set to No_List if none)
4126 -- Null_Record_Present (Flag17)
4127 -- Aggregate_Bounds (Node3-Sem)
4128 -- Associated_Node (Node4-Sem)
4129 -- Compile_Time_Known_Aggregate (Flag18-Sem)
4130 -- Expansion_Delayed (Flag11-Sem)
4131 -- Has_Self_Reference (Flag13-Sem)
4132 -- plus fields for expression
4134 -- Note: this structure is used for both record and array aggregates
4135 -- since the two cases are not separable by the parser. The parser
4136 -- makes no attempt to enforce consistency here, so it is up to the
4137 -- semantic phase to make sure that the aggregate is consistent (i.e.
4138 -- that it is not a "half-and-half" case that mixes record and array
4139 -- syntax. In particular, for a record aggregate, the expressions
4140 -- field will be set if there are positional associations.
4142 -- Note: N_Aggregate is not used for all aggregates; in particular,
4143 -- there is a separate node kind for extension aggregates.
4145 -- Note: gigi/gcc can handle array aggregates correctly providing that
4146 -- they are entirely positional, and the array subtype involved has a
4147 -- known at compile time length and is not bit packed, or a convention
4148 -- Fortran array with more than one dimension. If these conditions
4149 -- are not met, then the front end must translate the aggregate into
4150 -- an appropriate set of assignments into a temporary.
4152 -- Note: for the record aggregate case, gigi/gcc can handle most cases
4153 -- of record aggregates, including those for packed, and rep-claused
4154 -- records, and also variant records, providing that there are no
4155 -- variable length fields whose size is not known at compile time,
4156 -- and providing that the aggregate is presented in fully named form.
4158 -- The other situation in which array aggregates and record aggregates
4159 -- cannot be passed to the back end is if assignment to one or more
4160 -- components itself needs expansion, e.g. in the case of an assignment
4161 -- of an object of a controlled type. In such cases, the front end
4162 -- must expand the aggregate to a series of assignments, and apply
4163 -- the required expansion to the individual assignment statements.
4165 ----------------------------------------------
4166 -- 4.3.1 Record Component Association List --
4167 ----------------------------------------------
4169 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
4170 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
4171 -- | null record
4173 -- There is no explicit node in the tree for a record component
4174 -- association list. Instead the Null_Record_Present flag is set in
4175 -- the parent node for the NULL RECORD case.
4177 ------------------------------------------------------
4178 -- 4.3.1 Record Component Association (also 4.3.3) --
4179 ------------------------------------------------------
4181 -- RECORD_COMPONENT_ASSOCIATION ::=
4182 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
4184 -- N_Component_Association
4185 -- Sloc points to first selector name
4186 -- Choices (List1)
4187 -- Loop_Actions (List2-Sem)
4188 -- Expression (Node3) (empty if Box_Present)
4189 -- Box_Present (Flag15)
4190 -- Inherited_Discriminant (Flag13)
4192 -- Note: this structure is used for both record component associations
4193 -- and array component associations, since the two cases aren't always
4194 -- separable by the parser. The choices list may represent either a
4195 -- list of selector names in the record aggregate case, or a list of
4196 -- discrete choices in the array aggregate case or an N_Others_Choice
4197 -- node (which appears as a singleton list). Box_Present gives support
4198 -- to Ada 2005 (AI-287).
4200 ----------------------------------
4201 -- 4.3.1 Component Choice List --
4202 ----------------------------------
4204 -- COMPONENT_CHOICE_LIST ::=
4205 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
4206 -- | others
4208 -- The entries of a component choice list appear in the Choices list of
4209 -- the associated N_Component_Association, as either selector names, or
4210 -- as an N_Others_Choice node.
4212 --------------------------------
4213 -- 4.3.2 Extension Aggregate --
4214 --------------------------------
4216 -- EXTENSION_AGGREGATE ::=
4217 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
4219 -- Note: extension aggregates are not permitted in Ada 83 mode
4221 -- N_Extension_Aggregate
4222 -- Sloc points to left parenthesis
4223 -- Ancestor_Part (Node3)
4224 -- Associated_Node (Node4-Sem)
4225 -- Expressions (List1) (set to No_List if none or null record case)
4226 -- Component_Associations (List2) (set to No_List if none)
4227 -- Null_Record_Present (Flag17)
4228 -- Expansion_Delayed (Flag11-Sem)
4229 -- Has_Self_Reference (Flag13-Sem)
4230 -- plus fields for expression
4232 --------------------------
4233 -- 4.3.2 Ancestor Part --
4234 --------------------------
4236 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
4238 ----------------------------
4239 -- 4.3.3 Array Aggregate --
4240 ----------------------------
4242 -- ARRAY_AGGREGATE ::=
4243 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
4245 ---------------------------------------
4246 -- 4.3.3 Positional Array Aggregate --
4247 ---------------------------------------
4249 -- POSITIONAL_ARRAY_AGGREGATE ::=
4250 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
4251 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
4253 -- See Record_Aggregate (4.3.1) for node structure
4255 ----------------------------------
4256 -- 4.3.3 Named Array Aggregate --
4257 ----------------------------------
4259 -- NAMED_ARRAY_AGGREGATE ::=
4260 -- (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
4262 -- See Record_Aggregate (4.3.1) for node structure
4264 ----------------------------------------
4265 -- 4.3.3 Array Component Association --
4266 ----------------------------------------
4268 -- ARRAY_COMPONENT_ASSOCIATION ::=
4269 -- DISCRETE_CHOICE_LIST => EXPRESSION
4270 -- | ITERATED_COMPONENT_ASSOCIATION
4272 -- See Record_Component_Association (4.3.1) for node structure
4273 -- The iterated_component_association is introduced into the
4274 -- Corrigendum of Ada_2012 by AI12-061.
4276 ------------------------------------------
4277 -- 4.3.3 Iterated component Association --
4278 ------------------------------------------
4280 -- ITERATED_COMPONENT_ASSOCIATION ::=
4281 -- for DEFINING_IDENTIFIER in DISCRETE_CHOICE_LIST => EXPRESSION
4283 -- N_Iterated_Component_Association
4284 -- Sloc points to FOR
4285 -- Defining_Identifier (Node1)
4286 -- Loop_Actions (List2-Sem)
4287 -- Expression (Node3)
4288 -- Discrete_Choices (List4)
4289 -- Box_Present (Flag15)
4291 -- Note that Box_Present is always False, but it is intentionally added
4292 -- for completeness.
4294 ----------------------------
4295 -- 4.3.4 Delta Aggregate --
4296 ----------------------------
4298 -- N_Delta_Aggregate
4299 -- Sloc points to left parenthesis
4300 -- Expression (Node3)
4301 -- Component_Associations (List2)
4303 --------------------------------------------------
4304 -- 4.4 Expression/Relation/Term/Factor/Primary --
4305 --------------------------------------------------
4307 -- EXPRESSION ::=
4308 -- RELATION {LOGICAL_OPERATOR RELATION}
4310 -- CHOICE_EXPRESSION ::=
4311 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
4313 -- CHOICE_RELATION ::=
4314 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
4316 -- RELATION ::=
4317 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4318 -- | RAISE_EXPRESSION
4320 -- MEMBERSHIP_CHOICE_LIST ::=
4321 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4323 -- MEMBERSHIP_CHOICE ::=
4324 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4326 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
4328 -- SIMPLE_EXPRESSION ::=
4329 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
4331 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
4333 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
4335 -- No nodes are generated for any of these constructs. Instead, the
4336 -- node for the operator appears directly. When we refer to an
4337 -- expression in this description, we mean any of the possible
4338 -- constituent components of an expression (e.g. identifier is
4339 -- an example of an expression).
4341 -- Note: the above syntax is that Ada 2012 syntax which restricts
4342 -- choice relations to simple expressions to avoid ambiguities in
4343 -- some contexts with set membership notation. It has been decided
4344 -- that in retrospect, the Ada 95 change allowing general expressions
4345 -- in this context was a mistake, so we have reverted to the above
4346 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
4347 -- expressions was there in Ada 83 from the start).
4349 ------------------
4350 -- 4.4 Primary --
4351 ------------------
4353 -- PRIMARY ::=
4354 -- NUMERIC_LITERAL | null
4355 -- | STRING_LITERAL | AGGREGATE
4356 -- | NAME | QUALIFIED_EXPRESSION
4357 -- | ALLOCATOR | (EXPRESSION)
4359 -- Usually there is no explicit node in the tree for primary. Instead
4360 -- the constituent (e.g. AGGREGATE) appears directly. There are two
4361 -- exceptions. First, there is an explicit node for a null primary.
4363 -- N_Null
4364 -- Sloc points to NULL
4365 -- plus fields for expression
4367 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
4368 -- that the parser keep track of which subexpressions are enclosed
4369 -- in parentheses, and how many levels of parentheses are used. This
4370 -- information is required for optimization purposes, and also for
4371 -- some semantic checks (e.g. (((1))) in a procedure spec does not
4372 -- conform with ((((1)))) in the body).
4374 -- The parentheses are recorded by keeping a Paren_Count field in every
4375 -- subexpression node (it is actually present in all nodes, but only
4376 -- used in subexpression nodes). This count records the number of
4377 -- levels of parentheses. If the number of levels in the source exceeds
4378 -- the maximum accommodated by this count, then the count is simply left
4379 -- at the maximum value. This means that there are some pathological
4380 -- cases of failure to detect conformance failures (e.g. an expression
4381 -- with 500 levels of parens will conform with one with 501 levels),
4382 -- but we do not need to lose sleep over this.
4384 -- Historical note: in versions of GNAT prior to 1.75, there was a node
4385 -- type N_Parenthesized_Expression used to accurately record unlimited
4386 -- numbers of levels of parentheses. However, it turned out to be a
4387 -- real nuisance to have to take into account the possible presence of
4388 -- this node during semantic analysis, since basically parentheses have
4389 -- zero relevance to semantic analysis.
4391 -- Note: the level of parentheses always present in things like
4392 -- aggregates does not count, only the parentheses in the primary
4393 -- (EXPRESSION) affect the setting of the Paren_Count field.
4395 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
4396 -- treated as though it were Empty) if No_Initialization is set True.
4398 --------------------------------------
4399 -- 4.5 Short-Circuit Control Forms --
4400 --------------------------------------
4402 -- EXPRESSION ::=
4403 -- RELATION {and then RELATION} | RELATION {or else RELATION}
4405 -- Gigi restriction: For both these control forms, the operand and
4406 -- result types are always Standard.Boolean. The expander inserts the
4407 -- required conversion operations where needed to ensure this is the
4408 -- case.
4410 -- N_And_Then
4411 -- Sloc points to AND of AND THEN
4412 -- Left_Opnd (Node2)
4413 -- Right_Opnd (Node3)
4414 -- Actions (List1-Sem)
4415 -- plus fields for expression
4417 -- N_Or_Else
4418 -- Sloc points to OR of OR ELSE
4419 -- Left_Opnd (Node2)
4420 -- Right_Opnd (Node3)
4421 -- Actions (List1-Sem)
4422 -- plus fields for expression
4424 -- Note: The Actions field is used to hold actions associated with
4425 -- the right hand operand. These have to be treated specially since
4426 -- they are not unconditionally executed. See Insert_Actions for a
4427 -- more detailed description of how these actions are handled.
4429 ---------------------------
4430 -- 4.5 Membership Tests --
4431 ---------------------------
4433 -- RELATION ::=
4434 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4436 -- MEMBERSHIP_CHOICE_LIST ::=
4437 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4439 -- MEMBERSHIP_CHOICE ::=
4440 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4442 -- Note: although the grammar above allows only a range or a subtype
4443 -- mark, the parser in fact will accept any simple expression in place
4444 -- of a subtype mark. This means that the semantic analyzer must be able
4445 -- to deal with, and diagnose a simple expression other than a name for
4446 -- the right operand. This simplifies error recovery in the parser.
4448 -- The Alternatives field below is present only if there is more than
4449 -- one Membership_Choice present (which is legitimate only in Ada 2012
4450 -- mode) in which case Right_Opnd is Empty, and Alternatives contains
4451 -- the list of choices. In the tree passed to the back end, Alternatives
4452 -- is always No_List, and Right_Opnd is set (i.e. the expansion circuit
4453 -- expands out the complex set membership case using simple membership
4454 -- and equality operations).
4456 -- Should we rename Alternatives here to Membership_Choices ???
4458 -- N_In
4459 -- Sloc points to IN
4460 -- Left_Opnd (Node2)
4461 -- Right_Opnd (Node3)
4462 -- Alternatives (List4) (set to No_List if only one set alternative)
4463 -- No_Minimize_Eliminate (Flag17)
4464 -- plus fields for expression
4466 -- N_Not_In
4467 -- Sloc points to NOT of NOT IN
4468 -- Left_Opnd (Node2)
4469 -- Right_Opnd (Node3)
4470 -- Alternatives (List4) (set to No_List if only one set alternative)
4471 -- No_Minimize_Eliminate (Flag17)
4472 -- plus fields for expression
4474 --------------------
4475 -- 4.5 Operators --
4476 --------------------
4478 -- LOGICAL_OPERATOR ::= and | or | xor
4480 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
4482 -- BINARY_ADDING_OPERATOR ::= + | - | &
4484 -- UNARY_ADDING_OPERATOR ::= + | -
4486 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
4488 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
4490 -- Sprint syntax if Treat_Fixed_As_Integer is set:
4492 -- x #* y
4493 -- x #/ y
4494 -- x #mod y
4495 -- x #rem y
4497 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
4498 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
4499 -- All handling of smalls for multiplication and division is handled
4500 -- by the front end (mod and rem result only from expansion). Gigi
4501 -- thus never needs to worry about small values (for other operators
4502 -- operating on fixed-point, e.g. addition, the small value does not
4503 -- have any semantic effect anyway, these are always integer operations.
4505 -- Gigi restriction: For all operators taking Boolean operands, the
4506 -- type is always Standard.Boolean. The expander inserts the required
4507 -- conversion operations where needed to ensure this is the case.
4509 -- N_Op_And
4510 -- Sloc points to AND
4511 -- Do_Length_Check (Flag4-Sem)
4512 -- plus fields for binary operator
4513 -- plus fields for expression
4515 -- N_Op_Or
4516 -- Sloc points to OR
4517 -- Do_Length_Check (Flag4-Sem)
4518 -- plus fields for binary operator
4519 -- plus fields for expression
4521 -- N_Op_Xor
4522 -- Sloc points to XOR
4523 -- Do_Length_Check (Flag4-Sem)
4524 -- plus fields for binary operator
4525 -- plus fields for expression
4527 -- N_Op_Eq
4528 -- Sloc points to =
4529 -- plus fields for binary operator
4530 -- plus fields for expression
4532 -- N_Op_Ne
4533 -- Sloc points to /=
4534 -- plus fields for binary operator
4535 -- plus fields for expression
4537 -- N_Op_Lt
4538 -- Sloc points to <
4539 -- plus fields for binary operator
4540 -- plus fields for expression
4542 -- N_Op_Le
4543 -- Sloc points to <=
4544 -- plus fields for binary operator
4545 -- plus fields for expression
4547 -- N_Op_Gt
4548 -- Sloc points to >
4549 -- plus fields for binary operator
4550 -- plus fields for expression
4552 -- N_Op_Ge
4553 -- Sloc points to >=
4554 -- plus fields for binary operator
4555 -- plus fields for expression
4557 -- N_Op_Add
4558 -- Sloc points to + (binary)
4559 -- plus fields for binary operator
4560 -- plus fields for expression
4562 -- N_Op_Subtract
4563 -- Sloc points to - (binary)
4564 -- plus fields for binary operator
4565 -- plus fields for expression
4567 -- N_Op_Concat
4568 -- Sloc points to &
4569 -- Is_Component_Left_Opnd (Flag13-Sem)
4570 -- Is_Component_Right_Opnd (Flag14-Sem)
4571 -- plus fields for binary operator
4572 -- plus fields for expression
4574 -- N_Op_Multiply
4575 -- Sloc points to *
4576 -- Treat_Fixed_As_Integer (Flag14-Sem)
4577 -- Rounded_Result (Flag18-Sem)
4578 -- plus fields for binary operator
4579 -- plus fields for expression
4581 -- N_Op_Divide
4582 -- Sloc points to /
4583 -- Treat_Fixed_As_Integer (Flag14-Sem)
4584 -- Do_Division_Check (Flag13-Sem)
4585 -- Rounded_Result (Flag18-Sem)
4586 -- plus fields for binary operator
4587 -- plus fields for expression
4589 -- N_Op_Mod
4590 -- Sloc points to MOD
4591 -- Treat_Fixed_As_Integer (Flag14-Sem)
4592 -- Do_Division_Check (Flag13-Sem)
4593 -- plus fields for binary operator
4594 -- plus fields for expression
4596 -- N_Op_Rem
4597 -- Sloc points to REM
4598 -- Treat_Fixed_As_Integer (Flag14-Sem)
4599 -- Do_Division_Check (Flag13-Sem)
4600 -- plus fields for binary operator
4601 -- plus fields for expression
4603 -- N_Op_Expon
4604 -- Sloc points to **
4605 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4606 -- plus fields for binary operator
4607 -- plus fields for expression
4609 -- N_Op_Plus
4610 -- Sloc points to + (unary)
4611 -- plus fields for unary operator
4612 -- plus fields for expression
4614 -- N_Op_Minus
4615 -- Sloc points to - (unary)
4616 -- plus fields for unary operator
4617 -- plus fields for expression
4619 -- N_Op_Abs
4620 -- Sloc points to ABS
4621 -- plus fields for unary operator
4622 -- plus fields for expression
4624 -- N_Op_Not
4625 -- Sloc points to NOT
4626 -- plus fields for unary operator
4627 -- plus fields for expression
4629 -- See also shift operators in section B.2
4631 -- Note on fixed-point operations passed to Gigi: For adding operators,
4632 -- the semantics is to treat these simply as integer operations, with
4633 -- the small values being ignored (the bounds are already stored in
4634 -- units of small, so that constraint checking works as usual). For the
4635 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4636 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4637 -- thus treat these nodes in identical manner, ignoring small values.
4639 -- Note on equality/inequality tests for records. In the expanded tree,
4640 -- record comparisons are always expanded to be a series of component
4641 -- comparisons, so the back end will never see an equality or inequality
4642 -- operation with operands of a record type.
4644 -- Note on overflow handling: When the overflow checking mode is set to
4645 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4646 -- be modified to use a larger type for the operands and result. In
4647 -- the case where the computed range exceeds that of Long_Long_Integer,
4648 -- and we are running in ELIMINATED mode, the operator node will be
4649 -- changed to be a call to the appropriate routine in System.Bignums.
4651 -- Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4652 -- for signed integer types (since there is no equivalent operator in
4653 -- C). Instead we rewrite such an operation in terms of REM (which is
4654 -- % in C) and other C-available operators.
4656 ------------------------------------
4657 -- 4.5.7 Conditional Expressions --
4658 ------------------------------------
4660 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4662 --------------------------
4663 -- 4.5.7 If Expression --
4664 ----------------------------
4666 -- IF_EXPRESSION ::=
4667 -- if CONDITION then DEPENDENT_EXPRESSION
4668 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4669 -- [else DEPENDENT_EXPRESSION]
4671 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4673 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4674 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4675 -- the Is_Elsif flag is set on the inner if expression.
4677 -- N_If_Expression
4678 -- Sloc points to IF or ELSIF keyword
4679 -- Expressions (List1)
4680 -- Then_Actions (List2-Sem)
4681 -- Else_Actions (List3-Sem)
4682 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4683 -- Do_Overflow_Check (Flag17-Sem)
4684 -- plus fields for expression
4686 -- Expressions here is a three-element list, whose first element is the
4687 -- condition, the second element is the dependent expression after THEN
4688 -- and the third element is the dependent expression after the ELSE
4689 -- (explicitly set to True if missing).
4691 -- Note: the Then_Actions and Else_Actions fields are always set to
4692 -- No_List in the tree passed to the back end. These are used only
4693 -- for temporary processing purposes in the expander. Even though they
4694 -- are semantic fields, their parent pointers are set because analysis
4695 -- of actions nodes in those lists may generate additional actions that
4696 -- need to know their insertion point (for example for the creation of
4697 -- transient scopes).
4699 -- Note: in the tree passed to the back end, if the result type is
4700 -- an unconstrained array, the if expression can only appears in the
4701 -- initializing expression of an object declaration (this avoids the
4702 -- back end having to create a variable length temporary on the fly).
4704 ----------------------------
4705 -- 4.5.7 Case Expression --
4706 ----------------------------
4708 -- CASE_EXPRESSION ::=
4709 -- case SELECTING_EXPRESSION is
4710 -- CASE_EXPRESSION_ALTERNATIVE
4711 -- {,CASE_EXPRESSION_ALTERNATIVE}
4713 -- Note that the Alternatives cannot include pragmas (this contrasts
4714 -- with the situation of case statements where pragmas are allowed).
4716 -- N_Case_Expression
4717 -- Sloc points to CASE
4718 -- Expression (Node3) (the selecting expression)
4719 -- Alternatives (List4) (the case expression alternatives)
4720 -- Do_Overflow_Check (Flag17-Sem)
4722 ----------------------------------------
4723 -- 4.5.7 Case Expression Alternative --
4724 ----------------------------------------
4726 -- CASE_EXPRESSION_ALTERNATIVE ::=
4727 -- when DISCRETE_CHOICE_LIST =>
4728 -- DEPENDENT_EXPRESSION
4730 -- N_Case_Expression_Alternative
4731 -- Sloc points to WHEN
4732 -- Actions (List1)
4733 -- Discrete_Choices (List4)
4734 -- Expression (Node3)
4735 -- Has_SP_Choice (Flag15-Sem)
4737 -- Note: The Actions field temporarily holds any actions associated with
4738 -- evaluation of the Expression. During expansion of the case expression
4739 -- these actions are wrapped into an N_Expressions_With_Actions node
4740 -- replacing the original expression.
4742 -- Note: this node never appears in the tree passed to the back end,
4743 -- since the expander converts case expressions into case statements.
4745 ---------------------------------
4746 -- 4.5.8 Quantified Expression --
4747 ---------------------------------
4749 -- QUANTIFIED_EXPRESSION ::=
4750 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4751 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4753 -- QUANTIFIER ::= all | some
4755 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4756 -- is present at a time, in which case the other one is empty.
4758 -- N_Quantified_Expression
4759 -- Sloc points to FOR
4760 -- Iterator_Specification (Node2)
4761 -- Loop_Parameter_Specification (Node4)
4762 -- Condition (Node1)
4763 -- All_Present (Flag15)
4765 --------------------------
4766 -- 4.6 Type Conversion --
4767 --------------------------
4769 -- TYPE_CONVERSION ::=
4770 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4772 -- In the (NAME) case, the name is stored as the expression
4774 -- Note: the parser never generates a type conversion node, since it
4775 -- looks like an indexed component which is generated by preference.
4776 -- The semantic pass must correct this misidentification.
4778 -- Gigi handles conversions that involve no change in the root type,
4779 -- and also all conversions from integer to floating-point types.
4780 -- Conversions from floating-point to integer are only handled in
4781 -- the case where Float_Truncate flag set. Other conversions from
4782 -- floating-point to integer (involving rounding) and all conversions
4783 -- involving fixed-point types are handled by the expander.
4785 -- Sprint syntax if Float_Truncate set: X^(Y)
4786 -- Sprint syntax if Conversion_OK set X?(Y)
4787 -- Sprint syntax if both flags set X?^(Y)
4789 -- Note: If either the operand or result type is fixed-point, Gigi will
4790 -- only see a type conversion node with Conversion_OK set. The front end
4791 -- takes care of all handling of small's for fixed-point conversions.
4793 -- N_Type_Conversion
4794 -- Sloc points to first token of subtype mark
4795 -- Subtype_Mark (Node4)
4796 -- Expression (Node3)
4797 -- Do_Discriminant_Check (Flag3-Sem)
4798 -- Do_Length_Check (Flag4-Sem)
4799 -- Float_Truncate (Flag11-Sem)
4800 -- Do_Tag_Check (Flag13-Sem)
4801 -- Conversion_OK (Flag14-Sem)
4802 -- Do_Overflow_Check (Flag17-Sem)
4803 -- Rounded_Result (Flag18-Sem)
4804 -- plus fields for expression
4806 -- Note: if a range check is required, then the Do_Range_Check flag
4807 -- is set in the Expression with the check being done against the
4808 -- target type range (after the base type conversion, if any).
4810 -------------------------------
4811 -- 4.7 Qualified Expression --
4812 -------------------------------
4814 -- QUALIFIED_EXPRESSION ::=
4815 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4817 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4818 -- the expression, so the Expression field of this node always points
4819 -- to a parenthesized expression in this case (i.e. Paren_Count will
4820 -- always be non-zero for the referenced expression if it is not an
4821 -- aggregate).
4823 -- N_Qualified_Expression
4824 -- Sloc points to apostrophe
4825 -- Subtype_Mark (Node4)
4826 -- Expression (Node3) expression or aggregate
4827 -- Is_Qualified_Universal_Literal (Flag4-Sem)
4828 -- plus fields for expression
4830 --------------------
4831 -- 4.8 Allocator --
4832 --------------------
4834 -- ALLOCATOR ::=
4835 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4836 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4838 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4840 -- Sprint syntax (when storage pool present)
4841 -- new xxx (storage_pool = pool)
4842 -- or
4843 -- new (subpool) xxx (storage_pool = pool)
4845 -- N_Allocator
4846 -- Sloc points to NEW
4847 -- Expression (Node3) subtype indication or qualified expression
4848 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4849 -- Storage_Pool (Node1-Sem)
4850 -- Procedure_To_Call (Node2-Sem)
4851 -- Alloc_For_BIP_Return (Flag1-Sem)
4852 -- Null_Exclusion_Present (Flag11)
4853 -- No_Initialization (Flag13-Sem)
4854 -- Is_Static_Coextension (Flag14-Sem)
4855 -- Do_Storage_Check (Flag17-Sem)
4856 -- Is_Dynamic_Coextension (Flag18-Sem)
4857 -- plus fields for expression
4859 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4860 -- This flag has a special function in conjunction with the restriction
4861 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4862 -- is not set. This means that if a source allocator is replaced with
4863 -- a constructed allocator, the Comes_From_Source flag should be copied
4864 -- to the newly created allocator.
4866 ---------------------------------
4867 -- 5.1 Sequence Of Statements --
4868 ---------------------------------
4870 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4872 -- Note: Although the parser will not accept a declaration as a
4873 -- statement, the semantic analyzer may insert declarations (e.g.
4874 -- declarations of implicit types needed for execution of other
4875 -- statements) into a sequence of statements, so the code generator
4876 -- should be prepared to accept a declaration where a statement is
4877 -- expected. Note also that pragmas can appear as statements.
4879 --------------------
4880 -- 5.1 Statement --
4881 --------------------
4883 -- STATEMENT ::=
4884 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4886 -- There is no explicit node in the tree for a statement. Instead, the
4887 -- individual statement appears directly. Labels are treated as a
4888 -- kind of statement, i.e. they are linked into a statement list at
4889 -- the point they appear, so the labeled statement appears following
4890 -- the label or labels in the statement list.
4892 ---------------------------
4893 -- 5.1 Simple Statement --
4894 ---------------------------
4896 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4897 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4898 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4899 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4900 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4901 -- | ABORT_STATEMENT | RAISE_STATEMENT
4902 -- | CODE_STATEMENT
4904 -----------------------------
4905 -- 5.1 Compound Statement --
4906 -----------------------------
4908 -- COMPOUND_STATEMENT ::=
4909 -- IF_STATEMENT | CASE_STATEMENT
4910 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4911 -- | EXTENDED_RETURN_STATEMENT
4912 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4914 -------------------------
4915 -- 5.1 Null Statement --
4916 -------------------------
4918 -- NULL_STATEMENT ::= null;
4920 -- N_Null_Statement
4921 -- Sloc points to NULL
4923 ----------------
4924 -- 5.1 Label --
4925 ----------------
4927 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4929 -- Note that the occurrence of a label is not a defining identifier,
4930 -- but rather a referencing occurrence. The defining occurrence is
4931 -- in the implicit label declaration which occurs in the innermost
4932 -- enclosing block.
4934 -- N_Label
4935 -- Sloc points to <<
4936 -- Identifier (Node1) direct name of statement identifier
4937 -- Exception_Junk (Flag8-Sem)
4939 -- Note: Before Ada 2012, a label is always followed by a statement,
4940 -- and this is true in the tree even in Ada 2012 mode (the parser
4941 -- inserts a null statement marked with Comes_From_Source False).
4943 -------------------------------
4944 -- 5.1 Statement Identifier --
4945 -------------------------------
4947 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4949 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4950 -- (not an OPERATOR_SYMBOL)
4952 -------------------------------
4953 -- 5.2 Assignment Statement --
4954 -------------------------------
4956 -- ASSIGNMENT_STATEMENT ::=
4957 -- variable_NAME := EXPRESSION;
4959 -- N_Assignment_Statement
4960 -- Sloc points to :=
4961 -- Name (Node2)
4962 -- Expression (Node3)
4963 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
4964 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
4965 -- Do_Discriminant_Check (Flag3-Sem)
4966 -- Do_Length_Check (Flag4-Sem)
4967 -- Forwards_OK (Flag5-Sem)
4968 -- Backwards_OK (Flag6-Sem)
4969 -- No_Ctrl_Actions (Flag7-Sem)
4970 -- Has_Target_Names (Flag8-Sem)
4971 -- Is_Elaboration_Code (Flag9-Sem)
4972 -- Do_Tag_Check (Flag13-Sem)
4973 -- Componentwise_Assignment (Flag14-Sem)
4974 -- Suppress_Assignment_Checks (Flag18-Sem)
4976 -- Note: if a range check is required, then the Do_Range_Check flag
4977 -- is set in the Expression (right hand side), with the check being
4978 -- done against the type of the Name (left hand side).
4980 -- Note: the back end places some restrictions on the form of the
4981 -- Expression field. If the object being assigned to is Atomic, then
4982 -- the Expression may not have the form of an aggregate (since this
4983 -- might cause the back end to generate separate assignments). In this
4984 -- case the front end must generate an extra temporary and initialize
4985 -- this temporary as required (the temporary itself is not atomic).
4987 ------------------
4988 -- Target_Name --
4989 ------------------
4991 -- N_Target_Name
4992 -- Sloc points to @
4993 -- Etype (Node5-Sem)
4995 -- Note (Ada 2020): node is used during analysis as a placeholder for
4996 -- the value of the LHS of the enclosing assignment statement. Node is
4997 -- eventually rewritten together with enclosing assignment, and backends
4998 -- are not aware of it.
5000 -----------------------
5001 -- 5.3 If Statement --
5002 -----------------------
5004 -- IF_STATEMENT ::=
5005 -- if CONDITION then
5006 -- SEQUENCE_OF_STATEMENTS
5007 -- {elsif CONDITION then
5008 -- SEQUENCE_OF_STATEMENTS}
5009 -- [else
5010 -- SEQUENCE_OF_STATEMENTS]
5011 -- end if;
5013 -- Gigi restriction: This expander ensures that the type of the
5014 -- Condition fields is always Standard.Boolean, even if the type
5015 -- in the source is some non-standard boolean type.
5017 -- N_If_Statement
5018 -- Sloc points to IF
5019 -- Condition (Node1)
5020 -- Then_Statements (List2)
5021 -- Elsif_Parts (List3) (set to No_List if none present)
5022 -- Else_Statements (List4) (set to No_List if no else part present)
5023 -- End_Span (Uint5) (set to Uint_0 if expander generated)
5024 -- From_Conditional_Expression (Flag1-Sem)
5026 -- N_Elsif_Part
5027 -- Sloc points to ELSIF
5028 -- Condition (Node1)
5029 -- Then_Statements (List2)
5030 -- Condition_Actions (List3-Sem)
5032 --------------------
5033 -- 5.3 Condition --
5034 --------------------
5036 -- CONDITION ::= boolean_EXPRESSION
5038 -------------------------
5039 -- 5.4 Case Statement --
5040 -------------------------
5042 -- CASE_STATEMENT ::=
5043 -- case EXPRESSION is
5044 -- CASE_STATEMENT_ALTERNATIVE
5045 -- {CASE_STATEMENT_ALTERNATIVE}
5046 -- end case;
5048 -- Note: the Alternatives can contain pragmas. These only occur at
5049 -- the start of the list, since any pragmas occurring after the first
5050 -- alternative are absorbed into the corresponding statement sequence.
5052 -- N_Case_Statement
5053 -- Sloc points to CASE
5054 -- Expression (Node3)
5055 -- Alternatives (List4)
5056 -- End_Span (Uint5) (set to Uint_0 if expander generated)
5057 -- From_Conditional_Expression (Flag1-Sem)
5059 -- Note: Before Ada 2012, a pragma in a statement sequence is always
5060 -- followed by a statement, and this is true in the tree even in Ada
5061 -- 2012 mode (the parser inserts a null statement marked with the flag
5062 -- Comes_From_Source False).
5064 -------------------------------------
5065 -- 5.4 Case Statement Alternative --
5066 -------------------------------------
5068 -- CASE_STATEMENT_ALTERNATIVE ::=
5069 -- when DISCRETE_CHOICE_LIST =>
5070 -- SEQUENCE_OF_STATEMENTS
5072 -- N_Case_Statement_Alternative
5073 -- Sloc points to WHEN
5074 -- Discrete_Choices (List4)
5075 -- Statements (List3)
5076 -- Has_SP_Choice (Flag15-Sem)
5078 -- Note: in the list of Discrete_Choices, the tree passed to the back
5079 -- end does not have choice entries corresponding to names of statically
5080 -- predicated subtypes. Such entries are always expanded out to the list
5081 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
5082 -- mode does not have this expansion, and has the original choices.
5084 -------------------------
5085 -- 5.5 Loop Statement --
5086 -------------------------
5088 -- LOOP_STATEMENT ::=
5089 -- [loop_STATEMENT_IDENTIFIER :]
5090 -- [ITERATION_SCHEME] loop
5091 -- SEQUENCE_OF_STATEMENTS
5092 -- end loop [loop_IDENTIFIER];
5094 -- Note: The occurrence of a loop label is not a defining identifier
5095 -- but rather a referencing occurrence. The defining occurrence is in
5096 -- the implicit label declaration which occurs in the innermost
5097 -- enclosing block.
5099 -- Note: there is always a loop statement identifier present in the
5100 -- tree, even if none was given in the source. In the case where no loop
5101 -- identifier is given in the source, the parser creates a name of the
5102 -- form _Loop_n, where n is a decimal integer (the two underlines ensure
5103 -- that the loop names created in this manner do not conflict with any
5104 -- user defined identifiers), and the flag Has_Created_Identifier is set
5105 -- to True. The only exception to the rule that all loop statement nodes
5106 -- have identifiers occurs for loops constructed by the expander, and
5107 -- the semantic analyzer will create and supply dummy loop identifiers
5108 -- in these cases.
5110 -- N_Loop_Statement
5111 -- Sloc points to LOOP
5112 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
5113 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
5114 -- Statements (List3)
5115 -- End_Label (Node4)
5116 -- Has_Created_Identifier (Flag15)
5117 -- Is_Null_Loop (Flag16)
5118 -- Suppress_Loop_Warnings (Flag17)
5120 -- Note: the parser fills in the Identifier field if there is an
5121 -- explicit loop identifier. Otherwise the parser leaves this field
5122 -- set to Empty, and then the semantic processing for a loop statement
5123 -- creates an identifier, setting the Has_Created_Identifier flag to
5124 -- True. So after semantic analysis, the Identifier is always set,
5125 -- referencing an identifier whose entity has an Ekind of E_Loop.
5127 ---------------------------
5128 -- 5.5 Iteration Scheme --
5129 ---------------------------
5131 -- ITERATION_SCHEME ::=
5132 -- while CONDITION
5133 -- | for LOOP_PARAMETER_SPECIFICATION
5134 -- | for ITERATOR_SPECIFICATION
5136 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
5137 -- is present at a time, in which case the other one is empty. Both are
5138 -- empty in the case of a WHILE loop.
5140 -- Gigi restriction: The expander ensures that the type of the Condition
5141 -- field is always Standard.Boolean, even if the type in the source is
5142 -- some non-standard boolean type.
5144 -- N_Iteration_Scheme
5145 -- Sloc points to WHILE or FOR
5146 -- Condition (Node1) (set to Empty if FOR case)
5147 -- Condition_Actions (List3-Sem)
5148 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
5149 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
5151 ---------------------------------------
5152 -- 5.5 Loop Parameter Specification --
5153 ---------------------------------------
5155 -- LOOP_PARAMETER_SPECIFICATION ::=
5156 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
5158 -- N_Loop_Parameter_Specification
5159 -- Sloc points to first identifier
5160 -- Defining_Identifier (Node1)
5161 -- Reverse_Present (Flag15)
5162 -- Discrete_Subtype_Definition (Node4)
5164 -----------------------------------
5165 -- 5.5.1 Iterator Specification --
5166 -----------------------------------
5168 -- ITERATOR_SPECIFICATION ::=
5169 -- DEFINING_IDENTIFIER in [reverse] NAME
5170 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
5172 -- N_Iterator_Specification
5173 -- Sloc points to defining identifier
5174 -- Defining_Identifier (Node1)
5175 -- Name (Node2)
5176 -- Reverse_Present (Flag15)
5177 -- Of_Present (Flag16)
5178 -- Subtype_Indication (Node5)
5180 -- Note: The Of_Present flag distinguishes the two forms
5182 --------------------------
5183 -- 5.6 Block Statement --
5184 --------------------------
5186 -- BLOCK_STATEMENT ::=
5187 -- [block_STATEMENT_IDENTIFIER:]
5188 -- [declare
5189 -- DECLARATIVE_PART]
5190 -- begin
5191 -- HANDLED_SEQUENCE_OF_STATEMENTS
5192 -- end [block_IDENTIFIER];
5194 -- Note that the occurrence of a block identifier is not a defining
5195 -- identifier, but rather a referencing occurrence. The defining
5196 -- occurrence is an E_Block entity declared by the implicit label
5197 -- declaration which occurs in the innermost enclosing block statement
5198 -- or body; the block identifier denotes that E_Block.
5200 -- For block statements that come from source code, there is always a
5201 -- block statement identifier present in the tree, denoting an E_Block.
5202 -- In the case where no block identifier is given in the source,
5203 -- the parser creates a name of the form B_n, where n is a decimal
5204 -- integer, and the flag Has_Created_Identifier is set to True. Blocks
5205 -- constructed by the expander usually have no identifier, and no
5206 -- corresponding entity.
5208 -- Note: the block statement created for an extended return statement
5209 -- has an entity, and this entity is an E_Return_Statement, rather than
5210 -- the usual E_Block.
5212 -- Note: Exception_Junk is set for the wrapping blocks created during
5213 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
5215 -- Note: from a control flow viewpoint, a block statement defines an
5216 -- extended basic block, i.e. the entry of the block dominates every
5217 -- statement in the sequence. When generating new statements with
5218 -- exception handlers in the expander at the end of a sequence that
5219 -- comes from source code, it can be necessary to wrap them all in a
5220 -- block statement in order to expose the implicit control flow to
5221 -- gigi and thus prevent it from issuing bogus control flow warnings.
5223 -- N_Block_Statement
5224 -- Sloc points to DECLARE or BEGIN
5225 -- Identifier (Node1) block direct name (set to Empty if not present)
5226 -- Declarations (List2) (set to No_List if no DECLARE part)
5227 -- Handled_Statement_Sequence (Node4)
5228 -- Activation_Chain_Entity (Node3-Sem)
5229 -- Cleanup_Actions (List5-Sem)
5230 -- Has_Created_Identifier (Flag15)
5231 -- Is_Asynchronous_Call_Block (Flag7)
5232 -- Is_Task_Allocation_Block (Flag6)
5233 -- Exception_Junk (Flag8-Sem)
5234 -- Is_Abort_Block (Flag4-Sem)
5235 -- Is_Finalization_Wrapper (Flag9-Sem)
5236 -- Is_Initialization_Block (Flag1-Sem)
5237 -- Is_Task_Master (Flag5-Sem)
5239 -------------------------
5240 -- 5.7 Exit Statement --
5241 -------------------------
5243 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
5245 -- Gigi restriction: The expander ensures that the type of the Condition
5246 -- field is always Standard.Boolean, even if the type in the source is
5247 -- some non-standard boolean type.
5249 -- N_Exit_Statement
5250 -- Sloc points to EXIT
5251 -- Name (Node2) (set to Empty if no loop name present)
5252 -- Condition (Node1) (set to Empty if no WHEN part present)
5253 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
5255 -------------------------
5256 -- 5.9 Goto Statement --
5257 -------------------------
5259 -- GOTO_STATEMENT ::= goto label_NAME;
5261 -- N_Goto_Statement
5262 -- Sloc points to GOTO
5263 -- Name (Node2)
5264 -- Exception_Junk (Flag8-Sem)
5266 ---------------------------------
5267 -- 6.1 Subprogram Declaration --
5268 ---------------------------------
5270 -- SUBPROGRAM_DECLARATION ::=
5271 -- SUBPROGRAM_SPECIFICATION
5272 -- [ASPECT_SPECIFICATIONS];
5274 -- N_Subprogram_Declaration
5275 -- Sloc points to FUNCTION or PROCEDURE
5276 -- Specification (Node1)
5277 -- Body_To_Inline (Node3-Sem)
5278 -- Corresponding_Body (Node5-Sem)
5279 -- Parent_Spec (Node4-Sem)
5280 -- Is_Entry_Barrier_Function (Flag8-Sem)
5281 -- Is_Task_Body_Procedure (Flag1-Sem)
5283 ------------------------------------------
5284 -- 6.1 Abstract Subprogram Declaration --
5285 ------------------------------------------
5287 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
5288 -- SUBPROGRAM_SPECIFICATION is abstract
5289 -- [ASPECT_SPECIFICATIONS];
5291 -- N_Abstract_Subprogram_Declaration
5292 -- Sloc points to ABSTRACT
5293 -- Specification (Node1)
5295 -----------------------------------
5296 -- 6.1 Subprogram Specification --
5297 -----------------------------------
5299 -- SUBPROGRAM_SPECIFICATION ::=
5300 -- [[not] overriding]
5301 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
5302 -- | [[not] overriding]
5303 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
5305 -- Note: there are no separate nodes for the profiles, instead the
5306 -- information appears directly in the following nodes.
5308 -- N_Function_Specification
5309 -- Sloc points to FUNCTION
5310 -- Defining_Unit_Name (Node1) (the designator)
5311 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5312 -- Null_Exclusion_Present (Flag11)
5313 -- Result_Definition (Node4) for result subtype
5314 -- Generic_Parent (Node5-Sem)
5315 -- Must_Override (Flag14) set if overriding indicator present
5316 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5318 -- N_Procedure_Specification
5319 -- Sloc points to PROCEDURE
5320 -- Defining_Unit_Name (Node1)
5321 -- Null_Statement (Node2-Sem) NULL statement for body, if Null_Present
5322 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5323 -- Generic_Parent (Node5-Sem)
5324 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
5325 -- Must_Override (Flag14) set if overriding indicator present
5326 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5328 -- Note: overriding indicator is an Ada 2005 feature
5330 ---------------------
5331 -- 6.1 Designator --
5332 ---------------------
5334 -- DESIGNATOR ::=
5335 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
5337 -- Designators that are simply identifiers or operator symbols appear
5338 -- directly in the tree in this form. The following node is used only
5339 -- in the case where the designator has a parent unit name component.
5341 -- N_Designator
5342 -- Sloc points to period
5343 -- Name (Node2) holds the parent unit name
5344 -- Identifier (Node1)
5346 -- Note: Name is always non-Empty, since this node is only used for the
5347 -- case where a parent library unit package name is present.
5349 -- Note that the identifier can also be an operator symbol here
5351 ------------------------------
5352 -- 6.1 Defining Designator --
5353 ------------------------------
5355 -- DEFINING_DESIGNATOR ::=
5356 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
5358 -------------------------------------
5359 -- 6.1 Defining Program Unit Name --
5360 -------------------------------------
5362 -- DEFINING_PROGRAM_UNIT_NAME ::=
5363 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
5365 -- The parent unit name is present only in the case of a child unit name
5366 -- (permissible only for Ada 95 for a library level unit, i.e. a unit
5367 -- at scope level one). If no such name is present, the defining program
5368 -- unit name is represented simply as the defining identifier. In the
5369 -- child unit case, the following node is used to represent the child
5370 -- unit name.
5372 -- N_Defining_Program_Unit_Name
5373 -- Sloc points to period
5374 -- Name (Node2) holds the parent unit name
5375 -- Defining_Identifier (Node1)
5377 -- Note: Name is always non-Empty, since this node is only used for the
5378 -- case where a parent unit name is present.
5380 --------------------------
5381 -- 6.1 Operator Symbol --
5382 --------------------------
5384 -- OPERATOR_SYMBOL ::= STRING_LITERAL
5386 -- Note: the fields of the N_Operator_Symbol node are laid out to match
5387 -- the corresponding fields of an N_Character_Literal node. This allows
5388 -- easy conversion of the operator symbol node into a character literal
5389 -- node in the case where a string constant of the form of an operator
5390 -- symbol is scanned out as such, but turns out semantically to be a
5391 -- string literal that is not an operator. For details see Sinfo.CN.
5392 -- Change_Operator_Symbol_To_String_Literal.
5394 -- N_Operator_Symbol
5395 -- Sloc points to literal
5396 -- Chars (Name1) contains the Name_Id for the operator symbol
5397 -- Strval (Str3) Id of string value. This is used if the operator
5398 -- symbol turns out to be a normal string after all.
5399 -- Entity (Node4-Sem)
5400 -- Associated_Node (Node4-Sem)
5401 -- Etype (Node5-Sem)
5402 -- Has_Private_View (Flag11-Sem) set in generic units
5404 -- Note: the Strval field may be set to No_String for generated
5405 -- operator symbols that are known not to be string literals
5406 -- semantically.
5408 -----------------------------------
5409 -- 6.1 Defining Operator Symbol --
5410 -----------------------------------
5412 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
5414 -- A defining operator symbol is an entity, which has additional
5415 -- fields depending on the setting of the Ekind field. These
5416 -- additional fields are defined (and access subprograms declared)
5417 -- in package Einfo.
5419 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
5420 -- are deliberately layed out to match the layout of fields in an
5421 -- ordinary N_Operator_Symbol node allowing for easy alteration of
5422 -- an operator symbol node into a defining operator symbol node.
5423 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
5424 -- for further details.
5426 -- N_Defining_Operator_Symbol
5427 -- Sloc points to literal
5428 -- Chars (Name1) contains the Name_Id for the operator symbol
5429 -- Next_Entity (Node2-Sem)
5430 -- Scope (Node3-Sem)
5431 -- Etype (Node5-Sem)
5433 ----------------------------
5434 -- 6.1 Parameter Profile --
5435 ----------------------------
5437 -- PARAMETER_PROFILE ::= [FORMAL_PART]
5439 ---------------------------------------
5440 -- 6.1 Parameter and Result Profile --
5441 ---------------------------------------
5443 -- PARAMETER_AND_RESULT_PROFILE ::=
5444 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
5445 -- | [FORMAL_PART] return ACCESS_DEFINITION
5447 -- There is no explicit node in the tree for a parameter and result
5448 -- profile. Instead the information appears directly in the parent.
5450 ----------------------
5451 -- 6.1 Formal Part --
5452 ----------------------
5454 -- FORMAL_PART ::=
5455 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
5457 ----------------------------------
5458 -- 6.1 Parameter Specification --
5459 ----------------------------------
5461 -- PARAMETER_SPECIFICATION ::=
5462 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
5463 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
5464 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
5465 -- [:= DEFAULT_EXPRESSION]
5467 -- Although the syntax allows multiple identifiers in the list, the
5468 -- semantics is as though successive specifications were given with
5469 -- identical type definition and expression components. To simplify
5470 -- semantic processing, the parser represents a multiple declaration
5471 -- case as a sequence of single Specifications, using the More_Ids and
5472 -- Prev_Ids flags to preserve the original source form as described
5473 -- in the section on "Handling of Defining Identifier Lists".
5475 -- ALIASED can only be present in Ada 2012 mode
5477 -- N_Parameter_Specification
5478 -- Sloc points to first identifier
5479 -- Defining_Identifier (Node1)
5480 -- Aliased_Present (Flag4)
5481 -- In_Present (Flag15)
5482 -- Out_Present (Flag17)
5483 -- Null_Exclusion_Present (Flag11)
5484 -- Parameter_Type (Node2) subtype mark or access definition
5485 -- Expression (Node3) (set to Empty if no default expression present)
5486 -- Do_Accessibility_Check (Flag13-Sem)
5487 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5488 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5489 -- Default_Expression (Node5-Sem)
5491 ---------------
5492 -- 6.1 Mode --
5493 ---------------
5495 -- MODE ::= [in] | in out | out
5497 -- There is no explicit node in the tree for the Mode. Instead the
5498 -- In_Present and Out_Present flags are set in the parent node to
5499 -- record the presence of keywords specifying the mode.
5501 --------------------------
5502 -- 6.3 Subprogram Body --
5503 --------------------------
5505 -- SUBPROGRAM_BODY ::=
5506 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5507 -- DECLARATIVE_PART
5508 -- begin
5509 -- HANDLED_SEQUENCE_OF_STATEMENTS
5510 -- end [DESIGNATOR];
5512 -- N_Subprogram_Body
5513 -- Sloc points to FUNCTION or PROCEDURE
5514 -- Specification (Node1)
5515 -- Declarations (List2)
5516 -- Handled_Statement_Sequence (Node4)
5517 -- Activation_Chain_Entity (Node3-Sem)
5518 -- Corresponding_Spec (Node5-Sem)
5519 -- Acts_As_Spec (Flag4-Sem)
5520 -- Bad_Is_Detected (Flag15) used only by parser
5521 -- Do_Storage_Check (Flag17-Sem)
5522 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5523 -- Is_Entry_Barrier_Function (Flag8-Sem)
5524 -- Is_Protected_Subprogram_Body (Flag7-Sem)
5525 -- Is_Task_Body_Procedure (Flag1-Sem)
5526 -- Is_Task_Master (Flag5-Sem)
5527 -- Was_Attribute_Reference (Flag2-Sem)
5528 -- Was_Expression_Function (Flag18-Sem)
5529 -- Was_Originally_Stub (Flag13-Sem)
5531 -----------------------------------
5532 -- 6.4 Procedure Call Statement --
5533 -----------------------------------
5535 -- PROCEDURE_CALL_STATEMENT ::=
5536 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5538 -- Note: the reason that a procedure call has expression fields is that
5539 -- it semantically resembles an expression, e.g. overloading is allowed
5540 -- and a type is concocted for semantic processing purposes. Certain of
5541 -- these fields, such as Parens are not relevant, but it is easier to
5542 -- just supply all of them together.
5544 -- N_Procedure_Call_Statement
5545 -- Sloc points to first token of name or prefix
5546 -- Name (Node2) stores name or prefix
5547 -- Parameter_Associations (List3) (set to No_List if no
5548 -- actual parameter part)
5549 -- First_Named_Actual (Node4-Sem)
5550 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5551 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
5552 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
5553 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
5554 -- No_Elaboration_Check (Flag4-Sem)
5555 -- Do_Tag_Check (Flag13-Sem)
5556 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
5557 -- plus fields for expression
5559 -- If any IN parameter requires a range check, then the corresponding
5560 -- argument expression has the Do_Range_Check flag set, and the range
5561 -- check is done against the formal type. Note that this argument
5562 -- expression may appear directly in the Parameter_Associations list,
5563 -- or may be a descendant of an N_Parameter_Association node that
5564 -- appears in this list.
5566 ------------------------
5567 -- 6.4 Function Call --
5568 ------------------------
5570 -- FUNCTION_CALL ::=
5571 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5573 -- Note: the parser may generate an indexed component node or simply
5574 -- a name node instead of a function call node. The semantic pass must
5575 -- correct this misidentification.
5577 -- N_Function_Call
5578 -- Sloc points to first token of name or prefix
5579 -- Name (Node2) stores name or prefix
5580 -- Parameter_Associations (List3) (set to No_List if no
5581 -- actual parameter part)
5582 -- First_Named_Actual (Node4-Sem)
5583 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5584 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
5585 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
5586 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
5587 -- No_Elaboration_Check (Flag4-Sem)
5588 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5589 -- Do_Tag_Check (Flag13-Sem)
5590 -- No_Side_Effect_Removal (Flag17-Sem)
5591 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
5592 -- plus fields for expression
5594 --------------------------------
5595 -- 6.4 Actual Parameter Part --
5596 --------------------------------
5598 -- ACTUAL_PARAMETER_PART ::=
5599 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5601 --------------------------------
5602 -- 6.4 Parameter Association --
5603 --------------------------------
5605 -- PARAMETER_ASSOCIATION ::=
5606 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5608 -- Note: the N_Parameter_Association node is built only if a formal
5609 -- parameter selector name is present, otherwise the parameter
5610 -- association appears in the tree simply as the node for the
5611 -- explicit actual parameter.
5613 -- N_Parameter_Association
5614 -- Sloc points to formal parameter
5615 -- Selector_Name (Node2) (always non-Empty)
5616 -- Explicit_Actual_Parameter (Node3)
5617 -- Next_Named_Actual (Node4-Sem)
5618 -- Is_Accessibility_Actual (Flag13-Sem)
5620 ---------------------------
5621 -- 6.4 Actual Parameter --
5622 ---------------------------
5624 -- EXPLICIT_ACTUAL_PARAMETER ::=
5625 -- EXPRESSION | variable_NAME | REDUCTION_EXPRESSION_PARAMETER
5627 ---------------------------
5628 -- 6.5 Return Statement --
5629 ---------------------------
5631 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5633 -- EXTENDED_RETURN_STATEMENT ::=
5634 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5635 -- [:= EXPRESSION] [do
5636 -- HANDLED_SEQUENCE_OF_STATEMENTS
5637 -- end return];
5639 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5641 -- The term "return statement" is defined in 6.5 to mean either a
5642 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5643 -- the use of this term, since it used to mean someting else in earlier
5644 -- versions of Ada.
5646 -- N_Simple_Return_Statement
5647 -- Sloc points to RETURN
5648 -- Return_Statement_Entity (Node5-Sem)
5649 -- Expression (Node3) (set to Empty if no expression present)
5650 -- Storage_Pool (Node1-Sem)
5651 -- Procedure_To_Call (Node2-Sem)
5652 -- Do_Tag_Check (Flag13-Sem)
5653 -- By_Ref (Flag5-Sem)
5654 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5656 -- Note: Return_Statement_Entity points to an E_Return_Statement
5658 -- If a range check is required, then Do_Range_Check is set on the
5659 -- Expression. The check is against the return subtype of the function.
5661 -- N_Extended_Return_Statement
5662 -- Sloc points to RETURN
5663 -- Return_Statement_Entity (Node5-Sem)
5664 -- Return_Object_Declarations (List3)
5665 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5666 -- Storage_Pool (Node1-Sem)
5667 -- Procedure_To_Call (Node2-Sem)
5668 -- Do_Tag_Check (Flag13-Sem)
5669 -- By_Ref (Flag5-Sem)
5671 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5673 -- Note that Return_Object_Declarations is a list containing the
5674 -- N_Object_Declaration -- see comment on this field above.
5676 -- The declared object will have Is_Return_Object = True.
5678 -- There is no such syntactic category as return_object_declaration
5679 -- in the RM. Return_Object_Declarations represents this portion of
5680 -- the syntax for EXTENDED_RETURN_STATEMENT:
5681 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5682 -- [:= EXPRESSION]
5684 -- There are two entities associated with an extended_return_statement:
5685 -- the Return_Statement_Entity represents the statement itself,
5686 -- and the Defining_Identifier of the Object_Declaration in
5687 -- Return_Object_Declarations represents the object being
5688 -- returned. N_Simple_Return_Statement has only the former.
5690 ------------------------------
5691 -- 6.8 Expression Function --
5692 ------------------------------
5694 -- EXPRESSION_FUNCTION ::=
5695 -- FUNCTION SPECIFICATION IS (EXPRESSION)
5696 -- [ASPECT_SPECIFICATIONS];
5698 -- N_Expression_Function
5699 -- Sloc points to FUNCTION
5700 -- Specification (Node1)
5701 -- Expression (Node3)
5702 -- Corresponding_Spec (Node5-Sem)
5704 ------------------------------
5705 -- 7.1 Package Declaration --
5706 ------------------------------
5708 -- PACKAGE_DECLARATION ::=
5709 -- PACKAGE_SPECIFICATION;
5711 -- Note: the activation chain entity for a package spec is used for
5712 -- all tasks declared in the package spec, or in the package body.
5714 -- N_Package_Declaration
5715 -- Sloc points to PACKAGE
5716 -- Specification (Node1)
5717 -- Corresponding_Body (Node5-Sem)
5718 -- Parent_Spec (Node4-Sem)
5719 -- Activation_Chain_Entity (Node3-Sem)
5721 --------------------------------
5722 -- 7.1 Package Specification --
5723 --------------------------------
5725 -- PACKAGE_SPECIFICATION ::=
5726 -- package DEFINING_PROGRAM_UNIT_NAME
5727 -- [ASPECT_SPECIFICATIONS]
5728 -- is
5729 -- {BASIC_DECLARATIVE_ITEM}
5730 -- [private
5731 -- {BASIC_DECLARATIVE_ITEM}]
5732 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5734 -- N_Package_Specification
5735 -- Sloc points to PACKAGE
5736 -- Defining_Unit_Name (Node1)
5737 -- Visible_Declarations (List2)
5738 -- Private_Declarations (List3) (set to No_List if no private
5739 -- part present)
5740 -- End_Label (Node4)
5741 -- Generic_Parent (Node5-Sem)
5742 -- Limited_View_Installed (Flag18-Sem)
5744 -----------------------
5745 -- 7.1 Package Body --
5746 -----------------------
5748 -- PACKAGE_BODY ::=
5749 -- package body DEFINING_PROGRAM_UNIT_NAME
5750 -- [ASPECT_SPECIFICATIONS]
5751 -- is
5752 -- DECLARATIVE_PART
5753 -- [begin
5754 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5755 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5757 -- N_Package_Body
5758 -- Sloc points to PACKAGE
5759 -- Defining_Unit_Name (Node1)
5760 -- Declarations (List2)
5761 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5762 -- Corresponding_Spec (Node5-Sem)
5763 -- Was_Originally_Stub (Flag13-Sem)
5765 -- Note: if a source level package does not contain a handled sequence
5766 -- of statements, then the parser supplies a dummy one with a null
5767 -- sequence of statements. Comes_From_Source will be False in this
5768 -- constructed sequence. The reason we need this is for the End_Label
5769 -- field in the HSS.
5771 -----------------------------------
5772 -- 7.4 Private Type Declaration --
5773 -----------------------------------
5775 -- PRIVATE_TYPE_DECLARATION ::=
5776 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5777 -- is [[abstract] tagged] [limited] private
5778 -- [ASPECT_SPECIFICATIONS];
5780 -- Note: TAGGED is not permitted in Ada 83 mode
5782 -- N_Private_Type_Declaration
5783 -- Sloc points to TYPE
5784 -- Defining_Identifier (Node1)
5785 -- Discriminant_Specifications (List4) (set to No_List if no
5786 -- discriminant part)
5787 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5788 -- Abstract_Present (Flag4)
5789 -- Tagged_Present (Flag15)
5790 -- Limited_Present (Flag17)
5792 ----------------------------------------
5793 -- 7.4 Private Extension Declaration --
5794 ----------------------------------------
5796 -- PRIVATE_EXTENSION_DECLARATION ::=
5797 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5798 -- [abstract] [limited | synchronized]
5799 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5800 -- with private [ASPECT_SPECIFICATIONS];
5802 -- Note: LIMITED, and private extension declarations are not allowed
5803 -- in Ada 83 mode.
5805 -- N_Private_Extension_Declaration
5806 -- Sloc points to TYPE
5807 -- Defining_Identifier (Node1)
5808 -- Uninitialized_Variable (Node3-Sem)
5809 -- Discriminant_Specifications (List4) (set to No_List if no
5810 -- discriminant part)
5811 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5812 -- Abstract_Present (Flag4)
5813 -- Limited_Present (Flag17)
5814 -- Synchronized_Present (Flag7)
5815 -- Subtype_Indication (Node5)
5816 -- Interface_List (List2) (set to No_List if none)
5818 ---------------------
5819 -- 8.4 Use Clause --
5820 ---------------------
5822 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5824 -----------------------------
5825 -- 8.4 Use Package Clause --
5826 -----------------------------
5828 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5830 -- N_Use_Package_Clause
5831 -- Sloc points to USE
5832 -- Prev_Use_Clause (Node1-Sem)
5833 -- Name (Node2)
5834 -- Next_Use_Clause (Node3-Sem)
5835 -- Associated_Node (Node4-Sem)
5836 -- Hidden_By_Use_Clause (Elist5-Sem)
5837 -- Is_Effective_Use_Clause (Flag1)
5838 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5839 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5841 --------------------------
5842 -- 8.4 Use Type Clause --
5843 --------------------------
5845 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5847 -- Note: use type clause is not permitted in Ada 83 mode
5849 -- Note: the ALL keyword can appear only in Ada 2012 mode
5851 -- N_Use_Type_Clause
5852 -- Sloc points to USE
5853 -- Prev_Use_Clause (Node1-Sem)
5854 -- Used_Operations (Elist2-Sem)
5855 -- Next_Use_Clause (Node3-Sem)
5856 -- Subtype_Mark (Node4)
5857 -- Hidden_By_Use_Clause (Elist5-Sem)
5858 -- Is_Effective_Use_Clause (Flag1)
5859 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5860 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5861 -- All_Present (Flag15)
5863 -------------------------------
5864 -- 8.5 Renaming Declaration --
5865 -------------------------------
5867 -- RENAMING_DECLARATION ::=
5868 -- OBJECT_RENAMING_DECLARATION
5869 -- | EXCEPTION_RENAMING_DECLARATION
5870 -- | PACKAGE_RENAMING_DECLARATION
5871 -- | SUBPROGRAM_RENAMING_DECLARATION
5872 -- | GENERIC_RENAMING_DECLARATION
5874 --------------------------------------
5875 -- 8.5 Object Renaming Declaration --
5876 --------------------------------------
5878 -- OBJECT_RENAMING_DECLARATION ::=
5879 -- DEFINING_IDENTIFIER :
5880 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5881 -- [ASPECT_SPECIFICATIONS];
5882 -- | DEFINING_IDENTIFIER :
5883 -- ACCESS_DEFINITION renames object_NAME
5884 -- [ASPECT_SPECIFICATIONS];
5886 -- Note: Access_Definition is an optional field that gives support to
5887 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5888 -- Subtype_Indication field or else the Access_Definition field.
5890 -- N_Object_Renaming_Declaration
5891 -- Sloc points to first identifier
5892 -- Defining_Identifier (Node1)
5893 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5894 -- Subtype_Mark (Node4) (set to Empty if not present)
5895 -- Access_Definition (Node3) (set to Empty if not present)
5896 -- Name (Node2)
5897 -- Corresponding_Generic_Association (Node5-Sem)
5899 -----------------------------------------
5900 -- 8.5 Exception Renaming Declaration --
5901 -----------------------------------------
5903 -- EXCEPTION_RENAMING_DECLARATION ::=
5904 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5905 -- [ASPECT_SPECIFICATIONS];
5907 -- N_Exception_Renaming_Declaration
5908 -- Sloc points to first identifier
5909 -- Defining_Identifier (Node1)
5910 -- Name (Node2)
5912 ---------------------------------------
5913 -- 8.5 Package Renaming Declaration --
5914 ---------------------------------------
5916 -- PACKAGE_RENAMING_DECLARATION ::=
5917 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5918 -- [ASPECT_SPECIFICATIONS];
5920 -- N_Package_Renaming_Declaration
5921 -- Sloc points to PACKAGE
5922 -- Defining_Unit_Name (Node1)
5923 -- Name (Node2)
5924 -- Parent_Spec (Node4-Sem)
5926 ------------------------------------------
5927 -- 8.5 Subprogram Renaming Declaration --
5928 ------------------------------------------
5930 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5931 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5932 -- [ASPECT_SPECIFICATIONS];
5934 -- N_Subprogram_Renaming_Declaration
5935 -- Sloc points to RENAMES
5936 -- Specification (Node1)
5937 -- Name (Node2)
5938 -- Parent_Spec (Node4-Sem)
5939 -- Corresponding_Spec (Node5-Sem)
5940 -- Corresponding_Formal_Spec (Node3-Sem)
5941 -- From_Default (Flag6-Sem)
5943 -----------------------------------------
5944 -- 8.5.5 Generic Renaming Declaration --
5945 -----------------------------------------
5947 -- GENERIC_RENAMING_DECLARATION ::=
5948 -- generic package DEFINING_PROGRAM_UNIT_NAME
5949 -- renames generic_package_NAME
5950 -- [ASPECT_SPECIFICATIONS];
5951 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5952 -- renames generic_procedure_NAME
5953 -- [ASPECT_SPECIFICATIONS];
5954 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5955 -- renames generic_function_NAME
5956 -- [ASPECT_SPECIFICATIONS];
5958 -- N_Generic_Package_Renaming_Declaration
5959 -- Sloc points to GENERIC
5960 -- Defining_Unit_Name (Node1)
5961 -- Name (Node2)
5962 -- Parent_Spec (Node4-Sem)
5964 -- N_Generic_Procedure_Renaming_Declaration
5965 -- Sloc points to GENERIC
5966 -- Defining_Unit_Name (Node1)
5967 -- Name (Node2)
5968 -- Parent_Spec (Node4-Sem)
5970 -- N_Generic_Function_Renaming_Declaration
5971 -- Sloc points to GENERIC
5972 -- Defining_Unit_Name (Node1)
5973 -- Name (Node2)
5974 -- Parent_Spec (Node4-Sem)
5976 --------------------------------
5977 -- 9.1 Task Type Declaration --
5978 --------------------------------
5980 -- TASK_TYPE_DECLARATION ::=
5981 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5982 -- [ASPECT_SPECIFICATIONS]
5983 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5985 -- N_Task_Type_Declaration
5986 -- Sloc points to TASK
5987 -- Defining_Identifier (Node1)
5988 -- Discriminant_Specifications (List4) (set to No_List if no
5989 -- discriminant part)
5990 -- Interface_List (List2) (set to No_List if none)
5991 -- Task_Definition (Node3) (set to Empty if not present)
5992 -- Corresponding_Body (Node5-Sem)
5994 ----------------------------------
5995 -- 9.1 Single Task Declaration --
5996 ----------------------------------
5998 -- SINGLE_TASK_DECLARATION ::=
5999 -- task DEFINING_IDENTIFIER
6000 -- [ASPECT_SPECIFICATIONS]
6001 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
6003 -- N_Single_Task_Declaration
6004 -- Sloc points to TASK
6005 -- Defining_Identifier (Node1)
6006 -- Interface_List (List2) (set to No_List if none)
6007 -- Task_Definition (Node3) (set to Empty if not present)
6009 --------------------------
6010 -- 9.1 Task Definition --
6011 --------------------------
6013 -- TASK_DEFINITION ::=
6014 -- {TASK_ITEM}
6015 -- [private
6016 -- {TASK_ITEM}]
6017 -- end [task_IDENTIFIER]
6019 -- Note: as a result of semantic analysis, the list of task items can
6020 -- include implicit type declarations resulting from entry families.
6022 -- N_Task_Definition
6023 -- Sloc points to first token of task definition
6024 -- Visible_Declarations (List2)
6025 -- Private_Declarations (List3) (set to No_List if no private part)
6026 -- End_Label (Node4)
6027 -- Has_Storage_Size_Pragma (Flag5-Sem)
6028 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
6030 --------------------
6031 -- 9.1 Task Item --
6032 --------------------
6034 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
6036 --------------------
6037 -- 9.1 Task Body --
6038 --------------------
6040 -- TASK_BODY ::=
6041 -- task body task_DEFINING_IDENTIFIER
6042 -- [ASPECT_SPECIFICATIONS]
6043 -- is
6044 -- DECLARATIVE_PART
6045 -- begin
6046 -- HANDLED_SEQUENCE_OF_STATEMENTS
6047 -- end [task_IDENTIFIER];
6049 -- Gigi restriction: This node never appears
6051 -- N_Task_Body
6052 -- Sloc points to TASK
6053 -- Defining_Identifier (Node1)
6054 -- Declarations (List2)
6055 -- Handled_Statement_Sequence (Node4)
6056 -- Is_Task_Master (Flag5-Sem)
6057 -- Activation_Chain_Entity (Node3-Sem)
6058 -- Corresponding_Spec (Node5-Sem)
6059 -- Was_Originally_Stub (Flag13-Sem)
6061 -------------------------------------
6062 -- 9.4 Protected Type Declaration --
6063 -------------------------------------
6065 -- PROTECTED_TYPE_DECLARATION ::=
6066 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
6067 -- [ASPECT_SPECIFICATIONS]
6068 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
6070 -- Note: protected type declarations are not permitted in Ada 83 mode
6072 -- N_Protected_Type_Declaration
6073 -- Sloc points to PROTECTED
6074 -- Defining_Identifier (Node1)
6075 -- Discriminant_Specifications (List4) (set to No_List if no
6076 -- discriminant part)
6077 -- Interface_List (List2) (set to No_List if none)
6078 -- Protected_Definition (Node3)
6079 -- Corresponding_Body (Node5-Sem)
6081 ---------------------------------------
6082 -- 9.4 Single Protected Declaration --
6083 ---------------------------------------
6085 -- SINGLE_PROTECTED_DECLARATION ::=
6086 -- protected DEFINING_IDENTIFIER
6087 -- [ASPECT_SPECIFICATIONS]
6088 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
6090 -- Note: single protected declarations are not allowed in Ada 83 mode
6092 -- N_Single_Protected_Declaration
6093 -- Sloc points to PROTECTED
6094 -- Defining_Identifier (Node1)
6095 -- Interface_List (List2) (set to No_List if none)
6096 -- Protected_Definition (Node3)
6098 -------------------------------
6099 -- 9.4 Protected Definition --
6100 -------------------------------
6102 -- PROTECTED_DEFINITION ::=
6103 -- {PROTECTED_OPERATION_DECLARATION}
6104 -- [private
6105 -- {PROTECTED_ELEMENT_DECLARATION}]
6106 -- end [protected_IDENTIFIER]
6108 -- N_Protected_Definition
6109 -- Sloc points to first token of protected definition
6110 -- Visible_Declarations (List2)
6111 -- Private_Declarations (List3) (set to No_List if no private part)
6112 -- End_Label (Node4)
6114 ------------------------------------------
6115 -- 9.4 Protected Operation Declaration --
6116 ------------------------------------------
6118 -- PROTECTED_OPERATION_DECLARATION ::=
6119 -- SUBPROGRAM_DECLARATION
6120 -- | ENTRY_DECLARATION
6121 -- | REPRESENTATION_CLAUSE
6123 ----------------------------------------
6124 -- 9.4 Protected Element Declaration --
6125 ----------------------------------------
6127 -- PROTECTED_ELEMENT_DECLARATION ::=
6128 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
6130 -------------------------
6131 -- 9.4 Protected Body --
6132 -------------------------
6134 -- PROTECTED_BODY ::=
6135 -- protected body DEFINING_IDENTIFIER
6136 -- [ASPECT_SPECIFICATIONS];
6137 -- is
6138 -- {PROTECTED_OPERATION_ITEM}
6139 -- end [protected_IDENTIFIER];
6141 -- Note: protected bodies are not allowed in Ada 83 mode
6143 -- Gigi restriction: This node never appears
6145 -- N_Protected_Body
6146 -- Sloc points to PROTECTED
6147 -- Defining_Identifier (Node1)
6148 -- Declarations (List2) protected operation items (and pragmas)
6149 -- End_Label (Node4)
6150 -- Corresponding_Spec (Node5-Sem)
6151 -- Was_Originally_Stub (Flag13-Sem)
6153 -----------------------------------
6154 -- 9.4 Protected Operation Item --
6155 -----------------------------------
6157 -- PROTECTED_OPERATION_ITEM ::=
6158 -- SUBPROGRAM_DECLARATION
6159 -- | SUBPROGRAM_BODY
6160 -- | ENTRY_BODY
6161 -- | REPRESENTATION_CLAUSE
6163 ------------------------------
6164 -- 9.5.2 Entry Declaration --
6165 ------------------------------
6167 -- ENTRY_DECLARATION ::=
6168 -- [[not] overriding]
6169 -- entry DEFINING_IDENTIFIER
6170 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
6171 -- [ASPECT_SPECIFICATIONS];
6173 -- N_Entry_Declaration
6174 -- Sloc points to ENTRY
6175 -- Defining_Identifier (Node1)
6176 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
6177 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6178 -- Corresponding_Body (Node5-Sem)
6179 -- Must_Override (Flag14) set if overriding indicator present
6180 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6182 -- Note: overriding indicator is an Ada 2005 feature
6184 -----------------------------
6185 -- 9.5.2 Accept statement --
6186 -----------------------------
6188 -- ACCEPT_STATEMENT ::=
6189 -- accept entry_DIRECT_NAME
6190 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
6191 -- HANDLED_SEQUENCE_OF_STATEMENTS
6192 -- end [entry_IDENTIFIER]];
6194 -- Gigi restriction: This node never appears
6196 -- Note: there are no explicit declarations allowed in an accept
6197 -- statement. However, the implicit declarations for any statement
6198 -- identifiers (labels and block/loop identifiers) are declarations
6199 -- that belong logically to the accept statement, and that is why
6200 -- there is a Declarations field in this node.
6202 -- N_Accept_Statement
6203 -- Sloc points to ACCEPT
6204 -- Entry_Direct_Name (Node1)
6205 -- Entry_Index (Node5) (set to Empty if not present)
6206 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6207 -- Handled_Statement_Sequence (Node4)
6208 -- Declarations (List2) (set to No_List if no declarations)
6210 ------------------------
6211 -- 9.5.2 Entry Index --
6212 ------------------------
6214 -- ENTRY_INDEX ::= EXPRESSION
6216 -----------------------
6217 -- 9.5.2 Entry Body --
6218 -----------------------
6220 -- ENTRY_BODY ::=
6221 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
6222 -- DECLARATIVE_PART
6223 -- begin
6224 -- HANDLED_SEQUENCE_OF_STATEMENTS
6225 -- end [entry_IDENTIFIER];
6227 -- ENTRY_BARRIER ::= when CONDITION
6229 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
6230 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
6231 -- too full (it would otherwise have too many fields)
6233 -- Gigi restriction: This node never appears
6235 -- N_Entry_Body
6236 -- Sloc points to ENTRY
6237 -- Defining_Identifier (Node1)
6238 -- Entry_Body_Formal_Part (Node5)
6239 -- Declarations (List2)
6240 -- Handled_Statement_Sequence (Node4)
6241 -- Activation_Chain_Entity (Node3-Sem)
6243 -----------------------------------
6244 -- 9.5.2 Entry Body Formal Part --
6245 -----------------------------------
6247 -- ENTRY_BODY_FORMAL_PART ::=
6248 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
6250 -- Note that an entry body formal part node is present even if it is
6251 -- empty. This reflects the grammar, in which it is the components of
6252 -- the entry body formal part that are optional, not the entry body
6253 -- formal part itself. Also this means that the barrier condition
6254 -- always has somewhere to be stored.
6256 -- Gigi restriction: This node never appears
6258 -- N_Entry_Body_Formal_Part
6259 -- Sloc points to first token
6260 -- Entry_Index_Specification (Node4) (set to Empty if not present)
6261 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6262 -- Condition (Node1) from entry barrier of entry body
6264 --------------------------
6265 -- 9.5.2 Entry Barrier --
6266 --------------------------
6268 -- ENTRY_BARRIER ::= when CONDITION
6270 --------------------------------------
6271 -- 9.5.2 Entry Index Specification --
6272 --------------------------------------
6274 -- ENTRY_INDEX_SPECIFICATION ::=
6275 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
6277 -- Gigi restriction: This node never appears
6279 -- N_Entry_Index_Specification
6280 -- Sloc points to FOR
6281 -- Defining_Identifier (Node1)
6282 -- Discrete_Subtype_Definition (Node4)
6284 ---------------------------------
6285 -- 9.5.3 Entry Call Statement --
6286 ---------------------------------
6288 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
6290 -- The parser may generate a procedure call for this construct. The
6291 -- semantic pass must correct this misidentification where needed.
6293 -- Gigi restriction: This node never appears
6295 -- N_Entry_Call_Statement
6296 -- Sloc points to first token of name
6297 -- Name (Node2)
6298 -- Parameter_Associations (List3) (set to No_List if no
6299 -- actual parameter part)
6300 -- First_Named_Actual (Node4-Sem)
6301 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
6302 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
6303 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
6305 ------------------------------
6306 -- 9.5.4 Requeue Statement --
6307 ------------------------------
6309 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
6311 -- Note: requeue statements are not permitted in Ada 83 mode
6313 -- Gigi restriction: This node never appears
6315 -- N_Requeue_Statement
6316 -- Sloc points to REQUEUE
6317 -- Name (Node2)
6318 -- Abort_Present (Flag15)
6319 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
6320 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
6321 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
6323 --------------------------
6324 -- 9.6 Delay Statement --
6325 --------------------------
6327 -- DELAY_STATEMENT ::=
6328 -- DELAY_UNTIL_STATEMENT
6329 -- | DELAY_RELATIVE_STATEMENT
6331 --------------------------------
6332 -- 9.6 Delay Until Statement --
6333 --------------------------------
6335 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
6337 -- Note: delay until statements are not permitted in Ada 83 mode
6339 -- Gigi restriction: This node never appears
6341 -- N_Delay_Until_Statement
6342 -- Sloc points to DELAY
6343 -- Expression (Node3)
6345 -----------------------------------
6346 -- 9.6 Delay Relative Statement --
6347 -----------------------------------
6349 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
6351 -- Gigi restriction: This node never appears
6353 -- N_Delay_Relative_Statement
6354 -- Sloc points to DELAY
6355 -- Expression (Node3)
6357 ---------------------------
6358 -- 9.7 Select Statement --
6359 ---------------------------
6361 -- SELECT_STATEMENT ::=
6362 -- SELECTIVE_ACCEPT
6363 -- | TIMED_ENTRY_CALL
6364 -- | CONDITIONAL_ENTRY_CALL
6365 -- | ASYNCHRONOUS_SELECT
6367 -----------------------------
6368 -- 9.7.1 Selective Accept --
6369 -----------------------------
6371 -- SELECTIVE_ACCEPT ::=
6372 -- select
6373 -- [GUARD]
6374 -- SELECT_ALTERNATIVE
6375 -- {or
6376 -- [GUARD]
6377 -- SELECT_ALTERNATIVE}
6378 -- [else
6379 -- SEQUENCE_OF_STATEMENTS]
6380 -- end select;
6382 -- Gigi restriction: This node never appears
6384 -- Note: the guard expression, if present, appears in the node for
6385 -- the select alternative.
6387 -- N_Selective_Accept
6388 -- Sloc points to SELECT
6389 -- Select_Alternatives (List1)
6390 -- Else_Statements (List4) (set to No_List if no else part)
6392 ------------------
6393 -- 9.7.1 Guard --
6394 ------------------
6396 -- GUARD ::= when CONDITION =>
6398 -- As noted above, the CONDITION that is part of a GUARD is included
6399 -- in the node for the select alternative for convenience.
6401 -------------------------------
6402 -- 9.7.1 Select Alternative --
6403 -------------------------------
6405 -- SELECT_ALTERNATIVE ::=
6406 -- ACCEPT_ALTERNATIVE
6407 -- | DELAY_ALTERNATIVE
6408 -- | TERMINATE_ALTERNATIVE
6410 -------------------------------
6411 -- 9.7.1 Accept Alternative --
6412 -------------------------------
6414 -- ACCEPT_ALTERNATIVE ::=
6415 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
6417 -- Gigi restriction: This node never appears
6419 -- N_Accept_Alternative
6420 -- Sloc points to ACCEPT
6421 -- Accept_Statement (Node2)
6422 -- Condition (Node1) from the guard (set to Empty if no guard present)
6423 -- Statements (List3) (set to Empty_List if no statements)
6424 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6425 -- Accept_Handler_Records (List5-Sem)
6427 ------------------------------
6428 -- 9.7.1 Delay Alternative --
6429 ------------------------------
6431 -- DELAY_ALTERNATIVE ::=
6432 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
6434 -- Gigi restriction: This node never appears
6436 -- N_Delay_Alternative
6437 -- Sloc points to DELAY
6438 -- Delay_Statement (Node2)
6439 -- Condition (Node1) from the guard (set to Empty if no guard present)
6440 -- Statements (List3) (set to Empty_List if no statements)
6441 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6443 ----------------------------------
6444 -- 9.7.1 Terminate Alternative --
6445 ----------------------------------
6447 -- TERMINATE_ALTERNATIVE ::= terminate;
6449 -- Gigi restriction: This node never appears
6451 -- N_Terminate_Alternative
6452 -- Sloc points to TERMINATE
6453 -- Condition (Node1) from the guard (set to Empty if no guard present)
6454 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6455 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
6457 -----------------------------
6458 -- 9.7.2 Timed Entry Call --
6459 -----------------------------
6461 -- TIMED_ENTRY_CALL ::=
6462 -- select
6463 -- ENTRY_CALL_ALTERNATIVE
6464 -- or
6465 -- DELAY_ALTERNATIVE
6466 -- end select;
6468 -- Gigi restriction: This node never appears
6470 -- N_Timed_Entry_Call
6471 -- Sloc points to SELECT
6472 -- Entry_Call_Alternative (Node1)
6473 -- Delay_Alternative (Node4)
6475 -----------------------------------
6476 -- 9.7.2 Entry Call Alternative --
6477 -----------------------------------
6479 -- ENTRY_CALL_ALTERNATIVE ::=
6480 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
6482 -- PROCEDURE_OR_ENTRY_CALL ::=
6483 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
6485 -- Gigi restriction: This node never appears
6487 -- N_Entry_Call_Alternative
6488 -- Sloc points to first token of entry call statement
6489 -- Entry_Call_Statement (Node1)
6490 -- Statements (List3) (set to Empty_List if no statements)
6491 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6493 -----------------------------------
6494 -- 9.7.3 Conditional Entry Call --
6495 -----------------------------------
6497 -- CONDITIONAL_ENTRY_CALL ::=
6498 -- select
6499 -- ENTRY_CALL_ALTERNATIVE
6500 -- else
6501 -- SEQUENCE_OF_STATEMENTS
6502 -- end select;
6504 -- Gigi restriction: This node never appears
6506 -- N_Conditional_Entry_Call
6507 -- Sloc points to SELECT
6508 -- Entry_Call_Alternative (Node1)
6509 -- Else_Statements (List4)
6511 --------------------------------
6512 -- 9.7.4 Asynchronous Select --
6513 --------------------------------
6515 -- ASYNCHRONOUS_SELECT ::=
6516 -- select
6517 -- TRIGGERING_ALTERNATIVE
6518 -- then abort
6519 -- ABORTABLE_PART
6520 -- end select;
6522 -- Note: asynchronous select is not permitted in Ada 83 mode
6524 -- Gigi restriction: This node never appears
6526 -- N_Asynchronous_Select
6527 -- Sloc points to SELECT
6528 -- Triggering_Alternative (Node1)
6529 -- Abortable_Part (Node2)
6531 -----------------------------------
6532 -- 9.7.4 Triggering Alternative --
6533 -----------------------------------
6535 -- TRIGGERING_ALTERNATIVE ::=
6536 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6538 -- Gigi restriction: This node never appears
6540 -- N_Triggering_Alternative
6541 -- Sloc points to first token of triggering statement
6542 -- Triggering_Statement (Node1)
6543 -- Statements (List3) (set to Empty_List if no statements)
6544 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6546 ---------------------------------
6547 -- 9.7.4 Triggering Statement --
6548 ---------------------------------
6550 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6552 ---------------------------
6553 -- 9.7.4 Abortable Part --
6554 ---------------------------
6556 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6558 -- Gigi restriction: This node never appears
6560 -- N_Abortable_Part
6561 -- Sloc points to ABORT
6562 -- Statements (List3)
6564 --------------------------
6565 -- 9.8 Abort Statement --
6566 --------------------------
6568 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6570 -- Gigi restriction: This node never appears
6572 -- N_Abort_Statement
6573 -- Sloc points to ABORT
6574 -- Names (List2)
6576 -------------------------
6577 -- 10.1.1 Compilation --
6578 -------------------------
6580 -- COMPILATION ::= {COMPILATION_UNIT}
6582 -- There is no explicit node in the tree for a compilation, since in
6583 -- general the compiler is processing only a single compilation unit
6584 -- at a time. It is possible to parse multiple units in syntax check
6585 -- only mode, but the trees are discarded in that case.
6587 ------------------------------
6588 -- 10.1.1 Compilation Unit --
6589 ------------------------------
6591 -- COMPILATION_UNIT ::=
6592 -- CONTEXT_CLAUSE LIBRARY_ITEM
6593 -- | CONTEXT_CLAUSE SUBUNIT
6595 -- The N_Compilation_Unit node itself represents the above syntax.
6596 -- However, there are two additional items not reflected in the above
6597 -- syntax. First we have the global declarations that are added by the
6598 -- code generator. These are outer level declarations (so they cannot
6599 -- be represented as being inside the units). An example is the wrapper
6600 -- subprograms that are created to do ABE checking. As always a list of
6601 -- declarations can contain actions as well (i.e. statements), and such
6602 -- statements are executed as part of the elaboration of the unit. Note
6603 -- that all such declarations are elaborated before the library unit.
6605 -- Similarly, certain actions need to be elaborated at the completion
6606 -- of elaboration of the library unit (notably the statement that sets
6607 -- the Boolean flag indicating that elaboration is complete).
6609 -- The third item not reflected in the syntax is pragmas that appear
6610 -- after the compilation unit. As always pragmas are a problem since
6611 -- they are not part of the formal syntax, but can be stuck into the
6612 -- source following a set of ad hoc rules, and we have to find an ad
6613 -- hoc way of sticking them into the tree. For pragmas that appear
6614 -- before the library unit, we just consider them to be part of the
6615 -- context clause, and pragmas can appear in the Context_Items list
6616 -- of the compilation unit. However, pragmas can also appear after
6617 -- the library item.
6619 -- To deal with all these problems, we create an auxiliary node for
6620 -- a compilation unit, referenced from the N_Compilation_Unit node,
6621 -- that contains these items.
6623 -- N_Compilation_Unit
6624 -- Sloc points to first token of defining unit name
6625 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6626 -- Context_Items (List1) context items and pragmas preceding unit
6627 -- Private_Present (Flag15) set if library unit has private keyword
6628 -- Unit (Node2) library item or subunit
6629 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6630 -- Has_No_Elaboration_Code (Flag17-Sem)
6631 -- Body_Required (Flag13-Sem) set for spec if body is required
6632 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6633 -- Context_Pending (Flag16-Sem)
6634 -- First_Inlined_Subprogram (Node3-Sem)
6635 -- Has_Pragma_Suppress_All (Flag14-Sem)
6637 -- N_Compilation_Unit_Aux
6638 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6639 -- Declarations (List2) (set to No_List if no global declarations)
6640 -- Actions (List1) (set to No_List if no actions)
6641 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6642 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6643 -- Default_Storage_Pool (Node3-Sem)
6645 --------------------------
6646 -- 10.1.1 Library Item --
6647 --------------------------
6649 -- LIBRARY_ITEM ::=
6650 -- [private] LIBRARY_UNIT_DECLARATION
6651 -- | LIBRARY_UNIT_BODY
6652 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6654 -- Note: PRIVATE is not allowed in Ada 83 mode
6656 -- There is no explicit node in the tree for library item, instead
6657 -- the declaration or body, and the flag for private if present,
6658 -- appear in the N_Compilation_Unit node.
6660 --------------------------------------
6661 -- 10.1.1 Library Unit Declaration --
6662 --------------------------------------
6664 -- LIBRARY_UNIT_DECLARATION ::=
6665 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6666 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6668 -----------------------------------------------
6669 -- 10.1.1 Library Unit Renaming Declaration --
6670 -----------------------------------------------
6672 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6673 -- PACKAGE_RENAMING_DECLARATION
6674 -- | GENERIC_RENAMING_DECLARATION
6675 -- | SUBPROGRAM_RENAMING_DECLARATION
6677 -------------------------------
6678 -- 10.1.1 Library unit body --
6679 -------------------------------
6681 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6683 ------------------------------
6684 -- 10.1.1 Parent Unit Name --
6685 ------------------------------
6687 -- PARENT_UNIT_NAME ::= NAME
6689 ----------------------------
6690 -- 10.1.2 Context clause --
6691 ----------------------------
6693 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6695 -- The context clause can include pragmas, and any pragmas that appear
6696 -- before the context clause proper (i.e. all configuration pragmas,
6697 -- also appear at the front of this list).
6699 --------------------------
6700 -- 10.1.2 Context_Item --
6701 --------------------------
6703 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6705 -------------------------
6706 -- 10.1.2 With clause --
6707 -------------------------
6709 -- WITH_CLAUSE ::=
6710 -- with library_unit_NAME {,library_unit_NAME};
6712 -- A separate With clause is built for each name, so that we have
6713 -- a Corresponding_Spec field for each with'ed spec. The flags
6714 -- First_Name and Last_Name are used to reconstruct the exact
6715 -- source form. When a list of names appears in one with clause,
6716 -- the first name in the list has First_Name set, and the last
6717 -- has Last_Name set. If the with clause has only one name, then
6718 -- both of the flags First_Name and Last_Name are set in this name.
6720 -- Note: in the case of implicit with's that are installed by the
6721 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6722 -- set to Standard_Location, but it is incorrect to test the Sloc
6723 -- to find out if a with clause is implicit, test the flag instead.
6725 -- N_With_Clause
6726 -- Sloc points to first token of library unit name
6727 -- Withed_Body (Node1-Sem)
6728 -- Name (Node2)
6729 -- Private_Present (Flag15) set if with_clause has private keyword
6730 -- Limited_Present (Flag17) set if LIMITED is present
6731 -- Next_Implicit_With (Node3-Sem)
6732 -- Library_Unit (Node4-Sem)
6733 -- Corresponding_Spec (Node5-Sem)
6734 -- First_Name (Flag5) (set to True if first name or only one name)
6735 -- Last_Name (Flag6) (set to True if last name or only one name)
6736 -- Context_Installed (Flag13-Sem)
6737 -- Elaborate_Present (Flag4-Sem)
6738 -- Elaborate_All_Present (Flag14-Sem)
6739 -- Elaborate_All_Desirable (Flag9-Sem)
6740 -- Elaborate_Desirable (Flag11-Sem)
6741 -- Implicit_With (Flag16-Sem)
6742 -- Limited_View_Installed (Flag18-Sem)
6743 -- Parent_With (Flag1-Sem)
6744 -- Unreferenced_In_Spec (Flag7-Sem)
6745 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6747 -- Note: Limited_Present and Limited_View_Installed are used to support
6748 -- the implementation of Ada 2005 (AI-50217).
6750 -- Similarly, Private_Present is used to support the implementation of
6751 -- Ada 2005 (AI-50262).
6753 -- Note: if the WITH clause refers to a standard library unit, then a
6754 -- limited with clause is changed into a normal with clause, because we
6755 -- are not prepared to deal with limited with in the context of Rtsfind.
6756 -- So in this case, the Limited_Present flag will be False in the final
6757 -- tree. However, we do NOT do this transformation in ASIS mode, so for
6758 -- ASIS the flag will remain set in this situation.
6760 ----------------------
6761 -- With_Type clause --
6762 ----------------------
6764 -- This is a GNAT extension, used to implement mutually recursive
6765 -- types declared in different packages.
6767 -- Note: this is now obsolete. The functionality of this construct
6768 -- is now implemented by the Ada 2005 limited_with_clause.
6770 ---------------------
6771 -- 10.2 Body stub --
6772 ---------------------
6774 -- BODY_STUB ::=
6775 -- SUBPROGRAM_BODY_STUB
6776 -- | PACKAGE_BODY_STUB
6777 -- | TASK_BODY_STUB
6778 -- | PROTECTED_BODY_STUB
6780 ----------------------------------
6781 -- 10.1.3 Subprogram Body Stub --
6782 ----------------------------------
6784 -- SUBPROGRAM_BODY_STUB ::=
6785 -- SUBPROGRAM_SPECIFICATION is separate
6786 -- [ASPECT_SPECIFICATION];
6788 -- N_Subprogram_Body_Stub
6789 -- Sloc points to FUNCTION or PROCEDURE
6790 -- Specification (Node1)
6791 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6792 -- Library_Unit (Node4-Sem) points to the subunit
6793 -- Corresponding_Body (Node5-Sem)
6795 -------------------------------
6796 -- 10.1.3 Package Body Stub --
6797 -------------------------------
6799 -- PACKAGE_BODY_STUB ::=
6800 -- package body DEFINING_IDENTIFIER is separate
6801 -- [ASPECT_SPECIFICATION];
6803 -- N_Package_Body_Stub
6804 -- Sloc points to PACKAGE
6805 -- Defining_Identifier (Node1)
6806 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6807 -- Library_Unit (Node4-Sem) points to the subunit
6808 -- Corresponding_Body (Node5-Sem)
6810 ----------------------------
6811 -- 10.1.3 Task Body Stub --
6812 ----------------------------
6814 -- TASK_BODY_STUB ::=
6815 -- task body DEFINING_IDENTIFIER is separate
6816 -- [ASPECT_SPECIFICATION];
6818 -- N_Task_Body_Stub
6819 -- Sloc points to TASK
6820 -- Defining_Identifier (Node1)
6821 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6822 -- Library_Unit (Node4-Sem) points to the subunit
6823 -- Corresponding_Body (Node5-Sem)
6825 ---------------------------------
6826 -- 10.1.3 Protected Body Stub --
6827 ---------------------------------
6829 -- PROTECTED_BODY_STUB ::=
6830 -- protected body DEFINING_IDENTIFIER is separate
6831 -- [ASPECT_SPECIFICATION];
6833 -- Note: protected body stubs are not allowed in Ada 83 mode
6835 -- N_Protected_Body_Stub
6836 -- Sloc points to PROTECTED
6837 -- Defining_Identifier (Node1)
6838 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6839 -- Library_Unit (Node4-Sem) points to the subunit
6840 -- Corresponding_Body (Node5-Sem)
6842 ---------------------
6843 -- 10.1.3 Subunit --
6844 ---------------------
6846 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6848 -- N_Subunit
6849 -- Sloc points to SEPARATE
6850 -- Name (Node2) is the name of the parent unit
6851 -- Proper_Body (Node1) is the subunit body
6852 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6854 ---------------------------------
6855 -- 11.1 Exception Declaration --
6856 ---------------------------------
6858 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6859 -- [ASPECT_SPECIFICATIONS];
6861 -- For consistency with object declarations etc., the parser converts
6862 -- the case of multiple identifiers being declared to a series of
6863 -- declarations in which the expression is copied, using the More_Ids
6864 -- and Prev_Ids flags to remember the source form as described in the
6865 -- section on "Handling of Defining Identifier Lists".
6867 -- N_Exception_Declaration
6868 -- Sloc points to EXCEPTION
6869 -- Defining_Identifier (Node1)
6870 -- Expression (Node3-Sem)
6871 -- Renaming_Exception (Node2-Sem)
6872 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6873 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6875 ------------------------------------------
6876 -- 11.2 Handled Sequence Of Statements --
6877 ------------------------------------------
6879 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6880 -- SEQUENCE_OF_STATEMENTS
6881 -- [exception
6882 -- EXCEPTION_HANDLER
6883 -- {EXCEPTION_HANDLER}]
6884 -- [at end
6885 -- cleanup_procedure_call (param, param, param, ...);]
6887 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6888 -- used only internally currently, but is considered to be syntactic.
6889 -- At the moment, the only cleanup action allowed is a single call to
6890 -- a parameterless procedure, and the Identifier field of the node is
6891 -- the procedure to be called. The cleanup action occurs whenever the
6892 -- sequence of statements is left for any reason. The possible reasons
6893 -- are:
6894 -- 1. reaching the end of the sequence
6895 -- 2. exit, return, or goto
6896 -- 3. exception or abort
6897 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6898 -- entirely in the back end. In this case, a handled sequence of
6899 -- statements with an "at end" cannot also have exception handlers.
6900 -- For other back ends, such as gcc with front-end SJLJ, the
6901 -- implementation is split between the front end and back end; the front
6902 -- end implements 3, and the back end implements 1 and 2. In this case,
6903 -- if there is an "at end", the front end inserts the appropriate
6904 -- exception handler, and this handler takes precedence over "at end"
6905 -- in case of exception.
6907 -- The inserted exception handler is of the form:
6909 -- when all others =>
6910 -- cleanup;
6911 -- raise;
6913 -- where cleanup is the procedure to be called. The reason we do this is
6914 -- so that the front end can handle the necessary entries in the
6915 -- exception tables, and other exception handler actions required as
6916 -- part of the normal handling for exception handlers.
6918 -- The AT END cleanup handler protects only the sequence of statements
6919 -- (not the associated declarations of the parent), just like exception
6920 -- handlers. The big difference is that the cleanup procedure is called
6921 -- on either a normal or an abnormal exit from the statement sequence.
6923 -- Note: the list of Exception_Handlers can contain pragmas as well
6924 -- as actual handlers. In practice these pragmas can only occur at
6925 -- the start of the list, since any pragmas occurring later on will
6926 -- be included in the statement list of the corresponding handler.
6928 -- Note: although in the Ada syntax, the sequence of statements in
6929 -- a handled sequence of statements can only contain statements, we
6930 -- allow free mixing of declarations and statements in the resulting
6931 -- expanded tree. This is for example used to deal with the case of
6932 -- a cleanup procedure that must handle declarations as well as the
6933 -- statements of a block.
6935 -- Note: the cleanup_procedure_call does not go through the common
6936 -- processing for calls, which in particular means that it will not be
6937 -- automatically inlined in all cases, even though the procedure to be
6938 -- called is marked inline. More specifically, if the procedure comes
6939 -- from another unit than the main source unit, for example a run-time
6940 -- unit, then it needs to be manually added to the list of bodies to be
6941 -- inlined by invoking Add_Inlined_Body on it.
6943 -- N_Handled_Sequence_Of_Statements
6944 -- Sloc points to first token of first statement
6945 -- Statements (List3)
6946 -- End_Label (Node4) (set to Empty if expander generated)
6947 -- Exception_Handlers (List5) (set to No_List if none present)
6948 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6949 -- First_Real_Statement (Node2-Sem)
6951 -- Note: the parent always contains a Declarations field which contains
6952 -- declarations associated with the handled sequence of statements. This
6953 -- is true even in the case of an accept statement (see description of
6954 -- the N_Accept_Statement node).
6956 -- End_Label refers to the containing construct
6958 -----------------------------
6959 -- 11.2 Exception Handler --
6960 -----------------------------
6962 -- EXCEPTION_HANDLER ::=
6963 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6964 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6965 -- SEQUENCE_OF_STATEMENTS
6967 -- Note: choice parameter specification is not allowed in Ada 83 mode
6969 -- N_Exception_Handler
6970 -- Sloc points to WHEN
6971 -- Choice_Parameter (Node2) (set to Empty if not present)
6972 -- Exception_Choices (List4)
6973 -- Statements (List3)
6974 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6975 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6976 -- Local_Raise_Not_OK (Flag7-Sem)
6977 -- Has_Local_Raise (Flag8-Sem)
6979 ------------------------------------------
6980 -- 11.2 Choice parameter specification --
6981 ------------------------------------------
6983 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6985 ----------------------------
6986 -- 11.2 Exception Choice --
6987 ----------------------------
6989 -- EXCEPTION_CHOICE ::= exception_NAME | others
6991 -- Except in the case of OTHERS, no explicit node appears in the tree
6992 -- for exception choice. Instead the exception name appears directly.
6993 -- An OTHERS choice is represented by a N_Others_Choice node (see
6994 -- section 3.8.1.
6996 -- Note: for the exception choice created for an at end handler, the
6997 -- exception choice is an N_Others_Choice node with All_Others set.
6999 ---------------------------
7000 -- 11.3 Raise Statement --
7001 ---------------------------
7003 -- RAISE_STATEMENT ::= raise [exception_NAME];
7005 -- In Ada 2005, we have
7007 -- RAISE_STATEMENT ::=
7008 -- raise; | raise exception_NAME [with string_EXPRESSION];
7010 -- N_Raise_Statement
7011 -- Sloc points to RAISE
7012 -- Name (Node2) (set to Empty if no exception name present)
7013 -- Expression (Node3) (set to Empty if no expression present)
7014 -- From_At_End (Flag4-Sem)
7016 ----------------------------
7017 -- 11.3 Raise Expression --
7018 ----------------------------
7020 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
7022 -- N_Raise_Expression
7023 -- Sloc points to RAISE
7024 -- Name (Node2) (always present)
7025 -- Expression (Node3) (set to Empty if no expression present)
7026 -- Convert_To_Return_False (Flag13-Sem)
7027 -- plus fields for expression
7029 -------------------------------
7030 -- 12.1 Generic Declaration --
7031 -------------------------------
7033 -- GENERIC_DECLARATION ::=
7034 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
7036 ------------------------------------------
7037 -- 12.1 Generic Subprogram Declaration --
7038 ------------------------------------------
7040 -- GENERIC_SUBPROGRAM_DECLARATION ::=
7041 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
7042 -- [ASPECT_SPECIFICATIONS];
7044 -- Note: Generic_Formal_Declarations can include pragmas
7046 -- N_Generic_Subprogram_Declaration
7047 -- Sloc points to GENERIC
7048 -- Specification (Node1) subprogram specification
7049 -- Corresponding_Body (Node5-Sem)
7050 -- Generic_Formal_Declarations (List2) from generic formal part
7051 -- Parent_Spec (Node4-Sem)
7053 ---------------------------------------
7054 -- 12.1 Generic Package Declaration --
7055 ---------------------------------------
7057 -- GENERIC_PACKAGE_DECLARATION ::=
7058 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
7059 -- [ASPECT_SPECIFICATIONS];
7061 -- Note: when we do generics right, the Activation_Chain_Entity entry
7062 -- for this node can be removed (since the expander won't see generic
7063 -- units any more)???.
7065 -- Note: Generic_Formal_Declarations can include pragmas
7067 -- N_Generic_Package_Declaration
7068 -- Sloc points to GENERIC
7069 -- Specification (Node1) package specification
7070 -- Corresponding_Body (Node5-Sem)
7071 -- Generic_Formal_Declarations (List2) from generic formal part
7072 -- Parent_Spec (Node4-Sem)
7073 -- Activation_Chain_Entity (Node3-Sem)
7075 -------------------------------
7076 -- 12.1 Generic Formal Part --
7077 -------------------------------
7079 -- GENERIC_FORMAL_PART ::=
7080 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
7082 ------------------------------------------------
7083 -- 12.1 Generic Formal Parameter Declaration --
7084 ------------------------------------------------
7086 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
7087 -- FORMAL_OBJECT_DECLARATION
7088 -- | FORMAL_TYPE_DECLARATION
7089 -- | FORMAL_SUBPROGRAM_DECLARATION
7090 -- | FORMAL_PACKAGE_DECLARATION
7092 ---------------------------------
7093 -- 12.3 Generic Instantiation --
7094 ---------------------------------
7096 -- GENERIC_INSTANTIATION ::=
7097 -- package DEFINING_PROGRAM_UNIT_NAME is
7098 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
7099 -- [ASPECT_SPECIFICATIONS];
7100 -- | [[not] overriding]
7101 -- procedure DEFINING_PROGRAM_UNIT_NAME is
7102 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
7103 -- [ASPECT_SPECIFICATIONS];
7104 -- | [[not] overriding]
7105 -- function DEFINING_DESIGNATOR is
7106 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
7107 -- [ASPECT_SPECIFICATIONS];
7109 -- N_Package_Instantiation
7110 -- Sloc points to PACKAGE
7111 -- Defining_Unit_Name (Node1)
7112 -- Name (Node2)
7113 -- Generic_Associations (List3) (set to No_List if no
7114 -- generic actual part)
7115 -- Parent_Spec (Node4-Sem)
7116 -- Instance_Spec (Node5-Sem)
7117 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7118 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7119 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7120 -- Is_Declaration_Level_Node (Flag5-Sem)
7121 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7123 -- N_Procedure_Instantiation
7124 -- Sloc points to PROCEDURE
7125 -- Defining_Unit_Name (Node1)
7126 -- Name (Node2)
7127 -- Parent_Spec (Node4-Sem)
7128 -- Generic_Associations (List3) (set to No_List if no
7129 -- generic actual part)
7130 -- Instance_Spec (Node5-Sem)
7131 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7132 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7133 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7134 -- Is_Declaration_Level_Node (Flag5-Sem)
7135 -- Must_Override (Flag14) set if overriding indicator present
7136 -- Must_Not_Override (Flag15) set if not_overriding indicator present
7137 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7139 -- N_Function_Instantiation
7140 -- Sloc points to FUNCTION
7141 -- Defining_Unit_Name (Node1)
7142 -- Name (Node2)
7143 -- Generic_Associations (List3) (set to No_List if no
7144 -- generic actual part)
7145 -- Parent_Spec (Node4-Sem)
7146 -- Instance_Spec (Node5-Sem)
7147 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7148 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7149 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7150 -- Is_Declaration_Level_Node (Flag5-Sem)
7151 -- Must_Override (Flag14) set if overriding indicator present
7152 -- Must_Not_Override (Flag15) set if not_overriding indicator present
7153 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7155 -- Note: overriding indicator is an Ada 2005 feature
7157 -------------------------------
7158 -- 12.3 Generic Actual Part --
7159 -------------------------------
7161 -- GENERIC_ACTUAL_PART ::=
7162 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
7164 -------------------------------
7165 -- 12.3 Generic Association --
7166 -------------------------------
7168 -- GENERIC_ASSOCIATION ::=
7169 -- [generic_formal_parameter_SELECTOR_NAME =>]
7171 -- Note: unlike the procedure call case, a generic association node
7172 -- is generated for every association, even if no formal parameter
7173 -- selector name is present. In this case the parser will leave the
7174 -- Selector_Name field set to Empty, to be filled in later by the
7175 -- semantic pass.
7177 -- In Ada 2005, a formal may be associated with a box, if the
7178 -- association is part of the list of actuals for a formal package.
7179 -- If the association is given by OTHERS => <>, the association is
7180 -- an N_Others_Choice.
7182 -- N_Generic_Association
7183 -- Sloc points to first token of generic association
7184 -- Selector_Name (Node2) (set to Empty if no formal
7185 -- parameter selector name)
7186 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
7187 -- Box_Present (Flag15) (for formal_package associations with a box)
7189 ---------------------------------------------
7190 -- 12.3 Explicit Generic Actual Parameter --
7191 ---------------------------------------------
7193 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
7194 -- EXPRESSION | variable_NAME | subprogram_NAME
7195 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
7197 -------------------------------------
7198 -- 12.4 Formal Object Declaration --
7199 -------------------------------------
7201 -- FORMAL_OBJECT_DECLARATION ::=
7202 -- DEFINING_IDENTIFIER_LIST :
7203 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
7204 -- [ASPECT_SPECIFICATIONS];
7205 -- | DEFINING_IDENTIFIER_LIST :
7206 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
7207 -- [ASPECT_SPECIFICATIONS];
7209 -- Although the syntax allows multiple identifiers in the list, the
7210 -- semantics is as though successive declarations were given with
7211 -- identical type definition and expression components. To simplify
7212 -- semantic processing, the parser represents a multiple declaration
7213 -- case as a sequence of single declarations, using the More_Ids and
7214 -- Prev_Ids flags to preserve the original source form as described
7215 -- in the section on "Handling of Defining Identifier Lists".
7217 -- N_Formal_Object_Declaration
7218 -- Sloc points to first identifier
7219 -- Defining_Identifier (Node1)
7220 -- In_Present (Flag15)
7221 -- Out_Present (Flag17)
7222 -- Null_Exclusion_Present (Flag11) (set to False if not present)
7223 -- Subtype_Mark (Node4) (set to Empty if not present)
7224 -- Access_Definition (Node3) (set to Empty if not present)
7225 -- Default_Expression (Node5) (set to Empty if no default expression)
7226 -- More_Ids (Flag5) (set to False if no more identifiers in list)
7227 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
7229 -----------------------------------
7230 -- 12.5 Formal Type Declaration --
7231 -----------------------------------
7233 -- FORMAL_TYPE_DECLARATION ::=
7234 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
7235 -- is FORMAL_TYPE_DEFINITION
7236 -- [ASPECT_SPECIFICATIONS];
7237 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
7239 -- N_Formal_Type_Declaration
7240 -- Sloc points to TYPE
7241 -- Defining_Identifier (Node1)
7242 -- Formal_Type_Definition (Node3)
7243 -- Discriminant_Specifications (List4) (set to No_List if no
7244 -- discriminant part)
7245 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
7247 ----------------------------------
7248 -- 12.5 Formal type definition --
7249 ----------------------------------
7251 -- FORMAL_TYPE_DEFINITION ::=
7252 -- FORMAL_PRIVATE_TYPE_DEFINITION
7253 -- | FORMAL_DERIVED_TYPE_DEFINITION
7254 -- | FORMAL_DISCRETE_TYPE_DEFINITION
7255 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
7256 -- | FORMAL_MODULAR_TYPE_DEFINITION
7257 -- | FORMAL_FLOATING_POINT_DEFINITION
7258 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
7259 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
7260 -- | FORMAL_ARRAY_TYPE_DEFINITION
7261 -- | FORMAL_ACCESS_TYPE_DEFINITION
7262 -- | FORMAL_INTERFACE_TYPE_DEFINITION
7263 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
7265 -- The Ada 2012 syntax introduces two new non-terminals:
7266 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
7267 -- the latter category. Here we introduce an incomplete type definition
7268 -- in order to preserve as much as possible the existing structure.
7270 ---------------------------------------------
7271 -- 12.5.1 Formal Private Type Definition --
7272 ---------------------------------------------
7274 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
7275 -- [[abstract] tagged] [limited] private
7277 -- Note: TAGGED is not allowed in Ada 83 mode
7279 -- N_Formal_Private_Type_Definition
7280 -- Sloc points to PRIVATE
7281 -- Uninitialized_Variable (Node3-Sem)
7282 -- Abstract_Present (Flag4)
7283 -- Tagged_Present (Flag15)
7284 -- Limited_Present (Flag17)
7286 --------------------------------------------
7287 -- 12.5.1 Formal Derived Type Definition --
7288 --------------------------------------------
7290 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
7291 -- [abstract] [limited | synchronized]
7292 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
7293 -- Note: this construct is not allowed in Ada 83 mode
7295 -- N_Formal_Derived_Type_Definition
7296 -- Sloc points to NEW
7297 -- Subtype_Mark (Node4)
7298 -- Private_Present (Flag15)
7299 -- Abstract_Present (Flag4)
7300 -- Limited_Present (Flag17)
7301 -- Synchronized_Present (Flag7)
7302 -- Interface_List (List2) (set to No_List if none)
7304 -----------------------------------------------
7305 -- 12.5.1 Formal Incomplete Type Definition --
7306 -----------------------------------------------
7308 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
7310 -- N_Formal_Incomplete_Type_Definition
7311 -- Sloc points to identifier of parent
7312 -- Tagged_Present (Flag15)
7314 ---------------------------------------------
7315 -- 12.5.2 Formal Discrete Type Definition --
7316 ---------------------------------------------
7318 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
7320 -- N_Formal_Discrete_Type_Definition
7321 -- Sloc points to (
7323 ---------------------------------------------------
7324 -- 12.5.2 Formal Signed Integer Type Definition --
7325 ---------------------------------------------------
7327 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
7329 -- N_Formal_Signed_Integer_Type_Definition
7330 -- Sloc points to RANGE
7332 --------------------------------------------
7333 -- 12.5.2 Formal Modular Type Definition --
7334 --------------------------------------------
7336 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
7338 -- N_Formal_Modular_Type_Definition
7339 -- Sloc points to MOD
7341 ----------------------------------------------
7342 -- 12.5.2 Formal Floating Point Definition --
7343 ----------------------------------------------
7345 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
7347 -- N_Formal_Floating_Point_Definition
7348 -- Sloc points to DIGITS
7350 ----------------------------------------------------
7351 -- 12.5.2 Formal Ordinary Fixed Point Definition --
7352 ----------------------------------------------------
7354 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
7356 -- N_Formal_Ordinary_Fixed_Point_Definition
7357 -- Sloc points to DELTA
7359 ---------------------------------------------------
7360 -- 12.5.2 Formal Decimal Fixed Point Definition --
7361 ---------------------------------------------------
7363 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
7365 -- Note: formal decimal fixed point definition not allowed in Ada 83
7367 -- N_Formal_Decimal_Fixed_Point_Definition
7368 -- Sloc points to DELTA
7370 ------------------------------------------
7371 -- 12.5.3 Formal Array Type Definition --
7372 ------------------------------------------
7374 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
7376 -------------------------------------------
7377 -- 12.5.4 Formal Access Type Definition --
7378 -------------------------------------------
7380 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
7382 ----------------------------------------------
7383 -- 12.5.5 Formal Interface Type Definition --
7384 ----------------------------------------------
7386 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
7388 -----------------------------------------
7389 -- 12.6 Formal Subprogram Declaration --
7390 -----------------------------------------
7392 -- FORMAL_SUBPROGRAM_DECLARATION ::=
7393 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
7394 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
7396 --------------------------------------------------
7397 -- 12.6 Formal Concrete Subprogram Declaration --
7398 --------------------------------------------------
7400 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
7401 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
7402 -- [ASPECT_SPECIFICATIONS];
7404 -- N_Formal_Concrete_Subprogram_Declaration
7405 -- Sloc points to WITH
7406 -- Specification (Node1)
7407 -- Default_Name (Node2) (set to Empty if no subprogram default)
7408 -- Box_Present (Flag15)
7410 -- Note: if no subprogram default is present, then Name is set
7411 -- to Empty, and Box_Present is False.
7413 --------------------------------------------------
7414 -- 12.6 Formal Abstract Subprogram Declaration --
7415 --------------------------------------------------
7417 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
7418 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
7419 -- [ASPECT_SPECIFICATIONS];
7421 -- N_Formal_Abstract_Subprogram_Declaration
7422 -- Sloc points to WITH
7423 -- Specification (Node1)
7424 -- Default_Name (Node2) (set to Empty if no subprogram default)
7425 -- Box_Present (Flag15)
7427 -- Note: if no subprogram default is present, then Name is set
7428 -- to Empty, and Box_Present is False.
7430 ------------------------------
7431 -- 12.6 Subprogram Default --
7432 ------------------------------
7434 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
7436 -- There is no separate node in the tree for a subprogram default.
7437 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
7438 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
7439 -- default name or box indication, as needed.
7441 ------------------------
7442 -- 12.6 Default Name --
7443 ------------------------
7445 -- DEFAULT_NAME ::= NAME
7447 --------------------------------------
7448 -- 12.7 Formal Package Declaration --
7449 --------------------------------------
7451 -- FORMAL_PACKAGE_DECLARATION ::=
7452 -- with package DEFINING_IDENTIFIER
7453 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
7454 -- [ASPECT_SPECIFICATIONS];
7456 -- Note: formal package declarations not allowed in Ada 83 mode
7458 -- N_Formal_Package_Declaration
7459 -- Sloc points to WITH
7460 -- Defining_Identifier (Node1)
7461 -- Name (Node2)
7462 -- Generic_Associations (List3) (set to No_List if (<>) case or
7463 -- empty generic actual part)
7464 -- Box_Present (Flag15)
7465 -- Instance_Spec (Node5-Sem)
7466 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7468 --------------------------------------
7469 -- 12.7 Formal Package Actual Part --
7470 --------------------------------------
7472 -- FORMAL_PACKAGE_ACTUAL_PART ::=
7473 -- ([OTHERS] => <>)
7474 -- | [GENERIC_ACTUAL_PART]
7475 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
7477 -- FORMAL_PACKAGE_ASSOCIATION ::=
7478 -- GENERIC_ASSOCIATION
7479 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
7481 -- There is no explicit node in the tree for a formal package actual
7482 -- part. Instead the information appears in the parent node (i.e. the
7483 -- formal package declaration node itself).
7485 -- There is no explicit node for a formal package association. All of
7486 -- them are represented either by a generic association, possibly with
7487 -- Box_Present, or by an N_Others_Choice.
7489 ---------------------------------
7490 -- 13.1 Representation clause --
7491 ---------------------------------
7493 -- REPRESENTATION_CLAUSE ::=
7494 -- ATTRIBUTE_DEFINITION_CLAUSE
7495 -- | ENUMERATION_REPRESENTATION_CLAUSE
7496 -- | RECORD_REPRESENTATION_CLAUSE
7497 -- | AT_CLAUSE
7499 ----------------------
7500 -- 13.1 Local Name --
7501 ----------------------
7503 -- LOCAL_NAME :=
7504 -- DIRECT_NAME
7505 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
7506 -- | library_unit_NAME
7508 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
7509 -- as an attribute reference, which has essentially the same form.
7511 ---------------------------------------
7512 -- 13.3 Attribute definition clause --
7513 ---------------------------------------
7515 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
7516 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
7517 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
7519 -- In Ada 83, the expression must be a simple expression and the
7520 -- local name must be a direct name.
7522 -- Note: the only attribute definition clause that is processed by
7523 -- gigi is an address clause. For all other cases, the information
7524 -- is extracted by the front end and either results in setting entity
7525 -- information, e.g. Esize for the Size clause, or in appropriate
7526 -- expansion actions (e.g. in the case of Storage_Size).
7528 -- For an address clause, Gigi constructs the appropriate addressing
7529 -- code. It also ensures that no aliasing optimizations are made
7530 -- for the object for which the address clause appears.
7532 -- Note: for an address clause used to achieve an overlay:
7534 -- A : Integer;
7535 -- B : Integer;
7536 -- for B'Address use A'Address;
7538 -- the above rule means that Gigi will ensure that no optimizations
7539 -- will be made for B that would violate the implementation advice
7540 -- of RM 13.3(19). However, this advice applies only to B and not
7541 -- to A, which seems unfortunate. The GNAT front end will mark the
7542 -- object A as volatile to also prevent unwanted optimization
7543 -- assumptions based on no aliasing being made for B.
7545 -- N_Attribute_Definition_Clause
7546 -- Sloc points to FOR
7547 -- Name (Node2) the local name
7548 -- Chars (Name1) the identifier name from the attribute designator
7549 -- Expression (Node3) the expression or name
7550 -- Entity (Node4-Sem)
7551 -- Next_Rep_Item (Node5-Sem)
7552 -- From_At_Mod (Flag4-Sem)
7553 -- Check_Address_Alignment (Flag11-Sem)
7554 -- From_Aspect_Specification (Flag13-Sem)
7555 -- Is_Delayed_Aspect (Flag14-Sem)
7556 -- Address_Warning_Posted (Flag18-Sem)
7558 -- Note: if From_Aspect_Specification is set, then Sloc points to the
7559 -- aspect name, and Entity is resolved already to reference the entity
7560 -- to which the aspect applies.
7562 -----------------------------------
7563 -- 13.3.1 Aspect Specifications --
7564 -----------------------------------
7566 -- We modify the RM grammar here, the RM grammar is:
7568 -- ASPECT_SPECIFICATION ::=
7569 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7570 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
7572 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7574 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7576 -- That's inconvenient, since there is no non-terminal name for a single
7577 -- entry in the list of aspects. So we use this grammar instead:
7579 -- ASPECT_SPECIFICATIONS ::=
7580 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7582 -- ASPECT_SPECIFICATION =>
7583 -- ASPECT_MARK [=> ASPECT_DEFINITION]
7585 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7587 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7589 -- Note that for Annotate, the ASPECT_DEFINITION is a pure positional
7590 -- aggregate with the elements of the aggregate corresponding to the
7591 -- successive arguments of the corresponding pragma.
7593 -- See separate package Aspects for details on the incorporation of
7594 -- these nodes into the tree, and how aspect specifications for a given
7595 -- declaration node are associated with that node.
7597 -- N_Aspect_Specification
7598 -- Sloc points to aspect identifier
7599 -- Identifier (Node1) aspect identifier
7600 -- Aspect_Rep_Item (Node2-Sem)
7601 -- Expression (Node3) Aspect_Definition (set to Empty if none)
7602 -- Entity (Node4-Sem) entity to which the aspect applies
7603 -- Next_Rep_Item (Node5-Sem)
7604 -- Class_Present (Flag6) Set if 'Class present
7605 -- Is_Ignored (Flag9-Sem)
7606 -- Is_Checked (Flag11-Sem)
7607 -- Is_Delayed_Aspect (Flag14-Sem)
7608 -- Is_Disabled (Flag15-Sem)
7609 -- Is_Boolean_Aspect (Flag16-Sem)
7610 -- Split_PPC (Flag17) Set if split pre/post attribute
7612 -- Note: Aspect_Specification is an Ada 2012 feature
7614 -- Note: The Identifier serves to identify the aspect involved (it
7615 -- is the aspect whose name corresponds to the Chars field). This
7616 -- means that the other fields of this identifier are unused, and
7617 -- in particular we use the Entity field of this identifier to save
7618 -- a copy of the expression for visibility analysis, see spec of
7619 -- Sem_Ch13 for full details of this usage.
7621 -- In the case of aspects of the form xxx'Class, the aspect identifier
7622 -- is for xxx, and Class_Present is set to True.
7624 -- Note: When a Pre or Post aspect specification is processed, it is
7625 -- broken into AND THEN sections. The left most section has Split_PPC
7626 -- set to False, indicating that it is the original specification (e.g.
7627 -- for posting errors). For the other sections, Split_PPC is set True.
7629 ---------------------------------------------
7630 -- 13.4 Enumeration representation clause --
7631 ---------------------------------------------
7633 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7634 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7636 -- In Ada 83, the name must be a direct name
7638 -- N_Enumeration_Representation_Clause
7639 -- Sloc points to FOR
7640 -- Identifier (Node1) direct name
7641 -- Array_Aggregate (Node3)
7642 -- Next_Rep_Item (Node5-Sem)
7644 ---------------------------------
7645 -- 13.4 Enumeration aggregate --
7646 ---------------------------------
7648 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7650 ------------------------------------------
7651 -- 13.5.1 Record representation clause --
7652 ------------------------------------------
7654 -- RECORD_REPRESENTATION_CLAUSE ::=
7655 -- for first_subtype_LOCAL_NAME use
7656 -- record [MOD_CLAUSE]
7657 -- {COMPONENT_CLAUSE}
7658 -- end record;
7660 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7661 -- replaced by a corresponding Alignment attribute definition clause).
7663 -- Note: Component_Clauses can include pragmas
7665 -- N_Record_Representation_Clause
7666 -- Sloc points to FOR
7667 -- Identifier (Node1) direct name
7668 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7669 -- Component_Clauses (List3)
7670 -- Next_Rep_Item (Node5-Sem)
7672 ------------------------------
7673 -- 13.5.1 Component clause --
7674 ------------------------------
7676 -- COMPONENT_CLAUSE ::=
7677 -- component_LOCAL_NAME at POSITION
7678 -- range FIRST_BIT .. LAST_BIT;
7680 -- N_Component_Clause
7681 -- Sloc points to AT
7682 -- Component_Name (Node1) points to Name or Attribute_Reference
7683 -- Position (Node2)
7684 -- First_Bit (Node3)
7685 -- Last_Bit (Node4)
7687 ----------------------
7688 -- 13.5.1 Position --
7689 ----------------------
7691 -- POSITION ::= static_EXPRESSION
7693 -----------------------
7694 -- 13.5.1 First_Bit --
7695 -----------------------
7697 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7699 ----------------------
7700 -- 13.5.1 Last_Bit --
7701 ----------------------
7703 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7705 --------------------------
7706 -- 13.8 Code statement --
7707 --------------------------
7709 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7711 -- Note: in GNAT, the qualified expression has the form
7713 -- Asm_Insn'(Asm (...));
7715 -- See package System.Machine_Code in file s-maccod.ads for details on
7716 -- the allowed parameters to Asm. There are two ways this node can
7717 -- arise, as a code statement, in which case the expression is the
7718 -- qualified expression, or as a result of the expansion of an intrinsic
7719 -- call to the Asm or Asm_Input procedure.
7721 -- N_Code_Statement
7722 -- Sloc points to first token of the expression
7723 -- Expression (Node3)
7725 -- Note: package Exp_Code contains an abstract functional interface
7726 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7728 ------------------------
7729 -- 13.12 Restriction --
7730 ------------------------
7732 -- RESTRICTION ::=
7733 -- restriction_IDENTIFIER
7734 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7736 -- There is no explicit node for restrictions. Instead the restriction
7737 -- appears in normal pragma syntax as a pragma argument association,
7738 -- which has the same syntactic form.
7740 --------------------------
7741 -- B.2 Shift Operators --
7742 --------------------------
7744 -- Calls to the intrinsic shift functions are converted to one of
7745 -- the following shift nodes, which have the form of normal binary
7746 -- operator names. Note that for a given shift operation, one node
7747 -- covers all possible types, as for normal operators.
7749 -- Note: it is perfectly permissible for the expander to generate
7750 -- shift operation nodes directly, in which case they will be analyzed
7751 -- and parsed in the usual manner.
7753 -- Sprint syntax: shift-function-name!(expr, count)
7755 -- Note: the Left_Opnd field holds the first argument (the value to
7756 -- be shifted). The Right_Opnd field holds the second argument (the
7757 -- shift count). The Chars field is the name of the intrinsic function.
7759 -- N_Op_Rotate_Left
7760 -- Sloc points to the function name
7761 -- plus fields for binary operator
7762 -- plus fields for expression
7763 -- Shift_Count_OK (Flag4-Sem)
7765 -- N_Op_Rotate_Right
7766 -- Sloc points to the function name
7767 -- plus fields for binary operator
7768 -- plus fields for expression
7769 -- Shift_Count_OK (Flag4-Sem)
7771 -- N_Op_Shift_Left
7772 -- Sloc points to the function name
7773 -- plus fields for binary operator
7774 -- plus fields for expression
7775 -- Shift_Count_OK (Flag4-Sem)
7777 -- N_Op_Shift_Right_Arithmetic
7778 -- Sloc points to the function name
7779 -- plus fields for binary operator
7780 -- plus fields for expression
7781 -- Shift_Count_OK (Flag4-Sem)
7783 -- N_Op_Shift_Right
7784 -- Sloc points to the function name
7785 -- plus fields for binary operator
7786 -- plus fields for expression
7787 -- Shift_Count_OK (Flag4-Sem)
7789 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7790 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7792 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7793 -- always less than the word size if Modify_Tree_For_C mode is set.
7795 --------------------------
7796 -- Obsolescent Features --
7797 --------------------------
7799 -- The syntax descriptions and tree nodes for obsolescent features are
7800 -- grouped together, corresponding to their location in appendix I in
7801 -- the RM. However, parsing and semantic analysis for these constructs
7802 -- is located in an appropriate chapter (see individual notes).
7804 ---------------------------
7805 -- J.3 Delta Constraint --
7806 ---------------------------
7808 -- Note: the parse routine for this construct is located in section
7809 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7810 -- where delta constraint logically belongs.
7812 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7814 -- N_Delta_Constraint
7815 -- Sloc points to DELTA
7816 -- Delta_Expression (Node3)
7817 -- Range_Constraint (Node4) (set to Empty if not present)
7819 --------------------
7820 -- J.7 At Clause --
7821 --------------------
7823 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7825 -- Note: the parse routine for this construct is located in Par-Ch13,
7826 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7827 -- belongs if it were not obsolescent.
7829 -- Note: in Ada 83 the expression must be a simple expression
7831 -- Gigi restriction: This node never appears, it is rewritten as an
7832 -- address attribute definition clause.
7834 -- N_At_Clause
7835 -- Sloc points to FOR
7836 -- Identifier (Node1)
7837 -- Expression (Node3)
7839 ---------------------
7840 -- J.8 Mod clause --
7841 ---------------------
7843 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7845 -- Note: the parse routine for this construct is located in Par-Ch13,
7846 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7847 -- belongs if it were not obsolescent.
7849 -- Note: in Ada 83, the expression must be a simple expression
7851 -- Gigi restriction: this node never appears. It is replaced
7852 -- by a corresponding Alignment attribute definition clause.
7854 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7855 -- its name has "clause" in it. This is rather strange, but is quite
7856 -- definitely specified. The pragmas before are collected in the
7857 -- Pragmas_Before field of the mod clause node itself, and pragmas
7858 -- after are simply swallowed up in the list of component clauses.
7860 -- N_Mod_Clause
7861 -- Sloc points to AT
7862 -- Expression (Node3)
7863 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7865 --------------------
7866 -- Semantic Nodes --
7867 --------------------
7869 -- These semantic nodes are used to hold additional semantic information.
7870 -- They are inserted into the tree as a result of semantic processing.
7871 -- Although there are no legitimate source syntax constructions that
7872 -- correspond directly to these nodes, we need a source syntax for the
7873 -- reconstructed tree printed by Sprint, and the node descriptions here
7874 -- show this syntax.
7876 -----------------
7877 -- Call_Marker --
7878 -----------------
7880 -- This node is created during the analysis/resolution of entry calls,
7881 -- requeues, and subprogram calls. It performs several functions:
7883 -- * Call markers provide a uniform model for handling calls by the
7884 -- ABE mechanism, regardless of whether expansion took place.
7886 -- * The call marker captures the target of the related call along
7887 -- with other attributes which are either unavailabe or expensive
7888 -- to recompute once analysis, resolution, and expansion are over.
7890 -- * The call marker aids the ABE Processing phase by signaling the
7891 -- presence of a call in case the original call was transformed by
7892 -- expansion.
7894 -- * The call marker acts as a reference point for the insertion of
7895 -- run-time conditional ABE checks or guaranteed ABE failures.
7897 -- Sprint syntax: #target#
7899 -- The Sprint syntax shown above is not enabled by default
7901 -- N_Call_Marker
7902 -- Sloc points to Sloc of original call
7903 -- Target (Node1-Sem)
7904 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7905 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7906 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7907 -- Is_Source_Call (Flag4-Sem)
7908 -- Is_Declaration_Level_Node (Flag5-Sem)
7909 -- Is_Dispatching_Call (Flag6-Sem)
7910 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7912 ------------------------
7913 -- Compound Statement --
7914 ------------------------
7916 -- This node is created by the analyzer/expander to handle some
7917 -- expansion cases where a sequence of actions needs to be captured
7918 -- within a single node (which acts as a container and allows the
7919 -- entire list of actions to be moved around as a whole) appearing
7920 -- in a sequence of statements.
7922 -- This is the statement counterpart to the expression node
7923 -- N_Expression_With_Actions.
7925 -- The required semantics is that the set of actions is executed in
7926 -- the order in which it appears, as though they appeared by themselves
7927 -- in the enclosing list of declarations or statements. Unlike what
7928 -- happens when using an N_Block_Statement, no new scope is introduced.
7930 -- Note: for the time being, this is used only as a transient
7931 -- representation during expansion, and all compound statement nodes
7932 -- must be exploded back to their constituent statements before handing
7933 -- the tree to the back end.
7935 -- Sprint syntax: do
7936 -- action;
7937 -- action;
7938 -- ...
7939 -- action;
7940 -- end;
7942 -- N_Compound_Statement
7943 -- Actions (List1)
7945 --------------
7946 -- Contract --
7947 --------------
7949 -- This node is used to hold the various parts of an entry, subprogram
7950 -- [body] or package [body] contract, in particular:
7951 -- Abstract states declared by a package declaration
7952 -- Contract cases that apply to a subprogram
7953 -- Dependency relations of inputs and output of a subprogram
7954 -- Global annotations classifying data as input or output
7955 -- Initialization sequences for a package declaration
7956 -- Pre- and postconditions that apply to a subprogram
7958 -- The node appears in an entry and [generic] subprogram [body] entity.
7960 -- Sprint syntax: <none> as the node should not appear in the tree, but
7961 -- only attached to an entry or [generic] subprogram
7962 -- entity.
7964 -- N_Contract
7965 -- Sloc points to the subprogram's name
7966 -- Pre_Post_Conditions (Node1-Sem) (set to Empty if none)
7967 -- Contract_Test_Cases (Node2-Sem) (set to Empty if none)
7968 -- Classifications (Node3-Sem) (set to Empty if none)
7969 -- Is_Expanded_Contract (Flag1-Sem)
7971 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7972 -- to pre- and postconditions associated with an entry or a subprogram
7973 -- [body or stub]. The pragmas can either come from source or be the
7974 -- byproduct of aspect expansion. Currently the following pragmas appear
7975 -- in this list:
7976 -- Post
7977 -- Postcondition
7978 -- Pre
7979 -- Precondition
7980 -- Refined_Post
7981 -- The ordering in the list is in LIFO fashion.
7983 -- Note that there might be multiple preconditions or postconditions
7984 -- in this list, either because they come from separate pragmas in the
7985 -- source, or because a Pre (resp. Post) aspect specification has been
7986 -- broken into AND THEN sections. See Split_PPC for details.
7988 -- In GNATprove mode, the inherited classwide pre- and postconditions
7989 -- (suitably specialized for the specific type of the overriding
7990 -- operation) are also in this list.
7992 -- Contract_Test_Cases contains a collection of pragmas that correspond
7993 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7994 -- list is in LIFO fashion.
7996 -- Classifications contains pragmas that either declare, categorize, or
7997 -- establish dependencies between subprogram or package inputs and
7998 -- outputs. Currently the following pragmas appear in this list:
7999 -- Abstract_States
8000 -- Async_Readers
8001 -- Async_Writers
8002 -- Constant_After_Elaboration
8003 -- Depends
8004 -- Effective_Reads
8005 -- Effective_Writes
8006 -- Extensions_Visible
8007 -- Global
8008 -- Initial_Condition
8009 -- Initializes
8010 -- Part_Of
8011 -- Refined_Depends
8012 -- Refined_Global
8013 -- Refined_States
8014 -- Volatile_Function
8015 -- The ordering is in LIFO fashion.
8017 -------------------
8018 -- Expanded Name --
8019 -------------------
8021 -- The N_Expanded_Name node is used to represent a selected component
8022 -- name that has been resolved to an expanded name. The semantic phase
8023 -- replaces N_Selected_Component nodes that represent names by the use
8024 -- of this node, leaving the N_Selected_Component node used only when
8025 -- the prefix is a record or protected type.
8027 -- The fields of the N_Expanded_Name node are layed out identically
8028 -- to those of the N_Selected_Component node, allowing conversion of
8029 -- an expanded name node to a selected component node to be done
8030 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
8032 -- There is no special sprint syntax for an expanded name
8034 -- N_Expanded_Name
8035 -- Sloc points to the period
8036 -- Chars (Name1) copy of Chars field of selector name
8037 -- Prefix (Node3)
8038 -- Selector_Name (Node2)
8039 -- Entity (Node4-Sem)
8040 -- Associated_Node (Node4-Sem)
8041 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
8042 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
8043 -- Has_Private_View (Flag11-Sem) set in generic units
8044 -- Redundant_Use (Flag13-Sem)
8045 -- Atomic_Sync_Required (Flag14-Sem)
8046 -- plus fields for expression
8048 -----------------------------
8049 -- Expression With Actions --
8050 -----------------------------
8052 -- This node is created by the analyzer/expander to handle some
8053 -- expansion cases, notably short-circuit forms where there are
8054 -- actions associated with the right-hand side operand.
8056 -- The N_Expression_With_Actions node represents an expression with
8057 -- an associated set of actions (which are executable statements and
8058 -- declarations, as might occur in a handled statement sequence).
8060 -- The required semantics is that the set of actions is executed in
8061 -- the order in which it appears just before the expression is
8062 -- evaluated (and these actions must only be executed if the value
8063 -- of the expression is evaluated). The node is considered to be
8064 -- a subexpression, whose value is the value of the Expression after
8065 -- executing all the actions.
8067 -- If the actions contain declarations, then these declarations may
8068 -- be referenced within the expression. However note that there is
8069 -- no proper scope associated with the expression-with-action, so the
8070 -- back-end will elaborate them in the context of the enclosing scope.
8072 -- Sprint syntax: do
8073 -- action;
8074 -- action;
8075 -- ...
8076 -- action;
8077 -- in expression end
8079 -- N_Expression_With_Actions
8080 -- Actions (List1)
8081 -- Expression (Node3)
8082 -- plus fields for expression
8084 -- Note: In the final generated tree presented to the code generator,
8085 -- the actions list is always non-null, since there is no point in this
8086 -- node if the actions are Empty. During semantic analysis there are
8087 -- cases where it is convenient to temporarily generate an empty actions
8088 -- list. This arises in cases where we create such an empty actions
8089 -- list, and it may or may not end up being a place where additional
8090 -- actions are inserted. The expander removes such empty cases after
8091 -- the expression of the node is fully analyzed and expanded, at which
8092 -- point it is safe to remove it, since no more actions can be inserted.
8094 -- Note: In Modify_Tree_For_C, we never generate any declarations in
8095 -- the action list, which can contain only non-declarative statements.
8097 --------------------
8098 -- Free Statement --
8099 --------------------
8101 -- The N_Free_Statement node is generated as a result of a call to an
8102 -- instantiation of Unchecked_Deallocation. The instantiation of this
8103 -- generic is handled specially and generates this node directly.
8105 -- Sprint syntax: free expression
8107 -- N_Free_Statement
8108 -- Sloc is copied from the unchecked deallocation call
8109 -- Expression (Node3) argument to unchecked deallocation call
8110 -- Storage_Pool (Node1-Sem)
8111 -- Procedure_To_Call (Node2-Sem)
8112 -- Actual_Designated_Subtype (Node4-Sem)
8114 -- Note: in the case where a debug source file is generated, the Sloc
8115 -- for this node points to the FREE keyword in the Sprint file output.
8117 -------------------
8118 -- Freeze Entity --
8119 -------------------
8121 -- This node marks the point in a declarative part at which an entity
8122 -- declared therein becomes frozen. The expander places initialization
8123 -- procedures for types at those points. Gigi uses the freezing point
8124 -- to elaborate entities that may depend on previous private types.
8126 -- See the section in Einfo "Delayed Freezing and Elaboration" for
8127 -- a full description of the use of this node.
8129 -- The Entity field points back to the entity for the type (whose
8130 -- Freeze_Node field points back to this freeze node).
8132 -- The Actions field contains a list of declarations and statements
8133 -- generated by the expander which are associated with the freeze
8134 -- node, and are elaborated as though the freeze node were replaced
8135 -- by this sequence of actions.
8137 -- Note: the Sloc field in the freeze node references a construct
8138 -- associated with the freezing point. This is used for posting
8139 -- messages in some error/warning situations, e.g. the case where
8140 -- a primitive operation of a tagged type is declared too late.
8142 -- Sprint syntax: freeze entity-name [
8143 -- freeze actions
8144 -- ]
8146 -- N_Freeze_Entity
8147 -- Sloc points near freeze point (see above special note)
8148 -- Entity (Node4-Sem)
8149 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
8150 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
8151 -- Actions (List1) (set to No_List if no freeze actions)
8152 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
8154 -- The Actions field holds actions associated with the freeze. These
8155 -- actions are elaborated at the point where the type is frozen.
8157 -- Note: in the case where a debug source file is generated, the Sloc
8158 -- for this node points to the FREEZE keyword in the Sprint file output.
8160 ---------------------------
8161 -- Freeze Generic Entity --
8162 ---------------------------
8164 -- The freeze point of an entity indicates the point at which the
8165 -- information needed to generate code for the entity is complete.
8166 -- The freeze node for an entity triggers expander activities, such as
8167 -- build initialization procedures, and backend activities, such as
8168 -- completing the elaboration of packages.
8170 -- For entities declared within a generic unit, for which no code is
8171 -- generated, the freeze point is not equally meaningful. However, in
8172 -- Ada 2012 several semantic checks on declarations must be delayed to
8173 -- the freeze point, and we need to include such a mark in the tree to
8174 -- trigger these checks. The Freeze_Generic_Entity node plays no other
8175 -- role, and is ignored by the expander and the back-end.
8177 -- Sprint syntax: freeze_generic entity-name
8179 -- N_Freeze_Generic_Entity
8180 -- Sloc points near freeze point
8181 -- Entity (Node4-Sem)
8183 --------------------------------
8184 -- Implicit Label Declaration --
8185 --------------------------------
8187 -- An implicit label declaration is created for every occurrence of a
8188 -- label on a statement or a label on a block or loop. It is chained
8189 -- in the declarations of the innermost enclosing block as specified
8190 -- in RM section 5.1 (3).
8192 -- The Defining_Identifier is the actual identifier for the statement
8193 -- identifier. Note that the occurrence of the label is a reference, NOT
8194 -- the defining occurrence. The defining occurrence occurs at the head
8195 -- of the innermost enclosing block, and is represented by this node.
8197 -- Note: from the grammar, this might better be called an implicit
8198 -- statement identifier declaration, but the term we choose seems
8199 -- friendlier, since at least informally statement identifiers are
8200 -- called labels in both cases (i.e. when used in labels, and when
8201 -- used as the identifiers of blocks and loops).
8203 -- Note: although this is logically a semantic node, since it does not
8204 -- correspond directly to a source syntax construction, these nodes are
8205 -- actually created by the parser in a post pass done just after parsing
8206 -- is complete, before semantic analysis is started (see Par.Labl).
8208 -- Sprint syntax: labelname : label;
8210 -- N_Implicit_Label_Declaration
8211 -- Sloc points to the << token for a statement identifier, or to the
8212 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
8213 -- Defining_Identifier (Node1)
8214 -- Label_Construct (Node2-Sem)
8216 -- Note: in the case where a debug source file is generated, the Sloc
8217 -- for this node points to the label name in the generated declaration.
8219 ---------------------
8220 -- Itype Reference --
8221 ---------------------
8223 -- This node is used to create a reference to an Itype. The only purpose
8224 -- is to make sure the Itype is defined if this is the first reference.
8226 -- A typical use of this node is when an Itype is to be referenced in
8227 -- two branches of an IF statement. In this case it is important that
8228 -- the first use of the Itype not be inside the conditional, since then
8229 -- it might not be defined if the other branch of the IF is taken, in
8230 -- the case where the definition generates elaboration code.
8232 -- The Itype field points to the referenced Itype
8234 -- Sprint syntax: reference itype-name
8236 -- N_Itype_Reference
8237 -- Sloc points to the node generating the reference
8238 -- Itype (Node1-Sem)
8240 -- Note: in the case where a debug source file is generated, the Sloc
8241 -- for this node points to the REFERENCE keyword in the file output.
8243 ---------------------
8244 -- Raise xxx Error --
8245 ---------------------
8247 -- One of these nodes is created during semantic analysis to replace
8248 -- a node for an expression that is determined to definitely raise
8249 -- the corresponding exception.
8251 -- The N_Raise_xxx_Error node may also stand alone in place
8252 -- of a declaration or statement, in which case it simply causes
8253 -- the exception to be raised (i.e. it is equivalent to a raise
8254 -- statement that raises the corresponding exception). This use
8255 -- is distinguished by the fact that the Etype in this case is
8256 -- Standard_Void_Type; in the subexpression case, the Etype is the
8257 -- same as the type of the subexpression which it replaces.
8259 -- If Condition is empty, then the raise is unconditional. If the
8260 -- Condition field is non-empty, it is a boolean expression which is
8261 -- first evaluated, and the exception is raised only if the value of the
8262 -- expression is True. In the unconditional case, the creation of this
8263 -- node is usually accompanied by a warning message (unless it appears
8264 -- within the right operand of a short-circuit form whose left argument
8265 -- is static and decisively eliminates elaboration of the raise
8266 -- operation). The condition field can ONLY be present when the node is
8267 -- used as a statement form; it must NOT be present in the case where
8268 -- the node appears within an expression.
8270 -- The exception is generated with a message that contains the
8271 -- file name and line number, and then appended text. The Reason
8272 -- code shows the text to be added. The Reason code is an element
8273 -- of the type Types.RT_Exception_Code, and indicates both the
8274 -- message to be added, and the exception to be raised (which must
8275 -- match the node type). The value is stored by storing a Uint which
8276 -- is the Pos value of the enumeration element in this type.
8278 -- Gigi restriction: This expander ensures that the type of the
8279 -- Condition field is always Standard.Boolean, even if the type
8280 -- in the source is some non-standard boolean type.
8282 -- Sprint syntax: [xxx_error "msg"]
8283 -- or: [xxx_error when condition "msg"]
8285 -- N_Raise_Constraint_Error
8286 -- Sloc references related construct
8287 -- Condition (Node1) (set to Empty if no condition)
8288 -- Reason (Uint3)
8289 -- plus fields for expression
8291 -- N_Raise_Program_Error
8292 -- Sloc references related construct
8293 -- Condition (Node1) (set to Empty if no condition)
8294 -- Reason (Uint3)
8295 -- plus fields for expression
8297 -- N_Raise_Storage_Error
8298 -- Sloc references related construct
8299 -- Condition (Node1) (set to Empty if no condition)
8300 -- Reason (Uint3)
8301 -- plus fields for expression
8303 -- Note: Sloc is copied from the expression generating the exception.
8304 -- In the case where a debug source file is generated, the Sloc for
8305 -- this node points to the left bracket in the Sprint file output.
8307 -- Note: the back end may be required to translate these nodes into
8308 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
8310 ---------------------------------------------
8311 -- Optimization of Exception Raise to Goto --
8312 ---------------------------------------------
8314 -- In some cases, the front end will determine that any exception raised
8315 -- by the back end for a certain exception should be transformed into a
8316 -- goto statement.
8318 -- There are three kinds of exceptions raised by the back end (note that
8319 -- for this purpose we consider gigi to be part of the back end in the
8320 -- gcc case):
8322 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
8323 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
8324 -- 3. Other cases not specifically marked by the front end
8326 -- Normally all such exceptions are translated into calls to the proper
8327 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
8328 -- and the exception message.
8330 -- The front end may determine that for a particular sequence of code,
8331 -- exceptions in any of these three categories for a particular builtin
8332 -- exception should result in a goto, rather than a call to Rcheck_xx.
8333 -- The exact sequence to be generated is:
8335 -- Local_Raise (exception'Identity);
8336 -- goto Label
8338 -- The front end marks such a sequence of code by bracketing it with
8339 -- push and pop nodes:
8341 -- N_Push_xxx_Label (referencing the label)
8342 -- ...
8343 -- (code where transformation is expected for exception xxx)
8344 -- ...
8345 -- N_Pop_xxx_Label
8347 -- The use of push/pop reflects the fact that such regions can properly
8348 -- nest, and one special case is a subregion in which no transformation
8349 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
8350 -- Exception_Label field is Empty.
8352 -- N_Push_Constraint_Error_Label
8353 -- Sloc references first statement in region covered
8354 -- Exception_Label (Node5-Sem)
8356 -- N_Push_Program_Error_Label
8357 -- Sloc references first statement in region covered
8358 -- Exception_Label (Node5-Sem)
8360 -- N_Push_Storage_Error_Label
8361 -- Sloc references first statement in region covered
8362 -- Exception_Label (Node5-Sem)
8364 -- N_Pop_Constraint_Error_Label
8365 -- Sloc references last statement in region covered
8367 -- N_Pop_Program_Error_Label
8368 -- Sloc references last statement in region covered
8370 -- N_Pop_Storage_Error_Label
8371 -- Sloc references last statement in region covered
8373 ---------------
8374 -- Reference --
8375 ---------------
8377 -- For a number of purposes, we need to construct references to objects.
8378 -- These references are subsequently treated as normal access values.
8379 -- An example is the construction of the parameter block passed to a
8380 -- task entry. The N_Reference node is provided for this purpose. It is
8381 -- similar in effect to the use of the Unrestricted_Access attribute,
8382 -- and like Unrestricted_Access can be applied to objects which would
8383 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
8384 -- objects which are not aliased, and slices). In addition it can be
8385 -- applied to composite type values as well as objects, including string
8386 -- values and aggregates.
8388 -- Note: we use the Prefix field for this expression so that the
8389 -- resulting node can be treated using common code with the attribute
8390 -- nodes for the 'Access and related attributes. Logically it would make
8391 -- more sense to call it an Expression field, but then we would have to
8392 -- special case the treatment of the N_Reference node.
8394 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
8395 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
8396 -- a temporary initialized to a N_Reference node in order to eliminate
8397 -- superfluous access checks.
8399 -- Sprint syntax: prefix'reference
8401 -- N_Reference
8402 -- Sloc is copied from the expression
8403 -- Prefix (Node3)
8404 -- plus fields for expression
8406 -- Note: in the case where a debug source file is generated, the Sloc
8407 -- for this node points to the quote in the Sprint file output.
8409 ----------------
8410 -- SCIL Nodes --
8411 ----------------
8413 -- SCIL nodes are special nodes added to the tree when the CodePeer mode
8414 -- is active. They are only generated if SCIL generation is enabled.
8415 -- A standard tree-walk will not encounter these nodes even if they
8416 -- are present; these nodes are only accessible via the function
8417 -- SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
8418 -- semantics.
8420 -- Sprint syntax: [ <node kind> ]
8421 -- No semantic field values are displayed.
8423 -- N_SCIL_Dispatch_Table_Tag_Init
8424 -- Sloc references a node for a tag initialization
8425 -- SCIL_Entity (Node4-Sem)
8427 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
8428 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
8429 -- the declaration of the dispatch table for a tagged type.
8431 -- N_SCIL_Dispatching_Call
8432 -- Sloc references the node of a dispatching call
8433 -- SCIL_Target_Prim (Node2-Sem)
8434 -- SCIL_Entity (Node4-Sem)
8435 -- SCIL_Controlling_Tag (Node5-Sem)
8437 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
8438 -- with the N_Procedure_Call_Statement or N_Function_Call node (or a
8439 -- rewriting thereof) corresponding to a dispatching call.
8441 -- N_SCIL_Membership_Test
8442 -- Sloc references the node of a membership test
8443 -- SCIL_Tag_Value (Node5-Sem)
8444 -- SCIL_Entity (Node4-Sem)
8446 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
8447 -- with the N_In node (or a rewriting thereof) corresponding to a
8448 -- classwide membership test.
8450 --------------------------
8451 -- Unchecked Expression --
8452 --------------------------
8454 -- An unchecked expression is one that must be analyzed and resolved
8455 -- with all checks off, regardless of the current setting of scope
8456 -- suppress flags.
8458 -- Sprint syntax: `(expression)
8460 -- Note: this node is always removed from the tree (and replaced by
8461 -- its constituent expression) on completion of analysis, so it only
8462 -- appears in intermediate trees, and will never be seen by Gigi.
8464 -- N_Unchecked_Expression
8465 -- Sloc is a copy of the Sloc of the expression
8466 -- Expression (Node3)
8467 -- plus fields for expression
8469 -- Note: in the case where a debug source file is generated, the Sloc
8470 -- for this node points to the back quote in the Sprint file output.
8472 -------------------------------
8473 -- Unchecked Type Conversion --
8474 -------------------------------
8476 -- An unchecked type conversion node represents the semantic action
8477 -- corresponding to a call to an instantiation of Unchecked_Conversion.
8478 -- It is generated as a result of actual use of Unchecked_Conversion
8479 -- and also the expander generates unchecked type conversion nodes
8480 -- directly for expansion of complex semantic actions.
8482 -- Note: an unchecked type conversion is a variable as far as the
8483 -- semantics are concerned, which is convenient for the expander.
8484 -- This does not change what Ada source programs are legal, since
8485 -- clearly a function call to an instantiation of Unchecked_Conversion
8486 -- is not a variable in any case.
8488 -- Sprint syntax: subtype-mark!(expression)
8490 -- N_Unchecked_Type_Conversion
8491 -- Sloc points to related node in source
8492 -- Subtype_Mark (Node4)
8493 -- Expression (Node3)
8494 -- Kill_Range_Check (Flag11-Sem)
8495 -- No_Truncation (Flag17-Sem)
8496 -- plus fields for expression
8498 -- Note: in the case where a debug source file is generated, the Sloc
8499 -- for this node points to the exclamation in the Sprint file output.
8501 -----------------------------------
8502 -- Validate_Unchecked_Conversion --
8503 -----------------------------------
8505 -- The front end does most of the validation of unchecked conversion,
8506 -- including checking sizes (this is done after the back end is called
8507 -- to take advantage of back-annotation of calculated sizes).
8509 -- The front end also deals with specific cases that are not allowed
8510 -- e.g. involving unconstrained array types.
8512 -- For the case of the standard gigi backend, this means that all
8513 -- checks are done in the front end.
8515 -- However, in the case of specialized back-ends, in particular the JVM
8516 -- backend in the past, additional requirements and restrictions may
8517 -- apply to unchecked conversion, and these are most conveniently
8518 -- performed in the specialized back-end.
8520 -- To accommodate this requirement, for such back ends, the following
8521 -- special node is generated recording an unchecked conversion that
8522 -- needs to be validated. The back end should post an appropriate
8523 -- error message if the unchecked conversion is invalid or warrants
8524 -- a special warning message.
8526 -- Source_Type and Target_Type point to the entities for the two
8527 -- types involved in the unchecked conversion instantiation that
8528 -- is to be validated.
8530 -- Sprint syntax: validate Unchecked_Conversion (source, target);
8532 -- N_Validate_Unchecked_Conversion
8533 -- Sloc points to instantiation (location for warning message)
8534 -- Source_Type (Node1-Sem)
8535 -- Target_Type (Node2-Sem)
8537 -- Note: in the case where a debug source file is generated, the Sloc
8538 -- for this node points to the VALIDATE keyword in the file output.
8540 -------------------------------
8541 -- Variable_Reference_Marker --
8542 -------------------------------
8544 -- This node is created during the analysis of direct or expanded names,
8545 -- and the resolution of entry and subprogram calls. It performs several
8546 -- functions:
8548 -- * Variable reference markers provide a uniform model for handling
8549 -- variable references by the ABE mechanism, regardless of whether
8550 -- expansion took place.
8552 -- * The variable reference marker captures the entity of the variable
8553 -- being read or written.
8555 -- * The variable reference markers aid the ABE Processing phase by
8556 -- signaling the presence of a call in case the original variable
8557 -- reference was transformed by expansion.
8559 -- Sprint syntax: r#target# -- for a read
8560 -- rw#target# -- for a read/write
8561 -- w#target# -- for a write
8563 -- The Sprint syntax shown above is not enabled by default
8565 -- N_Variable_Reference_Marker
8566 -- Sloc points to Sloc of original variable reference
8567 -- Target (Node1-Sem)
8568 -- Is_Read (Flag1-Sem)
8569 -- Is_Write (Flag2-Sem)
8571 -----------
8572 -- Empty --
8573 -----------
8575 -- Used as the contents of the Nkind field of the dummy Empty node and in
8576 -- some other situations to indicate an uninitialized value.
8578 -- N_Empty
8579 -- Chars (Name1) is set to No_Name
8581 -----------
8582 -- Error --
8583 -----------
8585 -- Used as the contents of the Nkind field of the dummy Error node.
8586 -- Has an Etype field, which gets set to Any_Type later on, to help
8587 -- error recovery (Error_Posted is also set in the Error node).
8589 -- N_Error
8590 -- Chars (Name1) is set to Error_Name
8591 -- Etype (Node5-Sem)
8593 --------------------------
8594 -- Node Type Definition --
8595 --------------------------
8597 -- The following is the definition of the Node_Kind type. As previously
8598 -- discussed, this is separated off to allow rearrangement of the order to
8599 -- facilitate definition of subtype ranges. The comments show the subtype
8600 -- classes which apply to each set of node kinds. The first entry in the
8601 -- comment characterizes the following list of nodes.
8603 type Node_Kind is (
8604 N_Unused_At_Start,
8606 -- N_Representation_Clause
8608 N_At_Clause,
8609 N_Component_Clause,
8610 N_Enumeration_Representation_Clause,
8611 N_Mod_Clause,
8612 N_Record_Representation_Clause,
8614 -- N_Representation_Clause, N_Has_Chars
8616 N_Attribute_Definition_Clause,
8618 -- N_Has_Chars
8620 N_Empty,
8621 N_Pragma_Argument_Association,
8623 -- N_Has_Etype, N_Has_Chars
8625 -- Note: of course N_Error does not really have Etype or Chars fields,
8626 -- and any attempt to access these fields in N_Error will cause an
8627 -- error, but historically this always has been positioned so that an
8628 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8629 -- Most likely this makes coding easier somewhere but still seems
8630 -- undesirable. To be investigated some time ???
8632 N_Error,
8634 -- N_Entity, N_Has_Etype, N_Has_Chars
8636 N_Defining_Character_Literal,
8637 N_Defining_Identifier,
8638 N_Defining_Operator_Symbol,
8640 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8642 N_Expanded_Name,
8644 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8645 -- N_Has_Chars, N_Has_Entity
8647 N_Identifier,
8648 N_Operator_Symbol,
8650 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8651 -- N_Has_Chars, N_Has_Entity
8653 N_Character_Literal,
8655 -- N_Binary_Op, N_Op, N_Subexpr,
8656 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
8658 N_Op_Add,
8659 N_Op_Concat,
8660 N_Op_Expon,
8661 N_Op_Subtract,
8663 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
8664 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8666 N_Op_Divide,
8667 N_Op_Mod,
8668 N_Op_Multiply,
8669 N_Op_Rem,
8671 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8672 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8674 N_Op_And,
8676 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8677 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8679 N_Op_Eq,
8680 N_Op_Ge,
8681 N_Op_Gt,
8682 N_Op_Le,
8683 N_Op_Lt,
8684 N_Op_Ne,
8686 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8687 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8689 N_Op_Or,
8690 N_Op_Xor,
8692 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8693 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
8695 N_Op_Rotate_Left,
8696 N_Op_Rotate_Right,
8697 N_Op_Shift_Left,
8698 N_Op_Shift_Right,
8699 N_Op_Shift_Right_Arithmetic,
8701 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8702 -- N_Has_Chars, N_Has_Entity
8704 N_Op_Abs,
8705 N_Op_Minus,
8706 N_Op_Not,
8707 N_Op_Plus,
8709 -- N_Subexpr, N_Has_Etype, N_Has_Entity
8711 N_Attribute_Reference,
8713 -- N_Subexpr, N_Has_Etype, N_Membership_Test
8715 N_In,
8716 N_Not_In,
8718 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8720 N_And_Then,
8721 N_Or_Else,
8723 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8725 N_Function_Call,
8726 N_Procedure_Call_Statement,
8728 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8730 N_Raise_Constraint_Error,
8731 N_Raise_Program_Error,
8732 N_Raise_Storage_Error,
8734 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8736 N_Integer_Literal,
8737 N_Real_Literal,
8738 N_String_Literal,
8740 -- N_Subexpr, N_Has_Etype
8742 N_Explicit_Dereference,
8743 N_Expression_With_Actions,
8744 N_If_Expression,
8745 N_Indexed_Component,
8746 N_Null,
8747 N_Qualified_Expression,
8748 N_Quantified_Expression,
8749 N_Aggregate,
8750 N_Allocator,
8751 N_Case_Expression,
8752 N_Delta_Aggregate,
8753 N_Extension_Aggregate,
8754 N_Raise_Expression,
8755 N_Range,
8756 N_Reference,
8757 N_Selected_Component,
8758 N_Slice,
8759 N_Target_Name,
8760 N_Type_Conversion,
8761 N_Unchecked_Expression,
8762 N_Unchecked_Type_Conversion,
8764 -- N_Has_Etype
8766 N_Subtype_Indication,
8768 -- N_Declaration
8770 N_Component_Declaration,
8771 N_Entry_Declaration,
8772 N_Expression_Function,
8773 N_Formal_Object_Declaration,
8774 N_Formal_Type_Declaration,
8775 N_Full_Type_Declaration,
8776 N_Incomplete_Type_Declaration,
8777 N_Iterator_Specification,
8778 N_Loop_Parameter_Specification,
8779 N_Object_Declaration,
8780 N_Protected_Type_Declaration,
8781 N_Private_Extension_Declaration,
8782 N_Private_Type_Declaration,
8783 N_Subtype_Declaration,
8785 -- N_Subprogram_Specification, N_Declaration
8787 N_Function_Specification,
8788 N_Procedure_Specification,
8790 -- N_Access_To_Subprogram_Definition
8792 N_Access_Function_Definition,
8793 N_Access_Procedure_Definition,
8795 -- N_Later_Decl_Item
8797 N_Task_Type_Declaration,
8799 -- N_Body_Stub, N_Later_Decl_Item
8801 N_Package_Body_Stub,
8802 N_Protected_Body_Stub,
8803 N_Subprogram_Body_Stub,
8804 N_Task_Body_Stub,
8806 -- N_Generic_Instantiation, N_Later_Decl_Item
8807 -- N_Subprogram_Instantiation
8809 N_Function_Instantiation,
8810 N_Procedure_Instantiation,
8812 -- N_Generic_Instantiation, N_Later_Decl_Item
8814 N_Package_Instantiation,
8816 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8818 N_Package_Body,
8819 N_Subprogram_Body,
8821 -- N_Later_Decl_Item, N_Proper_Body
8823 N_Protected_Body,
8824 N_Task_Body,
8826 -- N_Later_Decl_Item
8828 N_Implicit_Label_Declaration,
8829 N_Package_Declaration,
8830 N_Single_Task_Declaration,
8831 N_Subprogram_Declaration,
8832 N_Use_Package_Clause,
8834 -- N_Generic_Declaration, N_Later_Decl_Item
8836 N_Generic_Package_Declaration,
8837 N_Generic_Subprogram_Declaration,
8839 -- N_Array_Type_Definition
8841 N_Constrained_Array_Definition,
8842 N_Unconstrained_Array_Definition,
8844 -- N_Renaming_Declaration
8846 N_Exception_Renaming_Declaration,
8847 N_Object_Renaming_Declaration,
8848 N_Package_Renaming_Declaration,
8849 N_Subprogram_Renaming_Declaration,
8851 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8853 N_Generic_Function_Renaming_Declaration,
8854 N_Generic_Package_Renaming_Declaration,
8855 N_Generic_Procedure_Renaming_Declaration,
8857 -- N_Statement_Other_Than_Procedure_Call
8859 N_Abort_Statement,
8860 N_Accept_Statement,
8861 N_Assignment_Statement,
8862 N_Asynchronous_Select,
8863 N_Block_Statement,
8864 N_Case_Statement,
8865 N_Code_Statement,
8866 N_Compound_Statement,
8867 N_Conditional_Entry_Call,
8869 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8871 N_Delay_Relative_Statement,
8872 N_Delay_Until_Statement,
8874 -- N_Statement_Other_Than_Procedure_Call
8876 N_Entry_Call_Statement,
8877 N_Free_Statement,
8878 N_Goto_Statement,
8879 N_Loop_Statement,
8880 N_Null_Statement,
8881 N_Raise_Statement,
8882 N_Requeue_Statement,
8883 N_Simple_Return_Statement,
8884 N_Extended_Return_Statement,
8885 N_Selective_Accept,
8886 N_Timed_Entry_Call,
8888 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8890 N_Exit_Statement,
8891 N_If_Statement,
8893 -- N_Has_Condition
8895 N_Accept_Alternative,
8896 N_Delay_Alternative,
8897 N_Elsif_Part,
8898 N_Entry_Body_Formal_Part,
8899 N_Iteration_Scheme,
8900 N_Terminate_Alternative,
8902 -- N_Formal_Subprogram_Declaration
8904 N_Formal_Abstract_Subprogram_Declaration,
8905 N_Formal_Concrete_Subprogram_Declaration,
8907 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8909 N_Push_Constraint_Error_Label,
8910 N_Push_Program_Error_Label,
8911 N_Push_Storage_Error_Label,
8913 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8915 N_Pop_Constraint_Error_Label,
8916 N_Pop_Program_Error_Label,
8917 N_Pop_Storage_Error_Label,
8919 -- SCIL nodes
8921 N_SCIL_Dispatch_Table_Tag_Init,
8922 N_SCIL_Dispatching_Call,
8923 N_SCIL_Membership_Test,
8925 -- Other nodes (not part of any subtype class)
8927 N_Abortable_Part,
8928 N_Abstract_Subprogram_Declaration,
8929 N_Access_Definition,
8930 N_Access_To_Object_Definition,
8931 N_Aspect_Specification,
8932 N_Call_Marker,
8933 N_Case_Expression_Alternative,
8934 N_Case_Statement_Alternative,
8935 N_Compilation_Unit,
8936 N_Compilation_Unit_Aux,
8937 N_Component_Association,
8938 N_Component_Definition,
8939 N_Component_List,
8940 N_Contract,
8941 N_Derived_Type_Definition,
8942 N_Decimal_Fixed_Point_Definition,
8943 N_Defining_Program_Unit_Name,
8944 N_Delta_Constraint,
8945 N_Designator,
8946 N_Digits_Constraint,
8947 N_Discriminant_Association,
8948 N_Discriminant_Specification,
8949 N_Enumeration_Type_Definition,
8950 N_Entry_Body,
8951 N_Entry_Call_Alternative,
8952 N_Entry_Index_Specification,
8953 N_Exception_Declaration,
8954 N_Exception_Handler,
8955 N_Floating_Point_Definition,
8956 N_Formal_Decimal_Fixed_Point_Definition,
8957 N_Formal_Derived_Type_Definition,
8958 N_Formal_Discrete_Type_Definition,
8959 N_Formal_Floating_Point_Definition,
8960 N_Formal_Modular_Type_Definition,
8961 N_Formal_Ordinary_Fixed_Point_Definition,
8962 N_Formal_Package_Declaration,
8963 N_Formal_Private_Type_Definition,
8964 N_Formal_Incomplete_Type_Definition,
8965 N_Formal_Signed_Integer_Type_Definition,
8966 N_Freeze_Entity,
8967 N_Freeze_Generic_Entity,
8968 N_Generic_Association,
8969 N_Handled_Sequence_Of_Statements,
8970 N_Index_Or_Discriminant_Constraint,
8971 N_Iterated_Component_Association,
8972 N_Itype_Reference,
8973 N_Label,
8974 N_Modular_Type_Definition,
8975 N_Number_Declaration,
8976 N_Ordinary_Fixed_Point_Definition,
8977 N_Others_Choice,
8978 N_Package_Specification,
8979 N_Parameter_Association,
8980 N_Parameter_Specification,
8981 N_Pragma,
8982 N_Protected_Definition,
8983 N_Range_Constraint,
8984 N_Real_Range_Specification,
8985 N_Record_Definition,
8986 N_Signed_Integer_Type_Definition,
8987 N_Single_Protected_Declaration,
8988 N_Subunit,
8989 N_Task_Definition,
8990 N_Triggering_Alternative,
8991 N_Use_Type_Clause,
8992 N_Validate_Unchecked_Conversion,
8993 N_Variable_Reference_Marker,
8994 N_Variant,
8995 N_Variant_Part,
8996 N_With_Clause,
8997 N_Unused_At_End);
8999 for Node_Kind'Size use 8;
9000 -- The data structures in Atree assume this
9002 ----------------------------
9003 -- Node Class Definitions --
9004 ----------------------------
9006 subtype N_Access_To_Subprogram_Definition is Node_Kind range
9007 N_Access_Function_Definition ..
9008 N_Access_Procedure_Definition;
9010 subtype N_Array_Type_Definition is Node_Kind range
9011 N_Constrained_Array_Definition ..
9012 N_Unconstrained_Array_Definition;
9014 subtype N_Binary_Op is Node_Kind range
9015 N_Op_Add ..
9016 N_Op_Shift_Right_Arithmetic;
9018 subtype N_Body_Stub is Node_Kind range
9019 N_Package_Body_Stub ..
9020 N_Task_Body_Stub;
9022 subtype N_Declaration is Node_Kind range
9023 N_Component_Declaration ..
9024 N_Procedure_Specification;
9025 -- Note: this includes all constructs normally thought of as declarations
9026 -- except those which are separately grouped as later declarations.
9028 subtype N_Delay_Statement is Node_Kind range
9029 N_Delay_Relative_Statement ..
9030 N_Delay_Until_Statement;
9032 subtype N_Direct_Name is Node_Kind range
9033 N_Identifier ..
9034 N_Character_Literal;
9036 subtype N_Entity is Node_Kind range
9037 N_Defining_Character_Literal ..
9038 N_Defining_Operator_Symbol;
9040 subtype N_Formal_Subprogram_Declaration is Node_Kind range
9041 N_Formal_Abstract_Subprogram_Declaration ..
9042 N_Formal_Concrete_Subprogram_Declaration;
9044 subtype N_Generic_Declaration is Node_Kind range
9045 N_Generic_Package_Declaration ..
9046 N_Generic_Subprogram_Declaration;
9048 subtype N_Generic_Instantiation is Node_Kind range
9049 N_Function_Instantiation ..
9050 N_Package_Instantiation;
9052 subtype N_Generic_Renaming_Declaration is Node_Kind range
9053 N_Generic_Function_Renaming_Declaration ..
9054 N_Generic_Procedure_Renaming_Declaration;
9056 subtype N_Has_Chars is Node_Kind range
9057 N_Attribute_Definition_Clause ..
9058 N_Op_Plus;
9060 subtype N_Has_Entity is Node_Kind range
9061 N_Expanded_Name ..
9062 N_Attribute_Reference;
9063 -- Nodes that have Entity fields
9064 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
9065 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
9067 subtype N_Has_Etype is Node_Kind range
9068 N_Error ..
9069 N_Subtype_Indication;
9071 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
9072 N_Op_Divide ..
9073 N_Op_Rem;
9075 subtype N_Multiplying_Operator is Node_Kind range
9076 N_Op_Divide ..
9077 N_Op_Rem;
9079 subtype N_Later_Decl_Item is Node_Kind range
9080 N_Task_Type_Declaration ..
9081 N_Generic_Subprogram_Declaration;
9082 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
9083 -- only those items which can appear as later declarative items. This also
9084 -- includes N_Implicit_Label_Declaration which is not specifically in the
9085 -- grammar but may appear as a valid later declarative items. It does NOT
9086 -- include N_Pragma which can also appear among later declarative items.
9087 -- It does however include N_Protected_Body, which is a bit peculiar, but
9088 -- harmless since this cannot appear in Ada 83 mode anyway.
9090 subtype N_Membership_Test is Node_Kind range
9091 N_In ..
9092 N_Not_In;
9094 subtype N_Numeric_Or_String_Literal is Node_Kind range
9095 N_Integer_Literal ..
9096 N_String_Literal;
9098 subtype N_Op is Node_Kind range
9099 N_Op_Add ..
9100 N_Op_Plus;
9102 subtype N_Op_Boolean is Node_Kind range
9103 N_Op_And ..
9104 N_Op_Xor;
9105 -- Binary operators which take operands of a boolean type, and yield
9106 -- a result of a boolean type.
9108 subtype N_Op_Compare is Node_Kind range
9109 N_Op_Eq ..
9110 N_Op_Ne;
9112 subtype N_Op_Shift is Node_Kind range
9113 N_Op_Rotate_Left ..
9114 N_Op_Shift_Right_Arithmetic;
9116 subtype N_Proper_Body is Node_Kind range
9117 N_Package_Body ..
9118 N_Task_Body;
9120 subtype N_Push_xxx_Label is Node_Kind range
9121 N_Push_Constraint_Error_Label ..
9122 N_Push_Storage_Error_Label;
9124 subtype N_Pop_xxx_Label is Node_Kind range
9125 N_Pop_Constraint_Error_Label ..
9126 N_Pop_Storage_Error_Label;
9128 subtype N_Push_Pop_xxx_Label is Node_Kind range
9129 N_Push_Constraint_Error_Label ..
9130 N_Pop_Storage_Error_Label;
9132 subtype N_Raise_xxx_Error is Node_Kind range
9133 N_Raise_Constraint_Error ..
9134 N_Raise_Storage_Error;
9136 subtype N_Renaming_Declaration is Node_Kind range
9137 N_Exception_Renaming_Declaration ..
9138 N_Generic_Procedure_Renaming_Declaration;
9140 subtype N_Representation_Clause is Node_Kind range
9141 N_At_Clause ..
9142 N_Attribute_Definition_Clause;
9144 subtype N_Short_Circuit is Node_Kind range
9145 N_And_Then ..
9146 N_Or_Else;
9148 subtype N_SCIL_Node is Node_Kind range
9149 N_SCIL_Dispatch_Table_Tag_Init ..
9150 N_SCIL_Membership_Test;
9152 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
9153 N_Abort_Statement ..
9154 N_If_Statement;
9155 -- Note that this includes all statement types except for the cases of the
9156 -- N_Procedure_Call_Statement which is considered to be a subexpression
9157 -- (since overloading is possible, so it needs to go through the normal
9158 -- overloading resolution for expressions).
9160 subtype N_Subprogram_Call is Node_Kind range
9161 N_Function_Call ..
9162 N_Procedure_Call_Statement;
9164 subtype N_Subprogram_Instantiation is Node_Kind range
9165 N_Function_Instantiation ..
9166 N_Procedure_Instantiation;
9168 subtype N_Has_Condition is Node_Kind range
9169 N_Exit_Statement ..
9170 N_Terminate_Alternative;
9171 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
9173 subtype N_Subexpr is Node_Kind range
9174 N_Expanded_Name ..
9175 N_Unchecked_Type_Conversion;
9176 -- Nodes with expression fields
9178 subtype N_Subprogram_Specification is Node_Kind range
9179 N_Function_Specification ..
9180 N_Procedure_Specification;
9182 subtype N_Unary_Op is Node_Kind range
9183 N_Op_Abs ..
9184 N_Op_Plus;
9186 subtype N_Unit_Body is Node_Kind range
9187 N_Package_Body ..
9188 N_Subprogram_Body;
9190 ---------------------------
9191 -- Node Access Functions --
9192 ---------------------------
9194 -- The following functions return the contents of the indicated field of
9195 -- the node referenced by the argument, which is a Node_Id. They provide
9196 -- logical access to fields in the node which could be accessed using the
9197 -- Atree.Unchecked_Access package, but the idea is always to use these
9198 -- higher level routines which preserve strong typing. In debug mode,
9199 -- these routines check that they are being applied to an appropriate
9200 -- node, as well as checking that the node is in range.
9202 function Abort_Present
9203 (N : Node_Id) return Boolean; -- Flag15
9205 function Abortable_Part
9206 (N : Node_Id) return Node_Id; -- Node2
9208 function Abstract_Present
9209 (N : Node_Id) return Boolean; -- Flag4
9211 function Accept_Handler_Records
9212 (N : Node_Id) return List_Id; -- List5
9214 function Accept_Statement
9215 (N : Node_Id) return Node_Id; -- Node2
9217 function Access_Definition
9218 (N : Node_Id) return Node_Id; -- Node3
9220 function Access_To_Subprogram_Definition
9221 (N : Node_Id) return Node_Id; -- Node3
9223 function Access_Types_To_Process
9224 (N : Node_Id) return Elist_Id; -- Elist2
9226 function Actions
9227 (N : Node_Id) return List_Id; -- List1
9229 function Activation_Chain_Entity
9230 (N : Node_Id) return Node_Id; -- Node3
9232 function Acts_As_Spec
9233 (N : Node_Id) return Boolean; -- Flag4
9235 function Actual_Designated_Subtype
9236 (N : Node_Id) return Node_Id; -- Node4
9238 function Address_Warning_Posted
9239 (N : Node_Id) return Boolean; -- Flag18
9241 function Aggregate_Bounds
9242 (N : Node_Id) return Node_Id; -- Node3
9244 function Aliased_Present
9245 (N : Node_Id) return Boolean; -- Flag4
9247 function Alloc_For_BIP_Return
9248 (N : Node_Id) return Boolean; -- Flag1
9250 function All_Others
9251 (N : Node_Id) return Boolean; -- Flag11
9253 function All_Present
9254 (N : Node_Id) return Boolean; -- Flag15
9256 function Alternatives
9257 (N : Node_Id) return List_Id; -- List4
9259 function Ancestor_Part
9260 (N : Node_Id) return Node_Id; -- Node3
9262 function Atomic_Sync_Required
9263 (N : Node_Id) return Boolean; -- Flag14
9265 function Array_Aggregate
9266 (N : Node_Id) return Node_Id; -- Node3
9268 function Aspect_Rep_Item
9269 (N : Node_Id) return Node_Id; -- Node2
9271 function Assignment_OK
9272 (N : Node_Id) return Boolean; -- Flag15
9274 function Associated_Node
9275 (N : Node_Id) return Node_Id; -- Node4
9277 function At_End_Proc
9278 (N : Node_Id) return Node_Id; -- Node1
9280 function Attribute_Name
9281 (N : Node_Id) return Name_Id; -- Name2
9283 function Aux_Decls_Node
9284 (N : Node_Id) return Node_Id; -- Node5
9286 function Backwards_OK
9287 (N : Node_Id) return Boolean; -- Flag6
9289 function Bad_Is_Detected
9290 (N : Node_Id) return Boolean; -- Flag15
9292 function By_Ref
9293 (N : Node_Id) return Boolean; -- Flag5
9295 function Body_Required
9296 (N : Node_Id) return Boolean; -- Flag13
9298 function Body_To_Inline
9299 (N : Node_Id) return Node_Id; -- Node3
9301 function Box_Present
9302 (N : Node_Id) return Boolean; -- Flag15
9304 function Char_Literal_Value
9305 (N : Node_Id) return Uint; -- Uint2
9307 function Chars
9308 (N : Node_Id) return Name_Id; -- Name1
9310 function Check_Address_Alignment
9311 (N : Node_Id) return Boolean; -- Flag11
9313 function Choice_Parameter
9314 (N : Node_Id) return Node_Id; -- Node2
9316 function Choices
9317 (N : Node_Id) return List_Id; -- List1
9319 function Class_Present
9320 (N : Node_Id) return Boolean; -- Flag6
9322 function Classifications
9323 (N : Node_Id) return Node_Id; -- Node3
9325 function Cleanup_Actions
9326 (N : Node_Id) return List_Id; -- List5
9328 function Comes_From_Extended_Return_Statement
9329 (N : Node_Id) return Boolean; -- Flag18
9331 function Compile_Time_Known_Aggregate
9332 (N : Node_Id) return Boolean; -- Flag18
9334 function Component_Associations
9335 (N : Node_Id) return List_Id; -- List2
9337 function Component_Clauses
9338 (N : Node_Id) return List_Id; -- List3
9340 function Component_Definition
9341 (N : Node_Id) return Node_Id; -- Node4
9343 function Component_Items
9344 (N : Node_Id) return List_Id; -- List3
9346 function Component_List
9347 (N : Node_Id) return Node_Id; -- Node1
9349 function Component_Name
9350 (N : Node_Id) return Node_Id; -- Node1
9352 function Componentwise_Assignment
9353 (N : Node_Id) return Boolean; -- Flag14
9355 function Condition
9356 (N : Node_Id) return Node_Id; -- Node1
9358 function Condition_Actions
9359 (N : Node_Id) return List_Id; -- List3
9361 function Config_Pragmas
9362 (N : Node_Id) return List_Id; -- List4
9364 function Constant_Present
9365 (N : Node_Id) return Boolean; -- Flag17
9367 function Constraint
9368 (N : Node_Id) return Node_Id; -- Node3
9370 function Constraints
9371 (N : Node_Id) return List_Id; -- List1
9373 function Context_Installed
9374 (N : Node_Id) return Boolean; -- Flag13
9376 function Context_Pending
9377 (N : Node_Id) return Boolean; -- Flag16
9379 function Context_Items
9380 (N : Node_Id) return List_Id; -- List1
9382 function Contract_Test_Cases
9383 (N : Node_Id) return Node_Id; -- Node2
9385 function Controlling_Argument
9386 (N : Node_Id) return Node_Id; -- Node1
9388 function Conversion_OK
9389 (N : Node_Id) return Boolean; -- Flag14
9391 function Convert_To_Return_False
9392 (N : Node_Id) return Boolean; -- Flag13
9394 function Corresponding_Aspect
9395 (N : Node_Id) return Node_Id; -- Node3
9397 function Corresponding_Body
9398 (N : Node_Id) return Node_Id; -- Node5
9400 function Corresponding_Formal_Spec
9401 (N : Node_Id) return Node_Id; -- Node3
9403 function Corresponding_Generic_Association
9404 (N : Node_Id) return Node_Id; -- Node5
9406 function Corresponding_Integer_Value
9407 (N : Node_Id) return Uint; -- Uint4
9409 function Corresponding_Spec
9410 (N : Node_Id) return Entity_Id; -- Node5
9412 function Corresponding_Spec_Of_Stub
9413 (N : Node_Id) return Node_Id; -- Node2
9415 function Corresponding_Stub
9416 (N : Node_Id) return Node_Id; -- Node3
9418 function Dcheck_Function
9419 (N : Node_Id) return Entity_Id; -- Node5
9421 function Declarations
9422 (N : Node_Id) return List_Id; -- List2
9424 function Default_Expression
9425 (N : Node_Id) return Node_Id; -- Node5
9427 function Default_Storage_Pool
9428 (N : Node_Id) return Node_Id; -- Node3
9430 function Default_Name
9431 (N : Node_Id) return Node_Id; -- Node2
9433 function Defining_Identifier
9434 (N : Node_Id) return Entity_Id; -- Node1
9436 function Defining_Unit_Name
9437 (N : Node_Id) return Node_Id; -- Node1
9439 function Delay_Alternative
9440 (N : Node_Id) return Node_Id; -- Node4
9442 function Delay_Statement
9443 (N : Node_Id) return Node_Id; -- Node2
9445 function Delta_Expression
9446 (N : Node_Id) return Node_Id; -- Node3
9448 function Digits_Expression
9449 (N : Node_Id) return Node_Id; -- Node2
9451 function Discr_Check_Funcs_Built
9452 (N : Node_Id) return Boolean; -- Flag11
9454 function Discrete_Choices
9455 (N : Node_Id) return List_Id; -- List4
9457 function Discrete_Range
9458 (N : Node_Id) return Node_Id; -- Node4
9460 function Discrete_Subtype_Definition
9461 (N : Node_Id) return Node_Id; -- Node4
9463 function Discrete_Subtype_Definitions
9464 (N : Node_Id) return List_Id; -- List2
9466 function Discriminant_Specifications
9467 (N : Node_Id) return List_Id; -- List4
9469 function Discriminant_Type
9470 (N : Node_Id) return Node_Id; -- Node5
9472 function Do_Accessibility_Check
9473 (N : Node_Id) return Boolean; -- Flag13
9475 function Do_Discriminant_Check
9476 (N : Node_Id) return Boolean; -- Flag3
9478 function Do_Division_Check
9479 (N : Node_Id) return Boolean; -- Flag13
9481 function Do_Length_Check
9482 (N : Node_Id) return Boolean; -- Flag4
9484 function Do_Overflow_Check
9485 (N : Node_Id) return Boolean; -- Flag17
9487 function Do_Range_Check
9488 (N : Node_Id) return Boolean; -- Flag9
9490 function Do_Storage_Check
9491 (N : Node_Id) return Boolean; -- Flag17
9493 function Do_Tag_Check
9494 (N : Node_Id) return Boolean; -- Flag13
9496 function Elaborate_All_Desirable
9497 (N : Node_Id) return Boolean; -- Flag9
9499 function Elaborate_All_Present
9500 (N : Node_Id) return Boolean; -- Flag14
9502 function Elaborate_Desirable
9503 (N : Node_Id) return Boolean; -- Flag11
9505 function Elaborate_Present
9506 (N : Node_Id) return Boolean; -- Flag4
9508 function Else_Actions
9509 (N : Node_Id) return List_Id; -- List3
9511 function Else_Statements
9512 (N : Node_Id) return List_Id; -- List4
9514 function Elsif_Parts
9515 (N : Node_Id) return List_Id; -- List3
9517 function Enclosing_Variant
9518 (N : Node_Id) return Node_Id; -- Node2
9520 function End_Label
9521 (N : Node_Id) return Node_Id; -- Node4
9523 function End_Span
9524 (N : Node_Id) return Uint; -- Uint5
9526 function Entity
9527 (N : Node_Id) return Node_Id; -- Node4
9529 function Entity_Or_Associated_Node
9530 (N : Node_Id) return Node_Id; -- Node4
9532 function Entry_Body_Formal_Part
9533 (N : Node_Id) return Node_Id; -- Node5
9535 function Entry_Call_Alternative
9536 (N : Node_Id) return Node_Id; -- Node1
9538 function Entry_Call_Statement
9539 (N : Node_Id) return Node_Id; -- Node1
9541 function Entry_Direct_Name
9542 (N : Node_Id) return Node_Id; -- Node1
9544 function Entry_Index
9545 (N : Node_Id) return Node_Id; -- Node5
9547 function Entry_Index_Specification
9548 (N : Node_Id) return Node_Id; -- Node4
9550 function Etype
9551 (N : Node_Id) return Node_Id; -- Node5
9553 function Exception_Choices
9554 (N : Node_Id) return List_Id; -- List4
9556 function Exception_Handlers
9557 (N : Node_Id) return List_Id; -- List5
9559 function Exception_Junk
9560 (N : Node_Id) return Boolean; -- Flag8
9562 function Exception_Label
9563 (N : Node_Id) return Node_Id; -- Node5
9565 function Explicit_Actual_Parameter
9566 (N : Node_Id) return Node_Id; -- Node3
9568 function Expansion_Delayed
9569 (N : Node_Id) return Boolean; -- Flag11
9571 function Explicit_Generic_Actual_Parameter
9572 (N : Node_Id) return Node_Id; -- Node1
9574 function Expression
9575 (N : Node_Id) return Node_Id; -- Node3
9577 function Expression_Copy
9578 (N : Node_Id) return Node_Id; -- Node2
9580 function Expressions
9581 (N : Node_Id) return List_Id; -- List1
9583 function First_Bit
9584 (N : Node_Id) return Node_Id; -- Node3
9586 function First_Inlined_Subprogram
9587 (N : Node_Id) return Entity_Id; -- Node3
9589 function First_Name
9590 (N : Node_Id) return Boolean; -- Flag5
9592 function First_Named_Actual
9593 (N : Node_Id) return Node_Id; -- Node4
9595 function First_Real_Statement
9596 (N : Node_Id) return Node_Id; -- Node2
9598 function First_Subtype_Link
9599 (N : Node_Id) return Entity_Id; -- Node5
9601 function Float_Truncate
9602 (N : Node_Id) return Boolean; -- Flag11
9604 function Formal_Type_Definition
9605 (N : Node_Id) return Node_Id; -- Node3
9607 function Forwards_OK
9608 (N : Node_Id) return Boolean; -- Flag5
9610 function From_Aspect_Specification
9611 (N : Node_Id) return Boolean; -- Flag13
9613 function From_At_End
9614 (N : Node_Id) return Boolean; -- Flag4
9616 function From_At_Mod
9617 (N : Node_Id) return Boolean; -- Flag4
9619 function From_Conditional_Expression
9620 (N : Node_Id) return Boolean; -- Flag1
9622 function From_Default
9623 (N : Node_Id) return Boolean; -- Flag6
9625 function Generalized_Indexing
9626 (N : Node_Id) return Node_Id; -- Node4
9628 function Generic_Associations
9629 (N : Node_Id) return List_Id; -- List3
9631 function Generic_Formal_Declarations
9632 (N : Node_Id) return List_Id; -- List2
9634 function Generic_Parent
9635 (N : Node_Id) return Node_Id; -- Node5
9637 function Generic_Parent_Type
9638 (N : Node_Id) return Node_Id; -- Node4
9640 function Handled_Statement_Sequence
9641 (N : Node_Id) return Node_Id; -- Node4
9643 function Handler_List_Entry
9644 (N : Node_Id) return Node_Id; -- Node2
9646 function Has_Created_Identifier
9647 (N : Node_Id) return Boolean; -- Flag15
9649 function Has_Dereference_Action
9650 (N : Node_Id) return Boolean; -- Flag13
9652 function Has_Dynamic_Length_Check
9653 (N : Node_Id) return Boolean; -- Flag10
9655 function Has_Dynamic_Range_Check
9656 (N : Node_Id) return Boolean; -- Flag12
9658 function Has_Init_Expression
9659 (N : Node_Id) return Boolean; -- Flag14
9661 function Has_Local_Raise
9662 (N : Node_Id) return Boolean; -- Flag8
9664 function Has_No_Elaboration_Code
9665 (N : Node_Id) return Boolean; -- Flag17
9667 function Has_Pragma_Suppress_All
9668 (N : Node_Id) return Boolean; -- Flag14
9670 function Has_Private_View
9671 (N : Node_Id) return Boolean; -- Flag11
9673 function Has_Relative_Deadline_Pragma
9674 (N : Node_Id) return Boolean; -- Flag9
9676 function Has_Self_Reference
9677 (N : Node_Id) return Boolean; -- Flag13
9679 function Has_SP_Choice
9680 (N : Node_Id) return Boolean; -- Flag15
9682 function Has_Storage_Size_Pragma
9683 (N : Node_Id) return Boolean; -- Flag5
9685 function Has_Target_Names
9686 (N : Node_Id) return Boolean; -- Flag8
9688 function Has_Wide_Character
9689 (N : Node_Id) return Boolean; -- Flag11
9691 function Has_Wide_Wide_Character
9692 (N : Node_Id) return Boolean; -- Flag13
9694 function Header_Size_Added
9695 (N : Node_Id) return Boolean; -- Flag11
9697 function Hidden_By_Use_Clause
9698 (N : Node_Id) return Elist_Id; -- Elist5
9700 function High_Bound
9701 (N : Node_Id) return Node_Id; -- Node2
9703 function Identifier
9704 (N : Node_Id) return Node_Id; -- Node1
9706 function Interface_List
9707 (N : Node_Id) return List_Id; -- List2
9709 function Interface_Present
9710 (N : Node_Id) return Boolean; -- Flag16
9712 function Implicit_With
9713 (N : Node_Id) return Boolean; -- Flag16
9715 function Import_Interface_Present
9716 (N : Node_Id) return Boolean; -- Flag16
9718 function In_Present
9719 (N : Node_Id) return Boolean; -- Flag15
9721 function Includes_Infinities
9722 (N : Node_Id) return Boolean; -- Flag11
9724 function Incomplete_View
9725 (N : Node_Id) return Node_Id; -- Node2
9727 function Inherited_Discriminant
9728 (N : Node_Id) return Boolean; -- Flag13
9730 function Instance_Spec
9731 (N : Node_Id) return Node_Id; -- Node5
9733 function Intval
9734 (N : Node_Id) return Uint; -- Uint3
9736 function Is_Abort_Block
9737 (N : Node_Id) return Boolean; -- Flag4
9739 function Is_Accessibility_Actual
9740 (N : Node_Id) return Boolean; -- Flag13
9742 function Is_Analyzed_Pragma
9743 (N : Node_Id) return Boolean; -- Flag5
9745 function Is_Asynchronous_Call_Block
9746 (N : Node_Id) return Boolean; -- Flag7
9748 function Is_Boolean_Aspect
9749 (N : Node_Id) return Boolean; -- Flag16
9751 function Is_Checked
9752 (N : Node_Id) return Boolean; -- Flag11
9754 function Is_Checked_Ghost_Pragma
9755 (N : Node_Id) return Boolean; -- Flag3
9757 function Is_Component_Left_Opnd
9758 (N : Node_Id) return Boolean; -- Flag13
9760 function Is_Component_Right_Opnd
9761 (N : Node_Id) return Boolean; -- Flag14
9763 function Is_Controlling_Actual
9764 (N : Node_Id) return Boolean; -- Flag16
9766 function Is_Declaration_Level_Node
9767 (N : Node_Id) return Boolean; -- Flag5
9769 function Is_Delayed_Aspect
9770 (N : Node_Id) return Boolean; -- Flag14
9772 function Is_Disabled
9773 (N : Node_Id) return Boolean; -- Flag15
9775 function Is_Dispatching_Call
9776 (N : Node_Id) return Boolean; -- Flag6
9778 function Is_Dynamic_Coextension
9779 (N : Node_Id) return Boolean; -- Flag18
9781 function Is_Effective_Use_Clause
9782 (N : Node_Id) return Boolean; -- Flag1
9784 function Is_Elaboration_Checks_OK_Node
9785 (N : Node_Id) return Boolean; -- Flag1
9787 function Is_Elaboration_Code
9788 (N : Node_Id) return Boolean; -- Flag9
9790 function Is_Elaboration_Warnings_OK_Node
9791 (N : Node_Id) return Boolean; -- Flag3
9793 function Is_Elsif
9794 (N : Node_Id) return Boolean; -- Flag13
9796 function Is_Entry_Barrier_Function
9797 (N : Node_Id) return Boolean; -- Flag8
9799 function Is_Expanded_Build_In_Place_Call
9800 (N : Node_Id) return Boolean; -- Flag11
9802 function Is_Expanded_Contract
9803 (N : Node_Id) return Boolean; -- Flag1
9805 function Is_Finalization_Wrapper
9806 (N : Node_Id) return Boolean; -- Flag9
9808 function Is_Folded_In_Parser
9809 (N : Node_Id) return Boolean; -- Flag4
9811 function Is_Generic_Contract_Pragma
9812 (N : Node_Id) return Boolean; -- Flag2
9814 function Is_Ignored
9815 (N : Node_Id) return Boolean; -- Flag9
9817 function Is_Ignored_Ghost_Pragma
9818 (N : Node_Id) return Boolean; -- Flag8
9820 function Is_In_Discriminant_Check
9821 (N : Node_Id) return Boolean; -- Flag11
9823 function Is_Inherited_Pragma
9824 (N : Node_Id) return Boolean; -- Flag4
9826 function Is_Initialization_Block
9827 (N : Node_Id) return Boolean; -- Flag1
9829 function Is_Known_Guaranteed_ABE
9830 (N : Node_Id) return Boolean; -- Flag18
9832 function Is_Machine_Number
9833 (N : Node_Id) return Boolean; -- Flag11
9835 function Is_Null_Loop
9836 (N : Node_Id) return Boolean; -- Flag16
9838 function Is_Overloaded
9839 (N : Node_Id) return Boolean; -- Flag5
9841 function Is_Power_Of_2_For_Shift
9842 (N : Node_Id) return Boolean; -- Flag13
9844 function Is_Prefixed_Call
9845 (N : Node_Id) return Boolean; -- Flag17
9847 function Is_Protected_Subprogram_Body
9848 (N : Node_Id) return Boolean; -- Flag7
9850 function Is_Qualified_Universal_Literal
9851 (N : Node_Id) return Boolean; -- Flag4
9853 function Is_Read
9854 (N : Node_Id) return Boolean; -- Flag1
9856 function Is_Source_Call
9857 (N : Node_Id) return Boolean; -- Flag4
9859 function Is_SPARK_Mode_On_Node
9860 (N : Node_Id) return Boolean; -- Flag2
9862 function Is_Static_Coextension
9863 (N : Node_Id) return Boolean; -- Flag14
9865 function Is_Static_Expression
9866 (N : Node_Id) return Boolean; -- Flag6
9868 function Is_Subprogram_Descriptor
9869 (N : Node_Id) return Boolean; -- Flag16
9871 function Is_Task_Allocation_Block
9872 (N : Node_Id) return Boolean; -- Flag6
9874 function Is_Task_Body_Procedure
9875 (N : Node_Id) return Boolean; -- Flag1
9877 function Is_Task_Master
9878 (N : Node_Id) return Boolean; -- Flag5
9880 function Is_Write
9881 (N : Node_Id) return Boolean; -- Flag2
9883 function Iteration_Scheme
9884 (N : Node_Id) return Node_Id; -- Node2
9886 function Iterator_Specification
9887 (N : Node_Id) return Node_Id; -- Node2
9889 function Itype
9890 (N : Node_Id) return Entity_Id; -- Node1
9892 function Kill_Range_Check
9893 (N : Node_Id) return Boolean; -- Flag11
9895 function Label_Construct
9896 (N : Node_Id) return Node_Id; -- Node2
9898 function Left_Opnd
9899 (N : Node_Id) return Node_Id; -- Node2
9901 function Last_Bit
9902 (N : Node_Id) return Node_Id; -- Node4
9904 function Last_Name
9905 (N : Node_Id) return Boolean; -- Flag6
9907 function Library_Unit
9908 (N : Node_Id) return Node_Id; -- Node4
9910 function Limited_View_Installed
9911 (N : Node_Id) return Boolean; -- Flag18
9913 function Limited_Present
9914 (N : Node_Id) return Boolean; -- Flag17
9916 function Literals
9917 (N : Node_Id) return List_Id; -- List1
9919 function Local_Raise_Not_OK
9920 (N : Node_Id) return Boolean; -- Flag7
9922 function Local_Raise_Statements
9923 (N : Node_Id) return Elist_Id; -- Elist1
9925 function Loop_Actions
9926 (N : Node_Id) return List_Id; -- List2
9928 function Loop_Parameter_Specification
9929 (N : Node_Id) return Node_Id; -- Node4
9931 function Low_Bound
9932 (N : Node_Id) return Node_Id; -- Node1
9934 function Mod_Clause
9935 (N : Node_Id) return Node_Id; -- Node2
9937 function More_Ids
9938 (N : Node_Id) return Boolean; -- Flag5
9940 function Must_Be_Byte_Aligned
9941 (N : Node_Id) return Boolean; -- Flag14
9943 function Must_Not_Freeze
9944 (N : Node_Id) return Boolean; -- Flag8
9946 function Must_Not_Override
9947 (N : Node_Id) return Boolean; -- Flag15
9949 function Must_Override
9950 (N : Node_Id) return Boolean; -- Flag14
9952 function Name
9953 (N : Node_Id) return Node_Id; -- Node2
9955 function Names
9956 (N : Node_Id) return List_Id; -- List2
9958 function Next_Entity
9959 (N : Node_Id) return Node_Id; -- Node2
9961 function Next_Exit_Statement
9962 (N : Node_Id) return Node_Id; -- Node3
9964 function Next_Implicit_With
9965 (N : Node_Id) return Node_Id; -- Node3
9967 function Next_Named_Actual
9968 (N : Node_Id) return Node_Id; -- Node4
9970 function Next_Pragma
9971 (N : Node_Id) return Node_Id; -- Node1
9973 function Next_Rep_Item
9974 (N : Node_Id) return Node_Id; -- Node5
9976 function Next_Use_Clause
9977 (N : Node_Id) return Node_Id; -- Node3
9979 function No_Ctrl_Actions
9980 (N : Node_Id) return Boolean; -- Flag7
9982 function No_Elaboration_Check
9983 (N : Node_Id) return Boolean; -- Flag4
9985 function No_Entities_Ref_In_Spec
9986 (N : Node_Id) return Boolean; -- Flag8
9988 function No_Initialization
9989 (N : Node_Id) return Boolean; -- Flag13
9991 function No_Minimize_Eliminate
9992 (N : Node_Id) return Boolean; -- Flag17
9994 function No_Side_Effect_Removal
9995 (N : Node_Id) return Boolean; -- Flag17
9997 function No_Truncation
9998 (N : Node_Id) return Boolean; -- Flag17
10000 function Null_Excluding_Subtype
10001 (N : Node_Id) return Boolean; -- Flag16
10003 function Null_Exclusion_Present
10004 (N : Node_Id) return Boolean; -- Flag11
10006 function Null_Exclusion_In_Return_Present
10007 (N : Node_Id) return Boolean; -- Flag14
10009 function Null_Present
10010 (N : Node_Id) return Boolean; -- Flag13
10012 function Null_Record_Present
10013 (N : Node_Id) return Boolean; -- Flag17
10015 function Null_Statement
10016 (N : Node_Id) return Node_Id; -- Node2
10018 function Object_Definition
10019 (N : Node_Id) return Node_Id; -- Node4
10021 function Of_Present
10022 (N : Node_Id) return Boolean; -- Flag16
10024 function Original_Discriminant
10025 (N : Node_Id) return Node_Id; -- Node2
10027 function Original_Entity
10028 (N : Node_Id) return Entity_Id; -- Node2
10030 function Others_Discrete_Choices
10031 (N : Node_Id) return List_Id; -- List1
10033 function Out_Present
10034 (N : Node_Id) return Boolean; -- Flag17
10036 function Parameter_Associations
10037 (N : Node_Id) return List_Id; -- List3
10039 function Parameter_Specifications
10040 (N : Node_Id) return List_Id; -- List3
10042 function Parameter_Type
10043 (N : Node_Id) return Node_Id; -- Node2
10045 function Parent_Spec
10046 (N : Node_Id) return Node_Id; -- Node4
10048 function Parent_With
10049 (N : Node_Id) return Boolean; -- Flag1
10051 function Position
10052 (N : Node_Id) return Node_Id; -- Node2
10054 function Pragma_Argument_Associations
10055 (N : Node_Id) return List_Id; -- List2
10057 function Pragma_Identifier
10058 (N : Node_Id) return Node_Id; -- Node4
10060 function Pragmas_After
10061 (N : Node_Id) return List_Id; -- List5
10063 function Pragmas_Before
10064 (N : Node_Id) return List_Id; -- List4
10066 function Pre_Post_Conditions
10067 (N : Node_Id) return Node_Id; -- Node1
10069 function Prefix
10070 (N : Node_Id) return Node_Id; -- Node3
10072 function Premature_Use
10073 (N : Node_Id) return Node_Id; -- Node5
10075 function Present_Expr
10076 (N : Node_Id) return Uint; -- Uint3
10078 function Prev_Ids
10079 (N : Node_Id) return Boolean; -- Flag6
10081 function Prev_Use_Clause
10082 (N : Node_Id) return Node_Id; -- Node1
10084 function Print_In_Hex
10085 (N : Node_Id) return Boolean; -- Flag13
10087 function Private_Declarations
10088 (N : Node_Id) return List_Id; -- List3
10090 function Private_Present
10091 (N : Node_Id) return Boolean; -- Flag15
10093 function Procedure_To_Call
10094 (N : Node_Id) return Node_Id; -- Node2
10096 function Proper_Body
10097 (N : Node_Id) return Node_Id; -- Node1
10099 function Protected_Definition
10100 (N : Node_Id) return Node_Id; -- Node3
10102 function Protected_Present
10103 (N : Node_Id) return Boolean; -- Flag6
10105 function Raises_Constraint_Error
10106 (N : Node_Id) return Boolean; -- Flag7
10108 function Range_Constraint
10109 (N : Node_Id) return Node_Id; -- Node4
10111 function Range_Expression
10112 (N : Node_Id) return Node_Id; -- Node4
10114 function Real_Range_Specification
10115 (N : Node_Id) return Node_Id; -- Node4
10117 function Realval
10118 (N : Node_Id) return Ureal; -- Ureal3
10120 function Reason
10121 (N : Node_Id) return Uint; -- Uint3
10123 function Record_Extension_Part
10124 (N : Node_Id) return Node_Id; -- Node3
10126 function Redundant_Use
10127 (N : Node_Id) return Boolean; -- Flag13
10129 function Renaming_Exception
10130 (N : Node_Id) return Node_Id; -- Node2
10132 function Result_Definition
10133 (N : Node_Id) return Node_Id; -- Node4
10135 function Return_Object_Declarations
10136 (N : Node_Id) return List_Id; -- List3
10138 function Return_Statement_Entity
10139 (N : Node_Id) return Node_Id; -- Node5
10141 function Reverse_Present
10142 (N : Node_Id) return Boolean; -- Flag15
10144 function Right_Opnd
10145 (N : Node_Id) return Node_Id; -- Node3
10147 function Rounded_Result
10148 (N : Node_Id) return Boolean; -- Flag18
10150 function SCIL_Controlling_Tag
10151 (N : Node_Id) return Node_Id; -- Node5
10153 function SCIL_Entity
10154 (N : Node_Id) return Node_Id; -- Node4
10156 function SCIL_Tag_Value
10157 (N : Node_Id) return Node_Id; -- Node5
10159 function SCIL_Target_Prim
10160 (N : Node_Id) return Node_Id; -- Node2
10162 function Scope
10163 (N : Node_Id) return Node_Id; -- Node3
10165 function Select_Alternatives
10166 (N : Node_Id) return List_Id; -- List1
10168 function Selector_Name
10169 (N : Node_Id) return Node_Id; -- Node2
10171 function Selector_Names
10172 (N : Node_Id) return List_Id; -- List1
10174 function Shift_Count_OK
10175 (N : Node_Id) return Boolean; -- Flag4
10177 function Source_Type
10178 (N : Node_Id) return Entity_Id; -- Node1
10180 function Specification
10181 (N : Node_Id) return Node_Id; -- Node1
10183 function Split_PPC
10184 (N : Node_Id) return Boolean; -- Flag17
10186 function Statements
10187 (N : Node_Id) return List_Id; -- List3
10189 function Storage_Pool
10190 (N : Node_Id) return Node_Id; -- Node1
10192 function Subpool_Handle_Name
10193 (N : Node_Id) return Node_Id; -- Node4
10195 function Strval
10196 (N : Node_Id) return String_Id; -- Str3
10198 function Subtype_Indication
10199 (N : Node_Id) return Node_Id; -- Node5
10201 function Subtype_Mark
10202 (N : Node_Id) return Node_Id; -- Node4
10204 function Subtype_Marks
10205 (N : Node_Id) return List_Id; -- List2
10207 function Suppress_Assignment_Checks
10208 (N : Node_Id) return Boolean; -- Flag18
10210 function Suppress_Loop_Warnings
10211 (N : Node_Id) return Boolean; -- Flag17
10213 function Synchronized_Present
10214 (N : Node_Id) return Boolean; -- Flag7
10216 function Tagged_Present
10217 (N : Node_Id) return Boolean; -- Flag15
10219 function Target
10220 (N : Node_Id) return Entity_Id; -- Node1
10222 function Target_Type
10223 (N : Node_Id) return Entity_Id; -- Node2
10225 function Task_Definition
10226 (N : Node_Id) return Node_Id; -- Node3
10228 function Task_Present
10229 (N : Node_Id) return Boolean; -- Flag5
10231 function Then_Actions
10232 (N : Node_Id) return List_Id; -- List2
10234 function Then_Statements
10235 (N : Node_Id) return List_Id; -- List2
10237 function Treat_Fixed_As_Integer
10238 (N : Node_Id) return Boolean; -- Flag14
10240 function Triggering_Alternative
10241 (N : Node_Id) return Node_Id; -- Node1
10243 function Triggering_Statement
10244 (N : Node_Id) return Node_Id; -- Node1
10246 function TSS_Elist
10247 (N : Node_Id) return Elist_Id; -- Elist3
10249 function Type_Definition
10250 (N : Node_Id) return Node_Id; -- Node3
10252 function Uneval_Old_Accept
10253 (N : Node_Id) return Boolean; -- Flag7
10255 function Uneval_Old_Warn
10256 (N : Node_Id) return Boolean; -- Flag18
10258 function Unit
10259 (N : Node_Id) return Node_Id; -- Node2
10261 function Unknown_Discriminants_Present
10262 (N : Node_Id) return Boolean; -- Flag13
10264 function Unreferenced_In_Spec
10265 (N : Node_Id) return Boolean; -- Flag7
10267 function Variant_Part
10268 (N : Node_Id) return Node_Id; -- Node4
10270 function Variants
10271 (N : Node_Id) return List_Id; -- List1
10273 function Visible_Declarations
10274 (N : Node_Id) return List_Id; -- List2
10276 function Uninitialized_Variable
10277 (N : Node_Id) return Node_Id; -- Node3
10279 function Used_Operations
10280 (N : Node_Id) return Elist_Id; -- Elist2
10282 function Was_Attribute_Reference
10283 (N : Node_Id) return Boolean; -- Flag2
10285 function Was_Expression_Function
10286 (N : Node_Id) return Boolean; -- Flag18
10288 function Was_Originally_Stub
10289 (N : Node_Id) return Boolean; -- Flag13
10291 function Withed_Body
10292 (N : Node_Id) return Node_Id; -- Node1
10294 -- End functions (note used by xsinfo utility program to end processing)
10296 ----------------------------
10297 -- Node Update Procedures --
10298 ----------------------------
10300 -- These are the corresponding node update routines, which again provide
10301 -- a high level logical access with type checking. In addition to setting
10302 -- the indicated field of the node N to the given Val, in the case of
10303 -- tree pointers (List1-4), the parent pointer of the Val node is set to
10304 -- point back to node N. This automates the setting of the parent pointer.
10306 procedure Set_Abort_Present
10307 (N : Node_Id; Val : Boolean := True); -- Flag15
10309 procedure Set_Abortable_Part
10310 (N : Node_Id; Val : Node_Id); -- Node2
10312 procedure Set_Abstract_Present
10313 (N : Node_Id; Val : Boolean := True); -- Flag4
10315 procedure Set_Accept_Handler_Records
10316 (N : Node_Id; Val : List_Id); -- List5
10318 procedure Set_Accept_Statement
10319 (N : Node_Id; Val : Node_Id); -- Node2
10321 procedure Set_Access_Definition
10322 (N : Node_Id; Val : Node_Id); -- Node3
10324 procedure Set_Access_To_Subprogram_Definition
10325 (N : Node_Id; Val : Node_Id); -- Node3
10327 procedure Set_Access_Types_To_Process
10328 (N : Node_Id; Val : Elist_Id); -- Elist2
10330 procedure Set_Actions
10331 (N : Node_Id; Val : List_Id); -- List1
10333 procedure Set_Activation_Chain_Entity
10334 (N : Node_Id; Val : Node_Id); -- Node3
10336 procedure Set_Acts_As_Spec
10337 (N : Node_Id; Val : Boolean := True); -- Flag4
10339 procedure Set_Actual_Designated_Subtype
10340 (N : Node_Id; Val : Node_Id); -- Node4
10342 procedure Set_Address_Warning_Posted
10343 (N : Node_Id; Val : Boolean := True); -- Flag18
10345 procedure Set_Aggregate_Bounds
10346 (N : Node_Id; Val : Node_Id); -- Node3
10348 procedure Set_Aliased_Present
10349 (N : Node_Id; Val : Boolean := True); -- Flag4
10351 procedure Set_Alloc_For_BIP_Return
10352 (N : Node_Id; Val : Boolean := True); -- Flag1
10354 procedure Set_All_Others
10355 (N : Node_Id; Val : Boolean := True); -- Flag11
10357 procedure Set_All_Present
10358 (N : Node_Id; Val : Boolean := True); -- Flag15
10360 procedure Set_Alternatives
10361 (N : Node_Id; Val : List_Id); -- List4
10363 procedure Set_Ancestor_Part
10364 (N : Node_Id; Val : Node_Id); -- Node3
10366 procedure Set_Atomic_Sync_Required
10367 (N : Node_Id; Val : Boolean := True); -- Flag14
10369 procedure Set_Array_Aggregate
10370 (N : Node_Id; Val : Node_Id); -- Node3
10372 procedure Set_Aspect_Rep_Item
10373 (N : Node_Id; Val : Node_Id); -- Node2
10375 procedure Set_Assignment_OK
10376 (N : Node_Id; Val : Boolean := True); -- Flag15
10378 procedure Set_Associated_Node
10379 (N : Node_Id; Val : Node_Id); -- Node4
10381 procedure Set_Attribute_Name
10382 (N : Node_Id; Val : Name_Id); -- Name2
10384 procedure Set_At_End_Proc
10385 (N : Node_Id; Val : Node_Id); -- Node1
10387 procedure Set_Aux_Decls_Node
10388 (N : Node_Id; Val : Node_Id); -- Node5
10390 procedure Set_Backwards_OK
10391 (N : Node_Id; Val : Boolean := True); -- Flag6
10393 procedure Set_Bad_Is_Detected
10394 (N : Node_Id; Val : Boolean := True); -- Flag15
10396 procedure Set_Body_Required
10397 (N : Node_Id; Val : Boolean := True); -- Flag13
10399 procedure Set_Body_To_Inline
10400 (N : Node_Id; Val : Node_Id); -- Node3
10402 procedure Set_Box_Present
10403 (N : Node_Id; Val : Boolean := True); -- Flag15
10405 procedure Set_By_Ref
10406 (N : Node_Id; Val : Boolean := True); -- Flag5
10408 procedure Set_Char_Literal_Value
10409 (N : Node_Id; Val : Uint); -- Uint2
10411 procedure Set_Chars
10412 (N : Node_Id; Val : Name_Id); -- Name1
10414 procedure Set_Check_Address_Alignment
10415 (N : Node_Id; Val : Boolean := True); -- Flag11
10417 procedure Set_Choice_Parameter
10418 (N : Node_Id; Val : Node_Id); -- Node2
10420 procedure Set_Choices
10421 (N : Node_Id; Val : List_Id); -- List1
10423 procedure Set_Class_Present
10424 (N : Node_Id; Val : Boolean := True); -- Flag6
10426 procedure Set_Classifications
10427 (N : Node_Id; Val : Node_Id); -- Node3
10429 procedure Set_Cleanup_Actions
10430 (N : Node_Id; Val : List_Id); -- List5
10432 procedure Set_Comes_From_Extended_Return_Statement
10433 (N : Node_Id; Val : Boolean := True); -- Flag18
10435 procedure Set_Compile_Time_Known_Aggregate
10436 (N : Node_Id; Val : Boolean := True); -- Flag18
10438 procedure Set_Component_Associations
10439 (N : Node_Id; Val : List_Id); -- List2
10441 procedure Set_Component_Clauses
10442 (N : Node_Id; Val : List_Id); -- List3
10444 procedure Set_Component_Definition
10445 (N : Node_Id; Val : Node_Id); -- Node4
10447 procedure Set_Component_Items
10448 (N : Node_Id; Val : List_Id); -- List3
10450 procedure Set_Component_List
10451 (N : Node_Id; Val : Node_Id); -- Node1
10453 procedure Set_Component_Name
10454 (N : Node_Id; Val : Node_Id); -- Node1
10456 procedure Set_Componentwise_Assignment
10457 (N : Node_Id; Val : Boolean := True); -- Flag14
10459 procedure Set_Condition
10460 (N : Node_Id; Val : Node_Id); -- Node1
10462 procedure Set_Condition_Actions
10463 (N : Node_Id; Val : List_Id); -- List3
10465 procedure Set_Config_Pragmas
10466 (N : Node_Id; Val : List_Id); -- List4
10468 procedure Set_Constant_Present
10469 (N : Node_Id; Val : Boolean := True); -- Flag17
10471 procedure Set_Constraint
10472 (N : Node_Id; Val : Node_Id); -- Node3
10474 procedure Set_Constraints
10475 (N : Node_Id; Val : List_Id); -- List1
10477 procedure Set_Context_Installed
10478 (N : Node_Id; Val : Boolean := True); -- Flag13
10480 procedure Set_Context_Items
10481 (N : Node_Id; Val : List_Id); -- List1
10483 procedure Set_Context_Pending
10484 (N : Node_Id; Val : Boolean := True); -- Flag16
10486 procedure Set_Contract_Test_Cases
10487 (N : Node_Id; Val : Node_Id); -- Node2
10489 procedure Set_Controlling_Argument
10490 (N : Node_Id; Val : Node_Id); -- Node1
10492 procedure Set_Conversion_OK
10493 (N : Node_Id; Val : Boolean := True); -- Flag14
10495 procedure Set_Convert_To_Return_False
10496 (N : Node_Id; Val : Boolean := True); -- Flag13
10498 procedure Set_Corresponding_Aspect
10499 (N : Node_Id; Val : Node_Id); -- Node3
10501 procedure Set_Corresponding_Body
10502 (N : Node_Id; Val : Node_Id); -- Node5
10504 procedure Set_Corresponding_Formal_Spec
10505 (N : Node_Id; Val : Node_Id); -- Node3
10507 procedure Set_Corresponding_Generic_Association
10508 (N : Node_Id; Val : Node_Id); -- Node5
10510 procedure Set_Corresponding_Integer_Value
10511 (N : Node_Id; Val : Uint); -- Uint4
10513 procedure Set_Corresponding_Spec
10514 (N : Node_Id; Val : Entity_Id); -- Node5
10516 procedure Set_Corresponding_Spec_Of_Stub
10517 (N : Node_Id; Val : Node_Id); -- Node2
10519 procedure Set_Corresponding_Stub
10520 (N : Node_Id; Val : Node_Id); -- Node3
10522 procedure Set_Dcheck_Function
10523 (N : Node_Id; Val : Entity_Id); -- Node5
10525 procedure Set_Declarations
10526 (N : Node_Id; Val : List_Id); -- List2
10528 procedure Set_Default_Expression
10529 (N : Node_Id; Val : Node_Id); -- Node5
10531 procedure Set_Default_Storage_Pool
10532 (N : Node_Id; Val : Node_Id); -- Node3
10534 procedure Set_Default_Name
10535 (N : Node_Id; Val : Node_Id); -- Node2
10537 procedure Set_Defining_Identifier
10538 (N : Node_Id; Val : Entity_Id); -- Node1
10540 procedure Set_Defining_Unit_Name
10541 (N : Node_Id; Val : Node_Id); -- Node1
10543 procedure Set_Delay_Alternative
10544 (N : Node_Id; Val : Node_Id); -- Node4
10546 procedure Set_Delay_Statement
10547 (N : Node_Id; Val : Node_Id); -- Node2
10549 procedure Set_Delta_Expression
10550 (N : Node_Id; Val : Node_Id); -- Node3
10552 procedure Set_Digits_Expression
10553 (N : Node_Id; Val : Node_Id); -- Node2
10555 procedure Set_Discr_Check_Funcs_Built
10556 (N : Node_Id; Val : Boolean := True); -- Flag11
10558 procedure Set_Discrete_Choices
10559 (N : Node_Id; Val : List_Id); -- List4
10561 procedure Set_Discrete_Range
10562 (N : Node_Id; Val : Node_Id); -- Node4
10564 procedure Set_Discrete_Subtype_Definition
10565 (N : Node_Id; Val : Node_Id); -- Node4
10567 procedure Set_Discrete_Subtype_Definitions
10568 (N : Node_Id; Val : List_Id); -- List2
10570 procedure Set_Discriminant_Specifications
10571 (N : Node_Id; Val : List_Id); -- List4
10573 procedure Set_Discriminant_Type
10574 (N : Node_Id; Val : Node_Id); -- Node5
10576 procedure Set_Do_Accessibility_Check
10577 (N : Node_Id; Val : Boolean := True); -- Flag13
10579 procedure Set_Do_Discriminant_Check
10580 (N : Node_Id; Val : Boolean := True); -- Flag3
10582 procedure Set_Do_Division_Check
10583 (N : Node_Id; Val : Boolean := True); -- Flag13
10585 procedure Set_Do_Length_Check
10586 (N : Node_Id; Val : Boolean := True); -- Flag4
10588 procedure Set_Do_Overflow_Check
10589 (N : Node_Id; Val : Boolean := True); -- Flag17
10591 procedure Set_Do_Range_Check
10592 (N : Node_Id; Val : Boolean := True); -- Flag9
10594 procedure Set_Do_Storage_Check
10595 (N : Node_Id; Val : Boolean := True); -- Flag17
10597 procedure Set_Do_Tag_Check
10598 (N : Node_Id; Val : Boolean := True); -- Flag13
10600 procedure Set_Elaborate_All_Desirable
10601 (N : Node_Id; Val : Boolean := True); -- Flag9
10603 procedure Set_Elaborate_All_Present
10604 (N : Node_Id; Val : Boolean := True); -- Flag14
10606 procedure Set_Elaborate_Desirable
10607 (N : Node_Id; Val : Boolean := True); -- Flag11
10609 procedure Set_Elaborate_Present
10610 (N : Node_Id; Val : Boolean := True); -- Flag4
10612 procedure Set_Else_Actions
10613 (N : Node_Id; Val : List_Id); -- List3
10615 procedure Set_Else_Statements
10616 (N : Node_Id; Val : List_Id); -- List4
10618 procedure Set_Elsif_Parts
10619 (N : Node_Id; Val : List_Id); -- List3
10621 procedure Set_Enclosing_Variant
10622 (N : Node_Id; Val : Node_Id); -- Node2
10624 procedure Set_End_Label
10625 (N : Node_Id; Val : Node_Id); -- Node4
10627 procedure Set_End_Span
10628 (N : Node_Id; Val : Uint); -- Uint5
10630 procedure Set_Entity
10631 (N : Node_Id; Val : Node_Id); -- Node4
10633 procedure Set_Entry_Body_Formal_Part
10634 (N : Node_Id; Val : Node_Id); -- Node5
10636 procedure Set_Entry_Call_Alternative
10637 (N : Node_Id; Val : Node_Id); -- Node1
10639 procedure Set_Entry_Call_Statement
10640 (N : Node_Id; Val : Node_Id); -- Node1
10642 procedure Set_Entry_Direct_Name
10643 (N : Node_Id; Val : Node_Id); -- Node1
10645 procedure Set_Entry_Index
10646 (N : Node_Id; Val : Node_Id); -- Node5
10648 procedure Set_Entry_Index_Specification
10649 (N : Node_Id; Val : Node_Id); -- Node4
10651 procedure Set_Etype
10652 (N : Node_Id; Val : Node_Id); -- Node5
10654 procedure Set_Exception_Choices
10655 (N : Node_Id; Val : List_Id); -- List4
10657 procedure Set_Exception_Handlers
10658 (N : Node_Id; Val : List_Id); -- List5
10660 procedure Set_Exception_Junk
10661 (N : Node_Id; Val : Boolean := True); -- Flag8
10663 procedure Set_Exception_Label
10664 (N : Node_Id; Val : Node_Id); -- Node5
10666 procedure Set_Expansion_Delayed
10667 (N : Node_Id; Val : Boolean := True); -- Flag11
10669 procedure Set_Explicit_Actual_Parameter
10670 (N : Node_Id; Val : Node_Id); -- Node3
10672 procedure Set_Explicit_Generic_Actual_Parameter
10673 (N : Node_Id; Val : Node_Id); -- Node1
10675 procedure Set_Expression
10676 (N : Node_Id; Val : Node_Id); -- Node3
10678 procedure Set_Expression_Copy
10679 (N : Node_Id; Val : Node_Id); -- Node2
10681 procedure Set_Expressions
10682 (N : Node_Id; Val : List_Id); -- List1
10684 procedure Set_First_Bit
10685 (N : Node_Id; Val : Node_Id); -- Node3
10687 procedure Set_First_Inlined_Subprogram
10688 (N : Node_Id; Val : Entity_Id); -- Node3
10690 procedure Set_First_Name
10691 (N : Node_Id; Val : Boolean := True); -- Flag5
10693 procedure Set_First_Named_Actual
10694 (N : Node_Id; Val : Node_Id); -- Node4
10696 procedure Set_First_Real_Statement
10697 (N : Node_Id; Val : Node_Id); -- Node2
10699 procedure Set_First_Subtype_Link
10700 (N : Node_Id; Val : Entity_Id); -- Node5
10702 procedure Set_Float_Truncate
10703 (N : Node_Id; Val : Boolean := True); -- Flag11
10705 procedure Set_Formal_Type_Definition
10706 (N : Node_Id; Val : Node_Id); -- Node3
10708 procedure Set_Forwards_OK
10709 (N : Node_Id; Val : Boolean := True); -- Flag5
10711 procedure Set_From_Aspect_Specification
10712 (N : Node_Id; Val : Boolean := True); -- Flag13
10714 procedure Set_From_At_End
10715 (N : Node_Id; Val : Boolean := True); -- Flag4
10717 procedure Set_From_At_Mod
10718 (N : Node_Id; Val : Boolean := True); -- Flag4
10720 procedure Set_From_Conditional_Expression
10721 (N : Node_Id; Val : Boolean := True); -- Flag1
10723 procedure Set_From_Default
10724 (N : Node_Id; Val : Boolean := True); -- Flag6
10726 procedure Set_Generalized_Indexing
10727 (N : Node_Id; Val : Node_Id); -- Node4
10729 procedure Set_Generic_Associations
10730 (N : Node_Id; Val : List_Id); -- List3
10732 procedure Set_Generic_Formal_Declarations
10733 (N : Node_Id; Val : List_Id); -- List2
10735 procedure Set_Generic_Parent
10736 (N : Node_Id; Val : Node_Id); -- Node5
10738 procedure Set_Generic_Parent_Type
10739 (N : Node_Id; Val : Node_Id); -- Node4
10741 procedure Set_Handled_Statement_Sequence
10742 (N : Node_Id; Val : Node_Id); -- Node4
10744 procedure Set_Handler_List_Entry
10745 (N : Node_Id; Val : Node_Id); -- Node2
10747 procedure Set_Has_Created_Identifier
10748 (N : Node_Id; Val : Boolean := True); -- Flag15
10750 procedure Set_Has_Dereference_Action
10751 (N : Node_Id; Val : Boolean := True); -- Flag13
10753 procedure Set_Has_Dynamic_Length_Check
10754 (N : Node_Id; Val : Boolean := True); -- Flag10
10756 procedure Set_Has_Dynamic_Range_Check
10757 (N : Node_Id; Val : Boolean := True); -- Flag12
10759 procedure Set_Has_Init_Expression
10760 (N : Node_Id; Val : Boolean := True); -- Flag14
10762 procedure Set_Has_Local_Raise
10763 (N : Node_Id; Val : Boolean := True); -- Flag8
10765 procedure Set_Has_No_Elaboration_Code
10766 (N : Node_Id; Val : Boolean := True); -- Flag17
10768 procedure Set_Has_Pragma_Suppress_All
10769 (N : Node_Id; Val : Boolean := True); -- Flag14
10771 procedure Set_Has_Private_View
10772 (N : Node_Id; Val : Boolean := True); -- Flag11
10774 procedure Set_Has_Relative_Deadline_Pragma
10775 (N : Node_Id; Val : Boolean := True); -- Flag9
10777 procedure Set_Has_Self_Reference
10778 (N : Node_Id; Val : Boolean := True); -- Flag13
10780 procedure Set_Has_SP_Choice
10781 (N : Node_Id; Val : Boolean := True); -- Flag15
10783 procedure Set_Has_Storage_Size_Pragma
10784 (N : Node_Id; Val : Boolean := True); -- Flag5
10786 procedure Set_Has_Target_Names
10787 (N : Node_Id; Val : Boolean := True); -- Flag8
10789 procedure Set_Has_Wide_Character
10790 (N : Node_Id; Val : Boolean := True); -- Flag11
10792 procedure Set_Has_Wide_Wide_Character
10793 (N : Node_Id; Val : Boolean := True); -- Flag13
10795 procedure Set_Header_Size_Added
10796 (N : Node_Id; Val : Boolean := True); -- Flag11
10798 procedure Set_Hidden_By_Use_Clause
10799 (N : Node_Id; Val : Elist_Id); -- Elist5
10801 procedure Set_High_Bound
10802 (N : Node_Id; Val : Node_Id); -- Node2
10804 procedure Set_Identifier
10805 (N : Node_Id; Val : Node_Id); -- Node1
10807 procedure Set_Interface_List
10808 (N : Node_Id; Val : List_Id); -- List2
10810 procedure Set_Interface_Present
10811 (N : Node_Id; Val : Boolean := True); -- Flag16
10813 procedure Set_Implicit_With
10814 (N : Node_Id; Val : Boolean := True); -- Flag16
10816 procedure Set_Import_Interface_Present
10817 (N : Node_Id; Val : Boolean := True); -- Flag16
10819 procedure Set_In_Present
10820 (N : Node_Id; Val : Boolean := True); -- Flag15
10822 procedure Set_Includes_Infinities
10823 (N : Node_Id; Val : Boolean := True); -- Flag11
10825 procedure Set_Incomplete_View
10826 (N : Node_Id; Val : Node_Id); -- Node2
10828 procedure Set_Inherited_Discriminant
10829 (N : Node_Id; Val : Boolean := True); -- Flag13
10831 procedure Set_Instance_Spec
10832 (N : Node_Id; Val : Node_Id); -- Node5
10834 procedure Set_Intval
10835 (N : Node_Id; Val : Uint); -- Uint3
10837 procedure Set_Is_Abort_Block
10838 (N : Node_Id; Val : Boolean := True); -- Flag4
10840 procedure Set_Is_Accessibility_Actual
10841 (N : Node_Id; Val : Boolean := True); -- Flag13
10843 procedure Set_Is_Analyzed_Pragma
10844 (N : Node_Id; Val : Boolean := True); -- Flag5
10846 procedure Set_Is_Asynchronous_Call_Block
10847 (N : Node_Id; Val : Boolean := True); -- Flag7
10849 procedure Set_Is_Boolean_Aspect
10850 (N : Node_Id; Val : Boolean := True); -- Flag16
10852 procedure Set_Is_Checked
10853 (N : Node_Id; Val : Boolean := True); -- Flag11
10855 procedure Set_Is_Checked_Ghost_Pragma
10856 (N : Node_Id; Val : Boolean := True); -- Flag3
10858 procedure Set_Is_Component_Left_Opnd
10859 (N : Node_Id; Val : Boolean := True); -- Flag13
10861 procedure Set_Is_Component_Right_Opnd
10862 (N : Node_Id; Val : Boolean := True); -- Flag14
10864 procedure Set_Is_Controlling_Actual
10865 (N : Node_Id; Val : Boolean := True); -- Flag16
10867 procedure Set_Is_Declaration_Level_Node
10868 (N : Node_Id; Val : Boolean := True); -- Flag5
10870 procedure Set_Is_Delayed_Aspect
10871 (N : Node_Id; Val : Boolean := True); -- Flag14
10873 procedure Set_Is_Disabled
10874 (N : Node_Id; Val : Boolean := True); -- Flag15
10876 procedure Set_Is_Dispatching_Call
10877 (N : Node_Id; Val : Boolean := True); -- Flag6
10879 procedure Set_Is_Dynamic_Coextension
10880 (N : Node_Id; Val : Boolean := True); -- Flag18
10882 procedure Set_Is_Effective_Use_Clause
10883 (N : Node_Id; Val : Boolean := True); -- Flag1
10885 procedure Set_Is_Elaboration_Checks_OK_Node
10886 (N : Node_Id; Val : Boolean := True); -- Flag1
10888 procedure Set_Is_Elaboration_Code
10889 (N : Node_Id; Val : Boolean := True); -- Flag9
10891 procedure Set_Is_Elaboration_Warnings_OK_Node
10892 (N : Node_Id; Val : Boolean := True); -- Flag3
10894 procedure Set_Is_Elsif
10895 (N : Node_Id; Val : Boolean := True); -- Flag13
10897 procedure Set_Is_Entry_Barrier_Function
10898 (N : Node_Id; Val : Boolean := True); -- Flag8
10900 procedure Set_Is_Expanded_Build_In_Place_Call
10901 (N : Node_Id; Val : Boolean := True); -- Flag11
10903 procedure Set_Is_Expanded_Contract
10904 (N : Node_Id; Val : Boolean := True); -- Flag1
10906 procedure Set_Is_Finalization_Wrapper
10907 (N : Node_Id; Val : Boolean := True); -- Flag9
10909 procedure Set_Is_Folded_In_Parser
10910 (N : Node_Id; Val : Boolean := True); -- Flag4
10912 procedure Set_Is_Generic_Contract_Pragma
10913 (N : Node_Id; Val : Boolean := True); -- Flag2
10915 procedure Set_Is_Ignored
10916 (N : Node_Id; Val : Boolean := True); -- Flag9
10918 procedure Set_Is_Ignored_Ghost_Pragma
10919 (N : Node_Id; Val : Boolean := True); -- Flag8
10921 procedure Set_Is_In_Discriminant_Check
10922 (N : Node_Id; Val : Boolean := True); -- Flag11
10924 procedure Set_Is_Inherited_Pragma
10925 (N : Node_Id; Val : Boolean := True); -- Flag4
10927 procedure Set_Is_Initialization_Block
10928 (N : Node_Id; Val : Boolean := True); -- Flag1
10930 procedure Set_Is_Known_Guaranteed_ABE
10931 (N : Node_Id; Val : Boolean := True); -- Flag18
10933 procedure Set_Is_Machine_Number
10934 (N : Node_Id; Val : Boolean := True); -- Flag11
10936 procedure Set_Is_Null_Loop
10937 (N : Node_Id; Val : Boolean := True); -- Flag16
10939 procedure Set_Is_Overloaded
10940 (N : Node_Id; Val : Boolean := True); -- Flag5
10942 procedure Set_Is_Power_Of_2_For_Shift
10943 (N : Node_Id; Val : Boolean := True); -- Flag13
10945 procedure Set_Is_Prefixed_Call
10946 (N : Node_Id; Val : Boolean := True); -- Flag17
10948 procedure Set_Is_Protected_Subprogram_Body
10949 (N : Node_Id; Val : Boolean := True); -- Flag7
10951 procedure Set_Is_Qualified_Universal_Literal
10952 (N : Node_Id; Val : Boolean := True); -- Flag4
10954 procedure Set_Is_Read
10955 (N : Node_Id; Val : Boolean := True); -- Flag1
10957 procedure Set_Is_Source_Call
10958 (N : Node_Id; Val : Boolean := True); -- Flag4
10960 procedure Set_Is_SPARK_Mode_On_Node
10961 (N : Node_Id; Val : Boolean := True); -- Flag2
10963 procedure Set_Is_Static_Coextension
10964 (N : Node_Id; Val : Boolean := True); -- Flag14
10966 procedure Set_Is_Static_Expression
10967 (N : Node_Id; Val : Boolean := True); -- Flag6
10969 procedure Set_Is_Subprogram_Descriptor
10970 (N : Node_Id; Val : Boolean := True); -- Flag16
10972 procedure Set_Is_Task_Allocation_Block
10973 (N : Node_Id; Val : Boolean := True); -- Flag6
10975 procedure Set_Is_Task_Body_Procedure
10976 (N : Node_Id; Val : Boolean := True); -- Flag1
10978 procedure Set_Is_Task_Master
10979 (N : Node_Id; Val : Boolean := True); -- Flag5
10981 procedure Set_Is_Write
10982 (N : Node_Id; Val : Boolean := True); -- Flag2
10984 procedure Set_Iteration_Scheme
10985 (N : Node_Id; Val : Node_Id); -- Node2
10987 procedure Set_Iterator_Specification
10988 (N : Node_Id; Val : Node_Id); -- Node2
10990 procedure Set_Itype
10991 (N : Node_Id; Val : Entity_Id); -- Node1
10993 procedure Set_Kill_Range_Check
10994 (N : Node_Id; Val : Boolean := True); -- Flag11
10996 procedure Set_Last_Bit
10997 (N : Node_Id; Val : Node_Id); -- Node4
10999 procedure Set_Last_Name
11000 (N : Node_Id; Val : Boolean := True); -- Flag6
11002 procedure Set_Library_Unit
11003 (N : Node_Id; Val : Node_Id); -- Node4
11005 procedure Set_Label_Construct
11006 (N : Node_Id; Val : Node_Id); -- Node2
11008 procedure Set_Left_Opnd
11009 (N : Node_Id; Val : Node_Id); -- Node2
11011 procedure Set_Limited_View_Installed
11012 (N : Node_Id; Val : Boolean := True); -- Flag18
11014 procedure Set_Limited_Present
11015 (N : Node_Id; Val : Boolean := True); -- Flag17
11017 procedure Set_Literals
11018 (N : Node_Id; Val : List_Id); -- List1
11020 procedure Set_Local_Raise_Not_OK
11021 (N : Node_Id; Val : Boolean := True); -- Flag7
11023 procedure Set_Local_Raise_Statements
11024 (N : Node_Id; Val : Elist_Id); -- Elist1
11026 procedure Set_Loop_Actions
11027 (N : Node_Id; Val : List_Id); -- List2
11029 procedure Set_Loop_Parameter_Specification
11030 (N : Node_Id; Val : Node_Id); -- Node4
11032 procedure Set_Low_Bound
11033 (N : Node_Id; Val : Node_Id); -- Node1
11035 procedure Set_Mod_Clause
11036 (N : Node_Id; Val : Node_Id); -- Node2
11038 procedure Set_More_Ids
11039 (N : Node_Id; Val : Boolean := True); -- Flag5
11041 procedure Set_Must_Be_Byte_Aligned
11042 (N : Node_Id; Val : Boolean := True); -- Flag14
11044 procedure Set_Must_Not_Freeze
11045 (N : Node_Id; Val : Boolean := True); -- Flag8
11047 procedure Set_Must_Not_Override
11048 (N : Node_Id; Val : Boolean := True); -- Flag15
11050 procedure Set_Must_Override
11051 (N : Node_Id; Val : Boolean := True); -- Flag14
11053 procedure Set_Name
11054 (N : Node_Id; Val : Node_Id); -- Node2
11056 procedure Set_Names
11057 (N : Node_Id; Val : List_Id); -- List2
11059 procedure Set_Next_Entity
11060 (N : Node_Id; Val : Node_Id); -- Node2
11062 procedure Set_Next_Exit_Statement
11063 (N : Node_Id; Val : Node_Id); -- Node3
11065 procedure Set_Next_Implicit_With
11066 (N : Node_Id; Val : Node_Id); -- Node3
11068 procedure Set_Next_Named_Actual
11069 (N : Node_Id; Val : Node_Id); -- Node4
11071 procedure Set_Next_Pragma
11072 (N : Node_Id; Val : Node_Id); -- Node1
11074 procedure Set_Next_Rep_Item
11075 (N : Node_Id; Val : Node_Id); -- Node5
11077 procedure Set_Next_Use_Clause
11078 (N : Node_Id; Val : Node_Id); -- Node3
11080 procedure Set_No_Ctrl_Actions
11081 (N : Node_Id; Val : Boolean := True); -- Flag7
11083 procedure Set_No_Elaboration_Check
11084 (N : Node_Id; Val : Boolean := True); -- Flag4
11086 procedure Set_No_Entities_Ref_In_Spec
11087 (N : Node_Id; Val : Boolean := True); -- Flag8
11089 procedure Set_No_Initialization
11090 (N : Node_Id; Val : Boolean := True); -- Flag13
11092 procedure Set_No_Minimize_Eliminate
11093 (N : Node_Id; Val : Boolean := True); -- Flag17
11095 procedure Set_No_Side_Effect_Removal
11096 (N : Node_Id; Val : Boolean := True); -- Flag17
11098 procedure Set_No_Truncation
11099 (N : Node_Id; Val : Boolean := True); -- Flag17
11101 procedure Set_Null_Excluding_Subtype
11102 (N : Node_Id; Val : Boolean := True); -- Flag16
11104 procedure Set_Null_Exclusion_Present
11105 (N : Node_Id; Val : Boolean := True); -- Flag11
11107 procedure Set_Null_Exclusion_In_Return_Present
11108 (N : Node_Id; Val : Boolean := True); -- Flag14
11110 procedure Set_Null_Present
11111 (N : Node_Id; Val : Boolean := True); -- Flag13
11113 procedure Set_Null_Record_Present
11114 (N : Node_Id; Val : Boolean := True); -- Flag17
11116 procedure Set_Null_Statement
11117 (N : Node_Id; Val : Node_Id); -- Node2
11119 procedure Set_Object_Definition
11120 (N : Node_Id; Val : Node_Id); -- Node4
11122 procedure Set_Of_Present
11123 (N : Node_Id; Val : Boolean := True); -- Flag16
11125 procedure Set_Original_Discriminant
11126 (N : Node_Id; Val : Node_Id); -- Node2
11128 procedure Set_Original_Entity
11129 (N : Node_Id; Val : Entity_Id); -- Node2
11131 procedure Set_Others_Discrete_Choices
11132 (N : Node_Id; Val : List_Id); -- List1
11134 procedure Set_Out_Present
11135 (N : Node_Id; Val : Boolean := True); -- Flag17
11137 procedure Set_Parameter_Associations
11138 (N : Node_Id; Val : List_Id); -- List3
11140 procedure Set_Parameter_Specifications
11141 (N : Node_Id; Val : List_Id); -- List3
11143 procedure Set_Parameter_Type
11144 (N : Node_Id; Val : Node_Id); -- Node2
11146 procedure Set_Parent_Spec
11147 (N : Node_Id; Val : Node_Id); -- Node4
11149 procedure Set_Parent_With
11150 (N : Node_Id; Val : Boolean := True); -- Flag1
11152 procedure Set_Position
11153 (N : Node_Id; Val : Node_Id); -- Node2
11155 procedure Set_Pragma_Argument_Associations
11156 (N : Node_Id; Val : List_Id); -- List2
11158 procedure Set_Pragma_Identifier
11159 (N : Node_Id; Val : Node_Id); -- Node4
11161 procedure Set_Pragmas_After
11162 (N : Node_Id; Val : List_Id); -- List5
11164 procedure Set_Pragmas_Before
11165 (N : Node_Id; Val : List_Id); -- List4
11167 procedure Set_Pre_Post_Conditions
11168 (N : Node_Id; Val : Node_Id); -- Node1
11170 procedure Set_Prefix
11171 (N : Node_Id; Val : Node_Id); -- Node3
11173 procedure Set_Premature_Use
11174 (N : Node_Id; Val : Node_Id); -- Node5
11176 procedure Set_Present_Expr
11177 (N : Node_Id; Val : Uint); -- Uint3
11179 procedure Set_Prev_Ids
11180 (N : Node_Id; Val : Boolean := True); -- Flag6
11182 procedure Set_Prev_Use_Clause
11183 (N : Node_Id; Val : Node_Id); -- Node1
11185 procedure Set_Print_In_Hex
11186 (N : Node_Id; Val : Boolean := True); -- Flag13
11188 procedure Set_Private_Declarations
11189 (N : Node_Id; Val : List_Id); -- List3
11191 procedure Set_Private_Present
11192 (N : Node_Id; Val : Boolean := True); -- Flag15
11194 procedure Set_Procedure_To_Call
11195 (N : Node_Id; Val : Node_Id); -- Node2
11197 procedure Set_Proper_Body
11198 (N : Node_Id; Val : Node_Id); -- Node1
11200 procedure Set_Protected_Definition
11201 (N : Node_Id; Val : Node_Id); -- Node3
11203 procedure Set_Protected_Present
11204 (N : Node_Id; Val : Boolean := True); -- Flag6
11206 procedure Set_Raises_Constraint_Error
11207 (N : Node_Id; Val : Boolean := True); -- Flag7
11209 procedure Set_Range_Constraint
11210 (N : Node_Id; Val : Node_Id); -- Node4
11212 procedure Set_Range_Expression
11213 (N : Node_Id; Val : Node_Id); -- Node4
11215 procedure Set_Real_Range_Specification
11216 (N : Node_Id; Val : Node_Id); -- Node4
11218 procedure Set_Realval
11219 (N : Node_Id; Val : Ureal); -- Ureal3
11221 procedure Set_Reason
11222 (N : Node_Id; Val : Uint); -- Uint3
11224 procedure Set_Record_Extension_Part
11225 (N : Node_Id; Val : Node_Id); -- Node3
11227 procedure Set_Redundant_Use
11228 (N : Node_Id; Val : Boolean := True); -- Flag13
11230 procedure Set_Renaming_Exception
11231 (N : Node_Id; Val : Node_Id); -- Node2
11233 procedure Set_Result_Definition
11234 (N : Node_Id; Val : Node_Id); -- Node4
11236 procedure Set_Return_Object_Declarations
11237 (N : Node_Id; Val : List_Id); -- List3
11239 procedure Set_Return_Statement_Entity
11240 (N : Node_Id; Val : Node_Id); -- Node5
11242 procedure Set_Reverse_Present
11243 (N : Node_Id; Val : Boolean := True); -- Flag15
11245 procedure Set_Right_Opnd
11246 (N : Node_Id; Val : Node_Id); -- Node3
11248 procedure Set_Rounded_Result
11249 (N : Node_Id; Val : Boolean := True); -- Flag18
11251 procedure Set_SCIL_Controlling_Tag
11252 (N : Node_Id; Val : Node_Id); -- Node5
11254 procedure Set_SCIL_Entity
11255 (N : Node_Id; Val : Node_Id); -- Node4
11257 procedure Set_SCIL_Tag_Value
11258 (N : Node_Id; Val : Node_Id); -- Node5
11260 procedure Set_SCIL_Target_Prim
11261 (N : Node_Id; Val : Node_Id); -- Node2
11263 procedure Set_Scope
11264 (N : Node_Id; Val : Node_Id); -- Node3
11266 procedure Set_Select_Alternatives
11267 (N : Node_Id; Val : List_Id); -- List1
11269 procedure Set_Selector_Name
11270 (N : Node_Id; Val : Node_Id); -- Node2
11272 procedure Set_Selector_Names
11273 (N : Node_Id; Val : List_Id); -- List1
11275 procedure Set_Shift_Count_OK
11276 (N : Node_Id; Val : Boolean := True); -- Flag4
11278 procedure Set_Source_Type
11279 (N : Node_Id; Val : Entity_Id); -- Node1
11281 procedure Set_Specification
11282 (N : Node_Id; Val : Node_Id); -- Node1
11284 procedure Set_Split_PPC
11285 (N : Node_Id; Val : Boolean); -- Flag17
11287 procedure Set_Statements
11288 (N : Node_Id; Val : List_Id); -- List3
11290 procedure Set_Storage_Pool
11291 (N : Node_Id; Val : Node_Id); -- Node1
11293 procedure Set_Subpool_Handle_Name
11294 (N : Node_Id; Val : Node_Id); -- Node4
11296 procedure Set_Strval
11297 (N : Node_Id; Val : String_Id); -- Str3
11299 procedure Set_Subtype_Indication
11300 (N : Node_Id; Val : Node_Id); -- Node5
11302 procedure Set_Subtype_Mark
11303 (N : Node_Id; Val : Node_Id); -- Node4
11305 procedure Set_Subtype_Marks
11306 (N : Node_Id; Val : List_Id); -- List2
11308 procedure Set_Suppress_Assignment_Checks
11309 (N : Node_Id; Val : Boolean := True); -- Flag18
11311 procedure Set_Suppress_Loop_Warnings
11312 (N : Node_Id; Val : Boolean := True); -- Flag17
11314 procedure Set_Synchronized_Present
11315 (N : Node_Id; Val : Boolean := True); -- Flag7
11317 procedure Set_Tagged_Present
11318 (N : Node_Id; Val : Boolean := True); -- Flag15
11320 procedure Set_Target
11321 (N : Node_Id; Val : Entity_Id); -- Node1
11323 procedure Set_Target_Type
11324 (N : Node_Id; Val : Entity_Id); -- Node2
11326 procedure Set_Task_Definition
11327 (N : Node_Id; Val : Node_Id); -- Node3
11329 procedure Set_Task_Present
11330 (N : Node_Id; Val : Boolean := True); -- Flag5
11332 procedure Set_Then_Actions
11333 (N : Node_Id; Val : List_Id); -- List2
11335 procedure Set_Then_Statements
11336 (N : Node_Id; Val : List_Id); -- List2
11338 procedure Set_Treat_Fixed_As_Integer
11339 (N : Node_Id; Val : Boolean := True); -- Flag14
11341 procedure Set_Triggering_Alternative
11342 (N : Node_Id; Val : Node_Id); -- Node1
11344 procedure Set_Triggering_Statement
11345 (N : Node_Id; Val : Node_Id); -- Node1
11347 procedure Set_TSS_Elist
11348 (N : Node_Id; Val : Elist_Id); -- Elist3
11350 procedure Set_Type_Definition
11351 (N : Node_Id; Val : Node_Id); -- Node3
11353 procedure Set_Uneval_Old_Accept
11354 (N : Node_Id; Val : Boolean := True); -- Flag7
11356 procedure Set_Uneval_Old_Warn
11357 (N : Node_Id; Val : Boolean := True); -- Flag18
11359 procedure Set_Unit
11360 (N : Node_Id; Val : Node_Id); -- Node2
11362 procedure Set_Unknown_Discriminants_Present
11363 (N : Node_Id; Val : Boolean := True); -- Flag13
11365 procedure Set_Unreferenced_In_Spec
11366 (N : Node_Id; Val : Boolean := True); -- Flag7
11368 procedure Set_Variant_Part
11369 (N : Node_Id; Val : Node_Id); -- Node4
11371 procedure Set_Variants
11372 (N : Node_Id; Val : List_Id); -- List1
11374 procedure Set_Visible_Declarations
11375 (N : Node_Id; Val : List_Id); -- List2
11377 procedure Set_Uninitialized_Variable
11378 (N : Node_Id; Val : Node_Id); -- Node3
11380 procedure Set_Used_Operations
11381 (N : Node_Id; Val : Elist_Id); -- Elist2
11383 procedure Set_Was_Attribute_Reference
11384 (N : Node_Id; Val : Boolean := True); -- Flag2
11386 procedure Set_Was_Expression_Function
11387 (N : Node_Id; Val : Boolean := True); -- Flag18
11389 procedure Set_Was_Originally_Stub
11390 (N : Node_Id; Val : Boolean := True); -- Flag13
11392 procedure Set_Withed_Body
11393 (N : Node_Id; Val : Node_Id); -- Node1
11395 -------------------------
11396 -- Iterator Procedures --
11397 -------------------------
11399 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
11401 procedure Next_Entity (N : in out Node_Id);
11402 procedure Next_Named_Actual (N : in out Node_Id);
11403 procedure Next_Rep_Item (N : in out Node_Id);
11404 procedure Next_Use_Clause (N : in out Node_Id);
11406 -------------------------------------------
11407 -- Miscellaneous Tree Access Subprograms --
11408 -------------------------------------------
11410 function End_Location (N : Node_Id) return Source_Ptr;
11411 -- N is an N_If_Statement or N_Case_Statement node, and this function
11412 -- returns the location of the IF token in the END IF sequence by
11413 -- translating the value of the End_Span field.
11415 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
11416 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
11417 -- the End_Span field to correspond to the given value S. In other words,
11418 -- End_Span is set to the difference between S and Sloc (N), the starting
11419 -- location.
11421 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
11422 -- Given an argument to a pragma Arg, this function returns the expression
11423 -- for the argument. This is Arg itself, or, in the case where Arg is a
11424 -- pragma argument association node, the expression from this node.
11426 --------------------------------
11427 -- Node_Kind Membership Tests --
11428 --------------------------------
11430 -- The following functions allow a convenient notation for testing whether
11431 -- a Node_Kind value matches any one of a list of possible values. In each
11432 -- case True is returned if the given T argument is equal to any of the V
11433 -- arguments. Note that there is a similar set of functions defined in
11434 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
11436 function Nkind_In
11437 (T : Node_Kind;
11438 V1 : Node_Kind;
11439 V2 : Node_Kind) return Boolean;
11441 function Nkind_In
11442 (T : Node_Kind;
11443 V1 : Node_Kind;
11444 V2 : Node_Kind;
11445 V3 : Node_Kind) return Boolean;
11447 function Nkind_In
11448 (T : Node_Kind;
11449 V1 : Node_Kind;
11450 V2 : Node_Kind;
11451 V3 : Node_Kind;
11452 V4 : Node_Kind) return Boolean;
11454 function Nkind_In
11455 (T : Node_Kind;
11456 V1 : Node_Kind;
11457 V2 : Node_Kind;
11458 V3 : Node_Kind;
11459 V4 : Node_Kind;
11460 V5 : Node_Kind) return Boolean;
11462 function Nkind_In
11463 (T : Node_Kind;
11464 V1 : Node_Kind;
11465 V2 : Node_Kind;
11466 V3 : Node_Kind;
11467 V4 : Node_Kind;
11468 V5 : Node_Kind;
11469 V6 : Node_Kind) return Boolean;
11471 function Nkind_In
11472 (T : Node_Kind;
11473 V1 : Node_Kind;
11474 V2 : Node_Kind;
11475 V3 : Node_Kind;
11476 V4 : Node_Kind;
11477 V5 : Node_Kind;
11478 V6 : Node_Kind;
11479 V7 : Node_Kind) return Boolean;
11481 function Nkind_In
11482 (T : Node_Kind;
11483 V1 : Node_Kind;
11484 V2 : Node_Kind;
11485 V3 : Node_Kind;
11486 V4 : Node_Kind;
11487 V5 : Node_Kind;
11488 V6 : Node_Kind;
11489 V7 : Node_Kind;
11490 V8 : Node_Kind) return Boolean;
11492 function Nkind_In
11493 (T : Node_Kind;
11494 V1 : Node_Kind;
11495 V2 : Node_Kind;
11496 V3 : Node_Kind;
11497 V4 : Node_Kind;
11498 V5 : Node_Kind;
11499 V6 : Node_Kind;
11500 V7 : Node_Kind;
11501 V8 : Node_Kind;
11502 V9 : Node_Kind) return Boolean;
11504 function Nkind_In
11505 (T : Node_Kind;
11506 V1 : Node_Kind;
11507 V2 : Node_Kind;
11508 V3 : Node_Kind;
11509 V4 : Node_Kind;
11510 V5 : Node_Kind;
11511 V6 : Node_Kind;
11512 V7 : Node_Kind;
11513 V8 : Node_Kind;
11514 V9 : Node_Kind;
11515 V10 : Node_Kind) return Boolean;
11517 function Nkind_In
11518 (T : Node_Kind;
11519 V1 : Node_Kind;
11520 V2 : Node_Kind;
11521 V3 : Node_Kind;
11522 V4 : Node_Kind;
11523 V5 : Node_Kind;
11524 V6 : Node_Kind;
11525 V7 : Node_Kind;
11526 V8 : Node_Kind;
11527 V9 : Node_Kind;
11528 V10 : Node_Kind;
11529 V11 : Node_Kind) return Boolean;
11531 pragma Inline (Nkind_In);
11532 -- Inline all above functions
11534 -----------------------
11535 -- Utility Functions --
11536 -----------------------
11538 procedure Map_Pragma_Name (From, To : Name_Id);
11539 -- Used in the implementation of pragma Rename_Pragma. Maps pragma name
11540 -- From to pragma name To, so From can be used as a synonym for To.
11542 Too_Many_Pragma_Mappings : exception;
11543 -- Raised if Map_Pragma_Name is called too many times. We expect that few
11544 -- programs will use it at all, and those that do will use it approximately
11545 -- once or twice.
11547 function Pragma_Name (N : Node_Id) return Name_Id;
11548 -- Obtain the name of pragma N from the Chars field of its identifier. If
11549 -- the pragma has been renamed using Rename_Pragma, this routine returns
11550 -- the name of the renaming.
11552 function Pragma_Name_Unmapped (N : Node_Id) return Name_Id;
11553 -- Obtain the name of pragma N from the Chars field of its identifier. This
11554 -- form of name extraction does not take into account renamings performed
11555 -- by Rename_Pragma.
11557 -----------------------------
11558 -- Syntactic Parent Tables --
11559 -----------------------------
11561 -- These tables show for each node, and for each of the five fields,
11562 -- whether the corresponding field is syntactic (True) or semantic (False).
11563 -- Unused entries are also set to False.
11565 subtype Field_Num is Natural range 1 .. 5;
11567 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
11569 -- Following entries can be built automatically from the sinfo sources
11570 -- using the makeisf utility (currently this program is in spitbol).
11572 N_Identifier =>
11573 (1 => True, -- Chars (Name1)
11574 2 => False, -- Original_Discriminant (Node2-Sem)
11575 3 => False, -- unused
11576 4 => False, -- Entity (Node4-Sem)
11577 5 => False), -- Etype (Node5-Sem)
11579 N_Integer_Literal =>
11580 (1 => False, -- unused
11581 2 => False, -- Original_Entity (Node2-Sem)
11582 3 => True, -- Intval (Uint3)
11583 4 => False, -- unused
11584 5 => False), -- Etype (Node5-Sem)
11586 N_Real_Literal =>
11587 (1 => False, -- unused
11588 2 => False, -- Original_Entity (Node2-Sem)
11589 3 => True, -- Realval (Ureal3)
11590 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
11591 5 => False), -- Etype (Node5-Sem)
11593 N_Character_Literal =>
11594 (1 => True, -- Chars (Name1)
11595 2 => True, -- Char_Literal_Value (Uint2)
11596 3 => False, -- unused
11597 4 => False, -- Entity (Node4-Sem)
11598 5 => False), -- Etype (Node5-Sem)
11600 N_String_Literal =>
11601 (1 => False, -- unused
11602 2 => False, -- unused
11603 3 => True, -- Strval (Str3)
11604 4 => False, -- unused
11605 5 => False), -- Etype (Node5-Sem)
11607 N_Pragma =>
11608 (1 => False, -- Next_Pragma (Node1-Sem)
11609 2 => True, -- Pragma_Argument_Associations (List2)
11610 3 => False, -- Corresponding_Aspect (Node3-Sem)
11611 4 => True, -- Pragma_Identifier (Node4)
11612 5 => False), -- Next_Rep_Item (Node5-Sem)
11614 N_Pragma_Argument_Association =>
11615 (1 => True, -- Chars (Name1)
11616 2 => False, -- Expression_Copy (Node2-Sem)
11617 3 => True, -- Expression (Node3)
11618 4 => False, -- unused
11619 5 => False), -- unused
11621 N_Defining_Identifier =>
11622 (1 => True, -- Chars (Name1)
11623 2 => False, -- Next_Entity (Node2-Sem)
11624 3 => False, -- Scope (Node3-Sem)
11625 4 => False, -- unused
11626 5 => False), -- Etype (Node5-Sem)
11628 N_Full_Type_Declaration =>
11629 (1 => True, -- Defining_Identifier (Node1)
11630 2 => False, -- Incomplete_View (Node2-Sem)
11631 3 => True, -- Type_Definition (Node3)
11632 4 => True, -- Discriminant_Specifications (List4)
11633 5 => False), -- unused
11635 N_Subtype_Declaration =>
11636 (1 => True, -- Defining_Identifier (Node1)
11637 2 => False, -- unused
11638 3 => False, -- unused
11639 4 => False, -- Generic_Parent_Type (Node4-Sem)
11640 5 => True), -- Subtype_Indication (Node5)
11642 N_Subtype_Indication =>
11643 (1 => False, -- unused
11644 2 => False, -- unused
11645 3 => True, -- Constraint (Node3)
11646 4 => True, -- Subtype_Mark (Node4)
11647 5 => False), -- Etype (Node5-Sem)
11649 N_Object_Declaration =>
11650 (1 => True, -- Defining_Identifier (Node1)
11651 2 => False, -- Handler_List_Entry (Node2-Sem)
11652 3 => True, -- Expression (Node3)
11653 4 => True, -- Object_Definition (Node4)
11654 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11656 N_Number_Declaration =>
11657 (1 => True, -- Defining_Identifier (Node1)
11658 2 => False, -- unused
11659 3 => True, -- Expression (Node3)
11660 4 => False, -- unused
11661 5 => False), -- unused
11663 N_Derived_Type_Definition =>
11664 (1 => False, -- unused
11665 2 => True, -- Interface_List (List2)
11666 3 => True, -- Record_Extension_Part (Node3)
11667 4 => False, -- unused
11668 5 => True), -- Subtype_Indication (Node5)
11670 N_Range_Constraint =>
11671 (1 => False, -- unused
11672 2 => False, -- unused
11673 3 => False, -- unused
11674 4 => True, -- Range_Expression (Node4)
11675 5 => False), -- unused
11677 N_Range =>
11678 (1 => True, -- Low_Bound (Node1)
11679 2 => True, -- High_Bound (Node2)
11680 3 => False, -- unused
11681 4 => False, -- unused
11682 5 => False), -- Etype (Node5-Sem)
11684 N_Enumeration_Type_Definition =>
11685 (1 => True, -- Literals (List1)
11686 2 => False, -- unused
11687 3 => False, -- unused
11688 4 => True, -- End_Label (Node4)
11689 5 => False), -- unused
11691 N_Defining_Character_Literal =>
11692 (1 => True, -- Chars (Name1)
11693 2 => False, -- Next_Entity (Node2-Sem)
11694 3 => False, -- Scope (Node3-Sem)
11695 4 => False, -- unused
11696 5 => False), -- Etype (Node5-Sem)
11698 N_Signed_Integer_Type_Definition =>
11699 (1 => True, -- Low_Bound (Node1)
11700 2 => True, -- High_Bound (Node2)
11701 3 => False, -- unused
11702 4 => False, -- unused
11703 5 => False), -- unused
11705 N_Modular_Type_Definition =>
11706 (1 => False, -- unused
11707 2 => False, -- unused
11708 3 => True, -- Expression (Node3)
11709 4 => False, -- unused
11710 5 => False), -- unused
11712 N_Floating_Point_Definition =>
11713 (1 => False, -- unused
11714 2 => True, -- Digits_Expression (Node2)
11715 3 => False, -- unused
11716 4 => True, -- Real_Range_Specification (Node4)
11717 5 => False), -- unused
11719 N_Real_Range_Specification =>
11720 (1 => True, -- Low_Bound (Node1)
11721 2 => True, -- High_Bound (Node2)
11722 3 => False, -- unused
11723 4 => False, -- unused
11724 5 => False), -- unused
11726 N_Ordinary_Fixed_Point_Definition =>
11727 (1 => False, -- unused
11728 2 => False, -- unused
11729 3 => True, -- Delta_Expression (Node3)
11730 4 => True, -- Real_Range_Specification (Node4)
11731 5 => False), -- unused
11733 N_Decimal_Fixed_Point_Definition =>
11734 (1 => False, -- unused
11735 2 => True, -- Digits_Expression (Node2)
11736 3 => True, -- Delta_Expression (Node3)
11737 4 => True, -- Real_Range_Specification (Node4)
11738 5 => False), -- unused
11740 N_Digits_Constraint =>
11741 (1 => False, -- unused
11742 2 => True, -- Digits_Expression (Node2)
11743 3 => False, -- unused
11744 4 => True, -- Range_Constraint (Node4)
11745 5 => False), -- unused
11747 N_Unconstrained_Array_Definition =>
11748 (1 => False, -- unused
11749 2 => True, -- Subtype_Marks (List2)
11750 3 => False, -- unused
11751 4 => True, -- Component_Definition (Node4)
11752 5 => False), -- unused
11754 N_Constrained_Array_Definition =>
11755 (1 => False, -- unused
11756 2 => True, -- Discrete_Subtype_Definitions (List2)
11757 3 => False, -- unused
11758 4 => True, -- Component_Definition (Node4)
11759 5 => False), -- unused
11761 N_Component_Definition =>
11762 (1 => False, -- unused
11763 2 => False, -- unused
11764 3 => True, -- Access_Definition (Node3)
11765 4 => False, -- unused
11766 5 => True), -- Subtype_Indication (Node5)
11768 N_Discriminant_Specification =>
11769 (1 => True, -- Defining_Identifier (Node1)
11770 2 => False, -- unused
11771 3 => True, -- Expression (Node3)
11772 4 => False, -- unused
11773 5 => True), -- Discriminant_Type (Node5)
11775 N_Index_Or_Discriminant_Constraint =>
11776 (1 => True, -- Constraints (List1)
11777 2 => False, -- unused
11778 3 => False, -- unused
11779 4 => False, -- unused
11780 5 => False), -- unused
11782 N_Discriminant_Association =>
11783 (1 => True, -- Selector_Names (List1)
11784 2 => False, -- unused
11785 3 => True, -- Expression (Node3)
11786 4 => False, -- unused
11787 5 => False), -- unused
11789 N_Record_Definition =>
11790 (1 => True, -- Component_List (Node1)
11791 2 => True, -- Interface_List (List2)
11792 3 => False, -- unused
11793 4 => True, -- End_Label (Node4)
11794 5 => False), -- unused
11796 N_Component_List =>
11797 (1 => False, -- unused
11798 2 => False, -- unused
11799 3 => True, -- Component_Items (List3)
11800 4 => True, -- Variant_Part (Node4)
11801 5 => False), -- unused
11803 N_Component_Declaration =>
11804 (1 => True, -- Defining_Identifier (Node1)
11805 2 => False, -- unused
11806 3 => True, -- Expression (Node3)
11807 4 => True, -- Component_Definition (Node4)
11808 5 => False), -- unused
11810 N_Variant_Part =>
11811 (1 => True, -- Variants (List1)
11812 2 => True, -- Name (Node2)
11813 3 => False, -- unused
11814 4 => False, -- unused
11815 5 => False), -- unused
11817 N_Variant =>
11818 (1 => True, -- Component_List (Node1)
11819 2 => False, -- Enclosing_Variant (Node2-Sem)
11820 3 => False, -- Present_Expr (Uint3-Sem)
11821 4 => True, -- Discrete_Choices (List4)
11822 5 => False), -- Dcheck_Function (Node5-Sem)
11824 N_Others_Choice =>
11825 (1 => False, -- Others_Discrete_Choices (List1-Sem)
11826 2 => False, -- unused
11827 3 => False, -- unused
11828 4 => False, -- unused
11829 5 => False), -- unused
11831 N_Access_To_Object_Definition =>
11832 (1 => False, -- unused
11833 2 => False, -- unused
11834 3 => False, -- unused
11835 4 => False, -- unused
11836 5 => True), -- Subtype_Indication (Node5)
11838 N_Access_Function_Definition =>
11839 (1 => False, -- unused
11840 2 => False, -- unused
11841 3 => True, -- Parameter_Specifications (List3)
11842 4 => True, -- Result_Definition (Node4)
11843 5 => False), -- unused
11845 N_Access_Procedure_Definition =>
11846 (1 => False, -- unused
11847 2 => False, -- unused
11848 3 => True, -- Parameter_Specifications (List3)
11849 4 => False, -- unused
11850 5 => False), -- unused
11852 N_Access_Definition =>
11853 (1 => False, -- unused
11854 2 => False, -- unused
11855 3 => True, -- Access_To_Subprogram_Definition (Node3)
11856 4 => True, -- Subtype_Mark (Node4)
11857 5 => False), -- unused
11859 N_Incomplete_Type_Declaration =>
11860 (1 => True, -- Defining_Identifier (Node1)
11861 2 => False, -- unused
11862 3 => False, -- unused
11863 4 => True, -- Discriminant_Specifications (List4)
11864 5 => False), -- Premature_Use
11866 N_Explicit_Dereference =>
11867 (1 => False, -- unused
11868 2 => False, -- unused
11869 3 => True, -- Prefix (Node3)
11870 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11871 5 => False), -- Etype (Node5-Sem)
11873 N_Indexed_Component =>
11874 (1 => True, -- Expressions (List1)
11875 2 => False, -- unused
11876 3 => True, -- Prefix (Node3)
11877 4 => False, -- Generalized_Indexing (Node4-Sem)
11878 5 => False), -- Etype (Node5-Sem)
11880 N_Slice =>
11881 (1 => False, -- unused
11882 2 => False, -- unused
11883 3 => True, -- Prefix (Node3)
11884 4 => True, -- Discrete_Range (Node4)
11885 5 => False), -- Etype (Node5-Sem)
11887 N_Selected_Component =>
11888 (1 => False, -- unused
11889 2 => True, -- Selector_Name (Node2)
11890 3 => True, -- Prefix (Node3)
11891 4 => False, -- unused
11892 5 => False), -- Etype (Node5-Sem)
11894 N_Attribute_Reference =>
11895 (1 => True, -- Expressions (List1)
11896 2 => True, -- Attribute_Name (Name2)
11897 3 => True, -- Prefix (Node3)
11898 4 => False, -- Entity (Node4-Sem)
11899 5 => False), -- Etype (Node5-Sem)
11901 N_Aggregate =>
11902 (1 => True, -- Expressions (List1)
11903 2 => True, -- Component_Associations (List2)
11904 3 => False, -- Aggregate_Bounds (Node3-Sem)
11905 4 => False, -- unused
11906 5 => False), -- Etype (Node5-Sem)
11908 N_Component_Association =>
11909 (1 => True, -- Choices (List1)
11910 2 => False, -- Loop_Actions (List2-Sem)
11911 3 => True, -- Expression (Node3)
11912 4 => False, -- unused
11913 5 => False), -- unused
11915 N_Iterated_Component_Association =>
11916 (1 => True, -- Defining_Identifier (Node1)
11917 2 => False, -- unused
11918 3 => True, -- Expression (Node3)
11919 4 => True, -- Discrete_Choices (List4)
11920 5 => False), -- unused
11922 N_Delta_Aggregate =>
11923 (1 => False, -- Expressions (List1-Sem)
11924 2 => True, -- Component_Associations (List2)
11925 3 => True, -- Expression (Node3)
11926 4 => False, -- Unused
11927 5 => False), -- Etype (Node5-Sem)
11929 N_Extension_Aggregate =>
11930 (1 => True, -- Expressions (List1)
11931 2 => True, -- Component_Associations (List2)
11932 3 => True, -- Ancestor_Part (Node3)
11933 4 => False, -- unused
11934 5 => False), -- Etype (Node5-Sem)
11936 N_Null =>
11937 (1 => False, -- unused
11938 2 => False, -- unused
11939 3 => False, -- unused
11940 4 => False, -- unused
11941 5 => False), -- Etype (Node5-Sem)
11943 N_And_Then =>
11944 (1 => False, -- Actions (List1-Sem)
11945 2 => True, -- Left_Opnd (Node2)
11946 3 => True, -- Right_Opnd (Node3)
11947 4 => False, -- unused
11948 5 => False), -- Etype (Node5-Sem)
11950 N_Or_Else =>
11951 (1 => False, -- Actions (List1-Sem)
11952 2 => True, -- Left_Opnd (Node2)
11953 3 => True, -- Right_Opnd (Node3)
11954 4 => False, -- unused
11955 5 => False), -- Etype (Node5-Sem)
11957 N_In =>
11958 (1 => False, -- unused
11959 2 => True, -- Left_Opnd (Node2)
11960 3 => True, -- Right_Opnd (Node3)
11961 4 => True, -- Alternatives (List4)
11962 5 => False), -- Etype (Node5-Sem)
11964 N_Not_In =>
11965 (1 => False, -- unused
11966 2 => True, -- Left_Opnd (Node2)
11967 3 => True, -- Right_Opnd (Node3)
11968 4 => True, -- Alternatives (List4)
11969 5 => False), -- Etype (Node5-Sem)
11971 N_Op_And =>
11972 (1 => True, -- Chars (Name1)
11973 2 => True, -- Left_Opnd (Node2)
11974 3 => True, -- Right_Opnd (Node3)
11975 4 => False, -- Entity (Node4-Sem)
11976 5 => False), -- Etype (Node5-Sem)
11978 N_Op_Or =>
11979 (1 => True, -- Chars (Name1)
11980 2 => True, -- Left_Opnd (Node2)
11981 3 => True, -- Right_Opnd (Node3)
11982 4 => False, -- Entity (Node4-Sem)
11983 5 => False), -- Etype (Node5-Sem)
11985 N_Op_Xor =>
11986 (1 => True, -- Chars (Name1)
11987 2 => True, -- Left_Opnd (Node2)
11988 3 => True, -- Right_Opnd (Node3)
11989 4 => False, -- Entity (Node4-Sem)
11990 5 => False), -- Etype (Node5-Sem)
11992 N_Op_Eq =>
11993 (1 => True, -- Chars (Name1)
11994 2 => True, -- Left_Opnd (Node2)
11995 3 => True, -- Right_Opnd (Node3)
11996 4 => False, -- Entity (Node4-Sem)
11997 5 => False), -- Etype (Node5-Sem)
11999 N_Op_Ne =>
12000 (1 => True, -- Chars (Name1)
12001 2 => True, -- Left_Opnd (Node2)
12002 3 => True, -- Right_Opnd (Node3)
12003 4 => False, -- Entity (Node4-Sem)
12004 5 => False), -- Etype (Node5-Sem)
12006 N_Op_Lt =>
12007 (1 => True, -- Chars (Name1)
12008 2 => True, -- Left_Opnd (Node2)
12009 3 => True, -- Right_Opnd (Node3)
12010 4 => False, -- Entity (Node4-Sem)
12011 5 => False), -- Etype (Node5-Sem)
12013 N_Op_Le =>
12014 (1 => True, -- Chars (Name1)
12015 2 => True, -- Left_Opnd (Node2)
12016 3 => True, -- Right_Opnd (Node3)
12017 4 => False, -- Entity (Node4-Sem)
12018 5 => False), -- Etype (Node5-Sem)
12020 N_Op_Gt =>
12021 (1 => True, -- Chars (Name1)
12022 2 => True, -- Left_Opnd (Node2)
12023 3 => True, -- Right_Opnd (Node3)
12024 4 => False, -- Entity (Node4-Sem)
12025 5 => False), -- Etype (Node5-Sem)
12027 N_Op_Ge =>
12028 (1 => True, -- Chars (Name1)
12029 2 => True, -- Left_Opnd (Node2)
12030 3 => True, -- Right_Opnd (Node3)
12031 4 => False, -- Entity (Node4-Sem)
12032 5 => False), -- Etype (Node5-Sem)
12034 N_Op_Add =>
12035 (1 => True, -- Chars (Name1)
12036 2 => True, -- Left_Opnd (Node2)
12037 3 => True, -- Right_Opnd (Node3)
12038 4 => False, -- Entity (Node4-Sem)
12039 5 => False), -- Etype (Node5-Sem)
12041 N_Op_Subtract =>
12042 (1 => True, -- Chars (Name1)
12043 2 => True, -- Left_Opnd (Node2)
12044 3 => True, -- Right_Opnd (Node3)
12045 4 => False, -- Entity (Node4-Sem)
12046 5 => False), -- Etype (Node5-Sem)
12048 N_Op_Concat =>
12049 (1 => True, -- Chars (Name1)
12050 2 => True, -- Left_Opnd (Node2)
12051 3 => True, -- Right_Opnd (Node3)
12052 4 => False, -- Entity (Node4-Sem)
12053 5 => False), -- Etype (Node5-Sem)
12055 N_Op_Multiply =>
12056 (1 => True, -- Chars (Name1)
12057 2 => True, -- Left_Opnd (Node2)
12058 3 => True, -- Right_Opnd (Node3)
12059 4 => False, -- Entity (Node4-Sem)
12060 5 => False), -- Etype (Node5-Sem)
12062 N_Op_Divide =>
12063 (1 => True, -- Chars (Name1)
12064 2 => True, -- Left_Opnd (Node2)
12065 3 => True, -- Right_Opnd (Node3)
12066 4 => False, -- Entity (Node4-Sem)
12067 5 => False), -- Etype (Node5-Sem)
12069 N_Op_Mod =>
12070 (1 => True, -- Chars (Name1)
12071 2 => True, -- Left_Opnd (Node2)
12072 3 => True, -- Right_Opnd (Node3)
12073 4 => False, -- Entity (Node4-Sem)
12074 5 => False), -- Etype (Node5-Sem)
12076 N_Op_Rem =>
12077 (1 => True, -- Chars (Name1)
12078 2 => True, -- Left_Opnd (Node2)
12079 3 => True, -- Right_Opnd (Node3)
12080 4 => False, -- Entity (Node4-Sem)
12081 5 => False), -- Etype (Node5-Sem)
12083 N_Op_Expon =>
12084 (1 => True, -- Chars (Name1)
12085 2 => True, -- Left_Opnd (Node2)
12086 3 => True, -- Right_Opnd (Node3)
12087 4 => False, -- Entity (Node4-Sem)
12088 5 => False), -- Etype (Node5-Sem)
12090 N_Op_Plus =>
12091 (1 => True, -- Chars (Name1)
12092 2 => False, -- unused
12093 3 => True, -- Right_Opnd (Node3)
12094 4 => False, -- Entity (Node4-Sem)
12095 5 => False), -- Etype (Node5-Sem)
12097 N_Op_Minus =>
12098 (1 => True, -- Chars (Name1)
12099 2 => False, -- unused
12100 3 => True, -- Right_Opnd (Node3)
12101 4 => False, -- Entity (Node4-Sem)
12102 5 => False), -- Etype (Node5-Sem)
12104 N_Op_Abs =>
12105 (1 => True, -- Chars (Name1)
12106 2 => False, -- unused
12107 3 => True, -- Right_Opnd (Node3)
12108 4 => False, -- Entity (Node4-Sem)
12109 5 => False), -- Etype (Node5-Sem)
12111 N_Op_Not =>
12112 (1 => True, -- Chars (Name1)
12113 2 => False, -- unused
12114 3 => True, -- Right_Opnd (Node3)
12115 4 => False, -- Entity (Node4-Sem)
12116 5 => False), -- Etype (Node5-Sem)
12118 N_Type_Conversion =>
12119 (1 => False, -- unused
12120 2 => False, -- unused
12121 3 => True, -- Expression (Node3)
12122 4 => True, -- Subtype_Mark (Node4)
12123 5 => False), -- Etype (Node5-Sem)
12125 N_Qualified_Expression =>
12126 (1 => False, -- unused
12127 2 => False, -- unused
12128 3 => True, -- Expression (Node3)
12129 4 => True, -- Subtype_Mark (Node4)
12130 5 => False), -- Etype (Node5-Sem)
12132 N_Quantified_Expression =>
12133 (1 => True, -- Condition (Node1)
12134 2 => True, -- Iterator_Specification (Node2)
12135 3 => False, -- unused
12136 4 => True, -- Loop_Parameter_Specification (Node4)
12137 5 => False), -- Etype (Node5-Sem)
12139 N_Allocator =>
12140 (1 => False, -- Storage_Pool (Node1-Sem)
12141 2 => False, -- Procedure_To_Call (Node2-Sem)
12142 3 => True, -- Expression (Node3)
12143 4 => True, -- Subpool_Handle_Name (Node4)
12144 5 => False), -- Etype (Node5-Sem)
12146 N_Null_Statement =>
12147 (1 => False, -- unused
12148 2 => False, -- unused
12149 3 => False, -- unused
12150 4 => False, -- unused
12151 5 => False), -- unused
12153 N_Label =>
12154 (1 => True, -- Identifier (Node1)
12155 2 => False, -- unused
12156 3 => False, -- unused
12157 4 => False, -- unused
12158 5 => False), -- unused
12160 N_Assignment_Statement =>
12161 (1 => False, -- unused
12162 2 => True, -- Name (Node2)
12163 3 => True, -- Expression (Node3)
12164 4 => False, -- unused
12165 5 => False), -- unused
12167 N_Target_Name =>
12168 (1 => False, -- unused
12169 2 => False, -- unused
12170 3 => False, -- unused
12171 4 => False, -- unused
12172 5 => False), -- Etype (Node5-Sem)
12174 N_If_Statement =>
12175 (1 => True, -- Condition (Node1)
12176 2 => True, -- Then_Statements (List2)
12177 3 => True, -- Elsif_Parts (List3)
12178 4 => True, -- Else_Statements (List4)
12179 5 => True), -- End_Span (Uint5)
12181 N_Elsif_Part =>
12182 (1 => True, -- Condition (Node1)
12183 2 => True, -- Then_Statements (List2)
12184 3 => False, -- Condition_Actions (List3-Sem)
12185 4 => False, -- unused
12186 5 => False), -- unused
12188 N_Case_Expression =>
12189 (1 => False, -- unused
12190 2 => False, -- unused
12191 3 => True, -- Expression (Node3)
12192 4 => True, -- Alternatives (List4)
12193 5 => False), -- unused
12195 N_Case_Expression_Alternative =>
12196 (1 => False, -- Actions (List1-Sem)
12197 2 => False, -- unused
12198 3 => True, -- Expression (Node3)
12199 4 => True, -- Discrete_Choices (List4)
12200 5 => False), -- unused
12202 N_Case_Statement =>
12203 (1 => False, -- unused
12204 2 => False, -- unused
12205 3 => True, -- Expression (Node3)
12206 4 => True, -- Alternatives (List4)
12207 5 => True), -- End_Span (Uint5)
12209 N_Case_Statement_Alternative =>
12210 (1 => False, -- unused
12211 2 => False, -- unused
12212 3 => True, -- Statements (List3)
12213 4 => True, -- Discrete_Choices (List4)
12214 5 => False), -- unused
12216 N_Loop_Statement =>
12217 (1 => True, -- Identifier (Node1)
12218 2 => True, -- Iteration_Scheme (Node2)
12219 3 => True, -- Statements (List3)
12220 4 => True, -- End_Label (Node4)
12221 5 => False), -- unused
12223 N_Iteration_Scheme =>
12224 (1 => True, -- Condition (Node1)
12225 2 => True, -- Iterator_Specification (Node2)
12226 3 => False, -- Condition_Actions (List3-Sem)
12227 4 => True, -- Loop_Parameter_Specification (Node4)
12228 5 => False), -- unused
12230 N_Loop_Parameter_Specification =>
12231 (1 => True, -- Defining_Identifier (Node1)
12232 2 => False, -- unused
12233 3 => False, -- unused
12234 4 => True, -- Discrete_Subtype_Definition (Node4)
12235 5 => False), -- unused
12237 N_Iterator_Specification =>
12238 (1 => True, -- Defining_Identifier (Node1)
12239 2 => True, -- Name (Node2)
12240 3 => False, -- Unused
12241 4 => False, -- Unused
12242 5 => True), -- Subtype_Indication (Node5)
12244 N_Block_Statement =>
12245 (1 => True, -- Identifier (Node1)
12246 2 => True, -- Declarations (List2)
12247 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12248 4 => True, -- Handled_Statement_Sequence (Node4)
12249 5 => False), -- unused
12251 N_Exit_Statement =>
12252 (1 => True, -- Condition (Node1)
12253 2 => True, -- Name (Node2)
12254 3 => False, -- unused
12255 4 => False, -- unused
12256 5 => False), -- unused
12258 N_Goto_Statement =>
12259 (1 => False, -- unused
12260 2 => True, -- Name (Node2)
12261 3 => False, -- unused
12262 4 => False, -- unused
12263 5 => False), -- unused
12265 N_Subprogram_Declaration =>
12266 (1 => True, -- Specification (Node1)
12267 2 => False, -- unused
12268 3 => False, -- Body_To_Inline (Node3-Sem)
12269 4 => False, -- Parent_Spec (Node4-Sem)
12270 5 => False), -- Corresponding_Body (Node5-Sem)
12272 N_Abstract_Subprogram_Declaration =>
12273 (1 => True, -- Specification (Node1)
12274 2 => False, -- unused
12275 3 => False, -- unused
12276 4 => False, -- unused
12277 5 => False), -- unused
12279 N_Function_Specification =>
12280 (1 => True, -- Defining_Unit_Name (Node1)
12281 2 => False, -- unused
12282 3 => True, -- Parameter_Specifications (List3)
12283 4 => True, -- Result_Definition (Node4)
12284 5 => False), -- Generic_Parent (Node5-Sem)
12286 N_Procedure_Specification =>
12287 (1 => True, -- Defining_Unit_Name (Node1)
12288 2 => False, -- Null_Statement (Node2-Sem)
12289 3 => True, -- Parameter_Specifications (List3)
12290 4 => False, -- unused
12291 5 => False), -- Generic_Parent (Node5-Sem)
12293 N_Designator =>
12294 (1 => True, -- Identifier (Node1)
12295 2 => True, -- Name (Node2)
12296 3 => False, -- unused
12297 4 => False, -- unused
12298 5 => False), -- unused
12300 N_Defining_Program_Unit_Name =>
12301 (1 => True, -- Defining_Identifier (Node1)
12302 2 => True, -- Name (Node2)
12303 3 => False, -- unused
12304 4 => False, -- unused
12305 5 => False), -- unused
12307 N_Operator_Symbol =>
12308 (1 => True, -- Chars (Name1)
12309 2 => False, -- unused
12310 3 => True, -- Strval (Str3)
12311 4 => False, -- Entity (Node4-Sem)
12312 5 => False), -- Etype (Node5-Sem)
12314 N_Defining_Operator_Symbol =>
12315 (1 => True, -- Chars (Name1)
12316 2 => False, -- Next_Entity (Node2-Sem)
12317 3 => False, -- Scope (Node3-Sem)
12318 4 => False, -- unused
12319 5 => False), -- Etype (Node5-Sem)
12321 N_Parameter_Specification =>
12322 (1 => True, -- Defining_Identifier (Node1)
12323 2 => True, -- Parameter_Type (Node2)
12324 3 => True, -- Expression (Node3)
12325 4 => False, -- unused
12326 5 => False), -- Default_Expression (Node5-Sem)
12328 N_Subprogram_Body =>
12329 (1 => True, -- Specification (Node1)
12330 2 => True, -- Declarations (List2)
12331 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12332 4 => True, -- Handled_Statement_Sequence (Node4)
12333 5 => False), -- Corresponding_Spec (Node5-Sem)
12335 N_Expression_Function =>
12336 (1 => True, -- Specification (Node1)
12337 2 => False, -- unused
12338 3 => True, -- Expression (Node3)
12339 4 => False, -- unused
12340 5 => False), -- unused
12342 N_Procedure_Call_Statement =>
12343 (1 => False, -- Controlling_Argument (Node1-Sem)
12344 2 => True, -- Name (Node2)
12345 3 => True, -- Parameter_Associations (List3)
12346 4 => False, -- First_Named_Actual (Node4-Sem)
12347 5 => False), -- Etype (Node5-Sem)
12349 N_Function_Call =>
12350 (1 => False, -- Controlling_Argument (Node1-Sem)
12351 2 => True, -- Name (Node2)
12352 3 => True, -- Parameter_Associations (List3)
12353 4 => False, -- First_Named_Actual (Node4-Sem)
12354 5 => False), -- Etype (Node5-Sem)
12356 N_Parameter_Association =>
12357 (1 => False, -- unused
12358 2 => True, -- Selector_Name (Node2)
12359 3 => True, -- Explicit_Actual_Parameter (Node3)
12360 4 => False, -- Next_Named_Actual (Node4-Sem)
12361 5 => False), -- unused
12363 N_Simple_Return_Statement =>
12364 (1 => False, -- Storage_Pool (Node1-Sem)
12365 2 => False, -- Procedure_To_Call (Node2-Sem)
12366 3 => True, -- Expression (Node3)
12367 4 => False, -- unused
12368 5 => False), -- Return_Statement_Entity (Node5-Sem)
12370 N_Extended_Return_Statement =>
12371 (1 => False, -- Storage_Pool (Node1-Sem)
12372 2 => False, -- Procedure_To_Call (Node2-Sem)
12373 3 => True, -- Return_Object_Declarations (List3)
12374 4 => True, -- Handled_Statement_Sequence (Node4)
12375 5 => False), -- Return_Statement_Entity (Node5-Sem)
12377 N_Package_Declaration =>
12378 (1 => True, -- Specification (Node1)
12379 2 => False, -- unused
12380 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12381 4 => False, -- Parent_Spec (Node4-Sem)
12382 5 => False), -- Corresponding_Body (Node5-Sem)
12384 N_Package_Specification =>
12385 (1 => True, -- Defining_Unit_Name (Node1)
12386 2 => True, -- Visible_Declarations (List2)
12387 3 => True, -- Private_Declarations (List3)
12388 4 => True, -- End_Label (Node4)
12389 5 => False), -- Generic_Parent (Node5-Sem)
12391 N_Package_Body =>
12392 (1 => True, -- Defining_Unit_Name (Node1)
12393 2 => True, -- Declarations (List2)
12394 3 => False, -- unused
12395 4 => True, -- Handled_Statement_Sequence (Node4)
12396 5 => False), -- Corresponding_Spec (Node5-Sem)
12398 N_Private_Type_Declaration =>
12399 (1 => True, -- Defining_Identifier (Node1)
12400 2 => False, -- unused
12401 3 => False, -- unused
12402 4 => True, -- Discriminant_Specifications (List4)
12403 5 => False), -- unused
12405 N_Private_Extension_Declaration =>
12406 (1 => True, -- Defining_Identifier (Node1)
12407 2 => True, -- Interface_List (List2)
12408 3 => False, -- unused
12409 4 => True, -- Discriminant_Specifications (List4)
12410 5 => True), -- Subtype_Indication (Node5)
12412 N_Use_Package_Clause =>
12413 (1 => False, -- Prev_Use_Clause (Node1-Sem)
12414 2 => True, -- Name (Node2)
12415 3 => False, -- Next_Use_Clause (Node3-Sem)
12416 4 => False, -- Associated_Node (Node4-Sem)
12417 5 => False), -- Hidden_By_Use_Clause (Elist5-Sem)
12419 N_Use_Type_Clause =>
12420 (1 => False, -- Prev_Use_Clause (Node1-Sem)
12421 2 => False, -- Used_Operations (Elist2-Sem)
12422 3 => False, -- Next_Use_Clause (Node3-Sem)
12423 4 => True, -- Subtype_Mark (Node4)
12424 5 => False), -- Hidden_By_Use_Clause (Elist5-Sem)
12426 N_Object_Renaming_Declaration =>
12427 (1 => True, -- Defining_Identifier (Node1)
12428 2 => True, -- Name (Node2)
12429 3 => True, -- Access_Definition (Node3)
12430 4 => True, -- Subtype_Mark (Node4)
12431 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
12433 N_Exception_Renaming_Declaration =>
12434 (1 => True, -- Defining_Identifier (Node1)
12435 2 => True, -- Name (Node2)
12436 3 => False, -- unused
12437 4 => False, -- unused
12438 5 => False), -- unused
12440 N_Package_Renaming_Declaration =>
12441 (1 => True, -- Defining_Unit_Name (Node1)
12442 2 => True, -- Name (Node2)
12443 3 => False, -- unused
12444 4 => False, -- Parent_Spec (Node4-Sem)
12445 5 => False), -- unused
12447 N_Subprogram_Renaming_Declaration =>
12448 (1 => True, -- Specification (Node1)
12449 2 => True, -- Name (Node2)
12450 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
12451 4 => False, -- Parent_Spec (Node4-Sem)
12452 5 => False), -- Corresponding_Spec (Node5-Sem)
12454 N_Generic_Package_Renaming_Declaration =>
12455 (1 => True, -- Defining_Unit_Name (Node1)
12456 2 => True, -- Name (Node2)
12457 3 => False, -- unused
12458 4 => False, -- Parent_Spec (Node4-Sem)
12459 5 => False), -- unused
12461 N_Generic_Procedure_Renaming_Declaration =>
12462 (1 => True, -- Defining_Unit_Name (Node1)
12463 2 => True, -- Name (Node2)
12464 3 => False, -- unused
12465 4 => False, -- Parent_Spec (Node4-Sem)
12466 5 => False), -- unused
12468 N_Generic_Function_Renaming_Declaration =>
12469 (1 => True, -- Defining_Unit_Name (Node1)
12470 2 => True, -- Name (Node2)
12471 3 => False, -- unused
12472 4 => False, -- Parent_Spec (Node4-Sem)
12473 5 => False), -- unused
12475 N_Task_Type_Declaration =>
12476 (1 => True, -- Defining_Identifier (Node1)
12477 2 => True, -- Interface_List (List2)
12478 3 => True, -- Task_Definition (Node3)
12479 4 => True, -- Discriminant_Specifications (List4)
12480 5 => False), -- Corresponding_Body (Node5-Sem)
12482 N_Single_Task_Declaration =>
12483 (1 => True, -- Defining_Identifier (Node1)
12484 2 => True, -- Interface_List (List2)
12485 3 => True, -- Task_Definition (Node3)
12486 4 => False, -- unused
12487 5 => False), -- unused
12489 N_Task_Definition =>
12490 (1 => False, -- unused
12491 2 => True, -- Visible_Declarations (List2)
12492 3 => True, -- Private_Declarations (List3)
12493 4 => True, -- End_Label (Node4)
12494 5 => False), -- unused
12496 N_Task_Body =>
12497 (1 => True, -- Defining_Identifier (Node1)
12498 2 => True, -- Declarations (List2)
12499 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12500 4 => True, -- Handled_Statement_Sequence (Node4)
12501 5 => False), -- Corresponding_Spec (Node5-Sem)
12503 N_Protected_Type_Declaration =>
12504 (1 => True, -- Defining_Identifier (Node1)
12505 2 => True, -- Interface_List (List2)
12506 3 => True, -- Protected_Definition (Node3)
12507 4 => True, -- Discriminant_Specifications (List4)
12508 5 => False), -- Corresponding_Body (Node5-Sem)
12510 N_Single_Protected_Declaration =>
12511 (1 => True, -- Defining_Identifier (Node1)
12512 2 => True, -- Interface_List (List2)
12513 3 => True, -- Protected_Definition (Node3)
12514 4 => False, -- unused
12515 5 => False), -- unused
12517 N_Protected_Definition =>
12518 (1 => False, -- unused
12519 2 => True, -- Visible_Declarations (List2)
12520 3 => True, -- Private_Declarations (List3)
12521 4 => True, -- End_Label (Node4)
12522 5 => False), -- unused
12524 N_Protected_Body =>
12525 (1 => True, -- Defining_Identifier (Node1)
12526 2 => True, -- Declarations (List2)
12527 3 => False, -- unused
12528 4 => True, -- End_Label (Node4)
12529 5 => False), -- Corresponding_Spec (Node5-Sem)
12531 N_Entry_Declaration =>
12532 (1 => True, -- Defining_Identifier (Node1)
12533 2 => False, -- unused
12534 3 => True, -- Parameter_Specifications (List3)
12535 4 => True, -- Discrete_Subtype_Definition (Node4)
12536 5 => False), -- Corresponding_Body (Node5-Sem)
12538 N_Accept_Statement =>
12539 (1 => True, -- Entry_Direct_Name (Node1)
12540 2 => True, -- Declarations (List2)
12541 3 => True, -- Parameter_Specifications (List3)
12542 4 => True, -- Handled_Statement_Sequence (Node4)
12543 5 => True), -- Entry_Index (Node5)
12545 N_Entry_Body =>
12546 (1 => True, -- Defining_Identifier (Node1)
12547 2 => True, -- Declarations (List2)
12548 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12549 4 => True, -- Handled_Statement_Sequence (Node4)
12550 5 => True), -- Entry_Body_Formal_Part (Node5)
12552 N_Entry_Body_Formal_Part =>
12553 (1 => True, -- Condition (Node1)
12554 2 => False, -- unused
12555 3 => True, -- Parameter_Specifications (List3)
12556 4 => True, -- Entry_Index_Specification (Node4)
12557 5 => False), -- unused
12559 N_Entry_Index_Specification =>
12560 (1 => True, -- Defining_Identifier (Node1)
12561 2 => False, -- unused
12562 3 => False, -- unused
12563 4 => True, -- Discrete_Subtype_Definition (Node4)
12564 5 => False), -- unused
12566 N_Entry_Call_Statement =>
12567 (1 => False, -- unused
12568 2 => True, -- Name (Node2)
12569 3 => True, -- Parameter_Associations (List3)
12570 4 => False, -- First_Named_Actual (Node4-Sem)
12571 5 => False), -- unused
12573 N_Requeue_Statement =>
12574 (1 => False, -- unused
12575 2 => True, -- Name (Node2)
12576 3 => False, -- unused
12577 4 => False, -- unused
12578 5 => False), -- unused
12580 N_Delay_Until_Statement =>
12581 (1 => False, -- unused
12582 2 => False, -- unused
12583 3 => True, -- Expression (Node3)
12584 4 => False, -- unused
12585 5 => False), -- unused
12587 N_Delay_Relative_Statement =>
12588 (1 => False, -- unused
12589 2 => False, -- unused
12590 3 => True, -- Expression (Node3)
12591 4 => False, -- unused
12592 5 => False), -- unused
12594 N_Selective_Accept =>
12595 (1 => True, -- Select_Alternatives (List1)
12596 2 => False, -- unused
12597 3 => False, -- unused
12598 4 => True, -- Else_Statements (List4)
12599 5 => False), -- unused
12601 N_Accept_Alternative =>
12602 (1 => True, -- Condition (Node1)
12603 2 => True, -- Accept_Statement (Node2)
12604 3 => True, -- Statements (List3)
12605 4 => True, -- Pragmas_Before (List4)
12606 5 => False), -- Accept_Handler_Records (List5-Sem)
12608 N_Delay_Alternative =>
12609 (1 => True, -- Condition (Node1)
12610 2 => True, -- Delay_Statement (Node2)
12611 3 => True, -- Statements (List3)
12612 4 => True, -- Pragmas_Before (List4)
12613 5 => False), -- unused
12615 N_Terminate_Alternative =>
12616 (1 => True, -- Condition (Node1)
12617 2 => False, -- unused
12618 3 => False, -- unused
12619 4 => True, -- Pragmas_Before (List4)
12620 5 => True), -- Pragmas_After (List5)
12622 N_Timed_Entry_Call =>
12623 (1 => True, -- Entry_Call_Alternative (Node1)
12624 2 => False, -- unused
12625 3 => False, -- unused
12626 4 => True, -- Delay_Alternative (Node4)
12627 5 => False), -- unused
12629 N_Entry_Call_Alternative =>
12630 (1 => True, -- Entry_Call_Statement (Node1)
12631 2 => False, -- unused
12632 3 => True, -- Statements (List3)
12633 4 => True, -- Pragmas_Before (List4)
12634 5 => False), -- unused
12636 N_Conditional_Entry_Call =>
12637 (1 => True, -- Entry_Call_Alternative (Node1)
12638 2 => False, -- unused
12639 3 => False, -- unused
12640 4 => True, -- Else_Statements (List4)
12641 5 => False), -- unused
12643 N_Asynchronous_Select =>
12644 (1 => True, -- Triggering_Alternative (Node1)
12645 2 => True, -- Abortable_Part (Node2)
12646 3 => False, -- unused
12647 4 => False, -- unused
12648 5 => False), -- unused
12650 N_Triggering_Alternative =>
12651 (1 => True, -- Triggering_Statement (Node1)
12652 2 => False, -- unused
12653 3 => True, -- Statements (List3)
12654 4 => True, -- Pragmas_Before (List4)
12655 5 => False), -- unused
12657 N_Abortable_Part =>
12658 (1 => False, -- unused
12659 2 => False, -- unused
12660 3 => True, -- Statements (List3)
12661 4 => False, -- unused
12662 5 => False), -- unused
12664 N_Abort_Statement =>
12665 (1 => False, -- unused
12666 2 => True, -- Names (List2)
12667 3 => False, -- unused
12668 4 => False, -- unused
12669 5 => False), -- unused
12671 N_Compilation_Unit =>
12672 (1 => True, -- Context_Items (List1)
12673 2 => True, -- Unit (Node2)
12674 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
12675 4 => False, -- Library_Unit (Node4-Sem)
12676 5 => True), -- Aux_Decls_Node (Node5)
12678 N_Compilation_Unit_Aux =>
12679 (1 => True, -- Actions (List1)
12680 2 => True, -- Declarations (List2)
12681 3 => False, -- Default_Storage_Pool (Node3)
12682 4 => True, -- Config_Pragmas (List4)
12683 5 => True), -- Pragmas_After (List5)
12685 N_With_Clause =>
12686 (1 => False, -- unused
12687 2 => True, -- Name (Node2)
12688 3 => False, -- unused
12689 4 => False, -- Library_Unit (Node4-Sem)
12690 5 => False), -- Corresponding_Spec (Node5-Sem)
12692 N_Subprogram_Body_Stub =>
12693 (1 => True, -- Specification (Node1)
12694 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12695 3 => False, -- unused
12696 4 => False, -- Library_Unit (Node4-Sem)
12697 5 => False), -- Corresponding_Body (Node5-Sem)
12699 N_Package_Body_Stub =>
12700 (1 => True, -- Defining_Identifier (Node1)
12701 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12702 3 => False, -- unused
12703 4 => False, -- Library_Unit (Node4-Sem)
12704 5 => False), -- Corresponding_Body (Node5-Sem)
12706 N_Task_Body_Stub =>
12707 (1 => True, -- Defining_Identifier (Node1)
12708 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12709 3 => False, -- unused
12710 4 => False, -- Library_Unit (Node4-Sem)
12711 5 => False), -- Corresponding_Body (Node5-Sem)
12713 N_Protected_Body_Stub =>
12714 (1 => True, -- Defining_Identifier (Node1)
12715 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12716 3 => False, -- unused
12717 4 => False, -- Library_Unit (Node4-Sem)
12718 5 => False), -- Corresponding_Body (Node5-Sem)
12720 N_Subunit =>
12721 (1 => True, -- Proper_Body (Node1)
12722 2 => True, -- Name (Node2)
12723 3 => False, -- Corresponding_Stub (Node3-Sem)
12724 4 => False, -- unused
12725 5 => False), -- unused
12727 N_Exception_Declaration =>
12728 (1 => True, -- Defining_Identifier (Node1)
12729 2 => False, -- unused
12730 3 => False, -- Expression (Node3-Sem)
12731 4 => False, -- unused
12732 5 => False), -- unused
12734 N_Handled_Sequence_Of_Statements =>
12735 (1 => True, -- At_End_Proc (Node1)
12736 2 => False, -- First_Real_Statement (Node2-Sem)
12737 3 => True, -- Statements (List3)
12738 4 => True, -- End_Label (Node4)
12739 5 => True), -- Exception_Handlers (List5)
12741 N_Exception_Handler =>
12742 (1 => False, -- Local_Raise_Statements (Elist1)
12743 2 => True, -- Choice_Parameter (Node2)
12744 3 => True, -- Statements (List3)
12745 4 => True, -- Exception_Choices (List4)
12746 5 => False), -- Exception_Label (Node5)
12748 N_Raise_Statement =>
12749 (1 => False, -- unused
12750 2 => True, -- Name (Node2)
12751 3 => True, -- Expression (Node3)
12752 4 => False, -- unused
12753 5 => False), -- unused
12755 N_Raise_Expression =>
12756 (1 => False, -- unused
12757 2 => True, -- Name (Node2)
12758 3 => True, -- Expression (Node3)
12759 4 => False, -- unused
12760 5 => False), -- Etype (Node5-Sem)
12762 N_Generic_Subprogram_Declaration =>
12763 (1 => True, -- Specification (Node1)
12764 2 => True, -- Generic_Formal_Declarations (List2)
12765 3 => False, -- unused
12766 4 => False, -- Parent_Spec (Node4-Sem)
12767 5 => False), -- Corresponding_Body (Node5-Sem)
12769 N_Generic_Package_Declaration =>
12770 (1 => True, -- Specification (Node1)
12771 2 => True, -- Generic_Formal_Declarations (List2)
12772 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12773 4 => False, -- Parent_Spec (Node4-Sem)
12774 5 => False), -- Corresponding_Body (Node5-Sem)
12776 N_Package_Instantiation =>
12777 (1 => True, -- Defining_Unit_Name (Node1)
12778 2 => True, -- Name (Node2)
12779 3 => True, -- Generic_Associations (List3)
12780 4 => False, -- Parent_Spec (Node4-Sem)
12781 5 => False), -- Instance_Spec (Node5-Sem)
12783 N_Procedure_Instantiation =>
12784 (1 => True, -- Defining_Unit_Name (Node1)
12785 2 => True, -- Name (Node2)
12786 3 => True, -- Generic_Associations (List3)
12787 4 => False, -- Parent_Spec (Node4-Sem)
12788 5 => False), -- Instance_Spec (Node5-Sem)
12790 N_Function_Instantiation =>
12791 (1 => True, -- Defining_Unit_Name (Node1)
12792 2 => True, -- Name (Node2)
12793 3 => True, -- Generic_Associations (List3)
12794 4 => False, -- Parent_Spec (Node4-Sem)
12795 5 => False), -- Instance_Spec (Node5-Sem)
12797 N_Generic_Association =>
12798 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
12799 2 => True, -- Selector_Name (Node2)
12800 3 => False, -- unused
12801 4 => False, -- unused
12802 5 => False), -- unused
12804 N_Formal_Object_Declaration =>
12805 (1 => True, -- Defining_Identifier (Node1)
12806 2 => False, -- unused
12807 3 => True, -- Access_Definition (Node3)
12808 4 => True, -- Subtype_Mark (Node4)
12809 5 => True), -- Default_Expression (Node5)
12811 N_Formal_Type_Declaration =>
12812 (1 => True, -- Defining_Identifier (Node1)
12813 2 => False, -- unused
12814 3 => True, -- Formal_Type_Definition (Node3)
12815 4 => True, -- Discriminant_Specifications (List4)
12816 5 => False), -- unused
12818 N_Formal_Private_Type_Definition =>
12819 (1 => False, -- unused
12820 2 => False, -- unused
12821 3 => False, -- unused
12822 4 => False, -- unused
12823 5 => False), -- unused
12825 N_Formal_Incomplete_Type_Definition =>
12826 (1 => False, -- unused
12827 2 => False, -- unused
12828 3 => False, -- unused
12829 4 => False, -- unused
12830 5 => False), -- unused
12832 N_Formal_Derived_Type_Definition =>
12833 (1 => False, -- unused
12834 2 => True, -- Interface_List (List2)
12835 3 => False, -- unused
12836 4 => True, -- Subtype_Mark (Node4)
12837 5 => False), -- unused
12839 N_Formal_Discrete_Type_Definition =>
12840 (1 => False, -- unused
12841 2 => False, -- unused
12842 3 => False, -- unused
12843 4 => False, -- unused
12844 5 => False), -- unused
12846 N_Formal_Signed_Integer_Type_Definition =>
12847 (1 => False, -- unused
12848 2 => False, -- unused
12849 3 => False, -- unused
12850 4 => False, -- unused
12851 5 => False), -- unused
12853 N_Formal_Modular_Type_Definition =>
12854 (1 => False, -- unused
12855 2 => False, -- unused
12856 3 => False, -- unused
12857 4 => False, -- unused
12858 5 => False), -- unused
12860 N_Formal_Floating_Point_Definition =>
12861 (1 => False, -- unused
12862 2 => False, -- unused
12863 3 => False, -- unused
12864 4 => False, -- unused
12865 5 => False), -- unused
12867 N_Formal_Ordinary_Fixed_Point_Definition =>
12868 (1 => False, -- unused
12869 2 => False, -- unused
12870 3 => False, -- unused
12871 4 => False, -- unused
12872 5 => False), -- unused
12874 N_Formal_Decimal_Fixed_Point_Definition =>
12875 (1 => False, -- unused
12876 2 => False, -- unused
12877 3 => False, -- unused
12878 4 => False, -- unused
12879 5 => False), -- unused
12881 N_Formal_Concrete_Subprogram_Declaration =>
12882 (1 => True, -- Specification (Node1)
12883 2 => True, -- Default_Name (Node2)
12884 3 => False, -- unused
12885 4 => False, -- unused
12886 5 => False), -- unused
12888 N_Formal_Abstract_Subprogram_Declaration =>
12889 (1 => True, -- Specification (Node1)
12890 2 => True, -- Default_Name (Node2)
12891 3 => False, -- unused
12892 4 => False, -- unused
12893 5 => False), -- unused
12895 N_Formal_Package_Declaration =>
12896 (1 => True, -- Defining_Identifier (Node1)
12897 2 => True, -- Name (Node2)
12898 3 => True, -- Generic_Associations (List3)
12899 4 => False, -- unused
12900 5 => False), -- Instance_Spec (Node5-Sem)
12902 N_Attribute_Definition_Clause =>
12903 (1 => True, -- Chars (Name1)
12904 2 => True, -- Name (Node2)
12905 3 => True, -- Expression (Node3)
12906 4 => False, -- unused
12907 5 => False), -- Next_Rep_Item (Node5-Sem)
12909 N_Aspect_Specification =>
12910 (1 => True, -- Identifier (Node1)
12911 2 => False, -- Aspect_Rep_Item (Node2-Sem)
12912 3 => True, -- Expression (Node3)
12913 4 => False, -- Entity (Node4-Sem)
12914 5 => False), -- Next_Rep_Item (Node5-Sem)
12916 N_Enumeration_Representation_Clause =>
12917 (1 => True, -- Identifier (Node1)
12918 2 => False, -- unused
12919 3 => True, -- Array_Aggregate (Node3)
12920 4 => False, -- unused
12921 5 => False), -- Next_Rep_Item (Node5-Sem)
12923 N_Record_Representation_Clause =>
12924 (1 => True, -- Identifier (Node1)
12925 2 => True, -- Mod_Clause (Node2)
12926 3 => True, -- Component_Clauses (List3)
12927 4 => False, -- unused
12928 5 => False), -- Next_Rep_Item (Node5-Sem)
12930 N_Component_Clause =>
12931 (1 => True, -- Component_Name (Node1)
12932 2 => True, -- Position (Node2)
12933 3 => True, -- First_Bit (Node3)
12934 4 => True, -- Last_Bit (Node4)
12935 5 => False), -- unused
12937 N_Code_Statement =>
12938 (1 => False, -- unused
12939 2 => False, -- unused
12940 3 => True, -- Expression (Node3)
12941 4 => False, -- unused
12942 5 => False), -- unused
12944 N_Op_Rotate_Left =>
12945 (1 => True, -- Chars (Name1)
12946 2 => True, -- Left_Opnd (Node2)
12947 3 => True, -- Right_Opnd (Node3)
12948 4 => False, -- Entity (Node4-Sem)
12949 5 => False), -- Etype (Node5-Sem)
12951 N_Op_Rotate_Right =>
12952 (1 => True, -- Chars (Name1)
12953 2 => True, -- Left_Opnd (Node2)
12954 3 => True, -- Right_Opnd (Node3)
12955 4 => False, -- Entity (Node4-Sem)
12956 5 => False), -- Etype (Node5-Sem)
12958 N_Op_Shift_Left =>
12959 (1 => True, -- Chars (Name1)
12960 2 => True, -- Left_Opnd (Node2)
12961 3 => True, -- Right_Opnd (Node3)
12962 4 => False, -- Entity (Node4-Sem)
12963 5 => False), -- Etype (Node5-Sem)
12965 N_Op_Shift_Right_Arithmetic =>
12966 (1 => True, -- Chars (Name1)
12967 2 => True, -- Left_Opnd (Node2)
12968 3 => True, -- Right_Opnd (Node3)
12969 4 => False, -- Entity (Node4-Sem)
12970 5 => False), -- Etype (Node5-Sem)
12972 N_Op_Shift_Right =>
12973 (1 => True, -- Chars (Name1)
12974 2 => True, -- Left_Opnd (Node2)
12975 3 => True, -- Right_Opnd (Node3)
12976 4 => False, -- Entity (Node4-Sem)
12977 5 => False), -- Etype (Node5-Sem)
12979 N_Delta_Constraint =>
12980 (1 => False, -- unused
12981 2 => False, -- unused
12982 3 => True, -- Delta_Expression (Node3)
12983 4 => True, -- Range_Constraint (Node4)
12984 5 => False), -- unused
12986 N_At_Clause =>
12987 (1 => True, -- Identifier (Node1)
12988 2 => False, -- unused
12989 3 => True, -- Expression (Node3)
12990 4 => False, -- unused
12991 5 => False), -- unused
12993 N_Mod_Clause =>
12994 (1 => False, -- unused
12995 2 => False, -- unused
12996 3 => True, -- Expression (Node3)
12997 4 => True, -- Pragmas_Before (List4)
12998 5 => False), -- unused
13000 N_If_Expression =>
13001 (1 => True, -- Expressions (List1)
13002 2 => False, -- Then_Actions (List2-Sem)
13003 3 => False, -- Else_Actions (List3-Sem)
13004 4 => False, -- unused
13005 5 => False), -- Etype (Node5-Sem)
13007 N_Compound_Statement =>
13008 (1 => True, -- Actions (List1)
13009 2 => False, -- unused
13010 3 => False, -- unused
13011 4 => False, -- unused
13012 5 => False), -- unused
13014 N_Contract =>
13015 (1 => False, -- Pre_Post_Conditions (Node1-Sem)
13016 2 => False, -- Contract_Test_Cases (Node2-Sem)
13017 3 => False, -- Classifications (Node3-Sem)
13018 4 => False, -- unused
13019 5 => False), -- unused
13021 N_Expanded_Name =>
13022 (1 => True, -- Chars (Name1)
13023 2 => True, -- Selector_Name (Node2)
13024 3 => True, -- Prefix (Node3)
13025 4 => False, -- Entity (Node4-Sem)
13026 5 => False), -- Etype (Node5-Sem)
13028 N_Expression_With_Actions =>
13029 (1 => True, -- Actions (List1)
13030 2 => False, -- unused
13031 3 => True, -- Expression (Node3)
13032 4 => False, -- unused
13033 5 => False), -- unused
13035 N_Free_Statement =>
13036 (1 => False, -- Storage_Pool (Node1-Sem)
13037 2 => False, -- Procedure_To_Call (Node2-Sem)
13038 3 => True, -- Expression (Node3)
13039 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
13040 5 => False), -- unused
13042 N_Freeze_Entity =>
13043 (1 => True, -- Actions (List1)
13044 2 => False, -- Access_Types_To_Process (Elist2-Sem)
13045 3 => False, -- TSS_Elist (Elist3-Sem)
13046 4 => False, -- Entity (Node4-Sem)
13047 5 => False), -- First_Subtype_Link (Node5-Sem)
13049 N_Freeze_Generic_Entity =>
13050 (1 => False, -- unused
13051 2 => False, -- unused
13052 3 => False, -- unused
13053 4 => False, -- Entity (Node4-Sem)
13054 5 => False), -- unused
13056 N_Implicit_Label_Declaration =>
13057 (1 => True, -- Defining_Identifier (Node1)
13058 2 => False, -- Label_Construct (Node2-Sem)
13059 3 => False, -- unused
13060 4 => False, -- unused
13061 5 => False), -- unused
13063 N_Itype_Reference =>
13064 (1 => False, -- Itype (Node1-Sem)
13065 2 => False, -- unused
13066 3 => False, -- unused
13067 4 => False, -- unused
13068 5 => False), -- unused
13070 N_Raise_Constraint_Error =>
13071 (1 => True, -- Condition (Node1)
13072 2 => False, -- unused
13073 3 => True, -- Reason (Uint3)
13074 4 => False, -- unused
13075 5 => False), -- Etype (Node5-Sem)
13077 N_Raise_Program_Error =>
13078 (1 => True, -- Condition (Node1)
13079 2 => False, -- unused
13080 3 => True, -- Reason (Uint3)
13081 4 => False, -- unused
13082 5 => False), -- Etype (Node5-Sem)
13084 N_Raise_Storage_Error =>
13085 (1 => True, -- Condition (Node1)
13086 2 => False, -- unused
13087 3 => True, -- Reason (Uint3)
13088 4 => False, -- unused
13089 5 => False), -- Etype (Node5-Sem)
13091 N_Push_Constraint_Error_Label =>
13092 (1 => False, -- unused
13093 2 => False, -- unused
13094 3 => False, -- unused
13095 4 => False, -- unused
13096 5 => False), -- unused
13098 N_Push_Program_Error_Label =>
13099 (1 => False, -- unused
13100 2 => False, -- unused
13101 3 => False, -- unused
13102 4 => False, -- unused
13103 5 => False), -- Exception_Label
13105 N_Push_Storage_Error_Label =>
13106 (1 => False, -- unused
13107 2 => False, -- unused
13108 3 => False, -- unused
13109 4 => False, -- unused
13110 5 => False), -- Exception_Label
13112 N_Pop_Constraint_Error_Label =>
13113 (1 => False, -- unused
13114 2 => False, -- unused
13115 3 => False, -- unused
13116 4 => False, -- unused
13117 5 => False), -- unused
13119 N_Pop_Program_Error_Label =>
13120 (1 => False, -- unused
13121 2 => False, -- unused
13122 3 => False, -- unused
13123 4 => False, -- unused
13124 5 => False), -- unused
13126 N_Pop_Storage_Error_Label =>
13127 (1 => False, -- unused
13128 2 => False, -- unused
13129 3 => False, -- unused
13130 4 => False, -- unused
13131 5 => False), -- unused
13133 N_Reference =>
13134 (1 => False, -- unused
13135 2 => False, -- unused
13136 3 => True, -- Prefix (Node3)
13137 4 => False, -- unused
13138 5 => False), -- Etype (Node5-Sem)
13140 N_Unchecked_Expression =>
13141 (1 => False, -- unused
13142 2 => False, -- unused
13143 3 => True, -- Expression (Node3)
13144 4 => False, -- unused
13145 5 => False), -- Etype (Node5-Sem)
13147 N_Unchecked_Type_Conversion =>
13148 (1 => False, -- unused
13149 2 => False, -- unused
13150 3 => True, -- Expression (Node3)
13151 4 => True, -- Subtype_Mark (Node4)
13152 5 => False), -- Etype (Node5-Sem)
13154 N_Validate_Unchecked_Conversion =>
13155 (1 => False, -- Source_Type (Node1-Sem)
13156 2 => False, -- Target_Type (Node2-Sem)
13157 3 => False, -- unused
13158 4 => False, -- unused
13159 5 => False), -- unused
13161 -- Entries for SCIL nodes
13163 N_SCIL_Dispatch_Table_Tag_Init =>
13164 (1 => False, -- unused
13165 2 => False, -- unused
13166 3 => False, -- unused
13167 4 => False, -- SCIL_Entity (Node4-Sem)
13168 5 => False), -- unused
13170 N_SCIL_Dispatching_Call =>
13171 (1 => False, -- unused
13172 2 => False, -- SCIL_Target_Prim (Node2-Sem)
13173 3 => False, -- unused
13174 4 => False, -- SCIL_Entity (Node4-Sem)
13175 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
13177 N_SCIL_Membership_Test =>
13178 (1 => False, -- unused
13179 2 => False, -- unused
13180 3 => False, -- unused
13181 4 => False, -- SCIL_Entity (Node4-Sem)
13182 5 => False), -- SCIL_Tag_Value (Node5-Sem)
13184 N_Call_Marker =>
13185 (1 => False, -- Target (Node1-Sem)
13186 2 => False, -- unused
13187 3 => False, -- unused
13188 4 => False, -- unused
13189 5 => False), -- unused
13191 N_Variable_Reference_Marker =>
13192 (1 => False, -- Target (Node1-Sem)
13193 2 => False, -- unused
13194 3 => False, -- unused
13195 4 => False, -- unused
13196 5 => False), -- unused
13198 -- Entries for Empty, Error, and Unused. Even though these have a Chars
13199 -- field for debugging purposes, they are not really syntactic fields, so
13200 -- we mark all fields as unused.
13202 N_Empty =>
13203 (1 => False, -- unused
13204 2 => False, -- unused
13205 3 => False, -- unused
13206 4 => False, -- unused
13207 5 => False), -- unused
13209 N_Error =>
13210 (1 => False, -- unused
13211 2 => False, -- unused
13212 3 => False, -- unused
13213 4 => False, -- unused
13214 5 => False), -- unused
13216 N_Unused_At_Start =>
13217 (1 => False, -- unused
13218 2 => False, -- unused
13219 3 => False, -- unused
13220 4 => False, -- unused
13221 5 => False), -- unused
13223 N_Unused_At_End =>
13224 (1 => False, -- unused
13225 2 => False, -- unused
13226 3 => False, -- unused
13227 4 => False, -- unused
13228 5 => False)); -- unused
13230 --------------------
13231 -- Inline Pragmas --
13232 --------------------
13234 pragma Inline (Abort_Present);
13235 pragma Inline (Abortable_Part);
13236 pragma Inline (Abstract_Present);
13237 pragma Inline (Accept_Handler_Records);
13238 pragma Inline (Accept_Statement);
13239 pragma Inline (Access_Definition);
13240 pragma Inline (Access_To_Subprogram_Definition);
13241 pragma Inline (Access_Types_To_Process);
13242 pragma Inline (Actions);
13243 pragma Inline (Activation_Chain_Entity);
13244 pragma Inline (Acts_As_Spec);
13245 pragma Inline (Actual_Designated_Subtype);
13246 pragma Inline (Address_Warning_Posted);
13247 pragma Inline (Aggregate_Bounds);
13248 pragma Inline (Aliased_Present);
13249 pragma Inline (Alloc_For_BIP_Return);
13250 pragma Inline (All_Others);
13251 pragma Inline (All_Present);
13252 pragma Inline (Alternatives);
13253 pragma Inline (Ancestor_Part);
13254 pragma Inline (Atomic_Sync_Required);
13255 pragma Inline (Array_Aggregate);
13256 pragma Inline (Aspect_Rep_Item);
13257 pragma Inline (Assignment_OK);
13258 pragma Inline (Associated_Node);
13259 pragma Inline (At_End_Proc);
13260 pragma Inline (Attribute_Name);
13261 pragma Inline (Aux_Decls_Node);
13262 pragma Inline (Backwards_OK);
13263 pragma Inline (Bad_Is_Detected);
13264 pragma Inline (Body_To_Inline);
13265 pragma Inline (Body_Required);
13266 pragma Inline (By_Ref);
13267 pragma Inline (Box_Present);
13268 pragma Inline (Char_Literal_Value);
13269 pragma Inline (Chars);
13270 pragma Inline (Check_Address_Alignment);
13271 pragma Inline (Choice_Parameter);
13272 pragma Inline (Choices);
13273 pragma Inline (Class_Present);
13274 pragma Inline (Classifications);
13275 pragma Inline (Cleanup_Actions);
13276 pragma Inline (Comes_From_Extended_Return_Statement);
13277 pragma Inline (Compile_Time_Known_Aggregate);
13278 pragma Inline (Component_Associations);
13279 pragma Inline (Component_Clauses);
13280 pragma Inline (Component_Definition);
13281 pragma Inline (Component_Items);
13282 pragma Inline (Component_List);
13283 pragma Inline (Component_Name);
13284 pragma Inline (Componentwise_Assignment);
13285 pragma Inline (Condition);
13286 pragma Inline (Condition_Actions);
13287 pragma Inline (Config_Pragmas);
13288 pragma Inline (Constant_Present);
13289 pragma Inline (Constraint);
13290 pragma Inline (Constraints);
13291 pragma Inline (Context_Installed);
13292 pragma Inline (Context_Items);
13293 pragma Inline (Context_Pending);
13294 pragma Inline (Contract_Test_Cases);
13295 pragma Inline (Controlling_Argument);
13296 pragma Inline (Convert_To_Return_False);
13297 pragma Inline (Conversion_OK);
13298 pragma Inline (Corresponding_Aspect);
13299 pragma Inline (Corresponding_Body);
13300 pragma Inline (Corresponding_Formal_Spec);
13301 pragma Inline (Corresponding_Generic_Association);
13302 pragma Inline (Corresponding_Integer_Value);
13303 pragma Inline (Corresponding_Spec);
13304 pragma Inline (Corresponding_Spec_Of_Stub);
13305 pragma Inline (Corresponding_Stub);
13306 pragma Inline (Dcheck_Function);
13307 pragma Inline (Declarations);
13308 pragma Inline (Default_Expression);
13309 pragma Inline (Default_Storage_Pool);
13310 pragma Inline (Default_Name);
13311 pragma Inline (Defining_Identifier);
13312 pragma Inline (Defining_Unit_Name);
13313 pragma Inline (Delay_Alternative);
13314 pragma Inline (Delay_Statement);
13315 pragma Inline (Delta_Expression);
13316 pragma Inline (Digits_Expression);
13317 pragma Inline (Discr_Check_Funcs_Built);
13318 pragma Inline (Discrete_Choices);
13319 pragma Inline (Discrete_Range);
13320 pragma Inline (Discrete_Subtype_Definition);
13321 pragma Inline (Discrete_Subtype_Definitions);
13322 pragma Inline (Discriminant_Specifications);
13323 pragma Inline (Discriminant_Type);
13324 pragma Inline (Do_Accessibility_Check);
13325 pragma Inline (Do_Discriminant_Check);
13326 pragma Inline (Do_Length_Check);
13327 pragma Inline (Do_Division_Check);
13328 pragma Inline (Do_Overflow_Check);
13329 pragma Inline (Do_Range_Check);
13330 pragma Inline (Do_Storage_Check);
13331 pragma Inline (Do_Tag_Check);
13332 pragma Inline (Elaborate_All_Desirable);
13333 pragma Inline (Elaborate_All_Present);
13334 pragma Inline (Elaborate_Desirable);
13335 pragma Inline (Elaborate_Present);
13336 pragma Inline (Else_Actions);
13337 pragma Inline (Else_Statements);
13338 pragma Inline (Elsif_Parts);
13339 pragma Inline (Enclosing_Variant);
13340 pragma Inline (End_Label);
13341 pragma Inline (End_Span);
13342 pragma Inline (Entity);
13343 pragma Inline (Entity_Or_Associated_Node);
13344 pragma Inline (Entry_Body_Formal_Part);
13345 pragma Inline (Entry_Call_Alternative);
13346 pragma Inline (Entry_Call_Statement);
13347 pragma Inline (Entry_Direct_Name);
13348 pragma Inline (Entry_Index);
13349 pragma Inline (Entry_Index_Specification);
13350 pragma Inline (Etype);
13351 pragma Inline (Exception_Choices);
13352 pragma Inline (Exception_Handlers);
13353 pragma Inline (Exception_Junk);
13354 pragma Inline (Exception_Label);
13355 pragma Inline (Expansion_Delayed);
13356 pragma Inline (Explicit_Actual_Parameter);
13357 pragma Inline (Explicit_Generic_Actual_Parameter);
13358 pragma Inline (Expression);
13359 pragma Inline (Expression_Copy);
13360 pragma Inline (Expressions);
13361 pragma Inline (First_Bit);
13362 pragma Inline (First_Inlined_Subprogram);
13363 pragma Inline (First_Name);
13364 pragma Inline (First_Named_Actual);
13365 pragma Inline (First_Real_Statement);
13366 pragma Inline (First_Subtype_Link);
13367 pragma Inline (Float_Truncate);
13368 pragma Inline (Formal_Type_Definition);
13369 pragma Inline (Forwards_OK);
13370 pragma Inline (From_Aspect_Specification);
13371 pragma Inline (From_At_End);
13372 pragma Inline (From_At_Mod);
13373 pragma Inline (From_Conditional_Expression);
13374 pragma Inline (From_Default);
13375 pragma Inline (Generalized_Indexing);
13376 pragma Inline (Generic_Associations);
13377 pragma Inline (Generic_Formal_Declarations);
13378 pragma Inline (Generic_Parent);
13379 pragma Inline (Generic_Parent_Type);
13380 pragma Inline (Handled_Statement_Sequence);
13381 pragma Inline (Handler_List_Entry);
13382 pragma Inline (Has_Created_Identifier);
13383 pragma Inline (Has_Dereference_Action);
13384 pragma Inline (Has_Dynamic_Length_Check);
13385 pragma Inline (Has_Dynamic_Range_Check);
13386 pragma Inline (Has_Init_Expression);
13387 pragma Inline (Has_Local_Raise);
13388 pragma Inline (Has_Self_Reference);
13389 pragma Inline (Has_SP_Choice);
13390 pragma Inline (Has_No_Elaboration_Code);
13391 pragma Inline (Has_Pragma_Suppress_All);
13392 pragma Inline (Has_Private_View);
13393 pragma Inline (Has_Relative_Deadline_Pragma);
13394 pragma Inline (Has_Storage_Size_Pragma);
13395 pragma Inline (Has_Target_Names);
13396 pragma Inline (Has_Wide_Character);
13397 pragma Inline (Has_Wide_Wide_Character);
13398 pragma Inline (Header_Size_Added);
13399 pragma Inline (Hidden_By_Use_Clause);
13400 pragma Inline (High_Bound);
13401 pragma Inline (Identifier);
13402 pragma Inline (Implicit_With);
13403 pragma Inline (Interface_List);
13404 pragma Inline (Interface_Present);
13405 pragma Inline (Includes_Infinities);
13406 pragma Inline (Import_Interface_Present);
13407 pragma Inline (In_Present);
13408 pragma Inline (Incomplete_View);
13409 pragma Inline (Inherited_Discriminant);
13410 pragma Inline (Instance_Spec);
13411 pragma Inline (Intval);
13412 pragma Inline (Iterator_Specification);
13413 pragma Inline (Is_Abort_Block);
13414 pragma Inline (Is_Accessibility_Actual);
13415 pragma Inline (Is_Analyzed_Pragma);
13416 pragma Inline (Is_Asynchronous_Call_Block);
13417 pragma Inline (Is_Boolean_Aspect);
13418 pragma Inline (Is_Checked);
13419 pragma Inline (Is_Checked_Ghost_Pragma);
13420 pragma Inline (Is_Component_Left_Opnd);
13421 pragma Inline (Is_Component_Right_Opnd);
13422 pragma Inline (Is_Controlling_Actual);
13423 pragma Inline (Is_Declaration_Level_Node);
13424 pragma Inline (Is_Delayed_Aspect);
13425 pragma Inline (Is_Disabled);
13426 pragma Inline (Is_Dispatching_Call);
13427 pragma Inline (Is_Dynamic_Coextension);
13428 pragma Inline (Is_Effective_Use_Clause);
13429 pragma Inline (Is_Elaboration_Checks_OK_Node);
13430 pragma Inline (Is_Elaboration_Code);
13431 pragma Inline (Is_Elaboration_Warnings_OK_Node);
13432 pragma Inline (Is_Elsif);
13433 pragma Inline (Is_Entry_Barrier_Function);
13434 pragma Inline (Is_Expanded_Build_In_Place_Call);
13435 pragma Inline (Is_Expanded_Contract);
13436 pragma Inline (Is_Finalization_Wrapper);
13437 pragma Inline (Is_Folded_In_Parser);
13438 pragma Inline (Is_Generic_Contract_Pragma);
13439 pragma Inline (Is_Ignored);
13440 pragma Inline (Is_Ignored_Ghost_Pragma);
13441 pragma Inline (Is_In_Discriminant_Check);
13442 pragma Inline (Is_Inherited_Pragma);
13443 pragma Inline (Is_Initialization_Block);
13444 pragma Inline (Is_Known_Guaranteed_ABE);
13445 pragma Inline (Is_Machine_Number);
13446 pragma Inline (Is_Null_Loop);
13447 pragma Inline (Is_Overloaded);
13448 pragma Inline (Is_Power_Of_2_For_Shift);
13449 pragma Inline (Is_Prefixed_Call);
13450 pragma Inline (Is_Protected_Subprogram_Body);
13451 pragma Inline (Is_Qualified_Universal_Literal);
13452 pragma Inline (Is_Read);
13453 pragma Inline (Is_Source_Call);
13454 pragma Inline (Is_SPARK_Mode_On_Node);
13455 pragma Inline (Is_Static_Coextension);
13456 pragma Inline (Is_Static_Expression);
13457 pragma Inline (Is_Subprogram_Descriptor);
13458 pragma Inline (Is_Task_Allocation_Block);
13459 pragma Inline (Is_Task_Body_Procedure);
13460 pragma Inline (Is_Task_Master);
13461 pragma Inline (Is_Write);
13462 pragma Inline (Iteration_Scheme);
13463 pragma Inline (Itype);
13464 pragma Inline (Kill_Range_Check);
13465 pragma Inline (Last_Bit);
13466 pragma Inline (Last_Name);
13467 pragma Inline (Library_Unit);
13468 pragma Inline (Label_Construct);
13469 pragma Inline (Left_Opnd);
13470 pragma Inline (Limited_View_Installed);
13471 pragma Inline (Limited_Present);
13472 pragma Inline (Literals);
13473 pragma Inline (Local_Raise_Not_OK);
13474 pragma Inline (Local_Raise_Statements);
13475 pragma Inline (Loop_Actions);
13476 pragma Inline (Loop_Parameter_Specification);
13477 pragma Inline (Low_Bound);
13478 pragma Inline (Mod_Clause);
13479 pragma Inline (More_Ids);
13480 pragma Inline (Must_Be_Byte_Aligned);
13481 pragma Inline (Must_Not_Freeze);
13482 pragma Inline (Must_Not_Override);
13483 pragma Inline (Must_Override);
13484 pragma Inline (Name);
13485 pragma Inline (Names);
13486 pragma Inline (Next_Entity);
13487 pragma Inline (Next_Exit_Statement);
13488 pragma Inline (Next_Implicit_With);
13489 pragma Inline (Next_Named_Actual);
13490 pragma Inline (Next_Pragma);
13491 pragma Inline (Next_Rep_Item);
13492 pragma Inline (Next_Use_Clause);
13493 pragma Inline (No_Ctrl_Actions);
13494 pragma Inline (No_Elaboration_Check);
13495 pragma Inline (No_Entities_Ref_In_Spec);
13496 pragma Inline (No_Initialization);
13497 pragma Inline (No_Minimize_Eliminate);
13498 pragma Inline (No_Side_Effect_Removal);
13499 pragma Inline (No_Truncation);
13500 pragma Inline (Null_Excluding_Subtype);
13501 pragma Inline (Null_Exclusion_Present);
13502 pragma Inline (Null_Exclusion_In_Return_Present);
13503 pragma Inline (Null_Present);
13504 pragma Inline (Null_Record_Present);
13505 pragma Inline (Null_Statement);
13506 pragma Inline (Object_Definition);
13507 pragma Inline (Of_Present);
13508 pragma Inline (Original_Discriminant);
13509 pragma Inline (Original_Entity);
13510 pragma Inline (Others_Discrete_Choices);
13511 pragma Inline (Out_Present);
13512 pragma Inline (Parameter_Associations);
13513 pragma Inline (Parameter_Specifications);
13514 pragma Inline (Parameter_Type);
13515 pragma Inline (Parent_Spec);
13516 pragma Inline (Parent_With);
13517 pragma Inline (Position);
13518 pragma Inline (Pragma_Argument_Associations);
13519 pragma Inline (Pragma_Identifier);
13520 pragma Inline (Pragmas_After);
13521 pragma Inline (Pragmas_Before);
13522 pragma Inline (Pre_Post_Conditions);
13523 pragma Inline (Prefix);
13524 pragma Inline (Premature_Use);
13525 pragma Inline (Present_Expr);
13526 pragma Inline (Prev_Ids);
13527 pragma Inline (Prev_Use_Clause);
13528 pragma Inline (Print_In_Hex);
13529 pragma Inline (Private_Declarations);
13530 pragma Inline (Private_Present);
13531 pragma Inline (Procedure_To_Call);
13532 pragma Inline (Proper_Body);
13533 pragma Inline (Protected_Definition);
13534 pragma Inline (Protected_Present);
13535 pragma Inline (Raises_Constraint_Error);
13536 pragma Inline (Range_Constraint);
13537 pragma Inline (Range_Expression);
13538 pragma Inline (Real_Range_Specification);
13539 pragma Inline (Realval);
13540 pragma Inline (Reason);
13541 pragma Inline (Record_Extension_Part);
13542 pragma Inline (Redundant_Use);
13543 pragma Inline (Renaming_Exception);
13544 pragma Inline (Result_Definition);
13545 pragma Inline (Return_Object_Declarations);
13546 pragma Inline (Return_Statement_Entity);
13547 pragma Inline (Reverse_Present);
13548 pragma Inline (Right_Opnd);
13549 pragma Inline (Rounded_Result);
13550 pragma Inline (SCIL_Controlling_Tag);
13551 pragma Inline (SCIL_Entity);
13552 pragma Inline (SCIL_Tag_Value);
13553 pragma Inline (SCIL_Target_Prim);
13554 pragma Inline (Scope);
13555 pragma Inline (Select_Alternatives);
13556 pragma Inline (Selector_Name);
13557 pragma Inline (Selector_Names);
13558 pragma Inline (Shift_Count_OK);
13559 pragma Inline (Source_Type);
13560 pragma Inline (Specification);
13561 pragma Inline (Split_PPC);
13562 pragma Inline (Statements);
13563 pragma Inline (Storage_Pool);
13564 pragma Inline (Subpool_Handle_Name);
13565 pragma Inline (Strval);
13566 pragma Inline (Subtype_Indication);
13567 pragma Inline (Subtype_Mark);
13568 pragma Inline (Subtype_Marks);
13569 pragma Inline (Suppress_Assignment_Checks);
13570 pragma Inline (Suppress_Loop_Warnings);
13571 pragma Inline (Synchronized_Present);
13572 pragma Inline (Tagged_Present);
13573 pragma Inline (Target);
13574 pragma Inline (Target_Type);
13575 pragma Inline (Task_Definition);
13576 pragma Inline (Task_Present);
13577 pragma Inline (Then_Actions);
13578 pragma Inline (Then_Statements);
13579 pragma Inline (Triggering_Alternative);
13580 pragma Inline (Triggering_Statement);
13581 pragma Inline (Treat_Fixed_As_Integer);
13582 pragma Inline (TSS_Elist);
13583 pragma Inline (Type_Definition);
13584 pragma Inline (Uneval_Old_Accept);
13585 pragma Inline (Uneval_Old_Warn);
13586 pragma Inline (Unit);
13587 pragma Inline (Uninitialized_Variable);
13588 pragma Inline (Unknown_Discriminants_Present);
13589 pragma Inline (Unreferenced_In_Spec);
13590 pragma Inline (Variant_Part);
13591 pragma Inline (Variants);
13592 pragma Inline (Visible_Declarations);
13593 pragma Inline (Used_Operations);
13594 pragma Inline (Was_Attribute_Reference);
13595 pragma Inline (Was_Expression_Function);
13596 pragma Inline (Was_Originally_Stub);
13597 pragma Inline (Withed_Body);
13599 pragma Inline (Set_Abort_Present);
13600 pragma Inline (Set_Abortable_Part);
13601 pragma Inline (Set_Abstract_Present);
13602 pragma Inline (Set_Accept_Handler_Records);
13603 pragma Inline (Set_Accept_Statement);
13604 pragma Inline (Set_Access_Definition);
13605 pragma Inline (Set_Access_To_Subprogram_Definition);
13606 pragma Inline (Set_Access_Types_To_Process);
13607 pragma Inline (Set_Actions);
13608 pragma Inline (Set_Activation_Chain_Entity);
13609 pragma Inline (Set_Acts_As_Spec);
13610 pragma Inline (Set_Actual_Designated_Subtype);
13611 pragma Inline (Set_Address_Warning_Posted);
13612 pragma Inline (Set_Aggregate_Bounds);
13613 pragma Inline (Set_Aliased_Present);
13614 pragma Inline (Set_Alloc_For_BIP_Return);
13615 pragma Inline (Set_All_Others);
13616 pragma Inline (Set_All_Present);
13617 pragma Inline (Set_Alternatives);
13618 pragma Inline (Set_Ancestor_Part);
13619 pragma Inline (Set_Array_Aggregate);
13620 pragma Inline (Set_Aspect_Rep_Item);
13621 pragma Inline (Set_Assignment_OK);
13622 pragma Inline (Set_Associated_Node);
13623 pragma Inline (Set_At_End_Proc);
13624 pragma Inline (Set_Atomic_Sync_Required);
13625 pragma Inline (Set_Attribute_Name);
13626 pragma Inline (Set_Aux_Decls_Node);
13627 pragma Inline (Set_Backwards_OK);
13628 pragma Inline (Set_Bad_Is_Detected);
13629 pragma Inline (Set_Body_Required);
13630 pragma Inline (Set_Body_To_Inline);
13631 pragma Inline (Set_Box_Present);
13632 pragma Inline (Set_By_Ref);
13633 pragma Inline (Set_Char_Literal_Value);
13634 pragma Inline (Set_Chars);
13635 pragma Inline (Set_Check_Address_Alignment);
13636 pragma Inline (Set_Choice_Parameter);
13637 pragma Inline (Set_Choices);
13638 pragma Inline (Set_Class_Present);
13639 pragma Inline (Set_Classifications);
13640 pragma Inline (Set_Cleanup_Actions);
13641 pragma Inline (Set_Comes_From_Extended_Return_Statement);
13642 pragma Inline (Set_Compile_Time_Known_Aggregate);
13643 pragma Inline (Set_Component_Associations);
13644 pragma Inline (Set_Component_Clauses);
13645 pragma Inline (Set_Component_Definition);
13646 pragma Inline (Set_Component_Items);
13647 pragma Inline (Set_Component_List);
13648 pragma Inline (Set_Component_Name);
13649 pragma Inline (Set_Componentwise_Assignment);
13650 pragma Inline (Set_Condition);
13651 pragma Inline (Set_Condition_Actions);
13652 pragma Inline (Set_Config_Pragmas);
13653 pragma Inline (Set_Constant_Present);
13654 pragma Inline (Set_Constraint);
13655 pragma Inline (Set_Constraints);
13656 pragma Inline (Set_Context_Installed);
13657 pragma Inline (Set_Context_Items);
13658 pragma Inline (Set_Context_Pending);
13659 pragma Inline (Set_Contract_Test_Cases);
13660 pragma Inline (Set_Controlling_Argument);
13661 pragma Inline (Set_Conversion_OK);
13662 pragma Inline (Set_Convert_To_Return_False);
13663 pragma Inline (Set_Corresponding_Aspect);
13664 pragma Inline (Set_Corresponding_Body);
13665 pragma Inline (Set_Corresponding_Formal_Spec);
13666 pragma Inline (Set_Corresponding_Generic_Association);
13667 pragma Inline (Set_Corresponding_Integer_Value);
13668 pragma Inline (Set_Corresponding_Spec);
13669 pragma Inline (Set_Corresponding_Spec_Of_Stub);
13670 pragma Inline (Set_Corresponding_Stub);
13671 pragma Inline (Set_Dcheck_Function);
13672 pragma Inline (Set_Declarations);
13673 pragma Inline (Set_Default_Expression);
13674 pragma Inline (Set_Default_Name);
13675 pragma Inline (Set_Default_Storage_Pool);
13676 pragma Inline (Set_Defining_Identifier);
13677 pragma Inline (Set_Defining_Unit_Name);
13678 pragma Inline (Set_Delay_Alternative);
13679 pragma Inline (Set_Delay_Statement);
13680 pragma Inline (Set_Delta_Expression);
13681 pragma Inline (Set_Digits_Expression);
13682 pragma Inline (Set_Discr_Check_Funcs_Built);
13683 pragma Inline (Set_Discrete_Choices);
13684 pragma Inline (Set_Discrete_Range);
13685 pragma Inline (Set_Discrete_Subtype_Definition);
13686 pragma Inline (Set_Discrete_Subtype_Definitions);
13687 pragma Inline (Set_Discriminant_Specifications);
13688 pragma Inline (Set_Discriminant_Type);
13689 pragma Inline (Set_Do_Accessibility_Check);
13690 pragma Inline (Set_Do_Discriminant_Check);
13691 pragma Inline (Set_Do_Division_Check);
13692 pragma Inline (Set_Do_Length_Check);
13693 pragma Inline (Set_Do_Overflow_Check);
13694 pragma Inline (Set_Do_Range_Check);
13695 pragma Inline (Set_Do_Storage_Check);
13696 pragma Inline (Set_Do_Tag_Check);
13697 pragma Inline (Set_Elaborate_All_Desirable);
13698 pragma Inline (Set_Elaborate_All_Present);
13699 pragma Inline (Set_Elaborate_Desirable);
13700 pragma Inline (Set_Elaborate_Present);
13701 pragma Inline (Set_Else_Actions);
13702 pragma Inline (Set_Else_Statements);
13703 pragma Inline (Set_Elsif_Parts);
13704 pragma Inline (Set_Enclosing_Variant);
13705 pragma Inline (Set_End_Label);
13706 pragma Inline (Set_End_Span);
13707 pragma Inline (Set_Entity);
13708 pragma Inline (Set_Entry_Body_Formal_Part);
13709 pragma Inline (Set_Entry_Call_Alternative);
13710 pragma Inline (Set_Entry_Call_Statement);
13711 pragma Inline (Set_Entry_Direct_Name);
13712 pragma Inline (Set_Entry_Index);
13713 pragma Inline (Set_Entry_Index_Specification);
13714 pragma Inline (Set_Etype);
13715 pragma Inline (Set_Exception_Choices);
13716 pragma Inline (Set_Exception_Handlers);
13717 pragma Inline (Set_Exception_Junk);
13718 pragma Inline (Set_Exception_Label);
13719 pragma Inline (Set_Expansion_Delayed);
13720 pragma Inline (Set_Explicit_Actual_Parameter);
13721 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
13722 pragma Inline (Set_Expression);
13723 pragma Inline (Set_Expression_Copy);
13724 pragma Inline (Set_Expressions);
13725 pragma Inline (Set_First_Bit);
13726 pragma Inline (Set_First_Inlined_Subprogram);
13727 pragma Inline (Set_First_Name);
13728 pragma Inline (Set_First_Named_Actual);
13729 pragma Inline (Set_First_Real_Statement);
13730 pragma Inline (Set_First_Subtype_Link);
13731 pragma Inline (Set_Float_Truncate);
13732 pragma Inline (Set_Formal_Type_Definition);
13733 pragma Inline (Set_Forwards_OK);
13734 pragma Inline (Set_From_Aspect_Specification);
13735 pragma Inline (Set_From_At_End);
13736 pragma Inline (Set_From_At_Mod);
13737 pragma Inline (Set_From_Conditional_Expression);
13738 pragma Inline (Set_From_Default);
13739 pragma Inline (Set_Generalized_Indexing);
13740 pragma Inline (Set_Generic_Associations);
13741 pragma Inline (Set_Generic_Formal_Declarations);
13742 pragma Inline (Set_Generic_Parent);
13743 pragma Inline (Set_Generic_Parent_Type);
13744 pragma Inline (Set_Handled_Statement_Sequence);
13745 pragma Inline (Set_Handler_List_Entry);
13746 pragma Inline (Set_Has_Created_Identifier);
13747 pragma Inline (Set_Has_Dereference_Action);
13748 pragma Inline (Set_Has_Dynamic_Length_Check);
13749 pragma Inline (Set_Has_Dynamic_Range_Check);
13750 pragma Inline (Set_Has_Init_Expression);
13751 pragma Inline (Set_Has_Local_Raise);
13752 pragma Inline (Set_Has_No_Elaboration_Code);
13753 pragma Inline (Set_Has_Pragma_Suppress_All);
13754 pragma Inline (Set_Has_Private_View);
13755 pragma Inline (Set_Has_Relative_Deadline_Pragma);
13756 pragma Inline (Set_Has_Self_Reference);
13757 pragma Inline (Set_Has_SP_Choice);
13758 pragma Inline (Set_Has_Storage_Size_Pragma);
13759 pragma Inline (Set_Has_Target_Names);
13760 pragma Inline (Set_Has_Wide_Character);
13761 pragma Inline (Set_Has_Wide_Wide_Character);
13762 pragma Inline (Set_Header_Size_Added);
13763 pragma Inline (Set_Hidden_By_Use_Clause);
13764 pragma Inline (Set_High_Bound);
13765 pragma Inline (Set_Identifier);
13766 pragma Inline (Set_Implicit_With);
13767 pragma Inline (Set_Import_Interface_Present);
13768 pragma Inline (Set_In_Present);
13769 pragma Inline (Set_Includes_Infinities);
13770 pragma Inline (Set_Incomplete_View);
13771 pragma Inline (Set_Inherited_Discriminant);
13772 pragma Inline (Set_Instance_Spec);
13773 pragma Inline (Set_Interface_List);
13774 pragma Inline (Set_Interface_Present);
13775 pragma Inline (Set_Intval);
13776 pragma Inline (Set_Is_Abort_Block);
13777 pragma Inline (Set_Is_Accessibility_Actual);
13778 pragma Inline (Set_Is_Analyzed_Pragma);
13779 pragma Inline (Set_Is_Asynchronous_Call_Block);
13780 pragma Inline (Set_Is_Boolean_Aspect);
13781 pragma Inline (Set_Is_Checked);
13782 pragma Inline (Set_Is_Checked_Ghost_Pragma);
13783 pragma Inline (Set_Is_Component_Left_Opnd);
13784 pragma Inline (Set_Is_Component_Right_Opnd);
13785 pragma Inline (Set_Is_Controlling_Actual);
13786 pragma Inline (Set_Is_Declaration_Level_Node);
13787 pragma Inline (Set_Is_Delayed_Aspect);
13788 pragma Inline (Set_Is_Disabled);
13789 pragma Inline (Set_Is_Dispatching_Call);
13790 pragma Inline (Set_Is_Dynamic_Coextension);
13791 pragma Inline (Set_Is_Effective_Use_Clause);
13792 pragma Inline (Set_Is_Elaboration_Checks_OK_Node);
13793 pragma Inline (Set_Is_Elaboration_Code);
13794 pragma Inline (Set_Is_Elaboration_Warnings_OK_Node);
13795 pragma Inline (Set_Is_Elsif);
13796 pragma Inline (Set_Is_Entry_Barrier_Function);
13797 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
13798 pragma Inline (Set_Is_Expanded_Contract);
13799 pragma Inline (Set_Is_Finalization_Wrapper);
13800 pragma Inline (Set_Is_Folded_In_Parser);
13801 pragma Inline (Set_Is_Generic_Contract_Pragma);
13802 pragma Inline (Set_Is_Ignored);
13803 pragma Inline (Set_Is_Ignored_Ghost_Pragma);
13804 pragma Inline (Set_Is_In_Discriminant_Check);
13805 pragma Inline (Set_Is_Inherited_Pragma);
13806 pragma Inline (Set_Is_Initialization_Block);
13807 pragma Inline (Set_Is_Known_Guaranteed_ABE);
13808 pragma Inline (Set_Is_Machine_Number);
13809 pragma Inline (Set_Is_Null_Loop);
13810 pragma Inline (Set_Is_Overloaded);
13811 pragma Inline (Set_Is_Power_Of_2_For_Shift);
13812 pragma Inline (Set_Is_Prefixed_Call);
13813 pragma Inline (Set_Is_Protected_Subprogram_Body);
13814 pragma Inline (Set_Is_Qualified_Universal_Literal);
13815 pragma Inline (Set_Is_Read);
13816 pragma Inline (Set_Is_Source_Call);
13817 pragma Inline (Set_Is_SPARK_Mode_On_Node);
13818 pragma Inline (Set_Is_Static_Coextension);
13819 pragma Inline (Set_Is_Static_Expression);
13820 pragma Inline (Set_Is_Subprogram_Descriptor);
13821 pragma Inline (Set_Is_Task_Allocation_Block);
13822 pragma Inline (Set_Is_Task_Body_Procedure);
13823 pragma Inline (Set_Is_Task_Master);
13824 pragma Inline (Set_Is_Write);
13825 pragma Inline (Set_Iteration_Scheme);
13826 pragma Inline (Set_Iterator_Specification);
13827 pragma Inline (Set_Itype);
13828 pragma Inline (Set_Kill_Range_Check);
13829 pragma Inline (Set_Label_Construct);
13830 pragma Inline (Set_Last_Bit);
13831 pragma Inline (Set_Last_Name);
13832 pragma Inline (Set_Left_Opnd);
13833 pragma Inline (Set_Library_Unit);
13834 pragma Inline (Set_Limited_Present);
13835 pragma Inline (Set_Limited_View_Installed);
13836 pragma Inline (Set_Literals);
13837 pragma Inline (Set_Local_Raise_Not_OK);
13838 pragma Inline (Set_Local_Raise_Statements);
13839 pragma Inline (Set_Loop_Actions);
13840 pragma Inline (Set_Loop_Parameter_Specification);
13841 pragma Inline (Set_Low_Bound);
13842 pragma Inline (Set_Mod_Clause);
13843 pragma Inline (Set_More_Ids);
13844 pragma Inline (Set_Must_Be_Byte_Aligned);
13845 pragma Inline (Set_Must_Not_Freeze);
13846 pragma Inline (Set_Must_Not_Override);
13847 pragma Inline (Set_Must_Override);
13848 pragma Inline (Set_Name);
13849 pragma Inline (Set_Names);
13850 pragma Inline (Set_Next_Entity);
13851 pragma Inline (Set_Next_Exit_Statement);
13852 pragma Inline (Set_Next_Implicit_With);
13853 pragma Inline (Set_Next_Named_Actual);
13854 pragma Inline (Set_Next_Pragma);
13855 pragma Inline (Set_Next_Rep_Item);
13856 pragma Inline (Set_Next_Use_Clause);
13857 pragma Inline (Set_No_Ctrl_Actions);
13858 pragma Inline (Set_No_Elaboration_Check);
13859 pragma Inline (Set_No_Entities_Ref_In_Spec);
13860 pragma Inline (Set_No_Initialization);
13861 pragma Inline (Set_No_Minimize_Eliminate);
13862 pragma Inline (Set_No_Side_Effect_Removal);
13863 pragma Inline (Set_No_Truncation);
13864 pragma Inline (Set_Null_Excluding_Subtype);
13865 pragma Inline (Set_Null_Exclusion_Present);
13866 pragma Inline (Set_Null_Exclusion_In_Return_Present);
13867 pragma Inline (Set_Null_Present);
13868 pragma Inline (Set_Null_Record_Present);
13869 pragma Inline (Set_Null_Statement);
13870 pragma Inline (Set_Object_Definition);
13871 pragma Inline (Set_Of_Present);
13872 pragma Inline (Set_Original_Discriminant);
13873 pragma Inline (Set_Original_Entity);
13874 pragma Inline (Set_Others_Discrete_Choices);
13875 pragma Inline (Set_Out_Present);
13876 pragma Inline (Set_Parameter_Associations);
13877 pragma Inline (Set_Parameter_Specifications);
13878 pragma Inline (Set_Parameter_Type);
13879 pragma Inline (Set_Parent_Spec);
13880 pragma Inline (Set_Parent_With);
13881 pragma Inline (Set_Position);
13882 pragma Inline (Set_Pragma_Argument_Associations);
13883 pragma Inline (Set_Pragma_Identifier);
13884 pragma Inline (Set_Pragmas_After);
13885 pragma Inline (Set_Pragmas_Before);
13886 pragma Inline (Set_Pre_Post_Conditions);
13887 pragma Inline (Set_Prefix);
13888 pragma Inline (Set_Premature_Use);
13889 pragma Inline (Set_Present_Expr);
13890 pragma Inline (Set_Prev_Ids);
13891 pragma Inline (Set_Prev_Use_Clause);
13892 pragma Inline (Set_Print_In_Hex);
13893 pragma Inline (Set_Private_Declarations);
13894 pragma Inline (Set_Private_Present);
13895 pragma Inline (Set_Procedure_To_Call);
13896 pragma Inline (Set_Proper_Body);
13897 pragma Inline (Set_Protected_Definition);
13898 pragma Inline (Set_Protected_Present);
13899 pragma Inline (Set_Raises_Constraint_Error);
13900 pragma Inline (Set_Range_Constraint);
13901 pragma Inline (Set_Range_Expression);
13902 pragma Inline (Set_Real_Range_Specification);
13903 pragma Inline (Set_Realval);
13904 pragma Inline (Set_Reason);
13905 pragma Inline (Set_Record_Extension_Part);
13906 pragma Inline (Set_Redundant_Use);
13907 pragma Inline (Set_Renaming_Exception);
13908 pragma Inline (Set_Result_Definition);
13909 pragma Inline (Set_Return_Object_Declarations);
13910 pragma Inline (Set_Reverse_Present);
13911 pragma Inline (Set_Right_Opnd);
13912 pragma Inline (Set_Rounded_Result);
13913 pragma Inline (Set_SCIL_Controlling_Tag);
13914 pragma Inline (Set_SCIL_Entity);
13915 pragma Inline (Set_SCIL_Tag_Value);
13916 pragma Inline (Set_SCIL_Target_Prim);
13917 pragma Inline (Set_Scope);
13918 pragma Inline (Set_Select_Alternatives);
13919 pragma Inline (Set_Selector_Name);
13920 pragma Inline (Set_Selector_Names);
13921 pragma Inline (Set_Shift_Count_OK);
13922 pragma Inline (Set_Source_Type);
13923 pragma Inline (Set_Split_PPC);
13924 pragma Inline (Set_Statements);
13925 pragma Inline (Set_Storage_Pool);
13926 pragma Inline (Set_Strval);
13927 pragma Inline (Set_Subpool_Handle_Name);
13928 pragma Inline (Set_Subtype_Indication);
13929 pragma Inline (Set_Subtype_Mark);
13930 pragma Inline (Set_Subtype_Marks);
13931 pragma Inline (Set_Suppress_Assignment_Checks);
13932 pragma Inline (Set_Suppress_Loop_Warnings);
13933 pragma Inline (Set_Synchronized_Present);
13934 pragma Inline (Set_TSS_Elist);
13935 pragma Inline (Set_Tagged_Present);
13936 pragma Inline (Set_Target);
13937 pragma Inline (Set_Target_Type);
13938 pragma Inline (Set_Task_Definition);
13939 pragma Inline (Set_Task_Present);
13940 pragma Inline (Set_Then_Actions);
13941 pragma Inline (Set_Then_Statements);
13942 pragma Inline (Set_Treat_Fixed_As_Integer);
13943 pragma Inline (Set_Triggering_Alternative);
13944 pragma Inline (Set_Triggering_Statement);
13945 pragma Inline (Set_Type_Definition);
13946 pragma Inline (Set_Uneval_Old_Accept);
13947 pragma Inline (Set_Uneval_Old_Warn);
13948 pragma Inline (Set_Unit);
13949 pragma Inline (Set_Uninitialized_Variable);
13950 pragma Inline (Set_Unknown_Discriminants_Present);
13951 pragma Inline (Set_Unreferenced_In_Spec);
13952 pragma Inline (Set_Used_Operations);
13953 pragma Inline (Set_Variant_Part);
13954 pragma Inline (Set_Variants);
13955 pragma Inline (Set_Visible_Declarations);
13956 pragma Inline (Set_Was_Attribute_Reference);
13957 pragma Inline (Set_Was_Expression_Function);
13958 pragma Inline (Set_Was_Originally_Stub);
13959 pragma Inline (Set_Withed_Body);
13961 end Sinfo;