gcc/testsuite/ChangeLog:
[official-gcc.git] / gcc / ada / sinfo.ads
blobae296612ed31fb06505a3b38c38a07c029e2c611
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S I N F O --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2018, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
17 -- --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
21 -- --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
26 -- --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
29 -- --
30 ------------------------------------------------------------------------------
32 -- This package defines the structure of the abstract syntax tree. The Tree
33 -- package provides a basic tree structure. Sinfo describes how this structure
34 -- is used to represent the syntax of an Ada program.
36 -- The grammar in the RM is followed very closely in the tree design, and is
37 -- repeated as part of this source file.
39 -- The tree contains not only the full syntactic representation of the
40 -- program, but also the results of semantic analysis. In particular, the
41 -- nodes for defining identifiers, defining character literals, and defining
42 -- operator symbols, collectively referred to as entities, represent what
43 -- would normally be regarded as the symbol table information. In addition a
44 -- number of the tree nodes contain semantic information.
46 -- WARNING: Several files are automatically generated from this package.
47 -- See below for details.
49 with Namet; use Namet;
50 with Types; use Types;
51 with Uintp; use Uintp;
52 with Urealp; use Urealp;
54 package Sinfo is
56 ---------------------------------
57 -- Making Changes to This File --
58 ---------------------------------
60 -- If changes are made to this file, a number of related steps must be
61 -- carried out to ensure consistency. First, if a field access function is
62 -- added, it appears in these places:
64 -- In sinfo.ads:
65 -- The documentation associated with the field (if semantic)
66 -- The documentation associated with the node
67 -- The spec of the access function
68 -- The spec of the set procedure
69 -- The entries in Is_Syntactic_Field
70 -- The pragma Inline for the access function
71 -- The pragma Inline for the set procedure
72 -- In sinfo.adb:
73 -- The body of the access function
74 -- The body of the set procedure
76 -- The field chosen must be consistent in all places, and, for a node that
77 -- is a subexpression, must not overlap any of the standard expression
78 -- fields.
80 -- In addition, if any of the standard expression fields is changed, then
81 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
82 -- must be updated appropriately, since it special cases expression fields.
84 -- If a new tree node is added, then the following changes are made:
86 -- Add it to the documentation in the appropriate place
87 -- Add its fields to this documentation section
88 -- Define it in the appropriate classification in Node_Kind
89 -- Add an entry in Is_Syntactic_Field
90 -- In the body (sinfo), add entries to the access functions for all
91 -- its fields (except standard expression fields) to include the new
92 -- node in the checks.
93 -- Add an appropriate section to the case statement in sprint.adb
94 -- Add an appropriate section to the case statement in sem.adb
95 -- Add an appropriate section to the case statement in exp_util.adb
96 -- (Insert_Actions procedure)
97 -- For a subexpression, add an appropriate section to the case
98 -- statement in sem_eval.adb
99 -- For a subexpression, add an appropriate section to the case
100 -- statement in sem_res.adb
102 -- All back ends must be made aware of the new node kind.
104 -- Finally, four utility programs must be run:
106 -- (Optional.) Run CSinfo to check that you have made the changes
107 -- consistently. It checks most of the rules given above. This utility
108 -- reads sinfo.ads and sinfo.adb and generates a report to standard
109 -- output. This step is optional because XSinfo runs CSinfo.
111 -- Run XSinfo to create sinfo.h, the corresponding C header. This
112 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
113 -- not need to read sinfo.adb, since the contents of the body are
114 -- algorithmically determinable from the spec.
116 -- Run XTreeprs to create treeprs.ads, an updated version of the module
117 -- that is used to drive the tree print routine. This utility reads (but
118 -- does not modify) treeprs.adt, the template that provides the basic
119 -- structure of the file, and then fills in the data from the comments
120 -- in sinfo.ads.
122 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
123 -- spec of the Nmake package which contains functions for constructing
124 -- nodes.
126 -- The above steps are done automatically by the build scripts when you do
127 -- a full bootstrap.
129 -- Note: sometime we could write a utility that actually generated the body
130 -- of sinfo from the spec instead of simply checking it, since, as noted
131 -- above, the contents of the body can be determined from the spec.
133 --------------------------------
134 -- Implicit Nodes in the Tree --
135 --------------------------------
137 -- Generally the structure of the tree very closely follows the grammar as
138 -- defined in the RM. However, certain nodes are omitted to save space and
139 -- simplify semantic processing. Two general classes of such omitted nodes
140 -- are as follows:
142 -- If the only possibilities for a non-terminal are one or more other
143 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
144 -- corresponding node is omitted from the tree, and the target construct
145 -- appears directly. For example, a real type definition is either
146 -- floating point definition or a fixed point definition. No explicit node
147 -- appears for real type definition. Instead either the floating point
148 -- definition or fixed point definition appears directly.
150 -- If a non-terminal corresponds to a list of some other non-terminal
151 -- (possibly with separating punctuation), then usually it is omitted from
152 -- the tree, and a list of components appears instead. For example,
153 -- sequence of statements does not appear explicitly in the tree. Instead
154 -- a list of statements appears directly.
156 -- Some additional cases of omitted nodes occur and are documented
157 -- individually. In particular, many nodes are omitted in the tree
158 -- generated for an expression.
160 -------------------------------------------
161 -- Handling of Defining Identifier Lists --
162 -------------------------------------------
164 -- In several declarative forms in the syntax, lists of defining
165 -- identifiers appear (object declarations, component declarations, number
166 -- declarations etc.)
168 -- The semantics of such statements are equivalent to a series of identical
169 -- declarations of single defining identifiers (except that conformance
170 -- checks require the same grouping of identifiers in the parameter case).
172 -- To simplify semantic processing, the parser breaks down such multiple
173 -- declaration cases into sequences of single declarations, duplicating
174 -- type and initialization information as required. The flags More_Ids and
175 -- Prev_Ids are used to record the original form of the source in the case
176 -- where the original source used a list of names, More_Ids being set on
177 -- all but the last name and Prev_Ids being set on all but the first name.
178 -- These flags are used to reconstruct the original source (e.g. in the
179 -- Sprint package), and also are included in the conformance checks, but
180 -- otherwise have no semantic significance.
182 -- Note: the reason that we use More_Ids and Prev_Ids rather than
183 -- First_Name and Last_Name flags is so that the flags are off in the
184 -- normal one identifier case, which minimizes tree print output.
186 -----------------------
187 -- Use of Node Lists --
188 -----------------------
190 -- With a few exceptions, if a construction of the form {non-terminal}
191 -- appears in the tree, lists are used in the corresponding tree node (see
192 -- package Nlists for handling of node lists). In this case a field of the
193 -- parent node points to a list of nodes for the non-terminal. The field
194 -- name for such fields has a plural name which always ends in "s". For
195 -- example, a case statement has a field Alternatives pointing to list of
196 -- case statement alternative nodes.
198 -- Only fields pointing to lists have names ending in "s", so generally the
199 -- structure is strongly typed, fields not ending in s point to single
200 -- nodes, and fields ending in s point to lists.
202 -- The following example shows how a traversal of a list is written. We
203 -- suppose here that Stmt points to a N_Case_Statement node which has a
204 -- list field called Alternatives:
206 -- Alt := First (Alternatives (Stmt));
207 -- while Present (Alt) loop
208 -- ..
209 -- -- processing for case statement alternative Alt
210 -- ..
211 -- Alt := Next (Alt);
212 -- end loop;
214 -- The Present function tests for Empty, which in this case signals the end
215 -- of the list. First returns Empty immediately if the list is empty.
216 -- Present is defined in Atree; First and Next are defined in Nlists.
218 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
219 -- contexts, which is handled as described in the previous section, and
220 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
221 -- using the First_Name and Last_Name flags, as further detailed in the
222 -- description of the N_With_Clause node.
224 -------------
225 -- Pragmas --
226 -------------
228 -- Pragmas can appear in many different context, but are not included in
229 -- the grammar. Still they must appear in the tree, so they can be properly
230 -- processed.
232 -- Two approaches are used. In some cases, an extra field is defined in an
233 -- appropriate node that contains a list of pragmas appearing in the
234 -- expected context. For example pragmas can appear before an
235 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
236 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
238 -- The other approach is to simply allow pragmas to appear in syntactic
239 -- lists where the grammar (of course) does not include the possibility.
240 -- For example, the Variants field of an N_Variant_Part node points to a
241 -- list that can contain both N_Pragma and N_Variant nodes.
243 -- To make processing easier in the latter case, the Nlists package
244 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
245 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
246 -- ignoring all pragmas.
248 -- In the case of the variants list, we can either write:
250 -- Variant := First (Variants (N));
251 -- while Present (Variant) loop
252 -- ...
253 -- Variant := Next (Variant);
254 -- end loop;
256 -- or
258 -- Variant := First_Non_Pragma (Variants (N));
259 -- while Present (Variant) loop
260 -- ...
261 -- Variant := Next_Non_Pragma (Variant);
262 -- end loop;
264 -- In the first form of the loop, Variant can either be an N_Pragma or an
265 -- N_Variant node. In the second form, Variant can only be N_Variant since
266 -- all pragmas are skipped.
268 ---------------------
269 -- Optional Fields --
270 ---------------------
272 -- Fields which correspond to a section of the syntax enclosed in square
273 -- brackets are generally omitted (and the corresponding field set to Empty
274 -- for a node, or No_List for a list). The documentation of such fields
275 -- notes these cases. One exception to this rule occurs in the case of
276 -- possibly empty statement sequences (such as the sequence of statements
277 -- in an entry call alternative). Such cases appear in the syntax rules as
278 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
279 -- statement sequences always contain an empty list (not No_List) if no
280 -- statements are present.
282 -- Note: the utility program that constructs the body and spec of the Nmake
283 -- package relies on the format of the comments to determine if a field
284 -- should have a default value in the corresponding make routine. The rule
285 -- is that if the first line of the description of the field contains the
286 -- string "(set to xxx if", then a default value of xxx is provided for
287 -- this field in the corresponding Make_yyy routine.
289 -----------------------------------
290 -- Note on Body/Spec Terminology --
291 -----------------------------------
293 -- In informal discussions about Ada, it is customary to refer to package
294 -- and subprogram specs and bodies. However, this is not technically
295 -- correct, what is normally referred to as a spec or specification is in
296 -- fact a package declaration or subprogram declaration. We are careful in
297 -- GNAT to use the correct terminology and in particular, the full word
298 -- specification is never used as an incorrect substitute for declaration.
299 -- The structure and terminology used in the tree also reflects the grammar
300 -- and thus uses declaration and specification in the technically correct
301 -- manner.
303 -- However, there are contexts in which the informal terminology is useful.
304 -- We have the word "body" to refer to the Interp_Etype declared by the
305 -- declaration of a unit body, and in some contexts we need similar term to
306 -- refer to the entity declared by the package or subprogram declaration,
307 -- and simply using declaration can be confusing since the body also has a
308 -- declaration.
310 -- An example of such a context is the link between the package body and
311 -- its declaration. With_Declaration is confusing, since the package body
312 -- itself is a declaration.
314 -- To deal with this problem, we reserve the informal term Spec, i.e. the
315 -- popular abbreviation used in this context, to refer to the entity
316 -- declared by the package or subprogram declaration. So in the above
317 -- example case, the field in the body is called With_Spec.
319 -- Another important context for the use of the word Spec is in error
320 -- messages, where a hyper-correct use of declaration would be confusing to
321 -- a typical Ada programmer, and even for an expert programmer can cause
322 -- confusion since the body has a declaration as well.
324 -- So, to summarize:
326 -- Declaration always refers to the syntactic entity that is called
327 -- a declaration. In particular, subprogram declaration
328 -- and package declaration are used to describe the
329 -- syntactic entity that includes the semicolon.
331 -- Specification always refers to the syntactic entity that is called
332 -- a specification. In particular, the terms procedure
333 -- specification, function specification, package
334 -- specification, subprogram specification always refer
335 -- to the syntactic entity that has no semicolon.
337 -- Spec is an informal term, used to refer to the entity
338 -- that is declared by a task declaration, protected
339 -- declaration, generic declaration, subprogram
340 -- declaration or package declaration.
342 -- This convention is followed throughout the GNAT documentation
343 -- both internal and external, and in all error message text.
345 ------------------------
346 -- Internal Use Nodes --
347 ------------------------
349 -- These are Node_Kind settings used in the internal implementation which
350 -- are not logically part of the specification.
352 -- N_Unused_At_Start
353 -- Completely unused entry at the start of the enumeration type. This
354 -- is inserted so that no legitimate value is zero, which helps to get
355 -- better debugging behavior, since zero is a likely uninitialized value).
357 -- N_Unused_At_End
358 -- Completely unused entry at the end of the enumeration type. This is
359 -- handy so that arrays with Node_Kind as the index type have an extra
360 -- entry at the end (see for example the use of the Pchar_Pos_Array in
361 -- Treepr, where the extra entry provides the limit value when dealing with
362 -- the last used entry in the array).
364 -----------------------------------------
365 -- Note on the settings of Sloc fields --
366 -----------------------------------------
368 -- The Sloc field of nodes that come from the source is set by the parser.
369 -- For internal nodes, and nodes generated during expansion the Sloc is
370 -- usually set in the call to the constructor for the node. In general the
371 -- Sloc value chosen for an internal node is the Sloc of the source node
372 -- whose processing is responsible for the expansion. For example, the Sloc
373 -- of an inherited primitive operation is the Sloc of the corresponding
374 -- derived type declaration.
376 -- For the nodes of a generic instantiation, the Sloc value is encoded to
377 -- represent both the original Sloc in the generic unit, and the Sloc of
378 -- the instantiation itself. See Sinput.ads for details.
380 -- Subprogram instances create two callable entities: one is the visible
381 -- subprogram instance, and the other is an anonymous subprogram nested
382 -- within a wrapper package that contains the renamings for the actuals.
383 -- Both of these entities have the Sloc of the defining entity in the
384 -- instantiation node. This simplifies some ASIS queries.
386 -----------------------
387 -- Field Definitions --
388 -----------------------
390 -- In the following node definitions, all fields, both syntactic and
391 -- semantic, are documented. The one exception is in the case of entities
392 -- (defining identifiers, character literals, and operator symbols), where
393 -- the usage of the fields depends on the entity kind. Entity fields are
394 -- fully documented in the separate package Einfo.
396 -- In the node definitions, three common sets of fields are abbreviated to
397 -- save both space in the documentation, and also space in the string
398 -- (defined in Tree_Print_Strings) used to print trees. The following
399 -- abbreviations are used:
401 -- Note: the utility program that creates the Treeprs spec (in the file
402 -- xtreeprs.adb) knows about the special fields here, so it must be
403 -- modified if any change is made to these fields.
405 -- "plus fields for binary operator"
406 -- Chars (Name1) Name_Id for the operator
407 -- Left_Opnd (Node2) left operand expression
408 -- Right_Opnd (Node3) right operand expression
409 -- Entity (Node4-Sem) defining entity for operator
410 -- Associated_Node (Node4-Sem) for generic processing
411 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
412 -- Has_Private_View (Flag11-Sem) set in generic units.
414 -- "plus fields for unary operator"
415 -- Chars (Name1) Name_Id for the operator
416 -- Right_Opnd (Node3) right operand expression
417 -- Entity (Node4-Sem) defining entity for operator
418 -- Associated_Node (Node4-Sem) for generic processing
419 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
420 -- Has_Private_View (Flag11-Sem) set in generic units.
422 -- "plus fields for expression"
423 -- Paren_Count number of parentheses levels
424 -- Etype (Node5-Sem) type of the expression
425 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
426 -- Is_Static_Expression (Flag6-Sem) set for static expression
427 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
428 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
429 -- Do_Range_Check (Flag9-Sem) set if a range check needed
430 -- Has_Dynamic_Length_Check (Flag10-Sem) set if length check inserted
431 -- Has_Dynamic_Range_Check (Flag12-Sem) set if range check inserted
432 -- Assignment_OK (Flag15-Sem) set if modification is OK
433 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
435 -- Note: see under (EXPRESSION) for further details on the use of
436 -- the Paren_Count field to record the number of parentheses levels.
438 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
439 -- The actual definition of this type is given later (the reason for this
440 -- is that we want the descriptions ordered by logical chapter in the RM,
441 -- but the type definition is reordered to facilitate the definition of
442 -- some subtype ranges. The individual descriptions of the nodes show how
443 -- the various fields are used in each node kind, as well as providing
444 -- logical names for the fields. Functions and procedures are provided for
445 -- accessing and setting these fields using these logical names.
447 -----------------------
448 -- Gigi Restrictions --
449 -----------------------
451 -- The tree passed to Gigi is more restricted than the general tree form.
452 -- For example, as a result of expansion, most of the tasking nodes can
453 -- never appear. For each node to which either a complete or partial
454 -- restriction applies, a note entitled "Gigi restriction" appears which
455 -- documents the restriction.
457 -- Note that most of these restrictions apply only to trees generated when
458 -- code is being generated, since they involved expander actions that
459 -- destroy the tree.
461 ---------------
462 -- ASIS Mode --
463 ---------------
465 -- When a file is compiled in ASIS mode (-gnatct), expansion is skipped,
466 -- and the analysis must generate a tree in a form that meets all ASIS
467 -- requirements.
469 -- ASIS must be able to recover the original tree that corresponds to the
470 -- source. It relies heavily on Original_Node for this purpose, which as
471 -- described in Atree, records the history when a node is rewritten. ASIS
472 -- uses Original_Node to recover the original node before the Rewrite.
474 -- At least in ASIS mode (not really important in non-ASIS mode), when
475 -- N1 is rewritten as N2:
477 -- The subtree rooted by the original node N1 should be fully decorated,
478 -- i.e. all semantic fields noted in sinfo.ads should be set properly
479 -- and any referenced entities should be complete (with exceptions for
480 -- representation information, noted below).
482 -- For all the direct descendants of N1 (original node) their Parent
483 -- links should point not to N1, but to N2 (rewriting node).
485 -- The Parent links of rewritten nodes (N1 in this example) are set in
486 -- some cases (to point to the rewritten parent), but in other cases
487 -- they are set to Empty. This needs sorting out ??? It would be much
488 -- cleaner if they could always be set in the original node ???
490 -- There are a few cases when ASIS has to use not the original, but the
491 -- rewritten tree structures. This happens when because of some important
492 -- technical reasons it is impossible or very hard to have the original
493 -- structure properly decorated by semantic information, and the rewritten
494 -- structure fully reproduces the original source. Below is the (incomplete
495 -- for the moment???) list of such exceptions:
497 -- Generic specifications and generic bodies
498 -- Function calls that use prefixed notation (Operand.Operation [(...)])
500 -- Representation Information
502 -- For the purposes of the data description annex, the representation
503 -- information for source declared entities must be complete in the
504 -- ASIS tree.
506 -- This requires that the front end call the back end (gigi/gcc) in
507 -- a special "back annotate only" mode to obtain information on layout
508 -- from the back end.
510 -- For the purposes of this special "back annotate only" mode, the
511 -- requirements that would normally need to be met to generate code
512 -- are relaxed as follows:
514 -- Anonymous types need not have full representation information (e.g.
515 -- sizes need not be set for types where the front end would normally
516 -- set the sizes), since anonymous types can be ignored in this mode.
518 -- In this mode, gigi will see at least fragments of a fully annotated
519 -- unexpanded tree. This means that it will encounter nodes it does
520 -- not normally handle (such as stubs, task bodies etc). It should
521 -- simply ignore these nodes, since they are not relevant to the task
522 -- of back annotating representation information.
524 -- Some other ASIS-specific issues are covered in specific comments in
525 -- sections for particular nodes or flags.
527 ----------------
528 -- Ghost Mode --
529 ----------------
531 -- The SPARK RM 6.9 defines two classes of constructs - Ghost entities and
532 -- Ghost statements. The intent of the feature is to treat Ghost constructs
533 -- as non-existent when Ghost assertion policy Ignore is in effect.
535 -- The corresponding nodes which map to Ghost constructs are:
537 -- Ghost entities
538 -- Declaration nodes
539 -- N_Package_Body
540 -- N_Subprogram_Body
542 -- Ghost statements
543 -- N_Assignment_Statement
544 -- N_Procedure_Call_Statement
545 -- N_Pragma
547 -- In addition, the compiler treats instantiations as Ghost entities
549 -- To achieve the removal of ignored Ghost constructs, the compiler relies
550 -- on global variables Ghost_Mode and Ignored_Ghost_Region, which comprise
551 -- a mechanism called "Ghost regions".
553 -- The values of Ghost_Mode are as follows:
555 -- 1. Check - All static semantics as defined in SPARK RM 6.9 are in
556 -- effect. The Ghost region has mode Check.
558 -- 2. Ignore - Same as Check, ignored Ghost code is not present in ALI
559 -- files, object files, and the final executable. The Ghost region
560 -- has mode Ignore.
562 -- 3. None - No Ghost region is in effect
564 -- The value of Ignored_Ghost_Region captures the node which initiates an
565 -- ignored Ghost region.
567 -- A Ghost region is a compiler operating mode, similar to Check_Syntax,
568 -- however a region is much more finely grained and depends on the policy
569 -- in effect. The region starts prior to the analysis of a Ghost construct
570 -- and ends immediately after its expansion. The region is established as
571 -- follows:
573 -- 1. Declarations - Prior to analysis, if the declaration is subject to
574 -- pragma Ghost.
576 -- 2. Renaming declarations - Same as 1) or when the renamed entity is
577 -- Ghost.
579 -- 3. Completing declarations - Same as 1) or when the declaration is
580 -- partially analyzed and the declaration completes a Ghost entity.
582 -- 4. N_Package_Body, N_Subprogram_Body - Same as 1) or when the body is
583 -- partially analyzed and completes a Ghost entity.
585 -- 5. N_Assignment_Statement - After the left hand side is analyzed and
586 -- references a Ghost entity.
588 -- 6. N_Procedure_Call_Statement - After the name is analyzed and denotes
589 -- a Ghost procedure.
591 -- 7. N_Pragma - During analysis, when the related entity is Ghost or the
592 -- pragma encloses a Ghost entity.
594 -- 8. Instantiations - Save as 1) or when the instantiation is partially
595 -- analyzed and the generic template is Ghost.
597 -- The following routines install a new Ghost region:
599 -- Install_Ghost_Region
600 -- Mark_And_Set_Ghost_xxx
601 -- Set_Ghost_Mode
603 -- The following routine ends a Ghost region:
605 -- Restore_Ghost_Region
607 -- A region may be reinstalled similarly to scopes for decoupled expansion
608 -- such as the generation of dispatch tables or the creation of a predicate
609 -- function.
611 -- If the mode of a Ghost region is Ignore, any newly created nodes as well
612 -- as source entities are marked as ignored Ghost. In additon, the marking
613 -- process signals all enclosing scopes that an ignored Ghost node resides
614 -- within. The compilation unit where the node resides is also added to an
615 -- auxiliary table for post processing.
617 -- After the analysis and expansion of all compilation units takes place
618 -- as well as the instantiation of all inlined [generic] bodies, the GNAT
619 -- driver initiates a separate pass which removes all ignored Ghost nodes
620 -- from all units stored in the auxiliary table.
622 --------------------
623 -- GNATprove Mode --
624 --------------------
626 -- When a file is compiled in GNATprove mode (-gnatd.F), a very light
627 -- expansion is performed and the analysis must generate a tree in a
628 -- form that meets additional requirements.
630 -- This light expansion does two transformations of the tree that cannot
631 -- be postponed till after semantic analysis:
633 -- 1. Replace object renamings by renamed object. This requires the
634 -- introduction of temporaries at the point of the renaming, which
635 -- must be properly analyzed.
637 -- 2. Fully qualify entity names. This is needed to generate suitable
638 -- local effects and call-graphs in ALI files, with the completely
639 -- qualified names (in particular the suffix to distinguish homonyms).
641 -- The tree after this light expansion should be fully analyzed
642 -- semantically, which sometimes requires the insertion of semantic
643 -- preanalysis, for example for subprogram contracts and pragma
644 -- check/assert. In particular, all expression must have their proper type,
645 -- and semantic links should be set between tree nodes (partial to full
646 -- view, etc.) Some kinds of nodes should be either absent, or can be
647 -- ignored by the formal verification backend:
649 -- N_Object_Renaming_Declaration: can be ignored safely
650 -- N_Expression_Function: absent (rewritten)
651 -- N_Expression_With_Actions: absent (not generated)
653 -- SPARK cross-references are generated from the regular cross-references
654 -- (used for browsing and code understanding) and additional references
655 -- collected during semantic analysis, in particular on all dereferences.
656 -- These SPARK cross-references are output in a separate section of ALI
657 -- files, as described in spark_xrefs.adb. They are the basis for the
658 -- computation of data dependences in GNATprove. This implies that all
659 -- cross-references should be generated in this mode, even those that would
660 -- not make sense from a user point-of-view, and that cross-references that
661 -- do not lead to data dependences for subprograms can be safely ignored.
663 -- GNATprove relies on the following front end behaviors:
665 -- 1. The first declarations in the list of visible declarations of
666 -- a package declaration for a generic instance, up to the first
667 -- declaration which comes from source, should correspond to
668 -- the "mappings nodes" between formal and actual generic parameters.
670 -- 2. In addition pragma Debug statements are removed from the tree
671 -- (rewritten to NULL stmt), since they should be ignored in formal
672 -- verification.
674 -- 3. An error is also issued for missing subunits, similar to the
675 -- warning issued when generating code, to avoid formal verification
676 -- of a partial unit.
678 -- 4. Unconstrained types are not replaced by constrained types whose
679 -- bounds are generated from an expression: Expand_Subtype_From_Expr
680 -- should be a no-op.
682 -- 5. Errors (instead of warnings) are issued on compile-time-known
683 -- constraint errors even though such cases do not correspond to
684 -- illegalities in the Ada RM (this is simply another case where
685 -- GNATprove implements a subset of the full language).
687 -- However, there are a few exceptions to this rule for cases where
688 -- we want to allow the GNATprove analysis to proceed (e.g. range
689 -- checks on empty ranges, which typically appear in deactivated
690 -- code in a particular configuration).
692 -- 6. Subtypes should match in the AST, even after a generic is
693 -- instantiated. In particular, GNATprove relies on the fact that,
694 -- on a selected component, the type of the selected component is
695 -- the type of the corresponding component in the prefix of the
696 -- selected component.
698 -- Note that, in some cases, we know that this rule is broken by the
699 -- frontend. In particular, if the selected component is a packed
700 -- array depending on a discriminant of a unconstrained formal object
701 -- parameter of a generic.
703 ----------------
704 -- SPARK Mode --
705 ----------------
707 -- The SPARK RM 1.6.5 defines a mode of operation called "SPARK mode" which
708 -- starts a scope where the SPARK language semantics are either On, Off, or
709 -- Auto, where Auto leaves the choice to the tools. A SPARK mode may be
710 -- specified by means of an aspect or a pragma.
712 -- The following entities may be subject to a SPARK mode. Entities marked
713 -- with * may possess two differente SPARK modes.
715 -- E_Entry
716 -- E_Entry_Family
717 -- E_Function
718 -- E_Generic_Function
719 -- E_Generic_Package *
720 -- E_Generic_Procedure
721 -- E_Operator
722 -- E_Package *
723 -- E_Package_Body *
724 -- E_Procedure
725 -- E_Protected_Body
726 -- E_Protected_Subtype
727 -- E_Protected_Type *
728 -- E_Subprogram_Body
729 -- E_Task_Body
730 -- E_Task_Subtype
731 -- E_Task_Type *
732 -- E_Variable
734 -- In order to manage SPARK scopes, the compiler relies on global variables
735 -- SPARK_Mode and SPARK_Mode_Pragma and a mechanism called "SPARK regions."
736 -- Routines Install_SPARK_Mode and Set_SPARK_Mode create a new SPARK region
737 -- and routine Restore_SPARK_Mode ends a SPARK region. A region may be
738 -- reinstalled similarly to scopes.
740 -----------------------
741 -- Check Flag Fields --
742 -----------------------
744 -- The following flag fields appear in expression nodes:
746 -- Do_Division_Check
747 -- Do_Overflow_Check
748 -- Do_Range_Check
750 -- These three flags are always set by the front end during semantic
751 -- analysis, on expression nodes that may trigger the corresponding
752 -- check. The front end then inserts or not the check during expansion. In
753 -- particular, these flags should also be correctly set in ASIS mode and
754 -- GNATprove mode. As a special case, the front end does not insert a
755 -- Do_Division_Check flag on float exponentiation expressions, for the case
756 -- where the value is 0.0 and the exponent is negative, although this case
757 -- does lead to a division check failure.
759 -- Note: the expander always takes care of the Do_Range check case,
760 -- so this flag will never be set in the expanded tree passed to the
761 -- back end code generator.
763 -- Note that this accounts for all nodes that trigger the corresponding
764 -- checks, except for range checks on subtype_indications, which may be
765 -- required to check that a range_constraint is compatible with the given
766 -- subtype (RM 3.2.2(11)).
768 -- The following flag fields appear in various nodes:
770 -- Do_Accessibility_Check
771 -- Do_Discriminant_Check
772 -- Do_Length_Check
773 -- Do_Storage_Check
774 -- Do_Tag_Check
776 -- These flags are used in some specific cases by the front end, either
777 -- during semantic analysis or during expansion, and cannot be expected
778 -- to be set on all nodes that trigger the corresponding check.
780 ------------------------
781 -- Common Flag Fields --
782 ------------------------
784 -- The following flag fields appear in all nodes:
786 -- Analyzed
787 -- This flag is used to indicate that a node (and all its children) have
788 -- been analyzed. It is used to avoid reanalysis of a node that has
789 -- already been analyzed, both for efficiency and functional correctness
790 -- reasons.
792 -- Comes_From_Source
793 -- This flag is set if the node comes directly from an explicit construct
794 -- in the source. It is normally on for any nodes built by the scanner or
795 -- parser from the source program, with the exception that in a few cases
796 -- the parser adds nodes to normalize the representation (in particular
797 -- a null statement is added to a package body if there is no begin/end
798 -- initialization section.
800 -- Most nodes inserted by the analyzer or expander are not considered
801 -- as coming from source, so the flag is off for such nodes. In a few
802 -- cases, the expander constructs nodes closely equivalent to nodes
803 -- from the source program (e.g. the allocator built for build-in-place
804 -- case), and the Comes_From_Source flag is deliberately set.
806 -- Error_Posted
807 -- This flag is used to avoid multiple error messages being posted on or
808 -- referring to the same node. This flag is set if an error message
809 -- refers to a node or is posted on its source location, and has the
810 -- effect of inhibiting further messages involving this same node.
812 -----------------------
813 -- Modify_Tree_For_C --
814 -----------------------
816 -- If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
817 -- in ways that help match the semantics better with C, easing the task of
818 -- interfacing to C code generators (other than GCC, where the work is done
819 -- in gigi, and there is no point in changing that), and also making life
820 -- easier for Cprint in generating C source code.
822 -- The current modifications implemented are as follows:
824 -- N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
825 -- are eliminated from the tree (since these operations do not exist in
826 -- C), and the operations are rewritten in terms of logical shifts and
827 -- other logical operations that do exist in C. See Exp_Ch4 expansion
828 -- routines for these operators for details of the transformations made.
830 -- The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
831 -- less than the word size (since other values are not well-defined in
832 -- C). This is done using an explicit test if necessary.
834 -- Min and Max attributes are expanded into equivalent if expressions,
835 -- dealing properly with side effect issues.
837 -- Mod for signed integer types is expanded into equivalent expressions
838 -- using Rem (which is % in C) and other C-available operators.
840 -- Functions returning bounded arrays are transformed into procedures
841 -- with an extra out parameter, and the calls updated accordingly.
843 -- Aggregates are only kept unexpanded for object declarations, otherwise
844 -- they are systematically expanded into loops (for arrays) and
845 -- individual assignments (for records).
847 -- Unconstrained array types are handled by means of fat pointers.
849 -- Postconditions are inlined by the frontend since their body may have
850 -- references to itypes defined in the enclosing subprogram.
852 ------------------------------------
853 -- Description of Semantic Fields --
854 ------------------------------------
856 -- The meaning of the syntactic fields is generally clear from their names
857 -- without any further description, since the names are chosen to
858 -- correspond very closely to the syntax in the reference manual. This
859 -- section describes the usage of the semantic fields, which are used to
860 -- contain additional information determined during semantic analysis.
862 -- Accept_Handler_Records (List5-Sem)
863 -- This field is present only in an N_Accept_Alternative node. It is used
864 -- to temporarily hold the exception handler records from an accept
865 -- statement in a selective accept. These exception handlers will
866 -- eventually be placed in the Handler_Records list of the procedure
867 -- built for this accept (see Expand_N_Selective_Accept procedure in
868 -- Exp_Ch9 for further details).
870 -- Access_Types_To_Process (Elist2-Sem)
871 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
872 -- Contains the list of access types which may require specific treatment
873 -- when the nature of the type completion is completely known. An example
874 -- of such treatment is the generation of the associated_final_chain.
876 -- Actions (List1-Sem)
877 -- This field contains a sequence of actions that are associated with the
878 -- node holding the field. See the individual node types for details of
879 -- how this field is used, as well as the description of the specific use
880 -- for a particular node type.
882 -- Activation_Chain_Entity (Node3-Sem)
883 -- This is used in tree nodes representing task activators (blocks,
884 -- subprogram bodies, package declarations, and task bodies). It is
885 -- initially Empty, and then gets set to point to the entity for the
886 -- declared Activation_Chain variable when the first task is declared.
887 -- When tasks are declared in the corresponding declarative region this
888 -- entity is located by name (its name is always _Chain) and the declared
889 -- tasks are added to the chain. Note that N_Extended_Return_Statement
890 -- does not have this attribute, although it does have an activation
891 -- chain. This chain is used to store the tasks temporarily, and is not
892 -- used for activating them. On successful completion of the return
893 -- statement, the tasks are moved to the caller's chain, and the caller
894 -- activates them.
896 -- Acts_As_Spec (Flag4-Sem)
897 -- A flag set in the N_Subprogram_Body node for a subprogram body which
898 -- is acting as its own spec. In the case of a library-level subprogram
899 -- the flag is set as well on the parent compilation unit node.
901 -- Actual_Designated_Subtype (Node4-Sem)
902 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
903 -- needs to known the dynamic constrained subtype of the designated
904 -- object, this attribute is set to that type. This is done for
905 -- N_Free_Statements for access-to-classwide types and access to
906 -- unconstrained packed array types, and for N_Explicit_Dereference when
907 -- the designated type is an unconstrained packed array and the
908 -- dereference is the prefix of a 'Size attribute reference.
910 -- Address_Warning_Posted (Flag18-Sem)
911 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
912 -- posted a warning for the address clause regarding size or alignment
913 -- issues. Used to inhibit multiple redundant messages.
915 -- Aggregate_Bounds (Node3-Sem)
916 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
917 -- known at compile time, this field points to an N_Range node with those
918 -- bounds. Otherwise Empty.
920 -- Alloc_For_BIP_Return (Flag1-Sem)
921 -- Present in N_Allocator nodes. True if the allocator is one of those
922 -- generated for a build-in-place return statement.
924 -- All_Others (Flag11-Sem)
925 -- Present in an N_Others_Choice node. This flag is set for an others
926 -- exception where all exceptions are to be caught, even those that are
927 -- not normally handled (in particular the tasking abort signal). This
928 -- is used for translation of the at end handler into a normal exception
929 -- handler.
931 -- Aspect_Rep_Item (Node2-Sem)
932 -- Present in N_Aspect_Specification nodes. Points to the corresponding
933 -- pragma/attribute definition node used to process the aspect.
935 -- Assignment_OK (Flag15-Sem)
936 -- This flag is set in a subexpression node for an object, indicating
937 -- that the associated object can be modified, even if this would not
938 -- normally be permissible (either by direct assignment, or by being
939 -- passed as an out or in-out parameter). This is used by the expander
940 -- for a number of purposes, including initialization of constants and
941 -- limited type objects (such as tasks), setting discriminant fields,
942 -- setting tag values, etc. N_Object_Declaration nodes also have this
943 -- flag defined. Here it is used to indicate that an initialization
944 -- expression is valid, even where it would normally not be allowed
945 -- (e.g. where the type involved is limited). It is also used to stop
946 -- a Force_Evaluation call for an unchecked conversion, but this usage
947 -- is unclear and not documented ???
949 -- Associated_Node (Node4-Sem)
950 -- Present in nodes that can denote an entity: identifiers, character
951 -- literals, operator symbols, expanded names, operator nodes, and
952 -- attribute reference nodes (all these nodes have an Entity field).
953 -- This field is also present in N_Aggregate, N_Selected_Component, and
954 -- N_Extension_Aggregate nodes. This field is used in generic processing
955 -- to create links between the generic template and the generic copy.
956 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
957 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
958 -- the normal function of Entity is not required at the point where the
959 -- Associated_Node is set. Note also, that in generic templates, this
960 -- means that the Entity field does not necessarily point to an Entity.
961 -- Since the back end is expected to ignore generic templates, this is
962 -- harmless.
964 -- Atomic_Sync_Required (Flag14-Sem)
965 -- This flag is set on a node for which atomic synchronization is
966 -- required for the corresponding reference or modification.
968 -- At_End_Proc (Node1)
969 -- This field is present in an N_Handled_Sequence_Of_Statements node.
970 -- It contains an identifier reference for the cleanup procedure to be
971 -- called. See description of this node for further details.
973 -- Backwards_OK (Flag6-Sem)
974 -- A flag present in the N_Assignment_Statement node. It is used only
975 -- if the type being assigned is an array type, and is set if analysis
976 -- determines that it is definitely safe to do the copy backwards, i.e.
977 -- starting at the highest addressed element. This is the case if either
978 -- the operands do not overlap, or they may overlap, but if they do,
979 -- then the left operand is at a higher address than the right operand.
981 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
982 -- means that the front end could not determine that either direction is
983 -- definitely safe, and a runtime check may be required if the backend
984 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
985 -- set, it means that the front end can assure no overlap of operands.
987 -- Body_To_Inline (Node3-Sem)
988 -- Present in subprogram declarations. Denotes analyzed but unexpanded
989 -- body of subprogram, to be used when inlining calls. Present when the
990 -- subprogram has an Inline pragma and inlining is enabled. If the
991 -- declaration is completed by a renaming_as_body, and the renamed entity
992 -- is a subprogram, the Body_To_Inline is the name of that entity, which
993 -- is used directly in later calls to the original subprogram.
995 -- Body_Required (Flag13-Sem)
996 -- A flag that appears in the N_Compilation_Unit node indicating that
997 -- the corresponding unit requires a body. For the package case, this
998 -- indicates that a completion is required. In Ada 95, if the flag is not
999 -- set for the package case, then a body may not be present. In Ada 83,
1000 -- if the flag is not set for the package case, then body is optional.
1001 -- For a subprogram declaration, the flag is set except in the case where
1002 -- a pragma Import or Interface applies, in which case no body is
1003 -- permitted (in Ada 83 or Ada 95).
1005 -- By_Ref (Flag5-Sem)
1006 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
1007 -- this flag is set when the returned expression is already allocated on
1008 -- the secondary stack and thus the result is passed by reference rather
1009 -- than copied another time.
1011 -- Cleanup_Actions (List5-Sem)
1012 -- Present in block statements created for transient blocks, contains
1013 -- additional cleanup actions carried over from the transient scope.
1015 -- Check_Address_Alignment (Flag11-Sem)
1016 -- A flag present in N_Attribute_Definition clause for a 'Address
1017 -- attribute definition. This flag is set if a dynamic check should be
1018 -- generated at the freeze point for the entity to which this address
1019 -- clause applies. The reason that we need this flag is that we want to
1020 -- check for range checks being suppressed at the point where the
1021 -- attribute definition clause is given, rather than testing this at the
1022 -- freeze point.
1024 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
1025 -- Present in N_Simple_Return_Statement nodes. True if this node was
1026 -- constructed as part of the N_Extended_Return_Statement expansion.
1028 -- Compile_Time_Known_Aggregate (Flag18-Sem)
1029 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
1030 -- evaluated at compile time without raising constraint error. Such
1031 -- aggregates can be passed as is to the back end without any expansion.
1032 -- See Exp_Aggr for specific conditions under which this flag gets set.
1034 -- Componentwise_Assignment (Flag14-Sem)
1035 -- Present in N_Assignment_Statement nodes. Set for a record assignment
1036 -- where all that needs doing is to expand it into component-by-component
1037 -- assignments. This is used internally for the case of tagged types with
1038 -- rep clauses, where we need to avoid recursion (we don't want to try to
1039 -- generate a call to the primitive operation, because this is the case
1040 -- where we are compiling the primitive operation). Note that when we are
1041 -- expanding component assignments in this case, we never assign the _tag
1042 -- field, but we recursively assign components of the parent type.
1044 -- Condition_Actions (List3-Sem)
1045 -- This field appears in else-if nodes and in the iteration scheme node
1046 -- for while loops. This field is only used during semantic processing to
1047 -- temporarily hold actions inserted into the tree. In the tree passed
1048 -- to gigi, the condition actions field is always set to No_List. For
1049 -- details on how this field is used, see the routine Insert_Actions in
1050 -- package Exp_Util, and also the expansion routines for the relevant
1051 -- nodes.
1053 -- Context_Pending (Flag16-Sem)
1054 -- This field appears in Compilation_Unit nodes, to indicate that the
1055 -- context of the unit is being compiled. Used to detect circularities
1056 -- that are not otherwise detected by the loading mechanism. Such
1057 -- circularities can occur in the presence of limited and non-limited
1058 -- with_clauses that mention the same units.
1060 -- Controlling_Argument (Node1-Sem)
1061 -- This field is set in procedure and function call nodes if the call
1062 -- is a dispatching call (it is Empty for a non-dispatching call). It
1063 -- indicates the source of the call's controlling tag. For procedure
1064 -- calls, the Controlling_Argument is one of the actuals. For function
1065 -- that has a dispatching result, it is an entity in the context of the
1066 -- call that can provide a tag, or else it is the tag of the root type
1067 -- of the class. It can also specify a tag directly rather than being a
1068 -- tagged object. The latter is needed by the implementations of AI-239
1069 -- and AI-260.
1071 -- Conversion_OK (Flag14-Sem)
1072 -- A flag set on type conversion nodes to indicate that the conversion
1073 -- is to be considered as being valid, even though it is the case that
1074 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
1075 -- Fixed_Value and Integer_Value, for internal conversions done for
1076 -- fixed-point operations, and for certain conversions for calls to
1077 -- initialization procedures. If Conversion_OK is set, then Etype must be
1078 -- set (the analyzer assumes that Etype has been set). For the case of
1079 -- fixed-point operands, it also indicates that the conversion is to be
1080 -- direct conversion of the underlying integer result, with no regard to
1081 -- the small operand.
1083 -- Convert_To_Return_False (Flag13-Sem)
1084 -- Present in N_Raise_Expression nodes that appear in the body of the
1085 -- special predicateM function used to test a predicate in the context
1086 -- of a membership test, where raise expression results in returning a
1087 -- value of False rather than raising an exception.
1089 -- Corresponding_Aspect (Node3-Sem)
1090 -- Present in N_Pragma node. Used to point back to the source aspect from
1091 -- the corresponding pragma. This field is Empty for source pragmas.
1093 -- Corresponding_Body (Node5-Sem)
1094 -- This field is set in subprogram declarations, package declarations,
1095 -- entry declarations of protected types, and in generic units. It points
1096 -- to the defining entity for the corresponding body (NOT the node for
1097 -- the body itself).
1099 -- Corresponding_Formal_Spec (Node3-Sem)
1100 -- This field is set in subprogram renaming declarations, where it points
1101 -- to the defining entity for a formal subprogram in the case where the
1102 -- renaming corresponds to a generic formal subprogram association in an
1103 -- instantiation. The field is Empty if the renaming does not correspond
1104 -- to such a formal association.
1106 -- Corresponding_Generic_Association (Node5-Sem)
1107 -- This field is defined for object declarations and object renaming
1108 -- declarations. It is set for the declarations within an instance that
1109 -- map generic formals to their actuals. If set, the field points to
1110 -- a generic_association which is the original parent of the expression
1111 -- or name appearing in the declaration. This simplifies ASIS queries.
1113 -- Corresponding_Integer_Value (Uint4-Sem)
1114 -- This field is set in real literals of fixed-point types (it is not
1115 -- used for floating-point types). It contains the integer value used
1116 -- to represent the fixed-point value. It is also set on the universal
1117 -- real literals used to represent bounds of fixed-point base types
1118 -- and their first named subtypes.
1120 -- Corresponding_Spec (Node5-Sem)
1121 -- This field is set in subprogram, package, task, and protected body
1122 -- nodes, where it points to the defining entity in the corresponding
1123 -- spec. The attribute is also set in N_With_Clause nodes where it points
1124 -- to the defining entity for the with'ed spec, and in a subprogram
1125 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
1126 -- if there is no corresponding spec, as in the case of a subprogram body
1127 -- that serves as its own spec.
1129 -- In Ada 2012, Corresponding_Spec is set on expression functions that
1130 -- complete a subprogram declaration.
1132 -- Corresponding_Spec_Of_Stub (Node2-Sem)
1133 -- This field is present in subprogram, package, task, and protected body
1134 -- stubs where it points to the corresponding spec of the stub. Due to
1135 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
1137 -- Corresponding_Stub (Node3-Sem)
1138 -- This field is present in an N_Subunit node. It holds the node in
1139 -- the parent unit that is the stub declaration for the subunit. It is
1140 -- set when analysis of the stub forces loading of the proper body. If
1141 -- expansion of the proper body creates new declarative nodes, they are
1142 -- inserted at the point of the corresponding_stub.
1144 -- Dcheck_Function (Node5-Sem)
1145 -- This field is present in an N_Variant node, It references the entity
1146 -- for the discriminant checking function for the variant.
1148 -- Default_Expression (Node5-Sem)
1149 -- This field is Empty if there is no default expression. If there is a
1150 -- simple default expression (one with no side effects), then this field
1151 -- simply contains a copy of the Expression field (both point to the tree
1152 -- for the default expression). Default_Expression is used for
1153 -- conformance checking.
1155 -- Default_Storage_Pool (Node3-Sem)
1156 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
1157 -- copy of Opt.Default_Pool at the end of the compilation unit. See
1158 -- package Opt for details. This is used for inheriting the
1159 -- Default_Storage_Pool in child units.
1161 -- Discr_Check_Funcs_Built (Flag11-Sem)
1162 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
1163 -- discriminant checking functions are constructed. The purpose is to
1164 -- avoid attempting to set these functions more than once.
1166 -- Do_Accessibility_Check (Flag13-Sem)
1167 -- This flag is set on N_Parameter_Specification nodes to indicate
1168 -- that an accessibility check is required for the parameter. It is
1169 -- not yet decided who takes care of this check (TBD ???).
1171 -- Do_Discriminant_Check (Flag3-Sem)
1172 -- This flag is set on N_Selected_Component nodes to indicate that a
1173 -- discriminant check is required using the discriminant check routine
1174 -- associated with the selector. The actual check is generated by the
1175 -- expander when processing selected components. In the case of
1176 -- Unchecked_Union, the flag is also set, but no discriminant check
1177 -- routine is associated with the selector, and the expander does not
1178 -- generate a check. This flag is also present in assignment statements
1179 -- (and set if the assignment requires a discriminant check), and in type
1180 -- conversion nodes (and set if the conversion requires a check).
1182 -- Do_Division_Check (Flag13-Sem)
1183 -- This flag is set on a division operator (/ mod rem) to indicate
1184 -- that a zero divide check is required. The actual check is dealt
1185 -- with by the backend (all the front end does is to set the flag).
1187 -- Do_Length_Check (Flag4-Sem)
1188 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1189 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1190 -- is required. It is not determined who deals with this flag (???).
1192 -- Do_Overflow_Check (Flag17-Sem)
1193 -- This flag is set on an operator where an overflow check is required on
1194 -- the operation. The actual check is dealt with by the backend (all the
1195 -- front end does is to set the flag). The other cases where this flag is
1196 -- used is on a Type_Conversion node and for attribute reference nodes.
1197 -- For a type conversion, it means that the conversion is from one base
1198 -- type to another, and the value may not fit in the target base type.
1199 -- See also the description of Do_Range_Check for this case. The only
1200 -- attribute references which use this flag are Pred and Succ, where it
1201 -- means that the result should be checked for going outside the base
1202 -- range. Note that this flag is not set for modular types. This flag is
1203 -- also set on if and case expression nodes if we are operating in either
1204 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1205 -- properly process overflow checking for dependent expressions).
1207 -- Do_Range_Check (Flag9-Sem)
1208 -- This flag is set on an expression which appears in a context where a
1209 -- range check is required. The target type is clear from the context.
1210 -- The contexts in which this flag can appear are the following:
1212 -- Right side of an assignment. In this case the target type is
1213 -- taken from the left side of the assignment, which is referenced
1214 -- by the Name of the N_Assignment_Statement node.
1216 -- Subscript expressions in an indexed component. In this case the
1217 -- target type is determined from the type of the array, which is
1218 -- referenced by the Prefix of the N_Indexed_Component node.
1220 -- Argument expression for a parameter, appearing either directly in
1221 -- the Parameter_Associations list of a call or as the Expression of an
1222 -- N_Parameter_Association node that appears in this list. In either
1223 -- case, the check is against the type of the formal. Note that the
1224 -- flag is relevant only in IN and IN OUT parameters, and will be
1225 -- ignored for OUT parameters, where no check is required in the call,
1226 -- and if a check is required on the return, it is generated explicitly
1227 -- with a type conversion.
1229 -- Initialization expression for the initial value in an object
1230 -- declaration. In this case the Do_Range_Check flag is set on
1231 -- the initialization expression, and the check is against the
1232 -- range of the type of the object being declared. This includes the
1233 -- cases of expressions providing default discriminant values, and
1234 -- expressions used to initialize record components.
1236 -- The expression of a type conversion. In this case the range check is
1237 -- against the target type of the conversion. See also the use of
1238 -- Do_Overflow_Check on a type conversion. The distinction is that the
1239 -- overflow check protects against a value that is outside the range of
1240 -- the target base type, whereas a range check checks that the
1241 -- resulting value (which is a value of the base type of the target
1242 -- type), satisfies the range constraint of the target type.
1244 -- Note: when a range check is required in contexts other than those
1245 -- listed above (e.g. in a return statement), an additional type
1246 -- conversion node is introduced to represent the required check.
1248 -- A special case arises for the arguments of the Pred/Succ attributes.
1249 -- Here the range check needed is against First + 1 .. Last (Pred) or
1250 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
1251 -- these checks are what would be performed within the implicit body of
1252 -- the functions that correspond to these attributes. In these cases,
1253 -- the Do_Range check flag is set on the argument to the attribute
1254 -- function, and the back end must special case the appropriate range
1255 -- to check against.
1257 -- Do_Storage_Check (Flag17-Sem)
1258 -- This flag is set in an N_Allocator node to indicate that a storage
1259 -- check is required for the allocation, or in an N_Subprogram_Body node
1260 -- to indicate that a stack check is required in the subprogram prologue.
1261 -- The N_Allocator case is handled by the routine that expands the call
1262 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1263 -- backend, and all the semantics does is set the flag.
1265 -- Do_Tag_Check (Flag13-Sem)
1266 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1267 -- N_Procedure_Call_Statement, N_Type_Conversion,
1268 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1269 -- node to indicate that the tag check can be suppressed. It is not
1270 -- yet decided how this flag is used (TBD ???).
1272 -- Elaborate_Present (Flag4-Sem)
1273 -- This flag is set in the N_With_Clause node to indicate that pragma
1274 -- Elaborate pragma appears for the with'ed units.
1276 -- Elaborate_All_Desirable (Flag9-Sem)
1277 -- This flag is set in the N_With_Clause mode to indicate that the static
1278 -- elaboration processing has determined that an Elaborate_All pragma is
1279 -- desirable for correct elaboration for this unit.
1281 -- Elaborate_All_Present (Flag14-Sem)
1282 -- This flag is set in the N_With_Clause node to indicate that a
1283 -- pragma Elaborate_All pragma appears for the with'ed units.
1285 -- Elaborate_Desirable (Flag11-Sem)
1286 -- This flag is set in the N_With_Clause mode to indicate that the static
1287 -- elaboration processing has determined that an Elaborate pragma is
1288 -- desirable for correct elaboration for this unit.
1290 -- Else_Actions (List3-Sem)
1291 -- This field is present in if expression nodes. During code
1292 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1293 -- actions at an appropriate place in the tree to get elaborated at the
1294 -- right time. For if expressions, we have to be sure that the actions
1295 -- for the Else branch are only elaborated if the condition is False.
1296 -- The Else_Actions field is used as a temporary parking place for
1297 -- these actions. The final tree is always rewritten to eliminate the
1298 -- need for this field, so in the tree passed to Gigi, this field is
1299 -- always set to No_List.
1301 -- Enclosing_Variant (Node2-Sem)
1302 -- This field is present in the N_Variant node and identifies the Node_Id
1303 -- corresponding to the immediately enclosing variant when the variant is
1304 -- nested, and N_Empty otherwise. Set during semantic processing of the
1305 -- variant part of a record type.
1307 -- Entity (Node4-Sem)
1308 -- Appears in all direct names (identifiers, character literals, and
1309 -- operator symbols), as well as expanded names, and attributes that
1310 -- denote entities, such as 'Class. Points to entity for corresponding
1311 -- defining occurrence. Set after name resolution. For identifiers in a
1312 -- WITH list, the corresponding defining occurrence is in a separately
1313 -- compiled file, and Entity must be set by the library Load procedure.
1315 -- Note: During name resolution, the value in Entity may be temporarily
1316 -- incorrect (e.g. during overload resolution, Entity is initially set to
1317 -- the first possible correct interpretation, and then later modified if
1318 -- necessary to contain the correct value after resolution).
1320 -- Note: This field overlaps Associated_Node, which is used during
1321 -- generic processing (see Sem_Ch12 for details). Note also that in
1322 -- generic templates, this means that the Entity field does not always
1323 -- point to an Entity. Since the back end is expected to ignore generic
1324 -- templates, this is harmless.
1326 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1327 -- It is used only for stream attributes definition clauses. In this
1328 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1329 -- conceptually at the point of the clause. Thus the visibility of the
1330 -- attribute definition clause (in the sense of 8.3(23) as amended by
1331 -- AI-195) can be checked by testing the visibility of that subprogram.
1333 -- Note: Normally the Entity field of an identifier points to the entity
1334 -- for the corresponding defining identifier, and hence the Chars field
1335 -- of an identifier will match the Chars field of the entity. However,
1336 -- there is no requirement that these match, and there are obscure cases
1337 -- of generated code where they do not match.
1339 -- Note: Ada 2012 aspect specifications require additional links between
1340 -- identifiers and various attributes. These attributes can be of
1341 -- arbitrary types, and the entity field of identifiers that denote
1342 -- aspects must be used to store arbitrary expressions for later semantic
1343 -- checks. See section on aspect specifications for details.
1345 -- Entity_Or_Associated_Node (Node4-Sem)
1346 -- A synonym for both Entity and Associated_Node. Used by convention in
1347 -- the code when referencing this field in cases where it is not known
1348 -- whether the field contains an Entity or an Associated_Node.
1350 -- Etype (Node5-Sem)
1351 -- Appears in all expression nodes, all direct names, and all entities.
1352 -- Points to the entity for the related type. Set after type resolution.
1353 -- Normally this is the actual subtype of the expression. However, in
1354 -- certain contexts such as the right side of an assignment, subscripts,
1355 -- arguments to calls, returned value in a function, initial value etc.
1356 -- it is the desired target type. In the event that this is different
1357 -- from the actual type, the Do_Range_Check flag will be set if a range
1358 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1359 -- points to an essentially arbitrary choice from the possible set of
1360 -- types.
1362 -- Exception_Junk (Flag8-Sem)
1363 -- This flag is set in a various nodes appearing in a statement sequence
1364 -- to indicate that the corresponding node is an artifact of the
1365 -- generated code for exception handling, and should be ignored when
1366 -- analyzing the control flow of the relevant sequence of statements
1367 -- (e.g. to check that it does not end with a bad return statement).
1369 -- Exception_Label (Node5-Sem)
1370 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1371 -- to be used for transforming the corresponding exception into a goto,
1372 -- or contains Empty, if this exception is not to be transformed. Also
1373 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1374 -- that there may be a local raise for the handler, so that expansion
1375 -- to allow a goto is required (and this field contains the label for
1376 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1378 -- Expansion_Delayed (Flag11-Sem)
1379 -- Set on aggregates and extension aggregates that need a top-down rather
1380 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1381 -- up. For nested aggregates the expansion is delayed until the enclosing
1382 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1383 -- delay it we set this flag. This is done to avoid creating a temporary
1384 -- for each level of a nested aggregate, and also to prevent the
1385 -- premature generation of constraint checks. This is also a requirement
1386 -- if we want to generate the proper attachment to the internal????
1387 -- finalization lists (for record with controlled components). Top down
1388 -- expansion of aggregates is also used for in-place array aggregate
1389 -- assignment or initialization. When the full context is known, the
1390 -- target of the assignment or initialization is used to generate the
1391 -- left-hand side of individual assignment to each sub-component.
1393 -- Expression_Copy (Node2-Sem)
1394 -- Present in N_Pragma_Argument_Association nodes. Contains a copy of the
1395 -- original expression. This field is best used to store pragma-dependent
1396 -- modifications performed on the original expression such as replacement
1397 -- of the current type instance or substitutions of primitives.
1399 -- First_Inlined_Subprogram (Node3-Sem)
1400 -- Present in the N_Compilation_Unit node for the main program. Points
1401 -- to a chain of entities for subprograms that are to be inlined. The
1402 -- Next_Inlined_Subprogram field of these entities is used as a link
1403 -- pointer with Empty marking the end of the list. This field is Empty
1404 -- if there are no inlined subprograms or inlining is not active.
1406 -- First_Named_Actual (Node4-Sem)
1407 -- Present in procedure call statement and function call nodes, and also
1408 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1409 -- named parameter where parameters are ordered by declaration order (as
1410 -- opposed to the actual order in the call which may be different due to
1411 -- named associations). Note: this field points to the explicit actual
1412 -- parameter itself, not the N_Parameter_Association node (its parent).
1414 -- First_Real_Statement (Node2-Sem)
1415 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1416 -- Empty. Used only when declarations are moved into the statement part
1417 -- of a construct as a result of wrapping an AT END handler that is
1418 -- required to cover the declarations. In this case, this field is used
1419 -- to remember the location in the statements list of the first real
1420 -- statement, i.e. the statement that used to be first in the statement
1421 -- list before the declarations were prepended.
1423 -- First_Subtype_Link (Node5-Sem)
1424 -- Present in N_Freeze_Entity node for an anonymous base type that is
1425 -- implicitly created by the declaration of a first subtype. It points
1426 -- to the entity for the first subtype.
1428 -- Float_Truncate (Flag11-Sem)
1429 -- A flag present in type conversion nodes. This is used for float to
1430 -- integer conversions where truncation is required rather than rounding.
1432 -- Forwards_OK (Flag5-Sem)
1433 -- A flag present in the N_Assignment_Statement node. It is used only
1434 -- if the type being assigned is an array type, and is set if analysis
1435 -- determines that it is definitely safe to do the copy forwards, i.e.
1436 -- starting at the lowest addressed element. This is the case if either
1437 -- the operands do not overlap, or they may overlap, but if they do,
1438 -- then the left operand is at a lower address than the right operand.
1440 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1441 -- means that the front end could not determine that either direction is
1442 -- definitely safe, and a runtime check may be required if the backend
1443 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1444 -- set, it means that the front end can assure no overlap of operands.
1446 -- From_Aspect_Specification (Flag13-Sem)
1447 -- Processing of aspect specifications typically results in insertion in
1448 -- the tree of corresponding pragma or attribute definition clause nodes.
1449 -- These generated nodes have the From_Aspect_Specification flag set to
1450 -- indicate that they came from aspect specifications originally.
1452 -- From_At_End (Flag4-Sem)
1453 -- This flag is set on an N_Raise_Statement node if it corresponds to
1454 -- the reraise statement generated as the last statement of an AT END
1455 -- handler when SJLJ exception handling is active. It is used to stop
1456 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1457 -- because if the restriction is set, the reraise is not generated.
1459 -- From_At_Mod (Flag4-Sem)
1460 -- This flag is set on the attribute definition clause node that is
1461 -- generated by a transformation of an at mod phrase in a record
1462 -- representation clause. This is used to give slightly different (Ada 83
1463 -- compatible) semantics to such a clause, namely it is used to specify a
1464 -- minimum acceptable alignment for the base type and all subtypes. In
1465 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1466 -- must be a multiple of the given value, and the representation clause
1467 -- is considered to be type specific instead of subtype specific.
1469 -- From_Conditional_Expression (Flag1-Sem)
1470 -- This flag is set on if and case statements generated by the expansion
1471 -- of if and case expressions respectively. The flag is used to suppress
1472 -- any finalization of controlled objects found within these statements.
1474 -- From_Default (Flag6-Sem)
1475 -- This flag is set on the subprogram renaming declaration created in an
1476 -- instance for a formal subprogram, when the formal is declared with a
1477 -- box, and there is no explicit actual. If the flag is present, the
1478 -- declaration is treated as an implicit reference to the formal in the
1479 -- ali file.
1481 -- Generalized_Indexing (Node4-Sem)
1482 -- Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1483 -- that are Ada 2012 container indexing operations. The value of the
1484 -- attribute is a function call (possibly dereferenced) that corresponds
1485 -- to the proper expansion of the source indexing operation. Before
1486 -- expansion, the source node is rewritten as the resolved generalized
1487 -- indexing. In ASIS mode, the expansion does not take place, so that
1488 -- the source is preserved and properly annotated with types.
1490 -- Generic_Parent (Node5-Sem)
1491 -- Generic_Parent is defined on declaration nodes that are instances. The
1492 -- value of Generic_Parent is the generic entity from which the instance
1493 -- is obtained.
1495 -- Generic_Parent_Type (Node4-Sem)
1496 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1497 -- actuals of formal private and derived types. Within the instance, the
1498 -- operations on the actual are those inherited from the parent. For a
1499 -- formal private type, the parent type is the generic type itself. The
1500 -- Generic_Parent_Type is also used in an instance to determine whether a
1501 -- private operation overrides an inherited one.
1503 -- Handler_List_Entry (Node2-Sem)
1504 -- This field is present in N_Object_Declaration nodes. It is set only
1505 -- for the Handler_Record entry generated for an exception in zero cost
1506 -- exception handling mode. It references the corresponding item in the
1507 -- handler list, and is used to delete this entry if the corresponding
1508 -- handler is deleted during optimization. For further details on why
1509 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1511 -- Has_Dereference_Action (Flag13-Sem)
1512 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1513 -- indicate that the expansion has aready produced a call to primitive
1514 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1515 -- Such dereference actions are produced for debugging purposes.
1517 -- Has_Dynamic_Length_Check (Flag10-Sem)
1518 -- This flag is present in all expression nodes. It is set to indicate
1519 -- that one of the routines in unit Checks has generated a length check
1520 -- action which has been inserted at the flagged node. This is used to
1521 -- avoid the generation of duplicate checks.
1523 -- Has_Dynamic_Range_Check (Flag12-Sem)
1524 -- This flag is present in N_Subtype_Declaration nodes and on all
1525 -- expression nodes. It is set to indicate that one of the routines in
1526 -- unit Checks has generated a range check action which has been inserted
1527 -- at the flagged node. This is used to avoid the generation of duplicate
1528 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1529 -- it mean in that context???
1531 -- Has_Local_Raise (Flag8-Sem)
1532 -- Present in exception handler nodes. Set if the handler can be entered
1533 -- via a local raise that gets transformed to a goto statement. This will
1534 -- always be set if Local_Raise_Statements is non-empty, but can also be
1535 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1536 -- nodes requiring generation of back end checks.
1538 -- Has_No_Elaboration_Code (Flag17-Sem)
1539 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1540 -- or not elaboration code is present for this unit. It is initially set
1541 -- true for subprogram specs and bodies and for all generic units and
1542 -- false for non-generic package specs and bodies. Gigi may set the flag
1543 -- in the non-generic package case if it determines that no elaboration
1544 -- code is generated. Note that this flag is not related to the
1545 -- Is_Preelaborated status, there can be preelaborated packages that
1546 -- generate elaboration code, and non-preelaborated packages which do
1547 -- not generate elaboration code.
1549 -- Has_Pragma_Suppress_All (Flag14-Sem)
1550 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1551 -- pragma appears anywhere in the unit. This accommodates the rather
1552 -- strange placement rules of other compilers (DEC permits it at the
1553 -- end of a unit, and Rational allows it as a program unit pragma). We
1554 -- allow it anywhere at all, and consider it equivalent to a pragma
1555 -- Suppress (All_Checks) appearing at the start of the configuration
1556 -- pragmas for the unit.
1558 -- Has_Private_View (Flag11-Sem)
1559 -- A flag present in generic nodes that have an entity, to indicate that
1560 -- the node has a private type. Used to exchange private and full
1561 -- declarations if the visibility at instantiation is different from the
1562 -- visibility at generic definition.
1564 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1565 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1566 -- flag the presence of a pragma Relative_Deadline.
1568 -- Has_Self_Reference (Flag13-Sem)
1569 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1570 -- of the expressions contains an access attribute reference to the
1571 -- enclosing type. Such a self-reference can only appear in default-
1572 -- initialized aggregate for a record type.
1574 -- Has_SP_Choice (Flag15-Sem)
1575 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1576 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1577 -- True if the Discrete_Choices list has at least one occurrence of a
1578 -- statically predicated subtype.
1580 -- Has_Storage_Size_Pragma (Flag5-Sem)
1581 -- A flag present in an N_Task_Definition node to flag the presence of a
1582 -- Storage_Size pragma.
1584 -- Has_Target_Names (Flag8-Sem)
1585 -- Present in assignment statements. Indicates that the RHS contains
1586 -- target names (see AI12-0125-3) and must be expanded accordingly.
1588 -- Has_Wide_Character (Flag11-Sem)
1589 -- Present in string literals, set if any wide character (i.e. character
1590 -- code outside the Character range but within Wide_Character range)
1591 -- appears in the string. Used to implement pragma preference rules.
1593 -- Has_Wide_Wide_Character (Flag13-Sem)
1594 -- Present in string literals, set if any wide character (i.e. character
1595 -- code outside the Wide_Character range) appears in the string. Used to
1596 -- implement pragma preference rules.
1598 -- Header_Size_Added (Flag11-Sem)
1599 -- Present in N_Attribute_Reference nodes, set only for attribute
1600 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1601 -- hidden list header used by the runtime finalization support has been
1602 -- added to the size of the prefix. The flag also prevents the infinite
1603 -- expansion of the same attribute in the said context.
1605 -- Hidden_By_Use_Clause (Elist5-Sem)
1606 -- An entity list present in use clauses that appear within
1607 -- instantiations. For the resolution of local entities, entities
1608 -- introduced by these use clauses have priority over global ones,
1609 -- and outer entities must be explicitly hidden/restored on exit.
1611 -- Implicit_With (Flag16-Sem)
1612 -- Present in N_With_Clause nodes. The flag indicates that the clause
1613 -- does not comes from source and introduces an implicit dependency on
1614 -- a particular unit. Such implicit with clauses are generated by:
1616 -- * ABE mechanism - The static elaboration model of both the default
1617 -- and the legacy ABE mechanism use with clauses to encode implicit
1618 -- Elaborate[_All] pragmas.
1620 -- * Analysis - A with clause for child unit A.B.C is equivalent to
1621 -- a series of clauses that with A, A.B, and A.B.C. Manipulation of
1622 -- contexts utilizes implicit with clauses to emulate the visibility
1623 -- of a particular unit.
1625 -- * RTSfind - The compiler generates code which references entities
1626 -- from the runtime.
1628 -- Import_Interface_Present (Flag16-Sem)
1629 -- This flag is set in an Interface or Import pragma if a matching
1630 -- pragma of the other kind is also present. This is used to avoid
1631 -- generating some unwanted error messages.
1633 -- Includes_Infinities (Flag11-Sem)
1634 -- This flag is present in N_Range nodes. It is set for the range of
1635 -- unconstrained float types defined in Standard, which include not only
1636 -- the given range of values, but also legitimately can include infinite
1637 -- values. This flag is false for any float type for which an explicit
1638 -- range is given by the programmer, even if that range is identical to
1639 -- the range for Float.
1641 -- Incomplete_View (Node2-Sem)
1642 -- Present in full type declarations that are completions of incomplete
1643 -- type declarations. Denotes the corresponding incomplete type
1644 -- declaration. Used to simplify the retrieval of primitive operations
1645 -- that may be declared between the partial and the full view of an
1646 -- untagged type.
1648 -- Inherited_Discriminant (Flag13-Sem)
1649 -- This flag is present in N_Component_Association nodes. It indicates
1650 -- that a given component association in an extension aggregate is the
1651 -- value obtained from a constraint on an ancestor. Used to prevent
1652 -- double expansion when the aggregate has expansion delayed.
1654 -- Instance_Spec (Node5-Sem)
1655 -- This field is present in generic instantiation nodes, and also in
1656 -- formal package declaration nodes (formal package declarations are
1657 -- treated in a manner very similar to package instantiations). It points
1658 -- to the node for the spec of the instance, inserted as part of the
1659 -- semantic processing for instantiations in Sem_Ch12.
1661 -- Is_Abort_Block (Flag4-Sem)
1662 -- Present in N_Block_Statement nodes. True if the block protects a list
1663 -- of statements with an Abort_Defer / Abort_Undefer_Direct pair.
1665 -- Is_Accessibility_Actual (Flag13-Sem)
1666 -- Present in N_Parameter_Association nodes. True if the parameter is
1667 -- an extra actual that carries the accessibility level of the actual
1668 -- for an access parameter, in a function that dispatches on result and
1669 -- is called in a dispatching context. Used to prevent a formal/actual
1670 -- mismatch when the call is rewritten as a dispatching call.
1672 -- Is_Analyzed_Pragma (Flag5-Sem)
1673 -- Present in N_Pragma nodes. Set for delayed pragmas that require a two
1674 -- step analysis. The initial step is peformed by routine Analyze_Pragma
1675 -- and verifies the overall legality of the pragma. The second step takes
1676 -- place in the various Analyze_xxx_In_Decl_Part routines which perform
1677 -- full analysis. The flag prevents the reanalysis of a delayed pragma.
1679 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1680 -- A flag set in a Block_Statement node to indicate that it is the
1681 -- expansion of an asynchronous entry call. Such a block needs cleanup
1682 -- handler to assure that the call is cancelled.
1684 -- Is_Boolean_Aspect (Flag16-Sem)
1685 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1686 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1688 -- Is_Checked (Flag11-Sem)
1689 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1690 -- assertion aspect or pragma, or check pragma for an assertion, that
1691 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1692 -- is set (they cannot both be set), then this means that the status of
1693 -- the pragma has been checked at the appropriate point and should not
1694 -- be further modified (in some cases these flags are copied when a
1695 -- pragma is rewritten).
1697 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
1698 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1699 -- related to a checked Ghost entity or encloses a checked Ghost entity.
1700 -- This flag has no relation to Is_Checked.
1702 -- Is_Component_Left_Opnd (Flag13-Sem)
1703 -- Is_Component_Right_Opnd (Flag14-Sem)
1704 -- Present in concatenation nodes, to indicate that the corresponding
1705 -- operand is of the component type of the result. Used in resolving
1706 -- concatenation nodes in instances.
1708 -- Is_Controlling_Actual (Flag16-Sem)
1709 -- This flag is set on an expression that is a controlling argument in
1710 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1711 -- details of its use.
1713 -- Is_Declaration_Level_Node (Flag5-Sem)
1714 -- Present in call marker and instantiation nodes. Set when the constuct
1715 -- appears within the declarations of a block statement, an entry body,
1716 -- a subprogram body, or a task body. The flag aids the ABE Processing
1717 -- phase to catch certain forms of guaranteed ABEs.
1719 -- Is_Delayed_Aspect (Flag14-Sem)
1720 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1721 -- come from aspect specifications, where the evaluation of the aspect
1722 -- must be delayed to the freeze point. This flag is also set True in
1723 -- the corresponding N_Aspect_Specification node.
1725 -- Is_Disabled (Flag15-Sem)
1726 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1727 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1728 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1729 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1730 -- If this flag is set, the aspect or policy is not analyzed for semantic
1731 -- correctness, so any expressions etc will not be marked as analyzed.
1733 -- Is_Dispatching_Call (Flag6-Sem)
1734 -- Present in call marker nodes. Set when the related call which prompted
1735 -- the creation of the marker is dispatching.
1737 -- Is_Dynamic_Coextension (Flag18-Sem)
1738 -- Present in allocator nodes, to indicate that this is an allocator
1739 -- for an access discriminant of a dynamically allocated object. The
1740 -- coextension must be deallocated and finalized at the same time as
1741 -- the enclosing object. The partner flag Is_Static_Coextension must
1742 -- be cleared before setting this flag to True.
1744 -- Is_Effective_Use_Clause (Flag1-Sem)
1745 -- Present in both N_Use_Type_Clause and N_Use_Package_Clause to indicate
1746 -- a use clause is "used" in the current source.
1748 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
1749 -- Present in the following nodes:
1751 -- assignment statement
1752 -- attribute reference
1753 -- call marker
1754 -- entry call statement
1755 -- expanded name
1756 -- function call
1757 -- function instantiation
1758 -- identifier
1759 -- package instantiation
1760 -- procedure call statement
1761 -- procedure instantiation
1762 -- requeue statement
1764 -- Set when the node appears within a context which allows the generation
1765 -- of run-time ABE checks. This flag detemines whether the ABE Processing
1766 -- phase generates conditional ABE checks and guaranteed ABE failures.
1768 -- Is_Elaboration_Code (Flag9-Sem)
1769 -- Present in assignment statements. Set for an assignment which updates
1770 -- the elaboration flag of a package or subprogram when the corresponding
1771 -- body is successfully elaborated.
1773 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
1774 -- Present in the following nodes:
1776 -- attribute reference
1777 -- call marker
1778 -- entry call statement
1779 -- function call
1780 -- function instantiation
1781 -- package instantiation
1782 -- procedure call statement
1783 -- procedure instantiation
1784 -- requeue statement
1786 -- Set when the node appears within a context where elaboration warnings
1787 -- are enabled. This flag determines whether the ABE processing phase
1788 -- generates diagnostics on various elaboration issues.
1790 -- Is_Entry_Barrier_Function (Flag8-Sem)
1791 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1792 -- nodes which emulate the barrier function of a protected entry body.
1793 -- The flag is used when checking for incorrect use of Current_Task.
1795 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1796 -- This flag is set in an N_Function_Call node to indicate that the extra
1797 -- actuals to support a build-in-place style of call have been added to
1798 -- the call.
1800 -- Is_Expanded_Contract (Flag1-Sem)
1801 -- Present in N_Contract nodes. Set if the contract has already undergone
1802 -- expansion activities.
1804 -- Is_Finalization_Wrapper (Flag9-Sem)
1805 -- This flag is present in N_Block_Statement nodes. It is set when the
1806 -- block acts as a wrapper of a handled construct which has controlled
1807 -- objects. The wrapper prevents interference between exception handlers
1808 -- and At_End handlers.
1810 -- Is_Generic_Contract_Pragma (Flag2-Sem)
1811 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1812 -- a source construct, applies to a generic unit or its body, and denotes
1813 -- one of the following contract-related annotations:
1814 -- Abstract_State
1815 -- Contract_Cases
1816 -- Depends
1817 -- Extensions_Visible
1818 -- Global
1819 -- Initial_Condition
1820 -- Initializes
1821 -- Post
1822 -- Post_Class
1823 -- Postcondition
1824 -- Pre
1825 -- Pre_Class
1826 -- Precondition
1827 -- Refined_Depends
1828 -- Refined_Global
1829 -- Refined_Post
1830 -- Refined_State
1831 -- Test_Case
1833 -- Is_Ignored (Flag9-Sem)
1834 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1835 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1836 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1837 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1838 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1839 -- gives a policy for the aspect or pragma, then there are two cases. For
1840 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1841 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1842 -- ignored because of the absence of a -gnata switch. For any other
1843 -- aspects or pragmas, the flag is off. If this flag is set, the
1844 -- aspect/pragma is fully analyzed and checked for other syntactic
1845 -- and semantic errors, but it does not have any semantic effect.
1847 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
1848 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1849 -- related to an ignored Ghost entity or encloses ignored Ghost entity.
1850 -- This flag has no relation to Is_Ignored.
1852 -- Is_In_Discriminant_Check (Flag11-Sem)
1853 -- This flag is present in a selected component, and is used to indicate
1854 -- that the reference occurs within a discriminant check. The
1855 -- significance is that optimizations based on assuming that the
1856 -- discriminant check has a correct value cannot be performed in this
1857 -- case (or the discriminant check may be optimized away).
1859 -- Is_Inherited_Pragma (Flag4-Sem)
1860 -- This flag is set in an N_Pragma node that appears in a N_Contract node
1861 -- to indicate that the pragma has been inherited from a parent context.
1863 -- Is_Initialization_Block (Flag1-Sem)
1864 -- Defined in block nodes. Set when the block statement was created by
1865 -- the finalization machinery to wrap initialization statements. This
1866 -- flag aids the ABE Processing phase to suppress the diagnostics of
1867 -- finalization actions in initialization contexts.
1869 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
1870 -- NOTE: this flag is shared between the legacy ABE mechanism and the
1871 -- default ABE mechanism.
1873 -- Present in the following nodes:
1875 -- call marker
1876 -- formal package declaration
1877 -- function call
1878 -- function instantiation
1879 -- package instantiation
1880 -- procedure call statement
1881 -- procedure instantiation
1883 -- Set when the elaboration or evaluation of the scenario results in
1884 -- a guaranteed ABE. The flag is used to suppress the instantiation of
1885 -- generic bodies because gigi cannot handle certain forms of premature
1886 -- instantiation, as well as to prevent the reexamination of the node by
1887 -- the ABE Processing phase.
1889 -- Is_Machine_Number (Flag11-Sem)
1890 -- This flag is set in an N_Real_Literal node to indicate that the value
1891 -- is a machine number. This avoids some unnecessary cases of converting
1892 -- real literals to machine numbers.
1894 -- Is_Null_Loop (Flag16-Sem)
1895 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1896 -- can be determined to be null at compile time. This is used to remove
1897 -- the loop entirely at expansion time.
1899 -- Is_Overloaded (Flag5-Sem)
1900 -- A flag present in all expression nodes. Used temporarily during
1901 -- overloading determination. The setting of this flag is not relevant
1902 -- once overloading analysis is complete.
1904 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1905 -- A flag present only in N_Op_Expon nodes. It is set when the
1906 -- exponentiation is of the form 2 ** N, where the type of N is an
1907 -- unsigned integral subtype whose size does not exceed the size of
1908 -- Standard_Integer (i.e. a type that can be safely converted to
1909 -- Natural), and the exponentiation appears as the right operand of an
1910 -- integer multiplication or an integer division where the dividend is
1911 -- unsigned. It is also required that overflow checking is off for both
1912 -- the exponentiation and the multiply/divide node. If this set of
1913 -- conditions holds, and the flag is set, then the division or
1914 -- multiplication can be (and is) converted to a shift.
1916 -- Is_Prefixed_Call (Flag17-Sem)
1917 -- This flag is set in a selected component within a generic unit, if
1918 -- it resolves to a prefixed call to a primitive operation. The flag
1919 -- is used to prevent accidental overloadings in an instance, when a
1920 -- primitive operation and a private record component may be homographs.
1922 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1923 -- A flag set in a Subprogram_Body block to indicate that it is the
1924 -- implementation of a protected subprogram. Such a body needs cleanup
1925 -- handler to make sure that the associated protected object is unlocked
1926 -- when the subprogram completes.
1928 -- Is_Qualified_Universal_Literal (Flag4-Sem)
1929 -- Present in N_Qualified_Expression nodes. Set when the qualification is
1930 -- converting a universal literal to a specific type. Such qualifiers aid
1931 -- the resolution of accidental overloading of binary or unary operators
1932 -- which may occur in instances.
1934 -- Is_Read (Flag1-Sem)
1935 -- Present in variable reference markers. Set when the original variable
1936 -- reference constitues a read of the variable.
1938 -- Is_Source_Call (Flag4-Sem)
1939 -- Present in call marker nodes. Set when the related call came from
1940 -- source.
1942 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
1943 -- Present in nodes which represent an elaboration scenario. Those are
1944 -- assignment statement, attribute reference, call marker, entry call
1945 -- statement, expanded name, function call, identifier, instantiation,
1946 -- procedure call statement, and requeue statement nodes. Set when the
1947 -- node appears within a context subject to SPARK_Mode On. This flag
1948 -- determines when the SPARK model of elaboration be activated by the
1949 -- ABE Processing phase.
1951 -- Is_Static_Coextension (Flag14-Sem)
1952 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1953 -- of an object allocated on the stack rather than the heap. The partner
1954 -- flag Is_Dynamic_Coextension must be cleared before setting this flag
1955 -- to True.
1957 -- Is_Static_Expression (Flag6-Sem)
1958 -- Indicates that an expression is a static expression according to the
1959 -- rules in (RM 4.9). Note that it is possible for this flag to be set
1960 -- when Raises_Constraint_Error is also set. In practice almost all cases
1961 -- where a static expression is required do not allow an expression which
1962 -- raises Constraint_Error, so almost always, callers should call the
1963 -- Is_Ok_Static_Expression routine instead of testing this flag. See
1964 -- spec of package Sem_Eval for full details on the use of this flag.
1966 -- Is_Subprogram_Descriptor (Flag16-Sem)
1967 -- Present in N_Object_Declaration, and set only for the object
1968 -- declaration generated for a subprogram descriptor in fast exception
1969 -- mode. See Exp_Ch11 for details of use.
1971 -- Is_Task_Allocation_Block (Flag6-Sem)
1972 -- A flag set in a Block_Statement node to indicate that it is the
1973 -- expansion of a task allocator, or the allocator of an object
1974 -- containing tasks. Such a block requires a cleanup handler to call
1975 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1976 -- allocated but not activated when the allocator completes abnormally.
1978 -- Is_Task_Body_Procedure (Flag1-Sem)
1979 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1980 -- nodes which emulate the body of a task unit.
1982 -- Is_Task_Master (Flag5-Sem)
1983 -- A flag set in a Subprogram_Body, Block_Statement, or Task_Body node to
1984 -- indicate that the construct is a task master (i.e. has declared tasks
1985 -- or declares an access to a task type).
1987 -- Is_Write (Flag2-Sem)
1988 -- Present in variable reference markers. Set when the original variable
1989 -- reference constitues a write of the variable.
1991 -- Itype (Node1-Sem)
1992 -- Used in N_Itype_Reference node to reference an itype for which it is
1993 -- important to ensure that it is defined. See description of this node
1994 -- for further details.
1996 -- Kill_Range_Check (Flag11-Sem)
1997 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1998 -- result should not be subjected to range checks. This is used for the
1999 -- implementation of Normalize_Scalars.
2001 -- Label_Construct (Node2-Sem)
2002 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
2003 -- N_Block_Statement or N_Loop_Statement node to which the label
2004 -- declaration applies. This attribute is used both in the compiler and
2005 -- in the implementation of ASIS queries. The field is left empty for the
2006 -- special labels generated as part of expanding raise statements with a
2007 -- local exception handler.
2009 -- Library_Unit (Node4-Sem)
2010 -- In a stub node, Library_Unit points to the compilation unit node of
2011 -- the corresponding subunit.
2013 -- In a with clause node, Library_Unit points to the spec of the with'ed
2014 -- unit.
2016 -- In a compilation unit node, the usage depends on the unit type:
2018 -- For a library unit body, Library_Unit points to the compilation unit
2019 -- node of the corresponding spec, unless it's a subprogram body with
2020 -- Acts_As_Spec set, in which case it points to itself.
2022 -- For a spec, Library_Unit points to the compilation unit node of the
2023 -- corresponding body, if present. The body will be present if the spec
2024 -- is or contains generics that we needed to instantiate. Similarly, the
2025 -- body will be present if we needed it for inlining purposes. Thus, if
2026 -- we have a spec/body pair, both of which are present, they point to
2027 -- each other via Library_Unit.
2029 -- For a subunit, Library_Unit points to the compilation unit node of
2030 -- the parent body.
2031 -- ??? not (always) true, in (at least some, maybe all?) cases it points
2032 -- to the corresponding spec for the parent body.
2034 -- Note that this field is not used to hold the parent pointer for child
2035 -- unit (which might in any case need to use it for some other purpose as
2036 -- described above). Instead for a child unit, implicit with's are
2037 -- generated for all parents.
2039 -- Local_Raise_Statements (Elist1)
2040 -- This field is present in exception handler nodes. It is set to
2041 -- No_Elist in the normal case. If there is at least one raise statement
2042 -- which can potentially be handled as a local raise, then this field
2043 -- points to a list of raise nodes, which are calls to a routine to raise
2044 -- an exception. These are raise nodes which can be optimized into gotos
2045 -- if the handler turns out to meet the conditions which permit this
2046 -- transformation. Note that this does NOT include instances of the
2047 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
2048 -- handled by the back end (using the N_Push/N_Pop mechanism).
2050 -- Loop_Actions (List2-Sem)
2051 -- A list present in Component_Association nodes in array aggregates.
2052 -- Used to collect actions that must be executed within the loop because
2053 -- they may need to be evaluated anew each time through.
2055 -- Limited_View_Installed (Flag18-Sem)
2056 -- Present in With_Clauses and in package specifications. If set on
2057 -- with_clause, it indicates that this clause has created the current
2058 -- limited view of the designated package. On a package specification, it
2059 -- indicates that the limited view has already been created because the
2060 -- package is mentioned in a limited_with_clause in the closure of the
2061 -- unit being compiled.
2063 -- Local_Raise_Not_OK (Flag7-Sem)
2064 -- Present in N_Exception_Handler nodes. Set if the handler contains
2065 -- a construct (reraise statement, or call to subprogram in package
2066 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
2067 -- for a local raise (one that could otherwise be converted to a goto).
2069 -- Must_Be_Byte_Aligned (Flag14-Sem)
2070 -- This flag is present in N_Attribute_Reference nodes. It can be set
2071 -- only for the Address and Unrestricted_Access attributes. If set it
2072 -- means that the object for which the address/access is given must be on
2073 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
2074 -- of the object is to be made before taking the address (this copy is in
2075 -- the current scope on the stack frame). This is used for certain cases
2076 -- of code generated by the expander that passes parameters by address.
2078 -- The reason the copy is not made by the front end is that the back end
2079 -- has more information about type layout and may be able to (but is not
2080 -- guaranteed to) prevent making unnecessary copies.
2082 -- Must_Not_Freeze (Flag8-Sem)
2083 -- A flag present in all expression nodes. Normally expressions cause
2084 -- freezing as described in the RM. If this flag is set, then this is
2085 -- inhibited. This is used by the analyzer and expander to label nodes
2086 -- that are created by semantic analysis or expansion and which must not
2087 -- cause freezing even though they normally would. This flag is also
2088 -- present in an N_Subtype_Indication node, since we also use these in
2089 -- calls to Freeze_Expression.
2091 -- Next_Entity (Node2-Sem)
2092 -- Present in defining identifiers, defining character literals, and
2093 -- defining operator symbols (i.e. in all entities). The entities of a
2094 -- scope are chained, and this field is used as the forward pointer for
2095 -- this list. See Einfo for further details.
2097 -- Next_Exit_Statement (Node3-Sem)
2098 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
2099 -- chained (in reverse order of appearance) from the First_Exit_Statement
2100 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
2101 -- the next entry on this chain (Empty = end of list).
2103 -- Next_Implicit_With (Node3-Sem)
2104 -- Present in N_With_Clause. Part of a chain of with_clauses generated
2105 -- in rtsfind to indicate implicit dependencies on predefined units. Used
2106 -- to prevent multiple with_clauses for the same unit in a given context.
2107 -- A postorder traversal of the tree whose nodes are units and whose
2108 -- links are with_clauses defines the order in which CodePeer must
2109 -- examine a compiled unit and its full context. This ordering ensures
2110 -- that any subprogram call is examined after the subprogram declaration
2111 -- has been seen.
2113 -- Next_Named_Actual (Node4-Sem)
2114 -- Present in parameter association nodes. Set during semantic analysis
2115 -- to point to the next named parameter, where parameters are ordered by
2116 -- declaration order (as opposed to the actual order in the call, which
2117 -- may be different due to named associations). Not that this field
2118 -- points to the explicit actual parameter itself, not to the
2119 -- N_Parameter_Association node (its parent).
2121 -- Next_Pragma (Node1-Sem)
2122 -- Present in N_Pragma nodes. Used to create a linked list of pragma
2123 -- nodes. Currently used for two purposes:
2125 -- Create a list of linked Check_Policy pragmas. The head of this list
2126 -- is stored in Opt.Check_Policy_List (which has further details).
2128 -- Used by processing for Pre/Postcondition pragmas to store a list of
2129 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
2130 -- details).
2132 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
2133 -- the apply to the same construct. These are visible/private mode for
2134 -- a package spec and declarative/statement mode for package body.
2136 -- Next_Rep_Item (Node5-Sem)
2137 -- Present in pragma nodes, attribute definition nodes, enumeration rep
2138 -- clauses, record rep clauses, aspect specification nodes. Used to link
2139 -- representation items that apply to an entity. See full description of
2140 -- First_Rep_Item field in Einfo for further details.
2142 -- Next_Use_Clause (Node3-Sem)
2143 -- While use clauses are active during semantic processing, they are
2144 -- chained from the scope stack entry, using Next_Use_Clause as a link
2145 -- pointer, with Empty marking the end of the list. The head pointer is
2146 -- in the scope stack entry (First_Use_Clause). At the end of semantic
2147 -- processing (i.e. when Gigi sees the tree, the contents of this field
2148 -- is undefined and should not be read).
2150 -- No_Ctrl_Actions (Flag7-Sem)
2151 -- Present in N_Assignment_Statement to indicate that no Finalize nor
2152 -- Adjust should take place on this assignment even though the RHS is
2153 -- controlled. Also indicates that the primitive _assign should not be
2154 -- used for a tagged assignment. This is used in init procs and aggregate
2155 -- expansions where the generated assignments are initializations, not
2156 -- real assignments.
2158 -- No_Elaboration_Check (Flag4-Sem)
2159 -- NOTE: this flag is relevant only for the legacy ABE mechanism and
2160 -- should not be used outside of that context.
2162 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
2163 -- that no elaboration check is needed on the call, because it appears in
2164 -- the context of a local Suppress pragma. This is used on calls within
2165 -- task bodies, where the actual elaboration checks are applied after
2166 -- analysis, when the local scope stack is not present
2168 -- No_Entities_Ref_In_Spec (Flag8-Sem)
2169 -- Present in N_With_Clause nodes. Set if the with clause is on the
2170 -- package or subprogram spec where the main unit is the corresponding
2171 -- body, and no entities of the with'ed unit are referenced by the spec
2172 -- (an entity may still be referenced in the body, so this flag is used
2173 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
2174 -- full details).
2176 -- No_Initialization (Flag13-Sem)
2177 -- Present in N_Object_Declaration and N_Allocator to indicate that the
2178 -- object must not be initialized (by Initialize or call to an init
2179 -- proc). This is needed for controlled aggregates. When the Object
2180 -- declaration has an expression, this flag means that this expression
2181 -- should not be taken into account (needed for in place initialization
2182 -- with aggregates, and for object with an address clause, which are
2183 -- initialized with an assignment at freeze time).
2185 -- No_Minimize_Eliminate (Flag17-Sem)
2186 -- This flag is present in membership operator nodes (N_In/N_Not_In).
2187 -- It is used to indicate that processing for extended overflow checking
2188 -- modes is not required (this is used to prevent infinite recursion).
2190 -- No_Side_Effect_Removal (Flag17-Sem)
2191 -- Present in N_Function_Call nodes. Set when a function call does not
2192 -- require side effect removal. This attribute suppresses the generation
2193 -- of a temporary to capture the result of the function which eventually
2194 -- replaces the function call.
2196 -- No_Truncation (Flag17-Sem)
2197 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
2198 -- only if the RM_Size of the source is greater than the RM_Size of the
2199 -- target for scalar operands. Normally in such a case we truncate some
2200 -- higher order bits of the source, and then sign/zero extend the result
2201 -- to form the output value. But if this flag is set, then we do not do
2202 -- any truncation, so for example, if an 8 bit input is converted to 5
2203 -- bit result which is in fact stored in 8 bits, then the high order
2204 -- three bits of the target result will be copied from the source. This
2205 -- is used for properly setting out of range values for use by pragmas
2206 -- Initialize_Scalars and Normalize_Scalars.
2208 -- Null_Excluding_Subtype (Flag16)
2209 -- Present in N_Access_To_Object_Definition. Indicates that the subtype
2210 -- indication carries a null-exclusion indicator, which is distinct from
2211 -- the null-exclusion indicator that may precede the access keyword.
2213 -- Original_Discriminant (Node2-Sem)
2214 -- Present in identifiers. Used in references to discriminants that
2215 -- appear in generic units. Because the names of the discriminants may be
2216 -- different in an instance, we use this field to recover the position of
2217 -- the discriminant in the original type, and replace it with the
2218 -- discriminant at the same position in the instantiated type.
2220 -- Original_Entity (Node2-Sem)
2221 -- Present in numeric literals. Used to denote the named number that has
2222 -- been constant-folded into the given literal. If literal is from
2223 -- source, or the result of some other constant-folding operation, then
2224 -- Original_Entity is empty. This field is needed to handle properly
2225 -- named numbers in generic units, where the Associated_Node field
2226 -- interferes with the Entity field, making it impossible to preserve the
2227 -- original entity at the point of instantiation (ASIS problem).
2229 -- Others_Discrete_Choices (List1-Sem)
2230 -- When a case statement or variant is analyzed, the semantic checks
2231 -- determine the actual list of choices that correspond to an others
2232 -- choice. This list is materialized for later use by the expander and
2233 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
2234 -- this materialized list of choices, which is in standard format for a
2235 -- list of discrete choices, except that of course it cannot contain an
2236 -- N_Others_Choice entry.
2238 -- Parent_Spec (Node4-Sem)
2239 -- For a library unit that is a child unit spec (package or subprogram
2240 -- declaration, generic declaration or instantiation, or library level
2241 -- rename) this field points to the compilation unit node for the parent
2242 -- package specification. This field is Empty for library bodies (the
2243 -- parent spec in this case can be found from the corresponding spec).
2245 -- Parent_With (Flag1-Sem)
2246 -- Present in N_With_Clause nodes. The flag indicates that the clause
2247 -- was generated for an ancestor unit to provide proper visibility. A
2248 -- with clause for child unit A.B.C produces two implicit parent with
2249 -- clauses for A and A.B.
2251 -- Premature_Use (Node5-Sem)
2252 -- Present in N_Incomplete_Type_Declaration node. Used for improved
2253 -- error diagnostics: if there is a premature usage of an incomplete
2254 -- type, a subsequently generated error message indicates the position
2255 -- of its full declaration.
2257 -- Present_Expr (Uint3-Sem)
2258 -- Present in an N_Variant node. This has a meaningful value only after
2259 -- Gigi has back annotated the tree with representation information. At
2260 -- this point, it contains a reference to a gcc expression that depends
2261 -- on the values of one or more discriminants. Give a set of discriminant
2262 -- values, this expression evaluates to False (zero) if variant is not
2263 -- present, and True (non-zero) if it is present. See unit Repinfo for
2264 -- further details on gigi back annotation. This field is used during
2265 -- ASIS processing (data decomposition annex) to determine if a field is
2266 -- present or not.
2268 -- Prev_Use_Clause (Node1-Sem)
2269 -- Present in both N_Use_Package_Clause and N_Use_Type_Clause. Used in
2270 -- detection of ineffective use clauses by allowing a chain of related
2271 -- clauses together to avoid traversing the current scope stack.
2273 -- Print_In_Hex (Flag13-Sem)
2274 -- Set on an N_Integer_Literal node to indicate that the value should be
2275 -- printed in hexadecimal in the sprint listing. Has no effect on
2276 -- legality or semantics of program, only on the displayed output. This
2277 -- is used to clarify output from the packed array cases.
2279 -- Procedure_To_Call (Node2-Sem)
2280 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2281 -- and N_Extended_Return_Statement nodes. References the entity for the
2282 -- declaration of the procedure to be called to accomplish the required
2283 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
2284 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
2285 -- allocating the return value), and for the Deallocate procedure in the
2286 -- case of N_Free_Statement.
2288 -- Raises_Constraint_Error (Flag7-Sem)
2289 -- Set on an expression whose evaluation will definitely fail constraint
2290 -- error check. In the case of static expressions, this flag must be set
2291 -- accurately (and if it is set, the expression is typically illegal
2292 -- unless it appears as a non-elaborated branch of a short-circuit form).
2293 -- For a non-static expression, this flag may be set whenever an
2294 -- expression (e.g. an aggregate) is known to raise constraint error. If
2295 -- set, the expression definitely will raise CE if elaborated at runtime.
2296 -- If not set, the expression may or may not raise CE. In other words, on
2297 -- static expressions, the flag is set accurately, on non-static
2298 -- expressions it is set conservatively.
2300 -- Redundant_Use (Flag13-Sem)
2301 -- Present in nodes that can appear as an operand in a use clause or use
2302 -- type clause (identifiers, expanded names, attribute references). Set
2303 -- to indicate that a use is redundant (and therefore need not be undone
2304 -- on scope exit).
2306 -- Renaming_Exception (Node2-Sem)
2307 -- Present in N_Exception_Declaration node. Used to point back to the
2308 -- exception renaming for an exception declared within a subprogram.
2309 -- What happens is that an exception declared in a subprogram is moved
2310 -- to the library level with a unique name, and the original exception
2311 -- becomes a renaming. This link from the library level exception to the
2312 -- renaming declaration allows registering of the proper exception name.
2314 -- Return_Statement_Entity (Node5-Sem)
2315 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
2316 -- Points to an E_Return_Statement representing the return statement.
2318 -- Return_Object_Declarations (List3)
2319 -- Present in N_Extended_Return_Statement. Points to a list initially
2320 -- containing a single N_Object_Declaration representing the return
2321 -- object. We use a list (instead of just a pointer to the object decl)
2322 -- because Analyze wants to insert extra actions on this list.
2324 -- Rounded_Result (Flag18-Sem)
2325 -- Present in N_Type_Conversion, N_Op_Divide, and N_Op_Multiply nodes.
2326 -- Used in the fixed-point cases to indicate that the result must be
2327 -- rounded as a result of the use of the 'Round attribute. Also used for
2328 -- integer N_Op_Divide nodes to indicate that the result should be
2329 -- rounded to the nearest integer (breaking ties away from zero), rather
2330 -- than truncated towards zero as usual. These rounded integer operations
2331 -- are the result of expansion of rounded fixed-point divide, conversion
2332 -- and multiplication operations.
2334 -- SCIL_Entity (Node4-Sem)
2335 -- Present in SCIL nodes. References the specific tagged type associated
2336 -- with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
2337 -- the controlling type of the call; for an N_SCIL_Membership_Test node
2338 -- generated as part of testing membership in T'Class, this is T; for an
2339 -- N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
2341 -- SCIL_Controlling_Tag (Node5-Sem)
2342 -- Present in N_SCIL_Dispatching_Call nodes. References the controlling
2343 -- tag of a dispatching call. This is usually an N_Selected_Component
2344 -- node (for a _tag component), but may be an N_Object_Declaration or
2345 -- N_Parameter_Specification node in some cases (e.g., for a call to
2346 -- a classwide streaming operation or a call to an instance of
2347 -- Ada.Tags.Generic_Dispatching_Constructor).
2349 -- SCIL_Tag_Value (Node5-Sem)
2350 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
2351 -- of the value that is being tested.
2353 -- SCIL_Target_Prim (Node2-Sem)
2354 -- Present in N_SCIL_Dispatching_Call nodes. References the primitive
2355 -- operation named (statically) in a dispatching call.
2357 -- Scope (Node3-Sem)
2358 -- Present in defining identifiers, defining character literals, and
2359 -- defining operator symbols (i.e. in all entities). The entities of a
2360 -- scope all use this field to reference the corresponding scope entity.
2361 -- See Einfo for further details.
2363 -- Shift_Count_OK (Flag4-Sem)
2364 -- A flag present in shift nodes to indicate that the shift count is
2365 -- known to be in range, i.e. is in the range from zero to word length
2366 -- minus one. If this flag is not set, then the shift count may be
2367 -- outside this range, i.e. larger than the word length, and the code
2368 -- must ensure that such shift counts give the appropriate result.
2370 -- Source_Type (Node1-Sem)
2371 -- Used in an N_Validate_Unchecked_Conversion node to point to the
2372 -- source type entity for the unchecked conversion instantiation
2373 -- which gigi must do size validation for.
2375 -- Split_PPC (Flag17)
2376 -- When a Pre or Post aspect specification is processed, it is broken
2377 -- into AND THEN sections. The leftmost section has Split_PPC set to
2378 -- False, indicating that it is the original specification (e.g. for
2379 -- posting errors). For other sections, Split_PPC is set to True.
2380 -- This flag is set in both the N_Aspect_Specification node itself,
2381 -- and in the pragma which is generated from this node.
2383 -- Storage_Pool (Node1-Sem)
2384 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2385 -- and N_Extended_Return_Statement nodes. References the entity for the
2386 -- storage pool to be used for the allocate or free call or for the
2387 -- allocation of the returned value from function. Empty indicates that
2388 -- the global default pool is to be used. Note that in the case
2389 -- of a return statement, this field is set only if the function returns
2390 -- value of a type whose size is not known at compile time on the
2391 -- secondary stack.
2393 -- Suppress_Assignment_Checks (Flag18-Sem)
2394 -- Used in generated N_Assignment_Statement nodes to suppress predicate
2395 -- and range checks in cases where the generated code knows that the
2396 -- value being assigned is in range and satisfies any predicate. Also
2397 -- can be set in N_Object_Declaration nodes, to similarly suppress any
2398 -- checks on the initializing value. In assignment statements it also
2399 -- suppresses access checks in the generated code for out- and in-out
2400 -- parameters in entry calls.
2402 -- Suppress_Loop_Warnings (Flag17-Sem)
2403 -- Used in N_Loop_Statement node to indicate that warnings within the
2404 -- body of the loop should be suppressed. This is set when the range
2405 -- of a FOR loop is known to be null, or is probably null (loop would
2406 -- only execute if invalid values are present).
2408 -- Target (Node1-Sem)
2409 -- Present in call and variable reference marker nodes. References the
2410 -- entity of the original entity, operator, or subprogram being invoked,
2411 -- or the original variable being read or written.
2413 -- Target_Type (Node2-Sem)
2414 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
2415 -- type entity for the unchecked conversion instantiation which gigi must
2416 -- do size validation for.
2418 -- Then_Actions (List3-Sem)
2419 -- This field is present in if expression nodes. During code expansion
2420 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
2421 -- at an appropriate place in the tree to get elaborated at the right
2422 -- time. For if expressions, we have to be sure that the actions for
2423 -- for the Then branch are only elaborated if the condition is True.
2424 -- The Then_Actions field is used as a temporary parking place for
2425 -- these actions. The final tree is always rewritten to eliminate the
2426 -- need for this field, so in the tree passed to Gigi, this field is
2427 -- always set to No_List.
2429 -- Treat_Fixed_As_Integer (Flag14-Sem)
2430 -- This flag appears in operator nodes for divide, multiply, mod, and rem
2431 -- on fixed-point operands. It indicates that the operands are to be
2432 -- treated as integer values, ignoring small values. This flag is only
2433 -- set as a result of expansion of fixed-point operations. Typically a
2434 -- fixed-point multiplication in the source generates subsidiary
2435 -- multiplication and division operations that work with the underlying
2436 -- integer values and have this flag set. Note that this flag is not
2437 -- needed on other arithmetic operations (add, neg, subtract etc.) since
2438 -- in these cases it is always the case that fixed is treated as integer.
2439 -- The Etype field MUST be set if this flag is set. The analyzer knows to
2440 -- leave such nodes alone, and whoever makes them must set the correct
2441 -- Etype value.
2443 -- TSS_Elist (Elist3-Sem)
2444 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2445 -- entries for each TSS (type support subprogram) associated with the
2446 -- frozen type. The elements of the list are the entities for the
2447 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2448 -- if there are no type support subprograms for the type or if the freeze
2449 -- node is not for a type.
2451 -- Uneval_Old_Accept (Flag7-Sem)
2452 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'A'
2453 -- (accept) at the point where the pragma is encountered (including the
2454 -- case of a pragma generated from an aspect specification). It is this
2455 -- setting that is relevant, rather than the setting at the point where
2456 -- a contract is finally analyzed after the delay till the freeze point.
2458 -- Uneval_Old_Warn (Flag18-Sem)
2459 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'W'
2460 -- (warn) at the point where the pragma is encountered (including the
2461 -- case of a pragma generated from an aspect specification). It is this
2462 -- setting that is relevant, rather than the setting at the point where
2463 -- a contract is finally analyzed after the delay till the freeze point.
2465 -- Unreferenced_In_Spec (Flag7-Sem)
2466 -- Present in N_With_Clause nodes. Set if the with clause is on the
2467 -- package or subprogram spec where the main unit is the corresponding
2468 -- body, and is not referenced by the spec (it may still be referenced by
2469 -- the body, so this flag is used to generate the proper message (see
2470 -- Sem_Util.Check_Unused_Withs for details)
2472 -- Uninitialized_Variable (Node3-Sem)
2473 -- Present in N_Formal_Private_Type_Definition and in N_Private_
2474 -- Extension_Declarations. Indicates that a variable in a generic unit
2475 -- whose type is a formal private or derived type is read without being
2476 -- initialized. Used to warn if the corresponding actual type is not
2477 -- a fully initialized type.
2479 -- Used_Operations (Elist2-Sem)
2480 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2481 -- are made potentially use-visible by the clause. Simplifies processing
2482 -- on exit from the scope of the use_type_clause, in particular in the
2483 -- case of Use_All_Type, when those operations several scopes.
2485 -- Was_Attribute_Reference (Flag2-Sem)
2486 -- Present in N_Subprogram_Body. Set to True if the original source is an
2487 -- attribute reference which is an actual in a generic instantiation. The
2488 -- instantiation prologue renames these attributes, and expansion later
2489 -- converts them into subprogram bodies.
2491 -- Was_Expression_Function (Flag18-Sem)
2492 -- Present in N_Subprogram_Body. True if the original source had an
2493 -- N_Expression_Function, which was converted to the N_Subprogram_Body
2494 -- by Analyze_Expression_Function. This is needed by ASIS to correctly
2495 -- recreate the expression function (for the instance body) when the
2496 -- completion of a generic function declaration is an expression
2497 -- function.
2499 -- Was_Originally_Stub (Flag13-Sem)
2500 -- This flag is set in the node for a proper body that replaces stub.
2501 -- During the analysis procedure, stubs in some situations get rewritten
2502 -- by the corresponding bodies, and we set this flag to remember that
2503 -- this happened. Note that it is not good enough to rely on the use of
2504 -- Original_Node here because of the case of nested instantiations where
2505 -- the substituted node can be copied.
2507 --------------------------------------------------
2508 -- Note on Use of End_Label and End_Span Fields --
2509 --------------------------------------------------
2511 -- Several constructs have end lines:
2513 -- Loop Statement end loop [loop_IDENTIFIER];
2514 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2515 -- Task Definition end [task_IDENTIFIER]
2516 -- Protected Definition end [protected_IDENTIFIER]
2517 -- Protected Body end [protected_IDENTIFIER]
2519 -- Block Statement end [block_IDENTIFIER];
2520 -- Subprogram Body end [DESIGNATOR];
2521 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2522 -- Task Body end [task_IDENTIFIER];
2523 -- Accept Statement end [entry_IDENTIFIER]];
2524 -- Entry Body end [entry_IDENTIFIER];
2526 -- If Statement end if;
2527 -- Case Statement end case;
2529 -- Record Definition end record;
2530 -- Enumeration Definition );
2532 -- The End_Label and End_Span fields are used to mark the locations of
2533 -- these lines, and also keep track of the label in the case where a label
2534 -- is present.
2536 -- For the first group above, the End_Label field of the corresponding node
2537 -- is used to point to the label identifier. In the case where there is no
2538 -- label in the source, the parser supplies a dummy identifier (with
2539 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2540 -- marks the location of the token following the END token.
2542 -- For the second group, the use of End_Label is similar, but the End_Label
2543 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2544 -- simply because in some cases there is no room in the parent node.
2546 -- For the third group, there is never any label, and instead of using
2547 -- End_Label, we use the End_Span field which gives the location of the
2548 -- token following END, relative to the starting Sloc of the construct,
2549 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2550 -- following the End_Label.
2552 -- The record definition case is handled specially, we treat it as though
2553 -- it required an optional label which is never present, and so the parser
2554 -- always builds a dummy identifier with Comes From Source set False. The
2555 -- reason we do this, rather than using End_Span in this case, is that we
2556 -- want to generate a cross-ref entry for the end of a record, since it
2557 -- represents a scope for name declaration purposes.
2559 -- The enumeration definition case is handled in an exactly similar manner,
2560 -- building a dummy identifier to get a cross-reference.
2562 -- Note: the reason we store the difference as a Uint, instead of storing
2563 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2564 -- distinguished from other types of values, and we count on all general
2565 -- use fields being self describing. To make things easier for clients,
2566 -- note that we provide function End_Location, and procedure
2567 -- Set_End_Location to allow access to the logical value (which is the
2568 -- Source_Ptr value for the end token).
2570 ---------------------
2571 -- Syntactic Nodes --
2572 ---------------------
2574 ---------------------
2575 -- 2.3 Identifier --
2576 ---------------------
2578 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2579 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2581 -- An IDENTIFIER shall not be a reserved word
2583 -- In the Ada grammar identifiers are the bottom level tokens which have
2584 -- very few semantics. Actual program identifiers are direct names. If
2585 -- we were being 100% honest with the grammar, then we would have a node
2586 -- called N_Direct_Name which would point to an identifier. However,
2587 -- that's too many extra nodes, so we just use the N_Identifier node
2588 -- directly as a direct name, and it contains the expression fields and
2589 -- Entity field that correspond to its use as a direct name. In those
2590 -- few cases where identifiers appear in contexts where they are not
2591 -- direct names (pragmas, pragma argument associations, attribute
2592 -- references and attribute definition clauses), the Chars field of the
2593 -- node contains the Name_Id for the identifier name.
2595 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2596 -- cases. First, an incorrect use of a reserved word as an identifier is
2597 -- diagnosed and then treated as a normal identifier. Second, an
2598 -- attribute designator of the form of a reserved word (access, delta,
2599 -- digits, range) is treated as an identifier.
2601 -- Note: The set of letters that is permitted in an identifier depends
2602 -- on the character set in use. See package Csets for full details.
2604 -- N_Identifier
2605 -- Sloc points to identifier
2606 -- Chars (Name1) contains the Name_Id for the identifier
2607 -- Entity (Node4-Sem)
2608 -- Associated_Node (Node4-Sem)
2609 -- Original_Discriminant (Node2-Sem)
2610 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
2611 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
2612 -- Has_Private_View (Flag11-Sem) (set in generic units)
2613 -- Redundant_Use (Flag13-Sem)
2614 -- Atomic_Sync_Required (Flag14-Sem)
2615 -- plus fields for expression
2617 --------------------------
2618 -- 2.4 Numeric Literal --
2619 --------------------------
2621 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2623 ----------------------------
2624 -- 2.4.1 Decimal Literal --
2625 ----------------------------
2627 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2629 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2631 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2633 -- Decimal literals appear in the tree as either integer literal nodes
2634 -- or real literal nodes, depending on whether a period is present.
2636 -- Note: literal nodes appear as a result of direct use of literals
2637 -- in the source program, and also as the result of evaluating
2638 -- expressions at compile time. In the latter case, it is possible
2639 -- to construct real literals that have no syntactic representation
2640 -- using the standard literal format. Such literals are listed by
2641 -- Sprint using the notation [numerator / denominator].
2643 -- Note: the value of an integer literal node created by the front end
2644 -- is never outside the range of values of the base type. However, it
2645 -- can be the case that the created value is outside the range of the
2646 -- particular subtype. This happens in the case of integer overflows
2647 -- with checks suppressed.
2649 -- N_Integer_Literal
2650 -- Sloc points to literal
2651 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2652 -- has been constant-folded into its literal value.
2653 -- Intval (Uint3) contains integer value of literal
2654 -- Print_In_Hex (Flag13-Sem)
2655 -- plus fields for expression
2657 -- N_Real_Literal
2658 -- Sloc points to literal
2659 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2660 -- has been constant-folded into its literal value.
2661 -- Realval (Ureal3) contains real value of literal
2662 -- Corresponding_Integer_Value (Uint4-Sem)
2663 -- Is_Machine_Number (Flag11-Sem)
2664 -- plus fields for expression
2666 --------------------------
2667 -- 2.4.2 Based Literal --
2668 --------------------------
2670 -- BASED_LITERAL ::=
2671 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2673 -- BASE ::= NUMERAL
2675 -- BASED_NUMERAL ::=
2676 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2678 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2680 -- Based literals appear in the tree as either integer literal nodes
2681 -- or real literal nodes, depending on whether a period is present.
2683 ----------------------------
2684 -- 2.5 Character Literal --
2685 ----------------------------
2687 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2689 -- N_Character_Literal
2690 -- Sloc points to literal
2691 -- Chars (Name1) contains the Name_Id for the identifier
2692 -- Char_Literal_Value (Uint2) contains the literal value
2693 -- Entity (Node4-Sem)
2694 -- Associated_Node (Node4-Sem)
2695 -- Has_Private_View (Flag11-Sem) set in generic units.
2696 -- plus fields for expression
2698 -- Note: the Entity field will be missing (set to Empty) for character
2699 -- literals whose type is Standard.Wide_Character or Standard.Character
2700 -- or a type derived from one of these two. In this case the character
2701 -- literal stands for its own coding. The reason we take this irregular
2702 -- short cut is to avoid the need to build lots of junk defining
2703 -- character literal nodes.
2705 -------------------------
2706 -- 2.6 String Literal --
2707 -------------------------
2709 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2711 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2712 -- single GRAPHIC_CHARACTER other than a quotation mark.
2714 -- Is_Folded_In_Parser is True if the parser created this literal by
2715 -- folding a sequence of "&" operators. For example, if the source code
2716 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2717 -- is set. This flag is needed because the parser doesn't know about
2718 -- visibility, so the folded result might be wrong, and semantic
2719 -- analysis needs to check for that.
2721 -- N_String_Literal
2722 -- Sloc points to literal
2723 -- Strval (Str3) contains Id of string value
2724 -- Has_Wide_Character (Flag11-Sem)
2725 -- Has_Wide_Wide_Character (Flag13-Sem)
2726 -- Is_Folded_In_Parser (Flag4)
2727 -- plus fields for expression
2729 ------------------
2730 -- 2.7 Comment --
2731 ------------------
2733 -- A COMMENT starts with two adjacent hyphens and extends up to the
2734 -- end of the line. A COMMENT may appear on any line of a program.
2736 -- Comments are skipped by the scanner and do not appear in the tree.
2737 -- It is possible to reconstruct the position of comments with respect
2738 -- to the elements of the tree by using the source position (Sloc)
2739 -- pointers that appear in every tree node.
2741 -----------------
2742 -- 2.8 Pragma --
2743 -----------------
2745 -- PRAGMA ::= pragma IDENTIFIER
2746 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2748 -- Note that a pragma may appear in the tree anywhere a declaration
2749 -- or a statement may appear, as well as in some other situations
2750 -- which are explicitly documented.
2752 -- N_Pragma
2753 -- Sloc points to PRAGMA
2754 -- Next_Pragma (Node1-Sem)
2755 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2756 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2757 -- Pragma_Identifier (Node4)
2758 -- Next_Rep_Item (Node5-Sem)
2759 -- Is_Generic_Contract_Pragma (Flag2-Sem)
2760 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
2761 -- Is_Inherited_Pragma (Flag4-Sem)
2762 -- Is_Analyzed_Pragma (Flag5-Sem)
2763 -- Class_Present (Flag6) set if from Aspect with 'Class
2764 -- Uneval_Old_Accept (Flag7-Sem)
2765 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
2766 -- Is_Ignored (Flag9-Sem)
2767 -- Is_Checked (Flag11-Sem)
2768 -- From_Aspect_Specification (Flag13-Sem)
2769 -- Is_Delayed_Aspect (Flag14-Sem)
2770 -- Is_Disabled (Flag15-Sem)
2771 -- Import_Interface_Present (Flag16-Sem)
2772 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2773 -- Uneval_Old_Warn (Flag18-Sem)
2775 -- Note: we should have a section on what pragmas are passed on to
2776 -- the back end to be processed. This section should note that pragma
2777 -- Psect_Object is always converted to Common_Object, but there are
2778 -- undoubtedly many other similar notes required ???
2780 -- Note: utility functions Pragma_Name_Unmapped and Pragma_Name may be
2781 -- applied to pragma nodes to obtain the Chars or its mapped version.
2783 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2784 -- aspect name, as does the Pragma_Identifier. In this case if the
2785 -- pragma has a local name argument (such as pragma Inline), it is
2786 -- resolved to point to the specific entity affected by the pragma.
2788 --------------------------------------
2789 -- 2.8 Pragma Argument Association --
2790 --------------------------------------
2792 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2793 -- [pragma_argument_IDENTIFIER =>] NAME
2794 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2796 -- In Ada 2012, there are two more possibilities:
2798 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2799 -- [pragma_argument_ASPECT_MARK =>] NAME
2800 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2802 -- where the interesting allowed cases (which do not fit the syntax of
2803 -- the first alternative above) are
2805 -- ASPECT_MARK => Pre'Class |
2806 -- Post'Class |
2807 -- Type_Invariant'Class |
2808 -- Invariant'Class
2810 -- We allow this special usage in all Ada modes, but it would be a
2811 -- pain to allow these aspects to pervade the pragma syntax, and the
2812 -- representation of pragma nodes internally. So what we do is to
2813 -- replace these ASPECT_MARK forms with identifiers whose name is one
2814 -- of the special internal names _Pre, _Post, or _Type_Invariant.
2816 -- We do a similar replacement of these Aspect_Mark forms in the
2817 -- Expression of a pragma argument association for the cases of
2818 -- the first arguments of any Check pragmas and Check_Policy pragmas
2820 -- N_Pragma_Argument_Association
2821 -- Sloc points to first token in association
2822 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2823 -- Expression_Copy (Node2-Sem)
2824 -- Expression (Node3)
2826 ------------------------
2827 -- 2.9 Reserved Word --
2828 ------------------------
2830 -- Reserved words are parsed by the scanner, and returned as the
2831 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2833 ----------------------------
2834 -- 3.1 Basic Declaration --
2835 ----------------------------
2837 -- BASIC_DECLARATION ::=
2838 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2839 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2840 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2841 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2842 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2843 -- | GENERIC_INSTANTIATION
2845 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2846 -- see further description in section on semantic nodes.
2848 -- Also, in the tree that is constructed, a pragma may appear
2849 -- anywhere that a declaration may appear.
2851 ------------------------------
2852 -- 3.1 Defining Identifier --
2853 ------------------------------
2855 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2857 -- A defining identifier is an entity, which has additional fields
2858 -- depending on the setting of the Ekind field. These additional
2859 -- fields are defined (and access subprograms declared) in package
2860 -- Einfo.
2862 -- Note: N_Defining_Identifier is an extended node whose fields are
2863 -- deliberately layed out to match the layout of fields in an ordinary
2864 -- N_Identifier node allowing for easy alteration of an identifier
2865 -- node into a defining identifier node. For details, see procedure
2866 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2868 -- N_Defining_Identifier
2869 -- Sloc points to identifier
2870 -- Chars (Name1) contains the Name_Id for the identifier
2871 -- Next_Entity (Node2-Sem)
2872 -- Scope (Node3-Sem)
2873 -- Etype (Node5-Sem)
2875 -----------------------------
2876 -- 3.2.1 Type Declaration --
2877 -----------------------------
2879 -- TYPE_DECLARATION ::=
2880 -- FULL_TYPE_DECLARATION
2881 -- | INCOMPLETE_TYPE_DECLARATION
2882 -- | PRIVATE_TYPE_DECLARATION
2883 -- | PRIVATE_EXTENSION_DECLARATION
2885 ----------------------------------
2886 -- 3.2.1 Full Type Declaration --
2887 ----------------------------------
2889 -- FULL_TYPE_DECLARATION ::=
2890 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2891 -- is TYPE_DEFINITION
2892 -- [ASPECT_SPECIFICATIONS];
2893 -- | TASK_TYPE_DECLARATION
2894 -- | PROTECTED_TYPE_DECLARATION
2896 -- The full type declaration node is used only for the first case. The
2897 -- second case (concurrent type declaration), is represented directly
2898 -- by a task type declaration or a protected type declaration.
2900 -- N_Full_Type_Declaration
2901 -- Sloc points to TYPE
2902 -- Defining_Identifier (Node1)
2903 -- Incomplete_View (Node2-Sem)
2904 -- Discriminant_Specifications (List4) (set to No_List if none)
2905 -- Type_Definition (Node3)
2906 -- Discr_Check_Funcs_Built (Flag11-Sem)
2908 ----------------------------
2909 -- 3.2.1 Type Definition --
2910 ----------------------------
2912 -- TYPE_DEFINITION ::=
2913 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2914 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2915 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2916 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2918 --------------------------------
2919 -- 3.2.2 Subtype Declaration --
2920 --------------------------------
2922 -- SUBTYPE_DECLARATION ::=
2923 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2924 -- [ASPECT_SPECIFICATIONS];
2926 -- The subtype indication field is set to Empty for subtypes
2927 -- declared in package Standard (Positive, Natural).
2929 -- N_Subtype_Declaration
2930 -- Sloc points to SUBTYPE
2931 -- Defining_Identifier (Node1)
2932 -- Null_Exclusion_Present (Flag11)
2933 -- Subtype_Indication (Node5)
2934 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2935 -- Exception_Junk (Flag8-Sem)
2936 -- Has_Dynamic_Range_Check (Flag12-Sem)
2938 -------------------------------
2939 -- 3.2.2 Subtype Indication --
2940 -------------------------------
2942 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2944 -- Note: if no constraint is present, the subtype indication appears
2945 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2946 -- node is used only if a constraint is present.
2948 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2949 -- with the null-exclusion part (see AI-231), we had to introduce a new
2950 -- attribute in all the parents of subtype_indication nodes to indicate
2951 -- if the null-exclusion is present.
2953 -- Note: the reason that this node has expression fields is that a
2954 -- subtype indication can appear as an operand of a membership test.
2956 -- N_Subtype_Indication
2957 -- Sloc points to first token of subtype mark
2958 -- Subtype_Mark (Node4)
2959 -- Constraint (Node3)
2960 -- Etype (Node5-Sem)
2961 -- Must_Not_Freeze (Flag8-Sem)
2963 -- Note: Depending on context, the Etype is either the entity of the
2964 -- Subtype_Mark field, or it is an itype constructed to reify the
2965 -- subtype indication. In particular, such itypes are created for a
2966 -- subtype indication that appears in an array type declaration. This
2967 -- simplifies constraint checking in indexed components.
2969 -- For subtype indications that appear in scalar type and subtype
2970 -- declarations, the Etype is the entity of the subtype mark.
2972 -------------------------
2973 -- 3.2.2 Subtype Mark --
2974 -------------------------
2976 -- SUBTYPE_MARK ::= subtype_NAME
2978 -----------------------
2979 -- 3.2.2 Constraint --
2980 -----------------------
2982 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2984 ------------------------------
2985 -- 3.2.2 Scalar Constraint --
2986 ------------------------------
2988 -- SCALAR_CONSTRAINT ::=
2989 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2991 ---------------------------------
2992 -- 3.2.2 Composite Constraint --
2993 ---------------------------------
2995 -- COMPOSITE_CONSTRAINT ::=
2996 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2998 -------------------------------
2999 -- 3.3.1 Object Declaration --
3000 -------------------------------
3002 -- OBJECT_DECLARATION ::=
3003 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
3004 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
3005 -- [ASPECT_SPECIFICATIONS];
3006 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
3007 -- ACCESS_DEFINITION [:= EXPRESSION]
3008 -- [ASPECT_SPECIFICATIONS];
3009 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
3010 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
3011 -- [ASPECT_SPECIFICATIONS];
3012 -- | SINGLE_TASK_DECLARATION
3013 -- | SINGLE_PROTECTED_DECLARATION
3015 -- Note: aliased is not permitted in Ada 83 mode
3017 -- The N_Object_Declaration node is only for the first three cases.
3018 -- Single task declaration is handled by P_Task (9.1)
3019 -- Single protected declaration is handled by P_protected (9.5)
3021 -- Although the syntax allows multiple identifiers in the list, the
3022 -- semantics is as though successive declarations were given with
3023 -- identical type definition and expression components. To simplify
3024 -- semantic processing, the parser represents a multiple declaration
3025 -- case as a sequence of single declarations, using the More_Ids and
3026 -- Prev_Ids flags to preserve the original source form as described
3027 -- in the section on "Handling of Defining Identifier Lists".
3029 -- The flag Has_Init_Expression is set if an initializing expression
3030 -- is present. Normally it is set if and only if Expression contains
3031 -- a non-empty value, but there is an exception to this. When the
3032 -- initializing expression is an aggregate which requires explicit
3033 -- assignments, the Expression field gets set to Empty, but this flag
3034 -- is still set, so we don't forget we had an initializing expression.
3036 -- Note: if a range check is required for the initialization
3037 -- expression then the Do_Range_Check flag is set in the Expression,
3038 -- with the check being done against the type given by the object
3039 -- definition, which is also the Etype of the defining identifier.
3041 -- Note: the contents of the Expression field must be ignored (i.e.
3042 -- treated as though it were Empty) if No_Initialization is set True.
3044 -- Note: the back end places some restrictions on the form of the
3045 -- Expression field. If the object being declared is Atomic, then
3046 -- the Expression may not have the form of an aggregate (since this
3047 -- might cause the back end to generate separate assignments). In this
3048 -- case the front end must generate an extra temporary and initialize
3049 -- this temporary as required (the temporary itself is not atomic).
3051 -- Note: there is no node kind for object definition. Instead, the
3052 -- corresponding field holds a subtype indication, an array type
3053 -- definition, or (Ada 2005, AI-406) an access definition.
3055 -- N_Object_Declaration
3056 -- Sloc points to first identifier
3057 -- Defining_Identifier (Node1)
3058 -- Aliased_Present (Flag4)
3059 -- Constant_Present (Flag17) set if CONSTANT appears
3060 -- Null_Exclusion_Present (Flag11)
3061 -- Object_Definition (Node4) subtype indic./array type def./access def.
3062 -- Expression (Node3) (set to Empty if not present)
3063 -- Handler_List_Entry (Node2-Sem)
3064 -- Corresponding_Generic_Association (Node5-Sem)
3065 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3066 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3067 -- No_Initialization (Flag13-Sem)
3068 -- Assignment_OK (Flag15-Sem)
3069 -- Exception_Junk (Flag8-Sem)
3070 -- Is_Subprogram_Descriptor (Flag16-Sem)
3071 -- Has_Init_Expression (Flag14)
3072 -- Suppress_Assignment_Checks (Flag18-Sem)
3074 -------------------------------------
3075 -- 3.3.1 Defining Identifier List --
3076 -------------------------------------
3078 -- DEFINING_IDENTIFIER_LIST ::=
3079 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
3081 -------------------------------
3082 -- 3.3.2 Number Declaration --
3083 -------------------------------
3085 -- NUMBER_DECLARATION ::=
3086 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
3088 -- Although the syntax allows multiple identifiers in the list, the
3089 -- semantics is as though successive declarations were given with
3090 -- identical expressions. To simplify semantic processing, the parser
3091 -- represents a multiple declaration case as a sequence of single
3092 -- declarations, using the More_Ids and Prev_Ids flags to preserve
3093 -- the original source form as described in the section on "Handling
3094 -- of Defining Identifier Lists".
3096 -- N_Number_Declaration
3097 -- Sloc points to first identifier
3098 -- Defining_Identifier (Node1)
3099 -- Expression (Node3)
3100 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3101 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3103 ----------------------------------
3104 -- 3.4 Derived Type Definition --
3105 ----------------------------------
3107 -- DERIVED_TYPE_DEFINITION ::=
3108 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
3109 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
3111 -- Note: ABSTRACT, LIMITED, and record extension part are not permitted
3112 -- in Ada 83 mode.
3114 -- Note: a record extension part is required if ABSTRACT is present
3116 -- N_Derived_Type_Definition
3117 -- Sloc points to NEW
3118 -- Abstract_Present (Flag4)
3119 -- Null_Exclusion_Present (Flag11) (set to False if not present)
3120 -- Subtype_Indication (Node5)
3121 -- Record_Extension_Part (Node3) (set to Empty if not present)
3122 -- Limited_Present (Flag17)
3123 -- Task_Present (Flag5) set in task interfaces
3124 -- Protected_Present (Flag6) set in protected interfaces
3125 -- Synchronized_Present (Flag7) set in interfaces
3126 -- Interface_List (List2) (set to No_List if none)
3127 -- Interface_Present (Flag16) set in abstract interfaces
3129 -- Note: Task_Present, Protected_Present, Synchronized_Present,
3130 -- Interface_List, and Interface_Present are used for abstract
3131 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3133 ---------------------------
3134 -- 3.5 Range Constraint --
3135 ---------------------------
3137 -- RANGE_CONSTRAINT ::= range RANGE
3139 -- N_Range_Constraint
3140 -- Sloc points to RANGE
3141 -- Range_Expression (Node4)
3143 ----------------
3144 -- 3.5 Range --
3145 ----------------
3147 -- RANGE ::=
3148 -- RANGE_ATTRIBUTE_REFERENCE
3149 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
3151 -- Note: the case of a range given as a range attribute reference
3152 -- appears directly in the tree as an attribute reference.
3154 -- Note: the field name for a reference to a range is Range_Expression
3155 -- rather than Range, because range is a reserved keyword in Ada.
3157 -- Note: the reason that this node has expression fields is that a
3158 -- range can appear as an operand of a membership test. The Etype
3159 -- field is the type of the range (we do NOT construct an implicit
3160 -- subtype to represent the range exactly).
3162 -- N_Range
3163 -- Sloc points to ..
3164 -- Low_Bound (Node1)
3165 -- High_Bound (Node2)
3166 -- Includes_Infinities (Flag11)
3167 -- plus fields for expression
3169 -- Note: if the range appears in a context, such as a subtype
3170 -- declaration, where range checks are required on one or both of
3171 -- the expression fields, then type conversion nodes are inserted
3172 -- to represent the required checks.
3174 ----------------------------------------
3175 -- 3.5.1 Enumeration Type Definition --
3176 ----------------------------------------
3178 -- ENUMERATION_TYPE_DEFINITION ::=
3179 -- (ENUMERATION_LITERAL_SPECIFICATION
3180 -- {, ENUMERATION_LITERAL_SPECIFICATION})
3182 -- Note: the Literals field in the node described below is null for
3183 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
3184 -- which special processing handles these types as special cases.
3186 -- N_Enumeration_Type_Definition
3187 -- Sloc points to left parenthesis
3188 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
3189 -- End_Label (Node4) (set to Empty if internally generated record)
3191 ----------------------------------------------
3192 -- 3.5.1 Enumeration Literal Specification --
3193 ----------------------------------------------
3195 -- ENUMERATION_LITERAL_SPECIFICATION ::=
3196 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
3198 ---------------------------------------
3199 -- 3.5.1 Defining Character Literal --
3200 ---------------------------------------
3202 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
3204 -- A defining character literal is an entity, which has additional
3205 -- fields depending on the setting of the Ekind field. These
3206 -- additional fields are defined (and access subprograms declared)
3207 -- in package Einfo.
3209 -- Note: N_Defining_Character_Literal is an extended node whose fields
3210 -- are deliberate layed out to match the layout of fields in an ordinary
3211 -- N_Character_Literal node allowing for easy alteration of a character
3212 -- literal node into a defining character literal node. For details, see
3213 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
3215 -- N_Defining_Character_Literal
3216 -- Sloc points to literal
3217 -- Chars (Name1) contains the Name_Id for the identifier
3218 -- Next_Entity (Node2-Sem)
3219 -- Scope (Node3-Sem)
3220 -- Etype (Node5-Sem)
3222 ------------------------------------
3223 -- 3.5.4 Integer Type Definition --
3224 ------------------------------------
3226 -- Note: there is an error in this rule in the latest version of the
3227 -- grammar, so we have retained the old rule pending clarification.
3229 -- INTEGER_TYPE_DEFINITION ::=
3230 -- SIGNED_INTEGER_TYPE_DEFINITION
3231 -- | MODULAR_TYPE_DEFINITION
3233 -------------------------------------------
3234 -- 3.5.4 Signed Integer Type Definition --
3235 -------------------------------------------
3237 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
3238 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3240 -- Note: the Low_Bound and High_Bound fields are set to Empty
3241 -- for integer types defined in package Standard.
3243 -- N_Signed_Integer_Type_Definition
3244 -- Sloc points to RANGE
3245 -- Low_Bound (Node1)
3246 -- High_Bound (Node2)
3248 ------------------------------------
3249 -- 3.5.4 Modular Type Definition --
3250 ------------------------------------
3252 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
3254 -- N_Modular_Type_Definition
3255 -- Sloc points to MOD
3256 -- Expression (Node3)
3258 ---------------------------------
3259 -- 3.5.6 Real Type Definition --
3260 ---------------------------------
3262 -- REAL_TYPE_DEFINITION ::=
3263 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
3265 --------------------------------------
3266 -- 3.5.7 Floating Point Definition --
3267 --------------------------------------
3269 -- FLOATING_POINT_DEFINITION ::=
3270 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
3272 -- Note: The Digits_Expression and Real_Range_Specifications fields
3273 -- are set to Empty for floating-point types declared in Standard.
3275 -- N_Floating_Point_Definition
3276 -- Sloc points to DIGITS
3277 -- Digits_Expression (Node2)
3278 -- Real_Range_Specification (Node4) (set to Empty if not present)
3280 -------------------------------------
3281 -- 3.5.7 Real Range Specification --
3282 -------------------------------------
3284 -- REAL_RANGE_SPECIFICATION ::=
3285 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3287 -- N_Real_Range_Specification
3288 -- Sloc points to RANGE
3289 -- Low_Bound (Node1)
3290 -- High_Bound (Node2)
3292 -----------------------------------
3293 -- 3.5.9 Fixed Point Definition --
3294 -----------------------------------
3296 -- FIXED_POINT_DEFINITION ::=
3297 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
3299 --------------------------------------------
3300 -- 3.5.9 Ordinary Fixed Point Definition --
3301 --------------------------------------------
3303 -- ORDINARY_FIXED_POINT_DEFINITION ::=
3304 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
3306 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3308 -- N_Ordinary_Fixed_Point_Definition
3309 -- Sloc points to DELTA
3310 -- Delta_Expression (Node3)
3311 -- Real_Range_Specification (Node4)
3313 -------------------------------------------
3314 -- 3.5.9 Decimal Fixed Point Definition --
3315 -------------------------------------------
3317 -- DECIMAL_FIXED_POINT_DEFINITION ::=
3318 -- delta static_EXPRESSION
3319 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
3321 -- Note: decimal types are not permitted in Ada 83 mode
3323 -- N_Decimal_Fixed_Point_Definition
3324 -- Sloc points to DELTA
3325 -- Delta_Expression (Node3)
3326 -- Digits_Expression (Node2)
3327 -- Real_Range_Specification (Node4) (set to Empty if not present)
3329 ------------------------------
3330 -- 3.5.9 Digits Constraint --
3331 ------------------------------
3333 -- DIGITS_CONSTRAINT ::=
3334 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
3336 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3337 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
3339 -- N_Digits_Constraint
3340 -- Sloc points to DIGITS
3341 -- Digits_Expression (Node2)
3342 -- Range_Constraint (Node4) (set to Empty if not present)
3344 --------------------------------
3345 -- 3.6 Array Type Definition --
3346 --------------------------------
3348 -- ARRAY_TYPE_DEFINITION ::=
3349 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
3351 -----------------------------------------
3352 -- 3.6 Unconstrained Array Definition --
3353 -----------------------------------------
3355 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
3356 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
3357 -- COMPONENT_DEFINITION
3359 -- Note: dimensionality of array is indicated by number of entries in
3360 -- the Subtype_Marks list, which has one entry for each dimension.
3362 -- N_Unconstrained_Array_Definition
3363 -- Sloc points to ARRAY
3364 -- Subtype_Marks (List2)
3365 -- Component_Definition (Node4)
3367 -----------------------------------
3368 -- 3.6 Index Subtype Definition --
3369 -----------------------------------
3371 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
3373 -- There is no explicit node in the tree for an index subtype
3374 -- definition since the N_Unconstrained_Array_Definition node
3375 -- incorporates the type marks which appear in this context.
3377 ---------------------------------------
3378 -- 3.6 Constrained Array Definition --
3379 ---------------------------------------
3381 -- CONSTRAINED_ARRAY_DEFINITION ::=
3382 -- array (DISCRETE_SUBTYPE_DEFINITION
3383 -- {, DISCRETE_SUBTYPE_DEFINITION})
3384 -- of COMPONENT_DEFINITION
3386 -- Note: dimensionality of array is indicated by number of entries
3387 -- in the Discrete_Subtype_Definitions list, which has one entry
3388 -- for each dimension.
3390 -- N_Constrained_Array_Definition
3391 -- Sloc points to ARRAY
3392 -- Discrete_Subtype_Definitions (List2)
3393 -- Component_Definition (Node4)
3395 -- Note: although the language allows the full syntax for discrete
3396 -- subtype definitions (i.e. a discrete subtype indication or a range),
3397 -- in the generated tree, we always rewrite these as N_Range nodes.
3399 --------------------------------------
3400 -- 3.6 Discrete Subtype Definition --
3401 --------------------------------------
3403 -- DISCRETE_SUBTYPE_DEFINITION ::=
3404 -- discrete_SUBTYPE_INDICATION | RANGE
3406 -------------------------------
3407 -- 3.6 Component Definition --
3408 -------------------------------
3410 -- COMPONENT_DEFINITION ::=
3411 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
3413 -- Note: although the syntax does not permit a component definition to
3414 -- be an anonymous array (and the parser will diagnose such an attempt
3415 -- with an appropriate message), it is possible for anonymous arrays
3416 -- to appear as component definitions. The semantics and back end handle
3417 -- this case properly, and the expander in fact generates such cases.
3418 -- Access_Definition is an optional field that gives support to
3419 -- Ada 2005 (AI-230). The parser generates nodes that have either the
3420 -- Subtype_Indication field or else the Access_Definition field.
3422 -- N_Component_Definition
3423 -- Sloc points to ALIASED, ACCESS, or to first token of subtype mark
3424 -- Aliased_Present (Flag4)
3425 -- Null_Exclusion_Present (Flag11)
3426 -- Subtype_Indication (Node5) (set to Empty if not present)
3427 -- Access_Definition (Node3) (set to Empty if not present)
3429 -----------------------------
3430 -- 3.6.1 Index Constraint --
3431 -----------------------------
3433 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3435 -- It is not in general possible to distinguish between discriminant
3436 -- constraints and index constraints at parse time, since a simple
3437 -- name could be either the subtype mark of a discrete range, or an
3438 -- expression in a discriminant association with no name. Either
3439 -- entry appears simply as the name, and the semantic parse must
3440 -- distinguish between the two cases. Thus we use a common tree
3441 -- node format for both of these constraint types.
3443 -- See Discriminant_Constraint for format of node
3445 ---------------------------
3446 -- 3.6.1 Discrete Range --
3447 ---------------------------
3449 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3451 ----------------------------
3452 -- 3.7 Discriminant Part --
3453 ----------------------------
3455 -- DISCRIMINANT_PART ::=
3456 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3458 ------------------------------------
3459 -- 3.7 Unknown Discriminant Part --
3460 ------------------------------------
3462 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
3464 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
3466 -- There is no explicit node in the tree for an unknown discriminant
3467 -- part. Instead the Unknown_Discriminants_Present flag is set in the
3468 -- parent node.
3470 ----------------------------------
3471 -- 3.7 Known Discriminant Part --
3472 ----------------------------------
3474 -- KNOWN_DISCRIMINANT_PART ::=
3475 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3477 -------------------------------------
3478 -- 3.7 Discriminant Specification --
3479 -------------------------------------
3481 -- DISCRIMINANT_SPECIFICATION ::=
3482 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3483 -- [:= DEFAULT_EXPRESSION]
3484 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3485 -- [:= DEFAULT_EXPRESSION]
3487 -- Although the syntax allows multiple identifiers in the list, the
3488 -- semantics is as though successive specifications were given with
3489 -- identical type definition and expression components. To simplify
3490 -- semantic processing, the parser represents a multiple declaration
3491 -- case as a sequence of single specifications, using the More_Ids and
3492 -- Prev_Ids flags to preserve the original source form as described
3493 -- in the section on "Handling of Defining Identifier Lists".
3495 -- N_Discriminant_Specification
3496 -- Sloc points to first identifier
3497 -- Defining_Identifier (Node1)
3498 -- Null_Exclusion_Present (Flag11)
3499 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3500 -- Expression (Node3) (set to Empty if no default expression)
3501 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3502 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3504 -----------------------------
3505 -- 3.7 Default Expression --
3506 -----------------------------
3508 -- DEFAULT_EXPRESSION ::= EXPRESSION
3510 ------------------------------------
3511 -- 3.7.1 Discriminant Constraint --
3512 ------------------------------------
3514 -- DISCRIMINANT_CONSTRAINT ::=
3515 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3517 -- It is not in general possible to distinguish between discriminant
3518 -- constraints and index constraints at parse time, since a simple
3519 -- name could be either the subtype mark of a discrete range, or an
3520 -- expression in a discriminant association with no name. Either
3521 -- entry appears simply as the name, and the semantic parse must
3522 -- distinguish between the two cases. Thus we use a common tree
3523 -- node format for both of these constraint types.
3525 -- N_Index_Or_Discriminant_Constraint
3526 -- Sloc points to left paren
3527 -- Constraints (List1) points to list of discrete ranges or
3528 -- discriminant associations
3530 -------------------------------------
3531 -- 3.7.1 Discriminant Association --
3532 -------------------------------------
3534 -- DISCRIMINANT_ASSOCIATION ::=
3535 -- [discriminant_SELECTOR_NAME
3536 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3538 -- Note: a discriminant association that has no selector name list
3539 -- appears directly as an expression in the tree.
3541 -- N_Discriminant_Association
3542 -- Sloc points to first token of discriminant association
3543 -- Selector_Names (List1) (always non-empty, since if no selector
3544 -- names are present, this node is not used, see comment above)
3545 -- Expression (Node3)
3547 ---------------------------------
3548 -- 3.8 Record Type Definition --
3549 ---------------------------------
3551 -- RECORD_TYPE_DEFINITION ::=
3552 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3554 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3556 -- There is no explicit node in the tree for a record type definition.
3557 -- Instead the flags for Tagged_Present and Limited_Present appear in
3558 -- the N_Record_Definition node for a record definition appearing in
3559 -- the context of a record type definition.
3561 ----------------------------
3562 -- 3.8 Record Definition --
3563 ----------------------------
3565 -- RECORD_DEFINITION ::=
3566 -- record
3567 -- COMPONENT_LIST
3568 -- end record
3569 -- | null record
3571 -- Note: the Abstract_Present, Tagged_Present, and Limited_Present
3572 -- flags appear only for a record definition appearing in a record
3573 -- type definition.
3575 -- Note: the NULL RECORD case is not permitted in Ada 83
3577 -- N_Record_Definition
3578 -- Sloc points to RECORD or NULL
3579 -- End_Label (Node4) (set to Empty if internally generated record)
3580 -- Abstract_Present (Flag4)
3581 -- Tagged_Present (Flag15)
3582 -- Limited_Present (Flag17)
3583 -- Component_List (Node1) empty in null record case
3584 -- Null_Present (Flag13) set in null record case
3585 -- Task_Present (Flag5) set in task interfaces
3586 -- Protected_Present (Flag6) set in protected interfaces
3587 -- Synchronized_Present (Flag7) set in interfaces
3588 -- Interface_Present (Flag16) set in abstract interfaces
3589 -- Interface_List (List2) (set to No_List if none)
3591 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3592 -- Interface_List and Interface_Present are used for abstract
3593 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3595 -------------------------
3596 -- 3.8 Component List --
3597 -------------------------
3599 -- COMPONENT_LIST ::=
3600 -- COMPONENT_ITEM {COMPONENT_ITEM}
3601 -- | {COMPONENT_ITEM} VARIANT_PART
3602 -- | null;
3604 -- N_Component_List
3605 -- Sloc points to first token of component list
3606 -- Component_Items (List3)
3607 -- Variant_Part (Node4) (set to Empty if no variant part)
3608 -- Null_Present (Flag13)
3610 -------------------------
3611 -- 3.8 Component Item --
3612 -------------------------
3614 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3616 -- Note: A component item can also be a pragma, and in the tree
3617 -- that is obtained after semantic processing, a component item
3618 -- can be an N_Null node resulting from a non-recognized pragma.
3620 --------------------------------
3621 -- 3.8 Component Declaration --
3622 --------------------------------
3624 -- COMPONENT_DECLARATION ::=
3625 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3626 -- [:= DEFAULT_EXPRESSION]
3627 -- [ASPECT_SPECIFICATIONS];
3629 -- Note: although the syntax does not permit a component definition to
3630 -- be an anonymous array (and the parser will diagnose such an attempt
3631 -- with an appropriate message), it is possible for anonymous arrays
3632 -- to appear as component definitions. The semantics and back end handle
3633 -- this case properly, and the expander in fact generates such cases.
3635 -- Although the syntax allows multiple identifiers in the list, the
3636 -- semantics is as though successive declarations were given with the
3637 -- same component definition and expression components. To simplify
3638 -- semantic processing, the parser represents a multiple declaration
3639 -- case as a sequence of single declarations, using the More_Ids and
3640 -- Prev_Ids flags to preserve the original source form as described
3641 -- in the section on "Handling of Defining Identifier Lists".
3643 -- N_Component_Declaration
3644 -- Sloc points to first identifier
3645 -- Defining_Identifier (Node1)
3646 -- Component_Definition (Node4)
3647 -- Expression (Node3) (set to Empty if no default expression)
3648 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3649 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3651 -------------------------
3652 -- 3.8.1 Variant Part --
3653 -------------------------
3655 -- VARIANT_PART ::=
3656 -- case discriminant_DIRECT_NAME is
3657 -- VARIANT {VARIANT}
3658 -- end case;
3660 -- Note: the variants list can contain pragmas as well as variants.
3661 -- In a properly formed program there is at least one variant.
3663 -- N_Variant_Part
3664 -- Sloc points to CASE
3665 -- Name (Node2)
3666 -- Variants (List1)
3668 --------------------
3669 -- 3.8.1 Variant --
3670 --------------------
3672 -- VARIANT ::=
3673 -- when DISCRETE_CHOICE_LIST =>
3674 -- COMPONENT_LIST
3676 -- N_Variant
3677 -- Sloc points to WHEN
3678 -- Discrete_Choices (List4)
3679 -- Component_List (Node1)
3680 -- Enclosing_Variant (Node2-Sem)
3681 -- Present_Expr (Uint3-Sem)
3682 -- Dcheck_Function (Node5-Sem)
3683 -- Has_SP_Choice (Flag15-Sem)
3685 -- Note: in the list of Discrete_Choices, the tree passed to the back
3686 -- end does not have choice entries corresponding to names of statically
3687 -- predicated subtypes. Such entries are always expanded out to the list
3688 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3689 -- mode also has this expansion, but done with a proper Rewrite call on
3690 -- the N_Variant node so that ASIS can properly retrieve the original.
3692 ---------------------------------
3693 -- 3.8.1 Discrete Choice List --
3694 ---------------------------------
3696 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3698 ----------------------------
3699 -- 3.8.1 Discrete Choice --
3700 ----------------------------
3702 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3704 -- Note: in Ada 83 mode, the expression must be a simple expression
3706 -- The only choice that appears explicitly is the OTHERS choice, as
3707 -- defined here. Other cases of discrete choice (expression and
3708 -- discrete range) appear directly. This production is also used
3709 -- for the OTHERS possibility of an exception choice.
3711 -- Note: in accordance with the syntax, the parser does not check that
3712 -- OTHERS appears at the end on its own in a choice list context. This
3713 -- is a semantic check.
3715 -- N_Others_Choice
3716 -- Sloc points to OTHERS
3717 -- Others_Discrete_Choices (List1-Sem)
3718 -- All_Others (Flag11-Sem)
3720 ----------------------------------
3721 -- 3.9.1 Record Extension Part --
3722 ----------------------------------
3724 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3726 -- Note: record extension parts are not permitted in Ada 83 mode
3728 --------------------------------------
3729 -- 3.9.4 Interface Type Definition --
3730 --------------------------------------
3732 -- INTERFACE_TYPE_DEFINITION ::=
3733 -- [limited | task | protected | synchronized]
3734 -- interface [interface_list]
3736 -- Note: Interfaces are implemented with N_Record_Definition and
3737 -- N_Derived_Type_Definition nodes because most of the support
3738 -- for the analysis of abstract types has been reused to
3739 -- analyze abstract interfaces.
3741 ----------------------------------
3742 -- 3.10 Access Type Definition --
3743 ----------------------------------
3745 -- ACCESS_TYPE_DEFINITION ::=
3746 -- ACCESS_TO_OBJECT_DEFINITION
3747 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3749 --------------------------
3750 -- 3.10 Null Exclusion --
3751 --------------------------
3753 -- NULL_EXCLUSION ::= not null
3755 ---------------------------------------
3756 -- 3.10 Access To Object Definition --
3757 ---------------------------------------
3759 -- ACCESS_TO_OBJECT_DEFINITION ::=
3760 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3761 -- SUBTYPE_INDICATION
3763 -- N_Access_To_Object_Definition
3764 -- Sloc points to ACCESS
3765 -- All_Present (Flag15)
3766 -- Null_Exclusion_Present (Flag11)
3767 -- Null_Excluding_Subtype (Flag16)
3768 -- Subtype_Indication (Node5)
3769 -- Constant_Present (Flag17)
3771 -----------------------------------
3772 -- 3.10 General Access Modifier --
3773 -----------------------------------
3775 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3777 -- Note: general access modifiers are not permitted in Ada 83 mode
3779 -- There is no explicit node in the tree for general access modifier.
3780 -- Instead the All_Present or Constant_Present flags are set in the
3781 -- parent node.
3783 -------------------------------------------
3784 -- 3.10 Access To Subprogram Definition --
3785 -------------------------------------------
3787 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3788 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3789 -- | [NULL_EXCLUSION] access [protected] function
3790 -- PARAMETER_AND_RESULT_PROFILE
3792 -- Note: access to subprograms are not permitted in Ada 83 mode
3794 -- N_Access_Function_Definition
3795 -- Sloc points to ACCESS
3796 -- Null_Exclusion_Present (Flag11)
3797 -- Null_Exclusion_In_Return_Present (Flag14)
3798 -- Protected_Present (Flag6)
3799 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3800 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3802 -- N_Access_Procedure_Definition
3803 -- Sloc points to ACCESS
3804 -- Null_Exclusion_Present (Flag11)
3805 -- Protected_Present (Flag6)
3806 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3808 -----------------------------
3809 -- 3.10 Access Definition --
3810 -----------------------------
3812 -- ACCESS_DEFINITION ::=
3813 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3814 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3816 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3818 -- N_Access_Definition
3819 -- Sloc points to ACCESS
3820 -- Null_Exclusion_Present (Flag11)
3821 -- All_Present (Flag15)
3822 -- Constant_Present (Flag17)
3823 -- Subtype_Mark (Node4)
3824 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3826 -----------------------------------------
3827 -- 3.10.1 Incomplete Type Declaration --
3828 -----------------------------------------
3830 -- INCOMPLETE_TYPE_DECLARATION ::=
3831 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3833 -- N_Incomplete_Type_Declaration
3834 -- Sloc points to TYPE
3835 -- Defining_Identifier (Node1)
3836 -- Discriminant_Specifications (List4) (set to No_List if no
3837 -- discriminant part, or if the discriminant part is an
3838 -- unknown discriminant part)
3839 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3840 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3841 -- Tagged_Present (Flag15)
3843 ----------------------------
3844 -- 3.11 Declarative Part --
3845 ----------------------------
3847 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3849 -- Note: although the parser enforces the syntactic requirement that
3850 -- a declarative part can contain only declarations, the semantic
3851 -- processing may add statements to the list of actions in a
3852 -- declarative part, so the code generator should be prepared
3853 -- to accept a statement in this position.
3855 ----------------------------
3856 -- 3.11 Declarative Item --
3857 ----------------------------
3859 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3861 ----------------------------------
3862 -- 3.11 Basic Declarative Item --
3863 ----------------------------------
3865 -- BASIC_DECLARATIVE_ITEM ::=
3866 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3868 ----------------
3869 -- 3.11 Body --
3870 ----------------
3872 -- BODY ::= PROPER_BODY | BODY_STUB
3874 -----------------------
3875 -- 3.11 Proper Body --
3876 -----------------------
3878 -- PROPER_BODY ::=
3879 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3881 ---------------
3882 -- 4.1 Name --
3883 ---------------
3885 -- NAME ::=
3886 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3887 -- | INDEXED_COMPONENT | SLICE
3888 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3889 -- | TYPE_CONVERSION | FUNCTION_CALL
3890 -- | CHARACTER_LITERAL
3892 ----------------------
3893 -- 4.1 Direct Name --
3894 ----------------------
3896 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3898 -----------------
3899 -- 4.1 Prefix --
3900 -----------------
3902 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3904 -------------------------------
3905 -- 4.1 Explicit Dereference --
3906 -------------------------------
3908 -- EXPLICIT_DEREFERENCE ::= NAME . all
3910 -- N_Explicit_Dereference
3911 -- Sloc points to ALL
3912 -- Prefix (Node3)
3913 -- Actual_Designated_Subtype (Node4-Sem)
3914 -- Has_Dereference_Action (Flag13-Sem)
3915 -- Atomic_Sync_Required (Flag14-Sem)
3916 -- plus fields for expression
3918 -------------------------------
3919 -- 4.1 Implicit Dereference --
3920 -------------------------------
3922 -- IMPLICIT_DEREFERENCE ::= NAME
3924 ------------------------------
3925 -- 4.1.1 Indexed Component --
3926 ------------------------------
3928 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3930 -- Note: the parser may generate this node in some situations where it
3931 -- should be a function call. The semantic pass must correct this
3932 -- misidentification (which is inevitable at the parser level).
3934 -- N_Indexed_Component
3935 -- Sloc contains a copy of the Sloc value of the Prefix
3936 -- Prefix (Node3)
3937 -- Expressions (List1)
3938 -- Generalized_Indexing (Node4-Sem)
3939 -- Atomic_Sync_Required (Flag14-Sem)
3940 -- plus fields for expression
3942 -- Note: if any of the subscripts requires a range check, then the
3943 -- Do_Range_Check flag is set on the corresponding expression, with
3944 -- the index type being determined from the type of the Prefix, which
3945 -- references the array being indexed.
3947 -- Note: in a fully analyzed and expanded indexed component node, and
3948 -- hence in any such node that gigi sees, if the prefix is an access
3949 -- type, then an explicit dereference operation has been inserted.
3951 ------------------
3952 -- 4.1.2 Slice --
3953 ------------------
3955 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3957 -- Note: an implicit subtype is created to describe the resulting
3958 -- type, so that the bounds of this type are the bounds of the slice.
3960 -- N_Slice
3961 -- Sloc points to first token of prefix
3962 -- Prefix (Node3)
3963 -- Discrete_Range (Node4)
3964 -- plus fields for expression
3966 -------------------------------
3967 -- 4.1.3 Selected Component --
3968 -------------------------------
3970 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3972 -- Note: selected components that are semantically expanded names get
3973 -- changed during semantic processing into the separate N_Expanded_Name
3974 -- node. See description of this node in the section on semantic nodes.
3976 -- N_Selected_Component
3977 -- Sloc points to the period
3978 -- Prefix (Node3)
3979 -- Selector_Name (Node2)
3980 -- Associated_Node (Node4-Sem)
3981 -- Do_Discriminant_Check (Flag3-Sem)
3982 -- Is_In_Discriminant_Check (Flag11-Sem)
3983 -- Atomic_Sync_Required (Flag14-Sem)
3984 -- Is_Prefixed_Call (Flag17-Sem)
3985 -- plus fields for expression
3987 --------------------------
3988 -- 4.1.3 Selector Name --
3989 --------------------------
3991 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3993 --------------------------------
3994 -- 4.1.4 Attribute Reference --
3995 --------------------------------
3997 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3999 -- Note: the syntax is quite ambiguous at this point. Consider:
4001 -- A'Length (X) X is part of the attribute designator
4002 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
4003 -- A'Class (X) X is the expression of a type conversion
4005 -- It would be possible for the parser to distinguish these cases
4006 -- by looking at the attribute identifier. However, that would mean
4007 -- more work in introducing new implementation defined attributes,
4008 -- and also it would mean that special processing for attributes
4009 -- would be scattered around, instead of being centralized in the
4010 -- semantic routine that handles an N_Attribute_Reference node.
4011 -- Consequently, the parser in all the above cases stores the
4012 -- expression (X in these examples) as a single element list in
4013 -- in the Expressions field of the N_Attribute_Reference node.
4015 -- Similarly, for attributes like Max which take two arguments,
4016 -- we store the two arguments as a two element list in the
4017 -- Expressions field. Of course it is clear at parse time that
4018 -- this case is really a function call with an attribute as the
4019 -- prefix, but it turns out to be convenient to handle the two
4020 -- argument case in a similar manner to the one argument case,
4021 -- and indeed in general the parser will accept any number of
4022 -- expressions in this position and store them as a list in the
4023 -- attribute reference node. This allows for future addition of
4024 -- attributes that take more than two arguments.
4026 -- Note: named associates are not permitted in function calls where
4027 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
4028 -- to skip the normal subprogram argument processing.
4030 -- Note: for the attributes whose designators are technically keywords,
4031 -- i.e. digits, access, delta, range, the Attribute_Name field contains
4032 -- the corresponding name, even though no identifier is involved.
4034 -- Note: the generated code may contain stream attributes applied to
4035 -- limited types for which no stream routines exist officially. In such
4036 -- case, the result is to use the stream attribute for the underlying
4037 -- full type, or in the case of a protected type, the components
4038 -- (including any discriminants) are merely streamed in order.
4040 -- See Exp_Attr for a complete description of which attributes are
4041 -- passed onto Gigi, and which are handled entirely by the front end.
4043 -- Gigi restriction: For the Pos attribute, the prefix cannot be
4044 -- a non-standard enumeration type or a nonzero/zero semantics
4045 -- boolean type, so the value is simply the stored representation.
4047 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
4048 -- references a subprogram that is a renaming, then the front end must
4049 -- rewrite the attribute to refer directly to the renamed entity.
4051 -- Note: syntactically the prefix of an attribute reference must be a
4052 -- name, and this (somewhat artificial) requirement is enforced by the
4053 -- parser. However, for many attributes, such as 'Valid, it is quite
4054 -- reasonable to apply the attribute to any value, and hence to any
4055 -- expression. Internally in the tree, the prefix is an expression which
4056 -- does not have to be a name, and this is handled fine by the semantic
4057 -- analysis and expansion, and back ends. This arises for the case of
4058 -- attribute references built by the expander (e.g. 'Valid for the case
4059 -- of an implicit validity check).
4061 -- Note: In generated code, the Address and Unrestricted_Access
4062 -- attributes can be applied to any expression, and the meaning is
4063 -- to create an object containing the value (the object is in the
4064 -- current stack frame), and pass the address of this value. If the
4065 -- Must_Be_Byte_Aligned flag is set, then the object whose address
4066 -- is taken must be on a byte (storage unit) boundary, and if it is
4067 -- not (or may not be), then the generated code must create a copy
4068 -- that is byte aligned, and pass the address of this copy.
4070 -- N_Attribute_Reference
4071 -- Sloc points to apostrophe
4072 -- Prefix (Node3) (general expression, see note above)
4073 -- Attribute_Name (Name2) identifier name from attribute designator
4074 -- Expressions (List1) (set to No_List if no associated expressions)
4075 -- Entity (Node4-Sem) used if the attribute yields a type
4076 -- Associated_Node (Node4-Sem)
4077 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
4078 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
4079 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
4080 -- Header_Size_Added (Flag11-Sem)
4081 -- Redundant_Use (Flag13-Sem)
4082 -- Must_Be_Byte_Aligned (Flag14-Sem)
4083 -- plus fields for expression
4085 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
4086 -- into equivalent if expressions, properly taking care of side effects.
4088 ---------------------------------
4089 -- 4.1.4 Attribute Designator --
4090 ---------------------------------
4092 -- ATTRIBUTE_DESIGNATOR ::=
4093 -- IDENTIFIER [(static_EXPRESSION)]
4094 -- | access | delta | digits
4096 -- There is no explicit node in the tree for an attribute designator.
4097 -- Instead the Attribute_Name and Expressions fields of the parent
4098 -- node (N_Attribute_Reference node) hold the information.
4100 -- Note: if ACCESS, DELTA, or DIGITS appears in an attribute
4101 -- designator, then they are treated as identifiers internally
4102 -- rather than the keywords of the same name.
4104 --------------------------------------
4105 -- 4.1.4 Range Attribute Reference --
4106 --------------------------------------
4108 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
4110 -- A range attribute reference is represented in the tree using the
4111 -- normal N_Attribute_Reference node.
4113 ---------------------------------------
4114 -- 4.1.4 Range Attribute Designator --
4115 ---------------------------------------
4117 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
4119 -- A range attribute designator is represented in the tree using the
4120 -- normal N_Attribute_Reference node.
4122 --------------------
4123 -- 4.3 Aggregate --
4124 --------------------
4126 -- AGGREGATE ::=
4127 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
4129 -----------------------------
4130 -- 4.3.1 Record Aggregate --
4131 -----------------------------
4133 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
4135 -- N_Aggregate
4136 -- Sloc points to left parenthesis
4137 -- Expressions (List1) (set to No_List if none or null record case)
4138 -- Component_Associations (List2) (set to No_List if none)
4139 -- Null_Record_Present (Flag17)
4140 -- Aggregate_Bounds (Node3-Sem)
4141 -- Associated_Node (Node4-Sem)
4142 -- Compile_Time_Known_Aggregate (Flag18-Sem)
4143 -- Expansion_Delayed (Flag11-Sem)
4144 -- Has_Self_Reference (Flag13-Sem)
4145 -- plus fields for expression
4147 -- Note: this structure is used for both record and array aggregates
4148 -- since the two cases are not separable by the parser. The parser
4149 -- makes no attempt to enforce consistency here, so it is up to the
4150 -- semantic phase to make sure that the aggregate is consistent (i.e.
4151 -- that it is not a "half-and-half" case that mixes record and array
4152 -- syntax). In particular, for a record aggregate, the expressions
4153 -- field will be set if there are positional associations.
4155 -- Note: N_Aggregate is not used for all aggregates; in particular,
4156 -- there is a separate node kind for extension aggregates.
4158 -- Note: gigi/gcc can handle array aggregates correctly providing that
4159 -- they are entirely positional, and the array subtype involved has a
4160 -- known at compile time length and is not bit packed, or a convention
4161 -- Fortran array with more than one dimension. If these conditions
4162 -- are not met, then the front end must translate the aggregate into
4163 -- an appropriate set of assignments into a temporary.
4165 -- Note: for the record aggregate case, gigi/gcc can handle most cases
4166 -- of record aggregates, including those for packed, and rep-claused
4167 -- records, and also variant records, providing that there are no
4168 -- variable length fields whose size is not known at compile time,
4169 -- and providing that the aggregate is presented in fully named form.
4171 -- The other situation in which array aggregates and record aggregates
4172 -- cannot be passed to the back end is if assignment to one or more
4173 -- components itself needs expansion, e.g. in the case of an assignment
4174 -- of an object of a controlled type. In such cases, the front end
4175 -- must expand the aggregate to a series of assignments, and apply
4176 -- the required expansion to the individual assignment statements.
4178 ----------------------------------------------
4179 -- 4.3.1 Record Component Association List --
4180 ----------------------------------------------
4182 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
4183 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
4184 -- | null record
4186 -- There is no explicit node in the tree for a record component
4187 -- association list. Instead the Null_Record_Present flag is set in
4188 -- the parent node for the NULL RECORD case.
4190 ------------------------------------------------------
4191 -- 4.3.1 Record Component Association (also 4.3.3) --
4192 ------------------------------------------------------
4194 -- RECORD_COMPONENT_ASSOCIATION ::=
4195 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
4197 -- N_Component_Association
4198 -- Sloc points to first selector name
4199 -- Choices (List1)
4200 -- Loop_Actions (List2-Sem)
4201 -- Expression (Node3) (empty if Box_Present)
4202 -- Box_Present (Flag15)
4203 -- Inherited_Discriminant (Flag13)
4205 -- Note: this structure is used for both record component associations
4206 -- and array component associations, since the two cases aren't always
4207 -- separable by the parser. The choices list may represent either a
4208 -- list of selector names in the record aggregate case, or a list of
4209 -- discrete choices in the array aggregate case or an N_Others_Choice
4210 -- node (which appears as a singleton list). Box_Present gives support
4211 -- to Ada 2005 (AI-287).
4213 ----------------------------------
4214 -- 4.3.1 Component Choice List --
4215 ----------------------------------
4217 -- COMPONENT_CHOICE_LIST ::=
4218 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
4219 -- | others
4221 -- The entries of a component choice list appear in the Choices list of
4222 -- the associated N_Component_Association, as either selector names, or
4223 -- as an N_Others_Choice node.
4225 --------------------------------
4226 -- 4.3.2 Extension Aggregate --
4227 --------------------------------
4229 -- EXTENSION_AGGREGATE ::=
4230 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
4232 -- Note: extension aggregates are not permitted in Ada 83 mode
4234 -- N_Extension_Aggregate
4235 -- Sloc points to left parenthesis
4236 -- Ancestor_Part (Node3)
4237 -- Associated_Node (Node4-Sem)
4238 -- Expressions (List1) (set to No_List if none or null record case)
4239 -- Component_Associations (List2) (set to No_List if none)
4240 -- Null_Record_Present (Flag17)
4241 -- Expansion_Delayed (Flag11-Sem)
4242 -- Has_Self_Reference (Flag13-Sem)
4243 -- plus fields for expression
4245 --------------------------
4246 -- 4.3.2 Ancestor Part --
4247 --------------------------
4249 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
4251 ----------------------------
4252 -- 4.3.3 Array Aggregate --
4253 ----------------------------
4255 -- ARRAY_AGGREGATE ::=
4256 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
4258 ---------------------------------------
4259 -- 4.3.3 Positional Array Aggregate --
4260 ---------------------------------------
4262 -- POSITIONAL_ARRAY_AGGREGATE ::=
4263 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
4264 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
4266 -- See Record_Aggregate (4.3.1) for node structure
4268 ----------------------------------
4269 -- 4.3.3 Named Array Aggregate --
4270 ----------------------------------
4272 -- NAMED_ARRAY_AGGREGATE ::=
4273 -- (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
4275 -- See Record_Aggregate (4.3.1) for node structure
4277 ----------------------------------------
4278 -- 4.3.3 Array Component Association --
4279 ----------------------------------------
4281 -- ARRAY_COMPONENT_ASSOCIATION ::=
4282 -- DISCRETE_CHOICE_LIST => EXPRESSION
4283 -- | ITERATED_COMPONENT_ASSOCIATION
4285 -- See Record_Component_Association (4.3.1) for node structure
4286 -- The iterated_component_association is introduced into the
4287 -- Corrigendum of Ada_2012 by AI12-061.
4289 ------------------------------------------
4290 -- 4.3.3 Iterated component Association --
4291 ------------------------------------------
4293 -- ITERATED_COMPONENT_ASSOCIATION ::=
4294 -- for DEFINING_IDENTIFIER in DISCRETE_CHOICE_LIST => EXPRESSION
4296 -- N_Iterated_Component_Association
4297 -- Sloc points to FOR
4298 -- Defining_Identifier (Node1)
4299 -- Loop_Actions (List2-Sem)
4300 -- Expression (Node3)
4301 -- Discrete_Choices (List4)
4302 -- Box_Present (Flag15)
4304 -- Note that Box_Present is always False, but it is intentionally added
4305 -- for completeness.
4307 ----------------------------
4308 -- 4.3.4 Delta Aggregate --
4309 ----------------------------
4311 -- N_Delta_Aggregate
4312 -- Sloc points to left parenthesis
4313 -- Expression (Node3)
4314 -- Component_Associations (List2)
4316 --------------------------------------------------
4317 -- 4.4 Expression/Relation/Term/Factor/Primary --
4318 --------------------------------------------------
4320 -- EXPRESSION ::=
4321 -- RELATION {LOGICAL_OPERATOR RELATION}
4323 -- CHOICE_EXPRESSION ::=
4324 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
4326 -- CHOICE_RELATION ::=
4327 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
4329 -- RELATION ::=
4330 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4331 -- | RAISE_EXPRESSION
4333 -- MEMBERSHIP_CHOICE_LIST ::=
4334 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4336 -- MEMBERSHIP_CHOICE ::=
4337 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4339 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
4341 -- SIMPLE_EXPRESSION ::=
4342 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
4344 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
4346 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
4348 -- No nodes are generated for any of these constructs. Instead, the
4349 -- node for the operator appears directly. When we refer to an
4350 -- expression in this description, we mean any of the possible
4351 -- constituent components of an expression (e.g. identifier is
4352 -- an example of an expression).
4354 -- Note: the above syntax is that Ada 2012 syntax which restricts
4355 -- choice relations to simple expressions to avoid ambiguities in
4356 -- some contexts with set membership notation. It has been decided
4357 -- that in retrospect, the Ada 95 change allowing general expressions
4358 -- in this context was a mistake, so we have reverted to the above
4359 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
4360 -- expressions was there in Ada 83 from the start).
4362 ------------------
4363 -- 4.4 Primary --
4364 ------------------
4366 -- PRIMARY ::=
4367 -- NUMERIC_LITERAL | null
4368 -- | STRING_LITERAL | AGGREGATE
4369 -- | NAME | QUALIFIED_EXPRESSION
4370 -- | ALLOCATOR | (EXPRESSION)
4372 -- Usually there is no explicit node in the tree for primary. Instead
4373 -- the constituent (e.g. AGGREGATE) appears directly. There are two
4374 -- exceptions. First, there is an explicit node for a null primary.
4376 -- N_Null
4377 -- Sloc points to NULL
4378 -- plus fields for expression
4380 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
4381 -- that the parser keep track of which subexpressions are enclosed
4382 -- in parentheses, and how many levels of parentheses are used. This
4383 -- information is required for optimization purposes, and also for
4384 -- some semantic checks (e.g. (((1))) in a procedure spec does not
4385 -- conform with ((((1)))) in the body).
4387 -- The parentheses are recorded by keeping a Paren_Count field in every
4388 -- subexpression node (it is actually present in all nodes, but only
4389 -- used in subexpression nodes). This count records the number of
4390 -- levels of parentheses. If the number of levels in the source exceeds
4391 -- the maximum accommodated by this count, then the count is simply left
4392 -- at the maximum value. This means that there are some pathological
4393 -- cases of failure to detect conformance failures (e.g. an expression
4394 -- with 500 levels of parens will conform with one with 501 levels),
4395 -- but we do not need to lose sleep over this.
4397 -- Historical note: in versions of GNAT prior to 1.75, there was a node
4398 -- type N_Parenthesized_Expression used to accurately record unlimited
4399 -- numbers of levels of parentheses. However, it turned out to be a
4400 -- real nuisance to have to take into account the possible presence of
4401 -- this node during semantic analysis, since basically parentheses have
4402 -- zero relevance to semantic analysis.
4404 -- Note: the level of parentheses always present in things like
4405 -- aggregates does not count, only the parentheses in the primary
4406 -- (EXPRESSION) affect the setting of the Paren_Count field.
4408 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
4409 -- treated as though it were Empty) if No_Initialization is set True.
4411 --------------------------------------
4412 -- 4.5 Short-Circuit Control Forms --
4413 --------------------------------------
4415 -- EXPRESSION ::=
4416 -- RELATION {and then RELATION} | RELATION {or else RELATION}
4418 -- Gigi restriction: For both these control forms, the operand and
4419 -- result types are always Standard.Boolean. The expander inserts the
4420 -- required conversion operations where needed to ensure this is the
4421 -- case.
4423 -- N_And_Then
4424 -- Sloc points to AND of AND THEN
4425 -- Left_Opnd (Node2)
4426 -- Right_Opnd (Node3)
4427 -- Actions (List1-Sem)
4428 -- plus fields for expression
4430 -- N_Or_Else
4431 -- Sloc points to OR of OR ELSE
4432 -- Left_Opnd (Node2)
4433 -- Right_Opnd (Node3)
4434 -- Actions (List1-Sem)
4435 -- plus fields for expression
4437 -- Note: The Actions field is used to hold actions associated with
4438 -- the right hand operand. These have to be treated specially since
4439 -- they are not unconditionally executed. See Insert_Actions for a
4440 -- more detailed description of how these actions are handled.
4442 ---------------------------
4443 -- 4.5 Membership Tests --
4444 ---------------------------
4446 -- RELATION ::=
4447 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4449 -- MEMBERSHIP_CHOICE_LIST ::=
4450 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4452 -- MEMBERSHIP_CHOICE ::=
4453 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4455 -- Note: although the grammar above allows only a range or a subtype
4456 -- mark, the parser in fact will accept any simple expression in place
4457 -- of a subtype mark. This means that the semantic analyzer must be able
4458 -- to deal with, and diagnose a simple expression other than a name for
4459 -- the right operand. This simplifies error recovery in the parser.
4461 -- The Alternatives field below is present only if there is more than
4462 -- one Membership_Choice present (which is legitimate only in Ada 2012
4463 -- mode) in which case Right_Opnd is Empty, and Alternatives contains
4464 -- the list of choices. In the tree passed to the back end, Alternatives
4465 -- is always No_List, and Right_Opnd is set (i.e. the expansion circuit
4466 -- expands out the complex set membership case using simple membership
4467 -- and equality operations).
4469 -- Should we rename Alternatives here to Membership_Choices ???
4471 -- N_In
4472 -- Sloc points to IN
4473 -- Left_Opnd (Node2)
4474 -- Right_Opnd (Node3)
4475 -- Alternatives (List4) (set to No_List if only one set alternative)
4476 -- No_Minimize_Eliminate (Flag17)
4477 -- plus fields for expression
4479 -- N_Not_In
4480 -- Sloc points to NOT of NOT IN
4481 -- Left_Opnd (Node2)
4482 -- Right_Opnd (Node3)
4483 -- Alternatives (List4) (set to No_List if only one set alternative)
4484 -- No_Minimize_Eliminate (Flag17)
4485 -- plus fields for expression
4487 --------------------
4488 -- 4.5 Operators --
4489 --------------------
4491 -- LOGICAL_OPERATOR ::= and | or | xor
4493 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
4495 -- BINARY_ADDING_OPERATOR ::= + | - | &
4497 -- UNARY_ADDING_OPERATOR ::= + | -
4499 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
4501 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
4503 -- Sprint syntax if Treat_Fixed_As_Integer is set:
4505 -- x #* y
4506 -- x #/ y
4507 -- x #mod y
4508 -- x #rem y
4510 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
4511 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
4512 -- All handling of smalls for multiplication and division is handled
4513 -- by the front end (mod and rem result only from expansion). Gigi
4514 -- thus never needs to worry about small values (for other operators
4515 -- operating on fixed-point, e.g. addition, the small value does not
4516 -- have any semantic effect anyway, these are always integer operations.
4518 -- Gigi restriction: For all operators taking Boolean operands, the
4519 -- type is always Standard.Boolean. The expander inserts the required
4520 -- conversion operations where needed to ensure this is the case.
4522 -- N_Op_And
4523 -- Sloc points to AND
4524 -- Do_Length_Check (Flag4-Sem)
4525 -- plus fields for binary operator
4526 -- plus fields for expression
4528 -- N_Op_Or
4529 -- Sloc points to OR
4530 -- Do_Length_Check (Flag4-Sem)
4531 -- plus fields for binary operator
4532 -- plus fields for expression
4534 -- N_Op_Xor
4535 -- Sloc points to XOR
4536 -- Do_Length_Check (Flag4-Sem)
4537 -- plus fields for binary operator
4538 -- plus fields for expression
4540 -- N_Op_Eq
4541 -- Sloc points to =
4542 -- plus fields for binary operator
4543 -- plus fields for expression
4545 -- N_Op_Ne
4546 -- Sloc points to /=
4547 -- plus fields for binary operator
4548 -- plus fields for expression
4550 -- N_Op_Lt
4551 -- Sloc points to <
4552 -- plus fields for binary operator
4553 -- plus fields for expression
4555 -- N_Op_Le
4556 -- Sloc points to <=
4557 -- plus fields for binary operator
4558 -- plus fields for expression
4560 -- N_Op_Gt
4561 -- Sloc points to >
4562 -- plus fields for binary operator
4563 -- plus fields for expression
4565 -- N_Op_Ge
4566 -- Sloc points to >=
4567 -- plus fields for binary operator
4568 -- plus fields for expression
4570 -- N_Op_Add
4571 -- Sloc points to + (binary)
4572 -- plus fields for binary operator
4573 -- plus fields for expression
4575 -- N_Op_Subtract
4576 -- Sloc points to - (binary)
4577 -- plus fields for binary operator
4578 -- plus fields for expression
4580 -- N_Op_Concat
4581 -- Sloc points to &
4582 -- Is_Component_Left_Opnd (Flag13-Sem)
4583 -- Is_Component_Right_Opnd (Flag14-Sem)
4584 -- plus fields for binary operator
4585 -- plus fields for expression
4587 -- N_Op_Multiply
4588 -- Sloc points to *
4589 -- Treat_Fixed_As_Integer (Flag14-Sem)
4590 -- Rounded_Result (Flag18-Sem)
4591 -- plus fields for binary operator
4592 -- plus fields for expression
4594 -- N_Op_Divide
4595 -- Sloc points to /
4596 -- Treat_Fixed_As_Integer (Flag14-Sem)
4597 -- Do_Division_Check (Flag13-Sem)
4598 -- Rounded_Result (Flag18-Sem)
4599 -- plus fields for binary operator
4600 -- plus fields for expression
4602 -- N_Op_Mod
4603 -- Sloc points to MOD
4604 -- Treat_Fixed_As_Integer (Flag14-Sem)
4605 -- Do_Division_Check (Flag13-Sem)
4606 -- plus fields for binary operator
4607 -- plus fields for expression
4609 -- N_Op_Rem
4610 -- Sloc points to REM
4611 -- Treat_Fixed_As_Integer (Flag14-Sem)
4612 -- Do_Division_Check (Flag13-Sem)
4613 -- plus fields for binary operator
4614 -- plus fields for expression
4616 -- N_Op_Expon
4617 -- Sloc points to **
4618 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4619 -- plus fields for binary operator
4620 -- plus fields for expression
4622 -- N_Op_Plus
4623 -- Sloc points to + (unary)
4624 -- plus fields for unary operator
4625 -- plus fields for expression
4627 -- N_Op_Minus
4628 -- Sloc points to - (unary)
4629 -- plus fields for unary operator
4630 -- plus fields for expression
4632 -- N_Op_Abs
4633 -- Sloc points to ABS
4634 -- plus fields for unary operator
4635 -- plus fields for expression
4637 -- N_Op_Not
4638 -- Sloc points to NOT
4639 -- plus fields for unary operator
4640 -- plus fields for expression
4642 -- See also shift operators in section B.2
4644 -- Note on fixed-point operations passed to Gigi: For adding operators,
4645 -- the semantics is to treat these simply as integer operations, with
4646 -- the small values being ignored (the bounds are already stored in
4647 -- units of small, so that constraint checking works as usual). For the
4648 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4649 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4650 -- thus treat these nodes in identical manner, ignoring small values.
4652 -- Note on equality/inequality tests for records. In the expanded tree,
4653 -- record comparisons are always expanded to be a series of component
4654 -- comparisons, so the back end will never see an equality or inequality
4655 -- operation with operands of a record type.
4657 -- Note on overflow handling: When the overflow checking mode is set to
4658 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4659 -- be modified to use a larger type for the operands and result. In
4660 -- the case where the computed range exceeds that of Long_Long_Integer,
4661 -- and we are running in ELIMINATED mode, the operator node will be
4662 -- changed to be a call to the appropriate routine in System.Bignums.
4664 -- Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4665 -- for signed integer types (since there is no equivalent operator in
4666 -- C). Instead we rewrite such an operation in terms of REM (which is
4667 -- % in C) and other C-available operators.
4669 ------------------------------------
4670 -- 4.5.7 Conditional Expressions --
4671 ------------------------------------
4673 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4675 --------------------------
4676 -- 4.5.7 If Expression --
4677 ----------------------------
4679 -- IF_EXPRESSION ::=
4680 -- if CONDITION then DEPENDENT_EXPRESSION
4681 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4682 -- [else DEPENDENT_EXPRESSION]
4684 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4686 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4687 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4688 -- the Is_Elsif flag is set on the inner if expression.
4690 -- N_If_Expression
4691 -- Sloc points to IF or ELSIF keyword
4692 -- Expressions (List1)
4693 -- Then_Actions (List2-Sem)
4694 -- Else_Actions (List3-Sem)
4695 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4696 -- Do_Overflow_Check (Flag17-Sem)
4697 -- plus fields for expression
4699 -- Expressions here is a three-element list, whose first element is the
4700 -- condition, the second element is the dependent expression after THEN
4701 -- and the third element is the dependent expression after the ELSE
4702 -- (explicitly set to True if missing).
4704 -- Note: the Then_Actions and Else_Actions fields are always set to
4705 -- No_List in the tree passed to the back end. These are used only
4706 -- for temporary processing purposes in the expander. Even though they
4707 -- are semantic fields, their parent pointers are set because analysis
4708 -- of actions nodes in those lists may generate additional actions that
4709 -- need to know their insertion point (for example for the creation of
4710 -- transient scopes).
4712 -- Note: in the tree passed to the back end, if the result type is
4713 -- an unconstrained array, the if expression can only appears in the
4714 -- initializing expression of an object declaration (this avoids the
4715 -- back end having to create a variable length temporary on the fly).
4717 ----------------------------
4718 -- 4.5.7 Case Expression --
4719 ----------------------------
4721 -- CASE_EXPRESSION ::=
4722 -- case SELECTING_EXPRESSION is
4723 -- CASE_EXPRESSION_ALTERNATIVE
4724 -- {,CASE_EXPRESSION_ALTERNATIVE}
4726 -- Note that the Alternatives cannot include pragmas (this contrasts
4727 -- with the situation of case statements where pragmas are allowed).
4729 -- N_Case_Expression
4730 -- Sloc points to CASE
4731 -- Expression (Node3) (the selecting expression)
4732 -- Alternatives (List4) (the case expression alternatives)
4733 -- Do_Overflow_Check (Flag17-Sem)
4735 ----------------------------------------
4736 -- 4.5.7 Case Expression Alternative --
4737 ----------------------------------------
4739 -- CASE_EXPRESSION_ALTERNATIVE ::=
4740 -- when DISCRETE_CHOICE_LIST =>
4741 -- DEPENDENT_EXPRESSION
4743 -- N_Case_Expression_Alternative
4744 -- Sloc points to WHEN
4745 -- Actions (List1)
4746 -- Discrete_Choices (List4)
4747 -- Expression (Node3)
4748 -- Has_SP_Choice (Flag15-Sem)
4750 -- Note: The Actions field temporarily holds any actions associated with
4751 -- evaluation of the Expression. During expansion of the case expression
4752 -- these actions are wrapped into an N_Expressions_With_Actions node
4753 -- replacing the original expression.
4755 -- Note: this node never appears in the tree passed to the back end,
4756 -- since the expander converts case expressions into case statements.
4758 ---------------------------------
4759 -- 4.5.8 Quantified Expression --
4760 ---------------------------------
4762 -- QUANTIFIED_EXPRESSION ::=
4763 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4764 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4766 -- QUANTIFIER ::= all | some
4768 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4769 -- is present at a time, in which case the other one is empty.
4771 -- N_Quantified_Expression
4772 -- Sloc points to FOR
4773 -- Iterator_Specification (Node2)
4774 -- Loop_Parameter_Specification (Node4)
4775 -- Condition (Node1)
4776 -- All_Present (Flag15)
4778 --------------------------
4779 -- 4.6 Type Conversion --
4780 --------------------------
4782 -- TYPE_CONVERSION ::=
4783 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4785 -- In the (NAME) case, the name is stored as the expression
4787 -- Note: the parser never generates a type conversion node, since it
4788 -- looks like an indexed component which is generated by preference.
4789 -- The semantic pass must correct this misidentification.
4791 -- Gigi handles conversions that involve no change in the root type,
4792 -- and also all conversions from integer to floating-point types.
4793 -- Conversions from floating-point to integer are only handled in
4794 -- the case where Float_Truncate flag set. Other conversions from
4795 -- floating-point to integer (involving rounding) and all conversions
4796 -- involving fixed-point types are handled by the expander.
4798 -- Sprint syntax if Float_Truncate set: X^(Y)
4799 -- Sprint syntax if Conversion_OK set X?(Y)
4800 -- Sprint syntax if both flags set X?^(Y)
4802 -- Note: If either the operand or result type is fixed-point, Gigi will
4803 -- only see a type conversion node with Conversion_OK set. The front end
4804 -- takes care of all handling of small's for fixed-point conversions.
4806 -- N_Type_Conversion
4807 -- Sloc points to first token of subtype mark
4808 -- Subtype_Mark (Node4)
4809 -- Expression (Node3)
4810 -- Do_Discriminant_Check (Flag3-Sem)
4811 -- Do_Length_Check (Flag4-Sem)
4812 -- Float_Truncate (Flag11-Sem)
4813 -- Do_Tag_Check (Flag13-Sem)
4814 -- Conversion_OK (Flag14-Sem)
4815 -- Do_Overflow_Check (Flag17-Sem)
4816 -- Rounded_Result (Flag18-Sem)
4817 -- plus fields for expression
4819 -- Note: if a range check is required, then the Do_Range_Check flag
4820 -- is set in the Expression with the check being done against the
4821 -- target type range (after the base type conversion, if any).
4823 -------------------------------
4824 -- 4.7 Qualified Expression --
4825 -------------------------------
4827 -- QUALIFIED_EXPRESSION ::=
4828 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4830 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4831 -- the expression, so the Expression field of this node always points
4832 -- to a parenthesized expression in this case (i.e. Paren_Count will
4833 -- always be non-zero for the referenced expression if it is not an
4834 -- aggregate).
4836 -- N_Qualified_Expression
4837 -- Sloc points to apostrophe
4838 -- Subtype_Mark (Node4)
4839 -- Expression (Node3) expression or aggregate
4840 -- Is_Qualified_Universal_Literal (Flag4-Sem)
4841 -- plus fields for expression
4843 --------------------
4844 -- 4.8 Allocator --
4845 --------------------
4847 -- ALLOCATOR ::=
4848 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4849 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4851 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4853 -- Sprint syntax (when storage pool present)
4854 -- new xxx (storage_pool = pool)
4855 -- or
4856 -- new (subpool) xxx (storage_pool = pool)
4858 -- N_Allocator
4859 -- Sloc points to NEW
4860 -- Expression (Node3) subtype indication or qualified expression
4861 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4862 -- Storage_Pool (Node1-Sem)
4863 -- Procedure_To_Call (Node2-Sem)
4864 -- Alloc_For_BIP_Return (Flag1-Sem)
4865 -- Null_Exclusion_Present (Flag11)
4866 -- No_Initialization (Flag13-Sem)
4867 -- Is_Static_Coextension (Flag14-Sem)
4868 -- Do_Storage_Check (Flag17-Sem)
4869 -- Is_Dynamic_Coextension (Flag18-Sem)
4870 -- plus fields for expression
4872 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4873 -- This flag has a special function in conjunction with the restriction
4874 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4875 -- is not set. This means that if a source allocator is replaced with
4876 -- a constructed allocator, the Comes_From_Source flag should be copied
4877 -- to the newly created allocator.
4879 ---------------------------------
4880 -- 5.1 Sequence Of Statements --
4881 ---------------------------------
4883 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4885 -- Note: Although the parser will not accept a declaration as a
4886 -- statement, the semantic analyzer may insert declarations (e.g.
4887 -- declarations of implicit types needed for execution of other
4888 -- statements) into a sequence of statements, so the code generator
4889 -- should be prepared to accept a declaration where a statement is
4890 -- expected. Note also that pragmas can appear as statements.
4892 --------------------
4893 -- 5.1 Statement --
4894 --------------------
4896 -- STATEMENT ::=
4897 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4899 -- There is no explicit node in the tree for a statement. Instead, the
4900 -- individual statement appears directly. Labels are treated as a
4901 -- kind of statement, i.e. they are linked into a statement list at
4902 -- the point they appear, so the labeled statement appears following
4903 -- the label or labels in the statement list.
4905 ---------------------------
4906 -- 5.1 Simple Statement --
4907 ---------------------------
4909 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4910 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4911 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4912 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4913 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4914 -- | ABORT_STATEMENT | RAISE_STATEMENT
4915 -- | CODE_STATEMENT
4917 -----------------------------
4918 -- 5.1 Compound Statement --
4919 -----------------------------
4921 -- COMPOUND_STATEMENT ::=
4922 -- IF_STATEMENT | CASE_STATEMENT
4923 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4924 -- | EXTENDED_RETURN_STATEMENT
4925 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4927 -------------------------
4928 -- 5.1 Null Statement --
4929 -------------------------
4931 -- NULL_STATEMENT ::= null;
4933 -- N_Null_Statement
4934 -- Sloc points to NULL
4936 ----------------
4937 -- 5.1 Label --
4938 ----------------
4940 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4942 -- Note that the occurrence of a label is not a defining identifier,
4943 -- but rather a referencing occurrence. The defining occurrence is
4944 -- in the implicit label declaration which occurs in the innermost
4945 -- enclosing block.
4947 -- N_Label
4948 -- Sloc points to <<
4949 -- Identifier (Node1) direct name of statement identifier
4950 -- Exception_Junk (Flag8-Sem)
4952 -- Note: Before Ada 2012, a label is always followed by a statement,
4953 -- and this is true in the tree even in Ada 2012 mode (the parser
4954 -- inserts a null statement marked with Comes_From_Source False).
4956 -------------------------------
4957 -- 5.1 Statement Identifier --
4958 -------------------------------
4960 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4962 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4963 -- (not an OPERATOR_SYMBOL)
4965 -------------------------------
4966 -- 5.2 Assignment Statement --
4967 -------------------------------
4969 -- ASSIGNMENT_STATEMENT ::=
4970 -- variable_NAME := EXPRESSION;
4972 -- N_Assignment_Statement
4973 -- Sloc points to :=
4974 -- Name (Node2)
4975 -- Expression (Node3)
4976 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
4977 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
4978 -- Do_Discriminant_Check (Flag3-Sem)
4979 -- Do_Length_Check (Flag4-Sem)
4980 -- Forwards_OK (Flag5-Sem)
4981 -- Backwards_OK (Flag6-Sem)
4982 -- No_Ctrl_Actions (Flag7-Sem)
4983 -- Has_Target_Names (Flag8-Sem)
4984 -- Is_Elaboration_Code (Flag9-Sem)
4985 -- Do_Tag_Check (Flag13-Sem)
4986 -- Componentwise_Assignment (Flag14-Sem)
4987 -- Suppress_Assignment_Checks (Flag18-Sem)
4989 -- Note: if a range check is required, then the Do_Range_Check flag
4990 -- is set in the Expression (right hand side), with the check being
4991 -- done against the type of the Name (left hand side).
4993 -- Note: the back end places some restrictions on the form of the
4994 -- Expression field. If the object being assigned to is Atomic, then
4995 -- the Expression may not have the form of an aggregate (since this
4996 -- might cause the back end to generate separate assignments). In this
4997 -- case the front end must generate an extra temporary and initialize
4998 -- this temporary as required (the temporary itself is not atomic).
5000 ------------------
5001 -- Target_Name --
5002 ------------------
5004 -- N_Target_Name
5005 -- Sloc points to @
5006 -- Etype (Node5-Sem)
5008 -- Note (Ada 2020): node is used during analysis as a placeholder for
5009 -- the value of the LHS of the enclosing assignment statement. Node is
5010 -- eventually rewritten together with enclosing assignment, and backends
5011 -- are not aware of it.
5013 -----------------------
5014 -- 5.3 If Statement --
5015 -----------------------
5017 -- IF_STATEMENT ::=
5018 -- if CONDITION then
5019 -- SEQUENCE_OF_STATEMENTS
5020 -- {elsif CONDITION then
5021 -- SEQUENCE_OF_STATEMENTS}
5022 -- [else
5023 -- SEQUENCE_OF_STATEMENTS]
5024 -- end if;
5026 -- Gigi restriction: This expander ensures that the type of the
5027 -- Condition fields is always Standard.Boolean, even if the type
5028 -- in the source is some non-standard boolean type.
5030 -- N_If_Statement
5031 -- Sloc points to IF
5032 -- Condition (Node1)
5033 -- Then_Statements (List2)
5034 -- Elsif_Parts (List3) (set to No_List if none present)
5035 -- Else_Statements (List4) (set to No_List if no else part present)
5036 -- End_Span (Uint5) (set to Uint_0 if expander generated)
5037 -- From_Conditional_Expression (Flag1-Sem)
5039 -- N_Elsif_Part
5040 -- Sloc points to ELSIF
5041 -- Condition (Node1)
5042 -- Then_Statements (List2)
5043 -- Condition_Actions (List3-Sem)
5045 --------------------
5046 -- 5.3 Condition --
5047 --------------------
5049 -- CONDITION ::= boolean_EXPRESSION
5051 -------------------------
5052 -- 5.4 Case Statement --
5053 -------------------------
5055 -- CASE_STATEMENT ::=
5056 -- case EXPRESSION is
5057 -- CASE_STATEMENT_ALTERNATIVE
5058 -- {CASE_STATEMENT_ALTERNATIVE}
5059 -- end case;
5061 -- Note: the Alternatives can contain pragmas. These only occur at
5062 -- the start of the list, since any pragmas occurring after the first
5063 -- alternative are absorbed into the corresponding statement sequence.
5065 -- N_Case_Statement
5066 -- Sloc points to CASE
5067 -- Expression (Node3)
5068 -- Alternatives (List4)
5069 -- End_Span (Uint5) (set to Uint_0 if expander generated)
5070 -- From_Conditional_Expression (Flag1-Sem)
5072 -- Note: Before Ada 2012, a pragma in a statement sequence is always
5073 -- followed by a statement, and this is true in the tree even in Ada
5074 -- 2012 mode (the parser inserts a null statement marked with the flag
5075 -- Comes_From_Source False).
5077 -------------------------------------
5078 -- 5.4 Case Statement Alternative --
5079 -------------------------------------
5081 -- CASE_STATEMENT_ALTERNATIVE ::=
5082 -- when DISCRETE_CHOICE_LIST =>
5083 -- SEQUENCE_OF_STATEMENTS
5085 -- N_Case_Statement_Alternative
5086 -- Sloc points to WHEN
5087 -- Discrete_Choices (List4)
5088 -- Statements (List3)
5089 -- Has_SP_Choice (Flag15-Sem)
5091 -- Note: in the list of Discrete_Choices, the tree passed to the back
5092 -- end does not have choice entries corresponding to names of statically
5093 -- predicated subtypes. Such entries are always expanded out to the list
5094 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
5095 -- mode does not have this expansion, and has the original choices.
5097 -------------------------
5098 -- 5.5 Loop Statement --
5099 -------------------------
5101 -- LOOP_STATEMENT ::=
5102 -- [loop_STATEMENT_IDENTIFIER :]
5103 -- [ITERATION_SCHEME] loop
5104 -- SEQUENCE_OF_STATEMENTS
5105 -- end loop [loop_IDENTIFIER];
5107 -- Note: The occurrence of a loop label is not a defining identifier
5108 -- but rather a referencing occurrence. The defining occurrence is in
5109 -- the implicit label declaration which occurs in the innermost
5110 -- enclosing block.
5112 -- Note: there is always a loop statement identifier present in the
5113 -- tree, even if none was given in the source. In the case where no loop
5114 -- identifier is given in the source, the parser creates a name of the
5115 -- form _Loop_n, where n is a decimal integer (the two underlines ensure
5116 -- that the loop names created in this manner do not conflict with any
5117 -- user defined identifiers), and the flag Has_Created_Identifier is set
5118 -- to True. The only exception to the rule that all loop statement nodes
5119 -- have identifiers occurs for loops constructed by the expander, and
5120 -- the semantic analyzer will create and supply dummy loop identifiers
5121 -- in these cases.
5123 -- N_Loop_Statement
5124 -- Sloc points to LOOP
5125 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
5126 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
5127 -- Statements (List3)
5128 -- End_Label (Node4)
5129 -- Has_Created_Identifier (Flag15)
5130 -- Is_Null_Loop (Flag16)
5131 -- Suppress_Loop_Warnings (Flag17)
5133 -- Note: the parser fills in the Identifier field if there is an
5134 -- explicit loop identifier. Otherwise the parser leaves this field
5135 -- set to Empty, and then the semantic processing for a loop statement
5136 -- creates an identifier, setting the Has_Created_Identifier flag to
5137 -- True. So after semantic analysis, the Identifier is always set,
5138 -- referencing an identifier whose entity has an Ekind of E_Loop.
5140 ---------------------------
5141 -- 5.5 Iteration Scheme --
5142 ---------------------------
5144 -- ITERATION_SCHEME ::=
5145 -- while CONDITION
5146 -- | for LOOP_PARAMETER_SPECIFICATION
5147 -- | for ITERATOR_SPECIFICATION
5149 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
5150 -- is present at a time, in which case the other one is empty. Both are
5151 -- empty in the case of a WHILE loop.
5153 -- Gigi restriction: The expander ensures that the type of the Condition
5154 -- field is always Standard.Boolean, even if the type in the source is
5155 -- some non-standard boolean type.
5157 -- N_Iteration_Scheme
5158 -- Sloc points to WHILE or FOR
5159 -- Condition (Node1) (set to Empty if FOR case)
5160 -- Condition_Actions (List3-Sem)
5161 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
5162 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
5164 ---------------------------------------
5165 -- 5.5 Loop Parameter Specification --
5166 ---------------------------------------
5168 -- LOOP_PARAMETER_SPECIFICATION ::=
5169 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
5171 -- N_Loop_Parameter_Specification
5172 -- Sloc points to first identifier
5173 -- Defining_Identifier (Node1)
5174 -- Reverse_Present (Flag15)
5175 -- Discrete_Subtype_Definition (Node4)
5177 -----------------------------------
5178 -- 5.5.1 Iterator Specification --
5179 -----------------------------------
5181 -- ITERATOR_SPECIFICATION ::=
5182 -- DEFINING_IDENTIFIER in [reverse] NAME
5183 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
5185 -- N_Iterator_Specification
5186 -- Sloc points to defining identifier
5187 -- Defining_Identifier (Node1)
5188 -- Name (Node2)
5189 -- Reverse_Present (Flag15)
5190 -- Of_Present (Flag16)
5191 -- Subtype_Indication (Node5)
5193 -- Note: The Of_Present flag distinguishes the two forms
5195 --------------------------
5196 -- 5.6 Block Statement --
5197 --------------------------
5199 -- BLOCK_STATEMENT ::=
5200 -- [block_STATEMENT_IDENTIFIER:]
5201 -- [declare
5202 -- DECLARATIVE_PART]
5203 -- begin
5204 -- HANDLED_SEQUENCE_OF_STATEMENTS
5205 -- end [block_IDENTIFIER];
5207 -- Note that the occurrence of a block identifier is not a defining
5208 -- identifier, but rather a referencing occurrence. The defining
5209 -- occurrence is an E_Block entity declared by the implicit label
5210 -- declaration which occurs in the innermost enclosing block statement
5211 -- or body; the block identifier denotes that E_Block.
5213 -- For block statements that come from source code, there is always a
5214 -- block statement identifier present in the tree, denoting an E_Block.
5215 -- In the case where no block identifier is given in the source,
5216 -- the parser creates a name of the form B_n, where n is a decimal
5217 -- integer, and the flag Has_Created_Identifier is set to True. Blocks
5218 -- constructed by the expander usually have no identifier, and no
5219 -- corresponding entity.
5221 -- Note: the block statement created for an extended return statement
5222 -- has an entity, and this entity is an E_Return_Statement, rather than
5223 -- the usual E_Block.
5225 -- Note: Exception_Junk is set for the wrapping blocks created during
5226 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
5228 -- Note: from a control flow viewpoint, a block statement defines an
5229 -- extended basic block, i.e. the entry of the block dominates every
5230 -- statement in the sequence. When generating new statements with
5231 -- exception handlers in the expander at the end of a sequence that
5232 -- comes from source code, it can be necessary to wrap them all in a
5233 -- block statement in order to expose the implicit control flow to
5234 -- gigi and thus prevent it from issuing bogus control flow warnings.
5236 -- N_Block_Statement
5237 -- Sloc points to DECLARE or BEGIN
5238 -- Identifier (Node1) block direct name (set to Empty if not present)
5239 -- Declarations (List2) (set to No_List if no DECLARE part)
5240 -- Handled_Statement_Sequence (Node4)
5241 -- Activation_Chain_Entity (Node3-Sem)
5242 -- Cleanup_Actions (List5-Sem)
5243 -- Has_Created_Identifier (Flag15)
5244 -- Is_Asynchronous_Call_Block (Flag7)
5245 -- Is_Task_Allocation_Block (Flag6)
5246 -- Exception_Junk (Flag8-Sem)
5247 -- Is_Abort_Block (Flag4-Sem)
5248 -- Is_Finalization_Wrapper (Flag9-Sem)
5249 -- Is_Initialization_Block (Flag1-Sem)
5250 -- Is_Task_Master (Flag5-Sem)
5252 -------------------------
5253 -- 5.7 Exit Statement --
5254 -------------------------
5256 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
5258 -- Gigi restriction: The expander ensures that the type of the Condition
5259 -- field is always Standard.Boolean, even if the type in the source is
5260 -- some non-standard boolean type.
5262 -- N_Exit_Statement
5263 -- Sloc points to EXIT
5264 -- Name (Node2) (set to Empty if no loop name present)
5265 -- Condition (Node1) (set to Empty if no WHEN part present)
5266 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
5268 -------------------------
5269 -- 5.9 Goto Statement --
5270 -------------------------
5272 -- GOTO_STATEMENT ::= goto label_NAME;
5274 -- N_Goto_Statement
5275 -- Sloc points to GOTO
5276 -- Name (Node2)
5277 -- Exception_Junk (Flag8-Sem)
5279 ---------------------------------
5280 -- 6.1 Subprogram Declaration --
5281 ---------------------------------
5283 -- SUBPROGRAM_DECLARATION ::=
5284 -- SUBPROGRAM_SPECIFICATION
5285 -- [ASPECT_SPECIFICATIONS];
5287 -- N_Subprogram_Declaration
5288 -- Sloc points to FUNCTION or PROCEDURE
5289 -- Specification (Node1)
5290 -- Body_To_Inline (Node3-Sem)
5291 -- Corresponding_Body (Node5-Sem)
5292 -- Parent_Spec (Node4-Sem)
5293 -- Is_Entry_Barrier_Function (Flag8-Sem)
5294 -- Is_Task_Body_Procedure (Flag1-Sem)
5296 ------------------------------------------
5297 -- 6.1 Abstract Subprogram Declaration --
5298 ------------------------------------------
5300 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
5301 -- SUBPROGRAM_SPECIFICATION is abstract
5302 -- [ASPECT_SPECIFICATIONS];
5304 -- N_Abstract_Subprogram_Declaration
5305 -- Sloc points to ABSTRACT
5306 -- Specification (Node1)
5308 -----------------------------------
5309 -- 6.1 Subprogram Specification --
5310 -----------------------------------
5312 -- SUBPROGRAM_SPECIFICATION ::=
5313 -- [[not] overriding]
5314 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
5315 -- | [[not] overriding]
5316 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
5318 -- Note: there are no separate nodes for the profiles, instead the
5319 -- information appears directly in the following nodes.
5321 -- N_Function_Specification
5322 -- Sloc points to FUNCTION
5323 -- Defining_Unit_Name (Node1) (the designator)
5324 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5325 -- Null_Exclusion_Present (Flag11)
5326 -- Result_Definition (Node4) for result subtype
5327 -- Generic_Parent (Node5-Sem)
5328 -- Must_Override (Flag14) set if overriding indicator present
5329 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5331 -- N_Procedure_Specification
5332 -- Sloc points to PROCEDURE
5333 -- Defining_Unit_Name (Node1)
5334 -- Null_Statement (Node2-Sem) NULL statement for body, if Null_Present
5335 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5336 -- Generic_Parent (Node5-Sem)
5337 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
5338 -- Must_Override (Flag14) set if overriding indicator present
5339 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5341 -- Note: overriding indicator is an Ada 2005 feature
5343 ---------------------
5344 -- 6.1 Designator --
5345 ---------------------
5347 -- DESIGNATOR ::=
5348 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
5350 -- Designators that are simply identifiers or operator symbols appear
5351 -- directly in the tree in this form. The following node is used only
5352 -- in the case where the designator has a parent unit name component.
5354 -- N_Designator
5355 -- Sloc points to period
5356 -- Name (Node2) holds the parent unit name
5357 -- Identifier (Node1)
5359 -- Note: Name is always non-Empty, since this node is only used for the
5360 -- case where a parent library unit package name is present.
5362 -- Note that the identifier can also be an operator symbol here
5364 ------------------------------
5365 -- 6.1 Defining Designator --
5366 ------------------------------
5368 -- DEFINING_DESIGNATOR ::=
5369 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
5371 -------------------------------------
5372 -- 6.1 Defining Program Unit Name --
5373 -------------------------------------
5375 -- DEFINING_PROGRAM_UNIT_NAME ::=
5376 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
5378 -- The parent unit name is present only in the case of a child unit name
5379 -- (permissible only for Ada 95 for a library level unit, i.e. a unit
5380 -- at scope level one). If no such name is present, the defining program
5381 -- unit name is represented simply as the defining identifier. In the
5382 -- child unit case, the following node is used to represent the child
5383 -- unit name.
5385 -- N_Defining_Program_Unit_Name
5386 -- Sloc points to period
5387 -- Name (Node2) holds the parent unit name
5388 -- Defining_Identifier (Node1)
5390 -- Note: Name is always non-Empty, since this node is only used for the
5391 -- case where a parent unit name is present.
5393 --------------------------
5394 -- 6.1 Operator Symbol --
5395 --------------------------
5397 -- OPERATOR_SYMBOL ::= STRING_LITERAL
5399 -- Note: the fields of the N_Operator_Symbol node are laid out to match
5400 -- the corresponding fields of an N_Character_Literal node. This allows
5401 -- easy conversion of the operator symbol node into a character literal
5402 -- node in the case where a string constant of the form of an operator
5403 -- symbol is scanned out as such, but turns out semantically to be a
5404 -- string literal that is not an operator. For details see Sinfo.CN.
5405 -- Change_Operator_Symbol_To_String_Literal.
5407 -- N_Operator_Symbol
5408 -- Sloc points to literal
5409 -- Chars (Name1) contains the Name_Id for the operator symbol
5410 -- Strval (Str3) Id of string value. This is used if the operator
5411 -- symbol turns out to be a normal string after all.
5412 -- Entity (Node4-Sem)
5413 -- Associated_Node (Node4-Sem)
5414 -- Etype (Node5-Sem)
5415 -- Has_Private_View (Flag11-Sem) set in generic units
5417 -- Note: the Strval field may be set to No_String for generated
5418 -- operator symbols that are known not to be string literals
5419 -- semantically.
5421 -----------------------------------
5422 -- 6.1 Defining Operator Symbol --
5423 -----------------------------------
5425 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
5427 -- A defining operator symbol is an entity, which has additional
5428 -- fields depending on the setting of the Ekind field. These
5429 -- additional fields are defined (and access subprograms declared)
5430 -- in package Einfo.
5432 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
5433 -- are deliberately layed out to match the layout of fields in an
5434 -- ordinary N_Operator_Symbol node allowing for easy alteration of
5435 -- an operator symbol node into a defining operator symbol node.
5436 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
5437 -- for further details.
5439 -- N_Defining_Operator_Symbol
5440 -- Sloc points to literal
5441 -- Chars (Name1) contains the Name_Id for the operator symbol
5442 -- Next_Entity (Node2-Sem)
5443 -- Scope (Node3-Sem)
5444 -- Etype (Node5-Sem)
5446 ----------------------------
5447 -- 6.1 Parameter Profile --
5448 ----------------------------
5450 -- PARAMETER_PROFILE ::= [FORMAL_PART]
5452 ---------------------------------------
5453 -- 6.1 Parameter and Result Profile --
5454 ---------------------------------------
5456 -- PARAMETER_AND_RESULT_PROFILE ::=
5457 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
5458 -- | [FORMAL_PART] return ACCESS_DEFINITION
5460 -- There is no explicit node in the tree for a parameter and result
5461 -- profile. Instead the information appears directly in the parent.
5463 ----------------------
5464 -- 6.1 Formal Part --
5465 ----------------------
5467 -- FORMAL_PART ::=
5468 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
5470 ----------------------------------
5471 -- 6.1 Parameter Specification --
5472 ----------------------------------
5474 -- PARAMETER_SPECIFICATION ::=
5475 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
5476 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
5477 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
5478 -- [:= DEFAULT_EXPRESSION]
5480 -- Although the syntax allows multiple identifiers in the list, the
5481 -- semantics is as though successive specifications were given with
5482 -- identical type definition and expression components. To simplify
5483 -- semantic processing, the parser represents a multiple declaration
5484 -- case as a sequence of single Specifications, using the More_Ids and
5485 -- Prev_Ids flags to preserve the original source form as described
5486 -- in the section on "Handling of Defining Identifier Lists".
5488 -- ALIASED can only be present in Ada 2012 mode
5490 -- N_Parameter_Specification
5491 -- Sloc points to first identifier
5492 -- Defining_Identifier (Node1)
5493 -- Aliased_Present (Flag4)
5494 -- In_Present (Flag15)
5495 -- Out_Present (Flag17)
5496 -- Null_Exclusion_Present (Flag11)
5497 -- Parameter_Type (Node2) subtype mark or access definition
5498 -- Expression (Node3) (set to Empty if no default expression present)
5499 -- Do_Accessibility_Check (Flag13-Sem)
5500 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5501 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5502 -- Default_Expression (Node5-Sem)
5504 ---------------
5505 -- 6.1 Mode --
5506 ---------------
5508 -- MODE ::= [in] | in out | out
5510 -- There is no explicit node in the tree for the Mode. Instead the
5511 -- In_Present and Out_Present flags are set in the parent node to
5512 -- record the presence of keywords specifying the mode.
5514 --------------------------
5515 -- 6.3 Subprogram Body --
5516 --------------------------
5518 -- SUBPROGRAM_BODY ::=
5519 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5520 -- DECLARATIVE_PART
5521 -- begin
5522 -- HANDLED_SEQUENCE_OF_STATEMENTS
5523 -- end [DESIGNATOR];
5525 -- N_Subprogram_Body
5526 -- Sloc points to FUNCTION or PROCEDURE
5527 -- Specification (Node1)
5528 -- Declarations (List2)
5529 -- Handled_Statement_Sequence (Node4)
5530 -- Activation_Chain_Entity (Node3-Sem)
5531 -- Corresponding_Spec (Node5-Sem)
5532 -- Acts_As_Spec (Flag4-Sem)
5533 -- Bad_Is_Detected (Flag15) used only by parser
5534 -- Do_Storage_Check (Flag17-Sem)
5535 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5536 -- Is_Entry_Barrier_Function (Flag8-Sem)
5537 -- Is_Protected_Subprogram_Body (Flag7-Sem)
5538 -- Is_Task_Body_Procedure (Flag1-Sem)
5539 -- Is_Task_Master (Flag5-Sem)
5540 -- Was_Attribute_Reference (Flag2-Sem)
5541 -- Was_Expression_Function (Flag18-Sem)
5542 -- Was_Originally_Stub (Flag13-Sem)
5544 -----------------------------------
5545 -- 6.4 Procedure Call Statement --
5546 -----------------------------------
5548 -- PROCEDURE_CALL_STATEMENT ::=
5549 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5551 -- Note: the reason that a procedure call has expression fields is that
5552 -- it semantically resembles an expression, e.g. overloading is allowed
5553 -- and a type is concocted for semantic processing purposes. Certain of
5554 -- these fields, such as Parens are not relevant, but it is easier to
5555 -- just supply all of them together.
5557 -- N_Procedure_Call_Statement
5558 -- Sloc points to first token of name or prefix
5559 -- Name (Node2) stores name or prefix
5560 -- Parameter_Associations (List3) (set to No_List if no
5561 -- actual parameter part)
5562 -- First_Named_Actual (Node4-Sem)
5563 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5564 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
5565 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
5566 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
5567 -- No_Elaboration_Check (Flag4-Sem)
5568 -- Do_Tag_Check (Flag13-Sem)
5569 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
5570 -- plus fields for expression
5572 -- If any IN parameter requires a range check, then the corresponding
5573 -- argument expression has the Do_Range_Check flag set, and the range
5574 -- check is done against the formal type. Note that this argument
5575 -- expression may appear directly in the Parameter_Associations list,
5576 -- or may be a descendant of an N_Parameter_Association node that
5577 -- appears in this list.
5579 ------------------------
5580 -- 6.4 Function Call --
5581 ------------------------
5583 -- FUNCTION_CALL ::=
5584 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5586 -- Note: the parser may generate an indexed component node or simply
5587 -- a name node instead of a function call node. The semantic pass must
5588 -- correct this misidentification.
5590 -- N_Function_Call
5591 -- Sloc points to first token of name or prefix
5592 -- Name (Node2) stores name or prefix
5593 -- Parameter_Associations (List3) (set to No_List if no
5594 -- actual parameter part)
5595 -- First_Named_Actual (Node4-Sem)
5596 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5597 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
5598 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
5599 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
5600 -- No_Elaboration_Check (Flag4-Sem)
5601 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5602 -- Do_Tag_Check (Flag13-Sem)
5603 -- No_Side_Effect_Removal (Flag17-Sem)
5604 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
5605 -- plus fields for expression
5607 --------------------------------
5608 -- 6.4 Actual Parameter Part --
5609 --------------------------------
5611 -- ACTUAL_PARAMETER_PART ::=
5612 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5614 --------------------------------
5615 -- 6.4 Parameter Association --
5616 --------------------------------
5618 -- PARAMETER_ASSOCIATION ::=
5619 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5621 -- Note: the N_Parameter_Association node is built only if a formal
5622 -- parameter selector name is present, otherwise the parameter
5623 -- association appears in the tree simply as the node for the
5624 -- explicit actual parameter.
5626 -- N_Parameter_Association
5627 -- Sloc points to formal parameter
5628 -- Selector_Name (Node2) (always non-Empty)
5629 -- Explicit_Actual_Parameter (Node3)
5630 -- Next_Named_Actual (Node4-Sem)
5631 -- Is_Accessibility_Actual (Flag13-Sem)
5633 ---------------------------
5634 -- 6.4 Actual Parameter --
5635 ---------------------------
5637 -- EXPLICIT_ACTUAL_PARAMETER ::=
5638 -- EXPRESSION | variable_NAME | REDUCTION_EXPRESSION_PARAMETER
5640 ---------------------------
5641 -- 6.5 Return Statement --
5642 ---------------------------
5644 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5646 -- EXTENDED_RETURN_STATEMENT ::=
5647 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5648 -- [:= EXPRESSION] [do
5649 -- HANDLED_SEQUENCE_OF_STATEMENTS
5650 -- end return];
5652 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5654 -- The term "return statement" is defined in 6.5 to mean either a
5655 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5656 -- the use of this term, since it used to mean someting else in earlier
5657 -- versions of Ada.
5659 -- N_Simple_Return_Statement
5660 -- Sloc points to RETURN
5661 -- Return_Statement_Entity (Node5-Sem)
5662 -- Expression (Node3) (set to Empty if no expression present)
5663 -- Storage_Pool (Node1-Sem)
5664 -- Procedure_To_Call (Node2-Sem)
5665 -- Do_Tag_Check (Flag13-Sem)
5666 -- By_Ref (Flag5-Sem)
5667 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5669 -- Note: Return_Statement_Entity points to an E_Return_Statement
5671 -- If a range check is required, then Do_Range_Check is set on the
5672 -- Expression. The check is against the return subtype of the function.
5674 -- N_Extended_Return_Statement
5675 -- Sloc points to RETURN
5676 -- Return_Statement_Entity (Node5-Sem)
5677 -- Return_Object_Declarations (List3)
5678 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5679 -- Storage_Pool (Node1-Sem)
5680 -- Procedure_To_Call (Node2-Sem)
5681 -- Do_Tag_Check (Flag13-Sem)
5682 -- By_Ref (Flag5-Sem)
5684 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5686 -- Note that Return_Object_Declarations is a list containing the
5687 -- N_Object_Declaration -- see comment on this field above.
5689 -- The declared object will have Is_Return_Object = True.
5691 -- There is no such syntactic category as return_object_declaration
5692 -- in the RM. Return_Object_Declarations represents this portion of
5693 -- the syntax for EXTENDED_RETURN_STATEMENT:
5694 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5695 -- [:= EXPRESSION]
5697 -- There are two entities associated with an extended_return_statement:
5698 -- the Return_Statement_Entity represents the statement itself,
5699 -- and the Defining_Identifier of the Object_Declaration in
5700 -- Return_Object_Declarations represents the object being
5701 -- returned. N_Simple_Return_Statement has only the former.
5703 ------------------------------
5704 -- 6.8 Expression Function --
5705 ------------------------------
5707 -- EXPRESSION_FUNCTION ::=
5708 -- FUNCTION SPECIFICATION IS (EXPRESSION)
5709 -- [ASPECT_SPECIFICATIONS];
5711 -- N_Expression_Function
5712 -- Sloc points to FUNCTION
5713 -- Specification (Node1)
5714 -- Expression (Node3)
5715 -- Corresponding_Spec (Node5-Sem)
5717 ------------------------------
5718 -- 7.1 Package Declaration --
5719 ------------------------------
5721 -- PACKAGE_DECLARATION ::=
5722 -- PACKAGE_SPECIFICATION;
5724 -- Note: the activation chain entity for a package spec is used for
5725 -- all tasks declared in the package spec, or in the package body.
5727 -- N_Package_Declaration
5728 -- Sloc points to PACKAGE
5729 -- Specification (Node1)
5730 -- Corresponding_Body (Node5-Sem)
5731 -- Parent_Spec (Node4-Sem)
5732 -- Activation_Chain_Entity (Node3-Sem)
5734 --------------------------------
5735 -- 7.1 Package Specification --
5736 --------------------------------
5738 -- PACKAGE_SPECIFICATION ::=
5739 -- package DEFINING_PROGRAM_UNIT_NAME
5740 -- [ASPECT_SPECIFICATIONS]
5741 -- is
5742 -- {BASIC_DECLARATIVE_ITEM}
5743 -- [private
5744 -- {BASIC_DECLARATIVE_ITEM}]
5745 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5747 -- N_Package_Specification
5748 -- Sloc points to PACKAGE
5749 -- Defining_Unit_Name (Node1)
5750 -- Visible_Declarations (List2)
5751 -- Private_Declarations (List3) (set to No_List if no private
5752 -- part present)
5753 -- End_Label (Node4)
5754 -- Generic_Parent (Node5-Sem)
5755 -- Limited_View_Installed (Flag18-Sem)
5757 -----------------------
5758 -- 7.1 Package Body --
5759 -----------------------
5761 -- PACKAGE_BODY ::=
5762 -- package body DEFINING_PROGRAM_UNIT_NAME
5763 -- [ASPECT_SPECIFICATIONS]
5764 -- is
5765 -- DECLARATIVE_PART
5766 -- [begin
5767 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5768 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5770 -- N_Package_Body
5771 -- Sloc points to PACKAGE
5772 -- Defining_Unit_Name (Node1)
5773 -- Declarations (List2)
5774 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5775 -- Corresponding_Spec (Node5-Sem)
5776 -- Was_Originally_Stub (Flag13-Sem)
5778 -- Note: if a source level package does not contain a handled sequence
5779 -- of statements, then the parser supplies a dummy one with a null
5780 -- sequence of statements. Comes_From_Source will be False in this
5781 -- constructed sequence. The reason we need this is for the End_Label
5782 -- field in the HSS.
5784 -----------------------------------
5785 -- 7.4 Private Type Declaration --
5786 -----------------------------------
5788 -- PRIVATE_TYPE_DECLARATION ::=
5789 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5790 -- is [[abstract] tagged] [limited] private
5791 -- [ASPECT_SPECIFICATIONS];
5793 -- Note: TAGGED is not permitted in Ada 83 mode
5795 -- N_Private_Type_Declaration
5796 -- Sloc points to TYPE
5797 -- Defining_Identifier (Node1)
5798 -- Discriminant_Specifications (List4) (set to No_List if no
5799 -- discriminant part)
5800 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5801 -- Abstract_Present (Flag4)
5802 -- Tagged_Present (Flag15)
5803 -- Limited_Present (Flag17)
5805 ----------------------------------------
5806 -- 7.4 Private Extension Declaration --
5807 ----------------------------------------
5809 -- PRIVATE_EXTENSION_DECLARATION ::=
5810 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5811 -- [abstract] [limited | synchronized]
5812 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5813 -- with private [ASPECT_SPECIFICATIONS];
5815 -- Note: LIMITED, and private extension declarations are not allowed
5816 -- in Ada 83 mode.
5818 -- N_Private_Extension_Declaration
5819 -- Sloc points to TYPE
5820 -- Defining_Identifier (Node1)
5821 -- Uninitialized_Variable (Node3-Sem)
5822 -- Discriminant_Specifications (List4) (set to No_List if no
5823 -- discriminant part)
5824 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5825 -- Abstract_Present (Flag4)
5826 -- Limited_Present (Flag17)
5827 -- Synchronized_Present (Flag7)
5828 -- Subtype_Indication (Node5)
5829 -- Interface_List (List2) (set to No_List if none)
5831 ---------------------
5832 -- 8.4 Use Clause --
5833 ---------------------
5835 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5837 -----------------------------
5838 -- 8.4 Use Package Clause --
5839 -----------------------------
5841 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5843 -- N_Use_Package_Clause
5844 -- Sloc points to USE
5845 -- Prev_Use_Clause (Node1-Sem)
5846 -- Name (Node2)
5847 -- Next_Use_Clause (Node3-Sem)
5848 -- Associated_Node (Node4-Sem)
5849 -- Hidden_By_Use_Clause (Elist5-Sem)
5850 -- Is_Effective_Use_Clause (Flag1)
5851 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5852 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5854 --------------------------
5855 -- 8.4 Use Type Clause --
5856 --------------------------
5858 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5860 -- Note: use type clause is not permitted in Ada 83 mode
5862 -- Note: the ALL keyword can appear only in Ada 2012 mode
5864 -- N_Use_Type_Clause
5865 -- Sloc points to USE
5866 -- Prev_Use_Clause (Node1-Sem)
5867 -- Used_Operations (Elist2-Sem)
5868 -- Next_Use_Clause (Node3-Sem)
5869 -- Subtype_Mark (Node4)
5870 -- Hidden_By_Use_Clause (Elist5-Sem)
5871 -- Is_Effective_Use_Clause (Flag1)
5872 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5873 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5874 -- All_Present (Flag15)
5876 -------------------------------
5877 -- 8.5 Renaming Declaration --
5878 -------------------------------
5880 -- RENAMING_DECLARATION ::=
5881 -- OBJECT_RENAMING_DECLARATION
5882 -- | EXCEPTION_RENAMING_DECLARATION
5883 -- | PACKAGE_RENAMING_DECLARATION
5884 -- | SUBPROGRAM_RENAMING_DECLARATION
5885 -- | GENERIC_RENAMING_DECLARATION
5887 --------------------------------------
5888 -- 8.5 Object Renaming Declaration --
5889 --------------------------------------
5891 -- OBJECT_RENAMING_DECLARATION ::=
5892 -- DEFINING_IDENTIFIER :
5893 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5894 -- [ASPECT_SPECIFICATIONS];
5895 -- | DEFINING_IDENTIFIER :
5896 -- ACCESS_DEFINITION renames object_NAME
5897 -- [ASPECT_SPECIFICATIONS];
5899 -- Note: Access_Definition is an optional field that gives support to
5900 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5901 -- Subtype_Indication field or else the Access_Definition field.
5903 -- N_Object_Renaming_Declaration
5904 -- Sloc points to first identifier
5905 -- Defining_Identifier (Node1)
5906 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5907 -- Subtype_Mark (Node4) (set to Empty if not present)
5908 -- Access_Definition (Node3) (set to Empty if not present)
5909 -- Name (Node2)
5910 -- Corresponding_Generic_Association (Node5-Sem)
5912 -----------------------------------------
5913 -- 8.5 Exception Renaming Declaration --
5914 -----------------------------------------
5916 -- EXCEPTION_RENAMING_DECLARATION ::=
5917 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5918 -- [ASPECT_SPECIFICATIONS];
5920 -- N_Exception_Renaming_Declaration
5921 -- Sloc points to first identifier
5922 -- Defining_Identifier (Node1)
5923 -- Name (Node2)
5925 ---------------------------------------
5926 -- 8.5 Package Renaming Declaration --
5927 ---------------------------------------
5929 -- PACKAGE_RENAMING_DECLARATION ::=
5930 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5931 -- [ASPECT_SPECIFICATIONS];
5933 -- N_Package_Renaming_Declaration
5934 -- Sloc points to PACKAGE
5935 -- Defining_Unit_Name (Node1)
5936 -- Name (Node2)
5937 -- Parent_Spec (Node4-Sem)
5939 ------------------------------------------
5940 -- 8.5 Subprogram Renaming Declaration --
5941 ------------------------------------------
5943 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5944 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5945 -- [ASPECT_SPECIFICATIONS];
5947 -- N_Subprogram_Renaming_Declaration
5948 -- Sloc points to RENAMES
5949 -- Specification (Node1)
5950 -- Name (Node2)
5951 -- Parent_Spec (Node4-Sem)
5952 -- Corresponding_Spec (Node5-Sem)
5953 -- Corresponding_Formal_Spec (Node3-Sem)
5954 -- From_Default (Flag6-Sem)
5956 -----------------------------------------
5957 -- 8.5.5 Generic Renaming Declaration --
5958 -----------------------------------------
5960 -- GENERIC_RENAMING_DECLARATION ::=
5961 -- generic package DEFINING_PROGRAM_UNIT_NAME
5962 -- renames generic_package_NAME
5963 -- [ASPECT_SPECIFICATIONS];
5964 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5965 -- renames generic_procedure_NAME
5966 -- [ASPECT_SPECIFICATIONS];
5967 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5968 -- renames generic_function_NAME
5969 -- [ASPECT_SPECIFICATIONS];
5971 -- N_Generic_Package_Renaming_Declaration
5972 -- Sloc points to GENERIC
5973 -- Defining_Unit_Name (Node1)
5974 -- Name (Node2)
5975 -- Parent_Spec (Node4-Sem)
5977 -- N_Generic_Procedure_Renaming_Declaration
5978 -- Sloc points to GENERIC
5979 -- Defining_Unit_Name (Node1)
5980 -- Name (Node2)
5981 -- Parent_Spec (Node4-Sem)
5983 -- N_Generic_Function_Renaming_Declaration
5984 -- Sloc points to GENERIC
5985 -- Defining_Unit_Name (Node1)
5986 -- Name (Node2)
5987 -- Parent_Spec (Node4-Sem)
5989 --------------------------------
5990 -- 9.1 Task Type Declaration --
5991 --------------------------------
5993 -- TASK_TYPE_DECLARATION ::=
5994 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5995 -- [ASPECT_SPECIFICATIONS]
5996 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5998 -- N_Task_Type_Declaration
5999 -- Sloc points to TASK
6000 -- Defining_Identifier (Node1)
6001 -- Discriminant_Specifications (List4) (set to No_List if no
6002 -- discriminant part)
6003 -- Interface_List (List2) (set to No_List if none)
6004 -- Task_Definition (Node3) (set to Empty if not present)
6005 -- Corresponding_Body (Node5-Sem)
6007 ----------------------------------
6008 -- 9.1 Single Task Declaration --
6009 ----------------------------------
6011 -- SINGLE_TASK_DECLARATION ::=
6012 -- task DEFINING_IDENTIFIER
6013 -- [ASPECT_SPECIFICATIONS]
6014 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
6016 -- N_Single_Task_Declaration
6017 -- Sloc points to TASK
6018 -- Defining_Identifier (Node1)
6019 -- Interface_List (List2) (set to No_List if none)
6020 -- Task_Definition (Node3) (set to Empty if not present)
6022 --------------------------
6023 -- 9.1 Task Definition --
6024 --------------------------
6026 -- TASK_DEFINITION ::=
6027 -- {TASK_ITEM}
6028 -- [private
6029 -- {TASK_ITEM}]
6030 -- end [task_IDENTIFIER]
6032 -- Note: as a result of semantic analysis, the list of task items can
6033 -- include implicit type declarations resulting from entry families.
6035 -- N_Task_Definition
6036 -- Sloc points to first token of task definition
6037 -- Visible_Declarations (List2)
6038 -- Private_Declarations (List3) (set to No_List if no private part)
6039 -- End_Label (Node4)
6040 -- Has_Storage_Size_Pragma (Flag5-Sem)
6041 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
6043 --------------------
6044 -- 9.1 Task Item --
6045 --------------------
6047 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
6049 --------------------
6050 -- 9.1 Task Body --
6051 --------------------
6053 -- TASK_BODY ::=
6054 -- task body task_DEFINING_IDENTIFIER
6055 -- [ASPECT_SPECIFICATIONS]
6056 -- is
6057 -- DECLARATIVE_PART
6058 -- begin
6059 -- HANDLED_SEQUENCE_OF_STATEMENTS
6060 -- end [task_IDENTIFIER];
6062 -- Gigi restriction: This node never appears
6064 -- N_Task_Body
6065 -- Sloc points to TASK
6066 -- Defining_Identifier (Node1)
6067 -- Declarations (List2)
6068 -- Handled_Statement_Sequence (Node4)
6069 -- Is_Task_Master (Flag5-Sem)
6070 -- Activation_Chain_Entity (Node3-Sem)
6071 -- Corresponding_Spec (Node5-Sem)
6072 -- Was_Originally_Stub (Flag13-Sem)
6074 -------------------------------------
6075 -- 9.4 Protected Type Declaration --
6076 -------------------------------------
6078 -- PROTECTED_TYPE_DECLARATION ::=
6079 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
6080 -- [ASPECT_SPECIFICATIONS]
6081 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
6083 -- Note: protected type declarations are not permitted in Ada 83 mode
6085 -- N_Protected_Type_Declaration
6086 -- Sloc points to PROTECTED
6087 -- Defining_Identifier (Node1)
6088 -- Discriminant_Specifications (List4) (set to No_List if no
6089 -- discriminant part)
6090 -- Interface_List (List2) (set to No_List if none)
6091 -- Protected_Definition (Node3)
6092 -- Corresponding_Body (Node5-Sem)
6094 ---------------------------------------
6095 -- 9.4 Single Protected Declaration --
6096 ---------------------------------------
6098 -- SINGLE_PROTECTED_DECLARATION ::=
6099 -- protected DEFINING_IDENTIFIER
6100 -- [ASPECT_SPECIFICATIONS]
6101 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
6103 -- Note: single protected declarations are not allowed in Ada 83 mode
6105 -- N_Single_Protected_Declaration
6106 -- Sloc points to PROTECTED
6107 -- Defining_Identifier (Node1)
6108 -- Interface_List (List2) (set to No_List if none)
6109 -- Protected_Definition (Node3)
6111 -------------------------------
6112 -- 9.4 Protected Definition --
6113 -------------------------------
6115 -- PROTECTED_DEFINITION ::=
6116 -- {PROTECTED_OPERATION_DECLARATION}
6117 -- [private
6118 -- {PROTECTED_ELEMENT_DECLARATION}]
6119 -- end [protected_IDENTIFIER]
6121 -- N_Protected_Definition
6122 -- Sloc points to first token of protected definition
6123 -- Visible_Declarations (List2)
6124 -- Private_Declarations (List3) (set to No_List if no private part)
6125 -- End_Label (Node4)
6127 ------------------------------------------
6128 -- 9.4 Protected Operation Declaration --
6129 ------------------------------------------
6131 -- PROTECTED_OPERATION_DECLARATION ::=
6132 -- SUBPROGRAM_DECLARATION
6133 -- | ENTRY_DECLARATION
6134 -- | REPRESENTATION_CLAUSE
6136 ----------------------------------------
6137 -- 9.4 Protected Element Declaration --
6138 ----------------------------------------
6140 -- PROTECTED_ELEMENT_DECLARATION ::=
6141 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
6143 -------------------------
6144 -- 9.4 Protected Body --
6145 -------------------------
6147 -- PROTECTED_BODY ::=
6148 -- protected body DEFINING_IDENTIFIER
6149 -- [ASPECT_SPECIFICATIONS];
6150 -- is
6151 -- {PROTECTED_OPERATION_ITEM}
6152 -- end [protected_IDENTIFIER];
6154 -- Note: protected bodies are not allowed in Ada 83 mode
6156 -- Gigi restriction: This node never appears
6158 -- N_Protected_Body
6159 -- Sloc points to PROTECTED
6160 -- Defining_Identifier (Node1)
6161 -- Declarations (List2) protected operation items (and pragmas)
6162 -- End_Label (Node4)
6163 -- Corresponding_Spec (Node5-Sem)
6164 -- Was_Originally_Stub (Flag13-Sem)
6166 -----------------------------------
6167 -- 9.4 Protected Operation Item --
6168 -----------------------------------
6170 -- PROTECTED_OPERATION_ITEM ::=
6171 -- SUBPROGRAM_DECLARATION
6172 -- | SUBPROGRAM_BODY
6173 -- | ENTRY_BODY
6174 -- | REPRESENTATION_CLAUSE
6176 ------------------------------
6177 -- 9.5.2 Entry Declaration --
6178 ------------------------------
6180 -- ENTRY_DECLARATION ::=
6181 -- [[not] overriding]
6182 -- entry DEFINING_IDENTIFIER
6183 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
6184 -- [ASPECT_SPECIFICATIONS];
6186 -- N_Entry_Declaration
6187 -- Sloc points to ENTRY
6188 -- Defining_Identifier (Node1)
6189 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
6190 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6191 -- Corresponding_Body (Node5-Sem)
6192 -- Must_Override (Flag14) set if overriding indicator present
6193 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6195 -- Note: overriding indicator is an Ada 2005 feature
6197 -----------------------------
6198 -- 9.5.2 Accept statement --
6199 -----------------------------
6201 -- ACCEPT_STATEMENT ::=
6202 -- accept entry_DIRECT_NAME
6203 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
6204 -- HANDLED_SEQUENCE_OF_STATEMENTS
6205 -- end [entry_IDENTIFIER]];
6207 -- Gigi restriction: This node never appears
6209 -- Note: there are no explicit declarations allowed in an accept
6210 -- statement. However, the implicit declarations for any statement
6211 -- identifiers (labels and block/loop identifiers) are declarations
6212 -- that belong logically to the accept statement, and that is why
6213 -- there is a Declarations field in this node.
6215 -- N_Accept_Statement
6216 -- Sloc points to ACCEPT
6217 -- Entry_Direct_Name (Node1)
6218 -- Entry_Index (Node5) (set to Empty if not present)
6219 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6220 -- Handled_Statement_Sequence (Node4)
6221 -- Declarations (List2) (set to No_List if no declarations)
6223 ------------------------
6224 -- 9.5.2 Entry Index --
6225 ------------------------
6227 -- ENTRY_INDEX ::= EXPRESSION
6229 -----------------------
6230 -- 9.5.2 Entry Body --
6231 -----------------------
6233 -- ENTRY_BODY ::=
6234 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
6235 -- DECLARATIVE_PART
6236 -- begin
6237 -- HANDLED_SEQUENCE_OF_STATEMENTS
6238 -- end [entry_IDENTIFIER];
6240 -- ENTRY_BARRIER ::= when CONDITION
6242 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
6243 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
6244 -- too full (it would otherwise have too many fields)
6246 -- Gigi restriction: This node never appears
6248 -- N_Entry_Body
6249 -- Sloc points to ENTRY
6250 -- Defining_Identifier (Node1)
6251 -- Entry_Body_Formal_Part (Node5)
6252 -- Declarations (List2)
6253 -- Handled_Statement_Sequence (Node4)
6254 -- Activation_Chain_Entity (Node3-Sem)
6256 -----------------------------------
6257 -- 9.5.2 Entry Body Formal Part --
6258 -----------------------------------
6260 -- ENTRY_BODY_FORMAL_PART ::=
6261 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
6263 -- Note that an entry body formal part node is present even if it is
6264 -- empty. This reflects the grammar, in which it is the components of
6265 -- the entry body formal part that are optional, not the entry body
6266 -- formal part itself. Also this means that the barrier condition
6267 -- always has somewhere to be stored.
6269 -- Gigi restriction: This node never appears
6271 -- N_Entry_Body_Formal_Part
6272 -- Sloc points to first token
6273 -- Entry_Index_Specification (Node4) (set to Empty if not present)
6274 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6275 -- Condition (Node1) from entry barrier of entry body
6277 --------------------------
6278 -- 9.5.2 Entry Barrier --
6279 --------------------------
6281 -- ENTRY_BARRIER ::= when CONDITION
6283 --------------------------------------
6284 -- 9.5.2 Entry Index Specification --
6285 --------------------------------------
6287 -- ENTRY_INDEX_SPECIFICATION ::=
6288 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
6290 -- Gigi restriction: This node never appears
6292 -- N_Entry_Index_Specification
6293 -- Sloc points to FOR
6294 -- Defining_Identifier (Node1)
6295 -- Discrete_Subtype_Definition (Node4)
6297 ---------------------------------
6298 -- 9.5.3 Entry Call Statement --
6299 ---------------------------------
6301 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
6303 -- The parser may generate a procedure call for this construct. The
6304 -- semantic pass must correct this misidentification where needed.
6306 -- Gigi restriction: This node never appears
6308 -- N_Entry_Call_Statement
6309 -- Sloc points to first token of name
6310 -- Name (Node2)
6311 -- Parameter_Associations (List3) (set to No_List if no
6312 -- actual parameter part)
6313 -- First_Named_Actual (Node4-Sem)
6314 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
6315 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
6316 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
6318 ------------------------------
6319 -- 9.5.4 Requeue Statement --
6320 ------------------------------
6322 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
6324 -- Note: requeue statements are not permitted in Ada 83 mode
6326 -- Gigi restriction: This node never appears
6328 -- N_Requeue_Statement
6329 -- Sloc points to REQUEUE
6330 -- Name (Node2)
6331 -- Abort_Present (Flag15)
6332 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
6333 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
6334 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
6336 --------------------------
6337 -- 9.6 Delay Statement --
6338 --------------------------
6340 -- DELAY_STATEMENT ::=
6341 -- DELAY_UNTIL_STATEMENT
6342 -- | DELAY_RELATIVE_STATEMENT
6344 --------------------------------
6345 -- 9.6 Delay Until Statement --
6346 --------------------------------
6348 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
6350 -- Note: delay until statements are not permitted in Ada 83 mode
6352 -- Gigi restriction: This node never appears
6354 -- N_Delay_Until_Statement
6355 -- Sloc points to DELAY
6356 -- Expression (Node3)
6358 -----------------------------------
6359 -- 9.6 Delay Relative Statement --
6360 -----------------------------------
6362 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
6364 -- Gigi restriction: This node never appears
6366 -- N_Delay_Relative_Statement
6367 -- Sloc points to DELAY
6368 -- Expression (Node3)
6370 ---------------------------
6371 -- 9.7 Select Statement --
6372 ---------------------------
6374 -- SELECT_STATEMENT ::=
6375 -- SELECTIVE_ACCEPT
6376 -- | TIMED_ENTRY_CALL
6377 -- | CONDITIONAL_ENTRY_CALL
6378 -- | ASYNCHRONOUS_SELECT
6380 -----------------------------
6381 -- 9.7.1 Selective Accept --
6382 -----------------------------
6384 -- SELECTIVE_ACCEPT ::=
6385 -- select
6386 -- [GUARD]
6387 -- SELECT_ALTERNATIVE
6388 -- {or
6389 -- [GUARD]
6390 -- SELECT_ALTERNATIVE}
6391 -- [else
6392 -- SEQUENCE_OF_STATEMENTS]
6393 -- end select;
6395 -- Gigi restriction: This node never appears
6397 -- Note: the guard expression, if present, appears in the node for
6398 -- the select alternative.
6400 -- N_Selective_Accept
6401 -- Sloc points to SELECT
6402 -- Select_Alternatives (List1)
6403 -- Else_Statements (List4) (set to No_List if no else part)
6405 ------------------
6406 -- 9.7.1 Guard --
6407 ------------------
6409 -- GUARD ::= when CONDITION =>
6411 -- As noted above, the CONDITION that is part of a GUARD is included
6412 -- in the node for the select alternative for convenience.
6414 -------------------------------
6415 -- 9.7.1 Select Alternative --
6416 -------------------------------
6418 -- SELECT_ALTERNATIVE ::=
6419 -- ACCEPT_ALTERNATIVE
6420 -- | DELAY_ALTERNATIVE
6421 -- | TERMINATE_ALTERNATIVE
6423 -------------------------------
6424 -- 9.7.1 Accept Alternative --
6425 -------------------------------
6427 -- ACCEPT_ALTERNATIVE ::=
6428 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
6430 -- Gigi restriction: This node never appears
6432 -- N_Accept_Alternative
6433 -- Sloc points to ACCEPT
6434 -- Accept_Statement (Node2)
6435 -- Condition (Node1) from the guard (set to Empty if no guard present)
6436 -- Statements (List3) (set to Empty_List if no statements)
6437 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6438 -- Accept_Handler_Records (List5-Sem)
6440 ------------------------------
6441 -- 9.7.1 Delay Alternative --
6442 ------------------------------
6444 -- DELAY_ALTERNATIVE ::=
6445 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
6447 -- Gigi restriction: This node never appears
6449 -- N_Delay_Alternative
6450 -- Sloc points to DELAY
6451 -- Delay_Statement (Node2)
6452 -- Condition (Node1) from the guard (set to Empty if no guard present)
6453 -- Statements (List3) (set to Empty_List if no statements)
6454 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6456 ----------------------------------
6457 -- 9.7.1 Terminate Alternative --
6458 ----------------------------------
6460 -- TERMINATE_ALTERNATIVE ::= terminate;
6462 -- Gigi restriction: This node never appears
6464 -- N_Terminate_Alternative
6465 -- Sloc points to TERMINATE
6466 -- Condition (Node1) from the guard (set to Empty if no guard present)
6467 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6468 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
6470 -----------------------------
6471 -- 9.7.2 Timed Entry Call --
6472 -----------------------------
6474 -- TIMED_ENTRY_CALL ::=
6475 -- select
6476 -- ENTRY_CALL_ALTERNATIVE
6477 -- or
6478 -- DELAY_ALTERNATIVE
6479 -- end select;
6481 -- Gigi restriction: This node never appears
6483 -- N_Timed_Entry_Call
6484 -- Sloc points to SELECT
6485 -- Entry_Call_Alternative (Node1)
6486 -- Delay_Alternative (Node4)
6488 -----------------------------------
6489 -- 9.7.2 Entry Call Alternative --
6490 -----------------------------------
6492 -- ENTRY_CALL_ALTERNATIVE ::=
6493 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
6495 -- PROCEDURE_OR_ENTRY_CALL ::=
6496 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
6498 -- Gigi restriction: This node never appears
6500 -- N_Entry_Call_Alternative
6501 -- Sloc points to first token of entry call statement
6502 -- Entry_Call_Statement (Node1)
6503 -- Statements (List3) (set to Empty_List if no statements)
6504 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6506 -----------------------------------
6507 -- 9.7.3 Conditional Entry Call --
6508 -----------------------------------
6510 -- CONDITIONAL_ENTRY_CALL ::=
6511 -- select
6512 -- ENTRY_CALL_ALTERNATIVE
6513 -- else
6514 -- SEQUENCE_OF_STATEMENTS
6515 -- end select;
6517 -- Gigi restriction: This node never appears
6519 -- N_Conditional_Entry_Call
6520 -- Sloc points to SELECT
6521 -- Entry_Call_Alternative (Node1)
6522 -- Else_Statements (List4)
6524 --------------------------------
6525 -- 9.7.4 Asynchronous Select --
6526 --------------------------------
6528 -- ASYNCHRONOUS_SELECT ::=
6529 -- select
6530 -- TRIGGERING_ALTERNATIVE
6531 -- then abort
6532 -- ABORTABLE_PART
6533 -- end select;
6535 -- Note: asynchronous select is not permitted in Ada 83 mode
6537 -- Gigi restriction: This node never appears
6539 -- N_Asynchronous_Select
6540 -- Sloc points to SELECT
6541 -- Triggering_Alternative (Node1)
6542 -- Abortable_Part (Node2)
6544 -----------------------------------
6545 -- 9.7.4 Triggering Alternative --
6546 -----------------------------------
6548 -- TRIGGERING_ALTERNATIVE ::=
6549 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6551 -- Gigi restriction: This node never appears
6553 -- N_Triggering_Alternative
6554 -- Sloc points to first token of triggering statement
6555 -- Triggering_Statement (Node1)
6556 -- Statements (List3) (set to Empty_List if no statements)
6557 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6559 ---------------------------------
6560 -- 9.7.4 Triggering Statement --
6561 ---------------------------------
6563 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6565 ---------------------------
6566 -- 9.7.4 Abortable Part --
6567 ---------------------------
6569 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6571 -- Gigi restriction: This node never appears
6573 -- N_Abortable_Part
6574 -- Sloc points to ABORT
6575 -- Statements (List3)
6577 --------------------------
6578 -- 9.8 Abort Statement --
6579 --------------------------
6581 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6583 -- Gigi restriction: This node never appears
6585 -- N_Abort_Statement
6586 -- Sloc points to ABORT
6587 -- Names (List2)
6589 -------------------------
6590 -- 10.1.1 Compilation --
6591 -------------------------
6593 -- COMPILATION ::= {COMPILATION_UNIT}
6595 -- There is no explicit node in the tree for a compilation, since in
6596 -- general the compiler is processing only a single compilation unit
6597 -- at a time. It is possible to parse multiple units in syntax check
6598 -- only mode, but the trees are discarded in that case.
6600 ------------------------------
6601 -- 10.1.1 Compilation Unit --
6602 ------------------------------
6604 -- COMPILATION_UNIT ::=
6605 -- CONTEXT_CLAUSE LIBRARY_ITEM
6606 -- | CONTEXT_CLAUSE SUBUNIT
6608 -- The N_Compilation_Unit node itself represents the above syntax.
6609 -- However, there are two additional items not reflected in the above
6610 -- syntax. First we have the global declarations that are added by the
6611 -- code generator. These are outer level declarations (so they cannot
6612 -- be represented as being inside the units). An example is the wrapper
6613 -- subprograms that are created to do ABE checking. As always a list of
6614 -- declarations can contain actions as well (i.e. statements), and such
6615 -- statements are executed as part of the elaboration of the unit. Note
6616 -- that all such declarations are elaborated before the library unit.
6618 -- Similarly, certain actions need to be elaborated at the completion
6619 -- of elaboration of the library unit (notably the statement that sets
6620 -- the Boolean flag indicating that elaboration is complete).
6622 -- The third item not reflected in the syntax is pragmas that appear
6623 -- after the compilation unit. As always pragmas are a problem since
6624 -- they are not part of the formal syntax, but can be stuck into the
6625 -- source following a set of ad hoc rules, and we have to find an ad
6626 -- hoc way of sticking them into the tree. For pragmas that appear
6627 -- before the library unit, we just consider them to be part of the
6628 -- context clause, and pragmas can appear in the Context_Items list
6629 -- of the compilation unit. However, pragmas can also appear after
6630 -- the library item.
6632 -- To deal with all these problems, we create an auxiliary node for
6633 -- a compilation unit, referenced from the N_Compilation_Unit node,
6634 -- that contains these items.
6636 -- N_Compilation_Unit
6637 -- Sloc points to first token of defining unit name
6638 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6639 -- Context_Items (List1) context items and pragmas preceding unit
6640 -- Private_Present (Flag15) set if library unit has private keyword
6641 -- Unit (Node2) library item or subunit
6642 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6643 -- Has_No_Elaboration_Code (Flag17-Sem)
6644 -- Body_Required (Flag13-Sem) set for spec if body is required
6645 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6646 -- Context_Pending (Flag16-Sem)
6647 -- First_Inlined_Subprogram (Node3-Sem)
6648 -- Has_Pragma_Suppress_All (Flag14-Sem)
6650 -- N_Compilation_Unit_Aux
6651 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6652 -- Declarations (List2) (set to No_List if no global declarations)
6653 -- Actions (List1) (set to No_List if no actions)
6654 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6655 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6656 -- Default_Storage_Pool (Node3-Sem)
6658 --------------------------
6659 -- 10.1.1 Library Item --
6660 --------------------------
6662 -- LIBRARY_ITEM ::=
6663 -- [private] LIBRARY_UNIT_DECLARATION
6664 -- | LIBRARY_UNIT_BODY
6665 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6667 -- Note: PRIVATE is not allowed in Ada 83 mode
6669 -- There is no explicit node in the tree for library item, instead
6670 -- the declaration or body, and the flag for private if present,
6671 -- appear in the N_Compilation_Unit node.
6673 --------------------------------------
6674 -- 10.1.1 Library Unit Declaration --
6675 --------------------------------------
6677 -- LIBRARY_UNIT_DECLARATION ::=
6678 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6679 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6681 -----------------------------------------------
6682 -- 10.1.1 Library Unit Renaming Declaration --
6683 -----------------------------------------------
6685 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6686 -- PACKAGE_RENAMING_DECLARATION
6687 -- | GENERIC_RENAMING_DECLARATION
6688 -- | SUBPROGRAM_RENAMING_DECLARATION
6690 -------------------------------
6691 -- 10.1.1 Library unit body --
6692 -------------------------------
6694 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6696 ------------------------------
6697 -- 10.1.1 Parent Unit Name --
6698 ------------------------------
6700 -- PARENT_UNIT_NAME ::= NAME
6702 ----------------------------
6703 -- 10.1.2 Context clause --
6704 ----------------------------
6706 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6708 -- The context clause can include pragmas, and any pragmas that appear
6709 -- before the context clause proper (i.e. all configuration pragmas,
6710 -- also appear at the front of this list).
6712 --------------------------
6713 -- 10.1.2 Context_Item --
6714 --------------------------
6716 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6718 -------------------------
6719 -- 10.1.2 With clause --
6720 -------------------------
6722 -- WITH_CLAUSE ::=
6723 -- with library_unit_NAME {,library_unit_NAME};
6725 -- A separate With clause is built for each name, so that we have
6726 -- a Corresponding_Spec field for each with'ed spec. The flags
6727 -- First_Name and Last_Name are used to reconstruct the exact
6728 -- source form. When a list of names appears in one with clause,
6729 -- the first name in the list has First_Name set, and the last
6730 -- has Last_Name set. If the with clause has only one name, then
6731 -- both of the flags First_Name and Last_Name are set in this name.
6733 -- Note: in the case of implicit with's that are installed by the
6734 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6735 -- set to Standard_Location, but it is incorrect to test the Sloc
6736 -- to find out if a with clause is implicit, test the flag instead.
6738 -- N_With_Clause
6739 -- Sloc points to first token of library unit name
6740 -- Name (Node2)
6741 -- Private_Present (Flag15) set if with_clause has private keyword
6742 -- Limited_Present (Flag17) set if LIMITED is present
6743 -- Next_Implicit_With (Node3-Sem)
6744 -- Library_Unit (Node4-Sem)
6745 -- Corresponding_Spec (Node5-Sem)
6746 -- First_Name (Flag5) (set to True if first name or only one name)
6747 -- Last_Name (Flag6) (set to True if last name or only one name)
6748 -- Context_Installed (Flag13-Sem)
6749 -- Elaborate_Present (Flag4-Sem)
6750 -- Elaborate_All_Present (Flag14-Sem)
6751 -- Elaborate_All_Desirable (Flag9-Sem)
6752 -- Elaborate_Desirable (Flag11-Sem)
6753 -- Implicit_With (Flag16-Sem)
6754 -- Limited_View_Installed (Flag18-Sem)
6755 -- Parent_With (Flag1-Sem)
6756 -- Unreferenced_In_Spec (Flag7-Sem)
6757 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6759 -- Note: Limited_Present and Limited_View_Installed are used to support
6760 -- the implementation of Ada 2005 (AI-50217).
6762 -- Similarly, Private_Present is used to support the implementation of
6763 -- Ada 2005 (AI-50262).
6765 -- Note: if the WITH clause refers to a standard library unit, then a
6766 -- limited with clause is changed into a normal with clause, because we
6767 -- are not prepared to deal with limited with in the context of Rtsfind.
6768 -- So in this case, the Limited_Present flag will be False in the final
6769 -- tree. However, we do NOT do this transformation in ASIS mode, so for
6770 -- ASIS the flag will remain set in this situation.
6772 ----------------------
6773 -- With_Type clause --
6774 ----------------------
6776 -- This is a GNAT extension, used to implement mutually recursive
6777 -- types declared in different packages.
6779 -- Note: this is now obsolete. The functionality of this construct
6780 -- is now implemented by the Ada 2005 limited_with_clause.
6782 ---------------------
6783 -- 10.2 Body stub --
6784 ---------------------
6786 -- BODY_STUB ::=
6787 -- SUBPROGRAM_BODY_STUB
6788 -- | PACKAGE_BODY_STUB
6789 -- | TASK_BODY_STUB
6790 -- | PROTECTED_BODY_STUB
6792 ----------------------------------
6793 -- 10.1.3 Subprogram Body Stub --
6794 ----------------------------------
6796 -- SUBPROGRAM_BODY_STUB ::=
6797 -- SUBPROGRAM_SPECIFICATION is separate
6798 -- [ASPECT_SPECIFICATION];
6800 -- N_Subprogram_Body_Stub
6801 -- Sloc points to FUNCTION or PROCEDURE
6802 -- Specification (Node1)
6803 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6804 -- Library_Unit (Node4-Sem) points to the subunit
6805 -- Corresponding_Body (Node5-Sem)
6807 -------------------------------
6808 -- 10.1.3 Package Body Stub --
6809 -------------------------------
6811 -- PACKAGE_BODY_STUB ::=
6812 -- package body DEFINING_IDENTIFIER is separate
6813 -- [ASPECT_SPECIFICATION];
6815 -- N_Package_Body_Stub
6816 -- Sloc points to PACKAGE
6817 -- Defining_Identifier (Node1)
6818 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6819 -- Library_Unit (Node4-Sem) points to the subunit
6820 -- Corresponding_Body (Node5-Sem)
6822 ----------------------------
6823 -- 10.1.3 Task Body Stub --
6824 ----------------------------
6826 -- TASK_BODY_STUB ::=
6827 -- task body DEFINING_IDENTIFIER is separate
6828 -- [ASPECT_SPECIFICATION];
6830 -- N_Task_Body_Stub
6831 -- Sloc points to TASK
6832 -- Defining_Identifier (Node1)
6833 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6834 -- Library_Unit (Node4-Sem) points to the subunit
6835 -- Corresponding_Body (Node5-Sem)
6837 ---------------------------------
6838 -- 10.1.3 Protected Body Stub --
6839 ---------------------------------
6841 -- PROTECTED_BODY_STUB ::=
6842 -- protected body DEFINING_IDENTIFIER is separate
6843 -- [ASPECT_SPECIFICATION];
6845 -- Note: protected body stubs are not allowed in Ada 83 mode
6847 -- N_Protected_Body_Stub
6848 -- Sloc points to PROTECTED
6849 -- Defining_Identifier (Node1)
6850 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6851 -- Library_Unit (Node4-Sem) points to the subunit
6852 -- Corresponding_Body (Node5-Sem)
6854 ---------------------
6855 -- 10.1.3 Subunit --
6856 ---------------------
6858 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6860 -- N_Subunit
6861 -- Sloc points to SEPARATE
6862 -- Name (Node2) is the name of the parent unit
6863 -- Proper_Body (Node1) is the subunit body
6864 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6866 ---------------------------------
6867 -- 11.1 Exception Declaration --
6868 ---------------------------------
6870 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6871 -- [ASPECT_SPECIFICATIONS];
6873 -- For consistency with object declarations etc., the parser converts
6874 -- the case of multiple identifiers being declared to a series of
6875 -- declarations in which the expression is copied, using the More_Ids
6876 -- and Prev_Ids flags to remember the source form as described in the
6877 -- section on "Handling of Defining Identifier Lists".
6879 -- N_Exception_Declaration
6880 -- Sloc points to EXCEPTION
6881 -- Defining_Identifier (Node1)
6882 -- Expression (Node3-Sem)
6883 -- Renaming_Exception (Node2-Sem)
6884 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6885 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6887 ------------------------------------------
6888 -- 11.2 Handled Sequence Of Statements --
6889 ------------------------------------------
6891 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6892 -- SEQUENCE_OF_STATEMENTS
6893 -- [exception
6894 -- EXCEPTION_HANDLER
6895 -- {EXCEPTION_HANDLER}]
6896 -- [at end
6897 -- cleanup_procedure_call (param, param, param, ...);]
6899 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6900 -- used only internally currently, but is considered to be syntactic.
6901 -- At the moment, the only cleanup action allowed is a single call to
6902 -- a parameterless procedure, and the Identifier field of the node is
6903 -- the procedure to be called. The cleanup action occurs whenever the
6904 -- sequence of statements is left for any reason. The possible reasons
6905 -- are:
6906 -- 1. reaching the end of the sequence
6907 -- 2. exit, return, or goto
6908 -- 3. exception or abort
6909 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6910 -- entirely in the back end. In this case, a handled sequence of
6911 -- statements with an "at end" cannot also have exception handlers.
6912 -- For other back ends, such as gcc with front-end SJLJ, the
6913 -- implementation is split between the front end and back end; the front
6914 -- end implements 3, and the back end implements 1 and 2. In this case,
6915 -- if there is an "at end", the front end inserts the appropriate
6916 -- exception handler, and this handler takes precedence over "at end"
6917 -- in case of exception.
6919 -- The inserted exception handler is of the form:
6921 -- when all others =>
6922 -- cleanup;
6923 -- raise;
6925 -- where cleanup is the procedure to be called. The reason we do this is
6926 -- so that the front end can handle the necessary entries in the
6927 -- exception tables, and other exception handler actions required as
6928 -- part of the normal handling for exception handlers.
6930 -- The AT END cleanup handler protects only the sequence of statements
6931 -- (not the associated declarations of the parent), just like exception
6932 -- handlers. The big difference is that the cleanup procedure is called
6933 -- on either a normal or an abnormal exit from the statement sequence.
6935 -- Note: the list of Exception_Handlers can contain pragmas as well
6936 -- as actual handlers. In practice these pragmas can only occur at
6937 -- the start of the list, since any pragmas occurring later on will
6938 -- be included in the statement list of the corresponding handler.
6940 -- Note: although in the Ada syntax, the sequence of statements in
6941 -- a handled sequence of statements can only contain statements, we
6942 -- allow free mixing of declarations and statements in the resulting
6943 -- expanded tree. This is for example used to deal with the case of
6944 -- a cleanup procedure that must handle declarations as well as the
6945 -- statements of a block.
6947 -- Note: the cleanup_procedure_call does not go through the common
6948 -- processing for calls, which in particular means that it will not be
6949 -- automatically inlined in all cases, even though the procedure to be
6950 -- called is marked inline. More specifically, if the procedure comes
6951 -- from another unit than the main source unit, for example a run-time
6952 -- unit, then it needs to be manually added to the list of bodies to be
6953 -- inlined by invoking Add_Inlined_Body on it.
6955 -- N_Handled_Sequence_Of_Statements
6956 -- Sloc points to first token of first statement
6957 -- Statements (List3)
6958 -- End_Label (Node4) (set to Empty if expander generated)
6959 -- Exception_Handlers (List5) (set to No_List if none present)
6960 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6961 -- First_Real_Statement (Node2-Sem)
6963 -- Note: the parent always contains a Declarations field which contains
6964 -- declarations associated with the handled sequence of statements. This
6965 -- is true even in the case of an accept statement (see description of
6966 -- the N_Accept_Statement node).
6968 -- End_Label refers to the containing construct
6970 -----------------------------
6971 -- 11.2 Exception Handler --
6972 -----------------------------
6974 -- EXCEPTION_HANDLER ::=
6975 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6976 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6977 -- SEQUENCE_OF_STATEMENTS
6979 -- Note: choice parameter specification is not allowed in Ada 83 mode
6981 -- N_Exception_Handler
6982 -- Sloc points to WHEN
6983 -- Choice_Parameter (Node2) (set to Empty if not present)
6984 -- Exception_Choices (List4)
6985 -- Statements (List3)
6986 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6987 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6988 -- Local_Raise_Not_OK (Flag7-Sem)
6989 -- Has_Local_Raise (Flag8-Sem)
6991 ------------------------------------------
6992 -- 11.2 Choice parameter specification --
6993 ------------------------------------------
6995 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6997 ----------------------------
6998 -- 11.2 Exception Choice --
6999 ----------------------------
7001 -- EXCEPTION_CHOICE ::= exception_NAME | others
7003 -- Except in the case of OTHERS, no explicit node appears in the tree
7004 -- for exception choice. Instead the exception name appears directly.
7005 -- An OTHERS choice is represented by a N_Others_Choice node (see
7006 -- section 3.8.1.
7008 -- Note: for the exception choice created for an at end handler, the
7009 -- exception choice is an N_Others_Choice node with All_Others set.
7011 ---------------------------
7012 -- 11.3 Raise Statement --
7013 ---------------------------
7015 -- RAISE_STATEMENT ::= raise [exception_NAME];
7017 -- In Ada 2005, we have
7019 -- RAISE_STATEMENT ::=
7020 -- raise; | raise exception_NAME [with string_EXPRESSION];
7022 -- N_Raise_Statement
7023 -- Sloc points to RAISE
7024 -- Name (Node2) (set to Empty if no exception name present)
7025 -- Expression (Node3) (set to Empty if no expression present)
7026 -- From_At_End (Flag4-Sem)
7028 ----------------------------
7029 -- 11.3 Raise Expression --
7030 ----------------------------
7032 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
7034 -- N_Raise_Expression
7035 -- Sloc points to RAISE
7036 -- Name (Node2) (always present)
7037 -- Expression (Node3) (set to Empty if no expression present)
7038 -- Convert_To_Return_False (Flag13-Sem)
7039 -- plus fields for expression
7041 -------------------------------
7042 -- 12.1 Generic Declaration --
7043 -------------------------------
7045 -- GENERIC_DECLARATION ::=
7046 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
7048 ------------------------------------------
7049 -- 12.1 Generic Subprogram Declaration --
7050 ------------------------------------------
7052 -- GENERIC_SUBPROGRAM_DECLARATION ::=
7053 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
7054 -- [ASPECT_SPECIFICATIONS];
7056 -- Note: Generic_Formal_Declarations can include pragmas
7058 -- N_Generic_Subprogram_Declaration
7059 -- Sloc points to GENERIC
7060 -- Specification (Node1) subprogram specification
7061 -- Corresponding_Body (Node5-Sem)
7062 -- Generic_Formal_Declarations (List2) from generic formal part
7063 -- Parent_Spec (Node4-Sem)
7065 ---------------------------------------
7066 -- 12.1 Generic Package Declaration --
7067 ---------------------------------------
7069 -- GENERIC_PACKAGE_DECLARATION ::=
7070 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
7071 -- [ASPECT_SPECIFICATIONS];
7073 -- Note: when we do generics right, the Activation_Chain_Entity entry
7074 -- for this node can be removed (since the expander won't see generic
7075 -- units any more)???.
7077 -- Note: Generic_Formal_Declarations can include pragmas
7079 -- N_Generic_Package_Declaration
7080 -- Sloc points to GENERIC
7081 -- Specification (Node1) package specification
7082 -- Corresponding_Body (Node5-Sem)
7083 -- Generic_Formal_Declarations (List2) from generic formal part
7084 -- Parent_Spec (Node4-Sem)
7085 -- Activation_Chain_Entity (Node3-Sem)
7087 -------------------------------
7088 -- 12.1 Generic Formal Part --
7089 -------------------------------
7091 -- GENERIC_FORMAL_PART ::=
7092 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
7094 ------------------------------------------------
7095 -- 12.1 Generic Formal Parameter Declaration --
7096 ------------------------------------------------
7098 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
7099 -- FORMAL_OBJECT_DECLARATION
7100 -- | FORMAL_TYPE_DECLARATION
7101 -- | FORMAL_SUBPROGRAM_DECLARATION
7102 -- | FORMAL_PACKAGE_DECLARATION
7104 ---------------------------------
7105 -- 12.3 Generic Instantiation --
7106 ---------------------------------
7108 -- GENERIC_INSTANTIATION ::=
7109 -- package DEFINING_PROGRAM_UNIT_NAME is
7110 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
7111 -- [ASPECT_SPECIFICATIONS];
7112 -- | [[not] overriding]
7113 -- procedure DEFINING_PROGRAM_UNIT_NAME is
7114 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
7115 -- [ASPECT_SPECIFICATIONS];
7116 -- | [[not] overriding]
7117 -- function DEFINING_DESIGNATOR is
7118 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
7119 -- [ASPECT_SPECIFICATIONS];
7121 -- N_Package_Instantiation
7122 -- Sloc points to PACKAGE
7123 -- Defining_Unit_Name (Node1)
7124 -- Name (Node2)
7125 -- Generic_Associations (List3) (set to No_List if no
7126 -- generic actual part)
7127 -- Parent_Spec (Node4-Sem)
7128 -- Instance_Spec (Node5-Sem)
7129 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7130 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7131 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7132 -- Is_Declaration_Level_Node (Flag5-Sem)
7133 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7135 -- N_Procedure_Instantiation
7136 -- Sloc points to PROCEDURE
7137 -- Defining_Unit_Name (Node1)
7138 -- Name (Node2)
7139 -- Parent_Spec (Node4-Sem)
7140 -- Generic_Associations (List3) (set to No_List if no
7141 -- generic actual part)
7142 -- Instance_Spec (Node5-Sem)
7143 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7144 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7145 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7146 -- Is_Declaration_Level_Node (Flag5-Sem)
7147 -- Must_Override (Flag14) set if overriding indicator present
7148 -- Must_Not_Override (Flag15) set if not_overriding indicator present
7149 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7151 -- N_Function_Instantiation
7152 -- Sloc points to FUNCTION
7153 -- Defining_Unit_Name (Node1)
7154 -- Name (Node2)
7155 -- Generic_Associations (List3) (set to No_List if no
7156 -- generic actual part)
7157 -- Parent_Spec (Node4-Sem)
7158 -- Instance_Spec (Node5-Sem)
7159 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7160 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7161 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7162 -- Is_Declaration_Level_Node (Flag5-Sem)
7163 -- Must_Override (Flag14) set if overriding indicator present
7164 -- Must_Not_Override (Flag15) set if not_overriding indicator present
7165 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7167 -- Note: overriding indicator is an Ada 2005 feature
7169 -------------------------------
7170 -- 12.3 Generic Actual Part --
7171 -------------------------------
7173 -- GENERIC_ACTUAL_PART ::=
7174 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
7176 -------------------------------
7177 -- 12.3 Generic Association --
7178 -------------------------------
7180 -- GENERIC_ASSOCIATION ::=
7181 -- [generic_formal_parameter_SELECTOR_NAME =>]
7183 -- Note: unlike the procedure call case, a generic association node
7184 -- is generated for every association, even if no formal parameter
7185 -- selector name is present. In this case the parser will leave the
7186 -- Selector_Name field set to Empty, to be filled in later by the
7187 -- semantic pass.
7189 -- In Ada 2005, a formal may be associated with a box, if the
7190 -- association is part of the list of actuals for a formal package.
7191 -- If the association is given by OTHERS => <>, the association is
7192 -- an N_Others_Choice.
7194 -- N_Generic_Association
7195 -- Sloc points to first token of generic association
7196 -- Selector_Name (Node2) (set to Empty if no formal
7197 -- parameter selector name)
7198 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
7199 -- Box_Present (Flag15) (for formal_package associations with a box)
7201 ---------------------------------------------
7202 -- 12.3 Explicit Generic Actual Parameter --
7203 ---------------------------------------------
7205 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
7206 -- EXPRESSION | variable_NAME | subprogram_NAME
7207 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
7209 -------------------------------------
7210 -- 12.4 Formal Object Declaration --
7211 -------------------------------------
7213 -- FORMAL_OBJECT_DECLARATION ::=
7214 -- DEFINING_IDENTIFIER_LIST :
7215 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
7216 -- [ASPECT_SPECIFICATIONS];
7217 -- | DEFINING_IDENTIFIER_LIST :
7218 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
7219 -- [ASPECT_SPECIFICATIONS];
7221 -- Although the syntax allows multiple identifiers in the list, the
7222 -- semantics is as though successive declarations were given with
7223 -- identical type definition and expression components. To simplify
7224 -- semantic processing, the parser represents a multiple declaration
7225 -- case as a sequence of single declarations, using the More_Ids and
7226 -- Prev_Ids flags to preserve the original source form as described
7227 -- in the section on "Handling of Defining Identifier Lists".
7229 -- N_Formal_Object_Declaration
7230 -- Sloc points to first identifier
7231 -- Defining_Identifier (Node1)
7232 -- In_Present (Flag15)
7233 -- Out_Present (Flag17)
7234 -- Null_Exclusion_Present (Flag11) (set to False if not present)
7235 -- Subtype_Mark (Node4) (set to Empty if not present)
7236 -- Access_Definition (Node3) (set to Empty if not present)
7237 -- Default_Expression (Node5) (set to Empty if no default expression)
7238 -- More_Ids (Flag5) (set to False if no more identifiers in list)
7239 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
7241 -----------------------------------
7242 -- 12.5 Formal Type Declaration --
7243 -----------------------------------
7245 -- FORMAL_TYPE_DECLARATION ::=
7246 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
7247 -- is FORMAL_TYPE_DEFINITION
7248 -- [ASPECT_SPECIFICATIONS];
7249 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
7251 -- N_Formal_Type_Declaration
7252 -- Sloc points to TYPE
7253 -- Defining_Identifier (Node1)
7254 -- Formal_Type_Definition (Node3)
7255 -- Discriminant_Specifications (List4) (set to No_List if no
7256 -- discriminant part)
7257 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
7259 ----------------------------------
7260 -- 12.5 Formal type definition --
7261 ----------------------------------
7263 -- FORMAL_TYPE_DEFINITION ::=
7264 -- FORMAL_PRIVATE_TYPE_DEFINITION
7265 -- | FORMAL_DERIVED_TYPE_DEFINITION
7266 -- | FORMAL_DISCRETE_TYPE_DEFINITION
7267 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
7268 -- | FORMAL_MODULAR_TYPE_DEFINITION
7269 -- | FORMAL_FLOATING_POINT_DEFINITION
7270 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
7271 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
7272 -- | FORMAL_ARRAY_TYPE_DEFINITION
7273 -- | FORMAL_ACCESS_TYPE_DEFINITION
7274 -- | FORMAL_INTERFACE_TYPE_DEFINITION
7275 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
7277 -- The Ada 2012 syntax introduces two new non-terminals:
7278 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
7279 -- the latter category. Here we introduce an incomplete type definition
7280 -- in order to preserve as much as possible the existing structure.
7282 ---------------------------------------------
7283 -- 12.5.1 Formal Private Type Definition --
7284 ---------------------------------------------
7286 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
7287 -- [[abstract] tagged] [limited] private
7289 -- Note: TAGGED is not allowed in Ada 83 mode
7291 -- N_Formal_Private_Type_Definition
7292 -- Sloc points to PRIVATE
7293 -- Uninitialized_Variable (Node3-Sem)
7294 -- Abstract_Present (Flag4)
7295 -- Tagged_Present (Flag15)
7296 -- Limited_Present (Flag17)
7298 --------------------------------------------
7299 -- 12.5.1 Formal Derived Type Definition --
7300 --------------------------------------------
7302 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
7303 -- [abstract] [limited | synchronized]
7304 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
7305 -- Note: this construct is not allowed in Ada 83 mode
7307 -- N_Formal_Derived_Type_Definition
7308 -- Sloc points to NEW
7309 -- Subtype_Mark (Node4)
7310 -- Private_Present (Flag15)
7311 -- Abstract_Present (Flag4)
7312 -- Limited_Present (Flag17)
7313 -- Synchronized_Present (Flag7)
7314 -- Interface_List (List2) (set to No_List if none)
7316 -----------------------------------------------
7317 -- 12.5.1 Formal Incomplete Type Definition --
7318 -----------------------------------------------
7320 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
7322 -- N_Formal_Incomplete_Type_Definition
7323 -- Sloc points to identifier of parent
7324 -- Tagged_Present (Flag15)
7326 ---------------------------------------------
7327 -- 12.5.2 Formal Discrete Type Definition --
7328 ---------------------------------------------
7330 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
7332 -- N_Formal_Discrete_Type_Definition
7333 -- Sloc points to (
7335 ---------------------------------------------------
7336 -- 12.5.2 Formal Signed Integer Type Definition --
7337 ---------------------------------------------------
7339 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
7341 -- N_Formal_Signed_Integer_Type_Definition
7342 -- Sloc points to RANGE
7344 --------------------------------------------
7345 -- 12.5.2 Formal Modular Type Definition --
7346 --------------------------------------------
7348 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
7350 -- N_Formal_Modular_Type_Definition
7351 -- Sloc points to MOD
7353 ----------------------------------------------
7354 -- 12.5.2 Formal Floating Point Definition --
7355 ----------------------------------------------
7357 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
7359 -- N_Formal_Floating_Point_Definition
7360 -- Sloc points to DIGITS
7362 ----------------------------------------------------
7363 -- 12.5.2 Formal Ordinary Fixed Point Definition --
7364 ----------------------------------------------------
7366 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
7368 -- N_Formal_Ordinary_Fixed_Point_Definition
7369 -- Sloc points to DELTA
7371 ---------------------------------------------------
7372 -- 12.5.2 Formal Decimal Fixed Point Definition --
7373 ---------------------------------------------------
7375 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
7377 -- Note: formal decimal fixed point definition not allowed in Ada 83
7379 -- N_Formal_Decimal_Fixed_Point_Definition
7380 -- Sloc points to DELTA
7382 ------------------------------------------
7383 -- 12.5.3 Formal Array Type Definition --
7384 ------------------------------------------
7386 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
7388 -------------------------------------------
7389 -- 12.5.4 Formal Access Type Definition --
7390 -------------------------------------------
7392 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
7394 ----------------------------------------------
7395 -- 12.5.5 Formal Interface Type Definition --
7396 ----------------------------------------------
7398 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
7400 -----------------------------------------
7401 -- 12.6 Formal Subprogram Declaration --
7402 -----------------------------------------
7404 -- FORMAL_SUBPROGRAM_DECLARATION ::=
7405 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
7406 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
7408 --------------------------------------------------
7409 -- 12.6 Formal Concrete Subprogram Declaration --
7410 --------------------------------------------------
7412 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
7413 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
7414 -- [ASPECT_SPECIFICATIONS];
7416 -- N_Formal_Concrete_Subprogram_Declaration
7417 -- Sloc points to WITH
7418 -- Specification (Node1)
7419 -- Default_Name (Node2) (set to Empty if no subprogram default)
7420 -- Box_Present (Flag15)
7422 -- Note: if no subprogram default is present, then Name is set
7423 -- to Empty, and Box_Present is False.
7425 --------------------------------------------------
7426 -- 12.6 Formal Abstract Subprogram Declaration --
7427 --------------------------------------------------
7429 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
7430 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
7431 -- [ASPECT_SPECIFICATIONS];
7433 -- N_Formal_Abstract_Subprogram_Declaration
7434 -- Sloc points to WITH
7435 -- Specification (Node1)
7436 -- Default_Name (Node2) (set to Empty if no subprogram default)
7437 -- Box_Present (Flag15)
7439 -- Note: if no subprogram default is present, then Name is set
7440 -- to Empty, and Box_Present is False.
7442 ------------------------------
7443 -- 12.6 Subprogram Default --
7444 ------------------------------
7446 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
7448 -- There is no separate node in the tree for a subprogram default.
7449 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
7450 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
7451 -- default name or box indication, as needed.
7453 ------------------------
7454 -- 12.6 Default Name --
7455 ------------------------
7457 -- DEFAULT_NAME ::= NAME
7459 --------------------------------------
7460 -- 12.7 Formal Package Declaration --
7461 --------------------------------------
7463 -- FORMAL_PACKAGE_DECLARATION ::=
7464 -- with package DEFINING_IDENTIFIER
7465 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
7466 -- [ASPECT_SPECIFICATIONS];
7468 -- Note: formal package declarations not allowed in Ada 83 mode
7470 -- N_Formal_Package_Declaration
7471 -- Sloc points to WITH
7472 -- Defining_Identifier (Node1)
7473 -- Name (Node2)
7474 -- Generic_Associations (List3) (set to No_List if (<>) case or
7475 -- empty generic actual part)
7476 -- Box_Present (Flag15)
7477 -- Instance_Spec (Node5-Sem)
7478 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7480 --------------------------------------
7481 -- 12.7 Formal Package Actual Part --
7482 --------------------------------------
7484 -- FORMAL_PACKAGE_ACTUAL_PART ::=
7485 -- ([OTHERS] => <>)
7486 -- | [GENERIC_ACTUAL_PART]
7487 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
7489 -- FORMAL_PACKAGE_ASSOCIATION ::=
7490 -- GENERIC_ASSOCIATION
7491 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
7493 -- There is no explicit node in the tree for a formal package actual
7494 -- part. Instead the information appears in the parent node (i.e. the
7495 -- formal package declaration node itself).
7497 -- There is no explicit node for a formal package association. All of
7498 -- them are represented either by a generic association, possibly with
7499 -- Box_Present, or by an N_Others_Choice.
7501 ---------------------------------
7502 -- 13.1 Representation clause --
7503 ---------------------------------
7505 -- REPRESENTATION_CLAUSE ::=
7506 -- ATTRIBUTE_DEFINITION_CLAUSE
7507 -- | ENUMERATION_REPRESENTATION_CLAUSE
7508 -- | RECORD_REPRESENTATION_CLAUSE
7509 -- | AT_CLAUSE
7511 ----------------------
7512 -- 13.1 Local Name --
7513 ----------------------
7515 -- LOCAL_NAME :=
7516 -- DIRECT_NAME
7517 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
7518 -- | library_unit_NAME
7520 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
7521 -- as an attribute reference, which has essentially the same form.
7523 ---------------------------------------
7524 -- 13.3 Attribute definition clause --
7525 ---------------------------------------
7527 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
7528 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
7529 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
7531 -- In Ada 83, the expression must be a simple expression and the
7532 -- local name must be a direct name.
7534 -- Note: the only attribute definition clause that is processed by
7535 -- gigi is an address clause. For all other cases, the information
7536 -- is extracted by the front end and either results in setting entity
7537 -- information, e.g. Esize for the Size clause, or in appropriate
7538 -- expansion actions (e.g. in the case of Storage_Size).
7540 -- For an address clause, Gigi constructs the appropriate addressing
7541 -- code. It also ensures that no aliasing optimizations are made
7542 -- for the object for which the address clause appears.
7544 -- Note: for an address clause used to achieve an overlay:
7546 -- A : Integer;
7547 -- B : Integer;
7548 -- for B'Address use A'Address;
7550 -- the above rule means that Gigi will ensure that no optimizations
7551 -- will be made for B that would violate the implementation advice
7552 -- of RM 13.3(19). However, this advice applies only to B and not
7553 -- to A, which seems unfortunate. The GNAT front end will mark the
7554 -- object A as volatile to also prevent unwanted optimization
7555 -- assumptions based on no aliasing being made for B.
7557 -- N_Attribute_Definition_Clause
7558 -- Sloc points to FOR
7559 -- Name (Node2) the local name
7560 -- Chars (Name1) the identifier name from the attribute designator
7561 -- Expression (Node3) the expression or name
7562 -- Entity (Node4-Sem)
7563 -- Next_Rep_Item (Node5-Sem)
7564 -- From_At_Mod (Flag4-Sem)
7565 -- Check_Address_Alignment (Flag11-Sem)
7566 -- From_Aspect_Specification (Flag13-Sem)
7567 -- Is_Delayed_Aspect (Flag14-Sem)
7568 -- Address_Warning_Posted (Flag18-Sem)
7570 -- Note: if From_Aspect_Specification is set, then Sloc points to the
7571 -- aspect name, and Entity is resolved already to reference the entity
7572 -- to which the aspect applies.
7574 -----------------------------------
7575 -- 13.3.1 Aspect Specifications --
7576 -----------------------------------
7578 -- We modify the RM grammar here, the RM grammar is:
7580 -- ASPECT_SPECIFICATION ::=
7581 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7582 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
7584 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7586 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7588 -- That's inconvenient, since there is no non-terminal name for a single
7589 -- entry in the list of aspects. So we use this grammar instead:
7591 -- ASPECT_SPECIFICATIONS ::=
7592 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7594 -- ASPECT_SPECIFICATION =>
7595 -- ASPECT_MARK [=> ASPECT_DEFINITION]
7597 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7599 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7601 -- Note that for Annotate, the ASPECT_DEFINITION is a pure positional
7602 -- aggregate with the elements of the aggregate corresponding to the
7603 -- successive arguments of the corresponding pragma.
7605 -- See separate package Aspects for details on the incorporation of
7606 -- these nodes into the tree, and how aspect specifications for a given
7607 -- declaration node are associated with that node.
7609 -- N_Aspect_Specification
7610 -- Sloc points to aspect identifier
7611 -- Identifier (Node1) aspect identifier
7612 -- Aspect_Rep_Item (Node2-Sem)
7613 -- Expression (Node3) Aspect_Definition (set to Empty if none)
7614 -- Entity (Node4-Sem) entity to which the aspect applies
7615 -- Next_Rep_Item (Node5-Sem)
7616 -- Class_Present (Flag6) Set if 'Class present
7617 -- Is_Ignored (Flag9-Sem)
7618 -- Is_Checked (Flag11-Sem)
7619 -- Is_Delayed_Aspect (Flag14-Sem)
7620 -- Is_Disabled (Flag15-Sem)
7621 -- Is_Boolean_Aspect (Flag16-Sem)
7622 -- Split_PPC (Flag17) Set if split pre/post attribute
7624 -- Note: Aspect_Specification is an Ada 2012 feature
7626 -- Note: The Identifier serves to identify the aspect involved (it
7627 -- is the aspect whose name corresponds to the Chars field). This
7628 -- means that the other fields of this identifier are unused, and
7629 -- in particular we use the Entity field of this identifier to save
7630 -- a copy of the expression for visibility analysis, see spec of
7631 -- Sem_Ch13 for full details of this usage.
7633 -- In the case of aspects of the form xxx'Class, the aspect identifier
7634 -- is for xxx, and Class_Present is set to True.
7636 -- Note: When a Pre or Post aspect specification is processed, it is
7637 -- broken into AND THEN sections. The left most section has Split_PPC
7638 -- set to False, indicating that it is the original specification (e.g.
7639 -- for posting errors). For the other sections, Split_PPC is set True.
7641 ---------------------------------------------
7642 -- 13.4 Enumeration representation clause --
7643 ---------------------------------------------
7645 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7646 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7648 -- In Ada 83, the name must be a direct name
7650 -- N_Enumeration_Representation_Clause
7651 -- Sloc points to FOR
7652 -- Identifier (Node1) direct name
7653 -- Array_Aggregate (Node3)
7654 -- Next_Rep_Item (Node5-Sem)
7656 ---------------------------------
7657 -- 13.4 Enumeration aggregate --
7658 ---------------------------------
7660 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7662 ------------------------------------------
7663 -- 13.5.1 Record representation clause --
7664 ------------------------------------------
7666 -- RECORD_REPRESENTATION_CLAUSE ::=
7667 -- for first_subtype_LOCAL_NAME use
7668 -- record [MOD_CLAUSE]
7669 -- {COMPONENT_CLAUSE}
7670 -- end record;
7672 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7673 -- replaced by a corresponding Alignment attribute definition clause).
7675 -- Note: Component_Clauses can include pragmas
7677 -- N_Record_Representation_Clause
7678 -- Sloc points to FOR
7679 -- Identifier (Node1) direct name
7680 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7681 -- Component_Clauses (List3)
7682 -- Next_Rep_Item (Node5-Sem)
7684 ------------------------------
7685 -- 13.5.1 Component clause --
7686 ------------------------------
7688 -- COMPONENT_CLAUSE ::=
7689 -- component_LOCAL_NAME at POSITION
7690 -- range FIRST_BIT .. LAST_BIT;
7692 -- N_Component_Clause
7693 -- Sloc points to AT
7694 -- Component_Name (Node1) points to Name or Attribute_Reference
7695 -- Position (Node2)
7696 -- First_Bit (Node3)
7697 -- Last_Bit (Node4)
7699 ----------------------
7700 -- 13.5.1 Position --
7701 ----------------------
7703 -- POSITION ::= static_EXPRESSION
7705 -----------------------
7706 -- 13.5.1 First_Bit --
7707 -----------------------
7709 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7711 ----------------------
7712 -- 13.5.1 Last_Bit --
7713 ----------------------
7715 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7717 --------------------------
7718 -- 13.8 Code statement --
7719 --------------------------
7721 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7723 -- Note: in GNAT, the qualified expression has the form
7725 -- Asm_Insn'(Asm (...));
7727 -- See package System.Machine_Code in file s-maccod.ads for details on
7728 -- the allowed parameters to Asm. There are two ways this node can
7729 -- arise, as a code statement, in which case the expression is the
7730 -- qualified expression, or as a result of the expansion of an intrinsic
7731 -- call to the Asm or Asm_Input procedure.
7733 -- N_Code_Statement
7734 -- Sloc points to first token of the expression
7735 -- Expression (Node3)
7737 -- Note: package Exp_Code contains an abstract functional interface
7738 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7740 ------------------------
7741 -- 13.12 Restriction --
7742 ------------------------
7744 -- RESTRICTION ::=
7745 -- restriction_IDENTIFIER
7746 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7748 -- There is no explicit node for restrictions. Instead the restriction
7749 -- appears in normal pragma syntax as a pragma argument association,
7750 -- which has the same syntactic form.
7752 --------------------------
7753 -- B.2 Shift Operators --
7754 --------------------------
7756 -- Calls to the intrinsic shift functions are converted to one of
7757 -- the following shift nodes, which have the form of normal binary
7758 -- operator names. Note that for a given shift operation, one node
7759 -- covers all possible types, as for normal operators.
7761 -- Note: it is perfectly permissible for the expander to generate
7762 -- shift operation nodes directly, in which case they will be analyzed
7763 -- and parsed in the usual manner.
7765 -- Sprint syntax: shift-function-name!(expr, count)
7767 -- Note: the Left_Opnd field holds the first argument (the value to
7768 -- be shifted). The Right_Opnd field holds the second argument (the
7769 -- shift count). The Chars field is the name of the intrinsic function.
7771 -- N_Op_Rotate_Left
7772 -- Sloc points to the function name
7773 -- plus fields for binary operator
7774 -- plus fields for expression
7775 -- Shift_Count_OK (Flag4-Sem)
7777 -- N_Op_Rotate_Right
7778 -- Sloc points to the function name
7779 -- plus fields for binary operator
7780 -- plus fields for expression
7781 -- Shift_Count_OK (Flag4-Sem)
7783 -- N_Op_Shift_Left
7784 -- Sloc points to the function name
7785 -- plus fields for binary operator
7786 -- plus fields for expression
7787 -- Shift_Count_OK (Flag4-Sem)
7789 -- N_Op_Shift_Right_Arithmetic
7790 -- Sloc points to the function name
7791 -- plus fields for binary operator
7792 -- plus fields for expression
7793 -- Shift_Count_OK (Flag4-Sem)
7795 -- N_Op_Shift_Right
7796 -- Sloc points to the function name
7797 -- plus fields for binary operator
7798 -- plus fields for expression
7799 -- Shift_Count_OK (Flag4-Sem)
7801 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7802 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7804 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7805 -- always less than the word size if Modify_Tree_For_C mode is set.
7807 --------------------------
7808 -- Obsolescent Features --
7809 --------------------------
7811 -- The syntax descriptions and tree nodes for obsolescent features are
7812 -- grouped together, corresponding to their location in appendix I in
7813 -- the RM. However, parsing and semantic analysis for these constructs
7814 -- is located in an appropriate chapter (see individual notes).
7816 ---------------------------
7817 -- J.3 Delta Constraint --
7818 ---------------------------
7820 -- Note: the parse routine for this construct is located in section
7821 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7822 -- where delta constraint logically belongs.
7824 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7826 -- N_Delta_Constraint
7827 -- Sloc points to DELTA
7828 -- Delta_Expression (Node3)
7829 -- Range_Constraint (Node4) (set to Empty if not present)
7831 --------------------
7832 -- J.7 At Clause --
7833 --------------------
7835 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7837 -- Note: the parse routine for this construct is located in Par-Ch13,
7838 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7839 -- belongs if it were not obsolescent.
7841 -- Note: in Ada 83 the expression must be a simple expression
7843 -- Gigi restriction: This node never appears, it is rewritten as an
7844 -- address attribute definition clause.
7846 -- N_At_Clause
7847 -- Sloc points to FOR
7848 -- Identifier (Node1)
7849 -- Expression (Node3)
7851 ---------------------
7852 -- J.8 Mod clause --
7853 ---------------------
7855 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7857 -- Note: the parse routine for this construct is located in Par-Ch13,
7858 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7859 -- belongs if it were not obsolescent.
7861 -- Note: in Ada 83, the expression must be a simple expression
7863 -- Gigi restriction: this node never appears. It is replaced
7864 -- by a corresponding Alignment attribute definition clause.
7866 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7867 -- its name has "clause" in it. This is rather strange, but is quite
7868 -- definitely specified. The pragmas before are collected in the
7869 -- Pragmas_Before field of the mod clause node itself, and pragmas
7870 -- after are simply swallowed up in the list of component clauses.
7872 -- N_Mod_Clause
7873 -- Sloc points to AT
7874 -- Expression (Node3)
7875 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7877 --------------------
7878 -- Semantic Nodes --
7879 --------------------
7881 -- These semantic nodes are used to hold additional semantic information.
7882 -- They are inserted into the tree as a result of semantic processing.
7883 -- Although there are no legitimate source syntax constructions that
7884 -- correspond directly to these nodes, we need a source syntax for the
7885 -- reconstructed tree printed by Sprint, and the node descriptions here
7886 -- show this syntax.
7888 -----------------
7889 -- Call_Marker --
7890 -----------------
7892 -- This node is created during the analysis/resolution of entry calls,
7893 -- requeues, and subprogram calls. It performs several functions:
7895 -- * Call markers provide a uniform model for handling calls by the
7896 -- ABE mechanism, regardless of whether expansion took place.
7898 -- * The call marker captures the target of the related call along
7899 -- with other attributes which are either unavailabe or expensive
7900 -- to recompute once analysis, resolution, and expansion are over.
7902 -- * The call marker aids the ABE Processing phase by signaling the
7903 -- presence of a call in case the original call was transformed by
7904 -- expansion.
7906 -- * The call marker acts as a reference point for the insertion of
7907 -- run-time conditional ABE checks or guaranteed ABE failures.
7909 -- Sprint syntax: #target#
7911 -- The Sprint syntax shown above is not enabled by default
7913 -- N_Call_Marker
7914 -- Sloc points to Sloc of original call
7915 -- Target (Node1-Sem)
7916 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7917 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7918 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7919 -- Is_Source_Call (Flag4-Sem)
7920 -- Is_Declaration_Level_Node (Flag5-Sem)
7921 -- Is_Dispatching_Call (Flag6-Sem)
7922 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7924 ------------------------
7925 -- Compound Statement --
7926 ------------------------
7928 -- This node is created by the analyzer/expander to handle some
7929 -- expansion cases where a sequence of actions needs to be captured
7930 -- within a single node (which acts as a container and allows the
7931 -- entire list of actions to be moved around as a whole) appearing
7932 -- in a sequence of statements.
7934 -- This is the statement counterpart to the expression node
7935 -- N_Expression_With_Actions.
7937 -- The required semantics is that the set of actions is executed in
7938 -- the order in which it appears, as though they appeared by themselves
7939 -- in the enclosing list of declarations or statements. Unlike what
7940 -- happens when using an N_Block_Statement, no new scope is introduced.
7942 -- Note: for the time being, this is used only as a transient
7943 -- representation during expansion, and all compound statement nodes
7944 -- must be exploded back to their constituent statements before handing
7945 -- the tree to the back end.
7947 -- Sprint syntax: do
7948 -- action;
7949 -- action;
7950 -- ...
7951 -- action;
7952 -- end;
7954 -- N_Compound_Statement
7955 -- Actions (List1)
7957 --------------
7958 -- Contract --
7959 --------------
7961 -- This node is used to hold the various parts of an entry, subprogram
7962 -- [body] or package [body] contract, in particular:
7963 -- Abstract states declared by a package declaration
7964 -- Contract cases that apply to a subprogram
7965 -- Dependency relations of inputs and output of a subprogram
7966 -- Global annotations classifying data as input or output
7967 -- Initialization sequences for a package declaration
7968 -- Pre- and postconditions that apply to a subprogram
7970 -- The node appears in an entry and [generic] subprogram [body] entity.
7972 -- Sprint syntax: <none> as the node should not appear in the tree, but
7973 -- only attached to an entry or [generic] subprogram
7974 -- entity.
7976 -- N_Contract
7977 -- Sloc points to the subprogram's name
7978 -- Pre_Post_Conditions (Node1-Sem) (set to Empty if none)
7979 -- Contract_Test_Cases (Node2-Sem) (set to Empty if none)
7980 -- Classifications (Node3-Sem) (set to Empty if none)
7981 -- Is_Expanded_Contract (Flag1-Sem)
7983 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7984 -- to pre- and postconditions associated with an entry or a subprogram
7985 -- [body or stub]. The pragmas can either come from source or be the
7986 -- byproduct of aspect expansion. Currently the following pragmas appear
7987 -- in this list:
7988 -- Post
7989 -- Postcondition
7990 -- Pre
7991 -- Precondition
7992 -- Refined_Post
7993 -- The ordering in the list is in LIFO fashion.
7995 -- Note that there might be multiple preconditions or postconditions
7996 -- in this list, either because they come from separate pragmas in the
7997 -- source, or because a Pre (resp. Post) aspect specification has been
7998 -- broken into AND THEN sections. See Split_PPC for details.
8000 -- In GNATprove mode, the inherited classwide pre- and postconditions
8001 -- (suitably specialized for the specific type of the overriding
8002 -- operation) are also in this list.
8004 -- Contract_Test_Cases contains a collection of pragmas that correspond
8005 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
8006 -- list is in LIFO fashion.
8008 -- Classifications contains pragmas that either declare, categorize, or
8009 -- establish dependencies between subprogram or package inputs and
8010 -- outputs. Currently the following pragmas appear in this list:
8011 -- Abstract_States
8012 -- Async_Readers
8013 -- Async_Writers
8014 -- Constant_After_Elaboration
8015 -- Depends
8016 -- Effective_Reads
8017 -- Effective_Writes
8018 -- Extensions_Visible
8019 -- Global
8020 -- Initial_Condition
8021 -- Initializes
8022 -- Part_Of
8023 -- Refined_Depends
8024 -- Refined_Global
8025 -- Refined_States
8026 -- Volatile_Function
8027 -- The ordering is in LIFO fashion.
8029 -------------------
8030 -- Expanded Name --
8031 -------------------
8033 -- The N_Expanded_Name node is used to represent a selected component
8034 -- name that has been resolved to an expanded name. The semantic phase
8035 -- replaces N_Selected_Component nodes that represent names by the use
8036 -- of this node, leaving the N_Selected_Component node used only when
8037 -- the prefix is a record or protected type.
8039 -- The fields of the N_Expanded_Name node are layed out identically
8040 -- to those of the N_Selected_Component node, allowing conversion of
8041 -- an expanded name node to a selected component node to be done
8042 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
8044 -- There is no special sprint syntax for an expanded name
8046 -- N_Expanded_Name
8047 -- Sloc points to the period
8048 -- Chars (Name1) copy of Chars field of selector name
8049 -- Prefix (Node3)
8050 -- Selector_Name (Node2)
8051 -- Entity (Node4-Sem)
8052 -- Associated_Node (Node4-Sem)
8053 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
8054 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
8055 -- Has_Private_View (Flag11-Sem) set in generic units
8056 -- Redundant_Use (Flag13-Sem)
8057 -- Atomic_Sync_Required (Flag14-Sem)
8058 -- plus fields for expression
8060 -----------------------------
8061 -- Expression With Actions --
8062 -----------------------------
8064 -- This node is created by the analyzer/expander to handle some
8065 -- expansion cases, notably short-circuit forms where there are
8066 -- actions associated with the right-hand side operand.
8068 -- The N_Expression_With_Actions node represents an expression with
8069 -- an associated set of actions (which are executable statements and
8070 -- declarations, as might occur in a handled statement sequence).
8072 -- The required semantics is that the set of actions is executed in
8073 -- the order in which it appears just before the expression is
8074 -- evaluated (and these actions must only be executed if the value
8075 -- of the expression is evaluated). The node is considered to be
8076 -- a subexpression, whose value is the value of the Expression after
8077 -- executing all the actions.
8079 -- If the actions contain declarations, then these declarations may
8080 -- be referenced within the expression. However note that there is
8081 -- no proper scope associated with the expression-with-action, so the
8082 -- back-end will elaborate them in the context of the enclosing scope.
8084 -- Sprint syntax: do
8085 -- action;
8086 -- action;
8087 -- ...
8088 -- action;
8089 -- in expression end
8091 -- N_Expression_With_Actions
8092 -- Actions (List1)
8093 -- Expression (Node3)
8094 -- plus fields for expression
8096 -- Note: In the final generated tree presented to the code generator,
8097 -- the actions list is always non-null, since there is no point in this
8098 -- node if the actions are Empty. During semantic analysis there are
8099 -- cases where it is convenient to temporarily generate an empty actions
8100 -- list. This arises in cases where we create such an empty actions
8101 -- list, and it may or may not end up being a place where additional
8102 -- actions are inserted. The expander removes such empty cases after
8103 -- the expression of the node is fully analyzed and expanded, at which
8104 -- point it is safe to remove it, since no more actions can be inserted.
8106 -- Note: In Modify_Tree_For_C, we never generate any declarations in
8107 -- the action list, which can contain only non-declarative statements.
8109 --------------------
8110 -- Free Statement --
8111 --------------------
8113 -- The N_Free_Statement node is generated as a result of a call to an
8114 -- instantiation of Unchecked_Deallocation. The instantiation of this
8115 -- generic is handled specially and generates this node directly.
8117 -- Sprint syntax: free expression
8119 -- N_Free_Statement
8120 -- Sloc is copied from the unchecked deallocation call
8121 -- Expression (Node3) argument to unchecked deallocation call
8122 -- Storage_Pool (Node1-Sem)
8123 -- Procedure_To_Call (Node2-Sem)
8124 -- Actual_Designated_Subtype (Node4-Sem)
8126 -- Note: in the case where a debug source file is generated, the Sloc
8127 -- for this node points to the FREE keyword in the Sprint file output.
8129 -------------------
8130 -- Freeze Entity --
8131 -------------------
8133 -- This node marks the point in a declarative part at which an entity
8134 -- declared therein becomes frozen. The expander places initialization
8135 -- procedures for types at those points. Gigi uses the freezing point
8136 -- to elaborate entities that may depend on previous private types.
8138 -- See the section in Einfo "Delayed Freezing and Elaboration" for
8139 -- a full description of the use of this node.
8141 -- The Entity field points back to the entity for the type (whose
8142 -- Freeze_Node field points back to this freeze node).
8144 -- The Actions field contains a list of declarations and statements
8145 -- generated by the expander which are associated with the freeze
8146 -- node, and are elaborated as though the freeze node were replaced
8147 -- by this sequence of actions.
8149 -- Note: the Sloc field in the freeze node references a construct
8150 -- associated with the freezing point. This is used for posting
8151 -- messages in some error/warning situations, e.g. the case where
8152 -- a primitive operation of a tagged type is declared too late.
8154 -- Sprint syntax: freeze entity-name [
8155 -- freeze actions
8156 -- ]
8158 -- N_Freeze_Entity
8159 -- Sloc points near freeze point (see above special note)
8160 -- Entity (Node4-Sem)
8161 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
8162 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
8163 -- Actions (List1) (set to No_List if no freeze actions)
8164 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
8166 -- The Actions field holds actions associated with the freeze. These
8167 -- actions are elaborated at the point where the type is frozen.
8169 -- Note: in the case where a debug source file is generated, the Sloc
8170 -- for this node points to the FREEZE keyword in the Sprint file output.
8172 ---------------------------
8173 -- Freeze Generic Entity --
8174 ---------------------------
8176 -- The freeze point of an entity indicates the point at which the
8177 -- information needed to generate code for the entity is complete.
8178 -- The freeze node for an entity triggers expander activities, such as
8179 -- build initialization procedures, and backend activities, such as
8180 -- completing the elaboration of packages.
8182 -- For entities declared within a generic unit, for which no code is
8183 -- generated, the freeze point is not equally meaningful. However, in
8184 -- Ada 2012 several semantic checks on declarations must be delayed to
8185 -- the freeze point, and we need to include such a mark in the tree to
8186 -- trigger these checks. The Freeze_Generic_Entity node plays no other
8187 -- role, and is ignored by the expander and the back-end.
8189 -- Sprint syntax: freeze_generic entity-name
8191 -- N_Freeze_Generic_Entity
8192 -- Sloc points near freeze point
8193 -- Entity (Node4-Sem)
8195 --------------------------------
8196 -- Implicit Label Declaration --
8197 --------------------------------
8199 -- An implicit label declaration is created for every occurrence of a
8200 -- label on a statement or a label on a block or loop. It is chained
8201 -- in the declarations of the innermost enclosing block as specified
8202 -- in RM section 5.1 (3).
8204 -- The Defining_Identifier is the actual identifier for the statement
8205 -- identifier. Note that the occurrence of the label is a reference, NOT
8206 -- the defining occurrence. The defining occurrence occurs at the head
8207 -- of the innermost enclosing block, and is represented by this node.
8209 -- Note: from the grammar, this might better be called an implicit
8210 -- statement identifier declaration, but the term we choose seems
8211 -- friendlier, since at least informally statement identifiers are
8212 -- called labels in both cases (i.e. when used in labels, and when
8213 -- used as the identifiers of blocks and loops).
8215 -- Note: although this is logically a semantic node, since it does not
8216 -- correspond directly to a source syntax construction, these nodes are
8217 -- actually created by the parser in a post pass done just after parsing
8218 -- is complete, before semantic analysis is started (see Par.Labl).
8220 -- Sprint syntax: labelname : label;
8222 -- N_Implicit_Label_Declaration
8223 -- Sloc points to the << token for a statement identifier, or to the
8224 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
8225 -- Defining_Identifier (Node1)
8226 -- Label_Construct (Node2-Sem)
8228 -- Note: in the case where a debug source file is generated, the Sloc
8229 -- for this node points to the label name in the generated declaration.
8231 ---------------------
8232 -- Itype Reference --
8233 ---------------------
8235 -- This node is used to create a reference to an Itype. The only purpose
8236 -- is to make sure the Itype is defined if this is the first reference.
8238 -- A typical use of this node is when an Itype is to be referenced in
8239 -- two branches of an IF statement. In this case it is important that
8240 -- the first use of the Itype not be inside the conditional, since then
8241 -- it might not be defined if the other branch of the IF is taken, in
8242 -- the case where the definition generates elaboration code.
8244 -- The Itype field points to the referenced Itype
8246 -- Sprint syntax: reference itype-name
8248 -- N_Itype_Reference
8249 -- Sloc points to the node generating the reference
8250 -- Itype (Node1-Sem)
8252 -- Note: in the case where a debug source file is generated, the Sloc
8253 -- for this node points to the REFERENCE keyword in the file output.
8255 ---------------------
8256 -- Raise xxx Error --
8257 ---------------------
8259 -- One of these nodes is created during semantic analysis to replace
8260 -- a node for an expression that is determined to definitely raise
8261 -- the corresponding exception.
8263 -- The N_Raise_xxx_Error node may also stand alone in place
8264 -- of a declaration or statement, in which case it simply causes
8265 -- the exception to be raised (i.e. it is equivalent to a raise
8266 -- statement that raises the corresponding exception). This use
8267 -- is distinguished by the fact that the Etype in this case is
8268 -- Standard_Void_Type; in the subexpression case, the Etype is the
8269 -- same as the type of the subexpression which it replaces.
8271 -- If Condition is empty, then the raise is unconditional. If the
8272 -- Condition field is non-empty, it is a boolean expression which is
8273 -- first evaluated, and the exception is raised only if the value of the
8274 -- expression is True. In the unconditional case, the creation of this
8275 -- node is usually accompanied by a warning message (unless it appears
8276 -- within the right operand of a short-circuit form whose left argument
8277 -- is static and decisively eliminates elaboration of the raise
8278 -- operation). The condition field can ONLY be present when the node is
8279 -- used as a statement form; it must NOT be present in the case where
8280 -- the node appears within an expression.
8282 -- The exception is generated with a message that contains the
8283 -- file name and line number, and then appended text. The Reason
8284 -- code shows the text to be added. The Reason code is an element
8285 -- of the type Types.RT_Exception_Code, and indicates both the
8286 -- message to be added, and the exception to be raised (which must
8287 -- match the node type). The value is stored by storing a Uint which
8288 -- is the Pos value of the enumeration element in this type.
8290 -- Gigi restriction: This expander ensures that the type of the
8291 -- Condition field is always Standard.Boolean, even if the type
8292 -- in the source is some non-standard boolean type.
8294 -- Sprint syntax: [xxx_error "msg"]
8295 -- or: [xxx_error when condition "msg"]
8297 -- N_Raise_Constraint_Error
8298 -- Sloc references related construct
8299 -- Condition (Node1) (set to Empty if no condition)
8300 -- Reason (Uint3)
8301 -- plus fields for expression
8303 -- N_Raise_Program_Error
8304 -- Sloc references related construct
8305 -- Condition (Node1) (set to Empty if no condition)
8306 -- Reason (Uint3)
8307 -- plus fields for expression
8309 -- N_Raise_Storage_Error
8310 -- Sloc references related construct
8311 -- Condition (Node1) (set to Empty if no condition)
8312 -- Reason (Uint3)
8313 -- plus fields for expression
8315 -- Note: Sloc is copied from the expression generating the exception.
8316 -- In the case where a debug source file is generated, the Sloc for
8317 -- this node points to the left bracket in the Sprint file output.
8319 -- Note: the back end may be required to translate these nodes into
8320 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
8322 ---------------------------------------------
8323 -- Optimization of Exception Raise to Goto --
8324 ---------------------------------------------
8326 -- In some cases, the front end will determine that any exception raised
8327 -- by the back end for a certain exception should be transformed into a
8328 -- goto statement.
8330 -- There are three kinds of exceptions raised by the back end (note that
8331 -- for this purpose we consider gigi to be part of the back end in the
8332 -- gcc case):
8334 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
8335 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
8336 -- 3. Other cases not specifically marked by the front end
8338 -- Normally all such exceptions are translated into calls to the proper
8339 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
8340 -- and the exception message.
8342 -- The front end may determine that for a particular sequence of code,
8343 -- exceptions in any of these three categories for a particular builtin
8344 -- exception should result in a goto, rather than a call to Rcheck_xx.
8345 -- The exact sequence to be generated is:
8347 -- Local_Raise (exception'Identity);
8348 -- goto Label
8350 -- The front end marks such a sequence of code by bracketing it with
8351 -- push and pop nodes:
8353 -- N_Push_xxx_Label (referencing the label)
8354 -- ...
8355 -- (code where transformation is expected for exception xxx)
8356 -- ...
8357 -- N_Pop_xxx_Label
8359 -- The use of push/pop reflects the fact that such regions can properly
8360 -- nest, and one special case is a subregion in which no transformation
8361 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
8362 -- Exception_Label field is Empty.
8364 -- N_Push_Constraint_Error_Label
8365 -- Sloc references first statement in region covered
8366 -- Exception_Label (Node5-Sem)
8368 -- N_Push_Program_Error_Label
8369 -- Sloc references first statement in region covered
8370 -- Exception_Label (Node5-Sem)
8372 -- N_Push_Storage_Error_Label
8373 -- Sloc references first statement in region covered
8374 -- Exception_Label (Node5-Sem)
8376 -- N_Pop_Constraint_Error_Label
8377 -- Sloc references last statement in region covered
8379 -- N_Pop_Program_Error_Label
8380 -- Sloc references last statement in region covered
8382 -- N_Pop_Storage_Error_Label
8383 -- Sloc references last statement in region covered
8385 ---------------
8386 -- Reference --
8387 ---------------
8389 -- For a number of purposes, we need to construct references to objects.
8390 -- These references are subsequently treated as normal access values.
8391 -- An example is the construction of the parameter block passed to a
8392 -- task entry. The N_Reference node is provided for this purpose. It is
8393 -- similar in effect to the use of the Unrestricted_Access attribute,
8394 -- and like Unrestricted_Access can be applied to objects which would
8395 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
8396 -- objects which are not aliased, and slices). In addition it can be
8397 -- applied to composite type values as well as objects, including string
8398 -- values and aggregates.
8400 -- Note: we use the Prefix field for this expression so that the
8401 -- resulting node can be treated using common code with the attribute
8402 -- nodes for the 'Access and related attributes. Logically it would make
8403 -- more sense to call it an Expression field, but then we would have to
8404 -- special case the treatment of the N_Reference node.
8406 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
8407 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
8408 -- a temporary initialized to a N_Reference node in order to eliminate
8409 -- superfluous access checks.
8411 -- Sprint syntax: prefix'reference
8413 -- N_Reference
8414 -- Sloc is copied from the expression
8415 -- Prefix (Node3)
8416 -- plus fields for expression
8418 -- Note: in the case where a debug source file is generated, the Sloc
8419 -- for this node points to the quote in the Sprint file output.
8421 ----------------
8422 -- SCIL Nodes --
8423 ----------------
8425 -- SCIL nodes are special nodes added to the tree when the CodePeer mode
8426 -- is active. They are only generated if SCIL generation is enabled.
8427 -- A standard tree-walk will not encounter these nodes even if they
8428 -- are present; these nodes are only accessible via the function
8429 -- SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
8430 -- semantics.
8432 -- Sprint syntax: [ <node kind> ]
8433 -- No semantic field values are displayed.
8435 -- N_SCIL_Dispatch_Table_Tag_Init
8436 -- Sloc references a node for a tag initialization
8437 -- SCIL_Entity (Node4-Sem)
8439 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
8440 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
8441 -- the declaration of the dispatch table for a tagged type.
8443 -- N_SCIL_Dispatching_Call
8444 -- Sloc references the node of a dispatching call
8445 -- SCIL_Target_Prim (Node2-Sem)
8446 -- SCIL_Entity (Node4-Sem)
8447 -- SCIL_Controlling_Tag (Node5-Sem)
8449 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
8450 -- with the N_Procedure_Call_Statement or N_Function_Call node (or a
8451 -- rewriting thereof) corresponding to a dispatching call.
8453 -- N_SCIL_Membership_Test
8454 -- Sloc references the node of a membership test
8455 -- SCIL_Tag_Value (Node5-Sem)
8456 -- SCIL_Entity (Node4-Sem)
8458 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
8459 -- with the N_In node (or a rewriting thereof) corresponding to a
8460 -- classwide membership test.
8462 --------------------------
8463 -- Unchecked Expression --
8464 --------------------------
8466 -- An unchecked expression is one that must be analyzed and resolved
8467 -- with all checks off, regardless of the current setting of scope
8468 -- suppress flags.
8470 -- Sprint syntax: `(expression)
8472 -- Note: this node is always removed from the tree (and replaced by
8473 -- its constituent expression) on completion of analysis, so it only
8474 -- appears in intermediate trees, and will never be seen by Gigi.
8476 -- N_Unchecked_Expression
8477 -- Sloc is a copy of the Sloc of the expression
8478 -- Expression (Node3)
8479 -- plus fields for expression
8481 -- Note: in the case where a debug source file is generated, the Sloc
8482 -- for this node points to the back quote in the Sprint file output.
8484 -------------------------------
8485 -- Unchecked Type Conversion --
8486 -------------------------------
8488 -- An unchecked type conversion node represents the semantic action
8489 -- corresponding to a call to an instantiation of Unchecked_Conversion.
8490 -- It is generated as a result of actual use of Unchecked_Conversion
8491 -- and also the expander generates unchecked type conversion nodes
8492 -- directly for expansion of complex semantic actions.
8494 -- Note: an unchecked type conversion is a variable as far as the
8495 -- semantics are concerned, which is convenient for the expander.
8496 -- This does not change what Ada source programs are legal, since
8497 -- clearly a function call to an instantiation of Unchecked_Conversion
8498 -- is not a variable in any case.
8500 -- Sprint syntax: subtype-mark!(expression)
8502 -- N_Unchecked_Type_Conversion
8503 -- Sloc points to related node in source
8504 -- Subtype_Mark (Node4)
8505 -- Expression (Node3)
8506 -- Kill_Range_Check (Flag11-Sem)
8507 -- No_Truncation (Flag17-Sem)
8508 -- plus fields for expression
8510 -- Note: in the case where a debug source file is generated, the Sloc
8511 -- for this node points to the exclamation in the Sprint file output.
8513 -----------------------------------
8514 -- Validate_Unchecked_Conversion --
8515 -----------------------------------
8517 -- The front end does most of the validation of unchecked conversion,
8518 -- including checking sizes (this is done after the back end is called
8519 -- to take advantage of back-annotation of calculated sizes).
8521 -- The front end also deals with specific cases that are not allowed
8522 -- e.g. involving unconstrained array types.
8524 -- For the case of the standard gigi backend, this means that all
8525 -- checks are done in the front end.
8527 -- However, in the case of specialized back-ends, in particular the JVM
8528 -- backend in the past, additional requirements and restrictions may
8529 -- apply to unchecked conversion, and these are most conveniently
8530 -- performed in the specialized back-end.
8532 -- To accommodate this requirement, for such back ends, the following
8533 -- special node is generated recording an unchecked conversion that
8534 -- needs to be validated. The back end should post an appropriate
8535 -- error message if the unchecked conversion is invalid or warrants
8536 -- a special warning message.
8538 -- Source_Type and Target_Type point to the entities for the two
8539 -- types involved in the unchecked conversion instantiation that
8540 -- is to be validated.
8542 -- Sprint syntax: validate Unchecked_Conversion (source, target);
8544 -- N_Validate_Unchecked_Conversion
8545 -- Sloc points to instantiation (location for warning message)
8546 -- Source_Type (Node1-Sem)
8547 -- Target_Type (Node2-Sem)
8549 -- Note: in the case where a debug source file is generated, the Sloc
8550 -- for this node points to the VALIDATE keyword in the file output.
8552 -------------------------------
8553 -- Variable_Reference_Marker --
8554 -------------------------------
8556 -- This node is created during the analysis of direct or expanded names,
8557 -- and the resolution of entry and subprogram calls. It performs several
8558 -- functions:
8560 -- * Variable reference markers provide a uniform model for handling
8561 -- variable references by the ABE mechanism, regardless of whether
8562 -- expansion took place.
8564 -- * The variable reference marker captures the entity of the variable
8565 -- being read or written.
8567 -- * The variable reference markers aid the ABE Processing phase by
8568 -- signaling the presence of a call in case the original variable
8569 -- reference was transformed by expansion.
8571 -- Sprint syntax: r#target# -- for a read
8572 -- rw#target# -- for a read/write
8573 -- w#target# -- for a write
8575 -- The Sprint syntax shown above is not enabled by default
8577 -- N_Variable_Reference_Marker
8578 -- Sloc points to Sloc of original variable reference
8579 -- Target (Node1-Sem)
8580 -- Is_Read (Flag1-Sem)
8581 -- Is_Write (Flag2-Sem)
8583 -----------
8584 -- Empty --
8585 -----------
8587 -- Used as the contents of the Nkind field of the dummy Empty node and in
8588 -- some other situations to indicate an uninitialized value.
8590 -- N_Empty
8591 -- Chars (Name1) is set to No_Name
8593 -----------
8594 -- Error --
8595 -----------
8597 -- Used as the contents of the Nkind field of the dummy Error node.
8598 -- Has an Etype field, which gets set to Any_Type later on, to help
8599 -- error recovery (Error_Posted is also set in the Error node).
8601 -- N_Error
8602 -- Chars (Name1) is set to Error_Name
8603 -- Etype (Node5-Sem)
8605 --------------------------
8606 -- Node Type Definition --
8607 --------------------------
8609 -- The following is the definition of the Node_Kind type. As previously
8610 -- discussed, this is separated off to allow rearrangement of the order to
8611 -- facilitate definition of subtype ranges. The comments show the subtype
8612 -- classes which apply to each set of node kinds. The first entry in the
8613 -- comment characterizes the following list of nodes.
8615 type Node_Kind is (
8616 N_Unused_At_Start,
8618 -- N_Representation_Clause
8620 N_At_Clause,
8621 N_Component_Clause,
8622 N_Enumeration_Representation_Clause,
8623 N_Mod_Clause,
8624 N_Record_Representation_Clause,
8626 -- N_Representation_Clause, N_Has_Chars
8628 N_Attribute_Definition_Clause,
8630 -- N_Has_Chars
8632 N_Empty,
8633 N_Pragma_Argument_Association,
8635 -- N_Has_Etype, N_Has_Chars
8637 -- Note: of course N_Error does not really have Etype or Chars fields,
8638 -- and any attempt to access these fields in N_Error will cause an
8639 -- error, but historically this always has been positioned so that an
8640 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8641 -- Most likely this makes coding easier somewhere but still seems
8642 -- undesirable. To be investigated some time ???
8644 N_Error,
8646 -- N_Entity, N_Has_Etype, N_Has_Chars
8648 N_Defining_Character_Literal,
8649 N_Defining_Identifier,
8650 N_Defining_Operator_Symbol,
8652 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8654 N_Expanded_Name,
8656 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8657 -- N_Has_Chars, N_Has_Entity
8659 N_Identifier,
8660 N_Operator_Symbol,
8662 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8663 -- N_Has_Chars, N_Has_Entity
8665 N_Character_Literal,
8667 -- N_Binary_Op, N_Op, N_Subexpr,
8668 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
8670 N_Op_Add,
8671 N_Op_Concat,
8672 N_Op_Expon,
8673 N_Op_Subtract,
8675 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
8676 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8678 N_Op_Divide,
8679 N_Op_Mod,
8680 N_Op_Multiply,
8681 N_Op_Rem,
8683 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8684 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8686 N_Op_And,
8688 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8689 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8691 N_Op_Eq,
8692 N_Op_Ge,
8693 N_Op_Gt,
8694 N_Op_Le,
8695 N_Op_Lt,
8696 N_Op_Ne,
8698 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8699 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8701 N_Op_Or,
8702 N_Op_Xor,
8704 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8705 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
8707 N_Op_Rotate_Left,
8708 N_Op_Rotate_Right,
8709 N_Op_Shift_Left,
8710 N_Op_Shift_Right,
8711 N_Op_Shift_Right_Arithmetic,
8713 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8714 -- N_Has_Chars, N_Has_Entity
8716 N_Op_Abs,
8717 N_Op_Minus,
8718 N_Op_Not,
8719 N_Op_Plus,
8721 -- N_Subexpr, N_Has_Etype, N_Has_Entity
8723 N_Attribute_Reference,
8725 -- N_Subexpr, N_Has_Etype, N_Membership_Test
8727 N_In,
8728 N_Not_In,
8730 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8732 N_And_Then,
8733 N_Or_Else,
8735 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8737 N_Function_Call,
8738 N_Procedure_Call_Statement,
8740 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8742 N_Raise_Constraint_Error,
8743 N_Raise_Program_Error,
8744 N_Raise_Storage_Error,
8746 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8748 N_Integer_Literal,
8749 N_Real_Literal,
8750 N_String_Literal,
8752 -- N_Subexpr, N_Has_Etype
8754 N_Explicit_Dereference,
8755 N_Expression_With_Actions,
8756 N_If_Expression,
8757 N_Indexed_Component,
8758 N_Null,
8759 N_Qualified_Expression,
8760 N_Quantified_Expression,
8761 N_Aggregate,
8762 N_Allocator,
8763 N_Case_Expression,
8764 N_Delta_Aggregate,
8765 N_Extension_Aggregate,
8766 N_Raise_Expression,
8767 N_Range,
8768 N_Reference,
8769 N_Selected_Component,
8770 N_Slice,
8771 N_Target_Name,
8772 N_Type_Conversion,
8773 N_Unchecked_Expression,
8774 N_Unchecked_Type_Conversion,
8776 -- N_Has_Etype
8778 N_Subtype_Indication,
8780 -- N_Declaration
8782 N_Component_Declaration,
8783 N_Entry_Declaration,
8784 N_Expression_Function,
8785 N_Formal_Object_Declaration,
8786 N_Formal_Type_Declaration,
8787 N_Full_Type_Declaration,
8788 N_Incomplete_Type_Declaration,
8789 N_Iterator_Specification,
8790 N_Loop_Parameter_Specification,
8791 N_Object_Declaration,
8792 N_Protected_Type_Declaration,
8793 N_Private_Extension_Declaration,
8794 N_Private_Type_Declaration,
8795 N_Subtype_Declaration,
8797 -- N_Subprogram_Specification, N_Declaration
8799 N_Function_Specification,
8800 N_Procedure_Specification,
8802 -- N_Access_To_Subprogram_Definition
8804 N_Access_Function_Definition,
8805 N_Access_Procedure_Definition,
8807 -- N_Later_Decl_Item
8809 N_Task_Type_Declaration,
8811 -- N_Body_Stub, N_Later_Decl_Item
8813 N_Package_Body_Stub,
8814 N_Protected_Body_Stub,
8815 N_Subprogram_Body_Stub,
8816 N_Task_Body_Stub,
8818 -- N_Generic_Instantiation, N_Later_Decl_Item
8819 -- N_Subprogram_Instantiation
8821 N_Function_Instantiation,
8822 N_Procedure_Instantiation,
8824 -- N_Generic_Instantiation, N_Later_Decl_Item
8826 N_Package_Instantiation,
8828 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8830 N_Package_Body,
8831 N_Subprogram_Body,
8833 -- N_Later_Decl_Item, N_Proper_Body
8835 N_Protected_Body,
8836 N_Task_Body,
8838 -- N_Later_Decl_Item
8840 N_Implicit_Label_Declaration,
8841 N_Package_Declaration,
8842 N_Single_Task_Declaration,
8843 N_Subprogram_Declaration,
8844 N_Use_Package_Clause,
8846 -- N_Generic_Declaration, N_Later_Decl_Item
8848 N_Generic_Package_Declaration,
8849 N_Generic_Subprogram_Declaration,
8851 -- N_Array_Type_Definition
8853 N_Constrained_Array_Definition,
8854 N_Unconstrained_Array_Definition,
8856 -- N_Renaming_Declaration
8858 N_Exception_Renaming_Declaration,
8859 N_Object_Renaming_Declaration,
8860 N_Package_Renaming_Declaration,
8861 N_Subprogram_Renaming_Declaration,
8863 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8865 N_Generic_Function_Renaming_Declaration,
8866 N_Generic_Package_Renaming_Declaration,
8867 N_Generic_Procedure_Renaming_Declaration,
8869 -- N_Statement_Other_Than_Procedure_Call
8871 N_Abort_Statement,
8872 N_Accept_Statement,
8873 N_Assignment_Statement,
8874 N_Asynchronous_Select,
8875 N_Block_Statement,
8876 N_Case_Statement,
8877 N_Code_Statement,
8878 N_Compound_Statement,
8879 N_Conditional_Entry_Call,
8881 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8883 N_Delay_Relative_Statement,
8884 N_Delay_Until_Statement,
8886 -- N_Statement_Other_Than_Procedure_Call
8888 N_Entry_Call_Statement,
8889 N_Free_Statement,
8890 N_Goto_Statement,
8891 N_Loop_Statement,
8892 N_Null_Statement,
8893 N_Raise_Statement,
8894 N_Requeue_Statement,
8895 N_Simple_Return_Statement,
8896 N_Extended_Return_Statement,
8897 N_Selective_Accept,
8898 N_Timed_Entry_Call,
8900 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8902 N_Exit_Statement,
8903 N_If_Statement,
8905 -- N_Has_Condition
8907 N_Accept_Alternative,
8908 N_Delay_Alternative,
8909 N_Elsif_Part,
8910 N_Entry_Body_Formal_Part,
8911 N_Iteration_Scheme,
8912 N_Terminate_Alternative,
8914 -- N_Formal_Subprogram_Declaration
8916 N_Formal_Abstract_Subprogram_Declaration,
8917 N_Formal_Concrete_Subprogram_Declaration,
8919 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8921 N_Push_Constraint_Error_Label,
8922 N_Push_Program_Error_Label,
8923 N_Push_Storage_Error_Label,
8925 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8927 N_Pop_Constraint_Error_Label,
8928 N_Pop_Program_Error_Label,
8929 N_Pop_Storage_Error_Label,
8931 -- SCIL nodes
8933 N_SCIL_Dispatch_Table_Tag_Init,
8934 N_SCIL_Dispatching_Call,
8935 N_SCIL_Membership_Test,
8937 -- Other nodes (not part of any subtype class)
8939 N_Abortable_Part,
8940 N_Abstract_Subprogram_Declaration,
8941 N_Access_Definition,
8942 N_Access_To_Object_Definition,
8943 N_Aspect_Specification,
8944 N_Call_Marker,
8945 N_Case_Expression_Alternative,
8946 N_Case_Statement_Alternative,
8947 N_Compilation_Unit,
8948 N_Compilation_Unit_Aux,
8949 N_Component_Association,
8950 N_Component_Definition,
8951 N_Component_List,
8952 N_Contract,
8953 N_Derived_Type_Definition,
8954 N_Decimal_Fixed_Point_Definition,
8955 N_Defining_Program_Unit_Name,
8956 N_Delta_Constraint,
8957 N_Designator,
8958 N_Digits_Constraint,
8959 N_Discriminant_Association,
8960 N_Discriminant_Specification,
8961 N_Enumeration_Type_Definition,
8962 N_Entry_Body,
8963 N_Entry_Call_Alternative,
8964 N_Entry_Index_Specification,
8965 N_Exception_Declaration,
8966 N_Exception_Handler,
8967 N_Floating_Point_Definition,
8968 N_Formal_Decimal_Fixed_Point_Definition,
8969 N_Formal_Derived_Type_Definition,
8970 N_Formal_Discrete_Type_Definition,
8971 N_Formal_Floating_Point_Definition,
8972 N_Formal_Modular_Type_Definition,
8973 N_Formal_Ordinary_Fixed_Point_Definition,
8974 N_Formal_Package_Declaration,
8975 N_Formal_Private_Type_Definition,
8976 N_Formal_Incomplete_Type_Definition,
8977 N_Formal_Signed_Integer_Type_Definition,
8978 N_Freeze_Entity,
8979 N_Freeze_Generic_Entity,
8980 N_Generic_Association,
8981 N_Handled_Sequence_Of_Statements,
8982 N_Index_Or_Discriminant_Constraint,
8983 N_Iterated_Component_Association,
8984 N_Itype_Reference,
8985 N_Label,
8986 N_Modular_Type_Definition,
8987 N_Number_Declaration,
8988 N_Ordinary_Fixed_Point_Definition,
8989 N_Others_Choice,
8990 N_Package_Specification,
8991 N_Parameter_Association,
8992 N_Parameter_Specification,
8993 N_Pragma,
8994 N_Protected_Definition,
8995 N_Range_Constraint,
8996 N_Real_Range_Specification,
8997 N_Record_Definition,
8998 N_Signed_Integer_Type_Definition,
8999 N_Single_Protected_Declaration,
9000 N_Subunit,
9001 N_Task_Definition,
9002 N_Triggering_Alternative,
9003 N_Use_Type_Clause,
9004 N_Validate_Unchecked_Conversion,
9005 N_Variable_Reference_Marker,
9006 N_Variant,
9007 N_Variant_Part,
9008 N_With_Clause,
9009 N_Unused_At_End);
9011 for Node_Kind'Size use 8;
9012 -- The data structures in Atree assume this
9014 ----------------------------
9015 -- Node Class Definitions --
9016 ----------------------------
9018 subtype N_Access_To_Subprogram_Definition is Node_Kind range
9019 N_Access_Function_Definition ..
9020 N_Access_Procedure_Definition;
9022 subtype N_Array_Type_Definition is Node_Kind range
9023 N_Constrained_Array_Definition ..
9024 N_Unconstrained_Array_Definition;
9026 subtype N_Binary_Op is Node_Kind range
9027 N_Op_Add ..
9028 N_Op_Shift_Right_Arithmetic;
9030 subtype N_Body_Stub is Node_Kind range
9031 N_Package_Body_Stub ..
9032 N_Task_Body_Stub;
9034 subtype N_Declaration is Node_Kind range
9035 N_Component_Declaration ..
9036 N_Procedure_Specification;
9037 -- Note: this includes all constructs normally thought of as declarations
9038 -- except those which are separately grouped as later declarations.
9040 subtype N_Delay_Statement is Node_Kind range
9041 N_Delay_Relative_Statement ..
9042 N_Delay_Until_Statement;
9044 subtype N_Direct_Name is Node_Kind range
9045 N_Identifier ..
9046 N_Character_Literal;
9048 subtype N_Entity is Node_Kind range
9049 N_Defining_Character_Literal ..
9050 N_Defining_Operator_Symbol;
9052 subtype N_Formal_Subprogram_Declaration is Node_Kind range
9053 N_Formal_Abstract_Subprogram_Declaration ..
9054 N_Formal_Concrete_Subprogram_Declaration;
9056 subtype N_Generic_Declaration is Node_Kind range
9057 N_Generic_Package_Declaration ..
9058 N_Generic_Subprogram_Declaration;
9060 subtype N_Generic_Instantiation is Node_Kind range
9061 N_Function_Instantiation ..
9062 N_Package_Instantiation;
9064 subtype N_Generic_Renaming_Declaration is Node_Kind range
9065 N_Generic_Function_Renaming_Declaration ..
9066 N_Generic_Procedure_Renaming_Declaration;
9068 subtype N_Has_Chars is Node_Kind range
9069 N_Attribute_Definition_Clause ..
9070 N_Op_Plus;
9072 subtype N_Has_Entity is Node_Kind range
9073 N_Expanded_Name ..
9074 N_Attribute_Reference;
9075 -- Nodes that have Entity fields
9076 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
9077 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
9079 subtype N_Has_Etype is Node_Kind range
9080 N_Error ..
9081 N_Subtype_Indication;
9083 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
9084 N_Op_Divide ..
9085 N_Op_Rem;
9087 subtype N_Multiplying_Operator is Node_Kind range
9088 N_Op_Divide ..
9089 N_Op_Rem;
9091 subtype N_Later_Decl_Item is Node_Kind range
9092 N_Task_Type_Declaration ..
9093 N_Generic_Subprogram_Declaration;
9094 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
9095 -- only those items which can appear as later declarative items. This also
9096 -- includes N_Implicit_Label_Declaration which is not specifically in the
9097 -- grammar but may appear as a valid later declarative items. It does NOT
9098 -- include N_Pragma which can also appear among later declarative items.
9099 -- It does however include N_Protected_Body, which is a bit peculiar, but
9100 -- harmless since this cannot appear in Ada 83 mode anyway.
9102 subtype N_Membership_Test is Node_Kind range
9103 N_In ..
9104 N_Not_In;
9106 subtype N_Numeric_Or_String_Literal is Node_Kind range
9107 N_Integer_Literal ..
9108 N_String_Literal;
9110 subtype N_Op is Node_Kind range
9111 N_Op_Add ..
9112 N_Op_Plus;
9114 subtype N_Op_Boolean is Node_Kind range
9115 N_Op_And ..
9116 N_Op_Xor;
9117 -- Binary operators which take operands of a boolean type, and yield
9118 -- a result of a boolean type.
9120 subtype N_Op_Compare is Node_Kind range
9121 N_Op_Eq ..
9122 N_Op_Ne;
9124 subtype N_Op_Shift is Node_Kind range
9125 N_Op_Rotate_Left ..
9126 N_Op_Shift_Right_Arithmetic;
9128 subtype N_Proper_Body is Node_Kind range
9129 N_Package_Body ..
9130 N_Task_Body;
9132 subtype N_Push_xxx_Label is Node_Kind range
9133 N_Push_Constraint_Error_Label ..
9134 N_Push_Storage_Error_Label;
9136 subtype N_Pop_xxx_Label is Node_Kind range
9137 N_Pop_Constraint_Error_Label ..
9138 N_Pop_Storage_Error_Label;
9140 subtype N_Push_Pop_xxx_Label is Node_Kind range
9141 N_Push_Constraint_Error_Label ..
9142 N_Pop_Storage_Error_Label;
9144 subtype N_Raise_xxx_Error is Node_Kind range
9145 N_Raise_Constraint_Error ..
9146 N_Raise_Storage_Error;
9148 subtype N_Renaming_Declaration is Node_Kind range
9149 N_Exception_Renaming_Declaration ..
9150 N_Generic_Procedure_Renaming_Declaration;
9152 subtype N_Representation_Clause is Node_Kind range
9153 N_At_Clause ..
9154 N_Attribute_Definition_Clause;
9156 subtype N_Short_Circuit is Node_Kind range
9157 N_And_Then ..
9158 N_Or_Else;
9160 subtype N_SCIL_Node is Node_Kind range
9161 N_SCIL_Dispatch_Table_Tag_Init ..
9162 N_SCIL_Membership_Test;
9164 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
9165 N_Abort_Statement ..
9166 N_If_Statement;
9167 -- Note that this includes all statement types except for the cases of the
9168 -- N_Procedure_Call_Statement which is considered to be a subexpression
9169 -- (since overloading is possible, so it needs to go through the normal
9170 -- overloading resolution for expressions).
9172 subtype N_Subprogram_Call is Node_Kind range
9173 N_Function_Call ..
9174 N_Procedure_Call_Statement;
9176 subtype N_Subprogram_Instantiation is Node_Kind range
9177 N_Function_Instantiation ..
9178 N_Procedure_Instantiation;
9180 subtype N_Has_Condition is Node_Kind range
9181 N_Exit_Statement ..
9182 N_Terminate_Alternative;
9183 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
9185 subtype N_Subexpr is Node_Kind range
9186 N_Expanded_Name ..
9187 N_Unchecked_Type_Conversion;
9188 -- Nodes with expression fields
9190 subtype N_Subprogram_Specification is Node_Kind range
9191 N_Function_Specification ..
9192 N_Procedure_Specification;
9194 subtype N_Unary_Op is Node_Kind range
9195 N_Op_Abs ..
9196 N_Op_Plus;
9198 subtype N_Unit_Body is Node_Kind range
9199 N_Package_Body ..
9200 N_Subprogram_Body;
9202 ---------------------------
9203 -- Node Access Functions --
9204 ---------------------------
9206 -- The following functions return the contents of the indicated field of
9207 -- the node referenced by the argument, which is a Node_Id. They provide
9208 -- logical access to fields in the node which could be accessed using the
9209 -- Atree.Unchecked_Access package, but the idea is always to use these
9210 -- higher level routines which preserve strong typing. In debug mode,
9211 -- these routines check that they are being applied to an appropriate
9212 -- node, as well as checking that the node is in range.
9214 function Abort_Present
9215 (N : Node_Id) return Boolean; -- Flag15
9217 function Abortable_Part
9218 (N : Node_Id) return Node_Id; -- Node2
9220 function Abstract_Present
9221 (N : Node_Id) return Boolean; -- Flag4
9223 function Accept_Handler_Records
9224 (N : Node_Id) return List_Id; -- List5
9226 function Accept_Statement
9227 (N : Node_Id) return Node_Id; -- Node2
9229 function Access_Definition
9230 (N : Node_Id) return Node_Id; -- Node3
9232 function Access_To_Subprogram_Definition
9233 (N : Node_Id) return Node_Id; -- Node3
9235 function Access_Types_To_Process
9236 (N : Node_Id) return Elist_Id; -- Elist2
9238 function Actions
9239 (N : Node_Id) return List_Id; -- List1
9241 function Activation_Chain_Entity
9242 (N : Node_Id) return Node_Id; -- Node3
9244 function Acts_As_Spec
9245 (N : Node_Id) return Boolean; -- Flag4
9247 function Actual_Designated_Subtype
9248 (N : Node_Id) return Node_Id; -- Node4
9250 function Address_Warning_Posted
9251 (N : Node_Id) return Boolean; -- Flag18
9253 function Aggregate_Bounds
9254 (N : Node_Id) return Node_Id; -- Node3
9256 function Aliased_Present
9257 (N : Node_Id) return Boolean; -- Flag4
9259 function Alloc_For_BIP_Return
9260 (N : Node_Id) return Boolean; -- Flag1
9262 function All_Others
9263 (N : Node_Id) return Boolean; -- Flag11
9265 function All_Present
9266 (N : Node_Id) return Boolean; -- Flag15
9268 function Alternatives
9269 (N : Node_Id) return List_Id; -- List4
9271 function Ancestor_Part
9272 (N : Node_Id) return Node_Id; -- Node3
9274 function Atomic_Sync_Required
9275 (N : Node_Id) return Boolean; -- Flag14
9277 function Array_Aggregate
9278 (N : Node_Id) return Node_Id; -- Node3
9280 function Aspect_Rep_Item
9281 (N : Node_Id) return Node_Id; -- Node2
9283 function Assignment_OK
9284 (N : Node_Id) return Boolean; -- Flag15
9286 function Associated_Node
9287 (N : Node_Id) return Node_Id; -- Node4
9289 function At_End_Proc
9290 (N : Node_Id) return Node_Id; -- Node1
9292 function Attribute_Name
9293 (N : Node_Id) return Name_Id; -- Name2
9295 function Aux_Decls_Node
9296 (N : Node_Id) return Node_Id; -- Node5
9298 function Backwards_OK
9299 (N : Node_Id) return Boolean; -- Flag6
9301 function Bad_Is_Detected
9302 (N : Node_Id) return Boolean; -- Flag15
9304 function By_Ref
9305 (N : Node_Id) return Boolean; -- Flag5
9307 function Body_Required
9308 (N : Node_Id) return Boolean; -- Flag13
9310 function Body_To_Inline
9311 (N : Node_Id) return Node_Id; -- Node3
9313 function Box_Present
9314 (N : Node_Id) return Boolean; -- Flag15
9316 function Char_Literal_Value
9317 (N : Node_Id) return Uint; -- Uint2
9319 function Chars
9320 (N : Node_Id) return Name_Id; -- Name1
9322 function Check_Address_Alignment
9323 (N : Node_Id) return Boolean; -- Flag11
9325 function Choice_Parameter
9326 (N : Node_Id) return Node_Id; -- Node2
9328 function Choices
9329 (N : Node_Id) return List_Id; -- List1
9331 function Class_Present
9332 (N : Node_Id) return Boolean; -- Flag6
9334 function Classifications
9335 (N : Node_Id) return Node_Id; -- Node3
9337 function Cleanup_Actions
9338 (N : Node_Id) return List_Id; -- List5
9340 function Comes_From_Extended_Return_Statement
9341 (N : Node_Id) return Boolean; -- Flag18
9343 function Compile_Time_Known_Aggregate
9344 (N : Node_Id) return Boolean; -- Flag18
9346 function Component_Associations
9347 (N : Node_Id) return List_Id; -- List2
9349 function Component_Clauses
9350 (N : Node_Id) return List_Id; -- List3
9352 function Component_Definition
9353 (N : Node_Id) return Node_Id; -- Node4
9355 function Component_Items
9356 (N : Node_Id) return List_Id; -- List3
9358 function Component_List
9359 (N : Node_Id) return Node_Id; -- Node1
9361 function Component_Name
9362 (N : Node_Id) return Node_Id; -- Node1
9364 function Componentwise_Assignment
9365 (N : Node_Id) return Boolean; -- Flag14
9367 function Condition
9368 (N : Node_Id) return Node_Id; -- Node1
9370 function Condition_Actions
9371 (N : Node_Id) return List_Id; -- List3
9373 function Config_Pragmas
9374 (N : Node_Id) return List_Id; -- List4
9376 function Constant_Present
9377 (N : Node_Id) return Boolean; -- Flag17
9379 function Constraint
9380 (N : Node_Id) return Node_Id; -- Node3
9382 function Constraints
9383 (N : Node_Id) return List_Id; -- List1
9385 function Context_Installed
9386 (N : Node_Id) return Boolean; -- Flag13
9388 function Context_Pending
9389 (N : Node_Id) return Boolean; -- Flag16
9391 function Context_Items
9392 (N : Node_Id) return List_Id; -- List1
9394 function Contract_Test_Cases
9395 (N : Node_Id) return Node_Id; -- Node2
9397 function Controlling_Argument
9398 (N : Node_Id) return Node_Id; -- Node1
9400 function Conversion_OK
9401 (N : Node_Id) return Boolean; -- Flag14
9403 function Convert_To_Return_False
9404 (N : Node_Id) return Boolean; -- Flag13
9406 function Corresponding_Aspect
9407 (N : Node_Id) return Node_Id; -- Node3
9409 function Corresponding_Body
9410 (N : Node_Id) return Node_Id; -- Node5
9412 function Corresponding_Formal_Spec
9413 (N : Node_Id) return Node_Id; -- Node3
9415 function Corresponding_Generic_Association
9416 (N : Node_Id) return Node_Id; -- Node5
9418 function Corresponding_Integer_Value
9419 (N : Node_Id) return Uint; -- Uint4
9421 function Corresponding_Spec
9422 (N : Node_Id) return Entity_Id; -- Node5
9424 function Corresponding_Spec_Of_Stub
9425 (N : Node_Id) return Node_Id; -- Node2
9427 function Corresponding_Stub
9428 (N : Node_Id) return Node_Id; -- Node3
9430 function Dcheck_Function
9431 (N : Node_Id) return Entity_Id; -- Node5
9433 function Declarations
9434 (N : Node_Id) return List_Id; -- List2
9436 function Default_Expression
9437 (N : Node_Id) return Node_Id; -- Node5
9439 function Default_Storage_Pool
9440 (N : Node_Id) return Node_Id; -- Node3
9442 function Default_Name
9443 (N : Node_Id) return Node_Id; -- Node2
9445 function Defining_Identifier
9446 (N : Node_Id) return Entity_Id; -- Node1
9448 function Defining_Unit_Name
9449 (N : Node_Id) return Node_Id; -- Node1
9451 function Delay_Alternative
9452 (N : Node_Id) return Node_Id; -- Node4
9454 function Delay_Statement
9455 (N : Node_Id) return Node_Id; -- Node2
9457 function Delta_Expression
9458 (N : Node_Id) return Node_Id; -- Node3
9460 function Digits_Expression
9461 (N : Node_Id) return Node_Id; -- Node2
9463 function Discr_Check_Funcs_Built
9464 (N : Node_Id) return Boolean; -- Flag11
9466 function Discrete_Choices
9467 (N : Node_Id) return List_Id; -- List4
9469 function Discrete_Range
9470 (N : Node_Id) return Node_Id; -- Node4
9472 function Discrete_Subtype_Definition
9473 (N : Node_Id) return Node_Id; -- Node4
9475 function Discrete_Subtype_Definitions
9476 (N : Node_Id) return List_Id; -- List2
9478 function Discriminant_Specifications
9479 (N : Node_Id) return List_Id; -- List4
9481 function Discriminant_Type
9482 (N : Node_Id) return Node_Id; -- Node5
9484 function Do_Accessibility_Check
9485 (N : Node_Id) return Boolean; -- Flag13
9487 function Do_Discriminant_Check
9488 (N : Node_Id) return Boolean; -- Flag3
9490 function Do_Division_Check
9491 (N : Node_Id) return Boolean; -- Flag13
9493 function Do_Length_Check
9494 (N : Node_Id) return Boolean; -- Flag4
9496 function Do_Overflow_Check
9497 (N : Node_Id) return Boolean; -- Flag17
9499 function Do_Range_Check
9500 (N : Node_Id) return Boolean; -- Flag9
9502 function Do_Storage_Check
9503 (N : Node_Id) return Boolean; -- Flag17
9505 function Do_Tag_Check
9506 (N : Node_Id) return Boolean; -- Flag13
9508 function Elaborate_All_Desirable
9509 (N : Node_Id) return Boolean; -- Flag9
9511 function Elaborate_All_Present
9512 (N : Node_Id) return Boolean; -- Flag14
9514 function Elaborate_Desirable
9515 (N : Node_Id) return Boolean; -- Flag11
9517 function Elaborate_Present
9518 (N : Node_Id) return Boolean; -- Flag4
9520 function Else_Actions
9521 (N : Node_Id) return List_Id; -- List3
9523 function Else_Statements
9524 (N : Node_Id) return List_Id; -- List4
9526 function Elsif_Parts
9527 (N : Node_Id) return List_Id; -- List3
9529 function Enclosing_Variant
9530 (N : Node_Id) return Node_Id; -- Node2
9532 function End_Label
9533 (N : Node_Id) return Node_Id; -- Node4
9535 function End_Span
9536 (N : Node_Id) return Uint; -- Uint5
9538 function Entity
9539 (N : Node_Id) return Node_Id; -- Node4
9541 function Entity_Or_Associated_Node
9542 (N : Node_Id) return Node_Id; -- Node4
9544 function Entry_Body_Formal_Part
9545 (N : Node_Id) return Node_Id; -- Node5
9547 function Entry_Call_Alternative
9548 (N : Node_Id) return Node_Id; -- Node1
9550 function Entry_Call_Statement
9551 (N : Node_Id) return Node_Id; -- Node1
9553 function Entry_Direct_Name
9554 (N : Node_Id) return Node_Id; -- Node1
9556 function Entry_Index
9557 (N : Node_Id) return Node_Id; -- Node5
9559 function Entry_Index_Specification
9560 (N : Node_Id) return Node_Id; -- Node4
9562 function Etype
9563 (N : Node_Id) return Node_Id; -- Node5
9565 function Exception_Choices
9566 (N : Node_Id) return List_Id; -- List4
9568 function Exception_Handlers
9569 (N : Node_Id) return List_Id; -- List5
9571 function Exception_Junk
9572 (N : Node_Id) return Boolean; -- Flag8
9574 function Exception_Label
9575 (N : Node_Id) return Node_Id; -- Node5
9577 function Explicit_Actual_Parameter
9578 (N : Node_Id) return Node_Id; -- Node3
9580 function Expansion_Delayed
9581 (N : Node_Id) return Boolean; -- Flag11
9583 function Explicit_Generic_Actual_Parameter
9584 (N : Node_Id) return Node_Id; -- Node1
9586 function Expression
9587 (N : Node_Id) return Node_Id; -- Node3
9589 function Expression_Copy
9590 (N : Node_Id) return Node_Id; -- Node2
9592 function Expressions
9593 (N : Node_Id) return List_Id; -- List1
9595 function First_Bit
9596 (N : Node_Id) return Node_Id; -- Node3
9598 function First_Inlined_Subprogram
9599 (N : Node_Id) return Entity_Id; -- Node3
9601 function First_Name
9602 (N : Node_Id) return Boolean; -- Flag5
9604 function First_Named_Actual
9605 (N : Node_Id) return Node_Id; -- Node4
9607 function First_Real_Statement
9608 (N : Node_Id) return Node_Id; -- Node2
9610 function First_Subtype_Link
9611 (N : Node_Id) return Entity_Id; -- Node5
9613 function Float_Truncate
9614 (N : Node_Id) return Boolean; -- Flag11
9616 function Formal_Type_Definition
9617 (N : Node_Id) return Node_Id; -- Node3
9619 function Forwards_OK
9620 (N : Node_Id) return Boolean; -- Flag5
9622 function From_Aspect_Specification
9623 (N : Node_Id) return Boolean; -- Flag13
9625 function From_At_End
9626 (N : Node_Id) return Boolean; -- Flag4
9628 function From_At_Mod
9629 (N : Node_Id) return Boolean; -- Flag4
9631 function From_Conditional_Expression
9632 (N : Node_Id) return Boolean; -- Flag1
9634 function From_Default
9635 (N : Node_Id) return Boolean; -- Flag6
9637 function Generalized_Indexing
9638 (N : Node_Id) return Node_Id; -- Node4
9640 function Generic_Associations
9641 (N : Node_Id) return List_Id; -- List3
9643 function Generic_Formal_Declarations
9644 (N : Node_Id) return List_Id; -- List2
9646 function Generic_Parent
9647 (N : Node_Id) return Node_Id; -- Node5
9649 function Generic_Parent_Type
9650 (N : Node_Id) return Node_Id; -- Node4
9652 function Handled_Statement_Sequence
9653 (N : Node_Id) return Node_Id; -- Node4
9655 function Handler_List_Entry
9656 (N : Node_Id) return Node_Id; -- Node2
9658 function Has_Created_Identifier
9659 (N : Node_Id) return Boolean; -- Flag15
9661 function Has_Dereference_Action
9662 (N : Node_Id) return Boolean; -- Flag13
9664 function Has_Dynamic_Length_Check
9665 (N : Node_Id) return Boolean; -- Flag10
9667 function Has_Dynamic_Range_Check
9668 (N : Node_Id) return Boolean; -- Flag12
9670 function Has_Init_Expression
9671 (N : Node_Id) return Boolean; -- Flag14
9673 function Has_Local_Raise
9674 (N : Node_Id) return Boolean; -- Flag8
9676 function Has_No_Elaboration_Code
9677 (N : Node_Id) return Boolean; -- Flag17
9679 function Has_Pragma_Suppress_All
9680 (N : Node_Id) return Boolean; -- Flag14
9682 function Has_Private_View
9683 (N : Node_Id) return Boolean; -- Flag11
9685 function Has_Relative_Deadline_Pragma
9686 (N : Node_Id) return Boolean; -- Flag9
9688 function Has_Self_Reference
9689 (N : Node_Id) return Boolean; -- Flag13
9691 function Has_SP_Choice
9692 (N : Node_Id) return Boolean; -- Flag15
9694 function Has_Storage_Size_Pragma
9695 (N : Node_Id) return Boolean; -- Flag5
9697 function Has_Target_Names
9698 (N : Node_Id) return Boolean; -- Flag8
9700 function Has_Wide_Character
9701 (N : Node_Id) return Boolean; -- Flag11
9703 function Has_Wide_Wide_Character
9704 (N : Node_Id) return Boolean; -- Flag13
9706 function Header_Size_Added
9707 (N : Node_Id) return Boolean; -- Flag11
9709 function Hidden_By_Use_Clause
9710 (N : Node_Id) return Elist_Id; -- Elist5
9712 function High_Bound
9713 (N : Node_Id) return Node_Id; -- Node2
9715 function Identifier
9716 (N : Node_Id) return Node_Id; -- Node1
9718 function Interface_List
9719 (N : Node_Id) return List_Id; -- List2
9721 function Interface_Present
9722 (N : Node_Id) return Boolean; -- Flag16
9724 function Implicit_With
9725 (N : Node_Id) return Boolean; -- Flag16
9727 function Import_Interface_Present
9728 (N : Node_Id) return Boolean; -- Flag16
9730 function In_Present
9731 (N : Node_Id) return Boolean; -- Flag15
9733 function Includes_Infinities
9734 (N : Node_Id) return Boolean; -- Flag11
9736 function Incomplete_View
9737 (N : Node_Id) return Node_Id; -- Node2
9739 function Inherited_Discriminant
9740 (N : Node_Id) return Boolean; -- Flag13
9742 function Instance_Spec
9743 (N : Node_Id) return Node_Id; -- Node5
9745 function Intval
9746 (N : Node_Id) return Uint; -- Uint3
9748 function Is_Abort_Block
9749 (N : Node_Id) return Boolean; -- Flag4
9751 function Is_Accessibility_Actual
9752 (N : Node_Id) return Boolean; -- Flag13
9754 function Is_Analyzed_Pragma
9755 (N : Node_Id) return Boolean; -- Flag5
9757 function Is_Asynchronous_Call_Block
9758 (N : Node_Id) return Boolean; -- Flag7
9760 function Is_Boolean_Aspect
9761 (N : Node_Id) return Boolean; -- Flag16
9763 function Is_Checked
9764 (N : Node_Id) return Boolean; -- Flag11
9766 function Is_Checked_Ghost_Pragma
9767 (N : Node_Id) return Boolean; -- Flag3
9769 function Is_Component_Left_Opnd
9770 (N : Node_Id) return Boolean; -- Flag13
9772 function Is_Component_Right_Opnd
9773 (N : Node_Id) return Boolean; -- Flag14
9775 function Is_Controlling_Actual
9776 (N : Node_Id) return Boolean; -- Flag16
9778 function Is_Declaration_Level_Node
9779 (N : Node_Id) return Boolean; -- Flag5
9781 function Is_Delayed_Aspect
9782 (N : Node_Id) return Boolean; -- Flag14
9784 function Is_Disabled
9785 (N : Node_Id) return Boolean; -- Flag15
9787 function Is_Dispatching_Call
9788 (N : Node_Id) return Boolean; -- Flag6
9790 function Is_Dynamic_Coextension
9791 (N : Node_Id) return Boolean; -- Flag18
9793 function Is_Effective_Use_Clause
9794 (N : Node_Id) return Boolean; -- Flag1
9796 function Is_Elaboration_Checks_OK_Node
9797 (N : Node_Id) return Boolean; -- Flag1
9799 function Is_Elaboration_Code
9800 (N : Node_Id) return Boolean; -- Flag9
9802 function Is_Elaboration_Warnings_OK_Node
9803 (N : Node_Id) return Boolean; -- Flag3
9805 function Is_Elsif
9806 (N : Node_Id) return Boolean; -- Flag13
9808 function Is_Entry_Barrier_Function
9809 (N : Node_Id) return Boolean; -- Flag8
9811 function Is_Expanded_Build_In_Place_Call
9812 (N : Node_Id) return Boolean; -- Flag11
9814 function Is_Expanded_Contract
9815 (N : Node_Id) return Boolean; -- Flag1
9817 function Is_Finalization_Wrapper
9818 (N : Node_Id) return Boolean; -- Flag9
9820 function Is_Folded_In_Parser
9821 (N : Node_Id) return Boolean; -- Flag4
9823 function Is_Generic_Contract_Pragma
9824 (N : Node_Id) return Boolean; -- Flag2
9826 function Is_Ignored
9827 (N : Node_Id) return Boolean; -- Flag9
9829 function Is_Ignored_Ghost_Pragma
9830 (N : Node_Id) return Boolean; -- Flag8
9832 function Is_In_Discriminant_Check
9833 (N : Node_Id) return Boolean; -- Flag11
9835 function Is_Inherited_Pragma
9836 (N : Node_Id) return Boolean; -- Flag4
9838 function Is_Initialization_Block
9839 (N : Node_Id) return Boolean; -- Flag1
9841 function Is_Known_Guaranteed_ABE
9842 (N : Node_Id) return Boolean; -- Flag18
9844 function Is_Machine_Number
9845 (N : Node_Id) return Boolean; -- Flag11
9847 function Is_Null_Loop
9848 (N : Node_Id) return Boolean; -- Flag16
9850 function Is_Overloaded
9851 (N : Node_Id) return Boolean; -- Flag5
9853 function Is_Power_Of_2_For_Shift
9854 (N : Node_Id) return Boolean; -- Flag13
9856 function Is_Prefixed_Call
9857 (N : Node_Id) return Boolean; -- Flag17
9859 function Is_Protected_Subprogram_Body
9860 (N : Node_Id) return Boolean; -- Flag7
9862 function Is_Qualified_Universal_Literal
9863 (N : Node_Id) return Boolean; -- Flag4
9865 function Is_Read
9866 (N : Node_Id) return Boolean; -- Flag1
9868 function Is_Source_Call
9869 (N : Node_Id) return Boolean; -- Flag4
9871 function Is_SPARK_Mode_On_Node
9872 (N : Node_Id) return Boolean; -- Flag2
9874 function Is_Static_Coextension
9875 (N : Node_Id) return Boolean; -- Flag14
9877 function Is_Static_Expression
9878 (N : Node_Id) return Boolean; -- Flag6
9880 function Is_Subprogram_Descriptor
9881 (N : Node_Id) return Boolean; -- Flag16
9883 function Is_Task_Allocation_Block
9884 (N : Node_Id) return Boolean; -- Flag6
9886 function Is_Task_Body_Procedure
9887 (N : Node_Id) return Boolean; -- Flag1
9889 function Is_Task_Master
9890 (N : Node_Id) return Boolean; -- Flag5
9892 function Is_Write
9893 (N : Node_Id) return Boolean; -- Flag2
9895 function Iteration_Scheme
9896 (N : Node_Id) return Node_Id; -- Node2
9898 function Iterator_Specification
9899 (N : Node_Id) return Node_Id; -- Node2
9901 function Itype
9902 (N : Node_Id) return Entity_Id; -- Node1
9904 function Kill_Range_Check
9905 (N : Node_Id) return Boolean; -- Flag11
9907 function Label_Construct
9908 (N : Node_Id) return Node_Id; -- Node2
9910 function Left_Opnd
9911 (N : Node_Id) return Node_Id; -- Node2
9913 function Last_Bit
9914 (N : Node_Id) return Node_Id; -- Node4
9916 function Last_Name
9917 (N : Node_Id) return Boolean; -- Flag6
9919 function Library_Unit
9920 (N : Node_Id) return Node_Id; -- Node4
9922 function Limited_View_Installed
9923 (N : Node_Id) return Boolean; -- Flag18
9925 function Limited_Present
9926 (N : Node_Id) return Boolean; -- Flag17
9928 function Literals
9929 (N : Node_Id) return List_Id; -- List1
9931 function Local_Raise_Not_OK
9932 (N : Node_Id) return Boolean; -- Flag7
9934 function Local_Raise_Statements
9935 (N : Node_Id) return Elist_Id; -- Elist1
9937 function Loop_Actions
9938 (N : Node_Id) return List_Id; -- List2
9940 function Loop_Parameter_Specification
9941 (N : Node_Id) return Node_Id; -- Node4
9943 function Low_Bound
9944 (N : Node_Id) return Node_Id; -- Node1
9946 function Mod_Clause
9947 (N : Node_Id) return Node_Id; -- Node2
9949 function More_Ids
9950 (N : Node_Id) return Boolean; -- Flag5
9952 function Must_Be_Byte_Aligned
9953 (N : Node_Id) return Boolean; -- Flag14
9955 function Must_Not_Freeze
9956 (N : Node_Id) return Boolean; -- Flag8
9958 function Must_Not_Override
9959 (N : Node_Id) return Boolean; -- Flag15
9961 function Must_Override
9962 (N : Node_Id) return Boolean; -- Flag14
9964 function Name
9965 (N : Node_Id) return Node_Id; -- Node2
9967 function Names
9968 (N : Node_Id) return List_Id; -- List2
9970 function Next_Entity
9971 (N : Node_Id) return Node_Id; -- Node2
9973 function Next_Exit_Statement
9974 (N : Node_Id) return Node_Id; -- Node3
9976 function Next_Implicit_With
9977 (N : Node_Id) return Node_Id; -- Node3
9979 function Next_Named_Actual
9980 (N : Node_Id) return Node_Id; -- Node4
9982 function Next_Pragma
9983 (N : Node_Id) return Node_Id; -- Node1
9985 function Next_Rep_Item
9986 (N : Node_Id) return Node_Id; -- Node5
9988 function Next_Use_Clause
9989 (N : Node_Id) return Node_Id; -- Node3
9991 function No_Ctrl_Actions
9992 (N : Node_Id) return Boolean; -- Flag7
9994 function No_Elaboration_Check
9995 (N : Node_Id) return Boolean; -- Flag4
9997 function No_Entities_Ref_In_Spec
9998 (N : Node_Id) return Boolean; -- Flag8
10000 function No_Initialization
10001 (N : Node_Id) return Boolean; -- Flag13
10003 function No_Minimize_Eliminate
10004 (N : Node_Id) return Boolean; -- Flag17
10006 function No_Side_Effect_Removal
10007 (N : Node_Id) return Boolean; -- Flag17
10009 function No_Truncation
10010 (N : Node_Id) return Boolean; -- Flag17
10012 function Null_Excluding_Subtype
10013 (N : Node_Id) return Boolean; -- Flag16
10015 function Null_Exclusion_Present
10016 (N : Node_Id) return Boolean; -- Flag11
10018 function Null_Exclusion_In_Return_Present
10019 (N : Node_Id) return Boolean; -- Flag14
10021 function Null_Present
10022 (N : Node_Id) return Boolean; -- Flag13
10024 function Null_Record_Present
10025 (N : Node_Id) return Boolean; -- Flag17
10027 function Null_Statement
10028 (N : Node_Id) return Node_Id; -- Node2
10030 function Object_Definition
10031 (N : Node_Id) return Node_Id; -- Node4
10033 function Of_Present
10034 (N : Node_Id) return Boolean; -- Flag16
10036 function Original_Discriminant
10037 (N : Node_Id) return Node_Id; -- Node2
10039 function Original_Entity
10040 (N : Node_Id) return Entity_Id; -- Node2
10042 function Others_Discrete_Choices
10043 (N : Node_Id) return List_Id; -- List1
10045 function Out_Present
10046 (N : Node_Id) return Boolean; -- Flag17
10048 function Parameter_Associations
10049 (N : Node_Id) return List_Id; -- List3
10051 function Parameter_Specifications
10052 (N : Node_Id) return List_Id; -- List3
10054 function Parameter_Type
10055 (N : Node_Id) return Node_Id; -- Node2
10057 function Parent_Spec
10058 (N : Node_Id) return Node_Id; -- Node4
10060 function Parent_With
10061 (N : Node_Id) return Boolean; -- Flag1
10063 function Position
10064 (N : Node_Id) return Node_Id; -- Node2
10066 function Pragma_Argument_Associations
10067 (N : Node_Id) return List_Id; -- List2
10069 function Pragma_Identifier
10070 (N : Node_Id) return Node_Id; -- Node4
10072 function Pragmas_After
10073 (N : Node_Id) return List_Id; -- List5
10075 function Pragmas_Before
10076 (N : Node_Id) return List_Id; -- List4
10078 function Pre_Post_Conditions
10079 (N : Node_Id) return Node_Id; -- Node1
10081 function Prefix
10082 (N : Node_Id) return Node_Id; -- Node3
10084 function Premature_Use
10085 (N : Node_Id) return Node_Id; -- Node5
10087 function Present_Expr
10088 (N : Node_Id) return Uint; -- Uint3
10090 function Prev_Ids
10091 (N : Node_Id) return Boolean; -- Flag6
10093 function Prev_Use_Clause
10094 (N : Node_Id) return Node_Id; -- Node1
10096 function Print_In_Hex
10097 (N : Node_Id) return Boolean; -- Flag13
10099 function Private_Declarations
10100 (N : Node_Id) return List_Id; -- List3
10102 function Private_Present
10103 (N : Node_Id) return Boolean; -- Flag15
10105 function Procedure_To_Call
10106 (N : Node_Id) return Node_Id; -- Node2
10108 function Proper_Body
10109 (N : Node_Id) return Node_Id; -- Node1
10111 function Protected_Definition
10112 (N : Node_Id) return Node_Id; -- Node3
10114 function Protected_Present
10115 (N : Node_Id) return Boolean; -- Flag6
10117 function Raises_Constraint_Error
10118 (N : Node_Id) return Boolean; -- Flag7
10120 function Range_Constraint
10121 (N : Node_Id) return Node_Id; -- Node4
10123 function Range_Expression
10124 (N : Node_Id) return Node_Id; -- Node4
10126 function Real_Range_Specification
10127 (N : Node_Id) return Node_Id; -- Node4
10129 function Realval
10130 (N : Node_Id) return Ureal; -- Ureal3
10132 function Reason
10133 (N : Node_Id) return Uint; -- Uint3
10135 function Record_Extension_Part
10136 (N : Node_Id) return Node_Id; -- Node3
10138 function Redundant_Use
10139 (N : Node_Id) return Boolean; -- Flag13
10141 function Renaming_Exception
10142 (N : Node_Id) return Node_Id; -- Node2
10144 function Result_Definition
10145 (N : Node_Id) return Node_Id; -- Node4
10147 function Return_Object_Declarations
10148 (N : Node_Id) return List_Id; -- List3
10150 function Return_Statement_Entity
10151 (N : Node_Id) return Node_Id; -- Node5
10153 function Reverse_Present
10154 (N : Node_Id) return Boolean; -- Flag15
10156 function Right_Opnd
10157 (N : Node_Id) return Node_Id; -- Node3
10159 function Rounded_Result
10160 (N : Node_Id) return Boolean; -- Flag18
10162 function SCIL_Controlling_Tag
10163 (N : Node_Id) return Node_Id; -- Node5
10165 function SCIL_Entity
10166 (N : Node_Id) return Node_Id; -- Node4
10168 function SCIL_Tag_Value
10169 (N : Node_Id) return Node_Id; -- Node5
10171 function SCIL_Target_Prim
10172 (N : Node_Id) return Node_Id; -- Node2
10174 function Scope
10175 (N : Node_Id) return Node_Id; -- Node3
10177 function Select_Alternatives
10178 (N : Node_Id) return List_Id; -- List1
10180 function Selector_Name
10181 (N : Node_Id) return Node_Id; -- Node2
10183 function Selector_Names
10184 (N : Node_Id) return List_Id; -- List1
10186 function Shift_Count_OK
10187 (N : Node_Id) return Boolean; -- Flag4
10189 function Source_Type
10190 (N : Node_Id) return Entity_Id; -- Node1
10192 function Specification
10193 (N : Node_Id) return Node_Id; -- Node1
10195 function Split_PPC
10196 (N : Node_Id) return Boolean; -- Flag17
10198 function Statements
10199 (N : Node_Id) return List_Id; -- List3
10201 function Storage_Pool
10202 (N : Node_Id) return Node_Id; -- Node1
10204 function Subpool_Handle_Name
10205 (N : Node_Id) return Node_Id; -- Node4
10207 function Strval
10208 (N : Node_Id) return String_Id; -- Str3
10210 function Subtype_Indication
10211 (N : Node_Id) return Node_Id; -- Node5
10213 function Subtype_Mark
10214 (N : Node_Id) return Node_Id; -- Node4
10216 function Subtype_Marks
10217 (N : Node_Id) return List_Id; -- List2
10219 function Suppress_Assignment_Checks
10220 (N : Node_Id) return Boolean; -- Flag18
10222 function Suppress_Loop_Warnings
10223 (N : Node_Id) return Boolean; -- Flag17
10225 function Synchronized_Present
10226 (N : Node_Id) return Boolean; -- Flag7
10228 function Tagged_Present
10229 (N : Node_Id) return Boolean; -- Flag15
10231 function Target
10232 (N : Node_Id) return Entity_Id; -- Node1
10234 function Target_Type
10235 (N : Node_Id) return Entity_Id; -- Node2
10237 function Task_Definition
10238 (N : Node_Id) return Node_Id; -- Node3
10240 function Task_Present
10241 (N : Node_Id) return Boolean; -- Flag5
10243 function Then_Actions
10244 (N : Node_Id) return List_Id; -- List2
10246 function Then_Statements
10247 (N : Node_Id) return List_Id; -- List2
10249 function Treat_Fixed_As_Integer
10250 (N : Node_Id) return Boolean; -- Flag14
10252 function Triggering_Alternative
10253 (N : Node_Id) return Node_Id; -- Node1
10255 function Triggering_Statement
10256 (N : Node_Id) return Node_Id; -- Node1
10258 function TSS_Elist
10259 (N : Node_Id) return Elist_Id; -- Elist3
10261 function Type_Definition
10262 (N : Node_Id) return Node_Id; -- Node3
10264 function Uneval_Old_Accept
10265 (N : Node_Id) return Boolean; -- Flag7
10267 function Uneval_Old_Warn
10268 (N : Node_Id) return Boolean; -- Flag18
10270 function Unit
10271 (N : Node_Id) return Node_Id; -- Node2
10273 function Unknown_Discriminants_Present
10274 (N : Node_Id) return Boolean; -- Flag13
10276 function Unreferenced_In_Spec
10277 (N : Node_Id) return Boolean; -- Flag7
10279 function Variant_Part
10280 (N : Node_Id) return Node_Id; -- Node4
10282 function Variants
10283 (N : Node_Id) return List_Id; -- List1
10285 function Visible_Declarations
10286 (N : Node_Id) return List_Id; -- List2
10288 function Uninitialized_Variable
10289 (N : Node_Id) return Node_Id; -- Node3
10291 function Used_Operations
10292 (N : Node_Id) return Elist_Id; -- Elist2
10294 function Was_Attribute_Reference
10295 (N : Node_Id) return Boolean; -- Flag2
10297 function Was_Expression_Function
10298 (N : Node_Id) return Boolean; -- Flag18
10300 function Was_Originally_Stub
10301 (N : Node_Id) return Boolean; -- Flag13
10303 -- End functions (note used by xsinfo utility program to end processing)
10305 ----------------------------
10306 -- Node Update Procedures --
10307 ----------------------------
10309 -- These are the corresponding node update routines, which again provide
10310 -- a high level logical access with type checking. In addition to setting
10311 -- the indicated field of the node N to the given Val, in the case of
10312 -- tree pointers (List1-4), the parent pointer of the Val node is set to
10313 -- point back to node N. This automates the setting of the parent pointer.
10315 procedure Set_Abort_Present
10316 (N : Node_Id; Val : Boolean := True); -- Flag15
10318 procedure Set_Abortable_Part
10319 (N : Node_Id; Val : Node_Id); -- Node2
10321 procedure Set_Abstract_Present
10322 (N : Node_Id; Val : Boolean := True); -- Flag4
10324 procedure Set_Accept_Handler_Records
10325 (N : Node_Id; Val : List_Id); -- List5
10327 procedure Set_Accept_Statement
10328 (N : Node_Id; Val : Node_Id); -- Node2
10330 procedure Set_Access_Definition
10331 (N : Node_Id; Val : Node_Id); -- Node3
10333 procedure Set_Access_To_Subprogram_Definition
10334 (N : Node_Id; Val : Node_Id); -- Node3
10336 procedure Set_Access_Types_To_Process
10337 (N : Node_Id; Val : Elist_Id); -- Elist2
10339 procedure Set_Actions
10340 (N : Node_Id; Val : List_Id); -- List1
10342 procedure Set_Activation_Chain_Entity
10343 (N : Node_Id; Val : Node_Id); -- Node3
10345 procedure Set_Acts_As_Spec
10346 (N : Node_Id; Val : Boolean := True); -- Flag4
10348 procedure Set_Actual_Designated_Subtype
10349 (N : Node_Id; Val : Node_Id); -- Node4
10351 procedure Set_Address_Warning_Posted
10352 (N : Node_Id; Val : Boolean := True); -- Flag18
10354 procedure Set_Aggregate_Bounds
10355 (N : Node_Id; Val : Node_Id); -- Node3
10357 procedure Set_Aliased_Present
10358 (N : Node_Id; Val : Boolean := True); -- Flag4
10360 procedure Set_Alloc_For_BIP_Return
10361 (N : Node_Id; Val : Boolean := True); -- Flag1
10363 procedure Set_All_Others
10364 (N : Node_Id; Val : Boolean := True); -- Flag11
10366 procedure Set_All_Present
10367 (N : Node_Id; Val : Boolean := True); -- Flag15
10369 procedure Set_Alternatives
10370 (N : Node_Id; Val : List_Id); -- List4
10372 procedure Set_Ancestor_Part
10373 (N : Node_Id; Val : Node_Id); -- Node3
10375 procedure Set_Atomic_Sync_Required
10376 (N : Node_Id; Val : Boolean := True); -- Flag14
10378 procedure Set_Array_Aggregate
10379 (N : Node_Id; Val : Node_Id); -- Node3
10381 procedure Set_Aspect_Rep_Item
10382 (N : Node_Id; Val : Node_Id); -- Node2
10384 procedure Set_Assignment_OK
10385 (N : Node_Id; Val : Boolean := True); -- Flag15
10387 procedure Set_Associated_Node
10388 (N : Node_Id; Val : Node_Id); -- Node4
10390 procedure Set_Attribute_Name
10391 (N : Node_Id; Val : Name_Id); -- Name2
10393 procedure Set_At_End_Proc
10394 (N : Node_Id; Val : Node_Id); -- Node1
10396 procedure Set_Aux_Decls_Node
10397 (N : Node_Id; Val : Node_Id); -- Node5
10399 procedure Set_Backwards_OK
10400 (N : Node_Id; Val : Boolean := True); -- Flag6
10402 procedure Set_Bad_Is_Detected
10403 (N : Node_Id; Val : Boolean := True); -- Flag15
10405 procedure Set_Body_Required
10406 (N : Node_Id; Val : Boolean := True); -- Flag13
10408 procedure Set_Body_To_Inline
10409 (N : Node_Id; Val : Node_Id); -- Node3
10411 procedure Set_Box_Present
10412 (N : Node_Id; Val : Boolean := True); -- Flag15
10414 procedure Set_By_Ref
10415 (N : Node_Id; Val : Boolean := True); -- Flag5
10417 procedure Set_Char_Literal_Value
10418 (N : Node_Id; Val : Uint); -- Uint2
10420 procedure Set_Chars
10421 (N : Node_Id; Val : Name_Id); -- Name1
10423 procedure Set_Check_Address_Alignment
10424 (N : Node_Id; Val : Boolean := True); -- Flag11
10426 procedure Set_Choice_Parameter
10427 (N : Node_Id; Val : Node_Id); -- Node2
10429 procedure Set_Choices
10430 (N : Node_Id; Val : List_Id); -- List1
10432 procedure Set_Class_Present
10433 (N : Node_Id; Val : Boolean := True); -- Flag6
10435 procedure Set_Classifications
10436 (N : Node_Id; Val : Node_Id); -- Node3
10438 procedure Set_Cleanup_Actions
10439 (N : Node_Id; Val : List_Id); -- List5
10441 procedure Set_Comes_From_Extended_Return_Statement
10442 (N : Node_Id; Val : Boolean := True); -- Flag18
10444 procedure Set_Compile_Time_Known_Aggregate
10445 (N : Node_Id; Val : Boolean := True); -- Flag18
10447 procedure Set_Component_Associations
10448 (N : Node_Id; Val : List_Id); -- List2
10450 procedure Set_Component_Clauses
10451 (N : Node_Id; Val : List_Id); -- List3
10453 procedure Set_Component_Definition
10454 (N : Node_Id; Val : Node_Id); -- Node4
10456 procedure Set_Component_Items
10457 (N : Node_Id; Val : List_Id); -- List3
10459 procedure Set_Component_List
10460 (N : Node_Id; Val : Node_Id); -- Node1
10462 procedure Set_Component_Name
10463 (N : Node_Id; Val : Node_Id); -- Node1
10465 procedure Set_Componentwise_Assignment
10466 (N : Node_Id; Val : Boolean := True); -- Flag14
10468 procedure Set_Condition
10469 (N : Node_Id; Val : Node_Id); -- Node1
10471 procedure Set_Condition_Actions
10472 (N : Node_Id; Val : List_Id); -- List3
10474 procedure Set_Config_Pragmas
10475 (N : Node_Id; Val : List_Id); -- List4
10477 procedure Set_Constant_Present
10478 (N : Node_Id; Val : Boolean := True); -- Flag17
10480 procedure Set_Constraint
10481 (N : Node_Id; Val : Node_Id); -- Node3
10483 procedure Set_Constraints
10484 (N : Node_Id; Val : List_Id); -- List1
10486 procedure Set_Context_Installed
10487 (N : Node_Id; Val : Boolean := True); -- Flag13
10489 procedure Set_Context_Items
10490 (N : Node_Id; Val : List_Id); -- List1
10492 procedure Set_Context_Pending
10493 (N : Node_Id; Val : Boolean := True); -- Flag16
10495 procedure Set_Contract_Test_Cases
10496 (N : Node_Id; Val : Node_Id); -- Node2
10498 procedure Set_Controlling_Argument
10499 (N : Node_Id; Val : Node_Id); -- Node1
10501 procedure Set_Conversion_OK
10502 (N : Node_Id; Val : Boolean := True); -- Flag14
10504 procedure Set_Convert_To_Return_False
10505 (N : Node_Id; Val : Boolean := True); -- Flag13
10507 procedure Set_Corresponding_Aspect
10508 (N : Node_Id; Val : Node_Id); -- Node3
10510 procedure Set_Corresponding_Body
10511 (N : Node_Id; Val : Node_Id); -- Node5
10513 procedure Set_Corresponding_Formal_Spec
10514 (N : Node_Id; Val : Node_Id); -- Node3
10516 procedure Set_Corresponding_Generic_Association
10517 (N : Node_Id; Val : Node_Id); -- Node5
10519 procedure Set_Corresponding_Integer_Value
10520 (N : Node_Id; Val : Uint); -- Uint4
10522 procedure Set_Corresponding_Spec
10523 (N : Node_Id; Val : Entity_Id); -- Node5
10525 procedure Set_Corresponding_Spec_Of_Stub
10526 (N : Node_Id; Val : Node_Id); -- Node2
10528 procedure Set_Corresponding_Stub
10529 (N : Node_Id; Val : Node_Id); -- Node3
10531 procedure Set_Dcheck_Function
10532 (N : Node_Id; Val : Entity_Id); -- Node5
10534 procedure Set_Declarations
10535 (N : Node_Id; Val : List_Id); -- List2
10537 procedure Set_Default_Expression
10538 (N : Node_Id; Val : Node_Id); -- Node5
10540 procedure Set_Default_Storage_Pool
10541 (N : Node_Id; Val : Node_Id); -- Node3
10543 procedure Set_Default_Name
10544 (N : Node_Id; Val : Node_Id); -- Node2
10546 procedure Set_Defining_Identifier
10547 (N : Node_Id; Val : Entity_Id); -- Node1
10549 procedure Set_Defining_Unit_Name
10550 (N : Node_Id; Val : Node_Id); -- Node1
10552 procedure Set_Delay_Alternative
10553 (N : Node_Id; Val : Node_Id); -- Node4
10555 procedure Set_Delay_Statement
10556 (N : Node_Id; Val : Node_Id); -- Node2
10558 procedure Set_Delta_Expression
10559 (N : Node_Id; Val : Node_Id); -- Node3
10561 procedure Set_Digits_Expression
10562 (N : Node_Id; Val : Node_Id); -- Node2
10564 procedure Set_Discr_Check_Funcs_Built
10565 (N : Node_Id; Val : Boolean := True); -- Flag11
10567 procedure Set_Discrete_Choices
10568 (N : Node_Id; Val : List_Id); -- List4
10570 procedure Set_Discrete_Range
10571 (N : Node_Id; Val : Node_Id); -- Node4
10573 procedure Set_Discrete_Subtype_Definition
10574 (N : Node_Id; Val : Node_Id); -- Node4
10576 procedure Set_Discrete_Subtype_Definitions
10577 (N : Node_Id; Val : List_Id); -- List2
10579 procedure Set_Discriminant_Specifications
10580 (N : Node_Id; Val : List_Id); -- List4
10582 procedure Set_Discriminant_Type
10583 (N : Node_Id; Val : Node_Id); -- Node5
10585 procedure Set_Do_Accessibility_Check
10586 (N : Node_Id; Val : Boolean := True); -- Flag13
10588 procedure Set_Do_Discriminant_Check
10589 (N : Node_Id; Val : Boolean := True); -- Flag3
10591 procedure Set_Do_Division_Check
10592 (N : Node_Id; Val : Boolean := True); -- Flag13
10594 procedure Set_Do_Length_Check
10595 (N : Node_Id; Val : Boolean := True); -- Flag4
10597 procedure Set_Do_Overflow_Check
10598 (N : Node_Id; Val : Boolean := True); -- Flag17
10600 procedure Set_Do_Range_Check
10601 (N : Node_Id; Val : Boolean := True); -- Flag9
10603 procedure Set_Do_Storage_Check
10604 (N : Node_Id; Val : Boolean := True); -- Flag17
10606 procedure Set_Do_Tag_Check
10607 (N : Node_Id; Val : Boolean := True); -- Flag13
10609 procedure Set_Elaborate_All_Desirable
10610 (N : Node_Id; Val : Boolean := True); -- Flag9
10612 procedure Set_Elaborate_All_Present
10613 (N : Node_Id; Val : Boolean := True); -- Flag14
10615 procedure Set_Elaborate_Desirable
10616 (N : Node_Id; Val : Boolean := True); -- Flag11
10618 procedure Set_Elaborate_Present
10619 (N : Node_Id; Val : Boolean := True); -- Flag4
10621 procedure Set_Else_Actions
10622 (N : Node_Id; Val : List_Id); -- List3
10624 procedure Set_Else_Statements
10625 (N : Node_Id; Val : List_Id); -- List4
10627 procedure Set_Elsif_Parts
10628 (N : Node_Id; Val : List_Id); -- List3
10630 procedure Set_Enclosing_Variant
10631 (N : Node_Id; Val : Node_Id); -- Node2
10633 procedure Set_End_Label
10634 (N : Node_Id; Val : Node_Id); -- Node4
10636 procedure Set_End_Span
10637 (N : Node_Id; Val : Uint); -- Uint5
10639 procedure Set_Entity
10640 (N : Node_Id; Val : Node_Id); -- Node4
10642 procedure Set_Entry_Body_Formal_Part
10643 (N : Node_Id; Val : Node_Id); -- Node5
10645 procedure Set_Entry_Call_Alternative
10646 (N : Node_Id; Val : Node_Id); -- Node1
10648 procedure Set_Entry_Call_Statement
10649 (N : Node_Id; Val : Node_Id); -- Node1
10651 procedure Set_Entry_Direct_Name
10652 (N : Node_Id; Val : Node_Id); -- Node1
10654 procedure Set_Entry_Index
10655 (N : Node_Id; Val : Node_Id); -- Node5
10657 procedure Set_Entry_Index_Specification
10658 (N : Node_Id; Val : Node_Id); -- Node4
10660 procedure Set_Etype
10661 (N : Node_Id; Val : Node_Id); -- Node5
10663 procedure Set_Exception_Choices
10664 (N : Node_Id; Val : List_Id); -- List4
10666 procedure Set_Exception_Handlers
10667 (N : Node_Id; Val : List_Id); -- List5
10669 procedure Set_Exception_Junk
10670 (N : Node_Id; Val : Boolean := True); -- Flag8
10672 procedure Set_Exception_Label
10673 (N : Node_Id; Val : Node_Id); -- Node5
10675 procedure Set_Expansion_Delayed
10676 (N : Node_Id; Val : Boolean := True); -- Flag11
10678 procedure Set_Explicit_Actual_Parameter
10679 (N : Node_Id; Val : Node_Id); -- Node3
10681 procedure Set_Explicit_Generic_Actual_Parameter
10682 (N : Node_Id; Val : Node_Id); -- Node1
10684 procedure Set_Expression
10685 (N : Node_Id; Val : Node_Id); -- Node3
10687 procedure Set_Expression_Copy
10688 (N : Node_Id; Val : Node_Id); -- Node2
10690 procedure Set_Expressions
10691 (N : Node_Id; Val : List_Id); -- List1
10693 procedure Set_First_Bit
10694 (N : Node_Id; Val : Node_Id); -- Node3
10696 procedure Set_First_Inlined_Subprogram
10697 (N : Node_Id; Val : Entity_Id); -- Node3
10699 procedure Set_First_Name
10700 (N : Node_Id; Val : Boolean := True); -- Flag5
10702 procedure Set_First_Named_Actual
10703 (N : Node_Id; Val : Node_Id); -- Node4
10705 procedure Set_First_Real_Statement
10706 (N : Node_Id; Val : Node_Id); -- Node2
10708 procedure Set_First_Subtype_Link
10709 (N : Node_Id; Val : Entity_Id); -- Node5
10711 procedure Set_Float_Truncate
10712 (N : Node_Id; Val : Boolean := True); -- Flag11
10714 procedure Set_Formal_Type_Definition
10715 (N : Node_Id; Val : Node_Id); -- Node3
10717 procedure Set_Forwards_OK
10718 (N : Node_Id; Val : Boolean := True); -- Flag5
10720 procedure Set_From_Aspect_Specification
10721 (N : Node_Id; Val : Boolean := True); -- Flag13
10723 procedure Set_From_At_End
10724 (N : Node_Id; Val : Boolean := True); -- Flag4
10726 procedure Set_From_At_Mod
10727 (N : Node_Id; Val : Boolean := True); -- Flag4
10729 procedure Set_From_Conditional_Expression
10730 (N : Node_Id; Val : Boolean := True); -- Flag1
10732 procedure Set_From_Default
10733 (N : Node_Id; Val : Boolean := True); -- Flag6
10735 procedure Set_Generalized_Indexing
10736 (N : Node_Id; Val : Node_Id); -- Node4
10738 procedure Set_Generic_Associations
10739 (N : Node_Id; Val : List_Id); -- List3
10741 procedure Set_Generic_Formal_Declarations
10742 (N : Node_Id; Val : List_Id); -- List2
10744 procedure Set_Generic_Parent
10745 (N : Node_Id; Val : Node_Id); -- Node5
10747 procedure Set_Generic_Parent_Type
10748 (N : Node_Id; Val : Node_Id); -- Node4
10750 procedure Set_Handled_Statement_Sequence
10751 (N : Node_Id; Val : Node_Id); -- Node4
10753 procedure Set_Handler_List_Entry
10754 (N : Node_Id; Val : Node_Id); -- Node2
10756 procedure Set_Has_Created_Identifier
10757 (N : Node_Id; Val : Boolean := True); -- Flag15
10759 procedure Set_Has_Dereference_Action
10760 (N : Node_Id; Val : Boolean := True); -- Flag13
10762 procedure Set_Has_Dynamic_Length_Check
10763 (N : Node_Id; Val : Boolean := True); -- Flag10
10765 procedure Set_Has_Dynamic_Range_Check
10766 (N : Node_Id; Val : Boolean := True); -- Flag12
10768 procedure Set_Has_Init_Expression
10769 (N : Node_Id; Val : Boolean := True); -- Flag14
10771 procedure Set_Has_Local_Raise
10772 (N : Node_Id; Val : Boolean := True); -- Flag8
10774 procedure Set_Has_No_Elaboration_Code
10775 (N : Node_Id; Val : Boolean := True); -- Flag17
10777 procedure Set_Has_Pragma_Suppress_All
10778 (N : Node_Id; Val : Boolean := True); -- Flag14
10780 procedure Set_Has_Private_View
10781 (N : Node_Id; Val : Boolean := True); -- Flag11
10783 procedure Set_Has_Relative_Deadline_Pragma
10784 (N : Node_Id; Val : Boolean := True); -- Flag9
10786 procedure Set_Has_Self_Reference
10787 (N : Node_Id; Val : Boolean := True); -- Flag13
10789 procedure Set_Has_SP_Choice
10790 (N : Node_Id; Val : Boolean := True); -- Flag15
10792 procedure Set_Has_Storage_Size_Pragma
10793 (N : Node_Id; Val : Boolean := True); -- Flag5
10795 procedure Set_Has_Target_Names
10796 (N : Node_Id; Val : Boolean := True); -- Flag8
10798 procedure Set_Has_Wide_Character
10799 (N : Node_Id; Val : Boolean := True); -- Flag11
10801 procedure Set_Has_Wide_Wide_Character
10802 (N : Node_Id; Val : Boolean := True); -- Flag13
10804 procedure Set_Header_Size_Added
10805 (N : Node_Id; Val : Boolean := True); -- Flag11
10807 procedure Set_Hidden_By_Use_Clause
10808 (N : Node_Id; Val : Elist_Id); -- Elist5
10810 procedure Set_High_Bound
10811 (N : Node_Id; Val : Node_Id); -- Node2
10813 procedure Set_Identifier
10814 (N : Node_Id; Val : Node_Id); -- Node1
10816 procedure Set_Interface_List
10817 (N : Node_Id; Val : List_Id); -- List2
10819 procedure Set_Interface_Present
10820 (N : Node_Id; Val : Boolean := True); -- Flag16
10822 procedure Set_Implicit_With
10823 (N : Node_Id; Val : Boolean := True); -- Flag16
10825 procedure Set_Import_Interface_Present
10826 (N : Node_Id; Val : Boolean := True); -- Flag16
10828 procedure Set_In_Present
10829 (N : Node_Id; Val : Boolean := True); -- Flag15
10831 procedure Set_Includes_Infinities
10832 (N : Node_Id; Val : Boolean := True); -- Flag11
10834 procedure Set_Incomplete_View
10835 (N : Node_Id; Val : Node_Id); -- Node2
10837 procedure Set_Inherited_Discriminant
10838 (N : Node_Id; Val : Boolean := True); -- Flag13
10840 procedure Set_Instance_Spec
10841 (N : Node_Id; Val : Node_Id); -- Node5
10843 procedure Set_Intval
10844 (N : Node_Id; Val : Uint); -- Uint3
10846 procedure Set_Is_Abort_Block
10847 (N : Node_Id; Val : Boolean := True); -- Flag4
10849 procedure Set_Is_Accessibility_Actual
10850 (N : Node_Id; Val : Boolean := True); -- Flag13
10852 procedure Set_Is_Analyzed_Pragma
10853 (N : Node_Id; Val : Boolean := True); -- Flag5
10855 procedure Set_Is_Asynchronous_Call_Block
10856 (N : Node_Id; Val : Boolean := True); -- Flag7
10858 procedure Set_Is_Boolean_Aspect
10859 (N : Node_Id; Val : Boolean := True); -- Flag16
10861 procedure Set_Is_Checked
10862 (N : Node_Id; Val : Boolean := True); -- Flag11
10864 procedure Set_Is_Checked_Ghost_Pragma
10865 (N : Node_Id; Val : Boolean := True); -- Flag3
10867 procedure Set_Is_Component_Left_Opnd
10868 (N : Node_Id; Val : Boolean := True); -- Flag13
10870 procedure Set_Is_Component_Right_Opnd
10871 (N : Node_Id; Val : Boolean := True); -- Flag14
10873 procedure Set_Is_Controlling_Actual
10874 (N : Node_Id; Val : Boolean := True); -- Flag16
10876 procedure Set_Is_Declaration_Level_Node
10877 (N : Node_Id; Val : Boolean := True); -- Flag5
10879 procedure Set_Is_Delayed_Aspect
10880 (N : Node_Id; Val : Boolean := True); -- Flag14
10882 procedure Set_Is_Disabled
10883 (N : Node_Id; Val : Boolean := True); -- Flag15
10885 procedure Set_Is_Dispatching_Call
10886 (N : Node_Id; Val : Boolean := True); -- Flag6
10888 procedure Set_Is_Dynamic_Coextension
10889 (N : Node_Id; Val : Boolean := True); -- Flag18
10891 procedure Set_Is_Effective_Use_Clause
10892 (N : Node_Id; Val : Boolean := True); -- Flag1
10894 procedure Set_Is_Elaboration_Checks_OK_Node
10895 (N : Node_Id; Val : Boolean := True); -- Flag1
10897 procedure Set_Is_Elaboration_Code
10898 (N : Node_Id; Val : Boolean := True); -- Flag9
10900 procedure Set_Is_Elaboration_Warnings_OK_Node
10901 (N : Node_Id; Val : Boolean := True); -- Flag3
10903 procedure Set_Is_Elsif
10904 (N : Node_Id; Val : Boolean := True); -- Flag13
10906 procedure Set_Is_Entry_Barrier_Function
10907 (N : Node_Id; Val : Boolean := True); -- Flag8
10909 procedure Set_Is_Expanded_Build_In_Place_Call
10910 (N : Node_Id; Val : Boolean := True); -- Flag11
10912 procedure Set_Is_Expanded_Contract
10913 (N : Node_Id; Val : Boolean := True); -- Flag1
10915 procedure Set_Is_Finalization_Wrapper
10916 (N : Node_Id; Val : Boolean := True); -- Flag9
10918 procedure Set_Is_Folded_In_Parser
10919 (N : Node_Id; Val : Boolean := True); -- Flag4
10921 procedure Set_Is_Generic_Contract_Pragma
10922 (N : Node_Id; Val : Boolean := True); -- Flag2
10924 procedure Set_Is_Ignored
10925 (N : Node_Id; Val : Boolean := True); -- Flag9
10927 procedure Set_Is_Ignored_Ghost_Pragma
10928 (N : Node_Id; Val : Boolean := True); -- Flag8
10930 procedure Set_Is_In_Discriminant_Check
10931 (N : Node_Id; Val : Boolean := True); -- Flag11
10933 procedure Set_Is_Inherited_Pragma
10934 (N : Node_Id; Val : Boolean := True); -- Flag4
10936 procedure Set_Is_Initialization_Block
10937 (N : Node_Id; Val : Boolean := True); -- Flag1
10939 procedure Set_Is_Known_Guaranteed_ABE
10940 (N : Node_Id; Val : Boolean := True); -- Flag18
10942 procedure Set_Is_Machine_Number
10943 (N : Node_Id; Val : Boolean := True); -- Flag11
10945 procedure Set_Is_Null_Loop
10946 (N : Node_Id; Val : Boolean := True); -- Flag16
10948 procedure Set_Is_Overloaded
10949 (N : Node_Id; Val : Boolean := True); -- Flag5
10951 procedure Set_Is_Power_Of_2_For_Shift
10952 (N : Node_Id; Val : Boolean := True); -- Flag13
10954 procedure Set_Is_Prefixed_Call
10955 (N : Node_Id; Val : Boolean := True); -- Flag17
10957 procedure Set_Is_Protected_Subprogram_Body
10958 (N : Node_Id; Val : Boolean := True); -- Flag7
10960 procedure Set_Is_Qualified_Universal_Literal
10961 (N : Node_Id; Val : Boolean := True); -- Flag4
10963 procedure Set_Is_Read
10964 (N : Node_Id; Val : Boolean := True); -- Flag1
10966 procedure Set_Is_Source_Call
10967 (N : Node_Id; Val : Boolean := True); -- Flag4
10969 procedure Set_Is_SPARK_Mode_On_Node
10970 (N : Node_Id; Val : Boolean := True); -- Flag2
10972 procedure Set_Is_Static_Coextension
10973 (N : Node_Id; Val : Boolean := True); -- Flag14
10975 procedure Set_Is_Static_Expression
10976 (N : Node_Id; Val : Boolean := True); -- Flag6
10978 procedure Set_Is_Subprogram_Descriptor
10979 (N : Node_Id; Val : Boolean := True); -- Flag16
10981 procedure Set_Is_Task_Allocation_Block
10982 (N : Node_Id; Val : Boolean := True); -- Flag6
10984 procedure Set_Is_Task_Body_Procedure
10985 (N : Node_Id; Val : Boolean := True); -- Flag1
10987 procedure Set_Is_Task_Master
10988 (N : Node_Id; Val : Boolean := True); -- Flag5
10990 procedure Set_Is_Write
10991 (N : Node_Id; Val : Boolean := True); -- Flag2
10993 procedure Set_Iteration_Scheme
10994 (N : Node_Id; Val : Node_Id); -- Node2
10996 procedure Set_Iterator_Specification
10997 (N : Node_Id; Val : Node_Id); -- Node2
10999 procedure Set_Itype
11000 (N : Node_Id; Val : Entity_Id); -- Node1
11002 procedure Set_Kill_Range_Check
11003 (N : Node_Id; Val : Boolean := True); -- Flag11
11005 procedure Set_Last_Bit
11006 (N : Node_Id; Val : Node_Id); -- Node4
11008 procedure Set_Last_Name
11009 (N : Node_Id; Val : Boolean := True); -- Flag6
11011 procedure Set_Library_Unit
11012 (N : Node_Id; Val : Node_Id); -- Node4
11014 procedure Set_Label_Construct
11015 (N : Node_Id; Val : Node_Id); -- Node2
11017 procedure Set_Left_Opnd
11018 (N : Node_Id; Val : Node_Id); -- Node2
11020 procedure Set_Limited_View_Installed
11021 (N : Node_Id; Val : Boolean := True); -- Flag18
11023 procedure Set_Limited_Present
11024 (N : Node_Id; Val : Boolean := True); -- Flag17
11026 procedure Set_Literals
11027 (N : Node_Id; Val : List_Id); -- List1
11029 procedure Set_Local_Raise_Not_OK
11030 (N : Node_Id; Val : Boolean := True); -- Flag7
11032 procedure Set_Local_Raise_Statements
11033 (N : Node_Id; Val : Elist_Id); -- Elist1
11035 procedure Set_Loop_Actions
11036 (N : Node_Id; Val : List_Id); -- List2
11038 procedure Set_Loop_Parameter_Specification
11039 (N : Node_Id; Val : Node_Id); -- Node4
11041 procedure Set_Low_Bound
11042 (N : Node_Id; Val : Node_Id); -- Node1
11044 procedure Set_Mod_Clause
11045 (N : Node_Id; Val : Node_Id); -- Node2
11047 procedure Set_More_Ids
11048 (N : Node_Id; Val : Boolean := True); -- Flag5
11050 procedure Set_Must_Be_Byte_Aligned
11051 (N : Node_Id; Val : Boolean := True); -- Flag14
11053 procedure Set_Must_Not_Freeze
11054 (N : Node_Id; Val : Boolean := True); -- Flag8
11056 procedure Set_Must_Not_Override
11057 (N : Node_Id; Val : Boolean := True); -- Flag15
11059 procedure Set_Must_Override
11060 (N : Node_Id; Val : Boolean := True); -- Flag14
11062 procedure Set_Name
11063 (N : Node_Id; Val : Node_Id); -- Node2
11065 procedure Set_Names
11066 (N : Node_Id; Val : List_Id); -- List2
11068 procedure Set_Next_Entity
11069 (N : Node_Id; Val : Node_Id); -- Node2
11071 procedure Set_Next_Exit_Statement
11072 (N : Node_Id; Val : Node_Id); -- Node3
11074 procedure Set_Next_Implicit_With
11075 (N : Node_Id; Val : Node_Id); -- Node3
11077 procedure Set_Next_Named_Actual
11078 (N : Node_Id; Val : Node_Id); -- Node4
11080 procedure Set_Next_Pragma
11081 (N : Node_Id; Val : Node_Id); -- Node1
11083 procedure Set_Next_Rep_Item
11084 (N : Node_Id; Val : Node_Id); -- Node5
11086 procedure Set_Next_Use_Clause
11087 (N : Node_Id; Val : Node_Id); -- Node3
11089 procedure Set_No_Ctrl_Actions
11090 (N : Node_Id; Val : Boolean := True); -- Flag7
11092 procedure Set_No_Elaboration_Check
11093 (N : Node_Id; Val : Boolean := True); -- Flag4
11095 procedure Set_No_Entities_Ref_In_Spec
11096 (N : Node_Id; Val : Boolean := True); -- Flag8
11098 procedure Set_No_Initialization
11099 (N : Node_Id; Val : Boolean := True); -- Flag13
11101 procedure Set_No_Minimize_Eliminate
11102 (N : Node_Id; Val : Boolean := True); -- Flag17
11104 procedure Set_No_Side_Effect_Removal
11105 (N : Node_Id; Val : Boolean := True); -- Flag17
11107 procedure Set_No_Truncation
11108 (N : Node_Id; Val : Boolean := True); -- Flag17
11110 procedure Set_Null_Excluding_Subtype
11111 (N : Node_Id; Val : Boolean := True); -- Flag16
11113 procedure Set_Null_Exclusion_Present
11114 (N : Node_Id; Val : Boolean := True); -- Flag11
11116 procedure Set_Null_Exclusion_In_Return_Present
11117 (N : Node_Id; Val : Boolean := True); -- Flag14
11119 procedure Set_Null_Present
11120 (N : Node_Id; Val : Boolean := True); -- Flag13
11122 procedure Set_Null_Record_Present
11123 (N : Node_Id; Val : Boolean := True); -- Flag17
11125 procedure Set_Null_Statement
11126 (N : Node_Id; Val : Node_Id); -- Node2
11128 procedure Set_Object_Definition
11129 (N : Node_Id; Val : Node_Id); -- Node4
11131 procedure Set_Of_Present
11132 (N : Node_Id; Val : Boolean := True); -- Flag16
11134 procedure Set_Original_Discriminant
11135 (N : Node_Id; Val : Node_Id); -- Node2
11137 procedure Set_Original_Entity
11138 (N : Node_Id; Val : Entity_Id); -- Node2
11140 procedure Set_Others_Discrete_Choices
11141 (N : Node_Id; Val : List_Id); -- List1
11143 procedure Set_Out_Present
11144 (N : Node_Id; Val : Boolean := True); -- Flag17
11146 procedure Set_Parameter_Associations
11147 (N : Node_Id; Val : List_Id); -- List3
11149 procedure Set_Parameter_Specifications
11150 (N : Node_Id; Val : List_Id); -- List3
11152 procedure Set_Parameter_Type
11153 (N : Node_Id; Val : Node_Id); -- Node2
11155 procedure Set_Parent_Spec
11156 (N : Node_Id; Val : Node_Id); -- Node4
11158 procedure Set_Parent_With
11159 (N : Node_Id; Val : Boolean := True); -- Flag1
11161 procedure Set_Position
11162 (N : Node_Id; Val : Node_Id); -- Node2
11164 procedure Set_Pragma_Argument_Associations
11165 (N : Node_Id; Val : List_Id); -- List2
11167 procedure Set_Pragma_Identifier
11168 (N : Node_Id; Val : Node_Id); -- Node4
11170 procedure Set_Pragmas_After
11171 (N : Node_Id; Val : List_Id); -- List5
11173 procedure Set_Pragmas_Before
11174 (N : Node_Id; Val : List_Id); -- List4
11176 procedure Set_Pre_Post_Conditions
11177 (N : Node_Id; Val : Node_Id); -- Node1
11179 procedure Set_Prefix
11180 (N : Node_Id; Val : Node_Id); -- Node3
11182 procedure Set_Premature_Use
11183 (N : Node_Id; Val : Node_Id); -- Node5
11185 procedure Set_Present_Expr
11186 (N : Node_Id; Val : Uint); -- Uint3
11188 procedure Set_Prev_Ids
11189 (N : Node_Id; Val : Boolean := True); -- Flag6
11191 procedure Set_Prev_Use_Clause
11192 (N : Node_Id; Val : Node_Id); -- Node1
11194 procedure Set_Print_In_Hex
11195 (N : Node_Id; Val : Boolean := True); -- Flag13
11197 procedure Set_Private_Declarations
11198 (N : Node_Id; Val : List_Id); -- List3
11200 procedure Set_Private_Present
11201 (N : Node_Id; Val : Boolean := True); -- Flag15
11203 procedure Set_Procedure_To_Call
11204 (N : Node_Id; Val : Node_Id); -- Node2
11206 procedure Set_Proper_Body
11207 (N : Node_Id; Val : Node_Id); -- Node1
11209 procedure Set_Protected_Definition
11210 (N : Node_Id; Val : Node_Id); -- Node3
11212 procedure Set_Protected_Present
11213 (N : Node_Id; Val : Boolean := True); -- Flag6
11215 procedure Set_Raises_Constraint_Error
11216 (N : Node_Id; Val : Boolean := True); -- Flag7
11218 procedure Set_Range_Constraint
11219 (N : Node_Id; Val : Node_Id); -- Node4
11221 procedure Set_Range_Expression
11222 (N : Node_Id; Val : Node_Id); -- Node4
11224 procedure Set_Real_Range_Specification
11225 (N : Node_Id; Val : Node_Id); -- Node4
11227 procedure Set_Realval
11228 (N : Node_Id; Val : Ureal); -- Ureal3
11230 procedure Set_Reason
11231 (N : Node_Id; Val : Uint); -- Uint3
11233 procedure Set_Record_Extension_Part
11234 (N : Node_Id; Val : Node_Id); -- Node3
11236 procedure Set_Redundant_Use
11237 (N : Node_Id; Val : Boolean := True); -- Flag13
11239 procedure Set_Renaming_Exception
11240 (N : Node_Id; Val : Node_Id); -- Node2
11242 procedure Set_Result_Definition
11243 (N : Node_Id; Val : Node_Id); -- Node4
11245 procedure Set_Return_Object_Declarations
11246 (N : Node_Id; Val : List_Id); -- List3
11248 procedure Set_Return_Statement_Entity
11249 (N : Node_Id; Val : Node_Id); -- Node5
11251 procedure Set_Reverse_Present
11252 (N : Node_Id; Val : Boolean := True); -- Flag15
11254 procedure Set_Right_Opnd
11255 (N : Node_Id; Val : Node_Id); -- Node3
11257 procedure Set_Rounded_Result
11258 (N : Node_Id; Val : Boolean := True); -- Flag18
11260 procedure Set_SCIL_Controlling_Tag
11261 (N : Node_Id; Val : Node_Id); -- Node5
11263 procedure Set_SCIL_Entity
11264 (N : Node_Id; Val : Node_Id); -- Node4
11266 procedure Set_SCIL_Tag_Value
11267 (N : Node_Id; Val : Node_Id); -- Node5
11269 procedure Set_SCIL_Target_Prim
11270 (N : Node_Id; Val : Node_Id); -- Node2
11272 procedure Set_Scope
11273 (N : Node_Id; Val : Node_Id); -- Node3
11275 procedure Set_Select_Alternatives
11276 (N : Node_Id; Val : List_Id); -- List1
11278 procedure Set_Selector_Name
11279 (N : Node_Id; Val : Node_Id); -- Node2
11281 procedure Set_Selector_Names
11282 (N : Node_Id; Val : List_Id); -- List1
11284 procedure Set_Shift_Count_OK
11285 (N : Node_Id; Val : Boolean := True); -- Flag4
11287 procedure Set_Source_Type
11288 (N : Node_Id; Val : Entity_Id); -- Node1
11290 procedure Set_Specification
11291 (N : Node_Id; Val : Node_Id); -- Node1
11293 procedure Set_Split_PPC
11294 (N : Node_Id; Val : Boolean); -- Flag17
11296 procedure Set_Statements
11297 (N : Node_Id; Val : List_Id); -- List3
11299 procedure Set_Storage_Pool
11300 (N : Node_Id; Val : Node_Id); -- Node1
11302 procedure Set_Subpool_Handle_Name
11303 (N : Node_Id; Val : Node_Id); -- Node4
11305 procedure Set_Strval
11306 (N : Node_Id; Val : String_Id); -- Str3
11308 procedure Set_Subtype_Indication
11309 (N : Node_Id; Val : Node_Id); -- Node5
11311 procedure Set_Subtype_Mark
11312 (N : Node_Id; Val : Node_Id); -- Node4
11314 procedure Set_Subtype_Marks
11315 (N : Node_Id; Val : List_Id); -- List2
11317 procedure Set_Suppress_Assignment_Checks
11318 (N : Node_Id; Val : Boolean := True); -- Flag18
11320 procedure Set_Suppress_Loop_Warnings
11321 (N : Node_Id; Val : Boolean := True); -- Flag17
11323 procedure Set_Synchronized_Present
11324 (N : Node_Id; Val : Boolean := True); -- Flag7
11326 procedure Set_Tagged_Present
11327 (N : Node_Id; Val : Boolean := True); -- Flag15
11329 procedure Set_Target
11330 (N : Node_Id; Val : Entity_Id); -- Node1
11332 procedure Set_Target_Type
11333 (N : Node_Id; Val : Entity_Id); -- Node2
11335 procedure Set_Task_Definition
11336 (N : Node_Id; Val : Node_Id); -- Node3
11338 procedure Set_Task_Present
11339 (N : Node_Id; Val : Boolean := True); -- Flag5
11341 procedure Set_Then_Actions
11342 (N : Node_Id; Val : List_Id); -- List2
11344 procedure Set_Then_Statements
11345 (N : Node_Id; Val : List_Id); -- List2
11347 procedure Set_Treat_Fixed_As_Integer
11348 (N : Node_Id; Val : Boolean := True); -- Flag14
11350 procedure Set_Triggering_Alternative
11351 (N : Node_Id; Val : Node_Id); -- Node1
11353 procedure Set_Triggering_Statement
11354 (N : Node_Id; Val : Node_Id); -- Node1
11356 procedure Set_TSS_Elist
11357 (N : Node_Id; Val : Elist_Id); -- Elist3
11359 procedure Set_Type_Definition
11360 (N : Node_Id; Val : Node_Id); -- Node3
11362 procedure Set_Uneval_Old_Accept
11363 (N : Node_Id; Val : Boolean := True); -- Flag7
11365 procedure Set_Uneval_Old_Warn
11366 (N : Node_Id; Val : Boolean := True); -- Flag18
11368 procedure Set_Unit
11369 (N : Node_Id; Val : Node_Id); -- Node2
11371 procedure Set_Unknown_Discriminants_Present
11372 (N : Node_Id; Val : Boolean := True); -- Flag13
11374 procedure Set_Unreferenced_In_Spec
11375 (N : Node_Id; Val : Boolean := True); -- Flag7
11377 procedure Set_Variant_Part
11378 (N : Node_Id; Val : Node_Id); -- Node4
11380 procedure Set_Variants
11381 (N : Node_Id; Val : List_Id); -- List1
11383 procedure Set_Visible_Declarations
11384 (N : Node_Id; Val : List_Id); -- List2
11386 procedure Set_Uninitialized_Variable
11387 (N : Node_Id; Val : Node_Id); -- Node3
11389 procedure Set_Used_Operations
11390 (N : Node_Id; Val : Elist_Id); -- Elist2
11392 procedure Set_Was_Attribute_Reference
11393 (N : Node_Id; Val : Boolean := True); -- Flag2
11395 procedure Set_Was_Expression_Function
11396 (N : Node_Id; Val : Boolean := True); -- Flag18
11398 procedure Set_Was_Originally_Stub
11399 (N : Node_Id; Val : Boolean := True); -- Flag13
11401 -------------------------
11402 -- Iterator Procedures --
11403 -------------------------
11405 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
11407 procedure Next_Entity (N : in out Node_Id);
11408 procedure Next_Named_Actual (N : in out Node_Id);
11409 procedure Next_Rep_Item (N : in out Node_Id);
11410 procedure Next_Use_Clause (N : in out Node_Id);
11412 -------------------------------------------
11413 -- Miscellaneous Tree Access Subprograms --
11414 -------------------------------------------
11416 function End_Location (N : Node_Id) return Source_Ptr;
11417 -- N is an N_If_Statement or N_Case_Statement node, and this function
11418 -- returns the location of the IF token in the END IF sequence by
11419 -- translating the value of the End_Span field.
11421 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
11422 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
11423 -- the End_Span field to correspond to the given value S. In other words,
11424 -- End_Span is set to the difference between S and Sloc (N), the starting
11425 -- location.
11427 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
11428 -- Given an argument to a pragma Arg, this function returns the expression
11429 -- for the argument. This is Arg itself, or, in the case where Arg is a
11430 -- pragma argument association node, the expression from this node.
11432 --------------------------------
11433 -- Node_Kind Membership Tests --
11434 --------------------------------
11436 -- The following functions allow a convenient notation for testing whether
11437 -- a Node_Kind value matches any one of a list of possible values. In each
11438 -- case True is returned if the given T argument is equal to any of the V
11439 -- arguments. Note that there is a similar set of functions defined in
11440 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
11442 function Nkind_In
11443 (T : Node_Kind;
11444 V1 : Node_Kind;
11445 V2 : Node_Kind) return Boolean;
11447 function Nkind_In
11448 (T : Node_Kind;
11449 V1 : Node_Kind;
11450 V2 : Node_Kind;
11451 V3 : Node_Kind) return Boolean;
11453 function Nkind_In
11454 (T : Node_Kind;
11455 V1 : Node_Kind;
11456 V2 : Node_Kind;
11457 V3 : Node_Kind;
11458 V4 : Node_Kind) return Boolean;
11460 function Nkind_In
11461 (T : Node_Kind;
11462 V1 : Node_Kind;
11463 V2 : Node_Kind;
11464 V3 : Node_Kind;
11465 V4 : Node_Kind;
11466 V5 : Node_Kind) return Boolean;
11468 function Nkind_In
11469 (T : Node_Kind;
11470 V1 : Node_Kind;
11471 V2 : Node_Kind;
11472 V3 : Node_Kind;
11473 V4 : Node_Kind;
11474 V5 : Node_Kind;
11475 V6 : Node_Kind) return Boolean;
11477 function Nkind_In
11478 (T : Node_Kind;
11479 V1 : Node_Kind;
11480 V2 : Node_Kind;
11481 V3 : Node_Kind;
11482 V4 : Node_Kind;
11483 V5 : Node_Kind;
11484 V6 : Node_Kind;
11485 V7 : Node_Kind) return Boolean;
11487 function Nkind_In
11488 (T : Node_Kind;
11489 V1 : Node_Kind;
11490 V2 : Node_Kind;
11491 V3 : Node_Kind;
11492 V4 : Node_Kind;
11493 V5 : Node_Kind;
11494 V6 : Node_Kind;
11495 V7 : Node_Kind;
11496 V8 : Node_Kind) return Boolean;
11498 function Nkind_In
11499 (T : Node_Kind;
11500 V1 : Node_Kind;
11501 V2 : Node_Kind;
11502 V3 : Node_Kind;
11503 V4 : Node_Kind;
11504 V5 : Node_Kind;
11505 V6 : Node_Kind;
11506 V7 : Node_Kind;
11507 V8 : Node_Kind;
11508 V9 : Node_Kind) return Boolean;
11510 function Nkind_In
11511 (T : Node_Kind;
11512 V1 : Node_Kind;
11513 V2 : Node_Kind;
11514 V3 : Node_Kind;
11515 V4 : Node_Kind;
11516 V5 : Node_Kind;
11517 V6 : Node_Kind;
11518 V7 : Node_Kind;
11519 V8 : Node_Kind;
11520 V9 : Node_Kind;
11521 V10 : Node_Kind) return Boolean;
11523 function Nkind_In
11524 (T : Node_Kind;
11525 V1 : Node_Kind;
11526 V2 : Node_Kind;
11527 V3 : Node_Kind;
11528 V4 : Node_Kind;
11529 V5 : Node_Kind;
11530 V6 : Node_Kind;
11531 V7 : Node_Kind;
11532 V8 : Node_Kind;
11533 V9 : Node_Kind;
11534 V10 : Node_Kind;
11535 V11 : Node_Kind) return Boolean;
11537 pragma Inline (Nkind_In);
11538 -- Inline all above functions
11540 -----------------------
11541 -- Utility Functions --
11542 -----------------------
11544 procedure Map_Pragma_Name (From, To : Name_Id);
11545 -- Used in the implementation of pragma Rename_Pragma. Maps pragma name
11546 -- From to pragma name To, so From can be used as a synonym for To.
11548 Too_Many_Pragma_Mappings : exception;
11549 -- Raised if Map_Pragma_Name is called too many times. We expect that few
11550 -- programs will use it at all, and those that do will use it approximately
11551 -- once or twice.
11553 function Pragma_Name (N : Node_Id) return Name_Id;
11554 -- Obtain the name of pragma N from the Chars field of its identifier. If
11555 -- the pragma has been renamed using Rename_Pragma, this routine returns
11556 -- the name of the renaming.
11558 function Pragma_Name_Unmapped (N : Node_Id) return Name_Id;
11559 -- Obtain the name of pragma N from the Chars field of its identifier. This
11560 -- form of name extraction does not take into account renamings performed
11561 -- by Rename_Pragma.
11563 -----------------------------
11564 -- Syntactic Parent Tables --
11565 -----------------------------
11567 -- These tables show for each node, and for each of the five fields,
11568 -- whether the corresponding field is syntactic (True) or semantic (False).
11569 -- Unused entries are also set to False.
11571 subtype Field_Num is Natural range 1 .. 5;
11573 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
11575 -- Following entries can be built automatically from the sinfo sources
11576 -- using the makeisf utility (currently this program is in spitbol).
11578 N_Identifier =>
11579 (1 => True, -- Chars (Name1)
11580 2 => False, -- Original_Discriminant (Node2-Sem)
11581 3 => False, -- unused
11582 4 => False, -- Entity (Node4-Sem)
11583 5 => False), -- Etype (Node5-Sem)
11585 N_Integer_Literal =>
11586 (1 => False, -- unused
11587 2 => False, -- Original_Entity (Node2-Sem)
11588 3 => True, -- Intval (Uint3)
11589 4 => False, -- unused
11590 5 => False), -- Etype (Node5-Sem)
11592 N_Real_Literal =>
11593 (1 => False, -- unused
11594 2 => False, -- Original_Entity (Node2-Sem)
11595 3 => True, -- Realval (Ureal3)
11596 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
11597 5 => False), -- Etype (Node5-Sem)
11599 N_Character_Literal =>
11600 (1 => True, -- Chars (Name1)
11601 2 => True, -- Char_Literal_Value (Uint2)
11602 3 => False, -- unused
11603 4 => False, -- Entity (Node4-Sem)
11604 5 => False), -- Etype (Node5-Sem)
11606 N_String_Literal =>
11607 (1 => False, -- unused
11608 2 => False, -- unused
11609 3 => True, -- Strval (Str3)
11610 4 => False, -- unused
11611 5 => False), -- Etype (Node5-Sem)
11613 N_Pragma =>
11614 (1 => False, -- Next_Pragma (Node1-Sem)
11615 2 => True, -- Pragma_Argument_Associations (List2)
11616 3 => False, -- Corresponding_Aspect (Node3-Sem)
11617 4 => True, -- Pragma_Identifier (Node4)
11618 5 => False), -- Next_Rep_Item (Node5-Sem)
11620 N_Pragma_Argument_Association =>
11621 (1 => True, -- Chars (Name1)
11622 2 => False, -- Expression_Copy (Node2-Sem)
11623 3 => True, -- Expression (Node3)
11624 4 => False, -- unused
11625 5 => False), -- unused
11627 N_Defining_Identifier =>
11628 (1 => True, -- Chars (Name1)
11629 2 => False, -- Next_Entity (Node2-Sem)
11630 3 => False, -- Scope (Node3-Sem)
11631 4 => False, -- unused
11632 5 => False), -- Etype (Node5-Sem)
11634 N_Full_Type_Declaration =>
11635 (1 => True, -- Defining_Identifier (Node1)
11636 2 => False, -- Incomplete_View (Node2-Sem)
11637 3 => True, -- Type_Definition (Node3)
11638 4 => True, -- Discriminant_Specifications (List4)
11639 5 => False), -- unused
11641 N_Subtype_Declaration =>
11642 (1 => True, -- Defining_Identifier (Node1)
11643 2 => False, -- unused
11644 3 => False, -- unused
11645 4 => False, -- Generic_Parent_Type (Node4-Sem)
11646 5 => True), -- Subtype_Indication (Node5)
11648 N_Subtype_Indication =>
11649 (1 => False, -- unused
11650 2 => False, -- unused
11651 3 => True, -- Constraint (Node3)
11652 4 => True, -- Subtype_Mark (Node4)
11653 5 => False), -- Etype (Node5-Sem)
11655 N_Object_Declaration =>
11656 (1 => True, -- Defining_Identifier (Node1)
11657 2 => False, -- Handler_List_Entry (Node2-Sem)
11658 3 => True, -- Expression (Node3)
11659 4 => True, -- Object_Definition (Node4)
11660 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11662 N_Number_Declaration =>
11663 (1 => True, -- Defining_Identifier (Node1)
11664 2 => False, -- unused
11665 3 => True, -- Expression (Node3)
11666 4 => False, -- unused
11667 5 => False), -- unused
11669 N_Derived_Type_Definition =>
11670 (1 => False, -- unused
11671 2 => True, -- Interface_List (List2)
11672 3 => True, -- Record_Extension_Part (Node3)
11673 4 => False, -- unused
11674 5 => True), -- Subtype_Indication (Node5)
11676 N_Range_Constraint =>
11677 (1 => False, -- unused
11678 2 => False, -- unused
11679 3 => False, -- unused
11680 4 => True, -- Range_Expression (Node4)
11681 5 => False), -- unused
11683 N_Range =>
11684 (1 => True, -- Low_Bound (Node1)
11685 2 => True, -- High_Bound (Node2)
11686 3 => False, -- unused
11687 4 => False, -- unused
11688 5 => False), -- Etype (Node5-Sem)
11690 N_Enumeration_Type_Definition =>
11691 (1 => True, -- Literals (List1)
11692 2 => False, -- unused
11693 3 => False, -- unused
11694 4 => True, -- End_Label (Node4)
11695 5 => False), -- unused
11697 N_Defining_Character_Literal =>
11698 (1 => True, -- Chars (Name1)
11699 2 => False, -- Next_Entity (Node2-Sem)
11700 3 => False, -- Scope (Node3-Sem)
11701 4 => False, -- unused
11702 5 => False), -- Etype (Node5-Sem)
11704 N_Signed_Integer_Type_Definition =>
11705 (1 => True, -- Low_Bound (Node1)
11706 2 => True, -- High_Bound (Node2)
11707 3 => False, -- unused
11708 4 => False, -- unused
11709 5 => False), -- unused
11711 N_Modular_Type_Definition =>
11712 (1 => False, -- unused
11713 2 => False, -- unused
11714 3 => True, -- Expression (Node3)
11715 4 => False, -- unused
11716 5 => False), -- unused
11718 N_Floating_Point_Definition =>
11719 (1 => False, -- unused
11720 2 => True, -- Digits_Expression (Node2)
11721 3 => False, -- unused
11722 4 => True, -- Real_Range_Specification (Node4)
11723 5 => False), -- unused
11725 N_Real_Range_Specification =>
11726 (1 => True, -- Low_Bound (Node1)
11727 2 => True, -- High_Bound (Node2)
11728 3 => False, -- unused
11729 4 => False, -- unused
11730 5 => False), -- unused
11732 N_Ordinary_Fixed_Point_Definition =>
11733 (1 => False, -- unused
11734 2 => False, -- unused
11735 3 => True, -- Delta_Expression (Node3)
11736 4 => True, -- Real_Range_Specification (Node4)
11737 5 => False), -- unused
11739 N_Decimal_Fixed_Point_Definition =>
11740 (1 => False, -- unused
11741 2 => True, -- Digits_Expression (Node2)
11742 3 => True, -- Delta_Expression (Node3)
11743 4 => True, -- Real_Range_Specification (Node4)
11744 5 => False), -- unused
11746 N_Digits_Constraint =>
11747 (1 => False, -- unused
11748 2 => True, -- Digits_Expression (Node2)
11749 3 => False, -- unused
11750 4 => True, -- Range_Constraint (Node4)
11751 5 => False), -- unused
11753 N_Unconstrained_Array_Definition =>
11754 (1 => False, -- unused
11755 2 => True, -- Subtype_Marks (List2)
11756 3 => False, -- unused
11757 4 => True, -- Component_Definition (Node4)
11758 5 => False), -- unused
11760 N_Constrained_Array_Definition =>
11761 (1 => False, -- unused
11762 2 => True, -- Discrete_Subtype_Definitions (List2)
11763 3 => False, -- unused
11764 4 => True, -- Component_Definition (Node4)
11765 5 => False), -- unused
11767 N_Component_Definition =>
11768 (1 => False, -- unused
11769 2 => False, -- unused
11770 3 => True, -- Access_Definition (Node3)
11771 4 => False, -- unused
11772 5 => True), -- Subtype_Indication (Node5)
11774 N_Discriminant_Specification =>
11775 (1 => True, -- Defining_Identifier (Node1)
11776 2 => False, -- unused
11777 3 => True, -- Expression (Node3)
11778 4 => False, -- unused
11779 5 => True), -- Discriminant_Type (Node5)
11781 N_Index_Or_Discriminant_Constraint =>
11782 (1 => True, -- Constraints (List1)
11783 2 => False, -- unused
11784 3 => False, -- unused
11785 4 => False, -- unused
11786 5 => False), -- unused
11788 N_Discriminant_Association =>
11789 (1 => True, -- Selector_Names (List1)
11790 2 => False, -- unused
11791 3 => True, -- Expression (Node3)
11792 4 => False, -- unused
11793 5 => False), -- unused
11795 N_Record_Definition =>
11796 (1 => True, -- Component_List (Node1)
11797 2 => True, -- Interface_List (List2)
11798 3 => False, -- unused
11799 4 => True, -- End_Label (Node4)
11800 5 => False), -- unused
11802 N_Component_List =>
11803 (1 => False, -- unused
11804 2 => False, -- unused
11805 3 => True, -- Component_Items (List3)
11806 4 => True, -- Variant_Part (Node4)
11807 5 => False), -- unused
11809 N_Component_Declaration =>
11810 (1 => True, -- Defining_Identifier (Node1)
11811 2 => False, -- unused
11812 3 => True, -- Expression (Node3)
11813 4 => True, -- Component_Definition (Node4)
11814 5 => False), -- unused
11816 N_Variant_Part =>
11817 (1 => True, -- Variants (List1)
11818 2 => True, -- Name (Node2)
11819 3 => False, -- unused
11820 4 => False, -- unused
11821 5 => False), -- unused
11823 N_Variant =>
11824 (1 => True, -- Component_List (Node1)
11825 2 => False, -- Enclosing_Variant (Node2-Sem)
11826 3 => False, -- Present_Expr (Uint3-Sem)
11827 4 => True, -- Discrete_Choices (List4)
11828 5 => False), -- Dcheck_Function (Node5-Sem)
11830 N_Others_Choice =>
11831 (1 => False, -- Others_Discrete_Choices (List1-Sem)
11832 2 => False, -- unused
11833 3 => False, -- unused
11834 4 => False, -- unused
11835 5 => False), -- unused
11837 N_Access_To_Object_Definition =>
11838 (1 => False, -- unused
11839 2 => False, -- unused
11840 3 => False, -- unused
11841 4 => False, -- unused
11842 5 => True), -- Subtype_Indication (Node5)
11844 N_Access_Function_Definition =>
11845 (1 => False, -- unused
11846 2 => False, -- unused
11847 3 => True, -- Parameter_Specifications (List3)
11848 4 => True, -- Result_Definition (Node4)
11849 5 => False), -- unused
11851 N_Access_Procedure_Definition =>
11852 (1 => False, -- unused
11853 2 => False, -- unused
11854 3 => True, -- Parameter_Specifications (List3)
11855 4 => False, -- unused
11856 5 => False), -- unused
11858 N_Access_Definition =>
11859 (1 => False, -- unused
11860 2 => False, -- unused
11861 3 => True, -- Access_To_Subprogram_Definition (Node3)
11862 4 => True, -- Subtype_Mark (Node4)
11863 5 => False), -- unused
11865 N_Incomplete_Type_Declaration =>
11866 (1 => True, -- Defining_Identifier (Node1)
11867 2 => False, -- unused
11868 3 => False, -- unused
11869 4 => True, -- Discriminant_Specifications (List4)
11870 5 => False), -- Premature_Use
11872 N_Explicit_Dereference =>
11873 (1 => False, -- unused
11874 2 => False, -- unused
11875 3 => True, -- Prefix (Node3)
11876 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11877 5 => False), -- Etype (Node5-Sem)
11879 N_Indexed_Component =>
11880 (1 => True, -- Expressions (List1)
11881 2 => False, -- unused
11882 3 => True, -- Prefix (Node3)
11883 4 => False, -- Generalized_Indexing (Node4-Sem)
11884 5 => False), -- Etype (Node5-Sem)
11886 N_Slice =>
11887 (1 => False, -- unused
11888 2 => False, -- unused
11889 3 => True, -- Prefix (Node3)
11890 4 => True, -- Discrete_Range (Node4)
11891 5 => False), -- Etype (Node5-Sem)
11893 N_Selected_Component =>
11894 (1 => False, -- unused
11895 2 => True, -- Selector_Name (Node2)
11896 3 => True, -- Prefix (Node3)
11897 4 => False, -- unused
11898 5 => False), -- Etype (Node5-Sem)
11900 N_Attribute_Reference =>
11901 (1 => True, -- Expressions (List1)
11902 2 => True, -- Attribute_Name (Name2)
11903 3 => True, -- Prefix (Node3)
11904 4 => False, -- Entity (Node4-Sem)
11905 5 => False), -- Etype (Node5-Sem)
11907 N_Aggregate =>
11908 (1 => True, -- Expressions (List1)
11909 2 => True, -- Component_Associations (List2)
11910 3 => False, -- Aggregate_Bounds (Node3-Sem)
11911 4 => False, -- unused
11912 5 => False), -- Etype (Node5-Sem)
11914 N_Component_Association =>
11915 (1 => True, -- Choices (List1)
11916 2 => False, -- Loop_Actions (List2-Sem)
11917 3 => True, -- Expression (Node3)
11918 4 => False, -- unused
11919 5 => False), -- unused
11921 N_Iterated_Component_Association =>
11922 (1 => True, -- Defining_Identifier (Node1)
11923 2 => False, -- unused
11924 3 => True, -- Expression (Node3)
11925 4 => True, -- Discrete_Choices (List4)
11926 5 => False), -- unused
11928 N_Delta_Aggregate =>
11929 (1 => False, -- Expressions (List1-Sem)
11930 2 => True, -- Component_Associations (List2)
11931 3 => True, -- Expression (Node3)
11932 4 => False, -- Unused
11933 5 => False), -- Etype (Node5-Sem)
11935 N_Extension_Aggregate =>
11936 (1 => True, -- Expressions (List1)
11937 2 => True, -- Component_Associations (List2)
11938 3 => True, -- Ancestor_Part (Node3)
11939 4 => False, -- unused
11940 5 => False), -- Etype (Node5-Sem)
11942 N_Null =>
11943 (1 => False, -- unused
11944 2 => False, -- unused
11945 3 => False, -- unused
11946 4 => False, -- unused
11947 5 => False), -- Etype (Node5-Sem)
11949 N_And_Then =>
11950 (1 => False, -- Actions (List1-Sem)
11951 2 => True, -- Left_Opnd (Node2)
11952 3 => True, -- Right_Opnd (Node3)
11953 4 => False, -- unused
11954 5 => False), -- Etype (Node5-Sem)
11956 N_Or_Else =>
11957 (1 => False, -- Actions (List1-Sem)
11958 2 => True, -- Left_Opnd (Node2)
11959 3 => True, -- Right_Opnd (Node3)
11960 4 => False, -- unused
11961 5 => False), -- Etype (Node5-Sem)
11963 N_In =>
11964 (1 => False, -- unused
11965 2 => True, -- Left_Opnd (Node2)
11966 3 => True, -- Right_Opnd (Node3)
11967 4 => True, -- Alternatives (List4)
11968 5 => False), -- Etype (Node5-Sem)
11970 N_Not_In =>
11971 (1 => False, -- unused
11972 2 => True, -- Left_Opnd (Node2)
11973 3 => True, -- Right_Opnd (Node3)
11974 4 => True, -- Alternatives (List4)
11975 5 => False), -- Etype (Node5-Sem)
11977 N_Op_And =>
11978 (1 => True, -- Chars (Name1)
11979 2 => True, -- Left_Opnd (Node2)
11980 3 => True, -- Right_Opnd (Node3)
11981 4 => False, -- Entity (Node4-Sem)
11982 5 => False), -- Etype (Node5-Sem)
11984 N_Op_Or =>
11985 (1 => True, -- Chars (Name1)
11986 2 => True, -- Left_Opnd (Node2)
11987 3 => True, -- Right_Opnd (Node3)
11988 4 => False, -- Entity (Node4-Sem)
11989 5 => False), -- Etype (Node5-Sem)
11991 N_Op_Xor =>
11992 (1 => True, -- Chars (Name1)
11993 2 => True, -- Left_Opnd (Node2)
11994 3 => True, -- Right_Opnd (Node3)
11995 4 => False, -- Entity (Node4-Sem)
11996 5 => False), -- Etype (Node5-Sem)
11998 N_Op_Eq =>
11999 (1 => True, -- Chars (Name1)
12000 2 => True, -- Left_Opnd (Node2)
12001 3 => True, -- Right_Opnd (Node3)
12002 4 => False, -- Entity (Node4-Sem)
12003 5 => False), -- Etype (Node5-Sem)
12005 N_Op_Ne =>
12006 (1 => True, -- Chars (Name1)
12007 2 => True, -- Left_Opnd (Node2)
12008 3 => True, -- Right_Opnd (Node3)
12009 4 => False, -- Entity (Node4-Sem)
12010 5 => False), -- Etype (Node5-Sem)
12012 N_Op_Lt =>
12013 (1 => True, -- Chars (Name1)
12014 2 => True, -- Left_Opnd (Node2)
12015 3 => True, -- Right_Opnd (Node3)
12016 4 => False, -- Entity (Node4-Sem)
12017 5 => False), -- Etype (Node5-Sem)
12019 N_Op_Le =>
12020 (1 => True, -- Chars (Name1)
12021 2 => True, -- Left_Opnd (Node2)
12022 3 => True, -- Right_Opnd (Node3)
12023 4 => False, -- Entity (Node4-Sem)
12024 5 => False), -- Etype (Node5-Sem)
12026 N_Op_Gt =>
12027 (1 => True, -- Chars (Name1)
12028 2 => True, -- Left_Opnd (Node2)
12029 3 => True, -- Right_Opnd (Node3)
12030 4 => False, -- Entity (Node4-Sem)
12031 5 => False), -- Etype (Node5-Sem)
12033 N_Op_Ge =>
12034 (1 => True, -- Chars (Name1)
12035 2 => True, -- Left_Opnd (Node2)
12036 3 => True, -- Right_Opnd (Node3)
12037 4 => False, -- Entity (Node4-Sem)
12038 5 => False), -- Etype (Node5-Sem)
12040 N_Op_Add =>
12041 (1 => True, -- Chars (Name1)
12042 2 => True, -- Left_Opnd (Node2)
12043 3 => True, -- Right_Opnd (Node3)
12044 4 => False, -- Entity (Node4-Sem)
12045 5 => False), -- Etype (Node5-Sem)
12047 N_Op_Subtract =>
12048 (1 => True, -- Chars (Name1)
12049 2 => True, -- Left_Opnd (Node2)
12050 3 => True, -- Right_Opnd (Node3)
12051 4 => False, -- Entity (Node4-Sem)
12052 5 => False), -- Etype (Node5-Sem)
12054 N_Op_Concat =>
12055 (1 => True, -- Chars (Name1)
12056 2 => True, -- Left_Opnd (Node2)
12057 3 => True, -- Right_Opnd (Node3)
12058 4 => False, -- Entity (Node4-Sem)
12059 5 => False), -- Etype (Node5-Sem)
12061 N_Op_Multiply =>
12062 (1 => True, -- Chars (Name1)
12063 2 => True, -- Left_Opnd (Node2)
12064 3 => True, -- Right_Opnd (Node3)
12065 4 => False, -- Entity (Node4-Sem)
12066 5 => False), -- Etype (Node5-Sem)
12068 N_Op_Divide =>
12069 (1 => True, -- Chars (Name1)
12070 2 => True, -- Left_Opnd (Node2)
12071 3 => True, -- Right_Opnd (Node3)
12072 4 => False, -- Entity (Node4-Sem)
12073 5 => False), -- Etype (Node5-Sem)
12075 N_Op_Mod =>
12076 (1 => True, -- Chars (Name1)
12077 2 => True, -- Left_Opnd (Node2)
12078 3 => True, -- Right_Opnd (Node3)
12079 4 => False, -- Entity (Node4-Sem)
12080 5 => False), -- Etype (Node5-Sem)
12082 N_Op_Rem =>
12083 (1 => True, -- Chars (Name1)
12084 2 => True, -- Left_Opnd (Node2)
12085 3 => True, -- Right_Opnd (Node3)
12086 4 => False, -- Entity (Node4-Sem)
12087 5 => False), -- Etype (Node5-Sem)
12089 N_Op_Expon =>
12090 (1 => True, -- Chars (Name1)
12091 2 => True, -- Left_Opnd (Node2)
12092 3 => True, -- Right_Opnd (Node3)
12093 4 => False, -- Entity (Node4-Sem)
12094 5 => False), -- Etype (Node5-Sem)
12096 N_Op_Plus =>
12097 (1 => True, -- Chars (Name1)
12098 2 => False, -- unused
12099 3 => True, -- Right_Opnd (Node3)
12100 4 => False, -- Entity (Node4-Sem)
12101 5 => False), -- Etype (Node5-Sem)
12103 N_Op_Minus =>
12104 (1 => True, -- Chars (Name1)
12105 2 => False, -- unused
12106 3 => True, -- Right_Opnd (Node3)
12107 4 => False, -- Entity (Node4-Sem)
12108 5 => False), -- Etype (Node5-Sem)
12110 N_Op_Abs =>
12111 (1 => True, -- Chars (Name1)
12112 2 => False, -- unused
12113 3 => True, -- Right_Opnd (Node3)
12114 4 => False, -- Entity (Node4-Sem)
12115 5 => False), -- Etype (Node5-Sem)
12117 N_Op_Not =>
12118 (1 => True, -- Chars (Name1)
12119 2 => False, -- unused
12120 3 => True, -- Right_Opnd (Node3)
12121 4 => False, -- Entity (Node4-Sem)
12122 5 => False), -- Etype (Node5-Sem)
12124 N_Type_Conversion =>
12125 (1 => False, -- unused
12126 2 => False, -- unused
12127 3 => True, -- Expression (Node3)
12128 4 => True, -- Subtype_Mark (Node4)
12129 5 => False), -- Etype (Node5-Sem)
12131 N_Qualified_Expression =>
12132 (1 => False, -- unused
12133 2 => False, -- unused
12134 3 => True, -- Expression (Node3)
12135 4 => True, -- Subtype_Mark (Node4)
12136 5 => False), -- Etype (Node5-Sem)
12138 N_Quantified_Expression =>
12139 (1 => True, -- Condition (Node1)
12140 2 => True, -- Iterator_Specification (Node2)
12141 3 => False, -- unused
12142 4 => True, -- Loop_Parameter_Specification (Node4)
12143 5 => False), -- Etype (Node5-Sem)
12145 N_Allocator =>
12146 (1 => False, -- Storage_Pool (Node1-Sem)
12147 2 => False, -- Procedure_To_Call (Node2-Sem)
12148 3 => True, -- Expression (Node3)
12149 4 => True, -- Subpool_Handle_Name (Node4)
12150 5 => False), -- Etype (Node5-Sem)
12152 N_Null_Statement =>
12153 (1 => False, -- unused
12154 2 => False, -- unused
12155 3 => False, -- unused
12156 4 => False, -- unused
12157 5 => False), -- unused
12159 N_Label =>
12160 (1 => True, -- Identifier (Node1)
12161 2 => False, -- unused
12162 3 => False, -- unused
12163 4 => False, -- unused
12164 5 => False), -- unused
12166 N_Assignment_Statement =>
12167 (1 => False, -- unused
12168 2 => True, -- Name (Node2)
12169 3 => True, -- Expression (Node3)
12170 4 => False, -- unused
12171 5 => False), -- unused
12173 N_Target_Name =>
12174 (1 => False, -- unused
12175 2 => False, -- unused
12176 3 => False, -- unused
12177 4 => False, -- unused
12178 5 => False), -- Etype (Node5-Sem)
12180 N_If_Statement =>
12181 (1 => True, -- Condition (Node1)
12182 2 => True, -- Then_Statements (List2)
12183 3 => True, -- Elsif_Parts (List3)
12184 4 => True, -- Else_Statements (List4)
12185 5 => True), -- End_Span (Uint5)
12187 N_Elsif_Part =>
12188 (1 => True, -- Condition (Node1)
12189 2 => True, -- Then_Statements (List2)
12190 3 => False, -- Condition_Actions (List3-Sem)
12191 4 => False, -- unused
12192 5 => False), -- unused
12194 N_Case_Expression =>
12195 (1 => False, -- unused
12196 2 => False, -- unused
12197 3 => True, -- Expression (Node3)
12198 4 => True, -- Alternatives (List4)
12199 5 => False), -- unused
12201 N_Case_Expression_Alternative =>
12202 (1 => False, -- Actions (List1-Sem)
12203 2 => False, -- unused
12204 3 => True, -- Expression (Node3)
12205 4 => True, -- Discrete_Choices (List4)
12206 5 => False), -- unused
12208 N_Case_Statement =>
12209 (1 => False, -- unused
12210 2 => False, -- unused
12211 3 => True, -- Expression (Node3)
12212 4 => True, -- Alternatives (List4)
12213 5 => True), -- End_Span (Uint5)
12215 N_Case_Statement_Alternative =>
12216 (1 => False, -- unused
12217 2 => False, -- unused
12218 3 => True, -- Statements (List3)
12219 4 => True, -- Discrete_Choices (List4)
12220 5 => False), -- unused
12222 N_Loop_Statement =>
12223 (1 => True, -- Identifier (Node1)
12224 2 => True, -- Iteration_Scheme (Node2)
12225 3 => True, -- Statements (List3)
12226 4 => True, -- End_Label (Node4)
12227 5 => False), -- unused
12229 N_Iteration_Scheme =>
12230 (1 => True, -- Condition (Node1)
12231 2 => True, -- Iterator_Specification (Node2)
12232 3 => False, -- Condition_Actions (List3-Sem)
12233 4 => True, -- Loop_Parameter_Specification (Node4)
12234 5 => False), -- unused
12236 N_Loop_Parameter_Specification =>
12237 (1 => True, -- Defining_Identifier (Node1)
12238 2 => False, -- unused
12239 3 => False, -- unused
12240 4 => True, -- Discrete_Subtype_Definition (Node4)
12241 5 => False), -- unused
12243 N_Iterator_Specification =>
12244 (1 => True, -- Defining_Identifier (Node1)
12245 2 => True, -- Name (Node2)
12246 3 => False, -- Unused
12247 4 => False, -- Unused
12248 5 => True), -- Subtype_Indication (Node5)
12250 N_Block_Statement =>
12251 (1 => True, -- Identifier (Node1)
12252 2 => True, -- Declarations (List2)
12253 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12254 4 => True, -- Handled_Statement_Sequence (Node4)
12255 5 => False), -- unused
12257 N_Exit_Statement =>
12258 (1 => True, -- Condition (Node1)
12259 2 => True, -- Name (Node2)
12260 3 => False, -- unused
12261 4 => False, -- unused
12262 5 => False), -- unused
12264 N_Goto_Statement =>
12265 (1 => False, -- unused
12266 2 => True, -- Name (Node2)
12267 3 => False, -- unused
12268 4 => False, -- unused
12269 5 => False), -- unused
12271 N_Subprogram_Declaration =>
12272 (1 => True, -- Specification (Node1)
12273 2 => False, -- unused
12274 3 => False, -- Body_To_Inline (Node3-Sem)
12275 4 => False, -- Parent_Spec (Node4-Sem)
12276 5 => False), -- Corresponding_Body (Node5-Sem)
12278 N_Abstract_Subprogram_Declaration =>
12279 (1 => True, -- Specification (Node1)
12280 2 => False, -- unused
12281 3 => False, -- unused
12282 4 => False, -- unused
12283 5 => False), -- unused
12285 N_Function_Specification =>
12286 (1 => True, -- Defining_Unit_Name (Node1)
12287 2 => False, -- unused
12288 3 => True, -- Parameter_Specifications (List3)
12289 4 => True, -- Result_Definition (Node4)
12290 5 => False), -- Generic_Parent (Node5-Sem)
12292 N_Procedure_Specification =>
12293 (1 => True, -- Defining_Unit_Name (Node1)
12294 2 => False, -- Null_Statement (Node2-Sem)
12295 3 => True, -- Parameter_Specifications (List3)
12296 4 => False, -- unused
12297 5 => False), -- Generic_Parent (Node5-Sem)
12299 N_Designator =>
12300 (1 => True, -- Identifier (Node1)
12301 2 => True, -- Name (Node2)
12302 3 => False, -- unused
12303 4 => False, -- unused
12304 5 => False), -- unused
12306 N_Defining_Program_Unit_Name =>
12307 (1 => True, -- Defining_Identifier (Node1)
12308 2 => True, -- Name (Node2)
12309 3 => False, -- unused
12310 4 => False, -- unused
12311 5 => False), -- unused
12313 N_Operator_Symbol =>
12314 (1 => True, -- Chars (Name1)
12315 2 => False, -- unused
12316 3 => True, -- Strval (Str3)
12317 4 => False, -- Entity (Node4-Sem)
12318 5 => False), -- Etype (Node5-Sem)
12320 N_Defining_Operator_Symbol =>
12321 (1 => True, -- Chars (Name1)
12322 2 => False, -- Next_Entity (Node2-Sem)
12323 3 => False, -- Scope (Node3-Sem)
12324 4 => False, -- unused
12325 5 => False), -- Etype (Node5-Sem)
12327 N_Parameter_Specification =>
12328 (1 => True, -- Defining_Identifier (Node1)
12329 2 => True, -- Parameter_Type (Node2)
12330 3 => True, -- Expression (Node3)
12331 4 => False, -- unused
12332 5 => False), -- Default_Expression (Node5-Sem)
12334 N_Subprogram_Body =>
12335 (1 => True, -- Specification (Node1)
12336 2 => True, -- Declarations (List2)
12337 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12338 4 => True, -- Handled_Statement_Sequence (Node4)
12339 5 => False), -- Corresponding_Spec (Node5-Sem)
12341 N_Expression_Function =>
12342 (1 => True, -- Specification (Node1)
12343 2 => False, -- unused
12344 3 => True, -- Expression (Node3)
12345 4 => False, -- unused
12346 5 => False), -- unused
12348 N_Procedure_Call_Statement =>
12349 (1 => False, -- Controlling_Argument (Node1-Sem)
12350 2 => True, -- Name (Node2)
12351 3 => True, -- Parameter_Associations (List3)
12352 4 => False, -- First_Named_Actual (Node4-Sem)
12353 5 => False), -- Etype (Node5-Sem)
12355 N_Function_Call =>
12356 (1 => False, -- Controlling_Argument (Node1-Sem)
12357 2 => True, -- Name (Node2)
12358 3 => True, -- Parameter_Associations (List3)
12359 4 => False, -- First_Named_Actual (Node4-Sem)
12360 5 => False), -- Etype (Node5-Sem)
12362 N_Parameter_Association =>
12363 (1 => False, -- unused
12364 2 => True, -- Selector_Name (Node2)
12365 3 => True, -- Explicit_Actual_Parameter (Node3)
12366 4 => False, -- Next_Named_Actual (Node4-Sem)
12367 5 => False), -- unused
12369 N_Simple_Return_Statement =>
12370 (1 => False, -- Storage_Pool (Node1-Sem)
12371 2 => False, -- Procedure_To_Call (Node2-Sem)
12372 3 => True, -- Expression (Node3)
12373 4 => False, -- unused
12374 5 => False), -- Return_Statement_Entity (Node5-Sem)
12376 N_Extended_Return_Statement =>
12377 (1 => False, -- Storage_Pool (Node1-Sem)
12378 2 => False, -- Procedure_To_Call (Node2-Sem)
12379 3 => True, -- Return_Object_Declarations (List3)
12380 4 => True, -- Handled_Statement_Sequence (Node4)
12381 5 => False), -- Return_Statement_Entity (Node5-Sem)
12383 N_Package_Declaration =>
12384 (1 => True, -- Specification (Node1)
12385 2 => False, -- unused
12386 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12387 4 => False, -- Parent_Spec (Node4-Sem)
12388 5 => False), -- Corresponding_Body (Node5-Sem)
12390 N_Package_Specification =>
12391 (1 => True, -- Defining_Unit_Name (Node1)
12392 2 => True, -- Visible_Declarations (List2)
12393 3 => True, -- Private_Declarations (List3)
12394 4 => True, -- End_Label (Node4)
12395 5 => False), -- Generic_Parent (Node5-Sem)
12397 N_Package_Body =>
12398 (1 => True, -- Defining_Unit_Name (Node1)
12399 2 => True, -- Declarations (List2)
12400 3 => False, -- unused
12401 4 => True, -- Handled_Statement_Sequence (Node4)
12402 5 => False), -- Corresponding_Spec (Node5-Sem)
12404 N_Private_Type_Declaration =>
12405 (1 => True, -- Defining_Identifier (Node1)
12406 2 => False, -- unused
12407 3 => False, -- unused
12408 4 => True, -- Discriminant_Specifications (List4)
12409 5 => False), -- unused
12411 N_Private_Extension_Declaration =>
12412 (1 => True, -- Defining_Identifier (Node1)
12413 2 => True, -- Interface_List (List2)
12414 3 => False, -- unused
12415 4 => True, -- Discriminant_Specifications (List4)
12416 5 => True), -- Subtype_Indication (Node5)
12418 N_Use_Package_Clause =>
12419 (1 => False, -- Prev_Use_Clause (Node1-Sem)
12420 2 => True, -- Name (Node2)
12421 3 => False, -- Next_Use_Clause (Node3-Sem)
12422 4 => False, -- Associated_Node (Node4-Sem)
12423 5 => False), -- Hidden_By_Use_Clause (Elist5-Sem)
12425 N_Use_Type_Clause =>
12426 (1 => False, -- Prev_Use_Clause (Node1-Sem)
12427 2 => False, -- Used_Operations (Elist2-Sem)
12428 3 => False, -- Next_Use_Clause (Node3-Sem)
12429 4 => True, -- Subtype_Mark (Node4)
12430 5 => False), -- Hidden_By_Use_Clause (Elist5-Sem)
12432 N_Object_Renaming_Declaration =>
12433 (1 => True, -- Defining_Identifier (Node1)
12434 2 => True, -- Name (Node2)
12435 3 => True, -- Access_Definition (Node3)
12436 4 => True, -- Subtype_Mark (Node4)
12437 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
12439 N_Exception_Renaming_Declaration =>
12440 (1 => True, -- Defining_Identifier (Node1)
12441 2 => True, -- Name (Node2)
12442 3 => False, -- unused
12443 4 => False, -- unused
12444 5 => False), -- unused
12446 N_Package_Renaming_Declaration =>
12447 (1 => True, -- Defining_Unit_Name (Node1)
12448 2 => True, -- Name (Node2)
12449 3 => False, -- unused
12450 4 => False, -- Parent_Spec (Node4-Sem)
12451 5 => False), -- unused
12453 N_Subprogram_Renaming_Declaration =>
12454 (1 => True, -- Specification (Node1)
12455 2 => True, -- Name (Node2)
12456 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
12457 4 => False, -- Parent_Spec (Node4-Sem)
12458 5 => False), -- Corresponding_Spec (Node5-Sem)
12460 N_Generic_Package_Renaming_Declaration =>
12461 (1 => True, -- Defining_Unit_Name (Node1)
12462 2 => True, -- Name (Node2)
12463 3 => False, -- unused
12464 4 => False, -- Parent_Spec (Node4-Sem)
12465 5 => False), -- unused
12467 N_Generic_Procedure_Renaming_Declaration =>
12468 (1 => True, -- Defining_Unit_Name (Node1)
12469 2 => True, -- Name (Node2)
12470 3 => False, -- unused
12471 4 => False, -- Parent_Spec (Node4-Sem)
12472 5 => False), -- unused
12474 N_Generic_Function_Renaming_Declaration =>
12475 (1 => True, -- Defining_Unit_Name (Node1)
12476 2 => True, -- Name (Node2)
12477 3 => False, -- unused
12478 4 => False, -- Parent_Spec (Node4-Sem)
12479 5 => False), -- unused
12481 N_Task_Type_Declaration =>
12482 (1 => True, -- Defining_Identifier (Node1)
12483 2 => True, -- Interface_List (List2)
12484 3 => True, -- Task_Definition (Node3)
12485 4 => True, -- Discriminant_Specifications (List4)
12486 5 => False), -- Corresponding_Body (Node5-Sem)
12488 N_Single_Task_Declaration =>
12489 (1 => True, -- Defining_Identifier (Node1)
12490 2 => True, -- Interface_List (List2)
12491 3 => True, -- Task_Definition (Node3)
12492 4 => False, -- unused
12493 5 => False), -- unused
12495 N_Task_Definition =>
12496 (1 => False, -- unused
12497 2 => True, -- Visible_Declarations (List2)
12498 3 => True, -- Private_Declarations (List3)
12499 4 => True, -- End_Label (Node4)
12500 5 => False), -- unused
12502 N_Task_Body =>
12503 (1 => True, -- Defining_Identifier (Node1)
12504 2 => True, -- Declarations (List2)
12505 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12506 4 => True, -- Handled_Statement_Sequence (Node4)
12507 5 => False), -- Corresponding_Spec (Node5-Sem)
12509 N_Protected_Type_Declaration =>
12510 (1 => True, -- Defining_Identifier (Node1)
12511 2 => True, -- Interface_List (List2)
12512 3 => True, -- Protected_Definition (Node3)
12513 4 => True, -- Discriminant_Specifications (List4)
12514 5 => False), -- Corresponding_Body (Node5-Sem)
12516 N_Single_Protected_Declaration =>
12517 (1 => True, -- Defining_Identifier (Node1)
12518 2 => True, -- Interface_List (List2)
12519 3 => True, -- Protected_Definition (Node3)
12520 4 => False, -- unused
12521 5 => False), -- unused
12523 N_Protected_Definition =>
12524 (1 => False, -- unused
12525 2 => True, -- Visible_Declarations (List2)
12526 3 => True, -- Private_Declarations (List3)
12527 4 => True, -- End_Label (Node4)
12528 5 => False), -- unused
12530 N_Protected_Body =>
12531 (1 => True, -- Defining_Identifier (Node1)
12532 2 => True, -- Declarations (List2)
12533 3 => False, -- unused
12534 4 => True, -- End_Label (Node4)
12535 5 => False), -- Corresponding_Spec (Node5-Sem)
12537 N_Entry_Declaration =>
12538 (1 => True, -- Defining_Identifier (Node1)
12539 2 => False, -- unused
12540 3 => True, -- Parameter_Specifications (List3)
12541 4 => True, -- Discrete_Subtype_Definition (Node4)
12542 5 => False), -- Corresponding_Body (Node5-Sem)
12544 N_Accept_Statement =>
12545 (1 => True, -- Entry_Direct_Name (Node1)
12546 2 => True, -- Declarations (List2)
12547 3 => True, -- Parameter_Specifications (List3)
12548 4 => True, -- Handled_Statement_Sequence (Node4)
12549 5 => True), -- Entry_Index (Node5)
12551 N_Entry_Body =>
12552 (1 => True, -- Defining_Identifier (Node1)
12553 2 => True, -- Declarations (List2)
12554 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12555 4 => True, -- Handled_Statement_Sequence (Node4)
12556 5 => True), -- Entry_Body_Formal_Part (Node5)
12558 N_Entry_Body_Formal_Part =>
12559 (1 => True, -- Condition (Node1)
12560 2 => False, -- unused
12561 3 => True, -- Parameter_Specifications (List3)
12562 4 => True, -- Entry_Index_Specification (Node4)
12563 5 => False), -- unused
12565 N_Entry_Index_Specification =>
12566 (1 => True, -- Defining_Identifier (Node1)
12567 2 => False, -- unused
12568 3 => False, -- unused
12569 4 => True, -- Discrete_Subtype_Definition (Node4)
12570 5 => False), -- unused
12572 N_Entry_Call_Statement =>
12573 (1 => False, -- unused
12574 2 => True, -- Name (Node2)
12575 3 => True, -- Parameter_Associations (List3)
12576 4 => False, -- First_Named_Actual (Node4-Sem)
12577 5 => False), -- unused
12579 N_Requeue_Statement =>
12580 (1 => False, -- unused
12581 2 => True, -- Name (Node2)
12582 3 => False, -- unused
12583 4 => False, -- unused
12584 5 => False), -- unused
12586 N_Delay_Until_Statement =>
12587 (1 => False, -- unused
12588 2 => False, -- unused
12589 3 => True, -- Expression (Node3)
12590 4 => False, -- unused
12591 5 => False), -- unused
12593 N_Delay_Relative_Statement =>
12594 (1 => False, -- unused
12595 2 => False, -- unused
12596 3 => True, -- Expression (Node3)
12597 4 => False, -- unused
12598 5 => False), -- unused
12600 N_Selective_Accept =>
12601 (1 => True, -- Select_Alternatives (List1)
12602 2 => False, -- unused
12603 3 => False, -- unused
12604 4 => True, -- Else_Statements (List4)
12605 5 => False), -- unused
12607 N_Accept_Alternative =>
12608 (1 => True, -- Condition (Node1)
12609 2 => True, -- Accept_Statement (Node2)
12610 3 => True, -- Statements (List3)
12611 4 => True, -- Pragmas_Before (List4)
12612 5 => False), -- Accept_Handler_Records (List5-Sem)
12614 N_Delay_Alternative =>
12615 (1 => True, -- Condition (Node1)
12616 2 => True, -- Delay_Statement (Node2)
12617 3 => True, -- Statements (List3)
12618 4 => True, -- Pragmas_Before (List4)
12619 5 => False), -- unused
12621 N_Terminate_Alternative =>
12622 (1 => True, -- Condition (Node1)
12623 2 => False, -- unused
12624 3 => False, -- unused
12625 4 => True, -- Pragmas_Before (List4)
12626 5 => True), -- Pragmas_After (List5)
12628 N_Timed_Entry_Call =>
12629 (1 => True, -- Entry_Call_Alternative (Node1)
12630 2 => False, -- unused
12631 3 => False, -- unused
12632 4 => True, -- Delay_Alternative (Node4)
12633 5 => False), -- unused
12635 N_Entry_Call_Alternative =>
12636 (1 => True, -- Entry_Call_Statement (Node1)
12637 2 => False, -- unused
12638 3 => True, -- Statements (List3)
12639 4 => True, -- Pragmas_Before (List4)
12640 5 => False), -- unused
12642 N_Conditional_Entry_Call =>
12643 (1 => True, -- Entry_Call_Alternative (Node1)
12644 2 => False, -- unused
12645 3 => False, -- unused
12646 4 => True, -- Else_Statements (List4)
12647 5 => False), -- unused
12649 N_Asynchronous_Select =>
12650 (1 => True, -- Triggering_Alternative (Node1)
12651 2 => True, -- Abortable_Part (Node2)
12652 3 => False, -- unused
12653 4 => False, -- unused
12654 5 => False), -- unused
12656 N_Triggering_Alternative =>
12657 (1 => True, -- Triggering_Statement (Node1)
12658 2 => False, -- unused
12659 3 => True, -- Statements (List3)
12660 4 => True, -- Pragmas_Before (List4)
12661 5 => False), -- unused
12663 N_Abortable_Part =>
12664 (1 => False, -- unused
12665 2 => False, -- unused
12666 3 => True, -- Statements (List3)
12667 4 => False, -- unused
12668 5 => False), -- unused
12670 N_Abort_Statement =>
12671 (1 => False, -- unused
12672 2 => True, -- Names (List2)
12673 3 => False, -- unused
12674 4 => False, -- unused
12675 5 => False), -- unused
12677 N_Compilation_Unit =>
12678 (1 => True, -- Context_Items (List1)
12679 2 => True, -- Unit (Node2)
12680 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
12681 4 => False, -- Library_Unit (Node4-Sem)
12682 5 => True), -- Aux_Decls_Node (Node5)
12684 N_Compilation_Unit_Aux =>
12685 (1 => True, -- Actions (List1)
12686 2 => True, -- Declarations (List2)
12687 3 => False, -- Default_Storage_Pool (Node3)
12688 4 => True, -- Config_Pragmas (List4)
12689 5 => True), -- Pragmas_After (List5)
12691 N_With_Clause =>
12692 (1 => False, -- unused
12693 2 => True, -- Name (Node2)
12694 3 => False, -- unused
12695 4 => False, -- Library_Unit (Node4-Sem)
12696 5 => False), -- Corresponding_Spec (Node5-Sem)
12698 N_Subprogram_Body_Stub =>
12699 (1 => True, -- Specification (Node1)
12700 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12701 3 => False, -- unused
12702 4 => False, -- Library_Unit (Node4-Sem)
12703 5 => False), -- Corresponding_Body (Node5-Sem)
12705 N_Package_Body_Stub =>
12706 (1 => True, -- Defining_Identifier (Node1)
12707 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12708 3 => False, -- unused
12709 4 => False, -- Library_Unit (Node4-Sem)
12710 5 => False), -- Corresponding_Body (Node5-Sem)
12712 N_Task_Body_Stub =>
12713 (1 => True, -- Defining_Identifier (Node1)
12714 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12715 3 => False, -- unused
12716 4 => False, -- Library_Unit (Node4-Sem)
12717 5 => False), -- Corresponding_Body (Node5-Sem)
12719 N_Protected_Body_Stub =>
12720 (1 => True, -- Defining_Identifier (Node1)
12721 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12722 3 => False, -- unused
12723 4 => False, -- Library_Unit (Node4-Sem)
12724 5 => False), -- Corresponding_Body (Node5-Sem)
12726 N_Subunit =>
12727 (1 => True, -- Proper_Body (Node1)
12728 2 => True, -- Name (Node2)
12729 3 => False, -- Corresponding_Stub (Node3-Sem)
12730 4 => False, -- unused
12731 5 => False), -- unused
12733 N_Exception_Declaration =>
12734 (1 => True, -- Defining_Identifier (Node1)
12735 2 => False, -- unused
12736 3 => False, -- Expression (Node3-Sem)
12737 4 => False, -- unused
12738 5 => False), -- unused
12740 N_Handled_Sequence_Of_Statements =>
12741 (1 => True, -- At_End_Proc (Node1)
12742 2 => False, -- First_Real_Statement (Node2-Sem)
12743 3 => True, -- Statements (List3)
12744 4 => True, -- End_Label (Node4)
12745 5 => True), -- Exception_Handlers (List5)
12747 N_Exception_Handler =>
12748 (1 => False, -- Local_Raise_Statements (Elist1)
12749 2 => True, -- Choice_Parameter (Node2)
12750 3 => True, -- Statements (List3)
12751 4 => True, -- Exception_Choices (List4)
12752 5 => False), -- Exception_Label (Node5)
12754 N_Raise_Statement =>
12755 (1 => False, -- unused
12756 2 => True, -- Name (Node2)
12757 3 => True, -- Expression (Node3)
12758 4 => False, -- unused
12759 5 => False), -- unused
12761 N_Raise_Expression =>
12762 (1 => False, -- unused
12763 2 => True, -- Name (Node2)
12764 3 => True, -- Expression (Node3)
12765 4 => False, -- unused
12766 5 => False), -- Etype (Node5-Sem)
12768 N_Generic_Subprogram_Declaration =>
12769 (1 => True, -- Specification (Node1)
12770 2 => True, -- Generic_Formal_Declarations (List2)
12771 3 => False, -- unused
12772 4 => False, -- Parent_Spec (Node4-Sem)
12773 5 => False), -- Corresponding_Body (Node5-Sem)
12775 N_Generic_Package_Declaration =>
12776 (1 => True, -- Specification (Node1)
12777 2 => True, -- Generic_Formal_Declarations (List2)
12778 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12779 4 => False, -- Parent_Spec (Node4-Sem)
12780 5 => False), -- Corresponding_Body (Node5-Sem)
12782 N_Package_Instantiation =>
12783 (1 => True, -- Defining_Unit_Name (Node1)
12784 2 => True, -- Name (Node2)
12785 3 => True, -- Generic_Associations (List3)
12786 4 => False, -- Parent_Spec (Node4-Sem)
12787 5 => False), -- Instance_Spec (Node5-Sem)
12789 N_Procedure_Instantiation =>
12790 (1 => True, -- Defining_Unit_Name (Node1)
12791 2 => True, -- Name (Node2)
12792 3 => True, -- Generic_Associations (List3)
12793 4 => False, -- Parent_Spec (Node4-Sem)
12794 5 => False), -- Instance_Spec (Node5-Sem)
12796 N_Function_Instantiation =>
12797 (1 => True, -- Defining_Unit_Name (Node1)
12798 2 => True, -- Name (Node2)
12799 3 => True, -- Generic_Associations (List3)
12800 4 => False, -- Parent_Spec (Node4-Sem)
12801 5 => False), -- Instance_Spec (Node5-Sem)
12803 N_Generic_Association =>
12804 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
12805 2 => True, -- Selector_Name (Node2)
12806 3 => False, -- unused
12807 4 => False, -- unused
12808 5 => False), -- unused
12810 N_Formal_Object_Declaration =>
12811 (1 => True, -- Defining_Identifier (Node1)
12812 2 => False, -- unused
12813 3 => True, -- Access_Definition (Node3)
12814 4 => True, -- Subtype_Mark (Node4)
12815 5 => True), -- Default_Expression (Node5)
12817 N_Formal_Type_Declaration =>
12818 (1 => True, -- Defining_Identifier (Node1)
12819 2 => False, -- unused
12820 3 => True, -- Formal_Type_Definition (Node3)
12821 4 => True, -- Discriminant_Specifications (List4)
12822 5 => False), -- unused
12824 N_Formal_Private_Type_Definition =>
12825 (1 => False, -- unused
12826 2 => False, -- unused
12827 3 => False, -- unused
12828 4 => False, -- unused
12829 5 => False), -- unused
12831 N_Formal_Incomplete_Type_Definition =>
12832 (1 => False, -- unused
12833 2 => False, -- unused
12834 3 => False, -- unused
12835 4 => False, -- unused
12836 5 => False), -- unused
12838 N_Formal_Derived_Type_Definition =>
12839 (1 => False, -- unused
12840 2 => True, -- Interface_List (List2)
12841 3 => False, -- unused
12842 4 => True, -- Subtype_Mark (Node4)
12843 5 => False), -- unused
12845 N_Formal_Discrete_Type_Definition =>
12846 (1 => False, -- unused
12847 2 => False, -- unused
12848 3 => False, -- unused
12849 4 => False, -- unused
12850 5 => False), -- unused
12852 N_Formal_Signed_Integer_Type_Definition =>
12853 (1 => False, -- unused
12854 2 => False, -- unused
12855 3 => False, -- unused
12856 4 => False, -- unused
12857 5 => False), -- unused
12859 N_Formal_Modular_Type_Definition =>
12860 (1 => False, -- unused
12861 2 => False, -- unused
12862 3 => False, -- unused
12863 4 => False, -- unused
12864 5 => False), -- unused
12866 N_Formal_Floating_Point_Definition =>
12867 (1 => False, -- unused
12868 2 => False, -- unused
12869 3 => False, -- unused
12870 4 => False, -- unused
12871 5 => False), -- unused
12873 N_Formal_Ordinary_Fixed_Point_Definition =>
12874 (1 => False, -- unused
12875 2 => False, -- unused
12876 3 => False, -- unused
12877 4 => False, -- unused
12878 5 => False), -- unused
12880 N_Formal_Decimal_Fixed_Point_Definition =>
12881 (1 => False, -- unused
12882 2 => False, -- unused
12883 3 => False, -- unused
12884 4 => False, -- unused
12885 5 => False), -- unused
12887 N_Formal_Concrete_Subprogram_Declaration =>
12888 (1 => True, -- Specification (Node1)
12889 2 => True, -- Default_Name (Node2)
12890 3 => False, -- unused
12891 4 => False, -- unused
12892 5 => False), -- unused
12894 N_Formal_Abstract_Subprogram_Declaration =>
12895 (1 => True, -- Specification (Node1)
12896 2 => True, -- Default_Name (Node2)
12897 3 => False, -- unused
12898 4 => False, -- unused
12899 5 => False), -- unused
12901 N_Formal_Package_Declaration =>
12902 (1 => True, -- Defining_Identifier (Node1)
12903 2 => True, -- Name (Node2)
12904 3 => True, -- Generic_Associations (List3)
12905 4 => False, -- unused
12906 5 => False), -- Instance_Spec (Node5-Sem)
12908 N_Attribute_Definition_Clause =>
12909 (1 => True, -- Chars (Name1)
12910 2 => True, -- Name (Node2)
12911 3 => True, -- Expression (Node3)
12912 4 => False, -- unused
12913 5 => False), -- Next_Rep_Item (Node5-Sem)
12915 N_Aspect_Specification =>
12916 (1 => True, -- Identifier (Node1)
12917 2 => False, -- Aspect_Rep_Item (Node2-Sem)
12918 3 => True, -- Expression (Node3)
12919 4 => False, -- Entity (Node4-Sem)
12920 5 => False), -- Next_Rep_Item (Node5-Sem)
12922 N_Enumeration_Representation_Clause =>
12923 (1 => True, -- Identifier (Node1)
12924 2 => False, -- unused
12925 3 => True, -- Array_Aggregate (Node3)
12926 4 => False, -- unused
12927 5 => False), -- Next_Rep_Item (Node5-Sem)
12929 N_Record_Representation_Clause =>
12930 (1 => True, -- Identifier (Node1)
12931 2 => True, -- Mod_Clause (Node2)
12932 3 => True, -- Component_Clauses (List3)
12933 4 => False, -- unused
12934 5 => False), -- Next_Rep_Item (Node5-Sem)
12936 N_Component_Clause =>
12937 (1 => True, -- Component_Name (Node1)
12938 2 => True, -- Position (Node2)
12939 3 => True, -- First_Bit (Node3)
12940 4 => True, -- Last_Bit (Node4)
12941 5 => False), -- unused
12943 N_Code_Statement =>
12944 (1 => False, -- unused
12945 2 => False, -- unused
12946 3 => True, -- Expression (Node3)
12947 4 => False, -- unused
12948 5 => False), -- unused
12950 N_Op_Rotate_Left =>
12951 (1 => True, -- Chars (Name1)
12952 2 => True, -- Left_Opnd (Node2)
12953 3 => True, -- Right_Opnd (Node3)
12954 4 => False, -- Entity (Node4-Sem)
12955 5 => False), -- Etype (Node5-Sem)
12957 N_Op_Rotate_Right =>
12958 (1 => True, -- Chars (Name1)
12959 2 => True, -- Left_Opnd (Node2)
12960 3 => True, -- Right_Opnd (Node3)
12961 4 => False, -- Entity (Node4-Sem)
12962 5 => False), -- Etype (Node5-Sem)
12964 N_Op_Shift_Left =>
12965 (1 => True, -- Chars (Name1)
12966 2 => True, -- Left_Opnd (Node2)
12967 3 => True, -- Right_Opnd (Node3)
12968 4 => False, -- Entity (Node4-Sem)
12969 5 => False), -- Etype (Node5-Sem)
12971 N_Op_Shift_Right_Arithmetic =>
12972 (1 => True, -- Chars (Name1)
12973 2 => True, -- Left_Opnd (Node2)
12974 3 => True, -- Right_Opnd (Node3)
12975 4 => False, -- Entity (Node4-Sem)
12976 5 => False), -- Etype (Node5-Sem)
12978 N_Op_Shift_Right =>
12979 (1 => True, -- Chars (Name1)
12980 2 => True, -- Left_Opnd (Node2)
12981 3 => True, -- Right_Opnd (Node3)
12982 4 => False, -- Entity (Node4-Sem)
12983 5 => False), -- Etype (Node5-Sem)
12985 N_Delta_Constraint =>
12986 (1 => False, -- unused
12987 2 => False, -- unused
12988 3 => True, -- Delta_Expression (Node3)
12989 4 => True, -- Range_Constraint (Node4)
12990 5 => False), -- unused
12992 N_At_Clause =>
12993 (1 => True, -- Identifier (Node1)
12994 2 => False, -- unused
12995 3 => True, -- Expression (Node3)
12996 4 => False, -- unused
12997 5 => False), -- unused
12999 N_Mod_Clause =>
13000 (1 => False, -- unused
13001 2 => False, -- unused
13002 3 => True, -- Expression (Node3)
13003 4 => True, -- Pragmas_Before (List4)
13004 5 => False), -- unused
13006 N_If_Expression =>
13007 (1 => True, -- Expressions (List1)
13008 2 => False, -- Then_Actions (List2-Sem)
13009 3 => False, -- Else_Actions (List3-Sem)
13010 4 => False, -- unused
13011 5 => False), -- Etype (Node5-Sem)
13013 N_Compound_Statement =>
13014 (1 => True, -- Actions (List1)
13015 2 => False, -- unused
13016 3 => False, -- unused
13017 4 => False, -- unused
13018 5 => False), -- unused
13020 N_Contract =>
13021 (1 => False, -- Pre_Post_Conditions (Node1-Sem)
13022 2 => False, -- Contract_Test_Cases (Node2-Sem)
13023 3 => False, -- Classifications (Node3-Sem)
13024 4 => False, -- unused
13025 5 => False), -- unused
13027 N_Expanded_Name =>
13028 (1 => True, -- Chars (Name1)
13029 2 => True, -- Selector_Name (Node2)
13030 3 => True, -- Prefix (Node3)
13031 4 => False, -- Entity (Node4-Sem)
13032 5 => False), -- Etype (Node5-Sem)
13034 N_Expression_With_Actions =>
13035 (1 => True, -- Actions (List1)
13036 2 => False, -- unused
13037 3 => True, -- Expression (Node3)
13038 4 => False, -- unused
13039 5 => False), -- unused
13041 N_Free_Statement =>
13042 (1 => False, -- Storage_Pool (Node1-Sem)
13043 2 => False, -- Procedure_To_Call (Node2-Sem)
13044 3 => True, -- Expression (Node3)
13045 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
13046 5 => False), -- unused
13048 N_Freeze_Entity =>
13049 (1 => True, -- Actions (List1)
13050 2 => False, -- Access_Types_To_Process (Elist2-Sem)
13051 3 => False, -- TSS_Elist (Elist3-Sem)
13052 4 => False, -- Entity (Node4-Sem)
13053 5 => False), -- First_Subtype_Link (Node5-Sem)
13055 N_Freeze_Generic_Entity =>
13056 (1 => False, -- unused
13057 2 => False, -- unused
13058 3 => False, -- unused
13059 4 => False, -- Entity (Node4-Sem)
13060 5 => False), -- unused
13062 N_Implicit_Label_Declaration =>
13063 (1 => True, -- Defining_Identifier (Node1)
13064 2 => False, -- Label_Construct (Node2-Sem)
13065 3 => False, -- unused
13066 4 => False, -- unused
13067 5 => False), -- unused
13069 N_Itype_Reference =>
13070 (1 => False, -- Itype (Node1-Sem)
13071 2 => False, -- unused
13072 3 => False, -- unused
13073 4 => False, -- unused
13074 5 => False), -- unused
13076 N_Raise_Constraint_Error =>
13077 (1 => True, -- Condition (Node1)
13078 2 => False, -- unused
13079 3 => True, -- Reason (Uint3)
13080 4 => False, -- unused
13081 5 => False), -- Etype (Node5-Sem)
13083 N_Raise_Program_Error =>
13084 (1 => True, -- Condition (Node1)
13085 2 => False, -- unused
13086 3 => True, -- Reason (Uint3)
13087 4 => False, -- unused
13088 5 => False), -- Etype (Node5-Sem)
13090 N_Raise_Storage_Error =>
13091 (1 => True, -- Condition (Node1)
13092 2 => False, -- unused
13093 3 => True, -- Reason (Uint3)
13094 4 => False, -- unused
13095 5 => False), -- Etype (Node5-Sem)
13097 N_Push_Constraint_Error_Label =>
13098 (1 => False, -- unused
13099 2 => False, -- unused
13100 3 => False, -- unused
13101 4 => False, -- unused
13102 5 => False), -- unused
13104 N_Push_Program_Error_Label =>
13105 (1 => False, -- unused
13106 2 => False, -- unused
13107 3 => False, -- unused
13108 4 => False, -- unused
13109 5 => False), -- Exception_Label
13111 N_Push_Storage_Error_Label =>
13112 (1 => False, -- unused
13113 2 => False, -- unused
13114 3 => False, -- unused
13115 4 => False, -- unused
13116 5 => False), -- Exception_Label
13118 N_Pop_Constraint_Error_Label =>
13119 (1 => False, -- unused
13120 2 => False, -- unused
13121 3 => False, -- unused
13122 4 => False, -- unused
13123 5 => False), -- unused
13125 N_Pop_Program_Error_Label =>
13126 (1 => False, -- unused
13127 2 => False, -- unused
13128 3 => False, -- unused
13129 4 => False, -- unused
13130 5 => False), -- unused
13132 N_Pop_Storage_Error_Label =>
13133 (1 => False, -- unused
13134 2 => False, -- unused
13135 3 => False, -- unused
13136 4 => False, -- unused
13137 5 => False), -- unused
13139 N_Reference =>
13140 (1 => False, -- unused
13141 2 => False, -- unused
13142 3 => True, -- Prefix (Node3)
13143 4 => False, -- unused
13144 5 => False), -- Etype (Node5-Sem)
13146 N_Unchecked_Expression =>
13147 (1 => False, -- unused
13148 2 => False, -- unused
13149 3 => True, -- Expression (Node3)
13150 4 => False, -- unused
13151 5 => False), -- Etype (Node5-Sem)
13153 N_Unchecked_Type_Conversion =>
13154 (1 => False, -- unused
13155 2 => False, -- unused
13156 3 => True, -- Expression (Node3)
13157 4 => True, -- Subtype_Mark (Node4)
13158 5 => False), -- Etype (Node5-Sem)
13160 N_Validate_Unchecked_Conversion =>
13161 (1 => False, -- Source_Type (Node1-Sem)
13162 2 => False, -- Target_Type (Node2-Sem)
13163 3 => False, -- unused
13164 4 => False, -- unused
13165 5 => False), -- unused
13167 -- Entries for SCIL nodes
13169 N_SCIL_Dispatch_Table_Tag_Init =>
13170 (1 => False, -- unused
13171 2 => False, -- unused
13172 3 => False, -- unused
13173 4 => False, -- SCIL_Entity (Node4-Sem)
13174 5 => False), -- unused
13176 N_SCIL_Dispatching_Call =>
13177 (1 => False, -- unused
13178 2 => False, -- SCIL_Target_Prim (Node2-Sem)
13179 3 => False, -- unused
13180 4 => False, -- SCIL_Entity (Node4-Sem)
13181 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
13183 N_SCIL_Membership_Test =>
13184 (1 => False, -- unused
13185 2 => False, -- unused
13186 3 => False, -- unused
13187 4 => False, -- SCIL_Entity (Node4-Sem)
13188 5 => False), -- SCIL_Tag_Value (Node5-Sem)
13190 N_Call_Marker =>
13191 (1 => False, -- Target (Node1-Sem)
13192 2 => False, -- unused
13193 3 => False, -- unused
13194 4 => False, -- unused
13195 5 => False), -- unused
13197 N_Variable_Reference_Marker =>
13198 (1 => False, -- Target (Node1-Sem)
13199 2 => False, -- unused
13200 3 => False, -- unused
13201 4 => False, -- unused
13202 5 => False), -- unused
13204 -- Entries for Empty, Error, and Unused. Even though these have a Chars
13205 -- field for debugging purposes, they are not really syntactic fields, so
13206 -- we mark all fields as unused.
13208 N_Empty =>
13209 (1 => False, -- unused
13210 2 => False, -- unused
13211 3 => False, -- unused
13212 4 => False, -- unused
13213 5 => False), -- unused
13215 N_Error =>
13216 (1 => False, -- unused
13217 2 => False, -- unused
13218 3 => False, -- unused
13219 4 => False, -- unused
13220 5 => False), -- unused
13222 N_Unused_At_Start =>
13223 (1 => False, -- unused
13224 2 => False, -- unused
13225 3 => False, -- unused
13226 4 => False, -- unused
13227 5 => False), -- unused
13229 N_Unused_At_End =>
13230 (1 => False, -- unused
13231 2 => False, -- unused
13232 3 => False, -- unused
13233 4 => False, -- unused
13234 5 => False)); -- unused
13236 --------------------
13237 -- Inline Pragmas --
13238 --------------------
13240 pragma Inline (Abort_Present);
13241 pragma Inline (Abortable_Part);
13242 pragma Inline (Abstract_Present);
13243 pragma Inline (Accept_Handler_Records);
13244 pragma Inline (Accept_Statement);
13245 pragma Inline (Access_Definition);
13246 pragma Inline (Access_To_Subprogram_Definition);
13247 pragma Inline (Access_Types_To_Process);
13248 pragma Inline (Actions);
13249 pragma Inline (Activation_Chain_Entity);
13250 pragma Inline (Acts_As_Spec);
13251 pragma Inline (Actual_Designated_Subtype);
13252 pragma Inline (Address_Warning_Posted);
13253 pragma Inline (Aggregate_Bounds);
13254 pragma Inline (Aliased_Present);
13255 pragma Inline (Alloc_For_BIP_Return);
13256 pragma Inline (All_Others);
13257 pragma Inline (All_Present);
13258 pragma Inline (Alternatives);
13259 pragma Inline (Ancestor_Part);
13260 pragma Inline (Atomic_Sync_Required);
13261 pragma Inline (Array_Aggregate);
13262 pragma Inline (Aspect_Rep_Item);
13263 pragma Inline (Assignment_OK);
13264 pragma Inline (Associated_Node);
13265 pragma Inline (At_End_Proc);
13266 pragma Inline (Attribute_Name);
13267 pragma Inline (Aux_Decls_Node);
13268 pragma Inline (Backwards_OK);
13269 pragma Inline (Bad_Is_Detected);
13270 pragma Inline (Body_To_Inline);
13271 pragma Inline (Body_Required);
13272 pragma Inline (By_Ref);
13273 pragma Inline (Box_Present);
13274 pragma Inline (Char_Literal_Value);
13275 pragma Inline (Chars);
13276 pragma Inline (Check_Address_Alignment);
13277 pragma Inline (Choice_Parameter);
13278 pragma Inline (Choices);
13279 pragma Inline (Class_Present);
13280 pragma Inline (Classifications);
13281 pragma Inline (Cleanup_Actions);
13282 pragma Inline (Comes_From_Extended_Return_Statement);
13283 pragma Inline (Compile_Time_Known_Aggregate);
13284 pragma Inline (Component_Associations);
13285 pragma Inline (Component_Clauses);
13286 pragma Inline (Component_Definition);
13287 pragma Inline (Component_Items);
13288 pragma Inline (Component_List);
13289 pragma Inline (Component_Name);
13290 pragma Inline (Componentwise_Assignment);
13291 pragma Inline (Condition);
13292 pragma Inline (Condition_Actions);
13293 pragma Inline (Config_Pragmas);
13294 pragma Inline (Constant_Present);
13295 pragma Inline (Constraint);
13296 pragma Inline (Constraints);
13297 pragma Inline (Context_Installed);
13298 pragma Inline (Context_Items);
13299 pragma Inline (Context_Pending);
13300 pragma Inline (Contract_Test_Cases);
13301 pragma Inline (Controlling_Argument);
13302 pragma Inline (Convert_To_Return_False);
13303 pragma Inline (Conversion_OK);
13304 pragma Inline (Corresponding_Aspect);
13305 pragma Inline (Corresponding_Body);
13306 pragma Inline (Corresponding_Formal_Spec);
13307 pragma Inline (Corresponding_Generic_Association);
13308 pragma Inline (Corresponding_Integer_Value);
13309 pragma Inline (Corresponding_Spec);
13310 pragma Inline (Corresponding_Spec_Of_Stub);
13311 pragma Inline (Corresponding_Stub);
13312 pragma Inline (Dcheck_Function);
13313 pragma Inline (Declarations);
13314 pragma Inline (Default_Expression);
13315 pragma Inline (Default_Storage_Pool);
13316 pragma Inline (Default_Name);
13317 pragma Inline (Defining_Identifier);
13318 pragma Inline (Defining_Unit_Name);
13319 pragma Inline (Delay_Alternative);
13320 pragma Inline (Delay_Statement);
13321 pragma Inline (Delta_Expression);
13322 pragma Inline (Digits_Expression);
13323 pragma Inline (Discr_Check_Funcs_Built);
13324 pragma Inline (Discrete_Choices);
13325 pragma Inline (Discrete_Range);
13326 pragma Inline (Discrete_Subtype_Definition);
13327 pragma Inline (Discrete_Subtype_Definitions);
13328 pragma Inline (Discriminant_Specifications);
13329 pragma Inline (Discriminant_Type);
13330 pragma Inline (Do_Accessibility_Check);
13331 pragma Inline (Do_Discriminant_Check);
13332 pragma Inline (Do_Length_Check);
13333 pragma Inline (Do_Division_Check);
13334 pragma Inline (Do_Overflow_Check);
13335 pragma Inline (Do_Range_Check);
13336 pragma Inline (Do_Storage_Check);
13337 pragma Inline (Do_Tag_Check);
13338 pragma Inline (Elaborate_All_Desirable);
13339 pragma Inline (Elaborate_All_Present);
13340 pragma Inline (Elaborate_Desirable);
13341 pragma Inline (Elaborate_Present);
13342 pragma Inline (Else_Actions);
13343 pragma Inline (Else_Statements);
13344 pragma Inline (Elsif_Parts);
13345 pragma Inline (Enclosing_Variant);
13346 pragma Inline (End_Label);
13347 pragma Inline (End_Span);
13348 pragma Inline (Entity);
13349 pragma Inline (Entity_Or_Associated_Node);
13350 pragma Inline (Entry_Body_Formal_Part);
13351 pragma Inline (Entry_Call_Alternative);
13352 pragma Inline (Entry_Call_Statement);
13353 pragma Inline (Entry_Direct_Name);
13354 pragma Inline (Entry_Index);
13355 pragma Inline (Entry_Index_Specification);
13356 pragma Inline (Etype);
13357 pragma Inline (Exception_Choices);
13358 pragma Inline (Exception_Handlers);
13359 pragma Inline (Exception_Junk);
13360 pragma Inline (Exception_Label);
13361 pragma Inline (Expansion_Delayed);
13362 pragma Inline (Explicit_Actual_Parameter);
13363 pragma Inline (Explicit_Generic_Actual_Parameter);
13364 pragma Inline (Expression);
13365 pragma Inline (Expression_Copy);
13366 pragma Inline (Expressions);
13367 pragma Inline (First_Bit);
13368 pragma Inline (First_Inlined_Subprogram);
13369 pragma Inline (First_Name);
13370 pragma Inline (First_Named_Actual);
13371 pragma Inline (First_Real_Statement);
13372 pragma Inline (First_Subtype_Link);
13373 pragma Inline (Float_Truncate);
13374 pragma Inline (Formal_Type_Definition);
13375 pragma Inline (Forwards_OK);
13376 pragma Inline (From_Aspect_Specification);
13377 pragma Inline (From_At_End);
13378 pragma Inline (From_At_Mod);
13379 pragma Inline (From_Conditional_Expression);
13380 pragma Inline (From_Default);
13381 pragma Inline (Generalized_Indexing);
13382 pragma Inline (Generic_Associations);
13383 pragma Inline (Generic_Formal_Declarations);
13384 pragma Inline (Generic_Parent);
13385 pragma Inline (Generic_Parent_Type);
13386 pragma Inline (Handled_Statement_Sequence);
13387 pragma Inline (Handler_List_Entry);
13388 pragma Inline (Has_Created_Identifier);
13389 pragma Inline (Has_Dereference_Action);
13390 pragma Inline (Has_Dynamic_Length_Check);
13391 pragma Inline (Has_Dynamic_Range_Check);
13392 pragma Inline (Has_Init_Expression);
13393 pragma Inline (Has_Local_Raise);
13394 pragma Inline (Has_Self_Reference);
13395 pragma Inline (Has_SP_Choice);
13396 pragma Inline (Has_No_Elaboration_Code);
13397 pragma Inline (Has_Pragma_Suppress_All);
13398 pragma Inline (Has_Private_View);
13399 pragma Inline (Has_Relative_Deadline_Pragma);
13400 pragma Inline (Has_Storage_Size_Pragma);
13401 pragma Inline (Has_Target_Names);
13402 pragma Inline (Has_Wide_Character);
13403 pragma Inline (Has_Wide_Wide_Character);
13404 pragma Inline (Header_Size_Added);
13405 pragma Inline (Hidden_By_Use_Clause);
13406 pragma Inline (High_Bound);
13407 pragma Inline (Identifier);
13408 pragma Inline (Implicit_With);
13409 pragma Inline (Interface_List);
13410 pragma Inline (Interface_Present);
13411 pragma Inline (Includes_Infinities);
13412 pragma Inline (Import_Interface_Present);
13413 pragma Inline (In_Present);
13414 pragma Inline (Incomplete_View);
13415 pragma Inline (Inherited_Discriminant);
13416 pragma Inline (Instance_Spec);
13417 pragma Inline (Intval);
13418 pragma Inline (Iterator_Specification);
13419 pragma Inline (Is_Abort_Block);
13420 pragma Inline (Is_Accessibility_Actual);
13421 pragma Inline (Is_Analyzed_Pragma);
13422 pragma Inline (Is_Asynchronous_Call_Block);
13423 pragma Inline (Is_Boolean_Aspect);
13424 pragma Inline (Is_Checked);
13425 pragma Inline (Is_Checked_Ghost_Pragma);
13426 pragma Inline (Is_Component_Left_Opnd);
13427 pragma Inline (Is_Component_Right_Opnd);
13428 pragma Inline (Is_Controlling_Actual);
13429 pragma Inline (Is_Declaration_Level_Node);
13430 pragma Inline (Is_Delayed_Aspect);
13431 pragma Inline (Is_Disabled);
13432 pragma Inline (Is_Dispatching_Call);
13433 pragma Inline (Is_Dynamic_Coextension);
13434 pragma Inline (Is_Effective_Use_Clause);
13435 pragma Inline (Is_Elaboration_Checks_OK_Node);
13436 pragma Inline (Is_Elaboration_Code);
13437 pragma Inline (Is_Elaboration_Warnings_OK_Node);
13438 pragma Inline (Is_Elsif);
13439 pragma Inline (Is_Entry_Barrier_Function);
13440 pragma Inline (Is_Expanded_Build_In_Place_Call);
13441 pragma Inline (Is_Expanded_Contract);
13442 pragma Inline (Is_Finalization_Wrapper);
13443 pragma Inline (Is_Folded_In_Parser);
13444 pragma Inline (Is_Generic_Contract_Pragma);
13445 pragma Inline (Is_Ignored);
13446 pragma Inline (Is_Ignored_Ghost_Pragma);
13447 pragma Inline (Is_In_Discriminant_Check);
13448 pragma Inline (Is_Inherited_Pragma);
13449 pragma Inline (Is_Initialization_Block);
13450 pragma Inline (Is_Known_Guaranteed_ABE);
13451 pragma Inline (Is_Machine_Number);
13452 pragma Inline (Is_Null_Loop);
13453 pragma Inline (Is_Overloaded);
13454 pragma Inline (Is_Power_Of_2_For_Shift);
13455 pragma Inline (Is_Prefixed_Call);
13456 pragma Inline (Is_Protected_Subprogram_Body);
13457 pragma Inline (Is_Qualified_Universal_Literal);
13458 pragma Inline (Is_Read);
13459 pragma Inline (Is_Source_Call);
13460 pragma Inline (Is_SPARK_Mode_On_Node);
13461 pragma Inline (Is_Static_Coextension);
13462 pragma Inline (Is_Static_Expression);
13463 pragma Inline (Is_Subprogram_Descriptor);
13464 pragma Inline (Is_Task_Allocation_Block);
13465 pragma Inline (Is_Task_Body_Procedure);
13466 pragma Inline (Is_Task_Master);
13467 pragma Inline (Is_Write);
13468 pragma Inline (Iteration_Scheme);
13469 pragma Inline (Itype);
13470 pragma Inline (Kill_Range_Check);
13471 pragma Inline (Last_Bit);
13472 pragma Inline (Last_Name);
13473 pragma Inline (Library_Unit);
13474 pragma Inline (Label_Construct);
13475 pragma Inline (Left_Opnd);
13476 pragma Inline (Limited_View_Installed);
13477 pragma Inline (Limited_Present);
13478 pragma Inline (Literals);
13479 pragma Inline (Local_Raise_Not_OK);
13480 pragma Inline (Local_Raise_Statements);
13481 pragma Inline (Loop_Actions);
13482 pragma Inline (Loop_Parameter_Specification);
13483 pragma Inline (Low_Bound);
13484 pragma Inline (Mod_Clause);
13485 pragma Inline (More_Ids);
13486 pragma Inline (Must_Be_Byte_Aligned);
13487 pragma Inline (Must_Not_Freeze);
13488 pragma Inline (Must_Not_Override);
13489 pragma Inline (Must_Override);
13490 pragma Inline (Name);
13491 pragma Inline (Names);
13492 pragma Inline (Next_Entity);
13493 pragma Inline (Next_Exit_Statement);
13494 pragma Inline (Next_Implicit_With);
13495 pragma Inline (Next_Named_Actual);
13496 pragma Inline (Next_Pragma);
13497 pragma Inline (Next_Rep_Item);
13498 pragma Inline (Next_Use_Clause);
13499 pragma Inline (No_Ctrl_Actions);
13500 pragma Inline (No_Elaboration_Check);
13501 pragma Inline (No_Entities_Ref_In_Spec);
13502 pragma Inline (No_Initialization);
13503 pragma Inline (No_Minimize_Eliminate);
13504 pragma Inline (No_Side_Effect_Removal);
13505 pragma Inline (No_Truncation);
13506 pragma Inline (Null_Excluding_Subtype);
13507 pragma Inline (Null_Exclusion_Present);
13508 pragma Inline (Null_Exclusion_In_Return_Present);
13509 pragma Inline (Null_Present);
13510 pragma Inline (Null_Record_Present);
13511 pragma Inline (Null_Statement);
13512 pragma Inline (Object_Definition);
13513 pragma Inline (Of_Present);
13514 pragma Inline (Original_Discriminant);
13515 pragma Inline (Original_Entity);
13516 pragma Inline (Others_Discrete_Choices);
13517 pragma Inline (Out_Present);
13518 pragma Inline (Parameter_Associations);
13519 pragma Inline (Parameter_Specifications);
13520 pragma Inline (Parameter_Type);
13521 pragma Inline (Parent_Spec);
13522 pragma Inline (Parent_With);
13523 pragma Inline (Position);
13524 pragma Inline (Pragma_Argument_Associations);
13525 pragma Inline (Pragma_Identifier);
13526 pragma Inline (Pragmas_After);
13527 pragma Inline (Pragmas_Before);
13528 pragma Inline (Pre_Post_Conditions);
13529 pragma Inline (Prefix);
13530 pragma Inline (Premature_Use);
13531 pragma Inline (Present_Expr);
13532 pragma Inline (Prev_Ids);
13533 pragma Inline (Prev_Use_Clause);
13534 pragma Inline (Print_In_Hex);
13535 pragma Inline (Private_Declarations);
13536 pragma Inline (Private_Present);
13537 pragma Inline (Procedure_To_Call);
13538 pragma Inline (Proper_Body);
13539 pragma Inline (Protected_Definition);
13540 pragma Inline (Protected_Present);
13541 pragma Inline (Raises_Constraint_Error);
13542 pragma Inline (Range_Constraint);
13543 pragma Inline (Range_Expression);
13544 pragma Inline (Real_Range_Specification);
13545 pragma Inline (Realval);
13546 pragma Inline (Reason);
13547 pragma Inline (Record_Extension_Part);
13548 pragma Inline (Redundant_Use);
13549 pragma Inline (Renaming_Exception);
13550 pragma Inline (Result_Definition);
13551 pragma Inline (Return_Object_Declarations);
13552 pragma Inline (Return_Statement_Entity);
13553 pragma Inline (Reverse_Present);
13554 pragma Inline (Right_Opnd);
13555 pragma Inline (Rounded_Result);
13556 pragma Inline (SCIL_Controlling_Tag);
13557 pragma Inline (SCIL_Entity);
13558 pragma Inline (SCIL_Tag_Value);
13559 pragma Inline (SCIL_Target_Prim);
13560 pragma Inline (Scope);
13561 pragma Inline (Select_Alternatives);
13562 pragma Inline (Selector_Name);
13563 pragma Inline (Selector_Names);
13564 pragma Inline (Shift_Count_OK);
13565 pragma Inline (Source_Type);
13566 pragma Inline (Specification);
13567 pragma Inline (Split_PPC);
13568 pragma Inline (Statements);
13569 pragma Inline (Storage_Pool);
13570 pragma Inline (Subpool_Handle_Name);
13571 pragma Inline (Strval);
13572 pragma Inline (Subtype_Indication);
13573 pragma Inline (Subtype_Mark);
13574 pragma Inline (Subtype_Marks);
13575 pragma Inline (Suppress_Assignment_Checks);
13576 pragma Inline (Suppress_Loop_Warnings);
13577 pragma Inline (Synchronized_Present);
13578 pragma Inline (Tagged_Present);
13579 pragma Inline (Target);
13580 pragma Inline (Target_Type);
13581 pragma Inline (Task_Definition);
13582 pragma Inline (Task_Present);
13583 pragma Inline (Then_Actions);
13584 pragma Inline (Then_Statements);
13585 pragma Inline (Triggering_Alternative);
13586 pragma Inline (Triggering_Statement);
13587 pragma Inline (Treat_Fixed_As_Integer);
13588 pragma Inline (TSS_Elist);
13589 pragma Inline (Type_Definition);
13590 pragma Inline (Uneval_Old_Accept);
13591 pragma Inline (Uneval_Old_Warn);
13592 pragma Inline (Unit);
13593 pragma Inline (Uninitialized_Variable);
13594 pragma Inline (Unknown_Discriminants_Present);
13595 pragma Inline (Unreferenced_In_Spec);
13596 pragma Inline (Variant_Part);
13597 pragma Inline (Variants);
13598 pragma Inline (Visible_Declarations);
13599 pragma Inline (Used_Operations);
13600 pragma Inline (Was_Attribute_Reference);
13601 pragma Inline (Was_Expression_Function);
13602 pragma Inline (Was_Originally_Stub);
13604 pragma Inline (Set_Abort_Present);
13605 pragma Inline (Set_Abortable_Part);
13606 pragma Inline (Set_Abstract_Present);
13607 pragma Inline (Set_Accept_Handler_Records);
13608 pragma Inline (Set_Accept_Statement);
13609 pragma Inline (Set_Access_Definition);
13610 pragma Inline (Set_Access_To_Subprogram_Definition);
13611 pragma Inline (Set_Access_Types_To_Process);
13612 pragma Inline (Set_Actions);
13613 pragma Inline (Set_Activation_Chain_Entity);
13614 pragma Inline (Set_Acts_As_Spec);
13615 pragma Inline (Set_Actual_Designated_Subtype);
13616 pragma Inline (Set_Address_Warning_Posted);
13617 pragma Inline (Set_Aggregate_Bounds);
13618 pragma Inline (Set_Aliased_Present);
13619 pragma Inline (Set_Alloc_For_BIP_Return);
13620 pragma Inline (Set_All_Others);
13621 pragma Inline (Set_All_Present);
13622 pragma Inline (Set_Alternatives);
13623 pragma Inline (Set_Ancestor_Part);
13624 pragma Inline (Set_Array_Aggregate);
13625 pragma Inline (Set_Aspect_Rep_Item);
13626 pragma Inline (Set_Assignment_OK);
13627 pragma Inline (Set_Associated_Node);
13628 pragma Inline (Set_At_End_Proc);
13629 pragma Inline (Set_Atomic_Sync_Required);
13630 pragma Inline (Set_Attribute_Name);
13631 pragma Inline (Set_Aux_Decls_Node);
13632 pragma Inline (Set_Backwards_OK);
13633 pragma Inline (Set_Bad_Is_Detected);
13634 pragma Inline (Set_Body_Required);
13635 pragma Inline (Set_Body_To_Inline);
13636 pragma Inline (Set_Box_Present);
13637 pragma Inline (Set_By_Ref);
13638 pragma Inline (Set_Char_Literal_Value);
13639 pragma Inline (Set_Chars);
13640 pragma Inline (Set_Check_Address_Alignment);
13641 pragma Inline (Set_Choice_Parameter);
13642 pragma Inline (Set_Choices);
13643 pragma Inline (Set_Class_Present);
13644 pragma Inline (Set_Classifications);
13645 pragma Inline (Set_Cleanup_Actions);
13646 pragma Inline (Set_Comes_From_Extended_Return_Statement);
13647 pragma Inline (Set_Compile_Time_Known_Aggregate);
13648 pragma Inline (Set_Component_Associations);
13649 pragma Inline (Set_Component_Clauses);
13650 pragma Inline (Set_Component_Definition);
13651 pragma Inline (Set_Component_Items);
13652 pragma Inline (Set_Component_List);
13653 pragma Inline (Set_Component_Name);
13654 pragma Inline (Set_Componentwise_Assignment);
13655 pragma Inline (Set_Condition);
13656 pragma Inline (Set_Condition_Actions);
13657 pragma Inline (Set_Config_Pragmas);
13658 pragma Inline (Set_Constant_Present);
13659 pragma Inline (Set_Constraint);
13660 pragma Inline (Set_Constraints);
13661 pragma Inline (Set_Context_Installed);
13662 pragma Inline (Set_Context_Items);
13663 pragma Inline (Set_Context_Pending);
13664 pragma Inline (Set_Contract_Test_Cases);
13665 pragma Inline (Set_Controlling_Argument);
13666 pragma Inline (Set_Conversion_OK);
13667 pragma Inline (Set_Convert_To_Return_False);
13668 pragma Inline (Set_Corresponding_Aspect);
13669 pragma Inline (Set_Corresponding_Body);
13670 pragma Inline (Set_Corresponding_Formal_Spec);
13671 pragma Inline (Set_Corresponding_Generic_Association);
13672 pragma Inline (Set_Corresponding_Integer_Value);
13673 pragma Inline (Set_Corresponding_Spec);
13674 pragma Inline (Set_Corresponding_Spec_Of_Stub);
13675 pragma Inline (Set_Corresponding_Stub);
13676 pragma Inline (Set_Dcheck_Function);
13677 pragma Inline (Set_Declarations);
13678 pragma Inline (Set_Default_Expression);
13679 pragma Inline (Set_Default_Name);
13680 pragma Inline (Set_Default_Storage_Pool);
13681 pragma Inline (Set_Defining_Identifier);
13682 pragma Inline (Set_Defining_Unit_Name);
13683 pragma Inline (Set_Delay_Alternative);
13684 pragma Inline (Set_Delay_Statement);
13685 pragma Inline (Set_Delta_Expression);
13686 pragma Inline (Set_Digits_Expression);
13687 pragma Inline (Set_Discr_Check_Funcs_Built);
13688 pragma Inline (Set_Discrete_Choices);
13689 pragma Inline (Set_Discrete_Range);
13690 pragma Inline (Set_Discrete_Subtype_Definition);
13691 pragma Inline (Set_Discrete_Subtype_Definitions);
13692 pragma Inline (Set_Discriminant_Specifications);
13693 pragma Inline (Set_Discriminant_Type);
13694 pragma Inline (Set_Do_Accessibility_Check);
13695 pragma Inline (Set_Do_Discriminant_Check);
13696 pragma Inline (Set_Do_Division_Check);
13697 pragma Inline (Set_Do_Length_Check);
13698 pragma Inline (Set_Do_Overflow_Check);
13699 pragma Inline (Set_Do_Range_Check);
13700 pragma Inline (Set_Do_Storage_Check);
13701 pragma Inline (Set_Do_Tag_Check);
13702 pragma Inline (Set_Elaborate_All_Desirable);
13703 pragma Inline (Set_Elaborate_All_Present);
13704 pragma Inline (Set_Elaborate_Desirable);
13705 pragma Inline (Set_Elaborate_Present);
13706 pragma Inline (Set_Else_Actions);
13707 pragma Inline (Set_Else_Statements);
13708 pragma Inline (Set_Elsif_Parts);
13709 pragma Inline (Set_Enclosing_Variant);
13710 pragma Inline (Set_End_Label);
13711 pragma Inline (Set_End_Span);
13712 pragma Inline (Set_Entity);
13713 pragma Inline (Set_Entry_Body_Formal_Part);
13714 pragma Inline (Set_Entry_Call_Alternative);
13715 pragma Inline (Set_Entry_Call_Statement);
13716 pragma Inline (Set_Entry_Direct_Name);
13717 pragma Inline (Set_Entry_Index);
13718 pragma Inline (Set_Entry_Index_Specification);
13719 pragma Inline (Set_Etype);
13720 pragma Inline (Set_Exception_Choices);
13721 pragma Inline (Set_Exception_Handlers);
13722 pragma Inline (Set_Exception_Junk);
13723 pragma Inline (Set_Exception_Label);
13724 pragma Inline (Set_Expansion_Delayed);
13725 pragma Inline (Set_Explicit_Actual_Parameter);
13726 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
13727 pragma Inline (Set_Expression);
13728 pragma Inline (Set_Expression_Copy);
13729 pragma Inline (Set_Expressions);
13730 pragma Inline (Set_First_Bit);
13731 pragma Inline (Set_First_Inlined_Subprogram);
13732 pragma Inline (Set_First_Name);
13733 pragma Inline (Set_First_Named_Actual);
13734 pragma Inline (Set_First_Real_Statement);
13735 pragma Inline (Set_First_Subtype_Link);
13736 pragma Inline (Set_Float_Truncate);
13737 pragma Inline (Set_Formal_Type_Definition);
13738 pragma Inline (Set_Forwards_OK);
13739 pragma Inline (Set_From_Aspect_Specification);
13740 pragma Inline (Set_From_At_End);
13741 pragma Inline (Set_From_At_Mod);
13742 pragma Inline (Set_From_Conditional_Expression);
13743 pragma Inline (Set_From_Default);
13744 pragma Inline (Set_Generalized_Indexing);
13745 pragma Inline (Set_Generic_Associations);
13746 pragma Inline (Set_Generic_Formal_Declarations);
13747 pragma Inline (Set_Generic_Parent);
13748 pragma Inline (Set_Generic_Parent_Type);
13749 pragma Inline (Set_Handled_Statement_Sequence);
13750 pragma Inline (Set_Handler_List_Entry);
13751 pragma Inline (Set_Has_Created_Identifier);
13752 pragma Inline (Set_Has_Dereference_Action);
13753 pragma Inline (Set_Has_Dynamic_Length_Check);
13754 pragma Inline (Set_Has_Dynamic_Range_Check);
13755 pragma Inline (Set_Has_Init_Expression);
13756 pragma Inline (Set_Has_Local_Raise);
13757 pragma Inline (Set_Has_No_Elaboration_Code);
13758 pragma Inline (Set_Has_Pragma_Suppress_All);
13759 pragma Inline (Set_Has_Private_View);
13760 pragma Inline (Set_Has_Relative_Deadline_Pragma);
13761 pragma Inline (Set_Has_Self_Reference);
13762 pragma Inline (Set_Has_SP_Choice);
13763 pragma Inline (Set_Has_Storage_Size_Pragma);
13764 pragma Inline (Set_Has_Target_Names);
13765 pragma Inline (Set_Has_Wide_Character);
13766 pragma Inline (Set_Has_Wide_Wide_Character);
13767 pragma Inline (Set_Header_Size_Added);
13768 pragma Inline (Set_Hidden_By_Use_Clause);
13769 pragma Inline (Set_High_Bound);
13770 pragma Inline (Set_Identifier);
13771 pragma Inline (Set_Implicit_With);
13772 pragma Inline (Set_Import_Interface_Present);
13773 pragma Inline (Set_In_Present);
13774 pragma Inline (Set_Includes_Infinities);
13775 pragma Inline (Set_Incomplete_View);
13776 pragma Inline (Set_Inherited_Discriminant);
13777 pragma Inline (Set_Instance_Spec);
13778 pragma Inline (Set_Interface_List);
13779 pragma Inline (Set_Interface_Present);
13780 pragma Inline (Set_Intval);
13781 pragma Inline (Set_Is_Abort_Block);
13782 pragma Inline (Set_Is_Accessibility_Actual);
13783 pragma Inline (Set_Is_Analyzed_Pragma);
13784 pragma Inline (Set_Is_Asynchronous_Call_Block);
13785 pragma Inline (Set_Is_Boolean_Aspect);
13786 pragma Inline (Set_Is_Checked);
13787 pragma Inline (Set_Is_Checked_Ghost_Pragma);
13788 pragma Inline (Set_Is_Component_Left_Opnd);
13789 pragma Inline (Set_Is_Component_Right_Opnd);
13790 pragma Inline (Set_Is_Controlling_Actual);
13791 pragma Inline (Set_Is_Declaration_Level_Node);
13792 pragma Inline (Set_Is_Delayed_Aspect);
13793 pragma Inline (Set_Is_Disabled);
13794 pragma Inline (Set_Is_Dispatching_Call);
13795 pragma Inline (Set_Is_Dynamic_Coextension);
13796 pragma Inline (Set_Is_Effective_Use_Clause);
13797 pragma Inline (Set_Is_Elaboration_Checks_OK_Node);
13798 pragma Inline (Set_Is_Elaboration_Code);
13799 pragma Inline (Set_Is_Elaboration_Warnings_OK_Node);
13800 pragma Inline (Set_Is_Elsif);
13801 pragma Inline (Set_Is_Entry_Barrier_Function);
13802 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
13803 pragma Inline (Set_Is_Expanded_Contract);
13804 pragma Inline (Set_Is_Finalization_Wrapper);
13805 pragma Inline (Set_Is_Folded_In_Parser);
13806 pragma Inline (Set_Is_Generic_Contract_Pragma);
13807 pragma Inline (Set_Is_Ignored);
13808 pragma Inline (Set_Is_Ignored_Ghost_Pragma);
13809 pragma Inline (Set_Is_In_Discriminant_Check);
13810 pragma Inline (Set_Is_Inherited_Pragma);
13811 pragma Inline (Set_Is_Initialization_Block);
13812 pragma Inline (Set_Is_Known_Guaranteed_ABE);
13813 pragma Inline (Set_Is_Machine_Number);
13814 pragma Inline (Set_Is_Null_Loop);
13815 pragma Inline (Set_Is_Overloaded);
13816 pragma Inline (Set_Is_Power_Of_2_For_Shift);
13817 pragma Inline (Set_Is_Prefixed_Call);
13818 pragma Inline (Set_Is_Protected_Subprogram_Body);
13819 pragma Inline (Set_Is_Qualified_Universal_Literal);
13820 pragma Inline (Set_Is_Read);
13821 pragma Inline (Set_Is_Source_Call);
13822 pragma Inline (Set_Is_SPARK_Mode_On_Node);
13823 pragma Inline (Set_Is_Static_Coextension);
13824 pragma Inline (Set_Is_Static_Expression);
13825 pragma Inline (Set_Is_Subprogram_Descriptor);
13826 pragma Inline (Set_Is_Task_Allocation_Block);
13827 pragma Inline (Set_Is_Task_Body_Procedure);
13828 pragma Inline (Set_Is_Task_Master);
13829 pragma Inline (Set_Is_Write);
13830 pragma Inline (Set_Iteration_Scheme);
13831 pragma Inline (Set_Iterator_Specification);
13832 pragma Inline (Set_Itype);
13833 pragma Inline (Set_Kill_Range_Check);
13834 pragma Inline (Set_Label_Construct);
13835 pragma Inline (Set_Last_Bit);
13836 pragma Inline (Set_Last_Name);
13837 pragma Inline (Set_Left_Opnd);
13838 pragma Inline (Set_Library_Unit);
13839 pragma Inline (Set_Limited_Present);
13840 pragma Inline (Set_Limited_View_Installed);
13841 pragma Inline (Set_Literals);
13842 pragma Inline (Set_Local_Raise_Not_OK);
13843 pragma Inline (Set_Local_Raise_Statements);
13844 pragma Inline (Set_Loop_Actions);
13845 pragma Inline (Set_Loop_Parameter_Specification);
13846 pragma Inline (Set_Low_Bound);
13847 pragma Inline (Set_Mod_Clause);
13848 pragma Inline (Set_More_Ids);
13849 pragma Inline (Set_Must_Be_Byte_Aligned);
13850 pragma Inline (Set_Must_Not_Freeze);
13851 pragma Inline (Set_Must_Not_Override);
13852 pragma Inline (Set_Must_Override);
13853 pragma Inline (Set_Name);
13854 pragma Inline (Set_Names);
13855 pragma Inline (Set_Next_Entity);
13856 pragma Inline (Set_Next_Exit_Statement);
13857 pragma Inline (Set_Next_Implicit_With);
13858 pragma Inline (Set_Next_Named_Actual);
13859 pragma Inline (Set_Next_Pragma);
13860 pragma Inline (Set_Next_Rep_Item);
13861 pragma Inline (Set_Next_Use_Clause);
13862 pragma Inline (Set_No_Ctrl_Actions);
13863 pragma Inline (Set_No_Elaboration_Check);
13864 pragma Inline (Set_No_Entities_Ref_In_Spec);
13865 pragma Inline (Set_No_Initialization);
13866 pragma Inline (Set_No_Minimize_Eliminate);
13867 pragma Inline (Set_No_Side_Effect_Removal);
13868 pragma Inline (Set_No_Truncation);
13869 pragma Inline (Set_Null_Excluding_Subtype);
13870 pragma Inline (Set_Null_Exclusion_Present);
13871 pragma Inline (Set_Null_Exclusion_In_Return_Present);
13872 pragma Inline (Set_Null_Present);
13873 pragma Inline (Set_Null_Record_Present);
13874 pragma Inline (Set_Null_Statement);
13875 pragma Inline (Set_Object_Definition);
13876 pragma Inline (Set_Of_Present);
13877 pragma Inline (Set_Original_Discriminant);
13878 pragma Inline (Set_Original_Entity);
13879 pragma Inline (Set_Others_Discrete_Choices);
13880 pragma Inline (Set_Out_Present);
13881 pragma Inline (Set_Parameter_Associations);
13882 pragma Inline (Set_Parameter_Specifications);
13883 pragma Inline (Set_Parameter_Type);
13884 pragma Inline (Set_Parent_Spec);
13885 pragma Inline (Set_Parent_With);
13886 pragma Inline (Set_Position);
13887 pragma Inline (Set_Pragma_Argument_Associations);
13888 pragma Inline (Set_Pragma_Identifier);
13889 pragma Inline (Set_Pragmas_After);
13890 pragma Inline (Set_Pragmas_Before);
13891 pragma Inline (Set_Pre_Post_Conditions);
13892 pragma Inline (Set_Prefix);
13893 pragma Inline (Set_Premature_Use);
13894 pragma Inline (Set_Present_Expr);
13895 pragma Inline (Set_Prev_Ids);
13896 pragma Inline (Set_Prev_Use_Clause);
13897 pragma Inline (Set_Print_In_Hex);
13898 pragma Inline (Set_Private_Declarations);
13899 pragma Inline (Set_Private_Present);
13900 pragma Inline (Set_Procedure_To_Call);
13901 pragma Inline (Set_Proper_Body);
13902 pragma Inline (Set_Protected_Definition);
13903 pragma Inline (Set_Protected_Present);
13904 pragma Inline (Set_Raises_Constraint_Error);
13905 pragma Inline (Set_Range_Constraint);
13906 pragma Inline (Set_Range_Expression);
13907 pragma Inline (Set_Real_Range_Specification);
13908 pragma Inline (Set_Realval);
13909 pragma Inline (Set_Reason);
13910 pragma Inline (Set_Record_Extension_Part);
13911 pragma Inline (Set_Redundant_Use);
13912 pragma Inline (Set_Renaming_Exception);
13913 pragma Inline (Set_Result_Definition);
13914 pragma Inline (Set_Return_Object_Declarations);
13915 pragma Inline (Set_Reverse_Present);
13916 pragma Inline (Set_Right_Opnd);
13917 pragma Inline (Set_Rounded_Result);
13918 pragma Inline (Set_SCIL_Controlling_Tag);
13919 pragma Inline (Set_SCIL_Entity);
13920 pragma Inline (Set_SCIL_Tag_Value);
13921 pragma Inline (Set_SCIL_Target_Prim);
13922 pragma Inline (Set_Scope);
13923 pragma Inline (Set_Select_Alternatives);
13924 pragma Inline (Set_Selector_Name);
13925 pragma Inline (Set_Selector_Names);
13926 pragma Inline (Set_Shift_Count_OK);
13927 pragma Inline (Set_Source_Type);
13928 pragma Inline (Set_Split_PPC);
13929 pragma Inline (Set_Statements);
13930 pragma Inline (Set_Storage_Pool);
13931 pragma Inline (Set_Strval);
13932 pragma Inline (Set_Subpool_Handle_Name);
13933 pragma Inline (Set_Subtype_Indication);
13934 pragma Inline (Set_Subtype_Mark);
13935 pragma Inline (Set_Subtype_Marks);
13936 pragma Inline (Set_Suppress_Assignment_Checks);
13937 pragma Inline (Set_Suppress_Loop_Warnings);
13938 pragma Inline (Set_Synchronized_Present);
13939 pragma Inline (Set_TSS_Elist);
13940 pragma Inline (Set_Tagged_Present);
13941 pragma Inline (Set_Target);
13942 pragma Inline (Set_Target_Type);
13943 pragma Inline (Set_Task_Definition);
13944 pragma Inline (Set_Task_Present);
13945 pragma Inline (Set_Then_Actions);
13946 pragma Inline (Set_Then_Statements);
13947 pragma Inline (Set_Treat_Fixed_As_Integer);
13948 pragma Inline (Set_Triggering_Alternative);
13949 pragma Inline (Set_Triggering_Statement);
13950 pragma Inline (Set_Type_Definition);
13951 pragma Inline (Set_Uneval_Old_Accept);
13952 pragma Inline (Set_Uneval_Old_Warn);
13953 pragma Inline (Set_Unit);
13954 pragma Inline (Set_Uninitialized_Variable);
13955 pragma Inline (Set_Unknown_Discriminants_Present);
13956 pragma Inline (Set_Unreferenced_In_Spec);
13957 pragma Inline (Set_Used_Operations);
13958 pragma Inline (Set_Variant_Part);
13959 pragma Inline (Set_Variants);
13960 pragma Inline (Set_Visible_Declarations);
13961 pragma Inline (Set_Was_Attribute_Reference);
13962 pragma Inline (Set_Was_Expression_Function);
13963 pragma Inline (Set_Was_Originally_Stub);
13965 end Sinfo;