2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
[official-gcc.git] / gcc / ada / sinfo.ads
bloba54ef6afa8800da1f9b767e8a43b524c7f10590a
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S I N F O --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2013, 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 -- In the body (sinfo), add entries to the access functions for all
90 -- its fields (except standard expression fields) to include the new
91 -- node in the checks.
92 -- Add an appropriate section to the case statement in sprint.adb
93 -- Add an appropriate section to the case statement in sem.adb
94 -- Add an appropriate section to the case statement in exp_util.adb
95 -- (Insert_Actions procedure)
96 -- For a subexpression, add an appropriate section to the case
97 -- statement in sem_eval.adb
98 -- For a subexpression, add an appropriate section to the case
99 -- statement in sem_res.adb
101 -- Finally, four utility programs must be run:
103 -- (Optional.) Run CSinfo to check that you have made the changes
104 -- consistently. It checks most of the rules given above. This utility
105 -- reads sinfo.ads and sinfo.adb and generates a report to standard
106 -- output. This step is optional because XSinfo runs CSinfo.
108 -- Run XSinfo to create sinfo.h, the corresponding C header. This
109 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
110 -- not need to read sinfo.adb, since the contents of the body are
111 -- algorithmically determinable from the spec.
113 -- Run XTreeprs to create treeprs.ads, an updated version of the module
114 -- that is used to drive the tree print routine. This utility reads (but
115 -- does not modify) treeprs.adt, the template that provides the basic
116 -- structure of the file, and then fills in the data from the comments
117 -- in sinfo.ads.
119 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
120 -- spec of the Nmake package which contains functions for constructing
121 -- nodes.
123 -- The above steps are done automatically by the build scripts when you do
124 -- a full bootstrap.
126 -- Note: sometime we could write a utility that actually generated the body
127 -- of sinfo from the spec instead of simply checking it, since, as noted
128 -- above, the contents of the body can be determined from the spec.
130 --------------------------------
131 -- Implicit Nodes in the Tree --
132 --------------------------------
134 -- Generally the structure of the tree very closely follows the grammar as
135 -- defined in the RM. However, certain nodes are omitted to save space and
136 -- simplify semantic processing. Two general classes of such omitted nodes
137 -- are as follows:
139 -- If the only possibilities for a non-terminal are one or more other
140 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
141 -- corresponding node is omitted from the tree, and the target construct
142 -- appears directly. For example, a real type definition is either
143 -- floating point definition or a fixed point definition. No explicit node
144 -- appears for real type definition. Instead either the floating point
145 -- definition or fixed point definition appears directly.
147 -- If a non-terminal corresponds to a list of some other non-terminal
148 -- (possibly with separating punctuation), then usually it is omitted from
149 -- the tree, and a list of components appears instead. For example,
150 -- sequence of statements does not appear explicitly in the tree. Instead
151 -- a list of statements appears directly.
153 -- Some additional cases of omitted nodes occur and are documented
154 -- individually. In particular, many nodes are omitted in the tree
155 -- generated for an expression.
157 -------------------------------------------
158 -- Handling of Defining Identifier Lists --
159 -------------------------------------------
161 -- In several declarative forms in the syntax, lists of defining
162 -- identifiers appear (object declarations, component declarations, number
163 -- declarations etc.)
165 -- The semantics of such statements are equivalent to a series of identical
166 -- declarations of single defining identifiers (except that conformance
167 -- checks require the same grouping of identifiers in the parameter case).
169 -- To simplify semantic processing, the parser breaks down such multiple
170 -- declaration cases into sequences of single declarations, duplicating
171 -- type and initialization information as required. The flags More_Ids and
172 -- Prev_Ids are used to record the original form of the source in the case
173 -- where the original source used a list of names, More_Ids being set on
174 -- all but the last name and Prev_Ids being set on all but the first name.
175 -- These flags are used to reconstruct the original source (e.g. in the
176 -- Sprint package), and also are included in the conformance checks, but
177 -- otherwise have no semantic significance.
179 -- Note: the reason that we use More_Ids and Prev_Ids rather than
180 -- First_Name and Last_Name flags is so that the flags are off in the
181 -- normal one identifier case, which minimizes tree print output.
183 -----------------------
184 -- Use of Node Lists --
185 -----------------------
187 -- With a few exceptions, if a construction of the form {non-terminal}
188 -- appears in the tree, lists are used in the corresponding tree node (see
189 -- package Nlists for handling of node lists). In this case a field of the
190 -- parent node points to a list of nodes for the non-terminal. The field
191 -- name for such fields has a plural name which always ends in "s". For
192 -- example, a case statement has a field Alternatives pointing to list of
193 -- case statement alternative nodes.
195 -- Only fields pointing to lists have names ending in "s", so generally the
196 -- structure is strongly typed, fields not ending in s point to single
197 -- nodes, and fields ending in s point to lists.
199 -- The following example shows how a traversal of a list is written. We
200 -- suppose here that Stmt points to a N_Case_Statement node which has a
201 -- list field called Alternatives:
203 -- Alt := First (Alternatives (Stmt));
204 -- while Present (Alt) loop
205 -- ..
206 -- -- processing for case statement alternative Alt
207 -- ..
208 -- Alt := Next (Alt);
209 -- end loop;
211 -- The Present function tests for Empty, which in this case signals the end
212 -- of the list. First returns Empty immediately if the list is empty.
213 -- Present is defined in Atree, First and Next are defined in Nlists.
215 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
216 -- contexts, which is handled as described in the previous section, and
217 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
218 -- using the First_Name and Last_Name flags, as further detailed in the
219 -- description of the N_With_Clause node.
221 -------------
222 -- Pragmas --
223 -------------
225 -- Pragmas can appear in many different context, but are not included in
226 -- the grammar. Still they must appear in the tree, so they can be properly
227 -- processed.
229 -- Two approaches are used. In some cases, an extra field is defined in an
230 -- appropriate node that contains a list of pragmas appearing in the
231 -- expected context. For example pragmas can appear before an
232 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
233 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
235 -- The other approach is to simply allow pragmas to appear in syntactic
236 -- lists where the grammar (of course) does not include the possibility.
237 -- For example, the Variants field of an N_Variant_Part node points to a
238 -- list that can contain both N_Pragma and N_Variant nodes.
240 -- To make processing easier in the latter case, the Nlists package
241 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
242 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
243 -- ignoring all pragmas.
245 -- In the case of the variants list, we can either write:
247 -- Variant := First (Variants (N));
248 -- while Present (Variant) loop
249 -- ...
250 -- Variant := Next (Variant);
251 -- end loop;
253 -- or
255 -- Variant := First_Non_Pragma (Variants (N));
256 -- while Present (Variant) loop
257 -- ...
258 -- Variant := Next_Non_Pragma (Variant);
259 -- end loop;
261 -- In the first form of the loop, Variant can either be an N_Pragma or an
262 -- N_Variant node. In the second form, Variant can only be N_Variant since
263 -- all pragmas are skipped.
265 ---------------------
266 -- Optional Fields --
267 ---------------------
269 -- Fields which correspond to a section of the syntax enclosed in square
270 -- brackets are generally omitted (and the corresponding field set to Empty
271 -- for a node, or No_List for a list). The documentation of such fields
272 -- notes these cases. One exception to this rule occurs in the case of
273 -- possibly empty statement sequences (such as the sequence of statements
274 -- in an entry call alternative). Such cases appear in the syntax rules as
275 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
276 -- statement sequences always contain an empty list (not No_List) if no
277 -- statements are present.
279 -- Note: the utility program that constructs the body and spec of the Nmake
280 -- package relies on the format of the comments to determine if a field
281 -- should have a default value in the corresponding make routine. The rule
282 -- is that if the first line of the description of the field contains the
283 -- string "(set to xxx if", then a default value of xxx is provided for
284 -- this field in the corresponding Make_yyy routine.
286 -----------------------------------
287 -- Note on Body/Spec Terminology --
288 -----------------------------------
290 -- In informal discussions about Ada, it is customary to refer to package
291 -- and subprogram specs and bodies. However, this is not technically
292 -- correct, what is normally referred to as a spec or specification is in
293 -- fact a package declaration or subprogram declaration. We are careful in
294 -- GNAT to use the correct terminology and in particular, the full word
295 -- specification is never used as an incorrect substitute for declaration.
296 -- The structure and terminology used in the tree also reflects the grammar
297 -- and thus uses declaration and specification in the technically correct
298 -- manner.
300 -- However, there are contexts in which the informal terminology is useful.
301 -- We have the word "body" to refer to the Interp_Etype declared by the
302 -- declaration of a unit body, and in some contexts we need similar term to
303 -- refer to the entity declared by the package or subprogram declaration,
304 -- and simply using declaration can be confusing since the body also has a
305 -- declaration.
307 -- An example of such a context is the link between the package body and
308 -- its declaration. With_Declaration is confusing, since the package body
309 -- itself is a declaration.
311 -- To deal with this problem, we reserve the informal term Spec, i.e. the
312 -- popular abbreviation used in this context, to refer to the entity
313 -- declared by the package or subprogram declaration. So in the above
314 -- example case, the field in the body is called With_Spec.
316 -- Another important context for the use of the word Spec is in error
317 -- messages, where a hyper-correct use of declaration would be confusing to
318 -- a typical Ada programmer, and even for an expert programmer can cause
319 -- confusion since the body has a declaration as well.
321 -- So, to summarize:
323 -- Declaration always refers to the syntactic entity that is called
324 -- a declaration. In particular, subprogram declaration
325 -- and package declaration are used to describe the
326 -- syntactic entity that includes the semicolon.
328 -- Specification always refers to the syntactic entity that is called
329 -- a specification. In particular, the terms procedure
330 -- specification, function specification, package
331 -- specification, subprogram specification always refer
332 -- to the syntactic entity that has no semicolon.
334 -- Spec is an informal term, used to refer to the entity
335 -- that is declared by a task declaration, protected
336 -- declaration, generic declaration, subprogram
337 -- declaration or package declaration.
339 -- This convention is followed throughout the GNAT documentation
340 -- both internal and external, and in all error message text.
342 ------------------------
343 -- Internal Use Nodes --
344 ------------------------
346 -- These are Node_Kind settings used in the internal implementation which
347 -- are not logically part of the specification.
349 -- N_Unused_At_Start
350 -- Completely unused entry at the start of the enumeration type. This
351 -- is inserted so that no legitimate value is zero, which helps to get
352 -- better debugging behavior, since zero is a likely uninitialized value).
354 -- N_Unused_At_End
355 -- Completely unused entry at the end of the enumeration type. This is
356 -- handy so that arrays with Node_Kind as the index type have an extra
357 -- entry at the end (see for example the use of the Pchar_Pos_Array in
358 -- Treepr, where the extra entry provides the limit value when dealing with
359 -- the last used entry in the array).
361 -----------------------------------------
362 -- Note on the settings of Sloc fields --
363 -----------------------------------------
365 -- The Sloc field of nodes that come from the source is set by the parser.
366 -- For internal nodes, and nodes generated during expansion the Sloc is
367 -- usually set in the call to the constructor for the node. In general the
368 -- Sloc value chosen for an internal node is the Sloc of the source node
369 -- whose processing is responsible for the expansion. For example, the Sloc
370 -- of an inherited primitive operation is the Sloc of the corresponding
371 -- derived type declaration.
373 -- For the nodes of a generic instantiation, the Sloc value is encoded to
374 -- represent both the original Sloc in the generic unit, and the Sloc of
375 -- the instantiation itself. See Sinput.ads for details.
377 -- Subprogram instances create two callable entities: one is the visible
378 -- subprogram instance, and the other is an anonymous subprogram nested
379 -- within a wrapper package that contains the renamings for the actuals.
380 -- Both of these entities have the Sloc of the defining entity in the
381 -- instantiation node. This simplifies some ASIS queries.
383 -----------------------
384 -- Field Definitions --
385 -----------------------
387 -- In the following node definitions, all fields, both syntactic and
388 -- semantic, are documented. The one exception is in the case of entities
389 -- (defining identifiers, character literals and operator symbols), where
390 -- the usage of the fields depends on the entity kind. Entity fields are
391 -- fully documented in the separate package Einfo.
393 -- In the node definitions, three common sets of fields are abbreviated to
394 -- save both space in the documentation, and also space in the string
395 -- (defined in Tree_Print_Strings) used to print trees. The following
396 -- abbreviations are used:
398 -- Note: the utility program that creates the Treeprs spec (in the file
399 -- xtreeprs.adb) knows about the special fields here, so it must be
400 -- modified if any change is made to these fields.
402 -- "plus fields for binary operator"
403 -- Chars (Name1) Name_Id for the operator
404 -- Left_Opnd (Node2) left operand expression
405 -- Right_Opnd (Node3) right operand expression
406 -- Entity (Node4-Sem) defining entity for operator
407 -- Associated_Node (Node4-Sem) for generic processing
408 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
409 -- Has_Private_View (Flag11-Sem) set in generic units.
411 -- "plus fields for unary operator"
412 -- Chars (Name1) Name_Id for the operator
413 -- Right_Opnd (Node3) right operand expression
414 -- Entity (Node4-Sem) defining entity for operator
415 -- Associated_Node (Node4-Sem) for generic processing
416 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
417 -- Has_Private_View (Flag11-Sem) set in generic units.
419 -- "plus fields for expression"
420 -- Paren_Count number of parentheses levels
421 -- Etype (Node5-Sem) type of the expression
422 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
423 -- Is_Static_Expression (Flag6-Sem) set for static expression
424 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
425 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
426 -- Do_Range_Check (Flag9-Sem) set if a range check needed
427 -- Has_Dynamic_Length_Check (Flag10-Sem) set if length check inserted
428 -- Has_Dynamic_Range_Check (Flag12-Sem) set if range check inserted
429 -- Assignment_OK (Flag15-Sem) set if modification is OK
430 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
432 -- Note: see under (EXPRESSION) for further details on the use of
433 -- the Paren_Count field to record the number of parentheses levels.
435 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
436 -- The actual definition of this type is given later (the reason for this
437 -- is that we want the descriptions ordered by logical chapter in the RM,
438 -- but the type definition is reordered to facilitate the definition of
439 -- some subtype ranges. The individual descriptions of the nodes show how
440 -- the various fields are used in each node kind, as well as providing
441 -- logical names for the fields. Functions and procedures are provided for
442 -- accessing and setting these fields using these logical names.
444 -----------------------
445 -- Gigi Restrictions --
446 -----------------------
448 -- The tree passed to Gigi is more restricted than the general tree form.
449 -- For example, as a result of expansion, most of the tasking nodes can
450 -- never appear. For each node to which either a complete or partial
451 -- restriction applies, a note entitled "Gigi restriction" appears which
452 -- documents the restriction.
454 -- Note that most of these restrictions apply only to trees generated when
455 -- code is being generated, since they involved expander actions that
456 -- destroy the tree.
458 ---------------
459 -- ASIS Mode --
460 ---------------
462 -- When a file is compiled in ASIS mode (-gnatct), expansion is skipped,
463 -- and the analysis must generate a tree in a form that meets all ASIS
464 -- requirements.
466 -- ASIS must be able to recover the original tree that corresponds to the
467 -- source. It relies heavily on Original_Node for this purpose, which as
468 -- described in Atree, records the history when a node is rewritten. ASIS
469 -- uses Original_Node to recover the original node before the Rewrite.
471 -- At least in ASIS mode (not really important in non-ASIS mode), when
472 -- N1 is rewritten as N2:
474 -- The subtree rooted by the original node N1 should be fully decorated,
475 -- i.e. all semantic fields noted in sinfo.ads should be set properly
476 -- and any referenced entities should be complete (with exceptions for
477 -- representation information, noted below).
479 -- For all the direct descendants of N1 (original node) their Parent
480 -- links should point not to N1, but to N2 (rewriting node).
482 -- The Parent links of rewritten nodes (N1 in this example) are set in
483 -- some cases (to point to the rewritten parent), but in other cases
484 -- they are set to Empty. This needs sorting out ??? It would be much
485 -- cleaner if they could always be set in the original node ???
487 -- Representation Information
489 -- For the purposes of the data description annex, the representation
490 -- information for source declared entities must be complete in the
491 -- ASIS tree.
493 -- This requires that the front end call the back end (gigi/gcc) in
494 -- a special "back annotate only" mode to obtain information on layout
495 -- from the back end.
497 -- For the purposes of this special "back annotate only" mode, the
498 -- requirements that would normally need to be met to generate code
499 -- are relaxed as follows:
501 -- Anonymous types need not have full representation information (e.g.
502 -- sizes need not be set for types where the front end would normally
503 -- set the sizes), since anonymous types can be ignored in this mode.
505 -- In this mode, gigi will see at least fragments of a fully annotated
506 -- unexpanded tree. This means that it will encounter nodes it does
507 -- not normally handle (such as stubs, task bodies etc). It should
508 -- simply ignore these nodes, since they are not relevant to the task
509 -- of back annotating representation information.
511 ----------------
512 -- SPARK Mode --
513 ----------------
515 -- When a file is compiled in SPARK mode (-gnatd.F), a very light expansion
516 -- is performed and the analysis must generate a tree in a form that meets
517 -- additional requirements.
519 -- The SPARK expansion does two transformations of the tree, that cannot be
520 -- postponed after the frontend semantic analysis:
522 -- 1. Replace renamings by renamed (object/subprogram). This requires
523 -- introducing temporaries at the point of the renaming, which must be
524 -- properly analyzed.
526 -- 2. Fully qualify entity names. This is needed to generate suitable
527 -- local effects/call-graphs in ALI files, with the completely
528 -- qualified names (in particular the suffix to distinguish homonyms).
530 -- The tree after SPARK expansion should be fully analyzed semantically,
531 -- which sometimes requires the insertion of semantic pre-analysis, for
532 -- example for subprogram contracts and pragma check/assert. In particular,
533 -- all expression must have their proper type, and semantic links should be
534 -- set between tree nodes (partial to full view, etc.) Some kinds of nodes
535 -- should be either absent, or can be ignored by the formal verification
536 -- backend:
538 -- N_Object_Renaming_Declaration: can be ignored safely
539 -- N_Expression_Function: absent (rewitten)
540 -- N_Expression_With_Actions: absent (not generated)
542 -- SPARK cross-references are generated from the regular cross-references
543 -- (used for browsing and code understanding) and additional references
544 -- collected during semantic analysis, in particular on all dereferences.
545 -- These SPARK cross-references are output in a separate section of ALI
546 -- files, as described in spark_xrefs.adb. They are the basis for the
547 -- computation of data dependences in the formal verification backend.
548 -- This implies that all cross-references should be generated in this mode,
549 -- even those that would not make sense from a user point-of-view, and that
550 -- cross-references that do not lead to data dependences for subprograms
551 -- can be safely ignored.
553 ------------------------
554 -- Common Flag Fields --
555 ------------------------
557 -- The following flag fields appear in all nodes
559 -- Analyzed
560 -- This flag is used to indicate that a node (and all its children have
561 -- been analyzed. It is used to avoid reanalysis of a node that has
562 -- already been analyzed, both for efficiency and functional correctness
563 -- reasons.
565 -- Comes_From_Source
566 -- This flag is set if the node comes directly from an explicit construct
567 -- in the source. It is normally on for any nodes built by the scanner or
568 -- parser from the source program, with the exception that in a few cases
569 -- the parser adds nodes to normalize the representation (in particular
570 -- a null statement is added to a package body if there is no begin/end
571 -- initialization section.
573 -- Most nodes inserted by the analyzer or expander are not considered
574 -- as coming from source, so the flag is off for such nodes. In a few
575 -- cases, the expander constructs nodes closely equivalent to nodes
576 -- from the source program (e.g. the allocator built for build-in-place
577 -- case), and the Comes_From_Source flag is deliberately set.
579 -- Error_Posted
580 -- This flag is used to avoid multiple error messages being posted on or
581 -- referring to the same node. This flag is set if an error message
582 -- refers to a node or is posted on its source location, and has the
583 -- effect of inhibiting further messages involving this same node.
585 ------------------------------------
586 -- Description of Semantic Fields --
587 ------------------------------------
589 -- The meaning of the syntactic fields is generally clear from their names
590 -- without any further description, since the names are chosen to
591 -- correspond very closely to the syntax in the reference manual. This
592 -- section describes the usage of the semantic fields, which are used to
593 -- contain additional information determined during semantic analysis.
595 -- ABE_Is_Certain (Flag18-Sem)
596 -- This flag is set in an instantiation node or a call node is determined
597 -- to be sure to raise an ABE. This is used to trigger special handling
598 -- of such cases, particularly in the instantiation case where we avoid
599 -- instantiating the body if this flag is set. This flag is also present
600 -- in an N_Formal_Package_Declaration_Node since formal package
601 -- declarations are treated like instantiations, but it is always set to
602 -- False in this context.
604 -- Accept_Handler_Records (List5-Sem)
605 -- This field is present only in an N_Accept_Alternative node. It is used
606 -- to temporarily hold the exception handler records from an accept
607 -- statement in a selective accept. These exception handlers will
608 -- eventually be placed in the Handler_Records list of the procedure
609 -- built for this accept (see Expand_N_Selective_Accept procedure in
610 -- Exp_Ch9 for further details).
612 -- Access_Types_To_Process (Elist2-Sem)
613 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
614 -- Contains the list of access types which may require specific treatment
615 -- when the nature of the type completion is completely known. An example
616 -- of such treatment is the generation of the associated_final_chain.
618 -- Actions (List1-Sem)
619 -- This field contains a sequence of actions that are associated with the
620 -- node holding the field. See the individual node types for details of
621 -- how this field is used, as well as the description of the specific use
622 -- for a particular node type.
624 -- Activation_Chain_Entity (Node3-Sem)
625 -- This is used in tree nodes representing task activators (blocks,
626 -- subprogram bodies, package declarations, and task bodies). It is
627 -- initially Empty, and then gets set to point to the entity for the
628 -- declared Activation_Chain variable when the first task is declared.
629 -- When tasks are declared in the corresponding declarative region this
630 -- entity is located by name (its name is always _Chain) and the declared
631 -- tasks are added to the chain. Note that N_Extended_Return_Statement
632 -- does not have this attribute, although it does have an activation
633 -- chain. This chain is used to store the tasks temporarily, and is not
634 -- used for activating them. On successful completion of the return
635 -- statement, the tasks are moved to the caller's chain, and the caller
636 -- activates them.
638 -- Acts_As_Spec (Flag4-Sem)
639 -- A flag set in the N_Subprogram_Body node for a subprogram body which
640 -- is acting as its own spec, except in the case of a library level
641 -- subprogram, in which case the flag is set on the parent compilation
642 -- unit node instead (see further description in spec of Lib package).
643 -- ??? Above note about Lib is dubious since lib.ads does not mention
644 -- Acts_As_Spec at all.
646 -- Actual_Designated_Subtype (Node4-Sem)
647 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
648 -- needs to known the dynamic constrained subtype of the designated
649 -- object, this attribute is set to that type. This is done for
650 -- N_Free_Statements for access-to-classwide types and access to
651 -- unconstrained packed array types, and for N_Explicit_Dereference when
652 -- the designated type is an unconstrained packed array and the
653 -- dereference is the prefix of a 'Size attribute reference.
655 -- Address_Warning_Posted (Flag18-Sem)
656 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
657 -- posted a warning for the address clause regarding size or alignment
658 -- issues. Used to inhibit multiple redundant messages.
660 -- Aggregate_Bounds (Node3-Sem)
661 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
662 -- known at compile time, this field points to an N_Range node with those
663 -- bounds. Otherwise Empty.
665 -- All_Others (Flag11-Sem)
666 -- Present in an N_Others_Choice node. This flag is set for an others
667 -- exception where all exceptions are to be caught, even those that are
668 -- not normally handled (in particular the tasking abort signal). This
669 -- is used for translation of the at end handler into a normal exception
670 -- handler.
672 -- Aspect_Rep_Item (Node2-Sem)
673 -- Present in N_Aspect_Specification nodes. Points to the corresponding
674 -- pragma/attribute definition node used to process the aspect.
676 -- Assignment_OK (Flag15-Sem)
677 -- This flag is set in a subexpression node for an object, indicating
678 -- that the associated object can be modified, even if this would not
679 -- normally be permissible (either by direct assignment, or by being
680 -- passed as an out or in-out parameter). This is used by the expander
681 -- for a number of purposes, including initialization of constants and
682 -- limited type objects (such as tasks), setting discriminant fields,
683 -- setting tag values, etc. N_Object_Declaration nodes also have this
684 -- flag defined. Here it is used to indicate that an initialization
685 -- expression is valid, even where it would normally not be allowed
686 -- (e.g. where the type involved is limited).
688 -- Associated_Node (Node4-Sem)
689 -- Present in nodes that can denote an entity: identifiers, character
690 -- literals, operator symbols, expanded names, operator nodes, and
691 -- attribute reference nodes (all these nodes have an Entity field).
692 -- This field is also present in N_Aggregate, N_Selected_Component, and
693 -- N_Extension_Aggregate nodes. This field is used in generic processing
694 -- to create links between the generic template and the generic copy.
695 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
696 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
697 -- the normal function of Entity is not required at the point where the
698 -- Associated_Node is set. Note also, that in generic templates, this
699 -- means that the Entity field does not necessarily point to an Entity.
700 -- Since the back end is expected to ignore generic templates, this is
701 -- harmless.
703 -- Atomic_Sync_Required (Flag14-Sem)
704 -- This flag is set on a node for which atomic synchronization is
705 -- required for the corresponding reference or modification.
707 -- At_End_Proc (Node1)
708 -- This field is present in an N_Handled_Sequence_Of_Statements node.
709 -- It contains an identifier reference for the cleanup procedure to be
710 -- called. See description of this node for further details.
712 -- Backwards_OK (Flag6-Sem)
713 -- A flag present in the N_Assignment_Statement node. It is used only
714 -- if the type being assigned is an array type, and is set if analysis
715 -- determines that it is definitely safe to do the copy backwards, i.e.
716 -- starting at the highest addressed element. This is the case if either
717 -- the operands do not overlap, or they may overlap, but if they do,
718 -- then the left operand is at a higher address than the right operand.
720 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
721 -- means that the front end could not determine that either direction is
722 -- definitely safe, and a runtime check may be required if the backend
723 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
724 -- set, it means that the front end can assure no overlap of operands.
726 -- Body_To_Inline (Node3-Sem)
727 -- present in subprogram declarations. Denotes analyzed but unexpanded
728 -- body of subprogram, to be used when inlining calls. Present when the
729 -- subprogram has an Inline pragma and inlining is enabled. If the
730 -- declaration is completed by a renaming_as_body, and the renamed en-
731 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
732 -- which is used directly in later calls to the original subprogram.
734 -- Body_Required (Flag13-Sem)
735 -- A flag that appears in the N_Compilation_Unit node indicating that
736 -- the corresponding unit requires a body. For the package case, this
737 -- indicates that a completion is required. In Ada 95, if the flag is not
738 -- set for the package case, then a body may not be present. In Ada 83,
739 -- if the flag is not set for the package case, then body is optional.
740 -- For a subprogram declaration, the flag is set except in the case where
741 -- a pragma Import or Interface applies, in which case no body is
742 -- permitted (in Ada 83 or Ada 95).
744 -- By_Ref (Flag5-Sem)
745 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
746 -- this flag is set when the returned expression is already allocated on
747 -- the secondary stack and thus the result is passed by reference rather
748 -- than copied another time.
750 -- Check_Address_Alignment (Flag11-Sem)
751 -- A flag present in N_Attribute_Definition clause for a 'Address
752 -- attribute definition. This flag is set if a dynamic check should be
753 -- generated at the freeze point for the entity to which this address
754 -- clause applies. The reason that we need this flag is that we want to
755 -- check for range checks being suppressed at the point where the
756 -- attribute definition clause is given, rather than testing this at the
757 -- freeze point.
759 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
760 -- Present in N_Simple_Return_Statement nodes. True if this node was
761 -- constructed as part of the N_Extended_Return_Statement expansion.
763 -- Compile_Time_Known_Aggregate (Flag18-Sem)
764 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
765 -- evaluated at compile time without raising constraint error. Such
766 -- aggregates can be passed as is the back end without any expansion.
767 -- See Exp_Aggr for specific conditions under which this flag gets set.
769 -- Componentwise_Assignment (Flag14-Sem)
770 -- Present in N_Assignment_Statement nodes. Set for a record assignment
771 -- where all that needs doing is to expand it into component-by-component
772 -- assignments. This is used internally for the case of tagged types with
773 -- rep clauses, where we need to avoid recursion (we don't want to try to
774 -- generate a call to the primitive operation, because this is the case
775 -- where we are compiling the primitive operation). Note that when we are
776 -- expanding component assignments in this case, we never assign the _tag
777 -- field, but we recursively assign components of the parent type.
779 -- Condition_Actions (List3-Sem)
780 -- This field appears in else-if nodes and in the iteration scheme node
781 -- for while loops. This field is only used during semantic processing to
782 -- temporarily hold actions inserted into the tree. In the tree passed
783 -- to gigi, the condition actions field is always set to No_List. For
784 -- details on how this field is used, see the routine Insert_Actions in
785 -- package Exp_Util, and also the expansion routines for the relevant
786 -- nodes.
788 -- Context_Pending (Flag16-Sem)
789 -- This field appears in Compilation_Unit nodes, to indicate that the
790 -- context of the unit is being compiled. Used to detect circularities
791 -- that are not otherwise detected by the loading mechanism. Such
792 -- circularities can occur in the presence of limited and non-limited
793 -- with_clauses that mention the same units.
795 -- Controlling_Argument (Node1-Sem)
796 -- This field is set in procedure and function call nodes if the call
797 -- is a dispatching call (it is Empty for a non-dispatching call). It
798 -- indicates the source of the call's controlling tag. For procedure
799 -- calls, the Controlling_Argument is one of the actuals. For function
800 -- that has a dispatching result, it is an entity in the context of the
801 -- call that can provide a tag, or else it is the tag of the root type
802 -- of the class. It can also specify a tag directly rather than being a
803 -- tagged object. The latter is needed by the implementations of AI-239
804 -- and AI-260.
806 -- Conversion_OK (Flag14-Sem)
807 -- A flag set on type conversion nodes to indicate that the conversion
808 -- is to be considered as being valid, even though it is the case that
809 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
810 -- Fixed_Value and Integer_Value, for internal conversions done for
811 -- fixed-point operations, and for certain conversions for calls to
812 -- initialization procedures. If Conversion_OK is set, then Etype must be
813 -- set (the analyzer assumes that Etype has been set). For the case of
814 -- fixed-point operands, it also indicates that the conversion is to be
815 -- direct conversion of the underlying integer result, with no regard to
816 -- the small operand.
818 -- Convert_To_Return_False (Flag13-Sem)
819 -- Present in N_Raise_Expression nodes that appear in the body of the
820 -- special predicateM function used to test a predicate in the context
821 -- of a membership test, where raise expression results in returning a
822 -- value of False rather than raising an exception.
824 -- Corresponding_Aspect (Node3-Sem)
825 -- Present in N_Pragma node. Used to point back to the source aspect from
826 -- the corresponding pragma. This field is Empty for source pragmas.
828 -- Corresponding_Body (Node5-Sem)
829 -- This field is set in subprogram declarations, package declarations,
830 -- entry declarations of protected types, and in generic units. It points
831 -- to the defining entity for the corresponding body (NOT the node for
832 -- the body itself).
834 -- Corresponding_Formal_Spec (Node3-Sem)
835 -- This field is set in subprogram renaming declarations, where it points
836 -- to the defining entity for a formal subprogram in the case where the
837 -- renaming corresponds to a generic formal subprogram association in an
838 -- instantiation. The field is Empty if the renaming does not correspond
839 -- to such a formal association.
841 -- Corresponding_Generic_Association (Node5-Sem)
842 -- This field is defined for object declarations and object renaming
843 -- declarations. It is set for the declarations within an instance that
844 -- map generic formals to their actuals. If set, the field points to
845 -- a generic_association which is the original parent of the expression
846 -- or name appearing in the declaration. This simplifies ASIS queries.
848 -- Corresponding_Integer_Value (Uint4-Sem)
849 -- This field is set in real literals of fixed-point types (it is not
850 -- used for floating-point types). It contains the integer value used
851 -- to represent the fixed-point value. It is also set on the universal
852 -- real literals used to represent bounds of fixed-point base types
853 -- and their first named subtypes.
855 -- Corresponding_Spec (Node5-Sem)
856 -- This field is set in subprogram, package, task, and protected body
857 -- nodes, where it points to the defining entity in the corresponding
858 -- spec. The attribute is also set in N_With_Clause nodes where it points
859 -- to the defining entity for the with'ed spec, and in a subprogram
860 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
861 -- if there is no corresponding spec, as in the case of a subprogram body
862 -- that serves as its own spec.
864 -- In Ada 2012, Corresponding_Spec is set on expression functions that
865 -- complete a subprogram declaration.
867 -- Corresponding_Spec_Of_Stub (Node2-Sem)
868 -- This field is present in subprogram, package, task and protected body
869 -- stubs where it points to the corresponding spec of the stub. Due to
870 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
872 -- Corresponding_Stub (Node3-Sem)
873 -- This field is present in an N_Subunit node. It holds the node in
874 -- the parent unit that is the stub declaration for the subunit. It is
875 -- set when analysis of the stub forces loading of the proper body. If
876 -- expansion of the proper body creates new declarative nodes, they are
877 -- inserted at the point of the corresponding_stub.
879 -- Dcheck_Function (Node5-Sem)
880 -- This field is present in an N_Variant node, It references the entity
881 -- for the discriminant checking function for the variant.
883 -- Default_Expression (Node5-Sem)
884 -- This field is Empty if there is no default expression. If there is a
885 -- simple default expression (one with no side effects), then this field
886 -- simply contains a copy of the Expression field (both point to the tree
887 -- for the default expression). Default_Expression is used for
888 -- conformance checking.
890 -- Default_Storage_Pool (Node3-Sem)
891 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
892 -- copy of Opt.Default_Pool at the end of the compilation unit. See
893 -- package Opt for details. This is used for inheriting the
894 -- Default_Storage_Pool in child units.
896 -- Discr_Check_Funcs_Built (Flag11-Sem)
897 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
898 -- discriminant checking functions are constructed. The purpose is to
899 -- avoid attempting to set these functions more than once.
901 -- Do_Accessibility_Check (Flag13-Sem)
902 -- This flag is set on N_Parameter_Specification nodes to indicate
903 -- that an accessibility check is required for the parameter. It is
904 -- not yet decided who takes care of this check (TBD ???).
906 -- Do_Discriminant_Check (Flag13-Sem)
907 -- This flag is set on N_Selected_Component nodes to indicate that a
908 -- discriminant check is required using the discriminant check routine
909 -- associated with the selector. The actual check is generated by the
910 -- expander when processing selected components. In the case of
911 -- Unchecked_Union, the flag is also set, but no discriminant check
912 -- routine is associated with the selector, and the expander does not
913 -- generate a check.
915 -- Do_Division_Check (Flag13-Sem)
916 -- This flag is set on a division operator (/ mod rem) to indicate
917 -- that a zero divide check is required. The actual check is dealt
918 -- with by the backend (all the front end does is to set the flag).
920 -- Do_Length_Check (Flag4-Sem)
921 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
922 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
923 -- is required. It is not determined who deals with this flag (???).
925 -- Do_Overflow_Check (Flag17-Sem)
926 -- This flag is set on an operator where an overflow check is required on
927 -- the operation. The actual check is dealt with by the backend (all the
928 -- front end does is to set the flag). The other cases where this flag is
929 -- used is on a Type_Conversion node and for attribute reference nodes.
930 -- For a type conversion, it means that the conversion is from one base
931 -- type to another, and the value may not fit in the target base type.
932 -- See also the description of Do_Range_Check for this case. The only
933 -- attribute references which use this flag are Pred and Succ, where it
934 -- means that the result should be checked for going outside the base
935 -- range. Note that this flag is not set for modular types. This flag is
936 -- also set on if and case expression nodes if we are operating in either
937 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
938 -- properly process overflow checking for dependent expressions).
940 -- Do_Range_Check (Flag9-Sem)
941 -- This flag is set on an expression which appears in a context where a
942 -- range check is required. The target type is clear from the context.
943 -- The contexts in which this flag can appear are the following:
945 -- Right side of an assignment. In this case the target type is
946 -- taken from the left side of the assignment, which is referenced
947 -- by the Name of the N_Assignment_Statement node.
949 -- Subscript expressions in an indexed component. In this case the
950 -- target type is determined from the type of the array, which is
951 -- referenced by the Prefix of the N_Indexed_Component node.
953 -- Argument expression for a parameter, appearing either directly in
954 -- the Parameter_Associations list of a call or as the Expression of an
955 -- N_Parameter_Association node that appears in this list. In either
956 -- case, the check is against the type of the formal. Note that the
957 -- flag is relevant only in IN and IN OUT parameters, and will be
958 -- ignored for OUT parameters, where no check is required in the call,
959 -- and if a check is required on the return, it is generated explicitly
960 -- with a type conversion.
962 -- Initialization expression for the initial value in an object
963 -- declaration. In this case the Do_Range_Check flag is set on
964 -- the initialization expression, and the check is against the
965 -- range of the type of the object being declared.
967 -- The expression of a type conversion. In this case the range check is
968 -- against the target type of the conversion. See also the use of
969 -- Do_Overflow_Check on a type conversion. The distinction is that the
970 -- overflow check protects against a value that is outside the range of
971 -- the target base type, whereas a range check checks that the
972 -- resulting value (which is a value of the base type of the target
973 -- type), satisfies the range constraint of the target type.
975 -- Note: when a range check is required in contexts other than those
976 -- listed above (e.g. in a return statement), an additional type
977 -- conversion node is introduced to represent the required check.
979 -- A special case arises for the arguments of the Pred/Succ attributes.
980 -- Here the range check needed is against First + 1 .. Last (Pred) or
981 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
982 -- these checks are what would be performed within the implicit body of
983 -- the functions that correspond to these attributes. In these cases,
984 -- the Do_Range check flag is set on the argument to the attribute
985 -- function, and the back end must special case the appropriate range
986 -- to check against.
988 -- Do_Storage_Check (Flag17-Sem)
989 -- This flag is set in an N_Allocator node to indicate that a storage
990 -- check is required for the allocation, or in an N_Subprogram_Body node
991 -- to indicate that a stack check is required in the subprogram prolog.
992 -- The N_Allocator case is handled by the routine that expands the call
993 -- to the runtime routine. The N_Subprogram_Body case is handled by the
994 -- backend, and all the semantics does is set the flag.
996 -- Do_Tag_Check (Flag13-Sem)
997 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
998 -- N_Procedure_Call_Statement, N_Type_Conversion,
999 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1000 -- node to indicate that the tag check can be suppressed. It is not
1001 -- yet decided how this flag is used (TBD ???).
1003 -- Elaborate_Present (Flag4-Sem)
1004 -- This flag is set in the N_With_Clause node to indicate that pragma
1005 -- Elaborate pragma appears for the with'ed units.
1007 -- Elaborate_All_Desirable (Flag9-Sem)
1008 -- This flag is set in the N_With_Clause mode to indicate that the static
1009 -- elaboration processing has determined that an Elaborate_All pragma is
1010 -- desirable for correct elaboration for this unit.
1012 -- Elaborate_All_Present (Flag14-Sem)
1013 -- This flag is set in the N_With_Clause node to indicate that a
1014 -- pragma Elaborate_All pragma appears for the with'ed units.
1016 -- Elaborate_Desirable (Flag11-Sem)
1017 -- This flag is set in the N_With_Clause mode to indicate that the static
1018 -- elaboration processing has determined that an Elaborate pragma is
1019 -- desirable for correct elaboration for this unit.
1021 -- Elaboration_Boolean (Node2-Sem)
1022 -- This field is present in function and procedure specification nodes.
1023 -- If set, it points to the entity for a Boolean flag that must be tested
1024 -- for certain calls to check for access before elaboration. See body of
1025 -- Sem_Elab for further details. This field is Empty if no elaboration
1026 -- boolean is required.
1028 -- Else_Actions (List3-Sem)
1029 -- This field is present in if expression nodes. During code
1030 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1031 -- actions at an appropriate place in the tree to get elaborated at the
1032 -- right time. For if expressions, we have to be sure that the actions
1033 -- for the Else branch are only elaborated if the condition is False.
1034 -- The Else_Actions field is used as a temporary parking place for
1035 -- these actions. The final tree is always rewritten to eliminate the
1036 -- need for this field, so in the tree passed to Gigi, this field is
1037 -- always set to No_List.
1039 -- Enclosing_Variant (Node2-Sem)
1040 -- This field is present in the N_Variant node and identifies the Node_Id
1041 -- corresponding to the immediately enclosing variant when the variant is
1042 -- nested, and N_Empty otherwise. Set during semantic processing of the
1043 -- variant part of a record type.
1045 -- Entity (Node4-Sem)
1046 -- Appears in all direct names (identifiers, character literals, and
1047 -- operator symbols), as well as expanded names, and attributes that
1048 -- denote entities, such as 'Class. Points to entity for corresponding
1049 -- defining occurrence. Set after name resolution. For identifiers in a
1050 -- WITH list, the corresponding defining occurrence is in a separately
1051 -- compiled file, and Entity must be set by the library Load procedure.
1053 -- Note: During name resolution, the value in Entity may be temporarily
1054 -- incorrect (e.g. during overload resolution, Entity is initially set to
1055 -- the first possible correct interpretation, and then later modified if
1056 -- necessary to contain the correct value after resolution).
1058 -- Note: This field overlaps Associated_Node, which is used during
1059 -- generic processing (see Sem_Ch12 for details). Note also that in
1060 -- generic templates, this means that the Entity field does not always
1061 -- point to an Entity. Since the back end is expected to ignore generic
1062 -- templates, this is harmless.
1064 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1065 -- It is used only for stream attributes definition clauses. In this
1066 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1067 -- conceptually at the point of the clause. Thus the visibility of the
1068 -- attribute definition clause (in the sense of 8.3(23) as amended by
1069 -- AI-195) can be checked by testing the visibility of that subprogram.
1071 -- Note: Normally the Entity field of an identifier points to the entity
1072 -- for the corresponding defining identifier, and hence the Chars field
1073 -- of an identifier will match the Chars field of the entity. However,
1074 -- there is no requirement that these match, and there are obscure cases
1075 -- of generated code where they do not match.
1077 -- Note: Ada 2012 aspect specifications require additional links between
1078 -- identifiers and various attributes. These attributes can be of
1079 -- arbitrary types, and the entity field of identifiers that denote
1080 -- aspects must be used to store arbitrary expressions for later semantic
1081 -- checks. See section on aspect specifications for details.
1083 -- Entity_Or_Associated_Node (Node4-Sem)
1084 -- A synonym for both Entity and Associated_Node. Used by convention in
1085 -- the code when referencing this field in cases where it is not known
1086 -- whether the field contains an Entity or an Associated_Node.
1088 -- Etype (Node5-Sem)
1089 -- Appears in all expression nodes, all direct names, and all entities.
1090 -- Points to the entity for the related type. Set after type resolution.
1091 -- Normally this is the actual subtype of the expression. However, in
1092 -- certain contexts such as the right side of an assignment, subscripts,
1093 -- arguments to calls, returned value in a function, initial value etc.
1094 -- it is the desired target type. In the event that this is different
1095 -- from the actual type, the Do_Range_Check flag will be set if a range
1096 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1097 -- points to an essentially arbitrary choice from the possible set of
1098 -- types.
1100 -- Exception_Junk (Flag8-Sem)
1101 -- This flag is set in a various nodes appearing in a statement sequence
1102 -- to indicate that the corresponding node is an artifact of the
1103 -- generated code for exception handling, and should be ignored when
1104 -- analyzing the control flow of the relevant sequence of statements
1105 -- (e.g. to check that it does not end with a bad return statement).
1107 -- Exception_Label (Node5-Sem)
1108 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1109 -- to be used for transforming the corresponding exception into a goto,
1110 -- or contains Empty, if this exception is not to be transformed. Also
1111 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1112 -- that there may be a local raise for the handler, so that expansion
1113 -- to allow a goto is required (and this field contains the label for
1114 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1116 -- Expansion_Delayed (Flag11-Sem)
1117 -- Set on aggregates and extension aggregates that need a top-down rather
1118 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1119 -- up. For nested aggregates the expansion is delayed until the enclosing
1120 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1121 -- delay it we set this flag. This is done to avoid creating a temporary
1122 -- for each level of a nested aggregates, and also to prevent the
1123 -- premature generation of constraint checks. This is also a requirement
1124 -- if we want to generate the proper attachment to the internal
1125 -- finalization lists (for record with controlled components). Top down
1126 -- expansion of aggregates is also used for in-place array aggregate
1127 -- assignment or initialization. When the full context is known, the
1128 -- target of the assignment or initialization is used to generate the
1129 -- left-hand side of individual assignment to each sub-component.
1131 -- First_Inlined_Subprogram (Node3-Sem)
1132 -- Present in the N_Compilation_Unit node for the main program. Points
1133 -- to a chain of entities for subprograms that are to be inlined. The
1134 -- Next_Inlined_Subprogram field of these entities is used as a link
1135 -- pointer with Empty marking the end of the list. This field is Empty
1136 -- if there are no inlined subprograms or inlining is not active.
1138 -- First_Named_Actual (Node4-Sem)
1139 -- Present in procedure call statement and function call nodes, and also
1140 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1141 -- named parameter where parameters are ordered by declaration order (as
1142 -- opposed to the actual order in the call which may be different due to
1143 -- named associations). Note: this field points to the explicit actual
1144 -- parameter itself, not the N_Parameter_Association node (its parent).
1146 -- First_Real_Statement (Node2-Sem)
1147 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1148 -- Empty. Used only when declarations are moved into the statement part
1149 -- of a construct as a result of wrapping an AT END handler that is
1150 -- required to cover the declarations. In this case, this field is used
1151 -- to remember the location in the statements list of the first real
1152 -- statement, i.e. the statement that used to be first in the statement
1153 -- list before the declarations were prepended.
1155 -- First_Subtype_Link (Node5-Sem)
1156 -- Present in N_Freeze_Entity node for an anonymous base type that is
1157 -- implicitly created by the declaration of a first subtype. It points
1158 -- to the entity for the first subtype.
1160 -- Float_Truncate (Flag11-Sem)
1161 -- A flag present in type conversion nodes. This is used for float to
1162 -- integer conversions where truncation is required rather than rounding.
1163 -- Note that Gigi does not handle type conversions from real to integer
1164 -- with rounding (see Expand_N_Type_Conversion).
1166 -- Forwards_OK (Flag5-Sem)
1167 -- A flag present in the N_Assignment_Statement node. It is used only
1168 -- if the type being assigned is an array type, and is set if analysis
1169 -- determines that it is definitely safe to do the copy forwards, i.e.
1170 -- starting at the lowest addressed element. This is the case if either
1171 -- the operands do not overlap, or they may overlap, but if they do,
1172 -- then the left operand is at a lower address than the right operand.
1174 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1175 -- means that the front end could not determine that either direction is
1176 -- definitely safe, and a runtime check may be required if the backend
1177 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1178 -- set, it means that the front end can assure no overlap of operands.
1180 -- From_Aspect_Specification (Flag13-Sem)
1181 -- Processing of aspect specifications typically results in insertion in
1182 -- the tree of corresponding pragma or attribute definition clause nodes.
1183 -- These generated nodes have the From_Aspect_Specification flag set to
1184 -- indicate that they came from aspect specifications originally.
1186 -- From_At_End (Flag4-Sem)
1187 -- This flag is set on an N_Raise_Statement node if it corresponds to
1188 -- the reraise statement generated as the last statement of an AT END
1189 -- handler when SJLJ exception handling is active. It is used to stop
1190 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1191 -- because if the restriction is set, the reraise is not generated.
1193 -- From_At_Mod (Flag4-Sem)
1194 -- This flag is set on the attribute definition clause node that is
1195 -- generated by a transformation of an at mod phrase in a record
1196 -- representation clause. This is used to give slightly different (Ada 83
1197 -- compatible) semantics to such a clause, namely it is used to specify a
1198 -- minimum acceptable alignment for the base type and all subtypes. In
1199 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1200 -- must be a multiple of the given value, and the representation clause
1201 -- is considered to be type specific instead of subtype specific.
1203 -- From_Default (Flag6-Sem)
1204 -- This flag is set on the subprogram renaming declaration created in an
1205 -- instance for a formal subprogram, when the formal is declared with a
1206 -- box, and there is no explicit actual. If the flag is present, the
1207 -- declaration is treated as an implicit reference to the formal in the
1208 -- ali file.
1210 -- Generic_Parent (Node5-Sem)
1211 -- Generic_Parent is defined on declaration nodes that are instances. The
1212 -- value of Generic_Parent is the generic entity from which the instance
1213 -- is obtained. Generic_Parent is also defined for the renaming
1214 -- declarations and object declarations created for the actuals in an
1215 -- instantiation. The generic parent of such a declaration is the
1216 -- corresponding generic association in the Instantiation node.
1218 -- Generic_Parent_Type (Node4-Sem)
1219 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1220 -- actuals of formal private and derived types. Within the instance, the
1221 -- operations on the actual are those inherited from the parent. For a
1222 -- formal private type, the parent type is the generic type itself. The
1223 -- Generic_Parent_Type is also used in an instance to determine whether a
1224 -- private operation overrides an inherited one.
1226 -- Handler_List_Entry (Node2-Sem)
1227 -- This field is present in N_Object_Declaration nodes. It is set only
1228 -- for the Handler_Record entry generated for an exception in zero cost
1229 -- exception handling mode. It references the corresponding item in the
1230 -- handler list, and is used to delete this entry if the corresponding
1231 -- handler is deleted during optimization. For further details on why
1232 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1234 -- Has_Dereference_Action (Flag13-Sem)
1235 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1236 -- indicate that the expansion has aready produced a call to primitive
1237 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1238 -- Such dereference actions are produced for debugging purposes.
1240 -- Has_Dynamic_Length_Check (Flag10-Sem)
1241 -- This flag is present in all expression nodes. It is set to indicate
1242 -- that one of the routines in unit Checks has generated a length check
1243 -- action which has been inserted at the flagged node. This is used to
1244 -- avoid the generation of duplicate checks.
1246 -- Has_Dynamic_Range_Check (Flag12-Sem)
1247 -- This flag is present in N_Subtype_Declaration nodes and on all
1248 -- expression nodes. It is set to indicate that one of the routines in
1249 -- unit Checks has generated a range check action which has been inserted
1250 -- at the flagged node. This is used to avoid the generation of duplicate
1251 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1252 -- it mean in that context???
1254 -- Has_Local_Raise (Flag8-Sem)
1255 -- Present in exception handler nodes. Set if the handler can be entered
1256 -- via a local raise that gets transformed to a goto statement. This will
1257 -- always be set if Local_Raise_Statements is non-empty, but can also be
1258 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1259 -- nodes requiring generation of back end checks.
1261 -- Has_No_Elaboration_Code (Flag17-Sem)
1262 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1263 -- or not elaboration code is present for this unit. It is initially set
1264 -- true for subprogram specs and bodies and for all generic units and
1265 -- false for non-generic package specs and bodies. Gigi may set the flag
1266 -- in the non-generic package case if it determines that no elaboration
1267 -- code is generated. Note that this flag is not related to the
1268 -- Is_Preelaborated status, there can be preelaborated packages that
1269 -- generate elaboration code, and non-preelaborated packages which do
1270 -- not generate elaboration code.
1272 -- Has_Pragma_Suppress_All (Flag14-Sem)
1273 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1274 -- pragma appears anywhere in the unit. This accommodates the rather
1275 -- strange placement rules of other compilers (DEC permits it at the
1276 -- end of a unit, and Rational allows it as a program unit pragma). We
1277 -- allow it anywhere at all, and consider it equivalent to a pragma
1278 -- Suppress (All_Checks) appearing at the start of the configuration
1279 -- pragmas for the unit.
1281 -- Has_Private_View (Flag11-Sem)
1282 -- A flag present in generic nodes that have an entity, to indicate that
1283 -- the node has a private type. Used to exchange private and full
1284 -- declarations if the visibility at instantiation is different from the
1285 -- visibility at generic definition.
1287 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1288 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1289 -- flag the presence of a pragma Relative_Deadline.
1291 -- Has_Self_Reference (Flag13-Sem)
1292 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1293 -- of the expressions contains an access attribute reference to the
1294 -- enclosing type. Such a self-reference can only appear in default-
1295 -- initialized aggregate for a record type.
1297 -- Has_SP_Choice (Flag15-Sem)
1298 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1299 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1300 -- True if the Discrete_Choices list has at least one occurrence of a
1301 -- statically predicated subtype.
1303 -- Has_Storage_Size_Pragma (Flag5-Sem)
1304 -- A flag present in an N_Task_Definition node to flag the presence of a
1305 -- Storage_Size pragma.
1307 -- Has_Wide_Character (Flag11-Sem)
1308 -- Present in string literals, set if any wide character (i.e. character
1309 -- code outside the Character range but within Wide_Character range)
1310 -- appears in the string. Used to implement pragma preference rules.
1312 -- Has_Wide_Wide_Character (Flag13-Sem)
1313 -- Present in string literals, set if any wide character (i.e. character
1314 -- code outside the Wide_Character range) appears in the string. Used to
1315 -- implement pragma preference rules.
1317 -- Header_Size_Added (Flag11-Sem)
1318 -- Present in N_Attribute_Reference nodes, set only for attribute
1319 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1320 -- hidden list header used by the runtime finalization support has been
1321 -- added to the size of the prefix. The flag also prevents the infinite
1322 -- expansion of the same attribute in the said context.
1324 -- Hidden_By_Use_Clause (Elist4-Sem)
1325 -- An entity list present in use clauses that appear within
1326 -- instantiations. For the resolution of local entities, entities
1327 -- introduced by these use clauses have priority over global ones, and
1328 -- outer entities must be explicitly hidden/restored on exit.
1330 -- Implicit_With (Flag16-Sem)
1331 -- This flag is set in the N_With_Clause node that is implicitly
1332 -- generated for runtime units that are loaded by the expander, and also
1333 -- for package System, if it is loaded implicitly by a use of the
1334 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1335 -- as well.
1337 -- Implicit_With_From_Instantiation (Flag12-Sem)
1338 -- Set in N_With_Clause nodes from generic instantiations.
1340 -- Import_Interface_Present (Flag16-Sem)
1341 -- This flag is set in an Interface or Import pragma if a matching
1342 -- pragma of the other kind is also present. This is used to avoid
1343 -- generating some unwanted error messages.
1345 -- In_Assertion_Expression (Flag4-Sem)
1346 -- This flag is present in N_Function_Call nodes. It is set if the
1347 -- function is called from within an assertion expression. This is
1348 -- used to avoid some bogus warnings about early elaboration.
1350 -- Includes_Infinities (Flag11-Sem)
1351 -- This flag is present in N_Range nodes. It is set for the range of
1352 -- unconstrained float types defined in Standard, which include not only
1353 -- the given range of values, but also legitimately can include infinite
1354 -- values. This flag is false for any float type for which an explicit
1355 -- range is given by the programmer, even if that range is identical to
1356 -- the range for Float.
1358 -- Inherited_Discriminant (Flag13-Sem)
1359 -- This flag is present in N_Component_Association nodes. It indicates
1360 -- that a given component association in an extension aggregate is the
1361 -- value obtained from a constraint on an ancestor. Used to prevent
1362 -- double expansion when the aggregate has expansion delayed.
1364 -- Instance_Spec (Node5-Sem)
1365 -- This field is present in generic instantiation nodes, and also in
1366 -- formal package declaration nodes (formal package declarations are
1367 -- treated in a manner very similar to package instantiations). It points
1368 -- to the node for the spec of the instance, inserted as part of the
1369 -- semantic processing for instantiations in Sem_Ch12.
1371 -- Is_Accessibility_Actual (Flag13-Sem)
1372 -- Present in N_Parameter_Association nodes. True if the parameter is
1373 -- an extra actual that carries the accessibility level of the actual
1374 -- for an access parameter, in a function that dispatches on result and
1375 -- is called in a dispatching context. Used to prevent a formal/actual
1376 -- mismatch when the call is rewritten as a dispatching call.
1378 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1379 -- A flag set in a Block_Statement node to indicate that it is the
1380 -- expansion of an asynchronous entry call. Such a block needs cleanup
1381 -- handler to assure that the call is cancelled.
1383 -- Is_Boolean_Aspect (Flag16-Sem)
1384 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1385 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1387 -- Is_Checked (Flag11-Sem)
1388 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1389 -- assertion aspect or pragma, or check pragma for an assertion, that
1390 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1391 -- is set (they cannot both be set), then this means that the status of
1392 -- the pragma has been checked at the appropriate point and should not
1393 -- be further modified (in some cases these flags are copied when a
1394 -- pragma is rewritten).
1396 -- Is_Component_Left_Opnd (Flag13-Sem)
1397 -- Is_Component_Right_Opnd (Flag14-Sem)
1398 -- Present in concatenation nodes, to indicate that the corresponding
1399 -- operand is of the component type of the result. Used in resolving
1400 -- concatenation nodes in instances.
1402 -- Is_Delayed_Aspect (Flag14-Sem)
1403 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1404 -- come from aspect specifications, where the evaluation of the aspect
1405 -- must be delayed to the freeze point. This flag is also set True in
1406 -- the corresponding N_Aspect_Specification node.
1408 -- Is_Controlling_Actual (Flag16-Sem)
1409 -- This flag is set on in an expression that is a controlling argument in
1410 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1411 -- details of its use.
1413 -- Is_Disabled (Flag15-Sem)
1414 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1415 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1416 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1417 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1418 -- If this flag is set, the aspect or policy is not analyzed for semantic
1419 -- correctness, so any expressions etc will not be marked as analyzed.
1421 -- Is_Dynamic_Coextension (Flag18-Sem)
1422 -- Present in allocator nodes, to indicate that this is an allocator
1423 -- for an access discriminant of a dynamically allocated object. The
1424 -- coextension must be deallocated and finalized at the same time as
1425 -- the enclosing object.
1427 -- Is_Entry_Barrier_Function (Flag8-Sem)
1428 -- This flag is set in an N_Subprogram_Body node which is the expansion
1429 -- of an entry barrier from a protected entry body. It is used for the
1430 -- circuitry checking for incorrect use of Current_Task.
1432 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1433 -- This flag is set in an N_Function_Call node to indicate that the extra
1434 -- actuals to support a build-in-place style of call have been added to
1435 -- the call.
1437 -- Is_Finalization_Wrapper (Flag9-Sem);
1438 -- This flag is present in N_Block_Statement nodes. It is set when the
1439 -- block acts as a wrapper of a handled construct which has controlled
1440 -- objects. The wrapper prevents interference between exception handlers
1441 -- and At_End handlers.
1443 -- Is_Ignored (Flag9-Sem)
1444 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1445 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1446 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1447 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1448 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1449 -- gives a policy for the aspect or pragma, then there are two cases. For
1450 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1451 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1452 -- ignored because of the absence of a -gnata switch. For any other
1453 -- aspects or pragmas, the flag is off. If this flag is set, the
1454 -- aspect/pragma is fully analyzed and checked for other syntactic
1455 -- and semantic errors, but it does not have any semantic effect.
1457 -- Is_In_Discriminant_Check (Flag11-Sem)
1458 -- This flag is present in a selected component, and is used to indicate
1459 -- that the reference occurs within a discriminant check. The
1460 -- significance is that optimizations based on assuming that the
1461 -- discriminant check has a correct value cannot be performed in this
1462 -- case (or the discriminant check may be optimized away!)
1464 -- Is_Machine_Number (Flag11-Sem)
1465 -- This flag is set in an N_Real_Literal node to indicate that the value
1466 -- is a machine number. This avoids some unnecessary cases of converting
1467 -- real literals to machine numbers.
1469 -- Is_Null_Loop (Flag16-Sem)
1470 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1471 -- can be determined to be null at compile time. This is used to remove
1472 -- the loop entirely at expansion time.
1474 -- Is_Overloaded (Flag5-Sem)
1475 -- A flag present in all expression nodes. Used temporarily during
1476 -- overloading determination. The setting of this flag is not relevant
1477 -- once overloading analysis is complete.
1479 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1480 -- A flag present only in N_Op_Expon nodes. It is set when the
1481 -- exponentiation is of the form 2 ** N, where the type of N is an
1482 -- unsigned integral subtype whose size does not exceed the size of
1483 -- Standard_Integer (i.e. a type that can be safely converted to
1484 -- Natural), and the exponentiation appears as the right operand of an
1485 -- integer multiplication or an integer division where the dividend is
1486 -- unsigned. It is also required that overflow checking is off for both
1487 -- the exponentiation and the multiply/divide node. If this set of
1488 -- conditions holds, and the flag is set, then the division or
1489 -- multiplication can be (and is) converted to a shift.
1491 -- Is_Prefixed_Call (Flag17-Sem)
1492 -- This flag is set in a selected component within a generic unit, if
1493 -- it resolves to a prefixed call to a primitive operation. The flag
1494 -- is used to prevent accidental overloadings in an instance, when a
1495 -- primitive operation and a private record component may be homographs.
1497 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1498 -- A flag set in a Subprogram_Body block to indicate that it is the
1499 -- implementation of a protected subprogram. Such a body needs cleanup
1500 -- handler to make sure that the associated protected object is unlocked
1501 -- when the subprogram completes.
1503 -- Is_Static_Coextension (Flag14-Sem)
1504 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1505 -- of an object allocated on the stack rather than the heap.
1507 -- Is_Static_Expression (Flag6-Sem)
1508 -- Indicates that an expression is a static expression (RM 4.9). See spec
1509 -- of package Sem_Eval for full details on the use of this flag.
1511 -- Is_Subprogram_Descriptor (Flag16-Sem)
1512 -- Present in N_Object_Declaration, and set only for the object
1513 -- declaration generated for a subprogram descriptor in fast exception
1514 -- mode. See Exp_Ch11 for details of use.
1516 -- Is_Task_Allocation_Block (Flag6-Sem)
1517 -- A flag set in a Block_Statement node to indicate that it is the
1518 -- expansion of a task allocator, or the allocator of an object
1519 -- containing tasks. Such a block requires a cleanup handler to call
1520 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1521 -- allocated but not activated when the allocator completes abnormally.
1523 -- Is_Task_Master (Flag5-Sem)
1524 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1525 -- indicate that the construct is a task master (i.e. has declared tasks
1526 -- or declares an access to a task type).
1528 -- Itype (Node1-Sem)
1529 -- Used in N_Itype_Reference node to reference an itype for which it is
1530 -- important to ensure that it is defined. See description of this node
1531 -- for further details.
1533 -- Kill_Range_Check (Flag11-Sem)
1534 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1535 -- result should not be subjected to range checks. This is used for the
1536 -- implementation of Normalize_Scalars.
1538 -- Label_Construct (Node2-Sem)
1539 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1540 -- N_Block_Statement or N_Loop_Statement node to which the label
1541 -- declaration applies. This attribute is used both in the compiler and
1542 -- in the implementation of ASIS queries. The field is left empty for the
1543 -- special labels generated as part of expanding raise statements with a
1544 -- local exception handler.
1546 -- Library_Unit (Node4-Sem)
1547 -- In a stub node, Library_Unit points to the compilation unit node of
1548 -- the corresponding subunit.
1550 -- In a with clause node, Library_Unit points to the spec of the with'ed
1551 -- unit.
1553 -- In a compilation unit node, the usage depends on the unit type:
1555 -- For a library unit body, Library_Unit points to the compilation unit
1556 -- node of the corresponding spec, unless it's a subprogram body with
1557 -- Acts_As_Spec set, in which case it points to itself.
1559 -- For a spec, Library_Unit points to the compilation unit node of the
1560 -- corresponding body, if present. The body will be present if the spec
1561 -- is or contains generics that we needed to instantiate. Similarly, the
1562 -- body will be present if we needed it for inlining purposes. Thus, if
1563 -- we have a spec/body pair, both of which are present, they point to
1564 -- each other via Library_Unit.
1566 -- For a subunit, Library_Unit points to the compilation unit node of
1567 -- the parent body.
1569 -- Note that this field is not used to hold the parent pointer for child
1570 -- unit (which might in any case need to use it for some other purpose as
1571 -- described above). Instead for a child unit, implicit with's are
1572 -- generated for all parents.
1574 -- Local_Raise_Statements (Elist1)
1575 -- This field is present in exception handler nodes. It is set to
1576 -- No_Elist in the normal case. If there is at least one raise statement
1577 -- which can potentially be handled as a local raise, then this field
1578 -- points to a list of raise nodes, which are calls to a routine to raise
1579 -- an exception. These are raise nodes which can be optimized into gotos
1580 -- if the handler turns out to meet the conditions which permit this
1581 -- transformation. Note that this does NOT include instances of the
1582 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1583 -- handled by the back end (using the N_Push/N_Pop mechanism).
1585 -- Loop_Actions (List2-Sem)
1586 -- A list present in Component_Association nodes in array aggregates.
1587 -- Used to collect actions that must be executed within the loop because
1588 -- they may need to be evaluated anew each time through.
1590 -- Limited_View_Installed (Flag18-Sem)
1591 -- Present in With_Clauses and in package specifications. If set on
1592 -- with_clause, it indicates that this clause has created the current
1593 -- limited view of the designated package. On a package specification, it
1594 -- indicates that the limited view has already been created because the
1595 -- package is mentioned in a limited_with_clause in the closure of the
1596 -- unit being compiled.
1598 -- Local_Raise_Not_OK (Flag7-Sem)
1599 -- Present in N_Exception_Handler nodes. Set if the handler contains
1600 -- a construct (reraise statement, or call to subprogram in package
1601 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1602 -- for a local raise (one that could otherwise be converted to a goto).
1604 -- Must_Be_Byte_Aligned (Flag14-Sem)
1605 -- This flag is present in N_Attribute_Reference nodes. It can be set
1606 -- only for the Address and Unrestricted_Access attributes. If set it
1607 -- means that the object for which the address/access is given must be on
1608 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1609 -- of the object is to be made before taking the address (this copy is in
1610 -- the current scope on the stack frame). This is used for certain cases
1611 -- of code generated by the expander that passes parameters by address.
1613 -- The reason the copy is not made by the front end is that the back end
1614 -- has more information about type layout and may be able to (but is not
1615 -- guaranteed to) prevent making unnecessary copies.
1617 -- Must_Not_Freeze (Flag8-Sem)
1618 -- A flag present in all expression nodes. Normally expressions cause
1619 -- freezing as described in the RM. If this flag is set, then this is
1620 -- inhibited. This is used by the analyzer and expander to label nodes
1621 -- that are created by semantic analysis or expansion and which must not
1622 -- cause freezing even though they normally would. This flag is also
1623 -- present in an N_Subtype_Indication node, since we also use these in
1624 -- calls to Freeze_Expression.
1626 -- Next_Entity (Node2-Sem)
1627 -- Present in defining identifiers, defining character literals and
1628 -- defining operator symbols (i.e. in all entities). The entities of a
1629 -- scope are chained, and this field is used as the forward pointer for
1630 -- this list. See Einfo for further details.
1632 -- Next_Exit_Statement (Node3-Sem)
1633 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1634 -- chained (in reverse order of appearance) from the First_Exit_Statement
1635 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1636 -- the next entry on this chain (Empty = end of list).
1638 -- Next_Implicit_With (Node3-Sem)
1639 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1640 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1641 -- to prevent multiple with_clauses for the same unit in a given context.
1642 -- A postorder traversal of the tree whose nodes are units and whose
1643 -- links are with_clauses defines the order in which CodePeer must
1644 -- examine a compiled unit and its full context. This ordering ensures
1645 -- that any subprogram call is examined after the subprogram declaration
1646 -- has been seen.
1648 -- Next_Named_Actual (Node4-Sem)
1649 -- Present in parameter association nodes. Set during semantic analysis
1650 -- to point to the next named parameter, where parameters are ordered by
1651 -- declaration order (as opposed to the actual order in the call, which
1652 -- may be different due to named associations). Not that this field
1653 -- points to the explicit actual parameter itself, not to the
1654 -- N_Parameter_Association node (its parent).
1656 -- Next_Pragma (Node1-Sem)
1657 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1658 -- nodes. Currently used for two purposes:
1660 -- Create a list of linked Check_Policy pragmas. The head of this list
1661 -- is stored in Opt.Check_Policy_List (which has further details).
1663 -- Used by processing for Pre/Postcondition pragmas to store a list of
1664 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1665 -- details).
1667 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
1668 -- the apply to the same construct. These are visible/private mode for
1669 -- a package spec and declarative/statement mode for package body.
1671 -- Next_Rep_Item (Node5-Sem)
1672 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1673 -- clauses, record rep clauses, aspect specification nodes. Used to link
1674 -- representation items that apply to an entity. See full description of
1675 -- First_Rep_Item field in Einfo for further details.
1677 -- Next_Use_Clause (Node3-Sem)
1678 -- While use clauses are active during semantic processing, they are
1679 -- chained from the scope stack entry, using Next_Use_Clause as a link
1680 -- pointer, with Empty marking the end of the list. The head pointer is
1681 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1682 -- processing (i.e. when Gigi sees the tree, the contents of this field
1683 -- is undefined and should not be read).
1685 -- No_Ctrl_Actions (Flag7-Sem)
1686 -- Present in N_Assignment_Statement to indicate that no finalize nor
1687 -- adjust should take place on this assignment even though the rhs is
1688 -- controlled. This is used in init procs and aggregate expansions where
1689 -- the generated assignments are more initialisations than real
1690 -- assignments.
1692 -- No_Elaboration_Check (Flag14-Sem)
1693 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1694 -- that no elaboration check is needed on the call, because it appears in
1695 -- the context of a local Suppress pragma. This is used on calls within
1696 -- task bodies, where the actual elaboration checks are applied after
1697 -- analysis, when the local scope stack is not present.
1699 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1700 -- Present in N_With_Clause nodes. Set if the with clause is on the
1701 -- package or subprogram spec where the main unit is the corresponding
1702 -- body, and no entities of the with'ed unit are referenced by the spec
1703 -- (an entity may still be referenced in the body, so this flag is used
1704 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1705 -- full details)
1707 -- No_Initialization (Flag13-Sem)
1708 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1709 -- object must not be initialized (by Initialize or call to an init
1710 -- proc). This is needed for controlled aggregates. When the Object
1711 -- declaration has an expression, this flag means that this expression
1712 -- should not be taken into account (needed for in place initialization
1713 -- with aggregates, and for object with an address clause, which are
1714 -- initialized with an assignment at freeze time).
1716 -- No_Minimize_Eliminate (Flag17-Sem)
1717 -- This flag is present in membership operator nodes (N_In/N_Not_In).
1718 -- It is used to indicate that processing for extended overflow checking
1719 -- modes is not required (this is used to prevent infinite recursion).
1721 -- No_Truncation (Flag17-Sem)
1722 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1723 -- only if the RM_Size of the source is greater than the RM_Size of the
1724 -- target for scalar operands. Normally in such a case we truncate some
1725 -- higher order bits of the source, and then sign/zero extend the result
1726 -- to form the output value. But if this flag is set, then we do not do
1727 -- any truncation, so for example, if an 8 bit input is converted to 5
1728 -- bit result which is in fact stored in 8 bits, then the high order
1729 -- three bits of the target result will be copied from the source. This
1730 -- is used for properly setting out of range values for use by pragmas
1731 -- Initialize_Scalars and Normalize_Scalars.
1733 -- Original_Discriminant (Node2-Sem)
1734 -- Present in identifiers. Used in references to discriminants that
1735 -- appear in generic units. Because the names of the discriminants may be
1736 -- different in an instance, we use this field to recover the position of
1737 -- the discriminant in the original type, and replace it with the
1738 -- discriminant at the same position in the instantiated type.
1740 -- Original_Entity (Node2-Sem)
1741 -- Present in numeric literals. Used to denote the named number that has
1742 -- been constant-folded into the given literal. If literal is from
1743 -- source, or the result of some other constant-folding operation, then
1744 -- Original_Entity is empty. This field is needed to handle properly
1745 -- named numbers in generic units, where the Associated_Node field
1746 -- interferes with the Entity field, making it impossible to preserve the
1747 -- original entity at the point of instantiation (ASIS problem).
1749 -- Others_Discrete_Choices (List1-Sem)
1750 -- When a case statement or variant is analyzed, the semantic checks
1751 -- determine the actual list of choices that correspond to an others
1752 -- choice. This list is materialized for later use by the expander and
1753 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1754 -- this materialized list of choices, which is in standard format for a
1755 -- list of discrete choices, except that of course it cannot contain an
1756 -- N_Others_Choice entry.
1758 -- Parameter_List_Truncated (Flag17-Sem)
1759 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1760 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1761 -- a result of a First_Optional_Parameter specification in an
1762 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1763 -- The truncation is done by the expander by removing trailing parameters
1764 -- from the argument list, in accordance with the set of rules allowing
1765 -- such parameter removal. In particular, parameters can be removed
1766 -- working from the end of the parameter list backwards up to and
1767 -- including the entry designated by First_Optional_Parameter in the
1768 -- Import pragma. Parameters can be removed if they are implicit and the
1769 -- default value is a known-at-compile-time value, including the use of
1770 -- the Null_Parameter attribute, or if explicit parameter values are
1771 -- present that match the corresponding defaults.
1773 -- Parent_Spec (Node4-Sem)
1774 -- For a library unit that is a child unit spec (package or subprogram
1775 -- declaration, generic declaration or instantiation, or library level
1776 -- rename, this field points to the compilation unit node for the parent
1777 -- package specification. This field is Empty for library bodies (the
1778 -- parent spec in this case can be found from the corresponding spec).
1780 -- Premature_Use (Node5-Sem)
1781 -- Present in N_Incomplete_Type_Declaration node. Used for improved
1782 -- error diagnostics: if there is a premature usage of an incomplete
1783 -- type, a subsequently generated error message indicates the position
1784 -- of its full declaration.
1786 -- Present_Expr (Uint3-Sem)
1787 -- Present in an N_Variant node. This has a meaningful value only after
1788 -- Gigi has back annotated the tree with representation information. At
1789 -- this point, it contains a reference to a gcc expression that depends
1790 -- on the values of one or more discriminants. Give a set of discriminant
1791 -- values, this expression evaluates to False (zero) if variant is not
1792 -- present, and True (non-zero) if it is present. See unit Repinfo for
1793 -- further details on gigi back annotation. This field is used during
1794 -- ASIS processing (data decomposition annex) to determine if a field is
1795 -- present or not.
1797 -- Print_In_Hex (Flag13-Sem)
1798 -- Set on an N_Integer_Literal node to indicate that the value should be
1799 -- printed in hexadecimal in the sprint listing. Has no effect on
1800 -- legality or semantics of program, only on the displayed output. This
1801 -- is used to clarify output from the packed array cases.
1803 -- Procedure_To_Call (Node2-Sem)
1804 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1805 -- and N_Extended_Return_Statement nodes. References the entity for the
1806 -- declaration of the procedure to be called to accomplish the required
1807 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1808 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1809 -- allocating the return value), and for the Deallocate procedure in the
1810 -- case of N_Free_Statement.
1812 -- Raises_Constraint_Error (Flag7-Sem)
1813 -- Set on an expression whose evaluation will definitely fail constraint
1814 -- error check. In the case of static expressions, this flag must be set
1815 -- accurately (and if it is set, the expression is typically illegal
1816 -- unless it appears as a non-elaborated branch of a short-circuit form).
1817 -- For a non-static expression, this flag may be set whenever an
1818 -- expression (e.g. an aggregate) is known to raise constraint error. If
1819 -- set, the expression definitely will raise CE if elaborated at runtime.
1820 -- If not set, the expression may or may not raise CE. In other words, on
1821 -- static expressions, the flag is set accurately, on non-static
1822 -- expressions it is set conservatively.
1824 -- Redundant_Use (Flag13-Sem)
1825 -- Present in nodes that can appear as an operand in a use clause or use
1826 -- type clause (identifiers, expanded names, attribute references). Set
1827 -- to indicate that a use is redundant (and therefore need not be undone
1828 -- on scope exit).
1830 -- Renaming_Exception (Node2-Sem)
1831 -- Present in N_Exception_Declaration node. Used to point back to the
1832 -- exception renaming for an exception declared within a subprogram.
1833 -- What happens is that an exception declared in a subprogram is moved
1834 -- to the library level with a unique name, and the original exception
1835 -- becomes a renaming. This link from the library level exception to the
1836 -- renaming declaration allows registering of the proper exception name.
1838 -- Return_Statement_Entity (Node5-Sem)
1839 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1840 -- Points to an E_Return_Statement representing the return statement.
1842 -- Return_Object_Declarations (List3)
1843 -- Present in N_Extended_Return_Statement. Points to a list initially
1844 -- containing a single N_Object_Declaration representing the return
1845 -- object. We use a list (instead of just a pointer to the object decl)
1846 -- because Analyze wants to insert extra actions on this list.
1848 -- Rounded_Result (Flag18-Sem)
1849 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1850 -- Used in the fixed-point cases to indicate that the result must be
1851 -- rounded as a result of the use of the 'Round attribute. Also used for
1852 -- integer N_Op_Divide nodes to indicate that the result should be
1853 -- rounded to the nearest integer (breaking ties away from zero), rather
1854 -- than truncated towards zero as usual. These rounded integer operations
1855 -- are the result of expansion of rounded fixed-point divide, conversion
1856 -- and multiplication operations.
1858 -- SCIL_Entity (Node4-Sem)
1859 -- Present in SCIL nodes. Used to reference the tagged type associated
1860 -- with the SCIL node.
1862 -- SCIL_Controlling_Tag (Node5-Sem)
1863 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the
1864 -- controlling tag of a dispatching call.
1866 -- SCIL_Tag_Value (Node5-Sem)
1867 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1868 -- value that is being tested.
1870 -- SCIL_Target_Prim (Node2-Sem)
1871 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the tagged
1872 -- type primitive associated with the SCIL node.
1874 -- Scope (Node3-Sem)
1875 -- Present in defining identifiers, defining character literals and
1876 -- defining operator symbols (i.e. in all entities). The entities of a
1877 -- scope all use this field to reference the corresponding scope entity.
1878 -- See Einfo for further details.
1880 -- Shift_Count_OK (Flag4-Sem)
1881 -- A flag present in shift nodes to indicate that the shift count is
1882 -- known to be in range, i.e. is in the range from zero to word length
1883 -- minus one. If this flag is not set, then the shift count may be
1884 -- outside this range, i.e. larger than the word length, and the code
1885 -- must ensure that such shift counts give the appropriate result.
1887 -- Source_Type (Node1-Sem)
1888 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1889 -- source type entity for the unchecked conversion instantiation
1890 -- which gigi must do size validation for.
1892 -- Split_PPC (Flag17)
1893 -- When a Pre or Post aspect specification is processed, it is broken
1894 -- into AND THEN sections. The left most section has Split_PPC set to
1895 -- False, indicating that it is the original specification (e.g. for
1896 -- posting errors). For other sections, Split_PPC is set to True.
1897 -- This flag is set in both the N_Aspect_Specification node itself,
1898 -- and in the pragma which is generated from this node.
1900 -- Storage_Pool (Node1-Sem)
1901 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1902 -- and N_Extended_Return_Statement nodes. References the entity for the
1903 -- storage pool to be used for the allocate or free call or for the
1904 -- allocation of the returned value from function. Empty indicates that
1905 -- the global default pool is to be used. Note that in the case
1906 -- of a return statement, this field is set only if the function returns
1907 -- value of a type whose size is not known at compile time on the
1908 -- secondary stack.
1910 -- Suppress_Assignment_Checks (Flag18-Sem)
1911 -- Used in generated N_Assignment_Statement nodes to suppress predicate
1912 -- and range checks in cases where the generated code knows that the
1913 -- value being assigned is in range and satisfies any predicate. Also
1914 -- can be set in N_Object_Declaration nodes, to similarly suppress any
1915 -- checks on the initializing value.
1917 -- Suppress_Loop_Warnings (Flag17-Sem)
1918 -- Used in N_Loop_Statement node to indicate that warnings within the
1919 -- body of the loop should be suppressed. This is set when the range
1920 -- of a FOR loop is known to be null, or is probably null (loop would
1921 -- only execute if invalid values are present).
1923 -- Target_Type (Node2-Sem)
1924 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1925 -- type entity for the unchecked conversion instantiation which gigi must
1926 -- do size validation for.
1928 -- Then_Actions (List3-Sem)
1929 -- This field is present in if expression nodes. During code expansion
1930 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
1931 -- at an appropriate place in the tree to get elaborated at the right
1932 -- time. For if expressions, we have to be sure that the actions for
1933 -- for the Then branch are only elaborated if the condition is True.
1934 -- The Then_Actions field is used as a temporary parking place for
1935 -- these actions. The final tree is always rewritten to eliminate the
1936 -- need for this field, so in the tree passed to Gigi, this field is
1937 -- always set to No_List.
1939 -- Treat_Fixed_As_Integer (Flag14-Sem)
1940 -- This flag appears in operator nodes for divide, multiply, mod and rem
1941 -- on fixed-point operands. It indicates that the operands are to be
1942 -- treated as integer values, ignoring small values. This flag is only
1943 -- set as a result of expansion of fixed-point operations. Typically a
1944 -- fixed-point multiplication in the source generates subsidiary
1945 -- multiplication and division operations that work with the underlying
1946 -- integer values and have this flag set. Note that this flag is not
1947 -- needed on other arithmetic operations (add, neg, subtract etc.) since
1948 -- in these cases it is always the case that fixed is treated as integer.
1949 -- The Etype field MUST be set if this flag is set. The analyzer knows to
1950 -- leave such nodes alone, and whoever makes them must set the correct
1951 -- Etype value.
1953 -- TSS_Elist (Elist3-Sem)
1954 -- Present in N_Freeze_Entity nodes. Holds an element list containing
1955 -- entries for each TSS (type support subprogram) associated with the
1956 -- frozen type. The elements of the list are the entities for the
1957 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
1958 -- if there are no type support subprograms for the type or if the freeze
1959 -- node is not for a type.
1961 -- Unreferenced_In_Spec (Flag7-Sem)
1962 -- Present in N_With_Clause nodes. Set if the with clause is on the
1963 -- package or subprogram spec where the main unit is the corresponding
1964 -- body, and is not referenced by the spec (it may still be referenced by
1965 -- the body, so this flag is used to generate the proper message (see
1966 -- Sem_Util.Check_Unused_Withs for details)
1968 -- Used_Operations (Elist5-Sem)
1969 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
1970 -- are made potentially use-visible by the clause. Simplifies processing
1971 -- on exit from the scope of the use_type_clause, in particular in the
1972 -- case of Use_All_Type, when those operations several scopes.
1974 -- Was_Originally_Stub (Flag13-Sem)
1975 -- This flag is set in the node for a proper body that replaces stub.
1976 -- During the analysis procedure, stubs in some situations get rewritten
1977 -- by the corresponding bodies, and we set this flag to remember that
1978 -- this happened. Note that it is not good enough to rely on the use of
1979 -- Original_Node here because of the case of nested instantiations where
1980 -- the substituted node can be copied.
1982 -- Withed_Body (Node1-Sem)
1983 -- Present in N_With_Clause nodes. Set if the unit in whose context
1984 -- the with_clause appears instantiates a generic contained in the
1985 -- library unit of the with_clause and as a result loads its body.
1986 -- Used for a more precise unit traversal for CodePeer.
1988 --------------------------------------------------
1989 -- Note on Use of End_Label and End_Span Fields --
1990 --------------------------------------------------
1992 -- Several constructs have end lines:
1994 -- Loop Statement end loop [loop_IDENTIFIER];
1995 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
1996 -- Task Definition end [task_IDENTIFIER]
1997 -- Protected Definition end [protected_IDENTIFIER]
1998 -- Protected Body end [protected_IDENTIFIER]
2000 -- Block Statement end [block_IDENTIFIER];
2001 -- Subprogram Body end [DESIGNATOR];
2002 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2003 -- Task Body end [task_IDENTIFIER];
2004 -- Accept Statement end [entry_IDENTIFIER]];
2005 -- Entry Body end [entry_IDENTIFIER];
2007 -- If Statement end if;
2008 -- Case Statement end case;
2010 -- Record Definition end record;
2011 -- Enumeration Definition );
2013 -- The End_Label and End_Span fields are used to mark the locations of
2014 -- these lines, and also keep track of the label in the case where a label
2015 -- is present.
2017 -- For the first group above, the End_Label field of the corresponding node
2018 -- is used to point to the label identifier. In the case where there is no
2019 -- label in the source, the parser supplies a dummy identifier (with
2020 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2021 -- marks the location of the token following the END token.
2023 -- For the second group, the use of End_Label is similar, but the End_Label
2024 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2025 -- simply because in some cases there is no room in the parent node.
2027 -- For the third group, there is never any label, and instead of using
2028 -- End_Label, we use the End_Span field which gives the location of the
2029 -- token following END, relative to the starting Sloc of the construct,
2030 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2031 -- following the End_Label.
2033 -- The record definition case is handled specially, we treat it as though
2034 -- it required an optional label which is never present, and so the parser
2035 -- always builds a dummy identifier with Comes From Source set False. The
2036 -- reason we do this, rather than using End_Span in this case, is that we
2037 -- want to generate a cross-ref entry for the end of a record, since it
2038 -- represents a scope for name declaration purposes.
2040 -- The enumeration definition case is handled in an exactly similar manner,
2041 -- building a dummy identifier to get a cross-reference.
2043 -- Note: the reason we store the difference as a Uint, instead of storing
2044 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2045 -- distinguished from other types of values, and we count on all general
2046 -- use fields being self describing. To make things easier for clients,
2047 -- note that we provide function End_Location, and procedure
2048 -- Set_End_Location to allow access to the logical value (which is the
2049 -- Source_Ptr value for the end token).
2051 ---------------------
2052 -- Syntactic Nodes --
2053 ---------------------
2055 ---------------------
2056 -- 2.3 Identifier --
2057 ---------------------
2059 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2060 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2062 -- An IDENTIFIER shall not be a reserved word
2064 -- In the Ada grammar identifiers are the bottom level tokens which have
2065 -- very few semantics. Actual program identifiers are direct names. If
2066 -- we were being 100% honest with the grammar, then we would have a node
2067 -- called N_Direct_Name which would point to an identifier. However,
2068 -- that's too many extra nodes, so we just use the N_Identifier node
2069 -- directly as a direct name, and it contains the expression fields and
2070 -- Entity field that correspond to its use as a direct name. In those
2071 -- few cases where identifiers appear in contexts where they are not
2072 -- direct names (pragmas, pragma argument associations, attribute
2073 -- references and attribute definition clauses), the Chars field of the
2074 -- node contains the Name_Id for the identifier name.
2076 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2077 -- cases. First, an incorrect use of a reserved word as an identifier is
2078 -- diagnosed and then treated as a normal identifier. Second, an
2079 -- attribute designator of the form of a reserved word (access, delta,
2080 -- digits, range) is treated as an identifier.
2082 -- Note: The set of letters that is permitted in an identifier depends
2083 -- on the character set in use. See package Csets for full details.
2085 -- N_Identifier
2086 -- Sloc points to identifier
2087 -- Chars (Name1) contains the Name_Id for the identifier
2088 -- Entity (Node4-Sem)
2089 -- Associated_Node (Node4-Sem)
2090 -- Original_Discriminant (Node2-Sem)
2091 -- Redundant_Use (Flag13-Sem)
2092 -- Atomic_Sync_Required (Flag14-Sem)
2093 -- Has_Private_View (Flag11-Sem) (set in generic units)
2094 -- plus fields for expression
2096 --------------------------
2097 -- 2.4 Numeric Literal --
2098 --------------------------
2100 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2102 ----------------------------
2103 -- 2.4.1 Decimal Literal --
2104 ----------------------------
2106 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2108 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2110 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2112 -- Decimal literals appear in the tree as either integer literal nodes
2113 -- or real literal nodes, depending on whether a period is present.
2115 -- Note: literal nodes appear as a result of direct use of literals
2116 -- in the source program, and also as the result of evaluating
2117 -- expressions at compile time. In the latter case, it is possible
2118 -- to construct real literals that have no syntactic representation
2119 -- using the standard literal format. Such literals are listed by
2120 -- Sprint using the notation [numerator / denominator].
2122 -- Note: the value of an integer literal node created by the front end
2123 -- is never outside the range of values of the base type. However, it
2124 -- can be the case that the created value is outside the range of the
2125 -- particular subtype. This happens in the case of integer overflows
2126 -- with checks suppressed.
2128 -- N_Integer_Literal
2129 -- Sloc points to literal
2130 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2131 -- has been constant-folded into its literal value.
2132 -- Intval (Uint3) contains integer value of literal
2133 -- plus fields for expression
2134 -- Print_In_Hex (Flag13-Sem)
2136 -- N_Real_Literal
2137 -- Sloc points to literal
2138 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2139 -- has been constant-folded into its literal value.
2140 -- Realval (Ureal3) contains real value of literal
2141 -- Corresponding_Integer_Value (Uint4-Sem)
2142 -- Is_Machine_Number (Flag11-Sem)
2143 -- plus fields for expression
2145 --------------------------
2146 -- 2.4.2 Based Literal --
2147 --------------------------
2149 -- BASED_LITERAL ::=
2150 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2152 -- BASE ::= NUMERAL
2154 -- BASED_NUMERAL ::=
2155 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2157 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2159 -- Based literals appear in the tree as either integer literal nodes
2160 -- or real literal nodes, depending on whether a period is present.
2162 ----------------------------
2163 -- 2.5 Character Literal --
2164 ----------------------------
2166 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2168 -- N_Character_Literal
2169 -- Sloc points to literal
2170 -- Chars (Name1) contains the Name_Id for the identifier
2171 -- Char_Literal_Value (Uint2) contains the literal value
2172 -- Entity (Node4-Sem)
2173 -- Associated_Node (Node4-Sem)
2174 -- Has_Private_View (Flag11-Sem) set in generic units.
2175 -- plus fields for expression
2177 -- Note: the Entity field will be missing (set to Empty) for character
2178 -- literals whose type is Standard.Wide_Character or Standard.Character
2179 -- or a type derived from one of these two. In this case the character
2180 -- literal stands for its own coding. The reason we take this irregular
2181 -- short cut is to avoid the need to build lots of junk defining
2182 -- character literal nodes.
2184 -------------------------
2185 -- 2.6 String Literal --
2186 -------------------------
2188 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2190 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2191 -- single GRAPHIC_CHARACTER other than a quotation mark.
2193 -- Is_Folded_In_Parser is True if the parser created this literal by
2194 -- folding a sequence of "&" operators. For example, if the source code
2195 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2196 -- is set. This flag is needed because the parser doesn't know about
2197 -- visibility, so the folded result might be wrong, and semantic
2198 -- analysis needs to check for that.
2200 -- N_String_Literal
2201 -- Sloc points to literal
2202 -- Strval (Str3) contains Id of string value
2203 -- Has_Wide_Character (Flag11-Sem)
2204 -- Has_Wide_Wide_Character (Flag13-Sem)
2205 -- Is_Folded_In_Parser (Flag4)
2206 -- plus fields for expression
2208 ------------------
2209 -- 2.7 Comment --
2210 ------------------
2212 -- A COMMENT starts with two adjacent hyphens and extends up to the
2213 -- end of the line. A COMMENT may appear on any line of a program.
2215 -- Comments are skipped by the scanner and do not appear in the tree.
2216 -- It is possible to reconstruct the position of comments with respect
2217 -- to the elements of the tree by using the source position (Sloc)
2218 -- pointers that appear in every tree node.
2220 -----------------
2221 -- 2.8 Pragma --
2222 -----------------
2224 -- PRAGMA ::= pragma IDENTIFIER
2225 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2227 -- Note that a pragma may appear in the tree anywhere a declaration
2228 -- or a statement may appear, as well as in some other situations
2229 -- which are explicitly documented.
2231 -- N_Pragma
2232 -- Sloc points to PRAGMA
2233 -- Next_Pragma (Node1-Sem)
2234 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2235 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2236 -- Pragma_Identifier (Node4)
2237 -- Next_Rep_Item (Node5-Sem)
2238 -- Class_Present (Flag6) set if from Aspect with 'Class
2239 -- From_Aspect_Specification (Flag13-Sem)
2240 -- Is_Delayed_Aspect (Flag14-Sem)
2241 -- Is_Disabled (Flag15-Sem)
2242 -- Is_Ignored (Flag9-Sem)
2243 -- Is_Checked (Flag11-Sem)
2244 -- Import_Interface_Present (Flag16-Sem)
2245 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2247 -- Note: we should have a section on what pragmas are passed on to
2248 -- the back end to be processed. This section should note that pragma
2249 -- Psect_Object is always converted to Common_Object, but there are
2250 -- undoubtedly many other similar notes required ???
2252 -- Note: a utility function Pragma_Name may be applied to pragma nodes
2253 -- to conveniently obtain the Chars field of the Pragma_Identifier.
2255 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2256 -- aspect name, as does the Pragma_Identifier. In this case if the
2257 -- pragma has a local name argument (such as pragma Inline), it is
2258 -- resolved to point to the specific entity affected by the pragma.
2260 --------------------------------------
2261 -- 2.8 Pragma Argument Association --
2262 --------------------------------------
2264 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2265 -- [pragma_argument_IDENTIFIER =>] NAME
2266 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2268 -- In Ada 2012, there are two more possibilities:
2270 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2271 -- [pragma_argument_ASPECT_MARK =>] NAME
2272 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2274 -- where the interesting allowed cases (which do not fit the syntax of
2275 -- the first alternative above) are
2277 -- ASPECT_MARK => Pre'Class |
2278 -- Post'Class |
2279 -- Type_Invariant'Class |
2280 -- Invariant'Class
2282 -- We allow this special usage in all Ada modes, but it would be a
2283 -- pain to allow these aspects to pervade the pragma syntax, and the
2284 -- representation of pragma nodes internally. So what we do is to
2285 -- replace these ASPECT_MARK forms with identifiers whose name is one
2286 -- of the special internal names _Pre, _Post or _Type_Invariant.
2288 -- We do a similar replacement of these Aspect_Mark forms in the
2289 -- Expression of a pragma argument association for the cases of
2290 -- the first arguments of any Check pragmas and Check_Policy pragmas
2292 -- N_Pragma_Argument_Association
2293 -- Sloc points to first token in association
2294 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2295 -- Expression (Node3)
2297 ------------------------
2298 -- 2.9 Reserved Word --
2299 ------------------------
2301 -- Reserved words are parsed by the scanner, and returned as the
2302 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2304 ----------------------------
2305 -- 3.1 Basic Declaration --
2306 ----------------------------
2308 -- BASIC_DECLARATION ::=
2309 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2310 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2311 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2312 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2313 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2314 -- | GENERIC_INSTANTIATION
2316 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2317 -- see further description in section on semantic nodes.
2319 -- Also, in the tree that is constructed, a pragma may appear
2320 -- anywhere that a declaration may appear.
2322 ------------------------------
2323 -- 3.1 Defining Identifier --
2324 ------------------------------
2326 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2328 -- A defining identifier is an entity, which has additional fields
2329 -- depending on the setting of the Ekind field. These additional
2330 -- fields are defined (and access subprograms declared) in package
2331 -- Einfo.
2333 -- Note: N_Defining_Identifier is an extended node whose fields are
2334 -- deliberate layed out to match the layout of fields in an ordinary
2335 -- N_Identifier node allowing for easy alteration of an identifier
2336 -- node into a defining identifier node. For details, see procedure
2337 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2339 -- N_Defining_Identifier
2340 -- Sloc points to identifier
2341 -- Chars (Name1) contains the Name_Id for the identifier
2342 -- Next_Entity (Node2-Sem)
2343 -- Scope (Node3-Sem)
2344 -- Etype (Node5-Sem)
2346 -----------------------------
2347 -- 3.2.1 Type Declaration --
2348 -----------------------------
2350 -- TYPE_DECLARATION ::=
2351 -- FULL_TYPE_DECLARATION
2352 -- | INCOMPLETE_TYPE_DECLARATION
2353 -- | PRIVATE_TYPE_DECLARATION
2354 -- | PRIVATE_EXTENSION_DECLARATION
2356 ----------------------------------
2357 -- 3.2.1 Full Type Declaration --
2358 ----------------------------------
2360 -- FULL_TYPE_DECLARATION ::=
2361 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2362 -- is TYPE_DEFINITION
2363 -- [ASPECT_SPECIFICATIONS];
2364 -- | TASK_TYPE_DECLARATION
2365 -- | PROTECTED_TYPE_DECLARATION
2367 -- The full type declaration node is used only for the first case. The
2368 -- second case (concurrent type declaration), is represented directly
2369 -- by a task type declaration or a protected type declaration.
2371 -- N_Full_Type_Declaration
2372 -- Sloc points to TYPE
2373 -- Defining_Identifier (Node1)
2374 -- Discriminant_Specifications (List4) (set to No_List if none)
2375 -- Type_Definition (Node3)
2376 -- Discr_Check_Funcs_Built (Flag11-Sem)
2378 ----------------------------
2379 -- 3.2.1 Type Definition --
2380 ----------------------------
2382 -- TYPE_DEFINITION ::=
2383 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2384 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2385 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2386 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2388 --------------------------------
2389 -- 3.2.2 Subtype Declaration --
2390 --------------------------------
2392 -- SUBTYPE_DECLARATION ::=
2393 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2394 -- [ASPECT_SPECIFICATIONS];
2396 -- The subtype indication field is set to Empty for subtypes
2397 -- declared in package Standard (Positive, Natural).
2399 -- N_Subtype_Declaration
2400 -- Sloc points to SUBTYPE
2401 -- Defining_Identifier (Node1)
2402 -- Null_Exclusion_Present (Flag11)
2403 -- Subtype_Indication (Node5)
2404 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2405 -- Exception_Junk (Flag8-Sem)
2406 -- Has_Dynamic_Range_Check (Flag12-Sem)
2408 -------------------------------
2409 -- 3.2.2 Subtype Indication --
2410 -------------------------------
2412 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2414 -- Note: if no constraint is present, the subtype indication appears
2415 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2416 -- node is used only if a constraint is present.
2418 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2419 -- with the null-exclusion part (see AI-231), we had to introduce a new
2420 -- attribute in all the parents of subtype_indication nodes to indicate
2421 -- if the null-exclusion is present.
2423 -- Note: the reason that this node has expression fields is that a
2424 -- subtype indication can appear as an operand of a membership test.
2426 -- N_Subtype_Indication
2427 -- Sloc points to first token of subtype mark
2428 -- Subtype_Mark (Node4)
2429 -- Constraint (Node3)
2430 -- Etype (Node5-Sem)
2431 -- Must_Not_Freeze (Flag8-Sem)
2433 -- Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2434 -- reason for this redundancy is so that in a list of array index types,
2435 -- the Etype can be uniformly accessed to determine the subscript type.
2436 -- This means that no Itype is constructed for the actual subtype that
2437 -- is created by the subtype indication. If such an Itype is required,
2438 -- it is constructed in the context in which the indication appears.
2440 -------------------------
2441 -- 3.2.2 Subtype Mark --
2442 -------------------------
2444 -- SUBTYPE_MARK ::= subtype_NAME
2446 -----------------------
2447 -- 3.2.2 Constraint --
2448 -----------------------
2450 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2452 ------------------------------
2453 -- 3.2.2 Scalar Constraint --
2454 ------------------------------
2456 -- SCALAR_CONSTRAINT ::=
2457 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2459 ---------------------------------
2460 -- 3.2.2 Composite Constraint --
2461 ---------------------------------
2463 -- COMPOSITE_CONSTRAINT ::=
2464 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2466 -------------------------------
2467 -- 3.3.1 Object Declaration --
2468 -------------------------------
2470 -- OBJECT_DECLARATION ::=
2471 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2472 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2473 -- [ASPECT_SPECIFICATIONS];
2474 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2475 -- ACCESS_DEFINITION [:= EXPRESSION]
2476 -- [ASPECT_SPECIFICATIONS];
2477 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2478 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2479 -- [ASPECT_SPECIFICATIONS];
2480 -- | SINGLE_TASK_DECLARATION
2481 -- | SINGLE_PROTECTED_DECLARATION
2483 -- Note: aliased is not permitted in Ada 83 mode
2485 -- The N_Object_Declaration node is only for the first two cases.
2486 -- Single task declaration is handled by P_Task (9.1)
2487 -- Single protected declaration is handled by P_protected (9.5)
2489 -- Although the syntax allows multiple identifiers in the list, the
2490 -- semantics is as though successive declarations were given with
2491 -- identical type definition and expression components. To simplify
2492 -- semantic processing, the parser represents a multiple declaration
2493 -- case as a sequence of single declarations, using the More_Ids and
2494 -- Prev_Ids flags to preserve the original source form as described
2495 -- in the section on "Handling of Defining Identifier Lists".
2497 -- The flag Has_Init_Expression is set if an initializing expression
2498 -- is present. Normally it is set if and only if Expression contains
2499 -- a non-empty value, but there is an exception to this. When the
2500 -- initializing expression is an aggregate which requires explicit
2501 -- assignments, the Expression field gets set to Empty, but this flag
2502 -- is still set, so we don't forget we had an initializing expression.
2504 -- Note: if a range check is required for the initialization
2505 -- expression then the Do_Range_Check flag is set in the Expression,
2506 -- with the check being done against the type given by the object
2507 -- definition, which is also the Etype of the defining identifier.
2509 -- Note: the contents of the Expression field must be ignored (i.e.
2510 -- treated as though it were Empty) if No_Initialization is set True.
2512 -- Note: the back end places some restrictions on the form of the
2513 -- Expression field. If the object being declared is Atomic, then
2514 -- the Expression may not have the form of an aggregate (since this
2515 -- might cause the back end to generate separate assignments). In this
2516 -- case the front end must generate an extra temporary and initialize
2517 -- this temporary as required (the temporary itself is not atomic).
2519 -- Note: there is not node kind for object definition. Instead, the
2520 -- corresponding field holds a subtype indication, an array type
2521 -- definition, or (Ada 2005, AI-406) an access definition.
2523 -- N_Object_Declaration
2524 -- Sloc points to first identifier
2525 -- Defining_Identifier (Node1)
2526 -- Aliased_Present (Flag4)
2527 -- Constant_Present (Flag17) set if CONSTANT appears
2528 -- Null_Exclusion_Present (Flag11)
2529 -- Object_Definition (Node4) subtype indic./array type def./access def.
2530 -- Expression (Node3) (set to Empty if not present)
2531 -- Handler_List_Entry (Node2-Sem)
2532 -- Corresponding_Generic_Association (Node5-Sem)
2533 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2534 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2535 -- No_Initialization (Flag13-Sem)
2536 -- Assignment_OK (Flag15-Sem)
2537 -- Exception_Junk (Flag8-Sem)
2538 -- Is_Subprogram_Descriptor (Flag16-Sem)
2539 -- Has_Init_Expression (Flag14)
2540 -- Suppress_Assignment_Checks (Flag18-Sem)
2542 -------------------------------------
2543 -- 3.3.1 Defining Identifier List --
2544 -------------------------------------
2546 -- DEFINING_IDENTIFIER_LIST ::=
2547 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2549 -------------------------------
2550 -- 3.3.2 Number Declaration --
2551 -------------------------------
2553 -- NUMBER_DECLARATION ::=
2554 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2556 -- Although the syntax allows multiple identifiers in the list, the
2557 -- semantics is as though successive declarations were given with
2558 -- identical expressions. To simplify semantic processing, the parser
2559 -- represents a multiple declaration case as a sequence of single
2560 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2561 -- the original source form as described in the section on "Handling
2562 -- of Defining Identifier Lists".
2564 -- N_Number_Declaration
2565 -- Sloc points to first identifier
2566 -- Defining_Identifier (Node1)
2567 -- Expression (Node3)
2568 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2569 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2571 ----------------------------------
2572 -- 3.4 Derived Type Definition --
2573 ----------------------------------
2575 -- DERIVED_TYPE_DEFINITION ::=
2576 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2577 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2579 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2580 -- in Ada 83 mode
2582 -- Note: a record extension part is required if ABSTRACT is present
2584 -- N_Derived_Type_Definition
2585 -- Sloc points to NEW
2586 -- Abstract_Present (Flag4)
2587 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2588 -- Subtype_Indication (Node5)
2589 -- Record_Extension_Part (Node3) (set to Empty if not present)
2590 -- Limited_Present (Flag17)
2591 -- Task_Present (Flag5) set in task interfaces
2592 -- Protected_Present (Flag6) set in protected interfaces
2593 -- Synchronized_Present (Flag7) set in interfaces
2594 -- Interface_List (List2) (set to No_List if none)
2595 -- Interface_Present (Flag16) set in abstract interfaces
2597 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2598 -- Interface_List, and Interface_Present are used for abstract
2599 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2601 ---------------------------
2602 -- 3.5 Range Constraint --
2603 ---------------------------
2605 -- RANGE_CONSTRAINT ::= range RANGE
2607 -- N_Range_Constraint
2608 -- Sloc points to RANGE
2609 -- Range_Expression (Node4)
2611 ----------------
2612 -- 3.5 Range --
2613 ----------------
2615 -- RANGE ::=
2616 -- RANGE_ATTRIBUTE_REFERENCE
2617 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2619 -- Note: the case of a range given as a range attribute reference
2620 -- appears directly in the tree as an attribute reference.
2622 -- Note: the field name for a reference to a range is Range_Expression
2623 -- rather than Range, because range is a reserved keyword in Ada!
2625 -- Note: the reason that this node has expression fields is that a
2626 -- range can appear as an operand of a membership test. The Etype
2627 -- field is the type of the range (we do NOT construct an implicit
2628 -- subtype to represent the range exactly).
2630 -- N_Range
2631 -- Sloc points to ..
2632 -- Low_Bound (Node1)
2633 -- High_Bound (Node2)
2634 -- Includes_Infinities (Flag11)
2635 -- plus fields for expression
2637 -- Note: if the range appears in a context, such as a subtype
2638 -- declaration, where range checks are required on one or both of
2639 -- the expression fields, then type conversion nodes are inserted
2640 -- to represent the required checks.
2642 ----------------------------------------
2643 -- 3.5.1 Enumeration Type Definition --
2644 ----------------------------------------
2646 -- ENUMERATION_TYPE_DEFINITION ::=
2647 -- (ENUMERATION_LITERAL_SPECIFICATION
2648 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2650 -- Note: the Literals field in the node described below is null for
2651 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2652 -- which special processing handles these types as special cases.
2654 -- N_Enumeration_Type_Definition
2655 -- Sloc points to left parenthesis
2656 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2657 -- End_Label (Node4) (set to Empty if internally generated record)
2659 ----------------------------------------------
2660 -- 3.5.1 Enumeration Literal Specification --
2661 ----------------------------------------------
2663 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2664 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2666 ---------------------------------------
2667 -- 3.5.1 Defining Character Literal --
2668 ---------------------------------------
2670 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2672 -- A defining character literal is an entity, which has additional
2673 -- fields depending on the setting of the Ekind field. These
2674 -- additional fields are defined (and access subprograms declared)
2675 -- in package Einfo.
2677 -- Note: N_Defining_Character_Literal is an extended node whose fields
2678 -- are deliberate layed out to match the layout of fields in an ordinary
2679 -- N_Character_Literal node allowing for easy alteration of a character
2680 -- literal node into a defining character literal node. For details, see
2681 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2683 -- N_Defining_Character_Literal
2684 -- Sloc points to literal
2685 -- Chars (Name1) contains the Name_Id for the identifier
2686 -- Next_Entity (Node2-Sem)
2687 -- Scope (Node3-Sem)
2688 -- Etype (Node5-Sem)
2690 ------------------------------------
2691 -- 3.5.4 Integer Type Definition --
2692 ------------------------------------
2694 -- Note: there is an error in this rule in the latest version of the
2695 -- grammar, so we have retained the old rule pending clarification.
2697 -- INTEGER_TYPE_DEFINITION ::=
2698 -- SIGNED_INTEGER_TYPE_DEFINITION
2699 -- | MODULAR_TYPE_DEFINITION
2701 -------------------------------------------
2702 -- 3.5.4 Signed Integer Type Definition --
2703 -------------------------------------------
2705 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2706 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2708 -- Note: the Low_Bound and High_Bound fields are set to Empty
2709 -- for integer types defined in package Standard.
2711 -- N_Signed_Integer_Type_Definition
2712 -- Sloc points to RANGE
2713 -- Low_Bound (Node1)
2714 -- High_Bound (Node2)
2716 ------------------------------------
2717 -- 3.5.4 Modular Type Definition --
2718 ------------------------------------
2720 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2722 -- N_Modular_Type_Definition
2723 -- Sloc points to MOD
2724 -- Expression (Node3)
2726 ---------------------------------
2727 -- 3.5.6 Real Type Definition --
2728 ---------------------------------
2730 -- REAL_TYPE_DEFINITION ::=
2731 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2733 --------------------------------------
2734 -- 3.5.7 Floating Point Definition --
2735 --------------------------------------
2737 -- FLOATING_POINT_DEFINITION ::=
2738 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2740 -- Note: The Digits_Expression and Real_Range_Specifications fields
2741 -- are set to Empty for floating-point types declared in Standard.
2743 -- N_Floating_Point_Definition
2744 -- Sloc points to DIGITS
2745 -- Digits_Expression (Node2)
2746 -- Real_Range_Specification (Node4) (set to Empty if not present)
2748 -------------------------------------
2749 -- 3.5.7 Real Range Specification --
2750 -------------------------------------
2752 -- REAL_RANGE_SPECIFICATION ::=
2753 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2755 -- N_Real_Range_Specification
2756 -- Sloc points to RANGE
2757 -- Low_Bound (Node1)
2758 -- High_Bound (Node2)
2760 -----------------------------------
2761 -- 3.5.9 Fixed Point Definition --
2762 -----------------------------------
2764 -- FIXED_POINT_DEFINITION ::=
2765 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2767 --------------------------------------------
2768 -- 3.5.9 Ordinary Fixed Point Definition --
2769 --------------------------------------------
2771 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2772 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2774 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2776 -- N_Ordinary_Fixed_Point_Definition
2777 -- Sloc points to DELTA
2778 -- Delta_Expression (Node3)
2779 -- Real_Range_Specification (Node4)
2781 -------------------------------------------
2782 -- 3.5.9 Decimal Fixed Point Definition --
2783 -------------------------------------------
2785 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2786 -- delta static_EXPRESSION
2787 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2789 -- Note: decimal types are not permitted in Ada 83 mode
2791 -- N_Decimal_Fixed_Point_Definition
2792 -- Sloc points to DELTA
2793 -- Delta_Expression (Node3)
2794 -- Digits_Expression (Node2)
2795 -- Real_Range_Specification (Node4) (set to Empty if not present)
2797 ------------------------------
2798 -- 3.5.9 Digits Constraint --
2799 ------------------------------
2801 -- DIGITS_CONSTRAINT ::=
2802 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2804 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2805 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2807 -- N_Digits_Constraint
2808 -- Sloc points to DIGITS
2809 -- Digits_Expression (Node2)
2810 -- Range_Constraint (Node4) (set to Empty if not present)
2812 --------------------------------
2813 -- 3.6 Array Type Definition --
2814 --------------------------------
2816 -- ARRAY_TYPE_DEFINITION ::=
2817 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2819 -----------------------------------------
2820 -- 3.6 Unconstrained Array Definition --
2821 -----------------------------------------
2823 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2824 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2825 -- COMPONENT_DEFINITION
2827 -- Note: dimensionality of array is indicated by number of entries in
2828 -- the Subtype_Marks list, which has one entry for each dimension.
2830 -- N_Unconstrained_Array_Definition
2831 -- Sloc points to ARRAY
2832 -- Subtype_Marks (List2)
2833 -- Component_Definition (Node4)
2835 -----------------------------------
2836 -- 3.6 Index Subtype Definition --
2837 -----------------------------------
2839 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2841 -- There is no explicit node in the tree for an index subtype
2842 -- definition since the N_Unconstrained_Array_Definition node
2843 -- incorporates the type marks which appear in this context.
2845 ---------------------------------------
2846 -- 3.6 Constrained Array Definition --
2847 ---------------------------------------
2849 -- CONSTRAINED_ARRAY_DEFINITION ::=
2850 -- array (DISCRETE_SUBTYPE_DEFINITION
2851 -- {, DISCRETE_SUBTYPE_DEFINITION})
2852 -- of COMPONENT_DEFINITION
2854 -- Note: dimensionality of array is indicated by number of entries
2855 -- in the Discrete_Subtype_Definitions list, which has one entry
2856 -- for each dimension.
2858 -- N_Constrained_Array_Definition
2859 -- Sloc points to ARRAY
2860 -- Discrete_Subtype_Definitions (List2)
2861 -- Component_Definition (Node4)
2863 --------------------------------------
2864 -- 3.6 Discrete Subtype Definition --
2865 --------------------------------------
2867 -- DISCRETE_SUBTYPE_DEFINITION ::=
2868 -- discrete_SUBTYPE_INDICATION | RANGE
2870 -------------------------------
2871 -- 3.6 Component Definition --
2872 -------------------------------
2874 -- COMPONENT_DEFINITION ::=
2875 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2877 -- Note: although the syntax does not permit a component definition to
2878 -- be an anonymous array (and the parser will diagnose such an attempt
2879 -- with an appropriate message), it is possible for anonymous arrays
2880 -- to appear as component definitions. The semantics and back end handle
2881 -- this case properly, and the expander in fact generates such cases.
2882 -- Access_Definition is an optional field that gives support to
2883 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2884 -- Subtype_Indication field or else the Access_Definition field.
2886 -- N_Component_Definition
2887 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2888 -- Aliased_Present (Flag4)
2889 -- Null_Exclusion_Present (Flag11)
2890 -- Subtype_Indication (Node5) (set to Empty if not present)
2891 -- Access_Definition (Node3) (set to Empty if not present)
2893 -----------------------------
2894 -- 3.6.1 Index Constraint --
2895 -----------------------------
2897 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2899 -- It is not in general possible to distinguish between discriminant
2900 -- constraints and index constraints at parse time, since a simple
2901 -- name could be either the subtype mark of a discrete range, or an
2902 -- expression in a discriminant association with no name. Either
2903 -- entry appears simply as the name, and the semantic parse must
2904 -- distinguish between the two cases. Thus we use a common tree
2905 -- node format for both of these constraint types.
2907 -- See Discriminant_Constraint for format of node
2909 ---------------------------
2910 -- 3.6.1 Discrete Range --
2911 ---------------------------
2913 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2915 ----------------------------
2916 -- 3.7 Discriminant Part --
2917 ----------------------------
2919 -- DISCRIMINANT_PART ::=
2920 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2922 ------------------------------------
2923 -- 3.7 Unknown Discriminant Part --
2924 ------------------------------------
2926 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2928 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2930 -- There is no explicit node in the tree for an unknown discriminant
2931 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2932 -- parent node.
2934 ----------------------------------
2935 -- 3.7 Known Discriminant Part --
2936 ----------------------------------
2938 -- KNOWN_DISCRIMINANT_PART ::=
2939 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2941 -------------------------------------
2942 -- 3.7 Discriminant Specification --
2943 -------------------------------------
2945 -- DISCRIMINANT_SPECIFICATION ::=
2946 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2947 -- [:= DEFAULT_EXPRESSION]
2948 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2949 -- [:= DEFAULT_EXPRESSION]
2951 -- Although the syntax allows multiple identifiers in the list, the
2952 -- semantics is as though successive specifications were given with
2953 -- identical type definition and expression components. To simplify
2954 -- semantic processing, the parser represents a multiple declaration
2955 -- case as a sequence of single specifications, using the More_Ids and
2956 -- Prev_Ids flags to preserve the original source form as described
2957 -- in the section on "Handling of Defining Identifier Lists".
2959 -- N_Discriminant_Specification
2960 -- Sloc points to first identifier
2961 -- Defining_Identifier (Node1)
2962 -- Null_Exclusion_Present (Flag11)
2963 -- Discriminant_Type (Node5) subtype mark or access parameter definition
2964 -- Expression (Node3) (set to Empty if no default expression)
2965 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2966 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2968 -----------------------------
2969 -- 3.7 Default Expression --
2970 -----------------------------
2972 -- DEFAULT_EXPRESSION ::= EXPRESSION
2974 ------------------------------------
2975 -- 3.7.1 Discriminant Constraint --
2976 ------------------------------------
2978 -- DISCRIMINANT_CONSTRAINT ::=
2979 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2981 -- It is not in general possible to distinguish between discriminant
2982 -- constraints and index constraints at parse time, since a simple
2983 -- name could be either the subtype mark of a discrete range, or an
2984 -- expression in a discriminant association with no name. Either
2985 -- entry appears simply as the name, and the semantic parse must
2986 -- distinguish between the two cases. Thus we use a common tree
2987 -- node format for both of these constraint types.
2989 -- N_Index_Or_Discriminant_Constraint
2990 -- Sloc points to left paren
2991 -- Constraints (List1) points to list of discrete ranges or
2992 -- discriminant associations
2994 -------------------------------------
2995 -- 3.7.1 Discriminant Association --
2996 -------------------------------------
2998 -- DISCRIMINANT_ASSOCIATION ::=
2999 -- [discriminant_SELECTOR_NAME
3000 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3002 -- Note: a discriminant association that has no selector name list
3003 -- appears directly as an expression in the tree.
3005 -- N_Discriminant_Association
3006 -- Sloc points to first token of discriminant association
3007 -- Selector_Names (List1) (always non-empty, since if no selector
3008 -- names are present, this node is not used, see comment above)
3009 -- Expression (Node3)
3011 ---------------------------------
3012 -- 3.8 Record Type Definition --
3013 ---------------------------------
3015 -- RECORD_TYPE_DEFINITION ::=
3016 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3018 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3020 -- There is no explicit node in the tree for a record type definition.
3021 -- Instead the flags for Tagged_Present and Limited_Present appear in
3022 -- the N_Record_Definition node for a record definition appearing in
3023 -- the context of a record type definition.
3025 ----------------------------
3026 -- 3.8 Record Definition --
3027 ----------------------------
3029 -- RECORD_DEFINITION ::=
3030 -- record
3031 -- COMPONENT_LIST
3032 -- end record
3033 -- | null record
3035 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
3036 -- flags appear only for a record definition appearing in a record
3037 -- type definition.
3039 -- Note: the NULL RECORD case is not permitted in Ada 83
3041 -- N_Record_Definition
3042 -- Sloc points to RECORD or NULL
3043 -- End_Label (Node4) (set to Empty if internally generated record)
3044 -- Abstract_Present (Flag4)
3045 -- Tagged_Present (Flag15)
3046 -- Limited_Present (Flag17)
3047 -- Component_List (Node1) empty in null record case
3048 -- Null_Present (Flag13) set in null record case
3049 -- Task_Present (Flag5) set in task interfaces
3050 -- Protected_Present (Flag6) set in protected interfaces
3051 -- Synchronized_Present (Flag7) set in interfaces
3052 -- Interface_Present (Flag16) set in abstract interfaces
3053 -- Interface_List (List2) (set to No_List if none)
3055 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3056 -- Interface_List and Interface_Present are used for abstract
3057 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3059 -------------------------
3060 -- 3.8 Component List --
3061 -------------------------
3063 -- COMPONENT_LIST ::=
3064 -- COMPONENT_ITEM {COMPONENT_ITEM}
3065 -- | {COMPONENT_ITEM} VARIANT_PART
3066 -- | null;
3068 -- N_Component_List
3069 -- Sloc points to first token of component list
3070 -- Component_Items (List3)
3071 -- Variant_Part (Node4) (set to Empty if no variant part)
3072 -- Null_Present (Flag13)
3074 -------------------------
3075 -- 3.8 Component Item --
3076 -------------------------
3078 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3080 -- Note: A component item can also be a pragma, and in the tree
3081 -- that is obtained after semantic processing, a component item
3082 -- can be an N_Null node resulting from a non-recognized pragma.
3084 --------------------------------
3085 -- 3.8 Component Declaration --
3086 --------------------------------
3088 -- COMPONENT_DECLARATION ::=
3089 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3090 -- [:= DEFAULT_EXPRESSION]
3091 -- [ASPECT_SPECIFICATIONS];
3093 -- Note: although the syntax does not permit a component definition to
3094 -- be an anonymous array (and the parser will diagnose such an attempt
3095 -- with an appropriate message), it is possible for anonymous arrays
3096 -- to appear as component definitions. The semantics and back end handle
3097 -- this case properly, and the expander in fact generates such cases.
3099 -- Although the syntax allows multiple identifiers in the list, the
3100 -- semantics is as though successive declarations were given with the
3101 -- same component definition and expression components. To simplify
3102 -- semantic processing, the parser represents a multiple declaration
3103 -- case as a sequence of single declarations, using the More_Ids and
3104 -- Prev_Ids flags to preserve the original source form as described
3105 -- in the section on "Handling of Defining Identifier Lists".
3107 -- N_Component_Declaration
3108 -- Sloc points to first identifier
3109 -- Defining_Identifier (Node1)
3110 -- Component_Definition (Node4)
3111 -- Expression (Node3) (set to Empty if no default expression)
3112 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3113 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3115 -------------------------
3116 -- 3.8.1 Variant Part --
3117 -------------------------
3119 -- VARIANT_PART ::=
3120 -- case discriminant_DIRECT_NAME is
3121 -- VARIANT {VARIANT}
3122 -- end case;
3124 -- Note: the variants list can contain pragmas as well as variants.
3125 -- In a properly formed program there is at least one variant.
3127 -- N_Variant_Part
3128 -- Sloc points to CASE
3129 -- Name (Node2)
3130 -- Variants (List1)
3132 --------------------
3133 -- 3.8.1 Variant --
3134 --------------------
3136 -- VARIANT ::=
3137 -- when DISCRETE_CHOICE_LIST =>
3138 -- COMPONENT_LIST
3140 -- N_Variant
3141 -- Sloc points to WHEN
3142 -- Discrete_Choices (List4)
3143 -- Component_List (Node1)
3144 -- Enclosing_Variant (Node2-Sem)
3145 -- Present_Expr (Uint3-Sem)
3146 -- Dcheck_Function (Node5-Sem)
3147 -- Has_SP_Choice (Flag15-Sem)
3149 -- Note: in the list of Discrete_Choices, the tree passed to the back
3150 -- end does not have choice entries corresponding to names of statically
3151 -- predicated subtypes. Such entries are always expanded out to the list
3152 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3153 -- mode also has this expansion, but done with a proper Rewrite call on
3154 -- the N_Variant node so that ASIS can properly retrieve the original.
3156 ---------------------------------
3157 -- 3.8.1 Discrete Choice List --
3158 ---------------------------------
3160 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3162 ----------------------------
3163 -- 3.8.1 Discrete Choice --
3164 ----------------------------
3166 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3168 -- Note: in Ada 83 mode, the expression must be a simple expression
3170 -- The only choice that appears explicitly is the OTHERS choice, as
3171 -- defined here. Other cases of discrete choice (expression and
3172 -- discrete range) appear directly. This production is also used
3173 -- for the OTHERS possibility of an exception choice.
3175 -- Note: in accordance with the syntax, the parser does not check that
3176 -- OTHERS appears at the end on its own in a choice list context. This
3177 -- is a semantic check.
3179 -- N_Others_Choice
3180 -- Sloc points to OTHERS
3181 -- Others_Discrete_Choices (List1-Sem)
3182 -- All_Others (Flag11-Sem)
3184 ----------------------------------
3185 -- 3.9.1 Record Extension Part --
3186 ----------------------------------
3188 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3190 -- Note: record extension parts are not permitted in Ada 83 mode
3192 --------------------------------------
3193 -- 3.9.4 Interface Type Definition --
3194 --------------------------------------
3196 -- INTERFACE_TYPE_DEFINITION ::=
3197 -- [limited | task | protected | synchronized]
3198 -- interface [interface_list]
3200 -- Note: Interfaces are implemented with N_Record_Definition and
3201 -- N_Derived_Type_Definition nodes because most of the support
3202 -- for the analysis of abstract types has been reused to
3203 -- analyze abstract interfaces.
3205 ----------------------------------
3206 -- 3.10 Access Type Definition --
3207 ----------------------------------
3209 -- ACCESS_TYPE_DEFINITION ::=
3210 -- ACCESS_TO_OBJECT_DEFINITION
3211 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3213 --------------------------
3214 -- 3.10 Null Exclusion --
3215 --------------------------
3217 -- NULL_EXCLUSION ::= not null
3219 ---------------------------------------
3220 -- 3.10 Access To Object Definition --
3221 ---------------------------------------
3223 -- ACCESS_TO_OBJECT_DEFINITION ::=
3224 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3225 -- SUBTYPE_INDICATION
3227 -- N_Access_To_Object_Definition
3228 -- Sloc points to ACCESS
3229 -- All_Present (Flag15)
3230 -- Null_Exclusion_Present (Flag11)
3231 -- Subtype_Indication (Node5)
3232 -- Constant_Present (Flag17)
3234 -----------------------------------
3235 -- 3.10 General Access Modifier --
3236 -----------------------------------
3238 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3240 -- Note: general access modifiers are not permitted in Ada 83 mode
3242 -- There is no explicit node in the tree for general access modifier.
3243 -- Instead the All_Present or Constant_Present flags are set in the
3244 -- parent node.
3246 -------------------------------------------
3247 -- 3.10 Access To Subprogram Definition --
3248 -------------------------------------------
3250 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3251 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3252 -- | [NULL_EXCLUSION] access [protected] function
3253 -- PARAMETER_AND_RESULT_PROFILE
3255 -- Note: access to subprograms are not permitted in Ada 83 mode
3257 -- N_Access_Function_Definition
3258 -- Sloc points to ACCESS
3259 -- Null_Exclusion_Present (Flag11)
3260 -- Null_Exclusion_In_Return_Present (Flag14)
3261 -- Protected_Present (Flag6)
3262 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3263 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3265 -- N_Access_Procedure_Definition
3266 -- Sloc points to ACCESS
3267 -- Null_Exclusion_Present (Flag11)
3268 -- Protected_Present (Flag6)
3269 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3271 -----------------------------
3272 -- 3.10 Access Definition --
3273 -----------------------------
3275 -- ACCESS_DEFINITION ::=
3276 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3277 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3279 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3281 -- N_Access_Definition
3282 -- Sloc points to ACCESS
3283 -- Null_Exclusion_Present (Flag11)
3284 -- All_Present (Flag15)
3285 -- Constant_Present (Flag17)
3286 -- Subtype_Mark (Node4)
3287 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3289 -----------------------------------------
3290 -- 3.10.1 Incomplete Type Declaration --
3291 -----------------------------------------
3293 -- INCOMPLETE_TYPE_DECLARATION ::=
3294 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3296 -- N_Incomplete_Type_Declaration
3297 -- Sloc points to TYPE
3298 -- Defining_Identifier (Node1)
3299 -- Discriminant_Specifications (List4) (set to No_List if no
3300 -- discriminant part, or if the discriminant part is an
3301 -- unknown discriminant part)
3302 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3303 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3304 -- Tagged_Present (Flag15)
3306 ----------------------------
3307 -- 3.11 Declarative Part --
3308 ----------------------------
3310 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3312 -- Note: although the parser enforces the syntactic requirement that
3313 -- a declarative part can contain only declarations, the semantic
3314 -- processing may add statements to the list of actions in a
3315 -- declarative part, so the code generator should be prepared
3316 -- to accept a statement in this position.
3318 ----------------------------
3319 -- 3.11 Declarative Item --
3320 ----------------------------
3322 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3324 ----------------------------------
3325 -- 3.11 Basic Declarative Item --
3326 ----------------------------------
3328 -- BASIC_DECLARATIVE_ITEM ::=
3329 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3331 ----------------
3332 -- 3.11 Body --
3333 ----------------
3335 -- BODY ::= PROPER_BODY | BODY_STUB
3337 -----------------------
3338 -- 3.11 Proper Body --
3339 -----------------------
3341 -- PROPER_BODY ::=
3342 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3344 ---------------
3345 -- 4.1 Name --
3346 ---------------
3348 -- NAME ::=
3349 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3350 -- | INDEXED_COMPONENT | SLICE
3351 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3352 -- | TYPE_CONVERSION | FUNCTION_CALL
3353 -- | CHARACTER_LITERAL
3355 ----------------------
3356 -- 4.1 Direct Name --
3357 ----------------------
3359 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3361 -----------------
3362 -- 4.1 Prefix --
3363 -----------------
3365 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3367 -------------------------------
3368 -- 4.1 Explicit Dereference --
3369 -------------------------------
3371 -- EXPLICIT_DEREFERENCE ::= NAME . all
3373 -- N_Explicit_Dereference
3374 -- Sloc points to ALL
3375 -- Prefix (Node3)
3376 -- Actual_Designated_Subtype (Node4-Sem)
3377 -- Atomic_Sync_Required (Flag14-Sem)
3378 -- Has_Dereference_Action (Flag13-Sem)
3379 -- plus fields for expression
3381 -------------------------------
3382 -- 4.1 Implicit Dereference --
3383 -------------------------------
3385 -- IMPLICIT_DEREFERENCE ::= NAME
3387 ------------------------------
3388 -- 4.1.1 Indexed Component --
3389 ------------------------------
3391 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3393 -- Note: the parser may generate this node in some situations where it
3394 -- should be a function call. The semantic pass must correct this
3395 -- misidentification (which is inevitable at the parser level).
3397 -- N_Indexed_Component
3398 -- Sloc contains a copy of the Sloc value of the Prefix
3399 -- Prefix (Node3)
3400 -- Expressions (List1)
3401 -- Atomic_Sync_Required (Flag14-Sem)
3402 -- plus fields for expression
3404 -- Note: if any of the subscripts requires a range check, then the
3405 -- Do_Range_Check flag is set on the corresponding expression, with
3406 -- the index type being determined from the type of the Prefix, which
3407 -- references the array being indexed.
3409 -- Note: in a fully analyzed and expanded indexed component node, and
3410 -- hence in any such node that gigi sees, if the prefix is an access
3411 -- type, then an explicit dereference operation has been inserted.
3413 ------------------
3414 -- 4.1.2 Slice --
3415 ------------------
3417 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3419 -- Note: an implicit subtype is created to describe the resulting
3420 -- type, so that the bounds of this type are the bounds of the slice.
3422 -- N_Slice
3423 -- Sloc points to first token of prefix
3424 -- Prefix (Node3)
3425 -- Discrete_Range (Node4)
3426 -- plus fields for expression
3428 -------------------------------
3429 -- 4.1.3 Selected Component --
3430 -------------------------------
3432 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3434 -- Note: selected components that are semantically expanded names get
3435 -- changed during semantic processing into the separate N_Expanded_Name
3436 -- node. See description of this node in the section on semantic nodes.
3438 -- N_Selected_Component
3439 -- Sloc points to period
3440 -- Prefix (Node3)
3441 -- Selector_Name (Node2)
3442 -- Associated_Node (Node4-Sem)
3443 -- Do_Discriminant_Check (Flag13-Sem)
3444 -- Is_In_Discriminant_Check (Flag11-Sem)
3445 -- Is_Prefixed_Call (Flag17-Sem)
3446 -- Atomic_Sync_Required (Flag14-Sem)
3447 -- plus fields for expression
3449 --------------------------
3450 -- 4.1.3 Selector Name --
3451 --------------------------
3453 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3455 --------------------------------
3456 -- 4.1.4 Attribute Reference --
3457 --------------------------------
3459 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3461 -- Note: the syntax is quite ambiguous at this point. Consider:
3463 -- A'Length (X) X is part of the attribute designator
3464 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3465 -- A'Class (X) X is the expression of a type conversion
3467 -- It would be possible for the parser to distinguish these cases
3468 -- by looking at the attribute identifier. However, that would mean
3469 -- more work in introducing new implementation defined attributes,
3470 -- and also it would mean that special processing for attributes
3471 -- would be scattered around, instead of being centralized in the
3472 -- semantic routine that handles an N_Attribute_Reference node.
3473 -- Consequently, the parser in all the above cases stores the
3474 -- expression (X in these examples) as a single element list in
3475 -- in the Expressions field of the N_Attribute_Reference node.
3477 -- Similarly, for attributes like Max which take two arguments,
3478 -- we store the two arguments as a two element list in the
3479 -- Expressions field. Of course it is clear at parse time that
3480 -- this case is really a function call with an attribute as the
3481 -- prefix, but it turns out to be convenient to handle the two
3482 -- argument case in a similar manner to the one argument case,
3483 -- and indeed in general the parser will accept any number of
3484 -- expressions in this position and store them as a list in the
3485 -- attribute reference node. This allows for future addition of
3486 -- attributes that take more than two arguments.
3488 -- Note: named associates are not permitted in function calls where
3489 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3490 -- to skip the normal subprogram argument processing.
3492 -- Note: for the attributes whose designators are technically keywords,
3493 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3494 -- the corresponding name, even though no identifier is involved.
3496 -- Note: the generated code may contain stream attributes applied to
3497 -- limited types for which no stream routines exist officially. In such
3498 -- case, the result is to use the stream attribute for the underlying
3499 -- full type, or in the case of a protected type, the components
3500 -- (including any discriminants) are merely streamed in order.
3502 -- See Exp_Attr for a complete description of which attributes are
3503 -- passed onto Gigi, and which are handled entirely by the front end.
3505 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3506 -- a non-standard enumeration type or a nonzero/zero semantics
3507 -- boolean type, so the value is simply the stored representation.
3509 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3510 -- references a subprogram that is a renaming, then the front end must
3511 -- rewrite the attribute to refer directly to the renamed entity.
3513 -- Note: In generated code, the Address and Unrestricted_Access
3514 -- attributes can be applied to any expression, and the meaning is
3515 -- to create an object containing the value (the object is in the
3516 -- current stack frame), and pass the address of this value. If the
3517 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3518 -- is taken must be on a byte (storage unit) boundary, and if it is
3519 -- not (or may not be), then the generated code must create a copy
3520 -- that is byte aligned, and pass the address of this copy.
3522 -- N_Attribute_Reference
3523 -- Sloc points to apostrophe
3524 -- Prefix (Node3)
3525 -- Attribute_Name (Name2) identifier name from attribute designator
3526 -- Expressions (List1) (set to No_List if no associated expressions)
3527 -- Entity (Node4-Sem) used if the attribute yields a type
3528 -- Associated_Node (Node4-Sem)
3529 -- Do_Overflow_Check (Flag17-Sem)
3530 -- Header_Size_Added (Flag11-Sem)
3531 -- Redundant_Use (Flag13-Sem)
3532 -- Must_Be_Byte_Aligned (Flag14)
3533 -- plus fields for expression
3535 ---------------------------------
3536 -- 4.1.4 Attribute Designator --
3537 ---------------------------------
3539 -- ATTRIBUTE_DESIGNATOR ::=
3540 -- IDENTIFIER [(static_EXPRESSION)]
3541 -- | access | delta | digits
3543 -- There is no explicit node in the tree for an attribute designator.
3544 -- Instead the Attribute_Name and Expressions fields of the parent
3545 -- node (N_Attribute_Reference node) hold the information.
3547 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3548 -- designator, then they are treated as identifiers internally
3549 -- rather than the keywords of the same name.
3551 --------------------------------------
3552 -- 4.1.4 Range Attribute Reference --
3553 --------------------------------------
3555 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3557 -- A range attribute reference is represented in the tree using the
3558 -- normal N_Attribute_Reference node.
3560 ---------------------------------------
3561 -- 4.1.4 Range Attribute Designator --
3562 ---------------------------------------
3564 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3566 -- A range attribute designator is represented in the tree using the
3567 -- normal N_Attribute_Reference node.
3569 --------------------
3570 -- 4.3 Aggregate --
3571 --------------------
3573 -- AGGREGATE ::=
3574 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3576 -----------------------------
3577 -- 4.3.1 Record Aggregate --
3578 -----------------------------
3580 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3582 -- N_Aggregate
3583 -- Sloc points to left parenthesis
3584 -- Expressions (List1) (set to No_List if none or null record case)
3585 -- Component_Associations (List2) (set to No_List if none)
3586 -- Null_Record_Present (Flag17)
3587 -- Aggregate_Bounds (Node3-Sem)
3588 -- Associated_Node (Node4-Sem)
3589 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3590 -- Expansion_Delayed (Flag11-Sem)
3591 -- Has_Self_Reference (Flag13-Sem)
3592 -- plus fields for expression
3594 -- Note: this structure is used for both record and array aggregates
3595 -- since the two cases are not separable by the parser. The parser
3596 -- makes no attempt to enforce consistency here, so it is up to the
3597 -- semantic phase to make sure that the aggregate is consistent (i.e.
3598 -- that it is not a "half-and-half" case that mixes record and array
3599 -- syntax. In particular, for a record aggregate, the expressions
3600 -- field will be set if there are positional associations.
3602 -- Note: N_Aggregate is not used for all aggregates; in particular,
3603 -- there is a separate node kind for extension aggregates.
3605 -- Note: gigi/gcc can handle array aggregates correctly providing that
3606 -- they are entirely positional, and the array subtype involved has a
3607 -- known at compile time length and is not bit packed, or a convention
3608 -- Fortran array with more than one dimension. If these conditions
3609 -- are not met, then the front end must translate the aggregate into
3610 -- an appropriate set of assignments into a temporary.
3612 -- Note: for the record aggregate case, gigi/gcc can handle all cases of
3613 -- record aggregates, including those for packed, and rep-claused
3614 -- records, and also variant records, providing that there are no
3615 -- variable length fields whose size is not known at compile time, and
3616 -- providing that the aggregate is presented in fully named form.
3618 ----------------------------------------------
3619 -- 4.3.1 Record Component Association List --
3620 ----------------------------------------------
3622 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3623 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3624 -- | null record
3626 -- There is no explicit node in the tree for a record component
3627 -- association list. Instead the Null_Record_Present flag is set in
3628 -- the parent node for the NULL RECORD case.
3630 ------------------------------------------------------
3631 -- 4.3.1 Record Component Association (also 4.3.3) --
3632 ------------------------------------------------------
3634 -- RECORD_COMPONENT_ASSOCIATION ::=
3635 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3637 -- N_Component_Association
3638 -- Sloc points to first selector name
3639 -- Choices (List1)
3640 -- Loop_Actions (List2-Sem)
3641 -- Expression (Node3) (empty if Box_Present)
3642 -- Box_Present (Flag15)
3643 -- Inherited_Discriminant (Flag13)
3645 -- Note: this structure is used for both record component associations
3646 -- and array component associations, since the two cases aren't always
3647 -- separable by the parser. The choices list may represent either a
3648 -- list of selector names in the record aggregate case, or a list of
3649 -- discrete choices in the array aggregate case or an N_Others_Choice
3650 -- node (which appears as a singleton list). Box_Present gives support
3651 -- to Ada 2005 (AI-287).
3653 ----------------------------------
3654 -- 4.3.1 Component Choice List --
3655 ----------------------------------
3657 -- COMPONENT_CHOICE_LIST ::=
3658 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3659 -- | others
3661 -- The entries of a component choice list appear in the Choices list of
3662 -- the associated N_Component_Association, as either selector names, or
3663 -- as an N_Others_Choice node.
3665 --------------------------------
3666 -- 4.3.2 Extension Aggregate --
3667 --------------------------------
3669 -- EXTENSION_AGGREGATE ::=
3670 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3672 -- Note: extension aggregates are not permitted in Ada 83 mode
3674 -- N_Extension_Aggregate
3675 -- Sloc points to left parenthesis
3676 -- Ancestor_Part (Node3)
3677 -- Associated_Node (Node4-Sem)
3678 -- Expressions (List1) (set to No_List if none or null record case)
3679 -- Component_Associations (List2) (set to No_List if none)
3680 -- Null_Record_Present (Flag17)
3681 -- Expansion_Delayed (Flag11-Sem)
3682 -- Has_Self_Reference (Flag13-Sem)
3683 -- plus fields for expression
3685 --------------------------
3686 -- 4.3.2 Ancestor Part --
3687 --------------------------
3689 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3691 ----------------------------
3692 -- 4.3.3 Array Aggregate --
3693 ----------------------------
3695 -- ARRAY_AGGREGATE ::=
3696 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3698 ---------------------------------------
3699 -- 4.3.3 Positional Array Aggregate --
3700 ---------------------------------------
3702 -- POSITIONAL_ARRAY_AGGREGATE ::=
3703 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3704 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3706 -- See Record_Aggregate (4.3.1) for node structure
3708 ----------------------------------
3709 -- 4.3.3 Named Array Aggregate --
3710 ----------------------------------
3712 -- NAMED_ARRAY_AGGREGATE ::=
3713 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3715 -- See Record_Aggregate (4.3.1) for node structure
3717 ----------------------------------------
3718 -- 4.3.3 Array Component Association --
3719 ----------------------------------------
3721 -- ARRAY_COMPONENT_ASSOCIATION ::=
3722 -- DISCRETE_CHOICE_LIST => EXPRESSION
3724 -- See Record_Component_Association (4.3.1) for node structure
3726 --------------------------------------------------
3727 -- 4.4 Expression/Relation/Term/Factor/Primary --
3728 --------------------------------------------------
3730 -- EXPRESSION ::=
3731 -- RELATION {LOGICAL_OPERATOR RELATION}
3733 -- CHOICE_EXPRESSION ::=
3734 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
3736 -- CHOICE_RELATION ::=
3737 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3739 -- RELATION ::=
3740 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3741 -- | RAISE_EXPRESSION
3743 -- MEMBERSHIP_CHOICE_LIST ::=
3744 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3746 -- MEMBERSHIP_CHOICE ::=
3747 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3749 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
3751 -- SIMPLE_EXPRESSION ::=
3752 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3754 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3756 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3758 -- No nodes are generated for any of these constructs. Instead, the
3759 -- node for the operator appears directly. When we refer to an
3760 -- expression in this description, we mean any of the possible
3761 -- constituent components of an expression (e.g. identifier is
3762 -- an example of an expression).
3764 -- Note: the above syntax is that Ada 2012 syntax which restricts
3765 -- choice relations to simple expressions to avoid ambiguities in
3766 -- some contexts with set membership notation. It has been decided
3767 -- that in retrospect, the Ada 95 change allowing general expressions
3768 -- in this context was a mistake, so we have reverted to the above
3769 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
3770 -- expressions was there in Ada 83 from the start).
3772 ------------------
3773 -- 4.4 Primary --
3774 ------------------
3776 -- PRIMARY ::=
3777 -- NUMERIC_LITERAL | null
3778 -- | STRING_LITERAL | AGGREGATE
3779 -- | NAME | QUALIFIED_EXPRESSION
3780 -- | ALLOCATOR | (EXPRESSION)
3782 -- Usually there is no explicit node in the tree for primary. Instead
3783 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3784 -- exceptions. First, there is an explicit node for a null primary.
3786 -- N_Null
3787 -- Sloc points to NULL
3788 -- plus fields for expression
3790 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3791 -- that the parser keep track of which subexpressions are enclosed
3792 -- in parentheses, and how many levels of parentheses are used. This
3793 -- information is required for optimization purposes, and also for
3794 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3795 -- conform with ((((1)))) in the body).
3797 -- The parentheses are recorded by keeping a Paren_Count field in every
3798 -- subexpression node (it is actually present in all nodes, but only
3799 -- used in subexpression nodes). This count records the number of
3800 -- levels of parentheses. If the number of levels in the source exceeds
3801 -- the maximum accommodated by this count, then the count is simply left
3802 -- at the maximum value. This means that there are some pathological
3803 -- cases of failure to detect conformance failures (e.g. an expression
3804 -- with 500 levels of parens will conform with one with 501 levels),
3805 -- but we do not need to lose sleep over this.
3807 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3808 -- type N_Parenthesized_Expression used to accurately record unlimited
3809 -- numbers of levels of parentheses. However, it turned out to be a
3810 -- real nuisance to have to take into account the possible presence of
3811 -- this node during semantic analysis, since basically parentheses have
3812 -- zero relevance to semantic analysis.
3814 -- Note: the level of parentheses always present in things like
3815 -- aggregates does not count, only the parentheses in the primary
3816 -- (EXPRESSION) affect the setting of the Paren_Count field.
3818 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3819 -- treated as though it were Empty) if No_Initialization is set True.
3821 --------------------------------------
3822 -- 4.5 Short Circuit Control Forms --
3823 --------------------------------------
3825 -- EXPRESSION ::=
3826 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3828 -- Gigi restriction: For both these control forms, the operand and
3829 -- result types are always Standard.Boolean. The expander inserts the
3830 -- required conversion operations where needed to ensure this is the
3831 -- case.
3833 -- N_And_Then
3834 -- Sloc points to AND of AND THEN
3835 -- Left_Opnd (Node2)
3836 -- Right_Opnd (Node3)
3837 -- Actions (List1-Sem)
3838 -- plus fields for expression
3840 -- N_Or_Else
3841 -- Sloc points to OR of OR ELSE
3842 -- Left_Opnd (Node2)
3843 -- Right_Opnd (Node3)
3844 -- Actions (List1-Sem)
3845 -- plus fields for expression
3847 -- Note: The Actions field is used to hold actions associated with
3848 -- the right hand operand. These have to be treated specially since
3849 -- they are not unconditionally executed. See Insert_Actions for a
3850 -- more detailed description of how these actions are handled.
3852 ---------------------------
3853 -- 4.5 Membership Tests --
3854 ---------------------------
3856 -- RELATION ::=
3857 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3859 -- MEMBERSHIP_CHOICE_LIST ::=
3860 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3862 -- MEMBERSHIP_CHOICE ::=
3863 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3865 -- Note: although the grammar above allows only a range or a subtype
3866 -- mark, the parser in fact will accept any simple expression in place
3867 -- of a subtype mark. This means that the semantic analyzer must be able
3868 -- to deal with, and diagnose a simple expression other than a name for
3869 -- the right operand. This simplifies error recovery in the parser.
3871 -- The Alternatives field below is present only if there is more
3872 -- than one Membership_Choice present (which is legitimate only in
3873 -- Ada 2012 mode) in which case Right_Opnd is Empty, and Alternatives
3874 -- contains the list of choices. In the tree passed to the back end,
3875 -- Alternatives is always No_List, and Right_Opnd is set (i.e. the
3876 -- expansion circuitry expands out the complex set membership case
3877 -- using simple membership operations).
3879 -- Should we rename Alternatives here to Membership_Choices ???
3881 -- N_In
3882 -- Sloc points to IN
3883 -- Left_Opnd (Node2)
3884 -- Right_Opnd (Node3)
3885 -- Alternatives (List4) (set to No_List if only one set alternative)
3886 -- No_Minimize_Eliminate (Flag17)
3887 -- plus fields for expression
3889 -- N_Not_In
3890 -- Sloc points to NOT of NOT IN
3891 -- Left_Opnd (Node2)
3892 -- Right_Opnd (Node3)
3893 -- Alternatives (List4) (set to No_List if only one set alternative)
3894 -- No_Minimize_Eliminate (Flag17)
3895 -- plus fields for expression
3897 --------------------
3898 -- 4.5 Operators --
3899 --------------------
3901 -- LOGICAL_OPERATOR ::= and | or | xor
3903 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3905 -- BINARY_ADDING_OPERATOR ::= + | - | &
3907 -- UNARY_ADDING_OPERATOR ::= + | -
3909 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3911 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3913 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3915 -- x #* y
3916 -- x #/ y
3917 -- x #mod y
3918 -- x #rem y
3920 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3921 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3922 -- All handling of smalls for multiplication and division is handled
3923 -- by the front end (mod and rem result only from expansion). Gigi
3924 -- thus never needs to worry about small values (for other operators
3925 -- operating on fixed-point, e.g. addition, the small value does not
3926 -- have any semantic effect anyway, these are always integer operations.
3928 -- Gigi restriction: For all operators taking Boolean operands, the
3929 -- type is always Standard.Boolean. The expander inserts the required
3930 -- conversion operations where needed to ensure this is the case.
3932 -- N_Op_And
3933 -- Sloc points to AND
3934 -- Do_Length_Check (Flag4-Sem)
3935 -- plus fields for binary operator
3936 -- plus fields for expression
3938 -- N_Op_Or
3939 -- Sloc points to OR
3940 -- Do_Length_Check (Flag4-Sem)
3941 -- plus fields for binary operator
3942 -- plus fields for expression
3944 -- N_Op_Xor
3945 -- Sloc points to XOR
3946 -- Do_Length_Check (Flag4-Sem)
3947 -- plus fields for binary operator
3948 -- plus fields for expression
3950 -- N_Op_Eq
3951 -- Sloc points to =
3952 -- plus fields for binary operator
3953 -- plus fields for expression
3955 -- N_Op_Ne
3956 -- Sloc points to /=
3957 -- plus fields for binary operator
3958 -- plus fields for expression
3960 -- N_Op_Lt
3961 -- Sloc points to <
3962 -- plus fields for binary operator
3963 -- plus fields for expression
3965 -- N_Op_Le
3966 -- Sloc points to <=
3967 -- plus fields for binary operator
3968 -- plus fields for expression
3970 -- N_Op_Gt
3971 -- Sloc points to >
3972 -- plus fields for binary operator
3973 -- plus fields for expression
3975 -- N_Op_Ge
3976 -- Sloc points to >=
3977 -- plus fields for binary operator
3978 -- plus fields for expression
3980 -- N_Op_Add
3981 -- Sloc points to + (binary)
3982 -- plus fields for binary operator
3983 -- plus fields for expression
3985 -- N_Op_Subtract
3986 -- Sloc points to - (binary)
3987 -- plus fields for binary operator
3988 -- plus fields for expression
3990 -- N_Op_Concat
3991 -- Sloc points to &
3992 -- Is_Component_Left_Opnd (Flag13-Sem)
3993 -- Is_Component_Right_Opnd (Flag14-Sem)
3994 -- plus fields for binary operator
3995 -- plus fields for expression
3997 -- N_Op_Multiply
3998 -- Sloc points to *
3999 -- Treat_Fixed_As_Integer (Flag14-Sem)
4000 -- Rounded_Result (Flag18-Sem)
4001 -- plus fields for binary operator
4002 -- plus fields for expression
4004 -- N_Op_Divide
4005 -- Sloc points to /
4006 -- Treat_Fixed_As_Integer (Flag14-Sem)
4007 -- Do_Division_Check (Flag13-Sem)
4008 -- Rounded_Result (Flag18-Sem)
4009 -- plus fields for binary operator
4010 -- plus fields for expression
4012 -- N_Op_Mod
4013 -- Sloc points to MOD
4014 -- Treat_Fixed_As_Integer (Flag14-Sem)
4015 -- Do_Division_Check (Flag13-Sem)
4016 -- plus fields for binary operator
4017 -- plus fields for expression
4019 -- N_Op_Rem
4020 -- Sloc points to REM
4021 -- Treat_Fixed_As_Integer (Flag14-Sem)
4022 -- Do_Division_Check (Flag13-Sem)
4023 -- plus fields for binary operator
4024 -- plus fields for expression
4026 -- N_Op_Expon
4027 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4028 -- Sloc points to **
4029 -- plus fields for binary operator
4030 -- plus fields for expression
4032 -- N_Op_Plus
4033 -- Sloc points to + (unary)
4034 -- plus fields for unary operator
4035 -- plus fields for expression
4037 -- N_Op_Minus
4038 -- Sloc points to - (unary)
4039 -- plus fields for unary operator
4040 -- plus fields for expression
4042 -- N_Op_Abs
4043 -- Sloc points to ABS
4044 -- plus fields for unary operator
4045 -- plus fields for expression
4047 -- N_Op_Not
4048 -- Sloc points to NOT
4049 -- plus fields for unary operator
4050 -- plus fields for expression
4052 -- See also shift operators in section B.2
4054 -- Note on fixed-point operations passed to Gigi: For adding operators,
4055 -- the semantics is to treat these simply as integer operations, with
4056 -- the small values being ignored (the bounds are already stored in
4057 -- units of small, so that constraint checking works as usual). For the
4058 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4059 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4060 -- thus treat these nodes in identical manner, ignoring small values.
4062 -- Note on overflow handling: When the overflow checking mode is set to
4063 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4064 -- be modified to use a larger type for the operands and result. In
4065 -- the case where the computed range exceeds that of Long_Long_Integer,
4066 -- and we are running in ELIMINATED mode, the operator node will be
4067 -- changed to be a call to the appropriate routine in System.Bignums.
4069 ------------------------------------
4070 -- 4.5.7 Conditional Expressions --
4071 ------------------------------------
4073 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4075 --------------------------
4076 -- 4.5.7 If Expression --
4077 ----------------------------
4079 -- IF_EXPRESSION ::=
4080 -- if CONDITION then DEPENDENT_EXPRESSION
4081 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4082 -- [else DEPENDENT_EXPRESSION]
4084 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4086 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4087 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4088 -- the Is_Elsif flag is set on the inner if expression.
4090 -- N_If_Expression
4091 -- Sloc points to IF or ELSIF keyword
4092 -- Expressions (List1)
4093 -- Then_Actions (List2-Sem)
4094 -- Else_Actions (List3-Sem)
4095 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4096 -- Do_Overflow_Check (Flag17-Sem)
4097 -- plus fields for expression
4099 -- Expressions here is a three-element list, whose first element is the
4100 -- condition, the second element is the dependent expression after THEN
4101 -- and the third element is the dependent expression after the ELSE
4102 -- (explicitly set to True if missing).
4104 -- Note: the Then_Actions and Else_Actions fields are always set to
4105 -- No_List in the tree passed to Gigi. These fields are used only
4106 -- for temporary processing purposes in the expander.
4108 ----------------------------
4109 -- 4.5.7 Case Expression --
4110 ----------------------------
4112 -- CASE_EXPRESSION ::=
4113 -- case SELECTING_EXPRESSION is
4114 -- CASE_EXPRESSION_ALTERNATIVE
4115 -- {CASE_EXPRESSION_ALTERNATIVE}
4117 -- Note that the Alternatives cannot include pragmas (this contrasts
4118 -- with the situation of case statements where pragmas are allowed).
4120 -- N_Case_Expression
4121 -- Sloc points to CASE
4122 -- Expression (Node3) (the selecting expression)
4123 -- Alternatives (List4) (the case expression alternatives)
4124 -- Do_Overflow_Check (Flag17-Sem)
4126 ----------------------------------------
4127 -- 4.5.7 Case Expression Alternative --
4128 ----------------------------------------
4130 -- CASE_EXPRESSION_ALTERNATIVE ::=
4131 -- when DISCRETE_CHOICE_LIST =>
4132 -- DEPENDENT_EXPRESSION
4134 -- N_Case_Expression_Alternative
4135 -- Sloc points to WHEN
4136 -- Actions (List1)
4137 -- Discrete_Choices (List4)
4138 -- Expression (Node3)
4139 -- Has_SP_Choice (Flag15-Sem)
4141 -- Note: The Actions field temporarily holds any actions associated with
4142 -- evaluation of the Expression. During expansion of the case expression
4143 -- these actions are wrapped into an N_Expressions_With_Actions node
4144 -- replacing the original expression.
4146 -- Note: this node never appears in the tree passed to the back end,
4147 -- since the expander converts case expressions into case statements.
4149 ---------------------------------
4150 -- 4.5.9 Quantified Expression --
4151 ---------------------------------
4153 -- QUANTIFIED_EXPRESSION ::=
4154 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4155 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4157 -- QUANTIFIER ::= all | some
4159 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4160 -- is present at a time, in which case the other one is empty.
4162 -- N_Quantified_Expression
4163 -- Sloc points to FOR
4164 -- Iterator_Specification (Node2)
4165 -- Loop_Parameter_Specification (Node4)
4166 -- Condition (Node1)
4167 -- All_Present (Flag15)
4169 --------------------------
4170 -- 4.6 Type Conversion --
4171 --------------------------
4173 -- TYPE_CONVERSION ::=
4174 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4176 -- In the (NAME) case, the name is stored as the expression
4178 -- Note: the parser never generates a type conversion node, since it
4179 -- looks like an indexed component which is generated by preference.
4180 -- The semantic pass must correct this misidentification.
4182 -- Gigi handles conversions that involve no change in the root type,
4183 -- and also all conversions from integer to floating-point types.
4184 -- Conversions from floating-point to integer are only handled in
4185 -- the case where Float_Truncate flag set. Other conversions from
4186 -- floating-point to integer (involving rounding) and all conversions
4187 -- involving fixed-point types are handled by the expander.
4189 -- Sprint syntax if Float_Truncate set: X^(Y)
4190 -- Sprint syntax if Conversion_OK set X?(Y)
4191 -- Sprint syntax if both flags set X?^(Y)
4193 -- Note: If either the operand or result type is fixed-point, Gigi will
4194 -- only see a type conversion node with Conversion_OK set. The front end
4195 -- takes care of all handling of small's for fixed-point conversions.
4197 -- N_Type_Conversion
4198 -- Sloc points to first token of subtype mark
4199 -- Subtype_Mark (Node4)
4200 -- Expression (Node3)
4201 -- Do_Tag_Check (Flag13-Sem)
4202 -- Do_Length_Check (Flag4-Sem)
4203 -- Do_Overflow_Check (Flag17-Sem)
4204 -- Float_Truncate (Flag11-Sem)
4205 -- Rounded_Result (Flag18-Sem)
4206 -- Conversion_OK (Flag14-Sem)
4207 -- plus fields for expression
4209 -- Note: if a range check is required, then the Do_Range_Check flag
4210 -- is set in the Expression with the check being done against the
4211 -- target type range (after the base type conversion, if any).
4213 -------------------------------
4214 -- 4.7 Qualified Expression --
4215 -------------------------------
4217 -- QUALIFIED_EXPRESSION ::=
4218 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4220 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4221 -- the expression, so the Expression field of this node always points
4222 -- to a parenthesized expression in this case (i.e. Paren_Count will
4223 -- always be non-zero for the referenced expression if it is not an
4224 -- aggregate).
4226 -- N_Qualified_Expression
4227 -- Sloc points to apostrophe
4228 -- Subtype_Mark (Node4)
4229 -- Expression (Node3) expression or aggregate
4230 -- plus fields for expression
4232 --------------------
4233 -- 4.8 Allocator --
4234 --------------------
4236 -- ALLOCATOR ::=
4237 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4238 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4240 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4242 -- Sprint syntax (when storage pool present)
4243 -- new xxx (storage_pool = pool)
4244 -- or
4245 -- new (subpool) xxx (storage_pool = pool)
4247 -- N_Allocator
4248 -- Sloc points to NEW
4249 -- Expression (Node3) subtype indication or qualified expression
4250 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4251 -- Storage_Pool (Node1-Sem)
4252 -- Procedure_To_Call (Node2-Sem)
4253 -- Null_Exclusion_Present (Flag11)
4254 -- No_Initialization (Flag13-Sem)
4255 -- Is_Static_Coextension (Flag14-Sem)
4256 -- Do_Storage_Check (Flag17-Sem)
4257 -- Is_Dynamic_Coextension (Flag18-Sem)
4258 -- plus fields for expression
4260 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4261 -- This flag has a special function in conjunction with the restriction
4262 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4263 -- is not set. This means that if a source allocator is replaced with
4264 -- a constructed allocator, the Comes_From_Source flag should be copied
4265 -- to the newly created allocator.
4267 ---------------------------------
4268 -- 5.1 Sequence Of Statements --
4269 ---------------------------------
4271 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4273 -- Note: Although the parser will not accept a declaration as a
4274 -- statement, the semantic analyzer may insert declarations (e.g.
4275 -- declarations of implicit types needed for execution of other
4276 -- statements) into a sequence of statements, so the code generator
4277 -- should be prepared to accept a declaration where a statement is
4278 -- expected. Note also that pragmas can appear as statements.
4280 --------------------
4281 -- 5.1 Statement --
4282 --------------------
4284 -- STATEMENT ::=
4285 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4287 -- There is no explicit node in the tree for a statement. Instead, the
4288 -- individual statement appears directly. Labels are treated as a
4289 -- kind of statement, i.e. they are linked into a statement list at
4290 -- the point they appear, so the labeled statement appears following
4291 -- the label or labels in the statement list.
4293 ---------------------------
4294 -- 5.1 Simple Statement --
4295 ---------------------------
4297 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4298 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4299 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4300 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4301 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4302 -- | ABORT_STATEMENT | RAISE_STATEMENT
4303 -- | CODE_STATEMENT
4305 -----------------------------
4306 -- 5.1 Compound Statement --
4307 -----------------------------
4309 -- COMPOUND_STATEMENT ::=
4310 -- IF_STATEMENT | CASE_STATEMENT
4311 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4312 -- | EXTENDED_RETURN_STATEMENT
4313 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4315 -------------------------
4316 -- 5.1 Null Statement --
4317 -------------------------
4319 -- NULL_STATEMENT ::= null;
4321 -- N_Null_Statement
4322 -- Sloc points to NULL
4324 ----------------
4325 -- 5.1 Label --
4326 ----------------
4328 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4330 -- Note that the occurrence of a label is not a defining identifier,
4331 -- but rather a referencing occurrence. The defining occurrence is
4332 -- in the implicit label declaration which occurs in the innermost
4333 -- enclosing block.
4335 -- N_Label
4336 -- Sloc points to <<
4337 -- Identifier (Node1) direct name of statement identifier
4338 -- Exception_Junk (Flag8-Sem)
4340 -- Note: Before Ada 2012, a label is always followed by a statement,
4341 -- and this is true in the tree even in Ada 2012 mode (the parser
4342 -- inserts a null statement marked with Comes_From_Source False).
4344 -------------------------------
4345 -- 5.1 Statement Identifier --
4346 -------------------------------
4348 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4350 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4351 -- (not an OPERATOR_SYMBOL)
4353 -------------------------------
4354 -- 5.2 Assignment Statement --
4355 -------------------------------
4357 -- ASSIGNMENT_STATEMENT ::=
4358 -- variable_NAME := EXPRESSION;
4360 -- N_Assignment_Statement
4361 -- Sloc points to :=
4362 -- Name (Node2)
4363 -- Expression (Node3)
4364 -- Do_Tag_Check (Flag13-Sem)
4365 -- Do_Length_Check (Flag4-Sem)
4366 -- Forwards_OK (Flag5-Sem)
4367 -- Backwards_OK (Flag6-Sem)
4368 -- No_Ctrl_Actions (Flag7-Sem)
4369 -- Componentwise_Assignment (Flag14-Sem)
4370 -- Suppress_Assignment_Checks (Flag18-Sem)
4372 -- Note: if a range check is required, then the Do_Range_Check flag
4373 -- is set in the Expression (right hand side), with the check being
4374 -- done against the type of the Name (left hand side).
4376 -- Note: the back end places some restrictions on the form of the
4377 -- Expression field. If the object being assigned to is Atomic, then
4378 -- the Expression may not have the form of an aggregate (since this
4379 -- might cause the back end to generate separate assignments). In this
4380 -- case the front end must generate an extra temporary and initialize
4381 -- this temporary as required (the temporary itself is not atomic).
4383 -----------------------
4384 -- 5.3 If Statement --
4385 -----------------------
4387 -- IF_STATEMENT ::=
4388 -- if CONDITION then
4389 -- SEQUENCE_OF_STATEMENTS
4390 -- {elsif CONDITION then
4391 -- SEQUENCE_OF_STATEMENTS}
4392 -- [else
4393 -- SEQUENCE_OF_STATEMENTS]
4394 -- end if;
4396 -- Gigi restriction: This expander ensures that the type of the
4397 -- Condition fields is always Standard.Boolean, even if the type
4398 -- in the source is some non-standard boolean type.
4400 -- N_If_Statement
4401 -- Sloc points to IF
4402 -- Condition (Node1)
4403 -- Then_Statements (List2)
4404 -- Elsif_Parts (List3) (set to No_List if none present)
4405 -- Else_Statements (List4) (set to No_List if no else part present)
4406 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4408 -- N_Elsif_Part
4409 -- Sloc points to ELSIF
4410 -- Condition (Node1)
4411 -- Then_Statements (List2)
4412 -- Condition_Actions (List3-Sem)
4414 --------------------
4415 -- 5.3 Condition --
4416 --------------------
4418 -- CONDITION ::= boolean_EXPRESSION
4420 -------------------------
4421 -- 5.4 Case Statement --
4422 -------------------------
4424 -- CASE_STATEMENT ::=
4425 -- case EXPRESSION is
4426 -- CASE_STATEMENT_ALTERNATIVE
4427 -- {CASE_STATEMENT_ALTERNATIVE}
4428 -- end case;
4430 -- Note: the Alternatives can contain pragmas. These only occur at
4431 -- the start of the list, since any pragmas occurring after the first
4432 -- alternative are absorbed into the corresponding statement sequence.
4434 -- N_Case_Statement
4435 -- Sloc points to CASE
4436 -- Expression (Node3)
4437 -- Alternatives (List4)
4438 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4440 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4441 -- followed by a statement, and this is true in the tree even in Ada
4442 -- 2012 mode (the parser inserts a null statement marked with the flag
4443 -- Comes_From_Source False).
4445 -------------------------------------
4446 -- 5.4 Case Statement Alternative --
4447 -------------------------------------
4449 -- CASE_STATEMENT_ALTERNATIVE ::=
4450 -- when DISCRETE_CHOICE_LIST =>
4451 -- SEQUENCE_OF_STATEMENTS
4453 -- N_Case_Statement_Alternative
4454 -- Sloc points to WHEN
4455 -- Discrete_Choices (List4)
4456 -- Statements (List3)
4457 -- Has_SP_Choice (Flag15-Sem)
4459 -- Note: in the list of Discrete_Choices, the tree passed to the back
4460 -- end does not have choice entries corresponding to names of statically
4461 -- predicated subtypes. Such entries are always expanded out to the list
4462 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
4463 -- mode does not have this expansion, and has the original choices.
4465 -------------------------
4466 -- 5.5 Loop Statement --
4467 -------------------------
4469 -- LOOP_STATEMENT ::=
4470 -- [loop_STATEMENT_IDENTIFIER :]
4471 -- [ITERATION_SCHEME] loop
4472 -- SEQUENCE_OF_STATEMENTS
4473 -- end loop [loop_IDENTIFIER];
4475 -- Note: The occurrence of a loop label is not a defining identifier
4476 -- but rather a referencing occurrence. The defining occurrence is in
4477 -- the implicit label declaration which occurs in the innermost
4478 -- enclosing block.
4480 -- Note: there is always a loop statement identifier present in
4481 -- the tree, even if none was given in the source. In the case where
4482 -- no loop identifier is given in the source, the parser creates
4483 -- a name of the form _Loop_n, where n is a decimal integer (the
4484 -- two underlines ensure that the loop names created in this manner
4485 -- do not conflict with any user defined identifiers), and the flag
4486 -- Has_Created_Identifier is set to True. The only exception to the
4487 -- rule that all loop statement nodes have identifiers occurs for
4488 -- loops constructed by the expander, and the semantic analyzer will
4489 -- create and supply dummy loop identifiers in these cases.
4491 -- N_Loop_Statement
4492 -- Sloc points to LOOP
4493 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4494 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4495 -- Statements (List3)
4496 -- End_Label (Node4)
4497 -- Has_Created_Identifier (Flag15)
4498 -- Is_Null_Loop (Flag16)
4499 -- Suppress_Loop_Warnings (Flag17)
4501 -- Note: the parser fills in the Identifier field if there is an
4502 -- explicit loop identifier. Otherwise the parser leaves this field
4503 -- set to Empty, and then the semantic processing for a loop statement
4504 -- creates an identifier, setting the Has_Created_Identifier flag to
4505 -- True. So after semantic analysis, the Identifier is always set,
4506 -- referencing an identifier whose entity has an Ekind of E_Loop.
4508 ---------------------------
4509 -- 5.5 Iteration Scheme --
4510 ---------------------------
4512 -- ITERATION_SCHEME ::=
4513 -- while CONDITION
4514 -- | for LOOP_PARAMETER_SPECIFICATION
4515 -- | for ITERATOR_SPECIFICATION
4517 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4518 -- is present at a time, in which case the other one is empty. Both are
4519 -- empty in the case of a WHILE loop.
4521 -- Gigi restriction: This expander ensures that the type of the
4522 -- Condition field is always Standard.Boolean, even if the type
4523 -- in the source is some non-standard boolean type.
4525 -- N_Iteration_Scheme
4526 -- Sloc points to WHILE or FOR
4527 -- Condition (Node1) (set to Empty if FOR case)
4528 -- Condition_Actions (List3-Sem)
4529 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
4530 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4532 ---------------------------------------
4533 -- 5.5 Loop Parameter Specification --
4534 ---------------------------------------
4536 -- LOOP_PARAMETER_SPECIFICATION ::=
4537 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4539 -- N_Loop_Parameter_Specification
4540 -- Sloc points to first identifier
4541 -- Defining_Identifier (Node1)
4542 -- Reverse_Present (Flag15)
4543 -- Discrete_Subtype_Definition (Node4)
4545 -----------------------------------
4546 -- 5.5.1 Iterator Specification --
4547 -----------------------------------
4549 -- ITERATOR_SPECIFICATION ::=
4550 -- DEFINING_IDENTIFIER in [reverse] NAME
4551 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4553 -- N_Iterator_Specification
4554 -- Sloc points to defining identifier
4555 -- Defining_Identifier (Node1)
4556 -- Name (Node2)
4557 -- Reverse_Present (Flag15)
4558 -- Of_Present (Flag16)
4559 -- Subtype_Indication (Node5)
4561 -- Note: The Of_Present flag distinguishes the two forms
4563 --------------------------
4564 -- 5.6 Block Statement --
4565 --------------------------
4567 -- BLOCK_STATEMENT ::=
4568 -- [block_STATEMENT_IDENTIFIER:]
4569 -- [declare
4570 -- DECLARATIVE_PART]
4571 -- begin
4572 -- HANDLED_SEQUENCE_OF_STATEMENTS
4573 -- end [block_IDENTIFIER];
4575 -- Note that the occurrence of a block identifier is not a defining
4576 -- identifier, but rather a referencing occurrence. The defining
4577 -- occurrence is an E_Block entity declared by the implicit label
4578 -- declaration which occurs in the innermost enclosing block statement
4579 -- or body; the block identifier denotes that E_Block.
4581 -- For block statements that come from source code, there is always a
4582 -- block statement identifier present in the tree, denoting an
4583 -- E_Block. In the case where no block identifier is given in the
4584 -- source, the parser creates a name of the form B_n, where n is a
4585 -- decimal integer, and the flag Has_Created_Identifier is set to
4586 -- True. Blocks constructed by the expander usually have no identifier,
4587 -- and no corresponding entity.
4589 -- Note: the block statement created for an extended return statement
4590 -- has an entity, and this entity is an E_Return_Statement, rather than
4591 -- the usual E_Block.
4593 -- Note: Exception_Junk is set for the wrapping blocks created during
4594 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4596 -- Note: from a control flow viewpoint, a block statement defines an
4597 -- extended basic block, i.e. the entry of the block dominates every
4598 -- statement in the sequence. When generating new statements with
4599 -- exception handlers in the expander at the end of a sequence that
4600 -- comes from source code, it can be necessary to wrap them all in a
4601 -- block statement in order to expose the implicit control flow to
4602 -- gigi and thus prevent it from issuing bogus control flow warnings.
4604 -- N_Block_Statement
4605 -- Sloc points to DECLARE or BEGIN
4606 -- Identifier (Node1) block direct name (set to Empty if not present)
4607 -- Declarations (List2) (set to No_List if no DECLARE part)
4608 -- Handled_Statement_Sequence (Node4)
4609 -- Is_Task_Master (Flag5-Sem)
4610 -- Activation_Chain_Entity (Node3-Sem)
4611 -- Has_Created_Identifier (Flag15)
4612 -- Is_Task_Allocation_Block (Flag6)
4613 -- Is_Asynchronous_Call_Block (Flag7)
4614 -- Exception_Junk (Flag8-Sem)
4615 -- Is_Finalization_Wrapper (Flag9-Sem)
4617 -------------------------
4618 -- 5.7 Exit Statement --
4619 -------------------------
4621 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4623 -- Gigi restriction: This expander ensures that the type of the
4624 -- Condition field is always Standard.Boolean, even if the type
4625 -- in the source is some non-standard boolean type.
4627 -- N_Exit_Statement
4628 -- Sloc points to EXIT
4629 -- Name (Node2) (set to Empty if no loop name present)
4630 -- Condition (Node1) (set to Empty if no WHEN part present)
4631 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
4633 -------------------------
4634 -- 5.9 Goto Statement --
4635 -------------------------
4637 -- GOTO_STATEMENT ::= goto label_NAME;
4639 -- N_Goto_Statement
4640 -- Sloc points to GOTO
4641 -- Name (Node2)
4642 -- Exception_Junk (Flag8-Sem)
4644 ---------------------------------
4645 -- 6.1 Subprogram Declaration --
4646 ---------------------------------
4648 -- SUBPROGRAM_DECLARATION ::=
4649 -- SUBPROGRAM_SPECIFICATION
4650 -- [ASPECT_SPECIFICATIONS];
4652 -- N_Subprogram_Declaration
4653 -- Sloc points to FUNCTION or PROCEDURE
4654 -- Specification (Node1)
4655 -- Body_To_Inline (Node3-Sem)
4656 -- Corresponding_Body (Node5-Sem)
4657 -- Parent_Spec (Node4-Sem)
4659 ------------------------------------------
4660 -- 6.1 Abstract Subprogram Declaration --
4661 ------------------------------------------
4663 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4664 -- SUBPROGRAM_SPECIFICATION is abstract
4665 -- [ASPECT_SPECIFICATIONS];
4667 -- N_Abstract_Subprogram_Declaration
4668 -- Sloc points to ABSTRACT
4669 -- Specification (Node1)
4671 -----------------------------------
4672 -- 6.1 Subprogram Specification --
4673 -----------------------------------
4675 -- SUBPROGRAM_SPECIFICATION ::=
4676 -- [[not] overriding]
4677 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4678 -- | [[not] overriding]
4679 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4681 -- Note: there are no separate nodes for the profiles, instead the
4682 -- information appears directly in the following nodes.
4684 -- N_Function_Specification
4685 -- Sloc points to FUNCTION
4686 -- Defining_Unit_Name (Node1) (the designator)
4687 -- Elaboration_Boolean (Node2-Sem)
4688 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4689 -- Null_Exclusion_Present (Flag11)
4690 -- Result_Definition (Node4) for result subtype
4691 -- Generic_Parent (Node5-Sem)
4692 -- Must_Override (Flag14) set if overriding indicator present
4693 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4695 -- N_Procedure_Specification
4696 -- Sloc points to PROCEDURE
4697 -- Defining_Unit_Name (Node1)
4698 -- Elaboration_Boolean (Node2-Sem)
4699 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4700 -- Generic_Parent (Node5-Sem)
4701 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4702 -- Must_Override (Flag14) set if overriding indicator present
4703 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4705 -- Note: overriding indicator is an Ada 2005 feature
4707 ---------------------
4708 -- 6.1 Designator --
4709 ---------------------
4711 -- DESIGNATOR ::=
4712 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4714 -- Designators that are simply identifiers or operator symbols appear
4715 -- directly in the tree in this form. The following node is used only
4716 -- in the case where the designator has a parent unit name component.
4718 -- N_Designator
4719 -- Sloc points to period
4720 -- Name (Node2) holds the parent unit name. Note that this is always
4721 -- non-Empty, since this node is only used for the case where a
4722 -- parent library unit package name is present.
4723 -- Identifier (Node1)
4725 -- Note that the identifier can also be an operator symbol here
4727 ------------------------------
4728 -- 6.1 Defining Designator --
4729 ------------------------------
4731 -- DEFINING_DESIGNATOR ::=
4732 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4734 -------------------------------------
4735 -- 6.1 Defining Program Unit Name --
4736 -------------------------------------
4738 -- DEFINING_PROGRAM_UNIT_NAME ::=
4739 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4741 -- The parent unit name is present only in the case of a child unit
4742 -- name (permissible only for Ada 95 for a library level unit, i.e.
4743 -- a unit at scope level one). If no such name is present, the defining
4744 -- program unit name is represented simply as the defining identifier.
4745 -- In the child unit case, the following node is used to represent the
4746 -- child unit name.
4748 -- N_Defining_Program_Unit_Name
4749 -- Sloc points to period
4750 -- Name (Node2) holds the parent unit name. Note that this is always
4751 -- non-Empty, since this node is only used for the case where a
4752 -- parent unit name is present.
4753 -- Defining_Identifier (Node1)
4755 --------------------------
4756 -- 6.1 Operator Symbol --
4757 --------------------------
4759 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4761 -- Note: the fields of the N_Operator_Symbol node are laid out to
4762 -- match the corresponding fields of an N_Character_Literal node. This
4763 -- allows easy conversion of the operator symbol node into a character
4764 -- literal node in the case where a string constant of the form of an
4765 -- operator symbol is scanned out as such, but turns out semantically
4766 -- to be a string literal that is not an operator. For details see
4767 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4769 -- N_Operator_Symbol
4770 -- Sloc points to literal
4771 -- Chars (Name1) contains the Name_Id for the operator symbol
4772 -- Strval (Str3) Id of string value. This is used if the operator
4773 -- symbol turns out to be a normal string after all.
4774 -- Entity (Node4-Sem)
4775 -- Associated_Node (Node4-Sem)
4776 -- Has_Private_View (Flag11-Sem) set in generic units.
4777 -- Etype (Node5-Sem)
4779 -- Note: the Strval field may be set to No_String for generated
4780 -- operator symbols that are known not to be string literals
4781 -- semantically.
4783 -----------------------------------
4784 -- 6.1 Defining Operator Symbol --
4785 -----------------------------------
4787 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4789 -- A defining operator symbol is an entity, which has additional
4790 -- fields depending on the setting of the Ekind field. These
4791 -- additional fields are defined (and access subprograms declared)
4792 -- in package Einfo.
4794 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4795 -- are deliberately layed out to match the layout of fields in an
4796 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4797 -- an operator symbol node into a defining operator symbol node.
4798 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4799 -- for further details.
4801 -- N_Defining_Operator_Symbol
4802 -- Sloc points to literal
4803 -- Chars (Name1) contains the Name_Id for the operator symbol
4804 -- Next_Entity (Node2-Sem)
4805 -- Scope (Node3-Sem)
4806 -- Etype (Node5-Sem)
4808 ----------------------------
4809 -- 6.1 Parameter Profile --
4810 ----------------------------
4812 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4814 ---------------------------------------
4815 -- 6.1 Parameter and Result Profile --
4816 ---------------------------------------
4818 -- PARAMETER_AND_RESULT_PROFILE ::=
4819 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4820 -- | [FORMAL_PART] return ACCESS_DEFINITION
4822 -- There is no explicit node in the tree for a parameter and result
4823 -- profile. Instead the information appears directly in the parent.
4825 ----------------------
4826 -- 6.1 Formal Part --
4827 ----------------------
4829 -- FORMAL_PART ::=
4830 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4832 ----------------------------------
4833 -- 6.1 Parameter Specification --
4834 ----------------------------------
4836 -- PARAMETER_SPECIFICATION ::=
4837 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
4838 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
4839 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4840 -- [:= DEFAULT_EXPRESSION]
4842 -- Although the syntax allows multiple identifiers in the list, the
4843 -- semantics is as though successive specifications were given with
4844 -- identical type definition and expression components. To simplify
4845 -- semantic processing, the parser represents a multiple declaration
4846 -- case as a sequence of single Specifications, using the More_Ids and
4847 -- Prev_Ids flags to preserve the original source form as described
4848 -- in the section on "Handling of Defining Identifier Lists".
4850 -- ALIASED can only be present in Ada 2012 mode
4852 -- N_Parameter_Specification
4853 -- Sloc points to first identifier
4854 -- Defining_Identifier (Node1)
4855 -- Aliased_Present (Flag4)
4856 -- In_Present (Flag15)
4857 -- Out_Present (Flag17)
4858 -- Null_Exclusion_Present (Flag11)
4859 -- Parameter_Type (Node2) subtype mark or access definition
4860 -- Expression (Node3) (set to Empty if no default expression present)
4861 -- Do_Accessibility_Check (Flag13-Sem)
4862 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4863 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4864 -- Default_Expression (Node5-Sem)
4866 ---------------
4867 -- 6.1 Mode --
4868 ---------------
4870 -- MODE ::= [in] | in out | out
4872 -- There is no explicit node in the tree for the Mode. Instead the
4873 -- In_Present and Out_Present flags are set in the parent node to
4874 -- record the presence of keywords specifying the mode.
4876 --------------------------
4877 -- 6.3 Subprogram Body --
4878 --------------------------
4880 -- SUBPROGRAM_BODY ::=
4881 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
4882 -- DECLARATIVE_PART
4883 -- begin
4884 -- HANDLED_SEQUENCE_OF_STATEMENTS
4885 -- end [DESIGNATOR];
4887 -- N_Subprogram_Body
4888 -- Sloc points to FUNCTION or PROCEDURE
4889 -- Specification (Node1)
4890 -- Declarations (List2)
4891 -- Handled_Statement_Sequence (Node4)
4892 -- Activation_Chain_Entity (Node3-Sem)
4893 -- Corresponding_Spec (Node5-Sem)
4894 -- Acts_As_Spec (Flag4-Sem)
4895 -- Bad_Is_Detected (Flag15) used only by parser
4896 -- Do_Storage_Check (Flag17-Sem)
4897 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4898 -- Is_Entry_Barrier_Function (Flag8-Sem)
4899 -- Is_Task_Master (Flag5-Sem)
4900 -- Was_Originally_Stub (Flag13-Sem)
4901 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4903 -------------------------
4904 -- Expression Function --
4905 -------------------------
4907 -- This is an Ada 2012 extension, we put it here for now, to be labeled
4908 -- and put in its proper section when we know exactly where that is!
4910 -- EXPRESSION_FUNCTION ::=
4911 -- FUNCTION SPECIFICATION IS (EXPRESSION)
4912 -- [ASPECT_SPECIFICATIONS];
4914 -- N_Expression_Function
4915 -- Sloc points to FUNCTION
4916 -- Specification (Node1)
4917 -- Expression (Node3)
4918 -- Corresponding_Spec (Node5-Sem)
4920 -----------------------------------
4921 -- 6.4 Procedure Call Statement --
4922 -----------------------------------
4924 -- PROCEDURE_CALL_STATEMENT ::=
4925 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4927 -- Note: the reason that a procedure call has expression fields is
4928 -- that it semantically resembles an expression, e.g. overloading is
4929 -- allowed and a type is concocted for semantic processing purposes.
4930 -- Certain of these fields, such as Parens are not relevant, but it
4931 -- is easier to just supply all of them together!
4933 -- N_Procedure_Call_Statement
4934 -- Sloc points to first token of name or prefix
4935 -- Name (Node2) stores name or prefix
4936 -- Parameter_Associations (List3) (set to No_List if no
4937 -- actual parameter part)
4938 -- First_Named_Actual (Node4-Sem)
4939 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4940 -- Do_Tag_Check (Flag13-Sem)
4941 -- No_Elaboration_Check (Flag14-Sem)
4942 -- Parameter_List_Truncated (Flag17-Sem)
4943 -- ABE_Is_Certain (Flag18-Sem)
4944 -- plus fields for expression
4946 -- If any IN parameter requires a range check, then the corresponding
4947 -- argument expression has the Do_Range_Check flag set, and the range
4948 -- check is done against the formal type. Note that this argument
4949 -- expression may appear directly in the Parameter_Associations list,
4950 -- or may be a descendent of an N_Parameter_Association node that
4951 -- appears in this list.
4953 ------------------------
4954 -- 6.4 Function Call --
4955 ------------------------
4957 -- FUNCTION_CALL ::=
4958 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4960 -- Note: the parser may generate an indexed component node or simply
4961 -- a name node instead of a function call node. The semantic pass must
4962 -- correct this misidentification.
4964 -- N_Function_Call
4965 -- Sloc points to first token of name or prefix
4966 -- Name (Node2) stores name or prefix
4967 -- Parameter_Associations (List3) (set to No_List if no
4968 -- actual parameter part)
4969 -- First_Named_Actual (Node4-Sem)
4970 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4971 -- In_Assertion_Expression (Flag4-Sem)
4972 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4973 -- Do_Tag_Check (Flag13-Sem)
4974 -- No_Elaboration_Check (Flag14-Sem)
4975 -- Parameter_List_Truncated (Flag17-Sem)
4976 -- ABE_Is_Certain (Flag18-Sem)
4977 -- plus fields for expression
4979 --------------------------------
4980 -- 6.4 Actual Parameter Part --
4981 --------------------------------
4983 -- ACTUAL_PARAMETER_PART ::=
4984 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4986 --------------------------------
4987 -- 6.4 Parameter Association --
4988 --------------------------------
4990 -- PARAMETER_ASSOCIATION ::=
4991 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4993 -- Note: the N_Parameter_Association node is built only if a formal
4994 -- parameter selector name is present, otherwise the parameter
4995 -- association appears in the tree simply as the node for the
4996 -- explicit actual parameter.
4998 -- N_Parameter_Association
4999 -- Sloc points to formal parameter
5000 -- Selector_Name (Node2) (always non-Empty)
5001 -- Explicit_Actual_Parameter (Node3)
5002 -- Next_Named_Actual (Node4-Sem)
5003 -- Is_Accessibility_Actual (Flag13-Sem)
5005 ---------------------------
5006 -- 6.4 Actual Parameter --
5007 ---------------------------
5009 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
5011 ---------------------------
5012 -- 6.5 Return Statement --
5013 ---------------------------
5015 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5017 -- EXTENDED_RETURN_STATEMENT ::=
5018 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5019 -- [:= EXPRESSION] [do
5020 -- HANDLED_SEQUENCE_OF_STATEMENTS
5021 -- end return];
5023 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5025 -- The term "return statement" is defined in 6.5 to mean either a
5026 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5027 -- the use of this term, since it used to mean someting else in earlier
5028 -- versions of Ada.
5030 -- N_Simple_Return_Statement
5031 -- Sloc points to RETURN
5032 -- Return_Statement_Entity (Node5-Sem)
5033 -- Expression (Node3) (set to Empty if no expression present)
5034 -- Storage_Pool (Node1-Sem)
5035 -- Procedure_To_Call (Node2-Sem)
5036 -- Do_Tag_Check (Flag13-Sem)
5037 -- By_Ref (Flag5-Sem)
5038 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5040 -- Note: Return_Statement_Entity points to an E_Return_Statement
5042 -- If a range check is required, then Do_Range_Check is set on the
5043 -- Expression. The check is against the return subtype of the function.
5045 -- N_Extended_Return_Statement
5046 -- Sloc points to RETURN
5047 -- Return_Statement_Entity (Node5-Sem)
5048 -- Return_Object_Declarations (List3)
5049 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5050 -- Storage_Pool (Node1-Sem)
5051 -- Procedure_To_Call (Node2-Sem)
5052 -- Do_Tag_Check (Flag13-Sem)
5053 -- By_Ref (Flag5-Sem)
5055 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5057 -- Note that Return_Object_Declarations is a list containing the
5058 -- N_Object_Declaration -- see comment on this field above.
5060 -- The declared object will have Is_Return_Object = True.
5062 -- There is no such syntactic category as return_object_declaration
5063 -- in the RM. Return_Object_Declarations represents this portion of
5064 -- the syntax for EXTENDED_RETURN_STATEMENT:
5065 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5066 -- [:= EXPRESSION]
5068 -- There are two entities associated with an extended_return_statement:
5069 -- the Return_Statement_Entity represents the statement itself, and the
5070 -- Defining_Identifier of the Object_Declaration in
5071 -- Return_Object_Declarations represents the object being
5072 -- returned. N_Simple_Return_Statement has only the former.
5074 ------------------------------
5075 -- 7.1 Package Declaration --
5076 ------------------------------
5078 -- PACKAGE_DECLARATION ::=
5079 -- PACKAGE_SPECIFICATION;
5081 -- Note: the activation chain entity for a package spec is used for
5082 -- all tasks declared in the package spec, or in the package body.
5084 -- N_Package_Declaration
5085 -- Sloc points to PACKAGE
5086 -- Specification (Node1)
5087 -- Corresponding_Body (Node5-Sem)
5088 -- Parent_Spec (Node4-Sem)
5089 -- Activation_Chain_Entity (Node3-Sem)
5091 --------------------------------
5092 -- 7.1 Package Specification --
5093 --------------------------------
5095 -- PACKAGE_SPECIFICATION ::=
5096 -- package DEFINING_PROGRAM_UNIT_NAME
5097 -- [ASPECT_SPECIFICATIONS]
5098 -- is
5099 -- {BASIC_DECLARATIVE_ITEM}
5100 -- [private
5101 -- {BASIC_DECLARATIVE_ITEM}]
5102 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5104 -- N_Package_Specification
5105 -- Sloc points to PACKAGE
5106 -- Defining_Unit_Name (Node1)
5107 -- Visible_Declarations (List2)
5108 -- Private_Declarations (List3) (set to No_List if no private
5109 -- part present)
5110 -- End_Label (Node4)
5111 -- Generic_Parent (Node5-Sem)
5112 -- Limited_View_Installed (Flag18-Sem)
5114 -----------------------
5115 -- 7.1 Package Body --
5116 -----------------------
5118 -- PACKAGE_BODY ::=
5119 -- package body DEFINING_PROGRAM_UNIT_NAME
5120 -- [ASPECT_SPECIFICATIONS]
5121 -- is
5122 -- DECLARATIVE_PART
5123 -- [begin
5124 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5125 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5127 -- N_Package_Body
5128 -- Sloc points to PACKAGE
5129 -- Defining_Unit_Name (Node1)
5130 -- Declarations (List2)
5131 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5132 -- Corresponding_Spec (Node5-Sem)
5133 -- Was_Originally_Stub (Flag13-Sem)
5135 -- Note: if a source level package does not contain a handled sequence
5136 -- of statements, then the parser supplies a dummy one with a null
5137 -- sequence of statements. Comes_From_Source will be False in this
5138 -- constructed sequence. The reason we need this is for the End_Label
5139 -- field in the HSS.
5141 -----------------------------------
5142 -- 7.4 Private Type Declaration --
5143 -----------------------------------
5145 -- PRIVATE_TYPE_DECLARATION ::=
5146 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5147 -- is [[abstract] tagged] [limited] private
5148 -- [ASPECT_SPECIFICATIONS];
5150 -- Note: TAGGED is not permitted in Ada 83 mode
5152 -- N_Private_Type_Declaration
5153 -- Sloc points to TYPE
5154 -- Defining_Identifier (Node1)
5155 -- Discriminant_Specifications (List4) (set to No_List if no
5156 -- discriminant part)
5157 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5158 -- Abstract_Present (Flag4)
5159 -- Tagged_Present (Flag15)
5160 -- Limited_Present (Flag17)
5162 ----------------------------------------
5163 -- 7.4 Private Extension Declaration --
5164 ----------------------------------------
5166 -- PRIVATE_EXTENSION_DECLARATION ::=
5167 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5168 -- [abstract] [limited | synchronized]
5169 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5170 -- with private [ASPECT_SPECIFICATIONS];
5172 -- Note: LIMITED, and private extension declarations are not allowed
5173 -- in Ada 83 mode.
5175 -- N_Private_Extension_Declaration
5176 -- Sloc points to TYPE
5177 -- Defining_Identifier (Node1)
5178 -- Discriminant_Specifications (List4) (set to No_List if no
5179 -- discriminant part)
5180 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5181 -- Abstract_Present (Flag4)
5182 -- Limited_Present (Flag17)
5183 -- Synchronized_Present (Flag7)
5184 -- Subtype_Indication (Node5)
5185 -- Interface_List (List2) (set to No_List if none)
5187 ---------------------
5188 -- 8.4 Use Clause --
5189 ---------------------
5191 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5193 -----------------------------
5194 -- 8.4 Use Package Clause --
5195 -----------------------------
5197 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5199 -- N_Use_Package_Clause
5200 -- Sloc points to USE
5201 -- Names (List2)
5202 -- Next_Use_Clause (Node3-Sem)
5203 -- Hidden_By_Use_Clause (Elist4-Sem)
5205 --------------------------
5206 -- 8.4 Use Type Clause --
5207 --------------------------
5209 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5211 -- Note: use type clause is not permitted in Ada 83 mode
5213 -- Note: the ALL keyword can appear only in Ada 2012 mode
5215 -- N_Use_Type_Clause
5216 -- Sloc points to USE
5217 -- Subtype_Marks (List2)
5218 -- Next_Use_Clause (Node3-Sem)
5219 -- Hidden_By_Use_Clause (Elist4-Sem)
5220 -- Used_Operations (Elist5-Sem)
5221 -- All_Present (Flag15)
5223 -------------------------------
5224 -- 8.5 Renaming Declaration --
5225 -------------------------------
5227 -- RENAMING_DECLARATION ::=
5228 -- OBJECT_RENAMING_DECLARATION
5229 -- | EXCEPTION_RENAMING_DECLARATION
5230 -- | PACKAGE_RENAMING_DECLARATION
5231 -- | SUBPROGRAM_RENAMING_DECLARATION
5232 -- | GENERIC_RENAMING_DECLARATION
5234 --------------------------------------
5235 -- 8.5 Object Renaming Declaration --
5236 --------------------------------------
5238 -- OBJECT_RENAMING_DECLARATION ::=
5239 -- DEFINING_IDENTIFIER :
5240 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5241 -- [ASPECT_SPECIFICATIONS];
5242 -- | DEFINING_IDENTIFIER :
5243 -- ACCESS_DEFINITION renames object_NAME
5244 -- [ASPECT_SPECIFICATIONS];
5246 -- Note: Access_Definition is an optional field that gives support to
5247 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5248 -- Subtype_Indication field or else the Access_Definition field.
5250 -- N_Object_Renaming_Declaration
5251 -- Sloc points to first identifier
5252 -- Defining_Identifier (Node1)
5253 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5254 -- Subtype_Mark (Node4) (set to Empty if not present)
5255 -- Access_Definition (Node3) (set to Empty if not present)
5256 -- Name (Node2)
5257 -- Corresponding_Generic_Association (Node5-Sem)
5259 -----------------------------------------
5260 -- 8.5 Exception Renaming Declaration --
5261 -----------------------------------------
5263 -- EXCEPTION_RENAMING_DECLARATION ::=
5264 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5265 -- [ASPECT_SPECIFICATIONS];
5267 -- N_Exception_Renaming_Declaration
5268 -- Sloc points to first identifier
5269 -- Defining_Identifier (Node1)
5270 -- Name (Node2)
5272 ---------------------------------------
5273 -- 8.5 Package Renaming Declaration --
5274 ---------------------------------------
5276 -- PACKAGE_RENAMING_DECLARATION ::=
5277 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5278 -- [ASPECT_SPECIFICATIONS];
5280 -- N_Package_Renaming_Declaration
5281 -- Sloc points to PACKAGE
5282 -- Defining_Unit_Name (Node1)
5283 -- Name (Node2)
5284 -- Parent_Spec (Node4-Sem)
5286 ------------------------------------------
5287 -- 8.5 Subprogram Renaming Declaration --
5288 ------------------------------------------
5290 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5291 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5292 -- [ASPECT_SPECIFICATIONS];
5294 -- N_Subprogram_Renaming_Declaration
5295 -- Sloc points to RENAMES
5296 -- Specification (Node1)
5297 -- Name (Node2)
5298 -- Parent_Spec (Node4-Sem)
5299 -- Corresponding_Spec (Node5-Sem)
5300 -- Corresponding_Formal_Spec (Node3-Sem)
5301 -- From_Default (Flag6-Sem)
5303 -----------------------------------------
5304 -- 8.5.5 Generic Renaming Declaration --
5305 -----------------------------------------
5307 -- GENERIC_RENAMING_DECLARATION ::=
5308 -- generic package DEFINING_PROGRAM_UNIT_NAME
5309 -- renames generic_package_NAME
5310 -- [ASPECT_SPECIFICATIONS];
5311 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5312 -- renames generic_procedure_NAME
5313 -- [ASPECT_SPECIFICATIONS];
5314 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5315 -- renames generic_function_NAME
5316 -- [ASPECT_SPECIFICATIONS];
5318 -- N_Generic_Package_Renaming_Declaration
5319 -- Sloc points to GENERIC
5320 -- Defining_Unit_Name (Node1)
5321 -- Name (Node2)
5322 -- Parent_Spec (Node4-Sem)
5324 -- N_Generic_Procedure_Renaming_Declaration
5325 -- Sloc points to GENERIC
5326 -- Defining_Unit_Name (Node1)
5327 -- Name (Node2)
5328 -- Parent_Spec (Node4-Sem)
5330 -- N_Generic_Function_Renaming_Declaration
5331 -- Sloc points to GENERIC
5332 -- Defining_Unit_Name (Node1)
5333 -- Name (Node2)
5334 -- Parent_Spec (Node4-Sem)
5336 --------------------------------
5337 -- 9.1 Task Type Declaration --
5338 --------------------------------
5340 -- TASK_TYPE_DECLARATION ::=
5341 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5342 -- [ASPECT_SPECIFICATIONS]
5343 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5345 -- N_Task_Type_Declaration
5346 -- Sloc points to TASK
5347 -- Defining_Identifier (Node1)
5348 -- Discriminant_Specifications (List4) (set to No_List if no
5349 -- discriminant part)
5350 -- Interface_List (List2) (set to No_List if none)
5351 -- Task_Definition (Node3) (set to Empty if not present)
5352 -- Corresponding_Body (Node5-Sem)
5354 ----------------------------------
5355 -- 9.1 Single Task Declaration --
5356 ----------------------------------
5358 -- SINGLE_TASK_DECLARATION ::=
5359 -- task DEFINING_IDENTIFIER
5360 -- [ASPECT_SPECIFICATIONS]
5361 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5363 -- N_Single_Task_Declaration
5364 -- Sloc points to TASK
5365 -- Defining_Identifier (Node1)
5366 -- Interface_List (List2) (set to No_List if none)
5367 -- Task_Definition (Node3) (set to Empty if not present)
5369 --------------------------
5370 -- 9.1 Task Definition --
5371 --------------------------
5373 -- TASK_DEFINITION ::=
5374 -- {TASK_ITEM}
5375 -- [private
5376 -- {TASK_ITEM}]
5377 -- end [task_IDENTIFIER]
5379 -- Note: as a result of semantic analysis, the list of task items can
5380 -- include implicit type declarations resulting from entry families.
5382 -- N_Task_Definition
5383 -- Sloc points to first token of task definition
5384 -- Visible_Declarations (List2)
5385 -- Private_Declarations (List3) (set to No_List if no private part)
5386 -- End_Label (Node4)
5387 -- Has_Storage_Size_Pragma (Flag5-Sem)
5388 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5390 --------------------
5391 -- 9.1 Task Item --
5392 --------------------
5394 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5396 --------------------
5397 -- 9.1 Task Body --
5398 --------------------
5400 -- TASK_BODY ::=
5401 -- task body task_DEFINING_IDENTIFIER
5402 -- [ASPECT_SPECIFICATIONS]
5403 -- is
5404 -- DECLARATIVE_PART
5405 -- begin
5406 -- HANDLED_SEQUENCE_OF_STATEMENTS
5407 -- end [task_IDENTIFIER];
5409 -- Gigi restriction: This node never appears
5411 -- N_Task_Body
5412 -- Sloc points to TASK
5413 -- Defining_Identifier (Node1)
5414 -- Declarations (List2)
5415 -- Handled_Statement_Sequence (Node4)
5416 -- Is_Task_Master (Flag5-Sem)
5417 -- Activation_Chain_Entity (Node3-Sem)
5418 -- Corresponding_Spec (Node5-Sem)
5419 -- Was_Originally_Stub (Flag13-Sem)
5421 -------------------------------------
5422 -- 9.4 Protected Type Declaration --
5423 -------------------------------------
5425 -- PROTECTED_TYPE_DECLARATION ::=
5426 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5427 -- [ASPECT_SPECIFICATIONS]
5428 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5430 -- Note: protected type declarations are not permitted in Ada 83 mode
5432 -- N_Protected_Type_Declaration
5433 -- Sloc points to PROTECTED
5434 -- Defining_Identifier (Node1)
5435 -- Discriminant_Specifications (List4) (set to No_List if no
5436 -- discriminant part)
5437 -- Interface_List (List2) (set to No_List if none)
5438 -- Protected_Definition (Node3)
5439 -- Corresponding_Body (Node5-Sem)
5441 ---------------------------------------
5442 -- 9.4 Single Protected Declaration --
5443 ---------------------------------------
5445 -- SINGLE_PROTECTED_DECLARATION ::=
5446 -- protected DEFINING_IDENTIFIER
5447 -- [ASPECT_SPECIFICATIONS]
5448 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5450 -- Note: single protected declarations are not allowed in Ada 83 mode
5452 -- N_Single_Protected_Declaration
5453 -- Sloc points to PROTECTED
5454 -- Defining_Identifier (Node1)
5455 -- Interface_List (List2) (set to No_List if none)
5456 -- Protected_Definition (Node3)
5458 -------------------------------
5459 -- 9.4 Protected Definition --
5460 -------------------------------
5462 -- PROTECTED_DEFINITION ::=
5463 -- {PROTECTED_OPERATION_DECLARATION}
5464 -- [private
5465 -- {PROTECTED_ELEMENT_DECLARATION}]
5466 -- end [protected_IDENTIFIER]
5468 -- N_Protected_Definition
5469 -- Sloc points to first token of protected definition
5470 -- Visible_Declarations (List2)
5471 -- Private_Declarations (List3) (set to No_List if no private part)
5472 -- End_Label (Node4)
5474 ------------------------------------------
5475 -- 9.4 Protected Operation Declaration --
5476 ------------------------------------------
5478 -- PROTECTED_OPERATION_DECLARATION ::=
5479 -- SUBPROGRAM_DECLARATION
5480 -- | ENTRY_DECLARATION
5481 -- | REPRESENTATION_CLAUSE
5483 ----------------------------------------
5484 -- 9.4 Protected Element Declaration --
5485 ----------------------------------------
5487 -- PROTECTED_ELEMENT_DECLARATION ::=
5488 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5490 -------------------------
5491 -- 9.4 Protected Body --
5492 -------------------------
5494 -- PROTECTED_BODY ::=
5495 -- protected body DEFINING_IDENTIFIER
5496 -- [ASPECT_SPECIFICATIONS];
5497 -- is
5498 -- {PROTECTED_OPERATION_ITEM}
5499 -- end [protected_IDENTIFIER];
5501 -- Note: protected bodies are not allowed in Ada 83 mode
5503 -- Gigi restriction: This node never appears
5505 -- N_Protected_Body
5506 -- Sloc points to PROTECTED
5507 -- Defining_Identifier (Node1)
5508 -- Declarations (List2) protected operation items (and pragmas)
5509 -- End_Label (Node4)
5510 -- Corresponding_Spec (Node5-Sem)
5511 -- Was_Originally_Stub (Flag13-Sem)
5513 -----------------------------------
5514 -- 9.4 Protected Operation Item --
5515 -----------------------------------
5517 -- PROTECTED_OPERATION_ITEM ::=
5518 -- SUBPROGRAM_DECLARATION
5519 -- | SUBPROGRAM_BODY
5520 -- | ENTRY_BODY
5521 -- | REPRESENTATION_CLAUSE
5523 ------------------------------
5524 -- 9.5.2 Entry Declaration --
5525 ------------------------------
5527 -- ENTRY_DECLARATION ::=
5528 -- [[not] overriding]
5529 -- entry DEFINING_IDENTIFIER
5530 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
5531 -- [ASPECT_SPECIFICATIONS];
5533 -- N_Entry_Declaration
5534 -- Sloc points to ENTRY
5535 -- Defining_Identifier (Node1)
5536 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5537 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5538 -- Corresponding_Body (Node5-Sem)
5539 -- Must_Override (Flag14) set if overriding indicator present
5540 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5542 -- Note: overriding indicator is an Ada 2005 feature
5544 -----------------------------
5545 -- 9.5.2 Accept statement --
5546 -----------------------------
5548 -- ACCEPT_STATEMENT ::=
5549 -- accept entry_DIRECT_NAME
5550 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5551 -- HANDLED_SEQUENCE_OF_STATEMENTS
5552 -- end [entry_IDENTIFIER]];
5554 -- Gigi restriction: This node never appears
5556 -- Note: there are no explicit declarations allowed in an accept
5557 -- statement. However, the implicit declarations for any statement
5558 -- identifiers (labels and block/loop identifiers) are declarations
5559 -- that belong logically to the accept statement, and that is why
5560 -- there is a Declarations field in this node.
5562 -- N_Accept_Statement
5563 -- Sloc points to ACCEPT
5564 -- Entry_Direct_Name (Node1)
5565 -- Entry_Index (Node5) (set to Empty if not present)
5566 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5567 -- Handled_Statement_Sequence (Node4)
5568 -- Declarations (List2) (set to No_List if no declarations)
5570 ------------------------
5571 -- 9.5.2 Entry Index --
5572 ------------------------
5574 -- ENTRY_INDEX ::= EXPRESSION
5576 -----------------------
5577 -- 9.5.2 Entry Body --
5578 -----------------------
5580 -- ENTRY_BODY ::=
5581 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5582 -- DECLARATIVE_PART
5583 -- begin
5584 -- HANDLED_SEQUENCE_OF_STATEMENTS
5585 -- end [entry_IDENTIFIER];
5587 -- ENTRY_BARRIER ::= when CONDITION
5589 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5590 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5591 -- too full (it would otherwise have too many fields)
5593 -- Gigi restriction: This node never appears
5595 -- N_Entry_Body
5596 -- Sloc points to ENTRY
5597 -- Defining_Identifier (Node1)
5598 -- Entry_Body_Formal_Part (Node5)
5599 -- Declarations (List2)
5600 -- Handled_Statement_Sequence (Node4)
5601 -- Activation_Chain_Entity (Node3-Sem)
5603 -----------------------------------
5604 -- 9.5.2 Entry Body Formal Part --
5605 -----------------------------------
5607 -- ENTRY_BODY_FORMAL_PART ::=
5608 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5610 -- Note that an entry body formal part node is present even if it is
5611 -- empty. This reflects the grammar, in which it is the components of
5612 -- the entry body formal part that are optional, not the entry body
5613 -- formal part itself. Also this means that the barrier condition
5614 -- always has somewhere to be stored.
5616 -- Gigi restriction: This node never appears
5618 -- N_Entry_Body_Formal_Part
5619 -- Sloc points to first token
5620 -- Entry_Index_Specification (Node4) (set to Empty if not present)
5621 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5622 -- Condition (Node1) from entry barrier of entry body
5624 --------------------------
5625 -- 9.5.2 Entry Barrier --
5626 --------------------------
5628 -- ENTRY_BARRIER ::= when CONDITION
5630 --------------------------------------
5631 -- 9.5.2 Entry Index Specification --
5632 --------------------------------------
5634 -- ENTRY_INDEX_SPECIFICATION ::=
5635 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5637 -- Gigi restriction: This node never appears
5639 -- N_Entry_Index_Specification
5640 -- Sloc points to FOR
5641 -- Defining_Identifier (Node1)
5642 -- Discrete_Subtype_Definition (Node4)
5644 ---------------------------------
5645 -- 9.5.3 Entry Call Statement --
5646 ---------------------------------
5648 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5650 -- The parser may generate a procedure call for this construct. The
5651 -- semantic pass must correct this misidentification where needed.
5653 -- Gigi restriction: This node never appears
5655 -- N_Entry_Call_Statement
5656 -- Sloc points to first token of name
5657 -- Name (Node2)
5658 -- Parameter_Associations (List3) (set to No_List if no
5659 -- actual parameter part)
5660 -- First_Named_Actual (Node4-Sem)
5662 ------------------------------
5663 -- 9.5.4 Requeue Statement --
5664 ------------------------------
5666 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5668 -- Note: requeue statements are not permitted in Ada 83 mode
5670 -- Gigi restriction: This node never appears
5672 -- N_Requeue_Statement
5673 -- Sloc points to REQUEUE
5674 -- Name (Node2)
5675 -- Abort_Present (Flag15)
5677 --------------------------
5678 -- 9.6 Delay Statement --
5679 --------------------------
5681 -- DELAY_STATEMENT ::=
5682 -- DELAY_UNTIL_STATEMENT
5683 -- | DELAY_RELATIVE_STATEMENT
5685 --------------------------------
5686 -- 9.6 Delay Until Statement --
5687 --------------------------------
5689 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5691 -- Note: delay until statements are not permitted in Ada 83 mode
5693 -- Gigi restriction: This node never appears
5695 -- N_Delay_Until_Statement
5696 -- Sloc points to DELAY
5697 -- Expression (Node3)
5699 -----------------------------------
5700 -- 9.6 Delay Relative Statement --
5701 -----------------------------------
5703 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5705 -- Gigi restriction: This node never appears
5707 -- N_Delay_Relative_Statement
5708 -- Sloc points to DELAY
5709 -- Expression (Node3)
5711 ---------------------------
5712 -- 9.7 Select Statement --
5713 ---------------------------
5715 -- SELECT_STATEMENT ::=
5716 -- SELECTIVE_ACCEPT
5717 -- | TIMED_ENTRY_CALL
5718 -- | CONDITIONAL_ENTRY_CALL
5719 -- | ASYNCHRONOUS_SELECT
5721 -----------------------------
5722 -- 9.7.1 Selective Accept --
5723 -----------------------------
5725 -- SELECTIVE_ACCEPT ::=
5726 -- select
5727 -- [GUARD]
5728 -- SELECT_ALTERNATIVE
5729 -- {or
5730 -- [GUARD]
5731 -- SELECT_ALTERNATIVE}
5732 -- [else
5733 -- SEQUENCE_OF_STATEMENTS]
5734 -- end select;
5736 -- Gigi restriction: This node never appears
5738 -- Note: the guard expression, if present, appears in the node for
5739 -- the select alternative.
5741 -- N_Selective_Accept
5742 -- Sloc points to SELECT
5743 -- Select_Alternatives (List1)
5744 -- Else_Statements (List4) (set to No_List if no else part)
5746 ------------------
5747 -- 9.7.1 Guard --
5748 ------------------
5750 -- GUARD ::= when CONDITION =>
5752 -- As noted above, the CONDITION that is part of a GUARD is included
5753 -- in the node for the select alternative for convenience.
5755 -------------------------------
5756 -- 9.7.1 Select Alternative --
5757 -------------------------------
5759 -- SELECT_ALTERNATIVE ::=
5760 -- ACCEPT_ALTERNATIVE
5761 -- | DELAY_ALTERNATIVE
5762 -- | TERMINATE_ALTERNATIVE
5764 -------------------------------
5765 -- 9.7.1 Accept Alternative --
5766 -------------------------------
5768 -- ACCEPT_ALTERNATIVE ::=
5769 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5771 -- Gigi restriction: This node never appears
5773 -- N_Accept_Alternative
5774 -- Sloc points to ACCEPT
5775 -- Accept_Statement (Node2)
5776 -- Condition (Node1) from the guard (set to Empty if no guard present)
5777 -- Statements (List3) (set to Empty_List if no statements)
5778 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5779 -- Accept_Handler_Records (List5-Sem)
5781 ------------------------------
5782 -- 9.7.1 Delay Alternative --
5783 ------------------------------
5785 -- DELAY_ALTERNATIVE ::=
5786 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5788 -- Gigi restriction: This node never appears
5790 -- N_Delay_Alternative
5791 -- Sloc points to DELAY
5792 -- Delay_Statement (Node2)
5793 -- Condition (Node1) from the guard (set to Empty if no guard present)
5794 -- Statements (List3) (set to Empty_List if no statements)
5795 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5797 ----------------------------------
5798 -- 9.7.1 Terminate Alternative --
5799 ----------------------------------
5801 -- TERMINATE_ALTERNATIVE ::= terminate;
5803 -- Gigi restriction: This node never appears
5805 -- N_Terminate_Alternative
5806 -- Sloc points to TERMINATE
5807 -- Condition (Node1) from the guard (set to Empty if no guard present)
5808 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5809 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5811 -----------------------------
5812 -- 9.7.2 Timed Entry Call --
5813 -----------------------------
5815 -- TIMED_ENTRY_CALL ::=
5816 -- select
5817 -- ENTRY_CALL_ALTERNATIVE
5818 -- or
5819 -- DELAY_ALTERNATIVE
5820 -- end select;
5822 -- Gigi restriction: This node never appears
5824 -- N_Timed_Entry_Call
5825 -- Sloc points to SELECT
5826 -- Entry_Call_Alternative (Node1)
5827 -- Delay_Alternative (Node4)
5829 -----------------------------------
5830 -- 9.7.2 Entry Call Alternative --
5831 -----------------------------------
5833 -- ENTRY_CALL_ALTERNATIVE ::=
5834 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5836 -- PROCEDURE_OR_ENTRY_CALL ::=
5837 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5839 -- Gigi restriction: This node never appears
5841 -- N_Entry_Call_Alternative
5842 -- Sloc points to first token of entry call statement
5843 -- Entry_Call_Statement (Node1)
5844 -- Statements (List3) (set to Empty_List if no statements)
5845 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5847 -----------------------------------
5848 -- 9.7.3 Conditional Entry Call --
5849 -----------------------------------
5851 -- CONDITIONAL_ENTRY_CALL ::=
5852 -- select
5853 -- ENTRY_CALL_ALTERNATIVE
5854 -- else
5855 -- SEQUENCE_OF_STATEMENTS
5856 -- end select;
5858 -- Gigi restriction: This node never appears
5860 -- N_Conditional_Entry_Call
5861 -- Sloc points to SELECT
5862 -- Entry_Call_Alternative (Node1)
5863 -- Else_Statements (List4)
5865 --------------------------------
5866 -- 9.7.4 Asynchronous Select --
5867 --------------------------------
5869 -- ASYNCHRONOUS_SELECT ::=
5870 -- select
5871 -- TRIGGERING_ALTERNATIVE
5872 -- then abort
5873 -- ABORTABLE_PART
5874 -- end select;
5876 -- Note: asynchronous select is not permitted in Ada 83 mode
5878 -- Gigi restriction: This node never appears
5880 -- N_Asynchronous_Select
5881 -- Sloc points to SELECT
5882 -- Triggering_Alternative (Node1)
5883 -- Abortable_Part (Node2)
5885 -----------------------------------
5886 -- 9.7.4 Triggering Alternative --
5887 -----------------------------------
5889 -- TRIGGERING_ALTERNATIVE ::=
5890 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5892 -- Gigi restriction: This node never appears
5894 -- N_Triggering_Alternative
5895 -- Sloc points to first token of triggering statement
5896 -- Triggering_Statement (Node1)
5897 -- Statements (List3) (set to Empty_List if no statements)
5898 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5900 ---------------------------------
5901 -- 9.7.4 Triggering Statement --
5902 ---------------------------------
5904 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5906 ---------------------------
5907 -- 9.7.4 Abortable Part --
5908 ---------------------------
5910 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5912 -- Gigi restriction: This node never appears
5914 -- N_Abortable_Part
5915 -- Sloc points to ABORT
5916 -- Statements (List3)
5918 --------------------------
5919 -- 9.8 Abort Statement --
5920 --------------------------
5922 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5924 -- Gigi restriction: This node never appears
5926 -- N_Abort_Statement
5927 -- Sloc points to ABORT
5928 -- Names (List2)
5930 -------------------------
5931 -- 10.1.1 Compilation --
5932 -------------------------
5934 -- COMPILATION ::= {COMPILATION_UNIT}
5936 -- There is no explicit node in the tree for a compilation, since in
5937 -- general the compiler is processing only a single compilation unit
5938 -- at a time. It is possible to parse multiple units in syntax check
5939 -- only mode, but the trees are discarded in that case.
5941 ------------------------------
5942 -- 10.1.1 Compilation Unit --
5943 ------------------------------
5945 -- COMPILATION_UNIT ::=
5946 -- CONTEXT_CLAUSE LIBRARY_ITEM
5947 -- | CONTEXT_CLAUSE SUBUNIT
5949 -- The N_Compilation_Unit node itself represents the above syntax.
5950 -- However, there are two additional items not reflected in the above
5951 -- syntax. First we have the global declarations that are added by the
5952 -- code generator. These are outer level declarations (so they cannot
5953 -- be represented as being inside the units). An example is the wrapper
5954 -- subprograms that are created to do ABE checking. As always a list of
5955 -- declarations can contain actions as well (i.e. statements), and such
5956 -- statements are executed as part of the elaboration of the unit. Note
5957 -- that all such declarations are elaborated before the library unit.
5959 -- Similarly, certain actions need to be elaborated at the completion
5960 -- of elaboration of the library unit (notably the statement that sets
5961 -- the Boolean flag indicating that elaboration is complete).
5963 -- The third item not reflected in the syntax is pragmas that appear
5964 -- after the compilation unit. As always pragmas are a problem since
5965 -- they are not part of the formal syntax, but can be stuck into the
5966 -- source following a set of ad hoc rules, and we have to find an ad
5967 -- hoc way of sticking them into the tree. For pragmas that appear
5968 -- before the library unit, we just consider them to be part of the
5969 -- context clause, and pragmas can appear in the Context_Items list
5970 -- of the compilation unit. However, pragmas can also appear after
5971 -- the library item.
5973 -- To deal with all these problems, we create an auxiliary node for
5974 -- a compilation unit, referenced from the N_Compilation_Unit node,
5975 -- that contains these items.
5977 -- N_Compilation_Unit
5978 -- Sloc points to first token of defining unit name
5979 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
5980 -- Context_Items (List1) context items and pragmas preceding unit
5981 -- Private_Present (Flag15) set if library unit has private keyword
5982 -- Unit (Node2) library item or subunit
5983 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5984 -- Has_No_Elaboration_Code (Flag17-Sem)
5985 -- Body_Required (Flag13-Sem) set for spec if body is required
5986 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5987 -- Context_Pending (Flag16-Sem)
5988 -- First_Inlined_Subprogram (Node3-Sem)
5989 -- Has_Pragma_Suppress_All (Flag14-Sem)
5991 -- N_Compilation_Unit_Aux
5992 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
5993 -- Declarations (List2) (set to No_List if no global declarations)
5994 -- Actions (List1) (set to No_List if no actions)
5995 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
5996 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5997 -- Default_Storage_Pool (Node3-Sem)
5999 --------------------------
6000 -- 10.1.1 Library Item --
6001 --------------------------
6003 -- LIBRARY_ITEM ::=
6004 -- [private] LIBRARY_UNIT_DECLARATION
6005 -- | LIBRARY_UNIT_BODY
6006 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6008 -- Note: PRIVATE is not allowed in Ada 83 mode
6010 -- There is no explicit node in the tree for library item, instead
6011 -- the declaration or body, and the flag for private if present,
6012 -- appear in the N_Compilation_Unit node.
6014 --------------------------------------
6015 -- 10.1.1 Library Unit Declaration --
6016 --------------------------------------
6018 -- LIBRARY_UNIT_DECLARATION ::=
6019 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6020 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6022 -----------------------------------------------
6023 -- 10.1.1 Library Unit Renaming Declaration --
6024 -----------------------------------------------
6026 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6027 -- PACKAGE_RENAMING_DECLARATION
6028 -- | GENERIC_RENAMING_DECLARATION
6029 -- | SUBPROGRAM_RENAMING_DECLARATION
6031 -------------------------------
6032 -- 10.1.1 Library unit body --
6033 -------------------------------
6035 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6037 ------------------------------
6038 -- 10.1.1 Parent Unit Name --
6039 ------------------------------
6041 -- PARENT_UNIT_NAME ::= NAME
6043 ----------------------------
6044 -- 10.1.2 Context clause --
6045 ----------------------------
6047 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6049 -- The context clause can include pragmas, and any pragmas that appear
6050 -- before the context clause proper (i.e. all configuration pragmas,
6051 -- also appear at the front of this list).
6053 --------------------------
6054 -- 10.1.2 Context_Item --
6055 --------------------------
6057 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6059 -------------------------
6060 -- 10.1.2 With clause --
6061 -------------------------
6063 -- WITH_CLAUSE ::=
6064 -- with library_unit_NAME {,library_unit_NAME};
6066 -- A separate With clause is built for each name, so that we have
6067 -- a Corresponding_Spec field for each with'ed spec. The flags
6068 -- First_Name and Last_Name are used to reconstruct the exact
6069 -- source form. When a list of names appears in one with clause,
6070 -- the first name in the list has First_Name set, and the last
6071 -- has Last_Name set. If the with clause has only one name, then
6072 -- both of the flags First_Name and Last_Name are set in this name.
6074 -- Note: in the case of implicit with's that are installed by the
6075 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6076 -- set to Standard_Location, but it is incorrect to test the Sloc
6077 -- to find out if a with clause is implicit, test the flag instead.
6079 -- N_With_Clause
6080 -- Sloc points to first token of library unit name
6081 -- Withed_Body (Node1-Sem)
6082 -- Name (Node2)
6083 -- Next_Implicit_With (Node3-Sem)
6084 -- Library_Unit (Node4-Sem)
6085 -- Corresponding_Spec (Node5-Sem)
6086 -- First_Name (Flag5) (set to True if first name or only one name)
6087 -- Last_Name (Flag6) (set to True if last name or only one name)
6088 -- Context_Installed (Flag13-Sem)
6089 -- Elaborate_Present (Flag4-Sem)
6090 -- Elaborate_All_Present (Flag14-Sem)
6091 -- Elaborate_All_Desirable (Flag9-Sem)
6092 -- Elaborate_Desirable (Flag11-Sem)
6093 -- Private_Present (Flag15) set if with_clause has private keyword
6094 -- Implicit_With (Flag16-Sem)
6095 -- Implicit_With_From_Instantiation (Flag12-Sem)
6096 -- Limited_Present (Flag17) set if LIMITED is present
6097 -- Limited_View_Installed (Flag18-Sem)
6098 -- Unreferenced_In_Spec (Flag7-Sem)
6099 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6101 -- Note: Limited_Present and Limited_View_Installed are used to support
6102 -- the implementation of Ada 2005 (AI-50217).
6104 -- Similarly, Private_Present is used to support the implementation of
6105 -- Ada 2005 (AI-50262).
6107 ----------------------
6108 -- With_Type clause --
6109 ----------------------
6111 -- This is a GNAT extension, used to implement mutually recursive
6112 -- types declared in different packages.
6114 -- Note: this is now obsolete. The functionality of this construct
6115 -- is now implemented by the Ada 2005 limited_with_clause.
6117 ---------------------
6118 -- 10.2 Body stub --
6119 ---------------------
6121 -- BODY_STUB ::=
6122 -- SUBPROGRAM_BODY_STUB
6123 -- | PACKAGE_BODY_STUB
6124 -- | TASK_BODY_STUB
6125 -- | PROTECTED_BODY_STUB
6127 ----------------------------------
6128 -- 10.1.3 Subprogram Body Stub --
6129 ----------------------------------
6131 -- SUBPROGRAM_BODY_STUB ::=
6132 -- SUBPROGRAM_SPECIFICATION is separate
6133 -- [ASPECT_SPECIFICATION];
6135 -- N_Subprogram_Body_Stub
6136 -- Sloc points to FUNCTION or PROCEDURE
6137 -- Specification (Node1)
6138 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6139 -- Library_Unit (Node4-Sem) points to the subunit
6140 -- Corresponding_Body (Node5-Sem)
6142 -------------------------------
6143 -- 10.1.3 Package Body Stub --
6144 -------------------------------
6146 -- PACKAGE_BODY_STUB ::=
6147 -- package body DEFINING_IDENTIFIER is separate
6148 -- [ASPECT_SPECIFICATION];
6150 -- N_Package_Body_Stub
6151 -- Sloc points to PACKAGE
6152 -- Defining_Identifier (Node1)
6153 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6154 -- Library_Unit (Node4-Sem) points to the subunit
6155 -- Corresponding_Body (Node5-Sem)
6157 ----------------------------
6158 -- 10.1.3 Task Body Stub --
6159 ----------------------------
6161 -- TASK_BODY_STUB ::=
6162 -- task body DEFINING_IDENTIFIER is separate
6163 -- [ASPECT_SPECIFICATION];
6165 -- N_Task_Body_Stub
6166 -- Sloc points to TASK
6167 -- Defining_Identifier (Node1)
6168 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6169 -- Library_Unit (Node4-Sem) points to the subunit
6170 -- Corresponding_Body (Node5-Sem)
6172 ---------------------------------
6173 -- 10.1.3 Protected Body Stub --
6174 ---------------------------------
6176 -- PROTECTED_BODY_STUB ::=
6177 -- protected body DEFINING_IDENTIFIER is separate
6178 -- [ASPECT_SPECIFICATION];
6180 -- Note: protected body stubs are not allowed in Ada 83 mode
6182 -- N_Protected_Body_Stub
6183 -- Sloc points to PROTECTED
6184 -- Defining_Identifier (Node1)
6185 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6186 -- Library_Unit (Node4-Sem) points to the subunit
6187 -- Corresponding_Body (Node5-Sem)
6189 ---------------------
6190 -- 10.1.3 Subunit --
6191 ---------------------
6193 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6195 -- N_Subunit
6196 -- Sloc points to SEPARATE
6197 -- Name (Node2) is the name of the parent unit
6198 -- Proper_Body (Node1) is the subunit body
6199 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6201 ---------------------------------
6202 -- 11.1 Exception Declaration --
6203 ---------------------------------
6205 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6206 -- [ASPECT_SPECIFICATIONS];
6208 -- For consistency with object declarations etc., the parser converts
6209 -- the case of multiple identifiers being declared to a series of
6210 -- declarations in which the expression is copied, using the More_Ids
6211 -- and Prev_Ids flags to remember the source form as described in the
6212 -- section on "Handling of Defining Identifier Lists".
6214 -- N_Exception_Declaration
6215 -- Sloc points to EXCEPTION
6216 -- Defining_Identifier (Node1)
6217 -- Expression (Node3-Sem)
6218 -- Renaming_Exception (Node2-Sem)
6219 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6220 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6222 ------------------------------------------
6223 -- 11.2 Handled Sequence Of Statements --
6224 ------------------------------------------
6226 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6227 -- SEQUENCE_OF_STATEMENTS
6228 -- [exception
6229 -- EXCEPTION_HANDLER
6230 -- {EXCEPTION_HANDLER}]
6231 -- [at end
6232 -- cleanup_procedure_call (param, param, param, ...);]
6234 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6235 -- used only internally currently, but is considered to be syntactic.
6236 -- At the moment, the only cleanup action allowed is a single call to
6237 -- a parameterless procedure, and the Identifier field of the node is
6238 -- the procedure to be called. The cleanup action occurs whenever the
6239 -- sequence of statements is left for any reason. The possible reasons
6240 -- are:
6241 -- 1. reaching the end of the sequence
6242 -- 2. exit, return, or goto
6243 -- 3. exception or abort
6244 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6245 -- entirely in the back end. In this case, a handled sequence of
6246 -- statements with an "at end" cannot also have exception handlers.
6247 -- For other back ends, such as gcc with SJLJ and .NET, the
6248 -- implementation is split between the front end and back end; the front
6249 -- end implements 3, and the back end implements 1 and 2. In this case,
6250 -- if there is an "at end", the front end inserts the appropriate
6251 -- exception handler, and this handler takes precedence over "at end"
6252 -- in case of exception.
6254 -- The inserted exception handler is of the form:
6256 -- when all others =>
6257 -- cleanup;
6258 -- raise;
6260 -- where cleanup is the procedure to be called. The reason we do this is
6261 -- so that the front end can handle the necessary entries in the
6262 -- exception tables, and other exception handler actions required as
6263 -- part of the normal handling for exception handlers.
6265 -- The AT END cleanup handler protects only the sequence of statements
6266 -- (not the associated declarations of the parent), just like exception
6267 -- handlers. The big difference is that the cleanup procedure is called
6268 -- on either a normal or an abnormal exit from the statement sequence.
6270 -- Note: the list of Exception_Handlers can contain pragmas as well
6271 -- as actual handlers. In practice these pragmas can only occur at
6272 -- the start of the list, since any pragmas occurring later on will
6273 -- be included in the statement list of the corresponding handler.
6275 -- Note: although in the Ada syntax, the sequence of statements in
6276 -- a handled sequence of statements can only contain statements, we
6277 -- allow free mixing of declarations and statements in the resulting
6278 -- expanded tree. This is for example used to deal with the case of
6279 -- a cleanup procedure that must handle declarations as well as the
6280 -- statements of a block.
6282 -- N_Handled_Sequence_Of_Statements
6283 -- Sloc points to first token of first statement
6284 -- Statements (List3)
6285 -- End_Label (Node4) (set to Empty if expander generated)
6286 -- Exception_Handlers (List5) (set to No_List if none present)
6287 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6288 -- First_Real_Statement (Node2-Sem)
6290 -- Note: the parent always contains a Declarations field which contains
6291 -- declarations associated with the handled sequence of statements. This
6292 -- is true even in the case of an accept statement (see description of
6293 -- the N_Accept_Statement node).
6295 -- End_Label refers to the containing construct
6297 -----------------------------
6298 -- 11.2 Exception Handler --
6299 -----------------------------
6301 -- EXCEPTION_HANDLER ::=
6302 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6303 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6304 -- SEQUENCE_OF_STATEMENTS
6306 -- Note: choice parameter specification is not allowed in Ada 83 mode
6308 -- N_Exception_Handler
6309 -- Sloc points to WHEN
6310 -- Choice_Parameter (Node2) (set to Empty if not present)
6311 -- Exception_Choices (List4)
6312 -- Statements (List3)
6313 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6314 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6315 -- Local_Raise_Not_OK (Flag7-Sem)
6316 -- Has_Local_Raise (Flag8-Sem)
6318 ------------------------------------------
6319 -- 11.2 Choice parameter specification --
6320 ------------------------------------------
6322 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6324 ----------------------------
6325 -- 11.2 Exception Choice --
6326 ----------------------------
6328 -- EXCEPTION_CHOICE ::= exception_NAME | others
6330 -- Except in the case of OTHERS, no explicit node appears in the tree
6331 -- for exception choice. Instead the exception name appears directly.
6332 -- An OTHERS choice is represented by a N_Others_Choice node (see
6333 -- section 3.8.1.
6335 -- Note: for the exception choice created for an at end handler, the
6336 -- exception choice is an N_Others_Choice node with All_Others set.
6338 ---------------------------
6339 -- 11.3 Raise Statement --
6340 ---------------------------
6342 -- RAISE_STATEMENT ::= raise [exception_NAME];
6344 -- In Ada 2005, we have
6346 -- RAISE_STATEMENT ::=
6347 -- raise; | raise exception_NAME [with string_EXPRESSION];
6349 -- N_Raise_Statement
6350 -- Sloc points to RAISE
6351 -- Name (Node2) (set to Empty if no exception name present)
6352 -- Expression (Node3) (set to Empty if no expression present)
6353 -- From_At_End (Flag4-Sem)
6355 ----------------------------
6356 -- 11.3 Raise Expression --
6357 ----------------------------
6359 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6361 -- N_Raise_Expression
6362 -- Sloc points to RAISE
6363 -- Name (Node2) (always present)
6364 -- Expression (Node3) (set to Empty if no expression present)
6365 -- Convert_To_Return_False (Flag13-Sem)
6366 -- plus fields for expression
6368 -------------------------------
6369 -- 12.1 Generic Declaration --
6370 -------------------------------
6372 -- GENERIC_DECLARATION ::=
6373 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6375 ------------------------------------------
6376 -- 12.1 Generic Subprogram Declaration --
6377 ------------------------------------------
6379 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6380 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6381 -- [ASPECT_SPECIFICATIONS];
6383 -- Note: Generic_Formal_Declarations can include pragmas
6385 -- N_Generic_Subprogram_Declaration
6386 -- Sloc points to GENERIC
6387 -- Specification (Node1) subprogram specification
6388 -- Corresponding_Body (Node5-Sem)
6389 -- Generic_Formal_Declarations (List2) from generic formal part
6390 -- Parent_Spec (Node4-Sem)
6392 ---------------------------------------
6393 -- 12.1 Generic Package Declaration --
6394 ---------------------------------------
6396 -- GENERIC_PACKAGE_DECLARATION ::=
6397 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6398 -- [ASPECT_SPECIFICATIONS];
6400 -- Note: when we do generics right, the Activation_Chain_Entity entry
6401 -- for this node can be removed (since the expander won't see generic
6402 -- units any more)???.
6404 -- Note: Generic_Formal_Declarations can include pragmas
6406 -- N_Generic_Package_Declaration
6407 -- Sloc points to GENERIC
6408 -- Specification (Node1) package specification
6409 -- Corresponding_Body (Node5-Sem)
6410 -- Generic_Formal_Declarations (List2) from generic formal part
6411 -- Parent_Spec (Node4-Sem)
6412 -- Activation_Chain_Entity (Node3-Sem)
6414 -------------------------------
6415 -- 12.1 Generic Formal Part --
6416 -------------------------------
6418 -- GENERIC_FORMAL_PART ::=
6419 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6421 ------------------------------------------------
6422 -- 12.1 Generic Formal Parameter Declaration --
6423 ------------------------------------------------
6425 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6426 -- FORMAL_OBJECT_DECLARATION
6427 -- | FORMAL_TYPE_DECLARATION
6428 -- | FORMAL_SUBPROGRAM_DECLARATION
6429 -- | FORMAL_PACKAGE_DECLARATION
6431 ---------------------------------
6432 -- 12.3 Generic Instantiation --
6433 ---------------------------------
6435 -- GENERIC_INSTANTIATION ::=
6436 -- package DEFINING_PROGRAM_UNIT_NAME is
6437 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6438 -- [ASPECT_SPECIFICATIONS];
6439 -- | [[not] overriding]
6440 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6441 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6442 -- [ASPECT_SPECIFICATIONS];
6443 -- | [[not] overriding]
6444 -- function DEFINING_DESIGNATOR is
6445 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6446 -- [ASPECT_SPECIFICATIONS];
6448 -- N_Package_Instantiation
6449 -- Sloc points to PACKAGE
6450 -- Defining_Unit_Name (Node1)
6451 -- Name (Node2)
6452 -- Generic_Associations (List3) (set to No_List if no
6453 -- generic actual part)
6454 -- Parent_Spec (Node4-Sem)
6455 -- Instance_Spec (Node5-Sem)
6456 -- ABE_Is_Certain (Flag18-Sem)
6458 -- N_Procedure_Instantiation
6459 -- Sloc points to PROCEDURE
6460 -- Defining_Unit_Name (Node1)
6461 -- Name (Node2)
6462 -- Parent_Spec (Node4-Sem)
6463 -- Generic_Associations (List3) (set to No_List if no
6464 -- generic actual part)
6465 -- Instance_Spec (Node5-Sem)
6466 -- Must_Override (Flag14) set if overriding indicator present
6467 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6468 -- ABE_Is_Certain (Flag18-Sem)
6470 -- N_Function_Instantiation
6471 -- Sloc points to FUNCTION
6472 -- Defining_Unit_Name (Node1)
6473 -- Name (Node2)
6474 -- Generic_Associations (List3) (set to No_List if no
6475 -- generic actual part)
6476 -- Parent_Spec (Node4-Sem)
6477 -- Instance_Spec (Node5-Sem)
6478 -- Must_Override (Flag14) set if overriding indicator present
6479 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6480 -- ABE_Is_Certain (Flag18-Sem)
6482 -- Note: overriding indicator is an Ada 2005 feature
6484 -------------------------------
6485 -- 12.3 Generic Actual Part --
6486 -------------------------------
6488 -- GENERIC_ACTUAL_PART ::=
6489 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6491 -------------------------------
6492 -- 12.3 Generic Association --
6493 -------------------------------
6495 -- GENERIC_ASSOCIATION ::=
6496 -- [generic_formal_parameter_SELECTOR_NAME =>]
6498 -- Note: unlike the procedure call case, a generic association node
6499 -- is generated for every association, even if no formal parameter
6500 -- selector name is present. In this case the parser will leave the
6501 -- Selector_Name field set to Empty, to be filled in later by the
6502 -- semantic pass.
6504 -- In Ada 2005, a formal may be associated with a box, if the
6505 -- association is part of the list of actuals for a formal package.
6506 -- If the association is given by OTHERS => <>, the association is
6507 -- an N_Others_Choice.
6509 -- N_Generic_Association
6510 -- Sloc points to first token of generic association
6511 -- Selector_Name (Node2) (set to Empty if no formal
6512 -- parameter selector name)
6513 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6514 -- Box_Present (Flag15) (for formal_package associations with a box)
6516 ---------------------------------------------
6517 -- 12.3 Explicit Generic Actual Parameter --
6518 ---------------------------------------------
6520 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6521 -- EXPRESSION | variable_NAME | subprogram_NAME
6522 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
6524 -------------------------------------
6525 -- 12.4 Formal Object Declaration --
6526 -------------------------------------
6528 -- FORMAL_OBJECT_DECLARATION ::=
6529 -- DEFINING_IDENTIFIER_LIST :
6530 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6531 -- [ASPECT_SPECIFICATIONS];
6532 -- | DEFINING_IDENTIFIER_LIST :
6533 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6534 -- [ASPECT_SPECIFICATIONS];
6536 -- Although the syntax allows multiple identifiers in the list, the
6537 -- semantics is as though successive declarations were given with
6538 -- identical type definition and expression components. To simplify
6539 -- semantic processing, the parser represents a multiple declaration
6540 -- case as a sequence of single declarations, using the More_Ids and
6541 -- Prev_Ids flags to preserve the original source form as described
6542 -- in the section on "Handling of Defining Identifier Lists".
6544 -- N_Formal_Object_Declaration
6545 -- Sloc points to first identifier
6546 -- Defining_Identifier (Node1)
6547 -- In_Present (Flag15)
6548 -- Out_Present (Flag17)
6549 -- Null_Exclusion_Present (Flag11) (set to False if not present)
6550 -- Subtype_Mark (Node4) (set to Empty if not present)
6551 -- Access_Definition (Node3) (set to Empty if not present)
6552 -- Default_Expression (Node5) (set to Empty if no default expression)
6553 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6554 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6556 -----------------------------------
6557 -- 12.5 Formal Type Declaration --
6558 -----------------------------------
6560 -- FORMAL_TYPE_DECLARATION ::=
6561 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6562 -- is FORMAL_TYPE_DEFINITION
6563 -- [ASPECT_SPECIFICATIONS];
6564 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
6566 -- N_Formal_Type_Declaration
6567 -- Sloc points to TYPE
6568 -- Defining_Identifier (Node1)
6569 -- Formal_Type_Definition (Node3)
6570 -- Discriminant_Specifications (List4) (set to No_List if no
6571 -- discriminant part)
6572 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6574 ----------------------------------
6575 -- 12.5 Formal type definition --
6576 ----------------------------------
6578 -- FORMAL_TYPE_DEFINITION ::=
6579 -- FORMAL_PRIVATE_TYPE_DEFINITION
6580 -- | FORMAL_DERIVED_TYPE_DEFINITION
6581 -- | FORMAL_DISCRETE_TYPE_DEFINITION
6582 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6583 -- | FORMAL_MODULAR_TYPE_DEFINITION
6584 -- | FORMAL_FLOATING_POINT_DEFINITION
6585 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6586 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6587 -- | FORMAL_ARRAY_TYPE_DEFINITION
6588 -- | FORMAL_ACCESS_TYPE_DEFINITION
6589 -- | FORMAL_INTERFACE_TYPE_DEFINITION
6590 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
6592 -- The Ada 2012 syntax introduces two new non-terminals:
6593 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
6594 -- the latter category. Here we introduce an incomplete type definition
6595 -- in order to preserve as much as possible the existing structure.
6597 ---------------------------------------------
6598 -- 12.5.1 Formal Private Type Definition --
6599 ---------------------------------------------
6601 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
6602 -- [[abstract] tagged] [limited] private
6604 -- Note: TAGGED is not allowed in Ada 83 mode
6606 -- N_Formal_Private_Type_Definition
6607 -- Sloc points to PRIVATE
6608 -- Abstract_Present (Flag4)
6609 -- Tagged_Present (Flag15)
6610 -- Limited_Present (Flag17)
6612 --------------------------------------------
6613 -- 12.5.1 Formal Derived Type Definition --
6614 --------------------------------------------
6616 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
6617 -- [abstract] [limited | synchronized]
6618 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6619 -- Note: this construct is not allowed in Ada 83 mode
6621 -- N_Formal_Derived_Type_Definition
6622 -- Sloc points to NEW
6623 -- Subtype_Mark (Node4)
6624 -- Private_Present (Flag15)
6625 -- Abstract_Present (Flag4)
6626 -- Limited_Present (Flag17)
6627 -- Synchronized_Present (Flag7)
6628 -- Interface_List (List2) (set to No_List if none)
6630 -----------------------------------------------
6631 -- 12.5.1 Formal Incomplete Type Definition --
6632 -----------------------------------------------
6634 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
6636 -- N_Formal_Incomplete_Type_Definition
6637 -- Sloc points to identifier of parent
6638 -- Tagged_Present (Flag15)
6640 ---------------------------------------------
6641 -- 12.5.2 Formal Discrete Type Definition --
6642 ---------------------------------------------
6644 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6646 -- N_Formal_Discrete_Type_Definition
6647 -- Sloc points to (
6649 ---------------------------------------------------
6650 -- 12.5.2 Formal Signed Integer Type Definition --
6651 ---------------------------------------------------
6653 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6655 -- N_Formal_Signed_Integer_Type_Definition
6656 -- Sloc points to RANGE
6658 --------------------------------------------
6659 -- 12.5.2 Formal Modular Type Definition --
6660 --------------------------------------------
6662 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6664 -- N_Formal_Modular_Type_Definition
6665 -- Sloc points to MOD
6667 ----------------------------------------------
6668 -- 12.5.2 Formal Floating Point Definition --
6669 ----------------------------------------------
6671 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6673 -- N_Formal_Floating_Point_Definition
6674 -- Sloc points to DIGITS
6676 ----------------------------------------------------
6677 -- 12.5.2 Formal Ordinary Fixed Point Definition --
6678 ----------------------------------------------------
6680 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6682 -- N_Formal_Ordinary_Fixed_Point_Definition
6683 -- Sloc points to DELTA
6685 ---------------------------------------------------
6686 -- 12.5.2 Formal Decimal Fixed Point Definition --
6687 ---------------------------------------------------
6689 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6691 -- Note: formal decimal fixed point definition not allowed in Ada 83
6693 -- N_Formal_Decimal_Fixed_Point_Definition
6694 -- Sloc points to DELTA
6696 ------------------------------------------
6697 -- 12.5.3 Formal Array Type Definition --
6698 ------------------------------------------
6700 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6702 -------------------------------------------
6703 -- 12.5.4 Formal Access Type Definition --
6704 -------------------------------------------
6706 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6708 ----------------------------------------------
6709 -- 12.5.5 Formal Interface Type Definition --
6710 ----------------------------------------------
6712 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6714 -----------------------------------------
6715 -- 12.6 Formal Subprogram Declaration --
6716 -----------------------------------------
6718 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6719 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6720 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6722 --------------------------------------------------
6723 -- 12.6 Formal Concrete Subprogram Declaration --
6724 --------------------------------------------------
6726 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6727 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6728 -- [ASPECT_SPECIFICATIONS];
6730 -- N_Formal_Concrete_Subprogram_Declaration
6731 -- Sloc points to WITH
6732 -- Specification (Node1)
6733 -- Default_Name (Node2) (set to Empty if no subprogram default)
6734 -- Box_Present (Flag15)
6736 -- Note: if no subprogram default is present, then Name is set
6737 -- to Empty, and Box_Present is False.
6739 --------------------------------------------------
6740 -- 12.6 Formal Abstract Subprogram Declaration --
6741 --------------------------------------------------
6743 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6744 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6745 -- [ASPECT_SPECIFICATIONS];
6747 -- N_Formal_Abstract_Subprogram_Declaration
6748 -- Sloc points to WITH
6749 -- Specification (Node1)
6750 -- Default_Name (Node2) (set to Empty if no subprogram default)
6751 -- Box_Present (Flag15)
6753 -- Note: if no subprogram default is present, then Name is set
6754 -- to Empty, and Box_Present is False.
6756 ------------------------------
6757 -- 12.6 Subprogram Default --
6758 ------------------------------
6760 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6762 -- There is no separate node in the tree for a subprogram default.
6763 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6764 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6765 -- default name or box indication, as needed.
6767 ------------------------
6768 -- 12.6 Default Name --
6769 ------------------------
6771 -- DEFAULT_NAME ::= NAME
6773 --------------------------------------
6774 -- 12.7 Formal Package Declaration --
6775 --------------------------------------
6777 -- FORMAL_PACKAGE_DECLARATION ::=
6778 -- with package DEFINING_IDENTIFIER
6779 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
6780 -- [ASPECT_SPECIFICATIONS];
6782 -- Note: formal package declarations not allowed in Ada 83 mode
6784 -- N_Formal_Package_Declaration
6785 -- Sloc points to WITH
6786 -- Defining_Identifier (Node1)
6787 -- Name (Node2)
6788 -- Generic_Associations (List3) (set to No_List if (<>) case or
6789 -- empty generic actual part)
6790 -- Box_Present (Flag15)
6791 -- Instance_Spec (Node5-Sem)
6792 -- ABE_Is_Certain (Flag18-Sem)
6794 --------------------------------------
6795 -- 12.7 Formal Package Actual Part --
6796 --------------------------------------
6798 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6799 -- ([OTHERS] => <>)
6800 -- | [GENERIC_ACTUAL_PART]
6801 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6803 -- FORMAL_PACKAGE_ASSOCIATION ::=
6804 -- GENERIC_ASSOCIATION
6805 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6807 -- There is no explicit node in the tree for a formal package actual
6808 -- part. Instead the information appears in the parent node (i.e. the
6809 -- formal package declaration node itself).
6811 -- There is no explicit node for a formal package association. All of
6812 -- them are represented either by a generic association, possibly with
6813 -- Box_Present, or by an N_Others_Choice.
6815 ---------------------------------
6816 -- 13.1 Representation clause --
6817 ---------------------------------
6819 -- REPRESENTATION_CLAUSE ::=
6820 -- ATTRIBUTE_DEFINITION_CLAUSE
6821 -- | ENUMERATION_REPRESENTATION_CLAUSE
6822 -- | RECORD_REPRESENTATION_CLAUSE
6823 -- | AT_CLAUSE
6825 ----------------------
6826 -- 13.1 Local Name --
6827 ----------------------
6829 -- LOCAL_NAME :=
6830 -- DIRECT_NAME
6831 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6832 -- | library_unit_NAME
6834 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6835 -- as an attribute reference, which has essentially the same form.
6837 ---------------------------------------
6838 -- 13.3 Attribute definition clause --
6839 ---------------------------------------
6841 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6842 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6843 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6845 -- In Ada 83, the expression must be a simple expression and the
6846 -- local name must be a direct name.
6848 -- Note: the only attribute definition clause that is processed by
6849 -- gigi is an address clause. For all other cases, the information
6850 -- is extracted by the front end and either results in setting entity
6851 -- information, e.g. Esize for the Size clause, or in appropriate
6852 -- expansion actions (e.g. in the case of Storage_Size).
6854 -- For an address clause, Gigi constructs the appropriate addressing
6855 -- code. It also ensures that no aliasing optimizations are made
6856 -- for the object for which the address clause appears.
6858 -- Note: for an address clause used to achieve an overlay:
6860 -- A : Integer;
6861 -- B : Integer;
6862 -- for B'Address use A'Address;
6864 -- the above rule means that Gigi will ensure that no optimizations
6865 -- will be made for B that would violate the implementation advice
6866 -- of RM 13.3(19). However, this advice applies only to B and not
6867 -- to A, which seems unfortunate. The GNAT front end will mark the
6868 -- object A as volatile to also prevent unwanted optimization
6869 -- assumptions based on no aliasing being made for B.
6871 -- N_Attribute_Definition_Clause
6872 -- Sloc points to FOR
6873 -- Name (Node2) the local name
6874 -- Chars (Name1) the identifier name from the attribute designator
6875 -- Expression (Node3) the expression or name
6876 -- Entity (Node4-Sem)
6877 -- Next_Rep_Item (Node5-Sem)
6878 -- From_At_Mod (Flag4-Sem)
6879 -- Check_Address_Alignment (Flag11-Sem)
6880 -- From_Aspect_Specification (Flag13-Sem)
6881 -- Is_Delayed_Aspect (Flag14-Sem)
6882 -- Address_Warning_Posted (Flag18-Sem)
6884 -- Note: if From_Aspect_Specification is set, then Sloc points to the
6885 -- aspect name, and Entity is resolved already to reference the entity
6886 -- to which the aspect applies.
6888 -----------------------------------
6889 -- 13.3.1 Aspect Specifications --
6890 -----------------------------------
6892 -- We modify the RM grammar here, the RM grammar is:
6894 -- ASPECT_SPECIFICATION ::=
6895 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
6896 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
6898 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6900 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
6902 -- That's inconvenient, since there is no non-terminal name for a single
6903 -- entry in the list of aspects. So we use this grammar instead:
6905 -- ASPECT_SPECIFICATIONS ::=
6906 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
6908 -- ASPECT_SPECIFICATION =>
6909 -- ASPECT_MARK [=> ASPECT_DEFINITION]
6911 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6913 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
6915 -- See separate package Aspects for details on the incorporation of
6916 -- these nodes into the tree, and how aspect specifications for a given
6917 -- declaration node are associated with that node.
6919 -- N_Aspect_Specification
6920 -- Sloc points to aspect identifier
6921 -- Identifier (Node1) aspect identifier
6922 -- Aspect_Rep_Item (Node2-Sem)
6923 -- Expression (Node3) Aspect_Definition (set to Empty if none)
6924 -- Entity (Node4-Sem) entity to which the aspect applies
6925 -- Class_Present (Flag6) Set if 'Class present
6926 -- Next_Rep_Item (Node5-Sem)
6927 -- Split_PPC (Flag17) Set if split pre/post attribute
6928 -- Is_Boolean_Aspect (Flag16-Sem)
6929 -- Is_Checked (Flag11-Sem)
6930 -- Is_Delayed_Aspect (Flag14-Sem)
6931 -- Is_Disabled (Flag15-Sem)
6932 -- Is_Ignored (Flag9-Sem)
6934 -- Note: Aspect_Specification is an Ada 2012 feature
6936 -- Note: The Identifier serves to identify the aspect involved (it
6937 -- is the aspect whose name corresponds to the Chars field). This
6938 -- means that the other fields of this identifier are unused, and
6939 -- in particular we use the Entity field of this identifier to save
6940 -- a copy of the expression for visibility analysis, see spec of
6941 -- Sem_Ch13 for full details of this usage.
6943 -- In the case of aspects of the form xxx'Class, the aspect identifier
6944 -- is for xxx, and Class_Present is set to True.
6946 -- Note: When a Pre or Post aspect specification is processed, it is
6947 -- broken into AND THEN sections. The left most section has Split_PPC
6948 -- set to False, indicating that it is the original specification (e.g.
6949 -- for posting errors). For the other sections, Split_PPC is set True.
6951 ---------------------------------------------
6952 -- 13.4 Enumeration representation clause --
6953 ---------------------------------------------
6955 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
6956 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6958 -- In Ada 83, the name must be a direct name
6960 -- N_Enumeration_Representation_Clause
6961 -- Sloc points to FOR
6962 -- Identifier (Node1) direct name
6963 -- Array_Aggregate (Node3)
6964 -- Next_Rep_Item (Node5-Sem)
6966 ---------------------------------
6967 -- 13.4 Enumeration aggregate --
6968 ---------------------------------
6970 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6972 ------------------------------------------
6973 -- 13.5.1 Record representation clause --
6974 ------------------------------------------
6976 -- RECORD_REPRESENTATION_CLAUSE ::=
6977 -- for first_subtype_LOCAL_NAME use
6978 -- record [MOD_CLAUSE]
6979 -- {COMPONENT_CLAUSE}
6980 -- end record;
6982 -- Gigi restriction: Mod_Clause is always Empty (if present it is
6983 -- replaced by a corresponding Alignment attribute definition clause).
6985 -- Note: Component_Clauses can include pragmas
6987 -- N_Record_Representation_Clause
6988 -- Sloc points to FOR
6989 -- Identifier (Node1) direct name
6990 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
6991 -- Component_Clauses (List3)
6992 -- Next_Rep_Item (Node5-Sem)
6994 ------------------------------
6995 -- 13.5.1 Component clause --
6996 ------------------------------
6998 -- COMPONENT_CLAUSE ::=
6999 -- component_LOCAL_NAME at POSITION
7000 -- range FIRST_BIT .. LAST_BIT;
7002 -- N_Component_Clause
7003 -- Sloc points to AT
7004 -- Component_Name (Node1) points to Name or Attribute_Reference
7005 -- Position (Node2)
7006 -- First_Bit (Node3)
7007 -- Last_Bit (Node4)
7009 ----------------------
7010 -- 13.5.1 Position --
7011 ----------------------
7013 -- POSITION ::= static_EXPRESSION
7015 -----------------------
7016 -- 13.5.1 First_Bit --
7017 -----------------------
7019 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7021 ----------------------
7022 -- 13.5.1 Last_Bit --
7023 ----------------------
7025 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7027 --------------------------
7028 -- 13.8 Code statement --
7029 --------------------------
7031 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7033 -- Note: in GNAT, the qualified expression has the form
7035 -- Asm_Insn'(Asm (...));
7037 -- See package System.Machine_Code in file s-maccod.ads for details on
7038 -- the allowed parameters to Asm. There are two ways this node can
7039 -- arise, as a code statement, in which case the expression is the
7040 -- qualified expression, or as a result of the expansion of an intrinsic
7041 -- call to the Asm or Asm_Input procedure.
7043 -- N_Code_Statement
7044 -- Sloc points to first token of the expression
7045 -- Expression (Node3)
7047 -- Note: package Exp_Code contains an abstract functional interface
7048 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7050 ------------------------
7051 -- 13.12 Restriction --
7052 ------------------------
7054 -- RESTRICTION ::=
7055 -- restriction_IDENTIFIER
7056 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7058 -- There is no explicit node for restrictions. Instead the restriction
7059 -- appears in normal pragma syntax as a pragma argument association,
7060 -- which has the same syntactic form.
7062 --------------------------
7063 -- B.2 Shift Operators --
7064 --------------------------
7066 -- Calls to the intrinsic shift functions are converted to one of
7067 -- the following shift nodes, which have the form of normal binary
7068 -- operator names. Note that for a given shift operation, one node
7069 -- covers all possible types, as for normal operators.
7071 -- Note: it is perfectly permissible for the expander to generate
7072 -- shift operation nodes directly, in which case they will be analyzed
7073 -- and parsed in the usual manner.
7075 -- Sprint syntax: shift-function-name!(expr, count)
7077 -- Note: the Left_Opnd field holds the first argument (the value to
7078 -- be shifted). The Right_Opnd field holds the second argument (the
7079 -- shift count). The Chars field is the name of the intrinsic function.
7081 -- N_Op_Rotate_Left
7082 -- Sloc points to the function name
7083 -- plus fields for binary operator
7084 -- plus fields for expression
7085 -- Shift_Count_OK (Flag4-Sem)
7087 -- N_Op_Rotate_Right
7088 -- Sloc points to the function name
7089 -- plus fields for binary operator
7090 -- plus fields for expression
7091 -- Shift_Count_OK (Flag4-Sem)
7093 -- N_Op_Shift_Left
7094 -- Sloc points to the function name
7095 -- plus fields for binary operator
7096 -- plus fields for expression
7097 -- Shift_Count_OK (Flag4-Sem)
7099 -- N_Op_Shift_Right_Arithmetic
7100 -- Sloc points to the function name
7101 -- plus fields for binary operator
7102 -- plus fields for expression
7103 -- Shift_Count_OK (Flag4-Sem)
7105 -- N_Op_Shift_Right
7106 -- Sloc points to the function name
7107 -- plus fields for binary operator
7108 -- plus fields for expression
7109 -- Shift_Count_OK (Flag4-Sem)
7111 --------------------------
7112 -- Obsolescent Features --
7113 --------------------------
7115 -- The syntax descriptions and tree nodes for obsolescent features are
7116 -- grouped together, corresponding to their location in appendix I in
7117 -- the RM. However, parsing and semantic analysis for these constructs
7118 -- is located in an appropriate chapter (see individual notes).
7120 ---------------------------
7121 -- J.3 Delta Constraint --
7122 ---------------------------
7124 -- Note: the parse routine for this construct is located in section
7125 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7126 -- where delta constraint logically belongs.
7128 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7130 -- N_Delta_Constraint
7131 -- Sloc points to DELTA
7132 -- Delta_Expression (Node3)
7133 -- Range_Constraint (Node4) (set to Empty if not present)
7135 --------------------
7136 -- J.7 At Clause --
7137 --------------------
7139 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7141 -- Note: the parse routine for this construct is located in Par-Ch13,
7142 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7143 -- belongs if it were not obsolescent.
7145 -- Note: in Ada 83 the expression must be a simple expression
7147 -- Gigi restriction: This node never appears, it is rewritten as an
7148 -- address attribute definition clause.
7150 -- N_At_Clause
7151 -- Sloc points to FOR
7152 -- Identifier (Node1)
7153 -- Expression (Node3)
7155 ---------------------
7156 -- J.8 Mod clause --
7157 ---------------------
7159 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7161 -- Note: the parse routine for this construct is located in Par-Ch13,
7162 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7163 -- belongs if it were not obsolescent.
7165 -- Note: in Ada 83, the expression must be a simple expression
7167 -- Gigi restriction: this node never appears. It is replaced
7168 -- by a corresponding Alignment attribute definition clause.
7170 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7171 -- its name has "clause" in it. This is rather strange, but is quite
7172 -- definitely specified. The pragmas before are collected in the
7173 -- Pragmas_Before field of the mod clause node itself, and pragmas
7174 -- after are simply swallowed up in the list of component clauses.
7176 -- N_Mod_Clause
7177 -- Sloc points to AT
7178 -- Expression (Node3)
7179 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7181 --------------------
7182 -- Semantic Nodes --
7183 --------------------
7185 -- These semantic nodes are used to hold additional semantic information.
7186 -- They are inserted into the tree as a result of semantic processing.
7187 -- Although there are no legitimate source syntax constructions that
7188 -- correspond directly to these nodes, we need a source syntax for the
7189 -- reconstructed tree printed by Sprint, and the node descriptions here
7190 -- show this syntax.
7192 --------------
7193 -- Contract --
7194 --------------
7196 -- This node is used to hold the various parts of an entry, subprogram
7197 -- [body] or package [body] contract, in particular:
7198 -- Abstract states declared by a package declaration
7199 -- Contract cases that apply to a subprogram
7200 -- Dependency relations of inputs and output of a subprogram
7201 -- Global annotations classifying data as input or output
7202 -- Initialization sequences for a package declaration
7203 -- Pre- and postconditions that apply to a subprogram
7205 -- The node appears in an entry and [generic] subprogram [body] entity.
7207 -- Sprint syntax: <none> as the node should not appear in the tree, but
7208 -- only attached to an entry or [generic] subprogram
7209 -- entity.
7211 -- N_Contract
7212 -- Sloc points to the subprogram's name
7213 -- Pre_Post_Conditions (Node1) (set to Empty if none)
7214 -- Contract_Test_Cases (Node2) (set to Empty if none)
7215 -- Classifications (Node3) (set to Empty if none)
7217 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7218 -- to pre- and postconditions associated with an entry or a subprogram
7219 -- [body or stub]. The pragmas can either come from source or be the
7220 -- byproduct of aspect expansion. Currently the following pragmas appear
7221 -- in this list:
7222 -- Post
7223 -- Postcondition
7224 -- Pre
7225 -- Precondition
7226 -- The ordering in the list is in LIFO fashion.
7228 -- Note that there might be multiple preconditions or postconditions
7229 -- in this list, either because they come from separate pragmas in the
7230 -- source, or because a Pre (resp. Post) aspect specification has been
7231 -- broken into AND THEN sections. See Split_PPC for details.
7233 -- Contract_Test_Cases contains a collection of pragmas that correspond
7234 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7235 -- list is in LIFO fashion.
7237 -- Classifications contains pragmas that either declare, categorize or
7238 -- establish dependencies between subprogram or package inputs and
7239 -- outputs. Currently the following pragmas appear in this list:
7240 -- Abstract_States
7241 -- Depends
7242 -- Global
7243 -- Initial_Condition
7244 -- Initializes
7245 -- Refined_Depends
7246 -- Refined_Global
7247 -- Refined_States
7248 -- The ordering is in LIFO fashion.
7250 -------------------
7251 -- Expanded_Name --
7252 -------------------
7254 -- The N_Expanded_Name node is used to represent a selected component
7255 -- name that has been resolved to an expanded name. The semantic phase
7256 -- replaces N_Selected_Component nodes that represent names by the use
7257 -- of this node, leaving the N_Selected_Component node used only when
7258 -- the prefix is a record or protected type.
7260 -- The fields of the N_Expanded_Name node are layed out identically
7261 -- to those of the N_Selected_Component node, allowing conversion of
7262 -- an expanded name node to a selected component node to be done
7263 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7265 -- There is no special sprint syntax for an expanded name
7267 -- N_Expanded_Name
7268 -- Sloc points to the period
7269 -- Chars (Name1) copy of Chars field of selector name
7270 -- Prefix (Node3)
7271 -- Selector_Name (Node2)
7272 -- Entity (Node4-Sem)
7273 -- Associated_Node (Node4-Sem)
7274 -- Has_Private_View (Flag11-Sem) set in generic units.
7275 -- Redundant_Use (Flag13-Sem)
7276 -- Atomic_Sync_Required (Flag14-Sem)
7277 -- plus fields for expression
7279 -----------------------------
7280 -- Expression with Actions --
7281 -----------------------------
7283 -- This node is created by the analyzer/expander to handle some
7284 -- expansion cases, notably short circuit forms where there are
7285 -- actions associated with the right-hand side operand.
7287 -- The N_Expression_With_Actions node represents an expression with
7288 -- an associated set of actions (which are executable statements and
7289 -- declarations, as might occur in a handled statement sequence).
7291 -- The required semantics is that the set of actions is executed in
7292 -- the order in which it appears just before the expression is
7293 -- evaluated (and these actions must only be executed if the value
7294 -- of the expression is evaluated). The node is considered to be
7295 -- a subexpression, whose value is the value of the Expression after
7296 -- executing all the actions.
7298 -- If the actions contain declarations, then these declarations may
7299 -- be referenced within the expression. However note that there is
7300 -- no proper scope associated with the expression-with-action, so the
7301 -- back-end will elaborate them in the context of the enclosing scope.
7303 -- Sprint syntax: do
7304 -- action;
7305 -- action;
7306 -- ...
7307 -- action;
7308 -- in expression end
7310 -- N_Expression_With_Actions
7311 -- Actions (List1)
7312 -- Expression (Node3)
7313 -- plus fields for expression
7315 -- Note: the actions list is always non-null, since we would never have
7316 -- created this node if there weren't some actions.
7318 -- Note: Expression may be a Null_Statement, in which case the
7319 -- N_Expression_With_Actions has type Standard_Void_Type. However some
7320 -- backends do not support such expression-with-actions occurring
7321 -- outside of a proper (non-void) expression, so this should just be
7322 -- used as an intermediate representation within the front-end. Also
7323 -- note that this is really an irregularity (expressions and statements
7324 -- are not interchangeable, and in particular an N_Null_Statement is
7325 -- not a proper expression), and in the long term all cases of this
7326 -- idiom should instead use a new node kind N_Compound_Statement.
7328 --------------------
7329 -- Free Statement --
7330 --------------------
7332 -- The N_Free_Statement node is generated as a result of a call to an
7333 -- instantiation of Unchecked_Deallocation. The instantiation of this
7334 -- generic is handled specially and generates this node directly.
7336 -- Sprint syntax: free expression
7338 -- N_Free_Statement
7339 -- Sloc is copied from the unchecked deallocation call
7340 -- Expression (Node3) argument to unchecked deallocation call
7341 -- Storage_Pool (Node1-Sem)
7342 -- Procedure_To_Call (Node2-Sem)
7343 -- Actual_Designated_Subtype (Node4-Sem)
7345 -- Note: in the case where a debug source file is generated, the Sloc
7346 -- for this node points to the FREE keyword in the Sprint file output.
7348 -------------------
7349 -- Freeze Entity --
7350 -------------------
7352 -- This node marks the point in a declarative part at which an entity
7353 -- declared therein becomes frozen. The expander places initialization
7354 -- procedures for types at those points. Gigi uses the freezing point
7355 -- to elaborate entities that may depend on previous private types.
7357 -- See the section in Einfo "Delayed Freezing and Elaboration" for
7358 -- a full description of the use of this node.
7360 -- The Entity field points back to the entity for the type (whose
7361 -- Freeze_Node field points back to this freeze node).
7363 -- The Actions field contains a list of declarations and statements
7364 -- generated by the expander which are associated with the freeze
7365 -- node, and are elaborated as though the freeze node were replaced
7366 -- by this sequence of actions.
7368 -- Note: the Sloc field in the freeze node references a construct
7369 -- associated with the freezing point. This is used for posting
7370 -- messages in some error/warning situations, e.g. the case where
7371 -- a primitive operation of a tagged type is declared too late.
7373 -- Sprint syntax: freeze entity-name [
7374 -- freeze actions
7375 -- ]
7377 -- N_Freeze_Entity
7378 -- Sloc points near freeze point (see above special note)
7379 -- Entity (Node4-Sem)
7380 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7381 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7382 -- Actions (List1) (set to No_List if no freeze actions)
7383 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7385 -- The Actions field holds actions associated with the freeze. These
7386 -- actions are elaborated at the point where the type is frozen.
7388 -- Note: in the case where a debug source file is generated, the Sloc
7389 -- for this node points to the FREEZE keyword in the Sprint file output.
7391 ---------------------------
7392 -- Freeze_Generic_Entity --
7393 ---------------------------
7395 -- The freeze point of an entity indicates the point at which the
7396 -- information needed to generate code for the entity is complete.
7397 -- The freeze node for an entity triggers expander activities, such as
7398 -- build initialization procedures, and backend activities, such as
7399 -- completing the elaboration of packages.
7401 -- For entities declared within a generic unit, for which no code is
7402 -- generated, the freeze point is not equally meaningful. However, in
7403 -- Ada 2012 several semantic checks on declarations must be delayed to
7404 -- the freeze point, and we need to include such a mark in the tree to
7405 -- trigger these checks. The Freeze_Generic_Entity node plays no other
7406 -- role, and is ignored by the expander and the back-end.
7408 -- Sprint syntax: freeze_generic entity-name
7410 -- N_Freeze_Generic_Entity
7411 -- Sloc points near freeze point
7412 -- Entity (Node4-Sem)
7414 --------------------------------
7415 -- Implicit Label Declaration --
7416 --------------------------------
7418 -- An implicit label declaration is created for every occurrence of a
7419 -- label on a statement or a label on a block or loop. It is chained
7420 -- in the declarations of the innermost enclosing block as specified
7421 -- in RM section 5.1 (3).
7423 -- The Defining_Identifier is the actual identifier for the statement
7424 -- identifier. Note that the occurrence of the label is a reference, NOT
7425 -- the defining occurrence. The defining occurrence occurs at the head
7426 -- of the innermost enclosing block, and is represented by this node.
7428 -- Note: from the grammar, this might better be called an implicit
7429 -- statement identifier declaration, but the term we choose seems
7430 -- friendlier, since at least informally statement identifiers are
7431 -- called labels in both cases (i.e. when used in labels, and when
7432 -- used as the identifiers of blocks and loops).
7434 -- Note: although this is logically a semantic node, since it does not
7435 -- correspond directly to a source syntax construction, these nodes are
7436 -- actually created by the parser in a post pass done just after parsing
7437 -- is complete, before semantic analysis is started (see Par.Labl).
7439 -- Sprint syntax: labelname : label;
7441 -- N_Implicit_Label_Declaration
7442 -- Sloc points to the << token for a statement identifier, or to the
7443 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
7444 -- Defining_Identifier (Node1)
7445 -- Label_Construct (Node2-Sem)
7447 -- Note: in the case where a debug source file is generated, the Sloc
7448 -- for this node points to the label name in the generated declaration.
7450 ---------------------
7451 -- Itype_Reference --
7452 ---------------------
7454 -- This node is used to create a reference to an Itype. The only purpose
7455 -- is to make sure the Itype is defined if this is the first reference.
7457 -- A typical use of this node is when an Itype is to be referenced in
7458 -- two branches of an IF statement. In this case it is important that
7459 -- the first use of the Itype not be inside the conditional, since then
7460 -- it might not be defined if the other branch of the IF is taken, in
7461 -- the case where the definition generates elaboration code.
7463 -- The Itype field points to the referenced Itype
7465 -- Sprint syntax: reference itype-name
7467 -- N_Itype_Reference
7468 -- Sloc points to the node generating the reference
7469 -- Itype (Node1-Sem)
7471 -- Note: in the case where a debug source file is generated, the Sloc
7472 -- for this node points to the REFERENCE keyword in the file output.
7474 ---------------------
7475 -- Raise_xxx_Error --
7476 ---------------------
7478 -- One of these nodes is created during semantic analysis to replace
7479 -- a node for an expression that is determined to definitely raise
7480 -- the corresponding exception.
7482 -- The N_Raise_xxx_Error node may also stand alone in place
7483 -- of a declaration or statement, in which case it simply causes
7484 -- the exception to be raised (i.e. it is equivalent to a raise
7485 -- statement that raises the corresponding exception). This use
7486 -- is distinguished by the fact that the Etype in this case is
7487 -- Standard_Void_Type; in the subexpression case, the Etype is the
7488 -- same as the type of the subexpression which it replaces.
7490 -- If Condition is empty, then the raise is unconditional. If the
7491 -- Condition field is non-empty, it is a boolean expression which
7492 -- is first evaluated, and the exception is raised only if the
7493 -- value of the expression is True. In the unconditional case, the
7494 -- creation of this node is usually accompanied by a warning message
7495 -- error. The creation of this node will usually be accompanied by a
7496 -- message (unless it appears within the right operand of a short
7497 -- circuit form whose left argument is static and decisively
7498 -- eliminates elaboration of the raise operation. The condition field
7499 -- can ONLY be present when the node is used as a statement form, it
7500 -- may NOT be present in the case where the node appears within an
7501 -- expression.
7503 -- The exception is generated with a message that contains the
7504 -- file name and line number, and then appended text. The Reason
7505 -- code shows the text to be added. The Reason code is an element
7506 -- of the type Types.RT_Exception_Code, and indicates both the
7507 -- message to be added, and the exception to be raised (which must
7508 -- match the node type). The value is stored by storing a Uint which
7509 -- is the Pos value of the enumeration element in this type.
7511 -- Gigi restriction: This expander ensures that the type of the
7512 -- Condition field is always Standard.Boolean, even if the type
7513 -- in the source is some non-standard boolean type.
7515 -- Sprint syntax: [xxx_error "msg"]
7516 -- or: [xxx_error when condition "msg"]
7518 -- N_Raise_Constraint_Error
7519 -- Sloc references related construct
7520 -- Condition (Node1) (set to Empty if no condition)
7521 -- Reason (Uint3)
7522 -- plus fields for expression
7524 -- N_Raise_Program_Error
7525 -- Sloc references related construct
7526 -- Condition (Node1) (set to Empty if no condition)
7527 -- Reason (Uint3)
7528 -- plus fields for expression
7530 -- N_Raise_Storage_Error
7531 -- Sloc references related construct
7532 -- Condition (Node1) (set to Empty if no condition)
7533 -- Reason (Uint3)
7534 -- plus fields for expression
7536 -- Note: Sloc is copied from the expression generating the exception.
7537 -- In the case where a debug source file is generated, the Sloc for
7538 -- this node points to the left bracket in the Sprint file output.
7540 -- Note: the back end may be required to translate these nodes into
7541 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7543 ---------------------------------------------
7544 -- Optimization of Exception Raise to Goto --
7545 ---------------------------------------------
7547 -- In some cases, the front end will determine that any exception raised
7548 -- by the back end for a certain exception should be transformed into a
7549 -- goto statement.
7551 -- There are three kinds of exceptions raised by the back end (note that
7552 -- for this purpose we consider gigi to be part of the back end in the
7553 -- gcc case):
7555 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
7556 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
7557 -- 3. Other cases not specifically marked by the front end
7559 -- Normally all such exceptions are translated into calls to the proper
7560 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
7561 -- and the exception message.
7563 -- The front end may determine that for a particular sequence of code,
7564 -- exceptions in any of these three categories for a particular builtin
7565 -- exception should result in a goto, rather than a call to Rcheck_xx.
7566 -- The exact sequence to be generated is:
7568 -- Local_Raise (exception'Identity);
7569 -- goto Label
7571 -- The front end marks such a sequence of code by bracketing it with
7572 -- push and pop nodes:
7574 -- N_Push_xxx_Label (referencing the label)
7575 -- ...
7576 -- (code where transformation is expected for exception xxx)
7577 -- ...
7578 -- N_Pop_xxx_Label
7580 -- The use of push/pop reflects the fact that such regions can properly
7581 -- nest, and one special case is a subregion in which no transformation
7582 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7583 -- Exception_Label field is Empty.
7585 -- N_Push_Constraint_Error_Label
7586 -- Sloc references first statement in region covered
7587 -- Exception_Label (Node5-Sem)
7589 -- N_Push_Program_Error_Label
7590 -- Sloc references first statement in region covered
7591 -- Exception_Label (Node5-Sem)
7593 -- N_Push_Storage_Error_Label
7594 -- Sloc references first statement in region covered
7595 -- Exception_Label (Node5-Sem)
7597 -- N_Pop_Constraint_Error_Label
7598 -- Sloc references last statement in region covered
7600 -- N_Pop_Program_Error_Label
7601 -- Sloc references last statement in region covered
7603 -- N_Pop_Storage_Error_Label
7604 -- Sloc references last statement in region covered
7606 ---------------
7607 -- Reference --
7608 ---------------
7610 -- For a number of purposes, we need to construct references to objects.
7611 -- These references are subsequently treated as normal access values.
7612 -- An example is the construction of the parameter block passed to a
7613 -- task entry. The N_Reference node is provided for this purpose. It is
7614 -- similar in effect to the use of the Unrestricted_Access attribute,
7615 -- and like Unrestricted_Access can be applied to objects which would
7616 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
7617 -- objects which are not aliased, and slices). In addition it can be
7618 -- applied to composite type values as well as objects, including string
7619 -- values and aggregates.
7621 -- Note: we use the Prefix field for this expression so that the
7622 -- resulting node can be treated using common code with the attribute
7623 -- nodes for the 'Access and related attributes. Logically it would make
7624 -- more sense to call it an Expression field, but then we would have to
7625 -- special case the treatment of the N_Reference node.
7627 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
7628 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
7629 -- a temporary initialized to a N_Reference node in order to eliminate
7630 -- superfluous access checks.
7632 -- Sprint syntax: prefix'reference
7634 -- N_Reference
7635 -- Sloc is copied from the expression
7636 -- Prefix (Node3)
7637 -- plus fields for expression
7639 -- Note: in the case where a debug source file is generated, the Sloc
7640 -- for this node points to the quote in the Sprint file output.
7642 -----------------
7643 -- SCIL Nodes --
7644 -----------------
7646 -- SCIL nodes are special nodes added to the tree when the CodePeer
7647 -- mode is active. They help the CodePeer backend to locate nodes that
7648 -- require special processing. They are only generated if SCIL
7649 -- generation is enabled. A standard tree-walk will not encounter
7650 -- these nodes even if they are present; these nodes are only
7651 -- accessible via the function SCIL_LL.Get_SCIL_Node.
7653 -- N_SCIL_Dispatch_Table_Tag_Init
7654 -- Sloc references a node for a tag initialization
7655 -- SCIL_Entity (Node4-Sem)
7657 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
7658 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
7659 -- the declaration of the dispatch table for a tagged type.
7661 -- N_SCIL_Dispatching_Call
7662 -- Sloc references the node of a dispatching call
7663 -- SCIL_Target_Prim (Node2-Sem)
7664 -- SCIL_Entity (Node4-Sem)
7665 -- SCIL_Controlling_Tag (Node5-Sem)
7667 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
7668 -- with the N_Procedure_Call or N_Function_Call node (or a rewriting
7669 -- thereof) corresponding to a dispatching call.
7671 -- N_SCIL_Membership_Test
7672 -- Sloc references the node of a membership test
7673 -- SCIL_Tag_Value (Node5-Sem)
7674 -- SCIL_Entity (Node4-Sem)
7676 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
7677 -- with the N_In node (or a rewriting thereof) corresponding to a
7678 -- classwide membership test.
7680 ---------------------
7681 -- Subprogram_Info --
7682 ---------------------
7684 -- This node generates the appropriate Subprogram_Info value for a
7685 -- given procedure. See Ada.Exceptions for further details
7687 -- Sprint syntax: subprog'subprogram_info
7689 -- N_Subprogram_Info
7690 -- Sloc points to the entity for the procedure
7691 -- Identifier (Node1) identifier referencing the procedure
7692 -- Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc)
7694 -- Note: in the case where a debug source file is generated, the Sloc
7695 -- for this node points to the quote in the Sprint file output.
7697 --------------------------
7698 -- Unchecked Expression --
7699 --------------------------
7701 -- An unchecked expression is one that must be analyzed and resolved
7702 -- with all checks off, regardless of the current setting of scope
7703 -- suppress flags.
7705 -- Sprint syntax: `(expression)
7707 -- Note: this node is always removed from the tree (and replaced by
7708 -- its constituent expression) on completion of analysis, so it only
7709 -- appears in intermediate trees, and will never be seen by Gigi.
7711 -- N_Unchecked_Expression
7712 -- Sloc is a copy of the Sloc of the expression
7713 -- Expression (Node3)
7714 -- plus fields for expression
7716 -- Note: in the case where a debug source file is generated, the Sloc
7717 -- for this node points to the back quote in the Sprint file output.
7719 -------------------------------
7720 -- Unchecked Type Conversion --
7721 -------------------------------
7723 -- An unchecked type conversion node represents the semantic action
7724 -- corresponding to a call to an instantiation of Unchecked_Conversion.
7725 -- It is generated as a result of actual use of Unchecked_Conversion
7726 -- and also the expander generates unchecked type conversion nodes
7727 -- directly for expansion of complex semantic actions.
7729 -- Note: an unchecked type conversion is a variable as far as the
7730 -- semantics are concerned, which is convenient for the expander.
7731 -- This does not change what Ada source programs are legal, since
7732 -- clearly a function call to an instantiation of Unchecked_Conversion
7733 -- is not a variable in any case.
7735 -- Sprint syntax: subtype-mark!(expression)
7737 -- N_Unchecked_Type_Conversion
7738 -- Sloc points to related node in source
7739 -- Subtype_Mark (Node4)
7740 -- Expression (Node3)
7741 -- Kill_Range_Check (Flag11-Sem)
7742 -- No_Truncation (Flag17-Sem)
7743 -- plus fields for expression
7745 -- Note: in the case where a debug source file is generated, the Sloc
7746 -- for this node points to the exclamation in the Sprint file output.
7748 -----------------------------------
7749 -- Validate_Unchecked_Conversion --
7750 -----------------------------------
7752 -- The front end does most of the validation of unchecked conversion,
7753 -- including checking sizes (this is done after the back end is called
7754 -- to take advantage of back-annotation of calculated sizes).
7756 -- The front end also deals with specific cases that are not allowed
7757 -- e.g. involving unconstrained array types.
7759 -- For the case of the standard gigi backend, this means that all
7760 -- checks are done in the front-end.
7762 -- However, in the case of specialized back-ends, notably the JVM
7763 -- backend for JGNAT, additional requirements and restrictions apply
7764 -- to unchecked conversion, and these are most conveniently performed
7765 -- in the specialized back-end.
7767 -- To accommodate this requirement, for such back ends, the following
7768 -- special node is generated recording an unchecked conversion that
7769 -- needs to be validated. The back end should post an appropriate
7770 -- error message if the unchecked conversion is invalid or warrants
7771 -- a special warning message.
7773 -- Source_Type and Target_Type point to the entities for the two
7774 -- types involved in the unchecked conversion instantiation that
7775 -- is to be validated.
7777 -- Sprint syntax: validate Unchecked_Conversion (source, target);
7779 -- N_Validate_Unchecked_Conversion
7780 -- Sloc points to instantiation (location for warning message)
7781 -- Source_Type (Node1-Sem)
7782 -- Target_Type (Node2-Sem)
7784 -- Note: in the case where a debug source file is generated, the Sloc
7785 -- for this node points to the VALIDATE keyword in the file output.
7787 -----------
7788 -- Empty --
7789 -----------
7791 -- Used as the contents of the Nkind field of the dummy Empty node
7792 -- and in some other situations to indicate an uninitialized value.
7794 -- N_Empty
7795 -- Chars (Name1) is set to No_Name
7797 -----------
7798 -- Error --
7799 -----------
7801 -- Used as the contents of the Nkind field of the dummy Error node.
7802 -- Has an Etype field, which gets set to Any_Type later on, to help
7803 -- error recovery (Error_Posted is also set in the Error node).
7805 -- N_Error
7806 -- Chars (Name1) is set to Error_Name
7807 -- Etype (Node5-Sem)
7809 --------------------------
7810 -- Node Type Definition --
7811 --------------------------
7813 -- The following is the definition of the Node_Kind type. As previously
7814 -- discussed, this is separated off to allow rearrangement of the order to
7815 -- facilitate definition of subtype ranges. The comments show the subtype
7816 -- classes which apply to each set of node kinds. The first entry in the
7817 -- comment characterizes the following list of nodes.
7819 type Node_Kind is (
7820 N_Unused_At_Start,
7822 -- N_Representation_Clause
7824 N_At_Clause,
7825 N_Component_Clause,
7826 N_Enumeration_Representation_Clause,
7827 N_Mod_Clause,
7828 N_Record_Representation_Clause,
7830 -- N_Representation_Clause, N_Has_Chars
7832 N_Attribute_Definition_Clause,
7834 -- N_Has_Chars
7836 N_Empty,
7837 N_Pragma_Argument_Association,
7839 -- N_Has_Etype, N_Has_Chars
7841 -- Note: of course N_Error does not really have Etype or Chars fields,
7842 -- and any attempt to access these fields in N_Error will cause an
7843 -- error, but historically this always has been positioned so that an
7844 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
7845 -- Most likely this makes coding easier somewhere but still seems
7846 -- undesirable. To be investigated some time ???
7848 N_Error,
7850 -- N_Entity, N_Has_Etype, N_Has_Chars
7852 N_Defining_Character_Literal,
7853 N_Defining_Identifier,
7854 N_Defining_Operator_Symbol,
7856 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
7858 N_Expanded_Name,
7860 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
7861 -- N_Has_Chars, N_Has_Entity
7863 N_Identifier,
7864 N_Operator_Symbol,
7866 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
7867 -- N_Has_Chars, N_Has_Entity
7869 N_Character_Literal,
7871 -- N_Binary_Op, N_Op, N_Subexpr,
7872 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
7874 N_Op_Add,
7875 N_Op_Concat,
7876 N_Op_Expon,
7877 N_Op_Subtract,
7879 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
7880 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
7882 N_Op_Divide,
7883 N_Op_Mod,
7884 N_Op_Multiply,
7885 N_Op_Rem,
7887 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7888 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
7890 N_Op_And,
7892 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7893 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
7895 N_Op_Eq,
7896 N_Op_Ge,
7897 N_Op_Gt,
7898 N_Op_Le,
7899 N_Op_Lt,
7900 N_Op_Ne,
7902 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7903 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
7905 N_Op_Or,
7906 N_Op_Xor,
7908 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
7909 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
7911 N_Op_Rotate_Left,
7912 N_Op_Rotate_Right,
7913 N_Op_Shift_Left,
7914 N_Op_Shift_Right,
7915 N_Op_Shift_Right_Arithmetic,
7917 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
7918 -- N_Has_Chars, N_Has_Entity
7920 N_Op_Abs,
7921 N_Op_Minus,
7922 N_Op_Not,
7923 N_Op_Plus,
7925 -- N_Subexpr, N_Has_Etype, N_Has_Entity
7927 N_Attribute_Reference,
7929 -- N_Subexpr, N_Has_Etype, N_Membership_Test
7931 N_In,
7932 N_Not_In,
7934 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
7936 N_And_Then,
7937 N_Or_Else,
7939 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
7941 N_Function_Call,
7942 N_Procedure_Call_Statement,
7944 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
7946 N_Raise_Constraint_Error,
7947 N_Raise_Program_Error,
7948 N_Raise_Storage_Error,
7950 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
7952 N_Integer_Literal,
7953 N_Real_Literal,
7954 N_String_Literal,
7956 -- N_Subexpr, N_Has_Etype
7958 N_Explicit_Dereference,
7959 N_Expression_With_Actions,
7960 N_If_Expression,
7961 N_Indexed_Component,
7962 N_Null,
7963 N_Qualified_Expression,
7964 N_Quantified_Expression,
7965 N_Aggregate,
7966 N_Allocator,
7967 N_Case_Expression,
7968 N_Extension_Aggregate,
7969 N_Raise_Expression,
7970 N_Range,
7971 N_Reference,
7972 N_Selected_Component,
7973 N_Slice,
7974 N_Subprogram_Info,
7975 N_Type_Conversion,
7976 N_Unchecked_Expression,
7977 N_Unchecked_Type_Conversion,
7979 -- N_Has_Etype
7981 N_Subtype_Indication,
7983 -- N_Declaration
7985 N_Component_Declaration,
7986 N_Entry_Declaration,
7987 N_Expression_Function,
7988 N_Formal_Object_Declaration,
7989 N_Formal_Type_Declaration,
7990 N_Full_Type_Declaration,
7991 N_Incomplete_Type_Declaration,
7992 N_Iterator_Specification,
7993 N_Loop_Parameter_Specification,
7994 N_Object_Declaration,
7995 N_Protected_Type_Declaration,
7996 N_Private_Extension_Declaration,
7997 N_Private_Type_Declaration,
7998 N_Subtype_Declaration,
8000 -- N_Subprogram_Specification, N_Declaration
8002 N_Function_Specification,
8003 N_Procedure_Specification,
8005 -- N_Access_To_Subprogram_Definition
8007 N_Access_Function_Definition,
8008 N_Access_Procedure_Definition,
8010 -- N_Later_Decl_Item
8012 N_Task_Type_Declaration,
8014 -- N_Body_Stub, N_Later_Decl_Item
8016 N_Package_Body_Stub,
8017 N_Protected_Body_Stub,
8018 N_Subprogram_Body_Stub,
8019 N_Task_Body_Stub,
8021 -- N_Generic_Instantiation, N_Later_Decl_Item
8022 -- N_Subprogram_Instantiation
8024 N_Function_Instantiation,
8025 N_Procedure_Instantiation,
8027 -- N_Generic_Instantiation, N_Later_Decl_Item
8029 N_Package_Instantiation,
8031 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8033 N_Package_Body,
8034 N_Subprogram_Body,
8036 -- N_Later_Decl_Item, N_Proper_Body
8038 N_Protected_Body,
8039 N_Task_Body,
8041 -- N_Later_Decl_Item
8043 N_Implicit_Label_Declaration,
8044 N_Package_Declaration,
8045 N_Single_Task_Declaration,
8046 N_Subprogram_Declaration,
8047 N_Use_Package_Clause,
8049 -- N_Generic_Declaration, N_Later_Decl_Item
8051 N_Generic_Package_Declaration,
8052 N_Generic_Subprogram_Declaration,
8054 -- N_Array_Type_Definition
8056 N_Constrained_Array_Definition,
8057 N_Unconstrained_Array_Definition,
8059 -- N_Renaming_Declaration
8061 N_Exception_Renaming_Declaration,
8062 N_Object_Renaming_Declaration,
8063 N_Package_Renaming_Declaration,
8064 N_Subprogram_Renaming_Declaration,
8066 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8068 N_Generic_Function_Renaming_Declaration,
8069 N_Generic_Package_Renaming_Declaration,
8070 N_Generic_Procedure_Renaming_Declaration,
8072 -- N_Statement_Other_Than_Procedure_Call
8074 N_Abort_Statement,
8075 N_Accept_Statement,
8076 N_Assignment_Statement,
8077 N_Asynchronous_Select,
8078 N_Block_Statement,
8079 N_Case_Statement,
8080 N_Code_Statement,
8081 N_Conditional_Entry_Call,
8083 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8085 N_Delay_Relative_Statement,
8086 N_Delay_Until_Statement,
8088 -- N_Statement_Other_Than_Procedure_Call
8090 N_Entry_Call_Statement,
8091 N_Free_Statement,
8092 N_Goto_Statement,
8093 N_Loop_Statement,
8094 N_Null_Statement,
8095 N_Raise_Statement,
8096 N_Requeue_Statement,
8097 N_Simple_Return_Statement,
8098 N_Extended_Return_Statement,
8099 N_Selective_Accept,
8100 N_Timed_Entry_Call,
8102 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8104 N_Exit_Statement,
8105 N_If_Statement,
8107 -- N_Has_Condition
8109 N_Accept_Alternative,
8110 N_Delay_Alternative,
8111 N_Elsif_Part,
8112 N_Entry_Body_Formal_Part,
8113 N_Iteration_Scheme,
8114 N_Terminate_Alternative,
8116 -- N_Formal_Subprogram_Declaration
8118 N_Formal_Abstract_Subprogram_Declaration,
8119 N_Formal_Concrete_Subprogram_Declaration,
8121 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8123 N_Push_Constraint_Error_Label,
8124 N_Push_Program_Error_Label,
8125 N_Push_Storage_Error_Label,
8127 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8129 N_Pop_Constraint_Error_Label,
8130 N_Pop_Program_Error_Label,
8131 N_Pop_Storage_Error_Label,
8133 -- SCIL nodes
8135 N_SCIL_Dispatch_Table_Tag_Init,
8136 N_SCIL_Dispatching_Call,
8137 N_SCIL_Membership_Test,
8139 -- Other nodes (not part of any subtype class)
8141 N_Abortable_Part,
8142 N_Abstract_Subprogram_Declaration,
8143 N_Access_Definition,
8144 N_Access_To_Object_Definition,
8145 N_Aspect_Specification,
8146 N_Case_Expression_Alternative,
8147 N_Case_Statement_Alternative,
8148 N_Compilation_Unit,
8149 N_Compilation_Unit_Aux,
8150 N_Component_Association,
8151 N_Component_Definition,
8152 N_Component_List,
8153 N_Contract,
8154 N_Derived_Type_Definition,
8155 N_Decimal_Fixed_Point_Definition,
8156 N_Defining_Program_Unit_Name,
8157 N_Delta_Constraint,
8158 N_Designator,
8159 N_Digits_Constraint,
8160 N_Discriminant_Association,
8161 N_Discriminant_Specification,
8162 N_Enumeration_Type_Definition,
8163 N_Entry_Body,
8164 N_Entry_Call_Alternative,
8165 N_Entry_Index_Specification,
8166 N_Exception_Declaration,
8167 N_Exception_Handler,
8168 N_Floating_Point_Definition,
8169 N_Formal_Decimal_Fixed_Point_Definition,
8170 N_Formal_Derived_Type_Definition,
8171 N_Formal_Discrete_Type_Definition,
8172 N_Formal_Floating_Point_Definition,
8173 N_Formal_Modular_Type_Definition,
8174 N_Formal_Ordinary_Fixed_Point_Definition,
8175 N_Formal_Package_Declaration,
8176 N_Formal_Private_Type_Definition,
8177 N_Formal_Incomplete_Type_Definition,
8178 N_Formal_Signed_Integer_Type_Definition,
8179 N_Freeze_Entity,
8180 N_Freeze_Generic_Entity,
8181 N_Generic_Association,
8182 N_Handled_Sequence_Of_Statements,
8183 N_Index_Or_Discriminant_Constraint,
8184 N_Itype_Reference,
8185 N_Label,
8186 N_Modular_Type_Definition,
8187 N_Number_Declaration,
8188 N_Ordinary_Fixed_Point_Definition,
8189 N_Others_Choice,
8190 N_Package_Specification,
8191 N_Parameter_Association,
8192 N_Parameter_Specification,
8193 N_Pragma,
8194 N_Protected_Definition,
8195 N_Range_Constraint,
8196 N_Real_Range_Specification,
8197 N_Record_Definition,
8198 N_Signed_Integer_Type_Definition,
8199 N_Single_Protected_Declaration,
8200 N_Subunit,
8201 N_Task_Definition,
8202 N_Triggering_Alternative,
8203 N_Use_Type_Clause,
8204 N_Validate_Unchecked_Conversion,
8205 N_Variant,
8206 N_Variant_Part,
8207 N_With_Clause,
8208 N_Unused_At_End);
8210 for Node_Kind'Size use 8;
8211 -- The data structures in Atree assume this!
8213 ----------------------------
8214 -- Node Class Definitions --
8215 ----------------------------
8217 subtype N_Access_To_Subprogram_Definition is Node_Kind range
8218 N_Access_Function_Definition ..
8219 N_Access_Procedure_Definition;
8221 subtype N_Array_Type_Definition is Node_Kind range
8222 N_Constrained_Array_Definition ..
8223 N_Unconstrained_Array_Definition;
8225 subtype N_Binary_Op is Node_Kind range
8226 N_Op_Add ..
8227 N_Op_Shift_Right_Arithmetic;
8229 subtype N_Body_Stub is Node_Kind range
8230 N_Package_Body_Stub ..
8231 N_Task_Body_Stub;
8233 subtype N_Declaration is Node_Kind range
8234 N_Component_Declaration ..
8235 N_Procedure_Specification;
8236 -- Note: this includes all constructs normally thought of as declarations
8237 -- except those which are separately grouped as later declarations.
8239 subtype N_Delay_Statement is Node_Kind range
8240 N_Delay_Relative_Statement ..
8241 N_Delay_Until_Statement;
8243 subtype N_Direct_Name is Node_Kind range
8244 N_Identifier ..
8245 N_Character_Literal;
8247 subtype N_Entity is Node_Kind range
8248 N_Defining_Character_Literal ..
8249 N_Defining_Operator_Symbol;
8251 subtype N_Formal_Subprogram_Declaration is Node_Kind range
8252 N_Formal_Abstract_Subprogram_Declaration ..
8253 N_Formal_Concrete_Subprogram_Declaration;
8255 subtype N_Generic_Declaration is Node_Kind range
8256 N_Generic_Package_Declaration ..
8257 N_Generic_Subprogram_Declaration;
8259 subtype N_Generic_Instantiation is Node_Kind range
8260 N_Function_Instantiation ..
8261 N_Package_Instantiation;
8263 subtype N_Generic_Renaming_Declaration is Node_Kind range
8264 N_Generic_Function_Renaming_Declaration ..
8265 N_Generic_Procedure_Renaming_Declaration;
8267 subtype N_Has_Chars is Node_Kind range
8268 N_Attribute_Definition_Clause ..
8269 N_Op_Plus;
8271 subtype N_Has_Entity is Node_Kind range
8272 N_Expanded_Name ..
8273 N_Attribute_Reference;
8274 -- Nodes that have Entity fields
8275 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
8276 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
8278 subtype N_Has_Etype is Node_Kind range
8279 N_Error ..
8280 N_Subtype_Indication;
8282 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
8283 N_Op_Divide ..
8284 N_Op_Rem;
8286 subtype N_Multiplying_Operator is Node_Kind range
8287 N_Op_Divide ..
8288 N_Op_Rem;
8290 subtype N_Later_Decl_Item is Node_Kind range
8291 N_Task_Type_Declaration ..
8292 N_Generic_Subprogram_Declaration;
8293 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8294 -- only those items which can appear as later declarative items. This also
8295 -- includes N_Implicit_Label_Declaration which is not specifically in the
8296 -- grammar but may appear as a valid later declarative items. It does NOT
8297 -- include N_Pragma which can also appear among later declarative items.
8298 -- It does however include N_Protected_Body, which is a bit peculiar, but
8299 -- harmless since this cannot appear in Ada 83 mode anyway.
8301 subtype N_Membership_Test is Node_Kind range
8302 N_In ..
8303 N_Not_In;
8305 subtype N_Numeric_Or_String_Literal is Node_Kind range
8306 N_Integer_Literal ..
8307 N_String_Literal;
8309 subtype N_Op is Node_Kind range
8310 N_Op_Add ..
8311 N_Op_Plus;
8313 subtype N_Op_Boolean is Node_Kind range
8314 N_Op_And ..
8315 N_Op_Xor;
8316 -- Binary operators which take operands of a boolean type, and yield
8317 -- a result of a boolean type.
8319 subtype N_Op_Compare is Node_Kind range
8320 N_Op_Eq ..
8321 N_Op_Ne;
8323 subtype N_Op_Shift is Node_Kind range
8324 N_Op_Rotate_Left ..
8325 N_Op_Shift_Right_Arithmetic;
8327 subtype N_Proper_Body is Node_Kind range
8328 N_Package_Body ..
8329 N_Task_Body;
8331 subtype N_Push_xxx_Label is Node_Kind range
8332 N_Push_Constraint_Error_Label ..
8333 N_Push_Storage_Error_Label;
8335 subtype N_Pop_xxx_Label is Node_Kind range
8336 N_Pop_Constraint_Error_Label ..
8337 N_Pop_Storage_Error_Label;
8339 subtype N_Push_Pop_xxx_Label is Node_Kind range
8340 N_Push_Constraint_Error_Label ..
8341 N_Pop_Storage_Error_Label;
8343 subtype N_Raise_xxx_Error is Node_Kind range
8344 N_Raise_Constraint_Error ..
8345 N_Raise_Storage_Error;
8347 subtype N_Renaming_Declaration is Node_Kind range
8348 N_Exception_Renaming_Declaration ..
8349 N_Generic_Procedure_Renaming_Declaration;
8351 subtype N_Representation_Clause is Node_Kind range
8352 N_At_Clause ..
8353 N_Attribute_Definition_Clause;
8355 subtype N_Short_Circuit is Node_Kind range
8356 N_And_Then ..
8357 N_Or_Else;
8359 subtype N_SCIL_Node is Node_Kind range
8360 N_SCIL_Dispatch_Table_Tag_Init ..
8361 N_SCIL_Membership_Test;
8363 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8364 N_Abort_Statement ..
8365 N_If_Statement;
8366 -- Note that this includes all statement types except for the cases of the
8367 -- N_Procedure_Call_Statement which is considered to be a subexpression
8368 -- (since overloading is possible, so it needs to go through the normal
8369 -- overloading resolution for expressions).
8371 subtype N_Subprogram_Call is Node_Kind range
8372 N_Function_Call ..
8373 N_Procedure_Call_Statement;
8375 subtype N_Subprogram_Instantiation is Node_Kind range
8376 N_Function_Instantiation ..
8377 N_Procedure_Instantiation;
8379 subtype N_Has_Condition is Node_Kind range
8380 N_Exit_Statement ..
8381 N_Terminate_Alternative;
8382 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
8384 subtype N_Subexpr is Node_Kind range
8385 N_Expanded_Name ..
8386 N_Unchecked_Type_Conversion;
8387 -- Nodes with expression fields
8389 subtype N_Subprogram_Specification is Node_Kind range
8390 N_Function_Specification ..
8391 N_Procedure_Specification;
8393 subtype N_Unary_Op is Node_Kind range
8394 N_Op_Abs ..
8395 N_Op_Plus;
8397 subtype N_Unit_Body is Node_Kind range
8398 N_Package_Body ..
8399 N_Subprogram_Body;
8401 ---------------------------
8402 -- Node Access Functions --
8403 ---------------------------
8405 -- The following functions return the contents of the indicated field of
8406 -- the node referenced by the argument, which is a Node_Id. They provide
8407 -- logical access to fields in the node which could be accessed using the
8408 -- Atree.Unchecked_Access package, but the idea is always to use these
8409 -- higher level routines which preserve strong typing. In debug mode,
8410 -- these routines check that they are being applied to an appropriate
8411 -- node, as well as checking that the node is in range.
8413 function ABE_Is_Certain
8414 (N : Node_Id) return Boolean; -- Flag18
8416 function Abort_Present
8417 (N : Node_Id) return Boolean; -- Flag15
8419 function Abortable_Part
8420 (N : Node_Id) return Node_Id; -- Node2
8422 function Abstract_Present
8423 (N : Node_Id) return Boolean; -- Flag4
8425 function Accept_Handler_Records
8426 (N : Node_Id) return List_Id; -- List5
8428 function Accept_Statement
8429 (N : Node_Id) return Node_Id; -- Node2
8431 function Access_Definition
8432 (N : Node_Id) return Node_Id; -- Node3
8434 function Access_To_Subprogram_Definition
8435 (N : Node_Id) return Node_Id; -- Node3
8437 function Access_Types_To_Process
8438 (N : Node_Id) return Elist_Id; -- Elist2
8440 function Actions
8441 (N : Node_Id) return List_Id; -- List1
8443 function Activation_Chain_Entity
8444 (N : Node_Id) return Node_Id; -- Node3
8446 function Acts_As_Spec
8447 (N : Node_Id) return Boolean; -- Flag4
8449 function Actual_Designated_Subtype
8450 (N : Node_Id) return Node_Id; -- Node4
8452 function Address_Warning_Posted
8453 (N : Node_Id) return Boolean; -- Flag18
8455 function Aggregate_Bounds
8456 (N : Node_Id) return Node_Id; -- Node3
8458 function Aliased_Present
8459 (N : Node_Id) return Boolean; -- Flag4
8461 function All_Others
8462 (N : Node_Id) return Boolean; -- Flag11
8464 function All_Present
8465 (N : Node_Id) return Boolean; -- Flag15
8467 function Alternatives
8468 (N : Node_Id) return List_Id; -- List4
8470 function Ancestor_Part
8471 (N : Node_Id) return Node_Id; -- Node3
8473 function Atomic_Sync_Required
8474 (N : Node_Id) return Boolean; -- Flag14
8476 function Array_Aggregate
8477 (N : Node_Id) return Node_Id; -- Node3
8479 function Aspect_Rep_Item
8480 (N : Node_Id) return Node_Id; -- Node2
8482 function Assignment_OK
8483 (N : Node_Id) return Boolean; -- Flag15
8485 function Associated_Node
8486 (N : Node_Id) return Node_Id; -- Node4
8488 function At_End_Proc
8489 (N : Node_Id) return Node_Id; -- Node1
8491 function Attribute_Name
8492 (N : Node_Id) return Name_Id; -- Name2
8494 function Aux_Decls_Node
8495 (N : Node_Id) return Node_Id; -- Node5
8497 function Backwards_OK
8498 (N : Node_Id) return Boolean; -- Flag6
8500 function Bad_Is_Detected
8501 (N : Node_Id) return Boolean; -- Flag15
8503 function By_Ref
8504 (N : Node_Id) return Boolean; -- Flag5
8506 function Body_Required
8507 (N : Node_Id) return Boolean; -- Flag13
8509 function Body_To_Inline
8510 (N : Node_Id) return Node_Id; -- Node3
8512 function Box_Present
8513 (N : Node_Id) return Boolean; -- Flag15
8515 function Char_Literal_Value
8516 (N : Node_Id) return Uint; -- Uint2
8518 function Chars
8519 (N : Node_Id) return Name_Id; -- Name1
8521 function Check_Address_Alignment
8522 (N : Node_Id) return Boolean; -- Flag11
8524 function Choice_Parameter
8525 (N : Node_Id) return Node_Id; -- Node2
8527 function Choices
8528 (N : Node_Id) return List_Id; -- List1
8530 function Class_Present
8531 (N : Node_Id) return Boolean; -- Flag6
8533 function Classifications
8534 (N : Node_Id) return Node_Id; -- Node3
8536 function Comes_From_Extended_Return_Statement
8537 (N : Node_Id) return Boolean; -- Flag18
8539 function Compile_Time_Known_Aggregate
8540 (N : Node_Id) return Boolean; -- Flag18
8542 function Component_Associations
8543 (N : Node_Id) return List_Id; -- List2
8545 function Component_Clauses
8546 (N : Node_Id) return List_Id; -- List3
8548 function Component_Definition
8549 (N : Node_Id) return Node_Id; -- Node4
8551 function Component_Items
8552 (N : Node_Id) return List_Id; -- List3
8554 function Component_List
8555 (N : Node_Id) return Node_Id; -- Node1
8557 function Component_Name
8558 (N : Node_Id) return Node_Id; -- Node1
8560 function Componentwise_Assignment
8561 (N : Node_Id) return Boolean; -- Flag14
8563 function Condition
8564 (N : Node_Id) return Node_Id; -- Node1
8566 function Condition_Actions
8567 (N : Node_Id) return List_Id; -- List3
8569 function Config_Pragmas
8570 (N : Node_Id) return List_Id; -- List4
8572 function Constant_Present
8573 (N : Node_Id) return Boolean; -- Flag17
8575 function Constraint
8576 (N : Node_Id) return Node_Id; -- Node3
8578 function Constraints
8579 (N : Node_Id) return List_Id; -- List1
8581 function Context_Installed
8582 (N : Node_Id) return Boolean; -- Flag13
8584 function Context_Pending
8585 (N : Node_Id) return Boolean; -- Flag16
8587 function Context_Items
8588 (N : Node_Id) return List_Id; -- List1
8590 function Contract_Test_Cases
8591 (N : Node_Id) return Node_Id; -- Node2
8593 function Controlling_Argument
8594 (N : Node_Id) return Node_Id; -- Node1
8596 function Conversion_OK
8597 (N : Node_Id) return Boolean; -- Flag14
8599 function Convert_To_Return_False
8600 (N : Node_Id) return Boolean; -- Flag13
8602 function Corresponding_Aspect
8603 (N : Node_Id) return Node_Id; -- Node3
8605 function Corresponding_Body
8606 (N : Node_Id) return Node_Id; -- Node5
8608 function Corresponding_Formal_Spec
8609 (N : Node_Id) return Node_Id; -- Node3
8611 function Corresponding_Generic_Association
8612 (N : Node_Id) return Node_Id; -- Node5
8614 function Corresponding_Integer_Value
8615 (N : Node_Id) return Uint; -- Uint4
8617 function Corresponding_Spec
8618 (N : Node_Id) return Node_Id; -- Node5
8620 function Corresponding_Spec_Of_Stub
8621 (N : Node_Id) return Node_Id; -- Node2
8623 function Corresponding_Stub
8624 (N : Node_Id) return Node_Id; -- Node3
8626 function Dcheck_Function
8627 (N : Node_Id) return Entity_Id; -- Node5
8629 function Declarations
8630 (N : Node_Id) return List_Id; -- List2
8632 function Default_Expression
8633 (N : Node_Id) return Node_Id; -- Node5
8635 function Default_Storage_Pool
8636 (N : Node_Id) return Node_Id; -- Node3
8638 function Default_Name
8639 (N : Node_Id) return Node_Id; -- Node2
8641 function Defining_Identifier
8642 (N : Node_Id) return Entity_Id; -- Node1
8644 function Defining_Unit_Name
8645 (N : Node_Id) return Node_Id; -- Node1
8647 function Delay_Alternative
8648 (N : Node_Id) return Node_Id; -- Node4
8650 function Delay_Statement
8651 (N : Node_Id) return Node_Id; -- Node2
8653 function Delta_Expression
8654 (N : Node_Id) return Node_Id; -- Node3
8656 function Digits_Expression
8657 (N : Node_Id) return Node_Id; -- Node2
8659 function Discr_Check_Funcs_Built
8660 (N : Node_Id) return Boolean; -- Flag11
8662 function Discrete_Choices
8663 (N : Node_Id) return List_Id; -- List4
8665 function Discrete_Range
8666 (N : Node_Id) return Node_Id; -- Node4
8668 function Discrete_Subtype_Definition
8669 (N : Node_Id) return Node_Id; -- Node4
8671 function Discrete_Subtype_Definitions
8672 (N : Node_Id) return List_Id; -- List2
8674 function Discriminant_Specifications
8675 (N : Node_Id) return List_Id; -- List4
8677 function Discriminant_Type
8678 (N : Node_Id) return Node_Id; -- Node5
8680 function Do_Accessibility_Check
8681 (N : Node_Id) return Boolean; -- Flag13
8683 function Do_Discriminant_Check
8684 (N : Node_Id) return Boolean; -- Flag13
8686 function Do_Division_Check
8687 (N : Node_Id) return Boolean; -- Flag13
8689 function Do_Length_Check
8690 (N : Node_Id) return Boolean; -- Flag4
8692 function Do_Overflow_Check
8693 (N : Node_Id) return Boolean; -- Flag17
8695 function Do_Range_Check
8696 (N : Node_Id) return Boolean; -- Flag9
8698 function Do_Storage_Check
8699 (N : Node_Id) return Boolean; -- Flag17
8701 function Do_Tag_Check
8702 (N : Node_Id) return Boolean; -- Flag13
8704 function Elaborate_All_Desirable
8705 (N : Node_Id) return Boolean; -- Flag9
8707 function Elaborate_All_Present
8708 (N : Node_Id) return Boolean; -- Flag14
8710 function Elaborate_Desirable
8711 (N : Node_Id) return Boolean; -- Flag11
8713 function Elaborate_Present
8714 (N : Node_Id) return Boolean; -- Flag4
8716 function Elaboration_Boolean
8717 (N : Node_Id) return Node_Id; -- Node2
8719 function Else_Actions
8720 (N : Node_Id) return List_Id; -- List3
8722 function Else_Statements
8723 (N : Node_Id) return List_Id; -- List4
8725 function Elsif_Parts
8726 (N : Node_Id) return List_Id; -- List3
8728 function Enclosing_Variant
8729 (N : Node_Id) return Node_Id; -- Node2
8731 function End_Label
8732 (N : Node_Id) return Node_Id; -- Node4
8734 function End_Span
8735 (N : Node_Id) return Uint; -- Uint5
8737 function Entity
8738 (N : Node_Id) return Node_Id; -- Node4
8740 function Entity_Or_Associated_Node
8741 (N : Node_Id) return Node_Id; -- Node4
8743 function Entry_Body_Formal_Part
8744 (N : Node_Id) return Node_Id; -- Node5
8746 function Entry_Call_Alternative
8747 (N : Node_Id) return Node_Id; -- Node1
8749 function Entry_Call_Statement
8750 (N : Node_Id) return Node_Id; -- Node1
8752 function Entry_Direct_Name
8753 (N : Node_Id) return Node_Id; -- Node1
8755 function Entry_Index
8756 (N : Node_Id) return Node_Id; -- Node5
8758 function Entry_Index_Specification
8759 (N : Node_Id) return Node_Id; -- Node4
8761 function Etype
8762 (N : Node_Id) return Node_Id; -- Node5
8764 function Exception_Choices
8765 (N : Node_Id) return List_Id; -- List4
8767 function Exception_Handlers
8768 (N : Node_Id) return List_Id; -- List5
8770 function Exception_Junk
8771 (N : Node_Id) return Boolean; -- Flag8
8773 function Exception_Label
8774 (N : Node_Id) return Node_Id; -- Node5
8776 function Explicit_Actual_Parameter
8777 (N : Node_Id) return Node_Id; -- Node3
8779 function Expansion_Delayed
8780 (N : Node_Id) return Boolean; -- Flag11
8782 function Explicit_Generic_Actual_Parameter
8783 (N : Node_Id) return Node_Id; -- Node1
8785 function Expression
8786 (N : Node_Id) return Node_Id; -- Node3
8788 function Expressions
8789 (N : Node_Id) return List_Id; -- List1
8791 function First_Bit
8792 (N : Node_Id) return Node_Id; -- Node3
8794 function First_Inlined_Subprogram
8795 (N : Node_Id) return Entity_Id; -- Node3
8797 function First_Name
8798 (N : Node_Id) return Boolean; -- Flag5
8800 function First_Named_Actual
8801 (N : Node_Id) return Node_Id; -- Node4
8803 function First_Real_Statement
8804 (N : Node_Id) return Node_Id; -- Node2
8806 function First_Subtype_Link
8807 (N : Node_Id) return Entity_Id; -- Node5
8809 function Float_Truncate
8810 (N : Node_Id) return Boolean; -- Flag11
8812 function Formal_Type_Definition
8813 (N : Node_Id) return Node_Id; -- Node3
8815 function Forwards_OK
8816 (N : Node_Id) return Boolean; -- Flag5
8818 function From_Aspect_Specification
8819 (N : Node_Id) return Boolean; -- Flag13
8821 function From_At_End
8822 (N : Node_Id) return Boolean; -- Flag4
8824 function From_At_Mod
8825 (N : Node_Id) return Boolean; -- Flag4
8827 function From_Default
8828 (N : Node_Id) return Boolean; -- Flag6
8830 function Generic_Associations
8831 (N : Node_Id) return List_Id; -- List3
8833 function Generic_Formal_Declarations
8834 (N : Node_Id) return List_Id; -- List2
8836 function Generic_Parent
8837 (N : Node_Id) return Node_Id; -- Node5
8839 function Generic_Parent_Type
8840 (N : Node_Id) return Node_Id; -- Node4
8842 function Handled_Statement_Sequence
8843 (N : Node_Id) return Node_Id; -- Node4
8845 function Handler_List_Entry
8846 (N : Node_Id) return Node_Id; -- Node2
8848 function Has_Created_Identifier
8849 (N : Node_Id) return Boolean; -- Flag15
8851 function Has_Dereference_Action
8852 (N : Node_Id) return Boolean; -- Flag13
8854 function Has_Dynamic_Length_Check
8855 (N : Node_Id) return Boolean; -- Flag10
8857 function Has_Dynamic_Range_Check
8858 (N : Node_Id) return Boolean; -- Flag12
8860 function Has_Init_Expression
8861 (N : Node_Id) return Boolean; -- Flag14
8863 function Has_Local_Raise
8864 (N : Node_Id) return Boolean; -- Flag8
8866 function Has_No_Elaboration_Code
8867 (N : Node_Id) return Boolean; -- Flag17
8869 function Has_Pragma_Suppress_All
8870 (N : Node_Id) return Boolean; -- Flag14
8872 function Has_Private_View
8873 (N : Node_Id) return Boolean; -- Flag11
8875 function Has_Relative_Deadline_Pragma
8876 (N : Node_Id) return Boolean; -- Flag9
8878 function Has_Self_Reference
8879 (N : Node_Id) return Boolean; -- Flag13
8881 function Has_SP_Choice
8882 (N : Node_Id) return Boolean; -- Flag15
8884 function Has_Storage_Size_Pragma
8885 (N : Node_Id) return Boolean; -- Flag5
8887 function Has_Wide_Character
8888 (N : Node_Id) return Boolean; -- Flag11
8890 function Has_Wide_Wide_Character
8891 (N : Node_Id) return Boolean; -- Flag13
8893 function Header_Size_Added
8894 (N : Node_Id) return Boolean; -- Flag11
8896 function Hidden_By_Use_Clause
8897 (N : Node_Id) return Elist_Id; -- Elist4
8899 function High_Bound
8900 (N : Node_Id) return Node_Id; -- Node2
8902 function Identifier
8903 (N : Node_Id) return Node_Id; -- Node1
8905 function Interface_List
8906 (N : Node_Id) return List_Id; -- List2
8908 function Interface_Present
8909 (N : Node_Id) return Boolean; -- Flag16
8911 function Implicit_With
8912 (N : Node_Id) return Boolean; -- Flag16
8914 function Implicit_With_From_Instantiation
8915 (N : Node_Id) return Boolean; -- Flag12
8917 function Import_Interface_Present
8918 (N : Node_Id) return Boolean; -- Flag16
8920 function In_Assertion_Expression
8921 (N : Node_Id) return Boolean; -- Flag4
8923 function In_Present
8924 (N : Node_Id) return Boolean; -- Flag15
8926 function Includes_Infinities
8927 (N : Node_Id) return Boolean; -- Flag11
8929 function Inherited_Discriminant
8930 (N : Node_Id) return Boolean; -- Flag13
8932 function Instance_Spec
8933 (N : Node_Id) return Node_Id; -- Node5
8935 function Intval
8936 (N : Node_Id) return Uint; -- Uint3
8938 function Is_Accessibility_Actual
8939 (N : Node_Id) return Boolean; -- Flag13
8941 function Is_Asynchronous_Call_Block
8942 (N : Node_Id) return Boolean; -- Flag7
8944 function Is_Boolean_Aspect
8945 (N : Node_Id) return Boolean; -- Flag16
8947 function Is_Checked
8948 (N : Node_Id) return Boolean; -- Flag11
8950 function Is_Component_Left_Opnd
8951 (N : Node_Id) return Boolean; -- Flag13
8953 function Is_Component_Right_Opnd
8954 (N : Node_Id) return Boolean; -- Flag14
8956 function Is_Controlling_Actual
8957 (N : Node_Id) return Boolean; -- Flag16
8959 function Is_Delayed_Aspect
8960 (N : Node_Id) return Boolean; -- Flag14
8962 function Is_Disabled
8963 (N : Node_Id) return Boolean; -- Flag15
8965 function Is_Dynamic_Coextension
8966 (N : Node_Id) return Boolean; -- Flag18
8968 function Is_Elsif
8969 (N : Node_Id) return Boolean; -- Flag13
8971 function Is_Entry_Barrier_Function
8972 (N : Node_Id) return Boolean; -- Flag8
8974 function Is_Expanded_Build_In_Place_Call
8975 (N : Node_Id) return Boolean; -- Flag11
8977 function Is_Finalization_Wrapper
8978 (N : Node_Id) return Boolean; -- Flag9
8980 function Is_Folded_In_Parser
8981 (N : Node_Id) return Boolean; -- Flag4
8983 function Is_Ignored
8984 (N : Node_Id) return Boolean; -- Flag9
8986 function Is_In_Discriminant_Check
8987 (N : Node_Id) return Boolean; -- Flag11
8989 function Is_Machine_Number
8990 (N : Node_Id) return Boolean; -- Flag11
8992 function Is_Null_Loop
8993 (N : Node_Id) return Boolean; -- Flag16
8995 function Is_Overloaded
8996 (N : Node_Id) return Boolean; -- Flag5
8998 function Is_Power_Of_2_For_Shift
8999 (N : Node_Id) return Boolean; -- Flag13
9001 function Is_Prefixed_Call
9002 (N : Node_Id) return Boolean; -- Flag17
9004 function Is_Protected_Subprogram_Body
9005 (N : Node_Id) return Boolean; -- Flag7
9007 function Is_Static_Coextension
9008 (N : Node_Id) return Boolean; -- Flag14
9010 function Is_Static_Expression
9011 (N : Node_Id) return Boolean; -- Flag6
9013 function Is_Subprogram_Descriptor
9014 (N : Node_Id) return Boolean; -- Flag16
9016 function Is_Task_Allocation_Block
9017 (N : Node_Id) return Boolean; -- Flag6
9019 function Is_Task_Master
9020 (N : Node_Id) return Boolean; -- Flag5
9022 function Iteration_Scheme
9023 (N : Node_Id) return Node_Id; -- Node2
9025 function Iterator_Specification
9026 (N : Node_Id) return Node_Id; -- Node2
9028 function Itype
9029 (N : Node_Id) return Entity_Id; -- Node1
9031 function Kill_Range_Check
9032 (N : Node_Id) return Boolean; -- Flag11
9034 function Label_Construct
9035 (N : Node_Id) return Node_Id; -- Node2
9037 function Left_Opnd
9038 (N : Node_Id) return Node_Id; -- Node2
9040 function Last_Bit
9041 (N : Node_Id) return Node_Id; -- Node4
9043 function Last_Name
9044 (N : Node_Id) return Boolean; -- Flag6
9046 function Library_Unit
9047 (N : Node_Id) return Node_Id; -- Node4
9049 function Limited_View_Installed
9050 (N : Node_Id) return Boolean; -- Flag18
9052 function Limited_Present
9053 (N : Node_Id) return Boolean; -- Flag17
9055 function Literals
9056 (N : Node_Id) return List_Id; -- List1
9058 function Local_Raise_Not_OK
9059 (N : Node_Id) return Boolean; -- Flag7
9061 function Local_Raise_Statements
9062 (N : Node_Id) return Elist_Id; -- Elist1
9064 function Loop_Actions
9065 (N : Node_Id) return List_Id; -- List2
9067 function Loop_Parameter_Specification
9068 (N : Node_Id) return Node_Id; -- Node4
9070 function Low_Bound
9071 (N : Node_Id) return Node_Id; -- Node1
9073 function Mod_Clause
9074 (N : Node_Id) return Node_Id; -- Node2
9076 function More_Ids
9077 (N : Node_Id) return Boolean; -- Flag5
9079 function Must_Be_Byte_Aligned
9080 (N : Node_Id) return Boolean; -- Flag14
9082 function Must_Not_Freeze
9083 (N : Node_Id) return Boolean; -- Flag8
9085 function Must_Not_Override
9086 (N : Node_Id) return Boolean; -- Flag15
9088 function Must_Override
9089 (N : Node_Id) return Boolean; -- Flag14
9091 function Name
9092 (N : Node_Id) return Node_Id; -- Node2
9094 function Names
9095 (N : Node_Id) return List_Id; -- List2
9097 function Next_Entity
9098 (N : Node_Id) return Node_Id; -- Node2
9100 function Next_Exit_Statement
9101 (N : Node_Id) return Node_Id; -- Node3
9103 function Next_Implicit_With
9104 (N : Node_Id) return Node_Id; -- Node3
9106 function Next_Named_Actual
9107 (N : Node_Id) return Node_Id; -- Node4
9109 function Next_Pragma
9110 (N : Node_Id) return Node_Id; -- Node1
9112 function Next_Rep_Item
9113 (N : Node_Id) return Node_Id; -- Node5
9115 function Next_Use_Clause
9116 (N : Node_Id) return Node_Id; -- Node3
9118 function No_Ctrl_Actions
9119 (N : Node_Id) return Boolean; -- Flag7
9121 function No_Elaboration_Check
9122 (N : Node_Id) return Boolean; -- Flag14
9124 function No_Entities_Ref_In_Spec
9125 (N : Node_Id) return Boolean; -- Flag8
9127 function No_Initialization
9128 (N : Node_Id) return Boolean; -- Flag13
9130 function No_Minimize_Eliminate
9131 (N : Node_Id) return Boolean; -- Flag17
9133 function No_Truncation
9134 (N : Node_Id) return Boolean; -- Flag17
9136 function Null_Present
9137 (N : Node_Id) return Boolean; -- Flag13
9139 function Null_Exclusion_Present
9140 (N : Node_Id) return Boolean; -- Flag11
9142 function Null_Exclusion_In_Return_Present
9143 (N : Node_Id) return Boolean; -- Flag14
9145 function Null_Record_Present
9146 (N : Node_Id) return Boolean; -- Flag17
9148 function Object_Definition
9149 (N : Node_Id) return Node_Id; -- Node4
9151 function Of_Present
9152 (N : Node_Id) return Boolean; -- Flag16
9154 function Original_Discriminant
9155 (N : Node_Id) return Node_Id; -- Node2
9157 function Original_Entity
9158 (N : Node_Id) return Entity_Id; -- Node2
9160 function Others_Discrete_Choices
9161 (N : Node_Id) return List_Id; -- List1
9163 function Out_Present
9164 (N : Node_Id) return Boolean; -- Flag17
9166 function Parameter_Associations
9167 (N : Node_Id) return List_Id; -- List3
9169 function Parameter_List_Truncated
9170 (N : Node_Id) return Boolean; -- Flag17
9172 function Parameter_Specifications
9173 (N : Node_Id) return List_Id; -- List3
9175 function Parameter_Type
9176 (N : Node_Id) return Node_Id; -- Node2
9178 function Parent_Spec
9179 (N : Node_Id) return Node_Id; -- Node4
9181 function Position
9182 (N : Node_Id) return Node_Id; -- Node2
9184 function Pragma_Argument_Associations
9185 (N : Node_Id) return List_Id; -- List2
9187 function Pragma_Identifier
9188 (N : Node_Id) return Node_Id; -- Node4
9190 function Pragmas_After
9191 (N : Node_Id) return List_Id; -- List5
9193 function Pragmas_Before
9194 (N : Node_Id) return List_Id; -- List4
9196 function Pre_Post_Conditions
9197 (N : Node_Id) return Node_Id; -- Node1
9199 function Prefix
9200 (N : Node_Id) return Node_Id; -- Node3
9202 function Premature_Use
9203 (N : Node_Id) return Node_Id; -- Node5
9205 function Present_Expr
9206 (N : Node_Id) return Uint; -- Uint3
9208 function Prev_Ids
9209 (N : Node_Id) return Boolean; -- Flag6
9211 function Print_In_Hex
9212 (N : Node_Id) return Boolean; -- Flag13
9214 function Private_Declarations
9215 (N : Node_Id) return List_Id; -- List3
9217 function Private_Present
9218 (N : Node_Id) return Boolean; -- Flag15
9220 function Procedure_To_Call
9221 (N : Node_Id) return Node_Id; -- Node2
9223 function Proper_Body
9224 (N : Node_Id) return Node_Id; -- Node1
9226 function Protected_Definition
9227 (N : Node_Id) return Node_Id; -- Node3
9229 function Protected_Present
9230 (N : Node_Id) return Boolean; -- Flag6
9232 function Raises_Constraint_Error
9233 (N : Node_Id) return Boolean; -- Flag7
9235 function Range_Constraint
9236 (N : Node_Id) return Node_Id; -- Node4
9238 function Range_Expression
9239 (N : Node_Id) return Node_Id; -- Node4
9241 function Real_Range_Specification
9242 (N : Node_Id) return Node_Id; -- Node4
9244 function Realval
9245 (N : Node_Id) return Ureal; -- Ureal3
9247 function Reason
9248 (N : Node_Id) return Uint; -- Uint3
9250 function Record_Extension_Part
9251 (N : Node_Id) return Node_Id; -- Node3
9253 function Redundant_Use
9254 (N : Node_Id) return Boolean; -- Flag13
9256 function Renaming_Exception
9257 (N : Node_Id) return Node_Id; -- Node2
9259 function Result_Definition
9260 (N : Node_Id) return Node_Id; -- Node4
9262 function Return_Object_Declarations
9263 (N : Node_Id) return List_Id; -- List3
9265 function Return_Statement_Entity
9266 (N : Node_Id) return Node_Id; -- Node5
9268 function Reverse_Present
9269 (N : Node_Id) return Boolean; -- Flag15
9271 function Right_Opnd
9272 (N : Node_Id) return Node_Id; -- Node3
9274 function Rounded_Result
9275 (N : Node_Id) return Boolean; -- Flag18
9277 function SCIL_Controlling_Tag
9278 (N : Node_Id) return Node_Id; -- Node5
9280 function SCIL_Entity
9281 (N : Node_Id) return Node_Id; -- Node4
9283 function SCIL_Tag_Value
9284 (N : Node_Id) return Node_Id; -- Node5
9286 function SCIL_Target_Prim
9287 (N : Node_Id) return Node_Id; -- Node2
9289 function Scope
9290 (N : Node_Id) return Node_Id; -- Node3
9292 function Select_Alternatives
9293 (N : Node_Id) return List_Id; -- List1
9295 function Selector_Name
9296 (N : Node_Id) return Node_Id; -- Node2
9298 function Selector_Names
9299 (N : Node_Id) return List_Id; -- List1
9301 function Shift_Count_OK
9302 (N : Node_Id) return Boolean; -- Flag4
9304 function Source_Type
9305 (N : Node_Id) return Entity_Id; -- Node1
9307 function Specification
9308 (N : Node_Id) return Node_Id; -- Node1
9310 function Split_PPC
9311 (N : Node_Id) return Boolean; -- Flag17
9313 function Statements
9314 (N : Node_Id) return List_Id; -- List3
9316 function Storage_Pool
9317 (N : Node_Id) return Node_Id; -- Node1
9319 function Subpool_Handle_Name
9320 (N : Node_Id) return Node_Id; -- Node4
9322 function Strval
9323 (N : Node_Id) return String_Id; -- Str3
9325 function Subtype_Indication
9326 (N : Node_Id) return Node_Id; -- Node5
9328 function Subtype_Mark
9329 (N : Node_Id) return Node_Id; -- Node4
9331 function Subtype_Marks
9332 (N : Node_Id) return List_Id; -- List2
9334 function Suppress_Assignment_Checks
9335 (N : Node_Id) return Boolean; -- Flag18
9337 function Suppress_Loop_Warnings
9338 (N : Node_Id) return Boolean; -- Flag17
9340 function Synchronized_Present
9341 (N : Node_Id) return Boolean; -- Flag7
9343 function Tagged_Present
9344 (N : Node_Id) return Boolean; -- Flag15
9346 function Target_Type
9347 (N : Node_Id) return Entity_Id; -- Node2
9349 function Task_Definition
9350 (N : Node_Id) return Node_Id; -- Node3
9352 function Task_Present
9353 (N : Node_Id) return Boolean; -- Flag5
9355 function Then_Actions
9356 (N : Node_Id) return List_Id; -- List2
9358 function Then_Statements
9359 (N : Node_Id) return List_Id; -- List2
9361 function Treat_Fixed_As_Integer
9362 (N : Node_Id) return Boolean; -- Flag14
9364 function Triggering_Alternative
9365 (N : Node_Id) return Node_Id; -- Node1
9367 function Triggering_Statement
9368 (N : Node_Id) return Node_Id; -- Node1
9370 function TSS_Elist
9371 (N : Node_Id) return Elist_Id; -- Elist3
9373 function Type_Definition
9374 (N : Node_Id) return Node_Id; -- Node3
9376 function Unit
9377 (N : Node_Id) return Node_Id; -- Node2
9379 function Unknown_Discriminants_Present
9380 (N : Node_Id) return Boolean; -- Flag13
9382 function Unreferenced_In_Spec
9383 (N : Node_Id) return Boolean; -- Flag7
9385 function Variant_Part
9386 (N : Node_Id) return Node_Id; -- Node4
9388 function Variants
9389 (N : Node_Id) return List_Id; -- List1
9391 function Visible_Declarations
9392 (N : Node_Id) return List_Id; -- List2
9394 function Used_Operations
9395 (N : Node_Id) return Elist_Id; -- Elist5
9397 function Was_Originally_Stub
9398 (N : Node_Id) return Boolean; -- Flag13
9400 function Withed_Body
9401 (N : Node_Id) return Node_Id; -- Node1
9403 -- End functions (note used by xsinfo utility program to end processing)
9405 ----------------------------
9406 -- Node Update Procedures --
9407 ----------------------------
9409 -- These are the corresponding node update routines, which again provide
9410 -- a high level logical access with type checking. In addition to setting
9411 -- the indicated field of the node N to the given Val, in the case of
9412 -- tree pointers (List1-4), the parent pointer of the Val node is set to
9413 -- point back to node N. This automates the setting of the parent pointer.
9415 procedure Set_ABE_Is_Certain
9416 (N : Node_Id; Val : Boolean := True); -- Flag18
9418 procedure Set_Abort_Present
9419 (N : Node_Id; Val : Boolean := True); -- Flag15
9421 procedure Set_Abortable_Part
9422 (N : Node_Id; Val : Node_Id); -- Node2
9424 procedure Set_Abstract_Present
9425 (N : Node_Id; Val : Boolean := True); -- Flag4
9427 procedure Set_Accept_Handler_Records
9428 (N : Node_Id; Val : List_Id); -- List5
9430 procedure Set_Accept_Statement
9431 (N : Node_Id; Val : Node_Id); -- Node2
9433 procedure Set_Access_Definition
9434 (N : Node_Id; Val : Node_Id); -- Node3
9436 procedure Set_Access_To_Subprogram_Definition
9437 (N : Node_Id; Val : Node_Id); -- Node3
9439 procedure Set_Access_Types_To_Process
9440 (N : Node_Id; Val : Elist_Id); -- Elist2
9442 procedure Set_Actions
9443 (N : Node_Id; Val : List_Id); -- List1
9445 procedure Set_Activation_Chain_Entity
9446 (N : Node_Id; Val : Node_Id); -- Node3
9448 procedure Set_Acts_As_Spec
9449 (N : Node_Id; Val : Boolean := True); -- Flag4
9451 procedure Set_Actual_Designated_Subtype
9452 (N : Node_Id; Val : Node_Id); -- Node4
9454 procedure Set_Address_Warning_Posted
9455 (N : Node_Id; Val : Boolean := True); -- Flag18
9457 procedure Set_Aggregate_Bounds
9458 (N : Node_Id; Val : Node_Id); -- Node3
9460 procedure Set_Aliased_Present
9461 (N : Node_Id; Val : Boolean := True); -- Flag4
9463 procedure Set_All_Others
9464 (N : Node_Id; Val : Boolean := True); -- Flag11
9466 procedure Set_All_Present
9467 (N : Node_Id; Val : Boolean := True); -- Flag15
9469 procedure Set_Alternatives
9470 (N : Node_Id; Val : List_Id); -- List4
9472 procedure Set_Ancestor_Part
9473 (N : Node_Id; Val : Node_Id); -- Node3
9475 procedure Set_Atomic_Sync_Required
9476 (N : Node_Id; Val : Boolean := True); -- Flag14
9478 procedure Set_Array_Aggregate
9479 (N : Node_Id; Val : Node_Id); -- Node3
9481 procedure Set_Aspect_Rep_Item
9482 (N : Node_Id; Val : Node_Id); -- Node2
9484 procedure Set_Assignment_OK
9485 (N : Node_Id; Val : Boolean := True); -- Flag15
9487 procedure Set_Associated_Node
9488 (N : Node_Id; Val : Node_Id); -- Node4
9490 procedure Set_Attribute_Name
9491 (N : Node_Id; Val : Name_Id); -- Name2
9493 procedure Set_At_End_Proc
9494 (N : Node_Id; Val : Node_Id); -- Node1
9496 procedure Set_Aux_Decls_Node
9497 (N : Node_Id; Val : Node_Id); -- Node5
9499 procedure Set_Backwards_OK
9500 (N : Node_Id; Val : Boolean := True); -- Flag6
9502 procedure Set_Bad_Is_Detected
9503 (N : Node_Id; Val : Boolean := True); -- Flag15
9505 procedure Set_Body_Required
9506 (N : Node_Id; Val : Boolean := True); -- Flag13
9508 procedure Set_Body_To_Inline
9509 (N : Node_Id; Val : Node_Id); -- Node3
9511 procedure Set_Box_Present
9512 (N : Node_Id; Val : Boolean := True); -- Flag15
9514 procedure Set_By_Ref
9515 (N : Node_Id; Val : Boolean := True); -- Flag5
9517 procedure Set_Char_Literal_Value
9518 (N : Node_Id; Val : Uint); -- Uint2
9520 procedure Set_Chars
9521 (N : Node_Id; Val : Name_Id); -- Name1
9523 procedure Set_Check_Address_Alignment
9524 (N : Node_Id; Val : Boolean := True); -- Flag11
9526 procedure Set_Choice_Parameter
9527 (N : Node_Id; Val : Node_Id); -- Node2
9529 procedure Set_Choices
9530 (N : Node_Id; Val : List_Id); -- List1
9532 procedure Set_Class_Present
9533 (N : Node_Id; Val : Boolean := True); -- Flag6
9535 procedure Set_Classifications
9536 (N : Node_Id; Val : Node_Id); -- Node3
9538 procedure Set_Comes_From_Extended_Return_Statement
9539 (N : Node_Id; Val : Boolean := True); -- Flag18
9541 procedure Set_Compile_Time_Known_Aggregate
9542 (N : Node_Id; Val : Boolean := True); -- Flag18
9544 procedure Set_Component_Associations
9545 (N : Node_Id; Val : List_Id); -- List2
9547 procedure Set_Component_Clauses
9548 (N : Node_Id; Val : List_Id); -- List3
9550 procedure Set_Component_Definition
9551 (N : Node_Id; Val : Node_Id); -- Node4
9553 procedure Set_Component_Items
9554 (N : Node_Id; Val : List_Id); -- List3
9556 procedure Set_Component_List
9557 (N : Node_Id; Val : Node_Id); -- Node1
9559 procedure Set_Component_Name
9560 (N : Node_Id; Val : Node_Id); -- Node1
9562 procedure Set_Componentwise_Assignment
9563 (N : Node_Id; Val : Boolean := True); -- Flag14
9565 procedure Set_Condition
9566 (N : Node_Id; Val : Node_Id); -- Node1
9568 procedure Set_Condition_Actions
9569 (N : Node_Id; Val : List_Id); -- List3
9571 procedure Set_Config_Pragmas
9572 (N : Node_Id; Val : List_Id); -- List4
9574 procedure Set_Constant_Present
9575 (N : Node_Id; Val : Boolean := True); -- Flag17
9577 procedure Set_Constraint
9578 (N : Node_Id; Val : Node_Id); -- Node3
9580 procedure Set_Constraints
9581 (N : Node_Id; Val : List_Id); -- List1
9583 procedure Set_Context_Installed
9584 (N : Node_Id; Val : Boolean := True); -- Flag13
9586 procedure Set_Context_Items
9587 (N : Node_Id; Val : List_Id); -- List1
9589 procedure Set_Context_Pending
9590 (N : Node_Id; Val : Boolean := True); -- Flag16
9592 procedure Set_Contract_Test_Cases
9593 (N : Node_Id; Val : Node_Id); -- Node2
9595 procedure Set_Controlling_Argument
9596 (N : Node_Id; Val : Node_Id); -- Node1
9598 procedure Set_Conversion_OK
9599 (N : Node_Id; Val : Boolean := True); -- Flag14
9601 procedure Set_Convert_To_Return_False
9602 (N : Node_Id; Val : Boolean := True); -- Flag13
9604 procedure Set_Corresponding_Aspect
9605 (N : Node_Id; Val : Node_Id); -- Node3
9607 procedure Set_Corresponding_Body
9608 (N : Node_Id; Val : Node_Id); -- Node5
9610 procedure Set_Corresponding_Formal_Spec
9611 (N : Node_Id; Val : Node_Id); -- Node3
9613 procedure Set_Corresponding_Generic_Association
9614 (N : Node_Id; Val : Node_Id); -- Node5
9616 procedure Set_Corresponding_Integer_Value
9617 (N : Node_Id; Val : Uint); -- Uint4
9619 procedure Set_Corresponding_Spec
9620 (N : Node_Id; Val : Node_Id); -- Node5
9622 procedure Set_Corresponding_Spec_Of_Stub
9623 (N : Node_Id; Val : Node_Id); -- Node2
9625 procedure Set_Corresponding_Stub
9626 (N : Node_Id; Val : Node_Id); -- Node3
9628 procedure Set_Dcheck_Function
9629 (N : Node_Id; Val : Entity_Id); -- Node5
9631 procedure Set_Declarations
9632 (N : Node_Id; Val : List_Id); -- List2
9634 procedure Set_Default_Expression
9635 (N : Node_Id; Val : Node_Id); -- Node5
9637 procedure Set_Default_Storage_Pool
9638 (N : Node_Id; Val : Node_Id); -- Node3
9640 procedure Set_Default_Name
9641 (N : Node_Id; Val : Node_Id); -- Node2
9643 procedure Set_Defining_Identifier
9644 (N : Node_Id; Val : Entity_Id); -- Node1
9646 procedure Set_Defining_Unit_Name
9647 (N : Node_Id; Val : Node_Id); -- Node1
9649 procedure Set_Delay_Alternative
9650 (N : Node_Id; Val : Node_Id); -- Node4
9652 procedure Set_Delay_Statement
9653 (N : Node_Id; Val : Node_Id); -- Node2
9655 procedure Set_Delta_Expression
9656 (N : Node_Id; Val : Node_Id); -- Node3
9658 procedure Set_Digits_Expression
9659 (N : Node_Id; Val : Node_Id); -- Node2
9661 procedure Set_Discr_Check_Funcs_Built
9662 (N : Node_Id; Val : Boolean := True); -- Flag11
9664 procedure Set_Discrete_Choices
9665 (N : Node_Id; Val : List_Id); -- List4
9667 procedure Set_Discrete_Range
9668 (N : Node_Id; Val : Node_Id); -- Node4
9670 procedure Set_Discrete_Subtype_Definition
9671 (N : Node_Id; Val : Node_Id); -- Node4
9673 procedure Set_Discrete_Subtype_Definitions
9674 (N : Node_Id; Val : List_Id); -- List2
9676 procedure Set_Discriminant_Specifications
9677 (N : Node_Id; Val : List_Id); -- List4
9679 procedure Set_Discriminant_Type
9680 (N : Node_Id; Val : Node_Id); -- Node5
9682 procedure Set_Do_Accessibility_Check
9683 (N : Node_Id; Val : Boolean := True); -- Flag13
9685 procedure Set_Do_Discriminant_Check
9686 (N : Node_Id; Val : Boolean := True); -- Flag13
9688 procedure Set_Do_Division_Check
9689 (N : Node_Id; Val : Boolean := True); -- Flag13
9691 procedure Set_Do_Length_Check
9692 (N : Node_Id; Val : Boolean := True); -- Flag4
9694 procedure Set_Do_Overflow_Check
9695 (N : Node_Id; Val : Boolean := True); -- Flag17
9697 procedure Set_Do_Range_Check
9698 (N : Node_Id; Val : Boolean := True); -- Flag9
9700 procedure Set_Do_Storage_Check
9701 (N : Node_Id; Val : Boolean := True); -- Flag17
9703 procedure Set_Do_Tag_Check
9704 (N : Node_Id; Val : Boolean := True); -- Flag13
9706 procedure Set_Elaborate_All_Desirable
9707 (N : Node_Id; Val : Boolean := True); -- Flag9
9709 procedure Set_Elaborate_All_Present
9710 (N : Node_Id; Val : Boolean := True); -- Flag14
9712 procedure Set_Elaborate_Desirable
9713 (N : Node_Id; Val : Boolean := True); -- Flag11
9715 procedure Set_Elaborate_Present
9716 (N : Node_Id; Val : Boolean := True); -- Flag4
9718 procedure Set_Elaboration_Boolean
9719 (N : Node_Id; Val : Node_Id); -- Node2
9721 procedure Set_Else_Actions
9722 (N : Node_Id; Val : List_Id); -- List3
9724 procedure Set_Else_Statements
9725 (N : Node_Id; Val : List_Id); -- List4
9727 procedure Set_Elsif_Parts
9728 (N : Node_Id; Val : List_Id); -- List3
9730 procedure Set_Enclosing_Variant
9731 (N : Node_Id; Val : Node_Id); -- Node2
9733 procedure Set_End_Label
9734 (N : Node_Id; Val : Node_Id); -- Node4
9736 procedure Set_End_Span
9737 (N : Node_Id; Val : Uint); -- Uint5
9739 procedure Set_Entity
9740 (N : Node_Id; Val : Node_Id); -- Node4
9742 procedure Set_Entry_Body_Formal_Part
9743 (N : Node_Id; Val : Node_Id); -- Node5
9745 procedure Set_Entry_Call_Alternative
9746 (N : Node_Id; Val : Node_Id); -- Node1
9748 procedure Set_Entry_Call_Statement
9749 (N : Node_Id; Val : Node_Id); -- Node1
9751 procedure Set_Entry_Direct_Name
9752 (N : Node_Id; Val : Node_Id); -- Node1
9754 procedure Set_Entry_Index
9755 (N : Node_Id; Val : Node_Id); -- Node5
9757 procedure Set_Entry_Index_Specification
9758 (N : Node_Id; Val : Node_Id); -- Node4
9760 procedure Set_Etype
9761 (N : Node_Id; Val : Node_Id); -- Node5
9763 procedure Set_Exception_Choices
9764 (N : Node_Id; Val : List_Id); -- List4
9766 procedure Set_Exception_Handlers
9767 (N : Node_Id; Val : List_Id); -- List5
9769 procedure Set_Exception_Junk
9770 (N : Node_Id; Val : Boolean := True); -- Flag8
9772 procedure Set_Exception_Label
9773 (N : Node_Id; Val : Node_Id); -- Node5
9775 procedure Set_Expansion_Delayed
9776 (N : Node_Id; Val : Boolean := True); -- Flag11
9778 procedure Set_Explicit_Actual_Parameter
9779 (N : Node_Id; Val : Node_Id); -- Node3
9781 procedure Set_Explicit_Generic_Actual_Parameter
9782 (N : Node_Id; Val : Node_Id); -- Node1
9784 procedure Set_Expression
9785 (N : Node_Id; Val : Node_Id); -- Node3
9787 procedure Set_Expressions
9788 (N : Node_Id; Val : List_Id); -- List1
9790 procedure Set_First_Bit
9791 (N : Node_Id; Val : Node_Id); -- Node3
9793 procedure Set_First_Inlined_Subprogram
9794 (N : Node_Id; Val : Entity_Id); -- Node3
9796 procedure Set_First_Name
9797 (N : Node_Id; Val : Boolean := True); -- Flag5
9799 procedure Set_First_Named_Actual
9800 (N : Node_Id; Val : Node_Id); -- Node4
9802 procedure Set_First_Real_Statement
9803 (N : Node_Id; Val : Node_Id); -- Node2
9805 procedure Set_First_Subtype_Link
9806 (N : Node_Id; Val : Entity_Id); -- Node5
9808 procedure Set_Float_Truncate
9809 (N : Node_Id; Val : Boolean := True); -- Flag11
9811 procedure Set_Formal_Type_Definition
9812 (N : Node_Id; Val : Node_Id); -- Node3
9814 procedure Set_Forwards_OK
9815 (N : Node_Id; Val : Boolean := True); -- Flag5
9817 procedure Set_From_At_Mod
9818 (N : Node_Id; Val : Boolean := True); -- Flag4
9820 procedure Set_From_Aspect_Specification
9821 (N : Node_Id; Val : Boolean := True); -- Flag13
9823 procedure Set_From_At_End
9824 (N : Node_Id; Val : Boolean := True); -- Flag4
9826 procedure Set_From_Default
9827 (N : Node_Id; Val : Boolean := True); -- Flag6
9829 procedure Set_Generic_Associations
9830 (N : Node_Id; Val : List_Id); -- List3
9832 procedure Set_Generic_Formal_Declarations
9833 (N : Node_Id; Val : List_Id); -- List2
9835 procedure Set_Generic_Parent
9836 (N : Node_Id; Val : Node_Id); -- Node5
9838 procedure Set_Generic_Parent_Type
9839 (N : Node_Id; Val : Node_Id); -- Node4
9841 procedure Set_Handled_Statement_Sequence
9842 (N : Node_Id; Val : Node_Id); -- Node4
9844 procedure Set_Handler_List_Entry
9845 (N : Node_Id; Val : Node_Id); -- Node2
9847 procedure Set_Has_Created_Identifier
9848 (N : Node_Id; Val : Boolean := True); -- Flag15
9850 procedure Set_Has_Dereference_Action
9851 (N : Node_Id; Val : Boolean := True); -- Flag13
9853 procedure Set_Has_Dynamic_Length_Check
9854 (N : Node_Id; Val : Boolean := True); -- Flag10
9856 procedure Set_Has_Dynamic_Range_Check
9857 (N : Node_Id; Val : Boolean := True); -- Flag12
9859 procedure Set_Has_Init_Expression
9860 (N : Node_Id; Val : Boolean := True); -- Flag14
9862 procedure Set_Has_Local_Raise
9863 (N : Node_Id; Val : Boolean := True); -- Flag8
9865 procedure Set_Has_No_Elaboration_Code
9866 (N : Node_Id; Val : Boolean := True); -- Flag17
9868 procedure Set_Has_Pragma_Suppress_All
9869 (N : Node_Id; Val : Boolean := True); -- Flag14
9871 procedure Set_Has_Private_View
9872 (N : Node_Id; Val : Boolean := True); -- Flag11
9874 procedure Set_Has_Relative_Deadline_Pragma
9875 (N : Node_Id; Val : Boolean := True); -- Flag9
9877 procedure Set_Has_Self_Reference
9878 (N : Node_Id; Val : Boolean := True); -- Flag13
9880 procedure Set_Has_SP_Choice
9881 (N : Node_Id; Val : Boolean := True); -- Flag15
9883 procedure Set_Has_Storage_Size_Pragma
9884 (N : Node_Id; Val : Boolean := True); -- Flag5
9886 procedure Set_Has_Wide_Character
9887 (N : Node_Id; Val : Boolean := True); -- Flag11
9889 procedure Set_Has_Wide_Wide_Character
9890 (N : Node_Id; Val : Boolean := True); -- Flag13
9892 procedure Set_Header_Size_Added
9893 (N : Node_Id; Val : Boolean := True); -- Flag11
9895 procedure Set_Hidden_By_Use_Clause
9896 (N : Node_Id; Val : Elist_Id); -- Elist4
9898 procedure Set_High_Bound
9899 (N : Node_Id; Val : Node_Id); -- Node2
9901 procedure Set_Identifier
9902 (N : Node_Id; Val : Node_Id); -- Node1
9904 procedure Set_Interface_List
9905 (N : Node_Id; Val : List_Id); -- List2
9907 procedure Set_Interface_Present
9908 (N : Node_Id; Val : Boolean := True); -- Flag16
9910 procedure Set_Implicit_With
9911 (N : Node_Id; Val : Boolean := True); -- Flag16
9913 procedure Set_Implicit_With_From_Instantiation
9914 (N : Node_Id; Val : Boolean := True); -- Flag12
9916 procedure Set_Import_Interface_Present
9917 (N : Node_Id; Val : Boolean := True); -- Flag16
9919 procedure Set_In_Assertion_Expression
9920 (N : Node_Id; Val : Boolean := True); -- Flag4
9922 procedure Set_In_Present
9923 (N : Node_Id; Val : Boolean := True); -- Flag15
9925 procedure Set_Includes_Infinities
9926 (N : Node_Id; Val : Boolean := True); -- Flag11
9928 procedure Set_Inherited_Discriminant
9929 (N : Node_Id; Val : Boolean := True); -- Flag13
9931 procedure Set_Instance_Spec
9932 (N : Node_Id; Val : Node_Id); -- Node5
9934 procedure Set_Intval
9935 (N : Node_Id; Val : Uint); -- Uint3
9937 procedure Set_Is_Accessibility_Actual
9938 (N : Node_Id; Val : Boolean := True); -- Flag13
9940 procedure Set_Is_Asynchronous_Call_Block
9941 (N : Node_Id; Val : Boolean := True); -- Flag7
9943 procedure Set_Is_Boolean_Aspect
9944 (N : Node_Id; Val : Boolean := True); -- Flag16
9946 procedure Set_Is_Checked
9947 (N : Node_Id; Val : Boolean := True); -- Flag11
9949 procedure Set_Is_Component_Left_Opnd
9950 (N : Node_Id; Val : Boolean := True); -- Flag13
9952 procedure Set_Is_Component_Right_Opnd
9953 (N : Node_Id; Val : Boolean := True); -- Flag14
9955 procedure Set_Is_Controlling_Actual
9956 (N : Node_Id; Val : Boolean := True); -- Flag16
9958 procedure Set_Is_Delayed_Aspect
9959 (N : Node_Id; Val : Boolean := True); -- Flag14
9961 procedure Set_Is_Disabled
9962 (N : Node_Id; Val : Boolean := True); -- Flag15
9964 procedure Set_Is_Ignored
9965 (N : Node_Id; Val : Boolean := True); -- Flag9
9967 procedure Set_Is_Dynamic_Coextension
9968 (N : Node_Id; Val : Boolean := True); -- Flag18
9970 procedure Set_Is_Elsif
9971 (N : Node_Id; Val : Boolean := True); -- Flag13
9973 procedure Set_Is_Entry_Barrier_Function
9974 (N : Node_Id; Val : Boolean := True); -- Flag8
9976 procedure Set_Is_Expanded_Build_In_Place_Call
9977 (N : Node_Id; Val : Boolean := True); -- Flag11
9979 procedure Set_Is_Finalization_Wrapper
9980 (N : Node_Id; Val : Boolean := True); -- Flag9
9982 procedure Set_Is_Folded_In_Parser
9983 (N : Node_Id; Val : Boolean := True); -- Flag4
9985 procedure Set_Is_In_Discriminant_Check
9986 (N : Node_Id; Val : Boolean := True); -- Flag11
9988 procedure Set_Is_Machine_Number
9989 (N : Node_Id; Val : Boolean := True); -- Flag11
9991 procedure Set_Is_Null_Loop
9992 (N : Node_Id; Val : Boolean := True); -- Flag16
9994 procedure Set_Is_Overloaded
9995 (N : Node_Id; Val : Boolean := True); -- Flag5
9997 procedure Set_Is_Power_Of_2_For_Shift
9998 (N : Node_Id; Val : Boolean := True); -- Flag13
10000 procedure Set_Is_Prefixed_Call
10001 (N : Node_Id; Val : Boolean := True); -- Flag17
10003 procedure Set_Is_Protected_Subprogram_Body
10004 (N : Node_Id; Val : Boolean := True); -- Flag7
10006 procedure Set_Is_Static_Coextension
10007 (N : Node_Id; Val : Boolean := True); -- Flag14
10009 procedure Set_Is_Static_Expression
10010 (N : Node_Id; Val : Boolean := True); -- Flag6
10012 procedure Set_Is_Subprogram_Descriptor
10013 (N : Node_Id; Val : Boolean := True); -- Flag16
10015 procedure Set_Is_Task_Allocation_Block
10016 (N : Node_Id; Val : Boolean := True); -- Flag6
10018 procedure Set_Is_Task_Master
10019 (N : Node_Id; Val : Boolean := True); -- Flag5
10021 procedure Set_Iteration_Scheme
10022 (N : Node_Id; Val : Node_Id); -- Node2
10024 procedure Set_Iterator_Specification
10025 (N : Node_Id; Val : Node_Id); -- Node2
10027 procedure Set_Itype
10028 (N : Node_Id; Val : Entity_Id); -- Node1
10030 procedure Set_Kill_Range_Check
10031 (N : Node_Id; Val : Boolean := True); -- Flag11
10033 procedure Set_Last_Bit
10034 (N : Node_Id; Val : Node_Id); -- Node4
10036 procedure Set_Last_Name
10037 (N : Node_Id; Val : Boolean := True); -- Flag6
10039 procedure Set_Library_Unit
10040 (N : Node_Id; Val : Node_Id); -- Node4
10042 procedure Set_Label_Construct
10043 (N : Node_Id; Val : Node_Id); -- Node2
10045 procedure Set_Left_Opnd
10046 (N : Node_Id; Val : Node_Id); -- Node2
10048 procedure Set_Limited_View_Installed
10049 (N : Node_Id; Val : Boolean := True); -- Flag18
10051 procedure Set_Limited_Present
10052 (N : Node_Id; Val : Boolean := True); -- Flag17
10054 procedure Set_Literals
10055 (N : Node_Id; Val : List_Id); -- List1
10057 procedure Set_Local_Raise_Not_OK
10058 (N : Node_Id; Val : Boolean := True); -- Flag7
10060 procedure Set_Local_Raise_Statements
10061 (N : Node_Id; Val : Elist_Id); -- Elist1
10063 procedure Set_Loop_Actions
10064 (N : Node_Id; Val : List_Id); -- List2
10066 procedure Set_Loop_Parameter_Specification
10067 (N : Node_Id; Val : Node_Id); -- Node4
10069 procedure Set_Low_Bound
10070 (N : Node_Id; Val : Node_Id); -- Node1
10072 procedure Set_Mod_Clause
10073 (N : Node_Id; Val : Node_Id); -- Node2
10075 procedure Set_More_Ids
10076 (N : Node_Id; Val : Boolean := True); -- Flag5
10078 procedure Set_Must_Be_Byte_Aligned
10079 (N : Node_Id; Val : Boolean := True); -- Flag14
10081 procedure Set_Must_Not_Freeze
10082 (N : Node_Id; Val : Boolean := True); -- Flag8
10084 procedure Set_Must_Not_Override
10085 (N : Node_Id; Val : Boolean := True); -- Flag15
10087 procedure Set_Must_Override
10088 (N : Node_Id; Val : Boolean := True); -- Flag14
10090 procedure Set_Name
10091 (N : Node_Id; Val : Node_Id); -- Node2
10093 procedure Set_Names
10094 (N : Node_Id; Val : List_Id); -- List2
10096 procedure Set_Next_Entity
10097 (N : Node_Id; Val : Node_Id); -- Node2
10099 procedure Set_Next_Exit_Statement
10100 (N : Node_Id; Val : Node_Id); -- Node3
10102 procedure Set_Next_Implicit_With
10103 (N : Node_Id; Val : Node_Id); -- Node3
10105 procedure Set_Next_Named_Actual
10106 (N : Node_Id; Val : Node_Id); -- Node4
10108 procedure Set_Next_Pragma
10109 (N : Node_Id; Val : Node_Id); -- Node1
10111 procedure Set_Next_Rep_Item
10112 (N : Node_Id; Val : Node_Id); -- Node5
10114 procedure Set_Next_Use_Clause
10115 (N : Node_Id; Val : Node_Id); -- Node3
10117 procedure Set_No_Ctrl_Actions
10118 (N : Node_Id; Val : Boolean := True); -- Flag7
10120 procedure Set_No_Elaboration_Check
10121 (N : Node_Id; Val : Boolean := True); -- Flag14
10123 procedure Set_No_Entities_Ref_In_Spec
10124 (N : Node_Id; Val : Boolean := True); -- Flag8
10126 procedure Set_No_Initialization
10127 (N : Node_Id; Val : Boolean := True); -- Flag13
10129 procedure Set_No_Minimize_Eliminate
10130 (N : Node_Id; Val : Boolean := True); -- Flag17
10132 procedure Set_No_Truncation
10133 (N : Node_Id; Val : Boolean := True); -- Flag17
10135 procedure Set_Null_Present
10136 (N : Node_Id; Val : Boolean := True); -- Flag13
10138 procedure Set_Null_Exclusion_Present
10139 (N : Node_Id; Val : Boolean := True); -- Flag11
10141 procedure Set_Null_Exclusion_In_Return_Present
10142 (N : Node_Id; Val : Boolean := True); -- Flag14
10144 procedure Set_Null_Record_Present
10145 (N : Node_Id; Val : Boolean := True); -- Flag17
10147 procedure Set_Object_Definition
10148 (N : Node_Id; Val : Node_Id); -- Node4
10150 procedure Set_Of_Present
10151 (N : Node_Id; Val : Boolean := True); -- Flag16
10153 procedure Set_Original_Discriminant
10154 (N : Node_Id; Val : Node_Id); -- Node2
10156 procedure Set_Original_Entity
10157 (N : Node_Id; Val : Entity_Id); -- Node2
10159 procedure Set_Others_Discrete_Choices
10160 (N : Node_Id; Val : List_Id); -- List1
10162 procedure Set_Out_Present
10163 (N : Node_Id; Val : Boolean := True); -- Flag17
10165 procedure Set_Parameter_Associations
10166 (N : Node_Id; Val : List_Id); -- List3
10168 procedure Set_Parameter_List_Truncated
10169 (N : Node_Id; Val : Boolean := True); -- Flag17
10171 procedure Set_Parameter_Specifications
10172 (N : Node_Id; Val : List_Id); -- List3
10174 procedure Set_Parameter_Type
10175 (N : Node_Id; Val : Node_Id); -- Node2
10177 procedure Set_Parent_Spec
10178 (N : Node_Id; Val : Node_Id); -- Node4
10180 procedure Set_Position
10181 (N : Node_Id; Val : Node_Id); -- Node2
10183 procedure Set_Pragma_Argument_Associations
10184 (N : Node_Id; Val : List_Id); -- List2
10186 procedure Set_Pragma_Identifier
10187 (N : Node_Id; Val : Node_Id); -- Node4
10189 procedure Set_Pragmas_After
10190 (N : Node_Id; Val : List_Id); -- List5
10192 procedure Set_Pragmas_Before
10193 (N : Node_Id; Val : List_Id); -- List4
10195 procedure Set_Pre_Post_Conditions
10196 (N : Node_Id; Val : Node_Id); -- Node1
10198 procedure Set_Prefix
10199 (N : Node_Id; Val : Node_Id); -- Node3
10201 procedure Set_Premature_Use
10202 (N : Node_Id; Val : Node_Id); -- Node5
10204 procedure Set_Present_Expr
10205 (N : Node_Id; Val : Uint); -- Uint3
10207 procedure Set_Prev_Ids
10208 (N : Node_Id; Val : Boolean := True); -- Flag6
10210 procedure Set_Print_In_Hex
10211 (N : Node_Id; Val : Boolean := True); -- Flag13
10213 procedure Set_Private_Declarations
10214 (N : Node_Id; Val : List_Id); -- List3
10216 procedure Set_Private_Present
10217 (N : Node_Id; Val : Boolean := True); -- Flag15
10219 procedure Set_Procedure_To_Call
10220 (N : Node_Id; Val : Node_Id); -- Node2
10222 procedure Set_Proper_Body
10223 (N : Node_Id; Val : Node_Id); -- Node1
10225 procedure Set_Protected_Definition
10226 (N : Node_Id; Val : Node_Id); -- Node3
10228 procedure Set_Protected_Present
10229 (N : Node_Id; Val : Boolean := True); -- Flag6
10231 procedure Set_Raises_Constraint_Error
10232 (N : Node_Id; Val : Boolean := True); -- Flag7
10234 procedure Set_Range_Constraint
10235 (N : Node_Id; Val : Node_Id); -- Node4
10237 procedure Set_Range_Expression
10238 (N : Node_Id; Val : Node_Id); -- Node4
10240 procedure Set_Real_Range_Specification
10241 (N : Node_Id; Val : Node_Id); -- Node4
10243 procedure Set_Realval
10244 (N : Node_Id; Val : Ureal); -- Ureal3
10246 procedure Set_Reason
10247 (N : Node_Id; Val : Uint); -- Uint3
10249 procedure Set_Record_Extension_Part
10250 (N : Node_Id; Val : Node_Id); -- Node3
10252 procedure Set_Redundant_Use
10253 (N : Node_Id; Val : Boolean := True); -- Flag13
10255 procedure Set_Renaming_Exception
10256 (N : Node_Id; Val : Node_Id); -- Node2
10258 procedure Set_Result_Definition
10259 (N : Node_Id; Val : Node_Id); -- Node4
10261 procedure Set_Return_Object_Declarations
10262 (N : Node_Id; Val : List_Id); -- List3
10264 procedure Set_Return_Statement_Entity
10265 (N : Node_Id; Val : Node_Id); -- Node5
10267 procedure Set_Reverse_Present
10268 (N : Node_Id; Val : Boolean := True); -- Flag15
10270 procedure Set_Right_Opnd
10271 (N : Node_Id; Val : Node_Id); -- Node3
10273 procedure Set_Rounded_Result
10274 (N : Node_Id; Val : Boolean := True); -- Flag18
10276 procedure Set_SCIL_Controlling_Tag
10277 (N : Node_Id; Val : Node_Id); -- Node5
10279 procedure Set_SCIL_Entity
10280 (N : Node_Id; Val : Node_Id); -- Node4
10282 procedure Set_SCIL_Tag_Value
10283 (N : Node_Id; Val : Node_Id); -- Node5
10285 procedure Set_SCIL_Target_Prim
10286 (N : Node_Id; Val : Node_Id); -- Node2
10288 procedure Set_Scope
10289 (N : Node_Id; Val : Node_Id); -- Node3
10291 procedure Set_Select_Alternatives
10292 (N : Node_Id; Val : List_Id); -- List1
10294 procedure Set_Selector_Name
10295 (N : Node_Id; Val : Node_Id); -- Node2
10297 procedure Set_Selector_Names
10298 (N : Node_Id; Val : List_Id); -- List1
10300 procedure Set_Shift_Count_OK
10301 (N : Node_Id; Val : Boolean := True); -- Flag4
10303 procedure Set_Source_Type
10304 (N : Node_Id; Val : Entity_Id); -- Node1
10306 procedure Set_Specification
10307 (N : Node_Id; Val : Node_Id); -- Node1
10309 procedure Set_Split_PPC
10310 (N : Node_Id; Val : Boolean); -- Flag17
10312 procedure Set_Statements
10313 (N : Node_Id; Val : List_Id); -- List3
10315 procedure Set_Storage_Pool
10316 (N : Node_Id; Val : Node_Id); -- Node1
10318 procedure Set_Subpool_Handle_Name
10319 (N : Node_Id; Val : Node_Id); -- Node4
10321 procedure Set_Strval
10322 (N : Node_Id; Val : String_Id); -- Str3
10324 procedure Set_Subtype_Indication
10325 (N : Node_Id; Val : Node_Id); -- Node5
10327 procedure Set_Subtype_Mark
10328 (N : Node_Id; Val : Node_Id); -- Node4
10330 procedure Set_Subtype_Marks
10331 (N : Node_Id; Val : List_Id); -- List2
10333 procedure Set_Suppress_Assignment_Checks
10334 (N : Node_Id; Val : Boolean := True); -- Flag18
10336 procedure Set_Suppress_Loop_Warnings
10337 (N : Node_Id; Val : Boolean := True); -- Flag17
10339 procedure Set_Synchronized_Present
10340 (N : Node_Id; Val : Boolean := True); -- Flag7
10342 procedure Set_Tagged_Present
10343 (N : Node_Id; Val : Boolean := True); -- Flag15
10345 procedure Set_Target_Type
10346 (N : Node_Id; Val : Entity_Id); -- Node2
10348 procedure Set_Task_Definition
10349 (N : Node_Id; Val : Node_Id); -- Node3
10351 procedure Set_Task_Present
10352 (N : Node_Id; Val : Boolean := True); -- Flag5
10354 procedure Set_Then_Actions
10355 (N : Node_Id; Val : List_Id); -- List2
10357 procedure Set_Then_Statements
10358 (N : Node_Id; Val : List_Id); -- List2
10360 procedure Set_Treat_Fixed_As_Integer
10361 (N : Node_Id; Val : Boolean := True); -- Flag14
10363 procedure Set_Triggering_Alternative
10364 (N : Node_Id; Val : Node_Id); -- Node1
10366 procedure Set_Triggering_Statement
10367 (N : Node_Id; Val : Node_Id); -- Node1
10369 procedure Set_TSS_Elist
10370 (N : Node_Id; Val : Elist_Id); -- Elist3
10372 procedure Set_Type_Definition
10373 (N : Node_Id; Val : Node_Id); -- Node3
10375 procedure Set_Unit
10376 (N : Node_Id; Val : Node_Id); -- Node2
10378 procedure Set_Unknown_Discriminants_Present
10379 (N : Node_Id; Val : Boolean := True); -- Flag13
10381 procedure Set_Unreferenced_In_Spec
10382 (N : Node_Id; Val : Boolean := True); -- Flag7
10384 procedure Set_Variant_Part
10385 (N : Node_Id; Val : Node_Id); -- Node4
10387 procedure Set_Variants
10388 (N : Node_Id; Val : List_Id); -- List1
10390 procedure Set_Visible_Declarations
10391 (N : Node_Id; Val : List_Id); -- List2
10393 procedure Set_Used_Operations
10394 (N : Node_Id; Val : Elist_Id); -- Elist5
10396 procedure Set_Was_Originally_Stub
10397 (N : Node_Id; Val : Boolean := True); -- Flag13
10399 procedure Set_Withed_Body
10400 (N : Node_Id; Val : Node_Id); -- Node1
10402 -------------------------
10403 -- Iterator Procedures --
10404 -------------------------
10406 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
10408 procedure Next_Entity (N : in out Node_Id);
10409 procedure Next_Named_Actual (N : in out Node_Id);
10410 procedure Next_Rep_Item (N : in out Node_Id);
10411 procedure Next_Use_Clause (N : in out Node_Id);
10413 -------------------------------------------
10414 -- Miscellaneous Tree Access Subprograms --
10415 -------------------------------------------
10417 function End_Location (N : Node_Id) return Source_Ptr;
10418 -- N is an N_If_Statement or N_Case_Statement node, and this function
10419 -- returns the location of the IF token in the END IF sequence by
10420 -- translating the value of the End_Span field.
10422 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
10423 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
10424 -- the End_Span field to correspond to the given value S. In other words,
10425 -- End_Span is set to the difference between S and Sloc (N), the starting
10426 -- location.
10428 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
10429 -- Given an argument to a pragma Arg, this function returns the expression
10430 -- for the argument. This is Arg itself, or, in the case where Arg is a
10431 -- pragma argument association node, the expression from this node.
10433 --------------------------------
10434 -- Node_Kind Membership Tests --
10435 --------------------------------
10437 -- The following functions allow a convenient notation for testing whether
10438 -- a Node_Kind value matches any one of a list of possible values. In each
10439 -- case True is returned if the given T argument is equal to any of the V
10440 -- arguments. Note that there is a similar set of functions defined in
10441 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
10443 function Nkind_In
10444 (T : Node_Kind;
10445 V1 : Node_Kind;
10446 V2 : Node_Kind) return Boolean;
10448 function Nkind_In
10449 (T : Node_Kind;
10450 V1 : Node_Kind;
10451 V2 : Node_Kind;
10452 V3 : Node_Kind) return Boolean;
10454 function Nkind_In
10455 (T : Node_Kind;
10456 V1 : Node_Kind;
10457 V2 : Node_Kind;
10458 V3 : Node_Kind;
10459 V4 : Node_Kind) return Boolean;
10461 function Nkind_In
10462 (T : Node_Kind;
10463 V1 : Node_Kind;
10464 V2 : Node_Kind;
10465 V3 : Node_Kind;
10466 V4 : Node_Kind;
10467 V5 : Node_Kind) return Boolean;
10469 function Nkind_In
10470 (T : Node_Kind;
10471 V1 : Node_Kind;
10472 V2 : Node_Kind;
10473 V3 : Node_Kind;
10474 V4 : Node_Kind;
10475 V5 : Node_Kind;
10476 V6 : Node_Kind) return Boolean;
10478 function Nkind_In
10479 (T : Node_Kind;
10480 V1 : Node_Kind;
10481 V2 : Node_Kind;
10482 V3 : Node_Kind;
10483 V4 : Node_Kind;
10484 V5 : Node_Kind;
10485 V6 : Node_Kind;
10486 V7 : Node_Kind) return Boolean;
10488 function Nkind_In
10489 (T : Node_Kind;
10490 V1 : Node_Kind;
10491 V2 : Node_Kind;
10492 V3 : Node_Kind;
10493 V4 : Node_Kind;
10494 V5 : Node_Kind;
10495 V6 : Node_Kind;
10496 V7 : Node_Kind;
10497 V8 : Node_Kind) return Boolean;
10499 function Nkind_In
10500 (T : Node_Kind;
10501 V1 : Node_Kind;
10502 V2 : Node_Kind;
10503 V3 : Node_Kind;
10504 V4 : Node_Kind;
10505 V5 : Node_Kind;
10506 V6 : Node_Kind;
10507 V7 : Node_Kind;
10508 V8 : Node_Kind;
10509 V9 : Node_Kind) return Boolean;
10511 pragma Inline (Nkind_In);
10512 -- Inline all above functions
10514 -----------------------
10515 -- Utility Functions --
10516 -----------------------
10518 function Pragma_Name (N : Node_Id) return Name_Id;
10519 pragma Inline (Pragma_Name);
10520 -- Convenient function to obtain Chars field of Pragma_Identifier
10522 -----------------------------
10523 -- Syntactic Parent Tables --
10524 -----------------------------
10526 -- These tables show for each node, and for each of the five fields,
10527 -- whether the corresponding field is syntactic (True) or semantic (False).
10528 -- Unused entries are also set to False.
10530 subtype Field_Num is Natural range 1 .. 5;
10532 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
10534 -- Following entries can be built automatically from the sinfo sources
10535 -- using the makeisf utility (currently this program is in spitbol).
10537 N_Identifier =>
10538 (1 => True, -- Chars (Name1)
10539 2 => False, -- Original_Discriminant (Node2-Sem)
10540 3 => False, -- unused
10541 4 => False, -- Entity (Node4-Sem)
10542 5 => False), -- Etype (Node5-Sem)
10544 N_Integer_Literal =>
10545 (1 => False, -- unused
10546 2 => False, -- Original_Entity (Node2-Sem)
10547 3 => True, -- Intval (Uint3)
10548 4 => False, -- unused
10549 5 => False), -- Etype (Node5-Sem)
10551 N_Real_Literal =>
10552 (1 => False, -- unused
10553 2 => False, -- Original_Entity (Node2-Sem)
10554 3 => True, -- Realval (Ureal3)
10555 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
10556 5 => False), -- Etype (Node5-Sem)
10558 N_Character_Literal =>
10559 (1 => True, -- Chars (Name1)
10560 2 => True, -- Char_Literal_Value (Uint2)
10561 3 => False, -- unused
10562 4 => False, -- Entity (Node4-Sem)
10563 5 => False), -- Etype (Node5-Sem)
10565 N_String_Literal =>
10566 (1 => False, -- unused
10567 2 => False, -- unused
10568 3 => True, -- Strval (Str3)
10569 4 => False, -- unused
10570 5 => False), -- Etype (Node5-Sem)
10572 N_Pragma =>
10573 (1 => False, -- Next_Pragma (Node1-Sem)
10574 2 => True, -- Pragma_Argument_Associations (List2)
10575 3 => False, -- unused
10576 4 => True, -- Pragma_Identifier (Node4)
10577 5 => False), -- Next_Rep_Item (Node5-Sem)
10579 N_Pragma_Argument_Association =>
10580 (1 => True, -- Chars (Name1)
10581 2 => False, -- unused
10582 3 => True, -- Expression (Node3)
10583 4 => False, -- unused
10584 5 => False), -- unused
10586 N_Defining_Identifier =>
10587 (1 => True, -- Chars (Name1)
10588 2 => False, -- Next_Entity (Node2-Sem)
10589 3 => False, -- Scope (Node3-Sem)
10590 4 => False, -- unused
10591 5 => False), -- Etype (Node5-Sem)
10593 N_Full_Type_Declaration =>
10594 (1 => True, -- Defining_Identifier (Node1)
10595 2 => False, -- unused
10596 3 => True, -- Type_Definition (Node3)
10597 4 => True, -- Discriminant_Specifications (List4)
10598 5 => False), -- unused
10600 N_Subtype_Declaration =>
10601 (1 => True, -- Defining_Identifier (Node1)
10602 2 => False, -- unused
10603 3 => False, -- unused
10604 4 => False, -- Generic_Parent_Type (Node4-Sem)
10605 5 => True), -- Subtype_Indication (Node5)
10607 N_Subtype_Indication =>
10608 (1 => False, -- unused
10609 2 => False, -- unused
10610 3 => True, -- Constraint (Node3)
10611 4 => True, -- Subtype_Mark (Node4)
10612 5 => False), -- Etype (Node5-Sem)
10614 N_Object_Declaration =>
10615 (1 => True, -- Defining_Identifier (Node1)
10616 2 => False, -- Handler_List_Entry (Node2-Sem)
10617 3 => True, -- Expression (Node3)
10618 4 => True, -- Object_Definition (Node4)
10619 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10621 N_Number_Declaration =>
10622 (1 => True, -- Defining_Identifier (Node1)
10623 2 => False, -- unused
10624 3 => True, -- Expression (Node3)
10625 4 => False, -- unused
10626 5 => False), -- unused
10628 N_Derived_Type_Definition =>
10629 (1 => False, -- unused
10630 2 => True, -- Interface_List (List2)
10631 3 => True, -- Record_Extension_Part (Node3)
10632 4 => False, -- unused
10633 5 => True), -- Subtype_Indication (Node5)
10635 N_Range_Constraint =>
10636 (1 => False, -- unused
10637 2 => False, -- unused
10638 3 => False, -- unused
10639 4 => True, -- Range_Expression (Node4)
10640 5 => False), -- unused
10642 N_Range =>
10643 (1 => True, -- Low_Bound (Node1)
10644 2 => True, -- High_Bound (Node2)
10645 3 => False, -- unused
10646 4 => False, -- unused
10647 5 => False), -- Etype (Node5-Sem)
10649 N_Enumeration_Type_Definition =>
10650 (1 => True, -- Literals (List1)
10651 2 => False, -- unused
10652 3 => False, -- unused
10653 4 => True, -- End_Label (Node4)
10654 5 => False), -- unused
10656 N_Defining_Character_Literal =>
10657 (1 => True, -- Chars (Name1)
10658 2 => False, -- Next_Entity (Node2-Sem)
10659 3 => False, -- Scope (Node3-Sem)
10660 4 => False, -- unused
10661 5 => False), -- Etype (Node5-Sem)
10663 N_Signed_Integer_Type_Definition =>
10664 (1 => True, -- Low_Bound (Node1)
10665 2 => True, -- High_Bound (Node2)
10666 3 => False, -- unused
10667 4 => False, -- unused
10668 5 => False), -- unused
10670 N_Modular_Type_Definition =>
10671 (1 => False, -- unused
10672 2 => False, -- unused
10673 3 => True, -- Expression (Node3)
10674 4 => False, -- unused
10675 5 => False), -- unused
10677 N_Floating_Point_Definition =>
10678 (1 => False, -- unused
10679 2 => True, -- Digits_Expression (Node2)
10680 3 => False, -- unused
10681 4 => True, -- Real_Range_Specification (Node4)
10682 5 => False), -- unused
10684 N_Real_Range_Specification =>
10685 (1 => True, -- Low_Bound (Node1)
10686 2 => True, -- High_Bound (Node2)
10687 3 => False, -- unused
10688 4 => False, -- unused
10689 5 => False), -- unused
10691 N_Ordinary_Fixed_Point_Definition =>
10692 (1 => False, -- unused
10693 2 => False, -- unused
10694 3 => True, -- Delta_Expression (Node3)
10695 4 => True, -- Real_Range_Specification (Node4)
10696 5 => False), -- unused
10698 N_Decimal_Fixed_Point_Definition =>
10699 (1 => False, -- unused
10700 2 => True, -- Digits_Expression (Node2)
10701 3 => True, -- Delta_Expression (Node3)
10702 4 => True, -- Real_Range_Specification (Node4)
10703 5 => False), -- unused
10705 N_Digits_Constraint =>
10706 (1 => False, -- unused
10707 2 => True, -- Digits_Expression (Node2)
10708 3 => False, -- unused
10709 4 => True, -- Range_Constraint (Node4)
10710 5 => False), -- unused
10712 N_Unconstrained_Array_Definition =>
10713 (1 => False, -- unused
10714 2 => True, -- Subtype_Marks (List2)
10715 3 => False, -- unused
10716 4 => True, -- Component_Definition (Node4)
10717 5 => False), -- unused
10719 N_Constrained_Array_Definition =>
10720 (1 => False, -- unused
10721 2 => True, -- Discrete_Subtype_Definitions (List2)
10722 3 => False, -- unused
10723 4 => True, -- Component_Definition (Node4)
10724 5 => False), -- unused
10726 N_Component_Definition =>
10727 (1 => False, -- unused
10728 2 => False, -- unused
10729 3 => True, -- Access_Definition (Node3)
10730 4 => False, -- unused
10731 5 => True), -- Subtype_Indication (Node5)
10733 N_Discriminant_Specification =>
10734 (1 => True, -- Defining_Identifier (Node1)
10735 2 => False, -- unused
10736 3 => True, -- Expression (Node3)
10737 4 => False, -- unused
10738 5 => True), -- Discriminant_Type (Node5)
10740 N_Index_Or_Discriminant_Constraint =>
10741 (1 => True, -- Constraints (List1)
10742 2 => False, -- unused
10743 3 => False, -- unused
10744 4 => False, -- unused
10745 5 => False), -- unused
10747 N_Discriminant_Association =>
10748 (1 => True, -- Selector_Names (List1)
10749 2 => False, -- unused
10750 3 => True, -- Expression (Node3)
10751 4 => False, -- unused
10752 5 => False), -- unused
10754 N_Record_Definition =>
10755 (1 => True, -- Component_List (Node1)
10756 2 => True, -- Interface_List (List2)
10757 3 => False, -- unused
10758 4 => True, -- End_Label (Node4)
10759 5 => False), -- unused
10761 N_Component_List =>
10762 (1 => False, -- unused
10763 2 => False, -- unused
10764 3 => True, -- Component_Items (List3)
10765 4 => True, -- Variant_Part (Node4)
10766 5 => False), -- unused
10768 N_Component_Declaration =>
10769 (1 => True, -- Defining_Identifier (Node1)
10770 2 => False, -- unused
10771 3 => True, -- Expression (Node3)
10772 4 => True, -- Component_Definition (Node4)
10773 5 => False), -- unused
10775 N_Variant_Part =>
10776 (1 => True, -- Variants (List1)
10777 2 => True, -- Name (Node2)
10778 3 => False, -- unused
10779 4 => False, -- unused
10780 5 => False), -- unused
10782 N_Variant =>
10783 (1 => True, -- Component_List (Node1)
10784 2 => False, -- Enclosing_Variant (Node2-Sem)
10785 3 => False, -- Present_Expr (Uint3-Sem)
10786 4 => True, -- Discrete_Choices (List4)
10787 5 => False), -- Dcheck_Function (Node5-Sem)
10789 N_Others_Choice =>
10790 (1 => False, -- Others_Discrete_Choices (List1-Sem)
10791 2 => False, -- unused
10792 3 => False, -- unused
10793 4 => False, -- unused
10794 5 => False), -- unused
10796 N_Access_To_Object_Definition =>
10797 (1 => False, -- unused
10798 2 => False, -- unused
10799 3 => False, -- unused
10800 4 => False, -- unused
10801 5 => True), -- Subtype_Indication (Node5)
10803 N_Access_Function_Definition =>
10804 (1 => False, -- unused
10805 2 => False, -- unused
10806 3 => True, -- Parameter_Specifications (List3)
10807 4 => True, -- Result_Definition (Node4)
10808 5 => False), -- unused
10810 N_Access_Procedure_Definition =>
10811 (1 => False, -- unused
10812 2 => False, -- unused
10813 3 => True, -- Parameter_Specifications (List3)
10814 4 => False, -- unused
10815 5 => False), -- unused
10817 N_Access_Definition =>
10818 (1 => False, -- unused
10819 2 => False, -- unused
10820 3 => True, -- Access_To_Subprogram_Definition (Node3)
10821 4 => True, -- Subtype_Mark (Node4)
10822 5 => False), -- unused
10824 N_Incomplete_Type_Declaration =>
10825 (1 => True, -- Defining_Identifier (Node1)
10826 2 => False, -- unused
10827 3 => False, -- unused
10828 4 => True, -- Discriminant_Specifications (List4)
10829 5 => False), -- Premature_Use
10831 N_Explicit_Dereference =>
10832 (1 => False, -- unused
10833 2 => False, -- unused
10834 3 => True, -- Prefix (Node3)
10835 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10836 5 => False), -- Etype (Node5-Sem)
10838 N_Indexed_Component =>
10839 (1 => True, -- Expressions (List1)
10840 2 => False, -- unused
10841 3 => True, -- Prefix (Node3)
10842 4 => False, -- unused
10843 5 => False), -- Etype (Node5-Sem)
10845 N_Slice =>
10846 (1 => False, -- unused
10847 2 => False, -- unused
10848 3 => True, -- Prefix (Node3)
10849 4 => True, -- Discrete_Range (Node4)
10850 5 => False), -- Etype (Node5-Sem)
10852 N_Selected_Component =>
10853 (1 => False, -- unused
10854 2 => True, -- Selector_Name (Node2)
10855 3 => True, -- Prefix (Node3)
10856 4 => False, -- unused
10857 5 => False), -- Etype (Node5-Sem)
10859 N_Attribute_Reference =>
10860 (1 => True, -- Expressions (List1)
10861 2 => True, -- Attribute_Name (Name2)
10862 3 => True, -- Prefix (Node3)
10863 4 => False, -- Entity (Node4-Sem)
10864 5 => False), -- Etype (Node5-Sem)
10866 N_Aggregate =>
10867 (1 => True, -- Expressions (List1)
10868 2 => True, -- Component_Associations (List2)
10869 3 => False, -- Aggregate_Bounds (Node3-Sem)
10870 4 => False, -- unused
10871 5 => False), -- Etype (Node5-Sem)
10873 N_Component_Association =>
10874 (1 => True, -- Choices (List1)
10875 2 => False, -- Loop_Actions (List2-Sem)
10876 3 => True, -- Expression (Node3)
10877 4 => False, -- unused
10878 5 => False), -- unused
10880 N_Extension_Aggregate =>
10881 (1 => True, -- Expressions (List1)
10882 2 => True, -- Component_Associations (List2)
10883 3 => True, -- Ancestor_Part (Node3)
10884 4 => False, -- unused
10885 5 => False), -- Etype (Node5-Sem)
10887 N_Null =>
10888 (1 => False, -- unused
10889 2 => False, -- unused
10890 3 => False, -- unused
10891 4 => False, -- unused
10892 5 => False), -- Etype (Node5-Sem)
10894 N_And_Then =>
10895 (1 => False, -- Actions (List1-Sem)
10896 2 => True, -- Left_Opnd (Node2)
10897 3 => True, -- Right_Opnd (Node3)
10898 4 => False, -- unused
10899 5 => False), -- Etype (Node5-Sem)
10901 N_Or_Else =>
10902 (1 => False, -- Actions (List1-Sem)
10903 2 => True, -- Left_Opnd (Node2)
10904 3 => True, -- Right_Opnd (Node3)
10905 4 => False, -- unused
10906 5 => False), -- Etype (Node5-Sem)
10908 N_In =>
10909 (1 => False, -- unused
10910 2 => True, -- Left_Opnd (Node2)
10911 3 => True, -- Right_Opnd (Node3)
10912 4 => True, -- Alternatives (List4)
10913 5 => False), -- Etype (Node5-Sem)
10915 N_Not_In =>
10916 (1 => False, -- unused
10917 2 => True, -- Left_Opnd (Node2)
10918 3 => True, -- Right_Opnd (Node3)
10919 4 => True, -- Alternatives (List4)
10920 5 => False), -- Etype (Node5-Sem)
10922 N_Op_And =>
10923 (1 => True, -- Chars (Name1)
10924 2 => True, -- Left_Opnd (Node2)
10925 3 => True, -- Right_Opnd (Node3)
10926 4 => False, -- Entity (Node4-Sem)
10927 5 => False), -- Etype (Node5-Sem)
10929 N_Op_Or =>
10930 (1 => True, -- Chars (Name1)
10931 2 => True, -- Left_Opnd (Node2)
10932 3 => True, -- Right_Opnd (Node3)
10933 4 => False, -- Entity (Node4-Sem)
10934 5 => False), -- Etype (Node5-Sem)
10936 N_Op_Xor =>
10937 (1 => True, -- Chars (Name1)
10938 2 => True, -- Left_Opnd (Node2)
10939 3 => True, -- Right_Opnd (Node3)
10940 4 => False, -- Entity (Node4-Sem)
10941 5 => False), -- Etype (Node5-Sem)
10943 N_Op_Eq =>
10944 (1 => True, -- Chars (Name1)
10945 2 => True, -- Left_Opnd (Node2)
10946 3 => True, -- Right_Opnd (Node3)
10947 4 => False, -- Entity (Node4-Sem)
10948 5 => False), -- Etype (Node5-Sem)
10950 N_Op_Ne =>
10951 (1 => True, -- Chars (Name1)
10952 2 => True, -- Left_Opnd (Node2)
10953 3 => True, -- Right_Opnd (Node3)
10954 4 => False, -- Entity (Node4-Sem)
10955 5 => False), -- Etype (Node5-Sem)
10957 N_Op_Lt =>
10958 (1 => True, -- Chars (Name1)
10959 2 => True, -- Left_Opnd (Node2)
10960 3 => True, -- Right_Opnd (Node3)
10961 4 => False, -- Entity (Node4-Sem)
10962 5 => False), -- Etype (Node5-Sem)
10964 N_Op_Le =>
10965 (1 => True, -- Chars (Name1)
10966 2 => True, -- Left_Opnd (Node2)
10967 3 => True, -- Right_Opnd (Node3)
10968 4 => False, -- Entity (Node4-Sem)
10969 5 => False), -- Etype (Node5-Sem)
10971 N_Op_Gt =>
10972 (1 => True, -- Chars (Name1)
10973 2 => True, -- Left_Opnd (Node2)
10974 3 => True, -- Right_Opnd (Node3)
10975 4 => False, -- Entity (Node4-Sem)
10976 5 => False), -- Etype (Node5-Sem)
10978 N_Op_Ge =>
10979 (1 => True, -- Chars (Name1)
10980 2 => True, -- Left_Opnd (Node2)
10981 3 => True, -- Right_Opnd (Node3)
10982 4 => False, -- Entity (Node4-Sem)
10983 5 => False), -- Etype (Node5-Sem)
10985 N_Op_Add =>
10986 (1 => True, -- Chars (Name1)
10987 2 => True, -- Left_Opnd (Node2)
10988 3 => True, -- Right_Opnd (Node3)
10989 4 => False, -- Entity (Node4-Sem)
10990 5 => False), -- Etype (Node5-Sem)
10992 N_Op_Subtract =>
10993 (1 => True, -- Chars (Name1)
10994 2 => True, -- Left_Opnd (Node2)
10995 3 => True, -- Right_Opnd (Node3)
10996 4 => False, -- Entity (Node4-Sem)
10997 5 => False), -- Etype (Node5-Sem)
10999 N_Op_Concat =>
11000 (1 => True, -- Chars (Name1)
11001 2 => True, -- Left_Opnd (Node2)
11002 3 => True, -- Right_Opnd (Node3)
11003 4 => False, -- Entity (Node4-Sem)
11004 5 => False), -- Etype (Node5-Sem)
11006 N_Op_Multiply =>
11007 (1 => True, -- Chars (Name1)
11008 2 => True, -- Left_Opnd (Node2)
11009 3 => True, -- Right_Opnd (Node3)
11010 4 => False, -- Entity (Node4-Sem)
11011 5 => False), -- Etype (Node5-Sem)
11013 N_Op_Divide =>
11014 (1 => True, -- Chars (Name1)
11015 2 => True, -- Left_Opnd (Node2)
11016 3 => True, -- Right_Opnd (Node3)
11017 4 => False, -- Entity (Node4-Sem)
11018 5 => False), -- Etype (Node5-Sem)
11020 N_Op_Mod =>
11021 (1 => True, -- Chars (Name1)
11022 2 => True, -- Left_Opnd (Node2)
11023 3 => True, -- Right_Opnd (Node3)
11024 4 => False, -- Entity (Node4-Sem)
11025 5 => False), -- Etype (Node5-Sem)
11027 N_Op_Rem =>
11028 (1 => True, -- Chars (Name1)
11029 2 => True, -- Left_Opnd (Node2)
11030 3 => True, -- Right_Opnd (Node3)
11031 4 => False, -- Entity (Node4-Sem)
11032 5 => False), -- Etype (Node5-Sem)
11034 N_Op_Expon =>
11035 (1 => True, -- Chars (Name1)
11036 2 => True, -- Left_Opnd (Node2)
11037 3 => True, -- Right_Opnd (Node3)
11038 4 => False, -- Entity (Node4-Sem)
11039 5 => False), -- Etype (Node5-Sem)
11041 N_Op_Plus =>
11042 (1 => True, -- Chars (Name1)
11043 2 => False, -- unused
11044 3 => True, -- Right_Opnd (Node3)
11045 4 => False, -- Entity (Node4-Sem)
11046 5 => False), -- Etype (Node5-Sem)
11048 N_Op_Minus =>
11049 (1 => True, -- Chars (Name1)
11050 2 => False, -- unused
11051 3 => True, -- Right_Opnd (Node3)
11052 4 => False, -- Entity (Node4-Sem)
11053 5 => False), -- Etype (Node5-Sem)
11055 N_Op_Abs =>
11056 (1 => True, -- Chars (Name1)
11057 2 => False, -- unused
11058 3 => True, -- Right_Opnd (Node3)
11059 4 => False, -- Entity (Node4-Sem)
11060 5 => False), -- Etype (Node5-Sem)
11062 N_Op_Not =>
11063 (1 => True, -- Chars (Name1)
11064 2 => False, -- unused
11065 3 => True, -- Right_Opnd (Node3)
11066 4 => False, -- Entity (Node4-Sem)
11067 5 => False), -- Etype (Node5-Sem)
11069 N_Type_Conversion =>
11070 (1 => False, -- unused
11071 2 => False, -- unused
11072 3 => True, -- Expression (Node3)
11073 4 => True, -- Subtype_Mark (Node4)
11074 5 => False), -- Etype (Node5-Sem)
11076 N_Qualified_Expression =>
11077 (1 => False, -- unused
11078 2 => False, -- unused
11079 3 => True, -- Expression (Node3)
11080 4 => True, -- Subtype_Mark (Node4)
11081 5 => False), -- Etype (Node5-Sem)
11083 N_Quantified_Expression =>
11084 (1 => True, -- Condition (Node1)
11085 2 => True, -- Iterator_Specification
11086 3 => False, -- unused
11087 4 => True, -- Loop_Parameter_Specification (Node4)
11088 5 => False), -- Etype (Node5-Sem)
11090 N_Allocator =>
11091 (1 => False, -- Storage_Pool (Node1-Sem)
11092 2 => False, -- Procedure_To_Call (Node2-Sem)
11093 3 => True, -- Expression (Node3)
11094 4 => True, -- Subpool_Handle_Name (Node4)
11095 5 => False), -- Etype (Node5-Sem)
11097 N_Null_Statement =>
11098 (1 => False, -- unused
11099 2 => False, -- unused
11100 3 => False, -- unused
11101 4 => False, -- unused
11102 5 => False), -- unused
11104 N_Label =>
11105 (1 => True, -- Identifier (Node1)
11106 2 => False, -- unused
11107 3 => False, -- unused
11108 4 => False, -- unused
11109 5 => False), -- unused
11111 N_Assignment_Statement =>
11112 (1 => False, -- unused
11113 2 => True, -- Name (Node2)
11114 3 => True, -- Expression (Node3)
11115 4 => False, -- unused
11116 5 => False), -- unused
11118 N_If_Statement =>
11119 (1 => True, -- Condition (Node1)
11120 2 => True, -- Then_Statements (List2)
11121 3 => True, -- Elsif_Parts (List3)
11122 4 => True, -- Else_Statements (List4)
11123 5 => True), -- End_Span (Uint5)
11125 N_Elsif_Part =>
11126 (1 => True, -- Condition (Node1)
11127 2 => True, -- Then_Statements (List2)
11128 3 => False, -- Condition_Actions (List3-Sem)
11129 4 => False, -- unused
11130 5 => False), -- unused
11132 N_Case_Expression =>
11133 (1 => False, -- unused
11134 2 => False, -- unused
11135 3 => True, -- Expression (Node3)
11136 4 => True, -- Alternatives (List4)
11137 5 => False), -- unused
11139 N_Case_Expression_Alternative =>
11140 (1 => False, -- Actions (List1-Sem)
11141 2 => False, -- unused
11142 3 => True, -- Statements (List3)
11143 4 => True, -- Expression (Node4)
11144 5 => False), -- unused
11146 N_Case_Statement =>
11147 (1 => False, -- unused
11148 2 => False, -- unused
11149 3 => True, -- Expression (Node3)
11150 4 => True, -- Alternatives (List4)
11151 5 => True), -- End_Span (Uint5)
11153 N_Case_Statement_Alternative =>
11154 (1 => False, -- unused
11155 2 => False, -- unused
11156 3 => True, -- Statements (List3)
11157 4 => True, -- Discrete_Choices (List4)
11158 5 => False), -- unused
11160 N_Loop_Statement =>
11161 (1 => True, -- Identifier (Node1)
11162 2 => True, -- Iteration_Scheme (Node2)
11163 3 => True, -- Statements (List3)
11164 4 => True, -- End_Label (Node4)
11165 5 => False), -- unused
11167 N_Iteration_Scheme =>
11168 (1 => True, -- Condition (Node1)
11169 2 => True, -- Iterator_Specification (Node2)
11170 3 => False, -- Condition_Actions (List3-Sem)
11171 4 => True, -- Loop_Parameter_Specification (Node4)
11172 5 => False), -- unused
11174 N_Loop_Parameter_Specification =>
11175 (1 => True, -- Defining_Identifier (Node1)
11176 2 => False, -- unused
11177 3 => False, -- unused
11178 4 => True, -- Discrete_Subtype_Definition (Node4)
11179 5 => False), -- unused
11181 N_Iterator_Specification =>
11182 (1 => True, -- Defining_Identifier (Node1)
11183 2 => True, -- Name (Node2)
11184 3 => False, -- Unused
11185 4 => False, -- Unused
11186 5 => True), -- Subtype_Indication (Node5)
11188 N_Block_Statement =>
11189 (1 => True, -- Identifier (Node1)
11190 2 => True, -- Declarations (List2)
11191 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11192 4 => True, -- Handled_Statement_Sequence (Node4)
11193 5 => False), -- unused
11195 N_Exit_Statement =>
11196 (1 => True, -- Condition (Node1)
11197 2 => True, -- Name (Node2)
11198 3 => False, -- unused
11199 4 => False, -- unused
11200 5 => False), -- unused
11202 N_Goto_Statement =>
11203 (1 => False, -- unused
11204 2 => True, -- Name (Node2)
11205 3 => False, -- unused
11206 4 => False, -- unused
11207 5 => False), -- unused
11209 N_Subprogram_Declaration =>
11210 (1 => True, -- Specification (Node1)
11211 2 => False, -- unused
11212 3 => False, -- Body_To_Inline (Node3-Sem)
11213 4 => False, -- Parent_Spec (Node4-Sem)
11214 5 => False), -- Corresponding_Body (Node5-Sem)
11216 N_Abstract_Subprogram_Declaration =>
11217 (1 => True, -- Specification (Node1)
11218 2 => False, -- unused
11219 3 => False, -- unused
11220 4 => False, -- unused
11221 5 => False), -- unused
11223 N_Function_Specification =>
11224 (1 => True, -- Defining_Unit_Name (Node1)
11225 2 => False, -- Elaboration_Boolean (Node2-Sem)
11226 3 => True, -- Parameter_Specifications (List3)
11227 4 => True, -- Result_Definition (Node4)
11228 5 => False), -- Generic_Parent (Node5-Sem)
11230 N_Procedure_Specification =>
11231 (1 => True, -- Defining_Unit_Name (Node1)
11232 2 => False, -- Elaboration_Boolean (Node2-Sem)
11233 3 => True, -- Parameter_Specifications (List3)
11234 4 => False, -- unused
11235 5 => False), -- Generic_Parent (Node5-Sem)
11237 N_Designator =>
11238 (1 => True, -- Identifier (Node1)
11239 2 => True, -- Name (Node2)
11240 3 => False, -- unused
11241 4 => False, -- unused
11242 5 => False), -- unused
11244 N_Defining_Program_Unit_Name =>
11245 (1 => True, -- Defining_Identifier (Node1)
11246 2 => True, -- Name (Node2)
11247 3 => False, -- unused
11248 4 => False, -- unused
11249 5 => False), -- unused
11251 N_Operator_Symbol =>
11252 (1 => True, -- Chars (Name1)
11253 2 => False, -- unused
11254 3 => True, -- Strval (Str3)
11255 4 => False, -- Entity (Node4-Sem)
11256 5 => False), -- Etype (Node5-Sem)
11258 N_Defining_Operator_Symbol =>
11259 (1 => True, -- Chars (Name1)
11260 2 => False, -- Next_Entity (Node2-Sem)
11261 3 => False, -- Scope (Node3-Sem)
11262 4 => False, -- unused
11263 5 => False), -- Etype (Node5-Sem)
11265 N_Parameter_Specification =>
11266 (1 => True, -- Defining_Identifier (Node1)
11267 2 => True, -- Parameter_Type (Node2)
11268 3 => True, -- Expression (Node3)
11269 4 => False, -- unused
11270 5 => False), -- Default_Expression (Node5-Sem)
11272 N_Subprogram_Body =>
11273 (1 => True, -- Specification (Node1)
11274 2 => True, -- Declarations (List2)
11275 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11276 4 => True, -- Handled_Statement_Sequence (Node4)
11277 5 => False), -- Corresponding_Spec (Node5-Sem)
11279 N_Expression_Function =>
11280 (1 => True, -- Specification (Node1)
11281 2 => False, -- unused
11282 3 => True, -- Expression (Node3)
11283 4 => False, -- unused
11284 5 => False), -- unused
11286 N_Procedure_Call_Statement =>
11287 (1 => False, -- Controlling_Argument (Node1-Sem)
11288 2 => True, -- Name (Node2)
11289 3 => True, -- Parameter_Associations (List3)
11290 4 => False, -- First_Named_Actual (Node4-Sem)
11291 5 => False), -- Etype (Node5-Sem)
11293 N_Function_Call =>
11294 (1 => False, -- Controlling_Argument (Node1-Sem)
11295 2 => True, -- Name (Node2)
11296 3 => True, -- Parameter_Associations (List3)
11297 4 => False, -- First_Named_Actual (Node4-Sem)
11298 5 => False), -- Etype (Node5-Sem)
11300 N_Parameter_Association =>
11301 (1 => False, -- unused
11302 2 => True, -- Selector_Name (Node2)
11303 3 => True, -- Explicit_Actual_Parameter (Node3)
11304 4 => False, -- Next_Named_Actual (Node4-Sem)
11305 5 => False), -- unused
11307 N_Simple_Return_Statement =>
11308 (1 => False, -- Storage_Pool (Node1-Sem)
11309 2 => False, -- Procedure_To_Call (Node2-Sem)
11310 3 => True, -- Expression (Node3)
11311 4 => False, -- unused
11312 5 => False), -- Return_Statement_Entity (Node5-Sem)
11314 N_Extended_Return_Statement =>
11315 (1 => False, -- Storage_Pool (Node1-Sem)
11316 2 => False, -- Procedure_To_Call (Node2-Sem)
11317 3 => True, -- Return_Object_Declarations (List3)
11318 4 => True, -- Handled_Statement_Sequence (Node4)
11319 5 => False), -- Return_Statement_Entity (Node5-Sem)
11321 N_Package_Declaration =>
11322 (1 => True, -- Specification (Node1)
11323 2 => False, -- unused
11324 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11325 4 => False, -- Parent_Spec (Node4-Sem)
11326 5 => False), -- Corresponding_Body (Node5-Sem)
11328 N_Package_Specification =>
11329 (1 => True, -- Defining_Unit_Name (Node1)
11330 2 => True, -- Visible_Declarations (List2)
11331 3 => True, -- Private_Declarations (List3)
11332 4 => True, -- End_Label (Node4)
11333 5 => False), -- Generic_Parent (Node5-Sem)
11335 N_Package_Body =>
11336 (1 => True, -- Defining_Unit_Name (Node1)
11337 2 => True, -- Declarations (List2)
11338 3 => False, -- unused
11339 4 => True, -- Handled_Statement_Sequence (Node4)
11340 5 => False), -- Corresponding_Spec (Node5-Sem)
11342 N_Private_Type_Declaration =>
11343 (1 => True, -- Defining_Identifier (Node1)
11344 2 => False, -- unused
11345 3 => False, -- unused
11346 4 => True, -- Discriminant_Specifications (List4)
11347 5 => False), -- unused
11349 N_Private_Extension_Declaration =>
11350 (1 => True, -- Defining_Identifier (Node1)
11351 2 => True, -- Interface_List (List2)
11352 3 => False, -- unused
11353 4 => True, -- Discriminant_Specifications (List4)
11354 5 => True), -- Subtype_Indication (Node5)
11356 N_Use_Package_Clause =>
11357 (1 => False, -- unused
11358 2 => True, -- Names (List2)
11359 3 => False, -- Next_Use_Clause (Node3-Sem)
11360 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11361 5 => False), -- unused
11363 N_Use_Type_Clause =>
11364 (1 => False, -- unused
11365 2 => True, -- Subtype_Marks (List2)
11366 3 => False, -- Next_Use_Clause (Node3-Sem)
11367 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11368 5 => False), -- unused
11370 N_Object_Renaming_Declaration =>
11371 (1 => True, -- Defining_Identifier (Node1)
11372 2 => True, -- Name (Node2)
11373 3 => True, -- Access_Definition (Node3)
11374 4 => True, -- Subtype_Mark (Node4)
11375 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11377 N_Exception_Renaming_Declaration =>
11378 (1 => True, -- Defining_Identifier (Node1)
11379 2 => True, -- Name (Node2)
11380 3 => False, -- unused
11381 4 => False, -- unused
11382 5 => False), -- unused
11384 N_Package_Renaming_Declaration =>
11385 (1 => True, -- Defining_Unit_Name (Node1)
11386 2 => True, -- Name (Node2)
11387 3 => False, -- unused
11388 4 => False, -- Parent_Spec (Node4-Sem)
11389 5 => False), -- unused
11391 N_Subprogram_Renaming_Declaration =>
11392 (1 => True, -- Specification (Node1)
11393 2 => True, -- Name (Node2)
11394 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
11395 4 => False, -- Parent_Spec (Node4-Sem)
11396 5 => False), -- Corresponding_Spec (Node5-Sem)
11398 N_Generic_Package_Renaming_Declaration =>
11399 (1 => True, -- Defining_Unit_Name (Node1)
11400 2 => True, -- Name (Node2)
11401 3 => False, -- unused
11402 4 => False, -- Parent_Spec (Node4-Sem)
11403 5 => False), -- unused
11405 N_Generic_Procedure_Renaming_Declaration =>
11406 (1 => True, -- Defining_Unit_Name (Node1)
11407 2 => True, -- Name (Node2)
11408 3 => False, -- unused
11409 4 => False, -- Parent_Spec (Node4-Sem)
11410 5 => False), -- unused
11412 N_Generic_Function_Renaming_Declaration =>
11413 (1 => True, -- Defining_Unit_Name (Node1)
11414 2 => True, -- Name (Node2)
11415 3 => False, -- unused
11416 4 => False, -- Parent_Spec (Node4-Sem)
11417 5 => False), -- unused
11419 N_Task_Type_Declaration =>
11420 (1 => True, -- Defining_Identifier (Node1)
11421 2 => True, -- Interface_List (List2)
11422 3 => True, -- Task_Definition (Node3)
11423 4 => True, -- Discriminant_Specifications (List4)
11424 5 => False), -- Corresponding_Body (Node5-Sem)
11426 N_Single_Task_Declaration =>
11427 (1 => True, -- Defining_Identifier (Node1)
11428 2 => True, -- Interface_List (List2)
11429 3 => True, -- Task_Definition (Node3)
11430 4 => False, -- unused
11431 5 => False), -- unused
11433 N_Task_Definition =>
11434 (1 => False, -- unused
11435 2 => True, -- Visible_Declarations (List2)
11436 3 => True, -- Private_Declarations (List3)
11437 4 => True, -- End_Label (Node4)
11438 5 => False), -- unused
11440 N_Task_Body =>
11441 (1 => True, -- Defining_Identifier (Node1)
11442 2 => True, -- Declarations (List2)
11443 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11444 4 => True, -- Handled_Statement_Sequence (Node4)
11445 5 => False), -- Corresponding_Spec (Node5-Sem)
11447 N_Protected_Type_Declaration =>
11448 (1 => True, -- Defining_Identifier (Node1)
11449 2 => True, -- Interface_List (List2)
11450 3 => True, -- Protected_Definition (Node3)
11451 4 => True, -- Discriminant_Specifications (List4)
11452 5 => False), -- Corresponding_Body (Node5-Sem)
11454 N_Single_Protected_Declaration =>
11455 (1 => True, -- Defining_Identifier (Node1)
11456 2 => True, -- Interface_List (List2)
11457 3 => True, -- Protected_Definition (Node3)
11458 4 => False, -- unused
11459 5 => False), -- unused
11461 N_Protected_Definition =>
11462 (1 => False, -- unused
11463 2 => True, -- Visible_Declarations (List2)
11464 3 => True, -- Private_Declarations (List3)
11465 4 => True, -- End_Label (Node4)
11466 5 => False), -- unused
11468 N_Protected_Body =>
11469 (1 => True, -- Defining_Identifier (Node1)
11470 2 => True, -- Declarations (List2)
11471 3 => False, -- unused
11472 4 => True, -- End_Label (Node4)
11473 5 => False), -- Corresponding_Spec (Node5-Sem)
11475 N_Entry_Declaration =>
11476 (1 => True, -- Defining_Identifier (Node1)
11477 2 => False, -- unused
11478 3 => True, -- Parameter_Specifications (List3)
11479 4 => True, -- Discrete_Subtype_Definition (Node4)
11480 5 => False), -- Corresponding_Body (Node5-Sem)
11482 N_Accept_Statement =>
11483 (1 => True, -- Entry_Direct_Name (Node1)
11484 2 => True, -- Declarations (List2)
11485 3 => True, -- Parameter_Specifications (List3)
11486 4 => True, -- Handled_Statement_Sequence (Node4)
11487 5 => True), -- Entry_Index (Node5)
11489 N_Entry_Body =>
11490 (1 => True, -- Defining_Identifier (Node1)
11491 2 => True, -- Declarations (List2)
11492 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11493 4 => True, -- Handled_Statement_Sequence (Node4)
11494 5 => True), -- Entry_Body_Formal_Part (Node5)
11496 N_Entry_Body_Formal_Part =>
11497 (1 => True, -- Condition (Node1)
11498 2 => False, -- unused
11499 3 => True, -- Parameter_Specifications (List3)
11500 4 => True, -- Entry_Index_Specification (Node4)
11501 5 => False), -- unused
11503 N_Entry_Index_Specification =>
11504 (1 => True, -- Defining_Identifier (Node1)
11505 2 => False, -- unused
11506 3 => False, -- unused
11507 4 => True, -- Discrete_Subtype_Definition (Node4)
11508 5 => False), -- unused
11510 N_Entry_Call_Statement =>
11511 (1 => False, -- unused
11512 2 => True, -- Name (Node2)
11513 3 => True, -- Parameter_Associations (List3)
11514 4 => False, -- First_Named_Actual (Node4-Sem)
11515 5 => False), -- unused
11517 N_Requeue_Statement =>
11518 (1 => False, -- unused
11519 2 => True, -- Name (Node2)
11520 3 => False, -- unused
11521 4 => False, -- unused
11522 5 => False), -- unused
11524 N_Delay_Until_Statement =>
11525 (1 => False, -- unused
11526 2 => False, -- unused
11527 3 => True, -- Expression (Node3)
11528 4 => False, -- unused
11529 5 => False), -- unused
11531 N_Delay_Relative_Statement =>
11532 (1 => False, -- unused
11533 2 => False, -- unused
11534 3 => True, -- Expression (Node3)
11535 4 => False, -- unused
11536 5 => False), -- unused
11538 N_Selective_Accept =>
11539 (1 => True, -- Select_Alternatives (List1)
11540 2 => False, -- unused
11541 3 => False, -- unused
11542 4 => True, -- Else_Statements (List4)
11543 5 => False), -- unused
11545 N_Accept_Alternative =>
11546 (1 => True, -- Condition (Node1)
11547 2 => True, -- Accept_Statement (Node2)
11548 3 => True, -- Statements (List3)
11549 4 => True, -- Pragmas_Before (List4)
11550 5 => False), -- Accept_Handler_Records (List5-Sem)
11552 N_Delay_Alternative =>
11553 (1 => True, -- Condition (Node1)
11554 2 => True, -- Delay_Statement (Node2)
11555 3 => True, -- Statements (List3)
11556 4 => True, -- Pragmas_Before (List4)
11557 5 => False), -- unused
11559 N_Terminate_Alternative =>
11560 (1 => True, -- Condition (Node1)
11561 2 => False, -- unused
11562 3 => False, -- unused
11563 4 => True, -- Pragmas_Before (List4)
11564 5 => True), -- Pragmas_After (List5)
11566 N_Timed_Entry_Call =>
11567 (1 => True, -- Entry_Call_Alternative (Node1)
11568 2 => False, -- unused
11569 3 => False, -- unused
11570 4 => True, -- Delay_Alternative (Node4)
11571 5 => False), -- unused
11573 N_Entry_Call_Alternative =>
11574 (1 => True, -- Entry_Call_Statement (Node1)
11575 2 => False, -- unused
11576 3 => True, -- Statements (List3)
11577 4 => True, -- Pragmas_Before (List4)
11578 5 => False), -- unused
11580 N_Conditional_Entry_Call =>
11581 (1 => True, -- Entry_Call_Alternative (Node1)
11582 2 => False, -- unused
11583 3 => False, -- unused
11584 4 => True, -- Else_Statements (List4)
11585 5 => False), -- unused
11587 N_Asynchronous_Select =>
11588 (1 => True, -- Triggering_Alternative (Node1)
11589 2 => True, -- Abortable_Part (Node2)
11590 3 => False, -- unused
11591 4 => False, -- unused
11592 5 => False), -- unused
11594 N_Triggering_Alternative =>
11595 (1 => True, -- Triggering_Statement (Node1)
11596 2 => False, -- unused
11597 3 => True, -- Statements (List3)
11598 4 => True, -- Pragmas_Before (List4)
11599 5 => False), -- unused
11601 N_Abortable_Part =>
11602 (1 => False, -- unused
11603 2 => False, -- unused
11604 3 => True, -- Statements (List3)
11605 4 => False, -- unused
11606 5 => False), -- unused
11608 N_Abort_Statement =>
11609 (1 => False, -- unused
11610 2 => True, -- Names (List2)
11611 3 => False, -- unused
11612 4 => False, -- unused
11613 5 => False), -- unused
11615 N_Compilation_Unit =>
11616 (1 => True, -- Context_Items (List1)
11617 2 => True, -- Unit (Node2)
11618 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
11619 4 => False, -- Library_Unit (Node4-Sem)
11620 5 => True), -- Aux_Decls_Node (Node5)
11622 N_Compilation_Unit_Aux =>
11623 (1 => True, -- Actions (List1)
11624 2 => True, -- Declarations (List2)
11625 3 => False, -- Default_Storage_Pool (Node3)
11626 4 => True, -- Config_Pragmas (List4)
11627 5 => True), -- Pragmas_After (List5)
11629 N_With_Clause =>
11630 (1 => False, -- unused
11631 2 => True, -- Name (Node2)
11632 3 => False, -- unused
11633 4 => False, -- Library_Unit (Node4-Sem)
11634 5 => False), -- Corresponding_Spec (Node5-Sem)
11636 N_Subprogram_Body_Stub =>
11637 (1 => True, -- Specification (Node1)
11638 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11639 3 => False, -- unused
11640 4 => False, -- Library_Unit (Node4-Sem)
11641 5 => False), -- Corresponding_Body (Node5-Sem)
11643 N_Package_Body_Stub =>
11644 (1 => True, -- Defining_Identifier (Node1)
11645 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11646 3 => False, -- unused
11647 4 => False, -- Library_Unit (Node4-Sem)
11648 5 => False), -- Corresponding_Body (Node5-Sem)
11650 N_Task_Body_Stub =>
11651 (1 => True, -- Defining_Identifier (Node1)
11652 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11653 3 => False, -- unused
11654 4 => False, -- Library_Unit (Node4-Sem)
11655 5 => False), -- Corresponding_Body (Node5-Sem)
11657 N_Protected_Body_Stub =>
11658 (1 => True, -- Defining_Identifier (Node1)
11659 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11660 3 => False, -- unused
11661 4 => False, -- Library_Unit (Node4-Sem)
11662 5 => False), -- Corresponding_Body (Node5-Sem)
11664 N_Subunit =>
11665 (1 => True, -- Proper_Body (Node1)
11666 2 => True, -- Name (Node2)
11667 3 => False, -- Corresponding_Stub (Node3-Sem)
11668 4 => False, -- unused
11669 5 => False), -- unused
11671 N_Exception_Declaration =>
11672 (1 => True, -- Defining_Identifier (Node1)
11673 2 => False, -- unused
11674 3 => False, -- Expression (Node3-Sem)
11675 4 => False, -- unused
11676 5 => False), -- unused
11678 N_Handled_Sequence_Of_Statements =>
11679 (1 => True, -- At_End_Proc (Node1)
11680 2 => False, -- First_Real_Statement (Node2-Sem)
11681 3 => True, -- Statements (List3)
11682 4 => True, -- End_Label (Node4)
11683 5 => True), -- Exception_Handlers (List5)
11685 N_Exception_Handler =>
11686 (1 => False, -- Local_Raise_Statements (Elist1)
11687 2 => True, -- Choice_Parameter (Node2)
11688 3 => True, -- Statements (List3)
11689 4 => True, -- Exception_Choices (List4)
11690 5 => False), -- Exception_Label (Node5)
11692 N_Raise_Statement =>
11693 (1 => False, -- unused
11694 2 => True, -- Name (Node2)
11695 3 => True, -- Expression (Node3)
11696 4 => False, -- unused
11697 5 => False), -- unused
11699 N_Raise_Expression =>
11700 (1 => False, -- unused
11701 2 => True, -- Name (Node2)
11702 3 => True, -- Expression (Node3)
11703 4 => False, -- unused
11704 5 => False), -- Etype (Node5-Sem)
11706 N_Generic_Subprogram_Declaration =>
11707 (1 => True, -- Specification (Node1)
11708 2 => True, -- Generic_Formal_Declarations (List2)
11709 3 => False, -- unused
11710 4 => False, -- Parent_Spec (Node4-Sem)
11711 5 => False), -- Corresponding_Body (Node5-Sem)
11713 N_Generic_Package_Declaration =>
11714 (1 => True, -- Specification (Node1)
11715 2 => True, -- Generic_Formal_Declarations (List2)
11716 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11717 4 => False, -- Parent_Spec (Node4-Sem)
11718 5 => False), -- Corresponding_Body (Node5-Sem)
11720 N_Package_Instantiation =>
11721 (1 => True, -- Defining_Unit_Name (Node1)
11722 2 => True, -- Name (Node2)
11723 3 => True, -- Generic_Associations (List3)
11724 4 => False, -- Parent_Spec (Node4-Sem)
11725 5 => False), -- Instance_Spec (Node5-Sem)
11727 N_Procedure_Instantiation =>
11728 (1 => True, -- Defining_Unit_Name (Node1)
11729 2 => True, -- Name (Node2)
11730 3 => True, -- Generic_Associations (List3)
11731 4 => False, -- Parent_Spec (Node4-Sem)
11732 5 => False), -- Instance_Spec (Node5-Sem)
11734 N_Function_Instantiation =>
11735 (1 => True, -- Defining_Unit_Name (Node1)
11736 2 => True, -- Name (Node2)
11737 3 => True, -- Generic_Associations (List3)
11738 4 => False, -- Parent_Spec (Node4-Sem)
11739 5 => False), -- Instance_Spec (Node5-Sem)
11741 N_Generic_Association =>
11742 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
11743 2 => True, -- Selector_Name (Node2)
11744 3 => False, -- unused
11745 4 => False, -- unused
11746 5 => False), -- unused
11748 N_Formal_Object_Declaration =>
11749 (1 => True, -- Defining_Identifier (Node1)
11750 2 => False, -- unused
11751 3 => True, -- Access_Definition (Node3)
11752 4 => True, -- Subtype_Mark (Node4)
11753 5 => True), -- Default_Expression (Node5)
11755 N_Formal_Type_Declaration =>
11756 (1 => True, -- Defining_Identifier (Node1)
11757 2 => False, -- unused
11758 3 => True, -- Formal_Type_Definition (Node3)
11759 4 => True, -- Discriminant_Specifications (List4)
11760 5 => False), -- unused
11762 N_Formal_Private_Type_Definition =>
11763 (1 => False, -- unused
11764 2 => False, -- unused
11765 3 => False, -- unused
11766 4 => False, -- unused
11767 5 => False), -- unused
11769 N_Formal_Incomplete_Type_Definition =>
11770 (1 => False, -- unused
11771 2 => False, -- unused
11772 3 => False, -- unused
11773 4 => False, -- unused
11774 5 => False), -- unused
11776 N_Formal_Derived_Type_Definition =>
11777 (1 => False, -- unused
11778 2 => True, -- Interface_List (List2)
11779 3 => False, -- unused
11780 4 => True, -- Subtype_Mark (Node4)
11781 5 => False), -- unused
11783 N_Formal_Discrete_Type_Definition =>
11784 (1 => False, -- unused
11785 2 => False, -- unused
11786 3 => False, -- unused
11787 4 => False, -- unused
11788 5 => False), -- unused
11790 N_Formal_Signed_Integer_Type_Definition =>
11791 (1 => False, -- unused
11792 2 => False, -- unused
11793 3 => False, -- unused
11794 4 => False, -- unused
11795 5 => False), -- unused
11797 N_Formal_Modular_Type_Definition =>
11798 (1 => False, -- unused
11799 2 => False, -- unused
11800 3 => False, -- unused
11801 4 => False, -- unused
11802 5 => False), -- unused
11804 N_Formal_Floating_Point_Definition =>
11805 (1 => False, -- unused
11806 2 => False, -- unused
11807 3 => False, -- unused
11808 4 => False, -- unused
11809 5 => False), -- unused
11811 N_Formal_Ordinary_Fixed_Point_Definition =>
11812 (1 => False, -- unused
11813 2 => False, -- unused
11814 3 => False, -- unused
11815 4 => False, -- unused
11816 5 => False), -- unused
11818 N_Formal_Decimal_Fixed_Point_Definition =>
11819 (1 => False, -- unused
11820 2 => False, -- unused
11821 3 => False, -- unused
11822 4 => False, -- unused
11823 5 => False), -- unused
11825 N_Formal_Concrete_Subprogram_Declaration =>
11826 (1 => True, -- Specification (Node1)
11827 2 => True, -- Default_Name (Node2)
11828 3 => False, -- unused
11829 4 => False, -- unused
11830 5 => False), -- unused
11832 N_Formal_Abstract_Subprogram_Declaration =>
11833 (1 => True, -- Specification (Node1)
11834 2 => True, -- Default_Name (Node2)
11835 3 => False, -- unused
11836 4 => False, -- unused
11837 5 => False), -- unused
11839 N_Formal_Package_Declaration =>
11840 (1 => True, -- Defining_Identifier (Node1)
11841 2 => True, -- Name (Node2)
11842 3 => True, -- Generic_Associations (List3)
11843 4 => False, -- unused
11844 5 => False), -- Instance_Spec (Node5-Sem)
11846 N_Attribute_Definition_Clause =>
11847 (1 => True, -- Chars (Name1)
11848 2 => True, -- Name (Node2)
11849 3 => True, -- Expression (Node3)
11850 4 => False, -- unused
11851 5 => False), -- Next_Rep_Item (Node5-Sem)
11853 N_Aspect_Specification =>
11854 (1 => True, -- Identifier (Node1)
11855 2 => False, -- Aspect_Rep_Item (Node2-Sem)
11856 3 => True, -- Expression (Node3)
11857 4 => False, -- Entity (Node4-Sem)
11858 5 => False), -- Next_Rep_Item (Node5-Sem)
11860 N_Enumeration_Representation_Clause =>
11861 (1 => True, -- Identifier (Node1)
11862 2 => False, -- unused
11863 3 => True, -- Array_Aggregate (Node3)
11864 4 => False, -- unused
11865 5 => False), -- Next_Rep_Item (Node5-Sem)
11867 N_Record_Representation_Clause =>
11868 (1 => True, -- Identifier (Node1)
11869 2 => True, -- Mod_Clause (Node2)
11870 3 => True, -- Component_Clauses (List3)
11871 4 => False, -- unused
11872 5 => False), -- Next_Rep_Item (Node5-Sem)
11874 N_Component_Clause =>
11875 (1 => True, -- Component_Name (Node1)
11876 2 => True, -- Position (Node2)
11877 3 => True, -- First_Bit (Node3)
11878 4 => True, -- Last_Bit (Node4)
11879 5 => False), -- unused
11881 N_Code_Statement =>
11882 (1 => False, -- unused
11883 2 => False, -- unused
11884 3 => True, -- Expression (Node3)
11885 4 => False, -- unused
11886 5 => False), -- unused
11888 N_Op_Rotate_Left =>
11889 (1 => True, -- Chars (Name1)
11890 2 => True, -- Left_Opnd (Node2)
11891 3 => True, -- Right_Opnd (Node3)
11892 4 => False, -- Entity (Node4-Sem)
11893 5 => False), -- Etype (Node5-Sem)
11895 N_Op_Rotate_Right =>
11896 (1 => True, -- Chars (Name1)
11897 2 => True, -- Left_Opnd (Node2)
11898 3 => True, -- Right_Opnd (Node3)
11899 4 => False, -- Entity (Node4-Sem)
11900 5 => False), -- Etype (Node5-Sem)
11902 N_Op_Shift_Left =>
11903 (1 => True, -- Chars (Name1)
11904 2 => True, -- Left_Opnd (Node2)
11905 3 => True, -- Right_Opnd (Node3)
11906 4 => False, -- Entity (Node4-Sem)
11907 5 => False), -- Etype (Node5-Sem)
11909 N_Op_Shift_Right_Arithmetic =>
11910 (1 => True, -- Chars (Name1)
11911 2 => True, -- Left_Opnd (Node2)
11912 3 => True, -- Right_Opnd (Node3)
11913 4 => False, -- Entity (Node4-Sem)
11914 5 => False), -- Etype (Node5-Sem)
11916 N_Op_Shift_Right =>
11917 (1 => True, -- Chars (Name1)
11918 2 => True, -- Left_Opnd (Node2)
11919 3 => True, -- Right_Opnd (Node3)
11920 4 => False, -- Entity (Node4-Sem)
11921 5 => False), -- Etype (Node5-Sem)
11923 N_Delta_Constraint =>
11924 (1 => False, -- unused
11925 2 => False, -- unused
11926 3 => True, -- Delta_Expression (Node3)
11927 4 => True, -- Range_Constraint (Node4)
11928 5 => False), -- unused
11930 N_At_Clause =>
11931 (1 => True, -- Identifier (Node1)
11932 2 => False, -- unused
11933 3 => True, -- Expression (Node3)
11934 4 => False, -- unused
11935 5 => False), -- unused
11937 N_Mod_Clause =>
11938 (1 => False, -- unused
11939 2 => False, -- unused
11940 3 => True, -- Expression (Node3)
11941 4 => True, -- Pragmas_Before (List4)
11942 5 => False), -- unused
11944 N_If_Expression =>
11945 (1 => True, -- Expressions (List1)
11946 2 => False, -- Then_Actions (List2-Sem)
11947 3 => False, -- Else_Actions (List3-Sem)
11948 4 => False, -- unused
11949 5 => False), -- Etype (Node5-Sem)
11951 N_Contract =>
11952 (1 => False, -- Pre_Post_Conditions (Node1)
11953 2 => False, -- Contract_Test_Cases (Node2)
11954 3 => False, -- Classifications (Node3)
11955 4 => False, -- unused
11956 5 => False), -- unused
11958 N_Expanded_Name =>
11959 (1 => True, -- Chars (Name1)
11960 2 => True, -- Selector_Name (Node2)
11961 3 => True, -- Prefix (Node3)
11962 4 => False, -- Entity (Node4-Sem)
11963 5 => False), -- Etype (Node5-Sem)
11965 N_Expression_With_Actions =>
11966 (1 => True, -- Actions (List1)
11967 2 => False, -- unused
11968 3 => True, -- Expression (Node3)
11969 4 => False, -- unused
11970 5 => False), -- unused
11972 N_Free_Statement =>
11973 (1 => False, -- Storage_Pool (Node1-Sem)
11974 2 => False, -- Procedure_To_Call (Node2-Sem)
11975 3 => True, -- Expression (Node3)
11976 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11977 5 => False), -- unused
11979 N_Freeze_Entity =>
11980 (1 => True, -- Actions (List1)
11981 2 => False, -- Access_Types_To_Process (Elist2-Sem)
11982 3 => False, -- TSS_Elist (Elist3-Sem)
11983 4 => False, -- Entity (Node4-Sem)
11984 5 => False), -- First_Subtype_Link (Node5-Sem)
11986 N_Freeze_Generic_Entity =>
11987 (1 => False, -- unused
11988 2 => False, -- unused
11989 3 => False, -- unused
11990 4 => False, -- Entity (Node4-Sem)
11991 5 => False), -- unused
11993 N_Implicit_Label_Declaration =>
11994 (1 => True, -- Defining_Identifier (Node1)
11995 2 => False, -- Label_Construct (Node2-Sem)
11996 3 => False, -- unused
11997 4 => False, -- unused
11998 5 => False), -- unused
12000 N_Itype_Reference =>
12001 (1 => False, -- Itype (Node1-Sem)
12002 2 => False, -- unused
12003 3 => False, -- unused
12004 4 => False, -- unused
12005 5 => False), -- unused
12007 N_Raise_Constraint_Error =>
12008 (1 => True, -- Condition (Node1)
12009 2 => False, -- unused
12010 3 => True, -- Reason (Uint3)
12011 4 => False, -- unused
12012 5 => False), -- Etype (Node5-Sem)
12014 N_Raise_Program_Error =>
12015 (1 => True, -- Condition (Node1)
12016 2 => False, -- unused
12017 3 => True, -- Reason (Uint3)
12018 4 => False, -- unused
12019 5 => False), -- Etype (Node5-Sem)
12021 N_Raise_Storage_Error =>
12022 (1 => True, -- Condition (Node1)
12023 2 => False, -- unused
12024 3 => True, -- Reason (Uint3)
12025 4 => False, -- unused
12026 5 => False), -- Etype (Node5-Sem)
12028 N_Push_Constraint_Error_Label =>
12029 (1 => False, -- unused
12030 2 => False, -- unused
12031 3 => False, -- unused
12032 4 => False, -- unused
12033 5 => False), -- unused
12035 N_Push_Program_Error_Label =>
12036 (1 => False, -- Exception_Label
12037 2 => False, -- unused
12038 3 => False, -- unused
12039 4 => False, -- unused
12040 5 => False), -- Exception_Label
12042 N_Push_Storage_Error_Label =>
12043 (1 => False, -- Exception_Label
12044 2 => False, -- unused
12045 3 => False, -- unused
12046 4 => False, -- unused
12047 5 => False), -- Exception_Label
12049 N_Pop_Constraint_Error_Label =>
12050 (1 => False, -- unused
12051 2 => False, -- unused
12052 3 => False, -- unused
12053 4 => False, -- unused
12054 5 => False), -- unused
12056 N_Pop_Program_Error_Label =>
12057 (1 => False, -- unused
12058 2 => False, -- unused
12059 3 => False, -- unused
12060 4 => False, -- unused
12061 5 => False), -- unused
12063 N_Pop_Storage_Error_Label =>
12064 (1 => False, -- unused
12065 2 => False, -- unused
12066 3 => False, -- unused
12067 4 => False, -- unused
12068 5 => False), -- unused
12070 N_Reference =>
12071 (1 => False, -- unused
12072 2 => False, -- unused
12073 3 => True, -- Prefix (Node3)
12074 4 => False, -- unused
12075 5 => False), -- Etype (Node5-Sem)
12077 N_Subprogram_Info =>
12078 (1 => True, -- Identifier (Node1)
12079 2 => False, -- unused
12080 3 => False, -- unused
12081 4 => False, -- unused
12082 5 => False), -- Etype (Node5-Sem)
12084 N_Unchecked_Expression =>
12085 (1 => False, -- unused
12086 2 => False, -- unused
12087 3 => True, -- Expression (Node3)
12088 4 => False, -- unused
12089 5 => False), -- Etype (Node5-Sem)
12091 N_Unchecked_Type_Conversion =>
12092 (1 => False, -- unused
12093 2 => False, -- unused
12094 3 => True, -- Expression (Node3)
12095 4 => True, -- Subtype_Mark (Node4)
12096 5 => False), -- Etype (Node5-Sem)
12098 N_Validate_Unchecked_Conversion =>
12099 (1 => False, -- Source_Type (Node1-Sem)
12100 2 => False, -- Target_Type (Node2-Sem)
12101 3 => False, -- unused
12102 4 => False, -- unused
12103 5 => False), -- unused
12105 -- Entries for SCIL nodes
12107 N_SCIL_Dispatch_Table_Tag_Init =>
12108 (1 => False, -- unused
12109 2 => False, -- unused
12110 3 => False, -- unused
12111 4 => False, -- SCIL_Entity (Node4-Sem)
12112 5 => False), -- unused
12114 N_SCIL_Dispatching_Call =>
12115 (1 => False, -- unused
12116 2 => False, -- SCIL_Target_Prim (Node2-Sem)
12117 3 => False, -- unused
12118 4 => False, -- SCIL_Entity (Node4-Sem)
12119 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
12121 N_SCIL_Membership_Test =>
12122 (1 => False, -- unused
12123 2 => False, -- unused
12124 3 => False, -- unused
12125 4 => False, -- SCIL_Entity (Node4-Sem)
12126 5 => False), -- SCIL_Tag_Value (Node5-Sem)
12128 -- Entries for Empty, Error and Unused. Even thought these have a Chars
12129 -- field for debugging purposes, they are not really syntactic fields, so
12130 -- we mark all fields as unused.
12132 N_Empty =>
12133 (1 => False, -- unused
12134 2 => False, -- unused
12135 3 => False, -- unused
12136 4 => False, -- unused
12137 5 => False), -- unused
12139 N_Error =>
12140 (1 => False, -- unused
12141 2 => False, -- unused
12142 3 => False, -- unused
12143 4 => False, -- unused
12144 5 => False), -- unused
12146 N_Unused_At_Start =>
12147 (1 => False, -- unused
12148 2 => False, -- unused
12149 3 => False, -- unused
12150 4 => False, -- unused
12151 5 => False), -- unused
12153 N_Unused_At_End =>
12154 (1 => False, -- unused
12155 2 => False, -- unused
12156 3 => False, -- unused
12157 4 => False, -- unused
12158 5 => False)); -- unused
12160 --------------------
12161 -- Inline Pragmas --
12162 --------------------
12164 pragma Inline (ABE_Is_Certain);
12165 pragma Inline (Abort_Present);
12166 pragma Inline (Abortable_Part);
12167 pragma Inline (Abstract_Present);
12168 pragma Inline (Accept_Handler_Records);
12169 pragma Inline (Accept_Statement);
12170 pragma Inline (Access_Definition);
12171 pragma Inline (Access_To_Subprogram_Definition);
12172 pragma Inline (Access_Types_To_Process);
12173 pragma Inline (Actions);
12174 pragma Inline (Activation_Chain_Entity);
12175 pragma Inline (Acts_As_Spec);
12176 pragma Inline (Actual_Designated_Subtype);
12177 pragma Inline (Address_Warning_Posted);
12178 pragma Inline (Aggregate_Bounds);
12179 pragma Inline (Aliased_Present);
12180 pragma Inline (All_Others);
12181 pragma Inline (All_Present);
12182 pragma Inline (Alternatives);
12183 pragma Inline (Ancestor_Part);
12184 pragma Inline (Atomic_Sync_Required);
12185 pragma Inline (Array_Aggregate);
12186 pragma Inline (Aspect_Rep_Item);
12187 pragma Inline (Assignment_OK);
12188 pragma Inline (Associated_Node);
12189 pragma Inline (At_End_Proc);
12190 pragma Inline (Attribute_Name);
12191 pragma Inline (Aux_Decls_Node);
12192 pragma Inline (Backwards_OK);
12193 pragma Inline (Bad_Is_Detected);
12194 pragma Inline (Body_To_Inline);
12195 pragma Inline (Body_Required);
12196 pragma Inline (By_Ref);
12197 pragma Inline (Box_Present);
12198 pragma Inline (Char_Literal_Value);
12199 pragma Inline (Chars);
12200 pragma Inline (Check_Address_Alignment);
12201 pragma Inline (Choice_Parameter);
12202 pragma Inline (Choices);
12203 pragma Inline (Class_Present);
12204 pragma Inline (Classifications);
12205 pragma Inline (Comes_From_Extended_Return_Statement);
12206 pragma Inline (Compile_Time_Known_Aggregate);
12207 pragma Inline (Component_Associations);
12208 pragma Inline (Component_Clauses);
12209 pragma Inline (Component_Definition);
12210 pragma Inline (Component_Items);
12211 pragma Inline (Component_List);
12212 pragma Inline (Component_Name);
12213 pragma Inline (Componentwise_Assignment);
12214 pragma Inline (Condition);
12215 pragma Inline (Condition_Actions);
12216 pragma Inline (Config_Pragmas);
12217 pragma Inline (Constant_Present);
12218 pragma Inline (Constraint);
12219 pragma Inline (Constraints);
12220 pragma Inline (Context_Installed);
12221 pragma Inline (Context_Items);
12222 pragma Inline (Context_Pending);
12223 pragma Inline (Contract_Test_Cases);
12224 pragma Inline (Controlling_Argument);
12225 pragma Inline (Convert_To_Return_False);
12226 pragma Inline (Conversion_OK);
12227 pragma Inline (Corresponding_Aspect);
12228 pragma Inline (Corresponding_Body);
12229 pragma Inline (Corresponding_Formal_Spec);
12230 pragma Inline (Corresponding_Generic_Association);
12231 pragma Inline (Corresponding_Integer_Value);
12232 pragma Inline (Corresponding_Spec);
12233 pragma Inline (Corresponding_Spec_Of_Stub);
12234 pragma Inline (Corresponding_Stub);
12235 pragma Inline (Dcheck_Function);
12236 pragma Inline (Declarations);
12237 pragma Inline (Default_Expression);
12238 pragma Inline (Default_Storage_Pool);
12239 pragma Inline (Default_Name);
12240 pragma Inline (Defining_Identifier);
12241 pragma Inline (Defining_Unit_Name);
12242 pragma Inline (Delay_Alternative);
12243 pragma Inline (Delay_Statement);
12244 pragma Inline (Delta_Expression);
12245 pragma Inline (Digits_Expression);
12246 pragma Inline (Discr_Check_Funcs_Built);
12247 pragma Inline (Discrete_Choices);
12248 pragma Inline (Discrete_Range);
12249 pragma Inline (Discrete_Subtype_Definition);
12250 pragma Inline (Discrete_Subtype_Definitions);
12251 pragma Inline (Discriminant_Specifications);
12252 pragma Inline (Discriminant_Type);
12253 pragma Inline (Do_Accessibility_Check);
12254 pragma Inline (Do_Discriminant_Check);
12255 pragma Inline (Do_Length_Check);
12256 pragma Inline (Do_Division_Check);
12257 pragma Inline (Do_Overflow_Check);
12258 pragma Inline (Do_Range_Check);
12259 pragma Inline (Do_Storage_Check);
12260 pragma Inline (Do_Tag_Check);
12261 pragma Inline (Elaborate_Present);
12262 pragma Inline (Elaborate_All_Desirable);
12263 pragma Inline (Elaborate_All_Present);
12264 pragma Inline (Elaborate_Desirable);
12265 pragma Inline (Elaboration_Boolean);
12266 pragma Inline (Else_Actions);
12267 pragma Inline (Else_Statements);
12268 pragma Inline (Elsif_Parts);
12269 pragma Inline (Enclosing_Variant);
12270 pragma Inline (End_Label);
12271 pragma Inline (End_Span);
12272 pragma Inline (Entity);
12273 pragma Inline (Entity_Or_Associated_Node);
12274 pragma Inline (Entry_Body_Formal_Part);
12275 pragma Inline (Entry_Call_Alternative);
12276 pragma Inline (Entry_Call_Statement);
12277 pragma Inline (Entry_Direct_Name);
12278 pragma Inline (Entry_Index);
12279 pragma Inline (Entry_Index_Specification);
12280 pragma Inline (Etype);
12281 pragma Inline (Exception_Choices);
12282 pragma Inline (Exception_Handlers);
12283 pragma Inline (Exception_Junk);
12284 pragma Inline (Exception_Label);
12285 pragma Inline (Expansion_Delayed);
12286 pragma Inline (Explicit_Actual_Parameter);
12287 pragma Inline (Explicit_Generic_Actual_Parameter);
12288 pragma Inline (Expression);
12289 pragma Inline (Expressions);
12290 pragma Inline (First_Bit);
12291 pragma Inline (First_Inlined_Subprogram);
12292 pragma Inline (First_Name);
12293 pragma Inline (First_Named_Actual);
12294 pragma Inline (First_Real_Statement);
12295 pragma Inline (First_Subtype_Link);
12296 pragma Inline (Float_Truncate);
12297 pragma Inline (Formal_Type_Definition);
12298 pragma Inline (Forwards_OK);
12299 pragma Inline (From_Aspect_Specification);
12300 pragma Inline (From_At_End);
12301 pragma Inline (From_At_Mod);
12302 pragma Inline (From_Default);
12303 pragma Inline (Generic_Associations);
12304 pragma Inline (Generic_Formal_Declarations);
12305 pragma Inline (Generic_Parent);
12306 pragma Inline (Generic_Parent_Type);
12307 pragma Inline (Handled_Statement_Sequence);
12308 pragma Inline (Handler_List_Entry);
12309 pragma Inline (Has_Created_Identifier);
12310 pragma Inline (Has_Dereference_Action);
12311 pragma Inline (Has_Dynamic_Length_Check);
12312 pragma Inline (Has_Dynamic_Range_Check);
12313 pragma Inline (Has_Init_Expression);
12314 pragma Inline (Has_Local_Raise);
12315 pragma Inline (Has_Self_Reference);
12316 pragma Inline (Has_SP_Choice);
12317 pragma Inline (Has_No_Elaboration_Code);
12318 pragma Inline (Has_Pragma_Suppress_All);
12319 pragma Inline (Has_Private_View);
12320 pragma Inline (Has_Relative_Deadline_Pragma);
12321 pragma Inline (Has_Storage_Size_Pragma);
12322 pragma Inline (Has_Wide_Character);
12323 pragma Inline (Has_Wide_Wide_Character);
12324 pragma Inline (Header_Size_Added);
12325 pragma Inline (Hidden_By_Use_Clause);
12326 pragma Inline (High_Bound);
12327 pragma Inline (Identifier);
12328 pragma Inline (Implicit_With);
12329 pragma Inline (Implicit_With_From_Instantiation);
12330 pragma Inline (Interface_List);
12331 pragma Inline (Interface_Present);
12332 pragma Inline (Includes_Infinities);
12333 pragma Inline (Import_Interface_Present);
12334 pragma Inline (In_Assertion_Expression);
12335 pragma Inline (In_Present);
12336 pragma Inline (Inherited_Discriminant);
12337 pragma Inline (Instance_Spec);
12338 pragma Inline (Intval);
12339 pragma Inline (Iterator_Specification);
12340 pragma Inline (Is_Accessibility_Actual);
12341 pragma Inline (Is_Asynchronous_Call_Block);
12342 pragma Inline (Is_Boolean_Aspect);
12343 pragma Inline (Is_Checked);
12344 pragma Inline (Is_Component_Left_Opnd);
12345 pragma Inline (Is_Component_Right_Opnd);
12346 pragma Inline (Is_Controlling_Actual);
12347 pragma Inline (Is_Delayed_Aspect);
12348 pragma Inline (Is_Disabled);
12349 pragma Inline (Is_Dynamic_Coextension);
12350 pragma Inline (Is_Elsif);
12351 pragma Inline (Is_Entry_Barrier_Function);
12352 pragma Inline (Is_Expanded_Build_In_Place_Call);
12353 pragma Inline (Is_Finalization_Wrapper);
12354 pragma Inline (Is_Folded_In_Parser);
12355 pragma Inline (Is_Ignored);
12356 pragma Inline (Is_In_Discriminant_Check);
12357 pragma Inline (Is_Machine_Number);
12358 pragma Inline (Is_Null_Loop);
12359 pragma Inline (Is_Overloaded);
12360 pragma Inline (Is_Power_Of_2_For_Shift);
12361 pragma Inline (Is_Prefixed_Call);
12362 pragma Inline (Is_Protected_Subprogram_Body);
12363 pragma Inline (Is_Static_Coextension);
12364 pragma Inline (Is_Static_Expression);
12365 pragma Inline (Is_Subprogram_Descriptor);
12366 pragma Inline (Is_Task_Allocation_Block);
12367 pragma Inline (Is_Task_Master);
12368 pragma Inline (Iteration_Scheme);
12369 pragma Inline (Itype);
12370 pragma Inline (Kill_Range_Check);
12371 pragma Inline (Last_Bit);
12372 pragma Inline (Last_Name);
12373 pragma Inline (Library_Unit);
12374 pragma Inline (Label_Construct);
12375 pragma Inline (Left_Opnd);
12376 pragma Inline (Limited_View_Installed);
12377 pragma Inline (Limited_Present);
12378 pragma Inline (Literals);
12379 pragma Inline (Local_Raise_Not_OK);
12380 pragma Inline (Local_Raise_Statements);
12381 pragma Inline (Loop_Actions);
12382 pragma Inline (Loop_Parameter_Specification);
12383 pragma Inline (Low_Bound);
12384 pragma Inline (Mod_Clause);
12385 pragma Inline (More_Ids);
12386 pragma Inline (Must_Be_Byte_Aligned);
12387 pragma Inline (Must_Not_Freeze);
12388 pragma Inline (Must_Not_Override);
12389 pragma Inline (Must_Override);
12390 pragma Inline (Name);
12391 pragma Inline (Names);
12392 pragma Inline (Next_Entity);
12393 pragma Inline (Next_Exit_Statement);
12394 pragma Inline (Next_Implicit_With);
12395 pragma Inline (Next_Named_Actual);
12396 pragma Inline (Next_Pragma);
12397 pragma Inline (Next_Rep_Item);
12398 pragma Inline (Next_Use_Clause);
12399 pragma Inline (No_Ctrl_Actions);
12400 pragma Inline (No_Elaboration_Check);
12401 pragma Inline (No_Entities_Ref_In_Spec);
12402 pragma Inline (No_Initialization);
12403 pragma Inline (No_Minimize_Eliminate);
12404 pragma Inline (No_Truncation);
12405 pragma Inline (Null_Present);
12406 pragma Inline (Null_Exclusion_Present);
12407 pragma Inline (Null_Exclusion_In_Return_Present);
12408 pragma Inline (Null_Record_Present);
12409 pragma Inline (Object_Definition);
12410 pragma Inline (Of_Present);
12411 pragma Inline (Original_Discriminant);
12412 pragma Inline (Original_Entity);
12413 pragma Inline (Others_Discrete_Choices);
12414 pragma Inline (Out_Present);
12415 pragma Inline (Parameter_Associations);
12416 pragma Inline (Parameter_Specifications);
12417 pragma Inline (Parameter_List_Truncated);
12418 pragma Inline (Parameter_Type);
12419 pragma Inline (Parent_Spec);
12420 pragma Inline (Position);
12421 pragma Inline (Pragma_Argument_Associations);
12422 pragma Inline (Pragma_Identifier);
12423 pragma Inline (Pragmas_After);
12424 pragma Inline (Pragmas_Before);
12425 pragma Inline (Pre_Post_Conditions);
12426 pragma Inline (Prefix);
12427 pragma Inline (Premature_Use);
12428 pragma Inline (Present_Expr);
12429 pragma Inline (Prev_Ids);
12430 pragma Inline (Print_In_Hex);
12431 pragma Inline (Private_Declarations);
12432 pragma Inline (Private_Present);
12433 pragma Inline (Procedure_To_Call);
12434 pragma Inline (Proper_Body);
12435 pragma Inline (Protected_Definition);
12436 pragma Inline (Protected_Present);
12437 pragma Inline (Raises_Constraint_Error);
12438 pragma Inline (Range_Constraint);
12439 pragma Inline (Range_Expression);
12440 pragma Inline (Real_Range_Specification);
12441 pragma Inline (Realval);
12442 pragma Inline (Reason);
12443 pragma Inline (Record_Extension_Part);
12444 pragma Inline (Redundant_Use);
12445 pragma Inline (Renaming_Exception);
12446 pragma Inline (Result_Definition);
12447 pragma Inline (Return_Object_Declarations);
12448 pragma Inline (Return_Statement_Entity);
12449 pragma Inline (Reverse_Present);
12450 pragma Inline (Right_Opnd);
12451 pragma Inline (Rounded_Result);
12452 pragma Inline (SCIL_Controlling_Tag);
12453 pragma Inline (SCIL_Entity);
12454 pragma Inline (SCIL_Tag_Value);
12455 pragma Inline (SCIL_Target_Prim);
12456 pragma Inline (Scope);
12457 pragma Inline (Select_Alternatives);
12458 pragma Inline (Selector_Name);
12459 pragma Inline (Selector_Names);
12460 pragma Inline (Shift_Count_OK);
12461 pragma Inline (Source_Type);
12462 pragma Inline (Specification);
12463 pragma Inline (Split_PPC);
12464 pragma Inline (Statements);
12465 pragma Inline (Storage_Pool);
12466 pragma Inline (Subpool_Handle_Name);
12467 pragma Inline (Strval);
12468 pragma Inline (Subtype_Indication);
12469 pragma Inline (Subtype_Mark);
12470 pragma Inline (Subtype_Marks);
12471 pragma Inline (Suppress_Assignment_Checks);
12472 pragma Inline (Suppress_Loop_Warnings);
12473 pragma Inline (Synchronized_Present);
12474 pragma Inline (Tagged_Present);
12475 pragma Inline (Target_Type);
12476 pragma Inline (Task_Definition);
12477 pragma Inline (Task_Present);
12478 pragma Inline (Then_Actions);
12479 pragma Inline (Then_Statements);
12480 pragma Inline (Triggering_Alternative);
12481 pragma Inline (Triggering_Statement);
12482 pragma Inline (Treat_Fixed_As_Integer);
12483 pragma Inline (TSS_Elist);
12484 pragma Inline (Type_Definition);
12485 pragma Inline (Unit);
12486 pragma Inline (Unknown_Discriminants_Present);
12487 pragma Inline (Unreferenced_In_Spec);
12488 pragma Inline (Variant_Part);
12489 pragma Inline (Variants);
12490 pragma Inline (Visible_Declarations);
12491 pragma Inline (Used_Operations);
12492 pragma Inline (Was_Originally_Stub);
12493 pragma Inline (Withed_Body);
12495 pragma Inline (Set_ABE_Is_Certain);
12496 pragma Inline (Set_Abort_Present);
12497 pragma Inline (Set_Abortable_Part);
12498 pragma Inline (Set_Abstract_Present);
12499 pragma Inline (Set_Accept_Handler_Records);
12500 pragma Inline (Set_Accept_Statement);
12501 pragma Inline (Set_Access_Definition);
12502 pragma Inline (Set_Access_To_Subprogram_Definition);
12503 pragma Inline (Set_Access_Types_To_Process);
12504 pragma Inline (Set_Actions);
12505 pragma Inline (Set_Activation_Chain_Entity);
12506 pragma Inline (Set_Acts_As_Spec);
12507 pragma Inline (Set_Actual_Designated_Subtype);
12508 pragma Inline (Set_Address_Warning_Posted);
12509 pragma Inline (Set_Aggregate_Bounds);
12510 pragma Inline (Set_Aliased_Present);
12511 pragma Inline (Set_All_Others);
12512 pragma Inline (Set_All_Present);
12513 pragma Inline (Set_Alternatives);
12514 pragma Inline (Set_Ancestor_Part);
12515 pragma Inline (Set_Array_Aggregate);
12516 pragma Inline (Set_Aspect_Rep_Item);
12517 pragma Inline (Set_Assignment_OK);
12518 pragma Inline (Set_Associated_Node);
12519 pragma Inline (Set_At_End_Proc);
12520 pragma Inline (Set_Atomic_Sync_Required);
12521 pragma Inline (Set_Attribute_Name);
12522 pragma Inline (Set_Aux_Decls_Node);
12523 pragma Inline (Set_Backwards_OK);
12524 pragma Inline (Set_Bad_Is_Detected);
12525 pragma Inline (Set_Body_Required);
12526 pragma Inline (Set_Body_To_Inline);
12527 pragma Inline (Set_Box_Present);
12528 pragma Inline (Set_By_Ref);
12529 pragma Inline (Set_Char_Literal_Value);
12530 pragma Inline (Set_Chars);
12531 pragma Inline (Set_Check_Address_Alignment);
12532 pragma Inline (Set_Choice_Parameter);
12533 pragma Inline (Set_Choices);
12534 pragma Inline (Set_Class_Present);
12535 pragma Inline (Set_Classifications);
12536 pragma Inline (Set_Comes_From_Extended_Return_Statement);
12537 pragma Inline (Set_Compile_Time_Known_Aggregate);
12538 pragma Inline (Set_Component_Associations);
12539 pragma Inline (Set_Component_Clauses);
12540 pragma Inline (Set_Component_Definition);
12541 pragma Inline (Set_Component_Items);
12542 pragma Inline (Set_Component_List);
12543 pragma Inline (Set_Component_Name);
12544 pragma Inline (Set_Componentwise_Assignment);
12545 pragma Inline (Set_Condition);
12546 pragma Inline (Set_Condition_Actions);
12547 pragma Inline (Set_Config_Pragmas);
12548 pragma Inline (Set_Constant_Present);
12549 pragma Inline (Set_Constraint);
12550 pragma Inline (Set_Constraints);
12551 pragma Inline (Set_Context_Installed);
12552 pragma Inline (Set_Context_Items);
12553 pragma Inline (Set_Context_Pending);
12554 pragma Inline (Set_Contract_Test_Cases);
12555 pragma Inline (Set_Controlling_Argument);
12556 pragma Inline (Set_Conversion_OK);
12557 pragma Inline (Set_Convert_To_Return_False);
12558 pragma Inline (Set_Corresponding_Aspect);
12559 pragma Inline (Set_Corresponding_Body);
12560 pragma Inline (Set_Corresponding_Formal_Spec);
12561 pragma Inline (Set_Corresponding_Generic_Association);
12562 pragma Inline (Set_Corresponding_Integer_Value);
12563 pragma Inline (Set_Corresponding_Spec);
12564 pragma Inline (Set_Corresponding_Spec_Of_Stub);
12565 pragma Inline (Set_Corresponding_Stub);
12566 pragma Inline (Set_Dcheck_Function);
12567 pragma Inline (Set_Declarations);
12568 pragma Inline (Set_Default_Expression);
12569 pragma Inline (Set_Default_Name);
12570 pragma Inline (Set_Default_Storage_Pool);
12571 pragma Inline (Set_Defining_Identifier);
12572 pragma Inline (Set_Defining_Unit_Name);
12573 pragma Inline (Set_Delay_Alternative);
12574 pragma Inline (Set_Delay_Statement);
12575 pragma Inline (Set_Delta_Expression);
12576 pragma Inline (Set_Digits_Expression);
12577 pragma Inline (Set_Discr_Check_Funcs_Built);
12578 pragma Inline (Set_Discrete_Choices);
12579 pragma Inline (Set_Discrete_Range);
12580 pragma Inline (Set_Discrete_Subtype_Definition);
12581 pragma Inline (Set_Discrete_Subtype_Definitions);
12582 pragma Inline (Set_Discriminant_Specifications);
12583 pragma Inline (Set_Discriminant_Type);
12584 pragma Inline (Set_Do_Accessibility_Check);
12585 pragma Inline (Set_Do_Discriminant_Check);
12586 pragma Inline (Set_Do_Division_Check);
12587 pragma Inline (Set_Do_Length_Check);
12588 pragma Inline (Set_Do_Overflow_Check);
12589 pragma Inline (Set_Do_Range_Check);
12590 pragma Inline (Set_Do_Storage_Check);
12591 pragma Inline (Set_Do_Tag_Check);
12592 pragma Inline (Set_Elaborate_All_Desirable);
12593 pragma Inline (Set_Elaborate_All_Present);
12594 pragma Inline (Set_Elaborate_Desirable);
12595 pragma Inline (Set_Elaborate_Present);
12596 pragma Inline (Set_Elaboration_Boolean);
12597 pragma Inline (Set_Else_Actions);
12598 pragma Inline (Set_Else_Statements);
12599 pragma Inline (Set_Elsif_Parts);
12600 pragma Inline (Set_Enclosing_Variant);
12601 pragma Inline (Set_End_Label);
12602 pragma Inline (Set_End_Span);
12603 pragma Inline (Set_Entity);
12604 pragma Inline (Set_Entry_Body_Formal_Part);
12605 pragma Inline (Set_Entry_Call_Alternative);
12606 pragma Inline (Set_Entry_Call_Statement);
12607 pragma Inline (Set_Entry_Direct_Name);
12608 pragma Inline (Set_Entry_Index);
12609 pragma Inline (Set_Entry_Index_Specification);
12610 pragma Inline (Set_Etype);
12611 pragma Inline (Set_Exception_Choices);
12612 pragma Inline (Set_Exception_Handlers);
12613 pragma Inline (Set_Exception_Junk);
12614 pragma Inline (Set_Exception_Label);
12615 pragma Inline (Set_Expansion_Delayed);
12616 pragma Inline (Set_Explicit_Actual_Parameter);
12617 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
12618 pragma Inline (Set_Expression);
12619 pragma Inline (Set_Expressions);
12620 pragma Inline (Set_First_Bit);
12621 pragma Inline (Set_First_Inlined_Subprogram);
12622 pragma Inline (Set_First_Name);
12623 pragma Inline (Set_First_Named_Actual);
12624 pragma Inline (Set_First_Real_Statement);
12625 pragma Inline (Set_First_Subtype_Link);
12626 pragma Inline (Set_Float_Truncate);
12627 pragma Inline (Set_Formal_Type_Definition);
12628 pragma Inline (Set_Forwards_OK);
12629 pragma Inline (Set_From_Aspect_Specification);
12630 pragma Inline (Set_From_At_End);
12631 pragma Inline (Set_From_At_Mod);
12632 pragma Inline (Set_From_Default);
12633 pragma Inline (Set_Generic_Associations);
12634 pragma Inline (Set_Generic_Formal_Declarations);
12635 pragma Inline (Set_Generic_Parent);
12636 pragma Inline (Set_Generic_Parent_Type);
12637 pragma Inline (Set_Handled_Statement_Sequence);
12638 pragma Inline (Set_Handler_List_Entry);
12639 pragma Inline (Set_Has_Created_Identifier);
12640 pragma Inline (Set_Has_Dereference_Action);
12641 pragma Inline (Set_Has_Dynamic_Length_Check);
12642 pragma Inline (Set_Has_Dynamic_Range_Check);
12643 pragma Inline (Set_Has_Init_Expression);
12644 pragma Inline (Set_Has_Local_Raise);
12645 pragma Inline (Set_Has_No_Elaboration_Code);
12646 pragma Inline (Set_Has_Pragma_Suppress_All);
12647 pragma Inline (Set_Has_Private_View);
12648 pragma Inline (Set_Has_Relative_Deadline_Pragma);
12649 pragma Inline (Set_Has_Self_Reference);
12650 pragma Inline (Set_Has_SP_Choice);
12651 pragma Inline (Set_Has_Storage_Size_Pragma);
12652 pragma Inline (Set_Has_Wide_Character);
12653 pragma Inline (Set_Has_Wide_Wide_Character);
12654 pragma Inline (Set_Header_Size_Added);
12655 pragma Inline (Set_Hidden_By_Use_Clause);
12656 pragma Inline (Set_High_Bound);
12657 pragma Inline (Set_Identifier);
12658 pragma Inline (Set_Implicit_With);
12659 pragma Inline (Set_Import_Interface_Present);
12660 pragma Inline (Set_In_Assertion_Expression);
12661 pragma Inline (Set_In_Present);
12662 pragma Inline (Set_Includes_Infinities);
12663 pragma Inline (Set_Inherited_Discriminant);
12664 pragma Inline (Set_Instance_Spec);
12665 pragma Inline (Set_Interface_List);
12666 pragma Inline (Set_Interface_Present);
12667 pragma Inline (Set_Intval);
12668 pragma Inline (Set_Is_Accessibility_Actual);
12669 pragma Inline (Set_Is_Asynchronous_Call_Block);
12670 pragma Inline (Set_Is_Boolean_Aspect);
12671 pragma Inline (Set_Is_Checked);
12672 pragma Inline (Set_Is_Component_Left_Opnd);
12673 pragma Inline (Set_Is_Component_Right_Opnd);
12674 pragma Inline (Set_Is_Controlling_Actual);
12675 pragma Inline (Set_Is_Delayed_Aspect);
12676 pragma Inline (Set_Is_Disabled);
12677 pragma Inline (Set_Is_Dynamic_Coextension);
12678 pragma Inline (Set_Is_Elsif);
12679 pragma Inline (Set_Is_Entry_Barrier_Function);
12680 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
12681 pragma Inline (Set_Is_Finalization_Wrapper);
12682 pragma Inline (Set_Is_Folded_In_Parser);
12683 pragma Inline (Set_Is_Ignored);
12684 pragma Inline (Set_Is_In_Discriminant_Check);
12685 pragma Inline (Set_Is_Machine_Number);
12686 pragma Inline (Set_Is_Null_Loop);
12687 pragma Inline (Set_Is_Overloaded);
12688 pragma Inline (Set_Is_Power_Of_2_For_Shift);
12689 pragma Inline (Set_Is_Prefixed_Call);
12690 pragma Inline (Set_Is_Protected_Subprogram_Body);
12691 pragma Inline (Set_Is_Static_Coextension);
12692 pragma Inline (Set_Is_Static_Expression);
12693 pragma Inline (Set_Is_Subprogram_Descriptor);
12694 pragma Inline (Set_Is_Task_Allocation_Block);
12695 pragma Inline (Set_Is_Task_Master);
12696 pragma Inline (Set_Iteration_Scheme);
12697 pragma Inline (Set_Iterator_Specification);
12698 pragma Inline (Set_Itype);
12699 pragma Inline (Set_Kill_Range_Check);
12700 pragma Inline (Set_Label_Construct);
12701 pragma Inline (Set_Last_Bit);
12702 pragma Inline (Set_Last_Name);
12703 pragma Inline (Set_Left_Opnd);
12704 pragma Inline (Set_Library_Unit);
12705 pragma Inline (Set_Limited_Present);
12706 pragma Inline (Set_Limited_View_Installed);
12707 pragma Inline (Set_Literals);
12708 pragma Inline (Set_Local_Raise_Not_OK);
12709 pragma Inline (Set_Local_Raise_Statements);
12710 pragma Inline (Set_Loop_Actions);
12711 pragma Inline (Set_Loop_Parameter_Specification);
12712 pragma Inline (Set_Low_Bound);
12713 pragma Inline (Set_Mod_Clause);
12714 pragma Inline (Set_More_Ids);
12715 pragma Inline (Set_Must_Be_Byte_Aligned);
12716 pragma Inline (Set_Must_Not_Freeze);
12717 pragma Inline (Set_Must_Not_Override);
12718 pragma Inline (Set_Must_Override);
12719 pragma Inline (Set_Name);
12720 pragma Inline (Set_Names);
12721 pragma Inline (Set_Next_Entity);
12722 pragma Inline (Set_Next_Exit_Statement);
12723 pragma Inline (Set_Next_Implicit_With);
12724 pragma Inline (Set_Next_Named_Actual);
12725 pragma Inline (Set_Next_Pragma);
12726 pragma Inline (Set_Next_Rep_Item);
12727 pragma Inline (Set_Next_Use_Clause);
12728 pragma Inline (Set_No_Ctrl_Actions);
12729 pragma Inline (Set_No_Elaboration_Check);
12730 pragma Inline (Set_No_Entities_Ref_In_Spec);
12731 pragma Inline (Set_No_Initialization);
12732 pragma Inline (Set_No_Minimize_Eliminate);
12733 pragma Inline (Set_No_Truncation);
12734 pragma Inline (Set_Null_Exclusion_Present);
12735 pragma Inline (Set_Null_Exclusion_In_Return_Present);
12736 pragma Inline (Set_Null_Present);
12737 pragma Inline (Set_Null_Record_Present);
12738 pragma Inline (Set_Object_Definition);
12739 pragma Inline (Set_Of_Present);
12740 pragma Inline (Set_Original_Discriminant);
12741 pragma Inline (Set_Original_Entity);
12742 pragma Inline (Set_Others_Discrete_Choices);
12743 pragma Inline (Set_Out_Present);
12744 pragma Inline (Set_Parameter_Associations);
12745 pragma Inline (Set_Parameter_List_Truncated);
12746 pragma Inline (Set_Parameter_Specifications);
12747 pragma Inline (Set_Parameter_Type);
12748 pragma Inline (Set_Parent_Spec);
12749 pragma Inline (Set_Position);
12750 pragma Inline (Set_Pragma_Argument_Associations);
12751 pragma Inline (Set_Pragma_Identifier);
12752 pragma Inline (Set_Pragmas_After);
12753 pragma Inline (Set_Pragmas_Before);
12754 pragma Inline (Set_Pre_Post_Conditions);
12755 pragma Inline (Set_Prefix);
12756 pragma Inline (Set_Premature_Use);
12757 pragma Inline (Set_Present_Expr);
12758 pragma Inline (Set_Prev_Ids);
12759 pragma Inline (Set_Print_In_Hex);
12760 pragma Inline (Set_Private_Declarations);
12761 pragma Inline (Set_Private_Present);
12762 pragma Inline (Set_Procedure_To_Call);
12763 pragma Inline (Set_Proper_Body);
12764 pragma Inline (Set_Protected_Definition);
12765 pragma Inline (Set_Protected_Present);
12766 pragma Inline (Set_Raises_Constraint_Error);
12767 pragma Inline (Set_Range_Constraint);
12768 pragma Inline (Set_Range_Expression);
12769 pragma Inline (Set_Real_Range_Specification);
12770 pragma Inline (Set_Realval);
12771 pragma Inline (Set_Reason);
12772 pragma Inline (Set_Record_Extension_Part);
12773 pragma Inline (Set_Redundant_Use);
12774 pragma Inline (Set_Renaming_Exception);
12775 pragma Inline (Set_Result_Definition);
12776 pragma Inline (Set_Return_Object_Declarations);
12777 pragma Inline (Set_Reverse_Present);
12778 pragma Inline (Set_Right_Opnd);
12779 pragma Inline (Set_Rounded_Result);
12780 pragma Inline (Set_SCIL_Controlling_Tag);
12781 pragma Inline (Set_SCIL_Entity);
12782 pragma Inline (Set_SCIL_Tag_Value);
12783 pragma Inline (Set_SCIL_Target_Prim);
12784 pragma Inline (Set_Scope);
12785 pragma Inline (Set_Select_Alternatives);
12786 pragma Inline (Set_Selector_Name);
12787 pragma Inline (Set_Selector_Names);
12788 pragma Inline (Set_Shift_Count_OK);
12789 pragma Inline (Set_Source_Type);
12790 pragma Inline (Set_Split_PPC);
12791 pragma Inline (Set_Statements);
12792 pragma Inline (Set_Storage_Pool);
12793 pragma Inline (Set_Strval);
12794 pragma Inline (Set_Subpool_Handle_Name);
12795 pragma Inline (Set_Subtype_Indication);
12796 pragma Inline (Set_Subtype_Mark);
12797 pragma Inline (Set_Subtype_Marks);
12798 pragma Inline (Set_Suppress_Assignment_Checks);
12799 pragma Inline (Set_Suppress_Loop_Warnings);
12800 pragma Inline (Set_Synchronized_Present);
12801 pragma Inline (Set_TSS_Elist);
12802 pragma Inline (Set_Tagged_Present);
12803 pragma Inline (Set_Target_Type);
12804 pragma Inline (Set_Task_Definition);
12805 pragma Inline (Set_Task_Present);
12806 pragma Inline (Set_Then_Actions);
12807 pragma Inline (Set_Then_Statements);
12808 pragma Inline (Set_Treat_Fixed_As_Integer);
12809 pragma Inline (Set_Triggering_Alternative);
12810 pragma Inline (Set_Triggering_Statement);
12811 pragma Inline (Set_Type_Definition);
12812 pragma Inline (Set_Unit);
12813 pragma Inline (Set_Unknown_Discriminants_Present);
12814 pragma Inline (Set_Unreferenced_In_Spec);
12815 pragma Inline (Set_Used_Operations);
12816 pragma Inline (Set_Variant_Part);
12817 pragma Inline (Set_Variants);
12818 pragma Inline (Set_Visible_Declarations);
12819 pragma Inline (Set_Was_Originally_Stub);
12820 pragma Inline (Set_Withed_Body);
12822 end Sinfo;