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 -- GNATprove relies on the following frontend behaviors:
567 -- 1. The first declarations in the list of visible declarations of
568 -- a package declaration for a generic instance, up to the first
569 -- declaration which comes from source, should correspond to
570 -- the "mappings nodes" between formal and actual generic parameters.
572 -- 2. In addition pragma Debug statements are removed from the tree
573 -- (rewritten to NULL stmt), since they should be ignored in formal
576 -- 3. An error is also issued for missing subunits, similar to the
577 -- warning issued when generating code, to avoid formal verification
578 -- of a partial unit.
580 -----------------------
581 -- Check Flag Fields --
582 -----------------------
584 -- The following flag fields appear in expression nodes:
590 -- These three flags are always set by the front end during semantic
591 -- analysis, on expression nodes that may trigger the corresponding
592 -- check. The front end then inserts or not the check during expansion. In
593 -- particular, these flags should also be correctly set in ASIS mode and
596 -- Note: the expander always takes care of the Do_Range check case,
597 -- so this flag will never be set in the expanded tree passed to the
598 -- back end code generator.
600 -- Note that this accounts for all nodes that trigger the corresponding
601 -- checks, except for range checks on subtype_indications, which may be
602 -- required to check that a range_constraint is compatible with the given
603 -- subtype (RM 3.2.2(11)).
605 -- The following flag fields appear in various nodes:
607 -- Do_Accessibility_Check
608 -- Do_Discriminant_Check
613 -- These flags are used in some specific cases by the front end, either
614 -- during semantic analysis or during expansion, and cannot be expected
615 -- to be set on all nodes that trigger the corresponding check.
617 ------------------------
618 -- Common Flag Fields --
619 ------------------------
621 -- The following flag fields appear in all nodes:
624 -- This flag is used to indicate that a node (and all its children have
625 -- been analyzed. It is used to avoid reanalysis of a node that has
626 -- already been analyzed, both for efficiency and functional correctness
630 -- This flag is set if the node comes directly from an explicit construct
631 -- in the source. It is normally on for any nodes built by the scanner or
632 -- parser from the source program, with the exception that in a few cases
633 -- the parser adds nodes to normalize the representation (in particular
634 -- a null statement is added to a package body if there is no begin/end
635 -- initialization section.
637 -- Most nodes inserted by the analyzer or expander are not considered
638 -- as coming from source, so the flag is off for such nodes. In a few
639 -- cases, the expander constructs nodes closely equivalent to nodes
640 -- from the source program (e.g. the allocator built for build-in-place
641 -- case), and the Comes_From_Source flag is deliberately set.
644 -- This flag is used to avoid multiple error messages being posted on or
645 -- referring to the same node. This flag is set if an error message
646 -- refers to a node or is posted on its source location, and has the
647 -- effect of inhibiting further messages involving this same node.
649 -----------------------
650 -- Modify_Tree_For_C --
651 -----------------------
653 -- If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
654 -- in ways that help match the semantics better with C, easing the task of
655 -- interfacing to C code generators (other than GCC, where the work is done
656 -- in gigi, and there is no point in changing that), and also making life
657 -- easier for Cprint in generating C source code.
659 -- The current modifications implemented are as follows:
661 -- N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
662 -- are eliminated from the tree (since these operations do not exist in
663 -- C), and the operations are rewritten in terms of logical shifts and
664 -- other logical operations that do exist in C. See Exp_Ch4 expansion
665 -- routines for these operators for details of the transformations made.
667 -- The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
668 -- less than the word size (since other values are not well-defined in
669 -- C). This is done using an explicit test if necessary.
671 -- Min and Max attributes are expanded into equivalent if expressions,
672 -- dealing properly with side effect issues.
674 -- Mod for signed integer types is expanded into equivalent expressions
675 -- using Rem (which is % in C) and other C-available operators.
677 -- The Actions list of an Expression_With_Actions node does not contain
678 -- any declarations,(so that DO X, .. Y IN Z becomes (X, .. Y, Z) in C).
680 ------------------------------------
681 -- Description of Semantic Fields --
682 ------------------------------------
684 -- The meaning of the syntactic fields is generally clear from their names
685 -- without any further description, since the names are chosen to
686 -- correspond very closely to the syntax in the reference manual. This
687 -- section describes the usage of the semantic fields, which are used to
688 -- contain additional information determined during semantic analysis.
690 -- ABE_Is_Certain (Flag18-Sem)
691 -- This flag is set in an instantiation node or a call node is determined
692 -- to be sure to raise an ABE. This is used to trigger special handling
693 -- of such cases, particularly in the instantiation case where we avoid
694 -- instantiating the body if this flag is set. This flag is also present
695 -- in an N_Formal_Package_Declaration_Node since formal package
696 -- declarations are treated like instantiations, but it is always set to
697 -- False in this context.
699 -- Accept_Handler_Records (List5-Sem)
700 -- This field is present only in an N_Accept_Alternative node. It is used
701 -- to temporarily hold the exception handler records from an accept
702 -- statement in a selective accept. These exception handlers will
703 -- eventually be placed in the Handler_Records list of the procedure
704 -- built for this accept (see Expand_N_Selective_Accept procedure in
705 -- Exp_Ch9 for further details).
707 -- Access_Types_To_Process (Elist2-Sem)
708 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
709 -- Contains the list of access types which may require specific treatment
710 -- when the nature of the type completion is completely known. An example
711 -- of such treatment is the generation of the associated_final_chain.
713 -- Actions (List1-Sem)
714 -- This field contains a sequence of actions that are associated with the
715 -- node holding the field. See the individual node types for details of
716 -- how this field is used, as well as the description of the specific use
717 -- for a particular node type.
719 -- Activation_Chain_Entity (Node3-Sem)
720 -- This is used in tree nodes representing task activators (blocks,
721 -- subprogram bodies, package declarations, and task bodies). It is
722 -- initially Empty, and then gets set to point to the entity for the
723 -- declared Activation_Chain variable when the first task is declared.
724 -- When tasks are declared in the corresponding declarative region this
725 -- entity is located by name (its name is always _Chain) and the declared
726 -- tasks are added to the chain. Note that N_Extended_Return_Statement
727 -- does not have this attribute, although it does have an activation
728 -- chain. This chain is used to store the tasks temporarily, and is not
729 -- used for activating them. On successful completion of the return
730 -- statement, the tasks are moved to the caller's chain, and the caller
733 -- Acts_As_Spec (Flag4-Sem)
734 -- A flag set in the N_Subprogram_Body node for a subprogram body which
735 -- is acting as its own spec, except in the case of a library level
736 -- subprogram, in which case the flag is set on the parent compilation
737 -- unit node instead.
739 -- Actual_Designated_Subtype (Node4-Sem)
740 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
741 -- needs to known the dynamic constrained subtype of the designated
742 -- object, this attribute is set to that type. This is done for
743 -- N_Free_Statements for access-to-classwide types and access to
744 -- unconstrained packed array types, and for N_Explicit_Dereference when
745 -- the designated type is an unconstrained packed array and the
746 -- dereference is the prefix of a 'Size attribute reference.
748 -- Address_Warning_Posted (Flag18-Sem)
749 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
750 -- posted a warning for the address clause regarding size or alignment
751 -- issues. Used to inhibit multiple redundant messages.
753 -- Aggregate_Bounds (Node3-Sem)
754 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
755 -- known at compile time, this field points to an N_Range node with those
756 -- bounds. Otherwise Empty.
758 -- All_Others (Flag11-Sem)
759 -- Present in an N_Others_Choice node. This flag is set for an others
760 -- exception where all exceptions are to be caught, even those that are
761 -- not normally handled (in particular the tasking abort signal). This
762 -- is used for translation of the at end handler into a normal exception
765 -- Aspect_Rep_Item (Node2-Sem)
766 -- Present in N_Aspect_Specification nodes. Points to the corresponding
767 -- pragma/attribute definition node used to process the aspect.
769 -- Assignment_OK (Flag15-Sem)
770 -- This flag is set in a subexpression node for an object, indicating
771 -- that the associated object can be modified, even if this would not
772 -- normally be permissible (either by direct assignment, or by being
773 -- passed as an out or in-out parameter). This is used by the expander
774 -- for a number of purposes, including initialization of constants and
775 -- limited type objects (such as tasks), setting discriminant fields,
776 -- setting tag values, etc. N_Object_Declaration nodes also have this
777 -- flag defined. Here it is used to indicate that an initialization
778 -- expression is valid, even where it would normally not be allowed
779 -- (e.g. where the type involved is limited).
781 -- Associated_Node (Node4-Sem)
782 -- Present in nodes that can denote an entity: identifiers, character
783 -- literals, operator symbols, expanded names, operator nodes, and
784 -- attribute reference nodes (all these nodes have an Entity field).
785 -- This field is also present in N_Aggregate, N_Selected_Component, and
786 -- N_Extension_Aggregate nodes. This field is used in generic processing
787 -- to create links between the generic template and the generic copy.
788 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
789 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
790 -- the normal function of Entity is not required at the point where the
791 -- Associated_Node is set. Note also, that in generic templates, this
792 -- means that the Entity field does not necessarily point to an Entity.
793 -- Since the back end is expected to ignore generic templates, this is
796 -- Atomic_Sync_Required (Flag14-Sem)
797 -- This flag is set on a node for which atomic synchronization is
798 -- required for the corresponding reference or modification.
800 -- At_End_Proc (Node1)
801 -- This field is present in an N_Handled_Sequence_Of_Statements node.
802 -- It contains an identifier reference for the cleanup procedure to be
803 -- called. See description of this node for further details.
805 -- Backwards_OK (Flag6-Sem)
806 -- A flag present in the N_Assignment_Statement node. It is used only
807 -- if the type being assigned is an array type, and is set if analysis
808 -- determines that it is definitely safe to do the copy backwards, i.e.
809 -- starting at the highest addressed element. This is the case if either
810 -- the operands do not overlap, or they may overlap, but if they do,
811 -- then the left operand is at a higher address than the right operand.
813 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
814 -- means that the front end could not determine that either direction is
815 -- definitely safe, and a runtime check may be required if the backend
816 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
817 -- set, it means that the front end can assure no overlap of operands.
819 -- Body_To_Inline (Node3-Sem)
820 -- Present in subprogram declarations. Denotes analyzed but unexpanded
821 -- body of subprogram, to be used when inlining calls. Present when the
822 -- subprogram has an Inline pragma and inlining is enabled. If the
823 -- declaration is completed by a renaming_as_body, and the renamed en-
824 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
825 -- which is used directly in later calls to the original subprogram.
827 -- Body_Required (Flag13-Sem)
828 -- A flag that appears in the N_Compilation_Unit node indicating that
829 -- the corresponding unit requires a body. For the package case, this
830 -- indicates that a completion is required. In Ada 95, if the flag is not
831 -- set for the package case, then a body may not be present. In Ada 83,
832 -- if the flag is not set for the package case, then body is optional.
833 -- For a subprogram declaration, the flag is set except in the case where
834 -- a pragma Import or Interface applies, in which case no body is
835 -- permitted (in Ada 83 or Ada 95).
837 -- By_Ref (Flag5-Sem)
838 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
839 -- this flag is set when the returned expression is already allocated on
840 -- the secondary stack and thus the result is passed by reference rather
841 -- than copied another time.
843 -- Cleanup_Actions (List5-Sem)
844 -- Present in block statements created for transient blocks, contains
845 -- additional cleanup actions carried over from the transient scope.
847 -- Check_Address_Alignment (Flag11-Sem)
848 -- A flag present in N_Attribute_Definition clause for a 'Address
849 -- attribute definition. This flag is set if a dynamic check should be
850 -- generated at the freeze point for the entity to which this address
851 -- clause applies. The reason that we need this flag is that we want to
852 -- check for range checks being suppressed at the point where the
853 -- attribute definition clause is given, rather than testing this at the
856 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
857 -- Present in N_Simple_Return_Statement nodes. True if this node was
858 -- constructed as part of the N_Extended_Return_Statement expansion.
860 -- Compile_Time_Known_Aggregate (Flag18-Sem)
861 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
862 -- evaluated at compile time without raising constraint error. Such
863 -- aggregates can be passed as is the back end without any expansion.
864 -- See Exp_Aggr for specific conditions under which this flag gets set.
866 -- Componentwise_Assignment (Flag14-Sem)
867 -- Present in N_Assignment_Statement nodes. Set for a record assignment
868 -- where all that needs doing is to expand it into component-by-component
869 -- assignments. This is used internally for the case of tagged types with
870 -- rep clauses, where we need to avoid recursion (we don't want to try to
871 -- generate a call to the primitive operation, because this is the case
872 -- where we are compiling the primitive operation). Note that when we are
873 -- expanding component assignments in this case, we never assign the _tag
874 -- field, but we recursively assign components of the parent type.
876 -- Condition_Actions (List3-Sem)
877 -- This field appears in else-if nodes and in the iteration scheme node
878 -- for while loops. This field is only used during semantic processing to
879 -- temporarily hold actions inserted into the tree. In the tree passed
880 -- to gigi, the condition actions field is always set to No_List. For
881 -- details on how this field is used, see the routine Insert_Actions in
882 -- package Exp_Util, and also the expansion routines for the relevant
885 -- Context_Pending (Flag16-Sem)
886 -- This field appears in Compilation_Unit nodes, to indicate that the
887 -- context of the unit is being compiled. Used to detect circularities
888 -- that are not otherwise detected by the loading mechanism. Such
889 -- circularities can occur in the presence of limited and non-limited
890 -- with_clauses that mention the same units.
892 -- Controlling_Argument (Node1-Sem)
893 -- This field is set in procedure and function call nodes if the call
894 -- is a dispatching call (it is Empty for a non-dispatching call). It
895 -- indicates the source of the call's controlling tag. For procedure
896 -- calls, the Controlling_Argument is one of the actuals. For function
897 -- that has a dispatching result, it is an entity in the context of the
898 -- call that can provide a tag, or else it is the tag of the root type
899 -- of the class. It can also specify a tag directly rather than being a
900 -- tagged object. The latter is needed by the implementations of AI-239
903 -- Conversion_OK (Flag14-Sem)
904 -- A flag set on type conversion nodes to indicate that the conversion
905 -- is to be considered as being valid, even though it is the case that
906 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
907 -- Fixed_Value and Integer_Value, for internal conversions done for
908 -- fixed-point operations, and for certain conversions for calls to
909 -- initialization procedures. If Conversion_OK is set, then Etype must be
910 -- set (the analyzer assumes that Etype has been set). For the case of
911 -- fixed-point operands, it also indicates that the conversion is to be
912 -- direct conversion of the underlying integer result, with no regard to
913 -- the small operand.
915 -- Convert_To_Return_False (Flag13-Sem)
916 -- Present in N_Raise_Expression nodes that appear in the body of the
917 -- special predicateM function used to test a predicate in the context
918 -- of a membership test, where raise expression results in returning a
919 -- value of False rather than raising an exception.
921 -- Corresponding_Aspect (Node3-Sem)
922 -- Present in N_Pragma node. Used to point back to the source aspect from
923 -- the corresponding pragma. This field is Empty for source pragmas.
925 -- Corresponding_Body (Node5-Sem)
926 -- This field is set in subprogram declarations, package declarations,
927 -- entry declarations of protected types, and in generic units. It points
928 -- to the defining entity for the corresponding body (NOT the node for
931 -- Corresponding_Formal_Spec (Node3-Sem)
932 -- This field is set in subprogram renaming declarations, where it points
933 -- to the defining entity for a formal subprogram in the case where the
934 -- renaming corresponds to a generic formal subprogram association in an
935 -- instantiation. The field is Empty if the renaming does not correspond
936 -- to such a formal association.
938 -- Corresponding_Generic_Association (Node5-Sem)
939 -- This field is defined for object declarations and object renaming
940 -- declarations. It is set for the declarations within an instance that
941 -- map generic formals to their actuals. If set, the field points to
942 -- a generic_association which is the original parent of the expression
943 -- or name appearing in the declaration. This simplifies ASIS queries.
945 -- Corresponding_Integer_Value (Uint4-Sem)
946 -- This field is set in real literals of fixed-point types (it is not
947 -- used for floating-point types). It contains the integer value used
948 -- to represent the fixed-point value. It is also set on the universal
949 -- real literals used to represent bounds of fixed-point base types
950 -- and their first named subtypes.
952 -- Corresponding_Spec (Node5-Sem)
953 -- This field is set in subprogram, package, task, and protected body
954 -- nodes, where it points to the defining entity in the corresponding
955 -- spec. The attribute is also set in N_With_Clause nodes where it points
956 -- to the defining entity for the with'ed spec, and in a subprogram
957 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
958 -- if there is no corresponding spec, as in the case of a subprogram body
959 -- that serves as its own spec.
961 -- In Ada 2012, Corresponding_Spec is set on expression functions that
962 -- complete a subprogram declaration.
964 -- Corresponding_Spec_Of_Stub (Node2-Sem)
965 -- This field is present in subprogram, package, task and protected body
966 -- stubs where it points to the corresponding spec of the stub. Due to
967 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
969 -- Corresponding_Stub (Node3-Sem)
970 -- This field is present in an N_Subunit node. It holds the node in
971 -- the parent unit that is the stub declaration for the subunit. It is
972 -- set when analysis of the stub forces loading of the proper body. If
973 -- expansion of the proper body creates new declarative nodes, they are
974 -- inserted at the point of the corresponding_stub.
976 -- Dcheck_Function (Node5-Sem)
977 -- This field is present in an N_Variant node, It references the entity
978 -- for the discriminant checking function for the variant.
980 -- Default_Expression (Node5-Sem)
981 -- This field is Empty if there is no default expression. If there is a
982 -- simple default expression (one with no side effects), then this field
983 -- simply contains a copy of the Expression field (both point to the tree
984 -- for the default expression). Default_Expression is used for
985 -- conformance checking.
987 -- Default_Storage_Pool (Node3-Sem)
988 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
989 -- copy of Opt.Default_Pool at the end of the compilation unit. See
990 -- package Opt for details. This is used for inheriting the
991 -- Default_Storage_Pool in child units.
993 -- Discr_Check_Funcs_Built (Flag11-Sem)
994 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
995 -- discriminant checking functions are constructed. The purpose is to
996 -- avoid attempting to set these functions more than once.
998 -- Do_Accessibility_Check (Flag13-Sem)
999 -- This flag is set on N_Parameter_Specification nodes to indicate
1000 -- that an accessibility check is required for the parameter. It is
1001 -- not yet decided who takes care of this check (TBD ???).
1003 -- Do_Discriminant_Check (Flag1-Sem)
1004 -- This flag is set on N_Selected_Component nodes to indicate that a
1005 -- discriminant check is required using the discriminant check routine
1006 -- associated with the selector. The actual check is generated by the
1007 -- expander when processing selected components. In the case of
1008 -- Unchecked_Union, the flag is also set, but no discriminant check
1009 -- routine is associated with the selector, and the expander does not
1010 -- generate a check. This flag is also present in assignment statements
1011 -- (and set if the assignment requires a discriminant check), and in type
1012 -- conversion nodes (and set if the conversion requires a check).
1014 -- Do_Division_Check (Flag13-Sem)
1015 -- This flag is set on a division operator (/ mod rem) to indicate
1016 -- that a zero divide check is required. The actual check is dealt
1017 -- with by the backend (all the front end does is to set the flag).
1019 -- Do_Length_Check (Flag4-Sem)
1020 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1021 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1022 -- is required. It is not determined who deals with this flag (???).
1024 -- Do_Overflow_Check (Flag17-Sem)
1025 -- This flag is set on an operator where an overflow check is required on
1026 -- the operation. The actual check is dealt with by the backend (all the
1027 -- front end does is to set the flag). The other cases where this flag is
1028 -- used is on a Type_Conversion node and for attribute reference nodes.
1029 -- For a type conversion, it means that the conversion is from one base
1030 -- type to another, and the value may not fit in the target base type.
1031 -- See also the description of Do_Range_Check for this case. The only
1032 -- attribute references which use this flag are Pred and Succ, where it
1033 -- means that the result should be checked for going outside the base
1034 -- range. Note that this flag is not set for modular types. This flag is
1035 -- also set on if and case expression nodes if we are operating in either
1036 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1037 -- properly process overflow checking for dependent expressions).
1039 -- Do_Range_Check (Flag9-Sem)
1040 -- This flag is set on an expression which appears in a context where a
1041 -- range check is required. The target type is clear from the context.
1042 -- The contexts in which this flag can appear are the following:
1044 -- Right side of an assignment. In this case the target type is
1045 -- taken from the left side of the assignment, which is referenced
1046 -- by the Name of the N_Assignment_Statement node.
1048 -- Subscript expressions in an indexed component. In this case the
1049 -- target type is determined from the type of the array, which is
1050 -- referenced by the Prefix of the N_Indexed_Component node.
1052 -- Argument expression for a parameter, appearing either directly in
1053 -- the Parameter_Associations list of a call or as the Expression of an
1054 -- N_Parameter_Association node that appears in this list. In either
1055 -- case, the check is against the type of the formal. Note that the
1056 -- flag is relevant only in IN and IN OUT parameters, and will be
1057 -- ignored for OUT parameters, where no check is required in the call,
1058 -- and if a check is required on the return, it is generated explicitly
1059 -- with a type conversion.
1061 -- Initialization expression for the initial value in an object
1062 -- declaration. In this case the Do_Range_Check flag is set on
1063 -- the initialization expression, and the check is against the
1064 -- range of the type of the object being declared. This includes the
1065 -- cases of expressions providing default discriminant values, and
1066 -- expressions used to initialize record components.
1068 -- The expression of a type conversion. In this case the range check is
1069 -- against the target type of the conversion. See also the use of
1070 -- Do_Overflow_Check on a type conversion. The distinction is that the
1071 -- overflow check protects against a value that is outside the range of
1072 -- the target base type, whereas a range check checks that the
1073 -- resulting value (which is a value of the base type of the target
1074 -- type), satisfies the range constraint of the target type.
1076 -- Note: when a range check is required in contexts other than those
1077 -- listed above (e.g. in a return statement), an additional type
1078 -- conversion node is introduced to represent the required check.
1080 -- A special case arises for the arguments of the Pred/Succ attributes.
1081 -- Here the range check needed is against First + 1 .. Last (Pred) or
1082 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
1083 -- these checks are what would be performed within the implicit body of
1084 -- the functions that correspond to these attributes. In these cases,
1085 -- the Do_Range check flag is set on the argument to the attribute
1086 -- function, and the back end must special case the appropriate range
1087 -- to check against.
1089 -- Do_Storage_Check (Flag17-Sem)
1090 -- This flag is set in an N_Allocator node to indicate that a storage
1091 -- check is required for the allocation, or in an N_Subprogram_Body node
1092 -- to indicate that a stack check is required in the subprogram prolog.
1093 -- The N_Allocator case is handled by the routine that expands the call
1094 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1095 -- backend, and all the semantics does is set the flag.
1097 -- Do_Tag_Check (Flag13-Sem)
1098 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1099 -- N_Procedure_Call_Statement, N_Type_Conversion,
1100 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1101 -- node to indicate that the tag check can be suppressed. It is not
1102 -- yet decided how this flag is used (TBD ???).
1104 -- Elaborate_Present (Flag4-Sem)
1105 -- This flag is set in the N_With_Clause node to indicate that pragma
1106 -- Elaborate pragma appears for the with'ed units.
1108 -- Elaborate_All_Desirable (Flag9-Sem)
1109 -- This flag is set in the N_With_Clause mode to indicate that the static
1110 -- elaboration processing has determined that an Elaborate_All pragma is
1111 -- desirable for correct elaboration for this unit.
1113 -- Elaborate_All_Present (Flag14-Sem)
1114 -- This flag is set in the N_With_Clause node to indicate that a
1115 -- pragma Elaborate_All pragma appears for the with'ed units.
1117 -- Elaborate_Desirable (Flag11-Sem)
1118 -- This flag is set in the N_With_Clause mode to indicate that the static
1119 -- elaboration processing has determined that an Elaborate pragma is
1120 -- desirable for correct elaboration for this unit.
1122 -- Elaboration_Boolean (Node2-Sem)
1123 -- This field is present in function and procedure specification nodes.
1124 -- If set, it points to the entity for a Boolean flag that must be tested
1125 -- for certain calls to check for access before elaboration. See body of
1126 -- Sem_Elab for further details. This field is Empty if no elaboration
1127 -- boolean is required.
1129 -- Else_Actions (List3-Sem)
1130 -- This field is present in if expression nodes. During code
1131 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1132 -- actions at an appropriate place in the tree to get elaborated at the
1133 -- right time. For if expressions, we have to be sure that the actions
1134 -- for the Else branch are only elaborated if the condition is False.
1135 -- The Else_Actions field is used as a temporary parking place for
1136 -- these actions. The final tree is always rewritten to eliminate the
1137 -- need for this field, so in the tree passed to Gigi, this field is
1138 -- always set to No_List.
1140 -- Enclosing_Variant (Node2-Sem)
1141 -- This field is present in the N_Variant node and identifies the Node_Id
1142 -- corresponding to the immediately enclosing variant when the variant is
1143 -- nested, and N_Empty otherwise. Set during semantic processing of the
1144 -- variant part of a record type.
1146 -- Entity (Node4-Sem)
1147 -- Appears in all direct names (identifiers, character literals, and
1148 -- operator symbols), as well as expanded names, and attributes that
1149 -- denote entities, such as 'Class. Points to entity for corresponding
1150 -- defining occurrence. Set after name resolution. For identifiers in a
1151 -- WITH list, the corresponding defining occurrence is in a separately
1152 -- compiled file, and Entity must be set by the library Load procedure.
1154 -- Note: During name resolution, the value in Entity may be temporarily
1155 -- incorrect (e.g. during overload resolution, Entity is initially set to
1156 -- the first possible correct interpretation, and then later modified if
1157 -- necessary to contain the correct value after resolution).
1159 -- Note: This field overlaps Associated_Node, which is used during
1160 -- generic processing (see Sem_Ch12 for details). Note also that in
1161 -- generic templates, this means that the Entity field does not always
1162 -- point to an Entity. Since the back end is expected to ignore generic
1163 -- templates, this is harmless.
1165 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1166 -- It is used only for stream attributes definition clauses. In this
1167 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1168 -- conceptually at the point of the clause. Thus the visibility of the
1169 -- attribute definition clause (in the sense of 8.3(23) as amended by
1170 -- AI-195) can be checked by testing the visibility of that subprogram.
1172 -- Note: Normally the Entity field of an identifier points to the entity
1173 -- for the corresponding defining identifier, and hence the Chars field
1174 -- of an identifier will match the Chars field of the entity. However,
1175 -- there is no requirement that these match, and there are obscure cases
1176 -- of generated code where they do not match.
1178 -- Note: Ada 2012 aspect specifications require additional links between
1179 -- identifiers and various attributes. These attributes can be of
1180 -- arbitrary types, and the entity field of identifiers that denote
1181 -- aspects must be used to store arbitrary expressions for later semantic
1182 -- checks. See section on aspect specifications for details.
1184 -- Entity_Or_Associated_Node (Node4-Sem)
1185 -- A synonym for both Entity and Associated_Node. Used by convention in
1186 -- the code when referencing this field in cases where it is not known
1187 -- whether the field contains an Entity or an Associated_Node.
1189 -- Etype (Node5-Sem)
1190 -- Appears in all expression nodes, all direct names, and all entities.
1191 -- Points to the entity for the related type. Set after type resolution.
1192 -- Normally this is the actual subtype of the expression. However, in
1193 -- certain contexts such as the right side of an assignment, subscripts,
1194 -- arguments to calls, returned value in a function, initial value etc.
1195 -- it is the desired target type. In the event that this is different
1196 -- from the actual type, the Do_Range_Check flag will be set if a range
1197 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1198 -- points to an essentially arbitrary choice from the possible set of
1201 -- Exception_Junk (Flag8-Sem)
1202 -- This flag is set in a various nodes appearing in a statement sequence
1203 -- to indicate that the corresponding node is an artifact of the
1204 -- generated code for exception handling, and should be ignored when
1205 -- analyzing the control flow of the relevant sequence of statements
1206 -- (e.g. to check that it does not end with a bad return statement).
1208 -- Exception_Label (Node5-Sem)
1209 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1210 -- to be used for transforming the corresponding exception into a goto,
1211 -- or contains Empty, if this exception is not to be transformed. Also
1212 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1213 -- that there may be a local raise for the handler, so that expansion
1214 -- to allow a goto is required (and this field contains the label for
1215 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1217 -- Expansion_Delayed (Flag11-Sem)
1218 -- Set on aggregates and extension aggregates that need a top-down rather
1219 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1220 -- up. For nested aggregates the expansion is delayed until the enclosing
1221 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1222 -- delay it we set this flag. This is done to avoid creating a temporary
1223 -- for each level of a nested aggregates, and also to prevent the
1224 -- premature generation of constraint checks. This is also a requirement
1225 -- if we want to generate the proper attachment to the internal
1226 -- finalization lists (for record with controlled components). Top down
1227 -- expansion of aggregates is also used for in-place array aggregate
1228 -- assignment or initialization. When the full context is known, the
1229 -- target of the assignment or initialization is used to generate the
1230 -- left-hand side of individual assignment to each sub-component.
1232 -- First_Inlined_Subprogram (Node3-Sem)
1233 -- Present in the N_Compilation_Unit node for the main program. Points
1234 -- to a chain of entities for subprograms that are to be inlined. The
1235 -- Next_Inlined_Subprogram field of these entities is used as a link
1236 -- pointer with Empty marking the end of the list. This field is Empty
1237 -- if there are no inlined subprograms or inlining is not active.
1239 -- First_Named_Actual (Node4-Sem)
1240 -- Present in procedure call statement and function call nodes, and also
1241 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1242 -- named parameter where parameters are ordered by declaration order (as
1243 -- opposed to the actual order in the call which may be different due to
1244 -- named associations). Note: this field points to the explicit actual
1245 -- parameter itself, not the N_Parameter_Association node (its parent).
1247 -- First_Real_Statement (Node2-Sem)
1248 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1249 -- Empty. Used only when declarations are moved into the statement part
1250 -- of a construct as a result of wrapping an AT END handler that is
1251 -- required to cover the declarations. In this case, this field is used
1252 -- to remember the location in the statements list of the first real
1253 -- statement, i.e. the statement that used to be first in the statement
1254 -- list before the declarations were prepended.
1256 -- First_Subtype_Link (Node5-Sem)
1257 -- Present in N_Freeze_Entity node for an anonymous base type that is
1258 -- implicitly created by the declaration of a first subtype. It points
1259 -- to the entity for the first subtype.
1261 -- Float_Truncate (Flag11-Sem)
1262 -- A flag present in type conversion nodes. This is used for float to
1263 -- integer conversions where truncation is required rather than rounding.
1265 -- Forwards_OK (Flag5-Sem)
1266 -- A flag present in the N_Assignment_Statement node. It is used only
1267 -- if the type being assigned is an array type, and is set if analysis
1268 -- determines that it is definitely safe to do the copy forwards, i.e.
1269 -- starting at the lowest addressed element. This is the case if either
1270 -- the operands do not overlap, or they may overlap, but if they do,
1271 -- then the left operand is at a lower address than the right operand.
1273 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1274 -- means that the front end could not determine that either direction is
1275 -- definitely safe, and a runtime check may be required if the backend
1276 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1277 -- set, it means that the front end can assure no overlap of operands.
1279 -- From_Aspect_Specification (Flag13-Sem)
1280 -- Processing of aspect specifications typically results in insertion in
1281 -- the tree of corresponding pragma or attribute definition clause nodes.
1282 -- These generated nodes have the From_Aspect_Specification flag set to
1283 -- indicate that they came from aspect specifications originally.
1285 -- From_At_End (Flag4-Sem)
1286 -- This flag is set on an N_Raise_Statement node if it corresponds to
1287 -- the reraise statement generated as the last statement of an AT END
1288 -- handler when SJLJ exception handling is active. It is used to stop
1289 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1290 -- because if the restriction is set, the reraise is not generated.
1292 -- From_At_Mod (Flag4-Sem)
1293 -- This flag is set on the attribute definition clause node that is
1294 -- generated by a transformation of an at mod phrase in a record
1295 -- representation clause. This is used to give slightly different (Ada 83
1296 -- compatible) semantics to such a clause, namely it is used to specify a
1297 -- minimum acceptable alignment for the base type and all subtypes. In
1298 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1299 -- must be a multiple of the given value, and the representation clause
1300 -- is considered to be type specific instead of subtype specific.
1302 -- From_Conditional_Expression (Flag1-Sem)
1303 -- This flag is set on if and case statements generated by the expansion
1304 -- of if and case expressions respectively. The flag is used to suppress
1305 -- any finalization of controlled objects found within these statements.
1307 -- From_Default (Flag6-Sem)
1308 -- This flag is set on the subprogram renaming declaration created in an
1309 -- instance for a formal subprogram, when the formal is declared with a
1310 -- box, and there is no explicit actual. If the flag is present, the
1311 -- declaration is treated as an implicit reference to the formal in the
1314 -- Generalized_Indexing (Node4-Sem)
1315 -- Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1316 -- that are Ada 2012 container indexing operations. The value of the
1317 -- attribute is a function call (possibly dereferenced) that corresponds
1318 -- to the proper expansion of the source indexing operation. Before
1319 -- expansion, the source node is rewritten as the resolved generalized
1320 -- indexing. In ASIS mode, the expansion does not take place, so that
1321 -- the source is preserved and properly annotated with types.
1323 -- Generic_Parent (Node5-Sem)
1324 -- Generic_Parent is defined on declaration nodes that are instances. The
1325 -- value of Generic_Parent is the generic entity from which the instance
1326 -- is obtained. Generic_Parent is also defined for the renaming
1327 -- declarations and object declarations created for the actuals in an
1328 -- instantiation. The generic parent of such a declaration is the
1329 -- corresponding generic association in the Instantiation node.
1331 -- Generic_Parent_Type (Node4-Sem)
1332 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1333 -- actuals of formal private and derived types. Within the instance, the
1334 -- operations on the actual are those inherited from the parent. For a
1335 -- formal private type, the parent type is the generic type itself. The
1336 -- Generic_Parent_Type is also used in an instance to determine whether a
1337 -- private operation overrides an inherited one.
1339 -- Handler_List_Entry (Node2-Sem)
1340 -- This field is present in N_Object_Declaration nodes. It is set only
1341 -- for the Handler_Record entry generated for an exception in zero cost
1342 -- exception handling mode. It references the corresponding item in the
1343 -- handler list, and is used to delete this entry if the corresponding
1344 -- handler is deleted during optimization. For further details on why
1345 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1347 -- Has_Dereference_Action (Flag13-Sem)
1348 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1349 -- indicate that the expansion has aready produced a call to primitive
1350 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1351 -- Such dereference actions are produced for debugging purposes.
1353 -- Has_Dynamic_Length_Check (Flag10-Sem)
1354 -- This flag is present in all expression nodes. It is set to indicate
1355 -- that one of the routines in unit Checks has generated a length check
1356 -- action which has been inserted at the flagged node. This is used to
1357 -- avoid the generation of duplicate checks.
1359 -- Has_Dynamic_Range_Check (Flag12-Sem)
1360 -- This flag is present in N_Subtype_Declaration nodes and on all
1361 -- expression nodes. It is set to indicate that one of the routines in
1362 -- unit Checks has generated a range check action which has been inserted
1363 -- at the flagged node. This is used to avoid the generation of duplicate
1364 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1365 -- it mean in that context???
1367 -- Has_Local_Raise (Flag8-Sem)
1368 -- Present in exception handler nodes. Set if the handler can be entered
1369 -- via a local raise that gets transformed to a goto statement. This will
1370 -- always be set if Local_Raise_Statements is non-empty, but can also be
1371 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1372 -- nodes requiring generation of back end checks.
1374 -- Has_No_Elaboration_Code (Flag17-Sem)
1375 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1376 -- or not elaboration code is present for this unit. It is initially set
1377 -- true for subprogram specs and bodies and for all generic units and
1378 -- false for non-generic package specs and bodies. Gigi may set the flag
1379 -- in the non-generic package case if it determines that no elaboration
1380 -- code is generated. Note that this flag is not related to the
1381 -- Is_Preelaborated status, there can be preelaborated packages that
1382 -- generate elaboration code, and non-preelaborated packages which do
1383 -- not generate elaboration code.
1385 -- Has_Pragma_Suppress_All (Flag14-Sem)
1386 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1387 -- pragma appears anywhere in the unit. This accommodates the rather
1388 -- strange placement rules of other compilers (DEC permits it at the
1389 -- end of a unit, and Rational allows it as a program unit pragma). We
1390 -- allow it anywhere at all, and consider it equivalent to a pragma
1391 -- Suppress (All_Checks) appearing at the start of the configuration
1392 -- pragmas for the unit.
1394 -- Has_Private_View (Flag11-Sem)
1395 -- A flag present in generic nodes that have an entity, to indicate that
1396 -- the node has a private type. Used to exchange private and full
1397 -- declarations if the visibility at instantiation is different from the
1398 -- visibility at generic definition.
1400 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1401 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1402 -- flag the presence of a pragma Relative_Deadline.
1404 -- Has_Self_Reference (Flag13-Sem)
1405 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1406 -- of the expressions contains an access attribute reference to the
1407 -- enclosing type. Such a self-reference can only appear in default-
1408 -- initialized aggregate for a record type.
1410 -- Has_SP_Choice (Flag15-Sem)
1411 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1412 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1413 -- True if the Discrete_Choices list has at least one occurrence of a
1414 -- statically predicated subtype.
1416 -- Has_Storage_Size_Pragma (Flag5-Sem)
1417 -- A flag present in an N_Task_Definition node to flag the presence of a
1418 -- Storage_Size pragma.
1420 -- Has_Wide_Character (Flag11-Sem)
1421 -- Present in string literals, set if any wide character (i.e. character
1422 -- code outside the Character range but within Wide_Character range)
1423 -- appears in the string. Used to implement pragma preference rules.
1425 -- Has_Wide_Wide_Character (Flag13-Sem)
1426 -- Present in string literals, set if any wide character (i.e. character
1427 -- code outside the Wide_Character range) appears in the string. Used to
1428 -- implement pragma preference rules.
1430 -- Header_Size_Added (Flag11-Sem)
1431 -- Present in N_Attribute_Reference nodes, set only for attribute
1432 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1433 -- hidden list header used by the runtime finalization support has been
1434 -- added to the size of the prefix. The flag also prevents the infinite
1435 -- expansion of the same attribute in the said context.
1437 -- Hidden_By_Use_Clause (Elist4-Sem)
1438 -- An entity list present in use clauses that appear within
1439 -- instantiations. For the resolution of local entities, entities
1440 -- introduced by these use clauses have priority over global ones, and
1441 -- outer entities must be explicitly hidden/restored on exit.
1443 -- Implicit_With (Flag16-Sem)
1444 -- This flag is set in the N_With_Clause node that is implicitly
1445 -- generated for runtime units that are loaded by the expander, and also
1446 -- for package System, if it is loaded implicitly by a use of the
1447 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1450 -- Implicit_With_From_Instantiation (Flag12-Sem)
1451 -- Set in N_With_Clause nodes from generic instantiations.
1453 -- Import_Interface_Present (Flag16-Sem)
1454 -- This flag is set in an Interface or Import pragma if a matching
1455 -- pragma of the other kind is also present. This is used to avoid
1456 -- generating some unwanted error messages.
1458 -- Includes_Infinities (Flag11-Sem)
1459 -- This flag is present in N_Range nodes. It is set for the range of
1460 -- unconstrained float types defined in Standard, which include not only
1461 -- the given range of values, but also legitimately can include infinite
1462 -- values. This flag is false for any float type for which an explicit
1463 -- range is given by the programmer, even if that range is identical to
1464 -- the range for Float.
1466 -- Incomplete_View (Node2-Sem)
1467 -- Present in full type declarations that are completions of incomplete
1468 -- type declarations. Denotes the corresponding incomplete type
1469 -- declaration. Used to simplify the retrieval of primitive operations
1470 -- that may be declared between the partial and the full view of an
1473 -- Inherited_Discriminant (Flag13-Sem)
1474 -- This flag is present in N_Component_Association nodes. It indicates
1475 -- that a given component association in an extension aggregate is the
1476 -- value obtained from a constraint on an ancestor. Used to prevent
1477 -- double expansion when the aggregate has expansion delayed.
1479 -- Instance_Spec (Node5-Sem)
1480 -- This field is present in generic instantiation nodes, and also in
1481 -- formal package declaration nodes (formal package declarations are
1482 -- treated in a manner very similar to package instantiations). It points
1483 -- to the node for the spec of the instance, inserted as part of the
1484 -- semantic processing for instantiations in Sem_Ch12.
1486 -- Is_Accessibility_Actual (Flag13-Sem)
1487 -- Present in N_Parameter_Association nodes. True if the parameter is
1488 -- an extra actual that carries the accessibility level of the actual
1489 -- for an access parameter, in a function that dispatches on result and
1490 -- is called in a dispatching context. Used to prevent a formal/actual
1491 -- mismatch when the call is rewritten as a dispatching call.
1493 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1494 -- A flag set in a Block_Statement node to indicate that it is the
1495 -- expansion of an asynchronous entry call. Such a block needs cleanup
1496 -- handler to assure that the call is cancelled.
1498 -- Is_Boolean_Aspect (Flag16-Sem)
1499 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1500 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1502 -- Is_Checked (Flag11-Sem)
1503 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1504 -- assertion aspect or pragma, or check pragma for an assertion, that
1505 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1506 -- is set (they cannot both be set), then this means that the status of
1507 -- the pragma has been checked at the appropriate point and should not
1508 -- be further modified (in some cases these flags are copied when a
1509 -- pragma is rewritten).
1511 -- Is_Component_Left_Opnd (Flag13-Sem)
1512 -- Is_Component_Right_Opnd (Flag14-Sem)
1513 -- Present in concatenation nodes, to indicate that the corresponding
1514 -- operand is of the component type of the result. Used in resolving
1515 -- concatenation nodes in instances.
1517 -- Is_Delayed_Aspect (Flag14-Sem)
1518 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1519 -- come from aspect specifications, where the evaluation of the aspect
1520 -- must be delayed to the freeze point. This flag is also set True in
1521 -- the corresponding N_Aspect_Specification node.
1523 -- Is_Controlling_Actual (Flag16-Sem)
1524 -- This flag is set on in an expression that is a controlling argument in
1525 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1526 -- details of its use.
1528 -- Is_Disabled (Flag15-Sem)
1529 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1530 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1531 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1532 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1533 -- If this flag is set, the aspect or policy is not analyzed for semantic
1534 -- correctness, so any expressions etc will not be marked as analyzed.
1536 -- Is_Dynamic_Coextension (Flag18-Sem)
1537 -- Present in allocator nodes, to indicate that this is an allocator
1538 -- for an access discriminant of a dynamically allocated object. The
1539 -- coextension must be deallocated and finalized at the same time as
1540 -- the enclosing object.
1542 -- Is_Entry_Barrier_Function (Flag8-Sem)
1543 -- This flag is set in an N_Subprogram_Body node which is the expansion
1544 -- of an entry barrier from a protected entry body. It is used for the
1545 -- circuitry checking for incorrect use of Current_Task.
1547 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1548 -- This flag is set in an N_Function_Call node to indicate that the extra
1549 -- actuals to support a build-in-place style of call have been added to
1552 -- Is_Finalization_Wrapper (Flag9-Sem);
1553 -- This flag is present in N_Block_Statement nodes. It is set when the
1554 -- block acts as a wrapper of a handled construct which has controlled
1555 -- objects. The wrapper prevents interference between exception handlers
1556 -- and At_End handlers.
1558 -- Is_Ignored (Flag9-Sem)
1559 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1560 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1561 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1562 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1563 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1564 -- gives a policy for the aspect or pragma, then there are two cases. For
1565 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1566 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1567 -- ignored because of the absence of a -gnata switch. For any other
1568 -- aspects or pragmas, the flag is off. If this flag is set, the
1569 -- aspect/pragma is fully analyzed and checked for other syntactic
1570 -- and semantic errors, but it does not have any semantic effect.
1572 -- Is_In_Discriminant_Check (Flag11-Sem)
1573 -- This flag is present in a selected component, and is used to indicate
1574 -- that the reference occurs within a discriminant check. The
1575 -- significance is that optimizations based on assuming that the
1576 -- discriminant check has a correct value cannot be performed in this
1577 -- case (or the discriminant check may be optimized away).
1579 -- Is_Machine_Number (Flag11-Sem)
1580 -- This flag is set in an N_Real_Literal node to indicate that the value
1581 -- is a machine number. This avoids some unnecessary cases of converting
1582 -- real literals to machine numbers.
1584 -- Is_Null_Loop (Flag16-Sem)
1585 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1586 -- can be determined to be null at compile time. This is used to remove
1587 -- the loop entirely at expansion time.
1589 -- Is_Overloaded (Flag5-Sem)
1590 -- A flag present in all expression nodes. Used temporarily during
1591 -- overloading determination. The setting of this flag is not relevant
1592 -- once overloading analysis is complete.
1594 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1595 -- A flag present only in N_Op_Expon nodes. It is set when the
1596 -- exponentiation is of the form 2 ** N, where the type of N is an
1597 -- unsigned integral subtype whose size does not exceed the size of
1598 -- Standard_Integer (i.e. a type that can be safely converted to
1599 -- Natural), and the exponentiation appears as the right operand of an
1600 -- integer multiplication or an integer division where the dividend is
1601 -- unsigned. It is also required that overflow checking is off for both
1602 -- the exponentiation and the multiply/divide node. If this set of
1603 -- conditions holds, and the flag is set, then the division or
1604 -- multiplication can be (and is) converted to a shift.
1606 -- Is_Prefixed_Call (Flag17-Sem)
1607 -- This flag is set in a selected component within a generic unit, if
1608 -- it resolves to a prefixed call to a primitive operation. The flag
1609 -- is used to prevent accidental overloadings in an instance, when a
1610 -- primitive operation and a private record component may be homographs.
1612 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1613 -- A flag set in a Subprogram_Body block to indicate that it is the
1614 -- implementation of a protected subprogram. Such a body needs cleanup
1615 -- handler to make sure that the associated protected object is unlocked
1616 -- when the subprogram completes.
1618 -- Is_Static_Coextension (Flag14-Sem)
1619 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1620 -- of an object allocated on the stack rather than the heap.
1622 -- Is_Static_Expression (Flag6-Sem)
1623 -- Indicates that an expression is a static expression according to the
1624 -- rules in (RM 4.9). Note that it is possible for this flag to be set
1625 -- when Raises_Constraint_Error is also set. In practice almost all cases
1626 -- where a static expression is required do not allow an expression which
1627 -- raises Constraint_Error, so almost always, callers should call the
1628 -- Is_Ok_Static_Expression routine instead of testing this flag. See
1629 -- spec of package Sem_Eval for full details on the use of this flag.
1631 -- Is_Subprogram_Descriptor (Flag16-Sem)
1632 -- Present in N_Object_Declaration, and set only for the object
1633 -- declaration generated for a subprogram descriptor in fast exception
1634 -- mode. See Exp_Ch11 for details of use.
1636 -- Is_Task_Allocation_Block (Flag6-Sem)
1637 -- A flag set in a Block_Statement node to indicate that it is the
1638 -- expansion of a task allocator, or the allocator of an object
1639 -- containing tasks. Such a block requires a cleanup handler to call
1640 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1641 -- allocated but not activated when the allocator completes abnormally.
1643 -- Is_Task_Master (Flag5-Sem)
1644 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1645 -- indicate that the construct is a task master (i.e. has declared tasks
1646 -- or declares an access to a task type).
1648 -- Itype (Node1-Sem)
1649 -- Used in N_Itype_Reference node to reference an itype for which it is
1650 -- important to ensure that it is defined. See description of this node
1651 -- for further details.
1653 -- Kill_Range_Check (Flag11-Sem)
1654 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1655 -- result should not be subjected to range checks. This is used for the
1656 -- implementation of Normalize_Scalars.
1658 -- Label_Construct (Node2-Sem)
1659 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1660 -- N_Block_Statement or N_Loop_Statement node to which the label
1661 -- declaration applies. This attribute is used both in the compiler and
1662 -- in the implementation of ASIS queries. The field is left empty for the
1663 -- special labels generated as part of expanding raise statements with a
1664 -- local exception handler.
1666 -- Library_Unit (Node4-Sem)
1667 -- In a stub node, Library_Unit points to the compilation unit node of
1668 -- the corresponding subunit.
1670 -- In a with clause node, Library_Unit points to the spec of the with'ed
1673 -- In a compilation unit node, the usage depends on the unit type:
1675 -- For a library unit body, Library_Unit points to the compilation unit
1676 -- node of the corresponding spec, unless it's a subprogram body with
1677 -- Acts_As_Spec set, in which case it points to itself.
1679 -- For a spec, Library_Unit points to the compilation unit node of the
1680 -- corresponding body, if present. The body will be present if the spec
1681 -- is or contains generics that we needed to instantiate. Similarly, the
1682 -- body will be present if we needed it for inlining purposes. Thus, if
1683 -- we have a spec/body pair, both of which are present, they point to
1684 -- each other via Library_Unit.
1686 -- For a subunit, Library_Unit points to the compilation unit node of
1688 -- ??? not (always) true, in (at least some, maybe all?) cases it points
1689 -- to the corresponding spec for the parent body.
1691 -- Note that this field is not used to hold the parent pointer for child
1692 -- unit (which might in any case need to use it for some other purpose as
1693 -- described above). Instead for a child unit, implicit with's are
1694 -- generated for all parents.
1696 -- Local_Raise_Statements (Elist1)
1697 -- This field is present in exception handler nodes. It is set to
1698 -- No_Elist in the normal case. If there is at least one raise statement
1699 -- which can potentially be handled as a local raise, then this field
1700 -- points to a list of raise nodes, which are calls to a routine to raise
1701 -- an exception. These are raise nodes which can be optimized into gotos
1702 -- if the handler turns out to meet the conditions which permit this
1703 -- transformation. Note that this does NOT include instances of the
1704 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1705 -- handled by the back end (using the N_Push/N_Pop mechanism).
1707 -- Loop_Actions (List2-Sem)
1708 -- A list present in Component_Association nodes in array aggregates.
1709 -- Used to collect actions that must be executed within the loop because
1710 -- they may need to be evaluated anew each time through.
1712 -- Limited_View_Installed (Flag18-Sem)
1713 -- Present in With_Clauses and in package specifications. If set on
1714 -- with_clause, it indicates that this clause has created the current
1715 -- limited view of the designated package. On a package specification, it
1716 -- indicates that the limited view has already been created because the
1717 -- package is mentioned in a limited_with_clause in the closure of the
1718 -- unit being compiled.
1720 -- Local_Raise_Not_OK (Flag7-Sem)
1721 -- Present in N_Exception_Handler nodes. Set if the handler contains
1722 -- a construct (reraise statement, or call to subprogram in package
1723 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1724 -- for a local raise (one that could otherwise be converted to a goto).
1726 -- Must_Be_Byte_Aligned (Flag14-Sem)
1727 -- This flag is present in N_Attribute_Reference nodes. It can be set
1728 -- only for the Address and Unrestricted_Access attributes. If set it
1729 -- means that the object for which the address/access is given must be on
1730 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1731 -- of the object is to be made before taking the address (this copy is in
1732 -- the current scope on the stack frame). This is used for certain cases
1733 -- of code generated by the expander that passes parameters by address.
1735 -- The reason the copy is not made by the front end is that the back end
1736 -- has more information about type layout and may be able to (but is not
1737 -- guaranteed to) prevent making unnecessary copies.
1739 -- Must_Not_Freeze (Flag8-Sem)
1740 -- A flag present in all expression nodes. Normally expressions cause
1741 -- freezing as described in the RM. If this flag is set, then this is
1742 -- inhibited. This is used by the analyzer and expander to label nodes
1743 -- that are created by semantic analysis or expansion and which must not
1744 -- cause freezing even though they normally would. This flag is also
1745 -- present in an N_Subtype_Indication node, since we also use these in
1746 -- calls to Freeze_Expression.
1748 -- Next_Entity (Node2-Sem)
1749 -- Present in defining identifiers, defining character literals and
1750 -- defining operator symbols (i.e. in all entities). The entities of a
1751 -- scope are chained, and this field is used as the forward pointer for
1752 -- this list. See Einfo for further details.
1754 -- Next_Exit_Statement (Node3-Sem)
1755 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1756 -- chained (in reverse order of appearance) from the First_Exit_Statement
1757 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1758 -- the next entry on this chain (Empty = end of list).
1760 -- Next_Implicit_With (Node3-Sem)
1761 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1762 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1763 -- to prevent multiple with_clauses for the same unit in a given context.
1764 -- A postorder traversal of the tree whose nodes are units and whose
1765 -- links are with_clauses defines the order in which CodePeer must
1766 -- examine a compiled unit and its full context. This ordering ensures
1767 -- that any subprogram call is examined after the subprogram declaration
1770 -- Next_Named_Actual (Node4-Sem)
1771 -- Present in parameter association nodes. Set during semantic analysis
1772 -- to point to the next named parameter, where parameters are ordered by
1773 -- declaration order (as opposed to the actual order in the call, which
1774 -- may be different due to named associations). Not that this field
1775 -- points to the explicit actual parameter itself, not to the
1776 -- N_Parameter_Association node (its parent).
1778 -- Next_Pragma (Node1-Sem)
1779 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1780 -- nodes. Currently used for two purposes:
1782 -- Create a list of linked Check_Policy pragmas. The head of this list
1783 -- is stored in Opt.Check_Policy_List (which has further details).
1785 -- Used by processing for Pre/Postcondition pragmas to store a list of
1786 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1789 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
1790 -- the apply to the same construct. These are visible/private mode for
1791 -- a package spec and declarative/statement mode for package body.
1793 -- Next_Rep_Item (Node5-Sem)
1794 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1795 -- clauses, record rep clauses, aspect specification nodes. Used to link
1796 -- representation items that apply to an entity. See full description of
1797 -- First_Rep_Item field in Einfo for further details.
1799 -- Next_Use_Clause (Node3-Sem)
1800 -- While use clauses are active during semantic processing, they are
1801 -- chained from the scope stack entry, using Next_Use_Clause as a link
1802 -- pointer, with Empty marking the end of the list. The head pointer is
1803 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1804 -- processing (i.e. when Gigi sees the tree, the contents of this field
1805 -- is undefined and should not be read).
1807 -- No_Ctrl_Actions (Flag7-Sem)
1808 -- Present in N_Assignment_Statement to indicate that no Finalize nor
1809 -- Adjust should take place on this assignment even though the RHS is
1810 -- controlled. Also indicates that the primitive _assign should not be
1811 -- used for a tagged assignment. This is used in init procs and aggregate
1812 -- expansions where the generated assignments are initializations, not
1813 -- real assignments.
1815 -- No_Elaboration_Check (Flag14-Sem)
1816 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1817 -- that no elaboration check is needed on the call, because it appears in
1818 -- the context of a local Suppress pragma. This is used on calls within
1819 -- task bodies, where the actual elaboration checks are applied after
1820 -- analysis, when the local scope stack is not present.
1822 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1823 -- Present in N_With_Clause nodes. Set if the with clause is on the
1824 -- package or subprogram spec where the main unit is the corresponding
1825 -- body, and no entities of the with'ed unit are referenced by the spec
1826 -- (an entity may still be referenced in the body, so this flag is used
1827 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1830 -- No_Initialization (Flag13-Sem)
1831 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1832 -- object must not be initialized (by Initialize or call to an init
1833 -- proc). This is needed for controlled aggregates. When the Object
1834 -- declaration has an expression, this flag means that this expression
1835 -- should not be taken into account (needed for in place initialization
1836 -- with aggregates, and for object with an address clause, which are
1837 -- initialized with an assignment at freeze time).
1839 -- No_Minimize_Eliminate (Flag17-Sem)
1840 -- This flag is present in membership operator nodes (N_In/N_Not_In).
1841 -- It is used to indicate that processing for extended overflow checking
1842 -- modes is not required (this is used to prevent infinite recursion).
1844 -- No_Truncation (Flag17-Sem)
1845 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1846 -- only if the RM_Size of the source is greater than the RM_Size of the
1847 -- target for scalar operands. Normally in such a case we truncate some
1848 -- higher order bits of the source, and then sign/zero extend the result
1849 -- to form the output value. But if this flag is set, then we do not do
1850 -- any truncation, so for example, if an 8 bit input is converted to 5
1851 -- bit result which is in fact stored in 8 bits, then the high order
1852 -- three bits of the target result will be copied from the source. This
1853 -- is used for properly setting out of range values for use by pragmas
1854 -- Initialize_Scalars and Normalize_Scalars.
1856 -- Non_Aliased_Prefix (Flag18-Sem)
1857 -- Present in N_Attribute_Reference nodes. Set only for the case of an
1858 -- Unrestricted_Access reference whose prefix is non-aliased, which is
1859 -- the case that is permitted for Unrestricted_Access except when the
1860 -- expected type is a thin pointer to unconstrained array. This flag is
1861 -- to assist in detecting this illegal use of Unrestricted_Access.
1863 -- Null_Excluding_Subtype (Flag16)
1864 -- Present in N_Access_To_Object_Definition. Indicates that the subtype
1865 -- indication carries a null-exclusion indicator, which is distinct from
1866 -- the null-exclusion indicator that may precede the access keyword.
1868 -- Original_Discriminant (Node2-Sem)
1869 -- Present in identifiers. Used in references to discriminants that
1870 -- appear in generic units. Because the names of the discriminants may be
1871 -- different in an instance, we use this field to recover the position of
1872 -- the discriminant in the original type, and replace it with the
1873 -- discriminant at the same position in the instantiated type.
1875 -- Original_Entity (Node2-Sem)
1876 -- Present in numeric literals. Used to denote the named number that has
1877 -- been constant-folded into the given literal. If literal is from
1878 -- source, or the result of some other constant-folding operation, then
1879 -- Original_Entity is empty. This field is needed to handle properly
1880 -- named numbers in generic units, where the Associated_Node field
1881 -- interferes with the Entity field, making it impossible to preserve the
1882 -- original entity at the point of instantiation (ASIS problem).
1884 -- Others_Discrete_Choices (List1-Sem)
1885 -- When a case statement or variant is analyzed, the semantic checks
1886 -- determine the actual list of choices that correspond to an others
1887 -- choice. This list is materialized for later use by the expander and
1888 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1889 -- this materialized list of choices, which is in standard format for a
1890 -- list of discrete choices, except that of course it cannot contain an
1891 -- N_Others_Choice entry.
1893 -- Parent_Spec (Node4-Sem)
1894 -- For a library unit that is a child unit spec (package or subprogram
1895 -- declaration, generic declaration or instantiation, or library level
1896 -- rename, this field points to the compilation unit node for the parent
1897 -- package specification. This field is Empty for library bodies (the
1898 -- parent spec in this case can be found from the corresponding spec).
1900 -- Premature_Use (Node5-Sem)
1901 -- Present in N_Incomplete_Type_Declaration node. Used for improved
1902 -- error diagnostics: if there is a premature usage of an incomplete
1903 -- type, a subsequently generated error message indicates the position
1904 -- of its full declaration.
1906 -- Present_Expr (Uint3-Sem)
1907 -- Present in an N_Variant node. This has a meaningful value only after
1908 -- Gigi has back annotated the tree with representation information. At
1909 -- this point, it contains a reference to a gcc expression that depends
1910 -- on the values of one or more discriminants. Give a set of discriminant
1911 -- values, this expression evaluates to False (zero) if variant is not
1912 -- present, and True (non-zero) if it is present. See unit Repinfo for
1913 -- further details on gigi back annotation. This field is used during
1914 -- ASIS processing (data decomposition annex) to determine if a field is
1917 -- Print_In_Hex (Flag13-Sem)
1918 -- Set on an N_Integer_Literal node to indicate that the value should be
1919 -- printed in hexadecimal in the sprint listing. Has no effect on
1920 -- legality or semantics of program, only on the displayed output. This
1921 -- is used to clarify output from the packed array cases.
1923 -- Procedure_To_Call (Node2-Sem)
1924 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1925 -- and N_Extended_Return_Statement nodes. References the entity for the
1926 -- declaration of the procedure to be called to accomplish the required
1927 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1928 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1929 -- allocating the return value), and for the Deallocate procedure in the
1930 -- case of N_Free_Statement.
1932 -- Raises_Constraint_Error (Flag7-Sem)
1933 -- Set on an expression whose evaluation will definitely fail constraint
1934 -- error check. In the case of static expressions, this flag must be set
1935 -- accurately (and if it is set, the expression is typically illegal
1936 -- unless it appears as a non-elaborated branch of a short-circuit form).
1937 -- For a non-static expression, this flag may be set whenever an
1938 -- expression (e.g. an aggregate) is known to raise constraint error. If
1939 -- set, the expression definitely will raise CE if elaborated at runtime.
1940 -- If not set, the expression may or may not raise CE. In other words, on
1941 -- static expressions, the flag is set accurately, on non-static
1942 -- expressions it is set conservatively.
1944 -- Redundant_Use (Flag13-Sem)
1945 -- Present in nodes that can appear as an operand in a use clause or use
1946 -- type clause (identifiers, expanded names, attribute references). Set
1947 -- to indicate that a use is redundant (and therefore need not be undone
1950 -- Renaming_Exception (Node2-Sem)
1951 -- Present in N_Exception_Declaration node. Used to point back to the
1952 -- exception renaming for an exception declared within a subprogram.
1953 -- What happens is that an exception declared in a subprogram is moved
1954 -- to the library level with a unique name, and the original exception
1955 -- becomes a renaming. This link from the library level exception to the
1956 -- renaming declaration allows registering of the proper exception name.
1958 -- Return_Statement_Entity (Node5-Sem)
1959 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1960 -- Points to an E_Return_Statement representing the return statement.
1962 -- Return_Object_Declarations (List3)
1963 -- Present in N_Extended_Return_Statement. Points to a list initially
1964 -- containing a single N_Object_Declaration representing the return
1965 -- object. We use a list (instead of just a pointer to the object decl)
1966 -- because Analyze wants to insert extra actions on this list.
1968 -- Rounded_Result (Flag18-Sem)
1969 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1970 -- Used in the fixed-point cases to indicate that the result must be
1971 -- rounded as a result of the use of the 'Round attribute. Also used for
1972 -- integer N_Op_Divide nodes to indicate that the result should be
1973 -- rounded to the nearest integer (breaking ties away from zero), rather
1974 -- than truncated towards zero as usual. These rounded integer operations
1975 -- are the result of expansion of rounded fixed-point divide, conversion
1976 -- and multiplication operations.
1978 -- SCIL_Entity (Node4-Sem)
1979 -- Present in SCIL nodes. References the specific tagged type associated
1980 -- with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
1981 -- the controlling type of the call; for an N_SCIL_Membership_Test node
1982 -- generated as part of testing membership in T'Class, this is T; for an
1983 -- N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
1985 -- SCIL_Controlling_Tag (Node5-Sem)
1986 -- Present in N_SCIL_Dispatching_Call nodes. References the controlling
1987 -- tag of a dispatching call. This is usually an N_Selected_Component
1988 -- node (for a _tag component), but may be an N_Object_Declaration or
1989 -- N_Parameter_Specification node in some cases (e.g., for a call to
1990 -- a classwide streaming operation or a call to an instance of
1991 -- Ada.Tags.Generic_Dispatching_Constructor).
1993 -- SCIL_Tag_Value (Node5-Sem)
1994 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1995 -- of the value that is being tested.
1997 -- SCIL_Target_Prim (Node2-Sem)
1998 -- Present in N_SCIL_Dispatching_Call nodes. References the primitive
1999 -- operation named (statically) in a dispatching call.
2001 -- Scope (Node3-Sem)
2002 -- Present in defining identifiers, defining character literals and
2003 -- defining operator symbols (i.e. in all entities). The entities of a
2004 -- scope all use this field to reference the corresponding scope entity.
2005 -- See Einfo for further details.
2007 -- Shift_Count_OK (Flag4-Sem)
2008 -- A flag present in shift nodes to indicate that the shift count is
2009 -- known to be in range, i.e. is in the range from zero to word length
2010 -- minus one. If this flag is not set, then the shift count may be
2011 -- outside this range, i.e. larger than the word length, and the code
2012 -- must ensure that such shift counts give the appropriate result.
2014 -- Source_Type (Node1-Sem)
2015 -- Used in an N_Validate_Unchecked_Conversion node to point to the
2016 -- source type entity for the unchecked conversion instantiation
2017 -- which gigi must do size validation for.
2019 -- Split_PPC (Flag17)
2020 -- When a Pre or Post aspect specification is processed, it is broken
2021 -- into AND THEN sections. The left most section has Split_PPC set to
2022 -- False, indicating that it is the original specification (e.g. for
2023 -- posting errors). For other sections, Split_PPC is set to True.
2024 -- This flag is set in both the N_Aspect_Specification node itself,
2025 -- and in the pragma which is generated from this node.
2027 -- Storage_Pool (Node1-Sem)
2028 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2029 -- and N_Extended_Return_Statement nodes. References the entity for the
2030 -- storage pool to be used for the allocate or free call or for the
2031 -- allocation of the returned value from function. Empty indicates that
2032 -- the global default pool is to be used. Note that in the case
2033 -- of a return statement, this field is set only if the function returns
2034 -- value of a type whose size is not known at compile time on the
2037 -- Suppress_Assignment_Checks (Flag18-Sem)
2038 -- Used in generated N_Assignment_Statement nodes to suppress predicate
2039 -- and range checks in cases where the generated code knows that the
2040 -- value being assigned is in range and satisfies any predicate. Also
2041 -- can be set in N_Object_Declaration nodes, to similarly suppress any
2042 -- checks on the initializing value. In assignment statements it also
2043 -- suppresses access checks in the generated code for out- and in-out
2044 -- parameters in entry calls.
2046 -- Suppress_Loop_Warnings (Flag17-Sem)
2047 -- Used in N_Loop_Statement node to indicate that warnings within the
2048 -- body of the loop should be suppressed. This is set when the range
2049 -- of a FOR loop is known to be null, or is probably null (loop would
2050 -- only execute if invalid values are present).
2052 -- Target_Type (Node2-Sem)
2053 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
2054 -- type entity for the unchecked conversion instantiation which gigi must
2055 -- do size validation for.
2057 -- Then_Actions (List3-Sem)
2058 -- This field is present in if expression nodes. During code expansion
2059 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
2060 -- at an appropriate place in the tree to get elaborated at the right
2061 -- time. For if expressions, we have to be sure that the actions for
2062 -- for the Then branch are only elaborated if the condition is True.
2063 -- The Then_Actions field is used as a temporary parking place for
2064 -- these actions. The final tree is always rewritten to eliminate the
2065 -- need for this field, so in the tree passed to Gigi, this field is
2066 -- always set to No_List.
2068 -- Treat_Fixed_As_Integer (Flag14-Sem)
2069 -- This flag appears in operator nodes for divide, multiply, mod and rem
2070 -- on fixed-point operands. It indicates that the operands are to be
2071 -- treated as integer values, ignoring small values. This flag is only
2072 -- set as a result of expansion of fixed-point operations. Typically a
2073 -- fixed-point multiplication in the source generates subsidiary
2074 -- multiplication and division operations that work with the underlying
2075 -- integer values and have this flag set. Note that this flag is not
2076 -- needed on other arithmetic operations (add, neg, subtract etc.) since
2077 -- in these cases it is always the case that fixed is treated as integer.
2078 -- The Etype field MUST be set if this flag is set. The analyzer knows to
2079 -- leave such nodes alone, and whoever makes them must set the correct
2082 -- TSS_Elist (Elist3-Sem)
2083 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2084 -- entries for each TSS (type support subprogram) associated with the
2085 -- frozen type. The elements of the list are the entities for the
2086 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2087 -- if there are no type support subprograms for the type or if the freeze
2088 -- node is not for a type.
2090 -- Uneval_Old_Accept (Flag7-Sem)
2091 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'A'
2092 -- (accept) at the point where the pragma is encountered (including the
2093 -- case of a pragma generated from an aspect specification). It is this
2094 -- setting that is relevant, rather than the setting at the point where
2095 -- a contract is finally analyzed after the delay till the freeze point.
2097 -- Uneval_Old_Warn (Flag18-Sem)
2098 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'W'
2099 -- (warn) at the point where the pragma is encountered (including the
2100 -- case of a pragma generated from an aspect specification). It is this
2101 -- setting that is relevant, rather than the setting at the point where
2102 -- a contract is finally analyzed after the delay till the freeze point.
2104 -- Unreferenced_In_Spec (Flag7-Sem)
2105 -- Present in N_With_Clause nodes. Set if the with clause is on the
2106 -- package or subprogram spec where the main unit is the corresponding
2107 -- body, and is not referenced by the spec (it may still be referenced by
2108 -- the body, so this flag is used to generate the proper message (see
2109 -- Sem_Util.Check_Unused_Withs for details)
2111 -- Uninitialized_Variable (Node3-Sem)
2112 -- Present in N_Formal_Private_Type_Definition and in N_Private_
2113 -- Extension_Declarations. Indicates that a variable in a generic unit
2114 -- whose type is a formal private or derived type is read without being
2115 -- initialized. Used to warn if the corresponding actual type is not
2116 -- a fully initialized type.
2118 -- Used_Operations (Elist5-Sem)
2119 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2120 -- are made potentially use-visible by the clause. Simplifies processing
2121 -- on exit from the scope of the use_type_clause, in particular in the
2122 -- case of Use_All_Type, when those operations several scopes.
2124 -- Was_Originally_Stub (Flag13-Sem)
2125 -- This flag is set in the node for a proper body that replaces stub.
2126 -- During the analysis procedure, stubs in some situations get rewritten
2127 -- by the corresponding bodies, and we set this flag to remember that
2128 -- this happened. Note that it is not good enough to rely on the use of
2129 -- Original_Node here because of the case of nested instantiations where
2130 -- the substituted node can be copied.
2132 -- Withed_Body (Node1-Sem)
2133 -- Present in N_With_Clause nodes. Set if the unit in whose context
2134 -- the with_clause appears instantiates a generic contained in the
2135 -- library unit of the with_clause and as a result loads its body.
2136 -- Used for a more precise unit traversal for CodePeer.
2138 --------------------------------------------------
2139 -- Note on Use of End_Label and End_Span Fields --
2140 --------------------------------------------------
2142 -- Several constructs have end lines:
2144 -- Loop Statement end loop [loop_IDENTIFIER];
2145 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2146 -- Task Definition end [task_IDENTIFIER]
2147 -- Protected Definition end [protected_IDENTIFIER]
2148 -- Protected Body end [protected_IDENTIFIER]
2150 -- Block Statement end [block_IDENTIFIER];
2151 -- Subprogram Body end [DESIGNATOR];
2152 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2153 -- Task Body end [task_IDENTIFIER];
2154 -- Accept Statement end [entry_IDENTIFIER]];
2155 -- Entry Body end [entry_IDENTIFIER];
2157 -- If Statement end if;
2158 -- Case Statement end case;
2160 -- Record Definition end record;
2161 -- Enumeration Definition );
2163 -- The End_Label and End_Span fields are used to mark the locations of
2164 -- these lines, and also keep track of the label in the case where a label
2167 -- For the first group above, the End_Label field of the corresponding node
2168 -- is used to point to the label identifier. In the case where there is no
2169 -- label in the source, the parser supplies a dummy identifier (with
2170 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2171 -- marks the location of the token following the END token.
2173 -- For the second group, the use of End_Label is similar, but the End_Label
2174 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2175 -- simply because in some cases there is no room in the parent node.
2177 -- For the third group, there is never any label, and instead of using
2178 -- End_Label, we use the End_Span field which gives the location of the
2179 -- token following END, relative to the starting Sloc of the construct,
2180 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2181 -- following the End_Label.
2183 -- The record definition case is handled specially, we treat it as though
2184 -- it required an optional label which is never present, and so the parser
2185 -- always builds a dummy identifier with Comes From Source set False. The
2186 -- reason we do this, rather than using End_Span in this case, is that we
2187 -- want to generate a cross-ref entry for the end of a record, since it
2188 -- represents a scope for name declaration purposes.
2190 -- The enumeration definition case is handled in an exactly similar manner,
2191 -- building a dummy identifier to get a cross-reference.
2193 -- Note: the reason we store the difference as a Uint, instead of storing
2194 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2195 -- distinguished from other types of values, and we count on all general
2196 -- use fields being self describing. To make things easier for clients,
2197 -- note that we provide function End_Location, and procedure
2198 -- Set_End_Location to allow access to the logical value (which is the
2199 -- Source_Ptr value for the end token).
2201 ---------------------
2202 -- Syntactic Nodes --
2203 ---------------------
2205 ---------------------
2206 -- 2.3 Identifier --
2207 ---------------------
2209 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2210 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2212 -- An IDENTIFIER shall not be a reserved word
2214 -- In the Ada grammar identifiers are the bottom level tokens which have
2215 -- very few semantics. Actual program identifiers are direct names. If
2216 -- we were being 100% honest with the grammar, then we would have a node
2217 -- called N_Direct_Name which would point to an identifier. However,
2218 -- that's too many extra nodes, so we just use the N_Identifier node
2219 -- directly as a direct name, and it contains the expression fields and
2220 -- Entity field that correspond to its use as a direct name. In those
2221 -- few cases where identifiers appear in contexts where they are not
2222 -- direct names (pragmas, pragma argument associations, attribute
2223 -- references and attribute definition clauses), the Chars field of the
2224 -- node contains the Name_Id for the identifier name.
2226 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2227 -- cases. First, an incorrect use of a reserved word as an identifier is
2228 -- diagnosed and then treated as a normal identifier. Second, an
2229 -- attribute designator of the form of a reserved word (access, delta,
2230 -- digits, range) is treated as an identifier.
2232 -- Note: The set of letters that is permitted in an identifier depends
2233 -- on the character set in use. See package Csets for full details.
2236 -- Sloc points to identifier
2237 -- Chars (Name1) contains the Name_Id for the identifier
2238 -- Entity (Node4-Sem)
2239 -- Associated_Node (Node4-Sem)
2240 -- Original_Discriminant (Node2-Sem)
2241 -- Redundant_Use (Flag13-Sem)
2242 -- Atomic_Sync_Required (Flag14-Sem)
2243 -- Has_Private_View (Flag11-Sem) (set in generic units)
2244 -- plus fields for expression
2246 --------------------------
2247 -- 2.4 Numeric Literal --
2248 --------------------------
2250 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2252 ----------------------------
2253 -- 2.4.1 Decimal Literal --
2254 ----------------------------
2256 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2258 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2260 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2262 -- Decimal literals appear in the tree as either integer literal nodes
2263 -- or real literal nodes, depending on whether a period is present.
2265 -- Note: literal nodes appear as a result of direct use of literals
2266 -- in the source program, and also as the result of evaluating
2267 -- expressions at compile time. In the latter case, it is possible
2268 -- to construct real literals that have no syntactic representation
2269 -- using the standard literal format. Such literals are listed by
2270 -- Sprint using the notation [numerator / denominator].
2272 -- Note: the value of an integer literal node created by the front end
2273 -- is never outside the range of values of the base type. However, it
2274 -- can be the case that the created value is outside the range of the
2275 -- particular subtype. This happens in the case of integer overflows
2276 -- with checks suppressed.
2278 -- N_Integer_Literal
2279 -- Sloc points to literal
2280 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2281 -- has been constant-folded into its literal value.
2282 -- Intval (Uint3) contains integer value of literal
2283 -- plus fields for expression
2284 -- Print_In_Hex (Flag13-Sem)
2287 -- Sloc points to literal
2288 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2289 -- has been constant-folded into its literal value.
2290 -- Realval (Ureal3) contains real value of literal
2291 -- Corresponding_Integer_Value (Uint4-Sem)
2292 -- Is_Machine_Number (Flag11-Sem)
2293 -- plus fields for expression
2295 --------------------------
2296 -- 2.4.2 Based Literal --
2297 --------------------------
2299 -- BASED_LITERAL ::=
2300 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2304 -- BASED_NUMERAL ::=
2305 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2307 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2309 -- Based literals appear in the tree as either integer literal nodes
2310 -- or real literal nodes, depending on whether a period is present.
2312 ----------------------------
2313 -- 2.5 Character Literal --
2314 ----------------------------
2316 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2318 -- N_Character_Literal
2319 -- Sloc points to literal
2320 -- Chars (Name1) contains the Name_Id for the identifier
2321 -- Char_Literal_Value (Uint2) contains the literal value
2322 -- Entity (Node4-Sem)
2323 -- Associated_Node (Node4-Sem)
2324 -- Has_Private_View (Flag11-Sem) set in generic units.
2325 -- plus fields for expression
2327 -- Note: the Entity field will be missing (set to Empty) for character
2328 -- literals whose type is Standard.Wide_Character or Standard.Character
2329 -- or a type derived from one of these two. In this case the character
2330 -- literal stands for its own coding. The reason we take this irregular
2331 -- short cut is to avoid the need to build lots of junk defining
2332 -- character literal nodes.
2334 -------------------------
2335 -- 2.6 String Literal --
2336 -------------------------
2338 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2340 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2341 -- single GRAPHIC_CHARACTER other than a quotation mark.
2343 -- Is_Folded_In_Parser is True if the parser created this literal by
2344 -- folding a sequence of "&" operators. For example, if the source code
2345 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2346 -- is set. This flag is needed because the parser doesn't know about
2347 -- visibility, so the folded result might be wrong, and semantic
2348 -- analysis needs to check for that.
2351 -- Sloc points to literal
2352 -- Strval (Str3) contains Id of string value
2353 -- Has_Wide_Character (Flag11-Sem)
2354 -- Has_Wide_Wide_Character (Flag13-Sem)
2355 -- Is_Folded_In_Parser (Flag4)
2356 -- plus fields for expression
2362 -- A COMMENT starts with two adjacent hyphens and extends up to the
2363 -- end of the line. A COMMENT may appear on any line of a program.
2365 -- Comments are skipped by the scanner and do not appear in the tree.
2366 -- It is possible to reconstruct the position of comments with respect
2367 -- to the elements of the tree by using the source position (Sloc)
2368 -- pointers that appear in every tree node.
2374 -- PRAGMA ::= pragma IDENTIFIER
2375 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2377 -- Note that a pragma may appear in the tree anywhere a declaration
2378 -- or a statement may appear, as well as in some other situations
2379 -- which are explicitly documented.
2382 -- Sloc points to PRAGMA
2383 -- Next_Pragma (Node1-Sem)
2384 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2385 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2386 -- Pragma_Identifier (Node4)
2387 -- Next_Rep_Item (Node5-Sem)
2388 -- Class_Present (Flag6) set if from Aspect with 'Class
2389 -- From_Aspect_Specification (Flag13-Sem)
2390 -- Is_Delayed_Aspect (Flag14-Sem)
2391 -- Is_Disabled (Flag15-Sem)
2392 -- Is_Ignored (Flag9-Sem)
2393 -- Is_Checked (Flag11-Sem)
2394 -- Import_Interface_Present (Flag16-Sem)
2395 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2396 -- Uneval_Old_Accept (Flag7-Sem)
2397 -- Uneval_Old_Warn (Flag18-Sem)
2399 -- Note: we should have a section on what pragmas are passed on to
2400 -- the back end to be processed. This section should note that pragma
2401 -- Psect_Object is always converted to Common_Object, but there are
2402 -- undoubtedly many other similar notes required ???
2404 -- Note: a utility function Pragma_Name may be applied to pragma nodes
2405 -- to conveniently obtain the Chars field of the Pragma_Identifier.
2407 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2408 -- aspect name, as does the Pragma_Identifier. In this case if the
2409 -- pragma has a local name argument (such as pragma Inline), it is
2410 -- resolved to point to the specific entity affected by the pragma.
2412 --------------------------------------
2413 -- 2.8 Pragma Argument Association --
2414 --------------------------------------
2416 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2417 -- [pragma_argument_IDENTIFIER =>] NAME
2418 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2420 -- In Ada 2012, there are two more possibilities:
2422 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2423 -- [pragma_argument_ASPECT_MARK =>] NAME
2424 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2426 -- where the interesting allowed cases (which do not fit the syntax of
2427 -- the first alternative above) are
2429 -- ASPECT_MARK => Pre'Class |
2431 -- Type_Invariant'Class |
2434 -- We allow this special usage in all Ada modes, but it would be a
2435 -- pain to allow these aspects to pervade the pragma syntax, and the
2436 -- representation of pragma nodes internally. So what we do is to
2437 -- replace these ASPECT_MARK forms with identifiers whose name is one
2438 -- of the special internal names _Pre, _Post or _Type_Invariant.
2440 -- We do a similar replacement of these Aspect_Mark forms in the
2441 -- Expression of a pragma argument association for the cases of
2442 -- the first arguments of any Check pragmas and Check_Policy pragmas
2444 -- N_Pragma_Argument_Association
2445 -- Sloc points to first token in association
2446 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2447 -- Expression (Node3)
2449 ------------------------
2450 -- 2.9 Reserved Word --
2451 ------------------------
2453 -- Reserved words are parsed by the scanner, and returned as the
2454 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2456 ----------------------------
2457 -- 3.1 Basic Declaration --
2458 ----------------------------
2460 -- BASIC_DECLARATION ::=
2461 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2462 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2463 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2464 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2465 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2466 -- | GENERIC_INSTANTIATION
2468 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2469 -- see further description in section on semantic nodes.
2471 -- Also, in the tree that is constructed, a pragma may appear
2472 -- anywhere that a declaration may appear.
2474 ------------------------------
2475 -- 3.1 Defining Identifier --
2476 ------------------------------
2478 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2480 -- A defining identifier is an entity, which has additional fields
2481 -- depending on the setting of the Ekind field. These additional
2482 -- fields are defined (and access subprograms declared) in package
2485 -- Note: N_Defining_Identifier is an extended node whose fields are
2486 -- deliberate layed out to match the layout of fields in an ordinary
2487 -- N_Identifier node allowing for easy alteration of an identifier
2488 -- node into a defining identifier node. For details, see procedure
2489 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2491 -- N_Defining_Identifier
2492 -- Sloc points to identifier
2493 -- Chars (Name1) contains the Name_Id for the identifier
2494 -- Next_Entity (Node2-Sem)
2495 -- Scope (Node3-Sem)
2496 -- Etype (Node5-Sem)
2498 -----------------------------
2499 -- 3.2.1 Type Declaration --
2500 -----------------------------
2502 -- TYPE_DECLARATION ::=
2503 -- FULL_TYPE_DECLARATION
2504 -- | INCOMPLETE_TYPE_DECLARATION
2505 -- | PRIVATE_TYPE_DECLARATION
2506 -- | PRIVATE_EXTENSION_DECLARATION
2508 ----------------------------------
2509 -- 3.2.1 Full Type Declaration --
2510 ----------------------------------
2512 -- FULL_TYPE_DECLARATION ::=
2513 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2514 -- is TYPE_DEFINITION
2515 -- [ASPECT_SPECIFICATIONS];
2516 -- | TASK_TYPE_DECLARATION
2517 -- | PROTECTED_TYPE_DECLARATION
2519 -- The full type declaration node is used only for the first case. The
2520 -- second case (concurrent type declaration), is represented directly
2521 -- by a task type declaration or a protected type declaration.
2523 -- N_Full_Type_Declaration
2524 -- Sloc points to TYPE
2525 -- Defining_Identifier (Node1)
2526 -- Incomplete_View (Node2-Sem)
2527 -- Discriminant_Specifications (List4) (set to No_List if none)
2528 -- Type_Definition (Node3)
2529 -- Discr_Check_Funcs_Built (Flag11-Sem)
2531 ----------------------------
2532 -- 3.2.1 Type Definition --
2533 ----------------------------
2535 -- TYPE_DEFINITION ::=
2536 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2537 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2538 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2539 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2541 --------------------------------
2542 -- 3.2.2 Subtype Declaration --
2543 --------------------------------
2545 -- SUBTYPE_DECLARATION ::=
2546 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2547 -- [ASPECT_SPECIFICATIONS];
2549 -- The subtype indication field is set to Empty for subtypes
2550 -- declared in package Standard (Positive, Natural).
2552 -- N_Subtype_Declaration
2553 -- Sloc points to SUBTYPE
2554 -- Defining_Identifier (Node1)
2555 -- Null_Exclusion_Present (Flag11)
2556 -- Subtype_Indication (Node5)
2557 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2558 -- Exception_Junk (Flag8-Sem)
2559 -- Has_Dynamic_Range_Check (Flag12-Sem)
2561 -------------------------------
2562 -- 3.2.2 Subtype Indication --
2563 -------------------------------
2565 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2567 -- Note: if no constraint is present, the subtype indication appears
2568 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2569 -- node is used only if a constraint is present.
2571 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2572 -- with the null-exclusion part (see AI-231), we had to introduce a new
2573 -- attribute in all the parents of subtype_indication nodes to indicate
2574 -- if the null-exclusion is present.
2576 -- Note: the reason that this node has expression fields is that a
2577 -- subtype indication can appear as an operand of a membership test.
2579 -- N_Subtype_Indication
2580 -- Sloc points to first token of subtype mark
2581 -- Subtype_Mark (Node4)
2582 -- Constraint (Node3)
2583 -- Etype (Node5-Sem)
2584 -- Must_Not_Freeze (Flag8-Sem)
2586 -- Note: Depending on context, the Etype is either the entity of the
2587 -- Subtype_Mark field, or it is an itype constructed to reify the
2588 -- subtype indication. In particular, such itypes are created for a
2589 -- subtype indication that appears in an array type declaration. This
2590 -- simplifies constraint checking in indexed components.
2592 -- For subtype indications that appear in scalar type and subtype
2593 -- declarations, the Etype is the entity of the subtype mark.
2595 -------------------------
2596 -- 3.2.2 Subtype Mark --
2597 -------------------------
2599 -- SUBTYPE_MARK ::= subtype_NAME
2601 -----------------------
2602 -- 3.2.2 Constraint --
2603 -----------------------
2605 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2607 ------------------------------
2608 -- 3.2.2 Scalar Constraint --
2609 ------------------------------
2611 -- SCALAR_CONSTRAINT ::=
2612 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2614 ---------------------------------
2615 -- 3.2.2 Composite Constraint --
2616 ---------------------------------
2618 -- COMPOSITE_CONSTRAINT ::=
2619 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2621 -------------------------------
2622 -- 3.3.1 Object Declaration --
2623 -------------------------------
2625 -- OBJECT_DECLARATION ::=
2626 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2627 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2628 -- [ASPECT_SPECIFICATIONS];
2629 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2630 -- ACCESS_DEFINITION [:= EXPRESSION]
2631 -- [ASPECT_SPECIFICATIONS];
2632 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2633 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2634 -- [ASPECT_SPECIFICATIONS];
2635 -- | SINGLE_TASK_DECLARATION
2636 -- | SINGLE_PROTECTED_DECLARATION
2638 -- Note: aliased is not permitted in Ada 83 mode
2640 -- The N_Object_Declaration node is only for the first two cases.
2641 -- Single task declaration is handled by P_Task (9.1)
2642 -- Single protected declaration is handled by P_protected (9.5)
2644 -- Although the syntax allows multiple identifiers in the list, the
2645 -- semantics is as though successive declarations were given with
2646 -- identical type definition and expression components. To simplify
2647 -- semantic processing, the parser represents a multiple declaration
2648 -- case as a sequence of single declarations, using the More_Ids and
2649 -- Prev_Ids flags to preserve the original source form as described
2650 -- in the section on "Handling of Defining Identifier Lists".
2652 -- The flag Has_Init_Expression is set if an initializing expression
2653 -- is present. Normally it is set if and only if Expression contains
2654 -- a non-empty value, but there is an exception to this. When the
2655 -- initializing expression is an aggregate which requires explicit
2656 -- assignments, the Expression field gets set to Empty, but this flag
2657 -- is still set, so we don't forget we had an initializing expression.
2659 -- Note: if a range check is required for the initialization
2660 -- expression then the Do_Range_Check flag is set in the Expression,
2661 -- with the check being done against the type given by the object
2662 -- definition, which is also the Etype of the defining identifier.
2664 -- Note: the contents of the Expression field must be ignored (i.e.
2665 -- treated as though it were Empty) if No_Initialization is set True.
2667 -- Note: the back end places some restrictions on the form of the
2668 -- Expression field. If the object being declared is Atomic, then
2669 -- the Expression may not have the form of an aggregate (since this
2670 -- might cause the back end to generate separate assignments). In this
2671 -- case the front end must generate an extra temporary and initialize
2672 -- this temporary as required (the temporary itself is not atomic).
2674 -- Note: there is not node kind for object definition. Instead, the
2675 -- corresponding field holds a subtype indication, an array type
2676 -- definition, or (Ada 2005, AI-406) an access definition.
2678 -- N_Object_Declaration
2679 -- Sloc points to first identifier
2680 -- Defining_Identifier (Node1)
2681 -- Aliased_Present (Flag4)
2682 -- Constant_Present (Flag17) set if CONSTANT appears
2683 -- Null_Exclusion_Present (Flag11)
2684 -- Object_Definition (Node4) subtype indic./array type def./access def.
2685 -- Expression (Node3) (set to Empty if not present)
2686 -- Handler_List_Entry (Node2-Sem)
2687 -- Corresponding_Generic_Association (Node5-Sem)
2688 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2689 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2690 -- No_Initialization (Flag13-Sem)
2691 -- Assignment_OK (Flag15-Sem)
2692 -- Exception_Junk (Flag8-Sem)
2693 -- Is_Subprogram_Descriptor (Flag16-Sem)
2694 -- Has_Init_Expression (Flag14)
2695 -- Suppress_Assignment_Checks (Flag18-Sem)
2697 -------------------------------------
2698 -- 3.3.1 Defining Identifier List --
2699 -------------------------------------
2701 -- DEFINING_IDENTIFIER_LIST ::=
2702 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2704 -------------------------------
2705 -- 3.3.2 Number Declaration --
2706 -------------------------------
2708 -- NUMBER_DECLARATION ::=
2709 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2711 -- Although the syntax allows multiple identifiers in the list, the
2712 -- semantics is as though successive declarations were given with
2713 -- identical expressions. To simplify semantic processing, the parser
2714 -- represents a multiple declaration case as a sequence of single
2715 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2716 -- the original source form as described in the section on "Handling
2717 -- of Defining Identifier Lists".
2719 -- N_Number_Declaration
2720 -- Sloc points to first identifier
2721 -- Defining_Identifier (Node1)
2722 -- Expression (Node3)
2723 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2724 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2726 ----------------------------------
2727 -- 3.4 Derived Type Definition --
2728 ----------------------------------
2730 -- DERIVED_TYPE_DEFINITION ::=
2731 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2732 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2734 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2737 -- Note: a record extension part is required if ABSTRACT is present
2739 -- N_Derived_Type_Definition
2740 -- Sloc points to NEW
2741 -- Abstract_Present (Flag4)
2742 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2743 -- Subtype_Indication (Node5)
2744 -- Record_Extension_Part (Node3) (set to Empty if not present)
2745 -- Limited_Present (Flag17)
2746 -- Task_Present (Flag5) set in task interfaces
2747 -- Protected_Present (Flag6) set in protected interfaces
2748 -- Synchronized_Present (Flag7) set in interfaces
2749 -- Interface_List (List2) (set to No_List if none)
2750 -- Interface_Present (Flag16) set in abstract interfaces
2752 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2753 -- Interface_List, and Interface_Present are used for abstract
2754 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2756 ---------------------------
2757 -- 3.5 Range Constraint --
2758 ---------------------------
2760 -- RANGE_CONSTRAINT ::= range RANGE
2762 -- N_Range_Constraint
2763 -- Sloc points to RANGE
2764 -- Range_Expression (Node4)
2771 -- RANGE_ATTRIBUTE_REFERENCE
2772 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2774 -- Note: the case of a range given as a range attribute reference
2775 -- appears directly in the tree as an attribute reference.
2777 -- Note: the field name for a reference to a range is Range_Expression
2778 -- rather than Range, because range is a reserved keyword in Ada.
2780 -- Note: the reason that this node has expression fields is that a
2781 -- range can appear as an operand of a membership test. The Etype
2782 -- field is the type of the range (we do NOT construct an implicit
2783 -- subtype to represent the range exactly).
2786 -- Sloc points to ..
2787 -- Low_Bound (Node1)
2788 -- High_Bound (Node2)
2789 -- Includes_Infinities (Flag11)
2790 -- plus fields for expression
2792 -- Note: if the range appears in a context, such as a subtype
2793 -- declaration, where range checks are required on one or both of
2794 -- the expression fields, then type conversion nodes are inserted
2795 -- to represent the required checks.
2797 ----------------------------------------
2798 -- 3.5.1 Enumeration Type Definition --
2799 ----------------------------------------
2801 -- ENUMERATION_TYPE_DEFINITION ::=
2802 -- (ENUMERATION_LITERAL_SPECIFICATION
2803 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2805 -- Note: the Literals field in the node described below is null for
2806 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2807 -- which special processing handles these types as special cases.
2809 -- N_Enumeration_Type_Definition
2810 -- Sloc points to left parenthesis
2811 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2812 -- End_Label (Node4) (set to Empty if internally generated record)
2814 ----------------------------------------------
2815 -- 3.5.1 Enumeration Literal Specification --
2816 ----------------------------------------------
2818 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2819 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2821 ---------------------------------------
2822 -- 3.5.1 Defining Character Literal --
2823 ---------------------------------------
2825 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2827 -- A defining character literal is an entity, which has additional
2828 -- fields depending on the setting of the Ekind field. These
2829 -- additional fields are defined (and access subprograms declared)
2830 -- in package Einfo.
2832 -- Note: N_Defining_Character_Literal is an extended node whose fields
2833 -- are deliberate layed out to match the layout of fields in an ordinary
2834 -- N_Character_Literal node allowing for easy alteration of a character
2835 -- literal node into a defining character literal node. For details, see
2836 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2838 -- N_Defining_Character_Literal
2839 -- Sloc points to literal
2840 -- Chars (Name1) contains the Name_Id for the identifier
2841 -- Next_Entity (Node2-Sem)
2842 -- Scope (Node3-Sem)
2843 -- Etype (Node5-Sem)
2845 ------------------------------------
2846 -- 3.5.4 Integer Type Definition --
2847 ------------------------------------
2849 -- Note: there is an error in this rule in the latest version of the
2850 -- grammar, so we have retained the old rule pending clarification.
2852 -- INTEGER_TYPE_DEFINITION ::=
2853 -- SIGNED_INTEGER_TYPE_DEFINITION
2854 -- | MODULAR_TYPE_DEFINITION
2856 -------------------------------------------
2857 -- 3.5.4 Signed Integer Type Definition --
2858 -------------------------------------------
2860 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2861 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2863 -- Note: the Low_Bound and High_Bound fields are set to Empty
2864 -- for integer types defined in package Standard.
2866 -- N_Signed_Integer_Type_Definition
2867 -- Sloc points to RANGE
2868 -- Low_Bound (Node1)
2869 -- High_Bound (Node2)
2871 ------------------------------------
2872 -- 3.5.4 Modular Type Definition --
2873 ------------------------------------
2875 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2877 -- N_Modular_Type_Definition
2878 -- Sloc points to MOD
2879 -- Expression (Node3)
2881 ---------------------------------
2882 -- 3.5.6 Real Type Definition --
2883 ---------------------------------
2885 -- REAL_TYPE_DEFINITION ::=
2886 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2888 --------------------------------------
2889 -- 3.5.7 Floating Point Definition --
2890 --------------------------------------
2892 -- FLOATING_POINT_DEFINITION ::=
2893 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2895 -- Note: The Digits_Expression and Real_Range_Specifications fields
2896 -- are set to Empty for floating-point types declared in Standard.
2898 -- N_Floating_Point_Definition
2899 -- Sloc points to DIGITS
2900 -- Digits_Expression (Node2)
2901 -- Real_Range_Specification (Node4) (set to Empty if not present)
2903 -------------------------------------
2904 -- 3.5.7 Real Range Specification --
2905 -------------------------------------
2907 -- REAL_RANGE_SPECIFICATION ::=
2908 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2910 -- N_Real_Range_Specification
2911 -- Sloc points to RANGE
2912 -- Low_Bound (Node1)
2913 -- High_Bound (Node2)
2915 -----------------------------------
2916 -- 3.5.9 Fixed Point Definition --
2917 -----------------------------------
2919 -- FIXED_POINT_DEFINITION ::=
2920 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2922 --------------------------------------------
2923 -- 3.5.9 Ordinary Fixed Point Definition --
2924 --------------------------------------------
2926 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2927 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2929 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2931 -- N_Ordinary_Fixed_Point_Definition
2932 -- Sloc points to DELTA
2933 -- Delta_Expression (Node3)
2934 -- Real_Range_Specification (Node4)
2936 -------------------------------------------
2937 -- 3.5.9 Decimal Fixed Point Definition --
2938 -------------------------------------------
2940 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2941 -- delta static_EXPRESSION
2942 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2944 -- Note: decimal types are not permitted in Ada 83 mode
2946 -- N_Decimal_Fixed_Point_Definition
2947 -- Sloc points to DELTA
2948 -- Delta_Expression (Node3)
2949 -- Digits_Expression (Node2)
2950 -- Real_Range_Specification (Node4) (set to Empty if not present)
2952 ------------------------------
2953 -- 3.5.9 Digits Constraint --
2954 ------------------------------
2956 -- DIGITS_CONSTRAINT ::=
2957 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2959 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2960 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2962 -- N_Digits_Constraint
2963 -- Sloc points to DIGITS
2964 -- Digits_Expression (Node2)
2965 -- Range_Constraint (Node4) (set to Empty if not present)
2967 --------------------------------
2968 -- 3.6 Array Type Definition --
2969 --------------------------------
2971 -- ARRAY_TYPE_DEFINITION ::=
2972 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2974 -----------------------------------------
2975 -- 3.6 Unconstrained Array Definition --
2976 -----------------------------------------
2978 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2979 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2980 -- COMPONENT_DEFINITION
2982 -- Note: dimensionality of array is indicated by number of entries in
2983 -- the Subtype_Marks list, which has one entry for each dimension.
2985 -- N_Unconstrained_Array_Definition
2986 -- Sloc points to ARRAY
2987 -- Subtype_Marks (List2)
2988 -- Component_Definition (Node4)
2990 -----------------------------------
2991 -- 3.6 Index Subtype Definition --
2992 -----------------------------------
2994 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2996 -- There is no explicit node in the tree for an index subtype
2997 -- definition since the N_Unconstrained_Array_Definition node
2998 -- incorporates the type marks which appear in this context.
3000 ---------------------------------------
3001 -- 3.6 Constrained Array Definition --
3002 ---------------------------------------
3004 -- CONSTRAINED_ARRAY_DEFINITION ::=
3005 -- array (DISCRETE_SUBTYPE_DEFINITION
3006 -- {, DISCRETE_SUBTYPE_DEFINITION})
3007 -- of COMPONENT_DEFINITION
3009 -- Note: dimensionality of array is indicated by number of entries
3010 -- in the Discrete_Subtype_Definitions list, which has one entry
3011 -- for each dimension.
3013 -- N_Constrained_Array_Definition
3014 -- Sloc points to ARRAY
3015 -- Discrete_Subtype_Definitions (List2)
3016 -- Component_Definition (Node4)
3018 -- Note: although the language allows the full syntax for discrete
3019 -- subtype definitions (i.e. a discrete subtype indication or a range),
3020 -- in the generated tree, we always rewrite these as N_Range nodes.
3022 --------------------------------------
3023 -- 3.6 Discrete Subtype Definition --
3024 --------------------------------------
3026 -- DISCRETE_SUBTYPE_DEFINITION ::=
3027 -- discrete_SUBTYPE_INDICATION | RANGE
3029 -------------------------------
3030 -- 3.6 Component Definition --
3031 -------------------------------
3033 -- COMPONENT_DEFINITION ::=
3034 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
3036 -- Note: although the syntax does not permit a component definition to
3037 -- be an anonymous array (and the parser will diagnose such an attempt
3038 -- with an appropriate message), it is possible for anonymous arrays
3039 -- to appear as component definitions. The semantics and back end handle
3040 -- this case properly, and the expander in fact generates such cases.
3041 -- Access_Definition is an optional field that gives support to
3042 -- Ada 2005 (AI-230). The parser generates nodes that have either the
3043 -- Subtype_Indication field or else the Access_Definition field.
3045 -- N_Component_Definition
3046 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
3047 -- Aliased_Present (Flag4)
3048 -- Null_Exclusion_Present (Flag11)
3049 -- Subtype_Indication (Node5) (set to Empty if not present)
3050 -- Access_Definition (Node3) (set to Empty if not present)
3052 -----------------------------
3053 -- 3.6.1 Index Constraint --
3054 -----------------------------
3056 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3058 -- It is not in general possible to distinguish between discriminant
3059 -- constraints and index constraints at parse time, since a simple
3060 -- name could be either the subtype mark of a discrete range, or an
3061 -- expression in a discriminant association with no name. Either
3062 -- entry appears simply as the name, and the semantic parse must
3063 -- distinguish between the two cases. Thus we use a common tree
3064 -- node format for both of these constraint types.
3066 -- See Discriminant_Constraint for format of node
3068 ---------------------------
3069 -- 3.6.1 Discrete Range --
3070 ---------------------------
3072 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3074 ----------------------------
3075 -- 3.7 Discriminant Part --
3076 ----------------------------
3078 -- DISCRIMINANT_PART ::=
3079 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3081 ------------------------------------
3082 -- 3.7 Unknown Discriminant Part --
3083 ------------------------------------
3085 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
3087 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
3089 -- There is no explicit node in the tree for an unknown discriminant
3090 -- part. Instead the Unknown_Discriminants_Present flag is set in the
3093 ----------------------------------
3094 -- 3.7 Known Discriminant Part --
3095 ----------------------------------
3097 -- KNOWN_DISCRIMINANT_PART ::=
3098 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3100 -------------------------------------
3101 -- 3.7 Discriminant Specification --
3102 -------------------------------------
3104 -- DISCRIMINANT_SPECIFICATION ::=
3105 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3106 -- [:= DEFAULT_EXPRESSION]
3107 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3108 -- [:= DEFAULT_EXPRESSION]
3110 -- Although the syntax allows multiple identifiers in the list, the
3111 -- semantics is as though successive specifications were given with
3112 -- identical type definition and expression components. To simplify
3113 -- semantic processing, the parser represents a multiple declaration
3114 -- case as a sequence of single specifications, using the More_Ids and
3115 -- Prev_Ids flags to preserve the original source form as described
3116 -- in the section on "Handling of Defining Identifier Lists".
3118 -- N_Discriminant_Specification
3119 -- Sloc points to first identifier
3120 -- Defining_Identifier (Node1)
3121 -- Null_Exclusion_Present (Flag11)
3122 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3123 -- Expression (Node3) (set to Empty if no default expression)
3124 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3125 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3127 -----------------------------
3128 -- 3.7 Default Expression --
3129 -----------------------------
3131 -- DEFAULT_EXPRESSION ::= EXPRESSION
3133 ------------------------------------
3134 -- 3.7.1 Discriminant Constraint --
3135 ------------------------------------
3137 -- DISCRIMINANT_CONSTRAINT ::=
3138 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3140 -- It is not in general possible to distinguish between discriminant
3141 -- constraints and index constraints at parse time, since a simple
3142 -- name could be either the subtype mark of a discrete range, or an
3143 -- expression in a discriminant association with no name. Either
3144 -- entry appears simply as the name, and the semantic parse must
3145 -- distinguish between the two cases. Thus we use a common tree
3146 -- node format for both of these constraint types.
3148 -- N_Index_Or_Discriminant_Constraint
3149 -- Sloc points to left paren
3150 -- Constraints (List1) points to list of discrete ranges or
3151 -- discriminant associations
3153 -------------------------------------
3154 -- 3.7.1 Discriminant Association --
3155 -------------------------------------
3157 -- DISCRIMINANT_ASSOCIATION ::=
3158 -- [discriminant_SELECTOR_NAME
3159 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3161 -- Note: a discriminant association that has no selector name list
3162 -- appears directly as an expression in the tree.
3164 -- N_Discriminant_Association
3165 -- Sloc points to first token of discriminant association
3166 -- Selector_Names (List1) (always non-empty, since if no selector
3167 -- names are present, this node is not used, see comment above)
3168 -- Expression (Node3)
3170 ---------------------------------
3171 -- 3.8 Record Type Definition --
3172 ---------------------------------
3174 -- RECORD_TYPE_DEFINITION ::=
3175 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3177 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3179 -- There is no explicit node in the tree for a record type definition.
3180 -- Instead the flags for Tagged_Present and Limited_Present appear in
3181 -- the N_Record_Definition node for a record definition appearing in
3182 -- the context of a record type definition.
3184 ----------------------------
3185 -- 3.8 Record Definition --
3186 ----------------------------
3188 -- RECORD_DEFINITION ::=
3194 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
3195 -- flags appear only for a record definition appearing in a record
3198 -- Note: the NULL RECORD case is not permitted in Ada 83
3200 -- N_Record_Definition
3201 -- Sloc points to RECORD or NULL
3202 -- End_Label (Node4) (set to Empty if internally generated record)
3203 -- Abstract_Present (Flag4)
3204 -- Tagged_Present (Flag15)
3205 -- Limited_Present (Flag17)
3206 -- Component_List (Node1) empty in null record case
3207 -- Null_Present (Flag13) set in null record case
3208 -- Task_Present (Flag5) set in task interfaces
3209 -- Protected_Present (Flag6) set in protected interfaces
3210 -- Synchronized_Present (Flag7) set in interfaces
3211 -- Interface_Present (Flag16) set in abstract interfaces
3212 -- Interface_List (List2) (set to No_List if none)
3214 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3215 -- Interface_List and Interface_Present are used for abstract
3216 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3218 -------------------------
3219 -- 3.8 Component List --
3220 -------------------------
3222 -- COMPONENT_LIST ::=
3223 -- COMPONENT_ITEM {COMPONENT_ITEM}
3224 -- | {COMPONENT_ITEM} VARIANT_PART
3228 -- Sloc points to first token of component list
3229 -- Component_Items (List3)
3230 -- Variant_Part (Node4) (set to Empty if no variant part)
3231 -- Null_Present (Flag13)
3233 -------------------------
3234 -- 3.8 Component Item --
3235 -------------------------
3237 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3239 -- Note: A component item can also be a pragma, and in the tree
3240 -- that is obtained after semantic processing, a component item
3241 -- can be an N_Null node resulting from a non-recognized pragma.
3243 --------------------------------
3244 -- 3.8 Component Declaration --
3245 --------------------------------
3247 -- COMPONENT_DECLARATION ::=
3248 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3249 -- [:= DEFAULT_EXPRESSION]
3250 -- [ASPECT_SPECIFICATIONS];
3252 -- Note: although the syntax does not permit a component definition to
3253 -- be an anonymous array (and the parser will diagnose such an attempt
3254 -- with an appropriate message), it is possible for anonymous arrays
3255 -- to appear as component definitions. The semantics and back end handle
3256 -- this case properly, and the expander in fact generates such cases.
3258 -- Although the syntax allows multiple identifiers in the list, the
3259 -- semantics is as though successive declarations were given with the
3260 -- same component definition and expression components. To simplify
3261 -- semantic processing, the parser represents a multiple declaration
3262 -- case as a sequence of single declarations, using the More_Ids and
3263 -- Prev_Ids flags to preserve the original source form as described
3264 -- in the section on "Handling of Defining Identifier Lists".
3266 -- N_Component_Declaration
3267 -- Sloc points to first identifier
3268 -- Defining_Identifier (Node1)
3269 -- Component_Definition (Node4)
3270 -- Expression (Node3) (set to Empty if no default expression)
3271 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3272 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3274 -------------------------
3275 -- 3.8.1 Variant Part --
3276 -------------------------
3279 -- case discriminant_DIRECT_NAME is
3280 -- VARIANT {VARIANT}
3283 -- Note: the variants list can contain pragmas as well as variants.
3284 -- In a properly formed program there is at least one variant.
3287 -- Sloc points to CASE
3291 --------------------
3293 --------------------
3296 -- when DISCRETE_CHOICE_LIST =>
3300 -- Sloc points to WHEN
3301 -- Discrete_Choices (List4)
3302 -- Component_List (Node1)
3303 -- Enclosing_Variant (Node2-Sem)
3304 -- Present_Expr (Uint3-Sem)
3305 -- Dcheck_Function (Node5-Sem)
3306 -- Has_SP_Choice (Flag15-Sem)
3308 -- Note: in the list of Discrete_Choices, the tree passed to the back
3309 -- end does not have choice entries corresponding to names of statically
3310 -- predicated subtypes. Such entries are always expanded out to the list
3311 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3312 -- mode also has this expansion, but done with a proper Rewrite call on
3313 -- the N_Variant node so that ASIS can properly retrieve the original.
3315 ---------------------------------
3316 -- 3.8.1 Discrete Choice List --
3317 ---------------------------------
3319 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3321 ----------------------------
3322 -- 3.8.1 Discrete Choice --
3323 ----------------------------
3325 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3327 -- Note: in Ada 83 mode, the expression must be a simple expression
3329 -- The only choice that appears explicitly is the OTHERS choice, as
3330 -- defined here. Other cases of discrete choice (expression and
3331 -- discrete range) appear directly. This production is also used
3332 -- for the OTHERS possibility of an exception choice.
3334 -- Note: in accordance with the syntax, the parser does not check that
3335 -- OTHERS appears at the end on its own in a choice list context. This
3336 -- is a semantic check.
3339 -- Sloc points to OTHERS
3340 -- Others_Discrete_Choices (List1-Sem)
3341 -- All_Others (Flag11-Sem)
3343 ----------------------------------
3344 -- 3.9.1 Record Extension Part --
3345 ----------------------------------
3347 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3349 -- Note: record extension parts are not permitted in Ada 83 mode
3351 --------------------------------------
3352 -- 3.9.4 Interface Type Definition --
3353 --------------------------------------
3355 -- INTERFACE_TYPE_DEFINITION ::=
3356 -- [limited | task | protected | synchronized]
3357 -- interface [interface_list]
3359 -- Note: Interfaces are implemented with N_Record_Definition and
3360 -- N_Derived_Type_Definition nodes because most of the support
3361 -- for the analysis of abstract types has been reused to
3362 -- analyze abstract interfaces.
3364 ----------------------------------
3365 -- 3.10 Access Type Definition --
3366 ----------------------------------
3368 -- ACCESS_TYPE_DEFINITION ::=
3369 -- ACCESS_TO_OBJECT_DEFINITION
3370 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3372 --------------------------
3373 -- 3.10 Null Exclusion --
3374 --------------------------
3376 -- NULL_EXCLUSION ::= not null
3378 ---------------------------------------
3379 -- 3.10 Access To Object Definition --
3380 ---------------------------------------
3382 -- ACCESS_TO_OBJECT_DEFINITION ::=
3383 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3384 -- SUBTYPE_INDICATION
3386 -- N_Access_To_Object_Definition
3387 -- Sloc points to ACCESS
3388 -- All_Present (Flag15)
3389 -- Null_Exclusion_Present (Flag11)
3390 -- Null_Excluding_Subtype (Flag16)
3391 -- Subtype_Indication (Node5)
3392 -- Constant_Present (Flag17)
3394 -----------------------------------
3395 -- 3.10 General Access Modifier --
3396 -----------------------------------
3398 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3400 -- Note: general access modifiers are not permitted in Ada 83 mode
3402 -- There is no explicit node in the tree for general access modifier.
3403 -- Instead the All_Present or Constant_Present flags are set in the
3406 -------------------------------------------
3407 -- 3.10 Access To Subprogram Definition --
3408 -------------------------------------------
3410 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3411 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3412 -- | [NULL_EXCLUSION] access [protected] function
3413 -- PARAMETER_AND_RESULT_PROFILE
3415 -- Note: access to subprograms are not permitted in Ada 83 mode
3417 -- N_Access_Function_Definition
3418 -- Sloc points to ACCESS
3419 -- Null_Exclusion_Present (Flag11)
3420 -- Null_Exclusion_In_Return_Present (Flag14)
3421 -- Protected_Present (Flag6)
3422 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3423 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3425 -- N_Access_Procedure_Definition
3426 -- Sloc points to ACCESS
3427 -- Null_Exclusion_Present (Flag11)
3428 -- Protected_Present (Flag6)
3429 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3431 -----------------------------
3432 -- 3.10 Access Definition --
3433 -----------------------------
3435 -- ACCESS_DEFINITION ::=
3436 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3437 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3439 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3441 -- N_Access_Definition
3442 -- Sloc points to ACCESS
3443 -- Null_Exclusion_Present (Flag11)
3444 -- All_Present (Flag15)
3445 -- Constant_Present (Flag17)
3446 -- Subtype_Mark (Node4)
3447 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3449 -----------------------------------------
3450 -- 3.10.1 Incomplete Type Declaration --
3451 -----------------------------------------
3453 -- INCOMPLETE_TYPE_DECLARATION ::=
3454 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3456 -- N_Incomplete_Type_Declaration
3457 -- Sloc points to TYPE
3458 -- Defining_Identifier (Node1)
3459 -- Discriminant_Specifications (List4) (set to No_List if no
3460 -- discriminant part, or if the discriminant part is an
3461 -- unknown discriminant part)
3462 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3463 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3464 -- Tagged_Present (Flag15)
3466 ----------------------------
3467 -- 3.11 Declarative Part --
3468 ----------------------------
3470 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3472 -- Note: although the parser enforces the syntactic requirement that
3473 -- a declarative part can contain only declarations, the semantic
3474 -- processing may add statements to the list of actions in a
3475 -- declarative part, so the code generator should be prepared
3476 -- to accept a statement in this position.
3478 ----------------------------
3479 -- 3.11 Declarative Item --
3480 ----------------------------
3482 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3484 ----------------------------------
3485 -- 3.11 Basic Declarative Item --
3486 ----------------------------------
3488 -- BASIC_DECLARATIVE_ITEM ::=
3489 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3495 -- BODY ::= PROPER_BODY | BODY_STUB
3497 -----------------------
3498 -- 3.11 Proper Body --
3499 -----------------------
3502 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3509 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3510 -- | INDEXED_COMPONENT | SLICE
3511 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3512 -- | TYPE_CONVERSION | FUNCTION_CALL
3513 -- | CHARACTER_LITERAL
3515 ----------------------
3516 -- 4.1 Direct Name --
3517 ----------------------
3519 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3525 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3527 -------------------------------
3528 -- 4.1 Explicit Dereference --
3529 -------------------------------
3531 -- EXPLICIT_DEREFERENCE ::= NAME . all
3533 -- N_Explicit_Dereference
3534 -- Sloc points to ALL
3536 -- Actual_Designated_Subtype (Node4-Sem)
3537 -- Atomic_Sync_Required (Flag14-Sem)
3538 -- Has_Dereference_Action (Flag13-Sem)
3539 -- plus fields for expression
3541 -------------------------------
3542 -- 4.1 Implicit Dereference --
3543 -------------------------------
3545 -- IMPLICIT_DEREFERENCE ::= NAME
3547 ------------------------------
3548 -- 4.1.1 Indexed Component --
3549 ------------------------------
3551 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3553 -- Note: the parser may generate this node in some situations where it
3554 -- should be a function call. The semantic pass must correct this
3555 -- misidentification (which is inevitable at the parser level).
3557 -- N_Indexed_Component
3558 -- Sloc contains a copy of the Sloc value of the Prefix
3560 -- Expressions (List1)
3561 -- Generalized_Indexing (Node4-Sem)
3562 -- Atomic_Sync_Required (Flag14-Sem)
3563 -- plus fields for expression
3565 -- Note: if any of the subscripts requires a range check, then the
3566 -- Do_Range_Check flag is set on the corresponding expression, with
3567 -- the index type being determined from the type of the Prefix, which
3568 -- references the array being indexed.
3570 -- Note: in a fully analyzed and expanded indexed component node, and
3571 -- hence in any such node that gigi sees, if the prefix is an access
3572 -- type, then an explicit dereference operation has been inserted.
3578 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3580 -- Note: an implicit subtype is created to describe the resulting
3581 -- type, so that the bounds of this type are the bounds of the slice.
3584 -- Sloc points to first token of prefix
3586 -- Discrete_Range (Node4)
3587 -- plus fields for expression
3589 -------------------------------
3590 -- 4.1.3 Selected Component --
3591 -------------------------------
3593 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3595 -- Note: selected components that are semantically expanded names get
3596 -- changed during semantic processing into the separate N_Expanded_Name
3597 -- node. See description of this node in the section on semantic nodes.
3599 -- N_Selected_Component
3600 -- Sloc points to period
3602 -- Selector_Name (Node2)
3603 -- Associated_Node (Node4-Sem)
3604 -- Do_Discriminant_Check (Flag1-Sem)
3605 -- Is_In_Discriminant_Check (Flag11-Sem)
3606 -- Is_Prefixed_Call (Flag17-Sem)
3607 -- Atomic_Sync_Required (Flag14-Sem)
3608 -- plus fields for expression
3610 --------------------------
3611 -- 4.1.3 Selector Name --
3612 --------------------------
3614 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3616 --------------------------------
3617 -- 4.1.4 Attribute Reference --
3618 --------------------------------
3620 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3622 -- Note: the syntax is quite ambiguous at this point. Consider:
3624 -- A'Length (X) X is part of the attribute designator
3625 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3626 -- A'Class (X) X is the expression of a type conversion
3628 -- It would be possible for the parser to distinguish these cases
3629 -- by looking at the attribute identifier. However, that would mean
3630 -- more work in introducing new implementation defined attributes,
3631 -- and also it would mean that special processing for attributes
3632 -- would be scattered around, instead of being centralized in the
3633 -- semantic routine that handles an N_Attribute_Reference node.
3634 -- Consequently, the parser in all the above cases stores the
3635 -- expression (X in these examples) as a single element list in
3636 -- in the Expressions field of the N_Attribute_Reference node.
3638 -- Similarly, for attributes like Max which take two arguments,
3639 -- we store the two arguments as a two element list in the
3640 -- Expressions field. Of course it is clear at parse time that
3641 -- this case is really a function call with an attribute as the
3642 -- prefix, but it turns out to be convenient to handle the two
3643 -- argument case in a similar manner to the one argument case,
3644 -- and indeed in general the parser will accept any number of
3645 -- expressions in this position and store them as a list in the
3646 -- attribute reference node. This allows for future addition of
3647 -- attributes that take more than two arguments.
3649 -- Note: named associates are not permitted in function calls where
3650 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3651 -- to skip the normal subprogram argument processing.
3653 -- Note: for the attributes whose designators are technically keywords,
3654 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3655 -- the corresponding name, even though no identifier is involved.
3657 -- Note: the generated code may contain stream attributes applied to
3658 -- limited types for which no stream routines exist officially. In such
3659 -- case, the result is to use the stream attribute for the underlying
3660 -- full type, or in the case of a protected type, the components
3661 -- (including any discriminants) are merely streamed in order.
3663 -- See Exp_Attr for a complete description of which attributes are
3664 -- passed onto Gigi, and which are handled entirely by the front end.
3666 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3667 -- a non-standard enumeration type or a nonzero/zero semantics
3668 -- boolean type, so the value is simply the stored representation.
3670 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3671 -- references a subprogram that is a renaming, then the front end must
3672 -- rewrite the attribute to refer directly to the renamed entity.
3674 -- Note: syntactically the prefix of an attribute reference must be a
3675 -- name, and this (somewhat artificial) requirement is enforced by the
3676 -- parser. However, for many attributes, such as 'Valid, it is quite
3677 -- reasonable to apply the attribute to any value, and hence to any
3678 -- expression. Internally in the tree, the prefix is an expression which
3679 -- does not have to be a name, and this is handled fine by the semantic
3680 -- analysis and expansion, and back ends. This arises for the case of
3681 -- attribute references built by the expander (e.g. 'Valid for the case
3682 -- of an implicit validity check).
3684 -- Note: In generated code, the Address and Unrestricted_Access
3685 -- attributes can be applied to any expression, and the meaning is
3686 -- to create an object containing the value (the object is in the
3687 -- current stack frame), and pass the address of this value. If the
3688 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3689 -- is taken must be on a byte (storage unit) boundary, and if it is
3690 -- not (or may not be), then the generated code must create a copy
3691 -- that is byte aligned, and pass the address of this copy.
3693 -- N_Attribute_Reference
3694 -- Sloc points to apostrophe
3695 -- Prefix (Node3) (general expression, see note above)
3696 -- Attribute_Name (Name2) identifier name from attribute designator
3697 -- Expressions (List1) (set to No_List if no associated expressions)
3698 -- Entity (Node4-Sem) used if the attribute yields a type
3699 -- Associated_Node (Node4-Sem)
3700 -- Do_Overflow_Check (Flag17-Sem)
3701 -- Header_Size_Added (Flag11-Sem)
3702 -- Must_Be_Byte_Aligned (Flag14-Sem)
3703 -- Non_Aliased_Prefix (Flag18-Sem)
3704 -- Redundant_Use (Flag13-Sem)
3706 -- plus fields for expression
3708 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
3709 -- into equivalent if expressions, properly taking care of side effects.
3711 ---------------------------------
3712 -- 4.1.4 Attribute Designator --
3713 ---------------------------------
3715 -- ATTRIBUTE_DESIGNATOR ::=
3716 -- IDENTIFIER [(static_EXPRESSION)]
3717 -- | access | delta | digits
3719 -- There is no explicit node in the tree for an attribute designator.
3720 -- Instead the Attribute_Name and Expressions fields of the parent
3721 -- node (N_Attribute_Reference node) hold the information.
3723 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3724 -- designator, then they are treated as identifiers internally
3725 -- rather than the keywords of the same name.
3727 --------------------------------------
3728 -- 4.1.4 Range Attribute Reference --
3729 --------------------------------------
3731 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3733 -- A range attribute reference is represented in the tree using the
3734 -- normal N_Attribute_Reference node.
3736 ---------------------------------------
3737 -- 4.1.4 Range Attribute Designator --
3738 ---------------------------------------
3740 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3742 -- A range attribute designator is represented in the tree using the
3743 -- normal N_Attribute_Reference node.
3745 --------------------
3747 --------------------
3750 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3752 -----------------------------
3753 -- 4.3.1 Record Aggregate --
3754 -----------------------------
3756 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3759 -- Sloc points to left parenthesis
3760 -- Expressions (List1) (set to No_List if none or null record case)
3761 -- Component_Associations (List2) (set to No_List if none)
3762 -- Null_Record_Present (Flag17)
3763 -- Aggregate_Bounds (Node3-Sem)
3764 -- Associated_Node (Node4-Sem)
3765 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3766 -- Expansion_Delayed (Flag11-Sem)
3767 -- Has_Self_Reference (Flag13-Sem)
3768 -- plus fields for expression
3770 -- Note: this structure is used for both record and array aggregates
3771 -- since the two cases are not separable by the parser. The parser
3772 -- makes no attempt to enforce consistency here, so it is up to the
3773 -- semantic phase to make sure that the aggregate is consistent (i.e.
3774 -- that it is not a "half-and-half" case that mixes record and array
3775 -- syntax. In particular, for a record aggregate, the expressions
3776 -- field will be set if there are positional associations.
3778 -- Note: N_Aggregate is not used for all aggregates; in particular,
3779 -- there is a separate node kind for extension aggregates.
3781 -- Note: gigi/gcc can handle array aggregates correctly providing that
3782 -- they are entirely positional, and the array subtype involved has a
3783 -- known at compile time length and is not bit packed, or a convention
3784 -- Fortran array with more than one dimension. If these conditions
3785 -- are not met, then the front end must translate the aggregate into
3786 -- an appropriate set of assignments into a temporary.
3788 -- Note: for the record aggregate case, gigi/gcc can handle most cases
3789 -- of record aggregates, including those for packed, and rep-claused
3790 -- records, and also variant records, providing that there are no
3791 -- variable length fields whose size is not known at compile time,
3792 -- and providing that the aggregate is presented in fully named form.
3794 -- The other situation in which array aggregates and record aggregates
3795 -- cannot be passed to the back end is if assignment to one or more
3796 -- components itself needs expansion, e.g. in the case of an assignment
3797 -- of an object of a controlled type. In such cases, the front end
3798 -- must expand the aggregate to a series of assignments, and apply
3799 -- the required expansion to the individual assignment statements.
3801 ----------------------------------------------
3802 -- 4.3.1 Record Component Association List --
3803 ----------------------------------------------
3805 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3806 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3809 -- There is no explicit node in the tree for a record component
3810 -- association list. Instead the Null_Record_Present flag is set in
3811 -- the parent node for the NULL RECORD case.
3813 ------------------------------------------------------
3814 -- 4.3.1 Record Component Association (also 4.3.3) --
3815 ------------------------------------------------------
3817 -- RECORD_COMPONENT_ASSOCIATION ::=
3818 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3820 -- N_Component_Association
3821 -- Sloc points to first selector name
3823 -- Loop_Actions (List2-Sem)
3824 -- Expression (Node3) (empty if Box_Present)
3825 -- Box_Present (Flag15)
3826 -- Inherited_Discriminant (Flag13)
3828 -- Note: this structure is used for both record component associations
3829 -- and array component associations, since the two cases aren't always
3830 -- separable by the parser. The choices list may represent either a
3831 -- list of selector names in the record aggregate case, or a list of
3832 -- discrete choices in the array aggregate case or an N_Others_Choice
3833 -- node (which appears as a singleton list). Box_Present gives support
3834 -- to Ada 2005 (AI-287).
3836 ----------------------------------
3837 -- 4.3.1 Component Choice List --
3838 ----------------------------------
3840 -- COMPONENT_CHOICE_LIST ::=
3841 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3844 -- The entries of a component choice list appear in the Choices list of
3845 -- the associated N_Component_Association, as either selector names, or
3846 -- as an N_Others_Choice node.
3848 --------------------------------
3849 -- 4.3.2 Extension Aggregate --
3850 --------------------------------
3852 -- EXTENSION_AGGREGATE ::=
3853 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3855 -- Note: extension aggregates are not permitted in Ada 83 mode
3857 -- N_Extension_Aggregate
3858 -- Sloc points to left parenthesis
3859 -- Ancestor_Part (Node3)
3860 -- Associated_Node (Node4-Sem)
3861 -- Expressions (List1) (set to No_List if none or null record case)
3862 -- Component_Associations (List2) (set to No_List if none)
3863 -- Null_Record_Present (Flag17)
3864 -- Expansion_Delayed (Flag11-Sem)
3865 -- Has_Self_Reference (Flag13-Sem)
3866 -- plus fields for expression
3868 --------------------------
3869 -- 4.3.2 Ancestor Part --
3870 --------------------------
3872 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3874 ----------------------------
3875 -- 4.3.3 Array Aggregate --
3876 ----------------------------
3878 -- ARRAY_AGGREGATE ::=
3879 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3881 ---------------------------------------
3882 -- 4.3.3 Positional Array Aggregate --
3883 ---------------------------------------
3885 -- POSITIONAL_ARRAY_AGGREGATE ::=
3886 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3887 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3889 -- See Record_Aggregate (4.3.1) for node structure
3891 ----------------------------------
3892 -- 4.3.3 Named Array Aggregate --
3893 ----------------------------------
3895 -- NAMED_ARRAY_AGGREGATE ::=
3896 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3898 -- See Record_Aggregate (4.3.1) for node structure
3900 ----------------------------------------
3901 -- 4.3.3 Array Component Association --
3902 ----------------------------------------
3904 -- ARRAY_COMPONENT_ASSOCIATION ::=
3905 -- DISCRETE_CHOICE_LIST => EXPRESSION
3907 -- See Record_Component_Association (4.3.1) for node structure
3909 --------------------------------------------------
3910 -- 4.4 Expression/Relation/Term/Factor/Primary --
3911 --------------------------------------------------
3914 -- RELATION {LOGICAL_OPERATOR RELATION}
3916 -- CHOICE_EXPRESSION ::=
3917 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
3919 -- CHOICE_RELATION ::=
3920 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3923 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3924 -- | RAISE_EXPRESSION
3926 -- MEMBERSHIP_CHOICE_LIST ::=
3927 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3929 -- MEMBERSHIP_CHOICE ::=
3930 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3932 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
3934 -- SIMPLE_EXPRESSION ::=
3935 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3937 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3939 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3941 -- No nodes are generated for any of these constructs. Instead, the
3942 -- node for the operator appears directly. When we refer to an
3943 -- expression in this description, we mean any of the possible
3944 -- constituent components of an expression (e.g. identifier is
3945 -- an example of an expression).
3947 -- Note: the above syntax is that Ada 2012 syntax which restricts
3948 -- choice relations to simple expressions to avoid ambiguities in
3949 -- some contexts with set membership notation. It has been decided
3950 -- that in retrospect, the Ada 95 change allowing general expressions
3951 -- in this context was a mistake, so we have reverted to the above
3952 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
3953 -- expressions was there in Ada 83 from the start).
3960 -- NUMERIC_LITERAL | null
3961 -- | STRING_LITERAL | AGGREGATE
3962 -- | NAME | QUALIFIED_EXPRESSION
3963 -- | ALLOCATOR | (EXPRESSION)
3965 -- Usually there is no explicit node in the tree for primary. Instead
3966 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3967 -- exceptions. First, there is an explicit node for a null primary.
3970 -- Sloc points to NULL
3971 -- plus fields for expression
3973 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3974 -- that the parser keep track of which subexpressions are enclosed
3975 -- in parentheses, and how many levels of parentheses are used. This
3976 -- information is required for optimization purposes, and also for
3977 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3978 -- conform with ((((1)))) in the body).
3980 -- The parentheses are recorded by keeping a Paren_Count field in every
3981 -- subexpression node (it is actually present in all nodes, but only
3982 -- used in subexpression nodes). This count records the number of
3983 -- levels of parentheses. If the number of levels in the source exceeds
3984 -- the maximum accommodated by this count, then the count is simply left
3985 -- at the maximum value. This means that there are some pathological
3986 -- cases of failure to detect conformance failures (e.g. an expression
3987 -- with 500 levels of parens will conform with one with 501 levels),
3988 -- but we do not need to lose sleep over this.
3990 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3991 -- type N_Parenthesized_Expression used to accurately record unlimited
3992 -- numbers of levels of parentheses. However, it turned out to be a
3993 -- real nuisance to have to take into account the possible presence of
3994 -- this node during semantic analysis, since basically parentheses have
3995 -- zero relevance to semantic analysis.
3997 -- Note: the level of parentheses always present in things like
3998 -- aggregates does not count, only the parentheses in the primary
3999 -- (EXPRESSION) affect the setting of the Paren_Count field.
4001 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
4002 -- treated as though it were Empty) if No_Initialization is set True.
4004 --------------------------------------
4005 -- 4.5 Short Circuit Control Forms --
4006 --------------------------------------
4009 -- RELATION {and then RELATION} | RELATION {or else RELATION}
4011 -- Gigi restriction: For both these control forms, the operand and
4012 -- result types are always Standard.Boolean. The expander inserts the
4013 -- required conversion operations where needed to ensure this is the
4017 -- Sloc points to AND of AND THEN
4018 -- Left_Opnd (Node2)
4019 -- Right_Opnd (Node3)
4020 -- Actions (List1-Sem)
4021 -- plus fields for expression
4024 -- Sloc points to OR of OR ELSE
4025 -- Left_Opnd (Node2)
4026 -- Right_Opnd (Node3)
4027 -- Actions (List1-Sem)
4028 -- plus fields for expression
4030 -- Note: The Actions field is used to hold actions associated with
4031 -- the right hand operand. These have to be treated specially since
4032 -- they are not unconditionally executed. See Insert_Actions for a
4033 -- more detailed description of how these actions are handled.
4035 ---------------------------
4036 -- 4.5 Membership Tests --
4037 ---------------------------
4040 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4042 -- MEMBERSHIP_CHOICE_LIST ::=
4043 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4045 -- MEMBERSHIP_CHOICE ::=
4046 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4048 -- Note: although the grammar above allows only a range or a subtype
4049 -- mark, the parser in fact will accept any simple expression in place
4050 -- of a subtype mark. This means that the semantic analyzer must be able
4051 -- to deal with, and diagnose a simple expression other than a name for
4052 -- the right operand. This simplifies error recovery in the parser.
4054 -- The Alternatives field below is present only if there is more than
4055 -- one Membership_Choice present (which is legitimate only in Ada 2012
4056 -- mode) in which case Right_Opnd is Empty, and Alternatives contains
4057 -- the list of choices. In the tree passed to the back end, Alternatives
4058 -- is always No_List, and Right_Opnd is set (i.e. the expansion circuit
4059 -- expands out the complex set membership case using simple membership
4060 -- and equality operations).
4062 -- Should we rename Alternatives here to Membership_Choices ???
4065 -- Sloc points to IN
4066 -- Left_Opnd (Node2)
4067 -- Right_Opnd (Node3)
4068 -- Alternatives (List4) (set to No_List if only one set alternative)
4069 -- No_Minimize_Eliminate (Flag17)
4070 -- plus fields for expression
4073 -- Sloc points to NOT of NOT IN
4074 -- Left_Opnd (Node2)
4075 -- Right_Opnd (Node3)
4076 -- Alternatives (List4) (set to No_List if only one set alternative)
4077 -- No_Minimize_Eliminate (Flag17)
4078 -- plus fields for expression
4080 --------------------
4082 --------------------
4084 -- LOGICAL_OPERATOR ::= and | or | xor
4086 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
4088 -- BINARY_ADDING_OPERATOR ::= + | - | &
4090 -- UNARY_ADDING_OPERATOR ::= + | -
4092 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
4094 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
4096 -- Sprint syntax if Treat_Fixed_As_Integer is set:
4103 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
4104 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
4105 -- All handling of smalls for multiplication and division is handled
4106 -- by the front end (mod and rem result only from expansion). Gigi
4107 -- thus never needs to worry about small values (for other operators
4108 -- operating on fixed-point, e.g. addition, the small value does not
4109 -- have any semantic effect anyway, these are always integer operations.
4111 -- Gigi restriction: For all operators taking Boolean operands, the
4112 -- type is always Standard.Boolean. The expander inserts the required
4113 -- conversion operations where needed to ensure this is the case.
4116 -- Sloc points to AND
4117 -- Do_Length_Check (Flag4-Sem)
4118 -- plus fields for binary operator
4119 -- plus fields for expression
4122 -- Sloc points to OR
4123 -- Do_Length_Check (Flag4-Sem)
4124 -- plus fields for binary operator
4125 -- plus fields for expression
4128 -- Sloc points to XOR
4129 -- Do_Length_Check (Flag4-Sem)
4130 -- plus fields for binary operator
4131 -- plus fields for expression
4135 -- plus fields for binary operator
4136 -- plus fields for expression
4139 -- Sloc points to /=
4140 -- plus fields for binary operator
4141 -- plus fields for expression
4145 -- plus fields for binary operator
4146 -- plus fields for expression
4149 -- Sloc points to <=
4150 -- plus fields for binary operator
4151 -- plus fields for expression
4155 -- plus fields for binary operator
4156 -- plus fields for expression
4159 -- Sloc points to >=
4160 -- plus fields for binary operator
4161 -- plus fields for expression
4164 -- Sloc points to + (binary)
4165 -- plus fields for binary operator
4166 -- plus fields for expression
4169 -- Sloc points to - (binary)
4170 -- plus fields for binary operator
4171 -- plus fields for expression
4175 -- Is_Component_Left_Opnd (Flag13-Sem)
4176 -- Is_Component_Right_Opnd (Flag14-Sem)
4177 -- plus fields for binary operator
4178 -- plus fields for expression
4182 -- Treat_Fixed_As_Integer (Flag14-Sem)
4183 -- Rounded_Result (Flag18-Sem)
4184 -- plus fields for binary operator
4185 -- plus fields for expression
4189 -- Treat_Fixed_As_Integer (Flag14-Sem)
4190 -- Do_Division_Check (Flag13-Sem)
4191 -- Rounded_Result (Flag18-Sem)
4192 -- plus fields for binary operator
4193 -- plus fields for expression
4196 -- Sloc points to MOD
4197 -- Treat_Fixed_As_Integer (Flag14-Sem)
4198 -- Do_Division_Check (Flag13-Sem)
4199 -- plus fields for binary operator
4200 -- plus fields for expression
4203 -- Sloc points to REM
4204 -- Treat_Fixed_As_Integer (Flag14-Sem)
4205 -- Do_Division_Check (Flag13-Sem)
4206 -- plus fields for binary operator
4207 -- plus fields for expression
4210 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4211 -- Sloc points to **
4212 -- plus fields for binary operator
4213 -- plus fields for expression
4216 -- Sloc points to + (unary)
4217 -- plus fields for unary operator
4218 -- plus fields for expression
4221 -- Sloc points to - (unary)
4222 -- plus fields for unary operator
4223 -- plus fields for expression
4226 -- Sloc points to ABS
4227 -- plus fields for unary operator
4228 -- plus fields for expression
4231 -- Sloc points to NOT
4232 -- plus fields for unary operator
4233 -- plus fields for expression
4235 -- See also shift operators in section B.2
4237 -- Note on fixed-point operations passed to Gigi: For adding operators,
4238 -- the semantics is to treat these simply as integer operations, with
4239 -- the small values being ignored (the bounds are already stored in
4240 -- units of small, so that constraint checking works as usual). For the
4241 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4242 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4243 -- thus treat these nodes in identical manner, ignoring small values.
4245 -- Note on overflow handling: When the overflow checking mode is set to
4246 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4247 -- be modified to use a larger type for the operands and result. In
4248 -- the case where the computed range exceeds that of Long_Long_Integer,
4249 -- and we are running in ELIMINATED mode, the operator node will be
4250 -- changed to be a call to the appropriate routine in System.Bignums.
4252 -- Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4253 -- for signed integer types (since there is no equivalent operator in
4254 -- C). Instead we rewrite such an operation in terms of REM (which is
4255 -- % in C) and other C-available operators.
4257 ------------------------------------
4258 -- 4.5.7 Conditional Expressions --
4259 ------------------------------------
4261 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4263 --------------------------
4264 -- 4.5.7 If Expression --
4265 ----------------------------
4267 -- IF_EXPRESSION ::=
4268 -- if CONDITION then DEPENDENT_EXPRESSION
4269 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4270 -- [else DEPENDENT_EXPRESSION]
4272 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4274 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4275 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4276 -- the Is_Elsif flag is set on the inner if expression.
4279 -- Sloc points to IF or ELSIF keyword
4280 -- Expressions (List1)
4281 -- Then_Actions (List2-Sem)
4282 -- Else_Actions (List3-Sem)
4283 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4284 -- Do_Overflow_Check (Flag17-Sem)
4285 -- plus fields for expression
4287 -- Expressions here is a three-element list, whose first element is the
4288 -- condition, the second element is the dependent expression after THEN
4289 -- and the third element is the dependent expression after the ELSE
4290 -- (explicitly set to True if missing).
4292 -- Note: the Then_Actions and Else_Actions fields are always set to
4293 -- No_List in the tree passed to the back end. These are used only
4294 -- for temporary processing purposes in the expander. Even though they
4295 -- are semantic fields, their parent pointers are set because analysis
4296 -- of actions nodes in those lists may generate additional actions that
4297 -- need to know their insertion point (for example for the creation of
4298 -- transient scopes).
4300 -- Note: in the tree passed to the back end, if the result type is
4301 -- an unconstrained array, the if expression can only appears in the
4302 -- initializing expression of an object declaration (this avoids the
4303 -- back end having to create a variable length temporary on the fly).
4305 ----------------------------
4306 -- 4.5.7 Case Expression --
4307 ----------------------------
4309 -- CASE_EXPRESSION ::=
4310 -- case SELECTING_EXPRESSION is
4311 -- CASE_EXPRESSION_ALTERNATIVE
4312 -- {,CASE_EXPRESSION_ALTERNATIVE}
4314 -- Note that the Alternatives cannot include pragmas (this contrasts
4315 -- with the situation of case statements where pragmas are allowed).
4317 -- N_Case_Expression
4318 -- Sloc points to CASE
4319 -- Expression (Node3) (the selecting expression)
4320 -- Alternatives (List4) (the case expression alternatives)
4321 -- Do_Overflow_Check (Flag17-Sem)
4323 ----------------------------------------
4324 -- 4.5.7 Case Expression Alternative --
4325 ----------------------------------------
4327 -- CASE_EXPRESSION_ALTERNATIVE ::=
4328 -- when DISCRETE_CHOICE_LIST =>
4329 -- DEPENDENT_EXPRESSION
4331 -- N_Case_Expression_Alternative
4332 -- Sloc points to WHEN
4334 -- Discrete_Choices (List4)
4335 -- Expression (Node3)
4336 -- Has_SP_Choice (Flag15-Sem)
4338 -- Note: The Actions field temporarily holds any actions associated with
4339 -- evaluation of the Expression. During expansion of the case expression
4340 -- these actions are wrapped into an N_Expressions_With_Actions node
4341 -- replacing the original expression.
4343 -- Note: this node never appears in the tree passed to the back end,
4344 -- since the expander converts case expressions into case statements.
4346 ---------------------------------
4347 -- 4.5.9 Quantified Expression --
4348 ---------------------------------
4350 -- QUANTIFIED_EXPRESSION ::=
4351 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4352 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4354 -- QUANTIFIER ::= all | some
4356 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4357 -- is present at a time, in which case the other one is empty.
4359 -- N_Quantified_Expression
4360 -- Sloc points to FOR
4361 -- Iterator_Specification (Node2)
4362 -- Loop_Parameter_Specification (Node4)
4363 -- Condition (Node1)
4364 -- All_Present (Flag15)
4366 --------------------------
4367 -- 4.6 Type Conversion --
4368 --------------------------
4370 -- TYPE_CONVERSION ::=
4371 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4373 -- In the (NAME) case, the name is stored as the expression
4375 -- Note: the parser never generates a type conversion node, since it
4376 -- looks like an indexed component which is generated by preference.
4377 -- The semantic pass must correct this misidentification.
4379 -- Gigi handles conversions that involve no change in the root type,
4380 -- and also all conversions from integer to floating-point types.
4381 -- Conversions from floating-point to integer are only handled in
4382 -- the case where Float_Truncate flag set. Other conversions from
4383 -- floating-point to integer (involving rounding) and all conversions
4384 -- involving fixed-point types are handled by the expander.
4386 -- Sprint syntax if Float_Truncate set: X^(Y)
4387 -- Sprint syntax if Conversion_OK set X?(Y)
4388 -- Sprint syntax if both flags set X?^(Y)
4390 -- Note: If either the operand or result type is fixed-point, Gigi will
4391 -- only see a type conversion node with Conversion_OK set. The front end
4392 -- takes care of all handling of small's for fixed-point conversions.
4394 -- N_Type_Conversion
4395 -- Sloc points to first token of subtype mark
4396 -- Subtype_Mark (Node4)
4397 -- Expression (Node3)
4398 -- Do_Discriminant_Check (Flag1-Sem)
4399 -- Do_Length_Check (Flag4-Sem)
4400 -- Float_Truncate (Flag11-Sem)
4401 -- Do_Tag_Check (Flag13-Sem)
4402 -- Conversion_OK (Flag14-Sem)
4403 -- Do_Overflow_Check (Flag17-Sem)
4404 -- Rounded_Result (Flag18-Sem)
4405 -- plus fields for expression
4407 -- Note: if a range check is required, then the Do_Range_Check flag
4408 -- is set in the Expression with the check being done against the
4409 -- target type range (after the base type conversion, if any).
4411 -------------------------------
4412 -- 4.7 Qualified Expression --
4413 -------------------------------
4415 -- QUALIFIED_EXPRESSION ::=
4416 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4418 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4419 -- the expression, so the Expression field of this node always points
4420 -- to a parenthesized expression in this case (i.e. Paren_Count will
4421 -- always be non-zero for the referenced expression if it is not an
4424 -- N_Qualified_Expression
4425 -- Sloc points to apostrophe
4426 -- Subtype_Mark (Node4)
4427 -- Expression (Node3) expression or aggregate
4428 -- plus fields for expression
4430 --------------------
4432 --------------------
4435 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4436 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4438 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4440 -- Sprint syntax (when storage pool present)
4441 -- new xxx (storage_pool = pool)
4443 -- new (subpool) xxx (storage_pool = pool)
4446 -- Sloc points to NEW
4447 -- Expression (Node3) subtype indication or qualified expression
4448 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4449 -- Storage_Pool (Node1-Sem)
4450 -- Procedure_To_Call (Node2-Sem)
4451 -- Null_Exclusion_Present (Flag11)
4452 -- No_Initialization (Flag13-Sem)
4453 -- Is_Static_Coextension (Flag14-Sem)
4454 -- Do_Storage_Check (Flag17-Sem)
4455 -- Is_Dynamic_Coextension (Flag18-Sem)
4456 -- plus fields for expression
4458 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4459 -- This flag has a special function in conjunction with the restriction
4460 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4461 -- is not set. This means that if a source allocator is replaced with
4462 -- a constructed allocator, the Comes_From_Source flag should be copied
4463 -- to the newly created allocator.
4465 ---------------------------------
4466 -- 5.1 Sequence Of Statements --
4467 ---------------------------------
4469 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4471 -- Note: Although the parser will not accept a declaration as a
4472 -- statement, the semantic analyzer may insert declarations (e.g.
4473 -- declarations of implicit types needed for execution of other
4474 -- statements) into a sequence of statements, so the code generator
4475 -- should be prepared to accept a declaration where a statement is
4476 -- expected. Note also that pragmas can appear as statements.
4478 --------------------
4480 --------------------
4483 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4485 -- There is no explicit node in the tree for a statement. Instead, the
4486 -- individual statement appears directly. Labels are treated as a
4487 -- kind of statement, i.e. they are linked into a statement list at
4488 -- the point they appear, so the labeled statement appears following
4489 -- the label or labels in the statement list.
4491 ---------------------------
4492 -- 5.1 Simple Statement --
4493 ---------------------------
4495 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4496 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4497 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4498 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4499 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4500 -- | ABORT_STATEMENT | RAISE_STATEMENT
4503 -----------------------------
4504 -- 5.1 Compound Statement --
4505 -----------------------------
4507 -- COMPOUND_STATEMENT ::=
4508 -- IF_STATEMENT | CASE_STATEMENT
4509 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4510 -- | EXTENDED_RETURN_STATEMENT
4511 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4513 -------------------------
4514 -- 5.1 Null Statement --
4515 -------------------------
4517 -- NULL_STATEMENT ::= null;
4520 -- Sloc points to NULL
4526 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4528 -- Note that the occurrence of a label is not a defining identifier,
4529 -- but rather a referencing occurrence. The defining occurrence is
4530 -- in the implicit label declaration which occurs in the innermost
4534 -- Sloc points to <<
4535 -- Identifier (Node1) direct name of statement identifier
4536 -- Exception_Junk (Flag8-Sem)
4538 -- Note: Before Ada 2012, a label is always followed by a statement,
4539 -- and this is true in the tree even in Ada 2012 mode (the parser
4540 -- inserts a null statement marked with Comes_From_Source False).
4542 -------------------------------
4543 -- 5.1 Statement Identifier --
4544 -------------------------------
4546 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4548 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4549 -- (not an OPERATOR_SYMBOL)
4551 -------------------------------
4552 -- 5.2 Assignment Statement --
4553 -------------------------------
4555 -- ASSIGNMENT_STATEMENT ::=
4556 -- variable_NAME := EXPRESSION;
4558 -- N_Assignment_Statement
4559 -- Sloc points to :=
4561 -- Expression (Node3)
4562 -- Do_Discriminant_Check (Flag1-Sem)
4563 -- Do_Tag_Check (Flag13-Sem)
4564 -- Do_Length_Check (Flag4-Sem)
4565 -- Forwards_OK (Flag5-Sem)
4566 -- Backwards_OK (Flag6-Sem)
4567 -- No_Ctrl_Actions (Flag7-Sem)
4568 -- Componentwise_Assignment (Flag14-Sem)
4569 -- Suppress_Assignment_Checks (Flag18-Sem)
4571 -- Note: if a range check is required, then the Do_Range_Check flag
4572 -- is set in the Expression (right hand side), with the check being
4573 -- done against the type of the Name (left hand side).
4575 -- Note: the back end places some restrictions on the form of the
4576 -- Expression field. If the object being assigned to is Atomic, then
4577 -- the Expression may not have the form of an aggregate (since this
4578 -- might cause the back end to generate separate assignments). In this
4579 -- case the front end must generate an extra temporary and initialize
4580 -- this temporary as required (the temporary itself is not atomic).
4582 -----------------------
4583 -- 5.3 If Statement --
4584 -----------------------
4587 -- if CONDITION then
4588 -- SEQUENCE_OF_STATEMENTS
4589 -- {elsif CONDITION then
4590 -- SEQUENCE_OF_STATEMENTS}
4592 -- SEQUENCE_OF_STATEMENTS]
4595 -- Gigi restriction: This expander ensures that the type of the
4596 -- Condition fields is always Standard.Boolean, even if the type
4597 -- in the source is some non-standard boolean type.
4600 -- Sloc points to IF
4601 -- Condition (Node1)
4602 -- Then_Statements (List2)
4603 -- Elsif_Parts (List3) (set to No_List if none present)
4604 -- Else_Statements (List4) (set to No_List if no else part present)
4605 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4606 -- From_Conditional_Expression (Flag1-Sem)
4609 -- Sloc points to ELSIF
4610 -- Condition (Node1)
4611 -- Then_Statements (List2)
4612 -- Condition_Actions (List3-Sem)
4614 --------------------
4616 --------------------
4618 -- CONDITION ::= boolean_EXPRESSION
4620 -------------------------
4621 -- 5.4 Case Statement --
4622 -------------------------
4624 -- CASE_STATEMENT ::=
4625 -- case EXPRESSION is
4626 -- CASE_STATEMENT_ALTERNATIVE
4627 -- {CASE_STATEMENT_ALTERNATIVE}
4630 -- Note: the Alternatives can contain pragmas. These only occur at
4631 -- the start of the list, since any pragmas occurring after the first
4632 -- alternative are absorbed into the corresponding statement sequence.
4635 -- Sloc points to CASE
4636 -- Expression (Node3)
4637 -- Alternatives (List4)
4638 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4639 -- From_Conditional_Expression (Flag1-Sem)
4641 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4642 -- followed by a statement, and this is true in the tree even in Ada
4643 -- 2012 mode (the parser inserts a null statement marked with the flag
4644 -- Comes_From_Source False).
4646 -------------------------------------
4647 -- 5.4 Case Statement Alternative --
4648 -------------------------------------
4650 -- CASE_STATEMENT_ALTERNATIVE ::=
4651 -- when DISCRETE_CHOICE_LIST =>
4652 -- SEQUENCE_OF_STATEMENTS
4654 -- N_Case_Statement_Alternative
4655 -- Sloc points to WHEN
4656 -- Discrete_Choices (List4)
4657 -- Statements (List3)
4658 -- Has_SP_Choice (Flag15-Sem)
4660 -- Note: in the list of Discrete_Choices, the tree passed to the back
4661 -- end does not have choice entries corresponding to names of statically
4662 -- predicated subtypes. Such entries are always expanded out to the list
4663 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
4664 -- mode does not have this expansion, and has the original choices.
4666 -------------------------
4667 -- 5.5 Loop Statement --
4668 -------------------------
4670 -- LOOP_STATEMENT ::=
4671 -- [loop_STATEMENT_IDENTIFIER :]
4672 -- [ITERATION_SCHEME] loop
4673 -- SEQUENCE_OF_STATEMENTS
4674 -- end loop [loop_IDENTIFIER];
4676 -- Note: The occurrence of a loop label is not a defining identifier
4677 -- but rather a referencing occurrence. The defining occurrence is in
4678 -- the implicit label declaration which occurs in the innermost
4681 -- Note: there is always a loop statement identifier present in the
4682 -- tree, even if none was given in the source. In the case where no loop
4683 -- identifier is given in the source, the parser creates a name of the
4684 -- form _Loop_n, where n is a decimal integer (the two underlines ensure
4685 -- that the loop names created in this manner do not conflict with any
4686 -- user defined identifiers), and the flag Has_Created_Identifier is set
4687 -- to True. The only exception to the rule that all loop statement nodes
4688 -- have identifiers occurs for loops constructed by the expander, and
4689 -- the semantic analyzer will create and supply dummy loop identifiers
4693 -- Sloc points to LOOP
4694 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4695 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4696 -- Statements (List3)
4697 -- End_Label (Node4)
4698 -- Has_Created_Identifier (Flag15)
4699 -- Is_Null_Loop (Flag16)
4700 -- Suppress_Loop_Warnings (Flag17)
4702 -- Note: the parser fills in the Identifier field if there is an
4703 -- explicit loop identifier. Otherwise the parser leaves this field
4704 -- set to Empty, and then the semantic processing for a loop statement
4705 -- creates an identifier, setting the Has_Created_Identifier flag to
4706 -- True. So after semantic analysis, the Identifier is always set,
4707 -- referencing an identifier whose entity has an Ekind of E_Loop.
4709 ---------------------------
4710 -- 5.5 Iteration Scheme --
4711 ---------------------------
4713 -- ITERATION_SCHEME ::=
4715 -- | for LOOP_PARAMETER_SPECIFICATION
4716 -- | for ITERATOR_SPECIFICATION
4718 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4719 -- is present at a time, in which case the other one is empty. Both are
4720 -- empty in the case of a WHILE loop.
4722 -- Gigi restriction: The expander ensures that the type of the Condition
4723 -- field is always Standard.Boolean, even if the type in the source is
4724 -- some non-standard boolean type.
4726 -- N_Iteration_Scheme
4727 -- Sloc points to WHILE or FOR
4728 -- Condition (Node1) (set to Empty if FOR case)
4729 -- Condition_Actions (List3-Sem)
4730 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
4731 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4733 ---------------------------------------
4734 -- 5.5 Loop Parameter Specification --
4735 ---------------------------------------
4737 -- LOOP_PARAMETER_SPECIFICATION ::=
4738 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4740 -- N_Loop_Parameter_Specification
4741 -- Sloc points to first identifier
4742 -- Defining_Identifier (Node1)
4743 -- Reverse_Present (Flag15)
4744 -- Discrete_Subtype_Definition (Node4)
4746 -----------------------------------
4747 -- 5.5.1 Iterator Specification --
4748 -----------------------------------
4750 -- ITERATOR_SPECIFICATION ::=
4751 -- DEFINING_IDENTIFIER in [reverse] NAME
4752 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4754 -- N_Iterator_Specification
4755 -- Sloc points to defining identifier
4756 -- Defining_Identifier (Node1)
4758 -- Reverse_Present (Flag15)
4759 -- Of_Present (Flag16)
4760 -- Subtype_Indication (Node5)
4762 -- Note: The Of_Present flag distinguishes the two forms
4764 --------------------------
4765 -- 5.6 Block Statement --
4766 --------------------------
4768 -- BLOCK_STATEMENT ::=
4769 -- [block_STATEMENT_IDENTIFIER:]
4771 -- DECLARATIVE_PART]
4773 -- HANDLED_SEQUENCE_OF_STATEMENTS
4774 -- end [block_IDENTIFIER];
4776 -- Note that the occurrence of a block identifier is not a defining
4777 -- identifier, but rather a referencing occurrence. The defining
4778 -- occurrence is an E_Block entity declared by the implicit label
4779 -- declaration which occurs in the innermost enclosing block statement
4780 -- or body; the block identifier denotes that E_Block.
4782 -- For block statements that come from source code, there is always a
4783 -- block statement identifier present in the tree, denoting an E_Block.
4784 -- In the case where no block identifier is given in the source,
4785 -- the parser creates a name of the form B_n, where n is a decimal
4786 -- integer, and the flag Has_Created_Identifier is set to True. Blocks
4787 -- constructed by the expander usually have no identifier, and no
4788 -- corresponding entity.
4790 -- Note: the block statement created for an extended return statement
4791 -- has an entity, and this entity is an E_Return_Statement, rather than
4792 -- the usual E_Block.
4794 -- Note: Exception_Junk is set for the wrapping blocks created during
4795 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4797 -- Note: from a control flow viewpoint, a block statement defines an
4798 -- extended basic block, i.e. the entry of the block dominates every
4799 -- statement in the sequence. When generating new statements with
4800 -- exception handlers in the expander at the end of a sequence that
4801 -- comes from source code, it can be necessary to wrap them all in a
4802 -- block statement in order to expose the implicit control flow to
4803 -- gigi and thus prevent it from issuing bogus control flow warnings.
4805 -- N_Block_Statement
4806 -- Sloc points to DECLARE or BEGIN
4807 -- Identifier (Node1) block direct name (set to Empty if not present)
4808 -- Declarations (List2) (set to No_List if no DECLARE part)
4809 -- Handled_Statement_Sequence (Node4)
4810 -- Cleanup_Actions (List5-Sem)
4811 -- Is_Task_Master (Flag5-Sem)
4812 -- Activation_Chain_Entity (Node3-Sem)
4813 -- Has_Created_Identifier (Flag15)
4814 -- Is_Task_Allocation_Block (Flag6)
4815 -- Is_Asynchronous_Call_Block (Flag7)
4816 -- Exception_Junk (Flag8-Sem)
4817 -- Is_Finalization_Wrapper (Flag9-Sem)
4819 -------------------------
4820 -- 5.7 Exit Statement --
4821 -------------------------
4823 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4825 -- Gigi restriction: The expander ensures that the type of the Condition
4826 -- field is always Standard.Boolean, even if the type in the source is
4827 -- some non-standard boolean type.
4830 -- Sloc points to EXIT
4831 -- Name (Node2) (set to Empty if no loop name present)
4832 -- Condition (Node1) (set to Empty if no WHEN part present)
4833 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
4835 -------------------------
4836 -- 5.9 Goto Statement --
4837 -------------------------
4839 -- GOTO_STATEMENT ::= goto label_NAME;
4842 -- Sloc points to GOTO
4844 -- Exception_Junk (Flag8-Sem)
4846 ---------------------------------
4847 -- 6.1 Subprogram Declaration --
4848 ---------------------------------
4850 -- SUBPROGRAM_DECLARATION ::=
4851 -- SUBPROGRAM_SPECIFICATION
4852 -- [ASPECT_SPECIFICATIONS];
4854 -- N_Subprogram_Declaration
4855 -- Sloc points to FUNCTION or PROCEDURE
4856 -- Specification (Node1)
4857 -- Body_To_Inline (Node3-Sem)
4858 -- Corresponding_Body (Node5-Sem)
4859 -- Parent_Spec (Node4-Sem)
4861 ------------------------------------------
4862 -- 6.1 Abstract Subprogram Declaration --
4863 ------------------------------------------
4865 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4866 -- SUBPROGRAM_SPECIFICATION is abstract
4867 -- [ASPECT_SPECIFICATIONS];
4869 -- N_Abstract_Subprogram_Declaration
4870 -- Sloc points to ABSTRACT
4871 -- Specification (Node1)
4873 -----------------------------------
4874 -- 6.1 Subprogram Specification --
4875 -----------------------------------
4877 -- SUBPROGRAM_SPECIFICATION ::=
4878 -- [[not] overriding]
4879 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4880 -- | [[not] overriding]
4881 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4883 -- Note: there are no separate nodes for the profiles, instead the
4884 -- information appears directly in the following nodes.
4886 -- N_Function_Specification
4887 -- Sloc points to FUNCTION
4888 -- Defining_Unit_Name (Node1) (the designator)
4889 -- Elaboration_Boolean (Node2-Sem)
4890 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4891 -- Null_Exclusion_Present (Flag11)
4892 -- Result_Definition (Node4) for result subtype
4893 -- Generic_Parent (Node5-Sem)
4894 -- Must_Override (Flag14) set if overriding indicator present
4895 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4897 -- N_Procedure_Specification
4898 -- Sloc points to PROCEDURE
4899 -- Defining_Unit_Name (Node1)
4900 -- Elaboration_Boolean (Node2-Sem)
4901 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4902 -- Generic_Parent (Node5-Sem)
4903 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4904 -- Must_Override (Flag14) set if overriding indicator present
4905 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4907 -- Note: overriding indicator is an Ada 2005 feature
4909 ---------------------
4910 -- 6.1 Designator --
4911 ---------------------
4914 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4916 -- Designators that are simply identifiers or operator symbols appear
4917 -- directly in the tree in this form. The following node is used only
4918 -- in the case where the designator has a parent unit name component.
4921 -- Sloc points to period
4922 -- Name (Node2) holds the parent unit name
4923 -- Identifier (Node1)
4925 -- Note: Name is always non-Empty, since this node is only used for the
4926 -- case where a parent library unit package name is present.
4928 -- Note that the identifier can also be an operator symbol here
4930 ------------------------------
4931 -- 6.1 Defining Designator --
4932 ------------------------------
4934 -- DEFINING_DESIGNATOR ::=
4935 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4937 -------------------------------------
4938 -- 6.1 Defining Program Unit Name --
4939 -------------------------------------
4941 -- DEFINING_PROGRAM_UNIT_NAME ::=
4942 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4944 -- The parent unit name is present only in the case of a child unit name
4945 -- (permissible only for Ada 95 for a library level unit, i.e. a unit
4946 -- at scope level one). If no such name is present, the defining program
4947 -- unit name is represented simply as the defining identifier. In the
4948 -- child unit case, the following node is used to represent the child
4951 -- N_Defining_Program_Unit_Name
4952 -- Sloc points to period
4953 -- Name (Node2) holds the parent unit name
4954 -- Defining_Identifier (Node1)
4956 -- Note: Name is always non-Empty, since this node is only used for the
4957 -- case where a parent unit name is present.
4959 --------------------------
4960 -- 6.1 Operator Symbol --
4961 --------------------------
4963 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4965 -- Note: the fields of the N_Operator_Symbol node are laid out to match
4966 -- the corresponding fields of an N_Character_Literal node. This allows
4967 -- easy conversion of the operator symbol node into a character literal
4968 -- node in the case where a string constant of the form of an operator
4969 -- symbol is scanned out as such, but turns out semantically to be a
4970 -- string literal that is not an operator. For details see Sinfo.CN.
4971 -- Change_Operator_Symbol_To_String_Literal.
4973 -- N_Operator_Symbol
4974 -- Sloc points to literal
4975 -- Chars (Name1) contains the Name_Id for the operator symbol
4976 -- Strval (Str3) Id of string value. This is used if the operator
4977 -- symbol turns out to be a normal string after all.
4978 -- Entity (Node4-Sem)
4979 -- Associated_Node (Node4-Sem)
4980 -- Has_Private_View (Flag11-Sem) set in generic units.
4981 -- Etype (Node5-Sem)
4983 -- Note: the Strval field may be set to No_String for generated
4984 -- operator symbols that are known not to be string literals
4987 -----------------------------------
4988 -- 6.1 Defining Operator Symbol --
4989 -----------------------------------
4991 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4993 -- A defining operator symbol is an entity, which has additional
4994 -- fields depending on the setting of the Ekind field. These
4995 -- additional fields are defined (and access subprograms declared)
4996 -- in package Einfo.
4998 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4999 -- are deliberately layed out to match the layout of fields in an
5000 -- ordinary N_Operator_Symbol node allowing for easy alteration of
5001 -- an operator symbol node into a defining operator symbol node.
5002 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
5003 -- for further details.
5005 -- N_Defining_Operator_Symbol
5006 -- Sloc points to literal
5007 -- Chars (Name1) contains the Name_Id for the operator symbol
5008 -- Next_Entity (Node2-Sem)
5009 -- Scope (Node3-Sem)
5010 -- Etype (Node5-Sem)
5012 ----------------------------
5013 -- 6.1 Parameter Profile --
5014 ----------------------------
5016 -- PARAMETER_PROFILE ::= [FORMAL_PART]
5018 ---------------------------------------
5019 -- 6.1 Parameter and Result Profile --
5020 ---------------------------------------
5022 -- PARAMETER_AND_RESULT_PROFILE ::=
5023 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
5024 -- | [FORMAL_PART] return ACCESS_DEFINITION
5026 -- There is no explicit node in the tree for a parameter and result
5027 -- profile. Instead the information appears directly in the parent.
5029 ----------------------
5030 -- 6.1 Formal Part --
5031 ----------------------
5034 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
5036 ----------------------------------
5037 -- 6.1 Parameter Specification --
5038 ----------------------------------
5040 -- PARAMETER_SPECIFICATION ::=
5041 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
5042 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
5043 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
5044 -- [:= DEFAULT_EXPRESSION]
5046 -- Although the syntax allows multiple identifiers in the list, the
5047 -- semantics is as though successive specifications were given with
5048 -- identical type definition and expression components. To simplify
5049 -- semantic processing, the parser represents a multiple declaration
5050 -- case as a sequence of single Specifications, using the More_Ids and
5051 -- Prev_Ids flags to preserve the original source form as described
5052 -- in the section on "Handling of Defining Identifier Lists".
5054 -- ALIASED can only be present in Ada 2012 mode
5056 -- N_Parameter_Specification
5057 -- Sloc points to first identifier
5058 -- Defining_Identifier (Node1)
5059 -- Aliased_Present (Flag4)
5060 -- In_Present (Flag15)
5061 -- Out_Present (Flag17)
5062 -- Null_Exclusion_Present (Flag11)
5063 -- Parameter_Type (Node2) subtype mark or access definition
5064 -- Expression (Node3) (set to Empty if no default expression present)
5065 -- Do_Accessibility_Check (Flag13-Sem)
5066 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5067 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5068 -- Default_Expression (Node5-Sem)
5074 -- MODE ::= [in] | in out | out
5076 -- There is no explicit node in the tree for the Mode. Instead the
5077 -- In_Present and Out_Present flags are set in the parent node to
5078 -- record the presence of keywords specifying the mode.
5080 --------------------------
5081 -- 6.3 Subprogram Body --
5082 --------------------------
5084 -- SUBPROGRAM_BODY ::=
5085 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5088 -- HANDLED_SEQUENCE_OF_STATEMENTS
5089 -- end [DESIGNATOR];
5091 -- N_Subprogram_Body
5092 -- Sloc points to FUNCTION or PROCEDURE
5093 -- Specification (Node1)
5094 -- Declarations (List2)
5095 -- Handled_Statement_Sequence (Node4)
5096 -- Activation_Chain_Entity (Node3-Sem)
5097 -- Corresponding_Spec (Node5-Sem)
5098 -- Acts_As_Spec (Flag4-Sem)
5099 -- Bad_Is_Detected (Flag15) used only by parser
5100 -- Do_Storage_Check (Flag17-Sem)
5101 -- Is_Protected_Subprogram_Body (Flag7-Sem)
5102 -- Is_Entry_Barrier_Function (Flag8-Sem)
5103 -- Is_Task_Master (Flag5-Sem)
5104 -- Was_Originally_Stub (Flag13-Sem)
5105 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5107 -------------------------
5108 -- Expression Function --
5109 -------------------------
5111 -- This is an Ada 2012 extension, we put it here for now, to be labeled
5112 -- and put in its proper section when we know exactly where that is.
5114 -- EXPRESSION_FUNCTION ::=
5115 -- FUNCTION SPECIFICATION IS (EXPRESSION)
5116 -- [ASPECT_SPECIFICATIONS];
5118 -- N_Expression_Function
5119 -- Sloc points to FUNCTION
5120 -- Specification (Node1)
5121 -- Expression (Node3)
5122 -- Corresponding_Spec (Node5-Sem)
5124 -----------------------------------
5125 -- 6.4 Procedure Call Statement --
5126 -----------------------------------
5128 -- PROCEDURE_CALL_STATEMENT ::=
5129 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5131 -- Note: the reason that a procedure call has expression fields is that
5132 -- it semantically resembles an expression, e.g. overloading is allowed
5133 -- and a type is concocted for semantic processing purposes. Certain of
5134 -- these fields, such as Parens are not relevant, but it is easier to
5135 -- just supply all of them together.
5137 -- N_Procedure_Call_Statement
5138 -- Sloc points to first token of name or prefix
5139 -- Name (Node2) stores name or prefix
5140 -- Parameter_Associations (List3) (set to No_List if no
5141 -- actual parameter part)
5142 -- First_Named_Actual (Node4-Sem)
5143 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5144 -- Do_Tag_Check (Flag13-Sem)
5145 -- No_Elaboration_Check (Flag14-Sem)
5146 -- ABE_Is_Certain (Flag18-Sem)
5147 -- plus fields for expression
5149 -- If any IN parameter requires a range check, then the corresponding
5150 -- argument expression has the Do_Range_Check flag set, and the range
5151 -- check is done against the formal type. Note that this argument
5152 -- expression may appear directly in the Parameter_Associations list,
5153 -- or may be a descendent of an N_Parameter_Association node that
5154 -- appears in this list.
5156 ------------------------
5157 -- 6.4 Function Call --
5158 ------------------------
5160 -- FUNCTION_CALL ::=
5161 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5163 -- Note: the parser may generate an indexed component node or simply
5164 -- a name node instead of a function call node. The semantic pass must
5165 -- correct this misidentification.
5168 -- Sloc points to first token of name or prefix
5169 -- Name (Node2) stores name or prefix
5170 -- Parameter_Associations (List3) (set to No_List if no
5171 -- actual parameter part)
5172 -- First_Named_Actual (Node4-Sem)
5173 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5174 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5175 -- Do_Tag_Check (Flag13-Sem)
5176 -- No_Elaboration_Check (Flag14-Sem)
5177 -- ABE_Is_Certain (Flag18-Sem)
5178 -- plus fields for expression
5180 --------------------------------
5181 -- 6.4 Actual Parameter Part --
5182 --------------------------------
5184 -- ACTUAL_PARAMETER_PART ::=
5185 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5187 --------------------------------
5188 -- 6.4 Parameter Association --
5189 --------------------------------
5191 -- PARAMETER_ASSOCIATION ::=
5192 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5194 -- Note: the N_Parameter_Association node is built only if a formal
5195 -- parameter selector name is present, otherwise the parameter
5196 -- association appears in the tree simply as the node for the
5197 -- explicit actual parameter.
5199 -- N_Parameter_Association
5200 -- Sloc points to formal parameter
5201 -- Selector_Name (Node2) (always non-Empty)
5202 -- Explicit_Actual_Parameter (Node3)
5203 -- Next_Named_Actual (Node4-Sem)
5204 -- Is_Accessibility_Actual (Flag13-Sem)
5206 ---------------------------
5207 -- 6.4 Actual Parameter --
5208 ---------------------------
5210 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
5212 ---------------------------
5213 -- 6.5 Return Statement --
5214 ---------------------------
5216 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5218 -- EXTENDED_RETURN_STATEMENT ::=
5219 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5220 -- [:= EXPRESSION] [do
5221 -- HANDLED_SEQUENCE_OF_STATEMENTS
5224 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5226 -- The term "return statement" is defined in 6.5 to mean either a
5227 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5228 -- the use of this term, since it used to mean someting else in earlier
5231 -- N_Simple_Return_Statement
5232 -- Sloc points to RETURN
5233 -- Return_Statement_Entity (Node5-Sem)
5234 -- Expression (Node3) (set to Empty if no expression present)
5235 -- Storage_Pool (Node1-Sem)
5236 -- Procedure_To_Call (Node2-Sem)
5237 -- Do_Tag_Check (Flag13-Sem)
5238 -- By_Ref (Flag5-Sem)
5239 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5241 -- Note: Return_Statement_Entity points to an E_Return_Statement
5243 -- If a range check is required, then Do_Range_Check is set on the
5244 -- Expression. The check is against the return subtype of the function.
5246 -- N_Extended_Return_Statement
5247 -- Sloc points to RETURN
5248 -- Return_Statement_Entity (Node5-Sem)
5249 -- Return_Object_Declarations (List3)
5250 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5251 -- Storage_Pool (Node1-Sem)
5252 -- Procedure_To_Call (Node2-Sem)
5253 -- Do_Tag_Check (Flag13-Sem)
5254 -- By_Ref (Flag5-Sem)
5256 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5258 -- Note that Return_Object_Declarations is a list containing the
5259 -- N_Object_Declaration -- see comment on this field above.
5261 -- The declared object will have Is_Return_Object = True.
5263 -- There is no such syntactic category as return_object_declaration
5264 -- in the RM. Return_Object_Declarations represents this portion of
5265 -- the syntax for EXTENDED_RETURN_STATEMENT:
5266 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5269 -- There are two entities associated with an extended_return_statement:
5270 -- the Return_Statement_Entity represents the statement itself,
5271 -- and the Defining_Identifier of the Object_Declaration in
5272 -- Return_Object_Declarations represents the object being
5273 -- returned. N_Simple_Return_Statement has only the former.
5275 ------------------------------
5276 -- 7.1 Package Declaration --
5277 ------------------------------
5279 -- PACKAGE_DECLARATION ::=
5280 -- PACKAGE_SPECIFICATION;
5282 -- Note: the activation chain entity for a package spec is used for
5283 -- all tasks declared in the package spec, or in the package body.
5285 -- N_Package_Declaration
5286 -- Sloc points to PACKAGE
5287 -- Specification (Node1)
5288 -- Corresponding_Body (Node5-Sem)
5289 -- Parent_Spec (Node4-Sem)
5290 -- Activation_Chain_Entity (Node3-Sem)
5292 --------------------------------
5293 -- 7.1 Package Specification --
5294 --------------------------------
5296 -- PACKAGE_SPECIFICATION ::=
5297 -- package DEFINING_PROGRAM_UNIT_NAME
5298 -- [ASPECT_SPECIFICATIONS]
5300 -- {BASIC_DECLARATIVE_ITEM}
5302 -- {BASIC_DECLARATIVE_ITEM}]
5303 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5305 -- N_Package_Specification
5306 -- Sloc points to PACKAGE
5307 -- Defining_Unit_Name (Node1)
5308 -- Visible_Declarations (List2)
5309 -- Private_Declarations (List3) (set to No_List if no private
5311 -- End_Label (Node4)
5312 -- Generic_Parent (Node5-Sem)
5313 -- Limited_View_Installed (Flag18-Sem)
5315 -----------------------
5316 -- 7.1 Package Body --
5317 -----------------------
5320 -- package body DEFINING_PROGRAM_UNIT_NAME
5321 -- [ASPECT_SPECIFICATIONS]
5325 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5326 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5329 -- Sloc points to PACKAGE
5330 -- Defining_Unit_Name (Node1)
5331 -- Declarations (List2)
5332 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5333 -- Corresponding_Spec (Node5-Sem)
5334 -- Was_Originally_Stub (Flag13-Sem)
5336 -- Note: if a source level package does not contain a handled sequence
5337 -- of statements, then the parser supplies a dummy one with a null
5338 -- sequence of statements. Comes_From_Source will be False in this
5339 -- constructed sequence. The reason we need this is for the End_Label
5340 -- field in the HSS.
5342 -----------------------------------
5343 -- 7.4 Private Type Declaration --
5344 -----------------------------------
5346 -- PRIVATE_TYPE_DECLARATION ::=
5347 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5348 -- is [[abstract] tagged] [limited] private
5349 -- [ASPECT_SPECIFICATIONS];
5351 -- Note: TAGGED is not permitted in Ada 83 mode
5353 -- N_Private_Type_Declaration
5354 -- Sloc points to TYPE
5355 -- Defining_Identifier (Node1)
5356 -- Discriminant_Specifications (List4) (set to No_List if no
5357 -- discriminant part)
5358 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5359 -- Abstract_Present (Flag4)
5360 -- Tagged_Present (Flag15)
5361 -- Limited_Present (Flag17)
5363 ----------------------------------------
5364 -- 7.4 Private Extension Declaration --
5365 ----------------------------------------
5367 -- PRIVATE_EXTENSION_DECLARATION ::=
5368 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5369 -- [abstract] [limited | synchronized]
5370 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5371 -- with private [ASPECT_SPECIFICATIONS];
5373 -- Note: LIMITED, and private extension declarations are not allowed
5376 -- N_Private_Extension_Declaration
5377 -- Sloc points to TYPE
5378 -- Defining_Identifier (Node1)
5379 -- Uninitialized_Variable (Node3-Sem)
5380 -- Discriminant_Specifications (List4) (set to No_List if no
5381 -- discriminant part)
5382 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5383 -- Abstract_Present (Flag4)
5384 -- Limited_Present (Flag17)
5385 -- Synchronized_Present (Flag7)
5386 -- Subtype_Indication (Node5)
5387 -- Interface_List (List2) (set to No_List if none)
5389 ---------------------
5390 -- 8.4 Use Clause --
5391 ---------------------
5393 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5395 -----------------------------
5396 -- 8.4 Use Package Clause --
5397 -----------------------------
5399 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5401 -- N_Use_Package_Clause
5402 -- Sloc points to USE
5404 -- Next_Use_Clause (Node3-Sem)
5405 -- Hidden_By_Use_Clause (Elist4-Sem)
5407 --------------------------
5408 -- 8.4 Use Type Clause --
5409 --------------------------
5411 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5413 -- Note: use type clause is not permitted in Ada 83 mode
5415 -- Note: the ALL keyword can appear only in Ada 2012 mode
5417 -- N_Use_Type_Clause
5418 -- Sloc points to USE
5419 -- Subtype_Marks (List2)
5420 -- Next_Use_Clause (Node3-Sem)
5421 -- Hidden_By_Use_Clause (Elist4-Sem)
5422 -- Used_Operations (Elist5-Sem)
5423 -- All_Present (Flag15)
5425 -------------------------------
5426 -- 8.5 Renaming Declaration --
5427 -------------------------------
5429 -- RENAMING_DECLARATION ::=
5430 -- OBJECT_RENAMING_DECLARATION
5431 -- | EXCEPTION_RENAMING_DECLARATION
5432 -- | PACKAGE_RENAMING_DECLARATION
5433 -- | SUBPROGRAM_RENAMING_DECLARATION
5434 -- | GENERIC_RENAMING_DECLARATION
5436 --------------------------------------
5437 -- 8.5 Object Renaming Declaration --
5438 --------------------------------------
5440 -- OBJECT_RENAMING_DECLARATION ::=
5441 -- DEFINING_IDENTIFIER :
5442 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5443 -- [ASPECT_SPECIFICATIONS];
5444 -- | DEFINING_IDENTIFIER :
5445 -- ACCESS_DEFINITION renames object_NAME
5446 -- [ASPECT_SPECIFICATIONS];
5448 -- Note: Access_Definition is an optional field that gives support to
5449 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5450 -- Subtype_Indication field or else the Access_Definition field.
5452 -- N_Object_Renaming_Declaration
5453 -- Sloc points to first identifier
5454 -- Defining_Identifier (Node1)
5455 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5456 -- Subtype_Mark (Node4) (set to Empty if not present)
5457 -- Access_Definition (Node3) (set to Empty if not present)
5459 -- Corresponding_Generic_Association (Node5-Sem)
5461 -----------------------------------------
5462 -- 8.5 Exception Renaming Declaration --
5463 -----------------------------------------
5465 -- EXCEPTION_RENAMING_DECLARATION ::=
5466 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5467 -- [ASPECT_SPECIFICATIONS];
5469 -- N_Exception_Renaming_Declaration
5470 -- Sloc points to first identifier
5471 -- Defining_Identifier (Node1)
5474 ---------------------------------------
5475 -- 8.5 Package Renaming Declaration --
5476 ---------------------------------------
5478 -- PACKAGE_RENAMING_DECLARATION ::=
5479 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5480 -- [ASPECT_SPECIFICATIONS];
5482 -- N_Package_Renaming_Declaration
5483 -- Sloc points to PACKAGE
5484 -- Defining_Unit_Name (Node1)
5486 -- Parent_Spec (Node4-Sem)
5488 ------------------------------------------
5489 -- 8.5 Subprogram Renaming Declaration --
5490 ------------------------------------------
5492 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5493 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5494 -- [ASPECT_SPECIFICATIONS];
5496 -- N_Subprogram_Renaming_Declaration
5497 -- Sloc points to RENAMES
5498 -- Specification (Node1)
5500 -- Parent_Spec (Node4-Sem)
5501 -- Corresponding_Spec (Node5-Sem)
5502 -- Corresponding_Formal_Spec (Node3-Sem)
5503 -- From_Default (Flag6-Sem)
5505 -----------------------------------------
5506 -- 8.5.5 Generic Renaming Declaration --
5507 -----------------------------------------
5509 -- GENERIC_RENAMING_DECLARATION ::=
5510 -- generic package DEFINING_PROGRAM_UNIT_NAME
5511 -- renames generic_package_NAME
5512 -- [ASPECT_SPECIFICATIONS];
5513 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5514 -- renames generic_procedure_NAME
5515 -- [ASPECT_SPECIFICATIONS];
5516 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5517 -- renames generic_function_NAME
5518 -- [ASPECT_SPECIFICATIONS];
5520 -- N_Generic_Package_Renaming_Declaration
5521 -- Sloc points to GENERIC
5522 -- Defining_Unit_Name (Node1)
5524 -- Parent_Spec (Node4-Sem)
5526 -- N_Generic_Procedure_Renaming_Declaration
5527 -- Sloc points to GENERIC
5528 -- Defining_Unit_Name (Node1)
5530 -- Parent_Spec (Node4-Sem)
5532 -- N_Generic_Function_Renaming_Declaration
5533 -- Sloc points to GENERIC
5534 -- Defining_Unit_Name (Node1)
5536 -- Parent_Spec (Node4-Sem)
5538 --------------------------------
5539 -- 9.1 Task Type Declaration --
5540 --------------------------------
5542 -- TASK_TYPE_DECLARATION ::=
5543 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5544 -- [ASPECT_SPECIFICATIONS]
5545 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5547 -- N_Task_Type_Declaration
5548 -- Sloc points to TASK
5549 -- Defining_Identifier (Node1)
5550 -- Discriminant_Specifications (List4) (set to No_List if no
5551 -- discriminant part)
5552 -- Interface_List (List2) (set to No_List if none)
5553 -- Task_Definition (Node3) (set to Empty if not present)
5554 -- Corresponding_Body (Node5-Sem)
5556 ----------------------------------
5557 -- 9.1 Single Task Declaration --
5558 ----------------------------------
5560 -- SINGLE_TASK_DECLARATION ::=
5561 -- task DEFINING_IDENTIFIER
5562 -- [ASPECT_SPECIFICATIONS]
5563 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5565 -- N_Single_Task_Declaration
5566 -- Sloc points to TASK
5567 -- Defining_Identifier (Node1)
5568 -- Interface_List (List2) (set to No_List if none)
5569 -- Task_Definition (Node3) (set to Empty if not present)
5571 --------------------------
5572 -- 9.1 Task Definition --
5573 --------------------------
5575 -- TASK_DEFINITION ::=
5579 -- end [task_IDENTIFIER]
5581 -- Note: as a result of semantic analysis, the list of task items can
5582 -- include implicit type declarations resulting from entry families.
5584 -- N_Task_Definition
5585 -- Sloc points to first token of task definition
5586 -- Visible_Declarations (List2)
5587 -- Private_Declarations (List3) (set to No_List if no private part)
5588 -- End_Label (Node4)
5589 -- Has_Storage_Size_Pragma (Flag5-Sem)
5590 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5592 --------------------
5594 --------------------
5596 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5598 --------------------
5600 --------------------
5603 -- task body task_DEFINING_IDENTIFIER
5604 -- [ASPECT_SPECIFICATIONS]
5608 -- HANDLED_SEQUENCE_OF_STATEMENTS
5609 -- end [task_IDENTIFIER];
5611 -- Gigi restriction: This node never appears
5614 -- Sloc points to TASK
5615 -- Defining_Identifier (Node1)
5616 -- Declarations (List2)
5617 -- Handled_Statement_Sequence (Node4)
5618 -- Is_Task_Master (Flag5-Sem)
5619 -- Activation_Chain_Entity (Node3-Sem)
5620 -- Corresponding_Spec (Node5-Sem)
5621 -- Was_Originally_Stub (Flag13-Sem)
5623 -------------------------------------
5624 -- 9.4 Protected Type Declaration --
5625 -------------------------------------
5627 -- PROTECTED_TYPE_DECLARATION ::=
5628 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5629 -- [ASPECT_SPECIFICATIONS]
5630 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5632 -- Note: protected type declarations are not permitted in Ada 83 mode
5634 -- N_Protected_Type_Declaration
5635 -- Sloc points to PROTECTED
5636 -- Defining_Identifier (Node1)
5637 -- Discriminant_Specifications (List4) (set to No_List if no
5638 -- discriminant part)
5639 -- Interface_List (List2) (set to No_List if none)
5640 -- Protected_Definition (Node3)
5641 -- Corresponding_Body (Node5-Sem)
5643 ---------------------------------------
5644 -- 9.4 Single Protected Declaration --
5645 ---------------------------------------
5647 -- SINGLE_PROTECTED_DECLARATION ::=
5648 -- protected DEFINING_IDENTIFIER
5649 -- [ASPECT_SPECIFICATIONS]
5650 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5652 -- Note: single protected declarations are not allowed in Ada 83 mode
5654 -- N_Single_Protected_Declaration
5655 -- Sloc points to PROTECTED
5656 -- Defining_Identifier (Node1)
5657 -- Interface_List (List2) (set to No_List if none)
5658 -- Protected_Definition (Node3)
5660 -------------------------------
5661 -- 9.4 Protected Definition --
5662 -------------------------------
5664 -- PROTECTED_DEFINITION ::=
5665 -- {PROTECTED_OPERATION_DECLARATION}
5667 -- {PROTECTED_ELEMENT_DECLARATION}]
5668 -- end [protected_IDENTIFIER]
5670 -- N_Protected_Definition
5671 -- Sloc points to first token of protected definition
5672 -- Visible_Declarations (List2)
5673 -- Private_Declarations (List3) (set to No_List if no private part)
5674 -- End_Label (Node4)
5676 ------------------------------------------
5677 -- 9.4 Protected Operation Declaration --
5678 ------------------------------------------
5680 -- PROTECTED_OPERATION_DECLARATION ::=
5681 -- SUBPROGRAM_DECLARATION
5682 -- | ENTRY_DECLARATION
5683 -- | REPRESENTATION_CLAUSE
5685 ----------------------------------------
5686 -- 9.4 Protected Element Declaration --
5687 ----------------------------------------
5689 -- PROTECTED_ELEMENT_DECLARATION ::=
5690 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5692 -------------------------
5693 -- 9.4 Protected Body --
5694 -------------------------
5696 -- PROTECTED_BODY ::=
5697 -- protected body DEFINING_IDENTIFIER
5698 -- [ASPECT_SPECIFICATIONS];
5700 -- {PROTECTED_OPERATION_ITEM}
5701 -- end [protected_IDENTIFIER];
5703 -- Note: protected bodies are not allowed in Ada 83 mode
5705 -- Gigi restriction: This node never appears
5708 -- Sloc points to PROTECTED
5709 -- Defining_Identifier (Node1)
5710 -- Declarations (List2) protected operation items (and pragmas)
5711 -- End_Label (Node4)
5712 -- Corresponding_Spec (Node5-Sem)
5713 -- Was_Originally_Stub (Flag13-Sem)
5715 -----------------------------------
5716 -- 9.4 Protected Operation Item --
5717 -----------------------------------
5719 -- PROTECTED_OPERATION_ITEM ::=
5720 -- SUBPROGRAM_DECLARATION
5721 -- | SUBPROGRAM_BODY
5723 -- | REPRESENTATION_CLAUSE
5725 ------------------------------
5726 -- 9.5.2 Entry Declaration --
5727 ------------------------------
5729 -- ENTRY_DECLARATION ::=
5730 -- [[not] overriding]
5731 -- entry DEFINING_IDENTIFIER
5732 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
5733 -- [ASPECT_SPECIFICATIONS];
5735 -- N_Entry_Declaration
5736 -- Sloc points to ENTRY
5737 -- Defining_Identifier (Node1)
5738 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5739 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5740 -- Corresponding_Body (Node5-Sem)
5741 -- Must_Override (Flag14) set if overriding indicator present
5742 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5744 -- Note: overriding indicator is an Ada 2005 feature
5746 -----------------------------
5747 -- 9.5.2 Accept statement --
5748 -----------------------------
5750 -- ACCEPT_STATEMENT ::=
5751 -- accept entry_DIRECT_NAME
5752 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5753 -- HANDLED_SEQUENCE_OF_STATEMENTS
5754 -- end [entry_IDENTIFIER]];
5756 -- Gigi restriction: This node never appears
5758 -- Note: there are no explicit declarations allowed in an accept
5759 -- statement. However, the implicit declarations for any statement
5760 -- identifiers (labels and block/loop identifiers) are declarations
5761 -- that belong logically to the accept statement, and that is why
5762 -- there is a Declarations field in this node.
5764 -- N_Accept_Statement
5765 -- Sloc points to ACCEPT
5766 -- Entry_Direct_Name (Node1)
5767 -- Entry_Index (Node5) (set to Empty if not present)
5768 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5769 -- Handled_Statement_Sequence (Node4)
5770 -- Declarations (List2) (set to No_List if no declarations)
5772 ------------------------
5773 -- 9.5.2 Entry Index --
5774 ------------------------
5776 -- ENTRY_INDEX ::= EXPRESSION
5778 -----------------------
5779 -- 9.5.2 Entry Body --
5780 -----------------------
5783 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5786 -- HANDLED_SEQUENCE_OF_STATEMENTS
5787 -- end [entry_IDENTIFIER];
5789 -- ENTRY_BARRIER ::= when CONDITION
5791 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5792 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5793 -- too full (it would otherwise have too many fields)
5795 -- Gigi restriction: This node never appears
5798 -- Sloc points to ENTRY
5799 -- Defining_Identifier (Node1)
5800 -- Entry_Body_Formal_Part (Node5)
5801 -- Declarations (List2)
5802 -- Handled_Statement_Sequence (Node4)
5803 -- Activation_Chain_Entity (Node3-Sem)
5805 -----------------------------------
5806 -- 9.5.2 Entry Body Formal Part --
5807 -----------------------------------
5809 -- ENTRY_BODY_FORMAL_PART ::=
5810 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5812 -- Note that an entry body formal part node is present even if it is
5813 -- empty. This reflects the grammar, in which it is the components of
5814 -- the entry body formal part that are optional, not the entry body
5815 -- formal part itself. Also this means that the barrier condition
5816 -- always has somewhere to be stored.
5818 -- Gigi restriction: This node never appears
5820 -- N_Entry_Body_Formal_Part
5821 -- Sloc points to first token
5822 -- Entry_Index_Specification (Node4) (set to Empty if not present)
5823 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5824 -- Condition (Node1) from entry barrier of entry body
5826 --------------------------
5827 -- 9.5.2 Entry Barrier --
5828 --------------------------
5830 -- ENTRY_BARRIER ::= when CONDITION
5832 --------------------------------------
5833 -- 9.5.2 Entry Index Specification --
5834 --------------------------------------
5836 -- ENTRY_INDEX_SPECIFICATION ::=
5837 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5839 -- Gigi restriction: This node never appears
5841 -- N_Entry_Index_Specification
5842 -- Sloc points to FOR
5843 -- Defining_Identifier (Node1)
5844 -- Discrete_Subtype_Definition (Node4)
5846 ---------------------------------
5847 -- 9.5.3 Entry Call Statement --
5848 ---------------------------------
5850 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5852 -- The parser may generate a procedure call for this construct. The
5853 -- semantic pass must correct this misidentification where needed.
5855 -- Gigi restriction: This node never appears
5857 -- N_Entry_Call_Statement
5858 -- Sloc points to first token of name
5860 -- Parameter_Associations (List3) (set to No_List if no
5861 -- actual parameter part)
5862 -- First_Named_Actual (Node4-Sem)
5864 ------------------------------
5865 -- 9.5.4 Requeue Statement --
5866 ------------------------------
5868 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5870 -- Note: requeue statements are not permitted in Ada 83 mode
5872 -- Gigi restriction: This node never appears
5874 -- N_Requeue_Statement
5875 -- Sloc points to REQUEUE
5877 -- Abort_Present (Flag15)
5879 --------------------------
5880 -- 9.6 Delay Statement --
5881 --------------------------
5883 -- DELAY_STATEMENT ::=
5884 -- DELAY_UNTIL_STATEMENT
5885 -- | DELAY_RELATIVE_STATEMENT
5887 --------------------------------
5888 -- 9.6 Delay Until Statement --
5889 --------------------------------
5891 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5893 -- Note: delay until statements are not permitted in Ada 83 mode
5895 -- Gigi restriction: This node never appears
5897 -- N_Delay_Until_Statement
5898 -- Sloc points to DELAY
5899 -- Expression (Node3)
5901 -----------------------------------
5902 -- 9.6 Delay Relative Statement --
5903 -----------------------------------
5905 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5907 -- Gigi restriction: This node never appears
5909 -- N_Delay_Relative_Statement
5910 -- Sloc points to DELAY
5911 -- Expression (Node3)
5913 ---------------------------
5914 -- 9.7 Select Statement --
5915 ---------------------------
5917 -- SELECT_STATEMENT ::=
5919 -- | TIMED_ENTRY_CALL
5920 -- | CONDITIONAL_ENTRY_CALL
5921 -- | ASYNCHRONOUS_SELECT
5923 -----------------------------
5924 -- 9.7.1 Selective Accept --
5925 -----------------------------
5927 -- SELECTIVE_ACCEPT ::=
5930 -- SELECT_ALTERNATIVE
5933 -- SELECT_ALTERNATIVE}
5935 -- SEQUENCE_OF_STATEMENTS]
5938 -- Gigi restriction: This node never appears
5940 -- Note: the guard expression, if present, appears in the node for
5941 -- the select alternative.
5943 -- N_Selective_Accept
5944 -- Sloc points to SELECT
5945 -- Select_Alternatives (List1)
5946 -- Else_Statements (List4) (set to No_List if no else part)
5952 -- GUARD ::= when CONDITION =>
5954 -- As noted above, the CONDITION that is part of a GUARD is included
5955 -- in the node for the select alternative for convenience.
5957 -------------------------------
5958 -- 9.7.1 Select Alternative --
5959 -------------------------------
5961 -- SELECT_ALTERNATIVE ::=
5962 -- ACCEPT_ALTERNATIVE
5963 -- | DELAY_ALTERNATIVE
5964 -- | TERMINATE_ALTERNATIVE
5966 -------------------------------
5967 -- 9.7.1 Accept Alternative --
5968 -------------------------------
5970 -- ACCEPT_ALTERNATIVE ::=
5971 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5973 -- Gigi restriction: This node never appears
5975 -- N_Accept_Alternative
5976 -- Sloc points to ACCEPT
5977 -- Accept_Statement (Node2)
5978 -- Condition (Node1) from the guard (set to Empty if no guard present)
5979 -- Statements (List3) (set to Empty_List if no statements)
5980 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5981 -- Accept_Handler_Records (List5-Sem)
5983 ------------------------------
5984 -- 9.7.1 Delay Alternative --
5985 ------------------------------
5987 -- DELAY_ALTERNATIVE ::=
5988 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5990 -- Gigi restriction: This node never appears
5992 -- N_Delay_Alternative
5993 -- Sloc points to DELAY
5994 -- Delay_Statement (Node2)
5995 -- Condition (Node1) from the guard (set to Empty if no guard present)
5996 -- Statements (List3) (set to Empty_List if no statements)
5997 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5999 ----------------------------------
6000 -- 9.7.1 Terminate Alternative --
6001 ----------------------------------
6003 -- TERMINATE_ALTERNATIVE ::= terminate;
6005 -- Gigi restriction: This node never appears
6007 -- N_Terminate_Alternative
6008 -- Sloc points to TERMINATE
6009 -- Condition (Node1) from the guard (set to Empty if no guard present)
6010 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6011 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
6013 -----------------------------
6014 -- 9.7.2 Timed Entry Call --
6015 -----------------------------
6017 -- TIMED_ENTRY_CALL ::=
6019 -- ENTRY_CALL_ALTERNATIVE
6021 -- DELAY_ALTERNATIVE
6024 -- Gigi restriction: This node never appears
6026 -- N_Timed_Entry_Call
6027 -- Sloc points to SELECT
6028 -- Entry_Call_Alternative (Node1)
6029 -- Delay_Alternative (Node4)
6031 -----------------------------------
6032 -- 9.7.2 Entry Call Alternative --
6033 -----------------------------------
6035 -- ENTRY_CALL_ALTERNATIVE ::=
6036 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
6038 -- PROCEDURE_OR_ENTRY_CALL ::=
6039 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
6041 -- Gigi restriction: This node never appears
6043 -- N_Entry_Call_Alternative
6044 -- Sloc points to first token of entry call statement
6045 -- Entry_Call_Statement (Node1)
6046 -- Statements (List3) (set to Empty_List if no statements)
6047 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6049 -----------------------------------
6050 -- 9.7.3 Conditional Entry Call --
6051 -----------------------------------
6053 -- CONDITIONAL_ENTRY_CALL ::=
6055 -- ENTRY_CALL_ALTERNATIVE
6057 -- SEQUENCE_OF_STATEMENTS
6060 -- Gigi restriction: This node never appears
6062 -- N_Conditional_Entry_Call
6063 -- Sloc points to SELECT
6064 -- Entry_Call_Alternative (Node1)
6065 -- Else_Statements (List4)
6067 --------------------------------
6068 -- 9.7.4 Asynchronous Select --
6069 --------------------------------
6071 -- ASYNCHRONOUS_SELECT ::=
6073 -- TRIGGERING_ALTERNATIVE
6078 -- Note: asynchronous select is not permitted in Ada 83 mode
6080 -- Gigi restriction: This node never appears
6082 -- N_Asynchronous_Select
6083 -- Sloc points to SELECT
6084 -- Triggering_Alternative (Node1)
6085 -- Abortable_Part (Node2)
6087 -----------------------------------
6088 -- 9.7.4 Triggering Alternative --
6089 -----------------------------------
6091 -- TRIGGERING_ALTERNATIVE ::=
6092 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6094 -- Gigi restriction: This node never appears
6096 -- N_Triggering_Alternative
6097 -- Sloc points to first token of triggering statement
6098 -- Triggering_Statement (Node1)
6099 -- Statements (List3) (set to Empty_List if no statements)
6100 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6102 ---------------------------------
6103 -- 9.7.4 Triggering Statement --
6104 ---------------------------------
6106 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6108 ---------------------------
6109 -- 9.7.4 Abortable Part --
6110 ---------------------------
6112 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6114 -- Gigi restriction: This node never appears
6117 -- Sloc points to ABORT
6118 -- Statements (List3)
6120 --------------------------
6121 -- 9.8 Abort Statement --
6122 --------------------------
6124 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6126 -- Gigi restriction: This node never appears
6128 -- N_Abort_Statement
6129 -- Sloc points to ABORT
6132 -------------------------
6133 -- 10.1.1 Compilation --
6134 -------------------------
6136 -- COMPILATION ::= {COMPILATION_UNIT}
6138 -- There is no explicit node in the tree for a compilation, since in
6139 -- general the compiler is processing only a single compilation unit
6140 -- at a time. It is possible to parse multiple units in syntax check
6141 -- only mode, but the trees are discarded in that case.
6143 ------------------------------
6144 -- 10.1.1 Compilation Unit --
6145 ------------------------------
6147 -- COMPILATION_UNIT ::=
6148 -- CONTEXT_CLAUSE LIBRARY_ITEM
6149 -- | CONTEXT_CLAUSE SUBUNIT
6151 -- The N_Compilation_Unit node itself represents the above syntax.
6152 -- However, there are two additional items not reflected in the above
6153 -- syntax. First we have the global declarations that are added by the
6154 -- code generator. These are outer level declarations (so they cannot
6155 -- be represented as being inside the units). An example is the wrapper
6156 -- subprograms that are created to do ABE checking. As always a list of
6157 -- declarations can contain actions as well (i.e. statements), and such
6158 -- statements are executed as part of the elaboration of the unit. Note
6159 -- that all such declarations are elaborated before the library unit.
6161 -- Similarly, certain actions need to be elaborated at the completion
6162 -- of elaboration of the library unit (notably the statement that sets
6163 -- the Boolean flag indicating that elaboration is complete).
6165 -- The third item not reflected in the syntax is pragmas that appear
6166 -- after the compilation unit. As always pragmas are a problem since
6167 -- they are not part of the formal syntax, but can be stuck into the
6168 -- source following a set of ad hoc rules, and we have to find an ad
6169 -- hoc way of sticking them into the tree. For pragmas that appear
6170 -- before the library unit, we just consider them to be part of the
6171 -- context clause, and pragmas can appear in the Context_Items list
6172 -- of the compilation unit. However, pragmas can also appear after
6173 -- the library item.
6175 -- To deal with all these problems, we create an auxiliary node for
6176 -- a compilation unit, referenced from the N_Compilation_Unit node,
6177 -- that contains these items.
6179 -- N_Compilation_Unit
6180 -- Sloc points to first token of defining unit name
6181 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6182 -- Context_Items (List1) context items and pragmas preceding unit
6183 -- Private_Present (Flag15) set if library unit has private keyword
6184 -- Unit (Node2) library item or subunit
6185 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6186 -- Has_No_Elaboration_Code (Flag17-Sem)
6187 -- Body_Required (Flag13-Sem) set for spec if body is required
6188 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6189 -- Context_Pending (Flag16-Sem)
6190 -- First_Inlined_Subprogram (Node3-Sem)
6191 -- Has_Pragma_Suppress_All (Flag14-Sem)
6193 -- N_Compilation_Unit_Aux
6194 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6195 -- Declarations (List2) (set to No_List if no global declarations)
6196 -- Actions (List1) (set to No_List if no actions)
6197 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6198 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6199 -- Default_Storage_Pool (Node3-Sem)
6201 --------------------------
6202 -- 10.1.1 Library Item --
6203 --------------------------
6206 -- [private] LIBRARY_UNIT_DECLARATION
6207 -- | LIBRARY_UNIT_BODY
6208 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6210 -- Note: PRIVATE is not allowed in Ada 83 mode
6212 -- There is no explicit node in the tree for library item, instead
6213 -- the declaration or body, and the flag for private if present,
6214 -- appear in the N_Compilation_Unit node.
6216 --------------------------------------
6217 -- 10.1.1 Library Unit Declaration --
6218 --------------------------------------
6220 -- LIBRARY_UNIT_DECLARATION ::=
6221 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6222 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6224 -----------------------------------------------
6225 -- 10.1.1 Library Unit Renaming Declaration --
6226 -----------------------------------------------
6228 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6229 -- PACKAGE_RENAMING_DECLARATION
6230 -- | GENERIC_RENAMING_DECLARATION
6231 -- | SUBPROGRAM_RENAMING_DECLARATION
6233 -------------------------------
6234 -- 10.1.1 Library unit body --
6235 -------------------------------
6237 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6239 ------------------------------
6240 -- 10.1.1 Parent Unit Name --
6241 ------------------------------
6243 -- PARENT_UNIT_NAME ::= NAME
6245 ----------------------------
6246 -- 10.1.2 Context clause --
6247 ----------------------------
6249 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6251 -- The context clause can include pragmas, and any pragmas that appear
6252 -- before the context clause proper (i.e. all configuration pragmas,
6253 -- also appear at the front of this list).
6255 --------------------------
6256 -- 10.1.2 Context_Item --
6257 --------------------------
6259 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6261 -------------------------
6262 -- 10.1.2 With clause --
6263 -------------------------
6266 -- with library_unit_NAME {,library_unit_NAME};
6268 -- A separate With clause is built for each name, so that we have
6269 -- a Corresponding_Spec field for each with'ed spec. The flags
6270 -- First_Name and Last_Name are used to reconstruct the exact
6271 -- source form. When a list of names appears in one with clause,
6272 -- the first name in the list has First_Name set, and the last
6273 -- has Last_Name set. If the with clause has only one name, then
6274 -- both of the flags First_Name and Last_Name are set in this name.
6276 -- Note: in the case of implicit with's that are installed by the
6277 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6278 -- set to Standard_Location, but it is incorrect to test the Sloc
6279 -- to find out if a with clause is implicit, test the flag instead.
6282 -- Sloc points to first token of library unit name
6283 -- Withed_Body (Node1-Sem)
6285 -- Next_Implicit_With (Node3-Sem)
6286 -- Library_Unit (Node4-Sem)
6287 -- Corresponding_Spec (Node5-Sem)
6288 -- First_Name (Flag5) (set to True if first name or only one name)
6289 -- Last_Name (Flag6) (set to True if last name or only one name)
6290 -- Context_Installed (Flag13-Sem)
6291 -- Elaborate_Present (Flag4-Sem)
6292 -- Elaborate_All_Present (Flag14-Sem)
6293 -- Elaborate_All_Desirable (Flag9-Sem)
6294 -- Elaborate_Desirable (Flag11-Sem)
6295 -- Private_Present (Flag15) set if with_clause has private keyword
6296 -- Implicit_With (Flag16-Sem)
6297 -- Implicit_With_From_Instantiation (Flag12-Sem)
6298 -- Limited_Present (Flag17) set if LIMITED is present
6299 -- Limited_View_Installed (Flag18-Sem)
6300 -- Unreferenced_In_Spec (Flag7-Sem)
6301 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6303 -- Note: Limited_Present and Limited_View_Installed are used to support
6304 -- the implementation of Ada 2005 (AI-50217).
6306 -- Similarly, Private_Present is used to support the implementation of
6307 -- Ada 2005 (AI-50262).
6309 ----------------------
6310 -- With_Type clause --
6311 ----------------------
6313 -- This is a GNAT extension, used to implement mutually recursive
6314 -- types declared in different packages.
6316 -- Note: this is now obsolete. The functionality of this construct
6317 -- is now implemented by the Ada 2005 limited_with_clause.
6319 ---------------------
6320 -- 10.2 Body stub --
6321 ---------------------
6324 -- SUBPROGRAM_BODY_STUB
6325 -- | PACKAGE_BODY_STUB
6327 -- | PROTECTED_BODY_STUB
6329 ----------------------------------
6330 -- 10.1.3 Subprogram Body Stub --
6331 ----------------------------------
6333 -- SUBPROGRAM_BODY_STUB ::=
6334 -- SUBPROGRAM_SPECIFICATION is separate
6335 -- [ASPECT_SPECIFICATION];
6337 -- N_Subprogram_Body_Stub
6338 -- Sloc points to FUNCTION or PROCEDURE
6339 -- Specification (Node1)
6340 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6341 -- Library_Unit (Node4-Sem) points to the subunit
6342 -- Corresponding_Body (Node5-Sem)
6344 -------------------------------
6345 -- 10.1.3 Package Body Stub --
6346 -------------------------------
6348 -- PACKAGE_BODY_STUB ::=
6349 -- package body DEFINING_IDENTIFIER is separate
6350 -- [ASPECT_SPECIFICATION];
6352 -- N_Package_Body_Stub
6353 -- Sloc points to PACKAGE
6354 -- Defining_Identifier (Node1)
6355 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6356 -- Library_Unit (Node4-Sem) points to the subunit
6357 -- Corresponding_Body (Node5-Sem)
6359 ----------------------------
6360 -- 10.1.3 Task Body Stub --
6361 ----------------------------
6363 -- TASK_BODY_STUB ::=
6364 -- task body DEFINING_IDENTIFIER is separate
6365 -- [ASPECT_SPECIFICATION];
6368 -- Sloc points to TASK
6369 -- Defining_Identifier (Node1)
6370 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6371 -- Library_Unit (Node4-Sem) points to the subunit
6372 -- Corresponding_Body (Node5-Sem)
6374 ---------------------------------
6375 -- 10.1.3 Protected Body Stub --
6376 ---------------------------------
6378 -- PROTECTED_BODY_STUB ::=
6379 -- protected body DEFINING_IDENTIFIER is separate
6380 -- [ASPECT_SPECIFICATION];
6382 -- Note: protected body stubs are not allowed in Ada 83 mode
6384 -- N_Protected_Body_Stub
6385 -- Sloc points to PROTECTED
6386 -- Defining_Identifier (Node1)
6387 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6388 -- Library_Unit (Node4-Sem) points to the subunit
6389 -- Corresponding_Body (Node5-Sem)
6391 ---------------------
6392 -- 10.1.3 Subunit --
6393 ---------------------
6395 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6398 -- Sloc points to SEPARATE
6399 -- Name (Node2) is the name of the parent unit
6400 -- Proper_Body (Node1) is the subunit body
6401 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6403 ---------------------------------
6404 -- 11.1 Exception Declaration --
6405 ---------------------------------
6407 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6408 -- [ASPECT_SPECIFICATIONS];
6410 -- For consistency with object declarations etc., the parser converts
6411 -- the case of multiple identifiers being declared to a series of
6412 -- declarations in which the expression is copied, using the More_Ids
6413 -- and Prev_Ids flags to remember the source form as described in the
6414 -- section on "Handling of Defining Identifier Lists".
6416 -- N_Exception_Declaration
6417 -- Sloc points to EXCEPTION
6418 -- Defining_Identifier (Node1)
6419 -- Expression (Node3-Sem)
6420 -- Renaming_Exception (Node2-Sem)
6421 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6422 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6424 ------------------------------------------
6425 -- 11.2 Handled Sequence Of Statements --
6426 ------------------------------------------
6428 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6429 -- SEQUENCE_OF_STATEMENTS
6431 -- EXCEPTION_HANDLER
6432 -- {EXCEPTION_HANDLER}]
6434 -- cleanup_procedure_call (param, param, param, ...);]
6436 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6437 -- used only internally currently, but is considered to be syntactic.
6438 -- At the moment, the only cleanup action allowed is a single call to
6439 -- a parameterless procedure, and the Identifier field of the node is
6440 -- the procedure to be called. The cleanup action occurs whenever the
6441 -- sequence of statements is left for any reason. The possible reasons
6443 -- 1. reaching the end of the sequence
6444 -- 2. exit, return, or goto
6445 -- 3. exception or abort
6446 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6447 -- entirely in the back end. In this case, a handled sequence of
6448 -- statements with an "at end" cannot also have exception handlers.
6449 -- For other back ends, such as gcc with SJLJ and .NET, the
6450 -- implementation is split between the front end and back end; the front
6451 -- end implements 3, and the back end implements 1 and 2. In this case,
6452 -- if there is an "at end", the front end inserts the appropriate
6453 -- exception handler, and this handler takes precedence over "at end"
6454 -- in case of exception.
6456 -- The inserted exception handler is of the form:
6458 -- when all others =>
6462 -- where cleanup is the procedure to be called. The reason we do this is
6463 -- so that the front end can handle the necessary entries in the
6464 -- exception tables, and other exception handler actions required as
6465 -- part of the normal handling for exception handlers.
6467 -- The AT END cleanup handler protects only the sequence of statements
6468 -- (not the associated declarations of the parent), just like exception
6469 -- handlers. The big difference is that the cleanup procedure is called
6470 -- on either a normal or an abnormal exit from the statement sequence.
6472 -- Note: the list of Exception_Handlers can contain pragmas as well
6473 -- as actual handlers. In practice these pragmas can only occur at
6474 -- the start of the list, since any pragmas occurring later on will
6475 -- be included in the statement list of the corresponding handler.
6477 -- Note: although in the Ada syntax, the sequence of statements in
6478 -- a handled sequence of statements can only contain statements, we
6479 -- allow free mixing of declarations and statements in the resulting
6480 -- expanded tree. This is for example used to deal with the case of
6481 -- a cleanup procedure that must handle declarations as well as the
6482 -- statements of a block.
6484 -- N_Handled_Sequence_Of_Statements
6485 -- Sloc points to first token of first statement
6486 -- Statements (List3)
6487 -- End_Label (Node4) (set to Empty if expander generated)
6488 -- Exception_Handlers (List5) (set to No_List if none present)
6489 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6490 -- First_Real_Statement (Node2-Sem)
6492 -- Note: the parent always contains a Declarations field which contains
6493 -- declarations associated with the handled sequence of statements. This
6494 -- is true even in the case of an accept statement (see description of
6495 -- the N_Accept_Statement node).
6497 -- End_Label refers to the containing construct
6499 -----------------------------
6500 -- 11.2 Exception Handler --
6501 -----------------------------
6503 -- EXCEPTION_HANDLER ::=
6504 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6505 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6506 -- SEQUENCE_OF_STATEMENTS
6508 -- Note: choice parameter specification is not allowed in Ada 83 mode
6510 -- N_Exception_Handler
6511 -- Sloc points to WHEN
6512 -- Choice_Parameter (Node2) (set to Empty if not present)
6513 -- Exception_Choices (List4)
6514 -- Statements (List3)
6515 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6516 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6517 -- Local_Raise_Not_OK (Flag7-Sem)
6518 -- Has_Local_Raise (Flag8-Sem)
6520 ------------------------------------------
6521 -- 11.2 Choice parameter specification --
6522 ------------------------------------------
6524 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6526 ----------------------------
6527 -- 11.2 Exception Choice --
6528 ----------------------------
6530 -- EXCEPTION_CHOICE ::= exception_NAME | others
6532 -- Except in the case of OTHERS, no explicit node appears in the tree
6533 -- for exception choice. Instead the exception name appears directly.
6534 -- An OTHERS choice is represented by a N_Others_Choice node (see
6537 -- Note: for the exception choice created for an at end handler, the
6538 -- exception choice is an N_Others_Choice node with All_Others set.
6540 ---------------------------
6541 -- 11.3 Raise Statement --
6542 ---------------------------
6544 -- RAISE_STATEMENT ::= raise [exception_NAME];
6546 -- In Ada 2005, we have
6548 -- RAISE_STATEMENT ::=
6549 -- raise; | raise exception_NAME [with string_EXPRESSION];
6551 -- N_Raise_Statement
6552 -- Sloc points to RAISE
6553 -- Name (Node2) (set to Empty if no exception name present)
6554 -- Expression (Node3) (set to Empty if no expression present)
6555 -- From_At_End (Flag4-Sem)
6557 ----------------------------
6558 -- 11.3 Raise Expression --
6559 ----------------------------
6561 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6563 -- N_Raise_Expression
6564 -- Sloc points to RAISE
6565 -- Name (Node2) (always present)
6566 -- Expression (Node3) (set to Empty if no expression present)
6567 -- Convert_To_Return_False (Flag13-Sem)
6568 -- plus fields for expression
6570 -------------------------------
6571 -- 12.1 Generic Declaration --
6572 -------------------------------
6574 -- GENERIC_DECLARATION ::=
6575 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6577 ------------------------------------------
6578 -- 12.1 Generic Subprogram Declaration --
6579 ------------------------------------------
6581 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6582 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6583 -- [ASPECT_SPECIFICATIONS];
6585 -- Note: Generic_Formal_Declarations can include pragmas
6587 -- N_Generic_Subprogram_Declaration
6588 -- Sloc points to GENERIC
6589 -- Specification (Node1) subprogram specification
6590 -- Corresponding_Body (Node5-Sem)
6591 -- Generic_Formal_Declarations (List2) from generic formal part
6592 -- Parent_Spec (Node4-Sem)
6594 ---------------------------------------
6595 -- 12.1 Generic Package Declaration --
6596 ---------------------------------------
6598 -- GENERIC_PACKAGE_DECLARATION ::=
6599 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6600 -- [ASPECT_SPECIFICATIONS];
6602 -- Note: when we do generics right, the Activation_Chain_Entity entry
6603 -- for this node can be removed (since the expander won't see generic
6604 -- units any more)???.
6606 -- Note: Generic_Formal_Declarations can include pragmas
6608 -- N_Generic_Package_Declaration
6609 -- Sloc points to GENERIC
6610 -- Specification (Node1) package specification
6611 -- Corresponding_Body (Node5-Sem)
6612 -- Generic_Formal_Declarations (List2) from generic formal part
6613 -- Parent_Spec (Node4-Sem)
6614 -- Activation_Chain_Entity (Node3-Sem)
6616 -------------------------------
6617 -- 12.1 Generic Formal Part --
6618 -------------------------------
6620 -- GENERIC_FORMAL_PART ::=
6621 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6623 ------------------------------------------------
6624 -- 12.1 Generic Formal Parameter Declaration --
6625 ------------------------------------------------
6627 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6628 -- FORMAL_OBJECT_DECLARATION
6629 -- | FORMAL_TYPE_DECLARATION
6630 -- | FORMAL_SUBPROGRAM_DECLARATION
6631 -- | FORMAL_PACKAGE_DECLARATION
6633 ---------------------------------
6634 -- 12.3 Generic Instantiation --
6635 ---------------------------------
6637 -- GENERIC_INSTANTIATION ::=
6638 -- package DEFINING_PROGRAM_UNIT_NAME is
6639 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6640 -- [ASPECT_SPECIFICATIONS];
6641 -- | [[not] overriding]
6642 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6643 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6644 -- [ASPECT_SPECIFICATIONS];
6645 -- | [[not] overriding]
6646 -- function DEFINING_DESIGNATOR is
6647 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6648 -- [ASPECT_SPECIFICATIONS];
6650 -- N_Package_Instantiation
6651 -- Sloc points to PACKAGE
6652 -- Defining_Unit_Name (Node1)
6654 -- Generic_Associations (List3) (set to No_List if no
6655 -- generic actual part)
6656 -- Parent_Spec (Node4-Sem)
6657 -- Instance_Spec (Node5-Sem)
6658 -- ABE_Is_Certain (Flag18-Sem)
6660 -- N_Procedure_Instantiation
6661 -- Sloc points to PROCEDURE
6662 -- Defining_Unit_Name (Node1)
6664 -- Parent_Spec (Node4-Sem)
6665 -- Generic_Associations (List3) (set to No_List if no
6666 -- generic actual part)
6667 -- Instance_Spec (Node5-Sem)
6668 -- Must_Override (Flag14) set if overriding indicator present
6669 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6670 -- ABE_Is_Certain (Flag18-Sem)
6672 -- N_Function_Instantiation
6673 -- Sloc points to FUNCTION
6674 -- Defining_Unit_Name (Node1)
6676 -- Generic_Associations (List3) (set to No_List if no
6677 -- generic actual part)
6678 -- Parent_Spec (Node4-Sem)
6679 -- Instance_Spec (Node5-Sem)
6680 -- Must_Override (Flag14) set if overriding indicator present
6681 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6682 -- ABE_Is_Certain (Flag18-Sem)
6684 -- Note: overriding indicator is an Ada 2005 feature
6686 -------------------------------
6687 -- 12.3 Generic Actual Part --
6688 -------------------------------
6690 -- GENERIC_ACTUAL_PART ::=
6691 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6693 -------------------------------
6694 -- 12.3 Generic Association --
6695 -------------------------------
6697 -- GENERIC_ASSOCIATION ::=
6698 -- [generic_formal_parameter_SELECTOR_NAME =>]
6700 -- Note: unlike the procedure call case, a generic association node
6701 -- is generated for every association, even if no formal parameter
6702 -- selector name is present. In this case the parser will leave the
6703 -- Selector_Name field set to Empty, to be filled in later by the
6706 -- In Ada 2005, a formal may be associated with a box, if the
6707 -- association is part of the list of actuals for a formal package.
6708 -- If the association is given by OTHERS => <>, the association is
6709 -- an N_Others_Choice.
6711 -- N_Generic_Association
6712 -- Sloc points to first token of generic association
6713 -- Selector_Name (Node2) (set to Empty if no formal
6714 -- parameter selector name)
6715 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6716 -- Box_Present (Flag15) (for formal_package associations with a box)
6718 ---------------------------------------------
6719 -- 12.3 Explicit Generic Actual Parameter --
6720 ---------------------------------------------
6722 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6723 -- EXPRESSION | variable_NAME | subprogram_NAME
6724 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
6726 -------------------------------------
6727 -- 12.4 Formal Object Declaration --
6728 -------------------------------------
6730 -- FORMAL_OBJECT_DECLARATION ::=
6731 -- DEFINING_IDENTIFIER_LIST :
6732 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6733 -- [ASPECT_SPECIFICATIONS];
6734 -- | DEFINING_IDENTIFIER_LIST :
6735 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6736 -- [ASPECT_SPECIFICATIONS];
6738 -- Although the syntax allows multiple identifiers in the list, the
6739 -- semantics is as though successive declarations were given with
6740 -- identical type definition and expression components. To simplify
6741 -- semantic processing, the parser represents a multiple declaration
6742 -- case as a sequence of single declarations, using the More_Ids and
6743 -- Prev_Ids flags to preserve the original source form as described
6744 -- in the section on "Handling of Defining Identifier Lists".
6746 -- N_Formal_Object_Declaration
6747 -- Sloc points to first identifier
6748 -- Defining_Identifier (Node1)
6749 -- In_Present (Flag15)
6750 -- Out_Present (Flag17)
6751 -- Null_Exclusion_Present (Flag11) (set to False if not present)
6752 -- Subtype_Mark (Node4) (set to Empty if not present)
6753 -- Access_Definition (Node3) (set to Empty if not present)
6754 -- Default_Expression (Node5) (set to Empty if no default expression)
6755 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6756 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6758 -----------------------------------
6759 -- 12.5 Formal Type Declaration --
6760 -----------------------------------
6762 -- FORMAL_TYPE_DECLARATION ::=
6763 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6764 -- is FORMAL_TYPE_DEFINITION
6765 -- [ASPECT_SPECIFICATIONS];
6766 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
6768 -- N_Formal_Type_Declaration
6769 -- Sloc points to TYPE
6770 -- Defining_Identifier (Node1)
6771 -- Formal_Type_Definition (Node3)
6772 -- Discriminant_Specifications (List4) (set to No_List if no
6773 -- discriminant part)
6774 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6776 ----------------------------------
6777 -- 12.5 Formal type definition --
6778 ----------------------------------
6780 -- FORMAL_TYPE_DEFINITION ::=
6781 -- FORMAL_PRIVATE_TYPE_DEFINITION
6782 -- | FORMAL_DERIVED_TYPE_DEFINITION
6783 -- | FORMAL_DISCRETE_TYPE_DEFINITION
6784 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6785 -- | FORMAL_MODULAR_TYPE_DEFINITION
6786 -- | FORMAL_FLOATING_POINT_DEFINITION
6787 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6788 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6789 -- | FORMAL_ARRAY_TYPE_DEFINITION
6790 -- | FORMAL_ACCESS_TYPE_DEFINITION
6791 -- | FORMAL_INTERFACE_TYPE_DEFINITION
6792 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
6794 -- The Ada 2012 syntax introduces two new non-terminals:
6795 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
6796 -- the latter category. Here we introduce an incomplete type definition
6797 -- in order to preserve as much as possible the existing structure.
6799 ---------------------------------------------
6800 -- 12.5.1 Formal Private Type Definition --
6801 ---------------------------------------------
6803 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
6804 -- [[abstract] tagged] [limited] private
6806 -- Note: TAGGED is not allowed in Ada 83 mode
6808 -- N_Formal_Private_Type_Definition
6809 -- Sloc points to PRIVATE
6810 -- Uninitialized_Variable (Node3-Sem)
6811 -- Abstract_Present (Flag4)
6812 -- Tagged_Present (Flag15)
6813 -- Limited_Present (Flag17)
6815 --------------------------------------------
6816 -- 12.5.1 Formal Derived Type Definition --
6817 --------------------------------------------
6819 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
6820 -- [abstract] [limited | synchronized]
6821 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6822 -- Note: this construct is not allowed in Ada 83 mode
6824 -- N_Formal_Derived_Type_Definition
6825 -- Sloc points to NEW
6826 -- Subtype_Mark (Node4)
6827 -- Private_Present (Flag15)
6828 -- Abstract_Present (Flag4)
6829 -- Limited_Present (Flag17)
6830 -- Synchronized_Present (Flag7)
6831 -- Interface_List (List2) (set to No_List if none)
6833 -----------------------------------------------
6834 -- 12.5.1 Formal Incomplete Type Definition --
6835 -----------------------------------------------
6837 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
6839 -- N_Formal_Incomplete_Type_Definition
6840 -- Sloc points to identifier of parent
6841 -- Tagged_Present (Flag15)
6843 ---------------------------------------------
6844 -- 12.5.2 Formal Discrete Type Definition --
6845 ---------------------------------------------
6847 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6849 -- N_Formal_Discrete_Type_Definition
6852 ---------------------------------------------------
6853 -- 12.5.2 Formal Signed Integer Type Definition --
6854 ---------------------------------------------------
6856 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6858 -- N_Formal_Signed_Integer_Type_Definition
6859 -- Sloc points to RANGE
6861 --------------------------------------------
6862 -- 12.5.2 Formal Modular Type Definition --
6863 --------------------------------------------
6865 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6867 -- N_Formal_Modular_Type_Definition
6868 -- Sloc points to MOD
6870 ----------------------------------------------
6871 -- 12.5.2 Formal Floating Point Definition --
6872 ----------------------------------------------
6874 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6876 -- N_Formal_Floating_Point_Definition
6877 -- Sloc points to DIGITS
6879 ----------------------------------------------------
6880 -- 12.5.2 Formal Ordinary Fixed Point Definition --
6881 ----------------------------------------------------
6883 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6885 -- N_Formal_Ordinary_Fixed_Point_Definition
6886 -- Sloc points to DELTA
6888 ---------------------------------------------------
6889 -- 12.5.2 Formal Decimal Fixed Point Definition --
6890 ---------------------------------------------------
6892 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6894 -- Note: formal decimal fixed point definition not allowed in Ada 83
6896 -- N_Formal_Decimal_Fixed_Point_Definition
6897 -- Sloc points to DELTA
6899 ------------------------------------------
6900 -- 12.5.3 Formal Array Type Definition --
6901 ------------------------------------------
6903 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6905 -------------------------------------------
6906 -- 12.5.4 Formal Access Type Definition --
6907 -------------------------------------------
6909 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6911 ----------------------------------------------
6912 -- 12.5.5 Formal Interface Type Definition --
6913 ----------------------------------------------
6915 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6917 -----------------------------------------
6918 -- 12.6 Formal Subprogram Declaration --
6919 -----------------------------------------
6921 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6922 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6923 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6925 --------------------------------------------------
6926 -- 12.6 Formal Concrete Subprogram Declaration --
6927 --------------------------------------------------
6929 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6930 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6931 -- [ASPECT_SPECIFICATIONS];
6933 -- N_Formal_Concrete_Subprogram_Declaration
6934 -- Sloc points to WITH
6935 -- Specification (Node1)
6936 -- Default_Name (Node2) (set to Empty if no subprogram default)
6937 -- Box_Present (Flag15)
6939 -- Note: if no subprogram default is present, then Name is set
6940 -- to Empty, and Box_Present is False.
6942 --------------------------------------------------
6943 -- 12.6 Formal Abstract Subprogram Declaration --
6944 --------------------------------------------------
6946 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6947 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6948 -- [ASPECT_SPECIFICATIONS];
6950 -- N_Formal_Abstract_Subprogram_Declaration
6951 -- Sloc points to WITH
6952 -- Specification (Node1)
6953 -- Default_Name (Node2) (set to Empty if no subprogram default)
6954 -- Box_Present (Flag15)
6956 -- Note: if no subprogram default is present, then Name is set
6957 -- to Empty, and Box_Present is False.
6959 ------------------------------
6960 -- 12.6 Subprogram Default --
6961 ------------------------------
6963 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6965 -- There is no separate node in the tree for a subprogram default.
6966 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6967 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6968 -- default name or box indication, as needed.
6970 ------------------------
6971 -- 12.6 Default Name --
6972 ------------------------
6974 -- DEFAULT_NAME ::= NAME
6976 --------------------------------------
6977 -- 12.7 Formal Package Declaration --
6978 --------------------------------------
6980 -- FORMAL_PACKAGE_DECLARATION ::=
6981 -- with package DEFINING_IDENTIFIER
6982 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
6983 -- [ASPECT_SPECIFICATIONS];
6985 -- Note: formal package declarations not allowed in Ada 83 mode
6987 -- N_Formal_Package_Declaration
6988 -- Sloc points to WITH
6989 -- Defining_Identifier (Node1)
6991 -- Generic_Associations (List3) (set to No_List if (<>) case or
6992 -- empty generic actual part)
6993 -- Box_Present (Flag15)
6994 -- Instance_Spec (Node5-Sem)
6995 -- ABE_Is_Certain (Flag18-Sem)
6997 --------------------------------------
6998 -- 12.7 Formal Package Actual Part --
6999 --------------------------------------
7001 -- FORMAL_PACKAGE_ACTUAL_PART ::=
7003 -- | [GENERIC_ACTUAL_PART]
7004 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
7006 -- FORMAL_PACKAGE_ASSOCIATION ::=
7007 -- GENERIC_ASSOCIATION
7008 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
7010 -- There is no explicit node in the tree for a formal package actual
7011 -- part. Instead the information appears in the parent node (i.e. the
7012 -- formal package declaration node itself).
7014 -- There is no explicit node for a formal package association. All of
7015 -- them are represented either by a generic association, possibly with
7016 -- Box_Present, or by an N_Others_Choice.
7018 ---------------------------------
7019 -- 13.1 Representation clause --
7020 ---------------------------------
7022 -- REPRESENTATION_CLAUSE ::=
7023 -- ATTRIBUTE_DEFINITION_CLAUSE
7024 -- | ENUMERATION_REPRESENTATION_CLAUSE
7025 -- | RECORD_REPRESENTATION_CLAUSE
7028 ----------------------
7029 -- 13.1 Local Name --
7030 ----------------------
7034 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
7035 -- | library_unit_NAME
7037 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
7038 -- as an attribute reference, which has essentially the same form.
7040 ---------------------------------------
7041 -- 13.3 Attribute definition clause --
7042 ---------------------------------------
7044 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
7045 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
7046 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
7048 -- In Ada 83, the expression must be a simple expression and the
7049 -- local name must be a direct name.
7051 -- Note: the only attribute definition clause that is processed by
7052 -- gigi is an address clause. For all other cases, the information
7053 -- is extracted by the front end and either results in setting entity
7054 -- information, e.g. Esize for the Size clause, or in appropriate
7055 -- expansion actions (e.g. in the case of Storage_Size).
7057 -- For an address clause, Gigi constructs the appropriate addressing
7058 -- code. It also ensures that no aliasing optimizations are made
7059 -- for the object for which the address clause appears.
7061 -- Note: for an address clause used to achieve an overlay:
7065 -- for B'Address use A'Address;
7067 -- the above rule means that Gigi will ensure that no optimizations
7068 -- will be made for B that would violate the implementation advice
7069 -- of RM 13.3(19). However, this advice applies only to B and not
7070 -- to A, which seems unfortunate. The GNAT front end will mark the
7071 -- object A as volatile to also prevent unwanted optimization
7072 -- assumptions based on no aliasing being made for B.
7074 -- N_Attribute_Definition_Clause
7075 -- Sloc points to FOR
7076 -- Name (Node2) the local name
7077 -- Chars (Name1) the identifier name from the attribute designator
7078 -- Expression (Node3) the expression or name
7079 -- Entity (Node4-Sem)
7080 -- Next_Rep_Item (Node5-Sem)
7081 -- From_At_Mod (Flag4-Sem)
7082 -- Check_Address_Alignment (Flag11-Sem)
7083 -- From_Aspect_Specification (Flag13-Sem)
7084 -- Is_Delayed_Aspect (Flag14-Sem)
7085 -- Address_Warning_Posted (Flag18-Sem)
7087 -- Note: if From_Aspect_Specification is set, then Sloc points to the
7088 -- aspect name, and Entity is resolved already to reference the entity
7089 -- to which the aspect applies.
7091 -----------------------------------
7092 -- 13.3.1 Aspect Specifications --
7093 -----------------------------------
7095 -- We modify the RM grammar here, the RM grammar is:
7097 -- ASPECT_SPECIFICATION ::=
7098 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7099 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
7101 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7103 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7105 -- That's inconvenient, since there is no non-terminal name for a single
7106 -- entry in the list of aspects. So we use this grammar instead:
7108 -- ASPECT_SPECIFICATIONS ::=
7109 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7111 -- ASPECT_SPECIFICATION =>
7112 -- ASPECT_MARK [=> ASPECT_DEFINITION]
7114 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7116 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7118 -- Note that for Annotate, the ASPECT_DEFINITION is a pure positional
7119 -- aggregate with the elements of the aggregate corresponding to the
7120 -- successive arguments of the corresponding pragma.
7122 -- See separate package Aspects for details on the incorporation of
7123 -- these nodes into the tree, and how aspect specifications for a given
7124 -- declaration node are associated with that node.
7126 -- N_Aspect_Specification
7127 -- Sloc points to aspect identifier
7128 -- Identifier (Node1) aspect identifier
7129 -- Aspect_Rep_Item (Node2-Sem)
7130 -- Expression (Node3) Aspect_Definition (set to Empty if none)
7131 -- Entity (Node4-Sem) entity to which the aspect applies
7132 -- Next_Rep_Item (Node5-Sem)
7133 -- Class_Present (Flag6) Set if 'Class present
7134 -- Is_Ignored (Flag9-Sem)
7135 -- Is_Checked (Flag11-Sem)
7136 -- Is_Delayed_Aspect (Flag14-Sem)
7137 -- Is_Disabled (Flag15-Sem)
7138 -- Is_Boolean_Aspect (Flag16-Sem)
7139 -- Split_PPC (Flag17) Set if split pre/post attribute
7141 -- Note: Aspect_Specification is an Ada 2012 feature
7143 -- Note: The Identifier serves to identify the aspect involved (it
7144 -- is the aspect whose name corresponds to the Chars field). This
7145 -- means that the other fields of this identifier are unused, and
7146 -- in particular we use the Entity field of this identifier to save
7147 -- a copy of the expression for visibility analysis, see spec of
7148 -- Sem_Ch13 for full details of this usage.
7150 -- In the case of aspects of the form xxx'Class, the aspect identifier
7151 -- is for xxx, and Class_Present is set to True.
7153 -- Note: When a Pre or Post aspect specification is processed, it is
7154 -- broken into AND THEN sections. The left most section has Split_PPC
7155 -- set to False, indicating that it is the original specification (e.g.
7156 -- for posting errors). For the other sections, Split_PPC is set True.
7158 ---------------------------------------------
7159 -- 13.4 Enumeration representation clause --
7160 ---------------------------------------------
7162 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7163 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7165 -- In Ada 83, the name must be a direct name
7167 -- N_Enumeration_Representation_Clause
7168 -- Sloc points to FOR
7169 -- Identifier (Node1) direct name
7170 -- Array_Aggregate (Node3)
7171 -- Next_Rep_Item (Node5-Sem)
7173 ---------------------------------
7174 -- 13.4 Enumeration aggregate --
7175 ---------------------------------
7177 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7179 ------------------------------------------
7180 -- 13.5.1 Record representation clause --
7181 ------------------------------------------
7183 -- RECORD_REPRESENTATION_CLAUSE ::=
7184 -- for first_subtype_LOCAL_NAME use
7185 -- record [MOD_CLAUSE]
7186 -- {COMPONENT_CLAUSE}
7189 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7190 -- replaced by a corresponding Alignment attribute definition clause).
7192 -- Note: Component_Clauses can include pragmas
7194 -- N_Record_Representation_Clause
7195 -- Sloc points to FOR
7196 -- Identifier (Node1) direct name
7197 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7198 -- Component_Clauses (List3)
7199 -- Next_Rep_Item (Node5-Sem)
7201 ------------------------------
7202 -- 13.5.1 Component clause --
7203 ------------------------------
7205 -- COMPONENT_CLAUSE ::=
7206 -- component_LOCAL_NAME at POSITION
7207 -- range FIRST_BIT .. LAST_BIT;
7209 -- N_Component_Clause
7210 -- Sloc points to AT
7211 -- Component_Name (Node1) points to Name or Attribute_Reference
7213 -- First_Bit (Node3)
7216 ----------------------
7217 -- 13.5.1 Position --
7218 ----------------------
7220 -- POSITION ::= static_EXPRESSION
7222 -----------------------
7223 -- 13.5.1 First_Bit --
7224 -----------------------
7226 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7228 ----------------------
7229 -- 13.5.1 Last_Bit --
7230 ----------------------
7232 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7234 --------------------------
7235 -- 13.8 Code statement --
7236 --------------------------
7238 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7240 -- Note: in GNAT, the qualified expression has the form
7242 -- Asm_Insn'(Asm (...));
7244 -- See package System.Machine_Code in file s-maccod.ads for details on
7245 -- the allowed parameters to Asm. There are two ways this node can
7246 -- arise, as a code statement, in which case the expression is the
7247 -- qualified expression, or as a result of the expansion of an intrinsic
7248 -- call to the Asm or Asm_Input procedure.
7251 -- Sloc points to first token of the expression
7252 -- Expression (Node3)
7254 -- Note: package Exp_Code contains an abstract functional interface
7255 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7257 ------------------------
7258 -- 13.12 Restriction --
7259 ------------------------
7262 -- restriction_IDENTIFIER
7263 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7265 -- There is no explicit node for restrictions. Instead the restriction
7266 -- appears in normal pragma syntax as a pragma argument association,
7267 -- which has the same syntactic form.
7269 --------------------------
7270 -- B.2 Shift Operators --
7271 --------------------------
7273 -- Calls to the intrinsic shift functions are converted to one of
7274 -- the following shift nodes, which have the form of normal binary
7275 -- operator names. Note that for a given shift operation, one node
7276 -- covers all possible types, as for normal operators.
7278 -- Note: it is perfectly permissible for the expander to generate
7279 -- shift operation nodes directly, in which case they will be analyzed
7280 -- and parsed in the usual manner.
7282 -- Sprint syntax: shift-function-name!(expr, count)
7284 -- Note: the Left_Opnd field holds the first argument (the value to
7285 -- be shifted). The Right_Opnd field holds the second argument (the
7286 -- shift count). The Chars field is the name of the intrinsic function.
7289 -- Sloc points to the function name
7290 -- plus fields for binary operator
7291 -- plus fields for expression
7292 -- Shift_Count_OK (Flag4-Sem)
7294 -- N_Op_Rotate_Right
7295 -- Sloc points to the function name
7296 -- plus fields for binary operator
7297 -- plus fields for expression
7298 -- Shift_Count_OK (Flag4-Sem)
7301 -- Sloc points to the function name
7302 -- plus fields for binary operator
7303 -- plus fields for expression
7304 -- Shift_Count_OK (Flag4-Sem)
7306 -- N_Op_Shift_Right_Arithmetic
7307 -- Sloc points to the function name
7308 -- plus fields for binary operator
7309 -- plus fields for expression
7310 -- Shift_Count_OK (Flag4-Sem)
7313 -- Sloc points to the function name
7314 -- plus fields for binary operator
7315 -- plus fields for expression
7316 -- Shift_Count_OK (Flag4-Sem)
7318 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7319 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7321 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7322 -- always less than the word size if Modify_Tree_For_C mode is set.
7324 --------------------------
7325 -- Obsolescent Features --
7326 --------------------------
7328 -- The syntax descriptions and tree nodes for obsolescent features are
7329 -- grouped together, corresponding to their location in appendix I in
7330 -- the RM. However, parsing and semantic analysis for these constructs
7331 -- is located in an appropriate chapter (see individual notes).
7333 ---------------------------
7334 -- J.3 Delta Constraint --
7335 ---------------------------
7337 -- Note: the parse routine for this construct is located in section
7338 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7339 -- where delta constraint logically belongs.
7341 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7343 -- N_Delta_Constraint
7344 -- Sloc points to DELTA
7345 -- Delta_Expression (Node3)
7346 -- Range_Constraint (Node4) (set to Empty if not present)
7348 --------------------
7350 --------------------
7352 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7354 -- Note: the parse routine for this construct is located in Par-Ch13,
7355 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7356 -- belongs if it were not obsolescent.
7358 -- Note: in Ada 83 the expression must be a simple expression
7360 -- Gigi restriction: This node never appears, it is rewritten as an
7361 -- address attribute definition clause.
7364 -- Sloc points to FOR
7365 -- Identifier (Node1)
7366 -- Expression (Node3)
7368 ---------------------
7369 -- J.8 Mod clause --
7370 ---------------------
7372 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7374 -- Note: the parse routine for this construct is located in Par-Ch13,
7375 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7376 -- belongs if it were not obsolescent.
7378 -- Note: in Ada 83, the expression must be a simple expression
7380 -- Gigi restriction: this node never appears. It is replaced
7381 -- by a corresponding Alignment attribute definition clause.
7383 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7384 -- its name has "clause" in it. This is rather strange, but is quite
7385 -- definitely specified. The pragmas before are collected in the
7386 -- Pragmas_Before field of the mod clause node itself, and pragmas
7387 -- after are simply swallowed up in the list of component clauses.
7390 -- Sloc points to AT
7391 -- Expression (Node3)
7392 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7394 --------------------
7395 -- Semantic Nodes --
7396 --------------------
7398 -- These semantic nodes are used to hold additional semantic information.
7399 -- They are inserted into the tree as a result of semantic processing.
7400 -- Although there are no legitimate source syntax constructions that
7401 -- correspond directly to these nodes, we need a source syntax for the
7402 -- reconstructed tree printed by Sprint, and the node descriptions here
7403 -- show this syntax.
7405 ------------------------
7406 -- Compound Statement --
7407 ------------------------
7409 -- This node is created by the analyzer/expander to handle some
7410 -- expansion cases where a sequence of actions needs to be captured
7411 -- within a single node (which acts as a container and allows the
7412 -- entire list of actions to be moved around as a whole) appearing
7413 -- in a sequence of statements.
7415 -- This is the statement counterpart to the expression node
7416 -- N_Expression_With_Actions.
7418 -- The required semantics is that the set of actions is executed in
7419 -- the order in which it appears, as though they appeared by themselves
7420 -- in the enclosing list of declarations of statements. Unlike what
7421 -- happens when using an N_Block_Statement, no new scope is introduced.
7423 -- Note: for the time being, this is used only as a transient
7424 -- representation during expansion, and all compound statement nodes
7425 -- must be exploded back to their constituent statements before handing
7426 -- the tree to the back end.
7428 -- Sprint syntax: do
7435 -- N_Compound_Statement
7442 -- This node is used to hold the various parts of an entry, subprogram
7443 -- [body] or package [body] contract, in particular:
7444 -- Abstract states declared by a package declaration
7445 -- Contract cases that apply to a subprogram
7446 -- Dependency relations of inputs and output of a subprogram
7447 -- Global annotations classifying data as input or output
7448 -- Initialization sequences for a package declaration
7449 -- Pre- and postconditions that apply to a subprogram
7451 -- The node appears in an entry and [generic] subprogram [body] entity.
7453 -- Sprint syntax: <none> as the node should not appear in the tree, but
7454 -- only attached to an entry or [generic] subprogram
7458 -- Sloc points to the subprogram's name
7459 -- Pre_Post_Conditions (Node1) (set to Empty if none)
7460 -- Contract_Test_Cases (Node2) (set to Empty if none)
7461 -- Classifications (Node3) (set to Empty if none)
7463 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7464 -- to pre- and postconditions associated with an entry or a subprogram
7465 -- [body or stub]. The pragmas can either come from source or be the
7466 -- byproduct of aspect expansion. Currently the following pragmas appear
7473 -- The ordering in the list is in LIFO fashion.
7475 -- Note that there might be multiple preconditions or postconditions
7476 -- in this list, either because they come from separate pragmas in the
7477 -- source, or because a Pre (resp. Post) aspect specification has been
7478 -- broken into AND THEN sections. See Split_PPC for details.
7480 -- Contract_Test_Cases contains a collection of pragmas that correspond
7481 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7482 -- list is in LIFO fashion.
7484 -- Classifications contains pragmas that either declare, categorize or
7485 -- establish dependencies between subprogram or package inputs and
7486 -- outputs. Currently the following pragmas appear in this list:
7494 -- Initial_Condition
7500 -- The ordering is in LIFO fashion.
7506 -- The N_Expanded_Name node is used to represent a selected component
7507 -- name that has been resolved to an expanded name. The semantic phase
7508 -- replaces N_Selected_Component nodes that represent names by the use
7509 -- of this node, leaving the N_Selected_Component node used only when
7510 -- the prefix is a record or protected type.
7512 -- The fields of the N_Expanded_Name node are layed out identically
7513 -- to those of the N_Selected_Component node, allowing conversion of
7514 -- an expanded name node to a selected component node to be done
7515 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7517 -- There is no special sprint syntax for an expanded name
7520 -- Sloc points to the period
7521 -- Chars (Name1) copy of Chars field of selector name
7523 -- Selector_Name (Node2)
7524 -- Entity (Node4-Sem)
7525 -- Associated_Node (Node4-Sem)
7526 -- Has_Private_View (Flag11-Sem) set in generic units.
7527 -- Redundant_Use (Flag13-Sem)
7528 -- Atomic_Sync_Required (Flag14-Sem)
7529 -- plus fields for expression
7531 -----------------------------
7532 -- Expression With Actions --
7533 -----------------------------
7535 -- This node is created by the analyzer/expander to handle some
7536 -- expansion cases, notably short circuit forms where there are
7537 -- actions associated with the right-hand side operand.
7539 -- The N_Expression_With_Actions node represents an expression with
7540 -- an associated set of actions (which are executable statements and
7541 -- declarations, as might occur in a handled statement sequence).
7543 -- The required semantics is that the set of actions is executed in
7544 -- the order in which it appears just before the expression is
7545 -- evaluated (and these actions must only be executed if the value
7546 -- of the expression is evaluated). The node is considered to be
7547 -- a subexpression, whose value is the value of the Expression after
7548 -- executing all the actions.
7550 -- If the actions contain declarations, then these declarations may
7551 -- be referenced within the expression. However note that there is
7552 -- no proper scope associated with the expression-with-action, so the
7553 -- back-end will elaborate them in the context of the enclosing scope.
7555 -- Sprint syntax: do
7560 -- in expression end
7562 -- N_Expression_With_Actions
7564 -- Expression (Node3)
7565 -- plus fields for expression
7567 -- Note: In the final generated tree presented to the code generator,
7568 -- the actions list is always non-null, since there is no point in this
7569 -- node if the actions are Empty. During semantic analysis there are
7570 -- cases where it is convenient to temporarily generate an empty actions
7571 -- list. This arises in cases where we create such an empty actions
7572 -- list, and it may or may not end up being a place where additional
7573 -- actions are inserted. The expander removes such empty cases after
7574 -- the expression of the node is fully analyzed and expanded, at which
7575 -- point it is safe to remove it, since no more actions can be inserted.
7577 -- Note: In Modify_Tree_For_C, we never generate any declarations in
7578 -- the action list, which can contain only non-declarative statements.
7580 --------------------
7581 -- Free Statement --
7582 --------------------
7584 -- The N_Free_Statement node is generated as a result of a call to an
7585 -- instantiation of Unchecked_Deallocation. The instantiation of this
7586 -- generic is handled specially and generates this node directly.
7588 -- Sprint syntax: free expression
7591 -- Sloc is copied from the unchecked deallocation call
7592 -- Expression (Node3) argument to unchecked deallocation call
7593 -- Storage_Pool (Node1-Sem)
7594 -- Procedure_To_Call (Node2-Sem)
7595 -- Actual_Designated_Subtype (Node4-Sem)
7597 -- Note: in the case where a debug source file is generated, the Sloc
7598 -- for this node points to the FREE keyword in the Sprint file output.
7604 -- This node marks the point in a declarative part at which an entity
7605 -- declared therein becomes frozen. The expander places initialization
7606 -- procedures for types at those points. Gigi uses the freezing point
7607 -- to elaborate entities that may depend on previous private types.
7609 -- See the section in Einfo "Delayed Freezing and Elaboration" for
7610 -- a full description of the use of this node.
7612 -- The Entity field points back to the entity for the type (whose
7613 -- Freeze_Node field points back to this freeze node).
7615 -- The Actions field contains a list of declarations and statements
7616 -- generated by the expander which are associated with the freeze
7617 -- node, and are elaborated as though the freeze node were replaced
7618 -- by this sequence of actions.
7620 -- Note: the Sloc field in the freeze node references a construct
7621 -- associated with the freezing point. This is used for posting
7622 -- messages in some error/warning situations, e.g. the case where
7623 -- a primitive operation of a tagged type is declared too late.
7625 -- Sprint syntax: freeze entity-name [
7630 -- Sloc points near freeze point (see above special note)
7631 -- Entity (Node4-Sem)
7632 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7633 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7634 -- Actions (List1) (set to No_List if no freeze actions)
7635 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7637 -- The Actions field holds actions associated with the freeze. These
7638 -- actions are elaborated at the point where the type is frozen.
7640 -- Note: in the case where a debug source file is generated, the Sloc
7641 -- for this node points to the FREEZE keyword in the Sprint file output.
7643 ---------------------------
7644 -- Freeze Generic Entity --
7645 ---------------------------
7647 -- The freeze point of an entity indicates the point at which the
7648 -- information needed to generate code for the entity is complete.
7649 -- The freeze node for an entity triggers expander activities, such as
7650 -- build initialization procedures, and backend activities, such as
7651 -- completing the elaboration of packages.
7653 -- For entities declared within a generic unit, for which no code is
7654 -- generated, the freeze point is not equally meaningful. However, in
7655 -- Ada 2012 several semantic checks on declarations must be delayed to
7656 -- the freeze point, and we need to include such a mark in the tree to
7657 -- trigger these checks. The Freeze_Generic_Entity node plays no other
7658 -- role, and is ignored by the expander and the back-end.
7660 -- Sprint syntax: freeze_generic entity-name
7662 -- N_Freeze_Generic_Entity
7663 -- Sloc points near freeze point
7664 -- Entity (Node4-Sem)
7666 --------------------------------
7667 -- Implicit Label Declaration --
7668 --------------------------------
7670 -- An implicit label declaration is created for every occurrence of a
7671 -- label on a statement or a label on a block or loop. It is chained
7672 -- in the declarations of the innermost enclosing block as specified
7673 -- in RM section 5.1 (3).
7675 -- The Defining_Identifier is the actual identifier for the statement
7676 -- identifier. Note that the occurrence of the label is a reference, NOT
7677 -- the defining occurrence. The defining occurrence occurs at the head
7678 -- of the innermost enclosing block, and is represented by this node.
7680 -- Note: from the grammar, this might better be called an implicit
7681 -- statement identifier declaration, but the term we choose seems
7682 -- friendlier, since at least informally statement identifiers are
7683 -- called labels in both cases (i.e. when used in labels, and when
7684 -- used as the identifiers of blocks and loops).
7686 -- Note: although this is logically a semantic node, since it does not
7687 -- correspond directly to a source syntax construction, these nodes are
7688 -- actually created by the parser in a post pass done just after parsing
7689 -- is complete, before semantic analysis is started (see Par.Labl).
7691 -- Sprint syntax: labelname : label;
7693 -- N_Implicit_Label_Declaration
7694 -- Sloc points to the << token for a statement identifier, or to the
7695 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
7696 -- Defining_Identifier (Node1)
7697 -- Label_Construct (Node2-Sem)
7699 -- Note: in the case where a debug source file is generated, the Sloc
7700 -- for this node points to the label name in the generated declaration.
7702 ---------------------
7703 -- Itype Reference --
7704 ---------------------
7706 -- This node is used to create a reference to an Itype. The only purpose
7707 -- is to make sure the Itype is defined if this is the first reference.
7709 -- A typical use of this node is when an Itype is to be referenced in
7710 -- two branches of an IF statement. In this case it is important that
7711 -- the first use of the Itype not be inside the conditional, since then
7712 -- it might not be defined if the other branch of the IF is taken, in
7713 -- the case where the definition generates elaboration code.
7715 -- The Itype field points to the referenced Itype
7717 -- Sprint syntax: reference itype-name
7719 -- N_Itype_Reference
7720 -- Sloc points to the node generating the reference
7721 -- Itype (Node1-Sem)
7723 -- Note: in the case where a debug source file is generated, the Sloc
7724 -- for this node points to the REFERENCE keyword in the file output.
7726 ---------------------
7727 -- Raise xxx Error --
7728 ---------------------
7730 -- One of these nodes is created during semantic analysis to replace
7731 -- a node for an expression that is determined to definitely raise
7732 -- the corresponding exception.
7734 -- The N_Raise_xxx_Error node may also stand alone in place
7735 -- of a declaration or statement, in which case it simply causes
7736 -- the exception to be raised (i.e. it is equivalent to a raise
7737 -- statement that raises the corresponding exception). This use
7738 -- is distinguished by the fact that the Etype in this case is
7739 -- Standard_Void_Type; in the subexpression case, the Etype is the
7740 -- same as the type of the subexpression which it replaces.
7742 -- If Condition is empty, then the raise is unconditional. If the
7743 -- Condition field is non-empty, it is a boolean expression which
7744 -- is first evaluated, and the exception is raised only if the
7745 -- value of the expression is True. In the unconditional case, the
7746 -- creation of this node is usually accompanied by a warning message
7747 -- error. The creation of this node will usually be accompanied by a
7748 -- message (unless it appears within the right operand of a short
7749 -- circuit form whose left argument is static and decisively
7750 -- eliminates elaboration of the raise operation. The condition field
7751 -- can ONLY be present when the node is used as a statement form, it
7752 -- may NOT be present in the case where the node appears within an
7755 -- The exception is generated with a message that contains the
7756 -- file name and line number, and then appended text. The Reason
7757 -- code shows the text to be added. The Reason code is an element
7758 -- of the type Types.RT_Exception_Code, and indicates both the
7759 -- message to be added, and the exception to be raised (which must
7760 -- match the node type). The value is stored by storing a Uint which
7761 -- is the Pos value of the enumeration element in this type.
7763 -- Gigi restriction: This expander ensures that the type of the
7764 -- Condition field is always Standard.Boolean, even if the type
7765 -- in the source is some non-standard boolean type.
7767 -- Sprint syntax: [xxx_error "msg"]
7768 -- or: [xxx_error when condition "msg"]
7770 -- N_Raise_Constraint_Error
7771 -- Sloc references related construct
7772 -- Condition (Node1) (set to Empty if no condition)
7774 -- plus fields for expression
7776 -- N_Raise_Program_Error
7777 -- Sloc references related construct
7778 -- Condition (Node1) (set to Empty if no condition)
7780 -- plus fields for expression
7782 -- N_Raise_Storage_Error
7783 -- Sloc references related construct
7784 -- Condition (Node1) (set to Empty if no condition)
7786 -- plus fields for expression
7788 -- Note: Sloc is copied from the expression generating the exception.
7789 -- In the case where a debug source file is generated, the Sloc for
7790 -- this node points to the left bracket in the Sprint file output.
7792 -- Note: the back end may be required to translate these nodes into
7793 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7795 ---------------------------------------------
7796 -- Optimization of Exception Raise to Goto --
7797 ---------------------------------------------
7799 -- In some cases, the front end will determine that any exception raised
7800 -- by the back end for a certain exception should be transformed into a
7803 -- There are three kinds of exceptions raised by the back end (note that
7804 -- for this purpose we consider gigi to be part of the back end in the
7807 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
7808 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
7809 -- 3. Other cases not specifically marked by the front end
7811 -- Normally all such exceptions are translated into calls to the proper
7812 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
7813 -- and the exception message.
7815 -- The front end may determine that for a particular sequence of code,
7816 -- exceptions in any of these three categories for a particular builtin
7817 -- exception should result in a goto, rather than a call to Rcheck_xx.
7818 -- The exact sequence to be generated is:
7820 -- Local_Raise (exception'Identity);
7823 -- The front end marks such a sequence of code by bracketing it with
7824 -- push and pop nodes:
7826 -- N_Push_xxx_Label (referencing the label)
7828 -- (code where transformation is expected for exception xxx)
7832 -- The use of push/pop reflects the fact that such regions can properly
7833 -- nest, and one special case is a subregion in which no transformation
7834 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7835 -- Exception_Label field is Empty.
7837 -- N_Push_Constraint_Error_Label
7838 -- Sloc references first statement in region covered
7839 -- Exception_Label (Node5-Sem)
7841 -- N_Push_Program_Error_Label
7842 -- Sloc references first statement in region covered
7843 -- Exception_Label (Node5-Sem)
7845 -- N_Push_Storage_Error_Label
7846 -- Sloc references first statement in region covered
7847 -- Exception_Label (Node5-Sem)
7849 -- N_Pop_Constraint_Error_Label
7850 -- Sloc references last statement in region covered
7852 -- N_Pop_Program_Error_Label
7853 -- Sloc references last statement in region covered
7855 -- N_Pop_Storage_Error_Label
7856 -- Sloc references last statement in region covered
7862 -- For a number of purposes, we need to construct references to objects.
7863 -- These references are subsequently treated as normal access values.
7864 -- An example is the construction of the parameter block passed to a
7865 -- task entry. The N_Reference node is provided for this purpose. It is
7866 -- similar in effect to the use of the Unrestricted_Access attribute,
7867 -- and like Unrestricted_Access can be applied to objects which would
7868 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
7869 -- objects which are not aliased, and slices). In addition it can be
7870 -- applied to composite type values as well as objects, including string
7871 -- values and aggregates.
7873 -- Note: we use the Prefix field for this expression so that the
7874 -- resulting node can be treated using common code with the attribute
7875 -- nodes for the 'Access and related attributes. Logically it would make
7876 -- more sense to call it an Expression field, but then we would have to
7877 -- special case the treatment of the N_Reference node.
7879 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
7880 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
7881 -- a temporary initialized to a N_Reference node in order to eliminate
7882 -- superfluous access checks.
7884 -- Sprint syntax: prefix'reference
7887 -- Sloc is copied from the expression
7889 -- plus fields for expression
7891 -- Note: in the case where a debug source file is generated, the Sloc
7892 -- for this node points to the quote in the Sprint file output.
7898 -- SCIL nodes are special nodes added to the tree when the CodePeer mode
7899 -- is active. They are only generated if SCIL generation is enabled.
7900 -- A standard tree-walk will not encounter these nodes even if they
7901 -- are present; these nodes are only accessible via the function
7902 -- SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
7905 -- Sprint syntax: [ <node kind> ]
7906 -- No semantic field values are displayed.
7908 -- N_SCIL_Dispatch_Table_Tag_Init
7909 -- Sloc references a node for a tag initialization
7910 -- SCIL_Entity (Node4-Sem)
7912 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
7913 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
7914 -- the declaration of the dispatch table for a tagged type.
7916 -- N_SCIL_Dispatching_Call
7917 -- Sloc references the node of a dispatching call
7918 -- SCIL_Target_Prim (Node2-Sem)
7919 -- SCIL_Entity (Node4-Sem)
7920 -- SCIL_Controlling_Tag (Node5-Sem)
7922 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
7923 -- with the N_Procedure_Call or N_Function_Call node (or a rewriting
7924 -- thereof) corresponding to a dispatching call.
7926 -- N_SCIL_Membership_Test
7927 -- Sloc references the node of a membership test
7928 -- SCIL_Tag_Value (Node5-Sem)
7929 -- SCIL_Entity (Node4-Sem)
7931 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
7932 -- with the N_In node (or a rewriting thereof) corresponding to a
7933 -- classwide membership test.
7935 --------------------------
7936 -- Unchecked Expression --
7937 --------------------------
7939 -- An unchecked expression is one that must be analyzed and resolved
7940 -- with all checks off, regardless of the current setting of scope
7943 -- Sprint syntax: `(expression)
7945 -- Note: this node is always removed from the tree (and replaced by
7946 -- its constituent expression) on completion of analysis, so it only
7947 -- appears in intermediate trees, and will never be seen by Gigi.
7949 -- N_Unchecked_Expression
7950 -- Sloc is a copy of the Sloc of the expression
7951 -- Expression (Node3)
7952 -- plus fields for expression
7954 -- Note: in the case where a debug source file is generated, the Sloc
7955 -- for this node points to the back quote in the Sprint file output.
7957 -------------------------------
7958 -- Unchecked Type Conversion --
7959 -------------------------------
7961 -- An unchecked type conversion node represents the semantic action
7962 -- corresponding to a call to an instantiation of Unchecked_Conversion.
7963 -- It is generated as a result of actual use of Unchecked_Conversion
7964 -- and also the expander generates unchecked type conversion nodes
7965 -- directly for expansion of complex semantic actions.
7967 -- Note: an unchecked type conversion is a variable as far as the
7968 -- semantics are concerned, which is convenient for the expander.
7969 -- This does not change what Ada source programs are legal, since
7970 -- clearly a function call to an instantiation of Unchecked_Conversion
7971 -- is not a variable in any case.
7973 -- Sprint syntax: subtype-mark!(expression)
7975 -- N_Unchecked_Type_Conversion
7976 -- Sloc points to related node in source
7977 -- Subtype_Mark (Node4)
7978 -- Expression (Node3)
7979 -- Kill_Range_Check (Flag11-Sem)
7980 -- No_Truncation (Flag17-Sem)
7981 -- plus fields for expression
7983 -- Note: in the case where a debug source file is generated, the Sloc
7984 -- for this node points to the exclamation in the Sprint file output.
7986 -----------------------------------
7987 -- Validate_Unchecked_Conversion --
7988 -----------------------------------
7990 -- The front end does most of the validation of unchecked conversion,
7991 -- including checking sizes (this is done after the back end is called
7992 -- to take advantage of back-annotation of calculated sizes).
7994 -- The front end also deals with specific cases that are not allowed
7995 -- e.g. involving unconstrained array types.
7997 -- For the case of the standard gigi backend, this means that all
7998 -- checks are done in the front end.
8000 -- However, in the case of specialized back-ends, notably the JVM
8001 -- backend for JGNAT, additional requirements and restrictions apply
8002 -- to unchecked conversion, and these are most conveniently performed
8003 -- in the specialized back-end.
8005 -- To accommodate this requirement, for such back ends, the following
8006 -- special node is generated recording an unchecked conversion that
8007 -- needs to be validated. The back end should post an appropriate
8008 -- error message if the unchecked conversion is invalid or warrants
8009 -- a special warning message.
8011 -- Source_Type and Target_Type point to the entities for the two
8012 -- types involved in the unchecked conversion instantiation that
8013 -- is to be validated.
8015 -- Sprint syntax: validate Unchecked_Conversion (source, target);
8017 -- N_Validate_Unchecked_Conversion
8018 -- Sloc points to instantiation (location for warning message)
8019 -- Source_Type (Node1-Sem)
8020 -- Target_Type (Node2-Sem)
8022 -- Note: in the case where a debug source file is generated, the Sloc
8023 -- for this node points to the VALIDATE keyword in the file output.
8029 -- Used as the contents of the Nkind field of the dummy Empty node
8030 -- and in some other situations to indicate an uninitialized value.
8033 -- Chars (Name1) is set to No_Name
8039 -- Used as the contents of the Nkind field of the dummy Error node.
8040 -- Has an Etype field, which gets set to Any_Type later on, to help
8041 -- error recovery (Error_Posted is also set in the Error node).
8044 -- Chars (Name1) is set to Error_Name
8045 -- Etype (Node5-Sem)
8047 --------------------------
8048 -- Node Type Definition --
8049 --------------------------
8051 -- The following is the definition of the Node_Kind type. As previously
8052 -- discussed, this is separated off to allow rearrangement of the order to
8053 -- facilitate definition of subtype ranges. The comments show the subtype
8054 -- classes which apply to each set of node kinds. The first entry in the
8055 -- comment characterizes the following list of nodes.
8060 -- N_Representation_Clause
8064 N_Enumeration_Representation_Clause
,
8066 N_Record_Representation_Clause
,
8068 -- N_Representation_Clause, N_Has_Chars
8070 N_Attribute_Definition_Clause
,
8075 N_Pragma_Argument_Association
,
8077 -- N_Has_Etype, N_Has_Chars
8079 -- Note: of course N_Error does not really have Etype or Chars fields,
8080 -- and any attempt to access these fields in N_Error will cause an
8081 -- error, but historically this always has been positioned so that an
8082 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8083 -- Most likely this makes coding easier somewhere but still seems
8084 -- undesirable. To be investigated some time ???
8088 -- N_Entity, N_Has_Etype, N_Has_Chars
8090 N_Defining_Character_Literal
,
8091 N_Defining_Identifier
,
8092 N_Defining_Operator_Symbol
,
8094 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8098 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8099 -- N_Has_Chars, N_Has_Entity
8104 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8105 -- N_Has_Chars, N_Has_Entity
8107 N_Character_Literal
,
8109 -- N_Binary_Op, N_Op, N_Subexpr,
8110 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
8117 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
8118 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8125 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8126 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8130 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8131 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8140 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8141 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8146 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8147 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
8153 N_Op_Shift_Right_Arithmetic
,
8155 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8156 -- N_Has_Chars, N_Has_Entity
8163 -- N_Subexpr, N_Has_Etype, N_Has_Entity
8165 N_Attribute_Reference
,
8167 -- N_Subexpr, N_Has_Etype, N_Membership_Test
8172 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8177 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8180 N_Procedure_Call_Statement
,
8182 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8184 N_Raise_Constraint_Error
,
8185 N_Raise_Program_Error
,
8186 N_Raise_Storage_Error
,
8188 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8194 -- N_Subexpr, N_Has_Etype
8196 N_Explicit_Dereference
,
8197 N_Expression_With_Actions
,
8199 N_Indexed_Component
,
8201 N_Qualified_Expression
,
8202 N_Quantified_Expression
,
8206 N_Extension_Aggregate
,
8210 N_Selected_Component
,
8213 N_Unchecked_Expression
,
8214 N_Unchecked_Type_Conversion
,
8218 N_Subtype_Indication
,
8222 N_Component_Declaration
,
8223 N_Entry_Declaration
,
8224 N_Expression_Function
,
8225 N_Formal_Object_Declaration
,
8226 N_Formal_Type_Declaration
,
8227 N_Full_Type_Declaration
,
8228 N_Incomplete_Type_Declaration
,
8229 N_Iterator_Specification
,
8230 N_Loop_Parameter_Specification
,
8231 N_Object_Declaration
,
8232 N_Protected_Type_Declaration
,
8233 N_Private_Extension_Declaration
,
8234 N_Private_Type_Declaration
,
8235 N_Subtype_Declaration
,
8237 -- N_Subprogram_Specification, N_Declaration
8239 N_Function_Specification
,
8240 N_Procedure_Specification
,
8242 -- N_Access_To_Subprogram_Definition
8244 N_Access_Function_Definition
,
8245 N_Access_Procedure_Definition
,
8247 -- N_Later_Decl_Item
8249 N_Task_Type_Declaration
,
8251 -- N_Body_Stub, N_Later_Decl_Item
8253 N_Package_Body_Stub
,
8254 N_Protected_Body_Stub
,
8255 N_Subprogram_Body_Stub
,
8258 -- N_Generic_Instantiation, N_Later_Decl_Item
8259 -- N_Subprogram_Instantiation
8261 N_Function_Instantiation
,
8262 N_Procedure_Instantiation
,
8264 -- N_Generic_Instantiation, N_Later_Decl_Item
8266 N_Package_Instantiation
,
8268 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8273 -- N_Later_Decl_Item, N_Proper_Body
8278 -- N_Later_Decl_Item
8280 N_Implicit_Label_Declaration
,
8281 N_Package_Declaration
,
8282 N_Single_Task_Declaration
,
8283 N_Subprogram_Declaration
,
8284 N_Use_Package_Clause
,
8286 -- N_Generic_Declaration, N_Later_Decl_Item
8288 N_Generic_Package_Declaration
,
8289 N_Generic_Subprogram_Declaration
,
8291 -- N_Array_Type_Definition
8293 N_Constrained_Array_Definition
,
8294 N_Unconstrained_Array_Definition
,
8296 -- N_Renaming_Declaration
8298 N_Exception_Renaming_Declaration
,
8299 N_Object_Renaming_Declaration
,
8300 N_Package_Renaming_Declaration
,
8301 N_Subprogram_Renaming_Declaration
,
8303 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8305 N_Generic_Function_Renaming_Declaration
,
8306 N_Generic_Package_Renaming_Declaration
,
8307 N_Generic_Procedure_Renaming_Declaration
,
8309 -- N_Statement_Other_Than_Procedure_Call
8313 N_Assignment_Statement
,
8314 N_Asynchronous_Select
,
8318 N_Compound_Statement
,
8319 N_Conditional_Entry_Call
,
8321 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8323 N_Delay_Relative_Statement
,
8324 N_Delay_Until_Statement
,
8326 -- N_Statement_Other_Than_Procedure_Call
8328 N_Entry_Call_Statement
,
8334 N_Requeue_Statement
,
8335 N_Simple_Return_Statement
,
8336 N_Extended_Return_Statement
,
8340 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8347 N_Accept_Alternative
,
8348 N_Delay_Alternative
,
8350 N_Entry_Body_Formal_Part
,
8352 N_Terminate_Alternative
,
8354 -- N_Formal_Subprogram_Declaration
8356 N_Formal_Abstract_Subprogram_Declaration
,
8357 N_Formal_Concrete_Subprogram_Declaration
,
8359 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8361 N_Push_Constraint_Error_Label
,
8362 N_Push_Program_Error_Label
,
8363 N_Push_Storage_Error_Label
,
8365 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8367 N_Pop_Constraint_Error_Label
,
8368 N_Pop_Program_Error_Label
,
8369 N_Pop_Storage_Error_Label
,
8373 N_SCIL_Dispatch_Table_Tag_Init
,
8374 N_SCIL_Dispatching_Call
,
8375 N_SCIL_Membership_Test
,
8377 -- Other nodes (not part of any subtype class)
8380 N_Abstract_Subprogram_Declaration
,
8381 N_Access_Definition
,
8382 N_Access_To_Object_Definition
,
8383 N_Aspect_Specification
,
8384 N_Case_Expression_Alternative
,
8385 N_Case_Statement_Alternative
,
8387 N_Compilation_Unit_Aux
,
8388 N_Component_Association
,
8389 N_Component_Definition
,
8392 N_Derived_Type_Definition
,
8393 N_Decimal_Fixed_Point_Definition
,
8394 N_Defining_Program_Unit_Name
,
8397 N_Digits_Constraint
,
8398 N_Discriminant_Association
,
8399 N_Discriminant_Specification
,
8400 N_Enumeration_Type_Definition
,
8402 N_Entry_Call_Alternative
,
8403 N_Entry_Index_Specification
,
8404 N_Exception_Declaration
,
8405 N_Exception_Handler
,
8406 N_Floating_Point_Definition
,
8407 N_Formal_Decimal_Fixed_Point_Definition
,
8408 N_Formal_Derived_Type_Definition
,
8409 N_Formal_Discrete_Type_Definition
,
8410 N_Formal_Floating_Point_Definition
,
8411 N_Formal_Modular_Type_Definition
,
8412 N_Formal_Ordinary_Fixed_Point_Definition
,
8413 N_Formal_Package_Declaration
,
8414 N_Formal_Private_Type_Definition
,
8415 N_Formal_Incomplete_Type_Definition
,
8416 N_Formal_Signed_Integer_Type_Definition
,
8418 N_Freeze_Generic_Entity
,
8419 N_Generic_Association
,
8420 N_Handled_Sequence_Of_Statements
,
8421 N_Index_Or_Discriminant_Constraint
,
8424 N_Modular_Type_Definition
,
8425 N_Number_Declaration
,
8426 N_Ordinary_Fixed_Point_Definition
,
8428 N_Package_Specification
,
8429 N_Parameter_Association
,
8430 N_Parameter_Specification
,
8432 N_Protected_Definition
,
8434 N_Real_Range_Specification
,
8435 N_Record_Definition
,
8436 N_Signed_Integer_Type_Definition
,
8437 N_Single_Protected_Declaration
,
8440 N_Triggering_Alternative
,
8442 N_Validate_Unchecked_Conversion
,
8448 for Node_Kind
'Size use 8;
8449 -- The data structures in Atree assume this
8451 ----------------------------
8452 -- Node Class Definitions --
8453 ----------------------------
8455 subtype N_Access_To_Subprogram_Definition
is Node_Kind
range
8456 N_Access_Function_Definition
..
8457 N_Access_Procedure_Definition
;
8459 subtype N_Array_Type_Definition
is Node_Kind
range
8460 N_Constrained_Array_Definition
..
8461 N_Unconstrained_Array_Definition
;
8463 subtype N_Binary_Op
is Node_Kind
range
8465 N_Op_Shift_Right_Arithmetic
;
8467 subtype N_Body_Stub
is Node_Kind
range
8468 N_Package_Body_Stub
..
8471 subtype N_Declaration
is Node_Kind
range
8472 N_Component_Declaration
..
8473 N_Procedure_Specification
;
8474 -- Note: this includes all constructs normally thought of as declarations
8475 -- except those which are separately grouped as later declarations.
8477 subtype N_Delay_Statement
is Node_Kind
range
8478 N_Delay_Relative_Statement
..
8479 N_Delay_Until_Statement
;
8481 subtype N_Direct_Name
is Node_Kind
range
8483 N_Character_Literal
;
8485 subtype N_Entity
is Node_Kind
range
8486 N_Defining_Character_Literal
..
8487 N_Defining_Operator_Symbol
;
8489 subtype N_Formal_Subprogram_Declaration
is Node_Kind
range
8490 N_Formal_Abstract_Subprogram_Declaration
..
8491 N_Formal_Concrete_Subprogram_Declaration
;
8493 subtype N_Generic_Declaration
is Node_Kind
range
8494 N_Generic_Package_Declaration
..
8495 N_Generic_Subprogram_Declaration
;
8497 subtype N_Generic_Instantiation
is Node_Kind
range
8498 N_Function_Instantiation
..
8499 N_Package_Instantiation
;
8501 subtype N_Generic_Renaming_Declaration
is Node_Kind
range
8502 N_Generic_Function_Renaming_Declaration
..
8503 N_Generic_Procedure_Renaming_Declaration
;
8505 subtype N_Has_Chars
is Node_Kind
range
8506 N_Attribute_Definition_Clause
..
8509 subtype N_Has_Entity
is Node_Kind
range
8511 N_Attribute_Reference
;
8512 -- Nodes that have Entity fields
8513 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
8514 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
8516 subtype N_Has_Etype
is Node_Kind
range
8518 N_Subtype_Indication
;
8520 subtype N_Has_Treat_Fixed_As_Integer
is Node_Kind
range
8524 subtype N_Multiplying_Operator
is Node_Kind
range
8528 subtype N_Later_Decl_Item
is Node_Kind
range
8529 N_Task_Type_Declaration
..
8530 N_Generic_Subprogram_Declaration
;
8531 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8532 -- only those items which can appear as later declarative items. This also
8533 -- includes N_Implicit_Label_Declaration which is not specifically in the
8534 -- grammar but may appear as a valid later declarative items. It does NOT
8535 -- include N_Pragma which can also appear among later declarative items.
8536 -- It does however include N_Protected_Body, which is a bit peculiar, but
8537 -- harmless since this cannot appear in Ada 83 mode anyway.
8539 subtype N_Membership_Test
is Node_Kind
range
8543 subtype N_Numeric_Or_String_Literal
is Node_Kind
range
8544 N_Integer_Literal
..
8547 subtype N_Op
is Node_Kind
range
8551 subtype N_Op_Boolean
is Node_Kind
range
8554 -- Binary operators which take operands of a boolean type, and yield
8555 -- a result of a boolean type.
8557 subtype N_Op_Compare
is Node_Kind
range
8561 subtype N_Op_Shift
is Node_Kind
range
8563 N_Op_Shift_Right_Arithmetic
;
8565 subtype N_Proper_Body
is Node_Kind
range
8569 subtype N_Push_xxx_Label
is Node_Kind
range
8570 N_Push_Constraint_Error_Label
..
8571 N_Push_Storage_Error_Label
;
8573 subtype N_Pop_xxx_Label
is Node_Kind
range
8574 N_Pop_Constraint_Error_Label
..
8575 N_Pop_Storage_Error_Label
;
8577 subtype N_Push_Pop_xxx_Label
is Node_Kind
range
8578 N_Push_Constraint_Error_Label
..
8579 N_Pop_Storage_Error_Label
;
8581 subtype N_Raise_xxx_Error
is Node_Kind
range
8582 N_Raise_Constraint_Error
..
8583 N_Raise_Storage_Error
;
8585 subtype N_Renaming_Declaration
is Node_Kind
range
8586 N_Exception_Renaming_Declaration
..
8587 N_Generic_Procedure_Renaming_Declaration
;
8589 subtype N_Representation_Clause
is Node_Kind
range
8591 N_Attribute_Definition_Clause
;
8593 subtype N_Short_Circuit
is Node_Kind
range
8597 subtype N_SCIL_Node
is Node_Kind
range
8598 N_SCIL_Dispatch_Table_Tag_Init
..
8599 N_SCIL_Membership_Test
;
8601 subtype N_Statement_Other_Than_Procedure_Call
is Node_Kind
range
8602 N_Abort_Statement
..
8604 -- Note that this includes all statement types except for the cases of the
8605 -- N_Procedure_Call_Statement which is considered to be a subexpression
8606 -- (since overloading is possible, so it needs to go through the normal
8607 -- overloading resolution for expressions).
8609 subtype N_Subprogram_Call
is Node_Kind
range
8611 N_Procedure_Call_Statement
;
8613 subtype N_Subprogram_Instantiation
is Node_Kind
range
8614 N_Function_Instantiation
..
8615 N_Procedure_Instantiation
;
8617 subtype N_Has_Condition
is Node_Kind
range
8619 N_Terminate_Alternative
;
8620 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
8622 subtype N_Subexpr
is Node_Kind
range
8624 N_Unchecked_Type_Conversion
;
8625 -- Nodes with expression fields
8627 subtype N_Subprogram_Specification
is Node_Kind
range
8628 N_Function_Specification
..
8629 N_Procedure_Specification
;
8631 subtype N_Unary_Op
is Node_Kind
range
8635 subtype N_Unit_Body
is Node_Kind
range
8639 ---------------------------
8640 -- Node Access Functions --
8641 ---------------------------
8643 -- The following functions return the contents of the indicated field of
8644 -- the node referenced by the argument, which is a Node_Id. They provide
8645 -- logical access to fields in the node which could be accessed using the
8646 -- Atree.Unchecked_Access package, but the idea is always to use these
8647 -- higher level routines which preserve strong typing. In debug mode,
8648 -- these routines check that they are being applied to an appropriate
8649 -- node, as well as checking that the node is in range.
8651 function ABE_Is_Certain
8652 (N
: Node_Id
) return Boolean; -- Flag18
8654 function Abort_Present
8655 (N
: Node_Id
) return Boolean; -- Flag15
8657 function Abortable_Part
8658 (N
: Node_Id
) return Node_Id
; -- Node2
8660 function Abstract_Present
8661 (N
: Node_Id
) return Boolean; -- Flag4
8663 function Accept_Handler_Records
8664 (N
: Node_Id
) return List_Id
; -- List5
8666 function Accept_Statement
8667 (N
: Node_Id
) return Node_Id
; -- Node2
8669 function Access_Definition
8670 (N
: Node_Id
) return Node_Id
; -- Node3
8672 function Access_To_Subprogram_Definition
8673 (N
: Node_Id
) return Node_Id
; -- Node3
8675 function Access_Types_To_Process
8676 (N
: Node_Id
) return Elist_Id
; -- Elist2
8679 (N
: Node_Id
) return List_Id
; -- List1
8681 function Activation_Chain_Entity
8682 (N
: Node_Id
) return Node_Id
; -- Node3
8684 function Acts_As_Spec
8685 (N
: Node_Id
) return Boolean; -- Flag4
8687 function Actual_Designated_Subtype
8688 (N
: Node_Id
) return Node_Id
; -- Node4
8690 function Address_Warning_Posted
8691 (N
: Node_Id
) return Boolean; -- Flag18
8693 function Aggregate_Bounds
8694 (N
: Node_Id
) return Node_Id
; -- Node3
8696 function Aliased_Present
8697 (N
: Node_Id
) return Boolean; -- Flag4
8700 (N
: Node_Id
) return Boolean; -- Flag11
8702 function All_Present
8703 (N
: Node_Id
) return Boolean; -- Flag15
8705 function Alternatives
8706 (N
: Node_Id
) return List_Id
; -- List4
8708 function Ancestor_Part
8709 (N
: Node_Id
) return Node_Id
; -- Node3
8711 function Atomic_Sync_Required
8712 (N
: Node_Id
) return Boolean; -- Flag14
8714 function Array_Aggregate
8715 (N
: Node_Id
) return Node_Id
; -- Node3
8717 function Aspect_Rep_Item
8718 (N
: Node_Id
) return Node_Id
; -- Node2
8720 function Assignment_OK
8721 (N
: Node_Id
) return Boolean; -- Flag15
8723 function Associated_Node
8724 (N
: Node_Id
) return Node_Id
; -- Node4
8726 function At_End_Proc
8727 (N
: Node_Id
) return Node_Id
; -- Node1
8729 function Attribute_Name
8730 (N
: Node_Id
) return Name_Id
; -- Name2
8732 function Aux_Decls_Node
8733 (N
: Node_Id
) return Node_Id
; -- Node5
8735 function Backwards_OK
8736 (N
: Node_Id
) return Boolean; -- Flag6
8738 function Bad_Is_Detected
8739 (N
: Node_Id
) return Boolean; -- Flag15
8742 (N
: Node_Id
) return Boolean; -- Flag5
8744 function Body_Required
8745 (N
: Node_Id
) return Boolean; -- Flag13
8747 function Body_To_Inline
8748 (N
: Node_Id
) return Node_Id
; -- Node3
8750 function Box_Present
8751 (N
: Node_Id
) return Boolean; -- Flag15
8753 function Char_Literal_Value
8754 (N
: Node_Id
) return Uint
; -- Uint2
8757 (N
: Node_Id
) return Name_Id
; -- Name1
8759 function Check_Address_Alignment
8760 (N
: Node_Id
) return Boolean; -- Flag11
8762 function Choice_Parameter
8763 (N
: Node_Id
) return Node_Id
; -- Node2
8766 (N
: Node_Id
) return List_Id
; -- List1
8768 function Class_Present
8769 (N
: Node_Id
) return Boolean; -- Flag6
8771 function Classifications
8772 (N
: Node_Id
) return Node_Id
; -- Node3
8774 function Cleanup_Actions
8775 (N
: Node_Id
) return List_Id
; -- List5
8777 function Comes_From_Extended_Return_Statement
8778 (N
: Node_Id
) return Boolean; -- Flag18
8780 function Compile_Time_Known_Aggregate
8781 (N
: Node_Id
) return Boolean; -- Flag18
8783 function Component_Associations
8784 (N
: Node_Id
) return List_Id
; -- List2
8786 function Component_Clauses
8787 (N
: Node_Id
) return List_Id
; -- List3
8789 function Component_Definition
8790 (N
: Node_Id
) return Node_Id
; -- Node4
8792 function Component_Items
8793 (N
: Node_Id
) return List_Id
; -- List3
8795 function Component_List
8796 (N
: Node_Id
) return Node_Id
; -- Node1
8798 function Component_Name
8799 (N
: Node_Id
) return Node_Id
; -- Node1
8801 function Componentwise_Assignment
8802 (N
: Node_Id
) return Boolean; -- Flag14
8805 (N
: Node_Id
) return Node_Id
; -- Node1
8807 function Condition_Actions
8808 (N
: Node_Id
) return List_Id
; -- List3
8810 function Config_Pragmas
8811 (N
: Node_Id
) return List_Id
; -- List4
8813 function Constant_Present
8814 (N
: Node_Id
) return Boolean; -- Flag17
8817 (N
: Node_Id
) return Node_Id
; -- Node3
8819 function Constraints
8820 (N
: Node_Id
) return List_Id
; -- List1
8822 function Context_Installed
8823 (N
: Node_Id
) return Boolean; -- Flag13
8825 function Context_Pending
8826 (N
: Node_Id
) return Boolean; -- Flag16
8828 function Context_Items
8829 (N
: Node_Id
) return List_Id
; -- List1
8831 function Contract_Test_Cases
8832 (N
: Node_Id
) return Node_Id
; -- Node2
8834 function Controlling_Argument
8835 (N
: Node_Id
) return Node_Id
; -- Node1
8837 function Conversion_OK
8838 (N
: Node_Id
) return Boolean; -- Flag14
8840 function Convert_To_Return_False
8841 (N
: Node_Id
) return Boolean; -- Flag13
8843 function Corresponding_Aspect
8844 (N
: Node_Id
) return Node_Id
; -- Node3
8846 function Corresponding_Body
8847 (N
: Node_Id
) return Node_Id
; -- Node5
8849 function Corresponding_Formal_Spec
8850 (N
: Node_Id
) return Node_Id
; -- Node3
8852 function Corresponding_Generic_Association
8853 (N
: Node_Id
) return Node_Id
; -- Node5
8855 function Corresponding_Integer_Value
8856 (N
: Node_Id
) return Uint
; -- Uint4
8858 function Corresponding_Spec
8859 (N
: Node_Id
) return Node_Id
; -- Node5
8861 function Corresponding_Spec_Of_Stub
8862 (N
: Node_Id
) return Node_Id
; -- Node2
8864 function Corresponding_Stub
8865 (N
: Node_Id
) return Node_Id
; -- Node3
8867 function Dcheck_Function
8868 (N
: Node_Id
) return Entity_Id
; -- Node5
8870 function Declarations
8871 (N
: Node_Id
) return List_Id
; -- List2
8873 function Default_Expression
8874 (N
: Node_Id
) return Node_Id
; -- Node5
8876 function Default_Storage_Pool
8877 (N
: Node_Id
) return Node_Id
; -- Node3
8879 function Default_Name
8880 (N
: Node_Id
) return Node_Id
; -- Node2
8882 function Defining_Identifier
8883 (N
: Node_Id
) return Entity_Id
; -- Node1
8885 function Defining_Unit_Name
8886 (N
: Node_Id
) return Node_Id
; -- Node1
8888 function Delay_Alternative
8889 (N
: Node_Id
) return Node_Id
; -- Node4
8891 function Delay_Statement
8892 (N
: Node_Id
) return Node_Id
; -- Node2
8894 function Delta_Expression
8895 (N
: Node_Id
) return Node_Id
; -- Node3
8897 function Digits_Expression
8898 (N
: Node_Id
) return Node_Id
; -- Node2
8900 function Discr_Check_Funcs_Built
8901 (N
: Node_Id
) return Boolean; -- Flag11
8903 function Discrete_Choices
8904 (N
: Node_Id
) return List_Id
; -- List4
8906 function Discrete_Range
8907 (N
: Node_Id
) return Node_Id
; -- Node4
8909 function Discrete_Subtype_Definition
8910 (N
: Node_Id
) return Node_Id
; -- Node4
8912 function Discrete_Subtype_Definitions
8913 (N
: Node_Id
) return List_Id
; -- List2
8915 function Discriminant_Specifications
8916 (N
: Node_Id
) return List_Id
; -- List4
8918 function Discriminant_Type
8919 (N
: Node_Id
) return Node_Id
; -- Node5
8921 function Do_Accessibility_Check
8922 (N
: Node_Id
) return Boolean; -- Flag13
8924 function Do_Discriminant_Check
8925 (N
: Node_Id
) return Boolean; -- Flag1
8927 function Do_Division_Check
8928 (N
: Node_Id
) return Boolean; -- Flag13
8930 function Do_Length_Check
8931 (N
: Node_Id
) return Boolean; -- Flag4
8933 function Do_Overflow_Check
8934 (N
: Node_Id
) return Boolean; -- Flag17
8936 function Do_Range_Check
8937 (N
: Node_Id
) return Boolean; -- Flag9
8939 function Do_Storage_Check
8940 (N
: Node_Id
) return Boolean; -- Flag17
8942 function Do_Tag_Check
8943 (N
: Node_Id
) return Boolean; -- Flag13
8945 function Elaborate_All_Desirable
8946 (N
: Node_Id
) return Boolean; -- Flag9
8948 function Elaborate_All_Present
8949 (N
: Node_Id
) return Boolean; -- Flag14
8951 function Elaborate_Desirable
8952 (N
: Node_Id
) return Boolean; -- Flag11
8954 function Elaborate_Present
8955 (N
: Node_Id
) return Boolean; -- Flag4
8957 function Elaboration_Boolean
8958 (N
: Node_Id
) return Node_Id
; -- Node2
8960 function Else_Actions
8961 (N
: Node_Id
) return List_Id
; -- List3
8963 function Else_Statements
8964 (N
: Node_Id
) return List_Id
; -- List4
8966 function Elsif_Parts
8967 (N
: Node_Id
) return List_Id
; -- List3
8969 function Enclosing_Variant
8970 (N
: Node_Id
) return Node_Id
; -- Node2
8973 (N
: Node_Id
) return Node_Id
; -- Node4
8976 (N
: Node_Id
) return Uint
; -- Uint5
8979 (N
: Node_Id
) return Node_Id
; -- Node4
8981 function Entity_Or_Associated_Node
8982 (N
: Node_Id
) return Node_Id
; -- Node4
8984 function Entry_Body_Formal_Part
8985 (N
: Node_Id
) return Node_Id
; -- Node5
8987 function Entry_Call_Alternative
8988 (N
: Node_Id
) return Node_Id
; -- Node1
8990 function Entry_Call_Statement
8991 (N
: Node_Id
) return Node_Id
; -- Node1
8993 function Entry_Direct_Name
8994 (N
: Node_Id
) return Node_Id
; -- Node1
8996 function Entry_Index
8997 (N
: Node_Id
) return Node_Id
; -- Node5
8999 function Entry_Index_Specification
9000 (N
: Node_Id
) return Node_Id
; -- Node4
9003 (N
: Node_Id
) return Node_Id
; -- Node5
9005 function Exception_Choices
9006 (N
: Node_Id
) return List_Id
; -- List4
9008 function Exception_Handlers
9009 (N
: Node_Id
) return List_Id
; -- List5
9011 function Exception_Junk
9012 (N
: Node_Id
) return Boolean; -- Flag8
9014 function Exception_Label
9015 (N
: Node_Id
) return Node_Id
; -- Node5
9017 function Explicit_Actual_Parameter
9018 (N
: Node_Id
) return Node_Id
; -- Node3
9020 function Expansion_Delayed
9021 (N
: Node_Id
) return Boolean; -- Flag11
9023 function Explicit_Generic_Actual_Parameter
9024 (N
: Node_Id
) return Node_Id
; -- Node1
9027 (N
: Node_Id
) return Node_Id
; -- Node3
9029 function Expressions
9030 (N
: Node_Id
) return List_Id
; -- List1
9033 (N
: Node_Id
) return Node_Id
; -- Node3
9035 function First_Inlined_Subprogram
9036 (N
: Node_Id
) return Entity_Id
; -- Node3
9039 (N
: Node_Id
) return Boolean; -- Flag5
9041 function First_Named_Actual
9042 (N
: Node_Id
) return Node_Id
; -- Node4
9044 function First_Real_Statement
9045 (N
: Node_Id
) return Node_Id
; -- Node2
9047 function First_Subtype_Link
9048 (N
: Node_Id
) return Entity_Id
; -- Node5
9050 function Float_Truncate
9051 (N
: Node_Id
) return Boolean; -- Flag11
9053 function Formal_Type_Definition
9054 (N
: Node_Id
) return Node_Id
; -- Node3
9056 function Forwards_OK
9057 (N
: Node_Id
) return Boolean; -- Flag5
9059 function From_Aspect_Specification
9060 (N
: Node_Id
) return Boolean; -- Flag13
9062 function From_At_End
9063 (N
: Node_Id
) return Boolean; -- Flag4
9065 function From_At_Mod
9066 (N
: Node_Id
) return Boolean; -- Flag4
9068 function From_Conditional_Expression
9069 (N
: Node_Id
) return Boolean; -- Flag1
9071 function From_Default
9072 (N
: Node_Id
) return Boolean; -- Flag6
9074 function Generalized_Indexing
9075 (N
: Node_Id
) return Node_Id
; -- Node4
9076 function Generic_Associations
9077 (N
: Node_Id
) return List_Id
; -- List3
9079 function Generic_Formal_Declarations
9080 (N
: Node_Id
) return List_Id
; -- List2
9082 function Generic_Parent
9083 (N
: Node_Id
) return Node_Id
; -- Node5
9085 function Generic_Parent_Type
9086 (N
: Node_Id
) return Node_Id
; -- Node4
9088 function Handled_Statement_Sequence
9089 (N
: Node_Id
) return Node_Id
; -- Node4
9091 function Handler_List_Entry
9092 (N
: Node_Id
) return Node_Id
; -- Node2
9094 function Has_Created_Identifier
9095 (N
: Node_Id
) return Boolean; -- Flag15
9097 function Has_Dereference_Action
9098 (N
: Node_Id
) return Boolean; -- Flag13
9100 function Has_Dynamic_Length_Check
9101 (N
: Node_Id
) return Boolean; -- Flag10
9103 function Has_Dynamic_Range_Check
9104 (N
: Node_Id
) return Boolean; -- Flag12
9106 function Has_Init_Expression
9107 (N
: Node_Id
) return Boolean; -- Flag14
9109 function Has_Local_Raise
9110 (N
: Node_Id
) return Boolean; -- Flag8
9112 function Has_No_Elaboration_Code
9113 (N
: Node_Id
) return Boolean; -- Flag17
9115 function Has_Pragma_Suppress_All
9116 (N
: Node_Id
) return Boolean; -- Flag14
9118 function Has_Private_View
9119 (N
: Node_Id
) return Boolean; -- Flag11
9121 function Has_Relative_Deadline_Pragma
9122 (N
: Node_Id
) return Boolean; -- Flag9
9124 function Has_Self_Reference
9125 (N
: Node_Id
) return Boolean; -- Flag13
9127 function Has_SP_Choice
9128 (N
: Node_Id
) return Boolean; -- Flag15
9130 function Has_Storage_Size_Pragma
9131 (N
: Node_Id
) return Boolean; -- Flag5
9133 function Has_Wide_Character
9134 (N
: Node_Id
) return Boolean; -- Flag11
9136 function Has_Wide_Wide_Character
9137 (N
: Node_Id
) return Boolean; -- Flag13
9139 function Header_Size_Added
9140 (N
: Node_Id
) return Boolean; -- Flag11
9142 function Hidden_By_Use_Clause
9143 (N
: Node_Id
) return Elist_Id
; -- Elist4
9146 (N
: Node_Id
) return Node_Id
; -- Node2
9149 (N
: Node_Id
) return Node_Id
; -- Node1
9151 function Interface_List
9152 (N
: Node_Id
) return List_Id
; -- List2
9154 function Interface_Present
9155 (N
: Node_Id
) return Boolean; -- Flag16
9157 function Implicit_With
9158 (N
: Node_Id
) return Boolean; -- Flag16
9160 function Implicit_With_From_Instantiation
9161 (N
: Node_Id
) return Boolean; -- Flag12
9163 function Import_Interface_Present
9164 (N
: Node_Id
) return Boolean; -- Flag16
9167 (N
: Node_Id
) return Boolean; -- Flag15
9169 function Includes_Infinities
9170 (N
: Node_Id
) return Boolean; -- Flag11
9172 function Incomplete_View
9173 (N
: Node_Id
) return Node_Id
; -- Node2
9175 function Inherited_Discriminant
9176 (N
: Node_Id
) return Boolean; -- Flag13
9178 function Instance_Spec
9179 (N
: Node_Id
) return Node_Id
; -- Node5
9182 (N
: Node_Id
) return Uint
; -- Uint3
9184 function Is_Accessibility_Actual
9185 (N
: Node_Id
) return Boolean; -- Flag13
9187 function Is_Asynchronous_Call_Block
9188 (N
: Node_Id
) return Boolean; -- Flag7
9190 function Is_Boolean_Aspect
9191 (N
: Node_Id
) return Boolean; -- Flag16
9194 (N
: Node_Id
) return Boolean; -- Flag11
9196 function Is_Component_Left_Opnd
9197 (N
: Node_Id
) return Boolean; -- Flag13
9199 function Is_Component_Right_Opnd
9200 (N
: Node_Id
) return Boolean; -- Flag14
9202 function Is_Controlling_Actual
9203 (N
: Node_Id
) return Boolean; -- Flag16
9205 function Is_Delayed_Aspect
9206 (N
: Node_Id
) return Boolean; -- Flag14
9208 function Is_Disabled
9209 (N
: Node_Id
) return Boolean; -- Flag15
9211 function Is_Dynamic_Coextension
9212 (N
: Node_Id
) return Boolean; -- Flag18
9215 (N
: Node_Id
) return Boolean; -- Flag13
9217 function Is_Entry_Barrier_Function
9218 (N
: Node_Id
) return Boolean; -- Flag8
9220 function Is_Expanded_Build_In_Place_Call
9221 (N
: Node_Id
) return Boolean; -- Flag11
9223 function Is_Finalization_Wrapper
9224 (N
: Node_Id
) return Boolean; -- Flag9
9226 function Is_Folded_In_Parser
9227 (N
: Node_Id
) return Boolean; -- Flag4
9230 (N
: Node_Id
) return Boolean; -- Flag9
9232 function Is_In_Discriminant_Check
9233 (N
: Node_Id
) return Boolean; -- Flag11
9235 function Is_Machine_Number
9236 (N
: Node_Id
) return Boolean; -- Flag11
9238 function Is_Null_Loop
9239 (N
: Node_Id
) return Boolean; -- Flag16
9241 function Is_Overloaded
9242 (N
: Node_Id
) return Boolean; -- Flag5
9244 function Is_Power_Of_2_For_Shift
9245 (N
: Node_Id
) return Boolean; -- Flag13
9247 function Is_Prefixed_Call
9248 (N
: Node_Id
) return Boolean; -- Flag17
9250 function Is_Protected_Subprogram_Body
9251 (N
: Node_Id
) return Boolean; -- Flag7
9253 function Is_Static_Coextension
9254 (N
: Node_Id
) return Boolean; -- Flag14
9256 function Is_Static_Expression
9257 (N
: Node_Id
) return Boolean; -- Flag6
9259 function Is_Subprogram_Descriptor
9260 (N
: Node_Id
) return Boolean; -- Flag16
9262 function Is_Task_Allocation_Block
9263 (N
: Node_Id
) return Boolean; -- Flag6
9265 function Is_Task_Master
9266 (N
: Node_Id
) return Boolean; -- Flag5
9268 function Iteration_Scheme
9269 (N
: Node_Id
) return Node_Id
; -- Node2
9271 function Iterator_Specification
9272 (N
: Node_Id
) return Node_Id
; -- Node2
9275 (N
: Node_Id
) return Entity_Id
; -- Node1
9277 function Kill_Range_Check
9278 (N
: Node_Id
) return Boolean; -- Flag11
9280 function Label_Construct
9281 (N
: Node_Id
) return Node_Id
; -- Node2
9284 (N
: Node_Id
) return Node_Id
; -- Node2
9287 (N
: Node_Id
) return Node_Id
; -- Node4
9290 (N
: Node_Id
) return Boolean; -- Flag6
9292 function Library_Unit
9293 (N
: Node_Id
) return Node_Id
; -- Node4
9295 function Limited_View_Installed
9296 (N
: Node_Id
) return Boolean; -- Flag18
9298 function Limited_Present
9299 (N
: Node_Id
) return Boolean; -- Flag17
9302 (N
: Node_Id
) return List_Id
; -- List1
9304 function Local_Raise_Not_OK
9305 (N
: Node_Id
) return Boolean; -- Flag7
9307 function Local_Raise_Statements
9308 (N
: Node_Id
) return Elist_Id
; -- Elist1
9310 function Loop_Actions
9311 (N
: Node_Id
) return List_Id
; -- List2
9313 function Loop_Parameter_Specification
9314 (N
: Node_Id
) return Node_Id
; -- Node4
9317 (N
: Node_Id
) return Node_Id
; -- Node1
9320 (N
: Node_Id
) return Node_Id
; -- Node2
9323 (N
: Node_Id
) return Boolean; -- Flag5
9325 function Must_Be_Byte_Aligned
9326 (N
: Node_Id
) return Boolean; -- Flag14
9328 function Must_Not_Freeze
9329 (N
: Node_Id
) return Boolean; -- Flag8
9331 function Must_Not_Override
9332 (N
: Node_Id
) return Boolean; -- Flag15
9334 function Must_Override
9335 (N
: Node_Id
) return Boolean; -- Flag14
9338 (N
: Node_Id
) return Node_Id
; -- Node2
9341 (N
: Node_Id
) return List_Id
; -- List2
9343 function Next_Entity
9344 (N
: Node_Id
) return Node_Id
; -- Node2
9346 function Next_Exit_Statement
9347 (N
: Node_Id
) return Node_Id
; -- Node3
9349 function Next_Implicit_With
9350 (N
: Node_Id
) return Node_Id
; -- Node3
9352 function Next_Named_Actual
9353 (N
: Node_Id
) return Node_Id
; -- Node4
9355 function Next_Pragma
9356 (N
: Node_Id
) return Node_Id
; -- Node1
9358 function Next_Rep_Item
9359 (N
: Node_Id
) return Node_Id
; -- Node5
9361 function Next_Use_Clause
9362 (N
: Node_Id
) return Node_Id
; -- Node3
9364 function No_Ctrl_Actions
9365 (N
: Node_Id
) return Boolean; -- Flag7
9367 function No_Elaboration_Check
9368 (N
: Node_Id
) return Boolean; -- Flag14
9370 function No_Entities_Ref_In_Spec
9371 (N
: Node_Id
) return Boolean; -- Flag8
9373 function No_Initialization
9374 (N
: Node_Id
) return Boolean; -- Flag13
9376 function No_Minimize_Eliminate
9377 (N
: Node_Id
) return Boolean; -- Flag17
9379 function No_Truncation
9380 (N
: Node_Id
) return Boolean; -- Flag17
9382 function Non_Aliased_Prefix
9383 (N
: Node_Id
) return Boolean; -- Flag18
9385 function Null_Present
9386 (N
: Node_Id
) return Boolean; -- Flag13
9388 function Null_Excluding_Subtype
9389 (N
: Node_Id
) return Boolean; -- Flag16
9391 function Null_Exclusion_Present
9392 (N
: Node_Id
) return Boolean; -- Flag11
9394 function Null_Exclusion_In_Return_Present
9395 (N
: Node_Id
) return Boolean; -- Flag14
9397 function Null_Record_Present
9398 (N
: Node_Id
) return Boolean; -- Flag17
9400 function Object_Definition
9401 (N
: Node_Id
) return Node_Id
; -- Node4
9404 (N
: Node_Id
) return Boolean; -- Flag16
9406 function Original_Discriminant
9407 (N
: Node_Id
) return Node_Id
; -- Node2
9409 function Original_Entity
9410 (N
: Node_Id
) return Entity_Id
; -- Node2
9412 function Others_Discrete_Choices
9413 (N
: Node_Id
) return List_Id
; -- List1
9415 function Out_Present
9416 (N
: Node_Id
) return Boolean; -- Flag17
9418 function Parameter_Associations
9419 (N
: Node_Id
) return List_Id
; -- List3
9421 function Parameter_Specifications
9422 (N
: Node_Id
) return List_Id
; -- List3
9424 function Parameter_Type
9425 (N
: Node_Id
) return Node_Id
; -- Node2
9427 function Parent_Spec
9428 (N
: Node_Id
) return Node_Id
; -- Node4
9431 (N
: Node_Id
) return Node_Id
; -- Node2
9433 function Pragma_Argument_Associations
9434 (N
: Node_Id
) return List_Id
; -- List2
9436 function Pragma_Identifier
9437 (N
: Node_Id
) return Node_Id
; -- Node4
9439 function Pragmas_After
9440 (N
: Node_Id
) return List_Id
; -- List5
9442 function Pragmas_Before
9443 (N
: Node_Id
) return List_Id
; -- List4
9445 function Pre_Post_Conditions
9446 (N
: Node_Id
) return Node_Id
; -- Node1
9449 (N
: Node_Id
) return Node_Id
; -- Node3
9451 function Premature_Use
9452 (N
: Node_Id
) return Node_Id
; -- Node5
9454 function Present_Expr
9455 (N
: Node_Id
) return Uint
; -- Uint3
9458 (N
: Node_Id
) return Boolean; -- Flag6
9460 function Print_In_Hex
9461 (N
: Node_Id
) return Boolean; -- Flag13
9463 function Private_Declarations
9464 (N
: Node_Id
) return List_Id
; -- List3
9466 function Private_Present
9467 (N
: Node_Id
) return Boolean; -- Flag15
9469 function Procedure_To_Call
9470 (N
: Node_Id
) return Node_Id
; -- Node2
9472 function Proper_Body
9473 (N
: Node_Id
) return Node_Id
; -- Node1
9475 function Protected_Definition
9476 (N
: Node_Id
) return Node_Id
; -- Node3
9478 function Protected_Present
9479 (N
: Node_Id
) return Boolean; -- Flag6
9481 function Raises_Constraint_Error
9482 (N
: Node_Id
) return Boolean; -- Flag7
9484 function Range_Constraint
9485 (N
: Node_Id
) return Node_Id
; -- Node4
9487 function Range_Expression
9488 (N
: Node_Id
) return Node_Id
; -- Node4
9490 function Real_Range_Specification
9491 (N
: Node_Id
) return Node_Id
; -- Node4
9494 (N
: Node_Id
) return Ureal
; -- Ureal3
9497 (N
: Node_Id
) return Uint
; -- Uint3
9499 function Record_Extension_Part
9500 (N
: Node_Id
) return Node_Id
; -- Node3
9502 function Redundant_Use
9503 (N
: Node_Id
) return Boolean; -- Flag13
9505 function Renaming_Exception
9506 (N
: Node_Id
) return Node_Id
; -- Node2
9508 function Result_Definition
9509 (N
: Node_Id
) return Node_Id
; -- Node4
9511 function Return_Object_Declarations
9512 (N
: Node_Id
) return List_Id
; -- List3
9514 function Return_Statement_Entity
9515 (N
: Node_Id
) return Node_Id
; -- Node5
9517 function Reverse_Present
9518 (N
: Node_Id
) return Boolean; -- Flag15
9521 (N
: Node_Id
) return Node_Id
; -- Node3
9523 function Rounded_Result
9524 (N
: Node_Id
) return Boolean; -- Flag18
9526 function SCIL_Controlling_Tag
9527 (N
: Node_Id
) return Node_Id
; -- Node5
9529 function SCIL_Entity
9530 (N
: Node_Id
) return Node_Id
; -- Node4
9532 function SCIL_Tag_Value
9533 (N
: Node_Id
) return Node_Id
; -- Node5
9535 function SCIL_Target_Prim
9536 (N
: Node_Id
) return Node_Id
; -- Node2
9539 (N
: Node_Id
) return Node_Id
; -- Node3
9541 function Select_Alternatives
9542 (N
: Node_Id
) return List_Id
; -- List1
9544 function Selector_Name
9545 (N
: Node_Id
) return Node_Id
; -- Node2
9547 function Selector_Names
9548 (N
: Node_Id
) return List_Id
; -- List1
9550 function Shift_Count_OK
9551 (N
: Node_Id
) return Boolean; -- Flag4
9553 function Source_Type
9554 (N
: Node_Id
) return Entity_Id
; -- Node1
9556 function Specification
9557 (N
: Node_Id
) return Node_Id
; -- Node1
9560 (N
: Node_Id
) return Boolean; -- Flag17
9563 (N
: Node_Id
) return List_Id
; -- List3
9565 function Storage_Pool
9566 (N
: Node_Id
) return Node_Id
; -- Node1
9568 function Subpool_Handle_Name
9569 (N
: Node_Id
) return Node_Id
; -- Node4
9572 (N
: Node_Id
) return String_Id
; -- Str3
9574 function Subtype_Indication
9575 (N
: Node_Id
) return Node_Id
; -- Node5
9577 function Subtype_Mark
9578 (N
: Node_Id
) return Node_Id
; -- Node4
9580 function Subtype_Marks
9581 (N
: Node_Id
) return List_Id
; -- List2
9583 function Suppress_Assignment_Checks
9584 (N
: Node_Id
) return Boolean; -- Flag18
9586 function Suppress_Loop_Warnings
9587 (N
: Node_Id
) return Boolean; -- Flag17
9589 function Synchronized_Present
9590 (N
: Node_Id
) return Boolean; -- Flag7
9592 function Tagged_Present
9593 (N
: Node_Id
) return Boolean; -- Flag15
9595 function Target_Type
9596 (N
: Node_Id
) return Entity_Id
; -- Node2
9598 function Task_Definition
9599 (N
: Node_Id
) return Node_Id
; -- Node3
9601 function Task_Present
9602 (N
: Node_Id
) return Boolean; -- Flag5
9604 function Then_Actions
9605 (N
: Node_Id
) return List_Id
; -- List2
9607 function Then_Statements
9608 (N
: Node_Id
) return List_Id
; -- List2
9610 function Treat_Fixed_As_Integer
9611 (N
: Node_Id
) return Boolean; -- Flag14
9613 function Triggering_Alternative
9614 (N
: Node_Id
) return Node_Id
; -- Node1
9616 function Triggering_Statement
9617 (N
: Node_Id
) return Node_Id
; -- Node1
9620 (N
: Node_Id
) return Elist_Id
; -- Elist3
9622 function Type_Definition
9623 (N
: Node_Id
) return Node_Id
; -- Node3
9625 function Uneval_Old_Accept
9626 (N
: Node_Id
) return Boolean; -- Flag7
9628 function Uneval_Old_Warn
9629 (N
: Node_Id
) return Boolean; -- Flag18
9632 (N
: Node_Id
) return Node_Id
; -- Node2
9634 function Unknown_Discriminants_Present
9635 (N
: Node_Id
) return Boolean; -- Flag13
9637 function Unreferenced_In_Spec
9638 (N
: Node_Id
) return Boolean; -- Flag7
9640 function Variant_Part
9641 (N
: Node_Id
) return Node_Id
; -- Node4
9644 (N
: Node_Id
) return List_Id
; -- List1
9646 function Visible_Declarations
9647 (N
: Node_Id
) return List_Id
; -- List2
9649 function Uninitialized_Variable
9650 (N
: Node_Id
) return Node_Id
; -- Node3
9652 function Used_Operations
9653 (N
: Node_Id
) return Elist_Id
; -- Elist5
9655 function Was_Originally_Stub
9656 (N
: Node_Id
) return Boolean; -- Flag13
9658 function Withed_Body
9659 (N
: Node_Id
) return Node_Id
; -- Node1
9661 -- End functions (note used by xsinfo utility program to end processing)
9663 ----------------------------
9664 -- Node Update Procedures --
9665 ----------------------------
9667 -- These are the corresponding node update routines, which again provide
9668 -- a high level logical access with type checking. In addition to setting
9669 -- the indicated field of the node N to the given Val, in the case of
9670 -- tree pointers (List1-4), the parent pointer of the Val node is set to
9671 -- point back to node N. This automates the setting of the parent pointer.
9673 procedure Set_ABE_Is_Certain
9674 (N
: Node_Id
; Val
: Boolean := True); -- Flag18
9676 procedure Set_Abort_Present
9677 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
9679 procedure Set_Abortable_Part
9680 (N
: Node_Id
; Val
: Node_Id
); -- Node2
9682 procedure Set_Abstract_Present
9683 (N
: Node_Id
; Val
: Boolean := True); -- Flag4
9685 procedure Set_Accept_Handler_Records
9686 (N
: Node_Id
; Val
: List_Id
); -- List5
9688 procedure Set_Accept_Statement
9689 (N
: Node_Id
; Val
: Node_Id
); -- Node2
9691 procedure Set_Access_Definition
9692 (N
: Node_Id
; Val
: Node_Id
); -- Node3
9694 procedure Set_Access_To_Subprogram_Definition
9695 (N
: Node_Id
; Val
: Node_Id
); -- Node3
9697 procedure Set_Access_Types_To_Process
9698 (N
: Node_Id
; Val
: Elist_Id
); -- Elist2
9700 procedure Set_Actions
9701 (N
: Node_Id
; Val
: List_Id
); -- List1
9703 procedure Set_Activation_Chain_Entity
9704 (N
: Node_Id
; Val
: Node_Id
); -- Node3
9706 procedure Set_Acts_As_Spec
9707 (N
: Node_Id
; Val
: Boolean := True); -- Flag4
9709 procedure Set_Actual_Designated_Subtype
9710 (N
: Node_Id
; Val
: Node_Id
); -- Node4
9712 procedure Set_Address_Warning_Posted
9713 (N
: Node_Id
; Val
: Boolean := True); -- Flag18
9715 procedure Set_Aggregate_Bounds
9716 (N
: Node_Id
; Val
: Node_Id
); -- Node3
9718 procedure Set_Aliased_Present
9719 (N
: Node_Id
; Val
: Boolean := True); -- Flag4
9721 procedure Set_All_Others
9722 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
9724 procedure Set_All_Present
9725 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
9727 procedure Set_Alternatives
9728 (N
: Node_Id
; Val
: List_Id
); -- List4
9730 procedure Set_Ancestor_Part
9731 (N
: Node_Id
; Val
: Node_Id
); -- Node3
9733 procedure Set_Atomic_Sync_Required
9734 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
9736 procedure Set_Array_Aggregate
9737 (N
: Node_Id
; Val
: Node_Id
); -- Node3
9739 procedure Set_Aspect_Rep_Item
9740 (N
: Node_Id
; Val
: Node_Id
); -- Node2
9742 procedure Set_Assignment_OK
9743 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
9745 procedure Set_Associated_Node
9746 (N
: Node_Id
; Val
: Node_Id
); -- Node4
9748 procedure Set_Attribute_Name
9749 (N
: Node_Id
; Val
: Name_Id
); -- Name2
9751 procedure Set_At_End_Proc
9752 (N
: Node_Id
; Val
: Node_Id
); -- Node1
9754 procedure Set_Aux_Decls_Node
9755 (N
: Node_Id
; Val
: Node_Id
); -- Node5
9757 procedure Set_Backwards_OK
9758 (N
: Node_Id
; Val
: Boolean := True); -- Flag6
9760 procedure Set_Bad_Is_Detected
9761 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
9763 procedure Set_Body_Required
9764 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
9766 procedure Set_Body_To_Inline
9767 (N
: Node_Id
; Val
: Node_Id
); -- Node3
9769 procedure Set_Box_Present
9770 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
9772 procedure Set_By_Ref
9773 (N
: Node_Id
; Val
: Boolean := True); -- Flag5
9775 procedure Set_Char_Literal_Value
9776 (N
: Node_Id
; Val
: Uint
); -- Uint2
9779 (N
: Node_Id
; Val
: Name_Id
); -- Name1
9781 procedure Set_Check_Address_Alignment
9782 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
9784 procedure Set_Choice_Parameter
9785 (N
: Node_Id
; Val
: Node_Id
); -- Node2
9787 procedure Set_Choices
9788 (N
: Node_Id
; Val
: List_Id
); -- List1
9790 procedure Set_Class_Present
9791 (N
: Node_Id
; Val
: Boolean := True); -- Flag6
9793 procedure Set_Classifications
9794 (N
: Node_Id
; Val
: Node_Id
); -- Node3
9796 procedure Set_Cleanup_Actions
9797 (N
: Node_Id
; Val
: List_Id
); -- List5
9799 procedure Set_Comes_From_Extended_Return_Statement
9800 (N
: Node_Id
; Val
: Boolean := True); -- Flag18
9802 procedure Set_Compile_Time_Known_Aggregate
9803 (N
: Node_Id
; Val
: Boolean := True); -- Flag18
9805 procedure Set_Component_Associations
9806 (N
: Node_Id
; Val
: List_Id
); -- List2
9808 procedure Set_Component_Clauses
9809 (N
: Node_Id
; Val
: List_Id
); -- List3
9811 procedure Set_Component_Definition
9812 (N
: Node_Id
; Val
: Node_Id
); -- Node4
9814 procedure Set_Component_Items
9815 (N
: Node_Id
; Val
: List_Id
); -- List3
9817 procedure Set_Component_List
9818 (N
: Node_Id
; Val
: Node_Id
); -- Node1
9820 procedure Set_Component_Name
9821 (N
: Node_Id
; Val
: Node_Id
); -- Node1
9823 procedure Set_Componentwise_Assignment
9824 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
9826 procedure Set_Condition
9827 (N
: Node_Id
; Val
: Node_Id
); -- Node1
9829 procedure Set_Condition_Actions
9830 (N
: Node_Id
; Val
: List_Id
); -- List3
9832 procedure Set_Config_Pragmas
9833 (N
: Node_Id
; Val
: List_Id
); -- List4
9835 procedure Set_Constant_Present
9836 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
9838 procedure Set_Constraint
9839 (N
: Node_Id
; Val
: Node_Id
); -- Node3
9841 procedure Set_Constraints
9842 (N
: Node_Id
; Val
: List_Id
); -- List1
9844 procedure Set_Context_Installed
9845 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
9847 procedure Set_Context_Items
9848 (N
: Node_Id
; Val
: List_Id
); -- List1
9850 procedure Set_Context_Pending
9851 (N
: Node_Id
; Val
: Boolean := True); -- Flag16
9853 procedure Set_Contract_Test_Cases
9854 (N
: Node_Id
; Val
: Node_Id
); -- Node2
9856 procedure Set_Controlling_Argument
9857 (N
: Node_Id
; Val
: Node_Id
); -- Node1
9859 procedure Set_Conversion_OK
9860 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
9862 procedure Set_Convert_To_Return_False
9863 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
9865 procedure Set_Corresponding_Aspect
9866 (N
: Node_Id
; Val
: Node_Id
); -- Node3
9868 procedure Set_Corresponding_Body
9869 (N
: Node_Id
; Val
: Node_Id
); -- Node5
9871 procedure Set_Corresponding_Formal_Spec
9872 (N
: Node_Id
; Val
: Node_Id
); -- Node3
9874 procedure Set_Corresponding_Generic_Association
9875 (N
: Node_Id
; Val
: Node_Id
); -- Node5
9877 procedure Set_Corresponding_Integer_Value
9878 (N
: Node_Id
; Val
: Uint
); -- Uint4
9880 procedure Set_Corresponding_Spec
9881 (N
: Node_Id
; Val
: Node_Id
); -- Node5
9883 procedure Set_Corresponding_Spec_Of_Stub
9884 (N
: Node_Id
; Val
: Node_Id
); -- Node2
9886 procedure Set_Corresponding_Stub
9887 (N
: Node_Id
; Val
: Node_Id
); -- Node3
9889 procedure Set_Dcheck_Function
9890 (N
: Node_Id
; Val
: Entity_Id
); -- Node5
9892 procedure Set_Declarations
9893 (N
: Node_Id
; Val
: List_Id
); -- List2
9895 procedure Set_Default_Expression
9896 (N
: Node_Id
; Val
: Node_Id
); -- Node5
9898 procedure Set_Default_Storage_Pool
9899 (N
: Node_Id
; Val
: Node_Id
); -- Node3
9901 procedure Set_Default_Name
9902 (N
: Node_Id
; Val
: Node_Id
); -- Node2
9904 procedure Set_Defining_Identifier
9905 (N
: Node_Id
; Val
: Entity_Id
); -- Node1
9907 procedure Set_Defining_Unit_Name
9908 (N
: Node_Id
; Val
: Node_Id
); -- Node1
9910 procedure Set_Delay_Alternative
9911 (N
: Node_Id
; Val
: Node_Id
); -- Node4
9913 procedure Set_Delay_Statement
9914 (N
: Node_Id
; Val
: Node_Id
); -- Node2
9916 procedure Set_Delta_Expression
9917 (N
: Node_Id
; Val
: Node_Id
); -- Node3
9919 procedure Set_Digits_Expression
9920 (N
: Node_Id
; Val
: Node_Id
); -- Node2
9922 procedure Set_Discr_Check_Funcs_Built
9923 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
9925 procedure Set_Discrete_Choices
9926 (N
: Node_Id
; Val
: List_Id
); -- List4
9928 procedure Set_Discrete_Range
9929 (N
: Node_Id
; Val
: Node_Id
); -- Node4
9931 procedure Set_Discrete_Subtype_Definition
9932 (N
: Node_Id
; Val
: Node_Id
); -- Node4
9934 procedure Set_Discrete_Subtype_Definitions
9935 (N
: Node_Id
; Val
: List_Id
); -- List2
9937 procedure Set_Discriminant_Specifications
9938 (N
: Node_Id
; Val
: List_Id
); -- List4
9940 procedure Set_Discriminant_Type
9941 (N
: Node_Id
; Val
: Node_Id
); -- Node5
9943 procedure Set_Do_Accessibility_Check
9944 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
9946 procedure Set_Do_Discriminant_Check
9947 (N
: Node_Id
; Val
: Boolean := True); -- Flag1
9949 procedure Set_Do_Division_Check
9950 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
9952 procedure Set_Do_Length_Check
9953 (N
: Node_Id
; Val
: Boolean := True); -- Flag4
9955 procedure Set_Do_Overflow_Check
9956 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
9958 procedure Set_Do_Range_Check
9959 (N
: Node_Id
; Val
: Boolean := True); -- Flag9
9961 procedure Set_Do_Storage_Check
9962 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
9964 procedure Set_Do_Tag_Check
9965 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
9967 procedure Set_Elaborate_All_Desirable
9968 (N
: Node_Id
; Val
: Boolean := True); -- Flag9
9970 procedure Set_Elaborate_All_Present
9971 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
9973 procedure Set_Elaborate_Desirable
9974 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
9976 procedure Set_Elaborate_Present
9977 (N
: Node_Id
; Val
: Boolean := True); -- Flag4
9979 procedure Set_Elaboration_Boolean
9980 (N
: Node_Id
; Val
: Node_Id
); -- Node2
9982 procedure Set_Else_Actions
9983 (N
: Node_Id
; Val
: List_Id
); -- List3
9985 procedure Set_Else_Statements
9986 (N
: Node_Id
; Val
: List_Id
); -- List4
9988 procedure Set_Elsif_Parts
9989 (N
: Node_Id
; Val
: List_Id
); -- List3
9991 procedure Set_Enclosing_Variant
9992 (N
: Node_Id
; Val
: Node_Id
); -- Node2
9994 procedure Set_End_Label
9995 (N
: Node_Id
; Val
: Node_Id
); -- Node4
9997 procedure Set_End_Span
9998 (N
: Node_Id
; Val
: Uint
); -- Uint5
10000 procedure Set_Entity
10001 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10003 procedure Set_Entry_Body_Formal_Part
10004 (N
: Node_Id
; Val
: Node_Id
); -- Node5
10006 procedure Set_Entry_Call_Alternative
10007 (N
: Node_Id
; Val
: Node_Id
); -- Node1
10009 procedure Set_Entry_Call_Statement
10010 (N
: Node_Id
; Val
: Node_Id
); -- Node1
10012 procedure Set_Entry_Direct_Name
10013 (N
: Node_Id
; Val
: Node_Id
); -- Node1
10015 procedure Set_Entry_Index
10016 (N
: Node_Id
; Val
: Node_Id
); -- Node5
10018 procedure Set_Entry_Index_Specification
10019 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10021 procedure Set_Etype
10022 (N
: Node_Id
; Val
: Node_Id
); -- Node5
10024 procedure Set_Exception_Choices
10025 (N
: Node_Id
; Val
: List_Id
); -- List4
10027 procedure Set_Exception_Handlers
10028 (N
: Node_Id
; Val
: List_Id
); -- List5
10030 procedure Set_Exception_Junk
10031 (N
: Node_Id
; Val
: Boolean := True); -- Flag8
10033 procedure Set_Exception_Label
10034 (N
: Node_Id
; Val
: Node_Id
); -- Node5
10036 procedure Set_Expansion_Delayed
10037 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
10039 procedure Set_Explicit_Actual_Parameter
10040 (N
: Node_Id
; Val
: Node_Id
); -- Node3
10042 procedure Set_Explicit_Generic_Actual_Parameter
10043 (N
: Node_Id
; Val
: Node_Id
); -- Node1
10045 procedure Set_Expression
10046 (N
: Node_Id
; Val
: Node_Id
); -- Node3
10048 procedure Set_Expressions
10049 (N
: Node_Id
; Val
: List_Id
); -- List1
10051 procedure Set_First_Bit
10052 (N
: Node_Id
; Val
: Node_Id
); -- Node3
10054 procedure Set_First_Inlined_Subprogram
10055 (N
: Node_Id
; Val
: Entity_Id
); -- Node3
10057 procedure Set_First_Name
10058 (N
: Node_Id
; Val
: Boolean := True); -- Flag5
10060 procedure Set_First_Named_Actual
10061 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10063 procedure Set_First_Real_Statement
10064 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10066 procedure Set_First_Subtype_Link
10067 (N
: Node_Id
; Val
: Entity_Id
); -- Node5
10069 procedure Set_Float_Truncate
10070 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
10072 procedure Set_Formal_Type_Definition
10073 (N
: Node_Id
; Val
: Node_Id
); -- Node3
10075 procedure Set_Forwards_OK
10076 (N
: Node_Id
; Val
: Boolean := True); -- Flag5
10078 procedure Set_From_Aspect_Specification
10079 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
10081 procedure Set_From_At_End
10082 (N
: Node_Id
; Val
: Boolean := True); -- Flag4
10084 procedure Set_From_At_Mod
10085 (N
: Node_Id
; Val
: Boolean := True); -- Flag4
10087 procedure Set_From_Conditional_Expression
10088 (N
: Node_Id
; Val
: Boolean := True); -- Flag1
10090 procedure Set_From_Default
10091 (N
: Node_Id
; Val
: Boolean := True); -- Flag6
10093 procedure Set_Generalized_Indexing
10094 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10096 procedure Set_Generic_Associations
10097 (N
: Node_Id
; Val
: List_Id
); -- List3
10099 procedure Set_Generic_Formal_Declarations
10100 (N
: Node_Id
; Val
: List_Id
); -- List2
10102 procedure Set_Generic_Parent
10103 (N
: Node_Id
; Val
: Node_Id
); -- Node5
10105 procedure Set_Generic_Parent_Type
10106 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10108 procedure Set_Handled_Statement_Sequence
10109 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10111 procedure Set_Handler_List_Entry
10112 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10114 procedure Set_Has_Created_Identifier
10115 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
10117 procedure Set_Has_Dereference_Action
10118 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
10120 procedure Set_Has_Dynamic_Length_Check
10121 (N
: Node_Id
; Val
: Boolean := True); -- Flag10
10123 procedure Set_Has_Dynamic_Range_Check
10124 (N
: Node_Id
; Val
: Boolean := True); -- Flag12
10126 procedure Set_Has_Init_Expression
10127 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
10129 procedure Set_Has_Local_Raise
10130 (N
: Node_Id
; Val
: Boolean := True); -- Flag8
10132 procedure Set_Has_No_Elaboration_Code
10133 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
10135 procedure Set_Has_Pragma_Suppress_All
10136 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
10138 procedure Set_Has_Private_View
10139 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
10141 procedure Set_Has_Relative_Deadline_Pragma
10142 (N
: Node_Id
; Val
: Boolean := True); -- Flag9
10144 procedure Set_Has_Self_Reference
10145 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
10147 procedure Set_Has_SP_Choice
10148 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
10150 procedure Set_Has_Storage_Size_Pragma
10151 (N
: Node_Id
; Val
: Boolean := True); -- Flag5
10153 procedure Set_Has_Wide_Character
10154 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
10156 procedure Set_Has_Wide_Wide_Character
10157 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
10159 procedure Set_Header_Size_Added
10160 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
10162 procedure Set_Hidden_By_Use_Clause
10163 (N
: Node_Id
; Val
: Elist_Id
); -- Elist4
10165 procedure Set_High_Bound
10166 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10168 procedure Set_Identifier
10169 (N
: Node_Id
; Val
: Node_Id
); -- Node1
10171 procedure Set_Interface_List
10172 (N
: Node_Id
; Val
: List_Id
); -- List2
10174 procedure Set_Interface_Present
10175 (N
: Node_Id
; Val
: Boolean := True); -- Flag16
10177 procedure Set_Implicit_With
10178 (N
: Node_Id
; Val
: Boolean := True); -- Flag16
10180 procedure Set_Implicit_With_From_Instantiation
10181 (N
: Node_Id
; Val
: Boolean := True); -- Flag12
10183 procedure Set_Import_Interface_Present
10184 (N
: Node_Id
; Val
: Boolean := True); -- Flag16
10186 procedure Set_In_Present
10187 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
10189 procedure Set_Includes_Infinities
10190 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
10192 procedure Set_Incomplete_View
10193 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10195 procedure Set_Inherited_Discriminant
10196 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
10198 procedure Set_Instance_Spec
10199 (N
: Node_Id
; Val
: Node_Id
); -- Node5
10201 procedure Set_Intval
10202 (N
: Node_Id
; Val
: Uint
); -- Uint3
10204 procedure Set_Is_Accessibility_Actual
10205 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
10207 procedure Set_Is_Asynchronous_Call_Block
10208 (N
: Node_Id
; Val
: Boolean := True); -- Flag7
10210 procedure Set_Is_Boolean_Aspect
10211 (N
: Node_Id
; Val
: Boolean := True); -- Flag16
10213 procedure Set_Is_Checked
10214 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
10216 procedure Set_Is_Component_Left_Opnd
10217 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
10219 procedure Set_Is_Component_Right_Opnd
10220 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
10222 procedure Set_Is_Controlling_Actual
10223 (N
: Node_Id
; Val
: Boolean := True); -- Flag16
10225 procedure Set_Is_Delayed_Aspect
10226 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
10228 procedure Set_Is_Disabled
10229 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
10231 procedure Set_Is_Ignored
10232 (N
: Node_Id
; Val
: Boolean := True); -- Flag9
10234 procedure Set_Is_Dynamic_Coextension
10235 (N
: Node_Id
; Val
: Boolean := True); -- Flag18
10237 procedure Set_Is_Elsif
10238 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
10240 procedure Set_Is_Entry_Barrier_Function
10241 (N
: Node_Id
; Val
: Boolean := True); -- Flag8
10243 procedure Set_Is_Expanded_Build_In_Place_Call
10244 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
10246 procedure Set_Is_Finalization_Wrapper
10247 (N
: Node_Id
; Val
: Boolean := True); -- Flag9
10249 procedure Set_Is_Folded_In_Parser
10250 (N
: Node_Id
; Val
: Boolean := True); -- Flag4
10252 procedure Set_Is_In_Discriminant_Check
10253 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
10255 procedure Set_Is_Machine_Number
10256 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
10258 procedure Set_Is_Null_Loop
10259 (N
: Node_Id
; Val
: Boolean := True); -- Flag16
10261 procedure Set_Is_Overloaded
10262 (N
: Node_Id
; Val
: Boolean := True); -- Flag5
10264 procedure Set_Is_Power_Of_2_For_Shift
10265 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
10267 procedure Set_Is_Prefixed_Call
10268 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
10270 procedure Set_Is_Protected_Subprogram_Body
10271 (N
: Node_Id
; Val
: Boolean := True); -- Flag7
10273 procedure Set_Is_Static_Coextension
10274 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
10276 procedure Set_Is_Static_Expression
10277 (N
: Node_Id
; Val
: Boolean := True); -- Flag6
10279 procedure Set_Is_Subprogram_Descriptor
10280 (N
: Node_Id
; Val
: Boolean := True); -- Flag16
10282 procedure Set_Is_Task_Allocation_Block
10283 (N
: Node_Id
; Val
: Boolean := True); -- Flag6
10285 procedure Set_Is_Task_Master
10286 (N
: Node_Id
; Val
: Boolean := True); -- Flag5
10288 procedure Set_Iteration_Scheme
10289 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10291 procedure Set_Iterator_Specification
10292 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10294 procedure Set_Itype
10295 (N
: Node_Id
; Val
: Entity_Id
); -- Node1
10297 procedure Set_Kill_Range_Check
10298 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
10300 procedure Set_Last_Bit
10301 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10303 procedure Set_Last_Name
10304 (N
: Node_Id
; Val
: Boolean := True); -- Flag6
10306 procedure Set_Library_Unit
10307 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10309 procedure Set_Label_Construct
10310 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10312 procedure Set_Left_Opnd
10313 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10315 procedure Set_Limited_View_Installed
10316 (N
: Node_Id
; Val
: Boolean := True); -- Flag18
10318 procedure Set_Limited_Present
10319 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
10321 procedure Set_Literals
10322 (N
: Node_Id
; Val
: List_Id
); -- List1
10324 procedure Set_Local_Raise_Not_OK
10325 (N
: Node_Id
; Val
: Boolean := True); -- Flag7
10327 procedure Set_Local_Raise_Statements
10328 (N
: Node_Id
; Val
: Elist_Id
); -- Elist1
10330 procedure Set_Loop_Actions
10331 (N
: Node_Id
; Val
: List_Id
); -- List2
10333 procedure Set_Loop_Parameter_Specification
10334 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10336 procedure Set_Low_Bound
10337 (N
: Node_Id
; Val
: Node_Id
); -- Node1
10339 procedure Set_Mod_Clause
10340 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10342 procedure Set_More_Ids
10343 (N
: Node_Id
; Val
: Boolean := True); -- Flag5
10345 procedure Set_Must_Be_Byte_Aligned
10346 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
10348 procedure Set_Must_Not_Freeze
10349 (N
: Node_Id
; Val
: Boolean := True); -- Flag8
10351 procedure Set_Must_Not_Override
10352 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
10354 procedure Set_Must_Override
10355 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
10358 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10360 procedure Set_Names
10361 (N
: Node_Id
; Val
: List_Id
); -- List2
10363 procedure Set_Next_Entity
10364 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10366 procedure Set_Next_Exit_Statement
10367 (N
: Node_Id
; Val
: Node_Id
); -- Node3
10369 procedure Set_Next_Implicit_With
10370 (N
: Node_Id
; Val
: Node_Id
); -- Node3
10372 procedure Set_Next_Named_Actual
10373 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10375 procedure Set_Next_Pragma
10376 (N
: Node_Id
; Val
: Node_Id
); -- Node1
10378 procedure Set_Next_Rep_Item
10379 (N
: Node_Id
; Val
: Node_Id
); -- Node5
10381 procedure Set_Next_Use_Clause
10382 (N
: Node_Id
; Val
: Node_Id
); -- Node3
10384 procedure Set_No_Ctrl_Actions
10385 (N
: Node_Id
; Val
: Boolean := True); -- Flag7
10387 procedure Set_No_Elaboration_Check
10388 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
10390 procedure Set_No_Entities_Ref_In_Spec
10391 (N
: Node_Id
; Val
: Boolean := True); -- Flag8
10393 procedure Set_No_Initialization
10394 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
10396 procedure Set_No_Minimize_Eliminate
10397 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
10399 procedure Set_No_Truncation
10400 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
10402 procedure Set_Non_Aliased_Prefix
10403 (N
: Node_Id
; Val
: Boolean := True); -- Flag18
10405 procedure Set_Null_Present
10406 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
10408 procedure Set_Null_Excluding_Subtype
10409 (N
: Node_Id
; Val
: Boolean := True); -- Flag16
10411 procedure Set_Null_Exclusion_Present
10412 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
10414 procedure Set_Null_Exclusion_In_Return_Present
10415 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
10417 procedure Set_Null_Record_Present
10418 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
10420 procedure Set_Object_Definition
10421 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10423 procedure Set_Of_Present
10424 (N
: Node_Id
; Val
: Boolean := True); -- Flag16
10426 procedure Set_Original_Discriminant
10427 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10429 procedure Set_Original_Entity
10430 (N
: Node_Id
; Val
: Entity_Id
); -- Node2
10432 procedure Set_Others_Discrete_Choices
10433 (N
: Node_Id
; Val
: List_Id
); -- List1
10435 procedure Set_Out_Present
10436 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
10438 procedure Set_Parameter_Associations
10439 (N
: Node_Id
; Val
: List_Id
); -- List3
10441 procedure Set_Parameter_Specifications
10442 (N
: Node_Id
; Val
: List_Id
); -- List3
10444 procedure Set_Parameter_Type
10445 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10447 procedure Set_Parent_Spec
10448 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10450 procedure Set_Position
10451 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10453 procedure Set_Pragma_Argument_Associations
10454 (N
: Node_Id
; Val
: List_Id
); -- List2
10456 procedure Set_Pragma_Identifier
10457 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10459 procedure Set_Pragmas_After
10460 (N
: Node_Id
; Val
: List_Id
); -- List5
10462 procedure Set_Pragmas_Before
10463 (N
: Node_Id
; Val
: List_Id
); -- List4
10465 procedure Set_Pre_Post_Conditions
10466 (N
: Node_Id
; Val
: Node_Id
); -- Node1
10468 procedure Set_Prefix
10469 (N
: Node_Id
; Val
: Node_Id
); -- Node3
10471 procedure Set_Premature_Use
10472 (N
: Node_Id
; Val
: Node_Id
); -- Node5
10474 procedure Set_Present_Expr
10475 (N
: Node_Id
; Val
: Uint
); -- Uint3
10477 procedure Set_Prev_Ids
10478 (N
: Node_Id
; Val
: Boolean := True); -- Flag6
10480 procedure Set_Print_In_Hex
10481 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
10483 procedure Set_Private_Declarations
10484 (N
: Node_Id
; Val
: List_Id
); -- List3
10486 procedure Set_Private_Present
10487 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
10489 procedure Set_Procedure_To_Call
10490 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10492 procedure Set_Proper_Body
10493 (N
: Node_Id
; Val
: Node_Id
); -- Node1
10495 procedure Set_Protected_Definition
10496 (N
: Node_Id
; Val
: Node_Id
); -- Node3
10498 procedure Set_Protected_Present
10499 (N
: Node_Id
; Val
: Boolean := True); -- Flag6
10501 procedure Set_Raises_Constraint_Error
10502 (N
: Node_Id
; Val
: Boolean := True); -- Flag7
10504 procedure Set_Range_Constraint
10505 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10507 procedure Set_Range_Expression
10508 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10510 procedure Set_Real_Range_Specification
10511 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10513 procedure Set_Realval
10514 (N
: Node_Id
; Val
: Ureal
); -- Ureal3
10516 procedure Set_Reason
10517 (N
: Node_Id
; Val
: Uint
); -- Uint3
10519 procedure Set_Record_Extension_Part
10520 (N
: Node_Id
; Val
: Node_Id
); -- Node3
10522 procedure Set_Redundant_Use
10523 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
10525 procedure Set_Renaming_Exception
10526 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10528 procedure Set_Result_Definition
10529 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10531 procedure Set_Return_Object_Declarations
10532 (N
: Node_Id
; Val
: List_Id
); -- List3
10534 procedure Set_Return_Statement_Entity
10535 (N
: Node_Id
; Val
: Node_Id
); -- Node5
10537 procedure Set_Reverse_Present
10538 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
10540 procedure Set_Right_Opnd
10541 (N
: Node_Id
; Val
: Node_Id
); -- Node3
10543 procedure Set_Rounded_Result
10544 (N
: Node_Id
; Val
: Boolean := True); -- Flag18
10546 procedure Set_SCIL_Controlling_Tag
10547 (N
: Node_Id
; Val
: Node_Id
); -- Node5
10549 procedure Set_SCIL_Entity
10550 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10552 procedure Set_SCIL_Tag_Value
10553 (N
: Node_Id
; Val
: Node_Id
); -- Node5
10555 procedure Set_SCIL_Target_Prim
10556 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10558 procedure Set_Scope
10559 (N
: Node_Id
; Val
: Node_Id
); -- Node3
10561 procedure Set_Select_Alternatives
10562 (N
: Node_Id
; Val
: List_Id
); -- List1
10564 procedure Set_Selector_Name
10565 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10567 procedure Set_Selector_Names
10568 (N
: Node_Id
; Val
: List_Id
); -- List1
10570 procedure Set_Shift_Count_OK
10571 (N
: Node_Id
; Val
: Boolean := True); -- Flag4
10573 procedure Set_Source_Type
10574 (N
: Node_Id
; Val
: Entity_Id
); -- Node1
10576 procedure Set_Specification
10577 (N
: Node_Id
; Val
: Node_Id
); -- Node1
10579 procedure Set_Split_PPC
10580 (N
: Node_Id
; Val
: Boolean); -- Flag17
10582 procedure Set_Statements
10583 (N
: Node_Id
; Val
: List_Id
); -- List3
10585 procedure Set_Storage_Pool
10586 (N
: Node_Id
; Val
: Node_Id
); -- Node1
10588 procedure Set_Subpool_Handle_Name
10589 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10591 procedure Set_Strval
10592 (N
: Node_Id
; Val
: String_Id
); -- Str3
10594 procedure Set_Subtype_Indication
10595 (N
: Node_Id
; Val
: Node_Id
); -- Node5
10597 procedure Set_Subtype_Mark
10598 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10600 procedure Set_Subtype_Marks
10601 (N
: Node_Id
; Val
: List_Id
); -- List2
10603 procedure Set_Suppress_Assignment_Checks
10604 (N
: Node_Id
; Val
: Boolean := True); -- Flag18
10606 procedure Set_Suppress_Loop_Warnings
10607 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
10609 procedure Set_Synchronized_Present
10610 (N
: Node_Id
; Val
: Boolean := True); -- Flag7
10612 procedure Set_Tagged_Present
10613 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
10615 procedure Set_Target_Type
10616 (N
: Node_Id
; Val
: Entity_Id
); -- Node2
10618 procedure Set_Task_Definition
10619 (N
: Node_Id
; Val
: Node_Id
); -- Node3
10621 procedure Set_Task_Present
10622 (N
: Node_Id
; Val
: Boolean := True); -- Flag5
10624 procedure Set_Then_Actions
10625 (N
: Node_Id
; Val
: List_Id
); -- List2
10627 procedure Set_Then_Statements
10628 (N
: Node_Id
; Val
: List_Id
); -- List2
10630 procedure Set_Treat_Fixed_As_Integer
10631 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
10633 procedure Set_Triggering_Alternative
10634 (N
: Node_Id
; Val
: Node_Id
); -- Node1
10636 procedure Set_Triggering_Statement
10637 (N
: Node_Id
; Val
: Node_Id
); -- Node1
10639 procedure Set_TSS_Elist
10640 (N
: Node_Id
; Val
: Elist_Id
); -- Elist3
10642 procedure Set_Type_Definition
10643 (N
: Node_Id
; Val
: Node_Id
); -- Node3
10645 procedure Set_Uneval_Old_Accept
10646 (N
: Node_Id
; Val
: Boolean := True); -- Flag7
10648 procedure Set_Uneval_Old_Warn
10649 (N
: Node_Id
; Val
: Boolean := True); -- Flag18
10652 (N
: Node_Id
; Val
: Node_Id
); -- Node2
10654 procedure Set_Unknown_Discriminants_Present
10655 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
10657 procedure Set_Unreferenced_In_Spec
10658 (N
: Node_Id
; Val
: Boolean := True); -- Flag7
10660 procedure Set_Variant_Part
10661 (N
: Node_Id
; Val
: Node_Id
); -- Node4
10663 procedure Set_Variants
10664 (N
: Node_Id
; Val
: List_Id
); -- List1
10666 procedure Set_Visible_Declarations
10667 (N
: Node_Id
; Val
: List_Id
); -- List2
10669 procedure Set_Uninitialized_Variable
10670 (N
: Node_Id
; Val
: Node_Id
); -- Node3
10672 procedure Set_Used_Operations
10673 (N
: Node_Id
; Val
: Elist_Id
); -- Elist5
10675 procedure Set_Was_Originally_Stub
10676 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
10678 procedure Set_Withed_Body
10679 (N
: Node_Id
; Val
: Node_Id
); -- Node1
10681 -------------------------
10682 -- Iterator Procedures --
10683 -------------------------
10685 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
10687 procedure Next_Entity
(N
: in out Node_Id
);
10688 procedure Next_Named_Actual
(N
: in out Node_Id
);
10689 procedure Next_Rep_Item
(N
: in out Node_Id
);
10690 procedure Next_Use_Clause
(N
: in out Node_Id
);
10692 -------------------------------------------
10693 -- Miscellaneous Tree Access Subprograms --
10694 -------------------------------------------
10696 function End_Location
(N
: Node_Id
) return Source_Ptr
;
10697 -- N is an N_If_Statement or N_Case_Statement node, and this function
10698 -- returns the location of the IF token in the END IF sequence by
10699 -- translating the value of the End_Span field.
10701 procedure Set_End_Location
(N
: Node_Id
; S
: Source_Ptr
);
10702 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
10703 -- the End_Span field to correspond to the given value S. In other words,
10704 -- End_Span is set to the difference between S and Sloc (N), the starting
10707 function Get_Pragma_Arg
(Arg
: Node_Id
) return Node_Id
;
10708 -- Given an argument to a pragma Arg, this function returns the expression
10709 -- for the argument. This is Arg itself, or, in the case where Arg is a
10710 -- pragma argument association node, the expression from this node.
10712 --------------------------------
10713 -- Node_Kind Membership Tests --
10714 --------------------------------
10716 -- The following functions allow a convenient notation for testing whether
10717 -- a Node_Kind value matches any one of a list of possible values. In each
10718 -- case True is returned if the given T argument is equal to any of the V
10719 -- arguments. Note that there is a similar set of functions defined in
10720 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
10725 V2
: Node_Kind
) return Boolean;
10731 V3
: Node_Kind
) return Boolean;
10738 V4
: Node_Kind
) return Boolean;
10746 V5
: Node_Kind
) return Boolean;
10755 V6
: Node_Kind
) return Boolean;
10765 V7
: Node_Kind
) return Boolean;
10776 V8
: Node_Kind
) return Boolean;
10788 V9
: Node_Kind
) return Boolean;
10790 pragma Inline
(Nkind_In
);
10791 -- Inline all above functions
10793 -----------------------
10794 -- Utility Functions --
10795 -----------------------
10797 function Pragma_Name
(N
: Node_Id
) return Name_Id
;
10798 pragma Inline
(Pragma_Name
);
10799 -- Convenient function to obtain Chars field of Pragma_Identifier
10801 -----------------------------
10802 -- Syntactic Parent Tables --
10803 -----------------------------
10805 -- These tables show for each node, and for each of the five fields,
10806 -- whether the corresponding field is syntactic (True) or semantic (False).
10807 -- Unused entries are also set to False.
10809 subtype Field_Num
is Natural range 1 .. 5;
10811 Is_Syntactic_Field
: constant array (Node_Kind
, Field_Num
) of Boolean := (
10813 -- Following entries can be built automatically from the sinfo sources
10814 -- using the makeisf utility (currently this program is in spitbol).
10817 (1 => True, -- Chars (Name1)
10818 2 => False, -- Original_Discriminant (Node2-Sem)
10819 3 => False, -- unused
10820 4 => False, -- Entity (Node4-Sem)
10821 5 => False), -- Etype (Node5-Sem)
10823 N_Integer_Literal
=>
10824 (1 => False, -- unused
10825 2 => False, -- Original_Entity (Node2-Sem)
10826 3 => True, -- Intval (Uint3)
10827 4 => False, -- unused
10828 5 => False), -- Etype (Node5-Sem)
10831 (1 => False, -- unused
10832 2 => False, -- Original_Entity (Node2-Sem)
10833 3 => True, -- Realval (Ureal3)
10834 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
10835 5 => False), -- Etype (Node5-Sem)
10837 N_Character_Literal
=>
10838 (1 => True, -- Chars (Name1)
10839 2 => True, -- Char_Literal_Value (Uint2)
10840 3 => False, -- unused
10841 4 => False, -- Entity (Node4-Sem)
10842 5 => False), -- Etype (Node5-Sem)
10844 N_String_Literal
=>
10845 (1 => False, -- unused
10846 2 => False, -- unused
10847 3 => True, -- Strval (Str3)
10848 4 => False, -- unused
10849 5 => False), -- Etype (Node5-Sem)
10852 (1 => False, -- Next_Pragma (Node1-Sem)
10853 2 => True, -- Pragma_Argument_Associations (List2)
10854 3 => False, -- unused
10855 4 => True, -- Pragma_Identifier (Node4)
10856 5 => False), -- Next_Rep_Item (Node5-Sem)
10858 N_Pragma_Argument_Association
=>
10859 (1 => True, -- Chars (Name1)
10860 2 => False, -- unused
10861 3 => True, -- Expression (Node3)
10862 4 => False, -- unused
10863 5 => False), -- unused
10865 N_Defining_Identifier
=>
10866 (1 => True, -- Chars (Name1)
10867 2 => False, -- Next_Entity (Node2-Sem)
10868 3 => False, -- Scope (Node3-Sem)
10869 4 => False, -- unused
10870 5 => False), -- Etype (Node5-Sem)
10872 N_Full_Type_Declaration
=>
10873 (1 => True, -- Defining_Identifier (Node1)
10874 2 => False, -- Incomplete_View (Node2-Sem)
10875 3 => True, -- Type_Definition (Node3)
10876 4 => True, -- Discriminant_Specifications (List4)
10877 5 => False), -- unused
10879 N_Subtype_Declaration
=>
10880 (1 => True, -- Defining_Identifier (Node1)
10881 2 => False, -- unused
10882 3 => False, -- unused
10883 4 => False, -- Generic_Parent_Type (Node4-Sem)
10884 5 => True), -- Subtype_Indication (Node5)
10886 N_Subtype_Indication
=>
10887 (1 => False, -- unused
10888 2 => False, -- unused
10889 3 => True, -- Constraint (Node3)
10890 4 => True, -- Subtype_Mark (Node4)
10891 5 => False), -- Etype (Node5-Sem)
10893 N_Object_Declaration
=>
10894 (1 => True, -- Defining_Identifier (Node1)
10895 2 => False, -- Handler_List_Entry (Node2-Sem)
10896 3 => True, -- Expression (Node3)
10897 4 => True, -- Object_Definition (Node4)
10898 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10900 N_Number_Declaration
=>
10901 (1 => True, -- Defining_Identifier (Node1)
10902 2 => False, -- unused
10903 3 => True, -- Expression (Node3)
10904 4 => False, -- unused
10905 5 => False), -- unused
10907 N_Derived_Type_Definition
=>
10908 (1 => False, -- unused
10909 2 => True, -- Interface_List (List2)
10910 3 => True, -- Record_Extension_Part (Node3)
10911 4 => False, -- unused
10912 5 => True), -- Subtype_Indication (Node5)
10914 N_Range_Constraint
=>
10915 (1 => False, -- unused
10916 2 => False, -- unused
10917 3 => False, -- unused
10918 4 => True, -- Range_Expression (Node4)
10919 5 => False), -- unused
10922 (1 => True, -- Low_Bound (Node1)
10923 2 => True, -- High_Bound (Node2)
10924 3 => False, -- unused
10925 4 => False, -- unused
10926 5 => False), -- Etype (Node5-Sem)
10928 N_Enumeration_Type_Definition
=>
10929 (1 => True, -- Literals (List1)
10930 2 => False, -- unused
10931 3 => False, -- unused
10932 4 => True, -- End_Label (Node4)
10933 5 => False), -- unused
10935 N_Defining_Character_Literal
=>
10936 (1 => True, -- Chars (Name1)
10937 2 => False, -- Next_Entity (Node2-Sem)
10938 3 => False, -- Scope (Node3-Sem)
10939 4 => False, -- unused
10940 5 => False), -- Etype (Node5-Sem)
10942 N_Signed_Integer_Type_Definition
=>
10943 (1 => True, -- Low_Bound (Node1)
10944 2 => True, -- High_Bound (Node2)
10945 3 => False, -- unused
10946 4 => False, -- unused
10947 5 => False), -- unused
10949 N_Modular_Type_Definition
=>
10950 (1 => False, -- unused
10951 2 => False, -- unused
10952 3 => True, -- Expression (Node3)
10953 4 => False, -- unused
10954 5 => False), -- unused
10956 N_Floating_Point_Definition
=>
10957 (1 => False, -- unused
10958 2 => True, -- Digits_Expression (Node2)
10959 3 => False, -- unused
10960 4 => True, -- Real_Range_Specification (Node4)
10961 5 => False), -- unused
10963 N_Real_Range_Specification
=>
10964 (1 => True, -- Low_Bound (Node1)
10965 2 => True, -- High_Bound (Node2)
10966 3 => False, -- unused
10967 4 => False, -- unused
10968 5 => False), -- unused
10970 N_Ordinary_Fixed_Point_Definition
=>
10971 (1 => False, -- unused
10972 2 => False, -- unused
10973 3 => True, -- Delta_Expression (Node3)
10974 4 => True, -- Real_Range_Specification (Node4)
10975 5 => False), -- unused
10977 N_Decimal_Fixed_Point_Definition
=>
10978 (1 => False, -- unused
10979 2 => True, -- Digits_Expression (Node2)
10980 3 => True, -- Delta_Expression (Node3)
10981 4 => True, -- Real_Range_Specification (Node4)
10982 5 => False), -- unused
10984 N_Digits_Constraint
=>
10985 (1 => False, -- unused
10986 2 => True, -- Digits_Expression (Node2)
10987 3 => False, -- unused
10988 4 => True, -- Range_Constraint (Node4)
10989 5 => False), -- unused
10991 N_Unconstrained_Array_Definition
=>
10992 (1 => False, -- unused
10993 2 => True, -- Subtype_Marks (List2)
10994 3 => False, -- unused
10995 4 => True, -- Component_Definition (Node4)
10996 5 => False), -- unused
10998 N_Constrained_Array_Definition
=>
10999 (1 => False, -- unused
11000 2 => True, -- Discrete_Subtype_Definitions (List2)
11001 3 => False, -- unused
11002 4 => True, -- Component_Definition (Node4)
11003 5 => False), -- unused
11005 N_Component_Definition
=>
11006 (1 => False, -- unused
11007 2 => False, -- unused
11008 3 => True, -- Access_Definition (Node3)
11009 4 => False, -- unused
11010 5 => True), -- Subtype_Indication (Node5)
11012 N_Discriminant_Specification
=>
11013 (1 => True, -- Defining_Identifier (Node1)
11014 2 => False, -- unused
11015 3 => True, -- Expression (Node3)
11016 4 => False, -- unused
11017 5 => True), -- Discriminant_Type (Node5)
11019 N_Index_Or_Discriminant_Constraint
=>
11020 (1 => True, -- Constraints (List1)
11021 2 => False, -- unused
11022 3 => False, -- unused
11023 4 => False, -- unused
11024 5 => False), -- unused
11026 N_Discriminant_Association
=>
11027 (1 => True, -- Selector_Names (List1)
11028 2 => False, -- unused
11029 3 => True, -- Expression (Node3)
11030 4 => False, -- unused
11031 5 => False), -- unused
11033 N_Record_Definition
=>
11034 (1 => True, -- Component_List (Node1)
11035 2 => True, -- Interface_List (List2)
11036 3 => False, -- unused
11037 4 => True, -- End_Label (Node4)
11038 5 => False), -- unused
11040 N_Component_List
=>
11041 (1 => False, -- unused
11042 2 => False, -- unused
11043 3 => True, -- Component_Items (List3)
11044 4 => True, -- Variant_Part (Node4)
11045 5 => False), -- unused
11047 N_Component_Declaration
=>
11048 (1 => True, -- Defining_Identifier (Node1)
11049 2 => False, -- unused
11050 3 => True, -- Expression (Node3)
11051 4 => True, -- Component_Definition (Node4)
11052 5 => False), -- unused
11055 (1 => True, -- Variants (List1)
11056 2 => True, -- Name (Node2)
11057 3 => False, -- unused
11058 4 => False, -- unused
11059 5 => False), -- unused
11062 (1 => True, -- Component_List (Node1)
11063 2 => False, -- Enclosing_Variant (Node2-Sem)
11064 3 => False, -- Present_Expr (Uint3-Sem)
11065 4 => True, -- Discrete_Choices (List4)
11066 5 => False), -- Dcheck_Function (Node5-Sem)
11069 (1 => False, -- Others_Discrete_Choices (List1-Sem)
11070 2 => False, -- unused
11071 3 => False, -- unused
11072 4 => False, -- unused
11073 5 => False), -- unused
11075 N_Access_To_Object_Definition
=>
11076 (1 => False, -- unused
11077 2 => False, -- unused
11078 3 => False, -- unused
11079 4 => False, -- unused
11080 5 => True), -- Subtype_Indication (Node5)
11082 N_Access_Function_Definition
=>
11083 (1 => False, -- unused
11084 2 => False, -- unused
11085 3 => True, -- Parameter_Specifications (List3)
11086 4 => True, -- Result_Definition (Node4)
11087 5 => False), -- unused
11089 N_Access_Procedure_Definition
=>
11090 (1 => False, -- unused
11091 2 => False, -- unused
11092 3 => True, -- Parameter_Specifications (List3)
11093 4 => False, -- unused
11094 5 => False), -- unused
11096 N_Access_Definition
=>
11097 (1 => False, -- unused
11098 2 => False, -- unused
11099 3 => True, -- Access_To_Subprogram_Definition (Node3)
11100 4 => True, -- Subtype_Mark (Node4)
11101 5 => False), -- unused
11103 N_Incomplete_Type_Declaration
=>
11104 (1 => True, -- Defining_Identifier (Node1)
11105 2 => False, -- unused
11106 3 => False, -- unused
11107 4 => True, -- Discriminant_Specifications (List4)
11108 5 => False), -- Premature_Use
11110 N_Explicit_Dereference
=>
11111 (1 => False, -- unused
11112 2 => False, -- unused
11113 3 => True, -- Prefix (Node3)
11114 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11115 5 => False), -- Etype (Node5-Sem)
11117 N_Indexed_Component
=>
11118 (1 => True, -- Expressions (List1)
11119 2 => False, -- unused
11120 3 => True, -- Prefix (Node3)
11121 4 => False, -- Generalized_Indexing (Node4-Sem)
11122 5 => False), -- Etype (Node5-Sem)
11125 (1 => False, -- unused
11126 2 => False, -- unused
11127 3 => True, -- Prefix (Node3)
11128 4 => True, -- Discrete_Range (Node4)
11129 5 => False), -- Etype (Node5-Sem)
11131 N_Selected_Component
=>
11132 (1 => False, -- unused
11133 2 => True, -- Selector_Name (Node2)
11134 3 => True, -- Prefix (Node3)
11135 4 => False, -- unused
11136 5 => False), -- Etype (Node5-Sem)
11138 N_Attribute_Reference
=>
11139 (1 => True, -- Expressions (List1)
11140 2 => True, -- Attribute_Name (Name2)
11141 3 => True, -- Prefix (Node3)
11142 4 => False, -- Entity (Node4-Sem)
11143 5 => False), -- Etype (Node5-Sem)
11146 (1 => True, -- Expressions (List1)
11147 2 => True, -- Component_Associations (List2)
11148 3 => False, -- Aggregate_Bounds (Node3-Sem)
11149 4 => False, -- unused
11150 5 => False), -- Etype (Node5-Sem)
11152 N_Component_Association
=>
11153 (1 => True, -- Choices (List1)
11154 2 => False, -- Loop_Actions (List2-Sem)
11155 3 => True, -- Expression (Node3)
11156 4 => False, -- unused
11157 5 => False), -- unused
11159 N_Extension_Aggregate
=>
11160 (1 => True, -- Expressions (List1)
11161 2 => True, -- Component_Associations (List2)
11162 3 => True, -- Ancestor_Part (Node3)
11163 4 => False, -- unused
11164 5 => False), -- Etype (Node5-Sem)
11167 (1 => False, -- unused
11168 2 => False, -- unused
11169 3 => False, -- unused
11170 4 => False, -- unused
11171 5 => False), -- Etype (Node5-Sem)
11174 (1 => False, -- Actions (List1-Sem)
11175 2 => True, -- Left_Opnd (Node2)
11176 3 => True, -- Right_Opnd (Node3)
11177 4 => False, -- unused
11178 5 => False), -- Etype (Node5-Sem)
11181 (1 => False, -- Actions (List1-Sem)
11182 2 => True, -- Left_Opnd (Node2)
11183 3 => True, -- Right_Opnd (Node3)
11184 4 => False, -- unused
11185 5 => False), -- Etype (Node5-Sem)
11188 (1 => False, -- unused
11189 2 => True, -- Left_Opnd (Node2)
11190 3 => True, -- Right_Opnd (Node3)
11191 4 => True, -- Alternatives (List4)
11192 5 => False), -- Etype (Node5-Sem)
11195 (1 => False, -- unused
11196 2 => True, -- Left_Opnd (Node2)
11197 3 => True, -- Right_Opnd (Node3)
11198 4 => True, -- Alternatives (List4)
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 => True, -- Left_Opnd (Node2)
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 => True, -- Left_Opnd (Node2)
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 => True, -- Left_Opnd (Node2)
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 => True, -- Left_Opnd (Node2)
11232 3 => True, -- Right_Opnd (Node3)
11233 4 => False, -- Entity (Node4-Sem)
11234 5 => False), -- Etype (Node5-Sem)
11237 (1 => True, -- Chars (Name1)
11238 2 => True, -- Left_Opnd (Node2)
11239 3 => True, -- Right_Opnd (Node3)
11240 4 => False, -- Entity (Node4-Sem)
11241 5 => False), -- Etype (Node5-Sem)
11244 (1 => True, -- Chars (Name1)
11245 2 => True, -- Left_Opnd (Node2)
11246 3 => True, -- Right_Opnd (Node3)
11247 4 => False, -- Entity (Node4-Sem)
11248 5 => False), -- Etype (Node5-Sem)
11251 (1 => True, -- Chars (Name1)
11252 2 => True, -- Left_Opnd (Node2)
11253 3 => True, -- Right_Opnd (Node3)
11254 4 => False, -- Entity (Node4-Sem)
11255 5 => False), -- Etype (Node5-Sem)
11258 (1 => True, -- Chars (Name1)
11259 2 => True, -- Left_Opnd (Node2)
11260 3 => True, -- Right_Opnd (Node3)
11261 4 => False, -- Entity (Node4-Sem)
11262 5 => False), -- Etype (Node5-Sem)
11265 (1 => True, -- Chars (Name1)
11266 2 => True, -- Left_Opnd (Node2)
11267 3 => True, -- Right_Opnd (Node3)
11268 4 => False, -- Entity (Node4-Sem)
11269 5 => False), -- Etype (Node5-Sem)
11272 (1 => True, -- Chars (Name1)
11273 2 => True, -- Left_Opnd (Node2)
11274 3 => True, -- Right_Opnd (Node3)
11275 4 => False, -- Entity (Node4-Sem)
11276 5 => False), -- Etype (Node5-Sem)
11279 (1 => True, -- Chars (Name1)
11280 2 => True, -- Left_Opnd (Node2)
11281 3 => True, -- Right_Opnd (Node3)
11282 4 => False, -- Entity (Node4-Sem)
11283 5 => False), -- Etype (Node5-Sem)
11286 (1 => True, -- Chars (Name1)
11287 2 => True, -- Left_Opnd (Node2)
11288 3 => True, -- Right_Opnd (Node3)
11289 4 => False, -- Entity (Node4-Sem)
11290 5 => False), -- Etype (Node5-Sem)
11293 (1 => True, -- Chars (Name1)
11294 2 => True, -- Left_Opnd (Node2)
11295 3 => True, -- Right_Opnd (Node3)
11296 4 => False, -- Entity (Node4-Sem)
11297 5 => False), -- Etype (Node5-Sem)
11300 (1 => True, -- Chars (Name1)
11301 2 => True, -- Left_Opnd (Node2)
11302 3 => True, -- Right_Opnd (Node3)
11303 4 => False, -- Entity (Node4-Sem)
11304 5 => False), -- Etype (Node5-Sem)
11307 (1 => True, -- Chars (Name1)
11308 2 => True, -- Left_Opnd (Node2)
11309 3 => True, -- Right_Opnd (Node3)
11310 4 => False, -- Entity (Node4-Sem)
11311 5 => False), -- Etype (Node5-Sem)
11314 (1 => True, -- Chars (Name1)
11315 2 => True, -- Left_Opnd (Node2)
11316 3 => True, -- Right_Opnd (Node3)
11317 4 => False, -- Entity (Node4-Sem)
11318 5 => False), -- Etype (Node5-Sem)
11321 (1 => True, -- Chars (Name1)
11322 2 => False, -- unused
11323 3 => True, -- Right_Opnd (Node3)
11324 4 => False, -- Entity (Node4-Sem)
11325 5 => False), -- Etype (Node5-Sem)
11328 (1 => True, -- Chars (Name1)
11329 2 => False, -- unused
11330 3 => True, -- Right_Opnd (Node3)
11331 4 => False, -- Entity (Node4-Sem)
11332 5 => False), -- Etype (Node5-Sem)
11335 (1 => True, -- Chars (Name1)
11336 2 => False, -- unused
11337 3 => True, -- Right_Opnd (Node3)
11338 4 => False, -- Entity (Node4-Sem)
11339 5 => False), -- Etype (Node5-Sem)
11342 (1 => True, -- Chars (Name1)
11343 2 => False, -- unused
11344 3 => True, -- Right_Opnd (Node3)
11345 4 => False, -- Entity (Node4-Sem)
11346 5 => False), -- Etype (Node5-Sem)
11348 N_Type_Conversion
=>
11349 (1 => False, -- unused
11350 2 => False, -- unused
11351 3 => True, -- Expression (Node3)
11352 4 => True, -- Subtype_Mark (Node4)
11353 5 => False), -- Etype (Node5-Sem)
11355 N_Qualified_Expression
=>
11356 (1 => False, -- unused
11357 2 => False, -- unused
11358 3 => True, -- Expression (Node3)
11359 4 => True, -- Subtype_Mark (Node4)
11360 5 => False), -- Etype (Node5-Sem)
11362 N_Quantified_Expression
=>
11363 (1 => True, -- Condition (Node1)
11364 2 => True, -- Iterator_Specification
11365 3 => False, -- unused
11366 4 => True, -- Loop_Parameter_Specification (Node4)
11367 5 => False), -- Etype (Node5-Sem)
11370 (1 => False, -- Storage_Pool (Node1-Sem)
11371 2 => False, -- Procedure_To_Call (Node2-Sem)
11372 3 => True, -- Expression (Node3)
11373 4 => True, -- Subpool_Handle_Name (Node4)
11374 5 => False), -- Etype (Node5-Sem)
11376 N_Null_Statement
=>
11377 (1 => False, -- unused
11378 2 => False, -- unused
11379 3 => False, -- unused
11380 4 => False, -- unused
11381 5 => False), -- unused
11384 (1 => True, -- Identifier (Node1)
11385 2 => False, -- unused
11386 3 => False, -- unused
11387 4 => False, -- unused
11388 5 => False), -- unused
11390 N_Assignment_Statement
=>
11391 (1 => False, -- unused
11392 2 => True, -- Name (Node2)
11393 3 => True, -- Expression (Node3)
11394 4 => False, -- unused
11395 5 => False), -- unused
11398 (1 => True, -- Condition (Node1)
11399 2 => True, -- Then_Statements (List2)
11400 3 => True, -- Elsif_Parts (List3)
11401 4 => True, -- Else_Statements (List4)
11402 5 => True), -- End_Span (Uint5)
11405 (1 => True, -- Condition (Node1)
11406 2 => True, -- Then_Statements (List2)
11407 3 => False, -- Condition_Actions (List3-Sem)
11408 4 => False, -- unused
11409 5 => False), -- unused
11411 N_Case_Expression
=>
11412 (1 => False, -- unused
11413 2 => False, -- unused
11414 3 => True, -- Expression (Node3)
11415 4 => True, -- Alternatives (List4)
11416 5 => False), -- unused
11418 N_Case_Expression_Alternative
=>
11419 (1 => False, -- Actions (List1-Sem)
11420 2 => False, -- unused
11421 3 => True, -- Statements (List3)
11422 4 => True, -- Expression (Node4)
11423 5 => False), -- unused
11425 N_Case_Statement
=>
11426 (1 => False, -- unused
11427 2 => False, -- unused
11428 3 => True, -- Expression (Node3)
11429 4 => True, -- Alternatives (List4)
11430 5 => True), -- End_Span (Uint5)
11432 N_Case_Statement_Alternative
=>
11433 (1 => False, -- unused
11434 2 => False, -- unused
11435 3 => True, -- Statements (List3)
11436 4 => True, -- Discrete_Choices (List4)
11437 5 => False), -- unused
11439 N_Loop_Statement
=>
11440 (1 => True, -- Identifier (Node1)
11441 2 => True, -- Iteration_Scheme (Node2)
11442 3 => True, -- Statements (List3)
11443 4 => True, -- End_Label (Node4)
11444 5 => False), -- unused
11446 N_Iteration_Scheme
=>
11447 (1 => True, -- Condition (Node1)
11448 2 => True, -- Iterator_Specification (Node2)
11449 3 => False, -- Condition_Actions (List3-Sem)
11450 4 => True, -- Loop_Parameter_Specification (Node4)
11451 5 => False), -- unused
11453 N_Loop_Parameter_Specification
=>
11454 (1 => True, -- Defining_Identifier (Node1)
11455 2 => False, -- unused
11456 3 => False, -- unused
11457 4 => True, -- Discrete_Subtype_Definition (Node4)
11458 5 => False), -- unused
11460 N_Iterator_Specification
=>
11461 (1 => True, -- Defining_Identifier (Node1)
11462 2 => True, -- Name (Node2)
11463 3 => False, -- Unused
11464 4 => False, -- Unused
11465 5 => True), -- Subtype_Indication (Node5)
11467 N_Block_Statement
=>
11468 (1 => True, -- Identifier (Node1)
11469 2 => True, -- Declarations (List2)
11470 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11471 4 => True, -- Handled_Statement_Sequence (Node4)
11472 5 => False), -- unused
11474 N_Exit_Statement
=>
11475 (1 => True, -- Condition (Node1)
11476 2 => True, -- Name (Node2)
11477 3 => False, -- unused
11478 4 => False, -- unused
11479 5 => False), -- unused
11481 N_Goto_Statement
=>
11482 (1 => False, -- unused
11483 2 => True, -- Name (Node2)
11484 3 => False, -- unused
11485 4 => False, -- unused
11486 5 => False), -- unused
11488 N_Subprogram_Declaration
=>
11489 (1 => True, -- Specification (Node1)
11490 2 => False, -- unused
11491 3 => False, -- Body_To_Inline (Node3-Sem)
11492 4 => False, -- Parent_Spec (Node4-Sem)
11493 5 => False), -- Corresponding_Body (Node5-Sem)
11495 N_Abstract_Subprogram_Declaration
=>
11496 (1 => True, -- Specification (Node1)
11497 2 => False, -- unused
11498 3 => False, -- unused
11499 4 => False, -- unused
11500 5 => False), -- unused
11502 N_Function_Specification
=>
11503 (1 => True, -- Defining_Unit_Name (Node1)
11504 2 => False, -- Elaboration_Boolean (Node2-Sem)
11505 3 => True, -- Parameter_Specifications (List3)
11506 4 => True, -- Result_Definition (Node4)
11507 5 => False), -- Generic_Parent (Node5-Sem)
11509 N_Procedure_Specification
=>
11510 (1 => True, -- Defining_Unit_Name (Node1)
11511 2 => False, -- Elaboration_Boolean (Node2-Sem)
11512 3 => True, -- Parameter_Specifications (List3)
11513 4 => False, -- unused
11514 5 => False), -- Generic_Parent (Node5-Sem)
11517 (1 => True, -- Identifier (Node1)
11518 2 => True, -- Name (Node2)
11519 3 => False, -- unused
11520 4 => False, -- unused
11521 5 => False), -- unused
11523 N_Defining_Program_Unit_Name
=>
11524 (1 => True, -- Defining_Identifier (Node1)
11525 2 => True, -- Name (Node2)
11526 3 => False, -- unused
11527 4 => False, -- unused
11528 5 => False), -- unused
11530 N_Operator_Symbol
=>
11531 (1 => True, -- Chars (Name1)
11532 2 => False, -- unused
11533 3 => True, -- Strval (Str3)
11534 4 => False, -- Entity (Node4-Sem)
11535 5 => False), -- Etype (Node5-Sem)
11537 N_Defining_Operator_Symbol
=>
11538 (1 => True, -- Chars (Name1)
11539 2 => False, -- Next_Entity (Node2-Sem)
11540 3 => False, -- Scope (Node3-Sem)
11541 4 => False, -- unused
11542 5 => False), -- Etype (Node5-Sem)
11544 N_Parameter_Specification
=>
11545 (1 => True, -- Defining_Identifier (Node1)
11546 2 => True, -- Parameter_Type (Node2)
11547 3 => True, -- Expression (Node3)
11548 4 => False, -- unused
11549 5 => False), -- Default_Expression (Node5-Sem)
11551 N_Subprogram_Body
=>
11552 (1 => True, -- Specification (Node1)
11553 2 => True, -- Declarations (List2)
11554 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11555 4 => True, -- Handled_Statement_Sequence (Node4)
11556 5 => False), -- Corresponding_Spec (Node5-Sem)
11558 N_Expression_Function
=>
11559 (1 => True, -- Specification (Node1)
11560 2 => False, -- unused
11561 3 => True, -- Expression (Node3)
11562 4 => False, -- unused
11563 5 => False), -- unused
11565 N_Procedure_Call_Statement
=>
11566 (1 => False, -- Controlling_Argument (Node1-Sem)
11567 2 => True, -- Name (Node2)
11568 3 => True, -- Parameter_Associations (List3)
11569 4 => False, -- First_Named_Actual (Node4-Sem)
11570 5 => False), -- Etype (Node5-Sem)
11573 (1 => False, -- Controlling_Argument (Node1-Sem)
11574 2 => True, -- Name (Node2)
11575 3 => True, -- Parameter_Associations (List3)
11576 4 => False, -- First_Named_Actual (Node4-Sem)
11577 5 => False), -- Etype (Node5-Sem)
11579 N_Parameter_Association
=>
11580 (1 => False, -- unused
11581 2 => True, -- Selector_Name (Node2)
11582 3 => True, -- Explicit_Actual_Parameter (Node3)
11583 4 => False, -- Next_Named_Actual (Node4-Sem)
11584 5 => False), -- unused
11586 N_Simple_Return_Statement
=>
11587 (1 => False, -- Storage_Pool (Node1-Sem)
11588 2 => False, -- Procedure_To_Call (Node2-Sem)
11589 3 => True, -- Expression (Node3)
11590 4 => False, -- unused
11591 5 => False), -- Return_Statement_Entity (Node5-Sem)
11593 N_Extended_Return_Statement
=>
11594 (1 => False, -- Storage_Pool (Node1-Sem)
11595 2 => False, -- Procedure_To_Call (Node2-Sem)
11596 3 => True, -- Return_Object_Declarations (List3)
11597 4 => True, -- Handled_Statement_Sequence (Node4)
11598 5 => False), -- Return_Statement_Entity (Node5-Sem)
11600 N_Package_Declaration
=>
11601 (1 => True, -- Specification (Node1)
11602 2 => False, -- unused
11603 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11604 4 => False, -- Parent_Spec (Node4-Sem)
11605 5 => False), -- Corresponding_Body (Node5-Sem)
11607 N_Package_Specification
=>
11608 (1 => True, -- Defining_Unit_Name (Node1)
11609 2 => True, -- Visible_Declarations (List2)
11610 3 => True, -- Private_Declarations (List3)
11611 4 => True, -- End_Label (Node4)
11612 5 => False), -- Generic_Parent (Node5-Sem)
11615 (1 => True, -- Defining_Unit_Name (Node1)
11616 2 => True, -- Declarations (List2)
11617 3 => False, -- unused
11618 4 => True, -- Handled_Statement_Sequence (Node4)
11619 5 => False), -- Corresponding_Spec (Node5-Sem)
11621 N_Private_Type_Declaration
=>
11622 (1 => True, -- Defining_Identifier (Node1)
11623 2 => False, -- unused
11624 3 => False, -- unused
11625 4 => True, -- Discriminant_Specifications (List4)
11626 5 => False), -- unused
11628 N_Private_Extension_Declaration
=>
11629 (1 => True, -- Defining_Identifier (Node1)
11630 2 => True, -- Interface_List (List2)
11631 3 => False, -- unused
11632 4 => True, -- Discriminant_Specifications (List4)
11633 5 => True), -- Subtype_Indication (Node5)
11635 N_Use_Package_Clause
=>
11636 (1 => False, -- unused
11637 2 => True, -- Names (List2)
11638 3 => False, -- Next_Use_Clause (Node3-Sem)
11639 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11640 5 => False), -- unused
11642 N_Use_Type_Clause
=>
11643 (1 => False, -- unused
11644 2 => True, -- Subtype_Marks (List2)
11645 3 => False, -- Next_Use_Clause (Node3-Sem)
11646 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11647 5 => False), -- unused
11649 N_Object_Renaming_Declaration
=>
11650 (1 => True, -- Defining_Identifier (Node1)
11651 2 => True, -- Name (Node2)
11652 3 => True, -- Access_Definition (Node3)
11653 4 => True, -- Subtype_Mark (Node4)
11654 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11656 N_Exception_Renaming_Declaration
=>
11657 (1 => True, -- Defining_Identifier (Node1)
11658 2 => True, -- Name (Node2)
11659 3 => False, -- unused
11660 4 => False, -- unused
11661 5 => False), -- unused
11663 N_Package_Renaming_Declaration
=>
11664 (1 => True, -- Defining_Unit_Name (Node1)
11665 2 => True, -- Name (Node2)
11666 3 => False, -- unused
11667 4 => False, -- Parent_Spec (Node4-Sem)
11668 5 => False), -- unused
11670 N_Subprogram_Renaming_Declaration
=>
11671 (1 => True, -- Specification (Node1)
11672 2 => True, -- Name (Node2)
11673 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
11674 4 => False, -- Parent_Spec (Node4-Sem)
11675 5 => False), -- Corresponding_Spec (Node5-Sem)
11677 N_Generic_Package_Renaming_Declaration
=>
11678 (1 => True, -- Defining_Unit_Name (Node1)
11679 2 => True, -- Name (Node2)
11680 3 => False, -- unused
11681 4 => False, -- Parent_Spec (Node4-Sem)
11682 5 => False), -- unused
11684 N_Generic_Procedure_Renaming_Declaration
=>
11685 (1 => True, -- Defining_Unit_Name (Node1)
11686 2 => True, -- Name (Node2)
11687 3 => False, -- unused
11688 4 => False, -- Parent_Spec (Node4-Sem)
11689 5 => False), -- unused
11691 N_Generic_Function_Renaming_Declaration
=>
11692 (1 => True, -- Defining_Unit_Name (Node1)
11693 2 => True, -- Name (Node2)
11694 3 => False, -- unused
11695 4 => False, -- Parent_Spec (Node4-Sem)
11696 5 => False), -- unused
11698 N_Task_Type_Declaration
=>
11699 (1 => True, -- Defining_Identifier (Node1)
11700 2 => True, -- Interface_List (List2)
11701 3 => True, -- Task_Definition (Node3)
11702 4 => True, -- Discriminant_Specifications (List4)
11703 5 => False), -- Corresponding_Body (Node5-Sem)
11705 N_Single_Task_Declaration
=>
11706 (1 => True, -- Defining_Identifier (Node1)
11707 2 => True, -- Interface_List (List2)
11708 3 => True, -- Task_Definition (Node3)
11709 4 => False, -- unused
11710 5 => False), -- unused
11712 N_Task_Definition
=>
11713 (1 => False, -- unused
11714 2 => True, -- Visible_Declarations (List2)
11715 3 => True, -- Private_Declarations (List3)
11716 4 => True, -- End_Label (Node4)
11717 5 => False), -- unused
11720 (1 => True, -- Defining_Identifier (Node1)
11721 2 => True, -- Declarations (List2)
11722 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11723 4 => True, -- Handled_Statement_Sequence (Node4)
11724 5 => False), -- Corresponding_Spec (Node5-Sem)
11726 N_Protected_Type_Declaration
=>
11727 (1 => True, -- Defining_Identifier (Node1)
11728 2 => True, -- Interface_List (List2)
11729 3 => True, -- Protected_Definition (Node3)
11730 4 => True, -- Discriminant_Specifications (List4)
11731 5 => False), -- Corresponding_Body (Node5-Sem)
11733 N_Single_Protected_Declaration
=>
11734 (1 => True, -- Defining_Identifier (Node1)
11735 2 => True, -- Interface_List (List2)
11736 3 => True, -- Protected_Definition (Node3)
11737 4 => False, -- unused
11738 5 => False), -- unused
11740 N_Protected_Definition
=>
11741 (1 => False, -- unused
11742 2 => True, -- Visible_Declarations (List2)
11743 3 => True, -- Private_Declarations (List3)
11744 4 => True, -- End_Label (Node4)
11745 5 => False), -- unused
11747 N_Protected_Body
=>
11748 (1 => True, -- Defining_Identifier (Node1)
11749 2 => True, -- Declarations (List2)
11750 3 => False, -- unused
11751 4 => True, -- End_Label (Node4)
11752 5 => False), -- Corresponding_Spec (Node5-Sem)
11754 N_Entry_Declaration
=>
11755 (1 => True, -- Defining_Identifier (Node1)
11756 2 => False, -- unused
11757 3 => True, -- Parameter_Specifications (List3)
11758 4 => True, -- Discrete_Subtype_Definition (Node4)
11759 5 => False), -- Corresponding_Body (Node5-Sem)
11761 N_Accept_Statement
=>
11762 (1 => True, -- Entry_Direct_Name (Node1)
11763 2 => True, -- Declarations (List2)
11764 3 => True, -- Parameter_Specifications (List3)
11765 4 => True, -- Handled_Statement_Sequence (Node4)
11766 5 => True), -- Entry_Index (Node5)
11769 (1 => True, -- Defining_Identifier (Node1)
11770 2 => True, -- Declarations (List2)
11771 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11772 4 => True, -- Handled_Statement_Sequence (Node4)
11773 5 => True), -- Entry_Body_Formal_Part (Node5)
11775 N_Entry_Body_Formal_Part
=>
11776 (1 => True, -- Condition (Node1)
11777 2 => False, -- unused
11778 3 => True, -- Parameter_Specifications (List3)
11779 4 => True, -- Entry_Index_Specification (Node4)
11780 5 => False), -- unused
11782 N_Entry_Index_Specification
=>
11783 (1 => True, -- Defining_Identifier (Node1)
11784 2 => False, -- unused
11785 3 => False, -- unused
11786 4 => True, -- Discrete_Subtype_Definition (Node4)
11787 5 => False), -- unused
11789 N_Entry_Call_Statement
=>
11790 (1 => False, -- unused
11791 2 => True, -- Name (Node2)
11792 3 => True, -- Parameter_Associations (List3)
11793 4 => False, -- First_Named_Actual (Node4-Sem)
11794 5 => False), -- unused
11796 N_Requeue_Statement
=>
11797 (1 => False, -- unused
11798 2 => True, -- Name (Node2)
11799 3 => False, -- unused
11800 4 => False, -- unused
11801 5 => False), -- unused
11803 N_Delay_Until_Statement
=>
11804 (1 => False, -- unused
11805 2 => False, -- unused
11806 3 => True, -- Expression (Node3)
11807 4 => False, -- unused
11808 5 => False), -- unused
11810 N_Delay_Relative_Statement
=>
11811 (1 => False, -- unused
11812 2 => False, -- unused
11813 3 => True, -- Expression (Node3)
11814 4 => False, -- unused
11815 5 => False), -- unused
11817 N_Selective_Accept
=>
11818 (1 => True, -- Select_Alternatives (List1)
11819 2 => False, -- unused
11820 3 => False, -- unused
11821 4 => True, -- Else_Statements (List4)
11822 5 => False), -- unused
11824 N_Accept_Alternative
=>
11825 (1 => True, -- Condition (Node1)
11826 2 => True, -- Accept_Statement (Node2)
11827 3 => True, -- Statements (List3)
11828 4 => True, -- Pragmas_Before (List4)
11829 5 => False), -- Accept_Handler_Records (List5-Sem)
11831 N_Delay_Alternative
=>
11832 (1 => True, -- Condition (Node1)
11833 2 => True, -- Delay_Statement (Node2)
11834 3 => True, -- Statements (List3)
11835 4 => True, -- Pragmas_Before (List4)
11836 5 => False), -- unused
11838 N_Terminate_Alternative
=>
11839 (1 => True, -- Condition (Node1)
11840 2 => False, -- unused
11841 3 => False, -- unused
11842 4 => True, -- Pragmas_Before (List4)
11843 5 => True), -- Pragmas_After (List5)
11845 N_Timed_Entry_Call
=>
11846 (1 => True, -- Entry_Call_Alternative (Node1)
11847 2 => False, -- unused
11848 3 => False, -- unused
11849 4 => True, -- Delay_Alternative (Node4)
11850 5 => False), -- unused
11852 N_Entry_Call_Alternative
=>
11853 (1 => True, -- Entry_Call_Statement (Node1)
11854 2 => False, -- unused
11855 3 => True, -- Statements (List3)
11856 4 => True, -- Pragmas_Before (List4)
11857 5 => False), -- unused
11859 N_Conditional_Entry_Call
=>
11860 (1 => True, -- Entry_Call_Alternative (Node1)
11861 2 => False, -- unused
11862 3 => False, -- unused
11863 4 => True, -- Else_Statements (List4)
11864 5 => False), -- unused
11866 N_Asynchronous_Select
=>
11867 (1 => True, -- Triggering_Alternative (Node1)
11868 2 => True, -- Abortable_Part (Node2)
11869 3 => False, -- unused
11870 4 => False, -- unused
11871 5 => False), -- unused
11873 N_Triggering_Alternative
=>
11874 (1 => True, -- Triggering_Statement (Node1)
11875 2 => False, -- unused
11876 3 => True, -- Statements (List3)
11877 4 => True, -- Pragmas_Before (List4)
11878 5 => False), -- unused
11880 N_Abortable_Part
=>
11881 (1 => False, -- unused
11882 2 => False, -- unused
11883 3 => True, -- Statements (List3)
11884 4 => False, -- unused
11885 5 => False), -- unused
11887 N_Abort_Statement
=>
11888 (1 => False, -- unused
11889 2 => True, -- Names (List2)
11890 3 => False, -- unused
11891 4 => False, -- unused
11892 5 => False), -- unused
11894 N_Compilation_Unit
=>
11895 (1 => True, -- Context_Items (List1)
11896 2 => True, -- Unit (Node2)
11897 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
11898 4 => False, -- Library_Unit (Node4-Sem)
11899 5 => True), -- Aux_Decls_Node (Node5)
11901 N_Compilation_Unit_Aux
=>
11902 (1 => True, -- Actions (List1)
11903 2 => True, -- Declarations (List2)
11904 3 => False, -- Default_Storage_Pool (Node3)
11905 4 => True, -- Config_Pragmas (List4)
11906 5 => True), -- Pragmas_After (List5)
11909 (1 => False, -- unused
11910 2 => True, -- Name (Node2)
11911 3 => False, -- unused
11912 4 => False, -- Library_Unit (Node4-Sem)
11913 5 => False), -- Corresponding_Spec (Node5-Sem)
11915 N_Subprogram_Body_Stub
=>
11916 (1 => True, -- Specification (Node1)
11917 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11918 3 => False, -- unused
11919 4 => False, -- Library_Unit (Node4-Sem)
11920 5 => False), -- Corresponding_Body (Node5-Sem)
11922 N_Package_Body_Stub
=>
11923 (1 => True, -- Defining_Identifier (Node1)
11924 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11925 3 => False, -- unused
11926 4 => False, -- Library_Unit (Node4-Sem)
11927 5 => False), -- Corresponding_Body (Node5-Sem)
11929 N_Task_Body_Stub
=>
11930 (1 => True, -- Defining_Identifier (Node1)
11931 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11932 3 => False, -- unused
11933 4 => False, -- Library_Unit (Node4-Sem)
11934 5 => False), -- Corresponding_Body (Node5-Sem)
11936 N_Protected_Body_Stub
=>
11937 (1 => True, -- Defining_Identifier (Node1)
11938 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11939 3 => False, -- unused
11940 4 => False, -- Library_Unit (Node4-Sem)
11941 5 => False), -- Corresponding_Body (Node5-Sem)
11944 (1 => True, -- Proper_Body (Node1)
11945 2 => True, -- Name (Node2)
11946 3 => False, -- Corresponding_Stub (Node3-Sem)
11947 4 => False, -- unused
11948 5 => False), -- unused
11950 N_Exception_Declaration
=>
11951 (1 => True, -- Defining_Identifier (Node1)
11952 2 => False, -- unused
11953 3 => False, -- Expression (Node3-Sem)
11954 4 => False, -- unused
11955 5 => False), -- unused
11957 N_Handled_Sequence_Of_Statements
=>
11958 (1 => True, -- At_End_Proc (Node1)
11959 2 => False, -- First_Real_Statement (Node2-Sem)
11960 3 => True, -- Statements (List3)
11961 4 => True, -- End_Label (Node4)
11962 5 => True), -- Exception_Handlers (List5)
11964 N_Exception_Handler
=>
11965 (1 => False, -- Local_Raise_Statements (Elist1)
11966 2 => True, -- Choice_Parameter (Node2)
11967 3 => True, -- Statements (List3)
11968 4 => True, -- Exception_Choices (List4)
11969 5 => False), -- Exception_Label (Node5)
11971 N_Raise_Statement
=>
11972 (1 => False, -- unused
11973 2 => True, -- Name (Node2)
11974 3 => True, -- Expression (Node3)
11975 4 => False, -- unused
11976 5 => False), -- unused
11978 N_Raise_Expression
=>
11979 (1 => False, -- unused
11980 2 => True, -- Name (Node2)
11981 3 => True, -- Expression (Node3)
11982 4 => False, -- unused
11983 5 => False), -- Etype (Node5-Sem)
11985 N_Generic_Subprogram_Declaration
=>
11986 (1 => True, -- Specification (Node1)
11987 2 => True, -- Generic_Formal_Declarations (List2)
11988 3 => False, -- unused
11989 4 => False, -- Parent_Spec (Node4-Sem)
11990 5 => False), -- Corresponding_Body (Node5-Sem)
11992 N_Generic_Package_Declaration
=>
11993 (1 => True, -- Specification (Node1)
11994 2 => True, -- Generic_Formal_Declarations (List2)
11995 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11996 4 => False, -- Parent_Spec (Node4-Sem)
11997 5 => False), -- Corresponding_Body (Node5-Sem)
11999 N_Package_Instantiation
=>
12000 (1 => True, -- Defining_Unit_Name (Node1)
12001 2 => True, -- Name (Node2)
12002 3 => True, -- Generic_Associations (List3)
12003 4 => False, -- Parent_Spec (Node4-Sem)
12004 5 => False), -- Instance_Spec (Node5-Sem)
12006 N_Procedure_Instantiation
=>
12007 (1 => True, -- Defining_Unit_Name (Node1)
12008 2 => True, -- Name (Node2)
12009 3 => True, -- Generic_Associations (List3)
12010 4 => False, -- Parent_Spec (Node4-Sem)
12011 5 => False), -- Instance_Spec (Node5-Sem)
12013 N_Function_Instantiation
=>
12014 (1 => True, -- Defining_Unit_Name (Node1)
12015 2 => True, -- Name (Node2)
12016 3 => True, -- Generic_Associations (List3)
12017 4 => False, -- Parent_Spec (Node4-Sem)
12018 5 => False), -- Instance_Spec (Node5-Sem)
12020 N_Generic_Association
=>
12021 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
12022 2 => True, -- Selector_Name (Node2)
12023 3 => False, -- unused
12024 4 => False, -- unused
12025 5 => False), -- unused
12027 N_Formal_Object_Declaration
=>
12028 (1 => True, -- Defining_Identifier (Node1)
12029 2 => False, -- unused
12030 3 => True, -- Access_Definition (Node3)
12031 4 => True, -- Subtype_Mark (Node4)
12032 5 => True), -- Default_Expression (Node5)
12034 N_Formal_Type_Declaration
=>
12035 (1 => True, -- Defining_Identifier (Node1)
12036 2 => False, -- unused
12037 3 => True, -- Formal_Type_Definition (Node3)
12038 4 => True, -- Discriminant_Specifications (List4)
12039 5 => False), -- unused
12041 N_Formal_Private_Type_Definition
=>
12042 (1 => False, -- unused
12043 2 => False, -- unused
12044 3 => False, -- unused
12045 4 => False, -- unused
12046 5 => False), -- unused
12048 N_Formal_Incomplete_Type_Definition
=>
12049 (1 => False, -- unused
12050 2 => False, -- unused
12051 3 => False, -- unused
12052 4 => False, -- unused
12053 5 => False), -- unused
12055 N_Formal_Derived_Type_Definition
=>
12056 (1 => False, -- unused
12057 2 => True, -- Interface_List (List2)
12058 3 => False, -- unused
12059 4 => True, -- Subtype_Mark (Node4)
12060 5 => False), -- unused
12062 N_Formal_Discrete_Type_Definition
=>
12063 (1 => False, -- unused
12064 2 => False, -- unused
12065 3 => False, -- unused
12066 4 => False, -- unused
12067 5 => False), -- unused
12069 N_Formal_Signed_Integer_Type_Definition
=>
12070 (1 => False, -- unused
12071 2 => False, -- unused
12072 3 => False, -- unused
12073 4 => False, -- unused
12074 5 => False), -- unused
12076 N_Formal_Modular_Type_Definition
=>
12077 (1 => False, -- unused
12078 2 => False, -- unused
12079 3 => False, -- unused
12080 4 => False, -- unused
12081 5 => False), -- unused
12083 N_Formal_Floating_Point_Definition
=>
12084 (1 => False, -- unused
12085 2 => False, -- unused
12086 3 => False, -- unused
12087 4 => False, -- unused
12088 5 => False), -- unused
12090 N_Formal_Ordinary_Fixed_Point_Definition
=>
12091 (1 => False, -- unused
12092 2 => False, -- unused
12093 3 => False, -- unused
12094 4 => False, -- unused
12095 5 => False), -- unused
12097 N_Formal_Decimal_Fixed_Point_Definition
=>
12098 (1 => False, -- unused
12099 2 => False, -- unused
12100 3 => False, -- unused
12101 4 => False, -- unused
12102 5 => False), -- unused
12104 N_Formal_Concrete_Subprogram_Declaration
=>
12105 (1 => True, -- Specification (Node1)
12106 2 => True, -- Default_Name (Node2)
12107 3 => False, -- unused
12108 4 => False, -- unused
12109 5 => False), -- unused
12111 N_Formal_Abstract_Subprogram_Declaration
=>
12112 (1 => True, -- Specification (Node1)
12113 2 => True, -- Default_Name (Node2)
12114 3 => False, -- unused
12115 4 => False, -- unused
12116 5 => False), -- unused
12118 N_Formal_Package_Declaration
=>
12119 (1 => True, -- Defining_Identifier (Node1)
12120 2 => True, -- Name (Node2)
12121 3 => True, -- Generic_Associations (List3)
12122 4 => False, -- unused
12123 5 => False), -- Instance_Spec (Node5-Sem)
12125 N_Attribute_Definition_Clause
=>
12126 (1 => True, -- Chars (Name1)
12127 2 => True, -- Name (Node2)
12128 3 => True, -- Expression (Node3)
12129 4 => False, -- unused
12130 5 => False), -- Next_Rep_Item (Node5-Sem)
12132 N_Aspect_Specification
=>
12133 (1 => True, -- Identifier (Node1)
12134 2 => False, -- Aspect_Rep_Item (Node2-Sem)
12135 3 => True, -- Expression (Node3)
12136 4 => False, -- Entity (Node4-Sem)
12137 5 => False), -- Next_Rep_Item (Node5-Sem)
12139 N_Enumeration_Representation_Clause
=>
12140 (1 => True, -- Identifier (Node1)
12141 2 => False, -- unused
12142 3 => True, -- Array_Aggregate (Node3)
12143 4 => False, -- unused
12144 5 => False), -- Next_Rep_Item (Node5-Sem)
12146 N_Record_Representation_Clause
=>
12147 (1 => True, -- Identifier (Node1)
12148 2 => True, -- Mod_Clause (Node2)
12149 3 => True, -- Component_Clauses (List3)
12150 4 => False, -- unused
12151 5 => False), -- Next_Rep_Item (Node5-Sem)
12153 N_Component_Clause
=>
12154 (1 => True, -- Component_Name (Node1)
12155 2 => True, -- Position (Node2)
12156 3 => True, -- First_Bit (Node3)
12157 4 => True, -- Last_Bit (Node4)
12158 5 => False), -- unused
12160 N_Code_Statement
=>
12161 (1 => False, -- unused
12162 2 => False, -- unused
12163 3 => True, -- Expression (Node3)
12164 4 => False, -- unused
12165 5 => False), -- unused
12167 N_Op_Rotate_Left
=>
12168 (1 => True, -- Chars (Name1)
12169 2 => True, -- Left_Opnd (Node2)
12170 3 => True, -- Right_Opnd (Node3)
12171 4 => False, -- Entity (Node4-Sem)
12172 5 => False), -- Etype (Node5-Sem)
12174 N_Op_Rotate_Right
=>
12175 (1 => True, -- Chars (Name1)
12176 2 => True, -- Left_Opnd (Node2)
12177 3 => True, -- Right_Opnd (Node3)
12178 4 => False, -- Entity (Node4-Sem)
12179 5 => False), -- Etype (Node5-Sem)
12182 (1 => True, -- Chars (Name1)
12183 2 => True, -- Left_Opnd (Node2)
12184 3 => True, -- Right_Opnd (Node3)
12185 4 => False, -- Entity (Node4-Sem)
12186 5 => False), -- Etype (Node5-Sem)
12188 N_Op_Shift_Right_Arithmetic
=>
12189 (1 => True, -- Chars (Name1)
12190 2 => True, -- Left_Opnd (Node2)
12191 3 => True, -- Right_Opnd (Node3)
12192 4 => False, -- Entity (Node4-Sem)
12193 5 => False), -- Etype (Node5-Sem)
12195 N_Op_Shift_Right
=>
12196 (1 => True, -- Chars (Name1)
12197 2 => True, -- Left_Opnd (Node2)
12198 3 => True, -- Right_Opnd (Node3)
12199 4 => False, -- Entity (Node4-Sem)
12200 5 => False), -- Etype (Node5-Sem)
12202 N_Delta_Constraint
=>
12203 (1 => False, -- unused
12204 2 => False, -- unused
12205 3 => True, -- Delta_Expression (Node3)
12206 4 => True, -- Range_Constraint (Node4)
12207 5 => False), -- unused
12210 (1 => True, -- Identifier (Node1)
12211 2 => False, -- unused
12212 3 => True, -- Expression (Node3)
12213 4 => False, -- unused
12214 5 => False), -- unused
12217 (1 => False, -- unused
12218 2 => False, -- unused
12219 3 => True, -- Expression (Node3)
12220 4 => True, -- Pragmas_Before (List4)
12221 5 => False), -- unused
12224 (1 => True, -- Expressions (List1)
12225 2 => False, -- Then_Actions (List2-Sem)
12226 3 => False, -- Else_Actions (List3-Sem)
12227 4 => False, -- unused
12228 5 => False), -- Etype (Node5-Sem)
12230 N_Compound_Statement
=>
12231 (1 => True, -- Actions (List1)
12232 2 => False, -- unused
12233 3 => False, -- unused
12234 4 => False, -- unused
12235 5 => False), -- unused
12238 (1 => False, -- Pre_Post_Conditions (Node1)
12239 2 => False, -- Contract_Test_Cases (Node2)
12240 3 => False, -- Classifications (Node3)
12241 4 => False, -- unused
12242 5 => False), -- unused
12245 (1 => True, -- Chars (Name1)
12246 2 => True, -- Selector_Name (Node2)
12247 3 => True, -- Prefix (Node3)
12248 4 => False, -- Entity (Node4-Sem)
12249 5 => False), -- Etype (Node5-Sem)
12251 N_Expression_With_Actions
=>
12252 (1 => True, -- Actions (List1)
12253 2 => False, -- unused
12254 3 => True, -- Expression (Node3)
12255 4 => False, -- unused
12256 5 => False), -- unused
12258 N_Free_Statement
=>
12259 (1 => False, -- Storage_Pool (Node1-Sem)
12260 2 => False, -- Procedure_To_Call (Node2-Sem)
12261 3 => True, -- Expression (Node3)
12262 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
12263 5 => False), -- unused
12266 (1 => True, -- Actions (List1)
12267 2 => False, -- Access_Types_To_Process (Elist2-Sem)
12268 3 => False, -- TSS_Elist (Elist3-Sem)
12269 4 => False, -- Entity (Node4-Sem)
12270 5 => False), -- First_Subtype_Link (Node5-Sem)
12272 N_Freeze_Generic_Entity
=>
12273 (1 => False, -- unused
12274 2 => False, -- unused
12275 3 => False, -- unused
12276 4 => False, -- Entity (Node4-Sem)
12277 5 => False), -- unused
12279 N_Implicit_Label_Declaration
=>
12280 (1 => True, -- Defining_Identifier (Node1)
12281 2 => False, -- Label_Construct (Node2-Sem)
12282 3 => False, -- unused
12283 4 => False, -- unused
12284 5 => False), -- unused
12286 N_Itype_Reference
=>
12287 (1 => False, -- Itype (Node1-Sem)
12288 2 => False, -- unused
12289 3 => False, -- unused
12290 4 => False, -- unused
12291 5 => False), -- unused
12293 N_Raise_Constraint_Error
=>
12294 (1 => True, -- Condition (Node1)
12295 2 => False, -- unused
12296 3 => True, -- Reason (Uint3)
12297 4 => False, -- unused
12298 5 => False), -- Etype (Node5-Sem)
12300 N_Raise_Program_Error
=>
12301 (1 => True, -- Condition (Node1)
12302 2 => False, -- unused
12303 3 => True, -- Reason (Uint3)
12304 4 => False, -- unused
12305 5 => False), -- Etype (Node5-Sem)
12307 N_Raise_Storage_Error
=>
12308 (1 => True, -- Condition (Node1)
12309 2 => False, -- unused
12310 3 => True, -- Reason (Uint3)
12311 4 => False, -- unused
12312 5 => False), -- Etype (Node5-Sem)
12314 N_Push_Constraint_Error_Label
=>
12315 (1 => False, -- unused
12316 2 => False, -- unused
12317 3 => False, -- unused
12318 4 => False, -- unused
12319 5 => False), -- unused
12321 N_Push_Program_Error_Label
=>
12322 (1 => False, -- Exception_Label
12323 2 => False, -- unused
12324 3 => False, -- unused
12325 4 => False, -- unused
12326 5 => False), -- Exception_Label
12328 N_Push_Storage_Error_Label
=>
12329 (1 => False, -- Exception_Label
12330 2 => False, -- unused
12331 3 => False, -- unused
12332 4 => False, -- unused
12333 5 => False), -- Exception_Label
12335 N_Pop_Constraint_Error_Label
=>
12336 (1 => False, -- unused
12337 2 => False, -- unused
12338 3 => False, -- unused
12339 4 => False, -- unused
12340 5 => False), -- unused
12342 N_Pop_Program_Error_Label
=>
12343 (1 => False, -- unused
12344 2 => False, -- unused
12345 3 => False, -- unused
12346 4 => False, -- unused
12347 5 => False), -- unused
12349 N_Pop_Storage_Error_Label
=>
12350 (1 => False, -- unused
12351 2 => False, -- unused
12352 3 => False, -- unused
12353 4 => False, -- unused
12354 5 => False), -- unused
12357 (1 => False, -- unused
12358 2 => False, -- unused
12359 3 => True, -- Prefix (Node3)
12360 4 => False, -- unused
12361 5 => False), -- Etype (Node5-Sem)
12363 N_Unchecked_Expression
=>
12364 (1 => False, -- unused
12365 2 => False, -- unused
12366 3 => True, -- Expression (Node3)
12367 4 => False, -- unused
12368 5 => False), -- Etype (Node5-Sem)
12370 N_Unchecked_Type_Conversion
=>
12371 (1 => False, -- unused
12372 2 => False, -- unused
12373 3 => True, -- Expression (Node3)
12374 4 => True, -- Subtype_Mark (Node4)
12375 5 => False), -- Etype (Node5-Sem)
12377 N_Validate_Unchecked_Conversion
=>
12378 (1 => False, -- Source_Type (Node1-Sem)
12379 2 => False, -- Target_Type (Node2-Sem)
12380 3 => False, -- unused
12381 4 => False, -- unused
12382 5 => False), -- unused
12384 -- Entries for SCIL nodes
12386 N_SCIL_Dispatch_Table_Tag_Init
=>
12387 (1 => False, -- unused
12388 2 => False, -- unused
12389 3 => False, -- unused
12390 4 => False, -- SCIL_Entity (Node4-Sem)
12391 5 => False), -- unused
12393 N_SCIL_Dispatching_Call
=>
12394 (1 => False, -- unused
12395 2 => False, -- SCIL_Target_Prim (Node2-Sem)
12396 3 => False, -- unused
12397 4 => False, -- SCIL_Entity (Node4-Sem)
12398 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
12400 N_SCIL_Membership_Test
=>
12401 (1 => False, -- unused
12402 2 => False, -- unused
12403 3 => False, -- unused
12404 4 => False, -- SCIL_Entity (Node4-Sem)
12405 5 => False), -- SCIL_Tag_Value (Node5-Sem)
12407 -- Entries for Empty, Error and Unused. Even thought these have a Chars
12408 -- field for debugging purposes, they are not really syntactic fields, so
12409 -- we mark all fields as unused.
12412 (1 => False, -- unused
12413 2 => False, -- unused
12414 3 => False, -- unused
12415 4 => False, -- unused
12416 5 => False), -- unused
12419 (1 => False, -- unused
12420 2 => False, -- unused
12421 3 => False, -- unused
12422 4 => False, -- unused
12423 5 => False), -- unused
12425 N_Unused_At_Start
=>
12426 (1 => False, -- unused
12427 2 => False, -- unused
12428 3 => False, -- unused
12429 4 => False, -- unused
12430 5 => False), -- unused
12433 (1 => False, -- unused
12434 2 => False, -- unused
12435 3 => False, -- unused
12436 4 => False, -- unused
12437 5 => False)); -- unused
12439 --------------------
12440 -- Inline Pragmas --
12441 --------------------
12443 pragma Inline
(ABE_Is_Certain
);
12444 pragma Inline
(Abort_Present
);
12445 pragma Inline
(Abortable_Part
);
12446 pragma Inline
(Abstract_Present
);
12447 pragma Inline
(Accept_Handler_Records
);
12448 pragma Inline
(Accept_Statement
);
12449 pragma Inline
(Access_Definition
);
12450 pragma Inline
(Access_To_Subprogram_Definition
);
12451 pragma Inline
(Access_Types_To_Process
);
12452 pragma Inline
(Actions
);
12453 pragma Inline
(Activation_Chain_Entity
);
12454 pragma Inline
(Acts_As_Spec
);
12455 pragma Inline
(Actual_Designated_Subtype
);
12456 pragma Inline
(Address_Warning_Posted
);
12457 pragma Inline
(Aggregate_Bounds
);
12458 pragma Inline
(Aliased_Present
);
12459 pragma Inline
(All_Others
);
12460 pragma Inline
(All_Present
);
12461 pragma Inline
(Alternatives
);
12462 pragma Inline
(Ancestor_Part
);
12463 pragma Inline
(Atomic_Sync_Required
);
12464 pragma Inline
(Array_Aggregate
);
12465 pragma Inline
(Aspect_Rep_Item
);
12466 pragma Inline
(Assignment_OK
);
12467 pragma Inline
(Associated_Node
);
12468 pragma Inline
(At_End_Proc
);
12469 pragma Inline
(Attribute_Name
);
12470 pragma Inline
(Aux_Decls_Node
);
12471 pragma Inline
(Backwards_OK
);
12472 pragma Inline
(Bad_Is_Detected
);
12473 pragma Inline
(Body_To_Inline
);
12474 pragma Inline
(Body_Required
);
12475 pragma Inline
(By_Ref
);
12476 pragma Inline
(Box_Present
);
12477 pragma Inline
(Char_Literal_Value
);
12478 pragma Inline
(Chars
);
12479 pragma Inline
(Check_Address_Alignment
);
12480 pragma Inline
(Choice_Parameter
);
12481 pragma Inline
(Choices
);
12482 pragma Inline
(Class_Present
);
12483 pragma Inline
(Classifications
);
12484 pragma Inline
(Cleanup_Actions
);
12485 pragma Inline
(Comes_From_Extended_Return_Statement
);
12486 pragma Inline
(Compile_Time_Known_Aggregate
);
12487 pragma Inline
(Component_Associations
);
12488 pragma Inline
(Component_Clauses
);
12489 pragma Inline
(Component_Definition
);
12490 pragma Inline
(Component_Items
);
12491 pragma Inline
(Component_List
);
12492 pragma Inline
(Component_Name
);
12493 pragma Inline
(Componentwise_Assignment
);
12494 pragma Inline
(Condition
);
12495 pragma Inline
(Condition_Actions
);
12496 pragma Inline
(Config_Pragmas
);
12497 pragma Inline
(Constant_Present
);
12498 pragma Inline
(Constraint
);
12499 pragma Inline
(Constraints
);
12500 pragma Inline
(Context_Installed
);
12501 pragma Inline
(Context_Items
);
12502 pragma Inline
(Context_Pending
);
12503 pragma Inline
(Contract_Test_Cases
);
12504 pragma Inline
(Controlling_Argument
);
12505 pragma Inline
(Convert_To_Return_False
);
12506 pragma Inline
(Conversion_OK
);
12507 pragma Inline
(Corresponding_Aspect
);
12508 pragma Inline
(Corresponding_Body
);
12509 pragma Inline
(Corresponding_Formal_Spec
);
12510 pragma Inline
(Corresponding_Generic_Association
);
12511 pragma Inline
(Corresponding_Integer_Value
);
12512 pragma Inline
(Corresponding_Spec
);
12513 pragma Inline
(Corresponding_Spec_Of_Stub
);
12514 pragma Inline
(Corresponding_Stub
);
12515 pragma Inline
(Dcheck_Function
);
12516 pragma Inline
(Declarations
);
12517 pragma Inline
(Default_Expression
);
12518 pragma Inline
(Default_Storage_Pool
);
12519 pragma Inline
(Default_Name
);
12520 pragma Inline
(Defining_Identifier
);
12521 pragma Inline
(Defining_Unit_Name
);
12522 pragma Inline
(Delay_Alternative
);
12523 pragma Inline
(Delay_Statement
);
12524 pragma Inline
(Delta_Expression
);
12525 pragma Inline
(Digits_Expression
);
12526 pragma Inline
(Discr_Check_Funcs_Built
);
12527 pragma Inline
(Discrete_Choices
);
12528 pragma Inline
(Discrete_Range
);
12529 pragma Inline
(Discrete_Subtype_Definition
);
12530 pragma Inline
(Discrete_Subtype_Definitions
);
12531 pragma Inline
(Discriminant_Specifications
);
12532 pragma Inline
(Discriminant_Type
);
12533 pragma Inline
(Do_Accessibility_Check
);
12534 pragma Inline
(Do_Discriminant_Check
);
12535 pragma Inline
(Do_Length_Check
);
12536 pragma Inline
(Do_Division_Check
);
12537 pragma Inline
(Do_Overflow_Check
);
12538 pragma Inline
(Do_Range_Check
);
12539 pragma Inline
(Do_Storage_Check
);
12540 pragma Inline
(Do_Tag_Check
);
12541 pragma Inline
(Elaborate_Present
);
12542 pragma Inline
(Elaborate_All_Desirable
);
12543 pragma Inline
(Elaborate_All_Present
);
12544 pragma Inline
(Elaborate_Desirable
);
12545 pragma Inline
(Elaboration_Boolean
);
12546 pragma Inline
(Else_Actions
);
12547 pragma Inline
(Else_Statements
);
12548 pragma Inline
(Elsif_Parts
);
12549 pragma Inline
(Enclosing_Variant
);
12550 pragma Inline
(End_Label
);
12551 pragma Inline
(End_Span
);
12552 pragma Inline
(Entity
);
12553 pragma Inline
(Entity_Or_Associated_Node
);
12554 pragma Inline
(Entry_Body_Formal_Part
);
12555 pragma Inline
(Entry_Call_Alternative
);
12556 pragma Inline
(Entry_Call_Statement
);
12557 pragma Inline
(Entry_Direct_Name
);
12558 pragma Inline
(Entry_Index
);
12559 pragma Inline
(Entry_Index_Specification
);
12560 pragma Inline
(Etype
);
12561 pragma Inline
(Exception_Choices
);
12562 pragma Inline
(Exception_Handlers
);
12563 pragma Inline
(Exception_Junk
);
12564 pragma Inline
(Exception_Label
);
12565 pragma Inline
(Expansion_Delayed
);
12566 pragma Inline
(Explicit_Actual_Parameter
);
12567 pragma Inline
(Explicit_Generic_Actual_Parameter
);
12568 pragma Inline
(Expression
);
12569 pragma Inline
(Expressions
);
12570 pragma Inline
(First_Bit
);
12571 pragma Inline
(First_Inlined_Subprogram
);
12572 pragma Inline
(First_Name
);
12573 pragma Inline
(First_Named_Actual
);
12574 pragma Inline
(First_Real_Statement
);
12575 pragma Inline
(First_Subtype_Link
);
12576 pragma Inline
(Float_Truncate
);
12577 pragma Inline
(Formal_Type_Definition
);
12578 pragma Inline
(Forwards_OK
);
12579 pragma Inline
(From_Aspect_Specification
);
12580 pragma Inline
(From_At_End
);
12581 pragma Inline
(From_At_Mod
);
12582 pragma Inline
(From_Conditional_Expression
);
12583 pragma Inline
(From_Default
);
12584 pragma Inline
(Generalized_Indexing
);
12585 pragma Inline
(Generic_Associations
);
12586 pragma Inline
(Generic_Formal_Declarations
);
12587 pragma Inline
(Generic_Parent
);
12588 pragma Inline
(Generic_Parent_Type
);
12589 pragma Inline
(Handled_Statement_Sequence
);
12590 pragma Inline
(Handler_List_Entry
);
12591 pragma Inline
(Has_Created_Identifier
);
12592 pragma Inline
(Has_Dereference_Action
);
12593 pragma Inline
(Has_Dynamic_Length_Check
);
12594 pragma Inline
(Has_Dynamic_Range_Check
);
12595 pragma Inline
(Has_Init_Expression
);
12596 pragma Inline
(Has_Local_Raise
);
12597 pragma Inline
(Has_Self_Reference
);
12598 pragma Inline
(Has_SP_Choice
);
12599 pragma Inline
(Has_No_Elaboration_Code
);
12600 pragma Inline
(Has_Pragma_Suppress_All
);
12601 pragma Inline
(Has_Private_View
);
12602 pragma Inline
(Has_Relative_Deadline_Pragma
);
12603 pragma Inline
(Has_Storage_Size_Pragma
);
12604 pragma Inline
(Has_Wide_Character
);
12605 pragma Inline
(Has_Wide_Wide_Character
);
12606 pragma Inline
(Header_Size_Added
);
12607 pragma Inline
(Hidden_By_Use_Clause
);
12608 pragma Inline
(High_Bound
);
12609 pragma Inline
(Identifier
);
12610 pragma Inline
(Implicit_With
);
12611 pragma Inline
(Implicit_With_From_Instantiation
);
12612 pragma Inline
(Interface_List
);
12613 pragma Inline
(Interface_Present
);
12614 pragma Inline
(Includes_Infinities
);
12615 pragma Inline
(Import_Interface_Present
);
12616 pragma Inline
(In_Present
);
12617 pragma Inline
(Incomplete_View
);
12618 pragma Inline
(Inherited_Discriminant
);
12619 pragma Inline
(Instance_Spec
);
12620 pragma Inline
(Intval
);
12621 pragma Inline
(Iterator_Specification
);
12622 pragma Inline
(Is_Accessibility_Actual
);
12623 pragma Inline
(Is_Asynchronous_Call_Block
);
12624 pragma Inline
(Is_Boolean_Aspect
);
12625 pragma Inline
(Is_Checked
);
12626 pragma Inline
(Is_Component_Left_Opnd
);
12627 pragma Inline
(Is_Component_Right_Opnd
);
12628 pragma Inline
(Is_Controlling_Actual
);
12629 pragma Inline
(Is_Delayed_Aspect
);
12630 pragma Inline
(Is_Disabled
);
12631 pragma Inline
(Is_Dynamic_Coextension
);
12632 pragma Inline
(Is_Elsif
);
12633 pragma Inline
(Is_Entry_Barrier_Function
);
12634 pragma Inline
(Is_Expanded_Build_In_Place_Call
);
12635 pragma Inline
(Is_Finalization_Wrapper
);
12636 pragma Inline
(Is_Folded_In_Parser
);
12637 pragma Inline
(Is_Ignored
);
12638 pragma Inline
(Is_In_Discriminant_Check
);
12639 pragma Inline
(Is_Machine_Number
);
12640 pragma Inline
(Is_Null_Loop
);
12641 pragma Inline
(Is_Overloaded
);
12642 pragma Inline
(Is_Power_Of_2_For_Shift
);
12643 pragma Inline
(Is_Prefixed_Call
);
12644 pragma Inline
(Is_Protected_Subprogram_Body
);
12645 pragma Inline
(Is_Static_Coextension
);
12646 pragma Inline
(Is_Static_Expression
);
12647 pragma Inline
(Is_Subprogram_Descriptor
);
12648 pragma Inline
(Is_Task_Allocation_Block
);
12649 pragma Inline
(Is_Task_Master
);
12650 pragma Inline
(Iteration_Scheme
);
12651 pragma Inline
(Itype
);
12652 pragma Inline
(Kill_Range_Check
);
12653 pragma Inline
(Last_Bit
);
12654 pragma Inline
(Last_Name
);
12655 pragma Inline
(Library_Unit
);
12656 pragma Inline
(Label_Construct
);
12657 pragma Inline
(Left_Opnd
);
12658 pragma Inline
(Limited_View_Installed
);
12659 pragma Inline
(Limited_Present
);
12660 pragma Inline
(Literals
);
12661 pragma Inline
(Local_Raise_Not_OK
);
12662 pragma Inline
(Local_Raise_Statements
);
12663 pragma Inline
(Loop_Actions
);
12664 pragma Inline
(Loop_Parameter_Specification
);
12665 pragma Inline
(Low_Bound
);
12666 pragma Inline
(Mod_Clause
);
12667 pragma Inline
(More_Ids
);
12668 pragma Inline
(Must_Be_Byte_Aligned
);
12669 pragma Inline
(Must_Not_Freeze
);
12670 pragma Inline
(Must_Not_Override
);
12671 pragma Inline
(Must_Override
);
12672 pragma Inline
(Name
);
12673 pragma Inline
(Names
);
12674 pragma Inline
(Next_Entity
);
12675 pragma Inline
(Next_Exit_Statement
);
12676 pragma Inline
(Next_Implicit_With
);
12677 pragma Inline
(Next_Named_Actual
);
12678 pragma Inline
(Next_Pragma
);
12679 pragma Inline
(Next_Rep_Item
);
12680 pragma Inline
(Next_Use_Clause
);
12681 pragma Inline
(No_Ctrl_Actions
);
12682 pragma Inline
(No_Elaboration_Check
);
12683 pragma Inline
(No_Entities_Ref_In_Spec
);
12684 pragma Inline
(No_Initialization
);
12685 pragma Inline
(No_Minimize_Eliminate
);
12686 pragma Inline
(No_Truncation
);
12687 pragma Inline
(Non_Aliased_Prefix
);
12688 pragma Inline
(Null_Present
);
12689 pragma Inline
(Null_Excluding_Subtype
);
12690 pragma Inline
(Null_Exclusion_Present
);
12691 pragma Inline
(Null_Exclusion_In_Return_Present
);
12692 pragma Inline
(Null_Record_Present
);
12693 pragma Inline
(Object_Definition
);
12694 pragma Inline
(Of_Present
);
12695 pragma Inline
(Original_Discriminant
);
12696 pragma Inline
(Original_Entity
);
12697 pragma Inline
(Others_Discrete_Choices
);
12698 pragma Inline
(Out_Present
);
12699 pragma Inline
(Parameter_Associations
);
12700 pragma Inline
(Parameter_Specifications
);
12701 pragma Inline
(Parameter_Type
);
12702 pragma Inline
(Parent_Spec
);
12703 pragma Inline
(Position
);
12704 pragma Inline
(Pragma_Argument_Associations
);
12705 pragma Inline
(Pragma_Identifier
);
12706 pragma Inline
(Pragmas_After
);
12707 pragma Inline
(Pragmas_Before
);
12708 pragma Inline
(Pre_Post_Conditions
);
12709 pragma Inline
(Prefix
);
12710 pragma Inline
(Premature_Use
);
12711 pragma Inline
(Present_Expr
);
12712 pragma Inline
(Prev_Ids
);
12713 pragma Inline
(Print_In_Hex
);
12714 pragma Inline
(Private_Declarations
);
12715 pragma Inline
(Private_Present
);
12716 pragma Inline
(Procedure_To_Call
);
12717 pragma Inline
(Proper_Body
);
12718 pragma Inline
(Protected_Definition
);
12719 pragma Inline
(Protected_Present
);
12720 pragma Inline
(Raises_Constraint_Error
);
12721 pragma Inline
(Range_Constraint
);
12722 pragma Inline
(Range_Expression
);
12723 pragma Inline
(Real_Range_Specification
);
12724 pragma Inline
(Realval
);
12725 pragma Inline
(Reason
);
12726 pragma Inline
(Record_Extension_Part
);
12727 pragma Inline
(Redundant_Use
);
12728 pragma Inline
(Renaming_Exception
);
12729 pragma Inline
(Result_Definition
);
12730 pragma Inline
(Return_Object_Declarations
);
12731 pragma Inline
(Return_Statement_Entity
);
12732 pragma Inline
(Reverse_Present
);
12733 pragma Inline
(Right_Opnd
);
12734 pragma Inline
(Rounded_Result
);
12735 pragma Inline
(SCIL_Controlling_Tag
);
12736 pragma Inline
(SCIL_Entity
);
12737 pragma Inline
(SCIL_Tag_Value
);
12738 pragma Inline
(SCIL_Target_Prim
);
12739 pragma Inline
(Scope
);
12740 pragma Inline
(Select_Alternatives
);
12741 pragma Inline
(Selector_Name
);
12742 pragma Inline
(Selector_Names
);
12743 pragma Inline
(Shift_Count_OK
);
12744 pragma Inline
(Source_Type
);
12745 pragma Inline
(Specification
);
12746 pragma Inline
(Split_PPC
);
12747 pragma Inline
(Statements
);
12748 pragma Inline
(Storage_Pool
);
12749 pragma Inline
(Subpool_Handle_Name
);
12750 pragma Inline
(Strval
);
12751 pragma Inline
(Subtype_Indication
);
12752 pragma Inline
(Subtype_Mark
);
12753 pragma Inline
(Subtype_Marks
);
12754 pragma Inline
(Suppress_Assignment_Checks
);
12755 pragma Inline
(Suppress_Loop_Warnings
);
12756 pragma Inline
(Synchronized_Present
);
12757 pragma Inline
(Tagged_Present
);
12758 pragma Inline
(Target_Type
);
12759 pragma Inline
(Task_Definition
);
12760 pragma Inline
(Task_Present
);
12761 pragma Inline
(Then_Actions
);
12762 pragma Inline
(Then_Statements
);
12763 pragma Inline
(Triggering_Alternative
);
12764 pragma Inline
(Triggering_Statement
);
12765 pragma Inline
(Treat_Fixed_As_Integer
);
12766 pragma Inline
(TSS_Elist
);
12767 pragma Inline
(Type_Definition
);
12768 pragma Inline
(Uneval_Old_Accept
);
12769 pragma Inline
(Uneval_Old_Warn
);
12770 pragma Inline
(Unit
);
12771 pragma Inline
(Uninitialized_Variable
);
12772 pragma Inline
(Unknown_Discriminants_Present
);
12773 pragma Inline
(Unreferenced_In_Spec
);
12774 pragma Inline
(Variant_Part
);
12775 pragma Inline
(Variants
);
12776 pragma Inline
(Visible_Declarations
);
12777 pragma Inline
(Used_Operations
);
12778 pragma Inline
(Was_Originally_Stub
);
12779 pragma Inline
(Withed_Body
);
12781 pragma Inline
(Set_ABE_Is_Certain
);
12782 pragma Inline
(Set_Abort_Present
);
12783 pragma Inline
(Set_Abortable_Part
);
12784 pragma Inline
(Set_Abstract_Present
);
12785 pragma Inline
(Set_Accept_Handler_Records
);
12786 pragma Inline
(Set_Accept_Statement
);
12787 pragma Inline
(Set_Access_Definition
);
12788 pragma Inline
(Set_Access_To_Subprogram_Definition
);
12789 pragma Inline
(Set_Access_Types_To_Process
);
12790 pragma Inline
(Set_Actions
);
12791 pragma Inline
(Set_Activation_Chain_Entity
);
12792 pragma Inline
(Set_Acts_As_Spec
);
12793 pragma Inline
(Set_Actual_Designated_Subtype
);
12794 pragma Inline
(Set_Address_Warning_Posted
);
12795 pragma Inline
(Set_Aggregate_Bounds
);
12796 pragma Inline
(Set_Aliased_Present
);
12797 pragma Inline
(Set_All_Others
);
12798 pragma Inline
(Set_All_Present
);
12799 pragma Inline
(Set_Alternatives
);
12800 pragma Inline
(Set_Ancestor_Part
);
12801 pragma Inline
(Set_Array_Aggregate
);
12802 pragma Inline
(Set_Aspect_Rep_Item
);
12803 pragma Inline
(Set_Assignment_OK
);
12804 pragma Inline
(Set_Associated_Node
);
12805 pragma Inline
(Set_At_End_Proc
);
12806 pragma Inline
(Set_Atomic_Sync_Required
);
12807 pragma Inline
(Set_Attribute_Name
);
12808 pragma Inline
(Set_Aux_Decls_Node
);
12809 pragma Inline
(Set_Backwards_OK
);
12810 pragma Inline
(Set_Bad_Is_Detected
);
12811 pragma Inline
(Set_Body_Required
);
12812 pragma Inline
(Set_Body_To_Inline
);
12813 pragma Inline
(Set_Box_Present
);
12814 pragma Inline
(Set_By_Ref
);
12815 pragma Inline
(Set_Char_Literal_Value
);
12816 pragma Inline
(Set_Chars
);
12817 pragma Inline
(Set_Check_Address_Alignment
);
12818 pragma Inline
(Set_Choice_Parameter
);
12819 pragma Inline
(Set_Choices
);
12820 pragma Inline
(Set_Class_Present
);
12821 pragma Inline
(Set_Classifications
);
12822 pragma Inline
(Set_Cleanup_Actions
);
12823 pragma Inline
(Set_Comes_From_Extended_Return_Statement
);
12824 pragma Inline
(Set_Compile_Time_Known_Aggregate
);
12825 pragma Inline
(Set_Component_Associations
);
12826 pragma Inline
(Set_Component_Clauses
);
12827 pragma Inline
(Set_Component_Definition
);
12828 pragma Inline
(Set_Component_Items
);
12829 pragma Inline
(Set_Component_List
);
12830 pragma Inline
(Set_Component_Name
);
12831 pragma Inline
(Set_Componentwise_Assignment
);
12832 pragma Inline
(Set_Condition
);
12833 pragma Inline
(Set_Condition_Actions
);
12834 pragma Inline
(Set_Config_Pragmas
);
12835 pragma Inline
(Set_Constant_Present
);
12836 pragma Inline
(Set_Constraint
);
12837 pragma Inline
(Set_Constraints
);
12838 pragma Inline
(Set_Context_Installed
);
12839 pragma Inline
(Set_Context_Items
);
12840 pragma Inline
(Set_Context_Pending
);
12841 pragma Inline
(Set_Contract_Test_Cases
);
12842 pragma Inline
(Set_Controlling_Argument
);
12843 pragma Inline
(Set_Conversion_OK
);
12844 pragma Inline
(Set_Convert_To_Return_False
);
12845 pragma Inline
(Set_Corresponding_Aspect
);
12846 pragma Inline
(Set_Corresponding_Body
);
12847 pragma Inline
(Set_Corresponding_Formal_Spec
);
12848 pragma Inline
(Set_Corresponding_Generic_Association
);
12849 pragma Inline
(Set_Corresponding_Integer_Value
);
12850 pragma Inline
(Set_Corresponding_Spec
);
12851 pragma Inline
(Set_Corresponding_Spec_Of_Stub
);
12852 pragma Inline
(Set_Corresponding_Stub
);
12853 pragma Inline
(Set_Dcheck_Function
);
12854 pragma Inline
(Set_Declarations
);
12855 pragma Inline
(Set_Default_Expression
);
12856 pragma Inline
(Set_Default_Name
);
12857 pragma Inline
(Set_Default_Storage_Pool
);
12858 pragma Inline
(Set_Defining_Identifier
);
12859 pragma Inline
(Set_Defining_Unit_Name
);
12860 pragma Inline
(Set_Delay_Alternative
);
12861 pragma Inline
(Set_Delay_Statement
);
12862 pragma Inline
(Set_Delta_Expression
);
12863 pragma Inline
(Set_Digits_Expression
);
12864 pragma Inline
(Set_Discr_Check_Funcs_Built
);
12865 pragma Inline
(Set_Discrete_Choices
);
12866 pragma Inline
(Set_Discrete_Range
);
12867 pragma Inline
(Set_Discrete_Subtype_Definition
);
12868 pragma Inline
(Set_Discrete_Subtype_Definitions
);
12869 pragma Inline
(Set_Discriminant_Specifications
);
12870 pragma Inline
(Set_Discriminant_Type
);
12871 pragma Inline
(Set_Do_Accessibility_Check
);
12872 pragma Inline
(Set_Do_Discriminant_Check
);
12873 pragma Inline
(Set_Do_Division_Check
);
12874 pragma Inline
(Set_Do_Length_Check
);
12875 pragma Inline
(Set_Do_Overflow_Check
);
12876 pragma Inline
(Set_Do_Range_Check
);
12877 pragma Inline
(Set_Do_Storage_Check
);
12878 pragma Inline
(Set_Do_Tag_Check
);
12879 pragma Inline
(Set_Elaborate_All_Desirable
);
12880 pragma Inline
(Set_Elaborate_All_Present
);
12881 pragma Inline
(Set_Elaborate_Desirable
);
12882 pragma Inline
(Set_Elaborate_Present
);
12883 pragma Inline
(Set_Elaboration_Boolean
);
12884 pragma Inline
(Set_Else_Actions
);
12885 pragma Inline
(Set_Else_Statements
);
12886 pragma Inline
(Set_Elsif_Parts
);
12887 pragma Inline
(Set_Enclosing_Variant
);
12888 pragma Inline
(Set_End_Label
);
12889 pragma Inline
(Set_End_Span
);
12890 pragma Inline
(Set_Entity
);
12891 pragma Inline
(Set_Entry_Body_Formal_Part
);
12892 pragma Inline
(Set_Entry_Call_Alternative
);
12893 pragma Inline
(Set_Entry_Call_Statement
);
12894 pragma Inline
(Set_Entry_Direct_Name
);
12895 pragma Inline
(Set_Entry_Index
);
12896 pragma Inline
(Set_Entry_Index_Specification
);
12897 pragma Inline
(Set_Etype
);
12898 pragma Inline
(Set_Exception_Choices
);
12899 pragma Inline
(Set_Exception_Handlers
);
12900 pragma Inline
(Set_Exception_Junk
);
12901 pragma Inline
(Set_Exception_Label
);
12902 pragma Inline
(Set_Expansion_Delayed
);
12903 pragma Inline
(Set_Explicit_Actual_Parameter
);
12904 pragma Inline
(Set_Explicit_Generic_Actual_Parameter
);
12905 pragma Inline
(Set_Expression
);
12906 pragma Inline
(Set_Expressions
);
12907 pragma Inline
(Set_First_Bit
);
12908 pragma Inline
(Set_First_Inlined_Subprogram
);
12909 pragma Inline
(Set_First_Name
);
12910 pragma Inline
(Set_First_Named_Actual
);
12911 pragma Inline
(Set_First_Real_Statement
);
12912 pragma Inline
(Set_First_Subtype_Link
);
12913 pragma Inline
(Set_Float_Truncate
);
12914 pragma Inline
(Set_Formal_Type_Definition
);
12915 pragma Inline
(Set_Forwards_OK
);
12916 pragma Inline
(Set_From_Aspect_Specification
);
12917 pragma Inline
(Set_From_At_End
);
12918 pragma Inline
(Set_From_At_Mod
);
12919 pragma Inline
(Set_From_Conditional_Expression
);
12920 pragma Inline
(Set_From_Default
);
12921 pragma Inline
(Set_Generalized_Indexing
);
12922 pragma Inline
(Set_Generic_Associations
);
12923 pragma Inline
(Set_Generic_Formal_Declarations
);
12924 pragma Inline
(Set_Generic_Parent
);
12925 pragma Inline
(Set_Generic_Parent_Type
);
12926 pragma Inline
(Set_Handled_Statement_Sequence
);
12927 pragma Inline
(Set_Handler_List_Entry
);
12928 pragma Inline
(Set_Has_Created_Identifier
);
12929 pragma Inline
(Set_Has_Dereference_Action
);
12930 pragma Inline
(Set_Has_Dynamic_Length_Check
);
12931 pragma Inline
(Set_Has_Dynamic_Range_Check
);
12932 pragma Inline
(Set_Has_Init_Expression
);
12933 pragma Inline
(Set_Has_Local_Raise
);
12934 pragma Inline
(Set_Has_No_Elaboration_Code
);
12935 pragma Inline
(Set_Has_Pragma_Suppress_All
);
12936 pragma Inline
(Set_Has_Private_View
);
12937 pragma Inline
(Set_Has_Relative_Deadline_Pragma
);
12938 pragma Inline
(Set_Has_Self_Reference
);
12939 pragma Inline
(Set_Has_SP_Choice
);
12940 pragma Inline
(Set_Has_Storage_Size_Pragma
);
12941 pragma Inline
(Set_Has_Wide_Character
);
12942 pragma Inline
(Set_Has_Wide_Wide_Character
);
12943 pragma Inline
(Set_Header_Size_Added
);
12944 pragma Inline
(Set_Hidden_By_Use_Clause
);
12945 pragma Inline
(Set_High_Bound
);
12946 pragma Inline
(Set_Identifier
);
12947 pragma Inline
(Set_Implicit_With
);
12948 pragma Inline
(Set_Import_Interface_Present
);
12949 pragma Inline
(Set_In_Present
);
12950 pragma Inline
(Set_Includes_Infinities
);
12951 pragma Inline
(Set_Incomplete_View
);
12952 pragma Inline
(Set_Inherited_Discriminant
);
12953 pragma Inline
(Set_Instance_Spec
);
12954 pragma Inline
(Set_Interface_List
);
12955 pragma Inline
(Set_Interface_Present
);
12956 pragma Inline
(Set_Intval
);
12957 pragma Inline
(Set_Is_Accessibility_Actual
);
12958 pragma Inline
(Set_Is_Asynchronous_Call_Block
);
12959 pragma Inline
(Set_Is_Boolean_Aspect
);
12960 pragma Inline
(Set_Is_Checked
);
12961 pragma Inline
(Set_Is_Component_Left_Opnd
);
12962 pragma Inline
(Set_Is_Component_Right_Opnd
);
12963 pragma Inline
(Set_Is_Controlling_Actual
);
12964 pragma Inline
(Set_Is_Delayed_Aspect
);
12965 pragma Inline
(Set_Is_Disabled
);
12966 pragma Inline
(Set_Is_Dynamic_Coextension
);
12967 pragma Inline
(Set_Is_Elsif
);
12968 pragma Inline
(Set_Is_Entry_Barrier_Function
);
12969 pragma Inline
(Set_Is_Expanded_Build_In_Place_Call
);
12970 pragma Inline
(Set_Is_Finalization_Wrapper
);
12971 pragma Inline
(Set_Is_Folded_In_Parser
);
12972 pragma Inline
(Set_Is_Ignored
);
12973 pragma Inline
(Set_Is_In_Discriminant_Check
);
12974 pragma Inline
(Set_Is_Machine_Number
);
12975 pragma Inline
(Set_Is_Null_Loop
);
12976 pragma Inline
(Set_Is_Overloaded
);
12977 pragma Inline
(Set_Is_Power_Of_2_For_Shift
);
12978 pragma Inline
(Set_Is_Prefixed_Call
);
12979 pragma Inline
(Set_Is_Protected_Subprogram_Body
);
12980 pragma Inline
(Set_Is_Static_Coextension
);
12981 pragma Inline
(Set_Is_Static_Expression
);
12982 pragma Inline
(Set_Is_Subprogram_Descriptor
);
12983 pragma Inline
(Set_Is_Task_Allocation_Block
);
12984 pragma Inline
(Set_Is_Task_Master
);
12985 pragma Inline
(Set_Iteration_Scheme
);
12986 pragma Inline
(Set_Iterator_Specification
);
12987 pragma Inline
(Set_Itype
);
12988 pragma Inline
(Set_Kill_Range_Check
);
12989 pragma Inline
(Set_Label_Construct
);
12990 pragma Inline
(Set_Last_Bit
);
12991 pragma Inline
(Set_Last_Name
);
12992 pragma Inline
(Set_Left_Opnd
);
12993 pragma Inline
(Set_Library_Unit
);
12994 pragma Inline
(Set_Limited_Present
);
12995 pragma Inline
(Set_Limited_View_Installed
);
12996 pragma Inline
(Set_Literals
);
12997 pragma Inline
(Set_Local_Raise_Not_OK
);
12998 pragma Inline
(Set_Local_Raise_Statements
);
12999 pragma Inline
(Set_Loop_Actions
);
13000 pragma Inline
(Set_Loop_Parameter_Specification
);
13001 pragma Inline
(Set_Low_Bound
);
13002 pragma Inline
(Set_Mod_Clause
);
13003 pragma Inline
(Set_More_Ids
);
13004 pragma Inline
(Set_Must_Be_Byte_Aligned
);
13005 pragma Inline
(Set_Must_Not_Freeze
);
13006 pragma Inline
(Set_Must_Not_Override
);
13007 pragma Inline
(Set_Must_Override
);
13008 pragma Inline
(Set_Name
);
13009 pragma Inline
(Set_Names
);
13010 pragma Inline
(Set_Next_Entity
);
13011 pragma Inline
(Set_Next_Exit_Statement
);
13012 pragma Inline
(Set_Next_Implicit_With
);
13013 pragma Inline
(Set_Next_Named_Actual
);
13014 pragma Inline
(Set_Next_Pragma
);
13015 pragma Inline
(Set_Next_Rep_Item
);
13016 pragma Inline
(Set_Next_Use_Clause
);
13017 pragma Inline
(Set_No_Ctrl_Actions
);
13018 pragma Inline
(Set_No_Elaboration_Check
);
13019 pragma Inline
(Set_No_Entities_Ref_In_Spec
);
13020 pragma Inline
(Set_No_Initialization
);
13021 pragma Inline
(Set_No_Minimize_Eliminate
);
13022 pragma Inline
(Set_No_Truncation
);
13023 pragma Inline
(Set_Non_Aliased_Prefix
);
13024 pragma Inline
(Set_Null_Excluding_Subtype
);
13025 pragma Inline
(Set_Null_Exclusion_Present
);
13026 pragma Inline
(Set_Null_Exclusion_In_Return_Present
);
13027 pragma Inline
(Set_Null_Present
);
13028 pragma Inline
(Set_Null_Record_Present
);
13029 pragma Inline
(Set_Object_Definition
);
13030 pragma Inline
(Set_Of_Present
);
13031 pragma Inline
(Set_Original_Discriminant
);
13032 pragma Inline
(Set_Original_Entity
);
13033 pragma Inline
(Set_Others_Discrete_Choices
);
13034 pragma Inline
(Set_Out_Present
);
13035 pragma Inline
(Set_Parameter_Associations
);
13036 pragma Inline
(Set_Parameter_Specifications
);
13037 pragma Inline
(Set_Parameter_Type
);
13038 pragma Inline
(Set_Parent_Spec
);
13039 pragma Inline
(Set_Position
);
13040 pragma Inline
(Set_Pragma_Argument_Associations
);
13041 pragma Inline
(Set_Pragma_Identifier
);
13042 pragma Inline
(Set_Pragmas_After
);
13043 pragma Inline
(Set_Pragmas_Before
);
13044 pragma Inline
(Set_Pre_Post_Conditions
);
13045 pragma Inline
(Set_Prefix
);
13046 pragma Inline
(Set_Premature_Use
);
13047 pragma Inline
(Set_Present_Expr
);
13048 pragma Inline
(Set_Prev_Ids
);
13049 pragma Inline
(Set_Print_In_Hex
);
13050 pragma Inline
(Set_Private_Declarations
);
13051 pragma Inline
(Set_Private_Present
);
13052 pragma Inline
(Set_Procedure_To_Call
);
13053 pragma Inline
(Set_Proper_Body
);
13054 pragma Inline
(Set_Protected_Definition
);
13055 pragma Inline
(Set_Protected_Present
);
13056 pragma Inline
(Set_Raises_Constraint_Error
);
13057 pragma Inline
(Set_Range_Constraint
);
13058 pragma Inline
(Set_Range_Expression
);
13059 pragma Inline
(Set_Real_Range_Specification
);
13060 pragma Inline
(Set_Realval
);
13061 pragma Inline
(Set_Reason
);
13062 pragma Inline
(Set_Record_Extension_Part
);
13063 pragma Inline
(Set_Redundant_Use
);
13064 pragma Inline
(Set_Renaming_Exception
);
13065 pragma Inline
(Set_Result_Definition
);
13066 pragma Inline
(Set_Return_Object_Declarations
);
13067 pragma Inline
(Set_Reverse_Present
);
13068 pragma Inline
(Set_Right_Opnd
);
13069 pragma Inline
(Set_Rounded_Result
);
13070 pragma Inline
(Set_SCIL_Controlling_Tag
);
13071 pragma Inline
(Set_SCIL_Entity
);
13072 pragma Inline
(Set_SCIL_Tag_Value
);
13073 pragma Inline
(Set_SCIL_Target_Prim
);
13074 pragma Inline
(Set_Scope
);
13075 pragma Inline
(Set_Select_Alternatives
);
13076 pragma Inline
(Set_Selector_Name
);
13077 pragma Inline
(Set_Selector_Names
);
13078 pragma Inline
(Set_Shift_Count_OK
);
13079 pragma Inline
(Set_Source_Type
);
13080 pragma Inline
(Set_Split_PPC
);
13081 pragma Inline
(Set_Statements
);
13082 pragma Inline
(Set_Storage_Pool
);
13083 pragma Inline
(Set_Strval
);
13084 pragma Inline
(Set_Subpool_Handle_Name
);
13085 pragma Inline
(Set_Subtype_Indication
);
13086 pragma Inline
(Set_Subtype_Mark
);
13087 pragma Inline
(Set_Subtype_Marks
);
13088 pragma Inline
(Set_Suppress_Assignment_Checks
);
13089 pragma Inline
(Set_Suppress_Loop_Warnings
);
13090 pragma Inline
(Set_Synchronized_Present
);
13091 pragma Inline
(Set_TSS_Elist
);
13092 pragma Inline
(Set_Tagged_Present
);
13093 pragma Inline
(Set_Target_Type
);
13094 pragma Inline
(Set_Task_Definition
);
13095 pragma Inline
(Set_Task_Present
);
13096 pragma Inline
(Set_Then_Actions
);
13097 pragma Inline
(Set_Then_Statements
);
13098 pragma Inline
(Set_Treat_Fixed_As_Integer
);
13099 pragma Inline
(Set_Triggering_Alternative
);
13100 pragma Inline
(Set_Triggering_Statement
);
13101 pragma Inline
(Set_Type_Definition
);
13102 pragma Inline
(Set_Uneval_Old_Accept
);
13103 pragma Inline
(Set_Uneval_Old_Warn
);
13104 pragma Inline
(Set_Unit
);
13105 pragma Inline
(Set_Uninitialized_Variable
);
13106 pragma Inline
(Set_Unknown_Discriminants_Present
);
13107 pragma Inline
(Set_Unreferenced_In_Spec
);
13108 pragma Inline
(Set_Used_Operations
);
13109 pragma Inline
(Set_Variant_Part
);
13110 pragma Inline
(Set_Variants
);
13111 pragma Inline
(Set_Visible_Declarations
);
13112 pragma Inline
(Set_Was_Originally_Stub
);
13113 pragma Inline
(Set_Withed_Body
);