1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2014, Free Software Foundation, Inc. --
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. --
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. --
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/>. --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
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;
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:
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
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
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
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
126 -- The above steps are done automatically by the build scripts when you do
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
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
209 -- -- processing for case statement alternative Alt
211 -- Alt := Next (Alt);
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.
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
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
253 -- Variant := Next (Variant);
258 -- Variant := First_Non_Pragma (Variants (N));
259 -- while Present (Variant) loop
261 -- Variant := Next_Non_Pragma (Variant);
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
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
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.
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.
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).
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
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
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
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.
528 -- When a file is compiled in GNATprove mode (-gnatd.F), a very light
529 -- expansion is performed and the analysis must generate a tree in a
530 -- form that meets additional requirements.
532 -- This light expansion does two transformations of the tree that cannot
533 -- be postponed till after semantic analysis:
535 -- 1. Replace object renamings by renamed object. This requires the
536 -- introduction of temporaries at the point of the renaming, which
537 -- must be properly analyzed.
539 -- 2. Fully qualify entity names. This is needed to generate suitable
540 -- local effects and call-graphs in ALI files, with the completely
541 -- qualified names (in particular the suffix to distinguish homonyms).
543 -- The tree after this light expansion should be fully analyzed
544 -- semantically, which sometimes requires the insertion of semantic
545 -- pre-analysis, for example for subprogram contracts and pragma
546 -- check/assert. In particular, all expression must have their proper type,
547 -- and semantic links should be set between tree nodes (partial to full
548 -- view, etc.) Some kinds of nodes should be either absent, or can be
549 -- ignored by the formal verification backend:
551 -- N_Object_Renaming_Declaration: can be ignored safely
552 -- N_Expression_Function: absent (rewritten)
553 -- N_Expression_With_Actions: absent (not generated)
555 -- SPARK cross-references are generated from the regular cross-references
556 -- (used for browsing and code understanding) and additional references
557 -- collected during semantic analysis, in particular on all dereferences.
558 -- These SPARK cross-references are output in a separate section of ALI
559 -- files, as described in spark_xrefs.adb. They are the basis for the
560 -- computation of data dependences in GNATprove. This implies that all
561 -- cross-references should be generated in this mode, even those that would
562 -- not make sense from a user point-of-view, and that cross-references that
563 -- do not lead to data dependences for subprograms can be safely ignored.
565 -- In addition pragma Debug statements are removed from the tree (rewritten
566 -- to NULL stmt), since they should be ignored in formal verification.
568 -- An error is also issued for missing subunits, similar to the warning
569 -- issued when generating code, to avoid formal verification of a partial
572 -----------------------
573 -- Check Flag Fields --
574 -----------------------
576 -- The following flag fields appear in expression nodes:
582 -- These three flags are always set by the front end during semantic
583 -- analysis, on expression nodes that may trigger the corresponding
584 -- check. The front end then inserts or not the check during expansion. In
585 -- particular, these flags should also be correctly set in ASIS mode and
588 -- Note: the expander always takes care of the Do_Range check case,
589 -- so this flag will never be set in the expanded tree passed to the
590 -- back end code generator.
592 -- Note that this accounts for all nodes that trigger the corresponding
593 -- checks, except for range checks on subtype_indications, which may be
594 -- required to check that a range_constraint is compatible with the given
595 -- subtype (RM 3.2.2(11)).
597 -- The following flag fields appear in various nodes:
599 -- Do_Accessibility_Check
600 -- Do_Discriminant_Check
605 -- These flags are used in some specific cases by the front end, either
606 -- during semantic analysis or during expansion, and cannot be expected
607 -- to be set on all nodes that trigger the corresponding check.
609 ------------------------
610 -- Common Flag Fields --
611 ------------------------
613 -- The following flag fields appear in all nodes:
616 -- This flag is used to indicate that a node (and all its children have
617 -- been analyzed. It is used to avoid reanalysis of a node that has
618 -- already been analyzed, both for efficiency and functional correctness
622 -- This flag is set if the node comes directly from an explicit construct
623 -- in the source. It is normally on for any nodes built by the scanner or
624 -- parser from the source program, with the exception that in a few cases
625 -- the parser adds nodes to normalize the representation (in particular
626 -- a null statement is added to a package body if there is no begin/end
627 -- initialization section.
629 -- Most nodes inserted by the analyzer or expander are not considered
630 -- as coming from source, so the flag is off for such nodes. In a few
631 -- cases, the expander constructs nodes closely equivalent to nodes
632 -- from the source program (e.g. the allocator built for build-in-place
633 -- case), and the Comes_From_Source flag is deliberately set.
636 -- This flag is used to avoid multiple error messages being posted on or
637 -- referring to the same node. This flag is set if an error message
638 -- refers to a node or is posted on its source location, and has the
639 -- effect of inhibiting further messages involving this same node.
641 -----------------------
642 -- Modify_Tree_For_C --
643 -----------------------
645 -- If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
646 -- in ways that help match the semantics better with C, easing the task of
647 -- interfacing to C code generators (other than GCC, where the work is done
648 -- in gigi, and there is no point in changing that), and also making life
649 -- easier for Cprint in generating C source code.
651 -- The current modifications implemented are as follows:
653 -- N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
654 -- are eliminated from the tree (since these operations do not exist in
655 -- C), and the operations are rewritten in terms of logical shifts and
656 -- other logical operations that do exist in C. See Exp_Ch4 expansion
657 -- routines for these operators for details of the transformations made.
659 -- The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
660 -- less than the word size (since other values are not well-defined in
661 -- C). This is done using an explicit test if necessary.
663 -- Min and Max attributes are expanded into equivalent if expressions,
664 -- dealing properly with side effect issues.
666 -- Mod for signed integer types is expanded into equivalent expressions
667 -- using Rem (which is % in C) and other C-available operators.
669 -- The Actions list of an Expression_With_Actions node does not contain
670 -- any declarations,(so that DO X, .. Y IN Z becomes (X, .. Y, Z) in C).
672 ------------------------------------
673 -- Description of Semantic Fields --
674 ------------------------------------
676 -- The meaning of the syntactic fields is generally clear from their names
677 -- without any further description, since the names are chosen to
678 -- correspond very closely to the syntax in the reference manual. This
679 -- section describes the usage of the semantic fields, which are used to
680 -- contain additional information determined during semantic analysis.
682 -- ABE_Is_Certain (Flag18-Sem)
683 -- This flag is set in an instantiation node or a call node is determined
684 -- to be sure to raise an ABE. This is used to trigger special handling
685 -- of such cases, particularly in the instantiation case where we avoid
686 -- instantiating the body if this flag is set. This flag is also present
687 -- in an N_Formal_Package_Declaration_Node since formal package
688 -- declarations are treated like instantiations, but it is always set to
689 -- False in this context.
691 -- Accept_Handler_Records (List5-Sem)
692 -- This field is present only in an N_Accept_Alternative node. It is used
693 -- to temporarily hold the exception handler records from an accept
694 -- statement in a selective accept. These exception handlers will
695 -- eventually be placed in the Handler_Records list of the procedure
696 -- built for this accept (see Expand_N_Selective_Accept procedure in
697 -- Exp_Ch9 for further details).
699 -- Access_Types_To_Process (Elist2-Sem)
700 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
701 -- Contains the list of access types which may require specific treatment
702 -- when the nature of the type completion is completely known. An example
703 -- of such treatment is the generation of the associated_final_chain.
705 -- Actions (List1-Sem)
706 -- This field contains a sequence of actions that are associated with the
707 -- node holding the field. See the individual node types for details of
708 -- how this field is used, as well as the description of the specific use
709 -- for a particular node type.
711 -- Activation_Chain_Entity (Node3-Sem)
712 -- This is used in tree nodes representing task activators (blocks,
713 -- subprogram bodies, package declarations, and task bodies). It is
714 -- initially Empty, and then gets set to point to the entity for the
715 -- declared Activation_Chain variable when the first task is declared.
716 -- When tasks are declared in the corresponding declarative region this
717 -- entity is located by name (its name is always _Chain) and the declared
718 -- tasks are added to the chain. Note that N_Extended_Return_Statement
719 -- does not have this attribute, although it does have an activation
720 -- chain. This chain is used to store the tasks temporarily, and is not
721 -- used for activating them. On successful completion of the return
722 -- statement, the tasks are moved to the caller's chain, and the caller
725 -- Acts_As_Spec (Flag4-Sem)
726 -- A flag set in the N_Subprogram_Body node for a subprogram body which
727 -- is acting as its own spec, except in the case of a library level
728 -- subprogram, in which case the flag is set on the parent compilation
729 -- unit node instead.
731 -- Actual_Designated_Subtype (Node4-Sem)
732 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
733 -- needs to known the dynamic constrained subtype of the designated
734 -- object, this attribute is set to that type. This is done for
735 -- N_Free_Statements for access-to-classwide types and access to
736 -- unconstrained packed array types, and for N_Explicit_Dereference when
737 -- the designated type is an unconstrained packed array and the
738 -- dereference is the prefix of a 'Size attribute reference.
740 -- Address_Warning_Posted (Flag18-Sem)
741 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
742 -- posted a warning for the address clause regarding size or alignment
743 -- issues. Used to inhibit multiple redundant messages.
745 -- Aggregate_Bounds (Node3-Sem)
746 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
747 -- known at compile time, this field points to an N_Range node with those
748 -- bounds. Otherwise Empty.
750 -- All_Others (Flag11-Sem)
751 -- Present in an N_Others_Choice node. This flag is set for an others
752 -- exception where all exceptions are to be caught, even those that are
753 -- not normally handled (in particular the tasking abort signal). This
754 -- is used for translation of the at end handler into a normal exception
757 -- Aspect_Rep_Item (Node2-Sem)
758 -- Present in N_Aspect_Specification nodes. Points to the corresponding
759 -- pragma/attribute definition node used to process the aspect.
761 -- Assignment_OK (Flag15-Sem)
762 -- This flag is set in a subexpression node for an object, indicating
763 -- that the associated object can be modified, even if this would not
764 -- normally be permissible (either by direct assignment, or by being
765 -- passed as an out or in-out parameter). This is used by the expander
766 -- for a number of purposes, including initialization of constants and
767 -- limited type objects (such as tasks), setting discriminant fields,
768 -- setting tag values, etc. N_Object_Declaration nodes also have this
769 -- flag defined. Here it is used to indicate that an initialization
770 -- expression is valid, even where it would normally not be allowed
771 -- (e.g. where the type involved is limited).
773 -- Associated_Node (Node4-Sem)
774 -- Present in nodes that can denote an entity: identifiers, character
775 -- literals, operator symbols, expanded names, operator nodes, and
776 -- attribute reference nodes (all these nodes have an Entity field).
777 -- This field is also present in N_Aggregate, N_Selected_Component, and
778 -- N_Extension_Aggregate nodes. This field is used in generic processing
779 -- to create links between the generic template and the generic copy.
780 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
781 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
782 -- the normal function of Entity is not required at the point where the
783 -- Associated_Node is set. Note also, that in generic templates, this
784 -- means that the Entity field does not necessarily point to an Entity.
785 -- Since the back end is expected to ignore generic templates, this is
788 -- Atomic_Sync_Required (Flag14-Sem)
789 -- This flag is set on a node for which atomic synchronization is
790 -- required for the corresponding reference or modification.
792 -- At_End_Proc (Node1)
793 -- This field is present in an N_Handled_Sequence_Of_Statements node.
794 -- It contains an identifier reference for the cleanup procedure to be
795 -- called. See description of this node for further details.
797 -- Backwards_OK (Flag6-Sem)
798 -- A flag present in the N_Assignment_Statement node. It is used only
799 -- if the type being assigned is an array type, and is set if analysis
800 -- determines that it is definitely safe to do the copy backwards, i.e.
801 -- starting at the highest addressed element. This is the case if either
802 -- the operands do not overlap, or they may overlap, but if they do,
803 -- then the left operand is at a higher address than the right operand.
805 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
806 -- means that the front end could not determine that either direction is
807 -- definitely safe, and a runtime check may be required if the backend
808 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
809 -- set, it means that the front end can assure no overlap of operands.
811 -- Body_To_Inline (Node3-Sem)
812 -- present in subprogram declarations. Denotes analyzed but unexpanded
813 -- body of subprogram, to be used when inlining calls. Present when the
814 -- subprogram has an Inline pragma and inlining is enabled. If the
815 -- declaration is completed by a renaming_as_body, and the renamed en-
816 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
817 -- which is used directly in later calls to the original subprogram.
819 -- Body_Required (Flag13-Sem)
820 -- A flag that appears in the N_Compilation_Unit node indicating that
821 -- the corresponding unit requires a body. For the package case, this
822 -- indicates that a completion is required. In Ada 95, if the flag is not
823 -- set for the package case, then a body may not be present. In Ada 83,
824 -- if the flag is not set for the package case, then body is optional.
825 -- For a subprogram declaration, the flag is set except in the case where
826 -- a pragma Import or Interface applies, in which case no body is
827 -- permitted (in Ada 83 or Ada 95).
829 -- By_Ref (Flag5-Sem)
830 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
831 -- this flag is set when the returned expression is already allocated on
832 -- the secondary stack and thus the result is passed by reference rather
833 -- than copied another time.
835 -- Check_Address_Alignment (Flag11-Sem)
836 -- A flag present in N_Attribute_Definition clause for a 'Address
837 -- attribute definition. This flag is set if a dynamic check should be
838 -- generated at the freeze point for the entity to which this address
839 -- clause applies. The reason that we need this flag is that we want to
840 -- check for range checks being suppressed at the point where the
841 -- attribute definition clause is given, rather than testing this at the
844 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
845 -- Present in N_Simple_Return_Statement nodes. True if this node was
846 -- constructed as part of the N_Extended_Return_Statement expansion.
848 -- Compile_Time_Known_Aggregate (Flag18-Sem)
849 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
850 -- evaluated at compile time without raising constraint error. Such
851 -- aggregates can be passed as is the back end without any expansion.
852 -- See Exp_Aggr for specific conditions under which this flag gets set.
854 -- Componentwise_Assignment (Flag14-Sem)
855 -- Present in N_Assignment_Statement nodes. Set for a record assignment
856 -- where all that needs doing is to expand it into component-by-component
857 -- assignments. This is used internally for the case of tagged types with
858 -- rep clauses, where we need to avoid recursion (we don't want to try to
859 -- generate a call to the primitive operation, because this is the case
860 -- where we are compiling the primitive operation). Note that when we are
861 -- expanding component assignments in this case, we never assign the _tag
862 -- field, but we recursively assign components of the parent type.
864 -- Condition_Actions (List3-Sem)
865 -- This field appears in else-if nodes and in the iteration scheme node
866 -- for while loops. This field is only used during semantic processing to
867 -- temporarily hold actions inserted into the tree. In the tree passed
868 -- to gigi, the condition actions field is always set to No_List. For
869 -- details on how this field is used, see the routine Insert_Actions in
870 -- package Exp_Util, and also the expansion routines for the relevant
873 -- Context_Pending (Flag16-Sem)
874 -- This field appears in Compilation_Unit nodes, to indicate that the
875 -- context of the unit is being compiled. Used to detect circularities
876 -- that are not otherwise detected by the loading mechanism. Such
877 -- circularities can occur in the presence of limited and non-limited
878 -- with_clauses that mention the same units.
880 -- Controlling_Argument (Node1-Sem)
881 -- This field is set in procedure and function call nodes if the call
882 -- is a dispatching call (it is Empty for a non-dispatching call). It
883 -- indicates the source of the call's controlling tag. For procedure
884 -- calls, the Controlling_Argument is one of the actuals. For function
885 -- that has a dispatching result, it is an entity in the context of the
886 -- call that can provide a tag, or else it is the tag of the root type
887 -- of the class. It can also specify a tag directly rather than being a
888 -- tagged object. The latter is needed by the implementations of AI-239
891 -- Conversion_OK (Flag14-Sem)
892 -- A flag set on type conversion nodes to indicate that the conversion
893 -- is to be considered as being valid, even though it is the case that
894 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
895 -- Fixed_Value and Integer_Value, for internal conversions done for
896 -- fixed-point operations, and for certain conversions for calls to
897 -- initialization procedures. If Conversion_OK is set, then Etype must be
898 -- set (the analyzer assumes that Etype has been set). For the case of
899 -- fixed-point operands, it also indicates that the conversion is to be
900 -- direct conversion of the underlying integer result, with no regard to
901 -- the small operand.
903 -- Convert_To_Return_False (Flag13-Sem)
904 -- Present in N_Raise_Expression nodes that appear in the body of the
905 -- special predicateM function used to test a predicate in the context
906 -- of a membership test, where raise expression results in returning a
907 -- value of False rather than raising an exception.
909 -- Corresponding_Aspect (Node3-Sem)
910 -- Present in N_Pragma node. Used to point back to the source aspect from
911 -- the corresponding pragma. This field is Empty for source pragmas.
913 -- Corresponding_Body (Node5-Sem)
914 -- This field is set in subprogram declarations, package declarations,
915 -- entry declarations of protected types, and in generic units. It points
916 -- to the defining entity for the corresponding body (NOT the node for
919 -- Corresponding_Formal_Spec (Node3-Sem)
920 -- This field is set in subprogram renaming declarations, where it points
921 -- to the defining entity for a formal subprogram in the case where the
922 -- renaming corresponds to a generic formal subprogram association in an
923 -- instantiation. The field is Empty if the renaming does not correspond
924 -- to such a formal association.
926 -- Corresponding_Generic_Association (Node5-Sem)
927 -- This field is defined for object declarations and object renaming
928 -- declarations. It is set for the declarations within an instance that
929 -- map generic formals to their actuals. If set, the field points to
930 -- a generic_association which is the original parent of the expression
931 -- or name appearing in the declaration. This simplifies ASIS queries.
933 -- Corresponding_Integer_Value (Uint4-Sem)
934 -- This field is set in real literals of fixed-point types (it is not
935 -- used for floating-point types). It contains the integer value used
936 -- to represent the fixed-point value. It is also set on the universal
937 -- real literals used to represent bounds of fixed-point base types
938 -- and their first named subtypes.
940 -- Corresponding_Spec (Node5-Sem)
941 -- This field is set in subprogram, package, task, and protected body
942 -- nodes, where it points to the defining entity in the corresponding
943 -- spec. The attribute is also set in N_With_Clause nodes where it points
944 -- to the defining entity for the with'ed spec, and in a subprogram
945 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
946 -- if there is no corresponding spec, as in the case of a subprogram body
947 -- that serves as its own spec.
949 -- In Ada 2012, Corresponding_Spec is set on expression functions that
950 -- complete a subprogram declaration.
952 -- Corresponding_Spec_Of_Stub (Node2-Sem)
953 -- This field is present in subprogram, package, task and protected body
954 -- stubs where it points to the corresponding spec of the stub. Due to
955 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
957 -- Corresponding_Stub (Node3-Sem)
958 -- This field is present in an N_Subunit node. It holds the node in
959 -- the parent unit that is the stub declaration for the subunit. It is
960 -- set when analysis of the stub forces loading of the proper body. If
961 -- expansion of the proper body creates new declarative nodes, they are
962 -- inserted at the point of the corresponding_stub.
964 -- Dcheck_Function (Node5-Sem)
965 -- This field is present in an N_Variant node, It references the entity
966 -- for the discriminant checking function for the variant.
968 -- Default_Expression (Node5-Sem)
969 -- This field is Empty if there is no default expression. If there is a
970 -- simple default expression (one with no side effects), then this field
971 -- simply contains a copy of the Expression field (both point to the tree
972 -- for the default expression). Default_Expression is used for
973 -- conformance checking.
975 -- Default_Storage_Pool (Node3-Sem)
976 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
977 -- copy of Opt.Default_Pool at the end of the compilation unit. See
978 -- package Opt for details. This is used for inheriting the
979 -- Default_Storage_Pool in child units.
981 -- Discr_Check_Funcs_Built (Flag11-Sem)
982 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
983 -- discriminant checking functions are constructed. The purpose is to
984 -- avoid attempting to set these functions more than once.
986 -- Do_Accessibility_Check (Flag13-Sem)
987 -- This flag is set on N_Parameter_Specification nodes to indicate
988 -- that an accessibility check is required for the parameter. It is
989 -- not yet decided who takes care of this check (TBD ???).
991 -- Do_Discriminant_Check (Flag1-Sem)
992 -- This flag is set on N_Selected_Component nodes to indicate that a
993 -- discriminant check is required using the discriminant check routine
994 -- associated with the selector. The actual check is generated by the
995 -- expander when processing selected components. In the case of
996 -- Unchecked_Union, the flag is also set, but no discriminant check
997 -- routine is associated with the selector, and the expander does not
998 -- generate a check. This flag is also present in assignment statements
999 -- (and set if the assignment requires a discriminant check), and in type
1000 -- conversion nodes (and set if the conversion requires a check).
1002 -- Do_Division_Check (Flag13-Sem)
1003 -- This flag is set on a division operator (/ mod rem) to indicate
1004 -- that a zero divide check is required. The actual check is dealt
1005 -- with by the backend (all the front end does is to set the flag).
1007 -- Do_Length_Check (Flag4-Sem)
1008 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1009 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1010 -- is required. It is not determined who deals with this flag (???).
1012 -- Do_Overflow_Check (Flag17-Sem)
1013 -- This flag is set on an operator where an overflow check is required on
1014 -- the operation. The actual check is dealt with by the backend (all the
1015 -- front end does is to set the flag). The other cases where this flag is
1016 -- used is on a Type_Conversion node and for attribute reference nodes.
1017 -- For a type conversion, it means that the conversion is from one base
1018 -- type to another, and the value may not fit in the target base type.
1019 -- See also the description of Do_Range_Check for this case. The only
1020 -- attribute references which use this flag are Pred and Succ, where it
1021 -- means that the result should be checked for going outside the base
1022 -- range. Note that this flag is not set for modular types. This flag is
1023 -- also set on if and case expression nodes if we are operating in either
1024 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1025 -- properly process overflow checking for dependent expressions).
1027 -- Do_Range_Check (Flag9-Sem)
1028 -- This flag is set on an expression which appears in a context where a
1029 -- range check is required. The target type is clear from the context.
1030 -- The contexts in which this flag can appear are the following:
1032 -- Right side of an assignment. In this case the target type is
1033 -- taken from the left side of the assignment, which is referenced
1034 -- by the Name of the N_Assignment_Statement node.
1036 -- Subscript expressions in an indexed component. In this case the
1037 -- target type is determined from the type of the array, which is
1038 -- referenced by the Prefix of the N_Indexed_Component node.
1040 -- Argument expression for a parameter, appearing either directly in
1041 -- the Parameter_Associations list of a call or as the Expression of an
1042 -- N_Parameter_Association node that appears in this list. In either
1043 -- case, the check is against the type of the formal. Note that the
1044 -- flag is relevant only in IN and IN OUT parameters, and will be
1045 -- ignored for OUT parameters, where no check is required in the call,
1046 -- and if a check is required on the return, it is generated explicitly
1047 -- with a type conversion.
1049 -- Initialization expression for the initial value in an object
1050 -- declaration. In this case the Do_Range_Check flag is set on
1051 -- the initialization expression, and the check is against the
1052 -- range of the type of the object being declared.
1054 -- The expression of a type conversion. In this case the range check is
1055 -- against the target type of the conversion. See also the use of
1056 -- Do_Overflow_Check on a type conversion. The distinction is that the
1057 -- overflow check protects against a value that is outside the range of
1058 -- the target base type, whereas a range check checks that the
1059 -- resulting value (which is a value of the base type of the target
1060 -- type), satisfies the range constraint of the target type.
1062 -- Note: when a range check is required in contexts other than those
1063 -- listed above (e.g. in a return statement), an additional type
1064 -- conversion node is introduced to represent the required check.
1066 -- A special case arises for the arguments of the Pred/Succ attributes.
1067 -- Here the range check needed is against First + 1 .. Last (Pred) or
1068 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
1069 -- these checks are what would be performed within the implicit body of
1070 -- the functions that correspond to these attributes. In these cases,
1071 -- the Do_Range check flag is set on the argument to the attribute
1072 -- function, and the back end must special case the appropriate range
1073 -- to check against.
1075 -- Do_Storage_Check (Flag17-Sem)
1076 -- This flag is set in an N_Allocator node to indicate that a storage
1077 -- check is required for the allocation, or in an N_Subprogram_Body node
1078 -- to indicate that a stack check is required in the subprogram prolog.
1079 -- The N_Allocator case is handled by the routine that expands the call
1080 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1081 -- backend, and all the semantics does is set the flag.
1083 -- Do_Tag_Check (Flag13-Sem)
1084 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1085 -- N_Procedure_Call_Statement, N_Type_Conversion,
1086 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1087 -- node to indicate that the tag check can be suppressed. It is not
1088 -- yet decided how this flag is used (TBD ???).
1090 -- Elaborate_Present (Flag4-Sem)
1091 -- This flag is set in the N_With_Clause node to indicate that pragma
1092 -- Elaborate pragma appears for the with'ed units.
1094 -- Elaborate_All_Desirable (Flag9-Sem)
1095 -- This flag is set in the N_With_Clause mode to indicate that the static
1096 -- elaboration processing has determined that an Elaborate_All pragma is
1097 -- desirable for correct elaboration for this unit.
1099 -- Elaborate_All_Present (Flag14-Sem)
1100 -- This flag is set in the N_With_Clause node to indicate that a
1101 -- pragma Elaborate_All pragma appears for the with'ed units.
1103 -- Elaborate_Desirable (Flag11-Sem)
1104 -- This flag is set in the N_With_Clause mode to indicate that the static
1105 -- elaboration processing has determined that an Elaborate pragma is
1106 -- desirable for correct elaboration for this unit.
1108 -- Elaboration_Boolean (Node2-Sem)
1109 -- This field is present in function and procedure specification nodes.
1110 -- If set, it points to the entity for a Boolean flag that must be tested
1111 -- for certain calls to check for access before elaboration. See body of
1112 -- Sem_Elab for further details. This field is Empty if no elaboration
1113 -- boolean is required.
1115 -- Else_Actions (List3-Sem)
1116 -- This field is present in if expression nodes. During code
1117 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1118 -- actions at an appropriate place in the tree to get elaborated at the
1119 -- right time. For if expressions, we have to be sure that the actions
1120 -- for the Else branch are only elaborated if the condition is False.
1121 -- The Else_Actions field is used as a temporary parking place for
1122 -- these actions. The final tree is always rewritten to eliminate the
1123 -- need for this field, so in the tree passed to Gigi, this field is
1124 -- always set to No_List.
1126 -- Enclosing_Variant (Node2-Sem)
1127 -- This field is present in the N_Variant node and identifies the Node_Id
1128 -- corresponding to the immediately enclosing variant when the variant is
1129 -- nested, and N_Empty otherwise. Set during semantic processing of the
1130 -- variant part of a record type.
1132 -- Entity (Node4-Sem)
1133 -- Appears in all direct names (identifiers, character literals, and
1134 -- operator symbols), as well as expanded names, and attributes that
1135 -- denote entities, such as 'Class. Points to entity for corresponding
1136 -- defining occurrence. Set after name resolution. For identifiers in a
1137 -- WITH list, the corresponding defining occurrence is in a separately
1138 -- compiled file, and Entity must be set by the library Load procedure.
1140 -- Note: During name resolution, the value in Entity may be temporarily
1141 -- incorrect (e.g. during overload resolution, Entity is initially set to
1142 -- the first possible correct interpretation, and then later modified if
1143 -- necessary to contain the correct value after resolution).
1145 -- Note: This field overlaps Associated_Node, which is used during
1146 -- generic processing (see Sem_Ch12 for details). Note also that in
1147 -- generic templates, this means that the Entity field does not always
1148 -- point to an Entity. Since the back end is expected to ignore generic
1149 -- templates, this is harmless.
1151 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1152 -- It is used only for stream attributes definition clauses. In this
1153 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1154 -- conceptually at the point of the clause. Thus the visibility of the
1155 -- attribute definition clause (in the sense of 8.3(23) as amended by
1156 -- AI-195) can be checked by testing the visibility of that subprogram.
1158 -- Note: Normally the Entity field of an identifier points to the entity
1159 -- for the corresponding defining identifier, and hence the Chars field
1160 -- of an identifier will match the Chars field of the entity. However,
1161 -- there is no requirement that these match, and there are obscure cases
1162 -- of generated code where they do not match.
1164 -- Note: Ada 2012 aspect specifications require additional links between
1165 -- identifiers and various attributes. These attributes can be of
1166 -- arbitrary types, and the entity field of identifiers that denote
1167 -- aspects must be used to store arbitrary expressions for later semantic
1168 -- checks. See section on aspect specifications for details.
1170 -- Entity_Or_Associated_Node (Node4-Sem)
1171 -- A synonym for both Entity and Associated_Node. Used by convention in
1172 -- the code when referencing this field in cases where it is not known
1173 -- whether the field contains an Entity or an Associated_Node.
1175 -- Etype (Node5-Sem)
1176 -- Appears in all expression nodes, all direct names, and all entities.
1177 -- Points to the entity for the related type. Set after type resolution.
1178 -- Normally this is the actual subtype of the expression. However, in
1179 -- certain contexts such as the right side of an assignment, subscripts,
1180 -- arguments to calls, returned value in a function, initial value etc.
1181 -- it is the desired target type. In the event that this is different
1182 -- from the actual type, the Do_Range_Check flag will be set if a range
1183 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1184 -- points to an essentially arbitrary choice from the possible set of
1187 -- Exception_Junk (Flag8-Sem)
1188 -- This flag is set in a various nodes appearing in a statement sequence
1189 -- to indicate that the corresponding node is an artifact of the
1190 -- generated code for exception handling, and should be ignored when
1191 -- analyzing the control flow of the relevant sequence of statements
1192 -- (e.g. to check that it does not end with a bad return statement).
1194 -- Exception_Label (Node5-Sem)
1195 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1196 -- to be used for transforming the corresponding exception into a goto,
1197 -- or contains Empty, if this exception is not to be transformed. Also
1198 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1199 -- that there may be a local raise for the handler, so that expansion
1200 -- to allow a goto is required (and this field contains the label for
1201 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1203 -- Expansion_Delayed (Flag11-Sem)
1204 -- Set on aggregates and extension aggregates that need a top-down rather
1205 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1206 -- up. For nested aggregates the expansion is delayed until the enclosing
1207 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1208 -- delay it we set this flag. This is done to avoid creating a temporary
1209 -- for each level of a nested aggregates, and also to prevent the
1210 -- premature generation of constraint checks. This is also a requirement
1211 -- if we want to generate the proper attachment to the internal
1212 -- finalization lists (for record with controlled components). Top down
1213 -- expansion of aggregates is also used for in-place array aggregate
1214 -- assignment or initialization. When the full context is known, the
1215 -- target of the assignment or initialization is used to generate the
1216 -- left-hand side of individual assignment to each sub-component.
1218 -- First_Inlined_Subprogram (Node3-Sem)
1219 -- Present in the N_Compilation_Unit node for the main program. Points
1220 -- to a chain of entities for subprograms that are to be inlined. The
1221 -- Next_Inlined_Subprogram field of these entities is used as a link
1222 -- pointer with Empty marking the end of the list. This field is Empty
1223 -- if there are no inlined subprograms or inlining is not active.
1225 -- First_Named_Actual (Node4-Sem)
1226 -- Present in procedure call statement and function call nodes, and also
1227 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1228 -- named parameter where parameters are ordered by declaration order (as
1229 -- opposed to the actual order in the call which may be different due to
1230 -- named associations). Note: this field points to the explicit actual
1231 -- parameter itself, not the N_Parameter_Association node (its parent).
1233 -- First_Real_Statement (Node2-Sem)
1234 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1235 -- Empty. Used only when declarations are moved into the statement part
1236 -- of a construct as a result of wrapping an AT END handler that is
1237 -- required to cover the declarations. In this case, this field is used
1238 -- to remember the location in the statements list of the first real
1239 -- statement, i.e. the statement that used to be first in the statement
1240 -- list before the declarations were prepended.
1242 -- First_Subtype_Link (Node5-Sem)
1243 -- Present in N_Freeze_Entity node for an anonymous base type that is
1244 -- implicitly created by the declaration of a first subtype. It points
1245 -- to the entity for the first subtype.
1247 -- Float_Truncate (Flag11-Sem)
1248 -- A flag present in type conversion nodes. This is used for float to
1249 -- integer conversions where truncation is required rather than rounding.
1250 -- Note that Gigi does not handle type conversions from real to integer
1251 -- with rounding (see Expand_N_Type_Conversion).
1253 -- Forwards_OK (Flag5-Sem)
1254 -- A flag present in the N_Assignment_Statement node. It is used only
1255 -- if the type being assigned is an array type, and is set if analysis
1256 -- determines that it is definitely safe to do the copy forwards, i.e.
1257 -- starting at the lowest addressed element. This is the case if either
1258 -- the operands do not overlap, or they may overlap, but if they do,
1259 -- then the left operand is at a lower address than the right operand.
1261 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1262 -- means that the front end could not determine that either direction is
1263 -- definitely safe, and a runtime check may be required if the backend
1264 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1265 -- set, it means that the front end can assure no overlap of operands.
1267 -- From_Aspect_Specification (Flag13-Sem)
1268 -- Processing of aspect specifications typically results in insertion in
1269 -- the tree of corresponding pragma or attribute definition clause nodes.
1270 -- These generated nodes have the From_Aspect_Specification flag set to
1271 -- indicate that they came from aspect specifications originally.
1273 -- From_At_End (Flag4-Sem)
1274 -- This flag is set on an N_Raise_Statement node if it corresponds to
1275 -- the reraise statement generated as the last statement of an AT END
1276 -- handler when SJLJ exception handling is active. It is used to stop
1277 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1278 -- because if the restriction is set, the reraise is not generated.
1280 -- From_At_Mod (Flag4-Sem)
1281 -- This flag is set on the attribute definition clause node that is
1282 -- generated by a transformation of an at mod phrase in a record
1283 -- representation clause. This is used to give slightly different (Ada 83
1284 -- compatible) semantics to such a clause, namely it is used to specify a
1285 -- minimum acceptable alignment for the base type and all subtypes. In
1286 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1287 -- must be a multiple of the given value, and the representation clause
1288 -- is considered to be type specific instead of subtype specific.
1290 -- From_Default (Flag6-Sem)
1291 -- This flag is set on the subprogram renaming declaration created in an
1292 -- instance for a formal subprogram, when the formal is declared with a
1293 -- box, and there is no explicit actual. If the flag is present, the
1294 -- declaration is treated as an implicit reference to the formal in the
1297 -- Generalized_Indexing (Node4-Sem)
1298 -- Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1299 -- that are Ada 2012 container indexing operations. The value of the
1300 -- attribute is a function call (possibly dereferenced) that corresponds
1301 -- to the proper expansion of the source indexing operation. Before
1302 -- expansion, the source node is rewritten as the resolved generalized
1303 -- indexing. In ASIS mode, the expansion does not take place, so that
1304 -- the source is preserved and properly annotated with types.
1306 -- Generic_Parent (Node5-Sem)
1307 -- Generic_Parent is defined on declaration nodes that are instances. The
1308 -- value of Generic_Parent is the generic entity from which the instance
1309 -- is obtained. Generic_Parent is also defined for the renaming
1310 -- declarations and object declarations created for the actuals in an
1311 -- instantiation. The generic parent of such a declaration is the
1312 -- corresponding generic association in the Instantiation node.
1314 -- Generic_Parent_Type (Node4-Sem)
1315 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1316 -- actuals of formal private and derived types. Within the instance, the
1317 -- operations on the actual are those inherited from the parent. For a
1318 -- formal private type, the parent type is the generic type itself. The
1319 -- Generic_Parent_Type is also used in an instance to determine whether a
1320 -- private operation overrides an inherited one.
1322 -- Handler_List_Entry (Node2-Sem)
1323 -- This field is present in N_Object_Declaration nodes. It is set only
1324 -- for the Handler_Record entry generated for an exception in zero cost
1325 -- exception handling mode. It references the corresponding item in the
1326 -- handler list, and is used to delete this entry if the corresponding
1327 -- handler is deleted during optimization. For further details on why
1328 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1330 -- Has_Dereference_Action (Flag13-Sem)
1331 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1332 -- indicate that the expansion has aready produced a call to primitive
1333 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1334 -- Such dereference actions are produced for debugging purposes.
1336 -- Has_Dynamic_Length_Check (Flag10-Sem)
1337 -- This flag is present in all expression nodes. It is set to indicate
1338 -- that one of the routines in unit Checks has generated a length check
1339 -- action which has been inserted at the flagged node. This is used to
1340 -- avoid the generation of duplicate checks.
1342 -- Has_Dynamic_Range_Check (Flag12-Sem)
1343 -- This flag is present in N_Subtype_Declaration nodes and on all
1344 -- expression nodes. It is set to indicate that one of the routines in
1345 -- unit Checks has generated a range check action which has been inserted
1346 -- at the flagged node. This is used to avoid the generation of duplicate
1347 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1348 -- it mean in that context???
1350 -- Has_Local_Raise (Flag8-Sem)
1351 -- Present in exception handler nodes. Set if the handler can be entered
1352 -- via a local raise that gets transformed to a goto statement. This will
1353 -- always be set if Local_Raise_Statements is non-empty, but can also be
1354 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1355 -- nodes requiring generation of back end checks.
1357 -- Has_No_Elaboration_Code (Flag17-Sem)
1358 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1359 -- or not elaboration code is present for this unit. It is initially set
1360 -- true for subprogram specs and bodies and for all generic units and
1361 -- false for non-generic package specs and bodies. Gigi may set the flag
1362 -- in the non-generic package case if it determines that no elaboration
1363 -- code is generated. Note that this flag is not related to the
1364 -- Is_Preelaborated status, there can be preelaborated packages that
1365 -- generate elaboration code, and non-preelaborated packages which do
1366 -- not generate elaboration code.
1368 -- Has_Pragma_Suppress_All (Flag14-Sem)
1369 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1370 -- pragma appears anywhere in the unit. This accommodates the rather
1371 -- strange placement rules of other compilers (DEC permits it at the
1372 -- end of a unit, and Rational allows it as a program unit pragma). We
1373 -- allow it anywhere at all, and consider it equivalent to a pragma
1374 -- Suppress (All_Checks) appearing at the start of the configuration
1375 -- pragmas for the unit.
1377 -- Has_Private_View (Flag11-Sem)
1378 -- A flag present in generic nodes that have an entity, to indicate that
1379 -- the node has a private type. Used to exchange private and full
1380 -- declarations if the visibility at instantiation is different from the
1381 -- visibility at generic definition.
1383 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1384 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1385 -- flag the presence of a pragma Relative_Deadline.
1387 -- Has_Self_Reference (Flag13-Sem)
1388 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1389 -- of the expressions contains an access attribute reference to the
1390 -- enclosing type. Such a self-reference can only appear in default-
1391 -- initialized aggregate for a record type.
1393 -- Has_SP_Choice (Flag15-Sem)
1394 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1395 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1396 -- True if the Discrete_Choices list has at least one occurrence of a
1397 -- statically predicated subtype.
1399 -- Has_Storage_Size_Pragma (Flag5-Sem)
1400 -- A flag present in an N_Task_Definition node to flag the presence of a
1401 -- Storage_Size pragma.
1403 -- Has_Wide_Character (Flag11-Sem)
1404 -- Present in string literals, set if any wide character (i.e. character
1405 -- code outside the Character range but within Wide_Character range)
1406 -- appears in the string. Used to implement pragma preference rules.
1408 -- Has_Wide_Wide_Character (Flag13-Sem)
1409 -- Present in string literals, set if any wide character (i.e. character
1410 -- code outside the Wide_Character range) appears in the string. Used to
1411 -- implement pragma preference rules.
1413 -- Header_Size_Added (Flag11-Sem)
1414 -- Present in N_Attribute_Reference nodes, set only for attribute
1415 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1416 -- hidden list header used by the runtime finalization support has been
1417 -- added to the size of the prefix. The flag also prevents the infinite
1418 -- expansion of the same attribute in the said context.
1420 -- Hidden_By_Use_Clause (Elist4-Sem)
1421 -- An entity list present in use clauses that appear within
1422 -- instantiations. For the resolution of local entities, entities
1423 -- introduced by these use clauses have priority over global ones, and
1424 -- outer entities must be explicitly hidden/restored on exit.
1426 -- Implicit_With (Flag16-Sem)
1427 -- This flag is set in the N_With_Clause node that is implicitly
1428 -- generated for runtime units that are loaded by the expander, and also
1429 -- for package System, if it is loaded implicitly by a use of the
1430 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1433 -- Implicit_With_From_Instantiation (Flag12-Sem)
1434 -- Set in N_With_Clause nodes from generic instantiations.
1436 -- Import_Interface_Present (Flag16-Sem)
1437 -- This flag is set in an Interface or Import pragma if a matching
1438 -- pragma of the other kind is also present. This is used to avoid
1439 -- generating some unwanted error messages.
1441 -- Includes_Infinities (Flag11-Sem)
1442 -- This flag is present in N_Range nodes. It is set for the range of
1443 -- unconstrained float types defined in Standard, which include not only
1444 -- the given range of values, but also legitimately can include infinite
1445 -- values. This flag is false for any float type for which an explicit
1446 -- range is given by the programmer, even if that range is identical to
1447 -- the range for Float.
1449 -- Inherited_Discriminant (Flag13-Sem)
1450 -- This flag is present in N_Component_Association nodes. It indicates
1451 -- that a given component association in an extension aggregate is the
1452 -- value obtained from a constraint on an ancestor. Used to prevent
1453 -- double expansion when the aggregate has expansion delayed.
1455 -- Instance_Spec (Node5-Sem)
1456 -- This field is present in generic instantiation nodes, and also in
1457 -- formal package declaration nodes (formal package declarations are
1458 -- treated in a manner very similar to package instantiations). It points
1459 -- to the node for the spec of the instance, inserted as part of the
1460 -- semantic processing for instantiations in Sem_Ch12.
1462 -- Is_Accessibility_Actual (Flag13-Sem)
1463 -- Present in N_Parameter_Association nodes. True if the parameter is
1464 -- an extra actual that carries the accessibility level of the actual
1465 -- for an access parameter, in a function that dispatches on result and
1466 -- is called in a dispatching context. Used to prevent a formal/actual
1467 -- mismatch when the call is rewritten as a dispatching call.
1469 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1470 -- A flag set in a Block_Statement node to indicate that it is the
1471 -- expansion of an asynchronous entry call. Such a block needs cleanup
1472 -- handler to assure that the call is cancelled.
1474 -- Is_Boolean_Aspect (Flag16-Sem)
1475 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1476 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1478 -- Is_Checked (Flag11-Sem)
1479 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1480 -- assertion aspect or pragma, or check pragma for an assertion, that
1481 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1482 -- is set (they cannot both be set), then this means that the status of
1483 -- the pragma has been checked at the appropriate point and should not
1484 -- be further modified (in some cases these flags are copied when a
1485 -- pragma is rewritten).
1487 -- Is_Component_Left_Opnd (Flag13-Sem)
1488 -- Is_Component_Right_Opnd (Flag14-Sem)
1489 -- Present in concatenation nodes, to indicate that the corresponding
1490 -- operand is of the component type of the result. Used in resolving
1491 -- concatenation nodes in instances.
1493 -- Is_Delayed_Aspect (Flag14-Sem)
1494 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1495 -- come from aspect specifications, where the evaluation of the aspect
1496 -- must be delayed to the freeze point. This flag is also set True in
1497 -- the corresponding N_Aspect_Specification node.
1499 -- Is_Controlling_Actual (Flag16-Sem)
1500 -- This flag is set on in an expression that is a controlling argument in
1501 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1502 -- details of its use.
1504 -- Is_Disabled (Flag15-Sem)
1505 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1506 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1507 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1508 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1509 -- If this flag is set, the aspect or policy is not analyzed for semantic
1510 -- correctness, so any expressions etc will not be marked as analyzed.
1512 -- Is_Dynamic_Coextension (Flag18-Sem)
1513 -- Present in allocator nodes, to indicate that this is an allocator
1514 -- for an access discriminant of a dynamically allocated object. The
1515 -- coextension must be deallocated and finalized at the same time as
1516 -- the enclosing object.
1518 -- Is_Entry_Barrier_Function (Flag8-Sem)
1519 -- This flag is set in an N_Subprogram_Body node which is the expansion
1520 -- of an entry barrier from a protected entry body. It is used for the
1521 -- circuitry checking for incorrect use of Current_Task.
1523 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1524 -- This flag is set in an N_Function_Call node to indicate that the extra
1525 -- actuals to support a build-in-place style of call have been added to
1528 -- Is_Finalization_Wrapper (Flag9-Sem);
1529 -- This flag is present in N_Block_Statement nodes. It is set when the
1530 -- block acts as a wrapper of a handled construct which has controlled
1531 -- objects. The wrapper prevents interference between exception handlers
1532 -- and At_End handlers.
1534 -- Is_Ignored (Flag9-Sem)
1535 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1536 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1537 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1538 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1539 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1540 -- gives a policy for the aspect or pragma, then there are two cases. For
1541 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1542 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1543 -- ignored because of the absence of a -gnata switch. For any other
1544 -- aspects or pragmas, the flag is off. If this flag is set, the
1545 -- aspect/pragma is fully analyzed and checked for other syntactic
1546 -- and semantic errors, but it does not have any semantic effect.
1548 -- Is_In_Discriminant_Check (Flag11-Sem)
1549 -- This flag is present in a selected component, and is used to indicate
1550 -- that the reference occurs within a discriminant check. The
1551 -- significance is that optimizations based on assuming that the
1552 -- discriminant check has a correct value cannot be performed in this
1553 -- case (or the discriminant check may be optimized away).
1555 -- Is_Machine_Number (Flag11-Sem)
1556 -- This flag is set in an N_Real_Literal node to indicate that the value
1557 -- is a machine number. This avoids some unnecessary cases of converting
1558 -- real literals to machine numbers.
1560 -- Is_Null_Loop (Flag16-Sem)
1561 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1562 -- can be determined to be null at compile time. This is used to remove
1563 -- the loop entirely at expansion time.
1565 -- Is_Overloaded (Flag5-Sem)
1566 -- A flag present in all expression nodes. Used temporarily during
1567 -- overloading determination. The setting of this flag is not relevant
1568 -- once overloading analysis is complete.
1570 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1571 -- A flag present only in N_Op_Expon nodes. It is set when the
1572 -- exponentiation is of the form 2 ** N, where the type of N is an
1573 -- unsigned integral subtype whose size does not exceed the size of
1574 -- Standard_Integer (i.e. a type that can be safely converted to
1575 -- Natural), and the exponentiation appears as the right operand of an
1576 -- integer multiplication or an integer division where the dividend is
1577 -- unsigned. It is also required that overflow checking is off for both
1578 -- the exponentiation and the multiply/divide node. If this set of
1579 -- conditions holds, and the flag is set, then the division or
1580 -- multiplication can be (and is) converted to a shift.
1582 -- Is_Prefixed_Call (Flag17-Sem)
1583 -- This flag is set in a selected component within a generic unit, if
1584 -- it resolves to a prefixed call to a primitive operation. The flag
1585 -- is used to prevent accidental overloadings in an instance, when a
1586 -- primitive operation and a private record component may be homographs.
1588 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1589 -- A flag set in a Subprogram_Body block to indicate that it is the
1590 -- implementation of a protected subprogram. Such a body needs cleanup
1591 -- handler to make sure that the associated protected object is unlocked
1592 -- when the subprogram completes.
1594 -- Is_Static_Coextension (Flag14-Sem)
1595 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1596 -- of an object allocated on the stack rather than the heap.
1598 -- Is_Static_Expression (Flag6-Sem)
1599 -- Indicates that an expression is a static expression (RM 4.9). See spec
1600 -- of package Sem_Eval for full details on the use of this flag.
1602 -- Is_Subprogram_Descriptor (Flag16-Sem)
1603 -- Present in N_Object_Declaration, and set only for the object
1604 -- declaration generated for a subprogram descriptor in fast exception
1605 -- mode. See Exp_Ch11 for details of use.
1607 -- Is_Task_Allocation_Block (Flag6-Sem)
1608 -- A flag set in a Block_Statement node to indicate that it is the
1609 -- expansion of a task allocator, or the allocator of an object
1610 -- containing tasks. Such a block requires a cleanup handler to call
1611 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1612 -- allocated but not activated when the allocator completes abnormally.
1614 -- Is_Task_Master (Flag5-Sem)
1615 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1616 -- indicate that the construct is a task master (i.e. has declared tasks
1617 -- or declares an access to a task type).
1619 -- Itype (Node1-Sem)
1620 -- Used in N_Itype_Reference node to reference an itype for which it is
1621 -- important to ensure that it is defined. See description of this node
1622 -- for further details.
1624 -- Kill_Range_Check (Flag11-Sem)
1625 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1626 -- result should not be subjected to range checks. This is used for the
1627 -- implementation of Normalize_Scalars.
1629 -- Label_Construct (Node2-Sem)
1630 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1631 -- N_Block_Statement or N_Loop_Statement node to which the label
1632 -- declaration applies. This attribute is used both in the compiler and
1633 -- in the implementation of ASIS queries. The field is left empty for the
1634 -- special labels generated as part of expanding raise statements with a
1635 -- local exception handler.
1637 -- Library_Unit (Node4-Sem)
1638 -- In a stub node, Library_Unit points to the compilation unit node of
1639 -- the corresponding subunit.
1641 -- In a with clause node, Library_Unit points to the spec of the with'ed
1644 -- In a compilation unit node, the usage depends on the unit type:
1646 -- For a library unit body, Library_Unit points to the compilation unit
1647 -- node of the corresponding spec, unless it's a subprogram body with
1648 -- Acts_As_Spec set, in which case it points to itself.
1650 -- For a spec, Library_Unit points to the compilation unit node of the
1651 -- corresponding body, if present. The body will be present if the spec
1652 -- is or contains generics that we needed to instantiate. Similarly, the
1653 -- body will be present if we needed it for inlining purposes. Thus, if
1654 -- we have a spec/body pair, both of which are present, they point to
1655 -- each other via Library_Unit.
1657 -- For a subunit, Library_Unit points to the compilation unit node of
1660 -- Note that this field is not used to hold the parent pointer for child
1661 -- unit (which might in any case need to use it for some other purpose as
1662 -- described above). Instead for a child unit, implicit with's are
1663 -- generated for all parents.
1665 -- Local_Raise_Statements (Elist1)
1666 -- This field is present in exception handler nodes. It is set to
1667 -- No_Elist in the normal case. If there is at least one raise statement
1668 -- which can potentially be handled as a local raise, then this field
1669 -- points to a list of raise nodes, which are calls to a routine to raise
1670 -- an exception. These are raise nodes which can be optimized into gotos
1671 -- if the handler turns out to meet the conditions which permit this
1672 -- transformation. Note that this does NOT include instances of the
1673 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1674 -- handled by the back end (using the N_Push/N_Pop mechanism).
1676 -- Loop_Actions (List2-Sem)
1677 -- A list present in Component_Association nodes in array aggregates.
1678 -- Used to collect actions that must be executed within the loop because
1679 -- they may need to be evaluated anew each time through.
1681 -- Limited_View_Installed (Flag18-Sem)
1682 -- Present in With_Clauses and in package specifications. If set on
1683 -- with_clause, it indicates that this clause has created the current
1684 -- limited view of the designated package. On a package specification, it
1685 -- indicates that the limited view has already been created because the
1686 -- package is mentioned in a limited_with_clause in the closure of the
1687 -- unit being compiled.
1689 -- Local_Raise_Not_OK (Flag7-Sem)
1690 -- Present in N_Exception_Handler nodes. Set if the handler contains
1691 -- a construct (reraise statement, or call to subprogram in package
1692 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1693 -- for a local raise (one that could otherwise be converted to a goto).
1695 -- Must_Be_Byte_Aligned (Flag14-Sem)
1696 -- This flag is present in N_Attribute_Reference nodes. It can be set
1697 -- only for the Address and Unrestricted_Access attributes. If set it
1698 -- means that the object for which the address/access is given must be on
1699 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1700 -- of the object is to be made before taking the address (this copy is in
1701 -- the current scope on the stack frame). This is used for certain cases
1702 -- of code generated by the expander that passes parameters by address.
1704 -- The reason the copy is not made by the front end is that the back end
1705 -- has more information about type layout and may be able to (but is not
1706 -- guaranteed to) prevent making unnecessary copies.
1708 -- Must_Not_Freeze (Flag8-Sem)
1709 -- A flag present in all expression nodes. Normally expressions cause
1710 -- freezing as described in the RM. If this flag is set, then this is
1711 -- inhibited. This is used by the analyzer and expander to label nodes
1712 -- that are created by semantic analysis or expansion and which must not
1713 -- cause freezing even though they normally would. This flag is also
1714 -- present in an N_Subtype_Indication node, since we also use these in
1715 -- calls to Freeze_Expression.
1717 -- Next_Entity (Node2-Sem)
1718 -- Present in defining identifiers, defining character literals and
1719 -- defining operator symbols (i.e. in all entities). The entities of a
1720 -- scope are chained, and this field is used as the forward pointer for
1721 -- this list. See Einfo for further details.
1723 -- Next_Exit_Statement (Node3-Sem)
1724 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1725 -- chained (in reverse order of appearance) from the First_Exit_Statement
1726 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1727 -- the next entry on this chain (Empty = end of list).
1729 -- Next_Implicit_With (Node3-Sem)
1730 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1731 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1732 -- to prevent multiple with_clauses for the same unit in a given context.
1733 -- A postorder traversal of the tree whose nodes are units and whose
1734 -- links are with_clauses defines the order in which CodePeer must
1735 -- examine a compiled unit and its full context. This ordering ensures
1736 -- that any subprogram call is examined after the subprogram declaration
1739 -- Next_Named_Actual (Node4-Sem)
1740 -- Present in parameter association nodes. Set during semantic analysis
1741 -- to point to the next named parameter, where parameters are ordered by
1742 -- declaration order (as opposed to the actual order in the call, which
1743 -- may be different due to named associations). Not that this field
1744 -- points to the explicit actual parameter itself, not to the
1745 -- N_Parameter_Association node (its parent).
1747 -- Next_Pragma (Node1-Sem)
1748 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1749 -- nodes. Currently used for two purposes:
1751 -- Create a list of linked Check_Policy pragmas. The head of this list
1752 -- is stored in Opt.Check_Policy_List (which has further details).
1754 -- Used by processing for Pre/Postcondition pragmas to store a list of
1755 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1758 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
1759 -- the apply to the same construct. These are visible/private mode for
1760 -- a package spec and declarative/statement mode for package body.
1762 -- Next_Rep_Item (Node5-Sem)
1763 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1764 -- clauses, record rep clauses, aspect specification nodes. Used to link
1765 -- representation items that apply to an entity. See full description of
1766 -- First_Rep_Item field in Einfo for further details.
1768 -- Next_Use_Clause (Node3-Sem)
1769 -- While use clauses are active during semantic processing, they are
1770 -- chained from the scope stack entry, using Next_Use_Clause as a link
1771 -- pointer, with Empty marking the end of the list. The head pointer is
1772 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1773 -- processing (i.e. when Gigi sees the tree, the contents of this field
1774 -- is undefined and should not be read).
1776 -- No_Ctrl_Actions (Flag7-Sem)
1777 -- Present in N_Assignment_Statement to indicate that no Finalize nor
1778 -- Adjust should take place on this assignment even though the RHS is
1779 -- controlled. Also indicates that the primitive _assign should not be
1780 -- used for a tagged assignment. This is used in init procs and aggregate
1781 -- expansions where the generated assignments are initializations, not
1782 -- real assignments.
1784 -- No_Elaboration_Check (Flag14-Sem)
1785 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1786 -- that no elaboration check is needed on the call, because it appears in
1787 -- the context of a local Suppress pragma. This is used on calls within
1788 -- task bodies, where the actual elaboration checks are applied after
1789 -- analysis, when the local scope stack is not present.
1791 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1792 -- Present in N_With_Clause nodes. Set if the with clause is on the
1793 -- package or subprogram spec where the main unit is the corresponding
1794 -- body, and no entities of the with'ed unit are referenced by the spec
1795 -- (an entity may still be referenced in the body, so this flag is used
1796 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1799 -- No_Initialization (Flag13-Sem)
1800 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1801 -- object must not be initialized (by Initialize or call to an init
1802 -- proc). This is needed for controlled aggregates. When the Object
1803 -- declaration has an expression, this flag means that this expression
1804 -- should not be taken into account (needed for in place initialization
1805 -- with aggregates, and for object with an address clause, which are
1806 -- initialized with an assignment at freeze time).
1808 -- No_Minimize_Eliminate (Flag17-Sem)
1809 -- This flag is present in membership operator nodes (N_In/N_Not_In).
1810 -- It is used to indicate that processing for extended overflow checking
1811 -- modes is not required (this is used to prevent infinite recursion).
1813 -- No_Truncation (Flag17-Sem)
1814 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1815 -- only if the RM_Size of the source is greater than the RM_Size of the
1816 -- target for scalar operands. Normally in such a case we truncate some
1817 -- higher order bits of the source, and then sign/zero extend the result
1818 -- to form the output value. But if this flag is set, then we do not do
1819 -- any truncation, so for example, if an 8 bit input is converted to 5
1820 -- bit result which is in fact stored in 8 bits, then the high order
1821 -- three bits of the target result will be copied from the source. This
1822 -- is used for properly setting out of range values for use by pragmas
1823 -- Initialize_Scalars and Normalize_Scalars.
1825 -- Non_Aliased_Prefix (Flag18-Sem)
1826 -- Present in N_Attribute_Reference nodes. Set only for the case of an
1827 -- Unrestricted_Access reference whose prefix is non-aliased, which is
1828 -- the case that is permitted for Unrestricted_Access except when the
1829 -- expected type is a thin pointer to unconstrained array. This flag is
1830 -- to assist in detecting this illegal use of Unrestricted_Access.
1832 -- Original_Discriminant (Node2-Sem)
1833 -- Present in identifiers. Used in references to discriminants that
1834 -- appear in generic units. Because the names of the discriminants may be
1835 -- different in an instance, we use this field to recover the position of
1836 -- the discriminant in the original type, and replace it with the
1837 -- discriminant at the same position in the instantiated type.
1839 -- Original_Entity (Node2-Sem)
1840 -- Present in numeric literals. Used to denote the named number that has
1841 -- been constant-folded into the given literal. If literal is from
1842 -- source, or the result of some other constant-folding operation, then
1843 -- Original_Entity is empty. This field is needed to handle properly
1844 -- named numbers in generic units, where the Associated_Node field
1845 -- interferes with the Entity field, making it impossible to preserve the
1846 -- original entity at the point of instantiation (ASIS problem).
1848 -- Others_Discrete_Choices (List1-Sem)
1849 -- When a case statement or variant is analyzed, the semantic checks
1850 -- determine the actual list of choices that correspond to an others
1851 -- choice. This list is materialized for later use by the expander and
1852 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1853 -- this materialized list of choices, which is in standard format for a
1854 -- list of discrete choices, except that of course it cannot contain an
1855 -- N_Others_Choice entry.
1857 -- Parameter_List_Truncated (Flag17-Sem)
1858 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1859 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1860 -- a result of a First_Optional_Parameter specification in an
1861 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1862 -- The truncation is done by the expander by removing trailing parameters
1863 -- from the argument list, in accordance with the set of rules allowing
1864 -- such parameter removal. In particular, parameters can be removed
1865 -- working from the end of the parameter list backwards up to and
1866 -- including the entry designated by First_Optional_Parameter in the
1867 -- Import pragma. Parameters can be removed if they are implicit and the
1868 -- default value is a known-at-compile-time value, including the use of
1869 -- the Null_Parameter attribute, or if explicit parameter values are
1870 -- present that match the corresponding defaults.
1872 -- Parent_Spec (Node4-Sem)
1873 -- For a library unit that is a child unit spec (package or subprogram
1874 -- declaration, generic declaration or instantiation, or library level
1875 -- rename, this field points to the compilation unit node for the parent
1876 -- package specification. This field is Empty for library bodies (the
1877 -- parent spec in this case can be found from the corresponding spec).
1879 -- Premature_Use (Node5-Sem)
1880 -- Present in N_Incomplete_Type_Declaration node. Used for improved
1881 -- error diagnostics: if there is a premature usage of an incomplete
1882 -- type, a subsequently generated error message indicates the position
1883 -- of its full declaration.
1885 -- Present_Expr (Uint3-Sem)
1886 -- Present in an N_Variant node. This has a meaningful value only after
1887 -- Gigi has back annotated the tree with representation information. At
1888 -- this point, it contains a reference to a gcc expression that depends
1889 -- on the values of one or more discriminants. Give a set of discriminant
1890 -- values, this expression evaluates to False (zero) if variant is not
1891 -- present, and True (non-zero) if it is present. See unit Repinfo for
1892 -- further details on gigi back annotation. This field is used during
1893 -- ASIS processing (data decomposition annex) to determine if a field is
1896 -- Print_In_Hex (Flag13-Sem)
1897 -- Set on an N_Integer_Literal node to indicate that the value should be
1898 -- printed in hexadecimal in the sprint listing. Has no effect on
1899 -- legality or semantics of program, only on the displayed output. This
1900 -- is used to clarify output from the packed array cases.
1902 -- Procedure_To_Call (Node2-Sem)
1903 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1904 -- and N_Extended_Return_Statement nodes. References the entity for the
1905 -- declaration of the procedure to be called to accomplish the required
1906 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1907 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1908 -- allocating the return value), and for the Deallocate procedure in the
1909 -- case of N_Free_Statement.
1911 -- Raises_Constraint_Error (Flag7-Sem)
1912 -- Set on an expression whose evaluation will definitely fail constraint
1913 -- error check. In the case of static expressions, this flag must be set
1914 -- accurately (and if it is set, the expression is typically illegal
1915 -- unless it appears as a non-elaborated branch of a short-circuit form).
1916 -- For a non-static expression, this flag may be set whenever an
1917 -- expression (e.g. an aggregate) is known to raise constraint error. If
1918 -- set, the expression definitely will raise CE if elaborated at runtime.
1919 -- If not set, the expression may or may not raise CE. In other words, on
1920 -- static expressions, the flag is set accurately, on non-static
1921 -- expressions it is set conservatively.
1923 -- Redundant_Use (Flag13-Sem)
1924 -- Present in nodes that can appear as an operand in a use clause or use
1925 -- type clause (identifiers, expanded names, attribute references). Set
1926 -- to indicate that a use is redundant (and therefore need not be undone
1929 -- Renaming_Exception (Node2-Sem)
1930 -- Present in N_Exception_Declaration node. Used to point back to the
1931 -- exception renaming for an exception declared within a subprogram.
1932 -- What happens is that an exception declared in a subprogram is moved
1933 -- to the library level with a unique name, and the original exception
1934 -- becomes a renaming. This link from the library level exception to the
1935 -- renaming declaration allows registering of the proper exception name.
1937 -- Return_Statement_Entity (Node5-Sem)
1938 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1939 -- Points to an E_Return_Statement representing the return statement.
1941 -- Return_Object_Declarations (List3)
1942 -- Present in N_Extended_Return_Statement. Points to a list initially
1943 -- containing a single N_Object_Declaration representing the return
1944 -- object. We use a list (instead of just a pointer to the object decl)
1945 -- because Analyze wants to insert extra actions on this list.
1947 -- Rounded_Result (Flag18-Sem)
1948 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1949 -- Used in the fixed-point cases to indicate that the result must be
1950 -- rounded as a result of the use of the 'Round attribute. Also used for
1951 -- integer N_Op_Divide nodes to indicate that the result should be
1952 -- rounded to the nearest integer (breaking ties away from zero), rather
1953 -- than truncated towards zero as usual. These rounded integer operations
1954 -- are the result of expansion of rounded fixed-point divide, conversion
1955 -- and multiplication operations.
1957 -- SCIL_Entity (Node4-Sem)
1958 -- Present in SCIL nodes. Used to reference the tagged type associated
1959 -- with the SCIL node.
1961 -- SCIL_Controlling_Tag (Node5-Sem)
1962 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the
1963 -- controlling tag of a dispatching call.
1965 -- SCIL_Tag_Value (Node5-Sem)
1966 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1967 -- value that is being tested.
1969 -- SCIL_Target_Prim (Node2-Sem)
1970 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the tagged
1971 -- type primitive associated with the SCIL node.
1973 -- Scope (Node3-Sem)
1974 -- Present in defining identifiers, defining character literals and
1975 -- defining operator symbols (i.e. in all entities). The entities of a
1976 -- scope all use this field to reference the corresponding scope entity.
1977 -- See Einfo for further details.
1979 -- Shift_Count_OK (Flag4-Sem)
1980 -- A flag present in shift nodes to indicate that the shift count is
1981 -- known to be in range, i.e. is in the range from zero to word length
1982 -- minus one. If this flag is not set, then the shift count may be
1983 -- outside this range, i.e. larger than the word length, and the code
1984 -- must ensure that such shift counts give the appropriate result.
1986 -- Source_Type (Node1-Sem)
1987 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1988 -- source type entity for the unchecked conversion instantiation
1989 -- which gigi must do size validation for.
1991 -- Split_PPC (Flag17)
1992 -- When a Pre or Post aspect specification is processed, it is broken
1993 -- into AND THEN sections. The left most section has Split_PPC set to
1994 -- False, indicating that it is the original specification (e.g. for
1995 -- posting errors). For other sections, Split_PPC is set to True.
1996 -- This flag is set in both the N_Aspect_Specification node itself,
1997 -- and in the pragma which is generated from this node.
1999 -- Storage_Pool (Node1-Sem)
2000 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2001 -- and N_Extended_Return_Statement nodes. References the entity for the
2002 -- storage pool to be used for the allocate or free call or for the
2003 -- allocation of the returned value from function. Empty indicates that
2004 -- the global default pool is to be used. Note that in the case
2005 -- of a return statement, this field is set only if the function returns
2006 -- value of a type whose size is not known at compile time on the
2009 -- Suppress_Assignment_Checks (Flag18-Sem)
2010 -- Used in generated N_Assignment_Statement nodes to suppress predicate
2011 -- and range checks in cases where the generated code knows that the
2012 -- value being assigned is in range and satisfies any predicate. Also
2013 -- can be set in N_Object_Declaration nodes, to similarly suppress any
2014 -- checks on the initializing value.
2016 -- Suppress_Loop_Warnings (Flag17-Sem)
2017 -- Used in N_Loop_Statement node to indicate that warnings within the
2018 -- body of the loop should be suppressed. This is set when the range
2019 -- of a FOR loop is known to be null, or is probably null (loop would
2020 -- only execute if invalid values are present).
2022 -- Target_Type (Node2-Sem)
2023 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
2024 -- type entity for the unchecked conversion instantiation which gigi must
2025 -- do size validation for.
2027 -- Then_Actions (List3-Sem)
2028 -- This field is present in if expression nodes. During code expansion
2029 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
2030 -- at an appropriate place in the tree to get elaborated at the right
2031 -- time. For if expressions, we have to be sure that the actions for
2032 -- for the Then branch are only elaborated if the condition is True.
2033 -- The Then_Actions field is used as a temporary parking place for
2034 -- these actions. The final tree is always rewritten to eliminate the
2035 -- need for this field, so in the tree passed to Gigi, this field is
2036 -- always set to No_List.
2038 -- Treat_Fixed_As_Integer (Flag14-Sem)
2039 -- This flag appears in operator nodes for divide, multiply, mod and rem
2040 -- on fixed-point operands. It indicates that the operands are to be
2041 -- treated as integer values, ignoring small values. This flag is only
2042 -- set as a result of expansion of fixed-point operations. Typically a
2043 -- fixed-point multiplication in the source generates subsidiary
2044 -- multiplication and division operations that work with the underlying
2045 -- integer values and have this flag set. Note that this flag is not
2046 -- needed on other arithmetic operations (add, neg, subtract etc.) since
2047 -- in these cases it is always the case that fixed is treated as integer.
2048 -- The Etype field MUST be set if this flag is set. The analyzer knows to
2049 -- leave such nodes alone, and whoever makes them must set the correct
2052 -- TSS_Elist (Elist3-Sem)
2053 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2054 -- entries for each TSS (type support subprogram) associated with the
2055 -- frozen type. The elements of the list are the entities for the
2056 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2057 -- if there are no type support subprograms for the type or if the freeze
2058 -- node is not for a type.
2060 -- Unreferenced_In_Spec (Flag7-Sem)
2061 -- Present in N_With_Clause nodes. Set if the with clause is on the
2062 -- package or subprogram spec where the main unit is the corresponding
2063 -- body, and is not referenced by the spec (it may still be referenced by
2064 -- the body, so this flag is used to generate the proper message (see
2065 -- Sem_Util.Check_Unused_Withs for details)
2067 -- Uninitialized_Variable (Node3-Sem)
2068 -- Present in N_Formal_Private_Type_Definition and in N_Private_
2069 -- Extension_Declarations. Indicates that a variable in a generic unit
2070 -- whose type is a formal private or derived type is read without being
2071 -- initialized. Used to warn if the corresponding actual type is not
2072 -- a fully initialized type.
2074 -- Used_Operations (Elist5-Sem)
2075 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2076 -- are made potentially use-visible by the clause. Simplifies processing
2077 -- on exit from the scope of the use_type_clause, in particular in the
2078 -- case of Use_All_Type, when those operations several scopes.
2080 -- Was_Originally_Stub (Flag13-Sem)
2081 -- This flag is set in the node for a proper body that replaces stub.
2082 -- During the analysis procedure, stubs in some situations get rewritten
2083 -- by the corresponding bodies, and we set this flag to remember that
2084 -- this happened. Note that it is not good enough to rely on the use of
2085 -- Original_Node here because of the case of nested instantiations where
2086 -- the substituted node can be copied.
2088 -- Withed_Body (Node1-Sem)
2089 -- Present in N_With_Clause nodes. Set if the unit in whose context
2090 -- the with_clause appears instantiates a generic contained in the
2091 -- library unit of the with_clause and as a result loads its body.
2092 -- Used for a more precise unit traversal for CodePeer.
2094 --------------------------------------------------
2095 -- Note on Use of End_Label and End_Span Fields --
2096 --------------------------------------------------
2098 -- Several constructs have end lines:
2100 -- Loop Statement end loop [loop_IDENTIFIER];
2101 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2102 -- Task Definition end [task_IDENTIFIER]
2103 -- Protected Definition end [protected_IDENTIFIER]
2104 -- Protected Body end [protected_IDENTIFIER]
2106 -- Block Statement end [block_IDENTIFIER];
2107 -- Subprogram Body end [DESIGNATOR];
2108 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2109 -- Task Body end [task_IDENTIFIER];
2110 -- Accept Statement end [entry_IDENTIFIER]];
2111 -- Entry Body end [entry_IDENTIFIER];
2113 -- If Statement end if;
2114 -- Case Statement end case;
2116 -- Record Definition end record;
2117 -- Enumeration Definition );
2119 -- The End_Label and End_Span fields are used to mark the locations of
2120 -- these lines, and also keep track of the label in the case where a label
2123 -- For the first group above, the End_Label field of the corresponding node
2124 -- is used to point to the label identifier. In the case where there is no
2125 -- label in the source, the parser supplies a dummy identifier (with
2126 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2127 -- marks the location of the token following the END token.
2129 -- For the second group, the use of End_Label is similar, but the End_Label
2130 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2131 -- simply because in some cases there is no room in the parent node.
2133 -- For the third group, there is never any label, and instead of using
2134 -- End_Label, we use the End_Span field which gives the location of the
2135 -- token following END, relative to the starting Sloc of the construct,
2136 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2137 -- following the End_Label.
2139 -- The record definition case is handled specially, we treat it as though
2140 -- it required an optional label which is never present, and so the parser
2141 -- always builds a dummy identifier with Comes From Source set False. The
2142 -- reason we do this, rather than using End_Span in this case, is that we
2143 -- want to generate a cross-ref entry for the end of a record, since it
2144 -- represents a scope for name declaration purposes.
2146 -- The enumeration definition case is handled in an exactly similar manner,
2147 -- building a dummy identifier to get a cross-reference.
2149 -- Note: the reason we store the difference as a Uint, instead of storing
2150 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2151 -- distinguished from other types of values, and we count on all general
2152 -- use fields being self describing. To make things easier for clients,
2153 -- note that we provide function End_Location, and procedure
2154 -- Set_End_Location to allow access to the logical value (which is the
2155 -- Source_Ptr value for the end token).
2157 ---------------------
2158 -- Syntactic Nodes --
2159 ---------------------
2161 ---------------------
2162 -- 2.3 Identifier --
2163 ---------------------
2165 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2166 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2168 -- An IDENTIFIER shall not be a reserved word
2170 -- In the Ada grammar identifiers are the bottom level tokens which have
2171 -- very few semantics. Actual program identifiers are direct names. If
2172 -- we were being 100% honest with the grammar, then we would have a node
2173 -- called N_Direct_Name which would point to an identifier. However,
2174 -- that's too many extra nodes, so we just use the N_Identifier node
2175 -- directly as a direct name, and it contains the expression fields and
2176 -- Entity field that correspond to its use as a direct name. In those
2177 -- few cases where identifiers appear in contexts where they are not
2178 -- direct names (pragmas, pragma argument associations, attribute
2179 -- references and attribute definition clauses), the Chars field of the
2180 -- node contains the Name_Id for the identifier name.
2182 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2183 -- cases. First, an incorrect use of a reserved word as an identifier is
2184 -- diagnosed and then treated as a normal identifier. Second, an
2185 -- attribute designator of the form of a reserved word (access, delta,
2186 -- digits, range) is treated as an identifier.
2188 -- Note: The set of letters that is permitted in an identifier depends
2189 -- on the character set in use. See package Csets for full details.
2192 -- Sloc points to identifier
2193 -- Chars (Name1) contains the Name_Id for the identifier
2194 -- Entity (Node4-Sem)
2195 -- Associated_Node (Node4-Sem)
2196 -- Original_Discriminant (Node2-Sem)
2197 -- Redundant_Use (Flag13-Sem)
2198 -- Atomic_Sync_Required (Flag14-Sem)
2199 -- Has_Private_View (Flag11-Sem) (set in generic units)
2200 -- plus fields for expression
2202 --------------------------
2203 -- 2.4 Numeric Literal --
2204 --------------------------
2206 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2208 ----------------------------
2209 -- 2.4.1 Decimal Literal --
2210 ----------------------------
2212 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2214 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2216 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2218 -- Decimal literals appear in the tree as either integer literal nodes
2219 -- or real literal nodes, depending on whether a period is present.
2221 -- Note: literal nodes appear as a result of direct use of literals
2222 -- in the source program, and also as the result of evaluating
2223 -- expressions at compile time. In the latter case, it is possible
2224 -- to construct real literals that have no syntactic representation
2225 -- using the standard literal format. Such literals are listed by
2226 -- Sprint using the notation [numerator / denominator].
2228 -- Note: the value of an integer literal node created by the front end
2229 -- is never outside the range of values of the base type. However, it
2230 -- can be the case that the created value is outside the range of the
2231 -- particular subtype. This happens in the case of integer overflows
2232 -- with checks suppressed.
2234 -- N_Integer_Literal
2235 -- Sloc points to literal
2236 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2237 -- has been constant-folded into its literal value.
2238 -- Intval (Uint3) contains integer value of literal
2239 -- plus fields for expression
2240 -- Print_In_Hex (Flag13-Sem)
2243 -- Sloc points to literal
2244 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2245 -- has been constant-folded into its literal value.
2246 -- Realval (Ureal3) contains real value of literal
2247 -- Corresponding_Integer_Value (Uint4-Sem)
2248 -- Is_Machine_Number (Flag11-Sem)
2249 -- plus fields for expression
2251 --------------------------
2252 -- 2.4.2 Based Literal --
2253 --------------------------
2255 -- BASED_LITERAL ::=
2256 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2260 -- BASED_NUMERAL ::=
2261 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2263 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2265 -- Based literals appear in the tree as either integer literal nodes
2266 -- or real literal nodes, depending on whether a period is present.
2268 ----------------------------
2269 -- 2.5 Character Literal --
2270 ----------------------------
2272 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2274 -- N_Character_Literal
2275 -- Sloc points to literal
2276 -- Chars (Name1) contains the Name_Id for the identifier
2277 -- Char_Literal_Value (Uint2) contains the literal value
2278 -- Entity (Node4-Sem)
2279 -- Associated_Node (Node4-Sem)
2280 -- Has_Private_View (Flag11-Sem) set in generic units.
2281 -- plus fields for expression
2283 -- Note: the Entity field will be missing (set to Empty) for character
2284 -- literals whose type is Standard.Wide_Character or Standard.Character
2285 -- or a type derived from one of these two. In this case the character
2286 -- literal stands for its own coding. The reason we take this irregular
2287 -- short cut is to avoid the need to build lots of junk defining
2288 -- character literal nodes.
2290 -------------------------
2291 -- 2.6 String Literal --
2292 -------------------------
2294 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2296 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2297 -- single GRAPHIC_CHARACTER other than a quotation mark.
2299 -- Is_Folded_In_Parser is True if the parser created this literal by
2300 -- folding a sequence of "&" operators. For example, if the source code
2301 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2302 -- is set. This flag is needed because the parser doesn't know about
2303 -- visibility, so the folded result might be wrong, and semantic
2304 -- analysis needs to check for that.
2307 -- Sloc points to literal
2308 -- Strval (Str3) contains Id of string value
2309 -- Has_Wide_Character (Flag11-Sem)
2310 -- Has_Wide_Wide_Character (Flag13-Sem)
2311 -- Is_Folded_In_Parser (Flag4)
2312 -- plus fields for expression
2318 -- A COMMENT starts with two adjacent hyphens and extends up to the
2319 -- end of the line. A COMMENT may appear on any line of a program.
2321 -- Comments are skipped by the scanner and do not appear in the tree.
2322 -- It is possible to reconstruct the position of comments with respect
2323 -- to the elements of the tree by using the source position (Sloc)
2324 -- pointers that appear in every tree node.
2330 -- PRAGMA ::= pragma IDENTIFIER
2331 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2333 -- Note that a pragma may appear in the tree anywhere a declaration
2334 -- or a statement may appear, as well as in some other situations
2335 -- which are explicitly documented.
2338 -- Sloc points to PRAGMA
2339 -- Next_Pragma (Node1-Sem)
2340 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2341 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2342 -- Pragma_Identifier (Node4)
2343 -- Next_Rep_Item (Node5-Sem)
2344 -- Class_Present (Flag6) set if from Aspect with 'Class
2345 -- From_Aspect_Specification (Flag13-Sem)
2346 -- Is_Delayed_Aspect (Flag14-Sem)
2347 -- Is_Disabled (Flag15-Sem)
2348 -- Is_Ignored (Flag9-Sem)
2349 -- Is_Checked (Flag11-Sem)
2350 -- Import_Interface_Present (Flag16-Sem)
2351 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2353 -- Note: we should have a section on what pragmas are passed on to
2354 -- the back end to be processed. This section should note that pragma
2355 -- Psect_Object is always converted to Common_Object, but there are
2356 -- undoubtedly many other similar notes required ???
2358 -- Note: a utility function Pragma_Name may be applied to pragma nodes
2359 -- to conveniently obtain the Chars field of the Pragma_Identifier.
2361 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2362 -- aspect name, as does the Pragma_Identifier. In this case if the
2363 -- pragma has a local name argument (such as pragma Inline), it is
2364 -- resolved to point to the specific entity affected by the pragma.
2366 --------------------------------------
2367 -- 2.8 Pragma Argument Association --
2368 --------------------------------------
2370 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2371 -- [pragma_argument_IDENTIFIER =>] NAME
2372 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2374 -- In Ada 2012, there are two more possibilities:
2376 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2377 -- [pragma_argument_ASPECT_MARK =>] NAME
2378 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2380 -- where the interesting allowed cases (which do not fit the syntax of
2381 -- the first alternative above) are
2383 -- ASPECT_MARK => Pre'Class |
2385 -- Type_Invariant'Class |
2388 -- We allow this special usage in all Ada modes, but it would be a
2389 -- pain to allow these aspects to pervade the pragma syntax, and the
2390 -- representation of pragma nodes internally. So what we do is to
2391 -- replace these ASPECT_MARK forms with identifiers whose name is one
2392 -- of the special internal names _Pre, _Post or _Type_Invariant.
2394 -- We do a similar replacement of these Aspect_Mark forms in the
2395 -- Expression of a pragma argument association for the cases of
2396 -- the first arguments of any Check pragmas and Check_Policy pragmas
2398 -- N_Pragma_Argument_Association
2399 -- Sloc points to first token in association
2400 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2401 -- Expression (Node3)
2403 ------------------------
2404 -- 2.9 Reserved Word --
2405 ------------------------
2407 -- Reserved words are parsed by the scanner, and returned as the
2408 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2410 ----------------------------
2411 -- 3.1 Basic Declaration --
2412 ----------------------------
2414 -- BASIC_DECLARATION ::=
2415 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2416 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2417 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2418 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2419 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2420 -- | GENERIC_INSTANTIATION
2422 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2423 -- see further description in section on semantic nodes.
2425 -- Also, in the tree that is constructed, a pragma may appear
2426 -- anywhere that a declaration may appear.
2428 ------------------------------
2429 -- 3.1 Defining Identifier --
2430 ------------------------------
2432 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2434 -- A defining identifier is an entity, which has additional fields
2435 -- depending on the setting of the Ekind field. These additional
2436 -- fields are defined (and access subprograms declared) in package
2439 -- Note: N_Defining_Identifier is an extended node whose fields are
2440 -- deliberate layed out to match the layout of fields in an ordinary
2441 -- N_Identifier node allowing for easy alteration of an identifier
2442 -- node into a defining identifier node. For details, see procedure
2443 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2445 -- N_Defining_Identifier
2446 -- Sloc points to identifier
2447 -- Chars (Name1) contains the Name_Id for the identifier
2448 -- Next_Entity (Node2-Sem)
2449 -- Scope (Node3-Sem)
2450 -- Etype (Node5-Sem)
2452 -----------------------------
2453 -- 3.2.1 Type Declaration --
2454 -----------------------------
2456 -- TYPE_DECLARATION ::=
2457 -- FULL_TYPE_DECLARATION
2458 -- | INCOMPLETE_TYPE_DECLARATION
2459 -- | PRIVATE_TYPE_DECLARATION
2460 -- | PRIVATE_EXTENSION_DECLARATION
2462 ----------------------------------
2463 -- 3.2.1 Full Type Declaration --
2464 ----------------------------------
2466 -- FULL_TYPE_DECLARATION ::=
2467 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2468 -- is TYPE_DEFINITION
2469 -- [ASPECT_SPECIFICATIONS];
2470 -- | TASK_TYPE_DECLARATION
2471 -- | PROTECTED_TYPE_DECLARATION
2473 -- The full type declaration node is used only for the first case. The
2474 -- second case (concurrent type declaration), is represented directly
2475 -- by a task type declaration or a protected type declaration.
2477 -- N_Full_Type_Declaration
2478 -- Sloc points to TYPE
2479 -- Defining_Identifier (Node1)
2480 -- Discriminant_Specifications (List4) (set to No_List if none)
2481 -- Type_Definition (Node3)
2482 -- Discr_Check_Funcs_Built (Flag11-Sem)
2484 ----------------------------
2485 -- 3.2.1 Type Definition --
2486 ----------------------------
2488 -- TYPE_DEFINITION ::=
2489 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2490 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2491 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2492 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2494 --------------------------------
2495 -- 3.2.2 Subtype Declaration --
2496 --------------------------------
2498 -- SUBTYPE_DECLARATION ::=
2499 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2500 -- [ASPECT_SPECIFICATIONS];
2502 -- The subtype indication field is set to Empty for subtypes
2503 -- declared in package Standard (Positive, Natural).
2505 -- N_Subtype_Declaration
2506 -- Sloc points to SUBTYPE
2507 -- Defining_Identifier (Node1)
2508 -- Null_Exclusion_Present (Flag11)
2509 -- Subtype_Indication (Node5)
2510 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2511 -- Exception_Junk (Flag8-Sem)
2512 -- Has_Dynamic_Range_Check (Flag12-Sem)
2514 -------------------------------
2515 -- 3.2.2 Subtype Indication --
2516 -------------------------------
2518 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2520 -- Note: if no constraint is present, the subtype indication appears
2521 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2522 -- node is used only if a constraint is present.
2524 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2525 -- with the null-exclusion part (see AI-231), we had to introduce a new
2526 -- attribute in all the parents of subtype_indication nodes to indicate
2527 -- if the null-exclusion is present.
2529 -- Note: the reason that this node has expression fields is that a
2530 -- subtype indication can appear as an operand of a membership test.
2532 -- N_Subtype_Indication
2533 -- Sloc points to first token of subtype mark
2534 -- Subtype_Mark (Node4)
2535 -- Constraint (Node3)
2536 -- Etype (Node5-Sem)
2537 -- Must_Not_Freeze (Flag8-Sem)
2539 -- Note: Depending on context, the Etype is either the entity of the
2540 -- Subtype_Mark field, or it is an itype constructed to reify the
2541 -- subtype indication. In particular, such itypes are created for a
2542 -- subtype indication that appears in an array type declaration. This
2543 -- simplifies constraint checking in indexed components.
2545 -- For subtype indications that appear in scalar type and subtype
2546 -- declarations, the Etype is the entity of the subtype mark.
2548 -------------------------
2549 -- 3.2.2 Subtype Mark --
2550 -------------------------
2552 -- SUBTYPE_MARK ::= subtype_NAME
2554 -----------------------
2555 -- 3.2.2 Constraint --
2556 -----------------------
2558 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2560 ------------------------------
2561 -- 3.2.2 Scalar Constraint --
2562 ------------------------------
2564 -- SCALAR_CONSTRAINT ::=
2565 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2567 ---------------------------------
2568 -- 3.2.2 Composite Constraint --
2569 ---------------------------------
2571 -- COMPOSITE_CONSTRAINT ::=
2572 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2574 -------------------------------
2575 -- 3.3.1 Object Declaration --
2576 -------------------------------
2578 -- OBJECT_DECLARATION ::=
2579 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2580 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2581 -- [ASPECT_SPECIFICATIONS];
2582 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2583 -- ACCESS_DEFINITION [:= EXPRESSION]
2584 -- [ASPECT_SPECIFICATIONS];
2585 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2586 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2587 -- [ASPECT_SPECIFICATIONS];
2588 -- | SINGLE_TASK_DECLARATION
2589 -- | SINGLE_PROTECTED_DECLARATION
2591 -- Note: aliased is not permitted in Ada 83 mode
2593 -- The N_Object_Declaration node is only for the first two cases.
2594 -- Single task declaration is handled by P_Task (9.1)
2595 -- Single protected declaration is handled by P_protected (9.5)
2597 -- Although the syntax allows multiple identifiers in the list, the
2598 -- semantics is as though successive declarations were given with
2599 -- identical type definition and expression components. To simplify
2600 -- semantic processing, the parser represents a multiple declaration
2601 -- case as a sequence of single declarations, using the More_Ids and
2602 -- Prev_Ids flags to preserve the original source form as described
2603 -- in the section on "Handling of Defining Identifier Lists".
2605 -- The flag Has_Init_Expression is set if an initializing expression
2606 -- is present. Normally it is set if and only if Expression contains
2607 -- a non-empty value, but there is an exception to this. When the
2608 -- initializing expression is an aggregate which requires explicit
2609 -- assignments, the Expression field gets set to Empty, but this flag
2610 -- is still set, so we don't forget we had an initializing expression.
2612 -- Note: if a range check is required for the initialization
2613 -- expression then the Do_Range_Check flag is set in the Expression,
2614 -- with the check being done against the type given by the object
2615 -- definition, which is also the Etype of the defining identifier.
2617 -- Note: the contents of the Expression field must be ignored (i.e.
2618 -- treated as though it were Empty) if No_Initialization is set True.
2620 -- Note: the back end places some restrictions on the form of the
2621 -- Expression field. If the object being declared is Atomic, then
2622 -- the Expression may not have the form of an aggregate (since this
2623 -- might cause the back end to generate separate assignments). In this
2624 -- case the front end must generate an extra temporary and initialize
2625 -- this temporary as required (the temporary itself is not atomic).
2627 -- Note: there is not node kind for object definition. Instead, the
2628 -- corresponding field holds a subtype indication, an array type
2629 -- definition, or (Ada 2005, AI-406) an access definition.
2631 -- N_Object_Declaration
2632 -- Sloc points to first identifier
2633 -- Defining_Identifier (Node1)
2634 -- Aliased_Present (Flag4)
2635 -- Constant_Present (Flag17) set if CONSTANT appears
2636 -- Null_Exclusion_Present (Flag11)
2637 -- Object_Definition (Node4) subtype indic./array type def./access def.
2638 -- Expression (Node3) (set to Empty if not present)
2639 -- Handler_List_Entry (Node2-Sem)
2640 -- Corresponding_Generic_Association (Node5-Sem)
2641 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2642 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2643 -- No_Initialization (Flag13-Sem)
2644 -- Assignment_OK (Flag15-Sem)
2645 -- Exception_Junk (Flag8-Sem)
2646 -- Is_Subprogram_Descriptor (Flag16-Sem)
2647 -- Has_Init_Expression (Flag14)
2648 -- Suppress_Assignment_Checks (Flag18-Sem)
2650 -------------------------------------
2651 -- 3.3.1 Defining Identifier List --
2652 -------------------------------------
2654 -- DEFINING_IDENTIFIER_LIST ::=
2655 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2657 -------------------------------
2658 -- 3.3.2 Number Declaration --
2659 -------------------------------
2661 -- NUMBER_DECLARATION ::=
2662 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2664 -- Although the syntax allows multiple identifiers in the list, the
2665 -- semantics is as though successive declarations were given with
2666 -- identical expressions. To simplify semantic processing, the parser
2667 -- represents a multiple declaration case as a sequence of single
2668 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2669 -- the original source form as described in the section on "Handling
2670 -- of Defining Identifier Lists".
2672 -- N_Number_Declaration
2673 -- Sloc points to first identifier
2674 -- Defining_Identifier (Node1)
2675 -- Expression (Node3)
2676 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2677 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2679 ----------------------------------
2680 -- 3.4 Derived Type Definition --
2681 ----------------------------------
2683 -- DERIVED_TYPE_DEFINITION ::=
2684 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2685 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2687 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2690 -- Note: a record extension part is required if ABSTRACT is present
2692 -- N_Derived_Type_Definition
2693 -- Sloc points to NEW
2694 -- Abstract_Present (Flag4)
2695 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2696 -- Subtype_Indication (Node5)
2697 -- Record_Extension_Part (Node3) (set to Empty if not present)
2698 -- Limited_Present (Flag17)
2699 -- Task_Present (Flag5) set in task interfaces
2700 -- Protected_Present (Flag6) set in protected interfaces
2701 -- Synchronized_Present (Flag7) set in interfaces
2702 -- Interface_List (List2) (set to No_List if none)
2703 -- Interface_Present (Flag16) set in abstract interfaces
2705 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2706 -- Interface_List, and Interface_Present are used for abstract
2707 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2709 ---------------------------
2710 -- 3.5 Range Constraint --
2711 ---------------------------
2713 -- RANGE_CONSTRAINT ::= range RANGE
2715 -- N_Range_Constraint
2716 -- Sloc points to RANGE
2717 -- Range_Expression (Node4)
2724 -- RANGE_ATTRIBUTE_REFERENCE
2725 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2727 -- Note: the case of a range given as a range attribute reference
2728 -- appears directly in the tree as an attribute reference.
2730 -- Note: the field name for a reference to a range is Range_Expression
2731 -- rather than Range, because range is a reserved keyword in Ada.
2733 -- Note: the reason that this node has expression fields is that a
2734 -- range can appear as an operand of a membership test. The Etype
2735 -- field is the type of the range (we do NOT construct an implicit
2736 -- subtype to represent the range exactly).
2739 -- Sloc points to ..
2740 -- Low_Bound (Node1)
2741 -- High_Bound (Node2)
2742 -- Includes_Infinities (Flag11)
2743 -- plus fields for expression
2745 -- Note: if the range appears in a context, such as a subtype
2746 -- declaration, where range checks are required on one or both of
2747 -- the expression fields, then type conversion nodes are inserted
2748 -- to represent the required checks.
2750 ----------------------------------------
2751 -- 3.5.1 Enumeration Type Definition --
2752 ----------------------------------------
2754 -- ENUMERATION_TYPE_DEFINITION ::=
2755 -- (ENUMERATION_LITERAL_SPECIFICATION
2756 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2758 -- Note: the Literals field in the node described below is null for
2759 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2760 -- which special processing handles these types as special cases.
2762 -- N_Enumeration_Type_Definition
2763 -- Sloc points to left parenthesis
2764 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2765 -- End_Label (Node4) (set to Empty if internally generated record)
2767 ----------------------------------------------
2768 -- 3.5.1 Enumeration Literal Specification --
2769 ----------------------------------------------
2771 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2772 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2774 ---------------------------------------
2775 -- 3.5.1 Defining Character Literal --
2776 ---------------------------------------
2778 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2780 -- A defining character literal is an entity, which has additional
2781 -- fields depending on the setting of the Ekind field. These
2782 -- additional fields are defined (and access subprograms declared)
2783 -- in package Einfo.
2785 -- Note: N_Defining_Character_Literal is an extended node whose fields
2786 -- are deliberate layed out to match the layout of fields in an ordinary
2787 -- N_Character_Literal node allowing for easy alteration of a character
2788 -- literal node into a defining character literal node. For details, see
2789 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2791 -- N_Defining_Character_Literal
2792 -- Sloc points to literal
2793 -- Chars (Name1) contains the Name_Id for the identifier
2794 -- Next_Entity (Node2-Sem)
2795 -- Scope (Node3-Sem)
2796 -- Etype (Node5-Sem)
2798 ------------------------------------
2799 -- 3.5.4 Integer Type Definition --
2800 ------------------------------------
2802 -- Note: there is an error in this rule in the latest version of the
2803 -- grammar, so we have retained the old rule pending clarification.
2805 -- INTEGER_TYPE_DEFINITION ::=
2806 -- SIGNED_INTEGER_TYPE_DEFINITION
2807 -- | MODULAR_TYPE_DEFINITION
2809 -------------------------------------------
2810 -- 3.5.4 Signed Integer Type Definition --
2811 -------------------------------------------
2813 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2814 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2816 -- Note: the Low_Bound and High_Bound fields are set to Empty
2817 -- for integer types defined in package Standard.
2819 -- N_Signed_Integer_Type_Definition
2820 -- Sloc points to RANGE
2821 -- Low_Bound (Node1)
2822 -- High_Bound (Node2)
2824 ------------------------------------
2825 -- 3.5.4 Modular Type Definition --
2826 ------------------------------------
2828 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2830 -- N_Modular_Type_Definition
2831 -- Sloc points to MOD
2832 -- Expression (Node3)
2834 ---------------------------------
2835 -- 3.5.6 Real Type Definition --
2836 ---------------------------------
2838 -- REAL_TYPE_DEFINITION ::=
2839 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2841 --------------------------------------
2842 -- 3.5.7 Floating Point Definition --
2843 --------------------------------------
2845 -- FLOATING_POINT_DEFINITION ::=
2846 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2848 -- Note: The Digits_Expression and Real_Range_Specifications fields
2849 -- are set to Empty for floating-point types declared in Standard.
2851 -- N_Floating_Point_Definition
2852 -- Sloc points to DIGITS
2853 -- Digits_Expression (Node2)
2854 -- Real_Range_Specification (Node4) (set to Empty if not present)
2856 -------------------------------------
2857 -- 3.5.7 Real Range Specification --
2858 -------------------------------------
2860 -- REAL_RANGE_SPECIFICATION ::=
2861 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2863 -- N_Real_Range_Specification
2864 -- Sloc points to RANGE
2865 -- Low_Bound (Node1)
2866 -- High_Bound (Node2)
2868 -----------------------------------
2869 -- 3.5.9 Fixed Point Definition --
2870 -----------------------------------
2872 -- FIXED_POINT_DEFINITION ::=
2873 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2875 --------------------------------------------
2876 -- 3.5.9 Ordinary Fixed Point Definition --
2877 --------------------------------------------
2879 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2880 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2882 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2884 -- N_Ordinary_Fixed_Point_Definition
2885 -- Sloc points to DELTA
2886 -- Delta_Expression (Node3)
2887 -- Real_Range_Specification (Node4)
2889 -------------------------------------------
2890 -- 3.5.9 Decimal Fixed Point Definition --
2891 -------------------------------------------
2893 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2894 -- delta static_EXPRESSION
2895 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2897 -- Note: decimal types are not permitted in Ada 83 mode
2899 -- N_Decimal_Fixed_Point_Definition
2900 -- Sloc points to DELTA
2901 -- Delta_Expression (Node3)
2902 -- Digits_Expression (Node2)
2903 -- Real_Range_Specification (Node4) (set to Empty if not present)
2905 ------------------------------
2906 -- 3.5.9 Digits Constraint --
2907 ------------------------------
2909 -- DIGITS_CONSTRAINT ::=
2910 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2912 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2913 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2915 -- N_Digits_Constraint
2916 -- Sloc points to DIGITS
2917 -- Digits_Expression (Node2)
2918 -- Range_Constraint (Node4) (set to Empty if not present)
2920 --------------------------------
2921 -- 3.6 Array Type Definition --
2922 --------------------------------
2924 -- ARRAY_TYPE_DEFINITION ::=
2925 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2927 -----------------------------------------
2928 -- 3.6 Unconstrained Array Definition --
2929 -----------------------------------------
2931 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2932 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2933 -- COMPONENT_DEFINITION
2935 -- Note: dimensionality of array is indicated by number of entries in
2936 -- the Subtype_Marks list, which has one entry for each dimension.
2938 -- N_Unconstrained_Array_Definition
2939 -- Sloc points to ARRAY
2940 -- Subtype_Marks (List2)
2941 -- Component_Definition (Node4)
2943 -----------------------------------
2944 -- 3.6 Index Subtype Definition --
2945 -----------------------------------
2947 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2949 -- There is no explicit node in the tree for an index subtype
2950 -- definition since the N_Unconstrained_Array_Definition node
2951 -- incorporates the type marks which appear in this context.
2953 ---------------------------------------
2954 -- 3.6 Constrained Array Definition --
2955 ---------------------------------------
2957 -- CONSTRAINED_ARRAY_DEFINITION ::=
2958 -- array (DISCRETE_SUBTYPE_DEFINITION
2959 -- {, DISCRETE_SUBTYPE_DEFINITION})
2960 -- of COMPONENT_DEFINITION
2962 -- Note: dimensionality of array is indicated by number of entries
2963 -- in the Discrete_Subtype_Definitions list, which has one entry
2964 -- for each dimension.
2966 -- N_Constrained_Array_Definition
2967 -- Sloc points to ARRAY
2968 -- Discrete_Subtype_Definitions (List2)
2969 -- Component_Definition (Node4)
2971 -- Note: although the language allows the full syntax for discrete
2972 -- subtype definitions (i.e. a discrete subtype indication or a range),
2973 -- in the generated tree, we always rewrite these as N_Range nodes.
2975 --------------------------------------
2976 -- 3.6 Discrete Subtype Definition --
2977 --------------------------------------
2979 -- DISCRETE_SUBTYPE_DEFINITION ::=
2980 -- discrete_SUBTYPE_INDICATION | RANGE
2982 -------------------------------
2983 -- 3.6 Component Definition --
2984 -------------------------------
2986 -- COMPONENT_DEFINITION ::=
2987 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2989 -- Note: although the syntax does not permit a component definition to
2990 -- be an anonymous array (and the parser will diagnose such an attempt
2991 -- with an appropriate message), it is possible for anonymous arrays
2992 -- to appear as component definitions. The semantics and back end handle
2993 -- this case properly, and the expander in fact generates such cases.
2994 -- Access_Definition is an optional field that gives support to
2995 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2996 -- Subtype_Indication field or else the Access_Definition field.
2998 -- N_Component_Definition
2999 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
3000 -- Aliased_Present (Flag4)
3001 -- Null_Exclusion_Present (Flag11)
3002 -- Subtype_Indication (Node5) (set to Empty if not present)
3003 -- Access_Definition (Node3) (set to Empty if not present)
3005 -----------------------------
3006 -- 3.6.1 Index Constraint --
3007 -----------------------------
3009 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3011 -- It is not in general possible to distinguish between discriminant
3012 -- constraints and index constraints at parse time, since a simple
3013 -- name could be either the subtype mark of a discrete range, or an
3014 -- expression in a discriminant association with no name. Either
3015 -- entry appears simply as the name, and the semantic parse must
3016 -- distinguish between the two cases. Thus we use a common tree
3017 -- node format for both of these constraint types.
3019 -- See Discriminant_Constraint for format of node
3021 ---------------------------
3022 -- 3.6.1 Discrete Range --
3023 ---------------------------
3025 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3027 ----------------------------
3028 -- 3.7 Discriminant Part --
3029 ----------------------------
3031 -- DISCRIMINANT_PART ::=
3032 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3034 ------------------------------------
3035 -- 3.7 Unknown Discriminant Part --
3036 ------------------------------------
3038 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
3040 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
3042 -- There is no explicit node in the tree for an unknown discriminant
3043 -- part. Instead the Unknown_Discriminants_Present flag is set in the
3046 ----------------------------------
3047 -- 3.7 Known Discriminant Part --
3048 ----------------------------------
3050 -- KNOWN_DISCRIMINANT_PART ::=
3051 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3053 -------------------------------------
3054 -- 3.7 Discriminant Specification --
3055 -------------------------------------
3057 -- DISCRIMINANT_SPECIFICATION ::=
3058 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3059 -- [:= DEFAULT_EXPRESSION]
3060 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3061 -- [:= DEFAULT_EXPRESSION]
3063 -- Although the syntax allows multiple identifiers in the list, the
3064 -- semantics is as though successive specifications were given with
3065 -- identical type definition and expression components. To simplify
3066 -- semantic processing, the parser represents a multiple declaration
3067 -- case as a sequence of single specifications, using the More_Ids and
3068 -- Prev_Ids flags to preserve the original source form as described
3069 -- in the section on "Handling of Defining Identifier Lists".
3071 -- N_Discriminant_Specification
3072 -- Sloc points to first identifier
3073 -- Defining_Identifier (Node1)
3074 -- Null_Exclusion_Present (Flag11)
3075 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3076 -- Expression (Node3) (set to Empty if no default expression)
3077 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3078 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3080 -----------------------------
3081 -- 3.7 Default Expression --
3082 -----------------------------
3084 -- DEFAULT_EXPRESSION ::= EXPRESSION
3086 ------------------------------------
3087 -- 3.7.1 Discriminant Constraint --
3088 ------------------------------------
3090 -- DISCRIMINANT_CONSTRAINT ::=
3091 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3093 -- It is not in general possible to distinguish between discriminant
3094 -- constraints and index constraints at parse time, since a simple
3095 -- name could be either the subtype mark of a discrete range, or an
3096 -- expression in a discriminant association with no name. Either
3097 -- entry appears simply as the name, and the semantic parse must
3098 -- distinguish between the two cases. Thus we use a common tree
3099 -- node format for both of these constraint types.
3101 -- N_Index_Or_Discriminant_Constraint
3102 -- Sloc points to left paren
3103 -- Constraints (List1) points to list of discrete ranges or
3104 -- discriminant associations
3106 -------------------------------------
3107 -- 3.7.1 Discriminant Association --
3108 -------------------------------------
3110 -- DISCRIMINANT_ASSOCIATION ::=
3111 -- [discriminant_SELECTOR_NAME
3112 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3114 -- Note: a discriminant association that has no selector name list
3115 -- appears directly as an expression in the tree.
3117 -- N_Discriminant_Association
3118 -- Sloc points to first token of discriminant association
3119 -- Selector_Names (List1) (always non-empty, since if no selector
3120 -- names are present, this node is not used, see comment above)
3121 -- Expression (Node3)
3123 ---------------------------------
3124 -- 3.8 Record Type Definition --
3125 ---------------------------------
3127 -- RECORD_TYPE_DEFINITION ::=
3128 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3130 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3132 -- There is no explicit node in the tree for a record type definition.
3133 -- Instead the flags for Tagged_Present and Limited_Present appear in
3134 -- the N_Record_Definition node for a record definition appearing in
3135 -- the context of a record type definition.
3137 ----------------------------
3138 -- 3.8 Record Definition --
3139 ----------------------------
3141 -- RECORD_DEFINITION ::=
3147 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
3148 -- flags appear only for a record definition appearing in a record
3151 -- Note: the NULL RECORD case is not permitted in Ada 83
3153 -- N_Record_Definition
3154 -- Sloc points to RECORD or NULL
3155 -- End_Label (Node4) (set to Empty if internally generated record)
3156 -- Abstract_Present (Flag4)
3157 -- Tagged_Present (Flag15)
3158 -- Limited_Present (Flag17)
3159 -- Component_List (Node1) empty in null record case
3160 -- Null_Present (Flag13) set in null record case
3161 -- Task_Present (Flag5) set in task interfaces
3162 -- Protected_Present (Flag6) set in protected interfaces
3163 -- Synchronized_Present (Flag7) set in interfaces
3164 -- Interface_Present (Flag16) set in abstract interfaces
3165 -- Interface_List (List2) (set to No_List if none)
3167 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3168 -- Interface_List and Interface_Present are used for abstract
3169 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3171 -------------------------
3172 -- 3.8 Component List --
3173 -------------------------
3175 -- COMPONENT_LIST ::=
3176 -- COMPONENT_ITEM {COMPONENT_ITEM}
3177 -- | {COMPONENT_ITEM} VARIANT_PART
3181 -- Sloc points to first token of component list
3182 -- Component_Items (List3)
3183 -- Variant_Part (Node4) (set to Empty if no variant part)
3184 -- Null_Present (Flag13)
3186 -------------------------
3187 -- 3.8 Component Item --
3188 -------------------------
3190 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3192 -- Note: A component item can also be a pragma, and in the tree
3193 -- that is obtained after semantic processing, a component item
3194 -- can be an N_Null node resulting from a non-recognized pragma.
3196 --------------------------------
3197 -- 3.8 Component Declaration --
3198 --------------------------------
3200 -- COMPONENT_DECLARATION ::=
3201 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3202 -- [:= DEFAULT_EXPRESSION]
3203 -- [ASPECT_SPECIFICATIONS];
3205 -- Note: although the syntax does not permit a component definition to
3206 -- be an anonymous array (and the parser will diagnose such an attempt
3207 -- with an appropriate message), it is possible for anonymous arrays
3208 -- to appear as component definitions. The semantics and back end handle
3209 -- this case properly, and the expander in fact generates such cases.
3211 -- Although the syntax allows multiple identifiers in the list, the
3212 -- semantics is as though successive declarations were given with the
3213 -- same component definition and expression components. To simplify
3214 -- semantic processing, the parser represents a multiple declaration
3215 -- case as a sequence of single declarations, using the More_Ids and
3216 -- Prev_Ids flags to preserve the original source form as described
3217 -- in the section on "Handling of Defining Identifier Lists".
3219 -- N_Component_Declaration
3220 -- Sloc points to first identifier
3221 -- Defining_Identifier (Node1)
3222 -- Component_Definition (Node4)
3223 -- Expression (Node3) (set to Empty if no default expression)
3224 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3225 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3227 -------------------------
3228 -- 3.8.1 Variant Part --
3229 -------------------------
3232 -- case discriminant_DIRECT_NAME is
3233 -- VARIANT {VARIANT}
3236 -- Note: the variants list can contain pragmas as well as variants.
3237 -- In a properly formed program there is at least one variant.
3240 -- Sloc points to CASE
3244 --------------------
3246 --------------------
3249 -- when DISCRETE_CHOICE_LIST =>
3253 -- Sloc points to WHEN
3254 -- Discrete_Choices (List4)
3255 -- Component_List (Node1)
3256 -- Enclosing_Variant (Node2-Sem)
3257 -- Present_Expr (Uint3-Sem)
3258 -- Dcheck_Function (Node5-Sem)
3259 -- Has_SP_Choice (Flag15-Sem)
3261 -- Note: in the list of Discrete_Choices, the tree passed to the back
3262 -- end does not have choice entries corresponding to names of statically
3263 -- predicated subtypes. Such entries are always expanded out to the list
3264 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3265 -- mode also has this expansion, but done with a proper Rewrite call on
3266 -- the N_Variant node so that ASIS can properly retrieve the original.
3268 ---------------------------------
3269 -- 3.8.1 Discrete Choice List --
3270 ---------------------------------
3272 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3274 ----------------------------
3275 -- 3.8.1 Discrete Choice --
3276 ----------------------------
3278 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3280 -- Note: in Ada 83 mode, the expression must be a simple expression
3282 -- The only choice that appears explicitly is the OTHERS choice, as
3283 -- defined here. Other cases of discrete choice (expression and
3284 -- discrete range) appear directly. This production is also used
3285 -- for the OTHERS possibility of an exception choice.
3287 -- Note: in accordance with the syntax, the parser does not check that
3288 -- OTHERS appears at the end on its own in a choice list context. This
3289 -- is a semantic check.
3292 -- Sloc points to OTHERS
3293 -- Others_Discrete_Choices (List1-Sem)
3294 -- All_Others (Flag11-Sem)
3296 ----------------------------------
3297 -- 3.9.1 Record Extension Part --
3298 ----------------------------------
3300 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3302 -- Note: record extension parts are not permitted in Ada 83 mode
3304 --------------------------------------
3305 -- 3.9.4 Interface Type Definition --
3306 --------------------------------------
3308 -- INTERFACE_TYPE_DEFINITION ::=
3309 -- [limited | task | protected | synchronized]
3310 -- interface [interface_list]
3312 -- Note: Interfaces are implemented with N_Record_Definition and
3313 -- N_Derived_Type_Definition nodes because most of the support
3314 -- for the analysis of abstract types has been reused to
3315 -- analyze abstract interfaces.
3317 ----------------------------------
3318 -- 3.10 Access Type Definition --
3319 ----------------------------------
3321 -- ACCESS_TYPE_DEFINITION ::=
3322 -- ACCESS_TO_OBJECT_DEFINITION
3323 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3325 --------------------------
3326 -- 3.10 Null Exclusion --
3327 --------------------------
3329 -- NULL_EXCLUSION ::= not null
3331 ---------------------------------------
3332 -- 3.10 Access To Object Definition --
3333 ---------------------------------------
3335 -- ACCESS_TO_OBJECT_DEFINITION ::=
3336 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3337 -- SUBTYPE_INDICATION
3339 -- N_Access_To_Object_Definition
3340 -- Sloc points to ACCESS
3341 -- All_Present (Flag15)
3342 -- Null_Exclusion_Present (Flag11)
3343 -- Subtype_Indication (Node5)
3344 -- Constant_Present (Flag17)
3346 -----------------------------------
3347 -- 3.10 General Access Modifier --
3348 -----------------------------------
3350 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3352 -- Note: general access modifiers are not permitted in Ada 83 mode
3354 -- There is no explicit node in the tree for general access modifier.
3355 -- Instead the All_Present or Constant_Present flags are set in the
3358 -------------------------------------------
3359 -- 3.10 Access To Subprogram Definition --
3360 -------------------------------------------
3362 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3363 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3364 -- | [NULL_EXCLUSION] access [protected] function
3365 -- PARAMETER_AND_RESULT_PROFILE
3367 -- Note: access to subprograms are not permitted in Ada 83 mode
3369 -- N_Access_Function_Definition
3370 -- Sloc points to ACCESS
3371 -- Null_Exclusion_Present (Flag11)
3372 -- Null_Exclusion_In_Return_Present (Flag14)
3373 -- Protected_Present (Flag6)
3374 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3375 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3377 -- N_Access_Procedure_Definition
3378 -- Sloc points to ACCESS
3379 -- Null_Exclusion_Present (Flag11)
3380 -- Protected_Present (Flag6)
3381 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3383 -----------------------------
3384 -- 3.10 Access Definition --
3385 -----------------------------
3387 -- ACCESS_DEFINITION ::=
3388 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3389 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3391 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3393 -- N_Access_Definition
3394 -- Sloc points to ACCESS
3395 -- Null_Exclusion_Present (Flag11)
3396 -- All_Present (Flag15)
3397 -- Constant_Present (Flag17)
3398 -- Subtype_Mark (Node4)
3399 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3401 -----------------------------------------
3402 -- 3.10.1 Incomplete Type Declaration --
3403 -----------------------------------------
3405 -- INCOMPLETE_TYPE_DECLARATION ::=
3406 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3408 -- N_Incomplete_Type_Declaration
3409 -- Sloc points to TYPE
3410 -- Defining_Identifier (Node1)
3411 -- Discriminant_Specifications (List4) (set to No_List if no
3412 -- discriminant part, or if the discriminant part is an
3413 -- unknown discriminant part)
3414 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3415 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3416 -- Tagged_Present (Flag15)
3418 ----------------------------
3419 -- 3.11 Declarative Part --
3420 ----------------------------
3422 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3424 -- Note: although the parser enforces the syntactic requirement that
3425 -- a declarative part can contain only declarations, the semantic
3426 -- processing may add statements to the list of actions in a
3427 -- declarative part, so the code generator should be prepared
3428 -- to accept a statement in this position.
3430 ----------------------------
3431 -- 3.11 Declarative Item --
3432 ----------------------------
3434 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3436 ----------------------------------
3437 -- 3.11 Basic Declarative Item --
3438 ----------------------------------
3440 -- BASIC_DECLARATIVE_ITEM ::=
3441 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3447 -- BODY ::= PROPER_BODY | BODY_STUB
3449 -----------------------
3450 -- 3.11 Proper Body --
3451 -----------------------
3454 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3461 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3462 -- | INDEXED_COMPONENT | SLICE
3463 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3464 -- | TYPE_CONVERSION | FUNCTION_CALL
3465 -- | CHARACTER_LITERAL
3467 ----------------------
3468 -- 4.1 Direct Name --
3469 ----------------------
3471 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3477 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3479 -------------------------------
3480 -- 4.1 Explicit Dereference --
3481 -------------------------------
3483 -- EXPLICIT_DEREFERENCE ::= NAME . all
3485 -- N_Explicit_Dereference
3486 -- Sloc points to ALL
3488 -- Actual_Designated_Subtype (Node4-Sem)
3489 -- Atomic_Sync_Required (Flag14-Sem)
3490 -- Has_Dereference_Action (Flag13-Sem)
3491 -- plus fields for expression
3493 -------------------------------
3494 -- 4.1 Implicit Dereference --
3495 -------------------------------
3497 -- IMPLICIT_DEREFERENCE ::= NAME
3499 ------------------------------
3500 -- 4.1.1 Indexed Component --
3501 ------------------------------
3503 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3505 -- Note: the parser may generate this node in some situations where it
3506 -- should be a function call. The semantic pass must correct this
3507 -- misidentification (which is inevitable at the parser level).
3509 -- N_Indexed_Component
3510 -- Sloc contains a copy of the Sloc value of the Prefix
3512 -- Expressions (List1)
3513 -- Generalized_Indexing (Node4-Sem)
3514 -- Atomic_Sync_Required (Flag14-Sem)
3515 -- plus fields for expression
3517 -- Note: if any of the subscripts requires a range check, then the
3518 -- Do_Range_Check flag is set on the corresponding expression, with
3519 -- the index type being determined from the type of the Prefix, which
3520 -- references the array being indexed.
3522 -- Note: in a fully analyzed and expanded indexed component node, and
3523 -- hence in any such node that gigi sees, if the prefix is an access
3524 -- type, then an explicit dereference operation has been inserted.
3530 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3532 -- Note: an implicit subtype is created to describe the resulting
3533 -- type, so that the bounds of this type are the bounds of the slice.
3536 -- Sloc points to first token of prefix
3538 -- Discrete_Range (Node4)
3539 -- plus fields for expression
3541 -------------------------------
3542 -- 4.1.3 Selected Component --
3543 -------------------------------
3545 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3547 -- Note: selected components that are semantically expanded names get
3548 -- changed during semantic processing into the separate N_Expanded_Name
3549 -- node. See description of this node in the section on semantic nodes.
3551 -- N_Selected_Component
3552 -- Sloc points to period
3554 -- Selector_Name (Node2)
3555 -- Associated_Node (Node4-Sem)
3556 -- Do_Discriminant_Check (Flag1-Sem)
3557 -- Is_In_Discriminant_Check (Flag11-Sem)
3558 -- Is_Prefixed_Call (Flag17-Sem)
3559 -- Atomic_Sync_Required (Flag14-Sem)
3560 -- plus fields for expression
3562 --------------------------
3563 -- 4.1.3 Selector Name --
3564 --------------------------
3566 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3568 --------------------------------
3569 -- 4.1.4 Attribute Reference --
3570 --------------------------------
3572 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3574 -- Note: the syntax is quite ambiguous at this point. Consider:
3576 -- A'Length (X) X is part of the attribute designator
3577 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3578 -- A'Class (X) X is the expression of a type conversion
3580 -- It would be possible for the parser to distinguish these cases
3581 -- by looking at the attribute identifier. However, that would mean
3582 -- more work in introducing new implementation defined attributes,
3583 -- and also it would mean that special processing for attributes
3584 -- would be scattered around, instead of being centralized in the
3585 -- semantic routine that handles an N_Attribute_Reference node.
3586 -- Consequently, the parser in all the above cases stores the
3587 -- expression (X in these examples) as a single element list in
3588 -- in the Expressions field of the N_Attribute_Reference node.
3590 -- Similarly, for attributes like Max which take two arguments,
3591 -- we store the two arguments as a two element list in the
3592 -- Expressions field. Of course it is clear at parse time that
3593 -- this case is really a function call with an attribute as the
3594 -- prefix, but it turns out to be convenient to handle the two
3595 -- argument case in a similar manner to the one argument case,
3596 -- and indeed in general the parser will accept any number of
3597 -- expressions in this position and store them as a list in the
3598 -- attribute reference node. This allows for future addition of
3599 -- attributes that take more than two arguments.
3601 -- Note: named associates are not permitted in function calls where
3602 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3603 -- to skip the normal subprogram argument processing.
3605 -- Note: for the attributes whose designators are technically keywords,
3606 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3607 -- the corresponding name, even though no identifier is involved.
3609 -- Note: the generated code may contain stream attributes applied to
3610 -- limited types for which no stream routines exist officially. In such
3611 -- case, the result is to use the stream attribute for the underlying
3612 -- full type, or in the case of a protected type, the components
3613 -- (including any discriminants) are merely streamed in order.
3615 -- See Exp_Attr for a complete description of which attributes are
3616 -- passed onto Gigi, and which are handled entirely by the front end.
3618 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3619 -- a non-standard enumeration type or a nonzero/zero semantics
3620 -- boolean type, so the value is simply the stored representation.
3622 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3623 -- references a subprogram that is a renaming, then the front end must
3624 -- rewrite the attribute to refer directly to the renamed entity.
3626 -- Note: In generated code, the Address and Unrestricted_Access
3627 -- attributes can be applied to any expression, and the meaning is
3628 -- to create an object containing the value (the object is in the
3629 -- current stack frame), and pass the address of this value. If the
3630 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3631 -- is taken must be on a byte (storage unit) boundary, and if it is
3632 -- not (or may not be), then the generated code must create a copy
3633 -- that is byte aligned, and pass the address of this copy.
3635 -- N_Attribute_Reference
3636 -- Sloc points to apostrophe
3638 -- Attribute_Name (Name2) identifier name from attribute designator
3639 -- Expressions (List1) (set to No_List if no associated expressions)
3640 -- Entity (Node4-Sem) used if the attribute yields a type
3641 -- Associated_Node (Node4-Sem)
3642 -- Do_Overflow_Check (Flag17-Sem)
3643 -- Header_Size_Added (Flag11-Sem)
3644 -- Must_Be_Byte_Aligned (Flag14-Sem)
3645 -- Non_Aliased_Prefix (Flag18-Sem)
3646 -- Redundant_Use (Flag13-Sem)
3648 -- plus fields for expression
3650 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
3651 -- into equivalent if expressions, properly taking care of side effects.
3653 ---------------------------------
3654 -- 4.1.4 Attribute Designator --
3655 ---------------------------------
3657 -- ATTRIBUTE_DESIGNATOR ::=
3658 -- IDENTIFIER [(static_EXPRESSION)]
3659 -- | access | delta | digits
3661 -- There is no explicit node in the tree for an attribute designator.
3662 -- Instead the Attribute_Name and Expressions fields of the parent
3663 -- node (N_Attribute_Reference node) hold the information.
3665 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3666 -- designator, then they are treated as identifiers internally
3667 -- rather than the keywords of the same name.
3669 --------------------------------------
3670 -- 4.1.4 Range Attribute Reference --
3671 --------------------------------------
3673 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3675 -- A range attribute reference is represented in the tree using the
3676 -- normal N_Attribute_Reference node.
3678 ---------------------------------------
3679 -- 4.1.4 Range Attribute Designator --
3680 ---------------------------------------
3682 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3684 -- A range attribute designator is represented in the tree using the
3685 -- normal N_Attribute_Reference node.
3687 --------------------
3689 --------------------
3692 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3694 -----------------------------
3695 -- 4.3.1 Record Aggregate --
3696 -----------------------------
3698 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3701 -- Sloc points to left parenthesis
3702 -- Expressions (List1) (set to No_List if none or null record case)
3703 -- Component_Associations (List2) (set to No_List if none)
3704 -- Null_Record_Present (Flag17)
3705 -- Aggregate_Bounds (Node3-Sem)
3706 -- Associated_Node (Node4-Sem)
3707 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3708 -- Expansion_Delayed (Flag11-Sem)
3709 -- Has_Self_Reference (Flag13-Sem)
3710 -- plus fields for expression
3712 -- Note: this structure is used for both record and array aggregates
3713 -- since the two cases are not separable by the parser. The parser
3714 -- makes no attempt to enforce consistency here, so it is up to the
3715 -- semantic phase to make sure that the aggregate is consistent (i.e.
3716 -- that it is not a "half-and-half" case that mixes record and array
3717 -- syntax. In particular, for a record aggregate, the expressions
3718 -- field will be set if there are positional associations.
3720 -- Note: N_Aggregate is not used for all aggregates; in particular,
3721 -- there is a separate node kind for extension aggregates.
3723 -- Note: gigi/gcc can handle array aggregates correctly providing that
3724 -- they are entirely positional, and the array subtype involved has a
3725 -- known at compile time length and is not bit packed, or a convention
3726 -- Fortran array with more than one dimension. If these conditions
3727 -- are not met, then the front end must translate the aggregate into
3728 -- an appropriate set of assignments into a temporary.
3730 -- Note: for the record aggregate case, gigi/gcc can handle all cases of
3731 -- record aggregates, including those for packed, and rep-claused
3732 -- records, and also variant records, providing that there are no
3733 -- variable length fields whose size is not known at compile time, and
3734 -- providing that the aggregate is presented in fully named form.
3736 ----------------------------------------------
3737 -- 4.3.1 Record Component Association List --
3738 ----------------------------------------------
3740 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3741 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3744 -- There is no explicit node in the tree for a record component
3745 -- association list. Instead the Null_Record_Present flag is set in
3746 -- the parent node for the NULL RECORD case.
3748 ------------------------------------------------------
3749 -- 4.3.1 Record Component Association (also 4.3.3) --
3750 ------------------------------------------------------
3752 -- RECORD_COMPONENT_ASSOCIATION ::=
3753 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3755 -- N_Component_Association
3756 -- Sloc points to first selector name
3758 -- Loop_Actions (List2-Sem)
3759 -- Expression (Node3) (empty if Box_Present)
3760 -- Box_Present (Flag15)
3761 -- Inherited_Discriminant (Flag13)
3763 -- Note: this structure is used for both record component associations
3764 -- and array component associations, since the two cases aren't always
3765 -- separable by the parser. The choices list may represent either a
3766 -- list of selector names in the record aggregate case, or a list of
3767 -- discrete choices in the array aggregate case or an N_Others_Choice
3768 -- node (which appears as a singleton list). Box_Present gives support
3769 -- to Ada 2005 (AI-287).
3771 ----------------------------------
3772 -- 4.3.1 Component Choice List --
3773 ----------------------------------
3775 -- COMPONENT_CHOICE_LIST ::=
3776 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3779 -- The entries of a component choice list appear in the Choices list of
3780 -- the associated N_Component_Association, as either selector names, or
3781 -- as an N_Others_Choice node.
3783 --------------------------------
3784 -- 4.3.2 Extension Aggregate --
3785 --------------------------------
3787 -- EXTENSION_AGGREGATE ::=
3788 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3790 -- Note: extension aggregates are not permitted in Ada 83 mode
3792 -- N_Extension_Aggregate
3793 -- Sloc points to left parenthesis
3794 -- Ancestor_Part (Node3)
3795 -- Associated_Node (Node4-Sem)
3796 -- Expressions (List1) (set to No_List if none or null record case)
3797 -- Component_Associations (List2) (set to No_List if none)
3798 -- Null_Record_Present (Flag17)
3799 -- Expansion_Delayed (Flag11-Sem)
3800 -- Has_Self_Reference (Flag13-Sem)
3801 -- plus fields for expression
3803 --------------------------
3804 -- 4.3.2 Ancestor Part --
3805 --------------------------
3807 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3809 ----------------------------
3810 -- 4.3.3 Array Aggregate --
3811 ----------------------------
3813 -- ARRAY_AGGREGATE ::=
3814 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3816 ---------------------------------------
3817 -- 4.3.3 Positional Array Aggregate --
3818 ---------------------------------------
3820 -- POSITIONAL_ARRAY_AGGREGATE ::=
3821 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3822 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3824 -- See Record_Aggregate (4.3.1) for node structure
3826 ----------------------------------
3827 -- 4.3.3 Named Array Aggregate --
3828 ----------------------------------
3830 -- NAMED_ARRAY_AGGREGATE ::=
3831 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3833 -- See Record_Aggregate (4.3.1) for node structure
3835 ----------------------------------------
3836 -- 4.3.3 Array Component Association --
3837 ----------------------------------------
3839 -- ARRAY_COMPONENT_ASSOCIATION ::=
3840 -- DISCRETE_CHOICE_LIST => EXPRESSION
3842 -- See Record_Component_Association (4.3.1) for node structure
3844 --------------------------------------------------
3845 -- 4.4 Expression/Relation/Term/Factor/Primary --
3846 --------------------------------------------------
3849 -- RELATION {LOGICAL_OPERATOR RELATION}
3851 -- CHOICE_EXPRESSION ::=
3852 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
3854 -- CHOICE_RELATION ::=
3855 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3858 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3859 -- | RAISE_EXPRESSION
3861 -- MEMBERSHIP_CHOICE_LIST ::=
3862 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3864 -- MEMBERSHIP_CHOICE ::=
3865 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3867 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
3869 -- SIMPLE_EXPRESSION ::=
3870 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3872 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3874 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3876 -- No nodes are generated for any of these constructs. Instead, the
3877 -- node for the operator appears directly. When we refer to an
3878 -- expression in this description, we mean any of the possible
3879 -- constituent components of an expression (e.g. identifier is
3880 -- an example of an expression).
3882 -- Note: the above syntax is that Ada 2012 syntax which restricts
3883 -- choice relations to simple expressions to avoid ambiguities in
3884 -- some contexts with set membership notation. It has been decided
3885 -- that in retrospect, the Ada 95 change allowing general expressions
3886 -- in this context was a mistake, so we have reverted to the above
3887 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
3888 -- expressions was there in Ada 83 from the start).
3895 -- NUMERIC_LITERAL | null
3896 -- | STRING_LITERAL | AGGREGATE
3897 -- | NAME | QUALIFIED_EXPRESSION
3898 -- | ALLOCATOR | (EXPRESSION)
3900 -- Usually there is no explicit node in the tree for primary. Instead
3901 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3902 -- exceptions. First, there is an explicit node for a null primary.
3905 -- Sloc points to NULL
3906 -- plus fields for expression
3908 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3909 -- that the parser keep track of which subexpressions are enclosed
3910 -- in parentheses, and how many levels of parentheses are used. This
3911 -- information is required for optimization purposes, and also for
3912 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3913 -- conform with ((((1)))) in the body).
3915 -- The parentheses are recorded by keeping a Paren_Count field in every
3916 -- subexpression node (it is actually present in all nodes, but only
3917 -- used in subexpression nodes). This count records the number of
3918 -- levels of parentheses. If the number of levels in the source exceeds
3919 -- the maximum accommodated by this count, then the count is simply left
3920 -- at the maximum value. This means that there are some pathological
3921 -- cases of failure to detect conformance failures (e.g. an expression
3922 -- with 500 levels of parens will conform with one with 501 levels),
3923 -- but we do not need to lose sleep over this.
3925 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3926 -- type N_Parenthesized_Expression used to accurately record unlimited
3927 -- numbers of levels of parentheses. However, it turned out to be a
3928 -- real nuisance to have to take into account the possible presence of
3929 -- this node during semantic analysis, since basically parentheses have
3930 -- zero relevance to semantic analysis.
3932 -- Note: the level of parentheses always present in things like
3933 -- aggregates does not count, only the parentheses in the primary
3934 -- (EXPRESSION) affect the setting of the Paren_Count field.
3936 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3937 -- treated as though it were Empty) if No_Initialization is set True.
3939 --------------------------------------
3940 -- 4.5 Short Circuit Control Forms --
3941 --------------------------------------
3944 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3946 -- Gigi restriction: For both these control forms, the operand and
3947 -- result types are always Standard.Boolean. The expander inserts the
3948 -- required conversion operations where needed to ensure this is the
3952 -- Sloc points to AND of AND THEN
3953 -- Left_Opnd (Node2)
3954 -- Right_Opnd (Node3)
3955 -- Actions (List1-Sem)
3956 -- plus fields for expression
3959 -- Sloc points to OR of OR ELSE
3960 -- Left_Opnd (Node2)
3961 -- Right_Opnd (Node3)
3962 -- Actions (List1-Sem)
3963 -- plus fields for expression
3965 -- Note: The Actions field is used to hold actions associated with
3966 -- the right hand operand. These have to be treated specially since
3967 -- they are not unconditionally executed. See Insert_Actions for a
3968 -- more detailed description of how these actions are handled.
3970 ---------------------------
3971 -- 4.5 Membership Tests --
3972 ---------------------------
3975 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3977 -- MEMBERSHIP_CHOICE_LIST ::=
3978 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3980 -- MEMBERSHIP_CHOICE ::=
3981 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3983 -- Note: although the grammar above allows only a range or a subtype
3984 -- mark, the parser in fact will accept any simple expression in place
3985 -- of a subtype mark. This means that the semantic analyzer must be able
3986 -- to deal with, and diagnose a simple expression other than a name for
3987 -- the right operand. This simplifies error recovery in the parser.
3989 -- The Alternatives field below is present only if there is more
3990 -- than one Membership_Choice present (which is legitimate only in
3991 -- Ada 2012 mode) in which case Right_Opnd is Empty, and Alternatives
3992 -- contains the list of choices. In the tree passed to the back end,
3993 -- Alternatives is always No_List, and Right_Opnd is set (i.e. the
3994 -- expansion circuitry expands out the complex set membership case
3995 -- using simple membership operations).
3997 -- Should we rename Alternatives here to Membership_Choices ???
4000 -- Sloc points to IN
4001 -- Left_Opnd (Node2)
4002 -- Right_Opnd (Node3)
4003 -- Alternatives (List4) (set to No_List if only one set alternative)
4004 -- No_Minimize_Eliminate (Flag17)
4005 -- plus fields for expression
4008 -- Sloc points to NOT of NOT IN
4009 -- Left_Opnd (Node2)
4010 -- Right_Opnd (Node3)
4011 -- Alternatives (List4) (set to No_List if only one set alternative)
4012 -- No_Minimize_Eliminate (Flag17)
4013 -- plus fields for expression
4015 --------------------
4017 --------------------
4019 -- LOGICAL_OPERATOR ::= and | or | xor
4021 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
4023 -- BINARY_ADDING_OPERATOR ::= + | - | &
4025 -- UNARY_ADDING_OPERATOR ::= + | -
4027 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
4029 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
4031 -- Sprint syntax if Treat_Fixed_As_Integer is set:
4038 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
4039 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
4040 -- All handling of smalls for multiplication and division is handled
4041 -- by the front end (mod and rem result only from expansion). Gigi
4042 -- thus never needs to worry about small values (for other operators
4043 -- operating on fixed-point, e.g. addition, the small value does not
4044 -- have any semantic effect anyway, these are always integer operations.
4046 -- Gigi restriction: For all operators taking Boolean operands, the
4047 -- type is always Standard.Boolean. The expander inserts the required
4048 -- conversion operations where needed to ensure this is the case.
4051 -- Sloc points to AND
4052 -- Do_Length_Check (Flag4-Sem)
4053 -- plus fields for binary operator
4054 -- plus fields for expression
4057 -- Sloc points to OR
4058 -- Do_Length_Check (Flag4-Sem)
4059 -- plus fields for binary operator
4060 -- plus fields for expression
4063 -- Sloc points to XOR
4064 -- Do_Length_Check (Flag4-Sem)
4065 -- plus fields for binary operator
4066 -- plus fields for expression
4070 -- plus fields for binary operator
4071 -- plus fields for expression
4074 -- Sloc points to /=
4075 -- plus fields for binary operator
4076 -- plus fields for expression
4080 -- plus fields for binary operator
4081 -- plus fields for expression
4084 -- Sloc points to <=
4085 -- plus fields for binary operator
4086 -- plus fields for expression
4090 -- plus fields for binary operator
4091 -- plus fields for expression
4094 -- Sloc points to >=
4095 -- plus fields for binary operator
4096 -- plus fields for expression
4099 -- Sloc points to + (binary)
4100 -- plus fields for binary operator
4101 -- plus fields for expression
4104 -- Sloc points to - (binary)
4105 -- plus fields for binary operator
4106 -- plus fields for expression
4110 -- Is_Component_Left_Opnd (Flag13-Sem)
4111 -- Is_Component_Right_Opnd (Flag14-Sem)
4112 -- plus fields for binary operator
4113 -- plus fields for expression
4117 -- Treat_Fixed_As_Integer (Flag14-Sem)
4118 -- Rounded_Result (Flag18-Sem)
4119 -- plus fields for binary operator
4120 -- plus fields for expression
4124 -- Treat_Fixed_As_Integer (Flag14-Sem)
4125 -- Do_Division_Check (Flag13-Sem)
4126 -- Rounded_Result (Flag18-Sem)
4127 -- plus fields for binary operator
4128 -- plus fields for expression
4131 -- Sloc points to MOD
4132 -- Treat_Fixed_As_Integer (Flag14-Sem)
4133 -- Do_Division_Check (Flag13-Sem)
4134 -- plus fields for binary operator
4135 -- plus fields for expression
4138 -- Sloc points to REM
4139 -- Treat_Fixed_As_Integer (Flag14-Sem)
4140 -- Do_Division_Check (Flag13-Sem)
4141 -- plus fields for binary operator
4142 -- plus fields for expression
4145 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4146 -- Sloc points to **
4147 -- plus fields for binary operator
4148 -- plus fields for expression
4151 -- Sloc points to + (unary)
4152 -- plus fields for unary operator
4153 -- plus fields for expression
4156 -- Sloc points to - (unary)
4157 -- plus fields for unary operator
4158 -- plus fields for expression
4161 -- Sloc points to ABS
4162 -- plus fields for unary operator
4163 -- plus fields for expression
4166 -- Sloc points to NOT
4167 -- plus fields for unary operator
4168 -- plus fields for expression
4170 -- See also shift operators in section B.2
4172 -- Note on fixed-point operations passed to Gigi: For adding operators,
4173 -- the semantics is to treat these simply as integer operations, with
4174 -- the small values being ignored (the bounds are already stored in
4175 -- units of small, so that constraint checking works as usual). For the
4176 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4177 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4178 -- thus treat these nodes in identical manner, ignoring small values.
4180 -- Note on overflow handling: When the overflow checking mode is set to
4181 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4182 -- be modified to use a larger type for the operands and result. In
4183 -- the case where the computed range exceeds that of Long_Long_Integer,
4184 -- and we are running in ELIMINATED mode, the operator node will be
4185 -- changed to be a call to the appropriate routine in System.Bignums.
4187 -- Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4188 -- for signed integer types (since there is no equivalent operator in
4189 -- C). Instead we rewrite such an operation in terms of REM (which is
4190 -- % in C) and other C-available operators.
4192 ------------------------------------
4193 -- 4.5.7 Conditional Expressions --
4194 ------------------------------------
4196 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4198 --------------------------
4199 -- 4.5.7 If Expression --
4200 ----------------------------
4202 -- IF_EXPRESSION ::=
4203 -- if CONDITION then DEPENDENT_EXPRESSION
4204 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4205 -- [else DEPENDENT_EXPRESSION]
4207 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4209 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4210 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4211 -- the Is_Elsif flag is set on the inner if expression.
4214 -- Sloc points to IF or ELSIF keyword
4215 -- Expressions (List1)
4216 -- Then_Actions (List2-Sem)
4217 -- Else_Actions (List3-Sem)
4218 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4219 -- Do_Overflow_Check (Flag17-Sem)
4220 -- plus fields for expression
4222 -- Expressions here is a three-element list, whose first element is the
4223 -- condition, the second element is the dependent expression after THEN
4224 -- and the third element is the dependent expression after the ELSE
4225 -- (explicitly set to True if missing).
4227 -- Note: the Then_Actions and Else_Actions fields are always set to
4228 -- No_List in the tree passed to Gigi. These fields are used only
4229 -- for temporary processing purposes in the expander.
4231 ----------------------------
4232 -- 4.5.7 Case Expression --
4233 ----------------------------
4235 -- CASE_EXPRESSION ::=
4236 -- case SELECTING_EXPRESSION is
4237 -- CASE_EXPRESSION_ALTERNATIVE
4238 -- {CASE_EXPRESSION_ALTERNATIVE}
4240 -- Note that the Alternatives cannot include pragmas (this contrasts
4241 -- with the situation of case statements where pragmas are allowed).
4243 -- N_Case_Expression
4244 -- Sloc points to CASE
4245 -- Expression (Node3) (the selecting expression)
4246 -- Alternatives (List4) (the case expression alternatives)
4247 -- Do_Overflow_Check (Flag17-Sem)
4249 ----------------------------------------
4250 -- 4.5.7 Case Expression Alternative --
4251 ----------------------------------------
4253 -- CASE_EXPRESSION_ALTERNATIVE ::=
4254 -- when DISCRETE_CHOICE_LIST =>
4255 -- DEPENDENT_EXPRESSION
4257 -- N_Case_Expression_Alternative
4258 -- Sloc points to WHEN
4260 -- Discrete_Choices (List4)
4261 -- Expression (Node3)
4262 -- Has_SP_Choice (Flag15-Sem)
4264 -- Note: The Actions field temporarily holds any actions associated with
4265 -- evaluation of the Expression. During expansion of the case expression
4266 -- these actions are wrapped into an N_Expressions_With_Actions node
4267 -- replacing the original expression.
4269 -- Note: this node never appears in the tree passed to the back end,
4270 -- since the expander converts case expressions into case statements.
4272 ---------------------------------
4273 -- 4.5.9 Quantified Expression --
4274 ---------------------------------
4276 -- QUANTIFIED_EXPRESSION ::=
4277 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4278 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4280 -- QUANTIFIER ::= all | some
4282 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4283 -- is present at a time, in which case the other one is empty.
4285 -- N_Quantified_Expression
4286 -- Sloc points to FOR
4287 -- Iterator_Specification (Node2)
4288 -- Loop_Parameter_Specification (Node4)
4289 -- Condition (Node1)
4290 -- All_Present (Flag15)
4292 --------------------------
4293 -- 4.6 Type Conversion --
4294 --------------------------
4296 -- TYPE_CONVERSION ::=
4297 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4299 -- In the (NAME) case, the name is stored as the expression
4301 -- Note: the parser never generates a type conversion node, since it
4302 -- looks like an indexed component which is generated by preference.
4303 -- The semantic pass must correct this misidentification.
4305 -- Gigi handles conversions that involve no change in the root type,
4306 -- and also all conversions from integer to floating-point types.
4307 -- Conversions from floating-point to integer are only handled in
4308 -- the case where Float_Truncate flag set. Other conversions from
4309 -- floating-point to integer (involving rounding) and all conversions
4310 -- involving fixed-point types are handled by the expander.
4312 -- Sprint syntax if Float_Truncate set: X^(Y)
4313 -- Sprint syntax if Conversion_OK set X?(Y)
4314 -- Sprint syntax if both flags set X?^(Y)
4316 -- Note: If either the operand or result type is fixed-point, Gigi will
4317 -- only see a type conversion node with Conversion_OK set. The front end
4318 -- takes care of all handling of small's for fixed-point conversions.
4320 -- N_Type_Conversion
4321 -- Sloc points to first token of subtype mark
4322 -- Subtype_Mark (Node4)
4323 -- Expression (Node3)
4324 -- Do_Discriminant_Check (Flag1-Sem)
4325 -- Do_Length_Check (Flag4-Sem)
4326 -- Float_Truncate (Flag11-Sem)
4327 -- Do_Tag_Check (Flag13-Sem)
4328 -- Conversion_OK (Flag14-Sem)
4329 -- Do_Overflow_Check (Flag17-Sem)
4330 -- Rounded_Result (Flag18-Sem)
4331 -- plus fields for expression
4333 -- Note: if a range check is required, then the Do_Range_Check flag
4334 -- is set in the Expression with the check being done against the
4335 -- target type range (after the base type conversion, if any).
4337 -------------------------------
4338 -- 4.7 Qualified Expression --
4339 -------------------------------
4341 -- QUALIFIED_EXPRESSION ::=
4342 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4344 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4345 -- the expression, so the Expression field of this node always points
4346 -- to a parenthesized expression in this case (i.e. Paren_Count will
4347 -- always be non-zero for the referenced expression if it is not an
4350 -- N_Qualified_Expression
4351 -- Sloc points to apostrophe
4352 -- Subtype_Mark (Node4)
4353 -- Expression (Node3) expression or aggregate
4354 -- plus fields for expression
4356 --------------------
4358 --------------------
4361 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4362 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4364 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4366 -- Sprint syntax (when storage pool present)
4367 -- new xxx (storage_pool = pool)
4369 -- new (subpool) xxx (storage_pool = pool)
4372 -- Sloc points to NEW
4373 -- Expression (Node3) subtype indication or qualified expression
4374 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4375 -- Storage_Pool (Node1-Sem)
4376 -- Procedure_To_Call (Node2-Sem)
4377 -- Null_Exclusion_Present (Flag11)
4378 -- No_Initialization (Flag13-Sem)
4379 -- Is_Static_Coextension (Flag14-Sem)
4380 -- Do_Storage_Check (Flag17-Sem)
4381 -- Is_Dynamic_Coextension (Flag18-Sem)
4382 -- plus fields for expression
4384 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4385 -- This flag has a special function in conjunction with the restriction
4386 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4387 -- is not set. This means that if a source allocator is replaced with
4388 -- a constructed allocator, the Comes_From_Source flag should be copied
4389 -- to the newly created allocator.
4391 ---------------------------------
4392 -- 5.1 Sequence Of Statements --
4393 ---------------------------------
4395 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4397 -- Note: Although the parser will not accept a declaration as a
4398 -- statement, the semantic analyzer may insert declarations (e.g.
4399 -- declarations of implicit types needed for execution of other
4400 -- statements) into a sequence of statements, so the code generator
4401 -- should be prepared to accept a declaration where a statement is
4402 -- expected. Note also that pragmas can appear as statements.
4404 --------------------
4406 --------------------
4409 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4411 -- There is no explicit node in the tree for a statement. Instead, the
4412 -- individual statement appears directly. Labels are treated as a
4413 -- kind of statement, i.e. they are linked into a statement list at
4414 -- the point they appear, so the labeled statement appears following
4415 -- the label or labels in the statement list.
4417 ---------------------------
4418 -- 5.1 Simple Statement --
4419 ---------------------------
4421 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4422 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4423 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4424 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4425 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4426 -- | ABORT_STATEMENT | RAISE_STATEMENT
4429 -----------------------------
4430 -- 5.1 Compound Statement --
4431 -----------------------------
4433 -- COMPOUND_STATEMENT ::=
4434 -- IF_STATEMENT | CASE_STATEMENT
4435 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4436 -- | EXTENDED_RETURN_STATEMENT
4437 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4439 -------------------------
4440 -- 5.1 Null Statement --
4441 -------------------------
4443 -- NULL_STATEMENT ::= null;
4446 -- Sloc points to NULL
4452 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4454 -- Note that the occurrence of a label is not a defining identifier,
4455 -- but rather a referencing occurrence. The defining occurrence is
4456 -- in the implicit label declaration which occurs in the innermost
4460 -- Sloc points to <<
4461 -- Identifier (Node1) direct name of statement identifier
4462 -- Exception_Junk (Flag8-Sem)
4464 -- Note: Before Ada 2012, a label is always followed by a statement,
4465 -- and this is true in the tree even in Ada 2012 mode (the parser
4466 -- inserts a null statement marked with Comes_From_Source False).
4468 -------------------------------
4469 -- 5.1 Statement Identifier --
4470 -------------------------------
4472 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4474 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4475 -- (not an OPERATOR_SYMBOL)
4477 -------------------------------
4478 -- 5.2 Assignment Statement --
4479 -------------------------------
4481 -- ASSIGNMENT_STATEMENT ::=
4482 -- variable_NAME := EXPRESSION;
4484 -- N_Assignment_Statement
4485 -- Sloc points to :=
4487 -- Expression (Node3)
4488 -- Do_Discriminant_Check (Flag1-Sem)
4489 -- Do_Tag_Check (Flag13-Sem)
4490 -- Do_Length_Check (Flag4-Sem)
4491 -- Forwards_OK (Flag5-Sem)
4492 -- Backwards_OK (Flag6-Sem)
4493 -- No_Ctrl_Actions (Flag7-Sem)
4494 -- Componentwise_Assignment (Flag14-Sem)
4495 -- Suppress_Assignment_Checks (Flag18-Sem)
4497 -- Note: if a range check is required, then the Do_Range_Check flag
4498 -- is set in the Expression (right hand side), with the check being
4499 -- done against the type of the Name (left hand side).
4501 -- Note: the back end places some restrictions on the form of the
4502 -- Expression field. If the object being assigned to is Atomic, then
4503 -- the Expression may not have the form of an aggregate (since this
4504 -- might cause the back end to generate separate assignments). In this
4505 -- case the front end must generate an extra temporary and initialize
4506 -- this temporary as required (the temporary itself is not atomic).
4508 -----------------------
4509 -- 5.3 If Statement --
4510 -----------------------
4513 -- if CONDITION then
4514 -- SEQUENCE_OF_STATEMENTS
4515 -- {elsif CONDITION then
4516 -- SEQUENCE_OF_STATEMENTS}
4518 -- SEQUENCE_OF_STATEMENTS]
4521 -- Gigi restriction: This expander ensures that the type of the
4522 -- Condition fields is always Standard.Boolean, even if the type
4523 -- in the source is some non-standard boolean type.
4526 -- Sloc points to IF
4527 -- Condition (Node1)
4528 -- Then_Statements (List2)
4529 -- Elsif_Parts (List3) (set to No_List if none present)
4530 -- Else_Statements (List4) (set to No_List if no else part present)
4531 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4534 -- Sloc points to ELSIF
4535 -- Condition (Node1)
4536 -- Then_Statements (List2)
4537 -- Condition_Actions (List3-Sem)
4539 --------------------
4541 --------------------
4543 -- CONDITION ::= boolean_EXPRESSION
4545 -------------------------
4546 -- 5.4 Case Statement --
4547 -------------------------
4549 -- CASE_STATEMENT ::=
4550 -- case EXPRESSION is
4551 -- CASE_STATEMENT_ALTERNATIVE
4552 -- {CASE_STATEMENT_ALTERNATIVE}
4555 -- Note: the Alternatives can contain pragmas. These only occur at
4556 -- the start of the list, since any pragmas occurring after the first
4557 -- alternative are absorbed into the corresponding statement sequence.
4560 -- Sloc points to CASE
4561 -- Expression (Node3)
4562 -- Alternatives (List4)
4563 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4565 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4566 -- followed by a statement, and this is true in the tree even in Ada
4567 -- 2012 mode (the parser inserts a null statement marked with the flag
4568 -- Comes_From_Source False).
4570 -------------------------------------
4571 -- 5.4 Case Statement Alternative --
4572 -------------------------------------
4574 -- CASE_STATEMENT_ALTERNATIVE ::=
4575 -- when DISCRETE_CHOICE_LIST =>
4576 -- SEQUENCE_OF_STATEMENTS
4578 -- N_Case_Statement_Alternative
4579 -- Sloc points to WHEN
4580 -- Discrete_Choices (List4)
4581 -- Statements (List3)
4582 -- Has_SP_Choice (Flag15-Sem)
4584 -- Note: in the list of Discrete_Choices, the tree passed to the back
4585 -- end does not have choice entries corresponding to names of statically
4586 -- predicated subtypes. Such entries are always expanded out to the list
4587 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
4588 -- mode does not have this expansion, and has the original choices.
4590 -------------------------
4591 -- 5.5 Loop Statement --
4592 -------------------------
4594 -- LOOP_STATEMENT ::=
4595 -- [loop_STATEMENT_IDENTIFIER :]
4596 -- [ITERATION_SCHEME] loop
4597 -- SEQUENCE_OF_STATEMENTS
4598 -- end loop [loop_IDENTIFIER];
4600 -- Note: The occurrence of a loop label is not a defining identifier
4601 -- but rather a referencing occurrence. The defining occurrence is in
4602 -- the implicit label declaration which occurs in the innermost
4605 -- Note: there is always a loop statement identifier present in the
4606 -- tree, even if none was given in the source. In the case where no loop
4607 -- identifier is given in the source, the parser creates a name of the
4608 -- form _Loop_n, where n is a decimal integer (the two underlines ensure
4609 -- that the loop names created in this manner do not conflict with any
4610 -- user defined identifiers), and the flag Has_Created_Identifier is set
4611 -- to True. The only exception to the rule that all loop statement nodes
4612 -- have identifiers occurs for loops constructed by the expander, and
4613 -- the semantic analyzer will create and supply dummy loop identifiers
4617 -- Sloc points to LOOP
4618 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4619 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4620 -- Statements (List3)
4621 -- End_Label (Node4)
4622 -- Has_Created_Identifier (Flag15)
4623 -- Is_Null_Loop (Flag16)
4624 -- Suppress_Loop_Warnings (Flag17)
4626 -- Note: the parser fills in the Identifier field if there is an
4627 -- explicit loop identifier. Otherwise the parser leaves this field
4628 -- set to Empty, and then the semantic processing for a loop statement
4629 -- creates an identifier, setting the Has_Created_Identifier flag to
4630 -- True. So after semantic analysis, the Identifier is always set,
4631 -- referencing an identifier whose entity has an Ekind of E_Loop.
4633 ---------------------------
4634 -- 5.5 Iteration Scheme --
4635 ---------------------------
4637 -- ITERATION_SCHEME ::=
4639 -- | for LOOP_PARAMETER_SPECIFICATION
4640 -- | for ITERATOR_SPECIFICATION
4642 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4643 -- is present at a time, in which case the other one is empty. Both are
4644 -- empty in the case of a WHILE loop.
4646 -- Gigi restriction: The expander ensures that the type of the Condition
4647 -- field is always Standard.Boolean, even if the type in the source is
4648 -- some non-standard boolean type.
4650 -- N_Iteration_Scheme
4651 -- Sloc points to WHILE or FOR
4652 -- Condition (Node1) (set to Empty if FOR case)
4653 -- Condition_Actions (List3-Sem)
4654 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
4655 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4657 ---------------------------------------
4658 -- 5.5 Loop Parameter Specification --
4659 ---------------------------------------
4661 -- LOOP_PARAMETER_SPECIFICATION ::=
4662 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4664 -- N_Loop_Parameter_Specification
4665 -- Sloc points to first identifier
4666 -- Defining_Identifier (Node1)
4667 -- Reverse_Present (Flag15)
4668 -- Discrete_Subtype_Definition (Node4)
4670 -----------------------------------
4671 -- 5.5.1 Iterator Specification --
4672 -----------------------------------
4674 -- ITERATOR_SPECIFICATION ::=
4675 -- DEFINING_IDENTIFIER in [reverse] NAME
4676 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4678 -- N_Iterator_Specification
4679 -- Sloc points to defining identifier
4680 -- Defining_Identifier (Node1)
4682 -- Reverse_Present (Flag15)
4683 -- Of_Present (Flag16)
4684 -- Subtype_Indication (Node5)
4686 -- Note: The Of_Present flag distinguishes the two forms
4688 --------------------------
4689 -- 5.6 Block Statement --
4690 --------------------------
4692 -- BLOCK_STATEMENT ::=
4693 -- [block_STATEMENT_IDENTIFIER:]
4695 -- DECLARATIVE_PART]
4697 -- HANDLED_SEQUENCE_OF_STATEMENTS
4698 -- end [block_IDENTIFIER];
4700 -- Note that the occurrence of a block identifier is not a defining
4701 -- identifier, but rather a referencing occurrence. The defining
4702 -- occurrence is an E_Block entity declared by the implicit label
4703 -- declaration which occurs in the innermost enclosing block statement
4704 -- or body; the block identifier denotes that E_Block.
4706 -- For block statements that come from source code, there is always a
4707 -- block statement identifier present in the tree, denoting an E_Block.
4708 -- In the case where no block identifier is given in the source,
4709 -- the parser creates a name of the form B_n, where n is a decimal
4710 -- integer, and the flag Has_Created_Identifier is set to True. Blocks
4711 -- constructed by the expander usually have no identifier, and no
4712 -- corresponding entity.
4714 -- Note: the block statement created for an extended return statement
4715 -- has an entity, and this entity is an E_Return_Statement, rather than
4716 -- the usual E_Block.
4718 -- Note: Exception_Junk is set for the wrapping blocks created during
4719 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4721 -- Note: from a control flow viewpoint, a block statement defines an
4722 -- extended basic block, i.e. the entry of the block dominates every
4723 -- statement in the sequence. When generating new statements with
4724 -- exception handlers in the expander at the end of a sequence that
4725 -- comes from source code, it can be necessary to wrap them all in a
4726 -- block statement in order to expose the implicit control flow to
4727 -- gigi and thus prevent it from issuing bogus control flow warnings.
4729 -- N_Block_Statement
4730 -- Sloc points to DECLARE or BEGIN
4731 -- Identifier (Node1) block direct name (set to Empty if not present)
4732 -- Declarations (List2) (set to No_List if no DECLARE part)
4733 -- Handled_Statement_Sequence (Node4)
4734 -- Is_Task_Master (Flag5-Sem)
4735 -- Activation_Chain_Entity (Node3-Sem)
4736 -- Has_Created_Identifier (Flag15)
4737 -- Is_Task_Allocation_Block (Flag6)
4738 -- Is_Asynchronous_Call_Block (Flag7)
4739 -- Exception_Junk (Flag8-Sem)
4740 -- Is_Finalization_Wrapper (Flag9-Sem)
4742 -------------------------
4743 -- 5.7 Exit Statement --
4744 -------------------------
4746 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4748 -- Gigi restriction: The expander ensures that the type of the Condition
4749 -- field is always Standard.Boolean, even if the type in the source is
4750 -- some non-standard boolean type.
4753 -- Sloc points to EXIT
4754 -- Name (Node2) (set to Empty if no loop name present)
4755 -- Condition (Node1) (set to Empty if no WHEN part present)
4756 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
4758 -------------------------
4759 -- 5.9 Goto Statement --
4760 -------------------------
4762 -- GOTO_STATEMENT ::= goto label_NAME;
4765 -- Sloc points to GOTO
4767 -- Exception_Junk (Flag8-Sem)
4769 ---------------------------------
4770 -- 6.1 Subprogram Declaration --
4771 ---------------------------------
4773 -- SUBPROGRAM_DECLARATION ::=
4774 -- SUBPROGRAM_SPECIFICATION
4775 -- [ASPECT_SPECIFICATIONS];
4777 -- N_Subprogram_Declaration
4778 -- Sloc points to FUNCTION or PROCEDURE
4779 -- Specification (Node1)
4780 -- Body_To_Inline (Node3-Sem)
4781 -- Corresponding_Body (Node5-Sem)
4782 -- Parent_Spec (Node4-Sem)
4784 ------------------------------------------
4785 -- 6.1 Abstract Subprogram Declaration --
4786 ------------------------------------------
4788 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4789 -- SUBPROGRAM_SPECIFICATION is abstract
4790 -- [ASPECT_SPECIFICATIONS];
4792 -- N_Abstract_Subprogram_Declaration
4793 -- Sloc points to ABSTRACT
4794 -- Specification (Node1)
4796 -----------------------------------
4797 -- 6.1 Subprogram Specification --
4798 -----------------------------------
4800 -- SUBPROGRAM_SPECIFICATION ::=
4801 -- [[not] overriding]
4802 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4803 -- | [[not] overriding]
4804 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4806 -- Note: there are no separate nodes for the profiles, instead the
4807 -- information appears directly in the following nodes.
4809 -- N_Function_Specification
4810 -- Sloc points to FUNCTION
4811 -- Defining_Unit_Name (Node1) (the designator)
4812 -- Elaboration_Boolean (Node2-Sem)
4813 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4814 -- Null_Exclusion_Present (Flag11)
4815 -- Result_Definition (Node4) for result subtype
4816 -- Generic_Parent (Node5-Sem)
4817 -- Must_Override (Flag14) set if overriding indicator present
4818 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4820 -- N_Procedure_Specification
4821 -- Sloc points to PROCEDURE
4822 -- Defining_Unit_Name (Node1)
4823 -- Elaboration_Boolean (Node2-Sem)
4824 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4825 -- Generic_Parent (Node5-Sem)
4826 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4827 -- Must_Override (Flag14) set if overriding indicator present
4828 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4830 -- Note: overriding indicator is an Ada 2005 feature
4832 ---------------------
4833 -- 6.1 Designator --
4834 ---------------------
4837 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4839 -- Designators that are simply identifiers or operator symbols appear
4840 -- directly in the tree in this form. The following node is used only
4841 -- in the case where the designator has a parent unit name component.
4844 -- Sloc points to period
4845 -- Name (Node2) holds the parent unit name
4846 -- Identifier (Node1)
4848 -- Note: Name is always non-Empty, since this node is only used for the
4849 -- case where a parent library unit package name is present.
4851 -- Note that the identifier can also be an operator symbol here
4853 ------------------------------
4854 -- 6.1 Defining Designator --
4855 ------------------------------
4857 -- DEFINING_DESIGNATOR ::=
4858 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4860 -------------------------------------
4861 -- 6.1 Defining Program Unit Name --
4862 -------------------------------------
4864 -- DEFINING_PROGRAM_UNIT_NAME ::=
4865 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4867 -- The parent unit name is present only in the case of a child unit name
4868 -- (permissible only for Ada 95 for a library level unit, i.e. a unit
4869 -- at scope level one). If no such name is present, the defining program
4870 -- unit name is represented simply as the defining identifier. In the
4871 -- child unit case, the following node is used to represent the child
4874 -- N_Defining_Program_Unit_Name
4875 -- Sloc points to period
4876 -- Name (Node2) holds the parent unit name
4877 -- Defining_Identifier (Node1)
4879 -- Note: Name is always non-Empty, since this node is only used for the
4880 -- case where a parent unit name is present.
4882 --------------------------
4883 -- 6.1 Operator Symbol --
4884 --------------------------
4886 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4888 -- Note: the fields of the N_Operator_Symbol node are laid out to match
4889 -- the corresponding fields of an N_Character_Literal node. This allows
4890 -- easy conversion of the operator symbol node into a character literal
4891 -- node in the case where a string constant of the form of an operator
4892 -- symbol is scanned out as such, but turns out semantically to be a
4893 -- string literal that is not an operator. For details see Sinfo.CN.
4894 -- Change_Operator_Symbol_To_String_Literal.
4896 -- N_Operator_Symbol
4897 -- Sloc points to literal
4898 -- Chars (Name1) contains the Name_Id for the operator symbol
4899 -- Strval (Str3) Id of string value. This is used if the operator
4900 -- symbol turns out to be a normal string after all.
4901 -- Entity (Node4-Sem)
4902 -- Associated_Node (Node4-Sem)
4903 -- Has_Private_View (Flag11-Sem) set in generic units.
4904 -- Etype (Node5-Sem)
4906 -- Note: the Strval field may be set to No_String for generated
4907 -- operator symbols that are known not to be string literals
4910 -----------------------------------
4911 -- 6.1 Defining Operator Symbol --
4912 -----------------------------------
4914 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4916 -- A defining operator symbol is an entity, which has additional
4917 -- fields depending on the setting of the Ekind field. These
4918 -- additional fields are defined (and access subprograms declared)
4919 -- in package Einfo.
4921 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4922 -- are deliberately layed out to match the layout of fields in an
4923 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4924 -- an operator symbol node into a defining operator symbol node.
4925 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4926 -- for further details.
4928 -- N_Defining_Operator_Symbol
4929 -- Sloc points to literal
4930 -- Chars (Name1) contains the Name_Id for the operator symbol
4931 -- Next_Entity (Node2-Sem)
4932 -- Scope (Node3-Sem)
4933 -- Etype (Node5-Sem)
4935 ----------------------------
4936 -- 6.1 Parameter Profile --
4937 ----------------------------
4939 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4941 ---------------------------------------
4942 -- 6.1 Parameter and Result Profile --
4943 ---------------------------------------
4945 -- PARAMETER_AND_RESULT_PROFILE ::=
4946 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4947 -- | [FORMAL_PART] return ACCESS_DEFINITION
4949 -- There is no explicit node in the tree for a parameter and result
4950 -- profile. Instead the information appears directly in the parent.
4952 ----------------------
4953 -- 6.1 Formal Part --
4954 ----------------------
4957 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4959 ----------------------------------
4960 -- 6.1 Parameter Specification --
4961 ----------------------------------
4963 -- PARAMETER_SPECIFICATION ::=
4964 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
4965 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
4966 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4967 -- [:= DEFAULT_EXPRESSION]
4969 -- Although the syntax allows multiple identifiers in the list, the
4970 -- semantics is as though successive specifications were given with
4971 -- identical type definition and expression components. To simplify
4972 -- semantic processing, the parser represents a multiple declaration
4973 -- case as a sequence of single Specifications, using the More_Ids and
4974 -- Prev_Ids flags to preserve the original source form as described
4975 -- in the section on "Handling of Defining Identifier Lists".
4977 -- ALIASED can only be present in Ada 2012 mode
4979 -- N_Parameter_Specification
4980 -- Sloc points to first identifier
4981 -- Defining_Identifier (Node1)
4982 -- Aliased_Present (Flag4)
4983 -- In_Present (Flag15)
4984 -- Out_Present (Flag17)
4985 -- Null_Exclusion_Present (Flag11)
4986 -- Parameter_Type (Node2) subtype mark or access definition
4987 -- Expression (Node3) (set to Empty if no default expression present)
4988 -- Do_Accessibility_Check (Flag13-Sem)
4989 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4990 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4991 -- Default_Expression (Node5-Sem)
4997 -- MODE ::= [in] | in out | out
4999 -- There is no explicit node in the tree for the Mode. Instead the
5000 -- In_Present and Out_Present flags are set in the parent node to
5001 -- record the presence of keywords specifying the mode.
5003 --------------------------
5004 -- 6.3 Subprogram Body --
5005 --------------------------
5007 -- SUBPROGRAM_BODY ::=
5008 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5011 -- HANDLED_SEQUENCE_OF_STATEMENTS
5012 -- end [DESIGNATOR];
5014 -- N_Subprogram_Body
5015 -- Sloc points to FUNCTION or PROCEDURE
5016 -- Specification (Node1)
5017 -- Declarations (List2)
5018 -- Handled_Statement_Sequence (Node4)
5019 -- Activation_Chain_Entity (Node3-Sem)
5020 -- Corresponding_Spec (Node5-Sem)
5021 -- Acts_As_Spec (Flag4-Sem)
5022 -- Bad_Is_Detected (Flag15) used only by parser
5023 -- Do_Storage_Check (Flag17-Sem)
5024 -- Is_Protected_Subprogram_Body (Flag7-Sem)
5025 -- Is_Entry_Barrier_Function (Flag8-Sem)
5026 -- Is_Task_Master (Flag5-Sem)
5027 -- Was_Originally_Stub (Flag13-Sem)
5028 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5030 -------------------------
5031 -- Expression Function --
5032 -------------------------
5034 -- This is an Ada 2012 extension, we put it here for now, to be labeled
5035 -- and put in its proper section when we know exactly where that is.
5037 -- EXPRESSION_FUNCTION ::=
5038 -- FUNCTION SPECIFICATION IS (EXPRESSION)
5039 -- [ASPECT_SPECIFICATIONS];
5041 -- N_Expression_Function
5042 -- Sloc points to FUNCTION
5043 -- Specification (Node1)
5044 -- Expression (Node3)
5045 -- Corresponding_Spec (Node5-Sem)
5047 -----------------------------------
5048 -- 6.4 Procedure Call Statement --
5049 -----------------------------------
5051 -- PROCEDURE_CALL_STATEMENT ::=
5052 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5054 -- Note: the reason that a procedure call has expression fields is that
5055 -- it semantically resembles an expression, e.g. overloading is allowed
5056 -- and a type is concocted for semantic processing purposes. Certain of
5057 -- these fields, such as Parens are not relevant, but it is easier to
5058 -- just supply all of them together.
5060 -- N_Procedure_Call_Statement
5061 -- Sloc points to first token of name or prefix
5062 -- Name (Node2) stores name or prefix
5063 -- Parameter_Associations (List3) (set to No_List if no
5064 -- actual parameter part)
5065 -- First_Named_Actual (Node4-Sem)
5066 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5067 -- Do_Tag_Check (Flag13-Sem)
5068 -- No_Elaboration_Check (Flag14-Sem)
5069 -- Parameter_List_Truncated (Flag17-Sem)
5070 -- ABE_Is_Certain (Flag18-Sem)
5071 -- plus fields for expression
5073 -- If any IN parameter requires a range check, then the corresponding
5074 -- argument expression has the Do_Range_Check flag set, and the range
5075 -- check is done against the formal type. Note that this argument
5076 -- expression may appear directly in the Parameter_Associations list,
5077 -- or may be a descendent of an N_Parameter_Association node that
5078 -- appears in this list.
5080 ------------------------
5081 -- 6.4 Function Call --
5082 ------------------------
5084 -- FUNCTION_CALL ::=
5085 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5087 -- Note: the parser may generate an indexed component node or simply
5088 -- a name node instead of a function call node. The semantic pass must
5089 -- correct this misidentification.
5092 -- Sloc points to first token of name or prefix
5093 -- Name (Node2) stores name or prefix
5094 -- Parameter_Associations (List3) (set to No_List if no
5095 -- actual parameter part)
5096 -- First_Named_Actual (Node4-Sem)
5097 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5098 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5099 -- Do_Tag_Check (Flag13-Sem)
5100 -- No_Elaboration_Check (Flag14-Sem)
5101 -- Parameter_List_Truncated (Flag17-Sem)
5102 -- ABE_Is_Certain (Flag18-Sem)
5103 -- plus fields for expression
5105 --------------------------------
5106 -- 6.4 Actual Parameter Part --
5107 --------------------------------
5109 -- ACTUAL_PARAMETER_PART ::=
5110 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5112 --------------------------------
5113 -- 6.4 Parameter Association --
5114 --------------------------------
5116 -- PARAMETER_ASSOCIATION ::=
5117 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5119 -- Note: the N_Parameter_Association node is built only if a formal
5120 -- parameter selector name is present, otherwise the parameter
5121 -- association appears in the tree simply as the node for the
5122 -- explicit actual parameter.
5124 -- N_Parameter_Association
5125 -- Sloc points to formal parameter
5126 -- Selector_Name (Node2) (always non-Empty)
5127 -- Explicit_Actual_Parameter (Node3)
5128 -- Next_Named_Actual (Node4-Sem)
5129 -- Is_Accessibility_Actual (Flag13-Sem)
5131 ---------------------------
5132 -- 6.4 Actual Parameter --
5133 ---------------------------
5135 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
5137 ---------------------------
5138 -- 6.5 Return Statement --
5139 ---------------------------
5141 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5143 -- EXTENDED_RETURN_STATEMENT ::=
5144 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5145 -- [:= EXPRESSION] [do
5146 -- HANDLED_SEQUENCE_OF_STATEMENTS
5149 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5151 -- The term "return statement" is defined in 6.5 to mean either a
5152 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5153 -- the use of this term, since it used to mean someting else in earlier
5156 -- N_Simple_Return_Statement
5157 -- Sloc points to RETURN
5158 -- Return_Statement_Entity (Node5-Sem)
5159 -- Expression (Node3) (set to Empty if no expression present)
5160 -- Storage_Pool (Node1-Sem)
5161 -- Procedure_To_Call (Node2-Sem)
5162 -- Do_Tag_Check (Flag13-Sem)
5163 -- By_Ref (Flag5-Sem)
5164 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5166 -- Note: Return_Statement_Entity points to an E_Return_Statement
5168 -- If a range check is required, then Do_Range_Check is set on the
5169 -- Expression. The check is against the return subtype of the function.
5171 -- N_Extended_Return_Statement
5172 -- Sloc points to RETURN
5173 -- Return_Statement_Entity (Node5-Sem)
5174 -- Return_Object_Declarations (List3)
5175 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5176 -- Storage_Pool (Node1-Sem)
5177 -- Procedure_To_Call (Node2-Sem)
5178 -- Do_Tag_Check (Flag13-Sem)
5179 -- By_Ref (Flag5-Sem)
5181 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5183 -- Note that Return_Object_Declarations is a list containing the
5184 -- N_Object_Declaration -- see comment on this field above.
5186 -- The declared object will have Is_Return_Object = True.
5188 -- There is no such syntactic category as return_object_declaration
5189 -- in the RM. Return_Object_Declarations represents this portion of
5190 -- the syntax for EXTENDED_RETURN_STATEMENT:
5191 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5194 -- There are two entities associated with an extended_return_statement:
5195 -- the Return_Statement_Entity represents the statement itself,
5196 -- and the Defining_Identifier of the Object_Declaration in
5197 -- Return_Object_Declarations represents the object being
5198 -- returned. N_Simple_Return_Statement has only the former.
5200 ------------------------------
5201 -- 7.1 Package Declaration --
5202 ------------------------------
5204 -- PACKAGE_DECLARATION ::=
5205 -- PACKAGE_SPECIFICATION;
5207 -- Note: the activation chain entity for a package spec is used for
5208 -- all tasks declared in the package spec, or in the package body.
5210 -- N_Package_Declaration
5211 -- Sloc points to PACKAGE
5212 -- Specification (Node1)
5213 -- Corresponding_Body (Node5-Sem)
5214 -- Parent_Spec (Node4-Sem)
5215 -- Activation_Chain_Entity (Node3-Sem)
5217 --------------------------------
5218 -- 7.1 Package Specification --
5219 --------------------------------
5221 -- PACKAGE_SPECIFICATION ::=
5222 -- package DEFINING_PROGRAM_UNIT_NAME
5223 -- [ASPECT_SPECIFICATIONS]
5225 -- {BASIC_DECLARATIVE_ITEM}
5227 -- {BASIC_DECLARATIVE_ITEM}]
5228 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5230 -- N_Package_Specification
5231 -- Sloc points to PACKAGE
5232 -- Defining_Unit_Name (Node1)
5233 -- Visible_Declarations (List2)
5234 -- Private_Declarations (List3) (set to No_List if no private
5236 -- End_Label (Node4)
5237 -- Generic_Parent (Node5-Sem)
5238 -- Limited_View_Installed (Flag18-Sem)
5240 -----------------------
5241 -- 7.1 Package Body --
5242 -----------------------
5245 -- package body DEFINING_PROGRAM_UNIT_NAME
5246 -- [ASPECT_SPECIFICATIONS]
5250 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5251 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5254 -- Sloc points to PACKAGE
5255 -- Defining_Unit_Name (Node1)
5256 -- Declarations (List2)
5257 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5258 -- Corresponding_Spec (Node5-Sem)
5259 -- Was_Originally_Stub (Flag13-Sem)
5261 -- Note: if a source level package does not contain a handled sequence
5262 -- of statements, then the parser supplies a dummy one with a null
5263 -- sequence of statements. Comes_From_Source will be False in this
5264 -- constructed sequence. The reason we need this is for the End_Label
5265 -- field in the HSS.
5267 -----------------------------------
5268 -- 7.4 Private Type Declaration --
5269 -----------------------------------
5271 -- PRIVATE_TYPE_DECLARATION ::=
5272 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5273 -- is [[abstract] tagged] [limited] private
5274 -- [ASPECT_SPECIFICATIONS];
5276 -- Note: TAGGED is not permitted in Ada 83 mode
5278 -- N_Private_Type_Declaration
5279 -- Sloc points to TYPE
5280 -- Defining_Identifier (Node1)
5281 -- Discriminant_Specifications (List4) (set to No_List if no
5282 -- discriminant part)
5283 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5284 -- Abstract_Present (Flag4)
5285 -- Tagged_Present (Flag15)
5286 -- Limited_Present (Flag17)
5288 ----------------------------------------
5289 -- 7.4 Private Extension Declaration --
5290 ----------------------------------------
5292 -- PRIVATE_EXTENSION_DECLARATION ::=
5293 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5294 -- [abstract] [limited | synchronized]
5295 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5296 -- with private [ASPECT_SPECIFICATIONS];
5298 -- Note: LIMITED, and private extension declarations are not allowed
5301 -- N_Private_Extension_Declaration
5302 -- Sloc points to TYPE
5303 -- Defining_Identifier (Node1)
5304 -- Uninitialized_Variable (Node3-Sem)
5305 -- Discriminant_Specifications (List4) (set to No_List if no
5306 -- discriminant part)
5307 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5308 -- Abstract_Present (Flag4)
5309 -- Limited_Present (Flag17)
5310 -- Synchronized_Present (Flag7)
5311 -- Subtype_Indication (Node5)
5312 -- Interface_List (List2) (set to No_List if none)
5314 ---------------------
5315 -- 8.4 Use Clause --
5316 ---------------------
5318 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5320 -----------------------------
5321 -- 8.4 Use Package Clause --
5322 -----------------------------
5324 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5326 -- N_Use_Package_Clause
5327 -- Sloc points to USE
5329 -- Next_Use_Clause (Node3-Sem)
5330 -- Hidden_By_Use_Clause (Elist4-Sem)
5332 --------------------------
5333 -- 8.4 Use Type Clause --
5334 --------------------------
5336 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5338 -- Note: use type clause is not permitted in Ada 83 mode
5340 -- Note: the ALL keyword can appear only in Ada 2012 mode
5342 -- N_Use_Type_Clause
5343 -- Sloc points to USE
5344 -- Subtype_Marks (List2)
5345 -- Next_Use_Clause (Node3-Sem)
5346 -- Hidden_By_Use_Clause (Elist4-Sem)
5347 -- Used_Operations (Elist5-Sem)
5348 -- All_Present (Flag15)
5350 -------------------------------
5351 -- 8.5 Renaming Declaration --
5352 -------------------------------
5354 -- RENAMING_DECLARATION ::=
5355 -- OBJECT_RENAMING_DECLARATION
5356 -- | EXCEPTION_RENAMING_DECLARATION
5357 -- | PACKAGE_RENAMING_DECLARATION
5358 -- | SUBPROGRAM_RENAMING_DECLARATION
5359 -- | GENERIC_RENAMING_DECLARATION
5361 --------------------------------------
5362 -- 8.5 Object Renaming Declaration --
5363 --------------------------------------
5365 -- OBJECT_RENAMING_DECLARATION ::=
5366 -- DEFINING_IDENTIFIER :
5367 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5368 -- [ASPECT_SPECIFICATIONS];
5369 -- | DEFINING_IDENTIFIER :
5370 -- ACCESS_DEFINITION renames object_NAME
5371 -- [ASPECT_SPECIFICATIONS];
5373 -- Note: Access_Definition is an optional field that gives support to
5374 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5375 -- Subtype_Indication field or else the Access_Definition field.
5377 -- N_Object_Renaming_Declaration
5378 -- Sloc points to first identifier
5379 -- Defining_Identifier (Node1)
5380 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5381 -- Subtype_Mark (Node4) (set to Empty if not present)
5382 -- Access_Definition (Node3) (set to Empty if not present)
5384 -- Corresponding_Generic_Association (Node5-Sem)
5386 -----------------------------------------
5387 -- 8.5 Exception Renaming Declaration --
5388 -----------------------------------------
5390 -- EXCEPTION_RENAMING_DECLARATION ::=
5391 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5392 -- [ASPECT_SPECIFICATIONS];
5394 -- N_Exception_Renaming_Declaration
5395 -- Sloc points to first identifier
5396 -- Defining_Identifier (Node1)
5399 ---------------------------------------
5400 -- 8.5 Package Renaming Declaration --
5401 ---------------------------------------
5403 -- PACKAGE_RENAMING_DECLARATION ::=
5404 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5405 -- [ASPECT_SPECIFICATIONS];
5407 -- N_Package_Renaming_Declaration
5408 -- Sloc points to PACKAGE
5409 -- Defining_Unit_Name (Node1)
5411 -- Parent_Spec (Node4-Sem)
5413 ------------------------------------------
5414 -- 8.5 Subprogram Renaming Declaration --
5415 ------------------------------------------
5417 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5418 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5419 -- [ASPECT_SPECIFICATIONS];
5421 -- N_Subprogram_Renaming_Declaration
5422 -- Sloc points to RENAMES
5423 -- Specification (Node1)
5425 -- Parent_Spec (Node4-Sem)
5426 -- Corresponding_Spec (Node5-Sem)
5427 -- Corresponding_Formal_Spec (Node3-Sem)
5428 -- From_Default (Flag6-Sem)
5430 -----------------------------------------
5431 -- 8.5.5 Generic Renaming Declaration --
5432 -----------------------------------------
5434 -- GENERIC_RENAMING_DECLARATION ::=
5435 -- generic package DEFINING_PROGRAM_UNIT_NAME
5436 -- renames generic_package_NAME
5437 -- [ASPECT_SPECIFICATIONS];
5438 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5439 -- renames generic_procedure_NAME
5440 -- [ASPECT_SPECIFICATIONS];
5441 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5442 -- renames generic_function_NAME
5443 -- [ASPECT_SPECIFICATIONS];
5445 -- N_Generic_Package_Renaming_Declaration
5446 -- Sloc points to GENERIC
5447 -- Defining_Unit_Name (Node1)
5449 -- Parent_Spec (Node4-Sem)
5451 -- N_Generic_Procedure_Renaming_Declaration
5452 -- Sloc points to GENERIC
5453 -- Defining_Unit_Name (Node1)
5455 -- Parent_Spec (Node4-Sem)
5457 -- N_Generic_Function_Renaming_Declaration
5458 -- Sloc points to GENERIC
5459 -- Defining_Unit_Name (Node1)
5461 -- Parent_Spec (Node4-Sem)
5463 --------------------------------
5464 -- 9.1 Task Type Declaration --
5465 --------------------------------
5467 -- TASK_TYPE_DECLARATION ::=
5468 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5469 -- [ASPECT_SPECIFICATIONS]
5470 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5472 -- N_Task_Type_Declaration
5473 -- Sloc points to TASK
5474 -- Defining_Identifier (Node1)
5475 -- Discriminant_Specifications (List4) (set to No_List if no
5476 -- discriminant part)
5477 -- Interface_List (List2) (set to No_List if none)
5478 -- Task_Definition (Node3) (set to Empty if not present)
5479 -- Corresponding_Body (Node5-Sem)
5481 ----------------------------------
5482 -- 9.1 Single Task Declaration --
5483 ----------------------------------
5485 -- SINGLE_TASK_DECLARATION ::=
5486 -- task DEFINING_IDENTIFIER
5487 -- [ASPECT_SPECIFICATIONS]
5488 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5490 -- N_Single_Task_Declaration
5491 -- Sloc points to TASK
5492 -- Defining_Identifier (Node1)
5493 -- Interface_List (List2) (set to No_List if none)
5494 -- Task_Definition (Node3) (set to Empty if not present)
5496 --------------------------
5497 -- 9.1 Task Definition --
5498 --------------------------
5500 -- TASK_DEFINITION ::=
5504 -- end [task_IDENTIFIER]
5506 -- Note: as a result of semantic analysis, the list of task items can
5507 -- include implicit type declarations resulting from entry families.
5509 -- N_Task_Definition
5510 -- Sloc points to first token of task definition
5511 -- Visible_Declarations (List2)
5512 -- Private_Declarations (List3) (set to No_List if no private part)
5513 -- End_Label (Node4)
5514 -- Has_Storage_Size_Pragma (Flag5-Sem)
5515 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5517 --------------------
5519 --------------------
5521 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5523 --------------------
5525 --------------------
5528 -- task body task_DEFINING_IDENTIFIER
5529 -- [ASPECT_SPECIFICATIONS]
5533 -- HANDLED_SEQUENCE_OF_STATEMENTS
5534 -- end [task_IDENTIFIER];
5536 -- Gigi restriction: This node never appears
5539 -- Sloc points to TASK
5540 -- Defining_Identifier (Node1)
5541 -- Declarations (List2)
5542 -- Handled_Statement_Sequence (Node4)
5543 -- Is_Task_Master (Flag5-Sem)
5544 -- Activation_Chain_Entity (Node3-Sem)
5545 -- Corresponding_Spec (Node5-Sem)
5546 -- Was_Originally_Stub (Flag13-Sem)
5548 -------------------------------------
5549 -- 9.4 Protected Type Declaration --
5550 -------------------------------------
5552 -- PROTECTED_TYPE_DECLARATION ::=
5553 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5554 -- [ASPECT_SPECIFICATIONS]
5555 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5557 -- Note: protected type declarations are not permitted in Ada 83 mode
5559 -- N_Protected_Type_Declaration
5560 -- Sloc points to PROTECTED
5561 -- Defining_Identifier (Node1)
5562 -- Discriminant_Specifications (List4) (set to No_List if no
5563 -- discriminant part)
5564 -- Interface_List (List2) (set to No_List if none)
5565 -- Protected_Definition (Node3)
5566 -- Corresponding_Body (Node5-Sem)
5568 ---------------------------------------
5569 -- 9.4 Single Protected Declaration --
5570 ---------------------------------------
5572 -- SINGLE_PROTECTED_DECLARATION ::=
5573 -- protected DEFINING_IDENTIFIER
5574 -- [ASPECT_SPECIFICATIONS]
5575 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5577 -- Note: single protected declarations are not allowed in Ada 83 mode
5579 -- N_Single_Protected_Declaration
5580 -- Sloc points to PROTECTED
5581 -- Defining_Identifier (Node1)
5582 -- Interface_List (List2) (set to No_List if none)
5583 -- Protected_Definition (Node3)
5585 -------------------------------
5586 -- 9.4 Protected Definition --
5587 -------------------------------
5589 -- PROTECTED_DEFINITION ::=
5590 -- {PROTECTED_OPERATION_DECLARATION}
5592 -- {PROTECTED_ELEMENT_DECLARATION}]
5593 -- end [protected_IDENTIFIER]
5595 -- N_Protected_Definition
5596 -- Sloc points to first token of protected definition
5597 -- Visible_Declarations (List2)
5598 -- Private_Declarations (List3) (set to No_List if no private part)
5599 -- End_Label (Node4)
5601 ------------------------------------------
5602 -- 9.4 Protected Operation Declaration --
5603 ------------------------------------------
5605 -- PROTECTED_OPERATION_DECLARATION ::=
5606 -- SUBPROGRAM_DECLARATION
5607 -- | ENTRY_DECLARATION
5608 -- | REPRESENTATION_CLAUSE
5610 ----------------------------------------
5611 -- 9.4 Protected Element Declaration --
5612 ----------------------------------------
5614 -- PROTECTED_ELEMENT_DECLARATION ::=
5615 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5617 -------------------------
5618 -- 9.4 Protected Body --
5619 -------------------------
5621 -- PROTECTED_BODY ::=
5622 -- protected body DEFINING_IDENTIFIER
5623 -- [ASPECT_SPECIFICATIONS];
5625 -- {PROTECTED_OPERATION_ITEM}
5626 -- end [protected_IDENTIFIER];
5628 -- Note: protected bodies are not allowed in Ada 83 mode
5630 -- Gigi restriction: This node never appears
5633 -- Sloc points to PROTECTED
5634 -- Defining_Identifier (Node1)
5635 -- Declarations (List2) protected operation items (and pragmas)
5636 -- End_Label (Node4)
5637 -- Corresponding_Spec (Node5-Sem)
5638 -- Was_Originally_Stub (Flag13-Sem)
5640 -----------------------------------
5641 -- 9.4 Protected Operation Item --
5642 -----------------------------------
5644 -- PROTECTED_OPERATION_ITEM ::=
5645 -- SUBPROGRAM_DECLARATION
5646 -- | SUBPROGRAM_BODY
5648 -- | REPRESENTATION_CLAUSE
5650 ------------------------------
5651 -- 9.5.2 Entry Declaration --
5652 ------------------------------
5654 -- ENTRY_DECLARATION ::=
5655 -- [[not] overriding]
5656 -- entry DEFINING_IDENTIFIER
5657 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
5658 -- [ASPECT_SPECIFICATIONS];
5660 -- N_Entry_Declaration
5661 -- Sloc points to ENTRY
5662 -- Defining_Identifier (Node1)
5663 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5664 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5665 -- Corresponding_Body (Node5-Sem)
5666 -- Must_Override (Flag14) set if overriding indicator present
5667 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5669 -- Note: overriding indicator is an Ada 2005 feature
5671 -----------------------------
5672 -- 9.5.2 Accept statement --
5673 -----------------------------
5675 -- ACCEPT_STATEMENT ::=
5676 -- accept entry_DIRECT_NAME
5677 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5678 -- HANDLED_SEQUENCE_OF_STATEMENTS
5679 -- end [entry_IDENTIFIER]];
5681 -- Gigi restriction: This node never appears
5683 -- Note: there are no explicit declarations allowed in an accept
5684 -- statement. However, the implicit declarations for any statement
5685 -- identifiers (labels and block/loop identifiers) are declarations
5686 -- that belong logically to the accept statement, and that is why
5687 -- there is a Declarations field in this node.
5689 -- N_Accept_Statement
5690 -- Sloc points to ACCEPT
5691 -- Entry_Direct_Name (Node1)
5692 -- Entry_Index (Node5) (set to Empty if not present)
5693 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5694 -- Handled_Statement_Sequence (Node4)
5695 -- Declarations (List2) (set to No_List if no declarations)
5697 ------------------------
5698 -- 9.5.2 Entry Index --
5699 ------------------------
5701 -- ENTRY_INDEX ::= EXPRESSION
5703 -----------------------
5704 -- 9.5.2 Entry Body --
5705 -----------------------
5708 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5711 -- HANDLED_SEQUENCE_OF_STATEMENTS
5712 -- end [entry_IDENTIFIER];
5714 -- ENTRY_BARRIER ::= when CONDITION
5716 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5717 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5718 -- too full (it would otherwise have too many fields)
5720 -- Gigi restriction: This node never appears
5723 -- Sloc points to ENTRY
5724 -- Defining_Identifier (Node1)
5725 -- Entry_Body_Formal_Part (Node5)
5726 -- Declarations (List2)
5727 -- Handled_Statement_Sequence (Node4)
5728 -- Activation_Chain_Entity (Node3-Sem)
5730 -----------------------------------
5731 -- 9.5.2 Entry Body Formal Part --
5732 -----------------------------------
5734 -- ENTRY_BODY_FORMAL_PART ::=
5735 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5737 -- Note that an entry body formal part node is present even if it is
5738 -- empty. This reflects the grammar, in which it is the components of
5739 -- the entry body formal part that are optional, not the entry body
5740 -- formal part itself. Also this means that the barrier condition
5741 -- always has somewhere to be stored.
5743 -- Gigi restriction: This node never appears
5745 -- N_Entry_Body_Formal_Part
5746 -- Sloc points to first token
5747 -- Entry_Index_Specification (Node4) (set to Empty if not present)
5748 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5749 -- Condition (Node1) from entry barrier of entry body
5751 --------------------------
5752 -- 9.5.2 Entry Barrier --
5753 --------------------------
5755 -- ENTRY_BARRIER ::= when CONDITION
5757 --------------------------------------
5758 -- 9.5.2 Entry Index Specification --
5759 --------------------------------------
5761 -- ENTRY_INDEX_SPECIFICATION ::=
5762 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5764 -- Gigi restriction: This node never appears
5766 -- N_Entry_Index_Specification
5767 -- Sloc points to FOR
5768 -- Defining_Identifier (Node1)
5769 -- Discrete_Subtype_Definition (Node4)
5771 ---------------------------------
5772 -- 9.5.3 Entry Call Statement --
5773 ---------------------------------
5775 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5777 -- The parser may generate a procedure call for this construct. The
5778 -- semantic pass must correct this misidentification where needed.
5780 -- Gigi restriction: This node never appears
5782 -- N_Entry_Call_Statement
5783 -- Sloc points to first token of name
5785 -- Parameter_Associations (List3) (set to No_List if no
5786 -- actual parameter part)
5787 -- First_Named_Actual (Node4-Sem)
5789 ------------------------------
5790 -- 9.5.4 Requeue Statement --
5791 ------------------------------
5793 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5795 -- Note: requeue statements are not permitted in Ada 83 mode
5797 -- Gigi restriction: This node never appears
5799 -- N_Requeue_Statement
5800 -- Sloc points to REQUEUE
5802 -- Abort_Present (Flag15)
5804 --------------------------
5805 -- 9.6 Delay Statement --
5806 --------------------------
5808 -- DELAY_STATEMENT ::=
5809 -- DELAY_UNTIL_STATEMENT
5810 -- | DELAY_RELATIVE_STATEMENT
5812 --------------------------------
5813 -- 9.6 Delay Until Statement --
5814 --------------------------------
5816 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5818 -- Note: delay until statements are not permitted in Ada 83 mode
5820 -- Gigi restriction: This node never appears
5822 -- N_Delay_Until_Statement
5823 -- Sloc points to DELAY
5824 -- Expression (Node3)
5826 -----------------------------------
5827 -- 9.6 Delay Relative Statement --
5828 -----------------------------------
5830 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5832 -- Gigi restriction: This node never appears
5834 -- N_Delay_Relative_Statement
5835 -- Sloc points to DELAY
5836 -- Expression (Node3)
5838 ---------------------------
5839 -- 9.7 Select Statement --
5840 ---------------------------
5842 -- SELECT_STATEMENT ::=
5844 -- | TIMED_ENTRY_CALL
5845 -- | CONDITIONAL_ENTRY_CALL
5846 -- | ASYNCHRONOUS_SELECT
5848 -----------------------------
5849 -- 9.7.1 Selective Accept --
5850 -----------------------------
5852 -- SELECTIVE_ACCEPT ::=
5855 -- SELECT_ALTERNATIVE
5858 -- SELECT_ALTERNATIVE}
5860 -- SEQUENCE_OF_STATEMENTS]
5863 -- Gigi restriction: This node never appears
5865 -- Note: the guard expression, if present, appears in the node for
5866 -- the select alternative.
5868 -- N_Selective_Accept
5869 -- Sloc points to SELECT
5870 -- Select_Alternatives (List1)
5871 -- Else_Statements (List4) (set to No_List if no else part)
5877 -- GUARD ::= when CONDITION =>
5879 -- As noted above, the CONDITION that is part of a GUARD is included
5880 -- in the node for the select alternative for convenience.
5882 -------------------------------
5883 -- 9.7.1 Select Alternative --
5884 -------------------------------
5886 -- SELECT_ALTERNATIVE ::=
5887 -- ACCEPT_ALTERNATIVE
5888 -- | DELAY_ALTERNATIVE
5889 -- | TERMINATE_ALTERNATIVE
5891 -------------------------------
5892 -- 9.7.1 Accept Alternative --
5893 -------------------------------
5895 -- ACCEPT_ALTERNATIVE ::=
5896 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5898 -- Gigi restriction: This node never appears
5900 -- N_Accept_Alternative
5901 -- Sloc points to ACCEPT
5902 -- Accept_Statement (Node2)
5903 -- Condition (Node1) from the guard (set to Empty if no guard present)
5904 -- Statements (List3) (set to Empty_List if no statements)
5905 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5906 -- Accept_Handler_Records (List5-Sem)
5908 ------------------------------
5909 -- 9.7.1 Delay Alternative --
5910 ------------------------------
5912 -- DELAY_ALTERNATIVE ::=
5913 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5915 -- Gigi restriction: This node never appears
5917 -- N_Delay_Alternative
5918 -- Sloc points to DELAY
5919 -- Delay_Statement (Node2)
5920 -- Condition (Node1) from the guard (set to Empty if no guard present)
5921 -- Statements (List3) (set to Empty_List if no statements)
5922 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5924 ----------------------------------
5925 -- 9.7.1 Terminate Alternative --
5926 ----------------------------------
5928 -- TERMINATE_ALTERNATIVE ::= terminate;
5930 -- Gigi restriction: This node never appears
5932 -- N_Terminate_Alternative
5933 -- Sloc points to TERMINATE
5934 -- Condition (Node1) from the guard (set to Empty if no guard present)
5935 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5936 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5938 -----------------------------
5939 -- 9.7.2 Timed Entry Call --
5940 -----------------------------
5942 -- TIMED_ENTRY_CALL ::=
5944 -- ENTRY_CALL_ALTERNATIVE
5946 -- DELAY_ALTERNATIVE
5949 -- Gigi restriction: This node never appears
5951 -- N_Timed_Entry_Call
5952 -- Sloc points to SELECT
5953 -- Entry_Call_Alternative (Node1)
5954 -- Delay_Alternative (Node4)
5956 -----------------------------------
5957 -- 9.7.2 Entry Call Alternative --
5958 -----------------------------------
5960 -- ENTRY_CALL_ALTERNATIVE ::=
5961 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5963 -- PROCEDURE_OR_ENTRY_CALL ::=
5964 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5966 -- Gigi restriction: This node never appears
5968 -- N_Entry_Call_Alternative
5969 -- Sloc points to first token of entry call statement
5970 -- Entry_Call_Statement (Node1)
5971 -- Statements (List3) (set to Empty_List if no statements)
5972 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5974 -----------------------------------
5975 -- 9.7.3 Conditional Entry Call --
5976 -----------------------------------
5978 -- CONDITIONAL_ENTRY_CALL ::=
5980 -- ENTRY_CALL_ALTERNATIVE
5982 -- SEQUENCE_OF_STATEMENTS
5985 -- Gigi restriction: This node never appears
5987 -- N_Conditional_Entry_Call
5988 -- Sloc points to SELECT
5989 -- Entry_Call_Alternative (Node1)
5990 -- Else_Statements (List4)
5992 --------------------------------
5993 -- 9.7.4 Asynchronous Select --
5994 --------------------------------
5996 -- ASYNCHRONOUS_SELECT ::=
5998 -- TRIGGERING_ALTERNATIVE
6003 -- Note: asynchronous select is not permitted in Ada 83 mode
6005 -- Gigi restriction: This node never appears
6007 -- N_Asynchronous_Select
6008 -- Sloc points to SELECT
6009 -- Triggering_Alternative (Node1)
6010 -- Abortable_Part (Node2)
6012 -----------------------------------
6013 -- 9.7.4 Triggering Alternative --
6014 -----------------------------------
6016 -- TRIGGERING_ALTERNATIVE ::=
6017 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6019 -- Gigi restriction: This node never appears
6021 -- N_Triggering_Alternative
6022 -- Sloc points to first token of triggering statement
6023 -- Triggering_Statement (Node1)
6024 -- Statements (List3) (set to Empty_List if no statements)
6025 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6027 ---------------------------------
6028 -- 9.7.4 Triggering Statement --
6029 ---------------------------------
6031 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6033 ---------------------------
6034 -- 9.7.4 Abortable Part --
6035 ---------------------------
6037 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6039 -- Gigi restriction: This node never appears
6042 -- Sloc points to ABORT
6043 -- Statements (List3)
6045 --------------------------
6046 -- 9.8 Abort Statement --
6047 --------------------------
6049 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6051 -- Gigi restriction: This node never appears
6053 -- N_Abort_Statement
6054 -- Sloc points to ABORT
6057 -------------------------
6058 -- 10.1.1 Compilation --
6059 -------------------------
6061 -- COMPILATION ::= {COMPILATION_UNIT}
6063 -- There is no explicit node in the tree for a compilation, since in
6064 -- general the compiler is processing only a single compilation unit
6065 -- at a time. It is possible to parse multiple units in syntax check
6066 -- only mode, but the trees are discarded in that case.
6068 ------------------------------
6069 -- 10.1.1 Compilation Unit --
6070 ------------------------------
6072 -- COMPILATION_UNIT ::=
6073 -- CONTEXT_CLAUSE LIBRARY_ITEM
6074 -- | CONTEXT_CLAUSE SUBUNIT
6076 -- The N_Compilation_Unit node itself represents the above syntax.
6077 -- However, there are two additional items not reflected in the above
6078 -- syntax. First we have the global declarations that are added by the
6079 -- code generator. These are outer level declarations (so they cannot
6080 -- be represented as being inside the units). An example is the wrapper
6081 -- subprograms that are created to do ABE checking. As always a list of
6082 -- declarations can contain actions as well (i.e. statements), and such
6083 -- statements are executed as part of the elaboration of the unit. Note
6084 -- that all such declarations are elaborated before the library unit.
6086 -- Similarly, certain actions need to be elaborated at the completion
6087 -- of elaboration of the library unit (notably the statement that sets
6088 -- the Boolean flag indicating that elaboration is complete).
6090 -- The third item not reflected in the syntax is pragmas that appear
6091 -- after the compilation unit. As always pragmas are a problem since
6092 -- they are not part of the formal syntax, but can be stuck into the
6093 -- source following a set of ad hoc rules, and we have to find an ad
6094 -- hoc way of sticking them into the tree. For pragmas that appear
6095 -- before the library unit, we just consider them to be part of the
6096 -- context clause, and pragmas can appear in the Context_Items list
6097 -- of the compilation unit. However, pragmas can also appear after
6098 -- the library item.
6100 -- To deal with all these problems, we create an auxiliary node for
6101 -- a compilation unit, referenced from the N_Compilation_Unit node,
6102 -- that contains these items.
6104 -- N_Compilation_Unit
6105 -- Sloc points to first token of defining unit name
6106 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6107 -- Context_Items (List1) context items and pragmas preceding unit
6108 -- Private_Present (Flag15) set if library unit has private keyword
6109 -- Unit (Node2) library item or subunit
6110 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6111 -- Has_No_Elaboration_Code (Flag17-Sem)
6112 -- Body_Required (Flag13-Sem) set for spec if body is required
6113 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6114 -- Context_Pending (Flag16-Sem)
6115 -- First_Inlined_Subprogram (Node3-Sem)
6116 -- Has_Pragma_Suppress_All (Flag14-Sem)
6118 -- N_Compilation_Unit_Aux
6119 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6120 -- Declarations (List2) (set to No_List if no global declarations)
6121 -- Actions (List1) (set to No_List if no actions)
6122 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6123 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6124 -- Default_Storage_Pool (Node3-Sem)
6126 --------------------------
6127 -- 10.1.1 Library Item --
6128 --------------------------
6131 -- [private] LIBRARY_UNIT_DECLARATION
6132 -- | LIBRARY_UNIT_BODY
6133 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6135 -- Note: PRIVATE is not allowed in Ada 83 mode
6137 -- There is no explicit node in the tree for library item, instead
6138 -- the declaration or body, and the flag for private if present,
6139 -- appear in the N_Compilation_Unit node.
6141 --------------------------------------
6142 -- 10.1.1 Library Unit Declaration --
6143 --------------------------------------
6145 -- LIBRARY_UNIT_DECLARATION ::=
6146 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6147 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6149 -----------------------------------------------
6150 -- 10.1.1 Library Unit Renaming Declaration --
6151 -----------------------------------------------
6153 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6154 -- PACKAGE_RENAMING_DECLARATION
6155 -- | GENERIC_RENAMING_DECLARATION
6156 -- | SUBPROGRAM_RENAMING_DECLARATION
6158 -------------------------------
6159 -- 10.1.1 Library unit body --
6160 -------------------------------
6162 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6164 ------------------------------
6165 -- 10.1.1 Parent Unit Name --
6166 ------------------------------
6168 -- PARENT_UNIT_NAME ::= NAME
6170 ----------------------------
6171 -- 10.1.2 Context clause --
6172 ----------------------------
6174 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6176 -- The context clause can include pragmas, and any pragmas that appear
6177 -- before the context clause proper (i.e. all configuration pragmas,
6178 -- also appear at the front of this list).
6180 --------------------------
6181 -- 10.1.2 Context_Item --
6182 --------------------------
6184 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6186 -------------------------
6187 -- 10.1.2 With clause --
6188 -------------------------
6191 -- with library_unit_NAME {,library_unit_NAME};
6193 -- A separate With clause is built for each name, so that we have
6194 -- a Corresponding_Spec field for each with'ed spec. The flags
6195 -- First_Name and Last_Name are used to reconstruct the exact
6196 -- source form. When a list of names appears in one with clause,
6197 -- the first name in the list has First_Name set, and the last
6198 -- has Last_Name set. If the with clause has only one name, then
6199 -- both of the flags First_Name and Last_Name are set in this name.
6201 -- Note: in the case of implicit with's that are installed by the
6202 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6203 -- set to Standard_Location, but it is incorrect to test the Sloc
6204 -- to find out if a with clause is implicit, test the flag instead.
6207 -- Sloc points to first token of library unit name
6208 -- Withed_Body (Node1-Sem)
6210 -- Next_Implicit_With (Node3-Sem)
6211 -- Library_Unit (Node4-Sem)
6212 -- Corresponding_Spec (Node5-Sem)
6213 -- First_Name (Flag5) (set to True if first name or only one name)
6214 -- Last_Name (Flag6) (set to True if last name or only one name)
6215 -- Context_Installed (Flag13-Sem)
6216 -- Elaborate_Present (Flag4-Sem)
6217 -- Elaborate_All_Present (Flag14-Sem)
6218 -- Elaborate_All_Desirable (Flag9-Sem)
6219 -- Elaborate_Desirable (Flag11-Sem)
6220 -- Private_Present (Flag15) set if with_clause has private keyword
6221 -- Implicit_With (Flag16-Sem)
6222 -- Implicit_With_From_Instantiation (Flag12-Sem)
6223 -- Limited_Present (Flag17) set if LIMITED is present
6224 -- Limited_View_Installed (Flag18-Sem)
6225 -- Unreferenced_In_Spec (Flag7-Sem)
6226 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6228 -- Note: Limited_Present and Limited_View_Installed are used to support
6229 -- the implementation of Ada 2005 (AI-50217).
6231 -- Similarly, Private_Present is used to support the implementation of
6232 -- Ada 2005 (AI-50262).
6234 ----------------------
6235 -- With_Type clause --
6236 ----------------------
6238 -- This is a GNAT extension, used to implement mutually recursive
6239 -- types declared in different packages.
6241 -- Note: this is now obsolete. The functionality of this construct
6242 -- is now implemented by the Ada 2005 limited_with_clause.
6244 ---------------------
6245 -- 10.2 Body stub --
6246 ---------------------
6249 -- SUBPROGRAM_BODY_STUB
6250 -- | PACKAGE_BODY_STUB
6252 -- | PROTECTED_BODY_STUB
6254 ----------------------------------
6255 -- 10.1.3 Subprogram Body Stub --
6256 ----------------------------------
6258 -- SUBPROGRAM_BODY_STUB ::=
6259 -- SUBPROGRAM_SPECIFICATION is separate
6260 -- [ASPECT_SPECIFICATION];
6262 -- N_Subprogram_Body_Stub
6263 -- Sloc points to FUNCTION or PROCEDURE
6264 -- Specification (Node1)
6265 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6266 -- Library_Unit (Node4-Sem) points to the subunit
6267 -- Corresponding_Body (Node5-Sem)
6269 -------------------------------
6270 -- 10.1.3 Package Body Stub --
6271 -------------------------------
6273 -- PACKAGE_BODY_STUB ::=
6274 -- package body DEFINING_IDENTIFIER is separate
6275 -- [ASPECT_SPECIFICATION];
6277 -- N_Package_Body_Stub
6278 -- Sloc points to PACKAGE
6279 -- Defining_Identifier (Node1)
6280 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6281 -- Library_Unit (Node4-Sem) points to the subunit
6282 -- Corresponding_Body (Node5-Sem)
6284 ----------------------------
6285 -- 10.1.3 Task Body Stub --
6286 ----------------------------
6288 -- TASK_BODY_STUB ::=
6289 -- task body DEFINING_IDENTIFIER is separate
6290 -- [ASPECT_SPECIFICATION];
6293 -- Sloc points to TASK
6294 -- Defining_Identifier (Node1)
6295 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6296 -- Library_Unit (Node4-Sem) points to the subunit
6297 -- Corresponding_Body (Node5-Sem)
6299 ---------------------------------
6300 -- 10.1.3 Protected Body Stub --
6301 ---------------------------------
6303 -- PROTECTED_BODY_STUB ::=
6304 -- protected body DEFINING_IDENTIFIER is separate
6305 -- [ASPECT_SPECIFICATION];
6307 -- Note: protected body stubs are not allowed in Ada 83 mode
6309 -- N_Protected_Body_Stub
6310 -- Sloc points to PROTECTED
6311 -- Defining_Identifier (Node1)
6312 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6313 -- Library_Unit (Node4-Sem) points to the subunit
6314 -- Corresponding_Body (Node5-Sem)
6316 ---------------------
6317 -- 10.1.3 Subunit --
6318 ---------------------
6320 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6323 -- Sloc points to SEPARATE
6324 -- Name (Node2) is the name of the parent unit
6325 -- Proper_Body (Node1) is the subunit body
6326 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6328 ---------------------------------
6329 -- 11.1 Exception Declaration --
6330 ---------------------------------
6332 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6333 -- [ASPECT_SPECIFICATIONS];
6335 -- For consistency with object declarations etc., the parser converts
6336 -- the case of multiple identifiers being declared to a series of
6337 -- declarations in which the expression is copied, using the More_Ids
6338 -- and Prev_Ids flags to remember the source form as described in the
6339 -- section on "Handling of Defining Identifier Lists".
6341 -- N_Exception_Declaration
6342 -- Sloc points to EXCEPTION
6343 -- Defining_Identifier (Node1)
6344 -- Expression (Node3-Sem)
6345 -- Renaming_Exception (Node2-Sem)
6346 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6347 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6349 ------------------------------------------
6350 -- 11.2 Handled Sequence Of Statements --
6351 ------------------------------------------
6353 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6354 -- SEQUENCE_OF_STATEMENTS
6356 -- EXCEPTION_HANDLER
6357 -- {EXCEPTION_HANDLER}]
6359 -- cleanup_procedure_call (param, param, param, ...);]
6361 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6362 -- used only internally currently, but is considered to be syntactic.
6363 -- At the moment, the only cleanup action allowed is a single call to
6364 -- a parameterless procedure, and the Identifier field of the node is
6365 -- the procedure to be called. The cleanup action occurs whenever the
6366 -- sequence of statements is left for any reason. The possible reasons
6368 -- 1. reaching the end of the sequence
6369 -- 2. exit, return, or goto
6370 -- 3. exception or abort
6371 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6372 -- entirely in the back end. In this case, a handled sequence of
6373 -- statements with an "at end" cannot also have exception handlers.
6374 -- For other back ends, such as gcc with SJLJ and .NET, the
6375 -- implementation is split between the front end and back end; the front
6376 -- end implements 3, and the back end implements 1 and 2. In this case,
6377 -- if there is an "at end", the front end inserts the appropriate
6378 -- exception handler, and this handler takes precedence over "at end"
6379 -- in case of exception.
6381 -- The inserted exception handler is of the form:
6383 -- when all others =>
6387 -- where cleanup is the procedure to be called. The reason we do this is
6388 -- so that the front end can handle the necessary entries in the
6389 -- exception tables, and other exception handler actions required as
6390 -- part of the normal handling for exception handlers.
6392 -- The AT END cleanup handler protects only the sequence of statements
6393 -- (not the associated declarations of the parent), just like exception
6394 -- handlers. The big difference is that the cleanup procedure is called
6395 -- on either a normal or an abnormal exit from the statement sequence.
6397 -- Note: the list of Exception_Handlers can contain pragmas as well
6398 -- as actual handlers. In practice these pragmas can only occur at
6399 -- the start of the list, since any pragmas occurring later on will
6400 -- be included in the statement list of the corresponding handler.
6402 -- Note: although in the Ada syntax, the sequence of statements in
6403 -- a handled sequence of statements can only contain statements, we
6404 -- allow free mixing of declarations and statements in the resulting
6405 -- expanded tree. This is for example used to deal with the case of
6406 -- a cleanup procedure that must handle declarations as well as the
6407 -- statements of a block.
6409 -- N_Handled_Sequence_Of_Statements
6410 -- Sloc points to first token of first statement
6411 -- Statements (List3)
6412 -- End_Label (Node4) (set to Empty if expander generated)
6413 -- Exception_Handlers (List5) (set to No_List if none present)
6414 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6415 -- First_Real_Statement (Node2-Sem)
6417 -- Note: the parent always contains a Declarations field which contains
6418 -- declarations associated with the handled sequence of statements. This
6419 -- is true even in the case of an accept statement (see description of
6420 -- the N_Accept_Statement node).
6422 -- End_Label refers to the containing construct
6424 -----------------------------
6425 -- 11.2 Exception Handler --
6426 -----------------------------
6428 -- EXCEPTION_HANDLER ::=
6429 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6430 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6431 -- SEQUENCE_OF_STATEMENTS
6433 -- Note: choice parameter specification is not allowed in Ada 83 mode
6435 -- N_Exception_Handler
6436 -- Sloc points to WHEN
6437 -- Choice_Parameter (Node2) (set to Empty if not present)
6438 -- Exception_Choices (List4)
6439 -- Statements (List3)
6440 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6441 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6442 -- Local_Raise_Not_OK (Flag7-Sem)
6443 -- Has_Local_Raise (Flag8-Sem)
6445 ------------------------------------------
6446 -- 11.2 Choice parameter specification --
6447 ------------------------------------------
6449 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6451 ----------------------------
6452 -- 11.2 Exception Choice --
6453 ----------------------------
6455 -- EXCEPTION_CHOICE ::= exception_NAME | others
6457 -- Except in the case of OTHERS, no explicit node appears in the tree
6458 -- for exception choice. Instead the exception name appears directly.
6459 -- An OTHERS choice is represented by a N_Others_Choice node (see
6462 -- Note: for the exception choice created for an at end handler, the
6463 -- exception choice is an N_Others_Choice node with All_Others set.
6465 ---------------------------
6466 -- 11.3 Raise Statement --
6467 ---------------------------
6469 -- RAISE_STATEMENT ::= raise [exception_NAME];
6471 -- In Ada 2005, we have
6473 -- RAISE_STATEMENT ::=
6474 -- raise; | raise exception_NAME [with string_EXPRESSION];
6476 -- N_Raise_Statement
6477 -- Sloc points to RAISE
6478 -- Name (Node2) (set to Empty if no exception name present)
6479 -- Expression (Node3) (set to Empty if no expression present)
6480 -- From_At_End (Flag4-Sem)
6482 ----------------------------
6483 -- 11.3 Raise Expression --
6484 ----------------------------
6486 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6488 -- N_Raise_Expression
6489 -- Sloc points to RAISE
6490 -- Name (Node2) (always present)
6491 -- Expression (Node3) (set to Empty if no expression present)
6492 -- Convert_To_Return_False (Flag13-Sem)
6493 -- plus fields for expression
6495 -------------------------------
6496 -- 12.1 Generic Declaration --
6497 -------------------------------
6499 -- GENERIC_DECLARATION ::=
6500 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6502 ------------------------------------------
6503 -- 12.1 Generic Subprogram Declaration --
6504 ------------------------------------------
6506 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6507 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6508 -- [ASPECT_SPECIFICATIONS];
6510 -- Note: Generic_Formal_Declarations can include pragmas
6512 -- N_Generic_Subprogram_Declaration
6513 -- Sloc points to GENERIC
6514 -- Specification (Node1) subprogram specification
6515 -- Corresponding_Body (Node5-Sem)
6516 -- Generic_Formal_Declarations (List2) from generic formal part
6517 -- Parent_Spec (Node4-Sem)
6519 ---------------------------------------
6520 -- 12.1 Generic Package Declaration --
6521 ---------------------------------------
6523 -- GENERIC_PACKAGE_DECLARATION ::=
6524 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6525 -- [ASPECT_SPECIFICATIONS];
6527 -- Note: when we do generics right, the Activation_Chain_Entity entry
6528 -- for this node can be removed (since the expander won't see generic
6529 -- units any more)???.
6531 -- Note: Generic_Formal_Declarations can include pragmas
6533 -- N_Generic_Package_Declaration
6534 -- Sloc points to GENERIC
6535 -- Specification (Node1) package specification
6536 -- Corresponding_Body (Node5-Sem)
6537 -- Generic_Formal_Declarations (List2) from generic formal part
6538 -- Parent_Spec (Node4-Sem)
6539 -- Activation_Chain_Entity (Node3-Sem)
6541 -------------------------------
6542 -- 12.1 Generic Formal Part --
6543 -------------------------------
6545 -- GENERIC_FORMAL_PART ::=
6546 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6548 ------------------------------------------------
6549 -- 12.1 Generic Formal Parameter Declaration --
6550 ------------------------------------------------
6552 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6553 -- FORMAL_OBJECT_DECLARATION
6554 -- | FORMAL_TYPE_DECLARATION
6555 -- | FORMAL_SUBPROGRAM_DECLARATION
6556 -- | FORMAL_PACKAGE_DECLARATION
6558 ---------------------------------
6559 -- 12.3 Generic Instantiation --
6560 ---------------------------------
6562 -- GENERIC_INSTANTIATION ::=
6563 -- package DEFINING_PROGRAM_UNIT_NAME is
6564 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6565 -- [ASPECT_SPECIFICATIONS];
6566 -- | [[not] overriding]
6567 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6568 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6569 -- [ASPECT_SPECIFICATIONS];
6570 -- | [[not] overriding]
6571 -- function DEFINING_DESIGNATOR is
6572 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6573 -- [ASPECT_SPECIFICATIONS];
6575 -- N_Package_Instantiation
6576 -- Sloc points to PACKAGE
6577 -- Defining_Unit_Name (Node1)
6579 -- Generic_Associations (List3) (set to No_List if no
6580 -- generic actual part)
6581 -- Parent_Spec (Node4-Sem)
6582 -- Instance_Spec (Node5-Sem)
6583 -- ABE_Is_Certain (Flag18-Sem)
6585 -- N_Procedure_Instantiation
6586 -- Sloc points to PROCEDURE
6587 -- Defining_Unit_Name (Node1)
6589 -- Parent_Spec (Node4-Sem)
6590 -- Generic_Associations (List3) (set to No_List if no
6591 -- generic actual part)
6592 -- Instance_Spec (Node5-Sem)
6593 -- Must_Override (Flag14) set if overriding indicator present
6594 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6595 -- ABE_Is_Certain (Flag18-Sem)
6597 -- N_Function_Instantiation
6598 -- Sloc points to FUNCTION
6599 -- Defining_Unit_Name (Node1)
6601 -- Generic_Associations (List3) (set to No_List if no
6602 -- generic actual part)
6603 -- Parent_Spec (Node4-Sem)
6604 -- Instance_Spec (Node5-Sem)
6605 -- Must_Override (Flag14) set if overriding indicator present
6606 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6607 -- ABE_Is_Certain (Flag18-Sem)
6609 -- Note: overriding indicator is an Ada 2005 feature
6611 -------------------------------
6612 -- 12.3 Generic Actual Part --
6613 -------------------------------
6615 -- GENERIC_ACTUAL_PART ::=
6616 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6618 -------------------------------
6619 -- 12.3 Generic Association --
6620 -------------------------------
6622 -- GENERIC_ASSOCIATION ::=
6623 -- [generic_formal_parameter_SELECTOR_NAME =>]
6625 -- Note: unlike the procedure call case, a generic association node
6626 -- is generated for every association, even if no formal parameter
6627 -- selector name is present. In this case the parser will leave the
6628 -- Selector_Name field set to Empty, to be filled in later by the
6631 -- In Ada 2005, a formal may be associated with a box, if the
6632 -- association is part of the list of actuals for a formal package.
6633 -- If the association is given by OTHERS => <>, the association is
6634 -- an N_Others_Choice.
6636 -- N_Generic_Association
6637 -- Sloc points to first token of generic association
6638 -- Selector_Name (Node2) (set to Empty if no formal
6639 -- parameter selector name)
6640 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6641 -- Box_Present (Flag15) (for formal_package associations with a box)
6643 ---------------------------------------------
6644 -- 12.3 Explicit Generic Actual Parameter --
6645 ---------------------------------------------
6647 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6648 -- EXPRESSION | variable_NAME | subprogram_NAME
6649 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
6651 -------------------------------------
6652 -- 12.4 Formal Object Declaration --
6653 -------------------------------------
6655 -- FORMAL_OBJECT_DECLARATION ::=
6656 -- DEFINING_IDENTIFIER_LIST :
6657 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6658 -- [ASPECT_SPECIFICATIONS];
6659 -- | DEFINING_IDENTIFIER_LIST :
6660 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6661 -- [ASPECT_SPECIFICATIONS];
6663 -- Although the syntax allows multiple identifiers in the list, the
6664 -- semantics is as though successive declarations were given with
6665 -- identical type definition and expression components. To simplify
6666 -- semantic processing, the parser represents a multiple declaration
6667 -- case as a sequence of single declarations, using the More_Ids and
6668 -- Prev_Ids flags to preserve the original source form as described
6669 -- in the section on "Handling of Defining Identifier Lists".
6671 -- N_Formal_Object_Declaration
6672 -- Sloc points to first identifier
6673 -- Defining_Identifier (Node1)
6674 -- In_Present (Flag15)
6675 -- Out_Present (Flag17)
6676 -- Null_Exclusion_Present (Flag11) (set to False if not present)
6677 -- Subtype_Mark (Node4) (set to Empty if not present)
6678 -- Access_Definition (Node3) (set to Empty if not present)
6679 -- Default_Expression (Node5) (set to Empty if no default expression)
6680 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6681 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6683 -----------------------------------
6684 -- 12.5 Formal Type Declaration --
6685 -----------------------------------
6687 -- FORMAL_TYPE_DECLARATION ::=
6688 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6689 -- is FORMAL_TYPE_DEFINITION
6690 -- [ASPECT_SPECIFICATIONS];
6691 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
6693 -- N_Formal_Type_Declaration
6694 -- Sloc points to TYPE
6695 -- Defining_Identifier (Node1)
6696 -- Formal_Type_Definition (Node3)
6697 -- Discriminant_Specifications (List4) (set to No_List if no
6698 -- discriminant part)
6699 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6701 ----------------------------------
6702 -- 12.5 Formal type definition --
6703 ----------------------------------
6705 -- FORMAL_TYPE_DEFINITION ::=
6706 -- FORMAL_PRIVATE_TYPE_DEFINITION
6707 -- | FORMAL_DERIVED_TYPE_DEFINITION
6708 -- | FORMAL_DISCRETE_TYPE_DEFINITION
6709 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6710 -- | FORMAL_MODULAR_TYPE_DEFINITION
6711 -- | FORMAL_FLOATING_POINT_DEFINITION
6712 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6713 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6714 -- | FORMAL_ARRAY_TYPE_DEFINITION
6715 -- | FORMAL_ACCESS_TYPE_DEFINITION
6716 -- | FORMAL_INTERFACE_TYPE_DEFINITION
6717 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
6719 -- The Ada 2012 syntax introduces two new non-terminals:
6720 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
6721 -- the latter category. Here we introduce an incomplete type definition
6722 -- in order to preserve as much as possible the existing structure.
6724 ---------------------------------------------
6725 -- 12.5.1 Formal Private Type Definition --
6726 ---------------------------------------------
6728 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
6729 -- [[abstract] tagged] [limited] private
6731 -- Note: TAGGED is not allowed in Ada 83 mode
6733 -- N_Formal_Private_Type_Definition
6734 -- Sloc points to PRIVATE
6735 -- Uninitialized_Variable (Node3-Sem)
6736 -- Abstract_Present (Flag4)
6737 -- Tagged_Present (Flag15)
6738 -- Limited_Present (Flag17)
6740 --------------------------------------------
6741 -- 12.5.1 Formal Derived Type Definition --
6742 --------------------------------------------
6744 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
6745 -- [abstract] [limited | synchronized]
6746 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6747 -- Note: this construct is not allowed in Ada 83 mode
6749 -- N_Formal_Derived_Type_Definition
6750 -- Sloc points to NEW
6751 -- Subtype_Mark (Node4)
6752 -- Private_Present (Flag15)
6753 -- Abstract_Present (Flag4)
6754 -- Limited_Present (Flag17)
6755 -- Synchronized_Present (Flag7)
6756 -- Interface_List (List2) (set to No_List if none)
6758 -----------------------------------------------
6759 -- 12.5.1 Formal Incomplete Type Definition --
6760 -----------------------------------------------
6762 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
6764 -- N_Formal_Incomplete_Type_Definition
6765 -- Sloc points to identifier of parent
6766 -- Tagged_Present (Flag15)
6768 ---------------------------------------------
6769 -- 12.5.2 Formal Discrete Type Definition --
6770 ---------------------------------------------
6772 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6774 -- N_Formal_Discrete_Type_Definition
6777 ---------------------------------------------------
6778 -- 12.5.2 Formal Signed Integer Type Definition --
6779 ---------------------------------------------------
6781 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6783 -- N_Formal_Signed_Integer_Type_Definition
6784 -- Sloc points to RANGE
6786 --------------------------------------------
6787 -- 12.5.2 Formal Modular Type Definition --
6788 --------------------------------------------
6790 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6792 -- N_Formal_Modular_Type_Definition
6793 -- Sloc points to MOD
6795 ----------------------------------------------
6796 -- 12.5.2 Formal Floating Point Definition --
6797 ----------------------------------------------
6799 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6801 -- N_Formal_Floating_Point_Definition
6802 -- Sloc points to DIGITS
6804 ----------------------------------------------------
6805 -- 12.5.2 Formal Ordinary Fixed Point Definition --
6806 ----------------------------------------------------
6808 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6810 -- N_Formal_Ordinary_Fixed_Point_Definition
6811 -- Sloc points to DELTA
6813 ---------------------------------------------------
6814 -- 12.5.2 Formal Decimal Fixed Point Definition --
6815 ---------------------------------------------------
6817 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6819 -- Note: formal decimal fixed point definition not allowed in Ada 83
6821 -- N_Formal_Decimal_Fixed_Point_Definition
6822 -- Sloc points to DELTA
6824 ------------------------------------------
6825 -- 12.5.3 Formal Array Type Definition --
6826 ------------------------------------------
6828 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6830 -------------------------------------------
6831 -- 12.5.4 Formal Access Type Definition --
6832 -------------------------------------------
6834 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6836 ----------------------------------------------
6837 -- 12.5.5 Formal Interface Type Definition --
6838 ----------------------------------------------
6840 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6842 -----------------------------------------
6843 -- 12.6 Formal Subprogram Declaration --
6844 -----------------------------------------
6846 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6847 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6848 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6850 --------------------------------------------------
6851 -- 12.6 Formal Concrete Subprogram Declaration --
6852 --------------------------------------------------
6854 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6855 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6856 -- [ASPECT_SPECIFICATIONS];
6858 -- N_Formal_Concrete_Subprogram_Declaration
6859 -- Sloc points to WITH
6860 -- Specification (Node1)
6861 -- Default_Name (Node2) (set to Empty if no subprogram default)
6862 -- Box_Present (Flag15)
6864 -- Note: if no subprogram default is present, then Name is set
6865 -- to Empty, and Box_Present is False.
6867 --------------------------------------------------
6868 -- 12.6 Formal Abstract Subprogram Declaration --
6869 --------------------------------------------------
6871 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6872 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6873 -- [ASPECT_SPECIFICATIONS];
6875 -- N_Formal_Abstract_Subprogram_Declaration
6876 -- Sloc points to WITH
6877 -- Specification (Node1)
6878 -- Default_Name (Node2) (set to Empty if no subprogram default)
6879 -- Box_Present (Flag15)
6881 -- Note: if no subprogram default is present, then Name is set
6882 -- to Empty, and Box_Present is False.
6884 ------------------------------
6885 -- 12.6 Subprogram Default --
6886 ------------------------------
6888 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6890 -- There is no separate node in the tree for a subprogram default.
6891 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6892 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6893 -- default name or box indication, as needed.
6895 ------------------------
6896 -- 12.6 Default Name --
6897 ------------------------
6899 -- DEFAULT_NAME ::= NAME
6901 --------------------------------------
6902 -- 12.7 Formal Package Declaration --
6903 --------------------------------------
6905 -- FORMAL_PACKAGE_DECLARATION ::=
6906 -- with package DEFINING_IDENTIFIER
6907 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
6908 -- [ASPECT_SPECIFICATIONS];
6910 -- Note: formal package declarations not allowed in Ada 83 mode
6912 -- N_Formal_Package_Declaration
6913 -- Sloc points to WITH
6914 -- Defining_Identifier (Node1)
6916 -- Generic_Associations (List3) (set to No_List if (<>) case or
6917 -- empty generic actual part)
6918 -- Box_Present (Flag15)
6919 -- Instance_Spec (Node5-Sem)
6920 -- ABE_Is_Certain (Flag18-Sem)
6922 --------------------------------------
6923 -- 12.7 Formal Package Actual Part --
6924 --------------------------------------
6926 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6928 -- | [GENERIC_ACTUAL_PART]
6929 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6931 -- FORMAL_PACKAGE_ASSOCIATION ::=
6932 -- GENERIC_ASSOCIATION
6933 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6935 -- There is no explicit node in the tree for a formal package actual
6936 -- part. Instead the information appears in the parent node (i.e. the
6937 -- formal package declaration node itself).
6939 -- There is no explicit node for a formal package association. All of
6940 -- them are represented either by a generic association, possibly with
6941 -- Box_Present, or by an N_Others_Choice.
6943 ---------------------------------
6944 -- 13.1 Representation clause --
6945 ---------------------------------
6947 -- REPRESENTATION_CLAUSE ::=
6948 -- ATTRIBUTE_DEFINITION_CLAUSE
6949 -- | ENUMERATION_REPRESENTATION_CLAUSE
6950 -- | RECORD_REPRESENTATION_CLAUSE
6953 ----------------------
6954 -- 13.1 Local Name --
6955 ----------------------
6959 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6960 -- | library_unit_NAME
6962 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6963 -- as an attribute reference, which has essentially the same form.
6965 ---------------------------------------
6966 -- 13.3 Attribute definition clause --
6967 ---------------------------------------
6969 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6970 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6971 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6973 -- In Ada 83, the expression must be a simple expression and the
6974 -- local name must be a direct name.
6976 -- Note: the only attribute definition clause that is processed by
6977 -- gigi is an address clause. For all other cases, the information
6978 -- is extracted by the front end and either results in setting entity
6979 -- information, e.g. Esize for the Size clause, or in appropriate
6980 -- expansion actions (e.g. in the case of Storage_Size).
6982 -- For an address clause, Gigi constructs the appropriate addressing
6983 -- code. It also ensures that no aliasing optimizations are made
6984 -- for the object for which the address clause appears.
6986 -- Note: for an address clause used to achieve an overlay:
6990 -- for B'Address use A'Address;
6992 -- the above rule means that Gigi will ensure that no optimizations
6993 -- will be made for B that would violate the implementation advice
6994 -- of RM 13.3(19). However, this advice applies only to B and not
6995 -- to A, which seems unfortunate. The GNAT front end will mark the
6996 -- object A as volatile to also prevent unwanted optimization
6997 -- assumptions based on no aliasing being made for B.
6999 -- N_Attribute_Definition_Clause
7000 -- Sloc points to FOR
7001 -- Name (Node2) the local name
7002 -- Chars (Name1) the identifier name from the attribute designator
7003 -- Expression (Node3) the expression or name
7004 -- Entity (Node4-Sem)
7005 -- Next_Rep_Item (Node5-Sem)
7006 -- From_At_Mod (Flag4-Sem)
7007 -- Check_Address_Alignment (Flag11-Sem)
7008 -- From_Aspect_Specification (Flag13-Sem)
7009 -- Is_Delayed_Aspect (Flag14-Sem)
7010 -- Address_Warning_Posted (Flag18-Sem)
7012 -- Note: if From_Aspect_Specification is set, then Sloc points to the
7013 -- aspect name, and Entity is resolved already to reference the entity
7014 -- to which the aspect applies.
7016 -----------------------------------
7017 -- 13.3.1 Aspect Specifications --
7018 -----------------------------------
7020 -- We modify the RM grammar here, the RM grammar is:
7022 -- ASPECT_SPECIFICATION ::=
7023 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7024 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
7026 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7028 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7030 -- That's inconvenient, since there is no non-terminal name for a single
7031 -- entry in the list of aspects. So we use this grammar instead:
7033 -- ASPECT_SPECIFICATIONS ::=
7034 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7036 -- ASPECT_SPECIFICATION =>
7037 -- ASPECT_MARK [=> ASPECT_DEFINITION]
7039 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7041 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7043 -- See separate package Aspects for details on the incorporation of
7044 -- these nodes into the tree, and how aspect specifications for a given
7045 -- declaration node are associated with that node.
7047 -- N_Aspect_Specification
7048 -- Sloc points to aspect identifier
7049 -- Identifier (Node1) aspect identifier
7050 -- Aspect_Rep_Item (Node2-Sem)
7051 -- Expression (Node3) Aspect_Definition (set to Empty if none)
7052 -- Entity (Node4-Sem) entity to which the aspect applies
7053 -- Class_Present (Flag6) Set if 'Class present
7054 -- Next_Rep_Item (Node5-Sem)
7055 -- Split_PPC (Flag17) Set if split pre/post attribute
7056 -- Is_Boolean_Aspect (Flag16-Sem)
7057 -- Is_Checked (Flag11-Sem)
7058 -- Is_Delayed_Aspect (Flag14-Sem)
7059 -- Is_Disabled (Flag15-Sem)
7060 -- Is_Ignored (Flag9-Sem)
7062 -- Note: Aspect_Specification is an Ada 2012 feature
7064 -- Note: The Identifier serves to identify the aspect involved (it
7065 -- is the aspect whose name corresponds to the Chars field). This
7066 -- means that the other fields of this identifier are unused, and
7067 -- in particular we use the Entity field of this identifier to save
7068 -- a copy of the expression for visibility analysis, see spec of
7069 -- Sem_Ch13 for full details of this usage.
7071 -- In the case of aspects of the form xxx'Class, the aspect identifier
7072 -- is for xxx, and Class_Present is set to True.
7074 -- Note: When a Pre or Post aspect specification is processed, it is
7075 -- broken into AND THEN sections. The left most section has Split_PPC
7076 -- set to False, indicating that it is the original specification (e.g.
7077 -- for posting errors). For the other sections, Split_PPC is set True.
7079 ---------------------------------------------
7080 -- 13.4 Enumeration representation clause --
7081 ---------------------------------------------
7083 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7084 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7086 -- In Ada 83, the name must be a direct name
7088 -- N_Enumeration_Representation_Clause
7089 -- Sloc points to FOR
7090 -- Identifier (Node1) direct name
7091 -- Array_Aggregate (Node3)
7092 -- Next_Rep_Item (Node5-Sem)
7094 ---------------------------------
7095 -- 13.4 Enumeration aggregate --
7096 ---------------------------------
7098 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7100 ------------------------------------------
7101 -- 13.5.1 Record representation clause --
7102 ------------------------------------------
7104 -- RECORD_REPRESENTATION_CLAUSE ::=
7105 -- for first_subtype_LOCAL_NAME use
7106 -- record [MOD_CLAUSE]
7107 -- {COMPONENT_CLAUSE}
7110 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7111 -- replaced by a corresponding Alignment attribute definition clause).
7113 -- Note: Component_Clauses can include pragmas
7115 -- N_Record_Representation_Clause
7116 -- Sloc points to FOR
7117 -- Identifier (Node1) direct name
7118 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7119 -- Component_Clauses (List3)
7120 -- Next_Rep_Item (Node5-Sem)
7122 ------------------------------
7123 -- 13.5.1 Component clause --
7124 ------------------------------
7126 -- COMPONENT_CLAUSE ::=
7127 -- component_LOCAL_NAME at POSITION
7128 -- range FIRST_BIT .. LAST_BIT;
7130 -- N_Component_Clause
7131 -- Sloc points to AT
7132 -- Component_Name (Node1) points to Name or Attribute_Reference
7134 -- First_Bit (Node3)
7137 ----------------------
7138 -- 13.5.1 Position --
7139 ----------------------
7141 -- POSITION ::= static_EXPRESSION
7143 -----------------------
7144 -- 13.5.1 First_Bit --
7145 -----------------------
7147 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7149 ----------------------
7150 -- 13.5.1 Last_Bit --
7151 ----------------------
7153 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7155 --------------------------
7156 -- 13.8 Code statement --
7157 --------------------------
7159 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7161 -- Note: in GNAT, the qualified expression has the form
7163 -- Asm_Insn'(Asm (...));
7165 -- See package System.Machine_Code in file s-maccod.ads for details on
7166 -- the allowed parameters to Asm. There are two ways this node can
7167 -- arise, as a code statement, in which case the expression is the
7168 -- qualified expression, or as a result of the expansion of an intrinsic
7169 -- call to the Asm or Asm_Input procedure.
7172 -- Sloc points to first token of the expression
7173 -- Expression (Node3)
7175 -- Note: package Exp_Code contains an abstract functional interface
7176 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7178 ------------------------
7179 -- 13.12 Restriction --
7180 ------------------------
7183 -- restriction_IDENTIFIER
7184 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7186 -- There is no explicit node for restrictions. Instead the restriction
7187 -- appears in normal pragma syntax as a pragma argument association,
7188 -- which has the same syntactic form.
7190 --------------------------
7191 -- B.2 Shift Operators --
7192 --------------------------
7194 -- Calls to the intrinsic shift functions are converted to one of
7195 -- the following shift nodes, which have the form of normal binary
7196 -- operator names. Note that for a given shift operation, one node
7197 -- covers all possible types, as for normal operators.
7199 -- Note: it is perfectly permissible for the expander to generate
7200 -- shift operation nodes directly, in which case they will be analyzed
7201 -- and parsed in the usual manner.
7203 -- Sprint syntax: shift-function-name!(expr, count)
7205 -- Note: the Left_Opnd field holds the first argument (the value to
7206 -- be shifted). The Right_Opnd field holds the second argument (the
7207 -- shift count). The Chars field is the name of the intrinsic function.
7210 -- Sloc points to the function name
7211 -- plus fields for binary operator
7212 -- plus fields for expression
7213 -- Shift_Count_OK (Flag4-Sem)
7215 -- N_Op_Rotate_Right
7216 -- Sloc points to the function name
7217 -- plus fields for binary operator
7218 -- plus fields for expression
7219 -- Shift_Count_OK (Flag4-Sem)
7222 -- Sloc points to the function name
7223 -- plus fields for binary operator
7224 -- plus fields for expression
7225 -- Shift_Count_OK (Flag4-Sem)
7227 -- N_Op_Shift_Right_Arithmetic
7228 -- Sloc points to the function name
7229 -- plus fields for binary operator
7230 -- plus fields for expression
7231 -- Shift_Count_OK (Flag4-Sem)
7234 -- Sloc points to the function name
7235 -- plus fields for binary operator
7236 -- plus fields for expression
7237 -- Shift_Count_OK (Flag4-Sem)
7239 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7240 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7242 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7243 -- always less than the word size if Modify_Tree_For_C mode is set.
7245 --------------------------
7246 -- Obsolescent Features --
7247 --------------------------
7249 -- The syntax descriptions and tree nodes for obsolescent features are
7250 -- grouped together, corresponding to their location in appendix I in
7251 -- the RM. However, parsing and semantic analysis for these constructs
7252 -- is located in an appropriate chapter (see individual notes).
7254 ---------------------------
7255 -- J.3 Delta Constraint --
7256 ---------------------------
7258 -- Note: the parse routine for this construct is located in section
7259 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7260 -- where delta constraint logically belongs.
7262 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7264 -- N_Delta_Constraint
7265 -- Sloc points to DELTA
7266 -- Delta_Expression (Node3)
7267 -- Range_Constraint (Node4) (set to Empty if not present)
7269 --------------------
7271 --------------------
7273 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7275 -- Note: the parse routine for this construct is located in Par-Ch13,
7276 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7277 -- belongs if it were not obsolescent.
7279 -- Note: in Ada 83 the expression must be a simple expression
7281 -- Gigi restriction: This node never appears, it is rewritten as an
7282 -- address attribute definition clause.
7285 -- Sloc points to FOR
7286 -- Identifier (Node1)
7287 -- Expression (Node3)
7289 ---------------------
7290 -- J.8 Mod clause --
7291 ---------------------
7293 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7295 -- Note: the parse routine for this construct is located in Par-Ch13,
7296 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7297 -- belongs if it were not obsolescent.
7299 -- Note: in Ada 83, the expression must be a simple expression
7301 -- Gigi restriction: this node never appears. It is replaced
7302 -- by a corresponding Alignment attribute definition clause.
7304 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7305 -- its name has "clause" in it. This is rather strange, but is quite
7306 -- definitely specified. The pragmas before are collected in the
7307 -- Pragmas_Before field of the mod clause node itself, and pragmas
7308 -- after are simply swallowed up in the list of component clauses.
7311 -- Sloc points to AT
7312 -- Expression (Node3)
7313 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7315 --------------------
7316 -- Semantic Nodes --
7317 --------------------
7319 -- These semantic nodes are used to hold additional semantic information.
7320 -- They are inserted into the tree as a result of semantic processing.
7321 -- Although there are no legitimate source syntax constructions that
7322 -- correspond directly to these nodes, we need a source syntax for the
7323 -- reconstructed tree printed by Sprint, and the node descriptions here
7324 -- show this syntax.
7326 ------------------------
7327 -- Compound Statement --
7328 ------------------------
7330 -- This node is created by the analyzer/expander to handle some
7331 -- expansion cases where a sequence of actions needs to be captured
7332 -- within a single node (which acts as a container and allows the
7333 -- entire list of actions to be moved around as a whole) appearing
7334 -- in a sequence of statements.
7336 -- This is the statement counterpart to the expression node
7337 -- N_Expression_With_Actions.
7339 -- The required semantics is that the set of actions is executed in
7340 -- the order in which it appears, as though they appeared by themselves
7341 -- in the enclosing list of declarations of statements. Unlike what
7342 -- happens when using an N_Block_Statement, no new scope is introduced.
7344 -- Note: for the time being, this is used only as a transient
7345 -- representation during expansion, and all compound statement nodes
7346 -- must be exploded back to their constituent statements before handing
7347 -- the tree to the back end.
7349 -- Sprint syntax: do
7356 -- N_Compound_Statement
7363 -- This node is used to hold the various parts of an entry, subprogram
7364 -- [body] or package [body] contract, in particular:
7365 -- Abstract states declared by a package declaration
7366 -- Contract cases that apply to a subprogram
7367 -- Dependency relations of inputs and output of a subprogram
7368 -- Global annotations classifying data as input or output
7369 -- Initialization sequences for a package declaration
7370 -- Pre- and postconditions that apply to a subprogram
7372 -- The node appears in an entry and [generic] subprogram [body] entity.
7374 -- Sprint syntax: <none> as the node should not appear in the tree, but
7375 -- only attached to an entry or [generic] subprogram
7379 -- Sloc points to the subprogram's name
7380 -- Pre_Post_Conditions (Node1) (set to Empty if none)
7381 -- Contract_Test_Cases (Node2) (set to Empty if none)
7382 -- Classifications (Node3) (set to Empty if none)
7384 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7385 -- to pre- and postconditions associated with an entry or a subprogram
7386 -- [body or stub]. The pragmas can either come from source or be the
7387 -- byproduct of aspect expansion. Currently the following pragmas appear
7394 -- The ordering in the list is in LIFO fashion.
7396 -- Note that there might be multiple preconditions or postconditions
7397 -- in this list, either because they come from separate pragmas in the
7398 -- source, or because a Pre (resp. Post) aspect specification has been
7399 -- broken into AND THEN sections. See Split_PPC for details.
7401 -- Contract_Test_Cases contains a collection of pragmas that correspond
7402 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7403 -- list is in LIFO fashion.
7405 -- Classifications contains pragmas that either declare, categorize or
7406 -- establish dependencies between subprogram or package inputs and
7407 -- outputs. Currently the following pragmas appear in this list:
7415 -- Initial_Condition
7421 -- The ordering is in LIFO fashion.
7427 -- The N_Expanded_Name node is used to represent a selected component
7428 -- name that has been resolved to an expanded name. The semantic phase
7429 -- replaces N_Selected_Component nodes that represent names by the use
7430 -- of this node, leaving the N_Selected_Component node used only when
7431 -- the prefix is a record or protected type.
7433 -- The fields of the N_Expanded_Name node are layed out identically
7434 -- to those of the N_Selected_Component node, allowing conversion of
7435 -- an expanded name node to a selected component node to be done
7436 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7438 -- There is no special sprint syntax for an expanded name
7441 -- Sloc points to the period
7442 -- Chars (Name1) copy of Chars field of selector name
7444 -- Selector_Name (Node2)
7445 -- Entity (Node4-Sem)
7446 -- Associated_Node (Node4-Sem)
7447 -- Has_Private_View (Flag11-Sem) set in generic units.
7448 -- Redundant_Use (Flag13-Sem)
7449 -- Atomic_Sync_Required (Flag14-Sem)
7450 -- plus fields for expression
7452 -----------------------------
7453 -- Expression With Actions --
7454 -----------------------------
7456 -- This node is created by the analyzer/expander to handle some
7457 -- expansion cases, notably short circuit forms where there are
7458 -- actions associated with the right-hand side operand.
7460 -- The N_Expression_With_Actions node represents an expression with
7461 -- an associated set of actions (which are executable statements and
7462 -- declarations, as might occur in a handled statement sequence).
7464 -- The required semantics is that the set of actions is executed in
7465 -- the order in which it appears just before the expression is
7466 -- evaluated (and these actions must only be executed if the value
7467 -- of the expression is evaluated). The node is considered to be
7468 -- a subexpression, whose value is the value of the Expression after
7469 -- executing all the actions.
7471 -- If the actions contain declarations, then these declarations may
7472 -- be referenced within the expression. However note that there is
7473 -- no proper scope associated with the expression-with-action, so the
7474 -- back-end will elaborate them in the context of the enclosing scope.
7476 -- Sprint syntax: do
7481 -- in expression end
7483 -- N_Expression_With_Actions
7485 -- Expression (Node3)
7486 -- plus fields for expression
7488 -- Note: In the final generated tree presented to the code generator,
7489 -- the actions list is always non-null, since there is no point in this
7490 -- node if the actions are Empty. During semantic analysis there are
7491 -- cases where it is convenient to temporarily generate an empty actions
7492 -- list. This arises in cases where we create such an empty actions
7493 -- list, and it may or may not end up being a place where additional
7494 -- actions are inserted. The expander removes such empty cases after
7495 -- the expression of the node is fully analyzed and expanded, at which
7496 -- point it is safe to remove it, since no more actions can be inserted.
7498 -- Note: In Modify_Tree_For_C, we never generate any declarations in
7499 -- the action list, which can contain only non-declarative statements.
7501 --------------------
7502 -- Free Statement --
7503 --------------------
7505 -- The N_Free_Statement node is generated as a result of a call to an
7506 -- instantiation of Unchecked_Deallocation. The instantiation of this
7507 -- generic is handled specially and generates this node directly.
7509 -- Sprint syntax: free expression
7512 -- Sloc is copied from the unchecked deallocation call
7513 -- Expression (Node3) argument to unchecked deallocation call
7514 -- Storage_Pool (Node1-Sem)
7515 -- Procedure_To_Call (Node2-Sem)
7516 -- Actual_Designated_Subtype (Node4-Sem)
7518 -- Note: in the case where a debug source file is generated, the Sloc
7519 -- for this node points to the FREE keyword in the Sprint file output.
7525 -- This node marks the point in a declarative part at which an entity
7526 -- declared therein becomes frozen. The expander places initialization
7527 -- procedures for types at those points. Gigi uses the freezing point
7528 -- to elaborate entities that may depend on previous private types.
7530 -- See the section in Einfo "Delayed Freezing and Elaboration" for
7531 -- a full description of the use of this node.
7533 -- The Entity field points back to the entity for the type (whose
7534 -- Freeze_Node field points back to this freeze node).
7536 -- The Actions field contains a list of declarations and statements
7537 -- generated by the expander which are associated with the freeze
7538 -- node, and are elaborated as though the freeze node were replaced
7539 -- by this sequence of actions.
7541 -- Note: the Sloc field in the freeze node references a construct
7542 -- associated with the freezing point. This is used for posting
7543 -- messages in some error/warning situations, e.g. the case where
7544 -- a primitive operation of a tagged type is declared too late.
7546 -- Sprint syntax: freeze entity-name [
7551 -- Sloc points near freeze point (see above special note)
7552 -- Entity (Node4-Sem)
7553 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7554 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7555 -- Actions (List1) (set to No_List if no freeze actions)
7556 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7558 -- The Actions field holds actions associated with the freeze. These
7559 -- actions are elaborated at the point where the type is frozen.
7561 -- Note: in the case where a debug source file is generated, the Sloc
7562 -- for this node points to the FREEZE keyword in the Sprint file output.
7564 ---------------------------
7565 -- Freeze Generic Entity --
7566 ---------------------------
7568 -- The freeze point of an entity indicates the point at which the
7569 -- information needed to generate code for the entity is complete.
7570 -- The freeze node for an entity triggers expander activities, such as
7571 -- build initialization procedures, and backend activities, such as
7572 -- completing the elaboration of packages.
7574 -- For entities declared within a generic unit, for which no code is
7575 -- generated, the freeze point is not equally meaningful. However, in
7576 -- Ada 2012 several semantic checks on declarations must be delayed to
7577 -- the freeze point, and we need to include such a mark in the tree to
7578 -- trigger these checks. The Freeze_Generic_Entity node plays no other
7579 -- role, and is ignored by the expander and the back-end.
7581 -- Sprint syntax: freeze_generic entity-name
7583 -- N_Freeze_Generic_Entity
7584 -- Sloc points near freeze point
7585 -- Entity (Node4-Sem)
7587 --------------------------------
7588 -- Implicit Label Declaration --
7589 --------------------------------
7591 -- An implicit label declaration is created for every occurrence of a
7592 -- label on a statement or a label on a block or loop. It is chained
7593 -- in the declarations of the innermost enclosing block as specified
7594 -- in RM section 5.1 (3).
7596 -- The Defining_Identifier is the actual identifier for the statement
7597 -- identifier. Note that the occurrence of the label is a reference, NOT
7598 -- the defining occurrence. The defining occurrence occurs at the head
7599 -- of the innermost enclosing block, and is represented by this node.
7601 -- Note: from the grammar, this might better be called an implicit
7602 -- statement identifier declaration, but the term we choose seems
7603 -- friendlier, since at least informally statement identifiers are
7604 -- called labels in both cases (i.e. when used in labels, and when
7605 -- used as the identifiers of blocks and loops).
7607 -- Note: although this is logically a semantic node, since it does not
7608 -- correspond directly to a source syntax construction, these nodes are
7609 -- actually created by the parser in a post pass done just after parsing
7610 -- is complete, before semantic analysis is started (see Par.Labl).
7612 -- Sprint syntax: labelname : label;
7614 -- N_Implicit_Label_Declaration
7615 -- Sloc points to the << token for a statement identifier, or to the
7616 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
7617 -- Defining_Identifier (Node1)
7618 -- Label_Construct (Node2-Sem)
7620 -- Note: in the case where a debug source file is generated, the Sloc
7621 -- for this node points to the label name in the generated declaration.
7623 ---------------------
7624 -- Itype Reference --
7625 ---------------------
7627 -- This node is used to create a reference to an Itype. The only purpose
7628 -- is to make sure the Itype is defined if this is the first reference.
7630 -- A typical use of this node is when an Itype is to be referenced in
7631 -- two branches of an IF statement. In this case it is important that
7632 -- the first use of the Itype not be inside the conditional, since then
7633 -- it might not be defined if the other branch of the IF is taken, in
7634 -- the case where the definition generates elaboration code.
7636 -- The Itype field points to the referenced Itype
7638 -- Sprint syntax: reference itype-name
7640 -- N_Itype_Reference
7641 -- Sloc points to the node generating the reference
7642 -- Itype (Node1-Sem)
7644 -- Note: in the case where a debug source file is generated, the Sloc
7645 -- for this node points to the REFERENCE keyword in the file output.
7647 ---------------------
7648 -- Raise xxx Error --
7649 ---------------------
7651 -- One of these nodes is created during semantic analysis to replace
7652 -- a node for an expression that is determined to definitely raise
7653 -- the corresponding exception.
7655 -- The N_Raise_xxx_Error node may also stand alone in place
7656 -- of a declaration or statement, in which case it simply causes
7657 -- the exception to be raised (i.e. it is equivalent to a raise
7658 -- statement that raises the corresponding exception). This use
7659 -- is distinguished by the fact that the Etype in this case is
7660 -- Standard_Void_Type; in the subexpression case, the Etype is the
7661 -- same as the type of the subexpression which it replaces.
7663 -- If Condition is empty, then the raise is unconditional. If the
7664 -- Condition field is non-empty, it is a boolean expression which
7665 -- is first evaluated, and the exception is raised only if the
7666 -- value of the expression is True. In the unconditional case, the
7667 -- creation of this node is usually accompanied by a warning message
7668 -- error. The creation of this node will usually be accompanied by a
7669 -- message (unless it appears within the right operand of a short
7670 -- circuit form whose left argument is static and decisively
7671 -- eliminates elaboration of the raise operation. The condition field
7672 -- can ONLY be present when the node is used as a statement form, it
7673 -- may NOT be present in the case where the node appears within an
7676 -- The exception is generated with a message that contains the
7677 -- file name and line number, and then appended text. The Reason
7678 -- code shows the text to be added. The Reason code is an element
7679 -- of the type Types.RT_Exception_Code, and indicates both the
7680 -- message to be added, and the exception to be raised (which must
7681 -- match the node type). The value is stored by storing a Uint which
7682 -- is the Pos value of the enumeration element in this type.
7684 -- Gigi restriction: This expander ensures that the type of the
7685 -- Condition field is always Standard.Boolean, even if the type
7686 -- in the source is some non-standard boolean type.
7688 -- Sprint syntax: [xxx_error "msg"]
7689 -- or: [xxx_error when condition "msg"]
7691 -- N_Raise_Constraint_Error
7692 -- Sloc references related construct
7693 -- Condition (Node1) (set to Empty if no condition)
7695 -- plus fields for expression
7697 -- N_Raise_Program_Error
7698 -- Sloc references related construct
7699 -- Condition (Node1) (set to Empty if no condition)
7701 -- plus fields for expression
7703 -- N_Raise_Storage_Error
7704 -- Sloc references related construct
7705 -- Condition (Node1) (set to Empty if no condition)
7707 -- plus fields for expression
7709 -- Note: Sloc is copied from the expression generating the exception.
7710 -- In the case where a debug source file is generated, the Sloc for
7711 -- this node points to the left bracket in the Sprint file output.
7713 -- Note: the back end may be required to translate these nodes into
7714 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7716 ---------------------------------------------
7717 -- Optimization of Exception Raise to Goto --
7718 ---------------------------------------------
7720 -- In some cases, the front end will determine that any exception raised
7721 -- by the back end for a certain exception should be transformed into a
7724 -- There are three kinds of exceptions raised by the back end (note that
7725 -- for this purpose we consider gigi to be part of the back end in the
7728 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
7729 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
7730 -- 3. Other cases not specifically marked by the front end
7732 -- Normally all such exceptions are translated into calls to the proper
7733 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
7734 -- and the exception message.
7736 -- The front end may determine that for a particular sequence of code,
7737 -- exceptions in any of these three categories for a particular builtin
7738 -- exception should result in a goto, rather than a call to Rcheck_xx.
7739 -- The exact sequence to be generated is:
7741 -- Local_Raise (exception'Identity);
7744 -- The front end marks such a sequence of code by bracketing it with
7745 -- push and pop nodes:
7747 -- N_Push_xxx_Label (referencing the label)
7749 -- (code where transformation is expected for exception xxx)
7753 -- The use of push/pop reflects the fact that such regions can properly
7754 -- nest, and one special case is a subregion in which no transformation
7755 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7756 -- Exception_Label field is Empty.
7758 -- N_Push_Constraint_Error_Label
7759 -- Sloc references first statement in region covered
7760 -- Exception_Label (Node5-Sem)
7762 -- N_Push_Program_Error_Label
7763 -- Sloc references first statement in region covered
7764 -- Exception_Label (Node5-Sem)
7766 -- N_Push_Storage_Error_Label
7767 -- Sloc references first statement in region covered
7768 -- Exception_Label (Node5-Sem)
7770 -- N_Pop_Constraint_Error_Label
7771 -- Sloc references last statement in region covered
7773 -- N_Pop_Program_Error_Label
7774 -- Sloc references last statement in region covered
7776 -- N_Pop_Storage_Error_Label
7777 -- Sloc references last statement in region covered
7783 -- For a number of purposes, we need to construct references to objects.
7784 -- These references are subsequently treated as normal access values.
7785 -- An example is the construction of the parameter block passed to a
7786 -- task entry. The N_Reference node is provided for this purpose. It is
7787 -- similar in effect to the use of the Unrestricted_Access attribute,
7788 -- and like Unrestricted_Access can be applied to objects which would
7789 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
7790 -- objects which are not aliased, and slices). In addition it can be
7791 -- applied to composite type values as well as objects, including string
7792 -- values and aggregates.
7794 -- Note: we use the Prefix field for this expression so that the
7795 -- resulting node can be treated using common code with the attribute
7796 -- nodes for the 'Access and related attributes. Logically it would make
7797 -- more sense to call it an Expression field, but then we would have to
7798 -- special case the treatment of the N_Reference node.
7800 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
7801 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
7802 -- a temporary initialized to a N_Reference node in order to eliminate
7803 -- superfluous access checks.
7805 -- Sprint syntax: prefix'reference
7808 -- Sloc is copied from the expression
7810 -- plus fields for expression
7812 -- Note: in the case where a debug source file is generated, the Sloc
7813 -- for this node points to the quote in the Sprint file output.
7819 -- SCIL nodes are special nodes added to the tree when the CodePeer
7820 -- mode is active. They help the CodePeer backend to locate nodes that
7821 -- require special processing. They are only generated if SCIL
7822 -- generation is enabled. A standard tree-walk will not encounter
7823 -- these nodes even if they are present; these nodes are only
7824 -- accessible via the function SCIL_LL.Get_SCIL_Node.
7826 -- N_SCIL_Dispatch_Table_Tag_Init
7827 -- Sloc references a node for a tag initialization
7828 -- SCIL_Entity (Node4-Sem)
7830 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
7831 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
7832 -- the declaration of the dispatch table for a tagged type.
7834 -- N_SCIL_Dispatching_Call
7835 -- Sloc references the node of a dispatching call
7836 -- SCIL_Target_Prim (Node2-Sem)
7837 -- SCIL_Entity (Node4-Sem)
7838 -- SCIL_Controlling_Tag (Node5-Sem)
7840 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
7841 -- with the N_Procedure_Call or N_Function_Call node (or a rewriting
7842 -- thereof) corresponding to a dispatching call.
7844 -- N_SCIL_Membership_Test
7845 -- Sloc references the node of a membership test
7846 -- SCIL_Tag_Value (Node5-Sem)
7847 -- SCIL_Entity (Node4-Sem)
7849 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
7850 -- with the N_In node (or a rewriting thereof) corresponding to a
7851 -- classwide membership test.
7853 --------------------------
7854 -- Unchecked Expression --
7855 --------------------------
7857 -- An unchecked expression is one that must be analyzed and resolved
7858 -- with all checks off, regardless of the current setting of scope
7861 -- Sprint syntax: `(expression)
7863 -- Note: this node is always removed from the tree (and replaced by
7864 -- its constituent expression) on completion of analysis, so it only
7865 -- appears in intermediate trees, and will never be seen by Gigi.
7867 -- N_Unchecked_Expression
7868 -- Sloc is a copy of the Sloc of the expression
7869 -- Expression (Node3)
7870 -- plus fields for expression
7872 -- Note: in the case where a debug source file is generated, the Sloc
7873 -- for this node points to the back quote in the Sprint file output.
7875 -------------------------------
7876 -- Unchecked Type Conversion --
7877 -------------------------------
7879 -- An unchecked type conversion node represents the semantic action
7880 -- corresponding to a call to an instantiation of Unchecked_Conversion.
7881 -- It is generated as a result of actual use of Unchecked_Conversion
7882 -- and also the expander generates unchecked type conversion nodes
7883 -- directly for expansion of complex semantic actions.
7885 -- Note: an unchecked type conversion is a variable as far as the
7886 -- semantics are concerned, which is convenient for the expander.
7887 -- This does not change what Ada source programs are legal, since
7888 -- clearly a function call to an instantiation of Unchecked_Conversion
7889 -- is not a variable in any case.
7891 -- Sprint syntax: subtype-mark!(expression)
7893 -- N_Unchecked_Type_Conversion
7894 -- Sloc points to related node in source
7895 -- Subtype_Mark (Node4)
7896 -- Expression (Node3)
7897 -- Kill_Range_Check (Flag11-Sem)
7898 -- No_Truncation (Flag17-Sem)
7899 -- plus fields for expression
7901 -- Note: in the case where a debug source file is generated, the Sloc
7902 -- for this node points to the exclamation in the Sprint file output.
7904 -----------------------------------
7905 -- Validate_Unchecked_Conversion --
7906 -----------------------------------
7908 -- The front end does most of the validation of unchecked conversion,
7909 -- including checking sizes (this is done after the back end is called
7910 -- to take advantage of back-annotation of calculated sizes).
7912 -- The front end also deals with specific cases that are not allowed
7913 -- e.g. involving unconstrained array types.
7915 -- For the case of the standard gigi backend, this means that all
7916 -- checks are done in the front end.
7918 -- However, in the case of specialized back-ends, notably the JVM
7919 -- backend for JGNAT, additional requirements and restrictions apply
7920 -- to unchecked conversion, and these are most conveniently performed
7921 -- in the specialized back-end.
7923 -- To accommodate this requirement, for such back ends, the following
7924 -- special node is generated recording an unchecked conversion that
7925 -- needs to be validated. The back end should post an appropriate
7926 -- error message if the unchecked conversion is invalid or warrants
7927 -- a special warning message.
7929 -- Source_Type and Target_Type point to the entities for the two
7930 -- types involved in the unchecked conversion instantiation that
7931 -- is to be validated.
7933 -- Sprint syntax: validate Unchecked_Conversion (source, target);
7935 -- N_Validate_Unchecked_Conversion
7936 -- Sloc points to instantiation (location for warning message)
7937 -- Source_Type (Node1-Sem)
7938 -- Target_Type (Node2-Sem)
7940 -- Note: in the case where a debug source file is generated, the Sloc
7941 -- for this node points to the VALIDATE keyword in the file output.
7947 -- Used as the contents of the Nkind field of the dummy Empty node
7948 -- and in some other situations to indicate an uninitialized value.
7951 -- Chars (Name1) is set to No_Name
7957 -- Used as the contents of the Nkind field of the dummy Error node.
7958 -- Has an Etype field, which gets set to Any_Type later on, to help
7959 -- error recovery (Error_Posted is also set in the Error node).
7962 -- Chars (Name1) is set to Error_Name
7963 -- Etype (Node5-Sem)
7965 --------------------------
7966 -- Node Type Definition --
7967 --------------------------
7969 -- The following is the definition of the Node_Kind type. As previously
7970 -- discussed, this is separated off to allow rearrangement of the order to
7971 -- facilitate definition of subtype ranges. The comments show the subtype
7972 -- classes which apply to each set of node kinds. The first entry in the
7973 -- comment characterizes the following list of nodes.
7978 -- N_Representation_Clause
7982 N_Enumeration_Representation_Clause,
7984 N_Record_Representation_Clause,
7986 -- N_Representation_Clause, N_Has_Chars
7988 N_Attribute_Definition_Clause,
7993 N_Pragma_Argument_Association,
7995 -- N_Has_Etype, N_Has_Chars
7997 -- Note: of course N_Error does not really have Etype or Chars fields,
7998 -- and any attempt to access these fields in N_Error will cause an
7999 -- error, but historically this always has been positioned so that an
8000 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8001 -- Most likely this makes coding easier somewhere but still seems
8002 -- undesirable. To be investigated some time ???
8006 -- N_Entity, N_Has_Etype, N_Has_Chars
8008 N_Defining_Character_Literal,
8009 N_Defining_Identifier,
8010 N_Defining_Operator_Symbol,
8012 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8016 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8017 -- N_Has_Chars, N_Has_Entity
8022 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8023 -- N_Has_Chars, N_Has_Entity
8025 N_Character_Literal,
8027 -- N_Binary_Op, N_Op, N_Subexpr,
8028 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
8035 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
8036 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8043 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8044 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8048 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8049 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8058 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8059 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8064 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8065 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
8071 N_Op_Shift_Right_Arithmetic,
8073 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8074 -- N_Has_Chars, N_Has_Entity
8081 -- N_Subexpr, N_Has_Etype, N_Has_Entity
8083 N_Attribute_Reference,
8085 -- N_Subexpr, N_Has_Etype, N_Membership_Test
8090 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8095 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8098 N_Procedure_Call_Statement,
8100 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8102 N_Raise_Constraint_Error,
8103 N_Raise_Program_Error,
8104 N_Raise_Storage_Error,
8106 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8112 -- N_Subexpr, N_Has_Etype
8114 N_Explicit_Dereference,
8115 N_Expression_With_Actions,
8117 N_Indexed_Component,
8119 N_Qualified_Expression,
8120 N_Quantified_Expression,
8124 N_Extension_Aggregate,
8128 N_Selected_Component,
8131 N_Unchecked_Expression,
8132 N_Unchecked_Type_Conversion,
8136 N_Subtype_Indication,
8140 N_Component_Declaration,
8141 N_Entry_Declaration,
8142 N_Expression_Function,
8143 N_Formal_Object_Declaration,
8144 N_Formal_Type_Declaration,
8145 N_Full_Type_Declaration,
8146 N_Incomplete_Type_Declaration,
8147 N_Iterator_Specification,
8148 N_Loop_Parameter_Specification,
8149 N_Object_Declaration,
8150 N_Protected_Type_Declaration,
8151 N_Private_Extension_Declaration,
8152 N_Private_Type_Declaration,
8153 N_Subtype_Declaration,
8155 -- N_Subprogram_Specification, N_Declaration
8157 N_Function_Specification,
8158 N_Procedure_Specification,
8160 -- N_Access_To_Subprogram_Definition
8162 N_Access_Function_Definition,
8163 N_Access_Procedure_Definition,
8165 -- N_Later_Decl_Item
8167 N_Task_Type_Declaration,
8169 -- N_Body_Stub, N_Later_Decl_Item
8171 N_Package_Body_Stub,
8172 N_Protected_Body_Stub,
8173 N_Subprogram_Body_Stub,
8176 -- N_Generic_Instantiation, N_Later_Decl_Item
8177 -- N_Subprogram_Instantiation
8179 N_Function_Instantiation,
8180 N_Procedure_Instantiation,
8182 -- N_Generic_Instantiation, N_Later_Decl_Item
8184 N_Package_Instantiation,
8186 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8191 -- N_Later_Decl_Item, N_Proper_Body
8196 -- N_Later_Decl_Item
8198 N_Implicit_Label_Declaration,
8199 N_Package_Declaration,
8200 N_Single_Task_Declaration,
8201 N_Subprogram_Declaration,
8202 N_Use_Package_Clause,
8204 -- N_Generic_Declaration, N_Later_Decl_Item
8206 N_Generic_Package_Declaration,
8207 N_Generic_Subprogram_Declaration,
8209 -- N_Array_Type_Definition
8211 N_Constrained_Array_Definition,
8212 N_Unconstrained_Array_Definition,
8214 -- N_Renaming_Declaration
8216 N_Exception_Renaming_Declaration,
8217 N_Object_Renaming_Declaration,
8218 N_Package_Renaming_Declaration,
8219 N_Subprogram_Renaming_Declaration,
8221 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8223 N_Generic_Function_Renaming_Declaration,
8224 N_Generic_Package_Renaming_Declaration,
8225 N_Generic_Procedure_Renaming_Declaration,
8227 -- N_Statement_Other_Than_Procedure_Call
8231 N_Assignment_Statement,
8232 N_Asynchronous_Select,
8236 N_Compound_Statement,
8237 N_Conditional_Entry_Call,
8239 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8241 N_Delay_Relative_Statement,
8242 N_Delay_Until_Statement,
8244 -- N_Statement_Other_Than_Procedure_Call
8246 N_Entry_Call_Statement,
8252 N_Requeue_Statement,
8253 N_Simple_Return_Statement,
8254 N_Extended_Return_Statement,
8258 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8265 N_Accept_Alternative,
8266 N_Delay_Alternative,
8268 N_Entry_Body_Formal_Part,
8270 N_Terminate_Alternative,
8272 -- N_Formal_Subprogram_Declaration
8274 N_Formal_Abstract_Subprogram_Declaration,
8275 N_Formal_Concrete_Subprogram_Declaration,
8277 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8279 N_Push_Constraint_Error_Label,
8280 N_Push_Program_Error_Label,
8281 N_Push_Storage_Error_Label,
8283 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8285 N_Pop_Constraint_Error_Label,
8286 N_Pop_Program_Error_Label,
8287 N_Pop_Storage_Error_Label,
8291 N_SCIL_Dispatch_Table_Tag_Init,
8292 N_SCIL_Dispatching_Call,
8293 N_SCIL_Membership_Test,
8295 -- Other nodes (not part of any subtype class)
8298 N_Abstract_Subprogram_Declaration,
8299 N_Access_Definition,
8300 N_Access_To_Object_Definition,
8301 N_Aspect_Specification,
8302 N_Case_Expression_Alternative,
8303 N_Case_Statement_Alternative,
8305 N_Compilation_Unit_Aux,
8306 N_Component_Association,
8307 N_Component_Definition,
8310 N_Derived_Type_Definition,
8311 N_Decimal_Fixed_Point_Definition,
8312 N_Defining_Program_Unit_Name,
8315 N_Digits_Constraint,
8316 N_Discriminant_Association,
8317 N_Discriminant_Specification,
8318 N_Enumeration_Type_Definition,
8320 N_Entry_Call_Alternative,
8321 N_Entry_Index_Specification,
8322 N_Exception_Declaration,
8323 N_Exception_Handler,
8324 N_Floating_Point_Definition,
8325 N_Formal_Decimal_Fixed_Point_Definition,
8326 N_Formal_Derived_Type_Definition,
8327 N_Formal_Discrete_Type_Definition,
8328 N_Formal_Floating_Point_Definition,
8329 N_Formal_Modular_Type_Definition,
8330 N_Formal_Ordinary_Fixed_Point_Definition,
8331 N_Formal_Package_Declaration,
8332 N_Formal_Private_Type_Definition,
8333 N_Formal_Incomplete_Type_Definition,
8334 N_Formal_Signed_Integer_Type_Definition,
8336 N_Freeze_Generic_Entity,
8337 N_Generic_Association,
8338 N_Handled_Sequence_Of_Statements,
8339 N_Index_Or_Discriminant_Constraint,
8342 N_Modular_Type_Definition,
8343 N_Number_Declaration,
8344 N_Ordinary_Fixed_Point_Definition,
8346 N_Package_Specification,
8347 N_Parameter_Association,
8348 N_Parameter_Specification,
8350 N_Protected_Definition,
8352 N_Real_Range_Specification,
8353 N_Record_Definition,
8354 N_Signed_Integer_Type_Definition,
8355 N_Single_Protected_Declaration,
8358 N_Triggering_Alternative,
8360 N_Validate_Unchecked_Conversion,
8366 for Node_Kind'Size use 8;
8367 -- The data structures in Atree assume this
8369 ----------------------------
8370 -- Node Class Definitions --
8371 ----------------------------
8373 subtype N_Access_To_Subprogram_Definition is Node_Kind range
8374 N_Access_Function_Definition ..
8375 N_Access_Procedure_Definition;
8377 subtype N_Array_Type_Definition is Node_Kind range
8378 N_Constrained_Array_Definition ..
8379 N_Unconstrained_Array_Definition;
8381 subtype N_Binary_Op is Node_Kind range
8383 N_Op_Shift_Right_Arithmetic;
8385 subtype N_Body_Stub is Node_Kind range
8386 N_Package_Body_Stub ..
8389 subtype N_Declaration is Node_Kind range
8390 N_Component_Declaration ..
8391 N_Procedure_Specification;
8392 -- Note: this includes all constructs normally thought of as declarations
8393 -- except those which are separately grouped as later declarations.
8395 subtype N_Delay_Statement is Node_Kind range
8396 N_Delay_Relative_Statement ..
8397 N_Delay_Until_Statement;
8399 subtype N_Direct_Name is Node_Kind range
8401 N_Character_Literal;
8403 subtype N_Entity is Node_Kind range
8404 N_Defining_Character_Literal ..
8405 N_Defining_Operator_Symbol;
8407 subtype N_Formal_Subprogram_Declaration is Node_Kind range
8408 N_Formal_Abstract_Subprogram_Declaration ..
8409 N_Formal_Concrete_Subprogram_Declaration;
8411 subtype N_Generic_Declaration is Node_Kind range
8412 N_Generic_Package_Declaration ..
8413 N_Generic_Subprogram_Declaration;
8415 subtype N_Generic_Instantiation is Node_Kind range
8416 N_Function_Instantiation ..
8417 N_Package_Instantiation;
8419 subtype N_Generic_Renaming_Declaration is Node_Kind range
8420 N_Generic_Function_Renaming_Declaration ..
8421 N_Generic_Procedure_Renaming_Declaration;
8423 subtype N_Has_Chars is Node_Kind range
8424 N_Attribute_Definition_Clause ..
8427 subtype N_Has_Entity is Node_Kind range
8429 N_Attribute_Reference;
8430 -- Nodes that have Entity fields
8431 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
8432 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
8434 subtype N_Has_Etype is Node_Kind range
8436 N_Subtype_Indication;
8438 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
8442 subtype N_Multiplying_Operator is Node_Kind range
8446 subtype N_Later_Decl_Item is Node_Kind range
8447 N_Task_Type_Declaration ..
8448 N_Generic_Subprogram_Declaration;
8449 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8450 -- only those items which can appear as later declarative items. This also
8451 -- includes N_Implicit_Label_Declaration which is not specifically in the
8452 -- grammar but may appear as a valid later declarative items. It does NOT
8453 -- include N_Pragma which can also appear among later declarative items.
8454 -- It does however include N_Protected_Body, which is a bit peculiar, but
8455 -- harmless since this cannot appear in Ada 83 mode anyway.
8457 subtype N_Membership_Test is Node_Kind range
8461 subtype N_Numeric_Or_String_Literal is Node_Kind range
8462 N_Integer_Literal ..
8465 subtype N_Op is Node_Kind range
8469 subtype N_Op_Boolean is Node_Kind range
8472 -- Binary operators which take operands of a boolean type, and yield
8473 -- a result of a boolean type.
8475 subtype N_Op_Compare is Node_Kind range
8479 subtype N_Op_Shift is Node_Kind range
8481 N_Op_Shift_Right_Arithmetic;
8483 subtype N_Proper_Body is Node_Kind range
8487 subtype N_Push_xxx_Label is Node_Kind range
8488 N_Push_Constraint_Error_Label ..
8489 N_Push_Storage_Error_Label;
8491 subtype N_Pop_xxx_Label is Node_Kind range
8492 N_Pop_Constraint_Error_Label ..
8493 N_Pop_Storage_Error_Label;
8495 subtype N_Push_Pop_xxx_Label is Node_Kind range
8496 N_Push_Constraint_Error_Label ..
8497 N_Pop_Storage_Error_Label;
8499 subtype N_Raise_xxx_Error is Node_Kind range
8500 N_Raise_Constraint_Error ..
8501 N_Raise_Storage_Error;
8503 subtype N_Renaming_Declaration is Node_Kind range
8504 N_Exception_Renaming_Declaration ..
8505 N_Generic_Procedure_Renaming_Declaration;
8507 subtype N_Representation_Clause is Node_Kind range
8509 N_Attribute_Definition_Clause;
8511 subtype N_Short_Circuit is Node_Kind range
8515 subtype N_SCIL_Node is Node_Kind range
8516 N_SCIL_Dispatch_Table_Tag_Init ..
8517 N_SCIL_Membership_Test;
8519 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8520 N_Abort_Statement ..
8522 -- Note that this includes all statement types except for the cases of the
8523 -- N_Procedure_Call_Statement which is considered to be a subexpression
8524 -- (since overloading is possible, so it needs to go through the normal
8525 -- overloading resolution for expressions).
8527 subtype N_Subprogram_Call is Node_Kind range
8529 N_Procedure_Call_Statement;
8531 subtype N_Subprogram_Instantiation is Node_Kind range
8532 N_Function_Instantiation ..
8533 N_Procedure_Instantiation;
8535 subtype N_Has_Condition is Node_Kind range
8537 N_Terminate_Alternative;
8538 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
8540 subtype N_Subexpr is Node_Kind range
8542 N_Unchecked_Type_Conversion;
8543 -- Nodes with expression fields
8545 subtype N_Subprogram_Specification is Node_Kind range
8546 N_Function_Specification ..
8547 N_Procedure_Specification;
8549 subtype N_Unary_Op is Node_Kind range
8553 subtype N_Unit_Body is Node_Kind range
8557 ---------------------------
8558 -- Node Access Functions --
8559 ---------------------------
8561 -- The following functions return the contents of the indicated field of
8562 -- the node referenced by the argument, which is a Node_Id. They provide
8563 -- logical access to fields in the node which could be accessed using the
8564 -- Atree.Unchecked_Access package, but the idea is always to use these
8565 -- higher level routines which preserve strong typing. In debug mode,
8566 -- these routines check that they are being applied to an appropriate
8567 -- node, as well as checking that the node is in range.
8569 function ABE_Is_Certain
8570 (N : Node_Id) return Boolean; -- Flag18
8572 function Abort_Present
8573 (N : Node_Id) return Boolean; -- Flag15
8575 function Abortable_Part
8576 (N : Node_Id) return Node_Id; -- Node2
8578 function Abstract_Present
8579 (N : Node_Id) return Boolean; -- Flag4
8581 function Accept_Handler_Records
8582 (N : Node_Id) return List_Id; -- List5
8584 function Accept_Statement
8585 (N : Node_Id) return Node_Id; -- Node2
8587 function Access_Definition
8588 (N : Node_Id) return Node_Id; -- Node3
8590 function Access_To_Subprogram_Definition
8591 (N : Node_Id) return Node_Id; -- Node3
8593 function Access_Types_To_Process
8594 (N : Node_Id) return Elist_Id; -- Elist2
8597 (N : Node_Id) return List_Id; -- List1
8599 function Activation_Chain_Entity
8600 (N : Node_Id) return Node_Id; -- Node3
8602 function Acts_As_Spec
8603 (N : Node_Id) return Boolean; -- Flag4
8605 function Actual_Designated_Subtype
8606 (N : Node_Id) return Node_Id; -- Node4
8608 function Address_Warning_Posted
8609 (N : Node_Id) return Boolean; -- Flag18
8611 function Aggregate_Bounds
8612 (N : Node_Id) return Node_Id; -- Node3
8614 function Aliased_Present
8615 (N : Node_Id) return Boolean; -- Flag4
8618 (N : Node_Id) return Boolean; -- Flag11
8620 function All_Present
8621 (N : Node_Id) return Boolean; -- Flag15
8623 function Alternatives
8624 (N : Node_Id) return List_Id; -- List4
8626 function Ancestor_Part
8627 (N : Node_Id) return Node_Id; -- Node3
8629 function Atomic_Sync_Required
8630 (N : Node_Id) return Boolean; -- Flag14
8632 function Array_Aggregate
8633 (N : Node_Id) return Node_Id; -- Node3
8635 function Aspect_Rep_Item
8636 (N : Node_Id) return Node_Id; -- Node2
8638 function Assignment_OK
8639 (N : Node_Id) return Boolean; -- Flag15
8641 function Associated_Node
8642 (N : Node_Id) return Node_Id; -- Node4
8644 function At_End_Proc
8645 (N : Node_Id) return Node_Id; -- Node1
8647 function Attribute_Name
8648 (N : Node_Id) return Name_Id; -- Name2
8650 function Aux_Decls_Node
8651 (N : Node_Id) return Node_Id; -- Node5
8653 function Backwards_OK
8654 (N : Node_Id) return Boolean; -- Flag6
8656 function Bad_Is_Detected
8657 (N : Node_Id) return Boolean; -- Flag15
8660 (N : Node_Id) return Boolean; -- Flag5
8662 function Body_Required
8663 (N : Node_Id) return Boolean; -- Flag13
8665 function Body_To_Inline
8666 (N : Node_Id) return Node_Id; -- Node3
8668 function Box_Present
8669 (N : Node_Id) return Boolean; -- Flag15
8671 function Char_Literal_Value
8672 (N : Node_Id) return Uint; -- Uint2
8675 (N : Node_Id) return Name_Id; -- Name1
8677 function Check_Address_Alignment
8678 (N : Node_Id) return Boolean; -- Flag11
8680 function Choice_Parameter
8681 (N : Node_Id) return Node_Id; -- Node2
8684 (N : Node_Id) return List_Id; -- List1
8686 function Class_Present
8687 (N : Node_Id) return Boolean; -- Flag6
8689 function Classifications
8690 (N : Node_Id) return Node_Id; -- Node3
8692 function Comes_From_Extended_Return_Statement
8693 (N : Node_Id) return Boolean; -- Flag18
8695 function Compile_Time_Known_Aggregate
8696 (N : Node_Id) return Boolean; -- Flag18
8698 function Component_Associations
8699 (N : Node_Id) return List_Id; -- List2
8701 function Component_Clauses
8702 (N : Node_Id) return List_Id; -- List3
8704 function Component_Definition
8705 (N : Node_Id) return Node_Id; -- Node4
8707 function Component_Items
8708 (N : Node_Id) return List_Id; -- List3
8710 function Component_List
8711 (N : Node_Id) return Node_Id; -- Node1
8713 function Component_Name
8714 (N : Node_Id) return Node_Id; -- Node1
8716 function Componentwise_Assignment
8717 (N : Node_Id) return Boolean; -- Flag14
8720 (N : Node_Id) return Node_Id; -- Node1
8722 function Condition_Actions
8723 (N : Node_Id) return List_Id; -- List3
8725 function Config_Pragmas
8726 (N : Node_Id) return List_Id; -- List4
8728 function Constant_Present
8729 (N : Node_Id) return Boolean; -- Flag17
8732 (N : Node_Id) return Node_Id; -- Node3
8734 function Constraints
8735 (N : Node_Id) return List_Id; -- List1
8737 function Context_Installed
8738 (N : Node_Id) return Boolean; -- Flag13
8740 function Context_Pending
8741 (N : Node_Id) return Boolean; -- Flag16
8743 function Context_Items
8744 (N : Node_Id) return List_Id; -- List1
8746 function Contract_Test_Cases
8747 (N : Node_Id) return Node_Id; -- Node2
8749 function Controlling_Argument
8750 (N : Node_Id) return Node_Id; -- Node1
8752 function Conversion_OK
8753 (N : Node_Id) return Boolean; -- Flag14
8755 function Convert_To_Return_False
8756 (N : Node_Id) return Boolean; -- Flag13
8758 function Corresponding_Aspect
8759 (N : Node_Id) return Node_Id; -- Node3
8761 function Corresponding_Body
8762 (N : Node_Id) return Node_Id; -- Node5
8764 function Corresponding_Formal_Spec
8765 (N : Node_Id) return Node_Id; -- Node3
8767 function Corresponding_Generic_Association
8768 (N : Node_Id) return Node_Id; -- Node5
8770 function Corresponding_Integer_Value
8771 (N : Node_Id) return Uint; -- Uint4
8773 function Corresponding_Spec
8774 (N : Node_Id) return Node_Id; -- Node5
8776 function Corresponding_Spec_Of_Stub
8777 (N : Node_Id) return Node_Id; -- Node2
8779 function Corresponding_Stub
8780 (N : Node_Id) return Node_Id; -- Node3
8782 function Dcheck_Function
8783 (N : Node_Id) return Entity_Id; -- Node5
8785 function Declarations
8786 (N : Node_Id) return List_Id; -- List2
8788 function Default_Expression
8789 (N : Node_Id) return Node_Id; -- Node5
8791 function Default_Storage_Pool
8792 (N : Node_Id) return Node_Id; -- Node3
8794 function Default_Name
8795 (N : Node_Id) return Node_Id; -- Node2
8797 function Defining_Identifier
8798 (N : Node_Id) return Entity_Id; -- Node1
8800 function Defining_Unit_Name
8801 (N : Node_Id) return Node_Id; -- Node1
8803 function Delay_Alternative
8804 (N : Node_Id) return Node_Id; -- Node4
8806 function Delay_Statement
8807 (N : Node_Id) return Node_Id; -- Node2
8809 function Delta_Expression
8810 (N : Node_Id) return Node_Id; -- Node3
8812 function Digits_Expression
8813 (N : Node_Id) return Node_Id; -- Node2
8815 function Discr_Check_Funcs_Built
8816 (N : Node_Id) return Boolean; -- Flag11
8818 function Discrete_Choices
8819 (N : Node_Id) return List_Id; -- List4
8821 function Discrete_Range
8822 (N : Node_Id) return Node_Id; -- Node4
8824 function Discrete_Subtype_Definition
8825 (N : Node_Id) return Node_Id; -- Node4
8827 function Discrete_Subtype_Definitions
8828 (N : Node_Id) return List_Id; -- List2
8830 function Discriminant_Specifications
8831 (N : Node_Id) return List_Id; -- List4
8833 function Discriminant_Type
8834 (N : Node_Id) return Node_Id; -- Node5
8836 function Do_Accessibility_Check
8837 (N : Node_Id) return Boolean; -- Flag13
8839 function Do_Discriminant_Check
8840 (N : Node_Id) return Boolean; -- Flag1
8842 function Do_Division_Check
8843 (N : Node_Id) return Boolean; -- Flag13
8845 function Do_Length_Check
8846 (N : Node_Id) return Boolean; -- Flag4
8848 function Do_Overflow_Check
8849 (N : Node_Id) return Boolean; -- Flag17
8851 function Do_Range_Check
8852 (N : Node_Id) return Boolean; -- Flag9
8854 function Do_Storage_Check
8855 (N : Node_Id) return Boolean; -- Flag17
8857 function Do_Tag_Check
8858 (N : Node_Id) return Boolean; -- Flag13
8860 function Elaborate_All_Desirable
8861 (N : Node_Id) return Boolean; -- Flag9
8863 function Elaborate_All_Present
8864 (N : Node_Id) return Boolean; -- Flag14
8866 function Elaborate_Desirable
8867 (N : Node_Id) return Boolean; -- Flag11
8869 function Elaborate_Present
8870 (N : Node_Id) return Boolean; -- Flag4
8872 function Elaboration_Boolean
8873 (N : Node_Id) return Node_Id; -- Node2
8875 function Else_Actions
8876 (N : Node_Id) return List_Id; -- List3
8878 function Else_Statements
8879 (N : Node_Id) return List_Id; -- List4
8881 function Elsif_Parts
8882 (N : Node_Id) return List_Id; -- List3
8884 function Enclosing_Variant
8885 (N : Node_Id) return Node_Id; -- Node2
8888 (N : Node_Id) return Node_Id; -- Node4
8891 (N : Node_Id) return Uint; -- Uint5
8894 (N : Node_Id) return Node_Id; -- Node4
8896 function Entity_Or_Associated_Node
8897 (N : Node_Id) return Node_Id; -- Node4
8899 function Entry_Body_Formal_Part
8900 (N : Node_Id) return Node_Id; -- Node5
8902 function Entry_Call_Alternative
8903 (N : Node_Id) return Node_Id; -- Node1
8905 function Entry_Call_Statement
8906 (N : Node_Id) return Node_Id; -- Node1
8908 function Entry_Direct_Name
8909 (N : Node_Id) return Node_Id; -- Node1
8911 function Entry_Index
8912 (N : Node_Id) return Node_Id; -- Node5
8914 function Entry_Index_Specification
8915 (N : Node_Id) return Node_Id; -- Node4
8918 (N : Node_Id) return Node_Id; -- Node5
8920 function Exception_Choices
8921 (N : Node_Id) return List_Id; -- List4
8923 function Exception_Handlers
8924 (N : Node_Id) return List_Id; -- List5
8926 function Exception_Junk
8927 (N : Node_Id) return Boolean; -- Flag8
8929 function Exception_Label
8930 (N : Node_Id) return Node_Id; -- Node5
8932 function Explicit_Actual_Parameter
8933 (N : Node_Id) return Node_Id; -- Node3
8935 function Expansion_Delayed
8936 (N : Node_Id) return Boolean; -- Flag11
8938 function Explicit_Generic_Actual_Parameter
8939 (N : Node_Id) return Node_Id; -- Node1
8942 (N : Node_Id) return Node_Id; -- Node3
8944 function Expressions
8945 (N : Node_Id) return List_Id; -- List1
8948 (N : Node_Id) return Node_Id; -- Node3
8950 function First_Inlined_Subprogram
8951 (N : Node_Id) return Entity_Id; -- Node3
8954 (N : Node_Id) return Boolean; -- Flag5
8956 function First_Named_Actual
8957 (N : Node_Id) return Node_Id; -- Node4
8959 function First_Real_Statement
8960 (N : Node_Id) return Node_Id; -- Node2
8962 function First_Subtype_Link
8963 (N : Node_Id) return Entity_Id; -- Node5
8965 function Float_Truncate
8966 (N : Node_Id) return Boolean; -- Flag11
8968 function Formal_Type_Definition
8969 (N : Node_Id) return Node_Id; -- Node3
8971 function Forwards_OK
8972 (N : Node_Id) return Boolean; -- Flag5
8974 function From_Aspect_Specification
8975 (N : Node_Id) return Boolean; -- Flag13
8977 function From_At_End
8978 (N : Node_Id) return Boolean; -- Flag4
8980 function From_At_Mod
8981 (N : Node_Id) return Boolean; -- Flag4
8983 function From_Default
8984 (N : Node_Id) return Boolean; -- Flag6
8986 function Generalized_Indexing
8987 (N : Node_Id) return Node_Id; -- Node4
8988 function Generic_Associations
8989 (N : Node_Id) return List_Id; -- List3
8991 function Generic_Formal_Declarations
8992 (N : Node_Id) return List_Id; -- List2
8994 function Generic_Parent
8995 (N : Node_Id) return Node_Id; -- Node5
8997 function Generic_Parent_Type
8998 (N : Node_Id) return Node_Id; -- Node4
9000 function Handled_Statement_Sequence
9001 (N : Node_Id) return Node_Id; -- Node4
9003 function Handler_List_Entry
9004 (N : Node_Id) return Node_Id; -- Node2
9006 function Has_Created_Identifier
9007 (N : Node_Id) return Boolean; -- Flag15
9009 function Has_Dereference_Action
9010 (N : Node_Id) return Boolean; -- Flag13
9012 function Has_Dynamic_Length_Check
9013 (N : Node_Id) return Boolean; -- Flag10
9015 function Has_Dynamic_Range_Check
9016 (N : Node_Id) return Boolean; -- Flag12
9018 function Has_Init_Expression
9019 (N : Node_Id) return Boolean; -- Flag14
9021 function Has_Local_Raise
9022 (N : Node_Id) return Boolean; -- Flag8
9024 function Has_No_Elaboration_Code
9025 (N : Node_Id) return Boolean; -- Flag17
9027 function Has_Pragma_Suppress_All
9028 (N : Node_Id) return Boolean; -- Flag14
9030 function Has_Private_View
9031 (N : Node_Id) return Boolean; -- Flag11
9033 function Has_Relative_Deadline_Pragma
9034 (N : Node_Id) return Boolean; -- Flag9
9036 function Has_Self_Reference
9037 (N : Node_Id) return Boolean; -- Flag13
9039 function Has_SP_Choice
9040 (N : Node_Id) return Boolean; -- Flag15
9042 function Has_Storage_Size_Pragma
9043 (N : Node_Id) return Boolean; -- Flag5
9045 function Has_Wide_Character
9046 (N : Node_Id) return Boolean; -- Flag11
9048 function Has_Wide_Wide_Character
9049 (N : Node_Id) return Boolean; -- Flag13
9051 function Header_Size_Added
9052 (N : Node_Id) return Boolean; -- Flag11
9054 function Hidden_By_Use_Clause
9055 (N : Node_Id) return Elist_Id; -- Elist4
9058 (N : Node_Id) return Node_Id; -- Node2
9061 (N : Node_Id) return Node_Id; -- Node1
9063 function Interface_List
9064 (N : Node_Id) return List_Id; -- List2
9066 function Interface_Present
9067 (N : Node_Id) return Boolean; -- Flag16
9069 function Implicit_With
9070 (N : Node_Id) return Boolean; -- Flag16
9072 function Implicit_With_From_Instantiation
9073 (N : Node_Id) return Boolean; -- Flag12
9075 function Import_Interface_Present
9076 (N : Node_Id) return Boolean; -- Flag16
9079 (N : Node_Id) return Boolean; -- Flag15
9081 function Includes_Infinities
9082 (N : Node_Id) return Boolean; -- Flag11
9084 function Inherited_Discriminant
9085 (N : Node_Id) return Boolean; -- Flag13
9087 function Instance_Spec
9088 (N : Node_Id) return Node_Id; -- Node5
9091 (N : Node_Id) return Uint; -- Uint3
9093 function Is_Accessibility_Actual
9094 (N : Node_Id) return Boolean; -- Flag13
9096 function Is_Asynchronous_Call_Block
9097 (N : Node_Id) return Boolean; -- Flag7
9099 function Is_Boolean_Aspect
9100 (N : Node_Id) return Boolean; -- Flag16
9103 (N : Node_Id) return Boolean; -- Flag11
9105 function Is_Component_Left_Opnd
9106 (N : Node_Id) return Boolean; -- Flag13
9108 function Is_Component_Right_Opnd
9109 (N : Node_Id) return Boolean; -- Flag14
9111 function Is_Controlling_Actual
9112 (N : Node_Id) return Boolean; -- Flag16
9114 function Is_Delayed_Aspect
9115 (N : Node_Id) return Boolean; -- Flag14
9117 function Is_Disabled
9118 (N : Node_Id) return Boolean; -- Flag15
9120 function Is_Dynamic_Coextension
9121 (N : Node_Id) return Boolean; -- Flag18
9124 (N : Node_Id) return Boolean; -- Flag13
9126 function Is_Entry_Barrier_Function
9127 (N : Node_Id) return Boolean; -- Flag8
9129 function Is_Expanded_Build_In_Place_Call
9130 (N : Node_Id) return Boolean; -- Flag11
9132 function Is_Finalization_Wrapper
9133 (N : Node_Id) return Boolean; -- Flag9
9135 function Is_Folded_In_Parser
9136 (N : Node_Id) return Boolean; -- Flag4
9139 (N : Node_Id) return Boolean; -- Flag9
9141 function Is_In_Discriminant_Check
9142 (N : Node_Id) return Boolean; -- Flag11
9144 function Is_Machine_Number
9145 (N : Node_Id) return Boolean; -- Flag11
9147 function Is_Null_Loop
9148 (N : Node_Id) return Boolean; -- Flag16
9150 function Is_Overloaded
9151 (N : Node_Id) return Boolean; -- Flag5
9153 function Is_Power_Of_2_For_Shift
9154 (N : Node_Id) return Boolean; -- Flag13
9156 function Is_Prefixed_Call
9157 (N : Node_Id) return Boolean; -- Flag17
9159 function Is_Protected_Subprogram_Body
9160 (N : Node_Id) return Boolean; -- Flag7
9162 function Is_Static_Coextension
9163 (N : Node_Id) return Boolean; -- Flag14
9165 function Is_Static_Expression
9166 (N : Node_Id) return Boolean; -- Flag6
9168 function Is_Subprogram_Descriptor
9169 (N : Node_Id) return Boolean; -- Flag16
9171 function Is_Task_Allocation_Block
9172 (N : Node_Id) return Boolean; -- Flag6
9174 function Is_Task_Master
9175 (N : Node_Id) return Boolean; -- Flag5
9177 function Iteration_Scheme
9178 (N : Node_Id) return Node_Id; -- Node2
9180 function Iterator_Specification
9181 (N : Node_Id) return Node_Id; -- Node2
9184 (N : Node_Id) return Entity_Id; -- Node1
9186 function Kill_Range_Check
9187 (N : Node_Id) return Boolean; -- Flag11
9189 function Label_Construct
9190 (N : Node_Id) return Node_Id; -- Node2
9193 (N : Node_Id) return Node_Id; -- Node2
9196 (N : Node_Id) return Node_Id; -- Node4
9199 (N : Node_Id) return Boolean; -- Flag6
9201 function Library_Unit
9202 (N : Node_Id) return Node_Id; -- Node4
9204 function Limited_View_Installed
9205 (N : Node_Id) return Boolean; -- Flag18
9207 function Limited_Present
9208 (N : Node_Id) return Boolean; -- Flag17
9211 (N : Node_Id) return List_Id; -- List1
9213 function Local_Raise_Not_OK
9214 (N : Node_Id) return Boolean; -- Flag7
9216 function Local_Raise_Statements
9217 (N : Node_Id) return Elist_Id; -- Elist1
9219 function Loop_Actions
9220 (N : Node_Id) return List_Id; -- List2
9222 function Loop_Parameter_Specification
9223 (N : Node_Id) return Node_Id; -- Node4
9226 (N : Node_Id) return Node_Id; -- Node1
9229 (N : Node_Id) return Node_Id; -- Node2
9232 (N : Node_Id) return Boolean; -- Flag5
9234 function Must_Be_Byte_Aligned
9235 (N : Node_Id) return Boolean; -- Flag14
9237 function Must_Not_Freeze
9238 (N : Node_Id) return Boolean; -- Flag8
9240 function Must_Not_Override
9241 (N : Node_Id) return Boolean; -- Flag15
9243 function Must_Override
9244 (N : Node_Id) return Boolean; -- Flag14
9247 (N : Node_Id) return Node_Id; -- Node2
9250 (N : Node_Id) return List_Id; -- List2
9252 function Next_Entity
9253 (N : Node_Id) return Node_Id; -- Node2
9255 function Next_Exit_Statement
9256 (N : Node_Id) return Node_Id; -- Node3
9258 function Next_Implicit_With
9259 (N : Node_Id) return Node_Id; -- Node3
9261 function Next_Named_Actual
9262 (N : Node_Id) return Node_Id; -- Node4
9264 function Next_Pragma
9265 (N : Node_Id) return Node_Id; -- Node1
9267 function Next_Rep_Item
9268 (N : Node_Id) return Node_Id; -- Node5
9270 function Next_Use_Clause
9271 (N : Node_Id) return Node_Id; -- Node3
9273 function No_Ctrl_Actions
9274 (N : Node_Id) return Boolean; -- Flag7
9276 function No_Elaboration_Check
9277 (N : Node_Id) return Boolean; -- Flag14
9279 function No_Entities_Ref_In_Spec
9280 (N : Node_Id) return Boolean; -- Flag8
9282 function No_Initialization
9283 (N : Node_Id) return Boolean; -- Flag13
9285 function No_Minimize_Eliminate
9286 (N : Node_Id) return Boolean; -- Flag17
9288 function No_Truncation
9289 (N : Node_Id) return Boolean; -- Flag17
9291 function Non_Aliased_Prefix
9292 (N : Node_Id) return Boolean; -- Flag18
9294 function Null_Present
9295 (N : Node_Id) return Boolean; -- Flag13
9297 function Null_Exclusion_Present
9298 (N : Node_Id) return Boolean; -- Flag11
9300 function Null_Exclusion_In_Return_Present
9301 (N : Node_Id) return Boolean; -- Flag14
9303 function Null_Record_Present
9304 (N : Node_Id) return Boolean; -- Flag17
9306 function Object_Definition
9307 (N : Node_Id) return Node_Id; -- Node4
9310 (N : Node_Id) return Boolean; -- Flag16
9312 function Original_Discriminant
9313 (N : Node_Id) return Node_Id; -- Node2
9315 function Original_Entity
9316 (N : Node_Id) return Entity_Id; -- Node2
9318 function Others_Discrete_Choices
9319 (N : Node_Id) return List_Id; -- List1
9321 function Out_Present
9322 (N : Node_Id) return Boolean; -- Flag17
9324 function Parameter_Associations
9325 (N : Node_Id) return List_Id; -- List3
9327 function Parameter_List_Truncated
9328 (N : Node_Id) return Boolean; -- Flag17
9330 function Parameter_Specifications
9331 (N : Node_Id) return List_Id; -- List3
9333 function Parameter_Type
9334 (N : Node_Id) return Node_Id; -- Node2
9336 function Parent_Spec
9337 (N : Node_Id) return Node_Id; -- Node4
9340 (N : Node_Id) return Node_Id; -- Node2
9342 function Pragma_Argument_Associations
9343 (N : Node_Id) return List_Id; -- List2
9345 function Pragma_Identifier
9346 (N : Node_Id) return Node_Id; -- Node4
9348 function Pragmas_After
9349 (N : Node_Id) return List_Id; -- List5
9351 function Pragmas_Before
9352 (N : Node_Id) return List_Id; -- List4
9354 function Pre_Post_Conditions
9355 (N : Node_Id) return Node_Id; -- Node1
9358 (N : Node_Id) return Node_Id; -- Node3
9360 function Premature_Use
9361 (N : Node_Id) return Node_Id; -- Node5
9363 function Present_Expr
9364 (N : Node_Id) return Uint; -- Uint3
9367 (N : Node_Id) return Boolean; -- Flag6
9369 function Print_In_Hex
9370 (N : Node_Id) return Boolean; -- Flag13
9372 function Private_Declarations
9373 (N : Node_Id) return List_Id; -- List3
9375 function Private_Present
9376 (N : Node_Id) return Boolean; -- Flag15
9378 function Procedure_To_Call
9379 (N : Node_Id) return Node_Id; -- Node2
9381 function Proper_Body
9382 (N : Node_Id) return Node_Id; -- Node1
9384 function Protected_Definition
9385 (N : Node_Id) return Node_Id; -- Node3
9387 function Protected_Present
9388 (N : Node_Id) return Boolean; -- Flag6
9390 function Raises_Constraint_Error
9391 (N : Node_Id) return Boolean; -- Flag7
9393 function Range_Constraint
9394 (N : Node_Id) return Node_Id; -- Node4
9396 function Range_Expression
9397 (N : Node_Id) return Node_Id; -- Node4
9399 function Real_Range_Specification
9400 (N : Node_Id) return Node_Id; -- Node4
9403 (N : Node_Id) return Ureal; -- Ureal3
9406 (N : Node_Id) return Uint; -- Uint3
9408 function Record_Extension_Part
9409 (N : Node_Id) return Node_Id; -- Node3
9411 function Redundant_Use
9412 (N : Node_Id) return Boolean; -- Flag13
9414 function Renaming_Exception
9415 (N : Node_Id) return Node_Id; -- Node2
9417 function Result_Definition
9418 (N : Node_Id) return Node_Id; -- Node4
9420 function Return_Object_Declarations
9421 (N : Node_Id) return List_Id; -- List3
9423 function Return_Statement_Entity
9424 (N : Node_Id) return Node_Id; -- Node5
9426 function Reverse_Present
9427 (N : Node_Id) return Boolean; -- Flag15
9430 (N : Node_Id) return Node_Id; -- Node3
9432 function Rounded_Result
9433 (N : Node_Id) return Boolean; -- Flag18
9435 function SCIL_Controlling_Tag
9436 (N : Node_Id) return Node_Id; -- Node5
9438 function SCIL_Entity
9439 (N : Node_Id) return Node_Id; -- Node4
9441 function SCIL_Tag_Value
9442 (N : Node_Id) return Node_Id; -- Node5
9444 function SCIL_Target_Prim
9445 (N : Node_Id) return Node_Id; -- Node2
9448 (N : Node_Id) return Node_Id; -- Node3
9450 function Select_Alternatives
9451 (N : Node_Id) return List_Id; -- List1
9453 function Selector_Name
9454 (N : Node_Id) return Node_Id; -- Node2
9456 function Selector_Names
9457 (N : Node_Id) return List_Id; -- List1
9459 function Shift_Count_OK
9460 (N : Node_Id) return Boolean; -- Flag4
9462 function Source_Type
9463 (N : Node_Id) return Entity_Id; -- Node1
9465 function Specification
9466 (N : Node_Id) return Node_Id; -- Node1
9469 (N : Node_Id) return Boolean; -- Flag17
9472 (N : Node_Id) return List_Id; -- List3
9474 function Storage_Pool
9475 (N : Node_Id) return Node_Id; -- Node1
9477 function Subpool_Handle_Name
9478 (N : Node_Id) return Node_Id; -- Node4
9481 (N : Node_Id) return String_Id; -- Str3
9483 function Subtype_Indication
9484 (N : Node_Id) return Node_Id; -- Node5
9486 function Subtype_Mark
9487 (N : Node_Id) return Node_Id; -- Node4
9489 function Subtype_Marks
9490 (N : Node_Id) return List_Id; -- List2
9492 function Suppress_Assignment_Checks
9493 (N : Node_Id) return Boolean; -- Flag18
9495 function Suppress_Loop_Warnings
9496 (N : Node_Id) return Boolean; -- Flag17
9498 function Synchronized_Present
9499 (N : Node_Id) return Boolean; -- Flag7
9501 function Tagged_Present
9502 (N : Node_Id) return Boolean; -- Flag15
9504 function Target_Type
9505 (N : Node_Id) return Entity_Id; -- Node2
9507 function Task_Definition
9508 (N : Node_Id) return Node_Id; -- Node3
9510 function Task_Present
9511 (N : Node_Id) return Boolean; -- Flag5
9513 function Then_Actions
9514 (N : Node_Id) return List_Id; -- List2
9516 function Then_Statements
9517 (N : Node_Id) return List_Id; -- List2
9519 function Treat_Fixed_As_Integer
9520 (N : Node_Id) return Boolean; -- Flag14
9522 function Triggering_Alternative
9523 (N : Node_Id) return Node_Id; -- Node1
9525 function Triggering_Statement
9526 (N : Node_Id) return Node_Id; -- Node1
9529 (N : Node_Id) return Elist_Id; -- Elist3
9531 function Type_Definition
9532 (N : Node_Id) return Node_Id; -- Node3
9535 (N : Node_Id) return Node_Id; -- Node2
9537 function Unknown_Discriminants_Present
9538 (N : Node_Id) return Boolean; -- Flag13
9540 function Unreferenced_In_Spec
9541 (N : Node_Id) return Boolean; -- Flag7
9543 function Variant_Part
9544 (N : Node_Id) return Node_Id; -- Node4
9547 (N : Node_Id) return List_Id; -- List1
9549 function Visible_Declarations
9550 (N : Node_Id) return List_Id; -- List2
9552 function Uninitialized_Variable
9553 (N : Node_Id) return Node_Id; -- Node3
9555 function Used_Operations
9556 (N : Node_Id) return Elist_Id; -- Elist5
9558 function Was_Originally_Stub
9559 (N : Node_Id) return Boolean; -- Flag13
9561 function Withed_Body
9562 (N : Node_Id) return Node_Id; -- Node1
9564 -- End functions (note used by xsinfo utility program to end processing)
9566 ----------------------------
9567 -- Node Update Procedures --
9568 ----------------------------
9570 -- These are the corresponding node update routines, which again provide
9571 -- a high level logical access with type checking. In addition to setting
9572 -- the indicated field of the node N to the given Val, in the case of
9573 -- tree pointers (List1-4), the parent pointer of the Val node is set to
9574 -- point back to node N. This automates the setting of the parent pointer.
9576 procedure Set_ABE_Is_Certain
9577 (N : Node_Id; Val : Boolean := True); -- Flag18
9579 procedure Set_Abort_Present
9580 (N : Node_Id; Val : Boolean := True); -- Flag15
9582 procedure Set_Abortable_Part
9583 (N : Node_Id; Val : Node_Id); -- Node2
9585 procedure Set_Abstract_Present
9586 (N : Node_Id; Val : Boolean := True); -- Flag4
9588 procedure Set_Accept_Handler_Records
9589 (N : Node_Id; Val : List_Id); -- List5
9591 procedure Set_Accept_Statement
9592 (N : Node_Id; Val : Node_Id); -- Node2
9594 procedure Set_Access_Definition
9595 (N : Node_Id; Val : Node_Id); -- Node3
9597 procedure Set_Access_To_Subprogram_Definition
9598 (N : Node_Id; Val : Node_Id); -- Node3
9600 procedure Set_Access_Types_To_Process
9601 (N : Node_Id; Val : Elist_Id); -- Elist2
9603 procedure Set_Actions
9604 (N : Node_Id; Val : List_Id); -- List1
9606 procedure Set_Activation_Chain_Entity
9607 (N : Node_Id; Val : Node_Id); -- Node3
9609 procedure Set_Acts_As_Spec
9610 (N : Node_Id; Val : Boolean := True); -- Flag4
9612 procedure Set_Actual_Designated_Subtype
9613 (N : Node_Id; Val : Node_Id); -- Node4
9615 procedure Set_Address_Warning_Posted
9616 (N : Node_Id; Val : Boolean := True); -- Flag18
9618 procedure Set_Aggregate_Bounds
9619 (N : Node_Id; Val : Node_Id); -- Node3
9621 procedure Set_Aliased_Present
9622 (N : Node_Id; Val : Boolean := True); -- Flag4
9624 procedure Set_All_Others
9625 (N : Node_Id; Val : Boolean := True); -- Flag11
9627 procedure Set_All_Present
9628 (N : Node_Id; Val : Boolean := True); -- Flag15
9630 procedure Set_Alternatives
9631 (N : Node_Id; Val : List_Id); -- List4
9633 procedure Set_Ancestor_Part
9634 (N : Node_Id; Val : Node_Id); -- Node3
9636 procedure Set_Atomic_Sync_Required
9637 (N : Node_Id; Val : Boolean := True); -- Flag14
9639 procedure Set_Array_Aggregate
9640 (N : Node_Id; Val : Node_Id); -- Node3
9642 procedure Set_Aspect_Rep_Item
9643 (N : Node_Id; Val : Node_Id); -- Node2
9645 procedure Set_Assignment_OK
9646 (N : Node_Id; Val : Boolean := True); -- Flag15
9648 procedure Set_Associated_Node
9649 (N : Node_Id; Val : Node_Id); -- Node4
9651 procedure Set_Attribute_Name
9652 (N : Node_Id; Val : Name_Id); -- Name2
9654 procedure Set_At_End_Proc
9655 (N : Node_Id; Val : Node_Id); -- Node1
9657 procedure Set_Aux_Decls_Node
9658 (N : Node_Id; Val : Node_Id); -- Node5
9660 procedure Set_Backwards_OK
9661 (N : Node_Id; Val : Boolean := True); -- Flag6
9663 procedure Set_Bad_Is_Detected
9664 (N : Node_Id; Val : Boolean := True); -- Flag15
9666 procedure Set_Body_Required
9667 (N : Node_Id; Val : Boolean := True); -- Flag13
9669 procedure Set_Body_To_Inline
9670 (N : Node_Id; Val : Node_Id); -- Node3
9672 procedure Set_Box_Present
9673 (N : Node_Id; Val : Boolean := True); -- Flag15
9675 procedure Set_By_Ref
9676 (N : Node_Id; Val : Boolean := True); -- Flag5
9678 procedure Set_Char_Literal_Value
9679 (N : Node_Id; Val : Uint); -- Uint2
9682 (N : Node_Id; Val : Name_Id); -- Name1
9684 procedure Set_Check_Address_Alignment
9685 (N : Node_Id; Val : Boolean := True); -- Flag11
9687 procedure Set_Choice_Parameter
9688 (N : Node_Id; Val : Node_Id); -- Node2
9690 procedure Set_Choices
9691 (N : Node_Id; Val : List_Id); -- List1
9693 procedure Set_Class_Present
9694 (N : Node_Id; Val : Boolean := True); -- Flag6
9696 procedure Set_Classifications
9697 (N : Node_Id; Val : Node_Id); -- Node3
9699 procedure Set_Comes_From_Extended_Return_Statement
9700 (N : Node_Id; Val : Boolean := True); -- Flag18
9702 procedure Set_Compile_Time_Known_Aggregate
9703 (N : Node_Id; Val : Boolean := True); -- Flag18
9705 procedure Set_Component_Associations
9706 (N : Node_Id; Val : List_Id); -- List2
9708 procedure Set_Component_Clauses
9709 (N : Node_Id; Val : List_Id); -- List3
9711 procedure Set_Component_Definition
9712 (N : Node_Id; Val : Node_Id); -- Node4
9714 procedure Set_Component_Items
9715 (N : Node_Id; Val : List_Id); -- List3
9717 procedure Set_Component_List
9718 (N : Node_Id; Val : Node_Id); -- Node1
9720 procedure Set_Component_Name
9721 (N : Node_Id; Val : Node_Id); -- Node1
9723 procedure Set_Componentwise_Assignment
9724 (N : Node_Id; Val : Boolean := True); -- Flag14
9726 procedure Set_Condition
9727 (N : Node_Id; Val : Node_Id); -- Node1
9729 procedure Set_Condition_Actions
9730 (N : Node_Id; Val : List_Id); -- List3
9732 procedure Set_Config_Pragmas
9733 (N : Node_Id; Val : List_Id); -- List4
9735 procedure Set_Constant_Present
9736 (N : Node_Id; Val : Boolean := True); -- Flag17
9738 procedure Set_Constraint
9739 (N : Node_Id; Val : Node_Id); -- Node3
9741 procedure Set_Constraints
9742 (N : Node_Id; Val : List_Id); -- List1
9744 procedure Set_Context_Installed
9745 (N : Node_Id; Val : Boolean := True); -- Flag13
9747 procedure Set_Context_Items
9748 (N : Node_Id; Val : List_Id); -- List1
9750 procedure Set_Context_Pending
9751 (N : Node_Id; Val : Boolean := True); -- Flag16
9753 procedure Set_Contract_Test_Cases
9754 (N : Node_Id; Val : Node_Id); -- Node2
9756 procedure Set_Controlling_Argument
9757 (N : Node_Id; Val : Node_Id); -- Node1
9759 procedure Set_Conversion_OK
9760 (N : Node_Id; Val : Boolean := True); -- Flag14
9762 procedure Set_Convert_To_Return_False
9763 (N : Node_Id; Val : Boolean := True); -- Flag13
9765 procedure Set_Corresponding_Aspect
9766 (N : Node_Id; Val : Node_Id); -- Node3
9768 procedure Set_Corresponding_Body
9769 (N : Node_Id; Val : Node_Id); -- Node5
9771 procedure Set_Corresponding_Formal_Spec
9772 (N : Node_Id; Val : Node_Id); -- Node3
9774 procedure Set_Corresponding_Generic_Association
9775 (N : Node_Id; Val : Node_Id); -- Node5
9777 procedure Set_Corresponding_Integer_Value
9778 (N : Node_Id; Val : Uint); -- Uint4
9780 procedure Set_Corresponding_Spec
9781 (N : Node_Id; Val : Node_Id); -- Node5
9783 procedure Set_Corresponding_Spec_Of_Stub
9784 (N : Node_Id; Val : Node_Id); -- Node2
9786 procedure Set_Corresponding_Stub
9787 (N : Node_Id; Val : Node_Id); -- Node3
9789 procedure Set_Dcheck_Function
9790 (N : Node_Id; Val : Entity_Id); -- Node5
9792 procedure Set_Declarations
9793 (N : Node_Id; Val : List_Id); -- List2
9795 procedure Set_Default_Expression
9796 (N : Node_Id; Val : Node_Id); -- Node5
9798 procedure Set_Default_Storage_Pool
9799 (N : Node_Id; Val : Node_Id); -- Node3
9801 procedure Set_Default_Name
9802 (N : Node_Id; Val : Node_Id); -- Node2
9804 procedure Set_Defining_Identifier
9805 (N : Node_Id; Val : Entity_Id); -- Node1
9807 procedure Set_Defining_Unit_Name
9808 (N : Node_Id; Val : Node_Id); -- Node1
9810 procedure Set_Delay_Alternative
9811 (N : Node_Id; Val : Node_Id); -- Node4
9813 procedure Set_Delay_Statement
9814 (N : Node_Id; Val : Node_Id); -- Node2
9816 procedure Set_Delta_Expression
9817 (N : Node_Id; Val : Node_Id); -- Node3
9819 procedure Set_Digits_Expression
9820 (N : Node_Id; Val : Node_Id); -- Node2
9822 procedure Set_Discr_Check_Funcs_Built
9823 (N : Node_Id; Val : Boolean := True); -- Flag11
9825 procedure Set_Discrete_Choices
9826 (N : Node_Id; Val : List_Id); -- List4
9828 procedure Set_Discrete_Range
9829 (N : Node_Id; Val : Node_Id); -- Node4
9831 procedure Set_Discrete_Subtype_Definition
9832 (N : Node_Id; Val : Node_Id); -- Node4
9834 procedure Set_Discrete_Subtype_Definitions
9835 (N : Node_Id; Val : List_Id); -- List2
9837 procedure Set_Discriminant_Specifications
9838 (N : Node_Id; Val : List_Id); -- List4
9840 procedure Set_Discriminant_Type
9841 (N : Node_Id; Val : Node_Id); -- Node5
9843 procedure Set_Do_Accessibility_Check
9844 (N : Node_Id; Val : Boolean := True); -- Flag13
9846 procedure Set_Do_Discriminant_Check
9847 (N : Node_Id; Val : Boolean := True); -- Flag1
9849 procedure Set_Do_Division_Check
9850 (N : Node_Id; Val : Boolean := True); -- Flag13
9852 procedure Set_Do_Length_Check
9853 (N : Node_Id; Val : Boolean := True); -- Flag4
9855 procedure Set_Do_Overflow_Check
9856 (N : Node_Id; Val : Boolean := True); -- Flag17
9858 procedure Set_Do_Range_Check
9859 (N : Node_Id; Val : Boolean := True); -- Flag9
9861 procedure Set_Do_Storage_Check
9862 (N : Node_Id; Val : Boolean := True); -- Flag17
9864 procedure Set_Do_Tag_Check
9865 (N : Node_Id; Val : Boolean := True); -- Flag13
9867 procedure Set_Elaborate_All_Desirable
9868 (N : Node_Id; Val : Boolean := True); -- Flag9
9870 procedure Set_Elaborate_All_Present
9871 (N : Node_Id; Val : Boolean := True); -- Flag14
9873 procedure Set_Elaborate_Desirable
9874 (N : Node_Id; Val : Boolean := True); -- Flag11
9876 procedure Set_Elaborate_Present
9877 (N : Node_Id; Val : Boolean := True); -- Flag4
9879 procedure Set_Elaboration_Boolean
9880 (N : Node_Id; Val : Node_Id); -- Node2
9882 procedure Set_Else_Actions
9883 (N : Node_Id; Val : List_Id); -- List3
9885 procedure Set_Else_Statements
9886 (N : Node_Id; Val : List_Id); -- List4
9888 procedure Set_Elsif_Parts
9889 (N : Node_Id; Val : List_Id); -- List3
9891 procedure Set_Enclosing_Variant
9892 (N : Node_Id; Val : Node_Id); -- Node2
9894 procedure Set_End_Label
9895 (N : Node_Id; Val : Node_Id); -- Node4
9897 procedure Set_End_Span
9898 (N : Node_Id; Val : Uint); -- Uint5
9900 procedure Set_Entity
9901 (N : Node_Id; Val : Node_Id); -- Node4
9903 procedure Set_Entry_Body_Formal_Part
9904 (N : Node_Id; Val : Node_Id); -- Node5
9906 procedure Set_Entry_Call_Alternative
9907 (N : Node_Id; Val : Node_Id); -- Node1
9909 procedure Set_Entry_Call_Statement
9910 (N : Node_Id; Val : Node_Id); -- Node1
9912 procedure Set_Entry_Direct_Name
9913 (N : Node_Id; Val : Node_Id); -- Node1
9915 procedure Set_Entry_Index
9916 (N : Node_Id; Val : Node_Id); -- Node5
9918 procedure Set_Entry_Index_Specification
9919 (N : Node_Id; Val : Node_Id); -- Node4
9922 (N : Node_Id; Val : Node_Id); -- Node5
9924 procedure Set_Exception_Choices
9925 (N : Node_Id; Val : List_Id); -- List4
9927 procedure Set_Exception_Handlers
9928 (N : Node_Id; Val : List_Id); -- List5
9930 procedure Set_Exception_Junk
9931 (N : Node_Id; Val : Boolean := True); -- Flag8
9933 procedure Set_Exception_Label
9934 (N : Node_Id; Val : Node_Id); -- Node5
9936 procedure Set_Expansion_Delayed
9937 (N : Node_Id; Val : Boolean := True); -- Flag11
9939 procedure Set_Explicit_Actual_Parameter
9940 (N : Node_Id; Val : Node_Id); -- Node3
9942 procedure Set_Explicit_Generic_Actual_Parameter
9943 (N : Node_Id; Val : Node_Id); -- Node1
9945 procedure Set_Expression
9946 (N : Node_Id; Val : Node_Id); -- Node3
9948 procedure Set_Expressions
9949 (N : Node_Id; Val : List_Id); -- List1
9951 procedure Set_First_Bit
9952 (N : Node_Id; Val : Node_Id); -- Node3
9954 procedure Set_First_Inlined_Subprogram
9955 (N : Node_Id; Val : Entity_Id); -- Node3
9957 procedure Set_First_Name
9958 (N : Node_Id; Val : Boolean := True); -- Flag5
9960 procedure Set_First_Named_Actual
9961 (N : Node_Id; Val : Node_Id); -- Node4
9963 procedure Set_First_Real_Statement
9964 (N : Node_Id; Val : Node_Id); -- Node2
9966 procedure Set_First_Subtype_Link
9967 (N : Node_Id; Val : Entity_Id); -- Node5
9969 procedure Set_Float_Truncate
9970 (N : Node_Id; Val : Boolean := True); -- Flag11
9972 procedure Set_Formal_Type_Definition
9973 (N : Node_Id; Val : Node_Id); -- Node3
9975 procedure Set_Forwards_OK
9976 (N : Node_Id; Val : Boolean := True); -- Flag5
9978 procedure Set_From_At_Mod
9979 (N : Node_Id; Val : Boolean := True); -- Flag4
9981 procedure Set_From_Aspect_Specification
9982 (N : Node_Id; Val : Boolean := True); -- Flag13
9984 procedure Set_From_At_End
9985 (N : Node_Id; Val : Boolean := True); -- Flag4
9987 procedure Set_From_Default
9988 (N : Node_Id; Val : Boolean := True); -- Flag6
9990 procedure Set_Generalized_Indexing
9991 (N : Node_Id; Val : Node_Id); -- Node4
9993 procedure Set_Generic_Associations
9994 (N : Node_Id; Val : List_Id); -- List3
9996 procedure Set_Generic_Formal_Declarations
9997 (N : Node_Id; Val : List_Id); -- List2
9999 procedure Set_Generic_Parent
10000 (N : Node_Id; Val : Node_Id); -- Node5
10002 procedure Set_Generic_Parent_Type
10003 (N : Node_Id; Val : Node_Id); -- Node4
10005 procedure Set_Handled_Statement_Sequence
10006 (N : Node_Id; Val : Node_Id); -- Node4
10008 procedure Set_Handler_List_Entry
10009 (N : Node_Id; Val : Node_Id); -- Node2
10011 procedure Set_Has_Created_Identifier
10012 (N : Node_Id; Val : Boolean := True); -- Flag15
10014 procedure Set_Has_Dereference_Action
10015 (N : Node_Id; Val : Boolean := True); -- Flag13
10017 procedure Set_Has_Dynamic_Length_Check
10018 (N : Node_Id; Val : Boolean := True); -- Flag10
10020 procedure Set_Has_Dynamic_Range_Check
10021 (N : Node_Id; Val : Boolean := True); -- Flag12
10023 procedure Set_Has_Init_Expression
10024 (N : Node_Id; Val : Boolean := True); -- Flag14
10026 procedure Set_Has_Local_Raise
10027 (N : Node_Id; Val : Boolean := True); -- Flag8
10029 procedure Set_Has_No_Elaboration_Code
10030 (N : Node_Id; Val : Boolean := True); -- Flag17
10032 procedure Set_Has_Pragma_Suppress_All
10033 (N : Node_Id; Val : Boolean := True); -- Flag14
10035 procedure Set_Has_Private_View
10036 (N : Node_Id; Val : Boolean := True); -- Flag11
10038 procedure Set_Has_Relative_Deadline_Pragma
10039 (N : Node_Id; Val : Boolean := True); -- Flag9
10041 procedure Set_Has_Self_Reference
10042 (N : Node_Id; Val : Boolean := True); -- Flag13
10044 procedure Set_Has_SP_Choice
10045 (N : Node_Id; Val : Boolean := True); -- Flag15
10047 procedure Set_Has_Storage_Size_Pragma
10048 (N : Node_Id; Val : Boolean := True); -- Flag5
10050 procedure Set_Has_Wide_Character
10051 (N : Node_Id; Val : Boolean := True); -- Flag11
10053 procedure Set_Has_Wide_Wide_Character
10054 (N : Node_Id; Val : Boolean := True); -- Flag13
10056 procedure Set_Header_Size_Added
10057 (N : Node_Id; Val : Boolean := True); -- Flag11
10059 procedure Set_Hidden_By_Use_Clause
10060 (N : Node_Id; Val : Elist_Id); -- Elist4
10062 procedure Set_High_Bound
10063 (N : Node_Id; Val : Node_Id); -- Node2
10065 procedure Set_Identifier
10066 (N : Node_Id; Val : Node_Id); -- Node1
10068 procedure Set_Interface_List
10069 (N : Node_Id; Val : List_Id); -- List2
10071 procedure Set_Interface_Present
10072 (N : Node_Id; Val : Boolean := True); -- Flag16
10074 procedure Set_Implicit_With
10075 (N : Node_Id; Val : Boolean := True); -- Flag16
10077 procedure Set_Implicit_With_From_Instantiation
10078 (N : Node_Id; Val : Boolean := True); -- Flag12
10080 procedure Set_Import_Interface_Present
10081 (N : Node_Id; Val : Boolean := True); -- Flag16
10083 procedure Set_In_Present
10084 (N : Node_Id; Val : Boolean := True); -- Flag15
10086 procedure Set_Includes_Infinities
10087 (N : Node_Id; Val : Boolean := True); -- Flag11
10089 procedure Set_Inherited_Discriminant
10090 (N : Node_Id; Val : Boolean := True); -- Flag13
10092 procedure Set_Instance_Spec
10093 (N : Node_Id; Val : Node_Id); -- Node5
10095 procedure Set_Intval
10096 (N : Node_Id; Val : Uint); -- Uint3
10098 procedure Set_Is_Accessibility_Actual
10099 (N : Node_Id; Val : Boolean := True); -- Flag13
10101 procedure Set_Is_Asynchronous_Call_Block
10102 (N : Node_Id; Val : Boolean := True); -- Flag7
10104 procedure Set_Is_Boolean_Aspect
10105 (N : Node_Id; Val : Boolean := True); -- Flag16
10107 procedure Set_Is_Checked
10108 (N : Node_Id; Val : Boolean := True); -- Flag11
10110 procedure Set_Is_Component_Left_Opnd
10111 (N : Node_Id; Val : Boolean := True); -- Flag13
10113 procedure Set_Is_Component_Right_Opnd
10114 (N : Node_Id; Val : Boolean := True); -- Flag14
10116 procedure Set_Is_Controlling_Actual
10117 (N : Node_Id; Val : Boolean := True); -- Flag16
10119 procedure Set_Is_Delayed_Aspect
10120 (N : Node_Id; Val : Boolean := True); -- Flag14
10122 procedure Set_Is_Disabled
10123 (N : Node_Id; Val : Boolean := True); -- Flag15
10125 procedure Set_Is_Ignored
10126 (N : Node_Id; Val : Boolean := True); -- Flag9
10128 procedure Set_Is_Dynamic_Coextension
10129 (N : Node_Id; Val : Boolean := True); -- Flag18
10131 procedure Set_Is_Elsif
10132 (N : Node_Id; Val : Boolean := True); -- Flag13
10134 procedure Set_Is_Entry_Barrier_Function
10135 (N : Node_Id; Val : Boolean := True); -- Flag8
10137 procedure Set_Is_Expanded_Build_In_Place_Call
10138 (N : Node_Id; Val : Boolean := True); -- Flag11
10140 procedure Set_Is_Finalization_Wrapper
10141 (N : Node_Id; Val : Boolean := True); -- Flag9
10143 procedure Set_Is_Folded_In_Parser
10144 (N : Node_Id; Val : Boolean := True); -- Flag4
10146 procedure Set_Is_In_Discriminant_Check
10147 (N : Node_Id; Val : Boolean := True); -- Flag11
10149 procedure Set_Is_Machine_Number
10150 (N : Node_Id; Val : Boolean := True); -- Flag11
10152 procedure Set_Is_Null_Loop
10153 (N : Node_Id; Val : Boolean := True); -- Flag16
10155 procedure Set_Is_Overloaded
10156 (N : Node_Id; Val : Boolean := True); -- Flag5
10158 procedure Set_Is_Power_Of_2_For_Shift
10159 (N : Node_Id; Val : Boolean := True); -- Flag13
10161 procedure Set_Is_Prefixed_Call
10162 (N : Node_Id; Val : Boolean := True); -- Flag17
10164 procedure Set_Is_Protected_Subprogram_Body
10165 (N : Node_Id; Val : Boolean := True); -- Flag7
10167 procedure Set_Is_Static_Coextension
10168 (N : Node_Id; Val : Boolean := True); -- Flag14
10170 procedure Set_Is_Static_Expression
10171 (N : Node_Id; Val : Boolean := True); -- Flag6
10173 procedure Set_Is_Subprogram_Descriptor
10174 (N : Node_Id; Val : Boolean := True); -- Flag16
10176 procedure Set_Is_Task_Allocation_Block
10177 (N : Node_Id; Val : Boolean := True); -- Flag6
10179 procedure Set_Is_Task_Master
10180 (N : Node_Id; Val : Boolean := True); -- Flag5
10182 procedure Set_Iteration_Scheme
10183 (N : Node_Id; Val : Node_Id); -- Node2
10185 procedure Set_Iterator_Specification
10186 (N : Node_Id; Val : Node_Id); -- Node2
10188 procedure Set_Itype
10189 (N : Node_Id; Val : Entity_Id); -- Node1
10191 procedure Set_Kill_Range_Check
10192 (N : Node_Id; Val : Boolean := True); -- Flag11
10194 procedure Set_Last_Bit
10195 (N : Node_Id; Val : Node_Id); -- Node4
10197 procedure Set_Last_Name
10198 (N : Node_Id; Val : Boolean := True); -- Flag6
10200 procedure Set_Library_Unit
10201 (N : Node_Id; Val : Node_Id); -- Node4
10203 procedure Set_Label_Construct
10204 (N : Node_Id; Val : Node_Id); -- Node2
10206 procedure Set_Left_Opnd
10207 (N : Node_Id; Val : Node_Id); -- Node2
10209 procedure Set_Limited_View_Installed
10210 (N : Node_Id; Val : Boolean := True); -- Flag18
10212 procedure Set_Limited_Present
10213 (N : Node_Id; Val : Boolean := True); -- Flag17
10215 procedure Set_Literals
10216 (N : Node_Id; Val : List_Id); -- List1
10218 procedure Set_Local_Raise_Not_OK
10219 (N : Node_Id; Val : Boolean := True); -- Flag7
10221 procedure Set_Local_Raise_Statements
10222 (N : Node_Id; Val : Elist_Id); -- Elist1
10224 procedure Set_Loop_Actions
10225 (N : Node_Id; Val : List_Id); -- List2
10227 procedure Set_Loop_Parameter_Specification
10228 (N : Node_Id; Val : Node_Id); -- Node4
10230 procedure Set_Low_Bound
10231 (N : Node_Id; Val : Node_Id); -- Node1
10233 procedure Set_Mod_Clause
10234 (N : Node_Id; Val : Node_Id); -- Node2
10236 procedure Set_More_Ids
10237 (N : Node_Id; Val : Boolean := True); -- Flag5
10239 procedure Set_Must_Be_Byte_Aligned
10240 (N : Node_Id; Val : Boolean := True); -- Flag14
10242 procedure Set_Must_Not_Freeze
10243 (N : Node_Id; Val : Boolean := True); -- Flag8
10245 procedure Set_Must_Not_Override
10246 (N : Node_Id; Val : Boolean := True); -- Flag15
10248 procedure Set_Must_Override
10249 (N : Node_Id; Val : Boolean := True); -- Flag14
10252 (N : Node_Id; Val : Node_Id); -- Node2
10254 procedure Set_Names
10255 (N : Node_Id; Val : List_Id); -- List2
10257 procedure Set_Next_Entity
10258 (N : Node_Id; Val : Node_Id); -- Node2
10260 procedure Set_Next_Exit_Statement
10261 (N : Node_Id; Val : Node_Id); -- Node3
10263 procedure Set_Next_Implicit_With
10264 (N : Node_Id; Val : Node_Id); -- Node3
10266 procedure Set_Next_Named_Actual
10267 (N : Node_Id; Val : Node_Id); -- Node4
10269 procedure Set_Next_Pragma
10270 (N : Node_Id; Val : Node_Id); -- Node1
10272 procedure Set_Next_Rep_Item
10273 (N : Node_Id; Val : Node_Id); -- Node5
10275 procedure Set_Next_Use_Clause
10276 (N : Node_Id; Val : Node_Id); -- Node3
10278 procedure Set_No_Ctrl_Actions
10279 (N : Node_Id; Val : Boolean := True); -- Flag7
10281 procedure Set_No_Elaboration_Check
10282 (N : Node_Id; Val : Boolean := True); -- Flag14
10284 procedure Set_No_Entities_Ref_In_Spec
10285 (N : Node_Id; Val : Boolean := True); -- Flag8
10287 procedure Set_No_Initialization
10288 (N : Node_Id; Val : Boolean := True); -- Flag13
10290 procedure Set_No_Minimize_Eliminate
10291 (N : Node_Id; Val : Boolean := True); -- Flag17
10293 procedure Set_No_Truncation
10294 (N : Node_Id; Val : Boolean := True); -- Flag17
10296 procedure Set_Non_Aliased_Prefix
10297 (N : Node_Id; Val : Boolean := True); -- Flag18
10299 procedure Set_Null_Present
10300 (N : Node_Id; Val : Boolean := True); -- Flag13
10302 procedure Set_Null_Exclusion_Present
10303 (N : Node_Id; Val : Boolean := True); -- Flag11
10305 procedure Set_Null_Exclusion_In_Return_Present
10306 (N : Node_Id; Val : Boolean := True); -- Flag14
10308 procedure Set_Null_Record_Present
10309 (N : Node_Id; Val : Boolean := True); -- Flag17
10311 procedure Set_Object_Definition
10312 (N : Node_Id; Val : Node_Id); -- Node4
10314 procedure Set_Of_Present
10315 (N : Node_Id; Val : Boolean := True); -- Flag16
10317 procedure Set_Original_Discriminant
10318 (N : Node_Id; Val : Node_Id); -- Node2
10320 procedure Set_Original_Entity
10321 (N : Node_Id; Val : Entity_Id); -- Node2
10323 procedure Set_Others_Discrete_Choices
10324 (N : Node_Id; Val : List_Id); -- List1
10326 procedure Set_Out_Present
10327 (N : Node_Id; Val : Boolean := True); -- Flag17
10329 procedure Set_Parameter_Associations
10330 (N : Node_Id; Val : List_Id); -- List3
10332 procedure Set_Parameter_List_Truncated
10333 (N : Node_Id; Val : Boolean := True); -- Flag17
10335 procedure Set_Parameter_Specifications
10336 (N : Node_Id; Val : List_Id); -- List3
10338 procedure Set_Parameter_Type
10339 (N : Node_Id; Val : Node_Id); -- Node2
10341 procedure Set_Parent_Spec
10342 (N : Node_Id; Val : Node_Id); -- Node4
10344 procedure Set_Position
10345 (N : Node_Id; Val : Node_Id); -- Node2
10347 procedure Set_Pragma_Argument_Associations
10348 (N : Node_Id; Val : List_Id); -- List2
10350 procedure Set_Pragma_Identifier
10351 (N : Node_Id; Val : Node_Id); -- Node4
10353 procedure Set_Pragmas_After
10354 (N : Node_Id; Val : List_Id); -- List5
10356 procedure Set_Pragmas_Before
10357 (N : Node_Id; Val : List_Id); -- List4
10359 procedure Set_Pre_Post_Conditions
10360 (N : Node_Id; Val : Node_Id); -- Node1
10362 procedure Set_Prefix
10363 (N : Node_Id; Val : Node_Id); -- Node3
10365 procedure Set_Premature_Use
10366 (N : Node_Id; Val : Node_Id); -- Node5
10368 procedure Set_Present_Expr
10369 (N : Node_Id; Val : Uint); -- Uint3
10371 procedure Set_Prev_Ids
10372 (N : Node_Id; Val : Boolean := True); -- Flag6
10374 procedure Set_Print_In_Hex
10375 (N : Node_Id; Val : Boolean := True); -- Flag13
10377 procedure Set_Private_Declarations
10378 (N : Node_Id; Val : List_Id); -- List3
10380 procedure Set_Private_Present
10381 (N : Node_Id; Val : Boolean := True); -- Flag15
10383 procedure Set_Procedure_To_Call
10384 (N : Node_Id; Val : Node_Id); -- Node2
10386 procedure Set_Proper_Body
10387 (N : Node_Id; Val : Node_Id); -- Node1
10389 procedure Set_Protected_Definition
10390 (N : Node_Id; Val : Node_Id); -- Node3
10392 procedure Set_Protected_Present
10393 (N : Node_Id; Val : Boolean := True); -- Flag6
10395 procedure Set_Raises_Constraint_Error
10396 (N : Node_Id; Val : Boolean := True); -- Flag7
10398 procedure Set_Range_Constraint
10399 (N : Node_Id; Val : Node_Id); -- Node4
10401 procedure Set_Range_Expression
10402 (N : Node_Id; Val : Node_Id); -- Node4
10404 procedure Set_Real_Range_Specification
10405 (N : Node_Id; Val : Node_Id); -- Node4
10407 procedure Set_Realval
10408 (N : Node_Id; Val : Ureal); -- Ureal3
10410 procedure Set_Reason
10411 (N : Node_Id; Val : Uint); -- Uint3
10413 procedure Set_Record_Extension_Part
10414 (N : Node_Id; Val : Node_Id); -- Node3
10416 procedure Set_Redundant_Use
10417 (N : Node_Id; Val : Boolean := True); -- Flag13
10419 procedure Set_Renaming_Exception
10420 (N : Node_Id; Val : Node_Id); -- Node2
10422 procedure Set_Result_Definition
10423 (N : Node_Id; Val : Node_Id); -- Node4
10425 procedure Set_Return_Object_Declarations
10426 (N : Node_Id; Val : List_Id); -- List3
10428 procedure Set_Return_Statement_Entity
10429 (N : Node_Id; Val : Node_Id); -- Node5
10431 procedure Set_Reverse_Present
10432 (N : Node_Id; Val : Boolean := True); -- Flag15
10434 procedure Set_Right_Opnd
10435 (N : Node_Id; Val : Node_Id); -- Node3
10437 procedure Set_Rounded_Result
10438 (N : Node_Id; Val : Boolean := True); -- Flag18
10440 procedure Set_SCIL_Controlling_Tag
10441 (N : Node_Id; Val : Node_Id); -- Node5
10443 procedure Set_SCIL_Entity
10444 (N : Node_Id; Val : Node_Id); -- Node4
10446 procedure Set_SCIL_Tag_Value
10447 (N : Node_Id; Val : Node_Id); -- Node5
10449 procedure Set_SCIL_Target_Prim
10450 (N : Node_Id; Val : Node_Id); -- Node2
10452 procedure Set_Scope
10453 (N : Node_Id; Val : Node_Id); -- Node3
10455 procedure Set_Select_Alternatives
10456 (N : Node_Id; Val : List_Id); -- List1
10458 procedure Set_Selector_Name
10459 (N : Node_Id; Val : Node_Id); -- Node2
10461 procedure Set_Selector_Names
10462 (N : Node_Id; Val : List_Id); -- List1
10464 procedure Set_Shift_Count_OK
10465 (N : Node_Id; Val : Boolean := True); -- Flag4
10467 procedure Set_Source_Type
10468 (N : Node_Id; Val : Entity_Id); -- Node1
10470 procedure Set_Specification
10471 (N : Node_Id; Val : Node_Id); -- Node1
10473 procedure Set_Split_PPC
10474 (N : Node_Id; Val : Boolean); -- Flag17
10476 procedure Set_Statements
10477 (N : Node_Id; Val : List_Id); -- List3
10479 procedure Set_Storage_Pool
10480 (N : Node_Id; Val : Node_Id); -- Node1
10482 procedure Set_Subpool_Handle_Name
10483 (N : Node_Id; Val : Node_Id); -- Node4
10485 procedure Set_Strval
10486 (N : Node_Id; Val : String_Id); -- Str3
10488 procedure Set_Subtype_Indication
10489 (N : Node_Id; Val : Node_Id); -- Node5
10491 procedure Set_Subtype_Mark
10492 (N : Node_Id; Val : Node_Id); -- Node4
10494 procedure Set_Subtype_Marks
10495 (N : Node_Id; Val : List_Id); -- List2
10497 procedure Set_Suppress_Assignment_Checks
10498 (N : Node_Id; Val : Boolean := True); -- Flag18
10500 procedure Set_Suppress_Loop_Warnings
10501 (N : Node_Id; Val : Boolean := True); -- Flag17
10503 procedure Set_Synchronized_Present
10504 (N : Node_Id; Val : Boolean := True); -- Flag7
10506 procedure Set_Tagged_Present
10507 (N : Node_Id; Val : Boolean := True); -- Flag15
10509 procedure Set_Target_Type
10510 (N : Node_Id; Val : Entity_Id); -- Node2
10512 procedure Set_Task_Definition
10513 (N : Node_Id; Val : Node_Id); -- Node3
10515 procedure Set_Task_Present
10516 (N : Node_Id; Val : Boolean := True); -- Flag5
10518 procedure Set_Then_Actions
10519 (N : Node_Id; Val : List_Id); -- List2
10521 procedure Set_Then_Statements
10522 (N : Node_Id; Val : List_Id); -- List2
10524 procedure Set_Treat_Fixed_As_Integer
10525 (N : Node_Id; Val : Boolean := True); -- Flag14
10527 procedure Set_Triggering_Alternative
10528 (N : Node_Id; Val : Node_Id); -- Node1
10530 procedure Set_Triggering_Statement
10531 (N : Node_Id; Val : Node_Id); -- Node1
10533 procedure Set_TSS_Elist
10534 (N : Node_Id; Val : Elist_Id); -- Elist3
10536 procedure Set_Type_Definition
10537 (N : Node_Id; Val : Node_Id); -- Node3
10540 (N : Node_Id; Val : Node_Id); -- Node2
10542 procedure Set_Unknown_Discriminants_Present
10543 (N : Node_Id; Val : Boolean := True); -- Flag13
10545 procedure Set_Unreferenced_In_Spec
10546 (N : Node_Id; Val : Boolean := True); -- Flag7
10548 procedure Set_Variant_Part
10549 (N : Node_Id; Val : Node_Id); -- Node4
10551 procedure Set_Variants
10552 (N : Node_Id; Val : List_Id); -- List1
10554 procedure Set_Visible_Declarations
10555 (N : Node_Id; Val : List_Id); -- List2
10557 procedure Set_Uninitialized_Variable
10558 (N : Node_Id; Val : Node_Id); -- Node3
10560 procedure Set_Used_Operations
10561 (N : Node_Id; Val : Elist_Id); -- Elist5
10563 procedure Set_Was_Originally_Stub
10564 (N : Node_Id; Val : Boolean := True); -- Flag13
10566 procedure Set_Withed_Body
10567 (N : Node_Id; Val : Node_Id); -- Node1
10569 -------------------------
10570 -- Iterator Procedures --
10571 -------------------------
10573 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
10575 procedure Next_Entity (N : in out Node_Id);
10576 procedure Next_Named_Actual (N : in out Node_Id);
10577 procedure Next_Rep_Item (N : in out Node_Id);
10578 procedure Next_Use_Clause (N : in out Node_Id);
10580 -------------------------------------------
10581 -- Miscellaneous Tree Access Subprograms --
10582 -------------------------------------------
10584 function End_Location (N : Node_Id) return Source_Ptr;
10585 -- N is an N_If_Statement or N_Case_Statement node, and this function
10586 -- returns the location of the IF token in the END IF sequence by
10587 -- translating the value of the End_Span field.
10589 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
10590 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
10591 -- the End_Span field to correspond to the given value S. In other words,
10592 -- End_Span is set to the difference between S and Sloc (N), the starting
10595 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
10596 -- Given an argument to a pragma Arg, this function returns the expression
10597 -- for the argument. This is Arg itself, or, in the case where Arg is a
10598 -- pragma argument association node, the expression from this node.
10600 --------------------------------
10601 -- Node_Kind Membership Tests --
10602 --------------------------------
10604 -- The following functions allow a convenient notation for testing whether
10605 -- a Node_Kind value matches any one of a list of possible values. In each
10606 -- case True is returned if the given T argument is equal to any of the V
10607 -- arguments. Note that there is a similar set of functions defined in
10608 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
10613 V2 : Node_Kind) return Boolean;
10619 V3 : Node_Kind) return Boolean;
10626 V4 : Node_Kind) return Boolean;
10634 V5 : Node_Kind) return Boolean;
10643 V6 : Node_Kind) return Boolean;
10653 V7 : Node_Kind) return Boolean;
10664 V8 : Node_Kind) return Boolean;
10676 V9 : Node_Kind) return Boolean;
10678 pragma Inline (Nkind_In);
10679 -- Inline all above functions
10681 -----------------------
10682 -- Utility Functions --
10683 -----------------------
10685 function Pragma_Name (N : Node_Id) return Name_Id;
10686 pragma Inline (Pragma_Name);
10687 -- Convenient function to obtain Chars field of Pragma_Identifier
10689 -----------------------------
10690 -- Syntactic Parent Tables --
10691 -----------------------------
10693 -- These tables show for each node, and for each of the five fields,
10694 -- whether the corresponding field is syntactic (True) or semantic (False).
10695 -- Unused entries are also set to False.
10697 subtype Field_Num is Natural range 1 .. 5;
10699 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
10701 -- Following entries can be built automatically from the sinfo sources
10702 -- using the makeisf utility (currently this program is in spitbol).
10705 (1 => True, -- Chars (Name1)
10706 2 => False, -- Original_Discriminant (Node2-Sem)
10707 3 => False, -- unused
10708 4 => False, -- Entity (Node4-Sem)
10709 5 => False), -- Etype (Node5-Sem)
10711 N_Integer_Literal =>
10712 (1 => False, -- unused
10713 2 => False, -- Original_Entity (Node2-Sem)
10714 3 => True, -- Intval (Uint3)
10715 4 => False, -- unused
10716 5 => False), -- Etype (Node5-Sem)
10719 (1 => False, -- unused
10720 2 => False, -- Original_Entity (Node2-Sem)
10721 3 => True, -- Realval (Ureal3)
10722 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
10723 5 => False), -- Etype (Node5-Sem)
10725 N_Character_Literal =>
10726 (1 => True, -- Chars (Name1)
10727 2 => True, -- Char_Literal_Value (Uint2)
10728 3 => False, -- unused
10729 4 => False, -- Entity (Node4-Sem)
10730 5 => False), -- Etype (Node5-Sem)
10732 N_String_Literal =>
10733 (1 => False, -- unused
10734 2 => False, -- unused
10735 3 => True, -- Strval (Str3)
10736 4 => False, -- unused
10737 5 => False), -- Etype (Node5-Sem)
10740 (1 => False, -- Next_Pragma (Node1-Sem)
10741 2 => True, -- Pragma_Argument_Associations (List2)
10742 3 => False, -- unused
10743 4 => True, -- Pragma_Identifier (Node4)
10744 5 => False), -- Next_Rep_Item (Node5-Sem)
10746 N_Pragma_Argument_Association =>
10747 (1 => True, -- Chars (Name1)
10748 2 => False, -- unused
10749 3 => True, -- Expression (Node3)
10750 4 => False, -- unused
10751 5 => False), -- unused
10753 N_Defining_Identifier =>
10754 (1 => True, -- Chars (Name1)
10755 2 => False, -- Next_Entity (Node2-Sem)
10756 3 => False, -- Scope (Node3-Sem)
10757 4 => False, -- unused
10758 5 => False), -- Etype (Node5-Sem)
10760 N_Full_Type_Declaration =>
10761 (1 => True, -- Defining_Identifier (Node1)
10762 2 => False, -- unused
10763 3 => True, -- Type_Definition (Node3)
10764 4 => True, -- Discriminant_Specifications (List4)
10765 5 => False), -- unused
10767 N_Subtype_Declaration =>
10768 (1 => True, -- Defining_Identifier (Node1)
10769 2 => False, -- unused
10770 3 => False, -- unused
10771 4 => False, -- Generic_Parent_Type (Node4-Sem)
10772 5 => True), -- Subtype_Indication (Node5)
10774 N_Subtype_Indication =>
10775 (1 => False, -- unused
10776 2 => False, -- unused
10777 3 => True, -- Constraint (Node3)
10778 4 => True, -- Subtype_Mark (Node4)
10779 5 => False), -- Etype (Node5-Sem)
10781 N_Object_Declaration =>
10782 (1 => True, -- Defining_Identifier (Node1)
10783 2 => False, -- Handler_List_Entry (Node2-Sem)
10784 3 => True, -- Expression (Node3)
10785 4 => True, -- Object_Definition (Node4)
10786 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10788 N_Number_Declaration =>
10789 (1 => True, -- Defining_Identifier (Node1)
10790 2 => False, -- unused
10791 3 => True, -- Expression (Node3)
10792 4 => False, -- unused
10793 5 => False), -- unused
10795 N_Derived_Type_Definition =>
10796 (1 => False, -- unused
10797 2 => True, -- Interface_List (List2)
10798 3 => True, -- Record_Extension_Part (Node3)
10799 4 => False, -- unused
10800 5 => True), -- Subtype_Indication (Node5)
10802 N_Range_Constraint =>
10803 (1 => False, -- unused
10804 2 => False, -- unused
10805 3 => False, -- unused
10806 4 => True, -- Range_Expression (Node4)
10807 5 => False), -- unused
10810 (1 => True, -- Low_Bound (Node1)
10811 2 => True, -- High_Bound (Node2)
10812 3 => False, -- unused
10813 4 => False, -- unused
10814 5 => False), -- Etype (Node5-Sem)
10816 N_Enumeration_Type_Definition =>
10817 (1 => True, -- Literals (List1)
10818 2 => False, -- unused
10819 3 => False, -- unused
10820 4 => True, -- End_Label (Node4)
10821 5 => False), -- unused
10823 N_Defining_Character_Literal =>
10824 (1 => True, -- Chars (Name1)
10825 2 => False, -- Next_Entity (Node2-Sem)
10826 3 => False, -- Scope (Node3-Sem)
10827 4 => False, -- unused
10828 5 => False), -- Etype (Node5-Sem)
10830 N_Signed_Integer_Type_Definition =>
10831 (1 => True, -- Low_Bound (Node1)
10832 2 => True, -- High_Bound (Node2)
10833 3 => False, -- unused
10834 4 => False, -- unused
10835 5 => False), -- unused
10837 N_Modular_Type_Definition =>
10838 (1 => False, -- unused
10839 2 => False, -- unused
10840 3 => True, -- Expression (Node3)
10841 4 => False, -- unused
10842 5 => False), -- unused
10844 N_Floating_Point_Definition =>
10845 (1 => False, -- unused
10846 2 => True, -- Digits_Expression (Node2)
10847 3 => False, -- unused
10848 4 => True, -- Real_Range_Specification (Node4)
10849 5 => False), -- unused
10851 N_Real_Range_Specification =>
10852 (1 => True, -- Low_Bound (Node1)
10853 2 => True, -- High_Bound (Node2)
10854 3 => False, -- unused
10855 4 => False, -- unused
10856 5 => False), -- unused
10858 N_Ordinary_Fixed_Point_Definition =>
10859 (1 => False, -- unused
10860 2 => False, -- unused
10861 3 => True, -- Delta_Expression (Node3)
10862 4 => True, -- Real_Range_Specification (Node4)
10863 5 => False), -- unused
10865 N_Decimal_Fixed_Point_Definition =>
10866 (1 => False, -- unused
10867 2 => True, -- Digits_Expression (Node2)
10868 3 => True, -- Delta_Expression (Node3)
10869 4 => True, -- Real_Range_Specification (Node4)
10870 5 => False), -- unused
10872 N_Digits_Constraint =>
10873 (1 => False, -- unused
10874 2 => True, -- Digits_Expression (Node2)
10875 3 => False, -- unused
10876 4 => True, -- Range_Constraint (Node4)
10877 5 => False), -- unused
10879 N_Unconstrained_Array_Definition =>
10880 (1 => False, -- unused
10881 2 => True, -- Subtype_Marks (List2)
10882 3 => False, -- unused
10883 4 => True, -- Component_Definition (Node4)
10884 5 => False), -- unused
10886 N_Constrained_Array_Definition =>
10887 (1 => False, -- unused
10888 2 => True, -- Discrete_Subtype_Definitions (List2)
10889 3 => False, -- unused
10890 4 => True, -- Component_Definition (Node4)
10891 5 => False), -- unused
10893 N_Component_Definition =>
10894 (1 => False, -- unused
10895 2 => False, -- unused
10896 3 => True, -- Access_Definition (Node3)
10897 4 => False, -- unused
10898 5 => True), -- Subtype_Indication (Node5)
10900 N_Discriminant_Specification =>
10901 (1 => True, -- Defining_Identifier (Node1)
10902 2 => False, -- unused
10903 3 => True, -- Expression (Node3)
10904 4 => False, -- unused
10905 5 => True), -- Discriminant_Type (Node5)
10907 N_Index_Or_Discriminant_Constraint =>
10908 (1 => True, -- Constraints (List1)
10909 2 => False, -- unused
10910 3 => False, -- unused
10911 4 => False, -- unused
10912 5 => False), -- unused
10914 N_Discriminant_Association =>
10915 (1 => True, -- Selector_Names (List1)
10916 2 => False, -- unused
10917 3 => True, -- Expression (Node3)
10918 4 => False, -- unused
10919 5 => False), -- unused
10921 N_Record_Definition =>
10922 (1 => True, -- Component_List (Node1)
10923 2 => True, -- Interface_List (List2)
10924 3 => False, -- unused
10925 4 => True, -- End_Label (Node4)
10926 5 => False), -- unused
10928 N_Component_List =>
10929 (1 => False, -- unused
10930 2 => False, -- unused
10931 3 => True, -- Component_Items (List3)
10932 4 => True, -- Variant_Part (Node4)
10933 5 => False), -- unused
10935 N_Component_Declaration =>
10936 (1 => True, -- Defining_Identifier (Node1)
10937 2 => False, -- unused
10938 3 => True, -- Expression (Node3)
10939 4 => True, -- Component_Definition (Node4)
10940 5 => False), -- unused
10943 (1 => True, -- Variants (List1)
10944 2 => True, -- Name (Node2)
10945 3 => False, -- unused
10946 4 => False, -- unused
10947 5 => False), -- unused
10950 (1 => True, -- Component_List (Node1)
10951 2 => False, -- Enclosing_Variant (Node2-Sem)
10952 3 => False, -- Present_Expr (Uint3-Sem)
10953 4 => True, -- Discrete_Choices (List4)
10954 5 => False), -- Dcheck_Function (Node5-Sem)
10957 (1 => False, -- Others_Discrete_Choices (List1-Sem)
10958 2 => False, -- unused
10959 3 => False, -- unused
10960 4 => False, -- unused
10961 5 => False), -- unused
10963 N_Access_To_Object_Definition =>
10964 (1 => False, -- unused
10965 2 => False, -- unused
10966 3 => False, -- unused
10967 4 => False, -- unused
10968 5 => True), -- Subtype_Indication (Node5)
10970 N_Access_Function_Definition =>
10971 (1 => False, -- unused
10972 2 => False, -- unused
10973 3 => True, -- Parameter_Specifications (List3)
10974 4 => True, -- Result_Definition (Node4)
10975 5 => False), -- unused
10977 N_Access_Procedure_Definition =>
10978 (1 => False, -- unused
10979 2 => False, -- unused
10980 3 => True, -- Parameter_Specifications (List3)
10981 4 => False, -- unused
10982 5 => False), -- unused
10984 N_Access_Definition =>
10985 (1 => False, -- unused
10986 2 => False, -- unused
10987 3 => True, -- Access_To_Subprogram_Definition (Node3)
10988 4 => True, -- Subtype_Mark (Node4)
10989 5 => False), -- unused
10991 N_Incomplete_Type_Declaration =>
10992 (1 => True, -- Defining_Identifier (Node1)
10993 2 => False, -- unused
10994 3 => False, -- unused
10995 4 => True, -- Discriminant_Specifications (List4)
10996 5 => False), -- Premature_Use
10998 N_Explicit_Dereference =>
10999 (1 => False, -- unused
11000 2 => False, -- unused
11001 3 => True, -- Prefix (Node3)
11002 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11003 5 => False), -- Etype (Node5-Sem)
11005 N_Indexed_Component =>
11006 (1 => True, -- Expressions (List1)
11007 2 => False, -- unused
11008 3 => True, -- Prefix (Node3)
11009 4 => False, -- Generalized_Indexing (Node4-Sem)
11010 5 => False), -- Etype (Node5-Sem)
11013 (1 => False, -- unused
11014 2 => False, -- unused
11015 3 => True, -- Prefix (Node3)
11016 4 => True, -- Discrete_Range (Node4)
11017 5 => False), -- Etype (Node5-Sem)
11019 N_Selected_Component =>
11020 (1 => False, -- unused
11021 2 => True, -- Selector_Name (Node2)
11022 3 => True, -- Prefix (Node3)
11023 4 => False, -- unused
11024 5 => False), -- Etype (Node5-Sem)
11026 N_Attribute_Reference =>
11027 (1 => True, -- Expressions (List1)
11028 2 => True, -- Attribute_Name (Name2)
11029 3 => True, -- Prefix (Node3)
11030 4 => False, -- Entity (Node4-Sem)
11031 5 => False), -- Etype (Node5-Sem)
11034 (1 => True, -- Expressions (List1)
11035 2 => True, -- Component_Associations (List2)
11036 3 => False, -- Aggregate_Bounds (Node3-Sem)
11037 4 => False, -- unused
11038 5 => False), -- Etype (Node5-Sem)
11040 N_Component_Association =>
11041 (1 => True, -- Choices (List1)
11042 2 => False, -- Loop_Actions (List2-Sem)
11043 3 => True, -- Expression (Node3)
11044 4 => False, -- unused
11045 5 => False), -- unused
11047 N_Extension_Aggregate =>
11048 (1 => True, -- Expressions (List1)
11049 2 => True, -- Component_Associations (List2)
11050 3 => True, -- Ancestor_Part (Node3)
11051 4 => False, -- unused
11052 5 => False), -- Etype (Node5-Sem)
11055 (1 => False, -- unused
11056 2 => False, -- unused
11057 3 => False, -- unused
11058 4 => False, -- unused
11059 5 => False), -- Etype (Node5-Sem)
11062 (1 => False, -- Actions (List1-Sem)
11063 2 => True, -- Left_Opnd (Node2)
11064 3 => True, -- Right_Opnd (Node3)
11065 4 => False, -- unused
11066 5 => False), -- Etype (Node5-Sem)
11069 (1 => False, -- Actions (List1-Sem)
11070 2 => True, -- Left_Opnd (Node2)
11071 3 => True, -- Right_Opnd (Node3)
11072 4 => False, -- unused
11073 5 => False), -- Etype (Node5-Sem)
11076 (1 => False, -- unused
11077 2 => True, -- Left_Opnd (Node2)
11078 3 => True, -- Right_Opnd (Node3)
11079 4 => True, -- Alternatives (List4)
11080 5 => False), -- Etype (Node5-Sem)
11083 (1 => False, -- unused
11084 2 => True, -- Left_Opnd (Node2)
11085 3 => True, -- Right_Opnd (Node3)
11086 4 => True, -- Alternatives (List4)
11087 5 => False), -- Etype (Node5-Sem)
11090 (1 => True, -- Chars (Name1)
11091 2 => True, -- Left_Opnd (Node2)
11092 3 => True, -- Right_Opnd (Node3)
11093 4 => False, -- Entity (Node4-Sem)
11094 5 => False), -- Etype (Node5-Sem)
11097 (1 => True, -- Chars (Name1)
11098 2 => True, -- Left_Opnd (Node2)
11099 3 => True, -- Right_Opnd (Node3)
11100 4 => False, -- Entity (Node4-Sem)
11101 5 => False), -- Etype (Node5-Sem)
11104 (1 => True, -- Chars (Name1)
11105 2 => True, -- Left_Opnd (Node2)
11106 3 => True, -- Right_Opnd (Node3)
11107 4 => False, -- Entity (Node4-Sem)
11108 5 => False), -- Etype (Node5-Sem)
11111 (1 => True, -- Chars (Name1)
11112 2 => True, -- Left_Opnd (Node2)
11113 3 => True, -- Right_Opnd (Node3)
11114 4 => False, -- Entity (Node4-Sem)
11115 5 => False), -- Etype (Node5-Sem)
11118 (1 => True, -- Chars (Name1)
11119 2 => True, -- Left_Opnd (Node2)
11120 3 => True, -- Right_Opnd (Node3)
11121 4 => False, -- Entity (Node4-Sem)
11122 5 => False), -- Etype (Node5-Sem)
11125 (1 => True, -- Chars (Name1)
11126 2 => True, -- Left_Opnd (Node2)
11127 3 => True, -- Right_Opnd (Node3)
11128 4 => False, -- Entity (Node4-Sem)
11129 5 => False), -- Etype (Node5-Sem)
11132 (1 => True, -- Chars (Name1)
11133 2 => True, -- Left_Opnd (Node2)
11134 3 => True, -- Right_Opnd (Node3)
11135 4 => False, -- Entity (Node4-Sem)
11136 5 => False), -- Etype (Node5-Sem)
11139 (1 => True, -- Chars (Name1)
11140 2 => True, -- Left_Opnd (Node2)
11141 3 => True, -- Right_Opnd (Node3)
11142 4 => False, -- Entity (Node4-Sem)
11143 5 => False), -- Etype (Node5-Sem)
11146 (1 => True, -- Chars (Name1)
11147 2 => True, -- Left_Opnd (Node2)
11148 3 => True, -- Right_Opnd (Node3)
11149 4 => False, -- Entity (Node4-Sem)
11150 5 => False), -- Etype (Node5-Sem)
11153 (1 => True, -- Chars (Name1)
11154 2 => True, -- Left_Opnd (Node2)
11155 3 => True, -- Right_Opnd (Node3)
11156 4 => False, -- Entity (Node4-Sem)
11157 5 => False), -- Etype (Node5-Sem)
11160 (1 => True, -- Chars (Name1)
11161 2 => True, -- Left_Opnd (Node2)
11162 3 => True, -- Right_Opnd (Node3)
11163 4 => False, -- Entity (Node4-Sem)
11164 5 => False), -- Etype (Node5-Sem)
11167 (1 => True, -- Chars (Name1)
11168 2 => True, -- Left_Opnd (Node2)
11169 3 => True, -- Right_Opnd (Node3)
11170 4 => False, -- Entity (Node4-Sem)
11171 5 => False), -- Etype (Node5-Sem)
11174 (1 => True, -- Chars (Name1)
11175 2 => True, -- Left_Opnd (Node2)
11176 3 => True, -- Right_Opnd (Node3)
11177 4 => False, -- Entity (Node4-Sem)
11178 5 => False), -- Etype (Node5-Sem)
11181 (1 => True, -- Chars (Name1)
11182 2 => True, -- Left_Opnd (Node2)
11183 3 => True, -- Right_Opnd (Node3)
11184 4 => False, -- Entity (Node4-Sem)
11185 5 => False), -- Etype (Node5-Sem)
11188 (1 => True, -- Chars (Name1)
11189 2 => True, -- Left_Opnd (Node2)
11190 3 => True, -- Right_Opnd (Node3)
11191 4 => False, -- Entity (Node4-Sem)
11192 5 => False), -- Etype (Node5-Sem)
11195 (1 => True, -- Chars (Name1)
11196 2 => True, -- Left_Opnd (Node2)
11197 3 => True, -- Right_Opnd (Node3)
11198 4 => False, -- Entity (Node4-Sem)
11199 5 => False), -- Etype (Node5-Sem)
11202 (1 => True, -- Chars (Name1)
11203 2 => True, -- Left_Opnd (Node2)
11204 3 => True, -- Right_Opnd (Node3)
11205 4 => False, -- Entity (Node4-Sem)
11206 5 => False), -- Etype (Node5-Sem)
11209 (1 => True, -- Chars (Name1)
11210 2 => False, -- unused
11211 3 => True, -- Right_Opnd (Node3)
11212 4 => False, -- Entity (Node4-Sem)
11213 5 => False), -- Etype (Node5-Sem)
11216 (1 => True, -- Chars (Name1)
11217 2 => False, -- unused
11218 3 => True, -- Right_Opnd (Node3)
11219 4 => False, -- Entity (Node4-Sem)
11220 5 => False), -- Etype (Node5-Sem)
11223 (1 => True, -- Chars (Name1)
11224 2 => False, -- unused
11225 3 => True, -- Right_Opnd (Node3)
11226 4 => False, -- Entity (Node4-Sem)
11227 5 => False), -- Etype (Node5-Sem)
11230 (1 => True, -- Chars (Name1)
11231 2 => False, -- unused
11232 3 => True, -- Right_Opnd (Node3)
11233 4 => False, -- Entity (Node4-Sem)
11234 5 => False), -- Etype (Node5-Sem)
11236 N_Type_Conversion =>
11237 (1 => False, -- unused
11238 2 => False, -- unused
11239 3 => True, -- Expression (Node3)
11240 4 => True, -- Subtype_Mark (Node4)
11241 5 => False), -- Etype (Node5-Sem)
11243 N_Qualified_Expression =>
11244 (1 => False, -- unused
11245 2 => False, -- unused
11246 3 => True, -- Expression (Node3)
11247 4 => True, -- Subtype_Mark (Node4)
11248 5 => False), -- Etype (Node5-Sem)
11250 N_Quantified_Expression =>
11251 (1 => True, -- Condition (Node1)
11252 2 => True, -- Iterator_Specification
11253 3 => False, -- unused
11254 4 => True, -- Loop_Parameter_Specification (Node4)
11255 5 => False), -- Etype (Node5-Sem)
11258 (1 => False, -- Storage_Pool (Node1-Sem)
11259 2 => False, -- Procedure_To_Call (Node2-Sem)
11260 3 => True, -- Expression (Node3)
11261 4 => True, -- Subpool_Handle_Name (Node4)
11262 5 => False), -- Etype (Node5-Sem)
11264 N_Null_Statement =>
11265 (1 => False, -- unused
11266 2 => False, -- unused
11267 3 => False, -- unused
11268 4 => False, -- unused
11269 5 => False), -- unused
11272 (1 => True, -- Identifier (Node1)
11273 2 => False, -- unused
11274 3 => False, -- unused
11275 4 => False, -- unused
11276 5 => False), -- unused
11278 N_Assignment_Statement =>
11279 (1 => False, -- unused
11280 2 => True, -- Name (Node2)
11281 3 => True, -- Expression (Node3)
11282 4 => False, -- unused
11283 5 => False), -- unused
11286 (1 => True, -- Condition (Node1)
11287 2 => True, -- Then_Statements (List2)
11288 3 => True, -- Elsif_Parts (List3)
11289 4 => True, -- Else_Statements (List4)
11290 5 => True), -- End_Span (Uint5)
11293 (1 => True, -- Condition (Node1)
11294 2 => True, -- Then_Statements (List2)
11295 3 => False, -- Condition_Actions (List3-Sem)
11296 4 => False, -- unused
11297 5 => False), -- unused
11299 N_Case_Expression =>
11300 (1 => False, -- unused
11301 2 => False, -- unused
11302 3 => True, -- Expression (Node3)
11303 4 => True, -- Alternatives (List4)
11304 5 => False), -- unused
11306 N_Case_Expression_Alternative =>
11307 (1 => False, -- Actions (List1-Sem)
11308 2 => False, -- unused
11309 3 => True, -- Statements (List3)
11310 4 => True, -- Expression (Node4)
11311 5 => False), -- unused
11313 N_Case_Statement =>
11314 (1 => False, -- unused
11315 2 => False, -- unused
11316 3 => True, -- Expression (Node3)
11317 4 => True, -- Alternatives (List4)
11318 5 => True), -- End_Span (Uint5)
11320 N_Case_Statement_Alternative =>
11321 (1 => False, -- unused
11322 2 => False, -- unused
11323 3 => True, -- Statements (List3)
11324 4 => True, -- Discrete_Choices (List4)
11325 5 => False), -- unused
11327 N_Loop_Statement =>
11328 (1 => True, -- Identifier (Node1)
11329 2 => True, -- Iteration_Scheme (Node2)
11330 3 => True, -- Statements (List3)
11331 4 => True, -- End_Label (Node4)
11332 5 => False), -- unused
11334 N_Iteration_Scheme =>
11335 (1 => True, -- Condition (Node1)
11336 2 => True, -- Iterator_Specification (Node2)
11337 3 => False, -- Condition_Actions (List3-Sem)
11338 4 => True, -- Loop_Parameter_Specification (Node4)
11339 5 => False), -- unused
11341 N_Loop_Parameter_Specification =>
11342 (1 => True, -- Defining_Identifier (Node1)
11343 2 => False, -- unused
11344 3 => False, -- unused
11345 4 => True, -- Discrete_Subtype_Definition (Node4)
11346 5 => False), -- unused
11348 N_Iterator_Specification =>
11349 (1 => True, -- Defining_Identifier (Node1)
11350 2 => True, -- Name (Node2)
11351 3 => False, -- Unused
11352 4 => False, -- Unused
11353 5 => True), -- Subtype_Indication (Node5)
11355 N_Block_Statement =>
11356 (1 => True, -- Identifier (Node1)
11357 2 => True, -- Declarations (List2)
11358 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11359 4 => True, -- Handled_Statement_Sequence (Node4)
11360 5 => False), -- unused
11362 N_Exit_Statement =>
11363 (1 => True, -- Condition (Node1)
11364 2 => True, -- Name (Node2)
11365 3 => False, -- unused
11366 4 => False, -- unused
11367 5 => False), -- unused
11369 N_Goto_Statement =>
11370 (1 => False, -- unused
11371 2 => True, -- Name (Node2)
11372 3 => False, -- unused
11373 4 => False, -- unused
11374 5 => False), -- unused
11376 N_Subprogram_Declaration =>
11377 (1 => True, -- Specification (Node1)
11378 2 => False, -- unused
11379 3 => False, -- Body_To_Inline (Node3-Sem)
11380 4 => False, -- Parent_Spec (Node4-Sem)
11381 5 => False), -- Corresponding_Body (Node5-Sem)
11383 N_Abstract_Subprogram_Declaration =>
11384 (1 => True, -- Specification (Node1)
11385 2 => False, -- unused
11386 3 => False, -- unused
11387 4 => False, -- unused
11388 5 => False), -- unused
11390 N_Function_Specification =>
11391 (1 => True, -- Defining_Unit_Name (Node1)
11392 2 => False, -- Elaboration_Boolean (Node2-Sem)
11393 3 => True, -- Parameter_Specifications (List3)
11394 4 => True, -- Result_Definition (Node4)
11395 5 => False), -- Generic_Parent (Node5-Sem)
11397 N_Procedure_Specification =>
11398 (1 => True, -- Defining_Unit_Name (Node1)
11399 2 => False, -- Elaboration_Boolean (Node2-Sem)
11400 3 => True, -- Parameter_Specifications (List3)
11401 4 => False, -- unused
11402 5 => False), -- Generic_Parent (Node5-Sem)
11405 (1 => True, -- Identifier (Node1)
11406 2 => True, -- Name (Node2)
11407 3 => False, -- unused
11408 4 => False, -- unused
11409 5 => False), -- unused
11411 N_Defining_Program_Unit_Name =>
11412 (1 => True, -- Defining_Identifier (Node1)
11413 2 => True, -- Name (Node2)
11414 3 => False, -- unused
11415 4 => False, -- unused
11416 5 => False), -- unused
11418 N_Operator_Symbol =>
11419 (1 => True, -- Chars (Name1)
11420 2 => False, -- unused
11421 3 => True, -- Strval (Str3)
11422 4 => False, -- Entity (Node4-Sem)
11423 5 => False), -- Etype (Node5-Sem)
11425 N_Defining_Operator_Symbol =>
11426 (1 => True, -- Chars (Name1)
11427 2 => False, -- Next_Entity (Node2-Sem)
11428 3 => False, -- Scope (Node3-Sem)
11429 4 => False, -- unused
11430 5 => False), -- Etype (Node5-Sem)
11432 N_Parameter_Specification =>
11433 (1 => True, -- Defining_Identifier (Node1)
11434 2 => True, -- Parameter_Type (Node2)
11435 3 => True, -- Expression (Node3)
11436 4 => False, -- unused
11437 5 => False), -- Default_Expression (Node5-Sem)
11439 N_Subprogram_Body =>
11440 (1 => True, -- Specification (Node1)
11441 2 => True, -- Declarations (List2)
11442 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11443 4 => True, -- Handled_Statement_Sequence (Node4)
11444 5 => False), -- Corresponding_Spec (Node5-Sem)
11446 N_Expression_Function =>
11447 (1 => True, -- Specification (Node1)
11448 2 => False, -- unused
11449 3 => True, -- Expression (Node3)
11450 4 => False, -- unused
11451 5 => False), -- unused
11453 N_Procedure_Call_Statement =>
11454 (1 => False, -- Controlling_Argument (Node1-Sem)
11455 2 => True, -- Name (Node2)
11456 3 => True, -- Parameter_Associations (List3)
11457 4 => False, -- First_Named_Actual (Node4-Sem)
11458 5 => False), -- Etype (Node5-Sem)
11461 (1 => False, -- Controlling_Argument (Node1-Sem)
11462 2 => True, -- Name (Node2)
11463 3 => True, -- Parameter_Associations (List3)
11464 4 => False, -- First_Named_Actual (Node4-Sem)
11465 5 => False), -- Etype (Node5-Sem)
11467 N_Parameter_Association =>
11468 (1 => False, -- unused
11469 2 => True, -- Selector_Name (Node2)
11470 3 => True, -- Explicit_Actual_Parameter (Node3)
11471 4 => False, -- Next_Named_Actual (Node4-Sem)
11472 5 => False), -- unused
11474 N_Simple_Return_Statement =>
11475 (1 => False, -- Storage_Pool (Node1-Sem)
11476 2 => False, -- Procedure_To_Call (Node2-Sem)
11477 3 => True, -- Expression (Node3)
11478 4 => False, -- unused
11479 5 => False), -- Return_Statement_Entity (Node5-Sem)
11481 N_Extended_Return_Statement =>
11482 (1 => False, -- Storage_Pool (Node1-Sem)
11483 2 => False, -- Procedure_To_Call (Node2-Sem)
11484 3 => True, -- Return_Object_Declarations (List3)
11485 4 => True, -- Handled_Statement_Sequence (Node4)
11486 5 => False), -- Return_Statement_Entity (Node5-Sem)
11488 N_Package_Declaration =>
11489 (1 => True, -- Specification (Node1)
11490 2 => False, -- unused
11491 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11492 4 => False, -- Parent_Spec (Node4-Sem)
11493 5 => False), -- Corresponding_Body (Node5-Sem)
11495 N_Package_Specification =>
11496 (1 => True, -- Defining_Unit_Name (Node1)
11497 2 => True, -- Visible_Declarations (List2)
11498 3 => True, -- Private_Declarations (List3)
11499 4 => True, -- End_Label (Node4)
11500 5 => False), -- Generic_Parent (Node5-Sem)
11503 (1 => True, -- Defining_Unit_Name (Node1)
11504 2 => True, -- Declarations (List2)
11505 3 => False, -- unused
11506 4 => True, -- Handled_Statement_Sequence (Node4)
11507 5 => False), -- Corresponding_Spec (Node5-Sem)
11509 N_Private_Type_Declaration =>
11510 (1 => True, -- Defining_Identifier (Node1)
11511 2 => False, -- unused
11512 3 => False, -- unused
11513 4 => True, -- Discriminant_Specifications (List4)
11514 5 => False), -- unused
11516 N_Private_Extension_Declaration =>
11517 (1 => True, -- Defining_Identifier (Node1)
11518 2 => True, -- Interface_List (List2)
11519 3 => False, -- unused
11520 4 => True, -- Discriminant_Specifications (List4)
11521 5 => True), -- Subtype_Indication (Node5)
11523 N_Use_Package_Clause =>
11524 (1 => False, -- unused
11525 2 => True, -- Names (List2)
11526 3 => False, -- Next_Use_Clause (Node3-Sem)
11527 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11528 5 => False), -- unused
11530 N_Use_Type_Clause =>
11531 (1 => False, -- unused
11532 2 => True, -- Subtype_Marks (List2)
11533 3 => False, -- Next_Use_Clause (Node3-Sem)
11534 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11535 5 => False), -- unused
11537 N_Object_Renaming_Declaration =>
11538 (1 => True, -- Defining_Identifier (Node1)
11539 2 => True, -- Name (Node2)
11540 3 => True, -- Access_Definition (Node3)
11541 4 => True, -- Subtype_Mark (Node4)
11542 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11544 N_Exception_Renaming_Declaration =>
11545 (1 => True, -- Defining_Identifier (Node1)
11546 2 => True, -- Name (Node2)
11547 3 => False, -- unused
11548 4 => False, -- unused
11549 5 => False), -- unused
11551 N_Package_Renaming_Declaration =>
11552 (1 => True, -- Defining_Unit_Name (Node1)
11553 2 => True, -- Name (Node2)
11554 3 => False, -- unused
11555 4 => False, -- Parent_Spec (Node4-Sem)
11556 5 => False), -- unused
11558 N_Subprogram_Renaming_Declaration =>
11559 (1 => True, -- Specification (Node1)
11560 2 => True, -- Name (Node2)
11561 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
11562 4 => False, -- Parent_Spec (Node4-Sem)
11563 5 => False), -- Corresponding_Spec (Node5-Sem)
11565 N_Generic_Package_Renaming_Declaration =>
11566 (1 => True, -- Defining_Unit_Name (Node1)
11567 2 => True, -- Name (Node2)
11568 3 => False, -- unused
11569 4 => False, -- Parent_Spec (Node4-Sem)
11570 5 => False), -- unused
11572 N_Generic_Procedure_Renaming_Declaration =>
11573 (1 => True, -- Defining_Unit_Name (Node1)
11574 2 => True, -- Name (Node2)
11575 3 => False, -- unused
11576 4 => False, -- Parent_Spec (Node4-Sem)
11577 5 => False), -- unused
11579 N_Generic_Function_Renaming_Declaration =>
11580 (1 => True, -- Defining_Unit_Name (Node1)
11581 2 => True, -- Name (Node2)
11582 3 => False, -- unused
11583 4 => False, -- Parent_Spec (Node4-Sem)
11584 5 => False), -- unused
11586 N_Task_Type_Declaration =>
11587 (1 => True, -- Defining_Identifier (Node1)
11588 2 => True, -- Interface_List (List2)
11589 3 => True, -- Task_Definition (Node3)
11590 4 => True, -- Discriminant_Specifications (List4)
11591 5 => False), -- Corresponding_Body (Node5-Sem)
11593 N_Single_Task_Declaration =>
11594 (1 => True, -- Defining_Identifier (Node1)
11595 2 => True, -- Interface_List (List2)
11596 3 => True, -- Task_Definition (Node3)
11597 4 => False, -- unused
11598 5 => False), -- unused
11600 N_Task_Definition =>
11601 (1 => False, -- unused
11602 2 => True, -- Visible_Declarations (List2)
11603 3 => True, -- Private_Declarations (List3)
11604 4 => True, -- End_Label (Node4)
11605 5 => False), -- unused
11608 (1 => True, -- Defining_Identifier (Node1)
11609 2 => True, -- Declarations (List2)
11610 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11611 4 => True, -- Handled_Statement_Sequence (Node4)
11612 5 => False), -- Corresponding_Spec (Node5-Sem)
11614 N_Protected_Type_Declaration =>
11615 (1 => True, -- Defining_Identifier (Node1)
11616 2 => True, -- Interface_List (List2)
11617 3 => True, -- Protected_Definition (Node3)
11618 4 => True, -- Discriminant_Specifications (List4)
11619 5 => False), -- Corresponding_Body (Node5-Sem)
11621 N_Single_Protected_Declaration =>
11622 (1 => True, -- Defining_Identifier (Node1)
11623 2 => True, -- Interface_List (List2)
11624 3 => True, -- Protected_Definition (Node3)
11625 4 => False, -- unused
11626 5 => False), -- unused
11628 N_Protected_Definition =>
11629 (1 => False, -- unused
11630 2 => True, -- Visible_Declarations (List2)
11631 3 => True, -- Private_Declarations (List3)
11632 4 => True, -- End_Label (Node4)
11633 5 => False), -- unused
11635 N_Protected_Body =>
11636 (1 => True, -- Defining_Identifier (Node1)
11637 2 => True, -- Declarations (List2)
11638 3 => False, -- unused
11639 4 => True, -- End_Label (Node4)
11640 5 => False), -- Corresponding_Spec (Node5-Sem)
11642 N_Entry_Declaration =>
11643 (1 => True, -- Defining_Identifier (Node1)
11644 2 => False, -- unused
11645 3 => True, -- Parameter_Specifications (List3)
11646 4 => True, -- Discrete_Subtype_Definition (Node4)
11647 5 => False), -- Corresponding_Body (Node5-Sem)
11649 N_Accept_Statement =>
11650 (1 => True, -- Entry_Direct_Name (Node1)
11651 2 => True, -- Declarations (List2)
11652 3 => True, -- Parameter_Specifications (List3)
11653 4 => True, -- Handled_Statement_Sequence (Node4)
11654 5 => True), -- Entry_Index (Node5)
11657 (1 => True, -- Defining_Identifier (Node1)
11658 2 => True, -- Declarations (List2)
11659 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11660 4 => True, -- Handled_Statement_Sequence (Node4)
11661 5 => True), -- Entry_Body_Formal_Part (Node5)
11663 N_Entry_Body_Formal_Part =>
11664 (1 => True, -- Condition (Node1)
11665 2 => False, -- unused
11666 3 => True, -- Parameter_Specifications (List3)
11667 4 => True, -- Entry_Index_Specification (Node4)
11668 5 => False), -- unused
11670 N_Entry_Index_Specification =>
11671 (1 => True, -- Defining_Identifier (Node1)
11672 2 => False, -- unused
11673 3 => False, -- unused
11674 4 => True, -- Discrete_Subtype_Definition (Node4)
11675 5 => False), -- unused
11677 N_Entry_Call_Statement =>
11678 (1 => False, -- unused
11679 2 => True, -- Name (Node2)
11680 3 => True, -- Parameter_Associations (List3)
11681 4 => False, -- First_Named_Actual (Node4-Sem)
11682 5 => False), -- unused
11684 N_Requeue_Statement =>
11685 (1 => False, -- unused
11686 2 => True, -- Name (Node2)
11687 3 => False, -- unused
11688 4 => False, -- unused
11689 5 => False), -- unused
11691 N_Delay_Until_Statement =>
11692 (1 => False, -- unused
11693 2 => False, -- unused
11694 3 => True, -- Expression (Node3)
11695 4 => False, -- unused
11696 5 => False), -- unused
11698 N_Delay_Relative_Statement =>
11699 (1 => False, -- unused
11700 2 => False, -- unused
11701 3 => True, -- Expression (Node3)
11702 4 => False, -- unused
11703 5 => False), -- unused
11705 N_Selective_Accept =>
11706 (1 => True, -- Select_Alternatives (List1)
11707 2 => False, -- unused
11708 3 => False, -- unused
11709 4 => True, -- Else_Statements (List4)
11710 5 => False), -- unused
11712 N_Accept_Alternative =>
11713 (1 => True, -- Condition (Node1)
11714 2 => True, -- Accept_Statement (Node2)
11715 3 => True, -- Statements (List3)
11716 4 => True, -- Pragmas_Before (List4)
11717 5 => False), -- Accept_Handler_Records (List5-Sem)
11719 N_Delay_Alternative =>
11720 (1 => True, -- Condition (Node1)
11721 2 => True, -- Delay_Statement (Node2)
11722 3 => True, -- Statements (List3)
11723 4 => True, -- Pragmas_Before (List4)
11724 5 => False), -- unused
11726 N_Terminate_Alternative =>
11727 (1 => True, -- Condition (Node1)
11728 2 => False, -- unused
11729 3 => False, -- unused
11730 4 => True, -- Pragmas_Before (List4)
11731 5 => True), -- Pragmas_After (List5)
11733 N_Timed_Entry_Call =>
11734 (1 => True, -- Entry_Call_Alternative (Node1)
11735 2 => False, -- unused
11736 3 => False, -- unused
11737 4 => True, -- Delay_Alternative (Node4)
11738 5 => False), -- unused
11740 N_Entry_Call_Alternative =>
11741 (1 => True, -- Entry_Call_Statement (Node1)
11742 2 => False, -- unused
11743 3 => True, -- Statements (List3)
11744 4 => True, -- Pragmas_Before (List4)
11745 5 => False), -- unused
11747 N_Conditional_Entry_Call =>
11748 (1 => True, -- Entry_Call_Alternative (Node1)
11749 2 => False, -- unused
11750 3 => False, -- unused
11751 4 => True, -- Else_Statements (List4)
11752 5 => False), -- unused
11754 N_Asynchronous_Select =>
11755 (1 => True, -- Triggering_Alternative (Node1)
11756 2 => True, -- Abortable_Part (Node2)
11757 3 => False, -- unused
11758 4 => False, -- unused
11759 5 => False), -- unused
11761 N_Triggering_Alternative =>
11762 (1 => True, -- Triggering_Statement (Node1)
11763 2 => False, -- unused
11764 3 => True, -- Statements (List3)
11765 4 => True, -- Pragmas_Before (List4)
11766 5 => False), -- unused
11768 N_Abortable_Part =>
11769 (1 => False, -- unused
11770 2 => False, -- unused
11771 3 => True, -- Statements (List3)
11772 4 => False, -- unused
11773 5 => False), -- unused
11775 N_Abort_Statement =>
11776 (1 => False, -- unused
11777 2 => True, -- Names (List2)
11778 3 => False, -- unused
11779 4 => False, -- unused
11780 5 => False), -- unused
11782 N_Compilation_Unit =>
11783 (1 => True, -- Context_Items (List1)
11784 2 => True, -- Unit (Node2)
11785 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
11786 4 => False, -- Library_Unit (Node4-Sem)
11787 5 => True), -- Aux_Decls_Node (Node5)
11789 N_Compilation_Unit_Aux =>
11790 (1 => True, -- Actions (List1)
11791 2 => True, -- Declarations (List2)
11792 3 => False, -- Default_Storage_Pool (Node3)
11793 4 => True, -- Config_Pragmas (List4)
11794 5 => True), -- Pragmas_After (List5)
11797 (1 => False, -- unused
11798 2 => True, -- Name (Node2)
11799 3 => False, -- unused
11800 4 => False, -- Library_Unit (Node4-Sem)
11801 5 => False), -- Corresponding_Spec (Node5-Sem)
11803 N_Subprogram_Body_Stub =>
11804 (1 => True, -- Specification (Node1)
11805 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11806 3 => False, -- unused
11807 4 => False, -- Library_Unit (Node4-Sem)
11808 5 => False), -- Corresponding_Body (Node5-Sem)
11810 N_Package_Body_Stub =>
11811 (1 => True, -- Defining_Identifier (Node1)
11812 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11813 3 => False, -- unused
11814 4 => False, -- Library_Unit (Node4-Sem)
11815 5 => False), -- Corresponding_Body (Node5-Sem)
11817 N_Task_Body_Stub =>
11818 (1 => True, -- Defining_Identifier (Node1)
11819 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11820 3 => False, -- unused
11821 4 => False, -- Library_Unit (Node4-Sem)
11822 5 => False), -- Corresponding_Body (Node5-Sem)
11824 N_Protected_Body_Stub =>
11825 (1 => True, -- Defining_Identifier (Node1)
11826 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11827 3 => False, -- unused
11828 4 => False, -- Library_Unit (Node4-Sem)
11829 5 => False), -- Corresponding_Body (Node5-Sem)
11832 (1 => True, -- Proper_Body (Node1)
11833 2 => True, -- Name (Node2)
11834 3 => False, -- Corresponding_Stub (Node3-Sem)
11835 4 => False, -- unused
11836 5 => False), -- unused
11838 N_Exception_Declaration =>
11839 (1 => True, -- Defining_Identifier (Node1)
11840 2 => False, -- unused
11841 3 => False, -- Expression (Node3-Sem)
11842 4 => False, -- unused
11843 5 => False), -- unused
11845 N_Handled_Sequence_Of_Statements =>
11846 (1 => True, -- At_End_Proc (Node1)
11847 2 => False, -- First_Real_Statement (Node2-Sem)
11848 3 => True, -- Statements (List3)
11849 4 => True, -- End_Label (Node4)
11850 5 => True), -- Exception_Handlers (List5)
11852 N_Exception_Handler =>
11853 (1 => False, -- Local_Raise_Statements (Elist1)
11854 2 => True, -- Choice_Parameter (Node2)
11855 3 => True, -- Statements (List3)
11856 4 => True, -- Exception_Choices (List4)
11857 5 => False), -- Exception_Label (Node5)
11859 N_Raise_Statement =>
11860 (1 => False, -- unused
11861 2 => True, -- Name (Node2)
11862 3 => True, -- Expression (Node3)
11863 4 => False, -- unused
11864 5 => False), -- unused
11866 N_Raise_Expression =>
11867 (1 => False, -- unused
11868 2 => True, -- Name (Node2)
11869 3 => True, -- Expression (Node3)
11870 4 => False, -- unused
11871 5 => False), -- Etype (Node5-Sem)
11873 N_Generic_Subprogram_Declaration =>
11874 (1 => True, -- Specification (Node1)
11875 2 => True, -- Generic_Formal_Declarations (List2)
11876 3 => False, -- unused
11877 4 => False, -- Parent_Spec (Node4-Sem)
11878 5 => False), -- Corresponding_Body (Node5-Sem)
11880 N_Generic_Package_Declaration =>
11881 (1 => True, -- Specification (Node1)
11882 2 => True, -- Generic_Formal_Declarations (List2)
11883 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11884 4 => False, -- Parent_Spec (Node4-Sem)
11885 5 => False), -- Corresponding_Body (Node5-Sem)
11887 N_Package_Instantiation =>
11888 (1 => True, -- Defining_Unit_Name (Node1)
11889 2 => True, -- Name (Node2)
11890 3 => True, -- Generic_Associations (List3)
11891 4 => False, -- Parent_Spec (Node4-Sem)
11892 5 => False), -- Instance_Spec (Node5-Sem)
11894 N_Procedure_Instantiation =>
11895 (1 => True, -- Defining_Unit_Name (Node1)
11896 2 => True, -- Name (Node2)
11897 3 => True, -- Generic_Associations (List3)
11898 4 => False, -- Parent_Spec (Node4-Sem)
11899 5 => False), -- Instance_Spec (Node5-Sem)
11901 N_Function_Instantiation =>
11902 (1 => True, -- Defining_Unit_Name (Node1)
11903 2 => True, -- Name (Node2)
11904 3 => True, -- Generic_Associations (List3)
11905 4 => False, -- Parent_Spec (Node4-Sem)
11906 5 => False), -- Instance_Spec (Node5-Sem)
11908 N_Generic_Association =>
11909 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
11910 2 => True, -- Selector_Name (Node2)
11911 3 => False, -- unused
11912 4 => False, -- unused
11913 5 => False), -- unused
11915 N_Formal_Object_Declaration =>
11916 (1 => True, -- Defining_Identifier (Node1)
11917 2 => False, -- unused
11918 3 => True, -- Access_Definition (Node3)
11919 4 => True, -- Subtype_Mark (Node4)
11920 5 => True), -- Default_Expression (Node5)
11922 N_Formal_Type_Declaration =>
11923 (1 => True, -- Defining_Identifier (Node1)
11924 2 => False, -- unused
11925 3 => True, -- Formal_Type_Definition (Node3)
11926 4 => True, -- Discriminant_Specifications (List4)
11927 5 => False), -- unused
11929 N_Formal_Private_Type_Definition =>
11930 (1 => False, -- unused
11931 2 => False, -- unused
11932 3 => False, -- unused
11933 4 => False, -- unused
11934 5 => False), -- unused
11936 N_Formal_Incomplete_Type_Definition =>
11937 (1 => False, -- unused
11938 2 => False, -- unused
11939 3 => False, -- unused
11940 4 => False, -- unused
11941 5 => False), -- unused
11943 N_Formal_Derived_Type_Definition =>
11944 (1 => False, -- unused
11945 2 => True, -- Interface_List (List2)
11946 3 => False, -- unused
11947 4 => True, -- Subtype_Mark (Node4)
11948 5 => False), -- unused
11950 N_Formal_Discrete_Type_Definition =>
11951 (1 => False, -- unused
11952 2 => False, -- unused
11953 3 => False, -- unused
11954 4 => False, -- unused
11955 5 => False), -- unused
11957 N_Formal_Signed_Integer_Type_Definition =>
11958 (1 => False, -- unused
11959 2 => False, -- unused
11960 3 => False, -- unused
11961 4 => False, -- unused
11962 5 => False), -- unused
11964 N_Formal_Modular_Type_Definition =>
11965 (1 => False, -- unused
11966 2 => False, -- unused
11967 3 => False, -- unused
11968 4 => False, -- unused
11969 5 => False), -- unused
11971 N_Formal_Floating_Point_Definition =>
11972 (1 => False, -- unused
11973 2 => False, -- unused
11974 3 => False, -- unused
11975 4 => False, -- unused
11976 5 => False), -- unused
11978 N_Formal_Ordinary_Fixed_Point_Definition =>
11979 (1 => False, -- unused
11980 2 => False, -- unused
11981 3 => False, -- unused
11982 4 => False, -- unused
11983 5 => False), -- unused
11985 N_Formal_Decimal_Fixed_Point_Definition =>
11986 (1 => False, -- unused
11987 2 => False, -- unused
11988 3 => False, -- unused
11989 4 => False, -- unused
11990 5 => False), -- unused
11992 N_Formal_Concrete_Subprogram_Declaration =>
11993 (1 => True, -- Specification (Node1)
11994 2 => True, -- Default_Name (Node2)
11995 3 => False, -- unused
11996 4 => False, -- unused
11997 5 => False), -- unused
11999 N_Formal_Abstract_Subprogram_Declaration =>
12000 (1 => True, -- Specification (Node1)
12001 2 => True, -- Default_Name (Node2)
12002 3 => False, -- unused
12003 4 => False, -- unused
12004 5 => False), -- unused
12006 N_Formal_Package_Declaration =>
12007 (1 => True, -- Defining_Identifier (Node1)
12008 2 => True, -- Name (Node2)
12009 3 => True, -- Generic_Associations (List3)
12010 4 => False, -- unused
12011 5 => False), -- Instance_Spec (Node5-Sem)
12013 N_Attribute_Definition_Clause =>
12014 (1 => True, -- Chars (Name1)
12015 2 => True, -- Name (Node2)
12016 3 => True, -- Expression (Node3)
12017 4 => False, -- unused
12018 5 => False), -- Next_Rep_Item (Node5-Sem)
12020 N_Aspect_Specification =>
12021 (1 => True, -- Identifier (Node1)
12022 2 => False, -- Aspect_Rep_Item (Node2-Sem)
12023 3 => True, -- Expression (Node3)
12024 4 => False, -- Entity (Node4-Sem)
12025 5 => False), -- Next_Rep_Item (Node5-Sem)
12027 N_Enumeration_Representation_Clause =>
12028 (1 => True, -- Identifier (Node1)
12029 2 => False, -- unused
12030 3 => True, -- Array_Aggregate (Node3)
12031 4 => False, -- unused
12032 5 => False), -- Next_Rep_Item (Node5-Sem)
12034 N_Record_Representation_Clause =>
12035 (1 => True, -- Identifier (Node1)
12036 2 => True, -- Mod_Clause (Node2)
12037 3 => True, -- Component_Clauses (List3)
12038 4 => False, -- unused
12039 5 => False), -- Next_Rep_Item (Node5-Sem)
12041 N_Component_Clause =>
12042 (1 => True, -- Component_Name (Node1)
12043 2 => True, -- Position (Node2)
12044 3 => True, -- First_Bit (Node3)
12045 4 => True, -- Last_Bit (Node4)
12046 5 => False), -- unused
12048 N_Code_Statement =>
12049 (1 => False, -- unused
12050 2 => False, -- unused
12051 3 => True, -- Expression (Node3)
12052 4 => False, -- unused
12053 5 => False), -- unused
12055 N_Op_Rotate_Left =>
12056 (1 => True, -- Chars (Name1)
12057 2 => True, -- Left_Opnd (Node2)
12058 3 => True, -- Right_Opnd (Node3)
12059 4 => False, -- Entity (Node4-Sem)
12060 5 => False), -- Etype (Node5-Sem)
12062 N_Op_Rotate_Right =>
12063 (1 => True, -- Chars (Name1)
12064 2 => True, -- Left_Opnd (Node2)
12065 3 => True, -- Right_Opnd (Node3)
12066 4 => False, -- Entity (Node4-Sem)
12067 5 => False), -- Etype (Node5-Sem)
12070 (1 => True, -- Chars (Name1)
12071 2 => True, -- Left_Opnd (Node2)
12072 3 => True, -- Right_Opnd (Node3)
12073 4 => False, -- Entity (Node4-Sem)
12074 5 => False), -- Etype (Node5-Sem)
12076 N_Op_Shift_Right_Arithmetic =>
12077 (1 => True, -- Chars (Name1)
12078 2 => True, -- Left_Opnd (Node2)
12079 3 => True, -- Right_Opnd (Node3)
12080 4 => False, -- Entity (Node4-Sem)
12081 5 => False), -- Etype (Node5-Sem)
12083 N_Op_Shift_Right =>
12084 (1 => True, -- Chars (Name1)
12085 2 => True, -- Left_Opnd (Node2)
12086 3 => True, -- Right_Opnd (Node3)
12087 4 => False, -- Entity (Node4-Sem)
12088 5 => False), -- Etype (Node5-Sem)
12090 N_Delta_Constraint =>
12091 (1 => False, -- unused
12092 2 => False, -- unused
12093 3 => True, -- Delta_Expression (Node3)
12094 4 => True, -- Range_Constraint (Node4)
12095 5 => False), -- unused
12098 (1 => True, -- Identifier (Node1)
12099 2 => False, -- unused
12100 3 => True, -- Expression (Node3)
12101 4 => False, -- unused
12102 5 => False), -- unused
12105 (1 => False, -- unused
12106 2 => False, -- unused
12107 3 => True, -- Expression (Node3)
12108 4 => True, -- Pragmas_Before (List4)
12109 5 => False), -- unused
12112 (1 => True, -- Expressions (List1)
12113 2 => False, -- Then_Actions (List2-Sem)
12114 3 => False, -- Else_Actions (List3-Sem)
12115 4 => False, -- unused
12116 5 => False), -- Etype (Node5-Sem)
12118 N_Compound_Statement =>
12119 (1 => True, -- Actions (List1)
12120 2 => False, -- unused
12121 3 => False, -- unused
12122 4 => False, -- unused
12123 5 => False), -- unused
12126 (1 => False, -- Pre_Post_Conditions (Node1)
12127 2 => False, -- Contract_Test_Cases (Node2)
12128 3 => False, -- Classifications (Node3)
12129 4 => False, -- unused
12130 5 => False), -- unused
12133 (1 => True, -- Chars (Name1)
12134 2 => True, -- Selector_Name (Node2)
12135 3 => True, -- Prefix (Node3)
12136 4 => False, -- Entity (Node4-Sem)
12137 5 => False), -- Etype (Node5-Sem)
12139 N_Expression_With_Actions =>
12140 (1 => True, -- Actions (List1)
12141 2 => False, -- unused
12142 3 => True, -- Expression (Node3)
12143 4 => False, -- unused
12144 5 => False), -- unused
12146 N_Free_Statement =>
12147 (1 => False, -- Storage_Pool (Node1-Sem)
12148 2 => False, -- Procedure_To_Call (Node2-Sem)
12149 3 => True, -- Expression (Node3)
12150 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
12151 5 => False), -- unused
12154 (1 => True, -- Actions (List1)
12155 2 => False, -- Access_Types_To_Process (Elist2-Sem)
12156 3 => False, -- TSS_Elist (Elist3-Sem)
12157 4 => False, -- Entity (Node4-Sem)
12158 5 => False), -- First_Subtype_Link (Node5-Sem)
12160 N_Freeze_Generic_Entity =>
12161 (1 => False, -- unused
12162 2 => False, -- unused
12163 3 => False, -- unused
12164 4 => False, -- Entity (Node4-Sem)
12165 5 => False), -- unused
12167 N_Implicit_Label_Declaration =>
12168 (1 => True, -- Defining_Identifier (Node1)
12169 2 => False, -- Label_Construct (Node2-Sem)
12170 3 => False, -- unused
12171 4 => False, -- unused
12172 5 => False), -- unused
12174 N_Itype_Reference =>
12175 (1 => False, -- Itype (Node1-Sem)
12176 2 => False, -- unused
12177 3 => False, -- unused
12178 4 => False, -- unused
12179 5 => False), -- unused
12181 N_Raise_Constraint_Error =>
12182 (1 => True, -- Condition (Node1)
12183 2 => False, -- unused
12184 3 => True, -- Reason (Uint3)
12185 4 => False, -- unused
12186 5 => False), -- Etype (Node5-Sem)
12188 N_Raise_Program_Error =>
12189 (1 => True, -- Condition (Node1)
12190 2 => False, -- unused
12191 3 => True, -- Reason (Uint3)
12192 4 => False, -- unused
12193 5 => False), -- Etype (Node5-Sem)
12195 N_Raise_Storage_Error =>
12196 (1 => True, -- Condition (Node1)
12197 2 => False, -- unused
12198 3 => True, -- Reason (Uint3)
12199 4 => False, -- unused
12200 5 => False), -- Etype (Node5-Sem)
12202 N_Push_Constraint_Error_Label =>
12203 (1 => False, -- unused
12204 2 => False, -- unused
12205 3 => False, -- unused
12206 4 => False, -- unused
12207 5 => False), -- unused
12209 N_Push_Program_Error_Label =>
12210 (1 => False, -- Exception_Label
12211 2 => False, -- unused
12212 3 => False, -- unused
12213 4 => False, -- unused
12214 5 => False), -- Exception_Label
12216 N_Push_Storage_Error_Label =>
12217 (1 => False, -- Exception_Label
12218 2 => False, -- unused
12219 3 => False, -- unused
12220 4 => False, -- unused
12221 5 => False), -- Exception_Label
12223 N_Pop_Constraint_Error_Label =>
12224 (1 => False, -- unused
12225 2 => False, -- unused
12226 3 => False, -- unused
12227 4 => False, -- unused
12228 5 => False), -- unused
12230 N_Pop_Program_Error_Label =>
12231 (1 => False, -- unused
12232 2 => False, -- unused
12233 3 => False, -- unused
12234 4 => False, -- unused
12235 5 => False), -- unused
12237 N_Pop_Storage_Error_Label =>
12238 (1 => False, -- unused
12239 2 => False, -- unused
12240 3 => False, -- unused
12241 4 => False, -- unused
12242 5 => False), -- unused
12245 (1 => False, -- unused
12246 2 => False, -- unused
12247 3 => True, -- Prefix (Node3)
12248 4 => False, -- unused
12249 5 => False), -- Etype (Node5-Sem)
12251 N_Unchecked_Expression =>
12252 (1 => False, -- unused
12253 2 => False, -- unused
12254 3 => True, -- Expression (Node3)
12255 4 => False, -- unused
12256 5 => False), -- Etype (Node5-Sem)
12258 N_Unchecked_Type_Conversion =>
12259 (1 => False, -- unused
12260 2 => False, -- unused
12261 3 => True, -- Expression (Node3)
12262 4 => True, -- Subtype_Mark (Node4)
12263 5 => False), -- Etype (Node5-Sem)
12265 N_Validate_Unchecked_Conversion =>
12266 (1 => False, -- Source_Type (Node1-Sem)
12267 2 => False, -- Target_Type (Node2-Sem)
12268 3 => False, -- unused
12269 4 => False, -- unused
12270 5 => False), -- unused
12272 -- Entries for SCIL nodes
12274 N_SCIL_Dispatch_Table_Tag_Init =>
12275 (1 => False, -- unused
12276 2 => False, -- unused
12277 3 => False, -- unused
12278 4 => False, -- SCIL_Entity (Node4-Sem)
12279 5 => False), -- unused
12281 N_SCIL_Dispatching_Call =>
12282 (1 => False, -- unused
12283 2 => False, -- SCIL_Target_Prim (Node2-Sem)
12284 3 => False, -- unused
12285 4 => False, -- SCIL_Entity (Node4-Sem)
12286 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
12288 N_SCIL_Membership_Test =>
12289 (1 => False, -- unused
12290 2 => False, -- unused
12291 3 => False, -- unused
12292 4 => False, -- SCIL_Entity (Node4-Sem)
12293 5 => False), -- SCIL_Tag_Value (Node5-Sem)
12295 -- Entries for Empty, Error and Unused. Even thought these have a Chars
12296 -- field for debugging purposes, they are not really syntactic fields, so
12297 -- we mark all fields as unused.
12300 (1 => False, -- unused
12301 2 => False, -- unused
12302 3 => False, -- unused
12303 4 => False, -- unused
12304 5 => False), -- unused
12307 (1 => False, -- unused
12308 2 => False, -- unused
12309 3 => False, -- unused
12310 4 => False, -- unused
12311 5 => False), -- unused
12313 N_Unused_At_Start =>
12314 (1 => False, -- unused
12315 2 => False, -- unused
12316 3 => False, -- unused
12317 4 => False, -- unused
12318 5 => False), -- unused
12321 (1 => False, -- unused
12322 2 => False, -- unused
12323 3 => False, -- unused
12324 4 => False, -- unused
12325 5 => False)); -- unused
12327 --------------------
12328 -- Inline Pragmas --
12329 --------------------
12331 pragma Inline (ABE_Is_Certain);
12332 pragma Inline (Abort_Present);
12333 pragma Inline (Abortable_Part);
12334 pragma Inline (Abstract_Present);
12335 pragma Inline (Accept_Handler_Records);
12336 pragma Inline (Accept_Statement);
12337 pragma Inline (Access_Definition);
12338 pragma Inline (Access_To_Subprogram_Definition);
12339 pragma Inline (Access_Types_To_Process);
12340 pragma Inline (Actions);
12341 pragma Inline (Activation_Chain_Entity);
12342 pragma Inline (Acts_As_Spec);
12343 pragma Inline (Actual_Designated_Subtype);
12344 pragma Inline (Address_Warning_Posted);
12345 pragma Inline (Aggregate_Bounds);
12346 pragma Inline (Aliased_Present);
12347 pragma Inline (All_Others);
12348 pragma Inline (All_Present);
12349 pragma Inline (Alternatives);
12350 pragma Inline (Ancestor_Part);
12351 pragma Inline (Atomic_Sync_Required);
12352 pragma Inline (Array_Aggregate);
12353 pragma Inline (Aspect_Rep_Item);
12354 pragma Inline (Assignment_OK);
12355 pragma Inline (Associated_Node);
12356 pragma Inline (At_End_Proc);
12357 pragma Inline (Attribute_Name);
12358 pragma Inline (Aux_Decls_Node);
12359 pragma Inline (Backwards_OK);
12360 pragma Inline (Bad_Is_Detected);
12361 pragma Inline (Body_To_Inline);
12362 pragma Inline (Body_Required);
12363 pragma Inline (By_Ref);
12364 pragma Inline (Box_Present);
12365 pragma Inline (Char_Literal_Value);
12366 pragma Inline (Chars);
12367 pragma Inline (Check_Address_Alignment);
12368 pragma Inline (Choice_Parameter);
12369 pragma Inline (Choices);
12370 pragma Inline (Class_Present);
12371 pragma Inline (Classifications);
12372 pragma Inline (Comes_From_Extended_Return_Statement);
12373 pragma Inline (Compile_Time_Known_Aggregate);
12374 pragma Inline (Component_Associations);
12375 pragma Inline (Component_Clauses);
12376 pragma Inline (Component_Definition);
12377 pragma Inline (Component_Items);
12378 pragma Inline (Component_List);
12379 pragma Inline (Component_Name);
12380 pragma Inline (Componentwise_Assignment);
12381 pragma Inline (Condition);
12382 pragma Inline (Condition_Actions);
12383 pragma Inline (Config_Pragmas);
12384 pragma Inline (Constant_Present);
12385 pragma Inline (Constraint);
12386 pragma Inline (Constraints);
12387 pragma Inline (Context_Installed);
12388 pragma Inline (Context_Items);
12389 pragma Inline (Context_Pending);
12390 pragma Inline (Contract_Test_Cases);
12391 pragma Inline (Controlling_Argument);
12392 pragma Inline (Convert_To_Return_False);
12393 pragma Inline (Conversion_OK);
12394 pragma Inline (Corresponding_Aspect);
12395 pragma Inline (Corresponding_Body);
12396 pragma Inline (Corresponding_Formal_Spec);
12397 pragma Inline (Corresponding_Generic_Association);
12398 pragma Inline (Corresponding_Integer_Value);
12399 pragma Inline (Corresponding_Spec);
12400 pragma Inline (Corresponding_Spec_Of_Stub);
12401 pragma Inline (Corresponding_Stub);
12402 pragma Inline (Dcheck_Function);
12403 pragma Inline (Declarations);
12404 pragma Inline (Default_Expression);
12405 pragma Inline (Default_Storage_Pool);
12406 pragma Inline (Default_Name);
12407 pragma Inline (Defining_Identifier);
12408 pragma Inline (Defining_Unit_Name);
12409 pragma Inline (Delay_Alternative);
12410 pragma Inline (Delay_Statement);
12411 pragma Inline (Delta_Expression);
12412 pragma Inline (Digits_Expression);
12413 pragma Inline (Discr_Check_Funcs_Built);
12414 pragma Inline (Discrete_Choices);
12415 pragma Inline (Discrete_Range);
12416 pragma Inline (Discrete_Subtype_Definition);
12417 pragma Inline (Discrete_Subtype_Definitions);
12418 pragma Inline (Discriminant_Specifications);
12419 pragma Inline (Discriminant_Type);
12420 pragma Inline (Do_Accessibility_Check);
12421 pragma Inline (Do_Discriminant_Check);
12422 pragma Inline (Do_Length_Check);
12423 pragma Inline (Do_Division_Check);
12424 pragma Inline (Do_Overflow_Check);
12425 pragma Inline (Do_Range_Check);
12426 pragma Inline (Do_Storage_Check);
12427 pragma Inline (Do_Tag_Check);
12428 pragma Inline (Elaborate_Present);
12429 pragma Inline (Elaborate_All_Desirable);
12430 pragma Inline (Elaborate_All_Present);
12431 pragma Inline (Elaborate_Desirable);
12432 pragma Inline (Elaboration_Boolean);
12433 pragma Inline (Else_Actions);
12434 pragma Inline (Else_Statements);
12435 pragma Inline (Elsif_Parts);
12436 pragma Inline (Enclosing_Variant);
12437 pragma Inline (End_Label);
12438 pragma Inline (End_Span);
12439 pragma Inline (Entity);
12440 pragma Inline (Entity_Or_Associated_Node);
12441 pragma Inline (Entry_Body_Formal_Part);
12442 pragma Inline (Entry_Call_Alternative);
12443 pragma Inline (Entry_Call_Statement);
12444 pragma Inline (Entry_Direct_Name);
12445 pragma Inline (Entry_Index);
12446 pragma Inline (Entry_Index_Specification);
12447 pragma Inline (Etype);
12448 pragma Inline (Exception_Choices);
12449 pragma Inline (Exception_Handlers);
12450 pragma Inline (Exception_Junk);
12451 pragma Inline (Exception_Label);
12452 pragma Inline (Expansion_Delayed);
12453 pragma Inline (Explicit_Actual_Parameter);
12454 pragma Inline (Explicit_Generic_Actual_Parameter);
12455 pragma Inline (Expression);
12456 pragma Inline (Expressions);
12457 pragma Inline (First_Bit);
12458 pragma Inline (First_Inlined_Subprogram);
12459 pragma Inline (First_Name);
12460 pragma Inline (First_Named_Actual);
12461 pragma Inline (First_Real_Statement);
12462 pragma Inline (First_Subtype_Link);
12463 pragma Inline (Float_Truncate);
12464 pragma Inline (Formal_Type_Definition);
12465 pragma Inline (Forwards_OK);
12466 pragma Inline (From_Aspect_Specification);
12467 pragma Inline (From_At_End);
12468 pragma Inline (From_At_Mod);
12469 pragma Inline (From_Default);
12470 pragma Inline (Generalized_Indexing);
12471 pragma Inline (Generic_Associations);
12472 pragma Inline (Generic_Formal_Declarations);
12473 pragma Inline (Generic_Parent);
12474 pragma Inline (Generic_Parent_Type);
12475 pragma Inline (Handled_Statement_Sequence);
12476 pragma Inline (Handler_List_Entry);
12477 pragma Inline (Has_Created_Identifier);
12478 pragma Inline (Has_Dereference_Action);
12479 pragma Inline (Has_Dynamic_Length_Check);
12480 pragma Inline (Has_Dynamic_Range_Check);
12481 pragma Inline (Has_Init_Expression);
12482 pragma Inline (Has_Local_Raise);
12483 pragma Inline (Has_Self_Reference);
12484 pragma Inline (Has_SP_Choice);
12485 pragma Inline (Has_No_Elaboration_Code);
12486 pragma Inline (Has_Pragma_Suppress_All);
12487 pragma Inline (Has_Private_View);
12488 pragma Inline (Has_Relative_Deadline_Pragma);
12489 pragma Inline (Has_Storage_Size_Pragma);
12490 pragma Inline (Has_Wide_Character);
12491 pragma Inline (Has_Wide_Wide_Character);
12492 pragma Inline (Header_Size_Added);
12493 pragma Inline (Hidden_By_Use_Clause);
12494 pragma Inline (High_Bound);
12495 pragma Inline (Identifier);
12496 pragma Inline (Implicit_With);
12497 pragma Inline (Implicit_With_From_Instantiation);
12498 pragma Inline (Interface_List);
12499 pragma Inline (Interface_Present);
12500 pragma Inline (Includes_Infinities);
12501 pragma Inline (Import_Interface_Present);
12502 pragma Inline (In_Present);
12503 pragma Inline (Inherited_Discriminant);
12504 pragma Inline (Instance_Spec);
12505 pragma Inline (Intval);
12506 pragma Inline (Iterator_Specification);
12507 pragma Inline (Is_Accessibility_Actual);
12508 pragma Inline (Is_Asynchronous_Call_Block);
12509 pragma Inline (Is_Boolean_Aspect);
12510 pragma Inline (Is_Checked);
12511 pragma Inline (Is_Component_Left_Opnd);
12512 pragma Inline (Is_Component_Right_Opnd);
12513 pragma Inline (Is_Controlling_Actual);
12514 pragma Inline (Is_Delayed_Aspect);
12515 pragma Inline (Is_Disabled);
12516 pragma Inline (Is_Dynamic_Coextension);
12517 pragma Inline (Is_Elsif);
12518 pragma Inline (Is_Entry_Barrier_Function);
12519 pragma Inline (Is_Expanded_Build_In_Place_Call);
12520 pragma Inline (Is_Finalization_Wrapper);
12521 pragma Inline (Is_Folded_In_Parser);
12522 pragma Inline (Is_Ignored);
12523 pragma Inline (Is_In_Discriminant_Check);
12524 pragma Inline (Is_Machine_Number);
12525 pragma Inline (Is_Null_Loop);
12526 pragma Inline (Is_Overloaded);
12527 pragma Inline (Is_Power_Of_2_For_Shift);
12528 pragma Inline (Is_Prefixed_Call);
12529 pragma Inline (Is_Protected_Subprogram_Body);
12530 pragma Inline (Is_Static_Coextension);
12531 pragma Inline (Is_Static_Expression);
12532 pragma Inline (Is_Subprogram_Descriptor);
12533 pragma Inline (Is_Task_Allocation_Block);
12534 pragma Inline (Is_Task_Master);
12535 pragma Inline (Iteration_Scheme);
12536 pragma Inline (Itype);
12537 pragma Inline (Kill_Range_Check);
12538 pragma Inline (Last_Bit);
12539 pragma Inline (Last_Name);
12540 pragma Inline (Library_Unit);
12541 pragma Inline (Label_Construct);
12542 pragma Inline (Left_Opnd);
12543 pragma Inline (Limited_View_Installed);
12544 pragma Inline (Limited_Present);
12545 pragma Inline (Literals);
12546 pragma Inline (Local_Raise_Not_OK);
12547 pragma Inline (Local_Raise_Statements);
12548 pragma Inline (Loop_Actions);
12549 pragma Inline (Loop_Parameter_Specification);
12550 pragma Inline (Low_Bound);
12551 pragma Inline (Mod_Clause);
12552 pragma Inline (More_Ids);
12553 pragma Inline (Must_Be_Byte_Aligned);
12554 pragma Inline (Must_Not_Freeze);
12555 pragma Inline (Must_Not_Override);
12556 pragma Inline (Must_Override);
12557 pragma Inline (Name);
12558 pragma Inline (Names);
12559 pragma Inline (Next_Entity);
12560 pragma Inline (Next_Exit_Statement);
12561 pragma Inline (Next_Implicit_With);
12562 pragma Inline (Next_Named_Actual);
12563 pragma Inline (Next_Pragma);
12564 pragma Inline (Next_Rep_Item);
12565 pragma Inline (Next_Use_Clause);
12566 pragma Inline (No_Ctrl_Actions);
12567 pragma Inline (No_Elaboration_Check);
12568 pragma Inline (No_Entities_Ref_In_Spec);
12569 pragma Inline (No_Initialization);
12570 pragma Inline (No_Minimize_Eliminate);
12571 pragma Inline (No_Truncation);
12572 pragma Inline (Non_Aliased_Prefix);
12573 pragma Inline (Null_Present);
12574 pragma Inline (Null_Exclusion_Present);
12575 pragma Inline (Null_Exclusion_In_Return_Present);
12576 pragma Inline (Null_Record_Present);
12577 pragma Inline (Object_Definition);
12578 pragma Inline (Of_Present);
12579 pragma Inline (Original_Discriminant);
12580 pragma Inline (Original_Entity);
12581 pragma Inline (Others_Discrete_Choices);
12582 pragma Inline (Out_Present);
12583 pragma Inline (Parameter_Associations);
12584 pragma Inline (Parameter_Specifications);
12585 pragma Inline (Parameter_List_Truncated);
12586 pragma Inline (Parameter_Type);
12587 pragma Inline (Parent_Spec);
12588 pragma Inline (Position);
12589 pragma Inline (Pragma_Argument_Associations);
12590 pragma Inline (Pragma_Identifier);
12591 pragma Inline (Pragmas_After);
12592 pragma Inline (Pragmas_Before);
12593 pragma Inline (Pre_Post_Conditions);
12594 pragma Inline (Prefix);
12595 pragma Inline (Premature_Use);
12596 pragma Inline (Present_Expr);
12597 pragma Inline (Prev_Ids);
12598 pragma Inline (Print_In_Hex);
12599 pragma Inline (Private_Declarations);
12600 pragma Inline (Private_Present);
12601 pragma Inline (Procedure_To_Call);
12602 pragma Inline (Proper_Body);
12603 pragma Inline (Protected_Definition);
12604 pragma Inline (Protected_Present);
12605 pragma Inline (Raises_Constraint_Error);
12606 pragma Inline (Range_Constraint);
12607 pragma Inline (Range_Expression);
12608 pragma Inline (Real_Range_Specification);
12609 pragma Inline (Realval);
12610 pragma Inline (Reason);
12611 pragma Inline (Record_Extension_Part);
12612 pragma Inline (Redundant_Use);
12613 pragma Inline (Renaming_Exception);
12614 pragma Inline (Result_Definition);
12615 pragma Inline (Return_Object_Declarations);
12616 pragma Inline (Return_Statement_Entity);
12617 pragma Inline (Reverse_Present);
12618 pragma Inline (Right_Opnd);
12619 pragma Inline (Rounded_Result);
12620 pragma Inline (SCIL_Controlling_Tag);
12621 pragma Inline (SCIL_Entity);
12622 pragma Inline (SCIL_Tag_Value);
12623 pragma Inline (SCIL_Target_Prim);
12624 pragma Inline (Scope);
12625 pragma Inline (Select_Alternatives);
12626 pragma Inline (Selector_Name);
12627 pragma Inline (Selector_Names);
12628 pragma Inline (Shift_Count_OK);
12629 pragma Inline (Source_Type);
12630 pragma Inline (Specification);
12631 pragma Inline (Split_PPC);
12632 pragma Inline (Statements);
12633 pragma Inline (Storage_Pool);
12634 pragma Inline (Subpool_Handle_Name);
12635 pragma Inline (Strval);
12636 pragma Inline (Subtype_Indication);
12637 pragma Inline (Subtype_Mark);
12638 pragma Inline (Subtype_Marks);
12639 pragma Inline (Suppress_Assignment_Checks);
12640 pragma Inline (Suppress_Loop_Warnings);
12641 pragma Inline (Synchronized_Present);
12642 pragma Inline (Tagged_Present);
12643 pragma Inline (Target_Type);
12644 pragma Inline (Task_Definition);
12645 pragma Inline (Task_Present);
12646 pragma Inline (Then_Actions);
12647 pragma Inline (Then_Statements);
12648 pragma Inline (Triggering_Alternative);
12649 pragma Inline (Triggering_Statement);
12650 pragma Inline (Treat_Fixed_As_Integer);
12651 pragma Inline (TSS_Elist);
12652 pragma Inline (Type_Definition);
12653 pragma Inline (Unit);
12654 pragma Inline (Uninitialized_Variable);
12655 pragma Inline (Unknown_Discriminants_Present);
12656 pragma Inline (Unreferenced_In_Spec);
12657 pragma Inline (Variant_Part);
12658 pragma Inline (Variants);
12659 pragma Inline (Visible_Declarations);
12660 pragma Inline (Used_Operations);
12661 pragma Inline (Was_Originally_Stub);
12662 pragma Inline (Withed_Body);
12664 pragma Inline (Set_ABE_Is_Certain);
12665 pragma Inline (Set_Abort_Present);
12666 pragma Inline (Set_Abortable_Part);
12667 pragma Inline (Set_Abstract_Present);
12668 pragma Inline (Set_Accept_Handler_Records);
12669 pragma Inline (Set_Accept_Statement);
12670 pragma Inline (Set_Access_Definition);
12671 pragma Inline (Set_Access_To_Subprogram_Definition);
12672 pragma Inline (Set_Access_Types_To_Process);
12673 pragma Inline (Set_Actions);
12674 pragma Inline (Set_Activation_Chain_Entity);
12675 pragma Inline (Set_Acts_As_Spec);
12676 pragma Inline (Set_Actual_Designated_Subtype);
12677 pragma Inline (Set_Address_Warning_Posted);
12678 pragma Inline (Set_Aggregate_Bounds);
12679 pragma Inline (Set_Aliased_Present);
12680 pragma Inline (Set_All_Others);
12681 pragma Inline (Set_All_Present);
12682 pragma Inline (Set_Alternatives);
12683 pragma Inline (Set_Ancestor_Part);
12684 pragma Inline (Set_Array_Aggregate);
12685 pragma Inline (Set_Aspect_Rep_Item);
12686 pragma Inline (Set_Assignment_OK);
12687 pragma Inline (Set_Associated_Node);
12688 pragma Inline (Set_At_End_Proc);
12689 pragma Inline (Set_Atomic_Sync_Required);
12690 pragma Inline (Set_Attribute_Name);
12691 pragma Inline (Set_Aux_Decls_Node);
12692 pragma Inline (Set_Backwards_OK);
12693 pragma Inline (Set_Bad_Is_Detected);
12694 pragma Inline (Set_Body_Required);
12695 pragma Inline (Set_Body_To_Inline);
12696 pragma Inline (Set_Box_Present);
12697 pragma Inline (Set_By_Ref);
12698 pragma Inline (Set_Char_Literal_Value);
12699 pragma Inline (Set_Chars);
12700 pragma Inline (Set_Check_Address_Alignment);
12701 pragma Inline (Set_Choice_Parameter);
12702 pragma Inline (Set_Choices);
12703 pragma Inline (Set_Class_Present);
12704 pragma Inline (Set_Classifications);
12705 pragma Inline (Set_Comes_From_Extended_Return_Statement);
12706 pragma Inline (Set_Compile_Time_Known_Aggregate);
12707 pragma Inline (Set_Component_Associations);
12708 pragma Inline (Set_Component_Clauses);
12709 pragma Inline (Set_Component_Definition);
12710 pragma Inline (Set_Component_Items);
12711 pragma Inline (Set_Component_List);
12712 pragma Inline (Set_Component_Name);
12713 pragma Inline (Set_Componentwise_Assignment);
12714 pragma Inline (Set_Condition);
12715 pragma Inline (Set_Condition_Actions);
12716 pragma Inline (Set_Config_Pragmas);
12717 pragma Inline (Set_Constant_Present);
12718 pragma Inline (Set_Constraint);
12719 pragma Inline (Set_Constraints);
12720 pragma Inline (Set_Context_Installed);
12721 pragma Inline (Set_Context_Items);
12722 pragma Inline (Set_Context_Pending);
12723 pragma Inline (Set_Contract_Test_Cases);
12724 pragma Inline (Set_Controlling_Argument);
12725 pragma Inline (Set_Conversion_OK);
12726 pragma Inline (Set_Convert_To_Return_False);
12727 pragma Inline (Set_Corresponding_Aspect);
12728 pragma Inline (Set_Corresponding_Body);
12729 pragma Inline (Set_Corresponding_Formal_Spec);
12730 pragma Inline (Set_Corresponding_Generic_Association);
12731 pragma Inline (Set_Corresponding_Integer_Value);
12732 pragma Inline (Set_Corresponding_Spec);
12733 pragma Inline (Set_Corresponding_Spec_Of_Stub);
12734 pragma Inline (Set_Corresponding_Stub);
12735 pragma Inline (Set_Dcheck_Function);
12736 pragma Inline (Set_Declarations);
12737 pragma Inline (Set_Default_Expression);
12738 pragma Inline (Set_Default_Name);
12739 pragma Inline (Set_Default_Storage_Pool);
12740 pragma Inline (Set_Defining_Identifier);
12741 pragma Inline (Set_Defining_Unit_Name);
12742 pragma Inline (Set_Delay_Alternative);
12743 pragma Inline (Set_Delay_Statement);
12744 pragma Inline (Set_Delta_Expression);
12745 pragma Inline (Set_Digits_Expression);
12746 pragma Inline (Set_Discr_Check_Funcs_Built);
12747 pragma Inline (Set_Discrete_Choices);
12748 pragma Inline (Set_Discrete_Range);
12749 pragma Inline (Set_Discrete_Subtype_Definition);
12750 pragma Inline (Set_Discrete_Subtype_Definitions);
12751 pragma Inline (Set_Discriminant_Specifications);
12752 pragma Inline (Set_Discriminant_Type);
12753 pragma Inline (Set_Do_Accessibility_Check);
12754 pragma Inline (Set_Do_Discriminant_Check);
12755 pragma Inline (Set_Do_Division_Check);
12756 pragma Inline (Set_Do_Length_Check);
12757 pragma Inline (Set_Do_Overflow_Check);
12758 pragma Inline (Set_Do_Range_Check);
12759 pragma Inline (Set_Do_Storage_Check);
12760 pragma Inline (Set_Do_Tag_Check);
12761 pragma Inline (Set_Elaborate_All_Desirable);
12762 pragma Inline (Set_Elaborate_All_Present);
12763 pragma Inline (Set_Elaborate_Desirable);
12764 pragma Inline (Set_Elaborate_Present);
12765 pragma Inline (Set_Elaboration_Boolean);
12766 pragma Inline (Set_Else_Actions);
12767 pragma Inline (Set_Else_Statements);
12768 pragma Inline (Set_Elsif_Parts);
12769 pragma Inline (Set_Enclosing_Variant);
12770 pragma Inline (Set_End_Label);
12771 pragma Inline (Set_End_Span);
12772 pragma Inline (Set_Entity);
12773 pragma Inline (Set_Entry_Body_Formal_Part);
12774 pragma Inline (Set_Entry_Call_Alternative);
12775 pragma Inline (Set_Entry_Call_Statement);
12776 pragma Inline (Set_Entry_Direct_Name);
12777 pragma Inline (Set_Entry_Index);
12778 pragma Inline (Set_Entry_Index_Specification);
12779 pragma Inline (Set_Etype);
12780 pragma Inline (Set_Exception_Choices);
12781 pragma Inline (Set_Exception_Handlers);
12782 pragma Inline (Set_Exception_Junk);
12783 pragma Inline (Set_Exception_Label);
12784 pragma Inline (Set_Expansion_Delayed);
12785 pragma Inline (Set_Explicit_Actual_Parameter);
12786 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
12787 pragma Inline (Set_Expression);
12788 pragma Inline (Set_Expressions);
12789 pragma Inline (Set_First_Bit);
12790 pragma Inline (Set_First_Inlined_Subprogram);
12791 pragma Inline (Set_First_Name);
12792 pragma Inline (Set_First_Named_Actual);
12793 pragma Inline (Set_First_Real_Statement);
12794 pragma Inline (Set_First_Subtype_Link);
12795 pragma Inline (Set_Float_Truncate);
12796 pragma Inline (Set_Formal_Type_Definition);
12797 pragma Inline (Set_Forwards_OK);
12798 pragma Inline (Set_From_Aspect_Specification);
12799 pragma Inline (Set_From_At_End);
12800 pragma Inline (Set_From_At_Mod);
12801 pragma Inline (Set_From_Default);
12802 pragma Inline (Set_Generalized_Indexing);
12803 pragma Inline (Set_Generic_Associations);
12804 pragma Inline (Set_Generic_Formal_Declarations);
12805 pragma Inline (Set_Generic_Parent);
12806 pragma Inline (Set_Generic_Parent_Type);
12807 pragma Inline (Set_Handled_Statement_Sequence);
12808 pragma Inline (Set_Handler_List_Entry);
12809 pragma Inline (Set_Has_Created_Identifier);
12810 pragma Inline (Set_Has_Dereference_Action);
12811 pragma Inline (Set_Has_Dynamic_Length_Check);
12812 pragma Inline (Set_Has_Dynamic_Range_Check);
12813 pragma Inline (Set_Has_Init_Expression);
12814 pragma Inline (Set_Has_Local_Raise);
12815 pragma Inline (Set_Has_No_Elaboration_Code);
12816 pragma Inline (Set_Has_Pragma_Suppress_All);
12817 pragma Inline (Set_Has_Private_View);
12818 pragma Inline (Set_Has_Relative_Deadline_Pragma);
12819 pragma Inline (Set_Has_Self_Reference);
12820 pragma Inline (Set_Has_SP_Choice);
12821 pragma Inline (Set_Has_Storage_Size_Pragma);
12822 pragma Inline (Set_Has_Wide_Character);
12823 pragma Inline (Set_Has_Wide_Wide_Character);
12824 pragma Inline (Set_Header_Size_Added);
12825 pragma Inline (Set_Hidden_By_Use_Clause);
12826 pragma Inline (Set_High_Bound);
12827 pragma Inline (Set_Identifier);
12828 pragma Inline (Set_Implicit_With);
12829 pragma Inline (Set_Import_Interface_Present);
12830 pragma Inline (Set_In_Present);
12831 pragma Inline (Set_Includes_Infinities);
12832 pragma Inline (Set_Inherited_Discriminant);
12833 pragma Inline (Set_Instance_Spec);
12834 pragma Inline (Set_Interface_List);
12835 pragma Inline (Set_Interface_Present);
12836 pragma Inline (Set_Intval);
12837 pragma Inline (Set_Is_Accessibility_Actual);
12838 pragma Inline (Set_Is_Asynchronous_Call_Block);
12839 pragma Inline (Set_Is_Boolean_Aspect);
12840 pragma Inline (Set_Is_Checked);
12841 pragma Inline (Set_Is_Component_Left_Opnd);
12842 pragma Inline (Set_Is_Component_Right_Opnd);
12843 pragma Inline (Set_Is_Controlling_Actual);
12844 pragma Inline (Set_Is_Delayed_Aspect);
12845 pragma Inline (Set_Is_Disabled);
12846 pragma Inline (Set_Is_Dynamic_Coextension);
12847 pragma Inline (Set_Is_Elsif);
12848 pragma Inline (Set_Is_Entry_Barrier_Function);
12849 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
12850 pragma Inline (Set_Is_Finalization_Wrapper);
12851 pragma Inline (Set_Is_Folded_In_Parser);
12852 pragma Inline (Set_Is_Ignored);
12853 pragma Inline (Set_Is_In_Discriminant_Check);
12854 pragma Inline (Set_Is_Machine_Number);
12855 pragma Inline (Set_Is_Null_Loop);
12856 pragma Inline (Set_Is_Overloaded);
12857 pragma Inline (Set_Is_Power_Of_2_For_Shift);
12858 pragma Inline (Set_Is_Prefixed_Call);
12859 pragma Inline (Set_Is_Protected_Subprogram_Body);
12860 pragma Inline (Set_Is_Static_Coextension);
12861 pragma Inline (Set_Is_Static_Expression);
12862 pragma Inline (Set_Is_Subprogram_Descriptor);
12863 pragma Inline (Set_Is_Task_Allocation_Block);
12864 pragma Inline (Set_Is_Task_Master);
12865 pragma Inline (Set_Iteration_Scheme);
12866 pragma Inline (Set_Iterator_Specification);
12867 pragma Inline (Set_Itype);
12868 pragma Inline (Set_Kill_Range_Check);
12869 pragma Inline (Set_Label_Construct);
12870 pragma Inline (Set_Last_Bit);
12871 pragma Inline (Set_Last_Name);
12872 pragma Inline (Set_Left_Opnd);
12873 pragma Inline (Set_Library_Unit);
12874 pragma Inline (Set_Limited_Present);
12875 pragma Inline (Set_Limited_View_Installed);
12876 pragma Inline (Set_Literals);
12877 pragma Inline (Set_Local_Raise_Not_OK);
12878 pragma Inline (Set_Local_Raise_Statements);
12879 pragma Inline (Set_Loop_Actions);
12880 pragma Inline (Set_Loop_Parameter_Specification);
12881 pragma Inline (Set_Low_Bound);
12882 pragma Inline (Set_Mod_Clause);
12883 pragma Inline (Set_More_Ids);
12884 pragma Inline (Set_Must_Be_Byte_Aligned);
12885 pragma Inline (Set_Must_Not_Freeze);
12886 pragma Inline (Set_Must_Not_Override);
12887 pragma Inline (Set_Must_Override);
12888 pragma Inline (Set_Name);
12889 pragma Inline (Set_Names);
12890 pragma Inline (Set_Next_Entity);
12891 pragma Inline (Set_Next_Exit_Statement);
12892 pragma Inline (Set_Next_Implicit_With);
12893 pragma Inline (Set_Next_Named_Actual);
12894 pragma Inline (Set_Next_Pragma);
12895 pragma Inline (Set_Next_Rep_Item);
12896 pragma Inline (Set_Next_Use_Clause);
12897 pragma Inline (Set_No_Ctrl_Actions);
12898 pragma Inline (Set_No_Elaboration_Check);
12899 pragma Inline (Set_No_Entities_Ref_In_Spec);
12900 pragma Inline (Set_No_Initialization);
12901 pragma Inline (Set_No_Minimize_Eliminate);
12902 pragma Inline (Set_No_Truncation);
12903 pragma Inline (Set_Non_Aliased_Prefix);
12904 pragma Inline (Set_Null_Exclusion_Present);
12905 pragma Inline (Set_Null_Exclusion_In_Return_Present);
12906 pragma Inline (Set_Null_Present);
12907 pragma Inline (Set_Null_Record_Present);
12908 pragma Inline (Set_Object_Definition);
12909 pragma Inline (Set_Of_Present);
12910 pragma Inline (Set_Original_Discriminant);
12911 pragma Inline (Set_Original_Entity);
12912 pragma Inline (Set_Others_Discrete_Choices);
12913 pragma Inline (Set_Out_Present);
12914 pragma Inline (Set_Parameter_Associations);
12915 pragma Inline (Set_Parameter_List_Truncated);
12916 pragma Inline (Set_Parameter_Specifications);
12917 pragma Inline (Set_Parameter_Type);
12918 pragma Inline (Set_Parent_Spec);
12919 pragma Inline (Set_Position);
12920 pragma Inline (Set_Pragma_Argument_Associations);
12921 pragma Inline (Set_Pragma_Identifier);
12922 pragma Inline (Set_Pragmas_After);
12923 pragma Inline (Set_Pragmas_Before);
12924 pragma Inline (Set_Pre_Post_Conditions);
12925 pragma Inline (Set_Prefix);
12926 pragma Inline (Set_Premature_Use);
12927 pragma Inline (Set_Present_Expr);
12928 pragma Inline (Set_Prev_Ids);
12929 pragma Inline (Set_Print_In_Hex);
12930 pragma Inline (Set_Private_Declarations);
12931 pragma Inline (Set_Private_Present);
12932 pragma Inline (Set_Procedure_To_Call);
12933 pragma Inline (Set_Proper_Body);
12934 pragma Inline (Set_Protected_Definition);
12935 pragma Inline (Set_Protected_Present);
12936 pragma Inline (Set_Raises_Constraint_Error);
12937 pragma Inline (Set_Range_Constraint);
12938 pragma Inline (Set_Range_Expression);
12939 pragma Inline (Set_Real_Range_Specification);
12940 pragma Inline (Set_Realval);
12941 pragma Inline (Set_Reason);
12942 pragma Inline (Set_Record_Extension_Part);
12943 pragma Inline (Set_Redundant_Use);
12944 pragma Inline (Set_Renaming_Exception);
12945 pragma Inline (Set_Result_Definition);
12946 pragma Inline (Set_Return_Object_Declarations);
12947 pragma Inline (Set_Reverse_Present);
12948 pragma Inline (Set_Right_Opnd);
12949 pragma Inline (Set_Rounded_Result);
12950 pragma Inline (Set_SCIL_Controlling_Tag);
12951 pragma Inline (Set_SCIL_Entity);
12952 pragma Inline (Set_SCIL_Tag_Value);
12953 pragma Inline (Set_SCIL_Target_Prim);
12954 pragma Inline (Set_Scope);
12955 pragma Inline (Set_Select_Alternatives);
12956 pragma Inline (Set_Selector_Name);
12957 pragma Inline (Set_Selector_Names);
12958 pragma Inline (Set_Shift_Count_OK);
12959 pragma Inline (Set_Source_Type);
12960 pragma Inline (Set_Split_PPC);
12961 pragma Inline (Set_Statements);
12962 pragma Inline (Set_Storage_Pool);
12963 pragma Inline (Set_Strval);
12964 pragma Inline (Set_Subpool_Handle_Name);
12965 pragma Inline (Set_Subtype_Indication);
12966 pragma Inline (Set_Subtype_Mark);
12967 pragma Inline (Set_Subtype_Marks);
12968 pragma Inline (Set_Suppress_Assignment_Checks);
12969 pragma Inline (Set_Suppress_Loop_Warnings);
12970 pragma Inline (Set_Synchronized_Present);
12971 pragma Inline (Set_TSS_Elist);
12972 pragma Inline (Set_Tagged_Present);
12973 pragma Inline (Set_Target_Type);
12974 pragma Inline (Set_Task_Definition);
12975 pragma Inline (Set_Task_Present);
12976 pragma Inline (Set_Then_Actions);
12977 pragma Inline (Set_Then_Statements);
12978 pragma Inline (Set_Treat_Fixed_As_Integer);
12979 pragma Inline (Set_Triggering_Alternative);
12980 pragma Inline (Set_Triggering_Statement);
12981 pragma Inline (Set_Type_Definition);
12982 pragma Inline (Set_Unit);
12983 pragma Inline (Set_Uninitialized_Variable);
12984 pragma Inline (Set_Unknown_Discriminants_Present);
12985 pragma Inline (Set_Unreferenced_In_Spec);
12986 pragma Inline (Set_Used_Operations);
12987 pragma Inline (Set_Variant_Part);
12988 pragma Inline (Set_Variants);
12989 pragma Inline (Set_Visible_Declarations);
12990 pragma Inline (Set_Was_Originally_Stub);
12991 pragma Inline (Set_Withed_Body);