1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2010, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
30 ------------------------------------------------------------------------------
32 -- This package defines the structure of the abstract syntax tree. The Tree
33 -- package provides a basic tree structure. Sinfo describes how this structure
34 -- is used to represent the syntax of an Ada program.
36 -- The grammar in the RM is followed very closely in the tree design, and is
37 -- repeated as part of this source file.
39 -- The tree contains not only the full syntactic representation of the
40 -- program, but also the results of semantic analysis. In particular, the
41 -- nodes for defining identifiers, defining character literals and defining
42 -- operator symbols, collectively referred to as entities, represent what
43 -- would normally be regarded as the symbol table information. In addition a
44 -- number of the tree nodes contain semantic information.
46 -- WARNING: Several files are automatically generated from this package.
47 -- See below for details.
49 with Namet; use Namet;
50 with Types; use Types;
51 with Uintp; use Uintp;
52 with Urealp; use Urealp;
56 ---------------------------------
57 -- Making Changes to This File --
58 ---------------------------------
60 -- If changes are made to this file, a number of related steps must be
61 -- carried out to ensure consistency. First, if a field access function is
62 -- added, it appears in these places:
65 -- The documentation associated with the field (if semantic)
66 -- The documentation associated with the node
67 -- The spec of the access function
68 -- The spec of the set procedure
69 -- The entries in Is_Syntactic_Field
70 -- The pragma Inline for the access function
71 -- The pragma Inline for the set procedure
73 -- The body of the access function
74 -- The body of the set procedure
76 -- The field chosen must be consistent in all places, and, for a node that
77 -- is a subexpression, must not overlap any of the standard expression
80 -- In addition, if any of the standard expression fields is changed, then
81 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
82 -- must be updated appropriately, since it special cases expression fields.
84 -- If a new tree node is added, then the following changes are made
86 -- Add it to the documentation in the appropriate place
87 -- Add its fields to this documentation section
88 -- Define it in the appropriate classification in Node_Kind
89 -- 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 -- Run CSinfo to check that you have made the changes consistently. It
104 -- checks most of the rules given above, with clear error messages. This
105 -- utility reads sinfo.ads and sinfo.adb and generates a report to
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
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
123 -- All of the above steps except CSinfo are done automatically by the
124 -- build scripts when you do 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
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
206 -- -- processing for case statement alternative Alt
208 -- Alt := Next (Alt);
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.
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
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
250 -- Variant := Next (Variant);
255 -- Variant := First_Non_Pragma (Variants (N));
256 -- while Present (Variant) loop
258 -- Variant := Next_Non_Pragma (Variant);
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
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
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.
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.
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).
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 -- Assignment_OK (Flag15-Sem) set if modification is OK
428 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
430 -- Note: see under (EXPRESSION) for further details on the use of
431 -- the Paren_Count field to record the number of parentheses levels.
433 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
434 -- The actual definition of this type is given later (the reason for this
435 -- is that we want the descriptions ordered by logical chapter in the RM,
436 -- but the type definition is reordered to facilitate the definition of
437 -- some subtype ranges. The individual descriptions of the nodes show how
438 -- the various fields are used in each node kind, as well as providing
439 -- logical names for the fields. Functions and procedures are provided for
440 -- accessing and setting these fields using these logical names.
442 -----------------------
443 -- Gigi Restrictions --
444 -----------------------
446 -- The tree passed to Gigi is more restricted than the general tree form.
447 -- For example, as a result of expansion, most of the tasking nodes can
448 -- never appear. For each node to which either a complete or partial
449 -- restriction applies, a note entitled "Gigi restriction" appears which
450 -- documents the restriction.
452 -- Note that most of these restrictions apply only to trees generated when
453 -- code is being generated, since they involved expander actions that
456 ------------------------
457 -- Common Flag Fields --
458 ------------------------
460 -- The following flag fields appear in all nodes
463 -- This flag is used to indicate that a node (and all its children have
464 -- been analyzed. It is used to avoid reanalysis of a node that has
465 -- already been analyzed, both for efficiency and functional correctness
469 -- This flag is set if the node comes directly from an explicit construct
470 -- in the source. It is normally on for any nodes built by the scanner or
471 -- parser from the source program, with the exception that in a few cases
472 -- the parser adds nodes to normalize the representation (in particular
473 -- a null statement is added to a package body if there is no begin/end
474 -- initialization section.
476 -- Most nodes inserted by the analyzer or expander are not considered
477 -- as coming from source, so the flag is off for such nodes. In a few
478 -- cases, the expander constructs nodes closely equivalent to nodes
479 -- from the source program (e.g. the allocator built for build-in-place
480 -- case), and the Comes_From_Source flag is deliberately set.
483 -- This flag is used to avoid multiple error messages being posted on or
484 -- referring to the same node. This flag is set if an error message
485 -- refers to a node or is posted on its source location, and has the
486 -- effect of inhibiting further messages involving this same node.
488 -- Has_Dynamic_Length_Check (Flag10-Sem)
489 -- This flag is present on all nodes. It is set to indicate that one of
490 -- the routines in unit Checks has generated a length check action which
491 -- has been inserted at the flagged node. This is used to avoid the
492 -- generation of duplicate checks.
494 -- Has_Dynamic_Range_Check (Flag12-Sem)
495 -- This flag is present on all nodes. It is set to indicate that one of
496 -- the routines in unit Checks has generated a range check action which
497 -- has been inserted at the flagged node. This is used to avoid the
498 -- generation of duplicate checks.
500 -- Has_Local_Raise (Flag8-Sem)
501 -- Present in exception handler nodes. Set if the handler can be entered
502 -- via a local raise that gets transformed to a goto statement. This will
503 -- always be set if Local_Raise_Statements is non-empty, but can also be
504 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
505 -- nodes requiring generation of back end checks.
507 ------------------------------------
508 -- Description of Semantic Fields --
509 ------------------------------------
511 -- The meaning of the syntactic fields is generally clear from their names
512 -- without any further description, since the names are chosen to
513 -- correspond very closely to the syntax in the reference manual. This
514 -- section describes the usage of the semantic fields, which are used to
515 -- contain additional information determined during semantic analysis.
517 -- ABE_Is_Certain (Flag18-Sem)
518 -- This flag is set in an instantiation node or a call node is determined
519 -- to be sure to raise an ABE. This is used to trigger special handling
520 -- of such cases, particularly in the instantiation case where we avoid
521 -- instantiating the body if this flag is set. This flag is also present
522 -- in an N_Formal_Package_Declaration_Node since formal package
523 -- declarations are treated like instantiations, but it is always set to
524 -- False in this context.
526 -- Accept_Handler_Records (List5-Sem)
527 -- This field is present only in an N_Accept_Alternative node. It is used
528 -- to temporarily hold the exception handler records from an accept
529 -- statement in a selective accept. These exception handlers will
530 -- eventually be placed in the Handler_Records list of the procedure
531 -- built for this accept (see Expand_N_Selective_Accept procedure in
532 -- Exp_Ch9 for further details).
534 -- Access_Types_To_Process (Elist2-Sem)
535 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
536 -- Contains the list of access types which may require specific treatment
537 -- when the nature of the type completion is completely known. An example
538 -- of such treatment is the generation of the associated_final_chain.
540 -- Actions (List1-Sem)
541 -- This field contains a sequence of actions that are associated with the
542 -- node holding the field. See the individual node types for details of
543 -- how this field is used, as well as the description of the specific use
544 -- for a particular node type.
546 -- Activation_Chain_Entity (Node3-Sem)
547 -- This is used in tree nodes representing task activators (blocks,
548 -- subprogram bodies, package declarations, and task bodies). It is
549 -- initially Empty, and then gets set to point to the entity for the
550 -- declared Activation_Chain variable when the first task is declared.
551 -- When tasks are declared in the corresponding declarative region this
552 -- entity is located by name (its name is always _Chain) and the declared
553 -- tasks are added to the chain. Note that N_Extended_Return_Statement
554 -- does not have this attribute, although it does have an activation
555 -- chain. This chain is used to store the tasks temporarily, and is not
556 -- used for activating them. On successful completion of the return
557 -- statement, the tasks are moved to the caller's chain, and the caller
560 -- Acts_As_Spec (Flag4-Sem)
561 -- A flag set in the N_Subprogram_Body node for a subprogram body which
562 -- is acting as its own spec, except in the case of a library level
563 -- subprogram, in which case the flag is set on the parent compilation
564 -- unit node instead (see further description in spec of Lib package).
565 -- ??? Above note about Lib is dubious since lib.ads does not mention
566 -- Acts_As_Spec at all.
568 -- Actual_Designated_Subtype (Node4-Sem)
569 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
570 -- needs to known the dynamic constrained subtype of the designated
571 -- object, this attribute is set to that type. This is done for
572 -- N_Free_Statements for access-to-classwide types and access to
573 -- unconstrained packed array types, and for N_Explicit_Dereference when
574 -- the designated type is an unconstrained packed array and the
575 -- dereference is the prefix of a 'Size attribute reference.
577 -- Address_Warning_Posted (Flag18-Sem)
578 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
579 -- posted a warning for the address clause regarding size or alignment
580 -- issues. Used to inhibit multiple redundant messages.
582 -- Aggregate_Bounds (Node3-Sem)
583 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
584 -- known at compile time, this field points to an N_Range node with those
585 -- bounds. Otherwise Empty.
587 -- All_Others (Flag11-Sem)
588 -- Present in an N_Others_Choice node. This flag is set for an others
589 -- exception where all exceptions are to be caught, even those that are
590 -- not normally handled (in particular the tasking abort signal). This
591 -- is used for translation of the at end handler into a normal exception
594 -- Aspect_Cancel (Flag11-Sem)
595 -- Processing of aspect specifications typically generates pragmas and
596 -- attribute definition clauses that are inserted into the tree after
597 -- the declaration node to get the desired aspect effect. In the case
598 -- of Boolean aspects that use "=> False" to cancel the effect of an
599 -- aspect (i.e. turn if off), the generated pragma has the Aspect_Cancel
600 -- flag set to indicate that the pragma operates in the opposite sense.
602 -- Aspect_Rep_Item (Node2-Sem)
603 -- Present in N_Aspect_Specification nodes. Points to the corresponding
604 -- pragma/attribute definition node used to process the aspect.
606 -- Assignment_OK (Flag15-Sem)
607 -- This flag is set in a subexpression node for an object, indicating
608 -- that the associated object can be modified, even if this would not
609 -- normally be permissible (either by direct assignment, or by being
610 -- passed as an out or in-out parameter). This is used by the expander
611 -- for a number of purposes, including initialization of constants and
612 -- limited type objects (such as tasks), setting discriminant fields,
613 -- setting tag values, etc. N_Object_Declaration nodes also have this
614 -- flag defined. Here it is used to indicate that an initialization
615 -- expression is valid, even where it would normally not be allowed
616 -- (e.g. where the type involved is limited).
618 -- Associated_Node (Node4-Sem)
619 -- Present in nodes that can denote an entity: identifiers, character
620 -- literals, operator symbols, expanded names, operator nodes, and
621 -- attribute reference nodes (all these nodes have an Entity field).
622 -- This field is also present in N_Aggregate, N_Selected_Component, and
623 -- N_Extension_Aggregate nodes. This field is used in generic processing
624 -- to create links between the generic template and the generic copy.
625 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
626 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
627 -- the normal function of Entity is not required at the point where the
628 -- Associated_Node is set. Note also, that in generic templates, this
629 -- means that the Entity field does not necessarily point to an Entity.
630 -- Since the back end is expected to ignore generic templates, this is
633 -- At_End_Proc (Node1)
634 -- This field is present in an N_Handled_Sequence_Of_Statements node.
635 -- It contains an identifier reference for the cleanup procedure to be
636 -- called. See description of this node for further details.
638 -- Backwards_OK (Flag6-Sem)
639 -- A flag present in the N_Assignment_Statement node. It is used only
640 -- if the type being assigned is an array type, and is set if analysis
641 -- determines that it is definitely safe to do the copy backwards, i.e.
642 -- starting at the highest addressed element. This is the case if either
643 -- the operands do not overlap, or they may overlap, but if they do,
644 -- then the left operand is at a higher address than the right operand.
646 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
647 -- means that the front end could not determine that either direction is
648 -- definitely safe, and a runtime check may be required if the backend
649 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
650 -- set, it means that the front end can assure no overlap of operands.
652 -- Body_To_Inline (Node3-Sem)
653 -- present in subprogram declarations. Denotes analyzed but unexpanded
654 -- body of subprogram, to be used when inlining calls. Present when the
655 -- subprogram has an Inline pragma and inlining is enabled. If the
656 -- declaration is completed by a renaming_as_body, and the renamed en-
657 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
658 -- which is used directly in later calls to the original subprogram.
660 -- Body_Required (Flag13-Sem)
661 -- A flag that appears in the N_Compilation_Unit node indicating that
662 -- the corresponding unit requires a body. For the package case, this
663 -- indicates that a completion is required. In Ada 95, if the flag is not
664 -- set for the package case, then a body may not be present. In Ada 83,
665 -- if the flag is not set for the package case, then body is optional.
666 -- For a subprogram declaration, the flag is set except in the case where
667 -- a pragma Import or Interface applies, in which case no body is
668 -- permitted (in Ada 83 or Ada 95).
670 -- By_Ref (Flag5-Sem)
671 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
672 -- this flag is set when the returned expression is already allocated on
673 -- the secondary stack and thus the result is passed by reference rather
674 -- than copied another time.
676 -- Check_Address_Alignment (Flag11-Sem)
677 -- A flag present in N_Attribute_Definition clause for a 'Address
678 -- attribute definition. This flag is set if a dynamic check should be
679 -- generated at the freeze point for the entity to which this address
680 -- clause applies. The reason that we need this flag is that we want to
681 -- check for range checks being suppressed at the point where the
682 -- attribute definition clause is given, rather than testing this at the
685 -- Coextensions (Elist4-Sem)
686 -- Present in allocators nodes. Points to list of allocators for the
687 -- access discriminants of the allocated object.
689 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
690 -- Present in N_Simple_Return_Statement nodes. True if this node was
691 -- constructed as part of the N_Extended_Return_Statement expansion.
693 -- Compile_Time_Known_Aggregate (Flag18-Sem)
694 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
695 -- evaluated at compile time without raising constraint error. Such
696 -- aggregates can be passed as is to Gigi without any expansion. See
697 -- Sem_Aggr for the specific conditions under which an aggregate has this
698 -- flag set. See also the flag Static_Processing_OK.
700 -- Componentwise_Assignment (Flag14-Sem)
701 -- Present in N_Assignment_Statement nodes. Set for a record assignment
702 -- where all that needs doing is to expand it into component-by-component
703 -- assignments. This is used internally for the case of tagged types with
704 -- rep clauses, where we need to avoid recursion (we don't want to try to
705 -- generate a call to the primitive operation, because this is the case
706 -- where we are compiling the primitive operation). Note that when we are
707 -- expanding component assignments in this case, we never assign the _tag
708 -- field, but we recursively assign components of the parent type.
710 -- Condition_Actions (List3-Sem)
711 -- This field appears in else-if nodes and in the iteration scheme node
712 -- for while loops. This field is only used during semantic processing to
713 -- temporarily hold actions inserted into the tree. In the tree passed
714 -- to gigi, the condition actions field is always set to No_List. For
715 -- details on how this field is used, see the routine Insert_Actions in
716 -- package Exp_Util, and also the expansion routines for the relevant
719 -- Context_Pending (Flag16-Sem)
720 -- This field appears in Compilation_Unit nodes, to indicate that the
721 -- context of the unit is being compiled. Used to detect circularities
722 -- that are not otherwise detected by the loading mechanism. Such
723 -- circularities can occur in the presence of limited and non-limited
724 -- with_clauses that mention the same units.
726 -- Controlling_Argument (Node1-Sem)
727 -- This field is set in procedure and function call nodes if the call
728 -- is a dispatching call (it is Empty for a non-dispatching call). It
729 -- indicates the source of the call's controlling tag. For procedure
730 -- calls, the Controlling_Argument is one of the actuals. For function
731 -- that has a dispatching result, it is an entity in the context of the
732 -- call that can provide a tag, or else it is the tag of the root type
733 -- of the class. It can also specify a tag directly rather than being a
734 -- tagged object. The latter is needed by the implementations of AI-239
737 -- Conversion_OK (Flag14-Sem)
738 -- A flag set on type conversion nodes to indicate that the conversion
739 -- is to be considered as being valid, even though it is the case that
740 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
741 -- Fixed_Value and Integer_Value, for internal conversions done for
742 -- fixed-point operations, and for certain conversions for calls to
743 -- initialization procedures. If Conversion_OK is set, then Etype must be
744 -- set (the analyzer assumes that Etype has been set). For the case of
745 -- fixed-point operands, it also indicates that the conversion is to be
746 -- direct conversion of the underlying integer result, with no regard to
747 -- the small operand.
749 -- Corresponding_Body (Node5-Sem)
750 -- This field is set in subprogram declarations, package declarations,
751 -- entry declarations of protected types, and in generic units. It
752 -- points to the defining entity for the corresponding body (NOT the
753 -- node for the body itself).
755 -- Corresponding_Formal_Spec (Node3-Sem)
756 -- This field is set in subprogram renaming declarations, where it points
757 -- to the defining entity for a formal subprogram in the case where the
758 -- renaming corresponds to a generic formal subprogram association in an
759 -- instantiation. The field is Empty if the renaming does not correspond
760 -- to such a formal association.
762 -- Corresponding_Generic_Association (Node5-Sem)
763 -- This field is defined for object declarations and object renaming
764 -- declarations. It is set for the declarations within an instance that
765 -- map generic formals to their actuals. If set, the field points to
766 -- a generic_association which is the original parent of the expression
767 -- or name appearing in the declaration. This simplifies ASIS queries.
769 -- Corresponding_Integer_Value (Uint4-Sem)
770 -- This field is set in real literals of fixed-point types (it is not
771 -- used for floating-point types). It contains the integer value used
772 -- to represent the fixed-point value. It is also set on the universal
773 -- real literals used to represent bounds of fixed-point base types
774 -- and their first named subtypes.
776 -- Corresponding_Spec (Node5-Sem)
777 -- This field is set in subprogram, package, task, and protected body
778 -- nodes, where it points to the defining entity in the corresponding
779 -- spec. The attribute is also set in N_With_Clause nodes where it points
780 -- to the defining entity for the with'ed spec, and in a subprogram
781 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
782 -- if there is no corresponding spec, as in the case of a subprogram body
783 -- that serves as its own spec.
785 -- Corresponding_Stub (Node3-Sem)
786 -- This field is present in an N_Subunit node. It holds the node in
787 -- the parent unit that is the stub declaration for the subunit. It is
788 -- set when analysis of the stub forces loading of the proper body. If
789 -- expansion of the proper body creates new declarative nodes, they are
790 -- inserted at the point of the corresponding_stub.
792 -- Dcheck_Function (Node5-Sem)
793 -- This field is present in an N_Variant node, It references the entity
794 -- for the discriminant checking function for the variant.
796 -- Debug_Statement (Node3)
797 -- This field is present in an N_Pragma node. It is used only for a Debug
798 -- pragma. The parameter is of the form of an expression, as required by
799 -- the pragma syntax, but is actually a procedure call. To simplify
800 -- semantic processing, the parser creates a copy of the argument
801 -- rearranged into a procedure call statement and places it in the
802 -- Debug_Statement field. Note that this field is considered syntactic
803 -- field, since it is created by the parser.
805 -- Default_Expression (Node5-Sem)
806 -- This field is Empty if there is no default expression. If there is a
807 -- simple default expression (one with no side effects), then this field
808 -- simply contains a copy of the Expression field (both point to the tree
809 -- for the default expression). Default_Expression is used for
810 -- conformance checking.
812 -- Default_Storage_Pool (Node3-Sem)
813 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
814 -- copy of Opt.Default_Pool at the end of the compilation unit. See
815 -- package Opt for details. This is used for inheriting the
816 -- Default_Storage_Pool in child units.
818 -- Discr_Check_Funcs_Built (Flag11-Sem)
819 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
820 -- discriminant checking functions are constructed. The purpose is to
821 -- avoid attempting to set these functions more than once.
823 -- Do_Accessibility_Check (Flag13-Sem)
824 -- This flag is set on N_Parameter_Specification nodes to indicate
825 -- that an accessibility check is required for the parameter. It is
826 -- not yet decided who takes care of this check (TBD ???).
828 -- Do_Discriminant_Check (Flag13-Sem)
829 -- This flag is set on N_Selected_Component nodes to indicate that a
830 -- discriminant check is required using the discriminant check routine
831 -- associated with the selector. The actual check is generated by the
832 -- expander when processing selected components.
834 -- Do_Division_Check (Flag13-Sem)
835 -- This flag is set on a division operator (/ mod rem) to indicate
836 -- that a zero divide check is required. The actual check is dealt
837 -- with by the backend (all the front end does is to set the flag).
839 -- Do_Length_Check (Flag4-Sem)
840 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
841 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
842 -- is required. It is not determined who deals with this flag (???).
844 -- Do_Overflow_Check (Flag17-Sem)
845 -- This flag is set on an operator where an overflow check is required on
846 -- the operation. The actual check is dealt with by the backend (all the
847 -- front end does is to set the flag). The other cases where this flag is
848 -- used is on a Type_Conversion node and for attribute reference nodes.
849 -- For a type conversion, it means that the conversion is from one base
850 -- type to another, and the value may not fit in the target base type.
851 -- See also the description of Do_Range_Check for this case. The only
852 -- attribute references which use this flag are Pred and Succ, where it
853 -- means that the result should be checked for going outside the base
854 -- range. Note that this flag is not set for modular types.
856 -- Do_Range_Check (Flag9-Sem)
857 -- This flag is set on an expression which appears in a context where a
858 -- range check is required. The target type is clear from the context.
859 -- The contexts in which this flag can appear are the following:
861 -- Right side of an assignment. In this case the target type is
862 -- taken from the left side of the assignment, which is referenced
863 -- by the Name of the N_Assignment_Statement node.
865 -- Subscript expressions in an indexed component. In this case the
866 -- target type is determined from the type of the array, which is
867 -- referenced by the Prefix of the N_Indexed_Component node.
869 -- Argument expression for a parameter, appearing either directly in
870 -- the Parameter_Associations list of a call or as the Expression of an
871 -- N_Parameter_Association node that appears in this list. In either
872 -- case, the check is against the type of the formal. Note that the
873 -- flag is relevant only in IN and IN OUT parameters, and will be
874 -- ignored for OUT parameters, where no check is required in the call,
875 -- and if a check is required on the return, it is generated explicitly
876 -- with a type conversion.
878 -- Initialization expression for the initial value in an object
879 -- declaration. In this case the Do_Range_Check flag is set on
880 -- the initialization expression, and the check is against the
881 -- range of the type of the object being declared.
883 -- The expression of a type conversion. In this case the range check is
884 -- against the target type of the conversion. See also the use of
885 -- Do_Overflow_Check on a type conversion. The distinction is that the
886 -- overflow check protects against a value that is outside the range of
887 -- the target base type, whereas a range check checks that the
888 -- resulting value (which is a value of the base type of the target
889 -- type), satisfies the range constraint of the target type.
891 -- Note: when a range check is required in contexts other than those
892 -- listed above (e.g. in a return statement), an additional type
893 -- conversion node is introduced to represent the required check.
895 -- Do_Storage_Check (Flag17-Sem)
896 -- This flag is set in an N_Allocator node to indicate that a storage
897 -- check is required for the allocation, or in an N_Subprogram_Body node
898 -- to indicate that a stack check is required in the subprogram prolog.
899 -- The N_Allocator case is handled by the routine that expands the call
900 -- to the runtime routine. The N_Subprogram_Body case is handled by the
901 -- backend, and all the semantics does is set the flag.
903 -- Do_Tag_Check (Flag13-Sem)
904 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
905 -- N_Procedure_Call_Statement, N_Type_Conversion,
906 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
907 -- node to indicate that the tag check can be suppressed. It is not
908 -- yet decided how this flag is used (TBD ???).
910 -- Elaborate_Present (Flag4-Sem)
911 -- This flag is set in the N_With_Clause node to indicate that pragma
912 -- Elaborate pragma appears for the with'ed units.
914 -- Elaborate_All_Desirable (Flag9-Sem)
915 -- This flag is set in the N_With_Clause mode to indicate that the static
916 -- elaboration processing has determined that an Elaborate_All pragma is
917 -- desirable for correct elaboration for this unit.
919 -- Elaborate_All_Present (Flag14-Sem)
920 -- This flag is set in the N_With_Clause node to indicate that a
921 -- pragma Elaborate_All pragma appears for the with'ed units.
923 -- Elaborate_Desirable (Flag11-Sem)
924 -- This flag is set in the N_With_Clause mode to indicate that the static
925 -- elaboration processing has determined that an Elaborate pragma is
926 -- desirable for correct elaboration for this unit.
928 -- Elaboration_Boolean (Node2-Sem)
929 -- This field is present in function and procedure specification nodes.
930 -- If set, it points to the entity for a Boolean flag that must be tested
931 -- for certain calls to check for access before elaboration. See body of
932 -- Sem_Elab for further details. This field is Empty if no elaboration
933 -- boolean is required.
935 -- Else_Actions (List3-Sem)
936 -- This field is present in conditional expression nodes. During code
937 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
938 -- actions at an appropriate place in the tree to get elaborated at the
939 -- right time. For conditional expressions, we have to be sure that the
940 -- actions for the Else branch are only elaborated if the condition is
941 -- False. The Else_Actions field is used as a temporary parking place for
942 -- these actions. The final tree is always rewritten to eliminate the
943 -- need for this field, so in the tree passed to Gigi, this field is
944 -- always set to No_List.
946 -- Enclosing_Variant (Node2-Sem)
947 -- This field is present in the N_Variant node and identifies the Node_Id
948 -- corresponding to the immediately enclosing variant when the variant is
949 -- nested, and N_Empty otherwise. Set during semantic processing of the
950 -- variant part of a record type.
952 -- Entity (Node4-Sem)
953 -- Appears in all direct names (identifiers, character literals, and
954 -- operator symbols), as well as expanded names, and attributes that
955 -- denote entities, such as 'Class. Points to entity for corresponding
956 -- defining occurrence. Set after name resolution. For identifiers in a
957 -- WITH list, the corresponding defining occurrence is in a separately
958 -- compiled file, and Entity must be set by the library Load procedure.
960 -- Note: During name resolution, the value in Entity may be temporarily
961 -- incorrect (e.g. during overload resolution, Entity is initially set to
962 -- the first possible correct interpretation, and then later modified if
963 -- necessary to contain the correct value after resolution).
965 -- Note: This field overlaps Associated_Node, which is used during
966 -- generic processing (see Sem_Ch12 for details). Note also that in
967 -- generic templates, this means that the Entity field does not always
968 -- point to an Entity. Since the back end is expected to ignore generic
969 -- templates, this is harmless.
971 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
972 -- It is used only for stream attributes definition clauses. In this
973 -- case, it denotes a (possibly dummy) subprogram entity that is declared
974 -- conceptually at the point of the clause. Thus the visibility of the
975 -- attribute definition clause (in the sense of 8.3(23) as amended by
976 -- AI-195) can be checked by testing the visibility of that subprogram.
978 -- Note: Normally the Entity field of an identifier points to the entity
979 -- for the corresponding defining identifier, and hence the Chars field
980 -- of an identifier will match the Chars field of the entity. However,
981 -- there is no requirement that these match, and there are obscure cases
982 -- of generated code where they do not match.
984 -- Entity_Or_Associated_Node (Node4-Sem)
985 -- A synonym for both Entity and Associated_Node. Used by convention in
986 -- the code when referencing this field in cases where it is not known
987 -- whether the field contains an Entity or an Associated_Node.
990 -- Appears in all expression nodes, all direct names, and all entities.
991 -- Points to the entity for the related type. Set after type resolution.
992 -- Normally this is the actual subtype of the expression. However, in
993 -- certain contexts such as the right side of an assignment, subscripts,
994 -- arguments to calls, returned value in a function, initial value etc.
995 -- it is the desired target type. In the event that this is different
996 -- from the actual type, the Do_Range_Check flag will be set if a range
997 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
998 -- points to an essentially arbitrary choice from the possible set of
1001 -- Exception_Junk (Flag8-Sem)
1002 -- This flag is set in a various nodes appearing in a statement sequence
1003 -- to indicate that the corresponding node is an artifact of the
1004 -- generated code for exception handling, and should be ignored when
1005 -- analyzing the control flow of the relevant sequence of statements
1006 -- (e.g. to check that it does not end with a bad return statement).
1008 -- Exception_Label (Node5-Sem)
1009 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1010 -- to be used for transforming the corresponding exception into a goto,
1011 -- or contains Empty, if this exception is not to be transformed. Also
1012 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1013 -- that there may be a local raise for the handler, so that expansion
1014 -- to allow a goto is required (and this field contains the label for
1015 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1017 -- Expansion_Delayed (Flag11-Sem)
1018 -- Set on aggregates and extension aggregates that need a top-down rather
1019 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1020 -- up. For nested aggregates the expansion is delayed until the enclosing
1021 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1022 -- delay it we set this flag. This is done to avoid creating a temporary
1023 -- for each level of a nested aggregates, and also to prevent the
1024 -- premature generation of constraint checks. This is also a requirement
1025 -- if we want to generate the proper attachment to the internal
1026 -- finalization lists (for record with controlled components). Top down
1027 -- expansion of aggregates is also used for in-place array aggregate
1028 -- assignment or initialization. When the full context is known, the
1029 -- target of the assignment or initialization is used to generate the
1030 -- left-hand side of individual assignment to each sub-component.
1032 -- First_Inlined_Subprogram (Node3-Sem)
1033 -- Present in the N_Compilation_Unit node for the main program. Points
1034 -- to a chain of entities for subprograms that are to be inlined. The
1035 -- Next_Inlined_Subprogram field of these entities is used as a link
1036 -- pointer with Empty marking the end of the list. This field is Empty
1037 -- if there are no inlined subprograms or inlining is not active.
1039 -- First_Named_Actual (Node4-Sem)
1040 -- Present in procedure call statement and function call nodes, and also
1041 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1042 -- named parameter where parameters are ordered by declaration order (as
1043 -- opposed to the actual order in the call which may be different due to
1044 -- named associations). Note: this field points to the explicit actual
1045 -- parameter itself, not the N_Parameter_Association node (its parent).
1047 -- First_Real_Statement (Node2-Sem)
1048 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1049 -- Empty. Used only when declarations are moved into the statement part
1050 -- of a construct as a result of wrapping an AT END handler that is
1051 -- required to cover the declarations. In this case, this field is used
1052 -- to remember the location in the statements list of the first real
1053 -- statement, i.e. the statement that used to be first in the statement
1054 -- list before the declarations were prepended.
1056 -- First_Subtype_Link (Node5-Sem)
1057 -- Present in N_Freeze_Entity node for an anonymous base type that is
1058 -- implicitly created by the declaration of a first subtype. It points
1059 -- to the entity for the first subtype.
1061 -- Float_Truncate (Flag11-Sem)
1062 -- A flag present in type conversion nodes. This is used for float to
1063 -- integer conversions where truncation is required rather than rounding.
1064 -- Note that Gigi does not handle type conversions from real to integer
1065 -- with rounding (see Expand_N_Type_Conversion).
1067 -- Forwards_OK (Flag5-Sem)
1068 -- A flag present in the N_Assignment_Statement node. It is used only
1069 -- if the type being assigned is an array type, and is set if analysis
1070 -- determines that it is definitely safe to do the copy forwards, i.e.
1071 -- starting at the lowest addressed element. This is the case if either
1072 -- the operands do not overlap, or they may overlap, but if they do,
1073 -- then the left operand is at a lower address than the right operand.
1075 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1076 -- means that the front end could not determine that either direction is
1077 -- definitely safe, and a runtime check may be required if the backend
1078 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1079 -- set, it means that the front end can assure no overlap of operands.
1081 -- From_Aspect_Specification (Flag13-Sem)
1082 -- Processing of aspect specifications typically results in insertion in
1083 -- the tree of corresponding pragma or attribute definition clause nodes.
1084 -- These generated nodes have the From_Aspect_Specification flag set to
1085 -- indicate that they came from aspect specifications originally.
1087 -- From_At_End (Flag4-Sem)
1088 -- This flag is set on an N_Raise_Statement node if it corresponds to
1089 -- the reraise statement generated as the last statement of an AT END
1090 -- handler when SJLJ exception handling is active. It is used to stop
1091 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1092 -- because if the restriction is set, the reraise is not generated.
1094 -- From_At_Mod (Flag4-Sem)
1095 -- This flag is set on the attribute definition clause node that is
1096 -- generated by a transformation of an at mod phrase in a record
1097 -- representation clause. This is used to give slightly different (Ada 83
1098 -- compatible) semantics to such a clause, namely it is used to specify a
1099 -- minimum acceptable alignment for the base type and all subtypes. In
1100 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1101 -- must be a multiple of the given value, and the representation clause
1102 -- is considered to be type specific instead of subtype specific.
1104 -- From_Default (Flag6-Sem)
1105 -- This flag is set on the subprogram renaming declaration created in an
1106 -- instance for a formal subprogram, when the formal is declared with a
1107 -- box, and there is no explicit actual. If the flag is present, the
1108 -- declaration is treated as an implicit reference to the formal in the
1111 -- Generic_Parent (Node5-Sem)
1112 -- Generic_Parent is defined on declaration nodes that are instances. The
1113 -- value of Generic_Parent is the generic entity from which the instance
1114 -- is obtained. Generic_Parent is also defined for the renaming
1115 -- declarations and object declarations created for the actuals in an
1116 -- instantiation. The generic parent of such a declaration is the
1117 -- corresponding generic association in the Instantiation node.
1119 -- Generic_Parent_Type (Node4-Sem)
1120 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1121 -- actuals of formal private and derived types. Within the instance, the
1122 -- operations on the actual are those inherited from the parent. For a
1123 -- formal private type, the parent type is the generic type itself. The
1124 -- Generic_Parent_Type is also used in an instance to determine whether a
1125 -- private operation overrides an inherited one.
1127 -- Handler_List_Entry (Node2-Sem)
1128 -- This field is present in N_Object_Declaration nodes. It is set only
1129 -- for the Handler_Record entry generated for an exception in zero cost
1130 -- exception handling mode. It references the corresponding item in the
1131 -- handler list, and is used to delete this entry if the corresponding
1132 -- handler is deleted during optimization. For further details on why
1133 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1135 -- Has_No_Elaboration_Code (Flag17-Sem)
1136 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1137 -- or not elaboration code is present for this unit. It is initially set
1138 -- true for subprogram specs and bodies and for all generic units and
1139 -- false for non-generic package specs and bodies. Gigi may set the flag
1140 -- in the non-generic package case if it determines that no elaboration
1141 -- code is generated. Note that this flag is not related to the
1142 -- Is_Preelaborated status, there can be preelaborated packages that
1143 -- generate elaboration code, and non-preelaborated packages which do
1144 -- not generate elaboration code.
1146 -- Has_Pragma_CPU (Flag14-Sem)
1147 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1148 -- flag the presence of a CPU pragma in the declaration sequence (public
1149 -- or private in the task case).
1151 -- Has_Pragma_Suppress_All (Flag14-Sem)
1152 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1153 -- pragma appears anywhere in the unit. This accomodates the rather
1154 -- strange placement rules of other compilers (DEC permits it at the
1155 -- end of a unit, and Rational allows it as a program unit pragma). We
1156 -- allow it anywhere at all, and consider it equivalent to a pragma
1157 -- Suppress (All_Checks) appearing at the start of the configuration
1158 -- pragmas for the unit.
1160 -- Has_Pragma_Priority (Flag6-Sem)
1161 -- A flag present in N_Subprogram_Body, N_Task_Definition and
1162 -- N_Protected_Definition nodes to flag the presence of either a Priority
1163 -- or Interrupt_Priority pragma in the declaration sequence (public or
1164 -- private in the task and protected cases)
1166 -- Has_Private_View (Flag11-Sem)
1167 -- A flag present in generic nodes that have an entity, to indicate that
1168 -- the node has a private type. Used to exchange private and full
1169 -- declarations if the visibility at instantiation is different from the
1170 -- visibility at generic definition.
1172 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1173 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1174 -- flag the presence of a pragma Relative_Deadline.
1176 -- Has_Self_Reference (Flag13-Sem)
1177 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1178 -- of the expressions contains an access attribute reference to the
1179 -- enclosing type. Such a self-reference can only appear in default-
1180 -- initialized aggregate for a record type.
1182 -- Has_Storage_Size_Pragma (Flag5-Sem)
1183 -- A flag present in an N_Task_Definition node to flag the presence of a
1184 -- Storage_Size pragma.
1186 -- Has_Task_Info_Pragma (Flag7-Sem)
1187 -- A flag present in an N_Task_Definition node to flag the presence of a
1188 -- Task_Info pragma. Used to detect duplicate pragmas.
1190 -- Has_Task_Name_Pragma (Flag8-Sem)
1191 -- A flag present in N_Task_Definition nodes to flag the presence of a
1192 -- Task_Name pragma in the declaration sequence for the task.
1194 -- Has_Wide_Character (Flag11-Sem)
1195 -- Present in string literals, set if any wide character (i.e. character
1196 -- code outside the Character range but within Wide_Character range)
1197 -- appears in the string. Used to implement pragma preference rules.
1199 -- Has_Wide_Wide_Character (Flag13-Sem)
1200 -- Present in string literals, set if any wide character (i.e. character
1201 -- code outside the Wide_Character range) appears in the string. Used to
1202 -- implement pragma preference rules.
1204 -- Hidden_By_Use_Clause (Elist4-Sem)
1205 -- An entity list present in use clauses that appear within
1206 -- instantiations. For the resolution of local entities, entities
1207 -- introduced by these use clauses have priority over global ones, and
1208 -- outer entities must be explicitly hidden/restored on exit.
1210 -- Implicit_With (Flag16-Sem)
1211 -- This flag is set in the N_With_Clause node that is implicitly
1212 -- generated for runtime units that are loaded by the expander, and also
1213 -- for package System, if it is loaded implicitly by a use of the
1214 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1217 -- Import_Interface_Present (Flag16-Sem)
1218 -- This flag is set in an Interface or Import pragma if a matching
1219 -- pragma of the other kind is also present. This is used to avoid
1220 -- generating some unwanted error messages.
1222 -- Includes_Infinities (Flag11-Sem)
1223 -- This flag is present in N_Range nodes. It is set for the range of
1224 -- unconstrained float types defined in Standard, which include not only
1225 -- the given range of values, but also legitimately can include infinite
1226 -- values. This flag is false for any float type for which an explicit
1227 -- range is given by the programmer, even if that range is identical to
1228 -- the range for Float.
1230 -- Inherited_Discriminant (Flag13-Sem)
1231 -- This flag is present in N_Component_Association nodes. It indicates
1232 -- that a given component association in an extension aggregate is the
1233 -- value obtained from a constraint on an ancestor. Used to prevent
1234 -- double expansion when the aggregate has expansion delayed.
1236 -- Instance_Spec (Node5-Sem)
1237 -- This field is present in generic instantiation nodes, and also in
1238 -- formal package declaration nodes (formal package declarations are
1239 -- treated in a manner very similar to package instantiations). It points
1240 -- to the node for the spec of the instance, inserted as part of the
1241 -- semantic processing for instantiations in Sem_Ch12.
1243 -- Is_Accessibility_Actual (Flag12-Sem)
1244 -- Present in N_Parameter_Association nodes. True if the parameter is
1245 -- an extra actual that carries the accessibility level of the actual
1246 -- for an access parameter, in a function that dispatches on result and
1247 -- is called in a dispatching context. Used to prevent a formal/actual
1248 -- mismatch when the call is rewritten as a dispatching call.
1250 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1251 -- A flag set in a Block_Statement node to indicate that it is the
1252 -- expansion of an asynchronous entry call. Such a block needs cleanup
1253 -- handler to assure that the call is cancelled.
1255 -- Is_Component_Left_Opnd (Flag13-Sem)
1256 -- Is_Component_Right_Opnd (Flag14-Sem)
1257 -- Present in concatenation nodes, to indicate that the corresponding
1258 -- operand is of the component type of the result. Used in resolving
1259 -- concatenation nodes in instances.
1261 -- Is_Delayed_Aspect (Flag14-Sem)
1262 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1263 -- come from aspect specifications, where the evaluation of the aspect
1264 -- must be delayed to the freeze point.
1266 -- Is_Controlling_Actual (Flag16-Sem)
1267 -- This flag is set on in an expression that is a controlling argument in
1268 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1269 -- details of its use.
1271 -- Is_Dynamic_Coextension (Flag18-Sem)
1272 -- Present in allocator nodes, to indicate that this is an allocator
1273 -- for an access discriminant of a dynamically allocated object. The
1274 -- coextension must be deallocated and finalized at the same time as
1275 -- the enclosing object.
1277 -- Is_Entry_Barrier_Function (Flag8-Sem)
1278 -- This flag is set in an N_Subprogram_Body node which is the expansion
1279 -- of an entry barrier from a protected entry body. It is used for the
1280 -- circuitry checking for incorrect use of Current_Task.
1282 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1283 -- This flag is set in an N_Function_Call node to indicate that the extra
1284 -- actuals to support a build-in-place style of call have been added to
1287 -- Is_In_Discriminant_Check (Flag11-Sem)
1288 -- This flag is present in a selected component, and is used to indicate
1289 -- that the reference occurs within a discriminant check. The
1290 -- significance is that optimizations based on assuming that the
1291 -- discriminant check has a correct value cannot be performed in this
1292 -- case (or the discriminant check may be optimized away!)
1294 -- Is_Machine_Number (Flag11-Sem)
1295 -- This flag is set in an N_Real_Literal node to indicate that the value
1296 -- is a machine number. This avoids some unnecessary cases of converting
1297 -- real literals to machine numbers.
1299 -- Is_Null_Loop (Flag16-Sem)
1300 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1301 -- can be determined to be null at compile time. This is used to remove
1302 -- the loop entirely at expansion time.
1304 -- Is_Overloaded (Flag5-Sem)
1305 -- A flag present in all expression nodes. Used temporarily during
1306 -- overloading determination. The setting of this flag is not relevant
1307 -- once overloading analysis is complete.
1309 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1310 -- A flag present only in N_Op_Expon nodes. It is set when the
1311 -- exponentiation is of the form 2 ** N, where the type of N is an
1312 -- unsigned integral subtype whose size does not exceed the size of
1313 -- Standard_Integer (i.e. a type that can be safely converted to
1314 -- Natural), and the exponentiation appears as the right operand of an
1315 -- integer multiplication or an integer division where the dividend is
1316 -- unsigned. It is also required that overflow checking is off for both
1317 -- the exponentiation and the multiply/divide node. If this set of
1318 -- conditions holds, and the flag is set, then the division or
1319 -- multiplication can be (and is) converted to a shift.
1321 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1322 -- A flag set in a Subprogram_Body block to indicate that it is the
1323 -- implementation of a protected subprogram. Such a body needs cleanup
1324 -- handler to make sure that the associated protected object is unlocked
1325 -- when the subprogram completes.
1327 -- Is_Static_Coextension (Flag14-Sem)
1328 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1329 -- of an object allocated on the stack rather than the heap.
1331 -- Is_Static_Expression (Flag6-Sem)
1332 -- Indicates that an expression is a static expression (RM 4.9). See spec
1333 -- of package Sem_Eval for full details on the use of this flag.
1335 -- Is_Subprogram_Descriptor (Flag16-Sem)
1336 -- Present in N_Object_Declaration, and set only for the object
1337 -- declaration generated for a subprogram descriptor in fast exception
1338 -- mode. See Exp_Ch11 for details of use.
1340 -- Is_Task_Allocation_Block (Flag6-Sem)
1341 -- A flag set in a Block_Statement node to indicate that it is the
1342 -- expansion of a task allocator, or the allocator of an object
1343 -- containing tasks. Such a block requires a cleanup handler to call
1344 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1345 -- allocated but not activated when the allocator completes abnormally.
1347 -- Is_Task_Master (Flag5-Sem)
1348 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1349 -- indicate that the construct is a task master (i.e. has declared tasks
1350 -- or declares an access to a task type).
1352 -- Itype (Node1-Sem)
1353 -- Used in N_Itype_Reference node to reference an itype for which it is
1354 -- important to ensure that it is defined. See description of this node
1355 -- for further details.
1357 -- Kill_Range_Check (Flag11-Sem)
1358 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1359 -- result should not be subjected to range checks. This is used for the
1360 -- implementation of Normalize_Scalars.
1362 -- Label_Construct (Node2-Sem)
1363 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1364 -- N_Block_Statement or N_Loop_Statement node to which the label
1365 -- declaration applies. This is not currently used in the compiler
1366 -- itself, but it is useful in the implementation of ASIS queries.
1367 -- This field is left empty for the special labels generated as part
1368 -- of expanding raise statements with a local exception handler.
1370 -- Library_Unit (Node4-Sem)
1371 -- In a stub node, Library_Unit points to the compilation unit node of
1372 -- the corresponding subunit.
1374 -- In a with clause node, Library_Unit points to the spec of the with'ed
1377 -- In a compilation unit node, the usage depends on the unit type:
1379 -- For a library unit body, Library_Unit points to the compilation unit
1380 -- node of the corresponding spec, unless it's a subprogram body with
1381 -- Acts_As_Spec set, in which case it points to itself.
1383 -- For a spec, Library_Unit points to the compilation unit node of the
1384 -- corresponding body, if present. The body will be present if the spec
1385 -- is or contains generics that we needed to instantiate. Similarly, the
1386 -- body will be present if we needed it for inlining purposes. Thus, if
1387 -- we have a spec/body pair, both of which are present, they point to
1388 -- each other via Library_Unit.
1390 -- For a subunit, Library_Unit points to the compilation unit node of
1393 -- Note that this field is not used to hold the parent pointer for child
1394 -- unit (which might in any case need to use it for some other purpose as
1395 -- described above). Instead for a child unit, implicit with's are
1396 -- generated for all parents.
1398 -- Local_Raise_Statements (Elist1)
1399 -- This field is present in exception handler nodes. It is set to
1400 -- No_Elist in the normal case. If there is at least one raise statement
1401 -- which can potentially be handled as a local raise, then this field
1402 -- points to a list of raise nodes, which are calls to a routine to raise
1403 -- an exception. These are raise nodes which can be optimized into gotos
1404 -- if the handler turns out to meet the conditions which permit this
1405 -- transformation. Note that this does NOT include instances of the
1406 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1407 -- handled by the back end (using the N_Push/N_Pop mechanism).
1409 -- Loop_Actions (List2-Sem)
1410 -- A list present in Component_Association nodes in array aggregates.
1411 -- Used to collect actions that must be executed within the loop because
1412 -- they may need to be evaluated anew each time through.
1414 -- Limited_View_Installed (Flag18-Sem)
1415 -- Present in With_Clauses and in package specifications. If set on
1416 -- with_clause, it indicates that this clause has created the current
1417 -- limited view of the designated package. On a package specification, it
1418 -- indicates that the limited view has already been created because the
1419 -- package is mentioned in a limited_with_clause in the closure of the
1420 -- unit being compiled.
1422 -- Local_Raise_Not_OK (Flag7-Sem)
1423 -- Present in N_Exception_Handler nodes. Set if the handler contains
1424 -- a construct (reraise statement, or call to subprogram in package
1425 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1426 -- for a local raise (one that could otherwise be converted to a goto).
1428 -- Must_Be_Byte_Aligned (Flag14-Sem)
1429 -- This flag is present in N_Attribute_Reference nodes. It can be set
1430 -- only for the Address and Unrestricted_Access attributes. If set it
1431 -- means that the object for which the address/access is given must be on
1432 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1433 -- of the object is to be made before taking the address (this copy is in
1434 -- the current scope on the stack frame). This is used for certain cases
1435 -- of code generated by the expander that passes parameters by address.
1437 -- The reason the copy is not made by the front end is that the back end
1438 -- has more information about type layout and may be able to (but is not
1439 -- guaranteed to) prevent making unnecessary copies.
1441 -- Must_Not_Freeze (Flag8-Sem)
1442 -- A flag present in all expression nodes. Normally expressions cause
1443 -- freezing as described in the RM. If this flag is set, then this is
1444 -- inhibited. This is used by the analyzer and expander to label nodes
1445 -- that are created by semantic analysis or expansion and which must not
1446 -- cause freezing even though they normally would. This flag is also
1447 -- present in an N_Subtype_Indication node, since we also use these in
1448 -- calls to Freeze_Expression.
1450 -- Next_Entity (Node2-Sem)
1451 -- Present in defining identifiers, defining character literals and
1452 -- defining operator symbols (i.e. in all entities). The entities of a
1453 -- scope are chained, and this field is used as the forward pointer for
1454 -- this list. See Einfo for further details.
1456 -- Next_Exit_Statement (Node3-Sem)
1457 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1458 -- chained (in reverse order of appearence) from the First_Exit_Statement
1459 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1460 -- the next entry on this chain (Empty = end of list).
1462 -- Next_Implicit_With (Node3-Sem)
1463 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1464 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1465 -- to prevent multiple with_clauses for the same unit in a given context.
1466 -- A postorder traversal of the tree whose nodes are units and whose
1467 -- links are with_clauses defines the order in which Inspector must
1468 -- examine a compiled unit and its full context. This ordering ensures
1469 -- that any subprogram call is examined after the subprogram declartion
1472 -- Next_Named_Actual (Node4-Sem)
1473 -- Present in parameter association node. Set during semantic analysis to
1474 -- point to the next named parameter, where parameters are ordered by
1475 -- declaration order (as opposed to the actual order in the call, which
1476 -- may be different due to named associations). Not that this field
1477 -- points to the explicit actual parameter itself, not to the
1478 -- N_Parameter_Association node (its parent).
1480 -- Next_Pragma (Node1-Sem)
1481 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1482 -- nodes. Currently used for two purposes:
1484 -- Create a list of linked Check_Policy pragmas. The head of this list
1485 -- is stored in Opt.Check_Policy_List (which has further details).
1487 -- Used by processing for Pre/Postcondition pragmas to store a list of
1488 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1491 -- Next_Rep_Item (Node5-Sem)
1492 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1493 -- clauses, record rep clauses, aspect specification nodes. Used to link
1494 -- representation items that apply to an entity. See full description of
1495 -- First_Rep_Item field in Einfo for further details.
1497 -- Next_Use_Clause (Node3-Sem)
1498 -- While use clauses are active during semantic processing, they are
1499 -- chained from the scope stack entry, using Next_Use_Clause as a link
1500 -- pointer, with Empty marking the end of the list. The head pointer is
1501 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1502 -- processing (i.e. when Gigi sees the tree, the contents of this field
1503 -- is undefined and should not be read).
1505 -- No_Ctrl_Actions (Flag7-Sem)
1506 -- Present in N_Assignment_Statement to indicate that no finalize nor
1507 -- adjust should take place on this assignment even though the rhs is
1508 -- controlled. This is used in init procs and aggregate expansions where
1509 -- the generated assignments are more initialisations than real
1512 -- No_Elaboration_Check (Flag14-Sem)
1513 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1514 -- that no elaboration check is needed on the call, because it appears in
1515 -- the context of a local Suppress pragma. This is used on calls within
1516 -- task bodies, where the actual elaboration checks are applied after
1517 -- analysis, when the local scope stack is not present.
1519 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1520 -- Present in N_With_Clause nodes. Set if the with clause is on the
1521 -- package or subprogram spec where the main unit is the corresponding
1522 -- body, and no entities of the with'ed unit are referenced by the spec
1523 -- (an entity may still be referenced in the body, so this flag is used
1524 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1527 -- No_Initialization (Flag13-Sem)
1528 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1529 -- object must not be initialized (by Initialize or call to an init
1530 -- proc). This is needed for controlled aggregates. When the Object
1531 -- declaration has an expression, this flag means that this expression
1532 -- should not be taken into account (needed for in place initialization
1533 -- with aggregates).
1535 -- No_Truncation (Flag17-Sem)
1536 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1537 -- only if the RM_Size of the source is greater than the RM_Size of the
1538 -- target for scalar operands. Normally in such a case we truncate some
1539 -- higher order bits of the source, and then sign/zero extend the result
1540 -- to form the output value. But if this flag is set, then we do not do
1541 -- any truncation, so for example, if an 8 bit input is converted to 5
1542 -- bit result which is in fact stored in 8 bits, then the high order
1543 -- three bits of the target result will be copied from the source. This
1544 -- is used for properly setting out of range values for use by pragmas
1545 -- Initialize_Scalars and Normalize_Scalars.
1547 -- Of_Present (Flag16)
1548 -- Present in N_Iterator_Specification nodes, to mark the Ada 2012 iterator
1549 -- form over arrays and containers.
1551 -- Original_Discriminant (Node2-Sem)
1552 -- Present in identifiers. Used in references to discriminants that
1553 -- appear in generic units. Because the names of the discriminants may be
1554 -- different in an instance, we use this field to recover the position of
1555 -- the discriminant in the original type, and replace it with the
1556 -- discriminant at the same position in the instantiated type.
1558 -- Original_Entity (Node2-Sem)
1559 -- Present in numeric literals. Used to denote the named number that has
1560 -- been constant-folded into the given literal. If literal is from
1561 -- source, or the result of some other constant-folding operation, then
1562 -- Original_Entity is empty. This field is needed to handle properly
1563 -- named numbers in generic units, where the Associated_Node field
1564 -- interferes with the Entity field, making it impossible to preserve the
1565 -- original entity at the point of instantiation (ASIS problem).
1567 -- Others_Discrete_Choices (List1-Sem)
1568 -- When a case statement or variant is analyzed, the semantic checks
1569 -- determine the actual list of choices that correspond to an others
1570 -- choice. This list is materialized for later use by the expander and
1571 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1572 -- this materialized list of choices, which is in standard format for a
1573 -- list of discrete choices, except that of course it cannot contain an
1574 -- N_Others_Choice entry.
1576 -- Parameter_List_Truncated (Flag17-Sem)
1577 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1578 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1579 -- a result of a First_Optional_Parameter specification in an
1580 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1581 -- The truncation is done by the expander by removing trailing parameters
1582 -- from the argument list, in accordance with the set of rules allowing
1583 -- such parameter removal. In particular, parameters can be removed
1584 -- working from the end of the parameter list backwards up to and
1585 -- including the entry designated by First_Optional_Parameter in the
1586 -- Import pragma. Parameters can be removed if they are implicit and the
1587 -- default value is a known-at-compile-time value, including the use of
1588 -- the Null_Parameter attribute, or if explicit parameter values are
1589 -- present that match the corresponding defaults.
1591 -- Parent_Spec (Node4-Sem)
1592 -- For a library unit that is a child unit spec (package or subprogram
1593 -- declaration, generic declaration or instantiation, or library level
1594 -- rename, this field points to the compilation unit node for the parent
1595 -- package specification. This field is Empty for library bodies (the
1596 -- parent spec in this case can be found from the corresponding spec).
1598 -- Pragma_Enabled (Flag5-Sem)
1599 -- Present in N_Pragma nodes. This flag is relevant only for pragmas
1600 -- Assert, Check, Precondition, and Postcondition. It is true if the
1601 -- check corresponding to the pragma type is enabled at the point where
1602 -- the pragma appears.
1604 -- Present_Expr (Uint3-Sem)
1605 -- Present in an N_Variant node. This has a meaningful value only after
1606 -- Gigi has back annotated the tree with representation information. At
1607 -- this point, it contains a reference to a gcc expression that depends
1608 -- on the values of one or more discriminants. Give a set of discriminant
1609 -- values, this expression evaluates to False (zero) if variant is not
1610 -- present, and True (non-zero) if it is present. See unit Repinfo for
1611 -- further details on gigi back annotation. This field is used during
1612 -- ASIS processing (data decomposition annex) to determine if a field is
1615 -- Print_In_Hex (Flag13-Sem)
1616 -- Set on an N_Integer_Literal node to indicate that the value should be
1617 -- printed in hexadecimal in the sprint listing. Has no effect on
1618 -- legality or semantics of program, only on the displayed output. This
1619 -- is used to clarify output from the packed array cases.
1621 -- Procedure_To_Call (Node2-Sem)
1622 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1623 -- and N_Extended_Return_Statement nodes. References the entity for the
1624 -- declaration of the procedure to be called to accomplish the required
1625 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1626 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1627 -- allocating the return value), and for the Deallocate procedure in the
1628 -- case of N_Free_Statement.
1630 -- Raises_Constraint_Error (Flag7-Sem)
1631 -- Set on an expression whose evaluation will definitely fail constraint
1632 -- error check. In the case of static expressions, this flag must be set
1633 -- accurately (and if it is set, the expression is typically illegal
1634 -- unless it appears as a non-elaborated branch of a short-circuit form).
1635 -- For a non-static expression, this flag may be set whenever an
1636 -- expression (e.g. an aggregate) is known to raise constraint error. If
1637 -- set, the expression definitely will raise CE if elaborated at runtime.
1638 -- If not set, the expression may or may not raise CE. In other words, on
1639 -- static expressions, the flag is set accurately, on non-static
1640 -- expressions it is set conservatively.
1642 -- Redundant_Use (Flag13-Sem)
1643 -- Present in nodes that can appear as an operand in a use clause or use
1644 -- type clause (identifiers, expanded names, attribute references). Set
1645 -- to indicate that a use is redundant (and therefore need not be undone
1648 -- Renaming_Exception (Node2-Sem)
1649 -- Present in N_Exception_Declaration node. Used to point back to the
1650 -- exception renaming for an exception declared within a subprogram.
1651 -- What happens is that an exception declared in a subprogram is moved
1652 -- to the library level with a unique name, and the original exception
1653 -- becomes a renaming. This link from the library level exception to the
1654 -- renaming declaration allows registering of the proper exception name.
1656 -- Return_Statement_Entity (Node5-Sem)
1657 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1658 -- Points to an E_Return_Statement representing the return statement.
1660 -- Return_Object_Declarations (List3)
1661 -- Present in N_Extended_Return_Statement.
1662 -- Points to a list initially containing a single
1663 -- N_Object_Declaration representing the return object.
1664 -- We use a list (instead of just a pointer to the object decl)
1665 -- because Analyze wants to insert extra actions on this list.
1667 -- Rounded_Result (Flag18-Sem)
1668 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1669 -- Used in the fixed-point cases to indicate that the result must be
1670 -- rounded as a result of the use of the 'Round attribute. Also used for
1671 -- integer N_Op_Divide nodes to indicate that the result should be
1672 -- rounded to the nearest integer (breaking ties away from zero), rather
1673 -- than truncated towards zero as usual. These rounded integer operations
1674 -- are the result of expansion of rounded fixed-point divide, conversion
1675 -- and multiplication operations.
1677 -- SCIL_Entity (Node4-Sem)
1678 -- Present in SCIL nodes. Used to reference the tagged type associated
1679 -- with the SCIL node.
1681 -- SCIL_Controlling_Tag (Node5-Sem)
1682 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the
1683 -- controlling tag of a dispatching call.
1685 -- SCIL_Tag_Value (Node5-Sem)
1686 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1687 -- value that is being tested.
1689 -- SCIL_Target_Prim (Node2-Sem)
1690 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the tagged
1691 -- type primitive associated with the SCIL node.
1693 -- Scope (Node3-Sem)
1694 -- Present in defining identifiers, defining character literals and
1695 -- defining operator symbols (i.e. in all entities). The entities of a
1696 -- scope all use this field to reference the corresponding scope entity.
1697 -- See Einfo for further details.
1699 -- Shift_Count_OK (Flag4-Sem)
1700 -- A flag present in shift nodes to indicate that the shift count is
1701 -- known to be in range, i.e. is in the range from zero to word length
1702 -- minus one. If this flag is not set, then the shift count may be
1703 -- outside this range, i.e. larger than the word length, and the code
1704 -- must ensure that such shift counts give the appropriate result.
1706 -- Source_Type (Node1-Sem)
1707 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1708 -- source type entity for the unchecked conversion instantiation
1709 -- which gigi must do size validation for.
1711 -- Split_PPC (Flag17)
1712 -- When a Pre or Postaspect specification is processed, it is broken
1713 -- into AND THEN sections. The left most section has Split_PPC set to
1714 -- False, indicating that it is the original specification (e.g. for
1715 -- posting errors). For other sections, Split_PPC is set to True.
1716 -- This flag is set in both the N_Aspect_Specification node itself,
1717 -- and in the pragma which is generated from this node.
1719 -- Static_Processing_OK (Flag4-Sem)
1720 -- Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1721 -- flag is set, the full value of the aggregate can be determined at
1722 -- compile time and the aggregate can be passed as is to the back-end.
1723 -- In this event it is irrelevant whether this flag is set or not.
1724 -- However, if the flag Compile_Time_Known_Aggregate is not set but
1725 -- Static_Processing_OK is set, the aggregate can (but need not) be
1726 -- converted into a compile time known aggregate by the expander. See
1727 -- Sem_Aggr for the specific conditions under which an aggregate has its
1728 -- Static_Processing_OK flag set.
1730 -- Storage_Pool (Node1-Sem)
1731 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1732 -- and N_Extended_Return_Statement nodes. References the entity for the
1733 -- storage pool to be used for the allocate or free call or for the
1734 -- allocation of the returned value from function. Empty indicates that
1735 -- the global default pool is to be used. Note that in the case
1736 -- of a return statement, this field is set only if the function returns
1737 -- value of a type whose size is not known at compile time on the
1740 -- Suppress_Loop_Warnings (Flag17-Sem)
1741 -- Used in N_Loop_Statement node to indicate that warnings within the
1742 -- body of the loop should be suppressed. This is set when the range
1743 -- of a FOR loop is known to be null, or is probably null (loop would
1744 -- only execute if invalid values are present).
1746 -- Target_Type (Node2-Sem)
1747 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1748 -- type entity for the unchecked conversion instantiation which gigi must
1749 -- do size validation for.
1751 -- Then_Actions (List3-Sem)
1752 -- This field is present in conditional expression nodes. During code
1753 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1754 -- actions at an appropriate place in the tree to get elaborated at the
1755 -- right time. For conditional expressions, we have to be sure that the
1756 -- actions for the Then branch are only elaborated if the condition is
1757 -- True. The Then_Actions field is used as a temporary parking place for
1758 -- these actions. The final tree is always rewritten to eliminate the
1759 -- need for this field, so in the tree passed to Gigi, this field is
1760 -- always set to No_List.
1762 -- Treat_Fixed_As_Integer (Flag14-Sem)
1763 -- This flag appears in operator nodes for divide, multiply, mod and rem
1764 -- on fixed-point operands. It indicates that the operands are to be
1765 -- treated as integer values, ignoring small values. This flag is only
1766 -- set as a result of expansion of fixed-point operations. Typically a
1767 -- fixed-point multiplication in the source generates subsidiary
1768 -- multiplication and division operations that work with the underlying
1769 -- integer values and have this flag set. Note that this flag is not
1770 -- needed on other arithmetic operations (add, neg, subtract etc.) since
1771 -- in these cases it is always the case that fixed is treated as integer.
1772 -- The Etype field MUST be set if this flag is set. The analyzer knows to
1773 -- leave such nodes alone, and whoever makes them must set the correct
1776 -- TSS_Elist (Elist3-Sem)
1777 -- Present in N_Freeze_Entity nodes. Holds an element list containing
1778 -- entries for each TSS (type support subprogram) associated with the
1779 -- frozen type. The elements of the list are the entities for the
1780 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
1781 -- if there are no type support subprograms for the type or if the freeze
1782 -- node is not for a type.
1784 -- Unreferenced_In_Spec (Flag7-Sem)
1785 -- Present in N_With_Clause nodes. Set if the with clause is on the
1786 -- package or subprogram spec where the main unit is the corresponding
1787 -- body, and is not referenced by the spec (it may still be referenced by
1788 -- the body, so this flag is used to generate the proper message (see
1789 -- Sem_Util.Check_Unused_Withs for details)
1791 -- Was_Originally_Stub (Flag13-Sem)
1792 -- This flag is set in the node for a proper body that replaces stub.
1793 -- During the analysis procedure, stubs in some situations get rewritten
1794 -- by the corresponding bodies, and we set this flag to remember that
1795 -- this happened. Note that it is not good enough to rely on the use of
1796 -- Original_Node here because of the case of nested instantiations where
1797 -- the substituted node can be copied.
1799 -- Withed_Body (Node1-Sem)
1800 -- Present in N_With_Clause nodes. Set if the unit in whose context
1801 -- the with_clause appears instantiates a generic contained in the
1802 -- library unit of the with_clause and as a result loads its body.
1803 -- Used for a more precise unit traversal for CodePeer.
1805 -- Zero_Cost_Handling (Flag5-Sem)
1806 -- This flag is set in all handled sequence of statement and exception
1807 -- handler nodes if exceptions are to be handled using the zero-cost
1808 -- mechanism (see Ada.Exceptions and System.Exceptions in files
1809 -- a-except.ads/adb and s-except.ads for full details). What gigi needs
1810 -- to do for such a handler is simply to put the code in the handler
1811 -- somewhere. The front end has generated all necessary labels.
1813 --------------------------------------------------
1814 -- Note on Use of End_Label and End_Span Fields --
1815 --------------------------------------------------
1817 -- Several constructs have end lines:
1819 -- Loop Statement end loop [loop_IDENTIFIER];
1820 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
1821 -- Task Definition end [task_IDENTIFIER]
1822 -- Protected Definition end [protected_IDENTIFIER]
1823 -- Protected Body end [protected_IDENTIFIER]
1825 -- Block Statement end [block_IDENTIFIER];
1826 -- Subprogram Body end [DESIGNATOR];
1827 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
1828 -- Task Body end [task_IDENTIFIER];
1829 -- Accept Statement end [entry_IDENTIFIER]];
1830 -- Entry Body end [entry_IDENTIFIER];
1832 -- If Statement end if;
1833 -- Case Statement end case;
1835 -- Record Definition end record;
1836 -- Enumeration Definition );
1838 -- The End_Label and End_Span fields are used to mark the locations of
1839 -- these lines, and also keep track of the label in the case where a label
1842 -- For the first group above, the End_Label field of the corresponding node
1843 -- is used to point to the label identifier. In the case where there is no
1844 -- label in the source, the parser supplies a dummy identifier (with
1845 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
1846 -- marks the location of the token following the END token.
1848 -- For the second group, the use of End_Label is similar, but the End_Label
1849 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
1850 -- simply because in some cases there is no room in the parent node.
1852 -- For the third group, there is never any label, and instead of using
1853 -- End_Label, we use the End_Span field which gives the location of the
1854 -- token following END, relative to the starting Sloc of the construct,
1855 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1856 -- following the End_Label.
1858 -- The record definition case is handled specially, we treat it as though
1859 -- it required an optional label which is never present, and so the parser
1860 -- always builds a dummy identifier with Comes From Source set False. The
1861 -- reason we do this, rather than using End_Span in this case, is that we
1862 -- want to generate a cross-ref entry for the end of a record, since it
1863 -- represents a scope for name declaration purposes.
1865 -- The enumeration definition case is handled in an exactly similar manner,
1866 -- building a dummy identifier to get a cross-reference.
1868 -- Note: the reason we store the difference as a Uint, instead of storing
1869 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
1870 -- distinguished from other types of values, and we count on all general
1871 -- use fields being self describing. To make things easier for clients,
1872 -- note that we provide function End_Location, and procedure
1873 -- Set_End_Location to allow access to the logical value (which is the
1874 -- Source_Ptr value for the end token).
1876 ---------------------
1877 -- Syntactic Nodes --
1878 ---------------------
1880 ---------------------
1881 -- 2.3 Identifier --
1882 ---------------------
1884 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1885 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1887 -- An IDENTIFIER shall not be a reserved word
1889 -- In the Ada grammar identifiers are the bottom level tokens which have
1890 -- very few semantics. Actual program identifiers are direct names. If
1891 -- we were being 100% honest with the grammar, then we would have a node
1892 -- called N_Direct_Name which would point to an identifier. However,
1893 -- that's too many extra nodes, so we just use the N_Identifier node
1894 -- directly as a direct name, and it contains the expression fields and
1895 -- Entity field that correspond to its use as a direct name. In those
1896 -- few cases where identifiers appear in contexts where they are not
1897 -- direct names (pragmas, pragma argument associations, attribute
1898 -- references and attribute definition clauses), the Chars field of the
1899 -- node contains the Name_Id for the identifier name.
1901 -- Note: in GNAT, a reserved word can be treated as an identifier in two
1902 -- cases. First, an incorrect use of a reserved word as an identifier is
1903 -- diagnosed and then treated as a normal identifier. Second, an
1904 -- attribute designator of the form of a reserved word (access, delta,
1905 -- digits, range) is treated as an identifier.
1907 -- Note: The set of letters that is permitted in an identifier depends
1908 -- on the character set in use. See package Csets for full details.
1911 -- Sloc points to identifier
1912 -- Chars (Name1) contains the Name_Id for the identifier
1913 -- Entity (Node4-Sem)
1914 -- Associated_Node (Node4-Sem)
1915 -- Original_Discriminant (Node2-Sem)
1916 -- Redundant_Use (Flag13-Sem)
1917 -- Has_Private_View (Flag11-Sem) (set in generic units)
1918 -- plus fields for expression
1920 --------------------------
1921 -- 2.4 Numeric Literal --
1922 --------------------------
1924 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1926 ----------------------------
1927 -- 2.4.1 Decimal Literal --
1928 ----------------------------
1930 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1932 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1934 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1936 -- Decimal literals appear in the tree as either integer literal nodes
1937 -- or real literal nodes, depending on whether a period is present.
1939 -- Note: literal nodes appear as a result of direct use of literals
1940 -- in the source program, and also as the result of evaluating
1941 -- expressions at compile time. In the latter case, it is possible
1942 -- to construct real literals that have no syntactic representation
1943 -- using the standard literal format. Such literals are listed by
1944 -- Sprint using the notation [numerator / denominator].
1946 -- Note: the value of an integer literal node created by the front end
1947 -- is never outside the range of values of the base type. However, it
1948 -- can be the case that the value is outside the range of the
1949 -- particular subtype. This happens in the case of integer overflows
1950 -- with checks suppressed.
1952 -- N_Integer_Literal
1953 -- Sloc points to literal
1954 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1955 -- has been constant-folded into its literal value.
1956 -- Intval (Uint3) contains integer value of literal
1957 -- plus fields for expression
1958 -- Print_In_Hex (Flag13-Sem)
1961 -- Sloc points to literal
1962 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1963 -- has been constant-folded into its literal value.
1964 -- Realval (Ureal3) contains real value of literal
1965 -- Corresponding_Integer_Value (Uint4-Sem)
1966 -- Is_Machine_Number (Flag11-Sem)
1967 -- plus fields for expression
1969 --------------------------
1970 -- 2.4.2 Based Literal --
1971 --------------------------
1973 -- BASED_LITERAL ::=
1974 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1978 -- BASED_NUMERAL ::=
1979 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1981 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1983 -- Based literals appear in the tree as either integer literal nodes
1984 -- or real literal nodes, depending on whether a period is present.
1986 ----------------------------
1987 -- 2.5 Character Literal --
1988 ----------------------------
1990 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1992 -- N_Character_Literal
1993 -- Sloc points to literal
1994 -- Chars (Name1) contains the Name_Id for the identifier
1995 -- Char_Literal_Value (Uint2) contains the literal value
1996 -- Entity (Node4-Sem)
1997 -- Associated_Node (Node4-Sem)
1998 -- Has_Private_View (Flag11-Sem) set in generic units.
1999 -- plus fields for expression
2001 -- Note: the Entity field will be missing (set to Empty) for character
2002 -- literals whose type is Standard.Wide_Character or Standard.Character
2003 -- or a type derived from one of these two. In this case the character
2004 -- literal stands for its own coding. The reason we take this irregular
2005 -- short cut is to avoid the need to build lots of junk defining
2006 -- character literal nodes.
2008 -------------------------
2009 -- 2.6 String Literal --
2010 -------------------------
2012 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2014 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2015 -- single GRAPHIC_CHARACTER other than a quotation mark.
2017 -- Is_Folded_In_Parser is True if the parser created this literal by
2018 -- folding a sequence of "&" operators. For example, if the source code
2019 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2020 -- is set. This flag is needed because the parser doesn't know about
2021 -- visibility, so the folded result might be wrong, and semantic
2022 -- analysis needs to check for that.
2025 -- Sloc points to literal
2026 -- Strval (Str3) contains Id of string value
2027 -- Has_Wide_Character (Flag11-Sem)
2028 -- Has_Wide_Wide_Character (Flag13-Sem)
2029 -- Is_Folded_In_Parser (Flag4)
2030 -- plus fields for expression
2036 -- A COMMENT starts with two adjacent hyphens and extends up to the
2037 -- end of the line. A COMMENT may appear on any line of a program.
2039 -- Comments are skipped by the scanner and do not appear in the tree.
2040 -- It is possible to reconstruct the position of comments with respect
2041 -- to the elements of the tree by using the source position (Sloc)
2042 -- pointers that appear in every tree node.
2048 -- PRAGMA ::= pragma IDENTIFIER
2049 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2051 -- Note that a pragma may appear in the tree anywhere a declaration
2052 -- or a statement may appear, as well as in some other situations
2053 -- which are explicitly documented.
2056 -- Sloc points to PRAGMA
2057 -- Next_Pragma (Node1-Sem)
2058 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2059 -- Debug_Statement (Node3) (set to Empty if not Debug)
2060 -- Pragma_Identifier (Node4)
2061 -- Next_Rep_Item (Node5-Sem)
2062 -- Pragma_Enabled (Flag5-Sem)
2063 -- From_Aspect_Specification (Flag13-Sem)
2064 -- Is_Delayed_Aspect (Flag14-Sem)
2065 -- Import_Interface_Present (Flag16-Sem)
2066 -- Aspect_Cancel (Flag11-Sem)
2067 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2068 -- Class_Present (Flag6) set if from Aspect with 'Class
2070 -- Note: we should have a section on what pragmas are passed on to
2071 -- the back end to be processed. This section should note that pragma
2072 -- Psect_Object is always converted to Common_Object, but there are
2073 -- undoubtedly many other similar notes required ???
2075 -- Note: a utility function Pragma_Name may be applied to pragma nodes
2076 -- to conveniently obtain the Chars field of the Pragma_Identifier.
2078 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2079 -- aspect name, as does the Pragma_Identifier. In this case if the
2080 -- pragma has a local name argument (such as pragma Inline), it is
2081 -- resolved to point to the specific entity affected by the pragma.
2083 --------------------------------------
2084 -- 2.8 Pragma Argument Association --
2085 --------------------------------------
2087 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2088 -- [pragma_argument_IDENTIFIER =>] NAME
2089 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2091 -- N_Pragma_Argument_Association
2092 -- Sloc points to first token in association
2093 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2094 -- Expression (Node3)
2096 ------------------------
2097 -- 2.9 Reserved Word --
2098 ------------------------
2100 -- Reserved words are parsed by the scanner, and returned as the
2101 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2103 ----------------------------
2104 -- 3.1 Basic Declaration --
2105 ----------------------------
2107 -- BASIC_DECLARATION ::=
2108 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2109 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2110 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2111 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2112 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2113 -- | GENERIC_INSTANTIATION
2115 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2116 -- see further description in section on semantic nodes.
2118 -- Also, in the tree that is constructed, a pragma may appear
2119 -- anywhere that a declaration may appear.
2121 ------------------------------
2122 -- 3.1 Defining Identifier --
2123 ------------------------------
2125 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2127 -- A defining identifier is an entity, which has additional fields
2128 -- depending on the setting of the Ekind field. These additional
2129 -- fields are defined (and access subprograms declared) in package
2132 -- Note: N_Defining_Identifier is an extended node whose fields are
2133 -- deliberate layed out to match the layout of fields in an ordinary
2134 -- N_Identifier node allowing for easy alteration of an identifier
2135 -- node into a defining identifier node. For details, see procedure
2136 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2138 -- N_Defining_Identifier
2139 -- Sloc points to identifier
2140 -- Chars (Name1) contains the Name_Id for the identifier
2141 -- Next_Entity (Node2-Sem)
2142 -- Scope (Node3-Sem)
2143 -- Etype (Node5-Sem)
2145 -----------------------------
2146 -- 3.2.1 Type Declaration --
2147 -----------------------------
2149 -- TYPE_DECLARATION ::=
2150 -- FULL_TYPE_DECLARATION
2151 -- | INCOMPLETE_TYPE_DECLARATION
2152 -- | PRIVATE_TYPE_DECLARATION
2153 -- | PRIVATE_EXTENSION_DECLARATION
2155 ----------------------------------
2156 -- 3.2.1 Full Type Declaration --
2157 ----------------------------------
2159 -- FULL_TYPE_DECLARATION ::=
2160 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2161 -- is TYPE_DEFINITION
2162 -- [ASPECT_SPECIFICATIONS];
2164 -- | TASK_TYPE_DECLARATION
2165 -- | PROTECTED_TYPE_DECLARATION
2167 -- The full type declaration node is used only for the first case. The
2168 -- second case (concurrent type declaration), is represented directly
2169 -- by a task type declaration or a protected type declaration.
2171 -- N_Full_Type_Declaration
2172 -- Sloc points to TYPE
2173 -- Defining_Identifier (Node1)
2174 -- Discriminant_Specifications (List4) (set to No_List if none)
2175 -- Type_Definition (Node3)
2176 -- Discr_Check_Funcs_Built (Flag11-Sem)
2178 ----------------------------
2179 -- 3.2.1 Type Definition --
2180 ----------------------------
2182 -- TYPE_DEFINITION ::=
2183 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2184 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2185 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2186 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2188 --------------------------------
2189 -- 3.2.2 Subtype Declaration --
2190 --------------------------------
2192 -- SUBTYPE_DECLARATION ::=
2193 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
2195 -- The subtype indication field is set to Empty for subtypes
2196 -- declared in package Standard (Positive, Natural).
2198 -- N_Subtype_Declaration
2199 -- Sloc points to SUBTYPE
2200 -- Defining_Identifier (Node1)
2201 -- Null_Exclusion_Present (Flag11)
2202 -- Subtype_Indication (Node5)
2203 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2204 -- Exception_Junk (Flag8-Sem)
2206 -------------------------------
2207 -- 3.2.2 Subtype Indication --
2208 -------------------------------
2210 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2212 -- Note: if no constraint is present, the subtype indication appears
2213 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2214 -- node is used only if a constraint is present.
2216 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2217 -- with the null-exclusion part (see AI-231), we had to introduce a new
2218 -- attribute in all the parents of subtype_indication nodes to indicate
2219 -- if the null-exclusion is present.
2221 -- Note: the reason that this node has expression fields is that a
2222 -- subtype indication can appear as an operand of a membership test.
2224 -- N_Subtype_Indication
2225 -- Sloc points to first token of subtype mark
2226 -- Subtype_Mark (Node4)
2227 -- Constraint (Node3)
2228 -- Etype (Node5-Sem)
2229 -- Must_Not_Freeze (Flag8-Sem)
2231 -- Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2232 -- reason for this redundancy is so that in a list of array index types,
2233 -- the Etype can be uniformly accessed to determine the subscript type.
2234 -- This means that no Itype is constructed for the actual subtype that
2235 -- is created by the subtype indication. If such an Itype is required,
2236 -- it is constructed in the context in which the indication appears.
2238 -------------------------
2239 -- 3.2.2 Subtype Mark --
2240 -------------------------
2242 -- SUBTYPE_MARK ::= subtype_NAME
2244 -----------------------
2245 -- 3.2.2 Constraint --
2246 -----------------------
2248 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2250 ------------------------------
2251 -- 3.2.2 Scalar Constraint --
2252 ------------------------------
2254 -- SCALAR_CONSTRAINT ::=
2255 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2257 ---------------------------------
2258 -- 3.2.2 Composite Constraint --
2259 ---------------------------------
2261 -- COMPOSITE_CONSTRAINT ::=
2262 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2264 -------------------------------
2265 -- 3.3.1 Object Declaration --
2266 -------------------------------
2268 -- OBJECT_DECLARATION ::=
2269 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2270 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2271 -- [ASPECT_SPECIFICATIONS];
2272 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2273 -- ACCESS_DEFINITION [:= EXPRESSION]
2274 -- [ASPECT_SPECIFICATIONS];
2275 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2276 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2277 -- [ASPECT_SPECIFICATIONS];
2278 -- | SINGLE_TASK_DECLARATION
2279 -- | SINGLE_PROTECTED_DECLARATION
2281 -- Note: aliased is not permitted in Ada 83 mode
2283 -- The N_Object_Declaration node is only for the first two cases.
2284 -- Single task declaration is handled by P_Task (9.1)
2285 -- Single protected declaration is handled by P_protected (9.5)
2287 -- Although the syntax allows multiple identifiers in the list, the
2288 -- semantics is as though successive declarations were given with
2289 -- identical type definition and expression components. To simplify
2290 -- semantic processing, the parser represents a multiple declaration
2291 -- case as a sequence of single declarations, using the More_Ids and
2292 -- Prev_Ids flags to preserve the original source form as described
2293 -- in the section on "Handling of Defining Identifier Lists".
2295 -- The flag Has_Init_Expression is set if an initializing expression
2296 -- is present. Normally it is set if and only if Expression contains
2297 -- a non-empty value, but there is an exception to this. When the
2298 -- initializing expression is an aggregate which requires explicit
2299 -- assignments, the Expression field gets set to Empty, but this flag
2300 -- is still set, so we don't forget we had an initializing expression.
2302 -- Note: if a range check is required for the initialization
2303 -- expression then the Do_Range_Check flag is set in the Expression,
2304 -- with the check being done against the type given by the object
2305 -- definition, which is also the Etype of the defining identifier.
2307 -- Note: the contents of the Expression field must be ignored (i.e.
2308 -- treated as though it were Empty) if No_Initialization is set True.
2310 -- Note: the back end places some restrictions on the form of the
2311 -- Expression field. If the object being declared is Atomic, then
2312 -- the Expression may not have the form of an aggregate (since this
2313 -- might cause the back end to generate separate assignments). In this
2314 -- case the front end must generate an extra temporary and initialize
2315 -- this temporary as required (the temporary itself is not atomic).
2317 -- Note: there is not node kind for object definition. Instead, the
2318 -- corresponding field holds a subtype indication, an array type
2319 -- definition, or (Ada 2005, AI-406) an access definition.
2321 -- N_Object_Declaration
2322 -- Sloc points to first identifier
2323 -- Defining_Identifier (Node1)
2324 -- Aliased_Present (Flag4) set if ALIASED appears
2325 -- Constant_Present (Flag17) set if CONSTANT appears
2326 -- Null_Exclusion_Present (Flag11)
2327 -- Object_Definition (Node4) subtype indic./array type def./access def.
2328 -- Expression (Node3) (set to Empty if not present)
2329 -- Handler_List_Entry (Node2-Sem)
2330 -- Corresponding_Generic_Association (Node5-Sem)
2331 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2332 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2333 -- No_Initialization (Flag13-Sem)
2334 -- Assignment_OK (Flag15-Sem)
2335 -- Exception_Junk (Flag8-Sem)
2336 -- Is_Subprogram_Descriptor (Flag16-Sem)
2337 -- Has_Init_Expression (Flag14)
2339 -------------------------------------
2340 -- 3.3.1 Defining Identifier List --
2341 -------------------------------------
2343 -- DEFINING_IDENTIFIER_LIST ::=
2344 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2346 -------------------------------
2347 -- 3.3.2 Number Declaration --
2348 -------------------------------
2350 -- NUMBER_DECLARATION ::=
2351 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2353 -- Although the syntax allows multiple identifiers in the list, the
2354 -- semantics is as though successive declarations were given with
2355 -- identical expressions. To simplify semantic processing, the parser
2356 -- represents a multiple declaration case as a sequence of single
2357 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2358 -- the original source form as described in the section on "Handling
2359 -- of Defining Identifier Lists".
2361 -- N_Number_Declaration
2362 -- Sloc points to first identifier
2363 -- Defining_Identifier (Node1)
2364 -- Expression (Node3)
2365 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2366 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2368 ----------------------------------
2369 -- 3.4 Derived Type Definition --
2370 ----------------------------------
2372 -- DERIVED_TYPE_DEFINITION ::=
2373 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2374 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2376 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2379 -- Note: a record extension part is required if ABSTRACT is present
2381 -- N_Derived_Type_Definition
2382 -- Sloc points to NEW
2383 -- Abstract_Present (Flag4)
2384 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2385 -- Subtype_Indication (Node5)
2386 -- Record_Extension_Part (Node3) (set to Empty if not present)
2387 -- Limited_Present (Flag17)
2388 -- Task_Present (Flag5) set in task interfaces
2389 -- Protected_Present (Flag6) set in protected interfaces
2390 -- Synchronized_Present (Flag7) set in interfaces
2391 -- Interface_List (List2) (set to No_List if none)
2392 -- Interface_Present (Flag16) set in abstract interfaces
2394 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2395 -- Interface_List, and Interface_Present are used for abstract
2396 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2398 ---------------------------
2399 -- 3.5 Range Constraint --
2400 ---------------------------
2402 -- RANGE_CONSTRAINT ::= range RANGE
2404 -- N_Range_Constraint
2405 -- Sloc points to RANGE
2406 -- Range_Expression (Node4)
2413 -- RANGE_ATTRIBUTE_REFERENCE
2414 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2416 -- Note: the case of a range given as a range attribute reference
2417 -- appears directly in the tree as an attribute reference.
2419 -- Note: the field name for a reference to a range is Range_Expression
2420 -- rather than Range, because range is a reserved keyword in Ada!
2422 -- Note: the reason that this node has expression fields is that a
2423 -- range can appear as an operand of a membership test. The Etype
2424 -- field is the type of the range (we do NOT construct an implicit
2425 -- subtype to represent the range exactly).
2428 -- Sloc points to ..
2429 -- Low_Bound (Node1)
2430 -- High_Bound (Node2)
2431 -- Includes_Infinities (Flag11)
2432 -- plus fields for expression
2434 -- Note: if the range appears in a context, such as a subtype
2435 -- declaration, where range checks are required on one or both of
2436 -- the expression fields, then type conversion nodes are inserted
2437 -- to represent the required checks.
2439 ----------------------------------------
2440 -- 3.5.1 Enumeration Type Definition --
2441 ----------------------------------------
2443 -- ENUMERATION_TYPE_DEFINITION ::=
2444 -- (ENUMERATION_LITERAL_SPECIFICATION
2445 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2447 -- Note: the Literals field in the node described below is null for
2448 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2449 -- which special processing handles these types as special cases.
2451 -- N_Enumeration_Type_Definition
2452 -- Sloc points to left parenthesis
2453 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2454 -- End_Label (Node4) (set to Empty if internally generated record)
2456 ----------------------------------------------
2457 -- 3.5.1 Enumeration Literal Specification --
2458 ----------------------------------------------
2460 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2461 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2463 ---------------------------------------
2464 -- 3.5.1 Defining Character Literal --
2465 ---------------------------------------
2467 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2469 -- A defining character literal is an entity, which has additional
2470 -- fields depending on the setting of the Ekind field. These
2471 -- additional fields are defined (and access subprograms declared)
2472 -- in package Einfo.
2474 -- Note: N_Defining_Character_Literal is an extended node whose fields
2475 -- are deliberate layed out to match the layout of fields in an ordinary
2476 -- N_Character_Literal node allowing for easy alteration of a character
2477 -- literal node into a defining character literal node. For details, see
2478 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2480 -- N_Defining_Character_Literal
2481 -- Sloc points to literal
2482 -- Chars (Name1) contains the Name_Id for the identifier
2483 -- Next_Entity (Node2-Sem)
2484 -- Scope (Node3-Sem)
2485 -- Etype (Node5-Sem)
2487 ------------------------------------
2488 -- 3.5.4 Integer Type Definition --
2489 ------------------------------------
2491 -- Note: there is an error in this rule in the latest version of the
2492 -- grammar, so we have retained the old rule pending clarification.
2494 -- INTEGER_TYPE_DEFINITION ::=
2495 -- SIGNED_INTEGER_TYPE_DEFINITION
2496 -- | MODULAR_TYPE_DEFINITION
2498 -------------------------------------------
2499 -- 3.5.4 Signed Integer Type Definition --
2500 -------------------------------------------
2502 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2503 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2505 -- Note: the Low_Bound and High_Bound fields are set to Empty
2506 -- for integer types defined in package Standard.
2508 -- N_Signed_Integer_Type_Definition
2509 -- Sloc points to RANGE
2510 -- Low_Bound (Node1)
2511 -- High_Bound (Node2)
2513 ------------------------------------
2514 -- 3.5.4 Modular Type Definition --
2515 ------------------------------------
2517 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2519 -- N_Modular_Type_Definition
2520 -- Sloc points to MOD
2521 -- Expression (Node3)
2523 ---------------------------------
2524 -- 3.5.6 Real Type Definition --
2525 ---------------------------------
2527 -- REAL_TYPE_DEFINITION ::=
2528 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2530 --------------------------------------
2531 -- 3.5.7 Floating Point Definition --
2532 --------------------------------------
2534 -- FLOATING_POINT_DEFINITION ::=
2535 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2537 -- Note: The Digits_Expression and Real_Range_Specifications fields
2538 -- are set to Empty for floating-point types declared in Standard.
2540 -- N_Floating_Point_Definition
2541 -- Sloc points to DIGITS
2542 -- Digits_Expression (Node2)
2543 -- Real_Range_Specification (Node4) (set to Empty if not present)
2545 -------------------------------------
2546 -- 3.5.7 Real Range Specification --
2547 -------------------------------------
2549 -- REAL_RANGE_SPECIFICATION ::=
2550 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2552 -- N_Real_Range_Specification
2553 -- Sloc points to RANGE
2554 -- Low_Bound (Node1)
2555 -- High_Bound (Node2)
2557 -----------------------------------
2558 -- 3.5.9 Fixed Point Definition --
2559 -----------------------------------
2561 -- FIXED_POINT_DEFINITION ::=
2562 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2564 --------------------------------------------
2565 -- 3.5.9 Ordinary Fixed Point Definition --
2566 --------------------------------------------
2568 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2569 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2571 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2573 -- N_Ordinary_Fixed_Point_Definition
2574 -- Sloc points to DELTA
2575 -- Delta_Expression (Node3)
2576 -- Real_Range_Specification (Node4)
2578 -------------------------------------------
2579 -- 3.5.9 Decimal Fixed Point Definition --
2580 -------------------------------------------
2582 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2583 -- delta static_EXPRESSION
2584 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2586 -- Note: decimal types are not permitted in Ada 83 mode
2588 -- N_Decimal_Fixed_Point_Definition
2589 -- Sloc points to DELTA
2590 -- Delta_Expression (Node3)
2591 -- Digits_Expression (Node2)
2592 -- Real_Range_Specification (Node4) (set to Empty if not present)
2594 ------------------------------
2595 -- 3.5.9 Digits Constraint --
2596 ------------------------------
2598 -- DIGITS_CONSTRAINT ::=
2599 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2601 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2602 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2604 -- N_Digits_Constraint
2605 -- Sloc points to DIGITS
2606 -- Digits_Expression (Node2)
2607 -- Range_Constraint (Node4) (set to Empty if not present)
2609 --------------------------------
2610 -- 3.6 Array Type Definition --
2611 --------------------------------
2613 -- ARRAY_TYPE_DEFINITION ::=
2614 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2616 -----------------------------------------
2617 -- 3.6 Unconstrained Array Definition --
2618 -----------------------------------------
2620 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2621 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2622 -- COMPONENT_DEFINITION
2624 -- Note: dimensionality of array is indicated by number of entries in
2625 -- the Subtype_Marks list, which has one entry for each dimension.
2627 -- N_Unconstrained_Array_Definition
2628 -- Sloc points to ARRAY
2629 -- Subtype_Marks (List2)
2630 -- Component_Definition (Node4)
2632 -----------------------------------
2633 -- 3.6 Index Subtype Definition --
2634 -----------------------------------
2636 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2638 -- There is no explicit node in the tree for an index subtype
2639 -- definition since the N_Unconstrained_Array_Definition node
2640 -- incorporates the type marks which appear in this context.
2642 ---------------------------------------
2643 -- 3.6 Constrained Array Definition --
2644 ---------------------------------------
2646 -- CONSTRAINED_ARRAY_DEFINITION ::=
2647 -- array (DISCRETE_SUBTYPE_DEFINITION
2648 -- {, DISCRETE_SUBTYPE_DEFINITION})
2649 -- of COMPONENT_DEFINITION
2651 -- Note: dimensionality of array is indicated by number of entries
2652 -- in the Discrete_Subtype_Definitions list, which has one entry
2653 -- for each dimension.
2655 -- N_Constrained_Array_Definition
2656 -- Sloc points to ARRAY
2657 -- Discrete_Subtype_Definitions (List2)
2658 -- Component_Definition (Node4)
2660 --------------------------------------
2661 -- 3.6 Discrete Subtype Definition --
2662 --------------------------------------
2664 -- DISCRETE_SUBTYPE_DEFINITION ::=
2665 -- discrete_SUBTYPE_INDICATION | RANGE
2667 -------------------------------
2668 -- 3.6 Component Definition --
2669 -------------------------------
2671 -- COMPONENT_DEFINITION ::=
2672 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2674 -- Note: although the syntax does not permit a component definition to
2675 -- be an anonymous array (and the parser will diagnose such an attempt
2676 -- with an appropriate message), it is possible for anonymous arrays
2677 -- to appear as component definitions. The semantics and back end handle
2678 -- this case properly, and the expander in fact generates such cases.
2679 -- Access_Definition is an optional field that gives support to
2680 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2681 -- Subtype_Indication field or else the Access_Definition field.
2683 -- N_Component_Definition
2684 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2685 -- Aliased_Present (Flag4)
2686 -- Null_Exclusion_Present (Flag11)
2687 -- Subtype_Indication (Node5) (set to Empty if not present)
2688 -- Access_Definition (Node3) (set to Empty if not present)
2690 -----------------------------
2691 -- 3.6.1 Index Constraint --
2692 -----------------------------
2694 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2696 -- It is not in general possible to distinguish between discriminant
2697 -- constraints and index constraints at parse time, since a simple
2698 -- name could be either the subtype mark of a discrete range, or an
2699 -- expression in a discriminant association with no name. Either
2700 -- entry appears simply as the name, and the semantic parse must
2701 -- distinguish between the two cases. Thus we use a common tree
2702 -- node format for both of these constraint types.
2704 -- See Discriminant_Constraint for format of node
2706 ---------------------------
2707 -- 3.6.1 Discrete Range --
2708 ---------------------------
2710 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2712 ----------------------------
2713 -- 3.7 Discriminant Part --
2714 ----------------------------
2716 -- DISCRIMINANT_PART ::=
2717 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2719 ------------------------------------
2720 -- 3.7 Unknown Discriminant Part --
2721 ------------------------------------
2723 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2725 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2727 -- There is no explicit node in the tree for an unknown discriminant
2728 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2731 ----------------------------------
2732 -- 3.7 Known Discriminant Part --
2733 ----------------------------------
2735 -- KNOWN_DISCRIMINANT_PART ::=
2736 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2738 -------------------------------------
2739 -- 3.7 Discriminant Specification --
2740 -------------------------------------
2742 -- DISCRIMINANT_SPECIFICATION ::=
2743 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2744 -- [:= DEFAULT_EXPRESSION]
2745 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2746 -- [:= DEFAULT_EXPRESSION]
2748 -- Although the syntax allows multiple identifiers in the list, the
2749 -- semantics is as though successive specifications were given with
2750 -- identical type definition and expression components. To simplify
2751 -- semantic processing, the parser represents a multiple declaration
2752 -- case as a sequence of single specifications, using the More_Ids and
2753 -- Prev_Ids flags to preserve the original source form as described
2754 -- in the section on "Handling of Defining Identifier Lists".
2756 -- N_Discriminant_Specification
2757 -- Sloc points to first identifier
2758 -- Defining_Identifier (Node1)
2759 -- Null_Exclusion_Present (Flag11)
2760 -- Discriminant_Type (Node5) subtype mark or access parameter definition
2761 -- Expression (Node3) (set to Empty if no default expression)
2762 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2763 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2765 -----------------------------
2766 -- 3.7 Default Expression --
2767 -----------------------------
2769 -- DEFAULT_EXPRESSION ::= EXPRESSION
2771 ------------------------------------
2772 -- 3.7.1 Discriminant Constraint --
2773 ------------------------------------
2775 -- DISCRIMINANT_CONSTRAINT ::=
2776 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2778 -- It is not in general possible to distinguish between discriminant
2779 -- constraints and index constraints at parse time, since a simple
2780 -- name could be either the subtype mark of a discrete range, or an
2781 -- expression in a discriminant association with no name. Either
2782 -- entry appears simply as the name, and the semantic parse must
2783 -- distinguish between the two cases. Thus we use a common tree
2784 -- node format for both of these constraint types.
2786 -- N_Index_Or_Discriminant_Constraint
2787 -- Sloc points to left paren
2788 -- Constraints (List1) points to list of discrete ranges or
2789 -- discriminant associations
2791 -------------------------------------
2792 -- 3.7.1 Discriminant Association --
2793 -------------------------------------
2795 -- DISCRIMINANT_ASSOCIATION ::=
2796 -- [discriminant_SELECTOR_NAME
2797 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2799 -- Note: a discriminant association that has no selector name list
2800 -- appears directly as an expression in the tree.
2802 -- N_Discriminant_Association
2803 -- Sloc points to first token of discriminant association
2804 -- Selector_Names (List1) (always non-empty, since if no selector
2805 -- names are present, this node is not used, see comment above)
2806 -- Expression (Node3)
2808 ---------------------------------
2809 -- 3.8 Record Type Definition --
2810 ---------------------------------
2812 -- RECORD_TYPE_DEFINITION ::=
2813 -- [[abstract] tagged] [limited] RECORD_DEFINITION
2815 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2817 -- There is no explicit node in the tree for a record type definition.
2818 -- Instead the flags for Tagged_Present and Limited_Present appear in
2819 -- the N_Record_Definition node for a record definition appearing in
2820 -- the context of a record type definition.
2822 ----------------------------
2823 -- 3.8 Record Definition --
2824 ----------------------------
2826 -- RECORD_DEFINITION ::=
2832 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
2833 -- flags appear only for a record definition appearing in a record
2836 -- Note: the NULL RECORD case is not permitted in Ada 83
2838 -- N_Record_Definition
2839 -- Sloc points to RECORD or NULL
2840 -- End_Label (Node4) (set to Empty if internally generated record)
2841 -- Abstract_Present (Flag4)
2842 -- Tagged_Present (Flag15)
2843 -- Limited_Present (Flag17)
2844 -- Component_List (Node1) empty in null record case
2845 -- Null_Present (Flag13) set in null record case
2846 -- Task_Present (Flag5) set in task interfaces
2847 -- Protected_Present (Flag6) set in protected interfaces
2848 -- Synchronized_Present (Flag7) set in interfaces
2849 -- Interface_Present (Flag16) set in abstract interfaces
2850 -- Interface_List (List2) (set to No_List if none)
2852 -- Note: Task_Present, Protected_Present, Synchronized _Present,
2853 -- Interface_List and Interface_Present are used for abstract
2854 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2856 -------------------------
2857 -- 3.8 Component List --
2858 -------------------------
2860 -- COMPONENT_LIST ::=
2861 -- COMPONENT_ITEM {COMPONENT_ITEM}
2862 -- | {COMPONENT_ITEM} VARIANT_PART
2866 -- Sloc points to first token of component list
2867 -- Component_Items (List3)
2868 -- Variant_Part (Node4) (set to Empty if no variant part)
2869 -- Null_Present (Flag13)
2871 -------------------------
2872 -- 3.8 Component Item --
2873 -------------------------
2875 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2877 -- Note: A component item can also be a pragma, and in the tree
2878 -- that is obtained after semantic processing, a component item
2879 -- can be an N_Null node resulting from a non-recognized pragma.
2881 --------------------------------
2882 -- 3.8 Component Declaration --
2883 --------------------------------
2885 -- COMPONENT_DECLARATION ::=
2886 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2887 -- [:= DEFAULT_EXPRESSION]
2888 -- [ASPECT_SPECIFICATIONS];
2890 -- Note: although the syntax does not permit a component definition to
2891 -- be an anonymous array (and the parser will diagnose such an attempt
2892 -- with an appropriate message), it is possible for anonymous arrays
2893 -- to appear as component definitions. The semantics and back end handle
2894 -- this case properly, and the expander in fact generates such cases.
2896 -- Although the syntax allows multiple identifiers in the list, the
2897 -- semantics is as though successive declarations were given with the
2898 -- same component definition and expression components. To simplify
2899 -- semantic processing, the parser represents a multiple declaration
2900 -- case as a sequence of single declarations, using the More_Ids and
2901 -- Prev_Ids flags to preserve the original source form as described
2902 -- in the section on "Handling of Defining Identifier Lists".
2904 -- N_Component_Declaration
2905 -- Sloc points to first identifier
2906 -- Defining_Identifier (Node1)
2907 -- Component_Definition (Node4)
2908 -- Expression (Node3) (set to Empty if no default expression)
2909 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2910 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2912 -------------------------
2913 -- 3.8.1 Variant Part --
2914 -------------------------
2917 -- case discriminant_DIRECT_NAME is
2922 -- Note: the variants list can contain pragmas as well as variants.
2923 -- In a properly formed program there is at least one variant.
2926 -- Sloc points to CASE
2930 --------------------
2932 --------------------
2935 -- when DISCRETE_CHOICE_LIST =>
2939 -- Sloc points to WHEN
2940 -- Discrete_Choices (List4)
2941 -- Component_List (Node1)
2942 -- Enclosing_Variant (Node2-Sem)
2943 -- Present_Expr (Uint3-Sem)
2944 -- Dcheck_Function (Node5-Sem)
2946 ---------------------------------
2947 -- 3.8.1 Discrete Choice List --
2948 ---------------------------------
2950 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2952 ----------------------------
2953 -- 3.8.1 Discrete Choice --
2954 ----------------------------
2956 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2958 -- Note: in Ada 83 mode, the expression must be a simple expression
2960 -- The only choice that appears explicitly is the OTHERS choice, as
2961 -- defined here. Other cases of discrete choice (expression and
2962 -- discrete range) appear directly. This production is also used
2963 -- for the OTHERS possibility of an exception choice.
2965 -- Note: in accordance with the syntax, the parser does not check that
2966 -- OTHERS appears at the end on its own in a choice list context. This
2967 -- is a semantic check.
2970 -- Sloc points to OTHERS
2971 -- Others_Discrete_Choices (List1-Sem)
2972 -- All_Others (Flag11-Sem)
2974 ----------------------------------
2975 -- 3.9.1 Record Extension Part --
2976 ----------------------------------
2978 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2980 -- Note: record extension parts are not permitted in Ada 83 mode
2982 --------------------------------------
2983 -- 3.9.4 Interface Type Definition --
2984 --------------------------------------
2986 -- INTERFACE_TYPE_DEFINITION ::=
2987 -- [limited | task | protected | synchronized]
2988 -- interface [interface_list]
2990 -- Note: Interfaces are implemented with N_Record_Definition and
2991 -- N_Derived_Type_Definition nodes because most of the support
2992 -- for the analysis of abstract types has been reused to
2993 -- analyze abstract interfaces.
2995 ----------------------------------
2996 -- 3.10 Access Type Definition --
2997 ----------------------------------
2999 -- ACCESS_TYPE_DEFINITION ::=
3000 -- ACCESS_TO_OBJECT_DEFINITION
3001 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3003 --------------------------
3004 -- 3.10 Null Exclusion --
3005 --------------------------
3007 -- NULL_EXCLUSION ::= not null
3009 ---------------------------------------
3010 -- 3.10 Access To Object Definition --
3011 ---------------------------------------
3013 -- ACCESS_TO_OBJECT_DEFINITION ::=
3014 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3015 -- SUBTYPE_INDICATION
3017 -- N_Access_To_Object_Definition
3018 -- Sloc points to ACCESS
3019 -- All_Present (Flag15)
3020 -- Null_Exclusion_Present (Flag11)
3021 -- Subtype_Indication (Node5)
3022 -- Constant_Present (Flag17)
3024 -----------------------------------
3025 -- 3.10 General Access Modifier --
3026 -----------------------------------
3028 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3030 -- Note: general access modifiers are not permitted in Ada 83 mode
3032 -- There is no explicit node in the tree for general access modifier.
3033 -- Instead the All_Present or Constant_Present flags are set in the
3036 -------------------------------------------
3037 -- 3.10 Access To Subprogram Definition --
3038 -------------------------------------------
3040 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3041 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3042 -- | [NULL_EXCLUSION] access [protected] function
3043 -- PARAMETER_AND_RESULT_PROFILE
3045 -- Note: access to subprograms are not permitted in Ada 83 mode
3047 -- N_Access_Function_Definition
3048 -- Sloc points to ACCESS
3049 -- Null_Exclusion_Present (Flag11)
3050 -- Null_Exclusion_In_Return_Present (Flag14)
3051 -- Protected_Present (Flag6)
3052 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3053 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3055 -- N_Access_Procedure_Definition
3056 -- Sloc points to ACCESS
3057 -- Null_Exclusion_Present (Flag11)
3058 -- Protected_Present (Flag6)
3059 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3061 -----------------------------
3062 -- 3.10 Access Definition --
3063 -----------------------------
3065 -- ACCESS_DEFINITION ::=
3066 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3067 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3069 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3071 -- N_Access_Definition
3072 -- Sloc points to ACCESS
3073 -- Null_Exclusion_Present (Flag11)
3074 -- All_Present (Flag15)
3075 -- Constant_Present (Flag17)
3076 -- Subtype_Mark (Node4)
3077 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3079 -----------------------------------------
3080 -- 3.10.1 Incomplete Type Declaration --
3081 -----------------------------------------
3083 -- INCOMPLETE_TYPE_DECLARATION ::=
3084 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3086 -- N_Incomplete_Type_Declaration
3087 -- Sloc points to TYPE
3088 -- Defining_Identifier (Node1)
3089 -- Discriminant_Specifications (List4) (set to No_List if no
3090 -- discriminant part, or if the discriminant part is an
3091 -- unknown discriminant part)
3092 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3093 -- Tagged_Present (Flag15)
3095 ----------------------------
3096 -- 3.11 Declarative Part --
3097 ----------------------------
3099 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3101 -- Note: although the parser enforces the syntactic requirement that
3102 -- a declarative part can contain only declarations, the semantic
3103 -- processing may add statements to the list of actions in a
3104 -- declarative part, so the code generator should be prepared
3105 -- to accept a statement in this position.
3107 ----------------------------
3108 -- 3.11 Declarative Item --
3109 ----------------------------
3111 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3113 ----------------------------------
3114 -- 3.11 Basic Declarative Item --
3115 ----------------------------------
3117 -- BASIC_DECLARATIVE_ITEM ::=
3118 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3124 -- BODY ::= PROPER_BODY | BODY_STUB
3126 -----------------------
3127 -- 3.11 Proper Body --
3128 -----------------------
3131 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3138 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3139 -- | INDEXED_COMPONENT | SLICE
3140 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3141 -- | TYPE_CONVERSION | FUNCTION_CALL
3142 -- | CHARACTER_LITERAL
3144 ----------------------
3145 -- 4.1 Direct Name --
3146 ----------------------
3148 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3154 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3156 -------------------------------
3157 -- 4.1 Explicit Dereference --
3158 -------------------------------
3160 -- EXPLICIT_DEREFERENCE ::= NAME . all
3162 -- N_Explicit_Dereference
3163 -- Sloc points to ALL
3165 -- Actual_Designated_Subtype (Node4-Sem)
3166 -- plus fields for expression
3168 -------------------------------
3169 -- 4.1 Implicit Dereference --
3170 -------------------------------
3172 -- IMPLICIT_DEREFERENCE ::= NAME
3174 ------------------------------
3175 -- 4.1.1 Indexed Component --
3176 ------------------------------
3178 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3180 -- Note: the parser may generate this node in some situations where it
3181 -- should be a function call. The semantic pass must correct this
3182 -- misidentification (which is inevitable at the parser level).
3184 -- N_Indexed_Component
3185 -- Sloc contains a copy of the Sloc value of the Prefix
3187 -- Expressions (List1)
3188 -- plus fields for expression
3190 -- Note: if any of the subscripts requires a range check, then the
3191 -- Do_Range_Check flag is set on the corresponding expression, with
3192 -- the index type being determined from the type of the Prefix, which
3193 -- references the array being indexed.
3195 -- Note: in a fully analyzed and expanded indexed component node, and
3196 -- hence in any such node that gigi sees, if the prefix is an access
3197 -- type, then an explicit dereference operation has been inserted.
3203 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3205 -- Note: an implicit subtype is created to describe the resulting
3206 -- type, so that the bounds of this type are the bounds of the slice.
3209 -- Sloc points to first token of prefix
3211 -- Discrete_Range (Node4)
3212 -- plus fields for expression
3214 -------------------------------
3215 -- 4.1.3 Selected Component --
3216 -------------------------------
3218 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3220 -- Note: selected components that are semantically expanded names get
3221 -- changed during semantic processing into the separate N_Expanded_Name
3222 -- node. See description of this node in the section on semantic nodes.
3224 -- N_Selected_Component
3225 -- Sloc points to period
3227 -- Selector_Name (Node2)
3228 -- Associated_Node (Node4-Sem)
3229 -- Do_Discriminant_Check (Flag13-Sem)
3230 -- Is_In_Discriminant_Check (Flag11-Sem)
3231 -- plus fields for expression
3233 --------------------------
3234 -- 4.1.3 Selector Name --
3235 --------------------------
3237 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3239 --------------------------------
3240 -- 4.1.4 Attribute Reference --
3241 --------------------------------
3243 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3245 -- Note: the syntax is quite ambiguous at this point. Consider:
3247 -- A'Length (X) X is part of the attribute designator
3248 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3249 -- A'Class (X) X is the expression of a type conversion
3251 -- It would be possible for the parser to distinguish these cases
3252 -- by looking at the attribute identifier. However, that would mean
3253 -- more work in introducing new implementation defined attributes,
3254 -- and also it would mean that special processing for attributes
3255 -- would be scattered around, instead of being centralized in the
3256 -- semantic routine that handles an N_Attribute_Reference node.
3257 -- Consequently, the parser in all the above cases stores the
3258 -- expression (X in these examples) as a single element list in
3259 -- in the Expressions field of the N_Attribute_Reference node.
3261 -- Similarly, for attributes like Max which take two arguments,
3262 -- we store the two arguments as a two element list in the
3263 -- Expressions field. Of course it is clear at parse time that
3264 -- this case is really a function call with an attribute as the
3265 -- prefix, but it turns out to be convenient to handle the two
3266 -- argument case in a similar manner to the one argument case,
3267 -- and indeed in general the parser will accept any number of
3268 -- expressions in this position and store them as a list in the
3269 -- attribute reference node. This allows for future addition of
3270 -- attributes that take more than two arguments.
3272 -- Note: named associates are not permitted in function calls where
3273 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3274 -- to skip the normal subprogram argument processing.
3276 -- Note: for the attributes whose designators are technically keywords,
3277 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3278 -- the corresponding name, even though no identifier is involved.
3280 -- Note: the generated code may contain stream attributes applied to
3281 -- limited types for which no stream routines exist officially. In such
3282 -- case, the result is to use the stream attribute for the underlying
3283 -- full type, or in the case of a protected type, the components
3284 -- (including any discriminants) are merely streamed in order.
3286 -- See Exp_Attr for a complete description of which attributes are
3287 -- passed onto Gigi, and which are handled entirely by the front end.
3289 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3290 -- a non-standard enumeration type or a nonzero/zero semantics
3291 -- boolean type, so the value is simply the stored representation.
3293 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3294 -- references a subprogram that is a renaming, then the front end must
3295 -- rewrite the attribute to refer directly to the renamed entity.
3297 -- Note: In generated code, the Address and Unrestricted_Access
3298 -- attributes can be applied to any expression, and the meaning is
3299 -- to create an object containing the value (the object is in the
3300 -- current stack frame), and pass the address of this value. If the
3301 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3302 -- is taken must be on a byte (storage unit) boundary, and if it is
3303 -- not (or may not be), then the generated code must create a copy
3304 -- that is byte aligned, and pass the address of this copy.
3306 -- N_Attribute_Reference
3307 -- Sloc points to apostrophe
3309 -- Attribute_Name (Name2) identifier name from attribute designator
3310 -- Expressions (List1) (set to No_List if no associated expressions)
3311 -- Entity (Node4-Sem) used if the attribute yields a type
3312 -- Associated_Node (Node4-Sem)
3313 -- Do_Overflow_Check (Flag17-Sem)
3314 -- Redundant_Use (Flag13-Sem)
3315 -- Must_Be_Byte_Aligned (Flag14)
3316 -- plus fields for expression
3318 ---------------------------------
3319 -- 4.1.4 Attribute Designator --
3320 ---------------------------------
3322 -- ATTRIBUTE_DESIGNATOR ::=
3323 -- IDENTIFIER [(static_EXPRESSION)]
3324 -- | access | delta | digits
3326 -- There is no explicit node in the tree for an attribute designator.
3327 -- Instead the Attribute_Name and Expressions fields of the parent
3328 -- node (N_Attribute_Reference node) hold the information.
3330 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3331 -- designator, then they are treated as identifiers internally
3332 -- rather than the keywords of the same name.
3334 --------------------------------------
3335 -- 4.1.4 Range Attribute Reference --
3336 --------------------------------------
3338 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3340 -- A range attribute reference is represented in the tree using the
3341 -- normal N_Attribute_Reference node.
3343 ---------------------------------------
3344 -- 4.1.4 Range Attribute Designator --
3345 ---------------------------------------
3347 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3349 -- A range attribute designator is represented in the tree using the
3350 -- normal N_Attribute_Reference node.
3352 --------------------
3354 --------------------
3357 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3359 -----------------------------
3360 -- 4.3.1 Record Aggregate --
3361 -----------------------------
3363 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3366 -- Sloc points to left parenthesis
3367 -- Expressions (List1) (set to No_List if none or null record case)
3368 -- Component_Associations (List2) (set to No_List if none)
3369 -- Null_Record_Present (Flag17)
3370 -- Aggregate_Bounds (Node3-Sem)
3371 -- Associated_Node (Node4-Sem)
3372 -- Static_Processing_OK (Flag4-Sem)
3373 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3374 -- Expansion_Delayed (Flag11-Sem)
3375 -- Has_Self_Reference (Flag13-Sem)
3376 -- plus fields for expression
3378 -- Note: this structure is used for both record and array aggregates
3379 -- since the two cases are not separable by the parser. The parser
3380 -- makes no attempt to enforce consistency here, so it is up to the
3381 -- semantic phase to make sure that the aggregate is consistent (i.e.
3382 -- that it is not a "half-and-half" case that mixes record and array
3383 -- syntax. In particular, for a record aggregate, the expressions
3384 -- field will be set if there are positional associations.
3386 -- Note: N_Aggregate is not used for all aggregates; in particular,
3387 -- there is a separate node kind for extension aggregates.
3389 -- Note: gigi/gcc can handle array aggregates correctly providing that
3390 -- they are entirely positional, and the array subtype involved has a
3391 -- known at compile time length and is not bit packed, or a convention
3392 -- Fortran array with more than one dimension. If these conditions
3393 -- are not met, then the front end must translate the aggregate into
3394 -- an appropriate set of assignments into a temporary.
3396 -- Note: for the record aggregate case, gigi/gcc can handle all cases of
3397 -- record aggregates, including those for packed, and rep-claused
3398 -- records, and also variant records, providing that there are no
3399 -- variable length fields whose size is not known at compile time, and
3400 -- providing that the aggregate is presented in fully named form.
3402 ----------------------------------------------
3403 -- 4.3.1 Record Component Association List --
3404 ----------------------------------------------
3406 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3407 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3410 -- There is no explicit node in the tree for a record component
3411 -- association list. Instead the Null_Record_Present flag is set in
3412 -- the parent node for the NULL RECORD case.
3414 ------------------------------------------------------
3415 -- 4.3.1 Record Component Association (also 4.3.3) --
3416 ------------------------------------------------------
3418 -- RECORD_COMPONENT_ASSOCIATION ::=
3419 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3421 -- N_Component_Association
3422 -- Sloc points to first selector name
3424 -- Loop_Actions (List2-Sem)
3425 -- Expression (Node3)
3426 -- Box_Present (Flag15)
3427 -- Inherited_Discriminant (Flag13)
3429 -- Note: this structure is used for both record component associations
3430 -- and array component associations, since the two cases aren't always
3431 -- separable by the parser. The choices list may represent either a
3432 -- list of selector names in the record aggregate case, or a list of
3433 -- discrete choices in the array aggregate case or an N_Others_Choice
3434 -- node (which appears as a singleton list). Box_Present gives support
3435 -- to Ada 2005 (AI-287).
3437 ----------------------------------
3438 -- 4.3.1 Component Choice List --
3439 ----------------------------------
3441 -- COMPONENT_CHOICE_LIST ::=
3442 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3445 -- The entries of a component choice list appear in the Choices list of
3446 -- the associated N_Component_Association, as either selector names, or
3447 -- as an N_Others_Choice node.
3449 --------------------------------
3450 -- 4.3.2 Extension Aggregate --
3451 --------------------------------
3453 -- EXTENSION_AGGREGATE ::=
3454 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3456 -- Note: extension aggregates are not permitted in Ada 83 mode
3458 -- N_Extension_Aggregate
3459 -- Sloc points to left parenthesis
3460 -- Ancestor_Part (Node3)
3461 -- Associated_Node (Node4-Sem)
3462 -- Expressions (List1) (set to No_List if none or null record case)
3463 -- Component_Associations (List2) (set to No_List if none)
3464 -- Null_Record_Present (Flag17)
3465 -- Expansion_Delayed (Flag11-Sem)
3466 -- Has_Self_Reference (Flag13-Sem)
3467 -- plus fields for expression
3469 --------------------------
3470 -- 4.3.2 Ancestor Part --
3471 --------------------------
3473 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3475 ----------------------------
3476 -- 4.3.3 Array Aggregate --
3477 ----------------------------
3479 -- ARRAY_AGGREGATE ::=
3480 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3482 ---------------------------------------
3483 -- 4.3.3 Positional Array Aggregate --
3484 ---------------------------------------
3486 -- POSITIONAL_ARRAY_AGGREGATE ::=
3487 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3488 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3490 -- See Record_Aggregate (4.3.1) for node structure
3492 ----------------------------------
3493 -- 4.3.3 Named Array Aggregate --
3494 ----------------------------------
3496 -- NAMED_ARRAY_AGGREGATE ::=
3497 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3499 -- See Record_Aggregate (4.3.1) for node structure
3501 ----------------------------------------
3502 -- 4.3.3 Array Component Association --
3503 ----------------------------------------
3505 -- ARRAY_COMPONENT_ASSOCIATION ::=
3506 -- DISCRETE_CHOICE_LIST => EXPRESSION
3508 -- See Record_Component_Association (4.3.1) for node structure
3510 --------------------------------------------------
3511 -- 4.4 Expression/Relation/Term/Factor/Primary --
3512 --------------------------------------------------
3515 -- RELATION {and RELATION} | RELATION {and then RELATION}
3516 -- | RELATION {or RELATION} | RELATION {or else RELATION}
3517 -- | RELATION {xor RELATION}
3520 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3521 -- | SIMPLE_EXPRESSION [not] in RANGE
3522 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3524 -- SIMPLE_EXPRESSION ::=
3525 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3527 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3529 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3531 -- No nodes are generated for any of these constructs. Instead, the
3532 -- node for the operator appears directly. When we refer to an
3533 -- expression in this description, we mean any of the possible
3534 -- constituent components of an expression (e.g. identifier is
3535 -- an example of an expression).
3542 -- NUMERIC_LITERAL | null
3543 -- | STRING_LITERAL | AGGREGATE
3544 -- | NAME | QUALIFIED_EXPRESSION
3545 -- | ALLOCATOR | (EXPRESSION)
3547 -- Usually there is no explicit node in the tree for primary. Instead
3548 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3549 -- exceptions. First, there is an explicit node for a null primary.
3552 -- Sloc points to NULL
3553 -- plus fields for expression
3555 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3556 -- that the parser keep track of which subexpressions are enclosed
3557 -- in parentheses, and how many levels of parentheses are used. This
3558 -- information is required for optimization purposes, and also for
3559 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3560 -- conform with ((((1)))) in the body).
3562 -- The parentheses are recorded by keeping a Paren_Count field in every
3563 -- subexpression node (it is actually present in all nodes, but only
3564 -- used in subexpression nodes). This count records the number of
3565 -- levels of parentheses. If the number of levels in the source exceeds
3566 -- the maximum accommodated by this count, then the count is simply left
3567 -- at the maximum value. This means that there are some pathological
3568 -- cases of failure to detect conformance failures (e.g. an expression
3569 -- with 500 levels of parens will conform with one with 501 levels),
3570 -- but we do not need to lose sleep over this.
3572 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3573 -- type N_Parenthesized_Expression used to accurately record unlimited
3574 -- numbers of levels of parentheses. However, it turned out to be a
3575 -- real nuisance to have to take into account the possible presence of
3576 -- this node during semantic analysis, since basically parentheses have
3577 -- zero relevance to semantic analysis.
3579 -- Note: the level of parentheses always present in things like
3580 -- aggregates does not count, only the parentheses in the primary
3581 -- (EXPRESSION) affect the setting of the Paren_Count field.
3583 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3584 -- treated as though it were Empty) if No_Initialization is set True.
3586 --------------------------------------
3587 -- 4.5 Short Circuit Control Forms --
3588 --------------------------------------
3591 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3593 -- Gigi restriction: For both these control forms, the operand and
3594 -- result types are always Standard.Boolean. The expander inserts the
3595 -- required conversion operations where needed to ensure this is the
3599 -- Sloc points to AND of AND THEN
3600 -- Left_Opnd (Node2)
3601 -- Right_Opnd (Node3)
3602 -- Actions (List1-Sem)
3603 -- plus fields for expression
3606 -- Sloc points to OR of OR ELSE
3607 -- Left_Opnd (Node2)
3608 -- Right_Opnd (Node3)
3609 -- Actions (List1-Sem)
3610 -- plus fields for expression
3612 -- Note: The Actions field is used to hold actions associated with
3613 -- the right hand operand. These have to be treated specially since
3614 -- they are not unconditionally executed. See Insert_Actions for a
3615 -- more detailed description of how these actions are handled.
3617 ---------------------------
3618 -- 4.5 Membership Tests --
3619 ---------------------------
3622 -- SIMPLE_EXPRESSION [not] in RANGE
3623 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3625 -- Note: although the grammar above allows only a range or a subtype
3626 -- mark, the parser in fact will accept any simple expression in place
3627 -- of a subtype mark. This means that the semantic analyzer must be able
3628 -- to deal with, and diagnose a simple expression other than a name for
3629 -- the right operand. This simplifies error recovery in the parser.
3631 -- If extensions are enabled, the grammar is as follows:
3634 -- SIMPLE_EXPRESSION [not] in SET_ALTERNATIVE {| SET_ALTERNATIVE}
3636 -- SET_ALTERNATIVE ::= RANGE | SUBTYPE_MARK
3638 -- The Alternatives field below is present only if there is more than
3639 -- one Set_Alternative present, in which case Right_Opnd is set to
3640 -- Empty, and Alternatives contains the list of alternatives. In the
3641 -- tree passed to the back end, Alternatives is always No_List, and
3642 -- Right_Opnd is set (i.e. the expansion circuitry expands out the
3643 -- complex set membership case using simple membership operations).
3646 -- Sloc points to IN
3647 -- Left_Opnd (Node2)
3648 -- Right_Opnd (Node3)
3649 -- Alternatives (List4) (set to No_List if only one set alternative)
3650 -- plus fields for expression
3653 -- Sloc points to NOT of NOT IN
3654 -- Left_Opnd (Node2)
3655 -- Right_Opnd (Node3)
3656 -- Alternatives (List4) (set to No_List if only one set alternative)
3657 -- plus fields for expression
3659 --------------------
3661 --------------------
3663 -- LOGICAL_OPERATOR ::= and | or | xor
3665 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3667 -- BINARY_ADDING_OPERATOR ::= + | - | &
3669 -- UNARY_ADDING_OPERATOR ::= + | -
3671 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3673 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3675 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3682 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3683 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3684 -- All handling of smalls for multiplication and division is handled
3685 -- by the front end (mod and rem result only from expansion). Gigi
3686 -- thus never needs to worry about small values (for other operators
3687 -- operating on fixed-point, e.g. addition, the small value does not
3688 -- have any semantic effect anyway, these are always integer operations.
3690 -- Gigi restriction: For all operators taking Boolean operands, the
3691 -- type is always Standard.Boolean. The expander inserts the required
3692 -- conversion operations where needed to ensure this is the case.
3695 -- Sloc points to AND
3696 -- Do_Length_Check (Flag4-Sem)
3697 -- plus fields for binary operator
3698 -- plus fields for expression
3701 -- Sloc points to OR
3702 -- Do_Length_Check (Flag4-Sem)
3703 -- plus fields for binary operator
3704 -- plus fields for expression
3707 -- Sloc points to XOR
3708 -- Do_Length_Check (Flag4-Sem)
3709 -- plus fields for binary operator
3710 -- plus fields for expression
3714 -- plus fields for binary operator
3715 -- plus fields for expression
3718 -- Sloc points to /=
3719 -- plus fields for binary operator
3720 -- plus fields for expression
3724 -- plus fields for binary operator
3725 -- plus fields for expression
3728 -- Sloc points to <=
3729 -- plus fields for binary operator
3730 -- plus fields for expression
3734 -- plus fields for binary operator
3735 -- plus fields for expression
3738 -- Sloc points to >=
3739 -- plus fields for binary operator
3740 -- plus fields for expression
3743 -- Sloc points to + (binary)
3744 -- plus fields for binary operator
3745 -- plus fields for expression
3748 -- Sloc points to - (binary)
3749 -- plus fields for binary operator
3750 -- plus fields for expression
3754 -- Is_Component_Left_Opnd (Flag13-Sem)
3755 -- Is_Component_Right_Opnd (Flag14-Sem)
3756 -- plus fields for binary operator
3757 -- plus fields for expression
3761 -- Treat_Fixed_As_Integer (Flag14-Sem)
3762 -- Rounded_Result (Flag18-Sem)
3763 -- plus fields for binary operator
3764 -- plus fields for expression
3768 -- Treat_Fixed_As_Integer (Flag14-Sem)
3769 -- Do_Division_Check (Flag13-Sem)
3770 -- Rounded_Result (Flag18-Sem)
3771 -- plus fields for binary operator
3772 -- plus fields for expression
3775 -- Sloc points to MOD
3776 -- Treat_Fixed_As_Integer (Flag14-Sem)
3777 -- Do_Division_Check (Flag13-Sem)
3778 -- plus fields for binary operator
3779 -- plus fields for expression
3782 -- Sloc points to REM
3783 -- Treat_Fixed_As_Integer (Flag14-Sem)
3784 -- Do_Division_Check (Flag13-Sem)
3785 -- plus fields for binary operator
3786 -- plus fields for expression
3789 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
3790 -- Sloc points to **
3791 -- plus fields for binary operator
3792 -- plus fields for expression
3795 -- Sloc points to + (unary)
3796 -- plus fields for unary operator
3797 -- plus fields for expression
3800 -- Sloc points to - (unary)
3801 -- plus fields for unary operator
3802 -- plus fields for expression
3805 -- Sloc points to ABS
3806 -- plus fields for unary operator
3807 -- plus fields for expression
3810 -- Sloc points to NOT
3811 -- plus fields for unary operator
3812 -- plus fields for expression
3814 -- See also shift operators in section B.2
3816 -- Note on fixed-point operations passed to Gigi: For adding operators,
3817 -- the semantics is to treat these simply as integer operations, with
3818 -- the small values being ignored (the bounds are already stored in
3819 -- units of small, so that constraint checking works as usual). For the
3820 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
3821 -- point operands if the Treat_Fixed_As_Integer flag is set and will
3822 -- thus treat these nodes in identical manner, ignoring small values.
3824 ---------------------------------
3825 -- 4.5.9 Quantified Expression --
3826 ---------------------------------
3828 -- QUANTIFIED_EXPRESSION ::=
3829 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
3830 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
3832 -- QUANTIFIER ::= all | some
3834 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
3835 -- is present at a time, in which case the other one is empty.
3837 -- N_Quantified_Expression
3838 -- Sloc points to FOR
3839 -- Iterator_Specification (Node2)
3840 -- Loop_Parameter_Specification (Node4)
3841 -- Condition (Node1)
3842 -- All_Present (Flag15)
3844 --------------------------
3845 -- 4.6 Type Conversion --
3846 --------------------------
3848 -- TYPE_CONVERSION ::=
3849 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3851 -- In the (NAME) case, the name is stored as the expression
3853 -- Note: the parser never generates a type conversion node, since it
3854 -- looks like an indexed component which is generated by preference.
3855 -- The semantic pass must correct this misidentification.
3857 -- Gigi handles conversions that involve no change in the root type,
3858 -- and also all conversions from integer to floating-point types.
3859 -- Conversions from floating-point to integer are only handled in
3860 -- the case where Float_Truncate flag set. Other conversions from
3861 -- floating-point to integer (involving rounding) and all conversions
3862 -- involving fixed-point types are handled by the expander.
3864 -- Sprint syntax if Float_Truncate set: X^(Y)
3865 -- Sprint syntax if Conversion_OK set X?(Y)
3866 -- Sprint syntax if both flags set X?^(Y)
3868 -- Note: If either the operand or result type is fixed-point, Gigi will
3869 -- only see a type conversion node with Conversion_OK set. The front end
3870 -- takes care of all handling of small's for fixed-point conversions.
3872 -- N_Type_Conversion
3873 -- Sloc points to first token of subtype mark
3874 -- Subtype_Mark (Node4)
3875 -- Expression (Node3)
3876 -- Do_Tag_Check (Flag13-Sem)
3877 -- Do_Length_Check (Flag4-Sem)
3878 -- Do_Overflow_Check (Flag17-Sem)
3879 -- Float_Truncate (Flag11-Sem)
3880 -- Rounded_Result (Flag18-Sem)
3881 -- Conversion_OK (Flag14-Sem)
3882 -- plus fields for expression
3884 -- Note: if a range check is required, then the Do_Range_Check flag
3885 -- is set in the Expression with the check being done against the
3886 -- target type range (after the base type conversion, if any).
3888 -------------------------------
3889 -- 4.7 Qualified Expression --
3890 -------------------------------
3892 -- QUALIFIED_EXPRESSION ::=
3893 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3895 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3896 -- the expression, so the Expression field of this node always points
3897 -- to a parenthesized expression in this case (i.e. Paren_Count will
3898 -- always be non-zero for the referenced expression if it is not an
3901 -- N_Qualified_Expression
3902 -- Sloc points to apostrophe
3903 -- Subtype_Mark (Node4)
3904 -- Expression (Node3) expression or aggregate
3905 -- plus fields for expression
3907 --------------------
3909 --------------------
3912 -- new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3914 -- Sprint syntax (when storage pool present)
3915 -- new xxx (storage_pool = pool)
3918 -- Sloc points to NEW
3919 -- Expression (Node3) subtype indication or qualified expression
3920 -- Storage_Pool (Node1-Sem)
3921 -- Procedure_To_Call (Node2-Sem)
3922 -- Coextensions (Elist4-Sem)
3923 -- Null_Exclusion_Present (Flag11)
3924 -- No_Initialization (Flag13-Sem)
3925 -- Is_Static_Coextension (Flag14-Sem)
3926 -- Do_Storage_Check (Flag17-Sem)
3927 -- Is_Dynamic_Coextension (Flag18-Sem)
3928 -- plus fields for expression
3930 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
3931 -- This flag has a special function in conjunction with the restriction
3932 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
3933 -- is not set. This means that if a source allocator is replaced with
3934 -- a constructed allocator, the Comes_From_Source flag should be copied
3935 -- to the newly created allocator.
3937 ---------------------------------
3938 -- 5.1 Sequence Of Statements --
3939 ---------------------------------
3941 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3943 -- Note: Although the parser will not accept a declaration as a
3944 -- statement, the semantic analyzer may insert declarations (e.g.
3945 -- declarations of implicit types needed for execution of other
3946 -- statements) into a sequence of statements, so the code generator
3947 -- should be prepared to accept a declaration where a statement is
3948 -- expected. Note also that pragmas can appear as statements.
3950 --------------------
3952 --------------------
3955 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3957 -- There is no explicit node in the tree for a statement. Instead, the
3958 -- individual statement appears directly. Labels are treated as a
3959 -- kind of statement, i.e. they are linked into a statement list at
3960 -- the point they appear, so the labeled statement appears following
3961 -- the label or labels in the statement list.
3963 ---------------------------
3964 -- 5.1 Simple Statement --
3965 ---------------------------
3967 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
3968 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
3969 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
3970 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3971 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
3972 -- | ABORT_STATEMENT | RAISE_STATEMENT
3975 -----------------------------
3976 -- 5.1 Compound Statement --
3977 -----------------------------
3979 -- COMPOUND_STATEMENT ::=
3980 -- IF_STATEMENT | CASE_STATEMENT
3981 -- | LOOP_STATEMENT | BLOCK_STATEMENT
3982 -- | EXTENDED_RETURN_STATEMENT
3983 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
3985 -------------------------
3986 -- 5.1 Null Statement --
3987 -------------------------
3989 -- NULL_STATEMENT ::= null;
3992 -- Sloc points to NULL
3998 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4000 -- Note that the occurrence of a label is not a defining identifier,
4001 -- but rather a referencing occurrence. The defining occurrence is
4002 -- in the implicit label declaration which occurs in the innermost
4006 -- Sloc points to <<
4007 -- Identifier (Node1) direct name of statement identifier
4008 -- Exception_Junk (Flag8-Sem)
4010 -- Note: Before Ada 2012, a label is always followed by a statement,
4011 -- and this is true in the tree even in Ada 2012 mode (the parser
4012 -- inserts a null statement marked with Comes_From_Source False).
4014 -------------------------------
4015 -- 5.1 Statement Identifier --
4016 -------------------------------
4018 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4020 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4021 -- (not an OPERATOR_SYMBOL)
4023 -------------------------------
4024 -- 5.2 Assignment Statement --
4025 -------------------------------
4027 -- ASSIGNMENT_STATEMENT ::=
4028 -- variable_NAME := EXPRESSION;
4030 -- N_Assignment_Statement
4031 -- Sloc points to :=
4033 -- Expression (Node3)
4034 -- Do_Tag_Check (Flag13-Sem)
4035 -- Do_Length_Check (Flag4-Sem)
4036 -- Forwards_OK (Flag5-Sem)
4037 -- Backwards_OK (Flag6-Sem)
4038 -- No_Ctrl_Actions (Flag7-Sem)
4039 -- Componentwise_Assignment (Flag14-Sem)
4041 -- Note: if a range check is required, then the Do_Range_Check flag
4042 -- is set in the Expression (right hand side), with the check being
4043 -- done against the type of the Name (left hand side).
4045 -- Note: the back end places some restrictions on the form of the
4046 -- Expression field. If the object being assigned to is Atomic, then
4047 -- the Expression may not have the form of an aggregate (since this
4048 -- might cause the back end to generate separate assignments). In this
4049 -- case the front end must generate an extra temporary and initialize
4050 -- this temporary as required (the temporary itself is not atomic).
4052 -----------------------
4053 -- 5.3 If Statement --
4054 -----------------------
4057 -- if CONDITION then
4058 -- SEQUENCE_OF_STATEMENTS
4059 -- {elsif CONDITION then
4060 -- SEQUENCE_OF_STATEMENTS}
4062 -- SEQUENCE_OF_STATEMENTS]
4065 -- Gigi restriction: This expander ensures that the type of the
4066 -- Condition fields is always Standard.Boolean, even if the type
4067 -- in the source is some non-standard boolean type.
4070 -- Sloc points to IF
4071 -- Condition (Node1)
4072 -- Then_Statements (List2)
4073 -- Elsif_Parts (List3) (set to No_List if none present)
4074 -- Else_Statements (List4) (set to No_List if no else part present)
4075 -- End_Span (Uint5) (set to No_Uint if expander generated)
4078 -- Sloc points to ELSIF
4079 -- Condition (Node1)
4080 -- Then_Statements (List2)
4081 -- Condition_Actions (List3-Sem)
4083 --------------------
4085 --------------------
4087 -- CONDITION ::= boolean_EXPRESSION
4089 -------------------------
4090 -- 5.4 Case Statement --
4091 -------------------------
4093 -- CASE_STATEMENT ::=
4094 -- case EXPRESSION is
4095 -- CASE_STATEMENT_ALTERNATIVE
4096 -- {CASE_STATEMENT_ALTERNATIVE}
4099 -- Note: the Alternatives can contain pragmas. These only occur at
4100 -- the start of the list, since any pragmas occurring after the first
4101 -- alternative are absorbed into the corresponding statement sequence.
4104 -- Sloc points to CASE
4105 -- Expression (Node3)
4106 -- Alternatives (List4)
4107 -- End_Span (Uint5) (set to No_Uint if expander generated)
4109 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4110 -- followed by a statement, and this is true in the tree even in Ada
4111 -- 2012 mode (the parser inserts a null statement marked with the flag
4112 -- Comes_From_Source False).
4114 -------------------------------------
4115 -- 5.4 Case Statement Alternative --
4116 -------------------------------------
4118 -- CASE_STATEMENT_ALTERNATIVE ::=
4119 -- when DISCRETE_CHOICE_LIST =>
4120 -- SEQUENCE_OF_STATEMENTS
4122 -- N_Case_Statement_Alternative
4123 -- Sloc points to WHEN
4124 -- Discrete_Choices (List4)
4125 -- Statements (List3)
4127 -------------------------
4128 -- 5.5 Loop Statement --
4129 -------------------------
4131 -- LOOP_STATEMENT ::=
4132 -- [loop_STATEMENT_IDENTIFIER :]
4133 -- [ITERATION_SCHEME] loop
4134 -- SEQUENCE_OF_STATEMENTS
4135 -- end loop [loop_IDENTIFIER];
4137 -- Note: The occurrence of a loop label is not a defining identifier
4138 -- but rather a referencing occurrence. The defining occurrence is in
4139 -- the implicit label declaration which occurs in the innermost
4142 -- Note: there is always a loop statement identifier present in
4143 -- the tree, even if none was given in the source. In the case where
4144 -- no loop identifier is given in the source, the parser creates
4145 -- a name of the form _Loop_n, where n is a decimal integer (the
4146 -- two underlines ensure that the loop names created in this manner
4147 -- do not conflict with any user defined identifiers), and the flag
4148 -- Has_Created_Identifier is set to True. The only exception to the
4149 -- rule that all loop statement nodes have identifiers occurs for
4150 -- loops constructed by the expander, and the semantic analyzer will
4151 -- create and supply dummy loop identifiers in these cases.
4154 -- Sloc points to LOOP
4155 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4156 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4157 -- Statements (List3)
4158 -- End_Label (Node4)
4159 -- Has_Created_Identifier (Flag15)
4160 -- Is_Null_Loop (Flag16)
4161 -- Suppress_Loop_Warnings (Flag17)
4163 -- Note: the parser fills in the Identifier field if there is an
4164 -- explicit loop identifier. Otherwise the parser leaves this field
4165 -- set to Empty, and then the semantic processing for a loop statement
4166 -- creates an identifier, setting the Has_Created_Identifier flag to
4167 -- True. So after semantic anlaysis, the Identifier is always set,
4168 -- referencing an identifier whose entity has an Ekind of E_Loop.
4170 --------------------------
4171 -- 5.5 Iteration Scheme --
4172 --------------------------
4174 -- ITERATION_SCHEME ::=
4176 -- | for LOOP_PARAMETER_SPECIFICATION
4177 -- | for ITERATOR_SPECIFICATION
4179 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4180 -- is present at a time, in which case the other one is empty. Both are
4181 -- empty in the case of a WHILE loop.
4183 -- Gigi restriction: This expander ensures that the type of the
4184 -- Condition field is always Standard.Boolean, even if the type
4185 -- in the source is some non-standard boolean type.
4187 -- N_Iteration_Scheme
4188 -- Sloc points to WHILE or FOR
4189 -- Condition (Node1) (set to Empty if FOR case)
4190 -- Condition_Actions (List3-Sem)
4191 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
4192 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4194 ---------------------------------------
4195 -- 5.5 Loop parameter specification --
4196 ---------------------------------------
4198 -- LOOP_PARAMETER_SPECIFICATION ::=
4199 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4201 -- N_Loop_Parameter_Specification
4202 -- Sloc points to first identifier
4203 -- Defining_Identifier (Node1)
4204 -- Reverse_Present (Flag15)
4205 -- Discrete_Subtype_Definition (Node4)
4207 ----------------------------------
4208 -- 5.5.1 Iterator specification --
4209 ----------------------------------
4211 -- ITERATOR_SPECIFICATION ::=
4212 -- DEFINING_IDENTIFIER in [reverse] NAME
4213 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4215 -- N_Iterator_Specification
4216 -- Sloc points to defining identifier
4217 -- Defining_Identifier (Node1)
4219 -- Reverse_Present (Flag15)
4220 -- Of_Present (Flag16)
4221 -- Subtype_Indication (Node5)
4223 --------------------------
4224 -- 5.6 Block Statement --
4225 --------------------------
4227 -- BLOCK_STATEMENT ::=
4228 -- [block_STATEMENT_IDENTIFIER:]
4230 -- DECLARATIVE_PART]
4232 -- HANDLED_SEQUENCE_OF_STATEMENTS
4233 -- end [block_IDENTIFIER];
4235 -- Note that the occurrence of a block identifier is not a defining
4236 -- identifier, but rather a referencing occurrence. The defining
4237 -- occurrence is an E_Block entity declared by the implicit label
4238 -- declaration which occurs in the innermost enclosing block statement
4239 -- or body; the block identifier denotes that E_Block.
4241 -- For block statements that come from source code, there is always a
4242 -- block statement identifier present in the tree, denoting an
4243 -- E_Block. In the case where no block identifier is given in the
4244 -- source, the parser creates a name of the form B_n, where n is a
4245 -- decimal integer, and the flag Has_Created_Identifier is set to
4246 -- True. Blocks constructed by the expander usually have no identifier,
4247 -- and no corresponding entity.
4249 -- Note: the block statement created for an extended return statement
4250 -- has an entity, and this entity is an E_Return_Statement, rather than
4251 -- the usual E_Block.
4253 -- Note: Exception_Junk is set for the wrapping blocks created during
4254 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4256 -- N_Block_Statement
4257 -- Sloc points to DECLARE or BEGIN
4258 -- Identifier (Node1) block direct name (set to Empty if not present)
4259 -- Declarations (List2) (set to No_List if no DECLARE part)
4260 -- Handled_Statement_Sequence (Node4)
4261 -- Is_Task_Master (Flag5-Sem)
4262 -- Activation_Chain_Entity (Node3-Sem)
4263 -- Has_Created_Identifier (Flag15)
4264 -- Is_Task_Allocation_Block (Flag6)
4265 -- Is_Asynchronous_Call_Block (Flag7)
4266 -- Exception_Junk (Flag8-Sem)
4268 -------------------------
4269 -- 5.7 Exit Statement --
4270 -------------------------
4272 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4274 -- Gigi restriction: This expander ensures that the type of the
4275 -- Condition field is always Standard.Boolean, even if the type
4276 -- in the source is some non-standard boolean type.
4279 -- Sloc points to EXIT
4280 -- Name (Node2) (set to Empty if no loop name present)
4281 -- Condition (Node1) (set to Empty if no WHEN part present)
4282 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
4284 -------------------------
4285 -- 5.9 Goto Statement --
4286 -------------------------
4288 -- GOTO_STATEMENT ::= goto label_NAME;
4291 -- Sloc points to GOTO
4293 -- Exception_Junk (Flag8-Sem)
4295 ---------------------------------
4296 -- 6.1 Subprogram Declaration --
4297 ---------------------------------
4299 -- SUBPROGRAM_DECLARATION ::=
4300 -- SUBPROGRAM_SPECIFICATION
4301 -- [ASPECT_SPECIFICATIONS];
4303 -- N_Subprogram_Declaration
4304 -- Sloc points to FUNCTION or PROCEDURE
4305 -- Specification (Node1)
4306 -- Body_To_Inline (Node3-Sem)
4307 -- Corresponding_Body (Node5-Sem)
4308 -- Parent_Spec (Node4-Sem)
4310 ------------------------------------------
4311 -- 6.1 Abstract Subprogram Declaration --
4312 ------------------------------------------
4314 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4315 -- SUBPROGRAM_SPECIFICATION is abstract
4316 -- [ASPECT_SPECIFICATIONS];
4318 -- N_Abstract_Subprogram_Declaration
4319 -- Sloc points to ABSTRACT
4320 -- Specification (Node1)
4322 -----------------------------------
4323 -- 6.1 Subprogram Specification --
4324 -----------------------------------
4326 -- SUBPROGRAM_SPECIFICATION ::=
4327 -- [[not] overriding]
4328 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4329 -- | [[not] overriding]
4330 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4332 -- Note: there are no separate nodes for the profiles, instead the
4333 -- information appears directly in the following nodes.
4335 -- N_Function_Specification
4336 -- Sloc points to FUNCTION
4337 -- Defining_Unit_Name (Node1) (the designator)
4338 -- Elaboration_Boolean (Node2-Sem)
4339 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4340 -- Null_Exclusion_Present (Flag11)
4341 -- Result_Definition (Node4) for result subtype
4342 -- Generic_Parent (Node5-Sem)
4343 -- Must_Override (Flag14) set if overriding indicator present
4344 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4346 -- N_Procedure_Specification
4347 -- Sloc points to PROCEDURE
4348 -- Defining_Unit_Name (Node1)
4349 -- Elaboration_Boolean (Node2-Sem)
4350 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4351 -- Generic_Parent (Node5-Sem)
4352 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4353 -- Must_Override (Flag14) set if overriding indicator present
4354 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4356 -- Note: overriding indicator is an Ada 2005 feature
4358 ---------------------
4359 -- 6.1 Designator --
4360 ---------------------
4363 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4365 -- Designators that are simply identifiers or operator symbols appear
4366 -- directly in the tree in this form. The following node is used only
4367 -- in the case where the designator has a parent unit name component.
4370 -- Sloc points to period
4371 -- Name (Node2) holds the parent unit name. Note that this is always
4372 -- non-Empty, since this node is only used for the case where a
4373 -- parent library unit package name is present.
4374 -- Identifier (Node1)
4376 -- Note that the identifier can also be an operator symbol here
4378 ------------------------------
4379 -- 6.1 Defining Designator --
4380 ------------------------------
4382 -- DEFINING_DESIGNATOR ::=
4383 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4385 -------------------------------------
4386 -- 6.1 Defining Program Unit Name --
4387 -------------------------------------
4389 -- DEFINING_PROGRAM_UNIT_NAME ::=
4390 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4392 -- The parent unit name is present only in the case of a child unit
4393 -- name (permissible only for Ada 95 for a library level unit, i.e.
4394 -- a unit at scope level one). If no such name is present, the defining
4395 -- program unit name is represented simply as the defining identifier.
4396 -- In the child unit case, the following node is used to represent the
4399 -- N_Defining_Program_Unit_Name
4400 -- Sloc points to period
4401 -- Name (Node2) holds the parent unit name. Note that this is always
4402 -- non-Empty, since this node is only used for the case where a
4403 -- parent unit name is present.
4404 -- Defining_Identifier (Node1)
4406 --------------------------
4407 -- 6.1 Operator Symbol --
4408 --------------------------
4410 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4412 -- Note: the fields of the N_Operator_Symbol node are laid out to
4413 -- match the corresponding fields of an N_Character_Literal node. This
4414 -- allows easy conversion of the operator symbol node into a character
4415 -- literal node in the case where a string constant of the form of an
4416 -- operator symbol is scanned out as such, but turns out semantically
4417 -- to be a string literal that is not an operator. For details see
4418 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4420 -- N_Operator_Symbol
4421 -- Sloc points to literal
4422 -- Chars (Name1) contains the Name_Id for the operator symbol
4423 -- Strval (Str3) Id of string value. This is used if the operator
4424 -- symbol turns out to be a normal string after all.
4425 -- Entity (Node4-Sem)
4426 -- Associated_Node (Node4-Sem)
4427 -- Has_Private_View (Flag11-Sem) set in generic units.
4428 -- Etype (Node5-Sem)
4430 -- Note: the Strval field may be set to No_String for generated
4431 -- operator symbols that are known not to be string literals
4434 -----------------------------------
4435 -- 6.1 Defining Operator Symbol --
4436 -----------------------------------
4438 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4440 -- A defining operator symbol is an entity, which has additional
4441 -- fields depending on the setting of the Ekind field. These
4442 -- additional fields are defined (and access subprograms declared)
4443 -- in package Einfo.
4445 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4446 -- are deliberately layed out to match the layout of fields in an
4447 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4448 -- an operator symbol node into a defining operator symbol node.
4449 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4450 -- for further details.
4452 -- N_Defining_Operator_Symbol
4453 -- Sloc points to literal
4454 -- Chars (Name1) contains the Name_Id for the operator symbol
4455 -- Next_Entity (Node2-Sem)
4456 -- Scope (Node3-Sem)
4457 -- Etype (Node5-Sem)
4459 ----------------------------
4460 -- 6.1 Parameter Profile --
4461 ----------------------------
4463 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4465 ---------------------------------------
4466 -- 6.1 Parameter and Result Profile --
4467 ---------------------------------------
4469 -- PARAMETER_AND_RESULT_PROFILE ::=
4470 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4471 -- | [FORMAL_PART] return ACCESS_DEFINITION
4473 -- There is no explicit node in the tree for a parameter and result
4474 -- profile. Instead the information appears directly in the parent.
4476 ----------------------
4477 -- 6.1 Formal part --
4478 ----------------------
4481 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4483 ----------------------------------
4484 -- 6.1 Parameter specification --
4485 ----------------------------------
4487 -- PARAMETER_SPECIFICATION ::=
4488 -- DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4489 -- [:= DEFAULT_EXPRESSION]
4490 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4491 -- [:= DEFAULT_EXPRESSION]
4493 -- Although the syntax allows multiple identifiers in the list, the
4494 -- semantics is as though successive specifications were given with
4495 -- identical type definition and expression components. To simplify
4496 -- semantic processing, the parser represents a multiple declaration
4497 -- case as a sequence of single Specifications, using the More_Ids and
4498 -- Prev_Ids flags to preserve the original source form as described
4499 -- in the section on "Handling of Defining Identifier Lists".
4501 -- N_Parameter_Specification
4502 -- Sloc points to first identifier
4503 -- Defining_Identifier (Node1)
4504 -- In_Present (Flag15)
4505 -- Out_Present (Flag17)
4506 -- Null_Exclusion_Present (Flag11)
4507 -- Parameter_Type (Node2) subtype mark or access definition
4508 -- Expression (Node3) (set to Empty if no default expression present)
4509 -- Do_Accessibility_Check (Flag13-Sem)
4510 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4511 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4512 -- Default_Expression (Node5-Sem)
4518 -- MODE ::= [in] | in out | out
4520 -- There is no explicit node in the tree for the Mode. Instead the
4521 -- In_Present and Out_Present flags are set in the parent node to
4522 -- record the presence of keywords specifying the mode.
4524 --------------------------
4525 -- 6.3 Subprogram Body --
4526 --------------------------
4528 -- SUBPROGRAM_BODY ::=
4529 -- SUBPROGRAM_SPECIFICATION is
4532 -- HANDLED_SEQUENCE_OF_STATEMENTS
4533 -- end [DESIGNATOR];
4535 -- N_Subprogram_Body
4536 -- Sloc points to FUNCTION or PROCEDURE
4537 -- Specification (Node1)
4538 -- Declarations (List2)
4539 -- Handled_Statement_Sequence (Node4)
4540 -- Activation_Chain_Entity (Node3-Sem)
4541 -- Corresponding_Spec (Node5-Sem)
4542 -- Acts_As_Spec (Flag4-Sem)
4543 -- Bad_Is_Detected (Flag15) used only by parser
4544 -- Do_Storage_Check (Flag17-Sem)
4545 -- Has_Pragma_Priority (Flag6-Sem)
4546 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4547 -- Is_Entry_Barrier_Function (Flag8-Sem)
4548 -- Is_Task_Master (Flag5-Sem)
4549 -- Was_Originally_Stub (Flag13-Sem)
4550 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4551 -- Has_Pragma_CPU (Flag14-Sem)
4553 ------------------------------
4554 -- Parameterized Expression --
4555 ------------------------------
4557 -- This is an Ada 2012 extension, we put it here for now, to be labeled
4558 -- and put in its proper section when we know exactly where that is!
4560 -- PARAMETERIZED_EXPRESSION ::=
4561 -- FUNCTION SPECIFICATION IS (EXPRESSION);
4563 -- N_Parameterized_Expression
4564 -- Sloc points to FUNCTION
4565 -- Specification (Node1)
4566 -- Expression (Node3)
4568 -----------------------------------
4569 -- 6.4 Procedure Call Statement --
4570 -----------------------------------
4572 -- PROCEDURE_CALL_STATEMENT ::=
4573 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4575 -- Note: the reason that a procedure call has expression fields is
4576 -- that it semantically resembles an expression, e.g. overloading is
4577 -- allowed and a type is concocted for semantic processing purposes.
4578 -- Certain of these fields, such as Parens are not relevant, but it
4579 -- is easier to just supply all of them together!
4581 -- N_Procedure_Call_Statement
4582 -- Sloc points to first token of name or prefix
4583 -- Name (Node2) stores name or prefix
4584 -- Parameter_Associations (List3) (set to No_List if no
4585 -- actual parameter part)
4586 -- First_Named_Actual (Node4-Sem)
4587 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4588 -- Do_Tag_Check (Flag13-Sem)
4589 -- No_Elaboration_Check (Flag14-Sem)
4590 -- Parameter_List_Truncated (Flag17-Sem)
4591 -- ABE_Is_Certain (Flag18-Sem)
4592 -- plus fields for expression
4594 -- If any IN parameter requires a range check, then the corresponding
4595 -- argument expression has the Do_Range_Check flag set, and the range
4596 -- check is done against the formal type. Note that this argument
4597 -- expression may appear directly in the Parameter_Associations list,
4598 -- or may be a descendent of an N_Parameter_Association node that
4599 -- appears in this list.
4601 ------------------------
4602 -- 6.4 Function Call --
4603 ------------------------
4605 -- FUNCTION_CALL ::=
4606 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4608 -- Note: the parser may generate an indexed component node or simply
4609 -- a name node instead of a function call node. The semantic pass must
4610 -- correct this misidentification.
4613 -- Sloc points to first token of name or prefix
4614 -- Name (Node2) stores name or prefix
4615 -- Parameter_Associations (List3) (set to No_List if no
4616 -- actual parameter part)
4617 -- First_Named_Actual (Node4-Sem)
4618 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4619 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4620 -- Do_Tag_Check (Flag13-Sem)
4621 -- No_Elaboration_Check (Flag14-Sem)
4622 -- Parameter_List_Truncated (Flag17-Sem)
4623 -- ABE_Is_Certain (Flag18-Sem)
4624 -- plus fields for expression
4626 --------------------------------
4627 -- 6.4 Actual Parameter Part --
4628 --------------------------------
4630 -- ACTUAL_PARAMETER_PART ::=
4631 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4633 --------------------------------
4634 -- 6.4 Parameter Association --
4635 --------------------------------
4637 -- PARAMETER_ASSOCIATION ::=
4638 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4640 -- Note: the N_Parameter_Association node is built only if a formal
4641 -- parameter selector name is present, otherwise the parameter
4642 -- association appears in the tree simply as the node for the
4643 -- explicit actual parameter.
4645 -- N_Parameter_Association
4646 -- Sloc points to formal parameter
4647 -- Selector_Name (Node2) (always non-Empty)
4648 -- Explicit_Actual_Parameter (Node3)
4649 -- Next_Named_Actual (Node4-Sem)
4650 -- Is_Accessibility_Actual (Flag13-Sem)
4652 ---------------------------
4653 -- 6.4 Actual Parameter --
4654 ---------------------------
4656 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4658 ---------------------------
4659 -- 6.5 Return Statement --
4660 ---------------------------
4662 -- RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4664 -- In Ada 2005, we have:
4666 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4668 -- EXTENDED_RETURN_STATEMENT ::=
4669 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4670 -- [:= EXPRESSION] [do
4671 -- HANDLED_SEQUENCE_OF_STATEMENTS
4674 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4676 -- So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4677 -- "return statement" is defined in 6.5 to mean a
4678 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4680 -- N_Return_Statement
4681 -- Sloc points to RETURN
4682 -- Return_Statement_Entity (Node5-Sem)
4683 -- Expression (Node3) (set to Empty if no expression present)
4684 -- Storage_Pool (Node1-Sem)
4685 -- Procedure_To_Call (Node2-Sem)
4686 -- Do_Tag_Check (Flag13-Sem)
4687 -- By_Ref (Flag5-Sem)
4688 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
4690 -- N_Return_Statement represents a simple_return_statement, and is
4691 -- renamed to be N_Simple_Return_Statement below. Clients should refer
4692 -- to N_Simple_Return_Statement. We retain N_Return_Statement because
4693 -- that's how gigi knows it. See also renaming of Make_Return_Statement
4694 -- as Make_Simple_Return_Statement in Sem_Util.
4696 -- Note: Return_Statement_Entity points to an E_Return_Statement
4698 -- If a range check is required, then Do_Range_Check is set on the
4699 -- Expression. The check is against the return subtype of the function.
4701 -- N_Extended_Return_Statement
4702 -- Sloc points to RETURN
4703 -- Return_Statement_Entity (Node5-Sem)
4704 -- Return_Object_Declarations (List3)
4705 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
4706 -- Storage_Pool (Node1-Sem)
4707 -- Procedure_To_Call (Node2-Sem)
4708 -- Do_Tag_Check (Flag13-Sem)
4709 -- By_Ref (Flag5-Sem)
4711 -- Note: Return_Statement_Entity points to an E_Return_Statement.
4713 -- Note that Return_Object_Declarations is a list containing the
4714 -- N_Object_Declaration -- see comment on this field above.
4716 -- The declared object will have Is_Return_Object = True.
4718 -- There is no such syntactic category as return_object_declaration
4719 -- in the RM. Return_Object_Declarations represents this portion of
4720 -- the syntax for EXTENDED_RETURN_STATEMENT:
4721 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4724 -- There are two entities associated with an extended_return_statement:
4725 -- the Return_Statement_Entity represents the statement itself, and the
4726 -- Defining_Identifier of the Object_Declaration in
4727 -- Return_Object_Declarations represents the object being
4728 -- returned. N_Simple_Return_Statement has only the former.
4730 ------------------------------
4731 -- 7.1 Package Declaration --
4732 ------------------------------
4734 -- PACKAGE_DECLARATION ::=
4735 -- PACKAGE_SPECIFICATION
4736 -- [ASPECT_SPECIFICATIONS];
4738 -- Note: the activation chain entity for a package spec is used for
4739 -- all tasks declared in the package spec, or in the package body.
4741 -- N_Package_Declaration
4742 -- Sloc points to PACKAGE
4743 -- Specification (Node1)
4744 -- Corresponding_Body (Node5-Sem)
4745 -- Parent_Spec (Node4-Sem)
4746 -- Activation_Chain_Entity (Node3-Sem)
4748 --------------------------------
4749 -- 7.1 Package Specification --
4750 --------------------------------
4752 -- PACKAGE_SPECIFICATION ::=
4753 -- package DEFINING_PROGRAM_UNIT_NAME is
4754 -- {BASIC_DECLARATIVE_ITEM}
4756 -- {BASIC_DECLARATIVE_ITEM}]
4757 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
4759 -- N_Package_Specification
4760 -- Sloc points to PACKAGE
4761 -- Defining_Unit_Name (Node1)
4762 -- Visible_Declarations (List2)
4763 -- Private_Declarations (List3) (set to No_List if no private
4765 -- End_Label (Node4)
4766 -- Generic_Parent (Node5-Sem)
4767 -- Limited_View_Installed (Flag18-Sem)
4769 -----------------------
4770 -- 7.1 Package Body --
4771 -----------------------
4774 -- package body DEFINING_PROGRAM_UNIT_NAME is
4777 -- HANDLED_SEQUENCE_OF_STATEMENTS]
4778 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
4781 -- Sloc points to PACKAGE
4782 -- Defining_Unit_Name (Node1)
4783 -- Declarations (List2)
4784 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4785 -- Corresponding_Spec (Node5-Sem)
4786 -- Was_Originally_Stub (Flag13-Sem)
4788 -- Note: if a source level package does not contain a handled sequence
4789 -- of statements, then the parser supplies a dummy one with a null
4790 -- sequence of statements. Comes_From_Source will be False in this
4791 -- constructed sequence. The reason we need this is for the End_Label
4792 -- field in the HSS.
4794 -----------------------------------
4795 -- 7.4 Private Type Declaration --
4796 -----------------------------------
4798 -- PRIVATE_TYPE_DECLARATION ::=
4799 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4800 -- is [[abstract] tagged] [limited] private;
4802 -- Note: TAGGED is not permitted in Ada 83 mode
4804 -- N_Private_Type_Declaration
4805 -- Sloc points to TYPE
4806 -- Defining_Identifier (Node1)
4807 -- Discriminant_Specifications (List4) (set to No_List if no
4808 -- discriminant part)
4809 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4810 -- Abstract_Present (Flag4)
4811 -- Tagged_Present (Flag15)
4812 -- Limited_Present (Flag17)
4814 ----------------------------------------
4815 -- 7.4 Private Extension Declaration --
4816 ----------------------------------------
4818 -- PRIVATE_EXTENSION_DECLARATION ::=
4819 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4820 -- [abstract] [limited | synchronized]
4821 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4824 -- Note: LIMITED, and private extension declarations are not allowed
4827 -- N_Private_Extension_Declaration
4828 -- Sloc points to TYPE
4829 -- Defining_Identifier (Node1)
4830 -- Discriminant_Specifications (List4) (set to No_List if no
4831 -- discriminant part)
4832 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4833 -- Abstract_Present (Flag4)
4834 -- Limited_Present (Flag17)
4835 -- Synchronized_Present (Flag7)
4836 -- Subtype_Indication (Node5)
4837 -- Interface_List (List2) (set to No_List if none)
4839 ---------------------
4840 -- 8.4 Use Clause --
4841 ---------------------
4843 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4845 -----------------------------
4846 -- 8.4 Use Package Clause --
4847 -----------------------------
4849 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4851 -- N_Use_Package_Clause
4852 -- Sloc points to USE
4854 -- Next_Use_Clause (Node3-Sem)
4855 -- Hidden_By_Use_Clause (Elist4-Sem)
4857 --------------------------
4858 -- 8.4 Use Type Clause --
4859 --------------------------
4861 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
4863 -- Note: use type clause is not permitted in Ada 83 mode
4865 -- Note: the ALL keyword can appear only in Ada 2012 mode
4867 -- N_Use_Type_Clause
4868 -- Sloc points to USE
4869 -- Subtype_Marks (List2)
4870 -- Next_Use_Clause (Node3-Sem)
4871 -- Hidden_By_Use_Clause (Elist4-Sem)
4872 -- All_Present (Flag15)
4874 -------------------------------
4875 -- 8.5 Renaming Declaration --
4876 -------------------------------
4878 -- RENAMING_DECLARATION ::=
4879 -- OBJECT_RENAMING_DECLARATION
4880 -- | EXCEPTION_RENAMING_DECLARATION
4881 -- | PACKAGE_RENAMING_DECLARATION
4882 -- | SUBPROGRAM_RENAMING_DECLARATION
4883 -- | GENERIC_RENAMING_DECLARATION
4885 --------------------------------------
4886 -- 8.5 Object Renaming Declaration --
4887 --------------------------------------
4889 -- OBJECT_RENAMING_DECLARATION ::=
4890 -- DEFINING_IDENTIFIER :
4891 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4892 -- | DEFINING_IDENTIFIER :
4893 -- ACCESS_DEFINITION renames object_NAME;
4895 -- Note: Access_Definition is an optional field that gives support to
4896 -- Ada 2005 (AI-230). The parser generates nodes that have either the
4897 -- Subtype_Indication field or else the Access_Definition field.
4899 -- N_Object_Renaming_Declaration
4900 -- Sloc points to first identifier
4901 -- Defining_Identifier (Node1)
4902 -- Null_Exclusion_Present (Flag11) (set to False if not present)
4903 -- Subtype_Mark (Node4) (set to Empty if not present)
4904 -- Access_Definition (Node3) (set to Empty if not present)
4906 -- Corresponding_Generic_Association (Node5-Sem)
4908 -----------------------------------------
4909 -- 8.5 Exception Renaming Declaration --
4910 -----------------------------------------
4912 -- EXCEPTION_RENAMING_DECLARATION ::=
4913 -- DEFINING_IDENTIFIER : exception renames exception_NAME;
4915 -- N_Exception_Renaming_Declaration
4916 -- Sloc points to first identifier
4917 -- Defining_Identifier (Node1)
4920 ---------------------------------------
4921 -- 8.5 Package Renaming Declaration --
4922 ---------------------------------------
4924 -- PACKAGE_RENAMING_DECLARATION ::=
4925 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4927 -- N_Package_Renaming_Declaration
4928 -- Sloc points to PACKAGE
4929 -- Defining_Unit_Name (Node1)
4931 -- Parent_Spec (Node4-Sem)
4933 ------------------------------------------
4934 -- 8.5 Subprogram Renaming Declaration --
4935 ------------------------------------------
4937 -- SUBPROGRAM_RENAMING_DECLARATION ::=
4938 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4940 -- N_Subprogram_Renaming_Declaration
4941 -- Sloc points to RENAMES
4942 -- Specification (Node1)
4944 -- Parent_Spec (Node4-Sem)
4945 -- Corresponding_Spec (Node5-Sem)
4946 -- Corresponding_Formal_Spec (Node3-Sem)
4947 -- From_Default (Flag6-Sem)
4949 -----------------------------------------
4950 -- 8.5.5 Generic Renaming Declaration --
4951 -----------------------------------------
4953 -- GENERIC_RENAMING_DECLARATION ::=
4954 -- generic package DEFINING_PROGRAM_UNIT_NAME
4955 -- renames generic_package_NAME
4956 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
4957 -- renames generic_procedure_NAME
4958 -- | generic function DEFINING_PROGRAM_UNIT_NAME
4959 -- renames generic_function_NAME
4961 -- N_Generic_Package_Renaming_Declaration
4962 -- Sloc points to GENERIC
4963 -- Defining_Unit_Name (Node1)
4965 -- Parent_Spec (Node4-Sem)
4967 -- N_Generic_Procedure_Renaming_Declaration
4968 -- Sloc points to GENERIC
4969 -- Defining_Unit_Name (Node1)
4971 -- Parent_Spec (Node4-Sem)
4973 -- N_Generic_Function_Renaming_Declaration
4974 -- Sloc points to GENERIC
4975 -- Defining_Unit_Name (Node1)
4977 -- Parent_Spec (Node4-Sem)
4979 --------------------------------
4980 -- 9.1 Task Type Declaration --
4981 --------------------------------
4983 -- TASK_TYPE_DECLARATION ::=
4984 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4985 -- [is [new INTERFACE_LIST with] TASK_DEFINITION]
4986 -- [ASPECT_SPECIFICATIONS];
4988 -- N_Task_Type_Declaration
4989 -- Sloc points to TASK
4990 -- Defining_Identifier (Node1)
4991 -- Discriminant_Specifications (List4) (set to No_List if no
4992 -- discriminant part)
4993 -- Interface_List (List2) (set to No_List if none)
4994 -- Task_Definition (Node3) (set to Empty if not present)
4995 -- Corresponding_Body (Node5-Sem)
4997 ----------------------------------
4998 -- 9.1 Single Task Declaration --
4999 ----------------------------------
5001 -- SINGLE_TASK_DECLARATION ::=
5002 -- task DEFINING_IDENTIFIER
5003 -- [is [new INTERFACE_LIST with] TASK_DEFINITION]
5004 -- [ASPECT_SPECIFICATIONS];
5006 -- N_Single_Task_Declaration
5007 -- Sloc points to TASK
5008 -- Defining_Identifier (Node1)
5009 -- Interface_List (List2) (set to No_List if none)
5010 -- Task_Definition (Node3) (set to Empty if not present)
5012 --------------------------
5013 -- 9.1 Task Definition --
5014 --------------------------
5016 -- TASK_DEFINITION ::=
5020 -- end [task_IDENTIFIER]
5022 -- Note: as a result of semantic analysis, the list of task items can
5023 -- include implicit type declarations resulting from entry families.
5025 -- N_Task_Definition
5026 -- Sloc points to first token of task definition
5027 -- Visible_Declarations (List2)
5028 -- Private_Declarations (List3) (set to No_List if no private part)
5029 -- End_Label (Node4)
5030 -- Has_Pragma_Priority (Flag6-Sem)
5031 -- Has_Storage_Size_Pragma (Flag5-Sem)
5032 -- Has_Task_Info_Pragma (Flag7-Sem)
5033 -- Has_Task_Name_Pragma (Flag8-Sem)
5034 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5035 -- Has_Pragma_CPU (Flag14-Sem)
5037 --------------------
5039 --------------------
5041 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5043 --------------------
5045 --------------------
5048 -- task body task_DEFINING_IDENTIFIER is
5051 -- HANDLED_SEQUENCE_OF_STATEMENTS
5052 -- end [task_IDENTIFIER];
5054 -- Gigi restriction: This node never appears
5057 -- Sloc points to TASK
5058 -- Defining_Identifier (Node1)
5059 -- Declarations (List2)
5060 -- Handled_Statement_Sequence (Node4)
5061 -- Is_Task_Master (Flag5-Sem)
5062 -- Activation_Chain_Entity (Node3-Sem)
5063 -- Corresponding_Spec (Node5-Sem)
5064 -- Was_Originally_Stub (Flag13-Sem)
5066 -------------------------------------
5067 -- 9.4 Protected Type Declaration --
5068 -------------------------------------
5070 -- PROTECTED_TYPE_DECLARATION ::=
5071 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5072 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION
5073 -- {ASPECT_SPECIFICATIONS];
5075 -- Note: protected type declarations are not permitted in Ada 83 mode
5077 -- N_Protected_Type_Declaration
5078 -- Sloc points to PROTECTED
5079 -- Defining_Identifier (Node1)
5080 -- Discriminant_Specifications (List4) (set to No_List if no
5081 -- discriminant part)
5082 -- Interface_List (List2) (set to No_List if none)
5083 -- Protected_Definition (Node3)
5084 -- Corresponding_Body (Node5-Sem)
5086 ---------------------------------------
5087 -- 9.4 Single Protected Declaration --
5088 ---------------------------------------
5090 -- SINGLE_PROTECTED_DECLARATION ::=
5091 -- protected DEFINING_IDENTIFIER
5092 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION
5093 -- [ASPECT_SPECIFICATIONS];
5095 -- Note: single protected declarations are not allowed in Ada 83 mode
5097 -- N_Single_Protected_Declaration
5098 -- Sloc points to PROTECTED
5099 -- Defining_Identifier (Node1)
5100 -- Interface_List (List2) (set to No_List if none)
5101 -- Protected_Definition (Node3)
5103 -------------------------------
5104 -- 9.4 Protected Definition --
5105 -------------------------------
5107 -- PROTECTED_DEFINITION ::=
5108 -- {PROTECTED_OPERATION_DECLARATION}
5110 -- {PROTECTED_ELEMENT_DECLARATION}]
5111 -- end [protected_IDENTIFIER]
5113 -- N_Protected_Definition
5114 -- Sloc points to first token of protected definition
5115 -- Visible_Declarations (List2)
5116 -- Private_Declarations (List3) (set to No_List if no private part)
5117 -- End_Label (Node4)
5118 -- Has_Pragma_Priority (Flag6-Sem)
5120 ------------------------------------------
5121 -- 9.4 Protected Operation Declaration --
5122 ------------------------------------------
5124 -- PROTECTED_OPERATION_DECLARATION ::=
5125 -- SUBPROGRAM_DECLARATION
5126 -- | ENTRY_DECLARATION
5127 -- | REPRESENTATION_CLAUSE
5129 ----------------------------------------
5130 -- 9.4 Protected Element Declaration --
5131 ----------------------------------------
5133 -- PROTECTED_ELEMENT_DECLARATION ::=
5134 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5136 -------------------------
5137 -- 9.4 Protected Body --
5138 -------------------------
5140 -- PROTECTED_BODY ::=
5141 -- protected body DEFINING_IDENTIFIER is
5142 -- {PROTECTED_OPERATION_ITEM}
5143 -- end [protected_IDENTIFIER];
5145 -- Note: protected bodies are not allowed in Ada 83 mode
5147 -- Gigi restriction: This node never appears
5150 -- Sloc points to PROTECTED
5151 -- Defining_Identifier (Node1)
5152 -- Declarations (List2) protected operation items (and pragmas)
5153 -- End_Label (Node4)
5154 -- Corresponding_Spec (Node5-Sem)
5155 -- Was_Originally_Stub (Flag13-Sem)
5157 -----------------------------------
5158 -- 9.4 Protected Operation Item --
5159 -----------------------------------
5161 -- PROTECTED_OPERATION_ITEM ::=
5162 -- SUBPROGRAM_DECLARATION
5163 -- | SUBPROGRAM_BODY
5165 -- | REPRESENTATION_CLAUSE
5167 ------------------------------
5168 -- 9.5.2 Entry Declaration --
5169 ------------------------------
5171 -- ENTRY_DECLARATION ::=
5172 -- [[not] overriding]
5173 -- entry DEFINING_IDENTIFIER
5174 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
5176 -- N_Entry_Declaration
5177 -- Sloc points to ENTRY
5178 -- Defining_Identifier (Node1)
5179 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5180 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5181 -- Corresponding_Body (Node5-Sem)
5182 -- Must_Override (Flag14) set if overriding indicator present
5183 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5185 -- Note: overriding indicator is an Ada 2005 feature
5187 -----------------------------
5188 -- 9.5.2 Accept statement --
5189 -----------------------------
5191 -- ACCEPT_STATEMENT ::=
5192 -- accept entry_DIRECT_NAME
5193 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5194 -- HANDLED_SEQUENCE_OF_STATEMENTS
5195 -- end [entry_IDENTIFIER]];
5197 -- Gigi restriction: This node never appears
5199 -- Note: there are no explicit declarations allowed in an accept
5200 -- statement. However, the implicit declarations for any statement
5201 -- identifiers (labels and block/loop identifiers) are declarations
5202 -- that belong logically to the accept statement, and that is why
5203 -- there is a Declarations field in this node.
5205 -- N_Accept_Statement
5206 -- Sloc points to ACCEPT
5207 -- Entry_Direct_Name (Node1)
5208 -- Entry_Index (Node5) (set to Empty if not present)
5209 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5210 -- Handled_Statement_Sequence (Node4)
5211 -- Declarations (List2) (set to No_List if no declarations)
5213 ------------------------
5214 -- 9.5.2 Entry Index --
5215 ------------------------
5217 -- ENTRY_INDEX ::= EXPRESSION
5219 -----------------------
5220 -- 9.5.2 Entry Body --
5221 -----------------------
5224 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5227 -- HANDLED_SEQUENCE_OF_STATEMENTS
5228 -- end [entry_IDENTIFIER];
5230 -- ENTRY_BARRIER ::= when CONDITION
5232 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5233 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5234 -- too full (it would otherwise have too many fields)
5236 -- Gigi restriction: This node never appears
5239 -- Sloc points to ENTRY
5240 -- Defining_Identifier (Node1)
5241 -- Entry_Body_Formal_Part (Node5)
5242 -- Declarations (List2)
5243 -- Handled_Statement_Sequence (Node4)
5244 -- Activation_Chain_Entity (Node3-Sem)
5246 -----------------------------------
5247 -- 9.5.2 Entry Body Formal Part --
5248 -----------------------------------
5250 -- ENTRY_BODY_FORMAL_PART ::=
5251 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5253 -- Note that an entry body formal part node is present even if it is
5254 -- empty. This reflects the grammar, in which it is the components of
5255 -- the entry body formal part that are optional, not the entry body
5256 -- formal part itself. Also this means that the barrier condition
5257 -- always has somewhere to be stored.
5259 -- Gigi restriction: This node never appears
5261 -- N_Entry_Body_Formal_Part
5262 -- Sloc points to first token
5263 -- Entry_Index_Specification (Node4) (set to Empty if not present)
5264 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5265 -- Condition (Node1) from entry barrier of entry body
5267 --------------------------
5268 -- 9.5.2 Entry Barrier --
5269 --------------------------
5271 -- ENTRY_BARRIER ::= when CONDITION
5273 --------------------------------------
5274 -- 9.5.2 Entry Index Specification --
5275 --------------------------------------
5277 -- ENTRY_INDEX_SPECIFICATION ::=
5278 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5280 -- Gigi restriction: This node never appears
5282 -- N_Entry_Index_Specification
5283 -- Sloc points to FOR
5284 -- Defining_Identifier (Node1)
5285 -- Discrete_Subtype_Definition (Node4)
5287 ---------------------------------
5288 -- 9.5.3 Entry Call Statement --
5289 ---------------------------------
5291 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5293 -- The parser may generate a procedure call for this construct. The
5294 -- semantic pass must correct this misidentification where needed.
5296 -- Gigi restriction: This node never appears
5298 -- N_Entry_Call_Statement
5299 -- Sloc points to first token of name
5301 -- Parameter_Associations (List3) (set to No_List if no
5302 -- actual parameter part)
5303 -- First_Named_Actual (Node4-Sem)
5305 ------------------------------
5306 -- 9.5.4 Requeue Statement --
5307 ------------------------------
5309 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5311 -- Note: requeue statements are not permitted in Ada 83 mode
5313 -- Gigi restriction: This node never appears
5315 -- N_Requeue_Statement
5316 -- Sloc points to REQUEUE
5318 -- Abort_Present (Flag15)
5320 --------------------------
5321 -- 9.6 Delay Statement --
5322 --------------------------
5324 -- DELAY_STATEMENT ::=
5325 -- DELAY_UNTIL_STATEMENT
5326 -- | DELAY_RELATIVE_STATEMENT
5328 --------------------------------
5329 -- 9.6 Delay Until Statement --
5330 --------------------------------
5332 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5334 -- Note: delay until statements are not permitted in Ada 83 mode
5336 -- Gigi restriction: This node never appears
5338 -- N_Delay_Until_Statement
5339 -- Sloc points to DELAY
5340 -- Expression (Node3)
5342 -----------------------------------
5343 -- 9.6 Delay Relative Statement --
5344 -----------------------------------
5346 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5348 -- Gigi restriction: This node never appears
5350 -- N_Delay_Relative_Statement
5351 -- Sloc points to DELAY
5352 -- Expression (Node3)
5354 ---------------------------
5355 -- 9.7 Select Statement --
5356 ---------------------------
5358 -- SELECT_STATEMENT ::=
5360 -- | TIMED_ENTRY_CALL
5361 -- | CONDITIONAL_ENTRY_CALL
5362 -- | ASYNCHRONOUS_SELECT
5364 -----------------------------
5365 -- 9.7.1 Selective Accept --
5366 -----------------------------
5368 -- SELECTIVE_ACCEPT ::=
5371 -- SELECT_ALTERNATIVE
5374 -- SELECT_ALTERNATIVE}
5376 -- SEQUENCE_OF_STATEMENTS]
5379 -- Gigi restriction: This node never appears
5381 -- Note: the guard expression, if present, appears in the node for
5382 -- the select alternative.
5384 -- N_Selective_Accept
5385 -- Sloc points to SELECT
5386 -- Select_Alternatives (List1)
5387 -- Else_Statements (List4) (set to No_List if no else part)
5393 -- GUARD ::= when CONDITION =>
5395 -- As noted above, the CONDITION that is part of a GUARD is included
5396 -- in the node for the select alternative for convenience.
5398 -------------------------------
5399 -- 9.7.1 Select Alternative --
5400 -------------------------------
5402 -- SELECT_ALTERNATIVE ::=
5403 -- ACCEPT_ALTERNATIVE
5404 -- | DELAY_ALTERNATIVE
5405 -- | TERMINATE_ALTERNATIVE
5407 -------------------------------
5408 -- 9.7.1 Accept Alternative --
5409 -------------------------------
5411 -- ACCEPT_ALTERNATIVE ::=
5412 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5414 -- Gigi restriction: This node never appears
5416 -- N_Accept_Alternative
5417 -- Sloc points to ACCEPT
5418 -- Accept_Statement (Node2)
5419 -- Condition (Node1) from the guard (set to Empty if no guard present)
5420 -- Statements (List3) (set to Empty_List if no statements)
5421 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5422 -- Accept_Handler_Records (List5-Sem)
5424 ------------------------------
5425 -- 9.7.1 Delay Alternative --
5426 ------------------------------
5428 -- DELAY_ALTERNATIVE ::=
5429 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5431 -- Gigi restriction: This node never appears
5433 -- N_Delay_Alternative
5434 -- Sloc points to DELAY
5435 -- Delay_Statement (Node2)
5436 -- Condition (Node1) from the guard (set to Empty if no guard present)
5437 -- Statements (List3) (set to Empty_List if no statements)
5438 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5440 ----------------------------------
5441 -- 9.7.1 Terminate Alternative --
5442 ----------------------------------
5444 -- TERMINATE_ALTERNATIVE ::= terminate;
5446 -- Gigi restriction: This node never appears
5448 -- N_Terminate_Alternative
5449 -- Sloc points to TERMINATE
5450 -- Condition (Node1) from the guard (set to Empty if no guard present)
5451 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5452 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5454 -----------------------------
5455 -- 9.7.2 Timed Entry Call --
5456 -----------------------------
5458 -- TIMED_ENTRY_CALL ::=
5460 -- ENTRY_CALL_ALTERNATIVE
5462 -- DELAY_ALTERNATIVE
5465 -- Gigi restriction: This node never appears
5467 -- N_Timed_Entry_Call
5468 -- Sloc points to SELECT
5469 -- Entry_Call_Alternative (Node1)
5470 -- Delay_Alternative (Node4)
5472 -----------------------------------
5473 -- 9.7.2 Entry Call Alternative --
5474 -----------------------------------
5476 -- ENTRY_CALL_ALTERNATIVE ::=
5477 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5479 -- PROCEDURE_OR_ENTRY_CALL ::=
5480 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5482 -- Gigi restriction: This node never appears
5484 -- N_Entry_Call_Alternative
5485 -- Sloc points to first token of entry call statement
5486 -- Entry_Call_Statement (Node1)
5487 -- Statements (List3) (set to Empty_List if no statements)
5488 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5490 -----------------------------------
5491 -- 9.7.3 Conditional Entry Call --
5492 -----------------------------------
5494 -- CONDITIONAL_ENTRY_CALL ::=
5496 -- ENTRY_CALL_ALTERNATIVE
5498 -- SEQUENCE_OF_STATEMENTS
5501 -- Gigi restriction: This node never appears
5503 -- N_Conditional_Entry_Call
5504 -- Sloc points to SELECT
5505 -- Entry_Call_Alternative (Node1)
5506 -- Else_Statements (List4)
5508 --------------------------------
5509 -- 9.7.4 Asynchronous Select --
5510 --------------------------------
5512 -- ASYNCHRONOUS_SELECT ::=
5514 -- TRIGGERING_ALTERNATIVE
5519 -- Note: asynchronous select is not permitted in Ada 83 mode
5521 -- Gigi restriction: This node never appears
5523 -- N_Asynchronous_Select
5524 -- Sloc points to SELECT
5525 -- Triggering_Alternative (Node1)
5526 -- Abortable_Part (Node2)
5528 -----------------------------------
5529 -- 9.7.4 Triggering Alternative --
5530 -----------------------------------
5532 -- TRIGGERING_ALTERNATIVE ::=
5533 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5535 -- Gigi restriction: This node never appears
5537 -- N_Triggering_Alternative
5538 -- Sloc points to first token of triggering statement
5539 -- Triggering_Statement (Node1)
5540 -- Statements (List3) (set to Empty_List if no statements)
5541 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5543 ---------------------------------
5544 -- 9.7.4 Triggering Statement --
5545 ---------------------------------
5547 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5549 ---------------------------
5550 -- 9.7.4 Abortable Part --
5551 ---------------------------
5553 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5555 -- Gigi restriction: This node never appears
5558 -- Sloc points to ABORT
5559 -- Statements (List3)
5561 --------------------------
5562 -- 9.8 Abort Statement --
5563 --------------------------
5565 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5567 -- Gigi restriction: This node never appears
5569 -- N_Abort_Statement
5570 -- Sloc points to ABORT
5573 -------------------------
5574 -- 10.1.1 Compilation --
5575 -------------------------
5577 -- COMPILATION ::= {COMPILATION_UNIT}
5579 -- There is no explicit node in the tree for a compilation, since in
5580 -- general the compiler is processing only a single compilation unit
5581 -- at a time. It is possible to parse multiple units in syntax check
5582 -- only mode, but the trees are discarded in that case.
5584 ------------------------------
5585 -- 10.1.1 Compilation Unit --
5586 ------------------------------
5588 -- COMPILATION_UNIT ::=
5589 -- CONTEXT_CLAUSE LIBRARY_ITEM
5590 -- | CONTEXT_CLAUSE SUBUNIT
5592 -- The N_Compilation_Unit node itself represents the above syntax.
5593 -- However, there are two additional items not reflected in the above
5594 -- syntax. First we have the global declarations that are added by the
5595 -- code generator. These are outer level declarations (so they cannot
5596 -- be represented as being inside the units). An example is the wrapper
5597 -- subprograms that are created to do ABE checking. As always a list of
5598 -- declarations can contain actions as well (i.e. statements), and such
5599 -- statements are executed as part of the elaboration of the unit. Note
5600 -- that all such declarations are elaborated before the library unit.
5602 -- Similarly, certain actions need to be elaborated at the completion
5603 -- of elaboration of the library unit (notably the statement that sets
5604 -- the Boolean flag indicating that elaboration is complete).
5606 -- The third item not reflected in the syntax is pragmas that appear
5607 -- after the compilation unit. As always pragmas are a problem since
5608 -- they are not part of the formal syntax, but can be stuck into the
5609 -- source following a set of ad hoc rules, and we have to find an ad
5610 -- hoc way of sticking them into the tree. For pragmas that appear
5611 -- before the library unit, we just consider them to be part of the
5612 -- context clause, and pragmas can appear in the Context_Items list
5613 -- of the compilation unit. However, pragmas can also appear after
5614 -- the library item.
5616 -- To deal with all these problems, we create an auxiliary node for
5617 -- a compilation unit, referenced from the N_Compilation_Unit node,
5618 -- that contains these items.
5620 -- N_Compilation_Unit
5621 -- Sloc points to first token of defining unit name
5622 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
5623 -- Context_Items (List1) context items and pragmas preceding unit
5624 -- Private_Present (Flag15) set if library unit has private keyword
5625 -- Unit (Node2) library item or subunit
5626 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5627 -- Has_No_Elaboration_Code (Flag17-Sem)
5628 -- Body_Required (Flag13-Sem) set for spec if body is required
5629 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5630 -- Context_Pending (Flag16-Sem)
5631 -- First_Inlined_Subprogram (Node3-Sem)
5632 -- Has_Pragma_Suppress_All (Flag14-Sem)
5634 -- N_Compilation_Unit_Aux
5635 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
5636 -- Declarations (List2) (set to No_List if no global declarations)
5637 -- Actions (List1) (set to No_List if no actions)
5638 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
5639 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5640 -- Default_Storage_Pool (Node3-Sem)
5642 --------------------------
5643 -- 10.1.1 Library Item --
5644 --------------------------
5647 -- [private] LIBRARY_UNIT_DECLARATION
5648 -- | LIBRARY_UNIT_BODY
5649 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5651 -- Note: PRIVATE is not allowed in Ada 83 mode
5653 -- There is no explicit node in the tree for library item, instead
5654 -- the declaration or body, and the flag for private if present,
5655 -- appear in the N_Compilation_Unit node.
5657 --------------------------------------
5658 -- 10.1.1 Library Unit Declaration --
5659 --------------------------------------
5661 -- LIBRARY_UNIT_DECLARATION ::=
5662 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5663 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
5665 -----------------------------------------------
5666 -- 10.1.1 Library Unit Renaming Declaration --
5667 -----------------------------------------------
5669 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
5670 -- PACKAGE_RENAMING_DECLARATION
5671 -- | GENERIC_RENAMING_DECLARATION
5672 -- | SUBPROGRAM_RENAMING_DECLARATION
5674 -------------------------------
5675 -- 10.1.1 Library unit body --
5676 -------------------------------
5678 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5680 ------------------------------
5681 -- 10.1.1 Parent Unit Name --
5682 ------------------------------
5684 -- PARENT_UNIT_NAME ::= NAME
5686 ----------------------------
5687 -- 10.1.2 Context clause --
5688 ----------------------------
5690 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5692 -- The context clause can include pragmas, and any pragmas that appear
5693 -- before the context clause proper (i.e. all configuration pragmas,
5694 -- also appear at the front of this list).
5696 --------------------------
5697 -- 10.1.2 Context_Item --
5698 --------------------------
5700 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
5702 -------------------------
5703 -- 10.1.2 With clause --
5704 -------------------------
5707 -- with library_unit_NAME {,library_unit_NAME};
5709 -- A separate With clause is built for each name, so that we have
5710 -- a Corresponding_Spec field for each with'ed spec. The flags
5711 -- First_Name and Last_Name are used to reconstruct the exact
5712 -- source form. When a list of names appears in one with clause,
5713 -- the first name in the list has First_Name set, and the last
5714 -- has Last_Name set. If the with clause has only one name, then
5715 -- both of the flags First_Name and Last_Name are set in this name.
5717 -- Note: in the case of implicit with's that are installed by the
5718 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
5719 -- set to Standard_Location, but it is incorrect to test the Sloc
5720 -- to find out if a with clause is implicit, test the flag instead.
5723 -- Sloc points to first token of library unit name
5724 -- Withed_Body (Node1-Sem)
5726 -- Next_Implicit_With (Node3-Sem)
5727 -- Library_Unit (Node4-Sem)
5728 -- Corresponding_Spec (Node5-Sem)
5729 -- First_Name (Flag5) (set to True if first name or only one name)
5730 -- Last_Name (Flag6) (set to True if last name or only one name)
5731 -- Context_Installed (Flag13-Sem)
5732 -- Elaborate_Present (Flag4-Sem)
5733 -- Elaborate_All_Present (Flag14-Sem)
5734 -- Elaborate_All_Desirable (Flag9-Sem)
5735 -- Elaborate_Desirable (Flag11-Sem)
5736 -- Private_Present (Flag15) set if with_clause has private keyword
5737 -- Implicit_With (Flag16-Sem)
5738 -- Limited_Present (Flag17) set if LIMITED is present
5739 -- Limited_View_Installed (Flag18-Sem)
5740 -- Unreferenced_In_Spec (Flag7-Sem)
5741 -- No_Entities_Ref_In_Spec (Flag8-Sem)
5743 -- Note: Limited_Present and Limited_View_Installed give support to
5744 -- Ada 2005 (AI-50217).
5745 -- Similarly, Private_Present gives support to AI-50262.
5747 ----------------------
5748 -- With_Type clause --
5749 ----------------------
5751 -- This is a GNAT extension, used to implement mutually recursive
5752 -- types declared in different packages.
5753 -- Note: this is now obsolete. The functionality of this construct
5754 -- is now implemented by the Ada 2005 Limited_with_Clause.
5756 ---------------------
5757 -- 10.2 Body stub --
5758 ---------------------
5761 -- SUBPROGRAM_BODY_STUB
5762 -- | PACKAGE_BODY_STUB
5764 -- | PROTECTED_BODY_STUB
5766 ----------------------------------
5767 -- 10.1.3 Subprogram Body Stub --
5768 ----------------------------------
5770 -- SUBPROGRAM_BODY_STUB ::=
5771 -- SUBPROGRAM_SPECIFICATION is separate;
5773 -- N_Subprogram_Body_Stub
5774 -- Sloc points to FUNCTION or PROCEDURE
5775 -- Specification (Node1)
5776 -- Library_Unit (Node4-Sem) points to the subunit
5777 -- Corresponding_Body (Node5-Sem)
5779 -------------------------------
5780 -- 10.1.3 Package Body Stub --
5781 -------------------------------
5783 -- PACKAGE_BODY_STUB ::=
5784 -- package body DEFINING_IDENTIFIER is separate;
5786 -- N_Package_Body_Stub
5787 -- Sloc points to PACKAGE
5788 -- Defining_Identifier (Node1)
5789 -- Library_Unit (Node4-Sem) points to the subunit
5790 -- Corresponding_Body (Node5-Sem)
5792 ----------------------------
5793 -- 10.1.3 Task Body Stub --
5794 ----------------------------
5796 -- TASK_BODY_STUB ::=
5797 -- task body DEFINING_IDENTIFIER is separate;
5800 -- Sloc points to TASK
5801 -- Defining_Identifier (Node1)
5802 -- Library_Unit (Node4-Sem) points to the subunit
5803 -- Corresponding_Body (Node5-Sem)
5805 ---------------------------------
5806 -- 10.1.3 Protected Body Stub --
5807 ---------------------------------
5809 -- PROTECTED_BODY_STUB ::=
5810 -- protected body DEFINING_IDENTIFIER is separate;
5812 -- Note: protected body stubs are not allowed in Ada 83 mode
5814 -- N_Protected_Body_Stub
5815 -- Sloc points to PROTECTED
5816 -- Defining_Identifier (Node1)
5817 -- Library_Unit (Node4-Sem) points to the subunit
5818 -- Corresponding_Body (Node5-Sem)
5820 ---------------------
5821 -- 10.1.3 Subunit --
5822 ---------------------
5824 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5827 -- Sloc points to SEPARATE
5828 -- Name (Node2) is the name of the parent unit
5829 -- Proper_Body (Node1) is the subunit body
5830 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5832 ---------------------------------
5833 -- 11.1 Exception Declaration --
5834 ---------------------------------
5836 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
5837 -- [ASPECT_SPECIFICATIONS];
5839 -- For consistency with object declarations etc., the parser converts
5840 -- the case of multiple identifiers being declared to a series of
5841 -- declarations in which the expression is copied, using the More_Ids
5842 -- and Prev_Ids flags to remember the source form as described in the
5843 -- section on "Handling of Defining Identifier Lists".
5845 -- N_Exception_Declaration
5846 -- Sloc points to EXCEPTION
5847 -- Defining_Identifier (Node1)
5848 -- Expression (Node3-Sem)
5849 -- Renaming_Exception (Node2-Sem)
5850 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5851 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5853 ------------------------------------------
5854 -- 11.2 Handled Sequence Of Statements --
5855 ------------------------------------------
5857 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
5858 -- SEQUENCE_OF_STATEMENTS
5860 -- EXCEPTION_HANDLER
5861 -- {EXCEPTION_HANDLER}]
5863 -- cleanup_procedure_call (param, param, param, ...);]
5865 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
5866 -- used only internally currently, but is considered to be syntactic.
5867 -- At the moment, the only cleanup action allowed is a single call to
5868 -- a parameterless procedure, and the Identifier field of the node is
5869 -- the procedure to be called. Also there is a current restriction
5870 -- that exception handles and a cleanup cannot be present in the same
5871 -- frame, so at least one of Exception_Handlers or the Identifier must
5874 -- Actually, more accurately, this restriction applies to the original
5875 -- source program. In the expanded tree, if the At_End_Proc field is
5876 -- present, then there will also be an exception handler of the form:
5878 -- when all others =>
5882 -- where cleanup is the procedure to be generated. The reason we do
5883 -- this is so that the front end can handle the necessary entries in
5884 -- the exception tables, and other exception handler actions required
5885 -- as part of the normal handling for exception handlers.
5887 -- The AT END cleanup handler protects only the sequence of statements
5888 -- (not the associated declarations of the parent), just like exception
5889 -- handlers. The big difference is that the cleanup procedure is called
5890 -- on either a normal or an abnormal exit from the statement sequence.
5892 -- Note: the list of Exception_Handlers can contain pragmas as well
5893 -- as actual handlers. In practice these pragmas can only occur at
5894 -- the start of the list, since any pragmas occurring later on will
5895 -- be included in the statement list of the corresponding handler.
5897 -- Note: although in the Ada syntax, the sequence of statements in
5898 -- a handled sequence of statements can only contain statements, we
5899 -- allow free mixing of declarations and statements in the resulting
5900 -- expanded tree. This is for example used to deal with the case of
5901 -- a cleanup procedure that must handle declarations as well as the
5902 -- statements of a block.
5904 -- N_Handled_Sequence_Of_Statements
5905 -- Sloc points to first token of first statement
5906 -- Statements (List3)
5907 -- End_Label (Node4) (set to Empty if expander generated)
5908 -- Exception_Handlers (List5) (set to No_List if none present)
5909 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
5910 -- First_Real_Statement (Node2-Sem)
5911 -- Zero_Cost_Handling (Flag5-Sem)
5913 -- Note: the parent always contains a Declarations field which contains
5914 -- declarations associated with the handled sequence of statements. This
5915 -- is true even in the case of an accept statement (see description of
5916 -- the N_Accept_Statement node).
5918 -- End_Label refers to the containing construct
5920 -----------------------------
5921 -- 11.2 Exception Handler --
5922 -----------------------------
5924 -- EXCEPTION_HANDLER ::=
5925 -- when [CHOICE_PARAMETER_SPECIFICATION :]
5926 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5927 -- SEQUENCE_OF_STATEMENTS
5929 -- Note: choice parameter specification is not allowed in Ada 83 mode
5931 -- N_Exception_Handler
5932 -- Sloc points to WHEN
5933 -- Choice_Parameter (Node2) (set to Empty if not present)
5934 -- Exception_Choices (List4)
5935 -- Statements (List3)
5936 -- Exception_Label (Node5-Sem) (set to Empty of not present)
5937 -- Zero_Cost_Handling (Flag5-Sem)
5938 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5939 -- Local_Raise_Not_OK (Flag7-Sem)
5940 -- Has_Local_Raise (Flag8-Sem)
5942 ------------------------------------------
5943 -- 11.2 Choice parameter specification --
5944 ------------------------------------------
5946 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5948 ----------------------------
5949 -- 11.2 Exception Choice --
5950 ----------------------------
5952 -- EXCEPTION_CHOICE ::= exception_NAME | others
5954 -- Except in the case of OTHERS, no explicit node appears in the tree
5955 -- for exception choice. Instead the exception name appears directly.
5956 -- An OTHERS choice is represented by a N_Others_Choice node (see
5959 -- Note: for the exception choice created for an at end handler, the
5960 -- exception choice is an N_Others_Choice node with All_Others set.
5962 ---------------------------
5963 -- 11.3 Raise Statement --
5964 ---------------------------
5966 -- RAISE_STATEMENT ::= raise [exception_NAME];
5968 -- In Ada 2005, we have
5970 -- RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5972 -- N_Raise_Statement
5973 -- Sloc points to RAISE
5974 -- Name (Node2) (set to Empty if no exception name present)
5975 -- Expression (Node3) (set to Empty if no expression present)
5976 -- From_At_End (Flag4-Sem)
5978 -------------------------------
5979 -- 12.1 Generic Declaration --
5980 -------------------------------
5982 -- GENERIC_DECLARATION ::=
5983 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5985 ------------------------------------------
5986 -- 12.1 Generic Subprogram Declaration --
5987 ------------------------------------------
5989 -- GENERIC_SUBPROGRAM_DECLARATION ::=
5990 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5992 -- Note: Generic_Formal_Declarations can include pragmas
5994 -- N_Generic_Subprogram_Declaration
5995 -- Sloc points to GENERIC
5996 -- Specification (Node1) subprogram specification
5997 -- Corresponding_Body (Node5-Sem)
5998 -- Generic_Formal_Declarations (List2) from generic formal part
5999 -- Parent_Spec (Node4-Sem)
6001 ---------------------------------------
6002 -- 12.1 Generic Package Declaration --
6003 ---------------------------------------
6005 -- GENERIC_PACKAGE_DECLARATION ::=
6006 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6007 -- [ASPECT_SPECIFICATIONS];
6009 -- Note: when we do generics right, the Activation_Chain_Entity entry
6010 -- for this node can be removed (since the expander won't see generic
6011 -- units any more)???.
6013 -- Note: Generic_Formal_Declarations can include pragmas
6015 -- N_Generic_Package_Declaration
6016 -- Sloc points to GENERIC
6017 -- Specification (Node1) package specification
6018 -- Corresponding_Body (Node5-Sem)
6019 -- Generic_Formal_Declarations (List2) from generic formal part
6020 -- Parent_Spec (Node4-Sem)
6021 -- Activation_Chain_Entity (Node3-Sem)
6023 -------------------------------
6024 -- 12.1 Generic Formal Part --
6025 -------------------------------
6027 -- GENERIC_FORMAL_PART ::=
6028 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6030 ------------------------------------------------
6031 -- 12.1 Generic Formal Parameter Declaration --
6032 ------------------------------------------------
6034 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6035 -- FORMAL_OBJECT_DECLARATION
6036 -- | FORMAL_TYPE_DECLARATION
6037 -- | FORMAL_SUBPROGRAM_DECLARATION
6038 -- | FORMAL_PACKAGE_DECLARATION
6040 ---------------------------------
6041 -- 12.3 Generic Instantiation --
6042 ---------------------------------
6044 -- GENERIC_INSTANTIATION ::=
6045 -- package DEFINING_PROGRAM_UNIT_NAME is
6046 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6047 -- [ASPECT_SPECIFICATIONS];
6048 -- | [[not] overriding]
6049 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6050 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6051 -- [ASPECT_SPECIFICATIONS];
6052 -- | [[not] overriding]
6053 -- function DEFINING_DESIGNATOR is
6054 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6055 -- [ASPECT_SPECIFICATIONS];
6057 -- N_Package_Instantiation
6058 -- Sloc points to PACKAGE
6059 -- Defining_Unit_Name (Node1)
6061 -- Generic_Associations (List3) (set to No_List if no
6062 -- generic actual part)
6063 -- Parent_Spec (Node4-Sem)
6064 -- Instance_Spec (Node5-Sem)
6065 -- ABE_Is_Certain (Flag18-Sem)
6067 -- N_Procedure_Instantiation
6068 -- Sloc points to PROCEDURE
6069 -- Defining_Unit_Name (Node1)
6071 -- Parent_Spec (Node4-Sem)
6072 -- Generic_Associations (List3) (set to No_List if no
6073 -- generic actual part)
6074 -- Instance_Spec (Node5-Sem)
6075 -- Must_Override (Flag14) set if overriding indicator present
6076 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6077 -- ABE_Is_Certain (Flag18-Sem)
6079 -- N_Function_Instantiation
6080 -- Sloc points to FUNCTION
6081 -- Defining_Unit_Name (Node1)
6083 -- Generic_Associations (List3) (set to No_List if no
6084 -- generic actual part)
6085 -- Parent_Spec (Node4-Sem)
6086 -- Instance_Spec (Node5-Sem)
6087 -- Must_Override (Flag14) set if overriding indicator present
6088 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6089 -- ABE_Is_Certain (Flag18-Sem)
6091 -- Note: overriding indicator is an Ada 2005 feature
6093 -------------------------------
6094 -- 12.3 Generic Actual Part --
6095 -------------------------------
6097 -- GENERIC_ACTUAL_PART ::=
6098 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6100 -------------------------------
6101 -- 12.3 Generic Association --
6102 -------------------------------
6104 -- GENERIC_ASSOCIATION ::=
6105 -- [generic_formal_parameter_SELECTOR_NAME =>]
6107 -- Note: unlike the procedure call case, a generic association node
6108 -- is generated for every association, even if no formal parameter
6109 -- selector name is present. In this case the parser will leave the
6110 -- Selector_Name field set to Empty, to be filled in later by the
6113 -- In Ada 2005, a formal may be associated with a box, if the
6114 -- association is part of the list of actuals for a formal package.
6115 -- If the association is given by OTHERS => <>, the association is
6116 -- an N_Others_Choice.
6118 -- N_Generic_Association
6119 -- Sloc points to first token of generic association
6120 -- Selector_Name (Node2) (set to Empty if no formal
6121 -- parameter selector name)
6122 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6123 -- Box_Present (Flag15) (for formal_package associations with a box)
6125 ---------------------------------------------
6126 -- 12.3 Explicit Generic Actual Parameter --
6127 ---------------------------------------------
6129 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6130 -- EXPRESSION | variable_NAME | subprogram_NAME
6131 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
6133 -------------------------------------
6134 -- 12.4 Formal Object Declaration --
6135 -------------------------------------
6137 -- FORMAL_OBJECT_DECLARATION ::=
6138 -- DEFINING_IDENTIFIER_LIST :
6139 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6140 -- [ASPECT_SPECIFICATIONS];
6141 -- | DEFINING_IDENTIFIER_LIST :
6142 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6143 -- [ASPECT_SPECIFICATIONS];
6145 -- Although the syntax allows multiple identifiers in the list, the
6146 -- semantics is as though successive declarations were given with
6147 -- identical type definition and expression components. To simplify
6148 -- semantic processing, the parser represents a multiple declaration
6149 -- case as a sequence of single declarations, using the More_Ids and
6150 -- Prev_Ids flags to preserve the original source form as described
6151 -- in the section on "Handling of Defining Identifier Lists".
6153 -- N_Formal_Object_Declaration
6154 -- Sloc points to first identifier
6155 -- Defining_Identifier (Node1)
6156 -- In_Present (Flag15)
6157 -- Out_Present (Flag17)
6158 -- Null_Exclusion_Present (Flag11) (set to False if not present)
6159 -- Subtype_Mark (Node4) (set to Empty if not present)
6160 -- Access_Definition (Node3) (set to Empty if not present)
6161 -- Default_Expression (Node5) (set to Empty if no default expression)
6162 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6163 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6165 -----------------------------------
6166 -- 12.5 Formal Type Declaration --
6167 -----------------------------------
6169 -- FORMAL_TYPE_DECLARATION ::=
6170 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6171 -- is FORMAL_TYPE_DEFINITION
6172 -- [ASPECT_SPECIFICATIONS];
6174 -- N_Formal_Type_Declaration
6175 -- Sloc points to TYPE
6176 -- Defining_Identifier (Node1)
6177 -- Formal_Type_Definition (Node3)
6178 -- Discriminant_Specifications (List4) (set to No_List if no
6179 -- discriminant part)
6180 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6182 ----------------------------------
6183 -- 12.5 Formal type definition --
6184 ----------------------------------
6186 -- FORMAL_TYPE_DEFINITION ::=
6187 -- FORMAL_PRIVATE_TYPE_DEFINITION
6188 -- | FORMAL_DERIVED_TYPE_DEFINITION
6189 -- | FORMAL_DISCRETE_TYPE_DEFINITION
6190 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6191 -- | FORMAL_MODULAR_TYPE_DEFINITION
6192 -- | FORMAL_FLOATING_POINT_DEFINITION
6193 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6194 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6195 -- | FORMAL_ARRAY_TYPE_DEFINITION
6196 -- | FORMAL_ACCESS_TYPE_DEFINITION
6197 -- | FORMAL_INTERFACE_TYPE_DEFINITION
6199 ---------------------------------------------
6200 -- 12.5.1 Formal Private Type Definition --
6201 ---------------------------------------------
6203 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
6204 -- [[abstract] tagged] [limited] private
6206 -- Note: TAGGED is not allowed in Ada 83 mode
6208 -- N_Formal_Private_Type_Definition
6209 -- Sloc points to PRIVATE
6210 -- Abstract_Present (Flag4)
6211 -- Tagged_Present (Flag15)
6212 -- Limited_Present (Flag17)
6214 --------------------------------------------
6215 -- 12.5.1 Formal Derived Type Definition --
6216 --------------------------------------------
6218 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
6219 -- [abstract] [limited | synchronized]
6220 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6221 -- Note: this construct is not allowed in Ada 83 mode
6223 -- N_Formal_Derived_Type_Definition
6224 -- Sloc points to NEW
6225 -- Subtype_Mark (Node4)
6226 -- Private_Present (Flag15)
6227 -- Abstract_Present (Flag4)
6228 -- Limited_Present (Flag17)
6229 -- Synchronized_Present (Flag7)
6230 -- Interface_List (List2) (set to No_List if none)
6232 ---------------------------------------------
6233 -- 12.5.2 Formal Discrete Type Definition --
6234 ---------------------------------------------
6236 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6238 -- N_Formal_Discrete_Type_Definition
6241 ---------------------------------------------------
6242 -- 12.5.2 Formal Signed Integer Type Definition --
6243 ---------------------------------------------------
6245 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6247 -- N_Formal_Signed_Integer_Type_Definition
6248 -- Sloc points to RANGE
6250 --------------------------------------------
6251 -- 12.5.2 Formal Modular Type Definition --
6252 --------------------------------------------
6254 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6256 -- N_Formal_Modular_Type_Definition
6257 -- Sloc points to MOD
6259 ----------------------------------------------
6260 -- 12.5.2 Formal Floating Point Definition --
6261 ----------------------------------------------
6263 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6265 -- N_Formal_Floating_Point_Definition
6266 -- Sloc points to DIGITS
6268 ----------------------------------------------------
6269 -- 12.5.2 Formal Ordinary Fixed Point Definition --
6270 ----------------------------------------------------
6272 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6274 -- N_Formal_Ordinary_Fixed_Point_Definition
6275 -- Sloc points to DELTA
6277 ---------------------------------------------------
6278 -- 12.5.2 Formal Decimal Fixed Point Definition --
6279 ---------------------------------------------------
6281 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6283 -- Note: formal decimal fixed point definition not allowed in Ada 83
6285 -- N_Formal_Decimal_Fixed_Point_Definition
6286 -- Sloc points to DELTA
6288 ------------------------------------------
6289 -- 12.5.3 Formal Array Type Definition --
6290 ------------------------------------------
6292 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6294 -------------------------------------------
6295 -- 12.5.4 Formal Access Type Definition --
6296 -------------------------------------------
6298 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6300 ----------------------------------------------
6301 -- 12.5.5 Formal Interface Type Definition --
6302 ----------------------------------------------
6304 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6306 -----------------------------------------
6307 -- 12.6 Formal Subprogram Declaration --
6308 -----------------------------------------
6310 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6311 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6312 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6314 --------------------------------------------------
6315 -- 12.6 Formal Concrete Subprogram Declaration --
6316 --------------------------------------------------
6318 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6319 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6320 -- [ASPECT_SPECIFICATIONS];
6322 -- N_Formal_Concrete_Subprogram_Declaration
6323 -- Sloc points to WITH
6324 -- Specification (Node1)
6325 -- Default_Name (Node2) (set to Empty if no subprogram default)
6326 -- Box_Present (Flag15)
6328 -- Note: if no subprogram default is present, then Name is set
6329 -- to Empty, and Box_Present is False.
6331 --------------------------------------------------
6332 -- 12.6 Formal Abstract Subprogram Declaration --
6333 --------------------------------------------------
6335 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6336 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6337 -- [ASPECT_SPECIFICATIONS];
6339 -- N_Formal_Abstract_Subprogram_Declaration
6340 -- Sloc points to WITH
6341 -- Specification (Node1)
6342 -- Default_Name (Node2) (set to Empty if no subprogram default)
6343 -- Box_Present (Flag15)
6345 -- Note: if no subprogram default is present, then Name is set
6346 -- to Empty, and Box_Present is False.
6348 ------------------------------
6349 -- 12.6 Subprogram Default --
6350 ------------------------------
6352 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6354 -- There is no separate node in the tree for a subprogram default.
6355 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6356 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6357 -- default name or box indication, as needed.
6359 ------------------------
6360 -- 12.6 Default Name --
6361 ------------------------
6363 -- DEFAULT_NAME ::= NAME
6365 --------------------------------------
6366 -- 12.7 Formal Package Declaration --
6367 --------------------------------------
6369 -- FORMAL_PACKAGE_DECLARATION ::=
6370 -- with package DEFINING_IDENTIFIER
6371 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
6372 -- [ASPECT_SPECIFICATIONS];
6374 -- Note: formal package declarations not allowed in Ada 83 mode
6376 -- N_Formal_Package_Declaration
6377 -- Sloc points to WITH
6378 -- Defining_Identifier (Node1)
6380 -- Generic_Associations (List3) (set to No_List if (<>) case or
6381 -- empty generic actual part)
6382 -- Box_Present (Flag15)
6383 -- Instance_Spec (Node5-Sem)
6384 -- ABE_Is_Certain (Flag18-Sem)
6386 --------------------------------------
6387 -- 12.7 Formal Package Actual Part --
6388 --------------------------------------
6390 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6392 -- | [GENERIC_ACTUAL_PART]
6393 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6395 -- FORMAL_PACKAGE_ASSOCIATION ::=
6396 -- GENERIC_ASSOCIATION
6397 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6399 -- There is no explicit node in the tree for a formal package actual
6400 -- part. Instead the information appears in the parent node (i.e. the
6401 -- formal package declaration node itself).
6403 -- There is no explicit node for a formal package association. All of
6404 -- them are represented either by a generic association, possibly with
6405 -- Box_Present, or by an N_Others_Choice.
6407 ---------------------------------
6408 -- 13.1 Representation clause --
6409 ---------------------------------
6411 -- REPRESENTATION_CLAUSE ::=
6412 -- ATTRIBUTE_DEFINITION_CLAUSE
6413 -- | ENUMERATION_REPRESENTATION_CLAUSE
6414 -- | RECORD_REPRESENTATION_CLAUSE
6417 ----------------------
6418 -- 13.1 Local Name --
6419 ----------------------
6423 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6424 -- | library_unit_NAME
6426 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6427 -- as an attribute reference, which has essentially the same form.
6429 ---------------------------------------
6430 -- 13.3 Attribute definition clause --
6431 ---------------------------------------
6433 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6434 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6435 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6437 -- In Ada 83, the expression must be a simple expression and the
6438 -- local name must be a direct name.
6440 -- Note: the only attribute definition clause that is processed by
6441 -- gigi is an address clause. For all other cases, the information
6442 -- is extracted by the front end and either results in setting entity
6443 -- information, e.g. Esize for the Size clause, or in appropriate
6444 -- expansion actions (e.g. in the case of Storage_Size).
6446 -- For an address clause, Gigi constructs the appropriate addressing
6447 -- code. It also ensures that no aliasing optimizations are made
6448 -- for the object for which the address clause appears.
6450 -- Note: for an address clause used to achieve an overlay:
6454 -- for B'Address use A'Address;
6456 -- the above rule means that Gigi will ensure that no optimizations
6457 -- will be made for B that would violate the implementation advice
6458 -- of RM 13.3(19). However, this advice applies only to B and not
6459 -- to A, which seems unfortunate. The GNAT front end will mark the
6460 -- object A as volatile to also prevent unwanted optimization
6461 -- assumptions based on no aliasing being made for B.
6463 -- N_Attribute_Definition_Clause
6464 -- Sloc points to FOR
6465 -- Name (Node2) the local name
6466 -- Chars (Name1) the identifier name from the attribute designator
6467 -- Expression (Node3) the expression or name
6468 -- Entity (Node4-Sem)
6469 -- Next_Rep_Item (Node5-Sem)
6470 -- From_At_Mod (Flag4-Sem)
6471 -- Check_Address_Alignment (Flag11-Sem)
6472 -- From_Aspect_Specification (Flag13-Sem)
6473 -- Is_Delayed_Aspect (Flag14-Sem)
6474 -- Address_Warning_Posted (Flag18-Sem)
6476 -- Note: if From_Aspect_Specification is set, then Sloc points to the
6477 -- aspect name, and Entity is resolved already to reference the entity
6478 -- to which the aspect applies.
6480 -----------------------------------
6481 -- 13.3.1 Aspect Specifications --
6482 -----------------------------------
6484 -- We modify the RM grammar here, the RM grammar is:
6486 -- ASPECT_SPECIFICATION ::=
6487 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {.
6488 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
6490 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6492 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
6494 -- That's inconvenient, since there is no non-terminal name for a single
6495 -- entry in the list of aspects. So we use this grammar instead:
6497 -- ASPECT_SPECIFICATIONS ::=
6498 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
6500 -- ASPECT_SPECIFICATION =>
6501 -- ASPECT_MARK [=> ASPECT_DEFINITION]
6503 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6505 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
6507 -- See separate package Aspects for details on the incorporation of
6508 -- these nodes into the tree, and how aspect specifications for a given
6509 -- declaration node are associated with that node.
6511 -- N_Aspect_Specification
6512 -- Sloc points to aspect identifier
6513 -- Identifier (Node1) aspect identifier
6514 -- Aspect_Rep_Item (Node2-Sem)
6515 -- Expression (Node3) Aspect_Definition (set to Empty if none)
6516 -- Entity (Node4-Sem) entity to which the aspect applies
6517 -- Class_Present (Flag6) Set if 'Class present
6518 -- Next_Rep_Item (Node5-Sem)
6519 -- Split_PPC (Flag17) Set if split pre/post attribute
6521 -- Note: Aspect_Specification is an Ada 2012 feature
6523 -- Note: When a Pre or Post aspect specification is processed, it is
6524 -- broken into AND THEN sections. The left most section has Split_PPC
6525 -- set to False, indicating that it is the original specification (e.g.
6526 -- for posting errors). For the other sections, Split_PPC is set True.
6528 ---------------------------------------------
6529 -- 13.4 Enumeration representation clause --
6530 ---------------------------------------------
6532 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
6533 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6535 -- In Ada 83, the name must be a direct name
6537 -- N_Enumeration_Representation_Clause
6538 -- Sloc points to FOR
6539 -- Identifier (Node1) direct name
6540 -- Array_Aggregate (Node3)
6541 -- Next_Rep_Item (Node5-Sem)
6543 ---------------------------------
6544 -- 13.4 Enumeration aggregate --
6545 ---------------------------------
6547 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6549 ------------------------------------------
6550 -- 13.5.1 Record representation clause --
6551 ------------------------------------------
6553 -- RECORD_REPRESENTATION_CLAUSE ::=
6554 -- for first_subtype_LOCAL_NAME use
6555 -- record [MOD_CLAUSE]
6556 -- {COMPONENT_CLAUSE}
6559 -- Gigi restriction: Mod_Clause is always Empty (if present it is
6560 -- replaced by a corresponding Alignment attribute definition clause).
6562 -- Note: Component_Clauses can include pragmas
6564 -- N_Record_Representation_Clause
6565 -- Sloc points to FOR
6566 -- Identifier (Node1) direct name
6567 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
6568 -- Component_Clauses (List3)
6569 -- Next_Rep_Item (Node5-Sem)
6571 ------------------------------
6572 -- 13.5.1 Component clause --
6573 ------------------------------
6575 -- COMPONENT_CLAUSE ::=
6576 -- component_LOCAL_NAME at POSITION
6577 -- range FIRST_BIT .. LAST_BIT;
6579 -- N_Component_Clause
6580 -- Sloc points to AT
6581 -- Component_Name (Node1) points to Name or Attribute_Reference
6583 -- First_Bit (Node3)
6586 ----------------------
6587 -- 13.5.1 Position --
6588 ----------------------
6590 -- POSITION ::= static_EXPRESSION
6592 -----------------------
6593 -- 13.5.1 First_Bit --
6594 -----------------------
6596 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
6598 ----------------------
6599 -- 13.5.1 Last_Bit --
6600 ----------------------
6602 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
6604 --------------------------
6605 -- 13.8 Code statement --
6606 --------------------------
6608 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6610 -- Note: in GNAT, the qualified expression has the form
6612 -- Asm_Insn'(Asm (...));
6614 -- See package System.Machine_Code in file s-maccod.ads for details on
6615 -- the allowed parameters to Asm. There are two ways this node can
6616 -- arise, as a code statement, in which case the expression is the
6617 -- qualified expression, or as a result of the expansion of an intrinsic
6618 -- call to the Asm or Asm_Input procedure.
6621 -- Sloc points to first token of the expression
6622 -- Expression (Node3)
6624 -- Note: package Exp_Code contains an abstract functional interface
6625 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
6627 ------------------------
6628 -- 13.12 Restriction --
6629 ------------------------
6632 -- restriction_IDENTIFIER
6633 -- | restriction_parameter_IDENTIFIER => EXPRESSION
6635 -- There is no explicit node for restrictions. Instead the restriction
6636 -- appears in normal pragma syntax as a pragma argument association,
6637 -- which has the same syntactic form.
6639 --------------------------
6640 -- B.2 Shift Operators --
6641 --------------------------
6643 -- Calls to the intrinsic shift functions are converted to one of
6644 -- the following shift nodes, which have the form of normal binary
6645 -- operator names. Note that for a given shift operation, one node
6646 -- covers all possible types, as for normal operators.
6648 -- Note: it is perfectly permissible for the expander to generate
6649 -- shift operation nodes directly, in which case they will be analyzed
6650 -- and parsed in the usual manner.
6652 -- Sprint syntax: shift-function-name!(expr, count)
6654 -- Note: the Left_Opnd field holds the first argument (the value to
6655 -- be shifted). The Right_Opnd field holds the second argument (the
6656 -- shift count). The Chars field is the name of the intrinsic function.
6659 -- Sloc points to the function name
6660 -- plus fields for binary operator
6661 -- plus fields for expression
6662 -- Shift_Count_OK (Flag4-Sem)
6664 -- N_Op_Rotate_Right
6665 -- Sloc points to the function name
6666 -- plus fields for binary operator
6667 -- plus fields for expression
6668 -- Shift_Count_OK (Flag4-Sem)
6671 -- Sloc points to the function name
6672 -- plus fields for binary operator
6673 -- plus fields for expression
6674 -- Shift_Count_OK (Flag4-Sem)
6676 -- N_Op_Shift_Right_Arithmetic
6677 -- Sloc points to the function name
6678 -- plus fields for binary operator
6679 -- plus fields for expression
6680 -- Shift_Count_OK (Flag4-Sem)
6683 -- Sloc points to the function name
6684 -- plus fields for binary operator
6685 -- plus fields for expression
6686 -- Shift_Count_OK (Flag4-Sem)
6688 --------------------------
6689 -- Obsolescent Features --
6690 --------------------------
6692 -- The syntax descriptions and tree nodes for obsolescent features are
6693 -- grouped together, corresponding to their location in appendix I in
6694 -- the RM. However, parsing and semantic analysis for these constructs
6695 -- is located in an appropriate chapter (see individual notes).
6697 ---------------------------
6698 -- J.3 Delta Constraint --
6699 ---------------------------
6701 -- Note: the parse routine for this construct is located in section
6702 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6703 -- where delta constraint logically belongs.
6705 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6707 -- N_Delta_Constraint
6708 -- Sloc points to DELTA
6709 -- Delta_Expression (Node3)
6710 -- Range_Constraint (Node4) (set to Empty if not present)
6712 --------------------
6714 --------------------
6716 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6718 -- Note: the parse routine for this construct is located in Par-Ch13,
6719 -- and the semantic analysis is in Sem_Ch13, where at clause logically
6720 -- belongs if it were not obsolescent.
6722 -- Note: in Ada 83 the expression must be a simple expression
6724 -- Gigi restriction: This node never appears, it is rewritten as an
6725 -- address attribute definition clause.
6728 -- Sloc points to FOR
6729 -- Identifier (Node1)
6730 -- Expression (Node3)
6732 ---------------------
6733 -- J.8 Mod clause --
6734 ---------------------
6736 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
6738 -- Note: the parse routine for this construct is located in Par-Ch13,
6739 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
6740 -- belongs if it were not obsolescent.
6742 -- Note: in Ada 83, the expression must be a simple expression
6744 -- Gigi restriction: this node never appears. It is replaced
6745 -- by a corresponding Alignment attribute definition clause.
6747 -- Note: pragmas can appear before and after the MOD_CLAUSE since
6748 -- its name has "clause" in it. This is rather strange, but is quite
6749 -- definitely specified. The pragmas before are collected in the
6750 -- Pragmas_Before field of the mod clause node itself, and pragmas
6751 -- after are simply swallowed up in the list of component clauses.
6754 -- Sloc points to AT
6755 -- Expression (Node3)
6756 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6758 --------------------
6759 -- Semantic Nodes --
6760 --------------------
6762 -- These semantic nodes are used to hold additional semantic information.
6763 -- They are inserted into the tree as a result of semantic processing.
6764 -- Although there are no legitimate source syntax constructions that
6765 -- correspond directly to these nodes, we need a source syntax for the
6766 -- reconstructed tree printed by Sprint, and the node descriptions here
6767 -- show this syntax.
6769 -- Note: Case_Expression and Conditional_Expression is in this section for
6770 -- now, since they are extensions. We will move them to their appropriate
6771 -- places when they are officially approved as extensions (and then we will
6772 -- know what the exact grammar and place in the Reference Manual is!)
6774 ---------------------
6775 -- Case Expression --
6776 ---------------------
6778 -- CASE_EXPRESSION ::=
6779 -- case EXPRESSION is
6780 -- CASE_EXPRESSION_ALTERNATIVE
6781 -- {CASE_EXPRESSION_ALTERNATIVE}
6783 -- Note that the Alternatives cannot include pragmas (this constrasts
6784 -- with the situation of case statements where pragmas are allowed).
6786 -- N_Case_Expression
6787 -- Sloc points to CASE
6788 -- Expression (Node3)
6789 -- Alternatives (List4)
6791 ---------------------------------
6792 -- Case Expression Alternative --
6793 ---------------------------------
6795 -- CASE_STATEMENT_ALTERNATIVE ::=
6796 -- when DISCRETE_CHOICE_LIST =>
6799 -- N_Case_Expression_Alternative
6800 -- Sloc points to WHEN
6802 -- Discrete_Choices (List4)
6803 -- Expression (Node3)
6805 -- Note: The Actions field temporarily holds any actions associated with
6806 -- evaluation of the Expression. During expansion of the case expression
6807 -- these actions are wrapped into the an N_Expressions_With_Actions node
6808 -- replacing the original expression.
6810 ----------------------------
6811 -- Conditional Expression --
6812 ----------------------------
6814 -- This node is used to represent an expression corresponding to the
6815 -- C construct (condition ? then-expression : else_expression), where
6816 -- Expressions is a three element list, whose first expression is the
6817 -- condition, and whose second and third expressions are the then and
6818 -- else expressions respectively.
6820 -- Note: the Then_Actions and Else_Actions fields are always set to
6821 -- No_List in the tree passed to Gigi. These fields are used only
6822 -- for temporary processing purposes in the expander.
6824 -- The Ada language does not permit conditional expressions, however
6825 -- this is under discussion as a possible extension by the ARG, and we
6826 -- have implemented a form of this capability in GNAT under control of
6827 -- the -gnatX switch. The syntax is:
6829 -- CONDITIONAL_EXPRESSION ::=
6830 -- if EXPRESSION then EXPRESSION
6831 -- {elsif EXPRESSION then EXPRESSION}
6832 -- [else EXPRESSION]
6834 -- And we add the additional constructs
6836 -- PRIMARY ::= ( CONDITIONAL_EXPRESION )
6837 -- PRAGMA_ARGUMENT_ASSOCIATION ::= CONDITIONAL_EXPRESSION
6839 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
6840 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
6841 -- the Is_Elsif flag is set on the inner conditional expression.
6843 -- N_Conditional_Expression
6844 -- Sloc points to IF or ELSIF keyword
6845 -- Expressions (List1)
6846 -- Then_Actions (List2-Sem)
6847 -- Else_Actions (List3-Sem)
6848 -- Is_Elsif (Flag13) (set if comes from ELSIF)
6849 -- plus fields for expression
6855 -- The N_Expanded_Name node is used to represent a selected component
6856 -- name that has been resolved to an expanded name. The semantic phase
6857 -- replaces N_Selected_Component nodes that represent names by the use
6858 -- of this node, leaving the N_Selected_Component node used only when
6859 -- the prefix is a record or protected type.
6861 -- The fields of the N_Expanded_Name node are layed out identically
6862 -- to those of the N_Selected_Component node, allowing conversion of
6863 -- an expanded name node to a selected component node to be done
6864 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6866 -- There is no special sprint syntax for an expanded name
6869 -- Sloc points to the period
6870 -- Chars (Name1) copy of Chars field of selector name
6872 -- Selector_Name (Node2)
6873 -- Entity (Node4-Sem)
6874 -- Associated_Node (Node4-Sem)
6875 -- Redundant_Use (Flag13-Sem)
6876 -- Has_Private_View (Flag11-Sem) set in generic units.
6877 -- plus fields for expression
6879 -----------------------------
6880 -- Expression with Actions --
6881 -----------------------------
6883 -- This node is created by the analyzer/expander to handle some
6884 -- expansion cases, notably short circuit forms where there are
6885 -- actions associated with the right hand operand.
6887 -- The N_Expression_With_Actions node represents an expression with
6888 -- an associated set of actions (which are executable statements and
6889 -- declarations, as might occur in a handled statement sequence).
6891 -- The required semantics is that the set of actions is executed in
6892 -- the order in which it appears just before the expression is
6893 -- evaluated (and these actions must only be executed if the value
6894 -- of the expression is evaluated). The node is considered to be
6895 -- a subexpression, whose value is the value of the Expression after
6896 -- executing all the actions.
6898 -- Note: if the actions contain declarations, then these declarations
6899 -- maybe referenced with in the expression. It is thus appropriate for
6900 -- the back end to create a scope that encompasses the construct (any
6901 -- declarations within the actions will definitely not be referenced
6902 -- once elaboration of the construct is completed).
6904 -- Sprint syntax: do
6909 -- in expression end
6911 -- N_Expression_With_Actions
6913 -- Expression (Node3)
6914 -- plus fields for expression
6916 -- Note: the actions list is always non-null, since we would
6917 -- never have created this node if there weren't some actions.
6919 --------------------
6920 -- Free Statement --
6921 --------------------
6923 -- The N_Free_Statement node is generated as a result of a call to an
6924 -- instantiation of Unchecked_Deallocation. The instantiation of this
6925 -- generic is handled specially and generates this node directly.
6927 -- Sprint syntax: free expression
6930 -- Sloc is copied from the unchecked deallocation call
6931 -- Expression (Node3) argument to unchecked deallocation call
6932 -- Storage_Pool (Node1-Sem)
6933 -- Procedure_To_Call (Node2-Sem)
6934 -- Actual_Designated_Subtype (Node4-Sem)
6936 -- Note: in the case where a debug source file is generated, the Sloc
6937 -- for this node points to the FREE keyword in the Sprint file output.
6943 -- This node marks the point in a declarative part at which an entity
6944 -- declared therein becomes frozen. The expander places initialization
6945 -- procedures for types at those points. Gigi uses the freezing point
6946 -- to elaborate entities that may depend on previous private types.
6948 -- See the section in Einfo "Delayed Freezing and Elaboration" for
6949 -- a full description of the use of this node.
6951 -- The Entity field points back to the entity for the type (whose
6952 -- Freeze_Node field points back to this freeze node).
6954 -- The Actions field contains a list of declarations and statements
6955 -- generated by the expander which are associated with the freeze
6956 -- node, and are elaborated as though the freeze node were replaced
6957 -- by this sequence of actions.
6959 -- Note: the Sloc field in the freeze node references a construct
6960 -- associated with the freezing point. This is used for posting
6961 -- messages in some error/warning situations, e.g. the case where
6962 -- a primitive operation of a tagged type is declared too late.
6964 -- Sprint syntax: freeze entity-name [
6969 -- Sloc points near freeze point (see above special note)
6970 -- Entity (Node4-Sem)
6971 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6972 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6973 -- Actions (List1) (set to No_List if no freeze actions)
6974 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6976 -- The Actions field holds actions associated with the freeze. These
6977 -- actions are elaborated at the point where the type is frozen.
6979 -- Note: in the case where a debug source file is generated, the Sloc
6980 -- for this node points to the FREEZE keyword in the Sprint file output.
6982 --------------------------------
6983 -- Implicit Label Declaration --
6984 --------------------------------
6986 -- An implicit label declaration is created for every occurrence of a
6987 -- label on a statement or a label on a block or loop. It is chained
6988 -- in the declarations of the innermost enclosing block as specified
6989 -- in RM section 5.1 (3).
6991 -- The Defining_Identifier is the actual identifier for the statement
6992 -- identifier. Note that the occurrence of the label is a reference, NOT
6993 -- the defining occurrence. The defining occurrence occurs at the head
6994 -- of the innermost enclosing block, and is represented by this node.
6996 -- Note: from the grammar, this might better be called an implicit
6997 -- statement identifier declaration, but the term we choose seems
6998 -- friendlier, since at least informally statement identifiers are
6999 -- called labels in both cases (i.e. when used in labels, and when
7000 -- used as the identifiers of blocks and loops).
7002 -- Note: although this is logically a semantic node, since it does not
7003 -- correspond directly to a source syntax construction, these nodes are
7004 -- actually created by the parser in a post pass done just after parsing
7005 -- is complete, before semantic analysis is started (see Par.Labl).
7007 -- Sprint syntax: labelname : label;
7009 -- N_Implicit_Label_Declaration
7010 -- Sloc points to the << of the label
7011 -- Defining_Identifier (Node1)
7012 -- Label_Construct (Node2-Sem)
7014 -- Note: in the case where a debug source file is generated, the Sloc
7015 -- for this node points to the label name in the generated declaration.
7017 ---------------------
7018 -- Itype_Reference --
7019 ---------------------
7021 -- This node is used to create a reference to an Itype. The only purpose
7022 -- is to make sure the Itype is defined if this is the first reference.
7024 -- A typical use of this node is when an Itype is to be referenced in
7025 -- two branches of an IF statement. In this case it is important that
7026 -- the first use of the Itype not be inside the conditional, since then
7027 -- it might not be defined if the other branch of the IF is taken, in
7028 -- the case where the definition generates elaboration code.
7030 -- The Itype field points to the referenced Itype
7032 -- Sprint syntax: reference itype-name
7034 -- N_Itype_Reference
7035 -- Sloc points to the node generating the reference
7036 -- Itype (Node1-Sem)
7038 -- Note: in the case where a debug source file is generated, the Sloc
7039 -- for this node points to the REFERENCE keyword in the file output.
7041 ---------------------
7042 -- Raise_xxx_Error --
7043 ---------------------
7045 -- One of these nodes is created during semantic analysis to replace
7046 -- a node for an expression that is determined to definitely raise
7047 -- the corresponding exception.
7049 -- The N_Raise_xxx_Error node may also stand alone in place
7050 -- of a declaration or statement, in which case it simply causes
7051 -- the exception to be raised (i.e. it is equivalent to a raise
7052 -- statement that raises the corresponding exception). This use
7053 -- is distinguished by the fact that the Etype in this case is
7054 -- Standard_Void_Type, In the subexpression case, the Etype is the
7055 -- same as the type of the subexpression which it replaces.
7057 -- If Condition is empty, then the raise is unconditional. If the
7058 -- Condition field is non-empty, it is a boolean expression which
7059 -- is first evaluated, and the exception is raised only if the
7060 -- value of the expression is True. In the unconditional case, the
7061 -- creation of this node is usually accompanied by a warning message
7062 -- error. The creation of this node will usually be accompanied by a
7063 -- message (unless it appears within the right operand of a short
7064 -- circuit form whose left argument is static and decisively
7065 -- eliminates elaboration of the raise operation. The condition field
7066 -- can ONLY be present when the node is used as a statement form, it
7067 -- may NOT be present in the case where the node appears within an
7070 -- The exception is generated with a message that contains the
7071 -- file name and line number, and then appended text. The Reason
7072 -- code shows the text to be added. The Reason code is an element
7073 -- of the type Types.RT_Exception_Code, and indicates both the
7074 -- message to be added, and the exception to be raised (which must
7075 -- match the node type). The value is stored by storing a Uint which
7076 -- is the Pos value of the enumeration element in this type.
7078 -- Gigi restriction: This expander ensures that the type of the
7079 -- Condition field is always Standard.Boolean, even if the type
7080 -- in the source is some non-standard boolean type.
7082 -- Sprint syntax: [xxx_error "msg"]
7083 -- or: [xxx_error when condition "msg"]
7085 -- N_Raise_Constraint_Error
7086 -- Sloc references related construct
7087 -- Condition (Node1) (set to Empty if no condition)
7089 -- plus fields for expression
7091 -- N_Raise_Program_Error
7092 -- Sloc references related construct
7093 -- Condition (Node1) (set to Empty if no condition)
7095 -- plus fields for expression
7097 -- N_Raise_Storage_Error
7098 -- Sloc references related construct
7099 -- Condition (Node1) (set to Empty if no condition)
7101 -- plus fields for expression
7103 -- Note: Sloc is copied from the expression generating the exception.
7104 -- In the case where a debug source file is generated, the Sloc for
7105 -- this node points to the left bracket in the Sprint file output.
7107 -- Note: the back end may be required to translate these nodes into
7108 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7110 ---------------------------------------------
7111 -- Optimization of Exception Raise to Goto --
7112 ---------------------------------------------
7114 -- In some cases, the front end will determine that any exception raised
7115 -- by the back end for a certain exception should be transformed into a
7118 -- There are three kinds of exceptions raised by the back end (note that
7119 -- for this purpose we consider gigi to be part of the back end in the
7122 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
7123 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
7124 -- 3. Other cases not specifically marked by the front end
7126 -- Normally all such exceptions are translated into calls to the proper
7127 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
7128 -- and the exception message.
7130 -- The front end may determine that for a particular sequence of code,
7131 -- exceptions in any of these three categories for a particular builtin
7132 -- exception should result in a goto, rather than a call to Rcheck_xx.
7133 -- The exact sequence to be generated is:
7135 -- Local_Raise (exception'Identity);
7138 -- The front end marks such a sequence of code by bracketing it with
7139 -- push and pop nodes:
7141 -- N_Push_xxx_Label (referencing the label)
7143 -- (code where transformation is expected for exception xxx)
7147 -- The use of push/pop reflects the fact that such regions can properly
7148 -- nest, and one special case is a subregion in which no transformation
7149 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7150 -- Exception_Label field is Empty.
7152 -- N_Push_Constraint_Error_Label
7153 -- Sloc references first statement in region covered
7154 -- Exception_Label (Node5-Sem)
7156 -- N_Push_Program_Error_Label
7157 -- Sloc references first statement in region covered
7158 -- Exception_Label (Node5-Sem)
7160 -- N_Push_Storage_Error_Label
7161 -- Sloc references first statement in region covered
7162 -- Exception_Label (Node5-Sem)
7164 -- N_Pop_Constraint_Error_Label
7165 -- Sloc references last statement in region covered
7167 -- N_Pop_Program_Error_Label
7168 -- Sloc references last statement in region covered
7170 -- N_Pop_Storage_Error_Label
7171 -- Sloc references last statement in region covered
7177 -- For a number of purposes, we need to construct references to objects.
7178 -- These references are subsequently treated as normal access values.
7179 -- An example is the construction of the parameter block passed to a
7180 -- task entry. The N_Reference node is provided for this purpose. It is
7181 -- similar in effect to the use of the Unrestricted_Access attribute,
7182 -- and like Unrestricted_Access can be applied to objects which would
7183 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
7184 -- objects which are not aliased, and slices). In addition it can be
7185 -- applied to composite type values as well as objects, including string
7186 -- values and aggregates.
7188 -- Note: we use the Prefix field for this expression so that the
7189 -- resulting node can be treated using common code with the attribute
7190 -- nodes for the 'Access and related attributes. Logically it would make
7191 -- more sense to call it an Expression field, but then we would have to
7192 -- special case the treatment of the N_Reference node.
7194 -- Sprint syntax: prefix'reference
7197 -- Sloc is copied from the expression
7199 -- plus fields for expression
7201 -- Note: in the case where a debug source file is generated, the Sloc
7202 -- for this node points to the quote in the Sprint file output.
7208 -- SCIL nodes are special nodes added to the tree when the CodePeer
7209 -- mode is active. They help the CodePeer backend to locate nodes that
7210 -- require special processing.
7212 -- Major documentation on the general design of the SCIL interface, and
7213 -- in particular detailed description of these nodes is missing and is
7214 -- to be supplied in the future, when the design has finalized ???
7216 -- Meanwhile these nodes should be considered in experimental form, and
7217 -- should be ignored by all code generating back ends. ???
7219 -- N_SCIL_Dispatch_Table_Tag_Init
7220 -- Sloc references a node for a tag initialization
7221 -- SCIL_Entity (Node4-Sem)
7223 -- N_SCIL_Dispatching_Call
7224 -- Sloc references the node of a dispatching call
7225 -- SCIL_Target_Prim (Node2-Sem)
7226 -- SCIL_Entity (Node4-Sem)
7227 -- SCIL_Controlling_Tag (Node5-Sem)
7229 -- N_SCIL_Membership_Test
7230 -- Sloc references the node of a membership test
7231 -- SCIL_Tag_Value (Node5-Sem)
7232 -- SCIL_Entity (Node4-Sem)
7234 ---------------------
7235 -- Subprogram_Info --
7236 ---------------------
7238 -- This node generates the appropriate Subprogram_Info value for a
7239 -- given procedure. See Ada.Exceptions for further details
7241 -- Sprint syntax: subprog'subprogram_info
7243 -- N_Subprogram_Info
7244 -- Sloc points to the entity for the procedure
7245 -- Identifier (Node1) identifier referencing the procedure
7246 -- Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
7248 -- Note: in the case where a debug source file is generated, the Sloc
7249 -- for this node points to the quote in the Sprint file output.
7251 --------------------------
7252 -- Unchecked Expression --
7253 --------------------------
7255 -- An unchecked expression is one that must be analyzed and resolved
7256 -- with all checks off, regardless of the current setting of scope
7259 -- Sprint syntax: `(expression)
7261 -- Note: this node is always removed from the tree (and replaced by
7262 -- its constituent expression) on completion of analysis, so it only
7263 -- appears in intermediate trees, and will never be seen by Gigi.
7265 -- N_Unchecked_Expression
7266 -- Sloc is a copy of the Sloc of the expression
7267 -- Expression (Node3)
7268 -- plus fields for expression
7270 -- Note: in the case where a debug source file is generated, the Sloc
7271 -- for this node points to the back quote in the Sprint file output.
7273 -------------------------------
7274 -- Unchecked Type Conversion --
7275 -------------------------------
7277 -- An unchecked type conversion node represents the semantic action
7278 -- corresponding to a call to an instantiation of Unchecked_Conversion.
7279 -- It is generated as a result of actual use of Unchecked_Conversion
7280 -- and also the expander generates unchecked type conversion nodes
7281 -- directly for expansion of complex semantic actions.
7283 -- Note: an unchecked type conversion is a variable as far as the
7284 -- semantics are concerned, which is convenient for the expander.
7285 -- This does not change what Ada source programs are legal, since
7286 -- clearly a function call to an instantiation of Unchecked_Conversion
7287 -- is not a variable in any case.
7289 -- Sprint syntax: subtype-mark!(expression)
7291 -- N_Unchecked_Type_Conversion
7292 -- Sloc points to related node in source
7293 -- Subtype_Mark (Node4)
7294 -- Expression (Node3)
7295 -- Kill_Range_Check (Flag11-Sem)
7296 -- No_Truncation (Flag17-Sem)
7297 -- plus fields for expression
7299 -- Note: in the case where a debug source file is generated, the Sloc
7300 -- for this node points to the exclamation in the Sprint file output.
7302 -----------------------------------
7303 -- Validate_Unchecked_Conversion --
7304 -----------------------------------
7306 -- The front end does most of the validation of unchecked conversion,
7307 -- including checking sizes (this is done after the back end is called
7308 -- to take advantage of back-annotation of calculated sizes).
7310 -- The front end also deals with specific cases that are not allowed
7311 -- e.g. involving unconstrained array types.
7313 -- For the case of the standard gigi backend, this means that all
7314 -- checks are done in the front-end.
7316 -- However, in the case of specialized back-ends, notably the JVM
7317 -- backend for JGNAT, additional requirements and restrictions apply
7318 -- to unchecked conversion, and these are most conveniently performed
7319 -- in the specialized back-end.
7321 -- To accommodate this requirement, for such back ends, the following
7322 -- special node is generated recording an unchecked conversion that
7323 -- needs to be validated. The back end should post an appropriate
7324 -- error message if the unchecked conversion is invalid or warrants
7325 -- a special warning message.
7327 -- Source_Type and Target_Type point to the entities for the two
7328 -- types involved in the unchecked conversion instantiation that
7329 -- is to be validated.
7331 -- Sprint syntax: validate Unchecked_Conversion (source, target);
7333 -- N_Validate_Unchecked_Conversion
7334 -- Sloc points to instantiation (location for warning message)
7335 -- Source_Type (Node1-Sem)
7336 -- Target_Type (Node2-Sem)
7338 -- Note: in the case where a debug source file is generated, the Sloc
7339 -- for this node points to the VALIDATE keyword in the file output.
7345 -- Used as the contents of the Nkind field of the dummy Empty node
7346 -- and in some other situations to indicate an uninitialized value.
7349 -- Chars (Name1) is set to No_Name
7355 -- Used as the contents of the Nkind field of the dummy Error node.
7356 -- Has an Etype field, which gets set to Any_Type later on, to help
7357 -- error recovery (Error_Posted is also set in the Error node).
7360 -- Chars (Name1) is set to Error_Name
7361 -- Etype (Node5-Sem)
7363 --------------------------
7364 -- Node Type Definition --
7365 --------------------------
7367 -- The following is the definition of the Node_Kind type. As previously
7368 -- discussed, this is separated off to allow rearrangement of the order to
7369 -- facilitate definition of subtype ranges. The comments show the subtype
7370 -- classes which apply to each set of node kinds. The first entry in the
7371 -- comment characterizes the following list of nodes.
7376 -- N_Representation_Clause
7380 N_Enumeration_Representation_Clause,
7382 N_Record_Representation_Clause,
7384 -- N_Representation_Clause, N_Has_Chars
7386 N_Attribute_Definition_Clause,
7391 N_Pragma_Argument_Association,
7397 -- N_Entity, N_Has_Etype, N_Has_Chars
7399 N_Defining_Character_Literal,
7400 N_Defining_Identifier,
7401 N_Defining_Operator_Symbol,
7403 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
7407 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
7408 -- N_Has_Chars, N_Has_Entity
7413 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
7414 -- N_Has_Chars, N_Has_Entity
7416 N_Character_Literal,
7418 -- N_Binary_Op, N_Op, N_Subexpr,
7419 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
7426 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
7427 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
7434 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7435 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
7439 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7440 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
7449 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7450 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
7455 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
7456 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
7462 N_Op_Shift_Right_Arithmetic,
7464 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
7465 -- N_Has_Chars, N_Has_Entity
7472 -- N_Subexpr, N_Has_Etype, N_Has_Entity
7474 N_Attribute_Reference,
7476 -- N_Subexpr, N_Has_Etype, N_Membership_Test
7481 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
7486 -- N_Subexpr, N_Has_Etype
7488 N_Conditional_Expression,
7489 N_Explicit_Dereference,
7490 N_Expression_With_Actions,
7492 N_Indexed_Component,
7495 N_Procedure_Call_Statement,
7496 N_Qualified_Expression,
7497 N_Quantified_Expression,
7499 -- N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
7501 N_Raise_Constraint_Error,
7502 N_Raise_Program_Error,
7503 N_Raise_Storage_Error,
7505 -- N_Subexpr, N_Has_Etype
7510 N_Extension_Aggregate,
7514 N_Selected_Component,
7519 N_Unchecked_Expression,
7520 N_Unchecked_Type_Conversion,
7524 N_Subtype_Indication,
7528 N_Component_Declaration,
7529 N_Entry_Declaration,
7530 N_Formal_Object_Declaration,
7531 N_Formal_Type_Declaration,
7532 N_Full_Type_Declaration,
7533 N_Incomplete_Type_Declaration,
7534 N_Iterator_Specification,
7535 N_Loop_Parameter_Specification,
7536 N_Object_Declaration,
7537 N_Parameterized_Expression,
7538 N_Protected_Type_Declaration,
7539 N_Private_Extension_Declaration,
7540 N_Private_Type_Declaration,
7541 N_Subtype_Declaration,
7543 -- N_Subprogram_Specification, N_Declaration
7545 N_Function_Specification,
7546 N_Procedure_Specification,
7548 -- N_Access_To_Subprogram_Definition
7550 N_Access_Function_Definition,
7551 N_Access_Procedure_Definition,
7553 -- N_Later_Decl_Item
7555 N_Task_Type_Declaration,
7557 -- N_Body_Stub, N_Later_Decl_Item
7559 N_Package_Body_Stub,
7560 N_Protected_Body_Stub,
7561 N_Subprogram_Body_Stub,
7564 -- N_Generic_Instantiation, N_Later_Decl_Item
7565 -- N_Subprogram_Instantiation
7567 N_Function_Instantiation,
7568 N_Procedure_Instantiation,
7570 -- N_Generic_Instantiation, N_Later_Decl_Item
7572 N_Package_Instantiation,
7574 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7579 -- N_Later_Decl_Item, N_Proper_Body
7584 -- N_Later_Decl_Item
7586 N_Implicit_Label_Declaration,
7587 N_Package_Declaration,
7588 N_Single_Task_Declaration,
7589 N_Subprogram_Declaration,
7590 N_Use_Package_Clause,
7592 -- N_Generic_Declaration, N_Later_Decl_Item
7594 N_Generic_Package_Declaration,
7595 N_Generic_Subprogram_Declaration,
7597 -- N_Array_Type_Definition
7599 N_Constrained_Array_Definition,
7600 N_Unconstrained_Array_Definition,
7602 -- N_Renaming_Declaration
7604 N_Exception_Renaming_Declaration,
7605 N_Object_Renaming_Declaration,
7606 N_Package_Renaming_Declaration,
7607 N_Subprogram_Renaming_Declaration,
7609 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
7611 N_Generic_Function_Renaming_Declaration,
7612 N_Generic_Package_Renaming_Declaration,
7613 N_Generic_Procedure_Renaming_Declaration,
7615 -- N_Statement_Other_Than_Procedure_Call
7619 N_Assignment_Statement,
7620 N_Asynchronous_Select,
7624 N_Conditional_Entry_Call,
7626 -- N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
7628 N_Delay_Relative_Statement,
7629 N_Delay_Until_Statement,
7631 -- N_Statement_Other_Than_Procedure_Call
7633 N_Entry_Call_Statement,
7639 N_Requeue_Statement,
7640 N_Return_Statement, -- renamed as N_Simple_Return_Statement below
7641 N_Extended_Return_Statement,
7645 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7652 N_Accept_Alternative,
7653 N_Delay_Alternative,
7655 N_Entry_Body_Formal_Part,
7657 N_Terminate_Alternative,
7659 -- N_Formal_Subprogram_Declaration
7661 N_Formal_Abstract_Subprogram_Declaration,
7662 N_Formal_Concrete_Subprogram_Declaration,
7664 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
7666 N_Push_Constraint_Error_Label,
7667 N_Push_Program_Error_Label,
7668 N_Push_Storage_Error_Label,
7670 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7672 N_Pop_Constraint_Error_Label,
7673 N_Pop_Program_Error_Label,
7674 N_Pop_Storage_Error_Label,
7678 N_SCIL_Dispatch_Table_Tag_Init,
7679 N_SCIL_Dispatching_Call,
7680 N_SCIL_Membership_Test,
7682 -- Other nodes (not part of any subtype class)
7685 N_Abstract_Subprogram_Declaration,
7686 N_Access_Definition,
7687 N_Access_To_Object_Definition,
7688 N_Aspect_Specification,
7689 N_Case_Expression_Alternative,
7690 N_Case_Statement_Alternative,
7692 N_Compilation_Unit_Aux,
7693 N_Component_Association,
7694 N_Component_Definition,
7696 N_Derived_Type_Definition,
7697 N_Decimal_Fixed_Point_Definition,
7698 N_Defining_Program_Unit_Name,
7701 N_Digits_Constraint,
7702 N_Discriminant_Association,
7703 N_Discriminant_Specification,
7704 N_Enumeration_Type_Definition,
7706 N_Entry_Call_Alternative,
7707 N_Entry_Index_Specification,
7708 N_Exception_Declaration,
7709 N_Exception_Handler,
7710 N_Floating_Point_Definition,
7711 N_Formal_Decimal_Fixed_Point_Definition,
7712 N_Formal_Derived_Type_Definition,
7713 N_Formal_Discrete_Type_Definition,
7714 N_Formal_Floating_Point_Definition,
7715 N_Formal_Modular_Type_Definition,
7716 N_Formal_Ordinary_Fixed_Point_Definition,
7717 N_Formal_Package_Declaration,
7718 N_Formal_Private_Type_Definition,
7719 N_Formal_Signed_Integer_Type_Definition,
7721 N_Generic_Association,
7722 N_Handled_Sequence_Of_Statements,
7723 N_Index_Or_Discriminant_Constraint,
7726 N_Modular_Type_Definition,
7727 N_Number_Declaration,
7728 N_Ordinary_Fixed_Point_Definition,
7730 N_Package_Specification,
7731 N_Parameter_Association,
7732 N_Parameter_Specification,
7734 N_Protected_Definition,
7736 N_Real_Range_Specification,
7737 N_Record_Definition,
7738 N_Signed_Integer_Type_Definition,
7739 N_Single_Protected_Declaration,
7742 N_Triggering_Alternative,
7744 N_Validate_Unchecked_Conversion,
7750 for Node_Kind'Size use 8;
7751 -- The data structures in Atree assume this!
7753 ----------------------------
7754 -- Node Class Definitions --
7755 ----------------------------
7757 subtype N_Access_To_Subprogram_Definition is Node_Kind range
7758 N_Access_Function_Definition ..
7759 N_Access_Procedure_Definition;
7761 subtype N_Array_Type_Definition is Node_Kind range
7762 N_Constrained_Array_Definition ..
7763 N_Unconstrained_Array_Definition;
7765 subtype N_Binary_Op is Node_Kind range
7767 N_Op_Shift_Right_Arithmetic;
7769 subtype N_Body_Stub is Node_Kind range
7770 N_Package_Body_Stub ..
7773 subtype N_Declaration is Node_Kind range
7774 N_Component_Declaration ..
7775 N_Procedure_Specification;
7776 -- Note: this includes all constructs normally thought of as declarations
7777 -- except those which are separately grouped as later declarations.
7779 subtype N_Delay_Statement is Node_Kind range
7780 N_Delay_Relative_Statement ..
7781 N_Delay_Until_Statement;
7783 subtype N_Direct_Name is Node_Kind range
7785 N_Character_Literal;
7787 subtype N_Entity is Node_Kind range
7788 N_Defining_Character_Literal ..
7789 N_Defining_Operator_Symbol;
7791 subtype N_Formal_Subprogram_Declaration is Node_Kind range
7792 N_Formal_Abstract_Subprogram_Declaration ..
7793 N_Formal_Concrete_Subprogram_Declaration;
7795 subtype N_Generic_Declaration is Node_Kind range
7796 N_Generic_Package_Declaration ..
7797 N_Generic_Subprogram_Declaration;
7799 subtype N_Generic_Instantiation is Node_Kind range
7800 N_Function_Instantiation ..
7801 N_Package_Instantiation;
7803 subtype N_Generic_Renaming_Declaration is Node_Kind range
7804 N_Generic_Function_Renaming_Declaration ..
7805 N_Generic_Procedure_Renaming_Declaration;
7807 subtype N_Has_Chars is Node_Kind range
7808 N_Attribute_Definition_Clause ..
7811 subtype N_Has_Entity is Node_Kind range
7813 N_Attribute_Reference;
7814 -- Nodes that have Entity fields
7815 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Aspect_Specification,
7816 -- or N_Attribute_Definition_Clause.
7818 subtype N_Has_Etype is Node_Kind range
7820 N_Subtype_Indication;
7822 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7826 subtype N_Multiplying_Operator is Node_Kind range
7830 subtype N_Later_Decl_Item is Node_Kind range
7831 N_Task_Type_Declaration ..
7832 N_Generic_Subprogram_Declaration;
7833 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
7834 -- only those items which can appear as later declarative items. This also
7835 -- includes N_Implicit_Label_Declaration which is not specifically in the
7836 -- grammar but may appear as a valid later declarative items. It does NOT
7837 -- include N_Pragma which can also appear among later declarative items.
7838 -- It does however include N_Protected_Body, which is a bit peculiar, but
7839 -- harmless since this cannot appear in Ada 83 mode anyway.
7841 subtype N_Membership_Test is Node_Kind range
7845 subtype N_Op is Node_Kind range
7849 subtype N_Op_Boolean is Node_Kind range
7852 -- Binary operators which take operands of a boolean type, and yield
7853 -- a result of a boolean type.
7855 subtype N_Op_Compare is Node_Kind range
7859 subtype N_Op_Shift is Node_Kind range
7861 N_Op_Shift_Right_Arithmetic;
7863 subtype N_Proper_Body is Node_Kind range
7867 subtype N_Push_xxx_Label is Node_Kind range
7868 N_Push_Constraint_Error_Label ..
7869 N_Push_Storage_Error_Label;
7871 subtype N_Pop_xxx_Label is Node_Kind range
7872 N_Pop_Constraint_Error_Label ..
7873 N_Pop_Storage_Error_Label;
7875 subtype N_Push_Pop_xxx_Label is Node_Kind range
7876 N_Push_Constraint_Error_Label ..
7877 N_Pop_Storage_Error_Label;
7879 subtype N_Raise_xxx_Error is Node_Kind range
7880 N_Raise_Constraint_Error ..
7881 N_Raise_Storage_Error;
7883 subtype N_Renaming_Declaration is Node_Kind range
7884 N_Exception_Renaming_Declaration ..
7885 N_Generic_Procedure_Renaming_Declaration;
7887 subtype N_Representation_Clause is Node_Kind range
7889 N_Attribute_Definition_Clause;
7891 subtype N_Short_Circuit is Node_Kind range
7895 subtype N_SCIL_Node is Node_Kind range
7896 N_SCIL_Dispatch_Table_Tag_Init ..
7897 N_SCIL_Membership_Test;
7899 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7900 N_Abort_Statement ..
7902 -- Note that this includes all statement types except for the cases of the
7903 -- N_Procedure_Call_Statement which is considered to be a subexpression
7904 -- (since overloading is possible, so it needs to go through the normal
7905 -- overloading resolution for expressions).
7907 subtype N_Subprogram_Instantiation is Node_Kind range
7908 N_Function_Instantiation ..
7909 N_Procedure_Instantiation;
7911 subtype N_Has_Condition is Node_Kind range
7913 N_Terminate_Alternative;
7914 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
7916 subtype N_Subexpr is Node_Kind range
7918 N_Unchecked_Type_Conversion;
7919 -- Nodes with expression fields
7921 subtype N_Subprogram_Specification is Node_Kind range
7922 N_Function_Specification ..
7923 N_Procedure_Specification;
7925 subtype N_Unary_Op is Node_Kind range
7929 subtype N_Unit_Body is Node_Kind range
7933 ---------------------------
7934 -- Node Access Functions --
7935 ---------------------------
7937 -- The following functions return the contents of the indicated field of
7938 -- the node referenced by the argument, which is a Node_Id. They provide
7939 -- logical access to fields in the node which could be accessed using the
7940 -- Atree.Unchecked_Access package, but the idea is always to use these
7941 -- higher level routines which preserve strong typing. In debug mode,
7942 -- these routines check that they are being applied to an appropriate
7943 -- node, as well as checking that the node is in range.
7945 function ABE_Is_Certain
7946 (N : Node_Id) return Boolean; -- Flag18
7948 function Abort_Present
7949 (N : Node_Id) return Boolean; -- Flag15
7951 function Abortable_Part
7952 (N : Node_Id) return Node_Id; -- Node2
7954 function Abstract_Present
7955 (N : Node_Id) return Boolean; -- Flag4
7957 function Accept_Handler_Records
7958 (N : Node_Id) return List_Id; -- List5
7960 function Accept_Statement
7961 (N : Node_Id) return Node_Id; -- Node2
7963 function Access_Definition
7964 (N : Node_Id) return Node_Id; -- Node3
7966 function Access_To_Subprogram_Definition
7967 (N : Node_Id) return Node_Id; -- Node3
7969 function Access_Types_To_Process
7970 (N : Node_Id) return Elist_Id; -- Elist2
7973 (N : Node_Id) return List_Id; -- List1
7975 function Activation_Chain_Entity
7976 (N : Node_Id) return Node_Id; -- Node3
7978 function Acts_As_Spec
7979 (N : Node_Id) return Boolean; -- Flag4
7981 function Actual_Designated_Subtype
7982 (N : Node_Id) return Node_Id; -- Node4
7984 function Address_Warning_Posted
7985 (N : Node_Id) return Boolean; -- Flag18
7987 function Aggregate_Bounds
7988 (N : Node_Id) return Node_Id; -- Node3
7990 function Aliased_Present
7991 (N : Node_Id) return Boolean; -- Flag4
7994 (N : Node_Id) return Boolean; -- Flag11
7996 function All_Present
7997 (N : Node_Id) return Boolean; -- Flag15
7999 function Alternatives
8000 (N : Node_Id) return List_Id; -- List4
8002 function Ancestor_Part
8003 (N : Node_Id) return Node_Id; -- Node3
8005 function Array_Aggregate
8006 (N : Node_Id) return Node_Id; -- Node3
8008 function Aspect_Cancel
8009 (N : Node_Id) return Boolean; -- Flag11
8011 function Aspect_Rep_Item
8012 (N : Node_Id) return Node_Id; -- Node2
8014 function Assignment_OK
8015 (N : Node_Id) return Boolean; -- Flag15
8017 function Associated_Node
8018 (N : Node_Id) return Node_Id; -- Node4
8020 function At_End_Proc
8021 (N : Node_Id) return Node_Id; -- Node1
8023 function Attribute_Name
8024 (N : Node_Id) return Name_Id; -- Name2
8026 function Aux_Decls_Node
8027 (N : Node_Id) return Node_Id; -- Node5
8029 function Backwards_OK
8030 (N : Node_Id) return Boolean; -- Flag6
8032 function Bad_Is_Detected
8033 (N : Node_Id) return Boolean; -- Flag15
8036 (N : Node_Id) return Boolean; -- Flag5
8038 function Body_Required
8039 (N : Node_Id) return Boolean; -- Flag13
8041 function Body_To_Inline
8042 (N : Node_Id) return Node_Id; -- Node3
8044 function Box_Present
8045 (N : Node_Id) return Boolean; -- Flag15
8047 function Char_Literal_Value
8048 (N : Node_Id) return Uint; -- Uint2
8051 (N : Node_Id) return Name_Id; -- Name1
8053 function Check_Address_Alignment
8054 (N : Node_Id) return Boolean; -- Flag11
8056 function Choice_Parameter
8057 (N : Node_Id) return Node_Id; -- Node2
8060 (N : Node_Id) return List_Id; -- List1
8062 function Class_Present
8063 (N : Node_Id) return Boolean; -- Flag6
8065 function Coextensions
8066 (N : Node_Id) return Elist_Id; -- Elist4
8068 function Comes_From_Extended_Return_Statement
8069 (N : Node_Id) return Boolean; -- Flag18
8071 function Compile_Time_Known_Aggregate
8072 (N : Node_Id) return Boolean; -- Flag18
8074 function Component_Associations
8075 (N : Node_Id) return List_Id; -- List2
8077 function Component_Clauses
8078 (N : Node_Id) return List_Id; -- List3
8080 function Component_Definition
8081 (N : Node_Id) return Node_Id; -- Node4
8083 function Component_Items
8084 (N : Node_Id) return List_Id; -- List3
8086 function Component_List
8087 (N : Node_Id) return Node_Id; -- Node1
8089 function Component_Name
8090 (N : Node_Id) return Node_Id; -- Node1
8092 function Componentwise_Assignment
8093 (N : Node_Id) return Boolean; -- Flag14
8096 (N : Node_Id) return Node_Id; -- Node1
8098 function Condition_Actions
8099 (N : Node_Id) return List_Id; -- List3
8101 function Config_Pragmas
8102 (N : Node_Id) return List_Id; -- List4
8104 function Constant_Present
8105 (N : Node_Id) return Boolean; -- Flag17
8108 (N : Node_Id) return Node_Id; -- Node3
8110 function Constraints
8111 (N : Node_Id) return List_Id; -- List1
8113 function Context_Installed
8114 (N : Node_Id) return Boolean; -- Flag13
8116 function Context_Pending
8117 (N : Node_Id) return Boolean; -- Flag16
8119 function Context_Items
8120 (N : Node_Id) return List_Id; -- List1
8122 function Controlling_Argument
8123 (N : Node_Id) return Node_Id; -- Node1
8125 function Conversion_OK
8126 (N : Node_Id) return Boolean; -- Flag14
8128 function Corresponding_Body
8129 (N : Node_Id) return Node_Id; -- Node5
8131 function Corresponding_Formal_Spec
8132 (N : Node_Id) return Node_Id; -- Node3
8134 function Corresponding_Generic_Association
8135 (N : Node_Id) return Node_Id; -- Node5
8137 function Corresponding_Integer_Value
8138 (N : Node_Id) return Uint; -- Uint4
8140 function Corresponding_Spec
8141 (N : Node_Id) return Node_Id; -- Node5
8143 function Corresponding_Stub
8144 (N : Node_Id) return Node_Id; -- Node3
8146 function Dcheck_Function
8147 (N : Node_Id) return Entity_Id; -- Node5
8149 function Debug_Statement
8150 (N : Node_Id) return Node_Id; -- Node3
8152 function Declarations
8153 (N : Node_Id) return List_Id; -- List2
8155 function Default_Expression
8156 (N : Node_Id) return Node_Id; -- Node5
8158 function Default_Storage_Pool
8159 (N : Node_Id) return Node_Id; -- Node3
8161 function Default_Name
8162 (N : Node_Id) return Node_Id; -- Node2
8164 function Defining_Identifier
8165 (N : Node_Id) return Entity_Id; -- Node1
8167 function Defining_Unit_Name
8168 (N : Node_Id) return Node_Id; -- Node1
8170 function Delay_Alternative
8171 (N : Node_Id) return Node_Id; -- Node4
8173 function Delay_Statement
8174 (N : Node_Id) return Node_Id; -- Node2
8176 function Delta_Expression
8177 (N : Node_Id) return Node_Id; -- Node3
8179 function Digits_Expression
8180 (N : Node_Id) return Node_Id; -- Node2
8182 function Discr_Check_Funcs_Built
8183 (N : Node_Id) return Boolean; -- Flag11
8185 function Discrete_Choices
8186 (N : Node_Id) return List_Id; -- List4
8188 function Discrete_Range
8189 (N : Node_Id) return Node_Id; -- Node4
8191 function Discrete_Subtype_Definition
8192 (N : Node_Id) return Node_Id; -- Node4
8194 function Discrete_Subtype_Definitions
8195 (N : Node_Id) return List_Id; -- List2
8197 function Discriminant_Specifications
8198 (N : Node_Id) return List_Id; -- List4
8200 function Discriminant_Type
8201 (N : Node_Id) return Node_Id; -- Node5
8203 function Do_Accessibility_Check
8204 (N : Node_Id) return Boolean; -- Flag13
8206 function Do_Discriminant_Check
8207 (N : Node_Id) return Boolean; -- Flag13
8209 function Do_Division_Check
8210 (N : Node_Id) return Boolean; -- Flag13
8212 function Do_Length_Check
8213 (N : Node_Id) return Boolean; -- Flag4
8215 function Do_Overflow_Check
8216 (N : Node_Id) return Boolean; -- Flag17
8218 function Do_Range_Check
8219 (N : Node_Id) return Boolean; -- Flag9
8221 function Do_Storage_Check
8222 (N : Node_Id) return Boolean; -- Flag17
8224 function Do_Tag_Check
8225 (N : Node_Id) return Boolean; -- Flag13
8227 function Elaborate_All_Desirable
8228 (N : Node_Id) return Boolean; -- Flag9
8230 function Elaborate_All_Present
8231 (N : Node_Id) return Boolean; -- Flag14
8233 function Elaborate_Desirable
8234 (N : Node_Id) return Boolean; -- Flag11
8236 function Elaborate_Present
8237 (N : Node_Id) return Boolean; -- Flag4
8239 function Elaboration_Boolean
8240 (N : Node_Id) return Node_Id; -- Node2
8242 function Else_Actions
8243 (N : Node_Id) return List_Id; -- List3
8245 function Else_Statements
8246 (N : Node_Id) return List_Id; -- List4
8248 function Elsif_Parts
8249 (N : Node_Id) return List_Id; -- List3
8251 function Enclosing_Variant
8252 (N : Node_Id) return Node_Id; -- Node2
8255 (N : Node_Id) return Node_Id; -- Node4
8258 (N : Node_Id) return Uint; -- Uint5
8261 (N : Node_Id) return Node_Id; -- Node4
8263 function Entity_Or_Associated_Node
8264 (N : Node_Id) return Node_Id; -- Node4
8266 function Entry_Body_Formal_Part
8267 (N : Node_Id) return Node_Id; -- Node5
8269 function Entry_Call_Alternative
8270 (N : Node_Id) return Node_Id; -- Node1
8272 function Entry_Call_Statement
8273 (N : Node_Id) return Node_Id; -- Node1
8275 function Entry_Direct_Name
8276 (N : Node_Id) return Node_Id; -- Node1
8278 function Entry_Index
8279 (N : Node_Id) return Node_Id; -- Node5
8281 function Entry_Index_Specification
8282 (N : Node_Id) return Node_Id; -- Node4
8285 (N : Node_Id) return Node_Id; -- Node5
8287 function Exception_Choices
8288 (N : Node_Id) return List_Id; -- List4
8290 function Exception_Handlers
8291 (N : Node_Id) return List_Id; -- List5
8293 function Exception_Junk
8294 (N : Node_Id) return Boolean; -- Flag8
8296 function Exception_Label
8297 (N : Node_Id) return Node_Id; -- Node5
8299 function Explicit_Actual_Parameter
8300 (N : Node_Id) return Node_Id; -- Node3
8302 function Expansion_Delayed
8303 (N : Node_Id) return Boolean; -- Flag11
8305 function Explicit_Generic_Actual_Parameter
8306 (N : Node_Id) return Node_Id; -- Node1
8309 (N : Node_Id) return Node_Id; -- Node3
8311 function Expressions
8312 (N : Node_Id) return List_Id; -- List1
8315 (N : Node_Id) return Node_Id; -- Node3
8317 function First_Inlined_Subprogram
8318 (N : Node_Id) return Entity_Id; -- Node3
8321 (N : Node_Id) return Boolean; -- Flag5
8323 function First_Named_Actual
8324 (N : Node_Id) return Node_Id; -- Node4
8326 function First_Real_Statement
8327 (N : Node_Id) return Node_Id; -- Node2
8329 function First_Subtype_Link
8330 (N : Node_Id) return Entity_Id; -- Node5
8332 function Float_Truncate
8333 (N : Node_Id) return Boolean; -- Flag11
8335 function Formal_Type_Definition
8336 (N : Node_Id) return Node_Id; -- Node3
8338 function Forwards_OK
8339 (N : Node_Id) return Boolean; -- Flag5
8341 function From_Aspect_Specification
8342 (N : Node_Id) return Boolean; -- Flag13
8344 function From_At_End
8345 (N : Node_Id) return Boolean; -- Flag4
8347 function From_At_Mod
8348 (N : Node_Id) return Boolean; -- Flag4
8350 function From_Default
8351 (N : Node_Id) return Boolean; -- Flag6
8353 function Generic_Associations
8354 (N : Node_Id) return List_Id; -- List3
8356 function Generic_Formal_Declarations
8357 (N : Node_Id) return List_Id; -- List2
8359 function Generic_Parent
8360 (N : Node_Id) return Node_Id; -- Node5
8362 function Generic_Parent_Type
8363 (N : Node_Id) return Node_Id; -- Node4
8365 function Handled_Statement_Sequence
8366 (N : Node_Id) return Node_Id; -- Node4
8368 function Handler_List_Entry
8369 (N : Node_Id) return Node_Id; -- Node2
8371 function Has_Created_Identifier
8372 (N : Node_Id) return Boolean; -- Flag15
8374 function Has_Dynamic_Length_Check
8375 (N : Node_Id) return Boolean; -- Flag10
8377 function Has_Dynamic_Range_Check
8378 (N : Node_Id) return Boolean; -- Flag12
8380 function Has_Init_Expression
8381 (N : Node_Id) return Boolean; -- Flag14
8383 function Has_Local_Raise
8384 (N : Node_Id) return Boolean; -- Flag8
8386 function Has_No_Elaboration_Code
8387 (N : Node_Id) return Boolean; -- Flag17
8389 function Has_Pragma_CPU
8390 (N : Node_Id) return Boolean; -- Flag14
8392 function Has_Pragma_Priority
8393 (N : Node_Id) return Boolean; -- Flag6
8395 function Has_Pragma_Suppress_All
8396 (N : Node_Id) return Boolean; -- Flag14
8398 function Has_Private_View
8399 (N : Node_Id) return Boolean; -- Flag11
8401 function Has_Relative_Deadline_Pragma
8402 (N : Node_Id) return Boolean; -- Flag9
8404 function Has_Self_Reference
8405 (N : Node_Id) return Boolean; -- Flag13
8407 function Has_Storage_Size_Pragma
8408 (N : Node_Id) return Boolean; -- Flag5
8410 function Has_Task_Info_Pragma
8411 (N : Node_Id) return Boolean; -- Flag7
8413 function Has_Task_Name_Pragma
8414 (N : Node_Id) return Boolean; -- Flag8
8416 function Has_Wide_Character
8417 (N : Node_Id) return Boolean; -- Flag11
8419 function Has_Wide_Wide_Character
8420 (N : Node_Id) return Boolean; -- Flag13
8422 function Hidden_By_Use_Clause
8423 (N : Node_Id) return Elist_Id; -- Elist4
8426 (N : Node_Id) return Node_Id; -- Node2
8429 (N : Node_Id) return Node_Id; -- Node1
8431 function Interface_List
8432 (N : Node_Id) return List_Id; -- List2
8434 function Interface_Present
8435 (N : Node_Id) return Boolean; -- Flag16
8437 function Implicit_With
8438 (N : Node_Id) return Boolean; -- Flag16
8440 function Import_Interface_Present
8441 (N : Node_Id) return Boolean; -- Flag16
8444 (N : Node_Id) return Boolean; -- Flag15
8446 function Includes_Infinities
8447 (N : Node_Id) return Boolean; -- Flag11
8449 function Inherited_Discriminant
8450 (N : Node_Id) return Boolean; -- Flag13
8452 function Instance_Spec
8453 (N : Node_Id) return Node_Id; -- Node5
8456 (N : Node_Id) return Uint; -- Uint3
8458 function Is_Accessibility_Actual
8459 (N : Node_Id) return Boolean; -- Flag13
8461 function Is_Asynchronous_Call_Block
8462 (N : Node_Id) return Boolean; -- Flag7
8464 function Is_Component_Left_Opnd
8465 (N : Node_Id) return Boolean; -- Flag13
8467 function Is_Component_Right_Opnd
8468 (N : Node_Id) return Boolean; -- Flag14
8470 function Is_Controlling_Actual
8471 (N : Node_Id) return Boolean; -- Flag16
8473 function Is_Delayed_Aspect
8474 (N : Node_Id) return Boolean; -- Flag14
8476 function Is_Dynamic_Coextension
8477 (N : Node_Id) return Boolean; -- Flag18
8480 (N : Node_Id) return Boolean; -- Flag13
8482 function Is_Entry_Barrier_Function
8483 (N : Node_Id) return Boolean; -- Flag8
8485 function Is_Expanded_Build_In_Place_Call
8486 (N : Node_Id) return Boolean; -- Flag11
8488 function Is_Folded_In_Parser
8489 (N : Node_Id) return Boolean; -- Flag4
8491 function Is_In_Discriminant_Check
8492 (N : Node_Id) return Boolean; -- Flag11
8494 function Is_Machine_Number
8495 (N : Node_Id) return Boolean; -- Flag11
8497 function Is_Null_Loop
8498 (N : Node_Id) return Boolean; -- Flag16
8500 function Is_Overloaded
8501 (N : Node_Id) return Boolean; -- Flag5
8503 function Is_Power_Of_2_For_Shift
8504 (N : Node_Id) return Boolean; -- Flag13
8506 function Is_Protected_Subprogram_Body
8507 (N : Node_Id) return Boolean; -- Flag7
8509 function Is_Static_Coextension
8510 (N : Node_Id) return Boolean; -- Flag14
8512 function Is_Static_Expression
8513 (N : Node_Id) return Boolean; -- Flag6
8515 function Is_Subprogram_Descriptor
8516 (N : Node_Id) return Boolean; -- Flag16
8518 function Is_Task_Allocation_Block
8519 (N : Node_Id) return Boolean; -- Flag6
8521 function Is_Task_Master
8522 (N : Node_Id) return Boolean; -- Flag5
8524 function Iteration_Scheme
8525 (N : Node_Id) return Node_Id; -- Node2
8527 function Iterator_Specification
8528 (N : Node_Id) return Node_Id; -- Node2
8531 (N : Node_Id) return Entity_Id; -- Node1
8533 function Kill_Range_Check
8534 (N : Node_Id) return Boolean; -- Flag11
8536 function Label_Construct
8537 (N : Node_Id) return Node_Id; -- Node2
8540 (N : Node_Id) return Node_Id; -- Node2
8543 (N : Node_Id) return Node_Id; -- Node4
8546 (N : Node_Id) return Boolean; -- Flag6
8548 function Library_Unit
8549 (N : Node_Id) return Node_Id; -- Node4
8551 function Limited_View_Installed
8552 (N : Node_Id) return Boolean; -- Flag18
8554 function Limited_Present
8555 (N : Node_Id) return Boolean; -- Flag17
8558 (N : Node_Id) return List_Id; -- List1
8560 function Local_Raise_Not_OK
8561 (N : Node_Id) return Boolean; -- Flag7
8563 function Local_Raise_Statements
8564 (N : Node_Id) return Elist_Id; -- Elist1
8566 function Loop_Actions
8567 (N : Node_Id) return List_Id; -- List2
8569 function Loop_Parameter_Specification
8570 (N : Node_Id) return Node_Id; -- Node4
8573 (N : Node_Id) return Node_Id; -- Node1
8576 (N : Node_Id) return Node_Id; -- Node2
8579 (N : Node_Id) return Boolean; -- Flag5
8581 function Must_Be_Byte_Aligned
8582 (N : Node_Id) return Boolean; -- Flag14
8584 function Must_Not_Freeze
8585 (N : Node_Id) return Boolean; -- Flag8
8587 function Must_Not_Override
8588 (N : Node_Id) return Boolean; -- Flag15
8590 function Must_Override
8591 (N : Node_Id) return Boolean; -- Flag14
8594 (N : Node_Id) return Node_Id; -- Node2
8597 (N : Node_Id) return List_Id; -- List2
8599 function Next_Entity
8600 (N : Node_Id) return Node_Id; -- Node2
8602 function Next_Exit_Statement
8603 (N : Node_Id) return Node_Id; -- Node3
8605 function Next_Implicit_With
8606 (N : Node_Id) return Node_Id; -- Node3
8608 function Next_Named_Actual
8609 (N : Node_Id) return Node_Id; -- Node4
8611 function Next_Pragma
8612 (N : Node_Id) return Node_Id; -- Node1
8614 function Next_Rep_Item
8615 (N : Node_Id) return Node_Id; -- Node5
8617 function Next_Use_Clause
8618 (N : Node_Id) return Node_Id; -- Node3
8620 function No_Ctrl_Actions
8621 (N : Node_Id) return Boolean; -- Flag7
8623 function No_Elaboration_Check
8624 (N : Node_Id) return Boolean; -- Flag14
8626 function No_Entities_Ref_In_Spec
8627 (N : Node_Id) return Boolean; -- Flag8
8629 function No_Initialization
8630 (N : Node_Id) return Boolean; -- Flag13
8632 function No_Truncation
8633 (N : Node_Id) return Boolean; -- Flag17
8635 function Null_Present
8636 (N : Node_Id) return Boolean; -- Flag13
8638 function Null_Exclusion_Present
8639 (N : Node_Id) return Boolean; -- Flag11
8641 function Null_Exclusion_In_Return_Present
8642 (N : Node_Id) return Boolean; -- Flag14
8644 function Null_Record_Present
8645 (N : Node_Id) return Boolean; -- Flag17
8647 function Object_Definition
8648 (N : Node_Id) return Node_Id; -- Node4
8651 (N : Node_Id) return Boolean; -- Flag16
8653 function Original_Discriminant
8654 (N : Node_Id) return Node_Id; -- Node2
8656 function Original_Entity
8657 (N : Node_Id) return Entity_Id; -- Node2
8659 function Others_Discrete_Choices
8660 (N : Node_Id) return List_Id; -- List1
8662 function Out_Present
8663 (N : Node_Id) return Boolean; -- Flag17
8665 function Parameter_Associations
8666 (N : Node_Id) return List_Id; -- List3
8668 function Parameter_List_Truncated
8669 (N : Node_Id) return Boolean; -- Flag17
8671 function Parameter_Specifications
8672 (N : Node_Id) return List_Id; -- List3
8674 function Parameter_Type
8675 (N : Node_Id) return Node_Id; -- Node2
8677 function Parent_Spec
8678 (N : Node_Id) return Node_Id; -- Node4
8681 (N : Node_Id) return Node_Id; -- Node2
8683 function Pragma_Argument_Associations
8684 (N : Node_Id) return List_Id; -- List2
8686 function Pragma_Enabled
8687 (N : Node_Id) return Boolean; -- Flag5
8689 function Pragma_Identifier
8690 (N : Node_Id) return Node_Id; -- Node4
8692 function Pragmas_After
8693 (N : Node_Id) return List_Id; -- List5
8695 function Pragmas_Before
8696 (N : Node_Id) return List_Id; -- List4
8699 (N : Node_Id) return Node_Id; -- Node3
8701 function Present_Expr
8702 (N : Node_Id) return Uint; -- Uint3
8705 (N : Node_Id) return Boolean; -- Flag6
8707 function Print_In_Hex
8708 (N : Node_Id) return Boolean; -- Flag13
8710 function Private_Declarations
8711 (N : Node_Id) return List_Id; -- List3
8713 function Private_Present
8714 (N : Node_Id) return Boolean; -- Flag15
8716 function Procedure_To_Call
8717 (N : Node_Id) return Node_Id; -- Node2
8719 function Proper_Body
8720 (N : Node_Id) return Node_Id; -- Node1
8722 function Protected_Definition
8723 (N : Node_Id) return Node_Id; -- Node3
8725 function Protected_Present
8726 (N : Node_Id) return Boolean; -- Flag6
8728 function Raises_Constraint_Error
8729 (N : Node_Id) return Boolean; -- Flag7
8731 function Range_Constraint
8732 (N : Node_Id) return Node_Id; -- Node4
8734 function Range_Expression
8735 (N : Node_Id) return Node_Id; -- Node4
8737 function Real_Range_Specification
8738 (N : Node_Id) return Node_Id; -- Node4
8741 (N : Node_Id) return Ureal; -- Ureal3
8744 (N : Node_Id) return Uint; -- Uint3
8746 function Record_Extension_Part
8747 (N : Node_Id) return Node_Id; -- Node3
8749 function Redundant_Use
8750 (N : Node_Id) return Boolean; -- Flag13
8752 function Renaming_Exception
8753 (N : Node_Id) return Node_Id; -- Node2
8755 function Result_Definition
8756 (N : Node_Id) return Node_Id; -- Node4
8758 function Return_Object_Declarations
8759 (N : Node_Id) return List_Id; -- List3
8761 function Return_Statement_Entity
8762 (N : Node_Id) return Node_Id; -- Node5
8764 function Reverse_Present
8765 (N : Node_Id) return Boolean; -- Flag15
8768 (N : Node_Id) return Node_Id; -- Node3
8770 function Rounded_Result
8771 (N : Node_Id) return Boolean; -- Flag18
8773 function SCIL_Controlling_Tag
8774 (N : Node_Id) return Node_Id; -- Node5
8776 function SCIL_Entity
8777 (N : Node_Id) return Node_Id; -- Node4
8779 function SCIL_Tag_Value
8780 (N : Node_Id) return Node_Id; -- Node5
8782 function SCIL_Target_Prim
8783 (N : Node_Id) return Node_Id; -- Node2
8786 (N : Node_Id) return Node_Id; -- Node3
8788 function Select_Alternatives
8789 (N : Node_Id) return List_Id; -- List1
8791 function Selector_Name
8792 (N : Node_Id) return Node_Id; -- Node2
8794 function Selector_Names
8795 (N : Node_Id) return List_Id; -- List1
8797 function Shift_Count_OK
8798 (N : Node_Id) return Boolean; -- Flag4
8800 function Source_Type
8801 (N : Node_Id) return Entity_Id; -- Node1
8803 function Specification
8804 (N : Node_Id) return Node_Id; -- Node1
8807 (N : Node_Id) return Boolean; -- Flag17
8810 (N : Node_Id) return List_Id; -- List3
8812 function Static_Processing_OK
8813 (N : Node_Id) return Boolean; -- Flag4
8815 function Storage_Pool
8816 (N : Node_Id) return Node_Id; -- Node1
8819 (N : Node_Id) return String_Id; -- Str3
8821 function Subtype_Indication
8822 (N : Node_Id) return Node_Id; -- Node5
8824 function Subtype_Mark
8825 (N : Node_Id) return Node_Id; -- Node4
8827 function Subtype_Marks
8828 (N : Node_Id) return List_Id; -- List2
8830 function Suppress_Loop_Warnings
8831 (N : Node_Id) return Boolean; -- Flag17
8833 function Synchronized_Present
8834 (N : Node_Id) return Boolean; -- Flag7
8836 function Tagged_Present
8837 (N : Node_Id) return Boolean; -- Flag15
8839 function Target_Type
8840 (N : Node_Id) return Entity_Id; -- Node2
8842 function Task_Definition
8843 (N : Node_Id) return Node_Id; -- Node3
8845 function Task_Present
8846 (N : Node_Id) return Boolean; -- Flag5
8848 function Then_Actions
8849 (N : Node_Id) return List_Id; -- List2
8851 function Then_Statements
8852 (N : Node_Id) return List_Id; -- List2
8854 function Treat_Fixed_As_Integer
8855 (N : Node_Id) return Boolean; -- Flag14
8857 function Triggering_Alternative
8858 (N : Node_Id) return Node_Id; -- Node1
8860 function Triggering_Statement
8861 (N : Node_Id) return Node_Id; -- Node1
8864 (N : Node_Id) return Elist_Id; -- Elist3
8866 function Type_Definition
8867 (N : Node_Id) return Node_Id; -- Node3
8870 (N : Node_Id) return Node_Id; -- Node2
8872 function Unknown_Discriminants_Present
8873 (N : Node_Id) return Boolean; -- Flag13
8875 function Unreferenced_In_Spec
8876 (N : Node_Id) return Boolean; -- Flag7
8878 function Variant_Part
8879 (N : Node_Id) return Node_Id; -- Node4
8882 (N : Node_Id) return List_Id; -- List1
8884 function Visible_Declarations
8885 (N : Node_Id) return List_Id; -- List2
8887 function Was_Originally_Stub
8888 (N : Node_Id) return Boolean; -- Flag13
8890 function Withed_Body
8891 (N : Node_Id) return Node_Id; -- Node1
8893 function Zero_Cost_Handling
8894 (N : Node_Id) return Boolean; -- Flag5
8896 -- End functions (note used by xsinfo utility program to end processing)
8898 ----------------------------
8899 -- Node Update Procedures --
8900 ----------------------------
8902 -- These are the corresponding node update routines, which again provide
8903 -- a high level logical access with type checking. In addition to setting
8904 -- the indicated field of the node N to the given Val, in the case of
8905 -- tree pointers (List1-4), the parent pointer of the Val node is set to
8906 -- point back to node N. This automates the setting of the parent pointer.
8908 procedure Set_ABE_Is_Certain
8909 (N : Node_Id; Val : Boolean := True); -- Flag18
8911 procedure Set_Abort_Present
8912 (N : Node_Id; Val : Boolean := True); -- Flag15
8914 procedure Set_Abortable_Part
8915 (N : Node_Id; Val : Node_Id); -- Node2
8917 procedure Set_Abstract_Present
8918 (N : Node_Id; Val : Boolean := True); -- Flag4
8920 procedure Set_Accept_Handler_Records
8921 (N : Node_Id; Val : List_Id); -- List5
8923 procedure Set_Accept_Statement
8924 (N : Node_Id; Val : Node_Id); -- Node2
8926 procedure Set_Access_Definition
8927 (N : Node_Id; Val : Node_Id); -- Node3
8929 procedure Set_Access_To_Subprogram_Definition
8930 (N : Node_Id; Val : Node_Id); -- Node3
8932 procedure Set_Access_Types_To_Process
8933 (N : Node_Id; Val : Elist_Id); -- Elist2
8935 procedure Set_Actions
8936 (N : Node_Id; Val : List_Id); -- List1
8938 procedure Set_Activation_Chain_Entity
8939 (N : Node_Id; Val : Node_Id); -- Node3
8941 procedure Set_Acts_As_Spec
8942 (N : Node_Id; Val : Boolean := True); -- Flag4
8944 procedure Set_Actual_Designated_Subtype
8945 (N : Node_Id; Val : Node_Id); -- Node4
8947 procedure Set_Address_Warning_Posted
8948 (N : Node_Id; Val : Boolean := True); -- Flag18
8950 procedure Set_Aggregate_Bounds
8951 (N : Node_Id; Val : Node_Id); -- Node3
8953 procedure Set_Aliased_Present
8954 (N : Node_Id; Val : Boolean := True); -- Flag4
8956 procedure Set_All_Others
8957 (N : Node_Id; Val : Boolean := True); -- Flag11
8959 procedure Set_All_Present
8960 (N : Node_Id; Val : Boolean := True); -- Flag15
8962 procedure Set_Alternatives
8963 (N : Node_Id; Val : List_Id); -- List4
8965 procedure Set_Ancestor_Part
8966 (N : Node_Id; Val : Node_Id); -- Node3
8968 procedure Set_Array_Aggregate
8969 (N : Node_Id; Val : Node_Id); -- Node3
8971 procedure Set_Aspect_Cancel
8972 (N : Node_Id; Val : Boolean := True); -- Flag11
8974 procedure Set_Aspect_Rep_Item
8975 (N : Node_Id; Val : Node_Id); -- Node2
8977 procedure Set_Assignment_OK
8978 (N : Node_Id; Val : Boolean := True); -- Flag15
8980 procedure Set_Associated_Node
8981 (N : Node_Id; Val : Node_Id); -- Node4
8983 procedure Set_Attribute_Name
8984 (N : Node_Id; Val : Name_Id); -- Name2
8986 procedure Set_At_End_Proc
8987 (N : Node_Id; Val : Node_Id); -- Node1
8989 procedure Set_Aux_Decls_Node
8990 (N : Node_Id; Val : Node_Id); -- Node5
8992 procedure Set_Backwards_OK
8993 (N : Node_Id; Val : Boolean := True); -- Flag6
8995 procedure Set_Bad_Is_Detected
8996 (N : Node_Id; Val : Boolean := True); -- Flag15
8998 procedure Set_Body_Required
8999 (N : Node_Id; Val : Boolean := True); -- Flag13
9001 procedure Set_Body_To_Inline
9002 (N : Node_Id; Val : Node_Id); -- Node3
9004 procedure Set_Box_Present
9005 (N : Node_Id; Val : Boolean := True); -- Flag15
9007 procedure Set_By_Ref
9008 (N : Node_Id; Val : Boolean := True); -- Flag5
9010 procedure Set_Char_Literal_Value
9011 (N : Node_Id; Val : Uint); -- Uint2
9014 (N : Node_Id; Val : Name_Id); -- Name1
9016 procedure Set_Check_Address_Alignment
9017 (N : Node_Id; Val : Boolean := True); -- Flag11
9019 procedure Set_Choice_Parameter
9020 (N : Node_Id; Val : Node_Id); -- Node2
9022 procedure Set_Choices
9023 (N : Node_Id; Val : List_Id); -- List1
9025 procedure Set_Class_Present
9026 (N : Node_Id; Val : Boolean := True); -- Flag6
9028 procedure Set_Coextensions
9029 (N : Node_Id; Val : Elist_Id); -- Elist4
9031 procedure Set_Comes_From_Extended_Return_Statement
9032 (N : Node_Id; Val : Boolean := True); -- Flag18
9034 procedure Set_Compile_Time_Known_Aggregate
9035 (N : Node_Id; Val : Boolean := True); -- Flag18
9037 procedure Set_Component_Associations
9038 (N : Node_Id; Val : List_Id); -- List2
9040 procedure Set_Component_Clauses
9041 (N : Node_Id; Val : List_Id); -- List3
9043 procedure Set_Component_Definition
9044 (N : Node_Id; Val : Node_Id); -- Node4
9046 procedure Set_Component_Items
9047 (N : Node_Id; Val : List_Id); -- List3
9049 procedure Set_Component_List
9050 (N : Node_Id; Val : Node_Id); -- Node1
9052 procedure Set_Component_Name
9053 (N : Node_Id; Val : Node_Id); -- Node1
9055 procedure Set_Componentwise_Assignment
9056 (N : Node_Id; Val : Boolean := True); -- Flag14
9058 procedure Set_Condition
9059 (N : Node_Id; Val : Node_Id); -- Node1
9061 procedure Set_Condition_Actions
9062 (N : Node_Id; Val : List_Id); -- List3
9064 procedure Set_Config_Pragmas
9065 (N : Node_Id; Val : List_Id); -- List4
9067 procedure Set_Constant_Present
9068 (N : Node_Id; Val : Boolean := True); -- Flag17
9070 procedure Set_Constraint
9071 (N : Node_Id; Val : Node_Id); -- Node3
9073 procedure Set_Constraints
9074 (N : Node_Id; Val : List_Id); -- List1
9076 procedure Set_Context_Installed
9077 (N : Node_Id; Val : Boolean := True); -- Flag13
9079 procedure Set_Context_Items
9080 (N : Node_Id; Val : List_Id); -- List1
9082 procedure Set_Context_Pending
9083 (N : Node_Id; Val : Boolean := True); -- Flag16
9085 procedure Set_Controlling_Argument
9086 (N : Node_Id; Val : Node_Id); -- Node1
9088 procedure Set_Conversion_OK
9089 (N : Node_Id; Val : Boolean := True); -- Flag14
9091 procedure Set_Corresponding_Body
9092 (N : Node_Id; Val : Node_Id); -- Node5
9094 procedure Set_Corresponding_Formal_Spec
9095 (N : Node_Id; Val : Node_Id); -- Node3
9097 procedure Set_Corresponding_Generic_Association
9098 (N : Node_Id; Val : Node_Id); -- Node5
9100 procedure Set_Corresponding_Integer_Value
9101 (N : Node_Id; Val : Uint); -- Uint4
9103 procedure Set_Corresponding_Spec
9104 (N : Node_Id; Val : Node_Id); -- Node5
9106 procedure Set_Corresponding_Stub
9107 (N : Node_Id; Val : Node_Id); -- Node3
9109 procedure Set_Dcheck_Function
9110 (N : Node_Id; Val : Entity_Id); -- Node5
9112 procedure Set_Debug_Statement
9113 (N : Node_Id; Val : Node_Id); -- Node3
9115 procedure Set_Declarations
9116 (N : Node_Id; Val : List_Id); -- List2
9118 procedure Set_Default_Expression
9119 (N : Node_Id; Val : Node_Id); -- Node5
9121 procedure Set_Default_Storage_Pool
9122 (N : Node_Id; Val : Node_Id); -- Node3
9124 procedure Set_Default_Name
9125 (N : Node_Id; Val : Node_Id); -- Node2
9127 procedure Set_Defining_Identifier
9128 (N : Node_Id; Val : Entity_Id); -- Node1
9130 procedure Set_Defining_Unit_Name
9131 (N : Node_Id; Val : Node_Id); -- Node1
9133 procedure Set_Delay_Alternative
9134 (N : Node_Id; Val : Node_Id); -- Node4
9136 procedure Set_Delay_Statement
9137 (N : Node_Id; Val : Node_Id); -- Node2
9139 procedure Set_Delta_Expression
9140 (N : Node_Id; Val : Node_Id); -- Node3
9142 procedure Set_Digits_Expression
9143 (N : Node_Id; Val : Node_Id); -- Node2
9145 procedure Set_Discr_Check_Funcs_Built
9146 (N : Node_Id; Val : Boolean := True); -- Flag11
9148 procedure Set_Discrete_Choices
9149 (N : Node_Id; Val : List_Id); -- List4
9151 procedure Set_Discrete_Range
9152 (N : Node_Id; Val : Node_Id); -- Node4
9154 procedure Set_Discrete_Subtype_Definition
9155 (N : Node_Id; Val : Node_Id); -- Node4
9157 procedure Set_Discrete_Subtype_Definitions
9158 (N : Node_Id; Val : List_Id); -- List2
9160 procedure Set_Discriminant_Specifications
9161 (N : Node_Id; Val : List_Id); -- List4
9163 procedure Set_Discriminant_Type
9164 (N : Node_Id; Val : Node_Id); -- Node5
9166 procedure Set_Do_Accessibility_Check
9167 (N : Node_Id; Val : Boolean := True); -- Flag13
9169 procedure Set_Do_Discriminant_Check
9170 (N : Node_Id; Val : Boolean := True); -- Flag13
9172 procedure Set_Do_Division_Check
9173 (N : Node_Id; Val : Boolean := True); -- Flag13
9175 procedure Set_Do_Length_Check
9176 (N : Node_Id; Val : Boolean := True); -- Flag4
9178 procedure Set_Do_Overflow_Check
9179 (N : Node_Id; Val : Boolean := True); -- Flag17
9181 procedure Set_Do_Range_Check
9182 (N : Node_Id; Val : Boolean := True); -- Flag9
9184 procedure Set_Do_Storage_Check
9185 (N : Node_Id; Val : Boolean := True); -- Flag17
9187 procedure Set_Do_Tag_Check
9188 (N : Node_Id; Val : Boolean := True); -- Flag13
9190 procedure Set_Elaborate_All_Desirable
9191 (N : Node_Id; Val : Boolean := True); -- Flag9
9193 procedure Set_Elaborate_All_Present
9194 (N : Node_Id; Val : Boolean := True); -- Flag14
9196 procedure Set_Elaborate_Desirable
9197 (N : Node_Id; Val : Boolean := True); -- Flag11
9199 procedure Set_Elaborate_Present
9200 (N : Node_Id; Val : Boolean := True); -- Flag4
9202 procedure Set_Elaboration_Boolean
9203 (N : Node_Id; Val : Node_Id); -- Node2
9205 procedure Set_Else_Actions
9206 (N : Node_Id; Val : List_Id); -- List3
9208 procedure Set_Else_Statements
9209 (N : Node_Id; Val : List_Id); -- List4
9211 procedure Set_Elsif_Parts
9212 (N : Node_Id; Val : List_Id); -- List3
9214 procedure Set_Enclosing_Variant
9215 (N : Node_Id; Val : Node_Id); -- Node2
9217 procedure Set_End_Label
9218 (N : Node_Id; Val : Node_Id); -- Node4
9220 procedure Set_End_Span
9221 (N : Node_Id; Val : Uint); -- Uint5
9223 procedure Set_Entity
9224 (N : Node_Id; Val : Node_Id); -- Node4
9226 procedure Set_Entry_Body_Formal_Part
9227 (N : Node_Id; Val : Node_Id); -- Node5
9229 procedure Set_Entry_Call_Alternative
9230 (N : Node_Id; Val : Node_Id); -- Node1
9232 procedure Set_Entry_Call_Statement
9233 (N : Node_Id; Val : Node_Id); -- Node1
9235 procedure Set_Entry_Direct_Name
9236 (N : Node_Id; Val : Node_Id); -- Node1
9238 procedure Set_Entry_Index
9239 (N : Node_Id; Val : Node_Id); -- Node5
9241 procedure Set_Entry_Index_Specification
9242 (N : Node_Id; Val : Node_Id); -- Node4
9245 (N : Node_Id; Val : Node_Id); -- Node5
9247 procedure Set_Exception_Choices
9248 (N : Node_Id; Val : List_Id); -- List4
9250 procedure Set_Exception_Handlers
9251 (N : Node_Id; Val : List_Id); -- List5
9253 procedure Set_Exception_Junk
9254 (N : Node_Id; Val : Boolean := True); -- Flag8
9256 procedure Set_Exception_Label
9257 (N : Node_Id; Val : Node_Id); -- Node5
9259 procedure Set_Expansion_Delayed
9260 (N : Node_Id; Val : Boolean := True); -- Flag11
9262 procedure Set_Explicit_Actual_Parameter
9263 (N : Node_Id; Val : Node_Id); -- Node3
9265 procedure Set_Explicit_Generic_Actual_Parameter
9266 (N : Node_Id; Val : Node_Id); -- Node1
9268 procedure Set_Expression
9269 (N : Node_Id; Val : Node_Id); -- Node3
9271 procedure Set_Expressions
9272 (N : Node_Id; Val : List_Id); -- List1
9274 procedure Set_First_Bit
9275 (N : Node_Id; Val : Node_Id); -- Node3
9277 procedure Set_First_Inlined_Subprogram
9278 (N : Node_Id; Val : Entity_Id); -- Node3
9280 procedure Set_First_Name
9281 (N : Node_Id; Val : Boolean := True); -- Flag5
9283 procedure Set_First_Named_Actual
9284 (N : Node_Id; Val : Node_Id); -- Node4
9286 procedure Set_First_Real_Statement
9287 (N : Node_Id; Val : Node_Id); -- Node2
9289 procedure Set_First_Subtype_Link
9290 (N : Node_Id; Val : Entity_Id); -- Node5
9292 procedure Set_Float_Truncate
9293 (N : Node_Id; Val : Boolean := True); -- Flag11
9295 procedure Set_Formal_Type_Definition
9296 (N : Node_Id; Val : Node_Id); -- Node3
9298 procedure Set_Forwards_OK
9299 (N : Node_Id; Val : Boolean := True); -- Flag5
9301 procedure Set_From_At_Mod
9302 (N : Node_Id; Val : Boolean := True); -- Flag4
9304 procedure Set_From_Aspect_Specification
9305 (N : Node_Id; Val : Boolean := True); -- Flag13
9307 procedure Set_From_At_End
9308 (N : Node_Id; Val : Boolean := True); -- Flag4
9310 procedure Set_From_Default
9311 (N : Node_Id; Val : Boolean := True); -- Flag6
9313 procedure Set_Generic_Associations
9314 (N : Node_Id; Val : List_Id); -- List3
9316 procedure Set_Generic_Formal_Declarations
9317 (N : Node_Id; Val : List_Id); -- List2
9319 procedure Set_Generic_Parent
9320 (N : Node_Id; Val : Node_Id); -- Node5
9322 procedure Set_Generic_Parent_Type
9323 (N : Node_Id; Val : Node_Id); -- Node4
9325 procedure Set_Handled_Statement_Sequence
9326 (N : Node_Id; Val : Node_Id); -- Node4
9328 procedure Set_Handler_List_Entry
9329 (N : Node_Id; Val : Node_Id); -- Node2
9331 procedure Set_Has_Created_Identifier
9332 (N : Node_Id; Val : Boolean := True); -- Flag15
9334 procedure Set_Has_Dynamic_Length_Check
9335 (N : Node_Id; Val : Boolean := True); -- Flag10
9337 procedure Set_Has_Dynamic_Range_Check
9338 (N : Node_Id; Val : Boolean := True); -- Flag12
9340 procedure Set_Has_Init_Expression
9341 (N : Node_Id; Val : Boolean := True); -- Flag14
9343 procedure Set_Has_Local_Raise
9344 (N : Node_Id; Val : Boolean := True); -- Flag8
9346 procedure Set_Has_No_Elaboration_Code
9347 (N : Node_Id; Val : Boolean := True); -- Flag17
9349 procedure Set_Has_Pragma_CPU
9350 (N : Node_Id; Val : Boolean := True); -- Flag14
9352 procedure Set_Has_Pragma_Priority
9353 (N : Node_Id; Val : Boolean := True); -- Flag6
9355 procedure Set_Has_Pragma_Suppress_All
9356 (N : Node_Id; Val : Boolean := True); -- Flag14
9358 procedure Set_Has_Private_View
9359 (N : Node_Id; Val : Boolean := True); -- Flag11
9361 procedure Set_Has_Relative_Deadline_Pragma
9362 (N : Node_Id; Val : Boolean := True); -- Flag9
9364 procedure Set_Has_Self_Reference
9365 (N : Node_Id; Val : Boolean := True); -- Flag13
9367 procedure Set_Has_Storage_Size_Pragma
9368 (N : Node_Id; Val : Boolean := True); -- Flag5
9370 procedure Set_Has_Task_Info_Pragma
9371 (N : Node_Id; Val : Boolean := True); -- Flag7
9373 procedure Set_Has_Task_Name_Pragma
9374 (N : Node_Id; Val : Boolean := True); -- Flag8
9376 procedure Set_Has_Wide_Character
9377 (N : Node_Id; Val : Boolean := True); -- Flag11
9379 procedure Set_Has_Wide_Wide_Character
9380 (N : Node_Id; Val : Boolean := True); -- Flag13
9382 procedure Set_Hidden_By_Use_Clause
9383 (N : Node_Id; Val : Elist_Id); -- Elist4
9385 procedure Set_High_Bound
9386 (N : Node_Id; Val : Node_Id); -- Node2
9388 procedure Set_Identifier
9389 (N : Node_Id; Val : Node_Id); -- Node1
9391 procedure Set_Interface_List
9392 (N : Node_Id; Val : List_Id); -- List2
9394 procedure Set_Interface_Present
9395 (N : Node_Id; Val : Boolean := True); -- Flag16
9397 procedure Set_Implicit_With
9398 (N : Node_Id; Val : Boolean := True); -- Flag16
9400 procedure Set_Import_Interface_Present
9401 (N : Node_Id; Val : Boolean := True); -- Flag16
9403 procedure Set_In_Present
9404 (N : Node_Id; Val : Boolean := True); -- Flag15
9406 procedure Set_Includes_Infinities
9407 (N : Node_Id; Val : Boolean := True); -- Flag11
9409 procedure Set_Inherited_Discriminant
9410 (N : Node_Id; Val : Boolean := True); -- Flag13
9412 procedure Set_Instance_Spec
9413 (N : Node_Id; Val : Node_Id); -- Node5
9415 procedure Set_Intval
9416 (N : Node_Id; Val : Uint); -- Uint3
9418 procedure Set_Is_Accessibility_Actual
9419 (N : Node_Id; Val : Boolean := True); -- Flag13
9421 procedure Set_Is_Asynchronous_Call_Block
9422 (N : Node_Id; Val : Boolean := True); -- Flag7
9424 procedure Set_Is_Component_Left_Opnd
9425 (N : Node_Id; Val : Boolean := True); -- Flag13
9427 procedure Set_Is_Component_Right_Opnd
9428 (N : Node_Id; Val : Boolean := True); -- Flag14
9430 procedure Set_Is_Controlling_Actual
9431 (N : Node_Id; Val : Boolean := True); -- Flag16
9433 procedure Set_Is_Delayed_Aspect
9434 (N : Node_Id; Val : Boolean := True); -- Flag14
9436 procedure Set_Is_Dynamic_Coextension
9437 (N : Node_Id; Val : Boolean := True); -- Flag18
9439 procedure Set_Is_Elsif
9440 (N : Node_Id; Val : Boolean := True); -- Flag13
9442 procedure Set_Is_Entry_Barrier_Function
9443 (N : Node_Id; Val : Boolean := True); -- Flag8
9445 procedure Set_Is_Expanded_Build_In_Place_Call
9446 (N : Node_Id; Val : Boolean := True); -- Flag11
9448 procedure Set_Is_Folded_In_Parser
9449 (N : Node_Id; Val : Boolean := True); -- Flag4
9451 procedure Set_Is_In_Discriminant_Check
9452 (N : Node_Id; Val : Boolean := True); -- Flag11
9454 procedure Set_Is_Machine_Number
9455 (N : Node_Id; Val : Boolean := True); -- Flag11
9457 procedure Set_Is_Null_Loop
9458 (N : Node_Id; Val : Boolean := True); -- Flag16
9460 procedure Set_Is_Overloaded
9461 (N : Node_Id; Val : Boolean := True); -- Flag5
9463 procedure Set_Is_Power_Of_2_For_Shift
9464 (N : Node_Id; Val : Boolean := True); -- Flag13
9466 procedure Set_Is_Protected_Subprogram_Body
9467 (N : Node_Id; Val : Boolean := True); -- Flag7
9469 procedure Set_Is_Static_Coextension
9470 (N : Node_Id; Val : Boolean := True); -- Flag14
9472 procedure Set_Is_Static_Expression
9473 (N : Node_Id; Val : Boolean := True); -- Flag6
9475 procedure Set_Is_Subprogram_Descriptor
9476 (N : Node_Id; Val : Boolean := True); -- Flag16
9478 procedure Set_Is_Task_Allocation_Block
9479 (N : Node_Id; Val : Boolean := True); -- Flag6
9481 procedure Set_Is_Task_Master
9482 (N : Node_Id; Val : Boolean := True); -- Flag5
9484 procedure Set_Iteration_Scheme
9485 (N : Node_Id; Val : Node_Id); -- Node2
9487 procedure Set_Iterator_Specification
9488 (N : Node_Id; Val : Node_Id); -- Node2
9491 (N : Node_Id; Val : Entity_Id); -- Node1
9493 procedure Set_Kill_Range_Check
9494 (N : Node_Id; Val : Boolean := True); -- Flag11
9496 procedure Set_Last_Bit
9497 (N : Node_Id; Val : Node_Id); -- Node4
9499 procedure Set_Last_Name
9500 (N : Node_Id; Val : Boolean := True); -- Flag6
9502 procedure Set_Library_Unit
9503 (N : Node_Id; Val : Node_Id); -- Node4
9505 procedure Set_Label_Construct
9506 (N : Node_Id; Val : Node_Id); -- Node2
9508 procedure Set_Left_Opnd
9509 (N : Node_Id; Val : Node_Id); -- Node2
9511 procedure Set_Limited_View_Installed
9512 (N : Node_Id; Val : Boolean := True); -- Flag18
9514 procedure Set_Limited_Present
9515 (N : Node_Id; Val : Boolean := True); -- Flag17
9517 procedure Set_Literals
9518 (N : Node_Id; Val : List_Id); -- List1
9520 procedure Set_Local_Raise_Not_OK
9521 (N : Node_Id; Val : Boolean := True); -- Flag7
9523 procedure Set_Local_Raise_Statements
9524 (N : Node_Id; Val : Elist_Id); -- Elist1
9526 procedure Set_Loop_Actions
9527 (N : Node_Id; Val : List_Id); -- List2
9529 procedure Set_Loop_Parameter_Specification
9530 (N : Node_Id; Val : Node_Id); -- Node4
9532 procedure Set_Low_Bound
9533 (N : Node_Id; Val : Node_Id); -- Node1
9535 procedure Set_Mod_Clause
9536 (N : Node_Id; Val : Node_Id); -- Node2
9538 procedure Set_More_Ids
9539 (N : Node_Id; Val : Boolean := True); -- Flag5
9541 procedure Set_Must_Be_Byte_Aligned
9542 (N : Node_Id; Val : Boolean := True); -- Flag14
9544 procedure Set_Must_Not_Freeze
9545 (N : Node_Id; Val : Boolean := True); -- Flag8
9547 procedure Set_Must_Not_Override
9548 (N : Node_Id; Val : Boolean := True); -- Flag15
9550 procedure Set_Must_Override
9551 (N : Node_Id; Val : Boolean := True); -- Flag14
9554 (N : Node_Id; Val : Node_Id); -- Node2
9557 (N : Node_Id; Val : List_Id); -- List2
9559 procedure Set_Next_Entity
9560 (N : Node_Id; Val : Node_Id); -- Node2
9562 procedure Set_Next_Exit_Statement
9563 (N : Node_Id; Val : Node_Id); -- Node3
9565 procedure Set_Next_Implicit_With
9566 (N : Node_Id; Val : Node_Id); -- Node3
9568 procedure Set_Next_Named_Actual
9569 (N : Node_Id; Val : Node_Id); -- Node4
9571 procedure Set_Next_Pragma
9572 (N : Node_Id; Val : Node_Id); -- Node1
9574 procedure Set_Next_Rep_Item
9575 (N : Node_Id; Val : Node_Id); -- Node5
9577 procedure Set_Next_Use_Clause
9578 (N : Node_Id; Val : Node_Id); -- Node3
9580 procedure Set_No_Ctrl_Actions
9581 (N : Node_Id; Val : Boolean := True); -- Flag7
9583 procedure Set_No_Elaboration_Check
9584 (N : Node_Id; Val : Boolean := True); -- Flag14
9586 procedure Set_No_Entities_Ref_In_Spec
9587 (N : Node_Id; Val : Boolean := True); -- Flag8
9589 procedure Set_No_Initialization
9590 (N : Node_Id; Val : Boolean := True); -- Flag13
9592 procedure Set_No_Truncation
9593 (N : Node_Id; Val : Boolean := True); -- Flag17
9595 procedure Set_Null_Present
9596 (N : Node_Id; Val : Boolean := True); -- Flag13
9598 procedure Set_Null_Exclusion_Present
9599 (N : Node_Id; Val : Boolean := True); -- Flag11
9601 procedure Set_Null_Exclusion_In_Return_Present
9602 (N : Node_Id; Val : Boolean := True); -- Flag14
9604 procedure Set_Null_Record_Present
9605 (N : Node_Id; Val : Boolean := True); -- Flag17
9607 procedure Set_Object_Definition
9608 (N : Node_Id; Val : Node_Id); -- Node4
9610 procedure Set_Of_Present
9611 (N : Node_Id; Val : Boolean := True); -- Flag16
9613 procedure Set_Original_Discriminant
9614 (N : Node_Id; Val : Node_Id); -- Node2
9616 procedure Set_Original_Entity
9617 (N : Node_Id; Val : Entity_Id); -- Node2
9619 procedure Set_Others_Discrete_Choices
9620 (N : Node_Id; Val : List_Id); -- List1
9622 procedure Set_Out_Present
9623 (N : Node_Id; Val : Boolean := True); -- Flag17
9625 procedure Set_Parameter_Associations
9626 (N : Node_Id; Val : List_Id); -- List3
9628 procedure Set_Parameter_List_Truncated
9629 (N : Node_Id; Val : Boolean := True); -- Flag17
9631 procedure Set_Parameter_Specifications
9632 (N : Node_Id; Val : List_Id); -- List3
9634 procedure Set_Parameter_Type
9635 (N : Node_Id; Val : Node_Id); -- Node2
9637 procedure Set_Parent_Spec
9638 (N : Node_Id; Val : Node_Id); -- Node4
9640 procedure Set_Position
9641 (N : Node_Id; Val : Node_Id); -- Node2
9643 procedure Set_Pragma_Argument_Associations
9644 (N : Node_Id; Val : List_Id); -- List2
9646 procedure Set_Pragma_Enabled
9647 (N : Node_Id; Val : Boolean := True); -- Flag5
9649 procedure Set_Pragma_Identifier
9650 (N : Node_Id; Val : Node_Id); -- Node4
9652 procedure Set_Pragmas_After
9653 (N : Node_Id; Val : List_Id); -- List5
9655 procedure Set_Pragmas_Before
9656 (N : Node_Id; Val : List_Id); -- List4
9658 procedure Set_Prefix
9659 (N : Node_Id; Val : Node_Id); -- Node3
9661 procedure Set_Present_Expr
9662 (N : Node_Id; Val : Uint); -- Uint3
9664 procedure Set_Prev_Ids
9665 (N : Node_Id; Val : Boolean := True); -- Flag6
9667 procedure Set_Print_In_Hex
9668 (N : Node_Id; Val : Boolean := True); -- Flag13
9670 procedure Set_Private_Declarations
9671 (N : Node_Id; Val : List_Id); -- List3
9673 procedure Set_Private_Present
9674 (N : Node_Id; Val : Boolean := True); -- Flag15
9676 procedure Set_Procedure_To_Call
9677 (N : Node_Id; Val : Node_Id); -- Node2
9679 procedure Set_Proper_Body
9680 (N : Node_Id; Val : Node_Id); -- Node1
9682 procedure Set_Protected_Definition
9683 (N : Node_Id; Val : Node_Id); -- Node3
9685 procedure Set_Protected_Present
9686 (N : Node_Id; Val : Boolean := True); -- Flag6
9688 procedure Set_Raises_Constraint_Error
9689 (N : Node_Id; Val : Boolean := True); -- Flag7
9691 procedure Set_Range_Constraint
9692 (N : Node_Id; Val : Node_Id); -- Node4
9694 procedure Set_Range_Expression
9695 (N : Node_Id; Val : Node_Id); -- Node4
9697 procedure Set_Real_Range_Specification
9698 (N : Node_Id; Val : Node_Id); -- Node4
9700 procedure Set_Realval
9701 (N : Node_Id; Val : Ureal); -- Ureal3
9703 procedure Set_Reason
9704 (N : Node_Id; Val : Uint); -- Uint3
9706 procedure Set_Record_Extension_Part
9707 (N : Node_Id; Val : Node_Id); -- Node3
9709 procedure Set_Redundant_Use
9710 (N : Node_Id; Val : Boolean := True); -- Flag13
9712 procedure Set_Renaming_Exception
9713 (N : Node_Id; Val : Node_Id); -- Node2
9715 procedure Set_Result_Definition
9716 (N : Node_Id; Val : Node_Id); -- Node4
9718 procedure Set_Return_Object_Declarations
9719 (N : Node_Id; Val : List_Id); -- List3
9721 procedure Set_Return_Statement_Entity
9722 (N : Node_Id; Val : Node_Id); -- Node5
9724 procedure Set_Reverse_Present
9725 (N : Node_Id; Val : Boolean := True); -- Flag15
9727 procedure Set_Right_Opnd
9728 (N : Node_Id; Val : Node_Id); -- Node3
9730 procedure Set_Rounded_Result
9731 (N : Node_Id; Val : Boolean := True); -- Flag18
9733 procedure Set_SCIL_Controlling_Tag
9734 (N : Node_Id; Val : Node_Id); -- Node5
9736 procedure Set_SCIL_Entity
9737 (N : Node_Id; Val : Node_Id); -- Node4
9739 procedure Set_SCIL_Tag_Value
9740 (N : Node_Id; Val : Node_Id); -- Node5
9742 procedure Set_SCIL_Target_Prim
9743 (N : Node_Id; Val : Node_Id); -- Node2
9746 (N : Node_Id; Val : Node_Id); -- Node3
9748 procedure Set_Select_Alternatives
9749 (N : Node_Id; Val : List_Id); -- List1
9751 procedure Set_Selector_Name
9752 (N : Node_Id; Val : Node_Id); -- Node2
9754 procedure Set_Selector_Names
9755 (N : Node_Id; Val : List_Id); -- List1
9757 procedure Set_Shift_Count_OK
9758 (N : Node_Id; Val : Boolean := True); -- Flag4
9760 procedure Set_Source_Type
9761 (N : Node_Id; Val : Entity_Id); -- Node1
9763 procedure Set_Specification
9764 (N : Node_Id; Val : Node_Id); -- Node1
9766 procedure Set_Split_PPC
9767 (N : Node_Id; Val : Boolean); -- Flag17
9769 procedure Set_Statements
9770 (N : Node_Id; Val : List_Id); -- List3
9772 procedure Set_Static_Processing_OK
9773 (N : Node_Id; Val : Boolean); -- Flag4
9775 procedure Set_Storage_Pool
9776 (N : Node_Id; Val : Node_Id); -- Node1
9778 procedure Set_Strval
9779 (N : Node_Id; Val : String_Id); -- Str3
9781 procedure Set_Subtype_Indication
9782 (N : Node_Id; Val : Node_Id); -- Node5
9784 procedure Set_Subtype_Mark
9785 (N : Node_Id; Val : Node_Id); -- Node4
9787 procedure Set_Subtype_Marks
9788 (N : Node_Id; Val : List_Id); -- List2
9790 procedure Set_Suppress_Loop_Warnings
9791 (N : Node_Id; Val : Boolean := True); -- Flag17
9793 procedure Set_Synchronized_Present
9794 (N : Node_Id; Val : Boolean := True); -- Flag7
9796 procedure Set_Tagged_Present
9797 (N : Node_Id; Val : Boolean := True); -- Flag15
9799 procedure Set_Target_Type
9800 (N : Node_Id; Val : Entity_Id); -- Node2
9802 procedure Set_Task_Definition
9803 (N : Node_Id; Val : Node_Id); -- Node3
9805 procedure Set_Task_Present
9806 (N : Node_Id; Val : Boolean := True); -- Flag5
9808 procedure Set_Then_Actions
9809 (N : Node_Id; Val : List_Id); -- List2
9811 procedure Set_Then_Statements
9812 (N : Node_Id; Val : List_Id); -- List2
9814 procedure Set_Treat_Fixed_As_Integer
9815 (N : Node_Id; Val : Boolean := True); -- Flag14
9817 procedure Set_Triggering_Alternative
9818 (N : Node_Id; Val : Node_Id); -- Node1
9820 procedure Set_Triggering_Statement
9821 (N : Node_Id; Val : Node_Id); -- Node1
9823 procedure Set_TSS_Elist
9824 (N : Node_Id; Val : Elist_Id); -- Elist3
9826 procedure Set_Type_Definition
9827 (N : Node_Id; Val : Node_Id); -- Node3
9830 (N : Node_Id; Val : Node_Id); -- Node2
9832 procedure Set_Unknown_Discriminants_Present
9833 (N : Node_Id; Val : Boolean := True); -- Flag13
9835 procedure Set_Unreferenced_In_Spec
9836 (N : Node_Id; Val : Boolean := True); -- Flag7
9838 procedure Set_Variant_Part
9839 (N : Node_Id; Val : Node_Id); -- Node4
9841 procedure Set_Variants
9842 (N : Node_Id; Val : List_Id); -- List1
9844 procedure Set_Visible_Declarations
9845 (N : Node_Id; Val : List_Id); -- List2
9847 procedure Set_Was_Originally_Stub
9848 (N : Node_Id; Val : Boolean := True); -- Flag13
9850 procedure Set_Withed_Body
9851 (N : Node_Id; Val : Node_Id); -- Node1
9853 procedure Set_Zero_Cost_Handling
9854 (N : Node_Id; Val : Boolean := True); -- Flag5
9856 -------------------------
9857 -- Iterator Procedures --
9858 -------------------------
9860 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9862 procedure Next_Entity (N : in out Node_Id);
9863 procedure Next_Named_Actual (N : in out Node_Id);
9864 procedure Next_Rep_Item (N : in out Node_Id);
9865 procedure Next_Use_Clause (N : in out Node_Id);
9867 -------------------------------------------
9868 -- Miscellaneous Tree Access Subprograms --
9869 -------------------------------------------
9871 function End_Location (N : Node_Id) return Source_Ptr;
9872 -- N is an N_If_Statement or N_Case_Statement node, and this function
9873 -- returns the location of the IF token in the END IF sequence by
9874 -- translating the value of the End_Span field.
9876 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9877 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
9878 -- the End_Span field to correspond to the given value S. In other words,
9879 -- End_Span is set to the difference between S and Sloc (N), the starting
9882 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
9883 -- Given an argument to a pragma Arg, this function returns the expression
9884 -- for the argument. This is Arg itself, or, in the case where Arg is a
9885 -- pragma argument association node, the expression from this node.
9887 --------------------------------
9888 -- Node_Kind Membership Tests --
9889 --------------------------------
9891 -- The following functions allow a convenient notation for testing whether
9892 -- a Node_Kind value matches any one of a list of possible values. In each
9893 -- case True is returned if the given T argument is equal to any of the V
9894 -- arguments. Note that there is a similar set of functions defined in
9895 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
9900 V2 : Node_Kind) return Boolean;
9906 V3 : Node_Kind) return Boolean;
9913 V4 : Node_Kind) return Boolean;
9921 V5 : Node_Kind) return Boolean;
9930 V6 : Node_Kind) return Boolean;
9940 V7 : Node_Kind) return Boolean;
9951 V8 : Node_Kind) return Boolean;
9963 V9 : Node_Kind) return Boolean;
9965 pragma Inline (Nkind_In);
9966 -- Inline all above functions
9968 -----------------------
9969 -- Utility Functions --
9970 -----------------------
9972 function Pragma_Name (N : Node_Id) return Name_Id;
9973 pragma Inline (Pragma_Name);
9974 -- Convenient function to obtain Chars field of Pragma_Identifier
9976 -----------------------------
9977 -- Syntactic Parent Tables --
9978 -----------------------------
9980 -- These tables show for each node, and for each of the five fields,
9981 -- whether the corresponding field is syntactic (True) or semantic (False).
9982 -- Unused entries are also set to False.
9984 subtype Field_Num is Natural range 1 .. 5;
9986 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
9988 -- Following entries can be built automatically from the sinfo sources
9989 -- using the makeisf utility (currently this program is in spitbol).
9992 (1 => True, -- Chars (Name1)
9993 2 => False, -- Original_Discriminant (Node2-Sem)
9994 3 => False, -- unused
9995 4 => False, -- Entity (Node4-Sem)
9996 5 => False), -- Etype (Node5-Sem)
9998 N_Integer_Literal =>
9999 (1 => False, -- unused
10000 2 => False, -- Original_Entity (Node2-Sem)
10001 3 => True, -- Intval (Uint3)
10002 4 => False, -- unused
10003 5 => False), -- Etype (Node5-Sem)
10006 (1 => False, -- unused
10007 2 => False, -- Original_Entity (Node2-Sem)
10008 3 => True, -- Realval (Ureal3)
10009 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
10010 5 => False), -- Etype (Node5-Sem)
10012 N_Character_Literal =>
10013 (1 => True, -- Chars (Name1)
10014 2 => True, -- Char_Literal_Value (Uint2)
10015 3 => False, -- unused
10016 4 => False, -- Entity (Node4-Sem)
10017 5 => False), -- Etype (Node5-Sem)
10019 N_String_Literal =>
10020 (1 => False, -- unused
10021 2 => False, -- unused
10022 3 => True, -- Strval (Str3)
10023 4 => False, -- unused
10024 5 => False), -- Etype (Node5-Sem)
10027 (1 => False, -- Next_Pragma (Node1-Sem)
10028 2 => True, -- Pragma_Argument_Associations (List2)
10029 3 => True, -- Debug_Statement (Node3)
10030 4 => True, -- Pragma_Identifier (Node4)
10031 5 => False), -- Next_Rep_Item (Node5-Sem)
10033 N_Pragma_Argument_Association =>
10034 (1 => True, -- Chars (Name1)
10035 2 => False, -- unused
10036 3 => True, -- Expression (Node3)
10037 4 => False, -- unused
10038 5 => False), -- unused
10040 N_Defining_Identifier =>
10041 (1 => True, -- Chars (Name1)
10042 2 => False, -- Next_Entity (Node2-Sem)
10043 3 => False, -- Scope (Node3-Sem)
10044 4 => False, -- unused
10045 5 => False), -- Etype (Node5-Sem)
10047 N_Full_Type_Declaration =>
10048 (1 => True, -- Defining_Identifier (Node1)
10049 2 => False, -- unused
10050 3 => True, -- Type_Definition (Node3)
10051 4 => True, -- Discriminant_Specifications (List4)
10052 5 => False), -- unused
10054 N_Subtype_Declaration =>
10055 (1 => True, -- Defining_Identifier (Node1)
10056 2 => False, -- unused
10057 3 => False, -- unused
10058 4 => False, -- Generic_Parent_Type (Node4-Sem)
10059 5 => True), -- Subtype_Indication (Node5)
10061 N_Subtype_Indication =>
10062 (1 => False, -- unused
10063 2 => False, -- unused
10064 3 => True, -- Constraint (Node3)
10065 4 => True, -- Subtype_Mark (Node4)
10066 5 => False), -- Etype (Node5-Sem)
10068 N_Object_Declaration =>
10069 (1 => True, -- Defining_Identifier (Node1)
10070 2 => False, -- Handler_List_Entry (Node2-Sem)
10071 3 => True, -- Expression (Node3)
10072 4 => True, -- Object_Definition (Node4)
10073 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10075 N_Number_Declaration =>
10076 (1 => True, -- Defining_Identifier (Node1)
10077 2 => False, -- unused
10078 3 => True, -- Expression (Node3)
10079 4 => False, -- unused
10080 5 => False), -- unused
10082 N_Derived_Type_Definition =>
10083 (1 => False, -- unused
10084 2 => True, -- Interface_List (List2)
10085 3 => True, -- Record_Extension_Part (Node3)
10086 4 => False, -- unused
10087 5 => True), -- Subtype_Indication (Node5)
10089 N_Range_Constraint =>
10090 (1 => False, -- unused
10091 2 => False, -- unused
10092 3 => False, -- unused
10093 4 => True, -- Range_Expression (Node4)
10094 5 => False), -- unused
10097 (1 => True, -- Low_Bound (Node1)
10098 2 => True, -- High_Bound (Node2)
10099 3 => False, -- unused
10100 4 => False, -- unused
10101 5 => False), -- Etype (Node5-Sem)
10103 N_Enumeration_Type_Definition =>
10104 (1 => True, -- Literals (List1)
10105 2 => False, -- unused
10106 3 => False, -- unused
10107 4 => True, -- End_Label (Node4)
10108 5 => False), -- unused
10110 N_Defining_Character_Literal =>
10111 (1 => True, -- Chars (Name1)
10112 2 => False, -- Next_Entity (Node2-Sem)
10113 3 => False, -- Scope (Node3-Sem)
10114 4 => False, -- unused
10115 5 => False), -- Etype (Node5-Sem)
10117 N_Signed_Integer_Type_Definition =>
10118 (1 => True, -- Low_Bound (Node1)
10119 2 => True, -- High_Bound (Node2)
10120 3 => False, -- unused
10121 4 => False, -- unused
10122 5 => False), -- unused
10124 N_Modular_Type_Definition =>
10125 (1 => False, -- unused
10126 2 => False, -- unused
10127 3 => True, -- Expression (Node3)
10128 4 => False, -- unused
10129 5 => False), -- unused
10131 N_Floating_Point_Definition =>
10132 (1 => False, -- unused
10133 2 => True, -- Digits_Expression (Node2)
10134 3 => False, -- unused
10135 4 => True, -- Real_Range_Specification (Node4)
10136 5 => False), -- unused
10138 N_Real_Range_Specification =>
10139 (1 => True, -- Low_Bound (Node1)
10140 2 => True, -- High_Bound (Node2)
10141 3 => False, -- unused
10142 4 => False, -- unused
10143 5 => False), -- unused
10145 N_Ordinary_Fixed_Point_Definition =>
10146 (1 => False, -- unused
10147 2 => False, -- unused
10148 3 => True, -- Delta_Expression (Node3)
10149 4 => True, -- Real_Range_Specification (Node4)
10150 5 => False), -- unused
10152 N_Decimal_Fixed_Point_Definition =>
10153 (1 => False, -- unused
10154 2 => True, -- Digits_Expression (Node2)
10155 3 => True, -- Delta_Expression (Node3)
10156 4 => True, -- Real_Range_Specification (Node4)
10157 5 => False), -- unused
10159 N_Digits_Constraint =>
10160 (1 => False, -- unused
10161 2 => True, -- Digits_Expression (Node2)
10162 3 => False, -- unused
10163 4 => True, -- Range_Constraint (Node4)
10164 5 => False), -- unused
10166 N_Unconstrained_Array_Definition =>
10167 (1 => False, -- unused
10168 2 => True, -- Subtype_Marks (List2)
10169 3 => False, -- unused
10170 4 => True, -- Component_Definition (Node4)
10171 5 => False), -- unused
10173 N_Constrained_Array_Definition =>
10174 (1 => False, -- unused
10175 2 => True, -- Discrete_Subtype_Definitions (List2)
10176 3 => False, -- unused
10177 4 => True, -- Component_Definition (Node4)
10178 5 => False), -- unused
10180 N_Component_Definition =>
10181 (1 => False, -- unused
10182 2 => False, -- unused
10183 3 => True, -- Access_Definition (Node3)
10184 4 => False, -- unused
10185 5 => True), -- Subtype_Indication (Node5)
10187 N_Discriminant_Specification =>
10188 (1 => True, -- Defining_Identifier (Node1)
10189 2 => False, -- unused
10190 3 => True, -- Expression (Node3)
10191 4 => False, -- unused
10192 5 => True), -- Discriminant_Type (Node5)
10194 N_Index_Or_Discriminant_Constraint =>
10195 (1 => True, -- Constraints (List1)
10196 2 => False, -- unused
10197 3 => False, -- unused
10198 4 => False, -- unused
10199 5 => False), -- unused
10201 N_Discriminant_Association =>
10202 (1 => True, -- Selector_Names (List1)
10203 2 => False, -- unused
10204 3 => True, -- Expression (Node3)
10205 4 => False, -- unused
10206 5 => False), -- unused
10208 N_Record_Definition =>
10209 (1 => True, -- Component_List (Node1)
10210 2 => True, -- Interface_List (List2)
10211 3 => False, -- unused
10212 4 => True, -- End_Label (Node4)
10213 5 => False), -- unused
10215 N_Component_List =>
10216 (1 => False, -- unused
10217 2 => False, -- unused
10218 3 => True, -- Component_Items (List3)
10219 4 => True, -- Variant_Part (Node4)
10220 5 => False), -- unused
10222 N_Component_Declaration =>
10223 (1 => True, -- Defining_Identifier (Node1)
10224 2 => False, -- unused
10225 3 => True, -- Expression (Node3)
10226 4 => True, -- Component_Definition (Node4)
10227 5 => False), -- unused
10230 (1 => True, -- Variants (List1)
10231 2 => True, -- Name (Node2)
10232 3 => False, -- unused
10233 4 => False, -- unused
10234 5 => False), -- unused
10237 (1 => True, -- Component_List (Node1)
10238 2 => False, -- Enclosing_Variant (Node2-Sem)
10239 3 => False, -- Present_Expr (Uint3-Sem)
10240 4 => True, -- Discrete_Choices (List4)
10241 5 => False), -- Dcheck_Function (Node5-Sem)
10244 (1 => False, -- Others_Discrete_Choices (List1-Sem)
10245 2 => False, -- unused
10246 3 => False, -- unused
10247 4 => False, -- unused
10248 5 => False), -- unused
10250 N_Access_To_Object_Definition =>
10251 (1 => False, -- unused
10252 2 => False, -- unused
10253 3 => False, -- unused
10254 4 => False, -- unused
10255 5 => True), -- Subtype_Indication (Node5)
10257 N_Access_Function_Definition =>
10258 (1 => False, -- unused
10259 2 => False, -- unused
10260 3 => True, -- Parameter_Specifications (List3)
10261 4 => True, -- Result_Definition (Node4)
10262 5 => False), -- unused
10264 N_Access_Procedure_Definition =>
10265 (1 => False, -- unused
10266 2 => False, -- unused
10267 3 => True, -- Parameter_Specifications (List3)
10268 4 => False, -- unused
10269 5 => False), -- unused
10271 N_Access_Definition =>
10272 (1 => False, -- unused
10273 2 => False, -- unused
10274 3 => True, -- Access_To_Subprogram_Definition (Node3)
10275 4 => True, -- Subtype_Mark (Node4)
10276 5 => False), -- unused
10278 N_Incomplete_Type_Declaration =>
10279 (1 => True, -- Defining_Identifier (Node1)
10280 2 => False, -- unused
10281 3 => False, -- unused
10282 4 => True, -- Discriminant_Specifications (List4)
10283 5 => False), -- unused
10285 N_Explicit_Dereference =>
10286 (1 => False, -- unused
10287 2 => False, -- unused
10288 3 => True, -- Prefix (Node3)
10289 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10290 5 => False), -- Etype (Node5-Sem)
10292 N_Indexed_Component =>
10293 (1 => True, -- Expressions (List1)
10294 2 => False, -- unused
10295 3 => True, -- Prefix (Node3)
10296 4 => False, -- unused
10297 5 => False), -- Etype (Node5-Sem)
10300 (1 => False, -- unused
10301 2 => False, -- unused
10302 3 => True, -- Prefix (Node3)
10303 4 => True, -- Discrete_Range (Node4)
10304 5 => False), -- Etype (Node5-Sem)
10306 N_Selected_Component =>
10307 (1 => False, -- unused
10308 2 => True, -- Selector_Name (Node2)
10309 3 => True, -- Prefix (Node3)
10310 4 => False, -- unused
10311 5 => False), -- Etype (Node5-Sem)
10313 N_Attribute_Reference =>
10314 (1 => True, -- Expressions (List1)
10315 2 => True, -- Attribute_Name (Name2)
10316 3 => True, -- Prefix (Node3)
10317 4 => False, -- Entity (Node4-Sem)
10318 5 => False), -- Etype (Node5-Sem)
10321 (1 => True, -- Expressions (List1)
10322 2 => True, -- Component_Associations (List2)
10323 3 => False, -- Aggregate_Bounds (Node3-Sem)
10324 4 => False, -- unused
10325 5 => False), -- Etype (Node5-Sem)
10327 N_Component_Association =>
10328 (1 => True, -- Choices (List1)
10329 2 => False, -- Loop_Actions (List2-Sem)
10330 3 => True, -- Expression (Node3)
10331 4 => False, -- unused
10332 5 => False), -- unused
10334 N_Extension_Aggregate =>
10335 (1 => True, -- Expressions (List1)
10336 2 => True, -- Component_Associations (List2)
10337 3 => True, -- Ancestor_Part (Node3)
10338 4 => False, -- unused
10339 5 => False), -- Etype (Node5-Sem)
10342 (1 => False, -- unused
10343 2 => False, -- unused
10344 3 => False, -- unused
10345 4 => False, -- unused
10346 5 => False), -- Etype (Node5-Sem)
10349 (1 => False, -- Actions (List1-Sem)
10350 2 => True, -- Left_Opnd (Node2)
10351 3 => True, -- Right_Opnd (Node3)
10352 4 => False, -- unused
10353 5 => False), -- Etype (Node5-Sem)
10356 (1 => False, -- Actions (List1-Sem)
10357 2 => True, -- Left_Opnd (Node2)
10358 3 => True, -- Right_Opnd (Node3)
10359 4 => False, -- unused
10360 5 => False), -- Etype (Node5-Sem)
10363 (1 => False, -- unused
10364 2 => True, -- Left_Opnd (Node2)
10365 3 => True, -- Right_Opnd (Node3)
10366 4 => True, -- Alternatives (List4)
10367 5 => False), -- Etype (Node5-Sem)
10370 (1 => False, -- unused
10371 2 => True, -- Left_Opnd (Node2)
10372 3 => True, -- Right_Opnd (Node3)
10373 4 => True, -- Alternatives (List4)
10374 5 => False), -- Etype (Node5-Sem)
10377 (1 => True, -- Chars (Name1)
10378 2 => True, -- Left_Opnd (Node2)
10379 3 => True, -- Right_Opnd (Node3)
10380 4 => False, -- Entity (Node4-Sem)
10381 5 => False), -- Etype (Node5-Sem)
10384 (1 => True, -- Chars (Name1)
10385 2 => True, -- Left_Opnd (Node2)
10386 3 => True, -- Right_Opnd (Node3)
10387 4 => False, -- Entity (Node4-Sem)
10388 5 => False), -- Etype (Node5-Sem)
10391 (1 => True, -- Chars (Name1)
10392 2 => True, -- Left_Opnd (Node2)
10393 3 => True, -- Right_Opnd (Node3)
10394 4 => False, -- Entity (Node4-Sem)
10395 5 => False), -- Etype (Node5-Sem)
10398 (1 => True, -- Chars (Name1)
10399 2 => True, -- Left_Opnd (Node2)
10400 3 => True, -- Right_Opnd (Node3)
10401 4 => False, -- Entity (Node4-Sem)
10402 5 => False), -- Etype (Node5-Sem)
10405 (1 => True, -- Chars (Name1)
10406 2 => True, -- Left_Opnd (Node2)
10407 3 => True, -- Right_Opnd (Node3)
10408 4 => False, -- Entity (Node4-Sem)
10409 5 => False), -- Etype (Node5-Sem)
10412 (1 => True, -- Chars (Name1)
10413 2 => True, -- Left_Opnd (Node2)
10414 3 => True, -- Right_Opnd (Node3)
10415 4 => False, -- Entity (Node4-Sem)
10416 5 => False), -- Etype (Node5-Sem)
10419 (1 => True, -- Chars (Name1)
10420 2 => True, -- Left_Opnd (Node2)
10421 3 => True, -- Right_Opnd (Node3)
10422 4 => False, -- Entity (Node4-Sem)
10423 5 => False), -- Etype (Node5-Sem)
10426 (1 => True, -- Chars (Name1)
10427 2 => True, -- Left_Opnd (Node2)
10428 3 => True, -- Right_Opnd (Node3)
10429 4 => False, -- Entity (Node4-Sem)
10430 5 => False), -- Etype (Node5-Sem)
10433 (1 => True, -- Chars (Name1)
10434 2 => True, -- Left_Opnd (Node2)
10435 3 => True, -- Right_Opnd (Node3)
10436 4 => False, -- Entity (Node4-Sem)
10437 5 => False), -- Etype (Node5-Sem)
10440 (1 => True, -- Chars (Name1)
10441 2 => True, -- Left_Opnd (Node2)
10442 3 => True, -- Right_Opnd (Node3)
10443 4 => False, -- Entity (Node4-Sem)
10444 5 => False), -- Etype (Node5-Sem)
10447 (1 => True, -- Chars (Name1)
10448 2 => True, -- Left_Opnd (Node2)
10449 3 => True, -- Right_Opnd (Node3)
10450 4 => False, -- Entity (Node4-Sem)
10451 5 => False), -- Etype (Node5-Sem)
10454 (1 => True, -- Chars (Name1)
10455 2 => True, -- Left_Opnd (Node2)
10456 3 => True, -- Right_Opnd (Node3)
10457 4 => False, -- Entity (Node4-Sem)
10458 5 => False), -- Etype (Node5-Sem)
10461 (1 => True, -- Chars (Name1)
10462 2 => True, -- Left_Opnd (Node2)
10463 3 => True, -- Right_Opnd (Node3)
10464 4 => False, -- Entity (Node4-Sem)
10465 5 => False), -- Etype (Node5-Sem)
10468 (1 => True, -- Chars (Name1)
10469 2 => True, -- Left_Opnd (Node2)
10470 3 => True, -- Right_Opnd (Node3)
10471 4 => False, -- Entity (Node4-Sem)
10472 5 => False), -- Etype (Node5-Sem)
10475 (1 => True, -- Chars (Name1)
10476 2 => True, -- Left_Opnd (Node2)
10477 3 => True, -- Right_Opnd (Node3)
10478 4 => False, -- Entity (Node4-Sem)
10479 5 => False), -- Etype (Node5-Sem)
10482 (1 => True, -- Chars (Name1)
10483 2 => True, -- Left_Opnd (Node2)
10484 3 => True, -- Right_Opnd (Node3)
10485 4 => False, -- Entity (Node4-Sem)
10486 5 => False), -- Etype (Node5-Sem)
10489 (1 => True, -- Chars (Name1)
10490 2 => True, -- Left_Opnd (Node2)
10491 3 => True, -- Right_Opnd (Node3)
10492 4 => False, -- Entity (Node4-Sem)
10493 5 => False), -- Etype (Node5-Sem)
10496 (1 => True, -- Chars (Name1)
10497 2 => False, -- unused
10498 3 => True, -- Right_Opnd (Node3)
10499 4 => False, -- Entity (Node4-Sem)
10500 5 => False), -- Etype (Node5-Sem)
10503 (1 => True, -- Chars (Name1)
10504 2 => False, -- unused
10505 3 => True, -- Right_Opnd (Node3)
10506 4 => False, -- Entity (Node4-Sem)
10507 5 => False), -- Etype (Node5-Sem)
10510 (1 => True, -- Chars (Name1)
10511 2 => False, -- unused
10512 3 => True, -- Right_Opnd (Node3)
10513 4 => False, -- Entity (Node4-Sem)
10514 5 => False), -- Etype (Node5-Sem)
10517 (1 => True, -- Chars (Name1)
10518 2 => False, -- unused
10519 3 => True, -- Right_Opnd (Node3)
10520 4 => False, -- Entity (Node4-Sem)
10521 5 => False), -- Etype (Node5-Sem)
10523 N_Type_Conversion =>
10524 (1 => False, -- unused
10525 2 => False, -- unused
10526 3 => True, -- Expression (Node3)
10527 4 => True, -- Subtype_Mark (Node4)
10528 5 => False), -- Etype (Node5-Sem)
10530 N_Qualified_Expression =>
10531 (1 => False, -- unused
10532 2 => False, -- unused
10533 3 => True, -- Expression (Node3)
10534 4 => True, -- Subtype_Mark (Node4)
10535 5 => False), -- Etype (Node5-Sem)
10537 N_Quantified_Expression =>
10538 (1 => True, -- Condition (Node1)
10539 2 => True, -- Iterator_Specification
10540 3 => False, -- unused
10541 4 => True, -- Loop_Parameter_Specification (Node4)
10542 5 => False), -- Etype (Node5-Sem)
10545 (1 => False, -- Storage_Pool (Node1-Sem)
10546 2 => False, -- Procedure_To_Call (Node2-Sem)
10547 3 => True, -- Expression (Node3)
10548 4 => False, -- Coextensions (Elist4-Sem)
10549 5 => False), -- Etype (Node5-Sem)
10551 N_Null_Statement =>
10552 (1 => False, -- unused
10553 2 => False, -- unused
10554 3 => False, -- unused
10555 4 => False, -- unused
10556 5 => False), -- unused
10559 (1 => True, -- Identifier (Node1)
10560 2 => False, -- unused
10561 3 => False, -- unused
10562 4 => False, -- unused
10563 5 => False), -- unused
10565 N_Assignment_Statement =>
10566 (1 => False, -- unused
10567 2 => True, -- Name (Node2)
10568 3 => True, -- Expression (Node3)
10569 4 => False, -- unused
10570 5 => False), -- unused
10573 (1 => True, -- Condition (Node1)
10574 2 => True, -- Then_Statements (List2)
10575 3 => True, -- Elsif_Parts (List3)
10576 4 => True, -- Else_Statements (List4)
10577 5 => True), -- End_Span (Uint5)
10580 (1 => True, -- Condition (Node1)
10581 2 => True, -- Then_Statements (List2)
10582 3 => False, -- Condition_Actions (List3-Sem)
10583 4 => False, -- unused
10584 5 => False), -- unused
10586 N_Case_Expression =>
10587 (1 => False, -- unused
10588 2 => False, -- unused
10589 3 => True, -- Expression (Node3)
10590 4 => True, -- Alternatives (List4)
10591 5 => False), -- unused
10593 N_Case_Expression_Alternative =>
10594 (1 => False, -- Actions (List1-Sem)
10595 2 => False, -- unused
10596 3 => True, -- Statements (List3)
10597 4 => True, -- Expression (Node4)
10598 5 => False), -- unused
10600 N_Case_Statement =>
10601 (1 => False, -- unused
10602 2 => False, -- unused
10603 3 => True, -- Expression (Node3)
10604 4 => True, -- Alternatives (List4)
10605 5 => True), -- End_Span (Uint5)
10607 N_Case_Statement_Alternative =>
10608 (1 => False, -- unused
10609 2 => False, -- unused
10610 3 => True, -- Statements (List3)
10611 4 => True, -- Discrete_Choices (List4)
10612 5 => False), -- unused
10614 N_Loop_Statement =>
10615 (1 => True, -- Identifier (Node1)
10616 2 => True, -- Iteration_Scheme (Node2)
10617 3 => True, -- Statements (List3)
10618 4 => True, -- End_Label (Node4)
10619 5 => False), -- unused
10621 N_Iteration_Scheme =>
10622 (1 => True, -- Condition (Node1)
10623 2 => True, -- Iterator_Specification (Node2)
10624 3 => False, -- Condition_Actions (List3-Sem)
10625 4 => True, -- Loop_Parameter_Specification (Node4)
10626 5 => False), -- unused
10628 N_Loop_Parameter_Specification =>
10629 (1 => True, -- Defining_Identifier (Node1)
10630 2 => False, -- unused
10631 3 => False, -- unused
10632 4 => True, -- Discrete_Subtype_Definition (Node4)
10633 5 => False), -- unused
10635 N_Iterator_Specification =>
10636 (1 => True, -- Defining_Identifier (Node1)
10637 2 => True, -- Name (Node2)
10638 3 => False, -- Unused
10639 4 => False, -- Unused
10640 5 => True), -- Subtype_Indication (Node5)
10642 N_Block_Statement =>
10643 (1 => True, -- Identifier (Node1)
10644 2 => True, -- Declarations (List2)
10645 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10646 4 => True, -- Handled_Statement_Sequence (Node4)
10647 5 => False), -- unused
10649 N_Exit_Statement =>
10650 (1 => True, -- Condition (Node1)
10651 2 => True, -- Name (Node2)
10652 3 => False, -- unused
10653 4 => False, -- unused
10654 5 => False), -- unused
10656 N_Goto_Statement =>
10657 (1 => False, -- unused
10658 2 => True, -- Name (Node2)
10659 3 => False, -- unused
10660 4 => False, -- unused
10661 5 => False), -- unused
10663 N_Subprogram_Declaration =>
10664 (1 => True, -- Specification (Node1)
10665 2 => False, -- unused
10666 3 => False, -- Body_To_Inline (Node3-Sem)
10667 4 => False, -- Parent_Spec (Node4-Sem)
10668 5 => False), -- Corresponding_Body (Node5-Sem)
10670 N_Abstract_Subprogram_Declaration =>
10671 (1 => True, -- Specification (Node1)
10672 2 => False, -- unused
10673 3 => False, -- unused
10674 4 => False, -- unused
10675 5 => False), -- unused
10677 N_Function_Specification =>
10678 (1 => True, -- Defining_Unit_Name (Node1)
10679 2 => False, -- Elaboration_Boolean (Node2-Sem)
10680 3 => True, -- Parameter_Specifications (List3)
10681 4 => True, -- Result_Definition (Node4)
10682 5 => False), -- Generic_Parent (Node5-Sem)
10684 N_Procedure_Specification =>
10685 (1 => True, -- Defining_Unit_Name (Node1)
10686 2 => False, -- Elaboration_Boolean (Node2-Sem)
10687 3 => True, -- Parameter_Specifications (List3)
10688 4 => False, -- unused
10689 5 => False), -- Generic_Parent (Node5-Sem)
10692 (1 => True, -- Identifier (Node1)
10693 2 => True, -- Name (Node2)
10694 3 => False, -- unused
10695 4 => False, -- unused
10696 5 => False), -- unused
10698 N_Defining_Program_Unit_Name =>
10699 (1 => True, -- Defining_Identifier (Node1)
10700 2 => True, -- Name (Node2)
10701 3 => False, -- unused
10702 4 => False, -- unused
10703 5 => False), -- unused
10705 N_Operator_Symbol =>
10706 (1 => True, -- Chars (Name1)
10707 2 => False, -- unused
10708 3 => True, -- Strval (Str3)
10709 4 => False, -- Entity (Node4-Sem)
10710 5 => False), -- Etype (Node5-Sem)
10712 N_Defining_Operator_Symbol =>
10713 (1 => True, -- Chars (Name1)
10714 2 => False, -- Next_Entity (Node2-Sem)
10715 3 => False, -- Scope (Node3-Sem)
10716 4 => False, -- unused
10717 5 => False), -- Etype (Node5-Sem)
10719 N_Parameter_Specification =>
10720 (1 => True, -- Defining_Identifier (Node1)
10721 2 => True, -- Parameter_Type (Node2)
10722 3 => True, -- Expression (Node3)
10723 4 => False, -- unused
10724 5 => False), -- Default_Expression (Node5-Sem)
10726 N_Subprogram_Body =>
10727 (1 => True, -- Specification (Node1)
10728 2 => True, -- Declarations (List2)
10729 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10730 4 => True, -- Handled_Statement_Sequence (Node4)
10731 5 => False), -- Corresponding_Spec (Node5-Sem)
10733 N_Parameterized_Expression =>
10734 (1 => True, -- Specification (Node1)
10735 2 => False, -- unused
10736 3 => True, -- Expression (Node3)
10737 4 => False, -- unused
10738 5 => False), -- unused
10740 N_Procedure_Call_Statement =>
10741 (1 => False, -- Controlling_Argument (Node1-Sem)
10742 2 => True, -- Name (Node2)
10743 3 => True, -- Parameter_Associations (List3)
10744 4 => False, -- First_Named_Actual (Node4-Sem)
10745 5 => False), -- Etype (Node5-Sem)
10748 (1 => False, -- Controlling_Argument (Node1-Sem)
10749 2 => True, -- Name (Node2)
10750 3 => True, -- Parameter_Associations (List3)
10751 4 => False, -- First_Named_Actual (Node4-Sem)
10752 5 => False), -- Etype (Node5-Sem)
10754 N_Parameter_Association =>
10755 (1 => False, -- unused
10756 2 => True, -- Selector_Name (Node2)
10757 3 => True, -- Explicit_Actual_Parameter (Node3)
10758 4 => False, -- Next_Named_Actual (Node4-Sem)
10759 5 => False), -- unused
10761 N_Return_Statement =>
10762 (1 => False, -- Storage_Pool (Node1-Sem)
10763 2 => False, -- Procedure_To_Call (Node2-Sem)
10764 3 => True, -- Expression (Node3)
10765 4 => False, -- unused
10766 5 => False), -- Return_Statement_Entity (Node5-Sem)
10768 N_Extended_Return_Statement =>
10769 (1 => False, -- Storage_Pool (Node1-Sem)
10770 2 => False, -- Procedure_To_Call (Node2-Sem)
10771 3 => True, -- Return_Object_Declarations (List3)
10772 4 => True, -- Handled_Statement_Sequence (Node4)
10773 5 => False), -- Return_Statement_Entity (Node5-Sem)
10775 N_Package_Declaration =>
10776 (1 => True, -- Specification (Node1)
10777 2 => False, -- unused
10778 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10779 4 => False, -- Parent_Spec (Node4-Sem)
10780 5 => False), -- Corresponding_Body (Node5-Sem)
10782 N_Package_Specification =>
10783 (1 => True, -- Defining_Unit_Name (Node1)
10784 2 => True, -- Visible_Declarations (List2)
10785 3 => True, -- Private_Declarations (List3)
10786 4 => True, -- End_Label (Node4)
10787 5 => False), -- Generic_Parent (Node5-Sem)
10790 (1 => True, -- Defining_Unit_Name (Node1)
10791 2 => True, -- Declarations (List2)
10792 3 => False, -- unused
10793 4 => True, -- Handled_Statement_Sequence (Node4)
10794 5 => False), -- Corresponding_Spec (Node5-Sem)
10796 N_Private_Type_Declaration =>
10797 (1 => True, -- Defining_Identifier (Node1)
10798 2 => False, -- unused
10799 3 => False, -- unused
10800 4 => True, -- Discriminant_Specifications (List4)
10801 5 => False), -- unused
10803 N_Private_Extension_Declaration =>
10804 (1 => True, -- Defining_Identifier (Node1)
10805 2 => True, -- Interface_List (List2)
10806 3 => False, -- unused
10807 4 => True, -- Discriminant_Specifications (List4)
10808 5 => True), -- Subtype_Indication (Node5)
10810 N_Use_Package_Clause =>
10811 (1 => False, -- unused
10812 2 => True, -- Names (List2)
10813 3 => False, -- Next_Use_Clause (Node3-Sem)
10814 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10815 5 => False), -- unused
10817 N_Use_Type_Clause =>
10818 (1 => False, -- unused
10819 2 => True, -- Subtype_Marks (List2)
10820 3 => False, -- Next_Use_Clause (Node3-Sem)
10821 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10822 5 => False), -- unused
10824 N_Object_Renaming_Declaration =>
10825 (1 => True, -- Defining_Identifier (Node1)
10826 2 => True, -- Name (Node2)
10827 3 => True, -- Access_Definition (Node3)
10828 4 => True, -- Subtype_Mark (Node4)
10829 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10831 N_Exception_Renaming_Declaration =>
10832 (1 => True, -- Defining_Identifier (Node1)
10833 2 => True, -- Name (Node2)
10834 3 => False, -- unused
10835 4 => False, -- unused
10836 5 => False), -- unused
10838 N_Package_Renaming_Declaration =>
10839 (1 => True, -- Defining_Unit_Name (Node1)
10840 2 => True, -- Name (Node2)
10841 3 => False, -- unused
10842 4 => False, -- Parent_Spec (Node4-Sem)
10843 5 => False), -- unused
10845 N_Subprogram_Renaming_Declaration =>
10846 (1 => True, -- Specification (Node1)
10847 2 => True, -- Name (Node2)
10848 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
10849 4 => False, -- Parent_Spec (Node4-Sem)
10850 5 => False), -- Corresponding_Spec (Node5-Sem)
10852 N_Generic_Package_Renaming_Declaration =>
10853 (1 => True, -- Defining_Unit_Name (Node1)
10854 2 => True, -- Name (Node2)
10855 3 => False, -- unused
10856 4 => False, -- Parent_Spec (Node4-Sem)
10857 5 => False), -- unused
10859 N_Generic_Procedure_Renaming_Declaration =>
10860 (1 => True, -- Defining_Unit_Name (Node1)
10861 2 => True, -- Name (Node2)
10862 3 => False, -- unused
10863 4 => False, -- Parent_Spec (Node4-Sem)
10864 5 => False), -- unused
10866 N_Generic_Function_Renaming_Declaration =>
10867 (1 => True, -- Defining_Unit_Name (Node1)
10868 2 => True, -- Name (Node2)
10869 3 => False, -- unused
10870 4 => False, -- Parent_Spec (Node4-Sem)
10871 5 => False), -- unused
10873 N_Task_Type_Declaration =>
10874 (1 => True, -- Defining_Identifier (Node1)
10875 2 => True, -- Interface_List (List2)
10876 3 => True, -- Task_Definition (Node3)
10877 4 => True, -- Discriminant_Specifications (List4)
10878 5 => False), -- Corresponding_Body (Node5-Sem)
10880 N_Single_Task_Declaration =>
10881 (1 => True, -- Defining_Identifier (Node1)
10882 2 => True, -- Interface_List (List2)
10883 3 => True, -- Task_Definition (Node3)
10884 4 => False, -- unused
10885 5 => False), -- unused
10887 N_Task_Definition =>
10888 (1 => False, -- unused
10889 2 => True, -- Visible_Declarations (List2)
10890 3 => True, -- Private_Declarations (List3)
10891 4 => True, -- End_Label (Node4)
10892 5 => False), -- unused
10895 (1 => True, -- Defining_Identifier (Node1)
10896 2 => True, -- Declarations (List2)
10897 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10898 4 => True, -- Handled_Statement_Sequence (Node4)
10899 5 => False), -- Corresponding_Spec (Node5-Sem)
10901 N_Protected_Type_Declaration =>
10902 (1 => True, -- Defining_Identifier (Node1)
10903 2 => True, -- Interface_List (List2)
10904 3 => True, -- Protected_Definition (Node3)
10905 4 => True, -- Discriminant_Specifications (List4)
10906 5 => False), -- Corresponding_Body (Node5-Sem)
10908 N_Single_Protected_Declaration =>
10909 (1 => True, -- Defining_Identifier (Node1)
10910 2 => True, -- Interface_List (List2)
10911 3 => True, -- Protected_Definition (Node3)
10912 4 => False, -- unused
10913 5 => False), -- unused
10915 N_Protected_Definition =>
10916 (1 => False, -- unused
10917 2 => True, -- Visible_Declarations (List2)
10918 3 => True, -- Private_Declarations (List3)
10919 4 => True, -- End_Label (Node4)
10920 5 => False), -- unused
10922 N_Protected_Body =>
10923 (1 => True, -- Defining_Identifier (Node1)
10924 2 => True, -- Declarations (List2)
10925 3 => False, -- unused
10926 4 => True, -- End_Label (Node4)
10927 5 => False), -- Corresponding_Spec (Node5-Sem)
10929 N_Entry_Declaration =>
10930 (1 => True, -- Defining_Identifier (Node1)
10931 2 => False, -- unused
10932 3 => True, -- Parameter_Specifications (List3)
10933 4 => True, -- Discrete_Subtype_Definition (Node4)
10934 5 => False), -- Corresponding_Body (Node5-Sem)
10936 N_Accept_Statement =>
10937 (1 => True, -- Entry_Direct_Name (Node1)
10938 2 => True, -- Declarations (List2)
10939 3 => True, -- Parameter_Specifications (List3)
10940 4 => True, -- Handled_Statement_Sequence (Node4)
10941 5 => True), -- Entry_Index (Node5)
10944 (1 => True, -- Defining_Identifier (Node1)
10945 2 => True, -- Declarations (List2)
10946 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10947 4 => True, -- Handled_Statement_Sequence (Node4)
10948 5 => True), -- Entry_Body_Formal_Part (Node5)
10950 N_Entry_Body_Formal_Part =>
10951 (1 => True, -- Condition (Node1)
10952 2 => False, -- unused
10953 3 => True, -- Parameter_Specifications (List3)
10954 4 => True, -- Entry_Index_Specification (Node4)
10955 5 => False), -- unused
10957 N_Entry_Index_Specification =>
10958 (1 => True, -- Defining_Identifier (Node1)
10959 2 => False, -- unused
10960 3 => False, -- unused
10961 4 => True, -- Discrete_Subtype_Definition (Node4)
10962 5 => False), -- unused
10964 N_Entry_Call_Statement =>
10965 (1 => False, -- unused
10966 2 => True, -- Name (Node2)
10967 3 => True, -- Parameter_Associations (List3)
10968 4 => False, -- First_Named_Actual (Node4-Sem)
10969 5 => False), -- unused
10971 N_Requeue_Statement =>
10972 (1 => False, -- unused
10973 2 => True, -- Name (Node2)
10974 3 => False, -- unused
10975 4 => False, -- unused
10976 5 => False), -- unused
10978 N_Delay_Until_Statement =>
10979 (1 => False, -- unused
10980 2 => False, -- unused
10981 3 => True, -- Expression (Node3)
10982 4 => False, -- unused
10983 5 => False), -- unused
10985 N_Delay_Relative_Statement =>
10986 (1 => False, -- unused
10987 2 => False, -- unused
10988 3 => True, -- Expression (Node3)
10989 4 => False, -- unused
10990 5 => False), -- unused
10992 N_Selective_Accept =>
10993 (1 => True, -- Select_Alternatives (List1)
10994 2 => False, -- unused
10995 3 => False, -- unused
10996 4 => True, -- Else_Statements (List4)
10997 5 => False), -- unused
10999 N_Accept_Alternative =>
11000 (1 => True, -- Condition (Node1)
11001 2 => True, -- Accept_Statement (Node2)
11002 3 => True, -- Statements (List3)
11003 4 => True, -- Pragmas_Before (List4)
11004 5 => False), -- Accept_Handler_Records (List5-Sem)
11006 N_Delay_Alternative =>
11007 (1 => True, -- Condition (Node1)
11008 2 => True, -- Delay_Statement (Node2)
11009 3 => True, -- Statements (List3)
11010 4 => True, -- Pragmas_Before (List4)
11011 5 => False), -- unused
11013 N_Terminate_Alternative =>
11014 (1 => True, -- Condition (Node1)
11015 2 => False, -- unused
11016 3 => False, -- unused
11017 4 => True, -- Pragmas_Before (List4)
11018 5 => True), -- Pragmas_After (List5)
11020 N_Timed_Entry_Call =>
11021 (1 => True, -- Entry_Call_Alternative (Node1)
11022 2 => False, -- unused
11023 3 => False, -- unused
11024 4 => True, -- Delay_Alternative (Node4)
11025 5 => False), -- unused
11027 N_Entry_Call_Alternative =>
11028 (1 => True, -- Entry_Call_Statement (Node1)
11029 2 => False, -- unused
11030 3 => True, -- Statements (List3)
11031 4 => True, -- Pragmas_Before (List4)
11032 5 => False), -- unused
11034 N_Conditional_Entry_Call =>
11035 (1 => True, -- Entry_Call_Alternative (Node1)
11036 2 => False, -- unused
11037 3 => False, -- unused
11038 4 => True, -- Else_Statements (List4)
11039 5 => False), -- unused
11041 N_Asynchronous_Select =>
11042 (1 => True, -- Triggering_Alternative (Node1)
11043 2 => True, -- Abortable_Part (Node2)
11044 3 => False, -- unused
11045 4 => False, -- unused
11046 5 => False), -- unused
11048 N_Triggering_Alternative =>
11049 (1 => True, -- Triggering_Statement (Node1)
11050 2 => False, -- unused
11051 3 => True, -- Statements (List3)
11052 4 => True, -- Pragmas_Before (List4)
11053 5 => False), -- unused
11055 N_Abortable_Part =>
11056 (1 => False, -- unused
11057 2 => False, -- unused
11058 3 => True, -- Statements (List3)
11059 4 => False, -- unused
11060 5 => False), -- unused
11062 N_Abort_Statement =>
11063 (1 => False, -- unused
11064 2 => True, -- Names (List2)
11065 3 => False, -- unused
11066 4 => False, -- unused
11067 5 => False), -- unused
11069 N_Compilation_Unit =>
11070 (1 => True, -- Context_Items (List1)
11071 2 => True, -- Unit (Node2)
11072 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
11073 4 => False, -- Library_Unit (Node4-Sem)
11074 5 => True), -- Aux_Decls_Node (Node5)
11076 N_Compilation_Unit_Aux =>
11077 (1 => True, -- Actions (List1)
11078 2 => True, -- Declarations (List2)
11079 3 => False, -- Default_Storage_Pool (Node3)
11080 4 => True, -- Config_Pragmas (List4)
11081 5 => True), -- Pragmas_After (List5)
11084 (1 => False, -- unused
11085 2 => True, -- Name (Node2)
11086 3 => False, -- unused
11087 4 => False, -- Library_Unit (Node4-Sem)
11088 5 => False), -- Corresponding_Spec (Node5-Sem)
11090 N_Subprogram_Body_Stub =>
11091 (1 => True, -- Specification (Node1)
11092 2 => False, -- unused
11093 3 => False, -- unused
11094 4 => False, -- Library_Unit (Node4-Sem)
11095 5 => False), -- Corresponding_Body (Node5-Sem)
11097 N_Package_Body_Stub =>
11098 (1 => True, -- Defining_Identifier (Node1)
11099 2 => False, -- unused
11100 3 => False, -- unused
11101 4 => False, -- Library_Unit (Node4-Sem)
11102 5 => False), -- Corresponding_Body (Node5-Sem)
11104 N_Task_Body_Stub =>
11105 (1 => True, -- Defining_Identifier (Node1)
11106 2 => False, -- unused
11107 3 => False, -- unused
11108 4 => False, -- Library_Unit (Node4-Sem)
11109 5 => False), -- Corresponding_Body (Node5-Sem)
11111 N_Protected_Body_Stub =>
11112 (1 => True, -- Defining_Identifier (Node1)
11113 2 => False, -- unused
11114 3 => False, -- unused
11115 4 => False, -- Library_Unit (Node4-Sem)
11116 5 => False), -- Corresponding_Body (Node5-Sem)
11119 (1 => True, -- Proper_Body (Node1)
11120 2 => True, -- Name (Node2)
11121 3 => False, -- Corresponding_Stub (Node3-Sem)
11122 4 => False, -- unused
11123 5 => False), -- unused
11125 N_Exception_Declaration =>
11126 (1 => True, -- Defining_Identifier (Node1)
11127 2 => False, -- unused
11128 3 => False, -- Expression (Node3-Sem)
11129 4 => False, -- unused
11130 5 => False), -- unused
11132 N_Handled_Sequence_Of_Statements =>
11133 (1 => True, -- At_End_Proc (Node1)
11134 2 => False, -- First_Real_Statement (Node2-Sem)
11135 3 => True, -- Statements (List3)
11136 4 => True, -- End_Label (Node4)
11137 5 => True), -- Exception_Handlers (List5)
11139 N_Exception_Handler =>
11140 (1 => False, -- Local_Raise_Statements (Elist1)
11141 2 => True, -- Choice_Parameter (Node2)
11142 3 => True, -- Statements (List3)
11143 4 => True, -- Exception_Choices (List4)
11144 5 => False), -- Exception_Label (Node5)
11146 N_Raise_Statement =>
11147 (1 => False, -- unused
11148 2 => True, -- Name (Node2)
11149 3 => True, -- Expression (Node3)
11150 4 => False, -- unused
11151 5 => False), -- unused
11153 N_Generic_Subprogram_Declaration =>
11154 (1 => True, -- Specification (Node1)
11155 2 => True, -- Generic_Formal_Declarations (List2)
11156 3 => False, -- unused
11157 4 => False, -- Parent_Spec (Node4-Sem)
11158 5 => False), -- Corresponding_Body (Node5-Sem)
11160 N_Generic_Package_Declaration =>
11161 (1 => True, -- Specification (Node1)
11162 2 => True, -- Generic_Formal_Declarations (List2)
11163 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11164 4 => False, -- Parent_Spec (Node4-Sem)
11165 5 => False), -- Corresponding_Body (Node5-Sem)
11167 N_Package_Instantiation =>
11168 (1 => True, -- Defining_Unit_Name (Node1)
11169 2 => True, -- Name (Node2)
11170 3 => True, -- Generic_Associations (List3)
11171 4 => False, -- Parent_Spec (Node4-Sem)
11172 5 => False), -- Instance_Spec (Node5-Sem)
11174 N_Procedure_Instantiation =>
11175 (1 => True, -- Defining_Unit_Name (Node1)
11176 2 => True, -- Name (Node2)
11177 3 => True, -- Generic_Associations (List3)
11178 4 => False, -- Parent_Spec (Node4-Sem)
11179 5 => False), -- Instance_Spec (Node5-Sem)
11181 N_Function_Instantiation =>
11182 (1 => True, -- Defining_Unit_Name (Node1)
11183 2 => True, -- Name (Node2)
11184 3 => True, -- Generic_Associations (List3)
11185 4 => False, -- Parent_Spec (Node4-Sem)
11186 5 => False), -- Instance_Spec (Node5-Sem)
11188 N_Generic_Association =>
11189 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
11190 2 => True, -- Selector_Name (Node2)
11191 3 => False, -- unused
11192 4 => False, -- unused
11193 5 => False), -- unused
11195 N_Formal_Object_Declaration =>
11196 (1 => True, -- Defining_Identifier (Node1)
11197 2 => False, -- unused
11198 3 => True, -- Access_Definition (Node3)
11199 4 => True, -- Subtype_Mark (Node4)
11200 5 => True), -- Default_Expression (Node5)
11202 N_Formal_Type_Declaration =>
11203 (1 => True, -- Defining_Identifier (Node1)
11204 2 => False, -- unused
11205 3 => True, -- Formal_Type_Definition (Node3)
11206 4 => True, -- Discriminant_Specifications (List4)
11207 5 => False), -- unused
11209 N_Formal_Private_Type_Definition =>
11210 (1 => False, -- unused
11211 2 => False, -- unused
11212 3 => False, -- unused
11213 4 => False, -- unused
11214 5 => False), -- unused
11216 N_Formal_Derived_Type_Definition =>
11217 (1 => False, -- unused
11218 2 => True, -- Interface_List (List2)
11219 3 => False, -- unused
11220 4 => True, -- Subtype_Mark (Node4)
11221 5 => False), -- unused
11223 N_Formal_Discrete_Type_Definition =>
11224 (1 => False, -- unused
11225 2 => False, -- unused
11226 3 => False, -- unused
11227 4 => False, -- unused
11228 5 => False), -- unused
11230 N_Formal_Signed_Integer_Type_Definition =>
11231 (1 => False, -- unused
11232 2 => False, -- unused
11233 3 => False, -- unused
11234 4 => False, -- unused
11235 5 => False), -- unused
11237 N_Formal_Modular_Type_Definition =>
11238 (1 => False, -- unused
11239 2 => False, -- unused
11240 3 => False, -- unused
11241 4 => False, -- unused
11242 5 => False), -- unused
11244 N_Formal_Floating_Point_Definition =>
11245 (1 => False, -- unused
11246 2 => False, -- unused
11247 3 => False, -- unused
11248 4 => False, -- unused
11249 5 => False), -- unused
11251 N_Formal_Ordinary_Fixed_Point_Definition =>
11252 (1 => False, -- unused
11253 2 => False, -- unused
11254 3 => False, -- unused
11255 4 => False, -- unused
11256 5 => False), -- unused
11258 N_Formal_Decimal_Fixed_Point_Definition =>
11259 (1 => False, -- unused
11260 2 => False, -- unused
11261 3 => False, -- unused
11262 4 => False, -- unused
11263 5 => False), -- unused
11265 N_Formal_Concrete_Subprogram_Declaration =>
11266 (1 => True, -- Specification (Node1)
11267 2 => True, -- Default_Name (Node2)
11268 3 => False, -- unused
11269 4 => False, -- unused
11270 5 => False), -- unused
11272 N_Formal_Abstract_Subprogram_Declaration =>
11273 (1 => True, -- Specification (Node1)
11274 2 => True, -- Default_Name (Node2)
11275 3 => False, -- unused
11276 4 => False, -- unused
11277 5 => False), -- unused
11279 N_Formal_Package_Declaration =>
11280 (1 => True, -- Defining_Identifier (Node1)
11281 2 => True, -- Name (Node2)
11282 3 => True, -- Generic_Associations (List3)
11283 4 => False, -- unused
11284 5 => False), -- Instance_Spec (Node5-Sem)
11286 N_Attribute_Definition_Clause =>
11287 (1 => True, -- Chars (Name1)
11288 2 => True, -- Name (Node2)
11289 3 => True, -- Expression (Node3)
11290 4 => False, -- unused
11291 5 => False), -- Next_Rep_Item (Node5-Sem)
11293 N_Aspect_Specification =>
11294 (1 => True, -- Identifier (Node1)
11295 2 => False, -- Aspect_Rep_Item (Node2-Sem)
11296 3 => True, -- Expression (Node3)
11297 4 => False, -- Entity (Node4-Sem)
11298 5 => False), -- Next_Rep_Item (Node5-Sem)
11300 N_Enumeration_Representation_Clause =>
11301 (1 => True, -- Identifier (Node1)
11302 2 => False, -- unused
11303 3 => True, -- Array_Aggregate (Node3)
11304 4 => False, -- unused
11305 5 => False), -- Next_Rep_Item (Node5-Sem)
11307 N_Record_Representation_Clause =>
11308 (1 => True, -- Identifier (Node1)
11309 2 => True, -- Mod_Clause (Node2)
11310 3 => True, -- Component_Clauses (List3)
11311 4 => False, -- unused
11312 5 => False), -- Next_Rep_Item (Node5-Sem)
11314 N_Component_Clause =>
11315 (1 => True, -- Component_Name (Node1)
11316 2 => True, -- Position (Node2)
11317 3 => True, -- First_Bit (Node3)
11318 4 => True, -- Last_Bit (Node4)
11319 5 => False), -- unused
11321 N_Code_Statement =>
11322 (1 => False, -- unused
11323 2 => False, -- unused
11324 3 => True, -- Expression (Node3)
11325 4 => False, -- unused
11326 5 => False), -- unused
11328 N_Op_Rotate_Left =>
11329 (1 => True, -- Chars (Name1)
11330 2 => True, -- Left_Opnd (Node2)
11331 3 => True, -- Right_Opnd (Node3)
11332 4 => False, -- Entity (Node4-Sem)
11333 5 => False), -- Etype (Node5-Sem)
11335 N_Op_Rotate_Right =>
11336 (1 => True, -- Chars (Name1)
11337 2 => True, -- Left_Opnd (Node2)
11338 3 => True, -- Right_Opnd (Node3)
11339 4 => False, -- Entity (Node4-Sem)
11340 5 => False), -- Etype (Node5-Sem)
11343 (1 => True, -- Chars (Name1)
11344 2 => True, -- Left_Opnd (Node2)
11345 3 => True, -- Right_Opnd (Node3)
11346 4 => False, -- Entity (Node4-Sem)
11347 5 => False), -- Etype (Node5-Sem)
11349 N_Op_Shift_Right_Arithmetic =>
11350 (1 => True, -- Chars (Name1)
11351 2 => True, -- Left_Opnd (Node2)
11352 3 => True, -- Right_Opnd (Node3)
11353 4 => False, -- Entity (Node4-Sem)
11354 5 => False), -- Etype (Node5-Sem)
11356 N_Op_Shift_Right =>
11357 (1 => True, -- Chars (Name1)
11358 2 => True, -- Left_Opnd (Node2)
11359 3 => True, -- Right_Opnd (Node3)
11360 4 => False, -- Entity (Node4-Sem)
11361 5 => False), -- Etype (Node5-Sem)
11363 N_Delta_Constraint =>
11364 (1 => False, -- unused
11365 2 => False, -- unused
11366 3 => True, -- Delta_Expression (Node3)
11367 4 => True, -- Range_Constraint (Node4)
11368 5 => False), -- unused
11371 (1 => True, -- Identifier (Node1)
11372 2 => False, -- unused
11373 3 => True, -- Expression (Node3)
11374 4 => False, -- unused
11375 5 => False), -- unused
11378 (1 => False, -- unused
11379 2 => False, -- unused
11380 3 => True, -- Expression (Node3)
11381 4 => True, -- Pragmas_Before (List4)
11382 5 => False), -- unused
11384 N_Conditional_Expression =>
11385 (1 => True, -- Expressions (List1)
11386 2 => False, -- Then_Actions (List2-Sem)
11387 3 => False, -- Else_Actions (List3-Sem)
11388 4 => False, -- unused
11389 5 => False), -- Etype (Node5-Sem)
11392 (1 => True, -- Chars (Name1)
11393 2 => True, -- Selector_Name (Node2)
11394 3 => True, -- Prefix (Node3)
11395 4 => False, -- Entity (Node4-Sem)
11396 5 => False), -- Etype (Node5-Sem)
11398 N_Expression_With_Actions =>
11399 (1 => True, -- Actions (List1)
11400 2 => False, -- unused
11401 3 => True, -- Expression (Node3)
11402 4 => False, -- unused
11403 5 => False), -- unused
11405 N_Free_Statement =>
11406 (1 => False, -- Storage_Pool (Node1-Sem)
11407 2 => False, -- Procedure_To_Call (Node2-Sem)
11408 3 => True, -- Expression (Node3)
11409 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11410 5 => False), -- unused
11413 (1 => True, -- Actions (List1)
11414 2 => False, -- Access_Types_To_Process (Elist2-Sem)
11415 3 => False, -- TSS_Elist (Elist3-Sem)
11416 4 => False, -- Entity (Node4-Sem)
11417 5 => False), -- First_Subtype_Link (Node5-Sem)
11419 N_Implicit_Label_Declaration =>
11420 (1 => True, -- Defining_Identifier (Node1)
11421 2 => False, -- Label_Construct (Node2-Sem)
11422 3 => False, -- unused
11423 4 => False, -- unused
11424 5 => False), -- unused
11426 N_Itype_Reference =>
11427 (1 => False, -- Itype (Node1-Sem)
11428 2 => False, -- unused
11429 3 => False, -- unused
11430 4 => False, -- unused
11431 5 => False), -- unused
11433 N_Raise_Constraint_Error =>
11434 (1 => True, -- Condition (Node1)
11435 2 => False, -- unused
11436 3 => True, -- Reason (Uint3)
11437 4 => False, -- unused
11438 5 => False), -- Etype (Node5-Sem)
11440 N_Raise_Program_Error =>
11441 (1 => True, -- Condition (Node1)
11442 2 => False, -- unused
11443 3 => True, -- Reason (Uint3)
11444 4 => False, -- unused
11445 5 => False), -- Etype (Node5-Sem)
11447 N_Raise_Storage_Error =>
11448 (1 => True, -- Condition (Node1)
11449 2 => False, -- unused
11450 3 => True, -- Reason (Uint3)
11451 4 => False, -- unused
11452 5 => False), -- Etype (Node5-Sem)
11454 N_Push_Constraint_Error_Label =>
11455 (1 => False, -- unused
11456 2 => False, -- unused
11457 3 => False, -- unused
11458 4 => False, -- unused
11459 5 => False), -- unused
11461 N_Push_Program_Error_Label =>
11462 (1 => False, -- Exception_Label
11463 2 => False, -- unused
11464 3 => False, -- unused
11465 4 => False, -- unused
11466 5 => False), -- Exception_Label
11468 N_Push_Storage_Error_Label =>
11469 (1 => False, -- Exception_Label
11470 2 => False, -- unused
11471 3 => False, -- unused
11472 4 => False, -- unused
11473 5 => False), -- Exception_Label
11475 N_Pop_Constraint_Error_Label =>
11476 (1 => False, -- unused
11477 2 => False, -- unused
11478 3 => False, -- unused
11479 4 => False, -- unused
11480 5 => False), -- unused
11482 N_Pop_Program_Error_Label =>
11483 (1 => False, -- unused
11484 2 => False, -- unused
11485 3 => False, -- unused
11486 4 => False, -- unused
11487 5 => False), -- unused
11489 N_Pop_Storage_Error_Label =>
11490 (1 => False, -- unused
11491 2 => False, -- unused
11492 3 => False, -- unused
11493 4 => False, -- unused
11494 5 => False), -- unused
11497 (1 => False, -- unused
11498 2 => False, -- unused
11499 3 => True, -- Prefix (Node3)
11500 4 => False, -- unused
11501 5 => False), -- Etype (Node5-Sem)
11503 N_Subprogram_Info =>
11504 (1 => True, -- Identifier (Node1)
11505 2 => False, -- unused
11506 3 => False, -- unused
11507 4 => False, -- unused
11508 5 => False), -- Etype (Node5-Sem)
11510 N_Unchecked_Expression =>
11511 (1 => False, -- unused
11512 2 => False, -- unused
11513 3 => True, -- Expression (Node3)
11514 4 => False, -- unused
11515 5 => False), -- Etype (Node5-Sem)
11517 N_Unchecked_Type_Conversion =>
11518 (1 => False, -- unused
11519 2 => False, -- unused
11520 3 => True, -- Expression (Node3)
11521 4 => True, -- Subtype_Mark (Node4)
11522 5 => False), -- Etype (Node5-Sem)
11524 N_Validate_Unchecked_Conversion =>
11525 (1 => False, -- Source_Type (Node1-Sem)
11526 2 => False, -- Target_Type (Node2-Sem)
11527 3 => False, -- unused
11528 4 => False, -- unused
11529 5 => False), -- unused
11531 -- Entries for SCIL nodes
11533 N_SCIL_Dispatch_Table_Tag_Init =>
11534 (1 => False, -- unused
11535 2 => False, -- unused
11536 3 => False, -- unused
11537 4 => False, -- SCIL_Entity (Node4-Sem)
11538 5 => False), -- unused
11540 N_SCIL_Dispatching_Call =>
11541 (1 => False, -- unused
11542 2 => False, -- SCIL_Target_Prim (Node2-Sem)
11543 3 => False, -- unused
11544 4 => False, -- SCIL_Entity (Node4-Sem)
11545 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
11547 N_SCIL_Membership_Test =>
11548 (1 => False, -- unused
11549 2 => False, -- unused
11550 3 => False, -- unused
11551 4 => False, -- SCIL_Entity (Node4-Sem)
11552 5 => False), -- SCIL_Tag_Value (Node5-Sem)
11554 -- Entries for Empty, Error and Unused. Even thought these have a Chars
11555 -- field for debugging purposes, they are not really syntactic fields, so
11556 -- we mark all fields as unused.
11559 (1 => False, -- unused
11560 2 => False, -- unused
11561 3 => False, -- unused
11562 4 => False, -- unused
11563 5 => False), -- unused
11566 (1 => False, -- unused
11567 2 => False, -- unused
11568 3 => False, -- unused
11569 4 => False, -- unused
11570 5 => False), -- unused
11572 N_Unused_At_Start =>
11573 (1 => False, -- unused
11574 2 => False, -- unused
11575 3 => False, -- unused
11576 4 => False, -- unused
11577 5 => False), -- unused
11580 (1 => False, -- unused
11581 2 => False, -- unused
11582 3 => False, -- unused
11583 4 => False, -- unused
11584 5 => False)); -- unused
11586 --------------------
11587 -- Inline Pragmas --
11588 --------------------
11590 pragma Inline (ABE_Is_Certain);
11591 pragma Inline (Abort_Present);
11592 pragma Inline (Abortable_Part);
11593 pragma Inline (Abstract_Present);
11594 pragma Inline (Accept_Handler_Records);
11595 pragma Inline (Accept_Statement);
11596 pragma Inline (Access_Definition);
11597 pragma Inline (Access_To_Subprogram_Definition);
11598 pragma Inline (Access_Types_To_Process);
11599 pragma Inline (Actions);
11600 pragma Inline (Activation_Chain_Entity);
11601 pragma Inline (Acts_As_Spec);
11602 pragma Inline (Actual_Designated_Subtype);
11603 pragma Inline (Address_Warning_Posted);
11604 pragma Inline (Aggregate_Bounds);
11605 pragma Inline (Aliased_Present);
11606 pragma Inline (All_Others);
11607 pragma Inline (All_Present);
11608 pragma Inline (Alternatives);
11609 pragma Inline (Ancestor_Part);
11610 pragma Inline (Array_Aggregate);
11611 pragma Inline (Aspect_Cancel);
11612 pragma Inline (Aspect_Rep_Item);
11613 pragma Inline (Assignment_OK);
11614 pragma Inline (Associated_Node);
11615 pragma Inline (At_End_Proc);
11616 pragma Inline (Attribute_Name);
11617 pragma Inline (Aux_Decls_Node);
11618 pragma Inline (Backwards_OK);
11619 pragma Inline (Bad_Is_Detected);
11620 pragma Inline (Body_To_Inline);
11621 pragma Inline (Body_Required);
11622 pragma Inline (By_Ref);
11623 pragma Inline (Box_Present);
11624 pragma Inline (Char_Literal_Value);
11625 pragma Inline (Chars);
11626 pragma Inline (Check_Address_Alignment);
11627 pragma Inline (Choice_Parameter);
11628 pragma Inline (Choices);
11629 pragma Inline (Class_Present);
11630 pragma Inline (Coextensions);
11631 pragma Inline (Comes_From_Extended_Return_Statement);
11632 pragma Inline (Compile_Time_Known_Aggregate);
11633 pragma Inline (Component_Associations);
11634 pragma Inline (Component_Clauses);
11635 pragma Inline (Component_Definition);
11636 pragma Inline (Component_Items);
11637 pragma Inline (Component_List);
11638 pragma Inline (Component_Name);
11639 pragma Inline (Componentwise_Assignment);
11640 pragma Inline (Condition);
11641 pragma Inline (Condition_Actions);
11642 pragma Inline (Config_Pragmas);
11643 pragma Inline (Constant_Present);
11644 pragma Inline (Constraint);
11645 pragma Inline (Constraints);
11646 pragma Inline (Context_Installed);
11647 pragma Inline (Context_Items);
11648 pragma Inline (Context_Pending);
11649 pragma Inline (Controlling_Argument);
11650 pragma Inline (Conversion_OK);
11651 pragma Inline (Corresponding_Body);
11652 pragma Inline (Corresponding_Formal_Spec);
11653 pragma Inline (Corresponding_Generic_Association);
11654 pragma Inline (Corresponding_Integer_Value);
11655 pragma Inline (Corresponding_Spec);
11656 pragma Inline (Corresponding_Stub);
11657 pragma Inline (Dcheck_Function);
11658 pragma Inline (Debug_Statement);
11659 pragma Inline (Declarations);
11660 pragma Inline (Default_Expression);
11661 pragma Inline (Default_Storage_Pool);
11662 pragma Inline (Default_Name);
11663 pragma Inline (Defining_Identifier);
11664 pragma Inline (Defining_Unit_Name);
11665 pragma Inline (Delay_Alternative);
11666 pragma Inline (Delay_Statement);
11667 pragma Inline (Delta_Expression);
11668 pragma Inline (Digits_Expression);
11669 pragma Inline (Discr_Check_Funcs_Built);
11670 pragma Inline (Discrete_Choices);
11671 pragma Inline (Discrete_Range);
11672 pragma Inline (Discrete_Subtype_Definition);
11673 pragma Inline (Discrete_Subtype_Definitions);
11674 pragma Inline (Discriminant_Specifications);
11675 pragma Inline (Discriminant_Type);
11676 pragma Inline (Do_Accessibility_Check);
11677 pragma Inline (Do_Discriminant_Check);
11678 pragma Inline (Do_Length_Check);
11679 pragma Inline (Do_Division_Check);
11680 pragma Inline (Do_Overflow_Check);
11681 pragma Inline (Do_Range_Check);
11682 pragma Inline (Do_Storage_Check);
11683 pragma Inline (Do_Tag_Check);
11684 pragma Inline (Elaborate_Present);
11685 pragma Inline (Elaborate_All_Desirable);
11686 pragma Inline (Elaborate_All_Present);
11687 pragma Inline (Elaborate_Desirable);
11688 pragma Inline (Elaboration_Boolean);
11689 pragma Inline (Else_Actions);
11690 pragma Inline (Else_Statements);
11691 pragma Inline (Elsif_Parts);
11692 pragma Inline (Enclosing_Variant);
11693 pragma Inline (End_Label);
11694 pragma Inline (End_Span);
11695 pragma Inline (Entity);
11696 pragma Inline (Entity_Or_Associated_Node);
11697 pragma Inline (Entry_Body_Formal_Part);
11698 pragma Inline (Entry_Call_Alternative);
11699 pragma Inline (Entry_Call_Statement);
11700 pragma Inline (Entry_Direct_Name);
11701 pragma Inline (Entry_Index);
11702 pragma Inline (Entry_Index_Specification);
11703 pragma Inline (Etype);
11704 pragma Inline (Exception_Choices);
11705 pragma Inline (Exception_Handlers);
11706 pragma Inline (Exception_Junk);
11707 pragma Inline (Exception_Label);
11708 pragma Inline (Expansion_Delayed);
11709 pragma Inline (Explicit_Actual_Parameter);
11710 pragma Inline (Explicit_Generic_Actual_Parameter);
11711 pragma Inline (Expression);
11712 pragma Inline (Expressions);
11713 pragma Inline (First_Bit);
11714 pragma Inline (First_Inlined_Subprogram);
11715 pragma Inline (First_Name);
11716 pragma Inline (First_Named_Actual);
11717 pragma Inline (First_Real_Statement);
11718 pragma Inline (First_Subtype_Link);
11719 pragma Inline (Float_Truncate);
11720 pragma Inline (Formal_Type_Definition);
11721 pragma Inline (Forwards_OK);
11722 pragma Inline (From_Aspect_Specification);
11723 pragma Inline (From_At_End);
11724 pragma Inline (From_At_Mod);
11725 pragma Inline (From_Default);
11726 pragma Inline (Generic_Associations);
11727 pragma Inline (Generic_Formal_Declarations);
11728 pragma Inline (Generic_Parent);
11729 pragma Inline (Generic_Parent_Type);
11730 pragma Inline (Handled_Statement_Sequence);
11731 pragma Inline (Handler_List_Entry);
11732 pragma Inline (Has_Created_Identifier);
11733 pragma Inline (Has_Dynamic_Length_Check);
11734 pragma Inline (Has_Dynamic_Range_Check);
11735 pragma Inline (Has_Init_Expression);
11736 pragma Inline (Has_Local_Raise);
11737 pragma Inline (Has_Self_Reference);
11738 pragma Inline (Has_No_Elaboration_Code);
11739 pragma Inline (Has_Pragma_CPU);
11740 pragma Inline (Has_Pragma_Priority);
11741 pragma Inline (Has_Pragma_Suppress_All);
11742 pragma Inline (Has_Private_View);
11743 pragma Inline (Has_Relative_Deadline_Pragma);
11744 pragma Inline (Has_Storage_Size_Pragma);
11745 pragma Inline (Has_Task_Info_Pragma);
11746 pragma Inline (Has_Task_Name_Pragma);
11747 pragma Inline (Has_Wide_Character);
11748 pragma Inline (Has_Wide_Wide_Character);
11749 pragma Inline (Hidden_By_Use_Clause);
11750 pragma Inline (High_Bound);
11751 pragma Inline (Identifier);
11752 pragma Inline (Implicit_With);
11753 pragma Inline (Interface_List);
11754 pragma Inline (Interface_Present);
11755 pragma Inline (Includes_Infinities);
11756 pragma Inline (Import_Interface_Present);
11757 pragma Inline (In_Present);
11758 pragma Inline (Inherited_Discriminant);
11759 pragma Inline (Instance_Spec);
11760 pragma Inline (Intval);
11761 pragma Inline (Is_Accessibility_Actual);
11762 pragma Inline (Is_Asynchronous_Call_Block);
11763 pragma Inline (Is_Component_Left_Opnd);
11764 pragma Inline (Is_Component_Right_Opnd);
11765 pragma Inline (Is_Controlling_Actual);
11766 pragma Inline (Is_Delayed_Aspect);
11767 pragma Inline (Is_Dynamic_Coextension);
11768 pragma Inline (Is_Elsif);
11769 pragma Inline (Is_Entry_Barrier_Function);
11770 pragma Inline (Is_Expanded_Build_In_Place_Call);
11771 pragma Inline (Is_Folded_In_Parser);
11772 pragma Inline (Is_In_Discriminant_Check);
11773 pragma Inline (Is_Machine_Number);
11774 pragma Inline (Is_Null_Loop);
11775 pragma Inline (Is_Overloaded);
11776 pragma Inline (Is_Power_Of_2_For_Shift);
11777 pragma Inline (Is_Protected_Subprogram_Body);
11778 pragma Inline (Is_Static_Coextension);
11779 pragma Inline (Is_Static_Expression);
11780 pragma Inline (Is_Subprogram_Descriptor);
11781 pragma Inline (Is_Task_Allocation_Block);
11782 pragma Inline (Is_Task_Master);
11783 pragma Inline (Iteration_Scheme);
11784 pragma Inline (Itype);
11785 pragma Inline (Kill_Range_Check);
11786 pragma Inline (Last_Bit);
11787 pragma Inline (Last_Name);
11788 pragma Inline (Library_Unit);
11789 pragma Inline (Label_Construct);
11790 pragma Inline (Left_Opnd);
11791 pragma Inline (Limited_View_Installed);
11792 pragma Inline (Limited_Present);
11793 pragma Inline (Literals);
11794 pragma Inline (Local_Raise_Not_OK);
11795 pragma Inline (Local_Raise_Statements);
11796 pragma Inline (Loop_Actions);
11797 pragma Inline (Loop_Parameter_Specification);
11798 pragma Inline (Low_Bound);
11799 pragma Inline (Mod_Clause);
11800 pragma Inline (More_Ids);
11801 pragma Inline (Must_Be_Byte_Aligned);
11802 pragma Inline (Must_Not_Freeze);
11803 pragma Inline (Must_Not_Override);
11804 pragma Inline (Must_Override);
11805 pragma Inline (Name);
11806 pragma Inline (Names);
11807 pragma Inline (Next_Entity);
11808 pragma Inline (Next_Exit_Statement);
11809 pragma Inline (Next_Implicit_With);
11810 pragma Inline (Next_Named_Actual);
11811 pragma Inline (Next_Pragma);
11812 pragma Inline (Next_Rep_Item);
11813 pragma Inline (Next_Use_Clause);
11814 pragma Inline (No_Ctrl_Actions);
11815 pragma Inline (No_Elaboration_Check);
11816 pragma Inline (No_Entities_Ref_In_Spec);
11817 pragma Inline (No_Initialization);
11818 pragma Inline (No_Truncation);
11819 pragma Inline (Null_Present);
11820 pragma Inline (Null_Exclusion_Present);
11821 pragma Inline (Null_Exclusion_In_Return_Present);
11822 pragma Inline (Null_Record_Present);
11823 pragma Inline (Object_Definition);
11824 pragma Inline (Original_Discriminant);
11825 pragma Inline (Original_Entity);
11826 pragma Inline (Others_Discrete_Choices);
11827 pragma Inline (Out_Present);
11828 pragma Inline (Parameter_Associations);
11829 pragma Inline (Parameter_Specifications);
11830 pragma Inline (Parameter_List_Truncated);
11831 pragma Inline (Parameter_Type);
11832 pragma Inline (Parent_Spec);
11833 pragma Inline (Position);
11834 pragma Inline (Pragma_Argument_Associations);
11835 pragma Inline (Pragma_Enabled);
11836 pragma Inline (Pragma_Identifier);
11837 pragma Inline (Pragmas_After);
11838 pragma Inline (Pragmas_Before);
11839 pragma Inline (Prefix);
11840 pragma Inline (Present_Expr);
11841 pragma Inline (Prev_Ids);
11842 pragma Inline (Print_In_Hex);
11843 pragma Inline (Private_Declarations);
11844 pragma Inline (Private_Present);
11845 pragma Inline (Procedure_To_Call);
11846 pragma Inline (Proper_Body);
11847 pragma Inline (Protected_Definition);
11848 pragma Inline (Protected_Present);
11849 pragma Inline (Raises_Constraint_Error);
11850 pragma Inline (Range_Constraint);
11851 pragma Inline (Range_Expression);
11852 pragma Inline (Real_Range_Specification);
11853 pragma Inline (Realval);
11854 pragma Inline (Reason);
11855 pragma Inline (Record_Extension_Part);
11856 pragma Inline (Redundant_Use);
11857 pragma Inline (Renaming_Exception);
11858 pragma Inline (Result_Definition);
11859 pragma Inline (Return_Object_Declarations);
11860 pragma Inline (Return_Statement_Entity);
11861 pragma Inline (Reverse_Present);
11862 pragma Inline (Right_Opnd);
11863 pragma Inline (Rounded_Result);
11864 pragma Inline (SCIL_Controlling_Tag);
11865 pragma Inline (SCIL_Entity);
11866 pragma Inline (SCIL_Tag_Value);
11867 pragma Inline (SCIL_Target_Prim);
11868 pragma Inline (Scope);
11869 pragma Inline (Select_Alternatives);
11870 pragma Inline (Selector_Name);
11871 pragma Inline (Selector_Names);
11872 pragma Inline (Shift_Count_OK);
11873 pragma Inline (Source_Type);
11874 pragma Inline (Specification);
11875 pragma Inline (Split_PPC);
11876 pragma Inline (Statements);
11877 pragma Inline (Static_Processing_OK);
11878 pragma Inline (Storage_Pool);
11879 pragma Inline (Strval);
11880 pragma Inline (Subtype_Indication);
11881 pragma Inline (Subtype_Mark);
11882 pragma Inline (Subtype_Marks);
11883 pragma Inline (Suppress_Loop_Warnings);
11884 pragma Inline (Synchronized_Present);
11885 pragma Inline (Tagged_Present);
11886 pragma Inline (Target_Type);
11887 pragma Inline (Task_Definition);
11888 pragma Inline (Task_Present);
11889 pragma Inline (Then_Actions);
11890 pragma Inline (Then_Statements);
11891 pragma Inline (Triggering_Alternative);
11892 pragma Inline (Triggering_Statement);
11893 pragma Inline (Treat_Fixed_As_Integer);
11894 pragma Inline (TSS_Elist);
11895 pragma Inline (Type_Definition);
11896 pragma Inline (Unit);
11897 pragma Inline (Unknown_Discriminants_Present);
11898 pragma Inline (Unreferenced_In_Spec);
11899 pragma Inline (Variant_Part);
11900 pragma Inline (Variants);
11901 pragma Inline (Visible_Declarations);
11902 pragma Inline (Was_Originally_Stub);
11903 pragma Inline (Withed_Body);
11904 pragma Inline (Zero_Cost_Handling);
11906 pragma Inline (Set_ABE_Is_Certain);
11907 pragma Inline (Set_Abort_Present);
11908 pragma Inline (Set_Abortable_Part);
11909 pragma Inline (Set_Abstract_Present);
11910 pragma Inline (Set_Accept_Handler_Records);
11911 pragma Inline (Set_Accept_Statement);
11912 pragma Inline (Set_Access_Definition);
11913 pragma Inline (Set_Access_To_Subprogram_Definition);
11914 pragma Inline (Set_Access_Types_To_Process);
11915 pragma Inline (Set_Actions);
11916 pragma Inline (Set_Activation_Chain_Entity);
11917 pragma Inline (Set_Acts_As_Spec);
11918 pragma Inline (Set_Actual_Designated_Subtype);
11919 pragma Inline (Set_Address_Warning_Posted);
11920 pragma Inline (Set_Aggregate_Bounds);
11921 pragma Inline (Set_Aliased_Present);
11922 pragma Inline (Set_All_Others);
11923 pragma Inline (Set_All_Present);
11924 pragma Inline (Set_Alternatives);
11925 pragma Inline (Set_Ancestor_Part);
11926 pragma Inline (Set_Array_Aggregate);
11927 pragma Inline (Set_Aspect_Cancel);
11928 pragma Inline (Set_Aspect_Rep_Item);
11929 pragma Inline (Set_Assignment_OK);
11930 pragma Inline (Set_Associated_Node);
11931 pragma Inline (Set_At_End_Proc);
11932 pragma Inline (Set_Attribute_Name);
11933 pragma Inline (Set_Aux_Decls_Node);
11934 pragma Inline (Set_Backwards_OK);
11935 pragma Inline (Set_Bad_Is_Detected);
11936 pragma Inline (Set_Body_To_Inline);
11937 pragma Inline (Set_Body_Required);
11938 pragma Inline (Set_By_Ref);
11939 pragma Inline (Set_Box_Present);
11940 pragma Inline (Set_Char_Literal_Value);
11941 pragma Inline (Set_Chars);
11942 pragma Inline (Set_Check_Address_Alignment);
11943 pragma Inline (Set_Choice_Parameter);
11944 pragma Inline (Set_Choices);
11945 pragma Inline (Set_Class_Present);
11946 pragma Inline (Set_Coextensions);
11947 pragma Inline (Set_Comes_From_Extended_Return_Statement);
11948 pragma Inline (Set_Compile_Time_Known_Aggregate);
11949 pragma Inline (Set_Component_Associations);
11950 pragma Inline (Set_Component_Clauses);
11951 pragma Inline (Set_Component_Definition);
11952 pragma Inline (Set_Component_Items);
11953 pragma Inline (Set_Component_List);
11954 pragma Inline (Set_Component_Name);
11955 pragma Inline (Set_Componentwise_Assignment);
11956 pragma Inline (Set_Condition);
11957 pragma Inline (Set_Condition_Actions);
11958 pragma Inline (Set_Config_Pragmas);
11959 pragma Inline (Set_Constant_Present);
11960 pragma Inline (Set_Constraint);
11961 pragma Inline (Set_Constraints);
11962 pragma Inline (Set_Context_Installed);
11963 pragma Inline (Set_Context_Items);
11964 pragma Inline (Set_Context_Pending);
11965 pragma Inline (Set_Controlling_Argument);
11966 pragma Inline (Set_Conversion_OK);
11967 pragma Inline (Set_Corresponding_Body);
11968 pragma Inline (Set_Corresponding_Formal_Spec);
11969 pragma Inline (Set_Corresponding_Generic_Association);
11970 pragma Inline (Set_Corresponding_Integer_Value);
11971 pragma Inline (Set_Corresponding_Spec);
11972 pragma Inline (Set_Corresponding_Stub);
11973 pragma Inline (Set_Dcheck_Function);
11974 pragma Inline (Set_Debug_Statement);
11975 pragma Inline (Set_Declarations);
11976 pragma Inline (Set_Default_Expression);
11977 pragma Inline (Set_Default_Storage_Pool);
11978 pragma Inline (Set_Default_Name);
11979 pragma Inline (Set_Defining_Identifier);
11980 pragma Inline (Set_Defining_Unit_Name);
11981 pragma Inline (Set_Delay_Alternative);
11982 pragma Inline (Set_Delay_Statement);
11983 pragma Inline (Set_Delta_Expression);
11984 pragma Inline (Set_Digits_Expression);
11985 pragma Inline (Set_Discr_Check_Funcs_Built);
11986 pragma Inline (Set_Discrete_Choices);
11987 pragma Inline (Set_Discrete_Range);
11988 pragma Inline (Set_Discrete_Subtype_Definition);
11989 pragma Inline (Set_Discrete_Subtype_Definitions);
11990 pragma Inline (Set_Discriminant_Specifications);
11991 pragma Inline (Set_Discriminant_Type);
11992 pragma Inline (Set_Do_Accessibility_Check);
11993 pragma Inline (Set_Do_Discriminant_Check);
11994 pragma Inline (Set_Do_Length_Check);
11995 pragma Inline (Set_Do_Division_Check);
11996 pragma Inline (Set_Do_Overflow_Check);
11997 pragma Inline (Set_Do_Range_Check);
11998 pragma Inline (Set_Do_Storage_Check);
11999 pragma Inline (Set_Do_Tag_Check);
12000 pragma Inline (Set_Elaborate_Present);
12001 pragma Inline (Set_Elaborate_All_Desirable);
12002 pragma Inline (Set_Elaborate_All_Present);
12003 pragma Inline (Set_Elaborate_Desirable);
12004 pragma Inline (Set_Elaboration_Boolean);
12005 pragma Inline (Set_Else_Actions);
12006 pragma Inline (Set_Else_Statements);
12007 pragma Inline (Set_Elsif_Parts);
12008 pragma Inline (Set_Enclosing_Variant);
12009 pragma Inline (Set_End_Label);
12010 pragma Inline (Set_End_Span);
12011 pragma Inline (Set_Entity);
12012 pragma Inline (Set_Entry_Body_Formal_Part);
12013 pragma Inline (Set_Entry_Call_Alternative);
12014 pragma Inline (Set_Entry_Call_Statement);
12015 pragma Inline (Set_Entry_Direct_Name);
12016 pragma Inline (Set_Entry_Index);
12017 pragma Inline (Set_Entry_Index_Specification);
12018 pragma Inline (Set_Etype);
12019 pragma Inline (Set_Exception_Choices);
12020 pragma Inline (Set_Exception_Handlers);
12021 pragma Inline (Set_Exception_Junk);
12022 pragma Inline (Set_Exception_Label);
12023 pragma Inline (Set_Expansion_Delayed);
12024 pragma Inline (Set_Explicit_Actual_Parameter);
12025 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
12026 pragma Inline (Set_Expression);
12027 pragma Inline (Set_Expressions);
12028 pragma Inline (Set_First_Bit);
12029 pragma Inline (Set_First_Inlined_Subprogram);
12030 pragma Inline (Set_First_Name);
12031 pragma Inline (Set_First_Named_Actual);
12032 pragma Inline (Set_First_Real_Statement);
12033 pragma Inline (Set_First_Subtype_Link);
12034 pragma Inline (Set_Float_Truncate);
12035 pragma Inline (Set_Formal_Type_Definition);
12036 pragma Inline (Set_Forwards_OK);
12037 pragma Inline (Set_From_Aspect_Specification);
12038 pragma Inline (Set_From_At_End);
12039 pragma Inline (Set_From_At_Mod);
12040 pragma Inline (Set_From_Default);
12041 pragma Inline (Set_Generic_Associations);
12042 pragma Inline (Set_Generic_Formal_Declarations);
12043 pragma Inline (Set_Generic_Parent);
12044 pragma Inline (Set_Generic_Parent_Type);
12045 pragma Inline (Set_Handled_Statement_Sequence);
12046 pragma Inline (Set_Handler_List_Entry);
12047 pragma Inline (Set_Has_Created_Identifier);
12048 pragma Inline (Set_Has_Dynamic_Length_Check);
12049 pragma Inline (Set_Has_Init_Expression);
12050 pragma Inline (Set_Has_Local_Raise);
12051 pragma Inline (Set_Has_Dynamic_Range_Check);
12052 pragma Inline (Set_Has_No_Elaboration_Code);
12053 pragma Inline (Set_Has_Pragma_CPU);
12054 pragma Inline (Set_Has_Pragma_Priority);
12055 pragma Inline (Set_Has_Pragma_Suppress_All);
12056 pragma Inline (Set_Has_Private_View);
12057 pragma Inline (Set_Has_Relative_Deadline_Pragma);
12058 pragma Inline (Set_Has_Storage_Size_Pragma);
12059 pragma Inline (Set_Has_Task_Info_Pragma);
12060 pragma Inline (Set_Has_Task_Name_Pragma);
12061 pragma Inline (Set_Has_Wide_Character);
12062 pragma Inline (Set_Has_Wide_Wide_Character);
12063 pragma Inline (Set_Hidden_By_Use_Clause);
12064 pragma Inline (Set_High_Bound);
12065 pragma Inline (Set_Identifier);
12066 pragma Inline (Set_Implicit_With);
12067 pragma Inline (Set_Includes_Infinities);
12068 pragma Inline (Set_Interface_List);
12069 pragma Inline (Set_Interface_Present);
12070 pragma Inline (Set_Import_Interface_Present);
12071 pragma Inline (Set_In_Present);
12072 pragma Inline (Set_Inherited_Discriminant);
12073 pragma Inline (Set_Instance_Spec);
12074 pragma Inline (Set_Intval);
12075 pragma Inline (Set_Is_Accessibility_Actual);
12076 pragma Inline (Set_Is_Asynchronous_Call_Block);
12077 pragma Inline (Set_Is_Component_Left_Opnd);
12078 pragma Inline (Set_Is_Component_Right_Opnd);
12079 pragma Inline (Set_Is_Controlling_Actual);
12080 pragma Inline (Set_Is_Delayed_Aspect);
12081 pragma Inline (Set_Is_Dynamic_Coextension);
12082 pragma Inline (Set_Is_Elsif);
12083 pragma Inline (Set_Is_Entry_Barrier_Function);
12084 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
12085 pragma Inline (Set_Is_Folded_In_Parser);
12086 pragma Inline (Set_Is_In_Discriminant_Check);
12087 pragma Inline (Set_Is_Machine_Number);
12088 pragma Inline (Set_Is_Null_Loop);
12089 pragma Inline (Set_Is_Overloaded);
12090 pragma Inline (Set_Is_Power_Of_2_For_Shift);
12091 pragma Inline (Set_Is_Protected_Subprogram_Body);
12092 pragma Inline (Set_Has_Self_Reference);
12093 pragma Inline (Set_Is_Static_Coextension);
12094 pragma Inline (Set_Is_Static_Expression);
12095 pragma Inline (Set_Is_Subprogram_Descriptor);
12096 pragma Inline (Set_Is_Task_Allocation_Block);
12097 pragma Inline (Set_Is_Task_Master);
12098 pragma Inline (Set_Iteration_Scheme);
12099 pragma Inline (Set_Itype);
12100 pragma Inline (Set_Kill_Range_Check);
12101 pragma Inline (Set_Last_Bit);
12102 pragma Inline (Set_Last_Name);
12103 pragma Inline (Set_Library_Unit);
12104 pragma Inline (Set_Label_Construct);
12105 pragma Inline (Set_Left_Opnd);
12106 pragma Inline (Set_Limited_View_Installed);
12107 pragma Inline (Set_Limited_Present);
12108 pragma Inline (Set_Literals);
12109 pragma Inline (Set_Local_Raise_Not_OK);
12110 pragma Inline (Set_Local_Raise_Statements);
12111 pragma Inline (Set_Loop_Actions);
12112 pragma Inline (Set_Loop_Parameter_Specification);
12113 pragma Inline (Set_Low_Bound);
12114 pragma Inline (Set_Mod_Clause);
12115 pragma Inline (Set_More_Ids);
12116 pragma Inline (Set_Must_Be_Byte_Aligned);
12117 pragma Inline (Set_Must_Not_Freeze);
12118 pragma Inline (Set_Must_Not_Override);
12119 pragma Inline (Set_Must_Override);
12120 pragma Inline (Set_Name);
12121 pragma Inline (Set_Names);
12122 pragma Inline (Set_Next_Entity);
12123 pragma Inline (Set_Next_Exit_Statement);
12124 pragma Inline (Set_Next_Implicit_With);
12125 pragma Inline (Set_Next_Named_Actual);
12126 pragma Inline (Set_Next_Pragma);
12127 pragma Inline (Set_Next_Rep_Item);
12128 pragma Inline (Set_Next_Use_Clause);
12129 pragma Inline (Set_No_Ctrl_Actions);
12130 pragma Inline (Set_No_Elaboration_Check);
12131 pragma Inline (Set_No_Entities_Ref_In_Spec);
12132 pragma Inline (Set_No_Initialization);
12133 pragma Inline (Set_No_Truncation);
12134 pragma Inline (Set_Null_Present);
12135 pragma Inline (Set_Null_Exclusion_Present);
12136 pragma Inline (Set_Null_Exclusion_In_Return_Present);
12137 pragma Inline (Set_Null_Record_Present);
12138 pragma Inline (Set_Object_Definition);
12139 pragma Inline (Set_Original_Discriminant);
12140 pragma Inline (Set_Original_Entity);
12141 pragma Inline (Set_Others_Discrete_Choices);
12142 pragma Inline (Set_Out_Present);
12143 pragma Inline (Set_Parameter_Associations);
12144 pragma Inline (Set_Parameter_Specifications);
12145 pragma Inline (Set_Parameter_List_Truncated);
12146 pragma Inline (Set_Parameter_Type);
12147 pragma Inline (Set_Parent_Spec);
12148 pragma Inline (Set_Position);
12149 pragma Inline (Set_Pragma_Argument_Associations);
12150 pragma Inline (Set_Pragma_Enabled);
12151 pragma Inline (Set_Pragma_Identifier);
12152 pragma Inline (Set_Pragmas_After);
12153 pragma Inline (Set_Pragmas_Before);
12154 pragma Inline (Set_Prefix);
12155 pragma Inline (Set_Present_Expr);
12156 pragma Inline (Set_Prev_Ids);
12157 pragma Inline (Set_Print_In_Hex);
12158 pragma Inline (Set_Private_Declarations);
12159 pragma Inline (Set_Private_Present);
12160 pragma Inline (Set_Procedure_To_Call);
12161 pragma Inline (Set_Proper_Body);
12162 pragma Inline (Set_Protected_Definition);
12163 pragma Inline (Set_Protected_Present);
12164 pragma Inline (Set_Raises_Constraint_Error);
12165 pragma Inline (Set_Range_Constraint);
12166 pragma Inline (Set_Range_Expression);
12167 pragma Inline (Set_Real_Range_Specification);
12168 pragma Inline (Set_Realval);
12169 pragma Inline (Set_Reason);
12170 pragma Inline (Set_Record_Extension_Part);
12171 pragma Inline (Set_Redundant_Use);
12172 pragma Inline (Set_Renaming_Exception);
12173 pragma Inline (Set_Result_Definition);
12174 pragma Inline (Set_Return_Object_Declarations);
12175 pragma Inline (Set_Reverse_Present);
12176 pragma Inline (Set_Right_Opnd);
12177 pragma Inline (Set_Rounded_Result);
12178 pragma Inline (Set_SCIL_Controlling_Tag);
12179 pragma Inline (Set_SCIL_Entity);
12180 pragma Inline (Set_SCIL_Tag_Value);
12181 pragma Inline (Set_SCIL_Target_Prim);
12182 pragma Inline (Set_Scope);
12183 pragma Inline (Set_Select_Alternatives);
12184 pragma Inline (Set_Selector_Name);
12185 pragma Inline (Set_Selector_Names);
12186 pragma Inline (Set_Shift_Count_OK);
12187 pragma Inline (Set_Source_Type);
12188 pragma Inline (Set_Specification);
12189 pragma Inline (Set_Split_PPC);
12190 pragma Inline (Set_Statements);
12191 pragma Inline (Set_Static_Processing_OK);
12192 pragma Inline (Set_Storage_Pool);
12193 pragma Inline (Set_Strval);
12194 pragma Inline (Set_Subtype_Indication);
12195 pragma Inline (Set_Subtype_Mark);
12196 pragma Inline (Set_Subtype_Marks);
12197 pragma Inline (Set_Suppress_Loop_Warnings);
12198 pragma Inline (Set_Synchronized_Present);
12199 pragma Inline (Set_Tagged_Present);
12200 pragma Inline (Set_Target_Type);
12201 pragma Inline (Set_Task_Definition);
12202 pragma Inline (Set_Task_Present);
12203 pragma Inline (Set_Then_Actions);
12204 pragma Inline (Set_Then_Statements);
12205 pragma Inline (Set_Triggering_Alternative);
12206 pragma Inline (Set_Triggering_Statement);
12207 pragma Inline (Set_Treat_Fixed_As_Integer);
12208 pragma Inline (Set_TSS_Elist);
12209 pragma Inline (Set_Type_Definition);
12210 pragma Inline (Set_Unit);
12211 pragma Inline (Set_Unknown_Discriminants_Present);
12212 pragma Inline (Set_Unreferenced_In_Spec);
12213 pragma Inline (Set_Variant_Part);
12214 pragma Inline (Set_Variants);
12215 pragma Inline (Set_Visible_Declarations);
12216 pragma Inline (Set_Was_Originally_Stub);
12217 pragma Inline (Set_Withed_Body);
12218 pragma Inline (Set_Zero_Cost_Handling);
12220 N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
12221 -- Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
12222 -- should refer to N_Simple_Return_Statement.