2015-05-12 Robert Dewar <dewar@adacore.com>
[official-gcc.git] / gcc / ada / sinfo.ads
blobc2a8bf6fbc33d04f56aa1337bcf6393335db053b
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S I N F O --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2015, 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 ----------------
525 -- Ghost Mode --
526 ----------------
528 -- When a declaration is subject to pragma Ghost, it establishes a Ghost
529 -- region depending on the Ghost assertion policy in effect at the point
530 -- of declaration. This region is temporal and starts right before the
531 -- analysis of the Ghost declaration and ends after its expansion. The
532 -- values of global variable Opt.Ghost_Mode are as follows:
534 -- 1. Check - All static semantics as defined in SPARK RM 6.9 are in
535 -- effect.
537 -- 2. Ignore - Same as Check, ignored Ghost code is not present in ALI
538 -- files, object files as well as the final executable.
540 -- To achieve the runtime semantics of "Ignore", the compiler marks each
541 -- node created during an ignored Ghost region and signals all enclosing
542 -- scopes that such a node resides within. The compilation unit where the
543 -- node resides is also added to an auxiliary table for post processing.
545 -- After the analysis and expansion of all compilation units takes place
546 -- as well as the instantiation of all inlined [generic] bodies, the GNAT
547 -- driver initiates a separate pass which removes all ignored Ghost code
548 -- from all units stored in the auxiliary table.
550 --------------------
551 -- GNATprove Mode --
552 --------------------
554 -- When a file is compiled in GNATprove mode (-gnatd.F), a very light
555 -- expansion is performed and the analysis must generate a tree in a
556 -- form that meets additional requirements.
558 -- This light expansion does two transformations of the tree that cannot
559 -- be postponed till after semantic analysis:
561 -- 1. Replace object renamings by renamed object. This requires the
562 -- introduction of temporaries at the point of the renaming, which
563 -- must be properly analyzed.
565 -- 2. Fully qualify entity names. This is needed to generate suitable
566 -- local effects and call-graphs in ALI files, with the completely
567 -- qualified names (in particular the suffix to distinguish homonyms).
569 -- The tree after this light expansion should be fully analyzed
570 -- semantically, which sometimes requires the insertion of semantic
571 -- pre-analysis, for example for subprogram contracts and pragma
572 -- check/assert. In particular, all expression must have their proper type,
573 -- and semantic links should be set between tree nodes (partial to full
574 -- view, etc.) Some kinds of nodes should be either absent, or can be
575 -- ignored by the formal verification backend:
577 -- N_Object_Renaming_Declaration: can be ignored safely
578 -- N_Expression_Function: absent (rewritten)
579 -- N_Expression_With_Actions: absent (not generated)
581 -- SPARK cross-references are generated from the regular cross-references
582 -- (used for browsing and code understanding) and additional references
583 -- collected during semantic analysis, in particular on all dereferences.
584 -- These SPARK cross-references are output in a separate section of ALI
585 -- files, as described in spark_xrefs.adb. They are the basis for the
586 -- computation of data dependences in GNATprove. This implies that all
587 -- cross-references should be generated in this mode, even those that would
588 -- not make sense from a user point-of-view, and that cross-references that
589 -- do not lead to data dependences for subprograms can be safely ignored.
591 -- GNATprove relies on the following front end behaviors:
593 -- 1. The first declarations in the list of visible declarations of
594 -- a package declaration for a generic instance, up to the first
595 -- declaration which comes from source, should correspond to
596 -- the "mappings nodes" between formal and actual generic parameters.
598 -- 2. In addition pragma Debug statements are removed from the tree
599 -- (rewritten to NULL stmt), since they should be ignored in formal
600 -- verification.
602 -- 3. An error is also issued for missing subunits, similar to the
603 -- warning issued when generating code, to avoid formal verification
604 -- of a partial unit.
606 -- 4. Unconstrained types are not replaced by constrained types whose
607 -- bounds are generated from an expression: Expand_Subtype_From_Expr
608 -- should be a no-op.
610 -- 5. Errors (instead of warnings) are issued on compile-time-known
611 -- constraint errors even though such cases do not correspond to
612 -- illegalities in the Ada RM (this is simply another case where
613 -- GNATprove implements a subset of the full language).
615 -- However, there are a few exceptions to this rule for cases where
616 -- we want to allow the GNATprove analysis to proceed (e.g. range
617 -- checks on empty ranges, which typically appear in deactivated
618 -- code in a particular configuration).
620 -- 6. Subtypes should match in the AST, even after a generic is
621 -- instantiated. In particular, GNATprove relies on the fact that,
622 -- on a selected component, the type of the selected component is
623 -- the type of the corresponding component in the prefix of the
624 -- selected component.
626 -- Note that, in some cases, we know that this rule is broken by the
627 -- frontend. In particular, if the selected component is a packed
628 -- array depending on a discriminant of a unconstrained formal object
629 -- parameter of a generic.
631 -----------------------
632 -- Check Flag Fields --
633 -----------------------
635 -- The following flag fields appear in expression nodes:
637 -- Do_Division_Check
638 -- Do_Overflow_Check
639 -- Do_Range_Check
641 -- These three flags are always set by the front end during semantic
642 -- analysis, on expression nodes that may trigger the corresponding
643 -- check. The front end then inserts or not the check during expansion. In
644 -- particular, these flags should also be correctly set in ASIS mode and
645 -- GNATprove mode.
647 -- Note: the expander always takes care of the Do_Range check case,
648 -- so this flag will never be set in the expanded tree passed to the
649 -- back end code generator.
651 -- Note that this accounts for all nodes that trigger the corresponding
652 -- checks, except for range checks on subtype_indications, which may be
653 -- required to check that a range_constraint is compatible with the given
654 -- subtype (RM 3.2.2(11)).
656 -- The following flag fields appear in various nodes:
658 -- Do_Accessibility_Check
659 -- Do_Discriminant_Check
660 -- Do_Length_Check
661 -- Do_Storage_Check
662 -- Do_Tag_Check
664 -- These flags are used in some specific cases by the front end, either
665 -- during semantic analysis or during expansion, and cannot be expected
666 -- to be set on all nodes that trigger the corresponding check.
668 ------------------------
669 -- Common Flag Fields --
670 ------------------------
672 -- The following flag fields appear in all nodes:
674 -- Analyzed
675 -- This flag is used to indicate that a node (and all its children have
676 -- been analyzed. It is used to avoid reanalysis of a node that has
677 -- already been analyzed, both for efficiency and functional correctness
678 -- reasons.
680 -- Comes_From_Source
681 -- This flag is set if the node comes directly from an explicit construct
682 -- in the source. It is normally on for any nodes built by the scanner or
683 -- parser from the source program, with the exception that in a few cases
684 -- the parser adds nodes to normalize the representation (in particular
685 -- a null statement is added to a package body if there is no begin/end
686 -- initialization section.
688 -- Most nodes inserted by the analyzer or expander are not considered
689 -- as coming from source, so the flag is off for such nodes. In a few
690 -- cases, the expander constructs nodes closely equivalent to nodes
691 -- from the source program (e.g. the allocator built for build-in-place
692 -- case), and the Comes_From_Source flag is deliberately set.
694 -- Error_Posted
695 -- This flag is used to avoid multiple error messages being posted on or
696 -- referring to the same node. This flag is set if an error message
697 -- refers to a node or is posted on its source location, and has the
698 -- effect of inhibiting further messages involving this same node.
700 -----------------------
701 -- Modify_Tree_For_C --
702 -----------------------
704 -- If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
705 -- in ways that help match the semantics better with C, easing the task of
706 -- interfacing to C code generators (other than GCC, where the work is done
707 -- in gigi, and there is no point in changing that), and also making life
708 -- easier for Cprint in generating C source code.
710 -- The current modifications implemented are as follows:
712 -- N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
713 -- are eliminated from the tree (since these operations do not exist in
714 -- C), and the operations are rewritten in terms of logical shifts and
715 -- other logical operations that do exist in C. See Exp_Ch4 expansion
716 -- routines for these operators for details of the transformations made.
718 -- The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
719 -- less than the word size (since other values are not well-defined in
720 -- C). This is done using an explicit test if necessary.
722 -- Min and Max attributes are expanded into equivalent if expressions,
723 -- dealing properly with side effect issues.
725 -- Mod for signed integer types is expanded into equivalent expressions
726 -- using Rem (which is % in C) and other C-available operators.
728 -- The Actions list of an Expression_With_Actions node does not contain
729 -- any declarations,(so that DO X, .. Y IN Z becomes (X, .. Y, Z) in C).
731 ------------------------------------
732 -- Description of Semantic Fields --
733 ------------------------------------
735 -- The meaning of the syntactic fields is generally clear from their names
736 -- without any further description, since the names are chosen to
737 -- correspond very closely to the syntax in the reference manual. This
738 -- section describes the usage of the semantic fields, which are used to
739 -- contain additional information determined during semantic analysis.
741 -- ABE_Is_Certain (Flag18-Sem)
742 -- This flag is set in an instantiation node or a call node is determined
743 -- to be sure to raise an ABE. This is used to trigger special handling
744 -- of such cases, particularly in the instantiation case where we avoid
745 -- instantiating the body if this flag is set. This flag is also present
746 -- in an N_Formal_Package_Declaration_Node since formal package
747 -- declarations are treated like instantiations, but it is always set to
748 -- False in this context.
750 -- Accept_Handler_Records (List5-Sem)
751 -- This field is present only in an N_Accept_Alternative node. It is used
752 -- to temporarily hold the exception handler records from an accept
753 -- statement in a selective accept. These exception handlers will
754 -- eventually be placed in the Handler_Records list of the procedure
755 -- built for this accept (see Expand_N_Selective_Accept procedure in
756 -- Exp_Ch9 for further details).
758 -- Access_Types_To_Process (Elist2-Sem)
759 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
760 -- Contains the list of access types which may require specific treatment
761 -- when the nature of the type completion is completely known. An example
762 -- of such treatment is the generation of the associated_final_chain.
764 -- Actions (List1-Sem)
765 -- This field contains a sequence of actions that are associated with the
766 -- node holding the field. See the individual node types for details of
767 -- how this field is used, as well as the description of the specific use
768 -- for a particular node type.
770 -- Activation_Chain_Entity (Node3-Sem)
771 -- This is used in tree nodes representing task activators (blocks,
772 -- subprogram bodies, package declarations, and task bodies). It is
773 -- initially Empty, and then gets set to point to the entity for the
774 -- declared Activation_Chain variable when the first task is declared.
775 -- When tasks are declared in the corresponding declarative region this
776 -- entity is located by name (its name is always _Chain) and the declared
777 -- tasks are added to the chain. Note that N_Extended_Return_Statement
778 -- does not have this attribute, although it does have an activation
779 -- chain. This chain is used to store the tasks temporarily, and is not
780 -- used for activating them. On successful completion of the return
781 -- statement, the tasks are moved to the caller's chain, and the caller
782 -- activates them.
784 -- Acts_As_Spec (Flag4-Sem)
785 -- A flag set in the N_Subprogram_Body node for a subprogram body which
786 -- is acting as its own spec, except in the case of a library level
787 -- subprogram, in which case the flag is set on the parent compilation
788 -- unit node instead.
790 -- Actual_Designated_Subtype (Node4-Sem)
791 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
792 -- needs to known the dynamic constrained subtype of the designated
793 -- object, this attribute is set to that type. This is done for
794 -- N_Free_Statements for access-to-classwide types and access to
795 -- unconstrained packed array types, and for N_Explicit_Dereference when
796 -- the designated type is an unconstrained packed array and the
797 -- dereference is the prefix of a 'Size attribute reference.
799 -- Address_Warning_Posted (Flag18-Sem)
800 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
801 -- posted a warning for the address clause regarding size or alignment
802 -- issues. Used to inhibit multiple redundant messages.
804 -- Aggregate_Bounds (Node3-Sem)
805 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
806 -- known at compile time, this field points to an N_Range node with those
807 -- bounds. Otherwise Empty.
809 -- All_Others (Flag11-Sem)
810 -- Present in an N_Others_Choice node. This flag is set for an others
811 -- exception where all exceptions are to be caught, even those that are
812 -- not normally handled (in particular the tasking abort signal). This
813 -- is used for translation of the at end handler into a normal exception
814 -- handler.
816 -- Aspect_Rep_Item (Node2-Sem)
817 -- Present in N_Aspect_Specification nodes. Points to the corresponding
818 -- pragma/attribute definition node used to process the aspect.
820 -- Assignment_OK (Flag15-Sem)
821 -- This flag is set in a subexpression node for an object, indicating
822 -- that the associated object can be modified, even if this would not
823 -- normally be permissible (either by direct assignment, or by being
824 -- passed as an out or in-out parameter). This is used by the expander
825 -- for a number of purposes, including initialization of constants and
826 -- limited type objects (such as tasks), setting discriminant fields,
827 -- setting tag values, etc. N_Object_Declaration nodes also have this
828 -- flag defined. Here it is used to indicate that an initialization
829 -- expression is valid, even where it would normally not be allowed
830 -- (e.g. where the type involved is limited). It is also used to stop
831 -- a Force_Evaluation call for an unchecked conversion, but this usage
832 -- is unclear and not documented ???
834 -- Associated_Node (Node4-Sem)
835 -- Present in nodes that can denote an entity: identifiers, character
836 -- literals, operator symbols, expanded names, operator nodes, and
837 -- attribute reference nodes (all these nodes have an Entity field).
838 -- This field is also present in N_Aggregate, N_Selected_Component, and
839 -- N_Extension_Aggregate nodes. This field is used in generic processing
840 -- to create links between the generic template and the generic copy.
841 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
842 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
843 -- the normal function of Entity is not required at the point where the
844 -- Associated_Node is set. Note also, that in generic templates, this
845 -- means that the Entity field does not necessarily point to an Entity.
846 -- Since the back end is expected to ignore generic templates, this is
847 -- harmless.
849 -- Atomic_Sync_Required (Flag14-Sem)
850 -- This flag is set on a node for which atomic synchronization is
851 -- required for the corresponding reference or modification.
853 -- At_End_Proc (Node1)
854 -- This field is present in an N_Handled_Sequence_Of_Statements node.
855 -- It contains an identifier reference for the cleanup procedure to be
856 -- called. See description of this node for further details.
858 -- Backwards_OK (Flag6-Sem)
859 -- A flag present in the N_Assignment_Statement node. It is used only
860 -- if the type being assigned is an array type, and is set if analysis
861 -- determines that it is definitely safe to do the copy backwards, i.e.
862 -- starting at the highest addressed element. This is the case if either
863 -- the operands do not overlap, or they may overlap, but if they do,
864 -- then the left operand is at a higher address than the right operand.
866 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
867 -- means that the front end could not determine that either direction is
868 -- definitely safe, and a runtime check may be required if the backend
869 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
870 -- set, it means that the front end can assure no overlap of operands.
872 -- Body_To_Inline (Node3-Sem)
873 -- Present in subprogram declarations. Denotes analyzed but unexpanded
874 -- body of subprogram, to be used when inlining calls. Present when the
875 -- subprogram has an Inline pragma and inlining is enabled. If the
876 -- declaration is completed by a renaming_as_body, and the renamed en-
877 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
878 -- which is used directly in later calls to the original subprogram.
880 -- Body_Required (Flag13-Sem)
881 -- A flag that appears in the N_Compilation_Unit node indicating that
882 -- the corresponding unit requires a body. For the package case, this
883 -- indicates that a completion is required. In Ada 95, if the flag is not
884 -- set for the package case, then a body may not be present. In Ada 83,
885 -- if the flag is not set for the package case, then body is optional.
886 -- For a subprogram declaration, the flag is set except in the case where
887 -- a pragma Import or Interface applies, in which case no body is
888 -- permitted (in Ada 83 or Ada 95).
890 -- By_Ref (Flag5-Sem)
891 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
892 -- this flag is set when the returned expression is already allocated on
893 -- the secondary stack and thus the result is passed by reference rather
894 -- than copied another time.
896 -- Cleanup_Actions (List5-Sem)
897 -- Present in block statements created for transient blocks, contains
898 -- additional cleanup actions carried over from the transient scope.
900 -- Check_Address_Alignment (Flag11-Sem)
901 -- A flag present in N_Attribute_Definition clause for a 'Address
902 -- attribute definition. This flag is set if a dynamic check should be
903 -- generated at the freeze point for the entity to which this address
904 -- clause applies. The reason that we need this flag is that we want to
905 -- check for range checks being suppressed at the point where the
906 -- attribute definition clause is given, rather than testing this at the
907 -- freeze point.
909 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
910 -- Present in N_Simple_Return_Statement nodes. True if this node was
911 -- constructed as part of the N_Extended_Return_Statement expansion.
913 -- Compile_Time_Known_Aggregate (Flag18-Sem)
914 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
915 -- evaluated at compile time without raising constraint error. Such
916 -- aggregates can be passed as is the back end without any expansion.
917 -- See Exp_Aggr for specific conditions under which this flag gets set.
919 -- Componentwise_Assignment (Flag14-Sem)
920 -- Present in N_Assignment_Statement nodes. Set for a record assignment
921 -- where all that needs doing is to expand it into component-by-component
922 -- assignments. This is used internally for the case of tagged types with
923 -- rep clauses, where we need to avoid recursion (we don't want to try to
924 -- generate a call to the primitive operation, because this is the case
925 -- where we are compiling the primitive operation). Note that when we are
926 -- expanding component assignments in this case, we never assign the _tag
927 -- field, but we recursively assign components of the parent type.
929 -- Condition_Actions (List3-Sem)
930 -- This field appears in else-if nodes and in the iteration scheme node
931 -- for while loops. This field is only used during semantic processing to
932 -- temporarily hold actions inserted into the tree. In the tree passed
933 -- to gigi, the condition actions field is always set to No_List. For
934 -- details on how this field is used, see the routine Insert_Actions in
935 -- package Exp_Util, and also the expansion routines for the relevant
936 -- nodes.
938 -- Context_Pending (Flag16-Sem)
939 -- This field appears in Compilation_Unit nodes, to indicate that the
940 -- context of the unit is being compiled. Used to detect circularities
941 -- that are not otherwise detected by the loading mechanism. Such
942 -- circularities can occur in the presence of limited and non-limited
943 -- with_clauses that mention the same units.
945 -- Controlling_Argument (Node1-Sem)
946 -- This field is set in procedure and function call nodes if the call
947 -- is a dispatching call (it is Empty for a non-dispatching call). It
948 -- indicates the source of the call's controlling tag. For procedure
949 -- calls, the Controlling_Argument is one of the actuals. For function
950 -- that has a dispatching result, it is an entity in the context of the
951 -- call that can provide a tag, or else it is the tag of the root type
952 -- of the class. It can also specify a tag directly rather than being a
953 -- tagged object. The latter is needed by the implementations of AI-239
954 -- and AI-260.
956 -- Conversion_OK (Flag14-Sem)
957 -- A flag set on type conversion nodes to indicate that the conversion
958 -- is to be considered as being valid, even though it is the case that
959 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
960 -- Fixed_Value and Integer_Value, for internal conversions done for
961 -- fixed-point operations, and for certain conversions for calls to
962 -- initialization procedures. If Conversion_OK is set, then Etype must be
963 -- set (the analyzer assumes that Etype has been set). For the case of
964 -- fixed-point operands, it also indicates that the conversion is to be
965 -- direct conversion of the underlying integer result, with no regard to
966 -- the small operand.
968 -- Convert_To_Return_False (Flag13-Sem)
969 -- Present in N_Raise_Expression nodes that appear in the body of the
970 -- special predicateM function used to test a predicate in the context
971 -- of a membership test, where raise expression results in returning a
972 -- value of False rather than raising an exception.
974 -- Corresponding_Aspect (Node3-Sem)
975 -- Present in N_Pragma node. Used to point back to the source aspect from
976 -- the corresponding pragma. This field is Empty for source pragmas.
978 -- Corresponding_Body (Node5-Sem)
979 -- This field is set in subprogram declarations, package declarations,
980 -- entry declarations of protected types, and in generic units. It points
981 -- to the defining entity for the corresponding body (NOT the node for
982 -- the body itself).
984 -- Corresponding_Formal_Spec (Node3-Sem)
985 -- This field is set in subprogram renaming declarations, where it points
986 -- to the defining entity for a formal subprogram in the case where the
987 -- renaming corresponds to a generic formal subprogram association in an
988 -- instantiation. The field is Empty if the renaming does not correspond
989 -- to such a formal association.
991 -- Corresponding_Generic_Association (Node5-Sem)
992 -- This field is defined for object declarations and object renaming
993 -- declarations. It is set for the declarations within an instance that
994 -- map generic formals to their actuals. If set, the field points to
995 -- a generic_association which is the original parent of the expression
996 -- or name appearing in the declaration. This simplifies ASIS queries.
998 -- Corresponding_Integer_Value (Uint4-Sem)
999 -- This field is set in real literals of fixed-point types (it is not
1000 -- used for floating-point types). It contains the integer value used
1001 -- to represent the fixed-point value. It is also set on the universal
1002 -- real literals used to represent bounds of fixed-point base types
1003 -- and their first named subtypes.
1005 -- Corresponding_Spec (Node5-Sem)
1006 -- This field is set in subprogram, package, task, and protected body
1007 -- nodes, where it points to the defining entity in the corresponding
1008 -- spec. The attribute is also set in N_With_Clause nodes where it points
1009 -- to the defining entity for the with'ed spec, and in a subprogram
1010 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
1011 -- if there is no corresponding spec, as in the case of a subprogram body
1012 -- that serves as its own spec.
1014 -- In Ada 2012, Corresponding_Spec is set on expression functions that
1015 -- complete a subprogram declaration.
1017 -- Corresponding_Spec_Of_Stub (Node2-Sem)
1018 -- This field is present in subprogram, package, task and protected body
1019 -- stubs where it points to the corresponding spec of the stub. Due to
1020 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
1022 -- Corresponding_Stub (Node3-Sem)
1023 -- This field is present in an N_Subunit node. It holds the node in
1024 -- the parent unit that is the stub declaration for the subunit. It is
1025 -- set when analysis of the stub forces loading of the proper body. If
1026 -- expansion of the proper body creates new declarative nodes, they are
1027 -- inserted at the point of the corresponding_stub.
1029 -- Dcheck_Function (Node5-Sem)
1030 -- This field is present in an N_Variant node, It references the entity
1031 -- for the discriminant checking function for the variant.
1033 -- Default_Expression (Node5-Sem)
1034 -- This field is Empty if there is no default expression. If there is a
1035 -- simple default expression (one with no side effects), then this field
1036 -- simply contains a copy of the Expression field (both point to the tree
1037 -- for the default expression). Default_Expression is used for
1038 -- conformance checking.
1040 -- Default_Storage_Pool (Node3-Sem)
1041 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
1042 -- copy of Opt.Default_Pool at the end of the compilation unit. See
1043 -- package Opt for details. This is used for inheriting the
1044 -- Default_Storage_Pool in child units.
1046 -- Discr_Check_Funcs_Built (Flag11-Sem)
1047 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
1048 -- discriminant checking functions are constructed. The purpose is to
1049 -- avoid attempting to set these functions more than once.
1051 -- Do_Accessibility_Check (Flag13-Sem)
1052 -- This flag is set on N_Parameter_Specification nodes to indicate
1053 -- that an accessibility check is required for the parameter. It is
1054 -- not yet decided who takes care of this check (TBD ???).
1056 -- Do_Discriminant_Check (Flag1-Sem)
1057 -- This flag is set on N_Selected_Component nodes to indicate that a
1058 -- discriminant check is required using the discriminant check routine
1059 -- associated with the selector. The actual check is generated by the
1060 -- expander when processing selected components. In the case of
1061 -- Unchecked_Union, the flag is also set, but no discriminant check
1062 -- routine is associated with the selector, and the expander does not
1063 -- generate a check. This flag is also present in assignment statements
1064 -- (and set if the assignment requires a discriminant check), and in type
1065 -- conversion nodes (and set if the conversion requires a check).
1067 -- Do_Division_Check (Flag13-Sem)
1068 -- This flag is set on a division operator (/ mod rem) to indicate
1069 -- that a zero divide check is required. The actual check is dealt
1070 -- with by the backend (all the front end does is to set the flag).
1072 -- Do_Length_Check (Flag4-Sem)
1073 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1074 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1075 -- is required. It is not determined who deals with this flag (???).
1077 -- Do_Overflow_Check (Flag17-Sem)
1078 -- This flag is set on an operator where an overflow check is required on
1079 -- the operation. The actual check is dealt with by the backend (all the
1080 -- front end does is to set the flag). The other cases where this flag is
1081 -- used is on a Type_Conversion node and for attribute reference nodes.
1082 -- For a type conversion, it means that the conversion is from one base
1083 -- type to another, and the value may not fit in the target base type.
1084 -- See also the description of Do_Range_Check for this case. The only
1085 -- attribute references which use this flag are Pred and Succ, where it
1086 -- means that the result should be checked for going outside the base
1087 -- range. Note that this flag is not set for modular types. This flag is
1088 -- also set on if and case expression nodes if we are operating in either
1089 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1090 -- properly process overflow checking for dependent expressions).
1092 -- Do_Range_Check (Flag9-Sem)
1093 -- This flag is set on an expression which appears in a context where a
1094 -- range check is required. The target type is clear from the context.
1095 -- The contexts in which this flag can appear are the following:
1097 -- Right side of an assignment. In this case the target type is
1098 -- taken from the left side of the assignment, which is referenced
1099 -- by the Name of the N_Assignment_Statement node.
1101 -- Subscript expressions in an indexed component. In this case the
1102 -- target type is determined from the type of the array, which is
1103 -- referenced by the Prefix of the N_Indexed_Component node.
1105 -- Argument expression for a parameter, appearing either directly in
1106 -- the Parameter_Associations list of a call or as the Expression of an
1107 -- N_Parameter_Association node that appears in this list. In either
1108 -- case, the check is against the type of the formal. Note that the
1109 -- flag is relevant only in IN and IN OUT parameters, and will be
1110 -- ignored for OUT parameters, where no check is required in the call,
1111 -- and if a check is required on the return, it is generated explicitly
1112 -- with a type conversion.
1114 -- Initialization expression for the initial value in an object
1115 -- declaration. In this case the Do_Range_Check flag is set on
1116 -- the initialization expression, and the check is against the
1117 -- range of the type of the object being declared. This includes the
1118 -- cases of expressions providing default discriminant values, and
1119 -- expressions used to initialize record components.
1121 -- The expression of a type conversion. In this case the range check is
1122 -- against the target type of the conversion. See also the use of
1123 -- Do_Overflow_Check on a type conversion. The distinction is that the
1124 -- overflow check protects against a value that is outside the range of
1125 -- the target base type, whereas a range check checks that the
1126 -- resulting value (which is a value of the base type of the target
1127 -- type), satisfies the range constraint of the target type.
1129 -- Note: when a range check is required in contexts other than those
1130 -- listed above (e.g. in a return statement), an additional type
1131 -- conversion node is introduced to represent the required check.
1133 -- A special case arises for the arguments of the Pred/Succ attributes.
1134 -- Here the range check needed is against First + 1 .. Last (Pred) or
1135 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
1136 -- these checks are what would be performed within the implicit body of
1137 -- the functions that correspond to these attributes. In these cases,
1138 -- the Do_Range check flag is set on the argument to the attribute
1139 -- function, and the back end must special case the appropriate range
1140 -- to check against.
1142 -- Do_Storage_Check (Flag17-Sem)
1143 -- This flag is set in an N_Allocator node to indicate that a storage
1144 -- check is required for the allocation, or in an N_Subprogram_Body node
1145 -- to indicate that a stack check is required in the subprogram prologue.
1146 -- The N_Allocator case is handled by the routine that expands the call
1147 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1148 -- backend, and all the semantics does is set the flag.
1150 -- Do_Tag_Check (Flag13-Sem)
1151 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1152 -- N_Procedure_Call_Statement, N_Type_Conversion,
1153 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1154 -- node to indicate that the tag check can be suppressed. It is not
1155 -- yet decided how this flag is used (TBD ???).
1157 -- Elaborate_Present (Flag4-Sem)
1158 -- This flag is set in the N_With_Clause node to indicate that pragma
1159 -- Elaborate pragma appears for the with'ed units.
1161 -- Elaborate_All_Desirable (Flag9-Sem)
1162 -- This flag is set in the N_With_Clause mode to indicate that the static
1163 -- elaboration processing has determined that an Elaborate_All pragma is
1164 -- desirable for correct elaboration for this unit.
1166 -- Elaborate_All_Present (Flag14-Sem)
1167 -- This flag is set in the N_With_Clause node to indicate that a
1168 -- pragma Elaborate_All pragma appears for the with'ed units.
1170 -- Elaborate_Desirable (Flag11-Sem)
1171 -- This flag is set in the N_With_Clause mode to indicate that the static
1172 -- elaboration processing has determined that an Elaborate pragma is
1173 -- desirable for correct elaboration for this unit.
1175 -- Else_Actions (List3-Sem)
1176 -- This field is present in if expression nodes. During code
1177 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1178 -- actions at an appropriate place in the tree to get elaborated at the
1179 -- right time. For if expressions, we have to be sure that the actions
1180 -- for the Else branch are only elaborated if the condition is False.
1181 -- The Else_Actions field is used as a temporary parking place for
1182 -- these actions. The final tree is always rewritten to eliminate the
1183 -- need for this field, so in the tree passed to Gigi, this field is
1184 -- always set to No_List.
1186 -- Enclosing_Variant (Node2-Sem)
1187 -- This field is present in the N_Variant node and identifies the Node_Id
1188 -- corresponding to the immediately enclosing variant when the variant is
1189 -- nested, and N_Empty otherwise. Set during semantic processing of the
1190 -- variant part of a record type.
1192 -- Entity (Node4-Sem)
1193 -- Appears in all direct names (identifiers, character literals, and
1194 -- operator symbols), as well as expanded names, and attributes that
1195 -- denote entities, such as 'Class. Points to entity for corresponding
1196 -- defining occurrence. Set after name resolution. For identifiers in a
1197 -- WITH list, the corresponding defining occurrence is in a separately
1198 -- compiled file, and Entity must be set by the library Load procedure.
1200 -- Note: During name resolution, the value in Entity may be temporarily
1201 -- incorrect (e.g. during overload resolution, Entity is initially set to
1202 -- the first possible correct interpretation, and then later modified if
1203 -- necessary to contain the correct value after resolution).
1205 -- Note: This field overlaps Associated_Node, which is used during
1206 -- generic processing (see Sem_Ch12 for details). Note also that in
1207 -- generic templates, this means that the Entity field does not always
1208 -- point to an Entity. Since the back end is expected to ignore generic
1209 -- templates, this is harmless.
1211 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1212 -- It is used only for stream attributes definition clauses. In this
1213 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1214 -- conceptually at the point of the clause. Thus the visibility of the
1215 -- attribute definition clause (in the sense of 8.3(23) as amended by
1216 -- AI-195) can be checked by testing the visibility of that subprogram.
1218 -- Note: Normally the Entity field of an identifier points to the entity
1219 -- for the corresponding defining identifier, and hence the Chars field
1220 -- of an identifier will match the Chars field of the entity. However,
1221 -- there is no requirement that these match, and there are obscure cases
1222 -- of generated code where they do not match.
1224 -- Note: Ada 2012 aspect specifications require additional links between
1225 -- identifiers and various attributes. These attributes can be of
1226 -- arbitrary types, and the entity field of identifiers that denote
1227 -- aspects must be used to store arbitrary expressions for later semantic
1228 -- checks. See section on aspect specifications for details.
1230 -- Entity_Or_Associated_Node (Node4-Sem)
1231 -- A synonym for both Entity and Associated_Node. Used by convention in
1232 -- the code when referencing this field in cases where it is not known
1233 -- whether the field contains an Entity or an Associated_Node.
1235 -- Etype (Node5-Sem)
1236 -- Appears in all expression nodes, all direct names, and all entities.
1237 -- Points to the entity for the related type. Set after type resolution.
1238 -- Normally this is the actual subtype of the expression. However, in
1239 -- certain contexts such as the right side of an assignment, subscripts,
1240 -- arguments to calls, returned value in a function, initial value etc.
1241 -- it is the desired target type. In the event that this is different
1242 -- from the actual type, the Do_Range_Check flag will be set if a range
1243 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1244 -- points to an essentially arbitrary choice from the possible set of
1245 -- types.
1247 -- Exception_Junk (Flag8-Sem)
1248 -- This flag is set in a various nodes appearing in a statement sequence
1249 -- to indicate that the corresponding node is an artifact of the
1250 -- generated code for exception handling, and should be ignored when
1251 -- analyzing the control flow of the relevant sequence of statements
1252 -- (e.g. to check that it does not end with a bad return statement).
1254 -- Exception_Label (Node5-Sem)
1255 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1256 -- to be used for transforming the corresponding exception into a goto,
1257 -- or contains Empty, if this exception is not to be transformed. Also
1258 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1259 -- that there may be a local raise for the handler, so that expansion
1260 -- to allow a goto is required (and this field contains the label for
1261 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1263 -- Expansion_Delayed (Flag11-Sem)
1264 -- Set on aggregates and extension aggregates that need a top-down rather
1265 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1266 -- up. For nested aggregates the expansion is delayed until the enclosing
1267 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1268 -- delay it we set this flag. This is done to avoid creating a temporary
1269 -- for each level of a nested aggregates, and also to prevent the
1270 -- premature generation of constraint checks. This is also a requirement
1271 -- if we want to generate the proper attachment to the internal
1272 -- finalization lists (for record with controlled components). Top down
1273 -- expansion of aggregates is also used for in-place array aggregate
1274 -- assignment or initialization. When the full context is known, the
1275 -- target of the assignment or initialization is used to generate the
1276 -- left-hand side of individual assignment to each sub-component.
1278 -- First_Inlined_Subprogram (Node3-Sem)
1279 -- Present in the N_Compilation_Unit node for the main program. Points
1280 -- to a chain of entities for subprograms that are to be inlined. The
1281 -- Next_Inlined_Subprogram field of these entities is used as a link
1282 -- pointer with Empty marking the end of the list. This field is Empty
1283 -- if there are no inlined subprograms or inlining is not active.
1285 -- First_Named_Actual (Node4-Sem)
1286 -- Present in procedure call statement and function call nodes, and also
1287 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1288 -- named parameter where parameters are ordered by declaration order (as
1289 -- opposed to the actual order in the call which may be different due to
1290 -- named associations). Note: this field points to the explicit actual
1291 -- parameter itself, not the N_Parameter_Association node (its parent).
1293 -- First_Real_Statement (Node2-Sem)
1294 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1295 -- Empty. Used only when declarations are moved into the statement part
1296 -- of a construct as a result of wrapping an AT END handler that is
1297 -- required to cover the declarations. In this case, this field is used
1298 -- to remember the location in the statements list of the first real
1299 -- statement, i.e. the statement that used to be first in the statement
1300 -- list before the declarations were prepended.
1302 -- First_Subtype_Link (Node5-Sem)
1303 -- Present in N_Freeze_Entity node for an anonymous base type that is
1304 -- implicitly created by the declaration of a first subtype. It points
1305 -- to the entity for the first subtype.
1307 -- Float_Truncate (Flag11-Sem)
1308 -- A flag present in type conversion nodes. This is used for float to
1309 -- integer conversions where truncation is required rather than rounding.
1311 -- Forwards_OK (Flag5-Sem)
1312 -- A flag present in the N_Assignment_Statement node. It is used only
1313 -- if the type being assigned is an array type, and is set if analysis
1314 -- determines that it is definitely safe to do the copy forwards, i.e.
1315 -- starting at the lowest addressed element. This is the case if either
1316 -- the operands do not overlap, or they may overlap, but if they do,
1317 -- then the left operand is at a lower address than the right operand.
1319 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1320 -- means that the front end could not determine that either direction is
1321 -- definitely safe, and a runtime check may be required if the backend
1322 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1323 -- set, it means that the front end can assure no overlap of operands.
1325 -- From_Aspect_Specification (Flag13-Sem)
1326 -- Processing of aspect specifications typically results in insertion in
1327 -- the tree of corresponding pragma or attribute definition clause nodes.
1328 -- These generated nodes have the From_Aspect_Specification flag set to
1329 -- indicate that they came from aspect specifications originally.
1331 -- From_At_End (Flag4-Sem)
1332 -- This flag is set on an N_Raise_Statement node if it corresponds to
1333 -- the reraise statement generated as the last statement of an AT END
1334 -- handler when SJLJ exception handling is active. It is used to stop
1335 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1336 -- because if the restriction is set, the reraise is not generated.
1338 -- From_At_Mod (Flag4-Sem)
1339 -- This flag is set on the attribute definition clause node that is
1340 -- generated by a transformation of an at mod phrase in a record
1341 -- representation clause. This is used to give slightly different (Ada 83
1342 -- compatible) semantics to such a clause, namely it is used to specify a
1343 -- minimum acceptable alignment for the base type and all subtypes. In
1344 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1345 -- must be a multiple of the given value, and the representation clause
1346 -- is considered to be type specific instead of subtype specific.
1348 -- From_Conditional_Expression (Flag1-Sem)
1349 -- This flag is set on if and case statements generated by the expansion
1350 -- of if and case expressions respectively. The flag is used to suppress
1351 -- any finalization of controlled objects found within these statements.
1353 -- From_Default (Flag6-Sem)
1354 -- This flag is set on the subprogram renaming declaration created in an
1355 -- instance for a formal subprogram, when the formal is declared with a
1356 -- box, and there is no explicit actual. If the flag is present, the
1357 -- declaration is treated as an implicit reference to the formal in the
1358 -- ali file.
1360 -- Generalized_Indexing (Node4-Sem)
1361 -- Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1362 -- that are Ada 2012 container indexing operations. The value of the
1363 -- attribute is a function call (possibly dereferenced) that corresponds
1364 -- to the proper expansion of the source indexing operation. Before
1365 -- expansion, the source node is rewritten as the resolved generalized
1366 -- indexing. In ASIS mode, the expansion does not take place, so that
1367 -- the source is preserved and properly annotated with types.
1369 -- Generic_Parent (Node5-Sem)
1370 -- Generic_Parent is defined on declaration nodes that are instances. The
1371 -- value of Generic_Parent is the generic entity from which the instance
1372 -- is obtained. Generic_Parent is also defined for the renaming
1373 -- declarations and object declarations created for the actuals in an
1374 -- instantiation. The generic parent of such a declaration is the
1375 -- corresponding generic association in the Instantiation node.
1377 -- Generic_Parent_Type (Node4-Sem)
1378 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1379 -- actuals of formal private and derived types. Within the instance, the
1380 -- operations on the actual are those inherited from the parent. For a
1381 -- formal private type, the parent type is the generic type itself. The
1382 -- Generic_Parent_Type is also used in an instance to determine whether a
1383 -- private operation overrides an inherited one.
1385 -- Handler_List_Entry (Node2-Sem)
1386 -- This field is present in N_Object_Declaration nodes. It is set only
1387 -- for the Handler_Record entry generated for an exception in zero cost
1388 -- exception handling mode. It references the corresponding item in the
1389 -- handler list, and is used to delete this entry if the corresponding
1390 -- handler is deleted during optimization. For further details on why
1391 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1393 -- Has_Dereference_Action (Flag13-Sem)
1394 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1395 -- indicate that the expansion has aready produced a call to primitive
1396 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1397 -- Such dereference actions are produced for debugging purposes.
1399 -- Has_Dynamic_Length_Check (Flag10-Sem)
1400 -- This flag is present in all expression nodes. It is set to indicate
1401 -- that one of the routines in unit Checks has generated a length check
1402 -- action which has been inserted at the flagged node. This is used to
1403 -- avoid the generation of duplicate checks.
1405 -- Has_Dynamic_Range_Check (Flag12-Sem)
1406 -- This flag is present in N_Subtype_Declaration nodes and on all
1407 -- expression nodes. It is set to indicate that one of the routines in
1408 -- unit Checks has generated a range check action which has been inserted
1409 -- at the flagged node. This is used to avoid the generation of duplicate
1410 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1411 -- it mean in that context???
1413 -- Has_Local_Raise (Flag8-Sem)
1414 -- Present in exception handler nodes. Set if the handler can be entered
1415 -- via a local raise that gets transformed to a goto statement. This will
1416 -- always be set if Local_Raise_Statements is non-empty, but can also be
1417 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1418 -- nodes requiring generation of back end checks.
1420 -- Has_No_Elaboration_Code (Flag17-Sem)
1421 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1422 -- or not elaboration code is present for this unit. It is initially set
1423 -- true for subprogram specs and bodies and for all generic units and
1424 -- false for non-generic package specs and bodies. Gigi may set the flag
1425 -- in the non-generic package case if it determines that no elaboration
1426 -- code is generated. Note that this flag is not related to the
1427 -- Is_Preelaborated status, there can be preelaborated packages that
1428 -- generate elaboration code, and non-preelaborated packages which do
1429 -- not generate elaboration code.
1431 -- Has_Pragma_Suppress_All (Flag14-Sem)
1432 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1433 -- pragma appears anywhere in the unit. This accommodates the rather
1434 -- strange placement rules of other compilers (DEC permits it at the
1435 -- end of a unit, and Rational allows it as a program unit pragma). We
1436 -- allow it anywhere at all, and consider it equivalent to a pragma
1437 -- Suppress (All_Checks) appearing at the start of the configuration
1438 -- pragmas for the unit.
1440 -- Has_Private_View (Flag11-Sem)
1441 -- A flag present in generic nodes that have an entity, to indicate that
1442 -- the node has a private type. Used to exchange private and full
1443 -- declarations if the visibility at instantiation is different from the
1444 -- visibility at generic definition.
1446 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1447 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1448 -- flag the presence of a pragma Relative_Deadline.
1450 -- Has_Self_Reference (Flag13-Sem)
1451 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1452 -- of the expressions contains an access attribute reference to the
1453 -- enclosing type. Such a self-reference can only appear in default-
1454 -- initialized aggregate for a record type.
1456 -- Has_SP_Choice (Flag15-Sem)
1457 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1458 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1459 -- True if the Discrete_Choices list has at least one occurrence of a
1460 -- statically predicated subtype.
1462 -- Has_Storage_Size_Pragma (Flag5-Sem)
1463 -- A flag present in an N_Task_Definition node to flag the presence of a
1464 -- Storage_Size pragma.
1466 -- Has_Wide_Character (Flag11-Sem)
1467 -- Present in string literals, set if any wide character (i.e. character
1468 -- code outside the Character range but within Wide_Character range)
1469 -- appears in the string. Used to implement pragma preference rules.
1471 -- Has_Wide_Wide_Character (Flag13-Sem)
1472 -- Present in string literals, set if any wide character (i.e. character
1473 -- code outside the Wide_Character range) appears in the string. Used to
1474 -- implement pragma preference rules.
1476 -- Header_Size_Added (Flag11-Sem)
1477 -- Present in N_Attribute_Reference nodes, set only for attribute
1478 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1479 -- hidden list header used by the runtime finalization support has been
1480 -- added to the size of the prefix. The flag also prevents the infinite
1481 -- expansion of the same attribute in the said context.
1483 -- Hidden_By_Use_Clause (Elist4-Sem)
1484 -- An entity list present in use clauses that appear within
1485 -- instantiations. For the resolution of local entities, entities
1486 -- introduced by these use clauses have priority over global ones, and
1487 -- outer entities must be explicitly hidden/restored on exit.
1489 -- Implicit_With (Flag16-Sem)
1490 -- This flag is set in the N_With_Clause node that is implicitly
1491 -- generated for runtime units that are loaded by the expander, and also
1492 -- for package System, if it is loaded implicitly by a use of the
1493 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1494 -- as well.
1496 -- Implicit_With_From_Instantiation (Flag12-Sem)
1497 -- Set in N_With_Clause nodes from generic instantiations.
1499 -- Import_Interface_Present (Flag16-Sem)
1500 -- This flag is set in an Interface or Import pragma if a matching
1501 -- pragma of the other kind is also present. This is used to avoid
1502 -- generating some unwanted error messages.
1504 -- Includes_Infinities (Flag11-Sem)
1505 -- This flag is present in N_Range nodes. It is set for the range of
1506 -- unconstrained float types defined in Standard, which include not only
1507 -- the given range of values, but also legitimately can include infinite
1508 -- values. This flag is false for any float type for which an explicit
1509 -- range is given by the programmer, even if that range is identical to
1510 -- the range for Float.
1512 -- Incomplete_View (Node2-Sem)
1513 -- Present in full type declarations that are completions of incomplete
1514 -- type declarations. Denotes the corresponding incomplete type
1515 -- declaration. Used to simplify the retrieval of primitive operations
1516 -- that may be declared between the partial and the full view of an
1517 -- untagged type.
1519 -- Inherited_Discriminant (Flag13-Sem)
1520 -- This flag is present in N_Component_Association nodes. It indicates
1521 -- that a given component association in an extension aggregate is the
1522 -- value obtained from a constraint on an ancestor. Used to prevent
1523 -- double expansion when the aggregate has expansion delayed.
1525 -- Instance_Spec (Node5-Sem)
1526 -- This field is present in generic instantiation nodes, and also in
1527 -- formal package declaration nodes (formal package declarations are
1528 -- treated in a manner very similar to package instantiations). It points
1529 -- to the node for the spec of the instance, inserted as part of the
1530 -- semantic processing for instantiations in Sem_Ch12.
1532 -- Is_Accessibility_Actual (Flag13-Sem)
1533 -- Present in N_Parameter_Association nodes. True if the parameter is
1534 -- an extra actual that carries the accessibility level of the actual
1535 -- for an access parameter, in a function that dispatches on result and
1536 -- is called in a dispatching context. Used to prevent a formal/actual
1537 -- mismatch when the call is rewritten as a dispatching call.
1539 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1540 -- A flag set in a Block_Statement node to indicate that it is the
1541 -- expansion of an asynchronous entry call. Such a block needs cleanup
1542 -- handler to assure that the call is cancelled.
1544 -- Is_Boolean_Aspect (Flag16-Sem)
1545 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1546 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1548 -- Is_Checked (Flag11-Sem)
1549 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1550 -- assertion aspect or pragma, or check pragma for an assertion, that
1551 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1552 -- is set (they cannot both be set), then this means that the status of
1553 -- the pragma has been checked at the appropriate point and should not
1554 -- be further modified (in some cases these flags are copied when a
1555 -- pragma is rewritten).
1557 -- Is_Component_Left_Opnd (Flag13-Sem)
1558 -- Is_Component_Right_Opnd (Flag14-Sem)
1559 -- Present in concatenation nodes, to indicate that the corresponding
1560 -- operand is of the component type of the result. Used in resolving
1561 -- concatenation nodes in instances.
1563 -- Is_Delayed_Aspect (Flag14-Sem)
1564 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1565 -- come from aspect specifications, where the evaluation of the aspect
1566 -- must be delayed to the freeze point. This flag is also set True in
1567 -- the corresponding N_Aspect_Specification node.
1569 -- Is_Controlling_Actual (Flag16-Sem)
1570 -- This flag is set on in an expression that is a controlling argument in
1571 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1572 -- details of its use.
1574 -- Is_Disabled (Flag15-Sem)
1575 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1576 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1577 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1578 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1579 -- If this flag is set, the aspect or policy is not analyzed for semantic
1580 -- correctness, so any expressions etc will not be marked as analyzed.
1582 -- Is_Dynamic_Coextension (Flag18-Sem)
1583 -- Present in allocator nodes, to indicate that this is an allocator
1584 -- for an access discriminant of a dynamically allocated object. The
1585 -- coextension must be deallocated and finalized at the same time as
1586 -- the enclosing object.
1588 -- Is_Entry_Barrier_Function (Flag8-Sem)
1589 -- This flag is set in an N_Subprogram_Body node which is the expansion
1590 -- of an entry barrier from a protected entry body. It is used for the
1591 -- circuitry checking for incorrect use of Current_Task.
1593 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1594 -- This flag is set in an N_Function_Call node to indicate that the extra
1595 -- actuals to support a build-in-place style of call have been added to
1596 -- the call.
1598 -- Is_Finalization_Wrapper (Flag9-Sem);
1599 -- This flag is present in N_Block_Statement nodes. It is set when the
1600 -- block acts as a wrapper of a handled construct which has controlled
1601 -- objects. The wrapper prevents interference between exception handlers
1602 -- and At_End handlers.
1604 -- Is_Ignored (Flag9-Sem)
1605 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1606 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1607 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1608 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1609 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1610 -- gives a policy for the aspect or pragma, then there are two cases. For
1611 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1612 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1613 -- ignored because of the absence of a -gnata switch. For any other
1614 -- aspects or pragmas, the flag is off. If this flag is set, the
1615 -- aspect/pragma is fully analyzed and checked for other syntactic
1616 -- and semantic errors, but it does not have any semantic effect.
1618 -- Is_In_Discriminant_Check (Flag11-Sem)
1619 -- This flag is present in a selected component, and is used to indicate
1620 -- that the reference occurs within a discriminant check. The
1621 -- significance is that optimizations based on assuming that the
1622 -- discriminant check has a correct value cannot be performed in this
1623 -- case (or the discriminant check may be optimized away).
1625 -- Is_Inherited (Flag4-Sem)
1626 -- This flag is set in an N_Pragma node that appears in a N_Contract node
1627 -- to indicate that the pragma has been inherited from a parent context.
1629 -- Is_Machine_Number (Flag11-Sem)
1630 -- This flag is set in an N_Real_Literal node to indicate that the value
1631 -- is a machine number. This avoids some unnecessary cases of converting
1632 -- real literals to machine numbers.
1634 -- Is_Null_Loop (Flag16-Sem)
1635 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1636 -- can be determined to be null at compile time. This is used to remove
1637 -- the loop entirely at expansion time.
1639 -- Is_Overloaded (Flag5-Sem)
1640 -- A flag present in all expression nodes. Used temporarily during
1641 -- overloading determination. The setting of this flag is not relevant
1642 -- once overloading analysis is complete.
1644 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1645 -- A flag present only in N_Op_Expon nodes. It is set when the
1646 -- exponentiation is of the form 2 ** N, where the type of N is an
1647 -- unsigned integral subtype whose size does not exceed the size of
1648 -- Standard_Integer (i.e. a type that can be safely converted to
1649 -- Natural), and the exponentiation appears as the right operand of an
1650 -- integer multiplication or an integer division where the dividend is
1651 -- unsigned. It is also required that overflow checking is off for both
1652 -- the exponentiation and the multiply/divide node. If this set of
1653 -- conditions holds, and the flag is set, then the division or
1654 -- multiplication can be (and is) converted to a shift.
1656 -- Is_Prefixed_Call (Flag17-Sem)
1657 -- This flag is set in a selected component within a generic unit, if
1658 -- it resolves to a prefixed call to a primitive operation. The flag
1659 -- is used to prevent accidental overloadings in an instance, when a
1660 -- primitive operation and a private record component may be homographs.
1662 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1663 -- A flag set in a Subprogram_Body block to indicate that it is the
1664 -- implementation of a protected subprogram. Such a body needs cleanup
1665 -- handler to make sure that the associated protected object is unlocked
1666 -- when the subprogram completes.
1668 -- Is_Static_Coextension (Flag14-Sem)
1669 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1670 -- of an object allocated on the stack rather than the heap.
1672 -- Is_Static_Expression (Flag6-Sem)
1673 -- Indicates that an expression is a static expression according to the
1674 -- rules in (RM 4.9). Note that it is possible for this flag to be set
1675 -- when Raises_Constraint_Error is also set. In practice almost all cases
1676 -- where a static expression is required do not allow an expression which
1677 -- raises Constraint_Error, so almost always, callers should call the
1678 -- Is_Ok_Static_Expression routine instead of testing this flag. See
1679 -- spec of package Sem_Eval for full details on the use of this flag.
1681 -- Is_Subprogram_Descriptor (Flag16-Sem)
1682 -- Present in N_Object_Declaration, and set only for the object
1683 -- declaration generated for a subprogram descriptor in fast exception
1684 -- mode. See Exp_Ch11 for details of use.
1686 -- Is_Task_Allocation_Block (Flag6-Sem)
1687 -- A flag set in a Block_Statement node to indicate that it is the
1688 -- expansion of a task allocator, or the allocator of an object
1689 -- containing tasks. Such a block requires a cleanup handler to call
1690 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1691 -- allocated but not activated when the allocator completes abnormally.
1693 -- Is_Task_Master (Flag5-Sem)
1694 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1695 -- indicate that the construct is a task master (i.e. has declared tasks
1696 -- or declares an access to a task type).
1698 -- Itype (Node1-Sem)
1699 -- Used in N_Itype_Reference node to reference an itype for which it is
1700 -- important to ensure that it is defined. See description of this node
1701 -- for further details.
1703 -- Kill_Range_Check (Flag11-Sem)
1704 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1705 -- result should not be subjected to range checks. This is used for the
1706 -- implementation of Normalize_Scalars.
1708 -- Label_Construct (Node2-Sem)
1709 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1710 -- N_Block_Statement or N_Loop_Statement node to which the label
1711 -- declaration applies. This attribute is used both in the compiler and
1712 -- in the implementation of ASIS queries. The field is left empty for the
1713 -- special labels generated as part of expanding raise statements with a
1714 -- local exception handler.
1716 -- Library_Unit (Node4-Sem)
1717 -- In a stub node, Library_Unit points to the compilation unit node of
1718 -- the corresponding subunit.
1720 -- In a with clause node, Library_Unit points to the spec of the with'ed
1721 -- unit.
1723 -- In a compilation unit node, the usage depends on the unit type:
1725 -- For a library unit body, Library_Unit points to the compilation unit
1726 -- node of the corresponding spec, unless it's a subprogram body with
1727 -- Acts_As_Spec set, in which case it points to itself.
1729 -- For a spec, Library_Unit points to the compilation unit node of the
1730 -- corresponding body, if present. The body will be present if the spec
1731 -- is or contains generics that we needed to instantiate. Similarly, the
1732 -- body will be present if we needed it for inlining purposes. Thus, if
1733 -- we have a spec/body pair, both of which are present, they point to
1734 -- each other via Library_Unit.
1736 -- For a subunit, Library_Unit points to the compilation unit node of
1737 -- the parent body.
1738 -- ??? not (always) true, in (at least some, maybe all?) cases it points
1739 -- to the corresponding spec for the parent body.
1741 -- Note that this field is not used to hold the parent pointer for child
1742 -- unit (which might in any case need to use it for some other purpose as
1743 -- described above). Instead for a child unit, implicit with's are
1744 -- generated for all parents.
1746 -- Local_Raise_Statements (Elist1)
1747 -- This field is present in exception handler nodes. It is set to
1748 -- No_Elist in the normal case. If there is at least one raise statement
1749 -- which can potentially be handled as a local raise, then this field
1750 -- points to a list of raise nodes, which are calls to a routine to raise
1751 -- an exception. These are raise nodes which can be optimized into gotos
1752 -- if the handler turns out to meet the conditions which permit this
1753 -- transformation. Note that this does NOT include instances of the
1754 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1755 -- handled by the back end (using the N_Push/N_Pop mechanism).
1757 -- Loop_Actions (List2-Sem)
1758 -- A list present in Component_Association nodes in array aggregates.
1759 -- Used to collect actions that must be executed within the loop because
1760 -- they may need to be evaluated anew each time through.
1762 -- Limited_View_Installed (Flag18-Sem)
1763 -- Present in With_Clauses and in package specifications. If set on
1764 -- with_clause, it indicates that this clause has created the current
1765 -- limited view of the designated package. On a package specification, it
1766 -- indicates that the limited view has already been created because the
1767 -- package is mentioned in a limited_with_clause in the closure of the
1768 -- unit being compiled.
1770 -- Local_Raise_Not_OK (Flag7-Sem)
1771 -- Present in N_Exception_Handler nodes. Set if the handler contains
1772 -- a construct (reraise statement, or call to subprogram in package
1773 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1774 -- for a local raise (one that could otherwise be converted to a goto).
1776 -- Must_Be_Byte_Aligned (Flag14-Sem)
1777 -- This flag is present in N_Attribute_Reference nodes. It can be set
1778 -- only for the Address and Unrestricted_Access attributes. If set it
1779 -- means that the object for which the address/access is given must be on
1780 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1781 -- of the object is to be made before taking the address (this copy is in
1782 -- the current scope on the stack frame). This is used for certain cases
1783 -- of code generated by the expander that passes parameters by address.
1785 -- The reason the copy is not made by the front end is that the back end
1786 -- has more information about type layout and may be able to (but is not
1787 -- guaranteed to) prevent making unnecessary copies.
1789 -- Must_Not_Freeze (Flag8-Sem)
1790 -- A flag present in all expression nodes. Normally expressions cause
1791 -- freezing as described in the RM. If this flag is set, then this is
1792 -- inhibited. This is used by the analyzer and expander to label nodes
1793 -- that are created by semantic analysis or expansion and which must not
1794 -- cause freezing even though they normally would. This flag is also
1795 -- present in an N_Subtype_Indication node, since we also use these in
1796 -- calls to Freeze_Expression.
1798 -- Next_Entity (Node2-Sem)
1799 -- Present in defining identifiers, defining character literals and
1800 -- defining operator symbols (i.e. in all entities). The entities of a
1801 -- scope are chained, and this field is used as the forward pointer for
1802 -- this list. See Einfo for further details.
1804 -- Next_Exit_Statement (Node3-Sem)
1805 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1806 -- chained (in reverse order of appearance) from the First_Exit_Statement
1807 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1808 -- the next entry on this chain (Empty = end of list).
1810 -- Next_Implicit_With (Node3-Sem)
1811 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1812 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1813 -- to prevent multiple with_clauses for the same unit in a given context.
1814 -- A postorder traversal of the tree whose nodes are units and whose
1815 -- links are with_clauses defines the order in which CodePeer must
1816 -- examine a compiled unit and its full context. This ordering ensures
1817 -- that any subprogram call is examined after the subprogram declaration
1818 -- has been seen.
1820 -- Next_Named_Actual (Node4-Sem)
1821 -- Present in parameter association nodes. Set during semantic analysis
1822 -- to point to the next named parameter, where parameters are ordered by
1823 -- declaration order (as opposed to the actual order in the call, which
1824 -- may be different due to named associations). Not that this field
1825 -- points to the explicit actual parameter itself, not to the
1826 -- N_Parameter_Association node (its parent).
1828 -- Next_Pragma (Node1-Sem)
1829 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1830 -- nodes. Currently used for two purposes:
1832 -- Create a list of linked Check_Policy pragmas. The head of this list
1833 -- is stored in Opt.Check_Policy_List (which has further details).
1835 -- Used by processing for Pre/Postcondition pragmas to store a list of
1836 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1837 -- details).
1839 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
1840 -- the apply to the same construct. These are visible/private mode for
1841 -- a package spec and declarative/statement mode for package body.
1843 -- Next_Rep_Item (Node5-Sem)
1844 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1845 -- clauses, record rep clauses, aspect specification nodes. Used to link
1846 -- representation items that apply to an entity. See full description of
1847 -- First_Rep_Item field in Einfo for further details.
1849 -- Next_Use_Clause (Node3-Sem)
1850 -- While use clauses are active during semantic processing, they are
1851 -- chained from the scope stack entry, using Next_Use_Clause as a link
1852 -- pointer, with Empty marking the end of the list. The head pointer is
1853 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1854 -- processing (i.e. when Gigi sees the tree, the contents of this field
1855 -- is undefined and should not be read).
1857 -- No_Ctrl_Actions (Flag7-Sem)
1858 -- Present in N_Assignment_Statement to indicate that no Finalize nor
1859 -- Adjust should take place on this assignment even though the RHS is
1860 -- controlled. Also indicates that the primitive _assign should not be
1861 -- used for a tagged assignment. This is used in init procs and aggregate
1862 -- expansions where the generated assignments are initializations, not
1863 -- real assignments.
1865 -- No_Elaboration_Check (Flag14-Sem)
1866 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1867 -- that no elaboration check is needed on the call, because it appears in
1868 -- the context of a local Suppress pragma. This is used on calls within
1869 -- task bodies, where the actual elaboration checks are applied after
1870 -- analysis, when the local scope stack is not present.
1872 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1873 -- Present in N_With_Clause nodes. Set if the with clause is on the
1874 -- package or subprogram spec where the main unit is the corresponding
1875 -- body, and no entities of the with'ed unit are referenced by the spec
1876 -- (an entity may still be referenced in the body, so this flag is used
1877 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1878 -- full details)
1880 -- No_Initialization (Flag13-Sem)
1881 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1882 -- object must not be initialized (by Initialize or call to an init
1883 -- proc). This is needed for controlled aggregates. When the Object
1884 -- declaration has an expression, this flag means that this expression
1885 -- should not be taken into account (needed for in place initialization
1886 -- with aggregates, and for object with an address clause, which are
1887 -- initialized with an assignment at freeze time).
1889 -- No_Minimize_Eliminate (Flag17-Sem)
1890 -- This flag is present in membership operator nodes (N_In/N_Not_In).
1891 -- It is used to indicate that processing for extended overflow checking
1892 -- modes is not required (this is used to prevent infinite recursion).
1894 -- No_Truncation (Flag17-Sem)
1895 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1896 -- only if the RM_Size of the source is greater than the RM_Size of the
1897 -- target for scalar operands. Normally in such a case we truncate some
1898 -- higher order bits of the source, and then sign/zero extend the result
1899 -- to form the output value. But if this flag is set, then we do not do
1900 -- any truncation, so for example, if an 8 bit input is converted to 5
1901 -- bit result which is in fact stored in 8 bits, then the high order
1902 -- three bits of the target result will be copied from the source. This
1903 -- is used for properly setting out of range values for use by pragmas
1904 -- Initialize_Scalars and Normalize_Scalars.
1906 -- Non_Aliased_Prefix (Flag18-Sem)
1907 -- Present in N_Attribute_Reference nodes. Set only for the case of an
1908 -- Unrestricted_Access reference whose prefix is non-aliased, which is
1909 -- the case that is permitted for Unrestricted_Access except when the
1910 -- expected type is a thin pointer to unconstrained array. This flag is
1911 -- to assist in detecting this illegal use of Unrestricted_Access.
1913 -- Null_Excluding_Subtype (Flag16)
1914 -- Present in N_Access_To_Object_Definition. Indicates that the subtype
1915 -- indication carries a null-exclusion indicator, which is distinct from
1916 -- the null-exclusion indicator that may precede the access keyword.
1918 -- Original_Discriminant (Node2-Sem)
1919 -- Present in identifiers. Used in references to discriminants that
1920 -- appear in generic units. Because the names of the discriminants may be
1921 -- different in an instance, we use this field to recover the position of
1922 -- the discriminant in the original type, and replace it with the
1923 -- discriminant at the same position in the instantiated type.
1925 -- Original_Entity (Node2-Sem)
1926 -- Present in numeric literals. Used to denote the named number that has
1927 -- been constant-folded into the given literal. If literal is from
1928 -- source, or the result of some other constant-folding operation, then
1929 -- Original_Entity is empty. This field is needed to handle properly
1930 -- named numbers in generic units, where the Associated_Node field
1931 -- interferes with the Entity field, making it impossible to preserve the
1932 -- original entity at the point of instantiation (ASIS problem).
1934 -- Others_Discrete_Choices (List1-Sem)
1935 -- When a case statement or variant is analyzed, the semantic checks
1936 -- determine the actual list of choices that correspond to an others
1937 -- choice. This list is materialized for later use by the expander and
1938 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1939 -- this materialized list of choices, which is in standard format for a
1940 -- list of discrete choices, except that of course it cannot contain an
1941 -- N_Others_Choice entry.
1943 -- Parent_Spec (Node4-Sem)
1944 -- For a library unit that is a child unit spec (package or subprogram
1945 -- declaration, generic declaration or instantiation, or library level
1946 -- rename, this field points to the compilation unit node for the parent
1947 -- package specification. This field is Empty for library bodies (the
1948 -- parent spec in this case can be found from the corresponding spec).
1950 -- Premature_Use (Node5-Sem)
1951 -- Present in N_Incomplete_Type_Declaration node. Used for improved
1952 -- error diagnostics: if there is a premature usage of an incomplete
1953 -- type, a subsequently generated error message indicates the position
1954 -- of its full declaration.
1956 -- Present_Expr (Uint3-Sem)
1957 -- Present in an N_Variant node. This has a meaningful value only after
1958 -- Gigi has back annotated the tree with representation information. At
1959 -- this point, it contains a reference to a gcc expression that depends
1960 -- on the values of one or more discriminants. Give a set of discriminant
1961 -- values, this expression evaluates to False (zero) if variant is not
1962 -- present, and True (non-zero) if it is present. See unit Repinfo for
1963 -- further details on gigi back annotation. This field is used during
1964 -- ASIS processing (data decomposition annex) to determine if a field is
1965 -- present or not.
1967 -- Print_In_Hex (Flag13-Sem)
1968 -- Set on an N_Integer_Literal node to indicate that the value should be
1969 -- printed in hexadecimal in the sprint listing. Has no effect on
1970 -- legality or semantics of program, only on the displayed output. This
1971 -- is used to clarify output from the packed array cases.
1973 -- Procedure_To_Call (Node2-Sem)
1974 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1975 -- and N_Extended_Return_Statement nodes. References the entity for the
1976 -- declaration of the procedure to be called to accomplish the required
1977 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1978 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1979 -- allocating the return value), and for the Deallocate procedure in the
1980 -- case of N_Free_Statement.
1982 -- Raises_Constraint_Error (Flag7-Sem)
1983 -- Set on an expression whose evaluation will definitely fail constraint
1984 -- error check. In the case of static expressions, this flag must be set
1985 -- accurately (and if it is set, the expression is typically illegal
1986 -- unless it appears as a non-elaborated branch of a short-circuit form).
1987 -- For a non-static expression, this flag may be set whenever an
1988 -- expression (e.g. an aggregate) is known to raise constraint error. If
1989 -- set, the expression definitely will raise CE if elaborated at runtime.
1990 -- If not set, the expression may or may not raise CE. In other words, on
1991 -- static expressions, the flag is set accurately, on non-static
1992 -- expressions it is set conservatively.
1994 -- Redundant_Use (Flag13-Sem)
1995 -- Present in nodes that can appear as an operand in a use clause or use
1996 -- type clause (identifiers, expanded names, attribute references). Set
1997 -- to indicate that a use is redundant (and therefore need not be undone
1998 -- on scope exit).
2000 -- Renaming_Exception (Node2-Sem)
2001 -- Present in N_Exception_Declaration node. Used to point back to the
2002 -- exception renaming for an exception declared within a subprogram.
2003 -- What happens is that an exception declared in a subprogram is moved
2004 -- to the library level with a unique name, and the original exception
2005 -- becomes a renaming. This link from the library level exception to the
2006 -- renaming declaration allows registering of the proper exception name.
2008 -- Return_Statement_Entity (Node5-Sem)
2009 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
2010 -- Points to an E_Return_Statement representing the return statement.
2012 -- Return_Object_Declarations (List3)
2013 -- Present in N_Extended_Return_Statement. Points to a list initially
2014 -- containing a single N_Object_Declaration representing the return
2015 -- object. We use a list (instead of just a pointer to the object decl)
2016 -- because Analyze wants to insert extra actions on this list.
2018 -- Rounded_Result (Flag18-Sem)
2019 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
2020 -- Used in the fixed-point cases to indicate that the result must be
2021 -- rounded as a result of the use of the 'Round attribute. Also used for
2022 -- integer N_Op_Divide nodes to indicate that the result should be
2023 -- rounded to the nearest integer (breaking ties away from zero), rather
2024 -- than truncated towards zero as usual. These rounded integer operations
2025 -- are the result of expansion of rounded fixed-point divide, conversion
2026 -- and multiplication operations.
2028 -- SCIL_Entity (Node4-Sem)
2029 -- Present in SCIL nodes. References the specific tagged type associated
2030 -- with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
2031 -- the controlling type of the call; for an N_SCIL_Membership_Test node
2032 -- generated as part of testing membership in T'Class, this is T; for an
2033 -- N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
2035 -- SCIL_Controlling_Tag (Node5-Sem)
2036 -- Present in N_SCIL_Dispatching_Call nodes. References the controlling
2037 -- tag of a dispatching call. This is usually an N_Selected_Component
2038 -- node (for a _tag component), but may be an N_Object_Declaration or
2039 -- N_Parameter_Specification node in some cases (e.g., for a call to
2040 -- a classwide streaming operation or a call to an instance of
2041 -- Ada.Tags.Generic_Dispatching_Constructor).
2043 -- SCIL_Tag_Value (Node5-Sem)
2044 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
2045 -- of the value that is being tested.
2047 -- SCIL_Target_Prim (Node2-Sem)
2048 -- Present in N_SCIL_Dispatching_Call nodes. References the primitive
2049 -- operation named (statically) in a dispatching call.
2051 -- Scope (Node3-Sem)
2052 -- Present in defining identifiers, defining character literals and
2053 -- defining operator symbols (i.e. in all entities). The entities of a
2054 -- scope all use this field to reference the corresponding scope entity.
2055 -- See Einfo for further details.
2057 -- Shift_Count_OK (Flag4-Sem)
2058 -- A flag present in shift nodes to indicate that the shift count is
2059 -- known to be in range, i.e. is in the range from zero to word length
2060 -- minus one. If this flag is not set, then the shift count may be
2061 -- outside this range, i.e. larger than the word length, and the code
2062 -- must ensure that such shift counts give the appropriate result.
2064 -- Source_Type (Node1-Sem)
2065 -- Used in an N_Validate_Unchecked_Conversion node to point to the
2066 -- source type entity for the unchecked conversion instantiation
2067 -- which gigi must do size validation for.
2069 -- Split_PPC (Flag17)
2070 -- When a Pre or Post aspect specification is processed, it is broken
2071 -- into AND THEN sections. The left most section has Split_PPC set to
2072 -- False, indicating that it is the original specification (e.g. for
2073 -- posting errors). For other sections, Split_PPC is set to True.
2074 -- This flag is set in both the N_Aspect_Specification node itself,
2075 -- and in the pragma which is generated from this node.
2077 -- Storage_Pool (Node1-Sem)
2078 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2079 -- and N_Extended_Return_Statement nodes. References the entity for the
2080 -- storage pool to be used for the allocate or free call or for the
2081 -- allocation of the returned value from function. Empty indicates that
2082 -- the global default pool is to be used. Note that in the case
2083 -- of a return statement, this field is set only if the function returns
2084 -- value of a type whose size is not known at compile time on the
2085 -- secondary stack.
2087 -- Suppress_Assignment_Checks (Flag18-Sem)
2088 -- Used in generated N_Assignment_Statement nodes to suppress predicate
2089 -- and range checks in cases where the generated code knows that the
2090 -- value being assigned is in range and satisfies any predicate. Also
2091 -- can be set in N_Object_Declaration nodes, to similarly suppress any
2092 -- checks on the initializing value. In assignment statements it also
2093 -- suppresses access checks in the generated code for out- and in-out
2094 -- parameters in entry calls.
2096 -- Suppress_Loop_Warnings (Flag17-Sem)
2097 -- Used in N_Loop_Statement node to indicate that warnings within the
2098 -- body of the loop should be suppressed. This is set when the range
2099 -- of a FOR loop is known to be null, or is probably null (loop would
2100 -- only execute if invalid values are present).
2102 -- Target_Type (Node2-Sem)
2103 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
2104 -- type entity for the unchecked conversion instantiation which gigi must
2105 -- do size validation for.
2107 -- Then_Actions (List3-Sem)
2108 -- This field is present in if expression nodes. During code expansion
2109 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
2110 -- at an appropriate place in the tree to get elaborated at the right
2111 -- time. For if expressions, we have to be sure that the actions for
2112 -- for the Then branch are only elaborated if the condition is True.
2113 -- The Then_Actions field is used as a temporary parking place for
2114 -- these actions. The final tree is always rewritten to eliminate the
2115 -- need for this field, so in the tree passed to Gigi, this field is
2116 -- always set to No_List.
2118 -- Treat_Fixed_As_Integer (Flag14-Sem)
2119 -- This flag appears in operator nodes for divide, multiply, mod and rem
2120 -- on fixed-point operands. It indicates that the operands are to be
2121 -- treated as integer values, ignoring small values. This flag is only
2122 -- set as a result of expansion of fixed-point operations. Typically a
2123 -- fixed-point multiplication in the source generates subsidiary
2124 -- multiplication and division operations that work with the underlying
2125 -- integer values and have this flag set. Note that this flag is not
2126 -- needed on other arithmetic operations (add, neg, subtract etc.) since
2127 -- in these cases it is always the case that fixed is treated as integer.
2128 -- The Etype field MUST be set if this flag is set. The analyzer knows to
2129 -- leave such nodes alone, and whoever makes them must set the correct
2130 -- Etype value.
2132 -- TSS_Elist (Elist3-Sem)
2133 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2134 -- entries for each TSS (type support subprogram) associated with the
2135 -- frozen type. The elements of the list are the entities for the
2136 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2137 -- if there are no type support subprograms for the type or if the freeze
2138 -- node is not for a type.
2140 -- Uneval_Old_Accept (Flag7-Sem)
2141 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'A'
2142 -- (accept) at the point where the pragma is encountered (including the
2143 -- case of a pragma generated from an aspect specification). It is this
2144 -- setting that is relevant, rather than the setting at the point where
2145 -- a contract is finally analyzed after the delay till the freeze point.
2147 -- Uneval_Old_Warn (Flag18-Sem)
2148 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'W'
2149 -- (warn) at the point where the pragma is encountered (including the
2150 -- case of a pragma generated from an aspect specification). It is this
2151 -- setting that is relevant, rather than the setting at the point where
2152 -- a contract is finally analyzed after the delay till the freeze point.
2154 -- Unreferenced_In_Spec (Flag7-Sem)
2155 -- Present in N_With_Clause nodes. Set if the with clause is on the
2156 -- package or subprogram spec where the main unit is the corresponding
2157 -- body, and is not referenced by the spec (it may still be referenced by
2158 -- the body, so this flag is used to generate the proper message (see
2159 -- Sem_Util.Check_Unused_Withs for details)
2161 -- Uninitialized_Variable (Node3-Sem)
2162 -- Present in N_Formal_Private_Type_Definition and in N_Private_
2163 -- Extension_Declarations. Indicates that a variable in a generic unit
2164 -- whose type is a formal private or derived type is read without being
2165 -- initialized. Used to warn if the corresponding actual type is not
2166 -- a fully initialized type.
2168 -- Used_Operations (Elist5-Sem)
2169 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2170 -- are made potentially use-visible by the clause. Simplifies processing
2171 -- on exit from the scope of the use_type_clause, in particular in the
2172 -- case of Use_All_Type, when those operations several scopes.
2174 -- Was_Originally_Stub (Flag13-Sem)
2175 -- This flag is set in the node for a proper body that replaces stub.
2176 -- During the analysis procedure, stubs in some situations get rewritten
2177 -- by the corresponding bodies, and we set this flag to remember that
2178 -- this happened. Note that it is not good enough to rely on the use of
2179 -- Original_Node here because of the case of nested instantiations where
2180 -- the substituted node can be copied.
2182 -- Withed_Body (Node1-Sem)
2183 -- Present in N_With_Clause nodes. Set if the unit in whose context
2184 -- the with_clause appears instantiates a generic contained in the
2185 -- library unit of the with_clause and as a result loads its body.
2186 -- Used for a more precise unit traversal for CodePeer.
2188 --------------------------------------------------
2189 -- Note on Use of End_Label and End_Span Fields --
2190 --------------------------------------------------
2192 -- Several constructs have end lines:
2194 -- Loop Statement end loop [loop_IDENTIFIER];
2195 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2196 -- Task Definition end [task_IDENTIFIER]
2197 -- Protected Definition end [protected_IDENTIFIER]
2198 -- Protected Body end [protected_IDENTIFIER]
2200 -- Block Statement end [block_IDENTIFIER];
2201 -- Subprogram Body end [DESIGNATOR];
2202 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2203 -- Task Body end [task_IDENTIFIER];
2204 -- Accept Statement end [entry_IDENTIFIER]];
2205 -- Entry Body end [entry_IDENTIFIER];
2207 -- If Statement end if;
2208 -- Case Statement end case;
2210 -- Record Definition end record;
2211 -- Enumeration Definition );
2213 -- The End_Label and End_Span fields are used to mark the locations of
2214 -- these lines, and also keep track of the label in the case where a label
2215 -- is present.
2217 -- For the first group above, the End_Label field of the corresponding node
2218 -- is used to point to the label identifier. In the case where there is no
2219 -- label in the source, the parser supplies a dummy identifier (with
2220 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2221 -- marks the location of the token following the END token.
2223 -- For the second group, the use of End_Label is similar, but the End_Label
2224 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2225 -- simply because in some cases there is no room in the parent node.
2227 -- For the third group, there is never any label, and instead of using
2228 -- End_Label, we use the End_Span field which gives the location of the
2229 -- token following END, relative to the starting Sloc of the construct,
2230 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2231 -- following the End_Label.
2233 -- The record definition case is handled specially, we treat it as though
2234 -- it required an optional label which is never present, and so the parser
2235 -- always builds a dummy identifier with Comes From Source set False. The
2236 -- reason we do this, rather than using End_Span in this case, is that we
2237 -- want to generate a cross-ref entry for the end of a record, since it
2238 -- represents a scope for name declaration purposes.
2240 -- The enumeration definition case is handled in an exactly similar manner,
2241 -- building a dummy identifier to get a cross-reference.
2243 -- Note: the reason we store the difference as a Uint, instead of storing
2244 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2245 -- distinguished from other types of values, and we count on all general
2246 -- use fields being self describing. To make things easier for clients,
2247 -- note that we provide function End_Location, and procedure
2248 -- Set_End_Location to allow access to the logical value (which is the
2249 -- Source_Ptr value for the end token).
2251 ---------------------
2252 -- Syntactic Nodes --
2253 ---------------------
2255 ---------------------
2256 -- 2.3 Identifier --
2257 ---------------------
2259 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2260 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2262 -- An IDENTIFIER shall not be a reserved word
2264 -- In the Ada grammar identifiers are the bottom level tokens which have
2265 -- very few semantics. Actual program identifiers are direct names. If
2266 -- we were being 100% honest with the grammar, then we would have a node
2267 -- called N_Direct_Name which would point to an identifier. However,
2268 -- that's too many extra nodes, so we just use the N_Identifier node
2269 -- directly as a direct name, and it contains the expression fields and
2270 -- Entity field that correspond to its use as a direct name. In those
2271 -- few cases where identifiers appear in contexts where they are not
2272 -- direct names (pragmas, pragma argument associations, attribute
2273 -- references and attribute definition clauses), the Chars field of the
2274 -- node contains the Name_Id for the identifier name.
2276 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2277 -- cases. First, an incorrect use of a reserved word as an identifier is
2278 -- diagnosed and then treated as a normal identifier. Second, an
2279 -- attribute designator of the form of a reserved word (access, delta,
2280 -- digits, range) is treated as an identifier.
2282 -- Note: The set of letters that is permitted in an identifier depends
2283 -- on the character set in use. See package Csets for full details.
2285 -- N_Identifier
2286 -- Sloc points to identifier
2287 -- Chars (Name1) contains the Name_Id for the identifier
2288 -- Entity (Node4-Sem)
2289 -- Associated_Node (Node4-Sem)
2290 -- Original_Discriminant (Node2-Sem)
2291 -- Redundant_Use (Flag13-Sem)
2292 -- Atomic_Sync_Required (Flag14-Sem)
2293 -- Has_Private_View (Flag11-Sem) (set in generic units)
2294 -- plus fields for expression
2296 --------------------------
2297 -- 2.4 Numeric Literal --
2298 --------------------------
2300 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2302 ----------------------------
2303 -- 2.4.1 Decimal Literal --
2304 ----------------------------
2306 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2308 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2310 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2312 -- Decimal literals appear in the tree as either integer literal nodes
2313 -- or real literal nodes, depending on whether a period is present.
2315 -- Note: literal nodes appear as a result of direct use of literals
2316 -- in the source program, and also as the result of evaluating
2317 -- expressions at compile time. In the latter case, it is possible
2318 -- to construct real literals that have no syntactic representation
2319 -- using the standard literal format. Such literals are listed by
2320 -- Sprint using the notation [numerator / denominator].
2322 -- Note: the value of an integer literal node created by the front end
2323 -- is never outside the range of values of the base type. However, it
2324 -- can be the case that the created value is outside the range of the
2325 -- particular subtype. This happens in the case of integer overflows
2326 -- with checks suppressed.
2328 -- N_Integer_Literal
2329 -- Sloc points to literal
2330 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2331 -- has been constant-folded into its literal value.
2332 -- Intval (Uint3) contains integer value of literal
2333 -- plus fields for expression
2334 -- Print_In_Hex (Flag13-Sem)
2336 -- N_Real_Literal
2337 -- Sloc points to literal
2338 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2339 -- has been constant-folded into its literal value.
2340 -- Realval (Ureal3) contains real value of literal
2341 -- Corresponding_Integer_Value (Uint4-Sem)
2342 -- Is_Machine_Number (Flag11-Sem)
2343 -- plus fields for expression
2345 --------------------------
2346 -- 2.4.2 Based Literal --
2347 --------------------------
2349 -- BASED_LITERAL ::=
2350 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2352 -- BASE ::= NUMERAL
2354 -- BASED_NUMERAL ::=
2355 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2357 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2359 -- Based literals appear in the tree as either integer literal nodes
2360 -- or real literal nodes, depending on whether a period is present.
2362 ----------------------------
2363 -- 2.5 Character Literal --
2364 ----------------------------
2366 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2368 -- N_Character_Literal
2369 -- Sloc points to literal
2370 -- Chars (Name1) contains the Name_Id for the identifier
2371 -- Char_Literal_Value (Uint2) contains the literal value
2372 -- Entity (Node4-Sem)
2373 -- Associated_Node (Node4-Sem)
2374 -- Has_Private_View (Flag11-Sem) set in generic units.
2375 -- plus fields for expression
2377 -- Note: the Entity field will be missing (set to Empty) for character
2378 -- literals whose type is Standard.Wide_Character or Standard.Character
2379 -- or a type derived from one of these two. In this case the character
2380 -- literal stands for its own coding. The reason we take this irregular
2381 -- short cut is to avoid the need to build lots of junk defining
2382 -- character literal nodes.
2384 -------------------------
2385 -- 2.6 String Literal --
2386 -------------------------
2388 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2390 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2391 -- single GRAPHIC_CHARACTER other than a quotation mark.
2393 -- Is_Folded_In_Parser is True if the parser created this literal by
2394 -- folding a sequence of "&" operators. For example, if the source code
2395 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2396 -- is set. This flag is needed because the parser doesn't know about
2397 -- visibility, so the folded result might be wrong, and semantic
2398 -- analysis needs to check for that.
2400 -- N_String_Literal
2401 -- Sloc points to literal
2402 -- Strval (Str3) contains Id of string value
2403 -- Has_Wide_Character (Flag11-Sem)
2404 -- Has_Wide_Wide_Character (Flag13-Sem)
2405 -- Is_Folded_In_Parser (Flag4)
2406 -- plus fields for expression
2408 ------------------
2409 -- 2.7 Comment --
2410 ------------------
2412 -- A COMMENT starts with two adjacent hyphens and extends up to the
2413 -- end of the line. A COMMENT may appear on any line of a program.
2415 -- Comments are skipped by the scanner and do not appear in the tree.
2416 -- It is possible to reconstruct the position of comments with respect
2417 -- to the elements of the tree by using the source position (Sloc)
2418 -- pointers that appear in every tree node.
2420 -----------------
2421 -- 2.8 Pragma --
2422 -----------------
2424 -- PRAGMA ::= pragma IDENTIFIER
2425 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2427 -- Note that a pragma may appear in the tree anywhere a declaration
2428 -- or a statement may appear, as well as in some other situations
2429 -- which are explicitly documented.
2431 -- N_Pragma
2432 -- Sloc points to PRAGMA
2433 -- Next_Pragma (Node1-Sem)
2434 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2435 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2436 -- Pragma_Identifier (Node4)
2437 -- Next_Rep_Item (Node5-Sem)
2438 -- Class_Present (Flag6) set if from Aspect with 'Class
2439 -- From_Aspect_Specification (Flag13-Sem)
2440 -- Import_Interface_Present (Flag16-Sem)
2441 -- Is_Checked (Flag11-Sem)
2442 -- Is_Delayed_Aspect (Flag14-Sem)
2443 -- Is_Disabled (Flag15-Sem)
2444 -- Is_Ignored (Flag9-Sem)
2445 -- Is_Inherited (Flag4-Sem)
2446 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2447 -- Uneval_Old_Accept (Flag7-Sem)
2448 -- Uneval_Old_Warn (Flag18-Sem)
2450 -- Note: we should have a section on what pragmas are passed on to
2451 -- the back end to be processed. This section should note that pragma
2452 -- Psect_Object is always converted to Common_Object, but there are
2453 -- undoubtedly many other similar notes required ???
2455 -- Note: a utility function Pragma_Name may be applied to pragma nodes
2456 -- to conveniently obtain the Chars field of the Pragma_Identifier.
2458 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2459 -- aspect name, as does the Pragma_Identifier. In this case if the
2460 -- pragma has a local name argument (such as pragma Inline), it is
2461 -- resolved to point to the specific entity affected by the pragma.
2463 --------------------------------------
2464 -- 2.8 Pragma Argument Association --
2465 --------------------------------------
2467 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2468 -- [pragma_argument_IDENTIFIER =>] NAME
2469 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2471 -- In Ada 2012, there are two more possibilities:
2473 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2474 -- [pragma_argument_ASPECT_MARK =>] NAME
2475 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2477 -- where the interesting allowed cases (which do not fit the syntax of
2478 -- the first alternative above) are
2480 -- ASPECT_MARK => Pre'Class |
2481 -- Post'Class |
2482 -- Type_Invariant'Class |
2483 -- Invariant'Class
2485 -- We allow this special usage in all Ada modes, but it would be a
2486 -- pain to allow these aspects to pervade the pragma syntax, and the
2487 -- representation of pragma nodes internally. So what we do is to
2488 -- replace these ASPECT_MARK forms with identifiers whose name is one
2489 -- of the special internal names _Pre, _Post or _Type_Invariant.
2491 -- We do a similar replacement of these Aspect_Mark forms in the
2492 -- Expression of a pragma argument association for the cases of
2493 -- the first arguments of any Check pragmas and Check_Policy pragmas
2495 -- N_Pragma_Argument_Association
2496 -- Sloc points to first token in association
2497 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2498 -- Expression (Node3)
2500 ------------------------
2501 -- 2.9 Reserved Word --
2502 ------------------------
2504 -- Reserved words are parsed by the scanner, and returned as the
2505 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2507 ----------------------------
2508 -- 3.1 Basic Declaration --
2509 ----------------------------
2511 -- BASIC_DECLARATION ::=
2512 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2513 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2514 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2515 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2516 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2517 -- | GENERIC_INSTANTIATION
2519 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2520 -- see further description in section on semantic nodes.
2522 -- Also, in the tree that is constructed, a pragma may appear
2523 -- anywhere that a declaration may appear.
2525 ------------------------------
2526 -- 3.1 Defining Identifier --
2527 ------------------------------
2529 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2531 -- A defining identifier is an entity, which has additional fields
2532 -- depending on the setting of the Ekind field. These additional
2533 -- fields are defined (and access subprograms declared) in package
2534 -- Einfo.
2536 -- Note: N_Defining_Identifier is an extended node whose fields are
2537 -- deliberate layed out to match the layout of fields in an ordinary
2538 -- N_Identifier node allowing for easy alteration of an identifier
2539 -- node into a defining identifier node. For details, see procedure
2540 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2542 -- N_Defining_Identifier
2543 -- Sloc points to identifier
2544 -- Chars (Name1) contains the Name_Id for the identifier
2545 -- Next_Entity (Node2-Sem)
2546 -- Scope (Node3-Sem)
2547 -- Etype (Node5-Sem)
2549 -----------------------------
2550 -- 3.2.1 Type Declaration --
2551 -----------------------------
2553 -- TYPE_DECLARATION ::=
2554 -- FULL_TYPE_DECLARATION
2555 -- | INCOMPLETE_TYPE_DECLARATION
2556 -- | PRIVATE_TYPE_DECLARATION
2557 -- | PRIVATE_EXTENSION_DECLARATION
2559 ----------------------------------
2560 -- 3.2.1 Full Type Declaration --
2561 ----------------------------------
2563 -- FULL_TYPE_DECLARATION ::=
2564 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2565 -- is TYPE_DEFINITION
2566 -- [ASPECT_SPECIFICATIONS];
2567 -- | TASK_TYPE_DECLARATION
2568 -- | PROTECTED_TYPE_DECLARATION
2570 -- The full type declaration node is used only for the first case. The
2571 -- second case (concurrent type declaration), is represented directly
2572 -- by a task type declaration or a protected type declaration.
2574 -- N_Full_Type_Declaration
2575 -- Sloc points to TYPE
2576 -- Defining_Identifier (Node1)
2577 -- Incomplete_View (Node2-Sem)
2578 -- Discriminant_Specifications (List4) (set to No_List if none)
2579 -- Type_Definition (Node3)
2580 -- Discr_Check_Funcs_Built (Flag11-Sem)
2582 ----------------------------
2583 -- 3.2.1 Type Definition --
2584 ----------------------------
2586 -- TYPE_DEFINITION ::=
2587 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2588 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2589 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2590 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2592 --------------------------------
2593 -- 3.2.2 Subtype Declaration --
2594 --------------------------------
2596 -- SUBTYPE_DECLARATION ::=
2597 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2598 -- [ASPECT_SPECIFICATIONS];
2600 -- The subtype indication field is set to Empty for subtypes
2601 -- declared in package Standard (Positive, Natural).
2603 -- N_Subtype_Declaration
2604 -- Sloc points to SUBTYPE
2605 -- Defining_Identifier (Node1)
2606 -- Null_Exclusion_Present (Flag11)
2607 -- Subtype_Indication (Node5)
2608 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2609 -- Exception_Junk (Flag8-Sem)
2610 -- Has_Dynamic_Range_Check (Flag12-Sem)
2612 -------------------------------
2613 -- 3.2.2 Subtype Indication --
2614 -------------------------------
2616 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2618 -- Note: if no constraint is present, the subtype indication appears
2619 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2620 -- node is used only if a constraint is present.
2622 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2623 -- with the null-exclusion part (see AI-231), we had to introduce a new
2624 -- attribute in all the parents of subtype_indication nodes to indicate
2625 -- if the null-exclusion is present.
2627 -- Note: the reason that this node has expression fields is that a
2628 -- subtype indication can appear as an operand of a membership test.
2630 -- N_Subtype_Indication
2631 -- Sloc points to first token of subtype mark
2632 -- Subtype_Mark (Node4)
2633 -- Constraint (Node3)
2634 -- Etype (Node5-Sem)
2635 -- Must_Not_Freeze (Flag8-Sem)
2637 -- Note: Depending on context, the Etype is either the entity of the
2638 -- Subtype_Mark field, or it is an itype constructed to reify the
2639 -- subtype indication. In particular, such itypes are created for a
2640 -- subtype indication that appears in an array type declaration. This
2641 -- simplifies constraint checking in indexed components.
2643 -- For subtype indications that appear in scalar type and subtype
2644 -- declarations, the Etype is the entity of the subtype mark.
2646 -------------------------
2647 -- 3.2.2 Subtype Mark --
2648 -------------------------
2650 -- SUBTYPE_MARK ::= subtype_NAME
2652 -----------------------
2653 -- 3.2.2 Constraint --
2654 -----------------------
2656 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2658 ------------------------------
2659 -- 3.2.2 Scalar Constraint --
2660 ------------------------------
2662 -- SCALAR_CONSTRAINT ::=
2663 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2665 ---------------------------------
2666 -- 3.2.2 Composite Constraint --
2667 ---------------------------------
2669 -- COMPOSITE_CONSTRAINT ::=
2670 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2672 -------------------------------
2673 -- 3.3.1 Object Declaration --
2674 -------------------------------
2676 -- OBJECT_DECLARATION ::=
2677 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2678 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2679 -- [ASPECT_SPECIFICATIONS];
2680 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2681 -- ACCESS_DEFINITION [:= EXPRESSION]
2682 -- [ASPECT_SPECIFICATIONS];
2683 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2684 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2685 -- [ASPECT_SPECIFICATIONS];
2686 -- | SINGLE_TASK_DECLARATION
2687 -- | SINGLE_PROTECTED_DECLARATION
2689 -- Note: aliased is not permitted in Ada 83 mode
2691 -- The N_Object_Declaration node is only for the first two cases.
2692 -- Single task declaration is handled by P_Task (9.1)
2693 -- Single protected declaration is handled by P_protected (9.5)
2695 -- Although the syntax allows multiple identifiers in the list, the
2696 -- semantics is as though successive declarations were given with
2697 -- identical type definition and expression components. To simplify
2698 -- semantic processing, the parser represents a multiple declaration
2699 -- case as a sequence of single declarations, using the More_Ids and
2700 -- Prev_Ids flags to preserve the original source form as described
2701 -- in the section on "Handling of Defining Identifier Lists".
2703 -- The flag Has_Init_Expression is set if an initializing expression
2704 -- is present. Normally it is set if and only if Expression contains
2705 -- a non-empty value, but there is an exception to this. When the
2706 -- initializing expression is an aggregate which requires explicit
2707 -- assignments, the Expression field gets set to Empty, but this flag
2708 -- is still set, so we don't forget we had an initializing expression.
2710 -- Note: if a range check is required for the initialization
2711 -- expression then the Do_Range_Check flag is set in the Expression,
2712 -- with the check being done against the type given by the object
2713 -- definition, which is also the Etype of the defining identifier.
2715 -- Note: the contents of the Expression field must be ignored (i.e.
2716 -- treated as though it were Empty) if No_Initialization is set True.
2718 -- Note: the back end places some restrictions on the form of the
2719 -- Expression field. If the object being declared is Atomic, then
2720 -- the Expression may not have the form of an aggregate (since this
2721 -- might cause the back end to generate separate assignments). In this
2722 -- case the front end must generate an extra temporary and initialize
2723 -- this temporary as required (the temporary itself is not atomic).
2725 -- Note: there is not node kind for object definition. Instead, the
2726 -- corresponding field holds a subtype indication, an array type
2727 -- definition, or (Ada 2005, AI-406) an access definition.
2729 -- N_Object_Declaration
2730 -- Sloc points to first identifier
2731 -- Defining_Identifier (Node1)
2732 -- Aliased_Present (Flag4)
2733 -- Constant_Present (Flag17) set if CONSTANT appears
2734 -- Null_Exclusion_Present (Flag11)
2735 -- Object_Definition (Node4) subtype indic./array type def./access def.
2736 -- Expression (Node3) (set to Empty if not present)
2737 -- Handler_List_Entry (Node2-Sem)
2738 -- Corresponding_Generic_Association (Node5-Sem)
2739 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2740 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2741 -- No_Initialization (Flag13-Sem)
2742 -- Assignment_OK (Flag15-Sem)
2743 -- Exception_Junk (Flag8-Sem)
2744 -- Is_Subprogram_Descriptor (Flag16-Sem)
2745 -- Has_Init_Expression (Flag14)
2746 -- Suppress_Assignment_Checks (Flag18-Sem)
2748 -------------------------------------
2749 -- 3.3.1 Defining Identifier List --
2750 -------------------------------------
2752 -- DEFINING_IDENTIFIER_LIST ::=
2753 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2755 -------------------------------
2756 -- 3.3.2 Number Declaration --
2757 -------------------------------
2759 -- NUMBER_DECLARATION ::=
2760 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2762 -- Although the syntax allows multiple identifiers in the list, the
2763 -- semantics is as though successive declarations were given with
2764 -- identical expressions. To simplify semantic processing, the parser
2765 -- represents a multiple declaration case as a sequence of single
2766 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2767 -- the original source form as described in the section on "Handling
2768 -- of Defining Identifier Lists".
2770 -- N_Number_Declaration
2771 -- Sloc points to first identifier
2772 -- Defining_Identifier (Node1)
2773 -- Expression (Node3)
2774 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2775 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2777 ----------------------------------
2778 -- 3.4 Derived Type Definition --
2779 ----------------------------------
2781 -- DERIVED_TYPE_DEFINITION ::=
2782 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2783 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2785 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2786 -- in Ada 83 mode
2788 -- Note: a record extension part is required if ABSTRACT is present
2790 -- N_Derived_Type_Definition
2791 -- Sloc points to NEW
2792 -- Abstract_Present (Flag4)
2793 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2794 -- Subtype_Indication (Node5)
2795 -- Record_Extension_Part (Node3) (set to Empty if not present)
2796 -- Limited_Present (Flag17)
2797 -- Task_Present (Flag5) set in task interfaces
2798 -- Protected_Present (Flag6) set in protected interfaces
2799 -- Synchronized_Present (Flag7) set in interfaces
2800 -- Interface_List (List2) (set to No_List if none)
2801 -- Interface_Present (Flag16) set in abstract interfaces
2803 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2804 -- Interface_List, and Interface_Present are used for abstract
2805 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2807 ---------------------------
2808 -- 3.5 Range Constraint --
2809 ---------------------------
2811 -- RANGE_CONSTRAINT ::= range RANGE
2813 -- N_Range_Constraint
2814 -- Sloc points to RANGE
2815 -- Range_Expression (Node4)
2817 ----------------
2818 -- 3.5 Range --
2819 ----------------
2821 -- RANGE ::=
2822 -- RANGE_ATTRIBUTE_REFERENCE
2823 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2825 -- Note: the case of a range given as a range attribute reference
2826 -- appears directly in the tree as an attribute reference.
2828 -- Note: the field name for a reference to a range is Range_Expression
2829 -- rather than Range, because range is a reserved keyword in Ada.
2831 -- Note: the reason that this node has expression fields is that a
2832 -- range can appear as an operand of a membership test. The Etype
2833 -- field is the type of the range (we do NOT construct an implicit
2834 -- subtype to represent the range exactly).
2836 -- N_Range
2837 -- Sloc points to ..
2838 -- Low_Bound (Node1)
2839 -- High_Bound (Node2)
2840 -- Includes_Infinities (Flag11)
2841 -- plus fields for expression
2843 -- Note: if the range appears in a context, such as a subtype
2844 -- declaration, where range checks are required on one or both of
2845 -- the expression fields, then type conversion nodes are inserted
2846 -- to represent the required checks.
2848 ----------------------------------------
2849 -- 3.5.1 Enumeration Type Definition --
2850 ----------------------------------------
2852 -- ENUMERATION_TYPE_DEFINITION ::=
2853 -- (ENUMERATION_LITERAL_SPECIFICATION
2854 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2856 -- Note: the Literals field in the node described below is null for
2857 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2858 -- which special processing handles these types as special cases.
2860 -- N_Enumeration_Type_Definition
2861 -- Sloc points to left parenthesis
2862 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2863 -- End_Label (Node4) (set to Empty if internally generated record)
2865 ----------------------------------------------
2866 -- 3.5.1 Enumeration Literal Specification --
2867 ----------------------------------------------
2869 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2870 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2872 ---------------------------------------
2873 -- 3.5.1 Defining Character Literal --
2874 ---------------------------------------
2876 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2878 -- A defining character literal is an entity, which has additional
2879 -- fields depending on the setting of the Ekind field. These
2880 -- additional fields are defined (and access subprograms declared)
2881 -- in package Einfo.
2883 -- Note: N_Defining_Character_Literal is an extended node whose fields
2884 -- are deliberate layed out to match the layout of fields in an ordinary
2885 -- N_Character_Literal node allowing for easy alteration of a character
2886 -- literal node into a defining character literal node. For details, see
2887 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2889 -- N_Defining_Character_Literal
2890 -- Sloc points to literal
2891 -- Chars (Name1) contains the Name_Id for the identifier
2892 -- Next_Entity (Node2-Sem)
2893 -- Scope (Node3-Sem)
2894 -- Etype (Node5-Sem)
2896 ------------------------------------
2897 -- 3.5.4 Integer Type Definition --
2898 ------------------------------------
2900 -- Note: there is an error in this rule in the latest version of the
2901 -- grammar, so we have retained the old rule pending clarification.
2903 -- INTEGER_TYPE_DEFINITION ::=
2904 -- SIGNED_INTEGER_TYPE_DEFINITION
2905 -- | MODULAR_TYPE_DEFINITION
2907 -------------------------------------------
2908 -- 3.5.4 Signed Integer Type Definition --
2909 -------------------------------------------
2911 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2912 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2914 -- Note: the Low_Bound and High_Bound fields are set to Empty
2915 -- for integer types defined in package Standard.
2917 -- N_Signed_Integer_Type_Definition
2918 -- Sloc points to RANGE
2919 -- Low_Bound (Node1)
2920 -- High_Bound (Node2)
2922 ------------------------------------
2923 -- 3.5.4 Modular Type Definition --
2924 ------------------------------------
2926 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2928 -- N_Modular_Type_Definition
2929 -- Sloc points to MOD
2930 -- Expression (Node3)
2932 ---------------------------------
2933 -- 3.5.6 Real Type Definition --
2934 ---------------------------------
2936 -- REAL_TYPE_DEFINITION ::=
2937 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2939 --------------------------------------
2940 -- 3.5.7 Floating Point Definition --
2941 --------------------------------------
2943 -- FLOATING_POINT_DEFINITION ::=
2944 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2946 -- Note: The Digits_Expression and Real_Range_Specifications fields
2947 -- are set to Empty for floating-point types declared in Standard.
2949 -- N_Floating_Point_Definition
2950 -- Sloc points to DIGITS
2951 -- Digits_Expression (Node2)
2952 -- Real_Range_Specification (Node4) (set to Empty if not present)
2954 -------------------------------------
2955 -- 3.5.7 Real Range Specification --
2956 -------------------------------------
2958 -- REAL_RANGE_SPECIFICATION ::=
2959 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2961 -- N_Real_Range_Specification
2962 -- Sloc points to RANGE
2963 -- Low_Bound (Node1)
2964 -- High_Bound (Node2)
2966 -----------------------------------
2967 -- 3.5.9 Fixed Point Definition --
2968 -----------------------------------
2970 -- FIXED_POINT_DEFINITION ::=
2971 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2973 --------------------------------------------
2974 -- 3.5.9 Ordinary Fixed Point Definition --
2975 --------------------------------------------
2977 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2978 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2980 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2982 -- N_Ordinary_Fixed_Point_Definition
2983 -- Sloc points to DELTA
2984 -- Delta_Expression (Node3)
2985 -- Real_Range_Specification (Node4)
2987 -------------------------------------------
2988 -- 3.5.9 Decimal Fixed Point Definition --
2989 -------------------------------------------
2991 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2992 -- delta static_EXPRESSION
2993 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2995 -- Note: decimal types are not permitted in Ada 83 mode
2997 -- N_Decimal_Fixed_Point_Definition
2998 -- Sloc points to DELTA
2999 -- Delta_Expression (Node3)
3000 -- Digits_Expression (Node2)
3001 -- Real_Range_Specification (Node4) (set to Empty if not present)
3003 ------------------------------
3004 -- 3.5.9 Digits Constraint --
3005 ------------------------------
3007 -- DIGITS_CONSTRAINT ::=
3008 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
3010 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3011 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
3013 -- N_Digits_Constraint
3014 -- Sloc points to DIGITS
3015 -- Digits_Expression (Node2)
3016 -- Range_Constraint (Node4) (set to Empty if not present)
3018 --------------------------------
3019 -- 3.6 Array Type Definition --
3020 --------------------------------
3022 -- ARRAY_TYPE_DEFINITION ::=
3023 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
3025 -----------------------------------------
3026 -- 3.6 Unconstrained Array Definition --
3027 -----------------------------------------
3029 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
3030 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
3031 -- COMPONENT_DEFINITION
3033 -- Note: dimensionality of array is indicated by number of entries in
3034 -- the Subtype_Marks list, which has one entry for each dimension.
3036 -- N_Unconstrained_Array_Definition
3037 -- Sloc points to ARRAY
3038 -- Subtype_Marks (List2)
3039 -- Component_Definition (Node4)
3041 -----------------------------------
3042 -- 3.6 Index Subtype Definition --
3043 -----------------------------------
3045 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
3047 -- There is no explicit node in the tree for an index subtype
3048 -- definition since the N_Unconstrained_Array_Definition node
3049 -- incorporates the type marks which appear in this context.
3051 ---------------------------------------
3052 -- 3.6 Constrained Array Definition --
3053 ---------------------------------------
3055 -- CONSTRAINED_ARRAY_DEFINITION ::=
3056 -- array (DISCRETE_SUBTYPE_DEFINITION
3057 -- {, DISCRETE_SUBTYPE_DEFINITION})
3058 -- of COMPONENT_DEFINITION
3060 -- Note: dimensionality of array is indicated by number of entries
3061 -- in the Discrete_Subtype_Definitions list, which has one entry
3062 -- for each dimension.
3064 -- N_Constrained_Array_Definition
3065 -- Sloc points to ARRAY
3066 -- Discrete_Subtype_Definitions (List2)
3067 -- Component_Definition (Node4)
3069 -- Note: although the language allows the full syntax for discrete
3070 -- subtype definitions (i.e. a discrete subtype indication or a range),
3071 -- in the generated tree, we always rewrite these as N_Range nodes.
3073 --------------------------------------
3074 -- 3.6 Discrete Subtype Definition --
3075 --------------------------------------
3077 -- DISCRETE_SUBTYPE_DEFINITION ::=
3078 -- discrete_SUBTYPE_INDICATION | RANGE
3080 -------------------------------
3081 -- 3.6 Component Definition --
3082 -------------------------------
3084 -- COMPONENT_DEFINITION ::=
3085 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
3087 -- Note: although the syntax does not permit a component definition to
3088 -- be an anonymous array (and the parser will diagnose such an attempt
3089 -- with an appropriate message), it is possible for anonymous arrays
3090 -- to appear as component definitions. The semantics and back end handle
3091 -- this case properly, and the expander in fact generates such cases.
3092 -- Access_Definition is an optional field that gives support to
3093 -- Ada 2005 (AI-230). The parser generates nodes that have either the
3094 -- Subtype_Indication field or else the Access_Definition field.
3096 -- N_Component_Definition
3097 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
3098 -- Aliased_Present (Flag4)
3099 -- Null_Exclusion_Present (Flag11)
3100 -- Subtype_Indication (Node5) (set to Empty if not present)
3101 -- Access_Definition (Node3) (set to Empty if not present)
3103 -----------------------------
3104 -- 3.6.1 Index Constraint --
3105 -----------------------------
3107 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3109 -- It is not in general possible to distinguish between discriminant
3110 -- constraints and index constraints at parse time, since a simple
3111 -- name could be either the subtype mark of a discrete range, or an
3112 -- expression in a discriminant association with no name. Either
3113 -- entry appears simply as the name, and the semantic parse must
3114 -- distinguish between the two cases. Thus we use a common tree
3115 -- node format for both of these constraint types.
3117 -- See Discriminant_Constraint for format of node
3119 ---------------------------
3120 -- 3.6.1 Discrete Range --
3121 ---------------------------
3123 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3125 ----------------------------
3126 -- 3.7 Discriminant Part --
3127 ----------------------------
3129 -- DISCRIMINANT_PART ::=
3130 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3132 ------------------------------------
3133 -- 3.7 Unknown Discriminant Part --
3134 ------------------------------------
3136 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
3138 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
3140 -- There is no explicit node in the tree for an unknown discriminant
3141 -- part. Instead the Unknown_Discriminants_Present flag is set in the
3142 -- parent node.
3144 ----------------------------------
3145 -- 3.7 Known Discriminant Part --
3146 ----------------------------------
3148 -- KNOWN_DISCRIMINANT_PART ::=
3149 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3151 -------------------------------------
3152 -- 3.7 Discriminant Specification --
3153 -------------------------------------
3155 -- DISCRIMINANT_SPECIFICATION ::=
3156 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3157 -- [:= DEFAULT_EXPRESSION]
3158 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3159 -- [:= DEFAULT_EXPRESSION]
3161 -- Although the syntax allows multiple identifiers in the list, the
3162 -- semantics is as though successive specifications were given with
3163 -- identical type definition and expression components. To simplify
3164 -- semantic processing, the parser represents a multiple declaration
3165 -- case as a sequence of single specifications, using the More_Ids and
3166 -- Prev_Ids flags to preserve the original source form as described
3167 -- in the section on "Handling of Defining Identifier Lists".
3169 -- N_Discriminant_Specification
3170 -- Sloc points to first identifier
3171 -- Defining_Identifier (Node1)
3172 -- Null_Exclusion_Present (Flag11)
3173 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3174 -- Expression (Node3) (set to Empty if no default expression)
3175 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3176 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3178 -----------------------------
3179 -- 3.7 Default Expression --
3180 -----------------------------
3182 -- DEFAULT_EXPRESSION ::= EXPRESSION
3184 ------------------------------------
3185 -- 3.7.1 Discriminant Constraint --
3186 ------------------------------------
3188 -- DISCRIMINANT_CONSTRAINT ::=
3189 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3191 -- It is not in general possible to distinguish between discriminant
3192 -- constraints and index constraints at parse time, since a simple
3193 -- name could be either the subtype mark of a discrete range, or an
3194 -- expression in a discriminant association with no name. Either
3195 -- entry appears simply as the name, and the semantic parse must
3196 -- distinguish between the two cases. Thus we use a common tree
3197 -- node format for both of these constraint types.
3199 -- N_Index_Or_Discriminant_Constraint
3200 -- Sloc points to left paren
3201 -- Constraints (List1) points to list of discrete ranges or
3202 -- discriminant associations
3204 -------------------------------------
3205 -- 3.7.1 Discriminant Association --
3206 -------------------------------------
3208 -- DISCRIMINANT_ASSOCIATION ::=
3209 -- [discriminant_SELECTOR_NAME
3210 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3212 -- Note: a discriminant association that has no selector name list
3213 -- appears directly as an expression in the tree.
3215 -- N_Discriminant_Association
3216 -- Sloc points to first token of discriminant association
3217 -- Selector_Names (List1) (always non-empty, since if no selector
3218 -- names are present, this node is not used, see comment above)
3219 -- Expression (Node3)
3221 ---------------------------------
3222 -- 3.8 Record Type Definition --
3223 ---------------------------------
3225 -- RECORD_TYPE_DEFINITION ::=
3226 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3228 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3230 -- There is no explicit node in the tree for a record type definition.
3231 -- Instead the flags for Tagged_Present and Limited_Present appear in
3232 -- the N_Record_Definition node for a record definition appearing in
3233 -- the context of a record type definition.
3235 ----------------------------
3236 -- 3.8 Record Definition --
3237 ----------------------------
3239 -- RECORD_DEFINITION ::=
3240 -- record
3241 -- COMPONENT_LIST
3242 -- end record
3243 -- | null record
3245 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
3246 -- flags appear only for a record definition appearing in a record
3247 -- type definition.
3249 -- Note: the NULL RECORD case is not permitted in Ada 83
3251 -- N_Record_Definition
3252 -- Sloc points to RECORD or NULL
3253 -- End_Label (Node4) (set to Empty if internally generated record)
3254 -- Abstract_Present (Flag4)
3255 -- Tagged_Present (Flag15)
3256 -- Limited_Present (Flag17)
3257 -- Component_List (Node1) empty in null record case
3258 -- Null_Present (Flag13) set in null record case
3259 -- Task_Present (Flag5) set in task interfaces
3260 -- Protected_Present (Flag6) set in protected interfaces
3261 -- Synchronized_Present (Flag7) set in interfaces
3262 -- Interface_Present (Flag16) set in abstract interfaces
3263 -- Interface_List (List2) (set to No_List if none)
3265 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3266 -- Interface_List and Interface_Present are used for abstract
3267 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3269 -------------------------
3270 -- 3.8 Component List --
3271 -------------------------
3273 -- COMPONENT_LIST ::=
3274 -- COMPONENT_ITEM {COMPONENT_ITEM}
3275 -- | {COMPONENT_ITEM} VARIANT_PART
3276 -- | null;
3278 -- N_Component_List
3279 -- Sloc points to first token of component list
3280 -- Component_Items (List3)
3281 -- Variant_Part (Node4) (set to Empty if no variant part)
3282 -- Null_Present (Flag13)
3284 -------------------------
3285 -- 3.8 Component Item --
3286 -------------------------
3288 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3290 -- Note: A component item can also be a pragma, and in the tree
3291 -- that is obtained after semantic processing, a component item
3292 -- can be an N_Null node resulting from a non-recognized pragma.
3294 --------------------------------
3295 -- 3.8 Component Declaration --
3296 --------------------------------
3298 -- COMPONENT_DECLARATION ::=
3299 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3300 -- [:= DEFAULT_EXPRESSION]
3301 -- [ASPECT_SPECIFICATIONS];
3303 -- Note: although the syntax does not permit a component definition to
3304 -- be an anonymous array (and the parser will diagnose such an attempt
3305 -- with an appropriate message), it is possible for anonymous arrays
3306 -- to appear as component definitions. The semantics and back end handle
3307 -- this case properly, and the expander in fact generates such cases.
3309 -- Although the syntax allows multiple identifiers in the list, the
3310 -- semantics is as though successive declarations were given with the
3311 -- same component definition and expression components. To simplify
3312 -- semantic processing, the parser represents a multiple declaration
3313 -- case as a sequence of single declarations, using the More_Ids and
3314 -- Prev_Ids flags to preserve the original source form as described
3315 -- in the section on "Handling of Defining Identifier Lists".
3317 -- N_Component_Declaration
3318 -- Sloc points to first identifier
3319 -- Defining_Identifier (Node1)
3320 -- Component_Definition (Node4)
3321 -- Expression (Node3) (set to Empty if no default expression)
3322 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3323 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3325 -------------------------
3326 -- 3.8.1 Variant Part --
3327 -------------------------
3329 -- VARIANT_PART ::=
3330 -- case discriminant_DIRECT_NAME is
3331 -- VARIANT {VARIANT}
3332 -- end case;
3334 -- Note: the variants list can contain pragmas as well as variants.
3335 -- In a properly formed program there is at least one variant.
3337 -- N_Variant_Part
3338 -- Sloc points to CASE
3339 -- Name (Node2)
3340 -- Variants (List1)
3342 --------------------
3343 -- 3.8.1 Variant --
3344 --------------------
3346 -- VARIANT ::=
3347 -- when DISCRETE_CHOICE_LIST =>
3348 -- COMPONENT_LIST
3350 -- N_Variant
3351 -- Sloc points to WHEN
3352 -- Discrete_Choices (List4)
3353 -- Component_List (Node1)
3354 -- Enclosing_Variant (Node2-Sem)
3355 -- Present_Expr (Uint3-Sem)
3356 -- Dcheck_Function (Node5-Sem)
3357 -- Has_SP_Choice (Flag15-Sem)
3359 -- Note: in the list of Discrete_Choices, the tree passed to the back
3360 -- end does not have choice entries corresponding to names of statically
3361 -- predicated subtypes. Such entries are always expanded out to the list
3362 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3363 -- mode also has this expansion, but done with a proper Rewrite call on
3364 -- the N_Variant node so that ASIS can properly retrieve the original.
3366 ---------------------------------
3367 -- 3.8.1 Discrete Choice List --
3368 ---------------------------------
3370 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3372 ----------------------------
3373 -- 3.8.1 Discrete Choice --
3374 ----------------------------
3376 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3378 -- Note: in Ada 83 mode, the expression must be a simple expression
3380 -- The only choice that appears explicitly is the OTHERS choice, as
3381 -- defined here. Other cases of discrete choice (expression and
3382 -- discrete range) appear directly. This production is also used
3383 -- for the OTHERS possibility of an exception choice.
3385 -- Note: in accordance with the syntax, the parser does not check that
3386 -- OTHERS appears at the end on its own in a choice list context. This
3387 -- is a semantic check.
3389 -- N_Others_Choice
3390 -- Sloc points to OTHERS
3391 -- Others_Discrete_Choices (List1-Sem)
3392 -- All_Others (Flag11-Sem)
3394 ----------------------------------
3395 -- 3.9.1 Record Extension Part --
3396 ----------------------------------
3398 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3400 -- Note: record extension parts are not permitted in Ada 83 mode
3402 --------------------------------------
3403 -- 3.9.4 Interface Type Definition --
3404 --------------------------------------
3406 -- INTERFACE_TYPE_DEFINITION ::=
3407 -- [limited | task | protected | synchronized]
3408 -- interface [interface_list]
3410 -- Note: Interfaces are implemented with N_Record_Definition and
3411 -- N_Derived_Type_Definition nodes because most of the support
3412 -- for the analysis of abstract types has been reused to
3413 -- analyze abstract interfaces.
3415 ----------------------------------
3416 -- 3.10 Access Type Definition --
3417 ----------------------------------
3419 -- ACCESS_TYPE_DEFINITION ::=
3420 -- ACCESS_TO_OBJECT_DEFINITION
3421 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3423 --------------------------
3424 -- 3.10 Null Exclusion --
3425 --------------------------
3427 -- NULL_EXCLUSION ::= not null
3429 ---------------------------------------
3430 -- 3.10 Access To Object Definition --
3431 ---------------------------------------
3433 -- ACCESS_TO_OBJECT_DEFINITION ::=
3434 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3435 -- SUBTYPE_INDICATION
3437 -- N_Access_To_Object_Definition
3438 -- Sloc points to ACCESS
3439 -- All_Present (Flag15)
3440 -- Null_Exclusion_Present (Flag11)
3441 -- Null_Excluding_Subtype (Flag16)
3442 -- Subtype_Indication (Node5)
3443 -- Constant_Present (Flag17)
3445 -----------------------------------
3446 -- 3.10 General Access Modifier --
3447 -----------------------------------
3449 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3451 -- Note: general access modifiers are not permitted in Ada 83 mode
3453 -- There is no explicit node in the tree for general access modifier.
3454 -- Instead the All_Present or Constant_Present flags are set in the
3455 -- parent node.
3457 -------------------------------------------
3458 -- 3.10 Access To Subprogram Definition --
3459 -------------------------------------------
3461 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3462 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3463 -- | [NULL_EXCLUSION] access [protected] function
3464 -- PARAMETER_AND_RESULT_PROFILE
3466 -- Note: access to subprograms are not permitted in Ada 83 mode
3468 -- N_Access_Function_Definition
3469 -- Sloc points to ACCESS
3470 -- Null_Exclusion_Present (Flag11)
3471 -- Null_Exclusion_In_Return_Present (Flag14)
3472 -- Protected_Present (Flag6)
3473 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3474 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3476 -- N_Access_Procedure_Definition
3477 -- Sloc points to ACCESS
3478 -- Null_Exclusion_Present (Flag11)
3479 -- Protected_Present (Flag6)
3480 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3482 -----------------------------
3483 -- 3.10 Access Definition --
3484 -----------------------------
3486 -- ACCESS_DEFINITION ::=
3487 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3488 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3490 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3492 -- N_Access_Definition
3493 -- Sloc points to ACCESS
3494 -- Null_Exclusion_Present (Flag11)
3495 -- All_Present (Flag15)
3496 -- Constant_Present (Flag17)
3497 -- Subtype_Mark (Node4)
3498 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3500 -----------------------------------------
3501 -- 3.10.1 Incomplete Type Declaration --
3502 -----------------------------------------
3504 -- INCOMPLETE_TYPE_DECLARATION ::=
3505 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3507 -- N_Incomplete_Type_Declaration
3508 -- Sloc points to TYPE
3509 -- Defining_Identifier (Node1)
3510 -- Discriminant_Specifications (List4) (set to No_List if no
3511 -- discriminant part, or if the discriminant part is an
3512 -- unknown discriminant part)
3513 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3514 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3515 -- Tagged_Present (Flag15)
3517 ----------------------------
3518 -- 3.11 Declarative Part --
3519 ----------------------------
3521 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3523 -- Note: although the parser enforces the syntactic requirement that
3524 -- a declarative part can contain only declarations, the semantic
3525 -- processing may add statements to the list of actions in a
3526 -- declarative part, so the code generator should be prepared
3527 -- to accept a statement in this position.
3529 ----------------------------
3530 -- 3.11 Declarative Item --
3531 ----------------------------
3533 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3535 ----------------------------------
3536 -- 3.11 Basic Declarative Item --
3537 ----------------------------------
3539 -- BASIC_DECLARATIVE_ITEM ::=
3540 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3542 ----------------
3543 -- 3.11 Body --
3544 ----------------
3546 -- BODY ::= PROPER_BODY | BODY_STUB
3548 -----------------------
3549 -- 3.11 Proper Body --
3550 -----------------------
3552 -- PROPER_BODY ::=
3553 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3555 ---------------
3556 -- 4.1 Name --
3557 ---------------
3559 -- NAME ::=
3560 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3561 -- | INDEXED_COMPONENT | SLICE
3562 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3563 -- | TYPE_CONVERSION | FUNCTION_CALL
3564 -- | CHARACTER_LITERAL
3566 ----------------------
3567 -- 4.1 Direct Name --
3568 ----------------------
3570 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3572 -----------------
3573 -- 4.1 Prefix --
3574 -----------------
3576 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3578 -------------------------------
3579 -- 4.1 Explicit Dereference --
3580 -------------------------------
3582 -- EXPLICIT_DEREFERENCE ::= NAME . all
3584 -- N_Explicit_Dereference
3585 -- Sloc points to ALL
3586 -- Prefix (Node3)
3587 -- Actual_Designated_Subtype (Node4-Sem)
3588 -- Atomic_Sync_Required (Flag14-Sem)
3589 -- Has_Dereference_Action (Flag13-Sem)
3590 -- plus fields for expression
3592 -------------------------------
3593 -- 4.1 Implicit Dereference --
3594 -------------------------------
3596 -- IMPLICIT_DEREFERENCE ::= NAME
3598 ------------------------------
3599 -- 4.1.1 Indexed Component --
3600 ------------------------------
3602 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3604 -- Note: the parser may generate this node in some situations where it
3605 -- should be a function call. The semantic pass must correct this
3606 -- misidentification (which is inevitable at the parser level).
3608 -- N_Indexed_Component
3609 -- Sloc contains a copy of the Sloc value of the Prefix
3610 -- Prefix (Node3)
3611 -- Expressions (List1)
3612 -- Generalized_Indexing (Node4-Sem)
3613 -- Atomic_Sync_Required (Flag14-Sem)
3614 -- plus fields for expression
3616 -- Note: if any of the subscripts requires a range check, then the
3617 -- Do_Range_Check flag is set on the corresponding expression, with
3618 -- the index type being determined from the type of the Prefix, which
3619 -- references the array being indexed.
3621 -- Note: in a fully analyzed and expanded indexed component node, and
3622 -- hence in any such node that gigi sees, if the prefix is an access
3623 -- type, then an explicit dereference operation has been inserted.
3625 ------------------
3626 -- 4.1.2 Slice --
3627 ------------------
3629 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3631 -- Note: an implicit subtype is created to describe the resulting
3632 -- type, so that the bounds of this type are the bounds of the slice.
3634 -- N_Slice
3635 -- Sloc points to first token of prefix
3636 -- Prefix (Node3)
3637 -- Discrete_Range (Node4)
3638 -- plus fields for expression
3640 -------------------------------
3641 -- 4.1.3 Selected Component --
3642 -------------------------------
3644 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3646 -- Note: selected components that are semantically expanded names get
3647 -- changed during semantic processing into the separate N_Expanded_Name
3648 -- node. See description of this node in the section on semantic nodes.
3650 -- N_Selected_Component
3651 -- Sloc points to period
3652 -- Prefix (Node3)
3653 -- Selector_Name (Node2)
3654 -- Associated_Node (Node4-Sem)
3655 -- Do_Discriminant_Check (Flag1-Sem)
3656 -- Is_In_Discriminant_Check (Flag11-Sem)
3657 -- Is_Prefixed_Call (Flag17-Sem)
3658 -- Atomic_Sync_Required (Flag14-Sem)
3659 -- plus fields for expression
3661 --------------------------
3662 -- 4.1.3 Selector Name --
3663 --------------------------
3665 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3667 --------------------------------
3668 -- 4.1.4 Attribute Reference --
3669 --------------------------------
3671 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3673 -- Note: the syntax is quite ambiguous at this point. Consider:
3675 -- A'Length (X) X is part of the attribute designator
3676 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3677 -- A'Class (X) X is the expression of a type conversion
3679 -- It would be possible for the parser to distinguish these cases
3680 -- by looking at the attribute identifier. However, that would mean
3681 -- more work in introducing new implementation defined attributes,
3682 -- and also it would mean that special processing for attributes
3683 -- would be scattered around, instead of being centralized in the
3684 -- semantic routine that handles an N_Attribute_Reference node.
3685 -- Consequently, the parser in all the above cases stores the
3686 -- expression (X in these examples) as a single element list in
3687 -- in the Expressions field of the N_Attribute_Reference node.
3689 -- Similarly, for attributes like Max which take two arguments,
3690 -- we store the two arguments as a two element list in the
3691 -- Expressions field. Of course it is clear at parse time that
3692 -- this case is really a function call with an attribute as the
3693 -- prefix, but it turns out to be convenient to handle the two
3694 -- argument case in a similar manner to the one argument case,
3695 -- and indeed in general the parser will accept any number of
3696 -- expressions in this position and store them as a list in the
3697 -- attribute reference node. This allows for future addition of
3698 -- attributes that take more than two arguments.
3700 -- Note: named associates are not permitted in function calls where
3701 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3702 -- to skip the normal subprogram argument processing.
3704 -- Note: for the attributes whose designators are technically keywords,
3705 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3706 -- the corresponding name, even though no identifier is involved.
3708 -- Note: the generated code may contain stream attributes applied to
3709 -- limited types for which no stream routines exist officially. In such
3710 -- case, the result is to use the stream attribute for the underlying
3711 -- full type, or in the case of a protected type, the components
3712 -- (including any discriminants) are merely streamed in order.
3714 -- See Exp_Attr for a complete description of which attributes are
3715 -- passed onto Gigi, and which are handled entirely by the front end.
3717 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3718 -- a non-standard enumeration type or a nonzero/zero semantics
3719 -- boolean type, so the value is simply the stored representation.
3721 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3722 -- references a subprogram that is a renaming, then the front end must
3723 -- rewrite the attribute to refer directly to the renamed entity.
3725 -- Note: syntactically the prefix of an attribute reference must be a
3726 -- name, and this (somewhat artificial) requirement is enforced by the
3727 -- parser. However, for many attributes, such as 'Valid, it is quite
3728 -- reasonable to apply the attribute to any value, and hence to any
3729 -- expression. Internally in the tree, the prefix is an expression which
3730 -- does not have to be a name, and this is handled fine by the semantic
3731 -- analysis and expansion, and back ends. This arises for the case of
3732 -- attribute references built by the expander (e.g. 'Valid for the case
3733 -- of an implicit validity check).
3735 -- Note: In generated code, the Address and Unrestricted_Access
3736 -- attributes can be applied to any expression, and the meaning is
3737 -- to create an object containing the value (the object is in the
3738 -- current stack frame), and pass the address of this value. If the
3739 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3740 -- is taken must be on a byte (storage unit) boundary, and if it is
3741 -- not (or may not be), then the generated code must create a copy
3742 -- that is byte aligned, and pass the address of this copy.
3744 -- N_Attribute_Reference
3745 -- Sloc points to apostrophe
3746 -- Prefix (Node3) (general expression, see note above)
3747 -- Attribute_Name (Name2) identifier name from attribute designator
3748 -- Expressions (List1) (set to No_List if no associated expressions)
3749 -- Entity (Node4-Sem) used if the attribute yields a type
3750 -- Associated_Node (Node4-Sem)
3751 -- Do_Overflow_Check (Flag17-Sem)
3752 -- Header_Size_Added (Flag11-Sem)
3753 -- Must_Be_Byte_Aligned (Flag14-Sem)
3754 -- Non_Aliased_Prefix (Flag18-Sem)
3755 -- Redundant_Use (Flag13-Sem)
3757 -- plus fields for expression
3759 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
3760 -- into equivalent if expressions, properly taking care of side effects.
3762 ---------------------------------
3763 -- 4.1.4 Attribute Designator --
3764 ---------------------------------
3766 -- ATTRIBUTE_DESIGNATOR ::=
3767 -- IDENTIFIER [(static_EXPRESSION)]
3768 -- | access | delta | digits
3770 -- There is no explicit node in the tree for an attribute designator.
3771 -- Instead the Attribute_Name and Expressions fields of the parent
3772 -- node (N_Attribute_Reference node) hold the information.
3774 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3775 -- designator, then they are treated as identifiers internally
3776 -- rather than the keywords of the same name.
3778 --------------------------------------
3779 -- 4.1.4 Range Attribute Reference --
3780 --------------------------------------
3782 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3784 -- A range attribute reference is represented in the tree using the
3785 -- normal N_Attribute_Reference node.
3787 ---------------------------------------
3788 -- 4.1.4 Range Attribute Designator --
3789 ---------------------------------------
3791 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3793 -- A range attribute designator is represented in the tree using the
3794 -- normal N_Attribute_Reference node.
3796 --------------------
3797 -- 4.3 Aggregate --
3798 --------------------
3800 -- AGGREGATE ::=
3801 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3803 -----------------------------
3804 -- 4.3.1 Record Aggregate --
3805 -----------------------------
3807 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3809 -- N_Aggregate
3810 -- Sloc points to left parenthesis
3811 -- Expressions (List1) (set to No_List if none or null record case)
3812 -- Component_Associations (List2) (set to No_List if none)
3813 -- Null_Record_Present (Flag17)
3814 -- Aggregate_Bounds (Node3-Sem)
3815 -- Associated_Node (Node4-Sem)
3816 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3817 -- Expansion_Delayed (Flag11-Sem)
3818 -- Has_Self_Reference (Flag13-Sem)
3819 -- plus fields for expression
3821 -- Note: this structure is used for both record and array aggregates
3822 -- since the two cases are not separable by the parser. The parser
3823 -- makes no attempt to enforce consistency here, so it is up to the
3824 -- semantic phase to make sure that the aggregate is consistent (i.e.
3825 -- that it is not a "half-and-half" case that mixes record and array
3826 -- syntax. In particular, for a record aggregate, the expressions
3827 -- field will be set if there are positional associations.
3829 -- Note: N_Aggregate is not used for all aggregates; in particular,
3830 -- there is a separate node kind for extension aggregates.
3832 -- Note: gigi/gcc can handle array aggregates correctly providing that
3833 -- they are entirely positional, and the array subtype involved has a
3834 -- known at compile time length and is not bit packed, or a convention
3835 -- Fortran array with more than one dimension. If these conditions
3836 -- are not met, then the front end must translate the aggregate into
3837 -- an appropriate set of assignments into a temporary.
3839 -- Note: for the record aggregate case, gigi/gcc can handle most cases
3840 -- of record aggregates, including those for packed, and rep-claused
3841 -- records, and also variant records, providing that there are no
3842 -- variable length fields whose size is not known at compile time,
3843 -- and providing that the aggregate is presented in fully named form.
3845 -- The other situation in which array aggregates and record aggregates
3846 -- cannot be passed to the back end is if assignment to one or more
3847 -- components itself needs expansion, e.g. in the case of an assignment
3848 -- of an object of a controlled type. In such cases, the front end
3849 -- must expand the aggregate to a series of assignments, and apply
3850 -- the required expansion to the individual assignment statements.
3852 ----------------------------------------------
3853 -- 4.3.1 Record Component Association List --
3854 ----------------------------------------------
3856 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3857 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3858 -- | null record
3860 -- There is no explicit node in the tree for a record component
3861 -- association list. Instead the Null_Record_Present flag is set in
3862 -- the parent node for the NULL RECORD case.
3864 ------------------------------------------------------
3865 -- 4.3.1 Record Component Association (also 4.3.3) --
3866 ------------------------------------------------------
3868 -- RECORD_COMPONENT_ASSOCIATION ::=
3869 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3871 -- N_Component_Association
3872 -- Sloc points to first selector name
3873 -- Choices (List1)
3874 -- Loop_Actions (List2-Sem)
3875 -- Expression (Node3) (empty if Box_Present)
3876 -- Box_Present (Flag15)
3877 -- Inherited_Discriminant (Flag13)
3879 -- Note: this structure is used for both record component associations
3880 -- and array component associations, since the two cases aren't always
3881 -- separable by the parser. The choices list may represent either a
3882 -- list of selector names in the record aggregate case, or a list of
3883 -- discrete choices in the array aggregate case or an N_Others_Choice
3884 -- node (which appears as a singleton list). Box_Present gives support
3885 -- to Ada 2005 (AI-287).
3887 ----------------------------------
3888 -- 4.3.1 Component Choice List --
3889 ----------------------------------
3891 -- COMPONENT_CHOICE_LIST ::=
3892 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3893 -- | others
3895 -- The entries of a component choice list appear in the Choices list of
3896 -- the associated N_Component_Association, as either selector names, or
3897 -- as an N_Others_Choice node.
3899 --------------------------------
3900 -- 4.3.2 Extension Aggregate --
3901 --------------------------------
3903 -- EXTENSION_AGGREGATE ::=
3904 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3906 -- Note: extension aggregates are not permitted in Ada 83 mode
3908 -- N_Extension_Aggregate
3909 -- Sloc points to left parenthesis
3910 -- Ancestor_Part (Node3)
3911 -- Associated_Node (Node4-Sem)
3912 -- Expressions (List1) (set to No_List if none or null record case)
3913 -- Component_Associations (List2) (set to No_List if none)
3914 -- Null_Record_Present (Flag17)
3915 -- Expansion_Delayed (Flag11-Sem)
3916 -- Has_Self_Reference (Flag13-Sem)
3917 -- plus fields for expression
3919 --------------------------
3920 -- 4.3.2 Ancestor Part --
3921 --------------------------
3923 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3925 ----------------------------
3926 -- 4.3.3 Array Aggregate --
3927 ----------------------------
3929 -- ARRAY_AGGREGATE ::=
3930 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3932 ---------------------------------------
3933 -- 4.3.3 Positional Array Aggregate --
3934 ---------------------------------------
3936 -- POSITIONAL_ARRAY_AGGREGATE ::=
3937 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3938 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3940 -- See Record_Aggregate (4.3.1) for node structure
3942 ----------------------------------
3943 -- 4.3.3 Named Array Aggregate --
3944 ----------------------------------
3946 -- NAMED_ARRAY_AGGREGATE ::=
3947 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3949 -- See Record_Aggregate (4.3.1) for node structure
3951 ----------------------------------------
3952 -- 4.3.3 Array Component Association --
3953 ----------------------------------------
3955 -- ARRAY_COMPONENT_ASSOCIATION ::=
3956 -- DISCRETE_CHOICE_LIST => EXPRESSION
3958 -- See Record_Component_Association (4.3.1) for node structure
3960 --------------------------------------------------
3961 -- 4.4 Expression/Relation/Term/Factor/Primary --
3962 --------------------------------------------------
3964 -- EXPRESSION ::=
3965 -- RELATION {LOGICAL_OPERATOR RELATION}
3967 -- CHOICE_EXPRESSION ::=
3968 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
3970 -- CHOICE_RELATION ::=
3971 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3973 -- RELATION ::=
3974 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3975 -- | RAISE_EXPRESSION
3977 -- MEMBERSHIP_CHOICE_LIST ::=
3978 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3980 -- MEMBERSHIP_CHOICE ::=
3981 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3983 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
3985 -- SIMPLE_EXPRESSION ::=
3986 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3988 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3990 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3992 -- No nodes are generated for any of these constructs. Instead, the
3993 -- node for the operator appears directly. When we refer to an
3994 -- expression in this description, we mean any of the possible
3995 -- constituent components of an expression (e.g. identifier is
3996 -- an example of an expression).
3998 -- Note: the above syntax is that Ada 2012 syntax which restricts
3999 -- choice relations to simple expressions to avoid ambiguities in
4000 -- some contexts with set membership notation. It has been decided
4001 -- that in retrospect, the Ada 95 change allowing general expressions
4002 -- in this context was a mistake, so we have reverted to the above
4003 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
4004 -- expressions was there in Ada 83 from the start).
4006 ------------------
4007 -- 4.4 Primary --
4008 ------------------
4010 -- PRIMARY ::=
4011 -- NUMERIC_LITERAL | null
4012 -- | STRING_LITERAL | AGGREGATE
4013 -- | NAME | QUALIFIED_EXPRESSION
4014 -- | ALLOCATOR | (EXPRESSION)
4016 -- Usually there is no explicit node in the tree for primary. Instead
4017 -- the constituent (e.g. AGGREGATE) appears directly. There are two
4018 -- exceptions. First, there is an explicit node for a null primary.
4020 -- N_Null
4021 -- Sloc points to NULL
4022 -- plus fields for expression
4024 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
4025 -- that the parser keep track of which subexpressions are enclosed
4026 -- in parentheses, and how many levels of parentheses are used. This
4027 -- information is required for optimization purposes, and also for
4028 -- some semantic checks (e.g. (((1))) in a procedure spec does not
4029 -- conform with ((((1)))) in the body).
4031 -- The parentheses are recorded by keeping a Paren_Count field in every
4032 -- subexpression node (it is actually present in all nodes, but only
4033 -- used in subexpression nodes). This count records the number of
4034 -- levels of parentheses. If the number of levels in the source exceeds
4035 -- the maximum accommodated by this count, then the count is simply left
4036 -- at the maximum value. This means that there are some pathological
4037 -- cases of failure to detect conformance failures (e.g. an expression
4038 -- with 500 levels of parens will conform with one with 501 levels),
4039 -- but we do not need to lose sleep over this.
4041 -- Historical note: in versions of GNAT prior to 1.75, there was a node
4042 -- type N_Parenthesized_Expression used to accurately record unlimited
4043 -- numbers of levels of parentheses. However, it turned out to be a
4044 -- real nuisance to have to take into account the possible presence of
4045 -- this node during semantic analysis, since basically parentheses have
4046 -- zero relevance to semantic analysis.
4048 -- Note: the level of parentheses always present in things like
4049 -- aggregates does not count, only the parentheses in the primary
4050 -- (EXPRESSION) affect the setting of the Paren_Count field.
4052 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
4053 -- treated as though it were Empty) if No_Initialization is set True.
4055 --------------------------------------
4056 -- 4.5 Short Circuit Control Forms --
4057 --------------------------------------
4059 -- EXPRESSION ::=
4060 -- RELATION {and then RELATION} | RELATION {or else RELATION}
4062 -- Gigi restriction: For both these control forms, the operand and
4063 -- result types are always Standard.Boolean. The expander inserts the
4064 -- required conversion operations where needed to ensure this is the
4065 -- case.
4067 -- N_And_Then
4068 -- Sloc points to AND of AND THEN
4069 -- Left_Opnd (Node2)
4070 -- Right_Opnd (Node3)
4071 -- Actions (List1-Sem)
4072 -- plus fields for expression
4074 -- N_Or_Else
4075 -- Sloc points to OR of OR ELSE
4076 -- Left_Opnd (Node2)
4077 -- Right_Opnd (Node3)
4078 -- Actions (List1-Sem)
4079 -- plus fields for expression
4081 -- Note: The Actions field is used to hold actions associated with
4082 -- the right hand operand. These have to be treated specially since
4083 -- they are not unconditionally executed. See Insert_Actions for a
4084 -- more detailed description of how these actions are handled.
4086 ---------------------------
4087 -- 4.5 Membership Tests --
4088 ---------------------------
4090 -- RELATION ::=
4091 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4093 -- MEMBERSHIP_CHOICE_LIST ::=
4094 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4096 -- MEMBERSHIP_CHOICE ::=
4097 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4099 -- Note: although the grammar above allows only a range or a subtype
4100 -- mark, the parser in fact will accept any simple expression in place
4101 -- of a subtype mark. This means that the semantic analyzer must be able
4102 -- to deal with, and diagnose a simple expression other than a name for
4103 -- the right operand. This simplifies error recovery in the parser.
4105 -- The Alternatives field below is present only if there is more than
4106 -- one Membership_Choice present (which is legitimate only in Ada 2012
4107 -- mode) in which case Right_Opnd is Empty, and Alternatives contains
4108 -- the list of choices. In the tree passed to the back end, Alternatives
4109 -- is always No_List, and Right_Opnd is set (i.e. the expansion circuit
4110 -- expands out the complex set membership case using simple membership
4111 -- and equality operations).
4113 -- Should we rename Alternatives here to Membership_Choices ???
4115 -- N_In
4116 -- Sloc points to IN
4117 -- Left_Opnd (Node2)
4118 -- Right_Opnd (Node3)
4119 -- Alternatives (List4) (set to No_List if only one set alternative)
4120 -- No_Minimize_Eliminate (Flag17)
4121 -- plus fields for expression
4123 -- N_Not_In
4124 -- Sloc points to NOT of NOT IN
4125 -- Left_Opnd (Node2)
4126 -- Right_Opnd (Node3)
4127 -- Alternatives (List4) (set to No_List if only one set alternative)
4128 -- No_Minimize_Eliminate (Flag17)
4129 -- plus fields for expression
4131 --------------------
4132 -- 4.5 Operators --
4133 --------------------
4135 -- LOGICAL_OPERATOR ::= and | or | xor
4137 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
4139 -- BINARY_ADDING_OPERATOR ::= + | - | &
4141 -- UNARY_ADDING_OPERATOR ::= + | -
4143 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
4145 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
4147 -- Sprint syntax if Treat_Fixed_As_Integer is set:
4149 -- x #* y
4150 -- x #/ y
4151 -- x #mod y
4152 -- x #rem y
4154 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
4155 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
4156 -- All handling of smalls for multiplication and division is handled
4157 -- by the front end (mod and rem result only from expansion). Gigi
4158 -- thus never needs to worry about small values (for other operators
4159 -- operating on fixed-point, e.g. addition, the small value does not
4160 -- have any semantic effect anyway, these are always integer operations.
4162 -- Gigi restriction: For all operators taking Boolean operands, the
4163 -- type is always Standard.Boolean. The expander inserts the required
4164 -- conversion operations where needed to ensure this is the case.
4166 -- N_Op_And
4167 -- Sloc points to AND
4168 -- Do_Length_Check (Flag4-Sem)
4169 -- plus fields for binary operator
4170 -- plus fields for expression
4172 -- N_Op_Or
4173 -- Sloc points to OR
4174 -- Do_Length_Check (Flag4-Sem)
4175 -- plus fields for binary operator
4176 -- plus fields for expression
4178 -- N_Op_Xor
4179 -- Sloc points to XOR
4180 -- Do_Length_Check (Flag4-Sem)
4181 -- plus fields for binary operator
4182 -- plus fields for expression
4184 -- N_Op_Eq
4185 -- Sloc points to =
4186 -- plus fields for binary operator
4187 -- plus fields for expression
4189 -- N_Op_Ne
4190 -- Sloc points to /=
4191 -- plus fields for binary operator
4192 -- plus fields for expression
4194 -- N_Op_Lt
4195 -- Sloc points to <
4196 -- plus fields for binary operator
4197 -- plus fields for expression
4199 -- N_Op_Le
4200 -- Sloc points to <=
4201 -- plus fields for binary operator
4202 -- plus fields for expression
4204 -- N_Op_Gt
4205 -- Sloc points to >
4206 -- plus fields for binary operator
4207 -- plus fields for expression
4209 -- N_Op_Ge
4210 -- Sloc points to >=
4211 -- plus fields for binary operator
4212 -- plus fields for expression
4214 -- N_Op_Add
4215 -- Sloc points to + (binary)
4216 -- plus fields for binary operator
4217 -- plus fields for expression
4219 -- N_Op_Subtract
4220 -- Sloc points to - (binary)
4221 -- plus fields for binary operator
4222 -- plus fields for expression
4224 -- N_Op_Concat
4225 -- Sloc points to &
4226 -- Is_Component_Left_Opnd (Flag13-Sem)
4227 -- Is_Component_Right_Opnd (Flag14-Sem)
4228 -- plus fields for binary operator
4229 -- plus fields for expression
4231 -- N_Op_Multiply
4232 -- Sloc points to *
4233 -- Treat_Fixed_As_Integer (Flag14-Sem)
4234 -- Rounded_Result (Flag18-Sem)
4235 -- plus fields for binary operator
4236 -- plus fields for expression
4238 -- N_Op_Divide
4239 -- Sloc points to /
4240 -- Treat_Fixed_As_Integer (Flag14-Sem)
4241 -- Do_Division_Check (Flag13-Sem)
4242 -- Rounded_Result (Flag18-Sem)
4243 -- plus fields for binary operator
4244 -- plus fields for expression
4246 -- N_Op_Mod
4247 -- Sloc points to MOD
4248 -- Treat_Fixed_As_Integer (Flag14-Sem)
4249 -- Do_Division_Check (Flag13-Sem)
4250 -- plus fields for binary operator
4251 -- plus fields for expression
4253 -- N_Op_Rem
4254 -- Sloc points to REM
4255 -- Treat_Fixed_As_Integer (Flag14-Sem)
4256 -- Do_Division_Check (Flag13-Sem)
4257 -- plus fields for binary operator
4258 -- plus fields for expression
4260 -- N_Op_Expon
4261 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4262 -- Sloc points to **
4263 -- plus fields for binary operator
4264 -- plus fields for expression
4266 -- N_Op_Plus
4267 -- Sloc points to + (unary)
4268 -- plus fields for unary operator
4269 -- plus fields for expression
4271 -- N_Op_Minus
4272 -- Sloc points to - (unary)
4273 -- plus fields for unary operator
4274 -- plus fields for expression
4276 -- N_Op_Abs
4277 -- Sloc points to ABS
4278 -- plus fields for unary operator
4279 -- plus fields for expression
4281 -- N_Op_Not
4282 -- Sloc points to NOT
4283 -- plus fields for unary operator
4284 -- plus fields for expression
4286 -- See also shift operators in section B.2
4288 -- Note on fixed-point operations passed to Gigi: For adding operators,
4289 -- the semantics is to treat these simply as integer operations, with
4290 -- the small values being ignored (the bounds are already stored in
4291 -- units of small, so that constraint checking works as usual). For the
4292 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4293 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4294 -- thus treat these nodes in identical manner, ignoring small values.
4296 -- Note on equality/inequality tests for records. In the expanded tree,
4297 -- record comparisons are always expanded to be a series of component
4298 -- comparisons, so the back end will never see an equality or inequality
4299 -- operation with operands of a record type.
4301 -- Note on overflow handling: When the overflow checking mode is set to
4302 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4303 -- be modified to use a larger type for the operands and result. In
4304 -- the case where the computed range exceeds that of Long_Long_Integer,
4305 -- and we are running in ELIMINATED mode, the operator node will be
4306 -- changed to be a call to the appropriate routine in System.Bignums.
4308 -- Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4309 -- for signed integer types (since there is no equivalent operator in
4310 -- C). Instead we rewrite such an operation in terms of REM (which is
4311 -- % in C) and other C-available operators.
4313 ------------------------------------
4314 -- 4.5.7 Conditional Expressions --
4315 ------------------------------------
4317 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4319 --------------------------
4320 -- 4.5.7 If Expression --
4321 ----------------------------
4323 -- IF_EXPRESSION ::=
4324 -- if CONDITION then DEPENDENT_EXPRESSION
4325 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4326 -- [else DEPENDENT_EXPRESSION]
4328 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4330 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4331 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4332 -- the Is_Elsif flag is set on the inner if expression.
4334 -- N_If_Expression
4335 -- Sloc points to IF or ELSIF keyword
4336 -- Expressions (List1)
4337 -- Then_Actions (List2-Sem)
4338 -- Else_Actions (List3-Sem)
4339 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4340 -- Do_Overflow_Check (Flag17-Sem)
4341 -- plus fields for expression
4343 -- Expressions here is a three-element list, whose first element is the
4344 -- condition, the second element is the dependent expression after THEN
4345 -- and the third element is the dependent expression after the ELSE
4346 -- (explicitly set to True if missing).
4348 -- Note: the Then_Actions and Else_Actions fields are always set to
4349 -- No_List in the tree passed to the back end. These are used only
4350 -- for temporary processing purposes in the expander. Even though they
4351 -- are semantic fields, their parent pointers are set because analysis
4352 -- of actions nodes in those lists may generate additional actions that
4353 -- need to know their insertion point (for example for the creation of
4354 -- transient scopes).
4356 -- Note: in the tree passed to the back end, if the result type is
4357 -- an unconstrained array, the if expression can only appears in the
4358 -- initializing expression of an object declaration (this avoids the
4359 -- back end having to create a variable length temporary on the fly).
4361 ----------------------------
4362 -- 4.5.7 Case Expression --
4363 ----------------------------
4365 -- CASE_EXPRESSION ::=
4366 -- case SELECTING_EXPRESSION is
4367 -- CASE_EXPRESSION_ALTERNATIVE
4368 -- {,CASE_EXPRESSION_ALTERNATIVE}
4370 -- Note that the Alternatives cannot include pragmas (this contrasts
4371 -- with the situation of case statements where pragmas are allowed).
4373 -- N_Case_Expression
4374 -- Sloc points to CASE
4375 -- Expression (Node3) (the selecting expression)
4376 -- Alternatives (List4) (the case expression alternatives)
4377 -- Do_Overflow_Check (Flag17-Sem)
4379 ----------------------------------------
4380 -- 4.5.7 Case Expression Alternative --
4381 ----------------------------------------
4383 -- CASE_EXPRESSION_ALTERNATIVE ::=
4384 -- when DISCRETE_CHOICE_LIST =>
4385 -- DEPENDENT_EXPRESSION
4387 -- N_Case_Expression_Alternative
4388 -- Sloc points to WHEN
4389 -- Actions (List1)
4390 -- Discrete_Choices (List4)
4391 -- Expression (Node3)
4392 -- Has_SP_Choice (Flag15-Sem)
4394 -- Note: The Actions field temporarily holds any actions associated with
4395 -- evaluation of the Expression. During expansion of the case expression
4396 -- these actions are wrapped into an N_Expressions_With_Actions node
4397 -- replacing the original expression.
4399 -- Note: this node never appears in the tree passed to the back end,
4400 -- since the expander converts case expressions into case statements.
4402 ---------------------------------
4403 -- 4.5.9 Quantified Expression --
4404 ---------------------------------
4406 -- QUANTIFIED_EXPRESSION ::=
4407 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4408 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4410 -- QUANTIFIER ::= all | some
4412 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4413 -- is present at a time, in which case the other one is empty.
4415 -- N_Quantified_Expression
4416 -- Sloc points to FOR
4417 -- Iterator_Specification (Node2)
4418 -- Loop_Parameter_Specification (Node4)
4419 -- Condition (Node1)
4420 -- All_Present (Flag15)
4422 --------------------------
4423 -- 4.6 Type Conversion --
4424 --------------------------
4426 -- TYPE_CONVERSION ::=
4427 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4429 -- In the (NAME) case, the name is stored as the expression
4431 -- Note: the parser never generates a type conversion node, since it
4432 -- looks like an indexed component which is generated by preference.
4433 -- The semantic pass must correct this misidentification.
4435 -- Gigi handles conversions that involve no change in the root type,
4436 -- and also all conversions from integer to floating-point types.
4437 -- Conversions from floating-point to integer are only handled in
4438 -- the case where Float_Truncate flag set. Other conversions from
4439 -- floating-point to integer (involving rounding) and all conversions
4440 -- involving fixed-point types are handled by the expander.
4442 -- Sprint syntax if Float_Truncate set: X^(Y)
4443 -- Sprint syntax if Conversion_OK set X?(Y)
4444 -- Sprint syntax if both flags set X?^(Y)
4446 -- Note: If either the operand or result type is fixed-point, Gigi will
4447 -- only see a type conversion node with Conversion_OK set. The front end
4448 -- takes care of all handling of small's for fixed-point conversions.
4450 -- N_Type_Conversion
4451 -- Sloc points to first token of subtype mark
4452 -- Subtype_Mark (Node4)
4453 -- Expression (Node3)
4454 -- Do_Discriminant_Check (Flag1-Sem)
4455 -- Do_Length_Check (Flag4-Sem)
4456 -- Float_Truncate (Flag11-Sem)
4457 -- Do_Tag_Check (Flag13-Sem)
4458 -- Conversion_OK (Flag14-Sem)
4459 -- Do_Overflow_Check (Flag17-Sem)
4460 -- Rounded_Result (Flag18-Sem)
4461 -- plus fields for expression
4463 -- Note: if a range check is required, then the Do_Range_Check flag
4464 -- is set in the Expression with the check being done against the
4465 -- target type range (after the base type conversion, if any).
4467 -------------------------------
4468 -- 4.7 Qualified Expression --
4469 -------------------------------
4471 -- QUALIFIED_EXPRESSION ::=
4472 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4474 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4475 -- the expression, so the Expression field of this node always points
4476 -- to a parenthesized expression in this case (i.e. Paren_Count will
4477 -- always be non-zero for the referenced expression if it is not an
4478 -- aggregate).
4480 -- N_Qualified_Expression
4481 -- Sloc points to apostrophe
4482 -- Subtype_Mark (Node4)
4483 -- Expression (Node3) expression or aggregate
4484 -- plus fields for expression
4486 --------------------
4487 -- 4.8 Allocator --
4488 --------------------
4490 -- ALLOCATOR ::=
4491 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4492 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4494 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4496 -- Sprint syntax (when storage pool present)
4497 -- new xxx (storage_pool = pool)
4498 -- or
4499 -- new (subpool) xxx (storage_pool = pool)
4501 -- N_Allocator
4502 -- Sloc points to NEW
4503 -- Expression (Node3) subtype indication or qualified expression
4504 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4505 -- Storage_Pool (Node1-Sem)
4506 -- Procedure_To_Call (Node2-Sem)
4507 -- Null_Exclusion_Present (Flag11)
4508 -- No_Initialization (Flag13-Sem)
4509 -- Is_Static_Coextension (Flag14-Sem)
4510 -- Do_Storage_Check (Flag17-Sem)
4511 -- Is_Dynamic_Coextension (Flag18-Sem)
4512 -- plus fields for expression
4514 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4515 -- This flag has a special function in conjunction with the restriction
4516 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4517 -- is not set. This means that if a source allocator is replaced with
4518 -- a constructed allocator, the Comes_From_Source flag should be copied
4519 -- to the newly created allocator.
4521 ---------------------------------
4522 -- 5.1 Sequence Of Statements --
4523 ---------------------------------
4525 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4527 -- Note: Although the parser will not accept a declaration as a
4528 -- statement, the semantic analyzer may insert declarations (e.g.
4529 -- declarations of implicit types needed for execution of other
4530 -- statements) into a sequence of statements, so the code generator
4531 -- should be prepared to accept a declaration where a statement is
4532 -- expected. Note also that pragmas can appear as statements.
4534 --------------------
4535 -- 5.1 Statement --
4536 --------------------
4538 -- STATEMENT ::=
4539 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4541 -- There is no explicit node in the tree for a statement. Instead, the
4542 -- individual statement appears directly. Labels are treated as a
4543 -- kind of statement, i.e. they are linked into a statement list at
4544 -- the point they appear, so the labeled statement appears following
4545 -- the label or labels in the statement list.
4547 ---------------------------
4548 -- 5.1 Simple Statement --
4549 ---------------------------
4551 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4552 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4553 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4554 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4555 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4556 -- | ABORT_STATEMENT | RAISE_STATEMENT
4557 -- | CODE_STATEMENT
4559 -----------------------------
4560 -- 5.1 Compound Statement --
4561 -----------------------------
4563 -- COMPOUND_STATEMENT ::=
4564 -- IF_STATEMENT | CASE_STATEMENT
4565 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4566 -- | EXTENDED_RETURN_STATEMENT
4567 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4569 -------------------------
4570 -- 5.1 Null Statement --
4571 -------------------------
4573 -- NULL_STATEMENT ::= null;
4575 -- N_Null_Statement
4576 -- Sloc points to NULL
4578 ----------------
4579 -- 5.1 Label --
4580 ----------------
4582 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4584 -- Note that the occurrence of a label is not a defining identifier,
4585 -- but rather a referencing occurrence. The defining occurrence is
4586 -- in the implicit label declaration which occurs in the innermost
4587 -- enclosing block.
4589 -- N_Label
4590 -- Sloc points to <<
4591 -- Identifier (Node1) direct name of statement identifier
4592 -- Exception_Junk (Flag8-Sem)
4594 -- Note: Before Ada 2012, a label is always followed by a statement,
4595 -- and this is true in the tree even in Ada 2012 mode (the parser
4596 -- inserts a null statement marked with Comes_From_Source False).
4598 -------------------------------
4599 -- 5.1 Statement Identifier --
4600 -------------------------------
4602 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4604 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4605 -- (not an OPERATOR_SYMBOL)
4607 -------------------------------
4608 -- 5.2 Assignment Statement --
4609 -------------------------------
4611 -- ASSIGNMENT_STATEMENT ::=
4612 -- variable_NAME := EXPRESSION;
4614 -- N_Assignment_Statement
4615 -- Sloc points to :=
4616 -- Name (Node2)
4617 -- Expression (Node3)
4618 -- Do_Discriminant_Check (Flag1-Sem)
4619 -- Do_Tag_Check (Flag13-Sem)
4620 -- Do_Length_Check (Flag4-Sem)
4621 -- Forwards_OK (Flag5-Sem)
4622 -- Backwards_OK (Flag6-Sem)
4623 -- No_Ctrl_Actions (Flag7-Sem)
4624 -- Componentwise_Assignment (Flag14-Sem)
4625 -- Suppress_Assignment_Checks (Flag18-Sem)
4627 -- Note: if a range check is required, then the Do_Range_Check flag
4628 -- is set in the Expression (right hand side), with the check being
4629 -- done against the type of the Name (left hand side).
4631 -- Note: the back end places some restrictions on the form of the
4632 -- Expression field. If the object being assigned to is Atomic, then
4633 -- the Expression may not have the form of an aggregate (since this
4634 -- might cause the back end to generate separate assignments). In this
4635 -- case the front end must generate an extra temporary and initialize
4636 -- this temporary as required (the temporary itself is not atomic).
4638 -----------------------
4639 -- 5.3 If Statement --
4640 -----------------------
4642 -- IF_STATEMENT ::=
4643 -- if CONDITION then
4644 -- SEQUENCE_OF_STATEMENTS
4645 -- {elsif CONDITION then
4646 -- SEQUENCE_OF_STATEMENTS}
4647 -- [else
4648 -- SEQUENCE_OF_STATEMENTS]
4649 -- end if;
4651 -- Gigi restriction: This expander ensures that the type of the
4652 -- Condition fields is always Standard.Boolean, even if the type
4653 -- in the source is some non-standard boolean type.
4655 -- N_If_Statement
4656 -- Sloc points to IF
4657 -- Condition (Node1)
4658 -- Then_Statements (List2)
4659 -- Elsif_Parts (List3) (set to No_List if none present)
4660 -- Else_Statements (List4) (set to No_List if no else part present)
4661 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4662 -- From_Conditional_Expression (Flag1-Sem)
4664 -- N_Elsif_Part
4665 -- Sloc points to ELSIF
4666 -- Condition (Node1)
4667 -- Then_Statements (List2)
4668 -- Condition_Actions (List3-Sem)
4670 --------------------
4671 -- 5.3 Condition --
4672 --------------------
4674 -- CONDITION ::= boolean_EXPRESSION
4676 -------------------------
4677 -- 5.4 Case Statement --
4678 -------------------------
4680 -- CASE_STATEMENT ::=
4681 -- case EXPRESSION is
4682 -- CASE_STATEMENT_ALTERNATIVE
4683 -- {CASE_STATEMENT_ALTERNATIVE}
4684 -- end case;
4686 -- Note: the Alternatives can contain pragmas. These only occur at
4687 -- the start of the list, since any pragmas occurring after the first
4688 -- alternative are absorbed into the corresponding statement sequence.
4690 -- N_Case_Statement
4691 -- Sloc points to CASE
4692 -- Expression (Node3)
4693 -- Alternatives (List4)
4694 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4695 -- From_Conditional_Expression (Flag1-Sem)
4697 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4698 -- followed by a statement, and this is true in the tree even in Ada
4699 -- 2012 mode (the parser inserts a null statement marked with the flag
4700 -- Comes_From_Source False).
4702 -------------------------------------
4703 -- 5.4 Case Statement Alternative --
4704 -------------------------------------
4706 -- CASE_STATEMENT_ALTERNATIVE ::=
4707 -- when DISCRETE_CHOICE_LIST =>
4708 -- SEQUENCE_OF_STATEMENTS
4710 -- N_Case_Statement_Alternative
4711 -- Sloc points to WHEN
4712 -- Discrete_Choices (List4)
4713 -- Statements (List3)
4714 -- Has_SP_Choice (Flag15-Sem)
4716 -- Note: in the list of Discrete_Choices, the tree passed to the back
4717 -- end does not have choice entries corresponding to names of statically
4718 -- predicated subtypes. Such entries are always expanded out to the list
4719 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
4720 -- mode does not have this expansion, and has the original choices.
4722 -------------------------
4723 -- 5.5 Loop Statement --
4724 -------------------------
4726 -- LOOP_STATEMENT ::=
4727 -- [loop_STATEMENT_IDENTIFIER :]
4728 -- [ITERATION_SCHEME] loop
4729 -- SEQUENCE_OF_STATEMENTS
4730 -- end loop [loop_IDENTIFIER];
4732 -- Note: The occurrence of a loop label is not a defining identifier
4733 -- but rather a referencing occurrence. The defining occurrence is in
4734 -- the implicit label declaration which occurs in the innermost
4735 -- enclosing block.
4737 -- Note: there is always a loop statement identifier present in the
4738 -- tree, even if none was given in the source. In the case where no loop
4739 -- identifier is given in the source, the parser creates a name of the
4740 -- form _Loop_n, where n is a decimal integer (the two underlines ensure
4741 -- that the loop names created in this manner do not conflict with any
4742 -- user defined identifiers), and the flag Has_Created_Identifier is set
4743 -- to True. The only exception to the rule that all loop statement nodes
4744 -- have identifiers occurs for loops constructed by the expander, and
4745 -- the semantic analyzer will create and supply dummy loop identifiers
4746 -- in these cases.
4748 -- N_Loop_Statement
4749 -- Sloc points to LOOP
4750 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4751 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4752 -- Statements (List3)
4753 -- End_Label (Node4)
4754 -- Has_Created_Identifier (Flag15)
4755 -- Is_Null_Loop (Flag16)
4756 -- Suppress_Loop_Warnings (Flag17)
4758 -- Note: the parser fills in the Identifier field if there is an
4759 -- explicit loop identifier. Otherwise the parser leaves this field
4760 -- set to Empty, and then the semantic processing for a loop statement
4761 -- creates an identifier, setting the Has_Created_Identifier flag to
4762 -- True. So after semantic analysis, the Identifier is always set,
4763 -- referencing an identifier whose entity has an Ekind of E_Loop.
4765 ---------------------------
4766 -- 5.5 Iteration Scheme --
4767 ---------------------------
4769 -- ITERATION_SCHEME ::=
4770 -- while CONDITION
4771 -- | for LOOP_PARAMETER_SPECIFICATION
4772 -- | for ITERATOR_SPECIFICATION
4774 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4775 -- is present at a time, in which case the other one is empty. Both are
4776 -- empty in the case of a WHILE loop.
4778 -- Gigi restriction: The expander ensures that the type of the Condition
4779 -- field is always Standard.Boolean, even if the type in the source is
4780 -- some non-standard boolean type.
4782 -- N_Iteration_Scheme
4783 -- Sloc points to WHILE or FOR
4784 -- Condition (Node1) (set to Empty if FOR case)
4785 -- Condition_Actions (List3-Sem)
4786 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
4787 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4789 ---------------------------------------
4790 -- 5.5 Loop Parameter Specification --
4791 ---------------------------------------
4793 -- LOOP_PARAMETER_SPECIFICATION ::=
4794 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4796 -- N_Loop_Parameter_Specification
4797 -- Sloc points to first identifier
4798 -- Defining_Identifier (Node1)
4799 -- Reverse_Present (Flag15)
4800 -- Discrete_Subtype_Definition (Node4)
4802 -----------------------------------
4803 -- 5.5.1 Iterator Specification --
4804 -----------------------------------
4806 -- ITERATOR_SPECIFICATION ::=
4807 -- DEFINING_IDENTIFIER in [reverse] NAME
4808 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4810 -- N_Iterator_Specification
4811 -- Sloc points to defining identifier
4812 -- Defining_Identifier (Node1)
4813 -- Name (Node2)
4814 -- Reverse_Present (Flag15)
4815 -- Of_Present (Flag16)
4816 -- Subtype_Indication (Node5)
4818 -- Note: The Of_Present flag distinguishes the two forms
4820 --------------------------
4821 -- 5.6 Block Statement --
4822 --------------------------
4824 -- BLOCK_STATEMENT ::=
4825 -- [block_STATEMENT_IDENTIFIER:]
4826 -- [declare
4827 -- DECLARATIVE_PART]
4828 -- begin
4829 -- HANDLED_SEQUENCE_OF_STATEMENTS
4830 -- end [block_IDENTIFIER];
4832 -- Note that the occurrence of a block identifier is not a defining
4833 -- identifier, but rather a referencing occurrence. The defining
4834 -- occurrence is an E_Block entity declared by the implicit label
4835 -- declaration which occurs in the innermost enclosing block statement
4836 -- or body; the block identifier denotes that E_Block.
4838 -- For block statements that come from source code, there is always a
4839 -- block statement identifier present in the tree, denoting an E_Block.
4840 -- In the case where no block identifier is given in the source,
4841 -- the parser creates a name of the form B_n, where n is a decimal
4842 -- integer, and the flag Has_Created_Identifier is set to True. Blocks
4843 -- constructed by the expander usually have no identifier, and no
4844 -- corresponding entity.
4846 -- Note: the block statement created for an extended return statement
4847 -- has an entity, and this entity is an E_Return_Statement, rather than
4848 -- the usual E_Block.
4850 -- Note: Exception_Junk is set for the wrapping blocks created during
4851 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4853 -- Note: from a control flow viewpoint, a block statement defines an
4854 -- extended basic block, i.e. the entry of the block dominates every
4855 -- statement in the sequence. When generating new statements with
4856 -- exception handlers in the expander at the end of a sequence that
4857 -- comes from source code, it can be necessary to wrap them all in a
4858 -- block statement in order to expose the implicit control flow to
4859 -- gigi and thus prevent it from issuing bogus control flow warnings.
4861 -- N_Block_Statement
4862 -- Sloc points to DECLARE or BEGIN
4863 -- Identifier (Node1) block direct name (set to Empty if not present)
4864 -- Declarations (List2) (set to No_List if no DECLARE part)
4865 -- Handled_Statement_Sequence (Node4)
4866 -- Cleanup_Actions (List5-Sem)
4867 -- Is_Task_Master (Flag5-Sem)
4868 -- Activation_Chain_Entity (Node3-Sem)
4869 -- Has_Created_Identifier (Flag15)
4870 -- Is_Task_Allocation_Block (Flag6)
4871 -- Is_Asynchronous_Call_Block (Flag7)
4872 -- Exception_Junk (Flag8-Sem)
4873 -- Is_Finalization_Wrapper (Flag9-Sem)
4875 -------------------------
4876 -- 5.7 Exit Statement --
4877 -------------------------
4879 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4881 -- Gigi restriction: The expander ensures that the type of the Condition
4882 -- field is always Standard.Boolean, even if the type in the source is
4883 -- some non-standard boolean type.
4885 -- N_Exit_Statement
4886 -- Sloc points to EXIT
4887 -- Name (Node2) (set to Empty if no loop name present)
4888 -- Condition (Node1) (set to Empty if no WHEN part present)
4889 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
4891 -------------------------
4892 -- 5.9 Goto Statement --
4893 -------------------------
4895 -- GOTO_STATEMENT ::= goto label_NAME;
4897 -- N_Goto_Statement
4898 -- Sloc points to GOTO
4899 -- Name (Node2)
4900 -- Exception_Junk (Flag8-Sem)
4902 ---------------------------------
4903 -- 6.1 Subprogram Declaration --
4904 ---------------------------------
4906 -- SUBPROGRAM_DECLARATION ::=
4907 -- SUBPROGRAM_SPECIFICATION
4908 -- [ASPECT_SPECIFICATIONS];
4910 -- N_Subprogram_Declaration
4911 -- Sloc points to FUNCTION or PROCEDURE
4912 -- Specification (Node1)
4913 -- Body_To_Inline (Node3-Sem)
4914 -- Corresponding_Body (Node5-Sem)
4915 -- Parent_Spec (Node4-Sem)
4917 ------------------------------------------
4918 -- 6.1 Abstract Subprogram Declaration --
4919 ------------------------------------------
4921 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4922 -- SUBPROGRAM_SPECIFICATION is abstract
4923 -- [ASPECT_SPECIFICATIONS];
4925 -- N_Abstract_Subprogram_Declaration
4926 -- Sloc points to ABSTRACT
4927 -- Specification (Node1)
4929 -----------------------------------
4930 -- 6.1 Subprogram Specification --
4931 -----------------------------------
4933 -- SUBPROGRAM_SPECIFICATION ::=
4934 -- [[not] overriding]
4935 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4936 -- | [[not] overriding]
4937 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4939 -- Note: there are no separate nodes for the profiles, instead the
4940 -- information appears directly in the following nodes.
4942 -- N_Function_Specification
4943 -- Sloc points to FUNCTION
4944 -- Defining_Unit_Name (Node1) (the designator)
4945 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4946 -- Null_Exclusion_Present (Flag11)
4947 -- Result_Definition (Node4) for result subtype
4948 -- Generic_Parent (Node5-Sem)
4949 -- Must_Override (Flag14) set if overriding indicator present
4950 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4952 -- N_Procedure_Specification
4953 -- Sloc points to PROCEDURE
4954 -- Defining_Unit_Name (Node1)
4955 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4956 -- Generic_Parent (Node5-Sem)
4957 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4958 -- Must_Override (Flag14) set if overriding indicator present
4959 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4961 -- Note: overriding indicator is an Ada 2005 feature
4963 ---------------------
4964 -- 6.1 Designator --
4965 ---------------------
4967 -- DESIGNATOR ::=
4968 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4970 -- Designators that are simply identifiers or operator symbols appear
4971 -- directly in the tree in this form. The following node is used only
4972 -- in the case where the designator has a parent unit name component.
4974 -- N_Designator
4975 -- Sloc points to period
4976 -- Name (Node2) holds the parent unit name
4977 -- Identifier (Node1)
4979 -- Note: Name is always non-Empty, since this node is only used for the
4980 -- case where a parent library unit package name is present.
4982 -- Note that the identifier can also be an operator symbol here
4984 ------------------------------
4985 -- 6.1 Defining Designator --
4986 ------------------------------
4988 -- DEFINING_DESIGNATOR ::=
4989 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4991 -------------------------------------
4992 -- 6.1 Defining Program Unit Name --
4993 -------------------------------------
4995 -- DEFINING_PROGRAM_UNIT_NAME ::=
4996 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4998 -- The parent unit name is present only in the case of a child unit name
4999 -- (permissible only for Ada 95 for a library level unit, i.e. a unit
5000 -- at scope level one). If no such name is present, the defining program
5001 -- unit name is represented simply as the defining identifier. In the
5002 -- child unit case, the following node is used to represent the child
5003 -- unit name.
5005 -- N_Defining_Program_Unit_Name
5006 -- Sloc points to period
5007 -- Name (Node2) holds the parent unit name
5008 -- Defining_Identifier (Node1)
5010 -- Note: Name is always non-Empty, since this node is only used for the
5011 -- case where a parent unit name is present.
5013 --------------------------
5014 -- 6.1 Operator Symbol --
5015 --------------------------
5017 -- OPERATOR_SYMBOL ::= STRING_LITERAL
5019 -- Note: the fields of the N_Operator_Symbol node are laid out to match
5020 -- the corresponding fields of an N_Character_Literal node. This allows
5021 -- easy conversion of the operator symbol node into a character literal
5022 -- node in the case where a string constant of the form of an operator
5023 -- symbol is scanned out as such, but turns out semantically to be a
5024 -- string literal that is not an operator. For details see Sinfo.CN.
5025 -- Change_Operator_Symbol_To_String_Literal.
5027 -- N_Operator_Symbol
5028 -- Sloc points to literal
5029 -- Chars (Name1) contains the Name_Id for the operator symbol
5030 -- Strval (Str3) Id of string value. This is used if the operator
5031 -- symbol turns out to be a normal string after all.
5032 -- Entity (Node4-Sem)
5033 -- Associated_Node (Node4-Sem)
5034 -- Has_Private_View (Flag11-Sem) set in generic units.
5035 -- Etype (Node5-Sem)
5037 -- Note: the Strval field may be set to No_String for generated
5038 -- operator symbols that are known not to be string literals
5039 -- semantically.
5041 -----------------------------------
5042 -- 6.1 Defining Operator Symbol --
5043 -----------------------------------
5045 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
5047 -- A defining operator symbol is an entity, which has additional
5048 -- fields depending on the setting of the Ekind field. These
5049 -- additional fields are defined (and access subprograms declared)
5050 -- in package Einfo.
5052 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
5053 -- are deliberately layed out to match the layout of fields in an
5054 -- ordinary N_Operator_Symbol node allowing for easy alteration of
5055 -- an operator symbol node into a defining operator symbol node.
5056 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
5057 -- for further details.
5059 -- N_Defining_Operator_Symbol
5060 -- Sloc points to literal
5061 -- Chars (Name1) contains the Name_Id for the operator symbol
5062 -- Next_Entity (Node2-Sem)
5063 -- Scope (Node3-Sem)
5064 -- Etype (Node5-Sem)
5066 ----------------------------
5067 -- 6.1 Parameter Profile --
5068 ----------------------------
5070 -- PARAMETER_PROFILE ::= [FORMAL_PART]
5072 ---------------------------------------
5073 -- 6.1 Parameter and Result Profile --
5074 ---------------------------------------
5076 -- PARAMETER_AND_RESULT_PROFILE ::=
5077 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
5078 -- | [FORMAL_PART] return ACCESS_DEFINITION
5080 -- There is no explicit node in the tree for a parameter and result
5081 -- profile. Instead the information appears directly in the parent.
5083 ----------------------
5084 -- 6.1 Formal Part --
5085 ----------------------
5087 -- FORMAL_PART ::=
5088 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
5090 ----------------------------------
5091 -- 6.1 Parameter Specification --
5092 ----------------------------------
5094 -- PARAMETER_SPECIFICATION ::=
5095 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
5096 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
5097 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
5098 -- [:= DEFAULT_EXPRESSION]
5100 -- Although the syntax allows multiple identifiers in the list, the
5101 -- semantics is as though successive specifications were given with
5102 -- identical type definition and expression components. To simplify
5103 -- semantic processing, the parser represents a multiple declaration
5104 -- case as a sequence of single Specifications, using the More_Ids and
5105 -- Prev_Ids flags to preserve the original source form as described
5106 -- in the section on "Handling of Defining Identifier Lists".
5108 -- ALIASED can only be present in Ada 2012 mode
5110 -- N_Parameter_Specification
5111 -- Sloc points to first identifier
5112 -- Defining_Identifier (Node1)
5113 -- Aliased_Present (Flag4)
5114 -- In_Present (Flag15)
5115 -- Out_Present (Flag17)
5116 -- Null_Exclusion_Present (Flag11)
5117 -- Parameter_Type (Node2) subtype mark or access definition
5118 -- Expression (Node3) (set to Empty if no default expression present)
5119 -- Do_Accessibility_Check (Flag13-Sem)
5120 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5121 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5122 -- Default_Expression (Node5-Sem)
5124 ---------------
5125 -- 6.1 Mode --
5126 ---------------
5128 -- MODE ::= [in] | in out | out
5130 -- There is no explicit node in the tree for the Mode. Instead the
5131 -- In_Present and Out_Present flags are set in the parent node to
5132 -- record the presence of keywords specifying the mode.
5134 --------------------------
5135 -- 6.3 Subprogram Body --
5136 --------------------------
5138 -- SUBPROGRAM_BODY ::=
5139 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5140 -- DECLARATIVE_PART
5141 -- begin
5142 -- HANDLED_SEQUENCE_OF_STATEMENTS
5143 -- end [DESIGNATOR];
5145 -- N_Subprogram_Body
5146 -- Sloc points to FUNCTION or PROCEDURE
5147 -- Specification (Node1)
5148 -- Declarations (List2)
5149 -- Handled_Statement_Sequence (Node4)
5150 -- Activation_Chain_Entity (Node3-Sem)
5151 -- Corresponding_Spec (Node5-Sem)
5152 -- Acts_As_Spec (Flag4-Sem)
5153 -- Bad_Is_Detected (Flag15) used only by parser
5154 -- Do_Storage_Check (Flag17-Sem)
5155 -- Is_Protected_Subprogram_Body (Flag7-Sem)
5156 -- Is_Entry_Barrier_Function (Flag8-Sem)
5157 -- Is_Task_Master (Flag5-Sem)
5158 -- Was_Originally_Stub (Flag13-Sem)
5159 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5161 -------------------------
5162 -- Expression Function --
5163 -------------------------
5165 -- This is an Ada 2012 extension, we put it here for now, to be labeled
5166 -- and put in its proper section when we know exactly where that is.
5168 -- EXPRESSION_FUNCTION ::=
5169 -- FUNCTION SPECIFICATION IS (EXPRESSION)
5170 -- [ASPECT_SPECIFICATIONS];
5172 -- N_Expression_Function
5173 -- Sloc points to FUNCTION
5174 -- Specification (Node1)
5175 -- Expression (Node3)
5176 -- Corresponding_Spec (Node5-Sem)
5178 -----------------------------------
5179 -- 6.4 Procedure Call Statement --
5180 -----------------------------------
5182 -- PROCEDURE_CALL_STATEMENT ::=
5183 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5185 -- Note: the reason that a procedure call has expression fields is that
5186 -- it semantically resembles an expression, e.g. overloading is allowed
5187 -- and a type is concocted for semantic processing purposes. Certain of
5188 -- these fields, such as Parens are not relevant, but it is easier to
5189 -- just supply all of them together.
5191 -- N_Procedure_Call_Statement
5192 -- Sloc points to first token of name or prefix
5193 -- Name (Node2) stores name or prefix
5194 -- Parameter_Associations (List3) (set to No_List if no
5195 -- actual parameter part)
5196 -- First_Named_Actual (Node4-Sem)
5197 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5198 -- Do_Tag_Check (Flag13-Sem)
5199 -- No_Elaboration_Check (Flag14-Sem)
5200 -- ABE_Is_Certain (Flag18-Sem)
5201 -- plus fields for expression
5203 -- If any IN parameter requires a range check, then the corresponding
5204 -- argument expression has the Do_Range_Check flag set, and the range
5205 -- check is done against the formal type. Note that this argument
5206 -- expression may appear directly in the Parameter_Associations list,
5207 -- or may be a descendent of an N_Parameter_Association node that
5208 -- appears in this list.
5210 ------------------------
5211 -- 6.4 Function Call --
5212 ------------------------
5214 -- FUNCTION_CALL ::=
5215 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5217 -- Note: the parser may generate an indexed component node or simply
5218 -- a name node instead of a function call node. The semantic pass must
5219 -- correct this misidentification.
5221 -- N_Function_Call
5222 -- Sloc points to first token of name or prefix
5223 -- Name (Node2) stores name or prefix
5224 -- Parameter_Associations (List3) (set to No_List if no
5225 -- actual parameter part)
5226 -- First_Named_Actual (Node4-Sem)
5227 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5228 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5229 -- Do_Tag_Check (Flag13-Sem)
5230 -- No_Elaboration_Check (Flag14-Sem)
5231 -- ABE_Is_Certain (Flag18-Sem)
5232 -- plus fields for expression
5234 --------------------------------
5235 -- 6.4 Actual Parameter Part --
5236 --------------------------------
5238 -- ACTUAL_PARAMETER_PART ::=
5239 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5241 --------------------------------
5242 -- 6.4 Parameter Association --
5243 --------------------------------
5245 -- PARAMETER_ASSOCIATION ::=
5246 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5248 -- Note: the N_Parameter_Association node is built only if a formal
5249 -- parameter selector name is present, otherwise the parameter
5250 -- association appears in the tree simply as the node for the
5251 -- explicit actual parameter.
5253 -- N_Parameter_Association
5254 -- Sloc points to formal parameter
5255 -- Selector_Name (Node2) (always non-Empty)
5256 -- Explicit_Actual_Parameter (Node3)
5257 -- Next_Named_Actual (Node4-Sem)
5258 -- Is_Accessibility_Actual (Flag13-Sem)
5260 ---------------------------
5261 -- 6.4 Actual Parameter --
5262 ---------------------------
5264 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
5266 ---------------------------
5267 -- 6.5 Return Statement --
5268 ---------------------------
5270 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5272 -- EXTENDED_RETURN_STATEMENT ::=
5273 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5274 -- [:= EXPRESSION] [do
5275 -- HANDLED_SEQUENCE_OF_STATEMENTS
5276 -- end return];
5278 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5280 -- The term "return statement" is defined in 6.5 to mean either a
5281 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5282 -- the use of this term, since it used to mean someting else in earlier
5283 -- versions of Ada.
5285 -- N_Simple_Return_Statement
5286 -- Sloc points to RETURN
5287 -- Return_Statement_Entity (Node5-Sem)
5288 -- Expression (Node3) (set to Empty if no expression present)
5289 -- Storage_Pool (Node1-Sem)
5290 -- Procedure_To_Call (Node2-Sem)
5291 -- Do_Tag_Check (Flag13-Sem)
5292 -- By_Ref (Flag5-Sem)
5293 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5295 -- Note: Return_Statement_Entity points to an E_Return_Statement
5297 -- If a range check is required, then Do_Range_Check is set on the
5298 -- Expression. The check is against the return subtype of the function.
5300 -- N_Extended_Return_Statement
5301 -- Sloc points to RETURN
5302 -- Return_Statement_Entity (Node5-Sem)
5303 -- Return_Object_Declarations (List3)
5304 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5305 -- Storage_Pool (Node1-Sem)
5306 -- Procedure_To_Call (Node2-Sem)
5307 -- Do_Tag_Check (Flag13-Sem)
5308 -- By_Ref (Flag5-Sem)
5310 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5312 -- Note that Return_Object_Declarations is a list containing the
5313 -- N_Object_Declaration -- see comment on this field above.
5315 -- The declared object will have Is_Return_Object = True.
5317 -- There is no such syntactic category as return_object_declaration
5318 -- in the RM. Return_Object_Declarations represents this portion of
5319 -- the syntax for EXTENDED_RETURN_STATEMENT:
5320 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5321 -- [:= EXPRESSION]
5323 -- There are two entities associated with an extended_return_statement:
5324 -- the Return_Statement_Entity represents the statement itself,
5325 -- and the Defining_Identifier of the Object_Declaration in
5326 -- Return_Object_Declarations represents the object being
5327 -- returned. N_Simple_Return_Statement has only the former.
5329 ------------------------------
5330 -- 7.1 Package Declaration --
5331 ------------------------------
5333 -- PACKAGE_DECLARATION ::=
5334 -- PACKAGE_SPECIFICATION;
5336 -- Note: the activation chain entity for a package spec is used for
5337 -- all tasks declared in the package spec, or in the package body.
5339 -- N_Package_Declaration
5340 -- Sloc points to PACKAGE
5341 -- Specification (Node1)
5342 -- Corresponding_Body (Node5-Sem)
5343 -- Parent_Spec (Node4-Sem)
5344 -- Activation_Chain_Entity (Node3-Sem)
5346 --------------------------------
5347 -- 7.1 Package Specification --
5348 --------------------------------
5350 -- PACKAGE_SPECIFICATION ::=
5351 -- package DEFINING_PROGRAM_UNIT_NAME
5352 -- [ASPECT_SPECIFICATIONS]
5353 -- is
5354 -- {BASIC_DECLARATIVE_ITEM}
5355 -- [private
5356 -- {BASIC_DECLARATIVE_ITEM}]
5357 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5359 -- N_Package_Specification
5360 -- Sloc points to PACKAGE
5361 -- Defining_Unit_Name (Node1)
5362 -- Visible_Declarations (List2)
5363 -- Private_Declarations (List3) (set to No_List if no private
5364 -- part present)
5365 -- End_Label (Node4)
5366 -- Generic_Parent (Node5-Sem)
5367 -- Limited_View_Installed (Flag18-Sem)
5369 -----------------------
5370 -- 7.1 Package Body --
5371 -----------------------
5373 -- PACKAGE_BODY ::=
5374 -- package body DEFINING_PROGRAM_UNIT_NAME
5375 -- [ASPECT_SPECIFICATIONS]
5376 -- is
5377 -- DECLARATIVE_PART
5378 -- [begin
5379 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5380 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5382 -- N_Package_Body
5383 -- Sloc points to PACKAGE
5384 -- Defining_Unit_Name (Node1)
5385 -- Declarations (List2)
5386 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5387 -- Corresponding_Spec (Node5-Sem)
5388 -- Was_Originally_Stub (Flag13-Sem)
5390 -- Note: if a source level package does not contain a handled sequence
5391 -- of statements, then the parser supplies a dummy one with a null
5392 -- sequence of statements. Comes_From_Source will be False in this
5393 -- constructed sequence. The reason we need this is for the End_Label
5394 -- field in the HSS.
5396 -----------------------------------
5397 -- 7.4 Private Type Declaration --
5398 -----------------------------------
5400 -- PRIVATE_TYPE_DECLARATION ::=
5401 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5402 -- is [[abstract] tagged] [limited] private
5403 -- [ASPECT_SPECIFICATIONS];
5405 -- Note: TAGGED is not permitted in Ada 83 mode
5407 -- N_Private_Type_Declaration
5408 -- Sloc points to TYPE
5409 -- Defining_Identifier (Node1)
5410 -- Discriminant_Specifications (List4) (set to No_List if no
5411 -- discriminant part)
5412 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5413 -- Abstract_Present (Flag4)
5414 -- Tagged_Present (Flag15)
5415 -- Limited_Present (Flag17)
5417 ----------------------------------------
5418 -- 7.4 Private Extension Declaration --
5419 ----------------------------------------
5421 -- PRIVATE_EXTENSION_DECLARATION ::=
5422 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5423 -- [abstract] [limited | synchronized]
5424 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5425 -- with private [ASPECT_SPECIFICATIONS];
5427 -- Note: LIMITED, and private extension declarations are not allowed
5428 -- in Ada 83 mode.
5430 -- N_Private_Extension_Declaration
5431 -- Sloc points to TYPE
5432 -- Defining_Identifier (Node1)
5433 -- Uninitialized_Variable (Node3-Sem)
5434 -- Discriminant_Specifications (List4) (set to No_List if no
5435 -- discriminant part)
5436 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5437 -- Abstract_Present (Flag4)
5438 -- Limited_Present (Flag17)
5439 -- Synchronized_Present (Flag7)
5440 -- Subtype_Indication (Node5)
5441 -- Interface_List (List2) (set to No_List if none)
5443 ---------------------
5444 -- 8.4 Use Clause --
5445 ---------------------
5447 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5449 -----------------------------
5450 -- 8.4 Use Package Clause --
5451 -----------------------------
5453 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5455 -- N_Use_Package_Clause
5456 -- Sloc points to USE
5457 -- Names (List2)
5458 -- Next_Use_Clause (Node3-Sem)
5459 -- Hidden_By_Use_Clause (Elist4-Sem)
5461 --------------------------
5462 -- 8.4 Use Type Clause --
5463 --------------------------
5465 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5467 -- Note: use type clause is not permitted in Ada 83 mode
5469 -- Note: the ALL keyword can appear only in Ada 2012 mode
5471 -- N_Use_Type_Clause
5472 -- Sloc points to USE
5473 -- Subtype_Marks (List2)
5474 -- Next_Use_Clause (Node3-Sem)
5475 -- Hidden_By_Use_Clause (Elist4-Sem)
5476 -- Used_Operations (Elist5-Sem)
5477 -- All_Present (Flag15)
5479 -------------------------------
5480 -- 8.5 Renaming Declaration --
5481 -------------------------------
5483 -- RENAMING_DECLARATION ::=
5484 -- OBJECT_RENAMING_DECLARATION
5485 -- | EXCEPTION_RENAMING_DECLARATION
5486 -- | PACKAGE_RENAMING_DECLARATION
5487 -- | SUBPROGRAM_RENAMING_DECLARATION
5488 -- | GENERIC_RENAMING_DECLARATION
5490 --------------------------------------
5491 -- 8.5 Object Renaming Declaration --
5492 --------------------------------------
5494 -- OBJECT_RENAMING_DECLARATION ::=
5495 -- DEFINING_IDENTIFIER :
5496 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5497 -- [ASPECT_SPECIFICATIONS];
5498 -- | DEFINING_IDENTIFIER :
5499 -- ACCESS_DEFINITION renames object_NAME
5500 -- [ASPECT_SPECIFICATIONS];
5502 -- Note: Access_Definition is an optional field that gives support to
5503 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5504 -- Subtype_Indication field or else the Access_Definition field.
5506 -- N_Object_Renaming_Declaration
5507 -- Sloc points to first identifier
5508 -- Defining_Identifier (Node1)
5509 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5510 -- Subtype_Mark (Node4) (set to Empty if not present)
5511 -- Access_Definition (Node3) (set to Empty if not present)
5512 -- Name (Node2)
5513 -- Corresponding_Generic_Association (Node5-Sem)
5515 -----------------------------------------
5516 -- 8.5 Exception Renaming Declaration --
5517 -----------------------------------------
5519 -- EXCEPTION_RENAMING_DECLARATION ::=
5520 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5521 -- [ASPECT_SPECIFICATIONS];
5523 -- N_Exception_Renaming_Declaration
5524 -- Sloc points to first identifier
5525 -- Defining_Identifier (Node1)
5526 -- Name (Node2)
5528 ---------------------------------------
5529 -- 8.5 Package Renaming Declaration --
5530 ---------------------------------------
5532 -- PACKAGE_RENAMING_DECLARATION ::=
5533 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5534 -- [ASPECT_SPECIFICATIONS];
5536 -- N_Package_Renaming_Declaration
5537 -- Sloc points to PACKAGE
5538 -- Defining_Unit_Name (Node1)
5539 -- Name (Node2)
5540 -- Parent_Spec (Node4-Sem)
5542 ------------------------------------------
5543 -- 8.5 Subprogram Renaming Declaration --
5544 ------------------------------------------
5546 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5547 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5548 -- [ASPECT_SPECIFICATIONS];
5550 -- N_Subprogram_Renaming_Declaration
5551 -- Sloc points to RENAMES
5552 -- Specification (Node1)
5553 -- Name (Node2)
5554 -- Parent_Spec (Node4-Sem)
5555 -- Corresponding_Spec (Node5-Sem)
5556 -- Corresponding_Formal_Spec (Node3-Sem)
5557 -- From_Default (Flag6-Sem)
5559 -----------------------------------------
5560 -- 8.5.5 Generic Renaming Declaration --
5561 -----------------------------------------
5563 -- GENERIC_RENAMING_DECLARATION ::=
5564 -- generic package DEFINING_PROGRAM_UNIT_NAME
5565 -- renames generic_package_NAME
5566 -- [ASPECT_SPECIFICATIONS];
5567 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5568 -- renames generic_procedure_NAME
5569 -- [ASPECT_SPECIFICATIONS];
5570 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5571 -- renames generic_function_NAME
5572 -- [ASPECT_SPECIFICATIONS];
5574 -- N_Generic_Package_Renaming_Declaration
5575 -- Sloc points to GENERIC
5576 -- Defining_Unit_Name (Node1)
5577 -- Name (Node2)
5578 -- Parent_Spec (Node4-Sem)
5580 -- N_Generic_Procedure_Renaming_Declaration
5581 -- Sloc points to GENERIC
5582 -- Defining_Unit_Name (Node1)
5583 -- Name (Node2)
5584 -- Parent_Spec (Node4-Sem)
5586 -- N_Generic_Function_Renaming_Declaration
5587 -- Sloc points to GENERIC
5588 -- Defining_Unit_Name (Node1)
5589 -- Name (Node2)
5590 -- Parent_Spec (Node4-Sem)
5592 --------------------------------
5593 -- 9.1 Task Type Declaration --
5594 --------------------------------
5596 -- TASK_TYPE_DECLARATION ::=
5597 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5598 -- [ASPECT_SPECIFICATIONS]
5599 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5601 -- N_Task_Type_Declaration
5602 -- Sloc points to TASK
5603 -- Defining_Identifier (Node1)
5604 -- Discriminant_Specifications (List4) (set to No_List if no
5605 -- discriminant part)
5606 -- Interface_List (List2) (set to No_List if none)
5607 -- Task_Definition (Node3) (set to Empty if not present)
5608 -- Corresponding_Body (Node5-Sem)
5610 ----------------------------------
5611 -- 9.1 Single Task Declaration --
5612 ----------------------------------
5614 -- SINGLE_TASK_DECLARATION ::=
5615 -- task DEFINING_IDENTIFIER
5616 -- [ASPECT_SPECIFICATIONS]
5617 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5619 -- N_Single_Task_Declaration
5620 -- Sloc points to TASK
5621 -- Defining_Identifier (Node1)
5622 -- Interface_List (List2) (set to No_List if none)
5623 -- Task_Definition (Node3) (set to Empty if not present)
5625 --------------------------
5626 -- 9.1 Task Definition --
5627 --------------------------
5629 -- TASK_DEFINITION ::=
5630 -- {TASK_ITEM}
5631 -- [private
5632 -- {TASK_ITEM}]
5633 -- end [task_IDENTIFIER]
5635 -- Note: as a result of semantic analysis, the list of task items can
5636 -- include implicit type declarations resulting from entry families.
5638 -- N_Task_Definition
5639 -- Sloc points to first token of task definition
5640 -- Visible_Declarations (List2)
5641 -- Private_Declarations (List3) (set to No_List if no private part)
5642 -- End_Label (Node4)
5643 -- Has_Storage_Size_Pragma (Flag5-Sem)
5644 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5646 --------------------
5647 -- 9.1 Task Item --
5648 --------------------
5650 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5652 --------------------
5653 -- 9.1 Task Body --
5654 --------------------
5656 -- TASK_BODY ::=
5657 -- task body task_DEFINING_IDENTIFIER
5658 -- [ASPECT_SPECIFICATIONS]
5659 -- is
5660 -- DECLARATIVE_PART
5661 -- begin
5662 -- HANDLED_SEQUENCE_OF_STATEMENTS
5663 -- end [task_IDENTIFIER];
5665 -- Gigi restriction: This node never appears
5667 -- N_Task_Body
5668 -- Sloc points to TASK
5669 -- Defining_Identifier (Node1)
5670 -- Declarations (List2)
5671 -- Handled_Statement_Sequence (Node4)
5672 -- Is_Task_Master (Flag5-Sem)
5673 -- Activation_Chain_Entity (Node3-Sem)
5674 -- Corresponding_Spec (Node5-Sem)
5675 -- Was_Originally_Stub (Flag13-Sem)
5677 -------------------------------------
5678 -- 9.4 Protected Type Declaration --
5679 -------------------------------------
5681 -- PROTECTED_TYPE_DECLARATION ::=
5682 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5683 -- [ASPECT_SPECIFICATIONS]
5684 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5686 -- Note: protected type declarations are not permitted in Ada 83 mode
5688 -- N_Protected_Type_Declaration
5689 -- Sloc points to PROTECTED
5690 -- Defining_Identifier (Node1)
5691 -- Discriminant_Specifications (List4) (set to No_List if no
5692 -- discriminant part)
5693 -- Interface_List (List2) (set to No_List if none)
5694 -- Protected_Definition (Node3)
5695 -- Corresponding_Body (Node5-Sem)
5697 ---------------------------------------
5698 -- 9.4 Single Protected Declaration --
5699 ---------------------------------------
5701 -- SINGLE_PROTECTED_DECLARATION ::=
5702 -- protected DEFINING_IDENTIFIER
5703 -- [ASPECT_SPECIFICATIONS]
5704 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5706 -- Note: single protected declarations are not allowed in Ada 83 mode
5708 -- N_Single_Protected_Declaration
5709 -- Sloc points to PROTECTED
5710 -- Defining_Identifier (Node1)
5711 -- Interface_List (List2) (set to No_List if none)
5712 -- Protected_Definition (Node3)
5714 -------------------------------
5715 -- 9.4 Protected Definition --
5716 -------------------------------
5718 -- PROTECTED_DEFINITION ::=
5719 -- {PROTECTED_OPERATION_DECLARATION}
5720 -- [private
5721 -- {PROTECTED_ELEMENT_DECLARATION}]
5722 -- end [protected_IDENTIFIER]
5724 -- N_Protected_Definition
5725 -- Sloc points to first token of protected definition
5726 -- Visible_Declarations (List2)
5727 -- Private_Declarations (List3) (set to No_List if no private part)
5728 -- End_Label (Node4)
5730 ------------------------------------------
5731 -- 9.4 Protected Operation Declaration --
5732 ------------------------------------------
5734 -- PROTECTED_OPERATION_DECLARATION ::=
5735 -- SUBPROGRAM_DECLARATION
5736 -- | ENTRY_DECLARATION
5737 -- | REPRESENTATION_CLAUSE
5739 ----------------------------------------
5740 -- 9.4 Protected Element Declaration --
5741 ----------------------------------------
5743 -- PROTECTED_ELEMENT_DECLARATION ::=
5744 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5746 -------------------------
5747 -- 9.4 Protected Body --
5748 -------------------------
5750 -- PROTECTED_BODY ::=
5751 -- protected body DEFINING_IDENTIFIER
5752 -- [ASPECT_SPECIFICATIONS];
5753 -- is
5754 -- {PROTECTED_OPERATION_ITEM}
5755 -- end [protected_IDENTIFIER];
5757 -- Note: protected bodies are not allowed in Ada 83 mode
5759 -- Gigi restriction: This node never appears
5761 -- N_Protected_Body
5762 -- Sloc points to PROTECTED
5763 -- Defining_Identifier (Node1)
5764 -- Declarations (List2) protected operation items (and pragmas)
5765 -- End_Label (Node4)
5766 -- Corresponding_Spec (Node5-Sem)
5767 -- Was_Originally_Stub (Flag13-Sem)
5769 -----------------------------------
5770 -- 9.4 Protected Operation Item --
5771 -----------------------------------
5773 -- PROTECTED_OPERATION_ITEM ::=
5774 -- SUBPROGRAM_DECLARATION
5775 -- | SUBPROGRAM_BODY
5776 -- | ENTRY_BODY
5777 -- | REPRESENTATION_CLAUSE
5779 ------------------------------
5780 -- 9.5.2 Entry Declaration --
5781 ------------------------------
5783 -- ENTRY_DECLARATION ::=
5784 -- [[not] overriding]
5785 -- entry DEFINING_IDENTIFIER
5786 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
5787 -- [ASPECT_SPECIFICATIONS];
5789 -- N_Entry_Declaration
5790 -- Sloc points to ENTRY
5791 -- Defining_Identifier (Node1)
5792 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5793 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5794 -- Corresponding_Body (Node5-Sem)
5795 -- Must_Override (Flag14) set if overriding indicator present
5796 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5798 -- Note: overriding indicator is an Ada 2005 feature
5800 -----------------------------
5801 -- 9.5.2 Accept statement --
5802 -----------------------------
5804 -- ACCEPT_STATEMENT ::=
5805 -- accept entry_DIRECT_NAME
5806 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5807 -- HANDLED_SEQUENCE_OF_STATEMENTS
5808 -- end [entry_IDENTIFIER]];
5810 -- Gigi restriction: This node never appears
5812 -- Note: there are no explicit declarations allowed in an accept
5813 -- statement. However, the implicit declarations for any statement
5814 -- identifiers (labels and block/loop identifiers) are declarations
5815 -- that belong logically to the accept statement, and that is why
5816 -- there is a Declarations field in this node.
5818 -- N_Accept_Statement
5819 -- Sloc points to ACCEPT
5820 -- Entry_Direct_Name (Node1)
5821 -- Entry_Index (Node5) (set to Empty if not present)
5822 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5823 -- Handled_Statement_Sequence (Node4)
5824 -- Declarations (List2) (set to No_List if no declarations)
5826 ------------------------
5827 -- 9.5.2 Entry Index --
5828 ------------------------
5830 -- ENTRY_INDEX ::= EXPRESSION
5832 -----------------------
5833 -- 9.5.2 Entry Body --
5834 -----------------------
5836 -- ENTRY_BODY ::=
5837 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5838 -- DECLARATIVE_PART
5839 -- begin
5840 -- HANDLED_SEQUENCE_OF_STATEMENTS
5841 -- end [entry_IDENTIFIER];
5843 -- ENTRY_BARRIER ::= when CONDITION
5845 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5846 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5847 -- too full (it would otherwise have too many fields)
5849 -- Gigi restriction: This node never appears
5851 -- N_Entry_Body
5852 -- Sloc points to ENTRY
5853 -- Defining_Identifier (Node1)
5854 -- Entry_Body_Formal_Part (Node5)
5855 -- Declarations (List2)
5856 -- Handled_Statement_Sequence (Node4)
5857 -- Activation_Chain_Entity (Node3-Sem)
5859 -----------------------------------
5860 -- 9.5.2 Entry Body Formal Part --
5861 -----------------------------------
5863 -- ENTRY_BODY_FORMAL_PART ::=
5864 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5866 -- Note that an entry body formal part node is present even if it is
5867 -- empty. This reflects the grammar, in which it is the components of
5868 -- the entry body formal part that are optional, not the entry body
5869 -- formal part itself. Also this means that the barrier condition
5870 -- always has somewhere to be stored.
5872 -- Gigi restriction: This node never appears
5874 -- N_Entry_Body_Formal_Part
5875 -- Sloc points to first token
5876 -- Entry_Index_Specification (Node4) (set to Empty if not present)
5877 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5878 -- Condition (Node1) from entry barrier of entry body
5880 --------------------------
5881 -- 9.5.2 Entry Barrier --
5882 --------------------------
5884 -- ENTRY_BARRIER ::= when CONDITION
5886 --------------------------------------
5887 -- 9.5.2 Entry Index Specification --
5888 --------------------------------------
5890 -- ENTRY_INDEX_SPECIFICATION ::=
5891 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5893 -- Gigi restriction: This node never appears
5895 -- N_Entry_Index_Specification
5896 -- Sloc points to FOR
5897 -- Defining_Identifier (Node1)
5898 -- Discrete_Subtype_Definition (Node4)
5900 ---------------------------------
5901 -- 9.5.3 Entry Call Statement --
5902 ---------------------------------
5904 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5906 -- The parser may generate a procedure call for this construct. The
5907 -- semantic pass must correct this misidentification where needed.
5909 -- Gigi restriction: This node never appears
5911 -- N_Entry_Call_Statement
5912 -- Sloc points to first token of name
5913 -- Name (Node2)
5914 -- Parameter_Associations (List3) (set to No_List if no
5915 -- actual parameter part)
5916 -- First_Named_Actual (Node4-Sem)
5918 ------------------------------
5919 -- 9.5.4 Requeue Statement --
5920 ------------------------------
5922 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5924 -- Note: requeue statements are not permitted in Ada 83 mode
5926 -- Gigi restriction: This node never appears
5928 -- N_Requeue_Statement
5929 -- Sloc points to REQUEUE
5930 -- Name (Node2)
5931 -- Abort_Present (Flag15)
5933 --------------------------
5934 -- 9.6 Delay Statement --
5935 --------------------------
5937 -- DELAY_STATEMENT ::=
5938 -- DELAY_UNTIL_STATEMENT
5939 -- | DELAY_RELATIVE_STATEMENT
5941 --------------------------------
5942 -- 9.6 Delay Until Statement --
5943 --------------------------------
5945 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5947 -- Note: delay until statements are not permitted in Ada 83 mode
5949 -- Gigi restriction: This node never appears
5951 -- N_Delay_Until_Statement
5952 -- Sloc points to DELAY
5953 -- Expression (Node3)
5955 -----------------------------------
5956 -- 9.6 Delay Relative Statement --
5957 -----------------------------------
5959 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5961 -- Gigi restriction: This node never appears
5963 -- N_Delay_Relative_Statement
5964 -- Sloc points to DELAY
5965 -- Expression (Node3)
5967 ---------------------------
5968 -- 9.7 Select Statement --
5969 ---------------------------
5971 -- SELECT_STATEMENT ::=
5972 -- SELECTIVE_ACCEPT
5973 -- | TIMED_ENTRY_CALL
5974 -- | CONDITIONAL_ENTRY_CALL
5975 -- | ASYNCHRONOUS_SELECT
5977 -----------------------------
5978 -- 9.7.1 Selective Accept --
5979 -----------------------------
5981 -- SELECTIVE_ACCEPT ::=
5982 -- select
5983 -- [GUARD]
5984 -- SELECT_ALTERNATIVE
5985 -- {or
5986 -- [GUARD]
5987 -- SELECT_ALTERNATIVE}
5988 -- [else
5989 -- SEQUENCE_OF_STATEMENTS]
5990 -- end select;
5992 -- Gigi restriction: This node never appears
5994 -- Note: the guard expression, if present, appears in the node for
5995 -- the select alternative.
5997 -- N_Selective_Accept
5998 -- Sloc points to SELECT
5999 -- Select_Alternatives (List1)
6000 -- Else_Statements (List4) (set to No_List if no else part)
6002 ------------------
6003 -- 9.7.1 Guard --
6004 ------------------
6006 -- GUARD ::= when CONDITION =>
6008 -- As noted above, the CONDITION that is part of a GUARD is included
6009 -- in the node for the select alternative for convenience.
6011 -------------------------------
6012 -- 9.7.1 Select Alternative --
6013 -------------------------------
6015 -- SELECT_ALTERNATIVE ::=
6016 -- ACCEPT_ALTERNATIVE
6017 -- | DELAY_ALTERNATIVE
6018 -- | TERMINATE_ALTERNATIVE
6020 -------------------------------
6021 -- 9.7.1 Accept Alternative --
6022 -------------------------------
6024 -- ACCEPT_ALTERNATIVE ::=
6025 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
6027 -- Gigi restriction: This node never appears
6029 -- N_Accept_Alternative
6030 -- Sloc points to ACCEPT
6031 -- Accept_Statement (Node2)
6032 -- Condition (Node1) from the guard (set to Empty if no guard present)
6033 -- Statements (List3) (set to Empty_List if no statements)
6034 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6035 -- Accept_Handler_Records (List5-Sem)
6037 ------------------------------
6038 -- 9.7.1 Delay Alternative --
6039 ------------------------------
6041 -- DELAY_ALTERNATIVE ::=
6042 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
6044 -- Gigi restriction: This node never appears
6046 -- N_Delay_Alternative
6047 -- Sloc points to DELAY
6048 -- Delay_Statement (Node2)
6049 -- Condition (Node1) from the guard (set to Empty if no guard present)
6050 -- Statements (List3) (set to Empty_List if no statements)
6051 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6053 ----------------------------------
6054 -- 9.7.1 Terminate Alternative --
6055 ----------------------------------
6057 -- TERMINATE_ALTERNATIVE ::= terminate;
6059 -- Gigi restriction: This node never appears
6061 -- N_Terminate_Alternative
6062 -- Sloc points to TERMINATE
6063 -- Condition (Node1) from the guard (set to Empty if no guard present)
6064 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6065 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
6067 -----------------------------
6068 -- 9.7.2 Timed Entry Call --
6069 -----------------------------
6071 -- TIMED_ENTRY_CALL ::=
6072 -- select
6073 -- ENTRY_CALL_ALTERNATIVE
6074 -- or
6075 -- DELAY_ALTERNATIVE
6076 -- end select;
6078 -- Gigi restriction: This node never appears
6080 -- N_Timed_Entry_Call
6081 -- Sloc points to SELECT
6082 -- Entry_Call_Alternative (Node1)
6083 -- Delay_Alternative (Node4)
6085 -----------------------------------
6086 -- 9.7.2 Entry Call Alternative --
6087 -----------------------------------
6089 -- ENTRY_CALL_ALTERNATIVE ::=
6090 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
6092 -- PROCEDURE_OR_ENTRY_CALL ::=
6093 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
6095 -- Gigi restriction: This node never appears
6097 -- N_Entry_Call_Alternative
6098 -- Sloc points to first token of entry call statement
6099 -- Entry_Call_Statement (Node1)
6100 -- Statements (List3) (set to Empty_List if no statements)
6101 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6103 -----------------------------------
6104 -- 9.7.3 Conditional Entry Call --
6105 -----------------------------------
6107 -- CONDITIONAL_ENTRY_CALL ::=
6108 -- select
6109 -- ENTRY_CALL_ALTERNATIVE
6110 -- else
6111 -- SEQUENCE_OF_STATEMENTS
6112 -- end select;
6114 -- Gigi restriction: This node never appears
6116 -- N_Conditional_Entry_Call
6117 -- Sloc points to SELECT
6118 -- Entry_Call_Alternative (Node1)
6119 -- Else_Statements (List4)
6121 --------------------------------
6122 -- 9.7.4 Asynchronous Select --
6123 --------------------------------
6125 -- ASYNCHRONOUS_SELECT ::=
6126 -- select
6127 -- TRIGGERING_ALTERNATIVE
6128 -- then abort
6129 -- ABORTABLE_PART
6130 -- end select;
6132 -- Note: asynchronous select is not permitted in Ada 83 mode
6134 -- Gigi restriction: This node never appears
6136 -- N_Asynchronous_Select
6137 -- Sloc points to SELECT
6138 -- Triggering_Alternative (Node1)
6139 -- Abortable_Part (Node2)
6141 -----------------------------------
6142 -- 9.7.4 Triggering Alternative --
6143 -----------------------------------
6145 -- TRIGGERING_ALTERNATIVE ::=
6146 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6148 -- Gigi restriction: This node never appears
6150 -- N_Triggering_Alternative
6151 -- Sloc points to first token of triggering statement
6152 -- Triggering_Statement (Node1)
6153 -- Statements (List3) (set to Empty_List if no statements)
6154 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6156 ---------------------------------
6157 -- 9.7.4 Triggering Statement --
6158 ---------------------------------
6160 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6162 ---------------------------
6163 -- 9.7.4 Abortable Part --
6164 ---------------------------
6166 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6168 -- Gigi restriction: This node never appears
6170 -- N_Abortable_Part
6171 -- Sloc points to ABORT
6172 -- Statements (List3)
6174 --------------------------
6175 -- 9.8 Abort Statement --
6176 --------------------------
6178 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6180 -- Gigi restriction: This node never appears
6182 -- N_Abort_Statement
6183 -- Sloc points to ABORT
6184 -- Names (List2)
6186 -------------------------
6187 -- 10.1.1 Compilation --
6188 -------------------------
6190 -- COMPILATION ::= {COMPILATION_UNIT}
6192 -- There is no explicit node in the tree for a compilation, since in
6193 -- general the compiler is processing only a single compilation unit
6194 -- at a time. It is possible to parse multiple units in syntax check
6195 -- only mode, but the trees are discarded in that case.
6197 ------------------------------
6198 -- 10.1.1 Compilation Unit --
6199 ------------------------------
6201 -- COMPILATION_UNIT ::=
6202 -- CONTEXT_CLAUSE LIBRARY_ITEM
6203 -- | CONTEXT_CLAUSE SUBUNIT
6205 -- The N_Compilation_Unit node itself represents the above syntax.
6206 -- However, there are two additional items not reflected in the above
6207 -- syntax. First we have the global declarations that are added by the
6208 -- code generator. These are outer level declarations (so they cannot
6209 -- be represented as being inside the units). An example is the wrapper
6210 -- subprograms that are created to do ABE checking. As always a list of
6211 -- declarations can contain actions as well (i.e. statements), and such
6212 -- statements are executed as part of the elaboration of the unit. Note
6213 -- that all such declarations are elaborated before the library unit.
6215 -- Similarly, certain actions need to be elaborated at the completion
6216 -- of elaboration of the library unit (notably the statement that sets
6217 -- the Boolean flag indicating that elaboration is complete).
6219 -- The third item not reflected in the syntax is pragmas that appear
6220 -- after the compilation unit. As always pragmas are a problem since
6221 -- they are not part of the formal syntax, but can be stuck into the
6222 -- source following a set of ad hoc rules, and we have to find an ad
6223 -- hoc way of sticking them into the tree. For pragmas that appear
6224 -- before the library unit, we just consider them to be part of the
6225 -- context clause, and pragmas can appear in the Context_Items list
6226 -- of the compilation unit. However, pragmas can also appear after
6227 -- the library item.
6229 -- To deal with all these problems, we create an auxiliary node for
6230 -- a compilation unit, referenced from the N_Compilation_Unit node,
6231 -- that contains these items.
6233 -- N_Compilation_Unit
6234 -- Sloc points to first token of defining unit name
6235 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6236 -- Context_Items (List1) context items and pragmas preceding unit
6237 -- Private_Present (Flag15) set if library unit has private keyword
6238 -- Unit (Node2) library item or subunit
6239 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6240 -- Has_No_Elaboration_Code (Flag17-Sem)
6241 -- Body_Required (Flag13-Sem) set for spec if body is required
6242 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6243 -- Context_Pending (Flag16-Sem)
6244 -- First_Inlined_Subprogram (Node3-Sem)
6245 -- Has_Pragma_Suppress_All (Flag14-Sem)
6247 -- N_Compilation_Unit_Aux
6248 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6249 -- Declarations (List2) (set to No_List if no global declarations)
6250 -- Actions (List1) (set to No_List if no actions)
6251 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6252 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6253 -- Default_Storage_Pool (Node3-Sem)
6255 --------------------------
6256 -- 10.1.1 Library Item --
6257 --------------------------
6259 -- LIBRARY_ITEM ::=
6260 -- [private] LIBRARY_UNIT_DECLARATION
6261 -- | LIBRARY_UNIT_BODY
6262 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6264 -- Note: PRIVATE is not allowed in Ada 83 mode
6266 -- There is no explicit node in the tree for library item, instead
6267 -- the declaration or body, and the flag for private if present,
6268 -- appear in the N_Compilation_Unit node.
6270 --------------------------------------
6271 -- 10.1.1 Library Unit Declaration --
6272 --------------------------------------
6274 -- LIBRARY_UNIT_DECLARATION ::=
6275 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6276 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6278 -----------------------------------------------
6279 -- 10.1.1 Library Unit Renaming Declaration --
6280 -----------------------------------------------
6282 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6283 -- PACKAGE_RENAMING_DECLARATION
6284 -- | GENERIC_RENAMING_DECLARATION
6285 -- | SUBPROGRAM_RENAMING_DECLARATION
6287 -------------------------------
6288 -- 10.1.1 Library unit body --
6289 -------------------------------
6291 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6293 ------------------------------
6294 -- 10.1.1 Parent Unit Name --
6295 ------------------------------
6297 -- PARENT_UNIT_NAME ::= NAME
6299 ----------------------------
6300 -- 10.1.2 Context clause --
6301 ----------------------------
6303 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6305 -- The context clause can include pragmas, and any pragmas that appear
6306 -- before the context clause proper (i.e. all configuration pragmas,
6307 -- also appear at the front of this list).
6309 --------------------------
6310 -- 10.1.2 Context_Item --
6311 --------------------------
6313 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6315 -------------------------
6316 -- 10.1.2 With clause --
6317 -------------------------
6319 -- WITH_CLAUSE ::=
6320 -- with library_unit_NAME {,library_unit_NAME};
6322 -- A separate With clause is built for each name, so that we have
6323 -- a Corresponding_Spec field for each with'ed spec. The flags
6324 -- First_Name and Last_Name are used to reconstruct the exact
6325 -- source form. When a list of names appears in one with clause,
6326 -- the first name in the list has First_Name set, and the last
6327 -- has Last_Name set. If the with clause has only one name, then
6328 -- both of the flags First_Name and Last_Name are set in this name.
6330 -- Note: in the case of implicit with's that are installed by the
6331 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6332 -- set to Standard_Location, but it is incorrect to test the Sloc
6333 -- to find out if a with clause is implicit, test the flag instead.
6335 -- N_With_Clause
6336 -- Sloc points to first token of library unit name
6337 -- Withed_Body (Node1-Sem)
6338 -- Name (Node2)
6339 -- Next_Implicit_With (Node3-Sem)
6340 -- Library_Unit (Node4-Sem)
6341 -- Corresponding_Spec (Node5-Sem)
6342 -- First_Name (Flag5) (set to True if first name or only one name)
6343 -- Last_Name (Flag6) (set to True if last name or only one name)
6344 -- Context_Installed (Flag13-Sem)
6345 -- Elaborate_Present (Flag4-Sem)
6346 -- Elaborate_All_Present (Flag14-Sem)
6347 -- Elaborate_All_Desirable (Flag9-Sem)
6348 -- Elaborate_Desirable (Flag11-Sem)
6349 -- Private_Present (Flag15) set if with_clause has private keyword
6350 -- Implicit_With (Flag16-Sem)
6351 -- Implicit_With_From_Instantiation (Flag12-Sem)
6352 -- Limited_Present (Flag17) set if LIMITED is present
6353 -- Limited_View_Installed (Flag18-Sem)
6354 -- Unreferenced_In_Spec (Flag7-Sem)
6355 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6357 -- Note: Limited_Present and Limited_View_Installed are used to support
6358 -- the implementation of Ada 2005 (AI-50217).
6360 -- Similarly, Private_Present is used to support the implementation of
6361 -- Ada 2005 (AI-50262).
6363 ----------------------
6364 -- With_Type clause --
6365 ----------------------
6367 -- This is a GNAT extension, used to implement mutually recursive
6368 -- types declared in different packages.
6370 -- Note: this is now obsolete. The functionality of this construct
6371 -- is now implemented by the Ada 2005 limited_with_clause.
6373 ---------------------
6374 -- 10.2 Body stub --
6375 ---------------------
6377 -- BODY_STUB ::=
6378 -- SUBPROGRAM_BODY_STUB
6379 -- | PACKAGE_BODY_STUB
6380 -- | TASK_BODY_STUB
6381 -- | PROTECTED_BODY_STUB
6383 ----------------------------------
6384 -- 10.1.3 Subprogram Body Stub --
6385 ----------------------------------
6387 -- SUBPROGRAM_BODY_STUB ::=
6388 -- SUBPROGRAM_SPECIFICATION is separate
6389 -- [ASPECT_SPECIFICATION];
6391 -- N_Subprogram_Body_Stub
6392 -- Sloc points to FUNCTION or PROCEDURE
6393 -- Specification (Node1)
6394 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6395 -- Library_Unit (Node4-Sem) points to the subunit
6396 -- Corresponding_Body (Node5-Sem)
6398 -------------------------------
6399 -- 10.1.3 Package Body Stub --
6400 -------------------------------
6402 -- PACKAGE_BODY_STUB ::=
6403 -- package body DEFINING_IDENTIFIER is separate
6404 -- [ASPECT_SPECIFICATION];
6406 -- N_Package_Body_Stub
6407 -- Sloc points to PACKAGE
6408 -- Defining_Identifier (Node1)
6409 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6410 -- Library_Unit (Node4-Sem) points to the subunit
6411 -- Corresponding_Body (Node5-Sem)
6413 ----------------------------
6414 -- 10.1.3 Task Body Stub --
6415 ----------------------------
6417 -- TASK_BODY_STUB ::=
6418 -- task body DEFINING_IDENTIFIER is separate
6419 -- [ASPECT_SPECIFICATION];
6421 -- N_Task_Body_Stub
6422 -- Sloc points to TASK
6423 -- Defining_Identifier (Node1)
6424 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6425 -- Library_Unit (Node4-Sem) points to the subunit
6426 -- Corresponding_Body (Node5-Sem)
6428 ---------------------------------
6429 -- 10.1.3 Protected Body Stub --
6430 ---------------------------------
6432 -- PROTECTED_BODY_STUB ::=
6433 -- protected body DEFINING_IDENTIFIER is separate
6434 -- [ASPECT_SPECIFICATION];
6436 -- Note: protected body stubs are not allowed in Ada 83 mode
6438 -- N_Protected_Body_Stub
6439 -- Sloc points to PROTECTED
6440 -- Defining_Identifier (Node1)
6441 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6442 -- Library_Unit (Node4-Sem) points to the subunit
6443 -- Corresponding_Body (Node5-Sem)
6445 ---------------------
6446 -- 10.1.3 Subunit --
6447 ---------------------
6449 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6451 -- N_Subunit
6452 -- Sloc points to SEPARATE
6453 -- Name (Node2) is the name of the parent unit
6454 -- Proper_Body (Node1) is the subunit body
6455 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6457 ---------------------------------
6458 -- 11.1 Exception Declaration --
6459 ---------------------------------
6461 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6462 -- [ASPECT_SPECIFICATIONS];
6464 -- For consistency with object declarations etc., the parser converts
6465 -- the case of multiple identifiers being declared to a series of
6466 -- declarations in which the expression is copied, using the More_Ids
6467 -- and Prev_Ids flags to remember the source form as described in the
6468 -- section on "Handling of Defining Identifier Lists".
6470 -- N_Exception_Declaration
6471 -- Sloc points to EXCEPTION
6472 -- Defining_Identifier (Node1)
6473 -- Expression (Node3-Sem)
6474 -- Renaming_Exception (Node2-Sem)
6475 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6476 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6478 ------------------------------------------
6479 -- 11.2 Handled Sequence Of Statements --
6480 ------------------------------------------
6482 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6483 -- SEQUENCE_OF_STATEMENTS
6484 -- [exception
6485 -- EXCEPTION_HANDLER
6486 -- {EXCEPTION_HANDLER}]
6487 -- [at end
6488 -- cleanup_procedure_call (param, param, param, ...);]
6490 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6491 -- used only internally currently, but is considered to be syntactic.
6492 -- At the moment, the only cleanup action allowed is a single call to
6493 -- a parameterless procedure, and the Identifier field of the node is
6494 -- the procedure to be called. The cleanup action occurs whenever the
6495 -- sequence of statements is left for any reason. The possible reasons
6496 -- are:
6497 -- 1. reaching the end of the sequence
6498 -- 2. exit, return, or goto
6499 -- 3. exception or abort
6500 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6501 -- entirely in the back end. In this case, a handled sequence of
6502 -- statements with an "at end" cannot also have exception handlers.
6503 -- For other back ends, such as gcc with SJLJ and .NET, the
6504 -- implementation is split between the front end and back end; the front
6505 -- end implements 3, and the back end implements 1 and 2. In this case,
6506 -- if there is an "at end", the front end inserts the appropriate
6507 -- exception handler, and this handler takes precedence over "at end"
6508 -- in case of exception.
6510 -- The inserted exception handler is of the form:
6512 -- when all others =>
6513 -- cleanup;
6514 -- raise;
6516 -- where cleanup is the procedure to be called. The reason we do this is
6517 -- so that the front end can handle the necessary entries in the
6518 -- exception tables, and other exception handler actions required as
6519 -- part of the normal handling for exception handlers.
6521 -- The AT END cleanup handler protects only the sequence of statements
6522 -- (not the associated declarations of the parent), just like exception
6523 -- handlers. The big difference is that the cleanup procedure is called
6524 -- on either a normal or an abnormal exit from the statement sequence.
6526 -- Note: the list of Exception_Handlers can contain pragmas as well
6527 -- as actual handlers. In practice these pragmas can only occur at
6528 -- the start of the list, since any pragmas occurring later on will
6529 -- be included in the statement list of the corresponding handler.
6531 -- Note: although in the Ada syntax, the sequence of statements in
6532 -- a handled sequence of statements can only contain statements, we
6533 -- allow free mixing of declarations and statements in the resulting
6534 -- expanded tree. This is for example used to deal with the case of
6535 -- a cleanup procedure that must handle declarations as well as the
6536 -- statements of a block.
6538 -- Note: the cleanup_procedure_call does not go through the common
6539 -- processing for calls, which in particular means that it will not be
6540 -- automatically inlined in all cases, even though the procedure to be
6541 -- called is marked inline. More specifically, if the procedure comes
6542 -- from another unit than the main source unit, for example a run-time
6543 -- unit, then it needs to be manually added to the list of bodies to be
6544 -- inlined by invoking Add_Inlined_Body on it.
6546 -- N_Handled_Sequence_Of_Statements
6547 -- Sloc points to first token of first statement
6548 -- Statements (List3)
6549 -- End_Label (Node4) (set to Empty if expander generated)
6550 -- Exception_Handlers (List5) (set to No_List if none present)
6551 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6552 -- First_Real_Statement (Node2-Sem)
6554 -- Note: the parent always contains a Declarations field which contains
6555 -- declarations associated with the handled sequence of statements. This
6556 -- is true even in the case of an accept statement (see description of
6557 -- the N_Accept_Statement node).
6559 -- End_Label refers to the containing construct
6561 -----------------------------
6562 -- 11.2 Exception Handler --
6563 -----------------------------
6565 -- EXCEPTION_HANDLER ::=
6566 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6567 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6568 -- SEQUENCE_OF_STATEMENTS
6570 -- Note: choice parameter specification is not allowed in Ada 83 mode
6572 -- N_Exception_Handler
6573 -- Sloc points to WHEN
6574 -- Choice_Parameter (Node2) (set to Empty if not present)
6575 -- Exception_Choices (List4)
6576 -- Statements (List3)
6577 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6578 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6579 -- Local_Raise_Not_OK (Flag7-Sem)
6580 -- Has_Local_Raise (Flag8-Sem)
6582 ------------------------------------------
6583 -- 11.2 Choice parameter specification --
6584 ------------------------------------------
6586 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6588 ----------------------------
6589 -- 11.2 Exception Choice --
6590 ----------------------------
6592 -- EXCEPTION_CHOICE ::= exception_NAME | others
6594 -- Except in the case of OTHERS, no explicit node appears in the tree
6595 -- for exception choice. Instead the exception name appears directly.
6596 -- An OTHERS choice is represented by a N_Others_Choice node (see
6597 -- section 3.8.1.
6599 -- Note: for the exception choice created for an at end handler, the
6600 -- exception choice is an N_Others_Choice node with All_Others set.
6602 ---------------------------
6603 -- 11.3 Raise Statement --
6604 ---------------------------
6606 -- RAISE_STATEMENT ::= raise [exception_NAME];
6608 -- In Ada 2005, we have
6610 -- RAISE_STATEMENT ::=
6611 -- raise; | raise exception_NAME [with string_EXPRESSION];
6613 -- N_Raise_Statement
6614 -- Sloc points to RAISE
6615 -- Name (Node2) (set to Empty if no exception name present)
6616 -- Expression (Node3) (set to Empty if no expression present)
6617 -- From_At_End (Flag4-Sem)
6619 ----------------------------
6620 -- 11.3 Raise Expression --
6621 ----------------------------
6623 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6625 -- N_Raise_Expression
6626 -- Sloc points to RAISE
6627 -- Name (Node2) (always present)
6628 -- Expression (Node3) (set to Empty if no expression present)
6629 -- Convert_To_Return_False (Flag13-Sem)
6630 -- plus fields for expression
6632 -------------------------------
6633 -- 12.1 Generic Declaration --
6634 -------------------------------
6636 -- GENERIC_DECLARATION ::=
6637 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6639 ------------------------------------------
6640 -- 12.1 Generic Subprogram Declaration --
6641 ------------------------------------------
6643 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6644 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6645 -- [ASPECT_SPECIFICATIONS];
6647 -- Note: Generic_Formal_Declarations can include pragmas
6649 -- N_Generic_Subprogram_Declaration
6650 -- Sloc points to GENERIC
6651 -- Specification (Node1) subprogram specification
6652 -- Corresponding_Body (Node5-Sem)
6653 -- Generic_Formal_Declarations (List2) from generic formal part
6654 -- Parent_Spec (Node4-Sem)
6656 ---------------------------------------
6657 -- 12.1 Generic Package Declaration --
6658 ---------------------------------------
6660 -- GENERIC_PACKAGE_DECLARATION ::=
6661 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6662 -- [ASPECT_SPECIFICATIONS];
6664 -- Note: when we do generics right, the Activation_Chain_Entity entry
6665 -- for this node can be removed (since the expander won't see generic
6666 -- units any more)???.
6668 -- Note: Generic_Formal_Declarations can include pragmas
6670 -- N_Generic_Package_Declaration
6671 -- Sloc points to GENERIC
6672 -- Specification (Node1) package specification
6673 -- Corresponding_Body (Node5-Sem)
6674 -- Generic_Formal_Declarations (List2) from generic formal part
6675 -- Parent_Spec (Node4-Sem)
6676 -- Activation_Chain_Entity (Node3-Sem)
6678 -------------------------------
6679 -- 12.1 Generic Formal Part --
6680 -------------------------------
6682 -- GENERIC_FORMAL_PART ::=
6683 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6685 ------------------------------------------------
6686 -- 12.1 Generic Formal Parameter Declaration --
6687 ------------------------------------------------
6689 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6690 -- FORMAL_OBJECT_DECLARATION
6691 -- | FORMAL_TYPE_DECLARATION
6692 -- | FORMAL_SUBPROGRAM_DECLARATION
6693 -- | FORMAL_PACKAGE_DECLARATION
6695 ---------------------------------
6696 -- 12.3 Generic Instantiation --
6697 ---------------------------------
6699 -- GENERIC_INSTANTIATION ::=
6700 -- package DEFINING_PROGRAM_UNIT_NAME is
6701 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6702 -- [ASPECT_SPECIFICATIONS];
6703 -- | [[not] overriding]
6704 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6705 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6706 -- [ASPECT_SPECIFICATIONS];
6707 -- | [[not] overriding]
6708 -- function DEFINING_DESIGNATOR is
6709 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6710 -- [ASPECT_SPECIFICATIONS];
6712 -- N_Package_Instantiation
6713 -- Sloc points to PACKAGE
6714 -- Defining_Unit_Name (Node1)
6715 -- Name (Node2)
6716 -- Generic_Associations (List3) (set to No_List if no
6717 -- generic actual part)
6718 -- Parent_Spec (Node4-Sem)
6719 -- Instance_Spec (Node5-Sem)
6720 -- ABE_Is_Certain (Flag18-Sem)
6722 -- N_Procedure_Instantiation
6723 -- Sloc points to PROCEDURE
6724 -- Defining_Unit_Name (Node1)
6725 -- Name (Node2)
6726 -- Parent_Spec (Node4-Sem)
6727 -- Generic_Associations (List3) (set to No_List if no
6728 -- generic actual part)
6729 -- Instance_Spec (Node5-Sem)
6730 -- Must_Override (Flag14) set if overriding indicator present
6731 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6732 -- ABE_Is_Certain (Flag18-Sem)
6734 -- N_Function_Instantiation
6735 -- Sloc points to FUNCTION
6736 -- Defining_Unit_Name (Node1)
6737 -- Name (Node2)
6738 -- Generic_Associations (List3) (set to No_List if no
6739 -- generic actual part)
6740 -- Parent_Spec (Node4-Sem)
6741 -- Instance_Spec (Node5-Sem)
6742 -- Must_Override (Flag14) set if overriding indicator present
6743 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6744 -- ABE_Is_Certain (Flag18-Sem)
6746 -- Note: overriding indicator is an Ada 2005 feature
6748 -------------------------------
6749 -- 12.3 Generic Actual Part --
6750 -------------------------------
6752 -- GENERIC_ACTUAL_PART ::=
6753 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6755 -------------------------------
6756 -- 12.3 Generic Association --
6757 -------------------------------
6759 -- GENERIC_ASSOCIATION ::=
6760 -- [generic_formal_parameter_SELECTOR_NAME =>]
6762 -- Note: unlike the procedure call case, a generic association node
6763 -- is generated for every association, even if no formal parameter
6764 -- selector name is present. In this case the parser will leave the
6765 -- Selector_Name field set to Empty, to be filled in later by the
6766 -- semantic pass.
6768 -- In Ada 2005, a formal may be associated with a box, if the
6769 -- association is part of the list of actuals for a formal package.
6770 -- If the association is given by OTHERS => <>, the association is
6771 -- an N_Others_Choice.
6773 -- N_Generic_Association
6774 -- Sloc points to first token of generic association
6775 -- Selector_Name (Node2) (set to Empty if no formal
6776 -- parameter selector name)
6777 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6778 -- Box_Present (Flag15) (for formal_package associations with a box)
6780 ---------------------------------------------
6781 -- 12.3 Explicit Generic Actual Parameter --
6782 ---------------------------------------------
6784 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6785 -- EXPRESSION | variable_NAME | subprogram_NAME
6786 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
6788 -------------------------------------
6789 -- 12.4 Formal Object Declaration --
6790 -------------------------------------
6792 -- FORMAL_OBJECT_DECLARATION ::=
6793 -- DEFINING_IDENTIFIER_LIST :
6794 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6795 -- [ASPECT_SPECIFICATIONS];
6796 -- | DEFINING_IDENTIFIER_LIST :
6797 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6798 -- [ASPECT_SPECIFICATIONS];
6800 -- Although the syntax allows multiple identifiers in the list, the
6801 -- semantics is as though successive declarations were given with
6802 -- identical type definition and expression components. To simplify
6803 -- semantic processing, the parser represents a multiple declaration
6804 -- case as a sequence of single declarations, using the More_Ids and
6805 -- Prev_Ids flags to preserve the original source form as described
6806 -- in the section on "Handling of Defining Identifier Lists".
6808 -- N_Formal_Object_Declaration
6809 -- Sloc points to first identifier
6810 -- Defining_Identifier (Node1)
6811 -- In_Present (Flag15)
6812 -- Out_Present (Flag17)
6813 -- Null_Exclusion_Present (Flag11) (set to False if not present)
6814 -- Subtype_Mark (Node4) (set to Empty if not present)
6815 -- Access_Definition (Node3) (set to Empty if not present)
6816 -- Default_Expression (Node5) (set to Empty if no default expression)
6817 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6818 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6820 -----------------------------------
6821 -- 12.5 Formal Type Declaration --
6822 -----------------------------------
6824 -- FORMAL_TYPE_DECLARATION ::=
6825 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6826 -- is FORMAL_TYPE_DEFINITION
6827 -- [ASPECT_SPECIFICATIONS];
6828 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
6830 -- N_Formal_Type_Declaration
6831 -- Sloc points to TYPE
6832 -- Defining_Identifier (Node1)
6833 -- Formal_Type_Definition (Node3)
6834 -- Discriminant_Specifications (List4) (set to No_List if no
6835 -- discriminant part)
6836 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6838 ----------------------------------
6839 -- 12.5 Formal type definition --
6840 ----------------------------------
6842 -- FORMAL_TYPE_DEFINITION ::=
6843 -- FORMAL_PRIVATE_TYPE_DEFINITION
6844 -- | FORMAL_DERIVED_TYPE_DEFINITION
6845 -- | FORMAL_DISCRETE_TYPE_DEFINITION
6846 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6847 -- | FORMAL_MODULAR_TYPE_DEFINITION
6848 -- | FORMAL_FLOATING_POINT_DEFINITION
6849 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6850 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6851 -- | FORMAL_ARRAY_TYPE_DEFINITION
6852 -- | FORMAL_ACCESS_TYPE_DEFINITION
6853 -- | FORMAL_INTERFACE_TYPE_DEFINITION
6854 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
6856 -- The Ada 2012 syntax introduces two new non-terminals:
6857 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
6858 -- the latter category. Here we introduce an incomplete type definition
6859 -- in order to preserve as much as possible the existing structure.
6861 ---------------------------------------------
6862 -- 12.5.1 Formal Private Type Definition --
6863 ---------------------------------------------
6865 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
6866 -- [[abstract] tagged] [limited] private
6868 -- Note: TAGGED is not allowed in Ada 83 mode
6870 -- N_Formal_Private_Type_Definition
6871 -- Sloc points to PRIVATE
6872 -- Uninitialized_Variable (Node3-Sem)
6873 -- Abstract_Present (Flag4)
6874 -- Tagged_Present (Flag15)
6875 -- Limited_Present (Flag17)
6877 --------------------------------------------
6878 -- 12.5.1 Formal Derived Type Definition --
6879 --------------------------------------------
6881 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
6882 -- [abstract] [limited | synchronized]
6883 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6884 -- Note: this construct is not allowed in Ada 83 mode
6886 -- N_Formal_Derived_Type_Definition
6887 -- Sloc points to NEW
6888 -- Subtype_Mark (Node4)
6889 -- Private_Present (Flag15)
6890 -- Abstract_Present (Flag4)
6891 -- Limited_Present (Flag17)
6892 -- Synchronized_Present (Flag7)
6893 -- Interface_List (List2) (set to No_List if none)
6895 -----------------------------------------------
6896 -- 12.5.1 Formal Incomplete Type Definition --
6897 -----------------------------------------------
6899 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
6901 -- N_Formal_Incomplete_Type_Definition
6902 -- Sloc points to identifier of parent
6903 -- Tagged_Present (Flag15)
6905 ---------------------------------------------
6906 -- 12.5.2 Formal Discrete Type Definition --
6907 ---------------------------------------------
6909 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6911 -- N_Formal_Discrete_Type_Definition
6912 -- Sloc points to (
6914 ---------------------------------------------------
6915 -- 12.5.2 Formal Signed Integer Type Definition --
6916 ---------------------------------------------------
6918 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6920 -- N_Formal_Signed_Integer_Type_Definition
6921 -- Sloc points to RANGE
6923 --------------------------------------------
6924 -- 12.5.2 Formal Modular Type Definition --
6925 --------------------------------------------
6927 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6929 -- N_Formal_Modular_Type_Definition
6930 -- Sloc points to MOD
6932 ----------------------------------------------
6933 -- 12.5.2 Formal Floating Point Definition --
6934 ----------------------------------------------
6936 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6938 -- N_Formal_Floating_Point_Definition
6939 -- Sloc points to DIGITS
6941 ----------------------------------------------------
6942 -- 12.5.2 Formal Ordinary Fixed Point Definition --
6943 ----------------------------------------------------
6945 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6947 -- N_Formal_Ordinary_Fixed_Point_Definition
6948 -- Sloc points to DELTA
6950 ---------------------------------------------------
6951 -- 12.5.2 Formal Decimal Fixed Point Definition --
6952 ---------------------------------------------------
6954 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6956 -- Note: formal decimal fixed point definition not allowed in Ada 83
6958 -- N_Formal_Decimal_Fixed_Point_Definition
6959 -- Sloc points to DELTA
6961 ------------------------------------------
6962 -- 12.5.3 Formal Array Type Definition --
6963 ------------------------------------------
6965 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6967 -------------------------------------------
6968 -- 12.5.4 Formal Access Type Definition --
6969 -------------------------------------------
6971 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6973 ----------------------------------------------
6974 -- 12.5.5 Formal Interface Type Definition --
6975 ----------------------------------------------
6977 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6979 -----------------------------------------
6980 -- 12.6 Formal Subprogram Declaration --
6981 -----------------------------------------
6983 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6984 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6985 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6987 --------------------------------------------------
6988 -- 12.6 Formal Concrete Subprogram Declaration --
6989 --------------------------------------------------
6991 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6992 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6993 -- [ASPECT_SPECIFICATIONS];
6995 -- N_Formal_Concrete_Subprogram_Declaration
6996 -- Sloc points to WITH
6997 -- Specification (Node1)
6998 -- Default_Name (Node2) (set to Empty if no subprogram default)
6999 -- Box_Present (Flag15)
7001 -- Note: if no subprogram default is present, then Name is set
7002 -- to Empty, and Box_Present is False.
7004 --------------------------------------------------
7005 -- 12.6 Formal Abstract Subprogram Declaration --
7006 --------------------------------------------------
7008 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
7009 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
7010 -- [ASPECT_SPECIFICATIONS];
7012 -- N_Formal_Abstract_Subprogram_Declaration
7013 -- Sloc points to WITH
7014 -- Specification (Node1)
7015 -- Default_Name (Node2) (set to Empty if no subprogram default)
7016 -- Box_Present (Flag15)
7018 -- Note: if no subprogram default is present, then Name is set
7019 -- to Empty, and Box_Present is False.
7021 ------------------------------
7022 -- 12.6 Subprogram Default --
7023 ------------------------------
7025 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
7027 -- There is no separate node in the tree for a subprogram default.
7028 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
7029 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
7030 -- default name or box indication, as needed.
7032 ------------------------
7033 -- 12.6 Default Name --
7034 ------------------------
7036 -- DEFAULT_NAME ::= NAME
7038 --------------------------------------
7039 -- 12.7 Formal Package Declaration --
7040 --------------------------------------
7042 -- FORMAL_PACKAGE_DECLARATION ::=
7043 -- with package DEFINING_IDENTIFIER
7044 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
7045 -- [ASPECT_SPECIFICATIONS];
7047 -- Note: formal package declarations not allowed in Ada 83 mode
7049 -- N_Formal_Package_Declaration
7050 -- Sloc points to WITH
7051 -- Defining_Identifier (Node1)
7052 -- Name (Node2)
7053 -- Generic_Associations (List3) (set to No_List if (<>) case or
7054 -- empty generic actual part)
7055 -- Box_Present (Flag15)
7056 -- Instance_Spec (Node5-Sem)
7057 -- ABE_Is_Certain (Flag18-Sem)
7059 --------------------------------------
7060 -- 12.7 Formal Package Actual Part --
7061 --------------------------------------
7063 -- FORMAL_PACKAGE_ACTUAL_PART ::=
7064 -- ([OTHERS] => <>)
7065 -- | [GENERIC_ACTUAL_PART]
7066 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
7068 -- FORMAL_PACKAGE_ASSOCIATION ::=
7069 -- GENERIC_ASSOCIATION
7070 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
7072 -- There is no explicit node in the tree for a formal package actual
7073 -- part. Instead the information appears in the parent node (i.e. the
7074 -- formal package declaration node itself).
7076 -- There is no explicit node for a formal package association. All of
7077 -- them are represented either by a generic association, possibly with
7078 -- Box_Present, or by an N_Others_Choice.
7080 ---------------------------------
7081 -- 13.1 Representation clause --
7082 ---------------------------------
7084 -- REPRESENTATION_CLAUSE ::=
7085 -- ATTRIBUTE_DEFINITION_CLAUSE
7086 -- | ENUMERATION_REPRESENTATION_CLAUSE
7087 -- | RECORD_REPRESENTATION_CLAUSE
7088 -- | AT_CLAUSE
7090 ----------------------
7091 -- 13.1 Local Name --
7092 ----------------------
7094 -- LOCAL_NAME :=
7095 -- DIRECT_NAME
7096 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
7097 -- | library_unit_NAME
7099 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
7100 -- as an attribute reference, which has essentially the same form.
7102 ---------------------------------------
7103 -- 13.3 Attribute definition clause --
7104 ---------------------------------------
7106 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
7107 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
7108 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
7110 -- In Ada 83, the expression must be a simple expression and the
7111 -- local name must be a direct name.
7113 -- Note: the only attribute definition clause that is processed by
7114 -- gigi is an address clause. For all other cases, the information
7115 -- is extracted by the front end and either results in setting entity
7116 -- information, e.g. Esize for the Size clause, or in appropriate
7117 -- expansion actions (e.g. in the case of Storage_Size).
7119 -- For an address clause, Gigi constructs the appropriate addressing
7120 -- code. It also ensures that no aliasing optimizations are made
7121 -- for the object for which the address clause appears.
7123 -- Note: for an address clause used to achieve an overlay:
7125 -- A : Integer;
7126 -- B : Integer;
7127 -- for B'Address use A'Address;
7129 -- the above rule means that Gigi will ensure that no optimizations
7130 -- will be made for B that would violate the implementation advice
7131 -- of RM 13.3(19). However, this advice applies only to B and not
7132 -- to A, which seems unfortunate. The GNAT front end will mark the
7133 -- object A as volatile to also prevent unwanted optimization
7134 -- assumptions based on no aliasing being made for B.
7136 -- N_Attribute_Definition_Clause
7137 -- Sloc points to FOR
7138 -- Name (Node2) the local name
7139 -- Chars (Name1) the identifier name from the attribute designator
7140 -- Expression (Node3) the expression or name
7141 -- Entity (Node4-Sem)
7142 -- Next_Rep_Item (Node5-Sem)
7143 -- From_At_Mod (Flag4-Sem)
7144 -- Check_Address_Alignment (Flag11-Sem)
7145 -- From_Aspect_Specification (Flag13-Sem)
7146 -- Is_Delayed_Aspect (Flag14-Sem)
7147 -- Address_Warning_Posted (Flag18-Sem)
7149 -- Note: if From_Aspect_Specification is set, then Sloc points to the
7150 -- aspect name, and Entity is resolved already to reference the entity
7151 -- to which the aspect applies.
7153 -----------------------------------
7154 -- 13.3.1 Aspect Specifications --
7155 -----------------------------------
7157 -- We modify the RM grammar here, the RM grammar is:
7159 -- ASPECT_SPECIFICATION ::=
7160 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7161 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
7163 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7165 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7167 -- That's inconvenient, since there is no non-terminal name for a single
7168 -- entry in the list of aspects. So we use this grammar instead:
7170 -- ASPECT_SPECIFICATIONS ::=
7171 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7173 -- ASPECT_SPECIFICATION =>
7174 -- ASPECT_MARK [=> ASPECT_DEFINITION]
7176 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7178 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7180 -- Note that for Annotate, the ASPECT_DEFINITION is a pure positional
7181 -- aggregate with the elements of the aggregate corresponding to the
7182 -- successive arguments of the corresponding pragma.
7184 -- See separate package Aspects for details on the incorporation of
7185 -- these nodes into the tree, and how aspect specifications for a given
7186 -- declaration node are associated with that node.
7188 -- N_Aspect_Specification
7189 -- Sloc points to aspect identifier
7190 -- Identifier (Node1) aspect identifier
7191 -- Aspect_Rep_Item (Node2-Sem)
7192 -- Expression (Node3) Aspect_Definition (set to Empty if none)
7193 -- Entity (Node4-Sem) entity to which the aspect applies
7194 -- Next_Rep_Item (Node5-Sem)
7195 -- Class_Present (Flag6) Set if 'Class present
7196 -- Is_Ignored (Flag9-Sem)
7197 -- Is_Checked (Flag11-Sem)
7198 -- Is_Delayed_Aspect (Flag14-Sem)
7199 -- Is_Disabled (Flag15-Sem)
7200 -- Is_Boolean_Aspect (Flag16-Sem)
7201 -- Split_PPC (Flag17) Set if split pre/post attribute
7203 -- Note: Aspect_Specification is an Ada 2012 feature
7205 -- Note: The Identifier serves to identify the aspect involved (it
7206 -- is the aspect whose name corresponds to the Chars field). This
7207 -- means that the other fields of this identifier are unused, and
7208 -- in particular we use the Entity field of this identifier to save
7209 -- a copy of the expression for visibility analysis, see spec of
7210 -- Sem_Ch13 for full details of this usage.
7212 -- In the case of aspects of the form xxx'Class, the aspect identifier
7213 -- is for xxx, and Class_Present is set to True.
7215 -- Note: When a Pre or Post aspect specification is processed, it is
7216 -- broken into AND THEN sections. The left most section has Split_PPC
7217 -- set to False, indicating that it is the original specification (e.g.
7218 -- for posting errors). For the other sections, Split_PPC is set True.
7220 ---------------------------------------------
7221 -- 13.4 Enumeration representation clause --
7222 ---------------------------------------------
7224 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7225 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7227 -- In Ada 83, the name must be a direct name
7229 -- N_Enumeration_Representation_Clause
7230 -- Sloc points to FOR
7231 -- Identifier (Node1) direct name
7232 -- Array_Aggregate (Node3)
7233 -- Next_Rep_Item (Node5-Sem)
7235 ---------------------------------
7236 -- 13.4 Enumeration aggregate --
7237 ---------------------------------
7239 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7241 ------------------------------------------
7242 -- 13.5.1 Record representation clause --
7243 ------------------------------------------
7245 -- RECORD_REPRESENTATION_CLAUSE ::=
7246 -- for first_subtype_LOCAL_NAME use
7247 -- record [MOD_CLAUSE]
7248 -- {COMPONENT_CLAUSE}
7249 -- end record;
7251 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7252 -- replaced by a corresponding Alignment attribute definition clause).
7254 -- Note: Component_Clauses can include pragmas
7256 -- N_Record_Representation_Clause
7257 -- Sloc points to FOR
7258 -- Identifier (Node1) direct name
7259 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7260 -- Component_Clauses (List3)
7261 -- Next_Rep_Item (Node5-Sem)
7263 ------------------------------
7264 -- 13.5.1 Component clause --
7265 ------------------------------
7267 -- COMPONENT_CLAUSE ::=
7268 -- component_LOCAL_NAME at POSITION
7269 -- range FIRST_BIT .. LAST_BIT;
7271 -- N_Component_Clause
7272 -- Sloc points to AT
7273 -- Component_Name (Node1) points to Name or Attribute_Reference
7274 -- Position (Node2)
7275 -- First_Bit (Node3)
7276 -- Last_Bit (Node4)
7278 ----------------------
7279 -- 13.5.1 Position --
7280 ----------------------
7282 -- POSITION ::= static_EXPRESSION
7284 -----------------------
7285 -- 13.5.1 First_Bit --
7286 -----------------------
7288 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7290 ----------------------
7291 -- 13.5.1 Last_Bit --
7292 ----------------------
7294 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7296 --------------------------
7297 -- 13.8 Code statement --
7298 --------------------------
7300 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7302 -- Note: in GNAT, the qualified expression has the form
7304 -- Asm_Insn'(Asm (...));
7306 -- See package System.Machine_Code in file s-maccod.ads for details on
7307 -- the allowed parameters to Asm. There are two ways this node can
7308 -- arise, as a code statement, in which case the expression is the
7309 -- qualified expression, or as a result of the expansion of an intrinsic
7310 -- call to the Asm or Asm_Input procedure.
7312 -- N_Code_Statement
7313 -- Sloc points to first token of the expression
7314 -- Expression (Node3)
7316 -- Note: package Exp_Code contains an abstract functional interface
7317 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7319 ------------------------
7320 -- 13.12 Restriction --
7321 ------------------------
7323 -- RESTRICTION ::=
7324 -- restriction_IDENTIFIER
7325 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7327 -- There is no explicit node for restrictions. Instead the restriction
7328 -- appears in normal pragma syntax as a pragma argument association,
7329 -- which has the same syntactic form.
7331 --------------------------
7332 -- B.2 Shift Operators --
7333 --------------------------
7335 -- Calls to the intrinsic shift functions are converted to one of
7336 -- the following shift nodes, which have the form of normal binary
7337 -- operator names. Note that for a given shift operation, one node
7338 -- covers all possible types, as for normal operators.
7340 -- Note: it is perfectly permissible for the expander to generate
7341 -- shift operation nodes directly, in which case they will be analyzed
7342 -- and parsed in the usual manner.
7344 -- Sprint syntax: shift-function-name!(expr, count)
7346 -- Note: the Left_Opnd field holds the first argument (the value to
7347 -- be shifted). The Right_Opnd field holds the second argument (the
7348 -- shift count). The Chars field is the name of the intrinsic function.
7350 -- N_Op_Rotate_Left
7351 -- Sloc points to the function name
7352 -- plus fields for binary operator
7353 -- plus fields for expression
7354 -- Shift_Count_OK (Flag4-Sem)
7356 -- N_Op_Rotate_Right
7357 -- Sloc points to the function name
7358 -- plus fields for binary operator
7359 -- plus fields for expression
7360 -- Shift_Count_OK (Flag4-Sem)
7362 -- N_Op_Shift_Left
7363 -- Sloc points to the function name
7364 -- plus fields for binary operator
7365 -- plus fields for expression
7366 -- Shift_Count_OK (Flag4-Sem)
7368 -- N_Op_Shift_Right_Arithmetic
7369 -- Sloc points to the function name
7370 -- plus fields for binary operator
7371 -- plus fields for expression
7372 -- Shift_Count_OK (Flag4-Sem)
7374 -- N_Op_Shift_Right
7375 -- Sloc points to the function name
7376 -- plus fields for binary operator
7377 -- plus fields for expression
7378 -- Shift_Count_OK (Flag4-Sem)
7380 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7381 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7383 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7384 -- always less than the word size if Modify_Tree_For_C mode is set.
7386 --------------------------
7387 -- Obsolescent Features --
7388 --------------------------
7390 -- The syntax descriptions and tree nodes for obsolescent features are
7391 -- grouped together, corresponding to their location in appendix I in
7392 -- the RM. However, parsing and semantic analysis for these constructs
7393 -- is located in an appropriate chapter (see individual notes).
7395 ---------------------------
7396 -- J.3 Delta Constraint --
7397 ---------------------------
7399 -- Note: the parse routine for this construct is located in section
7400 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7401 -- where delta constraint logically belongs.
7403 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7405 -- N_Delta_Constraint
7406 -- Sloc points to DELTA
7407 -- Delta_Expression (Node3)
7408 -- Range_Constraint (Node4) (set to Empty if not present)
7410 --------------------
7411 -- J.7 At Clause --
7412 --------------------
7414 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7416 -- Note: the parse routine for this construct is located in Par-Ch13,
7417 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7418 -- belongs if it were not obsolescent.
7420 -- Note: in Ada 83 the expression must be a simple expression
7422 -- Gigi restriction: This node never appears, it is rewritten as an
7423 -- address attribute definition clause.
7425 -- N_At_Clause
7426 -- Sloc points to FOR
7427 -- Identifier (Node1)
7428 -- Expression (Node3)
7430 ---------------------
7431 -- J.8 Mod clause --
7432 ---------------------
7434 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7436 -- Note: the parse routine for this construct is located in Par-Ch13,
7437 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7438 -- belongs if it were not obsolescent.
7440 -- Note: in Ada 83, the expression must be a simple expression
7442 -- Gigi restriction: this node never appears. It is replaced
7443 -- by a corresponding Alignment attribute definition clause.
7445 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7446 -- its name has "clause" in it. This is rather strange, but is quite
7447 -- definitely specified. The pragmas before are collected in the
7448 -- Pragmas_Before field of the mod clause node itself, and pragmas
7449 -- after are simply swallowed up in the list of component clauses.
7451 -- N_Mod_Clause
7452 -- Sloc points to AT
7453 -- Expression (Node3)
7454 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7456 --------------------
7457 -- Semantic Nodes --
7458 --------------------
7460 -- These semantic nodes are used to hold additional semantic information.
7461 -- They are inserted into the tree as a result of semantic processing.
7462 -- Although there are no legitimate source syntax constructions that
7463 -- correspond directly to these nodes, we need a source syntax for the
7464 -- reconstructed tree printed by Sprint, and the node descriptions here
7465 -- show this syntax.
7467 ------------------------
7468 -- Compound Statement --
7469 ------------------------
7471 -- This node is created by the analyzer/expander to handle some
7472 -- expansion cases where a sequence of actions needs to be captured
7473 -- within a single node (which acts as a container and allows the
7474 -- entire list of actions to be moved around as a whole) appearing
7475 -- in a sequence of statements.
7477 -- This is the statement counterpart to the expression node
7478 -- N_Expression_With_Actions.
7480 -- The required semantics is that the set of actions is executed in
7481 -- the order in which it appears, as though they appeared by themselves
7482 -- in the enclosing list of declarations of statements. Unlike what
7483 -- happens when using an N_Block_Statement, no new scope is introduced.
7485 -- Note: for the time being, this is used only as a transient
7486 -- representation during expansion, and all compound statement nodes
7487 -- must be exploded back to their constituent statements before handing
7488 -- the tree to the back end.
7490 -- Sprint syntax: do
7491 -- action;
7492 -- action;
7493 -- ...
7494 -- action;
7495 -- end;
7497 -- N_Compound_Statement
7498 -- Actions (List1)
7500 --------------
7501 -- Contract --
7502 --------------
7504 -- This node is used to hold the various parts of an entry, subprogram
7505 -- [body] or package [body] contract, in particular:
7506 -- Abstract states declared by a package declaration
7507 -- Contract cases that apply to a subprogram
7508 -- Dependency relations of inputs and output of a subprogram
7509 -- Global annotations classifying data as input or output
7510 -- Initialization sequences for a package declaration
7511 -- Pre- and postconditions that apply to a subprogram
7513 -- The node appears in an entry and [generic] subprogram [body] entity.
7515 -- Sprint syntax: <none> as the node should not appear in the tree, but
7516 -- only attached to an entry or [generic] subprogram
7517 -- entity.
7519 -- N_Contract
7520 -- Sloc points to the subprogram's name
7521 -- Pre_Post_Conditions (Node1) (set to Empty if none)
7522 -- Contract_Test_Cases (Node2) (set to Empty if none)
7523 -- Classifications (Node3) (set to Empty if none)
7525 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7526 -- to pre- and postconditions associated with an entry or a subprogram
7527 -- [body or stub]. The pragmas can either come from source or be the
7528 -- byproduct of aspect expansion. Currently the following pragmas appear
7529 -- in this list:
7530 -- Post
7531 -- Postcondition
7532 -- Pre
7533 -- Precondition
7534 -- Refined_Post
7535 -- The ordering in the list is in LIFO fashion.
7537 -- Note that there might be multiple preconditions or postconditions
7538 -- in this list, either because they come from separate pragmas in the
7539 -- source, or because a Pre (resp. Post) aspect specification has been
7540 -- broken into AND THEN sections. See Split_PPC for details.
7542 -- Contract_Test_Cases contains a collection of pragmas that correspond
7543 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7544 -- list is in LIFO fashion.
7546 -- Classifications contains pragmas that either declare, categorize or
7547 -- establish dependencies between subprogram or package inputs and
7548 -- outputs. Currently the following pragmas appear in this list:
7549 -- Abstract_States
7550 -- Async_Readers
7551 -- Async_Writers
7552 -- Depends
7553 -- Effective_Reads
7554 -- Effective_Writes
7555 -- Global
7556 -- Initial_Condition
7557 -- Initializes
7558 -- Part_Of
7559 -- Refined_Depends
7560 -- Refined_Global
7561 -- Refined_States
7562 -- The ordering is in LIFO fashion.
7564 -------------------
7565 -- Expanded Name --
7566 -------------------
7568 -- The N_Expanded_Name node is used to represent a selected component
7569 -- name that has been resolved to an expanded name. The semantic phase
7570 -- replaces N_Selected_Component nodes that represent names by the use
7571 -- of this node, leaving the N_Selected_Component node used only when
7572 -- the prefix is a record or protected type.
7574 -- The fields of the N_Expanded_Name node are layed out identically
7575 -- to those of the N_Selected_Component node, allowing conversion of
7576 -- an expanded name node to a selected component node to be done
7577 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7579 -- There is no special sprint syntax for an expanded name
7581 -- N_Expanded_Name
7582 -- Sloc points to the period
7583 -- Chars (Name1) copy of Chars field of selector name
7584 -- Prefix (Node3)
7585 -- Selector_Name (Node2)
7586 -- Entity (Node4-Sem)
7587 -- Associated_Node (Node4-Sem)
7588 -- Has_Private_View (Flag11-Sem) set in generic units.
7589 -- Redundant_Use (Flag13-Sem)
7590 -- Atomic_Sync_Required (Flag14-Sem)
7591 -- plus fields for expression
7593 -----------------------------
7594 -- Expression With Actions --
7595 -----------------------------
7597 -- This node is created by the analyzer/expander to handle some
7598 -- expansion cases, notably short circuit forms where there are
7599 -- actions associated with the right-hand side operand.
7601 -- The N_Expression_With_Actions node represents an expression with
7602 -- an associated set of actions (which are executable statements and
7603 -- declarations, as might occur in a handled statement sequence).
7605 -- The required semantics is that the set of actions is executed in
7606 -- the order in which it appears just before the expression is
7607 -- evaluated (and these actions must only be executed if the value
7608 -- of the expression is evaluated). The node is considered to be
7609 -- a subexpression, whose value is the value of the Expression after
7610 -- executing all the actions.
7612 -- If the actions contain declarations, then these declarations may
7613 -- be referenced within the expression. However note that there is
7614 -- no proper scope associated with the expression-with-action, so the
7615 -- back-end will elaborate them in the context of the enclosing scope.
7617 -- Sprint syntax: do
7618 -- action;
7619 -- action;
7620 -- ...
7621 -- action;
7622 -- in expression end
7624 -- N_Expression_With_Actions
7625 -- Actions (List1)
7626 -- Expression (Node3)
7627 -- plus fields for expression
7629 -- Note: In the final generated tree presented to the code generator,
7630 -- the actions list is always non-null, since there is no point in this
7631 -- node if the actions are Empty. During semantic analysis there are
7632 -- cases where it is convenient to temporarily generate an empty actions
7633 -- list. This arises in cases where we create such an empty actions
7634 -- list, and it may or may not end up being a place where additional
7635 -- actions are inserted. The expander removes such empty cases after
7636 -- the expression of the node is fully analyzed and expanded, at which
7637 -- point it is safe to remove it, since no more actions can be inserted.
7639 -- Note: In Modify_Tree_For_C, we never generate any declarations in
7640 -- the action list, which can contain only non-declarative statements.
7642 --------------------
7643 -- Free Statement --
7644 --------------------
7646 -- The N_Free_Statement node is generated as a result of a call to an
7647 -- instantiation of Unchecked_Deallocation. The instantiation of this
7648 -- generic is handled specially and generates this node directly.
7650 -- Sprint syntax: free expression
7652 -- N_Free_Statement
7653 -- Sloc is copied from the unchecked deallocation call
7654 -- Expression (Node3) argument to unchecked deallocation call
7655 -- Storage_Pool (Node1-Sem)
7656 -- Procedure_To_Call (Node2-Sem)
7657 -- Actual_Designated_Subtype (Node4-Sem)
7659 -- Note: in the case where a debug source file is generated, the Sloc
7660 -- for this node points to the FREE keyword in the Sprint file output.
7662 -------------------
7663 -- Freeze Entity --
7664 -------------------
7666 -- This node marks the point in a declarative part at which an entity
7667 -- declared therein becomes frozen. The expander places initialization
7668 -- procedures for types at those points. Gigi uses the freezing point
7669 -- to elaborate entities that may depend on previous private types.
7671 -- See the section in Einfo "Delayed Freezing and Elaboration" for
7672 -- a full description of the use of this node.
7674 -- The Entity field points back to the entity for the type (whose
7675 -- Freeze_Node field points back to this freeze node).
7677 -- The Actions field contains a list of declarations and statements
7678 -- generated by the expander which are associated with the freeze
7679 -- node, and are elaborated as though the freeze node were replaced
7680 -- by this sequence of actions.
7682 -- Note: the Sloc field in the freeze node references a construct
7683 -- associated with the freezing point. This is used for posting
7684 -- messages in some error/warning situations, e.g. the case where
7685 -- a primitive operation of a tagged type is declared too late.
7687 -- Sprint syntax: freeze entity-name [
7688 -- freeze actions
7689 -- ]
7691 -- N_Freeze_Entity
7692 -- Sloc points near freeze point (see above special note)
7693 -- Entity (Node4-Sem)
7694 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7695 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7696 -- Actions (List1) (set to No_List if no freeze actions)
7697 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7699 -- The Actions field holds actions associated with the freeze. These
7700 -- actions are elaborated at the point where the type is frozen.
7702 -- Note: in the case where a debug source file is generated, the Sloc
7703 -- for this node points to the FREEZE keyword in the Sprint file output.
7705 ---------------------------
7706 -- Freeze Generic Entity --
7707 ---------------------------
7709 -- The freeze point of an entity indicates the point at which the
7710 -- information needed to generate code for the entity is complete.
7711 -- The freeze node for an entity triggers expander activities, such as
7712 -- build initialization procedures, and backend activities, such as
7713 -- completing the elaboration of packages.
7715 -- For entities declared within a generic unit, for which no code is
7716 -- generated, the freeze point is not equally meaningful. However, in
7717 -- Ada 2012 several semantic checks on declarations must be delayed to
7718 -- the freeze point, and we need to include such a mark in the tree to
7719 -- trigger these checks. The Freeze_Generic_Entity node plays no other
7720 -- role, and is ignored by the expander and the back-end.
7722 -- Sprint syntax: freeze_generic entity-name
7724 -- N_Freeze_Generic_Entity
7725 -- Sloc points near freeze point
7726 -- Entity (Node4-Sem)
7728 --------------------------------
7729 -- Implicit Label Declaration --
7730 --------------------------------
7732 -- An implicit label declaration is created for every occurrence of a
7733 -- label on a statement or a label on a block or loop. It is chained
7734 -- in the declarations of the innermost enclosing block as specified
7735 -- in RM section 5.1 (3).
7737 -- The Defining_Identifier is the actual identifier for the statement
7738 -- identifier. Note that the occurrence of the label is a reference, NOT
7739 -- the defining occurrence. The defining occurrence occurs at the head
7740 -- of the innermost enclosing block, and is represented by this node.
7742 -- Note: from the grammar, this might better be called an implicit
7743 -- statement identifier declaration, but the term we choose seems
7744 -- friendlier, since at least informally statement identifiers are
7745 -- called labels in both cases (i.e. when used in labels, and when
7746 -- used as the identifiers of blocks and loops).
7748 -- Note: although this is logically a semantic node, since it does not
7749 -- correspond directly to a source syntax construction, these nodes are
7750 -- actually created by the parser in a post pass done just after parsing
7751 -- is complete, before semantic analysis is started (see Par.Labl).
7753 -- Sprint syntax: labelname : label;
7755 -- N_Implicit_Label_Declaration
7756 -- Sloc points to the << token for a statement identifier, or to the
7757 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
7758 -- Defining_Identifier (Node1)
7759 -- Label_Construct (Node2-Sem)
7761 -- Note: in the case where a debug source file is generated, the Sloc
7762 -- for this node points to the label name in the generated declaration.
7764 ---------------------
7765 -- Itype Reference --
7766 ---------------------
7768 -- This node is used to create a reference to an Itype. The only purpose
7769 -- is to make sure the Itype is defined if this is the first reference.
7771 -- A typical use of this node is when an Itype is to be referenced in
7772 -- two branches of an IF statement. In this case it is important that
7773 -- the first use of the Itype not be inside the conditional, since then
7774 -- it might not be defined if the other branch of the IF is taken, in
7775 -- the case where the definition generates elaboration code.
7777 -- The Itype field points to the referenced Itype
7779 -- Sprint syntax: reference itype-name
7781 -- N_Itype_Reference
7782 -- Sloc points to the node generating the reference
7783 -- Itype (Node1-Sem)
7785 -- Note: in the case where a debug source file is generated, the Sloc
7786 -- for this node points to the REFERENCE keyword in the file output.
7788 ---------------------
7789 -- Raise xxx Error --
7790 ---------------------
7792 -- One of these nodes is created during semantic analysis to replace
7793 -- a node for an expression that is determined to definitely raise
7794 -- the corresponding exception.
7796 -- The N_Raise_xxx_Error node may also stand alone in place
7797 -- of a declaration or statement, in which case it simply causes
7798 -- the exception to be raised (i.e. it is equivalent to a raise
7799 -- statement that raises the corresponding exception). This use
7800 -- is distinguished by the fact that the Etype in this case is
7801 -- Standard_Void_Type; in the subexpression case, the Etype is the
7802 -- same as the type of the subexpression which it replaces.
7804 -- If Condition is empty, then the raise is unconditional. If the
7805 -- Condition field is non-empty, it is a boolean expression which
7806 -- is first evaluated, and the exception is raised only if the
7807 -- value of the expression is True. In the unconditional case, the
7808 -- creation of this node is usually accompanied by a warning message
7809 -- error. The creation of this node will usually be accompanied by a
7810 -- message (unless it appears within the right operand of a short
7811 -- circuit form whose left argument is static and decisively
7812 -- eliminates elaboration of the raise operation. The condition field
7813 -- can ONLY be present when the node is used as a statement form, it
7814 -- may NOT be present in the case where the node appears within an
7815 -- expression.
7817 -- The exception is generated with a message that contains the
7818 -- file name and line number, and then appended text. The Reason
7819 -- code shows the text to be added. The Reason code is an element
7820 -- of the type Types.RT_Exception_Code, and indicates both the
7821 -- message to be added, and the exception to be raised (which must
7822 -- match the node type). The value is stored by storing a Uint which
7823 -- is the Pos value of the enumeration element in this type.
7825 -- Gigi restriction: This expander ensures that the type of the
7826 -- Condition field is always Standard.Boolean, even if the type
7827 -- in the source is some non-standard boolean type.
7829 -- Sprint syntax: [xxx_error "msg"]
7830 -- or: [xxx_error when condition "msg"]
7832 -- N_Raise_Constraint_Error
7833 -- Sloc references related construct
7834 -- Condition (Node1) (set to Empty if no condition)
7835 -- Reason (Uint3)
7836 -- plus fields for expression
7838 -- N_Raise_Program_Error
7839 -- Sloc references related construct
7840 -- Condition (Node1) (set to Empty if no condition)
7841 -- Reason (Uint3)
7842 -- plus fields for expression
7844 -- N_Raise_Storage_Error
7845 -- Sloc references related construct
7846 -- Condition (Node1) (set to Empty if no condition)
7847 -- Reason (Uint3)
7848 -- plus fields for expression
7850 -- Note: Sloc is copied from the expression generating the exception.
7851 -- In the case where a debug source file is generated, the Sloc for
7852 -- this node points to the left bracket in the Sprint file output.
7854 -- Note: the back end may be required to translate these nodes into
7855 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7857 ---------------------------------------------
7858 -- Optimization of Exception Raise to Goto --
7859 ---------------------------------------------
7861 -- In some cases, the front end will determine that any exception raised
7862 -- by the back end for a certain exception should be transformed into a
7863 -- goto statement.
7865 -- There are three kinds of exceptions raised by the back end (note that
7866 -- for this purpose we consider gigi to be part of the back end in the
7867 -- gcc case):
7869 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
7870 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
7871 -- 3. Other cases not specifically marked by the front end
7873 -- Normally all such exceptions are translated into calls to the proper
7874 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
7875 -- and the exception message.
7877 -- The front end may determine that for a particular sequence of code,
7878 -- exceptions in any of these three categories for a particular builtin
7879 -- exception should result in a goto, rather than a call to Rcheck_xx.
7880 -- The exact sequence to be generated is:
7882 -- Local_Raise (exception'Identity);
7883 -- goto Label
7885 -- The front end marks such a sequence of code by bracketing it with
7886 -- push and pop nodes:
7888 -- N_Push_xxx_Label (referencing the label)
7889 -- ...
7890 -- (code where transformation is expected for exception xxx)
7891 -- ...
7892 -- N_Pop_xxx_Label
7894 -- The use of push/pop reflects the fact that such regions can properly
7895 -- nest, and one special case is a subregion in which no transformation
7896 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7897 -- Exception_Label field is Empty.
7899 -- N_Push_Constraint_Error_Label
7900 -- Sloc references first statement in region covered
7901 -- Exception_Label (Node5-Sem)
7903 -- N_Push_Program_Error_Label
7904 -- Sloc references first statement in region covered
7905 -- Exception_Label (Node5-Sem)
7907 -- N_Push_Storage_Error_Label
7908 -- Sloc references first statement in region covered
7909 -- Exception_Label (Node5-Sem)
7911 -- N_Pop_Constraint_Error_Label
7912 -- Sloc references last statement in region covered
7914 -- N_Pop_Program_Error_Label
7915 -- Sloc references last statement in region covered
7917 -- N_Pop_Storage_Error_Label
7918 -- Sloc references last statement in region covered
7920 ---------------
7921 -- Reference --
7922 ---------------
7924 -- For a number of purposes, we need to construct references to objects.
7925 -- These references are subsequently treated as normal access values.
7926 -- An example is the construction of the parameter block passed to a
7927 -- task entry. The N_Reference node is provided for this purpose. It is
7928 -- similar in effect to the use of the Unrestricted_Access attribute,
7929 -- and like Unrestricted_Access can be applied to objects which would
7930 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
7931 -- objects which are not aliased, and slices). In addition it can be
7932 -- applied to composite type values as well as objects, including string
7933 -- values and aggregates.
7935 -- Note: we use the Prefix field for this expression so that the
7936 -- resulting node can be treated using common code with the attribute
7937 -- nodes for the 'Access and related attributes. Logically it would make
7938 -- more sense to call it an Expression field, but then we would have to
7939 -- special case the treatment of the N_Reference node.
7941 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
7942 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
7943 -- a temporary initialized to a N_Reference node in order to eliminate
7944 -- superfluous access checks.
7946 -- Sprint syntax: prefix'reference
7948 -- N_Reference
7949 -- Sloc is copied from the expression
7950 -- Prefix (Node3)
7951 -- plus fields for expression
7953 -- Note: in the case where a debug source file is generated, the Sloc
7954 -- for this node points to the quote in the Sprint file output.
7956 ----------------
7957 -- SCIL Nodes --
7958 ----------------
7960 -- SCIL nodes are special nodes added to the tree when the CodePeer mode
7961 -- is active. They are only generated if SCIL generation is enabled.
7962 -- A standard tree-walk will not encounter these nodes even if they
7963 -- are present; these nodes are only accessible via the function
7964 -- SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
7965 -- semantics.
7967 -- Sprint syntax: [ <node kind> ]
7968 -- No semantic field values are displayed.
7970 -- N_SCIL_Dispatch_Table_Tag_Init
7971 -- Sloc references a node for a tag initialization
7972 -- SCIL_Entity (Node4-Sem)
7974 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
7975 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
7976 -- the declaration of the dispatch table for a tagged type.
7978 -- N_SCIL_Dispatching_Call
7979 -- Sloc references the node of a dispatching call
7980 -- SCIL_Target_Prim (Node2-Sem)
7981 -- SCIL_Entity (Node4-Sem)
7982 -- SCIL_Controlling_Tag (Node5-Sem)
7984 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
7985 -- with the N_Procedure_Call or N_Function_Call node (or a rewriting
7986 -- thereof) corresponding to a dispatching call.
7988 -- N_SCIL_Membership_Test
7989 -- Sloc references the node of a membership test
7990 -- SCIL_Tag_Value (Node5-Sem)
7991 -- SCIL_Entity (Node4-Sem)
7993 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
7994 -- with the N_In node (or a rewriting thereof) corresponding to a
7995 -- classwide membership test.
7997 --------------------------
7998 -- Unchecked Expression --
7999 --------------------------
8001 -- An unchecked expression is one that must be analyzed and resolved
8002 -- with all checks off, regardless of the current setting of scope
8003 -- suppress flags.
8005 -- Sprint syntax: `(expression)
8007 -- Note: this node is always removed from the tree (and replaced by
8008 -- its constituent expression) on completion of analysis, so it only
8009 -- appears in intermediate trees, and will never be seen by Gigi.
8011 -- N_Unchecked_Expression
8012 -- Sloc is a copy of the Sloc of the expression
8013 -- Expression (Node3)
8014 -- plus fields for expression
8016 -- Note: in the case where a debug source file is generated, the Sloc
8017 -- for this node points to the back quote in the Sprint file output.
8019 -------------------------------
8020 -- Unchecked Type Conversion --
8021 -------------------------------
8023 -- An unchecked type conversion node represents the semantic action
8024 -- corresponding to a call to an instantiation of Unchecked_Conversion.
8025 -- It is generated as a result of actual use of Unchecked_Conversion
8026 -- and also the expander generates unchecked type conversion nodes
8027 -- directly for expansion of complex semantic actions.
8029 -- Note: an unchecked type conversion is a variable as far as the
8030 -- semantics are concerned, which is convenient for the expander.
8031 -- This does not change what Ada source programs are legal, since
8032 -- clearly a function call to an instantiation of Unchecked_Conversion
8033 -- is not a variable in any case.
8035 -- Sprint syntax: subtype-mark!(expression)
8037 -- N_Unchecked_Type_Conversion
8038 -- Sloc points to related node in source
8039 -- Subtype_Mark (Node4)
8040 -- Expression (Node3)
8041 -- Kill_Range_Check (Flag11-Sem)
8042 -- No_Truncation (Flag17-Sem)
8043 -- plus fields for expression
8045 -- Note: in the case where a debug source file is generated, the Sloc
8046 -- for this node points to the exclamation in the Sprint file output.
8048 -----------------------------------
8049 -- Validate_Unchecked_Conversion --
8050 -----------------------------------
8052 -- The front end does most of the validation of unchecked conversion,
8053 -- including checking sizes (this is done after the back end is called
8054 -- to take advantage of back-annotation of calculated sizes).
8056 -- The front end also deals with specific cases that are not allowed
8057 -- e.g. involving unconstrained array types.
8059 -- For the case of the standard gigi backend, this means that all
8060 -- checks are done in the front end.
8062 -- However, in the case of specialized back-ends, notably the JVM
8063 -- backend for JGNAT, additional requirements and restrictions apply
8064 -- to unchecked conversion, and these are most conveniently performed
8065 -- in the specialized back-end.
8067 -- To accommodate this requirement, for such back ends, the following
8068 -- special node is generated recording an unchecked conversion that
8069 -- needs to be validated. The back end should post an appropriate
8070 -- error message if the unchecked conversion is invalid or warrants
8071 -- a special warning message.
8073 -- Source_Type and Target_Type point to the entities for the two
8074 -- types involved in the unchecked conversion instantiation that
8075 -- is to be validated.
8077 -- Sprint syntax: validate Unchecked_Conversion (source, target);
8079 -- N_Validate_Unchecked_Conversion
8080 -- Sloc points to instantiation (location for warning message)
8081 -- Source_Type (Node1-Sem)
8082 -- Target_Type (Node2-Sem)
8084 -- Note: in the case where a debug source file is generated, the Sloc
8085 -- for this node points to the VALIDATE keyword in the file output.
8087 -----------
8088 -- Empty --
8089 -----------
8091 -- Used as the contents of the Nkind field of the dummy Empty node
8092 -- and in some other situations to indicate an uninitialized value.
8094 -- N_Empty
8095 -- Chars (Name1) is set to No_Name
8097 -----------
8098 -- Error --
8099 -----------
8101 -- Used as the contents of the Nkind field of the dummy Error node.
8102 -- Has an Etype field, which gets set to Any_Type later on, to help
8103 -- error recovery (Error_Posted is also set in the Error node).
8105 -- N_Error
8106 -- Chars (Name1) is set to Error_Name
8107 -- Etype (Node5-Sem)
8109 --------------------------
8110 -- Node Type Definition --
8111 --------------------------
8113 -- The following is the definition of the Node_Kind type. As previously
8114 -- discussed, this is separated off to allow rearrangement of the order to
8115 -- facilitate definition of subtype ranges. The comments show the subtype
8116 -- classes which apply to each set of node kinds. The first entry in the
8117 -- comment characterizes the following list of nodes.
8119 type Node_Kind is (
8120 N_Unused_At_Start,
8122 -- N_Representation_Clause
8124 N_At_Clause,
8125 N_Component_Clause,
8126 N_Enumeration_Representation_Clause,
8127 N_Mod_Clause,
8128 N_Record_Representation_Clause,
8130 -- N_Representation_Clause, N_Has_Chars
8132 N_Attribute_Definition_Clause,
8134 -- N_Has_Chars
8136 N_Empty,
8137 N_Pragma_Argument_Association,
8139 -- N_Has_Etype, N_Has_Chars
8141 -- Note: of course N_Error does not really have Etype or Chars fields,
8142 -- and any attempt to access these fields in N_Error will cause an
8143 -- error, but historically this always has been positioned so that an
8144 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8145 -- Most likely this makes coding easier somewhere but still seems
8146 -- undesirable. To be investigated some time ???
8148 N_Error,
8150 -- N_Entity, N_Has_Etype, N_Has_Chars
8152 N_Defining_Character_Literal,
8153 N_Defining_Identifier,
8154 N_Defining_Operator_Symbol,
8156 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8158 N_Expanded_Name,
8160 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8161 -- N_Has_Chars, N_Has_Entity
8163 N_Identifier,
8164 N_Operator_Symbol,
8166 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8167 -- N_Has_Chars, N_Has_Entity
8169 N_Character_Literal,
8171 -- N_Binary_Op, N_Op, N_Subexpr,
8172 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
8174 N_Op_Add,
8175 N_Op_Concat,
8176 N_Op_Expon,
8177 N_Op_Subtract,
8179 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
8180 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8182 N_Op_Divide,
8183 N_Op_Mod,
8184 N_Op_Multiply,
8185 N_Op_Rem,
8187 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8188 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8190 N_Op_And,
8192 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8193 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8195 N_Op_Eq,
8196 N_Op_Ge,
8197 N_Op_Gt,
8198 N_Op_Le,
8199 N_Op_Lt,
8200 N_Op_Ne,
8202 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8203 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8205 N_Op_Or,
8206 N_Op_Xor,
8208 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8209 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
8211 N_Op_Rotate_Left,
8212 N_Op_Rotate_Right,
8213 N_Op_Shift_Left,
8214 N_Op_Shift_Right,
8215 N_Op_Shift_Right_Arithmetic,
8217 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8218 -- N_Has_Chars, N_Has_Entity
8220 N_Op_Abs,
8221 N_Op_Minus,
8222 N_Op_Not,
8223 N_Op_Plus,
8225 -- N_Subexpr, N_Has_Etype, N_Has_Entity
8227 N_Attribute_Reference,
8229 -- N_Subexpr, N_Has_Etype, N_Membership_Test
8231 N_In,
8232 N_Not_In,
8234 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8236 N_And_Then,
8237 N_Or_Else,
8239 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8241 N_Function_Call,
8242 N_Procedure_Call_Statement,
8244 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8246 N_Raise_Constraint_Error,
8247 N_Raise_Program_Error,
8248 N_Raise_Storage_Error,
8250 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8252 N_Integer_Literal,
8253 N_Real_Literal,
8254 N_String_Literal,
8256 -- N_Subexpr, N_Has_Etype
8258 N_Explicit_Dereference,
8259 N_Expression_With_Actions,
8260 N_If_Expression,
8261 N_Indexed_Component,
8262 N_Null,
8263 N_Qualified_Expression,
8264 N_Quantified_Expression,
8265 N_Aggregate,
8266 N_Allocator,
8267 N_Case_Expression,
8268 N_Extension_Aggregate,
8269 N_Raise_Expression,
8270 N_Range,
8271 N_Reference,
8272 N_Selected_Component,
8273 N_Slice,
8274 N_Type_Conversion,
8275 N_Unchecked_Expression,
8276 N_Unchecked_Type_Conversion,
8278 -- N_Has_Etype
8280 N_Subtype_Indication,
8282 -- N_Declaration
8284 N_Component_Declaration,
8285 N_Entry_Declaration,
8286 N_Expression_Function,
8287 N_Formal_Object_Declaration,
8288 N_Formal_Type_Declaration,
8289 N_Full_Type_Declaration,
8290 N_Incomplete_Type_Declaration,
8291 N_Iterator_Specification,
8292 N_Loop_Parameter_Specification,
8293 N_Object_Declaration,
8294 N_Protected_Type_Declaration,
8295 N_Private_Extension_Declaration,
8296 N_Private_Type_Declaration,
8297 N_Subtype_Declaration,
8299 -- N_Subprogram_Specification, N_Declaration
8301 N_Function_Specification,
8302 N_Procedure_Specification,
8304 -- N_Access_To_Subprogram_Definition
8306 N_Access_Function_Definition,
8307 N_Access_Procedure_Definition,
8309 -- N_Later_Decl_Item
8311 N_Task_Type_Declaration,
8313 -- N_Body_Stub, N_Later_Decl_Item
8315 N_Package_Body_Stub,
8316 N_Protected_Body_Stub,
8317 N_Subprogram_Body_Stub,
8318 N_Task_Body_Stub,
8320 -- N_Generic_Instantiation, N_Later_Decl_Item
8321 -- N_Subprogram_Instantiation
8323 N_Function_Instantiation,
8324 N_Procedure_Instantiation,
8326 -- N_Generic_Instantiation, N_Later_Decl_Item
8328 N_Package_Instantiation,
8330 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8332 N_Package_Body,
8333 N_Subprogram_Body,
8335 -- N_Later_Decl_Item, N_Proper_Body
8337 N_Protected_Body,
8338 N_Task_Body,
8340 -- N_Later_Decl_Item
8342 N_Implicit_Label_Declaration,
8343 N_Package_Declaration,
8344 N_Single_Task_Declaration,
8345 N_Subprogram_Declaration,
8346 N_Use_Package_Clause,
8348 -- N_Generic_Declaration, N_Later_Decl_Item
8350 N_Generic_Package_Declaration,
8351 N_Generic_Subprogram_Declaration,
8353 -- N_Array_Type_Definition
8355 N_Constrained_Array_Definition,
8356 N_Unconstrained_Array_Definition,
8358 -- N_Renaming_Declaration
8360 N_Exception_Renaming_Declaration,
8361 N_Object_Renaming_Declaration,
8362 N_Package_Renaming_Declaration,
8363 N_Subprogram_Renaming_Declaration,
8365 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8367 N_Generic_Function_Renaming_Declaration,
8368 N_Generic_Package_Renaming_Declaration,
8369 N_Generic_Procedure_Renaming_Declaration,
8371 -- N_Statement_Other_Than_Procedure_Call
8373 N_Abort_Statement,
8374 N_Accept_Statement,
8375 N_Assignment_Statement,
8376 N_Asynchronous_Select,
8377 N_Block_Statement,
8378 N_Case_Statement,
8379 N_Code_Statement,
8380 N_Compound_Statement,
8381 N_Conditional_Entry_Call,
8383 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8385 N_Delay_Relative_Statement,
8386 N_Delay_Until_Statement,
8388 -- N_Statement_Other_Than_Procedure_Call
8390 N_Entry_Call_Statement,
8391 N_Free_Statement,
8392 N_Goto_Statement,
8393 N_Loop_Statement,
8394 N_Null_Statement,
8395 N_Raise_Statement,
8396 N_Requeue_Statement,
8397 N_Simple_Return_Statement,
8398 N_Extended_Return_Statement,
8399 N_Selective_Accept,
8400 N_Timed_Entry_Call,
8402 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8404 N_Exit_Statement,
8405 N_If_Statement,
8407 -- N_Has_Condition
8409 N_Accept_Alternative,
8410 N_Delay_Alternative,
8411 N_Elsif_Part,
8412 N_Entry_Body_Formal_Part,
8413 N_Iteration_Scheme,
8414 N_Terminate_Alternative,
8416 -- N_Formal_Subprogram_Declaration
8418 N_Formal_Abstract_Subprogram_Declaration,
8419 N_Formal_Concrete_Subprogram_Declaration,
8421 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8423 N_Push_Constraint_Error_Label,
8424 N_Push_Program_Error_Label,
8425 N_Push_Storage_Error_Label,
8427 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8429 N_Pop_Constraint_Error_Label,
8430 N_Pop_Program_Error_Label,
8431 N_Pop_Storage_Error_Label,
8433 -- SCIL nodes
8435 N_SCIL_Dispatch_Table_Tag_Init,
8436 N_SCIL_Dispatching_Call,
8437 N_SCIL_Membership_Test,
8439 -- Other nodes (not part of any subtype class)
8441 N_Abortable_Part,
8442 N_Abstract_Subprogram_Declaration,
8443 N_Access_Definition,
8444 N_Access_To_Object_Definition,
8445 N_Aspect_Specification,
8446 N_Case_Expression_Alternative,
8447 N_Case_Statement_Alternative,
8448 N_Compilation_Unit,
8449 N_Compilation_Unit_Aux,
8450 N_Component_Association,
8451 N_Component_Definition,
8452 N_Component_List,
8453 N_Contract,
8454 N_Derived_Type_Definition,
8455 N_Decimal_Fixed_Point_Definition,
8456 N_Defining_Program_Unit_Name,
8457 N_Delta_Constraint,
8458 N_Designator,
8459 N_Digits_Constraint,
8460 N_Discriminant_Association,
8461 N_Discriminant_Specification,
8462 N_Enumeration_Type_Definition,
8463 N_Entry_Body,
8464 N_Entry_Call_Alternative,
8465 N_Entry_Index_Specification,
8466 N_Exception_Declaration,
8467 N_Exception_Handler,
8468 N_Floating_Point_Definition,
8469 N_Formal_Decimal_Fixed_Point_Definition,
8470 N_Formal_Derived_Type_Definition,
8471 N_Formal_Discrete_Type_Definition,
8472 N_Formal_Floating_Point_Definition,
8473 N_Formal_Modular_Type_Definition,
8474 N_Formal_Ordinary_Fixed_Point_Definition,
8475 N_Formal_Package_Declaration,
8476 N_Formal_Private_Type_Definition,
8477 N_Formal_Incomplete_Type_Definition,
8478 N_Formal_Signed_Integer_Type_Definition,
8479 N_Freeze_Entity,
8480 N_Freeze_Generic_Entity,
8481 N_Generic_Association,
8482 N_Handled_Sequence_Of_Statements,
8483 N_Index_Or_Discriminant_Constraint,
8484 N_Itype_Reference,
8485 N_Label,
8486 N_Modular_Type_Definition,
8487 N_Number_Declaration,
8488 N_Ordinary_Fixed_Point_Definition,
8489 N_Others_Choice,
8490 N_Package_Specification,
8491 N_Parameter_Association,
8492 N_Parameter_Specification,
8493 N_Pragma,
8494 N_Protected_Definition,
8495 N_Range_Constraint,
8496 N_Real_Range_Specification,
8497 N_Record_Definition,
8498 N_Signed_Integer_Type_Definition,
8499 N_Single_Protected_Declaration,
8500 N_Subunit,
8501 N_Task_Definition,
8502 N_Triggering_Alternative,
8503 N_Use_Type_Clause,
8504 N_Validate_Unchecked_Conversion,
8505 N_Variant,
8506 N_Variant_Part,
8507 N_With_Clause,
8508 N_Unused_At_End);
8510 for Node_Kind'Size use 8;
8511 -- The data structures in Atree assume this
8513 ----------------------------
8514 -- Node Class Definitions --
8515 ----------------------------
8517 subtype N_Access_To_Subprogram_Definition is Node_Kind range
8518 N_Access_Function_Definition ..
8519 N_Access_Procedure_Definition;
8521 subtype N_Array_Type_Definition is Node_Kind range
8522 N_Constrained_Array_Definition ..
8523 N_Unconstrained_Array_Definition;
8525 subtype N_Binary_Op is Node_Kind range
8526 N_Op_Add ..
8527 N_Op_Shift_Right_Arithmetic;
8529 subtype N_Body_Stub is Node_Kind range
8530 N_Package_Body_Stub ..
8531 N_Task_Body_Stub;
8533 subtype N_Declaration is Node_Kind range
8534 N_Component_Declaration ..
8535 N_Procedure_Specification;
8536 -- Note: this includes all constructs normally thought of as declarations
8537 -- except those which are separately grouped as later declarations.
8539 subtype N_Delay_Statement is Node_Kind range
8540 N_Delay_Relative_Statement ..
8541 N_Delay_Until_Statement;
8543 subtype N_Direct_Name is Node_Kind range
8544 N_Identifier ..
8545 N_Character_Literal;
8547 subtype N_Entity is Node_Kind range
8548 N_Defining_Character_Literal ..
8549 N_Defining_Operator_Symbol;
8551 subtype N_Formal_Subprogram_Declaration is Node_Kind range
8552 N_Formal_Abstract_Subprogram_Declaration ..
8553 N_Formal_Concrete_Subprogram_Declaration;
8555 subtype N_Generic_Declaration is Node_Kind range
8556 N_Generic_Package_Declaration ..
8557 N_Generic_Subprogram_Declaration;
8559 subtype N_Generic_Instantiation is Node_Kind range
8560 N_Function_Instantiation ..
8561 N_Package_Instantiation;
8563 subtype N_Generic_Renaming_Declaration is Node_Kind range
8564 N_Generic_Function_Renaming_Declaration ..
8565 N_Generic_Procedure_Renaming_Declaration;
8567 subtype N_Has_Chars is Node_Kind range
8568 N_Attribute_Definition_Clause ..
8569 N_Op_Plus;
8571 subtype N_Has_Entity is Node_Kind range
8572 N_Expanded_Name ..
8573 N_Attribute_Reference;
8574 -- Nodes that have Entity fields
8575 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
8576 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
8578 subtype N_Has_Etype is Node_Kind range
8579 N_Error ..
8580 N_Subtype_Indication;
8582 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
8583 N_Op_Divide ..
8584 N_Op_Rem;
8586 subtype N_Multiplying_Operator is Node_Kind range
8587 N_Op_Divide ..
8588 N_Op_Rem;
8590 subtype N_Later_Decl_Item is Node_Kind range
8591 N_Task_Type_Declaration ..
8592 N_Generic_Subprogram_Declaration;
8593 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8594 -- only those items which can appear as later declarative items. This also
8595 -- includes N_Implicit_Label_Declaration which is not specifically in the
8596 -- grammar but may appear as a valid later declarative items. It does NOT
8597 -- include N_Pragma which can also appear among later declarative items.
8598 -- It does however include N_Protected_Body, which is a bit peculiar, but
8599 -- harmless since this cannot appear in Ada 83 mode anyway.
8601 subtype N_Membership_Test is Node_Kind range
8602 N_In ..
8603 N_Not_In;
8605 subtype N_Numeric_Or_String_Literal is Node_Kind range
8606 N_Integer_Literal ..
8607 N_String_Literal;
8609 subtype N_Op is Node_Kind range
8610 N_Op_Add ..
8611 N_Op_Plus;
8613 subtype N_Op_Boolean is Node_Kind range
8614 N_Op_And ..
8615 N_Op_Xor;
8616 -- Binary operators which take operands of a boolean type, and yield
8617 -- a result of a boolean type.
8619 subtype N_Op_Compare is Node_Kind range
8620 N_Op_Eq ..
8621 N_Op_Ne;
8623 subtype N_Op_Shift is Node_Kind range
8624 N_Op_Rotate_Left ..
8625 N_Op_Shift_Right_Arithmetic;
8627 subtype N_Proper_Body is Node_Kind range
8628 N_Package_Body ..
8629 N_Task_Body;
8631 subtype N_Push_xxx_Label is Node_Kind range
8632 N_Push_Constraint_Error_Label ..
8633 N_Push_Storage_Error_Label;
8635 subtype N_Pop_xxx_Label is Node_Kind range
8636 N_Pop_Constraint_Error_Label ..
8637 N_Pop_Storage_Error_Label;
8639 subtype N_Push_Pop_xxx_Label is Node_Kind range
8640 N_Push_Constraint_Error_Label ..
8641 N_Pop_Storage_Error_Label;
8643 subtype N_Raise_xxx_Error is Node_Kind range
8644 N_Raise_Constraint_Error ..
8645 N_Raise_Storage_Error;
8647 subtype N_Renaming_Declaration is Node_Kind range
8648 N_Exception_Renaming_Declaration ..
8649 N_Generic_Procedure_Renaming_Declaration;
8651 subtype N_Representation_Clause is Node_Kind range
8652 N_At_Clause ..
8653 N_Attribute_Definition_Clause;
8655 subtype N_Short_Circuit is Node_Kind range
8656 N_And_Then ..
8657 N_Or_Else;
8659 subtype N_SCIL_Node is Node_Kind range
8660 N_SCIL_Dispatch_Table_Tag_Init ..
8661 N_SCIL_Membership_Test;
8663 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8664 N_Abort_Statement ..
8665 N_If_Statement;
8666 -- Note that this includes all statement types except for the cases of the
8667 -- N_Procedure_Call_Statement which is considered to be a subexpression
8668 -- (since overloading is possible, so it needs to go through the normal
8669 -- overloading resolution for expressions).
8671 subtype N_Subprogram_Call is Node_Kind range
8672 N_Function_Call ..
8673 N_Procedure_Call_Statement;
8675 subtype N_Subprogram_Instantiation is Node_Kind range
8676 N_Function_Instantiation ..
8677 N_Procedure_Instantiation;
8679 subtype N_Has_Condition is Node_Kind range
8680 N_Exit_Statement ..
8681 N_Terminate_Alternative;
8682 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
8684 subtype N_Subexpr is Node_Kind range
8685 N_Expanded_Name ..
8686 N_Unchecked_Type_Conversion;
8687 -- Nodes with expression fields
8689 subtype N_Subprogram_Specification is Node_Kind range
8690 N_Function_Specification ..
8691 N_Procedure_Specification;
8693 subtype N_Unary_Op is Node_Kind range
8694 N_Op_Abs ..
8695 N_Op_Plus;
8697 subtype N_Unit_Body is Node_Kind range
8698 N_Package_Body ..
8699 N_Subprogram_Body;
8701 ---------------------------
8702 -- Node Access Functions --
8703 ---------------------------
8705 -- The following functions return the contents of the indicated field of
8706 -- the node referenced by the argument, which is a Node_Id. They provide
8707 -- logical access to fields in the node which could be accessed using the
8708 -- Atree.Unchecked_Access package, but the idea is always to use these
8709 -- higher level routines which preserve strong typing. In debug mode,
8710 -- these routines check that they are being applied to an appropriate
8711 -- node, as well as checking that the node is in range.
8713 function ABE_Is_Certain
8714 (N : Node_Id) return Boolean; -- Flag18
8716 function Abort_Present
8717 (N : Node_Id) return Boolean; -- Flag15
8719 function Abortable_Part
8720 (N : Node_Id) return Node_Id; -- Node2
8722 function Abstract_Present
8723 (N : Node_Id) return Boolean; -- Flag4
8725 function Accept_Handler_Records
8726 (N : Node_Id) return List_Id; -- List5
8728 function Accept_Statement
8729 (N : Node_Id) return Node_Id; -- Node2
8731 function Access_Definition
8732 (N : Node_Id) return Node_Id; -- Node3
8734 function Access_To_Subprogram_Definition
8735 (N : Node_Id) return Node_Id; -- Node3
8737 function Access_Types_To_Process
8738 (N : Node_Id) return Elist_Id; -- Elist2
8740 function Actions
8741 (N : Node_Id) return List_Id; -- List1
8743 function Activation_Chain_Entity
8744 (N : Node_Id) return Node_Id; -- Node3
8746 function Acts_As_Spec
8747 (N : Node_Id) return Boolean; -- Flag4
8749 function Actual_Designated_Subtype
8750 (N : Node_Id) return Node_Id; -- Node4
8752 function Address_Warning_Posted
8753 (N : Node_Id) return Boolean; -- Flag18
8755 function Aggregate_Bounds
8756 (N : Node_Id) return Node_Id; -- Node3
8758 function Aliased_Present
8759 (N : Node_Id) return Boolean; -- Flag4
8761 function All_Others
8762 (N : Node_Id) return Boolean; -- Flag11
8764 function All_Present
8765 (N : Node_Id) return Boolean; -- Flag15
8767 function Alternatives
8768 (N : Node_Id) return List_Id; -- List4
8770 function Ancestor_Part
8771 (N : Node_Id) return Node_Id; -- Node3
8773 function Atomic_Sync_Required
8774 (N : Node_Id) return Boolean; -- Flag14
8776 function Array_Aggregate
8777 (N : Node_Id) return Node_Id; -- Node3
8779 function Aspect_Rep_Item
8780 (N : Node_Id) return Node_Id; -- Node2
8782 function Assignment_OK
8783 (N : Node_Id) return Boolean; -- Flag15
8785 function Associated_Node
8786 (N : Node_Id) return Node_Id; -- Node4
8788 function At_End_Proc
8789 (N : Node_Id) return Node_Id; -- Node1
8791 function Attribute_Name
8792 (N : Node_Id) return Name_Id; -- Name2
8794 function Aux_Decls_Node
8795 (N : Node_Id) return Node_Id; -- Node5
8797 function Backwards_OK
8798 (N : Node_Id) return Boolean; -- Flag6
8800 function Bad_Is_Detected
8801 (N : Node_Id) return Boolean; -- Flag15
8803 function By_Ref
8804 (N : Node_Id) return Boolean; -- Flag5
8806 function Body_Required
8807 (N : Node_Id) return Boolean; -- Flag13
8809 function Body_To_Inline
8810 (N : Node_Id) return Node_Id; -- Node3
8812 function Box_Present
8813 (N : Node_Id) return Boolean; -- Flag15
8815 function Char_Literal_Value
8816 (N : Node_Id) return Uint; -- Uint2
8818 function Chars
8819 (N : Node_Id) return Name_Id; -- Name1
8821 function Check_Address_Alignment
8822 (N : Node_Id) return Boolean; -- Flag11
8824 function Choice_Parameter
8825 (N : Node_Id) return Node_Id; -- Node2
8827 function Choices
8828 (N : Node_Id) return List_Id; -- List1
8830 function Class_Present
8831 (N : Node_Id) return Boolean; -- Flag6
8833 function Classifications
8834 (N : Node_Id) return Node_Id; -- Node3
8836 function Cleanup_Actions
8837 (N : Node_Id) return List_Id; -- List5
8839 function Comes_From_Extended_Return_Statement
8840 (N : Node_Id) return Boolean; -- Flag18
8842 function Compile_Time_Known_Aggregate
8843 (N : Node_Id) return Boolean; -- Flag18
8845 function Component_Associations
8846 (N : Node_Id) return List_Id; -- List2
8848 function Component_Clauses
8849 (N : Node_Id) return List_Id; -- List3
8851 function Component_Definition
8852 (N : Node_Id) return Node_Id; -- Node4
8854 function Component_Items
8855 (N : Node_Id) return List_Id; -- List3
8857 function Component_List
8858 (N : Node_Id) return Node_Id; -- Node1
8860 function Component_Name
8861 (N : Node_Id) return Node_Id; -- Node1
8863 function Componentwise_Assignment
8864 (N : Node_Id) return Boolean; -- Flag14
8866 function Condition
8867 (N : Node_Id) return Node_Id; -- Node1
8869 function Condition_Actions
8870 (N : Node_Id) return List_Id; -- List3
8872 function Config_Pragmas
8873 (N : Node_Id) return List_Id; -- List4
8875 function Constant_Present
8876 (N : Node_Id) return Boolean; -- Flag17
8878 function Constraint
8879 (N : Node_Id) return Node_Id; -- Node3
8881 function Constraints
8882 (N : Node_Id) return List_Id; -- List1
8884 function Context_Installed
8885 (N : Node_Id) return Boolean; -- Flag13
8887 function Context_Pending
8888 (N : Node_Id) return Boolean; -- Flag16
8890 function Context_Items
8891 (N : Node_Id) return List_Id; -- List1
8893 function Contract_Test_Cases
8894 (N : Node_Id) return Node_Id; -- Node2
8896 function Controlling_Argument
8897 (N : Node_Id) return Node_Id; -- Node1
8899 function Conversion_OK
8900 (N : Node_Id) return Boolean; -- Flag14
8902 function Convert_To_Return_False
8903 (N : Node_Id) return Boolean; -- Flag13
8905 function Corresponding_Aspect
8906 (N : Node_Id) return Node_Id; -- Node3
8908 function Corresponding_Body
8909 (N : Node_Id) return Node_Id; -- Node5
8911 function Corresponding_Formal_Spec
8912 (N : Node_Id) return Node_Id; -- Node3
8914 function Corresponding_Generic_Association
8915 (N : Node_Id) return Node_Id; -- Node5
8917 function Corresponding_Integer_Value
8918 (N : Node_Id) return Uint; -- Uint4
8920 function Corresponding_Spec
8921 (N : Node_Id) return Node_Id; -- Node5
8923 function Corresponding_Spec_Of_Stub
8924 (N : Node_Id) return Node_Id; -- Node2
8926 function Corresponding_Stub
8927 (N : Node_Id) return Node_Id; -- Node3
8929 function Dcheck_Function
8930 (N : Node_Id) return Entity_Id; -- Node5
8932 function Declarations
8933 (N : Node_Id) return List_Id; -- List2
8935 function Default_Expression
8936 (N : Node_Id) return Node_Id; -- Node5
8938 function Default_Storage_Pool
8939 (N : Node_Id) return Node_Id; -- Node3
8941 function Default_Name
8942 (N : Node_Id) return Node_Id; -- Node2
8944 function Defining_Identifier
8945 (N : Node_Id) return Entity_Id; -- Node1
8947 function Defining_Unit_Name
8948 (N : Node_Id) return Node_Id; -- Node1
8950 function Delay_Alternative
8951 (N : Node_Id) return Node_Id; -- Node4
8953 function Delay_Statement
8954 (N : Node_Id) return Node_Id; -- Node2
8956 function Delta_Expression
8957 (N : Node_Id) return Node_Id; -- Node3
8959 function Digits_Expression
8960 (N : Node_Id) return Node_Id; -- Node2
8962 function Discr_Check_Funcs_Built
8963 (N : Node_Id) return Boolean; -- Flag11
8965 function Discrete_Choices
8966 (N : Node_Id) return List_Id; -- List4
8968 function Discrete_Range
8969 (N : Node_Id) return Node_Id; -- Node4
8971 function Discrete_Subtype_Definition
8972 (N : Node_Id) return Node_Id; -- Node4
8974 function Discrete_Subtype_Definitions
8975 (N : Node_Id) return List_Id; -- List2
8977 function Discriminant_Specifications
8978 (N : Node_Id) return List_Id; -- List4
8980 function Discriminant_Type
8981 (N : Node_Id) return Node_Id; -- Node5
8983 function Do_Accessibility_Check
8984 (N : Node_Id) return Boolean; -- Flag13
8986 function Do_Discriminant_Check
8987 (N : Node_Id) return Boolean; -- Flag1
8989 function Do_Division_Check
8990 (N : Node_Id) return Boolean; -- Flag13
8992 function Do_Length_Check
8993 (N : Node_Id) return Boolean; -- Flag4
8995 function Do_Overflow_Check
8996 (N : Node_Id) return Boolean; -- Flag17
8998 function Do_Range_Check
8999 (N : Node_Id) return Boolean; -- Flag9
9001 function Do_Storage_Check
9002 (N : Node_Id) return Boolean; -- Flag17
9004 function Do_Tag_Check
9005 (N : Node_Id) return Boolean; -- Flag13
9007 function Elaborate_All_Desirable
9008 (N : Node_Id) return Boolean; -- Flag9
9010 function Elaborate_All_Present
9011 (N : Node_Id) return Boolean; -- Flag14
9013 function Elaborate_Desirable
9014 (N : Node_Id) return Boolean; -- Flag11
9016 function Elaborate_Present
9017 (N : Node_Id) return Boolean; -- Flag4
9019 function Else_Actions
9020 (N : Node_Id) return List_Id; -- List3
9022 function Else_Statements
9023 (N : Node_Id) return List_Id; -- List4
9025 function Elsif_Parts
9026 (N : Node_Id) return List_Id; -- List3
9028 function Enclosing_Variant
9029 (N : Node_Id) return Node_Id; -- Node2
9031 function End_Label
9032 (N : Node_Id) return Node_Id; -- Node4
9034 function End_Span
9035 (N : Node_Id) return Uint; -- Uint5
9037 function Entity
9038 (N : Node_Id) return Node_Id; -- Node4
9040 function Entity_Or_Associated_Node
9041 (N : Node_Id) return Node_Id; -- Node4
9043 function Entry_Body_Formal_Part
9044 (N : Node_Id) return Node_Id; -- Node5
9046 function Entry_Call_Alternative
9047 (N : Node_Id) return Node_Id; -- Node1
9049 function Entry_Call_Statement
9050 (N : Node_Id) return Node_Id; -- Node1
9052 function Entry_Direct_Name
9053 (N : Node_Id) return Node_Id; -- Node1
9055 function Entry_Index
9056 (N : Node_Id) return Node_Id; -- Node5
9058 function Entry_Index_Specification
9059 (N : Node_Id) return Node_Id; -- Node4
9061 function Etype
9062 (N : Node_Id) return Node_Id; -- Node5
9064 function Exception_Choices
9065 (N : Node_Id) return List_Id; -- List4
9067 function Exception_Handlers
9068 (N : Node_Id) return List_Id; -- List5
9070 function Exception_Junk
9071 (N : Node_Id) return Boolean; -- Flag8
9073 function Exception_Label
9074 (N : Node_Id) return Node_Id; -- Node5
9076 function Explicit_Actual_Parameter
9077 (N : Node_Id) return Node_Id; -- Node3
9079 function Expansion_Delayed
9080 (N : Node_Id) return Boolean; -- Flag11
9082 function Explicit_Generic_Actual_Parameter
9083 (N : Node_Id) return Node_Id; -- Node1
9085 function Expression
9086 (N : Node_Id) return Node_Id; -- Node3
9088 function Expressions
9089 (N : Node_Id) return List_Id; -- List1
9091 function First_Bit
9092 (N : Node_Id) return Node_Id; -- Node3
9094 function First_Inlined_Subprogram
9095 (N : Node_Id) return Entity_Id; -- Node3
9097 function First_Name
9098 (N : Node_Id) return Boolean; -- Flag5
9100 function First_Named_Actual
9101 (N : Node_Id) return Node_Id; -- Node4
9103 function First_Real_Statement
9104 (N : Node_Id) return Node_Id; -- Node2
9106 function First_Subtype_Link
9107 (N : Node_Id) return Entity_Id; -- Node5
9109 function Float_Truncate
9110 (N : Node_Id) return Boolean; -- Flag11
9112 function Formal_Type_Definition
9113 (N : Node_Id) return Node_Id; -- Node3
9115 function Forwards_OK
9116 (N : Node_Id) return Boolean; -- Flag5
9118 function From_Aspect_Specification
9119 (N : Node_Id) return Boolean; -- Flag13
9121 function From_At_End
9122 (N : Node_Id) return Boolean; -- Flag4
9124 function From_At_Mod
9125 (N : Node_Id) return Boolean; -- Flag4
9127 function From_Conditional_Expression
9128 (N : Node_Id) return Boolean; -- Flag1
9130 function From_Default
9131 (N : Node_Id) return Boolean; -- Flag6
9133 function Generalized_Indexing
9134 (N : Node_Id) return Node_Id; -- Node4
9135 function Generic_Associations
9136 (N : Node_Id) return List_Id; -- List3
9138 function Generic_Formal_Declarations
9139 (N : Node_Id) return List_Id; -- List2
9141 function Generic_Parent
9142 (N : Node_Id) return Node_Id; -- Node5
9144 function Generic_Parent_Type
9145 (N : Node_Id) return Node_Id; -- Node4
9147 function Handled_Statement_Sequence
9148 (N : Node_Id) return Node_Id; -- Node4
9150 function Handler_List_Entry
9151 (N : Node_Id) return Node_Id; -- Node2
9153 function Has_Created_Identifier
9154 (N : Node_Id) return Boolean; -- Flag15
9156 function Has_Dereference_Action
9157 (N : Node_Id) return Boolean; -- Flag13
9159 function Has_Dynamic_Length_Check
9160 (N : Node_Id) return Boolean; -- Flag10
9162 function Has_Dynamic_Range_Check
9163 (N : Node_Id) return Boolean; -- Flag12
9165 function Has_Init_Expression
9166 (N : Node_Id) return Boolean; -- Flag14
9168 function Has_Local_Raise
9169 (N : Node_Id) return Boolean; -- Flag8
9171 function Has_No_Elaboration_Code
9172 (N : Node_Id) return Boolean; -- Flag17
9174 function Has_Pragma_Suppress_All
9175 (N : Node_Id) return Boolean; -- Flag14
9177 function Has_Private_View
9178 (N : Node_Id) return Boolean; -- Flag11
9180 function Has_Relative_Deadline_Pragma
9181 (N : Node_Id) return Boolean; -- Flag9
9183 function Has_Self_Reference
9184 (N : Node_Id) return Boolean; -- Flag13
9186 function Has_SP_Choice
9187 (N : Node_Id) return Boolean; -- Flag15
9189 function Has_Storage_Size_Pragma
9190 (N : Node_Id) return Boolean; -- Flag5
9192 function Has_Wide_Character
9193 (N : Node_Id) return Boolean; -- Flag11
9195 function Has_Wide_Wide_Character
9196 (N : Node_Id) return Boolean; -- Flag13
9198 function Header_Size_Added
9199 (N : Node_Id) return Boolean; -- Flag11
9201 function Hidden_By_Use_Clause
9202 (N : Node_Id) return Elist_Id; -- Elist4
9204 function High_Bound
9205 (N : Node_Id) return Node_Id; -- Node2
9207 function Identifier
9208 (N : Node_Id) return Node_Id; -- Node1
9210 function Interface_List
9211 (N : Node_Id) return List_Id; -- List2
9213 function Interface_Present
9214 (N : Node_Id) return Boolean; -- Flag16
9216 function Implicit_With
9217 (N : Node_Id) return Boolean; -- Flag16
9219 function Implicit_With_From_Instantiation
9220 (N : Node_Id) return Boolean; -- Flag12
9222 function Import_Interface_Present
9223 (N : Node_Id) return Boolean; -- Flag16
9225 function In_Present
9226 (N : Node_Id) return Boolean; -- Flag15
9228 function Includes_Infinities
9229 (N : Node_Id) return Boolean; -- Flag11
9231 function Incomplete_View
9232 (N : Node_Id) return Node_Id; -- Node2
9234 function Inherited_Discriminant
9235 (N : Node_Id) return Boolean; -- Flag13
9237 function Instance_Spec
9238 (N : Node_Id) return Node_Id; -- Node5
9240 function Intval
9241 (N : Node_Id) return Uint; -- Uint3
9243 function Is_Accessibility_Actual
9244 (N : Node_Id) return Boolean; -- Flag13
9246 function Is_Asynchronous_Call_Block
9247 (N : Node_Id) return Boolean; -- Flag7
9249 function Is_Boolean_Aspect
9250 (N : Node_Id) return Boolean; -- Flag16
9252 function Is_Checked
9253 (N : Node_Id) return Boolean; -- Flag11
9255 function Is_Component_Left_Opnd
9256 (N : Node_Id) return Boolean; -- Flag13
9258 function Is_Component_Right_Opnd
9259 (N : Node_Id) return Boolean; -- Flag14
9261 function Is_Controlling_Actual
9262 (N : Node_Id) return Boolean; -- Flag16
9264 function Is_Delayed_Aspect
9265 (N : Node_Id) return Boolean; -- Flag14
9267 function Is_Disabled
9268 (N : Node_Id) return Boolean; -- Flag15
9270 function Is_Dynamic_Coextension
9271 (N : Node_Id) return Boolean; -- Flag18
9273 function Is_Elsif
9274 (N : Node_Id) return Boolean; -- Flag13
9276 function Is_Entry_Barrier_Function
9277 (N : Node_Id) return Boolean; -- Flag8
9279 function Is_Expanded_Build_In_Place_Call
9280 (N : Node_Id) return Boolean; -- Flag11
9282 function Is_Finalization_Wrapper
9283 (N : Node_Id) return Boolean; -- Flag9
9285 function Is_Folded_In_Parser
9286 (N : Node_Id) return Boolean; -- Flag4
9288 function Is_Ignored
9289 (N : Node_Id) return Boolean; -- Flag9
9291 function Is_In_Discriminant_Check
9292 (N : Node_Id) return Boolean; -- Flag11
9294 function Is_Inherited
9295 (N : Node_Id) return Boolean; -- Flag4
9297 function Is_Machine_Number
9298 (N : Node_Id) return Boolean; -- Flag11
9300 function Is_Null_Loop
9301 (N : Node_Id) return Boolean; -- Flag16
9303 function Is_Overloaded
9304 (N : Node_Id) return Boolean; -- Flag5
9306 function Is_Power_Of_2_For_Shift
9307 (N : Node_Id) return Boolean; -- Flag13
9309 function Is_Prefixed_Call
9310 (N : Node_Id) return Boolean; -- Flag17
9312 function Is_Protected_Subprogram_Body
9313 (N : Node_Id) return Boolean; -- Flag7
9315 function Is_Static_Coextension
9316 (N : Node_Id) return Boolean; -- Flag14
9318 function Is_Static_Expression
9319 (N : Node_Id) return Boolean; -- Flag6
9321 function Is_Subprogram_Descriptor
9322 (N : Node_Id) return Boolean; -- Flag16
9324 function Is_Task_Allocation_Block
9325 (N : Node_Id) return Boolean; -- Flag6
9327 function Is_Task_Master
9328 (N : Node_Id) return Boolean; -- Flag5
9330 function Iteration_Scheme
9331 (N : Node_Id) return Node_Id; -- Node2
9333 function Iterator_Specification
9334 (N : Node_Id) return Node_Id; -- Node2
9336 function Itype
9337 (N : Node_Id) return Entity_Id; -- Node1
9339 function Kill_Range_Check
9340 (N : Node_Id) return Boolean; -- Flag11
9342 function Label_Construct
9343 (N : Node_Id) return Node_Id; -- Node2
9345 function Left_Opnd
9346 (N : Node_Id) return Node_Id; -- Node2
9348 function Last_Bit
9349 (N : Node_Id) return Node_Id; -- Node4
9351 function Last_Name
9352 (N : Node_Id) return Boolean; -- Flag6
9354 function Library_Unit
9355 (N : Node_Id) return Node_Id; -- Node4
9357 function Limited_View_Installed
9358 (N : Node_Id) return Boolean; -- Flag18
9360 function Limited_Present
9361 (N : Node_Id) return Boolean; -- Flag17
9363 function Literals
9364 (N : Node_Id) return List_Id; -- List1
9366 function Local_Raise_Not_OK
9367 (N : Node_Id) return Boolean; -- Flag7
9369 function Local_Raise_Statements
9370 (N : Node_Id) return Elist_Id; -- Elist1
9372 function Loop_Actions
9373 (N : Node_Id) return List_Id; -- List2
9375 function Loop_Parameter_Specification
9376 (N : Node_Id) return Node_Id; -- Node4
9378 function Low_Bound
9379 (N : Node_Id) return Node_Id; -- Node1
9381 function Mod_Clause
9382 (N : Node_Id) return Node_Id; -- Node2
9384 function More_Ids
9385 (N : Node_Id) return Boolean; -- Flag5
9387 function Must_Be_Byte_Aligned
9388 (N : Node_Id) return Boolean; -- Flag14
9390 function Must_Not_Freeze
9391 (N : Node_Id) return Boolean; -- Flag8
9393 function Must_Not_Override
9394 (N : Node_Id) return Boolean; -- Flag15
9396 function Must_Override
9397 (N : Node_Id) return Boolean; -- Flag14
9399 function Name
9400 (N : Node_Id) return Node_Id; -- Node2
9402 function Names
9403 (N : Node_Id) return List_Id; -- List2
9405 function Next_Entity
9406 (N : Node_Id) return Node_Id; -- Node2
9408 function Next_Exit_Statement
9409 (N : Node_Id) return Node_Id; -- Node3
9411 function Next_Implicit_With
9412 (N : Node_Id) return Node_Id; -- Node3
9414 function Next_Named_Actual
9415 (N : Node_Id) return Node_Id; -- Node4
9417 function Next_Pragma
9418 (N : Node_Id) return Node_Id; -- Node1
9420 function Next_Rep_Item
9421 (N : Node_Id) return Node_Id; -- Node5
9423 function Next_Use_Clause
9424 (N : Node_Id) return Node_Id; -- Node3
9426 function No_Ctrl_Actions
9427 (N : Node_Id) return Boolean; -- Flag7
9429 function No_Elaboration_Check
9430 (N : Node_Id) return Boolean; -- Flag14
9432 function No_Entities_Ref_In_Spec
9433 (N : Node_Id) return Boolean; -- Flag8
9435 function No_Initialization
9436 (N : Node_Id) return Boolean; -- Flag13
9438 function No_Minimize_Eliminate
9439 (N : Node_Id) return Boolean; -- Flag17
9441 function No_Truncation
9442 (N : Node_Id) return Boolean; -- Flag17
9444 function Non_Aliased_Prefix
9445 (N : Node_Id) return Boolean; -- Flag18
9447 function Null_Present
9448 (N : Node_Id) return Boolean; -- Flag13
9450 function Null_Excluding_Subtype
9451 (N : Node_Id) return Boolean; -- Flag16
9453 function Null_Exclusion_Present
9454 (N : Node_Id) return Boolean; -- Flag11
9456 function Null_Exclusion_In_Return_Present
9457 (N : Node_Id) return Boolean; -- Flag14
9459 function Null_Record_Present
9460 (N : Node_Id) return Boolean; -- Flag17
9462 function Object_Definition
9463 (N : Node_Id) return Node_Id; -- Node4
9465 function Of_Present
9466 (N : Node_Id) return Boolean; -- Flag16
9468 function Original_Discriminant
9469 (N : Node_Id) return Node_Id; -- Node2
9471 function Original_Entity
9472 (N : Node_Id) return Entity_Id; -- Node2
9474 function Others_Discrete_Choices
9475 (N : Node_Id) return List_Id; -- List1
9477 function Out_Present
9478 (N : Node_Id) return Boolean; -- Flag17
9480 function Parameter_Associations
9481 (N : Node_Id) return List_Id; -- List3
9483 function Parameter_Specifications
9484 (N : Node_Id) return List_Id; -- List3
9486 function Parameter_Type
9487 (N : Node_Id) return Node_Id; -- Node2
9489 function Parent_Spec
9490 (N : Node_Id) return Node_Id; -- Node4
9492 function Position
9493 (N : Node_Id) return Node_Id; -- Node2
9495 function Pragma_Argument_Associations
9496 (N : Node_Id) return List_Id; -- List2
9498 function Pragma_Identifier
9499 (N : Node_Id) return Node_Id; -- Node4
9501 function Pragmas_After
9502 (N : Node_Id) return List_Id; -- List5
9504 function Pragmas_Before
9505 (N : Node_Id) return List_Id; -- List4
9507 function Pre_Post_Conditions
9508 (N : Node_Id) return Node_Id; -- Node1
9510 function Prefix
9511 (N : Node_Id) return Node_Id; -- Node3
9513 function Premature_Use
9514 (N : Node_Id) return Node_Id; -- Node5
9516 function Present_Expr
9517 (N : Node_Id) return Uint; -- Uint3
9519 function Prev_Ids
9520 (N : Node_Id) return Boolean; -- Flag6
9522 function Print_In_Hex
9523 (N : Node_Id) return Boolean; -- Flag13
9525 function Private_Declarations
9526 (N : Node_Id) return List_Id; -- List3
9528 function Private_Present
9529 (N : Node_Id) return Boolean; -- Flag15
9531 function Procedure_To_Call
9532 (N : Node_Id) return Node_Id; -- Node2
9534 function Proper_Body
9535 (N : Node_Id) return Node_Id; -- Node1
9537 function Protected_Definition
9538 (N : Node_Id) return Node_Id; -- Node3
9540 function Protected_Present
9541 (N : Node_Id) return Boolean; -- Flag6
9543 function Raises_Constraint_Error
9544 (N : Node_Id) return Boolean; -- Flag7
9546 function Range_Constraint
9547 (N : Node_Id) return Node_Id; -- Node4
9549 function Range_Expression
9550 (N : Node_Id) return Node_Id; -- Node4
9552 function Real_Range_Specification
9553 (N : Node_Id) return Node_Id; -- Node4
9555 function Realval
9556 (N : Node_Id) return Ureal; -- Ureal3
9558 function Reason
9559 (N : Node_Id) return Uint; -- Uint3
9561 function Record_Extension_Part
9562 (N : Node_Id) return Node_Id; -- Node3
9564 function Redundant_Use
9565 (N : Node_Id) return Boolean; -- Flag13
9567 function Renaming_Exception
9568 (N : Node_Id) return Node_Id; -- Node2
9570 function Result_Definition
9571 (N : Node_Id) return Node_Id; -- Node4
9573 function Return_Object_Declarations
9574 (N : Node_Id) return List_Id; -- List3
9576 function Return_Statement_Entity
9577 (N : Node_Id) return Node_Id; -- Node5
9579 function Reverse_Present
9580 (N : Node_Id) return Boolean; -- Flag15
9582 function Right_Opnd
9583 (N : Node_Id) return Node_Id; -- Node3
9585 function Rounded_Result
9586 (N : Node_Id) return Boolean; -- Flag18
9588 function SCIL_Controlling_Tag
9589 (N : Node_Id) return Node_Id; -- Node5
9591 function SCIL_Entity
9592 (N : Node_Id) return Node_Id; -- Node4
9594 function SCIL_Tag_Value
9595 (N : Node_Id) return Node_Id; -- Node5
9597 function SCIL_Target_Prim
9598 (N : Node_Id) return Node_Id; -- Node2
9600 function Scope
9601 (N : Node_Id) return Node_Id; -- Node3
9603 function Select_Alternatives
9604 (N : Node_Id) return List_Id; -- List1
9606 function Selector_Name
9607 (N : Node_Id) return Node_Id; -- Node2
9609 function Selector_Names
9610 (N : Node_Id) return List_Id; -- List1
9612 function Shift_Count_OK
9613 (N : Node_Id) return Boolean; -- Flag4
9615 function Source_Type
9616 (N : Node_Id) return Entity_Id; -- Node1
9618 function Specification
9619 (N : Node_Id) return Node_Id; -- Node1
9621 function Split_PPC
9622 (N : Node_Id) return Boolean; -- Flag17
9624 function Statements
9625 (N : Node_Id) return List_Id; -- List3
9627 function Storage_Pool
9628 (N : Node_Id) return Node_Id; -- Node1
9630 function Subpool_Handle_Name
9631 (N : Node_Id) return Node_Id; -- Node4
9633 function Strval
9634 (N : Node_Id) return String_Id; -- Str3
9636 function Subtype_Indication
9637 (N : Node_Id) return Node_Id; -- Node5
9639 function Subtype_Mark
9640 (N : Node_Id) return Node_Id; -- Node4
9642 function Subtype_Marks
9643 (N : Node_Id) return List_Id; -- List2
9645 function Suppress_Assignment_Checks
9646 (N : Node_Id) return Boolean; -- Flag18
9648 function Suppress_Loop_Warnings
9649 (N : Node_Id) return Boolean; -- Flag17
9651 function Synchronized_Present
9652 (N : Node_Id) return Boolean; -- Flag7
9654 function Tagged_Present
9655 (N : Node_Id) return Boolean; -- Flag15
9657 function Target_Type
9658 (N : Node_Id) return Entity_Id; -- Node2
9660 function Task_Definition
9661 (N : Node_Id) return Node_Id; -- Node3
9663 function Task_Present
9664 (N : Node_Id) return Boolean; -- Flag5
9666 function Then_Actions
9667 (N : Node_Id) return List_Id; -- List2
9669 function Then_Statements
9670 (N : Node_Id) return List_Id; -- List2
9672 function Treat_Fixed_As_Integer
9673 (N : Node_Id) return Boolean; -- Flag14
9675 function Triggering_Alternative
9676 (N : Node_Id) return Node_Id; -- Node1
9678 function Triggering_Statement
9679 (N : Node_Id) return Node_Id; -- Node1
9681 function TSS_Elist
9682 (N : Node_Id) return Elist_Id; -- Elist3
9684 function Type_Definition
9685 (N : Node_Id) return Node_Id; -- Node3
9687 function Uneval_Old_Accept
9688 (N : Node_Id) return Boolean; -- Flag7
9690 function Uneval_Old_Warn
9691 (N : Node_Id) return Boolean; -- Flag18
9693 function Unit
9694 (N : Node_Id) return Node_Id; -- Node2
9696 function Unknown_Discriminants_Present
9697 (N : Node_Id) return Boolean; -- Flag13
9699 function Unreferenced_In_Spec
9700 (N : Node_Id) return Boolean; -- Flag7
9702 function Variant_Part
9703 (N : Node_Id) return Node_Id; -- Node4
9705 function Variants
9706 (N : Node_Id) return List_Id; -- List1
9708 function Visible_Declarations
9709 (N : Node_Id) return List_Id; -- List2
9711 function Uninitialized_Variable
9712 (N : Node_Id) return Node_Id; -- Node3
9714 function Used_Operations
9715 (N : Node_Id) return Elist_Id; -- Elist5
9717 function Was_Originally_Stub
9718 (N : Node_Id) return Boolean; -- Flag13
9720 function Withed_Body
9721 (N : Node_Id) return Node_Id; -- Node1
9723 -- End functions (note used by xsinfo utility program to end processing)
9725 ----------------------------
9726 -- Node Update Procedures --
9727 ----------------------------
9729 -- These are the corresponding node update routines, which again provide
9730 -- a high level logical access with type checking. In addition to setting
9731 -- the indicated field of the node N to the given Val, in the case of
9732 -- tree pointers (List1-4), the parent pointer of the Val node is set to
9733 -- point back to node N. This automates the setting of the parent pointer.
9735 procedure Set_ABE_Is_Certain
9736 (N : Node_Id; Val : Boolean := True); -- Flag18
9738 procedure Set_Abort_Present
9739 (N : Node_Id; Val : Boolean := True); -- Flag15
9741 procedure Set_Abortable_Part
9742 (N : Node_Id; Val : Node_Id); -- Node2
9744 procedure Set_Abstract_Present
9745 (N : Node_Id; Val : Boolean := True); -- Flag4
9747 procedure Set_Accept_Handler_Records
9748 (N : Node_Id; Val : List_Id); -- List5
9750 procedure Set_Accept_Statement
9751 (N : Node_Id; Val : Node_Id); -- Node2
9753 procedure Set_Access_Definition
9754 (N : Node_Id; Val : Node_Id); -- Node3
9756 procedure Set_Access_To_Subprogram_Definition
9757 (N : Node_Id; Val : Node_Id); -- Node3
9759 procedure Set_Access_Types_To_Process
9760 (N : Node_Id; Val : Elist_Id); -- Elist2
9762 procedure Set_Actions
9763 (N : Node_Id; Val : List_Id); -- List1
9765 procedure Set_Activation_Chain_Entity
9766 (N : Node_Id; Val : Node_Id); -- Node3
9768 procedure Set_Acts_As_Spec
9769 (N : Node_Id; Val : Boolean := True); -- Flag4
9771 procedure Set_Actual_Designated_Subtype
9772 (N : Node_Id; Val : Node_Id); -- Node4
9774 procedure Set_Address_Warning_Posted
9775 (N : Node_Id; Val : Boolean := True); -- Flag18
9777 procedure Set_Aggregate_Bounds
9778 (N : Node_Id; Val : Node_Id); -- Node3
9780 procedure Set_Aliased_Present
9781 (N : Node_Id; Val : Boolean := True); -- Flag4
9783 procedure Set_All_Others
9784 (N : Node_Id; Val : Boolean := True); -- Flag11
9786 procedure Set_All_Present
9787 (N : Node_Id; Val : Boolean := True); -- Flag15
9789 procedure Set_Alternatives
9790 (N : Node_Id; Val : List_Id); -- List4
9792 procedure Set_Ancestor_Part
9793 (N : Node_Id; Val : Node_Id); -- Node3
9795 procedure Set_Atomic_Sync_Required
9796 (N : Node_Id; Val : Boolean := True); -- Flag14
9798 procedure Set_Array_Aggregate
9799 (N : Node_Id; Val : Node_Id); -- Node3
9801 procedure Set_Aspect_Rep_Item
9802 (N : Node_Id; Val : Node_Id); -- Node2
9804 procedure Set_Assignment_OK
9805 (N : Node_Id; Val : Boolean := True); -- Flag15
9807 procedure Set_Associated_Node
9808 (N : Node_Id; Val : Node_Id); -- Node4
9810 procedure Set_Attribute_Name
9811 (N : Node_Id; Val : Name_Id); -- Name2
9813 procedure Set_At_End_Proc
9814 (N : Node_Id; Val : Node_Id); -- Node1
9816 procedure Set_Aux_Decls_Node
9817 (N : Node_Id; Val : Node_Id); -- Node5
9819 procedure Set_Backwards_OK
9820 (N : Node_Id; Val : Boolean := True); -- Flag6
9822 procedure Set_Bad_Is_Detected
9823 (N : Node_Id; Val : Boolean := True); -- Flag15
9825 procedure Set_Body_Required
9826 (N : Node_Id; Val : Boolean := True); -- Flag13
9828 procedure Set_Body_To_Inline
9829 (N : Node_Id; Val : Node_Id); -- Node3
9831 procedure Set_Box_Present
9832 (N : Node_Id; Val : Boolean := True); -- Flag15
9834 procedure Set_By_Ref
9835 (N : Node_Id; Val : Boolean := True); -- Flag5
9837 procedure Set_Char_Literal_Value
9838 (N : Node_Id; Val : Uint); -- Uint2
9840 procedure Set_Chars
9841 (N : Node_Id; Val : Name_Id); -- Name1
9843 procedure Set_Check_Address_Alignment
9844 (N : Node_Id; Val : Boolean := True); -- Flag11
9846 procedure Set_Choice_Parameter
9847 (N : Node_Id; Val : Node_Id); -- Node2
9849 procedure Set_Choices
9850 (N : Node_Id; Val : List_Id); -- List1
9852 procedure Set_Class_Present
9853 (N : Node_Id; Val : Boolean := True); -- Flag6
9855 procedure Set_Classifications
9856 (N : Node_Id; Val : Node_Id); -- Node3
9858 procedure Set_Cleanup_Actions
9859 (N : Node_Id; Val : List_Id); -- List5
9861 procedure Set_Comes_From_Extended_Return_Statement
9862 (N : Node_Id; Val : Boolean := True); -- Flag18
9864 procedure Set_Compile_Time_Known_Aggregate
9865 (N : Node_Id; Val : Boolean := True); -- Flag18
9867 procedure Set_Component_Associations
9868 (N : Node_Id; Val : List_Id); -- List2
9870 procedure Set_Component_Clauses
9871 (N : Node_Id; Val : List_Id); -- List3
9873 procedure Set_Component_Definition
9874 (N : Node_Id; Val : Node_Id); -- Node4
9876 procedure Set_Component_Items
9877 (N : Node_Id; Val : List_Id); -- List3
9879 procedure Set_Component_List
9880 (N : Node_Id; Val : Node_Id); -- Node1
9882 procedure Set_Component_Name
9883 (N : Node_Id; Val : Node_Id); -- Node1
9885 procedure Set_Componentwise_Assignment
9886 (N : Node_Id; Val : Boolean := True); -- Flag14
9888 procedure Set_Condition
9889 (N : Node_Id; Val : Node_Id); -- Node1
9891 procedure Set_Condition_Actions
9892 (N : Node_Id; Val : List_Id); -- List3
9894 procedure Set_Config_Pragmas
9895 (N : Node_Id; Val : List_Id); -- List4
9897 procedure Set_Constant_Present
9898 (N : Node_Id; Val : Boolean := True); -- Flag17
9900 procedure Set_Constraint
9901 (N : Node_Id; Val : Node_Id); -- Node3
9903 procedure Set_Constraints
9904 (N : Node_Id; Val : List_Id); -- List1
9906 procedure Set_Context_Installed
9907 (N : Node_Id; Val : Boolean := True); -- Flag13
9909 procedure Set_Context_Items
9910 (N : Node_Id; Val : List_Id); -- List1
9912 procedure Set_Context_Pending
9913 (N : Node_Id; Val : Boolean := True); -- Flag16
9915 procedure Set_Contract_Test_Cases
9916 (N : Node_Id; Val : Node_Id); -- Node2
9918 procedure Set_Controlling_Argument
9919 (N : Node_Id; Val : Node_Id); -- Node1
9921 procedure Set_Conversion_OK
9922 (N : Node_Id; Val : Boolean := True); -- Flag14
9924 procedure Set_Convert_To_Return_False
9925 (N : Node_Id; Val : Boolean := True); -- Flag13
9927 procedure Set_Corresponding_Aspect
9928 (N : Node_Id; Val : Node_Id); -- Node3
9930 procedure Set_Corresponding_Body
9931 (N : Node_Id; Val : Node_Id); -- Node5
9933 procedure Set_Corresponding_Formal_Spec
9934 (N : Node_Id; Val : Node_Id); -- Node3
9936 procedure Set_Corresponding_Generic_Association
9937 (N : Node_Id; Val : Node_Id); -- Node5
9939 procedure Set_Corresponding_Integer_Value
9940 (N : Node_Id; Val : Uint); -- Uint4
9942 procedure Set_Corresponding_Spec
9943 (N : Node_Id; Val : Node_Id); -- Node5
9945 procedure Set_Corresponding_Spec_Of_Stub
9946 (N : Node_Id; Val : Node_Id); -- Node2
9948 procedure Set_Corresponding_Stub
9949 (N : Node_Id; Val : Node_Id); -- Node3
9951 procedure Set_Dcheck_Function
9952 (N : Node_Id; Val : Entity_Id); -- Node5
9954 procedure Set_Declarations
9955 (N : Node_Id; Val : List_Id); -- List2
9957 procedure Set_Default_Expression
9958 (N : Node_Id; Val : Node_Id); -- Node5
9960 procedure Set_Default_Storage_Pool
9961 (N : Node_Id; Val : Node_Id); -- Node3
9963 procedure Set_Default_Name
9964 (N : Node_Id; Val : Node_Id); -- Node2
9966 procedure Set_Defining_Identifier
9967 (N : Node_Id; Val : Entity_Id); -- Node1
9969 procedure Set_Defining_Unit_Name
9970 (N : Node_Id; Val : Node_Id); -- Node1
9972 procedure Set_Delay_Alternative
9973 (N : Node_Id; Val : Node_Id); -- Node4
9975 procedure Set_Delay_Statement
9976 (N : Node_Id; Val : Node_Id); -- Node2
9978 procedure Set_Delta_Expression
9979 (N : Node_Id; Val : Node_Id); -- Node3
9981 procedure Set_Digits_Expression
9982 (N : Node_Id; Val : Node_Id); -- Node2
9984 procedure Set_Discr_Check_Funcs_Built
9985 (N : Node_Id; Val : Boolean := True); -- Flag11
9987 procedure Set_Discrete_Choices
9988 (N : Node_Id; Val : List_Id); -- List4
9990 procedure Set_Discrete_Range
9991 (N : Node_Id; Val : Node_Id); -- Node4
9993 procedure Set_Discrete_Subtype_Definition
9994 (N : Node_Id; Val : Node_Id); -- Node4
9996 procedure Set_Discrete_Subtype_Definitions
9997 (N : Node_Id; Val : List_Id); -- List2
9999 procedure Set_Discriminant_Specifications
10000 (N : Node_Id; Val : List_Id); -- List4
10002 procedure Set_Discriminant_Type
10003 (N : Node_Id; Val : Node_Id); -- Node5
10005 procedure Set_Do_Accessibility_Check
10006 (N : Node_Id; Val : Boolean := True); -- Flag13
10008 procedure Set_Do_Discriminant_Check
10009 (N : Node_Id; Val : Boolean := True); -- Flag1
10011 procedure Set_Do_Division_Check
10012 (N : Node_Id; Val : Boolean := True); -- Flag13
10014 procedure Set_Do_Length_Check
10015 (N : Node_Id; Val : Boolean := True); -- Flag4
10017 procedure Set_Do_Overflow_Check
10018 (N : Node_Id; Val : Boolean := True); -- Flag17
10020 procedure Set_Do_Range_Check
10021 (N : Node_Id; Val : Boolean := True); -- Flag9
10023 procedure Set_Do_Storage_Check
10024 (N : Node_Id; Val : Boolean := True); -- Flag17
10026 procedure Set_Do_Tag_Check
10027 (N : Node_Id; Val : Boolean := True); -- Flag13
10029 procedure Set_Elaborate_All_Desirable
10030 (N : Node_Id; Val : Boolean := True); -- Flag9
10032 procedure Set_Elaborate_All_Present
10033 (N : Node_Id; Val : Boolean := True); -- Flag14
10035 procedure Set_Elaborate_Desirable
10036 (N : Node_Id; Val : Boolean := True); -- Flag11
10038 procedure Set_Elaborate_Present
10039 (N : Node_Id; Val : Boolean := True); -- Flag4
10041 procedure Set_Else_Actions
10042 (N : Node_Id; Val : List_Id); -- List3
10044 procedure Set_Else_Statements
10045 (N : Node_Id; Val : List_Id); -- List4
10047 procedure Set_Elsif_Parts
10048 (N : Node_Id; Val : List_Id); -- List3
10050 procedure Set_Enclosing_Variant
10051 (N : Node_Id; Val : Node_Id); -- Node2
10053 procedure Set_End_Label
10054 (N : Node_Id; Val : Node_Id); -- Node4
10056 procedure Set_End_Span
10057 (N : Node_Id; Val : Uint); -- Uint5
10059 procedure Set_Entity
10060 (N : Node_Id; Val : Node_Id); -- Node4
10062 procedure Set_Entry_Body_Formal_Part
10063 (N : Node_Id; Val : Node_Id); -- Node5
10065 procedure Set_Entry_Call_Alternative
10066 (N : Node_Id; Val : Node_Id); -- Node1
10068 procedure Set_Entry_Call_Statement
10069 (N : Node_Id; Val : Node_Id); -- Node1
10071 procedure Set_Entry_Direct_Name
10072 (N : Node_Id; Val : Node_Id); -- Node1
10074 procedure Set_Entry_Index
10075 (N : Node_Id; Val : Node_Id); -- Node5
10077 procedure Set_Entry_Index_Specification
10078 (N : Node_Id; Val : Node_Id); -- Node4
10080 procedure Set_Etype
10081 (N : Node_Id; Val : Node_Id); -- Node5
10083 procedure Set_Exception_Choices
10084 (N : Node_Id; Val : List_Id); -- List4
10086 procedure Set_Exception_Handlers
10087 (N : Node_Id; Val : List_Id); -- List5
10089 procedure Set_Exception_Junk
10090 (N : Node_Id; Val : Boolean := True); -- Flag8
10092 procedure Set_Exception_Label
10093 (N : Node_Id; Val : Node_Id); -- Node5
10095 procedure Set_Expansion_Delayed
10096 (N : Node_Id; Val : Boolean := True); -- Flag11
10098 procedure Set_Explicit_Actual_Parameter
10099 (N : Node_Id; Val : Node_Id); -- Node3
10101 procedure Set_Explicit_Generic_Actual_Parameter
10102 (N : Node_Id; Val : Node_Id); -- Node1
10104 procedure Set_Expression
10105 (N : Node_Id; Val : Node_Id); -- Node3
10107 procedure Set_Expressions
10108 (N : Node_Id; Val : List_Id); -- List1
10110 procedure Set_First_Bit
10111 (N : Node_Id; Val : Node_Id); -- Node3
10113 procedure Set_First_Inlined_Subprogram
10114 (N : Node_Id; Val : Entity_Id); -- Node3
10116 procedure Set_First_Name
10117 (N : Node_Id; Val : Boolean := True); -- Flag5
10119 procedure Set_First_Named_Actual
10120 (N : Node_Id; Val : Node_Id); -- Node4
10122 procedure Set_First_Real_Statement
10123 (N : Node_Id; Val : Node_Id); -- Node2
10125 procedure Set_First_Subtype_Link
10126 (N : Node_Id; Val : Entity_Id); -- Node5
10128 procedure Set_Float_Truncate
10129 (N : Node_Id; Val : Boolean := True); -- Flag11
10131 procedure Set_Formal_Type_Definition
10132 (N : Node_Id; Val : Node_Id); -- Node3
10134 procedure Set_Forwards_OK
10135 (N : Node_Id; Val : Boolean := True); -- Flag5
10137 procedure Set_From_Aspect_Specification
10138 (N : Node_Id; Val : Boolean := True); -- Flag13
10140 procedure Set_From_At_End
10141 (N : Node_Id; Val : Boolean := True); -- Flag4
10143 procedure Set_From_At_Mod
10144 (N : Node_Id; Val : Boolean := True); -- Flag4
10146 procedure Set_From_Conditional_Expression
10147 (N : Node_Id; Val : Boolean := True); -- Flag1
10149 procedure Set_From_Default
10150 (N : Node_Id; Val : Boolean := True); -- Flag6
10152 procedure Set_Generalized_Indexing
10153 (N : Node_Id; Val : Node_Id); -- Node4
10155 procedure Set_Generic_Associations
10156 (N : Node_Id; Val : List_Id); -- List3
10158 procedure Set_Generic_Formal_Declarations
10159 (N : Node_Id; Val : List_Id); -- List2
10161 procedure Set_Generic_Parent
10162 (N : Node_Id; Val : Node_Id); -- Node5
10164 procedure Set_Generic_Parent_Type
10165 (N : Node_Id; Val : Node_Id); -- Node4
10167 procedure Set_Handled_Statement_Sequence
10168 (N : Node_Id; Val : Node_Id); -- Node4
10170 procedure Set_Handler_List_Entry
10171 (N : Node_Id; Val : Node_Id); -- Node2
10173 procedure Set_Has_Created_Identifier
10174 (N : Node_Id; Val : Boolean := True); -- Flag15
10176 procedure Set_Has_Dereference_Action
10177 (N : Node_Id; Val : Boolean := True); -- Flag13
10179 procedure Set_Has_Dynamic_Length_Check
10180 (N : Node_Id; Val : Boolean := True); -- Flag10
10182 procedure Set_Has_Dynamic_Range_Check
10183 (N : Node_Id; Val : Boolean := True); -- Flag12
10185 procedure Set_Has_Init_Expression
10186 (N : Node_Id; Val : Boolean := True); -- Flag14
10188 procedure Set_Has_Local_Raise
10189 (N : Node_Id; Val : Boolean := True); -- Flag8
10191 procedure Set_Has_No_Elaboration_Code
10192 (N : Node_Id; Val : Boolean := True); -- Flag17
10194 procedure Set_Has_Pragma_Suppress_All
10195 (N : Node_Id; Val : Boolean := True); -- Flag14
10197 procedure Set_Has_Private_View
10198 (N : Node_Id; Val : Boolean := True); -- Flag11
10200 procedure Set_Has_Relative_Deadline_Pragma
10201 (N : Node_Id; Val : Boolean := True); -- Flag9
10203 procedure Set_Has_Self_Reference
10204 (N : Node_Id; Val : Boolean := True); -- Flag13
10206 procedure Set_Has_SP_Choice
10207 (N : Node_Id; Val : Boolean := True); -- Flag15
10209 procedure Set_Has_Storage_Size_Pragma
10210 (N : Node_Id; Val : Boolean := True); -- Flag5
10212 procedure Set_Has_Wide_Character
10213 (N : Node_Id; Val : Boolean := True); -- Flag11
10215 procedure Set_Has_Wide_Wide_Character
10216 (N : Node_Id; Val : Boolean := True); -- Flag13
10218 procedure Set_Header_Size_Added
10219 (N : Node_Id; Val : Boolean := True); -- Flag11
10221 procedure Set_Hidden_By_Use_Clause
10222 (N : Node_Id; Val : Elist_Id); -- Elist4
10224 procedure Set_High_Bound
10225 (N : Node_Id; Val : Node_Id); -- Node2
10227 procedure Set_Identifier
10228 (N : Node_Id; Val : Node_Id); -- Node1
10230 procedure Set_Interface_List
10231 (N : Node_Id; Val : List_Id); -- List2
10233 procedure Set_Interface_Present
10234 (N : Node_Id; Val : Boolean := True); -- Flag16
10236 procedure Set_Implicit_With
10237 (N : Node_Id; Val : Boolean := True); -- Flag16
10239 procedure Set_Implicit_With_From_Instantiation
10240 (N : Node_Id; Val : Boolean := True); -- Flag12
10242 procedure Set_Import_Interface_Present
10243 (N : Node_Id; Val : Boolean := True); -- Flag16
10245 procedure Set_In_Present
10246 (N : Node_Id; Val : Boolean := True); -- Flag15
10248 procedure Set_Includes_Infinities
10249 (N : Node_Id; Val : Boolean := True); -- Flag11
10251 procedure Set_Incomplete_View
10252 (N : Node_Id; Val : Node_Id); -- Node2
10254 procedure Set_Inherited_Discriminant
10255 (N : Node_Id; Val : Boolean := True); -- Flag13
10257 procedure Set_Instance_Spec
10258 (N : Node_Id; Val : Node_Id); -- Node5
10260 procedure Set_Intval
10261 (N : Node_Id; Val : Uint); -- Uint3
10263 procedure Set_Is_Accessibility_Actual
10264 (N : Node_Id; Val : Boolean := True); -- Flag13
10266 procedure Set_Is_Asynchronous_Call_Block
10267 (N : Node_Id; Val : Boolean := True); -- Flag7
10269 procedure Set_Is_Boolean_Aspect
10270 (N : Node_Id; Val : Boolean := True); -- Flag16
10272 procedure Set_Is_Checked
10273 (N : Node_Id; Val : Boolean := True); -- Flag11
10275 procedure Set_Is_Component_Left_Opnd
10276 (N : Node_Id; Val : Boolean := True); -- Flag13
10278 procedure Set_Is_Component_Right_Opnd
10279 (N : Node_Id; Val : Boolean := True); -- Flag14
10281 procedure Set_Is_Controlling_Actual
10282 (N : Node_Id; Val : Boolean := True); -- Flag16
10284 procedure Set_Is_Delayed_Aspect
10285 (N : Node_Id; Val : Boolean := True); -- Flag14
10287 procedure Set_Is_Disabled
10288 (N : Node_Id; Val : Boolean := True); -- Flag15
10290 procedure Set_Is_Ignored
10291 (N : Node_Id; Val : Boolean := True); -- Flag9
10293 procedure Set_Is_Dynamic_Coextension
10294 (N : Node_Id; Val : Boolean := True); -- Flag18
10296 procedure Set_Is_Elsif
10297 (N : Node_Id; Val : Boolean := True); -- Flag13
10299 procedure Set_Is_Entry_Barrier_Function
10300 (N : Node_Id; Val : Boolean := True); -- Flag8
10302 procedure Set_Is_Expanded_Build_In_Place_Call
10303 (N : Node_Id; Val : Boolean := True); -- Flag11
10305 procedure Set_Is_Finalization_Wrapper
10306 (N : Node_Id; Val : Boolean := True); -- Flag9
10308 procedure Set_Is_Folded_In_Parser
10309 (N : Node_Id; Val : Boolean := True); -- Flag4
10311 procedure Set_Is_In_Discriminant_Check
10312 (N : Node_Id; Val : Boolean := True); -- Flag11
10314 procedure Set_Is_Inherited
10315 (N : Node_Id; Val : Boolean := True); -- Flag4
10317 procedure Set_Is_Machine_Number
10318 (N : Node_Id; Val : Boolean := True); -- Flag11
10320 procedure Set_Is_Null_Loop
10321 (N : Node_Id; Val : Boolean := True); -- Flag16
10323 procedure Set_Is_Overloaded
10324 (N : Node_Id; Val : Boolean := True); -- Flag5
10326 procedure Set_Is_Power_Of_2_For_Shift
10327 (N : Node_Id; Val : Boolean := True); -- Flag13
10329 procedure Set_Is_Prefixed_Call
10330 (N : Node_Id; Val : Boolean := True); -- Flag17
10332 procedure Set_Is_Protected_Subprogram_Body
10333 (N : Node_Id; Val : Boolean := True); -- Flag7
10335 procedure Set_Is_Static_Coextension
10336 (N : Node_Id; Val : Boolean := True); -- Flag14
10338 procedure Set_Is_Static_Expression
10339 (N : Node_Id; Val : Boolean := True); -- Flag6
10341 procedure Set_Is_Subprogram_Descriptor
10342 (N : Node_Id; Val : Boolean := True); -- Flag16
10344 procedure Set_Is_Task_Allocation_Block
10345 (N : Node_Id; Val : Boolean := True); -- Flag6
10347 procedure Set_Is_Task_Master
10348 (N : Node_Id; Val : Boolean := True); -- Flag5
10350 procedure Set_Iteration_Scheme
10351 (N : Node_Id; Val : Node_Id); -- Node2
10353 procedure Set_Iterator_Specification
10354 (N : Node_Id; Val : Node_Id); -- Node2
10356 procedure Set_Itype
10357 (N : Node_Id; Val : Entity_Id); -- Node1
10359 procedure Set_Kill_Range_Check
10360 (N : Node_Id; Val : Boolean := True); -- Flag11
10362 procedure Set_Last_Bit
10363 (N : Node_Id; Val : Node_Id); -- Node4
10365 procedure Set_Last_Name
10366 (N : Node_Id; Val : Boolean := True); -- Flag6
10368 procedure Set_Library_Unit
10369 (N : Node_Id; Val : Node_Id); -- Node4
10371 procedure Set_Label_Construct
10372 (N : Node_Id; Val : Node_Id); -- Node2
10374 procedure Set_Left_Opnd
10375 (N : Node_Id; Val : Node_Id); -- Node2
10377 procedure Set_Limited_View_Installed
10378 (N : Node_Id; Val : Boolean := True); -- Flag18
10380 procedure Set_Limited_Present
10381 (N : Node_Id; Val : Boolean := True); -- Flag17
10383 procedure Set_Literals
10384 (N : Node_Id; Val : List_Id); -- List1
10386 procedure Set_Local_Raise_Not_OK
10387 (N : Node_Id; Val : Boolean := True); -- Flag7
10389 procedure Set_Local_Raise_Statements
10390 (N : Node_Id; Val : Elist_Id); -- Elist1
10392 procedure Set_Loop_Actions
10393 (N : Node_Id; Val : List_Id); -- List2
10395 procedure Set_Loop_Parameter_Specification
10396 (N : Node_Id; Val : Node_Id); -- Node4
10398 procedure Set_Low_Bound
10399 (N : Node_Id; Val : Node_Id); -- Node1
10401 procedure Set_Mod_Clause
10402 (N : Node_Id; Val : Node_Id); -- Node2
10404 procedure Set_More_Ids
10405 (N : Node_Id; Val : Boolean := True); -- Flag5
10407 procedure Set_Must_Be_Byte_Aligned
10408 (N : Node_Id; Val : Boolean := True); -- Flag14
10410 procedure Set_Must_Not_Freeze
10411 (N : Node_Id; Val : Boolean := True); -- Flag8
10413 procedure Set_Must_Not_Override
10414 (N : Node_Id; Val : Boolean := True); -- Flag15
10416 procedure Set_Must_Override
10417 (N : Node_Id; Val : Boolean := True); -- Flag14
10419 procedure Set_Name
10420 (N : Node_Id; Val : Node_Id); -- Node2
10422 procedure Set_Names
10423 (N : Node_Id; Val : List_Id); -- List2
10425 procedure Set_Next_Entity
10426 (N : Node_Id; Val : Node_Id); -- Node2
10428 procedure Set_Next_Exit_Statement
10429 (N : Node_Id; Val : Node_Id); -- Node3
10431 procedure Set_Next_Implicit_With
10432 (N : Node_Id; Val : Node_Id); -- Node3
10434 procedure Set_Next_Named_Actual
10435 (N : Node_Id; Val : Node_Id); -- Node4
10437 procedure Set_Next_Pragma
10438 (N : Node_Id; Val : Node_Id); -- Node1
10440 procedure Set_Next_Rep_Item
10441 (N : Node_Id; Val : Node_Id); -- Node5
10443 procedure Set_Next_Use_Clause
10444 (N : Node_Id; Val : Node_Id); -- Node3
10446 procedure Set_No_Ctrl_Actions
10447 (N : Node_Id; Val : Boolean := True); -- Flag7
10449 procedure Set_No_Elaboration_Check
10450 (N : Node_Id; Val : Boolean := True); -- Flag14
10452 procedure Set_No_Entities_Ref_In_Spec
10453 (N : Node_Id; Val : Boolean := True); -- Flag8
10455 procedure Set_No_Initialization
10456 (N : Node_Id; Val : Boolean := True); -- Flag13
10458 procedure Set_No_Minimize_Eliminate
10459 (N : Node_Id; Val : Boolean := True); -- Flag17
10461 procedure Set_No_Truncation
10462 (N : Node_Id; Val : Boolean := True); -- Flag17
10464 procedure Set_Non_Aliased_Prefix
10465 (N : Node_Id; Val : Boolean := True); -- Flag18
10467 procedure Set_Null_Present
10468 (N : Node_Id; Val : Boolean := True); -- Flag13
10470 procedure Set_Null_Excluding_Subtype
10471 (N : Node_Id; Val : Boolean := True); -- Flag16
10473 procedure Set_Null_Exclusion_Present
10474 (N : Node_Id; Val : Boolean := True); -- Flag11
10476 procedure Set_Null_Exclusion_In_Return_Present
10477 (N : Node_Id; Val : Boolean := True); -- Flag14
10479 procedure Set_Null_Record_Present
10480 (N : Node_Id; Val : Boolean := True); -- Flag17
10482 procedure Set_Object_Definition
10483 (N : Node_Id; Val : Node_Id); -- Node4
10485 procedure Set_Of_Present
10486 (N : Node_Id; Val : Boolean := True); -- Flag16
10488 procedure Set_Original_Discriminant
10489 (N : Node_Id; Val : Node_Id); -- Node2
10491 procedure Set_Original_Entity
10492 (N : Node_Id; Val : Entity_Id); -- Node2
10494 procedure Set_Others_Discrete_Choices
10495 (N : Node_Id; Val : List_Id); -- List1
10497 procedure Set_Out_Present
10498 (N : Node_Id; Val : Boolean := True); -- Flag17
10500 procedure Set_Parameter_Associations
10501 (N : Node_Id; Val : List_Id); -- List3
10503 procedure Set_Parameter_Specifications
10504 (N : Node_Id; Val : List_Id); -- List3
10506 procedure Set_Parameter_Type
10507 (N : Node_Id; Val : Node_Id); -- Node2
10509 procedure Set_Parent_Spec
10510 (N : Node_Id; Val : Node_Id); -- Node4
10512 procedure Set_Position
10513 (N : Node_Id; Val : Node_Id); -- Node2
10515 procedure Set_Pragma_Argument_Associations
10516 (N : Node_Id; Val : List_Id); -- List2
10518 procedure Set_Pragma_Identifier
10519 (N : Node_Id; Val : Node_Id); -- Node4
10521 procedure Set_Pragmas_After
10522 (N : Node_Id; Val : List_Id); -- List5
10524 procedure Set_Pragmas_Before
10525 (N : Node_Id; Val : List_Id); -- List4
10527 procedure Set_Pre_Post_Conditions
10528 (N : Node_Id; Val : Node_Id); -- Node1
10530 procedure Set_Prefix
10531 (N : Node_Id; Val : Node_Id); -- Node3
10533 procedure Set_Premature_Use
10534 (N : Node_Id; Val : Node_Id); -- Node5
10536 procedure Set_Present_Expr
10537 (N : Node_Id; Val : Uint); -- Uint3
10539 procedure Set_Prev_Ids
10540 (N : Node_Id; Val : Boolean := True); -- Flag6
10542 procedure Set_Print_In_Hex
10543 (N : Node_Id; Val : Boolean := True); -- Flag13
10545 procedure Set_Private_Declarations
10546 (N : Node_Id; Val : List_Id); -- List3
10548 procedure Set_Private_Present
10549 (N : Node_Id; Val : Boolean := True); -- Flag15
10551 procedure Set_Procedure_To_Call
10552 (N : Node_Id; Val : Node_Id); -- Node2
10554 procedure Set_Proper_Body
10555 (N : Node_Id; Val : Node_Id); -- Node1
10557 procedure Set_Protected_Definition
10558 (N : Node_Id; Val : Node_Id); -- Node3
10560 procedure Set_Protected_Present
10561 (N : Node_Id; Val : Boolean := True); -- Flag6
10563 procedure Set_Raises_Constraint_Error
10564 (N : Node_Id; Val : Boolean := True); -- Flag7
10566 procedure Set_Range_Constraint
10567 (N : Node_Id; Val : Node_Id); -- Node4
10569 procedure Set_Range_Expression
10570 (N : Node_Id; Val : Node_Id); -- Node4
10572 procedure Set_Real_Range_Specification
10573 (N : Node_Id; Val : Node_Id); -- Node4
10575 procedure Set_Realval
10576 (N : Node_Id; Val : Ureal); -- Ureal3
10578 procedure Set_Reason
10579 (N : Node_Id; Val : Uint); -- Uint3
10581 procedure Set_Record_Extension_Part
10582 (N : Node_Id; Val : Node_Id); -- Node3
10584 procedure Set_Redundant_Use
10585 (N : Node_Id; Val : Boolean := True); -- Flag13
10587 procedure Set_Renaming_Exception
10588 (N : Node_Id; Val : Node_Id); -- Node2
10590 procedure Set_Result_Definition
10591 (N : Node_Id; Val : Node_Id); -- Node4
10593 procedure Set_Return_Object_Declarations
10594 (N : Node_Id; Val : List_Id); -- List3
10596 procedure Set_Return_Statement_Entity
10597 (N : Node_Id; Val : Node_Id); -- Node5
10599 procedure Set_Reverse_Present
10600 (N : Node_Id; Val : Boolean := True); -- Flag15
10602 procedure Set_Right_Opnd
10603 (N : Node_Id; Val : Node_Id); -- Node3
10605 procedure Set_Rounded_Result
10606 (N : Node_Id; Val : Boolean := True); -- Flag18
10608 procedure Set_SCIL_Controlling_Tag
10609 (N : Node_Id; Val : Node_Id); -- Node5
10611 procedure Set_SCIL_Entity
10612 (N : Node_Id; Val : Node_Id); -- Node4
10614 procedure Set_SCIL_Tag_Value
10615 (N : Node_Id; Val : Node_Id); -- Node5
10617 procedure Set_SCIL_Target_Prim
10618 (N : Node_Id; Val : Node_Id); -- Node2
10620 procedure Set_Scope
10621 (N : Node_Id; Val : Node_Id); -- Node3
10623 procedure Set_Select_Alternatives
10624 (N : Node_Id; Val : List_Id); -- List1
10626 procedure Set_Selector_Name
10627 (N : Node_Id; Val : Node_Id); -- Node2
10629 procedure Set_Selector_Names
10630 (N : Node_Id; Val : List_Id); -- List1
10632 procedure Set_Shift_Count_OK
10633 (N : Node_Id; Val : Boolean := True); -- Flag4
10635 procedure Set_Source_Type
10636 (N : Node_Id; Val : Entity_Id); -- Node1
10638 procedure Set_Specification
10639 (N : Node_Id; Val : Node_Id); -- Node1
10641 procedure Set_Split_PPC
10642 (N : Node_Id; Val : Boolean); -- Flag17
10644 procedure Set_Statements
10645 (N : Node_Id; Val : List_Id); -- List3
10647 procedure Set_Storage_Pool
10648 (N : Node_Id; Val : Node_Id); -- Node1
10650 procedure Set_Subpool_Handle_Name
10651 (N : Node_Id; Val : Node_Id); -- Node4
10653 procedure Set_Strval
10654 (N : Node_Id; Val : String_Id); -- Str3
10656 procedure Set_Subtype_Indication
10657 (N : Node_Id; Val : Node_Id); -- Node5
10659 procedure Set_Subtype_Mark
10660 (N : Node_Id; Val : Node_Id); -- Node4
10662 procedure Set_Subtype_Marks
10663 (N : Node_Id; Val : List_Id); -- List2
10665 procedure Set_Suppress_Assignment_Checks
10666 (N : Node_Id; Val : Boolean := True); -- Flag18
10668 procedure Set_Suppress_Loop_Warnings
10669 (N : Node_Id; Val : Boolean := True); -- Flag17
10671 procedure Set_Synchronized_Present
10672 (N : Node_Id; Val : Boolean := True); -- Flag7
10674 procedure Set_Tagged_Present
10675 (N : Node_Id; Val : Boolean := True); -- Flag15
10677 procedure Set_Target_Type
10678 (N : Node_Id; Val : Entity_Id); -- Node2
10680 procedure Set_Task_Definition
10681 (N : Node_Id; Val : Node_Id); -- Node3
10683 procedure Set_Task_Present
10684 (N : Node_Id; Val : Boolean := True); -- Flag5
10686 procedure Set_Then_Actions
10687 (N : Node_Id; Val : List_Id); -- List2
10689 procedure Set_Then_Statements
10690 (N : Node_Id; Val : List_Id); -- List2
10692 procedure Set_Treat_Fixed_As_Integer
10693 (N : Node_Id; Val : Boolean := True); -- Flag14
10695 procedure Set_Triggering_Alternative
10696 (N : Node_Id; Val : Node_Id); -- Node1
10698 procedure Set_Triggering_Statement
10699 (N : Node_Id; Val : Node_Id); -- Node1
10701 procedure Set_TSS_Elist
10702 (N : Node_Id; Val : Elist_Id); -- Elist3
10704 procedure Set_Type_Definition
10705 (N : Node_Id; Val : Node_Id); -- Node3
10707 procedure Set_Uneval_Old_Accept
10708 (N : Node_Id; Val : Boolean := True); -- Flag7
10710 procedure Set_Uneval_Old_Warn
10711 (N : Node_Id; Val : Boolean := True); -- Flag18
10713 procedure Set_Unit
10714 (N : Node_Id; Val : Node_Id); -- Node2
10716 procedure Set_Unknown_Discriminants_Present
10717 (N : Node_Id; Val : Boolean := True); -- Flag13
10719 procedure Set_Unreferenced_In_Spec
10720 (N : Node_Id; Val : Boolean := True); -- Flag7
10722 procedure Set_Variant_Part
10723 (N : Node_Id; Val : Node_Id); -- Node4
10725 procedure Set_Variants
10726 (N : Node_Id; Val : List_Id); -- List1
10728 procedure Set_Visible_Declarations
10729 (N : Node_Id; Val : List_Id); -- List2
10731 procedure Set_Uninitialized_Variable
10732 (N : Node_Id; Val : Node_Id); -- Node3
10734 procedure Set_Used_Operations
10735 (N : Node_Id; Val : Elist_Id); -- Elist5
10737 procedure Set_Was_Originally_Stub
10738 (N : Node_Id; Val : Boolean := True); -- Flag13
10740 procedure Set_Withed_Body
10741 (N : Node_Id; Val : Node_Id); -- Node1
10743 -------------------------
10744 -- Iterator Procedures --
10745 -------------------------
10747 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
10749 procedure Next_Entity (N : in out Node_Id);
10750 procedure Next_Named_Actual (N : in out Node_Id);
10751 procedure Next_Rep_Item (N : in out Node_Id);
10752 procedure Next_Use_Clause (N : in out Node_Id);
10754 -------------------------------------------
10755 -- Miscellaneous Tree Access Subprograms --
10756 -------------------------------------------
10758 function End_Location (N : Node_Id) return Source_Ptr;
10759 -- N is an N_If_Statement or N_Case_Statement node, and this function
10760 -- returns the location of the IF token in the END IF sequence by
10761 -- translating the value of the End_Span field.
10763 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
10764 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
10765 -- the End_Span field to correspond to the given value S. In other words,
10766 -- End_Span is set to the difference between S and Sloc (N), the starting
10767 -- location.
10769 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
10770 -- Given an argument to a pragma Arg, this function returns the expression
10771 -- for the argument. This is Arg itself, or, in the case where Arg is a
10772 -- pragma argument association node, the expression from this node.
10774 --------------------------------
10775 -- Node_Kind Membership Tests --
10776 --------------------------------
10778 -- The following functions allow a convenient notation for testing whether
10779 -- a Node_Kind value matches any one of a list of possible values. In each
10780 -- case True is returned if the given T argument is equal to any of the V
10781 -- arguments. Note that there is a similar set of functions defined in
10782 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
10784 function Nkind_In
10785 (T : Node_Kind;
10786 V1 : Node_Kind;
10787 V2 : Node_Kind) return Boolean;
10789 function Nkind_In
10790 (T : Node_Kind;
10791 V1 : Node_Kind;
10792 V2 : Node_Kind;
10793 V3 : Node_Kind) return Boolean;
10795 function Nkind_In
10796 (T : Node_Kind;
10797 V1 : Node_Kind;
10798 V2 : Node_Kind;
10799 V3 : Node_Kind;
10800 V4 : Node_Kind) return Boolean;
10802 function Nkind_In
10803 (T : Node_Kind;
10804 V1 : Node_Kind;
10805 V2 : Node_Kind;
10806 V3 : Node_Kind;
10807 V4 : Node_Kind;
10808 V5 : Node_Kind) return Boolean;
10810 function Nkind_In
10811 (T : Node_Kind;
10812 V1 : Node_Kind;
10813 V2 : Node_Kind;
10814 V3 : Node_Kind;
10815 V4 : Node_Kind;
10816 V5 : Node_Kind;
10817 V6 : Node_Kind) return Boolean;
10819 function Nkind_In
10820 (T : Node_Kind;
10821 V1 : Node_Kind;
10822 V2 : Node_Kind;
10823 V3 : Node_Kind;
10824 V4 : Node_Kind;
10825 V5 : Node_Kind;
10826 V6 : Node_Kind;
10827 V7 : Node_Kind) return Boolean;
10829 function Nkind_In
10830 (T : Node_Kind;
10831 V1 : Node_Kind;
10832 V2 : Node_Kind;
10833 V3 : Node_Kind;
10834 V4 : Node_Kind;
10835 V5 : Node_Kind;
10836 V6 : Node_Kind;
10837 V7 : Node_Kind;
10838 V8 : Node_Kind) return Boolean;
10840 function Nkind_In
10841 (T : Node_Kind;
10842 V1 : Node_Kind;
10843 V2 : Node_Kind;
10844 V3 : Node_Kind;
10845 V4 : Node_Kind;
10846 V5 : Node_Kind;
10847 V6 : Node_Kind;
10848 V7 : Node_Kind;
10849 V8 : Node_Kind;
10850 V9 : Node_Kind) return Boolean;
10852 pragma Inline (Nkind_In);
10853 -- Inline all above functions
10855 -----------------------
10856 -- Utility Functions --
10857 -----------------------
10859 function Pragma_Name (N : Node_Id) return Name_Id;
10860 pragma Inline (Pragma_Name);
10861 -- Convenient function to obtain Chars field of Pragma_Identifier
10863 -----------------------------
10864 -- Syntactic Parent Tables --
10865 -----------------------------
10867 -- These tables show for each node, and for each of the five fields,
10868 -- whether the corresponding field is syntactic (True) or semantic (False).
10869 -- Unused entries are also set to False.
10871 subtype Field_Num is Natural range 1 .. 5;
10873 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
10875 -- Following entries can be built automatically from the sinfo sources
10876 -- using the makeisf utility (currently this program is in spitbol).
10878 N_Identifier =>
10879 (1 => True, -- Chars (Name1)
10880 2 => False, -- Original_Discriminant (Node2-Sem)
10881 3 => False, -- unused
10882 4 => False, -- Entity (Node4-Sem)
10883 5 => False), -- Etype (Node5-Sem)
10885 N_Integer_Literal =>
10886 (1 => False, -- unused
10887 2 => False, -- Original_Entity (Node2-Sem)
10888 3 => True, -- Intval (Uint3)
10889 4 => False, -- unused
10890 5 => False), -- Etype (Node5-Sem)
10892 N_Real_Literal =>
10893 (1 => False, -- unused
10894 2 => False, -- Original_Entity (Node2-Sem)
10895 3 => True, -- Realval (Ureal3)
10896 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
10897 5 => False), -- Etype (Node5-Sem)
10899 N_Character_Literal =>
10900 (1 => True, -- Chars (Name1)
10901 2 => True, -- Char_Literal_Value (Uint2)
10902 3 => False, -- unused
10903 4 => False, -- Entity (Node4-Sem)
10904 5 => False), -- Etype (Node5-Sem)
10906 N_String_Literal =>
10907 (1 => False, -- unused
10908 2 => False, -- unused
10909 3 => True, -- Strval (Str3)
10910 4 => False, -- unused
10911 5 => False), -- Etype (Node5-Sem)
10913 N_Pragma =>
10914 (1 => False, -- Next_Pragma (Node1-Sem)
10915 2 => True, -- Pragma_Argument_Associations (List2)
10916 3 => False, -- unused
10917 4 => True, -- Pragma_Identifier (Node4)
10918 5 => False), -- Next_Rep_Item (Node5-Sem)
10920 N_Pragma_Argument_Association =>
10921 (1 => True, -- Chars (Name1)
10922 2 => False, -- unused
10923 3 => True, -- Expression (Node3)
10924 4 => False, -- unused
10925 5 => False), -- unused
10927 N_Defining_Identifier =>
10928 (1 => True, -- Chars (Name1)
10929 2 => False, -- Next_Entity (Node2-Sem)
10930 3 => False, -- Scope (Node3-Sem)
10931 4 => False, -- unused
10932 5 => False), -- Etype (Node5-Sem)
10934 N_Full_Type_Declaration =>
10935 (1 => True, -- Defining_Identifier (Node1)
10936 2 => False, -- Incomplete_View (Node2-Sem)
10937 3 => True, -- Type_Definition (Node3)
10938 4 => True, -- Discriminant_Specifications (List4)
10939 5 => False), -- unused
10941 N_Subtype_Declaration =>
10942 (1 => True, -- Defining_Identifier (Node1)
10943 2 => False, -- unused
10944 3 => False, -- unused
10945 4 => False, -- Generic_Parent_Type (Node4-Sem)
10946 5 => True), -- Subtype_Indication (Node5)
10948 N_Subtype_Indication =>
10949 (1 => False, -- unused
10950 2 => False, -- unused
10951 3 => True, -- Constraint (Node3)
10952 4 => True, -- Subtype_Mark (Node4)
10953 5 => False), -- Etype (Node5-Sem)
10955 N_Object_Declaration =>
10956 (1 => True, -- Defining_Identifier (Node1)
10957 2 => False, -- Handler_List_Entry (Node2-Sem)
10958 3 => True, -- Expression (Node3)
10959 4 => True, -- Object_Definition (Node4)
10960 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10962 N_Number_Declaration =>
10963 (1 => True, -- Defining_Identifier (Node1)
10964 2 => False, -- unused
10965 3 => True, -- Expression (Node3)
10966 4 => False, -- unused
10967 5 => False), -- unused
10969 N_Derived_Type_Definition =>
10970 (1 => False, -- unused
10971 2 => True, -- Interface_List (List2)
10972 3 => True, -- Record_Extension_Part (Node3)
10973 4 => False, -- unused
10974 5 => True), -- Subtype_Indication (Node5)
10976 N_Range_Constraint =>
10977 (1 => False, -- unused
10978 2 => False, -- unused
10979 3 => False, -- unused
10980 4 => True, -- Range_Expression (Node4)
10981 5 => False), -- unused
10983 N_Range =>
10984 (1 => True, -- Low_Bound (Node1)
10985 2 => True, -- High_Bound (Node2)
10986 3 => False, -- unused
10987 4 => False, -- unused
10988 5 => False), -- Etype (Node5-Sem)
10990 N_Enumeration_Type_Definition =>
10991 (1 => True, -- Literals (List1)
10992 2 => False, -- unused
10993 3 => False, -- unused
10994 4 => True, -- End_Label (Node4)
10995 5 => False), -- unused
10997 N_Defining_Character_Literal =>
10998 (1 => True, -- Chars (Name1)
10999 2 => False, -- Next_Entity (Node2-Sem)
11000 3 => False, -- Scope (Node3-Sem)
11001 4 => False, -- unused
11002 5 => False), -- Etype (Node5-Sem)
11004 N_Signed_Integer_Type_Definition =>
11005 (1 => True, -- Low_Bound (Node1)
11006 2 => True, -- High_Bound (Node2)
11007 3 => False, -- unused
11008 4 => False, -- unused
11009 5 => False), -- unused
11011 N_Modular_Type_Definition =>
11012 (1 => False, -- unused
11013 2 => False, -- unused
11014 3 => True, -- Expression (Node3)
11015 4 => False, -- unused
11016 5 => False), -- unused
11018 N_Floating_Point_Definition =>
11019 (1 => False, -- unused
11020 2 => True, -- Digits_Expression (Node2)
11021 3 => False, -- unused
11022 4 => True, -- Real_Range_Specification (Node4)
11023 5 => False), -- unused
11025 N_Real_Range_Specification =>
11026 (1 => True, -- Low_Bound (Node1)
11027 2 => True, -- High_Bound (Node2)
11028 3 => False, -- unused
11029 4 => False, -- unused
11030 5 => False), -- unused
11032 N_Ordinary_Fixed_Point_Definition =>
11033 (1 => False, -- unused
11034 2 => False, -- unused
11035 3 => True, -- Delta_Expression (Node3)
11036 4 => True, -- Real_Range_Specification (Node4)
11037 5 => False), -- unused
11039 N_Decimal_Fixed_Point_Definition =>
11040 (1 => False, -- unused
11041 2 => True, -- Digits_Expression (Node2)
11042 3 => True, -- Delta_Expression (Node3)
11043 4 => True, -- Real_Range_Specification (Node4)
11044 5 => False), -- unused
11046 N_Digits_Constraint =>
11047 (1 => False, -- unused
11048 2 => True, -- Digits_Expression (Node2)
11049 3 => False, -- unused
11050 4 => True, -- Range_Constraint (Node4)
11051 5 => False), -- unused
11053 N_Unconstrained_Array_Definition =>
11054 (1 => False, -- unused
11055 2 => True, -- Subtype_Marks (List2)
11056 3 => False, -- unused
11057 4 => True, -- Component_Definition (Node4)
11058 5 => False), -- unused
11060 N_Constrained_Array_Definition =>
11061 (1 => False, -- unused
11062 2 => True, -- Discrete_Subtype_Definitions (List2)
11063 3 => False, -- unused
11064 4 => True, -- Component_Definition (Node4)
11065 5 => False), -- unused
11067 N_Component_Definition =>
11068 (1 => False, -- unused
11069 2 => False, -- unused
11070 3 => True, -- Access_Definition (Node3)
11071 4 => False, -- unused
11072 5 => True), -- Subtype_Indication (Node5)
11074 N_Discriminant_Specification =>
11075 (1 => True, -- Defining_Identifier (Node1)
11076 2 => False, -- unused
11077 3 => True, -- Expression (Node3)
11078 4 => False, -- unused
11079 5 => True), -- Discriminant_Type (Node5)
11081 N_Index_Or_Discriminant_Constraint =>
11082 (1 => True, -- Constraints (List1)
11083 2 => False, -- unused
11084 3 => False, -- unused
11085 4 => False, -- unused
11086 5 => False), -- unused
11088 N_Discriminant_Association =>
11089 (1 => True, -- Selector_Names (List1)
11090 2 => False, -- unused
11091 3 => True, -- Expression (Node3)
11092 4 => False, -- unused
11093 5 => False), -- unused
11095 N_Record_Definition =>
11096 (1 => True, -- Component_List (Node1)
11097 2 => True, -- Interface_List (List2)
11098 3 => False, -- unused
11099 4 => True, -- End_Label (Node4)
11100 5 => False), -- unused
11102 N_Component_List =>
11103 (1 => False, -- unused
11104 2 => False, -- unused
11105 3 => True, -- Component_Items (List3)
11106 4 => True, -- Variant_Part (Node4)
11107 5 => False), -- unused
11109 N_Component_Declaration =>
11110 (1 => True, -- Defining_Identifier (Node1)
11111 2 => False, -- unused
11112 3 => True, -- Expression (Node3)
11113 4 => True, -- Component_Definition (Node4)
11114 5 => False), -- unused
11116 N_Variant_Part =>
11117 (1 => True, -- Variants (List1)
11118 2 => True, -- Name (Node2)
11119 3 => False, -- unused
11120 4 => False, -- unused
11121 5 => False), -- unused
11123 N_Variant =>
11124 (1 => True, -- Component_List (Node1)
11125 2 => False, -- Enclosing_Variant (Node2-Sem)
11126 3 => False, -- Present_Expr (Uint3-Sem)
11127 4 => True, -- Discrete_Choices (List4)
11128 5 => False), -- Dcheck_Function (Node5-Sem)
11130 N_Others_Choice =>
11131 (1 => False, -- Others_Discrete_Choices (List1-Sem)
11132 2 => False, -- unused
11133 3 => False, -- unused
11134 4 => False, -- unused
11135 5 => False), -- unused
11137 N_Access_To_Object_Definition =>
11138 (1 => False, -- unused
11139 2 => False, -- unused
11140 3 => False, -- unused
11141 4 => False, -- unused
11142 5 => True), -- Subtype_Indication (Node5)
11144 N_Access_Function_Definition =>
11145 (1 => False, -- unused
11146 2 => False, -- unused
11147 3 => True, -- Parameter_Specifications (List3)
11148 4 => True, -- Result_Definition (Node4)
11149 5 => False), -- unused
11151 N_Access_Procedure_Definition =>
11152 (1 => False, -- unused
11153 2 => False, -- unused
11154 3 => True, -- Parameter_Specifications (List3)
11155 4 => False, -- unused
11156 5 => False), -- unused
11158 N_Access_Definition =>
11159 (1 => False, -- unused
11160 2 => False, -- unused
11161 3 => True, -- Access_To_Subprogram_Definition (Node3)
11162 4 => True, -- Subtype_Mark (Node4)
11163 5 => False), -- unused
11165 N_Incomplete_Type_Declaration =>
11166 (1 => True, -- Defining_Identifier (Node1)
11167 2 => False, -- unused
11168 3 => False, -- unused
11169 4 => True, -- Discriminant_Specifications (List4)
11170 5 => False), -- Premature_Use
11172 N_Explicit_Dereference =>
11173 (1 => False, -- unused
11174 2 => False, -- unused
11175 3 => True, -- Prefix (Node3)
11176 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11177 5 => False), -- Etype (Node5-Sem)
11179 N_Indexed_Component =>
11180 (1 => True, -- Expressions (List1)
11181 2 => False, -- unused
11182 3 => True, -- Prefix (Node3)
11183 4 => False, -- Generalized_Indexing (Node4-Sem)
11184 5 => False), -- Etype (Node5-Sem)
11186 N_Slice =>
11187 (1 => False, -- unused
11188 2 => False, -- unused
11189 3 => True, -- Prefix (Node3)
11190 4 => True, -- Discrete_Range (Node4)
11191 5 => False), -- Etype (Node5-Sem)
11193 N_Selected_Component =>
11194 (1 => False, -- unused
11195 2 => True, -- Selector_Name (Node2)
11196 3 => True, -- Prefix (Node3)
11197 4 => False, -- unused
11198 5 => False), -- Etype (Node5-Sem)
11200 N_Attribute_Reference =>
11201 (1 => True, -- Expressions (List1)
11202 2 => True, -- Attribute_Name (Name2)
11203 3 => True, -- Prefix (Node3)
11204 4 => False, -- Entity (Node4-Sem)
11205 5 => False), -- Etype (Node5-Sem)
11207 N_Aggregate =>
11208 (1 => True, -- Expressions (List1)
11209 2 => True, -- Component_Associations (List2)
11210 3 => False, -- Aggregate_Bounds (Node3-Sem)
11211 4 => False, -- unused
11212 5 => False), -- Etype (Node5-Sem)
11214 N_Component_Association =>
11215 (1 => True, -- Choices (List1)
11216 2 => False, -- Loop_Actions (List2-Sem)
11217 3 => True, -- Expression (Node3)
11218 4 => False, -- unused
11219 5 => False), -- unused
11221 N_Extension_Aggregate =>
11222 (1 => True, -- Expressions (List1)
11223 2 => True, -- Component_Associations (List2)
11224 3 => True, -- Ancestor_Part (Node3)
11225 4 => False, -- unused
11226 5 => False), -- Etype (Node5-Sem)
11228 N_Null =>
11229 (1 => False, -- unused
11230 2 => False, -- unused
11231 3 => False, -- unused
11232 4 => False, -- unused
11233 5 => False), -- Etype (Node5-Sem)
11235 N_And_Then =>
11236 (1 => False, -- Actions (List1-Sem)
11237 2 => True, -- Left_Opnd (Node2)
11238 3 => True, -- Right_Opnd (Node3)
11239 4 => False, -- unused
11240 5 => False), -- Etype (Node5-Sem)
11242 N_Or_Else =>
11243 (1 => False, -- Actions (List1-Sem)
11244 2 => True, -- Left_Opnd (Node2)
11245 3 => True, -- Right_Opnd (Node3)
11246 4 => False, -- unused
11247 5 => False), -- Etype (Node5-Sem)
11249 N_In =>
11250 (1 => False, -- unused
11251 2 => True, -- Left_Opnd (Node2)
11252 3 => True, -- Right_Opnd (Node3)
11253 4 => True, -- Alternatives (List4)
11254 5 => False), -- Etype (Node5-Sem)
11256 N_Not_In =>
11257 (1 => False, -- unused
11258 2 => True, -- Left_Opnd (Node2)
11259 3 => True, -- Right_Opnd (Node3)
11260 4 => True, -- Alternatives (List4)
11261 5 => False), -- Etype (Node5-Sem)
11263 N_Op_And =>
11264 (1 => True, -- Chars (Name1)
11265 2 => True, -- Left_Opnd (Node2)
11266 3 => True, -- Right_Opnd (Node3)
11267 4 => False, -- Entity (Node4-Sem)
11268 5 => False), -- Etype (Node5-Sem)
11270 N_Op_Or =>
11271 (1 => True, -- Chars (Name1)
11272 2 => True, -- Left_Opnd (Node2)
11273 3 => True, -- Right_Opnd (Node3)
11274 4 => False, -- Entity (Node4-Sem)
11275 5 => False), -- Etype (Node5-Sem)
11277 N_Op_Xor =>
11278 (1 => True, -- Chars (Name1)
11279 2 => True, -- Left_Opnd (Node2)
11280 3 => True, -- Right_Opnd (Node3)
11281 4 => False, -- Entity (Node4-Sem)
11282 5 => False), -- Etype (Node5-Sem)
11284 N_Op_Eq =>
11285 (1 => True, -- Chars (Name1)
11286 2 => True, -- Left_Opnd (Node2)
11287 3 => True, -- Right_Opnd (Node3)
11288 4 => False, -- Entity (Node4-Sem)
11289 5 => False), -- Etype (Node5-Sem)
11291 N_Op_Ne =>
11292 (1 => True, -- Chars (Name1)
11293 2 => True, -- Left_Opnd (Node2)
11294 3 => True, -- Right_Opnd (Node3)
11295 4 => False, -- Entity (Node4-Sem)
11296 5 => False), -- Etype (Node5-Sem)
11298 N_Op_Lt =>
11299 (1 => True, -- Chars (Name1)
11300 2 => True, -- Left_Opnd (Node2)
11301 3 => True, -- Right_Opnd (Node3)
11302 4 => False, -- Entity (Node4-Sem)
11303 5 => False), -- Etype (Node5-Sem)
11305 N_Op_Le =>
11306 (1 => True, -- Chars (Name1)
11307 2 => True, -- Left_Opnd (Node2)
11308 3 => True, -- Right_Opnd (Node3)
11309 4 => False, -- Entity (Node4-Sem)
11310 5 => False), -- Etype (Node5-Sem)
11312 N_Op_Gt =>
11313 (1 => True, -- Chars (Name1)
11314 2 => True, -- Left_Opnd (Node2)
11315 3 => True, -- Right_Opnd (Node3)
11316 4 => False, -- Entity (Node4-Sem)
11317 5 => False), -- Etype (Node5-Sem)
11319 N_Op_Ge =>
11320 (1 => True, -- Chars (Name1)
11321 2 => True, -- Left_Opnd (Node2)
11322 3 => True, -- Right_Opnd (Node3)
11323 4 => False, -- Entity (Node4-Sem)
11324 5 => False), -- Etype (Node5-Sem)
11326 N_Op_Add =>
11327 (1 => True, -- Chars (Name1)
11328 2 => True, -- Left_Opnd (Node2)
11329 3 => True, -- Right_Opnd (Node3)
11330 4 => False, -- Entity (Node4-Sem)
11331 5 => False), -- Etype (Node5-Sem)
11333 N_Op_Subtract =>
11334 (1 => True, -- Chars (Name1)
11335 2 => True, -- Left_Opnd (Node2)
11336 3 => True, -- Right_Opnd (Node3)
11337 4 => False, -- Entity (Node4-Sem)
11338 5 => False), -- Etype (Node5-Sem)
11340 N_Op_Concat =>
11341 (1 => True, -- Chars (Name1)
11342 2 => True, -- Left_Opnd (Node2)
11343 3 => True, -- Right_Opnd (Node3)
11344 4 => False, -- Entity (Node4-Sem)
11345 5 => False), -- Etype (Node5-Sem)
11347 N_Op_Multiply =>
11348 (1 => True, -- Chars (Name1)
11349 2 => True, -- Left_Opnd (Node2)
11350 3 => True, -- Right_Opnd (Node3)
11351 4 => False, -- Entity (Node4-Sem)
11352 5 => False), -- Etype (Node5-Sem)
11354 N_Op_Divide =>
11355 (1 => True, -- Chars (Name1)
11356 2 => True, -- Left_Opnd (Node2)
11357 3 => True, -- Right_Opnd (Node3)
11358 4 => False, -- Entity (Node4-Sem)
11359 5 => False), -- Etype (Node5-Sem)
11361 N_Op_Mod =>
11362 (1 => True, -- Chars (Name1)
11363 2 => True, -- Left_Opnd (Node2)
11364 3 => True, -- Right_Opnd (Node3)
11365 4 => False, -- Entity (Node4-Sem)
11366 5 => False), -- Etype (Node5-Sem)
11368 N_Op_Rem =>
11369 (1 => True, -- Chars (Name1)
11370 2 => True, -- Left_Opnd (Node2)
11371 3 => True, -- Right_Opnd (Node3)
11372 4 => False, -- Entity (Node4-Sem)
11373 5 => False), -- Etype (Node5-Sem)
11375 N_Op_Expon =>
11376 (1 => True, -- Chars (Name1)
11377 2 => True, -- Left_Opnd (Node2)
11378 3 => True, -- Right_Opnd (Node3)
11379 4 => False, -- Entity (Node4-Sem)
11380 5 => False), -- Etype (Node5-Sem)
11382 N_Op_Plus =>
11383 (1 => True, -- Chars (Name1)
11384 2 => False, -- unused
11385 3 => True, -- Right_Opnd (Node3)
11386 4 => False, -- Entity (Node4-Sem)
11387 5 => False), -- Etype (Node5-Sem)
11389 N_Op_Minus =>
11390 (1 => True, -- Chars (Name1)
11391 2 => False, -- unused
11392 3 => True, -- Right_Opnd (Node3)
11393 4 => False, -- Entity (Node4-Sem)
11394 5 => False), -- Etype (Node5-Sem)
11396 N_Op_Abs =>
11397 (1 => True, -- Chars (Name1)
11398 2 => False, -- unused
11399 3 => True, -- Right_Opnd (Node3)
11400 4 => False, -- Entity (Node4-Sem)
11401 5 => False), -- Etype (Node5-Sem)
11403 N_Op_Not =>
11404 (1 => True, -- Chars (Name1)
11405 2 => False, -- unused
11406 3 => True, -- Right_Opnd (Node3)
11407 4 => False, -- Entity (Node4-Sem)
11408 5 => False), -- Etype (Node5-Sem)
11410 N_Type_Conversion =>
11411 (1 => False, -- unused
11412 2 => False, -- unused
11413 3 => True, -- Expression (Node3)
11414 4 => True, -- Subtype_Mark (Node4)
11415 5 => False), -- Etype (Node5-Sem)
11417 N_Qualified_Expression =>
11418 (1 => False, -- unused
11419 2 => False, -- unused
11420 3 => True, -- Expression (Node3)
11421 4 => True, -- Subtype_Mark (Node4)
11422 5 => False), -- Etype (Node5-Sem)
11424 N_Quantified_Expression =>
11425 (1 => True, -- Condition (Node1)
11426 2 => True, -- Iterator_Specification
11427 3 => False, -- unused
11428 4 => True, -- Loop_Parameter_Specification (Node4)
11429 5 => False), -- Etype (Node5-Sem)
11431 N_Allocator =>
11432 (1 => False, -- Storage_Pool (Node1-Sem)
11433 2 => False, -- Procedure_To_Call (Node2-Sem)
11434 3 => True, -- Expression (Node3)
11435 4 => True, -- Subpool_Handle_Name (Node4)
11436 5 => False), -- Etype (Node5-Sem)
11438 N_Null_Statement =>
11439 (1 => False, -- unused
11440 2 => False, -- unused
11441 3 => False, -- unused
11442 4 => False, -- unused
11443 5 => False), -- unused
11445 N_Label =>
11446 (1 => True, -- Identifier (Node1)
11447 2 => False, -- unused
11448 3 => False, -- unused
11449 4 => False, -- unused
11450 5 => False), -- unused
11452 N_Assignment_Statement =>
11453 (1 => False, -- unused
11454 2 => True, -- Name (Node2)
11455 3 => True, -- Expression (Node3)
11456 4 => False, -- unused
11457 5 => False), -- unused
11459 N_If_Statement =>
11460 (1 => True, -- Condition (Node1)
11461 2 => True, -- Then_Statements (List2)
11462 3 => True, -- Elsif_Parts (List3)
11463 4 => True, -- Else_Statements (List4)
11464 5 => True), -- End_Span (Uint5)
11466 N_Elsif_Part =>
11467 (1 => True, -- Condition (Node1)
11468 2 => True, -- Then_Statements (List2)
11469 3 => False, -- Condition_Actions (List3-Sem)
11470 4 => False, -- unused
11471 5 => False), -- unused
11473 N_Case_Expression =>
11474 (1 => False, -- unused
11475 2 => False, -- unused
11476 3 => True, -- Expression (Node3)
11477 4 => True, -- Alternatives (List4)
11478 5 => False), -- unused
11480 N_Case_Expression_Alternative =>
11481 (1 => False, -- Actions (List1-Sem)
11482 2 => False, -- unused
11483 3 => True, -- Statements (List3)
11484 4 => True, -- Expression (Node4)
11485 5 => False), -- unused
11487 N_Case_Statement =>
11488 (1 => False, -- unused
11489 2 => False, -- unused
11490 3 => True, -- Expression (Node3)
11491 4 => True, -- Alternatives (List4)
11492 5 => True), -- End_Span (Uint5)
11494 N_Case_Statement_Alternative =>
11495 (1 => False, -- unused
11496 2 => False, -- unused
11497 3 => True, -- Statements (List3)
11498 4 => True, -- Discrete_Choices (List4)
11499 5 => False), -- unused
11501 N_Loop_Statement =>
11502 (1 => True, -- Identifier (Node1)
11503 2 => True, -- Iteration_Scheme (Node2)
11504 3 => True, -- Statements (List3)
11505 4 => True, -- End_Label (Node4)
11506 5 => False), -- unused
11508 N_Iteration_Scheme =>
11509 (1 => True, -- Condition (Node1)
11510 2 => True, -- Iterator_Specification (Node2)
11511 3 => False, -- Condition_Actions (List3-Sem)
11512 4 => True, -- Loop_Parameter_Specification (Node4)
11513 5 => False), -- unused
11515 N_Loop_Parameter_Specification =>
11516 (1 => True, -- Defining_Identifier (Node1)
11517 2 => False, -- unused
11518 3 => False, -- unused
11519 4 => True, -- Discrete_Subtype_Definition (Node4)
11520 5 => False), -- unused
11522 N_Iterator_Specification =>
11523 (1 => True, -- Defining_Identifier (Node1)
11524 2 => True, -- Name (Node2)
11525 3 => False, -- Unused
11526 4 => False, -- Unused
11527 5 => True), -- Subtype_Indication (Node5)
11529 N_Block_Statement =>
11530 (1 => True, -- Identifier (Node1)
11531 2 => True, -- Declarations (List2)
11532 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11533 4 => True, -- Handled_Statement_Sequence (Node4)
11534 5 => False), -- unused
11536 N_Exit_Statement =>
11537 (1 => True, -- Condition (Node1)
11538 2 => True, -- Name (Node2)
11539 3 => False, -- unused
11540 4 => False, -- unused
11541 5 => False), -- unused
11543 N_Goto_Statement =>
11544 (1 => False, -- unused
11545 2 => True, -- Name (Node2)
11546 3 => False, -- unused
11547 4 => False, -- unused
11548 5 => False), -- unused
11550 N_Subprogram_Declaration =>
11551 (1 => True, -- Specification (Node1)
11552 2 => False, -- unused
11553 3 => False, -- Body_To_Inline (Node3-Sem)
11554 4 => False, -- Parent_Spec (Node4-Sem)
11555 5 => False), -- Corresponding_Body (Node5-Sem)
11557 N_Abstract_Subprogram_Declaration =>
11558 (1 => True, -- Specification (Node1)
11559 2 => False, -- unused
11560 3 => False, -- unused
11561 4 => False, -- unused
11562 5 => False), -- unused
11564 N_Function_Specification =>
11565 (1 => True, -- Defining_Unit_Name (Node1)
11566 2 => False, -- unused
11567 3 => True, -- Parameter_Specifications (List3)
11568 4 => True, -- Result_Definition (Node4)
11569 5 => False), -- Generic_Parent (Node5-Sem)
11571 N_Procedure_Specification =>
11572 (1 => True, -- Defining_Unit_Name (Node1)
11573 2 => False, -- unused
11574 3 => True, -- Parameter_Specifications (List3)
11575 4 => False, -- unused
11576 5 => False), -- Generic_Parent (Node5-Sem)
11578 N_Designator =>
11579 (1 => True, -- Identifier (Node1)
11580 2 => True, -- Name (Node2)
11581 3 => False, -- unused
11582 4 => False, -- unused
11583 5 => False), -- unused
11585 N_Defining_Program_Unit_Name =>
11586 (1 => True, -- Defining_Identifier (Node1)
11587 2 => True, -- Name (Node2)
11588 3 => False, -- unused
11589 4 => False, -- unused
11590 5 => False), -- unused
11592 N_Operator_Symbol =>
11593 (1 => True, -- Chars (Name1)
11594 2 => False, -- unused
11595 3 => True, -- Strval (Str3)
11596 4 => False, -- Entity (Node4-Sem)
11597 5 => False), -- Etype (Node5-Sem)
11599 N_Defining_Operator_Symbol =>
11600 (1 => True, -- Chars (Name1)
11601 2 => False, -- Next_Entity (Node2-Sem)
11602 3 => False, -- Scope (Node3-Sem)
11603 4 => False, -- unused
11604 5 => False), -- Etype (Node5-Sem)
11606 N_Parameter_Specification =>
11607 (1 => True, -- Defining_Identifier (Node1)
11608 2 => True, -- Parameter_Type (Node2)
11609 3 => True, -- Expression (Node3)
11610 4 => False, -- unused
11611 5 => False), -- Default_Expression (Node5-Sem)
11613 N_Subprogram_Body =>
11614 (1 => True, -- Specification (Node1)
11615 2 => True, -- Declarations (List2)
11616 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11617 4 => True, -- Handled_Statement_Sequence (Node4)
11618 5 => False), -- Corresponding_Spec (Node5-Sem)
11620 N_Expression_Function =>
11621 (1 => True, -- Specification (Node1)
11622 2 => False, -- unused
11623 3 => True, -- Expression (Node3)
11624 4 => False, -- unused
11625 5 => False), -- unused
11627 N_Procedure_Call_Statement =>
11628 (1 => False, -- Controlling_Argument (Node1-Sem)
11629 2 => True, -- Name (Node2)
11630 3 => True, -- Parameter_Associations (List3)
11631 4 => False, -- First_Named_Actual (Node4-Sem)
11632 5 => False), -- Etype (Node5-Sem)
11634 N_Function_Call =>
11635 (1 => False, -- Controlling_Argument (Node1-Sem)
11636 2 => True, -- Name (Node2)
11637 3 => True, -- Parameter_Associations (List3)
11638 4 => False, -- First_Named_Actual (Node4-Sem)
11639 5 => False), -- Etype (Node5-Sem)
11641 N_Parameter_Association =>
11642 (1 => False, -- unused
11643 2 => True, -- Selector_Name (Node2)
11644 3 => True, -- Explicit_Actual_Parameter (Node3)
11645 4 => False, -- Next_Named_Actual (Node4-Sem)
11646 5 => False), -- unused
11648 N_Simple_Return_Statement =>
11649 (1 => False, -- Storage_Pool (Node1-Sem)
11650 2 => False, -- Procedure_To_Call (Node2-Sem)
11651 3 => True, -- Expression (Node3)
11652 4 => False, -- unused
11653 5 => False), -- Return_Statement_Entity (Node5-Sem)
11655 N_Extended_Return_Statement =>
11656 (1 => False, -- Storage_Pool (Node1-Sem)
11657 2 => False, -- Procedure_To_Call (Node2-Sem)
11658 3 => True, -- Return_Object_Declarations (List3)
11659 4 => True, -- Handled_Statement_Sequence (Node4)
11660 5 => False), -- Return_Statement_Entity (Node5-Sem)
11662 N_Package_Declaration =>
11663 (1 => True, -- Specification (Node1)
11664 2 => False, -- unused
11665 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11666 4 => False, -- Parent_Spec (Node4-Sem)
11667 5 => False), -- Corresponding_Body (Node5-Sem)
11669 N_Package_Specification =>
11670 (1 => True, -- Defining_Unit_Name (Node1)
11671 2 => True, -- Visible_Declarations (List2)
11672 3 => True, -- Private_Declarations (List3)
11673 4 => True, -- End_Label (Node4)
11674 5 => False), -- Generic_Parent (Node5-Sem)
11676 N_Package_Body =>
11677 (1 => True, -- Defining_Unit_Name (Node1)
11678 2 => True, -- Declarations (List2)
11679 3 => False, -- unused
11680 4 => True, -- Handled_Statement_Sequence (Node4)
11681 5 => False), -- Corresponding_Spec (Node5-Sem)
11683 N_Private_Type_Declaration =>
11684 (1 => True, -- Defining_Identifier (Node1)
11685 2 => False, -- unused
11686 3 => False, -- unused
11687 4 => True, -- Discriminant_Specifications (List4)
11688 5 => False), -- unused
11690 N_Private_Extension_Declaration =>
11691 (1 => True, -- Defining_Identifier (Node1)
11692 2 => True, -- Interface_List (List2)
11693 3 => False, -- unused
11694 4 => True, -- Discriminant_Specifications (List4)
11695 5 => True), -- Subtype_Indication (Node5)
11697 N_Use_Package_Clause =>
11698 (1 => False, -- unused
11699 2 => True, -- Names (List2)
11700 3 => False, -- Next_Use_Clause (Node3-Sem)
11701 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11702 5 => False), -- unused
11704 N_Use_Type_Clause =>
11705 (1 => False, -- unused
11706 2 => True, -- Subtype_Marks (List2)
11707 3 => False, -- Next_Use_Clause (Node3-Sem)
11708 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11709 5 => False), -- unused
11711 N_Object_Renaming_Declaration =>
11712 (1 => True, -- Defining_Identifier (Node1)
11713 2 => True, -- Name (Node2)
11714 3 => True, -- Access_Definition (Node3)
11715 4 => True, -- Subtype_Mark (Node4)
11716 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11718 N_Exception_Renaming_Declaration =>
11719 (1 => True, -- Defining_Identifier (Node1)
11720 2 => True, -- Name (Node2)
11721 3 => False, -- unused
11722 4 => False, -- unused
11723 5 => False), -- unused
11725 N_Package_Renaming_Declaration =>
11726 (1 => True, -- Defining_Unit_Name (Node1)
11727 2 => True, -- Name (Node2)
11728 3 => False, -- unused
11729 4 => False, -- Parent_Spec (Node4-Sem)
11730 5 => False), -- unused
11732 N_Subprogram_Renaming_Declaration =>
11733 (1 => True, -- Specification (Node1)
11734 2 => True, -- Name (Node2)
11735 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
11736 4 => False, -- Parent_Spec (Node4-Sem)
11737 5 => False), -- Corresponding_Spec (Node5-Sem)
11739 N_Generic_Package_Renaming_Declaration =>
11740 (1 => True, -- Defining_Unit_Name (Node1)
11741 2 => True, -- Name (Node2)
11742 3 => False, -- unused
11743 4 => False, -- Parent_Spec (Node4-Sem)
11744 5 => False), -- unused
11746 N_Generic_Procedure_Renaming_Declaration =>
11747 (1 => True, -- Defining_Unit_Name (Node1)
11748 2 => True, -- Name (Node2)
11749 3 => False, -- unused
11750 4 => False, -- Parent_Spec (Node4-Sem)
11751 5 => False), -- unused
11753 N_Generic_Function_Renaming_Declaration =>
11754 (1 => True, -- Defining_Unit_Name (Node1)
11755 2 => True, -- Name (Node2)
11756 3 => False, -- unused
11757 4 => False, -- Parent_Spec (Node4-Sem)
11758 5 => False), -- unused
11760 N_Task_Type_Declaration =>
11761 (1 => True, -- Defining_Identifier (Node1)
11762 2 => True, -- Interface_List (List2)
11763 3 => True, -- Task_Definition (Node3)
11764 4 => True, -- Discriminant_Specifications (List4)
11765 5 => False), -- Corresponding_Body (Node5-Sem)
11767 N_Single_Task_Declaration =>
11768 (1 => True, -- Defining_Identifier (Node1)
11769 2 => True, -- Interface_List (List2)
11770 3 => True, -- Task_Definition (Node3)
11771 4 => False, -- unused
11772 5 => False), -- unused
11774 N_Task_Definition =>
11775 (1 => False, -- unused
11776 2 => True, -- Visible_Declarations (List2)
11777 3 => True, -- Private_Declarations (List3)
11778 4 => True, -- End_Label (Node4)
11779 5 => False), -- unused
11781 N_Task_Body =>
11782 (1 => True, -- Defining_Identifier (Node1)
11783 2 => True, -- Declarations (List2)
11784 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11785 4 => True, -- Handled_Statement_Sequence (Node4)
11786 5 => False), -- Corresponding_Spec (Node5-Sem)
11788 N_Protected_Type_Declaration =>
11789 (1 => True, -- Defining_Identifier (Node1)
11790 2 => True, -- Interface_List (List2)
11791 3 => True, -- Protected_Definition (Node3)
11792 4 => True, -- Discriminant_Specifications (List4)
11793 5 => False), -- Corresponding_Body (Node5-Sem)
11795 N_Single_Protected_Declaration =>
11796 (1 => True, -- Defining_Identifier (Node1)
11797 2 => True, -- Interface_List (List2)
11798 3 => True, -- Protected_Definition (Node3)
11799 4 => False, -- unused
11800 5 => False), -- unused
11802 N_Protected_Definition =>
11803 (1 => False, -- unused
11804 2 => True, -- Visible_Declarations (List2)
11805 3 => True, -- Private_Declarations (List3)
11806 4 => True, -- End_Label (Node4)
11807 5 => False), -- unused
11809 N_Protected_Body =>
11810 (1 => True, -- Defining_Identifier (Node1)
11811 2 => True, -- Declarations (List2)
11812 3 => False, -- unused
11813 4 => True, -- End_Label (Node4)
11814 5 => False), -- Corresponding_Spec (Node5-Sem)
11816 N_Entry_Declaration =>
11817 (1 => True, -- Defining_Identifier (Node1)
11818 2 => False, -- unused
11819 3 => True, -- Parameter_Specifications (List3)
11820 4 => True, -- Discrete_Subtype_Definition (Node4)
11821 5 => False), -- Corresponding_Body (Node5-Sem)
11823 N_Accept_Statement =>
11824 (1 => True, -- Entry_Direct_Name (Node1)
11825 2 => True, -- Declarations (List2)
11826 3 => True, -- Parameter_Specifications (List3)
11827 4 => True, -- Handled_Statement_Sequence (Node4)
11828 5 => True), -- Entry_Index (Node5)
11830 N_Entry_Body =>
11831 (1 => True, -- Defining_Identifier (Node1)
11832 2 => True, -- Declarations (List2)
11833 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11834 4 => True, -- Handled_Statement_Sequence (Node4)
11835 5 => True), -- Entry_Body_Formal_Part (Node5)
11837 N_Entry_Body_Formal_Part =>
11838 (1 => True, -- Condition (Node1)
11839 2 => False, -- unused
11840 3 => True, -- Parameter_Specifications (List3)
11841 4 => True, -- Entry_Index_Specification (Node4)
11842 5 => False), -- unused
11844 N_Entry_Index_Specification =>
11845 (1 => True, -- Defining_Identifier (Node1)
11846 2 => False, -- unused
11847 3 => False, -- unused
11848 4 => True, -- Discrete_Subtype_Definition (Node4)
11849 5 => False), -- unused
11851 N_Entry_Call_Statement =>
11852 (1 => False, -- unused
11853 2 => True, -- Name (Node2)
11854 3 => True, -- Parameter_Associations (List3)
11855 4 => False, -- First_Named_Actual (Node4-Sem)
11856 5 => False), -- unused
11858 N_Requeue_Statement =>
11859 (1 => False, -- unused
11860 2 => True, -- Name (Node2)
11861 3 => False, -- unused
11862 4 => False, -- unused
11863 5 => False), -- unused
11865 N_Delay_Until_Statement =>
11866 (1 => False, -- unused
11867 2 => False, -- unused
11868 3 => True, -- Expression (Node3)
11869 4 => False, -- unused
11870 5 => False), -- unused
11872 N_Delay_Relative_Statement =>
11873 (1 => False, -- unused
11874 2 => False, -- unused
11875 3 => True, -- Expression (Node3)
11876 4 => False, -- unused
11877 5 => False), -- unused
11879 N_Selective_Accept =>
11880 (1 => True, -- Select_Alternatives (List1)
11881 2 => False, -- unused
11882 3 => False, -- unused
11883 4 => True, -- Else_Statements (List4)
11884 5 => False), -- unused
11886 N_Accept_Alternative =>
11887 (1 => True, -- Condition (Node1)
11888 2 => True, -- Accept_Statement (Node2)
11889 3 => True, -- Statements (List3)
11890 4 => True, -- Pragmas_Before (List4)
11891 5 => False), -- Accept_Handler_Records (List5-Sem)
11893 N_Delay_Alternative =>
11894 (1 => True, -- Condition (Node1)
11895 2 => True, -- Delay_Statement (Node2)
11896 3 => True, -- Statements (List3)
11897 4 => True, -- Pragmas_Before (List4)
11898 5 => False), -- unused
11900 N_Terminate_Alternative =>
11901 (1 => True, -- Condition (Node1)
11902 2 => False, -- unused
11903 3 => False, -- unused
11904 4 => True, -- Pragmas_Before (List4)
11905 5 => True), -- Pragmas_After (List5)
11907 N_Timed_Entry_Call =>
11908 (1 => True, -- Entry_Call_Alternative (Node1)
11909 2 => False, -- unused
11910 3 => False, -- unused
11911 4 => True, -- Delay_Alternative (Node4)
11912 5 => False), -- unused
11914 N_Entry_Call_Alternative =>
11915 (1 => True, -- Entry_Call_Statement (Node1)
11916 2 => False, -- unused
11917 3 => True, -- Statements (List3)
11918 4 => True, -- Pragmas_Before (List4)
11919 5 => False), -- unused
11921 N_Conditional_Entry_Call =>
11922 (1 => True, -- Entry_Call_Alternative (Node1)
11923 2 => False, -- unused
11924 3 => False, -- unused
11925 4 => True, -- Else_Statements (List4)
11926 5 => False), -- unused
11928 N_Asynchronous_Select =>
11929 (1 => True, -- Triggering_Alternative (Node1)
11930 2 => True, -- Abortable_Part (Node2)
11931 3 => False, -- unused
11932 4 => False, -- unused
11933 5 => False), -- unused
11935 N_Triggering_Alternative =>
11936 (1 => True, -- Triggering_Statement (Node1)
11937 2 => False, -- unused
11938 3 => True, -- Statements (List3)
11939 4 => True, -- Pragmas_Before (List4)
11940 5 => False), -- unused
11942 N_Abortable_Part =>
11943 (1 => False, -- unused
11944 2 => False, -- unused
11945 3 => True, -- Statements (List3)
11946 4 => False, -- unused
11947 5 => False), -- unused
11949 N_Abort_Statement =>
11950 (1 => False, -- unused
11951 2 => True, -- Names (List2)
11952 3 => False, -- unused
11953 4 => False, -- unused
11954 5 => False), -- unused
11956 N_Compilation_Unit =>
11957 (1 => True, -- Context_Items (List1)
11958 2 => True, -- Unit (Node2)
11959 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
11960 4 => False, -- Library_Unit (Node4-Sem)
11961 5 => True), -- Aux_Decls_Node (Node5)
11963 N_Compilation_Unit_Aux =>
11964 (1 => True, -- Actions (List1)
11965 2 => True, -- Declarations (List2)
11966 3 => False, -- Default_Storage_Pool (Node3)
11967 4 => True, -- Config_Pragmas (List4)
11968 5 => True), -- Pragmas_After (List5)
11970 N_With_Clause =>
11971 (1 => False, -- unused
11972 2 => True, -- Name (Node2)
11973 3 => False, -- unused
11974 4 => False, -- Library_Unit (Node4-Sem)
11975 5 => False), -- Corresponding_Spec (Node5-Sem)
11977 N_Subprogram_Body_Stub =>
11978 (1 => True, -- Specification (Node1)
11979 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11980 3 => False, -- unused
11981 4 => False, -- Library_Unit (Node4-Sem)
11982 5 => False), -- Corresponding_Body (Node5-Sem)
11984 N_Package_Body_Stub =>
11985 (1 => True, -- Defining_Identifier (Node1)
11986 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11987 3 => False, -- unused
11988 4 => False, -- Library_Unit (Node4-Sem)
11989 5 => False), -- Corresponding_Body (Node5-Sem)
11991 N_Task_Body_Stub =>
11992 (1 => True, -- Defining_Identifier (Node1)
11993 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11994 3 => False, -- unused
11995 4 => False, -- Library_Unit (Node4-Sem)
11996 5 => False), -- Corresponding_Body (Node5-Sem)
11998 N_Protected_Body_Stub =>
11999 (1 => True, -- Defining_Identifier (Node1)
12000 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12001 3 => False, -- unused
12002 4 => False, -- Library_Unit (Node4-Sem)
12003 5 => False), -- Corresponding_Body (Node5-Sem)
12005 N_Subunit =>
12006 (1 => True, -- Proper_Body (Node1)
12007 2 => True, -- Name (Node2)
12008 3 => False, -- Corresponding_Stub (Node3-Sem)
12009 4 => False, -- unused
12010 5 => False), -- unused
12012 N_Exception_Declaration =>
12013 (1 => True, -- Defining_Identifier (Node1)
12014 2 => False, -- unused
12015 3 => False, -- Expression (Node3-Sem)
12016 4 => False, -- unused
12017 5 => False), -- unused
12019 N_Handled_Sequence_Of_Statements =>
12020 (1 => True, -- At_End_Proc (Node1)
12021 2 => False, -- First_Real_Statement (Node2-Sem)
12022 3 => True, -- Statements (List3)
12023 4 => True, -- End_Label (Node4)
12024 5 => True), -- Exception_Handlers (List5)
12026 N_Exception_Handler =>
12027 (1 => False, -- Local_Raise_Statements (Elist1)
12028 2 => True, -- Choice_Parameter (Node2)
12029 3 => True, -- Statements (List3)
12030 4 => True, -- Exception_Choices (List4)
12031 5 => False), -- Exception_Label (Node5)
12033 N_Raise_Statement =>
12034 (1 => False, -- unused
12035 2 => True, -- Name (Node2)
12036 3 => True, -- Expression (Node3)
12037 4 => False, -- unused
12038 5 => False), -- unused
12040 N_Raise_Expression =>
12041 (1 => False, -- unused
12042 2 => True, -- Name (Node2)
12043 3 => True, -- Expression (Node3)
12044 4 => False, -- unused
12045 5 => False), -- Etype (Node5-Sem)
12047 N_Generic_Subprogram_Declaration =>
12048 (1 => True, -- Specification (Node1)
12049 2 => True, -- Generic_Formal_Declarations (List2)
12050 3 => False, -- unused
12051 4 => False, -- Parent_Spec (Node4-Sem)
12052 5 => False), -- Corresponding_Body (Node5-Sem)
12054 N_Generic_Package_Declaration =>
12055 (1 => True, -- Specification (Node1)
12056 2 => True, -- Generic_Formal_Declarations (List2)
12057 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12058 4 => False, -- Parent_Spec (Node4-Sem)
12059 5 => False), -- Corresponding_Body (Node5-Sem)
12061 N_Package_Instantiation =>
12062 (1 => True, -- Defining_Unit_Name (Node1)
12063 2 => True, -- Name (Node2)
12064 3 => True, -- Generic_Associations (List3)
12065 4 => False, -- Parent_Spec (Node4-Sem)
12066 5 => False), -- Instance_Spec (Node5-Sem)
12068 N_Procedure_Instantiation =>
12069 (1 => True, -- Defining_Unit_Name (Node1)
12070 2 => True, -- Name (Node2)
12071 3 => True, -- Generic_Associations (List3)
12072 4 => False, -- Parent_Spec (Node4-Sem)
12073 5 => False), -- Instance_Spec (Node5-Sem)
12075 N_Function_Instantiation =>
12076 (1 => True, -- Defining_Unit_Name (Node1)
12077 2 => True, -- Name (Node2)
12078 3 => True, -- Generic_Associations (List3)
12079 4 => False, -- Parent_Spec (Node4-Sem)
12080 5 => False), -- Instance_Spec (Node5-Sem)
12082 N_Generic_Association =>
12083 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
12084 2 => True, -- Selector_Name (Node2)
12085 3 => False, -- unused
12086 4 => False, -- unused
12087 5 => False), -- unused
12089 N_Formal_Object_Declaration =>
12090 (1 => True, -- Defining_Identifier (Node1)
12091 2 => False, -- unused
12092 3 => True, -- Access_Definition (Node3)
12093 4 => True, -- Subtype_Mark (Node4)
12094 5 => True), -- Default_Expression (Node5)
12096 N_Formal_Type_Declaration =>
12097 (1 => True, -- Defining_Identifier (Node1)
12098 2 => False, -- unused
12099 3 => True, -- Formal_Type_Definition (Node3)
12100 4 => True, -- Discriminant_Specifications (List4)
12101 5 => False), -- unused
12103 N_Formal_Private_Type_Definition =>
12104 (1 => False, -- unused
12105 2 => False, -- unused
12106 3 => False, -- unused
12107 4 => False, -- unused
12108 5 => False), -- unused
12110 N_Formal_Incomplete_Type_Definition =>
12111 (1 => False, -- unused
12112 2 => False, -- unused
12113 3 => False, -- unused
12114 4 => False, -- unused
12115 5 => False), -- unused
12117 N_Formal_Derived_Type_Definition =>
12118 (1 => False, -- unused
12119 2 => True, -- Interface_List (List2)
12120 3 => False, -- unused
12121 4 => True, -- Subtype_Mark (Node4)
12122 5 => False), -- unused
12124 N_Formal_Discrete_Type_Definition =>
12125 (1 => False, -- unused
12126 2 => False, -- unused
12127 3 => False, -- unused
12128 4 => False, -- unused
12129 5 => False), -- unused
12131 N_Formal_Signed_Integer_Type_Definition =>
12132 (1 => False, -- unused
12133 2 => False, -- unused
12134 3 => False, -- unused
12135 4 => False, -- unused
12136 5 => False), -- unused
12138 N_Formal_Modular_Type_Definition =>
12139 (1 => False, -- unused
12140 2 => False, -- unused
12141 3 => False, -- unused
12142 4 => False, -- unused
12143 5 => False), -- unused
12145 N_Formal_Floating_Point_Definition =>
12146 (1 => False, -- unused
12147 2 => False, -- unused
12148 3 => False, -- unused
12149 4 => False, -- unused
12150 5 => False), -- unused
12152 N_Formal_Ordinary_Fixed_Point_Definition =>
12153 (1 => False, -- unused
12154 2 => False, -- unused
12155 3 => False, -- unused
12156 4 => False, -- unused
12157 5 => False), -- unused
12159 N_Formal_Decimal_Fixed_Point_Definition =>
12160 (1 => False, -- unused
12161 2 => False, -- unused
12162 3 => False, -- unused
12163 4 => False, -- unused
12164 5 => False), -- unused
12166 N_Formal_Concrete_Subprogram_Declaration =>
12167 (1 => True, -- Specification (Node1)
12168 2 => True, -- Default_Name (Node2)
12169 3 => False, -- unused
12170 4 => False, -- unused
12171 5 => False), -- unused
12173 N_Formal_Abstract_Subprogram_Declaration =>
12174 (1 => True, -- Specification (Node1)
12175 2 => True, -- Default_Name (Node2)
12176 3 => False, -- unused
12177 4 => False, -- unused
12178 5 => False), -- unused
12180 N_Formal_Package_Declaration =>
12181 (1 => True, -- Defining_Identifier (Node1)
12182 2 => True, -- Name (Node2)
12183 3 => True, -- Generic_Associations (List3)
12184 4 => False, -- unused
12185 5 => False), -- Instance_Spec (Node5-Sem)
12187 N_Attribute_Definition_Clause =>
12188 (1 => True, -- Chars (Name1)
12189 2 => True, -- Name (Node2)
12190 3 => True, -- Expression (Node3)
12191 4 => False, -- unused
12192 5 => False), -- Next_Rep_Item (Node5-Sem)
12194 N_Aspect_Specification =>
12195 (1 => True, -- Identifier (Node1)
12196 2 => False, -- Aspect_Rep_Item (Node2-Sem)
12197 3 => True, -- Expression (Node3)
12198 4 => False, -- Entity (Node4-Sem)
12199 5 => False), -- Next_Rep_Item (Node5-Sem)
12201 N_Enumeration_Representation_Clause =>
12202 (1 => True, -- Identifier (Node1)
12203 2 => False, -- unused
12204 3 => True, -- Array_Aggregate (Node3)
12205 4 => False, -- unused
12206 5 => False), -- Next_Rep_Item (Node5-Sem)
12208 N_Record_Representation_Clause =>
12209 (1 => True, -- Identifier (Node1)
12210 2 => True, -- Mod_Clause (Node2)
12211 3 => True, -- Component_Clauses (List3)
12212 4 => False, -- unused
12213 5 => False), -- Next_Rep_Item (Node5-Sem)
12215 N_Component_Clause =>
12216 (1 => True, -- Component_Name (Node1)
12217 2 => True, -- Position (Node2)
12218 3 => True, -- First_Bit (Node3)
12219 4 => True, -- Last_Bit (Node4)
12220 5 => False), -- unused
12222 N_Code_Statement =>
12223 (1 => False, -- unused
12224 2 => False, -- unused
12225 3 => True, -- Expression (Node3)
12226 4 => False, -- unused
12227 5 => False), -- unused
12229 N_Op_Rotate_Left =>
12230 (1 => True, -- Chars (Name1)
12231 2 => True, -- Left_Opnd (Node2)
12232 3 => True, -- Right_Opnd (Node3)
12233 4 => False, -- Entity (Node4-Sem)
12234 5 => False), -- Etype (Node5-Sem)
12236 N_Op_Rotate_Right =>
12237 (1 => True, -- Chars (Name1)
12238 2 => True, -- Left_Opnd (Node2)
12239 3 => True, -- Right_Opnd (Node3)
12240 4 => False, -- Entity (Node4-Sem)
12241 5 => False), -- Etype (Node5-Sem)
12243 N_Op_Shift_Left =>
12244 (1 => True, -- Chars (Name1)
12245 2 => True, -- Left_Opnd (Node2)
12246 3 => True, -- Right_Opnd (Node3)
12247 4 => False, -- Entity (Node4-Sem)
12248 5 => False), -- Etype (Node5-Sem)
12250 N_Op_Shift_Right_Arithmetic =>
12251 (1 => True, -- Chars (Name1)
12252 2 => True, -- Left_Opnd (Node2)
12253 3 => True, -- Right_Opnd (Node3)
12254 4 => False, -- Entity (Node4-Sem)
12255 5 => False), -- Etype (Node5-Sem)
12257 N_Op_Shift_Right =>
12258 (1 => True, -- Chars (Name1)
12259 2 => True, -- Left_Opnd (Node2)
12260 3 => True, -- Right_Opnd (Node3)
12261 4 => False, -- Entity (Node4-Sem)
12262 5 => False), -- Etype (Node5-Sem)
12264 N_Delta_Constraint =>
12265 (1 => False, -- unused
12266 2 => False, -- unused
12267 3 => True, -- Delta_Expression (Node3)
12268 4 => True, -- Range_Constraint (Node4)
12269 5 => False), -- unused
12271 N_At_Clause =>
12272 (1 => True, -- Identifier (Node1)
12273 2 => False, -- unused
12274 3 => True, -- Expression (Node3)
12275 4 => False, -- unused
12276 5 => False), -- unused
12278 N_Mod_Clause =>
12279 (1 => False, -- unused
12280 2 => False, -- unused
12281 3 => True, -- Expression (Node3)
12282 4 => True, -- Pragmas_Before (List4)
12283 5 => False), -- unused
12285 N_If_Expression =>
12286 (1 => True, -- Expressions (List1)
12287 2 => False, -- Then_Actions (List2-Sem)
12288 3 => False, -- Else_Actions (List3-Sem)
12289 4 => False, -- unused
12290 5 => False), -- Etype (Node5-Sem)
12292 N_Compound_Statement =>
12293 (1 => True, -- Actions (List1)
12294 2 => False, -- unused
12295 3 => False, -- unused
12296 4 => False, -- unused
12297 5 => False), -- unused
12299 N_Contract =>
12300 (1 => False, -- Pre_Post_Conditions (Node1)
12301 2 => False, -- Contract_Test_Cases (Node2)
12302 3 => False, -- Classifications (Node3)
12303 4 => False, -- unused
12304 5 => False), -- unused
12306 N_Expanded_Name =>
12307 (1 => True, -- Chars (Name1)
12308 2 => True, -- Selector_Name (Node2)
12309 3 => True, -- Prefix (Node3)
12310 4 => False, -- Entity (Node4-Sem)
12311 5 => False), -- Etype (Node5-Sem)
12313 N_Expression_With_Actions =>
12314 (1 => True, -- Actions (List1)
12315 2 => False, -- unused
12316 3 => True, -- Expression (Node3)
12317 4 => False, -- unused
12318 5 => False), -- unused
12320 N_Free_Statement =>
12321 (1 => False, -- Storage_Pool (Node1-Sem)
12322 2 => False, -- Procedure_To_Call (Node2-Sem)
12323 3 => True, -- Expression (Node3)
12324 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
12325 5 => False), -- unused
12327 N_Freeze_Entity =>
12328 (1 => True, -- Actions (List1)
12329 2 => False, -- Access_Types_To_Process (Elist2-Sem)
12330 3 => False, -- TSS_Elist (Elist3-Sem)
12331 4 => False, -- Entity (Node4-Sem)
12332 5 => False), -- First_Subtype_Link (Node5-Sem)
12334 N_Freeze_Generic_Entity =>
12335 (1 => False, -- unused
12336 2 => False, -- unused
12337 3 => False, -- unused
12338 4 => False, -- Entity (Node4-Sem)
12339 5 => False), -- unused
12341 N_Implicit_Label_Declaration =>
12342 (1 => True, -- Defining_Identifier (Node1)
12343 2 => False, -- Label_Construct (Node2-Sem)
12344 3 => False, -- unused
12345 4 => False, -- unused
12346 5 => False), -- unused
12348 N_Itype_Reference =>
12349 (1 => False, -- Itype (Node1-Sem)
12350 2 => False, -- unused
12351 3 => False, -- unused
12352 4 => False, -- unused
12353 5 => False), -- unused
12355 N_Raise_Constraint_Error =>
12356 (1 => True, -- Condition (Node1)
12357 2 => False, -- unused
12358 3 => True, -- Reason (Uint3)
12359 4 => False, -- unused
12360 5 => False), -- Etype (Node5-Sem)
12362 N_Raise_Program_Error =>
12363 (1 => True, -- Condition (Node1)
12364 2 => False, -- unused
12365 3 => True, -- Reason (Uint3)
12366 4 => False, -- unused
12367 5 => False), -- Etype (Node5-Sem)
12369 N_Raise_Storage_Error =>
12370 (1 => True, -- Condition (Node1)
12371 2 => False, -- unused
12372 3 => True, -- Reason (Uint3)
12373 4 => False, -- unused
12374 5 => False), -- Etype (Node5-Sem)
12376 N_Push_Constraint_Error_Label =>
12377 (1 => False, -- unused
12378 2 => False, -- unused
12379 3 => False, -- unused
12380 4 => False, -- unused
12381 5 => False), -- unused
12383 N_Push_Program_Error_Label =>
12384 (1 => False, -- Exception_Label
12385 2 => False, -- unused
12386 3 => False, -- unused
12387 4 => False, -- unused
12388 5 => False), -- Exception_Label
12390 N_Push_Storage_Error_Label =>
12391 (1 => False, -- Exception_Label
12392 2 => False, -- unused
12393 3 => False, -- unused
12394 4 => False, -- unused
12395 5 => False), -- Exception_Label
12397 N_Pop_Constraint_Error_Label =>
12398 (1 => False, -- unused
12399 2 => False, -- unused
12400 3 => False, -- unused
12401 4 => False, -- unused
12402 5 => False), -- unused
12404 N_Pop_Program_Error_Label =>
12405 (1 => False, -- unused
12406 2 => False, -- unused
12407 3 => False, -- unused
12408 4 => False, -- unused
12409 5 => False), -- unused
12411 N_Pop_Storage_Error_Label =>
12412 (1 => False, -- unused
12413 2 => False, -- unused
12414 3 => False, -- unused
12415 4 => False, -- unused
12416 5 => False), -- unused
12418 N_Reference =>
12419 (1 => False, -- unused
12420 2 => False, -- unused
12421 3 => True, -- Prefix (Node3)
12422 4 => False, -- unused
12423 5 => False), -- Etype (Node5-Sem)
12425 N_Unchecked_Expression =>
12426 (1 => False, -- unused
12427 2 => False, -- unused
12428 3 => True, -- Expression (Node3)
12429 4 => False, -- unused
12430 5 => False), -- Etype (Node5-Sem)
12432 N_Unchecked_Type_Conversion =>
12433 (1 => False, -- unused
12434 2 => False, -- unused
12435 3 => True, -- Expression (Node3)
12436 4 => True, -- Subtype_Mark (Node4)
12437 5 => False), -- Etype (Node5-Sem)
12439 N_Validate_Unchecked_Conversion =>
12440 (1 => False, -- Source_Type (Node1-Sem)
12441 2 => False, -- Target_Type (Node2-Sem)
12442 3 => False, -- unused
12443 4 => False, -- unused
12444 5 => False), -- unused
12446 -- Entries for SCIL nodes
12448 N_SCIL_Dispatch_Table_Tag_Init =>
12449 (1 => False, -- unused
12450 2 => False, -- unused
12451 3 => False, -- unused
12452 4 => False, -- SCIL_Entity (Node4-Sem)
12453 5 => False), -- unused
12455 N_SCIL_Dispatching_Call =>
12456 (1 => False, -- unused
12457 2 => False, -- SCIL_Target_Prim (Node2-Sem)
12458 3 => False, -- unused
12459 4 => False, -- SCIL_Entity (Node4-Sem)
12460 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
12462 N_SCIL_Membership_Test =>
12463 (1 => False, -- unused
12464 2 => False, -- unused
12465 3 => False, -- unused
12466 4 => False, -- SCIL_Entity (Node4-Sem)
12467 5 => False), -- SCIL_Tag_Value (Node5-Sem)
12469 -- Entries for Empty, Error and Unused. Even thought these have a Chars
12470 -- field for debugging purposes, they are not really syntactic fields, so
12471 -- we mark all fields as unused.
12473 N_Empty =>
12474 (1 => False, -- unused
12475 2 => False, -- unused
12476 3 => False, -- unused
12477 4 => False, -- unused
12478 5 => False), -- unused
12480 N_Error =>
12481 (1 => False, -- unused
12482 2 => False, -- unused
12483 3 => False, -- unused
12484 4 => False, -- unused
12485 5 => False), -- unused
12487 N_Unused_At_Start =>
12488 (1 => False, -- unused
12489 2 => False, -- unused
12490 3 => False, -- unused
12491 4 => False, -- unused
12492 5 => False), -- unused
12494 N_Unused_At_End =>
12495 (1 => False, -- unused
12496 2 => False, -- unused
12497 3 => False, -- unused
12498 4 => False, -- unused
12499 5 => False)); -- unused
12501 --------------------
12502 -- Inline Pragmas --
12503 --------------------
12505 pragma Inline (ABE_Is_Certain);
12506 pragma Inline (Abort_Present);
12507 pragma Inline (Abortable_Part);
12508 pragma Inline (Abstract_Present);
12509 pragma Inline (Accept_Handler_Records);
12510 pragma Inline (Accept_Statement);
12511 pragma Inline (Access_Definition);
12512 pragma Inline (Access_To_Subprogram_Definition);
12513 pragma Inline (Access_Types_To_Process);
12514 pragma Inline (Actions);
12515 pragma Inline (Activation_Chain_Entity);
12516 pragma Inline (Acts_As_Spec);
12517 pragma Inline (Actual_Designated_Subtype);
12518 pragma Inline (Address_Warning_Posted);
12519 pragma Inline (Aggregate_Bounds);
12520 pragma Inline (Aliased_Present);
12521 pragma Inline (All_Others);
12522 pragma Inline (All_Present);
12523 pragma Inline (Alternatives);
12524 pragma Inline (Ancestor_Part);
12525 pragma Inline (Atomic_Sync_Required);
12526 pragma Inline (Array_Aggregate);
12527 pragma Inline (Aspect_Rep_Item);
12528 pragma Inline (Assignment_OK);
12529 pragma Inline (Associated_Node);
12530 pragma Inline (At_End_Proc);
12531 pragma Inline (Attribute_Name);
12532 pragma Inline (Aux_Decls_Node);
12533 pragma Inline (Backwards_OK);
12534 pragma Inline (Bad_Is_Detected);
12535 pragma Inline (Body_To_Inline);
12536 pragma Inline (Body_Required);
12537 pragma Inline (By_Ref);
12538 pragma Inline (Box_Present);
12539 pragma Inline (Char_Literal_Value);
12540 pragma Inline (Chars);
12541 pragma Inline (Check_Address_Alignment);
12542 pragma Inline (Choice_Parameter);
12543 pragma Inline (Choices);
12544 pragma Inline (Class_Present);
12545 pragma Inline (Classifications);
12546 pragma Inline (Cleanup_Actions);
12547 pragma Inline (Comes_From_Extended_Return_Statement);
12548 pragma Inline (Compile_Time_Known_Aggregate);
12549 pragma Inline (Component_Associations);
12550 pragma Inline (Component_Clauses);
12551 pragma Inline (Component_Definition);
12552 pragma Inline (Component_Items);
12553 pragma Inline (Component_List);
12554 pragma Inline (Component_Name);
12555 pragma Inline (Componentwise_Assignment);
12556 pragma Inline (Condition);
12557 pragma Inline (Condition_Actions);
12558 pragma Inline (Config_Pragmas);
12559 pragma Inline (Constant_Present);
12560 pragma Inline (Constraint);
12561 pragma Inline (Constraints);
12562 pragma Inline (Context_Installed);
12563 pragma Inline (Context_Items);
12564 pragma Inline (Context_Pending);
12565 pragma Inline (Contract_Test_Cases);
12566 pragma Inline (Controlling_Argument);
12567 pragma Inline (Convert_To_Return_False);
12568 pragma Inline (Conversion_OK);
12569 pragma Inline (Corresponding_Aspect);
12570 pragma Inline (Corresponding_Body);
12571 pragma Inline (Corresponding_Formal_Spec);
12572 pragma Inline (Corresponding_Generic_Association);
12573 pragma Inline (Corresponding_Integer_Value);
12574 pragma Inline (Corresponding_Spec);
12575 pragma Inline (Corresponding_Spec_Of_Stub);
12576 pragma Inline (Corresponding_Stub);
12577 pragma Inline (Dcheck_Function);
12578 pragma Inline (Declarations);
12579 pragma Inline (Default_Expression);
12580 pragma Inline (Default_Storage_Pool);
12581 pragma Inline (Default_Name);
12582 pragma Inline (Defining_Identifier);
12583 pragma Inline (Defining_Unit_Name);
12584 pragma Inline (Delay_Alternative);
12585 pragma Inline (Delay_Statement);
12586 pragma Inline (Delta_Expression);
12587 pragma Inline (Digits_Expression);
12588 pragma Inline (Discr_Check_Funcs_Built);
12589 pragma Inline (Discrete_Choices);
12590 pragma Inline (Discrete_Range);
12591 pragma Inline (Discrete_Subtype_Definition);
12592 pragma Inline (Discrete_Subtype_Definitions);
12593 pragma Inline (Discriminant_Specifications);
12594 pragma Inline (Discriminant_Type);
12595 pragma Inline (Do_Accessibility_Check);
12596 pragma Inline (Do_Discriminant_Check);
12597 pragma Inline (Do_Length_Check);
12598 pragma Inline (Do_Division_Check);
12599 pragma Inline (Do_Overflow_Check);
12600 pragma Inline (Do_Range_Check);
12601 pragma Inline (Do_Storage_Check);
12602 pragma Inline (Do_Tag_Check);
12603 pragma Inline (Elaborate_Present);
12604 pragma Inline (Elaborate_All_Desirable);
12605 pragma Inline (Elaborate_All_Present);
12606 pragma Inline (Elaborate_Desirable);
12607 pragma Inline (Else_Actions);
12608 pragma Inline (Else_Statements);
12609 pragma Inline (Elsif_Parts);
12610 pragma Inline (Enclosing_Variant);
12611 pragma Inline (End_Label);
12612 pragma Inline (End_Span);
12613 pragma Inline (Entity);
12614 pragma Inline (Entity_Or_Associated_Node);
12615 pragma Inline (Entry_Body_Formal_Part);
12616 pragma Inline (Entry_Call_Alternative);
12617 pragma Inline (Entry_Call_Statement);
12618 pragma Inline (Entry_Direct_Name);
12619 pragma Inline (Entry_Index);
12620 pragma Inline (Entry_Index_Specification);
12621 pragma Inline (Etype);
12622 pragma Inline (Exception_Choices);
12623 pragma Inline (Exception_Handlers);
12624 pragma Inline (Exception_Junk);
12625 pragma Inline (Exception_Label);
12626 pragma Inline (Expansion_Delayed);
12627 pragma Inline (Explicit_Actual_Parameter);
12628 pragma Inline (Explicit_Generic_Actual_Parameter);
12629 pragma Inline (Expression);
12630 pragma Inline (Expressions);
12631 pragma Inline (First_Bit);
12632 pragma Inline (First_Inlined_Subprogram);
12633 pragma Inline (First_Name);
12634 pragma Inline (First_Named_Actual);
12635 pragma Inline (First_Real_Statement);
12636 pragma Inline (First_Subtype_Link);
12637 pragma Inline (Float_Truncate);
12638 pragma Inline (Formal_Type_Definition);
12639 pragma Inline (Forwards_OK);
12640 pragma Inline (From_Aspect_Specification);
12641 pragma Inline (From_At_End);
12642 pragma Inline (From_At_Mod);
12643 pragma Inline (From_Conditional_Expression);
12644 pragma Inline (From_Default);
12645 pragma Inline (Generalized_Indexing);
12646 pragma Inline (Generic_Associations);
12647 pragma Inline (Generic_Formal_Declarations);
12648 pragma Inline (Generic_Parent);
12649 pragma Inline (Generic_Parent_Type);
12650 pragma Inline (Handled_Statement_Sequence);
12651 pragma Inline (Handler_List_Entry);
12652 pragma Inline (Has_Created_Identifier);
12653 pragma Inline (Has_Dereference_Action);
12654 pragma Inline (Has_Dynamic_Length_Check);
12655 pragma Inline (Has_Dynamic_Range_Check);
12656 pragma Inline (Has_Init_Expression);
12657 pragma Inline (Has_Local_Raise);
12658 pragma Inline (Has_Self_Reference);
12659 pragma Inline (Has_SP_Choice);
12660 pragma Inline (Has_No_Elaboration_Code);
12661 pragma Inline (Has_Pragma_Suppress_All);
12662 pragma Inline (Has_Private_View);
12663 pragma Inline (Has_Relative_Deadline_Pragma);
12664 pragma Inline (Has_Storage_Size_Pragma);
12665 pragma Inline (Has_Wide_Character);
12666 pragma Inline (Has_Wide_Wide_Character);
12667 pragma Inline (Header_Size_Added);
12668 pragma Inline (Hidden_By_Use_Clause);
12669 pragma Inline (High_Bound);
12670 pragma Inline (Identifier);
12671 pragma Inline (Implicit_With);
12672 pragma Inline (Implicit_With_From_Instantiation);
12673 pragma Inline (Interface_List);
12674 pragma Inline (Interface_Present);
12675 pragma Inline (Includes_Infinities);
12676 pragma Inline (Import_Interface_Present);
12677 pragma Inline (In_Present);
12678 pragma Inline (Incomplete_View);
12679 pragma Inline (Inherited_Discriminant);
12680 pragma Inline (Instance_Spec);
12681 pragma Inline (Intval);
12682 pragma Inline (Iterator_Specification);
12683 pragma Inline (Is_Accessibility_Actual);
12684 pragma Inline (Is_Asynchronous_Call_Block);
12685 pragma Inline (Is_Boolean_Aspect);
12686 pragma Inline (Is_Checked);
12687 pragma Inline (Is_Component_Left_Opnd);
12688 pragma Inline (Is_Component_Right_Opnd);
12689 pragma Inline (Is_Controlling_Actual);
12690 pragma Inline (Is_Delayed_Aspect);
12691 pragma Inline (Is_Disabled);
12692 pragma Inline (Is_Dynamic_Coextension);
12693 pragma Inline (Is_Elsif);
12694 pragma Inline (Is_Entry_Barrier_Function);
12695 pragma Inline (Is_Expanded_Build_In_Place_Call);
12696 pragma Inline (Is_Finalization_Wrapper);
12697 pragma Inline (Is_Folded_In_Parser);
12698 pragma Inline (Is_Ignored);
12699 pragma Inline (Is_In_Discriminant_Check);
12700 pragma Inline (Is_Inherited);
12701 pragma Inline (Is_Machine_Number);
12702 pragma Inline (Is_Null_Loop);
12703 pragma Inline (Is_Overloaded);
12704 pragma Inline (Is_Power_Of_2_For_Shift);
12705 pragma Inline (Is_Prefixed_Call);
12706 pragma Inline (Is_Protected_Subprogram_Body);
12707 pragma Inline (Is_Static_Coextension);
12708 pragma Inline (Is_Static_Expression);
12709 pragma Inline (Is_Subprogram_Descriptor);
12710 pragma Inline (Is_Task_Allocation_Block);
12711 pragma Inline (Is_Task_Master);
12712 pragma Inline (Iteration_Scheme);
12713 pragma Inline (Itype);
12714 pragma Inline (Kill_Range_Check);
12715 pragma Inline (Last_Bit);
12716 pragma Inline (Last_Name);
12717 pragma Inline (Library_Unit);
12718 pragma Inline (Label_Construct);
12719 pragma Inline (Left_Opnd);
12720 pragma Inline (Limited_View_Installed);
12721 pragma Inline (Limited_Present);
12722 pragma Inline (Literals);
12723 pragma Inline (Local_Raise_Not_OK);
12724 pragma Inline (Local_Raise_Statements);
12725 pragma Inline (Loop_Actions);
12726 pragma Inline (Loop_Parameter_Specification);
12727 pragma Inline (Low_Bound);
12728 pragma Inline (Mod_Clause);
12729 pragma Inline (More_Ids);
12730 pragma Inline (Must_Be_Byte_Aligned);
12731 pragma Inline (Must_Not_Freeze);
12732 pragma Inline (Must_Not_Override);
12733 pragma Inline (Must_Override);
12734 pragma Inline (Name);
12735 pragma Inline (Names);
12736 pragma Inline (Next_Entity);
12737 pragma Inline (Next_Exit_Statement);
12738 pragma Inline (Next_Implicit_With);
12739 pragma Inline (Next_Named_Actual);
12740 pragma Inline (Next_Pragma);
12741 pragma Inline (Next_Rep_Item);
12742 pragma Inline (Next_Use_Clause);
12743 pragma Inline (No_Ctrl_Actions);
12744 pragma Inline (No_Elaboration_Check);
12745 pragma Inline (No_Entities_Ref_In_Spec);
12746 pragma Inline (No_Initialization);
12747 pragma Inline (No_Minimize_Eliminate);
12748 pragma Inline (No_Truncation);
12749 pragma Inline (Non_Aliased_Prefix);
12750 pragma Inline (Null_Present);
12751 pragma Inline (Null_Excluding_Subtype);
12752 pragma Inline (Null_Exclusion_Present);
12753 pragma Inline (Null_Exclusion_In_Return_Present);
12754 pragma Inline (Null_Record_Present);
12755 pragma Inline (Object_Definition);
12756 pragma Inline (Of_Present);
12757 pragma Inline (Original_Discriminant);
12758 pragma Inline (Original_Entity);
12759 pragma Inline (Others_Discrete_Choices);
12760 pragma Inline (Out_Present);
12761 pragma Inline (Parameter_Associations);
12762 pragma Inline (Parameter_Specifications);
12763 pragma Inline (Parameter_Type);
12764 pragma Inline (Parent_Spec);
12765 pragma Inline (Position);
12766 pragma Inline (Pragma_Argument_Associations);
12767 pragma Inline (Pragma_Identifier);
12768 pragma Inline (Pragmas_After);
12769 pragma Inline (Pragmas_Before);
12770 pragma Inline (Pre_Post_Conditions);
12771 pragma Inline (Prefix);
12772 pragma Inline (Premature_Use);
12773 pragma Inline (Present_Expr);
12774 pragma Inline (Prev_Ids);
12775 pragma Inline (Print_In_Hex);
12776 pragma Inline (Private_Declarations);
12777 pragma Inline (Private_Present);
12778 pragma Inline (Procedure_To_Call);
12779 pragma Inline (Proper_Body);
12780 pragma Inline (Protected_Definition);
12781 pragma Inline (Protected_Present);
12782 pragma Inline (Raises_Constraint_Error);
12783 pragma Inline (Range_Constraint);
12784 pragma Inline (Range_Expression);
12785 pragma Inline (Real_Range_Specification);
12786 pragma Inline (Realval);
12787 pragma Inline (Reason);
12788 pragma Inline (Record_Extension_Part);
12789 pragma Inline (Redundant_Use);
12790 pragma Inline (Renaming_Exception);
12791 pragma Inline (Result_Definition);
12792 pragma Inline (Return_Object_Declarations);
12793 pragma Inline (Return_Statement_Entity);
12794 pragma Inline (Reverse_Present);
12795 pragma Inline (Right_Opnd);
12796 pragma Inline (Rounded_Result);
12797 pragma Inline (SCIL_Controlling_Tag);
12798 pragma Inline (SCIL_Entity);
12799 pragma Inline (SCIL_Tag_Value);
12800 pragma Inline (SCIL_Target_Prim);
12801 pragma Inline (Scope);
12802 pragma Inline (Select_Alternatives);
12803 pragma Inline (Selector_Name);
12804 pragma Inline (Selector_Names);
12805 pragma Inline (Shift_Count_OK);
12806 pragma Inline (Source_Type);
12807 pragma Inline (Specification);
12808 pragma Inline (Split_PPC);
12809 pragma Inline (Statements);
12810 pragma Inline (Storage_Pool);
12811 pragma Inline (Subpool_Handle_Name);
12812 pragma Inline (Strval);
12813 pragma Inline (Subtype_Indication);
12814 pragma Inline (Subtype_Mark);
12815 pragma Inline (Subtype_Marks);
12816 pragma Inline (Suppress_Assignment_Checks);
12817 pragma Inline (Suppress_Loop_Warnings);
12818 pragma Inline (Synchronized_Present);
12819 pragma Inline (Tagged_Present);
12820 pragma Inline (Target_Type);
12821 pragma Inline (Task_Definition);
12822 pragma Inline (Task_Present);
12823 pragma Inline (Then_Actions);
12824 pragma Inline (Then_Statements);
12825 pragma Inline (Triggering_Alternative);
12826 pragma Inline (Triggering_Statement);
12827 pragma Inline (Treat_Fixed_As_Integer);
12828 pragma Inline (TSS_Elist);
12829 pragma Inline (Type_Definition);
12830 pragma Inline (Uneval_Old_Accept);
12831 pragma Inline (Uneval_Old_Warn);
12832 pragma Inline (Unit);
12833 pragma Inline (Uninitialized_Variable);
12834 pragma Inline (Unknown_Discriminants_Present);
12835 pragma Inline (Unreferenced_In_Spec);
12836 pragma Inline (Variant_Part);
12837 pragma Inline (Variants);
12838 pragma Inline (Visible_Declarations);
12839 pragma Inline (Used_Operations);
12840 pragma Inline (Was_Originally_Stub);
12841 pragma Inline (Withed_Body);
12843 pragma Inline (Set_ABE_Is_Certain);
12844 pragma Inline (Set_Abort_Present);
12845 pragma Inline (Set_Abortable_Part);
12846 pragma Inline (Set_Abstract_Present);
12847 pragma Inline (Set_Accept_Handler_Records);
12848 pragma Inline (Set_Accept_Statement);
12849 pragma Inline (Set_Access_Definition);
12850 pragma Inline (Set_Access_To_Subprogram_Definition);
12851 pragma Inline (Set_Access_Types_To_Process);
12852 pragma Inline (Set_Actions);
12853 pragma Inline (Set_Activation_Chain_Entity);
12854 pragma Inline (Set_Acts_As_Spec);
12855 pragma Inline (Set_Actual_Designated_Subtype);
12856 pragma Inline (Set_Address_Warning_Posted);
12857 pragma Inline (Set_Aggregate_Bounds);
12858 pragma Inline (Set_Aliased_Present);
12859 pragma Inline (Set_All_Others);
12860 pragma Inline (Set_All_Present);
12861 pragma Inline (Set_Alternatives);
12862 pragma Inline (Set_Ancestor_Part);
12863 pragma Inline (Set_Array_Aggregate);
12864 pragma Inline (Set_Aspect_Rep_Item);
12865 pragma Inline (Set_Assignment_OK);
12866 pragma Inline (Set_Associated_Node);
12867 pragma Inline (Set_At_End_Proc);
12868 pragma Inline (Set_Atomic_Sync_Required);
12869 pragma Inline (Set_Attribute_Name);
12870 pragma Inline (Set_Aux_Decls_Node);
12871 pragma Inline (Set_Backwards_OK);
12872 pragma Inline (Set_Bad_Is_Detected);
12873 pragma Inline (Set_Body_Required);
12874 pragma Inline (Set_Body_To_Inline);
12875 pragma Inline (Set_Box_Present);
12876 pragma Inline (Set_By_Ref);
12877 pragma Inline (Set_Char_Literal_Value);
12878 pragma Inline (Set_Chars);
12879 pragma Inline (Set_Check_Address_Alignment);
12880 pragma Inline (Set_Choice_Parameter);
12881 pragma Inline (Set_Choices);
12882 pragma Inline (Set_Class_Present);
12883 pragma Inline (Set_Classifications);
12884 pragma Inline (Set_Cleanup_Actions);
12885 pragma Inline (Set_Comes_From_Extended_Return_Statement);
12886 pragma Inline (Set_Compile_Time_Known_Aggregate);
12887 pragma Inline (Set_Component_Associations);
12888 pragma Inline (Set_Component_Clauses);
12889 pragma Inline (Set_Component_Definition);
12890 pragma Inline (Set_Component_Items);
12891 pragma Inline (Set_Component_List);
12892 pragma Inline (Set_Component_Name);
12893 pragma Inline (Set_Componentwise_Assignment);
12894 pragma Inline (Set_Condition);
12895 pragma Inline (Set_Condition_Actions);
12896 pragma Inline (Set_Config_Pragmas);
12897 pragma Inline (Set_Constant_Present);
12898 pragma Inline (Set_Constraint);
12899 pragma Inline (Set_Constraints);
12900 pragma Inline (Set_Context_Installed);
12901 pragma Inline (Set_Context_Items);
12902 pragma Inline (Set_Context_Pending);
12903 pragma Inline (Set_Contract_Test_Cases);
12904 pragma Inline (Set_Controlling_Argument);
12905 pragma Inline (Set_Conversion_OK);
12906 pragma Inline (Set_Convert_To_Return_False);
12907 pragma Inline (Set_Corresponding_Aspect);
12908 pragma Inline (Set_Corresponding_Body);
12909 pragma Inline (Set_Corresponding_Formal_Spec);
12910 pragma Inline (Set_Corresponding_Generic_Association);
12911 pragma Inline (Set_Corresponding_Integer_Value);
12912 pragma Inline (Set_Corresponding_Spec);
12913 pragma Inline (Set_Corresponding_Spec_Of_Stub);
12914 pragma Inline (Set_Corresponding_Stub);
12915 pragma Inline (Set_Dcheck_Function);
12916 pragma Inline (Set_Declarations);
12917 pragma Inline (Set_Default_Expression);
12918 pragma Inline (Set_Default_Name);
12919 pragma Inline (Set_Default_Storage_Pool);
12920 pragma Inline (Set_Defining_Identifier);
12921 pragma Inline (Set_Defining_Unit_Name);
12922 pragma Inline (Set_Delay_Alternative);
12923 pragma Inline (Set_Delay_Statement);
12924 pragma Inline (Set_Delta_Expression);
12925 pragma Inline (Set_Digits_Expression);
12926 pragma Inline (Set_Discr_Check_Funcs_Built);
12927 pragma Inline (Set_Discrete_Choices);
12928 pragma Inline (Set_Discrete_Range);
12929 pragma Inline (Set_Discrete_Subtype_Definition);
12930 pragma Inline (Set_Discrete_Subtype_Definitions);
12931 pragma Inline (Set_Discriminant_Specifications);
12932 pragma Inline (Set_Discriminant_Type);
12933 pragma Inline (Set_Do_Accessibility_Check);
12934 pragma Inline (Set_Do_Discriminant_Check);
12935 pragma Inline (Set_Do_Division_Check);
12936 pragma Inline (Set_Do_Length_Check);
12937 pragma Inline (Set_Do_Overflow_Check);
12938 pragma Inline (Set_Do_Range_Check);
12939 pragma Inline (Set_Do_Storage_Check);
12940 pragma Inline (Set_Do_Tag_Check);
12941 pragma Inline (Set_Elaborate_All_Desirable);
12942 pragma Inline (Set_Elaborate_All_Present);
12943 pragma Inline (Set_Elaborate_Desirable);
12944 pragma Inline (Set_Elaborate_Present);
12945 pragma Inline (Set_Else_Actions);
12946 pragma Inline (Set_Else_Statements);
12947 pragma Inline (Set_Elsif_Parts);
12948 pragma Inline (Set_Enclosing_Variant);
12949 pragma Inline (Set_End_Label);
12950 pragma Inline (Set_End_Span);
12951 pragma Inline (Set_Entity);
12952 pragma Inline (Set_Entry_Body_Formal_Part);
12953 pragma Inline (Set_Entry_Call_Alternative);
12954 pragma Inline (Set_Entry_Call_Statement);
12955 pragma Inline (Set_Entry_Direct_Name);
12956 pragma Inline (Set_Entry_Index);
12957 pragma Inline (Set_Entry_Index_Specification);
12958 pragma Inline (Set_Etype);
12959 pragma Inline (Set_Exception_Choices);
12960 pragma Inline (Set_Exception_Handlers);
12961 pragma Inline (Set_Exception_Junk);
12962 pragma Inline (Set_Exception_Label);
12963 pragma Inline (Set_Expansion_Delayed);
12964 pragma Inline (Set_Explicit_Actual_Parameter);
12965 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
12966 pragma Inline (Set_Expression);
12967 pragma Inline (Set_Expressions);
12968 pragma Inline (Set_First_Bit);
12969 pragma Inline (Set_First_Inlined_Subprogram);
12970 pragma Inline (Set_First_Name);
12971 pragma Inline (Set_First_Named_Actual);
12972 pragma Inline (Set_First_Real_Statement);
12973 pragma Inline (Set_First_Subtype_Link);
12974 pragma Inline (Set_Float_Truncate);
12975 pragma Inline (Set_Formal_Type_Definition);
12976 pragma Inline (Set_Forwards_OK);
12977 pragma Inline (Set_From_Aspect_Specification);
12978 pragma Inline (Set_From_At_End);
12979 pragma Inline (Set_From_At_Mod);
12980 pragma Inline (Set_From_Conditional_Expression);
12981 pragma Inline (Set_From_Default);
12982 pragma Inline (Set_Generalized_Indexing);
12983 pragma Inline (Set_Generic_Associations);
12984 pragma Inline (Set_Generic_Formal_Declarations);
12985 pragma Inline (Set_Generic_Parent);
12986 pragma Inline (Set_Generic_Parent_Type);
12987 pragma Inline (Set_Handled_Statement_Sequence);
12988 pragma Inline (Set_Handler_List_Entry);
12989 pragma Inline (Set_Has_Created_Identifier);
12990 pragma Inline (Set_Has_Dereference_Action);
12991 pragma Inline (Set_Has_Dynamic_Length_Check);
12992 pragma Inline (Set_Has_Dynamic_Range_Check);
12993 pragma Inline (Set_Has_Init_Expression);
12994 pragma Inline (Set_Has_Local_Raise);
12995 pragma Inline (Set_Has_No_Elaboration_Code);
12996 pragma Inline (Set_Has_Pragma_Suppress_All);
12997 pragma Inline (Set_Has_Private_View);
12998 pragma Inline (Set_Has_Relative_Deadline_Pragma);
12999 pragma Inline (Set_Has_Self_Reference);
13000 pragma Inline (Set_Has_SP_Choice);
13001 pragma Inline (Set_Has_Storage_Size_Pragma);
13002 pragma Inline (Set_Has_Wide_Character);
13003 pragma Inline (Set_Has_Wide_Wide_Character);
13004 pragma Inline (Set_Header_Size_Added);
13005 pragma Inline (Set_Hidden_By_Use_Clause);
13006 pragma Inline (Set_High_Bound);
13007 pragma Inline (Set_Identifier);
13008 pragma Inline (Set_Implicit_With);
13009 pragma Inline (Set_Import_Interface_Present);
13010 pragma Inline (Set_In_Present);
13011 pragma Inline (Set_Includes_Infinities);
13012 pragma Inline (Set_Incomplete_View);
13013 pragma Inline (Set_Inherited_Discriminant);
13014 pragma Inline (Set_Instance_Spec);
13015 pragma Inline (Set_Interface_List);
13016 pragma Inline (Set_Interface_Present);
13017 pragma Inline (Set_Intval);
13018 pragma Inline (Set_Is_Accessibility_Actual);
13019 pragma Inline (Set_Is_Asynchronous_Call_Block);
13020 pragma Inline (Set_Is_Boolean_Aspect);
13021 pragma Inline (Set_Is_Checked);
13022 pragma Inline (Set_Is_Component_Left_Opnd);
13023 pragma Inline (Set_Is_Component_Right_Opnd);
13024 pragma Inline (Set_Is_Controlling_Actual);
13025 pragma Inline (Set_Is_Delayed_Aspect);
13026 pragma Inline (Set_Is_Disabled);
13027 pragma Inline (Set_Is_Dynamic_Coextension);
13028 pragma Inline (Set_Is_Elsif);
13029 pragma Inline (Set_Is_Entry_Barrier_Function);
13030 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
13031 pragma Inline (Set_Is_Finalization_Wrapper);
13032 pragma Inline (Set_Is_Folded_In_Parser);
13033 pragma Inline (Set_Is_Ignored);
13034 pragma Inline (Set_Is_In_Discriminant_Check);
13035 pragma Inline (Set_Is_Inherited);
13036 pragma Inline (Set_Is_Machine_Number);
13037 pragma Inline (Set_Is_Null_Loop);
13038 pragma Inline (Set_Is_Overloaded);
13039 pragma Inline (Set_Is_Power_Of_2_For_Shift);
13040 pragma Inline (Set_Is_Prefixed_Call);
13041 pragma Inline (Set_Is_Protected_Subprogram_Body);
13042 pragma Inline (Set_Is_Static_Coextension);
13043 pragma Inline (Set_Is_Static_Expression);
13044 pragma Inline (Set_Is_Subprogram_Descriptor);
13045 pragma Inline (Set_Is_Task_Allocation_Block);
13046 pragma Inline (Set_Is_Task_Master);
13047 pragma Inline (Set_Iteration_Scheme);
13048 pragma Inline (Set_Iterator_Specification);
13049 pragma Inline (Set_Itype);
13050 pragma Inline (Set_Kill_Range_Check);
13051 pragma Inline (Set_Label_Construct);
13052 pragma Inline (Set_Last_Bit);
13053 pragma Inline (Set_Last_Name);
13054 pragma Inline (Set_Left_Opnd);
13055 pragma Inline (Set_Library_Unit);
13056 pragma Inline (Set_Limited_Present);
13057 pragma Inline (Set_Limited_View_Installed);
13058 pragma Inline (Set_Literals);
13059 pragma Inline (Set_Local_Raise_Not_OK);
13060 pragma Inline (Set_Local_Raise_Statements);
13061 pragma Inline (Set_Loop_Actions);
13062 pragma Inline (Set_Loop_Parameter_Specification);
13063 pragma Inline (Set_Low_Bound);
13064 pragma Inline (Set_Mod_Clause);
13065 pragma Inline (Set_More_Ids);
13066 pragma Inline (Set_Must_Be_Byte_Aligned);
13067 pragma Inline (Set_Must_Not_Freeze);
13068 pragma Inline (Set_Must_Not_Override);
13069 pragma Inline (Set_Must_Override);
13070 pragma Inline (Set_Name);
13071 pragma Inline (Set_Names);
13072 pragma Inline (Set_Next_Entity);
13073 pragma Inline (Set_Next_Exit_Statement);
13074 pragma Inline (Set_Next_Implicit_With);
13075 pragma Inline (Set_Next_Named_Actual);
13076 pragma Inline (Set_Next_Pragma);
13077 pragma Inline (Set_Next_Rep_Item);
13078 pragma Inline (Set_Next_Use_Clause);
13079 pragma Inline (Set_No_Ctrl_Actions);
13080 pragma Inline (Set_No_Elaboration_Check);
13081 pragma Inline (Set_No_Entities_Ref_In_Spec);
13082 pragma Inline (Set_No_Initialization);
13083 pragma Inline (Set_No_Minimize_Eliminate);
13084 pragma Inline (Set_No_Truncation);
13085 pragma Inline (Set_Non_Aliased_Prefix);
13086 pragma Inline (Set_Null_Excluding_Subtype);
13087 pragma Inline (Set_Null_Exclusion_Present);
13088 pragma Inline (Set_Null_Exclusion_In_Return_Present);
13089 pragma Inline (Set_Null_Present);
13090 pragma Inline (Set_Null_Record_Present);
13091 pragma Inline (Set_Object_Definition);
13092 pragma Inline (Set_Of_Present);
13093 pragma Inline (Set_Original_Discriminant);
13094 pragma Inline (Set_Original_Entity);
13095 pragma Inline (Set_Others_Discrete_Choices);
13096 pragma Inline (Set_Out_Present);
13097 pragma Inline (Set_Parameter_Associations);
13098 pragma Inline (Set_Parameter_Specifications);
13099 pragma Inline (Set_Parameter_Type);
13100 pragma Inline (Set_Parent_Spec);
13101 pragma Inline (Set_Position);
13102 pragma Inline (Set_Pragma_Argument_Associations);
13103 pragma Inline (Set_Pragma_Identifier);
13104 pragma Inline (Set_Pragmas_After);
13105 pragma Inline (Set_Pragmas_Before);
13106 pragma Inline (Set_Pre_Post_Conditions);
13107 pragma Inline (Set_Prefix);
13108 pragma Inline (Set_Premature_Use);
13109 pragma Inline (Set_Present_Expr);
13110 pragma Inline (Set_Prev_Ids);
13111 pragma Inline (Set_Print_In_Hex);
13112 pragma Inline (Set_Private_Declarations);
13113 pragma Inline (Set_Private_Present);
13114 pragma Inline (Set_Procedure_To_Call);
13115 pragma Inline (Set_Proper_Body);
13116 pragma Inline (Set_Protected_Definition);
13117 pragma Inline (Set_Protected_Present);
13118 pragma Inline (Set_Raises_Constraint_Error);
13119 pragma Inline (Set_Range_Constraint);
13120 pragma Inline (Set_Range_Expression);
13121 pragma Inline (Set_Real_Range_Specification);
13122 pragma Inline (Set_Realval);
13123 pragma Inline (Set_Reason);
13124 pragma Inline (Set_Record_Extension_Part);
13125 pragma Inline (Set_Redundant_Use);
13126 pragma Inline (Set_Renaming_Exception);
13127 pragma Inline (Set_Result_Definition);
13128 pragma Inline (Set_Return_Object_Declarations);
13129 pragma Inline (Set_Reverse_Present);
13130 pragma Inline (Set_Right_Opnd);
13131 pragma Inline (Set_Rounded_Result);
13132 pragma Inline (Set_SCIL_Controlling_Tag);
13133 pragma Inline (Set_SCIL_Entity);
13134 pragma Inline (Set_SCIL_Tag_Value);
13135 pragma Inline (Set_SCIL_Target_Prim);
13136 pragma Inline (Set_Scope);
13137 pragma Inline (Set_Select_Alternatives);
13138 pragma Inline (Set_Selector_Name);
13139 pragma Inline (Set_Selector_Names);
13140 pragma Inline (Set_Shift_Count_OK);
13141 pragma Inline (Set_Source_Type);
13142 pragma Inline (Set_Split_PPC);
13143 pragma Inline (Set_Statements);
13144 pragma Inline (Set_Storage_Pool);
13145 pragma Inline (Set_Strval);
13146 pragma Inline (Set_Subpool_Handle_Name);
13147 pragma Inline (Set_Subtype_Indication);
13148 pragma Inline (Set_Subtype_Mark);
13149 pragma Inline (Set_Subtype_Marks);
13150 pragma Inline (Set_Suppress_Assignment_Checks);
13151 pragma Inline (Set_Suppress_Loop_Warnings);
13152 pragma Inline (Set_Synchronized_Present);
13153 pragma Inline (Set_TSS_Elist);
13154 pragma Inline (Set_Tagged_Present);
13155 pragma Inline (Set_Target_Type);
13156 pragma Inline (Set_Task_Definition);
13157 pragma Inline (Set_Task_Present);
13158 pragma Inline (Set_Then_Actions);
13159 pragma Inline (Set_Then_Statements);
13160 pragma Inline (Set_Treat_Fixed_As_Integer);
13161 pragma Inline (Set_Triggering_Alternative);
13162 pragma Inline (Set_Triggering_Statement);
13163 pragma Inline (Set_Type_Definition);
13164 pragma Inline (Set_Uneval_Old_Accept);
13165 pragma Inline (Set_Uneval_Old_Warn);
13166 pragma Inline (Set_Unit);
13167 pragma Inline (Set_Uninitialized_Variable);
13168 pragma Inline (Set_Unknown_Discriminants_Present);
13169 pragma Inline (Set_Unreferenced_In_Spec);
13170 pragma Inline (Set_Used_Operations);
13171 pragma Inline (Set_Variant_Part);
13172 pragma Inline (Set_Variants);
13173 pragma Inline (Set_Visible_Declarations);
13174 pragma Inline (Set_Was_Originally_Stub);
13175 pragma Inline (Set_Withed_Body);
13177 end Sinfo;