[NDS32] new attribute no_prologue and new option -mret-in-naked-func.
[official-gcc.git] / gcc / ada / sinfo.ads
blobb09ca100044cd37a83885f2f99749eec9f926103
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 variables Ghost_Mode and Ignored_Ghost_Region, which comprise
551 -- a mechanism called "Ghost regions".
553 -- The values of Ghost_Mode are as follows:
555 -- 1. Check - All static semantics as defined in SPARK RM 6.9 are in
556 -- effect. The Ghost region has mode Check.
558 -- 2. Ignore - Same as Check, ignored Ghost code is not present in ALI
559 -- files, object files, and the final executable. The Ghost region
560 -- has mode Ignore.
562 -- 3. None - No Ghost region is in effect
564 -- The value of Ignored_Ghost_Region captures the node which initiates an
565 -- ignored Ghost region.
567 -- A Ghost region is a compiler operating mode, similar to Check_Syntax,
568 -- however a region is much more finely grained and depends on the policy
569 -- in effect. The region starts prior to the analysis of a Ghost construct
570 -- and ends immediately after its expansion. The region is established as
571 -- follows:
573 -- 1. Declarations - Prior to analysis, if the declaration is subject to
574 -- pragma Ghost.
576 -- 2. Renaming declarations - Same as 1) or when the renamed entity is
577 -- Ghost.
579 -- 3. Completing declarations - Same as 1) or when the declaration is
580 -- partially analyzed and the declaration completes a Ghost entity.
582 -- 4. N_Package_Body, N_Subprogram_Body - Same as 1) or when the body is
583 -- partially analyzed and completes a Ghost entity.
585 -- 5. N_Assignment_Statement - After the left hand side is analyzed and
586 -- references a Ghost entity.
588 -- 6. N_Procedure_Call_Statement - After the name is analyzed and denotes
589 -- a Ghost procedure.
591 -- 7. N_Pragma - During analysis, when the related entity is Ghost or the
592 -- pragma encloses a Ghost entity.
594 -- 8. Instantiations - Save as 1) or when the instantiation is partially
595 -- analyzed and the generic template is Ghost.
597 -- The following routines install a new Ghost region:
599 -- Install_Ghost_Region
600 -- Mark_And_Set_Ghost_xxx
601 -- Set_Ghost_Mode
603 -- The following routine ends a Ghost region:
605 -- Restore_Ghost_Region
607 -- A region may be reinstalled similarly to scopes for decoupled expansion
608 -- such as the generation of dispatch tables or the creation of a predicate
609 -- function.
611 -- If the mode of a Ghost region is Ignore, any newly created nodes as well
612 -- as source entities are marked as ignored Ghost. In additon, the marking
613 -- process signals all enclosing scopes that an ignored Ghost node resides
614 -- within. The compilation unit where the node resides is also added to an
615 -- auxiliary table for post processing.
617 -- After the analysis and expansion of all compilation units takes place
618 -- as well as the instantiation of all inlined [generic] bodies, the GNAT
619 -- driver initiates a separate pass which removes all ignored Ghost nodes
620 -- from all units stored in the auxiliary table.
622 --------------------
623 -- GNATprove Mode --
624 --------------------
626 -- When a file is compiled in GNATprove mode (-gnatd.F), a very light
627 -- expansion is performed and the analysis must generate a tree in a
628 -- form that meets additional requirements.
630 -- This light expansion does two transformations of the tree that cannot
631 -- be postponed till after semantic analysis:
633 -- 1. Replace object renamings by renamed object. This requires the
634 -- introduction of temporaries at the point of the renaming, which
635 -- must be properly analyzed.
637 -- 2. Fully qualify entity names. This is needed to generate suitable
638 -- local effects and call-graphs in ALI files, with the completely
639 -- qualified names (in particular the suffix to distinguish homonyms).
641 -- The tree after this light expansion should be fully analyzed
642 -- semantically, which sometimes requires the insertion of semantic
643 -- pre-analysis, for example for subprogram contracts and pragma
644 -- check/assert. In particular, all expression must have their proper type,
645 -- and semantic links should be set between tree nodes (partial to full
646 -- view, etc.) Some kinds of nodes should be either absent, or can be
647 -- ignored by the formal verification backend:
649 -- N_Object_Renaming_Declaration: can be ignored safely
650 -- N_Expression_Function: absent (rewritten)
651 -- N_Expression_With_Actions: absent (not generated)
653 -- SPARK cross-references are generated from the regular cross-references
654 -- (used for browsing and code understanding) and additional references
655 -- collected during semantic analysis, in particular on all dereferences.
656 -- These SPARK cross-references are output in a separate section of ALI
657 -- files, as described in spark_xrefs.adb. They are the basis for the
658 -- computation of data dependences in GNATprove. This implies that all
659 -- cross-references should be generated in this mode, even those that would
660 -- not make sense from a user point-of-view, and that cross-references that
661 -- do not lead to data dependences for subprograms can be safely ignored.
663 -- GNATprove relies on the following front end behaviors:
665 -- 1. The first declarations in the list of visible declarations of
666 -- a package declaration for a generic instance, up to the first
667 -- declaration which comes from source, should correspond to
668 -- the "mappings nodes" between formal and actual generic parameters.
670 -- 2. In addition pragma Debug statements are removed from the tree
671 -- (rewritten to NULL stmt), since they should be ignored in formal
672 -- verification.
674 -- 3. An error is also issued for missing subunits, similar to the
675 -- warning issued when generating code, to avoid formal verification
676 -- of a partial unit.
678 -- 4. Unconstrained types are not replaced by constrained types whose
679 -- bounds are generated from an expression: Expand_Subtype_From_Expr
680 -- should be a no-op.
682 -- 5. Errors (instead of warnings) are issued on compile-time-known
683 -- constraint errors even though such cases do not correspond to
684 -- illegalities in the Ada RM (this is simply another case where
685 -- GNATprove implements a subset of the full language).
687 -- However, there are a few exceptions to this rule for cases where
688 -- we want to allow the GNATprove analysis to proceed (e.g. range
689 -- checks on empty ranges, which typically appear in deactivated
690 -- code in a particular configuration).
692 -- 6. Subtypes should match in the AST, even after a generic is
693 -- instantiated. In particular, GNATprove relies on the fact that,
694 -- on a selected component, the type of the selected component is
695 -- the type of the corresponding component in the prefix of the
696 -- selected component.
698 -- Note that, in some cases, we know that this rule is broken by the
699 -- frontend. In particular, if the selected component is a packed
700 -- array depending on a discriminant of a unconstrained formal object
701 -- parameter of a generic.
703 ----------------
704 -- SPARK Mode --
705 ----------------
707 -- The SPARK RM 1.6.5 defines a mode of operation called "SPARK mode" which
708 -- starts a scope where the SPARK language semantics are either On, Off, or
709 -- Auto, where Auto leaves the choice to the tools. A SPARK mode may be
710 -- specified by means of an aspect or a pragma.
712 -- The following entities may be subject to a SPARK mode. Entities marked
713 -- with * may possess two differente SPARK modes.
715 -- E_Entry
716 -- E_Entry_Family
717 -- E_Function
718 -- E_Generic_Function
719 -- E_Generic_Package *
720 -- E_Generic_Procedure
721 -- E_Operator
722 -- E_Package *
723 -- E_Package_Body *
724 -- E_Procedure
725 -- E_Protected_Body
726 -- E_Protected_Subtype
727 -- E_Protected_Type *
728 -- E_Subprogram_Body
729 -- E_Task_Body
730 -- E_Task_Subtype
731 -- E_Task_Type *
732 -- E_Variable
734 -- In order to manage SPARK scopes, the compiler relies on global variables
735 -- SPARK_Mode and SPARK_Mode_Pragma and a mechanism called "SPARK regions."
736 -- Routines Install_SPARK_Mode and Set_SPARK_Mode create a new SPARK region
737 -- and routine Restore_SPARK_Mode ends a SPARK region. A region may be
738 -- reinstalled similarly to scopes.
740 -----------------------
741 -- Check Flag Fields --
742 -----------------------
744 -- The following flag fields appear in expression nodes:
746 -- Do_Division_Check
747 -- Do_Overflow_Check
748 -- Do_Range_Check
750 -- These three flags are always set by the front end during semantic
751 -- analysis, on expression nodes that may trigger the corresponding
752 -- check. The front end then inserts or not the check during expansion. In
753 -- particular, these flags should also be correctly set in ASIS mode and
754 -- GNATprove mode. As a special case, the front end does not insert a
755 -- Do_Division_Check flag on float exponentiation expressions, for the case
756 -- where the value is 0.0 and the exponent is negative, although this case
757 -- does lead to a division check failure.
759 -- Note: the expander always takes care of the Do_Range check case,
760 -- so this flag will never be set in the expanded tree passed to the
761 -- back end code generator.
763 -- Note that this accounts for all nodes that trigger the corresponding
764 -- checks, except for range checks on subtype_indications, which may be
765 -- required to check that a range_constraint is compatible with the given
766 -- subtype (RM 3.2.2(11)).
768 -- The following flag fields appear in various nodes:
770 -- Do_Accessibility_Check
771 -- Do_Discriminant_Check
772 -- Do_Length_Check
773 -- Do_Storage_Check
774 -- Do_Tag_Check
776 -- These flags are used in some specific cases by the front end, either
777 -- during semantic analysis or during expansion, and cannot be expected
778 -- to be set on all nodes that trigger the corresponding check.
780 ------------------------
781 -- Common Flag Fields --
782 ------------------------
784 -- The following flag fields appear in all nodes:
786 -- Analyzed
787 -- This flag is used to indicate that a node (and all its children) have
788 -- been analyzed. It is used to avoid reanalysis of a node that has
789 -- already been analyzed, both for efficiency and functional correctness
790 -- reasons.
792 -- Comes_From_Source
793 -- This flag is set if the node comes directly from an explicit construct
794 -- in the source. It is normally on for any nodes built by the scanner or
795 -- parser from the source program, with the exception that in a few cases
796 -- the parser adds nodes to normalize the representation (in particular
797 -- a null statement is added to a package body if there is no begin/end
798 -- initialization section.
800 -- Most nodes inserted by the analyzer or expander are not considered
801 -- as coming from source, so the flag is off for such nodes. In a few
802 -- cases, the expander constructs nodes closely equivalent to nodes
803 -- from the source program (e.g. the allocator built for build-in-place
804 -- case), and the Comes_From_Source flag is deliberately set.
806 -- Error_Posted
807 -- This flag is used to avoid multiple error messages being posted on or
808 -- referring to the same node. This flag is set if an error message
809 -- refers to a node or is posted on its source location, and has the
810 -- effect of inhibiting further messages involving this same node.
812 -----------------------
813 -- Modify_Tree_For_C --
814 -----------------------
816 -- If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
817 -- in ways that help match the semantics better with C, easing the task of
818 -- interfacing to C code generators (other than GCC, where the work is done
819 -- in gigi, and there is no point in changing that), and also making life
820 -- easier for Cprint in generating C source code.
822 -- The current modifications implemented are as follows:
824 -- N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
825 -- are eliminated from the tree (since these operations do not exist in
826 -- C), and the operations are rewritten in terms of logical shifts and
827 -- other logical operations that do exist in C. See Exp_Ch4 expansion
828 -- routines for these operators for details of the transformations made.
830 -- The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
831 -- less than the word size (since other values are not well-defined in
832 -- C). This is done using an explicit test if necessary.
834 -- Min and Max attributes are expanded into equivalent if expressions,
835 -- dealing properly with side effect issues.
837 -- Mod for signed integer types is expanded into equivalent expressions
838 -- using Rem (which is % in C) and other C-available operators.
840 -- Functions returning bounded arrays are transformed into procedures
841 -- with an extra out parameter, and the calls updated accordingly.
843 -- Aggregates are only kept unexpanded for object declarations, otherwise
844 -- they are systematically expanded into loops (for arrays) and
845 -- individual assignments (for records).
847 -- Unconstrained array types are handled by means of fat pointers.
849 -- Postconditions are inlined by the frontend since their body may have
850 -- references to itypes defined in the enclosing subprogram.
852 ------------------------------------
853 -- Description of Semantic Fields --
854 ------------------------------------
856 -- The meaning of the syntactic fields is generally clear from their names
857 -- without any further description, since the names are chosen to
858 -- correspond very closely to the syntax in the reference manual. This
859 -- section describes the usage of the semantic fields, which are used to
860 -- contain additional information determined during semantic analysis.
862 -- Accept_Handler_Records (List5-Sem)
863 -- This field is present only in an N_Accept_Alternative node. It is used
864 -- to temporarily hold the exception handler records from an accept
865 -- statement in a selective accept. These exception handlers will
866 -- eventually be placed in the Handler_Records list of the procedure
867 -- built for this accept (see Expand_N_Selective_Accept procedure in
868 -- Exp_Ch9 for further details).
870 -- Access_Types_To_Process (Elist2-Sem)
871 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
872 -- Contains the list of access types which may require specific treatment
873 -- when the nature of the type completion is completely known. An example
874 -- of such treatment is the generation of the associated_final_chain.
876 -- Actions (List1-Sem)
877 -- This field contains a sequence of actions that are associated with the
878 -- node holding the field. See the individual node types for details of
879 -- how this field is used, as well as the description of the specific use
880 -- for a particular node type.
882 -- Activation_Chain_Entity (Node3-Sem)
883 -- This is used in tree nodes representing task activators (blocks,
884 -- subprogram bodies, package declarations, and task bodies). It is
885 -- initially Empty, and then gets set to point to the entity for the
886 -- declared Activation_Chain variable when the first task is declared.
887 -- When tasks are declared in the corresponding declarative region this
888 -- entity is located by name (its name is always _Chain) and the declared
889 -- tasks are added to the chain. Note that N_Extended_Return_Statement
890 -- does not have this attribute, although it does have an activation
891 -- chain. This chain is used to store the tasks temporarily, and is not
892 -- used for activating them. On successful completion of the return
893 -- statement, the tasks are moved to the caller's chain, and the caller
894 -- activates them.
896 -- Acts_As_Spec (Flag4-Sem)
897 -- A flag set in the N_Subprogram_Body node for a subprogram body which
898 -- is acting as its own spec. In the case of a library-level subprogram
899 -- the flag is set as well on the parent compilation unit node.
901 -- Actual_Designated_Subtype (Node4-Sem)
902 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
903 -- needs to known the dynamic constrained subtype of the designated
904 -- object, this attribute is set to that type. This is done for
905 -- N_Free_Statements for access-to-classwide types and access to
906 -- unconstrained packed array types, and for N_Explicit_Dereference when
907 -- the designated type is an unconstrained packed array and the
908 -- dereference is the prefix of a 'Size attribute reference.
910 -- Address_Warning_Posted (Flag18-Sem)
911 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
912 -- posted a warning for the address clause regarding size or alignment
913 -- issues. Used to inhibit multiple redundant messages.
915 -- Aggregate_Bounds (Node3-Sem)
916 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
917 -- known at compile time, this field points to an N_Range node with those
918 -- bounds. Otherwise Empty.
920 -- Alloc_For_BIP_Return (Flag1-Sem)
921 -- Present in N_Allocator nodes. True if the allocator is one of those
922 -- generated for a build-in-place return statement.
924 -- All_Others (Flag11-Sem)
925 -- Present in an N_Others_Choice node. This flag is set for an others
926 -- exception where all exceptions are to be caught, even those that are
927 -- not normally handled (in particular the tasking abort signal). This
928 -- is used for translation of the at end handler into a normal exception
929 -- handler.
931 -- Aspect_Rep_Item (Node2-Sem)
932 -- Present in N_Aspect_Specification nodes. Points to the corresponding
933 -- pragma/attribute definition node used to process the aspect.
935 -- Assignment_OK (Flag15-Sem)
936 -- This flag is set in a subexpression node for an object, indicating
937 -- that the associated object can be modified, even if this would not
938 -- normally be permissible (either by direct assignment, or by being
939 -- passed as an out or in-out parameter). This is used by the expander
940 -- for a number of purposes, including initialization of constants and
941 -- limited type objects (such as tasks), setting discriminant fields,
942 -- setting tag values, etc. N_Object_Declaration nodes also have this
943 -- flag defined. Here it is used to indicate that an initialization
944 -- expression is valid, even where it would normally not be allowed
945 -- (e.g. where the type involved is limited). It is also used to stop
946 -- a Force_Evaluation call for an unchecked conversion, but this usage
947 -- is unclear and not documented ???
949 -- Associated_Node (Node4-Sem)
950 -- Present in nodes that can denote an entity: identifiers, character
951 -- literals, operator symbols, expanded names, operator nodes, and
952 -- attribute reference nodes (all these nodes have an Entity field).
953 -- This field is also present in N_Aggregate, N_Selected_Component, and
954 -- N_Extension_Aggregate nodes. This field is used in generic processing
955 -- to create links between the generic template and the generic copy.
956 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
957 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
958 -- the normal function of Entity is not required at the point where the
959 -- Associated_Node is set. Note also, that in generic templates, this
960 -- means that the Entity field does not necessarily point to an Entity.
961 -- Since the back end is expected to ignore generic templates, this is
962 -- harmless.
964 -- Atomic_Sync_Required (Flag14-Sem)
965 -- This flag is set on a node for which atomic synchronization is
966 -- required for the corresponding reference or modification.
968 -- At_End_Proc (Node1)
969 -- This field is present in an N_Handled_Sequence_Of_Statements node.
970 -- It contains an identifier reference for the cleanup procedure to be
971 -- called. See description of this node for further details.
973 -- Backwards_OK (Flag6-Sem)
974 -- A flag present in the N_Assignment_Statement node. It is used only
975 -- if the type being assigned is an array type, and is set if analysis
976 -- determines that it is definitely safe to do the copy backwards, i.e.
977 -- starting at the highest addressed element. This is the case if either
978 -- the operands do not overlap, or they may overlap, but if they do,
979 -- then the left operand is at a higher address than the right operand.
981 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
982 -- means that the front end could not determine that either direction is
983 -- definitely safe, and a runtime check may be required if the backend
984 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
985 -- set, it means that the front end can assure no overlap of operands.
987 -- Body_To_Inline (Node3-Sem)
988 -- Present in subprogram declarations. Denotes analyzed but unexpanded
989 -- body of subprogram, to be used when inlining calls. Present when the
990 -- subprogram has an Inline pragma and inlining is enabled. If the
991 -- declaration is completed by a renaming_as_body, and the renamed entity
992 -- is a subprogram, the Body_To_Inline is the name of that entity, which
993 -- is used directly in later calls to the original subprogram.
995 -- Body_Required (Flag13-Sem)
996 -- A flag that appears in the N_Compilation_Unit node indicating that
997 -- the corresponding unit requires a body. For the package case, this
998 -- indicates that a completion is required. In Ada 95, if the flag is not
999 -- set for the package case, then a body may not be present. In Ada 83,
1000 -- if the flag is not set for the package case, then body is optional.
1001 -- For a subprogram declaration, the flag is set except in the case where
1002 -- a pragma Import or Interface applies, in which case no body is
1003 -- permitted (in Ada 83 or Ada 95).
1005 -- By_Ref (Flag5-Sem)
1006 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
1007 -- this flag is set when the returned expression is already allocated on
1008 -- the secondary stack and thus the result is passed by reference rather
1009 -- than copied another time.
1011 -- Cleanup_Actions (List5-Sem)
1012 -- Present in block statements created for transient blocks, contains
1013 -- additional cleanup actions carried over from the transient scope.
1015 -- Check_Address_Alignment (Flag11-Sem)
1016 -- A flag present in N_Attribute_Definition clause for a 'Address
1017 -- attribute definition. This flag is set if a dynamic check should be
1018 -- generated at the freeze point for the entity to which this address
1019 -- clause applies. The reason that we need this flag is that we want to
1020 -- check for range checks being suppressed at the point where the
1021 -- attribute definition clause is given, rather than testing this at the
1022 -- freeze point.
1024 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
1025 -- Present in N_Simple_Return_Statement nodes. True if this node was
1026 -- constructed as part of the N_Extended_Return_Statement expansion.
1028 -- Compile_Time_Known_Aggregate (Flag18-Sem)
1029 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
1030 -- evaluated at compile time without raising constraint error. Such
1031 -- aggregates can be passed as is to the back end without any expansion.
1032 -- See Exp_Aggr for specific conditions under which this flag gets set.
1034 -- Componentwise_Assignment (Flag14-Sem)
1035 -- Present in N_Assignment_Statement nodes. Set for a record assignment
1036 -- where all that needs doing is to expand it into component-by-component
1037 -- assignments. This is used internally for the case of tagged types with
1038 -- rep clauses, where we need to avoid recursion (we don't want to try to
1039 -- generate a call to the primitive operation, because this is the case
1040 -- where we are compiling the primitive operation). Note that when we are
1041 -- expanding component assignments in this case, we never assign the _tag
1042 -- field, but we recursively assign components of the parent type.
1044 -- Condition_Actions (List3-Sem)
1045 -- This field appears in else-if nodes and in the iteration scheme node
1046 -- for while loops. This field is only used during semantic processing to
1047 -- temporarily hold actions inserted into the tree. In the tree passed
1048 -- to gigi, the condition actions field is always set to No_List. For
1049 -- details on how this field is used, see the routine Insert_Actions in
1050 -- package Exp_Util, and also the expansion routines for the relevant
1051 -- nodes.
1053 -- Context_Pending (Flag16-Sem)
1054 -- This field appears in Compilation_Unit nodes, to indicate that the
1055 -- context of the unit is being compiled. Used to detect circularities
1056 -- that are not otherwise detected by the loading mechanism. Such
1057 -- circularities can occur in the presence of limited and non-limited
1058 -- with_clauses that mention the same units.
1060 -- Controlling_Argument (Node1-Sem)
1061 -- This field is set in procedure and function call nodes if the call
1062 -- is a dispatching call (it is Empty for a non-dispatching call). It
1063 -- indicates the source of the call's controlling tag. For procedure
1064 -- calls, the Controlling_Argument is one of the actuals. For function
1065 -- that has a dispatching result, it is an entity in the context of the
1066 -- call that can provide a tag, or else it is the tag of the root type
1067 -- of the class. It can also specify a tag directly rather than being a
1068 -- tagged object. The latter is needed by the implementations of AI-239
1069 -- and AI-260.
1071 -- Conversion_OK (Flag14-Sem)
1072 -- A flag set on type conversion nodes to indicate that the conversion
1073 -- is to be considered as being valid, even though it is the case that
1074 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
1075 -- Fixed_Value and Integer_Value, for internal conversions done for
1076 -- fixed-point operations, and for certain conversions for calls to
1077 -- initialization procedures. If Conversion_OK is set, then Etype must be
1078 -- set (the analyzer assumes that Etype has been set). For the case of
1079 -- fixed-point operands, it also indicates that the conversion is to be
1080 -- direct conversion of the underlying integer result, with no regard to
1081 -- the small operand.
1083 -- Convert_To_Return_False (Flag13-Sem)
1084 -- Present in N_Raise_Expression nodes that appear in the body of the
1085 -- special predicateM function used to test a predicate in the context
1086 -- of a membership test, where raise expression results in returning a
1087 -- value of False rather than raising an exception.
1089 -- Corresponding_Aspect (Node3-Sem)
1090 -- Present in N_Pragma node. Used to point back to the source aspect from
1091 -- the corresponding pragma. This field is Empty for source pragmas.
1093 -- Corresponding_Body (Node5-Sem)
1094 -- This field is set in subprogram declarations, package declarations,
1095 -- entry declarations of protected types, and in generic units. It points
1096 -- to the defining entity for the corresponding body (NOT the node for
1097 -- the body itself).
1099 -- Corresponding_Formal_Spec (Node3-Sem)
1100 -- This field is set in subprogram renaming declarations, where it points
1101 -- to the defining entity for a formal subprogram in the case where the
1102 -- renaming corresponds to a generic formal subprogram association in an
1103 -- instantiation. The field is Empty if the renaming does not correspond
1104 -- to such a formal association.
1106 -- Corresponding_Generic_Association (Node5-Sem)
1107 -- This field is defined for object declarations and object renaming
1108 -- declarations. It is set for the declarations within an instance that
1109 -- map generic formals to their actuals. If set, the field points to
1110 -- a generic_association which is the original parent of the expression
1111 -- or name appearing in the declaration. This simplifies ASIS queries.
1113 -- Corresponding_Integer_Value (Uint4-Sem)
1114 -- This field is set in real literals of fixed-point types (it is not
1115 -- used for floating-point types). It contains the integer value used
1116 -- to represent the fixed-point value. It is also set on the universal
1117 -- real literals used to represent bounds of fixed-point base types
1118 -- and their first named subtypes.
1120 -- Corresponding_Spec (Node5-Sem)
1121 -- This field is set in subprogram, package, task, and protected body
1122 -- nodes, where it points to the defining entity in the corresponding
1123 -- spec. The attribute is also set in N_With_Clause nodes where it points
1124 -- to the defining entity for the with'ed spec, and in a subprogram
1125 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
1126 -- if there is no corresponding spec, as in the case of a subprogram body
1127 -- that serves as its own spec.
1129 -- In Ada 2012, Corresponding_Spec is set on expression functions that
1130 -- complete a subprogram declaration.
1132 -- Corresponding_Spec_Of_Stub (Node2-Sem)
1133 -- This field is present in subprogram, package, task, and protected body
1134 -- stubs where it points to the corresponding spec of the stub. Due to
1135 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
1137 -- Corresponding_Stub (Node3-Sem)
1138 -- This field is present in an N_Subunit node. It holds the node in
1139 -- the parent unit that is the stub declaration for the subunit. It is
1140 -- set when analysis of the stub forces loading of the proper body. If
1141 -- expansion of the proper body creates new declarative nodes, they are
1142 -- inserted at the point of the corresponding_stub.
1144 -- Dcheck_Function (Node5-Sem)
1145 -- This field is present in an N_Variant node, It references the entity
1146 -- for the discriminant checking function for the variant.
1148 -- Default_Expression (Node5-Sem)
1149 -- This field is Empty if there is no default expression. If there is a
1150 -- simple default expression (one with no side effects), then this field
1151 -- simply contains a copy of the Expression field (both point to the tree
1152 -- for the default expression). Default_Expression is used for
1153 -- conformance checking.
1155 -- Default_Storage_Pool (Node3-Sem)
1156 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
1157 -- copy of Opt.Default_Pool at the end of the compilation unit. See
1158 -- package Opt for details. This is used for inheriting the
1159 -- Default_Storage_Pool in child units.
1161 -- Discr_Check_Funcs_Built (Flag11-Sem)
1162 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
1163 -- discriminant checking functions are constructed. The purpose is to
1164 -- avoid attempting to set these functions more than once.
1166 -- Do_Accessibility_Check (Flag13-Sem)
1167 -- This flag is set on N_Parameter_Specification nodes to indicate
1168 -- that an accessibility check is required for the parameter. It is
1169 -- not yet decided who takes care of this check (TBD ???).
1171 -- Do_Discriminant_Check (Flag3-Sem)
1172 -- This flag is set on N_Selected_Component nodes to indicate that a
1173 -- discriminant check is required using the discriminant check routine
1174 -- associated with the selector. The actual check is generated by the
1175 -- expander when processing selected components. In the case of
1176 -- Unchecked_Union, the flag is also set, but no discriminant check
1177 -- routine is associated with the selector, and the expander does not
1178 -- generate a check. This flag is also present in assignment statements
1179 -- (and set if the assignment requires a discriminant check), and in type
1180 -- conversion nodes (and set if the conversion requires a check).
1182 -- Do_Division_Check (Flag13-Sem)
1183 -- This flag is set on a division operator (/ mod rem) to indicate
1184 -- that a zero divide check is required. The actual check is dealt
1185 -- with by the backend (all the front end does is to set the flag).
1187 -- Do_Length_Check (Flag4-Sem)
1188 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1189 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1190 -- is required. It is not determined who deals with this flag (???).
1192 -- Do_Overflow_Check (Flag17-Sem)
1193 -- This flag is set on an operator where an overflow check is required on
1194 -- the operation. The actual check is dealt with by the backend (all the
1195 -- front end does is to set the flag). The other cases where this flag is
1196 -- used is on a Type_Conversion node and for attribute reference nodes.
1197 -- For a type conversion, it means that the conversion is from one base
1198 -- type to another, and the value may not fit in the target base type.
1199 -- See also the description of Do_Range_Check for this case. The only
1200 -- attribute references which use this flag are Pred and Succ, where it
1201 -- means that the result should be checked for going outside the base
1202 -- range. Note that this flag is not set for modular types. This flag is
1203 -- also set on if and case expression nodes if we are operating in either
1204 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1205 -- properly process overflow checking for dependent expressions).
1207 -- Do_Range_Check (Flag9-Sem)
1208 -- This flag is set on an expression which appears in a context where a
1209 -- range check is required. The target type is clear from the context.
1210 -- The contexts in which this flag can appear are the following:
1212 -- Right side of an assignment. In this case the target type is
1213 -- taken from the left side of the assignment, which is referenced
1214 -- by the Name of the N_Assignment_Statement node.
1216 -- Subscript expressions in an indexed component. In this case the
1217 -- target type is determined from the type of the array, which is
1218 -- referenced by the Prefix of the N_Indexed_Component node.
1220 -- Argument expression for a parameter, appearing either directly in
1221 -- the Parameter_Associations list of a call or as the Expression of an
1222 -- N_Parameter_Association node that appears in this list. In either
1223 -- case, the check is against the type of the formal. Note that the
1224 -- flag is relevant only in IN and IN OUT parameters, and will be
1225 -- ignored for OUT parameters, where no check is required in the call,
1226 -- and if a check is required on the return, it is generated explicitly
1227 -- with a type conversion.
1229 -- Initialization expression for the initial value in an object
1230 -- declaration. In this case the Do_Range_Check flag is set on
1231 -- the initialization expression, and the check is against the
1232 -- range of the type of the object being declared. This includes the
1233 -- cases of expressions providing default discriminant values, and
1234 -- expressions used to initialize record components.
1236 -- The expression of a type conversion. In this case the range check is
1237 -- against the target type of the conversion. See also the use of
1238 -- Do_Overflow_Check on a type conversion. The distinction is that the
1239 -- overflow check protects against a value that is outside the range of
1240 -- the target base type, whereas a range check checks that the
1241 -- resulting value (which is a value of the base type of the target
1242 -- type), satisfies the range constraint of the target type.
1244 -- Note: when a range check is required in contexts other than those
1245 -- listed above (e.g. in a return statement), an additional type
1246 -- conversion node is introduced to represent the required check.
1248 -- A special case arises for the arguments of the Pred/Succ attributes.
1249 -- Here the range check needed is against First + 1 .. Last (Pred) or
1250 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
1251 -- these checks are what would be performed within the implicit body of
1252 -- the functions that correspond to these attributes. In these cases,
1253 -- the Do_Range check flag is set on the argument to the attribute
1254 -- function, and the back end must special case the appropriate range
1255 -- to check against.
1257 -- Do_Storage_Check (Flag17-Sem)
1258 -- This flag is set in an N_Allocator node to indicate that a storage
1259 -- check is required for the allocation, or in an N_Subprogram_Body node
1260 -- to indicate that a stack check is required in the subprogram prologue.
1261 -- The N_Allocator case is handled by the routine that expands the call
1262 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1263 -- backend, and all the semantics does is set the flag.
1265 -- Do_Tag_Check (Flag13-Sem)
1266 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1267 -- N_Procedure_Call_Statement, N_Type_Conversion,
1268 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1269 -- node to indicate that the tag check can be suppressed. It is not
1270 -- yet decided how this flag is used (TBD ???).
1272 -- Elaborate_Present (Flag4-Sem)
1273 -- This flag is set in the N_With_Clause node to indicate that pragma
1274 -- Elaborate pragma appears for the with'ed units.
1276 -- Elaborate_All_Desirable (Flag9-Sem)
1277 -- This flag is set in the N_With_Clause mode to indicate that the static
1278 -- elaboration processing has determined that an Elaborate_All pragma is
1279 -- desirable for correct elaboration for this unit.
1281 -- Elaborate_All_Present (Flag14-Sem)
1282 -- This flag is set in the N_With_Clause node to indicate that a
1283 -- pragma Elaborate_All pragma appears for the with'ed units.
1285 -- Elaborate_Desirable (Flag11-Sem)
1286 -- This flag is set in the N_With_Clause mode to indicate that the static
1287 -- elaboration processing has determined that an Elaborate pragma is
1288 -- desirable for correct elaboration for this unit.
1290 -- Else_Actions (List3-Sem)
1291 -- This field is present in if expression nodes. During code
1292 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1293 -- actions at an appropriate place in the tree to get elaborated at the
1294 -- right time. For if expressions, we have to be sure that the actions
1295 -- for the Else branch are only elaborated if the condition is False.
1296 -- The Else_Actions field is used as a temporary parking place for
1297 -- these actions. The final tree is always rewritten to eliminate the
1298 -- need for this field, so in the tree passed to Gigi, this field is
1299 -- always set to No_List.
1301 -- Enclosing_Variant (Node2-Sem)
1302 -- This field is present in the N_Variant node and identifies the Node_Id
1303 -- corresponding to the immediately enclosing variant when the variant is
1304 -- nested, and N_Empty otherwise. Set during semantic processing of the
1305 -- variant part of a record type.
1307 -- Entity (Node4-Sem)
1308 -- Appears in all direct names (identifiers, character literals, and
1309 -- operator symbols), as well as expanded names, and attributes that
1310 -- denote entities, such as 'Class. Points to entity for corresponding
1311 -- defining occurrence. Set after name resolution. For identifiers in a
1312 -- WITH list, the corresponding defining occurrence is in a separately
1313 -- compiled file, and Entity must be set by the library Load procedure.
1315 -- Note: During name resolution, the value in Entity may be temporarily
1316 -- incorrect (e.g. during overload resolution, Entity is initially set to
1317 -- the first possible correct interpretation, and then later modified if
1318 -- necessary to contain the correct value after resolution).
1320 -- Note: This field overlaps Associated_Node, which is used during
1321 -- generic processing (see Sem_Ch12 for details). Note also that in
1322 -- generic templates, this means that the Entity field does not always
1323 -- point to an Entity. Since the back end is expected to ignore generic
1324 -- templates, this is harmless.
1326 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1327 -- It is used only for stream attributes definition clauses. In this
1328 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1329 -- conceptually at the point of the clause. Thus the visibility of the
1330 -- attribute definition clause (in the sense of 8.3(23) as amended by
1331 -- AI-195) can be checked by testing the visibility of that subprogram.
1333 -- Note: Normally the Entity field of an identifier points to the entity
1334 -- for the corresponding defining identifier, and hence the Chars field
1335 -- of an identifier will match the Chars field of the entity. However,
1336 -- there is no requirement that these match, and there are obscure cases
1337 -- of generated code where they do not match.
1339 -- Note: Ada 2012 aspect specifications require additional links between
1340 -- identifiers and various attributes. These attributes can be of
1341 -- arbitrary types, and the entity field of identifiers that denote
1342 -- aspects must be used to store arbitrary expressions for later semantic
1343 -- checks. See section on aspect specifications for details.
1345 -- Entity_Or_Associated_Node (Node4-Sem)
1346 -- A synonym for both Entity and Associated_Node. Used by convention in
1347 -- the code when referencing this field in cases where it is not known
1348 -- whether the field contains an Entity or an Associated_Node.
1350 -- Etype (Node5-Sem)
1351 -- Appears in all expression nodes, all direct names, and all entities.
1352 -- Points to the entity for the related type. Set after type resolution.
1353 -- Normally this is the actual subtype of the expression. However, in
1354 -- certain contexts such as the right side of an assignment, subscripts,
1355 -- arguments to calls, returned value in a function, initial value etc.
1356 -- it is the desired target type. In the event that this is different
1357 -- from the actual type, the Do_Range_Check flag will be set if a range
1358 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1359 -- points to an essentially arbitrary choice from the possible set of
1360 -- types.
1362 -- Exception_Junk (Flag8-Sem)
1363 -- This flag is set in a various nodes appearing in a statement sequence
1364 -- to indicate that the corresponding node is an artifact of the
1365 -- generated code for exception handling, and should be ignored when
1366 -- analyzing the control flow of the relevant sequence of statements
1367 -- (e.g. to check that it does not end with a bad return statement).
1369 -- Exception_Label (Node5-Sem)
1370 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1371 -- to be used for transforming the corresponding exception into a goto,
1372 -- or contains Empty, if this exception is not to be transformed. Also
1373 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1374 -- that there may be a local raise for the handler, so that expansion
1375 -- to allow a goto is required (and this field contains the label for
1376 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1378 -- Expansion_Delayed (Flag11-Sem)
1379 -- Set on aggregates and extension aggregates that need a top-down rather
1380 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1381 -- up. For nested aggregates the expansion is delayed until the enclosing
1382 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1383 -- delay it we set this flag. This is done to avoid creating a temporary
1384 -- for each level of a nested aggregate, and also to prevent the
1385 -- premature generation of constraint checks. This is also a requirement
1386 -- if we want to generate the proper attachment to the internal????
1387 -- finalization lists (for record with controlled components). Top down
1388 -- expansion of aggregates is also used for in-place array aggregate
1389 -- assignment or initialization. When the full context is known, the
1390 -- target of the assignment or initialization is used to generate the
1391 -- left-hand side of individual assignment to each sub-component.
1393 -- Expression_Copy (Node2-Sem)
1394 -- Present in N_Pragma_Argument_Association nodes. Contains a copy of the
1395 -- original expression. This field is best used to store pragma-dependent
1396 -- modifications performed on the original expression such as replacement
1397 -- of the current type instance or substitutions of primitives.
1399 -- First_Inlined_Subprogram (Node3-Sem)
1400 -- Present in the N_Compilation_Unit node for the main program. Points
1401 -- to a chain of entities for subprograms that are to be inlined. The
1402 -- Next_Inlined_Subprogram field of these entities is used as a link
1403 -- pointer with Empty marking the end of the list. This field is Empty
1404 -- if there are no inlined subprograms or inlining is not active.
1406 -- First_Named_Actual (Node4-Sem)
1407 -- Present in procedure call statement and function call nodes, and also
1408 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1409 -- named parameter where parameters are ordered by declaration order (as
1410 -- opposed to the actual order in the call which may be different due to
1411 -- named associations). Note: this field points to the explicit actual
1412 -- parameter itself, not the N_Parameter_Association node (its parent).
1414 -- First_Real_Statement (Node2-Sem)
1415 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1416 -- Empty. Used only when declarations are moved into the statement part
1417 -- of a construct as a result of wrapping an AT END handler that is
1418 -- required to cover the declarations. In this case, this field is used
1419 -- to remember the location in the statements list of the first real
1420 -- statement, i.e. the statement that used to be first in the statement
1421 -- list before the declarations were prepended.
1423 -- First_Subtype_Link (Node5-Sem)
1424 -- Present in N_Freeze_Entity node for an anonymous base type that is
1425 -- implicitly created by the declaration of a first subtype. It points
1426 -- to the entity for the first subtype.
1428 -- Float_Truncate (Flag11-Sem)
1429 -- A flag present in type conversion nodes. This is used for float to
1430 -- integer conversions where truncation is required rather than rounding.
1432 -- Forwards_OK (Flag5-Sem)
1433 -- A flag present in the N_Assignment_Statement node. It is used only
1434 -- if the type being assigned is an array type, and is set if analysis
1435 -- determines that it is definitely safe to do the copy forwards, i.e.
1436 -- starting at the lowest addressed element. This is the case if either
1437 -- the operands do not overlap, or they may overlap, but if they do,
1438 -- then the left operand is at a lower address than the right operand.
1440 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1441 -- means that the front end could not determine that either direction is
1442 -- definitely safe, and a runtime check may be required if the backend
1443 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1444 -- set, it means that the front end can assure no overlap of operands.
1446 -- From_Aspect_Specification (Flag13-Sem)
1447 -- Processing of aspect specifications typically results in insertion in
1448 -- the tree of corresponding pragma or attribute definition clause nodes.
1449 -- These generated nodes have the From_Aspect_Specification flag set to
1450 -- indicate that they came from aspect specifications originally.
1452 -- From_At_End (Flag4-Sem)
1453 -- This flag is set on an N_Raise_Statement node if it corresponds to
1454 -- the reraise statement generated as the last statement of an AT END
1455 -- handler when SJLJ exception handling is active. It is used to stop
1456 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1457 -- because if the restriction is set, the reraise is not generated.
1459 -- From_At_Mod (Flag4-Sem)
1460 -- This flag is set on the attribute definition clause node that is
1461 -- generated by a transformation of an at mod phrase in a record
1462 -- representation clause. This is used to give slightly different (Ada 83
1463 -- compatible) semantics to such a clause, namely it is used to specify a
1464 -- minimum acceptable alignment for the base type and all subtypes. In
1465 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1466 -- must be a multiple of the given value, and the representation clause
1467 -- is considered to be type specific instead of subtype specific.
1469 -- From_Conditional_Expression (Flag1-Sem)
1470 -- This flag is set on if and case statements generated by the expansion
1471 -- of if and case expressions respectively. The flag is used to suppress
1472 -- any finalization of controlled objects found within these statements.
1474 -- From_Default (Flag6-Sem)
1475 -- This flag is set on the subprogram renaming declaration created in an
1476 -- instance for a formal subprogram, when the formal is declared with a
1477 -- box, and there is no explicit actual. If the flag is present, the
1478 -- declaration is treated as an implicit reference to the formal in the
1479 -- ali file.
1481 -- Generalized_Indexing (Node4-Sem)
1482 -- Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1483 -- that are Ada 2012 container indexing operations. The value of the
1484 -- attribute is a function call (possibly dereferenced) that corresponds
1485 -- to the proper expansion of the source indexing operation. Before
1486 -- expansion, the source node is rewritten as the resolved generalized
1487 -- indexing. In ASIS mode, the expansion does not take place, so that
1488 -- the source is preserved and properly annotated with types.
1490 -- Generic_Parent (Node5-Sem)
1491 -- Generic_Parent is defined on declaration nodes that are instances. The
1492 -- value of Generic_Parent is the generic entity from which the instance
1493 -- is obtained.
1495 -- Generic_Parent_Type (Node4-Sem)
1496 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1497 -- actuals of formal private and derived types. Within the instance, the
1498 -- operations on the actual are those inherited from the parent. For a
1499 -- formal private type, the parent type is the generic type itself. The
1500 -- Generic_Parent_Type is also used in an instance to determine whether a
1501 -- private operation overrides an inherited one.
1503 -- Handler_List_Entry (Node2-Sem)
1504 -- This field is present in N_Object_Declaration nodes. It is set only
1505 -- for the Handler_Record entry generated for an exception in zero cost
1506 -- exception handling mode. It references the corresponding item in the
1507 -- handler list, and is used to delete this entry if the corresponding
1508 -- handler is deleted during optimization. For further details on why
1509 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1511 -- Has_Dereference_Action (Flag13-Sem)
1512 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1513 -- indicate that the expansion has aready produced a call to primitive
1514 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1515 -- Such dereference actions are produced for debugging purposes.
1517 -- Has_Dynamic_Length_Check (Flag10-Sem)
1518 -- This flag is present in all expression nodes. It is set to indicate
1519 -- that one of the routines in unit Checks has generated a length check
1520 -- action which has been inserted at the flagged node. This is used to
1521 -- avoid the generation of duplicate checks.
1523 -- Has_Dynamic_Range_Check (Flag12-Sem)
1524 -- This flag is present in N_Subtype_Declaration nodes and on all
1525 -- expression nodes. It is set to indicate that one of the routines in
1526 -- unit Checks has generated a range check action which has been inserted
1527 -- at the flagged node. This is used to avoid the generation of duplicate
1528 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1529 -- it mean in that context???
1531 -- Has_Local_Raise (Flag8-Sem)
1532 -- Present in exception handler nodes. Set if the handler can be entered
1533 -- via a local raise that gets transformed to a goto statement. This will
1534 -- always be set if Local_Raise_Statements is non-empty, but can also be
1535 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1536 -- nodes requiring generation of back end checks.
1538 -- Has_No_Elaboration_Code (Flag17-Sem)
1539 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1540 -- or not elaboration code is present for this unit. It is initially set
1541 -- true for subprogram specs and bodies and for all generic units and
1542 -- false for non-generic package specs and bodies. Gigi may set the flag
1543 -- in the non-generic package case if it determines that no elaboration
1544 -- code is generated. Note that this flag is not related to the
1545 -- Is_Preelaborated status, there can be preelaborated packages that
1546 -- generate elaboration code, and non-preelaborated packages which do
1547 -- not generate elaboration code.
1549 -- Has_Pragma_Suppress_All (Flag14-Sem)
1550 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1551 -- pragma appears anywhere in the unit. This accommodates the rather
1552 -- strange placement rules of other compilers (DEC permits it at the
1553 -- end of a unit, and Rational allows it as a program unit pragma). We
1554 -- allow it anywhere at all, and consider it equivalent to a pragma
1555 -- Suppress (All_Checks) appearing at the start of the configuration
1556 -- pragmas for the unit.
1558 -- Has_Private_View (Flag11-Sem)
1559 -- A flag present in generic nodes that have an entity, to indicate that
1560 -- the node has a private type. Used to exchange private and full
1561 -- declarations if the visibility at instantiation is different from the
1562 -- visibility at generic definition.
1564 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1565 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1566 -- flag the presence of a pragma Relative_Deadline.
1568 -- Has_Self_Reference (Flag13-Sem)
1569 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1570 -- of the expressions contains an access attribute reference to the
1571 -- enclosing type. Such a self-reference can only appear in default-
1572 -- initialized aggregate for a record type.
1574 -- Has_SP_Choice (Flag15-Sem)
1575 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1576 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1577 -- True if the Discrete_Choices list has at least one occurrence of a
1578 -- statically predicated subtype.
1580 -- Has_Storage_Size_Pragma (Flag5-Sem)
1581 -- A flag present in an N_Task_Definition node to flag the presence of a
1582 -- Storage_Size pragma.
1584 -- Has_Target_Names (Flag8-Sem)
1585 -- Present in assignment statements. Indicates that the RHS contains
1586 -- target names (see AI12-0125-3) and must be expanded accordingly.
1588 -- Has_Wide_Character (Flag11-Sem)
1589 -- Present in string literals, set if any wide character (i.e. character
1590 -- code outside the Character range but within Wide_Character range)
1591 -- appears in the string. Used to implement pragma preference rules.
1593 -- Has_Wide_Wide_Character (Flag13-Sem)
1594 -- Present in string literals, set if any wide character (i.e. character
1595 -- code outside the Wide_Character range) appears in the string. Used to
1596 -- implement pragma preference rules.
1598 -- Header_Size_Added (Flag11-Sem)
1599 -- Present in N_Attribute_Reference nodes, set only for attribute
1600 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1601 -- hidden list header used by the runtime finalization support has been
1602 -- added to the size of the prefix. The flag also prevents the infinite
1603 -- expansion of the same attribute in the said context.
1605 -- Hidden_By_Use_Clause (Elist5-Sem)
1606 -- An entity list present in use clauses that appear within
1607 -- instantiations. For the resolution of local entities, entities
1608 -- introduced by these use clauses have priority over global ones,
1609 -- and outer entities must be explicitly hidden/restored on exit.
1611 -- Implicit_With (Flag16-Sem)
1612 -- Present in N_With_Clause nodes. The flag indicates that the clause
1613 -- does not comes from source and introduces an implicit dependency on
1614 -- a particular unit. Such implicit with clauses are generated by:
1616 -- * ABE mechanism - The static elaboration model of both the default
1617 -- and the legacy ABE mechanism use with clauses to encode implicit
1618 -- Elaborate[_All] pragmas.
1620 -- * Analysis - A with clause for child unit A.B.C is equivalent to
1621 -- a series of clauses that with A, A.B, and A.B.C. Manipulation of
1622 -- contexts utilizes implicit with clauses to emulate the visibility
1623 -- of a particular unit.
1625 -- * RTSfind - The compiler generates code which references entities
1626 -- from the runtime.
1628 -- Import_Interface_Present (Flag16-Sem)
1629 -- This flag is set in an Interface or Import pragma if a matching
1630 -- pragma of the other kind is also present. This is used to avoid
1631 -- generating some unwanted error messages.
1633 -- Includes_Infinities (Flag11-Sem)
1634 -- This flag is present in N_Range nodes. It is set for the range of
1635 -- unconstrained float types defined in Standard, which include not only
1636 -- the given range of values, but also legitimately can include infinite
1637 -- values. This flag is false for any float type for which an explicit
1638 -- range is given by the programmer, even if that range is identical to
1639 -- the range for Float.
1641 -- Incomplete_View (Node2-Sem)
1642 -- Present in full type declarations that are completions of incomplete
1643 -- type declarations. Denotes the corresponding incomplete type
1644 -- declaration. Used to simplify the retrieval of primitive operations
1645 -- that may be declared between the partial and the full view of an
1646 -- untagged type.
1648 -- Inherited_Discriminant (Flag13-Sem)
1649 -- This flag is present in N_Component_Association nodes. It indicates
1650 -- that a given component association in an extension aggregate is the
1651 -- value obtained from a constraint on an ancestor. Used to prevent
1652 -- double expansion when the aggregate has expansion delayed.
1654 -- Instance_Spec (Node5-Sem)
1655 -- This field is present in generic instantiation nodes, and also in
1656 -- formal package declaration nodes (formal package declarations are
1657 -- treated in a manner very similar to package instantiations). It points
1658 -- to the node for the spec of the instance, inserted as part of the
1659 -- semantic processing for instantiations in Sem_Ch12.
1661 -- Is_Abort_Block (Flag4-Sem)
1662 -- Present in N_Block_Statement nodes. True if the block protects a list
1663 -- of statements with an Abort_Defer / Abort_Undefer_Direct pair.
1665 -- Is_Accessibility_Actual (Flag13-Sem)
1666 -- Present in N_Parameter_Association nodes. True if the parameter is
1667 -- an extra actual that carries the accessibility level of the actual
1668 -- for an access parameter, in a function that dispatches on result and
1669 -- is called in a dispatching context. Used to prevent a formal/actual
1670 -- mismatch when the call is rewritten as a dispatching call.
1672 -- Is_Analyzed_Pragma (Flag5-Sem)
1673 -- Present in N_Pragma nodes. Set for delayed pragmas that require a two
1674 -- step analysis. The initial step is peformed by routine Analyze_Pragma
1675 -- and verifies the overall legality of the pragma. The second step takes
1676 -- place in the various Analyze_xxx_In_Decl_Part routines which perform
1677 -- full analysis. The flag prevents the reanalysis of a delayed pragma.
1679 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1680 -- A flag set in a Block_Statement node to indicate that it is the
1681 -- expansion of an asynchronous entry call. Such a block needs cleanup
1682 -- handler to assure that the call is cancelled.
1684 -- Is_Boolean_Aspect (Flag16-Sem)
1685 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1686 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1688 -- Is_Checked (Flag11-Sem)
1689 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1690 -- assertion aspect or pragma, or check pragma for an assertion, that
1691 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1692 -- is set (they cannot both be set), then this means that the status of
1693 -- the pragma has been checked at the appropriate point and should not
1694 -- be further modified (in some cases these flags are copied when a
1695 -- pragma is rewritten).
1697 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
1698 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1699 -- related to a checked Ghost entity or encloses a checked Ghost entity.
1700 -- This flag has no relation to Is_Checked.
1702 -- Is_Component_Left_Opnd (Flag13-Sem)
1703 -- Is_Component_Right_Opnd (Flag14-Sem)
1704 -- Present in concatenation nodes, to indicate that the corresponding
1705 -- operand is of the component type of the result. Used in resolving
1706 -- concatenation nodes in instances.
1708 -- Is_Controlling_Actual (Flag16-Sem)
1709 -- This flag is set on an expression that is a controlling argument in
1710 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1711 -- details of its use.
1713 -- Is_Declaration_Level_Node (Flag5-Sem)
1714 -- Present in call marker and instantiation nodes. Set when the constuct
1715 -- appears within the declarations of a block statement, an entry body,
1716 -- a subprogram body, or a task body. The flag aids the ABE Processing
1717 -- phase to catch certain forms of guaranteed ABEs.
1719 -- Is_Delayed_Aspect (Flag14-Sem)
1720 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1721 -- come from aspect specifications, where the evaluation of the aspect
1722 -- must be delayed to the freeze point. This flag is also set True in
1723 -- the corresponding N_Aspect_Specification node.
1725 -- Is_Disabled (Flag15-Sem)
1726 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1727 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1728 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1729 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1730 -- If this flag is set, the aspect or policy is not analyzed for semantic
1731 -- correctness, so any expressions etc will not be marked as analyzed.
1733 -- Is_Dispatching_Call (Flag6-Sem)
1734 -- Present in call marker nodes. Set when the related call which prompted
1735 -- the creation of the marker is dispatching.
1737 -- Is_Dynamic_Coextension (Flag18-Sem)
1738 -- Present in allocator nodes, to indicate that this is an allocator
1739 -- for an access discriminant of a dynamically allocated object. The
1740 -- coextension must be deallocated and finalized at the same time as
1741 -- the enclosing object.
1743 -- Is_Effective_Use_Clause (Flag1-Sem)
1744 -- Present in both N_Use_Type_Clause and N_Use_Package_Clause to indicate
1745 -- a use clause is "used" in the current source.
1747 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
1748 -- Present in the following nodes:
1750 -- assignment statement
1751 -- attribute reference
1752 -- call marker
1753 -- entry call statement
1754 -- expanded name
1755 -- function call
1756 -- function instantiation
1757 -- identifier
1758 -- package instantiation
1759 -- procedure call statement
1760 -- procedure instantiation
1761 -- requeue statement
1763 -- Set when the node appears within a context which allows the generation
1764 -- of run-time ABE checks. This flag detemines whether the ABE Processing
1765 -- phase generates conditional ABE checks and guaranteed ABE failures.
1767 -- Is_Elaboration_Code (Flag9-Sem)
1768 -- Present in assignment statements. Set for an assignment which updates
1769 -- the elaboration flag of a package or subprogram when the corresponding
1770 -- body is successfully elaborated.
1772 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
1773 -- Present in the following nodes:
1775 -- attribute reference
1776 -- call marker
1777 -- entry call statement
1778 -- function call
1779 -- function instantiation
1780 -- package instantiation
1781 -- procedure call statement
1782 -- procedure instantiation
1783 -- requeue statement
1785 -- Set when the node appears within a context where elaboration warnings
1786 -- are enabled. This flag determines whether the ABE processing phase
1787 -- generates diagnostics on various elaboration issues.
1789 -- Is_Entry_Barrier_Function (Flag8-Sem)
1790 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1791 -- nodes which emulate the barrier function of a protected entry body.
1792 -- The flag is used when checking for incorrect use of Current_Task.
1794 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1795 -- This flag is set in an N_Function_Call node to indicate that the extra
1796 -- actuals to support a build-in-place style of call have been added to
1797 -- the call.
1799 -- Is_Expanded_Contract (Flag1-Sem)
1800 -- Present in N_Contract nodes. Set if the contract has already undergone
1801 -- expansion activities.
1803 -- Is_Finalization_Wrapper (Flag9-Sem)
1804 -- This flag is present in N_Block_Statement nodes. It is set when the
1805 -- block acts as a wrapper of a handled construct which has controlled
1806 -- objects. The wrapper prevents interference between exception handlers
1807 -- and At_End handlers.
1809 -- Is_Generic_Contract_Pragma (Flag2-Sem)
1810 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1811 -- a source construct, applies to a generic unit or its body, and denotes
1812 -- one of the following contract-related annotations:
1813 -- Abstract_State
1814 -- Contract_Cases
1815 -- Depends
1816 -- Extensions_Visible
1817 -- Global
1818 -- Initial_Condition
1819 -- Initializes
1820 -- Post
1821 -- Post_Class
1822 -- Postcondition
1823 -- Pre
1824 -- Pre_Class
1825 -- Precondition
1826 -- Refined_Depends
1827 -- Refined_Global
1828 -- Refined_Post
1829 -- Refined_State
1830 -- Test_Case
1832 -- Is_Ignored (Flag9-Sem)
1833 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1834 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1835 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1836 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1837 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1838 -- gives a policy for the aspect or pragma, then there are two cases. For
1839 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1840 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1841 -- ignored because of the absence of a -gnata switch. For any other
1842 -- aspects or pragmas, the flag is off. If this flag is set, the
1843 -- aspect/pragma is fully analyzed and checked for other syntactic
1844 -- and semantic errors, but it does not have any semantic effect.
1846 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
1847 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1848 -- related to an ignored Ghost entity or encloses ignored Ghost entity.
1849 -- This flag has no relation to Is_Ignored.
1851 -- Is_In_Discriminant_Check (Flag11-Sem)
1852 -- This flag is present in a selected component, and is used to indicate
1853 -- that the reference occurs within a discriminant check. The
1854 -- significance is that optimizations based on assuming that the
1855 -- discriminant check has a correct value cannot be performed in this
1856 -- case (or the discriminant check may be optimized away).
1858 -- Is_Inherited_Pragma (Flag4-Sem)
1859 -- This flag is set in an N_Pragma node that appears in a N_Contract node
1860 -- to indicate that the pragma has been inherited from a parent context.
1862 -- Is_Initialization_Block (Flag1-Sem)
1863 -- Defined in block nodes. Set when the block statement was created by
1864 -- the finalization machinery to wrap initialization statements. This
1865 -- flag aids the ABE Processing phase to suppress the diagnostics of
1866 -- finalization actions in initialization contexts.
1868 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
1869 -- NOTE: this flag is shared between the legacy ABE mechanism and the
1870 -- default ABE mechanism.
1872 -- Present in the following nodes:
1874 -- call marker
1875 -- formal package declaration
1876 -- function call
1877 -- function instantiation
1878 -- package instantiation
1879 -- procedure call statement
1880 -- procedure instantiation
1882 -- Set when the elaboration or evaluation of the scenario results in
1883 -- a guaranteed ABE. The flag is used to suppress the instantiation of
1884 -- generic bodies because gigi cannot handle certain forms of premature
1885 -- instantiation, as well as to prevent the reexamination of the node by
1886 -- the ABE Processing phase.
1888 -- Is_Machine_Number (Flag11-Sem)
1889 -- This flag is set in an N_Real_Literal node to indicate that the value
1890 -- is a machine number. This avoids some unnecessary cases of converting
1891 -- real literals to machine numbers.
1893 -- Is_Null_Loop (Flag16-Sem)
1894 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1895 -- can be determined to be null at compile time. This is used to remove
1896 -- the loop entirely at expansion time.
1898 -- Is_Overloaded (Flag5-Sem)
1899 -- A flag present in all expression nodes. Used temporarily during
1900 -- overloading determination. The setting of this flag is not relevant
1901 -- once overloading analysis is complete.
1903 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1904 -- A flag present only in N_Op_Expon nodes. It is set when the
1905 -- exponentiation is of the form 2 ** N, where the type of N is an
1906 -- unsigned integral subtype whose size does not exceed the size of
1907 -- Standard_Integer (i.e. a type that can be safely converted to
1908 -- Natural), and the exponentiation appears as the right operand of an
1909 -- integer multiplication or an integer division where the dividend is
1910 -- unsigned. It is also required that overflow checking is off for both
1911 -- the exponentiation and the multiply/divide node. If this set of
1912 -- conditions holds, and the flag is set, then the division or
1913 -- multiplication can be (and is) converted to a shift.
1915 -- Is_Prefixed_Call (Flag17-Sem)
1916 -- This flag is set in a selected component within a generic unit, if
1917 -- it resolves to a prefixed call to a primitive operation. The flag
1918 -- is used to prevent accidental overloadings in an instance, when a
1919 -- primitive operation and a private record component may be homographs.
1921 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1922 -- A flag set in a Subprogram_Body block to indicate that it is the
1923 -- implementation of a protected subprogram. Such a body needs cleanup
1924 -- handler to make sure that the associated protected object is unlocked
1925 -- when the subprogram completes.
1927 -- Is_Qualified_Universal_Literal (Flag4-Sem)
1928 -- Present in N_Qualified_Expression nodes. Set when the qualification is
1929 -- converting a universal literal to a specific type. Such qualifiers aid
1930 -- the resolution of accidental overloading of binary or unary operators
1931 -- which may occur in instances.
1933 -- Is_Read (Flag1-Sem)
1934 -- Present in variable reference markers. Set when the original variable
1935 -- reference constitues a read of the variable.
1937 -- Is_Source_Call (Flag4-Sem)
1938 -- Present in call marker nodes. Set when the related call came from
1939 -- source.
1941 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
1942 -- Present in nodes which represent an elaboration scenario. Those are
1943 -- assignment statement, attribute reference, call marker, entry call
1944 -- statement, expanded name, function call, identifier, instantiation,
1945 -- procedure call statement, and requeue statement nodes. Set when the
1946 -- node appears within a context subject to SPARK_Mode On. This flag
1947 -- determines when the SPARK model of elaboration be activated by the
1948 -- ABE Processing phase.
1950 -- Is_Static_Coextension (Flag14-Sem)
1951 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1952 -- of an object allocated on the stack rather than the heap.
1954 -- Is_Static_Expression (Flag6-Sem)
1955 -- Indicates that an expression is a static expression according to the
1956 -- rules in (RM 4.9). Note that it is possible for this flag to be set
1957 -- when Raises_Constraint_Error is also set. In practice almost all cases
1958 -- where a static expression is required do not allow an expression which
1959 -- raises Constraint_Error, so almost always, callers should call the
1960 -- Is_Ok_Static_Expression routine instead of testing this flag. See
1961 -- spec of package Sem_Eval for full details on the use of this flag.
1963 -- Is_Subprogram_Descriptor (Flag16-Sem)
1964 -- Present in N_Object_Declaration, and set only for the object
1965 -- declaration generated for a subprogram descriptor in fast exception
1966 -- mode. See Exp_Ch11 for details of use.
1968 -- Is_Task_Allocation_Block (Flag6-Sem)
1969 -- A flag set in a Block_Statement node to indicate that it is the
1970 -- expansion of a task allocator, or the allocator of an object
1971 -- containing tasks. Such a block requires a cleanup handler to call
1972 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1973 -- allocated but not activated when the allocator completes abnormally.
1975 -- Is_Task_Body_Procedure (Flag1-Sem)
1976 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1977 -- nodes which emulate the body of a task unit.
1979 -- Is_Task_Master (Flag5-Sem)
1980 -- A flag set in a Subprogram_Body, Block_Statement, or Task_Body node to
1981 -- indicate that the construct is a task master (i.e. has declared tasks
1982 -- or declares an access to a task type).
1984 -- Is_Write (Flag2-Sem)
1985 -- Present in variable reference markers. Set when the original variable
1986 -- reference constitues a write of the variable.
1988 -- Itype (Node1-Sem)
1989 -- Used in N_Itype_Reference node to reference an itype for which it is
1990 -- important to ensure that it is defined. See description of this node
1991 -- for further details.
1993 -- Kill_Range_Check (Flag11-Sem)
1994 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1995 -- result should not be subjected to range checks. This is used for the
1996 -- implementation of Normalize_Scalars.
1998 -- Label_Construct (Node2-Sem)
1999 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
2000 -- N_Block_Statement or N_Loop_Statement node to which the label
2001 -- declaration applies. This attribute is used both in the compiler and
2002 -- in the implementation of ASIS queries. The field is left empty for the
2003 -- special labels generated as part of expanding raise statements with a
2004 -- local exception handler.
2006 -- Library_Unit (Node4-Sem)
2007 -- In a stub node, Library_Unit points to the compilation unit node of
2008 -- the corresponding subunit.
2010 -- In a with clause node, Library_Unit points to the spec of the with'ed
2011 -- unit.
2013 -- In a compilation unit node, the usage depends on the unit type:
2015 -- For a library unit body, Library_Unit points to the compilation unit
2016 -- node of the corresponding spec, unless it's a subprogram body with
2017 -- Acts_As_Spec set, in which case it points to itself.
2019 -- For a spec, Library_Unit points to the compilation unit node of the
2020 -- corresponding body, if present. The body will be present if the spec
2021 -- is or contains generics that we needed to instantiate. Similarly, the
2022 -- body will be present if we needed it for inlining purposes. Thus, if
2023 -- we have a spec/body pair, both of which are present, they point to
2024 -- each other via Library_Unit.
2026 -- For a subunit, Library_Unit points to the compilation unit node of
2027 -- the parent body.
2028 -- ??? not (always) true, in (at least some, maybe all?) cases it points
2029 -- to the corresponding spec for the parent body.
2031 -- Note that this field is not used to hold the parent pointer for child
2032 -- unit (which might in any case need to use it for some other purpose as
2033 -- described above). Instead for a child unit, implicit with's are
2034 -- generated for all parents.
2036 -- Local_Raise_Statements (Elist1)
2037 -- This field is present in exception handler nodes. It is set to
2038 -- No_Elist in the normal case. If there is at least one raise statement
2039 -- which can potentially be handled as a local raise, then this field
2040 -- points to a list of raise nodes, which are calls to a routine to raise
2041 -- an exception. These are raise nodes which can be optimized into gotos
2042 -- if the handler turns out to meet the conditions which permit this
2043 -- transformation. Note that this does NOT include instances of the
2044 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
2045 -- handled by the back end (using the N_Push/N_Pop mechanism).
2047 -- Loop_Actions (List2-Sem)
2048 -- A list present in Component_Association nodes in array aggregates.
2049 -- Used to collect actions that must be executed within the loop because
2050 -- they may need to be evaluated anew each time through.
2052 -- Limited_View_Installed (Flag18-Sem)
2053 -- Present in With_Clauses and in package specifications. If set on
2054 -- with_clause, it indicates that this clause has created the current
2055 -- limited view of the designated package. On a package specification, it
2056 -- indicates that the limited view has already been created because the
2057 -- package is mentioned in a limited_with_clause in the closure of the
2058 -- unit being compiled.
2060 -- Local_Raise_Not_OK (Flag7-Sem)
2061 -- Present in N_Exception_Handler nodes. Set if the handler contains
2062 -- a construct (reraise statement, or call to subprogram in package
2063 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
2064 -- for a local raise (one that could otherwise be converted to a goto).
2066 -- Must_Be_Byte_Aligned (Flag14-Sem)
2067 -- This flag is present in N_Attribute_Reference nodes. It can be set
2068 -- only for the Address and Unrestricted_Access attributes. If set it
2069 -- means that the object for which the address/access is given must be on
2070 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
2071 -- of the object is to be made before taking the address (this copy is in
2072 -- the current scope on the stack frame). This is used for certain cases
2073 -- of code generated by the expander that passes parameters by address.
2075 -- The reason the copy is not made by the front end is that the back end
2076 -- has more information about type layout and may be able to (but is not
2077 -- guaranteed to) prevent making unnecessary copies.
2079 -- Must_Not_Freeze (Flag8-Sem)
2080 -- A flag present in all expression nodes. Normally expressions cause
2081 -- freezing as described in the RM. If this flag is set, then this is
2082 -- inhibited. This is used by the analyzer and expander to label nodes
2083 -- that are created by semantic analysis or expansion and which must not
2084 -- cause freezing even though they normally would. This flag is also
2085 -- present in an N_Subtype_Indication node, since we also use these in
2086 -- calls to Freeze_Expression.
2088 -- Next_Entity (Node2-Sem)
2089 -- Present in defining identifiers, defining character literals, and
2090 -- defining operator symbols (i.e. in all entities). The entities of a
2091 -- scope are chained, and this field is used as the forward pointer for
2092 -- this list. See Einfo for further details.
2094 -- Next_Exit_Statement (Node3-Sem)
2095 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
2096 -- chained (in reverse order of appearance) from the First_Exit_Statement
2097 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
2098 -- the next entry on this chain (Empty = end of list).
2100 -- Next_Implicit_With (Node3-Sem)
2101 -- Present in N_With_Clause. Part of a chain of with_clauses generated
2102 -- in rtsfind to indicate implicit dependencies on predefined units. Used
2103 -- to prevent multiple with_clauses for the same unit in a given context.
2104 -- A postorder traversal of the tree whose nodes are units and whose
2105 -- links are with_clauses defines the order in which CodePeer must
2106 -- examine a compiled unit and its full context. This ordering ensures
2107 -- that any subprogram call is examined after the subprogram declaration
2108 -- has been seen.
2110 -- Next_Named_Actual (Node4-Sem)
2111 -- Present in parameter association nodes. Set during semantic analysis
2112 -- to point to the next named parameter, where parameters are ordered by
2113 -- declaration order (as opposed to the actual order in the call, which
2114 -- may be different due to named associations). Not that this field
2115 -- points to the explicit actual parameter itself, not to the
2116 -- N_Parameter_Association node (its parent).
2118 -- Next_Pragma (Node1-Sem)
2119 -- Present in N_Pragma nodes. Used to create a linked list of pragma
2120 -- nodes. Currently used for two purposes:
2122 -- Create a list of linked Check_Policy pragmas. The head of this list
2123 -- is stored in Opt.Check_Policy_List (which has further details).
2125 -- Used by processing for Pre/Postcondition pragmas to store a list of
2126 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
2127 -- details).
2129 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
2130 -- the apply to the same construct. These are visible/private mode for
2131 -- a package spec and declarative/statement mode for package body.
2133 -- Next_Rep_Item (Node5-Sem)
2134 -- Present in pragma nodes, attribute definition nodes, enumeration rep
2135 -- clauses, record rep clauses, aspect specification nodes. Used to link
2136 -- representation items that apply to an entity. See full description of
2137 -- First_Rep_Item field in Einfo for further details.
2139 -- Next_Use_Clause (Node3-Sem)
2140 -- While use clauses are active during semantic processing, they are
2141 -- chained from the scope stack entry, using Next_Use_Clause as a link
2142 -- pointer, with Empty marking the end of the list. The head pointer is
2143 -- in the scope stack entry (First_Use_Clause). At the end of semantic
2144 -- processing (i.e. when Gigi sees the tree, the contents of this field
2145 -- is undefined and should not be read).
2147 -- No_Ctrl_Actions (Flag7-Sem)
2148 -- Present in N_Assignment_Statement to indicate that no Finalize nor
2149 -- Adjust should take place on this assignment even though the RHS is
2150 -- controlled. Also indicates that the primitive _assign should not be
2151 -- used for a tagged assignment. This is used in init procs and aggregate
2152 -- expansions where the generated assignments are initializations, not
2153 -- real assignments.
2155 -- No_Elaboration_Check (Flag4-Sem)
2156 -- NOTE: this flag is relevant only for the legacy ABE mechanism and
2157 -- should not be used outside of that context.
2159 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
2160 -- that no elaboration check is needed on the call, because it appears in
2161 -- the context of a local Suppress pragma. This is used on calls within
2162 -- task bodies, where the actual elaboration checks are applied after
2163 -- analysis, when the local scope stack is not present
2165 -- No_Entities_Ref_In_Spec (Flag8-Sem)
2166 -- Present in N_With_Clause nodes. Set if the with clause is on the
2167 -- package or subprogram spec where the main unit is the corresponding
2168 -- body, and no entities of the with'ed unit are referenced by the spec
2169 -- (an entity may still be referenced in the body, so this flag is used
2170 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
2171 -- full details).
2173 -- No_Initialization (Flag13-Sem)
2174 -- Present in N_Object_Declaration and N_Allocator to indicate that the
2175 -- object must not be initialized (by Initialize or call to an init
2176 -- proc). This is needed for controlled aggregates. When the Object
2177 -- declaration has an expression, this flag means that this expression
2178 -- should not be taken into account (needed for in place initialization
2179 -- with aggregates, and for object with an address clause, which are
2180 -- initialized with an assignment at freeze time).
2182 -- No_Minimize_Eliminate (Flag17-Sem)
2183 -- This flag is present in membership operator nodes (N_In/N_Not_In).
2184 -- It is used to indicate that processing for extended overflow checking
2185 -- modes is not required (this is used to prevent infinite recursion).
2187 -- No_Side_Effect_Removal (Flag17-Sem)
2188 -- Present in N_Function_Call nodes. Set when a function call does not
2189 -- require side effect removal. This attribute suppresses the generation
2190 -- of a temporary to capture the result of the function which eventually
2191 -- replaces the function call.
2193 -- No_Truncation (Flag17-Sem)
2194 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
2195 -- only if the RM_Size of the source is greater than the RM_Size of the
2196 -- target for scalar operands. Normally in such a case we truncate some
2197 -- higher order bits of the source, and then sign/zero extend the result
2198 -- to form the output value. But if this flag is set, then we do not do
2199 -- any truncation, so for example, if an 8 bit input is converted to 5
2200 -- bit result which is in fact stored in 8 bits, then the high order
2201 -- three bits of the target result will be copied from the source. This
2202 -- is used for properly setting out of range values for use by pragmas
2203 -- Initialize_Scalars and Normalize_Scalars.
2205 -- Null_Excluding_Subtype (Flag16)
2206 -- Present in N_Access_To_Object_Definition. Indicates that the subtype
2207 -- indication carries a null-exclusion indicator, which is distinct from
2208 -- the null-exclusion indicator that may precede the access keyword.
2210 -- Original_Discriminant (Node2-Sem)
2211 -- Present in identifiers. Used in references to discriminants that
2212 -- appear in generic units. Because the names of the discriminants may be
2213 -- different in an instance, we use this field to recover the position of
2214 -- the discriminant in the original type, and replace it with the
2215 -- discriminant at the same position in the instantiated type.
2217 -- Original_Entity (Node2-Sem)
2218 -- Present in numeric literals. Used to denote the named number that has
2219 -- been constant-folded into the given literal. If literal is from
2220 -- source, or the result of some other constant-folding operation, then
2221 -- Original_Entity is empty. This field is needed to handle properly
2222 -- named numbers in generic units, where the Associated_Node field
2223 -- interferes with the Entity field, making it impossible to preserve the
2224 -- original entity at the point of instantiation (ASIS problem).
2226 -- Others_Discrete_Choices (List1-Sem)
2227 -- When a case statement or variant is analyzed, the semantic checks
2228 -- determine the actual list of choices that correspond to an others
2229 -- choice. This list is materialized for later use by the expander and
2230 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
2231 -- this materialized list of choices, which is in standard format for a
2232 -- list of discrete choices, except that of course it cannot contain an
2233 -- N_Others_Choice entry.
2235 -- Parent_Spec (Node4-Sem)
2236 -- For a library unit that is a child unit spec (package or subprogram
2237 -- declaration, generic declaration or instantiation, or library level
2238 -- rename) this field points to the compilation unit node for the parent
2239 -- package specification. This field is Empty for library bodies (the
2240 -- parent spec in this case can be found from the corresponding spec).
2242 -- Parent_With (Flag1-Sem)
2243 -- Present in N_With_Clause nodes. The flag indicates that the clause
2244 -- was generated for an ancestor unit to provide proper visibility. A
2245 -- with clause for child unit A.B.C produces two implicit parent with
2246 -- clauses for A and A.B.
2248 -- Premature_Use (Node5-Sem)
2249 -- Present in N_Incomplete_Type_Declaration node. Used for improved
2250 -- error diagnostics: if there is a premature usage of an incomplete
2251 -- type, a subsequently generated error message indicates the position
2252 -- of its full declaration.
2254 -- Present_Expr (Uint3-Sem)
2255 -- Present in an N_Variant node. This has a meaningful value only after
2256 -- Gigi has back annotated the tree with representation information. At
2257 -- this point, it contains a reference to a gcc expression that depends
2258 -- on the values of one or more discriminants. Give a set of discriminant
2259 -- values, this expression evaluates to False (zero) if variant is not
2260 -- present, and True (non-zero) if it is present. See unit Repinfo for
2261 -- further details on gigi back annotation. This field is used during
2262 -- ASIS processing (data decomposition annex) to determine if a field is
2263 -- present or not.
2265 -- Prev_Use_Clause (Node1-Sem)
2266 -- Present in both N_Use_Package_Clause and N_Use_Type_Clause. Used in
2267 -- detection of ineffective use clauses by allowing a chain of related
2268 -- clauses together to avoid traversing the current scope stack.
2270 -- Print_In_Hex (Flag13-Sem)
2271 -- Set on an N_Integer_Literal node to indicate that the value should be
2272 -- printed in hexadecimal in the sprint listing. Has no effect on
2273 -- legality or semantics of program, only on the displayed output. This
2274 -- is used to clarify output from the packed array cases.
2276 -- Procedure_To_Call (Node2-Sem)
2277 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2278 -- and N_Extended_Return_Statement nodes. References the entity for the
2279 -- declaration of the procedure to be called to accomplish the required
2280 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
2281 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
2282 -- allocating the return value), and for the Deallocate procedure in the
2283 -- case of N_Free_Statement.
2285 -- Raises_Constraint_Error (Flag7-Sem)
2286 -- Set on an expression whose evaluation will definitely fail constraint
2287 -- error check. In the case of static expressions, this flag must be set
2288 -- accurately (and if it is set, the expression is typically illegal
2289 -- unless it appears as a non-elaborated branch of a short-circuit form).
2290 -- For a non-static expression, this flag may be set whenever an
2291 -- expression (e.g. an aggregate) is known to raise constraint error. If
2292 -- set, the expression definitely will raise CE if elaborated at runtime.
2293 -- If not set, the expression may or may not raise CE. In other words, on
2294 -- static expressions, the flag is set accurately, on non-static
2295 -- expressions it is set conservatively.
2297 -- Redundant_Use (Flag13-Sem)
2298 -- Present in nodes that can appear as an operand in a use clause or use
2299 -- type clause (identifiers, expanded names, attribute references). Set
2300 -- to indicate that a use is redundant (and therefore need not be undone
2301 -- on scope exit).
2303 -- Renaming_Exception (Node2-Sem)
2304 -- Present in N_Exception_Declaration node. Used to point back to the
2305 -- exception renaming for an exception declared within a subprogram.
2306 -- What happens is that an exception declared in a subprogram is moved
2307 -- to the library level with a unique name, and the original exception
2308 -- becomes a renaming. This link from the library level exception to the
2309 -- renaming declaration allows registering of the proper exception name.
2311 -- Return_Statement_Entity (Node5-Sem)
2312 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
2313 -- Points to an E_Return_Statement representing the return statement.
2315 -- Return_Object_Declarations (List3)
2316 -- Present in N_Extended_Return_Statement. Points to a list initially
2317 -- containing a single N_Object_Declaration representing the return
2318 -- object. We use a list (instead of just a pointer to the object decl)
2319 -- because Analyze wants to insert extra actions on this list.
2321 -- Rounded_Result (Flag18-Sem)
2322 -- Present in N_Type_Conversion, N_Op_Divide, and N_Op_Multiply nodes.
2323 -- Used in the fixed-point cases to indicate that the result must be
2324 -- rounded as a result of the use of the 'Round attribute. Also used for
2325 -- integer N_Op_Divide nodes to indicate that the result should be
2326 -- rounded to the nearest integer (breaking ties away from zero), rather
2327 -- than truncated towards zero as usual. These rounded integer operations
2328 -- are the result of expansion of rounded fixed-point divide, conversion
2329 -- and multiplication operations.
2331 -- SCIL_Entity (Node4-Sem)
2332 -- Present in SCIL nodes. References the specific tagged type associated
2333 -- with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
2334 -- the controlling type of the call; for an N_SCIL_Membership_Test node
2335 -- generated as part of testing membership in T'Class, this is T; for an
2336 -- N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
2338 -- SCIL_Controlling_Tag (Node5-Sem)
2339 -- Present in N_SCIL_Dispatching_Call nodes. References the controlling
2340 -- tag of a dispatching call. This is usually an N_Selected_Component
2341 -- node (for a _tag component), but may be an N_Object_Declaration or
2342 -- N_Parameter_Specification node in some cases (e.g., for a call to
2343 -- a classwide streaming operation or a call to an instance of
2344 -- Ada.Tags.Generic_Dispatching_Constructor).
2346 -- SCIL_Tag_Value (Node5-Sem)
2347 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
2348 -- of the value that is being tested.
2350 -- SCIL_Target_Prim (Node2-Sem)
2351 -- Present in N_SCIL_Dispatching_Call nodes. References the primitive
2352 -- operation named (statically) in a dispatching call.
2354 -- Scope (Node3-Sem)
2355 -- Present in defining identifiers, defining character literals, and
2356 -- defining operator symbols (i.e. in all entities). The entities of a
2357 -- scope all use this field to reference the corresponding scope entity.
2358 -- See Einfo for further details.
2360 -- Shift_Count_OK (Flag4-Sem)
2361 -- A flag present in shift nodes to indicate that the shift count is
2362 -- known to be in range, i.e. is in the range from zero to word length
2363 -- minus one. If this flag is not set, then the shift count may be
2364 -- outside this range, i.e. larger than the word length, and the code
2365 -- must ensure that such shift counts give the appropriate result.
2367 -- Source_Type (Node1-Sem)
2368 -- Used in an N_Validate_Unchecked_Conversion node to point to the
2369 -- source type entity for the unchecked conversion instantiation
2370 -- which gigi must do size validation for.
2372 -- Split_PPC (Flag17)
2373 -- When a Pre or Post aspect specification is processed, it is broken
2374 -- into AND THEN sections. The left most section has Split_PPC set to
2375 -- False, indicating that it is the original specification (e.g. for
2376 -- posting errors). For other sections, Split_PPC is set to True.
2377 -- This flag is set in both the N_Aspect_Specification node itself,
2378 -- and in the pragma which is generated from this node.
2380 -- Storage_Pool (Node1-Sem)
2381 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2382 -- and N_Extended_Return_Statement nodes. References the entity for the
2383 -- storage pool to be used for the allocate or free call or for the
2384 -- allocation of the returned value from function. Empty indicates that
2385 -- the global default pool is to be used. Note that in the case
2386 -- of a return statement, this field is set only if the function returns
2387 -- value of a type whose size is not known at compile time on the
2388 -- secondary stack.
2390 -- Suppress_Assignment_Checks (Flag18-Sem)
2391 -- Used in generated N_Assignment_Statement nodes to suppress predicate
2392 -- and range checks in cases where the generated code knows that the
2393 -- value being assigned is in range and satisfies any predicate. Also
2394 -- can be set in N_Object_Declaration nodes, to similarly suppress any
2395 -- checks on the initializing value. In assignment statements it also
2396 -- suppresses access checks in the generated code for out- and in-out
2397 -- parameters in entry calls.
2399 -- Suppress_Loop_Warnings (Flag17-Sem)
2400 -- Used in N_Loop_Statement node to indicate that warnings within the
2401 -- body of the loop should be suppressed. This is set when the range
2402 -- of a FOR loop is known to be null, or is probably null (loop would
2403 -- only execute if invalid values are present).
2405 -- Target (Node1-Sem)
2406 -- Present in call and variable reference marker nodes. References the
2407 -- entity of the original entity, operator, or subprogram being invoked,
2408 -- or the original variable being read or written.
2410 -- Target_Type (Node2-Sem)
2411 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
2412 -- type entity for the unchecked conversion instantiation which gigi must
2413 -- do size validation for.
2415 -- Then_Actions (List3-Sem)
2416 -- This field is present in if expression nodes. During code expansion
2417 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
2418 -- at an appropriate place in the tree to get elaborated at the right
2419 -- time. For if expressions, we have to be sure that the actions for
2420 -- for the Then branch are only elaborated if the condition is True.
2421 -- The Then_Actions field is used as a temporary parking place for
2422 -- these actions. The final tree is always rewritten to eliminate the
2423 -- need for this field, so in the tree passed to Gigi, this field is
2424 -- always set to No_List.
2426 -- Treat_Fixed_As_Integer (Flag14-Sem)
2427 -- This flag appears in operator nodes for divide, multiply, mod, and rem
2428 -- on fixed-point operands. It indicates that the operands are to be
2429 -- treated as integer values, ignoring small values. This flag is only
2430 -- set as a result of expansion of fixed-point operations. Typically a
2431 -- fixed-point multiplication in the source generates subsidiary
2432 -- multiplication and division operations that work with the underlying
2433 -- integer values and have this flag set. Note that this flag is not
2434 -- needed on other arithmetic operations (add, neg, subtract etc.) since
2435 -- in these cases it is always the case that fixed is treated as integer.
2436 -- The Etype field MUST be set if this flag is set. The analyzer knows to
2437 -- leave such nodes alone, and whoever makes them must set the correct
2438 -- Etype value.
2440 -- TSS_Elist (Elist3-Sem)
2441 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2442 -- entries for each TSS (type support subprogram) associated with the
2443 -- frozen type. The elements of the list are the entities for the
2444 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2445 -- if there are no type support subprograms for the type or if the freeze
2446 -- node is not for a type.
2448 -- Uneval_Old_Accept (Flag7-Sem)
2449 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'A'
2450 -- (accept) at the point where the pragma is encountered (including the
2451 -- case of a pragma generated from an aspect specification). It is this
2452 -- setting that is relevant, rather than the setting at the point where
2453 -- a contract is finally analyzed after the delay till the freeze point.
2455 -- Uneval_Old_Warn (Flag18-Sem)
2456 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'W'
2457 -- (warn) at the point where the pragma is encountered (including the
2458 -- case of a pragma generated from an aspect specification). It is this
2459 -- setting that is relevant, rather than the setting at the point where
2460 -- a contract is finally analyzed after the delay till the freeze point.
2462 -- Unreferenced_In_Spec (Flag7-Sem)
2463 -- Present in N_With_Clause nodes. Set if the with clause is on the
2464 -- package or subprogram spec where the main unit is the corresponding
2465 -- body, and is not referenced by the spec (it may still be referenced by
2466 -- the body, so this flag is used to generate the proper message (see
2467 -- Sem_Util.Check_Unused_Withs for details)
2469 -- Uninitialized_Variable (Node3-Sem)
2470 -- Present in N_Formal_Private_Type_Definition and in N_Private_
2471 -- Extension_Declarations. Indicates that a variable in a generic unit
2472 -- whose type is a formal private or derived type is read without being
2473 -- initialized. Used to warn if the corresponding actual type is not
2474 -- a fully initialized type.
2476 -- Used_Operations (Elist2-Sem)
2477 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2478 -- are made potentially use-visible by the clause. Simplifies processing
2479 -- on exit from the scope of the use_type_clause, in particular in the
2480 -- case of Use_All_Type, when those operations several scopes.
2482 -- Was_Attribute_Reference (Flag2-Sem)
2483 -- Present in N_Subprogram_Body. Set to True if the original source is an
2484 -- attribute reference which is an actual in a generic instantiation. The
2485 -- instantiation prologue renames these attributes, and expansion later
2486 -- converts them into subprogram bodies.
2488 -- Was_Expression_Function (Flag18-Sem)
2489 -- Present in N_Subprogram_Body. True if the original source had an
2490 -- N_Expression_Function, which was converted to the N_Subprogram_Body
2491 -- by Analyze_Expression_Function. This is needed by ASIS to correctly
2492 -- recreate the expression function (for the instance body) when the
2493 -- completion of a generic function declaration is an expression
2494 -- function.
2496 -- Was_Originally_Stub (Flag13-Sem)
2497 -- This flag is set in the node for a proper body that replaces stub.
2498 -- During the analysis procedure, stubs in some situations get rewritten
2499 -- by the corresponding bodies, and we set this flag to remember that
2500 -- this happened. Note that it is not good enough to rely on the use of
2501 -- Original_Node here because of the case of nested instantiations where
2502 -- the substituted node can be copied.
2504 -- Withed_Body (Node1-Sem)
2505 -- Present in N_With_Clause nodes. Set if the unit in whose context
2506 -- the with_clause appears instantiates a generic contained in the
2507 -- library unit of the with_clause and as a result loads its body.
2508 -- Used for a more precise unit traversal for CodePeer.
2510 --------------------------------------------------
2511 -- Note on Use of End_Label and End_Span Fields --
2512 --------------------------------------------------
2514 -- Several constructs have end lines:
2516 -- Loop Statement end loop [loop_IDENTIFIER];
2517 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2518 -- Task Definition end [task_IDENTIFIER]
2519 -- Protected Definition end [protected_IDENTIFIER]
2520 -- Protected Body end [protected_IDENTIFIER]
2522 -- Block Statement end [block_IDENTIFIER];
2523 -- Subprogram Body end [DESIGNATOR];
2524 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2525 -- Task Body end [task_IDENTIFIER];
2526 -- Accept Statement end [entry_IDENTIFIER]];
2527 -- Entry Body end [entry_IDENTIFIER];
2529 -- If Statement end if;
2530 -- Case Statement end case;
2532 -- Record Definition end record;
2533 -- Enumeration Definition );
2535 -- The End_Label and End_Span fields are used to mark the locations of
2536 -- these lines, and also keep track of the label in the case where a label
2537 -- is present.
2539 -- For the first group above, the End_Label field of the corresponding node
2540 -- is used to point to the label identifier. In the case where there is no
2541 -- label in the source, the parser supplies a dummy identifier (with
2542 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2543 -- marks the location of the token following the END token.
2545 -- For the second group, the use of End_Label is similar, but the End_Label
2546 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2547 -- simply because in some cases there is no room in the parent node.
2549 -- For the third group, there is never any label, and instead of using
2550 -- End_Label, we use the End_Span field which gives the location of the
2551 -- token following END, relative to the starting Sloc of the construct,
2552 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2553 -- following the End_Label.
2555 -- The record definition case is handled specially, we treat it as though
2556 -- it required an optional label which is never present, and so the parser
2557 -- always builds a dummy identifier with Comes From Source set False. The
2558 -- reason we do this, rather than using End_Span in this case, is that we
2559 -- want to generate a cross-ref entry for the end of a record, since it
2560 -- represents a scope for name declaration purposes.
2562 -- The enumeration definition case is handled in an exactly similar manner,
2563 -- building a dummy identifier to get a cross-reference.
2565 -- Note: the reason we store the difference as a Uint, instead of storing
2566 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2567 -- distinguished from other types of values, and we count on all general
2568 -- use fields being self describing. To make things easier for clients,
2569 -- note that we provide function End_Location, and procedure
2570 -- Set_End_Location to allow access to the logical value (which is the
2571 -- Source_Ptr value for the end token).
2573 ---------------------
2574 -- Syntactic Nodes --
2575 ---------------------
2577 ---------------------
2578 -- 2.3 Identifier --
2579 ---------------------
2581 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2582 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2584 -- An IDENTIFIER shall not be a reserved word
2586 -- In the Ada grammar identifiers are the bottom level tokens which have
2587 -- very few semantics. Actual program identifiers are direct names. If
2588 -- we were being 100% honest with the grammar, then we would have a node
2589 -- called N_Direct_Name which would point to an identifier. However,
2590 -- that's too many extra nodes, so we just use the N_Identifier node
2591 -- directly as a direct name, and it contains the expression fields and
2592 -- Entity field that correspond to its use as a direct name. In those
2593 -- few cases where identifiers appear in contexts where they are not
2594 -- direct names (pragmas, pragma argument associations, attribute
2595 -- references and attribute definition clauses), the Chars field of the
2596 -- node contains the Name_Id for the identifier name.
2598 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2599 -- cases. First, an incorrect use of a reserved word as an identifier is
2600 -- diagnosed and then treated as a normal identifier. Second, an
2601 -- attribute designator of the form of a reserved word (access, delta,
2602 -- digits, range) is treated as an identifier.
2604 -- Note: The set of letters that is permitted in an identifier depends
2605 -- on the character set in use. See package Csets for full details.
2607 -- N_Identifier
2608 -- Sloc points to identifier
2609 -- Chars (Name1) contains the Name_Id for the identifier
2610 -- Entity (Node4-Sem)
2611 -- Associated_Node (Node4-Sem)
2612 -- Original_Discriminant (Node2-Sem)
2613 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
2614 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
2615 -- Has_Private_View (Flag11-Sem) (set in generic units)
2616 -- Redundant_Use (Flag13-Sem)
2617 -- Atomic_Sync_Required (Flag14-Sem)
2618 -- plus fields for expression
2620 --------------------------
2621 -- 2.4 Numeric Literal --
2622 --------------------------
2624 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2626 ----------------------------
2627 -- 2.4.1 Decimal Literal --
2628 ----------------------------
2630 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2632 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2634 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2636 -- Decimal literals appear in the tree as either integer literal nodes
2637 -- or real literal nodes, depending on whether a period is present.
2639 -- Note: literal nodes appear as a result of direct use of literals
2640 -- in the source program, and also as the result of evaluating
2641 -- expressions at compile time. In the latter case, it is possible
2642 -- to construct real literals that have no syntactic representation
2643 -- using the standard literal format. Such literals are listed by
2644 -- Sprint using the notation [numerator / denominator].
2646 -- Note: the value of an integer literal node created by the front end
2647 -- is never outside the range of values of the base type. However, it
2648 -- can be the case that the created value is outside the range of the
2649 -- particular subtype. This happens in the case of integer overflows
2650 -- with checks suppressed.
2652 -- N_Integer_Literal
2653 -- Sloc points to literal
2654 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2655 -- has been constant-folded into its literal value.
2656 -- Intval (Uint3) contains integer value of literal
2657 -- Print_In_Hex (Flag13-Sem)
2658 -- plus fields for expression
2660 -- N_Real_Literal
2661 -- Sloc points to literal
2662 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2663 -- has been constant-folded into its literal value.
2664 -- Realval (Ureal3) contains real value of literal
2665 -- Corresponding_Integer_Value (Uint4-Sem)
2666 -- Is_Machine_Number (Flag11-Sem)
2667 -- plus fields for expression
2669 --------------------------
2670 -- 2.4.2 Based Literal --
2671 --------------------------
2673 -- BASED_LITERAL ::=
2674 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2676 -- BASE ::= NUMERAL
2678 -- BASED_NUMERAL ::=
2679 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2681 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2683 -- Based literals appear in the tree as either integer literal nodes
2684 -- or real literal nodes, depending on whether a period is present.
2686 ----------------------------
2687 -- 2.5 Character Literal --
2688 ----------------------------
2690 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2692 -- N_Character_Literal
2693 -- Sloc points to literal
2694 -- Chars (Name1) contains the Name_Id for the identifier
2695 -- Char_Literal_Value (Uint2) contains the literal value
2696 -- Entity (Node4-Sem)
2697 -- Associated_Node (Node4-Sem)
2698 -- Has_Private_View (Flag11-Sem) set in generic units.
2699 -- plus fields for expression
2701 -- Note: the Entity field will be missing (set to Empty) for character
2702 -- literals whose type is Standard.Wide_Character or Standard.Character
2703 -- or a type derived from one of these two. In this case the character
2704 -- literal stands for its own coding. The reason we take this irregular
2705 -- short cut is to avoid the need to build lots of junk defining
2706 -- character literal nodes.
2708 -------------------------
2709 -- 2.6 String Literal --
2710 -------------------------
2712 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2714 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2715 -- single GRAPHIC_CHARACTER other than a quotation mark.
2717 -- Is_Folded_In_Parser is True if the parser created this literal by
2718 -- folding a sequence of "&" operators. For example, if the source code
2719 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2720 -- is set. This flag is needed because the parser doesn't know about
2721 -- visibility, so the folded result might be wrong, and semantic
2722 -- analysis needs to check for that.
2724 -- N_String_Literal
2725 -- Sloc points to literal
2726 -- Strval (Str3) contains Id of string value
2727 -- Has_Wide_Character (Flag11-Sem)
2728 -- Has_Wide_Wide_Character (Flag13-Sem)
2729 -- Is_Folded_In_Parser (Flag4)
2730 -- plus fields for expression
2732 ------------------
2733 -- 2.7 Comment --
2734 ------------------
2736 -- A COMMENT starts with two adjacent hyphens and extends up to the
2737 -- end of the line. A COMMENT may appear on any line of a program.
2739 -- Comments are skipped by the scanner and do not appear in the tree.
2740 -- It is possible to reconstruct the position of comments with respect
2741 -- to the elements of the tree by using the source position (Sloc)
2742 -- pointers that appear in every tree node.
2744 -----------------
2745 -- 2.8 Pragma --
2746 -----------------
2748 -- PRAGMA ::= pragma IDENTIFIER
2749 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2751 -- Note that a pragma may appear in the tree anywhere a declaration
2752 -- or a statement may appear, as well as in some other situations
2753 -- which are explicitly documented.
2755 -- N_Pragma
2756 -- Sloc points to PRAGMA
2757 -- Next_Pragma (Node1-Sem)
2758 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2759 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2760 -- Pragma_Identifier (Node4)
2761 -- Next_Rep_Item (Node5-Sem)
2762 -- Is_Generic_Contract_Pragma (Flag2-Sem)
2763 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
2764 -- Is_Inherited_Pragma (Flag4-Sem)
2765 -- Is_Analyzed_Pragma (Flag5-Sem)
2766 -- Class_Present (Flag6) set if from Aspect with 'Class
2767 -- Uneval_Old_Accept (Flag7-Sem)
2768 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
2769 -- Is_Ignored (Flag9-Sem)
2770 -- Is_Checked (Flag11-Sem)
2771 -- From_Aspect_Specification (Flag13-Sem)
2772 -- Is_Delayed_Aspect (Flag14-Sem)
2773 -- Is_Disabled (Flag15-Sem)
2774 -- Import_Interface_Present (Flag16-Sem)
2775 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2776 -- Uneval_Old_Warn (Flag18-Sem)
2778 -- Note: we should have a section on what pragmas are passed on to
2779 -- the back end to be processed. This section should note that pragma
2780 -- Psect_Object is always converted to Common_Object, but there are
2781 -- undoubtedly many other similar notes required ???
2783 -- Note: utility functions Pragma_Name_Unmapped and Pragma_Name may be
2784 -- applied to pragma nodes to obtain the Chars or its mapped version.
2786 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2787 -- aspect name, as does the Pragma_Identifier. In this case if the
2788 -- pragma has a local name argument (such as pragma Inline), it is
2789 -- resolved to point to the specific entity affected by the pragma.
2791 --------------------------------------
2792 -- 2.8 Pragma Argument Association --
2793 --------------------------------------
2795 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2796 -- [pragma_argument_IDENTIFIER =>] NAME
2797 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2799 -- In Ada 2012, there are two more possibilities:
2801 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2802 -- [pragma_argument_ASPECT_MARK =>] NAME
2803 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2805 -- where the interesting allowed cases (which do not fit the syntax of
2806 -- the first alternative above) are
2808 -- ASPECT_MARK => Pre'Class |
2809 -- Post'Class |
2810 -- Type_Invariant'Class |
2811 -- Invariant'Class
2813 -- We allow this special usage in all Ada modes, but it would be a
2814 -- pain to allow these aspects to pervade the pragma syntax, and the
2815 -- representation of pragma nodes internally. So what we do is to
2816 -- replace these ASPECT_MARK forms with identifiers whose name is one
2817 -- of the special internal names _Pre, _Post, or _Type_Invariant.
2819 -- We do a similar replacement of these Aspect_Mark forms in the
2820 -- Expression of a pragma argument association for the cases of
2821 -- the first arguments of any Check pragmas and Check_Policy pragmas
2823 -- N_Pragma_Argument_Association
2824 -- Sloc points to first token in association
2825 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2826 -- Expression_Copy (Node2-Sem)
2827 -- Expression (Node3)
2829 ------------------------
2830 -- 2.9 Reserved Word --
2831 ------------------------
2833 -- Reserved words are parsed by the scanner, and returned as the
2834 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2836 ----------------------------
2837 -- 3.1 Basic Declaration --
2838 ----------------------------
2840 -- BASIC_DECLARATION ::=
2841 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2842 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2843 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2844 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2845 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2846 -- | GENERIC_INSTANTIATION
2848 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2849 -- see further description in section on semantic nodes.
2851 -- Also, in the tree that is constructed, a pragma may appear
2852 -- anywhere that a declaration may appear.
2854 ------------------------------
2855 -- 3.1 Defining Identifier --
2856 ------------------------------
2858 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2860 -- A defining identifier is an entity, which has additional fields
2861 -- depending on the setting of the Ekind field. These additional
2862 -- fields are defined (and access subprograms declared) in package
2863 -- Einfo.
2865 -- Note: N_Defining_Identifier is an extended node whose fields are
2866 -- deliberately layed out to match the layout of fields in an ordinary
2867 -- N_Identifier node allowing for easy alteration of an identifier
2868 -- node into a defining identifier node. For details, see procedure
2869 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2871 -- N_Defining_Identifier
2872 -- Sloc points to identifier
2873 -- Chars (Name1) contains the Name_Id for the identifier
2874 -- Next_Entity (Node2-Sem)
2875 -- Scope (Node3-Sem)
2876 -- Etype (Node5-Sem)
2878 -----------------------------
2879 -- 3.2.1 Type Declaration --
2880 -----------------------------
2882 -- TYPE_DECLARATION ::=
2883 -- FULL_TYPE_DECLARATION
2884 -- | INCOMPLETE_TYPE_DECLARATION
2885 -- | PRIVATE_TYPE_DECLARATION
2886 -- | PRIVATE_EXTENSION_DECLARATION
2888 ----------------------------------
2889 -- 3.2.1 Full Type Declaration --
2890 ----------------------------------
2892 -- FULL_TYPE_DECLARATION ::=
2893 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2894 -- is TYPE_DEFINITION
2895 -- [ASPECT_SPECIFICATIONS];
2896 -- | TASK_TYPE_DECLARATION
2897 -- | PROTECTED_TYPE_DECLARATION
2899 -- The full type declaration node is used only for the first case. The
2900 -- second case (concurrent type declaration), is represented directly
2901 -- by a task type declaration or a protected type declaration.
2903 -- N_Full_Type_Declaration
2904 -- Sloc points to TYPE
2905 -- Defining_Identifier (Node1)
2906 -- Incomplete_View (Node2-Sem)
2907 -- Discriminant_Specifications (List4) (set to No_List if none)
2908 -- Type_Definition (Node3)
2909 -- Discr_Check_Funcs_Built (Flag11-Sem)
2911 ----------------------------
2912 -- 3.2.1 Type Definition --
2913 ----------------------------
2915 -- TYPE_DEFINITION ::=
2916 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2917 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2918 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2919 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2921 --------------------------------
2922 -- 3.2.2 Subtype Declaration --
2923 --------------------------------
2925 -- SUBTYPE_DECLARATION ::=
2926 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2927 -- [ASPECT_SPECIFICATIONS];
2929 -- The subtype indication field is set to Empty for subtypes
2930 -- declared in package Standard (Positive, Natural).
2932 -- N_Subtype_Declaration
2933 -- Sloc points to SUBTYPE
2934 -- Defining_Identifier (Node1)
2935 -- Null_Exclusion_Present (Flag11)
2936 -- Subtype_Indication (Node5)
2937 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2938 -- Exception_Junk (Flag8-Sem)
2939 -- Has_Dynamic_Range_Check (Flag12-Sem)
2941 -------------------------------
2942 -- 3.2.2 Subtype Indication --
2943 -------------------------------
2945 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2947 -- Note: if no constraint is present, the subtype indication appears
2948 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2949 -- node is used only if a constraint is present.
2951 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2952 -- with the null-exclusion part (see AI-231), we had to introduce a new
2953 -- attribute in all the parents of subtype_indication nodes to indicate
2954 -- if the null-exclusion is present.
2956 -- Note: the reason that this node has expression fields is that a
2957 -- subtype indication can appear as an operand of a membership test.
2959 -- N_Subtype_Indication
2960 -- Sloc points to first token of subtype mark
2961 -- Subtype_Mark (Node4)
2962 -- Constraint (Node3)
2963 -- Etype (Node5-Sem)
2964 -- Must_Not_Freeze (Flag8-Sem)
2966 -- Note: Depending on context, the Etype is either the entity of the
2967 -- Subtype_Mark field, or it is an itype constructed to reify the
2968 -- subtype indication. In particular, such itypes are created for a
2969 -- subtype indication that appears in an array type declaration. This
2970 -- simplifies constraint checking in indexed components.
2972 -- For subtype indications that appear in scalar type and subtype
2973 -- declarations, the Etype is the entity of the subtype mark.
2975 -------------------------
2976 -- 3.2.2 Subtype Mark --
2977 -------------------------
2979 -- SUBTYPE_MARK ::= subtype_NAME
2981 -----------------------
2982 -- 3.2.2 Constraint --
2983 -----------------------
2985 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2987 ------------------------------
2988 -- 3.2.2 Scalar Constraint --
2989 ------------------------------
2991 -- SCALAR_CONSTRAINT ::=
2992 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2994 ---------------------------------
2995 -- 3.2.2 Composite Constraint --
2996 ---------------------------------
2998 -- COMPOSITE_CONSTRAINT ::=
2999 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
3001 -------------------------------
3002 -- 3.3.1 Object Declaration --
3003 -------------------------------
3005 -- OBJECT_DECLARATION ::=
3006 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
3007 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
3008 -- [ASPECT_SPECIFICATIONS];
3009 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
3010 -- ACCESS_DEFINITION [:= EXPRESSION]
3011 -- [ASPECT_SPECIFICATIONS];
3012 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
3013 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
3014 -- [ASPECT_SPECIFICATIONS];
3015 -- | SINGLE_TASK_DECLARATION
3016 -- | SINGLE_PROTECTED_DECLARATION
3018 -- Note: aliased is not permitted in Ada 83 mode
3020 -- The N_Object_Declaration node is only for the first three cases.
3021 -- Single task declaration is handled by P_Task (9.1)
3022 -- Single protected declaration is handled by P_protected (9.5)
3024 -- Although the syntax allows multiple identifiers in the list, the
3025 -- semantics is as though successive declarations were given with
3026 -- identical type definition and expression components. To simplify
3027 -- semantic processing, the parser represents a multiple declaration
3028 -- case as a sequence of single declarations, using the More_Ids and
3029 -- Prev_Ids flags to preserve the original source form as described
3030 -- in the section on "Handling of Defining Identifier Lists".
3032 -- The flag Has_Init_Expression is set if an initializing expression
3033 -- is present. Normally it is set if and only if Expression contains
3034 -- a non-empty value, but there is an exception to this. When the
3035 -- initializing expression is an aggregate which requires explicit
3036 -- assignments, the Expression field gets set to Empty, but this flag
3037 -- is still set, so we don't forget we had an initializing expression.
3039 -- Note: if a range check is required for the initialization
3040 -- expression then the Do_Range_Check flag is set in the Expression,
3041 -- with the check being done against the type given by the object
3042 -- definition, which is also the Etype of the defining identifier.
3044 -- Note: the contents of the Expression field must be ignored (i.e.
3045 -- treated as though it were Empty) if No_Initialization is set True.
3047 -- Note: the back end places some restrictions on the form of the
3048 -- Expression field. If the object being declared is Atomic, then
3049 -- the Expression may not have the form of an aggregate (since this
3050 -- might cause the back end to generate separate assignments). In this
3051 -- case the front end must generate an extra temporary and initialize
3052 -- this temporary as required (the temporary itself is not atomic).
3054 -- Note: there is no node kind for object definition. Instead, the
3055 -- corresponding field holds a subtype indication, an array type
3056 -- definition, or (Ada 2005, AI-406) an access definition.
3058 -- N_Object_Declaration
3059 -- Sloc points to first identifier
3060 -- Defining_Identifier (Node1)
3061 -- Aliased_Present (Flag4)
3062 -- Constant_Present (Flag17) set if CONSTANT appears
3063 -- Null_Exclusion_Present (Flag11)
3064 -- Object_Definition (Node4) subtype indic./array type def./access def.
3065 -- Expression (Node3) (set to Empty if not present)
3066 -- Handler_List_Entry (Node2-Sem)
3067 -- Corresponding_Generic_Association (Node5-Sem)
3068 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3069 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3070 -- No_Initialization (Flag13-Sem)
3071 -- Assignment_OK (Flag15-Sem)
3072 -- Exception_Junk (Flag8-Sem)
3073 -- Is_Subprogram_Descriptor (Flag16-Sem)
3074 -- Has_Init_Expression (Flag14)
3075 -- Suppress_Assignment_Checks (Flag18-Sem)
3077 -------------------------------------
3078 -- 3.3.1 Defining Identifier List --
3079 -------------------------------------
3081 -- DEFINING_IDENTIFIER_LIST ::=
3082 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
3084 -------------------------------
3085 -- 3.3.2 Number Declaration --
3086 -------------------------------
3088 -- NUMBER_DECLARATION ::=
3089 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
3091 -- Although the syntax allows multiple identifiers in the list, the
3092 -- semantics is as though successive declarations were given with
3093 -- identical expressions. To simplify semantic processing, the parser
3094 -- represents a multiple declaration case as a sequence of single
3095 -- declarations, using the More_Ids and Prev_Ids flags to preserve
3096 -- the original source form as described in the section on "Handling
3097 -- of Defining Identifier Lists".
3099 -- N_Number_Declaration
3100 -- Sloc points to first identifier
3101 -- Defining_Identifier (Node1)
3102 -- Expression (Node3)
3103 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3104 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3106 ----------------------------------
3107 -- 3.4 Derived Type Definition --
3108 ----------------------------------
3110 -- DERIVED_TYPE_DEFINITION ::=
3111 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
3112 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
3114 -- Note: ABSTRACT, LIMITED, and record extension part are not permitted
3115 -- in Ada 83 mode.
3117 -- Note: a record extension part is required if ABSTRACT is present
3119 -- N_Derived_Type_Definition
3120 -- Sloc points to NEW
3121 -- Abstract_Present (Flag4)
3122 -- Null_Exclusion_Present (Flag11) (set to False if not present)
3123 -- Subtype_Indication (Node5)
3124 -- Record_Extension_Part (Node3) (set to Empty if not present)
3125 -- Limited_Present (Flag17)
3126 -- Task_Present (Flag5) set in task interfaces
3127 -- Protected_Present (Flag6) set in protected interfaces
3128 -- Synchronized_Present (Flag7) set in interfaces
3129 -- Interface_List (List2) (set to No_List if none)
3130 -- Interface_Present (Flag16) set in abstract interfaces
3132 -- Note: Task_Present, Protected_Present, Synchronized_Present,
3133 -- Interface_List, and Interface_Present are used for abstract
3134 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3136 ---------------------------
3137 -- 3.5 Range Constraint --
3138 ---------------------------
3140 -- RANGE_CONSTRAINT ::= range RANGE
3142 -- N_Range_Constraint
3143 -- Sloc points to RANGE
3144 -- Range_Expression (Node4)
3146 ----------------
3147 -- 3.5 Range --
3148 ----------------
3150 -- RANGE ::=
3151 -- RANGE_ATTRIBUTE_REFERENCE
3152 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
3154 -- Note: the case of a range given as a range attribute reference
3155 -- appears directly in the tree as an attribute reference.
3157 -- Note: the field name for a reference to a range is Range_Expression
3158 -- rather than Range, because range is a reserved keyword in Ada.
3160 -- Note: the reason that this node has expression fields is that a
3161 -- range can appear as an operand of a membership test. The Etype
3162 -- field is the type of the range (we do NOT construct an implicit
3163 -- subtype to represent the range exactly).
3165 -- N_Range
3166 -- Sloc points to ..
3167 -- Low_Bound (Node1)
3168 -- High_Bound (Node2)
3169 -- Includes_Infinities (Flag11)
3170 -- plus fields for expression
3172 -- Note: if the range appears in a context, such as a subtype
3173 -- declaration, where range checks are required on one or both of
3174 -- the expression fields, then type conversion nodes are inserted
3175 -- to represent the required checks.
3177 ----------------------------------------
3178 -- 3.5.1 Enumeration Type Definition --
3179 ----------------------------------------
3181 -- ENUMERATION_TYPE_DEFINITION ::=
3182 -- (ENUMERATION_LITERAL_SPECIFICATION
3183 -- {, ENUMERATION_LITERAL_SPECIFICATION})
3185 -- Note: the Literals field in the node described below is null for
3186 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
3187 -- which special processing handles these types as special cases.
3189 -- N_Enumeration_Type_Definition
3190 -- Sloc points to left parenthesis
3191 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
3192 -- End_Label (Node4) (set to Empty if internally generated record)
3194 ----------------------------------------------
3195 -- 3.5.1 Enumeration Literal Specification --
3196 ----------------------------------------------
3198 -- ENUMERATION_LITERAL_SPECIFICATION ::=
3199 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
3201 ---------------------------------------
3202 -- 3.5.1 Defining Character Literal --
3203 ---------------------------------------
3205 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
3207 -- A defining character literal is an entity, which has additional
3208 -- fields depending on the setting of the Ekind field. These
3209 -- additional fields are defined (and access subprograms declared)
3210 -- in package Einfo.
3212 -- Note: N_Defining_Character_Literal is an extended node whose fields
3213 -- are deliberate layed out to match the layout of fields in an ordinary
3214 -- N_Character_Literal node allowing for easy alteration of a character
3215 -- literal node into a defining character literal node. For details, see
3216 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
3218 -- N_Defining_Character_Literal
3219 -- Sloc points to literal
3220 -- Chars (Name1) contains the Name_Id for the identifier
3221 -- Next_Entity (Node2-Sem)
3222 -- Scope (Node3-Sem)
3223 -- Etype (Node5-Sem)
3225 ------------------------------------
3226 -- 3.5.4 Integer Type Definition --
3227 ------------------------------------
3229 -- Note: there is an error in this rule in the latest version of the
3230 -- grammar, so we have retained the old rule pending clarification.
3232 -- INTEGER_TYPE_DEFINITION ::=
3233 -- SIGNED_INTEGER_TYPE_DEFINITION
3234 -- | MODULAR_TYPE_DEFINITION
3236 -------------------------------------------
3237 -- 3.5.4 Signed Integer Type Definition --
3238 -------------------------------------------
3240 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
3241 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3243 -- Note: the Low_Bound and High_Bound fields are set to Empty
3244 -- for integer types defined in package Standard.
3246 -- N_Signed_Integer_Type_Definition
3247 -- Sloc points to RANGE
3248 -- Low_Bound (Node1)
3249 -- High_Bound (Node2)
3251 ------------------------------------
3252 -- 3.5.4 Modular Type Definition --
3253 ------------------------------------
3255 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
3257 -- N_Modular_Type_Definition
3258 -- Sloc points to MOD
3259 -- Expression (Node3)
3261 ---------------------------------
3262 -- 3.5.6 Real Type Definition --
3263 ---------------------------------
3265 -- REAL_TYPE_DEFINITION ::=
3266 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
3268 --------------------------------------
3269 -- 3.5.7 Floating Point Definition --
3270 --------------------------------------
3272 -- FLOATING_POINT_DEFINITION ::=
3273 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
3275 -- Note: The Digits_Expression and Real_Range_Specifications fields
3276 -- are set to Empty for floating-point types declared in Standard.
3278 -- N_Floating_Point_Definition
3279 -- Sloc points to DIGITS
3280 -- Digits_Expression (Node2)
3281 -- Real_Range_Specification (Node4) (set to Empty if not present)
3283 -------------------------------------
3284 -- 3.5.7 Real Range Specification --
3285 -------------------------------------
3287 -- REAL_RANGE_SPECIFICATION ::=
3288 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3290 -- N_Real_Range_Specification
3291 -- Sloc points to RANGE
3292 -- Low_Bound (Node1)
3293 -- High_Bound (Node2)
3295 -----------------------------------
3296 -- 3.5.9 Fixed Point Definition --
3297 -----------------------------------
3299 -- FIXED_POINT_DEFINITION ::=
3300 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
3302 --------------------------------------------
3303 -- 3.5.9 Ordinary Fixed Point Definition --
3304 --------------------------------------------
3306 -- ORDINARY_FIXED_POINT_DEFINITION ::=
3307 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
3309 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3311 -- N_Ordinary_Fixed_Point_Definition
3312 -- Sloc points to DELTA
3313 -- Delta_Expression (Node3)
3314 -- Real_Range_Specification (Node4)
3316 -------------------------------------------
3317 -- 3.5.9 Decimal Fixed Point Definition --
3318 -------------------------------------------
3320 -- DECIMAL_FIXED_POINT_DEFINITION ::=
3321 -- delta static_EXPRESSION
3322 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
3324 -- Note: decimal types are not permitted in Ada 83 mode
3326 -- N_Decimal_Fixed_Point_Definition
3327 -- Sloc points to DELTA
3328 -- Delta_Expression (Node3)
3329 -- Digits_Expression (Node2)
3330 -- Real_Range_Specification (Node4) (set to Empty if not present)
3332 ------------------------------
3333 -- 3.5.9 Digits Constraint --
3334 ------------------------------
3336 -- DIGITS_CONSTRAINT ::=
3337 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
3339 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3340 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
3342 -- N_Digits_Constraint
3343 -- Sloc points to DIGITS
3344 -- Digits_Expression (Node2)
3345 -- Range_Constraint (Node4) (set to Empty if not present)
3347 --------------------------------
3348 -- 3.6 Array Type Definition --
3349 --------------------------------
3351 -- ARRAY_TYPE_DEFINITION ::=
3352 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
3354 -----------------------------------------
3355 -- 3.6 Unconstrained Array Definition --
3356 -----------------------------------------
3358 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
3359 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
3360 -- COMPONENT_DEFINITION
3362 -- Note: dimensionality of array is indicated by number of entries in
3363 -- the Subtype_Marks list, which has one entry for each dimension.
3365 -- N_Unconstrained_Array_Definition
3366 -- Sloc points to ARRAY
3367 -- Subtype_Marks (List2)
3368 -- Component_Definition (Node4)
3370 -----------------------------------
3371 -- 3.6 Index Subtype Definition --
3372 -----------------------------------
3374 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
3376 -- There is no explicit node in the tree for an index subtype
3377 -- definition since the N_Unconstrained_Array_Definition node
3378 -- incorporates the type marks which appear in this context.
3380 ---------------------------------------
3381 -- 3.6 Constrained Array Definition --
3382 ---------------------------------------
3384 -- CONSTRAINED_ARRAY_DEFINITION ::=
3385 -- array (DISCRETE_SUBTYPE_DEFINITION
3386 -- {, DISCRETE_SUBTYPE_DEFINITION})
3387 -- of COMPONENT_DEFINITION
3389 -- Note: dimensionality of array is indicated by number of entries
3390 -- in the Discrete_Subtype_Definitions list, which has one entry
3391 -- for each dimension.
3393 -- N_Constrained_Array_Definition
3394 -- Sloc points to ARRAY
3395 -- Discrete_Subtype_Definitions (List2)
3396 -- Component_Definition (Node4)
3398 -- Note: although the language allows the full syntax for discrete
3399 -- subtype definitions (i.e. a discrete subtype indication or a range),
3400 -- in the generated tree, we always rewrite these as N_Range nodes.
3402 --------------------------------------
3403 -- 3.6 Discrete Subtype Definition --
3404 --------------------------------------
3406 -- DISCRETE_SUBTYPE_DEFINITION ::=
3407 -- discrete_SUBTYPE_INDICATION | RANGE
3409 -------------------------------
3410 -- 3.6 Component Definition --
3411 -------------------------------
3413 -- COMPONENT_DEFINITION ::=
3414 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
3416 -- Note: although the syntax does not permit a component definition to
3417 -- be an anonymous array (and the parser will diagnose such an attempt
3418 -- with an appropriate message), it is possible for anonymous arrays
3419 -- to appear as component definitions. The semantics and back end handle
3420 -- this case properly, and the expander in fact generates such cases.
3421 -- Access_Definition is an optional field that gives support to
3422 -- Ada 2005 (AI-230). The parser generates nodes that have either the
3423 -- Subtype_Indication field or else the Access_Definition field.
3425 -- N_Component_Definition
3426 -- Sloc points to ALIASED, ACCESS, or to first token of subtype mark
3427 -- Aliased_Present (Flag4)
3428 -- Null_Exclusion_Present (Flag11)
3429 -- Subtype_Indication (Node5) (set to Empty if not present)
3430 -- Access_Definition (Node3) (set to Empty if not present)
3432 -----------------------------
3433 -- 3.6.1 Index Constraint --
3434 -----------------------------
3436 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3438 -- It is not in general possible to distinguish between discriminant
3439 -- constraints and index constraints at parse time, since a simple
3440 -- name could be either the subtype mark of a discrete range, or an
3441 -- expression in a discriminant association with no name. Either
3442 -- entry appears simply as the name, and the semantic parse must
3443 -- distinguish between the two cases. Thus we use a common tree
3444 -- node format for both of these constraint types.
3446 -- See Discriminant_Constraint for format of node
3448 ---------------------------
3449 -- 3.6.1 Discrete Range --
3450 ---------------------------
3452 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3454 ----------------------------
3455 -- 3.7 Discriminant Part --
3456 ----------------------------
3458 -- DISCRIMINANT_PART ::=
3459 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3461 ------------------------------------
3462 -- 3.7 Unknown Discriminant Part --
3463 ------------------------------------
3465 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
3467 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
3469 -- There is no explicit node in the tree for an unknown discriminant
3470 -- part. Instead the Unknown_Discriminants_Present flag is set in the
3471 -- parent node.
3473 ----------------------------------
3474 -- 3.7 Known Discriminant Part --
3475 ----------------------------------
3477 -- KNOWN_DISCRIMINANT_PART ::=
3478 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3480 -------------------------------------
3481 -- 3.7 Discriminant Specification --
3482 -------------------------------------
3484 -- DISCRIMINANT_SPECIFICATION ::=
3485 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3486 -- [:= DEFAULT_EXPRESSION]
3487 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3488 -- [:= DEFAULT_EXPRESSION]
3490 -- Although the syntax allows multiple identifiers in the list, the
3491 -- semantics is as though successive specifications were given with
3492 -- identical type definition and expression components. To simplify
3493 -- semantic processing, the parser represents a multiple declaration
3494 -- case as a sequence of single specifications, using the More_Ids and
3495 -- Prev_Ids flags to preserve the original source form as described
3496 -- in the section on "Handling of Defining Identifier Lists".
3498 -- N_Discriminant_Specification
3499 -- Sloc points to first identifier
3500 -- Defining_Identifier (Node1)
3501 -- Null_Exclusion_Present (Flag11)
3502 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3503 -- Expression (Node3) (set to Empty if no default expression)
3504 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3505 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3507 -----------------------------
3508 -- 3.7 Default Expression --
3509 -----------------------------
3511 -- DEFAULT_EXPRESSION ::= EXPRESSION
3513 ------------------------------------
3514 -- 3.7.1 Discriminant Constraint --
3515 ------------------------------------
3517 -- DISCRIMINANT_CONSTRAINT ::=
3518 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3520 -- It is not in general possible to distinguish between discriminant
3521 -- constraints and index constraints at parse time, since a simple
3522 -- name could be either the subtype mark of a discrete range, or an
3523 -- expression in a discriminant association with no name. Either
3524 -- entry appears simply as the name, and the semantic parse must
3525 -- distinguish between the two cases. Thus we use a common tree
3526 -- node format for both of these constraint types.
3528 -- N_Index_Or_Discriminant_Constraint
3529 -- Sloc points to left paren
3530 -- Constraints (List1) points to list of discrete ranges or
3531 -- discriminant associations
3533 -------------------------------------
3534 -- 3.7.1 Discriminant Association --
3535 -------------------------------------
3537 -- DISCRIMINANT_ASSOCIATION ::=
3538 -- [discriminant_SELECTOR_NAME
3539 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3541 -- Note: a discriminant association that has no selector name list
3542 -- appears directly as an expression in the tree.
3544 -- N_Discriminant_Association
3545 -- Sloc points to first token of discriminant association
3546 -- Selector_Names (List1) (always non-empty, since if no selector
3547 -- names are present, this node is not used, see comment above)
3548 -- Expression (Node3)
3550 ---------------------------------
3551 -- 3.8 Record Type Definition --
3552 ---------------------------------
3554 -- RECORD_TYPE_DEFINITION ::=
3555 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3557 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3559 -- There is no explicit node in the tree for a record type definition.
3560 -- Instead the flags for Tagged_Present and Limited_Present appear in
3561 -- the N_Record_Definition node for a record definition appearing in
3562 -- the context of a record type definition.
3564 ----------------------------
3565 -- 3.8 Record Definition --
3566 ----------------------------
3568 -- RECORD_DEFINITION ::=
3569 -- record
3570 -- COMPONENT_LIST
3571 -- end record
3572 -- | null record
3574 -- Note: the Abstract_Present, Tagged_Present, and Limited_Present
3575 -- flags appear only for a record definition appearing in a record
3576 -- type definition.
3578 -- Note: the NULL RECORD case is not permitted in Ada 83
3580 -- N_Record_Definition
3581 -- Sloc points to RECORD or NULL
3582 -- End_Label (Node4) (set to Empty if internally generated record)
3583 -- Abstract_Present (Flag4)
3584 -- Tagged_Present (Flag15)
3585 -- Limited_Present (Flag17)
3586 -- Component_List (Node1) empty in null record case
3587 -- Null_Present (Flag13) set in null record case
3588 -- Task_Present (Flag5) set in task interfaces
3589 -- Protected_Present (Flag6) set in protected interfaces
3590 -- Synchronized_Present (Flag7) set in interfaces
3591 -- Interface_Present (Flag16) set in abstract interfaces
3592 -- Interface_List (List2) (set to No_List if none)
3594 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3595 -- Interface_List and Interface_Present are used for abstract
3596 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3598 -------------------------
3599 -- 3.8 Component List --
3600 -------------------------
3602 -- COMPONENT_LIST ::=
3603 -- COMPONENT_ITEM {COMPONENT_ITEM}
3604 -- | {COMPONENT_ITEM} VARIANT_PART
3605 -- | null;
3607 -- N_Component_List
3608 -- Sloc points to first token of component list
3609 -- Component_Items (List3)
3610 -- Variant_Part (Node4) (set to Empty if no variant part)
3611 -- Null_Present (Flag13)
3613 -------------------------
3614 -- 3.8 Component Item --
3615 -------------------------
3617 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3619 -- Note: A component item can also be a pragma, and in the tree
3620 -- that is obtained after semantic processing, a component item
3621 -- can be an N_Null node resulting from a non-recognized pragma.
3623 --------------------------------
3624 -- 3.8 Component Declaration --
3625 --------------------------------
3627 -- COMPONENT_DECLARATION ::=
3628 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3629 -- [:= DEFAULT_EXPRESSION]
3630 -- [ASPECT_SPECIFICATIONS];
3632 -- Note: although the syntax does not permit a component definition to
3633 -- be an anonymous array (and the parser will diagnose such an attempt
3634 -- with an appropriate message), it is possible for anonymous arrays
3635 -- to appear as component definitions. The semantics and back end handle
3636 -- this case properly, and the expander in fact generates such cases.
3638 -- Although the syntax allows multiple identifiers in the list, the
3639 -- semantics is as though successive declarations were given with the
3640 -- same component definition and expression components. To simplify
3641 -- semantic processing, the parser represents a multiple declaration
3642 -- case as a sequence of single declarations, using the More_Ids and
3643 -- Prev_Ids flags to preserve the original source form as described
3644 -- in the section on "Handling of Defining Identifier Lists".
3646 -- N_Component_Declaration
3647 -- Sloc points to first identifier
3648 -- Defining_Identifier (Node1)
3649 -- Component_Definition (Node4)
3650 -- Expression (Node3) (set to Empty if no default expression)
3651 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3652 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3654 -------------------------
3655 -- 3.8.1 Variant Part --
3656 -------------------------
3658 -- VARIANT_PART ::=
3659 -- case discriminant_DIRECT_NAME is
3660 -- VARIANT {VARIANT}
3661 -- end case;
3663 -- Note: the variants list can contain pragmas as well as variants.
3664 -- In a properly formed program there is at least one variant.
3666 -- N_Variant_Part
3667 -- Sloc points to CASE
3668 -- Name (Node2)
3669 -- Variants (List1)
3671 --------------------
3672 -- 3.8.1 Variant --
3673 --------------------
3675 -- VARIANT ::=
3676 -- when DISCRETE_CHOICE_LIST =>
3677 -- COMPONENT_LIST
3679 -- N_Variant
3680 -- Sloc points to WHEN
3681 -- Discrete_Choices (List4)
3682 -- Component_List (Node1)
3683 -- Enclosing_Variant (Node2-Sem)
3684 -- Present_Expr (Uint3-Sem)
3685 -- Dcheck_Function (Node5-Sem)
3686 -- Has_SP_Choice (Flag15-Sem)
3688 -- Note: in the list of Discrete_Choices, the tree passed to the back
3689 -- end does not have choice entries corresponding to names of statically
3690 -- predicated subtypes. Such entries are always expanded out to the list
3691 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3692 -- mode also has this expansion, but done with a proper Rewrite call on
3693 -- the N_Variant node so that ASIS can properly retrieve the original.
3695 ---------------------------------
3696 -- 3.8.1 Discrete Choice List --
3697 ---------------------------------
3699 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3701 ----------------------------
3702 -- 3.8.1 Discrete Choice --
3703 ----------------------------
3705 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3707 -- Note: in Ada 83 mode, the expression must be a simple expression
3709 -- The only choice that appears explicitly is the OTHERS choice, as
3710 -- defined here. Other cases of discrete choice (expression and
3711 -- discrete range) appear directly. This production is also used
3712 -- for the OTHERS possibility of an exception choice.
3714 -- Note: in accordance with the syntax, the parser does not check that
3715 -- OTHERS appears at the end on its own in a choice list context. This
3716 -- is a semantic check.
3718 -- N_Others_Choice
3719 -- Sloc points to OTHERS
3720 -- Others_Discrete_Choices (List1-Sem)
3721 -- All_Others (Flag11-Sem)
3723 ----------------------------------
3724 -- 3.9.1 Record Extension Part --
3725 ----------------------------------
3727 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3729 -- Note: record extension parts are not permitted in Ada 83 mode
3731 --------------------------------------
3732 -- 3.9.4 Interface Type Definition --
3733 --------------------------------------
3735 -- INTERFACE_TYPE_DEFINITION ::=
3736 -- [limited | task | protected | synchronized]
3737 -- interface [interface_list]
3739 -- Note: Interfaces are implemented with N_Record_Definition and
3740 -- N_Derived_Type_Definition nodes because most of the support
3741 -- for the analysis of abstract types has been reused to
3742 -- analyze abstract interfaces.
3744 ----------------------------------
3745 -- 3.10 Access Type Definition --
3746 ----------------------------------
3748 -- ACCESS_TYPE_DEFINITION ::=
3749 -- ACCESS_TO_OBJECT_DEFINITION
3750 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3752 --------------------------
3753 -- 3.10 Null Exclusion --
3754 --------------------------
3756 -- NULL_EXCLUSION ::= not null
3758 ---------------------------------------
3759 -- 3.10 Access To Object Definition --
3760 ---------------------------------------
3762 -- ACCESS_TO_OBJECT_DEFINITION ::=
3763 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3764 -- SUBTYPE_INDICATION
3766 -- N_Access_To_Object_Definition
3767 -- Sloc points to ACCESS
3768 -- All_Present (Flag15)
3769 -- Null_Exclusion_Present (Flag11)
3770 -- Null_Excluding_Subtype (Flag16)
3771 -- Subtype_Indication (Node5)
3772 -- Constant_Present (Flag17)
3774 -----------------------------------
3775 -- 3.10 General Access Modifier --
3776 -----------------------------------
3778 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3780 -- Note: general access modifiers are not permitted in Ada 83 mode
3782 -- There is no explicit node in the tree for general access modifier.
3783 -- Instead the All_Present or Constant_Present flags are set in the
3784 -- parent node.
3786 -------------------------------------------
3787 -- 3.10 Access To Subprogram Definition --
3788 -------------------------------------------
3790 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3791 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3792 -- | [NULL_EXCLUSION] access [protected] function
3793 -- PARAMETER_AND_RESULT_PROFILE
3795 -- Note: access to subprograms are not permitted in Ada 83 mode
3797 -- N_Access_Function_Definition
3798 -- Sloc points to ACCESS
3799 -- Null_Exclusion_Present (Flag11)
3800 -- Null_Exclusion_In_Return_Present (Flag14)
3801 -- Protected_Present (Flag6)
3802 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3803 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3805 -- N_Access_Procedure_Definition
3806 -- Sloc points to ACCESS
3807 -- Null_Exclusion_Present (Flag11)
3808 -- Protected_Present (Flag6)
3809 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3811 -----------------------------
3812 -- 3.10 Access Definition --
3813 -----------------------------
3815 -- ACCESS_DEFINITION ::=
3816 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3817 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3819 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3821 -- N_Access_Definition
3822 -- Sloc points to ACCESS
3823 -- Null_Exclusion_Present (Flag11)
3824 -- All_Present (Flag15)
3825 -- Constant_Present (Flag17)
3826 -- Subtype_Mark (Node4)
3827 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3829 -----------------------------------------
3830 -- 3.10.1 Incomplete Type Declaration --
3831 -----------------------------------------
3833 -- INCOMPLETE_TYPE_DECLARATION ::=
3834 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3836 -- N_Incomplete_Type_Declaration
3837 -- Sloc points to TYPE
3838 -- Defining_Identifier (Node1)
3839 -- Discriminant_Specifications (List4) (set to No_List if no
3840 -- discriminant part, or if the discriminant part is an
3841 -- unknown discriminant part)
3842 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3843 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3844 -- Tagged_Present (Flag15)
3846 ----------------------------
3847 -- 3.11 Declarative Part --
3848 ----------------------------
3850 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3852 -- Note: although the parser enforces the syntactic requirement that
3853 -- a declarative part can contain only declarations, the semantic
3854 -- processing may add statements to the list of actions in a
3855 -- declarative part, so the code generator should be prepared
3856 -- to accept a statement in this position.
3858 ----------------------------
3859 -- 3.11 Declarative Item --
3860 ----------------------------
3862 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3864 ----------------------------------
3865 -- 3.11 Basic Declarative Item --
3866 ----------------------------------
3868 -- BASIC_DECLARATIVE_ITEM ::=
3869 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3871 ----------------
3872 -- 3.11 Body --
3873 ----------------
3875 -- BODY ::= PROPER_BODY | BODY_STUB
3877 -----------------------
3878 -- 3.11 Proper Body --
3879 -----------------------
3881 -- PROPER_BODY ::=
3882 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3884 ---------------
3885 -- 4.1 Name --
3886 ---------------
3888 -- NAME ::=
3889 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3890 -- | INDEXED_COMPONENT | SLICE
3891 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3892 -- | TYPE_CONVERSION | FUNCTION_CALL
3893 -- | CHARACTER_LITERAL
3895 ----------------------
3896 -- 4.1 Direct Name --
3897 ----------------------
3899 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3901 -----------------
3902 -- 4.1 Prefix --
3903 -----------------
3905 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3907 -------------------------------
3908 -- 4.1 Explicit Dereference --
3909 -------------------------------
3911 -- EXPLICIT_DEREFERENCE ::= NAME . all
3913 -- N_Explicit_Dereference
3914 -- Sloc points to ALL
3915 -- Prefix (Node3)
3916 -- Actual_Designated_Subtype (Node4-Sem)
3917 -- Has_Dereference_Action (Flag13-Sem)
3918 -- Atomic_Sync_Required (Flag14-Sem)
3919 -- plus fields for expression
3921 -------------------------------
3922 -- 4.1 Implicit Dereference --
3923 -------------------------------
3925 -- IMPLICIT_DEREFERENCE ::= NAME
3927 ------------------------------
3928 -- 4.1.1 Indexed Component --
3929 ------------------------------
3931 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3933 -- Note: the parser may generate this node in some situations where it
3934 -- should be a function call. The semantic pass must correct this
3935 -- misidentification (which is inevitable at the parser level).
3937 -- N_Indexed_Component
3938 -- Sloc contains a copy of the Sloc value of the Prefix
3939 -- Prefix (Node3)
3940 -- Expressions (List1)
3941 -- Generalized_Indexing (Node4-Sem)
3942 -- Atomic_Sync_Required (Flag14-Sem)
3943 -- plus fields for expression
3945 -- Note: if any of the subscripts requires a range check, then the
3946 -- Do_Range_Check flag is set on the corresponding expression, with
3947 -- the index type being determined from the type of the Prefix, which
3948 -- references the array being indexed.
3950 -- Note: in a fully analyzed and expanded indexed component node, and
3951 -- hence in any such node that gigi sees, if the prefix is an access
3952 -- type, then an explicit dereference operation has been inserted.
3954 ------------------
3955 -- 4.1.2 Slice --
3956 ------------------
3958 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3960 -- Note: an implicit subtype is created to describe the resulting
3961 -- type, so that the bounds of this type are the bounds of the slice.
3963 -- N_Slice
3964 -- Sloc points to first token of prefix
3965 -- Prefix (Node3)
3966 -- Discrete_Range (Node4)
3967 -- plus fields for expression
3969 -------------------------------
3970 -- 4.1.3 Selected Component --
3971 -------------------------------
3973 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3975 -- Note: selected components that are semantically expanded names get
3976 -- changed during semantic processing into the separate N_Expanded_Name
3977 -- node. See description of this node in the section on semantic nodes.
3979 -- N_Selected_Component
3980 -- Sloc points to the period
3981 -- Prefix (Node3)
3982 -- Selector_Name (Node2)
3983 -- Associated_Node (Node4-Sem)
3984 -- Do_Discriminant_Check (Flag3-Sem)
3985 -- Is_In_Discriminant_Check (Flag11-Sem)
3986 -- Atomic_Sync_Required (Flag14-Sem)
3987 -- Is_Prefixed_Call (Flag17-Sem)
3988 -- plus fields for expression
3990 --------------------------
3991 -- 4.1.3 Selector Name --
3992 --------------------------
3994 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3996 --------------------------------
3997 -- 4.1.4 Attribute Reference --
3998 --------------------------------
4000 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
4002 -- Note: the syntax is quite ambiguous at this point. Consider:
4004 -- A'Length (X) X is part of the attribute designator
4005 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
4006 -- A'Class (X) X is the expression of a type conversion
4008 -- It would be possible for the parser to distinguish these cases
4009 -- by looking at the attribute identifier. However, that would mean
4010 -- more work in introducing new implementation defined attributes,
4011 -- and also it would mean that special processing for attributes
4012 -- would be scattered around, instead of being centralized in the
4013 -- semantic routine that handles an N_Attribute_Reference node.
4014 -- Consequently, the parser in all the above cases stores the
4015 -- expression (X in these examples) as a single element list in
4016 -- in the Expressions field of the N_Attribute_Reference node.
4018 -- Similarly, for attributes like Max which take two arguments,
4019 -- we store the two arguments as a two element list in the
4020 -- Expressions field. Of course it is clear at parse time that
4021 -- this case is really a function call with an attribute as the
4022 -- prefix, but it turns out to be convenient to handle the two
4023 -- argument case in a similar manner to the one argument case,
4024 -- and indeed in general the parser will accept any number of
4025 -- expressions in this position and store them as a list in the
4026 -- attribute reference node. This allows for future addition of
4027 -- attributes that take more than two arguments.
4029 -- Note: named associates are not permitted in function calls where
4030 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
4031 -- to skip the normal subprogram argument processing.
4033 -- Note: for the attributes whose designators are technically keywords,
4034 -- i.e. digits, access, delta, range, the Attribute_Name field contains
4035 -- the corresponding name, even though no identifier is involved.
4037 -- Note: the generated code may contain stream attributes applied to
4038 -- limited types for which no stream routines exist officially. In such
4039 -- case, the result is to use the stream attribute for the underlying
4040 -- full type, or in the case of a protected type, the components
4041 -- (including any discriminants) are merely streamed in order.
4043 -- See Exp_Attr for a complete description of which attributes are
4044 -- passed onto Gigi, and which are handled entirely by the front end.
4046 -- Gigi restriction: For the Pos attribute, the prefix cannot be
4047 -- a non-standard enumeration type or a nonzero/zero semantics
4048 -- boolean type, so the value is simply the stored representation.
4050 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
4051 -- references a subprogram that is a renaming, then the front end must
4052 -- rewrite the attribute to refer directly to the renamed entity.
4054 -- Note: syntactically the prefix of an attribute reference must be a
4055 -- name, and this (somewhat artificial) requirement is enforced by the
4056 -- parser. However, for many attributes, such as 'Valid, it is quite
4057 -- reasonable to apply the attribute to any value, and hence to any
4058 -- expression. Internally in the tree, the prefix is an expression which
4059 -- does not have to be a name, and this is handled fine by the semantic
4060 -- analysis and expansion, and back ends. This arises for the case of
4061 -- attribute references built by the expander (e.g. 'Valid for the case
4062 -- of an implicit validity check).
4064 -- Note: In generated code, the Address and Unrestricted_Access
4065 -- attributes can be applied to any expression, and the meaning is
4066 -- to create an object containing the value (the object is in the
4067 -- current stack frame), and pass the address of this value. If the
4068 -- Must_Be_Byte_Aligned flag is set, then the object whose address
4069 -- is taken must be on a byte (storage unit) boundary, and if it is
4070 -- not (or may not be), then the generated code must create a copy
4071 -- that is byte aligned, and pass the address of this copy.
4073 -- N_Attribute_Reference
4074 -- Sloc points to apostrophe
4075 -- Prefix (Node3) (general expression, see note above)
4076 -- Attribute_Name (Name2) identifier name from attribute designator
4077 -- Expressions (List1) (set to No_List if no associated expressions)
4078 -- Entity (Node4-Sem) used if the attribute yields a type
4079 -- Associated_Node (Node4-Sem)
4080 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
4081 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
4082 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
4083 -- Header_Size_Added (Flag11-Sem)
4084 -- Redundant_Use (Flag13-Sem)
4085 -- Must_Be_Byte_Aligned (Flag14-Sem)
4086 -- plus fields for expression
4088 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
4089 -- into equivalent if expressions, properly taking care of side effects.
4091 ---------------------------------
4092 -- 4.1.4 Attribute Designator --
4093 ---------------------------------
4095 -- ATTRIBUTE_DESIGNATOR ::=
4096 -- IDENTIFIER [(static_EXPRESSION)]
4097 -- | access | delta | digits
4099 -- There is no explicit node in the tree for an attribute designator.
4100 -- Instead the Attribute_Name and Expressions fields of the parent
4101 -- node (N_Attribute_Reference node) hold the information.
4103 -- Note: if ACCESS, DELTA, or DIGITS appears in an attribute
4104 -- designator, then they are treated as identifiers internally
4105 -- rather than the keywords of the same name.
4107 --------------------------------------
4108 -- 4.1.4 Range Attribute Reference --
4109 --------------------------------------
4111 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
4113 -- A range attribute reference is represented in the tree using the
4114 -- normal N_Attribute_Reference node.
4116 ---------------------------------------
4117 -- 4.1.4 Range Attribute Designator --
4118 ---------------------------------------
4120 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
4122 -- A range attribute designator is represented in the tree using the
4123 -- normal N_Attribute_Reference node.
4125 --------------------
4126 -- 4.3 Aggregate --
4127 --------------------
4129 -- AGGREGATE ::=
4130 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
4132 -----------------------------
4133 -- 4.3.1 Record Aggregate --
4134 -----------------------------
4136 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
4138 -- N_Aggregate
4139 -- Sloc points to left parenthesis
4140 -- Expressions (List1) (set to No_List if none or null record case)
4141 -- Component_Associations (List2) (set to No_List if none)
4142 -- Null_Record_Present (Flag17)
4143 -- Aggregate_Bounds (Node3-Sem)
4144 -- Associated_Node (Node4-Sem)
4145 -- Compile_Time_Known_Aggregate (Flag18-Sem)
4146 -- Expansion_Delayed (Flag11-Sem)
4147 -- Has_Self_Reference (Flag13-Sem)
4148 -- plus fields for expression
4150 -- Note: this structure is used for both record and array aggregates
4151 -- since the two cases are not separable by the parser. The parser
4152 -- makes no attempt to enforce consistency here, so it is up to the
4153 -- semantic phase to make sure that the aggregate is consistent (i.e.
4154 -- that it is not a "half-and-half" case that mixes record and array
4155 -- syntax). In particular, for a record aggregate, the expressions
4156 -- field will be set if there are positional associations.
4158 -- Note: N_Aggregate is not used for all aggregates; in particular,
4159 -- there is a separate node kind for extension aggregates.
4161 -- Note: gigi/gcc can handle array aggregates correctly providing that
4162 -- they are entirely positional, and the array subtype involved has a
4163 -- known at compile time length and is not bit packed, or a convention
4164 -- Fortran array with more than one dimension. If these conditions
4165 -- are not met, then the front end must translate the aggregate into
4166 -- an appropriate set of assignments into a temporary.
4168 -- Note: for the record aggregate case, gigi/gcc can handle most cases
4169 -- of record aggregates, including those for packed, and rep-claused
4170 -- records, and also variant records, providing that there are no
4171 -- variable length fields whose size is not known at compile time,
4172 -- and providing that the aggregate is presented in fully named form.
4174 -- The other situation in which array aggregates and record aggregates
4175 -- cannot be passed to the back end is if assignment to one or more
4176 -- components itself needs expansion, e.g. in the case of an assignment
4177 -- of an object of a controlled type. In such cases, the front end
4178 -- must expand the aggregate to a series of assignments, and apply
4179 -- the required expansion to the individual assignment statements.
4181 ----------------------------------------------
4182 -- 4.3.1 Record Component Association List --
4183 ----------------------------------------------
4185 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
4186 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
4187 -- | null record
4189 -- There is no explicit node in the tree for a record component
4190 -- association list. Instead the Null_Record_Present flag is set in
4191 -- the parent node for the NULL RECORD case.
4193 ------------------------------------------------------
4194 -- 4.3.1 Record Component Association (also 4.3.3) --
4195 ------------------------------------------------------
4197 -- RECORD_COMPONENT_ASSOCIATION ::=
4198 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
4200 -- N_Component_Association
4201 -- Sloc points to first selector name
4202 -- Choices (List1)
4203 -- Loop_Actions (List2-Sem)
4204 -- Expression (Node3) (empty if Box_Present)
4205 -- Box_Present (Flag15)
4206 -- Inherited_Discriminant (Flag13)
4208 -- Note: this structure is used for both record component associations
4209 -- and array component associations, since the two cases aren't always
4210 -- separable by the parser. The choices list may represent either a
4211 -- list of selector names in the record aggregate case, or a list of
4212 -- discrete choices in the array aggregate case or an N_Others_Choice
4213 -- node (which appears as a singleton list). Box_Present gives support
4214 -- to Ada 2005 (AI-287).
4216 ----------------------------------
4217 -- 4.3.1 Component Choice List --
4218 ----------------------------------
4220 -- COMPONENT_CHOICE_LIST ::=
4221 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
4222 -- | others
4224 -- The entries of a component choice list appear in the Choices list of
4225 -- the associated N_Component_Association, as either selector names, or
4226 -- as an N_Others_Choice node.
4228 --------------------------------
4229 -- 4.3.2 Extension Aggregate --
4230 --------------------------------
4232 -- EXTENSION_AGGREGATE ::=
4233 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
4235 -- Note: extension aggregates are not permitted in Ada 83 mode
4237 -- N_Extension_Aggregate
4238 -- Sloc points to left parenthesis
4239 -- Ancestor_Part (Node3)
4240 -- Associated_Node (Node4-Sem)
4241 -- Expressions (List1) (set to No_List if none or null record case)
4242 -- Component_Associations (List2) (set to No_List if none)
4243 -- Null_Record_Present (Flag17)
4244 -- Expansion_Delayed (Flag11-Sem)
4245 -- Has_Self_Reference (Flag13-Sem)
4246 -- plus fields for expression
4248 --------------------------
4249 -- 4.3.2 Ancestor Part --
4250 --------------------------
4252 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
4254 ----------------------------
4255 -- 4.3.3 Array Aggregate --
4256 ----------------------------
4258 -- ARRAY_AGGREGATE ::=
4259 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
4261 ---------------------------------------
4262 -- 4.3.3 Positional Array Aggregate --
4263 ---------------------------------------
4265 -- POSITIONAL_ARRAY_AGGREGATE ::=
4266 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
4267 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
4269 -- See Record_Aggregate (4.3.1) for node structure
4271 ----------------------------------
4272 -- 4.3.3 Named Array Aggregate --
4273 ----------------------------------
4275 -- NAMED_ARRAY_AGGREGATE ::=
4276 -- (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
4278 -- See Record_Aggregate (4.3.1) for node structure
4280 ----------------------------------------
4281 -- 4.3.3 Array Component Association --
4282 ----------------------------------------
4284 -- ARRAY_COMPONENT_ASSOCIATION ::=
4285 -- DISCRETE_CHOICE_LIST => EXPRESSION
4286 -- | ITERATED_COMPONENT_ASSOCIATION
4288 -- See Record_Component_Association (4.3.1) for node structure
4289 -- The iterated_component_association is introduced into the
4290 -- Corrigendum of Ada_2012 by AI12-061.
4292 ------------------------------------------
4293 -- 4.3.3 Iterated component Association --
4294 ------------------------------------------
4296 -- ITERATED_COMPONENT_ASSOCIATION ::=
4297 -- for DEFINING_IDENTIFIER in DISCRETE_CHOICE_LIST => EXPRESSION
4299 -- N_Iterated_Component_Association
4300 -- Sloc points to FOR
4301 -- Defining_Identifier (Node1)
4302 -- Loop_Actions (List2-Sem)
4303 -- Expression (Node3)
4304 -- Discrete_Choices (List4)
4305 -- Box_Present (Flag15)
4307 -- Note that Box_Present is always False, but it is intentionally added
4308 -- for completeness.
4310 ----------------------------
4311 -- 4.3.4 Delta Aggregate --
4312 ----------------------------
4314 -- N_Delta_Aggregate
4315 -- Sloc points to left parenthesis
4316 -- Expression (Node3)
4317 -- Component_Associations (List2)
4319 --------------------------------------------------
4320 -- 4.4 Expression/Relation/Term/Factor/Primary --
4321 --------------------------------------------------
4323 -- EXPRESSION ::=
4324 -- RELATION {LOGICAL_OPERATOR RELATION}
4326 -- CHOICE_EXPRESSION ::=
4327 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
4329 -- CHOICE_RELATION ::=
4330 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
4332 -- RELATION ::=
4333 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4334 -- | RAISE_EXPRESSION
4336 -- MEMBERSHIP_CHOICE_LIST ::=
4337 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4339 -- MEMBERSHIP_CHOICE ::=
4340 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4342 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
4344 -- SIMPLE_EXPRESSION ::=
4345 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
4347 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
4349 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
4351 -- No nodes are generated for any of these constructs. Instead, the
4352 -- node for the operator appears directly. When we refer to an
4353 -- expression in this description, we mean any of the possible
4354 -- constituent components of an expression (e.g. identifier is
4355 -- an example of an expression).
4357 -- Note: the above syntax is that Ada 2012 syntax which restricts
4358 -- choice relations to simple expressions to avoid ambiguities in
4359 -- some contexts with set membership notation. It has been decided
4360 -- that in retrospect, the Ada 95 change allowing general expressions
4361 -- in this context was a mistake, so we have reverted to the above
4362 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
4363 -- expressions was there in Ada 83 from the start).
4365 ------------------
4366 -- 4.4 Primary --
4367 ------------------
4369 -- PRIMARY ::=
4370 -- NUMERIC_LITERAL | null
4371 -- | STRING_LITERAL | AGGREGATE
4372 -- | NAME | QUALIFIED_EXPRESSION
4373 -- | ALLOCATOR | (EXPRESSION)
4375 -- Usually there is no explicit node in the tree for primary. Instead
4376 -- the constituent (e.g. AGGREGATE) appears directly. There are two
4377 -- exceptions. First, there is an explicit node for a null primary.
4379 -- N_Null
4380 -- Sloc points to NULL
4381 -- plus fields for expression
4383 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
4384 -- that the parser keep track of which subexpressions are enclosed
4385 -- in parentheses, and how many levels of parentheses are used. This
4386 -- information is required for optimization purposes, and also for
4387 -- some semantic checks (e.g. (((1))) in a procedure spec does not
4388 -- conform with ((((1)))) in the body).
4390 -- The parentheses are recorded by keeping a Paren_Count field in every
4391 -- subexpression node (it is actually present in all nodes, but only
4392 -- used in subexpression nodes). This count records the number of
4393 -- levels of parentheses. If the number of levels in the source exceeds
4394 -- the maximum accommodated by this count, then the count is simply left
4395 -- at the maximum value. This means that there are some pathological
4396 -- cases of failure to detect conformance failures (e.g. an expression
4397 -- with 500 levels of parens will conform with one with 501 levels),
4398 -- but we do not need to lose sleep over this.
4400 -- Historical note: in versions of GNAT prior to 1.75, there was a node
4401 -- type N_Parenthesized_Expression used to accurately record unlimited
4402 -- numbers of levels of parentheses. However, it turned out to be a
4403 -- real nuisance to have to take into account the possible presence of
4404 -- this node during semantic analysis, since basically parentheses have
4405 -- zero relevance to semantic analysis.
4407 -- Note: the level of parentheses always present in things like
4408 -- aggregates does not count, only the parentheses in the primary
4409 -- (EXPRESSION) affect the setting of the Paren_Count field.
4411 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
4412 -- treated as though it were Empty) if No_Initialization is set True.
4414 --------------------------------------
4415 -- 4.5 Short-Circuit Control Forms --
4416 --------------------------------------
4418 -- EXPRESSION ::=
4419 -- RELATION {and then RELATION} | RELATION {or else RELATION}
4421 -- Gigi restriction: For both these control forms, the operand and
4422 -- result types are always Standard.Boolean. The expander inserts the
4423 -- required conversion operations where needed to ensure this is the
4424 -- case.
4426 -- N_And_Then
4427 -- Sloc points to AND of AND THEN
4428 -- Left_Opnd (Node2)
4429 -- Right_Opnd (Node3)
4430 -- Actions (List1-Sem)
4431 -- plus fields for expression
4433 -- N_Or_Else
4434 -- Sloc points to OR of OR ELSE
4435 -- Left_Opnd (Node2)
4436 -- Right_Opnd (Node3)
4437 -- Actions (List1-Sem)
4438 -- plus fields for expression
4440 -- Note: The Actions field is used to hold actions associated with
4441 -- the right hand operand. These have to be treated specially since
4442 -- they are not unconditionally executed. See Insert_Actions for a
4443 -- more detailed description of how these actions are handled.
4445 ---------------------------
4446 -- 4.5 Membership Tests --
4447 ---------------------------
4449 -- RELATION ::=
4450 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4452 -- MEMBERSHIP_CHOICE_LIST ::=
4453 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4455 -- MEMBERSHIP_CHOICE ::=
4456 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4458 -- Note: although the grammar above allows only a range or a subtype
4459 -- mark, the parser in fact will accept any simple expression in place
4460 -- of a subtype mark. This means that the semantic analyzer must be able
4461 -- to deal with, and diagnose a simple expression other than a name for
4462 -- the right operand. This simplifies error recovery in the parser.
4464 -- The Alternatives field below is present only if there is more than
4465 -- one Membership_Choice present (which is legitimate only in Ada 2012
4466 -- mode) in which case Right_Opnd is Empty, and Alternatives contains
4467 -- the list of choices. In the tree passed to the back end, Alternatives
4468 -- is always No_List, and Right_Opnd is set (i.e. the expansion circuit
4469 -- expands out the complex set membership case using simple membership
4470 -- and equality operations).
4472 -- Should we rename Alternatives here to Membership_Choices ???
4474 -- N_In
4475 -- Sloc points to IN
4476 -- Left_Opnd (Node2)
4477 -- Right_Opnd (Node3)
4478 -- Alternatives (List4) (set to No_List if only one set alternative)
4479 -- No_Minimize_Eliminate (Flag17)
4480 -- plus fields for expression
4482 -- N_Not_In
4483 -- Sloc points to NOT of NOT IN
4484 -- Left_Opnd (Node2)
4485 -- Right_Opnd (Node3)
4486 -- Alternatives (List4) (set to No_List if only one set alternative)
4487 -- No_Minimize_Eliminate (Flag17)
4488 -- plus fields for expression
4490 --------------------
4491 -- 4.5 Operators --
4492 --------------------
4494 -- LOGICAL_OPERATOR ::= and | or | xor
4496 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
4498 -- BINARY_ADDING_OPERATOR ::= + | - | &
4500 -- UNARY_ADDING_OPERATOR ::= + | -
4502 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
4504 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
4506 -- Sprint syntax if Treat_Fixed_As_Integer is set:
4508 -- x #* y
4509 -- x #/ y
4510 -- x #mod y
4511 -- x #rem y
4513 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
4514 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
4515 -- All handling of smalls for multiplication and division is handled
4516 -- by the front end (mod and rem result only from expansion). Gigi
4517 -- thus never needs to worry about small values (for other operators
4518 -- operating on fixed-point, e.g. addition, the small value does not
4519 -- have any semantic effect anyway, these are always integer operations.
4521 -- Gigi restriction: For all operators taking Boolean operands, the
4522 -- type is always Standard.Boolean. The expander inserts the required
4523 -- conversion operations where needed to ensure this is the case.
4525 -- N_Op_And
4526 -- Sloc points to AND
4527 -- Do_Length_Check (Flag4-Sem)
4528 -- plus fields for binary operator
4529 -- plus fields for expression
4531 -- N_Op_Or
4532 -- Sloc points to OR
4533 -- Do_Length_Check (Flag4-Sem)
4534 -- plus fields for binary operator
4535 -- plus fields for expression
4537 -- N_Op_Xor
4538 -- Sloc points to XOR
4539 -- Do_Length_Check (Flag4-Sem)
4540 -- plus fields for binary operator
4541 -- plus fields for expression
4543 -- N_Op_Eq
4544 -- Sloc points to =
4545 -- plus fields for binary operator
4546 -- plus fields for expression
4548 -- N_Op_Ne
4549 -- Sloc points to /=
4550 -- plus fields for binary operator
4551 -- plus fields for expression
4553 -- N_Op_Lt
4554 -- Sloc points to <
4555 -- plus fields for binary operator
4556 -- plus fields for expression
4558 -- N_Op_Le
4559 -- Sloc points to <=
4560 -- plus fields for binary operator
4561 -- plus fields for expression
4563 -- N_Op_Gt
4564 -- Sloc points to >
4565 -- plus fields for binary operator
4566 -- plus fields for expression
4568 -- N_Op_Ge
4569 -- Sloc points to >=
4570 -- plus fields for binary operator
4571 -- plus fields for expression
4573 -- N_Op_Add
4574 -- Sloc points to + (binary)
4575 -- plus fields for binary operator
4576 -- plus fields for expression
4578 -- N_Op_Subtract
4579 -- Sloc points to - (binary)
4580 -- plus fields for binary operator
4581 -- plus fields for expression
4583 -- N_Op_Concat
4584 -- Sloc points to &
4585 -- Is_Component_Left_Opnd (Flag13-Sem)
4586 -- Is_Component_Right_Opnd (Flag14-Sem)
4587 -- plus fields for binary operator
4588 -- plus fields for expression
4590 -- N_Op_Multiply
4591 -- Sloc points to *
4592 -- Treat_Fixed_As_Integer (Flag14-Sem)
4593 -- Rounded_Result (Flag18-Sem)
4594 -- plus fields for binary operator
4595 -- plus fields for expression
4597 -- N_Op_Divide
4598 -- Sloc points to /
4599 -- Treat_Fixed_As_Integer (Flag14-Sem)
4600 -- Do_Division_Check (Flag13-Sem)
4601 -- Rounded_Result (Flag18-Sem)
4602 -- plus fields for binary operator
4603 -- plus fields for expression
4605 -- N_Op_Mod
4606 -- Sloc points to MOD
4607 -- Treat_Fixed_As_Integer (Flag14-Sem)
4608 -- Do_Division_Check (Flag13-Sem)
4609 -- plus fields for binary operator
4610 -- plus fields for expression
4612 -- N_Op_Rem
4613 -- Sloc points to REM
4614 -- Treat_Fixed_As_Integer (Flag14-Sem)
4615 -- Do_Division_Check (Flag13-Sem)
4616 -- plus fields for binary operator
4617 -- plus fields for expression
4619 -- N_Op_Expon
4620 -- Sloc points to **
4621 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4622 -- plus fields for binary operator
4623 -- plus fields for expression
4625 -- N_Op_Plus
4626 -- Sloc points to + (unary)
4627 -- plus fields for unary operator
4628 -- plus fields for expression
4630 -- N_Op_Minus
4631 -- Sloc points to - (unary)
4632 -- plus fields for unary operator
4633 -- plus fields for expression
4635 -- N_Op_Abs
4636 -- Sloc points to ABS
4637 -- plus fields for unary operator
4638 -- plus fields for expression
4640 -- N_Op_Not
4641 -- Sloc points to NOT
4642 -- plus fields for unary operator
4643 -- plus fields for expression
4645 -- See also shift operators in section B.2
4647 -- Note on fixed-point operations passed to Gigi: For adding operators,
4648 -- the semantics is to treat these simply as integer operations, with
4649 -- the small values being ignored (the bounds are already stored in
4650 -- units of small, so that constraint checking works as usual). For the
4651 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4652 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4653 -- thus treat these nodes in identical manner, ignoring small values.
4655 -- Note on equality/inequality tests for records. In the expanded tree,
4656 -- record comparisons are always expanded to be a series of component
4657 -- comparisons, so the back end will never see an equality or inequality
4658 -- operation with operands of a record type.
4660 -- Note on overflow handling: When the overflow checking mode is set to
4661 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4662 -- be modified to use a larger type for the operands and result. In
4663 -- the case where the computed range exceeds that of Long_Long_Integer,
4664 -- and we are running in ELIMINATED mode, the operator node will be
4665 -- changed to be a call to the appropriate routine in System.Bignums.
4667 -- Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4668 -- for signed integer types (since there is no equivalent operator in
4669 -- C). Instead we rewrite such an operation in terms of REM (which is
4670 -- % in C) and other C-available operators.
4672 ------------------------------------
4673 -- 4.5.7 Conditional Expressions --
4674 ------------------------------------
4676 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4678 --------------------------
4679 -- 4.5.7 If Expression --
4680 ----------------------------
4682 -- IF_EXPRESSION ::=
4683 -- if CONDITION then DEPENDENT_EXPRESSION
4684 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4685 -- [else DEPENDENT_EXPRESSION]
4687 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4689 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4690 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4691 -- the Is_Elsif flag is set on the inner if expression.
4693 -- N_If_Expression
4694 -- Sloc points to IF or ELSIF keyword
4695 -- Expressions (List1)
4696 -- Then_Actions (List2-Sem)
4697 -- Else_Actions (List3-Sem)
4698 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4699 -- Do_Overflow_Check (Flag17-Sem)
4700 -- plus fields for expression
4702 -- Expressions here is a three-element list, whose first element is the
4703 -- condition, the second element is the dependent expression after THEN
4704 -- and the third element is the dependent expression after the ELSE
4705 -- (explicitly set to True if missing).
4707 -- Note: the Then_Actions and Else_Actions fields are always set to
4708 -- No_List in the tree passed to the back end. These are used only
4709 -- for temporary processing purposes in the expander. Even though they
4710 -- are semantic fields, their parent pointers are set because analysis
4711 -- of actions nodes in those lists may generate additional actions that
4712 -- need to know their insertion point (for example for the creation of
4713 -- transient scopes).
4715 -- Note: in the tree passed to the back end, if the result type is
4716 -- an unconstrained array, the if expression can only appears in the
4717 -- initializing expression of an object declaration (this avoids the
4718 -- back end having to create a variable length temporary on the fly).
4720 ----------------------------
4721 -- 4.5.7 Case Expression --
4722 ----------------------------
4724 -- CASE_EXPRESSION ::=
4725 -- case SELECTING_EXPRESSION is
4726 -- CASE_EXPRESSION_ALTERNATIVE
4727 -- {,CASE_EXPRESSION_ALTERNATIVE}
4729 -- Note that the Alternatives cannot include pragmas (this contrasts
4730 -- with the situation of case statements where pragmas are allowed).
4732 -- N_Case_Expression
4733 -- Sloc points to CASE
4734 -- Expression (Node3) (the selecting expression)
4735 -- Alternatives (List4) (the case expression alternatives)
4736 -- Do_Overflow_Check (Flag17-Sem)
4738 ----------------------------------------
4739 -- 4.5.7 Case Expression Alternative --
4740 ----------------------------------------
4742 -- CASE_EXPRESSION_ALTERNATIVE ::=
4743 -- when DISCRETE_CHOICE_LIST =>
4744 -- DEPENDENT_EXPRESSION
4746 -- N_Case_Expression_Alternative
4747 -- Sloc points to WHEN
4748 -- Actions (List1)
4749 -- Discrete_Choices (List4)
4750 -- Expression (Node3)
4751 -- Has_SP_Choice (Flag15-Sem)
4753 -- Note: The Actions field temporarily holds any actions associated with
4754 -- evaluation of the Expression. During expansion of the case expression
4755 -- these actions are wrapped into an N_Expressions_With_Actions node
4756 -- replacing the original expression.
4758 -- Note: this node never appears in the tree passed to the back end,
4759 -- since the expander converts case expressions into case statements.
4761 ---------------------------------
4762 -- 4.5.8 Quantified Expression --
4763 ---------------------------------
4765 -- QUANTIFIED_EXPRESSION ::=
4766 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4767 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4769 -- QUANTIFIER ::= all | some
4771 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4772 -- is present at a time, in which case the other one is empty.
4774 -- N_Quantified_Expression
4775 -- Sloc points to FOR
4776 -- Iterator_Specification (Node2)
4777 -- Loop_Parameter_Specification (Node4)
4778 -- Condition (Node1)
4779 -- All_Present (Flag15)
4781 --------------------------
4782 -- 4.6 Type Conversion --
4783 --------------------------
4785 -- TYPE_CONVERSION ::=
4786 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4788 -- In the (NAME) case, the name is stored as the expression
4790 -- Note: the parser never generates a type conversion node, since it
4791 -- looks like an indexed component which is generated by preference.
4792 -- The semantic pass must correct this misidentification.
4794 -- Gigi handles conversions that involve no change in the root type,
4795 -- and also all conversions from integer to floating-point types.
4796 -- Conversions from floating-point to integer are only handled in
4797 -- the case where Float_Truncate flag set. Other conversions from
4798 -- floating-point to integer (involving rounding) and all conversions
4799 -- involving fixed-point types are handled by the expander.
4801 -- Sprint syntax if Float_Truncate set: X^(Y)
4802 -- Sprint syntax if Conversion_OK set X?(Y)
4803 -- Sprint syntax if both flags set X?^(Y)
4805 -- Note: If either the operand or result type is fixed-point, Gigi will
4806 -- only see a type conversion node with Conversion_OK set. The front end
4807 -- takes care of all handling of small's for fixed-point conversions.
4809 -- N_Type_Conversion
4810 -- Sloc points to first token of subtype mark
4811 -- Subtype_Mark (Node4)
4812 -- Expression (Node3)
4813 -- Do_Discriminant_Check (Flag3-Sem)
4814 -- Do_Length_Check (Flag4-Sem)
4815 -- Float_Truncate (Flag11-Sem)
4816 -- Do_Tag_Check (Flag13-Sem)
4817 -- Conversion_OK (Flag14-Sem)
4818 -- Do_Overflow_Check (Flag17-Sem)
4819 -- Rounded_Result (Flag18-Sem)
4820 -- plus fields for expression
4822 -- Note: if a range check is required, then the Do_Range_Check flag
4823 -- is set in the Expression with the check being done against the
4824 -- target type range (after the base type conversion, if any).
4826 -------------------------------
4827 -- 4.7 Qualified Expression --
4828 -------------------------------
4830 -- QUALIFIED_EXPRESSION ::=
4831 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4833 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4834 -- the expression, so the Expression field of this node always points
4835 -- to a parenthesized expression in this case (i.e. Paren_Count will
4836 -- always be non-zero for the referenced expression if it is not an
4837 -- aggregate).
4839 -- N_Qualified_Expression
4840 -- Sloc points to apostrophe
4841 -- Subtype_Mark (Node4)
4842 -- Expression (Node3) expression or aggregate
4843 -- Is_Qualified_Universal_Literal (Flag4-Sem)
4844 -- plus fields for expression
4846 --------------------
4847 -- 4.8 Allocator --
4848 --------------------
4850 -- ALLOCATOR ::=
4851 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4852 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4854 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4856 -- Sprint syntax (when storage pool present)
4857 -- new xxx (storage_pool = pool)
4858 -- or
4859 -- new (subpool) xxx (storage_pool = pool)
4861 -- N_Allocator
4862 -- Sloc points to NEW
4863 -- Expression (Node3) subtype indication or qualified expression
4864 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4865 -- Storage_Pool (Node1-Sem)
4866 -- Procedure_To_Call (Node2-Sem)
4867 -- Alloc_For_BIP_Return (Flag1-Sem)
4868 -- Null_Exclusion_Present (Flag11)
4869 -- No_Initialization (Flag13-Sem)
4870 -- Is_Static_Coextension (Flag14-Sem)
4871 -- Do_Storage_Check (Flag17-Sem)
4872 -- Is_Dynamic_Coextension (Flag18-Sem)
4873 -- plus fields for expression
4875 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4876 -- This flag has a special function in conjunction with the restriction
4877 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4878 -- is not set. This means that if a source allocator is replaced with
4879 -- a constructed allocator, the Comes_From_Source flag should be copied
4880 -- to the newly created allocator.
4882 ---------------------------------
4883 -- 5.1 Sequence Of Statements --
4884 ---------------------------------
4886 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4888 -- Note: Although the parser will not accept a declaration as a
4889 -- statement, the semantic analyzer may insert declarations (e.g.
4890 -- declarations of implicit types needed for execution of other
4891 -- statements) into a sequence of statements, so the code generator
4892 -- should be prepared to accept a declaration where a statement is
4893 -- expected. Note also that pragmas can appear as statements.
4895 --------------------
4896 -- 5.1 Statement --
4897 --------------------
4899 -- STATEMENT ::=
4900 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4902 -- There is no explicit node in the tree for a statement. Instead, the
4903 -- individual statement appears directly. Labels are treated as a
4904 -- kind of statement, i.e. they are linked into a statement list at
4905 -- the point they appear, so the labeled statement appears following
4906 -- the label or labels in the statement list.
4908 ---------------------------
4909 -- 5.1 Simple Statement --
4910 ---------------------------
4912 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4913 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4914 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4915 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4916 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4917 -- | ABORT_STATEMENT | RAISE_STATEMENT
4918 -- | CODE_STATEMENT
4920 -----------------------------
4921 -- 5.1 Compound Statement --
4922 -----------------------------
4924 -- COMPOUND_STATEMENT ::=
4925 -- IF_STATEMENT | CASE_STATEMENT
4926 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4927 -- | EXTENDED_RETURN_STATEMENT
4928 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4930 -------------------------
4931 -- 5.1 Null Statement --
4932 -------------------------
4934 -- NULL_STATEMENT ::= null;
4936 -- N_Null_Statement
4937 -- Sloc points to NULL
4939 ----------------
4940 -- 5.1 Label --
4941 ----------------
4943 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4945 -- Note that the occurrence of a label is not a defining identifier,
4946 -- but rather a referencing occurrence. The defining occurrence is
4947 -- in the implicit label declaration which occurs in the innermost
4948 -- enclosing block.
4950 -- N_Label
4951 -- Sloc points to <<
4952 -- Identifier (Node1) direct name of statement identifier
4953 -- Exception_Junk (Flag8-Sem)
4955 -- Note: Before Ada 2012, a label is always followed by a statement,
4956 -- and this is true in the tree even in Ada 2012 mode (the parser
4957 -- inserts a null statement marked with Comes_From_Source False).
4959 -------------------------------
4960 -- 5.1 Statement Identifier --
4961 -------------------------------
4963 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4965 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4966 -- (not an OPERATOR_SYMBOL)
4968 -------------------------------
4969 -- 5.2 Assignment Statement --
4970 -------------------------------
4972 -- ASSIGNMENT_STATEMENT ::=
4973 -- variable_NAME := EXPRESSION;
4975 -- N_Assignment_Statement
4976 -- Sloc points to :=
4977 -- Name (Node2)
4978 -- Expression (Node3)
4979 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
4980 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
4981 -- Do_Discriminant_Check (Flag3-Sem)
4982 -- Do_Length_Check (Flag4-Sem)
4983 -- Forwards_OK (Flag5-Sem)
4984 -- Backwards_OK (Flag6-Sem)
4985 -- No_Ctrl_Actions (Flag7-Sem)
4986 -- Has_Target_Names (Flag8-Sem)
4987 -- Is_Elaboration_Code (Flag9-Sem)
4988 -- Do_Tag_Check (Flag13-Sem)
4989 -- Componentwise_Assignment (Flag14-Sem)
4990 -- Suppress_Assignment_Checks (Flag18-Sem)
4992 -- Note: if a range check is required, then the Do_Range_Check flag
4993 -- is set in the Expression (right hand side), with the check being
4994 -- done against the type of the Name (left hand side).
4996 -- Note: the back end places some restrictions on the form of the
4997 -- Expression field. If the object being assigned to is Atomic, then
4998 -- the Expression may not have the form of an aggregate (since this
4999 -- might cause the back end to generate separate assignments). In this
5000 -- case the front end must generate an extra temporary and initialize
5001 -- this temporary as required (the temporary itself is not atomic).
5003 ------------------
5004 -- Target_Name --
5005 ------------------
5007 -- N_Target_Name
5008 -- Sloc points to @
5009 -- Etype (Node5-Sem)
5011 -- Note (Ada 2020): node is used during analysis as a placeholder for
5012 -- the value of the LHS of the enclosing assignment statement. Node is
5013 -- eventually rewritten together with enclosing assignment, and backends
5014 -- are not aware of it.
5016 -----------------------
5017 -- 5.3 If Statement --
5018 -----------------------
5020 -- IF_STATEMENT ::=
5021 -- if CONDITION then
5022 -- SEQUENCE_OF_STATEMENTS
5023 -- {elsif CONDITION then
5024 -- SEQUENCE_OF_STATEMENTS}
5025 -- [else
5026 -- SEQUENCE_OF_STATEMENTS]
5027 -- end if;
5029 -- Gigi restriction: This expander ensures that the type of the
5030 -- Condition fields is always Standard.Boolean, even if the type
5031 -- in the source is some non-standard boolean type.
5033 -- N_If_Statement
5034 -- Sloc points to IF
5035 -- Condition (Node1)
5036 -- Then_Statements (List2)
5037 -- Elsif_Parts (List3) (set to No_List if none present)
5038 -- Else_Statements (List4) (set to No_List if no else part present)
5039 -- End_Span (Uint5) (set to Uint_0 if expander generated)
5040 -- From_Conditional_Expression (Flag1-Sem)
5042 -- N_Elsif_Part
5043 -- Sloc points to ELSIF
5044 -- Condition (Node1)
5045 -- Then_Statements (List2)
5046 -- Condition_Actions (List3-Sem)
5048 --------------------
5049 -- 5.3 Condition --
5050 --------------------
5052 -- CONDITION ::= boolean_EXPRESSION
5054 -------------------------
5055 -- 5.4 Case Statement --
5056 -------------------------
5058 -- CASE_STATEMENT ::=
5059 -- case EXPRESSION is
5060 -- CASE_STATEMENT_ALTERNATIVE
5061 -- {CASE_STATEMENT_ALTERNATIVE}
5062 -- end case;
5064 -- Note: the Alternatives can contain pragmas. These only occur at
5065 -- the start of the list, since any pragmas occurring after the first
5066 -- alternative are absorbed into the corresponding statement sequence.
5068 -- N_Case_Statement
5069 -- Sloc points to CASE
5070 -- Expression (Node3)
5071 -- Alternatives (List4)
5072 -- End_Span (Uint5) (set to Uint_0 if expander generated)
5073 -- From_Conditional_Expression (Flag1-Sem)
5075 -- Note: Before Ada 2012, a pragma in a statement sequence is always
5076 -- followed by a statement, and this is true in the tree even in Ada
5077 -- 2012 mode (the parser inserts a null statement marked with the flag
5078 -- Comes_From_Source False).
5080 -------------------------------------
5081 -- 5.4 Case Statement Alternative --
5082 -------------------------------------
5084 -- CASE_STATEMENT_ALTERNATIVE ::=
5085 -- when DISCRETE_CHOICE_LIST =>
5086 -- SEQUENCE_OF_STATEMENTS
5088 -- N_Case_Statement_Alternative
5089 -- Sloc points to WHEN
5090 -- Discrete_Choices (List4)
5091 -- Statements (List3)
5092 -- Has_SP_Choice (Flag15-Sem)
5094 -- Note: in the list of Discrete_Choices, the tree passed to the back
5095 -- end does not have choice entries corresponding to names of statically
5096 -- predicated subtypes. Such entries are always expanded out to the list
5097 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
5098 -- mode does not have this expansion, and has the original choices.
5100 -------------------------
5101 -- 5.5 Loop Statement --
5102 -------------------------
5104 -- LOOP_STATEMENT ::=
5105 -- [loop_STATEMENT_IDENTIFIER :]
5106 -- [ITERATION_SCHEME] loop
5107 -- SEQUENCE_OF_STATEMENTS
5108 -- end loop [loop_IDENTIFIER];
5110 -- Note: The occurrence of a loop label is not a defining identifier
5111 -- but rather a referencing occurrence. The defining occurrence is in
5112 -- the implicit label declaration which occurs in the innermost
5113 -- enclosing block.
5115 -- Note: there is always a loop statement identifier present in the
5116 -- tree, even if none was given in the source. In the case where no loop
5117 -- identifier is given in the source, the parser creates a name of the
5118 -- form _Loop_n, where n is a decimal integer (the two underlines ensure
5119 -- that the loop names created in this manner do not conflict with any
5120 -- user defined identifiers), and the flag Has_Created_Identifier is set
5121 -- to True. The only exception to the rule that all loop statement nodes
5122 -- have identifiers occurs for loops constructed by the expander, and
5123 -- the semantic analyzer will create and supply dummy loop identifiers
5124 -- in these cases.
5126 -- N_Loop_Statement
5127 -- Sloc points to LOOP
5128 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
5129 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
5130 -- Statements (List3)
5131 -- End_Label (Node4)
5132 -- Has_Created_Identifier (Flag15)
5133 -- Is_Null_Loop (Flag16)
5134 -- Suppress_Loop_Warnings (Flag17)
5136 -- Note: the parser fills in the Identifier field if there is an
5137 -- explicit loop identifier. Otherwise the parser leaves this field
5138 -- set to Empty, and then the semantic processing for a loop statement
5139 -- creates an identifier, setting the Has_Created_Identifier flag to
5140 -- True. So after semantic analysis, the Identifier is always set,
5141 -- referencing an identifier whose entity has an Ekind of E_Loop.
5143 ---------------------------
5144 -- 5.5 Iteration Scheme --
5145 ---------------------------
5147 -- ITERATION_SCHEME ::=
5148 -- while CONDITION
5149 -- | for LOOP_PARAMETER_SPECIFICATION
5150 -- | for ITERATOR_SPECIFICATION
5152 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
5153 -- is present at a time, in which case the other one is empty. Both are
5154 -- empty in the case of a WHILE loop.
5156 -- Gigi restriction: The expander ensures that the type of the Condition
5157 -- field is always Standard.Boolean, even if the type in the source is
5158 -- some non-standard boolean type.
5160 -- N_Iteration_Scheme
5161 -- Sloc points to WHILE or FOR
5162 -- Condition (Node1) (set to Empty if FOR case)
5163 -- Condition_Actions (List3-Sem)
5164 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
5165 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
5167 ---------------------------------------
5168 -- 5.5 Loop Parameter Specification --
5169 ---------------------------------------
5171 -- LOOP_PARAMETER_SPECIFICATION ::=
5172 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
5174 -- N_Loop_Parameter_Specification
5175 -- Sloc points to first identifier
5176 -- Defining_Identifier (Node1)
5177 -- Reverse_Present (Flag15)
5178 -- Discrete_Subtype_Definition (Node4)
5180 -----------------------------------
5181 -- 5.5.1 Iterator Specification --
5182 -----------------------------------
5184 -- ITERATOR_SPECIFICATION ::=
5185 -- DEFINING_IDENTIFIER in [reverse] NAME
5186 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
5188 -- N_Iterator_Specification
5189 -- Sloc points to defining identifier
5190 -- Defining_Identifier (Node1)
5191 -- Name (Node2)
5192 -- Reverse_Present (Flag15)
5193 -- Of_Present (Flag16)
5194 -- Subtype_Indication (Node5)
5196 -- Note: The Of_Present flag distinguishes the two forms
5198 --------------------------
5199 -- 5.6 Block Statement --
5200 --------------------------
5202 -- BLOCK_STATEMENT ::=
5203 -- [block_STATEMENT_IDENTIFIER:]
5204 -- [declare
5205 -- DECLARATIVE_PART]
5206 -- begin
5207 -- HANDLED_SEQUENCE_OF_STATEMENTS
5208 -- end [block_IDENTIFIER];
5210 -- Note that the occurrence of a block identifier is not a defining
5211 -- identifier, but rather a referencing occurrence. The defining
5212 -- occurrence is an E_Block entity declared by the implicit label
5213 -- declaration which occurs in the innermost enclosing block statement
5214 -- or body; the block identifier denotes that E_Block.
5216 -- For block statements that come from source code, there is always a
5217 -- block statement identifier present in the tree, denoting an E_Block.
5218 -- In the case where no block identifier is given in the source,
5219 -- the parser creates a name of the form B_n, where n is a decimal
5220 -- integer, and the flag Has_Created_Identifier is set to True. Blocks
5221 -- constructed by the expander usually have no identifier, and no
5222 -- corresponding entity.
5224 -- Note: the block statement created for an extended return statement
5225 -- has an entity, and this entity is an E_Return_Statement, rather than
5226 -- the usual E_Block.
5228 -- Note: Exception_Junk is set for the wrapping blocks created during
5229 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
5231 -- Note: from a control flow viewpoint, a block statement defines an
5232 -- extended basic block, i.e. the entry of the block dominates every
5233 -- statement in the sequence. When generating new statements with
5234 -- exception handlers in the expander at the end of a sequence that
5235 -- comes from source code, it can be necessary to wrap them all in a
5236 -- block statement in order to expose the implicit control flow to
5237 -- gigi and thus prevent it from issuing bogus control flow warnings.
5239 -- N_Block_Statement
5240 -- Sloc points to DECLARE or BEGIN
5241 -- Identifier (Node1) block direct name (set to Empty if not present)
5242 -- Declarations (List2) (set to No_List if no DECLARE part)
5243 -- Handled_Statement_Sequence (Node4)
5244 -- Activation_Chain_Entity (Node3-Sem)
5245 -- Cleanup_Actions (List5-Sem)
5246 -- Has_Created_Identifier (Flag15)
5247 -- Is_Asynchronous_Call_Block (Flag7)
5248 -- Is_Task_Allocation_Block (Flag6)
5249 -- Exception_Junk (Flag8-Sem)
5250 -- Is_Abort_Block (Flag4-Sem)
5251 -- Is_Finalization_Wrapper (Flag9-Sem)
5252 -- Is_Initialization_Block (Flag1-Sem)
5253 -- Is_Task_Master (Flag5-Sem)
5255 -------------------------
5256 -- 5.7 Exit Statement --
5257 -------------------------
5259 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
5261 -- Gigi restriction: The expander ensures that the type of the Condition
5262 -- field is always Standard.Boolean, even if the type in the source is
5263 -- some non-standard boolean type.
5265 -- N_Exit_Statement
5266 -- Sloc points to EXIT
5267 -- Name (Node2) (set to Empty if no loop name present)
5268 -- Condition (Node1) (set to Empty if no WHEN part present)
5269 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
5271 -------------------------
5272 -- 5.9 Goto Statement --
5273 -------------------------
5275 -- GOTO_STATEMENT ::= goto label_NAME;
5277 -- N_Goto_Statement
5278 -- Sloc points to GOTO
5279 -- Name (Node2)
5280 -- Exception_Junk (Flag8-Sem)
5282 ---------------------------------
5283 -- 6.1 Subprogram Declaration --
5284 ---------------------------------
5286 -- SUBPROGRAM_DECLARATION ::=
5287 -- SUBPROGRAM_SPECIFICATION
5288 -- [ASPECT_SPECIFICATIONS];
5290 -- N_Subprogram_Declaration
5291 -- Sloc points to FUNCTION or PROCEDURE
5292 -- Specification (Node1)
5293 -- Body_To_Inline (Node3-Sem)
5294 -- Corresponding_Body (Node5-Sem)
5295 -- Parent_Spec (Node4-Sem)
5296 -- Is_Entry_Barrier_Function (Flag8-Sem)
5297 -- Is_Task_Body_Procedure (Flag1-Sem)
5299 ------------------------------------------
5300 -- 6.1 Abstract Subprogram Declaration --
5301 ------------------------------------------
5303 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
5304 -- SUBPROGRAM_SPECIFICATION is abstract
5305 -- [ASPECT_SPECIFICATIONS];
5307 -- N_Abstract_Subprogram_Declaration
5308 -- Sloc points to ABSTRACT
5309 -- Specification (Node1)
5311 -----------------------------------
5312 -- 6.1 Subprogram Specification --
5313 -----------------------------------
5315 -- SUBPROGRAM_SPECIFICATION ::=
5316 -- [[not] overriding]
5317 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
5318 -- | [[not] overriding]
5319 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
5321 -- Note: there are no separate nodes for the profiles, instead the
5322 -- information appears directly in the following nodes.
5324 -- N_Function_Specification
5325 -- Sloc points to FUNCTION
5326 -- Defining_Unit_Name (Node1) (the designator)
5327 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5328 -- Null_Exclusion_Present (Flag11)
5329 -- Result_Definition (Node4) for result subtype
5330 -- Generic_Parent (Node5-Sem)
5331 -- Must_Override (Flag14) set if overriding indicator present
5332 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5334 -- N_Procedure_Specification
5335 -- Sloc points to PROCEDURE
5336 -- Defining_Unit_Name (Node1)
5337 -- Null_Statement (Node2-Sem) NULL statement for body, if Null_Present
5338 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5339 -- Generic_Parent (Node5-Sem)
5340 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
5341 -- Must_Override (Flag14) set if overriding indicator present
5342 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5344 -- Note: overriding indicator is an Ada 2005 feature
5346 ---------------------
5347 -- 6.1 Designator --
5348 ---------------------
5350 -- DESIGNATOR ::=
5351 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
5353 -- Designators that are simply identifiers or operator symbols appear
5354 -- directly in the tree in this form. The following node is used only
5355 -- in the case where the designator has a parent unit name component.
5357 -- N_Designator
5358 -- Sloc points to period
5359 -- Name (Node2) holds the parent unit name
5360 -- Identifier (Node1)
5362 -- Note: Name is always non-Empty, since this node is only used for the
5363 -- case where a parent library unit package name is present.
5365 -- Note that the identifier can also be an operator symbol here
5367 ------------------------------
5368 -- 6.1 Defining Designator --
5369 ------------------------------
5371 -- DEFINING_DESIGNATOR ::=
5372 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
5374 -------------------------------------
5375 -- 6.1 Defining Program Unit Name --
5376 -------------------------------------
5378 -- DEFINING_PROGRAM_UNIT_NAME ::=
5379 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
5381 -- The parent unit name is present only in the case of a child unit name
5382 -- (permissible only for Ada 95 for a library level unit, i.e. a unit
5383 -- at scope level one). If no such name is present, the defining program
5384 -- unit name is represented simply as the defining identifier. In the
5385 -- child unit case, the following node is used to represent the child
5386 -- unit name.
5388 -- N_Defining_Program_Unit_Name
5389 -- Sloc points to period
5390 -- Name (Node2) holds the parent unit name
5391 -- Defining_Identifier (Node1)
5393 -- Note: Name is always non-Empty, since this node is only used for the
5394 -- case where a parent unit name is present.
5396 --------------------------
5397 -- 6.1 Operator Symbol --
5398 --------------------------
5400 -- OPERATOR_SYMBOL ::= STRING_LITERAL
5402 -- Note: the fields of the N_Operator_Symbol node are laid out to match
5403 -- the corresponding fields of an N_Character_Literal node. This allows
5404 -- easy conversion of the operator symbol node into a character literal
5405 -- node in the case where a string constant of the form of an operator
5406 -- symbol is scanned out as such, but turns out semantically to be a
5407 -- string literal that is not an operator. For details see Sinfo.CN.
5408 -- Change_Operator_Symbol_To_String_Literal.
5410 -- N_Operator_Symbol
5411 -- Sloc points to literal
5412 -- Chars (Name1) contains the Name_Id for the operator symbol
5413 -- Strval (Str3) Id of string value. This is used if the operator
5414 -- symbol turns out to be a normal string after all.
5415 -- Entity (Node4-Sem)
5416 -- Associated_Node (Node4-Sem)
5417 -- Etype (Node5-Sem)
5418 -- Has_Private_View (Flag11-Sem) set in generic units
5420 -- Note: the Strval field may be set to No_String for generated
5421 -- operator symbols that are known not to be string literals
5422 -- semantically.
5424 -----------------------------------
5425 -- 6.1 Defining Operator Symbol --
5426 -----------------------------------
5428 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
5430 -- A defining operator symbol is an entity, which has additional
5431 -- fields depending on the setting of the Ekind field. These
5432 -- additional fields are defined (and access subprograms declared)
5433 -- in package Einfo.
5435 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
5436 -- are deliberately layed out to match the layout of fields in an
5437 -- ordinary N_Operator_Symbol node allowing for easy alteration of
5438 -- an operator symbol node into a defining operator symbol node.
5439 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
5440 -- for further details.
5442 -- N_Defining_Operator_Symbol
5443 -- Sloc points to literal
5444 -- Chars (Name1) contains the Name_Id for the operator symbol
5445 -- Next_Entity (Node2-Sem)
5446 -- Scope (Node3-Sem)
5447 -- Etype (Node5-Sem)
5449 ----------------------------
5450 -- 6.1 Parameter Profile --
5451 ----------------------------
5453 -- PARAMETER_PROFILE ::= [FORMAL_PART]
5455 ---------------------------------------
5456 -- 6.1 Parameter and Result Profile --
5457 ---------------------------------------
5459 -- PARAMETER_AND_RESULT_PROFILE ::=
5460 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
5461 -- | [FORMAL_PART] return ACCESS_DEFINITION
5463 -- There is no explicit node in the tree for a parameter and result
5464 -- profile. Instead the information appears directly in the parent.
5466 ----------------------
5467 -- 6.1 Formal Part --
5468 ----------------------
5470 -- FORMAL_PART ::=
5471 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
5473 ----------------------------------
5474 -- 6.1 Parameter Specification --
5475 ----------------------------------
5477 -- PARAMETER_SPECIFICATION ::=
5478 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
5479 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
5480 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
5481 -- [:= DEFAULT_EXPRESSION]
5483 -- Although the syntax allows multiple identifiers in the list, the
5484 -- semantics is as though successive specifications were given with
5485 -- identical type definition and expression components. To simplify
5486 -- semantic processing, the parser represents a multiple declaration
5487 -- case as a sequence of single Specifications, using the More_Ids and
5488 -- Prev_Ids flags to preserve the original source form as described
5489 -- in the section on "Handling of Defining Identifier Lists".
5491 -- ALIASED can only be present in Ada 2012 mode
5493 -- N_Parameter_Specification
5494 -- Sloc points to first identifier
5495 -- Defining_Identifier (Node1)
5496 -- Aliased_Present (Flag4)
5497 -- In_Present (Flag15)
5498 -- Out_Present (Flag17)
5499 -- Null_Exclusion_Present (Flag11)
5500 -- Parameter_Type (Node2) subtype mark or access definition
5501 -- Expression (Node3) (set to Empty if no default expression present)
5502 -- Do_Accessibility_Check (Flag13-Sem)
5503 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5504 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5505 -- Default_Expression (Node5-Sem)
5507 ---------------
5508 -- 6.1 Mode --
5509 ---------------
5511 -- MODE ::= [in] | in out | out
5513 -- There is no explicit node in the tree for the Mode. Instead the
5514 -- In_Present and Out_Present flags are set in the parent node to
5515 -- record the presence of keywords specifying the mode.
5517 --------------------------
5518 -- 6.3 Subprogram Body --
5519 --------------------------
5521 -- SUBPROGRAM_BODY ::=
5522 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5523 -- DECLARATIVE_PART
5524 -- begin
5525 -- HANDLED_SEQUENCE_OF_STATEMENTS
5526 -- end [DESIGNATOR];
5528 -- N_Subprogram_Body
5529 -- Sloc points to FUNCTION or PROCEDURE
5530 -- Specification (Node1)
5531 -- Declarations (List2)
5532 -- Handled_Statement_Sequence (Node4)
5533 -- Activation_Chain_Entity (Node3-Sem)
5534 -- Corresponding_Spec (Node5-Sem)
5535 -- Acts_As_Spec (Flag4-Sem)
5536 -- Bad_Is_Detected (Flag15) used only by parser
5537 -- Do_Storage_Check (Flag17-Sem)
5538 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5539 -- Is_Entry_Barrier_Function (Flag8-Sem)
5540 -- Is_Protected_Subprogram_Body (Flag7-Sem)
5541 -- Is_Task_Body_Procedure (Flag1-Sem)
5542 -- Is_Task_Master (Flag5-Sem)
5543 -- Was_Attribute_Reference (Flag2-Sem)
5544 -- Was_Expression_Function (Flag18-Sem)
5545 -- Was_Originally_Stub (Flag13-Sem)
5547 -----------------------------------
5548 -- 6.4 Procedure Call Statement --
5549 -----------------------------------
5551 -- PROCEDURE_CALL_STATEMENT ::=
5552 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5554 -- Note: the reason that a procedure call has expression fields is that
5555 -- it semantically resembles an expression, e.g. overloading is allowed
5556 -- and a type is concocted for semantic processing purposes. Certain of
5557 -- these fields, such as Parens are not relevant, but it is easier to
5558 -- just supply all of them together.
5560 -- N_Procedure_Call_Statement
5561 -- Sloc points to first token of name or prefix
5562 -- Name (Node2) stores name or prefix
5563 -- Parameter_Associations (List3) (set to No_List if no
5564 -- actual parameter part)
5565 -- First_Named_Actual (Node4-Sem)
5566 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5567 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
5568 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
5569 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
5570 -- No_Elaboration_Check (Flag4-Sem)
5571 -- Do_Tag_Check (Flag13-Sem)
5572 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
5573 -- plus fields for expression
5575 -- If any IN parameter requires a range check, then the corresponding
5576 -- argument expression has the Do_Range_Check flag set, and the range
5577 -- check is done against the formal type. Note that this argument
5578 -- expression may appear directly in the Parameter_Associations list,
5579 -- or may be a descendant of an N_Parameter_Association node that
5580 -- appears in this list.
5582 ------------------------
5583 -- 6.4 Function Call --
5584 ------------------------
5586 -- FUNCTION_CALL ::=
5587 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5589 -- Note: the parser may generate an indexed component node or simply
5590 -- a name node instead of a function call node. The semantic pass must
5591 -- correct this misidentification.
5593 -- N_Function_Call
5594 -- Sloc points to first token of name or prefix
5595 -- Name (Node2) stores name or prefix
5596 -- Parameter_Associations (List3) (set to No_List if no
5597 -- actual parameter part)
5598 -- First_Named_Actual (Node4-Sem)
5599 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5600 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
5601 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
5602 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
5603 -- No_Elaboration_Check (Flag4-Sem)
5604 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5605 -- Do_Tag_Check (Flag13-Sem)
5606 -- No_Side_Effect_Removal (Flag17-Sem)
5607 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
5608 -- plus fields for expression
5610 --------------------------------
5611 -- 6.4 Actual Parameter Part --
5612 --------------------------------
5614 -- ACTUAL_PARAMETER_PART ::=
5615 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5617 --------------------------------
5618 -- 6.4 Parameter Association --
5619 --------------------------------
5621 -- PARAMETER_ASSOCIATION ::=
5622 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5624 -- Note: the N_Parameter_Association node is built only if a formal
5625 -- parameter selector name is present, otherwise the parameter
5626 -- association appears in the tree simply as the node for the
5627 -- explicit actual parameter.
5629 -- N_Parameter_Association
5630 -- Sloc points to formal parameter
5631 -- Selector_Name (Node2) (always non-Empty)
5632 -- Explicit_Actual_Parameter (Node3)
5633 -- Next_Named_Actual (Node4-Sem)
5634 -- Is_Accessibility_Actual (Flag13-Sem)
5636 ---------------------------
5637 -- 6.4 Actual Parameter --
5638 ---------------------------
5640 -- EXPLICIT_ACTUAL_PARAMETER ::=
5641 -- EXPRESSION | variable_NAME | REDUCTION_EXPRESSION_PARAMETER
5643 ---------------------------
5644 -- 6.5 Return Statement --
5645 ---------------------------
5647 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5649 -- EXTENDED_RETURN_STATEMENT ::=
5650 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5651 -- [:= EXPRESSION] [do
5652 -- HANDLED_SEQUENCE_OF_STATEMENTS
5653 -- end return];
5655 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5657 -- The term "return statement" is defined in 6.5 to mean either a
5658 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5659 -- the use of this term, since it used to mean someting else in earlier
5660 -- versions of Ada.
5662 -- N_Simple_Return_Statement
5663 -- Sloc points to RETURN
5664 -- Return_Statement_Entity (Node5-Sem)
5665 -- Expression (Node3) (set to Empty if no expression present)
5666 -- Storage_Pool (Node1-Sem)
5667 -- Procedure_To_Call (Node2-Sem)
5668 -- Do_Tag_Check (Flag13-Sem)
5669 -- By_Ref (Flag5-Sem)
5670 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5672 -- Note: Return_Statement_Entity points to an E_Return_Statement
5674 -- If a range check is required, then Do_Range_Check is set on the
5675 -- Expression. The check is against the return subtype of the function.
5677 -- N_Extended_Return_Statement
5678 -- Sloc points to RETURN
5679 -- Return_Statement_Entity (Node5-Sem)
5680 -- Return_Object_Declarations (List3)
5681 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5682 -- Storage_Pool (Node1-Sem)
5683 -- Procedure_To_Call (Node2-Sem)
5684 -- Do_Tag_Check (Flag13-Sem)
5685 -- By_Ref (Flag5-Sem)
5687 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5689 -- Note that Return_Object_Declarations is a list containing the
5690 -- N_Object_Declaration -- see comment on this field above.
5692 -- The declared object will have Is_Return_Object = True.
5694 -- There is no such syntactic category as return_object_declaration
5695 -- in the RM. Return_Object_Declarations represents this portion of
5696 -- the syntax for EXTENDED_RETURN_STATEMENT:
5697 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5698 -- [:= EXPRESSION]
5700 -- There are two entities associated with an extended_return_statement:
5701 -- the Return_Statement_Entity represents the statement itself,
5702 -- and the Defining_Identifier of the Object_Declaration in
5703 -- Return_Object_Declarations represents the object being
5704 -- returned. N_Simple_Return_Statement has only the former.
5706 ------------------------------
5707 -- 6.8 Expression Function --
5708 ------------------------------
5710 -- EXPRESSION_FUNCTION ::=
5711 -- FUNCTION SPECIFICATION IS (EXPRESSION)
5712 -- [ASPECT_SPECIFICATIONS];
5714 -- N_Expression_Function
5715 -- Sloc points to FUNCTION
5716 -- Specification (Node1)
5717 -- Expression (Node3)
5718 -- Corresponding_Spec (Node5-Sem)
5720 ------------------------------
5721 -- 7.1 Package Declaration --
5722 ------------------------------
5724 -- PACKAGE_DECLARATION ::=
5725 -- PACKAGE_SPECIFICATION;
5727 -- Note: the activation chain entity for a package spec is used for
5728 -- all tasks declared in the package spec, or in the package body.
5730 -- N_Package_Declaration
5731 -- Sloc points to PACKAGE
5732 -- Specification (Node1)
5733 -- Corresponding_Body (Node5-Sem)
5734 -- Parent_Spec (Node4-Sem)
5735 -- Activation_Chain_Entity (Node3-Sem)
5737 --------------------------------
5738 -- 7.1 Package Specification --
5739 --------------------------------
5741 -- PACKAGE_SPECIFICATION ::=
5742 -- package DEFINING_PROGRAM_UNIT_NAME
5743 -- [ASPECT_SPECIFICATIONS]
5744 -- is
5745 -- {BASIC_DECLARATIVE_ITEM}
5746 -- [private
5747 -- {BASIC_DECLARATIVE_ITEM}]
5748 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5750 -- N_Package_Specification
5751 -- Sloc points to PACKAGE
5752 -- Defining_Unit_Name (Node1)
5753 -- Visible_Declarations (List2)
5754 -- Private_Declarations (List3) (set to No_List if no private
5755 -- part present)
5756 -- End_Label (Node4)
5757 -- Generic_Parent (Node5-Sem)
5758 -- Limited_View_Installed (Flag18-Sem)
5760 -----------------------
5761 -- 7.1 Package Body --
5762 -----------------------
5764 -- PACKAGE_BODY ::=
5765 -- package body DEFINING_PROGRAM_UNIT_NAME
5766 -- [ASPECT_SPECIFICATIONS]
5767 -- is
5768 -- DECLARATIVE_PART
5769 -- [begin
5770 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5771 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5773 -- N_Package_Body
5774 -- Sloc points to PACKAGE
5775 -- Defining_Unit_Name (Node1)
5776 -- Declarations (List2)
5777 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5778 -- Corresponding_Spec (Node5-Sem)
5779 -- Was_Originally_Stub (Flag13-Sem)
5781 -- Note: if a source level package does not contain a handled sequence
5782 -- of statements, then the parser supplies a dummy one with a null
5783 -- sequence of statements. Comes_From_Source will be False in this
5784 -- constructed sequence. The reason we need this is for the End_Label
5785 -- field in the HSS.
5787 -----------------------------------
5788 -- 7.4 Private Type Declaration --
5789 -----------------------------------
5791 -- PRIVATE_TYPE_DECLARATION ::=
5792 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5793 -- is [[abstract] tagged] [limited] private
5794 -- [ASPECT_SPECIFICATIONS];
5796 -- Note: TAGGED is not permitted in Ada 83 mode
5798 -- N_Private_Type_Declaration
5799 -- Sloc points to TYPE
5800 -- Defining_Identifier (Node1)
5801 -- Discriminant_Specifications (List4) (set to No_List if no
5802 -- discriminant part)
5803 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5804 -- Abstract_Present (Flag4)
5805 -- Tagged_Present (Flag15)
5806 -- Limited_Present (Flag17)
5808 ----------------------------------------
5809 -- 7.4 Private Extension Declaration --
5810 ----------------------------------------
5812 -- PRIVATE_EXTENSION_DECLARATION ::=
5813 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5814 -- [abstract] [limited | synchronized]
5815 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5816 -- with private [ASPECT_SPECIFICATIONS];
5818 -- Note: LIMITED, and private extension declarations are not allowed
5819 -- in Ada 83 mode.
5821 -- N_Private_Extension_Declaration
5822 -- Sloc points to TYPE
5823 -- Defining_Identifier (Node1)
5824 -- Uninitialized_Variable (Node3-Sem)
5825 -- Discriminant_Specifications (List4) (set to No_List if no
5826 -- discriminant part)
5827 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5828 -- Abstract_Present (Flag4)
5829 -- Limited_Present (Flag17)
5830 -- Synchronized_Present (Flag7)
5831 -- Subtype_Indication (Node5)
5832 -- Interface_List (List2) (set to No_List if none)
5834 ---------------------
5835 -- 8.4 Use Clause --
5836 ---------------------
5838 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5840 -----------------------------
5841 -- 8.4 Use Package Clause --
5842 -----------------------------
5844 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5846 -- N_Use_Package_Clause
5847 -- Sloc points to USE
5848 -- Prev_Use_Clause (Node1-Sem)
5849 -- Name (Node2)
5850 -- Next_Use_Clause (Node3-Sem)
5851 -- Associated_Node (Node4-Sem)
5852 -- Hidden_By_Use_Clause (Elist5-Sem)
5853 -- Is_Effective_Use_Clause (Flag1)
5854 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5855 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5857 --------------------------
5858 -- 8.4 Use Type Clause --
5859 --------------------------
5861 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5863 -- Note: use type clause is not permitted in Ada 83 mode
5865 -- Note: the ALL keyword can appear only in Ada 2012 mode
5867 -- N_Use_Type_Clause
5868 -- Sloc points to USE
5869 -- Prev_Use_Clause (Node1-Sem)
5870 -- Used_Operations (Elist2-Sem)
5871 -- Next_Use_Clause (Node3-Sem)
5872 -- Subtype_Mark (Node4)
5873 -- Hidden_By_Use_Clause (Elist5-Sem)
5874 -- Is_Effective_Use_Clause (Flag1)
5875 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5876 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5877 -- All_Present (Flag15)
5879 -------------------------------
5880 -- 8.5 Renaming Declaration --
5881 -------------------------------
5883 -- RENAMING_DECLARATION ::=
5884 -- OBJECT_RENAMING_DECLARATION
5885 -- | EXCEPTION_RENAMING_DECLARATION
5886 -- | PACKAGE_RENAMING_DECLARATION
5887 -- | SUBPROGRAM_RENAMING_DECLARATION
5888 -- | GENERIC_RENAMING_DECLARATION
5890 --------------------------------------
5891 -- 8.5 Object Renaming Declaration --
5892 --------------------------------------
5894 -- OBJECT_RENAMING_DECLARATION ::=
5895 -- DEFINING_IDENTIFIER :
5896 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5897 -- [ASPECT_SPECIFICATIONS];
5898 -- | DEFINING_IDENTIFIER :
5899 -- ACCESS_DEFINITION renames object_NAME
5900 -- [ASPECT_SPECIFICATIONS];
5902 -- Note: Access_Definition is an optional field that gives support to
5903 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5904 -- Subtype_Indication field or else the Access_Definition field.
5906 -- N_Object_Renaming_Declaration
5907 -- Sloc points to first identifier
5908 -- Defining_Identifier (Node1)
5909 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5910 -- Subtype_Mark (Node4) (set to Empty if not present)
5911 -- Access_Definition (Node3) (set to Empty if not present)
5912 -- Name (Node2)
5913 -- Corresponding_Generic_Association (Node5-Sem)
5915 -----------------------------------------
5916 -- 8.5 Exception Renaming Declaration --
5917 -----------------------------------------
5919 -- EXCEPTION_RENAMING_DECLARATION ::=
5920 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5921 -- [ASPECT_SPECIFICATIONS];
5923 -- N_Exception_Renaming_Declaration
5924 -- Sloc points to first identifier
5925 -- Defining_Identifier (Node1)
5926 -- Name (Node2)
5928 ---------------------------------------
5929 -- 8.5 Package Renaming Declaration --
5930 ---------------------------------------
5932 -- PACKAGE_RENAMING_DECLARATION ::=
5933 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5934 -- [ASPECT_SPECIFICATIONS];
5936 -- N_Package_Renaming_Declaration
5937 -- Sloc points to PACKAGE
5938 -- Defining_Unit_Name (Node1)
5939 -- Name (Node2)
5940 -- Parent_Spec (Node4-Sem)
5942 ------------------------------------------
5943 -- 8.5 Subprogram Renaming Declaration --
5944 ------------------------------------------
5946 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5947 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5948 -- [ASPECT_SPECIFICATIONS];
5950 -- N_Subprogram_Renaming_Declaration
5951 -- Sloc points to RENAMES
5952 -- Specification (Node1)
5953 -- Name (Node2)
5954 -- Parent_Spec (Node4-Sem)
5955 -- Corresponding_Spec (Node5-Sem)
5956 -- Corresponding_Formal_Spec (Node3-Sem)
5957 -- From_Default (Flag6-Sem)
5959 -----------------------------------------
5960 -- 8.5.5 Generic Renaming Declaration --
5961 -----------------------------------------
5963 -- GENERIC_RENAMING_DECLARATION ::=
5964 -- generic package DEFINING_PROGRAM_UNIT_NAME
5965 -- renames generic_package_NAME
5966 -- [ASPECT_SPECIFICATIONS];
5967 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5968 -- renames generic_procedure_NAME
5969 -- [ASPECT_SPECIFICATIONS];
5970 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5971 -- renames generic_function_NAME
5972 -- [ASPECT_SPECIFICATIONS];
5974 -- N_Generic_Package_Renaming_Declaration
5975 -- Sloc points to GENERIC
5976 -- Defining_Unit_Name (Node1)
5977 -- Name (Node2)
5978 -- Parent_Spec (Node4-Sem)
5980 -- N_Generic_Procedure_Renaming_Declaration
5981 -- Sloc points to GENERIC
5982 -- Defining_Unit_Name (Node1)
5983 -- Name (Node2)
5984 -- Parent_Spec (Node4-Sem)
5986 -- N_Generic_Function_Renaming_Declaration
5987 -- Sloc points to GENERIC
5988 -- Defining_Unit_Name (Node1)
5989 -- Name (Node2)
5990 -- Parent_Spec (Node4-Sem)
5992 --------------------------------
5993 -- 9.1 Task Type Declaration --
5994 --------------------------------
5996 -- TASK_TYPE_DECLARATION ::=
5997 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5998 -- [ASPECT_SPECIFICATIONS]
5999 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
6001 -- N_Task_Type_Declaration
6002 -- Sloc points to TASK
6003 -- Defining_Identifier (Node1)
6004 -- Discriminant_Specifications (List4) (set to No_List if no
6005 -- discriminant part)
6006 -- Interface_List (List2) (set to No_List if none)
6007 -- Task_Definition (Node3) (set to Empty if not present)
6008 -- Corresponding_Body (Node5-Sem)
6010 ----------------------------------
6011 -- 9.1 Single Task Declaration --
6012 ----------------------------------
6014 -- SINGLE_TASK_DECLARATION ::=
6015 -- task DEFINING_IDENTIFIER
6016 -- [ASPECT_SPECIFICATIONS]
6017 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
6019 -- N_Single_Task_Declaration
6020 -- Sloc points to TASK
6021 -- Defining_Identifier (Node1)
6022 -- Interface_List (List2) (set to No_List if none)
6023 -- Task_Definition (Node3) (set to Empty if not present)
6025 --------------------------
6026 -- 9.1 Task Definition --
6027 --------------------------
6029 -- TASK_DEFINITION ::=
6030 -- {TASK_ITEM}
6031 -- [private
6032 -- {TASK_ITEM}]
6033 -- end [task_IDENTIFIER]
6035 -- Note: as a result of semantic analysis, the list of task items can
6036 -- include implicit type declarations resulting from entry families.
6038 -- N_Task_Definition
6039 -- Sloc points to first token of task definition
6040 -- Visible_Declarations (List2)
6041 -- Private_Declarations (List3) (set to No_List if no private part)
6042 -- End_Label (Node4)
6043 -- Has_Storage_Size_Pragma (Flag5-Sem)
6044 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
6046 --------------------
6047 -- 9.1 Task Item --
6048 --------------------
6050 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
6052 --------------------
6053 -- 9.1 Task Body --
6054 --------------------
6056 -- TASK_BODY ::=
6057 -- task body task_DEFINING_IDENTIFIER
6058 -- [ASPECT_SPECIFICATIONS]
6059 -- is
6060 -- DECLARATIVE_PART
6061 -- begin
6062 -- HANDLED_SEQUENCE_OF_STATEMENTS
6063 -- end [task_IDENTIFIER];
6065 -- Gigi restriction: This node never appears
6067 -- N_Task_Body
6068 -- Sloc points to TASK
6069 -- Defining_Identifier (Node1)
6070 -- Declarations (List2)
6071 -- Handled_Statement_Sequence (Node4)
6072 -- Is_Task_Master (Flag5-Sem)
6073 -- Activation_Chain_Entity (Node3-Sem)
6074 -- Corresponding_Spec (Node5-Sem)
6075 -- Was_Originally_Stub (Flag13-Sem)
6077 -------------------------------------
6078 -- 9.4 Protected Type Declaration --
6079 -------------------------------------
6081 -- PROTECTED_TYPE_DECLARATION ::=
6082 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
6083 -- [ASPECT_SPECIFICATIONS]
6084 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
6086 -- Note: protected type declarations are not permitted in Ada 83 mode
6088 -- N_Protected_Type_Declaration
6089 -- Sloc points to PROTECTED
6090 -- Defining_Identifier (Node1)
6091 -- Discriminant_Specifications (List4) (set to No_List if no
6092 -- discriminant part)
6093 -- Interface_List (List2) (set to No_List if none)
6094 -- Protected_Definition (Node3)
6095 -- Corresponding_Body (Node5-Sem)
6097 ---------------------------------------
6098 -- 9.4 Single Protected Declaration --
6099 ---------------------------------------
6101 -- SINGLE_PROTECTED_DECLARATION ::=
6102 -- protected DEFINING_IDENTIFIER
6103 -- [ASPECT_SPECIFICATIONS]
6104 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
6106 -- Note: single protected declarations are not allowed in Ada 83 mode
6108 -- N_Single_Protected_Declaration
6109 -- Sloc points to PROTECTED
6110 -- Defining_Identifier (Node1)
6111 -- Interface_List (List2) (set to No_List if none)
6112 -- Protected_Definition (Node3)
6114 -------------------------------
6115 -- 9.4 Protected Definition --
6116 -------------------------------
6118 -- PROTECTED_DEFINITION ::=
6119 -- {PROTECTED_OPERATION_DECLARATION}
6120 -- [private
6121 -- {PROTECTED_ELEMENT_DECLARATION}]
6122 -- end [protected_IDENTIFIER]
6124 -- N_Protected_Definition
6125 -- Sloc points to first token of protected definition
6126 -- Visible_Declarations (List2)
6127 -- Private_Declarations (List3) (set to No_List if no private part)
6128 -- End_Label (Node4)
6130 ------------------------------------------
6131 -- 9.4 Protected Operation Declaration --
6132 ------------------------------------------
6134 -- PROTECTED_OPERATION_DECLARATION ::=
6135 -- SUBPROGRAM_DECLARATION
6136 -- | ENTRY_DECLARATION
6137 -- | REPRESENTATION_CLAUSE
6139 ----------------------------------------
6140 -- 9.4 Protected Element Declaration --
6141 ----------------------------------------
6143 -- PROTECTED_ELEMENT_DECLARATION ::=
6144 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
6146 -------------------------
6147 -- 9.4 Protected Body --
6148 -------------------------
6150 -- PROTECTED_BODY ::=
6151 -- protected body DEFINING_IDENTIFIER
6152 -- [ASPECT_SPECIFICATIONS];
6153 -- is
6154 -- {PROTECTED_OPERATION_ITEM}
6155 -- end [protected_IDENTIFIER];
6157 -- Note: protected bodies are not allowed in Ada 83 mode
6159 -- Gigi restriction: This node never appears
6161 -- N_Protected_Body
6162 -- Sloc points to PROTECTED
6163 -- Defining_Identifier (Node1)
6164 -- Declarations (List2) protected operation items (and pragmas)
6165 -- End_Label (Node4)
6166 -- Corresponding_Spec (Node5-Sem)
6167 -- Was_Originally_Stub (Flag13-Sem)
6169 -----------------------------------
6170 -- 9.4 Protected Operation Item --
6171 -----------------------------------
6173 -- PROTECTED_OPERATION_ITEM ::=
6174 -- SUBPROGRAM_DECLARATION
6175 -- | SUBPROGRAM_BODY
6176 -- | ENTRY_BODY
6177 -- | REPRESENTATION_CLAUSE
6179 ------------------------------
6180 -- 9.5.2 Entry Declaration --
6181 ------------------------------
6183 -- ENTRY_DECLARATION ::=
6184 -- [[not] overriding]
6185 -- entry DEFINING_IDENTIFIER
6186 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
6187 -- [ASPECT_SPECIFICATIONS];
6189 -- N_Entry_Declaration
6190 -- Sloc points to ENTRY
6191 -- Defining_Identifier (Node1)
6192 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
6193 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6194 -- Corresponding_Body (Node5-Sem)
6195 -- Must_Override (Flag14) set if overriding indicator present
6196 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6198 -- Note: overriding indicator is an Ada 2005 feature
6200 -----------------------------
6201 -- 9.5.2 Accept statement --
6202 -----------------------------
6204 -- ACCEPT_STATEMENT ::=
6205 -- accept entry_DIRECT_NAME
6206 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
6207 -- HANDLED_SEQUENCE_OF_STATEMENTS
6208 -- end [entry_IDENTIFIER]];
6210 -- Gigi restriction: This node never appears
6212 -- Note: there are no explicit declarations allowed in an accept
6213 -- statement. However, the implicit declarations for any statement
6214 -- identifiers (labels and block/loop identifiers) are declarations
6215 -- that belong logically to the accept statement, and that is why
6216 -- there is a Declarations field in this node.
6218 -- N_Accept_Statement
6219 -- Sloc points to ACCEPT
6220 -- Entry_Direct_Name (Node1)
6221 -- Entry_Index (Node5) (set to Empty if not present)
6222 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6223 -- Handled_Statement_Sequence (Node4)
6224 -- Declarations (List2) (set to No_List if no declarations)
6226 ------------------------
6227 -- 9.5.2 Entry Index --
6228 ------------------------
6230 -- ENTRY_INDEX ::= EXPRESSION
6232 -----------------------
6233 -- 9.5.2 Entry Body --
6234 -----------------------
6236 -- ENTRY_BODY ::=
6237 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
6238 -- DECLARATIVE_PART
6239 -- begin
6240 -- HANDLED_SEQUENCE_OF_STATEMENTS
6241 -- end [entry_IDENTIFIER];
6243 -- ENTRY_BARRIER ::= when CONDITION
6245 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
6246 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
6247 -- too full (it would otherwise have too many fields)
6249 -- Gigi restriction: This node never appears
6251 -- N_Entry_Body
6252 -- Sloc points to ENTRY
6253 -- Defining_Identifier (Node1)
6254 -- Entry_Body_Formal_Part (Node5)
6255 -- Declarations (List2)
6256 -- Handled_Statement_Sequence (Node4)
6257 -- Activation_Chain_Entity (Node3-Sem)
6259 -----------------------------------
6260 -- 9.5.2 Entry Body Formal Part --
6261 -----------------------------------
6263 -- ENTRY_BODY_FORMAL_PART ::=
6264 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
6266 -- Note that an entry body formal part node is present even if it is
6267 -- empty. This reflects the grammar, in which it is the components of
6268 -- the entry body formal part that are optional, not the entry body
6269 -- formal part itself. Also this means that the barrier condition
6270 -- always has somewhere to be stored.
6272 -- Gigi restriction: This node never appears
6274 -- N_Entry_Body_Formal_Part
6275 -- Sloc points to first token
6276 -- Entry_Index_Specification (Node4) (set to Empty if not present)
6277 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6278 -- Condition (Node1) from entry barrier of entry body
6280 --------------------------
6281 -- 9.5.2 Entry Barrier --
6282 --------------------------
6284 -- ENTRY_BARRIER ::= when CONDITION
6286 --------------------------------------
6287 -- 9.5.2 Entry Index Specification --
6288 --------------------------------------
6290 -- ENTRY_INDEX_SPECIFICATION ::=
6291 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
6293 -- Gigi restriction: This node never appears
6295 -- N_Entry_Index_Specification
6296 -- Sloc points to FOR
6297 -- Defining_Identifier (Node1)
6298 -- Discrete_Subtype_Definition (Node4)
6300 ---------------------------------
6301 -- 9.5.3 Entry Call Statement --
6302 ---------------------------------
6304 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
6306 -- The parser may generate a procedure call for this construct. The
6307 -- semantic pass must correct this misidentification where needed.
6309 -- Gigi restriction: This node never appears
6311 -- N_Entry_Call_Statement
6312 -- Sloc points to first token of name
6313 -- Name (Node2)
6314 -- Parameter_Associations (List3) (set to No_List if no
6315 -- actual parameter part)
6316 -- First_Named_Actual (Node4-Sem)
6317 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
6318 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
6319 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
6321 ------------------------------
6322 -- 9.5.4 Requeue Statement --
6323 ------------------------------
6325 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
6327 -- Note: requeue statements are not permitted in Ada 83 mode
6329 -- Gigi restriction: This node never appears
6331 -- N_Requeue_Statement
6332 -- Sloc points to REQUEUE
6333 -- Name (Node2)
6334 -- Abort_Present (Flag15)
6335 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
6336 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
6337 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
6339 --------------------------
6340 -- 9.6 Delay Statement --
6341 --------------------------
6343 -- DELAY_STATEMENT ::=
6344 -- DELAY_UNTIL_STATEMENT
6345 -- | DELAY_RELATIVE_STATEMENT
6347 --------------------------------
6348 -- 9.6 Delay Until Statement --
6349 --------------------------------
6351 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
6353 -- Note: delay until statements are not permitted in Ada 83 mode
6355 -- Gigi restriction: This node never appears
6357 -- N_Delay_Until_Statement
6358 -- Sloc points to DELAY
6359 -- Expression (Node3)
6361 -----------------------------------
6362 -- 9.6 Delay Relative Statement --
6363 -----------------------------------
6365 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
6367 -- Gigi restriction: This node never appears
6369 -- N_Delay_Relative_Statement
6370 -- Sloc points to DELAY
6371 -- Expression (Node3)
6373 ---------------------------
6374 -- 9.7 Select Statement --
6375 ---------------------------
6377 -- SELECT_STATEMENT ::=
6378 -- SELECTIVE_ACCEPT
6379 -- | TIMED_ENTRY_CALL
6380 -- | CONDITIONAL_ENTRY_CALL
6381 -- | ASYNCHRONOUS_SELECT
6383 -----------------------------
6384 -- 9.7.1 Selective Accept --
6385 -----------------------------
6387 -- SELECTIVE_ACCEPT ::=
6388 -- select
6389 -- [GUARD]
6390 -- SELECT_ALTERNATIVE
6391 -- {or
6392 -- [GUARD]
6393 -- SELECT_ALTERNATIVE}
6394 -- [else
6395 -- SEQUENCE_OF_STATEMENTS]
6396 -- end select;
6398 -- Gigi restriction: This node never appears
6400 -- Note: the guard expression, if present, appears in the node for
6401 -- the select alternative.
6403 -- N_Selective_Accept
6404 -- Sloc points to SELECT
6405 -- Select_Alternatives (List1)
6406 -- Else_Statements (List4) (set to No_List if no else part)
6408 ------------------
6409 -- 9.7.1 Guard --
6410 ------------------
6412 -- GUARD ::= when CONDITION =>
6414 -- As noted above, the CONDITION that is part of a GUARD is included
6415 -- in the node for the select alternative for convenience.
6417 -------------------------------
6418 -- 9.7.1 Select Alternative --
6419 -------------------------------
6421 -- SELECT_ALTERNATIVE ::=
6422 -- ACCEPT_ALTERNATIVE
6423 -- | DELAY_ALTERNATIVE
6424 -- | TERMINATE_ALTERNATIVE
6426 -------------------------------
6427 -- 9.7.1 Accept Alternative --
6428 -------------------------------
6430 -- ACCEPT_ALTERNATIVE ::=
6431 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
6433 -- Gigi restriction: This node never appears
6435 -- N_Accept_Alternative
6436 -- Sloc points to ACCEPT
6437 -- Accept_Statement (Node2)
6438 -- Condition (Node1) from the guard (set to Empty if no guard present)
6439 -- Statements (List3) (set to Empty_List if no statements)
6440 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6441 -- Accept_Handler_Records (List5-Sem)
6443 ------------------------------
6444 -- 9.7.1 Delay Alternative --
6445 ------------------------------
6447 -- DELAY_ALTERNATIVE ::=
6448 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
6450 -- Gigi restriction: This node never appears
6452 -- N_Delay_Alternative
6453 -- Sloc points to DELAY
6454 -- Delay_Statement (Node2)
6455 -- Condition (Node1) from the guard (set to Empty if no guard present)
6456 -- Statements (List3) (set to Empty_List if no statements)
6457 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6459 ----------------------------------
6460 -- 9.7.1 Terminate Alternative --
6461 ----------------------------------
6463 -- TERMINATE_ALTERNATIVE ::= terminate;
6465 -- Gigi restriction: This node never appears
6467 -- N_Terminate_Alternative
6468 -- Sloc points to TERMINATE
6469 -- Condition (Node1) from the guard (set to Empty if no guard present)
6470 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6471 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
6473 -----------------------------
6474 -- 9.7.2 Timed Entry Call --
6475 -----------------------------
6477 -- TIMED_ENTRY_CALL ::=
6478 -- select
6479 -- ENTRY_CALL_ALTERNATIVE
6480 -- or
6481 -- DELAY_ALTERNATIVE
6482 -- end select;
6484 -- Gigi restriction: This node never appears
6486 -- N_Timed_Entry_Call
6487 -- Sloc points to SELECT
6488 -- Entry_Call_Alternative (Node1)
6489 -- Delay_Alternative (Node4)
6491 -----------------------------------
6492 -- 9.7.2 Entry Call Alternative --
6493 -----------------------------------
6495 -- ENTRY_CALL_ALTERNATIVE ::=
6496 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
6498 -- PROCEDURE_OR_ENTRY_CALL ::=
6499 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
6501 -- Gigi restriction: This node never appears
6503 -- N_Entry_Call_Alternative
6504 -- Sloc points to first token of entry call statement
6505 -- Entry_Call_Statement (Node1)
6506 -- Statements (List3) (set to Empty_List if no statements)
6507 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6509 -----------------------------------
6510 -- 9.7.3 Conditional Entry Call --
6511 -----------------------------------
6513 -- CONDITIONAL_ENTRY_CALL ::=
6514 -- select
6515 -- ENTRY_CALL_ALTERNATIVE
6516 -- else
6517 -- SEQUENCE_OF_STATEMENTS
6518 -- end select;
6520 -- Gigi restriction: This node never appears
6522 -- N_Conditional_Entry_Call
6523 -- Sloc points to SELECT
6524 -- Entry_Call_Alternative (Node1)
6525 -- Else_Statements (List4)
6527 --------------------------------
6528 -- 9.7.4 Asynchronous Select --
6529 --------------------------------
6531 -- ASYNCHRONOUS_SELECT ::=
6532 -- select
6533 -- TRIGGERING_ALTERNATIVE
6534 -- then abort
6535 -- ABORTABLE_PART
6536 -- end select;
6538 -- Note: asynchronous select is not permitted in Ada 83 mode
6540 -- Gigi restriction: This node never appears
6542 -- N_Asynchronous_Select
6543 -- Sloc points to SELECT
6544 -- Triggering_Alternative (Node1)
6545 -- Abortable_Part (Node2)
6547 -----------------------------------
6548 -- 9.7.4 Triggering Alternative --
6549 -----------------------------------
6551 -- TRIGGERING_ALTERNATIVE ::=
6552 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6554 -- Gigi restriction: This node never appears
6556 -- N_Triggering_Alternative
6557 -- Sloc points to first token of triggering statement
6558 -- Triggering_Statement (Node1)
6559 -- Statements (List3) (set to Empty_List if no statements)
6560 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6562 ---------------------------------
6563 -- 9.7.4 Triggering Statement --
6564 ---------------------------------
6566 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6568 ---------------------------
6569 -- 9.7.4 Abortable Part --
6570 ---------------------------
6572 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6574 -- Gigi restriction: This node never appears
6576 -- N_Abortable_Part
6577 -- Sloc points to ABORT
6578 -- Statements (List3)
6580 --------------------------
6581 -- 9.8 Abort Statement --
6582 --------------------------
6584 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6586 -- Gigi restriction: This node never appears
6588 -- N_Abort_Statement
6589 -- Sloc points to ABORT
6590 -- Names (List2)
6592 -------------------------
6593 -- 10.1.1 Compilation --
6594 -------------------------
6596 -- COMPILATION ::= {COMPILATION_UNIT}
6598 -- There is no explicit node in the tree for a compilation, since in
6599 -- general the compiler is processing only a single compilation unit
6600 -- at a time. It is possible to parse multiple units in syntax check
6601 -- only mode, but the trees are discarded in that case.
6603 ------------------------------
6604 -- 10.1.1 Compilation Unit --
6605 ------------------------------
6607 -- COMPILATION_UNIT ::=
6608 -- CONTEXT_CLAUSE LIBRARY_ITEM
6609 -- | CONTEXT_CLAUSE SUBUNIT
6611 -- The N_Compilation_Unit node itself represents the above syntax.
6612 -- However, there are two additional items not reflected in the above
6613 -- syntax. First we have the global declarations that are added by the
6614 -- code generator. These are outer level declarations (so they cannot
6615 -- be represented as being inside the units). An example is the wrapper
6616 -- subprograms that are created to do ABE checking. As always a list of
6617 -- declarations can contain actions as well (i.e. statements), and such
6618 -- statements are executed as part of the elaboration of the unit. Note
6619 -- that all such declarations are elaborated before the library unit.
6621 -- Similarly, certain actions need to be elaborated at the completion
6622 -- of elaboration of the library unit (notably the statement that sets
6623 -- the Boolean flag indicating that elaboration is complete).
6625 -- The third item not reflected in the syntax is pragmas that appear
6626 -- after the compilation unit. As always pragmas are a problem since
6627 -- they are not part of the formal syntax, but can be stuck into the
6628 -- source following a set of ad hoc rules, and we have to find an ad
6629 -- hoc way of sticking them into the tree. For pragmas that appear
6630 -- before the library unit, we just consider them to be part of the
6631 -- context clause, and pragmas can appear in the Context_Items list
6632 -- of the compilation unit. However, pragmas can also appear after
6633 -- the library item.
6635 -- To deal with all these problems, we create an auxiliary node for
6636 -- a compilation unit, referenced from the N_Compilation_Unit node,
6637 -- that contains these items.
6639 -- N_Compilation_Unit
6640 -- Sloc points to first token of defining unit name
6641 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6642 -- Context_Items (List1) context items and pragmas preceding unit
6643 -- Private_Present (Flag15) set if library unit has private keyword
6644 -- Unit (Node2) library item or subunit
6645 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6646 -- Has_No_Elaboration_Code (Flag17-Sem)
6647 -- Body_Required (Flag13-Sem) set for spec if body is required
6648 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6649 -- Context_Pending (Flag16-Sem)
6650 -- First_Inlined_Subprogram (Node3-Sem)
6651 -- Has_Pragma_Suppress_All (Flag14-Sem)
6653 -- N_Compilation_Unit_Aux
6654 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6655 -- Declarations (List2) (set to No_List if no global declarations)
6656 -- Actions (List1) (set to No_List if no actions)
6657 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6658 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6659 -- Default_Storage_Pool (Node3-Sem)
6661 --------------------------
6662 -- 10.1.1 Library Item --
6663 --------------------------
6665 -- LIBRARY_ITEM ::=
6666 -- [private] LIBRARY_UNIT_DECLARATION
6667 -- | LIBRARY_UNIT_BODY
6668 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6670 -- Note: PRIVATE is not allowed in Ada 83 mode
6672 -- There is no explicit node in the tree for library item, instead
6673 -- the declaration or body, and the flag for private if present,
6674 -- appear in the N_Compilation_Unit node.
6676 --------------------------------------
6677 -- 10.1.1 Library Unit Declaration --
6678 --------------------------------------
6680 -- LIBRARY_UNIT_DECLARATION ::=
6681 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6682 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6684 -----------------------------------------------
6685 -- 10.1.1 Library Unit Renaming Declaration --
6686 -----------------------------------------------
6688 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6689 -- PACKAGE_RENAMING_DECLARATION
6690 -- | GENERIC_RENAMING_DECLARATION
6691 -- | SUBPROGRAM_RENAMING_DECLARATION
6693 -------------------------------
6694 -- 10.1.1 Library unit body --
6695 -------------------------------
6697 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6699 ------------------------------
6700 -- 10.1.1 Parent Unit Name --
6701 ------------------------------
6703 -- PARENT_UNIT_NAME ::= NAME
6705 ----------------------------
6706 -- 10.1.2 Context clause --
6707 ----------------------------
6709 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6711 -- The context clause can include pragmas, and any pragmas that appear
6712 -- before the context clause proper (i.e. all configuration pragmas,
6713 -- also appear at the front of this list).
6715 --------------------------
6716 -- 10.1.2 Context_Item --
6717 --------------------------
6719 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6721 -------------------------
6722 -- 10.1.2 With clause --
6723 -------------------------
6725 -- WITH_CLAUSE ::=
6726 -- with library_unit_NAME {,library_unit_NAME};
6728 -- A separate With clause is built for each name, so that we have
6729 -- a Corresponding_Spec field for each with'ed spec. The flags
6730 -- First_Name and Last_Name are used to reconstruct the exact
6731 -- source form. When a list of names appears in one with clause,
6732 -- the first name in the list has First_Name set, and the last
6733 -- has Last_Name set. If the with clause has only one name, then
6734 -- both of the flags First_Name and Last_Name are set in this name.
6736 -- Note: in the case of implicit with's that are installed by the
6737 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6738 -- set to Standard_Location, but it is incorrect to test the Sloc
6739 -- to find out if a with clause is implicit, test the flag instead.
6741 -- N_With_Clause
6742 -- Sloc points to first token of library unit name
6743 -- Withed_Body (Node1-Sem)
6744 -- Name (Node2)
6745 -- Private_Present (Flag15) set if with_clause has private keyword
6746 -- Limited_Present (Flag17) set if LIMITED is present
6747 -- Next_Implicit_With (Node3-Sem)
6748 -- Library_Unit (Node4-Sem)
6749 -- Corresponding_Spec (Node5-Sem)
6750 -- First_Name (Flag5) (set to True if first name or only one name)
6751 -- Last_Name (Flag6) (set to True if last name or only one name)
6752 -- Context_Installed (Flag13-Sem)
6753 -- Elaborate_Present (Flag4-Sem)
6754 -- Elaborate_All_Present (Flag14-Sem)
6755 -- Elaborate_All_Desirable (Flag9-Sem)
6756 -- Elaborate_Desirable (Flag11-Sem)
6757 -- Implicit_With (Flag16-Sem)
6758 -- Limited_View_Installed (Flag18-Sem)
6759 -- Parent_With (Flag1-Sem)
6760 -- Unreferenced_In_Spec (Flag7-Sem)
6761 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6763 -- Note: Limited_Present and Limited_View_Installed are used to support
6764 -- the implementation of Ada 2005 (AI-50217).
6766 -- Similarly, Private_Present is used to support the implementation of
6767 -- Ada 2005 (AI-50262).
6769 -- Note: if the WITH clause refers to a standard library unit, then a
6770 -- limited with clause is changed into a normal with clause, because we
6771 -- are not prepared to deal with limited with in the context of Rtsfind.
6772 -- So in this case, the Limited_Present flag will be False in the final
6773 -- tree. However, we do NOT do this transformation in ASIS mode, so for
6774 -- ASIS the flag will remain set in this situation.
6776 ----------------------
6777 -- With_Type clause --
6778 ----------------------
6780 -- This is a GNAT extension, used to implement mutually recursive
6781 -- types declared in different packages.
6783 -- Note: this is now obsolete. The functionality of this construct
6784 -- is now implemented by the Ada 2005 limited_with_clause.
6786 ---------------------
6787 -- 10.2 Body stub --
6788 ---------------------
6790 -- BODY_STUB ::=
6791 -- SUBPROGRAM_BODY_STUB
6792 -- | PACKAGE_BODY_STUB
6793 -- | TASK_BODY_STUB
6794 -- | PROTECTED_BODY_STUB
6796 ----------------------------------
6797 -- 10.1.3 Subprogram Body Stub --
6798 ----------------------------------
6800 -- SUBPROGRAM_BODY_STUB ::=
6801 -- SUBPROGRAM_SPECIFICATION is separate
6802 -- [ASPECT_SPECIFICATION];
6804 -- N_Subprogram_Body_Stub
6805 -- Sloc points to FUNCTION or PROCEDURE
6806 -- Specification (Node1)
6807 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6808 -- Library_Unit (Node4-Sem) points to the subunit
6809 -- Corresponding_Body (Node5-Sem)
6811 -------------------------------
6812 -- 10.1.3 Package Body Stub --
6813 -------------------------------
6815 -- PACKAGE_BODY_STUB ::=
6816 -- package body DEFINING_IDENTIFIER is separate
6817 -- [ASPECT_SPECIFICATION];
6819 -- N_Package_Body_Stub
6820 -- Sloc points to PACKAGE
6821 -- Defining_Identifier (Node1)
6822 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6823 -- Library_Unit (Node4-Sem) points to the subunit
6824 -- Corresponding_Body (Node5-Sem)
6826 ----------------------------
6827 -- 10.1.3 Task Body Stub --
6828 ----------------------------
6830 -- TASK_BODY_STUB ::=
6831 -- task body DEFINING_IDENTIFIER is separate
6832 -- [ASPECT_SPECIFICATION];
6834 -- N_Task_Body_Stub
6835 -- Sloc points to TASK
6836 -- Defining_Identifier (Node1)
6837 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6838 -- Library_Unit (Node4-Sem) points to the subunit
6839 -- Corresponding_Body (Node5-Sem)
6841 ---------------------------------
6842 -- 10.1.3 Protected Body Stub --
6843 ---------------------------------
6845 -- PROTECTED_BODY_STUB ::=
6846 -- protected body DEFINING_IDENTIFIER is separate
6847 -- [ASPECT_SPECIFICATION];
6849 -- Note: protected body stubs are not allowed in Ada 83 mode
6851 -- N_Protected_Body_Stub
6852 -- Sloc points to PROTECTED
6853 -- Defining_Identifier (Node1)
6854 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6855 -- Library_Unit (Node4-Sem) points to the subunit
6856 -- Corresponding_Body (Node5-Sem)
6858 ---------------------
6859 -- 10.1.3 Subunit --
6860 ---------------------
6862 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6864 -- N_Subunit
6865 -- Sloc points to SEPARATE
6866 -- Name (Node2) is the name of the parent unit
6867 -- Proper_Body (Node1) is the subunit body
6868 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6870 ---------------------------------
6871 -- 11.1 Exception Declaration --
6872 ---------------------------------
6874 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6875 -- [ASPECT_SPECIFICATIONS];
6877 -- For consistency with object declarations etc., the parser converts
6878 -- the case of multiple identifiers being declared to a series of
6879 -- declarations in which the expression is copied, using the More_Ids
6880 -- and Prev_Ids flags to remember the source form as described in the
6881 -- section on "Handling of Defining Identifier Lists".
6883 -- N_Exception_Declaration
6884 -- Sloc points to EXCEPTION
6885 -- Defining_Identifier (Node1)
6886 -- Expression (Node3-Sem)
6887 -- Renaming_Exception (Node2-Sem)
6888 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6889 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6891 ------------------------------------------
6892 -- 11.2 Handled Sequence Of Statements --
6893 ------------------------------------------
6895 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6896 -- SEQUENCE_OF_STATEMENTS
6897 -- [exception
6898 -- EXCEPTION_HANDLER
6899 -- {EXCEPTION_HANDLER}]
6900 -- [at end
6901 -- cleanup_procedure_call (param, param, param, ...);]
6903 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6904 -- used only internally currently, but is considered to be syntactic.
6905 -- At the moment, the only cleanup action allowed is a single call to
6906 -- a parameterless procedure, and the Identifier field of the node is
6907 -- the procedure to be called. The cleanup action occurs whenever the
6908 -- sequence of statements is left for any reason. The possible reasons
6909 -- are:
6910 -- 1. reaching the end of the sequence
6911 -- 2. exit, return, or goto
6912 -- 3. exception or abort
6913 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6914 -- entirely in the back end. In this case, a handled sequence of
6915 -- statements with an "at end" cannot also have exception handlers.
6916 -- For other back ends, such as gcc with front-end SJLJ, the
6917 -- implementation is split between the front end and back end; the front
6918 -- end implements 3, and the back end implements 1 and 2. In this case,
6919 -- if there is an "at end", the front end inserts the appropriate
6920 -- exception handler, and this handler takes precedence over "at end"
6921 -- in case of exception.
6923 -- The inserted exception handler is of the form:
6925 -- when all others =>
6926 -- cleanup;
6927 -- raise;
6929 -- where cleanup is the procedure to be called. The reason we do this is
6930 -- so that the front end can handle the necessary entries in the
6931 -- exception tables, and other exception handler actions required as
6932 -- part of the normal handling for exception handlers.
6934 -- The AT END cleanup handler protects only the sequence of statements
6935 -- (not the associated declarations of the parent), just like exception
6936 -- handlers. The big difference is that the cleanup procedure is called
6937 -- on either a normal or an abnormal exit from the statement sequence.
6939 -- Note: the list of Exception_Handlers can contain pragmas as well
6940 -- as actual handlers. In practice these pragmas can only occur at
6941 -- the start of the list, since any pragmas occurring later on will
6942 -- be included in the statement list of the corresponding handler.
6944 -- Note: although in the Ada syntax, the sequence of statements in
6945 -- a handled sequence of statements can only contain statements, we
6946 -- allow free mixing of declarations and statements in the resulting
6947 -- expanded tree. This is for example used to deal with the case of
6948 -- a cleanup procedure that must handle declarations as well as the
6949 -- statements of a block.
6951 -- Note: the cleanup_procedure_call does not go through the common
6952 -- processing for calls, which in particular means that it will not be
6953 -- automatically inlined in all cases, even though the procedure to be
6954 -- called is marked inline. More specifically, if the procedure comes
6955 -- from another unit than the main source unit, for example a run-time
6956 -- unit, then it needs to be manually added to the list of bodies to be
6957 -- inlined by invoking Add_Inlined_Body on it.
6959 -- N_Handled_Sequence_Of_Statements
6960 -- Sloc points to first token of first statement
6961 -- Statements (List3)
6962 -- End_Label (Node4) (set to Empty if expander generated)
6963 -- Exception_Handlers (List5) (set to No_List if none present)
6964 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6965 -- First_Real_Statement (Node2-Sem)
6967 -- Note: the parent always contains a Declarations field which contains
6968 -- declarations associated with the handled sequence of statements. This
6969 -- is true even in the case of an accept statement (see description of
6970 -- the N_Accept_Statement node).
6972 -- End_Label refers to the containing construct
6974 -----------------------------
6975 -- 11.2 Exception Handler --
6976 -----------------------------
6978 -- EXCEPTION_HANDLER ::=
6979 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6980 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6981 -- SEQUENCE_OF_STATEMENTS
6983 -- Note: choice parameter specification is not allowed in Ada 83 mode
6985 -- N_Exception_Handler
6986 -- Sloc points to WHEN
6987 -- Choice_Parameter (Node2) (set to Empty if not present)
6988 -- Exception_Choices (List4)
6989 -- Statements (List3)
6990 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6991 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6992 -- Local_Raise_Not_OK (Flag7-Sem)
6993 -- Has_Local_Raise (Flag8-Sem)
6995 ------------------------------------------
6996 -- 11.2 Choice parameter specification --
6997 ------------------------------------------
6999 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
7001 ----------------------------
7002 -- 11.2 Exception Choice --
7003 ----------------------------
7005 -- EXCEPTION_CHOICE ::= exception_NAME | others
7007 -- Except in the case of OTHERS, no explicit node appears in the tree
7008 -- for exception choice. Instead the exception name appears directly.
7009 -- An OTHERS choice is represented by a N_Others_Choice node (see
7010 -- section 3.8.1.
7012 -- Note: for the exception choice created for an at end handler, the
7013 -- exception choice is an N_Others_Choice node with All_Others set.
7015 ---------------------------
7016 -- 11.3 Raise Statement --
7017 ---------------------------
7019 -- RAISE_STATEMENT ::= raise [exception_NAME];
7021 -- In Ada 2005, we have
7023 -- RAISE_STATEMENT ::=
7024 -- raise; | raise exception_NAME [with string_EXPRESSION];
7026 -- N_Raise_Statement
7027 -- Sloc points to RAISE
7028 -- Name (Node2) (set to Empty if no exception name present)
7029 -- Expression (Node3) (set to Empty if no expression present)
7030 -- From_At_End (Flag4-Sem)
7032 ----------------------------
7033 -- 11.3 Raise Expression --
7034 ----------------------------
7036 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
7038 -- N_Raise_Expression
7039 -- Sloc points to RAISE
7040 -- Name (Node2) (always present)
7041 -- Expression (Node3) (set to Empty if no expression present)
7042 -- Convert_To_Return_False (Flag13-Sem)
7043 -- plus fields for expression
7045 -------------------------------
7046 -- 12.1 Generic Declaration --
7047 -------------------------------
7049 -- GENERIC_DECLARATION ::=
7050 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
7052 ------------------------------------------
7053 -- 12.1 Generic Subprogram Declaration --
7054 ------------------------------------------
7056 -- GENERIC_SUBPROGRAM_DECLARATION ::=
7057 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
7058 -- [ASPECT_SPECIFICATIONS];
7060 -- Note: Generic_Formal_Declarations can include pragmas
7062 -- N_Generic_Subprogram_Declaration
7063 -- Sloc points to GENERIC
7064 -- Specification (Node1) subprogram specification
7065 -- Corresponding_Body (Node5-Sem)
7066 -- Generic_Formal_Declarations (List2) from generic formal part
7067 -- Parent_Spec (Node4-Sem)
7069 ---------------------------------------
7070 -- 12.1 Generic Package Declaration --
7071 ---------------------------------------
7073 -- GENERIC_PACKAGE_DECLARATION ::=
7074 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
7075 -- [ASPECT_SPECIFICATIONS];
7077 -- Note: when we do generics right, the Activation_Chain_Entity entry
7078 -- for this node can be removed (since the expander won't see generic
7079 -- units any more)???.
7081 -- Note: Generic_Formal_Declarations can include pragmas
7083 -- N_Generic_Package_Declaration
7084 -- Sloc points to GENERIC
7085 -- Specification (Node1) package specification
7086 -- Corresponding_Body (Node5-Sem)
7087 -- Generic_Formal_Declarations (List2) from generic formal part
7088 -- Parent_Spec (Node4-Sem)
7089 -- Activation_Chain_Entity (Node3-Sem)
7091 -------------------------------
7092 -- 12.1 Generic Formal Part --
7093 -------------------------------
7095 -- GENERIC_FORMAL_PART ::=
7096 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
7098 ------------------------------------------------
7099 -- 12.1 Generic Formal Parameter Declaration --
7100 ------------------------------------------------
7102 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
7103 -- FORMAL_OBJECT_DECLARATION
7104 -- | FORMAL_TYPE_DECLARATION
7105 -- | FORMAL_SUBPROGRAM_DECLARATION
7106 -- | FORMAL_PACKAGE_DECLARATION
7108 ---------------------------------
7109 -- 12.3 Generic Instantiation --
7110 ---------------------------------
7112 -- GENERIC_INSTANTIATION ::=
7113 -- package DEFINING_PROGRAM_UNIT_NAME is
7114 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
7115 -- [ASPECT_SPECIFICATIONS];
7116 -- | [[not] overriding]
7117 -- procedure DEFINING_PROGRAM_UNIT_NAME is
7118 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
7119 -- [ASPECT_SPECIFICATIONS];
7120 -- | [[not] overriding]
7121 -- function DEFINING_DESIGNATOR is
7122 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
7123 -- [ASPECT_SPECIFICATIONS];
7125 -- N_Package_Instantiation
7126 -- Sloc points to PACKAGE
7127 -- Defining_Unit_Name (Node1)
7128 -- Name (Node2)
7129 -- Generic_Associations (List3) (set to No_List if no
7130 -- generic actual part)
7131 -- Parent_Spec (Node4-Sem)
7132 -- Instance_Spec (Node5-Sem)
7133 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7134 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7135 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7136 -- Is_Declaration_Level_Node (Flag5-Sem)
7137 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7139 -- N_Procedure_Instantiation
7140 -- Sloc points to PROCEDURE
7141 -- Defining_Unit_Name (Node1)
7142 -- Name (Node2)
7143 -- Parent_Spec (Node4-Sem)
7144 -- Generic_Associations (List3) (set to No_List if no
7145 -- generic actual part)
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 -- N_Function_Instantiation
7156 -- Sloc points to FUNCTION
7157 -- Defining_Unit_Name (Node1)
7158 -- Name (Node2)
7159 -- Generic_Associations (List3) (set to No_List if no
7160 -- generic actual part)
7161 -- Parent_Spec (Node4-Sem)
7162 -- Instance_Spec (Node5-Sem)
7163 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7164 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7165 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7166 -- Is_Declaration_Level_Node (Flag5-Sem)
7167 -- Must_Override (Flag14) set if overriding indicator present
7168 -- Must_Not_Override (Flag15) set if not_overriding indicator present
7169 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7171 -- Note: overriding indicator is an Ada 2005 feature
7173 -------------------------------
7174 -- 12.3 Generic Actual Part --
7175 -------------------------------
7177 -- GENERIC_ACTUAL_PART ::=
7178 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
7180 -------------------------------
7181 -- 12.3 Generic Association --
7182 -------------------------------
7184 -- GENERIC_ASSOCIATION ::=
7185 -- [generic_formal_parameter_SELECTOR_NAME =>]
7187 -- Note: unlike the procedure call case, a generic association node
7188 -- is generated for every association, even if no formal parameter
7189 -- selector name is present. In this case the parser will leave the
7190 -- Selector_Name field set to Empty, to be filled in later by the
7191 -- semantic pass.
7193 -- In Ada 2005, a formal may be associated with a box, if the
7194 -- association is part of the list of actuals for a formal package.
7195 -- If the association is given by OTHERS => <>, the association is
7196 -- an N_Others_Choice.
7198 -- N_Generic_Association
7199 -- Sloc points to first token of generic association
7200 -- Selector_Name (Node2) (set to Empty if no formal
7201 -- parameter selector name)
7202 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
7203 -- Box_Present (Flag15) (for formal_package associations with a box)
7205 ---------------------------------------------
7206 -- 12.3 Explicit Generic Actual Parameter --
7207 ---------------------------------------------
7209 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
7210 -- EXPRESSION | variable_NAME | subprogram_NAME
7211 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
7213 -------------------------------------
7214 -- 12.4 Formal Object Declaration --
7215 -------------------------------------
7217 -- FORMAL_OBJECT_DECLARATION ::=
7218 -- DEFINING_IDENTIFIER_LIST :
7219 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
7220 -- [ASPECT_SPECIFICATIONS];
7221 -- | DEFINING_IDENTIFIER_LIST :
7222 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
7223 -- [ASPECT_SPECIFICATIONS];
7225 -- Although the syntax allows multiple identifiers in the list, the
7226 -- semantics is as though successive declarations were given with
7227 -- identical type definition and expression components. To simplify
7228 -- semantic processing, the parser represents a multiple declaration
7229 -- case as a sequence of single declarations, using the More_Ids and
7230 -- Prev_Ids flags to preserve the original source form as described
7231 -- in the section on "Handling of Defining Identifier Lists".
7233 -- N_Formal_Object_Declaration
7234 -- Sloc points to first identifier
7235 -- Defining_Identifier (Node1)
7236 -- In_Present (Flag15)
7237 -- Out_Present (Flag17)
7238 -- Null_Exclusion_Present (Flag11) (set to False if not present)
7239 -- Subtype_Mark (Node4) (set to Empty if not present)
7240 -- Access_Definition (Node3) (set to Empty if not present)
7241 -- Default_Expression (Node5) (set to Empty if no default expression)
7242 -- More_Ids (Flag5) (set to False if no more identifiers in list)
7243 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
7245 -----------------------------------
7246 -- 12.5 Formal Type Declaration --
7247 -----------------------------------
7249 -- FORMAL_TYPE_DECLARATION ::=
7250 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
7251 -- is FORMAL_TYPE_DEFINITION
7252 -- [ASPECT_SPECIFICATIONS];
7253 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
7255 -- N_Formal_Type_Declaration
7256 -- Sloc points to TYPE
7257 -- Defining_Identifier (Node1)
7258 -- Formal_Type_Definition (Node3)
7259 -- Discriminant_Specifications (List4) (set to No_List if no
7260 -- discriminant part)
7261 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
7263 ----------------------------------
7264 -- 12.5 Formal type definition --
7265 ----------------------------------
7267 -- FORMAL_TYPE_DEFINITION ::=
7268 -- FORMAL_PRIVATE_TYPE_DEFINITION
7269 -- | FORMAL_DERIVED_TYPE_DEFINITION
7270 -- | FORMAL_DISCRETE_TYPE_DEFINITION
7271 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
7272 -- | FORMAL_MODULAR_TYPE_DEFINITION
7273 -- | FORMAL_FLOATING_POINT_DEFINITION
7274 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
7275 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
7276 -- | FORMAL_ARRAY_TYPE_DEFINITION
7277 -- | FORMAL_ACCESS_TYPE_DEFINITION
7278 -- | FORMAL_INTERFACE_TYPE_DEFINITION
7279 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
7281 -- The Ada 2012 syntax introduces two new non-terminals:
7282 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
7283 -- the latter category. Here we introduce an incomplete type definition
7284 -- in order to preserve as much as possible the existing structure.
7286 ---------------------------------------------
7287 -- 12.5.1 Formal Private Type Definition --
7288 ---------------------------------------------
7290 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
7291 -- [[abstract] tagged] [limited] private
7293 -- Note: TAGGED is not allowed in Ada 83 mode
7295 -- N_Formal_Private_Type_Definition
7296 -- Sloc points to PRIVATE
7297 -- Uninitialized_Variable (Node3-Sem)
7298 -- Abstract_Present (Flag4)
7299 -- Tagged_Present (Flag15)
7300 -- Limited_Present (Flag17)
7302 --------------------------------------------
7303 -- 12.5.1 Formal Derived Type Definition --
7304 --------------------------------------------
7306 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
7307 -- [abstract] [limited | synchronized]
7308 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
7309 -- Note: this construct is not allowed in Ada 83 mode
7311 -- N_Formal_Derived_Type_Definition
7312 -- Sloc points to NEW
7313 -- Subtype_Mark (Node4)
7314 -- Private_Present (Flag15)
7315 -- Abstract_Present (Flag4)
7316 -- Limited_Present (Flag17)
7317 -- Synchronized_Present (Flag7)
7318 -- Interface_List (List2) (set to No_List if none)
7320 -----------------------------------------------
7321 -- 12.5.1 Formal Incomplete Type Definition --
7322 -----------------------------------------------
7324 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
7326 -- N_Formal_Incomplete_Type_Definition
7327 -- Sloc points to identifier of parent
7328 -- Tagged_Present (Flag15)
7330 ---------------------------------------------
7331 -- 12.5.2 Formal Discrete Type Definition --
7332 ---------------------------------------------
7334 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
7336 -- N_Formal_Discrete_Type_Definition
7337 -- Sloc points to (
7339 ---------------------------------------------------
7340 -- 12.5.2 Formal Signed Integer Type Definition --
7341 ---------------------------------------------------
7343 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
7345 -- N_Formal_Signed_Integer_Type_Definition
7346 -- Sloc points to RANGE
7348 --------------------------------------------
7349 -- 12.5.2 Formal Modular Type Definition --
7350 --------------------------------------------
7352 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
7354 -- N_Formal_Modular_Type_Definition
7355 -- Sloc points to MOD
7357 ----------------------------------------------
7358 -- 12.5.2 Formal Floating Point Definition --
7359 ----------------------------------------------
7361 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
7363 -- N_Formal_Floating_Point_Definition
7364 -- Sloc points to DIGITS
7366 ----------------------------------------------------
7367 -- 12.5.2 Formal Ordinary Fixed Point Definition --
7368 ----------------------------------------------------
7370 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
7372 -- N_Formal_Ordinary_Fixed_Point_Definition
7373 -- Sloc points to DELTA
7375 ---------------------------------------------------
7376 -- 12.5.2 Formal Decimal Fixed Point Definition --
7377 ---------------------------------------------------
7379 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
7381 -- Note: formal decimal fixed point definition not allowed in Ada 83
7383 -- N_Formal_Decimal_Fixed_Point_Definition
7384 -- Sloc points to DELTA
7386 ------------------------------------------
7387 -- 12.5.3 Formal Array Type Definition --
7388 ------------------------------------------
7390 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
7392 -------------------------------------------
7393 -- 12.5.4 Formal Access Type Definition --
7394 -------------------------------------------
7396 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
7398 ----------------------------------------------
7399 -- 12.5.5 Formal Interface Type Definition --
7400 ----------------------------------------------
7402 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
7404 -----------------------------------------
7405 -- 12.6 Formal Subprogram Declaration --
7406 -----------------------------------------
7408 -- FORMAL_SUBPROGRAM_DECLARATION ::=
7409 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
7410 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
7412 --------------------------------------------------
7413 -- 12.6 Formal Concrete Subprogram Declaration --
7414 --------------------------------------------------
7416 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
7417 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
7418 -- [ASPECT_SPECIFICATIONS];
7420 -- N_Formal_Concrete_Subprogram_Declaration
7421 -- Sloc points to WITH
7422 -- Specification (Node1)
7423 -- Default_Name (Node2) (set to Empty if no subprogram default)
7424 -- Box_Present (Flag15)
7426 -- Note: if no subprogram default is present, then Name is set
7427 -- to Empty, and Box_Present is False.
7429 --------------------------------------------------
7430 -- 12.6 Formal Abstract Subprogram Declaration --
7431 --------------------------------------------------
7433 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
7434 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
7435 -- [ASPECT_SPECIFICATIONS];
7437 -- N_Formal_Abstract_Subprogram_Declaration
7438 -- Sloc points to WITH
7439 -- Specification (Node1)
7440 -- Default_Name (Node2) (set to Empty if no subprogram default)
7441 -- Box_Present (Flag15)
7443 -- Note: if no subprogram default is present, then Name is set
7444 -- to Empty, and Box_Present is False.
7446 ------------------------------
7447 -- 12.6 Subprogram Default --
7448 ------------------------------
7450 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
7452 -- There is no separate node in the tree for a subprogram default.
7453 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
7454 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
7455 -- default name or box indication, as needed.
7457 ------------------------
7458 -- 12.6 Default Name --
7459 ------------------------
7461 -- DEFAULT_NAME ::= NAME
7463 --------------------------------------
7464 -- 12.7 Formal Package Declaration --
7465 --------------------------------------
7467 -- FORMAL_PACKAGE_DECLARATION ::=
7468 -- with package DEFINING_IDENTIFIER
7469 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
7470 -- [ASPECT_SPECIFICATIONS];
7472 -- Note: formal package declarations not allowed in Ada 83 mode
7474 -- N_Formal_Package_Declaration
7475 -- Sloc points to WITH
7476 -- Defining_Identifier (Node1)
7477 -- Name (Node2)
7478 -- Generic_Associations (List3) (set to No_List if (<>) case or
7479 -- empty generic actual part)
7480 -- Box_Present (Flag15)
7481 -- Instance_Spec (Node5-Sem)
7482 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7484 --------------------------------------
7485 -- 12.7 Formal Package Actual Part --
7486 --------------------------------------
7488 -- FORMAL_PACKAGE_ACTUAL_PART ::=
7489 -- ([OTHERS] => <>)
7490 -- | [GENERIC_ACTUAL_PART]
7491 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
7493 -- FORMAL_PACKAGE_ASSOCIATION ::=
7494 -- GENERIC_ASSOCIATION
7495 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
7497 -- There is no explicit node in the tree for a formal package actual
7498 -- part. Instead the information appears in the parent node (i.e. the
7499 -- formal package declaration node itself).
7501 -- There is no explicit node for a formal package association. All of
7502 -- them are represented either by a generic association, possibly with
7503 -- Box_Present, or by an N_Others_Choice.
7505 ---------------------------------
7506 -- 13.1 Representation clause --
7507 ---------------------------------
7509 -- REPRESENTATION_CLAUSE ::=
7510 -- ATTRIBUTE_DEFINITION_CLAUSE
7511 -- | ENUMERATION_REPRESENTATION_CLAUSE
7512 -- | RECORD_REPRESENTATION_CLAUSE
7513 -- | AT_CLAUSE
7515 ----------------------
7516 -- 13.1 Local Name --
7517 ----------------------
7519 -- LOCAL_NAME :=
7520 -- DIRECT_NAME
7521 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
7522 -- | library_unit_NAME
7524 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
7525 -- as an attribute reference, which has essentially the same form.
7527 ---------------------------------------
7528 -- 13.3 Attribute definition clause --
7529 ---------------------------------------
7531 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
7532 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
7533 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
7535 -- In Ada 83, the expression must be a simple expression and the
7536 -- local name must be a direct name.
7538 -- Note: the only attribute definition clause that is processed by
7539 -- gigi is an address clause. For all other cases, the information
7540 -- is extracted by the front end and either results in setting entity
7541 -- information, e.g. Esize for the Size clause, or in appropriate
7542 -- expansion actions (e.g. in the case of Storage_Size).
7544 -- For an address clause, Gigi constructs the appropriate addressing
7545 -- code. It also ensures that no aliasing optimizations are made
7546 -- for the object for which the address clause appears.
7548 -- Note: for an address clause used to achieve an overlay:
7550 -- A : Integer;
7551 -- B : Integer;
7552 -- for B'Address use A'Address;
7554 -- the above rule means that Gigi will ensure that no optimizations
7555 -- will be made for B that would violate the implementation advice
7556 -- of RM 13.3(19). However, this advice applies only to B and not
7557 -- to A, which seems unfortunate. The GNAT front end will mark the
7558 -- object A as volatile to also prevent unwanted optimization
7559 -- assumptions based on no aliasing being made for B.
7561 -- N_Attribute_Definition_Clause
7562 -- Sloc points to FOR
7563 -- Name (Node2) the local name
7564 -- Chars (Name1) the identifier name from the attribute designator
7565 -- Expression (Node3) the expression or name
7566 -- Entity (Node4-Sem)
7567 -- Next_Rep_Item (Node5-Sem)
7568 -- From_At_Mod (Flag4-Sem)
7569 -- Check_Address_Alignment (Flag11-Sem)
7570 -- From_Aspect_Specification (Flag13-Sem)
7571 -- Is_Delayed_Aspect (Flag14-Sem)
7572 -- Address_Warning_Posted (Flag18-Sem)
7574 -- Note: if From_Aspect_Specification is set, then Sloc points to the
7575 -- aspect name, and Entity is resolved already to reference the entity
7576 -- to which the aspect applies.
7578 -----------------------------------
7579 -- 13.3.1 Aspect Specifications --
7580 -----------------------------------
7582 -- We modify the RM grammar here, the RM grammar is:
7584 -- ASPECT_SPECIFICATION ::=
7585 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7586 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
7588 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7590 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7592 -- That's inconvenient, since there is no non-terminal name for a single
7593 -- entry in the list of aspects. So we use this grammar instead:
7595 -- ASPECT_SPECIFICATIONS ::=
7596 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7598 -- ASPECT_SPECIFICATION =>
7599 -- ASPECT_MARK [=> ASPECT_DEFINITION]
7601 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7603 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7605 -- Note that for Annotate, the ASPECT_DEFINITION is a pure positional
7606 -- aggregate with the elements of the aggregate corresponding to the
7607 -- successive arguments of the corresponding pragma.
7609 -- See separate package Aspects for details on the incorporation of
7610 -- these nodes into the tree, and how aspect specifications for a given
7611 -- declaration node are associated with that node.
7613 -- N_Aspect_Specification
7614 -- Sloc points to aspect identifier
7615 -- Identifier (Node1) aspect identifier
7616 -- Aspect_Rep_Item (Node2-Sem)
7617 -- Expression (Node3) Aspect_Definition (set to Empty if none)
7618 -- Entity (Node4-Sem) entity to which the aspect applies
7619 -- Next_Rep_Item (Node5-Sem)
7620 -- Class_Present (Flag6) Set if 'Class present
7621 -- Is_Ignored (Flag9-Sem)
7622 -- Is_Checked (Flag11-Sem)
7623 -- Is_Delayed_Aspect (Flag14-Sem)
7624 -- Is_Disabled (Flag15-Sem)
7625 -- Is_Boolean_Aspect (Flag16-Sem)
7626 -- Split_PPC (Flag17) Set if split pre/post attribute
7628 -- Note: Aspect_Specification is an Ada 2012 feature
7630 -- Note: The Identifier serves to identify the aspect involved (it
7631 -- is the aspect whose name corresponds to the Chars field). This
7632 -- means that the other fields of this identifier are unused, and
7633 -- in particular we use the Entity field of this identifier to save
7634 -- a copy of the expression for visibility analysis, see spec of
7635 -- Sem_Ch13 for full details of this usage.
7637 -- In the case of aspects of the form xxx'Class, the aspect identifier
7638 -- is for xxx, and Class_Present is set to True.
7640 -- Note: When a Pre or Post aspect specification is processed, it is
7641 -- broken into AND THEN sections. The left most section has Split_PPC
7642 -- set to False, indicating that it is the original specification (e.g.
7643 -- for posting errors). For the other sections, Split_PPC is set True.
7645 ---------------------------------------------
7646 -- 13.4 Enumeration representation clause --
7647 ---------------------------------------------
7649 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7650 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7652 -- In Ada 83, the name must be a direct name
7654 -- N_Enumeration_Representation_Clause
7655 -- Sloc points to FOR
7656 -- Identifier (Node1) direct name
7657 -- Array_Aggregate (Node3)
7658 -- Next_Rep_Item (Node5-Sem)
7660 ---------------------------------
7661 -- 13.4 Enumeration aggregate --
7662 ---------------------------------
7664 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7666 ------------------------------------------
7667 -- 13.5.1 Record representation clause --
7668 ------------------------------------------
7670 -- RECORD_REPRESENTATION_CLAUSE ::=
7671 -- for first_subtype_LOCAL_NAME use
7672 -- record [MOD_CLAUSE]
7673 -- {COMPONENT_CLAUSE}
7674 -- end record;
7676 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7677 -- replaced by a corresponding Alignment attribute definition clause).
7679 -- Note: Component_Clauses can include pragmas
7681 -- N_Record_Representation_Clause
7682 -- Sloc points to FOR
7683 -- Identifier (Node1) direct name
7684 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7685 -- Component_Clauses (List3)
7686 -- Next_Rep_Item (Node5-Sem)
7688 ------------------------------
7689 -- 13.5.1 Component clause --
7690 ------------------------------
7692 -- COMPONENT_CLAUSE ::=
7693 -- component_LOCAL_NAME at POSITION
7694 -- range FIRST_BIT .. LAST_BIT;
7696 -- N_Component_Clause
7697 -- Sloc points to AT
7698 -- Component_Name (Node1) points to Name or Attribute_Reference
7699 -- Position (Node2)
7700 -- First_Bit (Node3)
7701 -- Last_Bit (Node4)
7703 ----------------------
7704 -- 13.5.1 Position --
7705 ----------------------
7707 -- POSITION ::= static_EXPRESSION
7709 -----------------------
7710 -- 13.5.1 First_Bit --
7711 -----------------------
7713 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7715 ----------------------
7716 -- 13.5.1 Last_Bit --
7717 ----------------------
7719 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7721 --------------------------
7722 -- 13.8 Code statement --
7723 --------------------------
7725 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7727 -- Note: in GNAT, the qualified expression has the form
7729 -- Asm_Insn'(Asm (...));
7731 -- See package System.Machine_Code in file s-maccod.ads for details on
7732 -- the allowed parameters to Asm. There are two ways this node can
7733 -- arise, as a code statement, in which case the expression is the
7734 -- qualified expression, or as a result of the expansion of an intrinsic
7735 -- call to the Asm or Asm_Input procedure.
7737 -- N_Code_Statement
7738 -- Sloc points to first token of the expression
7739 -- Expression (Node3)
7741 -- Note: package Exp_Code contains an abstract functional interface
7742 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7744 ------------------------
7745 -- 13.12 Restriction --
7746 ------------------------
7748 -- RESTRICTION ::=
7749 -- restriction_IDENTIFIER
7750 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7752 -- There is no explicit node for restrictions. Instead the restriction
7753 -- appears in normal pragma syntax as a pragma argument association,
7754 -- which has the same syntactic form.
7756 --------------------------
7757 -- B.2 Shift Operators --
7758 --------------------------
7760 -- Calls to the intrinsic shift functions are converted to one of
7761 -- the following shift nodes, which have the form of normal binary
7762 -- operator names. Note that for a given shift operation, one node
7763 -- covers all possible types, as for normal operators.
7765 -- Note: it is perfectly permissible for the expander to generate
7766 -- shift operation nodes directly, in which case they will be analyzed
7767 -- and parsed in the usual manner.
7769 -- Sprint syntax: shift-function-name!(expr, count)
7771 -- Note: the Left_Opnd field holds the first argument (the value to
7772 -- be shifted). The Right_Opnd field holds the second argument (the
7773 -- shift count). The Chars field is the name of the intrinsic function.
7775 -- N_Op_Rotate_Left
7776 -- Sloc points to the function name
7777 -- plus fields for binary operator
7778 -- plus fields for expression
7779 -- Shift_Count_OK (Flag4-Sem)
7781 -- N_Op_Rotate_Right
7782 -- Sloc points to the function name
7783 -- plus fields for binary operator
7784 -- plus fields for expression
7785 -- Shift_Count_OK (Flag4-Sem)
7787 -- N_Op_Shift_Left
7788 -- Sloc points to the function name
7789 -- plus fields for binary operator
7790 -- plus fields for expression
7791 -- Shift_Count_OK (Flag4-Sem)
7793 -- N_Op_Shift_Right_Arithmetic
7794 -- Sloc points to the function name
7795 -- plus fields for binary operator
7796 -- plus fields for expression
7797 -- Shift_Count_OK (Flag4-Sem)
7799 -- N_Op_Shift_Right
7800 -- Sloc points to the function name
7801 -- plus fields for binary operator
7802 -- plus fields for expression
7803 -- Shift_Count_OK (Flag4-Sem)
7805 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7806 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7808 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7809 -- always less than the word size if Modify_Tree_For_C mode is set.
7811 --------------------------
7812 -- Obsolescent Features --
7813 --------------------------
7815 -- The syntax descriptions and tree nodes for obsolescent features are
7816 -- grouped together, corresponding to their location in appendix I in
7817 -- the RM. However, parsing and semantic analysis for these constructs
7818 -- is located in an appropriate chapter (see individual notes).
7820 ---------------------------
7821 -- J.3 Delta Constraint --
7822 ---------------------------
7824 -- Note: the parse routine for this construct is located in section
7825 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7826 -- where delta constraint logically belongs.
7828 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7830 -- N_Delta_Constraint
7831 -- Sloc points to DELTA
7832 -- Delta_Expression (Node3)
7833 -- Range_Constraint (Node4) (set to Empty if not present)
7835 --------------------
7836 -- J.7 At Clause --
7837 --------------------
7839 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7841 -- Note: the parse routine for this construct is located in Par-Ch13,
7842 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7843 -- belongs if it were not obsolescent.
7845 -- Note: in Ada 83 the expression must be a simple expression
7847 -- Gigi restriction: This node never appears, it is rewritten as an
7848 -- address attribute definition clause.
7850 -- N_At_Clause
7851 -- Sloc points to FOR
7852 -- Identifier (Node1)
7853 -- Expression (Node3)
7855 ---------------------
7856 -- J.8 Mod clause --
7857 ---------------------
7859 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7861 -- Note: the parse routine for this construct is located in Par-Ch13,
7862 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7863 -- belongs if it were not obsolescent.
7865 -- Note: in Ada 83, the expression must be a simple expression
7867 -- Gigi restriction: this node never appears. It is replaced
7868 -- by a corresponding Alignment attribute definition clause.
7870 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7871 -- its name has "clause" in it. This is rather strange, but is quite
7872 -- definitely specified. The pragmas before are collected in the
7873 -- Pragmas_Before field of the mod clause node itself, and pragmas
7874 -- after are simply swallowed up in the list of component clauses.
7876 -- N_Mod_Clause
7877 -- Sloc points to AT
7878 -- Expression (Node3)
7879 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7881 --------------------
7882 -- Semantic Nodes --
7883 --------------------
7885 -- These semantic nodes are used to hold additional semantic information.
7886 -- They are inserted into the tree as a result of semantic processing.
7887 -- Although there are no legitimate source syntax constructions that
7888 -- correspond directly to these nodes, we need a source syntax for the
7889 -- reconstructed tree printed by Sprint, and the node descriptions here
7890 -- show this syntax.
7892 -----------------
7893 -- Call_Marker --
7894 -----------------
7896 -- This node is created during the analysis/resolution of entry calls,
7897 -- requeues, and subprogram calls. It performs several functions:
7899 -- * Call markers provide a uniform model for handling calls by the
7900 -- ABE mechanism, regardless of whether expansion took place.
7902 -- * The call marker captures the target of the related call along
7903 -- with other attributes which are either unavailabe or expensive
7904 -- to recompute once analysis, resolution, and expansion are over.
7906 -- * The call marker aids the ABE Processing phase by signaling the
7907 -- presence of a call in case the original call was transformed by
7908 -- expansion.
7910 -- * The call marker acts as a reference point for the insertion of
7911 -- run-time conditional ABE checks or guaranteed ABE failures.
7913 -- Sprint syntax: #target#
7915 -- The Sprint syntax shown above is not enabled by default
7917 -- N_Call_Marker
7918 -- Sloc points to Sloc of original call
7919 -- Target (Node1-Sem)
7920 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7921 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7922 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7923 -- Is_Source_Call (Flag4-Sem)
7924 -- Is_Declaration_Level_Node (Flag5-Sem)
7925 -- Is_Dispatching_Call (Flag6-Sem)
7926 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7928 ------------------------
7929 -- Compound Statement --
7930 ------------------------
7932 -- This node is created by the analyzer/expander to handle some
7933 -- expansion cases where a sequence of actions needs to be captured
7934 -- within a single node (which acts as a container and allows the
7935 -- entire list of actions to be moved around as a whole) appearing
7936 -- in a sequence of statements.
7938 -- This is the statement counterpart to the expression node
7939 -- N_Expression_With_Actions.
7941 -- The required semantics is that the set of actions is executed in
7942 -- the order in which it appears, as though they appeared by themselves
7943 -- in the enclosing list of declarations or statements. Unlike what
7944 -- happens when using an N_Block_Statement, no new scope is introduced.
7946 -- Note: for the time being, this is used only as a transient
7947 -- representation during expansion, and all compound statement nodes
7948 -- must be exploded back to their constituent statements before handing
7949 -- the tree to the back end.
7951 -- Sprint syntax: do
7952 -- action;
7953 -- action;
7954 -- ...
7955 -- action;
7956 -- end;
7958 -- N_Compound_Statement
7959 -- Actions (List1)
7961 --------------
7962 -- Contract --
7963 --------------
7965 -- This node is used to hold the various parts of an entry, subprogram
7966 -- [body] or package [body] contract, in particular:
7967 -- Abstract states declared by a package declaration
7968 -- Contract cases that apply to a subprogram
7969 -- Dependency relations of inputs and output of a subprogram
7970 -- Global annotations classifying data as input or output
7971 -- Initialization sequences for a package declaration
7972 -- Pre- and postconditions that apply to a subprogram
7974 -- The node appears in an entry and [generic] subprogram [body] entity.
7976 -- Sprint syntax: <none> as the node should not appear in the tree, but
7977 -- only attached to an entry or [generic] subprogram
7978 -- entity.
7980 -- N_Contract
7981 -- Sloc points to the subprogram's name
7982 -- Pre_Post_Conditions (Node1-Sem) (set to Empty if none)
7983 -- Contract_Test_Cases (Node2-Sem) (set to Empty if none)
7984 -- Classifications (Node3-Sem) (set to Empty if none)
7985 -- Is_Expanded_Contract (Flag1-Sem)
7987 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7988 -- to pre- and postconditions associated with an entry or a subprogram
7989 -- [body or stub]. The pragmas can either come from source or be the
7990 -- byproduct of aspect expansion. Currently the following pragmas appear
7991 -- in this list:
7992 -- Post
7993 -- Postcondition
7994 -- Pre
7995 -- Precondition
7996 -- Refined_Post
7997 -- The ordering in the list is in LIFO fashion.
7999 -- Note that there might be multiple preconditions or postconditions
8000 -- in this list, either because they come from separate pragmas in the
8001 -- source, or because a Pre (resp. Post) aspect specification has been
8002 -- broken into AND THEN sections. See Split_PPC for details.
8004 -- In GNATprove mode, the inherited classwide pre- and postconditions
8005 -- (suitably specialized for the specific type of the overriding
8006 -- operation) are also in this list.
8008 -- Contract_Test_Cases contains a collection of pragmas that correspond
8009 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
8010 -- list is in LIFO fashion.
8012 -- Classifications contains pragmas that either declare, categorize, or
8013 -- establish dependencies between subprogram or package inputs and
8014 -- outputs. Currently the following pragmas appear in this list:
8015 -- Abstract_States
8016 -- Async_Readers
8017 -- Async_Writers
8018 -- Constant_After_Elaboration
8019 -- Depends
8020 -- Effective_Reads
8021 -- Effective_Writes
8022 -- Extensions_Visible
8023 -- Global
8024 -- Initial_Condition
8025 -- Initializes
8026 -- Part_Of
8027 -- Refined_Depends
8028 -- Refined_Global
8029 -- Refined_States
8030 -- Volatile_Function
8031 -- The ordering is in LIFO fashion.
8033 -------------------
8034 -- Expanded Name --
8035 -------------------
8037 -- The N_Expanded_Name node is used to represent a selected component
8038 -- name that has been resolved to an expanded name. The semantic phase
8039 -- replaces N_Selected_Component nodes that represent names by the use
8040 -- of this node, leaving the N_Selected_Component node used only when
8041 -- the prefix is a record or protected type.
8043 -- The fields of the N_Expanded_Name node are layed out identically
8044 -- to those of the N_Selected_Component node, allowing conversion of
8045 -- an expanded name node to a selected component node to be done
8046 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
8048 -- There is no special sprint syntax for an expanded name
8050 -- N_Expanded_Name
8051 -- Sloc points to the period
8052 -- Chars (Name1) copy of Chars field of selector name
8053 -- Prefix (Node3)
8054 -- Selector_Name (Node2)
8055 -- Entity (Node4-Sem)
8056 -- Associated_Node (Node4-Sem)
8057 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
8058 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
8059 -- Has_Private_View (Flag11-Sem) set in generic units
8060 -- Redundant_Use (Flag13-Sem)
8061 -- Atomic_Sync_Required (Flag14-Sem)
8062 -- plus fields for expression
8064 -----------------------------
8065 -- Expression With Actions --
8066 -----------------------------
8068 -- This node is created by the analyzer/expander to handle some
8069 -- expansion cases, notably short-circuit forms where there are
8070 -- actions associated with the right-hand side operand.
8072 -- The N_Expression_With_Actions node represents an expression with
8073 -- an associated set of actions (which are executable statements and
8074 -- declarations, as might occur in a handled statement sequence).
8076 -- The required semantics is that the set of actions is executed in
8077 -- the order in which it appears just before the expression is
8078 -- evaluated (and these actions must only be executed if the value
8079 -- of the expression is evaluated). The node is considered to be
8080 -- a subexpression, whose value is the value of the Expression after
8081 -- executing all the actions.
8083 -- If the actions contain declarations, then these declarations may
8084 -- be referenced within the expression. However note that there is
8085 -- no proper scope associated with the expression-with-action, so the
8086 -- back-end will elaborate them in the context of the enclosing scope.
8088 -- Sprint syntax: do
8089 -- action;
8090 -- action;
8091 -- ...
8092 -- action;
8093 -- in expression end
8095 -- N_Expression_With_Actions
8096 -- Actions (List1)
8097 -- Expression (Node3)
8098 -- plus fields for expression
8100 -- Note: In the final generated tree presented to the code generator,
8101 -- the actions list is always non-null, since there is no point in this
8102 -- node if the actions are Empty. During semantic analysis there are
8103 -- cases where it is convenient to temporarily generate an empty actions
8104 -- list. This arises in cases where we create such an empty actions
8105 -- list, and it may or may not end up being a place where additional
8106 -- actions are inserted. The expander removes such empty cases after
8107 -- the expression of the node is fully analyzed and expanded, at which
8108 -- point it is safe to remove it, since no more actions can be inserted.
8110 -- Note: In Modify_Tree_For_C, we never generate any declarations in
8111 -- the action list, which can contain only non-declarative statements.
8113 --------------------
8114 -- Free Statement --
8115 --------------------
8117 -- The N_Free_Statement node is generated as a result of a call to an
8118 -- instantiation of Unchecked_Deallocation. The instantiation of this
8119 -- generic is handled specially and generates this node directly.
8121 -- Sprint syntax: free expression
8123 -- N_Free_Statement
8124 -- Sloc is copied from the unchecked deallocation call
8125 -- Expression (Node3) argument to unchecked deallocation call
8126 -- Storage_Pool (Node1-Sem)
8127 -- Procedure_To_Call (Node2-Sem)
8128 -- Actual_Designated_Subtype (Node4-Sem)
8130 -- Note: in the case where a debug source file is generated, the Sloc
8131 -- for this node points to the FREE keyword in the Sprint file output.
8133 -------------------
8134 -- Freeze Entity --
8135 -------------------
8137 -- This node marks the point in a declarative part at which an entity
8138 -- declared therein becomes frozen. The expander places initialization
8139 -- procedures for types at those points. Gigi uses the freezing point
8140 -- to elaborate entities that may depend on previous private types.
8142 -- See the section in Einfo "Delayed Freezing and Elaboration" for
8143 -- a full description of the use of this node.
8145 -- The Entity field points back to the entity for the type (whose
8146 -- Freeze_Node field points back to this freeze node).
8148 -- The Actions field contains a list of declarations and statements
8149 -- generated by the expander which are associated with the freeze
8150 -- node, and are elaborated as though the freeze node were replaced
8151 -- by this sequence of actions.
8153 -- Note: the Sloc field in the freeze node references a construct
8154 -- associated with the freezing point. This is used for posting
8155 -- messages in some error/warning situations, e.g. the case where
8156 -- a primitive operation of a tagged type is declared too late.
8158 -- Sprint syntax: freeze entity-name [
8159 -- freeze actions
8160 -- ]
8162 -- N_Freeze_Entity
8163 -- Sloc points near freeze point (see above special note)
8164 -- Entity (Node4-Sem)
8165 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
8166 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
8167 -- Actions (List1) (set to No_List if no freeze actions)
8168 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
8170 -- The Actions field holds actions associated with the freeze. These
8171 -- actions are elaborated at the point where the type is frozen.
8173 -- Note: in the case where a debug source file is generated, the Sloc
8174 -- for this node points to the FREEZE keyword in the Sprint file output.
8176 ---------------------------
8177 -- Freeze Generic Entity --
8178 ---------------------------
8180 -- The freeze point of an entity indicates the point at which the
8181 -- information needed to generate code for the entity is complete.
8182 -- The freeze node for an entity triggers expander activities, such as
8183 -- build initialization procedures, and backend activities, such as
8184 -- completing the elaboration of packages.
8186 -- For entities declared within a generic unit, for which no code is
8187 -- generated, the freeze point is not equally meaningful. However, in
8188 -- Ada 2012 several semantic checks on declarations must be delayed to
8189 -- the freeze point, and we need to include such a mark in the tree to
8190 -- trigger these checks. The Freeze_Generic_Entity node plays no other
8191 -- role, and is ignored by the expander and the back-end.
8193 -- Sprint syntax: freeze_generic entity-name
8195 -- N_Freeze_Generic_Entity
8196 -- Sloc points near freeze point
8197 -- Entity (Node4-Sem)
8199 --------------------------------
8200 -- Implicit Label Declaration --
8201 --------------------------------
8203 -- An implicit label declaration is created for every occurrence of a
8204 -- label on a statement or a label on a block or loop. It is chained
8205 -- in the declarations of the innermost enclosing block as specified
8206 -- in RM section 5.1 (3).
8208 -- The Defining_Identifier is the actual identifier for the statement
8209 -- identifier. Note that the occurrence of the label is a reference, NOT
8210 -- the defining occurrence. The defining occurrence occurs at the head
8211 -- of the innermost enclosing block, and is represented by this node.
8213 -- Note: from the grammar, this might better be called an implicit
8214 -- statement identifier declaration, but the term we choose seems
8215 -- friendlier, since at least informally statement identifiers are
8216 -- called labels in both cases (i.e. when used in labels, and when
8217 -- used as the identifiers of blocks and loops).
8219 -- Note: although this is logically a semantic node, since it does not
8220 -- correspond directly to a source syntax construction, these nodes are
8221 -- actually created by the parser in a post pass done just after parsing
8222 -- is complete, before semantic analysis is started (see Par.Labl).
8224 -- Sprint syntax: labelname : label;
8226 -- N_Implicit_Label_Declaration
8227 -- Sloc points to the << token for a statement identifier, or to the
8228 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
8229 -- Defining_Identifier (Node1)
8230 -- Label_Construct (Node2-Sem)
8232 -- Note: in the case where a debug source file is generated, the Sloc
8233 -- for this node points to the label name in the generated declaration.
8235 ---------------------
8236 -- Itype Reference --
8237 ---------------------
8239 -- This node is used to create a reference to an Itype. The only purpose
8240 -- is to make sure the Itype is defined if this is the first reference.
8242 -- A typical use of this node is when an Itype is to be referenced in
8243 -- two branches of an IF statement. In this case it is important that
8244 -- the first use of the Itype not be inside the conditional, since then
8245 -- it might not be defined if the other branch of the IF is taken, in
8246 -- the case where the definition generates elaboration code.
8248 -- The Itype field points to the referenced Itype
8250 -- Sprint syntax: reference itype-name
8252 -- N_Itype_Reference
8253 -- Sloc points to the node generating the reference
8254 -- Itype (Node1-Sem)
8256 -- Note: in the case where a debug source file is generated, the Sloc
8257 -- for this node points to the REFERENCE keyword in the file output.
8259 ---------------------
8260 -- Raise xxx Error --
8261 ---------------------
8263 -- One of these nodes is created during semantic analysis to replace
8264 -- a node for an expression that is determined to definitely raise
8265 -- the corresponding exception.
8267 -- The N_Raise_xxx_Error node may also stand alone in place
8268 -- of a declaration or statement, in which case it simply causes
8269 -- the exception to be raised (i.e. it is equivalent to a raise
8270 -- statement that raises the corresponding exception). This use
8271 -- is distinguished by the fact that the Etype in this case is
8272 -- Standard_Void_Type; in the subexpression case, the Etype is the
8273 -- same as the type of the subexpression which it replaces.
8275 -- If Condition is empty, then the raise is unconditional. If the
8276 -- Condition field is non-empty, it is a boolean expression which is
8277 -- first evaluated, and the exception is raised only if the value of the
8278 -- expression is True. In the unconditional case, the creation of this
8279 -- node is usually accompanied by a warning message (unless it appears
8280 -- within the right operand of a short-circuit form whose left argument
8281 -- is static and decisively eliminates elaboration of the raise
8282 -- operation). The condition field can ONLY be present when the node is
8283 -- used as a statement form; it must NOT be present in the case where
8284 -- the node appears within an expression.
8286 -- The exception is generated with a message that contains the
8287 -- file name and line number, and then appended text. The Reason
8288 -- code shows the text to be added. The Reason code is an element
8289 -- of the type Types.RT_Exception_Code, and indicates both the
8290 -- message to be added, and the exception to be raised (which must
8291 -- match the node type). The value is stored by storing a Uint which
8292 -- is the Pos value of the enumeration element in this type.
8294 -- Gigi restriction: This expander ensures that the type of the
8295 -- Condition field is always Standard.Boolean, even if the type
8296 -- in the source is some non-standard boolean type.
8298 -- Sprint syntax: [xxx_error "msg"]
8299 -- or: [xxx_error when condition "msg"]
8301 -- N_Raise_Constraint_Error
8302 -- Sloc references related construct
8303 -- Condition (Node1) (set to Empty if no condition)
8304 -- Reason (Uint3)
8305 -- plus fields for expression
8307 -- N_Raise_Program_Error
8308 -- Sloc references related construct
8309 -- Condition (Node1) (set to Empty if no condition)
8310 -- Reason (Uint3)
8311 -- plus fields for expression
8313 -- N_Raise_Storage_Error
8314 -- Sloc references related construct
8315 -- Condition (Node1) (set to Empty if no condition)
8316 -- Reason (Uint3)
8317 -- plus fields for expression
8319 -- Note: Sloc is copied from the expression generating the exception.
8320 -- In the case where a debug source file is generated, the Sloc for
8321 -- this node points to the left bracket in the Sprint file output.
8323 -- Note: the back end may be required to translate these nodes into
8324 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
8326 ---------------------------------------------
8327 -- Optimization of Exception Raise to Goto --
8328 ---------------------------------------------
8330 -- In some cases, the front end will determine that any exception raised
8331 -- by the back end for a certain exception should be transformed into a
8332 -- goto statement.
8334 -- There are three kinds of exceptions raised by the back end (note that
8335 -- for this purpose we consider gigi to be part of the back end in the
8336 -- gcc case):
8338 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
8339 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
8340 -- 3. Other cases not specifically marked by the front end
8342 -- Normally all such exceptions are translated into calls to the proper
8343 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
8344 -- and the exception message.
8346 -- The front end may determine that for a particular sequence of code,
8347 -- exceptions in any of these three categories for a particular builtin
8348 -- exception should result in a goto, rather than a call to Rcheck_xx.
8349 -- The exact sequence to be generated is:
8351 -- Local_Raise (exception'Identity);
8352 -- goto Label
8354 -- The front end marks such a sequence of code by bracketing it with
8355 -- push and pop nodes:
8357 -- N_Push_xxx_Label (referencing the label)
8358 -- ...
8359 -- (code where transformation is expected for exception xxx)
8360 -- ...
8361 -- N_Pop_xxx_Label
8363 -- The use of push/pop reflects the fact that such regions can properly
8364 -- nest, and one special case is a subregion in which no transformation
8365 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
8366 -- Exception_Label field is Empty.
8368 -- N_Push_Constraint_Error_Label
8369 -- Sloc references first statement in region covered
8370 -- Exception_Label (Node5-Sem)
8372 -- N_Push_Program_Error_Label
8373 -- Sloc references first statement in region covered
8374 -- Exception_Label (Node5-Sem)
8376 -- N_Push_Storage_Error_Label
8377 -- Sloc references first statement in region covered
8378 -- Exception_Label (Node5-Sem)
8380 -- N_Pop_Constraint_Error_Label
8381 -- Sloc references last statement in region covered
8383 -- N_Pop_Program_Error_Label
8384 -- Sloc references last statement in region covered
8386 -- N_Pop_Storage_Error_Label
8387 -- Sloc references last statement in region covered
8389 ---------------
8390 -- Reference --
8391 ---------------
8393 -- For a number of purposes, we need to construct references to objects.
8394 -- These references are subsequently treated as normal access values.
8395 -- An example is the construction of the parameter block passed to a
8396 -- task entry. The N_Reference node is provided for this purpose. It is
8397 -- similar in effect to the use of the Unrestricted_Access attribute,
8398 -- and like Unrestricted_Access can be applied to objects which would
8399 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
8400 -- objects which are not aliased, and slices). In addition it can be
8401 -- applied to composite type values as well as objects, including string
8402 -- values and aggregates.
8404 -- Note: we use the Prefix field for this expression so that the
8405 -- resulting node can be treated using common code with the attribute
8406 -- nodes for the 'Access and related attributes. Logically it would make
8407 -- more sense to call it an Expression field, but then we would have to
8408 -- special case the treatment of the N_Reference node.
8410 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
8411 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
8412 -- a temporary initialized to a N_Reference node in order to eliminate
8413 -- superfluous access checks.
8415 -- Sprint syntax: prefix'reference
8417 -- N_Reference
8418 -- Sloc is copied from the expression
8419 -- Prefix (Node3)
8420 -- plus fields for expression
8422 -- Note: in the case where a debug source file is generated, the Sloc
8423 -- for this node points to the quote in the Sprint file output.
8425 ----------------
8426 -- SCIL Nodes --
8427 ----------------
8429 -- SCIL nodes are special nodes added to the tree when the CodePeer mode
8430 -- is active. They are only generated if SCIL generation is enabled.
8431 -- A standard tree-walk will not encounter these nodes even if they
8432 -- are present; these nodes are only accessible via the function
8433 -- SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
8434 -- semantics.
8436 -- Sprint syntax: [ <node kind> ]
8437 -- No semantic field values are displayed.
8439 -- N_SCIL_Dispatch_Table_Tag_Init
8440 -- Sloc references a node for a tag initialization
8441 -- SCIL_Entity (Node4-Sem)
8443 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
8444 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
8445 -- the declaration of the dispatch table for a tagged type.
8447 -- N_SCIL_Dispatching_Call
8448 -- Sloc references the node of a dispatching call
8449 -- SCIL_Target_Prim (Node2-Sem)
8450 -- SCIL_Entity (Node4-Sem)
8451 -- SCIL_Controlling_Tag (Node5-Sem)
8453 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
8454 -- with the N_Procedure_Call_Statement or N_Function_Call node (or a
8455 -- rewriting thereof) corresponding to a dispatching call.
8457 -- N_SCIL_Membership_Test
8458 -- Sloc references the node of a membership test
8459 -- SCIL_Tag_Value (Node5-Sem)
8460 -- SCIL_Entity (Node4-Sem)
8462 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
8463 -- with the N_In node (or a rewriting thereof) corresponding to a
8464 -- classwide membership test.
8466 --------------------------
8467 -- Unchecked Expression --
8468 --------------------------
8470 -- An unchecked expression is one that must be analyzed and resolved
8471 -- with all checks off, regardless of the current setting of scope
8472 -- suppress flags.
8474 -- Sprint syntax: `(expression)
8476 -- Note: this node is always removed from the tree (and replaced by
8477 -- its constituent expression) on completion of analysis, so it only
8478 -- appears in intermediate trees, and will never be seen by Gigi.
8480 -- N_Unchecked_Expression
8481 -- Sloc is a copy of the Sloc of the expression
8482 -- Expression (Node3)
8483 -- plus fields for expression
8485 -- Note: in the case where a debug source file is generated, the Sloc
8486 -- for this node points to the back quote in the Sprint file output.
8488 -------------------------------
8489 -- Unchecked Type Conversion --
8490 -------------------------------
8492 -- An unchecked type conversion node represents the semantic action
8493 -- corresponding to a call to an instantiation of Unchecked_Conversion.
8494 -- It is generated as a result of actual use of Unchecked_Conversion
8495 -- and also the expander generates unchecked type conversion nodes
8496 -- directly for expansion of complex semantic actions.
8498 -- Note: an unchecked type conversion is a variable as far as the
8499 -- semantics are concerned, which is convenient for the expander.
8500 -- This does not change what Ada source programs are legal, since
8501 -- clearly a function call to an instantiation of Unchecked_Conversion
8502 -- is not a variable in any case.
8504 -- Sprint syntax: subtype-mark!(expression)
8506 -- N_Unchecked_Type_Conversion
8507 -- Sloc points to related node in source
8508 -- Subtype_Mark (Node4)
8509 -- Expression (Node3)
8510 -- Kill_Range_Check (Flag11-Sem)
8511 -- No_Truncation (Flag17-Sem)
8512 -- plus fields for expression
8514 -- Note: in the case where a debug source file is generated, the Sloc
8515 -- for this node points to the exclamation in the Sprint file output.
8517 -----------------------------------
8518 -- Validate_Unchecked_Conversion --
8519 -----------------------------------
8521 -- The front end does most of the validation of unchecked conversion,
8522 -- including checking sizes (this is done after the back end is called
8523 -- to take advantage of back-annotation of calculated sizes).
8525 -- The front end also deals with specific cases that are not allowed
8526 -- e.g. involving unconstrained array types.
8528 -- For the case of the standard gigi backend, this means that all
8529 -- checks are done in the front end.
8531 -- However, in the case of specialized back-ends, in particular the JVM
8532 -- backend in the past, additional requirements and restrictions may
8533 -- apply to unchecked conversion, and these are most conveniently
8534 -- performed in the specialized back-end.
8536 -- To accommodate this requirement, for such back ends, the following
8537 -- special node is generated recording an unchecked conversion that
8538 -- needs to be validated. The back end should post an appropriate
8539 -- error message if the unchecked conversion is invalid or warrants
8540 -- a special warning message.
8542 -- Source_Type and Target_Type point to the entities for the two
8543 -- types involved in the unchecked conversion instantiation that
8544 -- is to be validated.
8546 -- Sprint syntax: validate Unchecked_Conversion (source, target);
8548 -- N_Validate_Unchecked_Conversion
8549 -- Sloc points to instantiation (location for warning message)
8550 -- Source_Type (Node1-Sem)
8551 -- Target_Type (Node2-Sem)
8553 -- Note: in the case where a debug source file is generated, the Sloc
8554 -- for this node points to the VALIDATE keyword in the file output.
8556 -------------------------------
8557 -- Variable_Reference_Marker --
8558 -------------------------------
8560 -- This node is created during the analysis of direct or expanded names,
8561 -- and the resolution of entry and subprogram calls. It performs several
8562 -- functions:
8564 -- * Variable reference markers provide a uniform model for handling
8565 -- variable references by the ABE mechanism, regardless of whether
8566 -- expansion took place.
8568 -- * The variable reference marker captures the entity of the variable
8569 -- being read or written.
8571 -- * The variable reference markers aid the ABE Processing phase by
8572 -- signaling the presence of a call in case the original variable
8573 -- reference was transformed by expansion.
8575 -- Sprint syntax: r#target# -- for a read
8576 -- rw#target# -- for a read/write
8577 -- w#target# -- for a write
8579 -- The Sprint syntax shown above is not enabled by default
8581 -- N_Variable_Reference_Marker
8582 -- Sloc points to Sloc of original variable reference
8583 -- Target (Node1-Sem)
8584 -- Is_Read (Flag1-Sem)
8585 -- Is_Write (Flag2-Sem)
8587 -----------
8588 -- Empty --
8589 -----------
8591 -- Used as the contents of the Nkind field of the dummy Empty node and in
8592 -- some other situations to indicate an uninitialized value.
8594 -- N_Empty
8595 -- Chars (Name1) is set to No_Name
8597 -----------
8598 -- Error --
8599 -----------
8601 -- Used as the contents of the Nkind field of the dummy Error node.
8602 -- Has an Etype field, which gets set to Any_Type later on, to help
8603 -- error recovery (Error_Posted is also set in the Error node).
8605 -- N_Error
8606 -- Chars (Name1) is set to Error_Name
8607 -- Etype (Node5-Sem)
8609 --------------------------
8610 -- Node Type Definition --
8611 --------------------------
8613 -- The following is the definition of the Node_Kind type. As previously
8614 -- discussed, this is separated off to allow rearrangement of the order to
8615 -- facilitate definition of subtype ranges. The comments show the subtype
8616 -- classes which apply to each set of node kinds. The first entry in the
8617 -- comment characterizes the following list of nodes.
8619 type Node_Kind is (
8620 N_Unused_At_Start,
8622 -- N_Representation_Clause
8624 N_At_Clause,
8625 N_Component_Clause,
8626 N_Enumeration_Representation_Clause,
8627 N_Mod_Clause,
8628 N_Record_Representation_Clause,
8630 -- N_Representation_Clause, N_Has_Chars
8632 N_Attribute_Definition_Clause,
8634 -- N_Has_Chars
8636 N_Empty,
8637 N_Pragma_Argument_Association,
8639 -- N_Has_Etype, N_Has_Chars
8641 -- Note: of course N_Error does not really have Etype or Chars fields,
8642 -- and any attempt to access these fields in N_Error will cause an
8643 -- error, but historically this always has been positioned so that an
8644 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8645 -- Most likely this makes coding easier somewhere but still seems
8646 -- undesirable. To be investigated some time ???
8648 N_Error,
8650 -- N_Entity, N_Has_Etype, N_Has_Chars
8652 N_Defining_Character_Literal,
8653 N_Defining_Identifier,
8654 N_Defining_Operator_Symbol,
8656 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8658 N_Expanded_Name,
8660 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8661 -- N_Has_Chars, N_Has_Entity
8663 N_Identifier,
8664 N_Operator_Symbol,
8666 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8667 -- N_Has_Chars, N_Has_Entity
8669 N_Character_Literal,
8671 -- N_Binary_Op, N_Op, N_Subexpr,
8672 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
8674 N_Op_Add,
8675 N_Op_Concat,
8676 N_Op_Expon,
8677 N_Op_Subtract,
8679 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
8680 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8682 N_Op_Divide,
8683 N_Op_Mod,
8684 N_Op_Multiply,
8685 N_Op_Rem,
8687 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8688 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8690 N_Op_And,
8692 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8693 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8695 N_Op_Eq,
8696 N_Op_Ge,
8697 N_Op_Gt,
8698 N_Op_Le,
8699 N_Op_Lt,
8700 N_Op_Ne,
8702 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8703 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8705 N_Op_Or,
8706 N_Op_Xor,
8708 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8709 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
8711 N_Op_Rotate_Left,
8712 N_Op_Rotate_Right,
8713 N_Op_Shift_Left,
8714 N_Op_Shift_Right,
8715 N_Op_Shift_Right_Arithmetic,
8717 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8718 -- N_Has_Chars, N_Has_Entity
8720 N_Op_Abs,
8721 N_Op_Minus,
8722 N_Op_Not,
8723 N_Op_Plus,
8725 -- N_Subexpr, N_Has_Etype, N_Has_Entity
8727 N_Attribute_Reference,
8729 -- N_Subexpr, N_Has_Etype, N_Membership_Test
8731 N_In,
8732 N_Not_In,
8734 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8736 N_And_Then,
8737 N_Or_Else,
8739 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8741 N_Function_Call,
8742 N_Procedure_Call_Statement,
8744 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8746 N_Raise_Constraint_Error,
8747 N_Raise_Program_Error,
8748 N_Raise_Storage_Error,
8750 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8752 N_Integer_Literal,
8753 N_Real_Literal,
8754 N_String_Literal,
8756 -- N_Subexpr, N_Has_Etype
8758 N_Explicit_Dereference,
8759 N_Expression_With_Actions,
8760 N_If_Expression,
8761 N_Indexed_Component,
8762 N_Null,
8763 N_Qualified_Expression,
8764 N_Quantified_Expression,
8765 N_Aggregate,
8766 N_Allocator,
8767 N_Case_Expression,
8768 N_Delta_Aggregate,
8769 N_Extension_Aggregate,
8770 N_Raise_Expression,
8771 N_Range,
8772 N_Reference,
8773 N_Selected_Component,
8774 N_Slice,
8775 N_Target_Name,
8776 N_Type_Conversion,
8777 N_Unchecked_Expression,
8778 N_Unchecked_Type_Conversion,
8780 -- N_Has_Etype
8782 N_Subtype_Indication,
8784 -- N_Declaration
8786 N_Component_Declaration,
8787 N_Entry_Declaration,
8788 N_Expression_Function,
8789 N_Formal_Object_Declaration,
8790 N_Formal_Type_Declaration,
8791 N_Full_Type_Declaration,
8792 N_Incomplete_Type_Declaration,
8793 N_Iterator_Specification,
8794 N_Loop_Parameter_Specification,
8795 N_Object_Declaration,
8796 N_Protected_Type_Declaration,
8797 N_Private_Extension_Declaration,
8798 N_Private_Type_Declaration,
8799 N_Subtype_Declaration,
8801 -- N_Subprogram_Specification, N_Declaration
8803 N_Function_Specification,
8804 N_Procedure_Specification,
8806 -- N_Access_To_Subprogram_Definition
8808 N_Access_Function_Definition,
8809 N_Access_Procedure_Definition,
8811 -- N_Later_Decl_Item
8813 N_Task_Type_Declaration,
8815 -- N_Body_Stub, N_Later_Decl_Item
8817 N_Package_Body_Stub,
8818 N_Protected_Body_Stub,
8819 N_Subprogram_Body_Stub,
8820 N_Task_Body_Stub,
8822 -- N_Generic_Instantiation, N_Later_Decl_Item
8823 -- N_Subprogram_Instantiation
8825 N_Function_Instantiation,
8826 N_Procedure_Instantiation,
8828 -- N_Generic_Instantiation, N_Later_Decl_Item
8830 N_Package_Instantiation,
8832 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8834 N_Package_Body,
8835 N_Subprogram_Body,
8837 -- N_Later_Decl_Item, N_Proper_Body
8839 N_Protected_Body,
8840 N_Task_Body,
8842 -- N_Later_Decl_Item
8844 N_Implicit_Label_Declaration,
8845 N_Package_Declaration,
8846 N_Single_Task_Declaration,
8847 N_Subprogram_Declaration,
8848 N_Use_Package_Clause,
8850 -- N_Generic_Declaration, N_Later_Decl_Item
8852 N_Generic_Package_Declaration,
8853 N_Generic_Subprogram_Declaration,
8855 -- N_Array_Type_Definition
8857 N_Constrained_Array_Definition,
8858 N_Unconstrained_Array_Definition,
8860 -- N_Renaming_Declaration
8862 N_Exception_Renaming_Declaration,
8863 N_Object_Renaming_Declaration,
8864 N_Package_Renaming_Declaration,
8865 N_Subprogram_Renaming_Declaration,
8867 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8869 N_Generic_Function_Renaming_Declaration,
8870 N_Generic_Package_Renaming_Declaration,
8871 N_Generic_Procedure_Renaming_Declaration,
8873 -- N_Statement_Other_Than_Procedure_Call
8875 N_Abort_Statement,
8876 N_Accept_Statement,
8877 N_Assignment_Statement,
8878 N_Asynchronous_Select,
8879 N_Block_Statement,
8880 N_Case_Statement,
8881 N_Code_Statement,
8882 N_Compound_Statement,
8883 N_Conditional_Entry_Call,
8885 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8887 N_Delay_Relative_Statement,
8888 N_Delay_Until_Statement,
8890 -- N_Statement_Other_Than_Procedure_Call
8892 N_Entry_Call_Statement,
8893 N_Free_Statement,
8894 N_Goto_Statement,
8895 N_Loop_Statement,
8896 N_Null_Statement,
8897 N_Raise_Statement,
8898 N_Requeue_Statement,
8899 N_Simple_Return_Statement,
8900 N_Extended_Return_Statement,
8901 N_Selective_Accept,
8902 N_Timed_Entry_Call,
8904 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8906 N_Exit_Statement,
8907 N_If_Statement,
8909 -- N_Has_Condition
8911 N_Accept_Alternative,
8912 N_Delay_Alternative,
8913 N_Elsif_Part,
8914 N_Entry_Body_Formal_Part,
8915 N_Iteration_Scheme,
8916 N_Terminate_Alternative,
8918 -- N_Formal_Subprogram_Declaration
8920 N_Formal_Abstract_Subprogram_Declaration,
8921 N_Formal_Concrete_Subprogram_Declaration,
8923 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8925 N_Push_Constraint_Error_Label,
8926 N_Push_Program_Error_Label,
8927 N_Push_Storage_Error_Label,
8929 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8931 N_Pop_Constraint_Error_Label,
8932 N_Pop_Program_Error_Label,
8933 N_Pop_Storage_Error_Label,
8935 -- SCIL nodes
8937 N_SCIL_Dispatch_Table_Tag_Init,
8938 N_SCIL_Dispatching_Call,
8939 N_SCIL_Membership_Test,
8941 -- Other nodes (not part of any subtype class)
8943 N_Abortable_Part,
8944 N_Abstract_Subprogram_Declaration,
8945 N_Access_Definition,
8946 N_Access_To_Object_Definition,
8947 N_Aspect_Specification,
8948 N_Call_Marker,
8949 N_Case_Expression_Alternative,
8950 N_Case_Statement_Alternative,
8951 N_Compilation_Unit,
8952 N_Compilation_Unit_Aux,
8953 N_Component_Association,
8954 N_Component_Definition,
8955 N_Component_List,
8956 N_Contract,
8957 N_Derived_Type_Definition,
8958 N_Decimal_Fixed_Point_Definition,
8959 N_Defining_Program_Unit_Name,
8960 N_Delta_Constraint,
8961 N_Designator,
8962 N_Digits_Constraint,
8963 N_Discriminant_Association,
8964 N_Discriminant_Specification,
8965 N_Enumeration_Type_Definition,
8966 N_Entry_Body,
8967 N_Entry_Call_Alternative,
8968 N_Entry_Index_Specification,
8969 N_Exception_Declaration,
8970 N_Exception_Handler,
8971 N_Floating_Point_Definition,
8972 N_Formal_Decimal_Fixed_Point_Definition,
8973 N_Formal_Derived_Type_Definition,
8974 N_Formal_Discrete_Type_Definition,
8975 N_Formal_Floating_Point_Definition,
8976 N_Formal_Modular_Type_Definition,
8977 N_Formal_Ordinary_Fixed_Point_Definition,
8978 N_Formal_Package_Declaration,
8979 N_Formal_Private_Type_Definition,
8980 N_Formal_Incomplete_Type_Definition,
8981 N_Formal_Signed_Integer_Type_Definition,
8982 N_Freeze_Entity,
8983 N_Freeze_Generic_Entity,
8984 N_Generic_Association,
8985 N_Handled_Sequence_Of_Statements,
8986 N_Index_Or_Discriminant_Constraint,
8987 N_Iterated_Component_Association,
8988 N_Itype_Reference,
8989 N_Label,
8990 N_Modular_Type_Definition,
8991 N_Number_Declaration,
8992 N_Ordinary_Fixed_Point_Definition,
8993 N_Others_Choice,
8994 N_Package_Specification,
8995 N_Parameter_Association,
8996 N_Parameter_Specification,
8997 N_Pragma,
8998 N_Protected_Definition,
8999 N_Range_Constraint,
9000 N_Real_Range_Specification,
9001 N_Record_Definition,
9002 N_Signed_Integer_Type_Definition,
9003 N_Single_Protected_Declaration,
9004 N_Subunit,
9005 N_Task_Definition,
9006 N_Triggering_Alternative,
9007 N_Use_Type_Clause,
9008 N_Validate_Unchecked_Conversion,
9009 N_Variable_Reference_Marker,
9010 N_Variant,
9011 N_Variant_Part,
9012 N_With_Clause,
9013 N_Unused_At_End);
9015 for Node_Kind'Size use 8;
9016 -- The data structures in Atree assume this
9018 ----------------------------
9019 -- Node Class Definitions --
9020 ----------------------------
9022 subtype N_Access_To_Subprogram_Definition is Node_Kind range
9023 N_Access_Function_Definition ..
9024 N_Access_Procedure_Definition;
9026 subtype N_Array_Type_Definition is Node_Kind range
9027 N_Constrained_Array_Definition ..
9028 N_Unconstrained_Array_Definition;
9030 subtype N_Binary_Op is Node_Kind range
9031 N_Op_Add ..
9032 N_Op_Shift_Right_Arithmetic;
9034 subtype N_Body_Stub is Node_Kind range
9035 N_Package_Body_Stub ..
9036 N_Task_Body_Stub;
9038 subtype N_Declaration is Node_Kind range
9039 N_Component_Declaration ..
9040 N_Procedure_Specification;
9041 -- Note: this includes all constructs normally thought of as declarations
9042 -- except those which are separately grouped as later declarations.
9044 subtype N_Delay_Statement is Node_Kind range
9045 N_Delay_Relative_Statement ..
9046 N_Delay_Until_Statement;
9048 subtype N_Direct_Name is Node_Kind range
9049 N_Identifier ..
9050 N_Character_Literal;
9052 subtype N_Entity is Node_Kind range
9053 N_Defining_Character_Literal ..
9054 N_Defining_Operator_Symbol;
9056 subtype N_Formal_Subprogram_Declaration is Node_Kind range
9057 N_Formal_Abstract_Subprogram_Declaration ..
9058 N_Formal_Concrete_Subprogram_Declaration;
9060 subtype N_Generic_Declaration is Node_Kind range
9061 N_Generic_Package_Declaration ..
9062 N_Generic_Subprogram_Declaration;
9064 subtype N_Generic_Instantiation is Node_Kind range
9065 N_Function_Instantiation ..
9066 N_Package_Instantiation;
9068 subtype N_Generic_Renaming_Declaration is Node_Kind range
9069 N_Generic_Function_Renaming_Declaration ..
9070 N_Generic_Procedure_Renaming_Declaration;
9072 subtype N_Has_Chars is Node_Kind range
9073 N_Attribute_Definition_Clause ..
9074 N_Op_Plus;
9076 subtype N_Has_Entity is Node_Kind range
9077 N_Expanded_Name ..
9078 N_Attribute_Reference;
9079 -- Nodes that have Entity fields
9080 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
9081 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
9083 subtype N_Has_Etype is Node_Kind range
9084 N_Error ..
9085 N_Subtype_Indication;
9087 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
9088 N_Op_Divide ..
9089 N_Op_Rem;
9091 subtype N_Multiplying_Operator is Node_Kind range
9092 N_Op_Divide ..
9093 N_Op_Rem;
9095 subtype N_Later_Decl_Item is Node_Kind range
9096 N_Task_Type_Declaration ..
9097 N_Generic_Subprogram_Declaration;
9098 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
9099 -- only those items which can appear as later declarative items. This also
9100 -- includes N_Implicit_Label_Declaration which is not specifically in the
9101 -- grammar but may appear as a valid later declarative items. It does NOT
9102 -- include N_Pragma which can also appear among later declarative items.
9103 -- It does however include N_Protected_Body, which is a bit peculiar, but
9104 -- harmless since this cannot appear in Ada 83 mode anyway.
9106 subtype N_Membership_Test is Node_Kind range
9107 N_In ..
9108 N_Not_In;
9110 subtype N_Numeric_Or_String_Literal is Node_Kind range
9111 N_Integer_Literal ..
9112 N_String_Literal;
9114 subtype N_Op is Node_Kind range
9115 N_Op_Add ..
9116 N_Op_Plus;
9118 subtype N_Op_Boolean is Node_Kind range
9119 N_Op_And ..
9120 N_Op_Xor;
9121 -- Binary operators which take operands of a boolean type, and yield
9122 -- a result of a boolean type.
9124 subtype N_Op_Compare is Node_Kind range
9125 N_Op_Eq ..
9126 N_Op_Ne;
9128 subtype N_Op_Shift is Node_Kind range
9129 N_Op_Rotate_Left ..
9130 N_Op_Shift_Right_Arithmetic;
9132 subtype N_Proper_Body is Node_Kind range
9133 N_Package_Body ..
9134 N_Task_Body;
9136 subtype N_Push_xxx_Label is Node_Kind range
9137 N_Push_Constraint_Error_Label ..
9138 N_Push_Storage_Error_Label;
9140 subtype N_Pop_xxx_Label is Node_Kind range
9141 N_Pop_Constraint_Error_Label ..
9142 N_Pop_Storage_Error_Label;
9144 subtype N_Push_Pop_xxx_Label is Node_Kind range
9145 N_Push_Constraint_Error_Label ..
9146 N_Pop_Storage_Error_Label;
9148 subtype N_Raise_xxx_Error is Node_Kind range
9149 N_Raise_Constraint_Error ..
9150 N_Raise_Storage_Error;
9152 subtype N_Renaming_Declaration is Node_Kind range
9153 N_Exception_Renaming_Declaration ..
9154 N_Generic_Procedure_Renaming_Declaration;
9156 subtype N_Representation_Clause is Node_Kind range
9157 N_At_Clause ..
9158 N_Attribute_Definition_Clause;
9160 subtype N_Short_Circuit is Node_Kind range
9161 N_And_Then ..
9162 N_Or_Else;
9164 subtype N_SCIL_Node is Node_Kind range
9165 N_SCIL_Dispatch_Table_Tag_Init ..
9166 N_SCIL_Membership_Test;
9168 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
9169 N_Abort_Statement ..
9170 N_If_Statement;
9171 -- Note that this includes all statement types except for the cases of the
9172 -- N_Procedure_Call_Statement which is considered to be a subexpression
9173 -- (since overloading is possible, so it needs to go through the normal
9174 -- overloading resolution for expressions).
9176 subtype N_Subprogram_Call is Node_Kind range
9177 N_Function_Call ..
9178 N_Procedure_Call_Statement;
9180 subtype N_Subprogram_Instantiation is Node_Kind range
9181 N_Function_Instantiation ..
9182 N_Procedure_Instantiation;
9184 subtype N_Has_Condition is Node_Kind range
9185 N_Exit_Statement ..
9186 N_Terminate_Alternative;
9187 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
9189 subtype N_Subexpr is Node_Kind range
9190 N_Expanded_Name ..
9191 N_Unchecked_Type_Conversion;
9192 -- Nodes with expression fields
9194 subtype N_Subprogram_Specification is Node_Kind range
9195 N_Function_Specification ..
9196 N_Procedure_Specification;
9198 subtype N_Unary_Op is Node_Kind range
9199 N_Op_Abs ..
9200 N_Op_Plus;
9202 subtype N_Unit_Body is Node_Kind range
9203 N_Package_Body ..
9204 N_Subprogram_Body;
9206 ---------------------------
9207 -- Node Access Functions --
9208 ---------------------------
9210 -- The following functions return the contents of the indicated field of
9211 -- the node referenced by the argument, which is a Node_Id. They provide
9212 -- logical access to fields in the node which could be accessed using the
9213 -- Atree.Unchecked_Access package, but the idea is always to use these
9214 -- higher level routines which preserve strong typing. In debug mode,
9215 -- these routines check that they are being applied to an appropriate
9216 -- node, as well as checking that the node is in range.
9218 function Abort_Present
9219 (N : Node_Id) return Boolean; -- Flag15
9221 function Abortable_Part
9222 (N : Node_Id) return Node_Id; -- Node2
9224 function Abstract_Present
9225 (N : Node_Id) return Boolean; -- Flag4
9227 function Accept_Handler_Records
9228 (N : Node_Id) return List_Id; -- List5
9230 function Accept_Statement
9231 (N : Node_Id) return Node_Id; -- Node2
9233 function Access_Definition
9234 (N : Node_Id) return Node_Id; -- Node3
9236 function Access_To_Subprogram_Definition
9237 (N : Node_Id) return Node_Id; -- Node3
9239 function Access_Types_To_Process
9240 (N : Node_Id) return Elist_Id; -- Elist2
9242 function Actions
9243 (N : Node_Id) return List_Id; -- List1
9245 function Activation_Chain_Entity
9246 (N : Node_Id) return Node_Id; -- Node3
9248 function Acts_As_Spec
9249 (N : Node_Id) return Boolean; -- Flag4
9251 function Actual_Designated_Subtype
9252 (N : Node_Id) return Node_Id; -- Node4
9254 function Address_Warning_Posted
9255 (N : Node_Id) return Boolean; -- Flag18
9257 function Aggregate_Bounds
9258 (N : Node_Id) return Node_Id; -- Node3
9260 function Aliased_Present
9261 (N : Node_Id) return Boolean; -- Flag4
9263 function Alloc_For_BIP_Return
9264 (N : Node_Id) return Boolean; -- Flag1
9266 function All_Others
9267 (N : Node_Id) return Boolean; -- Flag11
9269 function All_Present
9270 (N : Node_Id) return Boolean; -- Flag15
9272 function Alternatives
9273 (N : Node_Id) return List_Id; -- List4
9275 function Ancestor_Part
9276 (N : Node_Id) return Node_Id; -- Node3
9278 function Atomic_Sync_Required
9279 (N : Node_Id) return Boolean; -- Flag14
9281 function Array_Aggregate
9282 (N : Node_Id) return Node_Id; -- Node3
9284 function Aspect_Rep_Item
9285 (N : Node_Id) return Node_Id; -- Node2
9287 function Assignment_OK
9288 (N : Node_Id) return Boolean; -- Flag15
9290 function Associated_Node
9291 (N : Node_Id) return Node_Id; -- Node4
9293 function At_End_Proc
9294 (N : Node_Id) return Node_Id; -- Node1
9296 function Attribute_Name
9297 (N : Node_Id) return Name_Id; -- Name2
9299 function Aux_Decls_Node
9300 (N : Node_Id) return Node_Id; -- Node5
9302 function Backwards_OK
9303 (N : Node_Id) return Boolean; -- Flag6
9305 function Bad_Is_Detected
9306 (N : Node_Id) return Boolean; -- Flag15
9308 function By_Ref
9309 (N : Node_Id) return Boolean; -- Flag5
9311 function Body_Required
9312 (N : Node_Id) return Boolean; -- Flag13
9314 function Body_To_Inline
9315 (N : Node_Id) return Node_Id; -- Node3
9317 function Box_Present
9318 (N : Node_Id) return Boolean; -- Flag15
9320 function Char_Literal_Value
9321 (N : Node_Id) return Uint; -- Uint2
9323 function Chars
9324 (N : Node_Id) return Name_Id; -- Name1
9326 function Check_Address_Alignment
9327 (N : Node_Id) return Boolean; -- Flag11
9329 function Choice_Parameter
9330 (N : Node_Id) return Node_Id; -- Node2
9332 function Choices
9333 (N : Node_Id) return List_Id; -- List1
9335 function Class_Present
9336 (N : Node_Id) return Boolean; -- Flag6
9338 function Classifications
9339 (N : Node_Id) return Node_Id; -- Node3
9341 function Cleanup_Actions
9342 (N : Node_Id) return List_Id; -- List5
9344 function Comes_From_Extended_Return_Statement
9345 (N : Node_Id) return Boolean; -- Flag18
9347 function Compile_Time_Known_Aggregate
9348 (N : Node_Id) return Boolean; -- Flag18
9350 function Component_Associations
9351 (N : Node_Id) return List_Id; -- List2
9353 function Component_Clauses
9354 (N : Node_Id) return List_Id; -- List3
9356 function Component_Definition
9357 (N : Node_Id) return Node_Id; -- Node4
9359 function Component_Items
9360 (N : Node_Id) return List_Id; -- List3
9362 function Component_List
9363 (N : Node_Id) return Node_Id; -- Node1
9365 function Component_Name
9366 (N : Node_Id) return Node_Id; -- Node1
9368 function Componentwise_Assignment
9369 (N : Node_Id) return Boolean; -- Flag14
9371 function Condition
9372 (N : Node_Id) return Node_Id; -- Node1
9374 function Condition_Actions
9375 (N : Node_Id) return List_Id; -- List3
9377 function Config_Pragmas
9378 (N : Node_Id) return List_Id; -- List4
9380 function Constant_Present
9381 (N : Node_Id) return Boolean; -- Flag17
9383 function Constraint
9384 (N : Node_Id) return Node_Id; -- Node3
9386 function Constraints
9387 (N : Node_Id) return List_Id; -- List1
9389 function Context_Installed
9390 (N : Node_Id) return Boolean; -- Flag13
9392 function Context_Pending
9393 (N : Node_Id) return Boolean; -- Flag16
9395 function Context_Items
9396 (N : Node_Id) return List_Id; -- List1
9398 function Contract_Test_Cases
9399 (N : Node_Id) return Node_Id; -- Node2
9401 function Controlling_Argument
9402 (N : Node_Id) return Node_Id; -- Node1
9404 function Conversion_OK
9405 (N : Node_Id) return Boolean; -- Flag14
9407 function Convert_To_Return_False
9408 (N : Node_Id) return Boolean; -- Flag13
9410 function Corresponding_Aspect
9411 (N : Node_Id) return Node_Id; -- Node3
9413 function Corresponding_Body
9414 (N : Node_Id) return Node_Id; -- Node5
9416 function Corresponding_Formal_Spec
9417 (N : Node_Id) return Node_Id; -- Node3
9419 function Corresponding_Generic_Association
9420 (N : Node_Id) return Node_Id; -- Node5
9422 function Corresponding_Integer_Value
9423 (N : Node_Id) return Uint; -- Uint4
9425 function Corresponding_Spec
9426 (N : Node_Id) return Entity_Id; -- Node5
9428 function Corresponding_Spec_Of_Stub
9429 (N : Node_Id) return Node_Id; -- Node2
9431 function Corresponding_Stub
9432 (N : Node_Id) return Node_Id; -- Node3
9434 function Dcheck_Function
9435 (N : Node_Id) return Entity_Id; -- Node5
9437 function Declarations
9438 (N : Node_Id) return List_Id; -- List2
9440 function Default_Expression
9441 (N : Node_Id) return Node_Id; -- Node5
9443 function Default_Storage_Pool
9444 (N : Node_Id) return Node_Id; -- Node3
9446 function Default_Name
9447 (N : Node_Id) return Node_Id; -- Node2
9449 function Defining_Identifier
9450 (N : Node_Id) return Entity_Id; -- Node1
9452 function Defining_Unit_Name
9453 (N : Node_Id) return Node_Id; -- Node1
9455 function Delay_Alternative
9456 (N : Node_Id) return Node_Id; -- Node4
9458 function Delay_Statement
9459 (N : Node_Id) return Node_Id; -- Node2
9461 function Delta_Expression
9462 (N : Node_Id) return Node_Id; -- Node3
9464 function Digits_Expression
9465 (N : Node_Id) return Node_Id; -- Node2
9467 function Discr_Check_Funcs_Built
9468 (N : Node_Id) return Boolean; -- Flag11
9470 function Discrete_Choices
9471 (N : Node_Id) return List_Id; -- List4
9473 function Discrete_Range
9474 (N : Node_Id) return Node_Id; -- Node4
9476 function Discrete_Subtype_Definition
9477 (N : Node_Id) return Node_Id; -- Node4
9479 function Discrete_Subtype_Definitions
9480 (N : Node_Id) return List_Id; -- List2
9482 function Discriminant_Specifications
9483 (N : Node_Id) return List_Id; -- List4
9485 function Discriminant_Type
9486 (N : Node_Id) return Node_Id; -- Node5
9488 function Do_Accessibility_Check
9489 (N : Node_Id) return Boolean; -- Flag13
9491 function Do_Discriminant_Check
9492 (N : Node_Id) return Boolean; -- Flag3
9494 function Do_Division_Check
9495 (N : Node_Id) return Boolean; -- Flag13
9497 function Do_Length_Check
9498 (N : Node_Id) return Boolean; -- Flag4
9500 function Do_Overflow_Check
9501 (N : Node_Id) return Boolean; -- Flag17
9503 function Do_Range_Check
9504 (N : Node_Id) return Boolean; -- Flag9
9506 function Do_Storage_Check
9507 (N : Node_Id) return Boolean; -- Flag17
9509 function Do_Tag_Check
9510 (N : Node_Id) return Boolean; -- Flag13
9512 function Elaborate_All_Desirable
9513 (N : Node_Id) return Boolean; -- Flag9
9515 function Elaborate_All_Present
9516 (N : Node_Id) return Boolean; -- Flag14
9518 function Elaborate_Desirable
9519 (N : Node_Id) return Boolean; -- Flag11
9521 function Elaborate_Present
9522 (N : Node_Id) return Boolean; -- Flag4
9524 function Else_Actions
9525 (N : Node_Id) return List_Id; -- List3
9527 function Else_Statements
9528 (N : Node_Id) return List_Id; -- List4
9530 function Elsif_Parts
9531 (N : Node_Id) return List_Id; -- List3
9533 function Enclosing_Variant
9534 (N : Node_Id) return Node_Id; -- Node2
9536 function End_Label
9537 (N : Node_Id) return Node_Id; -- Node4
9539 function End_Span
9540 (N : Node_Id) return Uint; -- Uint5
9542 function Entity
9543 (N : Node_Id) return Node_Id; -- Node4
9545 function Entity_Or_Associated_Node
9546 (N : Node_Id) return Node_Id; -- Node4
9548 function Entry_Body_Formal_Part
9549 (N : Node_Id) return Node_Id; -- Node5
9551 function Entry_Call_Alternative
9552 (N : Node_Id) return Node_Id; -- Node1
9554 function Entry_Call_Statement
9555 (N : Node_Id) return Node_Id; -- Node1
9557 function Entry_Direct_Name
9558 (N : Node_Id) return Node_Id; -- Node1
9560 function Entry_Index
9561 (N : Node_Id) return Node_Id; -- Node5
9563 function Entry_Index_Specification
9564 (N : Node_Id) return Node_Id; -- Node4
9566 function Etype
9567 (N : Node_Id) return Node_Id; -- Node5
9569 function Exception_Choices
9570 (N : Node_Id) return List_Id; -- List4
9572 function Exception_Handlers
9573 (N : Node_Id) return List_Id; -- List5
9575 function Exception_Junk
9576 (N : Node_Id) return Boolean; -- Flag8
9578 function Exception_Label
9579 (N : Node_Id) return Node_Id; -- Node5
9581 function Explicit_Actual_Parameter
9582 (N : Node_Id) return Node_Id; -- Node3
9584 function Expansion_Delayed
9585 (N : Node_Id) return Boolean; -- Flag11
9587 function Explicit_Generic_Actual_Parameter
9588 (N : Node_Id) return Node_Id; -- Node1
9590 function Expression
9591 (N : Node_Id) return Node_Id; -- Node3
9593 function Expression_Copy
9594 (N : Node_Id) return Node_Id; -- Node2
9596 function Expressions
9597 (N : Node_Id) return List_Id; -- List1
9599 function First_Bit
9600 (N : Node_Id) return Node_Id; -- Node3
9602 function First_Inlined_Subprogram
9603 (N : Node_Id) return Entity_Id; -- Node3
9605 function First_Name
9606 (N : Node_Id) return Boolean; -- Flag5
9608 function First_Named_Actual
9609 (N : Node_Id) return Node_Id; -- Node4
9611 function First_Real_Statement
9612 (N : Node_Id) return Node_Id; -- Node2
9614 function First_Subtype_Link
9615 (N : Node_Id) return Entity_Id; -- Node5
9617 function Float_Truncate
9618 (N : Node_Id) return Boolean; -- Flag11
9620 function Formal_Type_Definition
9621 (N : Node_Id) return Node_Id; -- Node3
9623 function Forwards_OK
9624 (N : Node_Id) return Boolean; -- Flag5
9626 function From_Aspect_Specification
9627 (N : Node_Id) return Boolean; -- Flag13
9629 function From_At_End
9630 (N : Node_Id) return Boolean; -- Flag4
9632 function From_At_Mod
9633 (N : Node_Id) return Boolean; -- Flag4
9635 function From_Conditional_Expression
9636 (N : Node_Id) return Boolean; -- Flag1
9638 function From_Default
9639 (N : Node_Id) return Boolean; -- Flag6
9641 function Generalized_Indexing
9642 (N : Node_Id) return Node_Id; -- Node4
9644 function Generic_Associations
9645 (N : Node_Id) return List_Id; -- List3
9647 function Generic_Formal_Declarations
9648 (N : Node_Id) return List_Id; -- List2
9650 function Generic_Parent
9651 (N : Node_Id) return Node_Id; -- Node5
9653 function Generic_Parent_Type
9654 (N : Node_Id) return Node_Id; -- Node4
9656 function Handled_Statement_Sequence
9657 (N : Node_Id) return Node_Id; -- Node4
9659 function Handler_List_Entry
9660 (N : Node_Id) return Node_Id; -- Node2
9662 function Has_Created_Identifier
9663 (N : Node_Id) return Boolean; -- Flag15
9665 function Has_Dereference_Action
9666 (N : Node_Id) return Boolean; -- Flag13
9668 function Has_Dynamic_Length_Check
9669 (N : Node_Id) return Boolean; -- Flag10
9671 function Has_Dynamic_Range_Check
9672 (N : Node_Id) return Boolean; -- Flag12
9674 function Has_Init_Expression
9675 (N : Node_Id) return Boolean; -- Flag14
9677 function Has_Local_Raise
9678 (N : Node_Id) return Boolean; -- Flag8
9680 function Has_No_Elaboration_Code
9681 (N : Node_Id) return Boolean; -- Flag17
9683 function Has_Pragma_Suppress_All
9684 (N : Node_Id) return Boolean; -- Flag14
9686 function Has_Private_View
9687 (N : Node_Id) return Boolean; -- Flag11
9689 function Has_Relative_Deadline_Pragma
9690 (N : Node_Id) return Boolean; -- Flag9
9692 function Has_Self_Reference
9693 (N : Node_Id) return Boolean; -- Flag13
9695 function Has_SP_Choice
9696 (N : Node_Id) return Boolean; -- Flag15
9698 function Has_Storage_Size_Pragma
9699 (N : Node_Id) return Boolean; -- Flag5
9701 function Has_Target_Names
9702 (N : Node_Id) return Boolean; -- Flag8
9704 function Has_Wide_Character
9705 (N : Node_Id) return Boolean; -- Flag11
9707 function Has_Wide_Wide_Character
9708 (N : Node_Id) return Boolean; -- Flag13
9710 function Header_Size_Added
9711 (N : Node_Id) return Boolean; -- Flag11
9713 function Hidden_By_Use_Clause
9714 (N : Node_Id) return Elist_Id; -- Elist5
9716 function High_Bound
9717 (N : Node_Id) return Node_Id; -- Node2
9719 function Identifier
9720 (N : Node_Id) return Node_Id; -- Node1
9722 function Interface_List
9723 (N : Node_Id) return List_Id; -- List2
9725 function Interface_Present
9726 (N : Node_Id) return Boolean; -- Flag16
9728 function Implicit_With
9729 (N : Node_Id) return Boolean; -- Flag16
9731 function Import_Interface_Present
9732 (N : Node_Id) return Boolean; -- Flag16
9734 function In_Present
9735 (N : Node_Id) return Boolean; -- Flag15
9737 function Includes_Infinities
9738 (N : Node_Id) return Boolean; -- Flag11
9740 function Incomplete_View
9741 (N : Node_Id) return Node_Id; -- Node2
9743 function Inherited_Discriminant
9744 (N : Node_Id) return Boolean; -- Flag13
9746 function Instance_Spec
9747 (N : Node_Id) return Node_Id; -- Node5
9749 function Intval
9750 (N : Node_Id) return Uint; -- Uint3
9752 function Is_Abort_Block
9753 (N : Node_Id) return Boolean; -- Flag4
9755 function Is_Accessibility_Actual
9756 (N : Node_Id) return Boolean; -- Flag13
9758 function Is_Analyzed_Pragma
9759 (N : Node_Id) return Boolean; -- Flag5
9761 function Is_Asynchronous_Call_Block
9762 (N : Node_Id) return Boolean; -- Flag7
9764 function Is_Boolean_Aspect
9765 (N : Node_Id) return Boolean; -- Flag16
9767 function Is_Checked
9768 (N : Node_Id) return Boolean; -- Flag11
9770 function Is_Checked_Ghost_Pragma
9771 (N : Node_Id) return Boolean; -- Flag3
9773 function Is_Component_Left_Opnd
9774 (N : Node_Id) return Boolean; -- Flag13
9776 function Is_Component_Right_Opnd
9777 (N : Node_Id) return Boolean; -- Flag14
9779 function Is_Controlling_Actual
9780 (N : Node_Id) return Boolean; -- Flag16
9782 function Is_Declaration_Level_Node
9783 (N : Node_Id) return Boolean; -- Flag5
9785 function Is_Delayed_Aspect
9786 (N : Node_Id) return Boolean; -- Flag14
9788 function Is_Disabled
9789 (N : Node_Id) return Boolean; -- Flag15
9791 function Is_Dispatching_Call
9792 (N : Node_Id) return Boolean; -- Flag6
9794 function Is_Dynamic_Coextension
9795 (N : Node_Id) return Boolean; -- Flag18
9797 function Is_Effective_Use_Clause
9798 (N : Node_Id) return Boolean; -- Flag1
9800 function Is_Elaboration_Checks_OK_Node
9801 (N : Node_Id) return Boolean; -- Flag1
9803 function Is_Elaboration_Code
9804 (N : Node_Id) return Boolean; -- Flag9
9806 function Is_Elaboration_Warnings_OK_Node
9807 (N : Node_Id) return Boolean; -- Flag3
9809 function Is_Elsif
9810 (N : Node_Id) return Boolean; -- Flag13
9812 function Is_Entry_Barrier_Function
9813 (N : Node_Id) return Boolean; -- Flag8
9815 function Is_Expanded_Build_In_Place_Call
9816 (N : Node_Id) return Boolean; -- Flag11
9818 function Is_Expanded_Contract
9819 (N : Node_Id) return Boolean; -- Flag1
9821 function Is_Finalization_Wrapper
9822 (N : Node_Id) return Boolean; -- Flag9
9824 function Is_Folded_In_Parser
9825 (N : Node_Id) return Boolean; -- Flag4
9827 function Is_Generic_Contract_Pragma
9828 (N : Node_Id) return Boolean; -- Flag2
9830 function Is_Ignored
9831 (N : Node_Id) return Boolean; -- Flag9
9833 function Is_Ignored_Ghost_Pragma
9834 (N : Node_Id) return Boolean; -- Flag8
9836 function Is_In_Discriminant_Check
9837 (N : Node_Id) return Boolean; -- Flag11
9839 function Is_Inherited_Pragma
9840 (N : Node_Id) return Boolean; -- Flag4
9842 function Is_Initialization_Block
9843 (N : Node_Id) return Boolean; -- Flag1
9845 function Is_Known_Guaranteed_ABE
9846 (N : Node_Id) return Boolean; -- Flag18
9848 function Is_Machine_Number
9849 (N : Node_Id) return Boolean; -- Flag11
9851 function Is_Null_Loop
9852 (N : Node_Id) return Boolean; -- Flag16
9854 function Is_Overloaded
9855 (N : Node_Id) return Boolean; -- Flag5
9857 function Is_Power_Of_2_For_Shift
9858 (N : Node_Id) return Boolean; -- Flag13
9860 function Is_Prefixed_Call
9861 (N : Node_Id) return Boolean; -- Flag17
9863 function Is_Protected_Subprogram_Body
9864 (N : Node_Id) return Boolean; -- Flag7
9866 function Is_Qualified_Universal_Literal
9867 (N : Node_Id) return Boolean; -- Flag4
9869 function Is_Read
9870 (N : Node_Id) return Boolean; -- Flag1
9872 function Is_Source_Call
9873 (N : Node_Id) return Boolean; -- Flag4
9875 function Is_SPARK_Mode_On_Node
9876 (N : Node_Id) return Boolean; -- Flag2
9878 function Is_Static_Coextension
9879 (N : Node_Id) return Boolean; -- Flag14
9881 function Is_Static_Expression
9882 (N : Node_Id) return Boolean; -- Flag6
9884 function Is_Subprogram_Descriptor
9885 (N : Node_Id) return Boolean; -- Flag16
9887 function Is_Task_Allocation_Block
9888 (N : Node_Id) return Boolean; -- Flag6
9890 function Is_Task_Body_Procedure
9891 (N : Node_Id) return Boolean; -- Flag1
9893 function Is_Task_Master
9894 (N : Node_Id) return Boolean; -- Flag5
9896 function Is_Write
9897 (N : Node_Id) return Boolean; -- Flag2
9899 function Iteration_Scheme
9900 (N : Node_Id) return Node_Id; -- Node2
9902 function Iterator_Specification
9903 (N : Node_Id) return Node_Id; -- Node2
9905 function Itype
9906 (N : Node_Id) return Entity_Id; -- Node1
9908 function Kill_Range_Check
9909 (N : Node_Id) return Boolean; -- Flag11
9911 function Label_Construct
9912 (N : Node_Id) return Node_Id; -- Node2
9914 function Left_Opnd
9915 (N : Node_Id) return Node_Id; -- Node2
9917 function Last_Bit
9918 (N : Node_Id) return Node_Id; -- Node4
9920 function Last_Name
9921 (N : Node_Id) return Boolean; -- Flag6
9923 function Library_Unit
9924 (N : Node_Id) return Node_Id; -- Node4
9926 function Limited_View_Installed
9927 (N : Node_Id) return Boolean; -- Flag18
9929 function Limited_Present
9930 (N : Node_Id) return Boolean; -- Flag17
9932 function Literals
9933 (N : Node_Id) return List_Id; -- List1
9935 function Local_Raise_Not_OK
9936 (N : Node_Id) return Boolean; -- Flag7
9938 function Local_Raise_Statements
9939 (N : Node_Id) return Elist_Id; -- Elist1
9941 function Loop_Actions
9942 (N : Node_Id) return List_Id; -- List2
9944 function Loop_Parameter_Specification
9945 (N : Node_Id) return Node_Id; -- Node4
9947 function Low_Bound
9948 (N : Node_Id) return Node_Id; -- Node1
9950 function Mod_Clause
9951 (N : Node_Id) return Node_Id; -- Node2
9953 function More_Ids
9954 (N : Node_Id) return Boolean; -- Flag5
9956 function Must_Be_Byte_Aligned
9957 (N : Node_Id) return Boolean; -- Flag14
9959 function Must_Not_Freeze
9960 (N : Node_Id) return Boolean; -- Flag8
9962 function Must_Not_Override
9963 (N : Node_Id) return Boolean; -- Flag15
9965 function Must_Override
9966 (N : Node_Id) return Boolean; -- Flag14
9968 function Name
9969 (N : Node_Id) return Node_Id; -- Node2
9971 function Names
9972 (N : Node_Id) return List_Id; -- List2
9974 function Next_Entity
9975 (N : Node_Id) return Node_Id; -- Node2
9977 function Next_Exit_Statement
9978 (N : Node_Id) return Node_Id; -- Node3
9980 function Next_Implicit_With
9981 (N : Node_Id) return Node_Id; -- Node3
9983 function Next_Named_Actual
9984 (N : Node_Id) return Node_Id; -- Node4
9986 function Next_Pragma
9987 (N : Node_Id) return Node_Id; -- Node1
9989 function Next_Rep_Item
9990 (N : Node_Id) return Node_Id; -- Node5
9992 function Next_Use_Clause
9993 (N : Node_Id) return Node_Id; -- Node3
9995 function No_Ctrl_Actions
9996 (N : Node_Id) return Boolean; -- Flag7
9998 function No_Elaboration_Check
9999 (N : Node_Id) return Boolean; -- Flag4
10001 function No_Entities_Ref_In_Spec
10002 (N : Node_Id) return Boolean; -- Flag8
10004 function No_Initialization
10005 (N : Node_Id) return Boolean; -- Flag13
10007 function No_Minimize_Eliminate
10008 (N : Node_Id) return Boolean; -- Flag17
10010 function No_Side_Effect_Removal
10011 (N : Node_Id) return Boolean; -- Flag17
10013 function No_Truncation
10014 (N : Node_Id) return Boolean; -- Flag17
10016 function Null_Excluding_Subtype
10017 (N : Node_Id) return Boolean; -- Flag16
10019 function Null_Exclusion_Present
10020 (N : Node_Id) return Boolean; -- Flag11
10022 function Null_Exclusion_In_Return_Present
10023 (N : Node_Id) return Boolean; -- Flag14
10025 function Null_Present
10026 (N : Node_Id) return Boolean; -- Flag13
10028 function Null_Record_Present
10029 (N : Node_Id) return Boolean; -- Flag17
10031 function Null_Statement
10032 (N : Node_Id) return Node_Id; -- Node2
10034 function Object_Definition
10035 (N : Node_Id) return Node_Id; -- Node4
10037 function Of_Present
10038 (N : Node_Id) return Boolean; -- Flag16
10040 function Original_Discriminant
10041 (N : Node_Id) return Node_Id; -- Node2
10043 function Original_Entity
10044 (N : Node_Id) return Entity_Id; -- Node2
10046 function Others_Discrete_Choices
10047 (N : Node_Id) return List_Id; -- List1
10049 function Out_Present
10050 (N : Node_Id) return Boolean; -- Flag17
10052 function Parameter_Associations
10053 (N : Node_Id) return List_Id; -- List3
10055 function Parameter_Specifications
10056 (N : Node_Id) return List_Id; -- List3
10058 function Parameter_Type
10059 (N : Node_Id) return Node_Id; -- Node2
10061 function Parent_Spec
10062 (N : Node_Id) return Node_Id; -- Node4
10064 function Parent_With
10065 (N : Node_Id) return Boolean; -- Flag1
10067 function Position
10068 (N : Node_Id) return Node_Id; -- Node2
10070 function Pragma_Argument_Associations
10071 (N : Node_Id) return List_Id; -- List2
10073 function Pragma_Identifier
10074 (N : Node_Id) return Node_Id; -- Node4
10076 function Pragmas_After
10077 (N : Node_Id) return List_Id; -- List5
10079 function Pragmas_Before
10080 (N : Node_Id) return List_Id; -- List4
10082 function Pre_Post_Conditions
10083 (N : Node_Id) return Node_Id; -- Node1
10085 function Prefix
10086 (N : Node_Id) return Node_Id; -- Node3
10088 function Premature_Use
10089 (N : Node_Id) return Node_Id; -- Node5
10091 function Present_Expr
10092 (N : Node_Id) return Uint; -- Uint3
10094 function Prev_Ids
10095 (N : Node_Id) return Boolean; -- Flag6
10097 function Prev_Use_Clause
10098 (N : Node_Id) return Node_Id; -- Node1
10100 function Print_In_Hex
10101 (N : Node_Id) return Boolean; -- Flag13
10103 function Private_Declarations
10104 (N : Node_Id) return List_Id; -- List3
10106 function Private_Present
10107 (N : Node_Id) return Boolean; -- Flag15
10109 function Procedure_To_Call
10110 (N : Node_Id) return Node_Id; -- Node2
10112 function Proper_Body
10113 (N : Node_Id) return Node_Id; -- Node1
10115 function Protected_Definition
10116 (N : Node_Id) return Node_Id; -- Node3
10118 function Protected_Present
10119 (N : Node_Id) return Boolean; -- Flag6
10121 function Raises_Constraint_Error
10122 (N : Node_Id) return Boolean; -- Flag7
10124 function Range_Constraint
10125 (N : Node_Id) return Node_Id; -- Node4
10127 function Range_Expression
10128 (N : Node_Id) return Node_Id; -- Node4
10130 function Real_Range_Specification
10131 (N : Node_Id) return Node_Id; -- Node4
10133 function Realval
10134 (N : Node_Id) return Ureal; -- Ureal3
10136 function Reason
10137 (N : Node_Id) return Uint; -- Uint3
10139 function Record_Extension_Part
10140 (N : Node_Id) return Node_Id; -- Node3
10142 function Redundant_Use
10143 (N : Node_Id) return Boolean; -- Flag13
10145 function Renaming_Exception
10146 (N : Node_Id) return Node_Id; -- Node2
10148 function Result_Definition
10149 (N : Node_Id) return Node_Id; -- Node4
10151 function Return_Object_Declarations
10152 (N : Node_Id) return List_Id; -- List3
10154 function Return_Statement_Entity
10155 (N : Node_Id) return Node_Id; -- Node5
10157 function Reverse_Present
10158 (N : Node_Id) return Boolean; -- Flag15
10160 function Right_Opnd
10161 (N : Node_Id) return Node_Id; -- Node3
10163 function Rounded_Result
10164 (N : Node_Id) return Boolean; -- Flag18
10166 function SCIL_Controlling_Tag
10167 (N : Node_Id) return Node_Id; -- Node5
10169 function SCIL_Entity
10170 (N : Node_Id) return Node_Id; -- Node4
10172 function SCIL_Tag_Value
10173 (N : Node_Id) return Node_Id; -- Node5
10175 function SCIL_Target_Prim
10176 (N : Node_Id) return Node_Id; -- Node2
10178 function Scope
10179 (N : Node_Id) return Node_Id; -- Node3
10181 function Select_Alternatives
10182 (N : Node_Id) return List_Id; -- List1
10184 function Selector_Name
10185 (N : Node_Id) return Node_Id; -- Node2
10187 function Selector_Names
10188 (N : Node_Id) return List_Id; -- List1
10190 function Shift_Count_OK
10191 (N : Node_Id) return Boolean; -- Flag4
10193 function Source_Type
10194 (N : Node_Id) return Entity_Id; -- Node1
10196 function Specification
10197 (N : Node_Id) return Node_Id; -- Node1
10199 function Split_PPC
10200 (N : Node_Id) return Boolean; -- Flag17
10202 function Statements
10203 (N : Node_Id) return List_Id; -- List3
10205 function Storage_Pool
10206 (N : Node_Id) return Node_Id; -- Node1
10208 function Subpool_Handle_Name
10209 (N : Node_Id) return Node_Id; -- Node4
10211 function Strval
10212 (N : Node_Id) return String_Id; -- Str3
10214 function Subtype_Indication
10215 (N : Node_Id) return Node_Id; -- Node5
10217 function Subtype_Mark
10218 (N : Node_Id) return Node_Id; -- Node4
10220 function Subtype_Marks
10221 (N : Node_Id) return List_Id; -- List2
10223 function Suppress_Assignment_Checks
10224 (N : Node_Id) return Boolean; -- Flag18
10226 function Suppress_Loop_Warnings
10227 (N : Node_Id) return Boolean; -- Flag17
10229 function Synchronized_Present
10230 (N : Node_Id) return Boolean; -- Flag7
10232 function Tagged_Present
10233 (N : Node_Id) return Boolean; -- Flag15
10235 function Target
10236 (N : Node_Id) return Entity_Id; -- Node1
10238 function Target_Type
10239 (N : Node_Id) return Entity_Id; -- Node2
10241 function Task_Definition
10242 (N : Node_Id) return Node_Id; -- Node3
10244 function Task_Present
10245 (N : Node_Id) return Boolean; -- Flag5
10247 function Then_Actions
10248 (N : Node_Id) return List_Id; -- List2
10250 function Then_Statements
10251 (N : Node_Id) return List_Id; -- List2
10253 function Treat_Fixed_As_Integer
10254 (N : Node_Id) return Boolean; -- Flag14
10256 function Triggering_Alternative
10257 (N : Node_Id) return Node_Id; -- Node1
10259 function Triggering_Statement
10260 (N : Node_Id) return Node_Id; -- Node1
10262 function TSS_Elist
10263 (N : Node_Id) return Elist_Id; -- Elist3
10265 function Type_Definition
10266 (N : Node_Id) return Node_Id; -- Node3
10268 function Uneval_Old_Accept
10269 (N : Node_Id) return Boolean; -- Flag7
10271 function Uneval_Old_Warn
10272 (N : Node_Id) return Boolean; -- Flag18
10274 function Unit
10275 (N : Node_Id) return Node_Id; -- Node2
10277 function Unknown_Discriminants_Present
10278 (N : Node_Id) return Boolean; -- Flag13
10280 function Unreferenced_In_Spec
10281 (N : Node_Id) return Boolean; -- Flag7
10283 function Variant_Part
10284 (N : Node_Id) return Node_Id; -- Node4
10286 function Variants
10287 (N : Node_Id) return List_Id; -- List1
10289 function Visible_Declarations
10290 (N : Node_Id) return List_Id; -- List2
10292 function Uninitialized_Variable
10293 (N : Node_Id) return Node_Id; -- Node3
10295 function Used_Operations
10296 (N : Node_Id) return Elist_Id; -- Elist2
10298 function Was_Attribute_Reference
10299 (N : Node_Id) return Boolean; -- Flag2
10301 function Was_Expression_Function
10302 (N : Node_Id) return Boolean; -- Flag18
10304 function Was_Originally_Stub
10305 (N : Node_Id) return Boolean; -- Flag13
10307 function Withed_Body
10308 (N : Node_Id) return Node_Id; -- Node1
10310 -- End functions (note used by xsinfo utility program to end processing)
10312 ----------------------------
10313 -- Node Update Procedures --
10314 ----------------------------
10316 -- These are the corresponding node update routines, which again provide
10317 -- a high level logical access with type checking. In addition to setting
10318 -- the indicated field of the node N to the given Val, in the case of
10319 -- tree pointers (List1-4), the parent pointer of the Val node is set to
10320 -- point back to node N. This automates the setting of the parent pointer.
10322 procedure Set_Abort_Present
10323 (N : Node_Id; Val : Boolean := True); -- Flag15
10325 procedure Set_Abortable_Part
10326 (N : Node_Id; Val : Node_Id); -- Node2
10328 procedure Set_Abstract_Present
10329 (N : Node_Id; Val : Boolean := True); -- Flag4
10331 procedure Set_Accept_Handler_Records
10332 (N : Node_Id; Val : List_Id); -- List5
10334 procedure Set_Accept_Statement
10335 (N : Node_Id; Val : Node_Id); -- Node2
10337 procedure Set_Access_Definition
10338 (N : Node_Id; Val : Node_Id); -- Node3
10340 procedure Set_Access_To_Subprogram_Definition
10341 (N : Node_Id; Val : Node_Id); -- Node3
10343 procedure Set_Access_Types_To_Process
10344 (N : Node_Id; Val : Elist_Id); -- Elist2
10346 procedure Set_Actions
10347 (N : Node_Id; Val : List_Id); -- List1
10349 procedure Set_Activation_Chain_Entity
10350 (N : Node_Id; Val : Node_Id); -- Node3
10352 procedure Set_Acts_As_Spec
10353 (N : Node_Id; Val : Boolean := True); -- Flag4
10355 procedure Set_Actual_Designated_Subtype
10356 (N : Node_Id; Val : Node_Id); -- Node4
10358 procedure Set_Address_Warning_Posted
10359 (N : Node_Id; Val : Boolean := True); -- Flag18
10361 procedure Set_Aggregate_Bounds
10362 (N : Node_Id; Val : Node_Id); -- Node3
10364 procedure Set_Aliased_Present
10365 (N : Node_Id; Val : Boolean := True); -- Flag4
10367 procedure Set_Alloc_For_BIP_Return
10368 (N : Node_Id; Val : Boolean := True); -- Flag1
10370 procedure Set_All_Others
10371 (N : Node_Id; Val : Boolean := True); -- Flag11
10373 procedure Set_All_Present
10374 (N : Node_Id; Val : Boolean := True); -- Flag15
10376 procedure Set_Alternatives
10377 (N : Node_Id; Val : List_Id); -- List4
10379 procedure Set_Ancestor_Part
10380 (N : Node_Id; Val : Node_Id); -- Node3
10382 procedure Set_Atomic_Sync_Required
10383 (N : Node_Id; Val : Boolean := True); -- Flag14
10385 procedure Set_Array_Aggregate
10386 (N : Node_Id; Val : Node_Id); -- Node3
10388 procedure Set_Aspect_Rep_Item
10389 (N : Node_Id; Val : Node_Id); -- Node2
10391 procedure Set_Assignment_OK
10392 (N : Node_Id; Val : Boolean := True); -- Flag15
10394 procedure Set_Associated_Node
10395 (N : Node_Id; Val : Node_Id); -- Node4
10397 procedure Set_Attribute_Name
10398 (N : Node_Id; Val : Name_Id); -- Name2
10400 procedure Set_At_End_Proc
10401 (N : Node_Id; Val : Node_Id); -- Node1
10403 procedure Set_Aux_Decls_Node
10404 (N : Node_Id; Val : Node_Id); -- Node5
10406 procedure Set_Backwards_OK
10407 (N : Node_Id; Val : Boolean := True); -- Flag6
10409 procedure Set_Bad_Is_Detected
10410 (N : Node_Id; Val : Boolean := True); -- Flag15
10412 procedure Set_Body_Required
10413 (N : Node_Id; Val : Boolean := True); -- Flag13
10415 procedure Set_Body_To_Inline
10416 (N : Node_Id; Val : Node_Id); -- Node3
10418 procedure Set_Box_Present
10419 (N : Node_Id; Val : Boolean := True); -- Flag15
10421 procedure Set_By_Ref
10422 (N : Node_Id; Val : Boolean := True); -- Flag5
10424 procedure Set_Char_Literal_Value
10425 (N : Node_Id; Val : Uint); -- Uint2
10427 procedure Set_Chars
10428 (N : Node_Id; Val : Name_Id); -- Name1
10430 procedure Set_Check_Address_Alignment
10431 (N : Node_Id; Val : Boolean := True); -- Flag11
10433 procedure Set_Choice_Parameter
10434 (N : Node_Id; Val : Node_Id); -- Node2
10436 procedure Set_Choices
10437 (N : Node_Id; Val : List_Id); -- List1
10439 procedure Set_Class_Present
10440 (N : Node_Id; Val : Boolean := True); -- Flag6
10442 procedure Set_Classifications
10443 (N : Node_Id; Val : Node_Id); -- Node3
10445 procedure Set_Cleanup_Actions
10446 (N : Node_Id; Val : List_Id); -- List5
10448 procedure Set_Comes_From_Extended_Return_Statement
10449 (N : Node_Id; Val : Boolean := True); -- Flag18
10451 procedure Set_Compile_Time_Known_Aggregate
10452 (N : Node_Id; Val : Boolean := True); -- Flag18
10454 procedure Set_Component_Associations
10455 (N : Node_Id; Val : List_Id); -- List2
10457 procedure Set_Component_Clauses
10458 (N : Node_Id; Val : List_Id); -- List3
10460 procedure Set_Component_Definition
10461 (N : Node_Id; Val : Node_Id); -- Node4
10463 procedure Set_Component_Items
10464 (N : Node_Id; Val : List_Id); -- List3
10466 procedure Set_Component_List
10467 (N : Node_Id; Val : Node_Id); -- Node1
10469 procedure Set_Component_Name
10470 (N : Node_Id; Val : Node_Id); -- Node1
10472 procedure Set_Componentwise_Assignment
10473 (N : Node_Id; Val : Boolean := True); -- Flag14
10475 procedure Set_Condition
10476 (N : Node_Id; Val : Node_Id); -- Node1
10478 procedure Set_Condition_Actions
10479 (N : Node_Id; Val : List_Id); -- List3
10481 procedure Set_Config_Pragmas
10482 (N : Node_Id; Val : List_Id); -- List4
10484 procedure Set_Constant_Present
10485 (N : Node_Id; Val : Boolean := True); -- Flag17
10487 procedure Set_Constraint
10488 (N : Node_Id; Val : Node_Id); -- Node3
10490 procedure Set_Constraints
10491 (N : Node_Id; Val : List_Id); -- List1
10493 procedure Set_Context_Installed
10494 (N : Node_Id; Val : Boolean := True); -- Flag13
10496 procedure Set_Context_Items
10497 (N : Node_Id; Val : List_Id); -- List1
10499 procedure Set_Context_Pending
10500 (N : Node_Id; Val : Boolean := True); -- Flag16
10502 procedure Set_Contract_Test_Cases
10503 (N : Node_Id; Val : Node_Id); -- Node2
10505 procedure Set_Controlling_Argument
10506 (N : Node_Id; Val : Node_Id); -- Node1
10508 procedure Set_Conversion_OK
10509 (N : Node_Id; Val : Boolean := True); -- Flag14
10511 procedure Set_Convert_To_Return_False
10512 (N : Node_Id; Val : Boolean := True); -- Flag13
10514 procedure Set_Corresponding_Aspect
10515 (N : Node_Id; Val : Node_Id); -- Node3
10517 procedure Set_Corresponding_Body
10518 (N : Node_Id; Val : Node_Id); -- Node5
10520 procedure Set_Corresponding_Formal_Spec
10521 (N : Node_Id; Val : Node_Id); -- Node3
10523 procedure Set_Corresponding_Generic_Association
10524 (N : Node_Id; Val : Node_Id); -- Node5
10526 procedure Set_Corresponding_Integer_Value
10527 (N : Node_Id; Val : Uint); -- Uint4
10529 procedure Set_Corresponding_Spec
10530 (N : Node_Id; Val : Entity_Id); -- Node5
10532 procedure Set_Corresponding_Spec_Of_Stub
10533 (N : Node_Id; Val : Node_Id); -- Node2
10535 procedure Set_Corresponding_Stub
10536 (N : Node_Id; Val : Node_Id); -- Node3
10538 procedure Set_Dcheck_Function
10539 (N : Node_Id; Val : Entity_Id); -- Node5
10541 procedure Set_Declarations
10542 (N : Node_Id; Val : List_Id); -- List2
10544 procedure Set_Default_Expression
10545 (N : Node_Id; Val : Node_Id); -- Node5
10547 procedure Set_Default_Storage_Pool
10548 (N : Node_Id; Val : Node_Id); -- Node3
10550 procedure Set_Default_Name
10551 (N : Node_Id; Val : Node_Id); -- Node2
10553 procedure Set_Defining_Identifier
10554 (N : Node_Id; Val : Entity_Id); -- Node1
10556 procedure Set_Defining_Unit_Name
10557 (N : Node_Id; Val : Node_Id); -- Node1
10559 procedure Set_Delay_Alternative
10560 (N : Node_Id; Val : Node_Id); -- Node4
10562 procedure Set_Delay_Statement
10563 (N : Node_Id; Val : Node_Id); -- Node2
10565 procedure Set_Delta_Expression
10566 (N : Node_Id; Val : Node_Id); -- Node3
10568 procedure Set_Digits_Expression
10569 (N : Node_Id; Val : Node_Id); -- Node2
10571 procedure Set_Discr_Check_Funcs_Built
10572 (N : Node_Id; Val : Boolean := True); -- Flag11
10574 procedure Set_Discrete_Choices
10575 (N : Node_Id; Val : List_Id); -- List4
10577 procedure Set_Discrete_Range
10578 (N : Node_Id; Val : Node_Id); -- Node4
10580 procedure Set_Discrete_Subtype_Definition
10581 (N : Node_Id; Val : Node_Id); -- Node4
10583 procedure Set_Discrete_Subtype_Definitions
10584 (N : Node_Id; Val : List_Id); -- List2
10586 procedure Set_Discriminant_Specifications
10587 (N : Node_Id; Val : List_Id); -- List4
10589 procedure Set_Discriminant_Type
10590 (N : Node_Id; Val : Node_Id); -- Node5
10592 procedure Set_Do_Accessibility_Check
10593 (N : Node_Id; Val : Boolean := True); -- Flag13
10595 procedure Set_Do_Discriminant_Check
10596 (N : Node_Id; Val : Boolean := True); -- Flag3
10598 procedure Set_Do_Division_Check
10599 (N : Node_Id; Val : Boolean := True); -- Flag13
10601 procedure Set_Do_Length_Check
10602 (N : Node_Id; Val : Boolean := True); -- Flag4
10604 procedure Set_Do_Overflow_Check
10605 (N : Node_Id; Val : Boolean := True); -- Flag17
10607 procedure Set_Do_Range_Check
10608 (N : Node_Id; Val : Boolean := True); -- Flag9
10610 procedure Set_Do_Storage_Check
10611 (N : Node_Id; Val : Boolean := True); -- Flag17
10613 procedure Set_Do_Tag_Check
10614 (N : Node_Id; Val : Boolean := True); -- Flag13
10616 procedure Set_Elaborate_All_Desirable
10617 (N : Node_Id; Val : Boolean := True); -- Flag9
10619 procedure Set_Elaborate_All_Present
10620 (N : Node_Id; Val : Boolean := True); -- Flag14
10622 procedure Set_Elaborate_Desirable
10623 (N : Node_Id; Val : Boolean := True); -- Flag11
10625 procedure Set_Elaborate_Present
10626 (N : Node_Id; Val : Boolean := True); -- Flag4
10628 procedure Set_Else_Actions
10629 (N : Node_Id; Val : List_Id); -- List3
10631 procedure Set_Else_Statements
10632 (N : Node_Id; Val : List_Id); -- List4
10634 procedure Set_Elsif_Parts
10635 (N : Node_Id; Val : List_Id); -- List3
10637 procedure Set_Enclosing_Variant
10638 (N : Node_Id; Val : Node_Id); -- Node2
10640 procedure Set_End_Label
10641 (N : Node_Id; Val : Node_Id); -- Node4
10643 procedure Set_End_Span
10644 (N : Node_Id; Val : Uint); -- Uint5
10646 procedure Set_Entity
10647 (N : Node_Id; Val : Node_Id); -- Node4
10649 procedure Set_Entry_Body_Formal_Part
10650 (N : Node_Id; Val : Node_Id); -- Node5
10652 procedure Set_Entry_Call_Alternative
10653 (N : Node_Id; Val : Node_Id); -- Node1
10655 procedure Set_Entry_Call_Statement
10656 (N : Node_Id; Val : Node_Id); -- Node1
10658 procedure Set_Entry_Direct_Name
10659 (N : Node_Id; Val : Node_Id); -- Node1
10661 procedure Set_Entry_Index
10662 (N : Node_Id; Val : Node_Id); -- Node5
10664 procedure Set_Entry_Index_Specification
10665 (N : Node_Id; Val : Node_Id); -- Node4
10667 procedure Set_Etype
10668 (N : Node_Id; Val : Node_Id); -- Node5
10670 procedure Set_Exception_Choices
10671 (N : Node_Id; Val : List_Id); -- List4
10673 procedure Set_Exception_Handlers
10674 (N : Node_Id; Val : List_Id); -- List5
10676 procedure Set_Exception_Junk
10677 (N : Node_Id; Val : Boolean := True); -- Flag8
10679 procedure Set_Exception_Label
10680 (N : Node_Id; Val : Node_Id); -- Node5
10682 procedure Set_Expansion_Delayed
10683 (N : Node_Id; Val : Boolean := True); -- Flag11
10685 procedure Set_Explicit_Actual_Parameter
10686 (N : Node_Id; Val : Node_Id); -- Node3
10688 procedure Set_Explicit_Generic_Actual_Parameter
10689 (N : Node_Id; Val : Node_Id); -- Node1
10691 procedure Set_Expression
10692 (N : Node_Id; Val : Node_Id); -- Node3
10694 procedure Set_Expression_Copy
10695 (N : Node_Id; Val : Node_Id); -- Node2
10697 procedure Set_Expressions
10698 (N : Node_Id; Val : List_Id); -- List1
10700 procedure Set_First_Bit
10701 (N : Node_Id; Val : Node_Id); -- Node3
10703 procedure Set_First_Inlined_Subprogram
10704 (N : Node_Id; Val : Entity_Id); -- Node3
10706 procedure Set_First_Name
10707 (N : Node_Id; Val : Boolean := True); -- Flag5
10709 procedure Set_First_Named_Actual
10710 (N : Node_Id; Val : Node_Id); -- Node4
10712 procedure Set_First_Real_Statement
10713 (N : Node_Id; Val : Node_Id); -- Node2
10715 procedure Set_First_Subtype_Link
10716 (N : Node_Id; Val : Entity_Id); -- Node5
10718 procedure Set_Float_Truncate
10719 (N : Node_Id; Val : Boolean := True); -- Flag11
10721 procedure Set_Formal_Type_Definition
10722 (N : Node_Id; Val : Node_Id); -- Node3
10724 procedure Set_Forwards_OK
10725 (N : Node_Id; Val : Boolean := True); -- Flag5
10727 procedure Set_From_Aspect_Specification
10728 (N : Node_Id; Val : Boolean := True); -- Flag13
10730 procedure Set_From_At_End
10731 (N : Node_Id; Val : Boolean := True); -- Flag4
10733 procedure Set_From_At_Mod
10734 (N : Node_Id; Val : Boolean := True); -- Flag4
10736 procedure Set_From_Conditional_Expression
10737 (N : Node_Id; Val : Boolean := True); -- Flag1
10739 procedure Set_From_Default
10740 (N : Node_Id; Val : Boolean := True); -- Flag6
10742 procedure Set_Generalized_Indexing
10743 (N : Node_Id; Val : Node_Id); -- Node4
10745 procedure Set_Generic_Associations
10746 (N : Node_Id; Val : List_Id); -- List3
10748 procedure Set_Generic_Formal_Declarations
10749 (N : Node_Id; Val : List_Id); -- List2
10751 procedure Set_Generic_Parent
10752 (N : Node_Id; Val : Node_Id); -- Node5
10754 procedure Set_Generic_Parent_Type
10755 (N : Node_Id; Val : Node_Id); -- Node4
10757 procedure Set_Handled_Statement_Sequence
10758 (N : Node_Id; Val : Node_Id); -- Node4
10760 procedure Set_Handler_List_Entry
10761 (N : Node_Id; Val : Node_Id); -- Node2
10763 procedure Set_Has_Created_Identifier
10764 (N : Node_Id; Val : Boolean := True); -- Flag15
10766 procedure Set_Has_Dereference_Action
10767 (N : Node_Id; Val : Boolean := True); -- Flag13
10769 procedure Set_Has_Dynamic_Length_Check
10770 (N : Node_Id; Val : Boolean := True); -- Flag10
10772 procedure Set_Has_Dynamic_Range_Check
10773 (N : Node_Id; Val : Boolean := True); -- Flag12
10775 procedure Set_Has_Init_Expression
10776 (N : Node_Id; Val : Boolean := True); -- Flag14
10778 procedure Set_Has_Local_Raise
10779 (N : Node_Id; Val : Boolean := True); -- Flag8
10781 procedure Set_Has_No_Elaboration_Code
10782 (N : Node_Id; Val : Boolean := True); -- Flag17
10784 procedure Set_Has_Pragma_Suppress_All
10785 (N : Node_Id; Val : Boolean := True); -- Flag14
10787 procedure Set_Has_Private_View
10788 (N : Node_Id; Val : Boolean := True); -- Flag11
10790 procedure Set_Has_Relative_Deadline_Pragma
10791 (N : Node_Id; Val : Boolean := True); -- Flag9
10793 procedure Set_Has_Self_Reference
10794 (N : Node_Id; Val : Boolean := True); -- Flag13
10796 procedure Set_Has_SP_Choice
10797 (N : Node_Id; Val : Boolean := True); -- Flag15
10799 procedure Set_Has_Storage_Size_Pragma
10800 (N : Node_Id; Val : Boolean := True); -- Flag5
10802 procedure Set_Has_Target_Names
10803 (N : Node_Id; Val : Boolean := True); -- Flag8
10805 procedure Set_Has_Wide_Character
10806 (N : Node_Id; Val : Boolean := True); -- Flag11
10808 procedure Set_Has_Wide_Wide_Character
10809 (N : Node_Id; Val : Boolean := True); -- Flag13
10811 procedure Set_Header_Size_Added
10812 (N : Node_Id; Val : Boolean := True); -- Flag11
10814 procedure Set_Hidden_By_Use_Clause
10815 (N : Node_Id; Val : Elist_Id); -- Elist5
10817 procedure Set_High_Bound
10818 (N : Node_Id; Val : Node_Id); -- Node2
10820 procedure Set_Identifier
10821 (N : Node_Id; Val : Node_Id); -- Node1
10823 procedure Set_Interface_List
10824 (N : Node_Id; Val : List_Id); -- List2
10826 procedure Set_Interface_Present
10827 (N : Node_Id; Val : Boolean := True); -- Flag16
10829 procedure Set_Implicit_With
10830 (N : Node_Id; Val : Boolean := True); -- Flag16
10832 procedure Set_Import_Interface_Present
10833 (N : Node_Id; Val : Boolean := True); -- Flag16
10835 procedure Set_In_Present
10836 (N : Node_Id; Val : Boolean := True); -- Flag15
10838 procedure Set_Includes_Infinities
10839 (N : Node_Id; Val : Boolean := True); -- Flag11
10841 procedure Set_Incomplete_View
10842 (N : Node_Id; Val : Node_Id); -- Node2
10844 procedure Set_Inherited_Discriminant
10845 (N : Node_Id; Val : Boolean := True); -- Flag13
10847 procedure Set_Instance_Spec
10848 (N : Node_Id; Val : Node_Id); -- Node5
10850 procedure Set_Intval
10851 (N : Node_Id; Val : Uint); -- Uint3
10853 procedure Set_Is_Abort_Block
10854 (N : Node_Id; Val : Boolean := True); -- Flag4
10856 procedure Set_Is_Accessibility_Actual
10857 (N : Node_Id; Val : Boolean := True); -- Flag13
10859 procedure Set_Is_Analyzed_Pragma
10860 (N : Node_Id; Val : Boolean := True); -- Flag5
10862 procedure Set_Is_Asynchronous_Call_Block
10863 (N : Node_Id; Val : Boolean := True); -- Flag7
10865 procedure Set_Is_Boolean_Aspect
10866 (N : Node_Id; Val : Boolean := True); -- Flag16
10868 procedure Set_Is_Checked
10869 (N : Node_Id; Val : Boolean := True); -- Flag11
10871 procedure Set_Is_Checked_Ghost_Pragma
10872 (N : Node_Id; Val : Boolean := True); -- Flag3
10874 procedure Set_Is_Component_Left_Opnd
10875 (N : Node_Id; Val : Boolean := True); -- Flag13
10877 procedure Set_Is_Component_Right_Opnd
10878 (N : Node_Id; Val : Boolean := True); -- Flag14
10880 procedure Set_Is_Controlling_Actual
10881 (N : Node_Id; Val : Boolean := True); -- Flag16
10883 procedure Set_Is_Declaration_Level_Node
10884 (N : Node_Id; Val : Boolean := True); -- Flag5
10886 procedure Set_Is_Delayed_Aspect
10887 (N : Node_Id; Val : Boolean := True); -- Flag14
10889 procedure Set_Is_Disabled
10890 (N : Node_Id; Val : Boolean := True); -- Flag15
10892 procedure Set_Is_Dispatching_Call
10893 (N : Node_Id; Val : Boolean := True); -- Flag6
10895 procedure Set_Is_Dynamic_Coextension
10896 (N : Node_Id; Val : Boolean := True); -- Flag18
10898 procedure Set_Is_Effective_Use_Clause
10899 (N : Node_Id; Val : Boolean := True); -- Flag1
10901 procedure Set_Is_Elaboration_Checks_OK_Node
10902 (N : Node_Id; Val : Boolean := True); -- Flag1
10904 procedure Set_Is_Elaboration_Code
10905 (N : Node_Id; Val : Boolean := True); -- Flag9
10907 procedure Set_Is_Elaboration_Warnings_OK_Node
10908 (N : Node_Id; Val : Boolean := True); -- Flag3
10910 procedure Set_Is_Elsif
10911 (N : Node_Id; Val : Boolean := True); -- Flag13
10913 procedure Set_Is_Entry_Barrier_Function
10914 (N : Node_Id; Val : Boolean := True); -- Flag8
10916 procedure Set_Is_Expanded_Build_In_Place_Call
10917 (N : Node_Id; Val : Boolean := True); -- Flag11
10919 procedure Set_Is_Expanded_Contract
10920 (N : Node_Id; Val : Boolean := True); -- Flag1
10922 procedure Set_Is_Finalization_Wrapper
10923 (N : Node_Id; Val : Boolean := True); -- Flag9
10925 procedure Set_Is_Folded_In_Parser
10926 (N : Node_Id; Val : Boolean := True); -- Flag4
10928 procedure Set_Is_Generic_Contract_Pragma
10929 (N : Node_Id; Val : Boolean := True); -- Flag2
10931 procedure Set_Is_Ignored
10932 (N : Node_Id; Val : Boolean := True); -- Flag9
10934 procedure Set_Is_Ignored_Ghost_Pragma
10935 (N : Node_Id; Val : Boolean := True); -- Flag8
10937 procedure Set_Is_In_Discriminant_Check
10938 (N : Node_Id; Val : Boolean := True); -- Flag11
10940 procedure Set_Is_Inherited_Pragma
10941 (N : Node_Id; Val : Boolean := True); -- Flag4
10943 procedure Set_Is_Initialization_Block
10944 (N : Node_Id; Val : Boolean := True); -- Flag1
10946 procedure Set_Is_Known_Guaranteed_ABE
10947 (N : Node_Id; Val : Boolean := True); -- Flag18
10949 procedure Set_Is_Machine_Number
10950 (N : Node_Id; Val : Boolean := True); -- Flag11
10952 procedure Set_Is_Null_Loop
10953 (N : Node_Id; Val : Boolean := True); -- Flag16
10955 procedure Set_Is_Overloaded
10956 (N : Node_Id; Val : Boolean := True); -- Flag5
10958 procedure Set_Is_Power_Of_2_For_Shift
10959 (N : Node_Id; Val : Boolean := True); -- Flag13
10961 procedure Set_Is_Prefixed_Call
10962 (N : Node_Id; Val : Boolean := True); -- Flag17
10964 procedure Set_Is_Protected_Subprogram_Body
10965 (N : Node_Id; Val : Boolean := True); -- Flag7
10967 procedure Set_Is_Qualified_Universal_Literal
10968 (N : Node_Id; Val : Boolean := True); -- Flag4
10970 procedure Set_Is_Read
10971 (N : Node_Id; Val : Boolean := True); -- Flag1
10973 procedure Set_Is_Source_Call
10974 (N : Node_Id; Val : Boolean := True); -- Flag4
10976 procedure Set_Is_SPARK_Mode_On_Node
10977 (N : Node_Id; Val : Boolean := True); -- Flag2
10979 procedure Set_Is_Static_Coextension
10980 (N : Node_Id; Val : Boolean := True); -- Flag14
10982 procedure Set_Is_Static_Expression
10983 (N : Node_Id; Val : Boolean := True); -- Flag6
10985 procedure Set_Is_Subprogram_Descriptor
10986 (N : Node_Id; Val : Boolean := True); -- Flag16
10988 procedure Set_Is_Task_Allocation_Block
10989 (N : Node_Id; Val : Boolean := True); -- Flag6
10991 procedure Set_Is_Task_Body_Procedure
10992 (N : Node_Id; Val : Boolean := True); -- Flag1
10994 procedure Set_Is_Task_Master
10995 (N : Node_Id; Val : Boolean := True); -- Flag5
10997 procedure Set_Is_Write
10998 (N : Node_Id; Val : Boolean := True); -- Flag2
11000 procedure Set_Iteration_Scheme
11001 (N : Node_Id; Val : Node_Id); -- Node2
11003 procedure Set_Iterator_Specification
11004 (N : Node_Id; Val : Node_Id); -- Node2
11006 procedure Set_Itype
11007 (N : Node_Id; Val : Entity_Id); -- Node1
11009 procedure Set_Kill_Range_Check
11010 (N : Node_Id; Val : Boolean := True); -- Flag11
11012 procedure Set_Last_Bit
11013 (N : Node_Id; Val : Node_Id); -- Node4
11015 procedure Set_Last_Name
11016 (N : Node_Id; Val : Boolean := True); -- Flag6
11018 procedure Set_Library_Unit
11019 (N : Node_Id; Val : Node_Id); -- Node4
11021 procedure Set_Label_Construct
11022 (N : Node_Id; Val : Node_Id); -- Node2
11024 procedure Set_Left_Opnd
11025 (N : Node_Id; Val : Node_Id); -- Node2
11027 procedure Set_Limited_View_Installed
11028 (N : Node_Id; Val : Boolean := True); -- Flag18
11030 procedure Set_Limited_Present
11031 (N : Node_Id; Val : Boolean := True); -- Flag17
11033 procedure Set_Literals
11034 (N : Node_Id; Val : List_Id); -- List1
11036 procedure Set_Local_Raise_Not_OK
11037 (N : Node_Id; Val : Boolean := True); -- Flag7
11039 procedure Set_Local_Raise_Statements
11040 (N : Node_Id; Val : Elist_Id); -- Elist1
11042 procedure Set_Loop_Actions
11043 (N : Node_Id; Val : List_Id); -- List2
11045 procedure Set_Loop_Parameter_Specification
11046 (N : Node_Id; Val : Node_Id); -- Node4
11048 procedure Set_Low_Bound
11049 (N : Node_Id; Val : Node_Id); -- Node1
11051 procedure Set_Mod_Clause
11052 (N : Node_Id; Val : Node_Id); -- Node2
11054 procedure Set_More_Ids
11055 (N : Node_Id; Val : Boolean := True); -- Flag5
11057 procedure Set_Must_Be_Byte_Aligned
11058 (N : Node_Id; Val : Boolean := True); -- Flag14
11060 procedure Set_Must_Not_Freeze
11061 (N : Node_Id; Val : Boolean := True); -- Flag8
11063 procedure Set_Must_Not_Override
11064 (N : Node_Id; Val : Boolean := True); -- Flag15
11066 procedure Set_Must_Override
11067 (N : Node_Id; Val : Boolean := True); -- Flag14
11069 procedure Set_Name
11070 (N : Node_Id; Val : Node_Id); -- Node2
11072 procedure Set_Names
11073 (N : Node_Id; Val : List_Id); -- List2
11075 procedure Set_Next_Entity
11076 (N : Node_Id; Val : Node_Id); -- Node2
11078 procedure Set_Next_Exit_Statement
11079 (N : Node_Id; Val : Node_Id); -- Node3
11081 procedure Set_Next_Implicit_With
11082 (N : Node_Id; Val : Node_Id); -- Node3
11084 procedure Set_Next_Named_Actual
11085 (N : Node_Id; Val : Node_Id); -- Node4
11087 procedure Set_Next_Pragma
11088 (N : Node_Id; Val : Node_Id); -- Node1
11090 procedure Set_Next_Rep_Item
11091 (N : Node_Id; Val : Node_Id); -- Node5
11093 procedure Set_Next_Use_Clause
11094 (N : Node_Id; Val : Node_Id); -- Node3
11096 procedure Set_No_Ctrl_Actions
11097 (N : Node_Id; Val : Boolean := True); -- Flag7
11099 procedure Set_No_Elaboration_Check
11100 (N : Node_Id; Val : Boolean := True); -- Flag4
11102 procedure Set_No_Entities_Ref_In_Spec
11103 (N : Node_Id; Val : Boolean := True); -- Flag8
11105 procedure Set_No_Initialization
11106 (N : Node_Id; Val : Boolean := True); -- Flag13
11108 procedure Set_No_Minimize_Eliminate
11109 (N : Node_Id; Val : Boolean := True); -- Flag17
11111 procedure Set_No_Side_Effect_Removal
11112 (N : Node_Id; Val : Boolean := True); -- Flag17
11114 procedure Set_No_Truncation
11115 (N : Node_Id; Val : Boolean := True); -- Flag17
11117 procedure Set_Null_Excluding_Subtype
11118 (N : Node_Id; Val : Boolean := True); -- Flag16
11120 procedure Set_Null_Exclusion_Present
11121 (N : Node_Id; Val : Boolean := True); -- Flag11
11123 procedure Set_Null_Exclusion_In_Return_Present
11124 (N : Node_Id; Val : Boolean := True); -- Flag14
11126 procedure Set_Null_Present
11127 (N : Node_Id; Val : Boolean := True); -- Flag13
11129 procedure Set_Null_Record_Present
11130 (N : Node_Id; Val : Boolean := True); -- Flag17
11132 procedure Set_Null_Statement
11133 (N : Node_Id; Val : Node_Id); -- Node2
11135 procedure Set_Object_Definition
11136 (N : Node_Id; Val : Node_Id); -- Node4
11138 procedure Set_Of_Present
11139 (N : Node_Id; Val : Boolean := True); -- Flag16
11141 procedure Set_Original_Discriminant
11142 (N : Node_Id; Val : Node_Id); -- Node2
11144 procedure Set_Original_Entity
11145 (N : Node_Id; Val : Entity_Id); -- Node2
11147 procedure Set_Others_Discrete_Choices
11148 (N : Node_Id; Val : List_Id); -- List1
11150 procedure Set_Out_Present
11151 (N : Node_Id; Val : Boolean := True); -- Flag17
11153 procedure Set_Parameter_Associations
11154 (N : Node_Id; Val : List_Id); -- List3
11156 procedure Set_Parameter_Specifications
11157 (N : Node_Id; Val : List_Id); -- List3
11159 procedure Set_Parameter_Type
11160 (N : Node_Id; Val : Node_Id); -- Node2
11162 procedure Set_Parent_Spec
11163 (N : Node_Id; Val : Node_Id); -- Node4
11165 procedure Set_Parent_With
11166 (N : Node_Id; Val : Boolean := True); -- Flag1
11168 procedure Set_Position
11169 (N : Node_Id; Val : Node_Id); -- Node2
11171 procedure Set_Pragma_Argument_Associations
11172 (N : Node_Id; Val : List_Id); -- List2
11174 procedure Set_Pragma_Identifier
11175 (N : Node_Id; Val : Node_Id); -- Node4
11177 procedure Set_Pragmas_After
11178 (N : Node_Id; Val : List_Id); -- List5
11180 procedure Set_Pragmas_Before
11181 (N : Node_Id; Val : List_Id); -- List4
11183 procedure Set_Pre_Post_Conditions
11184 (N : Node_Id; Val : Node_Id); -- Node1
11186 procedure Set_Prefix
11187 (N : Node_Id; Val : Node_Id); -- Node3
11189 procedure Set_Premature_Use
11190 (N : Node_Id; Val : Node_Id); -- Node5
11192 procedure Set_Present_Expr
11193 (N : Node_Id; Val : Uint); -- Uint3
11195 procedure Set_Prev_Ids
11196 (N : Node_Id; Val : Boolean := True); -- Flag6
11198 procedure Set_Prev_Use_Clause
11199 (N : Node_Id; Val : Node_Id); -- Node1
11201 procedure Set_Print_In_Hex
11202 (N : Node_Id; Val : Boolean := True); -- Flag13
11204 procedure Set_Private_Declarations
11205 (N : Node_Id; Val : List_Id); -- List3
11207 procedure Set_Private_Present
11208 (N : Node_Id; Val : Boolean := True); -- Flag15
11210 procedure Set_Procedure_To_Call
11211 (N : Node_Id; Val : Node_Id); -- Node2
11213 procedure Set_Proper_Body
11214 (N : Node_Id; Val : Node_Id); -- Node1
11216 procedure Set_Protected_Definition
11217 (N : Node_Id; Val : Node_Id); -- Node3
11219 procedure Set_Protected_Present
11220 (N : Node_Id; Val : Boolean := True); -- Flag6
11222 procedure Set_Raises_Constraint_Error
11223 (N : Node_Id; Val : Boolean := True); -- Flag7
11225 procedure Set_Range_Constraint
11226 (N : Node_Id; Val : Node_Id); -- Node4
11228 procedure Set_Range_Expression
11229 (N : Node_Id; Val : Node_Id); -- Node4
11231 procedure Set_Real_Range_Specification
11232 (N : Node_Id; Val : Node_Id); -- Node4
11234 procedure Set_Realval
11235 (N : Node_Id; Val : Ureal); -- Ureal3
11237 procedure Set_Reason
11238 (N : Node_Id; Val : Uint); -- Uint3
11240 procedure Set_Record_Extension_Part
11241 (N : Node_Id; Val : Node_Id); -- Node3
11243 procedure Set_Redundant_Use
11244 (N : Node_Id; Val : Boolean := True); -- Flag13
11246 procedure Set_Renaming_Exception
11247 (N : Node_Id; Val : Node_Id); -- Node2
11249 procedure Set_Result_Definition
11250 (N : Node_Id; Val : Node_Id); -- Node4
11252 procedure Set_Return_Object_Declarations
11253 (N : Node_Id; Val : List_Id); -- List3
11255 procedure Set_Return_Statement_Entity
11256 (N : Node_Id; Val : Node_Id); -- Node5
11258 procedure Set_Reverse_Present
11259 (N : Node_Id; Val : Boolean := True); -- Flag15
11261 procedure Set_Right_Opnd
11262 (N : Node_Id; Val : Node_Id); -- Node3
11264 procedure Set_Rounded_Result
11265 (N : Node_Id; Val : Boolean := True); -- Flag18
11267 procedure Set_SCIL_Controlling_Tag
11268 (N : Node_Id; Val : Node_Id); -- Node5
11270 procedure Set_SCIL_Entity
11271 (N : Node_Id; Val : Node_Id); -- Node4
11273 procedure Set_SCIL_Tag_Value
11274 (N : Node_Id; Val : Node_Id); -- Node5
11276 procedure Set_SCIL_Target_Prim
11277 (N : Node_Id; Val : Node_Id); -- Node2
11279 procedure Set_Scope
11280 (N : Node_Id; Val : Node_Id); -- Node3
11282 procedure Set_Select_Alternatives
11283 (N : Node_Id; Val : List_Id); -- List1
11285 procedure Set_Selector_Name
11286 (N : Node_Id; Val : Node_Id); -- Node2
11288 procedure Set_Selector_Names
11289 (N : Node_Id; Val : List_Id); -- List1
11291 procedure Set_Shift_Count_OK
11292 (N : Node_Id; Val : Boolean := True); -- Flag4
11294 procedure Set_Source_Type
11295 (N : Node_Id; Val : Entity_Id); -- Node1
11297 procedure Set_Specification
11298 (N : Node_Id; Val : Node_Id); -- Node1
11300 procedure Set_Split_PPC
11301 (N : Node_Id; Val : Boolean); -- Flag17
11303 procedure Set_Statements
11304 (N : Node_Id; Val : List_Id); -- List3
11306 procedure Set_Storage_Pool
11307 (N : Node_Id; Val : Node_Id); -- Node1
11309 procedure Set_Subpool_Handle_Name
11310 (N : Node_Id; Val : Node_Id); -- Node4
11312 procedure Set_Strval
11313 (N : Node_Id; Val : String_Id); -- Str3
11315 procedure Set_Subtype_Indication
11316 (N : Node_Id; Val : Node_Id); -- Node5
11318 procedure Set_Subtype_Mark
11319 (N : Node_Id; Val : Node_Id); -- Node4
11321 procedure Set_Subtype_Marks
11322 (N : Node_Id; Val : List_Id); -- List2
11324 procedure Set_Suppress_Assignment_Checks
11325 (N : Node_Id; Val : Boolean := True); -- Flag18
11327 procedure Set_Suppress_Loop_Warnings
11328 (N : Node_Id; Val : Boolean := True); -- Flag17
11330 procedure Set_Synchronized_Present
11331 (N : Node_Id; Val : Boolean := True); -- Flag7
11333 procedure Set_Tagged_Present
11334 (N : Node_Id; Val : Boolean := True); -- Flag15
11336 procedure Set_Target
11337 (N : Node_Id; Val : Entity_Id); -- Node1
11339 procedure Set_Target_Type
11340 (N : Node_Id; Val : Entity_Id); -- Node2
11342 procedure Set_Task_Definition
11343 (N : Node_Id; Val : Node_Id); -- Node3
11345 procedure Set_Task_Present
11346 (N : Node_Id; Val : Boolean := True); -- Flag5
11348 procedure Set_Then_Actions
11349 (N : Node_Id; Val : List_Id); -- List2
11351 procedure Set_Then_Statements
11352 (N : Node_Id; Val : List_Id); -- List2
11354 procedure Set_Treat_Fixed_As_Integer
11355 (N : Node_Id; Val : Boolean := True); -- Flag14
11357 procedure Set_Triggering_Alternative
11358 (N : Node_Id; Val : Node_Id); -- Node1
11360 procedure Set_Triggering_Statement
11361 (N : Node_Id; Val : Node_Id); -- Node1
11363 procedure Set_TSS_Elist
11364 (N : Node_Id; Val : Elist_Id); -- Elist3
11366 procedure Set_Type_Definition
11367 (N : Node_Id; Val : Node_Id); -- Node3
11369 procedure Set_Uneval_Old_Accept
11370 (N : Node_Id; Val : Boolean := True); -- Flag7
11372 procedure Set_Uneval_Old_Warn
11373 (N : Node_Id; Val : Boolean := True); -- Flag18
11375 procedure Set_Unit
11376 (N : Node_Id; Val : Node_Id); -- Node2
11378 procedure Set_Unknown_Discriminants_Present
11379 (N : Node_Id; Val : Boolean := True); -- Flag13
11381 procedure Set_Unreferenced_In_Spec
11382 (N : Node_Id; Val : Boolean := True); -- Flag7
11384 procedure Set_Variant_Part
11385 (N : Node_Id; Val : Node_Id); -- Node4
11387 procedure Set_Variants
11388 (N : Node_Id; Val : List_Id); -- List1
11390 procedure Set_Visible_Declarations
11391 (N : Node_Id; Val : List_Id); -- List2
11393 procedure Set_Uninitialized_Variable
11394 (N : Node_Id; Val : Node_Id); -- Node3
11396 procedure Set_Used_Operations
11397 (N : Node_Id; Val : Elist_Id); -- Elist2
11399 procedure Set_Was_Attribute_Reference
11400 (N : Node_Id; Val : Boolean := True); -- Flag2
11402 procedure Set_Was_Expression_Function
11403 (N : Node_Id; Val : Boolean := True); -- Flag18
11405 procedure Set_Was_Originally_Stub
11406 (N : Node_Id; Val : Boolean := True); -- Flag13
11408 procedure Set_Withed_Body
11409 (N : Node_Id; Val : Node_Id); -- Node1
11411 -------------------------
11412 -- Iterator Procedures --
11413 -------------------------
11415 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
11417 procedure Next_Entity (N : in out Node_Id);
11418 procedure Next_Named_Actual (N : in out Node_Id);
11419 procedure Next_Rep_Item (N : in out Node_Id);
11420 procedure Next_Use_Clause (N : in out Node_Id);
11422 -------------------------------------------
11423 -- Miscellaneous Tree Access Subprograms --
11424 -------------------------------------------
11426 function End_Location (N : Node_Id) return Source_Ptr;
11427 -- N is an N_If_Statement or N_Case_Statement node, and this function
11428 -- returns the location of the IF token in the END IF sequence by
11429 -- translating the value of the End_Span field.
11431 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
11432 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
11433 -- the End_Span field to correspond to the given value S. In other words,
11434 -- End_Span is set to the difference between S and Sloc (N), the starting
11435 -- location.
11437 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
11438 -- Given an argument to a pragma Arg, this function returns the expression
11439 -- for the argument. This is Arg itself, or, in the case where Arg is a
11440 -- pragma argument association node, the expression from this node.
11442 --------------------------------
11443 -- Node_Kind Membership Tests --
11444 --------------------------------
11446 -- The following functions allow a convenient notation for testing whether
11447 -- a Node_Kind value matches any one of a list of possible values. In each
11448 -- case True is returned if the given T argument is equal to any of the V
11449 -- arguments. Note that there is a similar set of functions defined in
11450 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
11452 function Nkind_In
11453 (T : Node_Kind;
11454 V1 : Node_Kind;
11455 V2 : Node_Kind) return Boolean;
11457 function Nkind_In
11458 (T : Node_Kind;
11459 V1 : Node_Kind;
11460 V2 : Node_Kind;
11461 V3 : Node_Kind) return Boolean;
11463 function Nkind_In
11464 (T : Node_Kind;
11465 V1 : Node_Kind;
11466 V2 : Node_Kind;
11467 V3 : Node_Kind;
11468 V4 : Node_Kind) return Boolean;
11470 function Nkind_In
11471 (T : Node_Kind;
11472 V1 : Node_Kind;
11473 V2 : Node_Kind;
11474 V3 : Node_Kind;
11475 V4 : Node_Kind;
11476 V5 : Node_Kind) return Boolean;
11478 function Nkind_In
11479 (T : Node_Kind;
11480 V1 : Node_Kind;
11481 V2 : Node_Kind;
11482 V3 : Node_Kind;
11483 V4 : Node_Kind;
11484 V5 : Node_Kind;
11485 V6 : Node_Kind) return Boolean;
11487 function Nkind_In
11488 (T : Node_Kind;
11489 V1 : Node_Kind;
11490 V2 : Node_Kind;
11491 V3 : Node_Kind;
11492 V4 : Node_Kind;
11493 V5 : Node_Kind;
11494 V6 : Node_Kind;
11495 V7 : Node_Kind) return Boolean;
11497 function Nkind_In
11498 (T : Node_Kind;
11499 V1 : Node_Kind;
11500 V2 : Node_Kind;
11501 V3 : Node_Kind;
11502 V4 : Node_Kind;
11503 V5 : Node_Kind;
11504 V6 : Node_Kind;
11505 V7 : Node_Kind;
11506 V8 : Node_Kind) return Boolean;
11508 function Nkind_In
11509 (T : Node_Kind;
11510 V1 : Node_Kind;
11511 V2 : Node_Kind;
11512 V3 : Node_Kind;
11513 V4 : Node_Kind;
11514 V5 : Node_Kind;
11515 V6 : Node_Kind;
11516 V7 : Node_Kind;
11517 V8 : Node_Kind;
11518 V9 : Node_Kind) return Boolean;
11520 function Nkind_In
11521 (T : Node_Kind;
11522 V1 : Node_Kind;
11523 V2 : Node_Kind;
11524 V3 : Node_Kind;
11525 V4 : Node_Kind;
11526 V5 : Node_Kind;
11527 V6 : Node_Kind;
11528 V7 : Node_Kind;
11529 V8 : Node_Kind;
11530 V9 : Node_Kind;
11531 V10 : Node_Kind) return Boolean;
11533 function Nkind_In
11534 (T : Node_Kind;
11535 V1 : Node_Kind;
11536 V2 : Node_Kind;
11537 V3 : Node_Kind;
11538 V4 : Node_Kind;
11539 V5 : Node_Kind;
11540 V6 : Node_Kind;
11541 V7 : Node_Kind;
11542 V8 : Node_Kind;
11543 V9 : Node_Kind;
11544 V10 : Node_Kind;
11545 V11 : Node_Kind) return Boolean;
11547 pragma Inline (Nkind_In);
11548 -- Inline all above functions
11550 -----------------------
11551 -- Utility Functions --
11552 -----------------------
11554 procedure Map_Pragma_Name (From, To : Name_Id);
11555 -- Used in the implementation of pragma Rename_Pragma. Maps pragma name
11556 -- From to pragma name To, so From can be used as a synonym for To.
11558 Too_Many_Pragma_Mappings : exception;
11559 -- Raised if Map_Pragma_Name is called too many times. We expect that few
11560 -- programs will use it at all, and those that do will use it approximately
11561 -- once or twice.
11563 function Pragma_Name (N : Node_Id) return Name_Id;
11564 -- Obtain the name of pragma N from the Chars field of its identifier. If
11565 -- the pragma has been renamed using Rename_Pragma, this routine returns
11566 -- the name of the renaming.
11568 function Pragma_Name_Unmapped (N : Node_Id) return Name_Id;
11569 -- Obtain the name of pragma N from the Chars field of its identifier. This
11570 -- form of name extraction does not take into account renamings performed
11571 -- by Rename_Pragma.
11573 -----------------------------
11574 -- Syntactic Parent Tables --
11575 -----------------------------
11577 -- These tables show for each node, and for each of the five fields,
11578 -- whether the corresponding field is syntactic (True) or semantic (False).
11579 -- Unused entries are also set to False.
11581 subtype Field_Num is Natural range 1 .. 5;
11583 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
11585 -- Following entries can be built automatically from the sinfo sources
11586 -- using the makeisf utility (currently this program is in spitbol).
11588 N_Identifier =>
11589 (1 => True, -- Chars (Name1)
11590 2 => False, -- Original_Discriminant (Node2-Sem)
11591 3 => False, -- unused
11592 4 => False, -- Entity (Node4-Sem)
11593 5 => False), -- Etype (Node5-Sem)
11595 N_Integer_Literal =>
11596 (1 => False, -- unused
11597 2 => False, -- Original_Entity (Node2-Sem)
11598 3 => True, -- Intval (Uint3)
11599 4 => False, -- unused
11600 5 => False), -- Etype (Node5-Sem)
11602 N_Real_Literal =>
11603 (1 => False, -- unused
11604 2 => False, -- Original_Entity (Node2-Sem)
11605 3 => True, -- Realval (Ureal3)
11606 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
11607 5 => False), -- Etype (Node5-Sem)
11609 N_Character_Literal =>
11610 (1 => True, -- Chars (Name1)
11611 2 => True, -- Char_Literal_Value (Uint2)
11612 3 => False, -- unused
11613 4 => False, -- Entity (Node4-Sem)
11614 5 => False), -- Etype (Node5-Sem)
11616 N_String_Literal =>
11617 (1 => False, -- unused
11618 2 => False, -- unused
11619 3 => True, -- Strval (Str3)
11620 4 => False, -- unused
11621 5 => False), -- Etype (Node5-Sem)
11623 N_Pragma =>
11624 (1 => False, -- Next_Pragma (Node1-Sem)
11625 2 => True, -- Pragma_Argument_Associations (List2)
11626 3 => False, -- Corresponding_Aspect (Node3-Sem)
11627 4 => True, -- Pragma_Identifier (Node4)
11628 5 => False), -- Next_Rep_Item (Node5-Sem)
11630 N_Pragma_Argument_Association =>
11631 (1 => True, -- Chars (Name1)
11632 2 => False, -- Expression_Copy (Node2-Sem)
11633 3 => True, -- Expression (Node3)
11634 4 => False, -- unused
11635 5 => False), -- unused
11637 N_Defining_Identifier =>
11638 (1 => True, -- Chars (Name1)
11639 2 => False, -- Next_Entity (Node2-Sem)
11640 3 => False, -- Scope (Node3-Sem)
11641 4 => False, -- unused
11642 5 => False), -- Etype (Node5-Sem)
11644 N_Full_Type_Declaration =>
11645 (1 => True, -- Defining_Identifier (Node1)
11646 2 => False, -- Incomplete_View (Node2-Sem)
11647 3 => True, -- Type_Definition (Node3)
11648 4 => True, -- Discriminant_Specifications (List4)
11649 5 => False), -- unused
11651 N_Subtype_Declaration =>
11652 (1 => True, -- Defining_Identifier (Node1)
11653 2 => False, -- unused
11654 3 => False, -- unused
11655 4 => False, -- Generic_Parent_Type (Node4-Sem)
11656 5 => True), -- Subtype_Indication (Node5)
11658 N_Subtype_Indication =>
11659 (1 => False, -- unused
11660 2 => False, -- unused
11661 3 => True, -- Constraint (Node3)
11662 4 => True, -- Subtype_Mark (Node4)
11663 5 => False), -- Etype (Node5-Sem)
11665 N_Object_Declaration =>
11666 (1 => True, -- Defining_Identifier (Node1)
11667 2 => False, -- Handler_List_Entry (Node2-Sem)
11668 3 => True, -- Expression (Node3)
11669 4 => True, -- Object_Definition (Node4)
11670 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11672 N_Number_Declaration =>
11673 (1 => True, -- Defining_Identifier (Node1)
11674 2 => False, -- unused
11675 3 => True, -- Expression (Node3)
11676 4 => False, -- unused
11677 5 => False), -- unused
11679 N_Derived_Type_Definition =>
11680 (1 => False, -- unused
11681 2 => True, -- Interface_List (List2)
11682 3 => True, -- Record_Extension_Part (Node3)
11683 4 => False, -- unused
11684 5 => True), -- Subtype_Indication (Node5)
11686 N_Range_Constraint =>
11687 (1 => False, -- unused
11688 2 => False, -- unused
11689 3 => False, -- unused
11690 4 => True, -- Range_Expression (Node4)
11691 5 => False), -- unused
11693 N_Range =>
11694 (1 => True, -- Low_Bound (Node1)
11695 2 => True, -- High_Bound (Node2)
11696 3 => False, -- unused
11697 4 => False, -- unused
11698 5 => False), -- Etype (Node5-Sem)
11700 N_Enumeration_Type_Definition =>
11701 (1 => True, -- Literals (List1)
11702 2 => False, -- unused
11703 3 => False, -- unused
11704 4 => True, -- End_Label (Node4)
11705 5 => False), -- unused
11707 N_Defining_Character_Literal =>
11708 (1 => True, -- Chars (Name1)
11709 2 => False, -- Next_Entity (Node2-Sem)
11710 3 => False, -- Scope (Node3-Sem)
11711 4 => False, -- unused
11712 5 => False), -- Etype (Node5-Sem)
11714 N_Signed_Integer_Type_Definition =>
11715 (1 => True, -- Low_Bound (Node1)
11716 2 => True, -- High_Bound (Node2)
11717 3 => False, -- unused
11718 4 => False, -- unused
11719 5 => False), -- unused
11721 N_Modular_Type_Definition =>
11722 (1 => False, -- unused
11723 2 => False, -- unused
11724 3 => True, -- Expression (Node3)
11725 4 => False, -- unused
11726 5 => False), -- unused
11728 N_Floating_Point_Definition =>
11729 (1 => False, -- unused
11730 2 => True, -- Digits_Expression (Node2)
11731 3 => False, -- unused
11732 4 => True, -- Real_Range_Specification (Node4)
11733 5 => False), -- unused
11735 N_Real_Range_Specification =>
11736 (1 => True, -- Low_Bound (Node1)
11737 2 => True, -- High_Bound (Node2)
11738 3 => False, -- unused
11739 4 => False, -- unused
11740 5 => False), -- unused
11742 N_Ordinary_Fixed_Point_Definition =>
11743 (1 => False, -- unused
11744 2 => False, -- unused
11745 3 => True, -- Delta_Expression (Node3)
11746 4 => True, -- Real_Range_Specification (Node4)
11747 5 => False), -- unused
11749 N_Decimal_Fixed_Point_Definition =>
11750 (1 => False, -- unused
11751 2 => True, -- Digits_Expression (Node2)
11752 3 => True, -- Delta_Expression (Node3)
11753 4 => True, -- Real_Range_Specification (Node4)
11754 5 => False), -- unused
11756 N_Digits_Constraint =>
11757 (1 => False, -- unused
11758 2 => True, -- Digits_Expression (Node2)
11759 3 => False, -- unused
11760 4 => True, -- Range_Constraint (Node4)
11761 5 => False), -- unused
11763 N_Unconstrained_Array_Definition =>
11764 (1 => False, -- unused
11765 2 => True, -- Subtype_Marks (List2)
11766 3 => False, -- unused
11767 4 => True, -- Component_Definition (Node4)
11768 5 => False), -- unused
11770 N_Constrained_Array_Definition =>
11771 (1 => False, -- unused
11772 2 => True, -- Discrete_Subtype_Definitions (List2)
11773 3 => False, -- unused
11774 4 => True, -- Component_Definition (Node4)
11775 5 => False), -- unused
11777 N_Component_Definition =>
11778 (1 => False, -- unused
11779 2 => False, -- unused
11780 3 => True, -- Access_Definition (Node3)
11781 4 => False, -- unused
11782 5 => True), -- Subtype_Indication (Node5)
11784 N_Discriminant_Specification =>
11785 (1 => True, -- Defining_Identifier (Node1)
11786 2 => False, -- unused
11787 3 => True, -- Expression (Node3)
11788 4 => False, -- unused
11789 5 => True), -- Discriminant_Type (Node5)
11791 N_Index_Or_Discriminant_Constraint =>
11792 (1 => True, -- Constraints (List1)
11793 2 => False, -- unused
11794 3 => False, -- unused
11795 4 => False, -- unused
11796 5 => False), -- unused
11798 N_Discriminant_Association =>
11799 (1 => True, -- Selector_Names (List1)
11800 2 => False, -- unused
11801 3 => True, -- Expression (Node3)
11802 4 => False, -- unused
11803 5 => False), -- unused
11805 N_Record_Definition =>
11806 (1 => True, -- Component_List (Node1)
11807 2 => True, -- Interface_List (List2)
11808 3 => False, -- unused
11809 4 => True, -- End_Label (Node4)
11810 5 => False), -- unused
11812 N_Component_List =>
11813 (1 => False, -- unused
11814 2 => False, -- unused
11815 3 => True, -- Component_Items (List3)
11816 4 => True, -- Variant_Part (Node4)
11817 5 => False), -- unused
11819 N_Component_Declaration =>
11820 (1 => True, -- Defining_Identifier (Node1)
11821 2 => False, -- unused
11822 3 => True, -- Expression (Node3)
11823 4 => True, -- Component_Definition (Node4)
11824 5 => False), -- unused
11826 N_Variant_Part =>
11827 (1 => True, -- Variants (List1)
11828 2 => True, -- Name (Node2)
11829 3 => False, -- unused
11830 4 => False, -- unused
11831 5 => False), -- unused
11833 N_Variant =>
11834 (1 => True, -- Component_List (Node1)
11835 2 => False, -- Enclosing_Variant (Node2-Sem)
11836 3 => False, -- Present_Expr (Uint3-Sem)
11837 4 => True, -- Discrete_Choices (List4)
11838 5 => False), -- Dcheck_Function (Node5-Sem)
11840 N_Others_Choice =>
11841 (1 => False, -- Others_Discrete_Choices (List1-Sem)
11842 2 => False, -- unused
11843 3 => False, -- unused
11844 4 => False, -- unused
11845 5 => False), -- unused
11847 N_Access_To_Object_Definition =>
11848 (1 => False, -- unused
11849 2 => False, -- unused
11850 3 => False, -- unused
11851 4 => False, -- unused
11852 5 => True), -- Subtype_Indication (Node5)
11854 N_Access_Function_Definition =>
11855 (1 => False, -- unused
11856 2 => False, -- unused
11857 3 => True, -- Parameter_Specifications (List3)
11858 4 => True, -- Result_Definition (Node4)
11859 5 => False), -- unused
11861 N_Access_Procedure_Definition =>
11862 (1 => False, -- unused
11863 2 => False, -- unused
11864 3 => True, -- Parameter_Specifications (List3)
11865 4 => False, -- unused
11866 5 => False), -- unused
11868 N_Access_Definition =>
11869 (1 => False, -- unused
11870 2 => False, -- unused
11871 3 => True, -- Access_To_Subprogram_Definition (Node3)
11872 4 => True, -- Subtype_Mark (Node4)
11873 5 => False), -- unused
11875 N_Incomplete_Type_Declaration =>
11876 (1 => True, -- Defining_Identifier (Node1)
11877 2 => False, -- unused
11878 3 => False, -- unused
11879 4 => True, -- Discriminant_Specifications (List4)
11880 5 => False), -- Premature_Use
11882 N_Explicit_Dereference =>
11883 (1 => False, -- unused
11884 2 => False, -- unused
11885 3 => True, -- Prefix (Node3)
11886 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11887 5 => False), -- Etype (Node5-Sem)
11889 N_Indexed_Component =>
11890 (1 => True, -- Expressions (List1)
11891 2 => False, -- unused
11892 3 => True, -- Prefix (Node3)
11893 4 => False, -- Generalized_Indexing (Node4-Sem)
11894 5 => False), -- Etype (Node5-Sem)
11896 N_Slice =>
11897 (1 => False, -- unused
11898 2 => False, -- unused
11899 3 => True, -- Prefix (Node3)
11900 4 => True, -- Discrete_Range (Node4)
11901 5 => False), -- Etype (Node5-Sem)
11903 N_Selected_Component =>
11904 (1 => False, -- unused
11905 2 => True, -- Selector_Name (Node2)
11906 3 => True, -- Prefix (Node3)
11907 4 => False, -- unused
11908 5 => False), -- Etype (Node5-Sem)
11910 N_Attribute_Reference =>
11911 (1 => True, -- Expressions (List1)
11912 2 => True, -- Attribute_Name (Name2)
11913 3 => True, -- Prefix (Node3)
11914 4 => False, -- Entity (Node4-Sem)
11915 5 => False), -- Etype (Node5-Sem)
11917 N_Aggregate =>
11918 (1 => True, -- Expressions (List1)
11919 2 => True, -- Component_Associations (List2)
11920 3 => False, -- Aggregate_Bounds (Node3-Sem)
11921 4 => False, -- unused
11922 5 => False), -- Etype (Node5-Sem)
11924 N_Component_Association =>
11925 (1 => True, -- Choices (List1)
11926 2 => False, -- Loop_Actions (List2-Sem)
11927 3 => True, -- Expression (Node3)
11928 4 => False, -- unused
11929 5 => False), -- unused
11931 N_Iterated_Component_Association =>
11932 (1 => True, -- Defining_Identifier (Node1)
11933 2 => False, -- unused
11934 3 => True, -- Expression (Node3)
11935 4 => True, -- Discrete_Choices (List4)
11936 5 => False), -- unused
11938 N_Delta_Aggregate =>
11939 (1 => False, -- Expressions (List1-Sem)
11940 2 => True, -- Component_Associations (List2)
11941 3 => True, -- Expression (Node3)
11942 4 => False, -- Unused
11943 5 => False), -- Etype (Node5-Sem)
11945 N_Extension_Aggregate =>
11946 (1 => True, -- Expressions (List1)
11947 2 => True, -- Component_Associations (List2)
11948 3 => True, -- Ancestor_Part (Node3)
11949 4 => False, -- unused
11950 5 => False), -- Etype (Node5-Sem)
11952 N_Null =>
11953 (1 => False, -- unused
11954 2 => False, -- unused
11955 3 => False, -- unused
11956 4 => False, -- unused
11957 5 => False), -- Etype (Node5-Sem)
11959 N_And_Then =>
11960 (1 => False, -- Actions (List1-Sem)
11961 2 => True, -- Left_Opnd (Node2)
11962 3 => True, -- Right_Opnd (Node3)
11963 4 => False, -- unused
11964 5 => False), -- Etype (Node5-Sem)
11966 N_Or_Else =>
11967 (1 => False, -- Actions (List1-Sem)
11968 2 => True, -- Left_Opnd (Node2)
11969 3 => True, -- Right_Opnd (Node3)
11970 4 => False, -- unused
11971 5 => False), -- Etype (Node5-Sem)
11973 N_In =>
11974 (1 => False, -- unused
11975 2 => True, -- Left_Opnd (Node2)
11976 3 => True, -- Right_Opnd (Node3)
11977 4 => True, -- Alternatives (List4)
11978 5 => False), -- Etype (Node5-Sem)
11980 N_Not_In =>
11981 (1 => False, -- unused
11982 2 => True, -- Left_Opnd (Node2)
11983 3 => True, -- Right_Opnd (Node3)
11984 4 => True, -- Alternatives (List4)
11985 5 => False), -- Etype (Node5-Sem)
11987 N_Op_And =>
11988 (1 => True, -- Chars (Name1)
11989 2 => True, -- Left_Opnd (Node2)
11990 3 => True, -- Right_Opnd (Node3)
11991 4 => False, -- Entity (Node4-Sem)
11992 5 => False), -- Etype (Node5-Sem)
11994 N_Op_Or =>
11995 (1 => True, -- Chars (Name1)
11996 2 => True, -- Left_Opnd (Node2)
11997 3 => True, -- Right_Opnd (Node3)
11998 4 => False, -- Entity (Node4-Sem)
11999 5 => False), -- Etype (Node5-Sem)
12001 N_Op_Xor =>
12002 (1 => True, -- Chars (Name1)
12003 2 => True, -- Left_Opnd (Node2)
12004 3 => True, -- Right_Opnd (Node3)
12005 4 => False, -- Entity (Node4-Sem)
12006 5 => False), -- Etype (Node5-Sem)
12008 N_Op_Eq =>
12009 (1 => True, -- Chars (Name1)
12010 2 => True, -- Left_Opnd (Node2)
12011 3 => True, -- Right_Opnd (Node3)
12012 4 => False, -- Entity (Node4-Sem)
12013 5 => False), -- Etype (Node5-Sem)
12015 N_Op_Ne =>
12016 (1 => True, -- Chars (Name1)
12017 2 => True, -- Left_Opnd (Node2)
12018 3 => True, -- Right_Opnd (Node3)
12019 4 => False, -- Entity (Node4-Sem)
12020 5 => False), -- Etype (Node5-Sem)
12022 N_Op_Lt =>
12023 (1 => True, -- Chars (Name1)
12024 2 => True, -- Left_Opnd (Node2)
12025 3 => True, -- Right_Opnd (Node3)
12026 4 => False, -- Entity (Node4-Sem)
12027 5 => False), -- Etype (Node5-Sem)
12029 N_Op_Le =>
12030 (1 => True, -- Chars (Name1)
12031 2 => True, -- Left_Opnd (Node2)
12032 3 => True, -- Right_Opnd (Node3)
12033 4 => False, -- Entity (Node4-Sem)
12034 5 => False), -- Etype (Node5-Sem)
12036 N_Op_Gt =>
12037 (1 => True, -- Chars (Name1)
12038 2 => True, -- Left_Opnd (Node2)
12039 3 => True, -- Right_Opnd (Node3)
12040 4 => False, -- Entity (Node4-Sem)
12041 5 => False), -- Etype (Node5-Sem)
12043 N_Op_Ge =>
12044 (1 => True, -- Chars (Name1)
12045 2 => True, -- Left_Opnd (Node2)
12046 3 => True, -- Right_Opnd (Node3)
12047 4 => False, -- Entity (Node4-Sem)
12048 5 => False), -- Etype (Node5-Sem)
12050 N_Op_Add =>
12051 (1 => True, -- Chars (Name1)
12052 2 => True, -- Left_Opnd (Node2)
12053 3 => True, -- Right_Opnd (Node3)
12054 4 => False, -- Entity (Node4-Sem)
12055 5 => False), -- Etype (Node5-Sem)
12057 N_Op_Subtract =>
12058 (1 => True, -- Chars (Name1)
12059 2 => True, -- Left_Opnd (Node2)
12060 3 => True, -- Right_Opnd (Node3)
12061 4 => False, -- Entity (Node4-Sem)
12062 5 => False), -- Etype (Node5-Sem)
12064 N_Op_Concat =>
12065 (1 => True, -- Chars (Name1)
12066 2 => True, -- Left_Opnd (Node2)
12067 3 => True, -- Right_Opnd (Node3)
12068 4 => False, -- Entity (Node4-Sem)
12069 5 => False), -- Etype (Node5-Sem)
12071 N_Op_Multiply =>
12072 (1 => True, -- Chars (Name1)
12073 2 => True, -- Left_Opnd (Node2)
12074 3 => True, -- Right_Opnd (Node3)
12075 4 => False, -- Entity (Node4-Sem)
12076 5 => False), -- Etype (Node5-Sem)
12078 N_Op_Divide =>
12079 (1 => True, -- Chars (Name1)
12080 2 => True, -- Left_Opnd (Node2)
12081 3 => True, -- Right_Opnd (Node3)
12082 4 => False, -- Entity (Node4-Sem)
12083 5 => False), -- Etype (Node5-Sem)
12085 N_Op_Mod =>
12086 (1 => True, -- Chars (Name1)
12087 2 => True, -- Left_Opnd (Node2)
12088 3 => True, -- Right_Opnd (Node3)
12089 4 => False, -- Entity (Node4-Sem)
12090 5 => False), -- Etype (Node5-Sem)
12092 N_Op_Rem =>
12093 (1 => True, -- Chars (Name1)
12094 2 => True, -- Left_Opnd (Node2)
12095 3 => True, -- Right_Opnd (Node3)
12096 4 => False, -- Entity (Node4-Sem)
12097 5 => False), -- Etype (Node5-Sem)
12099 N_Op_Expon =>
12100 (1 => True, -- Chars (Name1)
12101 2 => True, -- Left_Opnd (Node2)
12102 3 => True, -- Right_Opnd (Node3)
12103 4 => False, -- Entity (Node4-Sem)
12104 5 => False), -- Etype (Node5-Sem)
12106 N_Op_Plus =>
12107 (1 => True, -- Chars (Name1)
12108 2 => False, -- unused
12109 3 => True, -- Right_Opnd (Node3)
12110 4 => False, -- Entity (Node4-Sem)
12111 5 => False), -- Etype (Node5-Sem)
12113 N_Op_Minus =>
12114 (1 => True, -- Chars (Name1)
12115 2 => False, -- unused
12116 3 => True, -- Right_Opnd (Node3)
12117 4 => False, -- Entity (Node4-Sem)
12118 5 => False), -- Etype (Node5-Sem)
12120 N_Op_Abs =>
12121 (1 => True, -- Chars (Name1)
12122 2 => False, -- unused
12123 3 => True, -- Right_Opnd (Node3)
12124 4 => False, -- Entity (Node4-Sem)
12125 5 => False), -- Etype (Node5-Sem)
12127 N_Op_Not =>
12128 (1 => True, -- Chars (Name1)
12129 2 => False, -- unused
12130 3 => True, -- Right_Opnd (Node3)
12131 4 => False, -- Entity (Node4-Sem)
12132 5 => False), -- Etype (Node5-Sem)
12134 N_Type_Conversion =>
12135 (1 => False, -- unused
12136 2 => False, -- unused
12137 3 => True, -- Expression (Node3)
12138 4 => True, -- Subtype_Mark (Node4)
12139 5 => False), -- Etype (Node5-Sem)
12141 N_Qualified_Expression =>
12142 (1 => False, -- unused
12143 2 => False, -- unused
12144 3 => True, -- Expression (Node3)
12145 4 => True, -- Subtype_Mark (Node4)
12146 5 => False), -- Etype (Node5-Sem)
12148 N_Quantified_Expression =>
12149 (1 => True, -- Condition (Node1)
12150 2 => True, -- Iterator_Specification (Node2)
12151 3 => False, -- unused
12152 4 => True, -- Loop_Parameter_Specification (Node4)
12153 5 => False), -- Etype (Node5-Sem)
12155 N_Allocator =>
12156 (1 => False, -- Storage_Pool (Node1-Sem)
12157 2 => False, -- Procedure_To_Call (Node2-Sem)
12158 3 => True, -- Expression (Node3)
12159 4 => True, -- Subpool_Handle_Name (Node4)
12160 5 => False), -- Etype (Node5-Sem)
12162 N_Null_Statement =>
12163 (1 => False, -- unused
12164 2 => False, -- unused
12165 3 => False, -- unused
12166 4 => False, -- unused
12167 5 => False), -- unused
12169 N_Label =>
12170 (1 => True, -- Identifier (Node1)
12171 2 => False, -- unused
12172 3 => False, -- unused
12173 4 => False, -- unused
12174 5 => False), -- unused
12176 N_Assignment_Statement =>
12177 (1 => False, -- unused
12178 2 => True, -- Name (Node2)
12179 3 => True, -- Expression (Node3)
12180 4 => False, -- unused
12181 5 => False), -- unused
12183 N_Target_Name =>
12184 (1 => False, -- unused
12185 2 => False, -- unused
12186 3 => False, -- unused
12187 4 => False, -- unused
12188 5 => False), -- Etype (Node5-Sem)
12190 N_If_Statement =>
12191 (1 => True, -- Condition (Node1)
12192 2 => True, -- Then_Statements (List2)
12193 3 => True, -- Elsif_Parts (List3)
12194 4 => True, -- Else_Statements (List4)
12195 5 => True), -- End_Span (Uint5)
12197 N_Elsif_Part =>
12198 (1 => True, -- Condition (Node1)
12199 2 => True, -- Then_Statements (List2)
12200 3 => False, -- Condition_Actions (List3-Sem)
12201 4 => False, -- unused
12202 5 => False), -- unused
12204 N_Case_Expression =>
12205 (1 => False, -- unused
12206 2 => False, -- unused
12207 3 => True, -- Expression (Node3)
12208 4 => True, -- Alternatives (List4)
12209 5 => False), -- unused
12211 N_Case_Expression_Alternative =>
12212 (1 => False, -- Actions (List1-Sem)
12213 2 => False, -- unused
12214 3 => True, -- Expression (Node3)
12215 4 => True, -- Discrete_Choices (List4)
12216 5 => False), -- unused
12218 N_Case_Statement =>
12219 (1 => False, -- unused
12220 2 => False, -- unused
12221 3 => True, -- Expression (Node3)
12222 4 => True, -- Alternatives (List4)
12223 5 => True), -- End_Span (Uint5)
12225 N_Case_Statement_Alternative =>
12226 (1 => False, -- unused
12227 2 => False, -- unused
12228 3 => True, -- Statements (List3)
12229 4 => True, -- Discrete_Choices (List4)
12230 5 => False), -- unused
12232 N_Loop_Statement =>
12233 (1 => True, -- Identifier (Node1)
12234 2 => True, -- Iteration_Scheme (Node2)
12235 3 => True, -- Statements (List3)
12236 4 => True, -- End_Label (Node4)
12237 5 => False), -- unused
12239 N_Iteration_Scheme =>
12240 (1 => True, -- Condition (Node1)
12241 2 => True, -- Iterator_Specification (Node2)
12242 3 => False, -- Condition_Actions (List3-Sem)
12243 4 => True, -- Loop_Parameter_Specification (Node4)
12244 5 => False), -- unused
12246 N_Loop_Parameter_Specification =>
12247 (1 => True, -- Defining_Identifier (Node1)
12248 2 => False, -- unused
12249 3 => False, -- unused
12250 4 => True, -- Discrete_Subtype_Definition (Node4)
12251 5 => False), -- unused
12253 N_Iterator_Specification =>
12254 (1 => True, -- Defining_Identifier (Node1)
12255 2 => True, -- Name (Node2)
12256 3 => False, -- Unused
12257 4 => False, -- Unused
12258 5 => True), -- Subtype_Indication (Node5)
12260 N_Block_Statement =>
12261 (1 => True, -- Identifier (Node1)
12262 2 => True, -- Declarations (List2)
12263 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12264 4 => True, -- Handled_Statement_Sequence (Node4)
12265 5 => False), -- unused
12267 N_Exit_Statement =>
12268 (1 => True, -- Condition (Node1)
12269 2 => True, -- Name (Node2)
12270 3 => False, -- unused
12271 4 => False, -- unused
12272 5 => False), -- unused
12274 N_Goto_Statement =>
12275 (1 => False, -- unused
12276 2 => True, -- Name (Node2)
12277 3 => False, -- unused
12278 4 => False, -- unused
12279 5 => False), -- unused
12281 N_Subprogram_Declaration =>
12282 (1 => True, -- Specification (Node1)
12283 2 => False, -- unused
12284 3 => False, -- Body_To_Inline (Node3-Sem)
12285 4 => False, -- Parent_Spec (Node4-Sem)
12286 5 => False), -- Corresponding_Body (Node5-Sem)
12288 N_Abstract_Subprogram_Declaration =>
12289 (1 => True, -- Specification (Node1)
12290 2 => False, -- unused
12291 3 => False, -- unused
12292 4 => False, -- unused
12293 5 => False), -- unused
12295 N_Function_Specification =>
12296 (1 => True, -- Defining_Unit_Name (Node1)
12297 2 => False, -- unused
12298 3 => True, -- Parameter_Specifications (List3)
12299 4 => True, -- Result_Definition (Node4)
12300 5 => False), -- Generic_Parent (Node5-Sem)
12302 N_Procedure_Specification =>
12303 (1 => True, -- Defining_Unit_Name (Node1)
12304 2 => False, -- Null_Statement (Node2-Sem)
12305 3 => True, -- Parameter_Specifications (List3)
12306 4 => False, -- unused
12307 5 => False), -- Generic_Parent (Node5-Sem)
12309 N_Designator =>
12310 (1 => True, -- Identifier (Node1)
12311 2 => True, -- Name (Node2)
12312 3 => False, -- unused
12313 4 => False, -- unused
12314 5 => False), -- unused
12316 N_Defining_Program_Unit_Name =>
12317 (1 => True, -- Defining_Identifier (Node1)
12318 2 => True, -- Name (Node2)
12319 3 => False, -- unused
12320 4 => False, -- unused
12321 5 => False), -- unused
12323 N_Operator_Symbol =>
12324 (1 => True, -- Chars (Name1)
12325 2 => False, -- unused
12326 3 => True, -- Strval (Str3)
12327 4 => False, -- Entity (Node4-Sem)
12328 5 => False), -- Etype (Node5-Sem)
12330 N_Defining_Operator_Symbol =>
12331 (1 => True, -- Chars (Name1)
12332 2 => False, -- Next_Entity (Node2-Sem)
12333 3 => False, -- Scope (Node3-Sem)
12334 4 => False, -- unused
12335 5 => False), -- Etype (Node5-Sem)
12337 N_Parameter_Specification =>
12338 (1 => True, -- Defining_Identifier (Node1)
12339 2 => True, -- Parameter_Type (Node2)
12340 3 => True, -- Expression (Node3)
12341 4 => False, -- unused
12342 5 => False), -- Default_Expression (Node5-Sem)
12344 N_Subprogram_Body =>
12345 (1 => True, -- Specification (Node1)
12346 2 => True, -- Declarations (List2)
12347 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12348 4 => True, -- Handled_Statement_Sequence (Node4)
12349 5 => False), -- Corresponding_Spec (Node5-Sem)
12351 N_Expression_Function =>
12352 (1 => True, -- Specification (Node1)
12353 2 => False, -- unused
12354 3 => True, -- Expression (Node3)
12355 4 => False, -- unused
12356 5 => False), -- unused
12358 N_Procedure_Call_Statement =>
12359 (1 => False, -- Controlling_Argument (Node1-Sem)
12360 2 => True, -- Name (Node2)
12361 3 => True, -- Parameter_Associations (List3)
12362 4 => False, -- First_Named_Actual (Node4-Sem)
12363 5 => False), -- Etype (Node5-Sem)
12365 N_Function_Call =>
12366 (1 => False, -- Controlling_Argument (Node1-Sem)
12367 2 => True, -- Name (Node2)
12368 3 => True, -- Parameter_Associations (List3)
12369 4 => False, -- First_Named_Actual (Node4-Sem)
12370 5 => False), -- Etype (Node5-Sem)
12372 N_Parameter_Association =>
12373 (1 => False, -- unused
12374 2 => True, -- Selector_Name (Node2)
12375 3 => True, -- Explicit_Actual_Parameter (Node3)
12376 4 => False, -- Next_Named_Actual (Node4-Sem)
12377 5 => False), -- unused
12379 N_Simple_Return_Statement =>
12380 (1 => False, -- Storage_Pool (Node1-Sem)
12381 2 => False, -- Procedure_To_Call (Node2-Sem)
12382 3 => True, -- Expression (Node3)
12383 4 => False, -- unused
12384 5 => False), -- Return_Statement_Entity (Node5-Sem)
12386 N_Extended_Return_Statement =>
12387 (1 => False, -- Storage_Pool (Node1-Sem)
12388 2 => False, -- Procedure_To_Call (Node2-Sem)
12389 3 => True, -- Return_Object_Declarations (List3)
12390 4 => True, -- Handled_Statement_Sequence (Node4)
12391 5 => False), -- Return_Statement_Entity (Node5-Sem)
12393 N_Package_Declaration =>
12394 (1 => True, -- Specification (Node1)
12395 2 => False, -- unused
12396 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12397 4 => False, -- Parent_Spec (Node4-Sem)
12398 5 => False), -- Corresponding_Body (Node5-Sem)
12400 N_Package_Specification =>
12401 (1 => True, -- Defining_Unit_Name (Node1)
12402 2 => True, -- Visible_Declarations (List2)
12403 3 => True, -- Private_Declarations (List3)
12404 4 => True, -- End_Label (Node4)
12405 5 => False), -- Generic_Parent (Node5-Sem)
12407 N_Package_Body =>
12408 (1 => True, -- Defining_Unit_Name (Node1)
12409 2 => True, -- Declarations (List2)
12410 3 => False, -- unused
12411 4 => True, -- Handled_Statement_Sequence (Node4)
12412 5 => False), -- Corresponding_Spec (Node5-Sem)
12414 N_Private_Type_Declaration =>
12415 (1 => True, -- Defining_Identifier (Node1)
12416 2 => False, -- unused
12417 3 => False, -- unused
12418 4 => True, -- Discriminant_Specifications (List4)
12419 5 => False), -- unused
12421 N_Private_Extension_Declaration =>
12422 (1 => True, -- Defining_Identifier (Node1)
12423 2 => True, -- Interface_List (List2)
12424 3 => False, -- unused
12425 4 => True, -- Discriminant_Specifications (List4)
12426 5 => True), -- Subtype_Indication (Node5)
12428 N_Use_Package_Clause =>
12429 (1 => False, -- Prev_Use_Clause (Node1-Sem)
12430 2 => True, -- Name (Node2)
12431 3 => False, -- Next_Use_Clause (Node3-Sem)
12432 4 => False, -- Associated_Node (Node4-Sem)
12433 5 => False), -- Hidden_By_Use_Clause (Elist5-Sem)
12435 N_Use_Type_Clause =>
12436 (1 => False, -- Prev_Use_Clause (Node1-Sem)
12437 2 => False, -- Used_Operations (Elist2-Sem)
12438 3 => False, -- Next_Use_Clause (Node3-Sem)
12439 4 => True, -- Subtype_Mark (Node4)
12440 5 => False), -- Hidden_By_Use_Clause (Elist5-Sem)
12442 N_Object_Renaming_Declaration =>
12443 (1 => True, -- Defining_Identifier (Node1)
12444 2 => True, -- Name (Node2)
12445 3 => True, -- Access_Definition (Node3)
12446 4 => True, -- Subtype_Mark (Node4)
12447 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
12449 N_Exception_Renaming_Declaration =>
12450 (1 => True, -- Defining_Identifier (Node1)
12451 2 => True, -- Name (Node2)
12452 3 => False, -- unused
12453 4 => False, -- unused
12454 5 => False), -- unused
12456 N_Package_Renaming_Declaration =>
12457 (1 => True, -- Defining_Unit_Name (Node1)
12458 2 => True, -- Name (Node2)
12459 3 => False, -- unused
12460 4 => False, -- Parent_Spec (Node4-Sem)
12461 5 => False), -- unused
12463 N_Subprogram_Renaming_Declaration =>
12464 (1 => True, -- Specification (Node1)
12465 2 => True, -- Name (Node2)
12466 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
12467 4 => False, -- Parent_Spec (Node4-Sem)
12468 5 => False), -- Corresponding_Spec (Node5-Sem)
12470 N_Generic_Package_Renaming_Declaration =>
12471 (1 => True, -- Defining_Unit_Name (Node1)
12472 2 => True, -- Name (Node2)
12473 3 => False, -- unused
12474 4 => False, -- Parent_Spec (Node4-Sem)
12475 5 => False), -- unused
12477 N_Generic_Procedure_Renaming_Declaration =>
12478 (1 => True, -- Defining_Unit_Name (Node1)
12479 2 => True, -- Name (Node2)
12480 3 => False, -- unused
12481 4 => False, -- Parent_Spec (Node4-Sem)
12482 5 => False), -- unused
12484 N_Generic_Function_Renaming_Declaration =>
12485 (1 => True, -- Defining_Unit_Name (Node1)
12486 2 => True, -- Name (Node2)
12487 3 => False, -- unused
12488 4 => False, -- Parent_Spec (Node4-Sem)
12489 5 => False), -- unused
12491 N_Task_Type_Declaration =>
12492 (1 => True, -- Defining_Identifier (Node1)
12493 2 => True, -- Interface_List (List2)
12494 3 => True, -- Task_Definition (Node3)
12495 4 => True, -- Discriminant_Specifications (List4)
12496 5 => False), -- Corresponding_Body (Node5-Sem)
12498 N_Single_Task_Declaration =>
12499 (1 => True, -- Defining_Identifier (Node1)
12500 2 => True, -- Interface_List (List2)
12501 3 => True, -- Task_Definition (Node3)
12502 4 => False, -- unused
12503 5 => False), -- unused
12505 N_Task_Definition =>
12506 (1 => False, -- unused
12507 2 => True, -- Visible_Declarations (List2)
12508 3 => True, -- Private_Declarations (List3)
12509 4 => True, -- End_Label (Node4)
12510 5 => False), -- unused
12512 N_Task_Body =>
12513 (1 => True, -- Defining_Identifier (Node1)
12514 2 => True, -- Declarations (List2)
12515 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12516 4 => True, -- Handled_Statement_Sequence (Node4)
12517 5 => False), -- Corresponding_Spec (Node5-Sem)
12519 N_Protected_Type_Declaration =>
12520 (1 => True, -- Defining_Identifier (Node1)
12521 2 => True, -- Interface_List (List2)
12522 3 => True, -- Protected_Definition (Node3)
12523 4 => True, -- Discriminant_Specifications (List4)
12524 5 => False), -- Corresponding_Body (Node5-Sem)
12526 N_Single_Protected_Declaration =>
12527 (1 => True, -- Defining_Identifier (Node1)
12528 2 => True, -- Interface_List (List2)
12529 3 => True, -- Protected_Definition (Node3)
12530 4 => False, -- unused
12531 5 => False), -- unused
12533 N_Protected_Definition =>
12534 (1 => False, -- unused
12535 2 => True, -- Visible_Declarations (List2)
12536 3 => True, -- Private_Declarations (List3)
12537 4 => True, -- End_Label (Node4)
12538 5 => False), -- unused
12540 N_Protected_Body =>
12541 (1 => True, -- Defining_Identifier (Node1)
12542 2 => True, -- Declarations (List2)
12543 3 => False, -- unused
12544 4 => True, -- End_Label (Node4)
12545 5 => False), -- Corresponding_Spec (Node5-Sem)
12547 N_Entry_Declaration =>
12548 (1 => True, -- Defining_Identifier (Node1)
12549 2 => False, -- unused
12550 3 => True, -- Parameter_Specifications (List3)
12551 4 => True, -- Discrete_Subtype_Definition (Node4)
12552 5 => False), -- Corresponding_Body (Node5-Sem)
12554 N_Accept_Statement =>
12555 (1 => True, -- Entry_Direct_Name (Node1)
12556 2 => True, -- Declarations (List2)
12557 3 => True, -- Parameter_Specifications (List3)
12558 4 => True, -- Handled_Statement_Sequence (Node4)
12559 5 => True), -- Entry_Index (Node5)
12561 N_Entry_Body =>
12562 (1 => True, -- Defining_Identifier (Node1)
12563 2 => True, -- Declarations (List2)
12564 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12565 4 => True, -- Handled_Statement_Sequence (Node4)
12566 5 => True), -- Entry_Body_Formal_Part (Node5)
12568 N_Entry_Body_Formal_Part =>
12569 (1 => True, -- Condition (Node1)
12570 2 => False, -- unused
12571 3 => True, -- Parameter_Specifications (List3)
12572 4 => True, -- Entry_Index_Specification (Node4)
12573 5 => False), -- unused
12575 N_Entry_Index_Specification =>
12576 (1 => True, -- Defining_Identifier (Node1)
12577 2 => False, -- unused
12578 3 => False, -- unused
12579 4 => True, -- Discrete_Subtype_Definition (Node4)
12580 5 => False), -- unused
12582 N_Entry_Call_Statement =>
12583 (1 => False, -- unused
12584 2 => True, -- Name (Node2)
12585 3 => True, -- Parameter_Associations (List3)
12586 4 => False, -- First_Named_Actual (Node4-Sem)
12587 5 => False), -- unused
12589 N_Requeue_Statement =>
12590 (1 => False, -- unused
12591 2 => True, -- Name (Node2)
12592 3 => False, -- unused
12593 4 => False, -- unused
12594 5 => False), -- unused
12596 N_Delay_Until_Statement =>
12597 (1 => False, -- unused
12598 2 => False, -- unused
12599 3 => True, -- Expression (Node3)
12600 4 => False, -- unused
12601 5 => False), -- unused
12603 N_Delay_Relative_Statement =>
12604 (1 => False, -- unused
12605 2 => False, -- unused
12606 3 => True, -- Expression (Node3)
12607 4 => False, -- unused
12608 5 => False), -- unused
12610 N_Selective_Accept =>
12611 (1 => True, -- Select_Alternatives (List1)
12612 2 => False, -- unused
12613 3 => False, -- unused
12614 4 => True, -- Else_Statements (List4)
12615 5 => False), -- unused
12617 N_Accept_Alternative =>
12618 (1 => True, -- Condition (Node1)
12619 2 => True, -- Accept_Statement (Node2)
12620 3 => True, -- Statements (List3)
12621 4 => True, -- Pragmas_Before (List4)
12622 5 => False), -- Accept_Handler_Records (List5-Sem)
12624 N_Delay_Alternative =>
12625 (1 => True, -- Condition (Node1)
12626 2 => True, -- Delay_Statement (Node2)
12627 3 => True, -- Statements (List3)
12628 4 => True, -- Pragmas_Before (List4)
12629 5 => False), -- unused
12631 N_Terminate_Alternative =>
12632 (1 => True, -- Condition (Node1)
12633 2 => False, -- unused
12634 3 => False, -- unused
12635 4 => True, -- Pragmas_Before (List4)
12636 5 => True), -- Pragmas_After (List5)
12638 N_Timed_Entry_Call =>
12639 (1 => True, -- Entry_Call_Alternative (Node1)
12640 2 => False, -- unused
12641 3 => False, -- unused
12642 4 => True, -- Delay_Alternative (Node4)
12643 5 => False), -- unused
12645 N_Entry_Call_Alternative =>
12646 (1 => True, -- Entry_Call_Statement (Node1)
12647 2 => False, -- unused
12648 3 => True, -- Statements (List3)
12649 4 => True, -- Pragmas_Before (List4)
12650 5 => False), -- unused
12652 N_Conditional_Entry_Call =>
12653 (1 => True, -- Entry_Call_Alternative (Node1)
12654 2 => False, -- unused
12655 3 => False, -- unused
12656 4 => True, -- Else_Statements (List4)
12657 5 => False), -- unused
12659 N_Asynchronous_Select =>
12660 (1 => True, -- Triggering_Alternative (Node1)
12661 2 => True, -- Abortable_Part (Node2)
12662 3 => False, -- unused
12663 4 => False, -- unused
12664 5 => False), -- unused
12666 N_Triggering_Alternative =>
12667 (1 => True, -- Triggering_Statement (Node1)
12668 2 => False, -- unused
12669 3 => True, -- Statements (List3)
12670 4 => True, -- Pragmas_Before (List4)
12671 5 => False), -- unused
12673 N_Abortable_Part =>
12674 (1 => False, -- unused
12675 2 => False, -- unused
12676 3 => True, -- Statements (List3)
12677 4 => False, -- unused
12678 5 => False), -- unused
12680 N_Abort_Statement =>
12681 (1 => False, -- unused
12682 2 => True, -- Names (List2)
12683 3 => False, -- unused
12684 4 => False, -- unused
12685 5 => False), -- unused
12687 N_Compilation_Unit =>
12688 (1 => True, -- Context_Items (List1)
12689 2 => True, -- Unit (Node2)
12690 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
12691 4 => False, -- Library_Unit (Node4-Sem)
12692 5 => True), -- Aux_Decls_Node (Node5)
12694 N_Compilation_Unit_Aux =>
12695 (1 => True, -- Actions (List1)
12696 2 => True, -- Declarations (List2)
12697 3 => False, -- Default_Storage_Pool (Node3)
12698 4 => True, -- Config_Pragmas (List4)
12699 5 => True), -- Pragmas_After (List5)
12701 N_With_Clause =>
12702 (1 => False, -- unused
12703 2 => True, -- Name (Node2)
12704 3 => False, -- unused
12705 4 => False, -- Library_Unit (Node4-Sem)
12706 5 => False), -- Corresponding_Spec (Node5-Sem)
12708 N_Subprogram_Body_Stub =>
12709 (1 => True, -- Specification (Node1)
12710 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12711 3 => False, -- unused
12712 4 => False, -- Library_Unit (Node4-Sem)
12713 5 => False), -- Corresponding_Body (Node5-Sem)
12715 N_Package_Body_Stub =>
12716 (1 => True, -- Defining_Identifier (Node1)
12717 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12718 3 => False, -- unused
12719 4 => False, -- Library_Unit (Node4-Sem)
12720 5 => False), -- Corresponding_Body (Node5-Sem)
12722 N_Task_Body_Stub =>
12723 (1 => True, -- Defining_Identifier (Node1)
12724 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12725 3 => False, -- unused
12726 4 => False, -- Library_Unit (Node4-Sem)
12727 5 => False), -- Corresponding_Body (Node5-Sem)
12729 N_Protected_Body_Stub =>
12730 (1 => True, -- Defining_Identifier (Node1)
12731 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12732 3 => False, -- unused
12733 4 => False, -- Library_Unit (Node4-Sem)
12734 5 => False), -- Corresponding_Body (Node5-Sem)
12736 N_Subunit =>
12737 (1 => True, -- Proper_Body (Node1)
12738 2 => True, -- Name (Node2)
12739 3 => False, -- Corresponding_Stub (Node3-Sem)
12740 4 => False, -- unused
12741 5 => False), -- unused
12743 N_Exception_Declaration =>
12744 (1 => True, -- Defining_Identifier (Node1)
12745 2 => False, -- unused
12746 3 => False, -- Expression (Node3-Sem)
12747 4 => False, -- unused
12748 5 => False), -- unused
12750 N_Handled_Sequence_Of_Statements =>
12751 (1 => True, -- At_End_Proc (Node1)
12752 2 => False, -- First_Real_Statement (Node2-Sem)
12753 3 => True, -- Statements (List3)
12754 4 => True, -- End_Label (Node4)
12755 5 => True), -- Exception_Handlers (List5)
12757 N_Exception_Handler =>
12758 (1 => False, -- Local_Raise_Statements (Elist1)
12759 2 => True, -- Choice_Parameter (Node2)
12760 3 => True, -- Statements (List3)
12761 4 => True, -- Exception_Choices (List4)
12762 5 => False), -- Exception_Label (Node5)
12764 N_Raise_Statement =>
12765 (1 => False, -- unused
12766 2 => True, -- Name (Node2)
12767 3 => True, -- Expression (Node3)
12768 4 => False, -- unused
12769 5 => False), -- unused
12771 N_Raise_Expression =>
12772 (1 => False, -- unused
12773 2 => True, -- Name (Node2)
12774 3 => True, -- Expression (Node3)
12775 4 => False, -- unused
12776 5 => False), -- Etype (Node5-Sem)
12778 N_Generic_Subprogram_Declaration =>
12779 (1 => True, -- Specification (Node1)
12780 2 => True, -- Generic_Formal_Declarations (List2)
12781 3 => False, -- unused
12782 4 => False, -- Parent_Spec (Node4-Sem)
12783 5 => False), -- Corresponding_Body (Node5-Sem)
12785 N_Generic_Package_Declaration =>
12786 (1 => True, -- Specification (Node1)
12787 2 => True, -- Generic_Formal_Declarations (List2)
12788 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12789 4 => False, -- Parent_Spec (Node4-Sem)
12790 5 => False), -- Corresponding_Body (Node5-Sem)
12792 N_Package_Instantiation =>
12793 (1 => True, -- Defining_Unit_Name (Node1)
12794 2 => True, -- Name (Node2)
12795 3 => True, -- Generic_Associations (List3)
12796 4 => False, -- Parent_Spec (Node4-Sem)
12797 5 => False), -- Instance_Spec (Node5-Sem)
12799 N_Procedure_Instantiation =>
12800 (1 => True, -- Defining_Unit_Name (Node1)
12801 2 => True, -- Name (Node2)
12802 3 => True, -- Generic_Associations (List3)
12803 4 => False, -- Parent_Spec (Node4-Sem)
12804 5 => False), -- Instance_Spec (Node5-Sem)
12806 N_Function_Instantiation =>
12807 (1 => True, -- Defining_Unit_Name (Node1)
12808 2 => True, -- Name (Node2)
12809 3 => True, -- Generic_Associations (List3)
12810 4 => False, -- Parent_Spec (Node4-Sem)
12811 5 => False), -- Instance_Spec (Node5-Sem)
12813 N_Generic_Association =>
12814 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
12815 2 => True, -- Selector_Name (Node2)
12816 3 => False, -- unused
12817 4 => False, -- unused
12818 5 => False), -- unused
12820 N_Formal_Object_Declaration =>
12821 (1 => True, -- Defining_Identifier (Node1)
12822 2 => False, -- unused
12823 3 => True, -- Access_Definition (Node3)
12824 4 => True, -- Subtype_Mark (Node4)
12825 5 => True), -- Default_Expression (Node5)
12827 N_Formal_Type_Declaration =>
12828 (1 => True, -- Defining_Identifier (Node1)
12829 2 => False, -- unused
12830 3 => True, -- Formal_Type_Definition (Node3)
12831 4 => True, -- Discriminant_Specifications (List4)
12832 5 => False), -- unused
12834 N_Formal_Private_Type_Definition =>
12835 (1 => False, -- unused
12836 2 => False, -- unused
12837 3 => False, -- unused
12838 4 => False, -- unused
12839 5 => False), -- unused
12841 N_Formal_Incomplete_Type_Definition =>
12842 (1 => False, -- unused
12843 2 => False, -- unused
12844 3 => False, -- unused
12845 4 => False, -- unused
12846 5 => False), -- unused
12848 N_Formal_Derived_Type_Definition =>
12849 (1 => False, -- unused
12850 2 => True, -- Interface_List (List2)
12851 3 => False, -- unused
12852 4 => True, -- Subtype_Mark (Node4)
12853 5 => False), -- unused
12855 N_Formal_Discrete_Type_Definition =>
12856 (1 => False, -- unused
12857 2 => False, -- unused
12858 3 => False, -- unused
12859 4 => False, -- unused
12860 5 => False), -- unused
12862 N_Formal_Signed_Integer_Type_Definition =>
12863 (1 => False, -- unused
12864 2 => False, -- unused
12865 3 => False, -- unused
12866 4 => False, -- unused
12867 5 => False), -- unused
12869 N_Formal_Modular_Type_Definition =>
12870 (1 => False, -- unused
12871 2 => False, -- unused
12872 3 => False, -- unused
12873 4 => False, -- unused
12874 5 => False), -- unused
12876 N_Formal_Floating_Point_Definition =>
12877 (1 => False, -- unused
12878 2 => False, -- unused
12879 3 => False, -- unused
12880 4 => False, -- unused
12881 5 => False), -- unused
12883 N_Formal_Ordinary_Fixed_Point_Definition =>
12884 (1 => False, -- unused
12885 2 => False, -- unused
12886 3 => False, -- unused
12887 4 => False, -- unused
12888 5 => False), -- unused
12890 N_Formal_Decimal_Fixed_Point_Definition =>
12891 (1 => False, -- unused
12892 2 => False, -- unused
12893 3 => False, -- unused
12894 4 => False, -- unused
12895 5 => False), -- unused
12897 N_Formal_Concrete_Subprogram_Declaration =>
12898 (1 => True, -- Specification (Node1)
12899 2 => True, -- Default_Name (Node2)
12900 3 => False, -- unused
12901 4 => False, -- unused
12902 5 => False), -- unused
12904 N_Formal_Abstract_Subprogram_Declaration =>
12905 (1 => True, -- Specification (Node1)
12906 2 => True, -- Default_Name (Node2)
12907 3 => False, -- unused
12908 4 => False, -- unused
12909 5 => False), -- unused
12911 N_Formal_Package_Declaration =>
12912 (1 => True, -- Defining_Identifier (Node1)
12913 2 => True, -- Name (Node2)
12914 3 => True, -- Generic_Associations (List3)
12915 4 => False, -- unused
12916 5 => False), -- Instance_Spec (Node5-Sem)
12918 N_Attribute_Definition_Clause =>
12919 (1 => True, -- Chars (Name1)
12920 2 => True, -- Name (Node2)
12921 3 => True, -- Expression (Node3)
12922 4 => False, -- unused
12923 5 => False), -- Next_Rep_Item (Node5-Sem)
12925 N_Aspect_Specification =>
12926 (1 => True, -- Identifier (Node1)
12927 2 => False, -- Aspect_Rep_Item (Node2-Sem)
12928 3 => True, -- Expression (Node3)
12929 4 => False, -- Entity (Node4-Sem)
12930 5 => False), -- Next_Rep_Item (Node5-Sem)
12932 N_Enumeration_Representation_Clause =>
12933 (1 => True, -- Identifier (Node1)
12934 2 => False, -- unused
12935 3 => True, -- Array_Aggregate (Node3)
12936 4 => False, -- unused
12937 5 => False), -- Next_Rep_Item (Node5-Sem)
12939 N_Record_Representation_Clause =>
12940 (1 => True, -- Identifier (Node1)
12941 2 => True, -- Mod_Clause (Node2)
12942 3 => True, -- Component_Clauses (List3)
12943 4 => False, -- unused
12944 5 => False), -- Next_Rep_Item (Node5-Sem)
12946 N_Component_Clause =>
12947 (1 => True, -- Component_Name (Node1)
12948 2 => True, -- Position (Node2)
12949 3 => True, -- First_Bit (Node3)
12950 4 => True, -- Last_Bit (Node4)
12951 5 => False), -- unused
12953 N_Code_Statement =>
12954 (1 => False, -- unused
12955 2 => False, -- unused
12956 3 => True, -- Expression (Node3)
12957 4 => False, -- unused
12958 5 => False), -- unused
12960 N_Op_Rotate_Left =>
12961 (1 => True, -- Chars (Name1)
12962 2 => True, -- Left_Opnd (Node2)
12963 3 => True, -- Right_Opnd (Node3)
12964 4 => False, -- Entity (Node4-Sem)
12965 5 => False), -- Etype (Node5-Sem)
12967 N_Op_Rotate_Right =>
12968 (1 => True, -- Chars (Name1)
12969 2 => True, -- Left_Opnd (Node2)
12970 3 => True, -- Right_Opnd (Node3)
12971 4 => False, -- Entity (Node4-Sem)
12972 5 => False), -- Etype (Node5-Sem)
12974 N_Op_Shift_Left =>
12975 (1 => True, -- Chars (Name1)
12976 2 => True, -- Left_Opnd (Node2)
12977 3 => True, -- Right_Opnd (Node3)
12978 4 => False, -- Entity (Node4-Sem)
12979 5 => False), -- Etype (Node5-Sem)
12981 N_Op_Shift_Right_Arithmetic =>
12982 (1 => True, -- Chars (Name1)
12983 2 => True, -- Left_Opnd (Node2)
12984 3 => True, -- Right_Opnd (Node3)
12985 4 => False, -- Entity (Node4-Sem)
12986 5 => False), -- Etype (Node5-Sem)
12988 N_Op_Shift_Right =>
12989 (1 => True, -- Chars (Name1)
12990 2 => True, -- Left_Opnd (Node2)
12991 3 => True, -- Right_Opnd (Node3)
12992 4 => False, -- Entity (Node4-Sem)
12993 5 => False), -- Etype (Node5-Sem)
12995 N_Delta_Constraint =>
12996 (1 => False, -- unused
12997 2 => False, -- unused
12998 3 => True, -- Delta_Expression (Node3)
12999 4 => True, -- Range_Constraint (Node4)
13000 5 => False), -- unused
13002 N_At_Clause =>
13003 (1 => True, -- Identifier (Node1)
13004 2 => False, -- unused
13005 3 => True, -- Expression (Node3)
13006 4 => False, -- unused
13007 5 => False), -- unused
13009 N_Mod_Clause =>
13010 (1 => False, -- unused
13011 2 => False, -- unused
13012 3 => True, -- Expression (Node3)
13013 4 => True, -- Pragmas_Before (List4)
13014 5 => False), -- unused
13016 N_If_Expression =>
13017 (1 => True, -- Expressions (List1)
13018 2 => False, -- Then_Actions (List2-Sem)
13019 3 => False, -- Else_Actions (List3-Sem)
13020 4 => False, -- unused
13021 5 => False), -- Etype (Node5-Sem)
13023 N_Compound_Statement =>
13024 (1 => True, -- Actions (List1)
13025 2 => False, -- unused
13026 3 => False, -- unused
13027 4 => False, -- unused
13028 5 => False), -- unused
13030 N_Contract =>
13031 (1 => False, -- Pre_Post_Conditions (Node1-Sem)
13032 2 => False, -- Contract_Test_Cases (Node2-Sem)
13033 3 => False, -- Classifications (Node3-Sem)
13034 4 => False, -- unused
13035 5 => False), -- unused
13037 N_Expanded_Name =>
13038 (1 => True, -- Chars (Name1)
13039 2 => True, -- Selector_Name (Node2)
13040 3 => True, -- Prefix (Node3)
13041 4 => False, -- Entity (Node4-Sem)
13042 5 => False), -- Etype (Node5-Sem)
13044 N_Expression_With_Actions =>
13045 (1 => True, -- Actions (List1)
13046 2 => False, -- unused
13047 3 => True, -- Expression (Node3)
13048 4 => False, -- unused
13049 5 => False), -- unused
13051 N_Free_Statement =>
13052 (1 => False, -- Storage_Pool (Node1-Sem)
13053 2 => False, -- Procedure_To_Call (Node2-Sem)
13054 3 => True, -- Expression (Node3)
13055 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
13056 5 => False), -- unused
13058 N_Freeze_Entity =>
13059 (1 => True, -- Actions (List1)
13060 2 => False, -- Access_Types_To_Process (Elist2-Sem)
13061 3 => False, -- TSS_Elist (Elist3-Sem)
13062 4 => False, -- Entity (Node4-Sem)
13063 5 => False), -- First_Subtype_Link (Node5-Sem)
13065 N_Freeze_Generic_Entity =>
13066 (1 => False, -- unused
13067 2 => False, -- unused
13068 3 => False, -- unused
13069 4 => False, -- Entity (Node4-Sem)
13070 5 => False), -- unused
13072 N_Implicit_Label_Declaration =>
13073 (1 => True, -- Defining_Identifier (Node1)
13074 2 => False, -- Label_Construct (Node2-Sem)
13075 3 => False, -- unused
13076 4 => False, -- unused
13077 5 => False), -- unused
13079 N_Itype_Reference =>
13080 (1 => False, -- Itype (Node1-Sem)
13081 2 => False, -- unused
13082 3 => False, -- unused
13083 4 => False, -- unused
13084 5 => False), -- unused
13086 N_Raise_Constraint_Error =>
13087 (1 => True, -- Condition (Node1)
13088 2 => False, -- unused
13089 3 => True, -- Reason (Uint3)
13090 4 => False, -- unused
13091 5 => False), -- Etype (Node5-Sem)
13093 N_Raise_Program_Error =>
13094 (1 => True, -- Condition (Node1)
13095 2 => False, -- unused
13096 3 => True, -- Reason (Uint3)
13097 4 => False, -- unused
13098 5 => False), -- Etype (Node5-Sem)
13100 N_Raise_Storage_Error =>
13101 (1 => True, -- Condition (Node1)
13102 2 => False, -- unused
13103 3 => True, -- Reason (Uint3)
13104 4 => False, -- unused
13105 5 => False), -- Etype (Node5-Sem)
13107 N_Push_Constraint_Error_Label =>
13108 (1 => False, -- unused
13109 2 => False, -- unused
13110 3 => False, -- unused
13111 4 => False, -- unused
13112 5 => False), -- unused
13114 N_Push_Program_Error_Label =>
13115 (1 => False, -- unused
13116 2 => False, -- unused
13117 3 => False, -- unused
13118 4 => False, -- unused
13119 5 => False), -- Exception_Label
13121 N_Push_Storage_Error_Label =>
13122 (1 => False, -- unused
13123 2 => False, -- unused
13124 3 => False, -- unused
13125 4 => False, -- unused
13126 5 => False), -- Exception_Label
13128 N_Pop_Constraint_Error_Label =>
13129 (1 => False, -- unused
13130 2 => False, -- unused
13131 3 => False, -- unused
13132 4 => False, -- unused
13133 5 => False), -- unused
13135 N_Pop_Program_Error_Label =>
13136 (1 => False, -- unused
13137 2 => False, -- unused
13138 3 => False, -- unused
13139 4 => False, -- unused
13140 5 => False), -- unused
13142 N_Pop_Storage_Error_Label =>
13143 (1 => False, -- unused
13144 2 => False, -- unused
13145 3 => False, -- unused
13146 4 => False, -- unused
13147 5 => False), -- unused
13149 N_Reference =>
13150 (1 => False, -- unused
13151 2 => False, -- unused
13152 3 => True, -- Prefix (Node3)
13153 4 => False, -- unused
13154 5 => False), -- Etype (Node5-Sem)
13156 N_Unchecked_Expression =>
13157 (1 => False, -- unused
13158 2 => False, -- unused
13159 3 => True, -- Expression (Node3)
13160 4 => False, -- unused
13161 5 => False), -- Etype (Node5-Sem)
13163 N_Unchecked_Type_Conversion =>
13164 (1 => False, -- unused
13165 2 => False, -- unused
13166 3 => True, -- Expression (Node3)
13167 4 => True, -- Subtype_Mark (Node4)
13168 5 => False), -- Etype (Node5-Sem)
13170 N_Validate_Unchecked_Conversion =>
13171 (1 => False, -- Source_Type (Node1-Sem)
13172 2 => False, -- Target_Type (Node2-Sem)
13173 3 => False, -- unused
13174 4 => False, -- unused
13175 5 => False), -- unused
13177 -- Entries for SCIL nodes
13179 N_SCIL_Dispatch_Table_Tag_Init =>
13180 (1 => False, -- unused
13181 2 => False, -- unused
13182 3 => False, -- unused
13183 4 => False, -- SCIL_Entity (Node4-Sem)
13184 5 => False), -- unused
13186 N_SCIL_Dispatching_Call =>
13187 (1 => False, -- unused
13188 2 => False, -- SCIL_Target_Prim (Node2-Sem)
13189 3 => False, -- unused
13190 4 => False, -- SCIL_Entity (Node4-Sem)
13191 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
13193 N_SCIL_Membership_Test =>
13194 (1 => False, -- unused
13195 2 => False, -- unused
13196 3 => False, -- unused
13197 4 => False, -- SCIL_Entity (Node4-Sem)
13198 5 => False), -- SCIL_Tag_Value (Node5-Sem)
13200 N_Call_Marker =>
13201 (1 => False, -- Target (Node1-Sem)
13202 2 => False, -- unused
13203 3 => False, -- unused
13204 4 => False, -- unused
13205 5 => False), -- unused
13207 N_Variable_Reference_Marker =>
13208 (1 => False, -- Target (Node1-Sem)
13209 2 => False, -- unused
13210 3 => False, -- unused
13211 4 => False, -- unused
13212 5 => False), -- unused
13214 -- Entries for Empty, Error, and Unused. Even though these have a Chars
13215 -- field for debugging purposes, they are not really syntactic fields, so
13216 -- we mark all fields as unused.
13218 N_Empty =>
13219 (1 => False, -- unused
13220 2 => False, -- unused
13221 3 => False, -- unused
13222 4 => False, -- unused
13223 5 => False), -- unused
13225 N_Error =>
13226 (1 => False, -- unused
13227 2 => False, -- unused
13228 3 => False, -- unused
13229 4 => False, -- unused
13230 5 => False), -- unused
13232 N_Unused_At_Start =>
13233 (1 => False, -- unused
13234 2 => False, -- unused
13235 3 => False, -- unused
13236 4 => False, -- unused
13237 5 => False), -- unused
13239 N_Unused_At_End =>
13240 (1 => False, -- unused
13241 2 => False, -- unused
13242 3 => False, -- unused
13243 4 => False, -- unused
13244 5 => False)); -- unused
13246 --------------------
13247 -- Inline Pragmas --
13248 --------------------
13250 pragma Inline (Abort_Present);
13251 pragma Inline (Abortable_Part);
13252 pragma Inline (Abstract_Present);
13253 pragma Inline (Accept_Handler_Records);
13254 pragma Inline (Accept_Statement);
13255 pragma Inline (Access_Definition);
13256 pragma Inline (Access_To_Subprogram_Definition);
13257 pragma Inline (Access_Types_To_Process);
13258 pragma Inline (Actions);
13259 pragma Inline (Activation_Chain_Entity);
13260 pragma Inline (Acts_As_Spec);
13261 pragma Inline (Actual_Designated_Subtype);
13262 pragma Inline (Address_Warning_Posted);
13263 pragma Inline (Aggregate_Bounds);
13264 pragma Inline (Aliased_Present);
13265 pragma Inline (Alloc_For_BIP_Return);
13266 pragma Inline (All_Others);
13267 pragma Inline (All_Present);
13268 pragma Inline (Alternatives);
13269 pragma Inline (Ancestor_Part);
13270 pragma Inline (Atomic_Sync_Required);
13271 pragma Inline (Array_Aggregate);
13272 pragma Inline (Aspect_Rep_Item);
13273 pragma Inline (Assignment_OK);
13274 pragma Inline (Associated_Node);
13275 pragma Inline (At_End_Proc);
13276 pragma Inline (Attribute_Name);
13277 pragma Inline (Aux_Decls_Node);
13278 pragma Inline (Backwards_OK);
13279 pragma Inline (Bad_Is_Detected);
13280 pragma Inline (Body_To_Inline);
13281 pragma Inline (Body_Required);
13282 pragma Inline (By_Ref);
13283 pragma Inline (Box_Present);
13284 pragma Inline (Char_Literal_Value);
13285 pragma Inline (Chars);
13286 pragma Inline (Check_Address_Alignment);
13287 pragma Inline (Choice_Parameter);
13288 pragma Inline (Choices);
13289 pragma Inline (Class_Present);
13290 pragma Inline (Classifications);
13291 pragma Inline (Cleanup_Actions);
13292 pragma Inline (Comes_From_Extended_Return_Statement);
13293 pragma Inline (Compile_Time_Known_Aggregate);
13294 pragma Inline (Component_Associations);
13295 pragma Inline (Component_Clauses);
13296 pragma Inline (Component_Definition);
13297 pragma Inline (Component_Items);
13298 pragma Inline (Component_List);
13299 pragma Inline (Component_Name);
13300 pragma Inline (Componentwise_Assignment);
13301 pragma Inline (Condition);
13302 pragma Inline (Condition_Actions);
13303 pragma Inline (Config_Pragmas);
13304 pragma Inline (Constant_Present);
13305 pragma Inline (Constraint);
13306 pragma Inline (Constraints);
13307 pragma Inline (Context_Installed);
13308 pragma Inline (Context_Items);
13309 pragma Inline (Context_Pending);
13310 pragma Inline (Contract_Test_Cases);
13311 pragma Inline (Controlling_Argument);
13312 pragma Inline (Convert_To_Return_False);
13313 pragma Inline (Conversion_OK);
13314 pragma Inline (Corresponding_Aspect);
13315 pragma Inline (Corresponding_Body);
13316 pragma Inline (Corresponding_Formal_Spec);
13317 pragma Inline (Corresponding_Generic_Association);
13318 pragma Inline (Corresponding_Integer_Value);
13319 pragma Inline (Corresponding_Spec);
13320 pragma Inline (Corresponding_Spec_Of_Stub);
13321 pragma Inline (Corresponding_Stub);
13322 pragma Inline (Dcheck_Function);
13323 pragma Inline (Declarations);
13324 pragma Inline (Default_Expression);
13325 pragma Inline (Default_Storage_Pool);
13326 pragma Inline (Default_Name);
13327 pragma Inline (Defining_Identifier);
13328 pragma Inline (Defining_Unit_Name);
13329 pragma Inline (Delay_Alternative);
13330 pragma Inline (Delay_Statement);
13331 pragma Inline (Delta_Expression);
13332 pragma Inline (Digits_Expression);
13333 pragma Inline (Discr_Check_Funcs_Built);
13334 pragma Inline (Discrete_Choices);
13335 pragma Inline (Discrete_Range);
13336 pragma Inline (Discrete_Subtype_Definition);
13337 pragma Inline (Discrete_Subtype_Definitions);
13338 pragma Inline (Discriminant_Specifications);
13339 pragma Inline (Discriminant_Type);
13340 pragma Inline (Do_Accessibility_Check);
13341 pragma Inline (Do_Discriminant_Check);
13342 pragma Inline (Do_Length_Check);
13343 pragma Inline (Do_Division_Check);
13344 pragma Inline (Do_Overflow_Check);
13345 pragma Inline (Do_Range_Check);
13346 pragma Inline (Do_Storage_Check);
13347 pragma Inline (Do_Tag_Check);
13348 pragma Inline (Elaborate_All_Desirable);
13349 pragma Inline (Elaborate_All_Present);
13350 pragma Inline (Elaborate_Desirable);
13351 pragma Inline (Elaborate_Present);
13352 pragma Inline (Else_Actions);
13353 pragma Inline (Else_Statements);
13354 pragma Inline (Elsif_Parts);
13355 pragma Inline (Enclosing_Variant);
13356 pragma Inline (End_Label);
13357 pragma Inline (End_Span);
13358 pragma Inline (Entity);
13359 pragma Inline (Entity_Or_Associated_Node);
13360 pragma Inline (Entry_Body_Formal_Part);
13361 pragma Inline (Entry_Call_Alternative);
13362 pragma Inline (Entry_Call_Statement);
13363 pragma Inline (Entry_Direct_Name);
13364 pragma Inline (Entry_Index);
13365 pragma Inline (Entry_Index_Specification);
13366 pragma Inline (Etype);
13367 pragma Inline (Exception_Choices);
13368 pragma Inline (Exception_Handlers);
13369 pragma Inline (Exception_Junk);
13370 pragma Inline (Exception_Label);
13371 pragma Inline (Expansion_Delayed);
13372 pragma Inline (Explicit_Actual_Parameter);
13373 pragma Inline (Explicit_Generic_Actual_Parameter);
13374 pragma Inline (Expression);
13375 pragma Inline (Expression_Copy);
13376 pragma Inline (Expressions);
13377 pragma Inline (First_Bit);
13378 pragma Inline (First_Inlined_Subprogram);
13379 pragma Inline (First_Name);
13380 pragma Inline (First_Named_Actual);
13381 pragma Inline (First_Real_Statement);
13382 pragma Inline (First_Subtype_Link);
13383 pragma Inline (Float_Truncate);
13384 pragma Inline (Formal_Type_Definition);
13385 pragma Inline (Forwards_OK);
13386 pragma Inline (From_Aspect_Specification);
13387 pragma Inline (From_At_End);
13388 pragma Inline (From_At_Mod);
13389 pragma Inline (From_Conditional_Expression);
13390 pragma Inline (From_Default);
13391 pragma Inline (Generalized_Indexing);
13392 pragma Inline (Generic_Associations);
13393 pragma Inline (Generic_Formal_Declarations);
13394 pragma Inline (Generic_Parent);
13395 pragma Inline (Generic_Parent_Type);
13396 pragma Inline (Handled_Statement_Sequence);
13397 pragma Inline (Handler_List_Entry);
13398 pragma Inline (Has_Created_Identifier);
13399 pragma Inline (Has_Dereference_Action);
13400 pragma Inline (Has_Dynamic_Length_Check);
13401 pragma Inline (Has_Dynamic_Range_Check);
13402 pragma Inline (Has_Init_Expression);
13403 pragma Inline (Has_Local_Raise);
13404 pragma Inline (Has_Self_Reference);
13405 pragma Inline (Has_SP_Choice);
13406 pragma Inline (Has_No_Elaboration_Code);
13407 pragma Inline (Has_Pragma_Suppress_All);
13408 pragma Inline (Has_Private_View);
13409 pragma Inline (Has_Relative_Deadline_Pragma);
13410 pragma Inline (Has_Storage_Size_Pragma);
13411 pragma Inline (Has_Target_Names);
13412 pragma Inline (Has_Wide_Character);
13413 pragma Inline (Has_Wide_Wide_Character);
13414 pragma Inline (Header_Size_Added);
13415 pragma Inline (Hidden_By_Use_Clause);
13416 pragma Inline (High_Bound);
13417 pragma Inline (Identifier);
13418 pragma Inline (Implicit_With);
13419 pragma Inline (Interface_List);
13420 pragma Inline (Interface_Present);
13421 pragma Inline (Includes_Infinities);
13422 pragma Inline (Import_Interface_Present);
13423 pragma Inline (In_Present);
13424 pragma Inline (Incomplete_View);
13425 pragma Inline (Inherited_Discriminant);
13426 pragma Inline (Instance_Spec);
13427 pragma Inline (Intval);
13428 pragma Inline (Iterator_Specification);
13429 pragma Inline (Is_Abort_Block);
13430 pragma Inline (Is_Accessibility_Actual);
13431 pragma Inline (Is_Analyzed_Pragma);
13432 pragma Inline (Is_Asynchronous_Call_Block);
13433 pragma Inline (Is_Boolean_Aspect);
13434 pragma Inline (Is_Checked);
13435 pragma Inline (Is_Checked_Ghost_Pragma);
13436 pragma Inline (Is_Component_Left_Opnd);
13437 pragma Inline (Is_Component_Right_Opnd);
13438 pragma Inline (Is_Controlling_Actual);
13439 pragma Inline (Is_Declaration_Level_Node);
13440 pragma Inline (Is_Delayed_Aspect);
13441 pragma Inline (Is_Disabled);
13442 pragma Inline (Is_Dispatching_Call);
13443 pragma Inline (Is_Dynamic_Coextension);
13444 pragma Inline (Is_Effective_Use_Clause);
13445 pragma Inline (Is_Elaboration_Checks_OK_Node);
13446 pragma Inline (Is_Elaboration_Code);
13447 pragma Inline (Is_Elaboration_Warnings_OK_Node);
13448 pragma Inline (Is_Elsif);
13449 pragma Inline (Is_Entry_Barrier_Function);
13450 pragma Inline (Is_Expanded_Build_In_Place_Call);
13451 pragma Inline (Is_Expanded_Contract);
13452 pragma Inline (Is_Finalization_Wrapper);
13453 pragma Inline (Is_Folded_In_Parser);
13454 pragma Inline (Is_Generic_Contract_Pragma);
13455 pragma Inline (Is_Ignored);
13456 pragma Inline (Is_Ignored_Ghost_Pragma);
13457 pragma Inline (Is_In_Discriminant_Check);
13458 pragma Inline (Is_Inherited_Pragma);
13459 pragma Inline (Is_Initialization_Block);
13460 pragma Inline (Is_Known_Guaranteed_ABE);
13461 pragma Inline (Is_Machine_Number);
13462 pragma Inline (Is_Null_Loop);
13463 pragma Inline (Is_Overloaded);
13464 pragma Inline (Is_Power_Of_2_For_Shift);
13465 pragma Inline (Is_Prefixed_Call);
13466 pragma Inline (Is_Protected_Subprogram_Body);
13467 pragma Inline (Is_Qualified_Universal_Literal);
13468 pragma Inline (Is_Read);
13469 pragma Inline (Is_Source_Call);
13470 pragma Inline (Is_SPARK_Mode_On_Node);
13471 pragma Inline (Is_Static_Coextension);
13472 pragma Inline (Is_Static_Expression);
13473 pragma Inline (Is_Subprogram_Descriptor);
13474 pragma Inline (Is_Task_Allocation_Block);
13475 pragma Inline (Is_Task_Body_Procedure);
13476 pragma Inline (Is_Task_Master);
13477 pragma Inline (Is_Write);
13478 pragma Inline (Iteration_Scheme);
13479 pragma Inline (Itype);
13480 pragma Inline (Kill_Range_Check);
13481 pragma Inline (Last_Bit);
13482 pragma Inline (Last_Name);
13483 pragma Inline (Library_Unit);
13484 pragma Inline (Label_Construct);
13485 pragma Inline (Left_Opnd);
13486 pragma Inline (Limited_View_Installed);
13487 pragma Inline (Limited_Present);
13488 pragma Inline (Literals);
13489 pragma Inline (Local_Raise_Not_OK);
13490 pragma Inline (Local_Raise_Statements);
13491 pragma Inline (Loop_Actions);
13492 pragma Inline (Loop_Parameter_Specification);
13493 pragma Inline (Low_Bound);
13494 pragma Inline (Mod_Clause);
13495 pragma Inline (More_Ids);
13496 pragma Inline (Must_Be_Byte_Aligned);
13497 pragma Inline (Must_Not_Freeze);
13498 pragma Inline (Must_Not_Override);
13499 pragma Inline (Must_Override);
13500 pragma Inline (Name);
13501 pragma Inline (Names);
13502 pragma Inline (Next_Entity);
13503 pragma Inline (Next_Exit_Statement);
13504 pragma Inline (Next_Implicit_With);
13505 pragma Inline (Next_Named_Actual);
13506 pragma Inline (Next_Pragma);
13507 pragma Inline (Next_Rep_Item);
13508 pragma Inline (Next_Use_Clause);
13509 pragma Inline (No_Ctrl_Actions);
13510 pragma Inline (No_Elaboration_Check);
13511 pragma Inline (No_Entities_Ref_In_Spec);
13512 pragma Inline (No_Initialization);
13513 pragma Inline (No_Minimize_Eliminate);
13514 pragma Inline (No_Side_Effect_Removal);
13515 pragma Inline (No_Truncation);
13516 pragma Inline (Null_Excluding_Subtype);
13517 pragma Inline (Null_Exclusion_Present);
13518 pragma Inline (Null_Exclusion_In_Return_Present);
13519 pragma Inline (Null_Present);
13520 pragma Inline (Null_Record_Present);
13521 pragma Inline (Null_Statement);
13522 pragma Inline (Object_Definition);
13523 pragma Inline (Of_Present);
13524 pragma Inline (Original_Discriminant);
13525 pragma Inline (Original_Entity);
13526 pragma Inline (Others_Discrete_Choices);
13527 pragma Inline (Out_Present);
13528 pragma Inline (Parameter_Associations);
13529 pragma Inline (Parameter_Specifications);
13530 pragma Inline (Parameter_Type);
13531 pragma Inline (Parent_Spec);
13532 pragma Inline (Parent_With);
13533 pragma Inline (Position);
13534 pragma Inline (Pragma_Argument_Associations);
13535 pragma Inline (Pragma_Identifier);
13536 pragma Inline (Pragmas_After);
13537 pragma Inline (Pragmas_Before);
13538 pragma Inline (Pre_Post_Conditions);
13539 pragma Inline (Prefix);
13540 pragma Inline (Premature_Use);
13541 pragma Inline (Present_Expr);
13542 pragma Inline (Prev_Ids);
13543 pragma Inline (Prev_Use_Clause);
13544 pragma Inline (Print_In_Hex);
13545 pragma Inline (Private_Declarations);
13546 pragma Inline (Private_Present);
13547 pragma Inline (Procedure_To_Call);
13548 pragma Inline (Proper_Body);
13549 pragma Inline (Protected_Definition);
13550 pragma Inline (Protected_Present);
13551 pragma Inline (Raises_Constraint_Error);
13552 pragma Inline (Range_Constraint);
13553 pragma Inline (Range_Expression);
13554 pragma Inline (Real_Range_Specification);
13555 pragma Inline (Realval);
13556 pragma Inline (Reason);
13557 pragma Inline (Record_Extension_Part);
13558 pragma Inline (Redundant_Use);
13559 pragma Inline (Renaming_Exception);
13560 pragma Inline (Result_Definition);
13561 pragma Inline (Return_Object_Declarations);
13562 pragma Inline (Return_Statement_Entity);
13563 pragma Inline (Reverse_Present);
13564 pragma Inline (Right_Opnd);
13565 pragma Inline (Rounded_Result);
13566 pragma Inline (SCIL_Controlling_Tag);
13567 pragma Inline (SCIL_Entity);
13568 pragma Inline (SCIL_Tag_Value);
13569 pragma Inline (SCIL_Target_Prim);
13570 pragma Inline (Scope);
13571 pragma Inline (Select_Alternatives);
13572 pragma Inline (Selector_Name);
13573 pragma Inline (Selector_Names);
13574 pragma Inline (Shift_Count_OK);
13575 pragma Inline (Source_Type);
13576 pragma Inline (Specification);
13577 pragma Inline (Split_PPC);
13578 pragma Inline (Statements);
13579 pragma Inline (Storage_Pool);
13580 pragma Inline (Subpool_Handle_Name);
13581 pragma Inline (Strval);
13582 pragma Inline (Subtype_Indication);
13583 pragma Inline (Subtype_Mark);
13584 pragma Inline (Subtype_Marks);
13585 pragma Inline (Suppress_Assignment_Checks);
13586 pragma Inline (Suppress_Loop_Warnings);
13587 pragma Inline (Synchronized_Present);
13588 pragma Inline (Tagged_Present);
13589 pragma Inline (Target);
13590 pragma Inline (Target_Type);
13591 pragma Inline (Task_Definition);
13592 pragma Inline (Task_Present);
13593 pragma Inline (Then_Actions);
13594 pragma Inline (Then_Statements);
13595 pragma Inline (Triggering_Alternative);
13596 pragma Inline (Triggering_Statement);
13597 pragma Inline (Treat_Fixed_As_Integer);
13598 pragma Inline (TSS_Elist);
13599 pragma Inline (Type_Definition);
13600 pragma Inline (Uneval_Old_Accept);
13601 pragma Inline (Uneval_Old_Warn);
13602 pragma Inline (Unit);
13603 pragma Inline (Uninitialized_Variable);
13604 pragma Inline (Unknown_Discriminants_Present);
13605 pragma Inline (Unreferenced_In_Spec);
13606 pragma Inline (Variant_Part);
13607 pragma Inline (Variants);
13608 pragma Inline (Visible_Declarations);
13609 pragma Inline (Used_Operations);
13610 pragma Inline (Was_Attribute_Reference);
13611 pragma Inline (Was_Expression_Function);
13612 pragma Inline (Was_Originally_Stub);
13613 pragma Inline (Withed_Body);
13615 pragma Inline (Set_Abort_Present);
13616 pragma Inline (Set_Abortable_Part);
13617 pragma Inline (Set_Abstract_Present);
13618 pragma Inline (Set_Accept_Handler_Records);
13619 pragma Inline (Set_Accept_Statement);
13620 pragma Inline (Set_Access_Definition);
13621 pragma Inline (Set_Access_To_Subprogram_Definition);
13622 pragma Inline (Set_Access_Types_To_Process);
13623 pragma Inline (Set_Actions);
13624 pragma Inline (Set_Activation_Chain_Entity);
13625 pragma Inline (Set_Acts_As_Spec);
13626 pragma Inline (Set_Actual_Designated_Subtype);
13627 pragma Inline (Set_Address_Warning_Posted);
13628 pragma Inline (Set_Aggregate_Bounds);
13629 pragma Inline (Set_Aliased_Present);
13630 pragma Inline (Set_Alloc_For_BIP_Return);
13631 pragma Inline (Set_All_Others);
13632 pragma Inline (Set_All_Present);
13633 pragma Inline (Set_Alternatives);
13634 pragma Inline (Set_Ancestor_Part);
13635 pragma Inline (Set_Array_Aggregate);
13636 pragma Inline (Set_Aspect_Rep_Item);
13637 pragma Inline (Set_Assignment_OK);
13638 pragma Inline (Set_Associated_Node);
13639 pragma Inline (Set_At_End_Proc);
13640 pragma Inline (Set_Atomic_Sync_Required);
13641 pragma Inline (Set_Attribute_Name);
13642 pragma Inline (Set_Aux_Decls_Node);
13643 pragma Inline (Set_Backwards_OK);
13644 pragma Inline (Set_Bad_Is_Detected);
13645 pragma Inline (Set_Body_Required);
13646 pragma Inline (Set_Body_To_Inline);
13647 pragma Inline (Set_Box_Present);
13648 pragma Inline (Set_By_Ref);
13649 pragma Inline (Set_Char_Literal_Value);
13650 pragma Inline (Set_Chars);
13651 pragma Inline (Set_Check_Address_Alignment);
13652 pragma Inline (Set_Choice_Parameter);
13653 pragma Inline (Set_Choices);
13654 pragma Inline (Set_Class_Present);
13655 pragma Inline (Set_Classifications);
13656 pragma Inline (Set_Cleanup_Actions);
13657 pragma Inline (Set_Comes_From_Extended_Return_Statement);
13658 pragma Inline (Set_Compile_Time_Known_Aggregate);
13659 pragma Inline (Set_Component_Associations);
13660 pragma Inline (Set_Component_Clauses);
13661 pragma Inline (Set_Component_Definition);
13662 pragma Inline (Set_Component_Items);
13663 pragma Inline (Set_Component_List);
13664 pragma Inline (Set_Component_Name);
13665 pragma Inline (Set_Componentwise_Assignment);
13666 pragma Inline (Set_Condition);
13667 pragma Inline (Set_Condition_Actions);
13668 pragma Inline (Set_Config_Pragmas);
13669 pragma Inline (Set_Constant_Present);
13670 pragma Inline (Set_Constraint);
13671 pragma Inline (Set_Constraints);
13672 pragma Inline (Set_Context_Installed);
13673 pragma Inline (Set_Context_Items);
13674 pragma Inline (Set_Context_Pending);
13675 pragma Inline (Set_Contract_Test_Cases);
13676 pragma Inline (Set_Controlling_Argument);
13677 pragma Inline (Set_Conversion_OK);
13678 pragma Inline (Set_Convert_To_Return_False);
13679 pragma Inline (Set_Corresponding_Aspect);
13680 pragma Inline (Set_Corresponding_Body);
13681 pragma Inline (Set_Corresponding_Formal_Spec);
13682 pragma Inline (Set_Corresponding_Generic_Association);
13683 pragma Inline (Set_Corresponding_Integer_Value);
13684 pragma Inline (Set_Corresponding_Spec);
13685 pragma Inline (Set_Corresponding_Spec_Of_Stub);
13686 pragma Inline (Set_Corresponding_Stub);
13687 pragma Inline (Set_Dcheck_Function);
13688 pragma Inline (Set_Declarations);
13689 pragma Inline (Set_Default_Expression);
13690 pragma Inline (Set_Default_Name);
13691 pragma Inline (Set_Default_Storage_Pool);
13692 pragma Inline (Set_Defining_Identifier);
13693 pragma Inline (Set_Defining_Unit_Name);
13694 pragma Inline (Set_Delay_Alternative);
13695 pragma Inline (Set_Delay_Statement);
13696 pragma Inline (Set_Delta_Expression);
13697 pragma Inline (Set_Digits_Expression);
13698 pragma Inline (Set_Discr_Check_Funcs_Built);
13699 pragma Inline (Set_Discrete_Choices);
13700 pragma Inline (Set_Discrete_Range);
13701 pragma Inline (Set_Discrete_Subtype_Definition);
13702 pragma Inline (Set_Discrete_Subtype_Definitions);
13703 pragma Inline (Set_Discriminant_Specifications);
13704 pragma Inline (Set_Discriminant_Type);
13705 pragma Inline (Set_Do_Accessibility_Check);
13706 pragma Inline (Set_Do_Discriminant_Check);
13707 pragma Inline (Set_Do_Division_Check);
13708 pragma Inline (Set_Do_Length_Check);
13709 pragma Inline (Set_Do_Overflow_Check);
13710 pragma Inline (Set_Do_Range_Check);
13711 pragma Inline (Set_Do_Storage_Check);
13712 pragma Inline (Set_Do_Tag_Check);
13713 pragma Inline (Set_Elaborate_All_Desirable);
13714 pragma Inline (Set_Elaborate_All_Present);
13715 pragma Inline (Set_Elaborate_Desirable);
13716 pragma Inline (Set_Elaborate_Present);
13717 pragma Inline (Set_Else_Actions);
13718 pragma Inline (Set_Else_Statements);
13719 pragma Inline (Set_Elsif_Parts);
13720 pragma Inline (Set_Enclosing_Variant);
13721 pragma Inline (Set_End_Label);
13722 pragma Inline (Set_End_Span);
13723 pragma Inline (Set_Entity);
13724 pragma Inline (Set_Entry_Body_Formal_Part);
13725 pragma Inline (Set_Entry_Call_Alternative);
13726 pragma Inline (Set_Entry_Call_Statement);
13727 pragma Inline (Set_Entry_Direct_Name);
13728 pragma Inline (Set_Entry_Index);
13729 pragma Inline (Set_Entry_Index_Specification);
13730 pragma Inline (Set_Etype);
13731 pragma Inline (Set_Exception_Choices);
13732 pragma Inline (Set_Exception_Handlers);
13733 pragma Inline (Set_Exception_Junk);
13734 pragma Inline (Set_Exception_Label);
13735 pragma Inline (Set_Expansion_Delayed);
13736 pragma Inline (Set_Explicit_Actual_Parameter);
13737 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
13738 pragma Inline (Set_Expression);
13739 pragma Inline (Set_Expression_Copy);
13740 pragma Inline (Set_Expressions);
13741 pragma Inline (Set_First_Bit);
13742 pragma Inline (Set_First_Inlined_Subprogram);
13743 pragma Inline (Set_First_Name);
13744 pragma Inline (Set_First_Named_Actual);
13745 pragma Inline (Set_First_Real_Statement);
13746 pragma Inline (Set_First_Subtype_Link);
13747 pragma Inline (Set_Float_Truncate);
13748 pragma Inline (Set_Formal_Type_Definition);
13749 pragma Inline (Set_Forwards_OK);
13750 pragma Inline (Set_From_Aspect_Specification);
13751 pragma Inline (Set_From_At_End);
13752 pragma Inline (Set_From_At_Mod);
13753 pragma Inline (Set_From_Conditional_Expression);
13754 pragma Inline (Set_From_Default);
13755 pragma Inline (Set_Generalized_Indexing);
13756 pragma Inline (Set_Generic_Associations);
13757 pragma Inline (Set_Generic_Formal_Declarations);
13758 pragma Inline (Set_Generic_Parent);
13759 pragma Inline (Set_Generic_Parent_Type);
13760 pragma Inline (Set_Handled_Statement_Sequence);
13761 pragma Inline (Set_Handler_List_Entry);
13762 pragma Inline (Set_Has_Created_Identifier);
13763 pragma Inline (Set_Has_Dereference_Action);
13764 pragma Inline (Set_Has_Dynamic_Length_Check);
13765 pragma Inline (Set_Has_Dynamic_Range_Check);
13766 pragma Inline (Set_Has_Init_Expression);
13767 pragma Inline (Set_Has_Local_Raise);
13768 pragma Inline (Set_Has_No_Elaboration_Code);
13769 pragma Inline (Set_Has_Pragma_Suppress_All);
13770 pragma Inline (Set_Has_Private_View);
13771 pragma Inline (Set_Has_Relative_Deadline_Pragma);
13772 pragma Inline (Set_Has_Self_Reference);
13773 pragma Inline (Set_Has_SP_Choice);
13774 pragma Inline (Set_Has_Storage_Size_Pragma);
13775 pragma Inline (Set_Has_Target_Names);
13776 pragma Inline (Set_Has_Wide_Character);
13777 pragma Inline (Set_Has_Wide_Wide_Character);
13778 pragma Inline (Set_Header_Size_Added);
13779 pragma Inline (Set_Hidden_By_Use_Clause);
13780 pragma Inline (Set_High_Bound);
13781 pragma Inline (Set_Identifier);
13782 pragma Inline (Set_Implicit_With);
13783 pragma Inline (Set_Import_Interface_Present);
13784 pragma Inline (Set_In_Present);
13785 pragma Inline (Set_Includes_Infinities);
13786 pragma Inline (Set_Incomplete_View);
13787 pragma Inline (Set_Inherited_Discriminant);
13788 pragma Inline (Set_Instance_Spec);
13789 pragma Inline (Set_Interface_List);
13790 pragma Inline (Set_Interface_Present);
13791 pragma Inline (Set_Intval);
13792 pragma Inline (Set_Is_Abort_Block);
13793 pragma Inline (Set_Is_Accessibility_Actual);
13794 pragma Inline (Set_Is_Analyzed_Pragma);
13795 pragma Inline (Set_Is_Asynchronous_Call_Block);
13796 pragma Inline (Set_Is_Boolean_Aspect);
13797 pragma Inline (Set_Is_Checked);
13798 pragma Inline (Set_Is_Checked_Ghost_Pragma);
13799 pragma Inline (Set_Is_Component_Left_Opnd);
13800 pragma Inline (Set_Is_Component_Right_Opnd);
13801 pragma Inline (Set_Is_Controlling_Actual);
13802 pragma Inline (Set_Is_Declaration_Level_Node);
13803 pragma Inline (Set_Is_Delayed_Aspect);
13804 pragma Inline (Set_Is_Disabled);
13805 pragma Inline (Set_Is_Dispatching_Call);
13806 pragma Inline (Set_Is_Dynamic_Coextension);
13807 pragma Inline (Set_Is_Effective_Use_Clause);
13808 pragma Inline (Set_Is_Elaboration_Checks_OK_Node);
13809 pragma Inline (Set_Is_Elaboration_Code);
13810 pragma Inline (Set_Is_Elaboration_Warnings_OK_Node);
13811 pragma Inline (Set_Is_Elsif);
13812 pragma Inline (Set_Is_Entry_Barrier_Function);
13813 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
13814 pragma Inline (Set_Is_Expanded_Contract);
13815 pragma Inline (Set_Is_Finalization_Wrapper);
13816 pragma Inline (Set_Is_Folded_In_Parser);
13817 pragma Inline (Set_Is_Generic_Contract_Pragma);
13818 pragma Inline (Set_Is_Ignored);
13819 pragma Inline (Set_Is_Ignored_Ghost_Pragma);
13820 pragma Inline (Set_Is_In_Discriminant_Check);
13821 pragma Inline (Set_Is_Inherited_Pragma);
13822 pragma Inline (Set_Is_Initialization_Block);
13823 pragma Inline (Set_Is_Known_Guaranteed_ABE);
13824 pragma Inline (Set_Is_Machine_Number);
13825 pragma Inline (Set_Is_Null_Loop);
13826 pragma Inline (Set_Is_Overloaded);
13827 pragma Inline (Set_Is_Power_Of_2_For_Shift);
13828 pragma Inline (Set_Is_Prefixed_Call);
13829 pragma Inline (Set_Is_Protected_Subprogram_Body);
13830 pragma Inline (Set_Is_Qualified_Universal_Literal);
13831 pragma Inline (Set_Is_Read);
13832 pragma Inline (Set_Is_Source_Call);
13833 pragma Inline (Set_Is_SPARK_Mode_On_Node);
13834 pragma Inline (Set_Is_Static_Coextension);
13835 pragma Inline (Set_Is_Static_Expression);
13836 pragma Inline (Set_Is_Subprogram_Descriptor);
13837 pragma Inline (Set_Is_Task_Allocation_Block);
13838 pragma Inline (Set_Is_Task_Body_Procedure);
13839 pragma Inline (Set_Is_Task_Master);
13840 pragma Inline (Set_Is_Write);
13841 pragma Inline (Set_Iteration_Scheme);
13842 pragma Inline (Set_Iterator_Specification);
13843 pragma Inline (Set_Itype);
13844 pragma Inline (Set_Kill_Range_Check);
13845 pragma Inline (Set_Label_Construct);
13846 pragma Inline (Set_Last_Bit);
13847 pragma Inline (Set_Last_Name);
13848 pragma Inline (Set_Left_Opnd);
13849 pragma Inline (Set_Library_Unit);
13850 pragma Inline (Set_Limited_Present);
13851 pragma Inline (Set_Limited_View_Installed);
13852 pragma Inline (Set_Literals);
13853 pragma Inline (Set_Local_Raise_Not_OK);
13854 pragma Inline (Set_Local_Raise_Statements);
13855 pragma Inline (Set_Loop_Actions);
13856 pragma Inline (Set_Loop_Parameter_Specification);
13857 pragma Inline (Set_Low_Bound);
13858 pragma Inline (Set_Mod_Clause);
13859 pragma Inline (Set_More_Ids);
13860 pragma Inline (Set_Must_Be_Byte_Aligned);
13861 pragma Inline (Set_Must_Not_Freeze);
13862 pragma Inline (Set_Must_Not_Override);
13863 pragma Inline (Set_Must_Override);
13864 pragma Inline (Set_Name);
13865 pragma Inline (Set_Names);
13866 pragma Inline (Set_Next_Entity);
13867 pragma Inline (Set_Next_Exit_Statement);
13868 pragma Inline (Set_Next_Implicit_With);
13869 pragma Inline (Set_Next_Named_Actual);
13870 pragma Inline (Set_Next_Pragma);
13871 pragma Inline (Set_Next_Rep_Item);
13872 pragma Inline (Set_Next_Use_Clause);
13873 pragma Inline (Set_No_Ctrl_Actions);
13874 pragma Inline (Set_No_Elaboration_Check);
13875 pragma Inline (Set_No_Entities_Ref_In_Spec);
13876 pragma Inline (Set_No_Initialization);
13877 pragma Inline (Set_No_Minimize_Eliminate);
13878 pragma Inline (Set_No_Side_Effect_Removal);
13879 pragma Inline (Set_No_Truncation);
13880 pragma Inline (Set_Null_Excluding_Subtype);
13881 pragma Inline (Set_Null_Exclusion_Present);
13882 pragma Inline (Set_Null_Exclusion_In_Return_Present);
13883 pragma Inline (Set_Null_Present);
13884 pragma Inline (Set_Null_Record_Present);
13885 pragma Inline (Set_Null_Statement);
13886 pragma Inline (Set_Object_Definition);
13887 pragma Inline (Set_Of_Present);
13888 pragma Inline (Set_Original_Discriminant);
13889 pragma Inline (Set_Original_Entity);
13890 pragma Inline (Set_Others_Discrete_Choices);
13891 pragma Inline (Set_Out_Present);
13892 pragma Inline (Set_Parameter_Associations);
13893 pragma Inline (Set_Parameter_Specifications);
13894 pragma Inline (Set_Parameter_Type);
13895 pragma Inline (Set_Parent_Spec);
13896 pragma Inline (Set_Parent_With);
13897 pragma Inline (Set_Position);
13898 pragma Inline (Set_Pragma_Argument_Associations);
13899 pragma Inline (Set_Pragma_Identifier);
13900 pragma Inline (Set_Pragmas_After);
13901 pragma Inline (Set_Pragmas_Before);
13902 pragma Inline (Set_Pre_Post_Conditions);
13903 pragma Inline (Set_Prefix);
13904 pragma Inline (Set_Premature_Use);
13905 pragma Inline (Set_Present_Expr);
13906 pragma Inline (Set_Prev_Ids);
13907 pragma Inline (Set_Prev_Use_Clause);
13908 pragma Inline (Set_Print_In_Hex);
13909 pragma Inline (Set_Private_Declarations);
13910 pragma Inline (Set_Private_Present);
13911 pragma Inline (Set_Procedure_To_Call);
13912 pragma Inline (Set_Proper_Body);
13913 pragma Inline (Set_Protected_Definition);
13914 pragma Inline (Set_Protected_Present);
13915 pragma Inline (Set_Raises_Constraint_Error);
13916 pragma Inline (Set_Range_Constraint);
13917 pragma Inline (Set_Range_Expression);
13918 pragma Inline (Set_Real_Range_Specification);
13919 pragma Inline (Set_Realval);
13920 pragma Inline (Set_Reason);
13921 pragma Inline (Set_Record_Extension_Part);
13922 pragma Inline (Set_Redundant_Use);
13923 pragma Inline (Set_Renaming_Exception);
13924 pragma Inline (Set_Result_Definition);
13925 pragma Inline (Set_Return_Object_Declarations);
13926 pragma Inline (Set_Reverse_Present);
13927 pragma Inline (Set_Right_Opnd);
13928 pragma Inline (Set_Rounded_Result);
13929 pragma Inline (Set_SCIL_Controlling_Tag);
13930 pragma Inline (Set_SCIL_Entity);
13931 pragma Inline (Set_SCIL_Tag_Value);
13932 pragma Inline (Set_SCIL_Target_Prim);
13933 pragma Inline (Set_Scope);
13934 pragma Inline (Set_Select_Alternatives);
13935 pragma Inline (Set_Selector_Name);
13936 pragma Inline (Set_Selector_Names);
13937 pragma Inline (Set_Shift_Count_OK);
13938 pragma Inline (Set_Source_Type);
13939 pragma Inline (Set_Split_PPC);
13940 pragma Inline (Set_Statements);
13941 pragma Inline (Set_Storage_Pool);
13942 pragma Inline (Set_Strval);
13943 pragma Inline (Set_Subpool_Handle_Name);
13944 pragma Inline (Set_Subtype_Indication);
13945 pragma Inline (Set_Subtype_Mark);
13946 pragma Inline (Set_Subtype_Marks);
13947 pragma Inline (Set_Suppress_Assignment_Checks);
13948 pragma Inline (Set_Suppress_Loop_Warnings);
13949 pragma Inline (Set_Synchronized_Present);
13950 pragma Inline (Set_TSS_Elist);
13951 pragma Inline (Set_Tagged_Present);
13952 pragma Inline (Set_Target);
13953 pragma Inline (Set_Target_Type);
13954 pragma Inline (Set_Task_Definition);
13955 pragma Inline (Set_Task_Present);
13956 pragma Inline (Set_Then_Actions);
13957 pragma Inline (Set_Then_Statements);
13958 pragma Inline (Set_Treat_Fixed_As_Integer);
13959 pragma Inline (Set_Triggering_Alternative);
13960 pragma Inline (Set_Triggering_Statement);
13961 pragma Inline (Set_Type_Definition);
13962 pragma Inline (Set_Uneval_Old_Accept);
13963 pragma Inline (Set_Uneval_Old_Warn);
13964 pragma Inline (Set_Unit);
13965 pragma Inline (Set_Uninitialized_Variable);
13966 pragma Inline (Set_Unknown_Discriminants_Present);
13967 pragma Inline (Set_Unreferenced_In_Spec);
13968 pragma Inline (Set_Used_Operations);
13969 pragma Inline (Set_Variant_Part);
13970 pragma Inline (Set_Variants);
13971 pragma Inline (Set_Visible_Declarations);
13972 pragma Inline (Set_Was_Attribute_Reference);
13973 pragma Inline (Set_Was_Expression_Function);
13974 pragma Inline (Set_Was_Originally_Stub);
13975 pragma Inline (Set_Withed_Body);
13977 end Sinfo;