Fix typos in riscv register save/restore.
[official-gcc.git] / gcc / ada / sinfo.ads
blob278b456e9d11c429361af29492784859fdeb13c5
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S I N F O --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2017, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
17 -- --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
21 -- --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
26 -- --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
29 -- --
30 ------------------------------------------------------------------------------
32 -- This package defines the structure of the abstract syntax tree. The Tree
33 -- package provides a basic tree structure. Sinfo describes how this structure
34 -- is used to represent the syntax of an Ada program.
36 -- The grammar in the RM is followed very closely in the tree design, and is
37 -- repeated as part of this source file.
39 -- The tree contains not only the full syntactic representation of the
40 -- program, but also the results of semantic analysis. In particular, the
41 -- nodes for defining identifiers, defining character literals, and defining
42 -- operator symbols, collectively referred to as entities, represent what
43 -- would normally be regarded as the symbol table information. In addition a
44 -- number of the tree nodes contain semantic information.
46 -- WARNING: Several files are automatically generated from this package.
47 -- See below for details.
49 with Namet; use Namet;
50 with Types; use Types;
51 with Uintp; use Uintp;
52 with Urealp; use Urealp;
54 package Sinfo is
56 ---------------------------------
57 -- Making Changes to This File --
58 ---------------------------------
60 -- If changes are made to this file, a number of related steps must be
61 -- carried out to ensure consistency. First, if a field access function is
62 -- added, it appears in these places:
64 -- In sinfo.ads:
65 -- The documentation associated with the field (if semantic)
66 -- The documentation associated with the node
67 -- The spec of the access function
68 -- The spec of the set procedure
69 -- The entries in Is_Syntactic_Field
70 -- The pragma Inline for the access function
71 -- The pragma Inline for the set procedure
72 -- In sinfo.adb:
73 -- The body of the access function
74 -- The body of the set procedure
76 -- The field chosen must be consistent in all places, and, for a node that
77 -- is a subexpression, must not overlap any of the standard expression
78 -- fields.
80 -- In addition, if any of the standard expression fields is changed, then
81 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
82 -- must be updated appropriately, since it special cases expression fields.
84 -- If a new tree node is added, then the following changes are made:
86 -- Add it to the documentation in the appropriate place
87 -- Add its fields to this documentation section
88 -- Define it in the appropriate classification in Node_Kind
89 -- Add an entry in Is_Syntactic_Field
90 -- In the body (sinfo), add entries to the access functions for all
91 -- its fields (except standard expression fields) to include the new
92 -- node in the checks.
93 -- Add an appropriate section to the case statement in sprint.adb
94 -- Add an appropriate section to the case statement in sem.adb
95 -- Add an appropriate section to the case statement in exp_util.adb
96 -- (Insert_Actions procedure)
97 -- For a subexpression, add an appropriate section to the case
98 -- statement in sem_eval.adb
99 -- For a subexpression, add an appropriate section to the case
100 -- statement in sem_res.adb
102 -- All back ends must be made aware of the new node kind.
104 -- Finally, four utility programs must be run:
106 -- (Optional.) Run CSinfo to check that you have made the changes
107 -- consistently. It checks most of the rules given above. This utility
108 -- reads sinfo.ads and sinfo.adb and generates a report to standard
109 -- output. This step is optional because XSinfo runs CSinfo.
111 -- Run XSinfo to create sinfo.h, the corresponding C header. This
112 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
113 -- not need to read sinfo.adb, since the contents of the body are
114 -- algorithmically determinable from the spec.
116 -- Run XTreeprs to create treeprs.ads, an updated version of the module
117 -- that is used to drive the tree print routine. This utility reads (but
118 -- does not modify) treeprs.adt, the template that provides the basic
119 -- structure of the file, and then fills in the data from the comments
120 -- in sinfo.ads.
122 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
123 -- spec of the Nmake package which contains functions for constructing
124 -- nodes.
126 -- The above steps are done automatically by the build scripts when you do
127 -- a full bootstrap.
129 -- Note: sometime we could write a utility that actually generated the body
130 -- of sinfo from the spec instead of simply checking it, since, as noted
131 -- above, the contents of the body can be determined from the spec.
133 --------------------------------
134 -- Implicit Nodes in the Tree --
135 --------------------------------
137 -- Generally the structure of the tree very closely follows the grammar as
138 -- defined in the RM. However, certain nodes are omitted to save space and
139 -- simplify semantic processing. Two general classes of such omitted nodes
140 -- are as follows:
142 -- If the only possibilities for a non-terminal are one or more other
143 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
144 -- corresponding node is omitted from the tree, and the target construct
145 -- appears directly. For example, a real type definition is either
146 -- floating point definition or a fixed point definition. No explicit node
147 -- appears for real type definition. Instead either the floating point
148 -- definition or fixed point definition appears directly.
150 -- If a non-terminal corresponds to a list of some other non-terminal
151 -- (possibly with separating punctuation), then usually it is omitted from
152 -- the tree, and a list of components appears instead. For example,
153 -- sequence of statements does not appear explicitly in the tree. Instead
154 -- a list of statements appears directly.
156 -- Some additional cases of omitted nodes occur and are documented
157 -- individually. In particular, many nodes are omitted in the tree
158 -- generated for an expression.
160 -------------------------------------------
161 -- Handling of Defining Identifier Lists --
162 -------------------------------------------
164 -- In several declarative forms in the syntax, lists of defining
165 -- identifiers appear (object declarations, component declarations, number
166 -- declarations etc.)
168 -- The semantics of such statements are equivalent to a series of identical
169 -- declarations of single defining identifiers (except that conformance
170 -- checks require the same grouping of identifiers in the parameter case).
172 -- To simplify semantic processing, the parser breaks down such multiple
173 -- declaration cases into sequences of single declarations, duplicating
174 -- type and initialization information as required. The flags More_Ids and
175 -- Prev_Ids are used to record the original form of the source in the case
176 -- where the original source used a list of names, More_Ids being set on
177 -- all but the last name and Prev_Ids being set on all but the first name.
178 -- These flags are used to reconstruct the original source (e.g. in the
179 -- Sprint package), and also are included in the conformance checks, but
180 -- otherwise have no semantic significance.
182 -- Note: the reason that we use More_Ids and Prev_Ids rather than
183 -- First_Name and Last_Name flags is so that the flags are off in the
184 -- normal one identifier case, which minimizes tree print output.
186 -----------------------
187 -- Use of Node Lists --
188 -----------------------
190 -- With a few exceptions, if a construction of the form {non-terminal}
191 -- appears in the tree, lists are used in the corresponding tree node (see
192 -- package Nlists for handling of node lists). In this case a field of the
193 -- parent node points to a list of nodes for the non-terminal. The field
194 -- name for such fields has a plural name which always ends in "s". For
195 -- example, a case statement has a field Alternatives pointing to list of
196 -- case statement alternative nodes.
198 -- Only fields pointing to lists have names ending in "s", so generally the
199 -- structure is strongly typed, fields not ending in s point to single
200 -- nodes, and fields ending in s point to lists.
202 -- The following example shows how a traversal of a list is written. We
203 -- suppose here that Stmt points to a N_Case_Statement node which has a
204 -- list field called Alternatives:
206 -- Alt := First (Alternatives (Stmt));
207 -- while Present (Alt) loop
208 -- ..
209 -- -- processing for case statement alternative Alt
210 -- ..
211 -- Alt := Next (Alt);
212 -- end loop;
214 -- The Present function tests for Empty, which in this case signals the end
215 -- of the list. First returns Empty immediately if the list is empty.
216 -- Present is defined in Atree; First and Next are defined in Nlists.
218 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
219 -- contexts, which is handled as described in the previous section, and
220 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
221 -- using the First_Name and Last_Name flags, as further detailed in the
222 -- description of the N_With_Clause node.
224 -------------
225 -- Pragmas --
226 -------------
228 -- Pragmas can appear in many different context, but are not included in
229 -- the grammar. Still they must appear in the tree, so they can be properly
230 -- processed.
232 -- Two approaches are used. In some cases, an extra field is defined in an
233 -- appropriate node that contains a list of pragmas appearing in the
234 -- expected context. For example pragmas can appear before an
235 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
236 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
238 -- The other approach is to simply allow pragmas to appear in syntactic
239 -- lists where the grammar (of course) does not include the possibility.
240 -- For example, the Variants field of an N_Variant_Part node points to a
241 -- list that can contain both N_Pragma and N_Variant nodes.
243 -- To make processing easier in the latter case, the Nlists package
244 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
245 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
246 -- ignoring all pragmas.
248 -- In the case of the variants list, we can either write:
250 -- Variant := First (Variants (N));
251 -- while Present (Variant) loop
252 -- ...
253 -- Variant := Next (Variant);
254 -- end loop;
256 -- or
258 -- Variant := First_Non_Pragma (Variants (N));
259 -- while Present (Variant) loop
260 -- ...
261 -- Variant := Next_Non_Pragma (Variant);
262 -- end loop;
264 -- In the first form of the loop, Variant can either be an N_Pragma or an
265 -- N_Variant node. In the second form, Variant can only be N_Variant since
266 -- all pragmas are skipped.
268 ---------------------
269 -- Optional Fields --
270 ---------------------
272 -- Fields which correspond to a section of the syntax enclosed in square
273 -- brackets are generally omitted (and the corresponding field set to Empty
274 -- for a node, or No_List for a list). The documentation of such fields
275 -- notes these cases. One exception to this rule occurs in the case of
276 -- possibly empty statement sequences (such as the sequence of statements
277 -- in an entry call alternative). Such cases appear in the syntax rules as
278 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
279 -- statement sequences always contain an empty list (not No_List) if no
280 -- statements are present.
282 -- Note: the utility program that constructs the body and spec of the Nmake
283 -- package relies on the format of the comments to determine if a field
284 -- should have a default value in the corresponding make routine. The rule
285 -- is that if the first line of the description of the field contains the
286 -- string "(set to xxx if", then a default value of xxx is provided for
287 -- this field in the corresponding Make_yyy routine.
289 -----------------------------------
290 -- Note on Body/Spec Terminology --
291 -----------------------------------
293 -- In informal discussions about Ada, it is customary to refer to package
294 -- and subprogram specs and bodies. However, this is not technically
295 -- correct, what is normally referred to as a spec or specification is in
296 -- fact a package declaration or subprogram declaration. We are careful in
297 -- GNAT to use the correct terminology and in particular, the full word
298 -- specification is never used as an incorrect substitute for declaration.
299 -- The structure and terminology used in the tree also reflects the grammar
300 -- and thus uses declaration and specification in the technically correct
301 -- manner.
303 -- However, there are contexts in which the informal terminology is useful.
304 -- We have the word "body" to refer to the Interp_Etype declared by the
305 -- declaration of a unit body, and in some contexts we need similar term to
306 -- refer to the entity declared by the package or subprogram declaration,
307 -- and simply using declaration can be confusing since the body also has a
308 -- declaration.
310 -- An example of such a context is the link between the package body and
311 -- its declaration. With_Declaration is confusing, since the package body
312 -- itself is a declaration.
314 -- To deal with this problem, we reserve the informal term Spec, i.e. the
315 -- popular abbreviation used in this context, to refer to the entity
316 -- declared by the package or subprogram declaration. So in the above
317 -- example case, the field in the body is called With_Spec.
319 -- Another important context for the use of the word Spec is in error
320 -- messages, where a hyper-correct use of declaration would be confusing to
321 -- a typical Ada programmer, and even for an expert programmer can cause
322 -- confusion since the body has a declaration as well.
324 -- So, to summarize:
326 -- Declaration always refers to the syntactic entity that is called
327 -- a declaration. In particular, subprogram declaration
328 -- and package declaration are used to describe the
329 -- syntactic entity that includes the semicolon.
331 -- Specification always refers to the syntactic entity that is called
332 -- a specification. In particular, the terms procedure
333 -- specification, function specification, package
334 -- specification, subprogram specification always refer
335 -- to the syntactic entity that has no semicolon.
337 -- Spec is an informal term, used to refer to the entity
338 -- that is declared by a task declaration, protected
339 -- declaration, generic declaration, subprogram
340 -- declaration or package declaration.
342 -- This convention is followed throughout the GNAT documentation
343 -- both internal and external, and in all error message text.
345 ------------------------
346 -- Internal Use Nodes --
347 ------------------------
349 -- These are Node_Kind settings used in the internal implementation which
350 -- are not logically part of the specification.
352 -- N_Unused_At_Start
353 -- Completely unused entry at the start of the enumeration type. This
354 -- is inserted so that no legitimate value is zero, which helps to get
355 -- better debugging behavior, since zero is a likely uninitialized value).
357 -- N_Unused_At_End
358 -- Completely unused entry at the end of the enumeration type. This is
359 -- handy so that arrays with Node_Kind as the index type have an extra
360 -- entry at the end (see for example the use of the Pchar_Pos_Array in
361 -- Treepr, where the extra entry provides the limit value when dealing with
362 -- the last used entry in the array).
364 -----------------------------------------
365 -- Note on the settings of Sloc fields --
366 -----------------------------------------
368 -- The Sloc field of nodes that come from the source is set by the parser.
369 -- For internal nodes, and nodes generated during expansion the Sloc is
370 -- usually set in the call to the constructor for the node. In general the
371 -- Sloc value chosen for an internal node is the Sloc of the source node
372 -- whose processing is responsible for the expansion. For example, the Sloc
373 -- of an inherited primitive operation is the Sloc of the corresponding
374 -- derived type declaration.
376 -- For the nodes of a generic instantiation, the Sloc value is encoded to
377 -- represent both the original Sloc in the generic unit, and the Sloc of
378 -- the instantiation itself. See Sinput.ads for details.
380 -- Subprogram instances create two callable entities: one is the visible
381 -- subprogram instance, and the other is an anonymous subprogram nested
382 -- within a wrapper package that contains the renamings for the actuals.
383 -- Both of these entities have the Sloc of the defining entity in the
384 -- instantiation node. This simplifies some ASIS queries.
386 -----------------------
387 -- Field Definitions --
388 -----------------------
390 -- In the following node definitions, all fields, both syntactic and
391 -- semantic, are documented. The one exception is in the case of entities
392 -- (defining identifiers, character literals, and operator symbols), where
393 -- the usage of the fields depends on the entity kind. Entity fields are
394 -- fully documented in the separate package Einfo.
396 -- In the node definitions, three common sets of fields are abbreviated to
397 -- save both space in the documentation, and also space in the string
398 -- (defined in Tree_Print_Strings) used to print trees. The following
399 -- abbreviations are used:
401 -- Note: the utility program that creates the Treeprs spec (in the file
402 -- xtreeprs.adb) knows about the special fields here, so it must be
403 -- modified if any change is made to these fields.
405 -- "plus fields for binary operator"
406 -- Chars (Name1) Name_Id for the operator
407 -- Left_Opnd (Node2) left operand expression
408 -- Right_Opnd (Node3) right operand expression
409 -- Entity (Node4-Sem) defining entity for operator
410 -- Associated_Node (Node4-Sem) for generic processing
411 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
412 -- Has_Private_View (Flag11-Sem) set in generic units.
414 -- "plus fields for unary operator"
415 -- Chars (Name1) Name_Id for the operator
416 -- Right_Opnd (Node3) right operand expression
417 -- Entity (Node4-Sem) defining entity for operator
418 -- Associated_Node (Node4-Sem) for generic processing
419 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
420 -- Has_Private_View (Flag11-Sem) set in generic units.
422 -- "plus fields for expression"
423 -- Paren_Count number of parentheses levels
424 -- Etype (Node5-Sem) type of the expression
425 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
426 -- Is_Static_Expression (Flag6-Sem) set for static expression
427 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
428 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
429 -- Do_Range_Check (Flag9-Sem) set if a range check needed
430 -- Has_Dynamic_Length_Check (Flag10-Sem) set if length check inserted
431 -- Has_Dynamic_Range_Check (Flag12-Sem) set if range check inserted
432 -- Assignment_OK (Flag15-Sem) set if modification is OK
433 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
435 -- Note: see under (EXPRESSION) for further details on the use of
436 -- the Paren_Count field to record the number of parentheses levels.
438 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
439 -- The actual definition of this type is given later (the reason for this
440 -- is that we want the descriptions ordered by logical chapter in the RM,
441 -- but the type definition is reordered to facilitate the definition of
442 -- some subtype ranges. The individual descriptions of the nodes show how
443 -- the various fields are used in each node kind, as well as providing
444 -- logical names for the fields. Functions and procedures are provided for
445 -- accessing and setting these fields using these logical names.
447 -----------------------
448 -- Gigi Restrictions --
449 -----------------------
451 -- The tree passed to Gigi is more restricted than the general tree form.
452 -- For example, as a result of expansion, most of the tasking nodes can
453 -- never appear. For each node to which either a complete or partial
454 -- restriction applies, a note entitled "Gigi restriction" appears which
455 -- documents the restriction.
457 -- Note that most of these restrictions apply only to trees generated when
458 -- code is being generated, since they involved expander actions that
459 -- destroy the tree.
461 ---------------
462 -- ASIS Mode --
463 ---------------
465 -- When a file is compiled in ASIS mode (-gnatct), expansion is skipped,
466 -- and the analysis must generate a tree in a form that meets all ASIS
467 -- requirements.
469 -- ASIS must be able to recover the original tree that corresponds to the
470 -- source. It relies heavily on Original_Node for this purpose, which as
471 -- described in Atree, records the history when a node is rewritten. ASIS
472 -- uses Original_Node to recover the original node before the Rewrite.
474 -- At least in ASIS mode (not really important in non-ASIS mode), when
475 -- N1 is rewritten as N2:
477 -- The subtree rooted by the original node N1 should be fully decorated,
478 -- i.e. all semantic fields noted in sinfo.ads should be set properly
479 -- and any referenced entities should be complete (with exceptions for
480 -- representation information, noted below).
482 -- For all the direct descendants of N1 (original node) their Parent
483 -- links should point not to N1, but to N2 (rewriting node).
485 -- The Parent links of rewritten nodes (N1 in this example) are set in
486 -- some cases (to point to the rewritten parent), but in other cases
487 -- they are set to Empty. This needs sorting out ??? It would be much
488 -- cleaner if they could always be set in the original node ???
490 -- There are a few cases when ASIS has to use not the original, but the
491 -- rewritten tree structures. This happens when because of some important
492 -- technical reasons it is impossible or very hard to have the original
493 -- structure properly decorated by semantic information, and the rewritten
494 -- structure fully reproduces the original source. Below is the (incomplete
495 -- for the moment???) list of such exceptions:
497 -- Generic specifications and generic bodies
498 -- Function calls that use prefixed notation (Operand.Operation [(...)])
500 -- Representation Information
502 -- For the purposes of the data description annex, the representation
503 -- information for source declared entities must be complete in the
504 -- ASIS tree.
506 -- This requires that the front end call the back end (gigi/gcc) in
507 -- a special "back annotate only" mode to obtain information on layout
508 -- from the back end.
510 -- For the purposes of this special "back annotate only" mode, the
511 -- requirements that would normally need to be met to generate code
512 -- are relaxed as follows:
514 -- Anonymous types need not have full representation information (e.g.
515 -- sizes need not be set for types where the front end would normally
516 -- set the sizes), since anonymous types can be ignored in this mode.
518 -- In this mode, gigi will see at least fragments of a fully annotated
519 -- unexpanded tree. This means that it will encounter nodes it does
520 -- not normally handle (such as stubs, task bodies etc). It should
521 -- simply ignore these nodes, since they are not relevant to the task
522 -- of back annotating representation information.
524 -- Some other ASIS-specific issues are covered in specific comments in
525 -- sections for particular nodes or flags.
527 ----------------
528 -- Ghost Mode --
529 ----------------
531 -- The SPARK RM 6.9 defines two classes of constructs - Ghost entities and
532 -- Ghost statements. The intent of the feature is to treat Ghost constructs
533 -- as non-existent when Ghost assertion policy Ignore is in effect.
535 -- The corresponding nodes which map to Ghost constructs are:
537 -- Ghost entities
538 -- Declaration nodes
539 -- N_Package_Body
540 -- N_Subprogram_Body
542 -- Ghost statements
543 -- N_Assignment_Statement
544 -- N_Procedure_Call_Statement
545 -- N_Pragma
547 -- In addition, the compiler treats instantiations as Ghost entities
549 -- To achieve the removal of ignored Ghost constructs, the compiler relies
550 -- on global variable Ghost_Mode and a mechanism called "Ghost regions".
551 -- The values of the global variable are as follows:
553 -- 1. Check - All static semantics as defined in SPARK RM 6.9 are in
554 -- effect. The Ghost region has mode Check.
556 -- 2. Ignore - Same as Check, ignored Ghost code is not present in ALI
557 -- files, object files, and the final executable. The Ghost region
558 -- has mode Ignore.
560 -- 3. None - No Ghost region is in effect
562 -- A Ghost region is a compiler operating mode, similar to Check_Syntax,
563 -- however a region is much more finely grained and depends on the policy
564 -- in effect. The region starts prior to the analysis of a Ghost construct
565 -- and ends immediately after its expansion. The region is established as
566 -- follows:
568 -- 1. Declarations - Prior to analysis, if the declaration is subject to
569 -- pragma Ghost.
571 -- 2. Renaming declarations - Same as 1) or when the renamed entity is
572 -- Ghost.
574 -- 3. Completing declarations - Same as 1) or when the declaration is
575 -- partially analyzed and the declaration completes a Ghost entity.
577 -- 4. N_Package_Body, N_Subprogram_Body - Same as 1) or when the body is
578 -- partially analyzed and completes a Ghost entity.
580 -- 5. N_Assignment_Statement - After the left hand side is analyzed and
581 -- references a Ghost entity.
583 -- 6. N_Procedure_Call_Statement - After the name is analyzed and denotes
584 -- a Ghost procedure.
586 -- 7. N_Pragma - During analysis, when the related entity is Ghost or the
587 -- pragma encloses a Ghost entity.
589 -- 8. Instantiations - Save as 1) or when the instantiation is partially
590 -- analyzed and the generic template is Ghost.
592 -- Routines Mark_And_Set_Ghost_xxx and Set_Ghost_Mode install a new Ghost
593 -- region and routine Restore_Ghost_Mode ends a Ghost region. A region may
594 -- be reinstalled similarly to scopes for decoupled expansion such as the
595 -- generation of dispatch tables or the creation of a predicate function.
597 -- If the mode of a Ghost region is Ignore, any newly created nodes as well
598 -- as source entities are marked as ignored Ghost. In additon, the marking
599 -- process signals all enclosing scopes that an ignored Ghost node resides
600 -- within. The compilation unit where the node resides is also added to an
601 -- auxiliary table for post processing.
603 -- After the analysis and expansion of all compilation units takes place
604 -- as well as the instantiation of all inlined [generic] bodies, the GNAT
605 -- driver initiates a separate pass which removes all ignored Ghost nodes
606 -- from all units stored in the auxiliary table.
608 --------------------
609 -- GNATprove Mode --
610 --------------------
612 -- When a file is compiled in GNATprove mode (-gnatd.F), a very light
613 -- expansion is performed and the analysis must generate a tree in a
614 -- form that meets additional requirements.
616 -- This light expansion does two transformations of the tree that cannot
617 -- be postponed till after semantic analysis:
619 -- 1. Replace object renamings by renamed object. This requires the
620 -- introduction of temporaries at the point of the renaming, which
621 -- must be properly analyzed.
623 -- 2. Fully qualify entity names. This is needed to generate suitable
624 -- local effects and call-graphs in ALI files, with the completely
625 -- qualified names (in particular the suffix to distinguish homonyms).
627 -- The tree after this light expansion should be fully analyzed
628 -- semantically, which sometimes requires the insertion of semantic
629 -- pre-analysis, for example for subprogram contracts and pragma
630 -- check/assert. In particular, all expression must have their proper type,
631 -- and semantic links should be set between tree nodes (partial to full
632 -- view, etc.) Some kinds of nodes should be either absent, or can be
633 -- ignored by the formal verification backend:
635 -- N_Object_Renaming_Declaration: can be ignored safely
636 -- N_Expression_Function: absent (rewritten)
637 -- N_Expression_With_Actions: absent (not generated)
639 -- SPARK cross-references are generated from the regular cross-references
640 -- (used for browsing and code understanding) and additional references
641 -- collected during semantic analysis, in particular on all dereferences.
642 -- These SPARK cross-references are output in a separate section of ALI
643 -- files, as described in spark_xrefs.adb. They are the basis for the
644 -- computation of data dependences in GNATprove. This implies that all
645 -- cross-references should be generated in this mode, even those that would
646 -- not make sense from a user point-of-view, and that cross-references that
647 -- do not lead to data dependences for subprograms can be safely ignored.
649 -- GNATprove relies on the following front end behaviors:
651 -- 1. The first declarations in the list of visible declarations of
652 -- a package declaration for a generic instance, up to the first
653 -- declaration which comes from source, should correspond to
654 -- the "mappings nodes" between formal and actual generic parameters.
656 -- 2. In addition pragma Debug statements are removed from the tree
657 -- (rewritten to NULL stmt), since they should be ignored in formal
658 -- verification.
660 -- 3. An error is also issued for missing subunits, similar to the
661 -- warning issued when generating code, to avoid formal verification
662 -- of a partial unit.
664 -- 4. Unconstrained types are not replaced by constrained types whose
665 -- bounds are generated from an expression: Expand_Subtype_From_Expr
666 -- should be a no-op.
668 -- 5. Errors (instead of warnings) are issued on compile-time-known
669 -- constraint errors even though such cases do not correspond to
670 -- illegalities in the Ada RM (this is simply another case where
671 -- GNATprove implements a subset of the full language).
673 -- However, there are a few exceptions to this rule for cases where
674 -- we want to allow the GNATprove analysis to proceed (e.g. range
675 -- checks on empty ranges, which typically appear in deactivated
676 -- code in a particular configuration).
678 -- 6. Subtypes should match in the AST, even after a generic is
679 -- instantiated. In particular, GNATprove relies on the fact that,
680 -- on a selected component, the type of the selected component is
681 -- the type of the corresponding component in the prefix of the
682 -- selected component.
684 -- Note that, in some cases, we know that this rule is broken by the
685 -- frontend. In particular, if the selected component is a packed
686 -- array depending on a discriminant of a unconstrained formal object
687 -- parameter of a generic.
689 ----------------
690 -- SPARK Mode --
691 ----------------
693 -- The SPARK RM 1.6.5 defines a mode of operation called "SPARK mode" which
694 -- starts a scope where the SPARK language semantics are either On, Off, or
695 -- Auto, where Auto leaves the choice to the tools. A SPARK mode may be
696 -- specified by means of an aspect or a pragma.
698 -- The following entities may be subject to a SPARK mode. Entities marked
699 -- with * may possess two differente SPARK modes.
701 -- E_Entry
702 -- E_Entry_Family
703 -- E_Function
704 -- E_Generic_Function
705 -- E_Generic_Package *
706 -- E_Generic_Procedure
707 -- E_Operator
708 -- E_Package *
709 -- E_Package_Body *
710 -- E_Procedure
711 -- E_Protected_Body
712 -- E_Protected_Subtype
713 -- E_Protected_Type *
714 -- E_Subprogram_Body
715 -- E_Task_Body
716 -- E_Task_Subtype
717 -- E_Task_Type *
718 -- E_Variable
720 -- In order to manage SPARK scopes, the compiler relies on global variables
721 -- SPARK_Mode and SPARK_Mode_Pragma and a mechanism called "SPARK regions."
722 -- Routines Install_SPARK_Mode and Set_SPARK_Mode create a new SPARK region
723 -- and routine Restore_SPARK_Mode ends a SPARK region. A region may be
724 -- reinstalled similarly to scopes.
726 -----------------------
727 -- Check Flag Fields --
728 -----------------------
730 -- The following flag fields appear in expression nodes:
732 -- Do_Division_Check
733 -- Do_Overflow_Check
734 -- Do_Range_Check
736 -- These three flags are always set by the front end during semantic
737 -- analysis, on expression nodes that may trigger the corresponding
738 -- check. The front end then inserts or not the check during expansion. In
739 -- particular, these flags should also be correctly set in ASIS mode and
740 -- GNATprove mode. As a special case, the front end does not insert a
741 -- Do_Division_Check flag on float exponentiation expressions, for the case
742 -- where the value is 0.0 and the exponent is negative, although this case
743 -- does lead to a division check failure.
745 -- Note: the expander always takes care of the Do_Range check case,
746 -- so this flag will never be set in the expanded tree passed to the
747 -- back end code generator.
749 -- Note that this accounts for all nodes that trigger the corresponding
750 -- checks, except for range checks on subtype_indications, which may be
751 -- required to check that a range_constraint is compatible with the given
752 -- subtype (RM 3.2.2(11)).
754 -- The following flag fields appear in various nodes:
756 -- Do_Accessibility_Check
757 -- Do_Discriminant_Check
758 -- Do_Length_Check
759 -- Do_Storage_Check
760 -- Do_Tag_Check
762 -- These flags are used in some specific cases by the front end, either
763 -- during semantic analysis or during expansion, and cannot be expected
764 -- to be set on all nodes that trigger the corresponding check.
766 ------------------------
767 -- Common Flag Fields --
768 ------------------------
770 -- The following flag fields appear in all nodes:
772 -- Analyzed
773 -- This flag is used to indicate that a node (and all its children) have
774 -- been analyzed. It is used to avoid reanalysis of a node that has
775 -- already been analyzed, both for efficiency and functional correctness
776 -- reasons.
778 -- Comes_From_Source
779 -- This flag is set if the node comes directly from an explicit construct
780 -- in the source. It is normally on for any nodes built by the scanner or
781 -- parser from the source program, with the exception that in a few cases
782 -- the parser adds nodes to normalize the representation (in particular
783 -- a null statement is added to a package body if there is no begin/end
784 -- initialization section.
786 -- Most nodes inserted by the analyzer or expander are not considered
787 -- as coming from source, so the flag is off for such nodes. In a few
788 -- cases, the expander constructs nodes closely equivalent to nodes
789 -- from the source program (e.g. the allocator built for build-in-place
790 -- case), and the Comes_From_Source flag is deliberately set.
792 -- Error_Posted
793 -- This flag is used to avoid multiple error messages being posted on or
794 -- referring to the same node. This flag is set if an error message
795 -- refers to a node or is posted on its source location, and has the
796 -- effect of inhibiting further messages involving this same node.
798 -----------------------
799 -- Modify_Tree_For_C --
800 -----------------------
802 -- If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
803 -- in ways that help match the semantics better with C, easing the task of
804 -- interfacing to C code generators (other than GCC, where the work is done
805 -- in gigi, and there is no point in changing that), and also making life
806 -- easier for Cprint in generating C source code.
808 -- The current modifications implemented are as follows:
810 -- N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
811 -- are eliminated from the tree (since these operations do not exist in
812 -- C), and the operations are rewritten in terms of logical shifts and
813 -- other logical operations that do exist in C. See Exp_Ch4 expansion
814 -- routines for these operators for details of the transformations made.
816 -- The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
817 -- less than the word size (since other values are not well-defined in
818 -- C). This is done using an explicit test if necessary.
820 -- Min and Max attributes are expanded into equivalent if expressions,
821 -- dealing properly with side effect issues.
823 -- Mod for signed integer types is expanded into equivalent expressions
824 -- using Rem (which is % in C) and other C-available operators.
826 -- Functions returning bounded arrays are transformed into procedures
827 -- with an extra out parameter, and the calls updated accordingly.
829 -- Aggregates are only kept unexpanded for object declarations, otherwise
830 -- they are systematically expanded into loops (for arrays) and
831 -- individual assignments (for records).
833 -- Unconstrained array types are handled by means of fat pointers.
835 -- Postconditions are inlined by the frontend since their body may have
836 -- references to itypes defined in the enclosing subprogram.
838 ------------------------------------
839 -- Description of Semantic Fields --
840 ------------------------------------
842 -- The meaning of the syntactic fields is generally clear from their names
843 -- without any further description, since the names are chosen to
844 -- correspond very closely to the syntax in the reference manual. This
845 -- section describes the usage of the semantic fields, which are used to
846 -- contain additional information determined during semantic analysis.
848 -- Accept_Handler_Records (List5-Sem)
849 -- This field is present only in an N_Accept_Alternative node. It is used
850 -- to temporarily hold the exception handler records from an accept
851 -- statement in a selective accept. These exception handlers will
852 -- eventually be placed in the Handler_Records list of the procedure
853 -- built for this accept (see Expand_N_Selective_Accept procedure in
854 -- Exp_Ch9 for further details).
856 -- Access_Types_To_Process (Elist2-Sem)
857 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
858 -- Contains the list of access types which may require specific treatment
859 -- when the nature of the type completion is completely known. An example
860 -- of such treatment is the generation of the associated_final_chain.
862 -- Actions (List1-Sem)
863 -- This field contains a sequence of actions that are associated with the
864 -- node holding the field. See the individual node types for details of
865 -- how this field is used, as well as the description of the specific use
866 -- for a particular node type.
868 -- Activation_Chain_Entity (Node3-Sem)
869 -- This is used in tree nodes representing task activators (blocks,
870 -- subprogram bodies, package declarations, and task bodies). It is
871 -- initially Empty, and then gets set to point to the entity for the
872 -- declared Activation_Chain variable when the first task is declared.
873 -- When tasks are declared in the corresponding declarative region this
874 -- entity is located by name (its name is always _Chain) and the declared
875 -- tasks are added to the chain. Note that N_Extended_Return_Statement
876 -- does not have this attribute, although it does have an activation
877 -- chain. This chain is used to store the tasks temporarily, and is not
878 -- used for activating them. On successful completion of the return
879 -- statement, the tasks are moved to the caller's chain, and the caller
880 -- activates them.
882 -- Acts_As_Spec (Flag4-Sem)
883 -- A flag set in the N_Subprogram_Body node for a subprogram body which
884 -- is acting as its own spec. In the case of a library-level subprogram
885 -- the flag is set as well on the parent compilation unit node.
887 -- Actual_Designated_Subtype (Node4-Sem)
888 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
889 -- needs to known the dynamic constrained subtype of the designated
890 -- object, this attribute is set to that type. This is done for
891 -- N_Free_Statements for access-to-classwide types and access to
892 -- unconstrained packed array types, and for N_Explicit_Dereference when
893 -- the designated type is an unconstrained packed array and the
894 -- dereference is the prefix of a 'Size attribute reference.
896 -- Address_Warning_Posted (Flag18-Sem)
897 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
898 -- posted a warning for the address clause regarding size or alignment
899 -- issues. Used to inhibit multiple redundant messages.
901 -- Aggregate_Bounds (Node3-Sem)
902 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
903 -- known at compile time, this field points to an N_Range node with those
904 -- bounds. Otherwise Empty.
906 -- Alloc_For_BIP_Return (Flag1-Sem)
907 -- Present in N_Allocator nodes. True if the allocator is one of those
908 -- generated for a build-in-place return statement.
910 -- All_Others (Flag11-Sem)
911 -- Present in an N_Others_Choice node. This flag is set for an others
912 -- exception where all exceptions are to be caught, even those that are
913 -- not normally handled (in particular the tasking abort signal). This
914 -- is used for translation of the at end handler into a normal exception
915 -- handler.
917 -- Aspect_Rep_Item (Node2-Sem)
918 -- Present in N_Aspect_Specification nodes. Points to the corresponding
919 -- pragma/attribute definition node used to process the aspect.
921 -- Assignment_OK (Flag15-Sem)
922 -- This flag is set in a subexpression node for an object, indicating
923 -- that the associated object can be modified, even if this would not
924 -- normally be permissible (either by direct assignment, or by being
925 -- passed as an out or in-out parameter). This is used by the expander
926 -- for a number of purposes, including initialization of constants and
927 -- limited type objects (such as tasks), setting discriminant fields,
928 -- setting tag values, etc. N_Object_Declaration nodes also have this
929 -- flag defined. Here it is used to indicate that an initialization
930 -- expression is valid, even where it would normally not be allowed
931 -- (e.g. where the type involved is limited). It is also used to stop
932 -- a Force_Evaluation call for an unchecked conversion, but this usage
933 -- is unclear and not documented ???
935 -- Associated_Node (Node4-Sem)
936 -- Present in nodes that can denote an entity: identifiers, character
937 -- literals, operator symbols, expanded names, operator nodes, and
938 -- attribute reference nodes (all these nodes have an Entity field).
939 -- This field is also present in N_Aggregate, N_Selected_Component, and
940 -- N_Extension_Aggregate nodes. This field is used in generic processing
941 -- to create links between the generic template and the generic copy.
942 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
943 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
944 -- the normal function of Entity is not required at the point where the
945 -- Associated_Node is set. Note also, that in generic templates, this
946 -- means that the Entity field does not necessarily point to an Entity.
947 -- Since the back end is expected to ignore generic templates, this is
948 -- harmless.
950 -- Atomic_Sync_Required (Flag14-Sem)
951 -- This flag is set on a node for which atomic synchronization is
952 -- required for the corresponding reference or modification.
954 -- At_End_Proc (Node1)
955 -- This field is present in an N_Handled_Sequence_Of_Statements node.
956 -- It contains an identifier reference for the cleanup procedure to be
957 -- called. See description of this node for further details.
959 -- Backwards_OK (Flag6-Sem)
960 -- A flag present in the N_Assignment_Statement node. It is used only
961 -- if the type being assigned is an array type, and is set if analysis
962 -- determines that it is definitely safe to do the copy backwards, i.e.
963 -- starting at the highest addressed element. This is the case if either
964 -- the operands do not overlap, or they may overlap, but if they do,
965 -- then the left operand is at a higher address than the right operand.
967 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
968 -- means that the front end could not determine that either direction is
969 -- definitely safe, and a runtime check may be required if the backend
970 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
971 -- set, it means that the front end can assure no overlap of operands.
973 -- Body_To_Inline (Node3-Sem)
974 -- Present in subprogram declarations. Denotes analyzed but unexpanded
975 -- body of subprogram, to be used when inlining calls. Present when the
976 -- subprogram has an Inline pragma and inlining is enabled. If the
977 -- declaration is completed by a renaming_as_body, and the renamed entity
978 -- is a subprogram, the Body_To_Inline is the name of that entity, which
979 -- is used directly in later calls to the original subprogram.
981 -- Body_Required (Flag13-Sem)
982 -- A flag that appears in the N_Compilation_Unit node indicating that
983 -- the corresponding unit requires a body. For the package case, this
984 -- indicates that a completion is required. In Ada 95, if the flag is not
985 -- set for the package case, then a body may not be present. In Ada 83,
986 -- if the flag is not set for the package case, then body is optional.
987 -- For a subprogram declaration, the flag is set except in the case where
988 -- a pragma Import or Interface applies, in which case no body is
989 -- permitted (in Ada 83 or Ada 95).
991 -- By_Ref (Flag5-Sem)
992 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
993 -- this flag is set when the returned expression is already allocated on
994 -- the secondary stack and thus the result is passed by reference rather
995 -- than copied another time.
997 -- Cleanup_Actions (List5-Sem)
998 -- Present in block statements created for transient blocks, contains
999 -- additional cleanup actions carried over from the transient scope.
1001 -- Check_Address_Alignment (Flag11-Sem)
1002 -- A flag present in N_Attribute_Definition clause for a 'Address
1003 -- attribute definition. This flag is set if a dynamic check should be
1004 -- generated at the freeze point for the entity to which this address
1005 -- clause applies. The reason that we need this flag is that we want to
1006 -- check for range checks being suppressed at the point where the
1007 -- attribute definition clause is given, rather than testing this at the
1008 -- freeze point.
1010 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
1011 -- Present in N_Simple_Return_Statement nodes. True if this node was
1012 -- constructed as part of the N_Extended_Return_Statement expansion.
1014 -- Compile_Time_Known_Aggregate (Flag18-Sem)
1015 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
1016 -- evaluated at compile time without raising constraint error. Such
1017 -- aggregates can be passed as is to the back end without any expansion.
1018 -- See Exp_Aggr for specific conditions under which this flag gets set.
1020 -- Componentwise_Assignment (Flag14-Sem)
1021 -- Present in N_Assignment_Statement nodes. Set for a record assignment
1022 -- where all that needs doing is to expand it into component-by-component
1023 -- assignments. This is used internally for the case of tagged types with
1024 -- rep clauses, where we need to avoid recursion (we don't want to try to
1025 -- generate a call to the primitive operation, because this is the case
1026 -- where we are compiling the primitive operation). Note that when we are
1027 -- expanding component assignments in this case, we never assign the _tag
1028 -- field, but we recursively assign components of the parent type.
1030 -- Condition_Actions (List3-Sem)
1031 -- This field appears in else-if nodes and in the iteration scheme node
1032 -- for while loops. This field is only used during semantic processing to
1033 -- temporarily hold actions inserted into the tree. In the tree passed
1034 -- to gigi, the condition actions field is always set to No_List. For
1035 -- details on how this field is used, see the routine Insert_Actions in
1036 -- package Exp_Util, and also the expansion routines for the relevant
1037 -- nodes.
1039 -- Context_Pending (Flag16-Sem)
1040 -- This field appears in Compilation_Unit nodes, to indicate that the
1041 -- context of the unit is being compiled. Used to detect circularities
1042 -- that are not otherwise detected by the loading mechanism. Such
1043 -- circularities can occur in the presence of limited and non-limited
1044 -- with_clauses that mention the same units.
1046 -- Controlling_Argument (Node1-Sem)
1047 -- This field is set in procedure and function call nodes if the call
1048 -- is a dispatching call (it is Empty for a non-dispatching call). It
1049 -- indicates the source of the call's controlling tag. For procedure
1050 -- calls, the Controlling_Argument is one of the actuals. For function
1051 -- that has a dispatching result, it is an entity in the context of the
1052 -- call that can provide a tag, or else it is the tag of the root type
1053 -- of the class. It can also specify a tag directly rather than being a
1054 -- tagged object. The latter is needed by the implementations of AI-239
1055 -- and AI-260.
1057 -- Conversion_OK (Flag14-Sem)
1058 -- A flag set on type conversion nodes to indicate that the conversion
1059 -- is to be considered as being valid, even though it is the case that
1060 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
1061 -- Fixed_Value and Integer_Value, for internal conversions done for
1062 -- fixed-point operations, and for certain conversions for calls to
1063 -- initialization procedures. If Conversion_OK is set, then Etype must be
1064 -- set (the analyzer assumes that Etype has been set). For the case of
1065 -- fixed-point operands, it also indicates that the conversion is to be
1066 -- direct conversion of the underlying integer result, with no regard to
1067 -- the small operand.
1069 -- Convert_To_Return_False (Flag13-Sem)
1070 -- Present in N_Raise_Expression nodes that appear in the body of the
1071 -- special predicateM function used to test a predicate in the context
1072 -- of a membership test, where raise expression results in returning a
1073 -- value of False rather than raising an exception.
1075 -- Corresponding_Aspect (Node3-Sem)
1076 -- Present in N_Pragma node. Used to point back to the source aspect from
1077 -- the corresponding pragma. This field is Empty for source pragmas.
1079 -- Corresponding_Body (Node5-Sem)
1080 -- This field is set in subprogram declarations, package declarations,
1081 -- entry declarations of protected types, and in generic units. It points
1082 -- to the defining entity for the corresponding body (NOT the node for
1083 -- the body itself).
1085 -- Corresponding_Formal_Spec (Node3-Sem)
1086 -- This field is set in subprogram renaming declarations, where it points
1087 -- to the defining entity for a formal subprogram in the case where the
1088 -- renaming corresponds to a generic formal subprogram association in an
1089 -- instantiation. The field is Empty if the renaming does not correspond
1090 -- to such a formal association.
1092 -- Corresponding_Generic_Association (Node5-Sem)
1093 -- This field is defined for object declarations and object renaming
1094 -- declarations. It is set for the declarations within an instance that
1095 -- map generic formals to their actuals. If set, the field points to
1096 -- a generic_association which is the original parent of the expression
1097 -- or name appearing in the declaration. This simplifies ASIS queries.
1099 -- Corresponding_Integer_Value (Uint4-Sem)
1100 -- This field is set in real literals of fixed-point types (it is not
1101 -- used for floating-point types). It contains the integer value used
1102 -- to represent the fixed-point value. It is also set on the universal
1103 -- real literals used to represent bounds of fixed-point base types
1104 -- and their first named subtypes.
1106 -- Corresponding_Spec (Node5-Sem)
1107 -- This field is set in subprogram, package, task, and protected body
1108 -- nodes, where it points to the defining entity in the corresponding
1109 -- spec. The attribute is also set in N_With_Clause nodes where it points
1110 -- to the defining entity for the with'ed spec, and in a subprogram
1111 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
1112 -- if there is no corresponding spec, as in the case of a subprogram body
1113 -- that serves as its own spec.
1115 -- In Ada 2012, Corresponding_Spec is set on expression functions that
1116 -- complete a subprogram declaration.
1118 -- Corresponding_Spec_Of_Stub (Node2-Sem)
1119 -- This field is present in subprogram, package, task, and protected body
1120 -- stubs where it points to the corresponding spec of the stub. Due to
1121 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
1123 -- Corresponding_Stub (Node3-Sem)
1124 -- This field is present in an N_Subunit node. It holds the node in
1125 -- the parent unit that is the stub declaration for the subunit. It is
1126 -- set when analysis of the stub forces loading of the proper body. If
1127 -- expansion of the proper body creates new declarative nodes, they are
1128 -- inserted at the point of the corresponding_stub.
1130 -- Dcheck_Function (Node5-Sem)
1131 -- This field is present in an N_Variant node, It references the entity
1132 -- for the discriminant checking function for the variant.
1134 -- Default_Expression (Node5-Sem)
1135 -- This field is Empty if there is no default expression. If there is a
1136 -- simple default expression (one with no side effects), then this field
1137 -- simply contains a copy of the Expression field (both point to the tree
1138 -- for the default expression). Default_Expression is used for
1139 -- conformance checking.
1141 -- Default_Storage_Pool (Node3-Sem)
1142 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
1143 -- copy of Opt.Default_Pool at the end of the compilation unit. See
1144 -- package Opt for details. This is used for inheriting the
1145 -- Default_Storage_Pool in child units.
1147 -- Discr_Check_Funcs_Built (Flag11-Sem)
1148 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
1149 -- discriminant checking functions are constructed. The purpose is to
1150 -- avoid attempting to set these functions more than once.
1152 -- Do_Accessibility_Check (Flag13-Sem)
1153 -- This flag is set on N_Parameter_Specification nodes to indicate
1154 -- that an accessibility check is required for the parameter. It is
1155 -- not yet decided who takes care of this check (TBD ???).
1157 -- Do_Discriminant_Check (Flag3-Sem)
1158 -- This flag is set on N_Selected_Component nodes to indicate that a
1159 -- discriminant check is required using the discriminant check routine
1160 -- associated with the selector. The actual check is generated by the
1161 -- expander when processing selected components. In the case of
1162 -- Unchecked_Union, the flag is also set, but no discriminant check
1163 -- routine is associated with the selector, and the expander does not
1164 -- generate a check. This flag is also present in assignment statements
1165 -- (and set if the assignment requires a discriminant check), and in type
1166 -- conversion nodes (and set if the conversion requires a check).
1168 -- Do_Division_Check (Flag13-Sem)
1169 -- This flag is set on a division operator (/ mod rem) to indicate
1170 -- that a zero divide check is required. The actual check is dealt
1171 -- with by the backend (all the front end does is to set the flag).
1173 -- Do_Length_Check (Flag4-Sem)
1174 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1175 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1176 -- is required. It is not determined who deals with this flag (???).
1178 -- Do_Overflow_Check (Flag17-Sem)
1179 -- This flag is set on an operator where an overflow check is required on
1180 -- the operation. The actual check is dealt with by the backend (all the
1181 -- front end does is to set the flag). The other cases where this flag is
1182 -- used is on a Type_Conversion node and for attribute reference nodes.
1183 -- For a type conversion, it means that the conversion is from one base
1184 -- type to another, and the value may not fit in the target base type.
1185 -- See also the description of Do_Range_Check for this case. The only
1186 -- attribute references which use this flag are Pred and Succ, where it
1187 -- means that the result should be checked for going outside the base
1188 -- range. Note that this flag is not set for modular types. This flag is
1189 -- also set on if and case expression nodes if we are operating in either
1190 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1191 -- properly process overflow checking for dependent expressions).
1193 -- Do_Range_Check (Flag9-Sem)
1194 -- This flag is set on an expression which appears in a context where a
1195 -- range check is required. The target type is clear from the context.
1196 -- The contexts in which this flag can appear are the following:
1198 -- Right side of an assignment. In this case the target type is
1199 -- taken from the left side of the assignment, which is referenced
1200 -- by the Name of the N_Assignment_Statement node.
1202 -- Subscript expressions in an indexed component. In this case the
1203 -- target type is determined from the type of the array, which is
1204 -- referenced by the Prefix of the N_Indexed_Component node.
1206 -- Argument expression for a parameter, appearing either directly in
1207 -- the Parameter_Associations list of a call or as the Expression of an
1208 -- N_Parameter_Association node that appears in this list. In either
1209 -- case, the check is against the type of the formal. Note that the
1210 -- flag is relevant only in IN and IN OUT parameters, and will be
1211 -- ignored for OUT parameters, where no check is required in the call,
1212 -- and if a check is required on the return, it is generated explicitly
1213 -- with a type conversion.
1215 -- Initialization expression for the initial value in an object
1216 -- declaration. In this case the Do_Range_Check flag is set on
1217 -- the initialization expression, and the check is against the
1218 -- range of the type of the object being declared. This includes the
1219 -- cases of expressions providing default discriminant values, and
1220 -- expressions used to initialize record components.
1222 -- The expression of a type conversion. In this case the range check is
1223 -- against the target type of the conversion. See also the use of
1224 -- Do_Overflow_Check on a type conversion. The distinction is that the
1225 -- overflow check protects against a value that is outside the range of
1226 -- the target base type, whereas a range check checks that the
1227 -- resulting value (which is a value of the base type of the target
1228 -- type), satisfies the range constraint of the target type.
1230 -- Note: when a range check is required in contexts other than those
1231 -- listed above (e.g. in a return statement), an additional type
1232 -- conversion node is introduced to represent the required check.
1234 -- A special case arises for the arguments of the Pred/Succ attributes.
1235 -- Here the range check needed is against First + 1 .. Last (Pred) or
1236 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
1237 -- these checks are what would be performed within the implicit body of
1238 -- the functions that correspond to these attributes. In these cases,
1239 -- the Do_Range check flag is set on the argument to the attribute
1240 -- function, and the back end must special case the appropriate range
1241 -- to check against.
1243 -- Do_Storage_Check (Flag17-Sem)
1244 -- This flag is set in an N_Allocator node to indicate that a storage
1245 -- check is required for the allocation, or in an N_Subprogram_Body node
1246 -- to indicate that a stack check is required in the subprogram prologue.
1247 -- The N_Allocator case is handled by the routine that expands the call
1248 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1249 -- backend, and all the semantics does is set the flag.
1251 -- Do_Tag_Check (Flag13-Sem)
1252 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1253 -- N_Procedure_Call_Statement, N_Type_Conversion,
1254 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1255 -- node to indicate that the tag check can be suppressed. It is not
1256 -- yet decided how this flag is used (TBD ???).
1258 -- Elaborate_Present (Flag4-Sem)
1259 -- This flag is set in the N_With_Clause node to indicate that pragma
1260 -- Elaborate pragma appears for the with'ed units.
1262 -- Elaborate_All_Desirable (Flag9-Sem)
1263 -- This flag is set in the N_With_Clause mode to indicate that the static
1264 -- elaboration processing has determined that an Elaborate_All pragma is
1265 -- desirable for correct elaboration for this unit.
1267 -- Elaborate_All_Present (Flag14-Sem)
1268 -- This flag is set in the N_With_Clause node to indicate that a
1269 -- pragma Elaborate_All pragma appears for the with'ed units.
1271 -- Elaborate_Desirable (Flag11-Sem)
1272 -- This flag is set in the N_With_Clause mode to indicate that the static
1273 -- elaboration processing has determined that an Elaborate pragma is
1274 -- desirable for correct elaboration for this unit.
1276 -- Else_Actions (List3-Sem)
1277 -- This field is present in if expression nodes. During code
1278 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1279 -- actions at an appropriate place in the tree to get elaborated at the
1280 -- right time. For if expressions, we have to be sure that the actions
1281 -- for the Else branch are only elaborated if the condition is False.
1282 -- The Else_Actions field is used as a temporary parking place for
1283 -- these actions. The final tree is always rewritten to eliminate the
1284 -- need for this field, so in the tree passed to Gigi, this field is
1285 -- always set to No_List.
1287 -- Enclosing_Variant (Node2-Sem)
1288 -- This field is present in the N_Variant node and identifies the Node_Id
1289 -- corresponding to the immediately enclosing variant when the variant is
1290 -- nested, and N_Empty otherwise. Set during semantic processing of the
1291 -- variant part of a record type.
1293 -- Entity (Node4-Sem)
1294 -- Appears in all direct names (identifiers, character literals, and
1295 -- operator symbols), as well as expanded names, and attributes that
1296 -- denote entities, such as 'Class. Points to entity for corresponding
1297 -- defining occurrence. Set after name resolution. For identifiers in a
1298 -- WITH list, the corresponding defining occurrence is in a separately
1299 -- compiled file, and Entity must be set by the library Load procedure.
1301 -- Note: During name resolution, the value in Entity may be temporarily
1302 -- incorrect (e.g. during overload resolution, Entity is initially set to
1303 -- the first possible correct interpretation, and then later modified if
1304 -- necessary to contain the correct value after resolution).
1306 -- Note: This field overlaps Associated_Node, which is used during
1307 -- generic processing (see Sem_Ch12 for details). Note also that in
1308 -- generic templates, this means that the Entity field does not always
1309 -- point to an Entity. Since the back end is expected to ignore generic
1310 -- templates, this is harmless.
1312 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1313 -- It is used only for stream attributes definition clauses. In this
1314 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1315 -- conceptually at the point of the clause. Thus the visibility of the
1316 -- attribute definition clause (in the sense of 8.3(23) as amended by
1317 -- AI-195) can be checked by testing the visibility of that subprogram.
1319 -- Note: Normally the Entity field of an identifier points to the entity
1320 -- for the corresponding defining identifier, and hence the Chars field
1321 -- of an identifier will match the Chars field of the entity. However,
1322 -- there is no requirement that these match, and there are obscure cases
1323 -- of generated code where they do not match.
1325 -- Note: Ada 2012 aspect specifications require additional links between
1326 -- identifiers and various attributes. These attributes can be of
1327 -- arbitrary types, and the entity field of identifiers that denote
1328 -- aspects must be used to store arbitrary expressions for later semantic
1329 -- checks. See section on aspect specifications for details.
1331 -- Entity_Or_Associated_Node (Node4-Sem)
1332 -- A synonym for both Entity and Associated_Node. Used by convention in
1333 -- the code when referencing this field in cases where it is not known
1334 -- whether the field contains an Entity or an Associated_Node.
1336 -- Etype (Node5-Sem)
1337 -- Appears in all expression nodes, all direct names, and all entities.
1338 -- Points to the entity for the related type. Set after type resolution.
1339 -- Normally this is the actual subtype of the expression. However, in
1340 -- certain contexts such as the right side of an assignment, subscripts,
1341 -- arguments to calls, returned value in a function, initial value etc.
1342 -- it is the desired target type. In the event that this is different
1343 -- from the actual type, the Do_Range_Check flag will be set if a range
1344 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1345 -- points to an essentially arbitrary choice from the possible set of
1346 -- types.
1348 -- Exception_Junk (Flag8-Sem)
1349 -- This flag is set in a various nodes appearing in a statement sequence
1350 -- to indicate that the corresponding node is an artifact of the
1351 -- generated code for exception handling, and should be ignored when
1352 -- analyzing the control flow of the relevant sequence of statements
1353 -- (e.g. to check that it does not end with a bad return statement).
1355 -- Exception_Label (Node5-Sem)
1356 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1357 -- to be used for transforming the corresponding exception into a goto,
1358 -- or contains Empty, if this exception is not to be transformed. Also
1359 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1360 -- that there may be a local raise for the handler, so that expansion
1361 -- to allow a goto is required (and this field contains the label for
1362 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1364 -- Expansion_Delayed (Flag11-Sem)
1365 -- Set on aggregates and extension aggregates that need a top-down rather
1366 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1367 -- up. For nested aggregates the expansion is delayed until the enclosing
1368 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1369 -- delay it we set this flag. This is done to avoid creating a temporary
1370 -- for each level of a nested aggregate, and also to prevent the
1371 -- premature generation of constraint checks. This is also a requirement
1372 -- if we want to generate the proper attachment to the internal????
1373 -- finalization lists (for record with controlled components). Top down
1374 -- expansion of aggregates is also used for in-place array aggregate
1375 -- assignment or initialization. When the full context is known, the
1376 -- target of the assignment or initialization is used to generate the
1377 -- left-hand side of individual assignment to each sub-component.
1379 -- Expression_Copy (Node2-Sem)
1380 -- Present in N_Pragma_Argument_Association nodes. Contains a copy of the
1381 -- original expression. This field is best used to store pragma-dependent
1382 -- modifications performed on the original expression such as replacement
1383 -- of the current type instance or substitutions of primitives.
1385 -- First_Inlined_Subprogram (Node3-Sem)
1386 -- Present in the N_Compilation_Unit node for the main program. Points
1387 -- to a chain of entities for subprograms that are to be inlined. The
1388 -- Next_Inlined_Subprogram field of these entities is used as a link
1389 -- pointer with Empty marking the end of the list. This field is Empty
1390 -- if there are no inlined subprograms or inlining is not active.
1392 -- First_Named_Actual (Node4-Sem)
1393 -- Present in procedure call statement and function call nodes, and also
1394 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1395 -- named parameter where parameters are ordered by declaration order (as
1396 -- opposed to the actual order in the call which may be different due to
1397 -- named associations). Note: this field points to the explicit actual
1398 -- parameter itself, not the N_Parameter_Association node (its parent).
1400 -- First_Real_Statement (Node2-Sem)
1401 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1402 -- Empty. Used only when declarations are moved into the statement part
1403 -- of a construct as a result of wrapping an AT END handler that is
1404 -- required to cover the declarations. In this case, this field is used
1405 -- to remember the location in the statements list of the first real
1406 -- statement, i.e. the statement that used to be first in the statement
1407 -- list before the declarations were prepended.
1409 -- First_Subtype_Link (Node5-Sem)
1410 -- Present in N_Freeze_Entity node for an anonymous base type that is
1411 -- implicitly created by the declaration of a first subtype. It points
1412 -- to the entity for the first subtype.
1414 -- Float_Truncate (Flag11-Sem)
1415 -- A flag present in type conversion nodes. This is used for float to
1416 -- integer conversions where truncation is required rather than rounding.
1418 -- Forwards_OK (Flag5-Sem)
1419 -- A flag present in the N_Assignment_Statement node. It is used only
1420 -- if the type being assigned is an array type, and is set if analysis
1421 -- determines that it is definitely safe to do the copy forwards, i.e.
1422 -- starting at the lowest addressed element. This is the case if either
1423 -- the operands do not overlap, or they may overlap, but if they do,
1424 -- then the left operand is at a lower address than the right operand.
1426 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1427 -- means that the front end could not determine that either direction is
1428 -- definitely safe, and a runtime check may be required if the backend
1429 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1430 -- set, it means that the front end can assure no overlap of operands.
1432 -- From_Aspect_Specification (Flag13-Sem)
1433 -- Processing of aspect specifications typically results in insertion in
1434 -- the tree of corresponding pragma or attribute definition clause nodes.
1435 -- These generated nodes have the From_Aspect_Specification flag set to
1436 -- indicate that they came from aspect specifications originally.
1438 -- From_At_End (Flag4-Sem)
1439 -- This flag is set on an N_Raise_Statement node if it corresponds to
1440 -- the reraise statement generated as the last statement of an AT END
1441 -- handler when SJLJ exception handling is active. It is used to stop
1442 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1443 -- because if the restriction is set, the reraise is not generated.
1445 -- From_At_Mod (Flag4-Sem)
1446 -- This flag is set on the attribute definition clause node that is
1447 -- generated by a transformation of an at mod phrase in a record
1448 -- representation clause. This is used to give slightly different (Ada 83
1449 -- compatible) semantics to such a clause, namely it is used to specify a
1450 -- minimum acceptable alignment for the base type and all subtypes. In
1451 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1452 -- must be a multiple of the given value, and the representation clause
1453 -- is considered to be type specific instead of subtype specific.
1455 -- From_Conditional_Expression (Flag1-Sem)
1456 -- This flag is set on if and case statements generated by the expansion
1457 -- of if and case expressions respectively. The flag is used to suppress
1458 -- any finalization of controlled objects found within these statements.
1460 -- From_Default (Flag6-Sem)
1461 -- This flag is set on the subprogram renaming declaration created in an
1462 -- instance for a formal subprogram, when the formal is declared with a
1463 -- box, and there is no explicit actual. If the flag is present, the
1464 -- declaration is treated as an implicit reference to the formal in the
1465 -- ali file.
1467 -- Generalized_Indexing (Node4-Sem)
1468 -- Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1469 -- that are Ada 2012 container indexing operations. The value of the
1470 -- attribute is a function call (possibly dereferenced) that corresponds
1471 -- to the proper expansion of the source indexing operation. Before
1472 -- expansion, the source node is rewritten as the resolved generalized
1473 -- indexing. In ASIS mode, the expansion does not take place, so that
1474 -- the source is preserved and properly annotated with types.
1476 -- Generic_Parent (Node5-Sem)
1477 -- Generic_Parent is defined on declaration nodes that are instances. The
1478 -- value of Generic_Parent is the generic entity from which the instance
1479 -- is obtained.
1481 -- Generic_Parent_Type (Node4-Sem)
1482 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1483 -- actuals of formal private and derived types. Within the instance, the
1484 -- operations on the actual are those inherited from the parent. For a
1485 -- formal private type, the parent type is the generic type itself. The
1486 -- Generic_Parent_Type is also used in an instance to determine whether a
1487 -- private operation overrides an inherited one.
1489 -- Handler_List_Entry (Node2-Sem)
1490 -- This field is present in N_Object_Declaration nodes. It is set only
1491 -- for the Handler_Record entry generated for an exception in zero cost
1492 -- exception handling mode. It references the corresponding item in the
1493 -- handler list, and is used to delete this entry if the corresponding
1494 -- handler is deleted during optimization. For further details on why
1495 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1497 -- Has_Dereference_Action (Flag13-Sem)
1498 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1499 -- indicate that the expansion has aready produced a call to primitive
1500 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1501 -- Such dereference actions are produced for debugging purposes.
1503 -- Has_Dynamic_Length_Check (Flag10-Sem)
1504 -- This flag is present in all expression nodes. It is set to indicate
1505 -- that one of the routines in unit Checks has generated a length check
1506 -- action which has been inserted at the flagged node. This is used to
1507 -- avoid the generation of duplicate checks.
1509 -- Has_Dynamic_Range_Check (Flag12-Sem)
1510 -- This flag is present in N_Subtype_Declaration nodes and on all
1511 -- expression nodes. It is set to indicate that one of the routines in
1512 -- unit Checks has generated a range check action which has been inserted
1513 -- at the flagged node. This is used to avoid the generation of duplicate
1514 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1515 -- it mean in that context???
1517 -- Has_Local_Raise (Flag8-Sem)
1518 -- Present in exception handler nodes. Set if the handler can be entered
1519 -- via a local raise that gets transformed to a goto statement. This will
1520 -- always be set if Local_Raise_Statements is non-empty, but can also be
1521 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1522 -- nodes requiring generation of back end checks.
1524 -- Has_No_Elaboration_Code (Flag17-Sem)
1525 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1526 -- or not elaboration code is present for this unit. It is initially set
1527 -- true for subprogram specs and bodies and for all generic units and
1528 -- false for non-generic package specs and bodies. Gigi may set the flag
1529 -- in the non-generic package case if it determines that no elaboration
1530 -- code is generated. Note that this flag is not related to the
1531 -- Is_Preelaborated status, there can be preelaborated packages that
1532 -- generate elaboration code, and non-preelaborated packages which do
1533 -- not generate elaboration code.
1535 -- Has_Pragma_Suppress_All (Flag14-Sem)
1536 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1537 -- pragma appears anywhere in the unit. This accommodates the rather
1538 -- strange placement rules of other compilers (DEC permits it at the
1539 -- end of a unit, and Rational allows it as a program unit pragma). We
1540 -- allow it anywhere at all, and consider it equivalent to a pragma
1541 -- Suppress (All_Checks) appearing at the start of the configuration
1542 -- pragmas for the unit.
1544 -- Has_Private_View (Flag11-Sem)
1545 -- A flag present in generic nodes that have an entity, to indicate that
1546 -- the node has a private type. Used to exchange private and full
1547 -- declarations if the visibility at instantiation is different from the
1548 -- visibility at generic definition.
1550 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1551 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1552 -- flag the presence of a pragma Relative_Deadline.
1554 -- Has_Self_Reference (Flag13-Sem)
1555 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1556 -- of the expressions contains an access attribute reference to the
1557 -- enclosing type. Such a self-reference can only appear in default-
1558 -- initialized aggregate for a record type.
1560 -- Has_SP_Choice (Flag15-Sem)
1561 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1562 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1563 -- True if the Discrete_Choices list has at least one occurrence of a
1564 -- statically predicated subtype.
1566 -- Has_Storage_Size_Pragma (Flag5-Sem)
1567 -- A flag present in an N_Task_Definition node to flag the presence of a
1568 -- Storage_Size pragma.
1570 -- Has_Target_Names (Flag8-Sem)
1571 -- Present in assignment statements. Indicates that the RHS contains
1572 -- target names (see AI12-0125-3) and must be expanded accordingly.
1574 -- Has_Wide_Character (Flag11-Sem)
1575 -- Present in string literals, set if any wide character (i.e. character
1576 -- code outside the Character range but within Wide_Character range)
1577 -- appears in the string. Used to implement pragma preference rules.
1579 -- Has_Wide_Wide_Character (Flag13-Sem)
1580 -- Present in string literals, set if any wide character (i.e. character
1581 -- code outside the Wide_Character range) appears in the string. Used to
1582 -- implement pragma preference rules.
1584 -- Header_Size_Added (Flag11-Sem)
1585 -- Present in N_Attribute_Reference nodes, set only for attribute
1586 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1587 -- hidden list header used by the runtime finalization support has been
1588 -- added to the size of the prefix. The flag also prevents the infinite
1589 -- expansion of the same attribute in the said context.
1591 -- Hidden_By_Use_Clause (Elist5-Sem)
1592 -- An entity list present in use clauses that appear within
1593 -- instantiations. For the resolution of local entities, entities
1594 -- introduced by these use clauses have priority over global ones, and
1595 -- outer entities must be explicitly hidden/restored on exit.
1597 -- Implicit_With (Flag16-Sem)
1598 -- This flag is set in the N_With_Clause node that is implicitly
1599 -- generated for runtime units that are loaded by the expander or in
1600 -- GNATprove mode, and also for package System, if it is loaded
1601 -- implicitly by a use of the 'Address or 'Tag attribute.
1602 -- ??? There are other implicit with clauses as well.
1604 -- Implicit_With_From_Instantiation (Flag12-Sem)
1605 -- Set in N_With_Clause nodes from generic instantiations.
1607 -- Import_Interface_Present (Flag16-Sem)
1608 -- This flag is set in an Interface or Import pragma if a matching
1609 -- pragma of the other kind is also present. This is used to avoid
1610 -- generating some unwanted error messages.
1612 -- Includes_Infinities (Flag11-Sem)
1613 -- This flag is present in N_Range nodes. It is set for the range of
1614 -- unconstrained float types defined in Standard, which include not only
1615 -- the given range of values, but also legitimately can include infinite
1616 -- values. This flag is false for any float type for which an explicit
1617 -- range is given by the programmer, even if that range is identical to
1618 -- the range for Float.
1620 -- Incomplete_View (Node2-Sem)
1621 -- Present in full type declarations that are completions of incomplete
1622 -- type declarations. Denotes the corresponding incomplete type
1623 -- declaration. Used to simplify the retrieval of primitive operations
1624 -- that may be declared between the partial and the full view of an
1625 -- untagged type.
1627 -- Inherited_Discriminant (Flag13-Sem)
1628 -- This flag is present in N_Component_Association nodes. It indicates
1629 -- that a given component association in an extension aggregate is the
1630 -- value obtained from a constraint on an ancestor. Used to prevent
1631 -- double expansion when the aggregate has expansion delayed.
1633 -- Instance_Spec (Node5-Sem)
1634 -- This field is present in generic instantiation nodes, and also in
1635 -- formal package declaration nodes (formal package declarations are
1636 -- treated in a manner very similar to package instantiations). It points
1637 -- to the node for the spec of the instance, inserted as part of the
1638 -- semantic processing for instantiations in Sem_Ch12.
1640 -- Is_Abort_Block (Flag4-Sem)
1641 -- Present in N_Block_Statement nodes. True if the block protects a list
1642 -- of statements with an Abort_Defer / Abort_Undefer_Direct pair.
1644 -- Is_Accessibility_Actual (Flag13-Sem)
1645 -- Present in N_Parameter_Association nodes. True if the parameter is
1646 -- an extra actual that carries the accessibility level of the actual
1647 -- for an access parameter, in a function that dispatches on result and
1648 -- is called in a dispatching context. Used to prevent a formal/actual
1649 -- mismatch when the call is rewritten as a dispatching call.
1651 -- Is_Analyzed_Pragma (Flag5-Sem)
1652 -- Present in N_Pragma nodes. Set for delayed pragmas that require a two
1653 -- step analysis. The initial step is peformed by routine Analyze_Pragma
1654 -- and verifies the overall legality of the pragma. The second step takes
1655 -- place in the various Analyze_xxx_In_Decl_Part routines which perform
1656 -- full analysis. The flag prevents the reanalysis of a delayed pragma.
1658 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1659 -- A flag set in a Block_Statement node to indicate that it is the
1660 -- expansion of an asynchronous entry call. Such a block needs cleanup
1661 -- handler to assure that the call is cancelled.
1663 -- Is_Boolean_Aspect (Flag16-Sem)
1664 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1665 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1667 -- Is_Checked (Flag11-Sem)
1668 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1669 -- assertion aspect or pragma, or check pragma for an assertion, that
1670 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1671 -- is set (they cannot both be set), then this means that the status of
1672 -- the pragma has been checked at the appropriate point and should not
1673 -- be further modified (in some cases these flags are copied when a
1674 -- pragma is rewritten).
1676 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
1677 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1678 -- related to a checked Ghost entity or encloses a checked Ghost entity.
1679 -- This flag has no relation to Is_Checked.
1681 -- Is_Component_Left_Opnd (Flag13-Sem)
1682 -- Is_Component_Right_Opnd (Flag14-Sem)
1683 -- Present in concatenation nodes, to indicate that the corresponding
1684 -- operand is of the component type of the result. Used in resolving
1685 -- concatenation nodes in instances.
1687 -- Is_Controlling_Actual (Flag16-Sem)
1688 -- This flag is set on an expression that is a controlling argument in
1689 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1690 -- details of its use.
1692 -- Is_Declaration_Level_Node (Flag5-Sem)
1693 -- Present in call marker and instantiation nodes. Set when the constuct
1694 -- appears within the declarations of a block statement, an entry body,
1695 -- a subprogram body, or a task body. The flag aids the ABE Processing
1696 -- phase to catch certain forms of guaranteed ABEs.
1698 -- Is_Delayed_Aspect (Flag14-Sem)
1699 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1700 -- come from aspect specifications, where the evaluation of the aspect
1701 -- must be delayed to the freeze point. This flag is also set True in
1702 -- the corresponding N_Aspect_Specification node.
1704 -- Is_Disabled (Flag15-Sem)
1705 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1706 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1707 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1708 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1709 -- If this flag is set, the aspect or policy is not analyzed for semantic
1710 -- correctness, so any expressions etc will not be marked as analyzed.
1712 -- Is_Dispatching_Call (Flag6-Sem)
1713 -- Present in call marker nodes. Set when the related call which prompted
1714 -- the creation of the marker is dispatching.
1716 -- Is_Dynamic_Coextension (Flag18-Sem)
1717 -- Present in allocator nodes, to indicate that this is an allocator
1718 -- for an access discriminant of a dynamically allocated object. The
1719 -- coextension must be deallocated and finalized at the same time as
1720 -- the enclosing object.
1722 -- Is_Effective_Use_Clause (Flag1-Sem)
1723 -- Present in both N_Use_Type_Clause and N_Use_Package_Clause to indicate
1724 -- a use clause is "used" in the current source.
1726 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
1727 -- Present in the following nodes:
1729 -- assignment statement
1730 -- attribute reference
1731 -- call marker
1732 -- entry call statement
1733 -- expanded name
1734 -- function call
1735 -- function instantiation
1736 -- identifier
1737 -- package instantiation
1738 -- procedure call statement
1739 -- procedure instantiation
1740 -- requeue statement
1742 -- Set when the node appears within a context which allows the generation
1743 -- of run-time ABE checks. This flag detemines whether the ABE Processing
1744 -- phase generates conditional ABE checks and guaranteed ABE failures.
1746 -- Is_Elaboration_Code (Flag9-Sem)
1747 -- Present in assignment statements. Set for an assignment which updates
1748 -- the elaboration flag of a package or subprogram when the corresponding
1749 -- body is successfully elaborated.
1751 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
1752 -- Present in the following nodes:
1754 -- call marker
1755 -- entry call statement
1756 -- function call
1757 -- function instantiation
1758 -- package instantiation
1759 -- procedure call statement
1760 -- procedure instantiation
1761 -- requeue statement
1763 -- Set when the node appears within a context where elaboration warnings
1764 -- are enabled. This flag determines whether the ABE processing phase
1765 -- generates diagnostics on various elaboration issues.
1767 -- Is_Entry_Barrier_Function (Flag8-Sem)
1768 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1769 -- nodes which emulate the barrier function of a protected entry body.
1770 -- The flag is used when checking for incorrect use of Current_Task.
1772 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1773 -- This flag is set in an N_Function_Call node to indicate that the extra
1774 -- actuals to support a build-in-place style of call have been added to
1775 -- the call.
1777 -- Is_Expanded_Contract (Flag1-Sem)
1778 -- Present in N_Contract nodes. Set if the contract has already undergone
1779 -- expansion activities.
1781 -- Is_Finalization_Wrapper (Flag9-Sem)
1782 -- This flag is present in N_Block_Statement nodes. It is set when the
1783 -- block acts as a wrapper of a handled construct which has controlled
1784 -- objects. The wrapper prevents interference between exception handlers
1785 -- and At_End handlers.
1787 -- Is_Generic_Contract_Pragma (Flag2-Sem)
1788 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1789 -- a source construct, applies to a generic unit or its body, and denotes
1790 -- one of the following contract-related annotations:
1791 -- Abstract_State
1792 -- Contract_Cases
1793 -- Depends
1794 -- Extensions_Visible
1795 -- Global
1796 -- Initial_Condition
1797 -- Initializes
1798 -- Post
1799 -- Post_Class
1800 -- Postcondition
1801 -- Pre
1802 -- Pre_Class
1803 -- Precondition
1804 -- Refined_Depends
1805 -- Refined_Global
1806 -- Refined_Post
1807 -- Refined_State
1808 -- Test_Case
1810 -- Is_Ignored (Flag9-Sem)
1811 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1812 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1813 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1814 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1815 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1816 -- gives a policy for the aspect or pragma, then there are two cases. For
1817 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1818 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1819 -- ignored because of the absence of a -gnata switch. For any other
1820 -- aspects or pragmas, the flag is off. If this flag is set, the
1821 -- aspect/pragma is fully analyzed and checked for other syntactic
1822 -- and semantic errors, but it does not have any semantic effect.
1824 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
1825 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1826 -- related to an ignored Ghost entity or encloses ignored Ghost entity.
1827 -- This flag has no relation to Is_Ignored.
1829 -- Is_In_Discriminant_Check (Flag11-Sem)
1830 -- This flag is present in a selected component, and is used to indicate
1831 -- that the reference occurs within a discriminant check. The
1832 -- significance is that optimizations based on assuming that the
1833 -- discriminant check has a correct value cannot be performed in this
1834 -- case (or the discriminant check may be optimized away).
1836 -- Is_Inherited_Pragma (Flag4-Sem)
1837 -- This flag is set in an N_Pragma node that appears in a N_Contract node
1838 -- to indicate that the pragma has been inherited from a parent context.
1840 -- Is_Initialization_Block (Flag1-Sem)
1841 -- Defined in block nodes. Set when the block statement was created by
1842 -- the finalization machinery to wrap initialization statements. This
1843 -- flag aids the ABE Processing phase to suppress the diagnostics of
1844 -- finalization actions in initialization contexts.
1846 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
1847 -- Present in call markers and instantiations. Set when the elaboration
1848 -- or evaluation of the scenario results in a guaranteed ABE. The flag
1849 -- is used to suppress the instantiation of generic bodies because gigi
1850 -- cannot handle certain forms of premature instantiation, as well as to
1851 -- prevent the reexamination of the node by the ABE Processing phase.
1853 -- Is_Machine_Number (Flag11-Sem)
1854 -- This flag is set in an N_Real_Literal node to indicate that the value
1855 -- is a machine number. This avoids some unnecessary cases of converting
1856 -- real literals to machine numbers.
1858 -- Is_Null_Loop (Flag16-Sem)
1859 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1860 -- can be determined to be null at compile time. This is used to remove
1861 -- the loop entirely at expansion time.
1863 -- Is_Overloaded (Flag5-Sem)
1864 -- A flag present in all expression nodes. Used temporarily during
1865 -- overloading determination. The setting of this flag is not relevant
1866 -- once overloading analysis is complete.
1868 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1869 -- A flag present only in N_Op_Expon nodes. It is set when the
1870 -- exponentiation is of the form 2 ** N, where the type of N is an
1871 -- unsigned integral subtype whose size does not exceed the size of
1872 -- Standard_Integer (i.e. a type that can be safely converted to
1873 -- Natural), and the exponentiation appears as the right operand of an
1874 -- integer multiplication or an integer division where the dividend is
1875 -- unsigned. It is also required that overflow checking is off for both
1876 -- the exponentiation and the multiply/divide node. If this set of
1877 -- conditions holds, and the flag is set, then the division or
1878 -- multiplication can be (and is) converted to a shift.
1880 -- Is_Prefixed_Call (Flag17-Sem)
1881 -- This flag is set in a selected component within a generic unit, if
1882 -- it resolves to a prefixed call to a primitive operation. The flag
1883 -- is used to prevent accidental overloadings in an instance, when a
1884 -- primitive operation and a private record component may be homographs.
1886 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1887 -- A flag set in a Subprogram_Body block to indicate that it is the
1888 -- implementation of a protected subprogram. Such a body needs cleanup
1889 -- handler to make sure that the associated protected object is unlocked
1890 -- when the subprogram completes.
1892 -- Is_Qualified_Universal_Literal (Flag4-Sem)
1893 -- Present in N_Qualified_Expression nodes. Set when the qualification is
1894 -- converting a universal literal to a specific type. Such qualifiers aid
1895 -- the resolution of accidental overloading of binary or unary operators
1896 -- which may occur in instances.
1898 -- Is_Read (Flag1-Sem)
1899 -- Present in variable reference markers. Set when the original variable
1900 -- reference constitues a read of the variable.
1902 -- Is_Source_Call (Flag4-Sem)
1903 -- Present in call marker nodes. Set when the related call came from
1904 -- source.
1906 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
1907 -- Present in nodes which represent an elaboration scenario. Those are
1908 -- assignment statement, attribute reference, call marker, entry call
1909 -- statement, expanded name, function call, identifier, instantiation,
1910 -- procedure call statement, and requeue statement nodes. Set when the
1911 -- node appears within a context subject to SPARK_Mode On. This flag
1912 -- determines when the SPARK model of elaboration be activated by the
1913 -- ABE Processing phase.
1915 -- Is_Static_Coextension (Flag14-Sem)
1916 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1917 -- of an object allocated on the stack rather than the heap.
1919 -- Is_Static_Expression (Flag6-Sem)
1920 -- Indicates that an expression is a static expression according to the
1921 -- rules in (RM 4.9). Note that it is possible for this flag to be set
1922 -- when Raises_Constraint_Error is also set. In practice almost all cases
1923 -- where a static expression is required do not allow an expression which
1924 -- raises Constraint_Error, so almost always, callers should call the
1925 -- Is_Ok_Static_Expression routine instead of testing this flag. See
1926 -- spec of package Sem_Eval for full details on the use of this flag.
1928 -- Is_Subprogram_Descriptor (Flag16-Sem)
1929 -- Present in N_Object_Declaration, and set only for the object
1930 -- declaration generated for a subprogram descriptor in fast exception
1931 -- mode. See Exp_Ch11 for details of use.
1933 -- Is_Task_Allocation_Block (Flag6-Sem)
1934 -- A flag set in a Block_Statement node to indicate that it is the
1935 -- expansion of a task allocator, or the allocator of an object
1936 -- containing tasks. Such a block requires a cleanup handler to call
1937 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1938 -- allocated but not activated when the allocator completes abnormally.
1940 -- Is_Task_Body_Procedure (Flag1-Sem)
1941 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1942 -- nodes which emulate the body of a task unit.
1944 -- Is_Task_Master (Flag5-Sem)
1945 -- A flag set in a Subprogram_Body, Block_Statement, or Task_Body node to
1946 -- indicate that the construct is a task master (i.e. has declared tasks
1947 -- or declares an access to a task type).
1949 -- Is_Write (Flag2-Sem)
1950 -- Present in variable reference markers. Set when the original variable
1951 -- reference constitues a write of the variable.
1953 -- Itype (Node1-Sem)
1954 -- Used in N_Itype_Reference node to reference an itype for which it is
1955 -- important to ensure that it is defined. See description of this node
1956 -- for further details.
1958 -- Kill_Range_Check (Flag11-Sem)
1959 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1960 -- result should not be subjected to range checks. This is used for the
1961 -- implementation of Normalize_Scalars.
1963 -- Label_Construct (Node2-Sem)
1964 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1965 -- N_Block_Statement or N_Loop_Statement node to which the label
1966 -- declaration applies. This attribute is used both in the compiler and
1967 -- in the implementation of ASIS queries. The field is left empty for the
1968 -- special labels generated as part of expanding raise statements with a
1969 -- local exception handler.
1971 -- Library_Unit (Node4-Sem)
1972 -- In a stub node, Library_Unit points to the compilation unit node of
1973 -- the corresponding subunit.
1975 -- In a with clause node, Library_Unit points to the spec of the with'ed
1976 -- unit.
1978 -- In a compilation unit node, the usage depends on the unit type:
1980 -- For a library unit body, Library_Unit points to the compilation unit
1981 -- node of the corresponding spec, unless it's a subprogram body with
1982 -- Acts_As_Spec set, in which case it points to itself.
1984 -- For a spec, Library_Unit points to the compilation unit node of the
1985 -- corresponding body, if present. The body will be present if the spec
1986 -- is or contains generics that we needed to instantiate. Similarly, the
1987 -- body will be present if we needed it for inlining purposes. Thus, if
1988 -- we have a spec/body pair, both of which are present, they point to
1989 -- each other via Library_Unit.
1991 -- For a subunit, Library_Unit points to the compilation unit node of
1992 -- the parent body.
1993 -- ??? not (always) true, in (at least some, maybe all?) cases it points
1994 -- to the corresponding spec for the parent body.
1996 -- Note that this field is not used to hold the parent pointer for child
1997 -- unit (which might in any case need to use it for some other purpose as
1998 -- described above). Instead for a child unit, implicit with's are
1999 -- generated for all parents.
2001 -- Local_Raise_Statements (Elist1)
2002 -- This field is present in exception handler nodes. It is set to
2003 -- No_Elist in the normal case. If there is at least one raise statement
2004 -- which can potentially be handled as a local raise, then this field
2005 -- points to a list of raise nodes, which are calls to a routine to raise
2006 -- an exception. These are raise nodes which can be optimized into gotos
2007 -- if the handler turns out to meet the conditions which permit this
2008 -- transformation. Note that this does NOT include instances of the
2009 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
2010 -- handled by the back end (using the N_Push/N_Pop mechanism).
2012 -- Loop_Actions (List2-Sem)
2013 -- A list present in Component_Association nodes in array aggregates.
2014 -- Used to collect actions that must be executed within the loop because
2015 -- they may need to be evaluated anew each time through.
2017 -- Limited_View_Installed (Flag18-Sem)
2018 -- Present in With_Clauses and in package specifications. If set on
2019 -- with_clause, it indicates that this clause has created the current
2020 -- limited view of the designated package. On a package specification, it
2021 -- indicates that the limited view has already been created because the
2022 -- package is mentioned in a limited_with_clause in the closure of the
2023 -- unit being compiled.
2025 -- Local_Raise_Not_OK (Flag7-Sem)
2026 -- Present in N_Exception_Handler nodes. Set if the handler contains
2027 -- a construct (reraise statement, or call to subprogram in package
2028 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
2029 -- for a local raise (one that could otherwise be converted to a goto).
2031 -- Must_Be_Byte_Aligned (Flag14-Sem)
2032 -- This flag is present in N_Attribute_Reference nodes. It can be set
2033 -- only for the Address and Unrestricted_Access attributes. If set it
2034 -- means that the object for which the address/access is given must be on
2035 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
2036 -- of the object is to be made before taking the address (this copy is in
2037 -- the current scope on the stack frame). This is used for certain cases
2038 -- of code generated by the expander that passes parameters by address.
2040 -- The reason the copy is not made by the front end is that the back end
2041 -- has more information about type layout and may be able to (but is not
2042 -- guaranteed to) prevent making unnecessary copies.
2044 -- Must_Not_Freeze (Flag8-Sem)
2045 -- A flag present in all expression nodes. Normally expressions cause
2046 -- freezing as described in the RM. If this flag is set, then this is
2047 -- inhibited. This is used by the analyzer and expander to label nodes
2048 -- that are created by semantic analysis or expansion and which must not
2049 -- cause freezing even though they normally would. This flag is also
2050 -- present in an N_Subtype_Indication node, since we also use these in
2051 -- calls to Freeze_Expression.
2053 -- Next_Entity (Node2-Sem)
2054 -- Present in defining identifiers, defining character literals, and
2055 -- defining operator symbols (i.e. in all entities). The entities of a
2056 -- scope are chained, and this field is used as the forward pointer for
2057 -- this list. See Einfo for further details.
2059 -- Next_Exit_Statement (Node3-Sem)
2060 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
2061 -- chained (in reverse order of appearance) from the First_Exit_Statement
2062 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
2063 -- the next entry on this chain (Empty = end of list).
2065 -- Next_Implicit_With (Node3-Sem)
2066 -- Present in N_With_Clause. Part of a chain of with_clauses generated
2067 -- in rtsfind to indicate implicit dependencies on predefined units. Used
2068 -- to prevent multiple with_clauses for the same unit in a given context.
2069 -- A postorder traversal of the tree whose nodes are units and whose
2070 -- links are with_clauses defines the order in which CodePeer must
2071 -- examine a compiled unit and its full context. This ordering ensures
2072 -- that any subprogram call is examined after the subprogram declaration
2073 -- has been seen.
2075 -- Next_Named_Actual (Node4-Sem)
2076 -- Present in parameter association nodes. Set during semantic analysis
2077 -- to point to the next named parameter, where parameters are ordered by
2078 -- declaration order (as opposed to the actual order in the call, which
2079 -- may be different due to named associations). Not that this field
2080 -- points to the explicit actual parameter itself, not to the
2081 -- N_Parameter_Association node (its parent).
2083 -- Next_Pragma (Node1-Sem)
2084 -- Present in N_Pragma nodes. Used to create a linked list of pragma
2085 -- nodes. Currently used for two purposes:
2087 -- Create a list of linked Check_Policy pragmas. The head of this list
2088 -- is stored in Opt.Check_Policy_List (which has further details).
2090 -- Used by processing for Pre/Postcondition pragmas to store a list of
2091 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
2092 -- details).
2094 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
2095 -- the apply to the same construct. These are visible/private mode for
2096 -- a package spec and declarative/statement mode for package body.
2098 -- Next_Rep_Item (Node5-Sem)
2099 -- Present in pragma nodes, attribute definition nodes, enumeration rep
2100 -- clauses, record rep clauses, aspect specification nodes. Used to link
2101 -- representation items that apply to an entity. See full description of
2102 -- First_Rep_Item field in Einfo for further details.
2104 -- Next_Use_Clause (Node3-Sem)
2105 -- While use clauses are active during semantic processing, they are
2106 -- chained from the scope stack entry, using Next_Use_Clause as a link
2107 -- pointer, with Empty marking the end of the list. The head pointer is
2108 -- in the scope stack entry (First_Use_Clause). At the end of semantic
2109 -- processing (i.e. when Gigi sees the tree, the contents of this field
2110 -- is undefined and should not be read).
2112 -- No_Ctrl_Actions (Flag7-Sem)
2113 -- Present in N_Assignment_Statement to indicate that no Finalize nor
2114 -- Adjust should take place on this assignment even though the RHS is
2115 -- controlled. Also indicates that the primitive _assign should not be
2116 -- used for a tagged assignment. This is used in init procs and aggregate
2117 -- expansions where the generated assignments are initializations, not
2118 -- real assignments.
2120 -- No_Entities_Ref_In_Spec (Flag8-Sem)
2121 -- Present in N_With_Clause nodes. Set if the with clause is on the
2122 -- package or subprogram spec where the main unit is the corresponding
2123 -- body, and no entities of the with'ed unit are referenced by the spec
2124 -- (an entity may still be referenced in the body, so this flag is used
2125 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
2126 -- full details).
2128 -- No_Initialization (Flag13-Sem)
2129 -- Present in N_Object_Declaration and N_Allocator to indicate that the
2130 -- object must not be initialized (by Initialize or call to an init
2131 -- proc). This is needed for controlled aggregates. When the Object
2132 -- declaration has an expression, this flag means that this expression
2133 -- should not be taken into account (needed for in place initialization
2134 -- with aggregates, and for object with an address clause, which are
2135 -- initialized with an assignment at freeze time).
2137 -- No_Minimize_Eliminate (Flag17-Sem)
2138 -- This flag is present in membership operator nodes (N_In/N_Not_In).
2139 -- It is used to indicate that processing for extended overflow checking
2140 -- modes is not required (this is used to prevent infinite recursion).
2142 -- No_Side_Effect_Removal (Flag17-Sem)
2143 -- Present in N_Function_Call nodes. Set when a function call does not
2144 -- require side effect removal. This attribute suppresses the generation
2145 -- of a temporary to capture the result of the function which eventually
2146 -- replaces the function call.
2148 -- No_Truncation (Flag17-Sem)
2149 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
2150 -- only if the RM_Size of the source is greater than the RM_Size of the
2151 -- target for scalar operands. Normally in such a case we truncate some
2152 -- higher order bits of the source, and then sign/zero extend the result
2153 -- to form the output value. But if this flag is set, then we do not do
2154 -- any truncation, so for example, if an 8 bit input is converted to 5
2155 -- bit result which is in fact stored in 8 bits, then the high order
2156 -- three bits of the target result will be copied from the source. This
2157 -- is used for properly setting out of range values for use by pragmas
2158 -- Initialize_Scalars and Normalize_Scalars.
2160 -- Null_Excluding_Subtype (Flag16)
2161 -- Present in N_Access_To_Object_Definition. Indicates that the subtype
2162 -- indication carries a null-exclusion indicator, which is distinct from
2163 -- the null-exclusion indicator that may precede the access keyword.
2165 -- Original_Discriminant (Node2-Sem)
2166 -- Present in identifiers. Used in references to discriminants that
2167 -- appear in generic units. Because the names of the discriminants may be
2168 -- different in an instance, we use this field to recover the position of
2169 -- the discriminant in the original type, and replace it with the
2170 -- discriminant at the same position in the instantiated type.
2172 -- Original_Entity (Node2-Sem)
2173 -- Present in numeric literals. Used to denote the named number that has
2174 -- been constant-folded into the given literal. If literal is from
2175 -- source, or the result of some other constant-folding operation, then
2176 -- Original_Entity is empty. This field is needed to handle properly
2177 -- named numbers in generic units, where the Associated_Node field
2178 -- interferes with the Entity field, making it impossible to preserve the
2179 -- original entity at the point of instantiation (ASIS problem).
2181 -- Others_Discrete_Choices (List1-Sem)
2182 -- When a case statement or variant is analyzed, the semantic checks
2183 -- determine the actual list of choices that correspond to an others
2184 -- choice. This list is materialized for later use by the expander and
2185 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
2186 -- this materialized list of choices, which is in standard format for a
2187 -- list of discrete choices, except that of course it cannot contain an
2188 -- N_Others_Choice entry.
2190 -- Parent_Spec (Node4-Sem)
2191 -- For a library unit that is a child unit spec (package or subprogram
2192 -- declaration, generic declaration or instantiation, or library level
2193 -- rename) this field points to the compilation unit node for the parent
2194 -- package specification. This field is Empty for library bodies (the
2195 -- parent spec in this case can be found from the corresponding spec).
2197 -- Premature_Use (Node5-Sem)
2198 -- Present in N_Incomplete_Type_Declaration node. Used for improved
2199 -- error diagnostics: if there is a premature usage of an incomplete
2200 -- type, a subsequently generated error message indicates the position
2201 -- of its full declaration.
2203 -- Present_Expr (Uint3-Sem)
2204 -- Present in an N_Variant node. This has a meaningful value only after
2205 -- Gigi has back annotated the tree with representation information. At
2206 -- this point, it contains a reference to a gcc expression that depends
2207 -- on the values of one or more discriminants. Give a set of discriminant
2208 -- values, this expression evaluates to False (zero) if variant is not
2209 -- present, and True (non-zero) if it is present. See unit Repinfo for
2210 -- further details on gigi back annotation. This field is used during
2211 -- ASIS processing (data decomposition annex) to determine if a field is
2212 -- present or not.
2214 -- Prev_Use_Clause (Node1-Sem)
2215 -- Present in both N_Use_Package_Clause and N_Use_Type_Clause. Used in
2216 -- detection of ineffective use clauses by allowing a chain of related
2217 -- clauses together to avoid traversing the current scope stack.
2219 -- Print_In_Hex (Flag13-Sem)
2220 -- Set on an N_Integer_Literal node to indicate that the value should be
2221 -- printed in hexadecimal in the sprint listing. Has no effect on
2222 -- legality or semantics of program, only on the displayed output. This
2223 -- is used to clarify output from the packed array cases.
2225 -- Procedure_To_Call (Node2-Sem)
2226 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2227 -- and N_Extended_Return_Statement nodes. References the entity for the
2228 -- declaration of the procedure to be called to accomplish the required
2229 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
2230 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
2231 -- allocating the return value), and for the Deallocate procedure in the
2232 -- case of N_Free_Statement.
2234 -- Raises_Constraint_Error (Flag7-Sem)
2235 -- Set on an expression whose evaluation will definitely fail constraint
2236 -- error check. In the case of static expressions, this flag must be set
2237 -- accurately (and if it is set, the expression is typically illegal
2238 -- unless it appears as a non-elaborated branch of a short-circuit form).
2239 -- For a non-static expression, this flag may be set whenever an
2240 -- expression (e.g. an aggregate) is known to raise constraint error. If
2241 -- set, the expression definitely will raise CE if elaborated at runtime.
2242 -- If not set, the expression may or may not raise CE. In other words, on
2243 -- static expressions, the flag is set accurately, on non-static
2244 -- expressions it is set conservatively.
2246 -- Redundant_Use (Flag13-Sem)
2247 -- Present in nodes that can appear as an operand in a use clause or use
2248 -- type clause (identifiers, expanded names, attribute references). Set
2249 -- to indicate that a use is redundant (and therefore need not be undone
2250 -- on scope exit).
2252 -- Renaming_Exception (Node2-Sem)
2253 -- Present in N_Exception_Declaration node. Used to point back to the
2254 -- exception renaming for an exception declared within a subprogram.
2255 -- What happens is that an exception declared in a subprogram is moved
2256 -- to the library level with a unique name, and the original exception
2257 -- becomes a renaming. This link from the library level exception to the
2258 -- renaming declaration allows registering of the proper exception name.
2260 -- Return_Statement_Entity (Node5-Sem)
2261 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
2262 -- Points to an E_Return_Statement representing the return statement.
2264 -- Return_Object_Declarations (List3)
2265 -- Present in N_Extended_Return_Statement. Points to a list initially
2266 -- containing a single N_Object_Declaration representing the return
2267 -- object. We use a list (instead of just a pointer to the object decl)
2268 -- because Analyze wants to insert extra actions on this list.
2270 -- Rounded_Result (Flag18-Sem)
2271 -- Present in N_Type_Conversion, N_Op_Divide, and N_Op_Multiply nodes.
2272 -- Used in the fixed-point cases to indicate that the result must be
2273 -- rounded as a result of the use of the 'Round attribute. Also used for
2274 -- integer N_Op_Divide nodes to indicate that the result should be
2275 -- rounded to the nearest integer (breaking ties away from zero), rather
2276 -- than truncated towards zero as usual. These rounded integer operations
2277 -- are the result of expansion of rounded fixed-point divide, conversion
2278 -- and multiplication operations.
2280 -- SCIL_Entity (Node4-Sem)
2281 -- Present in SCIL nodes. References the specific tagged type associated
2282 -- with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
2283 -- the controlling type of the call; for an N_SCIL_Membership_Test node
2284 -- generated as part of testing membership in T'Class, this is T; for an
2285 -- N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
2287 -- SCIL_Controlling_Tag (Node5-Sem)
2288 -- Present in N_SCIL_Dispatching_Call nodes. References the controlling
2289 -- tag of a dispatching call. This is usually an N_Selected_Component
2290 -- node (for a _tag component), but may be an N_Object_Declaration or
2291 -- N_Parameter_Specification node in some cases (e.g., for a call to
2292 -- a classwide streaming operation or a call to an instance of
2293 -- Ada.Tags.Generic_Dispatching_Constructor).
2295 -- SCIL_Tag_Value (Node5-Sem)
2296 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
2297 -- of the value that is being tested.
2299 -- SCIL_Target_Prim (Node2-Sem)
2300 -- Present in N_SCIL_Dispatching_Call nodes. References the primitive
2301 -- operation named (statically) in a dispatching call.
2303 -- Scope (Node3-Sem)
2304 -- Present in defining identifiers, defining character literals, and
2305 -- defining operator symbols (i.e. in all entities). The entities of a
2306 -- scope all use this field to reference the corresponding scope entity.
2307 -- See Einfo for further details.
2309 -- Shift_Count_OK (Flag4-Sem)
2310 -- A flag present in shift nodes to indicate that the shift count is
2311 -- known to be in range, i.e. is in the range from zero to word length
2312 -- minus one. If this flag is not set, then the shift count may be
2313 -- outside this range, i.e. larger than the word length, and the code
2314 -- must ensure that such shift counts give the appropriate result.
2316 -- Source_Type (Node1-Sem)
2317 -- Used in an N_Validate_Unchecked_Conversion node to point to the
2318 -- source type entity for the unchecked conversion instantiation
2319 -- which gigi must do size validation for.
2321 -- Split_PPC (Flag17)
2322 -- When a Pre or Post aspect specification is processed, it is broken
2323 -- into AND THEN sections. The left most section has Split_PPC set to
2324 -- False, indicating that it is the original specification (e.g. for
2325 -- posting errors). For other sections, Split_PPC is set to True.
2326 -- This flag is set in both the N_Aspect_Specification node itself,
2327 -- and in the pragma which is generated from this node.
2329 -- Storage_Pool (Node1-Sem)
2330 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2331 -- and N_Extended_Return_Statement nodes. References the entity for the
2332 -- storage pool to be used for the allocate or free call or for the
2333 -- allocation of the returned value from function. Empty indicates that
2334 -- the global default pool is to be used. Note that in the case
2335 -- of a return statement, this field is set only if the function returns
2336 -- value of a type whose size is not known at compile time on the
2337 -- secondary stack.
2339 -- Suppress_Assignment_Checks (Flag18-Sem)
2340 -- Used in generated N_Assignment_Statement nodes to suppress predicate
2341 -- and range checks in cases where the generated code knows that the
2342 -- value being assigned is in range and satisfies any predicate. Also
2343 -- can be set in N_Object_Declaration nodes, to similarly suppress any
2344 -- checks on the initializing value. In assignment statements it also
2345 -- suppresses access checks in the generated code for out- and in-out
2346 -- parameters in entry calls.
2348 -- Suppress_Loop_Warnings (Flag17-Sem)
2349 -- Used in N_Loop_Statement node to indicate that warnings within the
2350 -- body of the loop should be suppressed. This is set when the range
2351 -- of a FOR loop is known to be null, or is probably null (loop would
2352 -- only execute if invalid values are present).
2354 -- Target (Node1-Sem)
2355 -- Present in call and variable reference marker nodes. References the
2356 -- entity of the original entity, operator, or subprogram being invoked,
2357 -- or the original variable being read or written.
2359 -- Target_Type (Node2-Sem)
2360 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
2361 -- type entity for the unchecked conversion instantiation which gigi must
2362 -- do size validation for.
2364 -- Then_Actions (List3-Sem)
2365 -- This field is present in if expression nodes. During code expansion
2366 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
2367 -- at an appropriate place in the tree to get elaborated at the right
2368 -- time. For if expressions, we have to be sure that the actions for
2369 -- for the Then branch are only elaborated if the condition is True.
2370 -- The Then_Actions field is used as a temporary parking place for
2371 -- these actions. The final tree is always rewritten to eliminate the
2372 -- need for this field, so in the tree passed to Gigi, this field is
2373 -- always set to No_List.
2375 -- Treat_Fixed_As_Integer (Flag14-Sem)
2376 -- This flag appears in operator nodes for divide, multiply, mod, and rem
2377 -- on fixed-point operands. It indicates that the operands are to be
2378 -- treated as integer values, ignoring small values. This flag is only
2379 -- set as a result of expansion of fixed-point operations. Typically a
2380 -- fixed-point multiplication in the source generates subsidiary
2381 -- multiplication and division operations that work with the underlying
2382 -- integer values and have this flag set. Note that this flag is not
2383 -- needed on other arithmetic operations (add, neg, subtract etc.) since
2384 -- in these cases it is always the case that fixed is treated as integer.
2385 -- The Etype field MUST be set if this flag is set. The analyzer knows to
2386 -- leave such nodes alone, and whoever makes them must set the correct
2387 -- Etype value.
2389 -- TSS_Elist (Elist3-Sem)
2390 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2391 -- entries for each TSS (type support subprogram) associated with the
2392 -- frozen type. The elements of the list are the entities for the
2393 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2394 -- if there are no type support subprograms for the type or if the freeze
2395 -- node is not for a type.
2397 -- Uneval_Old_Accept (Flag7-Sem)
2398 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'A'
2399 -- (accept) at the point where the pragma is encountered (including the
2400 -- case of a pragma generated from an aspect specification). It is this
2401 -- setting that is relevant, rather than the setting at the point where
2402 -- a contract is finally analyzed after the delay till the freeze point.
2404 -- Uneval_Old_Warn (Flag18-Sem)
2405 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'W'
2406 -- (warn) at the point where the pragma is encountered (including the
2407 -- case of a pragma generated from an aspect specification). It is this
2408 -- setting that is relevant, rather than the setting at the point where
2409 -- a contract is finally analyzed after the delay till the freeze point.
2411 -- Unreferenced_In_Spec (Flag7-Sem)
2412 -- Present in N_With_Clause nodes. Set if the with clause is on the
2413 -- package or subprogram spec where the main unit is the corresponding
2414 -- body, and is not referenced by the spec (it may still be referenced by
2415 -- the body, so this flag is used to generate the proper message (see
2416 -- Sem_Util.Check_Unused_Withs for details)
2418 -- Uninitialized_Variable (Node3-Sem)
2419 -- Present in N_Formal_Private_Type_Definition and in N_Private_
2420 -- Extension_Declarations. Indicates that a variable in a generic unit
2421 -- whose type is a formal private or derived type is read without being
2422 -- initialized. Used to warn if the corresponding actual type is not
2423 -- a fully initialized type.
2425 -- Used_Operations (Elist2-Sem)
2426 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2427 -- are made potentially use-visible by the clause. Simplifies processing
2428 -- on exit from the scope of the use_type_clause, in particular in the
2429 -- case of Use_All_Type, when those operations several scopes.
2431 -- Was_Attribute_Reference (Flag2-Sem)
2432 -- Present in N_Subprogram_Body. Set to True if the original source is an
2433 -- attribute reference which is an actual in a generic instantiation. The
2434 -- instantiation prologue renames these attributes, and expansion later
2435 -- converts them into subprogram bodies.
2437 -- Was_Expression_Function (Flag18-Sem)
2438 -- Present in N_Subprogram_Body. True if the original source had an
2439 -- N_Expression_Function, which was converted to the N_Subprogram_Body
2440 -- by Analyze_Expression_Function. This is needed by ASIS to correctly
2441 -- recreate the expression function (for the instance body) when the
2442 -- completion of a generic function declaration is an expression
2443 -- function.
2445 -- Was_Originally_Stub (Flag13-Sem)
2446 -- This flag is set in the node for a proper body that replaces stub.
2447 -- During the analysis procedure, stubs in some situations get rewritten
2448 -- by the corresponding bodies, and we set this flag to remember that
2449 -- this happened. Note that it is not good enough to rely on the use of
2450 -- Original_Node here because of the case of nested instantiations where
2451 -- the substituted node can be copied.
2453 -- Withed_Body (Node1-Sem)
2454 -- Present in N_With_Clause nodes. Set if the unit in whose context
2455 -- the with_clause appears instantiates a generic contained in the
2456 -- library unit of the with_clause and as a result loads its body.
2457 -- Used for a more precise unit traversal for CodePeer.
2459 --------------------------------------------------
2460 -- Note on Use of End_Label and End_Span Fields --
2461 --------------------------------------------------
2463 -- Several constructs have end lines:
2465 -- Loop Statement end loop [loop_IDENTIFIER];
2466 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2467 -- Task Definition end [task_IDENTIFIER]
2468 -- Protected Definition end [protected_IDENTIFIER]
2469 -- Protected Body end [protected_IDENTIFIER]
2471 -- Block Statement end [block_IDENTIFIER];
2472 -- Subprogram Body end [DESIGNATOR];
2473 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2474 -- Task Body end [task_IDENTIFIER];
2475 -- Accept Statement end [entry_IDENTIFIER]];
2476 -- Entry Body end [entry_IDENTIFIER];
2478 -- If Statement end if;
2479 -- Case Statement end case;
2481 -- Record Definition end record;
2482 -- Enumeration Definition );
2484 -- The End_Label and End_Span fields are used to mark the locations of
2485 -- these lines, and also keep track of the label in the case where a label
2486 -- is present.
2488 -- For the first group above, the End_Label field of the corresponding node
2489 -- is used to point to the label identifier. In the case where there is no
2490 -- label in the source, the parser supplies a dummy identifier (with
2491 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2492 -- marks the location of the token following the END token.
2494 -- For the second group, the use of End_Label is similar, but the End_Label
2495 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2496 -- simply because in some cases there is no room in the parent node.
2498 -- For the third group, there is never any label, and instead of using
2499 -- End_Label, we use the End_Span field which gives the location of the
2500 -- token following END, relative to the starting Sloc of the construct,
2501 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2502 -- following the End_Label.
2504 -- The record definition case is handled specially, we treat it as though
2505 -- it required an optional label which is never present, and so the parser
2506 -- always builds a dummy identifier with Comes From Source set False. The
2507 -- reason we do this, rather than using End_Span in this case, is that we
2508 -- want to generate a cross-ref entry for the end of a record, since it
2509 -- represents a scope for name declaration purposes.
2511 -- The enumeration definition case is handled in an exactly similar manner,
2512 -- building a dummy identifier to get a cross-reference.
2514 -- Note: the reason we store the difference as a Uint, instead of storing
2515 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2516 -- distinguished from other types of values, and we count on all general
2517 -- use fields being self describing. To make things easier for clients,
2518 -- note that we provide function End_Location, and procedure
2519 -- Set_End_Location to allow access to the logical value (which is the
2520 -- Source_Ptr value for the end token).
2522 ---------------------
2523 -- Syntactic Nodes --
2524 ---------------------
2526 ---------------------
2527 -- 2.3 Identifier --
2528 ---------------------
2530 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2531 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2533 -- An IDENTIFIER shall not be a reserved word
2535 -- In the Ada grammar identifiers are the bottom level tokens which have
2536 -- very few semantics. Actual program identifiers are direct names. If
2537 -- we were being 100% honest with the grammar, then we would have a node
2538 -- called N_Direct_Name which would point to an identifier. However,
2539 -- that's too many extra nodes, so we just use the N_Identifier node
2540 -- directly as a direct name, and it contains the expression fields and
2541 -- Entity field that correspond to its use as a direct name. In those
2542 -- few cases where identifiers appear in contexts where they are not
2543 -- direct names (pragmas, pragma argument associations, attribute
2544 -- references and attribute definition clauses), the Chars field of the
2545 -- node contains the Name_Id for the identifier name.
2547 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2548 -- cases. First, an incorrect use of a reserved word as an identifier is
2549 -- diagnosed and then treated as a normal identifier. Second, an
2550 -- attribute designator of the form of a reserved word (access, delta,
2551 -- digits, range) is treated as an identifier.
2553 -- Note: The set of letters that is permitted in an identifier depends
2554 -- on the character set in use. See package Csets for full details.
2556 -- N_Identifier
2557 -- Sloc points to identifier
2558 -- Chars (Name1) contains the Name_Id for the identifier
2559 -- Entity (Node4-Sem)
2560 -- Associated_Node (Node4-Sem)
2561 -- Original_Discriminant (Node2-Sem)
2562 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
2563 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
2564 -- Has_Private_View (Flag11-Sem) (set in generic units)
2565 -- Redundant_Use (Flag13-Sem)
2566 -- Atomic_Sync_Required (Flag14-Sem)
2567 -- plus fields for expression
2569 --------------------------
2570 -- 2.4 Numeric Literal --
2571 --------------------------
2573 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2575 ----------------------------
2576 -- 2.4.1 Decimal Literal --
2577 ----------------------------
2579 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2581 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2583 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2585 -- Decimal literals appear in the tree as either integer literal nodes
2586 -- or real literal nodes, depending on whether a period is present.
2588 -- Note: literal nodes appear as a result of direct use of literals
2589 -- in the source program, and also as the result of evaluating
2590 -- expressions at compile time. In the latter case, it is possible
2591 -- to construct real literals that have no syntactic representation
2592 -- using the standard literal format. Such literals are listed by
2593 -- Sprint using the notation [numerator / denominator].
2595 -- Note: the value of an integer literal node created by the front end
2596 -- is never outside the range of values of the base type. However, it
2597 -- can be the case that the created value is outside the range of the
2598 -- particular subtype. This happens in the case of integer overflows
2599 -- with checks suppressed.
2601 -- N_Integer_Literal
2602 -- Sloc points to literal
2603 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2604 -- has been constant-folded into its literal value.
2605 -- Intval (Uint3) contains integer value of literal
2606 -- Print_In_Hex (Flag13-Sem)
2607 -- plus fields for expression
2609 -- N_Real_Literal
2610 -- Sloc points to literal
2611 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2612 -- has been constant-folded into its literal value.
2613 -- Realval (Ureal3) contains real value of literal
2614 -- Corresponding_Integer_Value (Uint4-Sem)
2615 -- Is_Machine_Number (Flag11-Sem)
2616 -- plus fields for expression
2618 --------------------------
2619 -- 2.4.2 Based Literal --
2620 --------------------------
2622 -- BASED_LITERAL ::=
2623 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2625 -- BASE ::= NUMERAL
2627 -- BASED_NUMERAL ::=
2628 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2630 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2632 -- Based literals appear in the tree as either integer literal nodes
2633 -- or real literal nodes, depending on whether a period is present.
2635 ----------------------------
2636 -- 2.5 Character Literal --
2637 ----------------------------
2639 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2641 -- N_Character_Literal
2642 -- Sloc points to literal
2643 -- Chars (Name1) contains the Name_Id for the identifier
2644 -- Char_Literal_Value (Uint2) contains the literal value
2645 -- Entity (Node4-Sem)
2646 -- Associated_Node (Node4-Sem)
2647 -- Has_Private_View (Flag11-Sem) set in generic units.
2648 -- plus fields for expression
2650 -- Note: the Entity field will be missing (set to Empty) for character
2651 -- literals whose type is Standard.Wide_Character or Standard.Character
2652 -- or a type derived from one of these two. In this case the character
2653 -- literal stands for its own coding. The reason we take this irregular
2654 -- short cut is to avoid the need to build lots of junk defining
2655 -- character literal nodes.
2657 -------------------------
2658 -- 2.6 String Literal --
2659 -------------------------
2661 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2663 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2664 -- single GRAPHIC_CHARACTER other than a quotation mark.
2666 -- Is_Folded_In_Parser is True if the parser created this literal by
2667 -- folding a sequence of "&" operators. For example, if the source code
2668 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2669 -- is set. This flag is needed because the parser doesn't know about
2670 -- visibility, so the folded result might be wrong, and semantic
2671 -- analysis needs to check for that.
2673 -- N_String_Literal
2674 -- Sloc points to literal
2675 -- Strval (Str3) contains Id of string value
2676 -- Has_Wide_Character (Flag11-Sem)
2677 -- Has_Wide_Wide_Character (Flag13-Sem)
2678 -- Is_Folded_In_Parser (Flag4)
2679 -- plus fields for expression
2681 ------------------
2682 -- 2.7 Comment --
2683 ------------------
2685 -- A COMMENT starts with two adjacent hyphens and extends up to the
2686 -- end of the line. A COMMENT may appear on any line of a program.
2688 -- Comments are skipped by the scanner and do not appear in the tree.
2689 -- It is possible to reconstruct the position of comments with respect
2690 -- to the elements of the tree by using the source position (Sloc)
2691 -- pointers that appear in every tree node.
2693 -----------------
2694 -- 2.8 Pragma --
2695 -----------------
2697 -- PRAGMA ::= pragma IDENTIFIER
2698 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2700 -- Note that a pragma may appear in the tree anywhere a declaration
2701 -- or a statement may appear, as well as in some other situations
2702 -- which are explicitly documented.
2704 -- N_Pragma
2705 -- Sloc points to PRAGMA
2706 -- Next_Pragma (Node1-Sem)
2707 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2708 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2709 -- Pragma_Identifier (Node4)
2710 -- Next_Rep_Item (Node5-Sem)
2711 -- Is_Generic_Contract_Pragma (Flag2-Sem)
2712 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
2713 -- Is_Inherited_Pragma (Flag4-Sem)
2714 -- Is_Analyzed_Pragma (Flag5-Sem)
2715 -- Class_Present (Flag6) set if from Aspect with 'Class
2716 -- Uneval_Old_Accept (Flag7-Sem)
2717 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
2718 -- Is_Ignored (Flag9-Sem)
2719 -- Is_Checked (Flag11-Sem)
2720 -- From_Aspect_Specification (Flag13-Sem)
2721 -- Is_Delayed_Aspect (Flag14-Sem)
2722 -- Is_Disabled (Flag15-Sem)
2723 -- Import_Interface_Present (Flag16-Sem)
2724 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2725 -- Uneval_Old_Warn (Flag18-Sem)
2727 -- Note: we should have a section on what pragmas are passed on to
2728 -- the back end to be processed. This section should note that pragma
2729 -- Psect_Object is always converted to Common_Object, but there are
2730 -- undoubtedly many other similar notes required ???
2732 -- Note: utility functions Pragma_Name_Unmapped and Pragma_Name may be
2733 -- applied to pragma nodes to obtain the Chars or its mapped version.
2735 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2736 -- aspect name, as does the Pragma_Identifier. In this case if the
2737 -- pragma has a local name argument (such as pragma Inline), it is
2738 -- resolved to point to the specific entity affected by the pragma.
2740 --------------------------------------
2741 -- 2.8 Pragma Argument Association --
2742 --------------------------------------
2744 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2745 -- [pragma_argument_IDENTIFIER =>] NAME
2746 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2748 -- In Ada 2012, there are two more possibilities:
2750 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2751 -- [pragma_argument_ASPECT_MARK =>] NAME
2752 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2754 -- where the interesting allowed cases (which do not fit the syntax of
2755 -- the first alternative above) are
2757 -- ASPECT_MARK => Pre'Class |
2758 -- Post'Class |
2759 -- Type_Invariant'Class |
2760 -- Invariant'Class
2762 -- We allow this special usage in all Ada modes, but it would be a
2763 -- pain to allow these aspects to pervade the pragma syntax, and the
2764 -- representation of pragma nodes internally. So what we do is to
2765 -- replace these ASPECT_MARK forms with identifiers whose name is one
2766 -- of the special internal names _Pre, _Post, or _Type_Invariant.
2768 -- We do a similar replacement of these Aspect_Mark forms in the
2769 -- Expression of a pragma argument association for the cases of
2770 -- the first arguments of any Check pragmas and Check_Policy pragmas
2772 -- N_Pragma_Argument_Association
2773 -- Sloc points to first token in association
2774 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2775 -- Expression_Copy (Node2-Sem)
2776 -- Expression (Node3)
2778 ------------------------
2779 -- 2.9 Reserved Word --
2780 ------------------------
2782 -- Reserved words are parsed by the scanner, and returned as the
2783 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2785 ----------------------------
2786 -- 3.1 Basic Declaration --
2787 ----------------------------
2789 -- BASIC_DECLARATION ::=
2790 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2791 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2792 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2793 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2794 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2795 -- | GENERIC_INSTANTIATION
2797 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2798 -- see further description in section on semantic nodes.
2800 -- Also, in the tree that is constructed, a pragma may appear
2801 -- anywhere that a declaration may appear.
2803 ------------------------------
2804 -- 3.1 Defining Identifier --
2805 ------------------------------
2807 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2809 -- A defining identifier is an entity, which has additional fields
2810 -- depending on the setting of the Ekind field. These additional
2811 -- fields are defined (and access subprograms declared) in package
2812 -- Einfo.
2814 -- Note: N_Defining_Identifier is an extended node whose fields are
2815 -- deliberate layed out to match the layout of fields in an ordinary
2816 -- N_Identifier node allowing for easy alteration of an identifier
2817 -- node into a defining identifier node. For details, see procedure
2818 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2820 -- N_Defining_Identifier
2821 -- Sloc points to identifier
2822 -- Chars (Name1) contains the Name_Id for the identifier
2823 -- Next_Entity (Node2-Sem)
2824 -- Scope (Node3-Sem)
2825 -- Etype (Node5-Sem)
2827 -----------------------------
2828 -- 3.2.1 Type Declaration --
2829 -----------------------------
2831 -- TYPE_DECLARATION ::=
2832 -- FULL_TYPE_DECLARATION
2833 -- | INCOMPLETE_TYPE_DECLARATION
2834 -- | PRIVATE_TYPE_DECLARATION
2835 -- | PRIVATE_EXTENSION_DECLARATION
2837 ----------------------------------
2838 -- 3.2.1 Full Type Declaration --
2839 ----------------------------------
2841 -- FULL_TYPE_DECLARATION ::=
2842 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2843 -- is TYPE_DEFINITION
2844 -- [ASPECT_SPECIFICATIONS];
2845 -- | TASK_TYPE_DECLARATION
2846 -- | PROTECTED_TYPE_DECLARATION
2848 -- The full type declaration node is used only for the first case. The
2849 -- second case (concurrent type declaration), is represented directly
2850 -- by a task type declaration or a protected type declaration.
2852 -- N_Full_Type_Declaration
2853 -- Sloc points to TYPE
2854 -- Defining_Identifier (Node1)
2855 -- Incomplete_View (Node2-Sem)
2856 -- Discriminant_Specifications (List4) (set to No_List if none)
2857 -- Type_Definition (Node3)
2858 -- Discr_Check_Funcs_Built (Flag11-Sem)
2860 ----------------------------
2861 -- 3.2.1 Type Definition --
2862 ----------------------------
2864 -- TYPE_DEFINITION ::=
2865 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2866 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2867 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2868 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2870 --------------------------------
2871 -- 3.2.2 Subtype Declaration --
2872 --------------------------------
2874 -- SUBTYPE_DECLARATION ::=
2875 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2876 -- [ASPECT_SPECIFICATIONS];
2878 -- The subtype indication field is set to Empty for subtypes
2879 -- declared in package Standard (Positive, Natural).
2881 -- N_Subtype_Declaration
2882 -- Sloc points to SUBTYPE
2883 -- Defining_Identifier (Node1)
2884 -- Null_Exclusion_Present (Flag11)
2885 -- Subtype_Indication (Node5)
2886 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2887 -- Exception_Junk (Flag8-Sem)
2888 -- Has_Dynamic_Range_Check (Flag12-Sem)
2890 -------------------------------
2891 -- 3.2.2 Subtype Indication --
2892 -------------------------------
2894 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2896 -- Note: if no constraint is present, the subtype indication appears
2897 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2898 -- node is used only if a constraint is present.
2900 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2901 -- with the null-exclusion part (see AI-231), we had to introduce a new
2902 -- attribute in all the parents of subtype_indication nodes to indicate
2903 -- if the null-exclusion is present.
2905 -- Note: the reason that this node has expression fields is that a
2906 -- subtype indication can appear as an operand of a membership test.
2908 -- N_Subtype_Indication
2909 -- Sloc points to first token of subtype mark
2910 -- Subtype_Mark (Node4)
2911 -- Constraint (Node3)
2912 -- Etype (Node5-Sem)
2913 -- Must_Not_Freeze (Flag8-Sem)
2915 -- Note: Depending on context, the Etype is either the entity of the
2916 -- Subtype_Mark field, or it is an itype constructed to reify the
2917 -- subtype indication. In particular, such itypes are created for a
2918 -- subtype indication that appears in an array type declaration. This
2919 -- simplifies constraint checking in indexed components.
2921 -- For subtype indications that appear in scalar type and subtype
2922 -- declarations, the Etype is the entity of the subtype mark.
2924 -------------------------
2925 -- 3.2.2 Subtype Mark --
2926 -------------------------
2928 -- SUBTYPE_MARK ::= subtype_NAME
2930 -----------------------
2931 -- 3.2.2 Constraint --
2932 -----------------------
2934 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2936 ------------------------------
2937 -- 3.2.2 Scalar Constraint --
2938 ------------------------------
2940 -- SCALAR_CONSTRAINT ::=
2941 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2943 ---------------------------------
2944 -- 3.2.2 Composite Constraint --
2945 ---------------------------------
2947 -- COMPOSITE_CONSTRAINT ::=
2948 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2950 -------------------------------
2951 -- 3.3.1 Object Declaration --
2952 -------------------------------
2954 -- OBJECT_DECLARATION ::=
2955 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2956 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2957 -- [ASPECT_SPECIFICATIONS];
2958 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2959 -- ACCESS_DEFINITION [:= EXPRESSION]
2960 -- [ASPECT_SPECIFICATIONS];
2961 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2962 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2963 -- [ASPECT_SPECIFICATIONS];
2964 -- | SINGLE_TASK_DECLARATION
2965 -- | SINGLE_PROTECTED_DECLARATION
2967 -- Note: aliased is not permitted in Ada 83 mode
2969 -- The N_Object_Declaration node is only for the first three cases.
2970 -- Single task declaration is handled by P_Task (9.1)
2971 -- Single protected declaration is handled by P_protected (9.5)
2973 -- Although the syntax allows multiple identifiers in the list, the
2974 -- semantics is as though successive declarations were given with
2975 -- identical type definition and expression components. To simplify
2976 -- semantic processing, the parser represents a multiple declaration
2977 -- case as a sequence of single declarations, using the More_Ids and
2978 -- Prev_Ids flags to preserve the original source form as described
2979 -- in the section on "Handling of Defining Identifier Lists".
2981 -- The flag Has_Init_Expression is set if an initializing expression
2982 -- is present. Normally it is set if and only if Expression contains
2983 -- a non-empty value, but there is an exception to this. When the
2984 -- initializing expression is an aggregate which requires explicit
2985 -- assignments, the Expression field gets set to Empty, but this flag
2986 -- is still set, so we don't forget we had an initializing expression.
2988 -- Note: if a range check is required for the initialization
2989 -- expression then the Do_Range_Check flag is set in the Expression,
2990 -- with the check being done against the type given by the object
2991 -- definition, which is also the Etype of the defining identifier.
2993 -- Note: the contents of the Expression field must be ignored (i.e.
2994 -- treated as though it were Empty) if No_Initialization is set True.
2996 -- Note: the back end places some restrictions on the form of the
2997 -- Expression field. If the object being declared is Atomic, then
2998 -- the Expression may not have the form of an aggregate (since this
2999 -- might cause the back end to generate separate assignments). In this
3000 -- case the front end must generate an extra temporary and initialize
3001 -- this temporary as required (the temporary itself is not atomic).
3003 -- Note: there is no node kind for object definition. Instead, the
3004 -- corresponding field holds a subtype indication, an array type
3005 -- definition, or (Ada 2005, AI-406) an access definition.
3007 -- N_Object_Declaration
3008 -- Sloc points to first identifier
3009 -- Defining_Identifier (Node1)
3010 -- Aliased_Present (Flag4)
3011 -- Constant_Present (Flag17) set if CONSTANT appears
3012 -- Null_Exclusion_Present (Flag11)
3013 -- Object_Definition (Node4) subtype indic./array type def./access def.
3014 -- Expression (Node3) (set to Empty if not present)
3015 -- Handler_List_Entry (Node2-Sem)
3016 -- Corresponding_Generic_Association (Node5-Sem)
3017 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3018 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3019 -- No_Initialization (Flag13-Sem)
3020 -- Assignment_OK (Flag15-Sem)
3021 -- Exception_Junk (Flag8-Sem)
3022 -- Is_Subprogram_Descriptor (Flag16-Sem)
3023 -- Has_Init_Expression (Flag14)
3024 -- Suppress_Assignment_Checks (Flag18-Sem)
3026 -------------------------------------
3027 -- 3.3.1 Defining Identifier List --
3028 -------------------------------------
3030 -- DEFINING_IDENTIFIER_LIST ::=
3031 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
3033 -------------------------------
3034 -- 3.3.2 Number Declaration --
3035 -------------------------------
3037 -- NUMBER_DECLARATION ::=
3038 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
3040 -- Although the syntax allows multiple identifiers in the list, the
3041 -- semantics is as though successive declarations were given with
3042 -- identical expressions. To simplify semantic processing, the parser
3043 -- represents a multiple declaration case as a sequence of single
3044 -- declarations, using the More_Ids and Prev_Ids flags to preserve
3045 -- the original source form as described in the section on "Handling
3046 -- of Defining Identifier Lists".
3048 -- N_Number_Declaration
3049 -- Sloc points to first identifier
3050 -- Defining_Identifier (Node1)
3051 -- Expression (Node3)
3052 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3053 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3055 ----------------------------------
3056 -- 3.4 Derived Type Definition --
3057 ----------------------------------
3059 -- DERIVED_TYPE_DEFINITION ::=
3060 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
3061 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
3063 -- Note: ABSTRACT, LIMITED, and record extension part are not permitted
3064 -- in Ada 83 mode.
3066 -- Note: a record extension part is required if ABSTRACT is present
3068 -- N_Derived_Type_Definition
3069 -- Sloc points to NEW
3070 -- Abstract_Present (Flag4)
3071 -- Null_Exclusion_Present (Flag11) (set to False if not present)
3072 -- Subtype_Indication (Node5)
3073 -- Record_Extension_Part (Node3) (set to Empty if not present)
3074 -- Limited_Present (Flag17)
3075 -- Task_Present (Flag5) set in task interfaces
3076 -- Protected_Present (Flag6) set in protected interfaces
3077 -- Synchronized_Present (Flag7) set in interfaces
3078 -- Interface_List (List2) (set to No_List if none)
3079 -- Interface_Present (Flag16) set in abstract interfaces
3081 -- Note: Task_Present, Protected_Present, Synchronized_Present,
3082 -- Interface_List, and Interface_Present are used for abstract
3083 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3085 ---------------------------
3086 -- 3.5 Range Constraint --
3087 ---------------------------
3089 -- RANGE_CONSTRAINT ::= range RANGE
3091 -- N_Range_Constraint
3092 -- Sloc points to RANGE
3093 -- Range_Expression (Node4)
3095 ----------------
3096 -- 3.5 Range --
3097 ----------------
3099 -- RANGE ::=
3100 -- RANGE_ATTRIBUTE_REFERENCE
3101 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
3103 -- Note: the case of a range given as a range attribute reference
3104 -- appears directly in the tree as an attribute reference.
3106 -- Note: the field name for a reference to a range is Range_Expression
3107 -- rather than Range, because range is a reserved keyword in Ada.
3109 -- Note: the reason that this node has expression fields is that a
3110 -- range can appear as an operand of a membership test. The Etype
3111 -- field is the type of the range (we do NOT construct an implicit
3112 -- subtype to represent the range exactly).
3114 -- N_Range
3115 -- Sloc points to ..
3116 -- Low_Bound (Node1)
3117 -- High_Bound (Node2)
3118 -- Includes_Infinities (Flag11)
3119 -- plus fields for expression
3121 -- Note: if the range appears in a context, such as a subtype
3122 -- declaration, where range checks are required on one or both of
3123 -- the expression fields, then type conversion nodes are inserted
3124 -- to represent the required checks.
3126 ----------------------------------------
3127 -- 3.5.1 Enumeration Type Definition --
3128 ----------------------------------------
3130 -- ENUMERATION_TYPE_DEFINITION ::=
3131 -- (ENUMERATION_LITERAL_SPECIFICATION
3132 -- {, ENUMERATION_LITERAL_SPECIFICATION})
3134 -- Note: the Literals field in the node described below is null for
3135 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
3136 -- which special processing handles these types as special cases.
3138 -- N_Enumeration_Type_Definition
3139 -- Sloc points to left parenthesis
3140 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
3141 -- End_Label (Node4) (set to Empty if internally generated record)
3143 ----------------------------------------------
3144 -- 3.5.1 Enumeration Literal Specification --
3145 ----------------------------------------------
3147 -- ENUMERATION_LITERAL_SPECIFICATION ::=
3148 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
3150 ---------------------------------------
3151 -- 3.5.1 Defining Character Literal --
3152 ---------------------------------------
3154 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
3156 -- A defining character literal is an entity, which has additional
3157 -- fields depending on the setting of the Ekind field. These
3158 -- additional fields are defined (and access subprograms declared)
3159 -- in package Einfo.
3161 -- Note: N_Defining_Character_Literal is an extended node whose fields
3162 -- are deliberate layed out to match the layout of fields in an ordinary
3163 -- N_Character_Literal node allowing for easy alteration of a character
3164 -- literal node into a defining character literal node. For details, see
3165 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
3167 -- N_Defining_Character_Literal
3168 -- Sloc points to literal
3169 -- Chars (Name1) contains the Name_Id for the identifier
3170 -- Next_Entity (Node2-Sem)
3171 -- Scope (Node3-Sem)
3172 -- Etype (Node5-Sem)
3174 ------------------------------------
3175 -- 3.5.4 Integer Type Definition --
3176 ------------------------------------
3178 -- Note: there is an error in this rule in the latest version of the
3179 -- grammar, so we have retained the old rule pending clarification.
3181 -- INTEGER_TYPE_DEFINITION ::=
3182 -- SIGNED_INTEGER_TYPE_DEFINITION
3183 -- | MODULAR_TYPE_DEFINITION
3185 -------------------------------------------
3186 -- 3.5.4 Signed Integer Type Definition --
3187 -------------------------------------------
3189 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
3190 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3192 -- Note: the Low_Bound and High_Bound fields are set to Empty
3193 -- for integer types defined in package Standard.
3195 -- N_Signed_Integer_Type_Definition
3196 -- Sloc points to RANGE
3197 -- Low_Bound (Node1)
3198 -- High_Bound (Node2)
3200 ------------------------------------
3201 -- 3.5.4 Modular Type Definition --
3202 ------------------------------------
3204 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
3206 -- N_Modular_Type_Definition
3207 -- Sloc points to MOD
3208 -- Expression (Node3)
3210 ---------------------------------
3211 -- 3.5.6 Real Type Definition --
3212 ---------------------------------
3214 -- REAL_TYPE_DEFINITION ::=
3215 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
3217 --------------------------------------
3218 -- 3.5.7 Floating Point Definition --
3219 --------------------------------------
3221 -- FLOATING_POINT_DEFINITION ::=
3222 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
3224 -- Note: The Digits_Expression and Real_Range_Specifications fields
3225 -- are set to Empty for floating-point types declared in Standard.
3227 -- N_Floating_Point_Definition
3228 -- Sloc points to DIGITS
3229 -- Digits_Expression (Node2)
3230 -- Real_Range_Specification (Node4) (set to Empty if not present)
3232 -------------------------------------
3233 -- 3.5.7 Real Range Specification --
3234 -------------------------------------
3236 -- REAL_RANGE_SPECIFICATION ::=
3237 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3239 -- N_Real_Range_Specification
3240 -- Sloc points to RANGE
3241 -- Low_Bound (Node1)
3242 -- High_Bound (Node2)
3244 -----------------------------------
3245 -- 3.5.9 Fixed Point Definition --
3246 -----------------------------------
3248 -- FIXED_POINT_DEFINITION ::=
3249 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
3251 --------------------------------------------
3252 -- 3.5.9 Ordinary Fixed Point Definition --
3253 --------------------------------------------
3255 -- ORDINARY_FIXED_POINT_DEFINITION ::=
3256 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
3258 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3260 -- N_Ordinary_Fixed_Point_Definition
3261 -- Sloc points to DELTA
3262 -- Delta_Expression (Node3)
3263 -- Real_Range_Specification (Node4)
3265 -------------------------------------------
3266 -- 3.5.9 Decimal Fixed Point Definition --
3267 -------------------------------------------
3269 -- DECIMAL_FIXED_POINT_DEFINITION ::=
3270 -- delta static_EXPRESSION
3271 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
3273 -- Note: decimal types are not permitted in Ada 83 mode
3275 -- N_Decimal_Fixed_Point_Definition
3276 -- Sloc points to DELTA
3277 -- Delta_Expression (Node3)
3278 -- Digits_Expression (Node2)
3279 -- Real_Range_Specification (Node4) (set to Empty if not present)
3281 ------------------------------
3282 -- 3.5.9 Digits Constraint --
3283 ------------------------------
3285 -- DIGITS_CONSTRAINT ::=
3286 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
3288 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3289 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
3291 -- N_Digits_Constraint
3292 -- Sloc points to DIGITS
3293 -- Digits_Expression (Node2)
3294 -- Range_Constraint (Node4) (set to Empty if not present)
3296 --------------------------------
3297 -- 3.6 Array Type Definition --
3298 --------------------------------
3300 -- ARRAY_TYPE_DEFINITION ::=
3301 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
3303 -----------------------------------------
3304 -- 3.6 Unconstrained Array Definition --
3305 -----------------------------------------
3307 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
3308 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
3309 -- COMPONENT_DEFINITION
3311 -- Note: dimensionality of array is indicated by number of entries in
3312 -- the Subtype_Marks list, which has one entry for each dimension.
3314 -- N_Unconstrained_Array_Definition
3315 -- Sloc points to ARRAY
3316 -- Subtype_Marks (List2)
3317 -- Component_Definition (Node4)
3319 -----------------------------------
3320 -- 3.6 Index Subtype Definition --
3321 -----------------------------------
3323 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
3325 -- There is no explicit node in the tree for an index subtype
3326 -- definition since the N_Unconstrained_Array_Definition node
3327 -- incorporates the type marks which appear in this context.
3329 ---------------------------------------
3330 -- 3.6 Constrained Array Definition --
3331 ---------------------------------------
3333 -- CONSTRAINED_ARRAY_DEFINITION ::=
3334 -- array (DISCRETE_SUBTYPE_DEFINITION
3335 -- {, DISCRETE_SUBTYPE_DEFINITION})
3336 -- of COMPONENT_DEFINITION
3338 -- Note: dimensionality of array is indicated by number of entries
3339 -- in the Discrete_Subtype_Definitions list, which has one entry
3340 -- for each dimension.
3342 -- N_Constrained_Array_Definition
3343 -- Sloc points to ARRAY
3344 -- Discrete_Subtype_Definitions (List2)
3345 -- Component_Definition (Node4)
3347 -- Note: although the language allows the full syntax for discrete
3348 -- subtype definitions (i.e. a discrete subtype indication or a range),
3349 -- in the generated tree, we always rewrite these as N_Range nodes.
3351 --------------------------------------
3352 -- 3.6 Discrete Subtype Definition --
3353 --------------------------------------
3355 -- DISCRETE_SUBTYPE_DEFINITION ::=
3356 -- discrete_SUBTYPE_INDICATION | RANGE
3358 -------------------------------
3359 -- 3.6 Component Definition --
3360 -------------------------------
3362 -- COMPONENT_DEFINITION ::=
3363 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
3365 -- Note: although the syntax does not permit a component definition to
3366 -- be an anonymous array (and the parser will diagnose such an attempt
3367 -- with an appropriate message), it is possible for anonymous arrays
3368 -- to appear as component definitions. The semantics and back end handle
3369 -- this case properly, and the expander in fact generates such cases.
3370 -- Access_Definition is an optional field that gives support to
3371 -- Ada 2005 (AI-230). The parser generates nodes that have either the
3372 -- Subtype_Indication field or else the Access_Definition field.
3374 -- N_Component_Definition
3375 -- Sloc points to ALIASED, ACCESS, or to first token of subtype mark
3376 -- Aliased_Present (Flag4)
3377 -- Null_Exclusion_Present (Flag11)
3378 -- Subtype_Indication (Node5) (set to Empty if not present)
3379 -- Access_Definition (Node3) (set to Empty if not present)
3381 -----------------------------
3382 -- 3.6.1 Index Constraint --
3383 -----------------------------
3385 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3387 -- It is not in general possible to distinguish between discriminant
3388 -- constraints and index constraints at parse time, since a simple
3389 -- name could be either the subtype mark of a discrete range, or an
3390 -- expression in a discriminant association with no name. Either
3391 -- entry appears simply as the name, and the semantic parse must
3392 -- distinguish between the two cases. Thus we use a common tree
3393 -- node format for both of these constraint types.
3395 -- See Discriminant_Constraint for format of node
3397 ---------------------------
3398 -- 3.6.1 Discrete Range --
3399 ---------------------------
3401 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3403 ----------------------------
3404 -- 3.7 Discriminant Part --
3405 ----------------------------
3407 -- DISCRIMINANT_PART ::=
3408 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3410 ------------------------------------
3411 -- 3.7 Unknown Discriminant Part --
3412 ------------------------------------
3414 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
3416 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
3418 -- There is no explicit node in the tree for an unknown discriminant
3419 -- part. Instead the Unknown_Discriminants_Present flag is set in the
3420 -- parent node.
3422 ----------------------------------
3423 -- 3.7 Known Discriminant Part --
3424 ----------------------------------
3426 -- KNOWN_DISCRIMINANT_PART ::=
3427 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3429 -------------------------------------
3430 -- 3.7 Discriminant Specification --
3431 -------------------------------------
3433 -- DISCRIMINANT_SPECIFICATION ::=
3434 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3435 -- [:= DEFAULT_EXPRESSION]
3436 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3437 -- [:= DEFAULT_EXPRESSION]
3439 -- Although the syntax allows multiple identifiers in the list, the
3440 -- semantics is as though successive specifications were given with
3441 -- identical type definition and expression components. To simplify
3442 -- semantic processing, the parser represents a multiple declaration
3443 -- case as a sequence of single specifications, using the More_Ids and
3444 -- Prev_Ids flags to preserve the original source form as described
3445 -- in the section on "Handling of Defining Identifier Lists".
3447 -- N_Discriminant_Specification
3448 -- Sloc points to first identifier
3449 -- Defining_Identifier (Node1)
3450 -- Null_Exclusion_Present (Flag11)
3451 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3452 -- Expression (Node3) (set to Empty if no default expression)
3453 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3454 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3456 -----------------------------
3457 -- 3.7 Default Expression --
3458 -----------------------------
3460 -- DEFAULT_EXPRESSION ::= EXPRESSION
3462 ------------------------------------
3463 -- 3.7.1 Discriminant Constraint --
3464 ------------------------------------
3466 -- DISCRIMINANT_CONSTRAINT ::=
3467 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3469 -- It is not in general possible to distinguish between discriminant
3470 -- constraints and index constraints at parse time, since a simple
3471 -- name could be either the subtype mark of a discrete range, or an
3472 -- expression in a discriminant association with no name. Either
3473 -- entry appears simply as the name, and the semantic parse must
3474 -- distinguish between the two cases. Thus we use a common tree
3475 -- node format for both of these constraint types.
3477 -- N_Index_Or_Discriminant_Constraint
3478 -- Sloc points to left paren
3479 -- Constraints (List1) points to list of discrete ranges or
3480 -- discriminant associations
3482 -------------------------------------
3483 -- 3.7.1 Discriminant Association --
3484 -------------------------------------
3486 -- DISCRIMINANT_ASSOCIATION ::=
3487 -- [discriminant_SELECTOR_NAME
3488 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3490 -- Note: a discriminant association that has no selector name list
3491 -- appears directly as an expression in the tree.
3493 -- N_Discriminant_Association
3494 -- Sloc points to first token of discriminant association
3495 -- Selector_Names (List1) (always non-empty, since if no selector
3496 -- names are present, this node is not used, see comment above)
3497 -- Expression (Node3)
3499 ---------------------------------
3500 -- 3.8 Record Type Definition --
3501 ---------------------------------
3503 -- RECORD_TYPE_DEFINITION ::=
3504 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3506 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3508 -- There is no explicit node in the tree for a record type definition.
3509 -- Instead the flags for Tagged_Present and Limited_Present appear in
3510 -- the N_Record_Definition node for a record definition appearing in
3511 -- the context of a record type definition.
3513 ----------------------------
3514 -- 3.8 Record Definition --
3515 ----------------------------
3517 -- RECORD_DEFINITION ::=
3518 -- record
3519 -- COMPONENT_LIST
3520 -- end record
3521 -- | null record
3523 -- Note: the Abstract_Present, Tagged_Present, and Limited_Present
3524 -- flags appear only for a record definition appearing in a record
3525 -- type definition.
3527 -- Note: the NULL RECORD case is not permitted in Ada 83
3529 -- N_Record_Definition
3530 -- Sloc points to RECORD or NULL
3531 -- End_Label (Node4) (set to Empty if internally generated record)
3532 -- Abstract_Present (Flag4)
3533 -- Tagged_Present (Flag15)
3534 -- Limited_Present (Flag17)
3535 -- Component_List (Node1) empty in null record case
3536 -- Null_Present (Flag13) set in null record case
3537 -- Task_Present (Flag5) set in task interfaces
3538 -- Protected_Present (Flag6) set in protected interfaces
3539 -- Synchronized_Present (Flag7) set in interfaces
3540 -- Interface_Present (Flag16) set in abstract interfaces
3541 -- Interface_List (List2) (set to No_List if none)
3543 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3544 -- Interface_List and Interface_Present are used for abstract
3545 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3547 -------------------------
3548 -- 3.8 Component List --
3549 -------------------------
3551 -- COMPONENT_LIST ::=
3552 -- COMPONENT_ITEM {COMPONENT_ITEM}
3553 -- | {COMPONENT_ITEM} VARIANT_PART
3554 -- | null;
3556 -- N_Component_List
3557 -- Sloc points to first token of component list
3558 -- Component_Items (List3)
3559 -- Variant_Part (Node4) (set to Empty if no variant part)
3560 -- Null_Present (Flag13)
3562 -------------------------
3563 -- 3.8 Component Item --
3564 -------------------------
3566 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3568 -- Note: A component item can also be a pragma, and in the tree
3569 -- that is obtained after semantic processing, a component item
3570 -- can be an N_Null node resulting from a non-recognized pragma.
3572 --------------------------------
3573 -- 3.8 Component Declaration --
3574 --------------------------------
3576 -- COMPONENT_DECLARATION ::=
3577 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3578 -- [:= DEFAULT_EXPRESSION]
3579 -- [ASPECT_SPECIFICATIONS];
3581 -- Note: although the syntax does not permit a component definition to
3582 -- be an anonymous array (and the parser will diagnose such an attempt
3583 -- with an appropriate message), it is possible for anonymous arrays
3584 -- to appear as component definitions. The semantics and back end handle
3585 -- this case properly, and the expander in fact generates such cases.
3587 -- Although the syntax allows multiple identifiers in the list, the
3588 -- semantics is as though successive declarations were given with the
3589 -- same component definition and expression components. To simplify
3590 -- semantic processing, the parser represents a multiple declaration
3591 -- case as a sequence of single declarations, using the More_Ids and
3592 -- Prev_Ids flags to preserve the original source form as described
3593 -- in the section on "Handling of Defining Identifier Lists".
3595 -- N_Component_Declaration
3596 -- Sloc points to first identifier
3597 -- Defining_Identifier (Node1)
3598 -- Component_Definition (Node4)
3599 -- Expression (Node3) (set to Empty if no default expression)
3600 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3601 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3603 -------------------------
3604 -- 3.8.1 Variant Part --
3605 -------------------------
3607 -- VARIANT_PART ::=
3608 -- case discriminant_DIRECT_NAME is
3609 -- VARIANT {VARIANT}
3610 -- end case;
3612 -- Note: the variants list can contain pragmas as well as variants.
3613 -- In a properly formed program there is at least one variant.
3615 -- N_Variant_Part
3616 -- Sloc points to CASE
3617 -- Name (Node2)
3618 -- Variants (List1)
3620 --------------------
3621 -- 3.8.1 Variant --
3622 --------------------
3624 -- VARIANT ::=
3625 -- when DISCRETE_CHOICE_LIST =>
3626 -- COMPONENT_LIST
3628 -- N_Variant
3629 -- Sloc points to WHEN
3630 -- Discrete_Choices (List4)
3631 -- Component_List (Node1)
3632 -- Enclosing_Variant (Node2-Sem)
3633 -- Present_Expr (Uint3-Sem)
3634 -- Dcheck_Function (Node5-Sem)
3635 -- Has_SP_Choice (Flag15-Sem)
3637 -- Note: in the list of Discrete_Choices, the tree passed to the back
3638 -- end does not have choice entries corresponding to names of statically
3639 -- predicated subtypes. Such entries are always expanded out to the list
3640 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3641 -- mode also has this expansion, but done with a proper Rewrite call on
3642 -- the N_Variant node so that ASIS can properly retrieve the original.
3644 ---------------------------------
3645 -- 3.8.1 Discrete Choice List --
3646 ---------------------------------
3648 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3650 ----------------------------
3651 -- 3.8.1 Discrete Choice --
3652 ----------------------------
3654 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3656 -- Note: in Ada 83 mode, the expression must be a simple expression
3658 -- The only choice that appears explicitly is the OTHERS choice, as
3659 -- defined here. Other cases of discrete choice (expression and
3660 -- discrete range) appear directly. This production is also used
3661 -- for the OTHERS possibility of an exception choice.
3663 -- Note: in accordance with the syntax, the parser does not check that
3664 -- OTHERS appears at the end on its own in a choice list context. This
3665 -- is a semantic check.
3667 -- N_Others_Choice
3668 -- Sloc points to OTHERS
3669 -- Others_Discrete_Choices (List1-Sem)
3670 -- All_Others (Flag11-Sem)
3672 ----------------------------------
3673 -- 3.9.1 Record Extension Part --
3674 ----------------------------------
3676 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3678 -- Note: record extension parts are not permitted in Ada 83 mode
3680 --------------------------------------
3681 -- 3.9.4 Interface Type Definition --
3682 --------------------------------------
3684 -- INTERFACE_TYPE_DEFINITION ::=
3685 -- [limited | task | protected | synchronized]
3686 -- interface [interface_list]
3688 -- Note: Interfaces are implemented with N_Record_Definition and
3689 -- N_Derived_Type_Definition nodes because most of the support
3690 -- for the analysis of abstract types has been reused to
3691 -- analyze abstract interfaces.
3693 ----------------------------------
3694 -- 3.10 Access Type Definition --
3695 ----------------------------------
3697 -- ACCESS_TYPE_DEFINITION ::=
3698 -- ACCESS_TO_OBJECT_DEFINITION
3699 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3701 --------------------------
3702 -- 3.10 Null Exclusion --
3703 --------------------------
3705 -- NULL_EXCLUSION ::= not null
3707 ---------------------------------------
3708 -- 3.10 Access To Object Definition --
3709 ---------------------------------------
3711 -- ACCESS_TO_OBJECT_DEFINITION ::=
3712 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3713 -- SUBTYPE_INDICATION
3715 -- N_Access_To_Object_Definition
3716 -- Sloc points to ACCESS
3717 -- All_Present (Flag15)
3718 -- Null_Exclusion_Present (Flag11)
3719 -- Null_Excluding_Subtype (Flag16)
3720 -- Subtype_Indication (Node5)
3721 -- Constant_Present (Flag17)
3723 -----------------------------------
3724 -- 3.10 General Access Modifier --
3725 -----------------------------------
3727 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3729 -- Note: general access modifiers are not permitted in Ada 83 mode
3731 -- There is no explicit node in the tree for general access modifier.
3732 -- Instead the All_Present or Constant_Present flags are set in the
3733 -- parent node.
3735 -------------------------------------------
3736 -- 3.10 Access To Subprogram Definition --
3737 -------------------------------------------
3739 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3740 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3741 -- | [NULL_EXCLUSION] access [protected] function
3742 -- PARAMETER_AND_RESULT_PROFILE
3744 -- Note: access to subprograms are not permitted in Ada 83 mode
3746 -- N_Access_Function_Definition
3747 -- Sloc points to ACCESS
3748 -- Null_Exclusion_Present (Flag11)
3749 -- Null_Exclusion_In_Return_Present (Flag14)
3750 -- Protected_Present (Flag6)
3751 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3752 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3754 -- N_Access_Procedure_Definition
3755 -- Sloc points to ACCESS
3756 -- Null_Exclusion_Present (Flag11)
3757 -- Protected_Present (Flag6)
3758 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3760 -----------------------------
3761 -- 3.10 Access Definition --
3762 -----------------------------
3764 -- ACCESS_DEFINITION ::=
3765 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3766 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3768 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3770 -- N_Access_Definition
3771 -- Sloc points to ACCESS
3772 -- Null_Exclusion_Present (Flag11)
3773 -- All_Present (Flag15)
3774 -- Constant_Present (Flag17)
3775 -- Subtype_Mark (Node4)
3776 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3778 -----------------------------------------
3779 -- 3.10.1 Incomplete Type Declaration --
3780 -----------------------------------------
3782 -- INCOMPLETE_TYPE_DECLARATION ::=
3783 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3785 -- N_Incomplete_Type_Declaration
3786 -- Sloc points to TYPE
3787 -- Defining_Identifier (Node1)
3788 -- Discriminant_Specifications (List4) (set to No_List if no
3789 -- discriminant part, or if the discriminant part is an
3790 -- unknown discriminant part)
3791 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3792 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3793 -- Tagged_Present (Flag15)
3795 ----------------------------
3796 -- 3.11 Declarative Part --
3797 ----------------------------
3799 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3801 -- Note: although the parser enforces the syntactic requirement that
3802 -- a declarative part can contain only declarations, the semantic
3803 -- processing may add statements to the list of actions in a
3804 -- declarative part, so the code generator should be prepared
3805 -- to accept a statement in this position.
3807 ----------------------------
3808 -- 3.11 Declarative Item --
3809 ----------------------------
3811 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3813 ----------------------------------
3814 -- 3.11 Basic Declarative Item --
3815 ----------------------------------
3817 -- BASIC_DECLARATIVE_ITEM ::=
3818 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3820 ----------------
3821 -- 3.11 Body --
3822 ----------------
3824 -- BODY ::= PROPER_BODY | BODY_STUB
3826 -----------------------
3827 -- 3.11 Proper Body --
3828 -----------------------
3830 -- PROPER_BODY ::=
3831 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3833 ---------------
3834 -- 4.1 Name --
3835 ---------------
3837 -- NAME ::=
3838 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3839 -- | INDEXED_COMPONENT | SLICE
3840 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3841 -- | TYPE_CONVERSION | FUNCTION_CALL
3842 -- | CHARACTER_LITERAL
3844 ----------------------
3845 -- 4.1 Direct Name --
3846 ----------------------
3848 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3850 -----------------
3851 -- 4.1 Prefix --
3852 -----------------
3854 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3856 -------------------------------
3857 -- 4.1 Explicit Dereference --
3858 -------------------------------
3860 -- EXPLICIT_DEREFERENCE ::= NAME . all
3862 -- N_Explicit_Dereference
3863 -- Sloc points to ALL
3864 -- Prefix (Node3)
3865 -- Actual_Designated_Subtype (Node4-Sem)
3866 -- Has_Dereference_Action (Flag13-Sem)
3867 -- Atomic_Sync_Required (Flag14-Sem)
3868 -- plus fields for expression
3870 -------------------------------
3871 -- 4.1 Implicit Dereference --
3872 -------------------------------
3874 -- IMPLICIT_DEREFERENCE ::= NAME
3876 ------------------------------
3877 -- 4.1.1 Indexed Component --
3878 ------------------------------
3880 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3882 -- Note: the parser may generate this node in some situations where it
3883 -- should be a function call. The semantic pass must correct this
3884 -- misidentification (which is inevitable at the parser level).
3886 -- N_Indexed_Component
3887 -- Sloc contains a copy of the Sloc value of the Prefix
3888 -- Prefix (Node3)
3889 -- Expressions (List1)
3890 -- Generalized_Indexing (Node4-Sem)
3891 -- Atomic_Sync_Required (Flag14-Sem)
3892 -- plus fields for expression
3894 -- Note: if any of the subscripts requires a range check, then the
3895 -- Do_Range_Check flag is set on the corresponding expression, with
3896 -- the index type being determined from the type of the Prefix, which
3897 -- references the array being indexed.
3899 -- Note: in a fully analyzed and expanded indexed component node, and
3900 -- hence in any such node that gigi sees, if the prefix is an access
3901 -- type, then an explicit dereference operation has been inserted.
3903 ------------------
3904 -- 4.1.2 Slice --
3905 ------------------
3907 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3909 -- Note: an implicit subtype is created to describe the resulting
3910 -- type, so that the bounds of this type are the bounds of the slice.
3912 -- N_Slice
3913 -- Sloc points to first token of prefix
3914 -- Prefix (Node3)
3915 -- Discrete_Range (Node4)
3916 -- plus fields for expression
3918 -------------------------------
3919 -- 4.1.3 Selected Component --
3920 -------------------------------
3922 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3924 -- Note: selected components that are semantically expanded names get
3925 -- changed during semantic processing into the separate N_Expanded_Name
3926 -- node. See description of this node in the section on semantic nodes.
3928 -- N_Selected_Component
3929 -- Sloc points to the period
3930 -- Prefix (Node3)
3931 -- Selector_Name (Node2)
3932 -- Associated_Node (Node4-Sem)
3933 -- Do_Discriminant_Check (Flag3-Sem)
3934 -- Is_In_Discriminant_Check (Flag11-Sem)
3935 -- Atomic_Sync_Required (Flag14-Sem)
3936 -- Is_Prefixed_Call (Flag17-Sem)
3937 -- plus fields for expression
3939 --------------------------
3940 -- 4.1.3 Selector Name --
3941 --------------------------
3943 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3945 --------------------------------
3946 -- 4.1.4 Attribute Reference --
3947 --------------------------------
3949 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3951 -- Note: the syntax is quite ambiguous at this point. Consider:
3953 -- A'Length (X) X is part of the attribute designator
3954 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3955 -- A'Class (X) X is the expression of a type conversion
3957 -- It would be possible for the parser to distinguish these cases
3958 -- by looking at the attribute identifier. However, that would mean
3959 -- more work in introducing new implementation defined attributes,
3960 -- and also it would mean that special processing for attributes
3961 -- would be scattered around, instead of being centralized in the
3962 -- semantic routine that handles an N_Attribute_Reference node.
3963 -- Consequently, the parser in all the above cases stores the
3964 -- expression (X in these examples) as a single element list in
3965 -- in the Expressions field of the N_Attribute_Reference node.
3967 -- Similarly, for attributes like Max which take two arguments,
3968 -- we store the two arguments as a two element list in the
3969 -- Expressions field. Of course it is clear at parse time that
3970 -- this case is really a function call with an attribute as the
3971 -- prefix, but it turns out to be convenient to handle the two
3972 -- argument case in a similar manner to the one argument case,
3973 -- and indeed in general the parser will accept any number of
3974 -- expressions in this position and store them as a list in the
3975 -- attribute reference node. This allows for future addition of
3976 -- attributes that take more than two arguments.
3978 -- Note: named associates are not permitted in function calls where
3979 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3980 -- to skip the normal subprogram argument processing.
3982 -- Note: for the attributes whose designators are technically keywords,
3983 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3984 -- the corresponding name, even though no identifier is involved.
3986 -- Note: the generated code may contain stream attributes applied to
3987 -- limited types for which no stream routines exist officially. In such
3988 -- case, the result is to use the stream attribute for the underlying
3989 -- full type, or in the case of a protected type, the components
3990 -- (including any discriminants) are merely streamed in order.
3992 -- See Exp_Attr for a complete description of which attributes are
3993 -- passed onto Gigi, and which are handled entirely by the front end.
3995 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3996 -- a non-standard enumeration type or a nonzero/zero semantics
3997 -- boolean type, so the value is simply the stored representation.
3999 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
4000 -- references a subprogram that is a renaming, then the front end must
4001 -- rewrite the attribute to refer directly to the renamed entity.
4003 -- Note: syntactically the prefix of an attribute reference must be a
4004 -- name, and this (somewhat artificial) requirement is enforced by the
4005 -- parser. However, for many attributes, such as 'Valid, it is quite
4006 -- reasonable to apply the attribute to any value, and hence to any
4007 -- expression. Internally in the tree, the prefix is an expression which
4008 -- does not have to be a name, and this is handled fine by the semantic
4009 -- analysis and expansion, and back ends. This arises for the case of
4010 -- attribute references built by the expander (e.g. 'Valid for the case
4011 -- of an implicit validity check).
4013 -- Note: In generated code, the Address and Unrestricted_Access
4014 -- attributes can be applied to any expression, and the meaning is
4015 -- to create an object containing the value (the object is in the
4016 -- current stack frame), and pass the address of this value. If the
4017 -- Must_Be_Byte_Aligned flag is set, then the object whose address
4018 -- is taken must be on a byte (storage unit) boundary, and if it is
4019 -- not (or may not be), then the generated code must create a copy
4020 -- that is byte aligned, and pass the address of this copy.
4022 -- N_Attribute_Reference
4023 -- Sloc points to apostrophe
4024 -- Prefix (Node3) (general expression, see note above)
4025 -- Attribute_Name (Name2) identifier name from attribute designator
4026 -- Expressions (List1) (set to No_List if no associated expressions)
4027 -- Entity (Node4-Sem) used if the attribute yields a type
4028 -- Associated_Node (Node4-Sem)
4029 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
4030 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
4031 -- Header_Size_Added (Flag11-Sem)
4032 -- Redundant_Use (Flag13-Sem)
4033 -- Must_Be_Byte_Aligned (Flag14-Sem)
4034 -- plus fields for expression
4036 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
4037 -- into equivalent if expressions, properly taking care of side effects.
4039 ---------------------------------
4040 -- 4.1.4 Attribute Designator --
4041 ---------------------------------
4043 -- ATTRIBUTE_DESIGNATOR ::=
4044 -- IDENTIFIER [(static_EXPRESSION)]
4045 -- | access | delta | digits
4047 -- There is no explicit node in the tree for an attribute designator.
4048 -- Instead the Attribute_Name and Expressions fields of the parent
4049 -- node (N_Attribute_Reference node) hold the information.
4051 -- Note: if ACCESS, DELTA, or DIGITS appears in an attribute
4052 -- designator, then they are treated as identifiers internally
4053 -- rather than the keywords of the same name.
4055 --------------------------------------
4056 -- 4.1.4 Range Attribute Reference --
4057 --------------------------------------
4059 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
4061 -- A range attribute reference is represented in the tree using the
4062 -- normal N_Attribute_Reference node.
4064 ---------------------------------------
4065 -- 4.1.4 Range Attribute Designator --
4066 ---------------------------------------
4068 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
4070 -- A range attribute designator is represented in the tree using the
4071 -- normal N_Attribute_Reference node.
4073 --------------------
4074 -- 4.3 Aggregate --
4075 --------------------
4077 -- AGGREGATE ::=
4078 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
4080 -----------------------------
4081 -- 4.3.1 Record Aggregate --
4082 -----------------------------
4084 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
4086 -- N_Aggregate
4087 -- Sloc points to left parenthesis
4088 -- Expressions (List1) (set to No_List if none or null record case)
4089 -- Component_Associations (List2) (set to No_List if none)
4090 -- Null_Record_Present (Flag17)
4091 -- Aggregate_Bounds (Node3-Sem)
4092 -- Associated_Node (Node4-Sem)
4093 -- Compile_Time_Known_Aggregate (Flag18-Sem)
4094 -- Expansion_Delayed (Flag11-Sem)
4095 -- Has_Self_Reference (Flag13-Sem)
4096 -- plus fields for expression
4098 -- Note: this structure is used for both record and array aggregates
4099 -- since the two cases are not separable by the parser. The parser
4100 -- makes no attempt to enforce consistency here, so it is up to the
4101 -- semantic phase to make sure that the aggregate is consistent (i.e.
4102 -- that it is not a "half-and-half" case that mixes record and array
4103 -- syntax. In particular, for a record aggregate, the expressions
4104 -- field will be set if there are positional associations.
4106 -- Note: N_Aggregate is not used for all aggregates; in particular,
4107 -- there is a separate node kind for extension aggregates.
4109 -- Note: gigi/gcc can handle array aggregates correctly providing that
4110 -- they are entirely positional, and the array subtype involved has a
4111 -- known at compile time length and is not bit packed, or a convention
4112 -- Fortran array with more than one dimension. If these conditions
4113 -- are not met, then the front end must translate the aggregate into
4114 -- an appropriate set of assignments into a temporary.
4116 -- Note: for the record aggregate case, gigi/gcc can handle most cases
4117 -- of record aggregates, including those for packed, and rep-claused
4118 -- records, and also variant records, providing that there are no
4119 -- variable length fields whose size is not known at compile time,
4120 -- and providing that the aggregate is presented in fully named form.
4122 -- The other situation in which array aggregates and record aggregates
4123 -- cannot be passed to the back end is if assignment to one or more
4124 -- components itself needs expansion, e.g. in the case of an assignment
4125 -- of an object of a controlled type. In such cases, the front end
4126 -- must expand the aggregate to a series of assignments, and apply
4127 -- the required expansion to the individual assignment statements.
4129 ----------------------------------------------
4130 -- 4.3.1 Record Component Association List --
4131 ----------------------------------------------
4133 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
4134 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
4135 -- | null record
4137 -- There is no explicit node in the tree for a record component
4138 -- association list. Instead the Null_Record_Present flag is set in
4139 -- the parent node for the NULL RECORD case.
4141 ------------------------------------------------------
4142 -- 4.3.1 Record Component Association (also 4.3.3) --
4143 ------------------------------------------------------
4145 -- RECORD_COMPONENT_ASSOCIATION ::=
4146 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
4148 -- N_Component_Association
4149 -- Sloc points to first selector name
4150 -- Choices (List1)
4151 -- Loop_Actions (List2-Sem)
4152 -- Expression (Node3) (empty if Box_Present)
4153 -- Box_Present (Flag15)
4154 -- Inherited_Discriminant (Flag13)
4156 -- Note: this structure is used for both record component associations
4157 -- and array component associations, since the two cases aren't always
4158 -- separable by the parser. The choices list may represent either a
4159 -- list of selector names in the record aggregate case, or a list of
4160 -- discrete choices in the array aggregate case or an N_Others_Choice
4161 -- node (which appears as a singleton list). Box_Present gives support
4162 -- to Ada 2005 (AI-287).
4164 ----------------------------------
4165 -- 4.3.1 Component Choice List --
4166 ----------------------------------
4168 -- COMPONENT_CHOICE_LIST ::=
4169 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
4170 -- | others
4172 -- The entries of a component choice list appear in the Choices list of
4173 -- the associated N_Component_Association, as either selector names, or
4174 -- as an N_Others_Choice node.
4176 --------------------------------
4177 -- 4.3.2 Extension Aggregate --
4178 --------------------------------
4180 -- EXTENSION_AGGREGATE ::=
4181 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
4183 -- Note: extension aggregates are not permitted in Ada 83 mode
4185 -- N_Extension_Aggregate
4186 -- Sloc points to left parenthesis
4187 -- Ancestor_Part (Node3)
4188 -- Associated_Node (Node4-Sem)
4189 -- Expressions (List1) (set to No_List if none or null record case)
4190 -- Component_Associations (List2) (set to No_List if none)
4191 -- Null_Record_Present (Flag17)
4192 -- Expansion_Delayed (Flag11-Sem)
4193 -- Has_Self_Reference (Flag13-Sem)
4194 -- plus fields for expression
4196 --------------------------
4197 -- 4.3.2 Ancestor Part --
4198 --------------------------
4200 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
4202 ----------------------------
4203 -- 4.3.3 Array Aggregate --
4204 ----------------------------
4206 -- ARRAY_AGGREGATE ::=
4207 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
4209 ---------------------------------------
4210 -- 4.3.3 Positional Array Aggregate --
4211 ---------------------------------------
4213 -- POSITIONAL_ARRAY_AGGREGATE ::=
4214 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
4215 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
4217 -- See Record_Aggregate (4.3.1) for node structure
4219 ----------------------------------
4220 -- 4.3.3 Named Array Aggregate --
4221 ----------------------------------
4223 -- NAMED_ARRAY_AGGREGATE ::=
4224 -- (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
4226 -- See Record_Aggregate (4.3.1) for node structure
4228 ----------------------------------------
4229 -- 4.3.3 Array Component Association --
4230 ----------------------------------------
4232 -- ARRAY_COMPONENT_ASSOCIATION ::=
4233 -- DISCRETE_CHOICE_LIST => EXPRESSION
4234 -- | ITERATED_COMPONENT_ASSOCIATION
4236 -- See Record_Component_Association (4.3.1) for node structure
4237 -- The iterated_component_association is introduced into the
4238 -- Corrigendum of Ada_2012 by AI12-061.
4240 ------------------------------------------
4241 -- 4.3.3 Iterated component Association --
4242 ------------------------------------------
4244 -- ITERATED_COMPONENT_ASSOCIATION ::=
4245 -- for DEFINING_IDENTIFIER in DISCRETE_CHOICE_LIST => EXPRESSION
4247 -- N_Iterated_Component_Association
4248 -- Sloc points to FOR
4249 -- Defining_Identifier (Node1)
4250 -- Loop_Actions (List2-Sem)
4251 -- Expression (Node3)
4252 -- Discrete_Choices (List4)
4253 -- Box_Present (Flag15)
4255 -- Note that Box_Present is always False, but it is intentionally added
4256 -- for completeness.
4258 ----------------------------
4259 -- 4.3.4 Delta Aggregate --
4260 ----------------------------
4262 -- N_Delta_Aggregate
4263 -- Sloc points to left parenthesis
4264 -- Expression (Node3)
4265 -- Component_Associations (List2)
4267 --------------------------------------------------
4268 -- 4.4 Expression/Relation/Term/Factor/Primary --
4269 --------------------------------------------------
4271 -- EXPRESSION ::=
4272 -- RELATION {LOGICAL_OPERATOR RELATION}
4274 -- CHOICE_EXPRESSION ::=
4275 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
4277 -- CHOICE_RELATION ::=
4278 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
4280 -- RELATION ::=
4281 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4282 -- | RAISE_EXPRESSION
4284 -- MEMBERSHIP_CHOICE_LIST ::=
4285 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4287 -- MEMBERSHIP_CHOICE ::=
4288 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4290 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
4292 -- SIMPLE_EXPRESSION ::=
4293 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
4295 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
4297 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
4299 -- No nodes are generated for any of these constructs. Instead, the
4300 -- node for the operator appears directly. When we refer to an
4301 -- expression in this description, we mean any of the possible
4302 -- constituent components of an expression (e.g. identifier is
4303 -- an example of an expression).
4305 -- Note: the above syntax is that Ada 2012 syntax which restricts
4306 -- choice relations to simple expressions to avoid ambiguities in
4307 -- some contexts with set membership notation. It has been decided
4308 -- that in retrospect, the Ada 95 change allowing general expressions
4309 -- in this context was a mistake, so we have reverted to the above
4310 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
4311 -- expressions was there in Ada 83 from the start).
4313 ------------------
4314 -- 4.4 Primary --
4315 ------------------
4317 -- PRIMARY ::=
4318 -- NUMERIC_LITERAL | null
4319 -- | STRING_LITERAL | AGGREGATE
4320 -- | NAME | QUALIFIED_EXPRESSION
4321 -- | ALLOCATOR | (EXPRESSION)
4323 -- Usually there is no explicit node in the tree for primary. Instead
4324 -- the constituent (e.g. AGGREGATE) appears directly. There are two
4325 -- exceptions. First, there is an explicit node for a null primary.
4327 -- N_Null
4328 -- Sloc points to NULL
4329 -- plus fields for expression
4331 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
4332 -- that the parser keep track of which subexpressions are enclosed
4333 -- in parentheses, and how many levels of parentheses are used. This
4334 -- information is required for optimization purposes, and also for
4335 -- some semantic checks (e.g. (((1))) in a procedure spec does not
4336 -- conform with ((((1)))) in the body).
4338 -- The parentheses are recorded by keeping a Paren_Count field in every
4339 -- subexpression node (it is actually present in all nodes, but only
4340 -- used in subexpression nodes). This count records the number of
4341 -- levels of parentheses. If the number of levels in the source exceeds
4342 -- the maximum accommodated by this count, then the count is simply left
4343 -- at the maximum value. This means that there are some pathological
4344 -- cases of failure to detect conformance failures (e.g. an expression
4345 -- with 500 levels of parens will conform with one with 501 levels),
4346 -- but we do not need to lose sleep over this.
4348 -- Historical note: in versions of GNAT prior to 1.75, there was a node
4349 -- type N_Parenthesized_Expression used to accurately record unlimited
4350 -- numbers of levels of parentheses. However, it turned out to be a
4351 -- real nuisance to have to take into account the possible presence of
4352 -- this node during semantic analysis, since basically parentheses have
4353 -- zero relevance to semantic analysis.
4355 -- Note: the level of parentheses always present in things like
4356 -- aggregates does not count, only the parentheses in the primary
4357 -- (EXPRESSION) affect the setting of the Paren_Count field.
4359 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
4360 -- treated as though it were Empty) if No_Initialization is set True.
4362 --------------------------------------
4363 -- 4.5 Short-Circuit Control Forms --
4364 --------------------------------------
4366 -- EXPRESSION ::=
4367 -- RELATION {and then RELATION} | RELATION {or else RELATION}
4369 -- Gigi restriction: For both these control forms, the operand and
4370 -- result types are always Standard.Boolean. The expander inserts the
4371 -- required conversion operations where needed to ensure this is the
4372 -- case.
4374 -- N_And_Then
4375 -- Sloc points to AND of AND THEN
4376 -- Left_Opnd (Node2)
4377 -- Right_Opnd (Node3)
4378 -- Actions (List1-Sem)
4379 -- plus fields for expression
4381 -- N_Or_Else
4382 -- Sloc points to OR of OR ELSE
4383 -- Left_Opnd (Node2)
4384 -- Right_Opnd (Node3)
4385 -- Actions (List1-Sem)
4386 -- plus fields for expression
4388 -- Note: The Actions field is used to hold actions associated with
4389 -- the right hand operand. These have to be treated specially since
4390 -- they are not unconditionally executed. See Insert_Actions for a
4391 -- more detailed description of how these actions are handled.
4393 ---------------------------
4394 -- 4.5 Membership Tests --
4395 ---------------------------
4397 -- RELATION ::=
4398 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4400 -- MEMBERSHIP_CHOICE_LIST ::=
4401 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4403 -- MEMBERSHIP_CHOICE ::=
4404 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4406 -- Note: although the grammar above allows only a range or a subtype
4407 -- mark, the parser in fact will accept any simple expression in place
4408 -- of a subtype mark. This means that the semantic analyzer must be able
4409 -- to deal with, and diagnose a simple expression other than a name for
4410 -- the right operand. This simplifies error recovery in the parser.
4412 -- The Alternatives field below is present only if there is more than
4413 -- one Membership_Choice present (which is legitimate only in Ada 2012
4414 -- mode) in which case Right_Opnd is Empty, and Alternatives contains
4415 -- the list of choices. In the tree passed to the back end, Alternatives
4416 -- is always No_List, and Right_Opnd is set (i.e. the expansion circuit
4417 -- expands out the complex set membership case using simple membership
4418 -- and equality operations).
4420 -- Should we rename Alternatives here to Membership_Choices ???
4422 -- N_In
4423 -- Sloc points to IN
4424 -- Left_Opnd (Node2)
4425 -- Right_Opnd (Node3)
4426 -- Alternatives (List4) (set to No_List if only one set alternative)
4427 -- No_Minimize_Eliminate (Flag17)
4428 -- plus fields for expression
4430 -- N_Not_In
4431 -- Sloc points to NOT of NOT IN
4432 -- Left_Opnd (Node2)
4433 -- Right_Opnd (Node3)
4434 -- Alternatives (List4) (set to No_List if only one set alternative)
4435 -- No_Minimize_Eliminate (Flag17)
4436 -- plus fields for expression
4438 --------------------
4439 -- 4.5 Operators --
4440 --------------------
4442 -- LOGICAL_OPERATOR ::= and | or | xor
4444 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
4446 -- BINARY_ADDING_OPERATOR ::= + | - | &
4448 -- UNARY_ADDING_OPERATOR ::= + | -
4450 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
4452 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
4454 -- Sprint syntax if Treat_Fixed_As_Integer is set:
4456 -- x #* y
4457 -- x #/ y
4458 -- x #mod y
4459 -- x #rem y
4461 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
4462 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
4463 -- All handling of smalls for multiplication and division is handled
4464 -- by the front end (mod and rem result only from expansion). Gigi
4465 -- thus never needs to worry about small values (for other operators
4466 -- operating on fixed-point, e.g. addition, the small value does not
4467 -- have any semantic effect anyway, these are always integer operations.
4469 -- Gigi restriction: For all operators taking Boolean operands, the
4470 -- type is always Standard.Boolean. The expander inserts the required
4471 -- conversion operations where needed to ensure this is the case.
4473 -- N_Op_And
4474 -- Sloc points to AND
4475 -- Do_Length_Check (Flag4-Sem)
4476 -- plus fields for binary operator
4477 -- plus fields for expression
4479 -- N_Op_Or
4480 -- Sloc points to OR
4481 -- Do_Length_Check (Flag4-Sem)
4482 -- plus fields for binary operator
4483 -- plus fields for expression
4485 -- N_Op_Xor
4486 -- Sloc points to XOR
4487 -- Do_Length_Check (Flag4-Sem)
4488 -- plus fields for binary operator
4489 -- plus fields for expression
4491 -- N_Op_Eq
4492 -- Sloc points to =
4493 -- plus fields for binary operator
4494 -- plus fields for expression
4496 -- N_Op_Ne
4497 -- Sloc points to /=
4498 -- plus fields for binary operator
4499 -- plus fields for expression
4501 -- N_Op_Lt
4502 -- Sloc points to <
4503 -- plus fields for binary operator
4504 -- plus fields for expression
4506 -- N_Op_Le
4507 -- Sloc points to <=
4508 -- plus fields for binary operator
4509 -- plus fields for expression
4511 -- N_Op_Gt
4512 -- Sloc points to >
4513 -- plus fields for binary operator
4514 -- plus fields for expression
4516 -- N_Op_Ge
4517 -- Sloc points to >=
4518 -- plus fields for binary operator
4519 -- plus fields for expression
4521 -- N_Op_Add
4522 -- Sloc points to + (binary)
4523 -- plus fields for binary operator
4524 -- plus fields for expression
4526 -- N_Op_Subtract
4527 -- Sloc points to - (binary)
4528 -- plus fields for binary operator
4529 -- plus fields for expression
4531 -- N_Op_Concat
4532 -- Sloc points to &
4533 -- Is_Component_Left_Opnd (Flag13-Sem)
4534 -- Is_Component_Right_Opnd (Flag14-Sem)
4535 -- plus fields for binary operator
4536 -- plus fields for expression
4538 -- N_Op_Multiply
4539 -- Sloc points to *
4540 -- Treat_Fixed_As_Integer (Flag14-Sem)
4541 -- Rounded_Result (Flag18-Sem)
4542 -- plus fields for binary operator
4543 -- plus fields for expression
4545 -- N_Op_Divide
4546 -- Sloc points to /
4547 -- Treat_Fixed_As_Integer (Flag14-Sem)
4548 -- Do_Division_Check (Flag13-Sem)
4549 -- Rounded_Result (Flag18-Sem)
4550 -- plus fields for binary operator
4551 -- plus fields for expression
4553 -- N_Op_Mod
4554 -- Sloc points to MOD
4555 -- Treat_Fixed_As_Integer (Flag14-Sem)
4556 -- Do_Division_Check (Flag13-Sem)
4557 -- plus fields for binary operator
4558 -- plus fields for expression
4560 -- N_Op_Rem
4561 -- Sloc points to REM
4562 -- Treat_Fixed_As_Integer (Flag14-Sem)
4563 -- Do_Division_Check (Flag13-Sem)
4564 -- plus fields for binary operator
4565 -- plus fields for expression
4567 -- N_Op_Expon
4568 -- Sloc points to **
4569 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4570 -- plus fields for binary operator
4571 -- plus fields for expression
4573 -- N_Op_Plus
4574 -- Sloc points to + (unary)
4575 -- plus fields for unary operator
4576 -- plus fields for expression
4578 -- N_Op_Minus
4579 -- Sloc points to - (unary)
4580 -- plus fields for unary operator
4581 -- plus fields for expression
4583 -- N_Op_Abs
4584 -- Sloc points to ABS
4585 -- plus fields for unary operator
4586 -- plus fields for expression
4588 -- N_Op_Not
4589 -- Sloc points to NOT
4590 -- plus fields for unary operator
4591 -- plus fields for expression
4593 -- See also shift operators in section B.2
4595 -- Note on fixed-point operations passed to Gigi: For adding operators,
4596 -- the semantics is to treat these simply as integer operations, with
4597 -- the small values being ignored (the bounds are already stored in
4598 -- units of small, so that constraint checking works as usual). For the
4599 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4600 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4601 -- thus treat these nodes in identical manner, ignoring small values.
4603 -- Note on equality/inequality tests for records. In the expanded tree,
4604 -- record comparisons are always expanded to be a series of component
4605 -- comparisons, so the back end will never see an equality or inequality
4606 -- operation with operands of a record type.
4608 -- Note on overflow handling: When the overflow checking mode is set to
4609 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4610 -- be modified to use a larger type for the operands and result. In
4611 -- the case where the computed range exceeds that of Long_Long_Integer,
4612 -- and we are running in ELIMINATED mode, the operator node will be
4613 -- changed to be a call to the appropriate routine in System.Bignums.
4615 -- Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4616 -- for signed integer types (since there is no equivalent operator in
4617 -- C). Instead we rewrite such an operation in terms of REM (which is
4618 -- % in C) and other C-available operators.
4620 ------------------------------------
4621 -- 4.5.7 Conditional Expressions --
4622 ------------------------------------
4624 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4626 --------------------------
4627 -- 4.5.7 If Expression --
4628 ----------------------------
4630 -- IF_EXPRESSION ::=
4631 -- if CONDITION then DEPENDENT_EXPRESSION
4632 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4633 -- [else DEPENDENT_EXPRESSION]
4635 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4637 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4638 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4639 -- the Is_Elsif flag is set on the inner if expression.
4641 -- N_If_Expression
4642 -- Sloc points to IF or ELSIF keyword
4643 -- Expressions (List1)
4644 -- Then_Actions (List2-Sem)
4645 -- Else_Actions (List3-Sem)
4646 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4647 -- Do_Overflow_Check (Flag17-Sem)
4648 -- plus fields for expression
4650 -- Expressions here is a three-element list, whose first element is the
4651 -- condition, the second element is the dependent expression after THEN
4652 -- and the third element is the dependent expression after the ELSE
4653 -- (explicitly set to True if missing).
4655 -- Note: the Then_Actions and Else_Actions fields are always set to
4656 -- No_List in the tree passed to the back end. These are used only
4657 -- for temporary processing purposes in the expander. Even though they
4658 -- are semantic fields, their parent pointers are set because analysis
4659 -- of actions nodes in those lists may generate additional actions that
4660 -- need to know their insertion point (for example for the creation of
4661 -- transient scopes).
4663 -- Note: in the tree passed to the back end, if the result type is
4664 -- an unconstrained array, the if expression can only appears in the
4665 -- initializing expression of an object declaration (this avoids the
4666 -- back end having to create a variable length temporary on the fly).
4668 ----------------------------
4669 -- 4.5.7 Case Expression --
4670 ----------------------------
4672 -- CASE_EXPRESSION ::=
4673 -- case SELECTING_EXPRESSION is
4674 -- CASE_EXPRESSION_ALTERNATIVE
4675 -- {,CASE_EXPRESSION_ALTERNATIVE}
4677 -- Note that the Alternatives cannot include pragmas (this contrasts
4678 -- with the situation of case statements where pragmas are allowed).
4680 -- N_Case_Expression
4681 -- Sloc points to CASE
4682 -- Expression (Node3) (the selecting expression)
4683 -- Alternatives (List4) (the case expression alternatives)
4684 -- Do_Overflow_Check (Flag17-Sem)
4686 ----------------------------------------
4687 -- 4.5.7 Case Expression Alternative --
4688 ----------------------------------------
4690 -- CASE_EXPRESSION_ALTERNATIVE ::=
4691 -- when DISCRETE_CHOICE_LIST =>
4692 -- DEPENDENT_EXPRESSION
4694 -- N_Case_Expression_Alternative
4695 -- Sloc points to WHEN
4696 -- Actions (List1)
4697 -- Discrete_Choices (List4)
4698 -- Expression (Node3)
4699 -- Has_SP_Choice (Flag15-Sem)
4701 -- Note: The Actions field temporarily holds any actions associated with
4702 -- evaluation of the Expression. During expansion of the case expression
4703 -- these actions are wrapped into an N_Expressions_With_Actions node
4704 -- replacing the original expression.
4706 -- Note: this node never appears in the tree passed to the back end,
4707 -- since the expander converts case expressions into case statements.
4709 ---------------------------------
4710 -- 4.5.9 Quantified Expression --
4711 ---------------------------------
4713 -- QUANTIFIED_EXPRESSION ::=
4714 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4715 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4717 -- QUANTIFIER ::= all | some
4719 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4720 -- is present at a time, in which case the other one is empty.
4722 -- N_Quantified_Expression
4723 -- Sloc points to FOR
4724 -- Iterator_Specification (Node2)
4725 -- Loop_Parameter_Specification (Node4)
4726 -- Condition (Node1)
4727 -- All_Present (Flag15)
4729 --------------------------
4730 -- 4.6 Type Conversion --
4731 --------------------------
4733 -- TYPE_CONVERSION ::=
4734 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4736 -- In the (NAME) case, the name is stored as the expression
4738 -- Note: the parser never generates a type conversion node, since it
4739 -- looks like an indexed component which is generated by preference.
4740 -- The semantic pass must correct this misidentification.
4742 -- Gigi handles conversions that involve no change in the root type,
4743 -- and also all conversions from integer to floating-point types.
4744 -- Conversions from floating-point to integer are only handled in
4745 -- the case where Float_Truncate flag set. Other conversions from
4746 -- floating-point to integer (involving rounding) and all conversions
4747 -- involving fixed-point types are handled by the expander.
4749 -- Sprint syntax if Float_Truncate set: X^(Y)
4750 -- Sprint syntax if Conversion_OK set X?(Y)
4751 -- Sprint syntax if both flags set X?^(Y)
4753 -- Note: If either the operand or result type is fixed-point, Gigi will
4754 -- only see a type conversion node with Conversion_OK set. The front end
4755 -- takes care of all handling of small's for fixed-point conversions.
4757 -- N_Type_Conversion
4758 -- Sloc points to first token of subtype mark
4759 -- Subtype_Mark (Node4)
4760 -- Expression (Node3)
4761 -- Do_Discriminant_Check (Flag3-Sem)
4762 -- Do_Length_Check (Flag4-Sem)
4763 -- Float_Truncate (Flag11-Sem)
4764 -- Do_Tag_Check (Flag13-Sem)
4765 -- Conversion_OK (Flag14-Sem)
4766 -- Do_Overflow_Check (Flag17-Sem)
4767 -- Rounded_Result (Flag18-Sem)
4768 -- plus fields for expression
4770 -- Note: if a range check is required, then the Do_Range_Check flag
4771 -- is set in the Expression with the check being done against the
4772 -- target type range (after the base type conversion, if any).
4774 -------------------------------
4775 -- 4.7 Qualified Expression --
4776 -------------------------------
4778 -- QUALIFIED_EXPRESSION ::=
4779 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4781 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4782 -- the expression, so the Expression field of this node always points
4783 -- to a parenthesized expression in this case (i.e. Paren_Count will
4784 -- always be non-zero for the referenced expression if it is not an
4785 -- aggregate).
4787 -- N_Qualified_Expression
4788 -- Sloc points to apostrophe
4789 -- Subtype_Mark (Node4)
4790 -- Expression (Node3) expression or aggregate
4791 -- Is_Qualified_Universal_Literal (Flag4-Sem)
4792 -- plus fields for expression
4794 --------------------
4795 -- 4.8 Allocator --
4796 --------------------
4798 -- ALLOCATOR ::=
4799 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4800 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4802 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4804 -- Sprint syntax (when storage pool present)
4805 -- new xxx (storage_pool = pool)
4806 -- or
4807 -- new (subpool) xxx (storage_pool = pool)
4809 -- N_Allocator
4810 -- Sloc points to NEW
4811 -- Expression (Node3) subtype indication or qualified expression
4812 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4813 -- Storage_Pool (Node1-Sem)
4814 -- Procedure_To_Call (Node2-Sem)
4815 -- Alloc_For_BIP_Return (Flag1-Sem)
4816 -- Null_Exclusion_Present (Flag11)
4817 -- No_Initialization (Flag13-Sem)
4818 -- Is_Static_Coextension (Flag14-Sem)
4819 -- Do_Storage_Check (Flag17-Sem)
4820 -- Is_Dynamic_Coextension (Flag18-Sem)
4821 -- plus fields for expression
4823 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4824 -- This flag has a special function in conjunction with the restriction
4825 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4826 -- is not set. This means that if a source allocator is replaced with
4827 -- a constructed allocator, the Comes_From_Source flag should be copied
4828 -- to the newly created allocator.
4830 ---------------------------------
4831 -- 5.1 Sequence Of Statements --
4832 ---------------------------------
4834 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4836 -- Note: Although the parser will not accept a declaration as a
4837 -- statement, the semantic analyzer may insert declarations (e.g.
4838 -- declarations of implicit types needed for execution of other
4839 -- statements) into a sequence of statements, so the code generator
4840 -- should be prepared to accept a declaration where a statement is
4841 -- expected. Note also that pragmas can appear as statements.
4843 --------------------
4844 -- 5.1 Statement --
4845 --------------------
4847 -- STATEMENT ::=
4848 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4850 -- There is no explicit node in the tree for a statement. Instead, the
4851 -- individual statement appears directly. Labels are treated as a
4852 -- kind of statement, i.e. they are linked into a statement list at
4853 -- the point they appear, so the labeled statement appears following
4854 -- the label or labels in the statement list.
4856 ---------------------------
4857 -- 5.1 Simple Statement --
4858 ---------------------------
4860 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4861 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4862 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4863 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4864 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4865 -- | ABORT_STATEMENT | RAISE_STATEMENT
4866 -- | CODE_STATEMENT
4868 -----------------------------
4869 -- 5.1 Compound Statement --
4870 -----------------------------
4872 -- COMPOUND_STATEMENT ::=
4873 -- IF_STATEMENT | CASE_STATEMENT
4874 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4875 -- | EXTENDED_RETURN_STATEMENT
4876 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4878 -------------------------
4879 -- 5.1 Null Statement --
4880 -------------------------
4882 -- NULL_STATEMENT ::= null;
4884 -- N_Null_Statement
4885 -- Sloc points to NULL
4887 ----------------
4888 -- 5.1 Label --
4889 ----------------
4891 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4893 -- Note that the occurrence of a label is not a defining identifier,
4894 -- but rather a referencing occurrence. The defining occurrence is
4895 -- in the implicit label declaration which occurs in the innermost
4896 -- enclosing block.
4898 -- N_Label
4899 -- Sloc points to <<
4900 -- Identifier (Node1) direct name of statement identifier
4901 -- Exception_Junk (Flag8-Sem)
4903 -- Note: Before Ada 2012, a label is always followed by a statement,
4904 -- and this is true in the tree even in Ada 2012 mode (the parser
4905 -- inserts a null statement marked with Comes_From_Source False).
4907 -------------------------------
4908 -- 5.1 Statement Identifier --
4909 -------------------------------
4911 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4913 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4914 -- (not an OPERATOR_SYMBOL)
4916 -------------------------------
4917 -- 5.2 Assignment Statement --
4918 -------------------------------
4920 -- ASSIGNMENT_STATEMENT ::=
4921 -- variable_NAME := EXPRESSION;
4923 -- N_Assignment_Statement
4924 -- Sloc points to :=
4925 -- Name (Node2)
4926 -- Expression (Node3)
4927 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
4928 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
4929 -- Do_Discriminant_Check (Flag3-Sem)
4930 -- Do_Length_Check (Flag4-Sem)
4931 -- Forwards_OK (Flag5-Sem)
4932 -- Backwards_OK (Flag6-Sem)
4933 -- No_Ctrl_Actions (Flag7-Sem)
4934 -- Has_Target_Names (Flag8-Sem)
4935 -- Is_Elaboration_Code (Flag9-Sem)
4936 -- Do_Tag_Check (Flag13-Sem)
4937 -- Componentwise_Assignment (Flag14-Sem)
4938 -- Suppress_Assignment_Checks (Flag18-Sem)
4940 -- Note: if a range check is required, then the Do_Range_Check flag
4941 -- is set in the Expression (right hand side), with the check being
4942 -- done against the type of the Name (left hand side).
4944 -- Note: the back end places some restrictions on the form of the
4945 -- Expression field. If the object being assigned to is Atomic, then
4946 -- the Expression may not have the form of an aggregate (since this
4947 -- might cause the back end to generate separate assignments). In this
4948 -- case the front end must generate an extra temporary and initialize
4949 -- this temporary as required (the temporary itself is not atomic).
4951 ------------------
4952 -- Target_Name --
4953 ------------------
4955 -- N_Target_Name
4956 -- Sloc points to @
4957 -- Etype (Node5-Sem)
4959 -- Note (Ada 2020): node is used during analysis as a placeholder for
4960 -- the value of the LHS of the enclosing assignment statement. Node is
4961 -- eventually rewritten together with enclosing assignment, and backends
4962 -- are not aware of it.
4964 -----------------------
4965 -- 5.3 If Statement --
4966 -----------------------
4968 -- IF_STATEMENT ::=
4969 -- if CONDITION then
4970 -- SEQUENCE_OF_STATEMENTS
4971 -- {elsif CONDITION then
4972 -- SEQUENCE_OF_STATEMENTS}
4973 -- [else
4974 -- SEQUENCE_OF_STATEMENTS]
4975 -- end if;
4977 -- Gigi restriction: This expander ensures that the type of the
4978 -- Condition fields is always Standard.Boolean, even if the type
4979 -- in the source is some non-standard boolean type.
4981 -- N_If_Statement
4982 -- Sloc points to IF
4983 -- Condition (Node1)
4984 -- Then_Statements (List2)
4985 -- Elsif_Parts (List3) (set to No_List if none present)
4986 -- Else_Statements (List4) (set to No_List if no else part present)
4987 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4988 -- From_Conditional_Expression (Flag1-Sem)
4990 -- N_Elsif_Part
4991 -- Sloc points to ELSIF
4992 -- Condition (Node1)
4993 -- Then_Statements (List2)
4994 -- Condition_Actions (List3-Sem)
4996 --------------------
4997 -- 5.3 Condition --
4998 --------------------
5000 -- CONDITION ::= boolean_EXPRESSION
5002 -------------------------
5003 -- 5.4 Case Statement --
5004 -------------------------
5006 -- CASE_STATEMENT ::=
5007 -- case EXPRESSION is
5008 -- CASE_STATEMENT_ALTERNATIVE
5009 -- {CASE_STATEMENT_ALTERNATIVE}
5010 -- end case;
5012 -- Note: the Alternatives can contain pragmas. These only occur at
5013 -- the start of the list, since any pragmas occurring after the first
5014 -- alternative are absorbed into the corresponding statement sequence.
5016 -- N_Case_Statement
5017 -- Sloc points to CASE
5018 -- Expression (Node3)
5019 -- Alternatives (List4)
5020 -- End_Span (Uint5) (set to Uint_0 if expander generated)
5021 -- From_Conditional_Expression (Flag1-Sem)
5023 -- Note: Before Ada 2012, a pragma in a statement sequence is always
5024 -- followed by a statement, and this is true in the tree even in Ada
5025 -- 2012 mode (the parser inserts a null statement marked with the flag
5026 -- Comes_From_Source False).
5028 -------------------------------------
5029 -- 5.4 Case Statement Alternative --
5030 -------------------------------------
5032 -- CASE_STATEMENT_ALTERNATIVE ::=
5033 -- when DISCRETE_CHOICE_LIST =>
5034 -- SEQUENCE_OF_STATEMENTS
5036 -- N_Case_Statement_Alternative
5037 -- Sloc points to WHEN
5038 -- Discrete_Choices (List4)
5039 -- Statements (List3)
5040 -- Has_SP_Choice (Flag15-Sem)
5042 -- Note: in the list of Discrete_Choices, the tree passed to the back
5043 -- end does not have choice entries corresponding to names of statically
5044 -- predicated subtypes. Such entries are always expanded out to the list
5045 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
5046 -- mode does not have this expansion, and has the original choices.
5048 -------------------------
5049 -- 5.5 Loop Statement --
5050 -------------------------
5052 -- LOOP_STATEMENT ::=
5053 -- [loop_STATEMENT_IDENTIFIER :]
5054 -- [ITERATION_SCHEME] loop
5055 -- SEQUENCE_OF_STATEMENTS
5056 -- end loop [loop_IDENTIFIER];
5058 -- Note: The occurrence of a loop label is not a defining identifier
5059 -- but rather a referencing occurrence. The defining occurrence is in
5060 -- the implicit label declaration which occurs in the innermost
5061 -- enclosing block.
5063 -- Note: there is always a loop statement identifier present in the
5064 -- tree, even if none was given in the source. In the case where no loop
5065 -- identifier is given in the source, the parser creates a name of the
5066 -- form _Loop_n, where n is a decimal integer (the two underlines ensure
5067 -- that the loop names created in this manner do not conflict with any
5068 -- user defined identifiers), and the flag Has_Created_Identifier is set
5069 -- to True. The only exception to the rule that all loop statement nodes
5070 -- have identifiers occurs for loops constructed by the expander, and
5071 -- the semantic analyzer will create and supply dummy loop identifiers
5072 -- in these cases.
5074 -- N_Loop_Statement
5075 -- Sloc points to LOOP
5076 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
5077 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
5078 -- Statements (List3)
5079 -- End_Label (Node4)
5080 -- Has_Created_Identifier (Flag15)
5081 -- Is_Null_Loop (Flag16)
5082 -- Suppress_Loop_Warnings (Flag17)
5084 -- Note: the parser fills in the Identifier field if there is an
5085 -- explicit loop identifier. Otherwise the parser leaves this field
5086 -- set to Empty, and then the semantic processing for a loop statement
5087 -- creates an identifier, setting the Has_Created_Identifier flag to
5088 -- True. So after semantic analysis, the Identifier is always set,
5089 -- referencing an identifier whose entity has an Ekind of E_Loop.
5091 ---------------------------
5092 -- 5.5 Iteration Scheme --
5093 ---------------------------
5095 -- ITERATION_SCHEME ::=
5096 -- while CONDITION
5097 -- | for LOOP_PARAMETER_SPECIFICATION
5098 -- | for ITERATOR_SPECIFICATION
5100 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
5101 -- is present at a time, in which case the other one is empty. Both are
5102 -- empty in the case of a WHILE loop.
5104 -- Gigi restriction: The expander ensures that the type of the Condition
5105 -- field is always Standard.Boolean, even if the type in the source is
5106 -- some non-standard boolean type.
5108 -- N_Iteration_Scheme
5109 -- Sloc points to WHILE or FOR
5110 -- Condition (Node1) (set to Empty if FOR case)
5111 -- Condition_Actions (List3-Sem)
5112 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
5113 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
5115 ---------------------------------------
5116 -- 5.5 Loop Parameter Specification --
5117 ---------------------------------------
5119 -- LOOP_PARAMETER_SPECIFICATION ::=
5120 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
5122 -- N_Loop_Parameter_Specification
5123 -- Sloc points to first identifier
5124 -- Defining_Identifier (Node1)
5125 -- Reverse_Present (Flag15)
5126 -- Discrete_Subtype_Definition (Node4)
5128 -----------------------------------
5129 -- 5.5.1 Iterator Specification --
5130 -----------------------------------
5132 -- ITERATOR_SPECIFICATION ::=
5133 -- DEFINING_IDENTIFIER in [reverse] NAME
5134 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
5136 -- N_Iterator_Specification
5137 -- Sloc points to defining identifier
5138 -- Defining_Identifier (Node1)
5139 -- Name (Node2)
5140 -- Reverse_Present (Flag15)
5141 -- Of_Present (Flag16)
5142 -- Subtype_Indication (Node5)
5144 -- Note: The Of_Present flag distinguishes the two forms
5146 --------------------------
5147 -- 5.6 Block Statement --
5148 --------------------------
5150 -- BLOCK_STATEMENT ::=
5151 -- [block_STATEMENT_IDENTIFIER:]
5152 -- [declare
5153 -- DECLARATIVE_PART]
5154 -- begin
5155 -- HANDLED_SEQUENCE_OF_STATEMENTS
5156 -- end [block_IDENTIFIER];
5158 -- Note that the occurrence of a block identifier is not a defining
5159 -- identifier, but rather a referencing occurrence. The defining
5160 -- occurrence is an E_Block entity declared by the implicit label
5161 -- declaration which occurs in the innermost enclosing block statement
5162 -- or body; the block identifier denotes that E_Block.
5164 -- For block statements that come from source code, there is always a
5165 -- block statement identifier present in the tree, denoting an E_Block.
5166 -- In the case where no block identifier is given in the source,
5167 -- the parser creates a name of the form B_n, where n is a decimal
5168 -- integer, and the flag Has_Created_Identifier is set to True. Blocks
5169 -- constructed by the expander usually have no identifier, and no
5170 -- corresponding entity.
5172 -- Note: the block statement created for an extended return statement
5173 -- has an entity, and this entity is an E_Return_Statement, rather than
5174 -- the usual E_Block.
5176 -- Note: Exception_Junk is set for the wrapping blocks created during
5177 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
5179 -- Note: from a control flow viewpoint, a block statement defines an
5180 -- extended basic block, i.e. the entry of the block dominates every
5181 -- statement in the sequence. When generating new statements with
5182 -- exception handlers in the expander at the end of a sequence that
5183 -- comes from source code, it can be necessary to wrap them all in a
5184 -- block statement in order to expose the implicit control flow to
5185 -- gigi and thus prevent it from issuing bogus control flow warnings.
5187 -- N_Block_Statement
5188 -- Sloc points to DECLARE or BEGIN
5189 -- Identifier (Node1) block direct name (set to Empty if not present)
5190 -- Declarations (List2) (set to No_List if no DECLARE part)
5191 -- Handled_Statement_Sequence (Node4)
5192 -- Activation_Chain_Entity (Node3-Sem)
5193 -- Cleanup_Actions (List5-Sem)
5194 -- Has_Created_Identifier (Flag15)
5195 -- Is_Asynchronous_Call_Block (Flag7)
5196 -- Is_Task_Allocation_Block (Flag6)
5197 -- Exception_Junk (Flag8-Sem)
5198 -- Is_Abort_Block (Flag4-Sem)
5199 -- Is_Finalization_Wrapper (Flag9-Sem)
5200 -- Is_Initialization_Block (Flag1-Sem)
5201 -- Is_Task_Master (Flag5-Sem)
5203 -------------------------
5204 -- 5.7 Exit Statement --
5205 -------------------------
5207 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
5209 -- Gigi restriction: The expander ensures that the type of the Condition
5210 -- field is always Standard.Boolean, even if the type in the source is
5211 -- some non-standard boolean type.
5213 -- N_Exit_Statement
5214 -- Sloc points to EXIT
5215 -- Name (Node2) (set to Empty if no loop name present)
5216 -- Condition (Node1) (set to Empty if no WHEN part present)
5217 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
5219 -------------------------
5220 -- 5.9 Goto Statement --
5221 -------------------------
5223 -- GOTO_STATEMENT ::= goto label_NAME;
5225 -- N_Goto_Statement
5226 -- Sloc points to GOTO
5227 -- Name (Node2)
5228 -- Exception_Junk (Flag8-Sem)
5230 ---------------------------------
5231 -- 6.1 Subprogram Declaration --
5232 ---------------------------------
5234 -- SUBPROGRAM_DECLARATION ::=
5235 -- SUBPROGRAM_SPECIFICATION
5236 -- [ASPECT_SPECIFICATIONS];
5238 -- N_Subprogram_Declaration
5239 -- Sloc points to FUNCTION or PROCEDURE
5240 -- Specification (Node1)
5241 -- Body_To_Inline (Node3-Sem)
5242 -- Corresponding_Body (Node5-Sem)
5243 -- Parent_Spec (Node4-Sem)
5244 -- Is_Entry_Barrier_Function (Flag8-Sem)
5245 -- Is_Task_Body_Procedure (Flag1-Sem)
5247 ------------------------------------------
5248 -- 6.1 Abstract Subprogram Declaration --
5249 ------------------------------------------
5251 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
5252 -- SUBPROGRAM_SPECIFICATION is abstract
5253 -- [ASPECT_SPECIFICATIONS];
5255 -- N_Abstract_Subprogram_Declaration
5256 -- Sloc points to ABSTRACT
5257 -- Specification (Node1)
5259 -----------------------------------
5260 -- 6.1 Subprogram Specification --
5261 -----------------------------------
5263 -- SUBPROGRAM_SPECIFICATION ::=
5264 -- [[not] overriding]
5265 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
5266 -- | [[not] overriding]
5267 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
5269 -- Note: there are no separate nodes for the profiles, instead the
5270 -- information appears directly in the following nodes.
5272 -- N_Function_Specification
5273 -- Sloc points to FUNCTION
5274 -- Defining_Unit_Name (Node1) (the designator)
5275 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5276 -- Null_Exclusion_Present (Flag11)
5277 -- Result_Definition (Node4) for result subtype
5278 -- Generic_Parent (Node5-Sem)
5279 -- Must_Override (Flag14) set if overriding indicator present
5280 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5282 -- N_Procedure_Specification
5283 -- Sloc points to PROCEDURE
5284 -- Defining_Unit_Name (Node1)
5285 -- Null_Statement (Node2-Sem) NULL statement for body, if Null_Present
5286 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5287 -- Generic_Parent (Node5-Sem)
5288 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
5289 -- Must_Override (Flag14) set if overriding indicator present
5290 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5292 -- Note: overriding indicator is an Ada 2005 feature
5294 ---------------------
5295 -- 6.1 Designator --
5296 ---------------------
5298 -- DESIGNATOR ::=
5299 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
5301 -- Designators that are simply identifiers or operator symbols appear
5302 -- directly in the tree in this form. The following node is used only
5303 -- in the case where the designator has a parent unit name component.
5305 -- N_Designator
5306 -- Sloc points to period
5307 -- Name (Node2) holds the parent unit name
5308 -- Identifier (Node1)
5310 -- Note: Name is always non-Empty, since this node is only used for the
5311 -- case where a parent library unit package name is present.
5313 -- Note that the identifier can also be an operator symbol here
5315 ------------------------------
5316 -- 6.1 Defining Designator --
5317 ------------------------------
5319 -- DEFINING_DESIGNATOR ::=
5320 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
5322 -------------------------------------
5323 -- 6.1 Defining Program Unit Name --
5324 -------------------------------------
5326 -- DEFINING_PROGRAM_UNIT_NAME ::=
5327 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
5329 -- The parent unit name is present only in the case of a child unit name
5330 -- (permissible only for Ada 95 for a library level unit, i.e. a unit
5331 -- at scope level one). If no such name is present, the defining program
5332 -- unit name is represented simply as the defining identifier. In the
5333 -- child unit case, the following node is used to represent the child
5334 -- unit name.
5336 -- N_Defining_Program_Unit_Name
5337 -- Sloc points to period
5338 -- Name (Node2) holds the parent unit name
5339 -- Defining_Identifier (Node1)
5341 -- Note: Name is always non-Empty, since this node is only used for the
5342 -- case where a parent unit name is present.
5344 --------------------------
5345 -- 6.1 Operator Symbol --
5346 --------------------------
5348 -- OPERATOR_SYMBOL ::= STRING_LITERAL
5350 -- Note: the fields of the N_Operator_Symbol node are laid out to match
5351 -- the corresponding fields of an N_Character_Literal node. This allows
5352 -- easy conversion of the operator symbol node into a character literal
5353 -- node in the case where a string constant of the form of an operator
5354 -- symbol is scanned out as such, but turns out semantically to be a
5355 -- string literal that is not an operator. For details see Sinfo.CN.
5356 -- Change_Operator_Symbol_To_String_Literal.
5358 -- N_Operator_Symbol
5359 -- Sloc points to literal
5360 -- Chars (Name1) contains the Name_Id for the operator symbol
5361 -- Strval (Str3) Id of string value. This is used if the operator
5362 -- symbol turns out to be a normal string after all.
5363 -- Entity (Node4-Sem)
5364 -- Associated_Node (Node4-Sem)
5365 -- Etype (Node5-Sem)
5366 -- Has_Private_View (Flag11-Sem) set in generic units
5368 -- Note: the Strval field may be set to No_String for generated
5369 -- operator symbols that are known not to be string literals
5370 -- semantically.
5372 -----------------------------------
5373 -- 6.1 Defining Operator Symbol --
5374 -----------------------------------
5376 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
5378 -- A defining operator symbol is an entity, which has additional
5379 -- fields depending on the setting of the Ekind field. These
5380 -- additional fields are defined (and access subprograms declared)
5381 -- in package Einfo.
5383 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
5384 -- are deliberately layed out to match the layout of fields in an
5385 -- ordinary N_Operator_Symbol node allowing for easy alteration of
5386 -- an operator symbol node into a defining operator symbol node.
5387 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
5388 -- for further details.
5390 -- N_Defining_Operator_Symbol
5391 -- Sloc points to literal
5392 -- Chars (Name1) contains the Name_Id for the operator symbol
5393 -- Next_Entity (Node2-Sem)
5394 -- Scope (Node3-Sem)
5395 -- Etype (Node5-Sem)
5397 ----------------------------
5398 -- 6.1 Parameter Profile --
5399 ----------------------------
5401 -- PARAMETER_PROFILE ::= [FORMAL_PART]
5403 ---------------------------------------
5404 -- 6.1 Parameter and Result Profile --
5405 ---------------------------------------
5407 -- PARAMETER_AND_RESULT_PROFILE ::=
5408 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
5409 -- | [FORMAL_PART] return ACCESS_DEFINITION
5411 -- There is no explicit node in the tree for a parameter and result
5412 -- profile. Instead the information appears directly in the parent.
5414 ----------------------
5415 -- 6.1 Formal Part --
5416 ----------------------
5418 -- FORMAL_PART ::=
5419 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
5421 ----------------------------------
5422 -- 6.1 Parameter Specification --
5423 ----------------------------------
5425 -- PARAMETER_SPECIFICATION ::=
5426 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
5427 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
5428 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
5429 -- [:= DEFAULT_EXPRESSION]
5431 -- Although the syntax allows multiple identifiers in the list, the
5432 -- semantics is as though successive specifications were given with
5433 -- identical type definition and expression components. To simplify
5434 -- semantic processing, the parser represents a multiple declaration
5435 -- case as a sequence of single Specifications, using the More_Ids and
5436 -- Prev_Ids flags to preserve the original source form as described
5437 -- in the section on "Handling of Defining Identifier Lists".
5439 -- ALIASED can only be present in Ada 2012 mode
5441 -- N_Parameter_Specification
5442 -- Sloc points to first identifier
5443 -- Defining_Identifier (Node1)
5444 -- Aliased_Present (Flag4)
5445 -- In_Present (Flag15)
5446 -- Out_Present (Flag17)
5447 -- Null_Exclusion_Present (Flag11)
5448 -- Parameter_Type (Node2) subtype mark or access definition
5449 -- Expression (Node3) (set to Empty if no default expression present)
5450 -- Do_Accessibility_Check (Flag13-Sem)
5451 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5452 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5453 -- Default_Expression (Node5-Sem)
5455 ---------------
5456 -- 6.1 Mode --
5457 ---------------
5459 -- MODE ::= [in] | in out | out
5461 -- There is no explicit node in the tree for the Mode. Instead the
5462 -- In_Present and Out_Present flags are set in the parent node to
5463 -- record the presence of keywords specifying the mode.
5465 --------------------------
5466 -- 6.3 Subprogram Body --
5467 --------------------------
5469 -- SUBPROGRAM_BODY ::=
5470 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5471 -- DECLARATIVE_PART
5472 -- begin
5473 -- HANDLED_SEQUENCE_OF_STATEMENTS
5474 -- end [DESIGNATOR];
5476 -- N_Subprogram_Body
5477 -- Sloc points to FUNCTION or PROCEDURE
5478 -- Specification (Node1)
5479 -- Declarations (List2)
5480 -- Handled_Statement_Sequence (Node4)
5481 -- Activation_Chain_Entity (Node3-Sem)
5482 -- Corresponding_Spec (Node5-Sem)
5483 -- Acts_As_Spec (Flag4-Sem)
5484 -- Bad_Is_Detected (Flag15) used only by parser
5485 -- Do_Storage_Check (Flag17-Sem)
5486 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5487 -- Is_Entry_Barrier_Function (Flag8-Sem)
5488 -- Is_Protected_Subprogram_Body (Flag7-Sem)
5489 -- Is_Task_Body_Procedure (Flag1-Sem)
5490 -- Is_Task_Master (Flag5-Sem)
5491 -- Was_Attribute_Reference (Flag2-Sem)
5492 -- Was_Expression_Function (Flag18-Sem)
5493 -- Was_Originally_Stub (Flag13-Sem)
5495 -----------------------------------
5496 -- 6.4 Procedure Call Statement --
5497 -----------------------------------
5499 -- PROCEDURE_CALL_STATEMENT ::=
5500 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5502 -- Note: the reason that a procedure call has expression fields is that
5503 -- it semantically resembles an expression, e.g. overloading is allowed
5504 -- and a type is concocted for semantic processing purposes. Certain of
5505 -- these fields, such as Parens are not relevant, but it is easier to
5506 -- just supply all of them together.
5508 -- N_Procedure_Call_Statement
5509 -- Sloc points to first token of name or prefix
5510 -- Name (Node2) stores name or prefix
5511 -- Parameter_Associations (List3) (set to No_List if no
5512 -- actual parameter part)
5513 -- First_Named_Actual (Node4-Sem)
5514 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5515 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
5516 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
5517 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
5518 -- Do_Tag_Check (Flag13-Sem)
5519 -- plus fields for expression
5521 -- If any IN parameter requires a range check, then the corresponding
5522 -- argument expression has the Do_Range_Check flag set, and the range
5523 -- check is done against the formal type. Note that this argument
5524 -- expression may appear directly in the Parameter_Associations list,
5525 -- or may be a descendant of an N_Parameter_Association node that
5526 -- appears in this list.
5528 ------------------------
5529 -- 6.4 Function Call --
5530 ------------------------
5532 -- FUNCTION_CALL ::=
5533 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5535 -- Note: the parser may generate an indexed component node or simply
5536 -- a name node instead of a function call node. The semantic pass must
5537 -- correct this misidentification.
5539 -- N_Function_Call
5540 -- Sloc points to first token of name or prefix
5541 -- Name (Node2) stores name or prefix
5542 -- Parameter_Associations (List3) (set to No_List if no
5543 -- actual parameter part)
5544 -- First_Named_Actual (Node4-Sem)
5545 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5546 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
5547 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
5548 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
5549 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5550 -- Do_Tag_Check (Flag13-Sem)
5551 -- No_Side_Effect_Removal (Flag17-Sem)
5552 -- plus fields for expression
5554 --------------------------------
5555 -- 6.4 Actual Parameter Part --
5556 --------------------------------
5558 -- ACTUAL_PARAMETER_PART ::=
5559 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5561 --------------------------------
5562 -- 6.4 Parameter Association --
5563 --------------------------------
5565 -- PARAMETER_ASSOCIATION ::=
5566 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5568 -- Note: the N_Parameter_Association node is built only if a formal
5569 -- parameter selector name is present, otherwise the parameter
5570 -- association appears in the tree simply as the node for the
5571 -- explicit actual parameter.
5573 -- N_Parameter_Association
5574 -- Sloc points to formal parameter
5575 -- Selector_Name (Node2) (always non-Empty)
5576 -- Explicit_Actual_Parameter (Node3)
5577 -- Next_Named_Actual (Node4-Sem)
5578 -- Is_Accessibility_Actual (Flag13-Sem)
5580 ---------------------------
5581 -- 6.4 Actual Parameter --
5582 ---------------------------
5584 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
5586 ---------------------------
5587 -- 6.5 Return Statement --
5588 ---------------------------
5590 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5592 -- EXTENDED_RETURN_STATEMENT ::=
5593 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5594 -- [:= EXPRESSION] [do
5595 -- HANDLED_SEQUENCE_OF_STATEMENTS
5596 -- end return];
5598 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5600 -- The term "return statement" is defined in 6.5 to mean either a
5601 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5602 -- the use of this term, since it used to mean someting else in earlier
5603 -- versions of Ada.
5605 -- N_Simple_Return_Statement
5606 -- Sloc points to RETURN
5607 -- Return_Statement_Entity (Node5-Sem)
5608 -- Expression (Node3) (set to Empty if no expression present)
5609 -- Storage_Pool (Node1-Sem)
5610 -- Procedure_To_Call (Node2-Sem)
5611 -- Do_Tag_Check (Flag13-Sem)
5612 -- By_Ref (Flag5-Sem)
5613 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5615 -- Note: Return_Statement_Entity points to an E_Return_Statement
5617 -- If a range check is required, then Do_Range_Check is set on the
5618 -- Expression. The check is against the return subtype of the function.
5620 -- N_Extended_Return_Statement
5621 -- Sloc points to RETURN
5622 -- Return_Statement_Entity (Node5-Sem)
5623 -- Return_Object_Declarations (List3)
5624 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5625 -- Storage_Pool (Node1-Sem)
5626 -- Procedure_To_Call (Node2-Sem)
5627 -- Do_Tag_Check (Flag13-Sem)
5628 -- By_Ref (Flag5-Sem)
5630 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5632 -- Note that Return_Object_Declarations is a list containing the
5633 -- N_Object_Declaration -- see comment on this field above.
5635 -- The declared object will have Is_Return_Object = True.
5637 -- There is no such syntactic category as return_object_declaration
5638 -- in the RM. Return_Object_Declarations represents this portion of
5639 -- the syntax for EXTENDED_RETURN_STATEMENT:
5640 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5641 -- [:= EXPRESSION]
5643 -- There are two entities associated with an extended_return_statement:
5644 -- the Return_Statement_Entity represents the statement itself,
5645 -- and the Defining_Identifier of the Object_Declaration in
5646 -- Return_Object_Declarations represents the object being
5647 -- returned. N_Simple_Return_Statement has only the former.
5649 ------------------------------
5650 -- 6.8 Expression Function --
5651 ------------------------------
5653 -- EXPRESSION_FUNCTION ::=
5654 -- FUNCTION SPECIFICATION IS (EXPRESSION)
5655 -- [ASPECT_SPECIFICATIONS];
5657 -- N_Expression_Function
5658 -- Sloc points to FUNCTION
5659 -- Specification (Node1)
5660 -- Expression (Node3)
5661 -- Corresponding_Spec (Node5-Sem)
5663 ------------------------------
5664 -- 7.1 Package Declaration --
5665 ------------------------------
5667 -- PACKAGE_DECLARATION ::=
5668 -- PACKAGE_SPECIFICATION;
5670 -- Note: the activation chain entity for a package spec is used for
5671 -- all tasks declared in the package spec, or in the package body.
5673 -- N_Package_Declaration
5674 -- Sloc points to PACKAGE
5675 -- Specification (Node1)
5676 -- Corresponding_Body (Node5-Sem)
5677 -- Parent_Spec (Node4-Sem)
5678 -- Activation_Chain_Entity (Node3-Sem)
5680 --------------------------------
5681 -- 7.1 Package Specification --
5682 --------------------------------
5684 -- PACKAGE_SPECIFICATION ::=
5685 -- package DEFINING_PROGRAM_UNIT_NAME
5686 -- [ASPECT_SPECIFICATIONS]
5687 -- is
5688 -- {BASIC_DECLARATIVE_ITEM}
5689 -- [private
5690 -- {BASIC_DECLARATIVE_ITEM}]
5691 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5693 -- N_Package_Specification
5694 -- Sloc points to PACKAGE
5695 -- Defining_Unit_Name (Node1)
5696 -- Visible_Declarations (List2)
5697 -- Private_Declarations (List3) (set to No_List if no private
5698 -- part present)
5699 -- End_Label (Node4)
5700 -- Generic_Parent (Node5-Sem)
5701 -- Limited_View_Installed (Flag18-Sem)
5703 -----------------------
5704 -- 7.1 Package Body --
5705 -----------------------
5707 -- PACKAGE_BODY ::=
5708 -- package body DEFINING_PROGRAM_UNIT_NAME
5709 -- [ASPECT_SPECIFICATIONS]
5710 -- is
5711 -- DECLARATIVE_PART
5712 -- [begin
5713 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5714 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5716 -- N_Package_Body
5717 -- Sloc points to PACKAGE
5718 -- Defining_Unit_Name (Node1)
5719 -- Declarations (List2)
5720 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5721 -- Corresponding_Spec (Node5-Sem)
5722 -- Was_Originally_Stub (Flag13-Sem)
5724 -- Note: if a source level package does not contain a handled sequence
5725 -- of statements, then the parser supplies a dummy one with a null
5726 -- sequence of statements. Comes_From_Source will be False in this
5727 -- constructed sequence. The reason we need this is for the End_Label
5728 -- field in the HSS.
5730 -----------------------------------
5731 -- 7.4 Private Type Declaration --
5732 -----------------------------------
5734 -- PRIVATE_TYPE_DECLARATION ::=
5735 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5736 -- is [[abstract] tagged] [limited] private
5737 -- [ASPECT_SPECIFICATIONS];
5739 -- Note: TAGGED is not permitted in Ada 83 mode
5741 -- N_Private_Type_Declaration
5742 -- Sloc points to TYPE
5743 -- Defining_Identifier (Node1)
5744 -- Discriminant_Specifications (List4) (set to No_List if no
5745 -- discriminant part)
5746 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5747 -- Abstract_Present (Flag4)
5748 -- Tagged_Present (Flag15)
5749 -- Limited_Present (Flag17)
5751 ----------------------------------------
5752 -- 7.4 Private Extension Declaration --
5753 ----------------------------------------
5755 -- PRIVATE_EXTENSION_DECLARATION ::=
5756 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5757 -- [abstract] [limited | synchronized]
5758 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5759 -- with private [ASPECT_SPECIFICATIONS];
5761 -- Note: LIMITED, and private extension declarations are not allowed
5762 -- in Ada 83 mode.
5764 -- N_Private_Extension_Declaration
5765 -- Sloc points to TYPE
5766 -- Defining_Identifier (Node1)
5767 -- Uninitialized_Variable (Node3-Sem)
5768 -- Discriminant_Specifications (List4) (set to No_List if no
5769 -- discriminant part)
5770 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5771 -- Abstract_Present (Flag4)
5772 -- Limited_Present (Flag17)
5773 -- Synchronized_Present (Flag7)
5774 -- Subtype_Indication (Node5)
5775 -- Interface_List (List2) (set to No_List if none)
5777 ---------------------
5778 -- 8.4 Use Clause --
5779 ---------------------
5781 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5783 -----------------------------
5784 -- 8.4 Use Package Clause --
5785 -----------------------------
5787 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5789 -- N_Use_Package_Clause
5790 -- Sloc points to USE
5791 -- Prev_Use_Clause (Node1-Sem)
5792 -- Name (Node2)
5793 -- Next_Use_Clause (Node3-Sem)
5794 -- Associated_Node (Node4-Sem)
5795 -- Hidden_By_Use_Clause (Elist5-Sem)
5796 -- Is_Effective_Use_Clause (Flag1)
5797 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5798 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5800 --------------------------
5801 -- 8.4 Use Type Clause --
5802 --------------------------
5804 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5806 -- Note: use type clause is not permitted in Ada 83 mode
5808 -- Note: the ALL keyword can appear only in Ada 2012 mode
5810 -- N_Use_Type_Clause
5811 -- Sloc points to USE
5812 -- Prev_Use_Clause (Node1-Sem)
5813 -- Used_Operations (Elist2-Sem)
5814 -- Next_Use_Clause (Node3-Sem)
5815 -- Subtype_Mark (Node4)
5816 -- Hidden_By_Use_Clause (Elist5-Sem)
5817 -- Is_Effective_Use_Clause (Flag1)
5818 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5819 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5820 -- All_Present (Flag15)
5822 -------------------------------
5823 -- 8.5 Renaming Declaration --
5824 -------------------------------
5826 -- RENAMING_DECLARATION ::=
5827 -- OBJECT_RENAMING_DECLARATION
5828 -- | EXCEPTION_RENAMING_DECLARATION
5829 -- | PACKAGE_RENAMING_DECLARATION
5830 -- | SUBPROGRAM_RENAMING_DECLARATION
5831 -- | GENERIC_RENAMING_DECLARATION
5833 --------------------------------------
5834 -- 8.5 Object Renaming Declaration --
5835 --------------------------------------
5837 -- OBJECT_RENAMING_DECLARATION ::=
5838 -- DEFINING_IDENTIFIER :
5839 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5840 -- [ASPECT_SPECIFICATIONS];
5841 -- | DEFINING_IDENTIFIER :
5842 -- ACCESS_DEFINITION renames object_NAME
5843 -- [ASPECT_SPECIFICATIONS];
5845 -- Note: Access_Definition is an optional field that gives support to
5846 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5847 -- Subtype_Indication field or else the Access_Definition field.
5849 -- N_Object_Renaming_Declaration
5850 -- Sloc points to first identifier
5851 -- Defining_Identifier (Node1)
5852 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5853 -- Subtype_Mark (Node4) (set to Empty if not present)
5854 -- Access_Definition (Node3) (set to Empty if not present)
5855 -- Name (Node2)
5856 -- Corresponding_Generic_Association (Node5-Sem)
5858 -----------------------------------------
5859 -- 8.5 Exception Renaming Declaration --
5860 -----------------------------------------
5862 -- EXCEPTION_RENAMING_DECLARATION ::=
5863 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5864 -- [ASPECT_SPECIFICATIONS];
5866 -- N_Exception_Renaming_Declaration
5867 -- Sloc points to first identifier
5868 -- Defining_Identifier (Node1)
5869 -- Name (Node2)
5871 ---------------------------------------
5872 -- 8.5 Package Renaming Declaration --
5873 ---------------------------------------
5875 -- PACKAGE_RENAMING_DECLARATION ::=
5876 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5877 -- [ASPECT_SPECIFICATIONS];
5879 -- N_Package_Renaming_Declaration
5880 -- Sloc points to PACKAGE
5881 -- Defining_Unit_Name (Node1)
5882 -- Name (Node2)
5883 -- Parent_Spec (Node4-Sem)
5885 ------------------------------------------
5886 -- 8.5 Subprogram Renaming Declaration --
5887 ------------------------------------------
5889 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5890 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5891 -- [ASPECT_SPECIFICATIONS];
5893 -- N_Subprogram_Renaming_Declaration
5894 -- Sloc points to RENAMES
5895 -- Specification (Node1)
5896 -- Name (Node2)
5897 -- Parent_Spec (Node4-Sem)
5898 -- Corresponding_Spec (Node5-Sem)
5899 -- Corresponding_Formal_Spec (Node3-Sem)
5900 -- From_Default (Flag6-Sem)
5902 -----------------------------------------
5903 -- 8.5.5 Generic Renaming Declaration --
5904 -----------------------------------------
5906 -- GENERIC_RENAMING_DECLARATION ::=
5907 -- generic package DEFINING_PROGRAM_UNIT_NAME
5908 -- renames generic_package_NAME
5909 -- [ASPECT_SPECIFICATIONS];
5910 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5911 -- renames generic_procedure_NAME
5912 -- [ASPECT_SPECIFICATIONS];
5913 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5914 -- renames generic_function_NAME
5915 -- [ASPECT_SPECIFICATIONS];
5917 -- N_Generic_Package_Renaming_Declaration
5918 -- Sloc points to GENERIC
5919 -- Defining_Unit_Name (Node1)
5920 -- Name (Node2)
5921 -- Parent_Spec (Node4-Sem)
5923 -- N_Generic_Procedure_Renaming_Declaration
5924 -- Sloc points to GENERIC
5925 -- Defining_Unit_Name (Node1)
5926 -- Name (Node2)
5927 -- Parent_Spec (Node4-Sem)
5929 -- N_Generic_Function_Renaming_Declaration
5930 -- Sloc points to GENERIC
5931 -- Defining_Unit_Name (Node1)
5932 -- Name (Node2)
5933 -- Parent_Spec (Node4-Sem)
5935 --------------------------------
5936 -- 9.1 Task Type Declaration --
5937 --------------------------------
5939 -- TASK_TYPE_DECLARATION ::=
5940 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5941 -- [ASPECT_SPECIFICATIONS]
5942 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5944 -- N_Task_Type_Declaration
5945 -- Sloc points to TASK
5946 -- Defining_Identifier (Node1)
5947 -- Discriminant_Specifications (List4) (set to No_List if no
5948 -- discriminant part)
5949 -- Interface_List (List2) (set to No_List if none)
5950 -- Task_Definition (Node3) (set to Empty if not present)
5951 -- Corresponding_Body (Node5-Sem)
5953 ----------------------------------
5954 -- 9.1 Single Task Declaration --
5955 ----------------------------------
5957 -- SINGLE_TASK_DECLARATION ::=
5958 -- task DEFINING_IDENTIFIER
5959 -- [ASPECT_SPECIFICATIONS]
5960 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5962 -- N_Single_Task_Declaration
5963 -- Sloc points to TASK
5964 -- Defining_Identifier (Node1)
5965 -- Interface_List (List2) (set to No_List if none)
5966 -- Task_Definition (Node3) (set to Empty if not present)
5968 --------------------------
5969 -- 9.1 Task Definition --
5970 --------------------------
5972 -- TASK_DEFINITION ::=
5973 -- {TASK_ITEM}
5974 -- [private
5975 -- {TASK_ITEM}]
5976 -- end [task_IDENTIFIER]
5978 -- Note: as a result of semantic analysis, the list of task items can
5979 -- include implicit type declarations resulting from entry families.
5981 -- N_Task_Definition
5982 -- Sloc points to first token of task definition
5983 -- Visible_Declarations (List2)
5984 -- Private_Declarations (List3) (set to No_List if no private part)
5985 -- End_Label (Node4)
5986 -- Has_Storage_Size_Pragma (Flag5-Sem)
5987 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5989 --------------------
5990 -- 9.1 Task Item --
5991 --------------------
5993 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5995 --------------------
5996 -- 9.1 Task Body --
5997 --------------------
5999 -- TASK_BODY ::=
6000 -- task body task_DEFINING_IDENTIFIER
6001 -- [ASPECT_SPECIFICATIONS]
6002 -- is
6003 -- DECLARATIVE_PART
6004 -- begin
6005 -- HANDLED_SEQUENCE_OF_STATEMENTS
6006 -- end [task_IDENTIFIER];
6008 -- Gigi restriction: This node never appears
6010 -- N_Task_Body
6011 -- Sloc points to TASK
6012 -- Defining_Identifier (Node1)
6013 -- Declarations (List2)
6014 -- Handled_Statement_Sequence (Node4)
6015 -- Is_Task_Master (Flag5-Sem)
6016 -- Activation_Chain_Entity (Node3-Sem)
6017 -- Corresponding_Spec (Node5-Sem)
6018 -- Was_Originally_Stub (Flag13-Sem)
6020 -------------------------------------
6021 -- 9.4 Protected Type Declaration --
6022 -------------------------------------
6024 -- PROTECTED_TYPE_DECLARATION ::=
6025 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
6026 -- [ASPECT_SPECIFICATIONS]
6027 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
6029 -- Note: protected type declarations are not permitted in Ada 83 mode
6031 -- N_Protected_Type_Declaration
6032 -- Sloc points to PROTECTED
6033 -- Defining_Identifier (Node1)
6034 -- Discriminant_Specifications (List4) (set to No_List if no
6035 -- discriminant part)
6036 -- Interface_List (List2) (set to No_List if none)
6037 -- Protected_Definition (Node3)
6038 -- Corresponding_Body (Node5-Sem)
6040 ---------------------------------------
6041 -- 9.4 Single Protected Declaration --
6042 ---------------------------------------
6044 -- SINGLE_PROTECTED_DECLARATION ::=
6045 -- protected DEFINING_IDENTIFIER
6046 -- [ASPECT_SPECIFICATIONS]
6047 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
6049 -- Note: single protected declarations are not allowed in Ada 83 mode
6051 -- N_Single_Protected_Declaration
6052 -- Sloc points to PROTECTED
6053 -- Defining_Identifier (Node1)
6054 -- Interface_List (List2) (set to No_List if none)
6055 -- Protected_Definition (Node3)
6057 -------------------------------
6058 -- 9.4 Protected Definition --
6059 -------------------------------
6061 -- PROTECTED_DEFINITION ::=
6062 -- {PROTECTED_OPERATION_DECLARATION}
6063 -- [private
6064 -- {PROTECTED_ELEMENT_DECLARATION}]
6065 -- end [protected_IDENTIFIER]
6067 -- N_Protected_Definition
6068 -- Sloc points to first token of protected definition
6069 -- Visible_Declarations (List2)
6070 -- Private_Declarations (List3) (set to No_List if no private part)
6071 -- End_Label (Node4)
6073 ------------------------------------------
6074 -- 9.4 Protected Operation Declaration --
6075 ------------------------------------------
6077 -- PROTECTED_OPERATION_DECLARATION ::=
6078 -- SUBPROGRAM_DECLARATION
6079 -- | ENTRY_DECLARATION
6080 -- | REPRESENTATION_CLAUSE
6082 ----------------------------------------
6083 -- 9.4 Protected Element Declaration --
6084 ----------------------------------------
6086 -- PROTECTED_ELEMENT_DECLARATION ::=
6087 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
6089 -------------------------
6090 -- 9.4 Protected Body --
6091 -------------------------
6093 -- PROTECTED_BODY ::=
6094 -- protected body DEFINING_IDENTIFIER
6095 -- [ASPECT_SPECIFICATIONS];
6096 -- is
6097 -- {PROTECTED_OPERATION_ITEM}
6098 -- end [protected_IDENTIFIER];
6100 -- Note: protected bodies are not allowed in Ada 83 mode
6102 -- Gigi restriction: This node never appears
6104 -- N_Protected_Body
6105 -- Sloc points to PROTECTED
6106 -- Defining_Identifier (Node1)
6107 -- Declarations (List2) protected operation items (and pragmas)
6108 -- End_Label (Node4)
6109 -- Corresponding_Spec (Node5-Sem)
6110 -- Was_Originally_Stub (Flag13-Sem)
6112 -----------------------------------
6113 -- 9.4 Protected Operation Item --
6114 -----------------------------------
6116 -- PROTECTED_OPERATION_ITEM ::=
6117 -- SUBPROGRAM_DECLARATION
6118 -- | SUBPROGRAM_BODY
6119 -- | ENTRY_BODY
6120 -- | REPRESENTATION_CLAUSE
6122 ------------------------------
6123 -- 9.5.2 Entry Declaration --
6124 ------------------------------
6126 -- ENTRY_DECLARATION ::=
6127 -- [[not] overriding]
6128 -- entry DEFINING_IDENTIFIER
6129 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
6130 -- [ASPECT_SPECIFICATIONS];
6132 -- N_Entry_Declaration
6133 -- Sloc points to ENTRY
6134 -- Defining_Identifier (Node1)
6135 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
6136 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6137 -- Corresponding_Body (Node5-Sem)
6138 -- Must_Override (Flag14) set if overriding indicator present
6139 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6141 -- Note: overriding indicator is an Ada 2005 feature
6143 -----------------------------
6144 -- 9.5.2 Accept statement --
6145 -----------------------------
6147 -- ACCEPT_STATEMENT ::=
6148 -- accept entry_DIRECT_NAME
6149 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
6150 -- HANDLED_SEQUENCE_OF_STATEMENTS
6151 -- end [entry_IDENTIFIER]];
6153 -- Gigi restriction: This node never appears
6155 -- Note: there are no explicit declarations allowed in an accept
6156 -- statement. However, the implicit declarations for any statement
6157 -- identifiers (labels and block/loop identifiers) are declarations
6158 -- that belong logically to the accept statement, and that is why
6159 -- there is a Declarations field in this node.
6161 -- N_Accept_Statement
6162 -- Sloc points to ACCEPT
6163 -- Entry_Direct_Name (Node1)
6164 -- Entry_Index (Node5) (set to Empty if not present)
6165 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6166 -- Handled_Statement_Sequence (Node4)
6167 -- Declarations (List2) (set to No_List if no declarations)
6169 ------------------------
6170 -- 9.5.2 Entry Index --
6171 ------------------------
6173 -- ENTRY_INDEX ::= EXPRESSION
6175 -----------------------
6176 -- 9.5.2 Entry Body --
6177 -----------------------
6179 -- ENTRY_BODY ::=
6180 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
6181 -- DECLARATIVE_PART
6182 -- begin
6183 -- HANDLED_SEQUENCE_OF_STATEMENTS
6184 -- end [entry_IDENTIFIER];
6186 -- ENTRY_BARRIER ::= when CONDITION
6188 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
6189 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
6190 -- too full (it would otherwise have too many fields)
6192 -- Gigi restriction: This node never appears
6194 -- N_Entry_Body
6195 -- Sloc points to ENTRY
6196 -- Defining_Identifier (Node1)
6197 -- Entry_Body_Formal_Part (Node5)
6198 -- Declarations (List2)
6199 -- Handled_Statement_Sequence (Node4)
6200 -- Activation_Chain_Entity (Node3-Sem)
6202 -----------------------------------
6203 -- 9.5.2 Entry Body Formal Part --
6204 -----------------------------------
6206 -- ENTRY_BODY_FORMAL_PART ::=
6207 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
6209 -- Note that an entry body formal part node is present even if it is
6210 -- empty. This reflects the grammar, in which it is the components of
6211 -- the entry body formal part that are optional, not the entry body
6212 -- formal part itself. Also this means that the barrier condition
6213 -- always has somewhere to be stored.
6215 -- Gigi restriction: This node never appears
6217 -- N_Entry_Body_Formal_Part
6218 -- Sloc points to first token
6219 -- Entry_Index_Specification (Node4) (set to Empty if not present)
6220 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6221 -- Condition (Node1) from entry barrier of entry body
6223 --------------------------
6224 -- 9.5.2 Entry Barrier --
6225 --------------------------
6227 -- ENTRY_BARRIER ::= when CONDITION
6229 --------------------------------------
6230 -- 9.5.2 Entry Index Specification --
6231 --------------------------------------
6233 -- ENTRY_INDEX_SPECIFICATION ::=
6234 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
6236 -- Gigi restriction: This node never appears
6238 -- N_Entry_Index_Specification
6239 -- Sloc points to FOR
6240 -- Defining_Identifier (Node1)
6241 -- Discrete_Subtype_Definition (Node4)
6243 ---------------------------------
6244 -- 9.5.3 Entry Call Statement --
6245 ---------------------------------
6247 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
6249 -- The parser may generate a procedure call for this construct. The
6250 -- semantic pass must correct this misidentification where needed.
6252 -- Gigi restriction: This node never appears
6254 -- N_Entry_Call_Statement
6255 -- Sloc points to first token of name
6256 -- Name (Node2)
6257 -- Parameter_Associations (List3) (set to No_List if no
6258 -- actual parameter part)
6259 -- First_Named_Actual (Node4-Sem)
6260 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
6261 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
6262 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
6264 ------------------------------
6265 -- 9.5.4 Requeue Statement --
6266 ------------------------------
6268 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
6270 -- Note: requeue statements are not permitted in Ada 83 mode
6272 -- Gigi restriction: This node never appears
6274 -- N_Requeue_Statement
6275 -- Sloc points to REQUEUE
6276 -- Name (Node2)
6277 -- Abort_Present (Flag15)
6278 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
6279 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
6280 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
6282 --------------------------
6283 -- 9.6 Delay Statement --
6284 --------------------------
6286 -- DELAY_STATEMENT ::=
6287 -- DELAY_UNTIL_STATEMENT
6288 -- | DELAY_RELATIVE_STATEMENT
6290 --------------------------------
6291 -- 9.6 Delay Until Statement --
6292 --------------------------------
6294 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
6296 -- Note: delay until statements are not permitted in Ada 83 mode
6298 -- Gigi restriction: This node never appears
6300 -- N_Delay_Until_Statement
6301 -- Sloc points to DELAY
6302 -- Expression (Node3)
6304 -----------------------------------
6305 -- 9.6 Delay Relative Statement --
6306 -----------------------------------
6308 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
6310 -- Gigi restriction: This node never appears
6312 -- N_Delay_Relative_Statement
6313 -- Sloc points to DELAY
6314 -- Expression (Node3)
6316 ---------------------------
6317 -- 9.7 Select Statement --
6318 ---------------------------
6320 -- SELECT_STATEMENT ::=
6321 -- SELECTIVE_ACCEPT
6322 -- | TIMED_ENTRY_CALL
6323 -- | CONDITIONAL_ENTRY_CALL
6324 -- | ASYNCHRONOUS_SELECT
6326 -----------------------------
6327 -- 9.7.1 Selective Accept --
6328 -----------------------------
6330 -- SELECTIVE_ACCEPT ::=
6331 -- select
6332 -- [GUARD]
6333 -- SELECT_ALTERNATIVE
6334 -- {or
6335 -- [GUARD]
6336 -- SELECT_ALTERNATIVE}
6337 -- [else
6338 -- SEQUENCE_OF_STATEMENTS]
6339 -- end select;
6341 -- Gigi restriction: This node never appears
6343 -- Note: the guard expression, if present, appears in the node for
6344 -- the select alternative.
6346 -- N_Selective_Accept
6347 -- Sloc points to SELECT
6348 -- Select_Alternatives (List1)
6349 -- Else_Statements (List4) (set to No_List if no else part)
6351 ------------------
6352 -- 9.7.1 Guard --
6353 ------------------
6355 -- GUARD ::= when CONDITION =>
6357 -- As noted above, the CONDITION that is part of a GUARD is included
6358 -- in the node for the select alternative for convenience.
6360 -------------------------------
6361 -- 9.7.1 Select Alternative --
6362 -------------------------------
6364 -- SELECT_ALTERNATIVE ::=
6365 -- ACCEPT_ALTERNATIVE
6366 -- | DELAY_ALTERNATIVE
6367 -- | TERMINATE_ALTERNATIVE
6369 -------------------------------
6370 -- 9.7.1 Accept Alternative --
6371 -------------------------------
6373 -- ACCEPT_ALTERNATIVE ::=
6374 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
6376 -- Gigi restriction: This node never appears
6378 -- N_Accept_Alternative
6379 -- Sloc points to ACCEPT
6380 -- Accept_Statement (Node2)
6381 -- Condition (Node1) from the guard (set to Empty if no guard present)
6382 -- Statements (List3) (set to Empty_List if no statements)
6383 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6384 -- Accept_Handler_Records (List5-Sem)
6386 ------------------------------
6387 -- 9.7.1 Delay Alternative --
6388 ------------------------------
6390 -- DELAY_ALTERNATIVE ::=
6391 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
6393 -- Gigi restriction: This node never appears
6395 -- N_Delay_Alternative
6396 -- Sloc points to DELAY
6397 -- Delay_Statement (Node2)
6398 -- Condition (Node1) from the guard (set to Empty if no guard present)
6399 -- Statements (List3) (set to Empty_List if no statements)
6400 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6402 ----------------------------------
6403 -- 9.7.1 Terminate Alternative --
6404 ----------------------------------
6406 -- TERMINATE_ALTERNATIVE ::= terminate;
6408 -- Gigi restriction: This node never appears
6410 -- N_Terminate_Alternative
6411 -- Sloc points to TERMINATE
6412 -- Condition (Node1) from the guard (set to Empty if no guard present)
6413 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6414 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
6416 -----------------------------
6417 -- 9.7.2 Timed Entry Call --
6418 -----------------------------
6420 -- TIMED_ENTRY_CALL ::=
6421 -- select
6422 -- ENTRY_CALL_ALTERNATIVE
6423 -- or
6424 -- DELAY_ALTERNATIVE
6425 -- end select;
6427 -- Gigi restriction: This node never appears
6429 -- N_Timed_Entry_Call
6430 -- Sloc points to SELECT
6431 -- Entry_Call_Alternative (Node1)
6432 -- Delay_Alternative (Node4)
6434 -----------------------------------
6435 -- 9.7.2 Entry Call Alternative --
6436 -----------------------------------
6438 -- ENTRY_CALL_ALTERNATIVE ::=
6439 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
6441 -- PROCEDURE_OR_ENTRY_CALL ::=
6442 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
6444 -- Gigi restriction: This node never appears
6446 -- N_Entry_Call_Alternative
6447 -- Sloc points to first token of entry call statement
6448 -- Entry_Call_Statement (Node1)
6449 -- Statements (List3) (set to Empty_List if no statements)
6450 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6452 -----------------------------------
6453 -- 9.7.3 Conditional Entry Call --
6454 -----------------------------------
6456 -- CONDITIONAL_ENTRY_CALL ::=
6457 -- select
6458 -- ENTRY_CALL_ALTERNATIVE
6459 -- else
6460 -- SEQUENCE_OF_STATEMENTS
6461 -- end select;
6463 -- Gigi restriction: This node never appears
6465 -- N_Conditional_Entry_Call
6466 -- Sloc points to SELECT
6467 -- Entry_Call_Alternative (Node1)
6468 -- Else_Statements (List4)
6470 --------------------------------
6471 -- 9.7.4 Asynchronous Select --
6472 --------------------------------
6474 -- ASYNCHRONOUS_SELECT ::=
6475 -- select
6476 -- TRIGGERING_ALTERNATIVE
6477 -- then abort
6478 -- ABORTABLE_PART
6479 -- end select;
6481 -- Note: asynchronous select is not permitted in Ada 83 mode
6483 -- Gigi restriction: This node never appears
6485 -- N_Asynchronous_Select
6486 -- Sloc points to SELECT
6487 -- Triggering_Alternative (Node1)
6488 -- Abortable_Part (Node2)
6490 -----------------------------------
6491 -- 9.7.4 Triggering Alternative --
6492 -----------------------------------
6494 -- TRIGGERING_ALTERNATIVE ::=
6495 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6497 -- Gigi restriction: This node never appears
6499 -- N_Triggering_Alternative
6500 -- Sloc points to first token of triggering statement
6501 -- Triggering_Statement (Node1)
6502 -- Statements (List3) (set to Empty_List if no statements)
6503 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6505 ---------------------------------
6506 -- 9.7.4 Triggering Statement --
6507 ---------------------------------
6509 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6511 ---------------------------
6512 -- 9.7.4 Abortable Part --
6513 ---------------------------
6515 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6517 -- Gigi restriction: This node never appears
6519 -- N_Abortable_Part
6520 -- Sloc points to ABORT
6521 -- Statements (List3)
6523 --------------------------
6524 -- 9.8 Abort Statement --
6525 --------------------------
6527 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6529 -- Gigi restriction: This node never appears
6531 -- N_Abort_Statement
6532 -- Sloc points to ABORT
6533 -- Names (List2)
6535 -------------------------
6536 -- 10.1.1 Compilation --
6537 -------------------------
6539 -- COMPILATION ::= {COMPILATION_UNIT}
6541 -- There is no explicit node in the tree for a compilation, since in
6542 -- general the compiler is processing only a single compilation unit
6543 -- at a time. It is possible to parse multiple units in syntax check
6544 -- only mode, but the trees are discarded in that case.
6546 ------------------------------
6547 -- 10.1.1 Compilation Unit --
6548 ------------------------------
6550 -- COMPILATION_UNIT ::=
6551 -- CONTEXT_CLAUSE LIBRARY_ITEM
6552 -- | CONTEXT_CLAUSE SUBUNIT
6554 -- The N_Compilation_Unit node itself represents the above syntax.
6555 -- However, there are two additional items not reflected in the above
6556 -- syntax. First we have the global declarations that are added by the
6557 -- code generator. These are outer level declarations (so they cannot
6558 -- be represented as being inside the units). An example is the wrapper
6559 -- subprograms that are created to do ABE checking. As always a list of
6560 -- declarations can contain actions as well (i.e. statements), and such
6561 -- statements are executed as part of the elaboration of the unit. Note
6562 -- that all such declarations are elaborated before the library unit.
6564 -- Similarly, certain actions need to be elaborated at the completion
6565 -- of elaboration of the library unit (notably the statement that sets
6566 -- the Boolean flag indicating that elaboration is complete).
6568 -- The third item not reflected in the syntax is pragmas that appear
6569 -- after the compilation unit. As always pragmas are a problem since
6570 -- they are not part of the formal syntax, but can be stuck into the
6571 -- source following a set of ad hoc rules, and we have to find an ad
6572 -- hoc way of sticking them into the tree. For pragmas that appear
6573 -- before the library unit, we just consider them to be part of the
6574 -- context clause, and pragmas can appear in the Context_Items list
6575 -- of the compilation unit. However, pragmas can also appear after
6576 -- the library item.
6578 -- To deal with all these problems, we create an auxiliary node for
6579 -- a compilation unit, referenced from the N_Compilation_Unit node,
6580 -- that contains these items.
6582 -- N_Compilation_Unit
6583 -- Sloc points to first token of defining unit name
6584 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6585 -- Context_Items (List1) context items and pragmas preceding unit
6586 -- Private_Present (Flag15) set if library unit has private keyword
6587 -- Unit (Node2) library item or subunit
6588 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6589 -- Has_No_Elaboration_Code (Flag17-Sem)
6590 -- Body_Required (Flag13-Sem) set for spec if body is required
6591 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6592 -- Context_Pending (Flag16-Sem)
6593 -- First_Inlined_Subprogram (Node3-Sem)
6594 -- Has_Pragma_Suppress_All (Flag14-Sem)
6596 -- N_Compilation_Unit_Aux
6597 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6598 -- Declarations (List2) (set to No_List if no global declarations)
6599 -- Actions (List1) (set to No_List if no actions)
6600 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6601 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6602 -- Default_Storage_Pool (Node3-Sem)
6604 --------------------------
6605 -- 10.1.1 Library Item --
6606 --------------------------
6608 -- LIBRARY_ITEM ::=
6609 -- [private] LIBRARY_UNIT_DECLARATION
6610 -- | LIBRARY_UNIT_BODY
6611 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6613 -- Note: PRIVATE is not allowed in Ada 83 mode
6615 -- There is no explicit node in the tree for library item, instead
6616 -- the declaration or body, and the flag for private if present,
6617 -- appear in the N_Compilation_Unit node.
6619 --------------------------------------
6620 -- 10.1.1 Library Unit Declaration --
6621 --------------------------------------
6623 -- LIBRARY_UNIT_DECLARATION ::=
6624 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6625 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6627 -----------------------------------------------
6628 -- 10.1.1 Library Unit Renaming Declaration --
6629 -----------------------------------------------
6631 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6632 -- PACKAGE_RENAMING_DECLARATION
6633 -- | GENERIC_RENAMING_DECLARATION
6634 -- | SUBPROGRAM_RENAMING_DECLARATION
6636 -------------------------------
6637 -- 10.1.1 Library unit body --
6638 -------------------------------
6640 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6642 ------------------------------
6643 -- 10.1.1 Parent Unit Name --
6644 ------------------------------
6646 -- PARENT_UNIT_NAME ::= NAME
6648 ----------------------------
6649 -- 10.1.2 Context clause --
6650 ----------------------------
6652 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6654 -- The context clause can include pragmas, and any pragmas that appear
6655 -- before the context clause proper (i.e. all configuration pragmas,
6656 -- also appear at the front of this list).
6658 --------------------------
6659 -- 10.1.2 Context_Item --
6660 --------------------------
6662 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6664 -------------------------
6665 -- 10.1.2 With clause --
6666 -------------------------
6668 -- WITH_CLAUSE ::=
6669 -- with library_unit_NAME {,library_unit_NAME};
6671 -- A separate With clause is built for each name, so that we have
6672 -- a Corresponding_Spec field for each with'ed spec. The flags
6673 -- First_Name and Last_Name are used to reconstruct the exact
6674 -- source form. When a list of names appears in one with clause,
6675 -- the first name in the list has First_Name set, and the last
6676 -- has Last_Name set. If the with clause has only one name, then
6677 -- both of the flags First_Name and Last_Name are set in this name.
6679 -- Note: in the case of implicit with's that are installed by the
6680 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6681 -- set to Standard_Location, but it is incorrect to test the Sloc
6682 -- to find out if a with clause is implicit, test the flag instead.
6684 -- N_With_Clause
6685 -- Sloc points to first token of library unit name
6686 -- Withed_Body (Node1-Sem)
6687 -- Name (Node2)
6688 -- Next_Implicit_With (Node3-Sem)
6689 -- Library_Unit (Node4-Sem)
6690 -- Corresponding_Spec (Node5-Sem)
6691 -- First_Name (Flag5) (set to True if first name or only one name)
6692 -- Last_Name (Flag6) (set to True if last name or only one name)
6693 -- Context_Installed (Flag13-Sem)
6694 -- Elaborate_Present (Flag4-Sem)
6695 -- Elaborate_All_Present (Flag14-Sem)
6696 -- Elaborate_All_Desirable (Flag9-Sem)
6697 -- Elaborate_Desirable (Flag11-Sem)
6698 -- Private_Present (Flag15) set if with_clause has private keyword
6699 -- Implicit_With (Flag16-Sem)
6700 -- Implicit_With_From_Instantiation (Flag12-Sem)
6701 -- Limited_Present (Flag17) set if LIMITED is present
6702 -- Limited_View_Installed (Flag18-Sem)
6703 -- Unreferenced_In_Spec (Flag7-Sem)
6704 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6706 -- Note: Limited_Present and Limited_View_Installed are used to support
6707 -- the implementation of Ada 2005 (AI-50217).
6709 -- Similarly, Private_Present is used to support the implementation of
6710 -- Ada 2005 (AI-50262).
6712 -- Note: if the WITH clause refers to a standard library unit, then a
6713 -- limited with clause is changed into a normal with clause, because we
6714 -- are not prepared to deal with limited with in the context of Rtsfind.
6715 -- So in this case, the Limited_Present flag will be False in the final
6716 -- tree. However, we do NOT do this transformation in ASIS mode, so for
6717 -- ASIS the flag will remain set in this situation.
6719 ----------------------
6720 -- With_Type clause --
6721 ----------------------
6723 -- This is a GNAT extension, used to implement mutually recursive
6724 -- types declared in different packages.
6726 -- Note: this is now obsolete. The functionality of this construct
6727 -- is now implemented by the Ada 2005 limited_with_clause.
6729 ---------------------
6730 -- 10.2 Body stub --
6731 ---------------------
6733 -- BODY_STUB ::=
6734 -- SUBPROGRAM_BODY_STUB
6735 -- | PACKAGE_BODY_STUB
6736 -- | TASK_BODY_STUB
6737 -- | PROTECTED_BODY_STUB
6739 ----------------------------------
6740 -- 10.1.3 Subprogram Body Stub --
6741 ----------------------------------
6743 -- SUBPROGRAM_BODY_STUB ::=
6744 -- SUBPROGRAM_SPECIFICATION is separate
6745 -- [ASPECT_SPECIFICATION];
6747 -- N_Subprogram_Body_Stub
6748 -- Sloc points to FUNCTION or PROCEDURE
6749 -- Specification (Node1)
6750 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6751 -- Library_Unit (Node4-Sem) points to the subunit
6752 -- Corresponding_Body (Node5-Sem)
6754 -------------------------------
6755 -- 10.1.3 Package Body Stub --
6756 -------------------------------
6758 -- PACKAGE_BODY_STUB ::=
6759 -- package body DEFINING_IDENTIFIER is separate
6760 -- [ASPECT_SPECIFICATION];
6762 -- N_Package_Body_Stub
6763 -- Sloc points to PACKAGE
6764 -- Defining_Identifier (Node1)
6765 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6766 -- Library_Unit (Node4-Sem) points to the subunit
6767 -- Corresponding_Body (Node5-Sem)
6769 ----------------------------
6770 -- 10.1.3 Task Body Stub --
6771 ----------------------------
6773 -- TASK_BODY_STUB ::=
6774 -- task body DEFINING_IDENTIFIER is separate
6775 -- [ASPECT_SPECIFICATION];
6777 -- N_Task_Body_Stub
6778 -- Sloc points to TASK
6779 -- Defining_Identifier (Node1)
6780 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6781 -- Library_Unit (Node4-Sem) points to the subunit
6782 -- Corresponding_Body (Node5-Sem)
6784 ---------------------------------
6785 -- 10.1.3 Protected Body Stub --
6786 ---------------------------------
6788 -- PROTECTED_BODY_STUB ::=
6789 -- protected body DEFINING_IDENTIFIER is separate
6790 -- [ASPECT_SPECIFICATION];
6792 -- Note: protected body stubs are not allowed in Ada 83 mode
6794 -- N_Protected_Body_Stub
6795 -- Sloc points to PROTECTED
6796 -- Defining_Identifier (Node1)
6797 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6798 -- Library_Unit (Node4-Sem) points to the subunit
6799 -- Corresponding_Body (Node5-Sem)
6801 ---------------------
6802 -- 10.1.3 Subunit --
6803 ---------------------
6805 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6807 -- N_Subunit
6808 -- Sloc points to SEPARATE
6809 -- Name (Node2) is the name of the parent unit
6810 -- Proper_Body (Node1) is the subunit body
6811 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6813 ---------------------------------
6814 -- 11.1 Exception Declaration --
6815 ---------------------------------
6817 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6818 -- [ASPECT_SPECIFICATIONS];
6820 -- For consistency with object declarations etc., the parser converts
6821 -- the case of multiple identifiers being declared to a series of
6822 -- declarations in which the expression is copied, using the More_Ids
6823 -- and Prev_Ids flags to remember the source form as described in the
6824 -- section on "Handling of Defining Identifier Lists".
6826 -- N_Exception_Declaration
6827 -- Sloc points to EXCEPTION
6828 -- Defining_Identifier (Node1)
6829 -- Expression (Node3-Sem)
6830 -- Renaming_Exception (Node2-Sem)
6831 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6832 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6834 ------------------------------------------
6835 -- 11.2 Handled Sequence Of Statements --
6836 ------------------------------------------
6838 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6839 -- SEQUENCE_OF_STATEMENTS
6840 -- [exception
6841 -- EXCEPTION_HANDLER
6842 -- {EXCEPTION_HANDLER}]
6843 -- [at end
6844 -- cleanup_procedure_call (param, param, param, ...);]
6846 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6847 -- used only internally currently, but is considered to be syntactic.
6848 -- At the moment, the only cleanup action allowed is a single call to
6849 -- a parameterless procedure, and the Identifier field of the node is
6850 -- the procedure to be called. The cleanup action occurs whenever the
6851 -- sequence of statements is left for any reason. The possible reasons
6852 -- are:
6853 -- 1. reaching the end of the sequence
6854 -- 2. exit, return, or goto
6855 -- 3. exception or abort
6856 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6857 -- entirely in the back end. In this case, a handled sequence of
6858 -- statements with an "at end" cannot also have exception handlers.
6859 -- For other back ends, such as gcc with front-end SJLJ, the
6860 -- implementation is split between the front end and back end; the front
6861 -- end implements 3, and the back end implements 1 and 2. In this case,
6862 -- if there is an "at end", the front end inserts the appropriate
6863 -- exception handler, and this handler takes precedence over "at end"
6864 -- in case of exception.
6866 -- The inserted exception handler is of the form:
6868 -- when all others =>
6869 -- cleanup;
6870 -- raise;
6872 -- where cleanup is the procedure to be called. The reason we do this is
6873 -- so that the front end can handle the necessary entries in the
6874 -- exception tables, and other exception handler actions required as
6875 -- part of the normal handling for exception handlers.
6877 -- The AT END cleanup handler protects only the sequence of statements
6878 -- (not the associated declarations of the parent), just like exception
6879 -- handlers. The big difference is that the cleanup procedure is called
6880 -- on either a normal or an abnormal exit from the statement sequence.
6882 -- Note: the list of Exception_Handlers can contain pragmas as well
6883 -- as actual handlers. In practice these pragmas can only occur at
6884 -- the start of the list, since any pragmas occurring later on will
6885 -- be included in the statement list of the corresponding handler.
6887 -- Note: although in the Ada syntax, the sequence of statements in
6888 -- a handled sequence of statements can only contain statements, we
6889 -- allow free mixing of declarations and statements in the resulting
6890 -- expanded tree. This is for example used to deal with the case of
6891 -- a cleanup procedure that must handle declarations as well as the
6892 -- statements of a block.
6894 -- Note: the cleanup_procedure_call does not go through the common
6895 -- processing for calls, which in particular means that it will not be
6896 -- automatically inlined in all cases, even though the procedure to be
6897 -- called is marked inline. More specifically, if the procedure comes
6898 -- from another unit than the main source unit, for example a run-time
6899 -- unit, then it needs to be manually added to the list of bodies to be
6900 -- inlined by invoking Add_Inlined_Body on it.
6902 -- N_Handled_Sequence_Of_Statements
6903 -- Sloc points to first token of first statement
6904 -- Statements (List3)
6905 -- End_Label (Node4) (set to Empty if expander generated)
6906 -- Exception_Handlers (List5) (set to No_List if none present)
6907 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6908 -- First_Real_Statement (Node2-Sem)
6910 -- Note: the parent always contains a Declarations field which contains
6911 -- declarations associated with the handled sequence of statements. This
6912 -- is true even in the case of an accept statement (see description of
6913 -- the N_Accept_Statement node).
6915 -- End_Label refers to the containing construct
6917 -----------------------------
6918 -- 11.2 Exception Handler --
6919 -----------------------------
6921 -- EXCEPTION_HANDLER ::=
6922 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6923 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6924 -- SEQUENCE_OF_STATEMENTS
6926 -- Note: choice parameter specification is not allowed in Ada 83 mode
6928 -- N_Exception_Handler
6929 -- Sloc points to WHEN
6930 -- Choice_Parameter (Node2) (set to Empty if not present)
6931 -- Exception_Choices (List4)
6932 -- Statements (List3)
6933 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6934 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6935 -- Local_Raise_Not_OK (Flag7-Sem)
6936 -- Has_Local_Raise (Flag8-Sem)
6938 ------------------------------------------
6939 -- 11.2 Choice parameter specification --
6940 ------------------------------------------
6942 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6944 ----------------------------
6945 -- 11.2 Exception Choice --
6946 ----------------------------
6948 -- EXCEPTION_CHOICE ::= exception_NAME | others
6950 -- Except in the case of OTHERS, no explicit node appears in the tree
6951 -- for exception choice. Instead the exception name appears directly.
6952 -- An OTHERS choice is represented by a N_Others_Choice node (see
6953 -- section 3.8.1.
6955 -- Note: for the exception choice created for an at end handler, the
6956 -- exception choice is an N_Others_Choice node with All_Others set.
6958 ---------------------------
6959 -- 11.3 Raise Statement --
6960 ---------------------------
6962 -- RAISE_STATEMENT ::= raise [exception_NAME];
6964 -- In Ada 2005, we have
6966 -- RAISE_STATEMENT ::=
6967 -- raise; | raise exception_NAME [with string_EXPRESSION];
6969 -- N_Raise_Statement
6970 -- Sloc points to RAISE
6971 -- Name (Node2) (set to Empty if no exception name present)
6972 -- Expression (Node3) (set to Empty if no expression present)
6973 -- From_At_End (Flag4-Sem)
6975 ----------------------------
6976 -- 11.3 Raise Expression --
6977 ----------------------------
6979 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6981 -- N_Raise_Expression
6982 -- Sloc points to RAISE
6983 -- Name (Node2) (always present)
6984 -- Expression (Node3) (set to Empty if no expression present)
6985 -- Convert_To_Return_False (Flag13-Sem)
6986 -- plus fields for expression
6988 -------------------------------
6989 -- 12.1 Generic Declaration --
6990 -------------------------------
6992 -- GENERIC_DECLARATION ::=
6993 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6995 ------------------------------------------
6996 -- 12.1 Generic Subprogram Declaration --
6997 ------------------------------------------
6999 -- GENERIC_SUBPROGRAM_DECLARATION ::=
7000 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
7001 -- [ASPECT_SPECIFICATIONS];
7003 -- Note: Generic_Formal_Declarations can include pragmas
7005 -- N_Generic_Subprogram_Declaration
7006 -- Sloc points to GENERIC
7007 -- Specification (Node1) subprogram specification
7008 -- Corresponding_Body (Node5-Sem)
7009 -- Generic_Formal_Declarations (List2) from generic formal part
7010 -- Parent_Spec (Node4-Sem)
7012 ---------------------------------------
7013 -- 12.1 Generic Package Declaration --
7014 ---------------------------------------
7016 -- GENERIC_PACKAGE_DECLARATION ::=
7017 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
7018 -- [ASPECT_SPECIFICATIONS];
7020 -- Note: when we do generics right, the Activation_Chain_Entity entry
7021 -- for this node can be removed (since the expander won't see generic
7022 -- units any more)???.
7024 -- Note: Generic_Formal_Declarations can include pragmas
7026 -- N_Generic_Package_Declaration
7027 -- Sloc points to GENERIC
7028 -- Specification (Node1) package specification
7029 -- Corresponding_Body (Node5-Sem)
7030 -- Generic_Formal_Declarations (List2) from generic formal part
7031 -- Parent_Spec (Node4-Sem)
7032 -- Activation_Chain_Entity (Node3-Sem)
7034 -------------------------------
7035 -- 12.1 Generic Formal Part --
7036 -------------------------------
7038 -- GENERIC_FORMAL_PART ::=
7039 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
7041 ------------------------------------------------
7042 -- 12.1 Generic Formal Parameter Declaration --
7043 ------------------------------------------------
7045 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
7046 -- FORMAL_OBJECT_DECLARATION
7047 -- | FORMAL_TYPE_DECLARATION
7048 -- | FORMAL_SUBPROGRAM_DECLARATION
7049 -- | FORMAL_PACKAGE_DECLARATION
7051 ---------------------------------
7052 -- 12.3 Generic Instantiation --
7053 ---------------------------------
7055 -- GENERIC_INSTANTIATION ::=
7056 -- package DEFINING_PROGRAM_UNIT_NAME is
7057 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
7058 -- [ASPECT_SPECIFICATIONS];
7059 -- | [[not] overriding]
7060 -- procedure DEFINING_PROGRAM_UNIT_NAME is
7061 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
7062 -- [ASPECT_SPECIFICATIONS];
7063 -- | [[not] overriding]
7064 -- function DEFINING_DESIGNATOR is
7065 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
7066 -- [ASPECT_SPECIFICATIONS];
7068 -- N_Package_Instantiation
7069 -- Sloc points to PACKAGE
7070 -- Defining_Unit_Name (Node1)
7071 -- Name (Node2)
7072 -- Generic_Associations (List3) (set to No_List if no
7073 -- generic actual part)
7074 -- Parent_Spec (Node4-Sem)
7075 -- Instance_Spec (Node5-Sem)
7076 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7077 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7078 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7079 -- Is_Declaration_Level_Node (Flag5-Sem)
7080 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7082 -- N_Procedure_Instantiation
7083 -- Sloc points to PROCEDURE
7084 -- Defining_Unit_Name (Node1)
7085 -- Name (Node2)
7086 -- Parent_Spec (Node4-Sem)
7087 -- Generic_Associations (List3) (set to No_List if no
7088 -- generic actual part)
7089 -- Instance_Spec (Node5-Sem)
7090 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7091 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7092 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7093 -- Is_Declaration_Level_Node (Flag5-Sem)
7094 -- Must_Override (Flag14) set if overriding indicator present
7095 -- Must_Not_Override (Flag15) set if not_overriding indicator present
7096 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7098 -- N_Function_Instantiation
7099 -- Sloc points to FUNCTION
7100 -- Defining_Unit_Name (Node1)
7101 -- Name (Node2)
7102 -- Generic_Associations (List3) (set to No_List if no
7103 -- generic actual part)
7104 -- Parent_Spec (Node4-Sem)
7105 -- Instance_Spec (Node5-Sem)
7106 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7107 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7108 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7109 -- Is_Declaration_Level_Node (Flag5-Sem)
7110 -- Must_Override (Flag14) set if overriding indicator present
7111 -- Must_Not_Override (Flag15) set if not_overriding indicator present
7112 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7114 -- Note: overriding indicator is an Ada 2005 feature
7116 -------------------------------
7117 -- 12.3 Generic Actual Part --
7118 -------------------------------
7120 -- GENERIC_ACTUAL_PART ::=
7121 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
7123 -------------------------------
7124 -- 12.3 Generic Association --
7125 -------------------------------
7127 -- GENERIC_ASSOCIATION ::=
7128 -- [generic_formal_parameter_SELECTOR_NAME =>]
7130 -- Note: unlike the procedure call case, a generic association node
7131 -- is generated for every association, even if no formal parameter
7132 -- selector name is present. In this case the parser will leave the
7133 -- Selector_Name field set to Empty, to be filled in later by the
7134 -- semantic pass.
7136 -- In Ada 2005, a formal may be associated with a box, if the
7137 -- association is part of the list of actuals for a formal package.
7138 -- If the association is given by OTHERS => <>, the association is
7139 -- an N_Others_Choice.
7141 -- N_Generic_Association
7142 -- Sloc points to first token of generic association
7143 -- Selector_Name (Node2) (set to Empty if no formal
7144 -- parameter selector name)
7145 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
7146 -- Box_Present (Flag15) (for formal_package associations with a box)
7148 ---------------------------------------------
7149 -- 12.3 Explicit Generic Actual Parameter --
7150 ---------------------------------------------
7152 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
7153 -- EXPRESSION | variable_NAME | subprogram_NAME
7154 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
7156 -------------------------------------
7157 -- 12.4 Formal Object Declaration --
7158 -------------------------------------
7160 -- FORMAL_OBJECT_DECLARATION ::=
7161 -- DEFINING_IDENTIFIER_LIST :
7162 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
7163 -- [ASPECT_SPECIFICATIONS];
7164 -- | DEFINING_IDENTIFIER_LIST :
7165 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
7166 -- [ASPECT_SPECIFICATIONS];
7168 -- Although the syntax allows multiple identifiers in the list, the
7169 -- semantics is as though successive declarations were given with
7170 -- identical type definition and expression components. To simplify
7171 -- semantic processing, the parser represents a multiple declaration
7172 -- case as a sequence of single declarations, using the More_Ids and
7173 -- Prev_Ids flags to preserve the original source form as described
7174 -- in the section on "Handling of Defining Identifier Lists".
7176 -- N_Formal_Object_Declaration
7177 -- Sloc points to first identifier
7178 -- Defining_Identifier (Node1)
7179 -- In_Present (Flag15)
7180 -- Out_Present (Flag17)
7181 -- Null_Exclusion_Present (Flag11) (set to False if not present)
7182 -- Subtype_Mark (Node4) (set to Empty if not present)
7183 -- Access_Definition (Node3) (set to Empty if not present)
7184 -- Default_Expression (Node5) (set to Empty if no default expression)
7185 -- More_Ids (Flag5) (set to False if no more identifiers in list)
7186 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
7188 -----------------------------------
7189 -- 12.5 Formal Type Declaration --
7190 -----------------------------------
7192 -- FORMAL_TYPE_DECLARATION ::=
7193 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
7194 -- is FORMAL_TYPE_DEFINITION
7195 -- [ASPECT_SPECIFICATIONS];
7196 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
7198 -- N_Formal_Type_Declaration
7199 -- Sloc points to TYPE
7200 -- Defining_Identifier (Node1)
7201 -- Formal_Type_Definition (Node3)
7202 -- Discriminant_Specifications (List4) (set to No_List if no
7203 -- discriminant part)
7204 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
7206 ----------------------------------
7207 -- 12.5 Formal type definition --
7208 ----------------------------------
7210 -- FORMAL_TYPE_DEFINITION ::=
7211 -- FORMAL_PRIVATE_TYPE_DEFINITION
7212 -- | FORMAL_DERIVED_TYPE_DEFINITION
7213 -- | FORMAL_DISCRETE_TYPE_DEFINITION
7214 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
7215 -- | FORMAL_MODULAR_TYPE_DEFINITION
7216 -- | FORMAL_FLOATING_POINT_DEFINITION
7217 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
7218 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
7219 -- | FORMAL_ARRAY_TYPE_DEFINITION
7220 -- | FORMAL_ACCESS_TYPE_DEFINITION
7221 -- | FORMAL_INTERFACE_TYPE_DEFINITION
7222 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
7224 -- The Ada 2012 syntax introduces two new non-terminals:
7225 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
7226 -- the latter category. Here we introduce an incomplete type definition
7227 -- in order to preserve as much as possible the existing structure.
7229 ---------------------------------------------
7230 -- 12.5.1 Formal Private Type Definition --
7231 ---------------------------------------------
7233 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
7234 -- [[abstract] tagged] [limited] private
7236 -- Note: TAGGED is not allowed in Ada 83 mode
7238 -- N_Formal_Private_Type_Definition
7239 -- Sloc points to PRIVATE
7240 -- Uninitialized_Variable (Node3-Sem)
7241 -- Abstract_Present (Flag4)
7242 -- Tagged_Present (Flag15)
7243 -- Limited_Present (Flag17)
7245 --------------------------------------------
7246 -- 12.5.1 Formal Derived Type Definition --
7247 --------------------------------------------
7249 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
7250 -- [abstract] [limited | synchronized]
7251 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
7252 -- Note: this construct is not allowed in Ada 83 mode
7254 -- N_Formal_Derived_Type_Definition
7255 -- Sloc points to NEW
7256 -- Subtype_Mark (Node4)
7257 -- Private_Present (Flag15)
7258 -- Abstract_Present (Flag4)
7259 -- Limited_Present (Flag17)
7260 -- Synchronized_Present (Flag7)
7261 -- Interface_List (List2) (set to No_List if none)
7263 -----------------------------------------------
7264 -- 12.5.1 Formal Incomplete Type Definition --
7265 -----------------------------------------------
7267 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
7269 -- N_Formal_Incomplete_Type_Definition
7270 -- Sloc points to identifier of parent
7271 -- Tagged_Present (Flag15)
7273 ---------------------------------------------
7274 -- 12.5.2 Formal Discrete Type Definition --
7275 ---------------------------------------------
7277 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
7279 -- N_Formal_Discrete_Type_Definition
7280 -- Sloc points to (
7282 ---------------------------------------------------
7283 -- 12.5.2 Formal Signed Integer Type Definition --
7284 ---------------------------------------------------
7286 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
7288 -- N_Formal_Signed_Integer_Type_Definition
7289 -- Sloc points to RANGE
7291 --------------------------------------------
7292 -- 12.5.2 Formal Modular Type Definition --
7293 --------------------------------------------
7295 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
7297 -- N_Formal_Modular_Type_Definition
7298 -- Sloc points to MOD
7300 ----------------------------------------------
7301 -- 12.5.2 Formal Floating Point Definition --
7302 ----------------------------------------------
7304 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
7306 -- N_Formal_Floating_Point_Definition
7307 -- Sloc points to DIGITS
7309 ----------------------------------------------------
7310 -- 12.5.2 Formal Ordinary Fixed Point Definition --
7311 ----------------------------------------------------
7313 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
7315 -- N_Formal_Ordinary_Fixed_Point_Definition
7316 -- Sloc points to DELTA
7318 ---------------------------------------------------
7319 -- 12.5.2 Formal Decimal Fixed Point Definition --
7320 ---------------------------------------------------
7322 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
7324 -- Note: formal decimal fixed point definition not allowed in Ada 83
7326 -- N_Formal_Decimal_Fixed_Point_Definition
7327 -- Sloc points to DELTA
7329 ------------------------------------------
7330 -- 12.5.3 Formal Array Type Definition --
7331 ------------------------------------------
7333 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
7335 -------------------------------------------
7336 -- 12.5.4 Formal Access Type Definition --
7337 -------------------------------------------
7339 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
7341 ----------------------------------------------
7342 -- 12.5.5 Formal Interface Type Definition --
7343 ----------------------------------------------
7345 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
7347 -----------------------------------------
7348 -- 12.6 Formal Subprogram Declaration --
7349 -----------------------------------------
7351 -- FORMAL_SUBPROGRAM_DECLARATION ::=
7352 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
7353 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
7355 --------------------------------------------------
7356 -- 12.6 Formal Concrete Subprogram Declaration --
7357 --------------------------------------------------
7359 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
7360 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
7361 -- [ASPECT_SPECIFICATIONS];
7363 -- N_Formal_Concrete_Subprogram_Declaration
7364 -- Sloc points to WITH
7365 -- Specification (Node1)
7366 -- Default_Name (Node2) (set to Empty if no subprogram default)
7367 -- Box_Present (Flag15)
7369 -- Note: if no subprogram default is present, then Name is set
7370 -- to Empty, and Box_Present is False.
7372 --------------------------------------------------
7373 -- 12.6 Formal Abstract Subprogram Declaration --
7374 --------------------------------------------------
7376 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
7377 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
7378 -- [ASPECT_SPECIFICATIONS];
7380 -- N_Formal_Abstract_Subprogram_Declaration
7381 -- Sloc points to WITH
7382 -- Specification (Node1)
7383 -- Default_Name (Node2) (set to Empty if no subprogram default)
7384 -- Box_Present (Flag15)
7386 -- Note: if no subprogram default is present, then Name is set
7387 -- to Empty, and Box_Present is False.
7389 ------------------------------
7390 -- 12.6 Subprogram Default --
7391 ------------------------------
7393 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
7395 -- There is no separate node in the tree for a subprogram default.
7396 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
7397 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
7398 -- default name or box indication, as needed.
7400 ------------------------
7401 -- 12.6 Default Name --
7402 ------------------------
7404 -- DEFAULT_NAME ::= NAME
7406 --------------------------------------
7407 -- 12.7 Formal Package Declaration --
7408 --------------------------------------
7410 -- FORMAL_PACKAGE_DECLARATION ::=
7411 -- with package DEFINING_IDENTIFIER
7412 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
7413 -- [ASPECT_SPECIFICATIONS];
7415 -- Note: formal package declarations not allowed in Ada 83 mode
7417 -- N_Formal_Package_Declaration
7418 -- Sloc points to WITH
7419 -- Defining_Identifier (Node1)
7420 -- Name (Node2)
7421 -- Generic_Associations (List3) (set to No_List if (<>) case or
7422 -- empty generic actual part)
7423 -- Box_Present (Flag15)
7424 -- Instance_Spec (Node5-Sem)
7426 --------------------------------------
7427 -- 12.7 Formal Package Actual Part --
7428 --------------------------------------
7430 -- FORMAL_PACKAGE_ACTUAL_PART ::=
7431 -- ([OTHERS] => <>)
7432 -- | [GENERIC_ACTUAL_PART]
7433 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
7435 -- FORMAL_PACKAGE_ASSOCIATION ::=
7436 -- GENERIC_ASSOCIATION
7437 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
7439 -- There is no explicit node in the tree for a formal package actual
7440 -- part. Instead the information appears in the parent node (i.e. the
7441 -- formal package declaration node itself).
7443 -- There is no explicit node for a formal package association. All of
7444 -- them are represented either by a generic association, possibly with
7445 -- Box_Present, or by an N_Others_Choice.
7447 ---------------------------------
7448 -- 13.1 Representation clause --
7449 ---------------------------------
7451 -- REPRESENTATION_CLAUSE ::=
7452 -- ATTRIBUTE_DEFINITION_CLAUSE
7453 -- | ENUMERATION_REPRESENTATION_CLAUSE
7454 -- | RECORD_REPRESENTATION_CLAUSE
7455 -- | AT_CLAUSE
7457 ----------------------
7458 -- 13.1 Local Name --
7459 ----------------------
7461 -- LOCAL_NAME :=
7462 -- DIRECT_NAME
7463 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
7464 -- | library_unit_NAME
7466 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
7467 -- as an attribute reference, which has essentially the same form.
7469 ---------------------------------------
7470 -- 13.3 Attribute definition clause --
7471 ---------------------------------------
7473 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
7474 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
7475 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
7477 -- In Ada 83, the expression must be a simple expression and the
7478 -- local name must be a direct name.
7480 -- Note: the only attribute definition clause that is processed by
7481 -- gigi is an address clause. For all other cases, the information
7482 -- is extracted by the front end and either results in setting entity
7483 -- information, e.g. Esize for the Size clause, or in appropriate
7484 -- expansion actions (e.g. in the case of Storage_Size).
7486 -- For an address clause, Gigi constructs the appropriate addressing
7487 -- code. It also ensures that no aliasing optimizations are made
7488 -- for the object for which the address clause appears.
7490 -- Note: for an address clause used to achieve an overlay:
7492 -- A : Integer;
7493 -- B : Integer;
7494 -- for B'Address use A'Address;
7496 -- the above rule means that Gigi will ensure that no optimizations
7497 -- will be made for B that would violate the implementation advice
7498 -- of RM 13.3(19). However, this advice applies only to B and not
7499 -- to A, which seems unfortunate. The GNAT front end will mark the
7500 -- object A as volatile to also prevent unwanted optimization
7501 -- assumptions based on no aliasing being made for B.
7503 -- N_Attribute_Definition_Clause
7504 -- Sloc points to FOR
7505 -- Name (Node2) the local name
7506 -- Chars (Name1) the identifier name from the attribute designator
7507 -- Expression (Node3) the expression or name
7508 -- Entity (Node4-Sem)
7509 -- Next_Rep_Item (Node5-Sem)
7510 -- From_At_Mod (Flag4-Sem)
7511 -- Check_Address_Alignment (Flag11-Sem)
7512 -- From_Aspect_Specification (Flag13-Sem)
7513 -- Is_Delayed_Aspect (Flag14-Sem)
7514 -- Address_Warning_Posted (Flag18-Sem)
7516 -- Note: if From_Aspect_Specification is set, then Sloc points to the
7517 -- aspect name, and Entity is resolved already to reference the entity
7518 -- to which the aspect applies.
7520 -----------------------------------
7521 -- 13.3.1 Aspect Specifications --
7522 -----------------------------------
7524 -- We modify the RM grammar here, the RM grammar is:
7526 -- ASPECT_SPECIFICATION ::=
7527 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7528 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
7530 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7532 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7534 -- That's inconvenient, since there is no non-terminal name for a single
7535 -- entry in the list of aspects. So we use this grammar instead:
7537 -- ASPECT_SPECIFICATIONS ::=
7538 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7540 -- ASPECT_SPECIFICATION =>
7541 -- ASPECT_MARK [=> ASPECT_DEFINITION]
7543 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7545 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7547 -- Note that for Annotate, the ASPECT_DEFINITION is a pure positional
7548 -- aggregate with the elements of the aggregate corresponding to the
7549 -- successive arguments of the corresponding pragma.
7551 -- See separate package Aspects for details on the incorporation of
7552 -- these nodes into the tree, and how aspect specifications for a given
7553 -- declaration node are associated with that node.
7555 -- N_Aspect_Specification
7556 -- Sloc points to aspect identifier
7557 -- Identifier (Node1) aspect identifier
7558 -- Aspect_Rep_Item (Node2-Sem)
7559 -- Expression (Node3) Aspect_Definition (set to Empty if none)
7560 -- Entity (Node4-Sem) entity to which the aspect applies
7561 -- Next_Rep_Item (Node5-Sem)
7562 -- Class_Present (Flag6) Set if 'Class present
7563 -- Is_Ignored (Flag9-Sem)
7564 -- Is_Checked (Flag11-Sem)
7565 -- Is_Delayed_Aspect (Flag14-Sem)
7566 -- Is_Disabled (Flag15-Sem)
7567 -- Is_Boolean_Aspect (Flag16-Sem)
7568 -- Split_PPC (Flag17) Set if split pre/post attribute
7570 -- Note: Aspect_Specification is an Ada 2012 feature
7572 -- Note: The Identifier serves to identify the aspect involved (it
7573 -- is the aspect whose name corresponds to the Chars field). This
7574 -- means that the other fields of this identifier are unused, and
7575 -- in particular we use the Entity field of this identifier to save
7576 -- a copy of the expression for visibility analysis, see spec of
7577 -- Sem_Ch13 for full details of this usage.
7579 -- In the case of aspects of the form xxx'Class, the aspect identifier
7580 -- is for xxx, and Class_Present is set to True.
7582 -- Note: When a Pre or Post aspect specification is processed, it is
7583 -- broken into AND THEN sections. The left most section has Split_PPC
7584 -- set to False, indicating that it is the original specification (e.g.
7585 -- for posting errors). For the other sections, Split_PPC is set True.
7587 ---------------------------------------------
7588 -- 13.4 Enumeration representation clause --
7589 ---------------------------------------------
7591 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7592 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7594 -- In Ada 83, the name must be a direct name
7596 -- N_Enumeration_Representation_Clause
7597 -- Sloc points to FOR
7598 -- Identifier (Node1) direct name
7599 -- Array_Aggregate (Node3)
7600 -- Next_Rep_Item (Node5-Sem)
7602 ---------------------------------
7603 -- 13.4 Enumeration aggregate --
7604 ---------------------------------
7606 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7608 ------------------------------------------
7609 -- 13.5.1 Record representation clause --
7610 ------------------------------------------
7612 -- RECORD_REPRESENTATION_CLAUSE ::=
7613 -- for first_subtype_LOCAL_NAME use
7614 -- record [MOD_CLAUSE]
7615 -- {COMPONENT_CLAUSE}
7616 -- end record;
7618 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7619 -- replaced by a corresponding Alignment attribute definition clause).
7621 -- Note: Component_Clauses can include pragmas
7623 -- N_Record_Representation_Clause
7624 -- Sloc points to FOR
7625 -- Identifier (Node1) direct name
7626 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7627 -- Component_Clauses (List3)
7628 -- Next_Rep_Item (Node5-Sem)
7630 ------------------------------
7631 -- 13.5.1 Component clause --
7632 ------------------------------
7634 -- COMPONENT_CLAUSE ::=
7635 -- component_LOCAL_NAME at POSITION
7636 -- range FIRST_BIT .. LAST_BIT;
7638 -- N_Component_Clause
7639 -- Sloc points to AT
7640 -- Component_Name (Node1) points to Name or Attribute_Reference
7641 -- Position (Node2)
7642 -- First_Bit (Node3)
7643 -- Last_Bit (Node4)
7645 ----------------------
7646 -- 13.5.1 Position --
7647 ----------------------
7649 -- POSITION ::= static_EXPRESSION
7651 -----------------------
7652 -- 13.5.1 First_Bit --
7653 -----------------------
7655 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7657 ----------------------
7658 -- 13.5.1 Last_Bit --
7659 ----------------------
7661 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7663 --------------------------
7664 -- 13.8 Code statement --
7665 --------------------------
7667 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7669 -- Note: in GNAT, the qualified expression has the form
7671 -- Asm_Insn'(Asm (...));
7673 -- See package System.Machine_Code in file s-maccod.ads for details on
7674 -- the allowed parameters to Asm. There are two ways this node can
7675 -- arise, as a code statement, in which case the expression is the
7676 -- qualified expression, or as a result of the expansion of an intrinsic
7677 -- call to the Asm or Asm_Input procedure.
7679 -- N_Code_Statement
7680 -- Sloc points to first token of the expression
7681 -- Expression (Node3)
7683 -- Note: package Exp_Code contains an abstract functional interface
7684 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7686 ------------------------
7687 -- 13.12 Restriction --
7688 ------------------------
7690 -- RESTRICTION ::=
7691 -- restriction_IDENTIFIER
7692 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7694 -- There is no explicit node for restrictions. Instead the restriction
7695 -- appears in normal pragma syntax as a pragma argument association,
7696 -- which has the same syntactic form.
7698 --------------------------
7699 -- B.2 Shift Operators --
7700 --------------------------
7702 -- Calls to the intrinsic shift functions are converted to one of
7703 -- the following shift nodes, which have the form of normal binary
7704 -- operator names. Note that for a given shift operation, one node
7705 -- covers all possible types, as for normal operators.
7707 -- Note: it is perfectly permissible for the expander to generate
7708 -- shift operation nodes directly, in which case they will be analyzed
7709 -- and parsed in the usual manner.
7711 -- Sprint syntax: shift-function-name!(expr, count)
7713 -- Note: the Left_Opnd field holds the first argument (the value to
7714 -- be shifted). The Right_Opnd field holds the second argument (the
7715 -- shift count). The Chars field is the name of the intrinsic function.
7717 -- N_Op_Rotate_Left
7718 -- Sloc points to the function name
7719 -- plus fields for binary operator
7720 -- plus fields for expression
7721 -- Shift_Count_OK (Flag4-Sem)
7723 -- N_Op_Rotate_Right
7724 -- Sloc points to the function name
7725 -- plus fields for binary operator
7726 -- plus fields for expression
7727 -- Shift_Count_OK (Flag4-Sem)
7729 -- N_Op_Shift_Left
7730 -- Sloc points to the function name
7731 -- plus fields for binary operator
7732 -- plus fields for expression
7733 -- Shift_Count_OK (Flag4-Sem)
7735 -- N_Op_Shift_Right_Arithmetic
7736 -- Sloc points to the function name
7737 -- plus fields for binary operator
7738 -- plus fields for expression
7739 -- Shift_Count_OK (Flag4-Sem)
7741 -- N_Op_Shift_Right
7742 -- Sloc points to the function name
7743 -- plus fields for binary operator
7744 -- plus fields for expression
7745 -- Shift_Count_OK (Flag4-Sem)
7747 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7748 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7750 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7751 -- always less than the word size if Modify_Tree_For_C mode is set.
7753 --------------------------
7754 -- Obsolescent Features --
7755 --------------------------
7757 -- The syntax descriptions and tree nodes for obsolescent features are
7758 -- grouped together, corresponding to their location in appendix I in
7759 -- the RM. However, parsing and semantic analysis for these constructs
7760 -- is located in an appropriate chapter (see individual notes).
7762 ---------------------------
7763 -- J.3 Delta Constraint --
7764 ---------------------------
7766 -- Note: the parse routine for this construct is located in section
7767 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7768 -- where delta constraint logically belongs.
7770 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7772 -- N_Delta_Constraint
7773 -- Sloc points to DELTA
7774 -- Delta_Expression (Node3)
7775 -- Range_Constraint (Node4) (set to Empty if not present)
7777 --------------------
7778 -- J.7 At Clause --
7779 --------------------
7781 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7783 -- Note: the parse routine for this construct is located in Par-Ch13,
7784 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7785 -- belongs if it were not obsolescent.
7787 -- Note: in Ada 83 the expression must be a simple expression
7789 -- Gigi restriction: This node never appears, it is rewritten as an
7790 -- address attribute definition clause.
7792 -- N_At_Clause
7793 -- Sloc points to FOR
7794 -- Identifier (Node1)
7795 -- Expression (Node3)
7797 ---------------------
7798 -- J.8 Mod clause --
7799 ---------------------
7801 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7803 -- Note: the parse routine for this construct is located in Par-Ch13,
7804 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7805 -- belongs if it were not obsolescent.
7807 -- Note: in Ada 83, the expression must be a simple expression
7809 -- Gigi restriction: this node never appears. It is replaced
7810 -- by a corresponding Alignment attribute definition clause.
7812 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7813 -- its name has "clause" in it. This is rather strange, but is quite
7814 -- definitely specified. The pragmas before are collected in the
7815 -- Pragmas_Before field of the mod clause node itself, and pragmas
7816 -- after are simply swallowed up in the list of component clauses.
7818 -- N_Mod_Clause
7819 -- Sloc points to AT
7820 -- Expression (Node3)
7821 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7823 --------------------
7824 -- Semantic Nodes --
7825 --------------------
7827 -- These semantic nodes are used to hold additional semantic information.
7828 -- They are inserted into the tree as a result of semantic processing.
7829 -- Although there are no legitimate source syntax constructions that
7830 -- correspond directly to these nodes, we need a source syntax for the
7831 -- reconstructed tree printed by Sprint, and the node descriptions here
7832 -- show this syntax.
7834 -----------------
7835 -- Call_Marker --
7836 -----------------
7838 -- This node is created during the analysis/resolution of entry calls,
7839 -- requeues, and subprogram calls. It performs several functions:
7841 -- * Call markers provide a uniform model for handling calls by the
7842 -- ABE mechanism, regardless of whether expansion took place.
7844 -- * The call marker captures the target of the related call along
7845 -- with other attributes which are either unavailabe or expensive
7846 -- to recompute once analysis, resolution, and expansion are over.
7848 -- * The call marker aids the ABE Processing phase by signaling the
7849 -- presence of a call in case the original call was transformed by
7850 -- expansion.
7852 -- * The call marker acts as a reference point for the insertion of
7853 -- run-time conditional ABE checks or guaranteed ABE failures.
7855 -- Sprint syntax: #target#
7857 -- The Sprint syntax shown above is not enabled by default
7859 -- N_Call_Marker
7860 -- Sloc points to Sloc of original call
7861 -- Target (Node1-Sem)
7862 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7863 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7864 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7865 -- Is_Source_Call (Flag4-Sem)
7866 -- Is_Declaration_Level_Node (Flag5-Sem)
7867 -- Is_Dispatching_Call (Flag6-Sem)
7868 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7870 ------------------------
7871 -- Compound Statement --
7872 ------------------------
7874 -- This node is created by the analyzer/expander to handle some
7875 -- expansion cases where a sequence of actions needs to be captured
7876 -- within a single node (which acts as a container and allows the
7877 -- entire list of actions to be moved around as a whole) appearing
7878 -- in a sequence of statements.
7880 -- This is the statement counterpart to the expression node
7881 -- N_Expression_With_Actions.
7883 -- The required semantics is that the set of actions is executed in
7884 -- the order in which it appears, as though they appeared by themselves
7885 -- in the enclosing list of declarations or statements. Unlike what
7886 -- happens when using an N_Block_Statement, no new scope is introduced.
7888 -- Note: for the time being, this is used only as a transient
7889 -- representation during expansion, and all compound statement nodes
7890 -- must be exploded back to their constituent statements before handing
7891 -- the tree to the back end.
7893 -- Sprint syntax: do
7894 -- action;
7895 -- action;
7896 -- ...
7897 -- action;
7898 -- end;
7900 -- N_Compound_Statement
7901 -- Actions (List1)
7903 --------------
7904 -- Contract --
7905 --------------
7907 -- This node is used to hold the various parts of an entry, subprogram
7908 -- [body] or package [body] contract, in particular:
7909 -- Abstract states declared by a package declaration
7910 -- Contract cases that apply to a subprogram
7911 -- Dependency relations of inputs and output of a subprogram
7912 -- Global annotations classifying data as input or output
7913 -- Initialization sequences for a package declaration
7914 -- Pre- and postconditions that apply to a subprogram
7916 -- The node appears in an entry and [generic] subprogram [body] entity.
7918 -- Sprint syntax: <none> as the node should not appear in the tree, but
7919 -- only attached to an entry or [generic] subprogram
7920 -- entity.
7922 -- N_Contract
7923 -- Sloc points to the subprogram's name
7924 -- Pre_Post_Conditions (Node1-Sem) (set to Empty if none)
7925 -- Contract_Test_Cases (Node2-Sem) (set to Empty if none)
7926 -- Classifications (Node3-Sem) (set to Empty if none)
7927 -- Is_Expanded_Contract (Flag1-Sem)
7929 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7930 -- to pre- and postconditions associated with an entry or a subprogram
7931 -- [body or stub]. The pragmas can either come from source or be the
7932 -- byproduct of aspect expansion. Currently the following pragmas appear
7933 -- in this list:
7934 -- Post
7935 -- Postcondition
7936 -- Pre
7937 -- Precondition
7938 -- Refined_Post
7939 -- The ordering in the list is in LIFO fashion.
7941 -- Note that there might be multiple preconditions or postconditions
7942 -- in this list, either because they come from separate pragmas in the
7943 -- source, or because a Pre (resp. Post) aspect specification has been
7944 -- broken into AND THEN sections. See Split_PPC for details.
7946 -- In GNATprove mode, the inherited classwide pre- and postconditions
7947 -- (suitably specialized for the specific type of the overriding
7948 -- operation) are also in this list.
7950 -- Contract_Test_Cases contains a collection of pragmas that correspond
7951 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7952 -- list is in LIFO fashion.
7954 -- Classifications contains pragmas that either declare, categorize, or
7955 -- establish dependencies between subprogram or package inputs and
7956 -- outputs. Currently the following pragmas appear in this list:
7957 -- Abstract_States
7958 -- Async_Readers
7959 -- Async_Writers
7960 -- Constant_After_Elaboration
7961 -- Depends
7962 -- Effective_Reads
7963 -- Effective_Writes
7964 -- Extensions_Visible
7965 -- Global
7966 -- Initial_Condition
7967 -- Initializes
7968 -- Part_Of
7969 -- Refined_Depends
7970 -- Refined_Global
7971 -- Refined_States
7972 -- Volatile_Function
7973 -- The ordering is in LIFO fashion.
7975 -------------------
7976 -- Expanded Name --
7977 -------------------
7979 -- The N_Expanded_Name node is used to represent a selected component
7980 -- name that has been resolved to an expanded name. The semantic phase
7981 -- replaces N_Selected_Component nodes that represent names by the use
7982 -- of this node, leaving the N_Selected_Component node used only when
7983 -- the prefix is a record or protected type.
7985 -- The fields of the N_Expanded_Name node are layed out identically
7986 -- to those of the N_Selected_Component node, allowing conversion of
7987 -- an expanded name node to a selected component node to be done
7988 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7990 -- There is no special sprint syntax for an expanded name
7992 -- N_Expanded_Name
7993 -- Sloc points to the period
7994 -- Chars (Name1) copy of Chars field of selector name
7995 -- Prefix (Node3)
7996 -- Selector_Name (Node2)
7997 -- Entity (Node4-Sem)
7998 -- Associated_Node (Node4-Sem)
7999 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
8000 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
8001 -- Has_Private_View (Flag11-Sem) set in generic units
8002 -- Redundant_Use (Flag13-Sem)
8003 -- Atomic_Sync_Required (Flag14-Sem)
8004 -- plus fields for expression
8006 -----------------------------
8007 -- Expression With Actions --
8008 -----------------------------
8010 -- This node is created by the analyzer/expander to handle some
8011 -- expansion cases, notably short-circuit forms where there are
8012 -- actions associated with the right-hand side operand.
8014 -- The N_Expression_With_Actions node represents an expression with
8015 -- an associated set of actions (which are executable statements and
8016 -- declarations, as might occur in a handled statement sequence).
8018 -- The required semantics is that the set of actions is executed in
8019 -- the order in which it appears just before the expression is
8020 -- evaluated (and these actions must only be executed if the value
8021 -- of the expression is evaluated). The node is considered to be
8022 -- a subexpression, whose value is the value of the Expression after
8023 -- executing all the actions.
8025 -- If the actions contain declarations, then these declarations may
8026 -- be referenced within the expression. However note that there is
8027 -- no proper scope associated with the expression-with-action, so the
8028 -- back-end will elaborate them in the context of the enclosing scope.
8030 -- Sprint syntax: do
8031 -- action;
8032 -- action;
8033 -- ...
8034 -- action;
8035 -- in expression end
8037 -- N_Expression_With_Actions
8038 -- Actions (List1)
8039 -- Expression (Node3)
8040 -- plus fields for expression
8042 -- Note: In the final generated tree presented to the code generator,
8043 -- the actions list is always non-null, since there is no point in this
8044 -- node if the actions are Empty. During semantic analysis there are
8045 -- cases where it is convenient to temporarily generate an empty actions
8046 -- list. This arises in cases where we create such an empty actions
8047 -- list, and it may or may not end up being a place where additional
8048 -- actions are inserted. The expander removes such empty cases after
8049 -- the expression of the node is fully analyzed and expanded, at which
8050 -- point it is safe to remove it, since no more actions can be inserted.
8052 -- Note: In Modify_Tree_For_C, we never generate any declarations in
8053 -- the action list, which can contain only non-declarative statements.
8055 --------------------
8056 -- Free Statement --
8057 --------------------
8059 -- The N_Free_Statement node is generated as a result of a call to an
8060 -- instantiation of Unchecked_Deallocation. The instantiation of this
8061 -- generic is handled specially and generates this node directly.
8063 -- Sprint syntax: free expression
8065 -- N_Free_Statement
8066 -- Sloc is copied from the unchecked deallocation call
8067 -- Expression (Node3) argument to unchecked deallocation call
8068 -- Storage_Pool (Node1-Sem)
8069 -- Procedure_To_Call (Node2-Sem)
8070 -- Actual_Designated_Subtype (Node4-Sem)
8072 -- Note: in the case where a debug source file is generated, the Sloc
8073 -- for this node points to the FREE keyword in the Sprint file output.
8075 -------------------
8076 -- Freeze Entity --
8077 -------------------
8079 -- This node marks the point in a declarative part at which an entity
8080 -- declared therein becomes frozen. The expander places initialization
8081 -- procedures for types at those points. Gigi uses the freezing point
8082 -- to elaborate entities that may depend on previous private types.
8084 -- See the section in Einfo "Delayed Freezing and Elaboration" for
8085 -- a full description of the use of this node.
8087 -- The Entity field points back to the entity for the type (whose
8088 -- Freeze_Node field points back to this freeze node).
8090 -- The Actions field contains a list of declarations and statements
8091 -- generated by the expander which are associated with the freeze
8092 -- node, and are elaborated as though the freeze node were replaced
8093 -- by this sequence of actions.
8095 -- Note: the Sloc field in the freeze node references a construct
8096 -- associated with the freezing point. This is used for posting
8097 -- messages in some error/warning situations, e.g. the case where
8098 -- a primitive operation of a tagged type is declared too late.
8100 -- Sprint syntax: freeze entity-name [
8101 -- freeze actions
8102 -- ]
8104 -- N_Freeze_Entity
8105 -- Sloc points near freeze point (see above special note)
8106 -- Entity (Node4-Sem)
8107 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
8108 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
8109 -- Actions (List1) (set to No_List if no freeze actions)
8110 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
8112 -- The Actions field holds actions associated with the freeze. These
8113 -- actions are elaborated at the point where the type is frozen.
8115 -- Note: in the case where a debug source file is generated, the Sloc
8116 -- for this node points to the FREEZE keyword in the Sprint file output.
8118 ---------------------------
8119 -- Freeze Generic Entity --
8120 ---------------------------
8122 -- The freeze point of an entity indicates the point at which the
8123 -- information needed to generate code for the entity is complete.
8124 -- The freeze node for an entity triggers expander activities, such as
8125 -- build initialization procedures, and backend activities, such as
8126 -- completing the elaboration of packages.
8128 -- For entities declared within a generic unit, for which no code is
8129 -- generated, the freeze point is not equally meaningful. However, in
8130 -- Ada 2012 several semantic checks on declarations must be delayed to
8131 -- the freeze point, and we need to include such a mark in the tree to
8132 -- trigger these checks. The Freeze_Generic_Entity node plays no other
8133 -- role, and is ignored by the expander and the back-end.
8135 -- Sprint syntax: freeze_generic entity-name
8137 -- N_Freeze_Generic_Entity
8138 -- Sloc points near freeze point
8139 -- Entity (Node4-Sem)
8141 --------------------------------
8142 -- Implicit Label Declaration --
8143 --------------------------------
8145 -- An implicit label declaration is created for every occurrence of a
8146 -- label on a statement or a label on a block or loop. It is chained
8147 -- in the declarations of the innermost enclosing block as specified
8148 -- in RM section 5.1 (3).
8150 -- The Defining_Identifier is the actual identifier for the statement
8151 -- identifier. Note that the occurrence of the label is a reference, NOT
8152 -- the defining occurrence. The defining occurrence occurs at the head
8153 -- of the innermost enclosing block, and is represented by this node.
8155 -- Note: from the grammar, this might better be called an implicit
8156 -- statement identifier declaration, but the term we choose seems
8157 -- friendlier, since at least informally statement identifiers are
8158 -- called labels in both cases (i.e. when used in labels, and when
8159 -- used as the identifiers of blocks and loops).
8161 -- Note: although this is logically a semantic node, since it does not
8162 -- correspond directly to a source syntax construction, these nodes are
8163 -- actually created by the parser in a post pass done just after parsing
8164 -- is complete, before semantic analysis is started (see Par.Labl).
8166 -- Sprint syntax: labelname : label;
8168 -- N_Implicit_Label_Declaration
8169 -- Sloc points to the << token for a statement identifier, or to the
8170 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
8171 -- Defining_Identifier (Node1)
8172 -- Label_Construct (Node2-Sem)
8174 -- Note: in the case where a debug source file is generated, the Sloc
8175 -- for this node points to the label name in the generated declaration.
8177 ---------------------
8178 -- Itype Reference --
8179 ---------------------
8181 -- This node is used to create a reference to an Itype. The only purpose
8182 -- is to make sure the Itype is defined if this is the first reference.
8184 -- A typical use of this node is when an Itype is to be referenced in
8185 -- two branches of an IF statement. In this case it is important that
8186 -- the first use of the Itype not be inside the conditional, since then
8187 -- it might not be defined if the other branch of the IF is taken, in
8188 -- the case where the definition generates elaboration code.
8190 -- The Itype field points to the referenced Itype
8192 -- Sprint syntax: reference itype-name
8194 -- N_Itype_Reference
8195 -- Sloc points to the node generating the reference
8196 -- Itype (Node1-Sem)
8198 -- Note: in the case where a debug source file is generated, the Sloc
8199 -- for this node points to the REFERENCE keyword in the file output.
8201 ---------------------
8202 -- Raise xxx Error --
8203 ---------------------
8205 -- One of these nodes is created during semantic analysis to replace
8206 -- a node for an expression that is determined to definitely raise
8207 -- the corresponding exception.
8209 -- The N_Raise_xxx_Error node may also stand alone in place
8210 -- of a declaration or statement, in which case it simply causes
8211 -- the exception to be raised (i.e. it is equivalent to a raise
8212 -- statement that raises the corresponding exception). This use
8213 -- is distinguished by the fact that the Etype in this case is
8214 -- Standard_Void_Type; in the subexpression case, the Etype is the
8215 -- same as the type of the subexpression which it replaces.
8217 -- If Condition is empty, then the raise is unconditional. If the
8218 -- Condition field is non-empty, it is a boolean expression which is
8219 -- first evaluated, and the exception is raised only if the value of the
8220 -- expression is True. In the unconditional case, the creation of this
8221 -- node is usually accompanied by a warning message (unless it appears
8222 -- within the right operand of a short-circuit form whose left argument
8223 -- is static and decisively eliminates elaboration of the raise
8224 -- operation). The condition field can ONLY be present when the node is
8225 -- used as a statement form; it must NOT be present in the case where
8226 -- the node appears within an expression.
8228 -- The exception is generated with a message that contains the
8229 -- file name and line number, and then appended text. The Reason
8230 -- code shows the text to be added. The Reason code is an element
8231 -- of the type Types.RT_Exception_Code, and indicates both the
8232 -- message to be added, and the exception to be raised (which must
8233 -- match the node type). The value is stored by storing a Uint which
8234 -- is the Pos value of the enumeration element in this type.
8236 -- Gigi restriction: This expander ensures that the type of the
8237 -- Condition field is always Standard.Boolean, even if the type
8238 -- in the source is some non-standard boolean type.
8240 -- Sprint syntax: [xxx_error "msg"]
8241 -- or: [xxx_error when condition "msg"]
8243 -- N_Raise_Constraint_Error
8244 -- Sloc references related construct
8245 -- Condition (Node1) (set to Empty if no condition)
8246 -- Reason (Uint3)
8247 -- plus fields for expression
8249 -- N_Raise_Program_Error
8250 -- Sloc references related construct
8251 -- Condition (Node1) (set to Empty if no condition)
8252 -- Reason (Uint3)
8253 -- plus fields for expression
8255 -- N_Raise_Storage_Error
8256 -- Sloc references related construct
8257 -- Condition (Node1) (set to Empty if no condition)
8258 -- Reason (Uint3)
8259 -- plus fields for expression
8261 -- Note: Sloc is copied from the expression generating the exception.
8262 -- In the case where a debug source file is generated, the Sloc for
8263 -- this node points to the left bracket in the Sprint file output.
8265 -- Note: the back end may be required to translate these nodes into
8266 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
8268 ---------------------------------------------
8269 -- Optimization of Exception Raise to Goto --
8270 ---------------------------------------------
8272 -- In some cases, the front end will determine that any exception raised
8273 -- by the back end for a certain exception should be transformed into a
8274 -- goto statement.
8276 -- There are three kinds of exceptions raised by the back end (note that
8277 -- for this purpose we consider gigi to be part of the back end in the
8278 -- gcc case):
8280 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
8281 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
8282 -- 3. Other cases not specifically marked by the front end
8284 -- Normally all such exceptions are translated into calls to the proper
8285 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
8286 -- and the exception message.
8288 -- The front end may determine that for a particular sequence of code,
8289 -- exceptions in any of these three categories for a particular builtin
8290 -- exception should result in a goto, rather than a call to Rcheck_xx.
8291 -- The exact sequence to be generated is:
8293 -- Local_Raise (exception'Identity);
8294 -- goto Label
8296 -- The front end marks such a sequence of code by bracketing it with
8297 -- push and pop nodes:
8299 -- N_Push_xxx_Label (referencing the label)
8300 -- ...
8301 -- (code where transformation is expected for exception xxx)
8302 -- ...
8303 -- N_Pop_xxx_Label
8305 -- The use of push/pop reflects the fact that such regions can properly
8306 -- nest, and one special case is a subregion in which no transformation
8307 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
8308 -- Exception_Label field is Empty.
8310 -- N_Push_Constraint_Error_Label
8311 -- Sloc references first statement in region covered
8312 -- Exception_Label (Node5-Sem)
8314 -- N_Push_Program_Error_Label
8315 -- Sloc references first statement in region covered
8316 -- Exception_Label (Node5-Sem)
8318 -- N_Push_Storage_Error_Label
8319 -- Sloc references first statement in region covered
8320 -- Exception_Label (Node5-Sem)
8322 -- N_Pop_Constraint_Error_Label
8323 -- Sloc references last statement in region covered
8325 -- N_Pop_Program_Error_Label
8326 -- Sloc references last statement in region covered
8328 -- N_Pop_Storage_Error_Label
8329 -- Sloc references last statement in region covered
8331 ---------------
8332 -- Reference --
8333 ---------------
8335 -- For a number of purposes, we need to construct references to objects.
8336 -- These references are subsequently treated as normal access values.
8337 -- An example is the construction of the parameter block passed to a
8338 -- task entry. The N_Reference node is provided for this purpose. It is
8339 -- similar in effect to the use of the Unrestricted_Access attribute,
8340 -- and like Unrestricted_Access can be applied to objects which would
8341 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
8342 -- objects which are not aliased, and slices). In addition it can be
8343 -- applied to composite type values as well as objects, including string
8344 -- values and aggregates.
8346 -- Note: we use the Prefix field for this expression so that the
8347 -- resulting node can be treated using common code with the attribute
8348 -- nodes for the 'Access and related attributes. Logically it would make
8349 -- more sense to call it an Expression field, but then we would have to
8350 -- special case the treatment of the N_Reference node.
8352 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
8353 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
8354 -- a temporary initialized to a N_Reference node in order to eliminate
8355 -- superfluous access checks.
8357 -- Sprint syntax: prefix'reference
8359 -- N_Reference
8360 -- Sloc is copied from the expression
8361 -- Prefix (Node3)
8362 -- plus fields for expression
8364 -- Note: in the case where a debug source file is generated, the Sloc
8365 -- for this node points to the quote in the Sprint file output.
8367 ----------------
8368 -- SCIL Nodes --
8369 ----------------
8371 -- SCIL nodes are special nodes added to the tree when the CodePeer mode
8372 -- is active. They are only generated if SCIL generation is enabled.
8373 -- A standard tree-walk will not encounter these nodes even if they
8374 -- are present; these nodes are only accessible via the function
8375 -- SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
8376 -- semantics.
8378 -- Sprint syntax: [ <node kind> ]
8379 -- No semantic field values are displayed.
8381 -- N_SCIL_Dispatch_Table_Tag_Init
8382 -- Sloc references a node for a tag initialization
8383 -- SCIL_Entity (Node4-Sem)
8385 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
8386 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
8387 -- the declaration of the dispatch table for a tagged type.
8389 -- N_SCIL_Dispatching_Call
8390 -- Sloc references the node of a dispatching call
8391 -- SCIL_Target_Prim (Node2-Sem)
8392 -- SCIL_Entity (Node4-Sem)
8393 -- SCIL_Controlling_Tag (Node5-Sem)
8395 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
8396 -- with the N_Procedure_Call_Statement or N_Function_Call node (or a
8397 -- rewriting thereof) corresponding to a dispatching call.
8399 -- N_SCIL_Membership_Test
8400 -- Sloc references the node of a membership test
8401 -- SCIL_Tag_Value (Node5-Sem)
8402 -- SCIL_Entity (Node4-Sem)
8404 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
8405 -- with the N_In node (or a rewriting thereof) corresponding to a
8406 -- classwide membership test.
8408 --------------------------
8409 -- Unchecked Expression --
8410 --------------------------
8412 -- An unchecked expression is one that must be analyzed and resolved
8413 -- with all checks off, regardless of the current setting of scope
8414 -- suppress flags.
8416 -- Sprint syntax: `(expression)
8418 -- Note: this node is always removed from the tree (and replaced by
8419 -- its constituent expression) on completion of analysis, so it only
8420 -- appears in intermediate trees, and will never be seen by Gigi.
8422 -- N_Unchecked_Expression
8423 -- Sloc is a copy of the Sloc of the expression
8424 -- Expression (Node3)
8425 -- plus fields for expression
8427 -- Note: in the case where a debug source file is generated, the Sloc
8428 -- for this node points to the back quote in the Sprint file output.
8430 -------------------------------
8431 -- Unchecked Type Conversion --
8432 -------------------------------
8434 -- An unchecked type conversion node represents the semantic action
8435 -- corresponding to a call to an instantiation of Unchecked_Conversion.
8436 -- It is generated as a result of actual use of Unchecked_Conversion
8437 -- and also the expander generates unchecked type conversion nodes
8438 -- directly for expansion of complex semantic actions.
8440 -- Note: an unchecked type conversion is a variable as far as the
8441 -- semantics are concerned, which is convenient for the expander.
8442 -- This does not change what Ada source programs are legal, since
8443 -- clearly a function call to an instantiation of Unchecked_Conversion
8444 -- is not a variable in any case.
8446 -- Sprint syntax: subtype-mark!(expression)
8448 -- N_Unchecked_Type_Conversion
8449 -- Sloc points to related node in source
8450 -- Subtype_Mark (Node4)
8451 -- Expression (Node3)
8452 -- Kill_Range_Check (Flag11-Sem)
8453 -- No_Truncation (Flag17-Sem)
8454 -- plus fields for expression
8456 -- Note: in the case where a debug source file is generated, the Sloc
8457 -- for this node points to the exclamation in the Sprint file output.
8459 -----------------------------------
8460 -- Validate_Unchecked_Conversion --
8461 -----------------------------------
8463 -- The front end does most of the validation of unchecked conversion,
8464 -- including checking sizes (this is done after the back end is called
8465 -- to take advantage of back-annotation of calculated sizes).
8467 -- The front end also deals with specific cases that are not allowed
8468 -- e.g. involving unconstrained array types.
8470 -- For the case of the standard gigi backend, this means that all
8471 -- checks are done in the front end.
8473 -- However, in the case of specialized back-ends, in particular the JVM
8474 -- backend in the past, additional requirements and restrictions may
8475 -- apply to unchecked conversion, and these are most conveniently
8476 -- performed in the specialized back-end.
8478 -- To accommodate this requirement, for such back ends, the following
8479 -- special node is generated recording an unchecked conversion that
8480 -- needs to be validated. The back end should post an appropriate
8481 -- error message if the unchecked conversion is invalid or warrants
8482 -- a special warning message.
8484 -- Source_Type and Target_Type point to the entities for the two
8485 -- types involved in the unchecked conversion instantiation that
8486 -- is to be validated.
8488 -- Sprint syntax: validate Unchecked_Conversion (source, target);
8490 -- N_Validate_Unchecked_Conversion
8491 -- Sloc points to instantiation (location for warning message)
8492 -- Source_Type (Node1-Sem)
8493 -- Target_Type (Node2-Sem)
8495 -- Note: in the case where a debug source file is generated, the Sloc
8496 -- for this node points to the VALIDATE keyword in the file output.
8498 -------------------------------
8499 -- Variable_Reference_Marker --
8500 -------------------------------
8502 -- This node is created during the analysis of direct or expanded names,
8503 -- and the resolution of entry and subprogram calls. It performs several
8504 -- functions:
8506 -- * Variable reference markers provide a uniform model for handling
8507 -- variable references by the ABE mechanism, regardless of whether
8508 -- expansion took place.
8510 -- * The variable reference marker captures the entity of the variable
8511 -- being read or written.
8513 -- * The variable reference markers aid the ABE Processing phase by
8514 -- signaling the presence of a call in case the original variable
8515 -- reference was transformed by expansion.
8517 -- Sprint syntax: r#target# -- for a read
8518 -- rw#target# -- for a read/write
8519 -- w#target# -- for a write
8521 -- The Sprint syntax shown above is not enabled by default
8523 -- N_Variable_Reference_Marker
8524 -- Sloc points to Sloc of original variable reference
8525 -- Target (Node1-Sem)
8526 -- Is_Read (Flag1-Sem)
8527 -- Is_Write (Flag2-Sem)
8529 -----------
8530 -- Empty --
8531 -----------
8533 -- Used as the contents of the Nkind field of the dummy Empty node and in
8534 -- some other situations to indicate an uninitialized value.
8536 -- N_Empty
8537 -- Chars (Name1) is set to No_Name
8539 -----------
8540 -- Error --
8541 -----------
8543 -- Used as the contents of the Nkind field of the dummy Error node.
8544 -- Has an Etype field, which gets set to Any_Type later on, to help
8545 -- error recovery (Error_Posted is also set in the Error node).
8547 -- N_Error
8548 -- Chars (Name1) is set to Error_Name
8549 -- Etype (Node5-Sem)
8551 --------------------------
8552 -- Node Type Definition --
8553 --------------------------
8555 -- The following is the definition of the Node_Kind type. As previously
8556 -- discussed, this is separated off to allow rearrangement of the order to
8557 -- facilitate definition of subtype ranges. The comments show the subtype
8558 -- classes which apply to each set of node kinds. The first entry in the
8559 -- comment characterizes the following list of nodes.
8561 type Node_Kind is (
8562 N_Unused_At_Start,
8564 -- N_Representation_Clause
8566 N_At_Clause,
8567 N_Component_Clause,
8568 N_Enumeration_Representation_Clause,
8569 N_Mod_Clause,
8570 N_Record_Representation_Clause,
8572 -- N_Representation_Clause, N_Has_Chars
8574 N_Attribute_Definition_Clause,
8576 -- N_Has_Chars
8578 N_Empty,
8579 N_Pragma_Argument_Association,
8581 -- N_Has_Etype, N_Has_Chars
8583 -- Note: of course N_Error does not really have Etype or Chars fields,
8584 -- and any attempt to access these fields in N_Error will cause an
8585 -- error, but historically this always has been positioned so that an
8586 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8587 -- Most likely this makes coding easier somewhere but still seems
8588 -- undesirable. To be investigated some time ???
8590 N_Error,
8592 -- N_Entity, N_Has_Etype, N_Has_Chars
8594 N_Defining_Character_Literal,
8595 N_Defining_Identifier,
8596 N_Defining_Operator_Symbol,
8598 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8600 N_Expanded_Name,
8602 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8603 -- N_Has_Chars, N_Has_Entity
8605 N_Identifier,
8606 N_Operator_Symbol,
8608 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8609 -- N_Has_Chars, N_Has_Entity
8611 N_Character_Literal,
8613 -- N_Binary_Op, N_Op, N_Subexpr,
8614 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
8616 N_Op_Add,
8617 N_Op_Concat,
8618 N_Op_Expon,
8619 N_Op_Subtract,
8621 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
8622 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8624 N_Op_Divide,
8625 N_Op_Mod,
8626 N_Op_Multiply,
8627 N_Op_Rem,
8629 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8630 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8632 N_Op_And,
8634 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8635 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8637 N_Op_Eq,
8638 N_Op_Ge,
8639 N_Op_Gt,
8640 N_Op_Le,
8641 N_Op_Lt,
8642 N_Op_Ne,
8644 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8645 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8647 N_Op_Or,
8648 N_Op_Xor,
8650 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8651 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
8653 N_Op_Rotate_Left,
8654 N_Op_Rotate_Right,
8655 N_Op_Shift_Left,
8656 N_Op_Shift_Right,
8657 N_Op_Shift_Right_Arithmetic,
8659 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8660 -- N_Has_Chars, N_Has_Entity
8662 N_Op_Abs,
8663 N_Op_Minus,
8664 N_Op_Not,
8665 N_Op_Plus,
8667 -- N_Subexpr, N_Has_Etype, N_Has_Entity
8669 N_Attribute_Reference,
8671 -- N_Subexpr, N_Has_Etype, N_Membership_Test
8673 N_In,
8674 N_Not_In,
8676 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8678 N_And_Then,
8679 N_Or_Else,
8681 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8683 N_Function_Call,
8684 N_Procedure_Call_Statement,
8686 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8688 N_Raise_Constraint_Error,
8689 N_Raise_Program_Error,
8690 N_Raise_Storage_Error,
8692 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8694 N_Integer_Literal,
8695 N_Real_Literal,
8696 N_String_Literal,
8698 -- N_Subexpr, N_Has_Etype
8700 N_Explicit_Dereference,
8701 N_Expression_With_Actions,
8702 N_If_Expression,
8703 N_Indexed_Component,
8704 N_Null,
8705 N_Qualified_Expression,
8706 N_Quantified_Expression,
8707 N_Aggregate,
8708 N_Allocator,
8709 N_Case_Expression,
8710 N_Delta_Aggregate,
8711 N_Extension_Aggregate,
8712 N_Raise_Expression,
8713 N_Range,
8714 N_Reference,
8715 N_Selected_Component,
8716 N_Slice,
8717 N_Target_Name,
8718 N_Type_Conversion,
8719 N_Unchecked_Expression,
8720 N_Unchecked_Type_Conversion,
8722 -- N_Has_Etype
8724 N_Subtype_Indication,
8726 -- N_Declaration
8728 N_Component_Declaration,
8729 N_Entry_Declaration,
8730 N_Expression_Function,
8731 N_Formal_Object_Declaration,
8732 N_Formal_Type_Declaration,
8733 N_Full_Type_Declaration,
8734 N_Incomplete_Type_Declaration,
8735 N_Iterator_Specification,
8736 N_Loop_Parameter_Specification,
8737 N_Object_Declaration,
8738 N_Protected_Type_Declaration,
8739 N_Private_Extension_Declaration,
8740 N_Private_Type_Declaration,
8741 N_Subtype_Declaration,
8743 -- N_Subprogram_Specification, N_Declaration
8745 N_Function_Specification,
8746 N_Procedure_Specification,
8748 -- N_Access_To_Subprogram_Definition
8750 N_Access_Function_Definition,
8751 N_Access_Procedure_Definition,
8753 -- N_Later_Decl_Item
8755 N_Task_Type_Declaration,
8757 -- N_Body_Stub, N_Later_Decl_Item
8759 N_Package_Body_Stub,
8760 N_Protected_Body_Stub,
8761 N_Subprogram_Body_Stub,
8762 N_Task_Body_Stub,
8764 -- N_Generic_Instantiation, N_Later_Decl_Item
8765 -- N_Subprogram_Instantiation
8767 N_Function_Instantiation,
8768 N_Procedure_Instantiation,
8770 -- N_Generic_Instantiation, N_Later_Decl_Item
8772 N_Package_Instantiation,
8774 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8776 N_Package_Body,
8777 N_Subprogram_Body,
8779 -- N_Later_Decl_Item, N_Proper_Body
8781 N_Protected_Body,
8782 N_Task_Body,
8784 -- N_Later_Decl_Item
8786 N_Implicit_Label_Declaration,
8787 N_Package_Declaration,
8788 N_Single_Task_Declaration,
8789 N_Subprogram_Declaration,
8790 N_Use_Package_Clause,
8792 -- N_Generic_Declaration, N_Later_Decl_Item
8794 N_Generic_Package_Declaration,
8795 N_Generic_Subprogram_Declaration,
8797 -- N_Array_Type_Definition
8799 N_Constrained_Array_Definition,
8800 N_Unconstrained_Array_Definition,
8802 -- N_Renaming_Declaration
8804 N_Exception_Renaming_Declaration,
8805 N_Object_Renaming_Declaration,
8806 N_Package_Renaming_Declaration,
8807 N_Subprogram_Renaming_Declaration,
8809 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8811 N_Generic_Function_Renaming_Declaration,
8812 N_Generic_Package_Renaming_Declaration,
8813 N_Generic_Procedure_Renaming_Declaration,
8815 -- N_Statement_Other_Than_Procedure_Call
8817 N_Abort_Statement,
8818 N_Accept_Statement,
8819 N_Assignment_Statement,
8820 N_Asynchronous_Select,
8821 N_Block_Statement,
8822 N_Case_Statement,
8823 N_Code_Statement,
8824 N_Compound_Statement,
8825 N_Conditional_Entry_Call,
8827 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8829 N_Delay_Relative_Statement,
8830 N_Delay_Until_Statement,
8832 -- N_Statement_Other_Than_Procedure_Call
8834 N_Entry_Call_Statement,
8835 N_Free_Statement,
8836 N_Goto_Statement,
8837 N_Loop_Statement,
8838 N_Null_Statement,
8839 N_Raise_Statement,
8840 N_Requeue_Statement,
8841 N_Simple_Return_Statement,
8842 N_Extended_Return_Statement,
8843 N_Selective_Accept,
8844 N_Timed_Entry_Call,
8846 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8848 N_Exit_Statement,
8849 N_If_Statement,
8851 -- N_Has_Condition
8853 N_Accept_Alternative,
8854 N_Delay_Alternative,
8855 N_Elsif_Part,
8856 N_Entry_Body_Formal_Part,
8857 N_Iteration_Scheme,
8858 N_Terminate_Alternative,
8860 -- N_Formal_Subprogram_Declaration
8862 N_Formal_Abstract_Subprogram_Declaration,
8863 N_Formal_Concrete_Subprogram_Declaration,
8865 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8867 N_Push_Constraint_Error_Label,
8868 N_Push_Program_Error_Label,
8869 N_Push_Storage_Error_Label,
8871 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8873 N_Pop_Constraint_Error_Label,
8874 N_Pop_Program_Error_Label,
8875 N_Pop_Storage_Error_Label,
8877 -- SCIL nodes
8879 N_SCIL_Dispatch_Table_Tag_Init,
8880 N_SCIL_Dispatching_Call,
8881 N_SCIL_Membership_Test,
8883 -- Other nodes (not part of any subtype class)
8885 N_Abortable_Part,
8886 N_Abstract_Subprogram_Declaration,
8887 N_Access_Definition,
8888 N_Access_To_Object_Definition,
8889 N_Aspect_Specification,
8890 N_Call_Marker,
8891 N_Case_Expression_Alternative,
8892 N_Case_Statement_Alternative,
8893 N_Compilation_Unit,
8894 N_Compilation_Unit_Aux,
8895 N_Component_Association,
8896 N_Component_Definition,
8897 N_Component_List,
8898 N_Contract,
8899 N_Derived_Type_Definition,
8900 N_Decimal_Fixed_Point_Definition,
8901 N_Defining_Program_Unit_Name,
8902 N_Delta_Constraint,
8903 N_Designator,
8904 N_Digits_Constraint,
8905 N_Discriminant_Association,
8906 N_Discriminant_Specification,
8907 N_Enumeration_Type_Definition,
8908 N_Entry_Body,
8909 N_Entry_Call_Alternative,
8910 N_Entry_Index_Specification,
8911 N_Exception_Declaration,
8912 N_Exception_Handler,
8913 N_Floating_Point_Definition,
8914 N_Formal_Decimal_Fixed_Point_Definition,
8915 N_Formal_Derived_Type_Definition,
8916 N_Formal_Discrete_Type_Definition,
8917 N_Formal_Floating_Point_Definition,
8918 N_Formal_Modular_Type_Definition,
8919 N_Formal_Ordinary_Fixed_Point_Definition,
8920 N_Formal_Package_Declaration,
8921 N_Formal_Private_Type_Definition,
8922 N_Formal_Incomplete_Type_Definition,
8923 N_Formal_Signed_Integer_Type_Definition,
8924 N_Freeze_Entity,
8925 N_Freeze_Generic_Entity,
8926 N_Generic_Association,
8927 N_Handled_Sequence_Of_Statements,
8928 N_Index_Or_Discriminant_Constraint,
8929 N_Iterated_Component_Association,
8930 N_Itype_Reference,
8931 N_Label,
8932 N_Modular_Type_Definition,
8933 N_Number_Declaration,
8934 N_Ordinary_Fixed_Point_Definition,
8935 N_Others_Choice,
8936 N_Package_Specification,
8937 N_Parameter_Association,
8938 N_Parameter_Specification,
8939 N_Pragma,
8940 N_Protected_Definition,
8941 N_Range_Constraint,
8942 N_Real_Range_Specification,
8943 N_Record_Definition,
8944 N_Signed_Integer_Type_Definition,
8945 N_Single_Protected_Declaration,
8946 N_Subunit,
8947 N_Task_Definition,
8948 N_Triggering_Alternative,
8949 N_Use_Type_Clause,
8950 N_Validate_Unchecked_Conversion,
8951 N_Variable_Reference_Marker,
8952 N_Variant,
8953 N_Variant_Part,
8954 N_With_Clause,
8955 N_Unused_At_End);
8957 for Node_Kind'Size use 8;
8958 -- The data structures in Atree assume this
8960 ----------------------------
8961 -- Node Class Definitions --
8962 ----------------------------
8964 subtype N_Access_To_Subprogram_Definition is Node_Kind range
8965 N_Access_Function_Definition ..
8966 N_Access_Procedure_Definition;
8968 subtype N_Array_Type_Definition is Node_Kind range
8969 N_Constrained_Array_Definition ..
8970 N_Unconstrained_Array_Definition;
8972 subtype N_Binary_Op is Node_Kind range
8973 N_Op_Add ..
8974 N_Op_Shift_Right_Arithmetic;
8976 subtype N_Body_Stub is Node_Kind range
8977 N_Package_Body_Stub ..
8978 N_Task_Body_Stub;
8980 subtype N_Declaration is Node_Kind range
8981 N_Component_Declaration ..
8982 N_Procedure_Specification;
8983 -- Note: this includes all constructs normally thought of as declarations
8984 -- except those which are separately grouped as later declarations.
8986 subtype N_Delay_Statement is Node_Kind range
8987 N_Delay_Relative_Statement ..
8988 N_Delay_Until_Statement;
8990 subtype N_Direct_Name is Node_Kind range
8991 N_Identifier ..
8992 N_Character_Literal;
8994 subtype N_Entity is Node_Kind range
8995 N_Defining_Character_Literal ..
8996 N_Defining_Operator_Symbol;
8998 subtype N_Formal_Subprogram_Declaration is Node_Kind range
8999 N_Formal_Abstract_Subprogram_Declaration ..
9000 N_Formal_Concrete_Subprogram_Declaration;
9002 subtype N_Generic_Declaration is Node_Kind range
9003 N_Generic_Package_Declaration ..
9004 N_Generic_Subprogram_Declaration;
9006 subtype N_Generic_Instantiation is Node_Kind range
9007 N_Function_Instantiation ..
9008 N_Package_Instantiation;
9010 subtype N_Generic_Renaming_Declaration is Node_Kind range
9011 N_Generic_Function_Renaming_Declaration ..
9012 N_Generic_Procedure_Renaming_Declaration;
9014 subtype N_Has_Chars is Node_Kind range
9015 N_Attribute_Definition_Clause ..
9016 N_Op_Plus;
9018 subtype N_Has_Entity is Node_Kind range
9019 N_Expanded_Name ..
9020 N_Attribute_Reference;
9021 -- Nodes that have Entity fields
9022 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
9023 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
9025 subtype N_Has_Etype is Node_Kind range
9026 N_Error ..
9027 N_Subtype_Indication;
9029 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
9030 N_Op_Divide ..
9031 N_Op_Rem;
9033 subtype N_Multiplying_Operator is Node_Kind range
9034 N_Op_Divide ..
9035 N_Op_Rem;
9037 subtype N_Later_Decl_Item is Node_Kind range
9038 N_Task_Type_Declaration ..
9039 N_Generic_Subprogram_Declaration;
9040 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
9041 -- only those items which can appear as later declarative items. This also
9042 -- includes N_Implicit_Label_Declaration which is not specifically in the
9043 -- grammar but may appear as a valid later declarative items. It does NOT
9044 -- include N_Pragma which can also appear among later declarative items.
9045 -- It does however include N_Protected_Body, which is a bit peculiar, but
9046 -- harmless since this cannot appear in Ada 83 mode anyway.
9048 subtype N_Membership_Test is Node_Kind range
9049 N_In ..
9050 N_Not_In;
9052 subtype N_Numeric_Or_String_Literal is Node_Kind range
9053 N_Integer_Literal ..
9054 N_String_Literal;
9056 subtype N_Op is Node_Kind range
9057 N_Op_Add ..
9058 N_Op_Plus;
9060 subtype N_Op_Boolean is Node_Kind range
9061 N_Op_And ..
9062 N_Op_Xor;
9063 -- Binary operators which take operands of a boolean type, and yield
9064 -- a result of a boolean type.
9066 subtype N_Op_Compare is Node_Kind range
9067 N_Op_Eq ..
9068 N_Op_Ne;
9070 subtype N_Op_Shift is Node_Kind range
9071 N_Op_Rotate_Left ..
9072 N_Op_Shift_Right_Arithmetic;
9074 subtype N_Proper_Body is Node_Kind range
9075 N_Package_Body ..
9076 N_Task_Body;
9078 subtype N_Push_xxx_Label is Node_Kind range
9079 N_Push_Constraint_Error_Label ..
9080 N_Push_Storage_Error_Label;
9082 subtype N_Pop_xxx_Label is Node_Kind range
9083 N_Pop_Constraint_Error_Label ..
9084 N_Pop_Storage_Error_Label;
9086 subtype N_Push_Pop_xxx_Label is Node_Kind range
9087 N_Push_Constraint_Error_Label ..
9088 N_Pop_Storage_Error_Label;
9090 subtype N_Raise_xxx_Error is Node_Kind range
9091 N_Raise_Constraint_Error ..
9092 N_Raise_Storage_Error;
9094 subtype N_Renaming_Declaration is Node_Kind range
9095 N_Exception_Renaming_Declaration ..
9096 N_Generic_Procedure_Renaming_Declaration;
9098 subtype N_Representation_Clause is Node_Kind range
9099 N_At_Clause ..
9100 N_Attribute_Definition_Clause;
9102 subtype N_Short_Circuit is Node_Kind range
9103 N_And_Then ..
9104 N_Or_Else;
9106 subtype N_SCIL_Node is Node_Kind range
9107 N_SCIL_Dispatch_Table_Tag_Init ..
9108 N_SCIL_Membership_Test;
9110 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
9111 N_Abort_Statement ..
9112 N_If_Statement;
9113 -- Note that this includes all statement types except for the cases of the
9114 -- N_Procedure_Call_Statement which is considered to be a subexpression
9115 -- (since overloading is possible, so it needs to go through the normal
9116 -- overloading resolution for expressions).
9118 subtype N_Subprogram_Call is Node_Kind range
9119 N_Function_Call ..
9120 N_Procedure_Call_Statement;
9122 subtype N_Subprogram_Instantiation is Node_Kind range
9123 N_Function_Instantiation ..
9124 N_Procedure_Instantiation;
9126 subtype N_Has_Condition is Node_Kind range
9127 N_Exit_Statement ..
9128 N_Terminate_Alternative;
9129 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
9131 subtype N_Subexpr is Node_Kind range
9132 N_Expanded_Name ..
9133 N_Unchecked_Type_Conversion;
9134 -- Nodes with expression fields
9136 subtype N_Subprogram_Specification is Node_Kind range
9137 N_Function_Specification ..
9138 N_Procedure_Specification;
9140 subtype N_Unary_Op is Node_Kind range
9141 N_Op_Abs ..
9142 N_Op_Plus;
9144 subtype N_Unit_Body is Node_Kind range
9145 N_Package_Body ..
9146 N_Subprogram_Body;
9148 ---------------------------
9149 -- Node Access Functions --
9150 ---------------------------
9152 -- The following functions return the contents of the indicated field of
9153 -- the node referenced by the argument, which is a Node_Id. They provide
9154 -- logical access to fields in the node which could be accessed using the
9155 -- Atree.Unchecked_Access package, but the idea is always to use these
9156 -- higher level routines which preserve strong typing. In debug mode,
9157 -- these routines check that they are being applied to an appropriate
9158 -- node, as well as checking that the node is in range.
9160 function Abort_Present
9161 (N : Node_Id) return Boolean; -- Flag15
9163 function Abortable_Part
9164 (N : Node_Id) return Node_Id; -- Node2
9166 function Abstract_Present
9167 (N : Node_Id) return Boolean; -- Flag4
9169 function Accept_Handler_Records
9170 (N : Node_Id) return List_Id; -- List5
9172 function Accept_Statement
9173 (N : Node_Id) return Node_Id; -- Node2
9175 function Access_Definition
9176 (N : Node_Id) return Node_Id; -- Node3
9178 function Access_To_Subprogram_Definition
9179 (N : Node_Id) return Node_Id; -- Node3
9181 function Access_Types_To_Process
9182 (N : Node_Id) return Elist_Id; -- Elist2
9184 function Actions
9185 (N : Node_Id) return List_Id; -- List1
9187 function Activation_Chain_Entity
9188 (N : Node_Id) return Node_Id; -- Node3
9190 function Acts_As_Spec
9191 (N : Node_Id) return Boolean; -- Flag4
9193 function Actual_Designated_Subtype
9194 (N : Node_Id) return Node_Id; -- Node4
9196 function Address_Warning_Posted
9197 (N : Node_Id) return Boolean; -- Flag18
9199 function Aggregate_Bounds
9200 (N : Node_Id) return Node_Id; -- Node3
9202 function Aliased_Present
9203 (N : Node_Id) return Boolean; -- Flag4
9205 function Alloc_For_BIP_Return
9206 (N : Node_Id) return Boolean; -- Flag1
9208 function All_Others
9209 (N : Node_Id) return Boolean; -- Flag11
9211 function All_Present
9212 (N : Node_Id) return Boolean; -- Flag15
9214 function Alternatives
9215 (N : Node_Id) return List_Id; -- List4
9217 function Ancestor_Part
9218 (N : Node_Id) return Node_Id; -- Node3
9220 function Atomic_Sync_Required
9221 (N : Node_Id) return Boolean; -- Flag14
9223 function Array_Aggregate
9224 (N : Node_Id) return Node_Id; -- Node3
9226 function Aspect_Rep_Item
9227 (N : Node_Id) return Node_Id; -- Node2
9229 function Assignment_OK
9230 (N : Node_Id) return Boolean; -- Flag15
9232 function Associated_Node
9233 (N : Node_Id) return Node_Id; -- Node4
9235 function At_End_Proc
9236 (N : Node_Id) return Node_Id; -- Node1
9238 function Attribute_Name
9239 (N : Node_Id) return Name_Id; -- Name2
9241 function Aux_Decls_Node
9242 (N : Node_Id) return Node_Id; -- Node5
9244 function Backwards_OK
9245 (N : Node_Id) return Boolean; -- Flag6
9247 function Bad_Is_Detected
9248 (N : Node_Id) return Boolean; -- Flag15
9250 function By_Ref
9251 (N : Node_Id) return Boolean; -- Flag5
9253 function Body_Required
9254 (N : Node_Id) return Boolean; -- Flag13
9256 function Body_To_Inline
9257 (N : Node_Id) return Node_Id; -- Node3
9259 function Box_Present
9260 (N : Node_Id) return Boolean; -- Flag15
9262 function Char_Literal_Value
9263 (N : Node_Id) return Uint; -- Uint2
9265 function Chars
9266 (N : Node_Id) return Name_Id; -- Name1
9268 function Check_Address_Alignment
9269 (N : Node_Id) return Boolean; -- Flag11
9271 function Choice_Parameter
9272 (N : Node_Id) return Node_Id; -- Node2
9274 function Choices
9275 (N : Node_Id) return List_Id; -- List1
9277 function Class_Present
9278 (N : Node_Id) return Boolean; -- Flag6
9280 function Classifications
9281 (N : Node_Id) return Node_Id; -- Node3
9283 function Cleanup_Actions
9284 (N : Node_Id) return List_Id; -- List5
9286 function Comes_From_Extended_Return_Statement
9287 (N : Node_Id) return Boolean; -- Flag18
9289 function Compile_Time_Known_Aggregate
9290 (N : Node_Id) return Boolean; -- Flag18
9292 function Component_Associations
9293 (N : Node_Id) return List_Id; -- List2
9295 function Component_Clauses
9296 (N : Node_Id) return List_Id; -- List3
9298 function Component_Definition
9299 (N : Node_Id) return Node_Id; -- Node4
9301 function Component_Items
9302 (N : Node_Id) return List_Id; -- List3
9304 function Component_List
9305 (N : Node_Id) return Node_Id; -- Node1
9307 function Component_Name
9308 (N : Node_Id) return Node_Id; -- Node1
9310 function Componentwise_Assignment
9311 (N : Node_Id) return Boolean; -- Flag14
9313 function Condition
9314 (N : Node_Id) return Node_Id; -- Node1
9316 function Condition_Actions
9317 (N : Node_Id) return List_Id; -- List3
9319 function Config_Pragmas
9320 (N : Node_Id) return List_Id; -- List4
9322 function Constant_Present
9323 (N : Node_Id) return Boolean; -- Flag17
9325 function Constraint
9326 (N : Node_Id) return Node_Id; -- Node3
9328 function Constraints
9329 (N : Node_Id) return List_Id; -- List1
9331 function Context_Installed
9332 (N : Node_Id) return Boolean; -- Flag13
9334 function Context_Pending
9335 (N : Node_Id) return Boolean; -- Flag16
9337 function Context_Items
9338 (N : Node_Id) return List_Id; -- List1
9340 function Contract_Test_Cases
9341 (N : Node_Id) return Node_Id; -- Node2
9343 function Controlling_Argument
9344 (N : Node_Id) return Node_Id; -- Node1
9346 function Conversion_OK
9347 (N : Node_Id) return Boolean; -- Flag14
9349 function Convert_To_Return_False
9350 (N : Node_Id) return Boolean; -- Flag13
9352 function Corresponding_Aspect
9353 (N : Node_Id) return Node_Id; -- Node3
9355 function Corresponding_Body
9356 (N : Node_Id) return Node_Id; -- Node5
9358 function Corresponding_Formal_Spec
9359 (N : Node_Id) return Node_Id; -- Node3
9361 function Corresponding_Generic_Association
9362 (N : Node_Id) return Node_Id; -- Node5
9364 function Corresponding_Integer_Value
9365 (N : Node_Id) return Uint; -- Uint4
9367 function Corresponding_Spec
9368 (N : Node_Id) return Entity_Id; -- Node5
9370 function Corresponding_Spec_Of_Stub
9371 (N : Node_Id) return Node_Id; -- Node2
9373 function Corresponding_Stub
9374 (N : Node_Id) return Node_Id; -- Node3
9376 function Dcheck_Function
9377 (N : Node_Id) return Entity_Id; -- Node5
9379 function Declarations
9380 (N : Node_Id) return List_Id; -- List2
9382 function Default_Expression
9383 (N : Node_Id) return Node_Id; -- Node5
9385 function Default_Storage_Pool
9386 (N : Node_Id) return Node_Id; -- Node3
9388 function Default_Name
9389 (N : Node_Id) return Node_Id; -- Node2
9391 function Defining_Identifier
9392 (N : Node_Id) return Entity_Id; -- Node1
9394 function Defining_Unit_Name
9395 (N : Node_Id) return Node_Id; -- Node1
9397 function Delay_Alternative
9398 (N : Node_Id) return Node_Id; -- Node4
9400 function Delay_Statement
9401 (N : Node_Id) return Node_Id; -- Node2
9403 function Delta_Expression
9404 (N : Node_Id) return Node_Id; -- Node3
9406 function Digits_Expression
9407 (N : Node_Id) return Node_Id; -- Node2
9409 function Discr_Check_Funcs_Built
9410 (N : Node_Id) return Boolean; -- Flag11
9412 function Discrete_Choices
9413 (N : Node_Id) return List_Id; -- List4
9415 function Discrete_Range
9416 (N : Node_Id) return Node_Id; -- Node4
9418 function Discrete_Subtype_Definition
9419 (N : Node_Id) return Node_Id; -- Node4
9421 function Discrete_Subtype_Definitions
9422 (N : Node_Id) return List_Id; -- List2
9424 function Discriminant_Specifications
9425 (N : Node_Id) return List_Id; -- List4
9427 function Discriminant_Type
9428 (N : Node_Id) return Node_Id; -- Node5
9430 function Do_Accessibility_Check
9431 (N : Node_Id) return Boolean; -- Flag13
9433 function Do_Discriminant_Check
9434 (N : Node_Id) return Boolean; -- Flag3
9436 function Do_Division_Check
9437 (N : Node_Id) return Boolean; -- Flag13
9439 function Do_Length_Check
9440 (N : Node_Id) return Boolean; -- Flag4
9442 function Do_Overflow_Check
9443 (N : Node_Id) return Boolean; -- Flag17
9445 function Do_Range_Check
9446 (N : Node_Id) return Boolean; -- Flag9
9448 function Do_Storage_Check
9449 (N : Node_Id) return Boolean; -- Flag17
9451 function Do_Tag_Check
9452 (N : Node_Id) return Boolean; -- Flag13
9454 function Elaborate_All_Desirable
9455 (N : Node_Id) return Boolean; -- Flag9
9457 function Elaborate_All_Present
9458 (N : Node_Id) return Boolean; -- Flag14
9460 function Elaborate_Desirable
9461 (N : Node_Id) return Boolean; -- Flag11
9463 function Elaborate_Present
9464 (N : Node_Id) return Boolean; -- Flag4
9466 function Else_Actions
9467 (N : Node_Id) return List_Id; -- List3
9469 function Else_Statements
9470 (N : Node_Id) return List_Id; -- List4
9472 function Elsif_Parts
9473 (N : Node_Id) return List_Id; -- List3
9475 function Enclosing_Variant
9476 (N : Node_Id) return Node_Id; -- Node2
9478 function End_Label
9479 (N : Node_Id) return Node_Id; -- Node4
9481 function End_Span
9482 (N : Node_Id) return Uint; -- Uint5
9484 function Entity
9485 (N : Node_Id) return Node_Id; -- Node4
9487 function Entity_Or_Associated_Node
9488 (N : Node_Id) return Node_Id; -- Node4
9490 function Entry_Body_Formal_Part
9491 (N : Node_Id) return Node_Id; -- Node5
9493 function Entry_Call_Alternative
9494 (N : Node_Id) return Node_Id; -- Node1
9496 function Entry_Call_Statement
9497 (N : Node_Id) return Node_Id; -- Node1
9499 function Entry_Direct_Name
9500 (N : Node_Id) return Node_Id; -- Node1
9502 function Entry_Index
9503 (N : Node_Id) return Node_Id; -- Node5
9505 function Entry_Index_Specification
9506 (N : Node_Id) return Node_Id; -- Node4
9508 function Etype
9509 (N : Node_Id) return Node_Id; -- Node5
9511 function Exception_Choices
9512 (N : Node_Id) return List_Id; -- List4
9514 function Exception_Handlers
9515 (N : Node_Id) return List_Id; -- List5
9517 function Exception_Junk
9518 (N : Node_Id) return Boolean; -- Flag8
9520 function Exception_Label
9521 (N : Node_Id) return Node_Id; -- Node5
9523 function Explicit_Actual_Parameter
9524 (N : Node_Id) return Node_Id; -- Node3
9526 function Expansion_Delayed
9527 (N : Node_Id) return Boolean; -- Flag11
9529 function Explicit_Generic_Actual_Parameter
9530 (N : Node_Id) return Node_Id; -- Node1
9532 function Expression
9533 (N : Node_Id) return Node_Id; -- Node3
9535 function Expression_Copy
9536 (N : Node_Id) return Node_Id; -- Node2
9538 function Expressions
9539 (N : Node_Id) return List_Id; -- List1
9541 function First_Bit
9542 (N : Node_Id) return Node_Id; -- Node3
9544 function First_Inlined_Subprogram
9545 (N : Node_Id) return Entity_Id; -- Node3
9547 function First_Name
9548 (N : Node_Id) return Boolean; -- Flag5
9550 function First_Named_Actual
9551 (N : Node_Id) return Node_Id; -- Node4
9553 function First_Real_Statement
9554 (N : Node_Id) return Node_Id; -- Node2
9556 function First_Subtype_Link
9557 (N : Node_Id) return Entity_Id; -- Node5
9559 function Float_Truncate
9560 (N : Node_Id) return Boolean; -- Flag11
9562 function Formal_Type_Definition
9563 (N : Node_Id) return Node_Id; -- Node3
9565 function Forwards_OK
9566 (N : Node_Id) return Boolean; -- Flag5
9568 function From_Aspect_Specification
9569 (N : Node_Id) return Boolean; -- Flag13
9571 function From_At_End
9572 (N : Node_Id) return Boolean; -- Flag4
9574 function From_At_Mod
9575 (N : Node_Id) return Boolean; -- Flag4
9577 function From_Conditional_Expression
9578 (N : Node_Id) return Boolean; -- Flag1
9580 function From_Default
9581 (N : Node_Id) return Boolean; -- Flag6
9583 function Generalized_Indexing
9584 (N : Node_Id) return Node_Id; -- Node4
9586 function Generic_Associations
9587 (N : Node_Id) return List_Id; -- List3
9589 function Generic_Formal_Declarations
9590 (N : Node_Id) return List_Id; -- List2
9592 function Generic_Parent
9593 (N : Node_Id) return Node_Id; -- Node5
9595 function Generic_Parent_Type
9596 (N : Node_Id) return Node_Id; -- Node4
9598 function Handled_Statement_Sequence
9599 (N : Node_Id) return Node_Id; -- Node4
9601 function Handler_List_Entry
9602 (N : Node_Id) return Node_Id; -- Node2
9604 function Has_Created_Identifier
9605 (N : Node_Id) return Boolean; -- Flag15
9607 function Has_Dereference_Action
9608 (N : Node_Id) return Boolean; -- Flag13
9610 function Has_Dynamic_Length_Check
9611 (N : Node_Id) return Boolean; -- Flag10
9613 function Has_Dynamic_Range_Check
9614 (N : Node_Id) return Boolean; -- Flag12
9616 function Has_Init_Expression
9617 (N : Node_Id) return Boolean; -- Flag14
9619 function Has_Local_Raise
9620 (N : Node_Id) return Boolean; -- Flag8
9622 function Has_No_Elaboration_Code
9623 (N : Node_Id) return Boolean; -- Flag17
9625 function Has_Pragma_Suppress_All
9626 (N : Node_Id) return Boolean; -- Flag14
9628 function Has_Private_View
9629 (N : Node_Id) return Boolean; -- Flag11
9631 function Has_Relative_Deadline_Pragma
9632 (N : Node_Id) return Boolean; -- Flag9
9634 function Has_Self_Reference
9635 (N : Node_Id) return Boolean; -- Flag13
9637 function Has_SP_Choice
9638 (N : Node_Id) return Boolean; -- Flag15
9640 function Has_Storage_Size_Pragma
9641 (N : Node_Id) return Boolean; -- Flag5
9643 function Has_Target_Names
9644 (N : Node_Id) return Boolean; -- Flag8
9646 function Has_Wide_Character
9647 (N : Node_Id) return Boolean; -- Flag11
9649 function Has_Wide_Wide_Character
9650 (N : Node_Id) return Boolean; -- Flag13
9652 function Header_Size_Added
9653 (N : Node_Id) return Boolean; -- Flag11
9655 function Hidden_By_Use_Clause
9656 (N : Node_Id) return Elist_Id; -- Elist5
9658 function High_Bound
9659 (N : Node_Id) return Node_Id; -- Node2
9661 function Identifier
9662 (N : Node_Id) return Node_Id; -- Node1
9664 function Interface_List
9665 (N : Node_Id) return List_Id; -- List2
9667 function Interface_Present
9668 (N : Node_Id) return Boolean; -- Flag16
9670 function Implicit_With
9671 (N : Node_Id) return Boolean; -- Flag16
9673 function Implicit_With_From_Instantiation
9674 (N : Node_Id) return Boolean; -- Flag12
9676 function Import_Interface_Present
9677 (N : Node_Id) return Boolean; -- Flag16
9679 function In_Present
9680 (N : Node_Id) return Boolean; -- Flag15
9682 function Includes_Infinities
9683 (N : Node_Id) return Boolean; -- Flag11
9685 function Incomplete_View
9686 (N : Node_Id) return Node_Id; -- Node2
9688 function Inherited_Discriminant
9689 (N : Node_Id) return Boolean; -- Flag13
9691 function Instance_Spec
9692 (N : Node_Id) return Node_Id; -- Node5
9694 function Intval
9695 (N : Node_Id) return Uint; -- Uint3
9697 function Is_Abort_Block
9698 (N : Node_Id) return Boolean; -- Flag4
9700 function Is_Accessibility_Actual
9701 (N : Node_Id) return Boolean; -- Flag13
9703 function Is_Analyzed_Pragma
9704 (N : Node_Id) return Boolean; -- Flag5
9706 function Is_Asynchronous_Call_Block
9707 (N : Node_Id) return Boolean; -- Flag7
9709 function Is_Boolean_Aspect
9710 (N : Node_Id) return Boolean; -- Flag16
9712 function Is_Checked
9713 (N : Node_Id) return Boolean; -- Flag11
9715 function Is_Checked_Ghost_Pragma
9716 (N : Node_Id) return Boolean; -- Flag3
9718 function Is_Component_Left_Opnd
9719 (N : Node_Id) return Boolean; -- Flag13
9721 function Is_Component_Right_Opnd
9722 (N : Node_Id) return Boolean; -- Flag14
9724 function Is_Controlling_Actual
9725 (N : Node_Id) return Boolean; -- Flag16
9727 function Is_Declaration_Level_Node
9728 (N : Node_Id) return Boolean; -- Flag5
9730 function Is_Delayed_Aspect
9731 (N : Node_Id) return Boolean; -- Flag14
9733 function Is_Disabled
9734 (N : Node_Id) return Boolean; -- Flag15
9736 function Is_Dispatching_Call
9737 (N : Node_Id) return Boolean; -- Flag6
9739 function Is_Dynamic_Coextension
9740 (N : Node_Id) return Boolean; -- Flag18
9742 function Is_Effective_Use_Clause
9743 (N : Node_Id) return Boolean; -- Flag1
9745 function Is_Elaboration_Checks_OK_Node
9746 (N : Node_Id) return Boolean; -- Flag1
9748 function Is_Elaboration_Code
9749 (N : Node_Id) return Boolean; -- Flag9
9751 function Is_Elaboration_Warnings_OK_Node
9752 (N : Node_Id) return Boolean; -- Flag3
9754 function Is_Elsif
9755 (N : Node_Id) return Boolean; -- Flag13
9757 function Is_Entry_Barrier_Function
9758 (N : Node_Id) return Boolean; -- Flag8
9760 function Is_Expanded_Build_In_Place_Call
9761 (N : Node_Id) return Boolean; -- Flag11
9763 function Is_Expanded_Contract
9764 (N : Node_Id) return Boolean; -- Flag1
9766 function Is_Finalization_Wrapper
9767 (N : Node_Id) return Boolean; -- Flag9
9769 function Is_Folded_In_Parser
9770 (N : Node_Id) return Boolean; -- Flag4
9772 function Is_Generic_Contract_Pragma
9773 (N : Node_Id) return Boolean; -- Flag2
9775 function Is_Ignored
9776 (N : Node_Id) return Boolean; -- Flag9
9778 function Is_Ignored_Ghost_Pragma
9779 (N : Node_Id) return Boolean; -- Flag8
9781 function Is_In_Discriminant_Check
9782 (N : Node_Id) return Boolean; -- Flag11
9784 function Is_Inherited_Pragma
9785 (N : Node_Id) return Boolean; -- Flag4
9787 function Is_Initialization_Block
9788 (N : Node_Id) return Boolean; -- Flag1
9790 function Is_Known_Guaranteed_ABE
9791 (N : Node_Id) return Boolean; -- Flag18
9793 function Is_Machine_Number
9794 (N : Node_Id) return Boolean; -- Flag11
9796 function Is_Null_Loop
9797 (N : Node_Id) return Boolean; -- Flag16
9799 function Is_Overloaded
9800 (N : Node_Id) return Boolean; -- Flag5
9802 function Is_Power_Of_2_For_Shift
9803 (N : Node_Id) return Boolean; -- Flag13
9805 function Is_Prefixed_Call
9806 (N : Node_Id) return Boolean; -- Flag17
9808 function Is_Protected_Subprogram_Body
9809 (N : Node_Id) return Boolean; -- Flag7
9811 function Is_Qualified_Universal_Literal
9812 (N : Node_Id) return Boolean; -- Flag4
9814 function Is_Read
9815 (N : Node_Id) return Boolean; -- Flag1
9817 function Is_Source_Call
9818 (N : Node_Id) return Boolean; -- Flag4
9820 function Is_SPARK_Mode_On_Node
9821 (N : Node_Id) return Boolean; -- Flag2
9823 function Is_Static_Coextension
9824 (N : Node_Id) return Boolean; -- Flag14
9826 function Is_Static_Expression
9827 (N : Node_Id) return Boolean; -- Flag6
9829 function Is_Subprogram_Descriptor
9830 (N : Node_Id) return Boolean; -- Flag16
9832 function Is_Task_Allocation_Block
9833 (N : Node_Id) return Boolean; -- Flag6
9835 function Is_Task_Body_Procedure
9836 (N : Node_Id) return Boolean; -- Flag1
9838 function Is_Task_Master
9839 (N : Node_Id) return Boolean; -- Flag5
9841 function Is_Write
9842 (N : Node_Id) return Boolean; -- Flag2
9844 function Iteration_Scheme
9845 (N : Node_Id) return Node_Id; -- Node2
9847 function Iterator_Specification
9848 (N : Node_Id) return Node_Id; -- Node2
9850 function Itype
9851 (N : Node_Id) return Entity_Id; -- Node1
9853 function Kill_Range_Check
9854 (N : Node_Id) return Boolean; -- Flag11
9856 function Label_Construct
9857 (N : Node_Id) return Node_Id; -- Node2
9859 function Left_Opnd
9860 (N : Node_Id) return Node_Id; -- Node2
9862 function Last_Bit
9863 (N : Node_Id) return Node_Id; -- Node4
9865 function Last_Name
9866 (N : Node_Id) return Boolean; -- Flag6
9868 function Library_Unit
9869 (N : Node_Id) return Node_Id; -- Node4
9871 function Limited_View_Installed
9872 (N : Node_Id) return Boolean; -- Flag18
9874 function Limited_Present
9875 (N : Node_Id) return Boolean; -- Flag17
9877 function Literals
9878 (N : Node_Id) return List_Id; -- List1
9880 function Local_Raise_Not_OK
9881 (N : Node_Id) return Boolean; -- Flag7
9883 function Local_Raise_Statements
9884 (N : Node_Id) return Elist_Id; -- Elist1
9886 function Loop_Actions
9887 (N : Node_Id) return List_Id; -- List2
9889 function Loop_Parameter_Specification
9890 (N : Node_Id) return Node_Id; -- Node4
9892 function Low_Bound
9893 (N : Node_Id) return Node_Id; -- Node1
9895 function Mod_Clause
9896 (N : Node_Id) return Node_Id; -- Node2
9898 function More_Ids
9899 (N : Node_Id) return Boolean; -- Flag5
9901 function Must_Be_Byte_Aligned
9902 (N : Node_Id) return Boolean; -- Flag14
9904 function Must_Not_Freeze
9905 (N : Node_Id) return Boolean; -- Flag8
9907 function Must_Not_Override
9908 (N : Node_Id) return Boolean; -- Flag15
9910 function Must_Override
9911 (N : Node_Id) return Boolean; -- Flag14
9913 function Name
9914 (N : Node_Id) return Node_Id; -- Node2
9916 function Names
9917 (N : Node_Id) return List_Id; -- List2
9919 function Next_Entity
9920 (N : Node_Id) return Node_Id; -- Node2
9922 function Next_Exit_Statement
9923 (N : Node_Id) return Node_Id; -- Node3
9925 function Next_Implicit_With
9926 (N : Node_Id) return Node_Id; -- Node3
9928 function Next_Named_Actual
9929 (N : Node_Id) return Node_Id; -- Node4
9931 function Next_Pragma
9932 (N : Node_Id) return Node_Id; -- Node1
9934 function Next_Rep_Item
9935 (N : Node_Id) return Node_Id; -- Node5
9937 function Next_Use_Clause
9938 (N : Node_Id) return Node_Id; -- Node3
9940 function No_Ctrl_Actions
9941 (N : Node_Id) return Boolean; -- Flag7
9943 function No_Entities_Ref_In_Spec
9944 (N : Node_Id) return Boolean; -- Flag8
9946 function No_Initialization
9947 (N : Node_Id) return Boolean; -- Flag13
9949 function No_Minimize_Eliminate
9950 (N : Node_Id) return Boolean; -- Flag17
9952 function No_Side_Effect_Removal
9953 (N : Node_Id) return Boolean; -- Flag17
9955 function No_Truncation
9956 (N : Node_Id) return Boolean; -- Flag17
9958 function Null_Excluding_Subtype
9959 (N : Node_Id) return Boolean; -- Flag16
9961 function Null_Exclusion_Present
9962 (N : Node_Id) return Boolean; -- Flag11
9964 function Null_Exclusion_In_Return_Present
9965 (N : Node_Id) return Boolean; -- Flag14
9967 function Null_Present
9968 (N : Node_Id) return Boolean; -- Flag13
9970 function Null_Record_Present
9971 (N : Node_Id) return Boolean; -- Flag17
9973 function Null_Statement
9974 (N : Node_Id) return Node_Id; -- Node2
9976 function Object_Definition
9977 (N : Node_Id) return Node_Id; -- Node4
9979 function Of_Present
9980 (N : Node_Id) return Boolean; -- Flag16
9982 function Original_Discriminant
9983 (N : Node_Id) return Node_Id; -- Node2
9985 function Original_Entity
9986 (N : Node_Id) return Entity_Id; -- Node2
9988 function Others_Discrete_Choices
9989 (N : Node_Id) return List_Id; -- List1
9991 function Out_Present
9992 (N : Node_Id) return Boolean; -- Flag17
9994 function Parameter_Associations
9995 (N : Node_Id) return List_Id; -- List3
9997 function Parameter_Specifications
9998 (N : Node_Id) return List_Id; -- List3
10000 function Parameter_Type
10001 (N : Node_Id) return Node_Id; -- Node2
10003 function Parent_Spec
10004 (N : Node_Id) return Node_Id; -- Node4
10006 function Position
10007 (N : Node_Id) return Node_Id; -- Node2
10009 function Pragma_Argument_Associations
10010 (N : Node_Id) return List_Id; -- List2
10012 function Pragma_Identifier
10013 (N : Node_Id) return Node_Id; -- Node4
10015 function Pragmas_After
10016 (N : Node_Id) return List_Id; -- List5
10018 function Pragmas_Before
10019 (N : Node_Id) return List_Id; -- List4
10021 function Pre_Post_Conditions
10022 (N : Node_Id) return Node_Id; -- Node1
10024 function Prefix
10025 (N : Node_Id) return Node_Id; -- Node3
10027 function Premature_Use
10028 (N : Node_Id) return Node_Id; -- Node5
10030 function Present_Expr
10031 (N : Node_Id) return Uint; -- Uint3
10033 function Prev_Ids
10034 (N : Node_Id) return Boolean; -- Flag6
10036 function Prev_Use_Clause
10037 (N : Node_Id) return Node_Id; -- Node1
10039 function Print_In_Hex
10040 (N : Node_Id) return Boolean; -- Flag13
10042 function Private_Declarations
10043 (N : Node_Id) return List_Id; -- List3
10045 function Private_Present
10046 (N : Node_Id) return Boolean; -- Flag15
10048 function Procedure_To_Call
10049 (N : Node_Id) return Node_Id; -- Node2
10051 function Proper_Body
10052 (N : Node_Id) return Node_Id; -- Node1
10054 function Protected_Definition
10055 (N : Node_Id) return Node_Id; -- Node3
10057 function Protected_Present
10058 (N : Node_Id) return Boolean; -- Flag6
10060 function Raises_Constraint_Error
10061 (N : Node_Id) return Boolean; -- Flag7
10063 function Range_Constraint
10064 (N : Node_Id) return Node_Id; -- Node4
10066 function Range_Expression
10067 (N : Node_Id) return Node_Id; -- Node4
10069 function Real_Range_Specification
10070 (N : Node_Id) return Node_Id; -- Node4
10072 function Realval
10073 (N : Node_Id) return Ureal; -- Ureal3
10075 function Reason
10076 (N : Node_Id) return Uint; -- Uint3
10078 function Record_Extension_Part
10079 (N : Node_Id) return Node_Id; -- Node3
10081 function Redundant_Use
10082 (N : Node_Id) return Boolean; -- Flag13
10084 function Renaming_Exception
10085 (N : Node_Id) return Node_Id; -- Node2
10087 function Result_Definition
10088 (N : Node_Id) return Node_Id; -- Node4
10090 function Return_Object_Declarations
10091 (N : Node_Id) return List_Id; -- List3
10093 function Return_Statement_Entity
10094 (N : Node_Id) return Node_Id; -- Node5
10096 function Reverse_Present
10097 (N : Node_Id) return Boolean; -- Flag15
10099 function Right_Opnd
10100 (N : Node_Id) return Node_Id; -- Node3
10102 function Rounded_Result
10103 (N : Node_Id) return Boolean; -- Flag18
10105 function SCIL_Controlling_Tag
10106 (N : Node_Id) return Node_Id; -- Node5
10108 function SCIL_Entity
10109 (N : Node_Id) return Node_Id; -- Node4
10111 function SCIL_Tag_Value
10112 (N : Node_Id) return Node_Id; -- Node5
10114 function SCIL_Target_Prim
10115 (N : Node_Id) return Node_Id; -- Node2
10117 function Scope
10118 (N : Node_Id) return Node_Id; -- Node3
10120 function Select_Alternatives
10121 (N : Node_Id) return List_Id; -- List1
10123 function Selector_Name
10124 (N : Node_Id) return Node_Id; -- Node2
10126 function Selector_Names
10127 (N : Node_Id) return List_Id; -- List1
10129 function Shift_Count_OK
10130 (N : Node_Id) return Boolean; -- Flag4
10132 function Source_Type
10133 (N : Node_Id) return Entity_Id; -- Node1
10135 function Specification
10136 (N : Node_Id) return Node_Id; -- Node1
10138 function Split_PPC
10139 (N : Node_Id) return Boolean; -- Flag17
10141 function Statements
10142 (N : Node_Id) return List_Id; -- List3
10144 function Storage_Pool
10145 (N : Node_Id) return Node_Id; -- Node1
10147 function Subpool_Handle_Name
10148 (N : Node_Id) return Node_Id; -- Node4
10150 function Strval
10151 (N : Node_Id) return String_Id; -- Str3
10153 function Subtype_Indication
10154 (N : Node_Id) return Node_Id; -- Node5
10156 function Subtype_Mark
10157 (N : Node_Id) return Node_Id; -- Node4
10159 function Subtype_Marks
10160 (N : Node_Id) return List_Id; -- List2
10162 function Suppress_Assignment_Checks
10163 (N : Node_Id) return Boolean; -- Flag18
10165 function Suppress_Loop_Warnings
10166 (N : Node_Id) return Boolean; -- Flag17
10168 function Synchronized_Present
10169 (N : Node_Id) return Boolean; -- Flag7
10171 function Tagged_Present
10172 (N : Node_Id) return Boolean; -- Flag15
10174 function Target
10175 (N : Node_Id) return Entity_Id; -- Node1
10177 function Target_Type
10178 (N : Node_Id) return Entity_Id; -- Node2
10180 function Task_Definition
10181 (N : Node_Id) return Node_Id; -- Node3
10183 function Task_Present
10184 (N : Node_Id) return Boolean; -- Flag5
10186 function Then_Actions
10187 (N : Node_Id) return List_Id; -- List2
10189 function Then_Statements
10190 (N : Node_Id) return List_Id; -- List2
10192 function Treat_Fixed_As_Integer
10193 (N : Node_Id) return Boolean; -- Flag14
10195 function Triggering_Alternative
10196 (N : Node_Id) return Node_Id; -- Node1
10198 function Triggering_Statement
10199 (N : Node_Id) return Node_Id; -- Node1
10201 function TSS_Elist
10202 (N : Node_Id) return Elist_Id; -- Elist3
10204 function Type_Definition
10205 (N : Node_Id) return Node_Id; -- Node3
10207 function Uneval_Old_Accept
10208 (N : Node_Id) return Boolean; -- Flag7
10210 function Uneval_Old_Warn
10211 (N : Node_Id) return Boolean; -- Flag18
10213 function Unit
10214 (N : Node_Id) return Node_Id; -- Node2
10216 function Unknown_Discriminants_Present
10217 (N : Node_Id) return Boolean; -- Flag13
10219 function Unreferenced_In_Spec
10220 (N : Node_Id) return Boolean; -- Flag7
10222 function Variant_Part
10223 (N : Node_Id) return Node_Id; -- Node4
10225 function Variants
10226 (N : Node_Id) return List_Id; -- List1
10228 function Visible_Declarations
10229 (N : Node_Id) return List_Id; -- List2
10231 function Uninitialized_Variable
10232 (N : Node_Id) return Node_Id; -- Node3
10234 function Used_Operations
10235 (N : Node_Id) return Elist_Id; -- Elist2
10237 function Was_Attribute_Reference
10238 (N : Node_Id) return Boolean; -- Flag2
10240 function Was_Expression_Function
10241 (N : Node_Id) return Boolean; -- Flag18
10243 function Was_Originally_Stub
10244 (N : Node_Id) return Boolean; -- Flag13
10246 function Withed_Body
10247 (N : Node_Id) return Node_Id; -- Node1
10249 -- End functions (note used by xsinfo utility program to end processing)
10251 ----------------------------
10252 -- Node Update Procedures --
10253 ----------------------------
10255 -- These are the corresponding node update routines, which again provide
10256 -- a high level logical access with type checking. In addition to setting
10257 -- the indicated field of the node N to the given Val, in the case of
10258 -- tree pointers (List1-4), the parent pointer of the Val node is set to
10259 -- point back to node N. This automates the setting of the parent pointer.
10261 procedure Set_Abort_Present
10262 (N : Node_Id; Val : Boolean := True); -- Flag15
10264 procedure Set_Abortable_Part
10265 (N : Node_Id; Val : Node_Id); -- Node2
10267 procedure Set_Abstract_Present
10268 (N : Node_Id; Val : Boolean := True); -- Flag4
10270 procedure Set_Accept_Handler_Records
10271 (N : Node_Id; Val : List_Id); -- List5
10273 procedure Set_Accept_Statement
10274 (N : Node_Id; Val : Node_Id); -- Node2
10276 procedure Set_Access_Definition
10277 (N : Node_Id; Val : Node_Id); -- Node3
10279 procedure Set_Access_To_Subprogram_Definition
10280 (N : Node_Id; Val : Node_Id); -- Node3
10282 procedure Set_Access_Types_To_Process
10283 (N : Node_Id; Val : Elist_Id); -- Elist2
10285 procedure Set_Actions
10286 (N : Node_Id; Val : List_Id); -- List1
10288 procedure Set_Activation_Chain_Entity
10289 (N : Node_Id; Val : Node_Id); -- Node3
10291 procedure Set_Acts_As_Spec
10292 (N : Node_Id; Val : Boolean := True); -- Flag4
10294 procedure Set_Actual_Designated_Subtype
10295 (N : Node_Id; Val : Node_Id); -- Node4
10297 procedure Set_Address_Warning_Posted
10298 (N : Node_Id; Val : Boolean := True); -- Flag18
10300 procedure Set_Aggregate_Bounds
10301 (N : Node_Id; Val : Node_Id); -- Node3
10303 procedure Set_Aliased_Present
10304 (N : Node_Id; Val : Boolean := True); -- Flag4
10306 procedure Set_Alloc_For_BIP_Return
10307 (N : Node_Id; Val : Boolean := True); -- Flag1
10309 procedure Set_All_Others
10310 (N : Node_Id; Val : Boolean := True); -- Flag11
10312 procedure Set_All_Present
10313 (N : Node_Id; Val : Boolean := True); -- Flag15
10315 procedure Set_Alternatives
10316 (N : Node_Id; Val : List_Id); -- List4
10318 procedure Set_Ancestor_Part
10319 (N : Node_Id; Val : Node_Id); -- Node3
10321 procedure Set_Atomic_Sync_Required
10322 (N : Node_Id; Val : Boolean := True); -- Flag14
10324 procedure Set_Array_Aggregate
10325 (N : Node_Id; Val : Node_Id); -- Node3
10327 procedure Set_Aspect_Rep_Item
10328 (N : Node_Id; Val : Node_Id); -- Node2
10330 procedure Set_Assignment_OK
10331 (N : Node_Id; Val : Boolean := True); -- Flag15
10333 procedure Set_Associated_Node
10334 (N : Node_Id; Val : Node_Id); -- Node4
10336 procedure Set_Attribute_Name
10337 (N : Node_Id; Val : Name_Id); -- Name2
10339 procedure Set_At_End_Proc
10340 (N : Node_Id; Val : Node_Id); -- Node1
10342 procedure Set_Aux_Decls_Node
10343 (N : Node_Id; Val : Node_Id); -- Node5
10345 procedure Set_Backwards_OK
10346 (N : Node_Id; Val : Boolean := True); -- Flag6
10348 procedure Set_Bad_Is_Detected
10349 (N : Node_Id; Val : Boolean := True); -- Flag15
10351 procedure Set_Body_Required
10352 (N : Node_Id; Val : Boolean := True); -- Flag13
10354 procedure Set_Body_To_Inline
10355 (N : Node_Id; Val : Node_Id); -- Node3
10357 procedure Set_Box_Present
10358 (N : Node_Id; Val : Boolean := True); -- Flag15
10360 procedure Set_By_Ref
10361 (N : Node_Id; Val : Boolean := True); -- Flag5
10363 procedure Set_Char_Literal_Value
10364 (N : Node_Id; Val : Uint); -- Uint2
10366 procedure Set_Chars
10367 (N : Node_Id; Val : Name_Id); -- Name1
10369 procedure Set_Check_Address_Alignment
10370 (N : Node_Id; Val : Boolean := True); -- Flag11
10372 procedure Set_Choice_Parameter
10373 (N : Node_Id; Val : Node_Id); -- Node2
10375 procedure Set_Choices
10376 (N : Node_Id; Val : List_Id); -- List1
10378 procedure Set_Class_Present
10379 (N : Node_Id; Val : Boolean := True); -- Flag6
10381 procedure Set_Classifications
10382 (N : Node_Id; Val : Node_Id); -- Node3
10384 procedure Set_Cleanup_Actions
10385 (N : Node_Id; Val : List_Id); -- List5
10387 procedure Set_Comes_From_Extended_Return_Statement
10388 (N : Node_Id; Val : Boolean := True); -- Flag18
10390 procedure Set_Compile_Time_Known_Aggregate
10391 (N : Node_Id; Val : Boolean := True); -- Flag18
10393 procedure Set_Component_Associations
10394 (N : Node_Id; Val : List_Id); -- List2
10396 procedure Set_Component_Clauses
10397 (N : Node_Id; Val : List_Id); -- List3
10399 procedure Set_Component_Definition
10400 (N : Node_Id; Val : Node_Id); -- Node4
10402 procedure Set_Component_Items
10403 (N : Node_Id; Val : List_Id); -- List3
10405 procedure Set_Component_List
10406 (N : Node_Id; Val : Node_Id); -- Node1
10408 procedure Set_Component_Name
10409 (N : Node_Id; Val : Node_Id); -- Node1
10411 procedure Set_Componentwise_Assignment
10412 (N : Node_Id; Val : Boolean := True); -- Flag14
10414 procedure Set_Condition
10415 (N : Node_Id; Val : Node_Id); -- Node1
10417 procedure Set_Condition_Actions
10418 (N : Node_Id; Val : List_Id); -- List3
10420 procedure Set_Config_Pragmas
10421 (N : Node_Id; Val : List_Id); -- List4
10423 procedure Set_Constant_Present
10424 (N : Node_Id; Val : Boolean := True); -- Flag17
10426 procedure Set_Constraint
10427 (N : Node_Id; Val : Node_Id); -- Node3
10429 procedure Set_Constraints
10430 (N : Node_Id; Val : List_Id); -- List1
10432 procedure Set_Context_Installed
10433 (N : Node_Id; Val : Boolean := True); -- Flag13
10435 procedure Set_Context_Items
10436 (N : Node_Id; Val : List_Id); -- List1
10438 procedure Set_Context_Pending
10439 (N : Node_Id; Val : Boolean := True); -- Flag16
10441 procedure Set_Contract_Test_Cases
10442 (N : Node_Id; Val : Node_Id); -- Node2
10444 procedure Set_Controlling_Argument
10445 (N : Node_Id; Val : Node_Id); -- Node1
10447 procedure Set_Conversion_OK
10448 (N : Node_Id; Val : Boolean := True); -- Flag14
10450 procedure Set_Convert_To_Return_False
10451 (N : Node_Id; Val : Boolean := True); -- Flag13
10453 procedure Set_Corresponding_Aspect
10454 (N : Node_Id; Val : Node_Id); -- Node3
10456 procedure Set_Corresponding_Body
10457 (N : Node_Id; Val : Node_Id); -- Node5
10459 procedure Set_Corresponding_Formal_Spec
10460 (N : Node_Id; Val : Node_Id); -- Node3
10462 procedure Set_Corresponding_Generic_Association
10463 (N : Node_Id; Val : Node_Id); -- Node5
10465 procedure Set_Corresponding_Integer_Value
10466 (N : Node_Id; Val : Uint); -- Uint4
10468 procedure Set_Corresponding_Spec
10469 (N : Node_Id; Val : Entity_Id); -- Node5
10471 procedure Set_Corresponding_Spec_Of_Stub
10472 (N : Node_Id; Val : Node_Id); -- Node2
10474 procedure Set_Corresponding_Stub
10475 (N : Node_Id; Val : Node_Id); -- Node3
10477 procedure Set_Dcheck_Function
10478 (N : Node_Id; Val : Entity_Id); -- Node5
10480 procedure Set_Declarations
10481 (N : Node_Id; Val : List_Id); -- List2
10483 procedure Set_Default_Expression
10484 (N : Node_Id; Val : Node_Id); -- Node5
10486 procedure Set_Default_Storage_Pool
10487 (N : Node_Id; Val : Node_Id); -- Node3
10489 procedure Set_Default_Name
10490 (N : Node_Id; Val : Node_Id); -- Node2
10492 procedure Set_Defining_Identifier
10493 (N : Node_Id; Val : Entity_Id); -- Node1
10495 procedure Set_Defining_Unit_Name
10496 (N : Node_Id; Val : Node_Id); -- Node1
10498 procedure Set_Delay_Alternative
10499 (N : Node_Id; Val : Node_Id); -- Node4
10501 procedure Set_Delay_Statement
10502 (N : Node_Id; Val : Node_Id); -- Node2
10504 procedure Set_Delta_Expression
10505 (N : Node_Id; Val : Node_Id); -- Node3
10507 procedure Set_Digits_Expression
10508 (N : Node_Id; Val : Node_Id); -- Node2
10510 procedure Set_Discr_Check_Funcs_Built
10511 (N : Node_Id; Val : Boolean := True); -- Flag11
10513 procedure Set_Discrete_Choices
10514 (N : Node_Id; Val : List_Id); -- List4
10516 procedure Set_Discrete_Range
10517 (N : Node_Id; Val : Node_Id); -- Node4
10519 procedure Set_Discrete_Subtype_Definition
10520 (N : Node_Id; Val : Node_Id); -- Node4
10522 procedure Set_Discrete_Subtype_Definitions
10523 (N : Node_Id; Val : List_Id); -- List2
10525 procedure Set_Discriminant_Specifications
10526 (N : Node_Id; Val : List_Id); -- List4
10528 procedure Set_Discriminant_Type
10529 (N : Node_Id; Val : Node_Id); -- Node5
10531 procedure Set_Do_Accessibility_Check
10532 (N : Node_Id; Val : Boolean := True); -- Flag13
10534 procedure Set_Do_Discriminant_Check
10535 (N : Node_Id; Val : Boolean := True); -- Flag3
10537 procedure Set_Do_Division_Check
10538 (N : Node_Id; Val : Boolean := True); -- Flag13
10540 procedure Set_Do_Length_Check
10541 (N : Node_Id; Val : Boolean := True); -- Flag4
10543 procedure Set_Do_Overflow_Check
10544 (N : Node_Id; Val : Boolean := True); -- Flag17
10546 procedure Set_Do_Range_Check
10547 (N : Node_Id; Val : Boolean := True); -- Flag9
10549 procedure Set_Do_Storage_Check
10550 (N : Node_Id; Val : Boolean := True); -- Flag17
10552 procedure Set_Do_Tag_Check
10553 (N : Node_Id; Val : Boolean := True); -- Flag13
10555 procedure Set_Elaborate_All_Desirable
10556 (N : Node_Id; Val : Boolean := True); -- Flag9
10558 procedure Set_Elaborate_All_Present
10559 (N : Node_Id; Val : Boolean := True); -- Flag14
10561 procedure Set_Elaborate_Desirable
10562 (N : Node_Id; Val : Boolean := True); -- Flag11
10564 procedure Set_Elaborate_Present
10565 (N : Node_Id; Val : Boolean := True); -- Flag4
10567 procedure Set_Else_Actions
10568 (N : Node_Id; Val : List_Id); -- List3
10570 procedure Set_Else_Statements
10571 (N : Node_Id; Val : List_Id); -- List4
10573 procedure Set_Elsif_Parts
10574 (N : Node_Id; Val : List_Id); -- List3
10576 procedure Set_Enclosing_Variant
10577 (N : Node_Id; Val : Node_Id); -- Node2
10579 procedure Set_End_Label
10580 (N : Node_Id; Val : Node_Id); -- Node4
10582 procedure Set_End_Span
10583 (N : Node_Id; Val : Uint); -- Uint5
10585 procedure Set_Entity
10586 (N : Node_Id; Val : Node_Id); -- Node4
10588 procedure Set_Entry_Body_Formal_Part
10589 (N : Node_Id; Val : Node_Id); -- Node5
10591 procedure Set_Entry_Call_Alternative
10592 (N : Node_Id; Val : Node_Id); -- Node1
10594 procedure Set_Entry_Call_Statement
10595 (N : Node_Id; Val : Node_Id); -- Node1
10597 procedure Set_Entry_Direct_Name
10598 (N : Node_Id; Val : Node_Id); -- Node1
10600 procedure Set_Entry_Index
10601 (N : Node_Id; Val : Node_Id); -- Node5
10603 procedure Set_Entry_Index_Specification
10604 (N : Node_Id; Val : Node_Id); -- Node4
10606 procedure Set_Etype
10607 (N : Node_Id; Val : Node_Id); -- Node5
10609 procedure Set_Exception_Choices
10610 (N : Node_Id; Val : List_Id); -- List4
10612 procedure Set_Exception_Handlers
10613 (N : Node_Id; Val : List_Id); -- List5
10615 procedure Set_Exception_Junk
10616 (N : Node_Id; Val : Boolean := True); -- Flag8
10618 procedure Set_Exception_Label
10619 (N : Node_Id; Val : Node_Id); -- Node5
10621 procedure Set_Expansion_Delayed
10622 (N : Node_Id; Val : Boolean := True); -- Flag11
10624 procedure Set_Explicit_Actual_Parameter
10625 (N : Node_Id; Val : Node_Id); -- Node3
10627 procedure Set_Explicit_Generic_Actual_Parameter
10628 (N : Node_Id; Val : Node_Id); -- Node1
10630 procedure Set_Expression
10631 (N : Node_Id; Val : Node_Id); -- Node3
10633 procedure Set_Expression_Copy
10634 (N : Node_Id; Val : Node_Id); -- Node2
10636 procedure Set_Expressions
10637 (N : Node_Id; Val : List_Id); -- List1
10639 procedure Set_First_Bit
10640 (N : Node_Id; Val : Node_Id); -- Node3
10642 procedure Set_First_Inlined_Subprogram
10643 (N : Node_Id; Val : Entity_Id); -- Node3
10645 procedure Set_First_Name
10646 (N : Node_Id; Val : Boolean := True); -- Flag5
10648 procedure Set_First_Named_Actual
10649 (N : Node_Id; Val : Node_Id); -- Node4
10651 procedure Set_First_Real_Statement
10652 (N : Node_Id; Val : Node_Id); -- Node2
10654 procedure Set_First_Subtype_Link
10655 (N : Node_Id; Val : Entity_Id); -- Node5
10657 procedure Set_Float_Truncate
10658 (N : Node_Id; Val : Boolean := True); -- Flag11
10660 procedure Set_Formal_Type_Definition
10661 (N : Node_Id; Val : Node_Id); -- Node3
10663 procedure Set_Forwards_OK
10664 (N : Node_Id; Val : Boolean := True); -- Flag5
10666 procedure Set_From_Aspect_Specification
10667 (N : Node_Id; Val : Boolean := True); -- Flag13
10669 procedure Set_From_At_End
10670 (N : Node_Id; Val : Boolean := True); -- Flag4
10672 procedure Set_From_At_Mod
10673 (N : Node_Id; Val : Boolean := True); -- Flag4
10675 procedure Set_From_Conditional_Expression
10676 (N : Node_Id; Val : Boolean := True); -- Flag1
10678 procedure Set_From_Default
10679 (N : Node_Id; Val : Boolean := True); -- Flag6
10681 procedure Set_Generalized_Indexing
10682 (N : Node_Id; Val : Node_Id); -- Node4
10684 procedure Set_Generic_Associations
10685 (N : Node_Id; Val : List_Id); -- List3
10687 procedure Set_Generic_Formal_Declarations
10688 (N : Node_Id; Val : List_Id); -- List2
10690 procedure Set_Generic_Parent
10691 (N : Node_Id; Val : Node_Id); -- Node5
10693 procedure Set_Generic_Parent_Type
10694 (N : Node_Id; Val : Node_Id); -- Node4
10696 procedure Set_Handled_Statement_Sequence
10697 (N : Node_Id; Val : Node_Id); -- Node4
10699 procedure Set_Handler_List_Entry
10700 (N : Node_Id; Val : Node_Id); -- Node2
10702 procedure Set_Has_Created_Identifier
10703 (N : Node_Id; Val : Boolean := True); -- Flag15
10705 procedure Set_Has_Dereference_Action
10706 (N : Node_Id; Val : Boolean := True); -- Flag13
10708 procedure Set_Has_Dynamic_Length_Check
10709 (N : Node_Id; Val : Boolean := True); -- Flag10
10711 procedure Set_Has_Dynamic_Range_Check
10712 (N : Node_Id; Val : Boolean := True); -- Flag12
10714 procedure Set_Has_Init_Expression
10715 (N : Node_Id; Val : Boolean := True); -- Flag14
10717 procedure Set_Has_Local_Raise
10718 (N : Node_Id; Val : Boolean := True); -- Flag8
10720 procedure Set_Has_No_Elaboration_Code
10721 (N : Node_Id; Val : Boolean := True); -- Flag17
10723 procedure Set_Has_Pragma_Suppress_All
10724 (N : Node_Id; Val : Boolean := True); -- Flag14
10726 procedure Set_Has_Private_View
10727 (N : Node_Id; Val : Boolean := True); -- Flag11
10729 procedure Set_Has_Relative_Deadline_Pragma
10730 (N : Node_Id; Val : Boolean := True); -- Flag9
10732 procedure Set_Has_Self_Reference
10733 (N : Node_Id; Val : Boolean := True); -- Flag13
10735 procedure Set_Has_SP_Choice
10736 (N : Node_Id; Val : Boolean := True); -- Flag15
10738 procedure Set_Has_Storage_Size_Pragma
10739 (N : Node_Id; Val : Boolean := True); -- Flag5
10741 procedure Set_Has_Target_Names
10742 (N : Node_Id; Val : Boolean := True); -- Flag8
10744 procedure Set_Has_Wide_Character
10745 (N : Node_Id; Val : Boolean := True); -- Flag11
10747 procedure Set_Has_Wide_Wide_Character
10748 (N : Node_Id; Val : Boolean := True); -- Flag13
10750 procedure Set_Header_Size_Added
10751 (N : Node_Id; Val : Boolean := True); -- Flag11
10753 procedure Set_Hidden_By_Use_Clause
10754 (N : Node_Id; Val : Elist_Id); -- Elist5
10756 procedure Set_High_Bound
10757 (N : Node_Id; Val : Node_Id); -- Node2
10759 procedure Set_Identifier
10760 (N : Node_Id; Val : Node_Id); -- Node1
10762 procedure Set_Interface_List
10763 (N : Node_Id; Val : List_Id); -- List2
10765 procedure Set_Interface_Present
10766 (N : Node_Id; Val : Boolean := True); -- Flag16
10768 procedure Set_Implicit_With
10769 (N : Node_Id; Val : Boolean := True); -- Flag16
10771 procedure Set_Implicit_With_From_Instantiation
10772 (N : Node_Id; Val : Boolean := True); -- Flag12
10774 procedure Set_Import_Interface_Present
10775 (N : Node_Id; Val : Boolean := True); -- Flag16
10777 procedure Set_In_Present
10778 (N : Node_Id; Val : Boolean := True); -- Flag15
10780 procedure Set_Includes_Infinities
10781 (N : Node_Id; Val : Boolean := True); -- Flag11
10783 procedure Set_Incomplete_View
10784 (N : Node_Id; Val : Node_Id); -- Node2
10786 procedure Set_Inherited_Discriminant
10787 (N : Node_Id; Val : Boolean := True); -- Flag13
10789 procedure Set_Instance_Spec
10790 (N : Node_Id; Val : Node_Id); -- Node5
10792 procedure Set_Intval
10793 (N : Node_Id; Val : Uint); -- Uint3
10795 procedure Set_Is_Abort_Block
10796 (N : Node_Id; Val : Boolean := True); -- Flag4
10798 procedure Set_Is_Accessibility_Actual
10799 (N : Node_Id; Val : Boolean := True); -- Flag13
10801 procedure Set_Is_Analyzed_Pragma
10802 (N : Node_Id; Val : Boolean := True); -- Flag5
10804 procedure Set_Is_Asynchronous_Call_Block
10805 (N : Node_Id; Val : Boolean := True); -- Flag7
10807 procedure Set_Is_Boolean_Aspect
10808 (N : Node_Id; Val : Boolean := True); -- Flag16
10810 procedure Set_Is_Checked
10811 (N : Node_Id; Val : Boolean := True); -- Flag11
10813 procedure Set_Is_Checked_Ghost_Pragma
10814 (N : Node_Id; Val : Boolean := True); -- Flag3
10816 procedure Set_Is_Component_Left_Opnd
10817 (N : Node_Id; Val : Boolean := True); -- Flag13
10819 procedure Set_Is_Component_Right_Opnd
10820 (N : Node_Id; Val : Boolean := True); -- Flag14
10822 procedure Set_Is_Controlling_Actual
10823 (N : Node_Id; Val : Boolean := True); -- Flag16
10825 procedure Set_Is_Declaration_Level_Node
10826 (N : Node_Id; Val : Boolean := True); -- Flag5
10828 procedure Set_Is_Delayed_Aspect
10829 (N : Node_Id; Val : Boolean := True); -- Flag14
10831 procedure Set_Is_Disabled
10832 (N : Node_Id; Val : Boolean := True); -- Flag15
10834 procedure Set_Is_Dispatching_Call
10835 (N : Node_Id; Val : Boolean := True); -- Flag6
10837 procedure Set_Is_Dynamic_Coextension
10838 (N : Node_Id; Val : Boolean := True); -- Flag18
10840 procedure Set_Is_Effective_Use_Clause
10841 (N : Node_Id; Val : Boolean := True); -- Flag1
10843 procedure Set_Is_Elaboration_Checks_OK_Node
10844 (N : Node_Id; Val : Boolean := True); -- Flag1
10846 procedure Set_Is_Elaboration_Code
10847 (N : Node_Id; Val : Boolean := True); -- Flag9
10849 procedure Set_Is_Elaboration_Warnings_OK_Node
10850 (N : Node_Id; Val : Boolean := True); -- Flag3
10852 procedure Set_Is_Elsif
10853 (N : Node_Id; Val : Boolean := True); -- Flag13
10855 procedure Set_Is_Entry_Barrier_Function
10856 (N : Node_Id; Val : Boolean := True); -- Flag8
10858 procedure Set_Is_Expanded_Build_In_Place_Call
10859 (N : Node_Id; Val : Boolean := True); -- Flag11
10861 procedure Set_Is_Expanded_Contract
10862 (N : Node_Id; Val : Boolean := True); -- Flag1
10864 procedure Set_Is_Finalization_Wrapper
10865 (N : Node_Id; Val : Boolean := True); -- Flag9
10867 procedure Set_Is_Folded_In_Parser
10868 (N : Node_Id; Val : Boolean := True); -- Flag4
10870 procedure Set_Is_Generic_Contract_Pragma
10871 (N : Node_Id; Val : Boolean := True); -- Flag2
10873 procedure Set_Is_Ignored
10874 (N : Node_Id; Val : Boolean := True); -- Flag9
10876 procedure Set_Is_Ignored_Ghost_Pragma
10877 (N : Node_Id; Val : Boolean := True); -- Flag8
10879 procedure Set_Is_In_Discriminant_Check
10880 (N : Node_Id; Val : Boolean := True); -- Flag11
10882 procedure Set_Is_Inherited_Pragma
10883 (N : Node_Id; Val : Boolean := True); -- Flag4
10885 procedure Set_Is_Initialization_Block
10886 (N : Node_Id; Val : Boolean := True); -- Flag1
10888 procedure Set_Is_Known_Guaranteed_ABE
10889 (N : Node_Id; Val : Boolean := True); -- Flag18
10891 procedure Set_Is_Machine_Number
10892 (N : Node_Id; Val : Boolean := True); -- Flag11
10894 procedure Set_Is_Null_Loop
10895 (N : Node_Id; Val : Boolean := True); -- Flag16
10897 procedure Set_Is_Overloaded
10898 (N : Node_Id; Val : Boolean := True); -- Flag5
10900 procedure Set_Is_Power_Of_2_For_Shift
10901 (N : Node_Id; Val : Boolean := True); -- Flag13
10903 procedure Set_Is_Prefixed_Call
10904 (N : Node_Id; Val : Boolean := True); -- Flag17
10906 procedure Set_Is_Protected_Subprogram_Body
10907 (N : Node_Id; Val : Boolean := True); -- Flag7
10909 procedure Set_Is_Qualified_Universal_Literal
10910 (N : Node_Id; Val : Boolean := True); -- Flag4
10912 procedure Set_Is_Read
10913 (N : Node_Id; Val : Boolean := True); -- Flag1
10915 procedure Set_Is_Source_Call
10916 (N : Node_Id; Val : Boolean := True); -- Flag4
10918 procedure Set_Is_SPARK_Mode_On_Node
10919 (N : Node_Id; Val : Boolean := True); -- Flag2
10921 procedure Set_Is_Static_Coextension
10922 (N : Node_Id; Val : Boolean := True); -- Flag14
10924 procedure Set_Is_Static_Expression
10925 (N : Node_Id; Val : Boolean := True); -- Flag6
10927 procedure Set_Is_Subprogram_Descriptor
10928 (N : Node_Id; Val : Boolean := True); -- Flag16
10930 procedure Set_Is_Task_Allocation_Block
10931 (N : Node_Id; Val : Boolean := True); -- Flag6
10933 procedure Set_Is_Task_Body_Procedure
10934 (N : Node_Id; Val : Boolean := True); -- Flag1
10936 procedure Set_Is_Task_Master
10937 (N : Node_Id; Val : Boolean := True); -- Flag5
10939 procedure Set_Is_Write
10940 (N : Node_Id; Val : Boolean := True); -- Flag2
10942 procedure Set_Iteration_Scheme
10943 (N : Node_Id; Val : Node_Id); -- Node2
10945 procedure Set_Iterator_Specification
10946 (N : Node_Id; Val : Node_Id); -- Node2
10948 procedure Set_Itype
10949 (N : Node_Id; Val : Entity_Id); -- Node1
10951 procedure Set_Kill_Range_Check
10952 (N : Node_Id; Val : Boolean := True); -- Flag11
10954 procedure Set_Last_Bit
10955 (N : Node_Id; Val : Node_Id); -- Node4
10957 procedure Set_Last_Name
10958 (N : Node_Id; Val : Boolean := True); -- Flag6
10960 procedure Set_Library_Unit
10961 (N : Node_Id; Val : Node_Id); -- Node4
10963 procedure Set_Label_Construct
10964 (N : Node_Id; Val : Node_Id); -- Node2
10966 procedure Set_Left_Opnd
10967 (N : Node_Id; Val : Node_Id); -- Node2
10969 procedure Set_Limited_View_Installed
10970 (N : Node_Id; Val : Boolean := True); -- Flag18
10972 procedure Set_Limited_Present
10973 (N : Node_Id; Val : Boolean := True); -- Flag17
10975 procedure Set_Literals
10976 (N : Node_Id; Val : List_Id); -- List1
10978 procedure Set_Local_Raise_Not_OK
10979 (N : Node_Id; Val : Boolean := True); -- Flag7
10981 procedure Set_Local_Raise_Statements
10982 (N : Node_Id; Val : Elist_Id); -- Elist1
10984 procedure Set_Loop_Actions
10985 (N : Node_Id; Val : List_Id); -- List2
10987 procedure Set_Loop_Parameter_Specification
10988 (N : Node_Id; Val : Node_Id); -- Node4
10990 procedure Set_Low_Bound
10991 (N : Node_Id; Val : Node_Id); -- Node1
10993 procedure Set_Mod_Clause
10994 (N : Node_Id; Val : Node_Id); -- Node2
10996 procedure Set_More_Ids
10997 (N : Node_Id; Val : Boolean := True); -- Flag5
10999 procedure Set_Must_Be_Byte_Aligned
11000 (N : Node_Id; Val : Boolean := True); -- Flag14
11002 procedure Set_Must_Not_Freeze
11003 (N : Node_Id; Val : Boolean := True); -- Flag8
11005 procedure Set_Must_Not_Override
11006 (N : Node_Id; Val : Boolean := True); -- Flag15
11008 procedure Set_Must_Override
11009 (N : Node_Id; Val : Boolean := True); -- Flag14
11011 procedure Set_Name
11012 (N : Node_Id; Val : Node_Id); -- Node2
11014 procedure Set_Names
11015 (N : Node_Id; Val : List_Id); -- List2
11017 procedure Set_Next_Entity
11018 (N : Node_Id; Val : Node_Id); -- Node2
11020 procedure Set_Next_Exit_Statement
11021 (N : Node_Id; Val : Node_Id); -- Node3
11023 procedure Set_Next_Implicit_With
11024 (N : Node_Id; Val : Node_Id); -- Node3
11026 procedure Set_Next_Named_Actual
11027 (N : Node_Id; Val : Node_Id); -- Node4
11029 procedure Set_Next_Pragma
11030 (N : Node_Id; Val : Node_Id); -- Node1
11032 procedure Set_Next_Rep_Item
11033 (N : Node_Id; Val : Node_Id); -- Node5
11035 procedure Set_Next_Use_Clause
11036 (N : Node_Id; Val : Node_Id); -- Node3
11038 procedure Set_No_Ctrl_Actions
11039 (N : Node_Id; Val : Boolean := True); -- Flag7
11041 procedure Set_No_Entities_Ref_In_Spec
11042 (N : Node_Id; Val : Boolean := True); -- Flag8
11044 procedure Set_No_Initialization
11045 (N : Node_Id; Val : Boolean := True); -- Flag13
11047 procedure Set_No_Minimize_Eliminate
11048 (N : Node_Id; Val : Boolean := True); -- Flag17
11050 procedure Set_No_Side_Effect_Removal
11051 (N : Node_Id; Val : Boolean := True); -- Flag17
11053 procedure Set_No_Truncation
11054 (N : Node_Id; Val : Boolean := True); -- Flag17
11056 procedure Set_Null_Excluding_Subtype
11057 (N : Node_Id; Val : Boolean := True); -- Flag16
11059 procedure Set_Null_Exclusion_Present
11060 (N : Node_Id; Val : Boolean := True); -- Flag11
11062 procedure Set_Null_Exclusion_In_Return_Present
11063 (N : Node_Id; Val : Boolean := True); -- Flag14
11065 procedure Set_Null_Present
11066 (N : Node_Id; Val : Boolean := True); -- Flag13
11068 procedure Set_Null_Record_Present
11069 (N : Node_Id; Val : Boolean := True); -- Flag17
11071 procedure Set_Null_Statement
11072 (N : Node_Id; Val : Node_Id); -- Node2
11074 procedure Set_Object_Definition
11075 (N : Node_Id; Val : Node_Id); -- Node4
11077 procedure Set_Of_Present
11078 (N : Node_Id; Val : Boolean := True); -- Flag16
11080 procedure Set_Original_Discriminant
11081 (N : Node_Id; Val : Node_Id); -- Node2
11083 procedure Set_Original_Entity
11084 (N : Node_Id; Val : Entity_Id); -- Node2
11086 procedure Set_Others_Discrete_Choices
11087 (N : Node_Id; Val : List_Id); -- List1
11089 procedure Set_Out_Present
11090 (N : Node_Id; Val : Boolean := True); -- Flag17
11092 procedure Set_Parameter_Associations
11093 (N : Node_Id; Val : List_Id); -- List3
11095 procedure Set_Parameter_Specifications
11096 (N : Node_Id; Val : List_Id); -- List3
11098 procedure Set_Parameter_Type
11099 (N : Node_Id; Val : Node_Id); -- Node2
11101 procedure Set_Parent_Spec
11102 (N : Node_Id; Val : Node_Id); -- Node4
11104 procedure Set_Position
11105 (N : Node_Id; Val : Node_Id); -- Node2
11107 procedure Set_Pragma_Argument_Associations
11108 (N : Node_Id; Val : List_Id); -- List2
11110 procedure Set_Pragma_Identifier
11111 (N : Node_Id; Val : Node_Id); -- Node4
11113 procedure Set_Pragmas_After
11114 (N : Node_Id; Val : List_Id); -- List5
11116 procedure Set_Pragmas_Before
11117 (N : Node_Id; Val : List_Id); -- List4
11119 procedure Set_Pre_Post_Conditions
11120 (N : Node_Id; Val : Node_Id); -- Node1
11122 procedure Set_Prefix
11123 (N : Node_Id; Val : Node_Id); -- Node3
11125 procedure Set_Premature_Use
11126 (N : Node_Id; Val : Node_Id); -- Node5
11128 procedure Set_Present_Expr
11129 (N : Node_Id; Val : Uint); -- Uint3
11131 procedure Set_Prev_Ids
11132 (N : Node_Id; Val : Boolean := True); -- Flag6
11134 procedure Set_Prev_Use_Clause
11135 (N : Node_Id; Val : Node_Id); -- Node1
11137 procedure Set_Print_In_Hex
11138 (N : Node_Id; Val : Boolean := True); -- Flag13
11140 procedure Set_Private_Declarations
11141 (N : Node_Id; Val : List_Id); -- List3
11143 procedure Set_Private_Present
11144 (N : Node_Id; Val : Boolean := True); -- Flag15
11146 procedure Set_Procedure_To_Call
11147 (N : Node_Id; Val : Node_Id); -- Node2
11149 procedure Set_Proper_Body
11150 (N : Node_Id; Val : Node_Id); -- Node1
11152 procedure Set_Protected_Definition
11153 (N : Node_Id; Val : Node_Id); -- Node3
11155 procedure Set_Protected_Present
11156 (N : Node_Id; Val : Boolean := True); -- Flag6
11158 procedure Set_Raises_Constraint_Error
11159 (N : Node_Id; Val : Boolean := True); -- Flag7
11161 procedure Set_Range_Constraint
11162 (N : Node_Id; Val : Node_Id); -- Node4
11164 procedure Set_Range_Expression
11165 (N : Node_Id; Val : Node_Id); -- Node4
11167 procedure Set_Real_Range_Specification
11168 (N : Node_Id; Val : Node_Id); -- Node4
11170 procedure Set_Realval
11171 (N : Node_Id; Val : Ureal); -- Ureal3
11173 procedure Set_Reason
11174 (N : Node_Id; Val : Uint); -- Uint3
11176 procedure Set_Record_Extension_Part
11177 (N : Node_Id; Val : Node_Id); -- Node3
11179 procedure Set_Redundant_Use
11180 (N : Node_Id; Val : Boolean := True); -- Flag13
11182 procedure Set_Renaming_Exception
11183 (N : Node_Id; Val : Node_Id); -- Node2
11185 procedure Set_Result_Definition
11186 (N : Node_Id; Val : Node_Id); -- Node4
11188 procedure Set_Return_Object_Declarations
11189 (N : Node_Id; Val : List_Id); -- List3
11191 procedure Set_Return_Statement_Entity
11192 (N : Node_Id; Val : Node_Id); -- Node5
11194 procedure Set_Reverse_Present
11195 (N : Node_Id; Val : Boolean := True); -- Flag15
11197 procedure Set_Right_Opnd
11198 (N : Node_Id; Val : Node_Id); -- Node3
11200 procedure Set_Rounded_Result
11201 (N : Node_Id; Val : Boolean := True); -- Flag18
11203 procedure Set_SCIL_Controlling_Tag
11204 (N : Node_Id; Val : Node_Id); -- Node5
11206 procedure Set_SCIL_Entity
11207 (N : Node_Id; Val : Node_Id); -- Node4
11209 procedure Set_SCIL_Tag_Value
11210 (N : Node_Id; Val : Node_Id); -- Node5
11212 procedure Set_SCIL_Target_Prim
11213 (N : Node_Id; Val : Node_Id); -- Node2
11215 procedure Set_Scope
11216 (N : Node_Id; Val : Node_Id); -- Node3
11218 procedure Set_Select_Alternatives
11219 (N : Node_Id; Val : List_Id); -- List1
11221 procedure Set_Selector_Name
11222 (N : Node_Id; Val : Node_Id); -- Node2
11224 procedure Set_Selector_Names
11225 (N : Node_Id; Val : List_Id); -- List1
11227 procedure Set_Shift_Count_OK
11228 (N : Node_Id; Val : Boolean := True); -- Flag4
11230 procedure Set_Source_Type
11231 (N : Node_Id; Val : Entity_Id); -- Node1
11233 procedure Set_Specification
11234 (N : Node_Id; Val : Node_Id); -- Node1
11236 procedure Set_Split_PPC
11237 (N : Node_Id; Val : Boolean); -- Flag17
11239 procedure Set_Statements
11240 (N : Node_Id; Val : List_Id); -- List3
11242 procedure Set_Storage_Pool
11243 (N : Node_Id; Val : Node_Id); -- Node1
11245 procedure Set_Subpool_Handle_Name
11246 (N : Node_Id; Val : Node_Id); -- Node4
11248 procedure Set_Strval
11249 (N : Node_Id; Val : String_Id); -- Str3
11251 procedure Set_Subtype_Indication
11252 (N : Node_Id; Val : Node_Id); -- Node5
11254 procedure Set_Subtype_Mark
11255 (N : Node_Id; Val : Node_Id); -- Node4
11257 procedure Set_Subtype_Marks
11258 (N : Node_Id; Val : List_Id); -- List2
11260 procedure Set_Suppress_Assignment_Checks
11261 (N : Node_Id; Val : Boolean := True); -- Flag18
11263 procedure Set_Suppress_Loop_Warnings
11264 (N : Node_Id; Val : Boolean := True); -- Flag17
11266 procedure Set_Synchronized_Present
11267 (N : Node_Id; Val : Boolean := True); -- Flag7
11269 procedure Set_Tagged_Present
11270 (N : Node_Id; Val : Boolean := True); -- Flag15
11272 procedure Set_Target
11273 (N : Node_Id; Val : Entity_Id); -- Node1
11275 procedure Set_Target_Type
11276 (N : Node_Id; Val : Entity_Id); -- Node2
11278 procedure Set_Task_Definition
11279 (N : Node_Id; Val : Node_Id); -- Node3
11281 procedure Set_Task_Present
11282 (N : Node_Id; Val : Boolean := True); -- Flag5
11284 procedure Set_Then_Actions
11285 (N : Node_Id; Val : List_Id); -- List2
11287 procedure Set_Then_Statements
11288 (N : Node_Id; Val : List_Id); -- List2
11290 procedure Set_Treat_Fixed_As_Integer
11291 (N : Node_Id; Val : Boolean := True); -- Flag14
11293 procedure Set_Triggering_Alternative
11294 (N : Node_Id; Val : Node_Id); -- Node1
11296 procedure Set_Triggering_Statement
11297 (N : Node_Id; Val : Node_Id); -- Node1
11299 procedure Set_TSS_Elist
11300 (N : Node_Id; Val : Elist_Id); -- Elist3
11302 procedure Set_Type_Definition
11303 (N : Node_Id; Val : Node_Id); -- Node3
11305 procedure Set_Uneval_Old_Accept
11306 (N : Node_Id; Val : Boolean := True); -- Flag7
11308 procedure Set_Uneval_Old_Warn
11309 (N : Node_Id; Val : Boolean := True); -- Flag18
11311 procedure Set_Unit
11312 (N : Node_Id; Val : Node_Id); -- Node2
11314 procedure Set_Unknown_Discriminants_Present
11315 (N : Node_Id; Val : Boolean := True); -- Flag13
11317 procedure Set_Unreferenced_In_Spec
11318 (N : Node_Id; Val : Boolean := True); -- Flag7
11320 procedure Set_Variant_Part
11321 (N : Node_Id; Val : Node_Id); -- Node4
11323 procedure Set_Variants
11324 (N : Node_Id; Val : List_Id); -- List1
11326 procedure Set_Visible_Declarations
11327 (N : Node_Id; Val : List_Id); -- List2
11329 procedure Set_Uninitialized_Variable
11330 (N : Node_Id; Val : Node_Id); -- Node3
11332 procedure Set_Used_Operations
11333 (N : Node_Id; Val : Elist_Id); -- Elist2
11335 procedure Set_Was_Attribute_Reference
11336 (N : Node_Id; Val : Boolean := True); -- Flag2
11338 procedure Set_Was_Expression_Function
11339 (N : Node_Id; Val : Boolean := True); -- Flag18
11341 procedure Set_Was_Originally_Stub
11342 (N : Node_Id; Val : Boolean := True); -- Flag13
11344 procedure Set_Withed_Body
11345 (N : Node_Id; Val : Node_Id); -- Node1
11347 -------------------------
11348 -- Iterator Procedures --
11349 -------------------------
11351 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
11353 procedure Next_Entity (N : in out Node_Id);
11354 procedure Next_Named_Actual (N : in out Node_Id);
11355 procedure Next_Rep_Item (N : in out Node_Id);
11356 procedure Next_Use_Clause (N : in out Node_Id);
11358 -------------------------------------------
11359 -- Miscellaneous Tree Access Subprograms --
11360 -------------------------------------------
11362 function End_Location (N : Node_Id) return Source_Ptr;
11363 -- N is an N_If_Statement or N_Case_Statement node, and this function
11364 -- returns the location of the IF token in the END IF sequence by
11365 -- translating the value of the End_Span field.
11367 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
11368 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
11369 -- the End_Span field to correspond to the given value S. In other words,
11370 -- End_Span is set to the difference between S and Sloc (N), the starting
11371 -- location.
11373 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
11374 -- Given an argument to a pragma Arg, this function returns the expression
11375 -- for the argument. This is Arg itself, or, in the case where Arg is a
11376 -- pragma argument association node, the expression from this node.
11378 --------------------------------
11379 -- Node_Kind Membership Tests --
11380 --------------------------------
11382 -- The following functions allow a convenient notation for testing whether
11383 -- a Node_Kind value matches any one of a list of possible values. In each
11384 -- case True is returned if the given T argument is equal to any of the V
11385 -- arguments. Note that there is a similar set of functions defined in
11386 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
11388 function Nkind_In
11389 (T : Node_Kind;
11390 V1 : Node_Kind;
11391 V2 : Node_Kind) return Boolean;
11393 function Nkind_In
11394 (T : Node_Kind;
11395 V1 : Node_Kind;
11396 V2 : Node_Kind;
11397 V3 : Node_Kind) return Boolean;
11399 function Nkind_In
11400 (T : Node_Kind;
11401 V1 : Node_Kind;
11402 V2 : Node_Kind;
11403 V3 : Node_Kind;
11404 V4 : Node_Kind) return Boolean;
11406 function Nkind_In
11407 (T : Node_Kind;
11408 V1 : Node_Kind;
11409 V2 : Node_Kind;
11410 V3 : Node_Kind;
11411 V4 : Node_Kind;
11412 V5 : Node_Kind) return Boolean;
11414 function Nkind_In
11415 (T : Node_Kind;
11416 V1 : Node_Kind;
11417 V2 : Node_Kind;
11418 V3 : Node_Kind;
11419 V4 : Node_Kind;
11420 V5 : Node_Kind;
11421 V6 : Node_Kind) return Boolean;
11423 function Nkind_In
11424 (T : Node_Kind;
11425 V1 : Node_Kind;
11426 V2 : Node_Kind;
11427 V3 : Node_Kind;
11428 V4 : Node_Kind;
11429 V5 : Node_Kind;
11430 V6 : Node_Kind;
11431 V7 : Node_Kind) return Boolean;
11433 function Nkind_In
11434 (T : Node_Kind;
11435 V1 : Node_Kind;
11436 V2 : Node_Kind;
11437 V3 : Node_Kind;
11438 V4 : Node_Kind;
11439 V5 : Node_Kind;
11440 V6 : Node_Kind;
11441 V7 : Node_Kind;
11442 V8 : Node_Kind) return Boolean;
11444 function Nkind_In
11445 (T : Node_Kind;
11446 V1 : Node_Kind;
11447 V2 : Node_Kind;
11448 V3 : Node_Kind;
11449 V4 : Node_Kind;
11450 V5 : Node_Kind;
11451 V6 : Node_Kind;
11452 V7 : Node_Kind;
11453 V8 : Node_Kind;
11454 V9 : Node_Kind) return Boolean;
11456 function Nkind_In
11457 (T : Node_Kind;
11458 V1 : Node_Kind;
11459 V2 : Node_Kind;
11460 V3 : Node_Kind;
11461 V4 : Node_Kind;
11462 V5 : Node_Kind;
11463 V6 : Node_Kind;
11464 V7 : Node_Kind;
11465 V8 : Node_Kind;
11466 V9 : Node_Kind;
11467 V10 : Node_Kind) return Boolean;
11469 function Nkind_In
11470 (T : Node_Kind;
11471 V1 : Node_Kind;
11472 V2 : Node_Kind;
11473 V3 : Node_Kind;
11474 V4 : Node_Kind;
11475 V5 : Node_Kind;
11476 V6 : Node_Kind;
11477 V7 : Node_Kind;
11478 V8 : Node_Kind;
11479 V9 : Node_Kind;
11480 V10 : Node_Kind;
11481 V11 : Node_Kind) return Boolean;
11483 pragma Inline (Nkind_In);
11484 -- Inline all above functions
11486 -----------------------
11487 -- Utility Functions --
11488 -----------------------
11490 procedure Map_Pragma_Name (From, To : Name_Id);
11491 -- Used in the implementation of pragma Rename_Pragma. Maps pragma name
11492 -- From to pragma name To, so From can be used as a synonym for To.
11494 Too_Many_Pragma_Mappings : exception;
11495 -- Raised if Map_Pragma_Name is called too many times. We expect that few
11496 -- programs will use it at all, and those that do will use it approximately
11497 -- once or twice.
11499 function Pragma_Name (N : Node_Id) return Name_Id;
11500 -- Obtain the name of pragma N from the Chars field of its identifier. If
11501 -- the pragma has been renamed using Rename_Pragma, this routine returns
11502 -- the name of the renaming.
11504 function Pragma_Name_Unmapped (N : Node_Id) return Name_Id;
11505 -- Obtain the name of pragma N from the Chars field of its identifier. This
11506 -- form of name extraction does not take into account renamings performed
11507 -- by Rename_Pragma.
11509 -----------------------------
11510 -- Syntactic Parent Tables --
11511 -----------------------------
11513 -- These tables show for each node, and for each of the five fields,
11514 -- whether the corresponding field is syntactic (True) or semantic (False).
11515 -- Unused entries are also set to False.
11517 subtype Field_Num is Natural range 1 .. 5;
11519 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
11521 -- Following entries can be built automatically from the sinfo sources
11522 -- using the makeisf utility (currently this program is in spitbol).
11524 N_Identifier =>
11525 (1 => True, -- Chars (Name1)
11526 2 => False, -- Original_Discriminant (Node2-Sem)
11527 3 => False, -- unused
11528 4 => False, -- Entity (Node4-Sem)
11529 5 => False), -- Etype (Node5-Sem)
11531 N_Integer_Literal =>
11532 (1 => False, -- unused
11533 2 => False, -- Original_Entity (Node2-Sem)
11534 3 => True, -- Intval (Uint3)
11535 4 => False, -- unused
11536 5 => False), -- Etype (Node5-Sem)
11538 N_Real_Literal =>
11539 (1 => False, -- unused
11540 2 => False, -- Original_Entity (Node2-Sem)
11541 3 => True, -- Realval (Ureal3)
11542 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
11543 5 => False), -- Etype (Node5-Sem)
11545 N_Character_Literal =>
11546 (1 => True, -- Chars (Name1)
11547 2 => True, -- Char_Literal_Value (Uint2)
11548 3 => False, -- unused
11549 4 => False, -- Entity (Node4-Sem)
11550 5 => False), -- Etype (Node5-Sem)
11552 N_String_Literal =>
11553 (1 => False, -- unused
11554 2 => False, -- unused
11555 3 => True, -- Strval (Str3)
11556 4 => False, -- unused
11557 5 => False), -- Etype (Node5-Sem)
11559 N_Pragma =>
11560 (1 => False, -- Next_Pragma (Node1-Sem)
11561 2 => True, -- Pragma_Argument_Associations (List2)
11562 3 => False, -- Corresponding_Aspect (Node3-Sem)
11563 4 => True, -- Pragma_Identifier (Node4)
11564 5 => False), -- Next_Rep_Item (Node5-Sem)
11566 N_Pragma_Argument_Association =>
11567 (1 => True, -- Chars (Name1)
11568 2 => False, -- Expression_Copy (Node2-Sem)
11569 3 => True, -- Expression (Node3)
11570 4 => False, -- unused
11571 5 => False), -- unused
11573 N_Defining_Identifier =>
11574 (1 => True, -- Chars (Name1)
11575 2 => False, -- Next_Entity (Node2-Sem)
11576 3 => False, -- Scope (Node3-Sem)
11577 4 => False, -- unused
11578 5 => False), -- Etype (Node5-Sem)
11580 N_Full_Type_Declaration =>
11581 (1 => True, -- Defining_Identifier (Node1)
11582 2 => False, -- Incomplete_View (Node2-Sem)
11583 3 => True, -- Type_Definition (Node3)
11584 4 => True, -- Discriminant_Specifications (List4)
11585 5 => False), -- unused
11587 N_Subtype_Declaration =>
11588 (1 => True, -- Defining_Identifier (Node1)
11589 2 => False, -- unused
11590 3 => False, -- unused
11591 4 => False, -- Generic_Parent_Type (Node4-Sem)
11592 5 => True), -- Subtype_Indication (Node5)
11594 N_Subtype_Indication =>
11595 (1 => False, -- unused
11596 2 => False, -- unused
11597 3 => True, -- Constraint (Node3)
11598 4 => True, -- Subtype_Mark (Node4)
11599 5 => False), -- Etype (Node5-Sem)
11601 N_Object_Declaration =>
11602 (1 => True, -- Defining_Identifier (Node1)
11603 2 => False, -- Handler_List_Entry (Node2-Sem)
11604 3 => True, -- Expression (Node3)
11605 4 => True, -- Object_Definition (Node4)
11606 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11608 N_Number_Declaration =>
11609 (1 => True, -- Defining_Identifier (Node1)
11610 2 => False, -- unused
11611 3 => True, -- Expression (Node3)
11612 4 => False, -- unused
11613 5 => False), -- unused
11615 N_Derived_Type_Definition =>
11616 (1 => False, -- unused
11617 2 => True, -- Interface_List (List2)
11618 3 => True, -- Record_Extension_Part (Node3)
11619 4 => False, -- unused
11620 5 => True), -- Subtype_Indication (Node5)
11622 N_Range_Constraint =>
11623 (1 => False, -- unused
11624 2 => False, -- unused
11625 3 => False, -- unused
11626 4 => True, -- Range_Expression (Node4)
11627 5 => False), -- unused
11629 N_Range =>
11630 (1 => True, -- Low_Bound (Node1)
11631 2 => True, -- High_Bound (Node2)
11632 3 => False, -- unused
11633 4 => False, -- unused
11634 5 => False), -- Etype (Node5-Sem)
11636 N_Enumeration_Type_Definition =>
11637 (1 => True, -- Literals (List1)
11638 2 => False, -- unused
11639 3 => False, -- unused
11640 4 => True, -- End_Label (Node4)
11641 5 => False), -- unused
11643 N_Defining_Character_Literal =>
11644 (1 => True, -- Chars (Name1)
11645 2 => False, -- Next_Entity (Node2-Sem)
11646 3 => False, -- Scope (Node3-Sem)
11647 4 => False, -- unused
11648 5 => False), -- Etype (Node5-Sem)
11650 N_Signed_Integer_Type_Definition =>
11651 (1 => True, -- Low_Bound (Node1)
11652 2 => True, -- High_Bound (Node2)
11653 3 => False, -- unused
11654 4 => False, -- unused
11655 5 => False), -- unused
11657 N_Modular_Type_Definition =>
11658 (1 => False, -- unused
11659 2 => False, -- unused
11660 3 => True, -- Expression (Node3)
11661 4 => False, -- unused
11662 5 => False), -- unused
11664 N_Floating_Point_Definition =>
11665 (1 => False, -- unused
11666 2 => True, -- Digits_Expression (Node2)
11667 3 => False, -- unused
11668 4 => True, -- Real_Range_Specification (Node4)
11669 5 => False), -- unused
11671 N_Real_Range_Specification =>
11672 (1 => True, -- Low_Bound (Node1)
11673 2 => True, -- High_Bound (Node2)
11674 3 => False, -- unused
11675 4 => False, -- unused
11676 5 => False), -- unused
11678 N_Ordinary_Fixed_Point_Definition =>
11679 (1 => False, -- unused
11680 2 => False, -- unused
11681 3 => True, -- Delta_Expression (Node3)
11682 4 => True, -- Real_Range_Specification (Node4)
11683 5 => False), -- unused
11685 N_Decimal_Fixed_Point_Definition =>
11686 (1 => False, -- unused
11687 2 => True, -- Digits_Expression (Node2)
11688 3 => True, -- Delta_Expression (Node3)
11689 4 => True, -- Real_Range_Specification (Node4)
11690 5 => False), -- unused
11692 N_Digits_Constraint =>
11693 (1 => False, -- unused
11694 2 => True, -- Digits_Expression (Node2)
11695 3 => False, -- unused
11696 4 => True, -- Range_Constraint (Node4)
11697 5 => False), -- unused
11699 N_Unconstrained_Array_Definition =>
11700 (1 => False, -- unused
11701 2 => True, -- Subtype_Marks (List2)
11702 3 => False, -- unused
11703 4 => True, -- Component_Definition (Node4)
11704 5 => False), -- unused
11706 N_Constrained_Array_Definition =>
11707 (1 => False, -- unused
11708 2 => True, -- Discrete_Subtype_Definitions (List2)
11709 3 => False, -- unused
11710 4 => True, -- Component_Definition (Node4)
11711 5 => False), -- unused
11713 N_Component_Definition =>
11714 (1 => False, -- unused
11715 2 => False, -- unused
11716 3 => True, -- Access_Definition (Node3)
11717 4 => False, -- unused
11718 5 => True), -- Subtype_Indication (Node5)
11720 N_Discriminant_Specification =>
11721 (1 => True, -- Defining_Identifier (Node1)
11722 2 => False, -- unused
11723 3 => True, -- Expression (Node3)
11724 4 => False, -- unused
11725 5 => True), -- Discriminant_Type (Node5)
11727 N_Index_Or_Discriminant_Constraint =>
11728 (1 => True, -- Constraints (List1)
11729 2 => False, -- unused
11730 3 => False, -- unused
11731 4 => False, -- unused
11732 5 => False), -- unused
11734 N_Discriminant_Association =>
11735 (1 => True, -- Selector_Names (List1)
11736 2 => False, -- unused
11737 3 => True, -- Expression (Node3)
11738 4 => False, -- unused
11739 5 => False), -- unused
11741 N_Record_Definition =>
11742 (1 => True, -- Component_List (Node1)
11743 2 => True, -- Interface_List (List2)
11744 3 => False, -- unused
11745 4 => True, -- End_Label (Node4)
11746 5 => False), -- unused
11748 N_Component_List =>
11749 (1 => False, -- unused
11750 2 => False, -- unused
11751 3 => True, -- Component_Items (List3)
11752 4 => True, -- Variant_Part (Node4)
11753 5 => False), -- unused
11755 N_Component_Declaration =>
11756 (1 => True, -- Defining_Identifier (Node1)
11757 2 => False, -- unused
11758 3 => True, -- Expression (Node3)
11759 4 => True, -- Component_Definition (Node4)
11760 5 => False), -- unused
11762 N_Variant_Part =>
11763 (1 => True, -- Variants (List1)
11764 2 => True, -- Name (Node2)
11765 3 => False, -- unused
11766 4 => False, -- unused
11767 5 => False), -- unused
11769 N_Variant =>
11770 (1 => True, -- Component_List (Node1)
11771 2 => False, -- Enclosing_Variant (Node2-Sem)
11772 3 => False, -- Present_Expr (Uint3-Sem)
11773 4 => True, -- Discrete_Choices (List4)
11774 5 => False), -- Dcheck_Function (Node5-Sem)
11776 N_Others_Choice =>
11777 (1 => False, -- Others_Discrete_Choices (List1-Sem)
11778 2 => False, -- unused
11779 3 => False, -- unused
11780 4 => False, -- unused
11781 5 => False), -- unused
11783 N_Access_To_Object_Definition =>
11784 (1 => False, -- unused
11785 2 => False, -- unused
11786 3 => False, -- unused
11787 4 => False, -- unused
11788 5 => True), -- Subtype_Indication (Node5)
11790 N_Access_Function_Definition =>
11791 (1 => False, -- unused
11792 2 => False, -- unused
11793 3 => True, -- Parameter_Specifications (List3)
11794 4 => True, -- Result_Definition (Node4)
11795 5 => False), -- unused
11797 N_Access_Procedure_Definition =>
11798 (1 => False, -- unused
11799 2 => False, -- unused
11800 3 => True, -- Parameter_Specifications (List3)
11801 4 => False, -- unused
11802 5 => False), -- unused
11804 N_Access_Definition =>
11805 (1 => False, -- unused
11806 2 => False, -- unused
11807 3 => True, -- Access_To_Subprogram_Definition (Node3)
11808 4 => True, -- Subtype_Mark (Node4)
11809 5 => False), -- unused
11811 N_Incomplete_Type_Declaration =>
11812 (1 => True, -- Defining_Identifier (Node1)
11813 2 => False, -- unused
11814 3 => False, -- unused
11815 4 => True, -- Discriminant_Specifications (List4)
11816 5 => False), -- Premature_Use
11818 N_Explicit_Dereference =>
11819 (1 => False, -- unused
11820 2 => False, -- unused
11821 3 => True, -- Prefix (Node3)
11822 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11823 5 => False), -- Etype (Node5-Sem)
11825 N_Indexed_Component =>
11826 (1 => True, -- Expressions (List1)
11827 2 => False, -- unused
11828 3 => True, -- Prefix (Node3)
11829 4 => False, -- Generalized_Indexing (Node4-Sem)
11830 5 => False), -- Etype (Node5-Sem)
11832 N_Slice =>
11833 (1 => False, -- unused
11834 2 => False, -- unused
11835 3 => True, -- Prefix (Node3)
11836 4 => True, -- Discrete_Range (Node4)
11837 5 => False), -- Etype (Node5-Sem)
11839 N_Selected_Component =>
11840 (1 => False, -- unused
11841 2 => True, -- Selector_Name (Node2)
11842 3 => True, -- Prefix (Node3)
11843 4 => False, -- unused
11844 5 => False), -- Etype (Node5-Sem)
11846 N_Attribute_Reference =>
11847 (1 => True, -- Expressions (List1)
11848 2 => True, -- Attribute_Name (Name2)
11849 3 => True, -- Prefix (Node3)
11850 4 => False, -- Entity (Node4-Sem)
11851 5 => False), -- Etype (Node5-Sem)
11853 N_Aggregate =>
11854 (1 => True, -- Expressions (List1)
11855 2 => True, -- Component_Associations (List2)
11856 3 => False, -- Aggregate_Bounds (Node3-Sem)
11857 4 => False, -- unused
11858 5 => False), -- Etype (Node5-Sem)
11860 N_Component_Association =>
11861 (1 => True, -- Choices (List1)
11862 2 => False, -- Loop_Actions (List2-Sem)
11863 3 => True, -- Expression (Node3)
11864 4 => False, -- unused
11865 5 => False), -- unused
11867 N_Iterated_Component_Association =>
11868 (1 => True, -- Defining_Identifier (Node1)
11869 2 => False, -- unused
11870 3 => True, -- Expression (Node3)
11871 4 => True, -- Discrete_Choices (List4)
11872 5 => False), -- unused
11874 N_Delta_Aggregate =>
11875 (1 => False, -- Expressions (List1-Sem)
11876 2 => True, -- Component_Associations (List2)
11877 3 => True, -- Expression (Node3)
11878 4 => False, -- Unused
11879 5 => False), -- Etype (Node5-Sem)
11881 N_Extension_Aggregate =>
11882 (1 => True, -- Expressions (List1)
11883 2 => True, -- Component_Associations (List2)
11884 3 => True, -- Ancestor_Part (Node3)
11885 4 => False, -- unused
11886 5 => False), -- Etype (Node5-Sem)
11888 N_Null =>
11889 (1 => False, -- unused
11890 2 => False, -- unused
11891 3 => False, -- unused
11892 4 => False, -- unused
11893 5 => False), -- Etype (Node5-Sem)
11895 N_And_Then =>
11896 (1 => False, -- Actions (List1-Sem)
11897 2 => True, -- Left_Opnd (Node2)
11898 3 => True, -- Right_Opnd (Node3)
11899 4 => False, -- unused
11900 5 => False), -- Etype (Node5-Sem)
11902 N_Or_Else =>
11903 (1 => False, -- Actions (List1-Sem)
11904 2 => True, -- Left_Opnd (Node2)
11905 3 => True, -- Right_Opnd (Node3)
11906 4 => False, -- unused
11907 5 => False), -- Etype (Node5-Sem)
11909 N_In =>
11910 (1 => False, -- unused
11911 2 => True, -- Left_Opnd (Node2)
11912 3 => True, -- Right_Opnd (Node3)
11913 4 => True, -- Alternatives (List4)
11914 5 => False), -- Etype (Node5-Sem)
11916 N_Not_In =>
11917 (1 => False, -- unused
11918 2 => True, -- Left_Opnd (Node2)
11919 3 => True, -- Right_Opnd (Node3)
11920 4 => True, -- Alternatives (List4)
11921 5 => False), -- Etype (Node5-Sem)
11923 N_Op_And =>
11924 (1 => True, -- Chars (Name1)
11925 2 => True, -- Left_Opnd (Node2)
11926 3 => True, -- Right_Opnd (Node3)
11927 4 => False, -- Entity (Node4-Sem)
11928 5 => False), -- Etype (Node5-Sem)
11930 N_Op_Or =>
11931 (1 => True, -- Chars (Name1)
11932 2 => True, -- Left_Opnd (Node2)
11933 3 => True, -- Right_Opnd (Node3)
11934 4 => False, -- Entity (Node4-Sem)
11935 5 => False), -- Etype (Node5-Sem)
11937 N_Op_Xor =>
11938 (1 => True, -- Chars (Name1)
11939 2 => True, -- Left_Opnd (Node2)
11940 3 => True, -- Right_Opnd (Node3)
11941 4 => False, -- Entity (Node4-Sem)
11942 5 => False), -- Etype (Node5-Sem)
11944 N_Op_Eq =>
11945 (1 => True, -- Chars (Name1)
11946 2 => True, -- Left_Opnd (Node2)
11947 3 => True, -- Right_Opnd (Node3)
11948 4 => False, -- Entity (Node4-Sem)
11949 5 => False), -- Etype (Node5-Sem)
11951 N_Op_Ne =>
11952 (1 => True, -- Chars (Name1)
11953 2 => True, -- Left_Opnd (Node2)
11954 3 => True, -- Right_Opnd (Node3)
11955 4 => False, -- Entity (Node4-Sem)
11956 5 => False), -- Etype (Node5-Sem)
11958 N_Op_Lt =>
11959 (1 => True, -- Chars (Name1)
11960 2 => True, -- Left_Opnd (Node2)
11961 3 => True, -- Right_Opnd (Node3)
11962 4 => False, -- Entity (Node4-Sem)
11963 5 => False), -- Etype (Node5-Sem)
11965 N_Op_Le =>
11966 (1 => True, -- Chars (Name1)
11967 2 => True, -- Left_Opnd (Node2)
11968 3 => True, -- Right_Opnd (Node3)
11969 4 => False, -- Entity (Node4-Sem)
11970 5 => False), -- Etype (Node5-Sem)
11972 N_Op_Gt =>
11973 (1 => True, -- Chars (Name1)
11974 2 => True, -- Left_Opnd (Node2)
11975 3 => True, -- Right_Opnd (Node3)
11976 4 => False, -- Entity (Node4-Sem)
11977 5 => False), -- Etype (Node5-Sem)
11979 N_Op_Ge =>
11980 (1 => True, -- Chars (Name1)
11981 2 => True, -- Left_Opnd (Node2)
11982 3 => True, -- Right_Opnd (Node3)
11983 4 => False, -- Entity (Node4-Sem)
11984 5 => False), -- Etype (Node5-Sem)
11986 N_Op_Add =>
11987 (1 => True, -- Chars (Name1)
11988 2 => True, -- Left_Opnd (Node2)
11989 3 => True, -- Right_Opnd (Node3)
11990 4 => False, -- Entity (Node4-Sem)
11991 5 => False), -- Etype (Node5-Sem)
11993 N_Op_Subtract =>
11994 (1 => True, -- Chars (Name1)
11995 2 => True, -- Left_Opnd (Node2)
11996 3 => True, -- Right_Opnd (Node3)
11997 4 => False, -- Entity (Node4-Sem)
11998 5 => False), -- Etype (Node5-Sem)
12000 N_Op_Concat =>
12001 (1 => True, -- Chars (Name1)
12002 2 => True, -- Left_Opnd (Node2)
12003 3 => True, -- Right_Opnd (Node3)
12004 4 => False, -- Entity (Node4-Sem)
12005 5 => False), -- Etype (Node5-Sem)
12007 N_Op_Multiply =>
12008 (1 => True, -- Chars (Name1)
12009 2 => True, -- Left_Opnd (Node2)
12010 3 => True, -- Right_Opnd (Node3)
12011 4 => False, -- Entity (Node4-Sem)
12012 5 => False), -- Etype (Node5-Sem)
12014 N_Op_Divide =>
12015 (1 => True, -- Chars (Name1)
12016 2 => True, -- Left_Opnd (Node2)
12017 3 => True, -- Right_Opnd (Node3)
12018 4 => False, -- Entity (Node4-Sem)
12019 5 => False), -- Etype (Node5-Sem)
12021 N_Op_Mod =>
12022 (1 => True, -- Chars (Name1)
12023 2 => True, -- Left_Opnd (Node2)
12024 3 => True, -- Right_Opnd (Node3)
12025 4 => False, -- Entity (Node4-Sem)
12026 5 => False), -- Etype (Node5-Sem)
12028 N_Op_Rem =>
12029 (1 => True, -- Chars (Name1)
12030 2 => True, -- Left_Opnd (Node2)
12031 3 => True, -- Right_Opnd (Node3)
12032 4 => False, -- Entity (Node4-Sem)
12033 5 => False), -- Etype (Node5-Sem)
12035 N_Op_Expon =>
12036 (1 => True, -- Chars (Name1)
12037 2 => True, -- Left_Opnd (Node2)
12038 3 => True, -- Right_Opnd (Node3)
12039 4 => False, -- Entity (Node4-Sem)
12040 5 => False), -- Etype (Node5-Sem)
12042 N_Op_Plus =>
12043 (1 => True, -- Chars (Name1)
12044 2 => False, -- unused
12045 3 => True, -- Right_Opnd (Node3)
12046 4 => False, -- Entity (Node4-Sem)
12047 5 => False), -- Etype (Node5-Sem)
12049 N_Op_Minus =>
12050 (1 => True, -- Chars (Name1)
12051 2 => False, -- unused
12052 3 => True, -- Right_Opnd (Node3)
12053 4 => False, -- Entity (Node4-Sem)
12054 5 => False), -- Etype (Node5-Sem)
12056 N_Op_Abs =>
12057 (1 => True, -- Chars (Name1)
12058 2 => False, -- unused
12059 3 => True, -- Right_Opnd (Node3)
12060 4 => False, -- Entity (Node4-Sem)
12061 5 => False), -- Etype (Node5-Sem)
12063 N_Op_Not =>
12064 (1 => True, -- Chars (Name1)
12065 2 => False, -- unused
12066 3 => True, -- Right_Opnd (Node3)
12067 4 => False, -- Entity (Node4-Sem)
12068 5 => False), -- Etype (Node5-Sem)
12070 N_Type_Conversion =>
12071 (1 => False, -- unused
12072 2 => False, -- unused
12073 3 => True, -- Expression (Node3)
12074 4 => True, -- Subtype_Mark (Node4)
12075 5 => False), -- Etype (Node5-Sem)
12077 N_Qualified_Expression =>
12078 (1 => False, -- unused
12079 2 => False, -- unused
12080 3 => True, -- Expression (Node3)
12081 4 => True, -- Subtype_Mark (Node4)
12082 5 => False), -- Etype (Node5-Sem)
12084 N_Quantified_Expression =>
12085 (1 => True, -- Condition (Node1)
12086 2 => True, -- Iterator_Specification (Node2)
12087 3 => False, -- unused
12088 4 => True, -- Loop_Parameter_Specification (Node4)
12089 5 => False), -- Etype (Node5-Sem)
12091 N_Allocator =>
12092 (1 => False, -- Storage_Pool (Node1-Sem)
12093 2 => False, -- Procedure_To_Call (Node2-Sem)
12094 3 => True, -- Expression (Node3)
12095 4 => True, -- Subpool_Handle_Name (Node4)
12096 5 => False), -- Etype (Node5-Sem)
12098 N_Null_Statement =>
12099 (1 => False, -- unused
12100 2 => False, -- unused
12101 3 => False, -- unused
12102 4 => False, -- unused
12103 5 => False), -- unused
12105 N_Label =>
12106 (1 => True, -- Identifier (Node1)
12107 2 => False, -- unused
12108 3 => False, -- unused
12109 4 => False, -- unused
12110 5 => False), -- unused
12112 N_Assignment_Statement =>
12113 (1 => False, -- unused
12114 2 => True, -- Name (Node2)
12115 3 => True, -- Expression (Node3)
12116 4 => False, -- unused
12117 5 => False), -- unused
12119 N_Target_Name =>
12120 (1 => False, -- unused
12121 2 => False, -- unused
12122 3 => False, -- unused
12123 4 => False, -- unused
12124 5 => False), -- Etype (Node5-Sem)
12126 N_If_Statement =>
12127 (1 => True, -- Condition (Node1)
12128 2 => True, -- Then_Statements (List2)
12129 3 => True, -- Elsif_Parts (List3)
12130 4 => True, -- Else_Statements (List4)
12131 5 => True), -- End_Span (Uint5)
12133 N_Elsif_Part =>
12134 (1 => True, -- Condition (Node1)
12135 2 => True, -- Then_Statements (List2)
12136 3 => False, -- Condition_Actions (List3-Sem)
12137 4 => False, -- unused
12138 5 => False), -- unused
12140 N_Case_Expression =>
12141 (1 => False, -- unused
12142 2 => False, -- unused
12143 3 => True, -- Expression (Node3)
12144 4 => True, -- Alternatives (List4)
12145 5 => False), -- unused
12147 N_Case_Expression_Alternative =>
12148 (1 => False, -- Actions (List1-Sem)
12149 2 => False, -- unused
12150 3 => True, -- Expression (Node3)
12151 4 => True, -- Discrete_Choices (List4)
12152 5 => False), -- unused
12154 N_Case_Statement =>
12155 (1 => False, -- unused
12156 2 => False, -- unused
12157 3 => True, -- Expression (Node3)
12158 4 => True, -- Alternatives (List4)
12159 5 => True), -- End_Span (Uint5)
12161 N_Case_Statement_Alternative =>
12162 (1 => False, -- unused
12163 2 => False, -- unused
12164 3 => True, -- Statements (List3)
12165 4 => True, -- Discrete_Choices (List4)
12166 5 => False), -- unused
12168 N_Loop_Statement =>
12169 (1 => True, -- Identifier (Node1)
12170 2 => True, -- Iteration_Scheme (Node2)
12171 3 => True, -- Statements (List3)
12172 4 => True, -- End_Label (Node4)
12173 5 => False), -- unused
12175 N_Iteration_Scheme =>
12176 (1 => True, -- Condition (Node1)
12177 2 => True, -- Iterator_Specification (Node2)
12178 3 => False, -- Condition_Actions (List3-Sem)
12179 4 => True, -- Loop_Parameter_Specification (Node4)
12180 5 => False), -- unused
12182 N_Loop_Parameter_Specification =>
12183 (1 => True, -- Defining_Identifier (Node1)
12184 2 => False, -- unused
12185 3 => False, -- unused
12186 4 => True, -- Discrete_Subtype_Definition (Node4)
12187 5 => False), -- unused
12189 N_Iterator_Specification =>
12190 (1 => True, -- Defining_Identifier (Node1)
12191 2 => True, -- Name (Node2)
12192 3 => False, -- Unused
12193 4 => False, -- Unused
12194 5 => True), -- Subtype_Indication (Node5)
12196 N_Block_Statement =>
12197 (1 => True, -- Identifier (Node1)
12198 2 => True, -- Declarations (List2)
12199 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12200 4 => True, -- Handled_Statement_Sequence (Node4)
12201 5 => False), -- unused
12203 N_Exit_Statement =>
12204 (1 => True, -- Condition (Node1)
12205 2 => True, -- Name (Node2)
12206 3 => False, -- unused
12207 4 => False, -- unused
12208 5 => False), -- unused
12210 N_Goto_Statement =>
12211 (1 => False, -- unused
12212 2 => True, -- Name (Node2)
12213 3 => False, -- unused
12214 4 => False, -- unused
12215 5 => False), -- unused
12217 N_Subprogram_Declaration =>
12218 (1 => True, -- Specification (Node1)
12219 2 => False, -- unused
12220 3 => False, -- Body_To_Inline (Node3-Sem)
12221 4 => False, -- Parent_Spec (Node4-Sem)
12222 5 => False), -- Corresponding_Body (Node5-Sem)
12224 N_Abstract_Subprogram_Declaration =>
12225 (1 => True, -- Specification (Node1)
12226 2 => False, -- unused
12227 3 => False, -- unused
12228 4 => False, -- unused
12229 5 => False), -- unused
12231 N_Function_Specification =>
12232 (1 => True, -- Defining_Unit_Name (Node1)
12233 2 => False, -- unused
12234 3 => True, -- Parameter_Specifications (List3)
12235 4 => True, -- Result_Definition (Node4)
12236 5 => False), -- Generic_Parent (Node5-Sem)
12238 N_Procedure_Specification =>
12239 (1 => True, -- Defining_Unit_Name (Node1)
12240 2 => False, -- Null_Statement (Node2-Sem)
12241 3 => True, -- Parameter_Specifications (List3)
12242 4 => False, -- unused
12243 5 => False), -- Generic_Parent (Node5-Sem)
12245 N_Designator =>
12246 (1 => True, -- Identifier (Node1)
12247 2 => True, -- Name (Node2)
12248 3 => False, -- unused
12249 4 => False, -- unused
12250 5 => False), -- unused
12252 N_Defining_Program_Unit_Name =>
12253 (1 => True, -- Defining_Identifier (Node1)
12254 2 => True, -- Name (Node2)
12255 3 => False, -- unused
12256 4 => False, -- unused
12257 5 => False), -- unused
12259 N_Operator_Symbol =>
12260 (1 => True, -- Chars (Name1)
12261 2 => False, -- unused
12262 3 => True, -- Strval (Str3)
12263 4 => False, -- Entity (Node4-Sem)
12264 5 => False), -- Etype (Node5-Sem)
12266 N_Defining_Operator_Symbol =>
12267 (1 => True, -- Chars (Name1)
12268 2 => False, -- Next_Entity (Node2-Sem)
12269 3 => False, -- Scope (Node3-Sem)
12270 4 => False, -- unused
12271 5 => False), -- Etype (Node5-Sem)
12273 N_Parameter_Specification =>
12274 (1 => True, -- Defining_Identifier (Node1)
12275 2 => True, -- Parameter_Type (Node2)
12276 3 => True, -- Expression (Node3)
12277 4 => False, -- unused
12278 5 => False), -- Default_Expression (Node5-Sem)
12280 N_Subprogram_Body =>
12281 (1 => True, -- Specification (Node1)
12282 2 => True, -- Declarations (List2)
12283 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12284 4 => True, -- Handled_Statement_Sequence (Node4)
12285 5 => False), -- Corresponding_Spec (Node5-Sem)
12287 N_Expression_Function =>
12288 (1 => True, -- Specification (Node1)
12289 2 => False, -- unused
12290 3 => True, -- Expression (Node3)
12291 4 => False, -- unused
12292 5 => False), -- unused
12294 N_Procedure_Call_Statement =>
12295 (1 => False, -- Controlling_Argument (Node1-Sem)
12296 2 => True, -- Name (Node2)
12297 3 => True, -- Parameter_Associations (List3)
12298 4 => False, -- First_Named_Actual (Node4-Sem)
12299 5 => False), -- Etype (Node5-Sem)
12301 N_Function_Call =>
12302 (1 => False, -- Controlling_Argument (Node1-Sem)
12303 2 => True, -- Name (Node2)
12304 3 => True, -- Parameter_Associations (List3)
12305 4 => False, -- First_Named_Actual (Node4-Sem)
12306 5 => False), -- Etype (Node5-Sem)
12308 N_Parameter_Association =>
12309 (1 => False, -- unused
12310 2 => True, -- Selector_Name (Node2)
12311 3 => True, -- Explicit_Actual_Parameter (Node3)
12312 4 => False, -- Next_Named_Actual (Node4-Sem)
12313 5 => False), -- unused
12315 N_Simple_Return_Statement =>
12316 (1 => False, -- Storage_Pool (Node1-Sem)
12317 2 => False, -- Procedure_To_Call (Node2-Sem)
12318 3 => True, -- Expression (Node3)
12319 4 => False, -- unused
12320 5 => False), -- Return_Statement_Entity (Node5-Sem)
12322 N_Extended_Return_Statement =>
12323 (1 => False, -- Storage_Pool (Node1-Sem)
12324 2 => False, -- Procedure_To_Call (Node2-Sem)
12325 3 => True, -- Return_Object_Declarations (List3)
12326 4 => True, -- Handled_Statement_Sequence (Node4)
12327 5 => False), -- Return_Statement_Entity (Node5-Sem)
12329 N_Package_Declaration =>
12330 (1 => True, -- Specification (Node1)
12331 2 => False, -- unused
12332 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12333 4 => False, -- Parent_Spec (Node4-Sem)
12334 5 => False), -- Corresponding_Body (Node5-Sem)
12336 N_Package_Specification =>
12337 (1 => True, -- Defining_Unit_Name (Node1)
12338 2 => True, -- Visible_Declarations (List2)
12339 3 => True, -- Private_Declarations (List3)
12340 4 => True, -- End_Label (Node4)
12341 5 => False), -- Generic_Parent (Node5-Sem)
12343 N_Package_Body =>
12344 (1 => True, -- Defining_Unit_Name (Node1)
12345 2 => True, -- Declarations (List2)
12346 3 => False, -- unused
12347 4 => True, -- Handled_Statement_Sequence (Node4)
12348 5 => False), -- Corresponding_Spec (Node5-Sem)
12350 N_Private_Type_Declaration =>
12351 (1 => True, -- Defining_Identifier (Node1)
12352 2 => False, -- unused
12353 3 => False, -- unused
12354 4 => True, -- Discriminant_Specifications (List4)
12355 5 => False), -- unused
12357 N_Private_Extension_Declaration =>
12358 (1 => True, -- Defining_Identifier (Node1)
12359 2 => True, -- Interface_List (List2)
12360 3 => False, -- unused
12361 4 => True, -- Discriminant_Specifications (List4)
12362 5 => True), -- Subtype_Indication (Node5)
12364 N_Use_Package_Clause =>
12365 (1 => False, -- Prev_Use_Clause (Node1-Sem)
12366 2 => True, -- Name (Node2)
12367 3 => False, -- Next_Use_Clause (Node3-Sem)
12368 4 => False, -- Associated_Node (Node4-Sem)
12369 5 => False), -- Hidden_By_Use_Clause (Elist5-Sem)
12371 N_Use_Type_Clause =>
12372 (1 => False, -- Prev_Use_Clause (Node1-Sem)
12373 2 => False, -- Used_Operations (Elist2-Sem)
12374 3 => False, -- Next_Use_Clause (Node3-Sem)
12375 4 => True, -- Subtype_Mark (Node4)
12376 5 => False), -- Hidden_By_Use_Clause (Elist5-Sem)
12378 N_Object_Renaming_Declaration =>
12379 (1 => True, -- Defining_Identifier (Node1)
12380 2 => True, -- Name (Node2)
12381 3 => True, -- Access_Definition (Node3)
12382 4 => True, -- Subtype_Mark (Node4)
12383 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
12385 N_Exception_Renaming_Declaration =>
12386 (1 => True, -- Defining_Identifier (Node1)
12387 2 => True, -- Name (Node2)
12388 3 => False, -- unused
12389 4 => False, -- unused
12390 5 => False), -- unused
12392 N_Package_Renaming_Declaration =>
12393 (1 => True, -- Defining_Unit_Name (Node1)
12394 2 => True, -- Name (Node2)
12395 3 => False, -- unused
12396 4 => False, -- Parent_Spec (Node4-Sem)
12397 5 => False), -- unused
12399 N_Subprogram_Renaming_Declaration =>
12400 (1 => True, -- Specification (Node1)
12401 2 => True, -- Name (Node2)
12402 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
12403 4 => False, -- Parent_Spec (Node4-Sem)
12404 5 => False), -- Corresponding_Spec (Node5-Sem)
12406 N_Generic_Package_Renaming_Declaration =>
12407 (1 => True, -- Defining_Unit_Name (Node1)
12408 2 => True, -- Name (Node2)
12409 3 => False, -- unused
12410 4 => False, -- Parent_Spec (Node4-Sem)
12411 5 => False), -- unused
12413 N_Generic_Procedure_Renaming_Declaration =>
12414 (1 => True, -- Defining_Unit_Name (Node1)
12415 2 => True, -- Name (Node2)
12416 3 => False, -- unused
12417 4 => False, -- Parent_Spec (Node4-Sem)
12418 5 => False), -- unused
12420 N_Generic_Function_Renaming_Declaration =>
12421 (1 => True, -- Defining_Unit_Name (Node1)
12422 2 => True, -- Name (Node2)
12423 3 => False, -- unused
12424 4 => False, -- Parent_Spec (Node4-Sem)
12425 5 => False), -- unused
12427 N_Task_Type_Declaration =>
12428 (1 => True, -- Defining_Identifier (Node1)
12429 2 => True, -- Interface_List (List2)
12430 3 => True, -- Task_Definition (Node3)
12431 4 => True, -- Discriminant_Specifications (List4)
12432 5 => False), -- Corresponding_Body (Node5-Sem)
12434 N_Single_Task_Declaration =>
12435 (1 => True, -- Defining_Identifier (Node1)
12436 2 => True, -- Interface_List (List2)
12437 3 => True, -- Task_Definition (Node3)
12438 4 => False, -- unused
12439 5 => False), -- unused
12441 N_Task_Definition =>
12442 (1 => False, -- unused
12443 2 => True, -- Visible_Declarations (List2)
12444 3 => True, -- Private_Declarations (List3)
12445 4 => True, -- End_Label (Node4)
12446 5 => False), -- unused
12448 N_Task_Body =>
12449 (1 => True, -- Defining_Identifier (Node1)
12450 2 => True, -- Declarations (List2)
12451 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12452 4 => True, -- Handled_Statement_Sequence (Node4)
12453 5 => False), -- Corresponding_Spec (Node5-Sem)
12455 N_Protected_Type_Declaration =>
12456 (1 => True, -- Defining_Identifier (Node1)
12457 2 => True, -- Interface_List (List2)
12458 3 => True, -- Protected_Definition (Node3)
12459 4 => True, -- Discriminant_Specifications (List4)
12460 5 => False), -- Corresponding_Body (Node5-Sem)
12462 N_Single_Protected_Declaration =>
12463 (1 => True, -- Defining_Identifier (Node1)
12464 2 => True, -- Interface_List (List2)
12465 3 => True, -- Protected_Definition (Node3)
12466 4 => False, -- unused
12467 5 => False), -- unused
12469 N_Protected_Definition =>
12470 (1 => False, -- unused
12471 2 => True, -- Visible_Declarations (List2)
12472 3 => True, -- Private_Declarations (List3)
12473 4 => True, -- End_Label (Node4)
12474 5 => False), -- unused
12476 N_Protected_Body =>
12477 (1 => True, -- Defining_Identifier (Node1)
12478 2 => True, -- Declarations (List2)
12479 3 => False, -- unused
12480 4 => True, -- End_Label (Node4)
12481 5 => False), -- Corresponding_Spec (Node5-Sem)
12483 N_Entry_Declaration =>
12484 (1 => True, -- Defining_Identifier (Node1)
12485 2 => False, -- unused
12486 3 => True, -- Parameter_Specifications (List3)
12487 4 => True, -- Discrete_Subtype_Definition (Node4)
12488 5 => False), -- Corresponding_Body (Node5-Sem)
12490 N_Accept_Statement =>
12491 (1 => True, -- Entry_Direct_Name (Node1)
12492 2 => True, -- Declarations (List2)
12493 3 => True, -- Parameter_Specifications (List3)
12494 4 => True, -- Handled_Statement_Sequence (Node4)
12495 5 => True), -- Entry_Index (Node5)
12497 N_Entry_Body =>
12498 (1 => True, -- Defining_Identifier (Node1)
12499 2 => True, -- Declarations (List2)
12500 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12501 4 => True, -- Handled_Statement_Sequence (Node4)
12502 5 => True), -- Entry_Body_Formal_Part (Node5)
12504 N_Entry_Body_Formal_Part =>
12505 (1 => True, -- Condition (Node1)
12506 2 => False, -- unused
12507 3 => True, -- Parameter_Specifications (List3)
12508 4 => True, -- Entry_Index_Specification (Node4)
12509 5 => False), -- unused
12511 N_Entry_Index_Specification =>
12512 (1 => True, -- Defining_Identifier (Node1)
12513 2 => False, -- unused
12514 3 => False, -- unused
12515 4 => True, -- Discrete_Subtype_Definition (Node4)
12516 5 => False), -- unused
12518 N_Entry_Call_Statement =>
12519 (1 => False, -- unused
12520 2 => True, -- Name (Node2)
12521 3 => True, -- Parameter_Associations (List3)
12522 4 => False, -- First_Named_Actual (Node4-Sem)
12523 5 => False), -- unused
12525 N_Requeue_Statement =>
12526 (1 => False, -- unused
12527 2 => True, -- Name (Node2)
12528 3 => False, -- unused
12529 4 => False, -- unused
12530 5 => False), -- unused
12532 N_Delay_Until_Statement =>
12533 (1 => False, -- unused
12534 2 => False, -- unused
12535 3 => True, -- Expression (Node3)
12536 4 => False, -- unused
12537 5 => False), -- unused
12539 N_Delay_Relative_Statement =>
12540 (1 => False, -- unused
12541 2 => False, -- unused
12542 3 => True, -- Expression (Node3)
12543 4 => False, -- unused
12544 5 => False), -- unused
12546 N_Selective_Accept =>
12547 (1 => True, -- Select_Alternatives (List1)
12548 2 => False, -- unused
12549 3 => False, -- unused
12550 4 => True, -- Else_Statements (List4)
12551 5 => False), -- unused
12553 N_Accept_Alternative =>
12554 (1 => True, -- Condition (Node1)
12555 2 => True, -- Accept_Statement (Node2)
12556 3 => True, -- Statements (List3)
12557 4 => True, -- Pragmas_Before (List4)
12558 5 => False), -- Accept_Handler_Records (List5-Sem)
12560 N_Delay_Alternative =>
12561 (1 => True, -- Condition (Node1)
12562 2 => True, -- Delay_Statement (Node2)
12563 3 => True, -- Statements (List3)
12564 4 => True, -- Pragmas_Before (List4)
12565 5 => False), -- unused
12567 N_Terminate_Alternative =>
12568 (1 => True, -- Condition (Node1)
12569 2 => False, -- unused
12570 3 => False, -- unused
12571 4 => True, -- Pragmas_Before (List4)
12572 5 => True), -- Pragmas_After (List5)
12574 N_Timed_Entry_Call =>
12575 (1 => True, -- Entry_Call_Alternative (Node1)
12576 2 => False, -- unused
12577 3 => False, -- unused
12578 4 => True, -- Delay_Alternative (Node4)
12579 5 => False), -- unused
12581 N_Entry_Call_Alternative =>
12582 (1 => True, -- Entry_Call_Statement (Node1)
12583 2 => False, -- unused
12584 3 => True, -- Statements (List3)
12585 4 => True, -- Pragmas_Before (List4)
12586 5 => False), -- unused
12588 N_Conditional_Entry_Call =>
12589 (1 => True, -- Entry_Call_Alternative (Node1)
12590 2 => False, -- unused
12591 3 => False, -- unused
12592 4 => True, -- Else_Statements (List4)
12593 5 => False), -- unused
12595 N_Asynchronous_Select =>
12596 (1 => True, -- Triggering_Alternative (Node1)
12597 2 => True, -- Abortable_Part (Node2)
12598 3 => False, -- unused
12599 4 => False, -- unused
12600 5 => False), -- unused
12602 N_Triggering_Alternative =>
12603 (1 => True, -- Triggering_Statement (Node1)
12604 2 => False, -- unused
12605 3 => True, -- Statements (List3)
12606 4 => True, -- Pragmas_Before (List4)
12607 5 => False), -- unused
12609 N_Abortable_Part =>
12610 (1 => False, -- unused
12611 2 => False, -- unused
12612 3 => True, -- Statements (List3)
12613 4 => False, -- unused
12614 5 => False), -- unused
12616 N_Abort_Statement =>
12617 (1 => False, -- unused
12618 2 => True, -- Names (List2)
12619 3 => False, -- unused
12620 4 => False, -- unused
12621 5 => False), -- unused
12623 N_Compilation_Unit =>
12624 (1 => True, -- Context_Items (List1)
12625 2 => True, -- Unit (Node2)
12626 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
12627 4 => False, -- Library_Unit (Node4-Sem)
12628 5 => True), -- Aux_Decls_Node (Node5)
12630 N_Compilation_Unit_Aux =>
12631 (1 => True, -- Actions (List1)
12632 2 => True, -- Declarations (List2)
12633 3 => False, -- Default_Storage_Pool (Node3)
12634 4 => True, -- Config_Pragmas (List4)
12635 5 => True), -- Pragmas_After (List5)
12637 N_With_Clause =>
12638 (1 => False, -- unused
12639 2 => True, -- Name (Node2)
12640 3 => False, -- unused
12641 4 => False, -- Library_Unit (Node4-Sem)
12642 5 => False), -- Corresponding_Spec (Node5-Sem)
12644 N_Subprogram_Body_Stub =>
12645 (1 => True, -- Specification (Node1)
12646 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12647 3 => False, -- unused
12648 4 => False, -- Library_Unit (Node4-Sem)
12649 5 => False), -- Corresponding_Body (Node5-Sem)
12651 N_Package_Body_Stub =>
12652 (1 => True, -- Defining_Identifier (Node1)
12653 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12654 3 => False, -- unused
12655 4 => False, -- Library_Unit (Node4-Sem)
12656 5 => False), -- Corresponding_Body (Node5-Sem)
12658 N_Task_Body_Stub =>
12659 (1 => True, -- Defining_Identifier (Node1)
12660 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12661 3 => False, -- unused
12662 4 => False, -- Library_Unit (Node4-Sem)
12663 5 => False), -- Corresponding_Body (Node5-Sem)
12665 N_Protected_Body_Stub =>
12666 (1 => True, -- Defining_Identifier (Node1)
12667 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12668 3 => False, -- unused
12669 4 => False, -- Library_Unit (Node4-Sem)
12670 5 => False), -- Corresponding_Body (Node5-Sem)
12672 N_Subunit =>
12673 (1 => True, -- Proper_Body (Node1)
12674 2 => True, -- Name (Node2)
12675 3 => False, -- Corresponding_Stub (Node3-Sem)
12676 4 => False, -- unused
12677 5 => False), -- unused
12679 N_Exception_Declaration =>
12680 (1 => True, -- Defining_Identifier (Node1)
12681 2 => False, -- unused
12682 3 => False, -- Expression (Node3-Sem)
12683 4 => False, -- unused
12684 5 => False), -- unused
12686 N_Handled_Sequence_Of_Statements =>
12687 (1 => True, -- At_End_Proc (Node1)
12688 2 => False, -- First_Real_Statement (Node2-Sem)
12689 3 => True, -- Statements (List3)
12690 4 => True, -- End_Label (Node4)
12691 5 => True), -- Exception_Handlers (List5)
12693 N_Exception_Handler =>
12694 (1 => False, -- Local_Raise_Statements (Elist1)
12695 2 => True, -- Choice_Parameter (Node2)
12696 3 => True, -- Statements (List3)
12697 4 => True, -- Exception_Choices (List4)
12698 5 => False), -- Exception_Label (Node5)
12700 N_Raise_Statement =>
12701 (1 => False, -- unused
12702 2 => True, -- Name (Node2)
12703 3 => True, -- Expression (Node3)
12704 4 => False, -- unused
12705 5 => False), -- unused
12707 N_Raise_Expression =>
12708 (1 => False, -- unused
12709 2 => True, -- Name (Node2)
12710 3 => True, -- Expression (Node3)
12711 4 => False, -- unused
12712 5 => False), -- Etype (Node5-Sem)
12714 N_Generic_Subprogram_Declaration =>
12715 (1 => True, -- Specification (Node1)
12716 2 => True, -- Generic_Formal_Declarations (List2)
12717 3 => False, -- unused
12718 4 => False, -- Parent_Spec (Node4-Sem)
12719 5 => False), -- Corresponding_Body (Node5-Sem)
12721 N_Generic_Package_Declaration =>
12722 (1 => True, -- Specification (Node1)
12723 2 => True, -- Generic_Formal_Declarations (List2)
12724 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12725 4 => False, -- Parent_Spec (Node4-Sem)
12726 5 => False), -- Corresponding_Body (Node5-Sem)
12728 N_Package_Instantiation =>
12729 (1 => True, -- Defining_Unit_Name (Node1)
12730 2 => True, -- Name (Node2)
12731 3 => True, -- Generic_Associations (List3)
12732 4 => False, -- Parent_Spec (Node4-Sem)
12733 5 => False), -- Instance_Spec (Node5-Sem)
12735 N_Procedure_Instantiation =>
12736 (1 => True, -- Defining_Unit_Name (Node1)
12737 2 => True, -- Name (Node2)
12738 3 => True, -- Generic_Associations (List3)
12739 4 => False, -- Parent_Spec (Node4-Sem)
12740 5 => False), -- Instance_Spec (Node5-Sem)
12742 N_Function_Instantiation =>
12743 (1 => True, -- Defining_Unit_Name (Node1)
12744 2 => True, -- Name (Node2)
12745 3 => True, -- Generic_Associations (List3)
12746 4 => False, -- Parent_Spec (Node4-Sem)
12747 5 => False), -- Instance_Spec (Node5-Sem)
12749 N_Generic_Association =>
12750 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
12751 2 => True, -- Selector_Name (Node2)
12752 3 => False, -- unused
12753 4 => False, -- unused
12754 5 => False), -- unused
12756 N_Formal_Object_Declaration =>
12757 (1 => True, -- Defining_Identifier (Node1)
12758 2 => False, -- unused
12759 3 => True, -- Access_Definition (Node3)
12760 4 => True, -- Subtype_Mark (Node4)
12761 5 => True), -- Default_Expression (Node5)
12763 N_Formal_Type_Declaration =>
12764 (1 => True, -- Defining_Identifier (Node1)
12765 2 => False, -- unused
12766 3 => True, -- Formal_Type_Definition (Node3)
12767 4 => True, -- Discriminant_Specifications (List4)
12768 5 => False), -- unused
12770 N_Formal_Private_Type_Definition =>
12771 (1 => False, -- unused
12772 2 => False, -- unused
12773 3 => False, -- unused
12774 4 => False, -- unused
12775 5 => False), -- unused
12777 N_Formal_Incomplete_Type_Definition =>
12778 (1 => False, -- unused
12779 2 => False, -- unused
12780 3 => False, -- unused
12781 4 => False, -- unused
12782 5 => False), -- unused
12784 N_Formal_Derived_Type_Definition =>
12785 (1 => False, -- unused
12786 2 => True, -- Interface_List (List2)
12787 3 => False, -- unused
12788 4 => True, -- Subtype_Mark (Node4)
12789 5 => False), -- unused
12791 N_Formal_Discrete_Type_Definition =>
12792 (1 => False, -- unused
12793 2 => False, -- unused
12794 3 => False, -- unused
12795 4 => False, -- unused
12796 5 => False), -- unused
12798 N_Formal_Signed_Integer_Type_Definition =>
12799 (1 => False, -- unused
12800 2 => False, -- unused
12801 3 => False, -- unused
12802 4 => False, -- unused
12803 5 => False), -- unused
12805 N_Formal_Modular_Type_Definition =>
12806 (1 => False, -- unused
12807 2 => False, -- unused
12808 3 => False, -- unused
12809 4 => False, -- unused
12810 5 => False), -- unused
12812 N_Formal_Floating_Point_Definition =>
12813 (1 => False, -- unused
12814 2 => False, -- unused
12815 3 => False, -- unused
12816 4 => False, -- unused
12817 5 => False), -- unused
12819 N_Formal_Ordinary_Fixed_Point_Definition =>
12820 (1 => False, -- unused
12821 2 => False, -- unused
12822 3 => False, -- unused
12823 4 => False, -- unused
12824 5 => False), -- unused
12826 N_Formal_Decimal_Fixed_Point_Definition =>
12827 (1 => False, -- unused
12828 2 => False, -- unused
12829 3 => False, -- unused
12830 4 => False, -- unused
12831 5 => False), -- unused
12833 N_Formal_Concrete_Subprogram_Declaration =>
12834 (1 => True, -- Specification (Node1)
12835 2 => True, -- Default_Name (Node2)
12836 3 => False, -- unused
12837 4 => False, -- unused
12838 5 => False), -- unused
12840 N_Formal_Abstract_Subprogram_Declaration =>
12841 (1 => True, -- Specification (Node1)
12842 2 => True, -- Default_Name (Node2)
12843 3 => False, -- unused
12844 4 => False, -- unused
12845 5 => False), -- unused
12847 N_Formal_Package_Declaration =>
12848 (1 => True, -- Defining_Identifier (Node1)
12849 2 => True, -- Name (Node2)
12850 3 => True, -- Generic_Associations (List3)
12851 4 => False, -- unused
12852 5 => False), -- Instance_Spec (Node5-Sem)
12854 N_Attribute_Definition_Clause =>
12855 (1 => True, -- Chars (Name1)
12856 2 => True, -- Name (Node2)
12857 3 => True, -- Expression (Node3)
12858 4 => False, -- unused
12859 5 => False), -- Next_Rep_Item (Node5-Sem)
12861 N_Aspect_Specification =>
12862 (1 => True, -- Identifier (Node1)
12863 2 => False, -- Aspect_Rep_Item (Node2-Sem)
12864 3 => True, -- Expression (Node3)
12865 4 => False, -- Entity (Node4-Sem)
12866 5 => False), -- Next_Rep_Item (Node5-Sem)
12868 N_Enumeration_Representation_Clause =>
12869 (1 => True, -- Identifier (Node1)
12870 2 => False, -- unused
12871 3 => True, -- Array_Aggregate (Node3)
12872 4 => False, -- unused
12873 5 => False), -- Next_Rep_Item (Node5-Sem)
12875 N_Record_Representation_Clause =>
12876 (1 => True, -- Identifier (Node1)
12877 2 => True, -- Mod_Clause (Node2)
12878 3 => True, -- Component_Clauses (List3)
12879 4 => False, -- unused
12880 5 => False), -- Next_Rep_Item (Node5-Sem)
12882 N_Component_Clause =>
12883 (1 => True, -- Component_Name (Node1)
12884 2 => True, -- Position (Node2)
12885 3 => True, -- First_Bit (Node3)
12886 4 => True, -- Last_Bit (Node4)
12887 5 => False), -- unused
12889 N_Code_Statement =>
12890 (1 => False, -- unused
12891 2 => False, -- unused
12892 3 => True, -- Expression (Node3)
12893 4 => False, -- unused
12894 5 => False), -- unused
12896 N_Op_Rotate_Left =>
12897 (1 => True, -- Chars (Name1)
12898 2 => True, -- Left_Opnd (Node2)
12899 3 => True, -- Right_Opnd (Node3)
12900 4 => False, -- Entity (Node4-Sem)
12901 5 => False), -- Etype (Node5-Sem)
12903 N_Op_Rotate_Right =>
12904 (1 => True, -- Chars (Name1)
12905 2 => True, -- Left_Opnd (Node2)
12906 3 => True, -- Right_Opnd (Node3)
12907 4 => False, -- Entity (Node4-Sem)
12908 5 => False), -- Etype (Node5-Sem)
12910 N_Op_Shift_Left =>
12911 (1 => True, -- Chars (Name1)
12912 2 => True, -- Left_Opnd (Node2)
12913 3 => True, -- Right_Opnd (Node3)
12914 4 => False, -- Entity (Node4-Sem)
12915 5 => False), -- Etype (Node5-Sem)
12917 N_Op_Shift_Right_Arithmetic =>
12918 (1 => True, -- Chars (Name1)
12919 2 => True, -- Left_Opnd (Node2)
12920 3 => True, -- Right_Opnd (Node3)
12921 4 => False, -- Entity (Node4-Sem)
12922 5 => False), -- Etype (Node5-Sem)
12924 N_Op_Shift_Right =>
12925 (1 => True, -- Chars (Name1)
12926 2 => True, -- Left_Opnd (Node2)
12927 3 => True, -- Right_Opnd (Node3)
12928 4 => False, -- Entity (Node4-Sem)
12929 5 => False), -- Etype (Node5-Sem)
12931 N_Delta_Constraint =>
12932 (1 => False, -- unused
12933 2 => False, -- unused
12934 3 => True, -- Delta_Expression (Node3)
12935 4 => True, -- Range_Constraint (Node4)
12936 5 => False), -- unused
12938 N_At_Clause =>
12939 (1 => True, -- Identifier (Node1)
12940 2 => False, -- unused
12941 3 => True, -- Expression (Node3)
12942 4 => False, -- unused
12943 5 => False), -- unused
12945 N_Mod_Clause =>
12946 (1 => False, -- unused
12947 2 => False, -- unused
12948 3 => True, -- Expression (Node3)
12949 4 => True, -- Pragmas_Before (List4)
12950 5 => False), -- unused
12952 N_If_Expression =>
12953 (1 => True, -- Expressions (List1)
12954 2 => False, -- Then_Actions (List2-Sem)
12955 3 => False, -- Else_Actions (List3-Sem)
12956 4 => False, -- unused
12957 5 => False), -- Etype (Node5-Sem)
12959 N_Compound_Statement =>
12960 (1 => True, -- Actions (List1)
12961 2 => False, -- unused
12962 3 => False, -- unused
12963 4 => False, -- unused
12964 5 => False), -- unused
12966 N_Contract =>
12967 (1 => False, -- Pre_Post_Conditions (Node1-Sem)
12968 2 => False, -- Contract_Test_Cases (Node2-Sem)
12969 3 => False, -- Classifications (Node3-Sem)
12970 4 => False, -- unused
12971 5 => False), -- unused
12973 N_Expanded_Name =>
12974 (1 => True, -- Chars (Name1)
12975 2 => True, -- Selector_Name (Node2)
12976 3 => True, -- Prefix (Node3)
12977 4 => False, -- Entity (Node4-Sem)
12978 5 => False), -- Etype (Node5-Sem)
12980 N_Expression_With_Actions =>
12981 (1 => True, -- Actions (List1)
12982 2 => False, -- unused
12983 3 => True, -- Expression (Node3)
12984 4 => False, -- unused
12985 5 => False), -- unused
12987 N_Free_Statement =>
12988 (1 => False, -- Storage_Pool (Node1-Sem)
12989 2 => False, -- Procedure_To_Call (Node2-Sem)
12990 3 => True, -- Expression (Node3)
12991 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
12992 5 => False), -- unused
12994 N_Freeze_Entity =>
12995 (1 => True, -- Actions (List1)
12996 2 => False, -- Access_Types_To_Process (Elist2-Sem)
12997 3 => False, -- TSS_Elist (Elist3-Sem)
12998 4 => False, -- Entity (Node4-Sem)
12999 5 => False), -- First_Subtype_Link (Node5-Sem)
13001 N_Freeze_Generic_Entity =>
13002 (1 => False, -- unused
13003 2 => False, -- unused
13004 3 => False, -- unused
13005 4 => False, -- Entity (Node4-Sem)
13006 5 => False), -- unused
13008 N_Implicit_Label_Declaration =>
13009 (1 => True, -- Defining_Identifier (Node1)
13010 2 => False, -- Label_Construct (Node2-Sem)
13011 3 => False, -- unused
13012 4 => False, -- unused
13013 5 => False), -- unused
13015 N_Itype_Reference =>
13016 (1 => False, -- Itype (Node1-Sem)
13017 2 => False, -- unused
13018 3 => False, -- unused
13019 4 => False, -- unused
13020 5 => False), -- unused
13022 N_Raise_Constraint_Error =>
13023 (1 => True, -- Condition (Node1)
13024 2 => False, -- unused
13025 3 => True, -- Reason (Uint3)
13026 4 => False, -- unused
13027 5 => False), -- Etype (Node5-Sem)
13029 N_Raise_Program_Error =>
13030 (1 => True, -- Condition (Node1)
13031 2 => False, -- unused
13032 3 => True, -- Reason (Uint3)
13033 4 => False, -- unused
13034 5 => False), -- Etype (Node5-Sem)
13036 N_Raise_Storage_Error =>
13037 (1 => True, -- Condition (Node1)
13038 2 => False, -- unused
13039 3 => True, -- Reason (Uint3)
13040 4 => False, -- unused
13041 5 => False), -- Etype (Node5-Sem)
13043 N_Push_Constraint_Error_Label =>
13044 (1 => False, -- unused
13045 2 => False, -- unused
13046 3 => False, -- unused
13047 4 => False, -- unused
13048 5 => False), -- unused
13050 N_Push_Program_Error_Label =>
13051 (1 => False, -- unused
13052 2 => False, -- unused
13053 3 => False, -- unused
13054 4 => False, -- unused
13055 5 => False), -- Exception_Label
13057 N_Push_Storage_Error_Label =>
13058 (1 => False, -- unused
13059 2 => False, -- unused
13060 3 => False, -- unused
13061 4 => False, -- unused
13062 5 => False), -- Exception_Label
13064 N_Pop_Constraint_Error_Label =>
13065 (1 => False, -- unused
13066 2 => False, -- unused
13067 3 => False, -- unused
13068 4 => False, -- unused
13069 5 => False), -- unused
13071 N_Pop_Program_Error_Label =>
13072 (1 => False, -- unused
13073 2 => False, -- unused
13074 3 => False, -- unused
13075 4 => False, -- unused
13076 5 => False), -- unused
13078 N_Pop_Storage_Error_Label =>
13079 (1 => False, -- unused
13080 2 => False, -- unused
13081 3 => False, -- unused
13082 4 => False, -- unused
13083 5 => False), -- unused
13085 N_Reference =>
13086 (1 => False, -- unused
13087 2 => False, -- unused
13088 3 => True, -- Prefix (Node3)
13089 4 => False, -- unused
13090 5 => False), -- Etype (Node5-Sem)
13092 N_Unchecked_Expression =>
13093 (1 => False, -- unused
13094 2 => False, -- unused
13095 3 => True, -- Expression (Node3)
13096 4 => False, -- unused
13097 5 => False), -- Etype (Node5-Sem)
13099 N_Unchecked_Type_Conversion =>
13100 (1 => False, -- unused
13101 2 => False, -- unused
13102 3 => True, -- Expression (Node3)
13103 4 => True, -- Subtype_Mark (Node4)
13104 5 => False), -- Etype (Node5-Sem)
13106 N_Validate_Unchecked_Conversion =>
13107 (1 => False, -- Source_Type (Node1-Sem)
13108 2 => False, -- Target_Type (Node2-Sem)
13109 3 => False, -- unused
13110 4 => False, -- unused
13111 5 => False), -- unused
13113 -- Entries for SCIL nodes
13115 N_SCIL_Dispatch_Table_Tag_Init =>
13116 (1 => False, -- unused
13117 2 => False, -- unused
13118 3 => False, -- unused
13119 4 => False, -- SCIL_Entity (Node4-Sem)
13120 5 => False), -- unused
13122 N_SCIL_Dispatching_Call =>
13123 (1 => False, -- unused
13124 2 => False, -- SCIL_Target_Prim (Node2-Sem)
13125 3 => False, -- unused
13126 4 => False, -- SCIL_Entity (Node4-Sem)
13127 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
13129 N_SCIL_Membership_Test =>
13130 (1 => False, -- unused
13131 2 => False, -- unused
13132 3 => False, -- unused
13133 4 => False, -- SCIL_Entity (Node4-Sem)
13134 5 => False), -- SCIL_Tag_Value (Node5-Sem)
13136 N_Call_Marker =>
13137 (1 => False, -- Target (Node1-Sem)
13138 2 => False, -- unused
13139 3 => False, -- unused
13140 4 => False, -- unused
13141 5 => False), -- unused
13143 N_Variable_Reference_Marker =>
13144 (1 => False, -- Target (Node1-Sem)
13145 2 => False, -- unused
13146 3 => False, -- unused
13147 4 => False, -- unused
13148 5 => False), -- unused
13150 -- Entries for Empty, Error, and Unused. Even though these have a Chars
13151 -- field for debugging purposes, they are not really syntactic fields, so
13152 -- we mark all fields as unused.
13154 N_Empty =>
13155 (1 => False, -- unused
13156 2 => False, -- unused
13157 3 => False, -- unused
13158 4 => False, -- unused
13159 5 => False), -- unused
13161 N_Error =>
13162 (1 => False, -- unused
13163 2 => False, -- unused
13164 3 => False, -- unused
13165 4 => False, -- unused
13166 5 => False), -- unused
13168 N_Unused_At_Start =>
13169 (1 => False, -- unused
13170 2 => False, -- unused
13171 3 => False, -- unused
13172 4 => False, -- unused
13173 5 => False), -- unused
13175 N_Unused_At_End =>
13176 (1 => False, -- unused
13177 2 => False, -- unused
13178 3 => False, -- unused
13179 4 => False, -- unused
13180 5 => False)); -- unused
13182 --------------------
13183 -- Inline Pragmas --
13184 --------------------
13186 pragma Inline (Abort_Present);
13187 pragma Inline (Abortable_Part);
13188 pragma Inline (Abstract_Present);
13189 pragma Inline (Accept_Handler_Records);
13190 pragma Inline (Accept_Statement);
13191 pragma Inline (Access_Definition);
13192 pragma Inline (Access_To_Subprogram_Definition);
13193 pragma Inline (Access_Types_To_Process);
13194 pragma Inline (Actions);
13195 pragma Inline (Activation_Chain_Entity);
13196 pragma Inline (Acts_As_Spec);
13197 pragma Inline (Actual_Designated_Subtype);
13198 pragma Inline (Address_Warning_Posted);
13199 pragma Inline (Aggregate_Bounds);
13200 pragma Inline (Aliased_Present);
13201 pragma Inline (Alloc_For_BIP_Return);
13202 pragma Inline (All_Others);
13203 pragma Inline (All_Present);
13204 pragma Inline (Alternatives);
13205 pragma Inline (Ancestor_Part);
13206 pragma Inline (Atomic_Sync_Required);
13207 pragma Inline (Array_Aggregate);
13208 pragma Inline (Aspect_Rep_Item);
13209 pragma Inline (Assignment_OK);
13210 pragma Inline (Associated_Node);
13211 pragma Inline (At_End_Proc);
13212 pragma Inline (Attribute_Name);
13213 pragma Inline (Aux_Decls_Node);
13214 pragma Inline (Backwards_OK);
13215 pragma Inline (Bad_Is_Detected);
13216 pragma Inline (Body_To_Inline);
13217 pragma Inline (Body_Required);
13218 pragma Inline (By_Ref);
13219 pragma Inline (Box_Present);
13220 pragma Inline (Char_Literal_Value);
13221 pragma Inline (Chars);
13222 pragma Inline (Check_Address_Alignment);
13223 pragma Inline (Choice_Parameter);
13224 pragma Inline (Choices);
13225 pragma Inline (Class_Present);
13226 pragma Inline (Classifications);
13227 pragma Inline (Cleanup_Actions);
13228 pragma Inline (Comes_From_Extended_Return_Statement);
13229 pragma Inline (Compile_Time_Known_Aggregate);
13230 pragma Inline (Component_Associations);
13231 pragma Inline (Component_Clauses);
13232 pragma Inline (Component_Definition);
13233 pragma Inline (Component_Items);
13234 pragma Inline (Component_List);
13235 pragma Inline (Component_Name);
13236 pragma Inline (Componentwise_Assignment);
13237 pragma Inline (Condition);
13238 pragma Inline (Condition_Actions);
13239 pragma Inline (Config_Pragmas);
13240 pragma Inline (Constant_Present);
13241 pragma Inline (Constraint);
13242 pragma Inline (Constraints);
13243 pragma Inline (Context_Installed);
13244 pragma Inline (Context_Items);
13245 pragma Inline (Context_Pending);
13246 pragma Inline (Contract_Test_Cases);
13247 pragma Inline (Controlling_Argument);
13248 pragma Inline (Convert_To_Return_False);
13249 pragma Inline (Conversion_OK);
13250 pragma Inline (Corresponding_Aspect);
13251 pragma Inline (Corresponding_Body);
13252 pragma Inline (Corresponding_Formal_Spec);
13253 pragma Inline (Corresponding_Generic_Association);
13254 pragma Inline (Corresponding_Integer_Value);
13255 pragma Inline (Corresponding_Spec);
13256 pragma Inline (Corresponding_Spec_Of_Stub);
13257 pragma Inline (Corresponding_Stub);
13258 pragma Inline (Dcheck_Function);
13259 pragma Inline (Declarations);
13260 pragma Inline (Default_Expression);
13261 pragma Inline (Default_Storage_Pool);
13262 pragma Inline (Default_Name);
13263 pragma Inline (Defining_Identifier);
13264 pragma Inline (Defining_Unit_Name);
13265 pragma Inline (Delay_Alternative);
13266 pragma Inline (Delay_Statement);
13267 pragma Inline (Delta_Expression);
13268 pragma Inline (Digits_Expression);
13269 pragma Inline (Discr_Check_Funcs_Built);
13270 pragma Inline (Discrete_Choices);
13271 pragma Inline (Discrete_Range);
13272 pragma Inline (Discrete_Subtype_Definition);
13273 pragma Inline (Discrete_Subtype_Definitions);
13274 pragma Inline (Discriminant_Specifications);
13275 pragma Inline (Discriminant_Type);
13276 pragma Inline (Do_Accessibility_Check);
13277 pragma Inline (Do_Discriminant_Check);
13278 pragma Inline (Do_Length_Check);
13279 pragma Inline (Do_Division_Check);
13280 pragma Inline (Do_Overflow_Check);
13281 pragma Inline (Do_Range_Check);
13282 pragma Inline (Do_Storage_Check);
13283 pragma Inline (Do_Tag_Check);
13284 pragma Inline (Elaborate_All_Desirable);
13285 pragma Inline (Elaborate_All_Present);
13286 pragma Inline (Elaborate_Desirable);
13287 pragma Inline (Elaborate_Present);
13288 pragma Inline (Else_Actions);
13289 pragma Inline (Else_Statements);
13290 pragma Inline (Elsif_Parts);
13291 pragma Inline (Enclosing_Variant);
13292 pragma Inline (End_Label);
13293 pragma Inline (End_Span);
13294 pragma Inline (Entity);
13295 pragma Inline (Entity_Or_Associated_Node);
13296 pragma Inline (Entry_Body_Formal_Part);
13297 pragma Inline (Entry_Call_Alternative);
13298 pragma Inline (Entry_Call_Statement);
13299 pragma Inline (Entry_Direct_Name);
13300 pragma Inline (Entry_Index);
13301 pragma Inline (Entry_Index_Specification);
13302 pragma Inline (Etype);
13303 pragma Inline (Exception_Choices);
13304 pragma Inline (Exception_Handlers);
13305 pragma Inline (Exception_Junk);
13306 pragma Inline (Exception_Label);
13307 pragma Inline (Expansion_Delayed);
13308 pragma Inline (Explicit_Actual_Parameter);
13309 pragma Inline (Explicit_Generic_Actual_Parameter);
13310 pragma Inline (Expression);
13311 pragma Inline (Expression_Copy);
13312 pragma Inline (Expressions);
13313 pragma Inline (First_Bit);
13314 pragma Inline (First_Inlined_Subprogram);
13315 pragma Inline (First_Name);
13316 pragma Inline (First_Named_Actual);
13317 pragma Inline (First_Real_Statement);
13318 pragma Inline (First_Subtype_Link);
13319 pragma Inline (Float_Truncate);
13320 pragma Inline (Formal_Type_Definition);
13321 pragma Inline (Forwards_OK);
13322 pragma Inline (From_Aspect_Specification);
13323 pragma Inline (From_At_End);
13324 pragma Inline (From_At_Mod);
13325 pragma Inline (From_Conditional_Expression);
13326 pragma Inline (From_Default);
13327 pragma Inline (Generalized_Indexing);
13328 pragma Inline (Generic_Associations);
13329 pragma Inline (Generic_Formal_Declarations);
13330 pragma Inline (Generic_Parent);
13331 pragma Inline (Generic_Parent_Type);
13332 pragma Inline (Handled_Statement_Sequence);
13333 pragma Inline (Handler_List_Entry);
13334 pragma Inline (Has_Created_Identifier);
13335 pragma Inline (Has_Dereference_Action);
13336 pragma Inline (Has_Dynamic_Length_Check);
13337 pragma Inline (Has_Dynamic_Range_Check);
13338 pragma Inline (Has_Init_Expression);
13339 pragma Inline (Has_Local_Raise);
13340 pragma Inline (Has_Self_Reference);
13341 pragma Inline (Has_SP_Choice);
13342 pragma Inline (Has_No_Elaboration_Code);
13343 pragma Inline (Has_Pragma_Suppress_All);
13344 pragma Inline (Has_Private_View);
13345 pragma Inline (Has_Relative_Deadline_Pragma);
13346 pragma Inline (Has_Storage_Size_Pragma);
13347 pragma Inline (Has_Target_Names);
13348 pragma Inline (Has_Wide_Character);
13349 pragma Inline (Has_Wide_Wide_Character);
13350 pragma Inline (Header_Size_Added);
13351 pragma Inline (Hidden_By_Use_Clause);
13352 pragma Inline (High_Bound);
13353 pragma Inline (Identifier);
13354 pragma Inline (Implicit_With);
13355 pragma Inline (Implicit_With_From_Instantiation);
13356 pragma Inline (Interface_List);
13357 pragma Inline (Interface_Present);
13358 pragma Inline (Includes_Infinities);
13359 pragma Inline (Import_Interface_Present);
13360 pragma Inline (In_Present);
13361 pragma Inline (Incomplete_View);
13362 pragma Inline (Inherited_Discriminant);
13363 pragma Inline (Instance_Spec);
13364 pragma Inline (Intval);
13365 pragma Inline (Iterator_Specification);
13366 pragma Inline (Is_Abort_Block);
13367 pragma Inline (Is_Accessibility_Actual);
13368 pragma Inline (Is_Analyzed_Pragma);
13369 pragma Inline (Is_Asynchronous_Call_Block);
13370 pragma Inline (Is_Boolean_Aspect);
13371 pragma Inline (Is_Checked);
13372 pragma Inline (Is_Checked_Ghost_Pragma);
13373 pragma Inline (Is_Component_Left_Opnd);
13374 pragma Inline (Is_Component_Right_Opnd);
13375 pragma Inline (Is_Controlling_Actual);
13376 pragma Inline (Is_Declaration_Level_Node);
13377 pragma Inline (Is_Delayed_Aspect);
13378 pragma Inline (Is_Disabled);
13379 pragma Inline (Is_Dispatching_Call);
13380 pragma Inline (Is_Dynamic_Coextension);
13381 pragma Inline (Is_Effective_Use_Clause);
13382 pragma Inline (Is_Elaboration_Checks_OK_Node);
13383 pragma Inline (Is_Elaboration_Code);
13384 pragma Inline (Is_Elaboration_Warnings_OK_Node);
13385 pragma Inline (Is_Elsif);
13386 pragma Inline (Is_Entry_Barrier_Function);
13387 pragma Inline (Is_Expanded_Build_In_Place_Call);
13388 pragma Inline (Is_Expanded_Contract);
13389 pragma Inline (Is_Finalization_Wrapper);
13390 pragma Inline (Is_Folded_In_Parser);
13391 pragma Inline (Is_Generic_Contract_Pragma);
13392 pragma Inline (Is_Ignored);
13393 pragma Inline (Is_Ignored_Ghost_Pragma);
13394 pragma Inline (Is_In_Discriminant_Check);
13395 pragma Inline (Is_Inherited_Pragma);
13396 pragma Inline (Is_Initialization_Block);
13397 pragma Inline (Is_Known_Guaranteed_ABE);
13398 pragma Inline (Is_Machine_Number);
13399 pragma Inline (Is_Null_Loop);
13400 pragma Inline (Is_Overloaded);
13401 pragma Inline (Is_Power_Of_2_For_Shift);
13402 pragma Inline (Is_Prefixed_Call);
13403 pragma Inline (Is_Protected_Subprogram_Body);
13404 pragma Inline (Is_Qualified_Universal_Literal);
13405 pragma Inline (Is_Read);
13406 pragma Inline (Is_Source_Call);
13407 pragma Inline (Is_SPARK_Mode_On_Node);
13408 pragma Inline (Is_Static_Coextension);
13409 pragma Inline (Is_Static_Expression);
13410 pragma Inline (Is_Subprogram_Descriptor);
13411 pragma Inline (Is_Task_Allocation_Block);
13412 pragma Inline (Is_Task_Body_Procedure);
13413 pragma Inline (Is_Task_Master);
13414 pragma Inline (Is_Write);
13415 pragma Inline (Iteration_Scheme);
13416 pragma Inline (Itype);
13417 pragma Inline (Kill_Range_Check);
13418 pragma Inline (Last_Bit);
13419 pragma Inline (Last_Name);
13420 pragma Inline (Library_Unit);
13421 pragma Inline (Label_Construct);
13422 pragma Inline (Left_Opnd);
13423 pragma Inline (Limited_View_Installed);
13424 pragma Inline (Limited_Present);
13425 pragma Inline (Literals);
13426 pragma Inline (Local_Raise_Not_OK);
13427 pragma Inline (Local_Raise_Statements);
13428 pragma Inline (Loop_Actions);
13429 pragma Inline (Loop_Parameter_Specification);
13430 pragma Inline (Low_Bound);
13431 pragma Inline (Mod_Clause);
13432 pragma Inline (More_Ids);
13433 pragma Inline (Must_Be_Byte_Aligned);
13434 pragma Inline (Must_Not_Freeze);
13435 pragma Inline (Must_Not_Override);
13436 pragma Inline (Must_Override);
13437 pragma Inline (Name);
13438 pragma Inline (Names);
13439 pragma Inline (Next_Entity);
13440 pragma Inline (Next_Exit_Statement);
13441 pragma Inline (Next_Implicit_With);
13442 pragma Inline (Next_Named_Actual);
13443 pragma Inline (Next_Pragma);
13444 pragma Inline (Next_Rep_Item);
13445 pragma Inline (Next_Use_Clause);
13446 pragma Inline (No_Ctrl_Actions);
13447 pragma Inline (No_Entities_Ref_In_Spec);
13448 pragma Inline (No_Initialization);
13449 pragma Inline (No_Minimize_Eliminate);
13450 pragma Inline (No_Side_Effect_Removal);
13451 pragma Inline (No_Truncation);
13452 pragma Inline (Null_Excluding_Subtype);
13453 pragma Inline (Null_Exclusion_Present);
13454 pragma Inline (Null_Exclusion_In_Return_Present);
13455 pragma Inline (Null_Present);
13456 pragma Inline (Null_Record_Present);
13457 pragma Inline (Null_Statement);
13458 pragma Inline (Object_Definition);
13459 pragma Inline (Of_Present);
13460 pragma Inline (Original_Discriminant);
13461 pragma Inline (Original_Entity);
13462 pragma Inline (Others_Discrete_Choices);
13463 pragma Inline (Out_Present);
13464 pragma Inline (Parameter_Associations);
13465 pragma Inline (Parameter_Specifications);
13466 pragma Inline (Parameter_Type);
13467 pragma Inline (Parent_Spec);
13468 pragma Inline (Position);
13469 pragma Inline (Pragma_Argument_Associations);
13470 pragma Inline (Pragma_Identifier);
13471 pragma Inline (Pragmas_After);
13472 pragma Inline (Pragmas_Before);
13473 pragma Inline (Pre_Post_Conditions);
13474 pragma Inline (Prefix);
13475 pragma Inline (Premature_Use);
13476 pragma Inline (Present_Expr);
13477 pragma Inline (Prev_Ids);
13478 pragma Inline (Prev_Use_Clause);
13479 pragma Inline (Print_In_Hex);
13480 pragma Inline (Private_Declarations);
13481 pragma Inline (Private_Present);
13482 pragma Inline (Procedure_To_Call);
13483 pragma Inline (Proper_Body);
13484 pragma Inline (Protected_Definition);
13485 pragma Inline (Protected_Present);
13486 pragma Inline (Raises_Constraint_Error);
13487 pragma Inline (Range_Constraint);
13488 pragma Inline (Range_Expression);
13489 pragma Inline (Real_Range_Specification);
13490 pragma Inline (Realval);
13491 pragma Inline (Reason);
13492 pragma Inline (Record_Extension_Part);
13493 pragma Inline (Redundant_Use);
13494 pragma Inline (Renaming_Exception);
13495 pragma Inline (Result_Definition);
13496 pragma Inline (Return_Object_Declarations);
13497 pragma Inline (Return_Statement_Entity);
13498 pragma Inline (Reverse_Present);
13499 pragma Inline (Right_Opnd);
13500 pragma Inline (Rounded_Result);
13501 pragma Inline (SCIL_Controlling_Tag);
13502 pragma Inline (SCIL_Entity);
13503 pragma Inline (SCIL_Tag_Value);
13504 pragma Inline (SCIL_Target_Prim);
13505 pragma Inline (Scope);
13506 pragma Inline (Select_Alternatives);
13507 pragma Inline (Selector_Name);
13508 pragma Inline (Selector_Names);
13509 pragma Inline (Shift_Count_OK);
13510 pragma Inline (Source_Type);
13511 pragma Inline (Specification);
13512 pragma Inline (Split_PPC);
13513 pragma Inline (Statements);
13514 pragma Inline (Storage_Pool);
13515 pragma Inline (Subpool_Handle_Name);
13516 pragma Inline (Strval);
13517 pragma Inline (Subtype_Indication);
13518 pragma Inline (Subtype_Mark);
13519 pragma Inline (Subtype_Marks);
13520 pragma Inline (Suppress_Assignment_Checks);
13521 pragma Inline (Suppress_Loop_Warnings);
13522 pragma Inline (Synchronized_Present);
13523 pragma Inline (Tagged_Present);
13524 pragma Inline (Target);
13525 pragma Inline (Target_Type);
13526 pragma Inline (Task_Definition);
13527 pragma Inline (Task_Present);
13528 pragma Inline (Then_Actions);
13529 pragma Inline (Then_Statements);
13530 pragma Inline (Triggering_Alternative);
13531 pragma Inline (Triggering_Statement);
13532 pragma Inline (Treat_Fixed_As_Integer);
13533 pragma Inline (TSS_Elist);
13534 pragma Inline (Type_Definition);
13535 pragma Inline (Uneval_Old_Accept);
13536 pragma Inline (Uneval_Old_Warn);
13537 pragma Inline (Unit);
13538 pragma Inline (Uninitialized_Variable);
13539 pragma Inline (Unknown_Discriminants_Present);
13540 pragma Inline (Unreferenced_In_Spec);
13541 pragma Inline (Variant_Part);
13542 pragma Inline (Variants);
13543 pragma Inline (Visible_Declarations);
13544 pragma Inline (Used_Operations);
13545 pragma Inline (Was_Attribute_Reference);
13546 pragma Inline (Was_Expression_Function);
13547 pragma Inline (Was_Originally_Stub);
13548 pragma Inline (Withed_Body);
13550 pragma Inline (Set_Abort_Present);
13551 pragma Inline (Set_Abortable_Part);
13552 pragma Inline (Set_Abstract_Present);
13553 pragma Inline (Set_Accept_Handler_Records);
13554 pragma Inline (Set_Accept_Statement);
13555 pragma Inline (Set_Access_Definition);
13556 pragma Inline (Set_Access_To_Subprogram_Definition);
13557 pragma Inline (Set_Access_Types_To_Process);
13558 pragma Inline (Set_Actions);
13559 pragma Inline (Set_Activation_Chain_Entity);
13560 pragma Inline (Set_Acts_As_Spec);
13561 pragma Inline (Set_Actual_Designated_Subtype);
13562 pragma Inline (Set_Address_Warning_Posted);
13563 pragma Inline (Set_Aggregate_Bounds);
13564 pragma Inline (Set_Aliased_Present);
13565 pragma Inline (Set_Alloc_For_BIP_Return);
13566 pragma Inline (Set_All_Others);
13567 pragma Inline (Set_All_Present);
13568 pragma Inline (Set_Alternatives);
13569 pragma Inline (Set_Ancestor_Part);
13570 pragma Inline (Set_Array_Aggregate);
13571 pragma Inline (Set_Aspect_Rep_Item);
13572 pragma Inline (Set_Assignment_OK);
13573 pragma Inline (Set_Associated_Node);
13574 pragma Inline (Set_At_End_Proc);
13575 pragma Inline (Set_Atomic_Sync_Required);
13576 pragma Inline (Set_Attribute_Name);
13577 pragma Inline (Set_Aux_Decls_Node);
13578 pragma Inline (Set_Backwards_OK);
13579 pragma Inline (Set_Bad_Is_Detected);
13580 pragma Inline (Set_Body_Required);
13581 pragma Inline (Set_Body_To_Inline);
13582 pragma Inline (Set_Box_Present);
13583 pragma Inline (Set_By_Ref);
13584 pragma Inline (Set_Char_Literal_Value);
13585 pragma Inline (Set_Chars);
13586 pragma Inline (Set_Check_Address_Alignment);
13587 pragma Inline (Set_Choice_Parameter);
13588 pragma Inline (Set_Choices);
13589 pragma Inline (Set_Class_Present);
13590 pragma Inline (Set_Classifications);
13591 pragma Inline (Set_Cleanup_Actions);
13592 pragma Inline (Set_Comes_From_Extended_Return_Statement);
13593 pragma Inline (Set_Compile_Time_Known_Aggregate);
13594 pragma Inline (Set_Component_Associations);
13595 pragma Inline (Set_Component_Clauses);
13596 pragma Inline (Set_Component_Definition);
13597 pragma Inline (Set_Component_Items);
13598 pragma Inline (Set_Component_List);
13599 pragma Inline (Set_Component_Name);
13600 pragma Inline (Set_Componentwise_Assignment);
13601 pragma Inline (Set_Condition);
13602 pragma Inline (Set_Condition_Actions);
13603 pragma Inline (Set_Config_Pragmas);
13604 pragma Inline (Set_Constant_Present);
13605 pragma Inline (Set_Constraint);
13606 pragma Inline (Set_Constraints);
13607 pragma Inline (Set_Context_Installed);
13608 pragma Inline (Set_Context_Items);
13609 pragma Inline (Set_Context_Pending);
13610 pragma Inline (Set_Contract_Test_Cases);
13611 pragma Inline (Set_Controlling_Argument);
13612 pragma Inline (Set_Conversion_OK);
13613 pragma Inline (Set_Convert_To_Return_False);
13614 pragma Inline (Set_Corresponding_Aspect);
13615 pragma Inline (Set_Corresponding_Body);
13616 pragma Inline (Set_Corresponding_Formal_Spec);
13617 pragma Inline (Set_Corresponding_Generic_Association);
13618 pragma Inline (Set_Corresponding_Integer_Value);
13619 pragma Inline (Set_Corresponding_Spec);
13620 pragma Inline (Set_Corresponding_Spec_Of_Stub);
13621 pragma Inline (Set_Corresponding_Stub);
13622 pragma Inline (Set_Dcheck_Function);
13623 pragma Inline (Set_Declarations);
13624 pragma Inline (Set_Default_Expression);
13625 pragma Inline (Set_Default_Name);
13626 pragma Inline (Set_Default_Storage_Pool);
13627 pragma Inline (Set_Defining_Identifier);
13628 pragma Inline (Set_Defining_Unit_Name);
13629 pragma Inline (Set_Delay_Alternative);
13630 pragma Inline (Set_Delay_Statement);
13631 pragma Inline (Set_Delta_Expression);
13632 pragma Inline (Set_Digits_Expression);
13633 pragma Inline (Set_Discr_Check_Funcs_Built);
13634 pragma Inline (Set_Discrete_Choices);
13635 pragma Inline (Set_Discrete_Range);
13636 pragma Inline (Set_Discrete_Subtype_Definition);
13637 pragma Inline (Set_Discrete_Subtype_Definitions);
13638 pragma Inline (Set_Discriminant_Specifications);
13639 pragma Inline (Set_Discriminant_Type);
13640 pragma Inline (Set_Do_Accessibility_Check);
13641 pragma Inline (Set_Do_Discriminant_Check);
13642 pragma Inline (Set_Do_Division_Check);
13643 pragma Inline (Set_Do_Length_Check);
13644 pragma Inline (Set_Do_Overflow_Check);
13645 pragma Inline (Set_Do_Range_Check);
13646 pragma Inline (Set_Do_Storage_Check);
13647 pragma Inline (Set_Do_Tag_Check);
13648 pragma Inline (Set_Elaborate_All_Desirable);
13649 pragma Inline (Set_Elaborate_All_Present);
13650 pragma Inline (Set_Elaborate_Desirable);
13651 pragma Inline (Set_Elaborate_Present);
13652 pragma Inline (Set_Else_Actions);
13653 pragma Inline (Set_Else_Statements);
13654 pragma Inline (Set_Elsif_Parts);
13655 pragma Inline (Set_Enclosing_Variant);
13656 pragma Inline (Set_End_Label);
13657 pragma Inline (Set_End_Span);
13658 pragma Inline (Set_Entity);
13659 pragma Inline (Set_Entry_Body_Formal_Part);
13660 pragma Inline (Set_Entry_Call_Alternative);
13661 pragma Inline (Set_Entry_Call_Statement);
13662 pragma Inline (Set_Entry_Direct_Name);
13663 pragma Inline (Set_Entry_Index);
13664 pragma Inline (Set_Entry_Index_Specification);
13665 pragma Inline (Set_Etype);
13666 pragma Inline (Set_Exception_Choices);
13667 pragma Inline (Set_Exception_Handlers);
13668 pragma Inline (Set_Exception_Junk);
13669 pragma Inline (Set_Exception_Label);
13670 pragma Inline (Set_Expansion_Delayed);
13671 pragma Inline (Set_Explicit_Actual_Parameter);
13672 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
13673 pragma Inline (Set_Expression);
13674 pragma Inline (Set_Expression_Copy);
13675 pragma Inline (Set_Expressions);
13676 pragma Inline (Set_First_Bit);
13677 pragma Inline (Set_First_Inlined_Subprogram);
13678 pragma Inline (Set_First_Name);
13679 pragma Inline (Set_First_Named_Actual);
13680 pragma Inline (Set_First_Real_Statement);
13681 pragma Inline (Set_First_Subtype_Link);
13682 pragma Inline (Set_Float_Truncate);
13683 pragma Inline (Set_Formal_Type_Definition);
13684 pragma Inline (Set_Forwards_OK);
13685 pragma Inline (Set_From_Aspect_Specification);
13686 pragma Inline (Set_From_At_End);
13687 pragma Inline (Set_From_At_Mod);
13688 pragma Inline (Set_From_Conditional_Expression);
13689 pragma Inline (Set_From_Default);
13690 pragma Inline (Set_Generalized_Indexing);
13691 pragma Inline (Set_Generic_Associations);
13692 pragma Inline (Set_Generic_Formal_Declarations);
13693 pragma Inline (Set_Generic_Parent);
13694 pragma Inline (Set_Generic_Parent_Type);
13695 pragma Inline (Set_Handled_Statement_Sequence);
13696 pragma Inline (Set_Handler_List_Entry);
13697 pragma Inline (Set_Has_Created_Identifier);
13698 pragma Inline (Set_Has_Dereference_Action);
13699 pragma Inline (Set_Has_Dynamic_Length_Check);
13700 pragma Inline (Set_Has_Dynamic_Range_Check);
13701 pragma Inline (Set_Has_Init_Expression);
13702 pragma Inline (Set_Has_Local_Raise);
13703 pragma Inline (Set_Has_No_Elaboration_Code);
13704 pragma Inline (Set_Has_Pragma_Suppress_All);
13705 pragma Inline (Set_Has_Private_View);
13706 pragma Inline (Set_Has_Relative_Deadline_Pragma);
13707 pragma Inline (Set_Has_Self_Reference);
13708 pragma Inline (Set_Has_SP_Choice);
13709 pragma Inline (Set_Has_Storage_Size_Pragma);
13710 pragma Inline (Set_Has_Target_Names);
13711 pragma Inline (Set_Has_Wide_Character);
13712 pragma Inline (Set_Has_Wide_Wide_Character);
13713 pragma Inline (Set_Header_Size_Added);
13714 pragma Inline (Set_Hidden_By_Use_Clause);
13715 pragma Inline (Set_High_Bound);
13716 pragma Inline (Set_Identifier);
13717 pragma Inline (Set_Implicit_With);
13718 pragma Inline (Set_Import_Interface_Present);
13719 pragma Inline (Set_In_Present);
13720 pragma Inline (Set_Includes_Infinities);
13721 pragma Inline (Set_Incomplete_View);
13722 pragma Inline (Set_Inherited_Discriminant);
13723 pragma Inline (Set_Instance_Spec);
13724 pragma Inline (Set_Interface_List);
13725 pragma Inline (Set_Interface_Present);
13726 pragma Inline (Set_Intval);
13727 pragma Inline (Set_Is_Abort_Block);
13728 pragma Inline (Set_Is_Accessibility_Actual);
13729 pragma Inline (Set_Is_Analyzed_Pragma);
13730 pragma Inline (Set_Is_Asynchronous_Call_Block);
13731 pragma Inline (Set_Is_Boolean_Aspect);
13732 pragma Inline (Set_Is_Checked);
13733 pragma Inline (Set_Is_Checked_Ghost_Pragma);
13734 pragma Inline (Set_Is_Component_Left_Opnd);
13735 pragma Inline (Set_Is_Component_Right_Opnd);
13736 pragma Inline (Set_Is_Controlling_Actual);
13737 pragma Inline (Set_Is_Declaration_Level_Node);
13738 pragma Inline (Set_Is_Delayed_Aspect);
13739 pragma Inline (Set_Is_Disabled);
13740 pragma Inline (Set_Is_Dispatching_Call);
13741 pragma Inline (Set_Is_Dynamic_Coextension);
13742 pragma Inline (Set_Is_Effective_Use_Clause);
13743 pragma Inline (Set_Is_Elaboration_Checks_OK_Node);
13744 pragma Inline (Set_Is_Elaboration_Code);
13745 pragma Inline (Set_Is_Elaboration_Warnings_OK_Node);
13746 pragma Inline (Set_Is_Elsif);
13747 pragma Inline (Set_Is_Entry_Barrier_Function);
13748 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
13749 pragma Inline (Set_Is_Expanded_Contract);
13750 pragma Inline (Set_Is_Finalization_Wrapper);
13751 pragma Inline (Set_Is_Folded_In_Parser);
13752 pragma Inline (Set_Is_Generic_Contract_Pragma);
13753 pragma Inline (Set_Is_Ignored);
13754 pragma Inline (Set_Is_Ignored_Ghost_Pragma);
13755 pragma Inline (Set_Is_In_Discriminant_Check);
13756 pragma Inline (Set_Is_Inherited_Pragma);
13757 pragma Inline (Set_Is_Initialization_Block);
13758 pragma Inline (Set_Is_Known_Guaranteed_ABE);
13759 pragma Inline (Set_Is_Machine_Number);
13760 pragma Inline (Set_Is_Null_Loop);
13761 pragma Inline (Set_Is_Overloaded);
13762 pragma Inline (Set_Is_Power_Of_2_For_Shift);
13763 pragma Inline (Set_Is_Prefixed_Call);
13764 pragma Inline (Set_Is_Protected_Subprogram_Body);
13765 pragma Inline (Set_Is_Qualified_Universal_Literal);
13766 pragma Inline (Set_Is_Read);
13767 pragma Inline (Set_Is_Source_Call);
13768 pragma Inline (Set_Is_SPARK_Mode_On_Node);
13769 pragma Inline (Set_Is_Static_Coextension);
13770 pragma Inline (Set_Is_Static_Expression);
13771 pragma Inline (Set_Is_Subprogram_Descriptor);
13772 pragma Inline (Set_Is_Task_Allocation_Block);
13773 pragma Inline (Set_Is_Task_Body_Procedure);
13774 pragma Inline (Set_Is_Task_Master);
13775 pragma Inline (Set_Is_Write);
13776 pragma Inline (Set_Iteration_Scheme);
13777 pragma Inline (Set_Iterator_Specification);
13778 pragma Inline (Set_Itype);
13779 pragma Inline (Set_Kill_Range_Check);
13780 pragma Inline (Set_Label_Construct);
13781 pragma Inline (Set_Last_Bit);
13782 pragma Inline (Set_Last_Name);
13783 pragma Inline (Set_Left_Opnd);
13784 pragma Inline (Set_Library_Unit);
13785 pragma Inline (Set_Limited_Present);
13786 pragma Inline (Set_Limited_View_Installed);
13787 pragma Inline (Set_Literals);
13788 pragma Inline (Set_Local_Raise_Not_OK);
13789 pragma Inline (Set_Local_Raise_Statements);
13790 pragma Inline (Set_Loop_Actions);
13791 pragma Inline (Set_Loop_Parameter_Specification);
13792 pragma Inline (Set_Low_Bound);
13793 pragma Inline (Set_Mod_Clause);
13794 pragma Inline (Set_More_Ids);
13795 pragma Inline (Set_Must_Be_Byte_Aligned);
13796 pragma Inline (Set_Must_Not_Freeze);
13797 pragma Inline (Set_Must_Not_Override);
13798 pragma Inline (Set_Must_Override);
13799 pragma Inline (Set_Name);
13800 pragma Inline (Set_Names);
13801 pragma Inline (Set_Next_Entity);
13802 pragma Inline (Set_Next_Exit_Statement);
13803 pragma Inline (Set_Next_Implicit_With);
13804 pragma Inline (Set_Next_Named_Actual);
13805 pragma Inline (Set_Next_Pragma);
13806 pragma Inline (Set_Next_Rep_Item);
13807 pragma Inline (Set_Next_Use_Clause);
13808 pragma Inline (Set_No_Ctrl_Actions);
13809 pragma Inline (Set_No_Entities_Ref_In_Spec);
13810 pragma Inline (Set_No_Initialization);
13811 pragma Inline (Set_No_Minimize_Eliminate);
13812 pragma Inline (Set_No_Side_Effect_Removal);
13813 pragma Inline (Set_No_Truncation);
13814 pragma Inline (Set_Null_Excluding_Subtype);
13815 pragma Inline (Set_Null_Exclusion_Present);
13816 pragma Inline (Set_Null_Exclusion_In_Return_Present);
13817 pragma Inline (Set_Null_Present);
13818 pragma Inline (Set_Null_Record_Present);
13819 pragma Inline (Set_Null_Statement);
13820 pragma Inline (Set_Object_Definition);
13821 pragma Inline (Set_Of_Present);
13822 pragma Inline (Set_Original_Discriminant);
13823 pragma Inline (Set_Original_Entity);
13824 pragma Inline (Set_Others_Discrete_Choices);
13825 pragma Inline (Set_Out_Present);
13826 pragma Inline (Set_Parameter_Associations);
13827 pragma Inline (Set_Parameter_Specifications);
13828 pragma Inline (Set_Parameter_Type);
13829 pragma Inline (Set_Parent_Spec);
13830 pragma Inline (Set_Position);
13831 pragma Inline (Set_Pragma_Argument_Associations);
13832 pragma Inline (Set_Pragma_Identifier);
13833 pragma Inline (Set_Pragmas_After);
13834 pragma Inline (Set_Pragmas_Before);
13835 pragma Inline (Set_Pre_Post_Conditions);
13836 pragma Inline (Set_Prefix);
13837 pragma Inline (Set_Premature_Use);
13838 pragma Inline (Set_Present_Expr);
13839 pragma Inline (Set_Prev_Ids);
13840 pragma Inline (Set_Prev_Use_Clause);
13841 pragma Inline (Set_Print_In_Hex);
13842 pragma Inline (Set_Private_Declarations);
13843 pragma Inline (Set_Private_Present);
13844 pragma Inline (Set_Procedure_To_Call);
13845 pragma Inline (Set_Proper_Body);
13846 pragma Inline (Set_Protected_Definition);
13847 pragma Inline (Set_Protected_Present);
13848 pragma Inline (Set_Raises_Constraint_Error);
13849 pragma Inline (Set_Range_Constraint);
13850 pragma Inline (Set_Range_Expression);
13851 pragma Inline (Set_Real_Range_Specification);
13852 pragma Inline (Set_Realval);
13853 pragma Inline (Set_Reason);
13854 pragma Inline (Set_Record_Extension_Part);
13855 pragma Inline (Set_Redundant_Use);
13856 pragma Inline (Set_Renaming_Exception);
13857 pragma Inline (Set_Result_Definition);
13858 pragma Inline (Set_Return_Object_Declarations);
13859 pragma Inline (Set_Reverse_Present);
13860 pragma Inline (Set_Right_Opnd);
13861 pragma Inline (Set_Rounded_Result);
13862 pragma Inline (Set_SCIL_Controlling_Tag);
13863 pragma Inline (Set_SCIL_Entity);
13864 pragma Inline (Set_SCIL_Tag_Value);
13865 pragma Inline (Set_SCIL_Target_Prim);
13866 pragma Inline (Set_Scope);
13867 pragma Inline (Set_Select_Alternatives);
13868 pragma Inline (Set_Selector_Name);
13869 pragma Inline (Set_Selector_Names);
13870 pragma Inline (Set_Shift_Count_OK);
13871 pragma Inline (Set_Source_Type);
13872 pragma Inline (Set_Split_PPC);
13873 pragma Inline (Set_Statements);
13874 pragma Inline (Set_Storage_Pool);
13875 pragma Inline (Set_Strval);
13876 pragma Inline (Set_Subpool_Handle_Name);
13877 pragma Inline (Set_Subtype_Indication);
13878 pragma Inline (Set_Subtype_Mark);
13879 pragma Inline (Set_Subtype_Marks);
13880 pragma Inline (Set_Suppress_Assignment_Checks);
13881 pragma Inline (Set_Suppress_Loop_Warnings);
13882 pragma Inline (Set_Synchronized_Present);
13883 pragma Inline (Set_TSS_Elist);
13884 pragma Inline (Set_Tagged_Present);
13885 pragma Inline (Set_Target);
13886 pragma Inline (Set_Target_Type);
13887 pragma Inline (Set_Task_Definition);
13888 pragma Inline (Set_Task_Present);
13889 pragma Inline (Set_Then_Actions);
13890 pragma Inline (Set_Then_Statements);
13891 pragma Inline (Set_Treat_Fixed_As_Integer);
13892 pragma Inline (Set_Triggering_Alternative);
13893 pragma Inline (Set_Triggering_Statement);
13894 pragma Inline (Set_Type_Definition);
13895 pragma Inline (Set_Uneval_Old_Accept);
13896 pragma Inline (Set_Uneval_Old_Warn);
13897 pragma Inline (Set_Unit);
13898 pragma Inline (Set_Uninitialized_Variable);
13899 pragma Inline (Set_Unknown_Discriminants_Present);
13900 pragma Inline (Set_Unreferenced_In_Spec);
13901 pragma Inline (Set_Used_Operations);
13902 pragma Inline (Set_Variant_Part);
13903 pragma Inline (Set_Variants);
13904 pragma Inline (Set_Visible_Declarations);
13905 pragma Inline (Set_Was_Attribute_Reference);
13906 pragma Inline (Set_Was_Expression_Function);
13907 pragma Inline (Set_Was_Originally_Stub);
13908 pragma Inline (Set_Withed_Body);
13910 end Sinfo;