Implement -mmemcpy-strategy= and -mmemset-strategy= options
[official-gcc.git] / gcc / ada / sinfo.ads
blobe8c9805cc315f8205b21791a1aec4cdaae455817
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S I N F O --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2013, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
17 -- --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
21 -- --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
26 -- --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
29 -- --
30 ------------------------------------------------------------------------------
32 -- This package defines the structure of the abstract syntax tree. The Tree
33 -- package provides a basic tree structure. Sinfo describes how this structure
34 -- is used to represent the syntax of an Ada program.
36 -- The grammar in the RM is followed very closely in the tree design, and is
37 -- repeated as part of this source file.
39 -- The tree contains not only the full syntactic representation of the
40 -- program, but also the results of semantic analysis. In particular, the
41 -- nodes for defining identifiers, defining character literals and defining
42 -- operator symbols, collectively referred to as entities, represent what
43 -- would normally be regarded as the symbol table information. In addition a
44 -- number of the tree nodes contain semantic information.
46 -- WARNING: Several files are automatically generated from this package.
47 -- See below for details.
49 with Namet; use Namet;
50 with Types; use Types;
51 with Uintp; use Uintp;
52 with Urealp; use Urealp;
54 package Sinfo is
56 ---------------------------------
57 -- Making Changes to This File --
58 ---------------------------------
60 -- If changes are made to this file, a number of related steps must be
61 -- carried out to ensure consistency. First, if a field access function is
62 -- added, it appears in these places:
64 -- In sinfo.ads:
65 -- The documentation associated with the field (if semantic)
66 -- The documentation associated with the node
67 -- The spec of the access function
68 -- The spec of the set procedure
69 -- The entries in Is_Syntactic_Field
70 -- The pragma Inline for the access function
71 -- The pragma Inline for the set procedure
72 -- In sinfo.adb:
73 -- The body of the access function
74 -- The body of the set procedure
76 -- The field chosen must be consistent in all places, and, for a node that
77 -- is a subexpression, must not overlap any of the standard expression
78 -- fields.
80 -- In addition, if any of the standard expression fields is changed, then
81 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
82 -- must be updated appropriately, since it special cases expression fields.
84 -- If a new tree node is added, then the following changes are made
86 -- Add it to the documentation in the appropriate place
87 -- Add its fields to this documentation section
88 -- Define it in the appropriate classification in Node_Kind
89 -- In the body (sinfo), add entries to the access functions for all
90 -- its fields (except standard expression fields) to include the new
91 -- node in the checks.
92 -- Add an appropriate section to the case statement in sprint.adb
93 -- Add an appropriate section to the case statement in sem.adb
94 -- Add an appropriate section to the case statement in exp_util.adb
95 -- (Insert_Actions procedure)
96 -- For a subexpression, add an appropriate section to the case
97 -- statement in sem_eval.adb
98 -- For a subexpression, add an appropriate section to the case
99 -- statement in sem_res.adb
101 -- Finally, four utility programs must be run:
103 -- (Optional.) Run CSinfo to check that you have made the changes
104 -- consistently. It checks most of the rules given above. This utility
105 -- reads sinfo.ads and sinfo.adb and generates a report to standard
106 -- output. This step is optional because XSinfo runs CSinfo.
108 -- Run XSinfo to create sinfo.h, the corresponding C header. This
109 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
110 -- not need to read sinfo.adb, since the contents of the body are
111 -- algorithmically determinable from the spec.
113 -- Run XTreeprs to create treeprs.ads, an updated version of the module
114 -- that is used to drive the tree print routine. This utility reads (but
115 -- does not modify) treeprs.adt, the template that provides the basic
116 -- structure of the file, and then fills in the data from the comments
117 -- in sinfo.ads.
119 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
120 -- spec of the Nmake package which contains functions for constructing
121 -- nodes.
123 -- The above steps are done automatically by the build scripts when you do
124 -- a full bootstrap.
126 -- Note: sometime we could write a utility that actually generated the body
127 -- of sinfo from the spec instead of simply checking it, since, as noted
128 -- above, the contents of the body can be determined from the spec.
130 --------------------------------
131 -- Implicit Nodes in the Tree --
132 --------------------------------
134 -- Generally the structure of the tree very closely follows the grammar as
135 -- defined in the RM. However, certain nodes are omitted to save space and
136 -- simplify semantic processing. Two general classes of such omitted nodes
137 -- are as follows:
139 -- If the only possibilities for a non-terminal are one or more other
140 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
141 -- corresponding node is omitted from the tree, and the target construct
142 -- appears directly. For example, a real type definition is either
143 -- floating point definition or a fixed point definition. No explicit node
144 -- appears for real type definition. Instead either the floating point
145 -- definition or fixed point definition appears directly.
147 -- If a non-terminal corresponds to a list of some other non-terminal
148 -- (possibly with separating punctuation), then usually it is omitted from
149 -- the tree, and a list of components appears instead. For example,
150 -- sequence of statements does not appear explicitly in the tree. Instead
151 -- a list of statements appears directly.
153 -- Some additional cases of omitted nodes occur and are documented
154 -- individually. In particular, many nodes are omitted in the tree
155 -- generated for an expression.
157 -------------------------------------------
158 -- Handling of Defining Identifier Lists --
159 -------------------------------------------
161 -- In several declarative forms in the syntax, lists of defining
162 -- identifiers appear (object declarations, component declarations, number
163 -- declarations etc.)
165 -- The semantics of such statements are equivalent to a series of identical
166 -- declarations of single defining identifiers (except that conformance
167 -- checks require the same grouping of identifiers in the parameter case).
169 -- To simplify semantic processing, the parser breaks down such multiple
170 -- declaration cases into sequences of single declarations, duplicating
171 -- type and initialization information as required. The flags More_Ids and
172 -- Prev_Ids are used to record the original form of the source in the case
173 -- where the original source used a list of names, More_Ids being set on
174 -- all but the last name and Prev_Ids being set on all but the first name.
175 -- These flags are used to reconstruct the original source (e.g. in the
176 -- Sprint package), and also are included in the conformance checks, but
177 -- otherwise have no semantic significance.
179 -- Note: the reason that we use More_Ids and Prev_Ids rather than
180 -- First_Name and Last_Name flags is so that the flags are off in the
181 -- normal one identifier case, which minimizes tree print output.
183 -----------------------
184 -- Use of Node Lists --
185 -----------------------
187 -- With a few exceptions, if a construction of the form {non-terminal}
188 -- appears in the tree, lists are used in the corresponding tree node (see
189 -- package Nlists for handling of node lists). In this case a field of the
190 -- parent node points to a list of nodes for the non-terminal. The field
191 -- name for such fields has a plural name which always ends in "s". For
192 -- example, a case statement has a field Alternatives pointing to list of
193 -- case statement alternative nodes.
195 -- Only fields pointing to lists have names ending in "s", so generally the
196 -- structure is strongly typed, fields not ending in s point to single
197 -- nodes, and fields ending in s point to lists.
199 -- The following example shows how a traversal of a list is written. We
200 -- suppose here that Stmt points to a N_Case_Statement node which has a
201 -- list field called Alternatives:
203 -- Alt := First (Alternatives (Stmt));
204 -- while Present (Alt) loop
205 -- ..
206 -- -- processing for case statement alternative Alt
207 -- ..
208 -- Alt := Next (Alt);
209 -- end loop;
211 -- The Present function tests for Empty, which in this case signals the end
212 -- of the list. First returns Empty immediately if the list is empty.
213 -- Present is defined in Atree, First and Next are defined in Nlists.
215 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
216 -- contexts, which is handled as described in the previous section, and
217 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
218 -- using the First_Name and Last_Name flags, as further detailed in the
219 -- description of the N_With_Clause node.
221 -------------
222 -- Pragmas --
223 -------------
225 -- Pragmas can appear in many different context, but are not included in
226 -- the grammar. Still they must appear in the tree, so they can be properly
227 -- processed.
229 -- Two approaches are used. In some cases, an extra field is defined in an
230 -- appropriate node that contains a list of pragmas appearing in the
231 -- expected context. For example pragmas can appear before an
232 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
233 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
235 -- The other approach is to simply allow pragmas to appear in syntactic
236 -- lists where the grammar (of course) does not include the possibility.
237 -- For example, the Variants field of an N_Variant_Part node points to a
238 -- list that can contain both N_Pragma and N_Variant nodes.
240 -- To make processing easier in the latter case, the Nlists package
241 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
242 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
243 -- ignoring all pragmas.
245 -- In the case of the variants list, we can either write:
247 -- Variant := First (Variants (N));
248 -- while Present (Variant) loop
249 -- ...
250 -- Variant := Next (Variant);
251 -- end loop;
253 -- or
255 -- Variant := First_Non_Pragma (Variants (N));
256 -- while Present (Variant) loop
257 -- ...
258 -- Variant := Next_Non_Pragma (Variant);
259 -- end loop;
261 -- In the first form of the loop, Variant can either be an N_Pragma or an
262 -- N_Variant node. In the second form, Variant can only be N_Variant since
263 -- all pragmas are skipped.
265 ---------------------
266 -- Optional Fields --
267 ---------------------
269 -- Fields which correspond to a section of the syntax enclosed in square
270 -- brackets are generally omitted (and the corresponding field set to Empty
271 -- for a node, or No_List for a list). The documentation of such fields
272 -- notes these cases. One exception to this rule occurs in the case of
273 -- possibly empty statement sequences (such as the sequence of statements
274 -- in an entry call alternative). Such cases appear in the syntax rules as
275 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
276 -- statement sequences always contain an empty list (not No_List) if no
277 -- statements are present.
279 -- Note: the utility program that constructs the body and spec of the Nmake
280 -- package relies on the format of the comments to determine if a field
281 -- should have a default value in the corresponding make routine. The rule
282 -- is that if the first line of the description of the field contains the
283 -- string "(set to xxx if", then a default value of xxx is provided for
284 -- this field in the corresponding Make_yyy routine.
286 -----------------------------------
287 -- Note on Body/Spec Terminology --
288 -----------------------------------
290 -- In informal discussions about Ada, it is customary to refer to package
291 -- and subprogram specs and bodies. However, this is not technically
292 -- correct, what is normally referred to as a spec or specification is in
293 -- fact a package declaration or subprogram declaration. We are careful in
294 -- GNAT to use the correct terminology and in particular, the full word
295 -- specification is never used as an incorrect substitute for declaration.
296 -- The structure and terminology used in the tree also reflects the grammar
297 -- and thus uses declaration and specification in the technically correct
298 -- manner.
300 -- However, there are contexts in which the informal terminology is useful.
301 -- We have the word "body" to refer to the Interp_Etype declared by the
302 -- declaration of a unit body, and in some contexts we need similar term to
303 -- refer to the entity declared by the package or subprogram declaration,
304 -- and simply using declaration can be confusing since the body also has a
305 -- declaration.
307 -- An example of such a context is the link between the package body and
308 -- its declaration. With_Declaration is confusing, since the package body
309 -- itself is a declaration.
311 -- To deal with this problem, we reserve the informal term Spec, i.e. the
312 -- popular abbreviation used in this context, to refer to the entity
313 -- declared by the package or subprogram declaration. So in the above
314 -- example case, the field in the body is called With_Spec.
316 -- Another important context for the use of the word Spec is in error
317 -- messages, where a hyper-correct use of declaration would be confusing to
318 -- a typical Ada programmer, and even for an expert programmer can cause
319 -- confusion since the body has a declaration as well.
321 -- So, to summarize:
323 -- Declaration always refers to the syntactic entity that is called
324 -- a declaration. In particular, subprogram declaration
325 -- and package declaration are used to describe the
326 -- syntactic entity that includes the semicolon.
328 -- Specification always refers to the syntactic entity that is called
329 -- a specification. In particular, the terms procedure
330 -- specification, function specification, package
331 -- specification, subprogram specification always refer
332 -- to the syntactic entity that has no semicolon.
334 -- Spec is an informal term, used to refer to the entity
335 -- that is declared by a task declaration, protected
336 -- declaration, generic declaration, subprogram
337 -- declaration or package declaration.
339 -- This convention is followed throughout the GNAT documentation
340 -- both internal and external, and in all error message text.
342 ------------------------
343 -- Internal Use Nodes --
344 ------------------------
346 -- These are Node_Kind settings used in the internal implementation which
347 -- are not logically part of the specification.
349 -- N_Unused_At_Start
350 -- Completely unused entry at the start of the enumeration type. This
351 -- is inserted so that no legitimate value is zero, which helps to get
352 -- better debugging behavior, since zero is a likely uninitialized value).
354 -- N_Unused_At_End
355 -- Completely unused entry at the end of the enumeration type. This is
356 -- handy so that arrays with Node_Kind as the index type have an extra
357 -- entry at the end (see for example the use of the Pchar_Pos_Array in
358 -- Treepr, where the extra entry provides the limit value when dealing with
359 -- the last used entry in the array).
361 -----------------------------------------
362 -- Note on the settings of Sloc fields --
363 -----------------------------------------
365 -- The Sloc field of nodes that come from the source is set by the parser.
366 -- For internal nodes, and nodes generated during expansion the Sloc is
367 -- usually set in the call to the constructor for the node. In general the
368 -- Sloc value chosen for an internal node is the Sloc of the source node
369 -- whose processing is responsible for the expansion. For example, the Sloc
370 -- of an inherited primitive operation is the Sloc of the corresponding
371 -- derived type declaration.
373 -- For the nodes of a generic instantiation, the Sloc value is encoded to
374 -- represent both the original Sloc in the generic unit, and the Sloc of
375 -- the instantiation itself. See Sinput.ads for details.
377 -- Subprogram instances create two callable entities: one is the visible
378 -- subprogram instance, and the other is an anonymous subprogram nested
379 -- within a wrapper package that contains the renamings for the actuals.
380 -- Both of these entities have the Sloc of the defining entity in the
381 -- instantiation node. This simplifies some ASIS queries.
383 -----------------------
384 -- Field Definitions --
385 -----------------------
387 -- In the following node definitions, all fields, both syntactic and
388 -- semantic, are documented. The one exception is in the case of entities
389 -- (defining identifiers, character literals and operator symbols), where
390 -- the usage of the fields depends on the entity kind. Entity fields are
391 -- fully documented in the separate package Einfo.
393 -- In the node definitions, three common sets of fields are abbreviated to
394 -- save both space in the documentation, and also space in the string
395 -- (defined in Tree_Print_Strings) used to print trees. The following
396 -- abbreviations are used:
398 -- Note: the utility program that creates the Treeprs spec (in the file
399 -- xtreeprs.adb) knows about the special fields here, so it must be
400 -- modified if any change is made to these fields.
402 -- "plus fields for binary operator"
403 -- Chars (Name1) Name_Id for the operator
404 -- Left_Opnd (Node2) left operand expression
405 -- Right_Opnd (Node3) right operand expression
406 -- Entity (Node4-Sem) defining entity for operator
407 -- Associated_Node (Node4-Sem) for generic processing
408 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
409 -- Has_Private_View (Flag11-Sem) set in generic units.
411 -- "plus fields for unary operator"
412 -- Chars (Name1) Name_Id for the operator
413 -- Right_Opnd (Node3) right operand expression
414 -- Entity (Node4-Sem) defining entity for operator
415 -- Associated_Node (Node4-Sem) for generic processing
416 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
417 -- Has_Private_View (Flag11-Sem) set in generic units.
419 -- "plus fields for expression"
420 -- Paren_Count number of parentheses levels
421 -- Etype (Node5-Sem) type of the expression
422 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
423 -- Is_Static_Expression (Flag6-Sem) set for static expression
424 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
425 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
426 -- Do_Range_Check (Flag9-Sem) set if a range check needed
427 -- Has_Dynamic_Length_Check (Flag10-Sem) set if length check inserted
428 -- Has_Dynamic_Range_Check (Flag12-Sem) set if range check inserted
429 -- Assignment_OK (Flag15-Sem) set if modification is OK
430 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
432 -- Note: see under (EXPRESSION) for further details on the use of
433 -- the Paren_Count field to record the number of parentheses levels.
435 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
436 -- The actual definition of this type is given later (the reason for this
437 -- is that we want the descriptions ordered by logical chapter in the RM,
438 -- but the type definition is reordered to facilitate the definition of
439 -- some subtype ranges. The individual descriptions of the nodes show how
440 -- the various fields are used in each node kind, as well as providing
441 -- logical names for the fields. Functions and procedures are provided for
442 -- accessing and setting these fields using these logical names.
444 -----------------------
445 -- Gigi Restrictions --
446 -----------------------
448 -- The tree passed to Gigi is more restricted than the general tree form.
449 -- For example, as a result of expansion, most of the tasking nodes can
450 -- never appear. For each node to which either a complete or partial
451 -- restriction applies, a note entitled "Gigi restriction" appears which
452 -- documents the restriction.
454 -- Note that most of these restrictions apply only to trees generated when
455 -- code is being generated, since they involved expander actions that
456 -- destroy the tree.
458 ------------------------
459 -- Common Flag Fields --
460 ------------------------
462 -- The following flag fields appear in all nodes
464 -- Analyzed
465 -- This flag is used to indicate that a node (and all its children have
466 -- been analyzed. It is used to avoid reanalysis of a node that has
467 -- already been analyzed, both for efficiency and functional correctness
468 -- reasons.
470 -- Comes_From_Source
471 -- This flag is set if the node comes directly from an explicit construct
472 -- in the source. It is normally on for any nodes built by the scanner or
473 -- parser from the source program, with the exception that in a few cases
474 -- the parser adds nodes to normalize the representation (in particular
475 -- a null statement is added to a package body if there is no begin/end
476 -- initialization section.
478 -- Most nodes inserted by the analyzer or expander are not considered
479 -- as coming from source, so the flag is off for such nodes. In a few
480 -- cases, the expander constructs nodes closely equivalent to nodes
481 -- from the source program (e.g. the allocator built for build-in-place
482 -- case), and the Comes_From_Source flag is deliberately set.
484 -- Error_Posted
485 -- This flag is used to avoid multiple error messages being posted on or
486 -- referring to the same node. This flag is set if an error message
487 -- refers to a node or is posted on its source location, and has the
488 -- effect of inhibiting further messages involving this same node.
490 ------------------------------------
491 -- Description of Semantic Fields --
492 ------------------------------------
494 -- The meaning of the syntactic fields is generally clear from their names
495 -- without any further description, since the names are chosen to
496 -- correspond very closely to the syntax in the reference manual. This
497 -- section describes the usage of the semantic fields, which are used to
498 -- contain additional information determined during semantic analysis.
500 -- ABE_Is_Certain (Flag18-Sem)
501 -- This flag is set in an instantiation node or a call node is determined
502 -- to be sure to raise an ABE. This is used to trigger special handling
503 -- of such cases, particularly in the instantiation case where we avoid
504 -- instantiating the body if this flag is set. This flag is also present
505 -- in an N_Formal_Package_Declaration_Node since formal package
506 -- declarations are treated like instantiations, but it is always set to
507 -- False in this context.
509 -- Accept_Handler_Records (List5-Sem)
510 -- This field is present only in an N_Accept_Alternative node. It is used
511 -- to temporarily hold the exception handler records from an accept
512 -- statement in a selective accept. These exception handlers will
513 -- eventually be placed in the Handler_Records list of the procedure
514 -- built for this accept (see Expand_N_Selective_Accept procedure in
515 -- Exp_Ch9 for further details).
517 -- Access_Types_To_Process (Elist2-Sem)
518 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
519 -- Contains the list of access types which may require specific treatment
520 -- when the nature of the type completion is completely known. An example
521 -- of such treatment is the generation of the associated_final_chain.
523 -- Actions (List1-Sem)
524 -- This field contains a sequence of actions that are associated with the
525 -- node holding the field. See the individual node types for details of
526 -- how this field is used, as well as the description of the specific use
527 -- for a particular node type.
529 -- Activation_Chain_Entity (Node3-Sem)
530 -- This is used in tree nodes representing task activators (blocks,
531 -- subprogram bodies, package declarations, and task bodies). It is
532 -- initially Empty, and then gets set to point to the entity for the
533 -- declared Activation_Chain variable when the first task is declared.
534 -- When tasks are declared in the corresponding declarative region this
535 -- entity is located by name (its name is always _Chain) and the declared
536 -- tasks are added to the chain. Note that N_Extended_Return_Statement
537 -- does not have this attribute, although it does have an activation
538 -- chain. This chain is used to store the tasks temporarily, and is not
539 -- used for activating them. On successful completion of the return
540 -- statement, the tasks are moved to the caller's chain, and the caller
541 -- activates them.
543 -- Acts_As_Spec (Flag4-Sem)
544 -- A flag set in the N_Subprogram_Body node for a subprogram body which
545 -- is acting as its own spec, except in the case of a library level
546 -- subprogram, in which case the flag is set on the parent compilation
547 -- unit node instead (see further description in spec of Lib package).
548 -- ??? Above note about Lib is dubious since lib.ads does not mention
549 -- Acts_As_Spec at all.
551 -- Actual_Designated_Subtype (Node4-Sem)
552 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
553 -- needs to known the dynamic constrained subtype of the designated
554 -- object, this attribute is set to that type. This is done for
555 -- N_Free_Statements for access-to-classwide types and access to
556 -- unconstrained packed array types, and for N_Explicit_Dereference when
557 -- the designated type is an unconstrained packed array and the
558 -- dereference is the prefix of a 'Size attribute reference.
560 -- Address_Warning_Posted (Flag18-Sem)
561 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
562 -- posted a warning for the address clause regarding size or alignment
563 -- issues. Used to inhibit multiple redundant messages.
565 -- Aggregate_Bounds (Node3-Sem)
566 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
567 -- known at compile time, this field points to an N_Range node with those
568 -- bounds. Otherwise Empty.
570 -- All_Others (Flag11-Sem)
571 -- Present in an N_Others_Choice node. This flag is set for an others
572 -- exception where all exceptions are to be caught, even those that are
573 -- not normally handled (in particular the tasking abort signal). This
574 -- is used for translation of the at end handler into a normal exception
575 -- handler.
577 -- Aspect_Rep_Item (Node2-Sem)
578 -- Present in N_Aspect_Specification nodes. Points to the corresponding
579 -- pragma/attribute definition node used to process the aspect.
581 -- Assignment_OK (Flag15-Sem)
582 -- This flag is set in a subexpression node for an object, indicating
583 -- that the associated object can be modified, even if this would not
584 -- normally be permissible (either by direct assignment, or by being
585 -- passed as an out or in-out parameter). This is used by the expander
586 -- for a number of purposes, including initialization of constants and
587 -- limited type objects (such as tasks), setting discriminant fields,
588 -- setting tag values, etc. N_Object_Declaration nodes also have this
589 -- flag defined. Here it is used to indicate that an initialization
590 -- expression is valid, even where it would normally not be allowed
591 -- (e.g. where the type involved is limited).
593 -- Associated_Node (Node4-Sem)
594 -- Present in nodes that can denote an entity: identifiers, character
595 -- literals, operator symbols, expanded names, operator nodes, and
596 -- attribute reference nodes (all these nodes have an Entity field).
597 -- This field is also present in N_Aggregate, N_Selected_Component, and
598 -- N_Extension_Aggregate nodes. This field is used in generic processing
599 -- to create links between the generic template and the generic copy.
600 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
601 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
602 -- the normal function of Entity is not required at the point where the
603 -- Associated_Node is set. Note also, that in generic templates, this
604 -- means that the Entity field does not necessarily point to an Entity.
605 -- Since the back end is expected to ignore generic templates, this is
606 -- harmless.
608 -- Atomic_Sync_Required (Flag14-Sem)
609 -- This flag is set on a node for which atomic synchronization is
610 -- required for the corresponding reference or modification.
612 -- At_End_Proc (Node1)
613 -- This field is present in an N_Handled_Sequence_Of_Statements node.
614 -- It contains an identifier reference for the cleanup procedure to be
615 -- called. See description of this node for further details.
617 -- Backwards_OK (Flag6-Sem)
618 -- A flag present in the N_Assignment_Statement node. It is used only
619 -- if the type being assigned is an array type, and is set if analysis
620 -- determines that it is definitely safe to do the copy backwards, i.e.
621 -- starting at the highest addressed element. This is the case if either
622 -- the operands do not overlap, or they may overlap, but if they do,
623 -- then the left operand is at a higher address than the right operand.
625 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
626 -- means that the front end could not determine that either direction is
627 -- definitely safe, and a runtime check may be required if the backend
628 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
629 -- set, it means that the front end can assure no overlap of operands.
631 -- Body_To_Inline (Node3-Sem)
632 -- present in subprogram declarations. Denotes analyzed but unexpanded
633 -- body of subprogram, to be used when inlining calls. Present when the
634 -- subprogram has an Inline pragma and inlining is enabled. If the
635 -- declaration is completed by a renaming_as_body, and the renamed en-
636 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
637 -- which is used directly in later calls to the original subprogram.
639 -- Body_Required (Flag13-Sem)
640 -- A flag that appears in the N_Compilation_Unit node indicating that
641 -- the corresponding unit requires a body. For the package case, this
642 -- indicates that a completion is required. In Ada 95, if the flag is not
643 -- set for the package case, then a body may not be present. In Ada 83,
644 -- if the flag is not set for the package case, then body is optional.
645 -- For a subprogram declaration, the flag is set except in the case where
646 -- a pragma Import or Interface applies, in which case no body is
647 -- permitted (in Ada 83 or Ada 95).
649 -- By_Ref (Flag5-Sem)
650 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
651 -- this flag is set when the returned expression is already allocated on
652 -- the secondary stack and thus the result is passed by reference rather
653 -- than copied another time.
655 -- Check_Address_Alignment (Flag11-Sem)
656 -- A flag present in N_Attribute_Definition clause for a 'Address
657 -- attribute definition. This flag is set if a dynamic check should be
658 -- generated at the freeze point for the entity to which this address
659 -- clause applies. The reason that we need this flag is that we want to
660 -- check for range checks being suppressed at the point where the
661 -- attribute definition clause is given, rather than testing this at the
662 -- freeze point.
664 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
665 -- Present in N_Simple_Return_Statement nodes. True if this node was
666 -- constructed as part of the N_Extended_Return_Statement expansion.
668 -- Compile_Time_Known_Aggregate (Flag18-Sem)
669 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
670 -- evaluated at compile time without raising constraint error. Such
671 -- aggregates can be passed as is the back end without any expansion.
672 -- See Exp_Aggr for specific conditions under which this flag gets set.
674 -- Componentwise_Assignment (Flag14-Sem)
675 -- Present in N_Assignment_Statement nodes. Set for a record assignment
676 -- where all that needs doing is to expand it into component-by-component
677 -- assignments. This is used internally for the case of tagged types with
678 -- rep clauses, where we need to avoid recursion (we don't want to try to
679 -- generate a call to the primitive operation, because this is the case
680 -- where we are compiling the primitive operation). Note that when we are
681 -- expanding component assignments in this case, we never assign the _tag
682 -- field, but we recursively assign components of the parent type.
684 -- Condition_Actions (List3-Sem)
685 -- This field appears in else-if nodes and in the iteration scheme node
686 -- for while loops. This field is only used during semantic processing to
687 -- temporarily hold actions inserted into the tree. In the tree passed
688 -- to gigi, the condition actions field is always set to No_List. For
689 -- details on how this field is used, see the routine Insert_Actions in
690 -- package Exp_Util, and also the expansion routines for the relevant
691 -- nodes.
693 -- Context_Pending (Flag16-Sem)
694 -- This field appears in Compilation_Unit nodes, to indicate that the
695 -- context of the unit is being compiled. Used to detect circularities
696 -- that are not otherwise detected by the loading mechanism. Such
697 -- circularities can occur in the presence of limited and non-limited
698 -- with_clauses that mention the same units.
700 -- Controlling_Argument (Node1-Sem)
701 -- This field is set in procedure and function call nodes if the call
702 -- is a dispatching call (it is Empty for a non-dispatching call). It
703 -- indicates the source of the call's controlling tag. For procedure
704 -- calls, the Controlling_Argument is one of the actuals. For function
705 -- that has a dispatching result, it is an entity in the context of the
706 -- call that can provide a tag, or else it is the tag of the root type
707 -- of the class. It can also specify a tag directly rather than being a
708 -- tagged object. The latter is needed by the implementations of AI-239
709 -- and AI-260.
711 -- Conversion_OK (Flag14-Sem)
712 -- A flag set on type conversion nodes to indicate that the conversion
713 -- is to be considered as being valid, even though it is the case that
714 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
715 -- Fixed_Value and Integer_Value, for internal conversions done for
716 -- fixed-point operations, and for certain conversions for calls to
717 -- initialization procedures. If Conversion_OK is set, then Etype must be
718 -- set (the analyzer assumes that Etype has been set). For the case of
719 -- fixed-point operands, it also indicates that the conversion is to be
720 -- direct conversion of the underlying integer result, with no regard to
721 -- the small operand.
723 -- Convert_To_Return_False (Flag13-Sem)
724 -- Present in N_Raise_Expression nodes that appear in the body of the
725 -- special predicateM function used to test a predicate in the context
726 -- of a membership test, where raise expression results in returning a
727 -- value of False rather than raising an exception.
729 -- Corresponding_Aspect (Node3-Sem)
730 -- Present in N_Pragma node. Used to point back to the source aspect from
731 -- the corresponding pragma. This field is Empty for source pragmas.
733 -- Corresponding_Body (Node5-Sem)
734 -- This field is set in subprogram declarations, package declarations,
735 -- entry declarations of protected types, and in generic units. It points
736 -- to the defining entity for the corresponding body (NOT the node for
737 -- the body itself).
739 -- Corresponding_Formal_Spec (Node3-Sem)
740 -- This field is set in subprogram renaming declarations, where it points
741 -- to the defining entity for a formal subprogram in the case where the
742 -- renaming corresponds to a generic formal subprogram association in an
743 -- instantiation. The field is Empty if the renaming does not correspond
744 -- to such a formal association.
746 -- Corresponding_Generic_Association (Node5-Sem)
747 -- This field is defined for object declarations and object renaming
748 -- declarations. It is set for the declarations within an instance that
749 -- map generic formals to their actuals. If set, the field points to
750 -- a generic_association which is the original parent of the expression
751 -- or name appearing in the declaration. This simplifies ASIS queries.
753 -- Corresponding_Integer_Value (Uint4-Sem)
754 -- This field is set in real literals of fixed-point types (it is not
755 -- used for floating-point types). It contains the integer value used
756 -- to represent the fixed-point value. It is also set on the universal
757 -- real literals used to represent bounds of fixed-point base types
758 -- and their first named subtypes.
760 -- Corresponding_Spec (Node5-Sem)
761 -- This field is set in subprogram, package, task, and protected body
762 -- nodes, where it points to the defining entity in the corresponding
763 -- spec. The attribute is also set in N_With_Clause nodes where it points
764 -- to the defining entity for the with'ed spec, and in a subprogram
765 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
766 -- if there is no corresponding spec, as in the case of a subprogram body
767 -- that serves as its own spec.
769 -- In Ada 2012, Corresponding_Spec is set on expression functions that
770 -- complete a subprogram declaration.
772 -- Corresponding_Stub (Node3-Sem)
773 -- This field is present in an N_Subunit node. It holds the node in
774 -- the parent unit that is the stub declaration for the subunit. It is
775 -- set when analysis of the stub forces loading of the proper body. If
776 -- expansion of the proper body creates new declarative nodes, they are
777 -- inserted at the point of the corresponding_stub.
779 -- Dcheck_Function (Node5-Sem)
780 -- This field is present in an N_Variant node, It references the entity
781 -- for the discriminant checking function for the variant.
783 -- Default_Expression (Node5-Sem)
784 -- This field is Empty if there is no default expression. If there is a
785 -- simple default expression (one with no side effects), then this field
786 -- simply contains a copy of the Expression field (both point to the tree
787 -- for the default expression). Default_Expression is used for
788 -- conformance checking.
790 -- Default_Storage_Pool (Node3-Sem)
791 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
792 -- copy of Opt.Default_Pool at the end of the compilation unit. See
793 -- package Opt for details. This is used for inheriting the
794 -- Default_Storage_Pool in child units.
796 -- Discr_Check_Funcs_Built (Flag11-Sem)
797 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
798 -- discriminant checking functions are constructed. The purpose is to
799 -- avoid attempting to set these functions more than once.
801 -- Do_Accessibility_Check (Flag13-Sem)
802 -- This flag is set on N_Parameter_Specification nodes to indicate
803 -- that an accessibility check is required for the parameter. It is
804 -- not yet decided who takes care of this check (TBD ???).
806 -- Do_Discriminant_Check (Flag13-Sem)
807 -- This flag is set on N_Selected_Component nodes to indicate that a
808 -- discriminant check is required using the discriminant check routine
809 -- associated with the selector. The actual check is generated by the
810 -- expander when processing selected components. In the case of
811 -- Unchecked_Union, the flag is also set, but no discriminant check
812 -- routine is associated with the selector, and the expander does not
813 -- generate a check.
815 -- Do_Division_Check (Flag13-Sem)
816 -- This flag is set on a division operator (/ mod rem) to indicate
817 -- that a zero divide check is required. The actual check is dealt
818 -- with by the backend (all the front end does is to set the flag).
820 -- Do_Length_Check (Flag4-Sem)
821 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
822 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
823 -- is required. It is not determined who deals with this flag (???).
825 -- Do_Overflow_Check (Flag17-Sem)
826 -- This flag is set on an operator where an overflow check is required on
827 -- the operation. The actual check is dealt with by the backend (all the
828 -- front end does is to set the flag). The other cases where this flag is
829 -- used is on a Type_Conversion node and for attribute reference nodes.
830 -- For a type conversion, it means that the conversion is from one base
831 -- type to another, and the value may not fit in the target base type.
832 -- See also the description of Do_Range_Check for this case. The only
833 -- attribute references which use this flag are Pred and Succ, where it
834 -- means that the result should be checked for going outside the base
835 -- range. Note that this flag is not set for modular types. This flag is
836 -- also set on if and case expression nodes if we are operating in either
837 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
838 -- properly process overflow checking for dependent expressions).
840 -- Do_Range_Check (Flag9-Sem)
841 -- This flag is set on an expression which appears in a context where a
842 -- range check is required. The target type is clear from the context.
843 -- The contexts in which this flag can appear are the following:
845 -- Right side of an assignment. In this case the target type is
846 -- taken from the left side of the assignment, which is referenced
847 -- by the Name of the N_Assignment_Statement node.
849 -- Subscript expressions in an indexed component. In this case the
850 -- target type is determined from the type of the array, which is
851 -- referenced by the Prefix of the N_Indexed_Component node.
853 -- Argument expression for a parameter, appearing either directly in
854 -- the Parameter_Associations list of a call or as the Expression of an
855 -- N_Parameter_Association node that appears in this list. In either
856 -- case, the check is against the type of the formal. Note that the
857 -- flag is relevant only in IN and IN OUT parameters, and will be
858 -- ignored for OUT parameters, where no check is required in the call,
859 -- and if a check is required on the return, it is generated explicitly
860 -- with a type conversion.
862 -- Initialization expression for the initial value in an object
863 -- declaration. In this case the Do_Range_Check flag is set on
864 -- the initialization expression, and the check is against the
865 -- range of the type of the object being declared.
867 -- The expression of a type conversion. In this case the range check is
868 -- against the target type of the conversion. See also the use of
869 -- Do_Overflow_Check on a type conversion. The distinction is that the
870 -- overflow check protects against a value that is outside the range of
871 -- the target base type, whereas a range check checks that the
872 -- resulting value (which is a value of the base type of the target
873 -- type), satisfies the range constraint of the target type.
875 -- Note: when a range check is required in contexts other than those
876 -- listed above (e.g. in a return statement), an additional type
877 -- conversion node is introduced to represent the required check.
879 -- Do_Storage_Check (Flag17-Sem)
880 -- This flag is set in an N_Allocator node to indicate that a storage
881 -- check is required for the allocation, or in an N_Subprogram_Body node
882 -- to indicate that a stack check is required in the subprogram prolog.
883 -- The N_Allocator case is handled by the routine that expands the call
884 -- to the runtime routine. The N_Subprogram_Body case is handled by the
885 -- backend, and all the semantics does is set the flag.
887 -- Do_Tag_Check (Flag13-Sem)
888 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
889 -- N_Procedure_Call_Statement, N_Type_Conversion,
890 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
891 -- node to indicate that the tag check can be suppressed. It is not
892 -- yet decided how this flag is used (TBD ???).
894 -- Elaborate_Present (Flag4-Sem)
895 -- This flag is set in the N_With_Clause node to indicate that pragma
896 -- Elaborate pragma appears for the with'ed units.
898 -- Elaborate_All_Desirable (Flag9-Sem)
899 -- This flag is set in the N_With_Clause mode to indicate that the static
900 -- elaboration processing has determined that an Elaborate_All pragma is
901 -- desirable for correct elaboration for this unit.
903 -- Elaborate_All_Present (Flag14-Sem)
904 -- This flag is set in the N_With_Clause node to indicate that a
905 -- pragma Elaborate_All pragma appears for the with'ed units.
907 -- Elaborate_Desirable (Flag11-Sem)
908 -- This flag is set in the N_With_Clause mode to indicate that the static
909 -- elaboration processing has determined that an Elaborate pragma is
910 -- desirable for correct elaboration for this unit.
912 -- Elaboration_Boolean (Node2-Sem)
913 -- This field is present in function and procedure specification nodes.
914 -- If set, it points to the entity for a Boolean flag that must be tested
915 -- for certain calls to check for access before elaboration. See body of
916 -- Sem_Elab for further details. This field is Empty if no elaboration
917 -- boolean is required.
919 -- Else_Actions (List3-Sem)
920 -- This field is present in if expression nodes. During code
921 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
922 -- actions at an appropriate place in the tree to get elaborated at the
923 -- right time. For if expressions, we have to be sure that the actions
924 -- for the Else branch are only elaborated if the condition is False.
925 -- The Else_Actions field is used as a temporary parking place for
926 -- these actions. The final tree is always rewritten to eliminate the
927 -- need for this field, so in the tree passed to Gigi, this field is
928 -- always set to No_List.
930 -- Enclosing_Variant (Node2-Sem)
931 -- This field is present in the N_Variant node and identifies the Node_Id
932 -- corresponding to the immediately enclosing variant when the variant is
933 -- nested, and N_Empty otherwise. Set during semantic processing of the
934 -- variant part of a record type.
936 -- Entity (Node4-Sem)
937 -- Appears in all direct names (identifiers, character literals, and
938 -- operator symbols), as well as expanded names, and attributes that
939 -- denote entities, such as 'Class. Points to entity for corresponding
940 -- defining occurrence. Set after name resolution. For identifiers in a
941 -- WITH list, the corresponding defining occurrence is in a separately
942 -- compiled file, and Entity must be set by the library Load procedure.
944 -- Note: During name resolution, the value in Entity may be temporarily
945 -- incorrect (e.g. during overload resolution, Entity is initially set to
946 -- the first possible correct interpretation, and then later modified if
947 -- necessary to contain the correct value after resolution).
949 -- Note: This field overlaps Associated_Node, which is used during
950 -- generic processing (see Sem_Ch12 for details). Note also that in
951 -- generic templates, this means that the Entity field does not always
952 -- point to an Entity. Since the back end is expected to ignore generic
953 -- templates, this is harmless.
955 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
956 -- It is used only for stream attributes definition clauses. In this
957 -- case, it denotes a (possibly dummy) subprogram entity that is declared
958 -- conceptually at the point of the clause. Thus the visibility of the
959 -- attribute definition clause (in the sense of 8.3(23) as amended by
960 -- AI-195) can be checked by testing the visibility of that subprogram.
962 -- Note: Normally the Entity field of an identifier points to the entity
963 -- for the corresponding defining identifier, and hence the Chars field
964 -- of an identifier will match the Chars field of the entity. However,
965 -- there is no requirement that these match, and there are obscure cases
966 -- of generated code where they do not match.
968 -- Note: Ada 2012 aspect specifications require additional links between
969 -- identifiers and various attributes. These attributes can be of
970 -- arbitrary types, and the entity field of identifiers that denote
971 -- aspects must be used to store arbitrary expressions for later semantic
972 -- checks. See section on aspect specifications for details.
974 -- Entity_Or_Associated_Node (Node4-Sem)
975 -- A synonym for both Entity and Associated_Node. Used by convention in
976 -- the code when referencing this field in cases where it is not known
977 -- whether the field contains an Entity or an Associated_Node.
979 -- Etype (Node5-Sem)
980 -- Appears in all expression nodes, all direct names, and all entities.
981 -- Points to the entity for the related type. Set after type resolution.
982 -- Normally this is the actual subtype of the expression. However, in
983 -- certain contexts such as the right side of an assignment, subscripts,
984 -- arguments to calls, returned value in a function, initial value etc.
985 -- it is the desired target type. In the event that this is different
986 -- from the actual type, the Do_Range_Check flag will be set if a range
987 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
988 -- points to an essentially arbitrary choice from the possible set of
989 -- types.
991 -- Exception_Junk (Flag8-Sem)
992 -- This flag is set in a various nodes appearing in a statement sequence
993 -- to indicate that the corresponding node is an artifact of the
994 -- generated code for exception handling, and should be ignored when
995 -- analyzing the control flow of the relevant sequence of statements
996 -- (e.g. to check that it does not end with a bad return statement).
998 -- Exception_Label (Node5-Sem)
999 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1000 -- to be used for transforming the corresponding exception into a goto,
1001 -- or contains Empty, if this exception is not to be transformed. Also
1002 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1003 -- that there may be a local raise for the handler, so that expansion
1004 -- to allow a goto is required (and this field contains the label for
1005 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1007 -- Expansion_Delayed (Flag11-Sem)
1008 -- Set on aggregates and extension aggregates that need a top-down rather
1009 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1010 -- up. For nested aggregates the expansion is delayed until the enclosing
1011 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1012 -- delay it we set this flag. This is done to avoid creating a temporary
1013 -- for each level of a nested aggregates, and also to prevent the
1014 -- premature generation of constraint checks. This is also a requirement
1015 -- if we want to generate the proper attachment to the internal
1016 -- finalization lists (for record with controlled components). Top down
1017 -- expansion of aggregates is also used for in-place array aggregate
1018 -- assignment or initialization. When the full context is known, the
1019 -- target of the assignment or initialization is used to generate the
1020 -- left-hand side of individual assignment to each sub-component.
1022 -- First_Inlined_Subprogram (Node3-Sem)
1023 -- Present in the N_Compilation_Unit node for the main program. Points
1024 -- to a chain of entities for subprograms that are to be inlined. The
1025 -- Next_Inlined_Subprogram field of these entities is used as a link
1026 -- pointer with Empty marking the end of the list. This field is Empty
1027 -- if there are no inlined subprograms or inlining is not active.
1029 -- First_Named_Actual (Node4-Sem)
1030 -- Present in procedure call statement and function call nodes, and also
1031 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1032 -- named parameter where parameters are ordered by declaration order (as
1033 -- opposed to the actual order in the call which may be different due to
1034 -- named associations). Note: this field points to the explicit actual
1035 -- parameter itself, not the N_Parameter_Association node (its parent).
1037 -- First_Real_Statement (Node2-Sem)
1038 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1039 -- Empty. Used only when declarations are moved into the statement part
1040 -- of a construct as a result of wrapping an AT END handler that is
1041 -- required to cover the declarations. In this case, this field is used
1042 -- to remember the location in the statements list of the first real
1043 -- statement, i.e. the statement that used to be first in the statement
1044 -- list before the declarations were prepended.
1046 -- First_Subtype_Link (Node5-Sem)
1047 -- Present in N_Freeze_Entity node for an anonymous base type that is
1048 -- implicitly created by the declaration of a first subtype. It points
1049 -- to the entity for the first subtype.
1051 -- Float_Truncate (Flag11-Sem)
1052 -- A flag present in type conversion nodes. This is used for float to
1053 -- integer conversions where truncation is required rather than rounding.
1054 -- Note that Gigi does not handle type conversions from real to integer
1055 -- with rounding (see Expand_N_Type_Conversion).
1057 -- Forwards_OK (Flag5-Sem)
1058 -- A flag present in the N_Assignment_Statement node. It is used only
1059 -- if the type being assigned is an array type, and is set if analysis
1060 -- determines that it is definitely safe to do the copy forwards, i.e.
1061 -- starting at the lowest addressed element. This is the case if either
1062 -- the operands do not overlap, or they may overlap, but if they do,
1063 -- then the left operand is at a lower address than the right operand.
1065 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1066 -- means that the front end could not determine that either direction is
1067 -- definitely safe, and a runtime check may be required if the backend
1068 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1069 -- set, it means that the front end can assure no overlap of operands.
1071 -- From_Aspect_Specification (Flag13-Sem)
1072 -- Processing of aspect specifications typically results in insertion in
1073 -- the tree of corresponding pragma or attribute definition clause nodes.
1074 -- These generated nodes have the From_Aspect_Specification flag set to
1075 -- indicate that they came from aspect specifications originally.
1077 -- From_At_End (Flag4-Sem)
1078 -- This flag is set on an N_Raise_Statement node if it corresponds to
1079 -- the reraise statement generated as the last statement of an AT END
1080 -- handler when SJLJ exception handling is active. It is used to stop
1081 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1082 -- because if the restriction is set, the reraise is not generated.
1084 -- From_At_Mod (Flag4-Sem)
1085 -- This flag is set on the attribute definition clause node that is
1086 -- generated by a transformation of an at mod phrase in a record
1087 -- representation clause. This is used to give slightly different (Ada 83
1088 -- compatible) semantics to such a clause, namely it is used to specify a
1089 -- minimum acceptable alignment for the base type and all subtypes. In
1090 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1091 -- must be a multiple of the given value, and the representation clause
1092 -- is considered to be type specific instead of subtype specific.
1094 -- From_Default (Flag6-Sem)
1095 -- This flag is set on the subprogram renaming declaration created in an
1096 -- instance for a formal subprogram, when the formal is declared with a
1097 -- box, and there is no explicit actual. If the flag is present, the
1098 -- declaration is treated as an implicit reference to the formal in the
1099 -- ali file.
1101 -- Generic_Parent (Node5-Sem)
1102 -- Generic_Parent is defined on declaration nodes that are instances. The
1103 -- value of Generic_Parent is the generic entity from which the instance
1104 -- is obtained. Generic_Parent is also defined for the renaming
1105 -- declarations and object declarations created for the actuals in an
1106 -- instantiation. The generic parent of such a declaration is the
1107 -- corresponding generic association in the Instantiation node.
1109 -- Generic_Parent_Type (Node4-Sem)
1110 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1111 -- actuals of formal private and derived types. Within the instance, the
1112 -- operations on the actual are those inherited from the parent. For a
1113 -- formal private type, the parent type is the generic type itself. The
1114 -- Generic_Parent_Type is also used in an instance to determine whether a
1115 -- private operation overrides an inherited one.
1117 -- Handler_List_Entry (Node2-Sem)
1118 -- This field is present in N_Object_Declaration nodes. It is set only
1119 -- for the Handler_Record entry generated for an exception in zero cost
1120 -- exception handling mode. It references the corresponding item in the
1121 -- handler list, and is used to delete this entry if the corresponding
1122 -- handler is deleted during optimization. For further details on why
1123 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1125 -- Has_Dereference_Action (Flag13-Sem)
1126 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1127 -- indicate that the expansion has aready produced a call to primitive
1128 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1129 -- Such dereference actions are produced for debugging purposes.
1131 -- Has_Dynamic_Length_Check (Flag10-Sem)
1132 -- This flag is present in all expression nodes. It is set to indicate
1133 -- that one of the routines in unit Checks has generated a length check
1134 -- action which has been inserted at the flagged node. This is used to
1135 -- avoid the generation of duplicate checks.
1137 -- Has_Dynamic_Range_Check (Flag12-Sem)
1138 -- This flag is present in N_Subtype_Declaration nodes and on all
1139 -- expression nodes. It is set to indicate that one of the routines in
1140 -- unit Checks has generated a range check action which has been inserted
1141 -- at the flagged node. This is used to avoid the generation of duplicate
1142 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1143 -- it mean in that context???
1145 -- Has_Local_Raise (Flag8-Sem)
1146 -- Present in exception handler nodes. Set if the handler can be entered
1147 -- via a local raise that gets transformed to a goto statement. This will
1148 -- always be set if Local_Raise_Statements is non-empty, but can also be
1149 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1150 -- nodes requiring generation of back end checks.
1152 -- Has_No_Elaboration_Code (Flag17-Sem)
1153 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1154 -- or not elaboration code is present for this unit. It is initially set
1155 -- true for subprogram specs and bodies and for all generic units and
1156 -- false for non-generic package specs and bodies. Gigi may set the flag
1157 -- in the non-generic package case if it determines that no elaboration
1158 -- code is generated. Note that this flag is not related to the
1159 -- Is_Preelaborated status, there can be preelaborated packages that
1160 -- generate elaboration code, and non-preelaborated packages which do
1161 -- not generate elaboration code.
1163 -- Has_Pragma_Suppress_All (Flag14-Sem)
1164 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1165 -- pragma appears anywhere in the unit. This accommodates the rather
1166 -- strange placement rules of other compilers (DEC permits it at the
1167 -- end of a unit, and Rational allows it as a program unit pragma). We
1168 -- allow it anywhere at all, and consider it equivalent to a pragma
1169 -- Suppress (All_Checks) appearing at the start of the configuration
1170 -- pragmas for the unit.
1172 -- Has_Private_View (Flag11-Sem)
1173 -- A flag present in generic nodes that have an entity, to indicate that
1174 -- the node has a private type. Used to exchange private and full
1175 -- declarations if the visibility at instantiation is different from the
1176 -- visibility at generic definition.
1178 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1179 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1180 -- flag the presence of a pragma Relative_Deadline.
1182 -- Has_Self_Reference (Flag13-Sem)
1183 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1184 -- of the expressions contains an access attribute reference to the
1185 -- enclosing type. Such a self-reference can only appear in default-
1186 -- initialized aggregate for a record type.
1188 -- Has_Storage_Size_Pragma (Flag5-Sem)
1189 -- A flag present in an N_Task_Definition node to flag the presence of a
1190 -- Storage_Size pragma.
1192 -- Has_Wide_Character (Flag11-Sem)
1193 -- Present in string literals, set if any wide character (i.e. character
1194 -- code outside the Character range but within Wide_Character range)
1195 -- appears in the string. Used to implement pragma preference rules.
1197 -- Has_Wide_Wide_Character (Flag13-Sem)
1198 -- Present in string literals, set if any wide character (i.e. character
1199 -- code outside the Wide_Character range) appears in the string. Used to
1200 -- implement pragma preference rules.
1202 -- Header_Size_Added (Flag11-Sem)
1203 -- Present in N_Attribute_Reference nodes, set only for attribute
1204 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1205 -- hidden list header used by the runtime finalization support has been
1206 -- added to the size of the prefix. The flag also prevents the infinite
1207 -- expansion of the same attribute in the said context.
1209 -- Hidden_By_Use_Clause (Elist4-Sem)
1210 -- An entity list present in use clauses that appear within
1211 -- instantiations. For the resolution of local entities, entities
1212 -- introduced by these use clauses have priority over global ones, and
1213 -- outer entities must be explicitly hidden/restored on exit.
1215 -- Implicit_With (Flag16-Sem)
1216 -- This flag is set in the N_With_Clause node that is implicitly
1217 -- generated for runtime units that are loaded by the expander, and also
1218 -- for package System, if it is loaded implicitly by a use of the
1219 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1220 -- as well.
1222 -- Implicit_With_From_Instantiation (Flag12-Sem)
1223 -- Set in N_With_Clause nodes from generic instantiations.
1225 -- Import_Interface_Present (Flag16-Sem)
1226 -- This flag is set in an Interface or Import pragma if a matching
1227 -- pragma of the other kind is also present. This is used to avoid
1228 -- generating some unwanted error messages.
1230 -- In_Assertion_Expression (Flag4-Sem)
1231 -- This flag is present in N_Function_Call nodes. It is set if the
1232 -- function is called from within an assertion expression. This is
1233 -- used to avoid some bogus warnings about early elaboration.
1235 -- Includes_Infinities (Flag11-Sem)
1236 -- This flag is present in N_Range nodes. It is set for the range of
1237 -- unconstrained float types defined in Standard, which include not only
1238 -- the given range of values, but also legitimately can include infinite
1239 -- values. This flag is false for any float type for which an explicit
1240 -- range is given by the programmer, even if that range is identical to
1241 -- the range for Float.
1243 -- Inherited_Discriminant (Flag13-Sem)
1244 -- This flag is present in N_Component_Association nodes. It indicates
1245 -- that a given component association in an extension aggregate is the
1246 -- value obtained from a constraint on an ancestor. Used to prevent
1247 -- double expansion when the aggregate has expansion delayed.
1249 -- Instance_Spec (Node5-Sem)
1250 -- This field is present in generic instantiation nodes, and also in
1251 -- formal package declaration nodes (formal package declarations are
1252 -- treated in a manner very similar to package instantiations). It points
1253 -- to the node for the spec of the instance, inserted as part of the
1254 -- semantic processing for instantiations in Sem_Ch12.
1256 -- Is_Accessibility_Actual (Flag13-Sem)
1257 -- Present in N_Parameter_Association nodes. True if the parameter is
1258 -- an extra actual that carries the accessibility level of the actual
1259 -- for an access parameter, in a function that dispatches on result and
1260 -- is called in a dispatching context. Used to prevent a formal/actual
1261 -- mismatch when the call is rewritten as a dispatching call.
1263 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1264 -- A flag set in a Block_Statement node to indicate that it is the
1265 -- expansion of an asynchronous entry call. Such a block needs cleanup
1266 -- handler to assure that the call is cancelled.
1268 -- Is_Boolean_Aspect (Flag16-Sem)
1269 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1270 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1272 -- Is_Component_Left_Opnd (Flag13-Sem)
1273 -- Is_Component_Right_Opnd (Flag14-Sem)
1274 -- Present in concatenation nodes, to indicate that the corresponding
1275 -- operand is of the component type of the result. Used in resolving
1276 -- concatenation nodes in instances.
1278 -- Is_Delayed_Aspect (Flag14-Sem)
1279 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1280 -- come from aspect specifications, where the evaluation of the aspect
1281 -- must be delayed to the freeze point. This flag is also set True in
1282 -- the corresponding N_Aspect_Specification node.
1284 -- Is_Controlling_Actual (Flag16-Sem)
1285 -- This flag is set on in an expression that is a controlling argument in
1286 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1287 -- details of its use.
1289 -- Is_Disabled (Flag15-Sem)
1290 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1291 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1292 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1293 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1294 -- If this flag is set, the aspect or policy is not analyzed for semantic
1295 -- correctness, so any expressions etc will not be marked as analyzed.
1297 -- Is_Dynamic_Coextension (Flag18-Sem)
1298 -- Present in allocator nodes, to indicate that this is an allocator
1299 -- for an access discriminant of a dynamically allocated object. The
1300 -- coextension must be deallocated and finalized at the same time as
1301 -- the enclosing object.
1303 -- Is_Entry_Barrier_Function (Flag8-Sem)
1304 -- This flag is set in an N_Subprogram_Body node which is the expansion
1305 -- of an entry barrier from a protected entry body. It is used for the
1306 -- circuitry checking for incorrect use of Current_Task.
1308 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1309 -- This flag is set in an N_Function_Call node to indicate that the extra
1310 -- actuals to support a build-in-place style of call have been added to
1311 -- the call.
1313 -- Is_Finalization_Wrapper (Flag9-Sem);
1314 -- This flag is present in N_Block_Statement nodes. It is set when the
1315 -- block acts as a wrapper of a handled construct which has controlled
1316 -- objects. The wrapper prevents interference between exception handlers
1317 -- and At_End handlers.
1319 -- Is_Ignored (Flag9-Sem)
1320 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1321 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1322 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1323 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1324 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1325 -- gives a policy for the aspect or pragma, then there are two cases. For
1326 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1327 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1328 -- ignored because of the absence of a -gnata switch. For any other
1329 -- aspects or pragmas, the flag is off. If this flag is set, the
1330 -- aspect/pragma is fully analyzed and checked for other syntactic
1331 -- and semantic errors, but it does not have any semantic effect.
1333 -- Is_In_Discriminant_Check (Flag11-Sem)
1334 -- This flag is present in a selected component, and is used to indicate
1335 -- that the reference occurs within a discriminant check. The
1336 -- significance is that optimizations based on assuming that the
1337 -- discriminant check has a correct value cannot be performed in this
1338 -- case (or the discriminant check may be optimized away!)
1340 -- Is_Machine_Number (Flag11-Sem)
1341 -- This flag is set in an N_Real_Literal node to indicate that the value
1342 -- is a machine number. This avoids some unnecessary cases of converting
1343 -- real literals to machine numbers.
1345 -- Is_Null_Loop (Flag16-Sem)
1346 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1347 -- can be determined to be null at compile time. This is used to remove
1348 -- the loop entirely at expansion time.
1350 -- Is_Overloaded (Flag5-Sem)
1351 -- A flag present in all expression nodes. Used temporarily during
1352 -- overloading determination. The setting of this flag is not relevant
1353 -- once overloading analysis is complete.
1355 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1356 -- A flag present only in N_Op_Expon nodes. It is set when the
1357 -- exponentiation is of the form 2 ** N, where the type of N is an
1358 -- unsigned integral subtype whose size does not exceed the size of
1359 -- Standard_Integer (i.e. a type that can be safely converted to
1360 -- Natural), and the exponentiation appears as the right operand of an
1361 -- integer multiplication or an integer division where the dividend is
1362 -- unsigned. It is also required that overflow checking is off for both
1363 -- the exponentiation and the multiply/divide node. If this set of
1364 -- conditions holds, and the flag is set, then the division or
1365 -- multiplication can be (and is) converted to a shift.
1367 -- Is_Prefixed_Call (Flag17-Sem)
1368 -- This flag is set in a selected component within a generic unit, if
1369 -- it resolves to a prefixed call to a primitive operation. The flag
1370 -- is used to prevent accidental overloadings in an instance, when a
1371 -- primitive operation and a private record component may be homographs.
1373 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1374 -- A flag set in a Subprogram_Body block to indicate that it is the
1375 -- implementation of a protected subprogram. Such a body needs cleanup
1376 -- handler to make sure that the associated protected object is unlocked
1377 -- when the subprogram completes.
1379 -- Is_Static_Coextension (Flag14-Sem)
1380 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1381 -- of an object allocated on the stack rather than the heap.
1383 -- Is_Static_Expression (Flag6-Sem)
1384 -- Indicates that an expression is a static expression (RM 4.9). See spec
1385 -- of package Sem_Eval for full details on the use of this flag.
1387 -- Is_Subprogram_Descriptor (Flag16-Sem)
1388 -- Present in N_Object_Declaration, and set only for the object
1389 -- declaration generated for a subprogram descriptor in fast exception
1390 -- mode. See Exp_Ch11 for details of use.
1392 -- Is_Task_Allocation_Block (Flag6-Sem)
1393 -- A flag set in a Block_Statement node to indicate that it is the
1394 -- expansion of a task allocator, or the allocator of an object
1395 -- containing tasks. Such a block requires a cleanup handler to call
1396 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1397 -- allocated but not activated when the allocator completes abnormally.
1399 -- Is_Task_Master (Flag5-Sem)
1400 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1401 -- indicate that the construct is a task master (i.e. has declared tasks
1402 -- or declares an access to a task type).
1404 -- Itype (Node1-Sem)
1405 -- Used in N_Itype_Reference node to reference an itype for which it is
1406 -- important to ensure that it is defined. See description of this node
1407 -- for further details.
1409 -- Kill_Range_Check (Flag11-Sem)
1410 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1411 -- result should not be subjected to range checks. This is used for the
1412 -- implementation of Normalize_Scalars.
1414 -- Label_Construct (Node2-Sem)
1415 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1416 -- N_Block_Statement or N_Loop_Statement node to which the label
1417 -- declaration applies. This attribute is used both in the compiler and
1418 -- in the implementation of ASIS queries. The field is left empty for the
1419 -- special labels generated as part of expanding raise statements with a
1420 -- local exception handler.
1422 -- Library_Unit (Node4-Sem)
1423 -- In a stub node, Library_Unit points to the compilation unit node of
1424 -- the corresponding subunit.
1426 -- In a with clause node, Library_Unit points to the spec of the with'ed
1427 -- unit.
1429 -- In a compilation unit node, the usage depends on the unit type:
1431 -- For a library unit body, Library_Unit points to the compilation unit
1432 -- node of the corresponding spec, unless it's a subprogram body with
1433 -- Acts_As_Spec set, in which case it points to itself.
1435 -- For a spec, Library_Unit points to the compilation unit node of the
1436 -- corresponding body, if present. The body will be present if the spec
1437 -- is or contains generics that we needed to instantiate. Similarly, the
1438 -- body will be present if we needed it for inlining purposes. Thus, if
1439 -- we have a spec/body pair, both of which are present, they point to
1440 -- each other via Library_Unit.
1442 -- For a subunit, Library_Unit points to the compilation unit node of
1443 -- the parent body.
1445 -- Note that this field is not used to hold the parent pointer for child
1446 -- unit (which might in any case need to use it for some other purpose as
1447 -- described above). Instead for a child unit, implicit with's are
1448 -- generated for all parents.
1450 -- Local_Raise_Statements (Elist1)
1451 -- This field is present in exception handler nodes. It is set to
1452 -- No_Elist in the normal case. If there is at least one raise statement
1453 -- which can potentially be handled as a local raise, then this field
1454 -- points to a list of raise nodes, which are calls to a routine to raise
1455 -- an exception. These are raise nodes which can be optimized into gotos
1456 -- if the handler turns out to meet the conditions which permit this
1457 -- transformation. Note that this does NOT include instances of the
1458 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1459 -- handled by the back end (using the N_Push/N_Pop mechanism).
1461 -- Loop_Actions (List2-Sem)
1462 -- A list present in Component_Association nodes in array aggregates.
1463 -- Used to collect actions that must be executed within the loop because
1464 -- they may need to be evaluated anew each time through.
1466 -- Limited_View_Installed (Flag18-Sem)
1467 -- Present in With_Clauses and in package specifications. If set on
1468 -- with_clause, it indicates that this clause has created the current
1469 -- limited view of the designated package. On a package specification, it
1470 -- indicates that the limited view has already been created because the
1471 -- package is mentioned in a limited_with_clause in the closure of the
1472 -- unit being compiled.
1474 -- Local_Raise_Not_OK (Flag7-Sem)
1475 -- Present in N_Exception_Handler nodes. Set if the handler contains
1476 -- a construct (reraise statement, or call to subprogram in package
1477 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1478 -- for a local raise (one that could otherwise be converted to a goto).
1480 -- Must_Be_Byte_Aligned (Flag14-Sem)
1481 -- This flag is present in N_Attribute_Reference nodes. It can be set
1482 -- only for the Address and Unrestricted_Access attributes. If set it
1483 -- means that the object for which the address/access is given must be on
1484 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1485 -- of the object is to be made before taking the address (this copy is in
1486 -- the current scope on the stack frame). This is used for certain cases
1487 -- of code generated by the expander that passes parameters by address.
1489 -- The reason the copy is not made by the front end is that the back end
1490 -- has more information about type layout and may be able to (but is not
1491 -- guaranteed to) prevent making unnecessary copies.
1493 -- Must_Not_Freeze (Flag8-Sem)
1494 -- A flag present in all expression nodes. Normally expressions cause
1495 -- freezing as described in the RM. If this flag is set, then this is
1496 -- inhibited. This is used by the analyzer and expander to label nodes
1497 -- that are created by semantic analysis or expansion and which must not
1498 -- cause freezing even though they normally would. This flag is also
1499 -- present in an N_Subtype_Indication node, since we also use these in
1500 -- calls to Freeze_Expression.
1502 -- Next_Entity (Node2-Sem)
1503 -- Present in defining identifiers, defining character literals and
1504 -- defining operator symbols (i.e. in all entities). The entities of a
1505 -- scope are chained, and this field is used as the forward pointer for
1506 -- this list. See Einfo for further details.
1508 -- Next_Exit_Statement (Node3-Sem)
1509 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1510 -- chained (in reverse order of appearance) from the First_Exit_Statement
1511 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1512 -- the next entry on this chain (Empty = end of list).
1514 -- Next_Implicit_With (Node3-Sem)
1515 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1516 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1517 -- to prevent multiple with_clauses for the same unit in a given context.
1518 -- A postorder traversal of the tree whose nodes are units and whose
1519 -- links are with_clauses defines the order in which CodePeer must
1520 -- examine a compiled unit and its full context. This ordering ensures
1521 -- that any subprogram call is examined after the subprogram declaration
1522 -- has been seen.
1524 -- Next_Named_Actual (Node4-Sem)
1525 -- Present in parameter association nodes. Set during semantic analysis
1526 -- to point to the next named parameter, where parameters are ordered by
1527 -- declaration order (as opposed to the actual order in the call, which
1528 -- may be different due to named associations). Not that this field
1529 -- points to the explicit actual parameter itself, not to the
1530 -- N_Parameter_Association node (its parent).
1532 -- Next_Pragma (Node1-Sem)
1533 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1534 -- nodes. Currently used for two purposes:
1536 -- Create a list of linked Check_Policy pragmas. The head of this list
1537 -- is stored in Opt.Check_Policy_List (which has further details).
1539 -- Used by processing for Pre/Postcondition pragmas to store a list of
1540 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1541 -- details).
1543 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
1544 -- the apply to the same construct. These are visible/private mode for
1545 -- a package spec and declarative/statement mode for package body.
1547 -- Next_Rep_Item (Node5-Sem)
1548 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1549 -- clauses, record rep clauses, aspect specification nodes. Used to link
1550 -- representation items that apply to an entity. See full description of
1551 -- First_Rep_Item field in Einfo for further details.
1553 -- Next_Use_Clause (Node3-Sem)
1554 -- While use clauses are active during semantic processing, they are
1555 -- chained from the scope stack entry, using Next_Use_Clause as a link
1556 -- pointer, with Empty marking the end of the list. The head pointer is
1557 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1558 -- processing (i.e. when Gigi sees the tree, the contents of this field
1559 -- is undefined and should not be read).
1561 -- No_Ctrl_Actions (Flag7-Sem)
1562 -- Present in N_Assignment_Statement to indicate that no finalize nor
1563 -- adjust should take place on this assignment even though the rhs is
1564 -- controlled. This is used in init procs and aggregate expansions where
1565 -- the generated assignments are more initialisations than real
1566 -- assignments.
1568 -- No_Elaboration_Check (Flag14-Sem)
1569 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1570 -- that no elaboration check is needed on the call, because it appears in
1571 -- the context of a local Suppress pragma. This is used on calls within
1572 -- task bodies, where the actual elaboration checks are applied after
1573 -- analysis, when the local scope stack is not present.
1575 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1576 -- Present in N_With_Clause nodes. Set if the with clause is on the
1577 -- package or subprogram spec where the main unit is the corresponding
1578 -- body, and no entities of the with'ed unit are referenced by the spec
1579 -- (an entity may still be referenced in the body, so this flag is used
1580 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1581 -- full details)
1583 -- No_Initialization (Flag13-Sem)
1584 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1585 -- object must not be initialized (by Initialize or call to an init
1586 -- proc). This is needed for controlled aggregates. When the Object
1587 -- declaration has an expression, this flag means that this expression
1588 -- should not be taken into account (needed for in place initialization
1589 -- with aggregates, and for object with an address clause, which are
1590 -- initialized with an assignment at freeze time).
1592 -- No_Minimize_Eliminate (Flag17-Sem)
1593 -- This flag is present in membership operator nodes (N_In/N_Not_In).
1594 -- It is used to indicate that processing for extended overflow checking
1595 -- modes is not required (this is used to prevent infinite recursion).
1597 -- No_Truncation (Flag17-Sem)
1598 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1599 -- only if the RM_Size of the source is greater than the RM_Size of the
1600 -- target for scalar operands. Normally in such a case we truncate some
1601 -- higher order bits of the source, and then sign/zero extend the result
1602 -- to form the output value. But if this flag is set, then we do not do
1603 -- any truncation, so for example, if an 8 bit input is converted to 5
1604 -- bit result which is in fact stored in 8 bits, then the high order
1605 -- three bits of the target result will be copied from the source. This
1606 -- is used for properly setting out of range values for use by pragmas
1607 -- Initialize_Scalars and Normalize_Scalars.
1609 -- Original_Discriminant (Node2-Sem)
1610 -- Present in identifiers. Used in references to discriminants that
1611 -- appear in generic units. Because the names of the discriminants may be
1612 -- different in an instance, we use this field to recover the position of
1613 -- the discriminant in the original type, and replace it with the
1614 -- discriminant at the same position in the instantiated type.
1616 -- Original_Entity (Node2-Sem)
1617 -- Present in numeric literals. Used to denote the named number that has
1618 -- been constant-folded into the given literal. If literal is from
1619 -- source, or the result of some other constant-folding operation, then
1620 -- Original_Entity is empty. This field is needed to handle properly
1621 -- named numbers in generic units, where the Associated_Node field
1622 -- interferes with the Entity field, making it impossible to preserve the
1623 -- original entity at the point of instantiation (ASIS problem).
1625 -- Others_Discrete_Choices (List1-Sem)
1626 -- When a case statement or variant is analyzed, the semantic checks
1627 -- determine the actual list of choices that correspond to an others
1628 -- choice. This list is materialized for later use by the expander and
1629 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1630 -- this materialized list of choices, which is in standard format for a
1631 -- list of discrete choices, except that of course it cannot contain an
1632 -- N_Others_Choice entry.
1634 -- Parameter_List_Truncated (Flag17-Sem)
1635 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1636 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1637 -- a result of a First_Optional_Parameter specification in an
1638 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1639 -- The truncation is done by the expander by removing trailing parameters
1640 -- from the argument list, in accordance with the set of rules allowing
1641 -- such parameter removal. In particular, parameters can be removed
1642 -- working from the end of the parameter list backwards up to and
1643 -- including the entry designated by First_Optional_Parameter in the
1644 -- Import pragma. Parameters can be removed if they are implicit and the
1645 -- default value is a known-at-compile-time value, including the use of
1646 -- the Null_Parameter attribute, or if explicit parameter values are
1647 -- present that match the corresponding defaults.
1649 -- Parent_Spec (Node4-Sem)
1650 -- For a library unit that is a child unit spec (package or subprogram
1651 -- declaration, generic declaration or instantiation, or library level
1652 -- rename, this field points to the compilation unit node for the parent
1653 -- package specification. This field is Empty for library bodies (the
1654 -- parent spec in this case can be found from the corresponding spec).
1656 -- Premature_Use (Node5-Sem)
1657 -- Present in N_Incomplete_Type_Declaration node. Used for improved
1658 -- error diagnostics: if there is a premature usage of an incomplete
1659 -- type, a subsequently generated error message indicates the position
1660 -- of its full declaration.
1662 -- Present_Expr (Uint3-Sem)
1663 -- Present in an N_Variant node. This has a meaningful value only after
1664 -- Gigi has back annotated the tree with representation information. At
1665 -- this point, it contains a reference to a gcc expression that depends
1666 -- on the values of one or more discriminants. Give a set of discriminant
1667 -- values, this expression evaluates to False (zero) if variant is not
1668 -- present, and True (non-zero) if it is present. See unit Repinfo for
1669 -- further details on gigi back annotation. This field is used during
1670 -- ASIS processing (data decomposition annex) to determine if a field is
1671 -- present or not.
1673 -- Print_In_Hex (Flag13-Sem)
1674 -- Set on an N_Integer_Literal node to indicate that the value should be
1675 -- printed in hexadecimal in the sprint listing. Has no effect on
1676 -- legality or semantics of program, only on the displayed output. This
1677 -- is used to clarify output from the packed array cases.
1679 -- Procedure_To_Call (Node2-Sem)
1680 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1681 -- and N_Extended_Return_Statement nodes. References the entity for the
1682 -- declaration of the procedure to be called to accomplish the required
1683 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1684 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1685 -- allocating the return value), and for the Deallocate procedure in the
1686 -- case of N_Free_Statement.
1688 -- Raises_Constraint_Error (Flag7-Sem)
1689 -- Set on an expression whose evaluation will definitely fail constraint
1690 -- error check. In the case of static expressions, this flag must be set
1691 -- accurately (and if it is set, the expression is typically illegal
1692 -- unless it appears as a non-elaborated branch of a short-circuit form).
1693 -- For a non-static expression, this flag may be set whenever an
1694 -- expression (e.g. an aggregate) is known to raise constraint error. If
1695 -- set, the expression definitely will raise CE if elaborated at runtime.
1696 -- If not set, the expression may or may not raise CE. In other words, on
1697 -- static expressions, the flag is set accurately, on non-static
1698 -- expressions it is set conservatively.
1700 -- Redundant_Use (Flag13-Sem)
1701 -- Present in nodes that can appear as an operand in a use clause or use
1702 -- type clause (identifiers, expanded names, attribute references). Set
1703 -- to indicate that a use is redundant (and therefore need not be undone
1704 -- on scope exit).
1706 -- Renaming_Exception (Node2-Sem)
1707 -- Present in N_Exception_Declaration node. Used to point back to the
1708 -- exception renaming for an exception declared within a subprogram.
1709 -- What happens is that an exception declared in a subprogram is moved
1710 -- to the library level with a unique name, and the original exception
1711 -- becomes a renaming. This link from the library level exception to the
1712 -- renaming declaration allows registering of the proper exception name.
1714 -- Return_Statement_Entity (Node5-Sem)
1715 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1716 -- Points to an E_Return_Statement representing the return statement.
1718 -- Return_Object_Declarations (List3)
1719 -- Present in N_Extended_Return_Statement. Points to a list initially
1720 -- containing a single N_Object_Declaration representing the return
1721 -- object. We use a list (instead of just a pointer to the object decl)
1722 -- because Analyze wants to insert extra actions on this list.
1724 -- Rounded_Result (Flag18-Sem)
1725 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1726 -- Used in the fixed-point cases to indicate that the result must be
1727 -- rounded as a result of the use of the 'Round attribute. Also used for
1728 -- integer N_Op_Divide nodes to indicate that the result should be
1729 -- rounded to the nearest integer (breaking ties away from zero), rather
1730 -- than truncated towards zero as usual. These rounded integer operations
1731 -- are the result of expansion of rounded fixed-point divide, conversion
1732 -- and multiplication operations.
1734 -- SCIL_Entity (Node4-Sem)
1735 -- Present in SCIL nodes. Used to reference the tagged type associated
1736 -- with the SCIL node.
1738 -- SCIL_Controlling_Tag (Node5-Sem)
1739 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the
1740 -- controlling tag of a dispatching call.
1742 -- SCIL_Tag_Value (Node5-Sem)
1743 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1744 -- value that is being tested.
1746 -- SCIL_Target_Prim (Node2-Sem)
1747 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the tagged
1748 -- type primitive associated with the SCIL node.
1750 -- Scope (Node3-Sem)
1751 -- Present in defining identifiers, defining character literals and
1752 -- defining operator symbols (i.e. in all entities). The entities of a
1753 -- scope all use this field to reference the corresponding scope entity.
1754 -- See Einfo for further details.
1756 -- Shift_Count_OK (Flag4-Sem)
1757 -- A flag present in shift nodes to indicate that the shift count is
1758 -- known to be in range, i.e. is in the range from zero to word length
1759 -- minus one. If this flag is not set, then the shift count may be
1760 -- outside this range, i.e. larger than the word length, and the code
1761 -- must ensure that such shift counts give the appropriate result.
1763 -- Source_Type (Node1-Sem)
1764 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1765 -- source type entity for the unchecked conversion instantiation
1766 -- which gigi must do size validation for.
1768 -- Split_PPC (Flag17)
1769 -- When a Pre or Post aspect specification is processed, it is broken
1770 -- into AND THEN sections. The left most section has Split_PPC set to
1771 -- False, indicating that it is the original specification (e.g. for
1772 -- posting errors). For other sections, Split_PPC is set to True.
1773 -- This flag is set in both the N_Aspect_Specification node itself,
1774 -- and in the pragma which is generated from this node.
1776 -- Storage_Pool (Node1-Sem)
1777 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1778 -- and N_Extended_Return_Statement nodes. References the entity for the
1779 -- storage pool to be used for the allocate or free call or for the
1780 -- allocation of the returned value from function. Empty indicates that
1781 -- the global default pool is to be used. Note that in the case
1782 -- of a return statement, this field is set only if the function returns
1783 -- value of a type whose size is not known at compile time on the
1784 -- secondary stack.
1786 -- Suppress_Assignment_Checks (Flag18-Sem)
1787 -- Used in generated N_Assignment_Statement nodes to suppress predicate
1788 -- and range checks in cases where the generated code knows that the
1789 -- value being assigned is in range and satisfies any predicate. Also
1790 -- can be set in N_Object_Declaration nodes, to similarly suppress any
1791 -- checks on the initializing value.
1793 -- Suppress_Loop_Warnings (Flag17-Sem)
1794 -- Used in N_Loop_Statement node to indicate that warnings within the
1795 -- body of the loop should be suppressed. This is set when the range
1796 -- of a FOR loop is known to be null, or is probably null (loop would
1797 -- only execute if invalid values are present).
1799 -- Target_Type (Node2-Sem)
1800 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1801 -- type entity for the unchecked conversion instantiation which gigi must
1802 -- do size validation for.
1804 -- Then_Actions (List3-Sem)
1805 -- This field is present in if expression nodes. During code expansion
1806 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
1807 -- at an appropriate place in the tree to get elaborated at the right
1808 -- time. For if expressions, we have to be sure that the actions for
1809 -- for the Then branch are only elaborated if the condition is True.
1810 -- The Then_Actions field is used as a temporary parking place for
1811 -- these actions. The final tree is always rewritten to eliminate the
1812 -- need for this field, so in the tree passed to Gigi, this field is
1813 -- always set to No_List.
1815 -- Treat_Fixed_As_Integer (Flag14-Sem)
1816 -- This flag appears in operator nodes for divide, multiply, mod and rem
1817 -- on fixed-point operands. It indicates that the operands are to be
1818 -- treated as integer values, ignoring small values. This flag is only
1819 -- set as a result of expansion of fixed-point operations. Typically a
1820 -- fixed-point multiplication in the source generates subsidiary
1821 -- multiplication and division operations that work with the underlying
1822 -- integer values and have this flag set. Note that this flag is not
1823 -- needed on other arithmetic operations (add, neg, subtract etc.) since
1824 -- in these cases it is always the case that fixed is treated as integer.
1825 -- The Etype field MUST be set if this flag is set. The analyzer knows to
1826 -- leave such nodes alone, and whoever makes them must set the correct
1827 -- Etype value.
1829 -- TSS_Elist (Elist3-Sem)
1830 -- Present in N_Freeze_Entity nodes. Holds an element list containing
1831 -- entries for each TSS (type support subprogram) associated with the
1832 -- frozen type. The elements of the list are the entities for the
1833 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
1834 -- if there are no type support subprograms for the type or if the freeze
1835 -- node is not for a type.
1837 -- Unreferenced_In_Spec (Flag7-Sem)
1838 -- Present in N_With_Clause nodes. Set if the with clause is on the
1839 -- package or subprogram spec where the main unit is the corresponding
1840 -- body, and is not referenced by the spec (it may still be referenced by
1841 -- the body, so this flag is used to generate the proper message (see
1842 -- Sem_Util.Check_Unused_Withs for details)
1844 -- Used_Operations (Elist5-Sem)
1845 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
1846 -- are made potentially use-visible by the clause. Simplifies processing
1847 -- on exit from the scope of the use_type_clause, in particular in the
1848 -- case of Use_All_Type, when those operations several scopes.
1850 -- Was_Originally_Stub (Flag13-Sem)
1851 -- This flag is set in the node for a proper body that replaces stub.
1852 -- During the analysis procedure, stubs in some situations get rewritten
1853 -- by the corresponding bodies, and we set this flag to remember that
1854 -- this happened. Note that it is not good enough to rely on the use of
1855 -- Original_Node here because of the case of nested instantiations where
1856 -- the substituted node can be copied.
1858 -- Withed_Body (Node1-Sem)
1859 -- Present in N_With_Clause nodes. Set if the unit in whose context
1860 -- the with_clause appears instantiates a generic contained in the
1861 -- library unit of the with_clause and as a result loads its body.
1862 -- Used for a more precise unit traversal for CodePeer.
1864 --------------------------------------------------
1865 -- Note on Use of End_Label and End_Span Fields --
1866 --------------------------------------------------
1868 -- Several constructs have end lines:
1870 -- Loop Statement end loop [loop_IDENTIFIER];
1871 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
1872 -- Task Definition end [task_IDENTIFIER]
1873 -- Protected Definition end [protected_IDENTIFIER]
1874 -- Protected Body end [protected_IDENTIFIER]
1876 -- Block Statement end [block_IDENTIFIER];
1877 -- Subprogram Body end [DESIGNATOR];
1878 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
1879 -- Task Body end [task_IDENTIFIER];
1880 -- Accept Statement end [entry_IDENTIFIER]];
1881 -- Entry Body end [entry_IDENTIFIER];
1883 -- If Statement end if;
1884 -- Case Statement end case;
1886 -- Record Definition end record;
1887 -- Enumeration Definition );
1889 -- The End_Label and End_Span fields are used to mark the locations of
1890 -- these lines, and also keep track of the label in the case where a label
1891 -- is present.
1893 -- For the first group above, the End_Label field of the corresponding node
1894 -- is used to point to the label identifier. In the case where there is no
1895 -- label in the source, the parser supplies a dummy identifier (with
1896 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
1897 -- marks the location of the token following the END token.
1899 -- For the second group, the use of End_Label is similar, but the End_Label
1900 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
1901 -- simply because in some cases there is no room in the parent node.
1903 -- For the third group, there is never any label, and instead of using
1904 -- End_Label, we use the End_Span field which gives the location of the
1905 -- token following END, relative to the starting Sloc of the construct,
1906 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1907 -- following the End_Label.
1909 -- The record definition case is handled specially, we treat it as though
1910 -- it required an optional label which is never present, and so the parser
1911 -- always builds a dummy identifier with Comes From Source set False. The
1912 -- reason we do this, rather than using End_Span in this case, is that we
1913 -- want to generate a cross-ref entry for the end of a record, since it
1914 -- represents a scope for name declaration purposes.
1916 -- The enumeration definition case is handled in an exactly similar manner,
1917 -- building a dummy identifier to get a cross-reference.
1919 -- Note: the reason we store the difference as a Uint, instead of storing
1920 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
1921 -- distinguished from other types of values, and we count on all general
1922 -- use fields being self describing. To make things easier for clients,
1923 -- note that we provide function End_Location, and procedure
1924 -- Set_End_Location to allow access to the logical value (which is the
1925 -- Source_Ptr value for the end token).
1927 ---------------------
1928 -- Syntactic Nodes --
1929 ---------------------
1931 ---------------------
1932 -- 2.3 Identifier --
1933 ---------------------
1935 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1936 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1938 -- An IDENTIFIER shall not be a reserved word
1940 -- In the Ada grammar identifiers are the bottom level tokens which have
1941 -- very few semantics. Actual program identifiers are direct names. If
1942 -- we were being 100% honest with the grammar, then we would have a node
1943 -- called N_Direct_Name which would point to an identifier. However,
1944 -- that's too many extra nodes, so we just use the N_Identifier node
1945 -- directly as a direct name, and it contains the expression fields and
1946 -- Entity field that correspond to its use as a direct name. In those
1947 -- few cases where identifiers appear in contexts where they are not
1948 -- direct names (pragmas, pragma argument associations, attribute
1949 -- references and attribute definition clauses), the Chars field of the
1950 -- node contains the Name_Id for the identifier name.
1952 -- Note: in GNAT, a reserved word can be treated as an identifier in two
1953 -- cases. First, an incorrect use of a reserved word as an identifier is
1954 -- diagnosed and then treated as a normal identifier. Second, an
1955 -- attribute designator of the form of a reserved word (access, delta,
1956 -- digits, range) is treated as an identifier.
1958 -- Note: The set of letters that is permitted in an identifier depends
1959 -- on the character set in use. See package Csets for full details.
1961 -- N_Identifier
1962 -- Sloc points to identifier
1963 -- Chars (Name1) contains the Name_Id for the identifier
1964 -- Entity (Node4-Sem)
1965 -- Associated_Node (Node4-Sem)
1966 -- Original_Discriminant (Node2-Sem)
1967 -- Redundant_Use (Flag13-Sem)
1968 -- Atomic_Sync_Required (Flag14-Sem)
1969 -- Has_Private_View (Flag11-Sem) (set in generic units)
1970 -- plus fields for expression
1972 --------------------------
1973 -- 2.4 Numeric Literal --
1974 --------------------------
1976 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1978 ----------------------------
1979 -- 2.4.1 Decimal Literal --
1980 ----------------------------
1982 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1984 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1986 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1988 -- Decimal literals appear in the tree as either integer literal nodes
1989 -- or real literal nodes, depending on whether a period is present.
1991 -- Note: literal nodes appear as a result of direct use of literals
1992 -- in the source program, and also as the result of evaluating
1993 -- expressions at compile time. In the latter case, it is possible
1994 -- to construct real literals that have no syntactic representation
1995 -- using the standard literal format. Such literals are listed by
1996 -- Sprint using the notation [numerator / denominator].
1998 -- Note: the value of an integer literal node created by the front end
1999 -- is never outside the range of values of the base type. However, it
2000 -- can be the case that the created value is outside the range of the
2001 -- particular subtype. This happens in the case of integer overflows
2002 -- with checks suppressed.
2004 -- N_Integer_Literal
2005 -- Sloc points to literal
2006 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2007 -- has been constant-folded into its literal value.
2008 -- Intval (Uint3) contains integer value of literal
2009 -- plus fields for expression
2010 -- Print_In_Hex (Flag13-Sem)
2012 -- N_Real_Literal
2013 -- Sloc points to literal
2014 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2015 -- has been constant-folded into its literal value.
2016 -- Realval (Ureal3) contains real value of literal
2017 -- Corresponding_Integer_Value (Uint4-Sem)
2018 -- Is_Machine_Number (Flag11-Sem)
2019 -- plus fields for expression
2021 --------------------------
2022 -- 2.4.2 Based Literal --
2023 --------------------------
2025 -- BASED_LITERAL ::=
2026 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2028 -- BASE ::= NUMERAL
2030 -- BASED_NUMERAL ::=
2031 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2033 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2035 -- Based literals appear in the tree as either integer literal nodes
2036 -- or real literal nodes, depending on whether a period is present.
2038 ----------------------------
2039 -- 2.5 Character Literal --
2040 ----------------------------
2042 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2044 -- N_Character_Literal
2045 -- Sloc points to literal
2046 -- Chars (Name1) contains the Name_Id for the identifier
2047 -- Char_Literal_Value (Uint2) contains the literal value
2048 -- Entity (Node4-Sem)
2049 -- Associated_Node (Node4-Sem)
2050 -- Has_Private_View (Flag11-Sem) set in generic units.
2051 -- plus fields for expression
2053 -- Note: the Entity field will be missing (set to Empty) for character
2054 -- literals whose type is Standard.Wide_Character or Standard.Character
2055 -- or a type derived from one of these two. In this case the character
2056 -- literal stands for its own coding. The reason we take this irregular
2057 -- short cut is to avoid the need to build lots of junk defining
2058 -- character literal nodes.
2060 -------------------------
2061 -- 2.6 String Literal --
2062 -------------------------
2064 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2066 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2067 -- single GRAPHIC_CHARACTER other than a quotation mark.
2069 -- Is_Folded_In_Parser is True if the parser created this literal by
2070 -- folding a sequence of "&" operators. For example, if the source code
2071 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2072 -- is set. This flag is needed because the parser doesn't know about
2073 -- visibility, so the folded result might be wrong, and semantic
2074 -- analysis needs to check for that.
2076 -- N_String_Literal
2077 -- Sloc points to literal
2078 -- Strval (Str3) contains Id of string value
2079 -- Has_Wide_Character (Flag11-Sem)
2080 -- Has_Wide_Wide_Character (Flag13-Sem)
2081 -- Is_Folded_In_Parser (Flag4)
2082 -- plus fields for expression
2084 ------------------
2085 -- 2.7 Comment --
2086 ------------------
2088 -- A COMMENT starts with two adjacent hyphens and extends up to the
2089 -- end of the line. A COMMENT may appear on any line of a program.
2091 -- Comments are skipped by the scanner and do not appear in the tree.
2092 -- It is possible to reconstruct the position of comments with respect
2093 -- to the elements of the tree by using the source position (Sloc)
2094 -- pointers that appear in every tree node.
2096 -----------------
2097 -- 2.8 Pragma --
2098 -----------------
2100 -- PRAGMA ::= pragma IDENTIFIER
2101 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2103 -- Note that a pragma may appear in the tree anywhere a declaration
2104 -- or a statement may appear, as well as in some other situations
2105 -- which are explicitly documented.
2107 -- N_Pragma
2108 -- Sloc points to PRAGMA
2109 -- Next_Pragma (Node1-Sem)
2110 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2111 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2112 -- Pragma_Identifier (Node4)
2113 -- Next_Rep_Item (Node5-Sem)
2114 -- Class_Present (Flag6) set if from Aspect with 'Class
2115 -- From_Aspect_Specification (Flag13-Sem)
2116 -- Is_Delayed_Aspect (Flag14-Sem)
2117 -- Is_Disabled (Flag15-Sem)
2118 -- Is_Ignored (Flag9-Sem)
2119 -- Import_Interface_Present (Flag16-Sem)
2120 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2122 -- Note: we should have a section on what pragmas are passed on to
2123 -- the back end to be processed. This section should note that pragma
2124 -- Psect_Object is always converted to Common_Object, but there are
2125 -- undoubtedly many other similar notes required ???
2127 -- Note: a utility function Pragma_Name may be applied to pragma nodes
2128 -- to conveniently obtain the Chars field of the Pragma_Identifier.
2130 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2131 -- aspect name, as does the Pragma_Identifier. In this case if the
2132 -- pragma has a local name argument (such as pragma Inline), it is
2133 -- resolved to point to the specific entity affected by the pragma.
2135 --------------------------------------
2136 -- 2.8 Pragma Argument Association --
2137 --------------------------------------
2139 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2140 -- [pragma_argument_IDENTIFIER =>] NAME
2141 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2143 -- In Ada 2012, there are two more possibilities:
2145 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2146 -- [pragma_argument_ASPECT_MARK =>] NAME
2147 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2149 -- where the interesting allowed cases (which do not fit the syntax of
2150 -- the first alternative above) are
2152 -- ASPECT_MARK => Pre'Class |
2153 -- Post'Class |
2154 -- Type_Invariant'Class |
2155 -- Invariant'Class
2157 -- We allow this special usage in all Ada modes, but it would be a
2158 -- pain to allow these aspects to pervade the pragma syntax, and the
2159 -- representation of pragma nodes internally. So what we do is to
2160 -- replace these ASPECT_MARK forms with identifiers whose name is one
2161 -- of the special internal names _Pre, _Post or _Type_Invariant.
2163 -- We do a similar replacement of these Aspect_Mark forms in the
2164 -- Expression of a pragma argument association for the cases of
2165 -- the first arguments of any Check pragmas and Check_Policy pragmas
2167 -- N_Pragma_Argument_Association
2168 -- Sloc points to first token in association
2169 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2170 -- Expression (Node3)
2172 ------------------------
2173 -- 2.9 Reserved Word --
2174 ------------------------
2176 -- Reserved words are parsed by the scanner, and returned as the
2177 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2179 ----------------------------
2180 -- 3.1 Basic Declaration --
2181 ----------------------------
2183 -- BASIC_DECLARATION ::=
2184 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2185 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2186 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2187 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2188 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2189 -- | GENERIC_INSTANTIATION
2191 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2192 -- see further description in section on semantic nodes.
2194 -- Also, in the tree that is constructed, a pragma may appear
2195 -- anywhere that a declaration may appear.
2197 ------------------------------
2198 -- 3.1 Defining Identifier --
2199 ------------------------------
2201 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2203 -- A defining identifier is an entity, which has additional fields
2204 -- depending on the setting of the Ekind field. These additional
2205 -- fields are defined (and access subprograms declared) in package
2206 -- Einfo.
2208 -- Note: N_Defining_Identifier is an extended node whose fields are
2209 -- deliberate layed out to match the layout of fields in an ordinary
2210 -- N_Identifier node allowing for easy alteration of an identifier
2211 -- node into a defining identifier node. For details, see procedure
2212 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2214 -- N_Defining_Identifier
2215 -- Sloc points to identifier
2216 -- Chars (Name1) contains the Name_Id for the identifier
2217 -- Next_Entity (Node2-Sem)
2218 -- Scope (Node3-Sem)
2219 -- Etype (Node5-Sem)
2221 -----------------------------
2222 -- 3.2.1 Type Declaration --
2223 -----------------------------
2225 -- TYPE_DECLARATION ::=
2226 -- FULL_TYPE_DECLARATION
2227 -- | INCOMPLETE_TYPE_DECLARATION
2228 -- | PRIVATE_TYPE_DECLARATION
2229 -- | PRIVATE_EXTENSION_DECLARATION
2231 ----------------------------------
2232 -- 3.2.1 Full Type Declaration --
2233 ----------------------------------
2235 -- FULL_TYPE_DECLARATION ::=
2236 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2237 -- is TYPE_DEFINITION
2238 -- [ASPECT_SPECIFICATIONS];
2239 -- | TASK_TYPE_DECLARATION
2240 -- | PROTECTED_TYPE_DECLARATION
2242 -- The full type declaration node is used only for the first case. The
2243 -- second case (concurrent type declaration), is represented directly
2244 -- by a task type declaration or a protected type declaration.
2246 -- N_Full_Type_Declaration
2247 -- Sloc points to TYPE
2248 -- Defining_Identifier (Node1)
2249 -- Discriminant_Specifications (List4) (set to No_List if none)
2250 -- Type_Definition (Node3)
2251 -- Discr_Check_Funcs_Built (Flag11-Sem)
2253 ----------------------------
2254 -- 3.2.1 Type Definition --
2255 ----------------------------
2257 -- TYPE_DEFINITION ::=
2258 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2259 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2260 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2261 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2263 --------------------------------
2264 -- 3.2.2 Subtype Declaration --
2265 --------------------------------
2267 -- SUBTYPE_DECLARATION ::=
2268 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2269 -- [ASPECT_SPECIFICATIONS];
2271 -- The subtype indication field is set to Empty for subtypes
2272 -- declared in package Standard (Positive, Natural).
2274 -- N_Subtype_Declaration
2275 -- Sloc points to SUBTYPE
2276 -- Defining_Identifier (Node1)
2277 -- Null_Exclusion_Present (Flag11)
2278 -- Subtype_Indication (Node5)
2279 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2280 -- Exception_Junk (Flag8-Sem)
2281 -- Has_Dynamic_Range_Check (Flag12-Sem)
2283 -------------------------------
2284 -- 3.2.2 Subtype Indication --
2285 -------------------------------
2287 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2289 -- Note: if no constraint is present, the subtype indication appears
2290 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2291 -- node is used only if a constraint is present.
2293 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2294 -- with the null-exclusion part (see AI-231), we had to introduce a new
2295 -- attribute in all the parents of subtype_indication nodes to indicate
2296 -- if the null-exclusion is present.
2298 -- Note: the reason that this node has expression fields is that a
2299 -- subtype indication can appear as an operand of a membership test.
2301 -- N_Subtype_Indication
2302 -- Sloc points to first token of subtype mark
2303 -- Subtype_Mark (Node4)
2304 -- Constraint (Node3)
2305 -- Etype (Node5-Sem)
2306 -- Must_Not_Freeze (Flag8-Sem)
2308 -- Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2309 -- reason for this redundancy is so that in a list of array index types,
2310 -- the Etype can be uniformly accessed to determine the subscript type.
2311 -- This means that no Itype is constructed for the actual subtype that
2312 -- is created by the subtype indication. If such an Itype is required,
2313 -- it is constructed in the context in which the indication appears.
2315 -------------------------
2316 -- 3.2.2 Subtype Mark --
2317 -------------------------
2319 -- SUBTYPE_MARK ::= subtype_NAME
2321 -----------------------
2322 -- 3.2.2 Constraint --
2323 -----------------------
2325 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2327 ------------------------------
2328 -- 3.2.2 Scalar Constraint --
2329 ------------------------------
2331 -- SCALAR_CONSTRAINT ::=
2332 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2334 ---------------------------------
2335 -- 3.2.2 Composite Constraint --
2336 ---------------------------------
2338 -- COMPOSITE_CONSTRAINT ::=
2339 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2341 -------------------------------
2342 -- 3.3.1 Object Declaration --
2343 -------------------------------
2345 -- OBJECT_DECLARATION ::=
2346 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2347 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2348 -- [ASPECT_SPECIFICATIONS];
2349 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2350 -- ACCESS_DEFINITION [:= EXPRESSION]
2351 -- [ASPECT_SPECIFICATIONS];
2352 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2353 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2354 -- [ASPECT_SPECIFICATIONS];
2355 -- | SINGLE_TASK_DECLARATION
2356 -- | SINGLE_PROTECTED_DECLARATION
2358 -- Note: aliased is not permitted in Ada 83 mode
2360 -- The N_Object_Declaration node is only for the first two cases.
2361 -- Single task declaration is handled by P_Task (9.1)
2362 -- Single protected declaration is handled by P_protected (9.5)
2364 -- Although the syntax allows multiple identifiers in the list, the
2365 -- semantics is as though successive declarations were given with
2366 -- identical type definition and expression components. To simplify
2367 -- semantic processing, the parser represents a multiple declaration
2368 -- case as a sequence of single declarations, using the More_Ids and
2369 -- Prev_Ids flags to preserve the original source form as described
2370 -- in the section on "Handling of Defining Identifier Lists".
2372 -- The flag Has_Init_Expression is set if an initializing expression
2373 -- is present. Normally it is set if and only if Expression contains
2374 -- a non-empty value, but there is an exception to this. When the
2375 -- initializing expression is an aggregate which requires explicit
2376 -- assignments, the Expression field gets set to Empty, but this flag
2377 -- is still set, so we don't forget we had an initializing expression.
2379 -- Note: if a range check is required for the initialization
2380 -- expression then the Do_Range_Check flag is set in the Expression,
2381 -- with the check being done against the type given by the object
2382 -- definition, which is also the Etype of the defining identifier.
2384 -- Note: the contents of the Expression field must be ignored (i.e.
2385 -- treated as though it were Empty) if No_Initialization is set True.
2387 -- Note: the back end places some restrictions on the form of the
2388 -- Expression field. If the object being declared is Atomic, then
2389 -- the Expression may not have the form of an aggregate (since this
2390 -- might cause the back end to generate separate assignments). In this
2391 -- case the front end must generate an extra temporary and initialize
2392 -- this temporary as required (the temporary itself is not atomic).
2394 -- Note: there is not node kind for object definition. Instead, the
2395 -- corresponding field holds a subtype indication, an array type
2396 -- definition, or (Ada 2005, AI-406) an access definition.
2398 -- N_Object_Declaration
2399 -- Sloc points to first identifier
2400 -- Defining_Identifier (Node1)
2401 -- Aliased_Present (Flag4)
2402 -- Constant_Present (Flag17) set if CONSTANT appears
2403 -- Null_Exclusion_Present (Flag11)
2404 -- Object_Definition (Node4) subtype indic./array type def./access def.
2405 -- Expression (Node3) (set to Empty if not present)
2406 -- Handler_List_Entry (Node2-Sem)
2407 -- Corresponding_Generic_Association (Node5-Sem)
2408 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2409 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2410 -- No_Initialization (Flag13-Sem)
2411 -- Assignment_OK (Flag15-Sem)
2412 -- Exception_Junk (Flag8-Sem)
2413 -- Is_Subprogram_Descriptor (Flag16-Sem)
2414 -- Has_Init_Expression (Flag14)
2415 -- Suppress_Assignment_Checks (Flag18-Sem)
2417 -------------------------------------
2418 -- 3.3.1 Defining Identifier List --
2419 -------------------------------------
2421 -- DEFINING_IDENTIFIER_LIST ::=
2422 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2424 -------------------------------
2425 -- 3.3.2 Number Declaration --
2426 -------------------------------
2428 -- NUMBER_DECLARATION ::=
2429 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2431 -- Although the syntax allows multiple identifiers in the list, the
2432 -- semantics is as though successive declarations were given with
2433 -- identical expressions. To simplify semantic processing, the parser
2434 -- represents a multiple declaration case as a sequence of single
2435 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2436 -- the original source form as described in the section on "Handling
2437 -- of Defining Identifier Lists".
2439 -- N_Number_Declaration
2440 -- Sloc points to first identifier
2441 -- Defining_Identifier (Node1)
2442 -- Expression (Node3)
2443 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2444 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2446 ----------------------------------
2447 -- 3.4 Derived Type Definition --
2448 ----------------------------------
2450 -- DERIVED_TYPE_DEFINITION ::=
2451 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2452 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2454 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2455 -- in Ada 83 mode
2457 -- Note: a record extension part is required if ABSTRACT is present
2459 -- N_Derived_Type_Definition
2460 -- Sloc points to NEW
2461 -- Abstract_Present (Flag4)
2462 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2463 -- Subtype_Indication (Node5)
2464 -- Record_Extension_Part (Node3) (set to Empty if not present)
2465 -- Limited_Present (Flag17)
2466 -- Task_Present (Flag5) set in task interfaces
2467 -- Protected_Present (Flag6) set in protected interfaces
2468 -- Synchronized_Present (Flag7) set in interfaces
2469 -- Interface_List (List2) (set to No_List if none)
2470 -- Interface_Present (Flag16) set in abstract interfaces
2472 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2473 -- Interface_List, and Interface_Present are used for abstract
2474 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2476 ---------------------------
2477 -- 3.5 Range Constraint --
2478 ---------------------------
2480 -- RANGE_CONSTRAINT ::= range RANGE
2482 -- N_Range_Constraint
2483 -- Sloc points to RANGE
2484 -- Range_Expression (Node4)
2486 ----------------
2487 -- 3.5 Range --
2488 ----------------
2490 -- RANGE ::=
2491 -- RANGE_ATTRIBUTE_REFERENCE
2492 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2494 -- Note: the case of a range given as a range attribute reference
2495 -- appears directly in the tree as an attribute reference.
2497 -- Note: the field name for a reference to a range is Range_Expression
2498 -- rather than Range, because range is a reserved keyword in Ada!
2500 -- Note: the reason that this node has expression fields is that a
2501 -- range can appear as an operand of a membership test. The Etype
2502 -- field is the type of the range (we do NOT construct an implicit
2503 -- subtype to represent the range exactly).
2505 -- N_Range
2506 -- Sloc points to ..
2507 -- Low_Bound (Node1)
2508 -- High_Bound (Node2)
2509 -- Includes_Infinities (Flag11)
2510 -- plus fields for expression
2512 -- Note: if the range appears in a context, such as a subtype
2513 -- declaration, where range checks are required on one or both of
2514 -- the expression fields, then type conversion nodes are inserted
2515 -- to represent the required checks.
2517 ----------------------------------------
2518 -- 3.5.1 Enumeration Type Definition --
2519 ----------------------------------------
2521 -- ENUMERATION_TYPE_DEFINITION ::=
2522 -- (ENUMERATION_LITERAL_SPECIFICATION
2523 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2525 -- Note: the Literals field in the node described below is null for
2526 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2527 -- which special processing handles these types as special cases.
2529 -- N_Enumeration_Type_Definition
2530 -- Sloc points to left parenthesis
2531 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2532 -- End_Label (Node4) (set to Empty if internally generated record)
2534 ----------------------------------------------
2535 -- 3.5.1 Enumeration Literal Specification --
2536 ----------------------------------------------
2538 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2539 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2541 ---------------------------------------
2542 -- 3.5.1 Defining Character Literal --
2543 ---------------------------------------
2545 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2547 -- A defining character literal is an entity, which has additional
2548 -- fields depending on the setting of the Ekind field. These
2549 -- additional fields are defined (and access subprograms declared)
2550 -- in package Einfo.
2552 -- Note: N_Defining_Character_Literal is an extended node whose fields
2553 -- are deliberate layed out to match the layout of fields in an ordinary
2554 -- N_Character_Literal node allowing for easy alteration of a character
2555 -- literal node into a defining character literal node. For details, see
2556 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2558 -- N_Defining_Character_Literal
2559 -- Sloc points to literal
2560 -- Chars (Name1) contains the Name_Id for the identifier
2561 -- Next_Entity (Node2-Sem)
2562 -- Scope (Node3-Sem)
2563 -- Etype (Node5-Sem)
2565 ------------------------------------
2566 -- 3.5.4 Integer Type Definition --
2567 ------------------------------------
2569 -- Note: there is an error in this rule in the latest version of the
2570 -- grammar, so we have retained the old rule pending clarification.
2572 -- INTEGER_TYPE_DEFINITION ::=
2573 -- SIGNED_INTEGER_TYPE_DEFINITION
2574 -- | MODULAR_TYPE_DEFINITION
2576 -------------------------------------------
2577 -- 3.5.4 Signed Integer Type Definition --
2578 -------------------------------------------
2580 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2581 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2583 -- Note: the Low_Bound and High_Bound fields are set to Empty
2584 -- for integer types defined in package Standard.
2586 -- N_Signed_Integer_Type_Definition
2587 -- Sloc points to RANGE
2588 -- Low_Bound (Node1)
2589 -- High_Bound (Node2)
2591 ------------------------------------
2592 -- 3.5.4 Modular Type Definition --
2593 ------------------------------------
2595 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2597 -- N_Modular_Type_Definition
2598 -- Sloc points to MOD
2599 -- Expression (Node3)
2601 ---------------------------------
2602 -- 3.5.6 Real Type Definition --
2603 ---------------------------------
2605 -- REAL_TYPE_DEFINITION ::=
2606 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2608 --------------------------------------
2609 -- 3.5.7 Floating Point Definition --
2610 --------------------------------------
2612 -- FLOATING_POINT_DEFINITION ::=
2613 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2615 -- Note: The Digits_Expression and Real_Range_Specifications fields
2616 -- are set to Empty for floating-point types declared in Standard.
2618 -- N_Floating_Point_Definition
2619 -- Sloc points to DIGITS
2620 -- Digits_Expression (Node2)
2621 -- Real_Range_Specification (Node4) (set to Empty if not present)
2623 -------------------------------------
2624 -- 3.5.7 Real Range Specification --
2625 -------------------------------------
2627 -- REAL_RANGE_SPECIFICATION ::=
2628 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2630 -- N_Real_Range_Specification
2631 -- Sloc points to RANGE
2632 -- Low_Bound (Node1)
2633 -- High_Bound (Node2)
2635 -----------------------------------
2636 -- 3.5.9 Fixed Point Definition --
2637 -----------------------------------
2639 -- FIXED_POINT_DEFINITION ::=
2640 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2642 --------------------------------------------
2643 -- 3.5.9 Ordinary Fixed Point Definition --
2644 --------------------------------------------
2646 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2647 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2649 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2651 -- N_Ordinary_Fixed_Point_Definition
2652 -- Sloc points to DELTA
2653 -- Delta_Expression (Node3)
2654 -- Real_Range_Specification (Node4)
2656 -------------------------------------------
2657 -- 3.5.9 Decimal Fixed Point Definition --
2658 -------------------------------------------
2660 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2661 -- delta static_EXPRESSION
2662 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2664 -- Note: decimal types are not permitted in Ada 83 mode
2666 -- N_Decimal_Fixed_Point_Definition
2667 -- Sloc points to DELTA
2668 -- Delta_Expression (Node3)
2669 -- Digits_Expression (Node2)
2670 -- Real_Range_Specification (Node4) (set to Empty if not present)
2672 ------------------------------
2673 -- 3.5.9 Digits Constraint --
2674 ------------------------------
2676 -- DIGITS_CONSTRAINT ::=
2677 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2679 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2680 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2682 -- N_Digits_Constraint
2683 -- Sloc points to DIGITS
2684 -- Digits_Expression (Node2)
2685 -- Range_Constraint (Node4) (set to Empty if not present)
2687 --------------------------------
2688 -- 3.6 Array Type Definition --
2689 --------------------------------
2691 -- ARRAY_TYPE_DEFINITION ::=
2692 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2694 -----------------------------------------
2695 -- 3.6 Unconstrained Array Definition --
2696 -----------------------------------------
2698 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2699 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2700 -- COMPONENT_DEFINITION
2702 -- Note: dimensionality of array is indicated by number of entries in
2703 -- the Subtype_Marks list, which has one entry for each dimension.
2705 -- N_Unconstrained_Array_Definition
2706 -- Sloc points to ARRAY
2707 -- Subtype_Marks (List2)
2708 -- Component_Definition (Node4)
2710 -----------------------------------
2711 -- 3.6 Index Subtype Definition --
2712 -----------------------------------
2714 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2716 -- There is no explicit node in the tree for an index subtype
2717 -- definition since the N_Unconstrained_Array_Definition node
2718 -- incorporates the type marks which appear in this context.
2720 ---------------------------------------
2721 -- 3.6 Constrained Array Definition --
2722 ---------------------------------------
2724 -- CONSTRAINED_ARRAY_DEFINITION ::=
2725 -- array (DISCRETE_SUBTYPE_DEFINITION
2726 -- {, DISCRETE_SUBTYPE_DEFINITION})
2727 -- of COMPONENT_DEFINITION
2729 -- Note: dimensionality of array is indicated by number of entries
2730 -- in the Discrete_Subtype_Definitions list, which has one entry
2731 -- for each dimension.
2733 -- N_Constrained_Array_Definition
2734 -- Sloc points to ARRAY
2735 -- Discrete_Subtype_Definitions (List2)
2736 -- Component_Definition (Node4)
2738 --------------------------------------
2739 -- 3.6 Discrete Subtype Definition --
2740 --------------------------------------
2742 -- DISCRETE_SUBTYPE_DEFINITION ::=
2743 -- discrete_SUBTYPE_INDICATION | RANGE
2745 -------------------------------
2746 -- 3.6 Component Definition --
2747 -------------------------------
2749 -- COMPONENT_DEFINITION ::=
2750 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2752 -- Note: although the syntax does not permit a component definition to
2753 -- be an anonymous array (and the parser will diagnose such an attempt
2754 -- with an appropriate message), it is possible for anonymous arrays
2755 -- to appear as component definitions. The semantics and back end handle
2756 -- this case properly, and the expander in fact generates such cases.
2757 -- Access_Definition is an optional field that gives support to
2758 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2759 -- Subtype_Indication field or else the Access_Definition field.
2761 -- N_Component_Definition
2762 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2763 -- Aliased_Present (Flag4)
2764 -- Null_Exclusion_Present (Flag11)
2765 -- Subtype_Indication (Node5) (set to Empty if not present)
2766 -- Access_Definition (Node3) (set to Empty if not present)
2768 -----------------------------
2769 -- 3.6.1 Index Constraint --
2770 -----------------------------
2772 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2774 -- It is not in general possible to distinguish between discriminant
2775 -- constraints and index constraints at parse time, since a simple
2776 -- name could be either the subtype mark of a discrete range, or an
2777 -- expression in a discriminant association with no name. Either
2778 -- entry appears simply as the name, and the semantic parse must
2779 -- distinguish between the two cases. Thus we use a common tree
2780 -- node format for both of these constraint types.
2782 -- See Discriminant_Constraint for format of node
2784 ---------------------------
2785 -- 3.6.1 Discrete Range --
2786 ---------------------------
2788 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2790 ----------------------------
2791 -- 3.7 Discriminant Part --
2792 ----------------------------
2794 -- DISCRIMINANT_PART ::=
2795 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2797 ------------------------------------
2798 -- 3.7 Unknown Discriminant Part --
2799 ------------------------------------
2801 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2803 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2805 -- There is no explicit node in the tree for an unknown discriminant
2806 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2807 -- parent node.
2809 ----------------------------------
2810 -- 3.7 Known Discriminant Part --
2811 ----------------------------------
2813 -- KNOWN_DISCRIMINANT_PART ::=
2814 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2816 -------------------------------------
2817 -- 3.7 Discriminant Specification --
2818 -------------------------------------
2820 -- DISCRIMINANT_SPECIFICATION ::=
2821 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2822 -- [:= DEFAULT_EXPRESSION]
2823 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2824 -- [:= DEFAULT_EXPRESSION]
2826 -- Although the syntax allows multiple identifiers in the list, the
2827 -- semantics is as though successive specifications were given with
2828 -- identical type definition and expression components. To simplify
2829 -- semantic processing, the parser represents a multiple declaration
2830 -- case as a sequence of single specifications, using the More_Ids and
2831 -- Prev_Ids flags to preserve the original source form as described
2832 -- in the section on "Handling of Defining Identifier Lists".
2834 -- N_Discriminant_Specification
2835 -- Sloc points to first identifier
2836 -- Defining_Identifier (Node1)
2837 -- Null_Exclusion_Present (Flag11)
2838 -- Discriminant_Type (Node5) subtype mark or access parameter definition
2839 -- Expression (Node3) (set to Empty if no default expression)
2840 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2841 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2843 -----------------------------
2844 -- 3.7 Default Expression --
2845 -----------------------------
2847 -- DEFAULT_EXPRESSION ::= EXPRESSION
2849 ------------------------------------
2850 -- 3.7.1 Discriminant Constraint --
2851 ------------------------------------
2853 -- DISCRIMINANT_CONSTRAINT ::=
2854 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2856 -- It is not in general possible to distinguish between discriminant
2857 -- constraints and index constraints at parse time, since a simple
2858 -- name could be either the subtype mark of a discrete range, or an
2859 -- expression in a discriminant association with no name. Either
2860 -- entry appears simply as the name, and the semantic parse must
2861 -- distinguish between the two cases. Thus we use a common tree
2862 -- node format for both of these constraint types.
2864 -- N_Index_Or_Discriminant_Constraint
2865 -- Sloc points to left paren
2866 -- Constraints (List1) points to list of discrete ranges or
2867 -- discriminant associations
2869 -------------------------------------
2870 -- 3.7.1 Discriminant Association --
2871 -------------------------------------
2873 -- DISCRIMINANT_ASSOCIATION ::=
2874 -- [discriminant_SELECTOR_NAME
2875 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2877 -- Note: a discriminant association that has no selector name list
2878 -- appears directly as an expression in the tree.
2880 -- N_Discriminant_Association
2881 -- Sloc points to first token of discriminant association
2882 -- Selector_Names (List1) (always non-empty, since if no selector
2883 -- names are present, this node is not used, see comment above)
2884 -- Expression (Node3)
2886 ---------------------------------
2887 -- 3.8 Record Type Definition --
2888 ---------------------------------
2890 -- RECORD_TYPE_DEFINITION ::=
2891 -- [[abstract] tagged] [limited] RECORD_DEFINITION
2893 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2895 -- There is no explicit node in the tree for a record type definition.
2896 -- Instead the flags for Tagged_Present and Limited_Present appear in
2897 -- the N_Record_Definition node for a record definition appearing in
2898 -- the context of a record type definition.
2900 ----------------------------
2901 -- 3.8 Record Definition --
2902 ----------------------------
2904 -- RECORD_DEFINITION ::=
2905 -- record
2906 -- COMPONENT_LIST
2907 -- end record
2908 -- | null record
2910 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
2911 -- flags appear only for a record definition appearing in a record
2912 -- type definition.
2914 -- Note: the NULL RECORD case is not permitted in Ada 83
2916 -- N_Record_Definition
2917 -- Sloc points to RECORD or NULL
2918 -- End_Label (Node4) (set to Empty if internally generated record)
2919 -- Abstract_Present (Flag4)
2920 -- Tagged_Present (Flag15)
2921 -- Limited_Present (Flag17)
2922 -- Component_List (Node1) empty in null record case
2923 -- Null_Present (Flag13) set in null record case
2924 -- Task_Present (Flag5) set in task interfaces
2925 -- Protected_Present (Flag6) set in protected interfaces
2926 -- Synchronized_Present (Flag7) set in interfaces
2927 -- Interface_Present (Flag16) set in abstract interfaces
2928 -- Interface_List (List2) (set to No_List if none)
2930 -- Note: Task_Present, Protected_Present, Synchronized _Present,
2931 -- Interface_List and Interface_Present are used for abstract
2932 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2934 -------------------------
2935 -- 3.8 Component List --
2936 -------------------------
2938 -- COMPONENT_LIST ::=
2939 -- COMPONENT_ITEM {COMPONENT_ITEM}
2940 -- | {COMPONENT_ITEM} VARIANT_PART
2941 -- | null;
2943 -- N_Component_List
2944 -- Sloc points to first token of component list
2945 -- Component_Items (List3)
2946 -- Variant_Part (Node4) (set to Empty if no variant part)
2947 -- Null_Present (Flag13)
2949 -------------------------
2950 -- 3.8 Component Item --
2951 -------------------------
2953 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2955 -- Note: A component item can also be a pragma, and in the tree
2956 -- that is obtained after semantic processing, a component item
2957 -- can be an N_Null node resulting from a non-recognized pragma.
2959 --------------------------------
2960 -- 3.8 Component Declaration --
2961 --------------------------------
2963 -- COMPONENT_DECLARATION ::=
2964 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2965 -- [:= DEFAULT_EXPRESSION]
2966 -- [ASPECT_SPECIFICATIONS];
2968 -- Note: although the syntax does not permit a component definition to
2969 -- be an anonymous array (and the parser will diagnose such an attempt
2970 -- with an appropriate message), it is possible for anonymous arrays
2971 -- to appear as component definitions. The semantics and back end handle
2972 -- this case properly, and the expander in fact generates such cases.
2974 -- Although the syntax allows multiple identifiers in the list, the
2975 -- semantics is as though successive declarations were given with the
2976 -- same component definition and expression components. To simplify
2977 -- semantic processing, the parser represents a multiple declaration
2978 -- case as a sequence of single declarations, using the More_Ids and
2979 -- Prev_Ids flags to preserve the original source form as described
2980 -- in the section on "Handling of Defining Identifier Lists".
2982 -- N_Component_Declaration
2983 -- Sloc points to first identifier
2984 -- Defining_Identifier (Node1)
2985 -- Component_Definition (Node4)
2986 -- Expression (Node3) (set to Empty if no default expression)
2987 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2988 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2990 -------------------------
2991 -- 3.8.1 Variant Part --
2992 -------------------------
2994 -- VARIANT_PART ::=
2995 -- case discriminant_DIRECT_NAME is
2996 -- VARIANT
2997 -- {VARIANT}
2998 -- end case;
3000 -- Note: the variants list can contain pragmas as well as variants.
3001 -- In a properly formed program there is at least one variant.
3003 -- N_Variant_Part
3004 -- Sloc points to CASE
3005 -- Name (Node2)
3006 -- Variants (List1)
3008 --------------------
3009 -- 3.8.1 Variant --
3010 --------------------
3012 -- VARIANT ::=
3013 -- when DISCRETE_CHOICE_LIST =>
3014 -- COMPONENT_LIST
3016 -- N_Variant
3017 -- Sloc points to WHEN
3018 -- Discrete_Choices (List4)
3019 -- Component_List (Node1)
3020 -- Enclosing_Variant (Node2-Sem)
3021 -- Present_Expr (Uint3-Sem)
3022 -- Dcheck_Function (Node5-Sem)
3024 ---------------------------------
3025 -- 3.8.1 Discrete Choice List --
3026 ---------------------------------
3028 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3030 ----------------------------
3031 -- 3.8.1 Discrete Choice --
3032 ----------------------------
3034 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3036 -- Note: in Ada 83 mode, the expression must be a simple expression
3038 -- The only choice that appears explicitly is the OTHERS choice, as
3039 -- defined here. Other cases of discrete choice (expression and
3040 -- discrete range) appear directly. This production is also used
3041 -- for the OTHERS possibility of an exception choice.
3043 -- Note: in accordance with the syntax, the parser does not check that
3044 -- OTHERS appears at the end on its own in a choice list context. This
3045 -- is a semantic check.
3047 -- N_Others_Choice
3048 -- Sloc points to OTHERS
3049 -- Others_Discrete_Choices (List1-Sem)
3050 -- All_Others (Flag11-Sem)
3052 ----------------------------------
3053 -- 3.9.1 Record Extension Part --
3054 ----------------------------------
3056 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3058 -- Note: record extension parts are not permitted in Ada 83 mode
3060 --------------------------------------
3061 -- 3.9.4 Interface Type Definition --
3062 --------------------------------------
3064 -- INTERFACE_TYPE_DEFINITION ::=
3065 -- [limited | task | protected | synchronized]
3066 -- interface [interface_list]
3068 -- Note: Interfaces are implemented with N_Record_Definition and
3069 -- N_Derived_Type_Definition nodes because most of the support
3070 -- for the analysis of abstract types has been reused to
3071 -- analyze abstract interfaces.
3073 ----------------------------------
3074 -- 3.10 Access Type Definition --
3075 ----------------------------------
3077 -- ACCESS_TYPE_DEFINITION ::=
3078 -- ACCESS_TO_OBJECT_DEFINITION
3079 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3081 --------------------------
3082 -- 3.10 Null Exclusion --
3083 --------------------------
3085 -- NULL_EXCLUSION ::= not null
3087 ---------------------------------------
3088 -- 3.10 Access To Object Definition --
3089 ---------------------------------------
3091 -- ACCESS_TO_OBJECT_DEFINITION ::=
3092 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3093 -- SUBTYPE_INDICATION
3095 -- N_Access_To_Object_Definition
3096 -- Sloc points to ACCESS
3097 -- All_Present (Flag15)
3098 -- Null_Exclusion_Present (Flag11)
3099 -- Subtype_Indication (Node5)
3100 -- Constant_Present (Flag17)
3102 -----------------------------------
3103 -- 3.10 General Access Modifier --
3104 -----------------------------------
3106 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3108 -- Note: general access modifiers are not permitted in Ada 83 mode
3110 -- There is no explicit node in the tree for general access modifier.
3111 -- Instead the All_Present or Constant_Present flags are set in the
3112 -- parent node.
3114 -------------------------------------------
3115 -- 3.10 Access To Subprogram Definition --
3116 -------------------------------------------
3118 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3119 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3120 -- | [NULL_EXCLUSION] access [protected] function
3121 -- PARAMETER_AND_RESULT_PROFILE
3123 -- Note: access to subprograms are not permitted in Ada 83 mode
3125 -- N_Access_Function_Definition
3126 -- Sloc points to ACCESS
3127 -- Null_Exclusion_Present (Flag11)
3128 -- Null_Exclusion_In_Return_Present (Flag14)
3129 -- Protected_Present (Flag6)
3130 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3131 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3133 -- N_Access_Procedure_Definition
3134 -- Sloc points to ACCESS
3135 -- Null_Exclusion_Present (Flag11)
3136 -- Protected_Present (Flag6)
3137 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3139 -----------------------------
3140 -- 3.10 Access Definition --
3141 -----------------------------
3143 -- ACCESS_DEFINITION ::=
3144 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3145 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3147 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3149 -- N_Access_Definition
3150 -- Sloc points to ACCESS
3151 -- Null_Exclusion_Present (Flag11)
3152 -- All_Present (Flag15)
3153 -- Constant_Present (Flag17)
3154 -- Subtype_Mark (Node4)
3155 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3157 -----------------------------------------
3158 -- 3.10.1 Incomplete Type Declaration --
3159 -----------------------------------------
3161 -- INCOMPLETE_TYPE_DECLARATION ::=
3162 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3164 -- N_Incomplete_Type_Declaration
3165 -- Sloc points to TYPE
3166 -- Defining_Identifier (Node1)
3167 -- Discriminant_Specifications (List4) (set to No_List if no
3168 -- discriminant part, or if the discriminant part is an
3169 -- unknown discriminant part)
3170 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3171 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3172 -- Tagged_Present (Flag15)
3174 ----------------------------
3175 -- 3.11 Declarative Part --
3176 ----------------------------
3178 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3180 -- Note: although the parser enforces the syntactic requirement that
3181 -- a declarative part can contain only declarations, the semantic
3182 -- processing may add statements to the list of actions in a
3183 -- declarative part, so the code generator should be prepared
3184 -- to accept a statement in this position.
3186 ----------------------------
3187 -- 3.11 Declarative Item --
3188 ----------------------------
3190 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3192 ----------------------------------
3193 -- 3.11 Basic Declarative Item --
3194 ----------------------------------
3196 -- BASIC_DECLARATIVE_ITEM ::=
3197 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3199 ----------------
3200 -- 3.11 Body --
3201 ----------------
3203 -- BODY ::= PROPER_BODY | BODY_STUB
3205 -----------------------
3206 -- 3.11 Proper Body --
3207 -----------------------
3209 -- PROPER_BODY ::=
3210 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3212 ---------------
3213 -- 4.1 Name --
3214 ---------------
3216 -- NAME ::=
3217 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3218 -- | INDEXED_COMPONENT | SLICE
3219 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3220 -- | TYPE_CONVERSION | FUNCTION_CALL
3221 -- | CHARACTER_LITERAL
3223 ----------------------
3224 -- 4.1 Direct Name --
3225 ----------------------
3227 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3229 -----------------
3230 -- 4.1 Prefix --
3231 -----------------
3233 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3235 -------------------------------
3236 -- 4.1 Explicit Dereference --
3237 -------------------------------
3239 -- EXPLICIT_DEREFERENCE ::= NAME . all
3241 -- N_Explicit_Dereference
3242 -- Sloc points to ALL
3243 -- Prefix (Node3)
3244 -- Actual_Designated_Subtype (Node4-Sem)
3245 -- Atomic_Sync_Required (Flag14-Sem)
3246 -- Has_Dereference_Action (Flag13-Sem)
3247 -- plus fields for expression
3249 -------------------------------
3250 -- 4.1 Implicit Dereference --
3251 -------------------------------
3253 -- IMPLICIT_DEREFERENCE ::= NAME
3255 ------------------------------
3256 -- 4.1.1 Indexed Component --
3257 ------------------------------
3259 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3261 -- Note: the parser may generate this node in some situations where it
3262 -- should be a function call. The semantic pass must correct this
3263 -- misidentification (which is inevitable at the parser level).
3265 -- N_Indexed_Component
3266 -- Sloc contains a copy of the Sloc value of the Prefix
3267 -- Prefix (Node3)
3268 -- Expressions (List1)
3269 -- Atomic_Sync_Required (Flag14-Sem)
3270 -- plus fields for expression
3272 -- Note: if any of the subscripts requires a range check, then the
3273 -- Do_Range_Check flag is set on the corresponding expression, with
3274 -- the index type being determined from the type of the Prefix, which
3275 -- references the array being indexed.
3277 -- Note: in a fully analyzed and expanded indexed component node, and
3278 -- hence in any such node that gigi sees, if the prefix is an access
3279 -- type, then an explicit dereference operation has been inserted.
3281 ------------------
3282 -- 4.1.2 Slice --
3283 ------------------
3285 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3287 -- Note: an implicit subtype is created to describe the resulting
3288 -- type, so that the bounds of this type are the bounds of the slice.
3290 -- N_Slice
3291 -- Sloc points to first token of prefix
3292 -- Prefix (Node3)
3293 -- Discrete_Range (Node4)
3294 -- plus fields for expression
3296 -------------------------------
3297 -- 4.1.3 Selected Component --
3298 -------------------------------
3300 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3302 -- Note: selected components that are semantically expanded names get
3303 -- changed during semantic processing into the separate N_Expanded_Name
3304 -- node. See description of this node in the section on semantic nodes.
3306 -- N_Selected_Component
3307 -- Sloc points to period
3308 -- Prefix (Node3)
3309 -- Selector_Name (Node2)
3310 -- Associated_Node (Node4-Sem)
3311 -- Do_Discriminant_Check (Flag13-Sem)
3312 -- Is_In_Discriminant_Check (Flag11-Sem)
3313 -- Is_Prefixed_Call (Flag17-Sem)
3314 -- Atomic_Sync_Required (Flag14-Sem)
3315 -- plus fields for expression
3317 --------------------------
3318 -- 4.1.3 Selector Name --
3319 --------------------------
3321 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3323 --------------------------------
3324 -- 4.1.4 Attribute Reference --
3325 --------------------------------
3327 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3329 -- Note: the syntax is quite ambiguous at this point. Consider:
3331 -- A'Length (X) X is part of the attribute designator
3332 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3333 -- A'Class (X) X is the expression of a type conversion
3335 -- It would be possible for the parser to distinguish these cases
3336 -- by looking at the attribute identifier. However, that would mean
3337 -- more work in introducing new implementation defined attributes,
3338 -- and also it would mean that special processing for attributes
3339 -- would be scattered around, instead of being centralized in the
3340 -- semantic routine that handles an N_Attribute_Reference node.
3341 -- Consequently, the parser in all the above cases stores the
3342 -- expression (X in these examples) as a single element list in
3343 -- in the Expressions field of the N_Attribute_Reference node.
3345 -- Similarly, for attributes like Max which take two arguments,
3346 -- we store the two arguments as a two element list in the
3347 -- Expressions field. Of course it is clear at parse time that
3348 -- this case is really a function call with an attribute as the
3349 -- prefix, but it turns out to be convenient to handle the two
3350 -- argument case in a similar manner to the one argument case,
3351 -- and indeed in general the parser will accept any number of
3352 -- expressions in this position and store them as a list in the
3353 -- attribute reference node. This allows for future addition of
3354 -- attributes that take more than two arguments.
3356 -- Note: named associates are not permitted in function calls where
3357 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3358 -- to skip the normal subprogram argument processing.
3360 -- Note: for the attributes whose designators are technically keywords,
3361 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3362 -- the corresponding name, even though no identifier is involved.
3364 -- Note: the generated code may contain stream attributes applied to
3365 -- limited types for which no stream routines exist officially. In such
3366 -- case, the result is to use the stream attribute for the underlying
3367 -- full type, or in the case of a protected type, the components
3368 -- (including any discriminants) are merely streamed in order.
3370 -- See Exp_Attr for a complete description of which attributes are
3371 -- passed onto Gigi, and which are handled entirely by the front end.
3373 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3374 -- a non-standard enumeration type or a nonzero/zero semantics
3375 -- boolean type, so the value is simply the stored representation.
3377 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3378 -- references a subprogram that is a renaming, then the front end must
3379 -- rewrite the attribute to refer directly to the renamed entity.
3381 -- Note: In generated code, the Address and Unrestricted_Access
3382 -- attributes can be applied to any expression, and the meaning is
3383 -- to create an object containing the value (the object is in the
3384 -- current stack frame), and pass the address of this value. If the
3385 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3386 -- is taken must be on a byte (storage unit) boundary, and if it is
3387 -- not (or may not be), then the generated code must create a copy
3388 -- that is byte aligned, and pass the address of this copy.
3390 -- N_Attribute_Reference
3391 -- Sloc points to apostrophe
3392 -- Prefix (Node3)
3393 -- Attribute_Name (Name2) identifier name from attribute designator
3394 -- Expressions (List1) (set to No_List if no associated expressions)
3395 -- Entity (Node4-Sem) used if the attribute yields a type
3396 -- Associated_Node (Node4-Sem)
3397 -- Do_Overflow_Check (Flag17-Sem)
3398 -- Header_Size_Added (Flag11-Sem)
3399 -- Redundant_Use (Flag13-Sem)
3400 -- Must_Be_Byte_Aligned (Flag14)
3401 -- plus fields for expression
3403 ---------------------------------
3404 -- 4.1.4 Attribute Designator --
3405 ---------------------------------
3407 -- ATTRIBUTE_DESIGNATOR ::=
3408 -- IDENTIFIER [(static_EXPRESSION)]
3409 -- | access | delta | digits
3411 -- There is no explicit node in the tree for an attribute designator.
3412 -- Instead the Attribute_Name and Expressions fields of the parent
3413 -- node (N_Attribute_Reference node) hold the information.
3415 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3416 -- designator, then they are treated as identifiers internally
3417 -- rather than the keywords of the same name.
3419 --------------------------------------
3420 -- 4.1.4 Range Attribute Reference --
3421 --------------------------------------
3423 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3425 -- A range attribute reference is represented in the tree using the
3426 -- normal N_Attribute_Reference node.
3428 ---------------------------------------
3429 -- 4.1.4 Range Attribute Designator --
3430 ---------------------------------------
3432 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3434 -- A range attribute designator is represented in the tree using the
3435 -- normal N_Attribute_Reference node.
3437 --------------------
3438 -- 4.3 Aggregate --
3439 --------------------
3441 -- AGGREGATE ::=
3442 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3444 -----------------------------
3445 -- 4.3.1 Record Aggregate --
3446 -----------------------------
3448 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3450 -- N_Aggregate
3451 -- Sloc points to left parenthesis
3452 -- Expressions (List1) (set to No_List if none or null record case)
3453 -- Component_Associations (List2) (set to No_List if none)
3454 -- Null_Record_Present (Flag17)
3455 -- Aggregate_Bounds (Node3-Sem)
3456 -- Associated_Node (Node4-Sem)
3457 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3458 -- Expansion_Delayed (Flag11-Sem)
3459 -- Has_Self_Reference (Flag13-Sem)
3460 -- plus fields for expression
3462 -- Note: this structure is used for both record and array aggregates
3463 -- since the two cases are not separable by the parser. The parser
3464 -- makes no attempt to enforce consistency here, so it is up to the
3465 -- semantic phase to make sure that the aggregate is consistent (i.e.
3466 -- that it is not a "half-and-half" case that mixes record and array
3467 -- syntax. In particular, for a record aggregate, the expressions
3468 -- field will be set if there are positional associations.
3470 -- Note: N_Aggregate is not used for all aggregates; in particular,
3471 -- there is a separate node kind for extension aggregates.
3473 -- Note: gigi/gcc can handle array aggregates correctly providing that
3474 -- they are entirely positional, and the array subtype involved has a
3475 -- known at compile time length and is not bit packed, or a convention
3476 -- Fortran array with more than one dimension. If these conditions
3477 -- are not met, then the front end must translate the aggregate into
3478 -- an appropriate set of assignments into a temporary.
3480 -- Note: for the record aggregate case, gigi/gcc can handle all cases of
3481 -- record aggregates, including those for packed, and rep-claused
3482 -- records, and also variant records, providing that there are no
3483 -- variable length fields whose size is not known at compile time, and
3484 -- providing that the aggregate is presented in fully named form.
3486 ----------------------------------------------
3487 -- 4.3.1 Record Component Association List --
3488 ----------------------------------------------
3490 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3491 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3492 -- | null record
3494 -- There is no explicit node in the tree for a record component
3495 -- association list. Instead the Null_Record_Present flag is set in
3496 -- the parent node for the NULL RECORD case.
3498 ------------------------------------------------------
3499 -- 4.3.1 Record Component Association (also 4.3.3) --
3500 ------------------------------------------------------
3502 -- RECORD_COMPONENT_ASSOCIATION ::=
3503 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3505 -- N_Component_Association
3506 -- Sloc points to first selector name
3507 -- Choices (List1)
3508 -- Loop_Actions (List2-Sem)
3509 -- Expression (Node3)
3510 -- Box_Present (Flag15)
3511 -- Inherited_Discriminant (Flag13)
3513 -- Note: this structure is used for both record component associations
3514 -- and array component associations, since the two cases aren't always
3515 -- separable by the parser. The choices list may represent either a
3516 -- list of selector names in the record aggregate case, or a list of
3517 -- discrete choices in the array aggregate case or an N_Others_Choice
3518 -- node (which appears as a singleton list). Box_Present gives support
3519 -- to Ada 2005 (AI-287).
3521 ----------------------------------
3522 -- 4.3.1 Component Choice List --
3523 ----------------------------------
3525 -- COMPONENT_CHOICE_LIST ::=
3526 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3527 -- | others
3529 -- The entries of a component choice list appear in the Choices list of
3530 -- the associated N_Component_Association, as either selector names, or
3531 -- as an N_Others_Choice node.
3533 --------------------------------
3534 -- 4.3.2 Extension Aggregate --
3535 --------------------------------
3537 -- EXTENSION_AGGREGATE ::=
3538 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3540 -- Note: extension aggregates are not permitted in Ada 83 mode
3542 -- N_Extension_Aggregate
3543 -- Sloc points to left parenthesis
3544 -- Ancestor_Part (Node3)
3545 -- Associated_Node (Node4-Sem)
3546 -- Expressions (List1) (set to No_List if none or null record case)
3547 -- Component_Associations (List2) (set to No_List if none)
3548 -- Null_Record_Present (Flag17)
3549 -- Expansion_Delayed (Flag11-Sem)
3550 -- Has_Self_Reference (Flag13-Sem)
3551 -- plus fields for expression
3553 --------------------------
3554 -- 4.3.2 Ancestor Part --
3555 --------------------------
3557 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3559 ----------------------------
3560 -- 4.3.3 Array Aggregate --
3561 ----------------------------
3563 -- ARRAY_AGGREGATE ::=
3564 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3566 ---------------------------------------
3567 -- 4.3.3 Positional Array Aggregate --
3568 ---------------------------------------
3570 -- POSITIONAL_ARRAY_AGGREGATE ::=
3571 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3572 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3574 -- See Record_Aggregate (4.3.1) for node structure
3576 ----------------------------------
3577 -- 4.3.3 Named Array Aggregate --
3578 ----------------------------------
3580 -- NAMED_ARRAY_AGGREGATE ::=
3581 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3583 -- See Record_Aggregate (4.3.1) for node structure
3585 ----------------------------------------
3586 -- 4.3.3 Array Component Association --
3587 ----------------------------------------
3589 -- ARRAY_COMPONENT_ASSOCIATION ::=
3590 -- DISCRETE_CHOICE_LIST => EXPRESSION
3592 -- See Record_Component_Association (4.3.1) for node structure
3594 --------------------------------------------------
3595 -- 4.4 Expression/Relation/Term/Factor/Primary --
3596 --------------------------------------------------
3598 -- EXPRESSION ::=
3599 -- RELATION {LOGICAL_OPERATOR RELATION}
3601 -- CHOICE_EXPRESSION ::=
3602 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
3604 -- CHOICE_RELATION ::=
3605 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3607 -- RELATION ::=
3608 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3609 -- | RAISE_EXPRESSION
3611 -- MEMBERSHIP_CHOICE_LIST ::=
3612 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3614 -- MEMBERSHIP_CHOICE ::=
3615 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3617 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
3619 -- SIMPLE_EXPRESSION ::=
3620 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3622 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3624 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3626 -- No nodes are generated for any of these constructs. Instead, the
3627 -- node for the operator appears directly. When we refer to an
3628 -- expression in this description, we mean any of the possible
3629 -- constituent components of an expression (e.g. identifier is
3630 -- an example of an expression).
3632 -- Note: the above syntax is that Ada 2012 syntax which restricts
3633 -- choice relations to simple expressions to avoid ambiguities in
3634 -- some contexts with set membership notation. It has been decided
3635 -- that in retrospect, the Ada 95 change allowing general expressions
3636 -- in this context was a mistake, so we have reverted to the above
3637 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
3638 -- expressions was there in Ada 83 from the start).
3640 ------------------
3641 -- 4.4 Primary --
3642 ------------------
3644 -- PRIMARY ::=
3645 -- NUMERIC_LITERAL | null
3646 -- | STRING_LITERAL | AGGREGATE
3647 -- | NAME | QUALIFIED_EXPRESSION
3648 -- | ALLOCATOR | (EXPRESSION)
3650 -- Usually there is no explicit node in the tree for primary. Instead
3651 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3652 -- exceptions. First, there is an explicit node for a null primary.
3654 -- N_Null
3655 -- Sloc points to NULL
3656 -- plus fields for expression
3658 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3659 -- that the parser keep track of which subexpressions are enclosed
3660 -- in parentheses, and how many levels of parentheses are used. This
3661 -- information is required for optimization purposes, and also for
3662 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3663 -- conform with ((((1)))) in the body).
3665 -- The parentheses are recorded by keeping a Paren_Count field in every
3666 -- subexpression node (it is actually present in all nodes, but only
3667 -- used in subexpression nodes). This count records the number of
3668 -- levels of parentheses. If the number of levels in the source exceeds
3669 -- the maximum accommodated by this count, then the count is simply left
3670 -- at the maximum value. This means that there are some pathological
3671 -- cases of failure to detect conformance failures (e.g. an expression
3672 -- with 500 levels of parens will conform with one with 501 levels),
3673 -- but we do not need to lose sleep over this.
3675 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3676 -- type N_Parenthesized_Expression used to accurately record unlimited
3677 -- numbers of levels of parentheses. However, it turned out to be a
3678 -- real nuisance to have to take into account the possible presence of
3679 -- this node during semantic analysis, since basically parentheses have
3680 -- zero relevance to semantic analysis.
3682 -- Note: the level of parentheses always present in things like
3683 -- aggregates does not count, only the parentheses in the primary
3684 -- (EXPRESSION) affect the setting of the Paren_Count field.
3686 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3687 -- treated as though it were Empty) if No_Initialization is set True.
3689 --------------------------------------
3690 -- 4.5 Short Circuit Control Forms --
3691 --------------------------------------
3693 -- EXPRESSION ::=
3694 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3696 -- Gigi restriction: For both these control forms, the operand and
3697 -- result types are always Standard.Boolean. The expander inserts the
3698 -- required conversion operations where needed to ensure this is the
3699 -- case.
3701 -- N_And_Then
3702 -- Sloc points to AND of AND THEN
3703 -- Left_Opnd (Node2)
3704 -- Right_Opnd (Node3)
3705 -- Actions (List1-Sem)
3706 -- plus fields for expression
3708 -- N_Or_Else
3709 -- Sloc points to OR of OR ELSE
3710 -- Left_Opnd (Node2)
3711 -- Right_Opnd (Node3)
3712 -- Actions (List1-Sem)
3713 -- plus fields for expression
3715 -- Note: The Actions field is used to hold actions associated with
3716 -- the right hand operand. These have to be treated specially since
3717 -- they are not unconditionally executed. See Insert_Actions for a
3718 -- more detailed description of how these actions are handled.
3720 ---------------------------
3721 -- 4.5 Membership Tests --
3722 ---------------------------
3724 -- RELATION ::=
3725 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3727 -- MEMBERSHIP_CHOICE_LIST ::=
3728 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3730 -- MEMBERSHIP_CHOICE ::=
3731 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3733 -- Note: although the grammar above allows only a range or a subtype
3734 -- mark, the parser in fact will accept any simple expression in place
3735 -- of a subtype mark. This means that the semantic analyzer must be able
3736 -- to deal with, and diagnose a simple expression other than a name for
3737 -- the right operand. This simplifies error recovery in the parser.
3739 -- The Alternatives field below is present only if there is more
3740 -- than one Membership_Choice present (which is legitimate only in
3741 -- Ada 2012 mode) in which case Right_Opnd is Empty, and Alternatives
3742 -- contains the list of choices. In the tree passed to the back end,
3743 -- Alternatives is always No_List, and Right_Opnd is set (i.e. the
3744 -- expansion circuitry expands out the complex set membership case
3745 -- using simple membership operations).
3747 -- Should we rename Alternatives here to Membership_Choices ???
3749 -- N_In
3750 -- Sloc points to IN
3751 -- Left_Opnd (Node2)
3752 -- Right_Opnd (Node3)
3753 -- Alternatives (List4) (set to No_List if only one set alternative)
3754 -- No_Minimize_Eliminate (Flag17)
3755 -- plus fields for expression
3757 -- N_Not_In
3758 -- Sloc points to NOT of NOT IN
3759 -- Left_Opnd (Node2)
3760 -- Right_Opnd (Node3)
3761 -- Alternatives (List4) (set to No_List if only one set alternative)
3762 -- No_Minimize_Eliminate (Flag17)
3763 -- plus fields for expression
3765 --------------------
3766 -- 4.5 Operators --
3767 --------------------
3769 -- LOGICAL_OPERATOR ::= and | or | xor
3771 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3773 -- BINARY_ADDING_OPERATOR ::= + | - | &
3775 -- UNARY_ADDING_OPERATOR ::= + | -
3777 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3779 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3781 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3783 -- x #* y
3784 -- x #/ y
3785 -- x #mod y
3786 -- x #rem y
3788 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3789 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3790 -- All handling of smalls for multiplication and division is handled
3791 -- by the front end (mod and rem result only from expansion). Gigi
3792 -- thus never needs to worry about small values (for other operators
3793 -- operating on fixed-point, e.g. addition, the small value does not
3794 -- have any semantic effect anyway, these are always integer operations.
3796 -- Gigi restriction: For all operators taking Boolean operands, the
3797 -- type is always Standard.Boolean. The expander inserts the required
3798 -- conversion operations where needed to ensure this is the case.
3800 -- N_Op_And
3801 -- Sloc points to AND
3802 -- Do_Length_Check (Flag4-Sem)
3803 -- plus fields for binary operator
3804 -- plus fields for expression
3806 -- N_Op_Or
3807 -- Sloc points to OR
3808 -- Do_Length_Check (Flag4-Sem)
3809 -- plus fields for binary operator
3810 -- plus fields for expression
3812 -- N_Op_Xor
3813 -- Sloc points to XOR
3814 -- Do_Length_Check (Flag4-Sem)
3815 -- plus fields for binary operator
3816 -- plus fields for expression
3818 -- N_Op_Eq
3819 -- Sloc points to =
3820 -- plus fields for binary operator
3821 -- plus fields for expression
3823 -- N_Op_Ne
3824 -- Sloc points to /=
3825 -- plus fields for binary operator
3826 -- plus fields for expression
3828 -- N_Op_Lt
3829 -- Sloc points to <
3830 -- plus fields for binary operator
3831 -- plus fields for expression
3833 -- N_Op_Le
3834 -- Sloc points to <=
3835 -- plus fields for binary operator
3836 -- plus fields for expression
3838 -- N_Op_Gt
3839 -- Sloc points to >
3840 -- plus fields for binary operator
3841 -- plus fields for expression
3843 -- N_Op_Ge
3844 -- Sloc points to >=
3845 -- plus fields for binary operator
3846 -- plus fields for expression
3848 -- N_Op_Add
3849 -- Sloc points to + (binary)
3850 -- plus fields for binary operator
3851 -- plus fields for expression
3853 -- N_Op_Subtract
3854 -- Sloc points to - (binary)
3855 -- plus fields for binary operator
3856 -- plus fields for expression
3858 -- N_Op_Concat
3859 -- Sloc points to &
3860 -- Is_Component_Left_Opnd (Flag13-Sem)
3861 -- Is_Component_Right_Opnd (Flag14-Sem)
3862 -- plus fields for binary operator
3863 -- plus fields for expression
3865 -- N_Op_Multiply
3866 -- Sloc points to *
3867 -- Treat_Fixed_As_Integer (Flag14-Sem)
3868 -- Rounded_Result (Flag18-Sem)
3869 -- plus fields for binary operator
3870 -- plus fields for expression
3872 -- N_Op_Divide
3873 -- Sloc points to /
3874 -- Treat_Fixed_As_Integer (Flag14-Sem)
3875 -- Do_Division_Check (Flag13-Sem)
3876 -- Rounded_Result (Flag18-Sem)
3877 -- plus fields for binary operator
3878 -- plus fields for expression
3880 -- N_Op_Mod
3881 -- Sloc points to MOD
3882 -- Treat_Fixed_As_Integer (Flag14-Sem)
3883 -- Do_Division_Check (Flag13-Sem)
3884 -- plus fields for binary operator
3885 -- plus fields for expression
3887 -- N_Op_Rem
3888 -- Sloc points to REM
3889 -- Treat_Fixed_As_Integer (Flag14-Sem)
3890 -- Do_Division_Check (Flag13-Sem)
3891 -- plus fields for binary operator
3892 -- plus fields for expression
3894 -- N_Op_Expon
3895 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
3896 -- Sloc points to **
3897 -- plus fields for binary operator
3898 -- plus fields for expression
3900 -- N_Op_Plus
3901 -- Sloc points to + (unary)
3902 -- plus fields for unary operator
3903 -- plus fields for expression
3905 -- N_Op_Minus
3906 -- Sloc points to - (unary)
3907 -- plus fields for unary operator
3908 -- plus fields for expression
3910 -- N_Op_Abs
3911 -- Sloc points to ABS
3912 -- plus fields for unary operator
3913 -- plus fields for expression
3915 -- N_Op_Not
3916 -- Sloc points to NOT
3917 -- plus fields for unary operator
3918 -- plus fields for expression
3920 -- See also shift operators in section B.2
3922 -- Note on fixed-point operations passed to Gigi: For adding operators,
3923 -- the semantics is to treat these simply as integer operations, with
3924 -- the small values being ignored (the bounds are already stored in
3925 -- units of small, so that constraint checking works as usual). For the
3926 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
3927 -- point operands if the Treat_Fixed_As_Integer flag is set and will
3928 -- thus treat these nodes in identical manner, ignoring small values.
3930 -- Note on overflow handling: When the overflow checking mode is set to
3931 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
3932 -- be modified to use a larger type for the operands and result. In
3933 -- the case where the computed range exceeds that of Long_Long_Integer,
3934 -- and we are running in ELIMINATED mode, the operator node will be
3935 -- changed to be a call to the appropriate routine in System.Bignums.
3937 ------------------------------------
3938 -- 4.5.7 Conditional Expressions --
3939 ------------------------------------
3941 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
3943 --------------------------
3944 -- 4.5.7 If Expression --
3945 ----------------------------
3947 -- IF_EXPRESSION ::=
3948 -- if CONDITION then DEPENDENT_EXPRESSION
3949 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
3950 -- [else DEPENDENT_EXPRESSION]
3952 -- DEPENDENT_EXPRESSION ::= EXPRESSION
3954 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
3955 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
3956 -- the Is_Elsif flag is set on the inner if expression.
3958 -- N_If_Expression
3959 -- Sloc points to IF or ELSIF keyword
3960 -- Expressions (List1)
3961 -- Then_Actions (List2-Sem)
3962 -- Else_Actions (List3-Sem)
3963 -- Is_Elsif (Flag13) (set if comes from ELSIF)
3964 -- Do_Overflow_Check (Flag17-Sem)
3965 -- plus fields for expression
3967 -- Expressions here is a three-element list, whose first element is the
3968 -- condition, the second element is the dependent expression after THEN
3969 -- and the third element is the dependent expression after the ELSE
3970 -- (explicitly set to True if missing).
3972 -- Note: the Then_Actions and Else_Actions fields are always set to
3973 -- No_List in the tree passed to Gigi. These fields are used only
3974 -- for temporary processing purposes in the expander.
3976 ----------------------------
3977 -- 4.5.7 Case Expression --
3978 ----------------------------
3980 -- CASE_EXPRESSION ::=
3981 -- case SELECTING_EXPRESSION is
3982 -- CASE_EXPRESSION_ALTERNATIVE
3983 -- {CASE_EXPRESSION_ALTERNATIVE}
3985 -- Note that the Alternatives cannot include pragmas (this contrasts
3986 -- with the situation of case statements where pragmas are allowed).
3988 -- N_Case_Expression
3989 -- Sloc points to CASE
3990 -- Expression (Node3) (the selecting expression)
3991 -- Alternatives (List4) (the case expression alternatives)
3992 -- Do_Overflow_Check (Flag17-Sem)
3994 ----------------------------------------
3995 -- 4.5.7 Case Expression Alternative --
3996 ----------------------------------------
3998 -- CASE_EXPRESSION_ALTERNATIVE ::=
3999 -- when DISCRETE_CHOICE_LIST =>
4000 -- DEPENDENT_EXPRESSION
4002 -- N_Case_Expression_Alternative
4003 -- Sloc points to WHEN
4004 -- Actions (List1)
4005 -- Discrete_Choices (List4)
4006 -- Expression (Node3)
4008 -- Note: The Actions field temporarily holds any actions associated with
4009 -- evaluation of the Expression. During expansion of the case expression
4010 -- these actions are wrapped into an N_Expressions_With_Actions node
4011 -- replacing the original expression.
4013 ---------------------------------
4014 -- 4.5.9 Quantified Expression --
4015 ---------------------------------
4017 -- QUANTIFIED_EXPRESSION ::=
4018 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4019 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4021 -- QUANTIFIER ::= all | some
4023 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4024 -- is present at a time, in which case the other one is empty.
4026 -- N_Quantified_Expression
4027 -- Sloc points to FOR
4028 -- Iterator_Specification (Node2)
4029 -- Loop_Parameter_Specification (Node4)
4030 -- Condition (Node1)
4031 -- All_Present (Flag15)
4033 --------------------------
4034 -- 4.6 Type Conversion --
4035 --------------------------
4037 -- TYPE_CONVERSION ::=
4038 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4040 -- In the (NAME) case, the name is stored as the expression
4042 -- Note: the parser never generates a type conversion node, since it
4043 -- looks like an indexed component which is generated by preference.
4044 -- The semantic pass must correct this misidentification.
4046 -- Gigi handles conversions that involve no change in the root type,
4047 -- and also all conversions from integer to floating-point types.
4048 -- Conversions from floating-point to integer are only handled in
4049 -- the case where Float_Truncate flag set. Other conversions from
4050 -- floating-point to integer (involving rounding) and all conversions
4051 -- involving fixed-point types are handled by the expander.
4053 -- Sprint syntax if Float_Truncate set: X^(Y)
4054 -- Sprint syntax if Conversion_OK set X?(Y)
4055 -- Sprint syntax if both flags set X?^(Y)
4057 -- Note: If either the operand or result type is fixed-point, Gigi will
4058 -- only see a type conversion node with Conversion_OK set. The front end
4059 -- takes care of all handling of small's for fixed-point conversions.
4061 -- N_Type_Conversion
4062 -- Sloc points to first token of subtype mark
4063 -- Subtype_Mark (Node4)
4064 -- Expression (Node3)
4065 -- Do_Tag_Check (Flag13-Sem)
4066 -- Do_Length_Check (Flag4-Sem)
4067 -- Do_Overflow_Check (Flag17-Sem)
4068 -- Float_Truncate (Flag11-Sem)
4069 -- Rounded_Result (Flag18-Sem)
4070 -- Conversion_OK (Flag14-Sem)
4071 -- plus fields for expression
4073 -- Note: if a range check is required, then the Do_Range_Check flag
4074 -- is set in the Expression with the check being done against the
4075 -- target type range (after the base type conversion, if any).
4077 -------------------------------
4078 -- 4.7 Qualified Expression --
4079 -------------------------------
4081 -- QUALIFIED_EXPRESSION ::=
4082 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4084 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4085 -- the expression, so the Expression field of this node always points
4086 -- to a parenthesized expression in this case (i.e. Paren_Count will
4087 -- always be non-zero for the referenced expression if it is not an
4088 -- aggregate).
4090 -- N_Qualified_Expression
4091 -- Sloc points to apostrophe
4092 -- Subtype_Mark (Node4)
4093 -- Expression (Node3) expression or aggregate
4094 -- plus fields for expression
4096 --------------------
4097 -- 4.8 Allocator --
4098 --------------------
4100 -- ALLOCATOR ::=
4101 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4102 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4104 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4106 -- Sprint syntax (when storage pool present)
4107 -- new xxx (storage_pool = pool)
4108 -- or
4109 -- new (subpool) xxx (storage_pool = pool)
4111 -- N_Allocator
4112 -- Sloc points to NEW
4113 -- Expression (Node3) subtype indication or qualified expression
4114 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4115 -- Storage_Pool (Node1-Sem)
4116 -- Procedure_To_Call (Node2-Sem)
4117 -- Null_Exclusion_Present (Flag11)
4118 -- No_Initialization (Flag13-Sem)
4119 -- Is_Static_Coextension (Flag14-Sem)
4120 -- Do_Storage_Check (Flag17-Sem)
4121 -- Is_Dynamic_Coextension (Flag18-Sem)
4122 -- plus fields for expression
4124 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4125 -- This flag has a special function in conjunction with the restriction
4126 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4127 -- is not set. This means that if a source allocator is replaced with
4128 -- a constructed allocator, the Comes_From_Source flag should be copied
4129 -- to the newly created allocator.
4131 ---------------------------------
4132 -- 5.1 Sequence Of Statements --
4133 ---------------------------------
4135 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4137 -- Note: Although the parser will not accept a declaration as a
4138 -- statement, the semantic analyzer may insert declarations (e.g.
4139 -- declarations of implicit types needed for execution of other
4140 -- statements) into a sequence of statements, so the code generator
4141 -- should be prepared to accept a declaration where a statement is
4142 -- expected. Note also that pragmas can appear as statements.
4144 --------------------
4145 -- 5.1 Statement --
4146 --------------------
4148 -- STATEMENT ::=
4149 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4151 -- There is no explicit node in the tree for a statement. Instead, the
4152 -- individual statement appears directly. Labels are treated as a
4153 -- kind of statement, i.e. they are linked into a statement list at
4154 -- the point they appear, so the labeled statement appears following
4155 -- the label or labels in the statement list.
4157 ---------------------------
4158 -- 5.1 Simple Statement --
4159 ---------------------------
4161 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4162 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4163 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4164 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4165 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4166 -- | ABORT_STATEMENT | RAISE_STATEMENT
4167 -- | CODE_STATEMENT
4169 -----------------------------
4170 -- 5.1 Compound Statement --
4171 -----------------------------
4173 -- COMPOUND_STATEMENT ::=
4174 -- IF_STATEMENT | CASE_STATEMENT
4175 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4176 -- | EXTENDED_RETURN_STATEMENT
4177 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4179 -------------------------
4180 -- 5.1 Null Statement --
4181 -------------------------
4183 -- NULL_STATEMENT ::= null;
4185 -- N_Null_Statement
4186 -- Sloc points to NULL
4188 ----------------
4189 -- 5.1 Label --
4190 ----------------
4192 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4194 -- Note that the occurrence of a label is not a defining identifier,
4195 -- but rather a referencing occurrence. The defining occurrence is
4196 -- in the implicit label declaration which occurs in the innermost
4197 -- enclosing block.
4199 -- N_Label
4200 -- Sloc points to <<
4201 -- Identifier (Node1) direct name of statement identifier
4202 -- Exception_Junk (Flag8-Sem)
4204 -- Note: Before Ada 2012, a label is always followed by a statement,
4205 -- and this is true in the tree even in Ada 2012 mode (the parser
4206 -- inserts a null statement marked with Comes_From_Source False).
4208 -------------------------------
4209 -- 5.1 Statement Identifier --
4210 -------------------------------
4212 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4214 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4215 -- (not an OPERATOR_SYMBOL)
4217 -------------------------------
4218 -- 5.2 Assignment Statement --
4219 -------------------------------
4221 -- ASSIGNMENT_STATEMENT ::=
4222 -- variable_NAME := EXPRESSION;
4224 -- N_Assignment_Statement
4225 -- Sloc points to :=
4226 -- Name (Node2)
4227 -- Expression (Node3)
4228 -- Do_Tag_Check (Flag13-Sem)
4229 -- Do_Length_Check (Flag4-Sem)
4230 -- Forwards_OK (Flag5-Sem)
4231 -- Backwards_OK (Flag6-Sem)
4232 -- No_Ctrl_Actions (Flag7-Sem)
4233 -- Componentwise_Assignment (Flag14-Sem)
4234 -- Suppress_Assignment_Checks (Flag18-Sem)
4236 -- Note: if a range check is required, then the Do_Range_Check flag
4237 -- is set in the Expression (right hand side), with the check being
4238 -- done against the type of the Name (left hand side).
4240 -- Note: the back end places some restrictions on the form of the
4241 -- Expression field. If the object being assigned to is Atomic, then
4242 -- the Expression may not have the form of an aggregate (since this
4243 -- might cause the back end to generate separate assignments). In this
4244 -- case the front end must generate an extra temporary and initialize
4245 -- this temporary as required (the temporary itself is not atomic).
4247 -----------------------
4248 -- 5.3 If Statement --
4249 -----------------------
4251 -- IF_STATEMENT ::=
4252 -- if CONDITION then
4253 -- SEQUENCE_OF_STATEMENTS
4254 -- {elsif CONDITION then
4255 -- SEQUENCE_OF_STATEMENTS}
4256 -- [else
4257 -- SEQUENCE_OF_STATEMENTS]
4258 -- end if;
4260 -- Gigi restriction: This expander ensures that the type of the
4261 -- Condition fields is always Standard.Boolean, even if the type
4262 -- in the source is some non-standard boolean type.
4264 -- N_If_Statement
4265 -- Sloc points to IF
4266 -- Condition (Node1)
4267 -- Then_Statements (List2)
4268 -- Elsif_Parts (List3) (set to No_List if none present)
4269 -- Else_Statements (List4) (set to No_List if no else part present)
4270 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4272 -- N_Elsif_Part
4273 -- Sloc points to ELSIF
4274 -- Condition (Node1)
4275 -- Then_Statements (List2)
4276 -- Condition_Actions (List3-Sem)
4278 --------------------
4279 -- 5.3 Condition --
4280 --------------------
4282 -- CONDITION ::= boolean_EXPRESSION
4284 -------------------------
4285 -- 5.4 Case Statement --
4286 -------------------------
4288 -- CASE_STATEMENT ::=
4289 -- case EXPRESSION is
4290 -- CASE_STATEMENT_ALTERNATIVE
4291 -- {CASE_STATEMENT_ALTERNATIVE}
4292 -- end case;
4294 -- Note: the Alternatives can contain pragmas. These only occur at
4295 -- the start of the list, since any pragmas occurring after the first
4296 -- alternative are absorbed into the corresponding statement sequence.
4298 -- N_Case_Statement
4299 -- Sloc points to CASE
4300 -- Expression (Node3)
4301 -- Alternatives (List4)
4302 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4304 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4305 -- followed by a statement, and this is true in the tree even in Ada
4306 -- 2012 mode (the parser inserts a null statement marked with the flag
4307 -- Comes_From_Source False).
4309 -------------------------------------
4310 -- 5.4 Case Statement Alternative --
4311 -------------------------------------
4313 -- CASE_STATEMENT_ALTERNATIVE ::=
4314 -- when DISCRETE_CHOICE_LIST =>
4315 -- SEQUENCE_OF_STATEMENTS
4317 -- N_Case_Statement_Alternative
4318 -- Sloc points to WHEN
4319 -- Discrete_Choices (List4)
4320 -- Statements (List3)
4322 -------------------------
4323 -- 5.5 Loop Statement --
4324 -------------------------
4326 -- LOOP_STATEMENT ::=
4327 -- [loop_STATEMENT_IDENTIFIER :]
4328 -- [ITERATION_SCHEME] loop
4329 -- SEQUENCE_OF_STATEMENTS
4330 -- end loop [loop_IDENTIFIER];
4332 -- Note: The occurrence of a loop label is not a defining identifier
4333 -- but rather a referencing occurrence. The defining occurrence is in
4334 -- the implicit label declaration which occurs in the innermost
4335 -- enclosing block.
4337 -- Note: there is always a loop statement identifier present in
4338 -- the tree, even if none was given in the source. In the case where
4339 -- no loop identifier is given in the source, the parser creates
4340 -- a name of the form _Loop_n, where n is a decimal integer (the
4341 -- two underlines ensure that the loop names created in this manner
4342 -- do not conflict with any user defined identifiers), and the flag
4343 -- Has_Created_Identifier is set to True. The only exception to the
4344 -- rule that all loop statement nodes have identifiers occurs for
4345 -- loops constructed by the expander, and the semantic analyzer will
4346 -- create and supply dummy loop identifiers in these cases.
4348 -- N_Loop_Statement
4349 -- Sloc points to LOOP
4350 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4351 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4352 -- Statements (List3)
4353 -- End_Label (Node4)
4354 -- Has_Created_Identifier (Flag15)
4355 -- Is_Null_Loop (Flag16)
4356 -- Suppress_Loop_Warnings (Flag17)
4358 -- Note: the parser fills in the Identifier field if there is an
4359 -- explicit loop identifier. Otherwise the parser leaves this field
4360 -- set to Empty, and then the semantic processing for a loop statement
4361 -- creates an identifier, setting the Has_Created_Identifier flag to
4362 -- True. So after semantic analysis, the Identifier is always set,
4363 -- referencing an identifier whose entity has an Ekind of E_Loop.
4365 ---------------------------
4366 -- 5.5 Iteration Scheme --
4367 ---------------------------
4369 -- ITERATION_SCHEME ::=
4370 -- while CONDITION
4371 -- | for LOOP_PARAMETER_SPECIFICATION
4372 -- | for ITERATOR_SPECIFICATION
4374 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4375 -- is present at a time, in which case the other one is empty. Both are
4376 -- empty in the case of a WHILE loop.
4378 -- Gigi restriction: This expander ensures that the type of the
4379 -- Condition field is always Standard.Boolean, even if the type
4380 -- in the source is some non-standard boolean type.
4382 -- N_Iteration_Scheme
4383 -- Sloc points to WHILE or FOR
4384 -- Condition (Node1) (set to Empty if FOR case)
4385 -- Condition_Actions (List3-Sem)
4386 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
4387 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4389 ---------------------------------------
4390 -- 5.5 Loop Parameter Specification --
4391 ---------------------------------------
4393 -- LOOP_PARAMETER_SPECIFICATION ::=
4394 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4396 -- N_Loop_Parameter_Specification
4397 -- Sloc points to first identifier
4398 -- Defining_Identifier (Node1)
4399 -- Reverse_Present (Flag15)
4400 -- Discrete_Subtype_Definition (Node4)
4402 -----------------------------------
4403 -- 5.5.1 Iterator Specification --
4404 -----------------------------------
4406 -- ITERATOR_SPECIFICATION ::=
4407 -- DEFINING_IDENTIFIER in [reverse] NAME
4408 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4410 -- N_Iterator_Specification
4411 -- Sloc points to defining identifier
4412 -- Defining_Identifier (Node1)
4413 -- Name (Node2)
4414 -- Reverse_Present (Flag15)
4415 -- Of_Present (Flag16)
4416 -- Subtype_Indication (Node5)
4418 -- Note: The Of_Present flag distinguishes the two forms
4420 --------------------------
4421 -- 5.6 Block Statement --
4422 --------------------------
4424 -- BLOCK_STATEMENT ::=
4425 -- [block_STATEMENT_IDENTIFIER:]
4426 -- [declare
4427 -- DECLARATIVE_PART]
4428 -- begin
4429 -- HANDLED_SEQUENCE_OF_STATEMENTS
4430 -- end [block_IDENTIFIER];
4432 -- Note that the occurrence of a block identifier is not a defining
4433 -- identifier, but rather a referencing occurrence. The defining
4434 -- occurrence is an E_Block entity declared by the implicit label
4435 -- declaration which occurs in the innermost enclosing block statement
4436 -- or body; the block identifier denotes that E_Block.
4438 -- For block statements that come from source code, there is always a
4439 -- block statement identifier present in the tree, denoting an
4440 -- E_Block. In the case where no block identifier is given in the
4441 -- source, the parser creates a name of the form B_n, where n is a
4442 -- decimal integer, and the flag Has_Created_Identifier is set to
4443 -- True. Blocks constructed by the expander usually have no identifier,
4444 -- and no corresponding entity.
4446 -- Note: the block statement created for an extended return statement
4447 -- has an entity, and this entity is an E_Return_Statement, rather than
4448 -- the usual E_Block.
4450 -- Note: Exception_Junk is set for the wrapping blocks created during
4451 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4453 -- Note: from a control flow viewpoint, a block statement defines an
4454 -- extended basic block, i.e. the entry of the block dominates every
4455 -- statement in the sequence. When generating new statements with
4456 -- exception handlers in the expander at the end of a sequence that
4457 -- comes from source code, it can be necessary to wrap them all in a
4458 -- block statement in order to expose the implicit control flow to
4459 -- gigi and thus prevent it from issuing bogus control flow warnings.
4461 -- N_Block_Statement
4462 -- Sloc points to DECLARE or BEGIN
4463 -- Identifier (Node1) block direct name (set to Empty if not present)
4464 -- Declarations (List2) (set to No_List if no DECLARE part)
4465 -- Handled_Statement_Sequence (Node4)
4466 -- Is_Task_Master (Flag5-Sem)
4467 -- Activation_Chain_Entity (Node3-Sem)
4468 -- Has_Created_Identifier (Flag15)
4469 -- Is_Task_Allocation_Block (Flag6)
4470 -- Is_Asynchronous_Call_Block (Flag7)
4471 -- Exception_Junk (Flag8-Sem)
4472 -- Is_Finalization_Wrapper (Flag9-Sem)
4474 -------------------------
4475 -- 5.7 Exit Statement --
4476 -------------------------
4478 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4480 -- Gigi restriction: This expander ensures that the type of the
4481 -- Condition field is always Standard.Boolean, even if the type
4482 -- in the source is some non-standard boolean type.
4484 -- N_Exit_Statement
4485 -- Sloc points to EXIT
4486 -- Name (Node2) (set to Empty if no loop name present)
4487 -- Condition (Node1) (set to Empty if no WHEN part present)
4488 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
4490 -------------------------
4491 -- 5.9 Goto Statement --
4492 -------------------------
4494 -- GOTO_STATEMENT ::= goto label_NAME;
4496 -- N_Goto_Statement
4497 -- Sloc points to GOTO
4498 -- Name (Node2)
4499 -- Exception_Junk (Flag8-Sem)
4501 ---------------------------------
4502 -- 6.1 Subprogram Declaration --
4503 ---------------------------------
4505 -- SUBPROGRAM_DECLARATION ::=
4506 -- SUBPROGRAM_SPECIFICATION
4507 -- [ASPECT_SPECIFICATIONS];
4509 -- N_Subprogram_Declaration
4510 -- Sloc points to FUNCTION or PROCEDURE
4511 -- Specification (Node1)
4512 -- Body_To_Inline (Node3-Sem)
4513 -- Corresponding_Body (Node5-Sem)
4514 -- Parent_Spec (Node4-Sem)
4516 ------------------------------------------
4517 -- 6.1 Abstract Subprogram Declaration --
4518 ------------------------------------------
4520 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4521 -- SUBPROGRAM_SPECIFICATION is abstract
4522 -- [ASPECT_SPECIFICATIONS];
4524 -- N_Abstract_Subprogram_Declaration
4525 -- Sloc points to ABSTRACT
4526 -- Specification (Node1)
4528 -----------------------------------
4529 -- 6.1 Subprogram Specification --
4530 -----------------------------------
4532 -- SUBPROGRAM_SPECIFICATION ::=
4533 -- [[not] overriding]
4534 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4535 -- | [[not] overriding]
4536 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4538 -- Note: there are no separate nodes for the profiles, instead the
4539 -- information appears directly in the following nodes.
4541 -- N_Function_Specification
4542 -- Sloc points to FUNCTION
4543 -- Defining_Unit_Name (Node1) (the designator)
4544 -- Elaboration_Boolean (Node2-Sem)
4545 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4546 -- Null_Exclusion_Present (Flag11)
4547 -- Result_Definition (Node4) for result subtype
4548 -- Generic_Parent (Node5-Sem)
4549 -- Must_Override (Flag14) set if overriding indicator present
4550 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4552 -- N_Procedure_Specification
4553 -- Sloc points to PROCEDURE
4554 -- Defining_Unit_Name (Node1)
4555 -- Elaboration_Boolean (Node2-Sem)
4556 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4557 -- Generic_Parent (Node5-Sem)
4558 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4559 -- Must_Override (Flag14) set if overriding indicator present
4560 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4562 -- Note: overriding indicator is an Ada 2005 feature
4564 ---------------------
4565 -- 6.1 Designator --
4566 ---------------------
4568 -- DESIGNATOR ::=
4569 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4571 -- Designators that are simply identifiers or operator symbols appear
4572 -- directly in the tree in this form. The following node is used only
4573 -- in the case where the designator has a parent unit name component.
4575 -- N_Designator
4576 -- Sloc points to period
4577 -- Name (Node2) holds the parent unit name. Note that this is always
4578 -- non-Empty, since this node is only used for the case where a
4579 -- parent library unit package name is present.
4580 -- Identifier (Node1)
4582 -- Note that the identifier can also be an operator symbol here
4584 ------------------------------
4585 -- 6.1 Defining Designator --
4586 ------------------------------
4588 -- DEFINING_DESIGNATOR ::=
4589 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4591 -------------------------------------
4592 -- 6.1 Defining Program Unit Name --
4593 -------------------------------------
4595 -- DEFINING_PROGRAM_UNIT_NAME ::=
4596 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4598 -- The parent unit name is present only in the case of a child unit
4599 -- name (permissible only for Ada 95 for a library level unit, i.e.
4600 -- a unit at scope level one). If no such name is present, the defining
4601 -- program unit name is represented simply as the defining identifier.
4602 -- In the child unit case, the following node is used to represent the
4603 -- child unit name.
4605 -- N_Defining_Program_Unit_Name
4606 -- Sloc points to period
4607 -- Name (Node2) holds the parent unit name. Note that this is always
4608 -- non-Empty, since this node is only used for the case where a
4609 -- parent unit name is present.
4610 -- Defining_Identifier (Node1)
4612 --------------------------
4613 -- 6.1 Operator Symbol --
4614 --------------------------
4616 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4618 -- Note: the fields of the N_Operator_Symbol node are laid out to
4619 -- match the corresponding fields of an N_Character_Literal node. This
4620 -- allows easy conversion of the operator symbol node into a character
4621 -- literal node in the case where a string constant of the form of an
4622 -- operator symbol is scanned out as such, but turns out semantically
4623 -- to be a string literal that is not an operator. For details see
4624 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4626 -- N_Operator_Symbol
4627 -- Sloc points to literal
4628 -- Chars (Name1) contains the Name_Id for the operator symbol
4629 -- Strval (Str3) Id of string value. This is used if the operator
4630 -- symbol turns out to be a normal string after all.
4631 -- Entity (Node4-Sem)
4632 -- Associated_Node (Node4-Sem)
4633 -- Has_Private_View (Flag11-Sem) set in generic units.
4634 -- Etype (Node5-Sem)
4636 -- Note: the Strval field may be set to No_String for generated
4637 -- operator symbols that are known not to be string literals
4638 -- semantically.
4640 -----------------------------------
4641 -- 6.1 Defining Operator Symbol --
4642 -----------------------------------
4644 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4646 -- A defining operator symbol is an entity, which has additional
4647 -- fields depending on the setting of the Ekind field. These
4648 -- additional fields are defined (and access subprograms declared)
4649 -- in package Einfo.
4651 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4652 -- are deliberately layed out to match the layout of fields in an
4653 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4654 -- an operator symbol node into a defining operator symbol node.
4655 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4656 -- for further details.
4658 -- N_Defining_Operator_Symbol
4659 -- Sloc points to literal
4660 -- Chars (Name1) contains the Name_Id for the operator symbol
4661 -- Next_Entity (Node2-Sem)
4662 -- Scope (Node3-Sem)
4663 -- Etype (Node5-Sem)
4665 ----------------------------
4666 -- 6.1 Parameter Profile --
4667 ----------------------------
4669 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4671 ---------------------------------------
4672 -- 6.1 Parameter and Result Profile --
4673 ---------------------------------------
4675 -- PARAMETER_AND_RESULT_PROFILE ::=
4676 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4677 -- | [FORMAL_PART] return ACCESS_DEFINITION
4679 -- There is no explicit node in the tree for a parameter and result
4680 -- profile. Instead the information appears directly in the parent.
4682 ----------------------
4683 -- 6.1 Formal Part --
4684 ----------------------
4686 -- FORMAL_PART ::=
4687 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4689 ----------------------------------
4690 -- 6.1 Parameter Specification --
4691 ----------------------------------
4693 -- PARAMETER_SPECIFICATION ::=
4694 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
4695 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
4696 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4697 -- [:= DEFAULT_EXPRESSION]
4699 -- Although the syntax allows multiple identifiers in the list, the
4700 -- semantics is as though successive specifications were given with
4701 -- identical type definition and expression components. To simplify
4702 -- semantic processing, the parser represents a multiple declaration
4703 -- case as a sequence of single Specifications, using the More_Ids and
4704 -- Prev_Ids flags to preserve the original source form as described
4705 -- in the section on "Handling of Defining Identifier Lists".
4707 -- ALIASED can only be present in Ada 2012 mode
4709 -- N_Parameter_Specification
4710 -- Sloc points to first identifier
4711 -- Defining_Identifier (Node1)
4712 -- Aliased_Present (Flag4)
4713 -- In_Present (Flag15)
4714 -- Out_Present (Flag17)
4715 -- Null_Exclusion_Present (Flag11)
4716 -- Parameter_Type (Node2) subtype mark or access definition
4717 -- Expression (Node3) (set to Empty if no default expression present)
4718 -- Do_Accessibility_Check (Flag13-Sem)
4719 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4720 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4721 -- Default_Expression (Node5-Sem)
4723 ---------------
4724 -- 6.1 Mode --
4725 ---------------
4727 -- MODE ::= [in] | in out | out
4729 -- There is no explicit node in the tree for the Mode. Instead the
4730 -- In_Present and Out_Present flags are set in the parent node to
4731 -- record the presence of keywords specifying the mode.
4733 --------------------------
4734 -- 6.3 Subprogram Body --
4735 --------------------------
4737 -- SUBPROGRAM_BODY ::=
4738 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
4739 -- DECLARATIVE_PART
4740 -- begin
4741 -- HANDLED_SEQUENCE_OF_STATEMENTS
4742 -- end [DESIGNATOR];
4744 -- N_Subprogram_Body
4745 -- Sloc points to FUNCTION or PROCEDURE
4746 -- Specification (Node1)
4747 -- Declarations (List2)
4748 -- Handled_Statement_Sequence (Node4)
4749 -- Activation_Chain_Entity (Node3-Sem)
4750 -- Corresponding_Spec (Node5-Sem)
4751 -- Acts_As_Spec (Flag4-Sem)
4752 -- Bad_Is_Detected (Flag15) used only by parser
4753 -- Do_Storage_Check (Flag17-Sem)
4754 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4755 -- Is_Entry_Barrier_Function (Flag8-Sem)
4756 -- Is_Task_Master (Flag5-Sem)
4757 -- Was_Originally_Stub (Flag13-Sem)
4758 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4760 -------------------------
4761 -- Expression Function --
4762 -------------------------
4764 -- This is an Ada 2012 extension, we put it here for now, to be labeled
4765 -- and put in its proper section when we know exactly where that is!
4767 -- EXPRESSION_FUNCTION ::=
4768 -- FUNCTION SPECIFICATION IS (EXPRESSION);
4770 -- N_Expression_Function
4771 -- Sloc points to FUNCTION
4772 -- Specification (Node1)
4773 -- Expression (Node3)
4774 -- Corresponding_Spec (Node5-Sem)
4776 -----------------------------------
4777 -- 6.4 Procedure Call Statement --
4778 -----------------------------------
4780 -- PROCEDURE_CALL_STATEMENT ::=
4781 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4783 -- Note: the reason that a procedure call has expression fields is
4784 -- that it semantically resembles an expression, e.g. overloading is
4785 -- allowed and a type is concocted for semantic processing purposes.
4786 -- Certain of these fields, such as Parens are not relevant, but it
4787 -- is easier to just supply all of them together!
4789 -- N_Procedure_Call_Statement
4790 -- Sloc points to first token of name or prefix
4791 -- Name (Node2) stores name or prefix
4792 -- Parameter_Associations (List3) (set to No_List if no
4793 -- actual parameter part)
4794 -- First_Named_Actual (Node4-Sem)
4795 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4796 -- Do_Tag_Check (Flag13-Sem)
4797 -- No_Elaboration_Check (Flag14-Sem)
4798 -- Parameter_List_Truncated (Flag17-Sem)
4799 -- ABE_Is_Certain (Flag18-Sem)
4800 -- plus fields for expression
4802 -- If any IN parameter requires a range check, then the corresponding
4803 -- argument expression has the Do_Range_Check flag set, and the range
4804 -- check is done against the formal type. Note that this argument
4805 -- expression may appear directly in the Parameter_Associations list,
4806 -- or may be a descendent of an N_Parameter_Association node that
4807 -- appears in this list.
4809 ------------------------
4810 -- 6.4 Function Call --
4811 ------------------------
4813 -- FUNCTION_CALL ::=
4814 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4816 -- Note: the parser may generate an indexed component node or simply
4817 -- a name node instead of a function call node. The semantic pass must
4818 -- correct this misidentification.
4820 -- N_Function_Call
4821 -- Sloc points to first token of name or prefix
4822 -- Name (Node2) stores name or prefix
4823 -- Parameter_Associations (List3) (set to No_List if no
4824 -- actual parameter part)
4825 -- First_Named_Actual (Node4-Sem)
4826 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4827 -- In_Assertion_Expression (Flag4-Sem)
4828 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4829 -- Do_Tag_Check (Flag13-Sem)
4830 -- No_Elaboration_Check (Flag14-Sem)
4831 -- Parameter_List_Truncated (Flag17-Sem)
4832 -- ABE_Is_Certain (Flag18-Sem)
4833 -- plus fields for expression
4835 --------------------------------
4836 -- 6.4 Actual Parameter Part --
4837 --------------------------------
4839 -- ACTUAL_PARAMETER_PART ::=
4840 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4842 --------------------------------
4843 -- 6.4 Parameter Association --
4844 --------------------------------
4846 -- PARAMETER_ASSOCIATION ::=
4847 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4849 -- Note: the N_Parameter_Association node is built only if a formal
4850 -- parameter selector name is present, otherwise the parameter
4851 -- association appears in the tree simply as the node for the
4852 -- explicit actual parameter.
4854 -- N_Parameter_Association
4855 -- Sloc points to formal parameter
4856 -- Selector_Name (Node2) (always non-Empty)
4857 -- Explicit_Actual_Parameter (Node3)
4858 -- Next_Named_Actual (Node4-Sem)
4859 -- Is_Accessibility_Actual (Flag13-Sem)
4861 ---------------------------
4862 -- 6.4 Actual Parameter --
4863 ---------------------------
4865 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4867 ---------------------------
4868 -- 6.5 Return Statement --
4869 ---------------------------
4871 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4873 -- EXTENDED_RETURN_STATEMENT ::=
4874 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4875 -- [:= EXPRESSION] [do
4876 -- HANDLED_SEQUENCE_OF_STATEMENTS
4877 -- end return];
4879 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4881 -- The term "return statement" is defined in 6.5 to mean either a
4882 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
4883 -- the use of this term, since it used to mean someting else in earlier
4884 -- versions of Ada.
4886 -- N_Simple_Return_Statement
4887 -- Sloc points to RETURN
4888 -- Return_Statement_Entity (Node5-Sem)
4889 -- Expression (Node3) (set to Empty if no expression present)
4890 -- Storage_Pool (Node1-Sem)
4891 -- Procedure_To_Call (Node2-Sem)
4892 -- Do_Tag_Check (Flag13-Sem)
4893 -- By_Ref (Flag5-Sem)
4894 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
4896 -- Note: Return_Statement_Entity points to an E_Return_Statement
4898 -- If a range check is required, then Do_Range_Check is set on the
4899 -- Expression. The check is against the return subtype of the function.
4901 -- N_Extended_Return_Statement
4902 -- Sloc points to RETURN
4903 -- Return_Statement_Entity (Node5-Sem)
4904 -- Return_Object_Declarations (List3)
4905 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
4906 -- Storage_Pool (Node1-Sem)
4907 -- Procedure_To_Call (Node2-Sem)
4908 -- Do_Tag_Check (Flag13-Sem)
4909 -- By_Ref (Flag5-Sem)
4911 -- Note: Return_Statement_Entity points to an E_Return_Statement.
4913 -- Note that Return_Object_Declarations is a list containing the
4914 -- N_Object_Declaration -- see comment on this field above.
4916 -- The declared object will have Is_Return_Object = True.
4918 -- There is no such syntactic category as return_object_declaration
4919 -- in the RM. Return_Object_Declarations represents this portion of
4920 -- the syntax for EXTENDED_RETURN_STATEMENT:
4921 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4922 -- [:= EXPRESSION]
4924 -- There are two entities associated with an extended_return_statement:
4925 -- the Return_Statement_Entity represents the statement itself, and the
4926 -- Defining_Identifier of the Object_Declaration in
4927 -- Return_Object_Declarations represents the object being
4928 -- returned. N_Simple_Return_Statement has only the former.
4930 ------------------------------
4931 -- 7.1 Package Declaration --
4932 ------------------------------
4934 -- PACKAGE_DECLARATION ::=
4935 -- PACKAGE_SPECIFICATION;
4937 -- Note: the activation chain entity for a package spec is used for
4938 -- all tasks declared in the package spec, or in the package body.
4940 -- N_Package_Declaration
4941 -- Sloc points to PACKAGE
4942 -- Specification (Node1)
4943 -- Corresponding_Body (Node5-Sem)
4944 -- Parent_Spec (Node4-Sem)
4945 -- Activation_Chain_Entity (Node3-Sem)
4947 --------------------------------
4948 -- 7.1 Package Specification --
4949 --------------------------------
4951 -- PACKAGE_SPECIFICATION ::=
4952 -- package DEFINING_PROGRAM_UNIT_NAME
4953 -- [ASPECT_SPECIFICATIONS]
4954 -- is
4955 -- {BASIC_DECLARATIVE_ITEM}
4956 -- [private
4957 -- {BASIC_DECLARATIVE_ITEM}]
4958 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
4960 -- N_Package_Specification
4961 -- Sloc points to PACKAGE
4962 -- Defining_Unit_Name (Node1)
4963 -- Visible_Declarations (List2)
4964 -- Private_Declarations (List3) (set to No_List if no private
4965 -- part present)
4966 -- End_Label (Node4)
4967 -- Generic_Parent (Node5-Sem)
4968 -- Limited_View_Installed (Flag18-Sem)
4970 -----------------------
4971 -- 7.1 Package Body --
4972 -----------------------
4974 -- PACKAGE_BODY ::=
4975 -- package body DEFINING_PROGRAM_UNIT_NAME
4976 -- [ASPECT_SPECIFICATIONS]
4977 -- is
4978 -- DECLARATIVE_PART
4979 -- [begin
4980 -- HANDLED_SEQUENCE_OF_STATEMENTS]
4981 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
4983 -- N_Package_Body
4984 -- Sloc points to PACKAGE
4985 -- Defining_Unit_Name (Node1)
4986 -- Declarations (List2)
4987 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4988 -- Corresponding_Spec (Node5-Sem)
4989 -- Was_Originally_Stub (Flag13-Sem)
4991 -- Note: if a source level package does not contain a handled sequence
4992 -- of statements, then the parser supplies a dummy one with a null
4993 -- sequence of statements. Comes_From_Source will be False in this
4994 -- constructed sequence. The reason we need this is for the End_Label
4995 -- field in the HSS.
4997 -----------------------------------
4998 -- 7.4 Private Type Declaration --
4999 -----------------------------------
5001 -- PRIVATE_TYPE_DECLARATION ::=
5002 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5003 -- is [[abstract] tagged] [limited] private;
5005 -- Note: TAGGED is not permitted in Ada 83 mode
5007 -- N_Private_Type_Declaration
5008 -- Sloc points to TYPE
5009 -- Defining_Identifier (Node1)
5010 -- Discriminant_Specifications (List4) (set to No_List if no
5011 -- discriminant part)
5012 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5013 -- Abstract_Present (Flag4)
5014 -- Tagged_Present (Flag15)
5015 -- Limited_Present (Flag17)
5017 ----------------------------------------
5018 -- 7.4 Private Extension Declaration --
5019 ----------------------------------------
5021 -- PRIVATE_EXTENSION_DECLARATION ::=
5022 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5023 -- [abstract] [limited | synchronized]
5024 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5025 -- with private;
5027 -- Note: LIMITED, and private extension declarations are not allowed
5028 -- in Ada 83 mode.
5030 -- N_Private_Extension_Declaration
5031 -- Sloc points to TYPE
5032 -- Defining_Identifier (Node1)
5033 -- Discriminant_Specifications (List4) (set to No_List if no
5034 -- discriminant part)
5035 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5036 -- Abstract_Present (Flag4)
5037 -- Limited_Present (Flag17)
5038 -- Synchronized_Present (Flag7)
5039 -- Subtype_Indication (Node5)
5040 -- Interface_List (List2) (set to No_List if none)
5042 ---------------------
5043 -- 8.4 Use Clause --
5044 ---------------------
5046 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5048 -----------------------------
5049 -- 8.4 Use Package Clause --
5050 -----------------------------
5052 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5054 -- N_Use_Package_Clause
5055 -- Sloc points to USE
5056 -- Names (List2)
5057 -- Next_Use_Clause (Node3-Sem)
5058 -- Hidden_By_Use_Clause (Elist4-Sem)
5060 --------------------------
5061 -- 8.4 Use Type Clause --
5062 --------------------------
5064 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5066 -- Note: use type clause is not permitted in Ada 83 mode
5068 -- Note: the ALL keyword can appear only in Ada 2012 mode
5070 -- N_Use_Type_Clause
5071 -- Sloc points to USE
5072 -- Subtype_Marks (List2)
5073 -- Next_Use_Clause (Node3-Sem)
5074 -- Hidden_By_Use_Clause (Elist4-Sem)
5075 -- Used_Operations (Elist5-Sem)
5076 -- All_Present (Flag15)
5078 -------------------------------
5079 -- 8.5 Renaming Declaration --
5080 -------------------------------
5082 -- RENAMING_DECLARATION ::=
5083 -- OBJECT_RENAMING_DECLARATION
5084 -- | EXCEPTION_RENAMING_DECLARATION
5085 -- | PACKAGE_RENAMING_DECLARATION
5086 -- | SUBPROGRAM_RENAMING_DECLARATION
5087 -- | GENERIC_RENAMING_DECLARATION
5089 --------------------------------------
5090 -- 8.5 Object Renaming Declaration --
5091 --------------------------------------
5093 -- OBJECT_RENAMING_DECLARATION ::=
5094 -- DEFINING_IDENTIFIER :
5095 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
5096 -- | DEFINING_IDENTIFIER :
5097 -- ACCESS_DEFINITION renames object_NAME;
5099 -- Note: Access_Definition is an optional field that gives support to
5100 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5101 -- Subtype_Indication field or else the Access_Definition field.
5103 -- N_Object_Renaming_Declaration
5104 -- Sloc points to first identifier
5105 -- Defining_Identifier (Node1)
5106 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5107 -- Subtype_Mark (Node4) (set to Empty if not present)
5108 -- Access_Definition (Node3) (set to Empty if not present)
5109 -- Name (Node2)
5110 -- Corresponding_Generic_Association (Node5-Sem)
5112 -----------------------------------------
5113 -- 8.5 Exception Renaming Declaration --
5114 -----------------------------------------
5116 -- EXCEPTION_RENAMING_DECLARATION ::=
5117 -- DEFINING_IDENTIFIER : exception renames exception_NAME;
5119 -- N_Exception_Renaming_Declaration
5120 -- Sloc points to first identifier
5121 -- Defining_Identifier (Node1)
5122 -- Name (Node2)
5124 ---------------------------------------
5125 -- 8.5 Package Renaming Declaration --
5126 ---------------------------------------
5128 -- PACKAGE_RENAMING_DECLARATION ::=
5129 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
5131 -- N_Package_Renaming_Declaration
5132 -- Sloc points to PACKAGE
5133 -- Defining_Unit_Name (Node1)
5134 -- Name (Node2)
5135 -- Parent_Spec (Node4-Sem)
5137 ------------------------------------------
5138 -- 8.5 Subprogram Renaming Declaration --
5139 ------------------------------------------
5141 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5142 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
5144 -- N_Subprogram_Renaming_Declaration
5145 -- Sloc points to RENAMES
5146 -- Specification (Node1)
5147 -- Name (Node2)
5148 -- Parent_Spec (Node4-Sem)
5149 -- Corresponding_Spec (Node5-Sem)
5150 -- Corresponding_Formal_Spec (Node3-Sem)
5151 -- From_Default (Flag6-Sem)
5153 -----------------------------------------
5154 -- 8.5.5 Generic Renaming Declaration --
5155 -----------------------------------------
5157 -- GENERIC_RENAMING_DECLARATION ::=
5158 -- generic package DEFINING_PROGRAM_UNIT_NAME
5159 -- renames generic_package_NAME
5160 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5161 -- renames generic_procedure_NAME
5162 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5163 -- renames generic_function_NAME
5165 -- N_Generic_Package_Renaming_Declaration
5166 -- Sloc points to GENERIC
5167 -- Defining_Unit_Name (Node1)
5168 -- Name (Node2)
5169 -- Parent_Spec (Node4-Sem)
5171 -- N_Generic_Procedure_Renaming_Declaration
5172 -- Sloc points to GENERIC
5173 -- Defining_Unit_Name (Node1)
5174 -- Name (Node2)
5175 -- Parent_Spec (Node4-Sem)
5177 -- N_Generic_Function_Renaming_Declaration
5178 -- Sloc points to GENERIC
5179 -- Defining_Unit_Name (Node1)
5180 -- Name (Node2)
5181 -- Parent_Spec (Node4-Sem)
5183 --------------------------------
5184 -- 9.1 Task Type Declaration --
5185 --------------------------------
5187 -- TASK_TYPE_DECLARATION ::=
5188 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5189 -- [ASPECT_SPECIFICATIONS]
5190 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5192 -- N_Task_Type_Declaration
5193 -- Sloc points to TASK
5194 -- Defining_Identifier (Node1)
5195 -- Discriminant_Specifications (List4) (set to No_List if no
5196 -- discriminant part)
5197 -- Interface_List (List2) (set to No_List if none)
5198 -- Task_Definition (Node3) (set to Empty if not present)
5199 -- Corresponding_Body (Node5-Sem)
5201 ----------------------------------
5202 -- 9.1 Single Task Declaration --
5203 ----------------------------------
5205 -- SINGLE_TASK_DECLARATION ::=
5206 -- task DEFINING_IDENTIFIER
5207 -- [ASPECT_SPECIFICATIONS]
5208 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5210 -- N_Single_Task_Declaration
5211 -- Sloc points to TASK
5212 -- Defining_Identifier (Node1)
5213 -- Interface_List (List2) (set to No_List if none)
5214 -- Task_Definition (Node3) (set to Empty if not present)
5216 --------------------------
5217 -- 9.1 Task Definition --
5218 --------------------------
5220 -- TASK_DEFINITION ::=
5221 -- {TASK_ITEM}
5222 -- [private
5223 -- {TASK_ITEM}]
5224 -- end [task_IDENTIFIER]
5226 -- Note: as a result of semantic analysis, the list of task items can
5227 -- include implicit type declarations resulting from entry families.
5229 -- N_Task_Definition
5230 -- Sloc points to first token of task definition
5231 -- Visible_Declarations (List2)
5232 -- Private_Declarations (List3) (set to No_List if no private part)
5233 -- End_Label (Node4)
5234 -- Has_Storage_Size_Pragma (Flag5-Sem)
5235 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5237 --------------------
5238 -- 9.1 Task Item --
5239 --------------------
5241 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5243 --------------------
5244 -- 9.1 Task Body --
5245 --------------------
5247 -- TASK_BODY ::=
5248 -- task body task_DEFINING_IDENTIFIER
5249 -- [ASPECT_SPECIFICATIONS]
5250 -- is
5251 -- DECLARATIVE_PART
5252 -- begin
5253 -- HANDLED_SEQUENCE_OF_STATEMENTS
5254 -- end [task_IDENTIFIER];
5256 -- Gigi restriction: This node never appears
5258 -- N_Task_Body
5259 -- Sloc points to TASK
5260 -- Defining_Identifier (Node1)
5261 -- Declarations (List2)
5262 -- Handled_Statement_Sequence (Node4)
5263 -- Is_Task_Master (Flag5-Sem)
5264 -- Activation_Chain_Entity (Node3-Sem)
5265 -- Corresponding_Spec (Node5-Sem)
5266 -- Was_Originally_Stub (Flag13-Sem)
5268 -------------------------------------
5269 -- 9.4 Protected Type Declaration --
5270 -------------------------------------
5272 -- PROTECTED_TYPE_DECLARATION ::=
5273 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5274 -- [ASPECT_SPECIFICATIONS]
5275 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5277 -- Note: protected type declarations are not permitted in Ada 83 mode
5279 -- N_Protected_Type_Declaration
5280 -- Sloc points to PROTECTED
5281 -- Defining_Identifier (Node1)
5282 -- Discriminant_Specifications (List4) (set to No_List if no
5283 -- discriminant part)
5284 -- Interface_List (List2) (set to No_List if none)
5285 -- Protected_Definition (Node3)
5286 -- Corresponding_Body (Node5-Sem)
5288 ---------------------------------------
5289 -- 9.4 Single Protected Declaration --
5290 ---------------------------------------
5292 -- SINGLE_PROTECTED_DECLARATION ::=
5293 -- protected DEFINING_IDENTIFIER
5294 -- [ASPECT_SPECIFICATIONS]
5295 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5297 -- Note: single protected declarations are not allowed in Ada 83 mode
5299 -- N_Single_Protected_Declaration
5300 -- Sloc points to PROTECTED
5301 -- Defining_Identifier (Node1)
5302 -- Interface_List (List2) (set to No_List if none)
5303 -- Protected_Definition (Node3)
5305 -------------------------------
5306 -- 9.4 Protected Definition --
5307 -------------------------------
5309 -- PROTECTED_DEFINITION ::=
5310 -- {PROTECTED_OPERATION_DECLARATION}
5311 -- [private
5312 -- {PROTECTED_ELEMENT_DECLARATION}]
5313 -- end [protected_IDENTIFIER]
5315 -- N_Protected_Definition
5316 -- Sloc points to first token of protected definition
5317 -- Visible_Declarations (List2)
5318 -- Private_Declarations (List3) (set to No_List if no private part)
5319 -- End_Label (Node4)
5321 ------------------------------------------
5322 -- 9.4 Protected Operation Declaration --
5323 ------------------------------------------
5325 -- PROTECTED_OPERATION_DECLARATION ::=
5326 -- SUBPROGRAM_DECLARATION
5327 -- | ENTRY_DECLARATION
5328 -- | REPRESENTATION_CLAUSE
5330 ----------------------------------------
5331 -- 9.4 Protected Element Declaration --
5332 ----------------------------------------
5334 -- PROTECTED_ELEMENT_DECLARATION ::=
5335 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5337 -------------------------
5338 -- 9.4 Protected Body --
5339 -------------------------
5341 -- PROTECTED_BODY ::=
5342 -- protected body DEFINING_IDENTIFIER
5343 -- [ASPECT_SPECIFICATIONS];
5344 -- is
5345 -- {PROTECTED_OPERATION_ITEM}
5346 -- end [protected_IDENTIFIER];
5348 -- Note: protected bodies are not allowed in Ada 83 mode
5350 -- Gigi restriction: This node never appears
5352 -- N_Protected_Body
5353 -- Sloc points to PROTECTED
5354 -- Defining_Identifier (Node1)
5355 -- Declarations (List2) protected operation items (and pragmas)
5356 -- End_Label (Node4)
5357 -- Corresponding_Spec (Node5-Sem)
5358 -- Was_Originally_Stub (Flag13-Sem)
5360 -----------------------------------
5361 -- 9.4 Protected Operation Item --
5362 -----------------------------------
5364 -- PROTECTED_OPERATION_ITEM ::=
5365 -- SUBPROGRAM_DECLARATION
5366 -- | SUBPROGRAM_BODY
5367 -- | ENTRY_BODY
5368 -- | REPRESENTATION_CLAUSE
5370 ------------------------------
5371 -- 9.5.2 Entry Declaration --
5372 ------------------------------
5374 -- ENTRY_DECLARATION ::=
5375 -- [[not] overriding]
5376 -- entry DEFINING_IDENTIFIER
5377 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
5379 -- N_Entry_Declaration
5380 -- Sloc points to ENTRY
5381 -- Defining_Identifier (Node1)
5382 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5383 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5384 -- Corresponding_Body (Node5-Sem)
5385 -- Must_Override (Flag14) set if overriding indicator present
5386 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5388 -- Note: overriding indicator is an Ada 2005 feature
5390 -----------------------------
5391 -- 9.5.2 Accept statement --
5392 -----------------------------
5394 -- ACCEPT_STATEMENT ::=
5395 -- accept entry_DIRECT_NAME
5396 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5397 -- HANDLED_SEQUENCE_OF_STATEMENTS
5398 -- end [entry_IDENTIFIER]];
5400 -- Gigi restriction: This node never appears
5402 -- Note: there are no explicit declarations allowed in an accept
5403 -- statement. However, the implicit declarations for any statement
5404 -- identifiers (labels and block/loop identifiers) are declarations
5405 -- that belong logically to the accept statement, and that is why
5406 -- there is a Declarations field in this node.
5408 -- N_Accept_Statement
5409 -- Sloc points to ACCEPT
5410 -- Entry_Direct_Name (Node1)
5411 -- Entry_Index (Node5) (set to Empty if not present)
5412 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5413 -- Handled_Statement_Sequence (Node4)
5414 -- Declarations (List2) (set to No_List if no declarations)
5416 ------------------------
5417 -- 9.5.2 Entry Index --
5418 ------------------------
5420 -- ENTRY_INDEX ::= EXPRESSION
5422 -----------------------
5423 -- 9.5.2 Entry Body --
5424 -----------------------
5426 -- ENTRY_BODY ::=
5427 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5428 -- DECLARATIVE_PART
5429 -- begin
5430 -- HANDLED_SEQUENCE_OF_STATEMENTS
5431 -- end [entry_IDENTIFIER];
5433 -- ENTRY_BARRIER ::= when CONDITION
5435 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5436 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5437 -- too full (it would otherwise have too many fields)
5439 -- Gigi restriction: This node never appears
5441 -- N_Entry_Body
5442 -- Sloc points to ENTRY
5443 -- Defining_Identifier (Node1)
5444 -- Entry_Body_Formal_Part (Node5)
5445 -- Declarations (List2)
5446 -- Handled_Statement_Sequence (Node4)
5447 -- Activation_Chain_Entity (Node3-Sem)
5449 -----------------------------------
5450 -- 9.5.2 Entry Body Formal Part --
5451 -----------------------------------
5453 -- ENTRY_BODY_FORMAL_PART ::=
5454 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5456 -- Note that an entry body formal part node is present even if it is
5457 -- empty. This reflects the grammar, in which it is the components of
5458 -- the entry body formal part that are optional, not the entry body
5459 -- formal part itself. Also this means that the barrier condition
5460 -- always has somewhere to be stored.
5462 -- Gigi restriction: This node never appears
5464 -- N_Entry_Body_Formal_Part
5465 -- Sloc points to first token
5466 -- Entry_Index_Specification (Node4) (set to Empty if not present)
5467 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5468 -- Condition (Node1) from entry barrier of entry body
5470 --------------------------
5471 -- 9.5.2 Entry Barrier --
5472 --------------------------
5474 -- ENTRY_BARRIER ::= when CONDITION
5476 --------------------------------------
5477 -- 9.5.2 Entry Index Specification --
5478 --------------------------------------
5480 -- ENTRY_INDEX_SPECIFICATION ::=
5481 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5483 -- Gigi restriction: This node never appears
5485 -- N_Entry_Index_Specification
5486 -- Sloc points to FOR
5487 -- Defining_Identifier (Node1)
5488 -- Discrete_Subtype_Definition (Node4)
5490 ---------------------------------
5491 -- 9.5.3 Entry Call Statement --
5492 ---------------------------------
5494 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5496 -- The parser may generate a procedure call for this construct. The
5497 -- semantic pass must correct this misidentification where needed.
5499 -- Gigi restriction: This node never appears
5501 -- N_Entry_Call_Statement
5502 -- Sloc points to first token of name
5503 -- Name (Node2)
5504 -- Parameter_Associations (List3) (set to No_List if no
5505 -- actual parameter part)
5506 -- First_Named_Actual (Node4-Sem)
5508 ------------------------------
5509 -- 9.5.4 Requeue Statement --
5510 ------------------------------
5512 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5514 -- Note: requeue statements are not permitted in Ada 83 mode
5516 -- Gigi restriction: This node never appears
5518 -- N_Requeue_Statement
5519 -- Sloc points to REQUEUE
5520 -- Name (Node2)
5521 -- Abort_Present (Flag15)
5523 --------------------------
5524 -- 9.6 Delay Statement --
5525 --------------------------
5527 -- DELAY_STATEMENT ::=
5528 -- DELAY_UNTIL_STATEMENT
5529 -- | DELAY_RELATIVE_STATEMENT
5531 --------------------------------
5532 -- 9.6 Delay Until Statement --
5533 --------------------------------
5535 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5537 -- Note: delay until statements are not permitted in Ada 83 mode
5539 -- Gigi restriction: This node never appears
5541 -- N_Delay_Until_Statement
5542 -- Sloc points to DELAY
5543 -- Expression (Node3)
5545 -----------------------------------
5546 -- 9.6 Delay Relative Statement --
5547 -----------------------------------
5549 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5551 -- Gigi restriction: This node never appears
5553 -- N_Delay_Relative_Statement
5554 -- Sloc points to DELAY
5555 -- Expression (Node3)
5557 ---------------------------
5558 -- 9.7 Select Statement --
5559 ---------------------------
5561 -- SELECT_STATEMENT ::=
5562 -- SELECTIVE_ACCEPT
5563 -- | TIMED_ENTRY_CALL
5564 -- | CONDITIONAL_ENTRY_CALL
5565 -- | ASYNCHRONOUS_SELECT
5567 -----------------------------
5568 -- 9.7.1 Selective Accept --
5569 -----------------------------
5571 -- SELECTIVE_ACCEPT ::=
5572 -- select
5573 -- [GUARD]
5574 -- SELECT_ALTERNATIVE
5575 -- {or
5576 -- [GUARD]
5577 -- SELECT_ALTERNATIVE}
5578 -- [else
5579 -- SEQUENCE_OF_STATEMENTS]
5580 -- end select;
5582 -- Gigi restriction: This node never appears
5584 -- Note: the guard expression, if present, appears in the node for
5585 -- the select alternative.
5587 -- N_Selective_Accept
5588 -- Sloc points to SELECT
5589 -- Select_Alternatives (List1)
5590 -- Else_Statements (List4) (set to No_List if no else part)
5592 ------------------
5593 -- 9.7.1 Guard --
5594 ------------------
5596 -- GUARD ::= when CONDITION =>
5598 -- As noted above, the CONDITION that is part of a GUARD is included
5599 -- in the node for the select alternative for convenience.
5601 -------------------------------
5602 -- 9.7.1 Select Alternative --
5603 -------------------------------
5605 -- SELECT_ALTERNATIVE ::=
5606 -- ACCEPT_ALTERNATIVE
5607 -- | DELAY_ALTERNATIVE
5608 -- | TERMINATE_ALTERNATIVE
5610 -------------------------------
5611 -- 9.7.1 Accept Alternative --
5612 -------------------------------
5614 -- ACCEPT_ALTERNATIVE ::=
5615 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5617 -- Gigi restriction: This node never appears
5619 -- N_Accept_Alternative
5620 -- Sloc points to ACCEPT
5621 -- Accept_Statement (Node2)
5622 -- Condition (Node1) from the guard (set to Empty if no guard present)
5623 -- Statements (List3) (set to Empty_List if no statements)
5624 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5625 -- Accept_Handler_Records (List5-Sem)
5627 ------------------------------
5628 -- 9.7.1 Delay Alternative --
5629 ------------------------------
5631 -- DELAY_ALTERNATIVE ::=
5632 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5634 -- Gigi restriction: This node never appears
5636 -- N_Delay_Alternative
5637 -- Sloc points to DELAY
5638 -- Delay_Statement (Node2)
5639 -- Condition (Node1) from the guard (set to Empty if no guard present)
5640 -- Statements (List3) (set to Empty_List if no statements)
5641 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5643 ----------------------------------
5644 -- 9.7.1 Terminate Alternative --
5645 ----------------------------------
5647 -- TERMINATE_ALTERNATIVE ::= terminate;
5649 -- Gigi restriction: This node never appears
5651 -- N_Terminate_Alternative
5652 -- Sloc points to TERMINATE
5653 -- Condition (Node1) from the guard (set to Empty if no guard present)
5654 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5655 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5657 -----------------------------
5658 -- 9.7.2 Timed Entry Call --
5659 -----------------------------
5661 -- TIMED_ENTRY_CALL ::=
5662 -- select
5663 -- ENTRY_CALL_ALTERNATIVE
5664 -- or
5665 -- DELAY_ALTERNATIVE
5666 -- end select;
5668 -- Gigi restriction: This node never appears
5670 -- N_Timed_Entry_Call
5671 -- Sloc points to SELECT
5672 -- Entry_Call_Alternative (Node1)
5673 -- Delay_Alternative (Node4)
5675 -----------------------------------
5676 -- 9.7.2 Entry Call Alternative --
5677 -----------------------------------
5679 -- ENTRY_CALL_ALTERNATIVE ::=
5680 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5682 -- PROCEDURE_OR_ENTRY_CALL ::=
5683 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5685 -- Gigi restriction: This node never appears
5687 -- N_Entry_Call_Alternative
5688 -- Sloc points to first token of entry call statement
5689 -- Entry_Call_Statement (Node1)
5690 -- Statements (List3) (set to Empty_List if no statements)
5691 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5693 -----------------------------------
5694 -- 9.7.3 Conditional Entry Call --
5695 -----------------------------------
5697 -- CONDITIONAL_ENTRY_CALL ::=
5698 -- select
5699 -- ENTRY_CALL_ALTERNATIVE
5700 -- else
5701 -- SEQUENCE_OF_STATEMENTS
5702 -- end select;
5704 -- Gigi restriction: This node never appears
5706 -- N_Conditional_Entry_Call
5707 -- Sloc points to SELECT
5708 -- Entry_Call_Alternative (Node1)
5709 -- Else_Statements (List4)
5711 --------------------------------
5712 -- 9.7.4 Asynchronous Select --
5713 --------------------------------
5715 -- ASYNCHRONOUS_SELECT ::=
5716 -- select
5717 -- TRIGGERING_ALTERNATIVE
5718 -- then abort
5719 -- ABORTABLE_PART
5720 -- end select;
5722 -- Note: asynchronous select is not permitted in Ada 83 mode
5724 -- Gigi restriction: This node never appears
5726 -- N_Asynchronous_Select
5727 -- Sloc points to SELECT
5728 -- Triggering_Alternative (Node1)
5729 -- Abortable_Part (Node2)
5731 -----------------------------------
5732 -- 9.7.4 Triggering Alternative --
5733 -----------------------------------
5735 -- TRIGGERING_ALTERNATIVE ::=
5736 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5738 -- Gigi restriction: This node never appears
5740 -- N_Triggering_Alternative
5741 -- Sloc points to first token of triggering statement
5742 -- Triggering_Statement (Node1)
5743 -- Statements (List3) (set to Empty_List if no statements)
5744 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5746 ---------------------------------
5747 -- 9.7.4 Triggering Statement --
5748 ---------------------------------
5750 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5752 ---------------------------
5753 -- 9.7.4 Abortable Part --
5754 ---------------------------
5756 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5758 -- Gigi restriction: This node never appears
5760 -- N_Abortable_Part
5761 -- Sloc points to ABORT
5762 -- Statements (List3)
5764 --------------------------
5765 -- 9.8 Abort Statement --
5766 --------------------------
5768 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5770 -- Gigi restriction: This node never appears
5772 -- N_Abort_Statement
5773 -- Sloc points to ABORT
5774 -- Names (List2)
5776 -------------------------
5777 -- 10.1.1 Compilation --
5778 -------------------------
5780 -- COMPILATION ::= {COMPILATION_UNIT}
5782 -- There is no explicit node in the tree for a compilation, since in
5783 -- general the compiler is processing only a single compilation unit
5784 -- at a time. It is possible to parse multiple units in syntax check
5785 -- only mode, but the trees are discarded in that case.
5787 ------------------------------
5788 -- 10.1.1 Compilation Unit --
5789 ------------------------------
5791 -- COMPILATION_UNIT ::=
5792 -- CONTEXT_CLAUSE LIBRARY_ITEM
5793 -- | CONTEXT_CLAUSE SUBUNIT
5795 -- The N_Compilation_Unit node itself represents the above syntax.
5796 -- However, there are two additional items not reflected in the above
5797 -- syntax. First we have the global declarations that are added by the
5798 -- code generator. These are outer level declarations (so they cannot
5799 -- be represented as being inside the units). An example is the wrapper
5800 -- subprograms that are created to do ABE checking. As always a list of
5801 -- declarations can contain actions as well (i.e. statements), and such
5802 -- statements are executed as part of the elaboration of the unit. Note
5803 -- that all such declarations are elaborated before the library unit.
5805 -- Similarly, certain actions need to be elaborated at the completion
5806 -- of elaboration of the library unit (notably the statement that sets
5807 -- the Boolean flag indicating that elaboration is complete).
5809 -- The third item not reflected in the syntax is pragmas that appear
5810 -- after the compilation unit. As always pragmas are a problem since
5811 -- they are not part of the formal syntax, but can be stuck into the
5812 -- source following a set of ad hoc rules, and we have to find an ad
5813 -- hoc way of sticking them into the tree. For pragmas that appear
5814 -- before the library unit, we just consider them to be part of the
5815 -- context clause, and pragmas can appear in the Context_Items list
5816 -- of the compilation unit. However, pragmas can also appear after
5817 -- the library item.
5819 -- To deal with all these problems, we create an auxiliary node for
5820 -- a compilation unit, referenced from the N_Compilation_Unit node,
5821 -- that contains these items.
5823 -- N_Compilation_Unit
5824 -- Sloc points to first token of defining unit name
5825 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
5826 -- Context_Items (List1) context items and pragmas preceding unit
5827 -- Private_Present (Flag15) set if library unit has private keyword
5828 -- Unit (Node2) library item or subunit
5829 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5830 -- Has_No_Elaboration_Code (Flag17-Sem)
5831 -- Body_Required (Flag13-Sem) set for spec if body is required
5832 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5833 -- Context_Pending (Flag16-Sem)
5834 -- First_Inlined_Subprogram (Node3-Sem)
5835 -- Has_Pragma_Suppress_All (Flag14-Sem)
5837 -- N_Compilation_Unit_Aux
5838 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
5839 -- Declarations (List2) (set to No_List if no global declarations)
5840 -- Actions (List1) (set to No_List if no actions)
5841 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
5842 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5843 -- Default_Storage_Pool (Node3-Sem)
5845 --------------------------
5846 -- 10.1.1 Library Item --
5847 --------------------------
5849 -- LIBRARY_ITEM ::=
5850 -- [private] LIBRARY_UNIT_DECLARATION
5851 -- | LIBRARY_UNIT_BODY
5852 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5854 -- Note: PRIVATE is not allowed in Ada 83 mode
5856 -- There is no explicit node in the tree for library item, instead
5857 -- the declaration or body, and the flag for private if present,
5858 -- appear in the N_Compilation_Unit node.
5860 --------------------------------------
5861 -- 10.1.1 Library Unit Declaration --
5862 --------------------------------------
5864 -- LIBRARY_UNIT_DECLARATION ::=
5865 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5866 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
5868 -----------------------------------------------
5869 -- 10.1.1 Library Unit Renaming Declaration --
5870 -----------------------------------------------
5872 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
5873 -- PACKAGE_RENAMING_DECLARATION
5874 -- | GENERIC_RENAMING_DECLARATION
5875 -- | SUBPROGRAM_RENAMING_DECLARATION
5877 -------------------------------
5878 -- 10.1.1 Library unit body --
5879 -------------------------------
5881 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5883 ------------------------------
5884 -- 10.1.1 Parent Unit Name --
5885 ------------------------------
5887 -- PARENT_UNIT_NAME ::= NAME
5889 ----------------------------
5890 -- 10.1.2 Context clause --
5891 ----------------------------
5893 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5895 -- The context clause can include pragmas, and any pragmas that appear
5896 -- before the context clause proper (i.e. all configuration pragmas,
5897 -- also appear at the front of this list).
5899 --------------------------
5900 -- 10.1.2 Context_Item --
5901 --------------------------
5903 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
5905 -------------------------
5906 -- 10.1.2 With clause --
5907 -------------------------
5909 -- WITH_CLAUSE ::=
5910 -- with library_unit_NAME {,library_unit_NAME};
5912 -- A separate With clause is built for each name, so that we have
5913 -- a Corresponding_Spec field for each with'ed spec. The flags
5914 -- First_Name and Last_Name are used to reconstruct the exact
5915 -- source form. When a list of names appears in one with clause,
5916 -- the first name in the list has First_Name set, and the last
5917 -- has Last_Name set. If the with clause has only one name, then
5918 -- both of the flags First_Name and Last_Name are set in this name.
5920 -- Note: in the case of implicit with's that are installed by the
5921 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
5922 -- set to Standard_Location, but it is incorrect to test the Sloc
5923 -- to find out if a with clause is implicit, test the flag instead.
5925 -- N_With_Clause
5926 -- Sloc points to first token of library unit name
5927 -- Withed_Body (Node1-Sem)
5928 -- Name (Node2)
5929 -- Next_Implicit_With (Node3-Sem)
5930 -- Library_Unit (Node4-Sem)
5931 -- Corresponding_Spec (Node5-Sem)
5932 -- First_Name (Flag5) (set to True if first name or only one name)
5933 -- Last_Name (Flag6) (set to True if last name or only one name)
5934 -- Context_Installed (Flag13-Sem)
5935 -- Elaborate_Present (Flag4-Sem)
5936 -- Elaborate_All_Present (Flag14-Sem)
5937 -- Elaborate_All_Desirable (Flag9-Sem)
5938 -- Elaborate_Desirable (Flag11-Sem)
5939 -- Private_Present (Flag15) set if with_clause has private keyword
5940 -- Implicit_With (Flag16-Sem)
5941 -- Implicit_With_From_Instantiation (Flag12-Sem)
5942 -- Limited_Present (Flag17) set if LIMITED is present
5943 -- Limited_View_Installed (Flag18-Sem)
5944 -- Unreferenced_In_Spec (Flag7-Sem)
5945 -- No_Entities_Ref_In_Spec (Flag8-Sem)
5947 -- Note: Limited_Present and Limited_View_Installed are used to support
5948 -- the implementation of Ada 2005 (AI-50217).
5950 -- Similarly, Private_Present is used to support the implementation of
5951 -- Ada 2005 (AI-50262).
5953 ----------------------
5954 -- With_Type clause --
5955 ----------------------
5957 -- This is a GNAT extension, used to implement mutually recursive
5958 -- types declared in different packages.
5960 -- Note: this is now obsolete. The functionality of this construct
5961 -- is now implemented by the Ada 2005 limited_with_clause.
5963 ---------------------
5964 -- 10.2 Body stub --
5965 ---------------------
5967 -- BODY_STUB ::=
5968 -- SUBPROGRAM_BODY_STUB
5969 -- | PACKAGE_BODY_STUB
5970 -- | TASK_BODY_STUB
5971 -- | PROTECTED_BODY_STUB
5973 ----------------------------------
5974 -- 10.1.3 Subprogram Body Stub --
5975 ----------------------------------
5977 -- SUBPROGRAM_BODY_STUB ::=
5978 -- SUBPROGRAM_SPECIFICATION is separate;
5980 -- N_Subprogram_Body_Stub
5981 -- Sloc points to FUNCTION or PROCEDURE
5982 -- Specification (Node1)
5983 -- Library_Unit (Node4-Sem) points to the subunit
5984 -- Corresponding_Body (Node5-Sem)
5986 -------------------------------
5987 -- 10.1.3 Package Body Stub --
5988 -------------------------------
5990 -- PACKAGE_BODY_STUB ::=
5991 -- package body DEFINING_IDENTIFIER is separate;
5993 -- N_Package_Body_Stub
5994 -- Sloc points to PACKAGE
5995 -- Defining_Identifier (Node1)
5996 -- Library_Unit (Node4-Sem) points to the subunit
5997 -- Corresponding_Body (Node5-Sem)
5999 ----------------------------
6000 -- 10.1.3 Task Body Stub --
6001 ----------------------------
6003 -- TASK_BODY_STUB ::=
6004 -- task body DEFINING_IDENTIFIER is separate;
6006 -- N_Task_Body_Stub
6007 -- Sloc points to TASK
6008 -- Defining_Identifier (Node1)
6009 -- Library_Unit (Node4-Sem) points to the subunit
6010 -- Corresponding_Body (Node5-Sem)
6012 ---------------------------------
6013 -- 10.1.3 Protected Body Stub --
6014 ---------------------------------
6016 -- PROTECTED_BODY_STUB ::=
6017 -- protected body DEFINING_IDENTIFIER is separate;
6019 -- Note: protected body stubs are not allowed in Ada 83 mode
6021 -- N_Protected_Body_Stub
6022 -- Sloc points to PROTECTED
6023 -- Defining_Identifier (Node1)
6024 -- Library_Unit (Node4-Sem) points to the subunit
6025 -- Corresponding_Body (Node5-Sem)
6027 ---------------------
6028 -- 10.1.3 Subunit --
6029 ---------------------
6031 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6033 -- N_Subunit
6034 -- Sloc points to SEPARATE
6035 -- Name (Node2) is the name of the parent unit
6036 -- Proper_Body (Node1) is the subunit body
6037 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6039 ---------------------------------
6040 -- 11.1 Exception Declaration --
6041 ---------------------------------
6043 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6044 -- [ASPECT_SPECIFICATIONS];
6046 -- For consistency with object declarations etc., the parser converts
6047 -- the case of multiple identifiers being declared to a series of
6048 -- declarations in which the expression is copied, using the More_Ids
6049 -- and Prev_Ids flags to remember the source form as described in the
6050 -- section on "Handling of Defining Identifier Lists".
6052 -- N_Exception_Declaration
6053 -- Sloc points to EXCEPTION
6054 -- Defining_Identifier (Node1)
6055 -- Expression (Node3-Sem)
6056 -- Renaming_Exception (Node2-Sem)
6057 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6058 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6060 ------------------------------------------
6061 -- 11.2 Handled Sequence Of Statements --
6062 ------------------------------------------
6064 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6065 -- SEQUENCE_OF_STATEMENTS
6066 -- [exception
6067 -- EXCEPTION_HANDLER
6068 -- {EXCEPTION_HANDLER}]
6069 -- [at end
6070 -- cleanup_procedure_call (param, param, param, ...);]
6072 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6073 -- used only internally currently, but is considered to be syntactic.
6074 -- At the moment, the only cleanup action allowed is a single call to
6075 -- a parameterless procedure, and the Identifier field of the node is
6076 -- the procedure to be called. The cleanup action occurs whenever the
6077 -- sequence of statements is left for any reason. The possible reasons
6078 -- are:
6079 -- 1. reaching the end of the sequence
6080 -- 2. exit, return, or goto
6081 -- 3. exception or abort
6082 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6083 -- entirely in the back end. In this case, a handled sequence of
6084 -- statements with an "at end" cannot also have exception handlers.
6085 -- For other back ends, such as gcc with SJLJ and .NET, the
6086 -- implementation is split between the front end and back end; the front
6087 -- end implements 3, and the back end implements 1 and 2. In this case,
6088 -- if there is an "at end", the front end inserts the appropriate
6089 -- exception handler, and this handler takes precedence over "at end"
6090 -- in case of exception.
6092 -- The inserted exception handler is of the form:
6094 -- when all others =>
6095 -- cleanup;
6096 -- raise;
6098 -- where cleanup is the procedure to be called. The reason we do this is
6099 -- so that the front end can handle the necessary entries in the
6100 -- exception tables, and other exception handler actions required as
6101 -- part of the normal handling for exception handlers.
6103 -- The AT END cleanup handler protects only the sequence of statements
6104 -- (not the associated declarations of the parent), just like exception
6105 -- handlers. The big difference is that the cleanup procedure is called
6106 -- on either a normal or an abnormal exit from the statement sequence.
6108 -- Note: the list of Exception_Handlers can contain pragmas as well
6109 -- as actual handlers. In practice these pragmas can only occur at
6110 -- the start of the list, since any pragmas occurring later on will
6111 -- be included in the statement list of the corresponding handler.
6113 -- Note: although in the Ada syntax, the sequence of statements in
6114 -- a handled sequence of statements can only contain statements, we
6115 -- allow free mixing of declarations and statements in the resulting
6116 -- expanded tree. This is for example used to deal with the case of
6117 -- a cleanup procedure that must handle declarations as well as the
6118 -- statements of a block.
6120 -- N_Handled_Sequence_Of_Statements
6121 -- Sloc points to first token of first statement
6122 -- Statements (List3)
6123 -- End_Label (Node4) (set to Empty if expander generated)
6124 -- Exception_Handlers (List5) (set to No_List if none present)
6125 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6126 -- First_Real_Statement (Node2-Sem)
6128 -- Note: the parent always contains a Declarations field which contains
6129 -- declarations associated with the handled sequence of statements. This
6130 -- is true even in the case of an accept statement (see description of
6131 -- the N_Accept_Statement node).
6133 -- End_Label refers to the containing construct
6135 -----------------------------
6136 -- 11.2 Exception Handler --
6137 -----------------------------
6139 -- EXCEPTION_HANDLER ::=
6140 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6141 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6142 -- SEQUENCE_OF_STATEMENTS
6144 -- Note: choice parameter specification is not allowed in Ada 83 mode
6146 -- N_Exception_Handler
6147 -- Sloc points to WHEN
6148 -- Choice_Parameter (Node2) (set to Empty if not present)
6149 -- Exception_Choices (List4)
6150 -- Statements (List3)
6151 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6152 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6153 -- Local_Raise_Not_OK (Flag7-Sem)
6154 -- Has_Local_Raise (Flag8-Sem)
6156 ------------------------------------------
6157 -- 11.2 Choice parameter specification --
6158 ------------------------------------------
6160 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6162 ----------------------------
6163 -- 11.2 Exception Choice --
6164 ----------------------------
6166 -- EXCEPTION_CHOICE ::= exception_NAME | others
6168 -- Except in the case of OTHERS, no explicit node appears in the tree
6169 -- for exception choice. Instead the exception name appears directly.
6170 -- An OTHERS choice is represented by a N_Others_Choice node (see
6171 -- section 3.8.1.
6173 -- Note: for the exception choice created for an at end handler, the
6174 -- exception choice is an N_Others_Choice node with All_Others set.
6176 ---------------------------
6177 -- 11.3 Raise Statement --
6178 ---------------------------
6180 -- RAISE_STATEMENT ::= raise [exception_NAME];
6182 -- In Ada 2005, we have
6184 -- RAISE_STATEMENT ::=
6185 -- raise; | raise exception_NAME [with string_EXPRESSION];
6187 -- N_Raise_Statement
6188 -- Sloc points to RAISE
6189 -- Name (Node2) (set to Empty if no exception name present)
6190 -- Expression (Node3) (set to Empty if no expression present)
6191 -- From_At_End (Flag4-Sem)
6193 ----------------------------
6194 -- 11.3 Raise Expression --
6195 ----------------------------
6197 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6199 -- N_Raise_Expression
6200 -- Sloc points to RAISE
6201 -- Name (Node2) (always present)
6202 -- Expression (Node3) (set to Empty if no expression present)
6203 -- Convert_To_Return_False (Flag13-Sem)
6204 -- plus fields for expression
6206 -------------------------------
6207 -- 12.1 Generic Declaration --
6208 -------------------------------
6210 -- GENERIC_DECLARATION ::=
6211 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6213 ------------------------------------------
6214 -- 12.1 Generic Subprogram Declaration --
6215 ------------------------------------------
6217 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6218 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
6220 -- Note: Generic_Formal_Declarations can include pragmas
6222 -- N_Generic_Subprogram_Declaration
6223 -- Sloc points to GENERIC
6224 -- Specification (Node1) subprogram specification
6225 -- Corresponding_Body (Node5-Sem)
6226 -- Generic_Formal_Declarations (List2) from generic formal part
6227 -- Parent_Spec (Node4-Sem)
6229 ---------------------------------------
6230 -- 12.1 Generic Package Declaration --
6231 ---------------------------------------
6233 -- GENERIC_PACKAGE_DECLARATION ::=
6234 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6235 -- [ASPECT_SPECIFICATIONS];
6237 -- Note: when we do generics right, the Activation_Chain_Entity entry
6238 -- for this node can be removed (since the expander won't see generic
6239 -- units any more)???.
6241 -- Note: Generic_Formal_Declarations can include pragmas
6243 -- N_Generic_Package_Declaration
6244 -- Sloc points to GENERIC
6245 -- Specification (Node1) package specification
6246 -- Corresponding_Body (Node5-Sem)
6247 -- Generic_Formal_Declarations (List2) from generic formal part
6248 -- Parent_Spec (Node4-Sem)
6249 -- Activation_Chain_Entity (Node3-Sem)
6251 -------------------------------
6252 -- 12.1 Generic Formal Part --
6253 -------------------------------
6255 -- GENERIC_FORMAL_PART ::=
6256 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6258 ------------------------------------------------
6259 -- 12.1 Generic Formal Parameter Declaration --
6260 ------------------------------------------------
6262 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6263 -- FORMAL_OBJECT_DECLARATION
6264 -- | FORMAL_TYPE_DECLARATION
6265 -- | FORMAL_SUBPROGRAM_DECLARATION
6266 -- | FORMAL_PACKAGE_DECLARATION
6268 ---------------------------------
6269 -- 12.3 Generic Instantiation --
6270 ---------------------------------
6272 -- GENERIC_INSTANTIATION ::=
6273 -- package DEFINING_PROGRAM_UNIT_NAME is
6274 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6275 -- [ASPECT_SPECIFICATIONS];
6276 -- | [[not] overriding]
6277 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6278 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6279 -- [ASPECT_SPECIFICATIONS];
6280 -- | [[not] overriding]
6281 -- function DEFINING_DESIGNATOR is
6282 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6283 -- [ASPECT_SPECIFICATIONS];
6285 -- N_Package_Instantiation
6286 -- Sloc points to PACKAGE
6287 -- Defining_Unit_Name (Node1)
6288 -- Name (Node2)
6289 -- Generic_Associations (List3) (set to No_List if no
6290 -- generic actual part)
6291 -- Parent_Spec (Node4-Sem)
6292 -- Instance_Spec (Node5-Sem)
6293 -- ABE_Is_Certain (Flag18-Sem)
6295 -- N_Procedure_Instantiation
6296 -- Sloc points to PROCEDURE
6297 -- Defining_Unit_Name (Node1)
6298 -- Name (Node2)
6299 -- Parent_Spec (Node4-Sem)
6300 -- Generic_Associations (List3) (set to No_List if no
6301 -- generic actual part)
6302 -- Instance_Spec (Node5-Sem)
6303 -- Must_Override (Flag14) set if overriding indicator present
6304 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6305 -- ABE_Is_Certain (Flag18-Sem)
6307 -- N_Function_Instantiation
6308 -- Sloc points to FUNCTION
6309 -- Defining_Unit_Name (Node1)
6310 -- Name (Node2)
6311 -- Generic_Associations (List3) (set to No_List if no
6312 -- generic actual part)
6313 -- Parent_Spec (Node4-Sem)
6314 -- Instance_Spec (Node5-Sem)
6315 -- Must_Override (Flag14) set if overriding indicator present
6316 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6317 -- ABE_Is_Certain (Flag18-Sem)
6319 -- Note: overriding indicator is an Ada 2005 feature
6321 -------------------------------
6322 -- 12.3 Generic Actual Part --
6323 -------------------------------
6325 -- GENERIC_ACTUAL_PART ::=
6326 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6328 -------------------------------
6329 -- 12.3 Generic Association --
6330 -------------------------------
6332 -- GENERIC_ASSOCIATION ::=
6333 -- [generic_formal_parameter_SELECTOR_NAME =>]
6335 -- Note: unlike the procedure call case, a generic association node
6336 -- is generated for every association, even if no formal parameter
6337 -- selector name is present. In this case the parser will leave the
6338 -- Selector_Name field set to Empty, to be filled in later by the
6339 -- semantic pass.
6341 -- In Ada 2005, a formal may be associated with a box, if the
6342 -- association is part of the list of actuals for a formal package.
6343 -- If the association is given by OTHERS => <>, the association is
6344 -- an N_Others_Choice.
6346 -- N_Generic_Association
6347 -- Sloc points to first token of generic association
6348 -- Selector_Name (Node2) (set to Empty if no formal
6349 -- parameter selector name)
6350 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6351 -- Box_Present (Flag15) (for formal_package associations with a box)
6353 ---------------------------------------------
6354 -- 12.3 Explicit Generic Actual Parameter --
6355 ---------------------------------------------
6357 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6358 -- EXPRESSION | variable_NAME | subprogram_NAME
6359 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
6361 -------------------------------------
6362 -- 12.4 Formal Object Declaration --
6363 -------------------------------------
6365 -- FORMAL_OBJECT_DECLARATION ::=
6366 -- DEFINING_IDENTIFIER_LIST :
6367 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6368 -- [ASPECT_SPECIFICATIONS];
6369 -- | DEFINING_IDENTIFIER_LIST :
6370 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6371 -- [ASPECT_SPECIFICATIONS];
6373 -- Although the syntax allows multiple identifiers in the list, the
6374 -- semantics is as though successive declarations were given with
6375 -- identical type definition and expression components. To simplify
6376 -- semantic processing, the parser represents a multiple declaration
6377 -- case as a sequence of single declarations, using the More_Ids and
6378 -- Prev_Ids flags to preserve the original source form as described
6379 -- in the section on "Handling of Defining Identifier Lists".
6381 -- N_Formal_Object_Declaration
6382 -- Sloc points to first identifier
6383 -- Defining_Identifier (Node1)
6384 -- In_Present (Flag15)
6385 -- Out_Present (Flag17)
6386 -- Null_Exclusion_Present (Flag11) (set to False if not present)
6387 -- Subtype_Mark (Node4) (set to Empty if not present)
6388 -- Access_Definition (Node3) (set to Empty if not present)
6389 -- Default_Expression (Node5) (set to Empty if no default expression)
6390 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6391 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6393 -----------------------------------
6394 -- 12.5 Formal Type Declaration --
6395 -----------------------------------
6397 -- FORMAL_TYPE_DECLARATION ::=
6398 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6399 -- is FORMAL_TYPE_DEFINITION
6400 -- [ASPECT_SPECIFICATIONS];
6401 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
6403 -- N_Formal_Type_Declaration
6404 -- Sloc points to TYPE
6405 -- Defining_Identifier (Node1)
6406 -- Formal_Type_Definition (Node3)
6407 -- Discriminant_Specifications (List4) (set to No_List if no
6408 -- discriminant part)
6409 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6411 ----------------------------------
6412 -- 12.5 Formal type definition --
6413 ----------------------------------
6415 -- FORMAL_TYPE_DEFINITION ::=
6416 -- FORMAL_PRIVATE_TYPE_DEFINITION
6417 -- | FORMAL_DERIVED_TYPE_DEFINITION
6418 -- | FORMAL_DISCRETE_TYPE_DEFINITION
6419 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6420 -- | FORMAL_MODULAR_TYPE_DEFINITION
6421 -- | FORMAL_FLOATING_POINT_DEFINITION
6422 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6423 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6424 -- | FORMAL_ARRAY_TYPE_DEFINITION
6425 -- | FORMAL_ACCESS_TYPE_DEFINITION
6426 -- | FORMAL_INTERFACE_TYPE_DEFINITION
6427 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
6429 -- The Ada 2012 syntax introduces two new non-terminals:
6430 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
6431 -- the latter category. Here we introduce an incomplete type definition
6432 -- in order to preserve as much as possible the existing structure.
6434 ---------------------------------------------
6435 -- 12.5.1 Formal Private Type Definition --
6436 ---------------------------------------------
6438 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
6439 -- [[abstract] tagged] [limited] private
6441 -- Note: TAGGED is not allowed in Ada 83 mode
6443 -- N_Formal_Private_Type_Definition
6444 -- Sloc points to PRIVATE
6445 -- Abstract_Present (Flag4)
6446 -- Tagged_Present (Flag15)
6447 -- Limited_Present (Flag17)
6449 --------------------------------------------
6450 -- 12.5.1 Formal Derived Type Definition --
6451 --------------------------------------------
6453 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
6454 -- [abstract] [limited | synchronized]
6455 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6456 -- Note: this construct is not allowed in Ada 83 mode
6458 -- N_Formal_Derived_Type_Definition
6459 -- Sloc points to NEW
6460 -- Subtype_Mark (Node4)
6461 -- Private_Present (Flag15)
6462 -- Abstract_Present (Flag4)
6463 -- Limited_Present (Flag17)
6464 -- Synchronized_Present (Flag7)
6465 -- Interface_List (List2) (set to No_List if none)
6467 -----------------------------------------------
6468 -- 12.5.1 Formal Incomplete Type Definition --
6469 -----------------------------------------------
6471 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
6473 -- N_Formal_Incomplete_Type_Definition
6474 -- Sloc points to identifier of parent
6475 -- Tagged_Present (Flag15)
6477 ---------------------------------------------
6478 -- 12.5.2 Formal Discrete Type Definition --
6479 ---------------------------------------------
6481 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6483 -- N_Formal_Discrete_Type_Definition
6484 -- Sloc points to (
6486 ---------------------------------------------------
6487 -- 12.5.2 Formal Signed Integer Type Definition --
6488 ---------------------------------------------------
6490 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6492 -- N_Formal_Signed_Integer_Type_Definition
6493 -- Sloc points to RANGE
6495 --------------------------------------------
6496 -- 12.5.2 Formal Modular Type Definition --
6497 --------------------------------------------
6499 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6501 -- N_Formal_Modular_Type_Definition
6502 -- Sloc points to MOD
6504 ----------------------------------------------
6505 -- 12.5.2 Formal Floating Point Definition --
6506 ----------------------------------------------
6508 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6510 -- N_Formal_Floating_Point_Definition
6511 -- Sloc points to DIGITS
6513 ----------------------------------------------------
6514 -- 12.5.2 Formal Ordinary Fixed Point Definition --
6515 ----------------------------------------------------
6517 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6519 -- N_Formal_Ordinary_Fixed_Point_Definition
6520 -- Sloc points to DELTA
6522 ---------------------------------------------------
6523 -- 12.5.2 Formal Decimal Fixed Point Definition --
6524 ---------------------------------------------------
6526 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6528 -- Note: formal decimal fixed point definition not allowed in Ada 83
6530 -- N_Formal_Decimal_Fixed_Point_Definition
6531 -- Sloc points to DELTA
6533 ------------------------------------------
6534 -- 12.5.3 Formal Array Type Definition --
6535 ------------------------------------------
6537 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6539 -------------------------------------------
6540 -- 12.5.4 Formal Access Type Definition --
6541 -------------------------------------------
6543 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6545 ----------------------------------------------
6546 -- 12.5.5 Formal Interface Type Definition --
6547 ----------------------------------------------
6549 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6551 -----------------------------------------
6552 -- 12.6 Formal Subprogram Declaration --
6553 -----------------------------------------
6555 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6556 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6557 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6559 --------------------------------------------------
6560 -- 12.6 Formal Concrete Subprogram Declaration --
6561 --------------------------------------------------
6563 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6564 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6565 -- [ASPECT_SPECIFICATIONS];
6567 -- N_Formal_Concrete_Subprogram_Declaration
6568 -- Sloc points to WITH
6569 -- Specification (Node1)
6570 -- Default_Name (Node2) (set to Empty if no subprogram default)
6571 -- Box_Present (Flag15)
6573 -- Note: if no subprogram default is present, then Name is set
6574 -- to Empty, and Box_Present is False.
6576 --------------------------------------------------
6577 -- 12.6 Formal Abstract Subprogram Declaration --
6578 --------------------------------------------------
6580 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6581 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6582 -- [ASPECT_SPECIFICATIONS];
6584 -- N_Formal_Abstract_Subprogram_Declaration
6585 -- Sloc points to WITH
6586 -- Specification (Node1)
6587 -- Default_Name (Node2) (set to Empty if no subprogram default)
6588 -- Box_Present (Flag15)
6590 -- Note: if no subprogram default is present, then Name is set
6591 -- to Empty, and Box_Present is False.
6593 ------------------------------
6594 -- 12.6 Subprogram Default --
6595 ------------------------------
6597 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6599 -- There is no separate node in the tree for a subprogram default.
6600 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6601 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6602 -- default name or box indication, as needed.
6604 ------------------------
6605 -- 12.6 Default Name --
6606 ------------------------
6608 -- DEFAULT_NAME ::= NAME
6610 --------------------------------------
6611 -- 12.7 Formal Package Declaration --
6612 --------------------------------------
6614 -- FORMAL_PACKAGE_DECLARATION ::=
6615 -- with package DEFINING_IDENTIFIER
6616 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
6617 -- [ASPECT_SPECIFICATIONS];
6619 -- Note: formal package declarations not allowed in Ada 83 mode
6621 -- N_Formal_Package_Declaration
6622 -- Sloc points to WITH
6623 -- Defining_Identifier (Node1)
6624 -- Name (Node2)
6625 -- Generic_Associations (List3) (set to No_List if (<>) case or
6626 -- empty generic actual part)
6627 -- Box_Present (Flag15)
6628 -- Instance_Spec (Node5-Sem)
6629 -- ABE_Is_Certain (Flag18-Sem)
6631 --------------------------------------
6632 -- 12.7 Formal Package Actual Part --
6633 --------------------------------------
6635 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6636 -- ([OTHERS] => <>)
6637 -- | [GENERIC_ACTUAL_PART]
6638 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6640 -- FORMAL_PACKAGE_ASSOCIATION ::=
6641 -- GENERIC_ASSOCIATION
6642 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6644 -- There is no explicit node in the tree for a formal package actual
6645 -- part. Instead the information appears in the parent node (i.e. the
6646 -- formal package declaration node itself).
6648 -- There is no explicit node for a formal package association. All of
6649 -- them are represented either by a generic association, possibly with
6650 -- Box_Present, or by an N_Others_Choice.
6652 ---------------------------------
6653 -- 13.1 Representation clause --
6654 ---------------------------------
6656 -- REPRESENTATION_CLAUSE ::=
6657 -- ATTRIBUTE_DEFINITION_CLAUSE
6658 -- | ENUMERATION_REPRESENTATION_CLAUSE
6659 -- | RECORD_REPRESENTATION_CLAUSE
6660 -- | AT_CLAUSE
6662 ----------------------
6663 -- 13.1 Local Name --
6664 ----------------------
6666 -- LOCAL_NAME :=
6667 -- DIRECT_NAME
6668 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6669 -- | library_unit_NAME
6671 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6672 -- as an attribute reference, which has essentially the same form.
6674 ---------------------------------------
6675 -- 13.3 Attribute definition clause --
6676 ---------------------------------------
6678 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6679 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6680 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6682 -- In Ada 83, the expression must be a simple expression and the
6683 -- local name must be a direct name.
6685 -- Note: the only attribute definition clause that is processed by
6686 -- gigi is an address clause. For all other cases, the information
6687 -- is extracted by the front end and either results in setting entity
6688 -- information, e.g. Esize for the Size clause, or in appropriate
6689 -- expansion actions (e.g. in the case of Storage_Size).
6691 -- For an address clause, Gigi constructs the appropriate addressing
6692 -- code. It also ensures that no aliasing optimizations are made
6693 -- for the object for which the address clause appears.
6695 -- Note: for an address clause used to achieve an overlay:
6697 -- A : Integer;
6698 -- B : Integer;
6699 -- for B'Address use A'Address;
6701 -- the above rule means that Gigi will ensure that no optimizations
6702 -- will be made for B that would violate the implementation advice
6703 -- of RM 13.3(19). However, this advice applies only to B and not
6704 -- to A, which seems unfortunate. The GNAT front end will mark the
6705 -- object A as volatile to also prevent unwanted optimization
6706 -- assumptions based on no aliasing being made for B.
6708 -- N_Attribute_Definition_Clause
6709 -- Sloc points to FOR
6710 -- Name (Node2) the local name
6711 -- Chars (Name1) the identifier name from the attribute designator
6712 -- Expression (Node3) the expression or name
6713 -- Entity (Node4-Sem)
6714 -- Next_Rep_Item (Node5-Sem)
6715 -- From_At_Mod (Flag4-Sem)
6716 -- Check_Address_Alignment (Flag11-Sem)
6717 -- From_Aspect_Specification (Flag13-Sem)
6718 -- Is_Delayed_Aspect (Flag14-Sem)
6719 -- Address_Warning_Posted (Flag18-Sem)
6721 -- Note: if From_Aspect_Specification is set, then Sloc points to the
6722 -- aspect name, and Entity is resolved already to reference the entity
6723 -- to which the aspect applies.
6725 -----------------------------------
6726 -- 13.3.1 Aspect Specifications --
6727 -----------------------------------
6729 -- We modify the RM grammar here, the RM grammar is:
6731 -- ASPECT_SPECIFICATION ::=
6732 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
6733 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
6735 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6737 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
6739 -- That's inconvenient, since there is no non-terminal name for a single
6740 -- entry in the list of aspects. So we use this grammar instead:
6742 -- ASPECT_SPECIFICATIONS ::=
6743 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
6745 -- ASPECT_SPECIFICATION =>
6746 -- ASPECT_MARK [=> ASPECT_DEFINITION]
6748 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6750 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
6752 -- See separate package Aspects for details on the incorporation of
6753 -- these nodes into the tree, and how aspect specifications for a given
6754 -- declaration node are associated with that node.
6756 -- N_Aspect_Specification
6757 -- Sloc points to aspect identifier
6758 -- Identifier (Node1) aspect identifier
6759 -- Aspect_Rep_Item (Node2-Sem)
6760 -- Expression (Node3) Aspect_Definition (set to Empty if none)
6761 -- Entity (Node4-Sem) entity to which the aspect applies
6762 -- Class_Present (Flag6) Set if 'Class present
6763 -- Next_Rep_Item (Node5-Sem)
6764 -- Split_PPC (Flag17) Set if split pre/post attribute
6765 -- Is_Boolean_Aspect (Flag16-Sem)
6766 -- Is_Delayed_Aspect (Flag14-Sem)
6767 -- Is_Disabled (Flag15-Sem)
6768 -- Is_Ignored (Flag9-Sem)
6770 -- Note: Aspect_Specification is an Ada 2012 feature
6772 -- Note: The Identifier serves to identify the aspect involved (it
6773 -- is the aspect whose name corresponds to the Chars field). This
6774 -- means that the other fields of this identifier are unused, and
6775 -- in particular we use the Entity field of this identifier to save
6776 -- a copy of the expression for visibility analysis, see spec of
6777 -- Sem_Ch13 for full details of this usage.
6779 -- In the case of aspects of the form xxx'Class, the aspect identifier
6780 -- is for xxx, and Class_Present is set to True.
6782 -- Note: When a Pre or Post aspect specification is processed, it is
6783 -- broken into AND THEN sections. The left most section has Split_PPC
6784 -- set to False, indicating that it is the original specification (e.g.
6785 -- for posting errors). For the other sections, Split_PPC is set True.
6787 ---------------------------------------------
6788 -- 13.4 Enumeration representation clause --
6789 ---------------------------------------------
6791 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
6792 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6794 -- In Ada 83, the name must be a direct name
6796 -- N_Enumeration_Representation_Clause
6797 -- Sloc points to FOR
6798 -- Identifier (Node1) direct name
6799 -- Array_Aggregate (Node3)
6800 -- Next_Rep_Item (Node5-Sem)
6802 ---------------------------------
6803 -- 13.4 Enumeration aggregate --
6804 ---------------------------------
6806 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6808 ------------------------------------------
6809 -- 13.5.1 Record representation clause --
6810 ------------------------------------------
6812 -- RECORD_REPRESENTATION_CLAUSE ::=
6813 -- for first_subtype_LOCAL_NAME use
6814 -- record [MOD_CLAUSE]
6815 -- {COMPONENT_CLAUSE}
6816 -- end record;
6818 -- Gigi restriction: Mod_Clause is always Empty (if present it is
6819 -- replaced by a corresponding Alignment attribute definition clause).
6821 -- Note: Component_Clauses can include pragmas
6823 -- N_Record_Representation_Clause
6824 -- Sloc points to FOR
6825 -- Identifier (Node1) direct name
6826 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
6827 -- Component_Clauses (List3)
6828 -- Next_Rep_Item (Node5-Sem)
6830 ------------------------------
6831 -- 13.5.1 Component clause --
6832 ------------------------------
6834 -- COMPONENT_CLAUSE ::=
6835 -- component_LOCAL_NAME at POSITION
6836 -- range FIRST_BIT .. LAST_BIT;
6838 -- N_Component_Clause
6839 -- Sloc points to AT
6840 -- Component_Name (Node1) points to Name or Attribute_Reference
6841 -- Position (Node2)
6842 -- First_Bit (Node3)
6843 -- Last_Bit (Node4)
6845 ----------------------
6846 -- 13.5.1 Position --
6847 ----------------------
6849 -- POSITION ::= static_EXPRESSION
6851 -----------------------
6852 -- 13.5.1 First_Bit --
6853 -----------------------
6855 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
6857 ----------------------
6858 -- 13.5.1 Last_Bit --
6859 ----------------------
6861 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
6863 --------------------------
6864 -- 13.8 Code statement --
6865 --------------------------
6867 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6869 -- Note: in GNAT, the qualified expression has the form
6871 -- Asm_Insn'(Asm (...));
6873 -- See package System.Machine_Code in file s-maccod.ads for details on
6874 -- the allowed parameters to Asm. There are two ways this node can
6875 -- arise, as a code statement, in which case the expression is the
6876 -- qualified expression, or as a result of the expansion of an intrinsic
6877 -- call to the Asm or Asm_Input procedure.
6879 -- N_Code_Statement
6880 -- Sloc points to first token of the expression
6881 -- Expression (Node3)
6883 -- Note: package Exp_Code contains an abstract functional interface
6884 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
6886 ------------------------
6887 -- 13.12 Restriction --
6888 ------------------------
6890 -- RESTRICTION ::=
6891 -- restriction_IDENTIFIER
6892 -- | restriction_parameter_IDENTIFIER => EXPRESSION
6894 -- There is no explicit node for restrictions. Instead the restriction
6895 -- appears in normal pragma syntax as a pragma argument association,
6896 -- which has the same syntactic form.
6898 --------------------------
6899 -- B.2 Shift Operators --
6900 --------------------------
6902 -- Calls to the intrinsic shift functions are converted to one of
6903 -- the following shift nodes, which have the form of normal binary
6904 -- operator names. Note that for a given shift operation, one node
6905 -- covers all possible types, as for normal operators.
6907 -- Note: it is perfectly permissible for the expander to generate
6908 -- shift operation nodes directly, in which case they will be analyzed
6909 -- and parsed in the usual manner.
6911 -- Sprint syntax: shift-function-name!(expr, count)
6913 -- Note: the Left_Opnd field holds the first argument (the value to
6914 -- be shifted). The Right_Opnd field holds the second argument (the
6915 -- shift count). The Chars field is the name of the intrinsic function.
6917 -- N_Op_Rotate_Left
6918 -- Sloc points to the function name
6919 -- plus fields for binary operator
6920 -- plus fields for expression
6921 -- Shift_Count_OK (Flag4-Sem)
6923 -- N_Op_Rotate_Right
6924 -- Sloc points to the function name
6925 -- plus fields for binary operator
6926 -- plus fields for expression
6927 -- Shift_Count_OK (Flag4-Sem)
6929 -- N_Op_Shift_Left
6930 -- Sloc points to the function name
6931 -- plus fields for binary operator
6932 -- plus fields for expression
6933 -- Shift_Count_OK (Flag4-Sem)
6935 -- N_Op_Shift_Right_Arithmetic
6936 -- Sloc points to the function name
6937 -- plus fields for binary operator
6938 -- plus fields for expression
6939 -- Shift_Count_OK (Flag4-Sem)
6941 -- N_Op_Shift_Right
6942 -- Sloc points to the function name
6943 -- plus fields for binary operator
6944 -- plus fields for expression
6945 -- Shift_Count_OK (Flag4-Sem)
6947 --------------------------
6948 -- Obsolescent Features --
6949 --------------------------
6951 -- The syntax descriptions and tree nodes for obsolescent features are
6952 -- grouped together, corresponding to their location in appendix I in
6953 -- the RM. However, parsing and semantic analysis for these constructs
6954 -- is located in an appropriate chapter (see individual notes).
6956 ---------------------------
6957 -- J.3 Delta Constraint --
6958 ---------------------------
6960 -- Note: the parse routine for this construct is located in section
6961 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6962 -- where delta constraint logically belongs.
6964 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6966 -- N_Delta_Constraint
6967 -- Sloc points to DELTA
6968 -- Delta_Expression (Node3)
6969 -- Range_Constraint (Node4) (set to Empty if not present)
6971 --------------------
6972 -- J.7 At Clause --
6973 --------------------
6975 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6977 -- Note: the parse routine for this construct is located in Par-Ch13,
6978 -- and the semantic analysis is in Sem_Ch13, where at clause logically
6979 -- belongs if it were not obsolescent.
6981 -- Note: in Ada 83 the expression must be a simple expression
6983 -- Gigi restriction: This node never appears, it is rewritten as an
6984 -- address attribute definition clause.
6986 -- N_At_Clause
6987 -- Sloc points to FOR
6988 -- Identifier (Node1)
6989 -- Expression (Node3)
6991 ---------------------
6992 -- J.8 Mod clause --
6993 ---------------------
6995 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
6997 -- Note: the parse routine for this construct is located in Par-Ch13,
6998 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
6999 -- belongs if it were not obsolescent.
7001 -- Note: in Ada 83, the expression must be a simple expression
7003 -- Gigi restriction: this node never appears. It is replaced
7004 -- by a corresponding Alignment attribute definition clause.
7006 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7007 -- its name has "clause" in it. This is rather strange, but is quite
7008 -- definitely specified. The pragmas before are collected in the
7009 -- Pragmas_Before field of the mod clause node itself, and pragmas
7010 -- after are simply swallowed up in the list of component clauses.
7012 -- N_Mod_Clause
7013 -- Sloc points to AT
7014 -- Expression (Node3)
7015 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7017 --------------------
7018 -- Semantic Nodes --
7019 --------------------
7021 -- These semantic nodes are used to hold additional semantic information.
7022 -- They are inserted into the tree as a result of semantic processing.
7023 -- Although there are no legitimate source syntax constructions that
7024 -- correspond directly to these nodes, we need a source syntax for the
7025 -- reconstructed tree printed by Sprint, and the node descriptions here
7026 -- show this syntax.
7028 --------------
7029 -- Contract --
7030 --------------
7032 -- This node is used to hold the various parts of an entry or subprogram
7033 -- contract, consisting in pre- and postconditions on the one hand, and
7034 -- test-cases on the other hand.
7036 -- It is referenced from an entry, a subprogram or a generic subprogram
7037 -- entity.
7039 -- Sprint syntax: <none> as the node should not appear in the tree, but
7040 -- only attached to an entry or [generic] subprogram
7041 -- entity.
7043 -- N_Contract
7044 -- Sloc points to the subprogram's name
7045 -- Pre_Post_Conditions (Node1) (set to Empty if none)
7046 -- Contract_Test_Cases (Node2) (set to Empty if none)
7047 -- Classifications (Node3) (set to Empty if none)
7049 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7050 -- to pre- and postconditions associated with an entry or a subprogram.
7051 -- The pragmas can either come from source or be the byproduct of aspect
7052 -- expansion. The ordering in the list is of LIFO fashion.
7054 -- Contract_Test_Cases contains a collection of pragmas that correspond
7055 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7056 -- list is of LIFO fashion.
7058 -- Classifications contains pragmas that either categorize subprogram
7059 -- inputs and outputs or establish dependencies between them. Currently
7060 -- pragmas Depends and Global are stored in this list. The ordering is
7061 -- of LIFO fashion.
7063 -------------------
7064 -- Expanded_Name --
7065 -------------------
7067 -- The N_Expanded_Name node is used to represent a selected component
7068 -- name that has been resolved to an expanded name. The semantic phase
7069 -- replaces N_Selected_Component nodes that represent names by the use
7070 -- of this node, leaving the N_Selected_Component node used only when
7071 -- the prefix is a record or protected type.
7073 -- The fields of the N_Expanded_Name node are layed out identically
7074 -- to those of the N_Selected_Component node, allowing conversion of
7075 -- an expanded name node to a selected component node to be done
7076 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7078 -- There is no special sprint syntax for an expanded name
7080 -- N_Expanded_Name
7081 -- Sloc points to the period
7082 -- Chars (Name1) copy of Chars field of selector name
7083 -- Prefix (Node3)
7084 -- Selector_Name (Node2)
7085 -- Entity (Node4-Sem)
7086 -- Associated_Node (Node4-Sem)
7087 -- Has_Private_View (Flag11-Sem) set in generic units.
7088 -- Redundant_Use (Flag13-Sem)
7089 -- Atomic_Sync_Required (Flag14-Sem)
7090 -- plus fields for expression
7092 -----------------------------
7093 -- Expression with Actions --
7094 -----------------------------
7096 -- This node is created by the analyzer/expander to handle some
7097 -- expansion cases, notably short circuit forms where there are
7098 -- actions associated with the right-hand side operand.
7100 -- The N_Expression_With_Actions node represents an expression with
7101 -- an associated set of actions (which are executable statements and
7102 -- declarations, as might occur in a handled statement sequence).
7104 -- The required semantics is that the set of actions is executed in
7105 -- the order in which it appears just before the expression is
7106 -- evaluated (and these actions must only be executed if the value
7107 -- of the expression is evaluated). The node is considered to be
7108 -- a subexpression, whose value is the value of the Expression after
7109 -- executing all the actions.
7111 -- If the actions contain declarations, then these declarations may
7112 -- be referenced within the expression. However note that there is
7113 -- no proper scope associated with the expression-with-action, so the
7114 -- back-end will elaborate them in the context of the enclosing scope.
7116 -- Sprint syntax: do
7117 -- action;
7118 -- action;
7119 -- ...
7120 -- action;
7121 -- in expression end
7123 -- N_Expression_With_Actions
7124 -- Actions (List1)
7125 -- Expression (Node3)
7126 -- plus fields for expression
7128 -- Note: the actions list is always non-null, since we would never have
7129 -- created this node if there weren't some actions.
7131 -- Note: Expression may be a Null_Statement, in which case the
7132 -- N_Expression_With_Actions has type Standard_Void_Type. However some
7133 -- backends do not support such expression-with-actions occurring
7134 -- outside of a proper (non-void) expression, so this should just be
7135 -- used as an intermediate representation within the front-end. Also
7136 -- note that this is really an irregularity (expressions and statements
7137 -- are not interchangeable, and in particular an N_Null_Statement is
7138 -- not a proper expression), and in the long term all cases of this
7139 -- idiom should instead use a new node kind N_Compound_Statement.
7141 --------------------
7142 -- Free Statement --
7143 --------------------
7145 -- The N_Free_Statement node is generated as a result of a call to an
7146 -- instantiation of Unchecked_Deallocation. The instantiation of this
7147 -- generic is handled specially and generates this node directly.
7149 -- Sprint syntax: free expression
7151 -- N_Free_Statement
7152 -- Sloc is copied from the unchecked deallocation call
7153 -- Expression (Node3) argument to unchecked deallocation call
7154 -- Storage_Pool (Node1-Sem)
7155 -- Procedure_To_Call (Node2-Sem)
7156 -- Actual_Designated_Subtype (Node4-Sem)
7158 -- Note: in the case where a debug source file is generated, the Sloc
7159 -- for this node points to the FREE keyword in the Sprint file output.
7161 -------------------
7162 -- Freeze Entity --
7163 -------------------
7165 -- This node marks the point in a declarative part at which an entity
7166 -- declared therein becomes frozen. The expander places initialization
7167 -- procedures for types at those points. Gigi uses the freezing point
7168 -- to elaborate entities that may depend on previous private types.
7170 -- See the section in Einfo "Delayed Freezing and Elaboration" for
7171 -- a full description of the use of this node.
7173 -- The Entity field points back to the entity for the type (whose
7174 -- Freeze_Node field points back to this freeze node).
7176 -- The Actions field contains a list of declarations and statements
7177 -- generated by the expander which are associated with the freeze
7178 -- node, and are elaborated as though the freeze node were replaced
7179 -- by this sequence of actions.
7181 -- Note: the Sloc field in the freeze node references a construct
7182 -- associated with the freezing point. This is used for posting
7183 -- messages in some error/warning situations, e.g. the case where
7184 -- a primitive operation of a tagged type is declared too late.
7186 -- Sprint syntax: freeze entity-name [
7187 -- freeze actions
7188 -- ]
7190 -- N_Freeze_Entity
7191 -- Sloc points near freeze point (see above special note)
7192 -- Entity (Node4-Sem)
7193 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7194 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7195 -- Actions (List1) (set to No_List if no freeze actions)
7196 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7198 -- The Actions field holds actions associated with the freeze. These
7199 -- actions are elaborated at the point where the type is frozen.
7201 -- Note: in the case where a debug source file is generated, the Sloc
7202 -- for this node points to the FREEZE keyword in the Sprint file output.
7204 --------------------------------
7205 -- Implicit Label Declaration --
7206 --------------------------------
7208 -- An implicit label declaration is created for every occurrence of a
7209 -- label on a statement or a label on a block or loop. It is chained
7210 -- in the declarations of the innermost enclosing block as specified
7211 -- in RM section 5.1 (3).
7213 -- The Defining_Identifier is the actual identifier for the statement
7214 -- identifier. Note that the occurrence of the label is a reference, NOT
7215 -- the defining occurrence. The defining occurrence occurs at the head
7216 -- of the innermost enclosing block, and is represented by this node.
7218 -- Note: from the grammar, this might better be called an implicit
7219 -- statement identifier declaration, but the term we choose seems
7220 -- friendlier, since at least informally statement identifiers are
7221 -- called labels in both cases (i.e. when used in labels, and when
7222 -- used as the identifiers of blocks and loops).
7224 -- Note: although this is logically a semantic node, since it does not
7225 -- correspond directly to a source syntax construction, these nodes are
7226 -- actually created by the parser in a post pass done just after parsing
7227 -- is complete, before semantic analysis is started (see Par.Labl).
7229 -- Sprint syntax: labelname : label;
7231 -- N_Implicit_Label_Declaration
7232 -- Sloc points to the << token for a statement identifier, or to the
7233 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
7234 -- Defining_Identifier (Node1)
7235 -- Label_Construct (Node2-Sem)
7237 -- Note: in the case where a debug source file is generated, the Sloc
7238 -- for this node points to the label name in the generated declaration.
7240 ---------------------
7241 -- Itype_Reference --
7242 ---------------------
7244 -- This node is used to create a reference to an Itype. The only purpose
7245 -- is to make sure the Itype is defined if this is the first reference.
7247 -- A typical use of this node is when an Itype is to be referenced in
7248 -- two branches of an IF statement. In this case it is important that
7249 -- the first use of the Itype not be inside the conditional, since then
7250 -- it might not be defined if the other branch of the IF is taken, in
7251 -- the case where the definition generates elaboration code.
7253 -- The Itype field points to the referenced Itype
7255 -- Sprint syntax: reference itype-name
7257 -- N_Itype_Reference
7258 -- Sloc points to the node generating the reference
7259 -- Itype (Node1-Sem)
7261 -- Note: in the case where a debug source file is generated, the Sloc
7262 -- for this node points to the REFERENCE keyword in the file output.
7264 ---------------------
7265 -- Raise_xxx_Error --
7266 ---------------------
7268 -- One of these nodes is created during semantic analysis to replace
7269 -- a node for an expression that is determined to definitely raise
7270 -- the corresponding exception.
7272 -- The N_Raise_xxx_Error node may also stand alone in place
7273 -- of a declaration or statement, in which case it simply causes
7274 -- the exception to be raised (i.e. it is equivalent to a raise
7275 -- statement that raises the corresponding exception). This use
7276 -- is distinguished by the fact that the Etype in this case is
7277 -- Standard_Void_Type; in the subexpression case, the Etype is the
7278 -- same as the type of the subexpression which it replaces.
7280 -- If Condition is empty, then the raise is unconditional. If the
7281 -- Condition field is non-empty, it is a boolean expression which
7282 -- is first evaluated, and the exception is raised only if the
7283 -- value of the expression is True. In the unconditional case, the
7284 -- creation of this node is usually accompanied by a warning message
7285 -- error. The creation of this node will usually be accompanied by a
7286 -- message (unless it appears within the right operand of a short
7287 -- circuit form whose left argument is static and decisively
7288 -- eliminates elaboration of the raise operation. The condition field
7289 -- can ONLY be present when the node is used as a statement form, it
7290 -- may NOT be present in the case where the node appears within an
7291 -- expression.
7293 -- The exception is generated with a message that contains the
7294 -- file name and line number, and then appended text. The Reason
7295 -- code shows the text to be added. The Reason code is an element
7296 -- of the type Types.RT_Exception_Code, and indicates both the
7297 -- message to be added, and the exception to be raised (which must
7298 -- match the node type). The value is stored by storing a Uint which
7299 -- is the Pos value of the enumeration element in this type.
7301 -- Gigi restriction: This expander ensures that the type of the
7302 -- Condition field is always Standard.Boolean, even if the type
7303 -- in the source is some non-standard boolean type.
7305 -- Sprint syntax: [xxx_error "msg"]
7306 -- or: [xxx_error when condition "msg"]
7308 -- N_Raise_Constraint_Error
7309 -- Sloc references related construct
7310 -- Condition (Node1) (set to Empty if no condition)
7311 -- Reason (Uint3)
7312 -- plus fields for expression
7314 -- N_Raise_Program_Error
7315 -- Sloc references related construct
7316 -- Condition (Node1) (set to Empty if no condition)
7317 -- Reason (Uint3)
7318 -- plus fields for expression
7320 -- N_Raise_Storage_Error
7321 -- Sloc references related construct
7322 -- Condition (Node1) (set to Empty if no condition)
7323 -- Reason (Uint3)
7324 -- plus fields for expression
7326 -- Note: Sloc is copied from the expression generating the exception.
7327 -- In the case where a debug source file is generated, the Sloc for
7328 -- this node points to the left bracket in the Sprint file output.
7330 -- Note: the back end may be required to translate these nodes into
7331 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7333 ---------------------------------------------
7334 -- Optimization of Exception Raise to Goto --
7335 ---------------------------------------------
7337 -- In some cases, the front end will determine that any exception raised
7338 -- by the back end for a certain exception should be transformed into a
7339 -- goto statement.
7341 -- There are three kinds of exceptions raised by the back end (note that
7342 -- for this purpose we consider gigi to be part of the back end in the
7343 -- gcc case):
7345 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
7346 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
7347 -- 3. Other cases not specifically marked by the front end
7349 -- Normally all such exceptions are translated into calls to the proper
7350 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
7351 -- and the exception message.
7353 -- The front end may determine that for a particular sequence of code,
7354 -- exceptions in any of these three categories for a particular builtin
7355 -- exception should result in a goto, rather than a call to Rcheck_xx.
7356 -- The exact sequence to be generated is:
7358 -- Local_Raise (exception'Identity);
7359 -- goto Label
7361 -- The front end marks such a sequence of code by bracketing it with
7362 -- push and pop nodes:
7364 -- N_Push_xxx_Label (referencing the label)
7365 -- ...
7366 -- (code where transformation is expected for exception xxx)
7367 -- ...
7368 -- N_Pop_xxx_Label
7370 -- The use of push/pop reflects the fact that such regions can properly
7371 -- nest, and one special case is a subregion in which no transformation
7372 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7373 -- Exception_Label field is Empty.
7375 -- N_Push_Constraint_Error_Label
7376 -- Sloc references first statement in region covered
7377 -- Exception_Label (Node5-Sem)
7379 -- N_Push_Program_Error_Label
7380 -- Sloc references first statement in region covered
7381 -- Exception_Label (Node5-Sem)
7383 -- N_Push_Storage_Error_Label
7384 -- Sloc references first statement in region covered
7385 -- Exception_Label (Node5-Sem)
7387 -- N_Pop_Constraint_Error_Label
7388 -- Sloc references last statement in region covered
7390 -- N_Pop_Program_Error_Label
7391 -- Sloc references last statement in region covered
7393 -- N_Pop_Storage_Error_Label
7394 -- Sloc references last statement in region covered
7396 ---------------
7397 -- Reference --
7398 ---------------
7400 -- For a number of purposes, we need to construct references to objects.
7401 -- These references are subsequently treated as normal access values.
7402 -- An example is the construction of the parameter block passed to a
7403 -- task entry. The N_Reference node is provided for this purpose. It is
7404 -- similar in effect to the use of the Unrestricted_Access attribute,
7405 -- and like Unrestricted_Access can be applied to objects which would
7406 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
7407 -- objects which are not aliased, and slices). In addition it can be
7408 -- applied to composite type values as well as objects, including string
7409 -- values and aggregates.
7411 -- Note: we use the Prefix field for this expression so that the
7412 -- resulting node can be treated using common code with the attribute
7413 -- nodes for the 'Access and related attributes. Logically it would make
7414 -- more sense to call it an Expression field, but then we would have to
7415 -- special case the treatment of the N_Reference node.
7417 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
7418 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
7419 -- a temporary initialized to a N_Reference node in order to eliminate
7420 -- superfluous access checks.
7422 -- Sprint syntax: prefix'reference
7424 -- N_Reference
7425 -- Sloc is copied from the expression
7426 -- Prefix (Node3)
7427 -- plus fields for expression
7429 -- Note: in the case where a debug source file is generated, the Sloc
7430 -- for this node points to the quote in the Sprint file output.
7432 -----------------
7433 -- SCIL Nodes --
7434 -----------------
7436 -- SCIL nodes are special nodes added to the tree when the CodePeer
7437 -- mode is active. They help the CodePeer backend to locate nodes that
7438 -- require special processing. They are only generated if SCIL
7439 -- generation is enabled. A standard tree-walk will not encounter
7440 -- these nodes even if they are present; these nodes are only
7441 -- accessible via the function SCIL_LL.Get_SCIL_Node.
7443 -- N_SCIL_Dispatch_Table_Tag_Init
7444 -- Sloc references a node for a tag initialization
7445 -- SCIL_Entity (Node4-Sem)
7447 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
7448 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
7449 -- the declaration of the dispatch table for a tagged type.
7451 -- N_SCIL_Dispatching_Call
7452 -- Sloc references the node of a dispatching call
7453 -- SCIL_Target_Prim (Node2-Sem)
7454 -- SCIL_Entity (Node4-Sem)
7455 -- SCIL_Controlling_Tag (Node5-Sem)
7457 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
7458 -- with the N_Procedure_Call or N_Function_Call node (or a rewriting
7459 -- thereof) corresponding to a dispatching call.
7461 -- N_SCIL_Membership_Test
7462 -- Sloc references the node of a membership test
7463 -- SCIL_Tag_Value (Node5-Sem)
7464 -- SCIL_Entity (Node4-Sem)
7466 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
7467 -- with the N_In node (or a rewriting thereof) corresponding to a
7468 -- classwide membership test.
7470 ---------------------
7471 -- Subprogram_Info --
7472 ---------------------
7474 -- This node generates the appropriate Subprogram_Info value for a
7475 -- given procedure. See Ada.Exceptions for further details
7477 -- Sprint syntax: subprog'subprogram_info
7479 -- N_Subprogram_Info
7480 -- Sloc points to the entity for the procedure
7481 -- Identifier (Node1) identifier referencing the procedure
7482 -- Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
7484 -- Note: in the case where a debug source file is generated, the Sloc
7485 -- for this node points to the quote in the Sprint file output.
7487 --------------------------
7488 -- Unchecked Expression --
7489 --------------------------
7491 -- An unchecked expression is one that must be analyzed and resolved
7492 -- with all checks off, regardless of the current setting of scope
7493 -- suppress flags.
7495 -- Sprint syntax: `(expression)
7497 -- Note: this node is always removed from the tree (and replaced by
7498 -- its constituent expression) on completion of analysis, so it only
7499 -- appears in intermediate trees, and will never be seen by Gigi.
7501 -- N_Unchecked_Expression
7502 -- Sloc is a copy of the Sloc of the expression
7503 -- Expression (Node3)
7504 -- plus fields for expression
7506 -- Note: in the case where a debug source file is generated, the Sloc
7507 -- for this node points to the back quote in the Sprint file output.
7509 -------------------------------
7510 -- Unchecked Type Conversion --
7511 -------------------------------
7513 -- An unchecked type conversion node represents the semantic action
7514 -- corresponding to a call to an instantiation of Unchecked_Conversion.
7515 -- It is generated as a result of actual use of Unchecked_Conversion
7516 -- and also the expander generates unchecked type conversion nodes
7517 -- directly for expansion of complex semantic actions.
7519 -- Note: an unchecked type conversion is a variable as far as the
7520 -- semantics are concerned, which is convenient for the expander.
7521 -- This does not change what Ada source programs are legal, since
7522 -- clearly a function call to an instantiation of Unchecked_Conversion
7523 -- is not a variable in any case.
7525 -- Sprint syntax: subtype-mark!(expression)
7527 -- N_Unchecked_Type_Conversion
7528 -- Sloc points to related node in source
7529 -- Subtype_Mark (Node4)
7530 -- Expression (Node3)
7531 -- Kill_Range_Check (Flag11-Sem)
7532 -- No_Truncation (Flag17-Sem)
7533 -- plus fields for expression
7535 -- Note: in the case where a debug source file is generated, the Sloc
7536 -- for this node points to the exclamation in the Sprint file output.
7538 -----------------------------------
7539 -- Validate_Unchecked_Conversion --
7540 -----------------------------------
7542 -- The front end does most of the validation of unchecked conversion,
7543 -- including checking sizes (this is done after the back end is called
7544 -- to take advantage of back-annotation of calculated sizes).
7546 -- The front end also deals with specific cases that are not allowed
7547 -- e.g. involving unconstrained array types.
7549 -- For the case of the standard gigi backend, this means that all
7550 -- checks are done in the front-end.
7552 -- However, in the case of specialized back-ends, notably the JVM
7553 -- backend for JGNAT, additional requirements and restrictions apply
7554 -- to unchecked conversion, and these are most conveniently performed
7555 -- in the specialized back-end.
7557 -- To accommodate this requirement, for such back ends, the following
7558 -- special node is generated recording an unchecked conversion that
7559 -- needs to be validated. The back end should post an appropriate
7560 -- error message if the unchecked conversion is invalid or warrants
7561 -- a special warning message.
7563 -- Source_Type and Target_Type point to the entities for the two
7564 -- types involved in the unchecked conversion instantiation that
7565 -- is to be validated.
7567 -- Sprint syntax: validate Unchecked_Conversion (source, target);
7569 -- N_Validate_Unchecked_Conversion
7570 -- Sloc points to instantiation (location for warning message)
7571 -- Source_Type (Node1-Sem)
7572 -- Target_Type (Node2-Sem)
7574 -- Note: in the case where a debug source file is generated, the Sloc
7575 -- for this node points to the VALIDATE keyword in the file output.
7577 -----------
7578 -- Empty --
7579 -----------
7581 -- Used as the contents of the Nkind field of the dummy Empty node
7582 -- and in some other situations to indicate an uninitialized value.
7584 -- N_Empty
7585 -- Chars (Name1) is set to No_Name
7587 -----------
7588 -- Error --
7589 -----------
7591 -- Used as the contents of the Nkind field of the dummy Error node.
7592 -- Has an Etype field, which gets set to Any_Type later on, to help
7593 -- error recovery (Error_Posted is also set in the Error node).
7595 -- N_Error
7596 -- Chars (Name1) is set to Error_Name
7597 -- Etype (Node5-Sem)
7599 --------------------------
7600 -- Node Type Definition --
7601 --------------------------
7603 -- The following is the definition of the Node_Kind type. As previously
7604 -- discussed, this is separated off to allow rearrangement of the order to
7605 -- facilitate definition of subtype ranges. The comments show the subtype
7606 -- classes which apply to each set of node kinds. The first entry in the
7607 -- comment characterizes the following list of nodes.
7609 type Node_Kind is (
7610 N_Unused_At_Start,
7612 -- N_Representation_Clause
7614 N_At_Clause,
7615 N_Component_Clause,
7616 N_Enumeration_Representation_Clause,
7617 N_Mod_Clause,
7618 N_Record_Representation_Clause,
7620 -- N_Representation_Clause, N_Has_Chars
7622 N_Attribute_Definition_Clause,
7624 -- N_Has_Chars
7626 N_Empty,
7627 N_Pragma_Argument_Association,
7629 -- N_Has_Etype, N_Has_Chars
7631 -- Note: of course N_Error does not really have Etype or Chars fields,
7632 -- and any attempt to access these fields in N_Error will cause an
7633 -- error, but historically this always has been positioned so that an
7634 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
7635 -- Most likely this makes coding easier somewhere but still seems
7636 -- undesirable. To be investigated some time ???
7638 N_Error,
7640 -- N_Entity, N_Has_Etype, N_Has_Chars
7642 N_Defining_Character_Literal,
7643 N_Defining_Identifier,
7644 N_Defining_Operator_Symbol,
7646 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
7648 N_Expanded_Name,
7650 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
7651 -- N_Has_Chars, N_Has_Entity
7653 N_Identifier,
7654 N_Operator_Symbol,
7656 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
7657 -- N_Has_Chars, N_Has_Entity
7659 N_Character_Literal,
7661 -- N_Binary_Op, N_Op, N_Subexpr,
7662 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
7664 N_Op_Add,
7665 N_Op_Concat,
7666 N_Op_Expon,
7667 N_Op_Subtract,
7669 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
7670 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
7672 N_Op_Divide,
7673 N_Op_Mod,
7674 N_Op_Multiply,
7675 N_Op_Rem,
7677 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7678 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
7680 N_Op_And,
7682 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7683 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
7685 N_Op_Eq,
7686 N_Op_Ge,
7687 N_Op_Gt,
7688 N_Op_Le,
7689 N_Op_Lt,
7690 N_Op_Ne,
7692 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7693 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
7695 N_Op_Or,
7696 N_Op_Xor,
7698 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
7699 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
7701 N_Op_Rotate_Left,
7702 N_Op_Rotate_Right,
7703 N_Op_Shift_Left,
7704 N_Op_Shift_Right,
7705 N_Op_Shift_Right_Arithmetic,
7707 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
7708 -- N_Has_Chars, N_Has_Entity
7710 N_Op_Abs,
7711 N_Op_Minus,
7712 N_Op_Not,
7713 N_Op_Plus,
7715 -- N_Subexpr, N_Has_Etype, N_Has_Entity
7717 N_Attribute_Reference,
7719 -- N_Subexpr, N_Has_Etype, N_Membership_Test
7721 N_In,
7722 N_Not_In,
7724 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
7726 N_And_Then,
7727 N_Or_Else,
7729 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
7731 N_Function_Call,
7732 N_Procedure_Call_Statement,
7734 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
7736 N_Raise_Constraint_Error,
7737 N_Raise_Program_Error,
7738 N_Raise_Storage_Error,
7740 -- N_Subexpr, N_Has_Etype
7742 N_Explicit_Dereference,
7743 N_Expression_With_Actions,
7744 N_If_Expression,
7745 N_Indexed_Component,
7746 N_Integer_Literal,
7747 N_Null,
7748 N_Qualified_Expression,
7749 N_Quantified_Expression,
7750 N_Aggregate,
7751 N_Allocator,
7752 N_Case_Expression,
7753 N_Extension_Aggregate,
7754 N_Raise_Expression,
7755 N_Range,
7756 N_Real_Literal,
7757 N_Reference,
7758 N_Selected_Component,
7759 N_Slice,
7760 N_String_Literal,
7761 N_Subprogram_Info,
7762 N_Type_Conversion,
7763 N_Unchecked_Expression,
7764 N_Unchecked_Type_Conversion,
7766 -- N_Has_Etype
7768 N_Subtype_Indication,
7770 -- N_Declaration
7772 N_Component_Declaration,
7773 N_Entry_Declaration,
7774 N_Expression_Function,
7775 N_Formal_Object_Declaration,
7776 N_Formal_Type_Declaration,
7777 N_Full_Type_Declaration,
7778 N_Incomplete_Type_Declaration,
7779 N_Iterator_Specification,
7780 N_Loop_Parameter_Specification,
7781 N_Object_Declaration,
7782 N_Protected_Type_Declaration,
7783 N_Private_Extension_Declaration,
7784 N_Private_Type_Declaration,
7785 N_Subtype_Declaration,
7787 -- N_Subprogram_Specification, N_Declaration
7789 N_Function_Specification,
7790 N_Procedure_Specification,
7792 -- N_Access_To_Subprogram_Definition
7794 N_Access_Function_Definition,
7795 N_Access_Procedure_Definition,
7797 -- N_Later_Decl_Item
7799 N_Task_Type_Declaration,
7801 -- N_Body_Stub, N_Later_Decl_Item
7803 N_Package_Body_Stub,
7804 N_Protected_Body_Stub,
7805 N_Subprogram_Body_Stub,
7806 N_Task_Body_Stub,
7808 -- N_Generic_Instantiation, N_Later_Decl_Item
7809 -- N_Subprogram_Instantiation
7811 N_Function_Instantiation,
7812 N_Procedure_Instantiation,
7814 -- N_Generic_Instantiation, N_Later_Decl_Item
7816 N_Package_Instantiation,
7818 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7820 N_Package_Body,
7821 N_Subprogram_Body,
7823 -- N_Later_Decl_Item, N_Proper_Body
7825 N_Protected_Body,
7826 N_Task_Body,
7828 -- N_Later_Decl_Item
7830 N_Implicit_Label_Declaration,
7831 N_Package_Declaration,
7832 N_Single_Task_Declaration,
7833 N_Subprogram_Declaration,
7834 N_Use_Package_Clause,
7836 -- N_Generic_Declaration, N_Later_Decl_Item
7838 N_Generic_Package_Declaration,
7839 N_Generic_Subprogram_Declaration,
7841 -- N_Array_Type_Definition
7843 N_Constrained_Array_Definition,
7844 N_Unconstrained_Array_Definition,
7846 -- N_Renaming_Declaration
7848 N_Exception_Renaming_Declaration,
7849 N_Object_Renaming_Declaration,
7850 N_Package_Renaming_Declaration,
7851 N_Subprogram_Renaming_Declaration,
7853 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
7855 N_Generic_Function_Renaming_Declaration,
7856 N_Generic_Package_Renaming_Declaration,
7857 N_Generic_Procedure_Renaming_Declaration,
7859 -- N_Statement_Other_Than_Procedure_Call
7861 N_Abort_Statement,
7862 N_Accept_Statement,
7863 N_Assignment_Statement,
7864 N_Asynchronous_Select,
7865 N_Block_Statement,
7866 N_Case_Statement,
7867 N_Code_Statement,
7868 N_Conditional_Entry_Call,
7870 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
7872 N_Delay_Relative_Statement,
7873 N_Delay_Until_Statement,
7875 -- N_Statement_Other_Than_Procedure_Call
7877 N_Entry_Call_Statement,
7878 N_Free_Statement,
7879 N_Goto_Statement,
7880 N_Loop_Statement,
7881 N_Null_Statement,
7882 N_Raise_Statement,
7883 N_Requeue_Statement,
7884 N_Simple_Return_Statement,
7885 N_Extended_Return_Statement,
7886 N_Selective_Accept,
7887 N_Timed_Entry_Call,
7889 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7891 N_Exit_Statement,
7892 N_If_Statement,
7894 -- N_Has_Condition
7896 N_Accept_Alternative,
7897 N_Delay_Alternative,
7898 N_Elsif_Part,
7899 N_Entry_Body_Formal_Part,
7900 N_Iteration_Scheme,
7901 N_Terminate_Alternative,
7903 -- N_Formal_Subprogram_Declaration
7905 N_Formal_Abstract_Subprogram_Declaration,
7906 N_Formal_Concrete_Subprogram_Declaration,
7908 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
7910 N_Push_Constraint_Error_Label,
7911 N_Push_Program_Error_Label,
7912 N_Push_Storage_Error_Label,
7914 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7916 N_Pop_Constraint_Error_Label,
7917 N_Pop_Program_Error_Label,
7918 N_Pop_Storage_Error_Label,
7920 -- SCIL nodes
7922 N_SCIL_Dispatch_Table_Tag_Init,
7923 N_SCIL_Dispatching_Call,
7924 N_SCIL_Membership_Test,
7926 -- Other nodes (not part of any subtype class)
7928 N_Abortable_Part,
7929 N_Abstract_Subprogram_Declaration,
7930 N_Access_Definition,
7931 N_Access_To_Object_Definition,
7932 N_Aspect_Specification,
7933 N_Case_Expression_Alternative,
7934 N_Case_Statement_Alternative,
7935 N_Compilation_Unit,
7936 N_Compilation_Unit_Aux,
7937 N_Component_Association,
7938 N_Component_Definition,
7939 N_Component_List,
7940 N_Contract,
7941 N_Derived_Type_Definition,
7942 N_Decimal_Fixed_Point_Definition,
7943 N_Defining_Program_Unit_Name,
7944 N_Delta_Constraint,
7945 N_Designator,
7946 N_Digits_Constraint,
7947 N_Discriminant_Association,
7948 N_Discriminant_Specification,
7949 N_Enumeration_Type_Definition,
7950 N_Entry_Body,
7951 N_Entry_Call_Alternative,
7952 N_Entry_Index_Specification,
7953 N_Exception_Declaration,
7954 N_Exception_Handler,
7955 N_Floating_Point_Definition,
7956 N_Formal_Decimal_Fixed_Point_Definition,
7957 N_Formal_Derived_Type_Definition,
7958 N_Formal_Discrete_Type_Definition,
7959 N_Formal_Floating_Point_Definition,
7960 N_Formal_Modular_Type_Definition,
7961 N_Formal_Ordinary_Fixed_Point_Definition,
7962 N_Formal_Package_Declaration,
7963 N_Formal_Private_Type_Definition,
7964 N_Formal_Incomplete_Type_Definition,
7965 N_Formal_Signed_Integer_Type_Definition,
7966 N_Freeze_Entity,
7967 N_Generic_Association,
7968 N_Handled_Sequence_Of_Statements,
7969 N_Index_Or_Discriminant_Constraint,
7970 N_Itype_Reference,
7971 N_Label,
7972 N_Modular_Type_Definition,
7973 N_Number_Declaration,
7974 N_Ordinary_Fixed_Point_Definition,
7975 N_Others_Choice,
7976 N_Package_Specification,
7977 N_Parameter_Association,
7978 N_Parameter_Specification,
7979 N_Pragma,
7980 N_Protected_Definition,
7981 N_Range_Constraint,
7982 N_Real_Range_Specification,
7983 N_Record_Definition,
7984 N_Signed_Integer_Type_Definition,
7985 N_Single_Protected_Declaration,
7986 N_Subunit,
7987 N_Task_Definition,
7988 N_Triggering_Alternative,
7989 N_Use_Type_Clause,
7990 N_Validate_Unchecked_Conversion,
7991 N_Variant,
7992 N_Variant_Part,
7993 N_With_Clause,
7994 N_Unused_At_End);
7996 for Node_Kind'Size use 8;
7997 -- The data structures in Atree assume this!
7999 ----------------------------
8000 -- Node Class Definitions --
8001 ----------------------------
8003 subtype N_Access_To_Subprogram_Definition is Node_Kind range
8004 N_Access_Function_Definition ..
8005 N_Access_Procedure_Definition;
8007 subtype N_Array_Type_Definition is Node_Kind range
8008 N_Constrained_Array_Definition ..
8009 N_Unconstrained_Array_Definition;
8011 subtype N_Binary_Op is Node_Kind range
8012 N_Op_Add ..
8013 N_Op_Shift_Right_Arithmetic;
8015 subtype N_Body_Stub is Node_Kind range
8016 N_Package_Body_Stub ..
8017 N_Task_Body_Stub;
8019 subtype N_Declaration is Node_Kind range
8020 N_Component_Declaration ..
8021 N_Procedure_Specification;
8022 -- Note: this includes all constructs normally thought of as declarations
8023 -- except those which are separately grouped as later declarations.
8025 subtype N_Delay_Statement is Node_Kind range
8026 N_Delay_Relative_Statement ..
8027 N_Delay_Until_Statement;
8029 subtype N_Direct_Name is Node_Kind range
8030 N_Identifier ..
8031 N_Character_Literal;
8033 subtype N_Entity is Node_Kind range
8034 N_Defining_Character_Literal ..
8035 N_Defining_Operator_Symbol;
8037 subtype N_Formal_Subprogram_Declaration is Node_Kind range
8038 N_Formal_Abstract_Subprogram_Declaration ..
8039 N_Formal_Concrete_Subprogram_Declaration;
8041 subtype N_Generic_Declaration is Node_Kind range
8042 N_Generic_Package_Declaration ..
8043 N_Generic_Subprogram_Declaration;
8045 subtype N_Generic_Instantiation is Node_Kind range
8046 N_Function_Instantiation ..
8047 N_Package_Instantiation;
8049 subtype N_Generic_Renaming_Declaration is Node_Kind range
8050 N_Generic_Function_Renaming_Declaration ..
8051 N_Generic_Procedure_Renaming_Declaration;
8053 subtype N_Has_Chars is Node_Kind range
8054 N_Attribute_Definition_Clause ..
8055 N_Op_Plus;
8057 subtype N_Has_Entity is Node_Kind range
8058 N_Expanded_Name ..
8059 N_Attribute_Reference;
8060 -- Nodes that have Entity fields
8061 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Aspect_Specification,
8062 -- or N_Attribute_Definition_Clause.
8064 subtype N_Has_Etype is Node_Kind range
8065 N_Error ..
8066 N_Subtype_Indication;
8068 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
8069 N_Op_Divide ..
8070 N_Op_Rem;
8072 subtype N_Multiplying_Operator is Node_Kind range
8073 N_Op_Divide ..
8074 N_Op_Rem;
8076 subtype N_Later_Decl_Item is Node_Kind range
8077 N_Task_Type_Declaration ..
8078 N_Generic_Subprogram_Declaration;
8079 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8080 -- only those items which can appear as later declarative items. This also
8081 -- includes N_Implicit_Label_Declaration which is not specifically in the
8082 -- grammar but may appear as a valid later declarative items. It does NOT
8083 -- include N_Pragma which can also appear among later declarative items.
8084 -- It does however include N_Protected_Body, which is a bit peculiar, but
8085 -- harmless since this cannot appear in Ada 83 mode anyway.
8087 subtype N_Membership_Test is Node_Kind range
8088 N_In ..
8089 N_Not_In;
8091 subtype N_Op is Node_Kind range
8092 N_Op_Add ..
8093 N_Op_Plus;
8095 subtype N_Op_Boolean is Node_Kind range
8096 N_Op_And ..
8097 N_Op_Xor;
8098 -- Binary operators which take operands of a boolean type, and yield
8099 -- a result of a boolean type.
8101 subtype N_Op_Compare is Node_Kind range
8102 N_Op_Eq ..
8103 N_Op_Ne;
8105 subtype N_Op_Shift is Node_Kind range
8106 N_Op_Rotate_Left ..
8107 N_Op_Shift_Right_Arithmetic;
8109 subtype N_Proper_Body is Node_Kind range
8110 N_Package_Body ..
8111 N_Task_Body;
8113 subtype N_Push_xxx_Label is Node_Kind range
8114 N_Push_Constraint_Error_Label ..
8115 N_Push_Storage_Error_Label;
8117 subtype N_Pop_xxx_Label is Node_Kind range
8118 N_Pop_Constraint_Error_Label ..
8119 N_Pop_Storage_Error_Label;
8121 subtype N_Push_Pop_xxx_Label is Node_Kind range
8122 N_Push_Constraint_Error_Label ..
8123 N_Pop_Storage_Error_Label;
8125 subtype N_Raise_xxx_Error is Node_Kind range
8126 N_Raise_Constraint_Error ..
8127 N_Raise_Storage_Error;
8129 subtype N_Renaming_Declaration is Node_Kind range
8130 N_Exception_Renaming_Declaration ..
8131 N_Generic_Procedure_Renaming_Declaration;
8133 subtype N_Representation_Clause is Node_Kind range
8134 N_At_Clause ..
8135 N_Attribute_Definition_Clause;
8137 subtype N_Short_Circuit is Node_Kind range
8138 N_And_Then ..
8139 N_Or_Else;
8141 subtype N_SCIL_Node is Node_Kind range
8142 N_SCIL_Dispatch_Table_Tag_Init ..
8143 N_SCIL_Membership_Test;
8145 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8146 N_Abort_Statement ..
8147 N_If_Statement;
8148 -- Note that this includes all statement types except for the cases of the
8149 -- N_Procedure_Call_Statement which is considered to be a subexpression
8150 -- (since overloading is possible, so it needs to go through the normal
8151 -- overloading resolution for expressions).
8153 subtype N_Subprogram_Call is Node_Kind range
8154 N_Function_Call ..
8155 N_Procedure_Call_Statement;
8157 subtype N_Subprogram_Instantiation is Node_Kind range
8158 N_Function_Instantiation ..
8159 N_Procedure_Instantiation;
8161 subtype N_Has_Condition is Node_Kind range
8162 N_Exit_Statement ..
8163 N_Terminate_Alternative;
8164 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
8166 subtype N_Subexpr is Node_Kind range
8167 N_Expanded_Name ..
8168 N_Unchecked_Type_Conversion;
8169 -- Nodes with expression fields
8171 subtype N_Subprogram_Specification is Node_Kind range
8172 N_Function_Specification ..
8173 N_Procedure_Specification;
8175 subtype N_Unary_Op is Node_Kind range
8176 N_Op_Abs ..
8177 N_Op_Plus;
8179 subtype N_Unit_Body is Node_Kind range
8180 N_Package_Body ..
8181 N_Subprogram_Body;
8183 ---------------------------
8184 -- Node Access Functions --
8185 ---------------------------
8187 -- The following functions return the contents of the indicated field of
8188 -- the node referenced by the argument, which is a Node_Id. They provide
8189 -- logical access to fields in the node which could be accessed using the
8190 -- Atree.Unchecked_Access package, but the idea is always to use these
8191 -- higher level routines which preserve strong typing. In debug mode,
8192 -- these routines check that they are being applied to an appropriate
8193 -- node, as well as checking that the node is in range.
8195 function ABE_Is_Certain
8196 (N : Node_Id) return Boolean; -- Flag18
8198 function Abort_Present
8199 (N : Node_Id) return Boolean; -- Flag15
8201 function Abortable_Part
8202 (N : Node_Id) return Node_Id; -- Node2
8204 function Abstract_Present
8205 (N : Node_Id) return Boolean; -- Flag4
8207 function Accept_Handler_Records
8208 (N : Node_Id) return List_Id; -- List5
8210 function Accept_Statement
8211 (N : Node_Id) return Node_Id; -- Node2
8213 function Access_Definition
8214 (N : Node_Id) return Node_Id; -- Node3
8216 function Access_To_Subprogram_Definition
8217 (N : Node_Id) return Node_Id; -- Node3
8219 function Access_Types_To_Process
8220 (N : Node_Id) return Elist_Id; -- Elist2
8222 function Actions
8223 (N : Node_Id) return List_Id; -- List1
8225 function Activation_Chain_Entity
8226 (N : Node_Id) return Node_Id; -- Node3
8228 function Acts_As_Spec
8229 (N : Node_Id) return Boolean; -- Flag4
8231 function Actual_Designated_Subtype
8232 (N : Node_Id) return Node_Id; -- Node4
8234 function Address_Warning_Posted
8235 (N : Node_Id) return Boolean; -- Flag18
8237 function Aggregate_Bounds
8238 (N : Node_Id) return Node_Id; -- Node3
8240 function Aliased_Present
8241 (N : Node_Id) return Boolean; -- Flag4
8243 function All_Others
8244 (N : Node_Id) return Boolean; -- Flag11
8246 function All_Present
8247 (N : Node_Id) return Boolean; -- Flag15
8249 function Alternatives
8250 (N : Node_Id) return List_Id; -- List4
8252 function Ancestor_Part
8253 (N : Node_Id) return Node_Id; -- Node3
8255 function Atomic_Sync_Required
8256 (N : Node_Id) return Boolean; -- Flag14
8258 function Array_Aggregate
8259 (N : Node_Id) return Node_Id; -- Node3
8261 function Aspect_Rep_Item
8262 (N : Node_Id) return Node_Id; -- Node2
8264 function Assignment_OK
8265 (N : Node_Id) return Boolean; -- Flag15
8267 function Associated_Node
8268 (N : Node_Id) return Node_Id; -- Node4
8270 function At_End_Proc
8271 (N : Node_Id) return Node_Id; -- Node1
8273 function Attribute_Name
8274 (N : Node_Id) return Name_Id; -- Name2
8276 function Aux_Decls_Node
8277 (N : Node_Id) return Node_Id; -- Node5
8279 function Backwards_OK
8280 (N : Node_Id) return Boolean; -- Flag6
8282 function Bad_Is_Detected
8283 (N : Node_Id) return Boolean; -- Flag15
8285 function By_Ref
8286 (N : Node_Id) return Boolean; -- Flag5
8288 function Body_Required
8289 (N : Node_Id) return Boolean; -- Flag13
8291 function Body_To_Inline
8292 (N : Node_Id) return Node_Id; -- Node3
8294 function Box_Present
8295 (N : Node_Id) return Boolean; -- Flag15
8297 function Char_Literal_Value
8298 (N : Node_Id) return Uint; -- Uint2
8300 function Chars
8301 (N : Node_Id) return Name_Id; -- Name1
8303 function Check_Address_Alignment
8304 (N : Node_Id) return Boolean; -- Flag11
8306 function Choice_Parameter
8307 (N : Node_Id) return Node_Id; -- Node2
8309 function Choices
8310 (N : Node_Id) return List_Id; -- List1
8312 function Class_Present
8313 (N : Node_Id) return Boolean; -- Flag6
8315 function Classifications
8316 (N : Node_Id) return Node_Id; -- Node3
8318 function Comes_From_Extended_Return_Statement
8319 (N : Node_Id) return Boolean; -- Flag18
8321 function Compile_Time_Known_Aggregate
8322 (N : Node_Id) return Boolean; -- Flag18
8324 function Component_Associations
8325 (N : Node_Id) return List_Id; -- List2
8327 function Component_Clauses
8328 (N : Node_Id) return List_Id; -- List3
8330 function Component_Definition
8331 (N : Node_Id) return Node_Id; -- Node4
8333 function Component_Items
8334 (N : Node_Id) return List_Id; -- List3
8336 function Component_List
8337 (N : Node_Id) return Node_Id; -- Node1
8339 function Component_Name
8340 (N : Node_Id) return Node_Id; -- Node1
8342 function Componentwise_Assignment
8343 (N : Node_Id) return Boolean; -- Flag14
8345 function Condition
8346 (N : Node_Id) return Node_Id; -- Node1
8348 function Condition_Actions
8349 (N : Node_Id) return List_Id; -- List3
8351 function Config_Pragmas
8352 (N : Node_Id) return List_Id; -- List4
8354 function Constant_Present
8355 (N : Node_Id) return Boolean; -- Flag17
8357 function Constraint
8358 (N : Node_Id) return Node_Id; -- Node3
8360 function Constraints
8361 (N : Node_Id) return List_Id; -- List1
8363 function Context_Installed
8364 (N : Node_Id) return Boolean; -- Flag13
8366 function Context_Pending
8367 (N : Node_Id) return Boolean; -- Flag16
8369 function Context_Items
8370 (N : Node_Id) return List_Id; -- List1
8372 function Contract_Test_Cases
8373 (N : Node_Id) return Node_Id; -- Node2
8375 function Controlling_Argument
8376 (N : Node_Id) return Node_Id; -- Node1
8378 function Conversion_OK
8379 (N : Node_Id) return Boolean; -- Flag14
8381 function Convert_To_Return_False
8382 (N : Node_Id) return Boolean; -- Flag13
8384 function Corresponding_Aspect
8385 (N : Node_Id) return Node_Id; -- Node3
8387 function Corresponding_Body
8388 (N : Node_Id) return Node_Id; -- Node5
8390 function Corresponding_Formal_Spec
8391 (N : Node_Id) return Node_Id; -- Node3
8393 function Corresponding_Generic_Association
8394 (N : Node_Id) return Node_Id; -- Node5
8396 function Corresponding_Integer_Value
8397 (N : Node_Id) return Uint; -- Uint4
8399 function Corresponding_Spec
8400 (N : Node_Id) return Node_Id; -- Node5
8402 function Corresponding_Stub
8403 (N : Node_Id) return Node_Id; -- Node3
8405 function Dcheck_Function
8406 (N : Node_Id) return Entity_Id; -- Node5
8408 function Declarations
8409 (N : Node_Id) return List_Id; -- List2
8411 function Default_Expression
8412 (N : Node_Id) return Node_Id; -- Node5
8414 function Default_Storage_Pool
8415 (N : Node_Id) return Node_Id; -- Node3
8417 function Default_Name
8418 (N : Node_Id) return Node_Id; -- Node2
8420 function Defining_Identifier
8421 (N : Node_Id) return Entity_Id; -- Node1
8423 function Defining_Unit_Name
8424 (N : Node_Id) return Node_Id; -- Node1
8426 function Delay_Alternative
8427 (N : Node_Id) return Node_Id; -- Node4
8429 function Delay_Statement
8430 (N : Node_Id) return Node_Id; -- Node2
8432 function Delta_Expression
8433 (N : Node_Id) return Node_Id; -- Node3
8435 function Digits_Expression
8436 (N : Node_Id) return Node_Id; -- Node2
8438 function Discr_Check_Funcs_Built
8439 (N : Node_Id) return Boolean; -- Flag11
8441 function Discrete_Choices
8442 (N : Node_Id) return List_Id; -- List4
8444 function Discrete_Range
8445 (N : Node_Id) return Node_Id; -- Node4
8447 function Discrete_Subtype_Definition
8448 (N : Node_Id) return Node_Id; -- Node4
8450 function Discrete_Subtype_Definitions
8451 (N : Node_Id) return List_Id; -- List2
8453 function Discriminant_Specifications
8454 (N : Node_Id) return List_Id; -- List4
8456 function Discriminant_Type
8457 (N : Node_Id) return Node_Id; -- Node5
8459 function Do_Accessibility_Check
8460 (N : Node_Id) return Boolean; -- Flag13
8462 function Do_Discriminant_Check
8463 (N : Node_Id) return Boolean; -- Flag13
8465 function Do_Division_Check
8466 (N : Node_Id) return Boolean; -- Flag13
8468 function Do_Length_Check
8469 (N : Node_Id) return Boolean; -- Flag4
8471 function Do_Overflow_Check
8472 (N : Node_Id) return Boolean; -- Flag17
8474 function Do_Range_Check
8475 (N : Node_Id) return Boolean; -- Flag9
8477 function Do_Storage_Check
8478 (N : Node_Id) return Boolean; -- Flag17
8480 function Do_Tag_Check
8481 (N : Node_Id) return Boolean; -- Flag13
8483 function Elaborate_All_Desirable
8484 (N : Node_Id) return Boolean; -- Flag9
8486 function Elaborate_All_Present
8487 (N : Node_Id) return Boolean; -- Flag14
8489 function Elaborate_Desirable
8490 (N : Node_Id) return Boolean; -- Flag11
8492 function Elaborate_Present
8493 (N : Node_Id) return Boolean; -- Flag4
8495 function Elaboration_Boolean
8496 (N : Node_Id) return Node_Id; -- Node2
8498 function Else_Actions
8499 (N : Node_Id) return List_Id; -- List3
8501 function Else_Statements
8502 (N : Node_Id) return List_Id; -- List4
8504 function Elsif_Parts
8505 (N : Node_Id) return List_Id; -- List3
8507 function Enclosing_Variant
8508 (N : Node_Id) return Node_Id; -- Node2
8510 function End_Label
8511 (N : Node_Id) return Node_Id; -- Node4
8513 function End_Span
8514 (N : Node_Id) return Uint; -- Uint5
8516 function Entity
8517 (N : Node_Id) return Node_Id; -- Node4
8519 function Entity_Or_Associated_Node
8520 (N : Node_Id) return Node_Id; -- Node4
8522 function Entry_Body_Formal_Part
8523 (N : Node_Id) return Node_Id; -- Node5
8525 function Entry_Call_Alternative
8526 (N : Node_Id) return Node_Id; -- Node1
8528 function Entry_Call_Statement
8529 (N : Node_Id) return Node_Id; -- Node1
8531 function Entry_Direct_Name
8532 (N : Node_Id) return Node_Id; -- Node1
8534 function Entry_Index
8535 (N : Node_Id) return Node_Id; -- Node5
8537 function Entry_Index_Specification
8538 (N : Node_Id) return Node_Id; -- Node4
8540 function Etype
8541 (N : Node_Id) return Node_Id; -- Node5
8543 function Exception_Choices
8544 (N : Node_Id) return List_Id; -- List4
8546 function Exception_Handlers
8547 (N : Node_Id) return List_Id; -- List5
8549 function Exception_Junk
8550 (N : Node_Id) return Boolean; -- Flag8
8552 function Exception_Label
8553 (N : Node_Id) return Node_Id; -- Node5
8555 function Explicit_Actual_Parameter
8556 (N : Node_Id) return Node_Id; -- Node3
8558 function Expansion_Delayed
8559 (N : Node_Id) return Boolean; -- Flag11
8561 function Explicit_Generic_Actual_Parameter
8562 (N : Node_Id) return Node_Id; -- Node1
8564 function Expression
8565 (N : Node_Id) return Node_Id; -- Node3
8567 function Expressions
8568 (N : Node_Id) return List_Id; -- List1
8570 function First_Bit
8571 (N : Node_Id) return Node_Id; -- Node3
8573 function First_Inlined_Subprogram
8574 (N : Node_Id) return Entity_Id; -- Node3
8576 function First_Name
8577 (N : Node_Id) return Boolean; -- Flag5
8579 function First_Named_Actual
8580 (N : Node_Id) return Node_Id; -- Node4
8582 function First_Real_Statement
8583 (N : Node_Id) return Node_Id; -- Node2
8585 function First_Subtype_Link
8586 (N : Node_Id) return Entity_Id; -- Node5
8588 function Float_Truncate
8589 (N : Node_Id) return Boolean; -- Flag11
8591 function Formal_Type_Definition
8592 (N : Node_Id) return Node_Id; -- Node3
8594 function Forwards_OK
8595 (N : Node_Id) return Boolean; -- Flag5
8597 function From_Aspect_Specification
8598 (N : Node_Id) return Boolean; -- Flag13
8600 function From_At_End
8601 (N : Node_Id) return Boolean; -- Flag4
8603 function From_At_Mod
8604 (N : Node_Id) return Boolean; -- Flag4
8606 function From_Default
8607 (N : Node_Id) return Boolean; -- Flag6
8609 function Generic_Associations
8610 (N : Node_Id) return List_Id; -- List3
8612 function Generic_Formal_Declarations
8613 (N : Node_Id) return List_Id; -- List2
8615 function Generic_Parent
8616 (N : Node_Id) return Node_Id; -- Node5
8618 function Generic_Parent_Type
8619 (N : Node_Id) return Node_Id; -- Node4
8621 function Handled_Statement_Sequence
8622 (N : Node_Id) return Node_Id; -- Node4
8624 function Handler_List_Entry
8625 (N : Node_Id) return Node_Id; -- Node2
8627 function Has_Created_Identifier
8628 (N : Node_Id) return Boolean; -- Flag15
8630 function Has_Dereference_Action
8631 (N : Node_Id) return Boolean; -- Flag13
8633 function Has_Dynamic_Length_Check
8634 (N : Node_Id) return Boolean; -- Flag10
8636 function Has_Dynamic_Range_Check
8637 (N : Node_Id) return Boolean; -- Flag12
8639 function Has_Init_Expression
8640 (N : Node_Id) return Boolean; -- Flag14
8642 function Has_Local_Raise
8643 (N : Node_Id) return Boolean; -- Flag8
8645 function Has_No_Elaboration_Code
8646 (N : Node_Id) return Boolean; -- Flag17
8648 function Has_Pragma_Suppress_All
8649 (N : Node_Id) return Boolean; -- Flag14
8651 function Has_Private_View
8652 (N : Node_Id) return Boolean; -- Flag11
8654 function Has_Relative_Deadline_Pragma
8655 (N : Node_Id) return Boolean; -- Flag9
8657 function Has_Self_Reference
8658 (N : Node_Id) return Boolean; -- Flag13
8660 function Has_Storage_Size_Pragma
8661 (N : Node_Id) return Boolean; -- Flag5
8663 function Has_Wide_Character
8664 (N : Node_Id) return Boolean; -- Flag11
8666 function Has_Wide_Wide_Character
8667 (N : Node_Id) return Boolean; -- Flag13
8669 function Header_Size_Added
8670 (N : Node_Id) return Boolean; -- Flag11
8672 function Hidden_By_Use_Clause
8673 (N : Node_Id) return Elist_Id; -- Elist4
8675 function High_Bound
8676 (N : Node_Id) return Node_Id; -- Node2
8678 function Identifier
8679 (N : Node_Id) return Node_Id; -- Node1
8681 function Interface_List
8682 (N : Node_Id) return List_Id; -- List2
8684 function Interface_Present
8685 (N : Node_Id) return Boolean; -- Flag16
8687 function Implicit_With
8688 (N : Node_Id) return Boolean; -- Flag16
8690 function Implicit_With_From_Instantiation
8691 (N : Node_Id) return Boolean; -- Flag12
8693 function Import_Interface_Present
8694 (N : Node_Id) return Boolean; -- Flag16
8696 function In_Assertion_Expression
8697 (N : Node_Id) return Boolean; -- Flag4
8699 function In_Present
8700 (N : Node_Id) return Boolean; -- Flag15
8702 function Includes_Infinities
8703 (N : Node_Id) return Boolean; -- Flag11
8705 function Inherited_Discriminant
8706 (N : Node_Id) return Boolean; -- Flag13
8708 function Instance_Spec
8709 (N : Node_Id) return Node_Id; -- Node5
8711 function Intval
8712 (N : Node_Id) return Uint; -- Uint3
8714 function Is_Accessibility_Actual
8715 (N : Node_Id) return Boolean; -- Flag13
8717 function Is_Asynchronous_Call_Block
8718 (N : Node_Id) return Boolean; -- Flag7
8720 function Is_Boolean_Aspect
8721 (N : Node_Id) return Boolean; -- Flag16
8723 function Is_Component_Left_Opnd
8724 (N : Node_Id) return Boolean; -- Flag13
8726 function Is_Component_Right_Opnd
8727 (N : Node_Id) return Boolean; -- Flag14
8729 function Is_Controlling_Actual
8730 (N : Node_Id) return Boolean; -- Flag16
8732 function Is_Delayed_Aspect
8733 (N : Node_Id) return Boolean; -- Flag14
8735 function Is_Disabled
8736 (N : Node_Id) return Boolean; -- Flag15
8738 function Is_Dynamic_Coextension
8739 (N : Node_Id) return Boolean; -- Flag18
8741 function Is_Elsif
8742 (N : Node_Id) return Boolean; -- Flag13
8744 function Is_Entry_Barrier_Function
8745 (N : Node_Id) return Boolean; -- Flag8
8747 function Is_Expanded_Build_In_Place_Call
8748 (N : Node_Id) return Boolean; -- Flag11
8750 function Is_Finalization_Wrapper
8751 (N : Node_Id) return Boolean; -- Flag9
8753 function Is_Folded_In_Parser
8754 (N : Node_Id) return Boolean; -- Flag4
8756 function Is_Ignored
8757 (N : Node_Id) return Boolean; -- Flag9
8759 function Is_In_Discriminant_Check
8760 (N : Node_Id) return Boolean; -- Flag11
8762 function Is_Machine_Number
8763 (N : Node_Id) return Boolean; -- Flag11
8765 function Is_Null_Loop
8766 (N : Node_Id) return Boolean; -- Flag16
8768 function Is_Overloaded
8769 (N : Node_Id) return Boolean; -- Flag5
8771 function Is_Power_Of_2_For_Shift
8772 (N : Node_Id) return Boolean; -- Flag13
8774 function Is_Prefixed_Call
8775 (N : Node_Id) return Boolean; -- Flag17
8777 function Is_Protected_Subprogram_Body
8778 (N : Node_Id) return Boolean; -- Flag7
8780 function Is_Static_Coextension
8781 (N : Node_Id) return Boolean; -- Flag14
8783 function Is_Static_Expression
8784 (N : Node_Id) return Boolean; -- Flag6
8786 function Is_Subprogram_Descriptor
8787 (N : Node_Id) return Boolean; -- Flag16
8789 function Is_Task_Allocation_Block
8790 (N : Node_Id) return Boolean; -- Flag6
8792 function Is_Task_Master
8793 (N : Node_Id) return Boolean; -- Flag5
8795 function Iteration_Scheme
8796 (N : Node_Id) return Node_Id; -- Node2
8798 function Iterator_Specification
8799 (N : Node_Id) return Node_Id; -- Node2
8801 function Itype
8802 (N : Node_Id) return Entity_Id; -- Node1
8804 function Kill_Range_Check
8805 (N : Node_Id) return Boolean; -- Flag11
8807 function Label_Construct
8808 (N : Node_Id) return Node_Id; -- Node2
8810 function Left_Opnd
8811 (N : Node_Id) return Node_Id; -- Node2
8813 function Last_Bit
8814 (N : Node_Id) return Node_Id; -- Node4
8816 function Last_Name
8817 (N : Node_Id) return Boolean; -- Flag6
8819 function Library_Unit
8820 (N : Node_Id) return Node_Id; -- Node4
8822 function Limited_View_Installed
8823 (N : Node_Id) return Boolean; -- Flag18
8825 function Limited_Present
8826 (N : Node_Id) return Boolean; -- Flag17
8828 function Literals
8829 (N : Node_Id) return List_Id; -- List1
8831 function Local_Raise_Not_OK
8832 (N : Node_Id) return Boolean; -- Flag7
8834 function Local_Raise_Statements
8835 (N : Node_Id) return Elist_Id; -- Elist1
8837 function Loop_Actions
8838 (N : Node_Id) return List_Id; -- List2
8840 function Loop_Parameter_Specification
8841 (N : Node_Id) return Node_Id; -- Node4
8843 function Low_Bound
8844 (N : Node_Id) return Node_Id; -- Node1
8846 function Mod_Clause
8847 (N : Node_Id) return Node_Id; -- Node2
8849 function More_Ids
8850 (N : Node_Id) return Boolean; -- Flag5
8852 function Must_Be_Byte_Aligned
8853 (N : Node_Id) return Boolean; -- Flag14
8855 function Must_Not_Freeze
8856 (N : Node_Id) return Boolean; -- Flag8
8858 function Must_Not_Override
8859 (N : Node_Id) return Boolean; -- Flag15
8861 function Must_Override
8862 (N : Node_Id) return Boolean; -- Flag14
8864 function Name
8865 (N : Node_Id) return Node_Id; -- Node2
8867 function Names
8868 (N : Node_Id) return List_Id; -- List2
8870 function Next_Entity
8871 (N : Node_Id) return Node_Id; -- Node2
8873 function Next_Exit_Statement
8874 (N : Node_Id) return Node_Id; -- Node3
8876 function Next_Implicit_With
8877 (N : Node_Id) return Node_Id; -- Node3
8879 function Next_Named_Actual
8880 (N : Node_Id) return Node_Id; -- Node4
8882 function Next_Pragma
8883 (N : Node_Id) return Node_Id; -- Node1
8885 function Next_Rep_Item
8886 (N : Node_Id) return Node_Id; -- Node5
8888 function Next_Use_Clause
8889 (N : Node_Id) return Node_Id; -- Node3
8891 function No_Ctrl_Actions
8892 (N : Node_Id) return Boolean; -- Flag7
8894 function No_Elaboration_Check
8895 (N : Node_Id) return Boolean; -- Flag14
8897 function No_Entities_Ref_In_Spec
8898 (N : Node_Id) return Boolean; -- Flag8
8900 function No_Initialization
8901 (N : Node_Id) return Boolean; -- Flag13
8903 function No_Minimize_Eliminate
8904 (N : Node_Id) return Boolean; -- Flag17
8906 function No_Truncation
8907 (N : Node_Id) return Boolean; -- Flag17
8909 function Null_Present
8910 (N : Node_Id) return Boolean; -- Flag13
8912 function Null_Exclusion_Present
8913 (N : Node_Id) return Boolean; -- Flag11
8915 function Null_Exclusion_In_Return_Present
8916 (N : Node_Id) return Boolean; -- Flag14
8918 function Null_Record_Present
8919 (N : Node_Id) return Boolean; -- Flag17
8921 function Object_Definition
8922 (N : Node_Id) return Node_Id; -- Node4
8924 function Of_Present
8925 (N : Node_Id) return Boolean; -- Flag16
8927 function Original_Discriminant
8928 (N : Node_Id) return Node_Id; -- Node2
8930 function Original_Entity
8931 (N : Node_Id) return Entity_Id; -- Node2
8933 function Others_Discrete_Choices
8934 (N : Node_Id) return List_Id; -- List1
8936 function Out_Present
8937 (N : Node_Id) return Boolean; -- Flag17
8939 function Parameter_Associations
8940 (N : Node_Id) return List_Id; -- List3
8942 function Parameter_List_Truncated
8943 (N : Node_Id) return Boolean; -- Flag17
8945 function Parameter_Specifications
8946 (N : Node_Id) return List_Id; -- List3
8948 function Parameter_Type
8949 (N : Node_Id) return Node_Id; -- Node2
8951 function Parent_Spec
8952 (N : Node_Id) return Node_Id; -- Node4
8954 function Position
8955 (N : Node_Id) return Node_Id; -- Node2
8957 function Pragma_Argument_Associations
8958 (N : Node_Id) return List_Id; -- List2
8960 function Pragma_Identifier
8961 (N : Node_Id) return Node_Id; -- Node4
8963 function Pragmas_After
8964 (N : Node_Id) return List_Id; -- List5
8966 function Pragmas_Before
8967 (N : Node_Id) return List_Id; -- List4
8969 function Pre_Post_Conditions
8970 (N : Node_Id) return Node_Id; -- Node1
8972 function Prefix
8973 (N : Node_Id) return Node_Id; -- Node3
8975 function Premature_Use
8976 (N : Node_Id) return Node_Id; -- Node5
8978 function Present_Expr
8979 (N : Node_Id) return Uint; -- Uint3
8981 function Prev_Ids
8982 (N : Node_Id) return Boolean; -- Flag6
8984 function Print_In_Hex
8985 (N : Node_Id) return Boolean; -- Flag13
8987 function Private_Declarations
8988 (N : Node_Id) return List_Id; -- List3
8990 function Private_Present
8991 (N : Node_Id) return Boolean; -- Flag15
8993 function Procedure_To_Call
8994 (N : Node_Id) return Node_Id; -- Node2
8996 function Proper_Body
8997 (N : Node_Id) return Node_Id; -- Node1
8999 function Protected_Definition
9000 (N : Node_Id) return Node_Id; -- Node3
9002 function Protected_Present
9003 (N : Node_Id) return Boolean; -- Flag6
9005 function Raises_Constraint_Error
9006 (N : Node_Id) return Boolean; -- Flag7
9008 function Range_Constraint
9009 (N : Node_Id) return Node_Id; -- Node4
9011 function Range_Expression
9012 (N : Node_Id) return Node_Id; -- Node4
9014 function Real_Range_Specification
9015 (N : Node_Id) return Node_Id; -- Node4
9017 function Realval
9018 (N : Node_Id) return Ureal; -- Ureal3
9020 function Reason
9021 (N : Node_Id) return Uint; -- Uint3
9023 function Record_Extension_Part
9024 (N : Node_Id) return Node_Id; -- Node3
9026 function Redundant_Use
9027 (N : Node_Id) return Boolean; -- Flag13
9029 function Renaming_Exception
9030 (N : Node_Id) return Node_Id; -- Node2
9032 function Result_Definition
9033 (N : Node_Id) return Node_Id; -- Node4
9035 function Return_Object_Declarations
9036 (N : Node_Id) return List_Id; -- List3
9038 function Return_Statement_Entity
9039 (N : Node_Id) return Node_Id; -- Node5
9041 function Reverse_Present
9042 (N : Node_Id) return Boolean; -- Flag15
9044 function Right_Opnd
9045 (N : Node_Id) return Node_Id; -- Node3
9047 function Rounded_Result
9048 (N : Node_Id) return Boolean; -- Flag18
9050 function SCIL_Controlling_Tag
9051 (N : Node_Id) return Node_Id; -- Node5
9053 function SCIL_Entity
9054 (N : Node_Id) return Node_Id; -- Node4
9056 function SCIL_Tag_Value
9057 (N : Node_Id) return Node_Id; -- Node5
9059 function SCIL_Target_Prim
9060 (N : Node_Id) return Node_Id; -- Node2
9062 function Scope
9063 (N : Node_Id) return Node_Id; -- Node3
9065 function Select_Alternatives
9066 (N : Node_Id) return List_Id; -- List1
9068 function Selector_Name
9069 (N : Node_Id) return Node_Id; -- Node2
9071 function Selector_Names
9072 (N : Node_Id) return List_Id; -- List1
9074 function Shift_Count_OK
9075 (N : Node_Id) return Boolean; -- Flag4
9077 function Source_Type
9078 (N : Node_Id) return Entity_Id; -- Node1
9080 function Specification
9081 (N : Node_Id) return Node_Id; -- Node1
9083 function Split_PPC
9084 (N : Node_Id) return Boolean; -- Flag17
9086 function Statements
9087 (N : Node_Id) return List_Id; -- List3
9089 function Storage_Pool
9090 (N : Node_Id) return Node_Id; -- Node1
9092 function Subpool_Handle_Name
9093 (N : Node_Id) return Node_Id; -- Node4
9095 function Strval
9096 (N : Node_Id) return String_Id; -- Str3
9098 function Subtype_Indication
9099 (N : Node_Id) return Node_Id; -- Node5
9101 function Subtype_Mark
9102 (N : Node_Id) return Node_Id; -- Node4
9104 function Subtype_Marks
9105 (N : Node_Id) return List_Id; -- List2
9107 function Suppress_Assignment_Checks
9108 (N : Node_Id) return Boolean; -- Flag18
9110 function Suppress_Loop_Warnings
9111 (N : Node_Id) return Boolean; -- Flag17
9113 function Synchronized_Present
9114 (N : Node_Id) return Boolean; -- Flag7
9116 function Tagged_Present
9117 (N : Node_Id) return Boolean; -- Flag15
9119 function Target_Type
9120 (N : Node_Id) return Entity_Id; -- Node2
9122 function Task_Definition
9123 (N : Node_Id) return Node_Id; -- Node3
9125 function Task_Present
9126 (N : Node_Id) return Boolean; -- Flag5
9128 function Then_Actions
9129 (N : Node_Id) return List_Id; -- List2
9131 function Then_Statements
9132 (N : Node_Id) return List_Id; -- List2
9134 function Treat_Fixed_As_Integer
9135 (N : Node_Id) return Boolean; -- Flag14
9137 function Triggering_Alternative
9138 (N : Node_Id) return Node_Id; -- Node1
9140 function Triggering_Statement
9141 (N : Node_Id) return Node_Id; -- Node1
9143 function TSS_Elist
9144 (N : Node_Id) return Elist_Id; -- Elist3
9146 function Type_Definition
9147 (N : Node_Id) return Node_Id; -- Node3
9149 function Unit
9150 (N : Node_Id) return Node_Id; -- Node2
9152 function Unknown_Discriminants_Present
9153 (N : Node_Id) return Boolean; -- Flag13
9155 function Unreferenced_In_Spec
9156 (N : Node_Id) return Boolean; -- Flag7
9158 function Variant_Part
9159 (N : Node_Id) return Node_Id; -- Node4
9161 function Variants
9162 (N : Node_Id) return List_Id; -- List1
9164 function Visible_Declarations
9165 (N : Node_Id) return List_Id; -- List2
9167 function Used_Operations
9168 (N : Node_Id) return Elist_Id; -- Elist5
9170 function Was_Originally_Stub
9171 (N : Node_Id) return Boolean; -- Flag13
9173 function Withed_Body
9174 (N : Node_Id) return Node_Id; -- Node1
9176 -- End functions (note used by xsinfo utility program to end processing)
9178 ----------------------------
9179 -- Node Update Procedures --
9180 ----------------------------
9182 -- These are the corresponding node update routines, which again provide
9183 -- a high level logical access with type checking. In addition to setting
9184 -- the indicated field of the node N to the given Val, in the case of
9185 -- tree pointers (List1-4), the parent pointer of the Val node is set to
9186 -- point back to node N. This automates the setting of the parent pointer.
9188 procedure Set_ABE_Is_Certain
9189 (N : Node_Id; Val : Boolean := True); -- Flag18
9191 procedure Set_Abort_Present
9192 (N : Node_Id; Val : Boolean := True); -- Flag15
9194 procedure Set_Abortable_Part
9195 (N : Node_Id; Val : Node_Id); -- Node2
9197 procedure Set_Abstract_Present
9198 (N : Node_Id; Val : Boolean := True); -- Flag4
9200 procedure Set_Accept_Handler_Records
9201 (N : Node_Id; Val : List_Id); -- List5
9203 procedure Set_Accept_Statement
9204 (N : Node_Id; Val : Node_Id); -- Node2
9206 procedure Set_Access_Definition
9207 (N : Node_Id; Val : Node_Id); -- Node3
9209 procedure Set_Access_To_Subprogram_Definition
9210 (N : Node_Id; Val : Node_Id); -- Node3
9212 procedure Set_Access_Types_To_Process
9213 (N : Node_Id; Val : Elist_Id); -- Elist2
9215 procedure Set_Actions
9216 (N : Node_Id; Val : List_Id); -- List1
9218 procedure Set_Activation_Chain_Entity
9219 (N : Node_Id; Val : Node_Id); -- Node3
9221 procedure Set_Acts_As_Spec
9222 (N : Node_Id; Val : Boolean := True); -- Flag4
9224 procedure Set_Actual_Designated_Subtype
9225 (N : Node_Id; Val : Node_Id); -- Node4
9227 procedure Set_Address_Warning_Posted
9228 (N : Node_Id; Val : Boolean := True); -- Flag18
9230 procedure Set_Aggregate_Bounds
9231 (N : Node_Id; Val : Node_Id); -- Node3
9233 procedure Set_Aliased_Present
9234 (N : Node_Id; Val : Boolean := True); -- Flag4
9236 procedure Set_All_Others
9237 (N : Node_Id; Val : Boolean := True); -- Flag11
9239 procedure Set_All_Present
9240 (N : Node_Id; Val : Boolean := True); -- Flag15
9242 procedure Set_Alternatives
9243 (N : Node_Id; Val : List_Id); -- List4
9245 procedure Set_Ancestor_Part
9246 (N : Node_Id; Val : Node_Id); -- Node3
9248 procedure Set_Atomic_Sync_Required
9249 (N : Node_Id; Val : Boolean := True); -- Flag14
9251 procedure Set_Array_Aggregate
9252 (N : Node_Id; Val : Node_Id); -- Node3
9254 procedure Set_Aspect_Rep_Item
9255 (N : Node_Id; Val : Node_Id); -- Node2
9257 procedure Set_Assignment_OK
9258 (N : Node_Id; Val : Boolean := True); -- Flag15
9260 procedure Set_Associated_Node
9261 (N : Node_Id; Val : Node_Id); -- Node4
9263 procedure Set_Attribute_Name
9264 (N : Node_Id; Val : Name_Id); -- Name2
9266 procedure Set_At_End_Proc
9267 (N : Node_Id; Val : Node_Id); -- Node1
9269 procedure Set_Aux_Decls_Node
9270 (N : Node_Id; Val : Node_Id); -- Node5
9272 procedure Set_Backwards_OK
9273 (N : Node_Id; Val : Boolean := True); -- Flag6
9275 procedure Set_Bad_Is_Detected
9276 (N : Node_Id; Val : Boolean := True); -- Flag15
9278 procedure Set_Body_Required
9279 (N : Node_Id; Val : Boolean := True); -- Flag13
9281 procedure Set_Body_To_Inline
9282 (N : Node_Id; Val : Node_Id); -- Node3
9284 procedure Set_Box_Present
9285 (N : Node_Id; Val : Boolean := True); -- Flag15
9287 procedure Set_By_Ref
9288 (N : Node_Id; Val : Boolean := True); -- Flag5
9290 procedure Set_Char_Literal_Value
9291 (N : Node_Id; Val : Uint); -- Uint2
9293 procedure Set_Chars
9294 (N : Node_Id; Val : Name_Id); -- Name1
9296 procedure Set_Check_Address_Alignment
9297 (N : Node_Id; Val : Boolean := True); -- Flag11
9299 procedure Set_Choice_Parameter
9300 (N : Node_Id; Val : Node_Id); -- Node2
9302 procedure Set_Choices
9303 (N : Node_Id; Val : List_Id); -- List1
9305 procedure Set_Class_Present
9306 (N : Node_Id; Val : Boolean := True); -- Flag6
9308 procedure Set_Classifications
9309 (N : Node_Id; Val : Node_Id); -- Node3
9311 procedure Set_Comes_From_Extended_Return_Statement
9312 (N : Node_Id; Val : Boolean := True); -- Flag18
9314 procedure Set_Compile_Time_Known_Aggregate
9315 (N : Node_Id; Val : Boolean := True); -- Flag18
9317 procedure Set_Component_Associations
9318 (N : Node_Id; Val : List_Id); -- List2
9320 procedure Set_Component_Clauses
9321 (N : Node_Id; Val : List_Id); -- List3
9323 procedure Set_Component_Definition
9324 (N : Node_Id; Val : Node_Id); -- Node4
9326 procedure Set_Component_Items
9327 (N : Node_Id; Val : List_Id); -- List3
9329 procedure Set_Component_List
9330 (N : Node_Id; Val : Node_Id); -- Node1
9332 procedure Set_Component_Name
9333 (N : Node_Id; Val : Node_Id); -- Node1
9335 procedure Set_Componentwise_Assignment
9336 (N : Node_Id; Val : Boolean := True); -- Flag14
9338 procedure Set_Condition
9339 (N : Node_Id; Val : Node_Id); -- Node1
9341 procedure Set_Condition_Actions
9342 (N : Node_Id; Val : List_Id); -- List3
9344 procedure Set_Config_Pragmas
9345 (N : Node_Id; Val : List_Id); -- List4
9347 procedure Set_Constant_Present
9348 (N : Node_Id; Val : Boolean := True); -- Flag17
9350 procedure Set_Constraint
9351 (N : Node_Id; Val : Node_Id); -- Node3
9353 procedure Set_Constraints
9354 (N : Node_Id; Val : List_Id); -- List1
9356 procedure Set_Context_Installed
9357 (N : Node_Id; Val : Boolean := True); -- Flag13
9359 procedure Set_Context_Items
9360 (N : Node_Id; Val : List_Id); -- List1
9362 procedure Set_Context_Pending
9363 (N : Node_Id; Val : Boolean := True); -- Flag16
9365 procedure Set_Contract_Test_Cases
9366 (N : Node_Id; Val : Node_Id); -- Node2
9368 procedure Set_Controlling_Argument
9369 (N : Node_Id; Val : Node_Id); -- Node1
9371 procedure Set_Conversion_OK
9372 (N : Node_Id; Val : Boolean := True); -- Flag14
9374 procedure Set_Convert_To_Return_False
9375 (N : Node_Id; Val : Boolean := True); -- Flag13
9377 procedure Set_Corresponding_Aspect
9378 (N : Node_Id; Val : Node_Id); -- Node3
9380 procedure Set_Corresponding_Body
9381 (N : Node_Id; Val : Node_Id); -- Node5
9383 procedure Set_Corresponding_Formal_Spec
9384 (N : Node_Id; Val : Node_Id); -- Node3
9386 procedure Set_Corresponding_Generic_Association
9387 (N : Node_Id; Val : Node_Id); -- Node5
9389 procedure Set_Corresponding_Integer_Value
9390 (N : Node_Id; Val : Uint); -- Uint4
9392 procedure Set_Corresponding_Spec
9393 (N : Node_Id; Val : Node_Id); -- Node5
9395 procedure Set_Corresponding_Stub
9396 (N : Node_Id; Val : Node_Id); -- Node3
9398 procedure Set_Dcheck_Function
9399 (N : Node_Id; Val : Entity_Id); -- Node5
9401 procedure Set_Declarations
9402 (N : Node_Id; Val : List_Id); -- List2
9404 procedure Set_Default_Expression
9405 (N : Node_Id; Val : Node_Id); -- Node5
9407 procedure Set_Default_Storage_Pool
9408 (N : Node_Id; Val : Node_Id); -- Node3
9410 procedure Set_Default_Name
9411 (N : Node_Id; Val : Node_Id); -- Node2
9413 procedure Set_Defining_Identifier
9414 (N : Node_Id; Val : Entity_Id); -- Node1
9416 procedure Set_Defining_Unit_Name
9417 (N : Node_Id; Val : Node_Id); -- Node1
9419 procedure Set_Delay_Alternative
9420 (N : Node_Id; Val : Node_Id); -- Node4
9422 procedure Set_Delay_Statement
9423 (N : Node_Id; Val : Node_Id); -- Node2
9425 procedure Set_Delta_Expression
9426 (N : Node_Id; Val : Node_Id); -- Node3
9428 procedure Set_Digits_Expression
9429 (N : Node_Id; Val : Node_Id); -- Node2
9431 procedure Set_Discr_Check_Funcs_Built
9432 (N : Node_Id; Val : Boolean := True); -- Flag11
9434 procedure Set_Discrete_Choices
9435 (N : Node_Id; Val : List_Id); -- List4
9437 procedure Set_Discrete_Range
9438 (N : Node_Id; Val : Node_Id); -- Node4
9440 procedure Set_Discrete_Subtype_Definition
9441 (N : Node_Id; Val : Node_Id); -- Node4
9443 procedure Set_Discrete_Subtype_Definitions
9444 (N : Node_Id; Val : List_Id); -- List2
9446 procedure Set_Discriminant_Specifications
9447 (N : Node_Id; Val : List_Id); -- List4
9449 procedure Set_Discriminant_Type
9450 (N : Node_Id; Val : Node_Id); -- Node5
9452 procedure Set_Do_Accessibility_Check
9453 (N : Node_Id; Val : Boolean := True); -- Flag13
9455 procedure Set_Do_Discriminant_Check
9456 (N : Node_Id; Val : Boolean := True); -- Flag13
9458 procedure Set_Do_Division_Check
9459 (N : Node_Id; Val : Boolean := True); -- Flag13
9461 procedure Set_Do_Length_Check
9462 (N : Node_Id; Val : Boolean := True); -- Flag4
9464 procedure Set_Do_Overflow_Check
9465 (N : Node_Id; Val : Boolean := True); -- Flag17
9467 procedure Set_Do_Range_Check
9468 (N : Node_Id; Val : Boolean := True); -- Flag9
9470 procedure Set_Do_Storage_Check
9471 (N : Node_Id; Val : Boolean := True); -- Flag17
9473 procedure Set_Do_Tag_Check
9474 (N : Node_Id; Val : Boolean := True); -- Flag13
9476 procedure Set_Elaborate_All_Desirable
9477 (N : Node_Id; Val : Boolean := True); -- Flag9
9479 procedure Set_Elaborate_All_Present
9480 (N : Node_Id; Val : Boolean := True); -- Flag14
9482 procedure Set_Elaborate_Desirable
9483 (N : Node_Id; Val : Boolean := True); -- Flag11
9485 procedure Set_Elaborate_Present
9486 (N : Node_Id; Val : Boolean := True); -- Flag4
9488 procedure Set_Elaboration_Boolean
9489 (N : Node_Id; Val : Node_Id); -- Node2
9491 procedure Set_Else_Actions
9492 (N : Node_Id; Val : List_Id); -- List3
9494 procedure Set_Else_Statements
9495 (N : Node_Id; Val : List_Id); -- List4
9497 procedure Set_Elsif_Parts
9498 (N : Node_Id; Val : List_Id); -- List3
9500 procedure Set_Enclosing_Variant
9501 (N : Node_Id; Val : Node_Id); -- Node2
9503 procedure Set_End_Label
9504 (N : Node_Id; Val : Node_Id); -- Node4
9506 procedure Set_End_Span
9507 (N : Node_Id; Val : Uint); -- Uint5
9509 procedure Set_Entity
9510 (N : Node_Id; Val : Node_Id); -- Node4
9512 procedure Set_Entry_Body_Formal_Part
9513 (N : Node_Id; Val : Node_Id); -- Node5
9515 procedure Set_Entry_Call_Alternative
9516 (N : Node_Id; Val : Node_Id); -- Node1
9518 procedure Set_Entry_Call_Statement
9519 (N : Node_Id; Val : Node_Id); -- Node1
9521 procedure Set_Entry_Direct_Name
9522 (N : Node_Id; Val : Node_Id); -- Node1
9524 procedure Set_Entry_Index
9525 (N : Node_Id; Val : Node_Id); -- Node5
9527 procedure Set_Entry_Index_Specification
9528 (N : Node_Id; Val : Node_Id); -- Node4
9530 procedure Set_Etype
9531 (N : Node_Id; Val : Node_Id); -- Node5
9533 procedure Set_Exception_Choices
9534 (N : Node_Id; Val : List_Id); -- List4
9536 procedure Set_Exception_Handlers
9537 (N : Node_Id; Val : List_Id); -- List5
9539 procedure Set_Exception_Junk
9540 (N : Node_Id; Val : Boolean := True); -- Flag8
9542 procedure Set_Exception_Label
9543 (N : Node_Id; Val : Node_Id); -- Node5
9545 procedure Set_Expansion_Delayed
9546 (N : Node_Id; Val : Boolean := True); -- Flag11
9548 procedure Set_Explicit_Actual_Parameter
9549 (N : Node_Id; Val : Node_Id); -- Node3
9551 procedure Set_Explicit_Generic_Actual_Parameter
9552 (N : Node_Id; Val : Node_Id); -- Node1
9554 procedure Set_Expression
9555 (N : Node_Id; Val : Node_Id); -- Node3
9557 procedure Set_Expressions
9558 (N : Node_Id; Val : List_Id); -- List1
9560 procedure Set_First_Bit
9561 (N : Node_Id; Val : Node_Id); -- Node3
9563 procedure Set_First_Inlined_Subprogram
9564 (N : Node_Id; Val : Entity_Id); -- Node3
9566 procedure Set_First_Name
9567 (N : Node_Id; Val : Boolean := True); -- Flag5
9569 procedure Set_First_Named_Actual
9570 (N : Node_Id; Val : Node_Id); -- Node4
9572 procedure Set_First_Real_Statement
9573 (N : Node_Id; Val : Node_Id); -- Node2
9575 procedure Set_First_Subtype_Link
9576 (N : Node_Id; Val : Entity_Id); -- Node5
9578 procedure Set_Float_Truncate
9579 (N : Node_Id; Val : Boolean := True); -- Flag11
9581 procedure Set_Formal_Type_Definition
9582 (N : Node_Id; Val : Node_Id); -- Node3
9584 procedure Set_Forwards_OK
9585 (N : Node_Id; Val : Boolean := True); -- Flag5
9587 procedure Set_From_At_Mod
9588 (N : Node_Id; Val : Boolean := True); -- Flag4
9590 procedure Set_From_Aspect_Specification
9591 (N : Node_Id; Val : Boolean := True); -- Flag13
9593 procedure Set_From_At_End
9594 (N : Node_Id; Val : Boolean := True); -- Flag4
9596 procedure Set_From_Default
9597 (N : Node_Id; Val : Boolean := True); -- Flag6
9599 procedure Set_Generic_Associations
9600 (N : Node_Id; Val : List_Id); -- List3
9602 procedure Set_Generic_Formal_Declarations
9603 (N : Node_Id; Val : List_Id); -- List2
9605 procedure Set_Generic_Parent
9606 (N : Node_Id; Val : Node_Id); -- Node5
9608 procedure Set_Generic_Parent_Type
9609 (N : Node_Id; Val : Node_Id); -- Node4
9611 procedure Set_Handled_Statement_Sequence
9612 (N : Node_Id; Val : Node_Id); -- Node4
9614 procedure Set_Handler_List_Entry
9615 (N : Node_Id; Val : Node_Id); -- Node2
9617 procedure Set_Has_Created_Identifier
9618 (N : Node_Id; Val : Boolean := True); -- Flag15
9620 procedure Set_Has_Dereference_Action
9621 (N : Node_Id; Val : Boolean := True); -- Flag13
9623 procedure Set_Has_Dynamic_Length_Check
9624 (N : Node_Id; Val : Boolean := True); -- Flag10
9626 procedure Set_Has_Dynamic_Range_Check
9627 (N : Node_Id; Val : Boolean := True); -- Flag12
9629 procedure Set_Has_Init_Expression
9630 (N : Node_Id; Val : Boolean := True); -- Flag14
9632 procedure Set_Has_Local_Raise
9633 (N : Node_Id; Val : Boolean := True); -- Flag8
9635 procedure Set_Has_No_Elaboration_Code
9636 (N : Node_Id; Val : Boolean := True); -- Flag17
9638 procedure Set_Has_Pragma_Suppress_All
9639 (N : Node_Id; Val : Boolean := True); -- Flag14
9641 procedure Set_Has_Private_View
9642 (N : Node_Id; Val : Boolean := True); -- Flag11
9644 procedure Set_Has_Relative_Deadline_Pragma
9645 (N : Node_Id; Val : Boolean := True); -- Flag9
9647 procedure Set_Has_Self_Reference
9648 (N : Node_Id; Val : Boolean := True); -- Flag13
9650 procedure Set_Has_Storage_Size_Pragma
9651 (N : Node_Id; Val : Boolean := True); -- Flag5
9653 procedure Set_Has_Wide_Character
9654 (N : Node_Id; Val : Boolean := True); -- Flag11
9656 procedure Set_Has_Wide_Wide_Character
9657 (N : Node_Id; Val : Boolean := True); -- Flag13
9659 procedure Set_Header_Size_Added
9660 (N : Node_Id; Val : Boolean := True); -- Flag11
9662 procedure Set_Hidden_By_Use_Clause
9663 (N : Node_Id; Val : Elist_Id); -- Elist4
9665 procedure Set_High_Bound
9666 (N : Node_Id; Val : Node_Id); -- Node2
9668 procedure Set_Identifier
9669 (N : Node_Id; Val : Node_Id); -- Node1
9671 procedure Set_Interface_List
9672 (N : Node_Id; Val : List_Id); -- List2
9674 procedure Set_Interface_Present
9675 (N : Node_Id; Val : Boolean := True); -- Flag16
9677 procedure Set_Implicit_With
9678 (N : Node_Id; Val : Boolean := True); -- Flag16
9680 procedure Set_Implicit_With_From_Instantiation
9681 (N : Node_Id; Val : Boolean := True); -- Flag12
9683 procedure Set_Import_Interface_Present
9684 (N : Node_Id; Val : Boolean := True); -- Flag16
9686 procedure Set_In_Assertion_Expression
9687 (N : Node_Id; Val : Boolean := True); -- Flag4
9689 procedure Set_In_Present
9690 (N : Node_Id; Val : Boolean := True); -- Flag15
9692 procedure Set_Includes_Infinities
9693 (N : Node_Id; Val : Boolean := True); -- Flag11
9695 procedure Set_Inherited_Discriminant
9696 (N : Node_Id; Val : Boolean := True); -- Flag13
9698 procedure Set_Instance_Spec
9699 (N : Node_Id; Val : Node_Id); -- Node5
9701 procedure Set_Intval
9702 (N : Node_Id; Val : Uint); -- Uint3
9704 procedure Set_Is_Accessibility_Actual
9705 (N : Node_Id; Val : Boolean := True); -- Flag13
9707 procedure Set_Is_Asynchronous_Call_Block
9708 (N : Node_Id; Val : Boolean := True); -- Flag7
9710 procedure Set_Is_Boolean_Aspect
9711 (N : Node_Id; Val : Boolean := True); -- Flag16
9713 procedure Set_Is_Component_Left_Opnd
9714 (N : Node_Id; Val : Boolean := True); -- Flag13
9716 procedure Set_Is_Component_Right_Opnd
9717 (N : Node_Id; Val : Boolean := True); -- Flag14
9719 procedure Set_Is_Controlling_Actual
9720 (N : Node_Id; Val : Boolean := True); -- Flag16
9722 procedure Set_Is_Delayed_Aspect
9723 (N : Node_Id; Val : Boolean := True); -- Flag14
9725 procedure Set_Is_Disabled
9726 (N : Node_Id; Val : Boolean := True); -- Flag15
9728 procedure Set_Is_Ignored
9729 (N : Node_Id; Val : Boolean := True); -- Flag9
9731 procedure Set_Is_Dynamic_Coextension
9732 (N : Node_Id; Val : Boolean := True); -- Flag18
9734 procedure Set_Is_Elsif
9735 (N : Node_Id; Val : Boolean := True); -- Flag13
9737 procedure Set_Is_Entry_Barrier_Function
9738 (N : Node_Id; Val : Boolean := True); -- Flag8
9740 procedure Set_Is_Expanded_Build_In_Place_Call
9741 (N : Node_Id; Val : Boolean := True); -- Flag11
9743 procedure Set_Is_Finalization_Wrapper
9744 (N : Node_Id; Val : Boolean := True); -- Flag9
9746 procedure Set_Is_Folded_In_Parser
9747 (N : Node_Id; Val : Boolean := True); -- Flag4
9749 procedure Set_Is_In_Discriminant_Check
9750 (N : Node_Id; Val : Boolean := True); -- Flag11
9752 procedure Set_Is_Machine_Number
9753 (N : Node_Id; Val : Boolean := True); -- Flag11
9755 procedure Set_Is_Null_Loop
9756 (N : Node_Id; Val : Boolean := True); -- Flag16
9758 procedure Set_Is_Overloaded
9759 (N : Node_Id; Val : Boolean := True); -- Flag5
9761 procedure Set_Is_Power_Of_2_For_Shift
9762 (N : Node_Id; Val : Boolean := True); -- Flag13
9764 procedure Set_Is_Prefixed_Call
9765 (N : Node_Id; Val : Boolean := True); -- Flag17
9767 procedure Set_Is_Protected_Subprogram_Body
9768 (N : Node_Id; Val : Boolean := True); -- Flag7
9770 procedure Set_Is_Static_Coextension
9771 (N : Node_Id; Val : Boolean := True); -- Flag14
9773 procedure Set_Is_Static_Expression
9774 (N : Node_Id; Val : Boolean := True); -- Flag6
9776 procedure Set_Is_Subprogram_Descriptor
9777 (N : Node_Id; Val : Boolean := True); -- Flag16
9779 procedure Set_Is_Task_Allocation_Block
9780 (N : Node_Id; Val : Boolean := True); -- Flag6
9782 procedure Set_Is_Task_Master
9783 (N : Node_Id; Val : Boolean := True); -- Flag5
9785 procedure Set_Iteration_Scheme
9786 (N : Node_Id; Val : Node_Id); -- Node2
9788 procedure Set_Iterator_Specification
9789 (N : Node_Id; Val : Node_Id); -- Node2
9791 procedure Set_Itype
9792 (N : Node_Id; Val : Entity_Id); -- Node1
9794 procedure Set_Kill_Range_Check
9795 (N : Node_Id; Val : Boolean := True); -- Flag11
9797 procedure Set_Last_Bit
9798 (N : Node_Id; Val : Node_Id); -- Node4
9800 procedure Set_Last_Name
9801 (N : Node_Id; Val : Boolean := True); -- Flag6
9803 procedure Set_Library_Unit
9804 (N : Node_Id; Val : Node_Id); -- Node4
9806 procedure Set_Label_Construct
9807 (N : Node_Id; Val : Node_Id); -- Node2
9809 procedure Set_Left_Opnd
9810 (N : Node_Id; Val : Node_Id); -- Node2
9812 procedure Set_Limited_View_Installed
9813 (N : Node_Id; Val : Boolean := True); -- Flag18
9815 procedure Set_Limited_Present
9816 (N : Node_Id; Val : Boolean := True); -- Flag17
9818 procedure Set_Literals
9819 (N : Node_Id; Val : List_Id); -- List1
9821 procedure Set_Local_Raise_Not_OK
9822 (N : Node_Id; Val : Boolean := True); -- Flag7
9824 procedure Set_Local_Raise_Statements
9825 (N : Node_Id; Val : Elist_Id); -- Elist1
9827 procedure Set_Loop_Actions
9828 (N : Node_Id; Val : List_Id); -- List2
9830 procedure Set_Loop_Parameter_Specification
9831 (N : Node_Id; Val : Node_Id); -- Node4
9833 procedure Set_Low_Bound
9834 (N : Node_Id; Val : Node_Id); -- Node1
9836 procedure Set_Mod_Clause
9837 (N : Node_Id; Val : Node_Id); -- Node2
9839 procedure Set_More_Ids
9840 (N : Node_Id; Val : Boolean := True); -- Flag5
9842 procedure Set_Must_Be_Byte_Aligned
9843 (N : Node_Id; Val : Boolean := True); -- Flag14
9845 procedure Set_Must_Not_Freeze
9846 (N : Node_Id; Val : Boolean := True); -- Flag8
9848 procedure Set_Must_Not_Override
9849 (N : Node_Id; Val : Boolean := True); -- Flag15
9851 procedure Set_Must_Override
9852 (N : Node_Id; Val : Boolean := True); -- Flag14
9854 procedure Set_Name
9855 (N : Node_Id; Val : Node_Id); -- Node2
9857 procedure Set_Names
9858 (N : Node_Id; Val : List_Id); -- List2
9860 procedure Set_Next_Entity
9861 (N : Node_Id; Val : Node_Id); -- Node2
9863 procedure Set_Next_Exit_Statement
9864 (N : Node_Id; Val : Node_Id); -- Node3
9866 procedure Set_Next_Implicit_With
9867 (N : Node_Id; Val : Node_Id); -- Node3
9869 procedure Set_Next_Named_Actual
9870 (N : Node_Id; Val : Node_Id); -- Node4
9872 procedure Set_Next_Pragma
9873 (N : Node_Id; Val : Node_Id); -- Node1
9875 procedure Set_Next_Rep_Item
9876 (N : Node_Id; Val : Node_Id); -- Node5
9878 procedure Set_Next_Use_Clause
9879 (N : Node_Id; Val : Node_Id); -- Node3
9881 procedure Set_No_Ctrl_Actions
9882 (N : Node_Id; Val : Boolean := True); -- Flag7
9884 procedure Set_No_Elaboration_Check
9885 (N : Node_Id; Val : Boolean := True); -- Flag14
9887 procedure Set_No_Entities_Ref_In_Spec
9888 (N : Node_Id; Val : Boolean := True); -- Flag8
9890 procedure Set_No_Initialization
9891 (N : Node_Id; Val : Boolean := True); -- Flag13
9893 procedure Set_No_Minimize_Eliminate
9894 (N : Node_Id; Val : Boolean := True); -- Flag17
9896 procedure Set_No_Truncation
9897 (N : Node_Id; Val : Boolean := True); -- Flag17
9899 procedure Set_Null_Present
9900 (N : Node_Id; Val : Boolean := True); -- Flag13
9902 procedure Set_Null_Exclusion_Present
9903 (N : Node_Id; Val : Boolean := True); -- Flag11
9905 procedure Set_Null_Exclusion_In_Return_Present
9906 (N : Node_Id; Val : Boolean := True); -- Flag14
9908 procedure Set_Null_Record_Present
9909 (N : Node_Id; Val : Boolean := True); -- Flag17
9911 procedure Set_Object_Definition
9912 (N : Node_Id; Val : Node_Id); -- Node4
9914 procedure Set_Of_Present
9915 (N : Node_Id; Val : Boolean := True); -- Flag16
9917 procedure Set_Original_Discriminant
9918 (N : Node_Id; Val : Node_Id); -- Node2
9920 procedure Set_Original_Entity
9921 (N : Node_Id; Val : Entity_Id); -- Node2
9923 procedure Set_Others_Discrete_Choices
9924 (N : Node_Id; Val : List_Id); -- List1
9926 procedure Set_Out_Present
9927 (N : Node_Id; Val : Boolean := True); -- Flag17
9929 procedure Set_Parameter_Associations
9930 (N : Node_Id; Val : List_Id); -- List3
9932 procedure Set_Parameter_List_Truncated
9933 (N : Node_Id; Val : Boolean := True); -- Flag17
9935 procedure Set_Parameter_Specifications
9936 (N : Node_Id; Val : List_Id); -- List3
9938 procedure Set_Parameter_Type
9939 (N : Node_Id; Val : Node_Id); -- Node2
9941 procedure Set_Parent_Spec
9942 (N : Node_Id; Val : Node_Id); -- Node4
9944 procedure Set_Position
9945 (N : Node_Id; Val : Node_Id); -- Node2
9947 procedure Set_Pragma_Argument_Associations
9948 (N : Node_Id; Val : List_Id); -- List2
9950 procedure Set_Pragma_Identifier
9951 (N : Node_Id; Val : Node_Id); -- Node4
9953 procedure Set_Pragmas_After
9954 (N : Node_Id; Val : List_Id); -- List5
9956 procedure Set_Pragmas_Before
9957 (N : Node_Id; Val : List_Id); -- List4
9959 procedure Set_Pre_Post_Conditions
9960 (N : Node_Id; Val : Node_Id); -- Node1
9962 procedure Set_Prefix
9963 (N : Node_Id; Val : Node_Id); -- Node3
9965 procedure Set_Premature_Use
9966 (N : Node_Id; Val : Node_Id); -- Node5
9968 procedure Set_Present_Expr
9969 (N : Node_Id; Val : Uint); -- Uint3
9971 procedure Set_Prev_Ids
9972 (N : Node_Id; Val : Boolean := True); -- Flag6
9974 procedure Set_Print_In_Hex
9975 (N : Node_Id; Val : Boolean := True); -- Flag13
9977 procedure Set_Private_Declarations
9978 (N : Node_Id; Val : List_Id); -- List3
9980 procedure Set_Private_Present
9981 (N : Node_Id; Val : Boolean := True); -- Flag15
9983 procedure Set_Procedure_To_Call
9984 (N : Node_Id; Val : Node_Id); -- Node2
9986 procedure Set_Proper_Body
9987 (N : Node_Id; Val : Node_Id); -- Node1
9989 procedure Set_Protected_Definition
9990 (N : Node_Id; Val : Node_Id); -- Node3
9992 procedure Set_Protected_Present
9993 (N : Node_Id; Val : Boolean := True); -- Flag6
9995 procedure Set_Raises_Constraint_Error
9996 (N : Node_Id; Val : Boolean := True); -- Flag7
9998 procedure Set_Range_Constraint
9999 (N : Node_Id; Val : Node_Id); -- Node4
10001 procedure Set_Range_Expression
10002 (N : Node_Id; Val : Node_Id); -- Node4
10004 procedure Set_Real_Range_Specification
10005 (N : Node_Id; Val : Node_Id); -- Node4
10007 procedure Set_Realval
10008 (N : Node_Id; Val : Ureal); -- Ureal3
10010 procedure Set_Reason
10011 (N : Node_Id; Val : Uint); -- Uint3
10013 procedure Set_Record_Extension_Part
10014 (N : Node_Id; Val : Node_Id); -- Node3
10016 procedure Set_Redundant_Use
10017 (N : Node_Id; Val : Boolean := True); -- Flag13
10019 procedure Set_Renaming_Exception
10020 (N : Node_Id; Val : Node_Id); -- Node2
10022 procedure Set_Result_Definition
10023 (N : Node_Id; Val : Node_Id); -- Node4
10025 procedure Set_Return_Object_Declarations
10026 (N : Node_Id; Val : List_Id); -- List3
10028 procedure Set_Return_Statement_Entity
10029 (N : Node_Id; Val : Node_Id); -- Node5
10031 procedure Set_Reverse_Present
10032 (N : Node_Id; Val : Boolean := True); -- Flag15
10034 procedure Set_Right_Opnd
10035 (N : Node_Id; Val : Node_Id); -- Node3
10037 procedure Set_Rounded_Result
10038 (N : Node_Id; Val : Boolean := True); -- Flag18
10040 procedure Set_SCIL_Controlling_Tag
10041 (N : Node_Id; Val : Node_Id); -- Node5
10043 procedure Set_SCIL_Entity
10044 (N : Node_Id; Val : Node_Id); -- Node4
10046 procedure Set_SCIL_Tag_Value
10047 (N : Node_Id; Val : Node_Id); -- Node5
10049 procedure Set_SCIL_Target_Prim
10050 (N : Node_Id; Val : Node_Id); -- Node2
10052 procedure Set_Scope
10053 (N : Node_Id; Val : Node_Id); -- Node3
10055 procedure Set_Select_Alternatives
10056 (N : Node_Id; Val : List_Id); -- List1
10058 procedure Set_Selector_Name
10059 (N : Node_Id; Val : Node_Id); -- Node2
10061 procedure Set_Selector_Names
10062 (N : Node_Id; Val : List_Id); -- List1
10064 procedure Set_Shift_Count_OK
10065 (N : Node_Id; Val : Boolean := True); -- Flag4
10067 procedure Set_Source_Type
10068 (N : Node_Id; Val : Entity_Id); -- Node1
10070 procedure Set_Specification
10071 (N : Node_Id; Val : Node_Id); -- Node1
10073 procedure Set_Split_PPC
10074 (N : Node_Id; Val : Boolean); -- Flag17
10076 procedure Set_Statements
10077 (N : Node_Id; Val : List_Id); -- List3
10079 procedure Set_Storage_Pool
10080 (N : Node_Id; Val : Node_Id); -- Node1
10082 procedure Set_Subpool_Handle_Name
10083 (N : Node_Id; Val : Node_Id); -- Node4
10085 procedure Set_Strval
10086 (N : Node_Id; Val : String_Id); -- Str3
10088 procedure Set_Subtype_Indication
10089 (N : Node_Id; Val : Node_Id); -- Node5
10091 procedure Set_Subtype_Mark
10092 (N : Node_Id; Val : Node_Id); -- Node4
10094 procedure Set_Subtype_Marks
10095 (N : Node_Id; Val : List_Id); -- List2
10097 procedure Set_Suppress_Assignment_Checks
10098 (N : Node_Id; Val : Boolean := True); -- Flag18
10100 procedure Set_Suppress_Loop_Warnings
10101 (N : Node_Id; Val : Boolean := True); -- Flag17
10103 procedure Set_Synchronized_Present
10104 (N : Node_Id; Val : Boolean := True); -- Flag7
10106 procedure Set_Tagged_Present
10107 (N : Node_Id; Val : Boolean := True); -- Flag15
10109 procedure Set_Target_Type
10110 (N : Node_Id; Val : Entity_Id); -- Node2
10112 procedure Set_Task_Definition
10113 (N : Node_Id; Val : Node_Id); -- Node3
10115 procedure Set_Task_Present
10116 (N : Node_Id; Val : Boolean := True); -- Flag5
10118 procedure Set_Then_Actions
10119 (N : Node_Id; Val : List_Id); -- List2
10121 procedure Set_Then_Statements
10122 (N : Node_Id; Val : List_Id); -- List2
10124 procedure Set_Treat_Fixed_As_Integer
10125 (N : Node_Id; Val : Boolean := True); -- Flag14
10127 procedure Set_Triggering_Alternative
10128 (N : Node_Id; Val : Node_Id); -- Node1
10130 procedure Set_Triggering_Statement
10131 (N : Node_Id; Val : Node_Id); -- Node1
10133 procedure Set_TSS_Elist
10134 (N : Node_Id; Val : Elist_Id); -- Elist3
10136 procedure Set_Type_Definition
10137 (N : Node_Id; Val : Node_Id); -- Node3
10139 procedure Set_Unit
10140 (N : Node_Id; Val : Node_Id); -- Node2
10142 procedure Set_Unknown_Discriminants_Present
10143 (N : Node_Id; Val : Boolean := True); -- Flag13
10145 procedure Set_Unreferenced_In_Spec
10146 (N : Node_Id; Val : Boolean := True); -- Flag7
10148 procedure Set_Variant_Part
10149 (N : Node_Id; Val : Node_Id); -- Node4
10151 procedure Set_Variants
10152 (N : Node_Id; Val : List_Id); -- List1
10154 procedure Set_Visible_Declarations
10155 (N : Node_Id; Val : List_Id); -- List2
10157 procedure Set_Used_Operations
10158 (N : Node_Id; Val : Elist_Id); -- Elist5
10160 procedure Set_Was_Originally_Stub
10161 (N : Node_Id; Val : Boolean := True); -- Flag13
10163 procedure Set_Withed_Body
10164 (N : Node_Id; Val : Node_Id); -- Node1
10166 -------------------------
10167 -- Iterator Procedures --
10168 -------------------------
10170 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
10172 procedure Next_Entity (N : in out Node_Id);
10173 procedure Next_Named_Actual (N : in out Node_Id);
10174 procedure Next_Rep_Item (N : in out Node_Id);
10175 procedure Next_Use_Clause (N : in out Node_Id);
10177 -------------------------------------------
10178 -- Miscellaneous Tree Access Subprograms --
10179 -------------------------------------------
10181 function End_Location (N : Node_Id) return Source_Ptr;
10182 -- N is an N_If_Statement or N_Case_Statement node, and this function
10183 -- returns the location of the IF token in the END IF sequence by
10184 -- translating the value of the End_Span field.
10186 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
10187 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
10188 -- the End_Span field to correspond to the given value S. In other words,
10189 -- End_Span is set to the difference between S and Sloc (N), the starting
10190 -- location.
10192 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
10193 -- Given an argument to a pragma Arg, this function returns the expression
10194 -- for the argument. This is Arg itself, or, in the case where Arg is a
10195 -- pragma argument association node, the expression from this node.
10197 --------------------------------
10198 -- Node_Kind Membership Tests --
10199 --------------------------------
10201 -- The following functions allow a convenient notation for testing whether
10202 -- a Node_Kind value matches any one of a list of possible values. In each
10203 -- case True is returned if the given T argument is equal to any of the V
10204 -- arguments. Note that there is a similar set of functions defined in
10205 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
10207 function Nkind_In
10208 (T : Node_Kind;
10209 V1 : Node_Kind;
10210 V2 : Node_Kind) return Boolean;
10212 function Nkind_In
10213 (T : Node_Kind;
10214 V1 : Node_Kind;
10215 V2 : Node_Kind;
10216 V3 : Node_Kind) return Boolean;
10218 function Nkind_In
10219 (T : Node_Kind;
10220 V1 : Node_Kind;
10221 V2 : Node_Kind;
10222 V3 : Node_Kind;
10223 V4 : Node_Kind) return Boolean;
10225 function Nkind_In
10226 (T : Node_Kind;
10227 V1 : Node_Kind;
10228 V2 : Node_Kind;
10229 V3 : Node_Kind;
10230 V4 : Node_Kind;
10231 V5 : Node_Kind) return Boolean;
10233 function Nkind_In
10234 (T : Node_Kind;
10235 V1 : Node_Kind;
10236 V2 : Node_Kind;
10237 V3 : Node_Kind;
10238 V4 : Node_Kind;
10239 V5 : Node_Kind;
10240 V6 : Node_Kind) return Boolean;
10242 function Nkind_In
10243 (T : Node_Kind;
10244 V1 : Node_Kind;
10245 V2 : Node_Kind;
10246 V3 : Node_Kind;
10247 V4 : Node_Kind;
10248 V5 : Node_Kind;
10249 V6 : Node_Kind;
10250 V7 : Node_Kind) return Boolean;
10252 function Nkind_In
10253 (T : Node_Kind;
10254 V1 : Node_Kind;
10255 V2 : Node_Kind;
10256 V3 : Node_Kind;
10257 V4 : Node_Kind;
10258 V5 : Node_Kind;
10259 V6 : Node_Kind;
10260 V7 : Node_Kind;
10261 V8 : Node_Kind) return Boolean;
10263 function Nkind_In
10264 (T : Node_Kind;
10265 V1 : Node_Kind;
10266 V2 : Node_Kind;
10267 V3 : Node_Kind;
10268 V4 : Node_Kind;
10269 V5 : Node_Kind;
10270 V6 : Node_Kind;
10271 V7 : Node_Kind;
10272 V8 : Node_Kind;
10273 V9 : Node_Kind) return Boolean;
10275 pragma Inline (Nkind_In);
10276 -- Inline all above functions
10278 -----------------------
10279 -- Utility Functions --
10280 -----------------------
10282 function Pragma_Name (N : Node_Id) return Name_Id;
10283 pragma Inline (Pragma_Name);
10284 -- Convenient function to obtain Chars field of Pragma_Identifier
10286 -----------------------------
10287 -- Syntactic Parent Tables --
10288 -----------------------------
10290 -- These tables show for each node, and for each of the five fields,
10291 -- whether the corresponding field is syntactic (True) or semantic (False).
10292 -- Unused entries are also set to False.
10294 subtype Field_Num is Natural range 1 .. 5;
10296 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
10298 -- Following entries can be built automatically from the sinfo sources
10299 -- using the makeisf utility (currently this program is in spitbol).
10301 N_Identifier =>
10302 (1 => True, -- Chars (Name1)
10303 2 => False, -- Original_Discriminant (Node2-Sem)
10304 3 => False, -- unused
10305 4 => False, -- Entity (Node4-Sem)
10306 5 => False), -- Etype (Node5-Sem)
10308 N_Integer_Literal =>
10309 (1 => False, -- unused
10310 2 => False, -- Original_Entity (Node2-Sem)
10311 3 => True, -- Intval (Uint3)
10312 4 => False, -- unused
10313 5 => False), -- Etype (Node5-Sem)
10315 N_Real_Literal =>
10316 (1 => False, -- unused
10317 2 => False, -- Original_Entity (Node2-Sem)
10318 3 => True, -- Realval (Ureal3)
10319 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
10320 5 => False), -- Etype (Node5-Sem)
10322 N_Character_Literal =>
10323 (1 => True, -- Chars (Name1)
10324 2 => True, -- Char_Literal_Value (Uint2)
10325 3 => False, -- unused
10326 4 => False, -- Entity (Node4-Sem)
10327 5 => False), -- Etype (Node5-Sem)
10329 N_String_Literal =>
10330 (1 => False, -- unused
10331 2 => False, -- unused
10332 3 => True, -- Strval (Str3)
10333 4 => False, -- unused
10334 5 => False), -- Etype (Node5-Sem)
10336 N_Pragma =>
10337 (1 => False, -- Next_Pragma (Node1-Sem)
10338 2 => True, -- Pragma_Argument_Associations (List2)
10339 3 => False, -- unused
10340 4 => True, -- Pragma_Identifier (Node4)
10341 5 => False), -- Next_Rep_Item (Node5-Sem)
10343 N_Pragma_Argument_Association =>
10344 (1 => True, -- Chars (Name1)
10345 2 => False, -- unused
10346 3 => True, -- Expression (Node3)
10347 4 => False, -- unused
10348 5 => False), -- unused
10350 N_Defining_Identifier =>
10351 (1 => True, -- Chars (Name1)
10352 2 => False, -- Next_Entity (Node2-Sem)
10353 3 => False, -- Scope (Node3-Sem)
10354 4 => False, -- unused
10355 5 => False), -- Etype (Node5-Sem)
10357 N_Full_Type_Declaration =>
10358 (1 => True, -- Defining_Identifier (Node1)
10359 2 => False, -- unused
10360 3 => True, -- Type_Definition (Node3)
10361 4 => True, -- Discriminant_Specifications (List4)
10362 5 => False), -- unused
10364 N_Subtype_Declaration =>
10365 (1 => True, -- Defining_Identifier (Node1)
10366 2 => False, -- unused
10367 3 => False, -- unused
10368 4 => False, -- Generic_Parent_Type (Node4-Sem)
10369 5 => True), -- Subtype_Indication (Node5)
10371 N_Subtype_Indication =>
10372 (1 => False, -- unused
10373 2 => False, -- unused
10374 3 => True, -- Constraint (Node3)
10375 4 => True, -- Subtype_Mark (Node4)
10376 5 => False), -- Etype (Node5-Sem)
10378 N_Object_Declaration =>
10379 (1 => True, -- Defining_Identifier (Node1)
10380 2 => False, -- Handler_List_Entry (Node2-Sem)
10381 3 => True, -- Expression (Node3)
10382 4 => True, -- Object_Definition (Node4)
10383 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10385 N_Number_Declaration =>
10386 (1 => True, -- Defining_Identifier (Node1)
10387 2 => False, -- unused
10388 3 => True, -- Expression (Node3)
10389 4 => False, -- unused
10390 5 => False), -- unused
10392 N_Derived_Type_Definition =>
10393 (1 => False, -- unused
10394 2 => True, -- Interface_List (List2)
10395 3 => True, -- Record_Extension_Part (Node3)
10396 4 => False, -- unused
10397 5 => True), -- Subtype_Indication (Node5)
10399 N_Range_Constraint =>
10400 (1 => False, -- unused
10401 2 => False, -- unused
10402 3 => False, -- unused
10403 4 => True, -- Range_Expression (Node4)
10404 5 => False), -- unused
10406 N_Range =>
10407 (1 => True, -- Low_Bound (Node1)
10408 2 => True, -- High_Bound (Node2)
10409 3 => False, -- unused
10410 4 => False, -- unused
10411 5 => False), -- Etype (Node5-Sem)
10413 N_Enumeration_Type_Definition =>
10414 (1 => True, -- Literals (List1)
10415 2 => False, -- unused
10416 3 => False, -- unused
10417 4 => True, -- End_Label (Node4)
10418 5 => False), -- unused
10420 N_Defining_Character_Literal =>
10421 (1 => True, -- Chars (Name1)
10422 2 => False, -- Next_Entity (Node2-Sem)
10423 3 => False, -- Scope (Node3-Sem)
10424 4 => False, -- unused
10425 5 => False), -- Etype (Node5-Sem)
10427 N_Signed_Integer_Type_Definition =>
10428 (1 => True, -- Low_Bound (Node1)
10429 2 => True, -- High_Bound (Node2)
10430 3 => False, -- unused
10431 4 => False, -- unused
10432 5 => False), -- unused
10434 N_Modular_Type_Definition =>
10435 (1 => False, -- unused
10436 2 => False, -- unused
10437 3 => True, -- Expression (Node3)
10438 4 => False, -- unused
10439 5 => False), -- unused
10441 N_Floating_Point_Definition =>
10442 (1 => False, -- unused
10443 2 => True, -- Digits_Expression (Node2)
10444 3 => False, -- unused
10445 4 => True, -- Real_Range_Specification (Node4)
10446 5 => False), -- unused
10448 N_Real_Range_Specification =>
10449 (1 => True, -- Low_Bound (Node1)
10450 2 => True, -- High_Bound (Node2)
10451 3 => False, -- unused
10452 4 => False, -- unused
10453 5 => False), -- unused
10455 N_Ordinary_Fixed_Point_Definition =>
10456 (1 => False, -- unused
10457 2 => False, -- unused
10458 3 => True, -- Delta_Expression (Node3)
10459 4 => True, -- Real_Range_Specification (Node4)
10460 5 => False), -- unused
10462 N_Decimal_Fixed_Point_Definition =>
10463 (1 => False, -- unused
10464 2 => True, -- Digits_Expression (Node2)
10465 3 => True, -- Delta_Expression (Node3)
10466 4 => True, -- Real_Range_Specification (Node4)
10467 5 => False), -- unused
10469 N_Digits_Constraint =>
10470 (1 => False, -- unused
10471 2 => True, -- Digits_Expression (Node2)
10472 3 => False, -- unused
10473 4 => True, -- Range_Constraint (Node4)
10474 5 => False), -- unused
10476 N_Unconstrained_Array_Definition =>
10477 (1 => False, -- unused
10478 2 => True, -- Subtype_Marks (List2)
10479 3 => False, -- unused
10480 4 => True, -- Component_Definition (Node4)
10481 5 => False), -- unused
10483 N_Constrained_Array_Definition =>
10484 (1 => False, -- unused
10485 2 => True, -- Discrete_Subtype_Definitions (List2)
10486 3 => False, -- unused
10487 4 => True, -- Component_Definition (Node4)
10488 5 => False), -- unused
10490 N_Component_Definition =>
10491 (1 => False, -- unused
10492 2 => False, -- unused
10493 3 => True, -- Access_Definition (Node3)
10494 4 => False, -- unused
10495 5 => True), -- Subtype_Indication (Node5)
10497 N_Discriminant_Specification =>
10498 (1 => True, -- Defining_Identifier (Node1)
10499 2 => False, -- unused
10500 3 => True, -- Expression (Node3)
10501 4 => False, -- unused
10502 5 => True), -- Discriminant_Type (Node5)
10504 N_Index_Or_Discriminant_Constraint =>
10505 (1 => True, -- Constraints (List1)
10506 2 => False, -- unused
10507 3 => False, -- unused
10508 4 => False, -- unused
10509 5 => False), -- unused
10511 N_Discriminant_Association =>
10512 (1 => True, -- Selector_Names (List1)
10513 2 => False, -- unused
10514 3 => True, -- Expression (Node3)
10515 4 => False, -- unused
10516 5 => False), -- unused
10518 N_Record_Definition =>
10519 (1 => True, -- Component_List (Node1)
10520 2 => True, -- Interface_List (List2)
10521 3 => False, -- unused
10522 4 => True, -- End_Label (Node4)
10523 5 => False), -- unused
10525 N_Component_List =>
10526 (1 => False, -- unused
10527 2 => False, -- unused
10528 3 => True, -- Component_Items (List3)
10529 4 => True, -- Variant_Part (Node4)
10530 5 => False), -- unused
10532 N_Component_Declaration =>
10533 (1 => True, -- Defining_Identifier (Node1)
10534 2 => False, -- unused
10535 3 => True, -- Expression (Node3)
10536 4 => True, -- Component_Definition (Node4)
10537 5 => False), -- unused
10539 N_Variant_Part =>
10540 (1 => True, -- Variants (List1)
10541 2 => True, -- Name (Node2)
10542 3 => False, -- unused
10543 4 => False, -- unused
10544 5 => False), -- unused
10546 N_Variant =>
10547 (1 => True, -- Component_List (Node1)
10548 2 => False, -- Enclosing_Variant (Node2-Sem)
10549 3 => False, -- Present_Expr (Uint3-Sem)
10550 4 => True, -- Discrete_Choices (List4)
10551 5 => False), -- Dcheck_Function (Node5-Sem)
10553 N_Others_Choice =>
10554 (1 => False, -- Others_Discrete_Choices (List1-Sem)
10555 2 => False, -- unused
10556 3 => False, -- unused
10557 4 => False, -- unused
10558 5 => False), -- unused
10560 N_Access_To_Object_Definition =>
10561 (1 => False, -- unused
10562 2 => False, -- unused
10563 3 => False, -- unused
10564 4 => False, -- unused
10565 5 => True), -- Subtype_Indication (Node5)
10567 N_Access_Function_Definition =>
10568 (1 => False, -- unused
10569 2 => False, -- unused
10570 3 => True, -- Parameter_Specifications (List3)
10571 4 => True, -- Result_Definition (Node4)
10572 5 => False), -- unused
10574 N_Access_Procedure_Definition =>
10575 (1 => False, -- unused
10576 2 => False, -- unused
10577 3 => True, -- Parameter_Specifications (List3)
10578 4 => False, -- unused
10579 5 => False), -- unused
10581 N_Access_Definition =>
10582 (1 => False, -- unused
10583 2 => False, -- unused
10584 3 => True, -- Access_To_Subprogram_Definition (Node3)
10585 4 => True, -- Subtype_Mark (Node4)
10586 5 => False), -- unused
10588 N_Incomplete_Type_Declaration =>
10589 (1 => True, -- Defining_Identifier (Node1)
10590 2 => False, -- unused
10591 3 => False, -- unused
10592 4 => True, -- Discriminant_Specifications (List4)
10593 5 => False), -- Premature_Use
10595 N_Explicit_Dereference =>
10596 (1 => False, -- unused
10597 2 => False, -- unused
10598 3 => True, -- Prefix (Node3)
10599 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10600 5 => False), -- Etype (Node5-Sem)
10602 N_Indexed_Component =>
10603 (1 => True, -- Expressions (List1)
10604 2 => False, -- unused
10605 3 => True, -- Prefix (Node3)
10606 4 => False, -- unused
10607 5 => False), -- Etype (Node5-Sem)
10609 N_Slice =>
10610 (1 => False, -- unused
10611 2 => False, -- unused
10612 3 => True, -- Prefix (Node3)
10613 4 => True, -- Discrete_Range (Node4)
10614 5 => False), -- Etype (Node5-Sem)
10616 N_Selected_Component =>
10617 (1 => False, -- unused
10618 2 => True, -- Selector_Name (Node2)
10619 3 => True, -- Prefix (Node3)
10620 4 => False, -- unused
10621 5 => False), -- Etype (Node5-Sem)
10623 N_Attribute_Reference =>
10624 (1 => True, -- Expressions (List1)
10625 2 => True, -- Attribute_Name (Name2)
10626 3 => True, -- Prefix (Node3)
10627 4 => False, -- Entity (Node4-Sem)
10628 5 => False), -- Etype (Node5-Sem)
10630 N_Aggregate =>
10631 (1 => True, -- Expressions (List1)
10632 2 => True, -- Component_Associations (List2)
10633 3 => False, -- Aggregate_Bounds (Node3-Sem)
10634 4 => False, -- unused
10635 5 => False), -- Etype (Node5-Sem)
10637 N_Component_Association =>
10638 (1 => True, -- Choices (List1)
10639 2 => False, -- Loop_Actions (List2-Sem)
10640 3 => True, -- Expression (Node3)
10641 4 => False, -- unused
10642 5 => False), -- unused
10644 N_Extension_Aggregate =>
10645 (1 => True, -- Expressions (List1)
10646 2 => True, -- Component_Associations (List2)
10647 3 => True, -- Ancestor_Part (Node3)
10648 4 => False, -- unused
10649 5 => False), -- Etype (Node5-Sem)
10651 N_Null =>
10652 (1 => False, -- unused
10653 2 => False, -- unused
10654 3 => False, -- unused
10655 4 => False, -- unused
10656 5 => False), -- Etype (Node5-Sem)
10658 N_And_Then =>
10659 (1 => False, -- Actions (List1-Sem)
10660 2 => True, -- Left_Opnd (Node2)
10661 3 => True, -- Right_Opnd (Node3)
10662 4 => False, -- unused
10663 5 => False), -- Etype (Node5-Sem)
10665 N_Or_Else =>
10666 (1 => False, -- Actions (List1-Sem)
10667 2 => True, -- Left_Opnd (Node2)
10668 3 => True, -- Right_Opnd (Node3)
10669 4 => False, -- unused
10670 5 => False), -- Etype (Node5-Sem)
10672 N_In =>
10673 (1 => False, -- unused
10674 2 => True, -- Left_Opnd (Node2)
10675 3 => True, -- Right_Opnd (Node3)
10676 4 => True, -- Alternatives (List4)
10677 5 => False), -- Etype (Node5-Sem)
10679 N_Not_In =>
10680 (1 => False, -- unused
10681 2 => True, -- Left_Opnd (Node2)
10682 3 => True, -- Right_Opnd (Node3)
10683 4 => True, -- Alternatives (List4)
10684 5 => False), -- Etype (Node5-Sem)
10686 N_Op_And =>
10687 (1 => True, -- Chars (Name1)
10688 2 => True, -- Left_Opnd (Node2)
10689 3 => True, -- Right_Opnd (Node3)
10690 4 => False, -- Entity (Node4-Sem)
10691 5 => False), -- Etype (Node5-Sem)
10693 N_Op_Or =>
10694 (1 => True, -- Chars (Name1)
10695 2 => True, -- Left_Opnd (Node2)
10696 3 => True, -- Right_Opnd (Node3)
10697 4 => False, -- Entity (Node4-Sem)
10698 5 => False), -- Etype (Node5-Sem)
10700 N_Op_Xor =>
10701 (1 => True, -- Chars (Name1)
10702 2 => True, -- Left_Opnd (Node2)
10703 3 => True, -- Right_Opnd (Node3)
10704 4 => False, -- Entity (Node4-Sem)
10705 5 => False), -- Etype (Node5-Sem)
10707 N_Op_Eq =>
10708 (1 => True, -- Chars (Name1)
10709 2 => True, -- Left_Opnd (Node2)
10710 3 => True, -- Right_Opnd (Node3)
10711 4 => False, -- Entity (Node4-Sem)
10712 5 => False), -- Etype (Node5-Sem)
10714 N_Op_Ne =>
10715 (1 => True, -- Chars (Name1)
10716 2 => True, -- Left_Opnd (Node2)
10717 3 => True, -- Right_Opnd (Node3)
10718 4 => False, -- Entity (Node4-Sem)
10719 5 => False), -- Etype (Node5-Sem)
10721 N_Op_Lt =>
10722 (1 => True, -- Chars (Name1)
10723 2 => True, -- Left_Opnd (Node2)
10724 3 => True, -- Right_Opnd (Node3)
10725 4 => False, -- Entity (Node4-Sem)
10726 5 => False), -- Etype (Node5-Sem)
10728 N_Op_Le =>
10729 (1 => True, -- Chars (Name1)
10730 2 => True, -- Left_Opnd (Node2)
10731 3 => True, -- Right_Opnd (Node3)
10732 4 => False, -- Entity (Node4-Sem)
10733 5 => False), -- Etype (Node5-Sem)
10735 N_Op_Gt =>
10736 (1 => True, -- Chars (Name1)
10737 2 => True, -- Left_Opnd (Node2)
10738 3 => True, -- Right_Opnd (Node3)
10739 4 => False, -- Entity (Node4-Sem)
10740 5 => False), -- Etype (Node5-Sem)
10742 N_Op_Ge =>
10743 (1 => True, -- Chars (Name1)
10744 2 => True, -- Left_Opnd (Node2)
10745 3 => True, -- Right_Opnd (Node3)
10746 4 => False, -- Entity (Node4-Sem)
10747 5 => False), -- Etype (Node5-Sem)
10749 N_Op_Add =>
10750 (1 => True, -- Chars (Name1)
10751 2 => True, -- Left_Opnd (Node2)
10752 3 => True, -- Right_Opnd (Node3)
10753 4 => False, -- Entity (Node4-Sem)
10754 5 => False), -- Etype (Node5-Sem)
10756 N_Op_Subtract =>
10757 (1 => True, -- Chars (Name1)
10758 2 => True, -- Left_Opnd (Node2)
10759 3 => True, -- Right_Opnd (Node3)
10760 4 => False, -- Entity (Node4-Sem)
10761 5 => False), -- Etype (Node5-Sem)
10763 N_Op_Concat =>
10764 (1 => True, -- Chars (Name1)
10765 2 => True, -- Left_Opnd (Node2)
10766 3 => True, -- Right_Opnd (Node3)
10767 4 => False, -- Entity (Node4-Sem)
10768 5 => False), -- Etype (Node5-Sem)
10770 N_Op_Multiply =>
10771 (1 => True, -- Chars (Name1)
10772 2 => True, -- Left_Opnd (Node2)
10773 3 => True, -- Right_Opnd (Node3)
10774 4 => False, -- Entity (Node4-Sem)
10775 5 => False), -- Etype (Node5-Sem)
10777 N_Op_Divide =>
10778 (1 => True, -- Chars (Name1)
10779 2 => True, -- Left_Opnd (Node2)
10780 3 => True, -- Right_Opnd (Node3)
10781 4 => False, -- Entity (Node4-Sem)
10782 5 => False), -- Etype (Node5-Sem)
10784 N_Op_Mod =>
10785 (1 => True, -- Chars (Name1)
10786 2 => True, -- Left_Opnd (Node2)
10787 3 => True, -- Right_Opnd (Node3)
10788 4 => False, -- Entity (Node4-Sem)
10789 5 => False), -- Etype (Node5-Sem)
10791 N_Op_Rem =>
10792 (1 => True, -- Chars (Name1)
10793 2 => True, -- Left_Opnd (Node2)
10794 3 => True, -- Right_Opnd (Node3)
10795 4 => False, -- Entity (Node4-Sem)
10796 5 => False), -- Etype (Node5-Sem)
10798 N_Op_Expon =>
10799 (1 => True, -- Chars (Name1)
10800 2 => True, -- Left_Opnd (Node2)
10801 3 => True, -- Right_Opnd (Node3)
10802 4 => False, -- Entity (Node4-Sem)
10803 5 => False), -- Etype (Node5-Sem)
10805 N_Op_Plus =>
10806 (1 => True, -- Chars (Name1)
10807 2 => False, -- unused
10808 3 => True, -- Right_Opnd (Node3)
10809 4 => False, -- Entity (Node4-Sem)
10810 5 => False), -- Etype (Node5-Sem)
10812 N_Op_Minus =>
10813 (1 => True, -- Chars (Name1)
10814 2 => False, -- unused
10815 3 => True, -- Right_Opnd (Node3)
10816 4 => False, -- Entity (Node4-Sem)
10817 5 => False), -- Etype (Node5-Sem)
10819 N_Op_Abs =>
10820 (1 => True, -- Chars (Name1)
10821 2 => False, -- unused
10822 3 => True, -- Right_Opnd (Node3)
10823 4 => False, -- Entity (Node4-Sem)
10824 5 => False), -- Etype (Node5-Sem)
10826 N_Op_Not =>
10827 (1 => True, -- Chars (Name1)
10828 2 => False, -- unused
10829 3 => True, -- Right_Opnd (Node3)
10830 4 => False, -- Entity (Node4-Sem)
10831 5 => False), -- Etype (Node5-Sem)
10833 N_Type_Conversion =>
10834 (1 => False, -- unused
10835 2 => False, -- unused
10836 3 => True, -- Expression (Node3)
10837 4 => True, -- Subtype_Mark (Node4)
10838 5 => False), -- Etype (Node5-Sem)
10840 N_Qualified_Expression =>
10841 (1 => False, -- unused
10842 2 => False, -- unused
10843 3 => True, -- Expression (Node3)
10844 4 => True, -- Subtype_Mark (Node4)
10845 5 => False), -- Etype (Node5-Sem)
10847 N_Quantified_Expression =>
10848 (1 => True, -- Condition (Node1)
10849 2 => True, -- Iterator_Specification
10850 3 => False, -- unused
10851 4 => True, -- Loop_Parameter_Specification (Node4)
10852 5 => False), -- Etype (Node5-Sem)
10854 N_Allocator =>
10855 (1 => False, -- Storage_Pool (Node1-Sem)
10856 2 => False, -- Procedure_To_Call (Node2-Sem)
10857 3 => True, -- Expression (Node3)
10858 4 => True, -- Subpool_Handle_Name (Node4)
10859 5 => False), -- Etype (Node5-Sem)
10861 N_Null_Statement =>
10862 (1 => False, -- unused
10863 2 => False, -- unused
10864 3 => False, -- unused
10865 4 => False, -- unused
10866 5 => False), -- unused
10868 N_Label =>
10869 (1 => True, -- Identifier (Node1)
10870 2 => False, -- unused
10871 3 => False, -- unused
10872 4 => False, -- unused
10873 5 => False), -- unused
10875 N_Assignment_Statement =>
10876 (1 => False, -- unused
10877 2 => True, -- Name (Node2)
10878 3 => True, -- Expression (Node3)
10879 4 => False, -- unused
10880 5 => False), -- unused
10882 N_If_Statement =>
10883 (1 => True, -- Condition (Node1)
10884 2 => True, -- Then_Statements (List2)
10885 3 => True, -- Elsif_Parts (List3)
10886 4 => True, -- Else_Statements (List4)
10887 5 => True), -- End_Span (Uint5)
10889 N_Elsif_Part =>
10890 (1 => True, -- Condition (Node1)
10891 2 => True, -- Then_Statements (List2)
10892 3 => False, -- Condition_Actions (List3-Sem)
10893 4 => False, -- unused
10894 5 => False), -- unused
10896 N_Case_Expression =>
10897 (1 => False, -- unused
10898 2 => False, -- unused
10899 3 => True, -- Expression (Node3)
10900 4 => True, -- Alternatives (List4)
10901 5 => False), -- unused
10903 N_Case_Expression_Alternative =>
10904 (1 => False, -- Actions (List1-Sem)
10905 2 => False, -- unused
10906 3 => True, -- Statements (List3)
10907 4 => True, -- Expression (Node4)
10908 5 => False), -- unused
10910 N_Case_Statement =>
10911 (1 => False, -- unused
10912 2 => False, -- unused
10913 3 => True, -- Expression (Node3)
10914 4 => True, -- Alternatives (List4)
10915 5 => True), -- End_Span (Uint5)
10917 N_Case_Statement_Alternative =>
10918 (1 => False, -- unused
10919 2 => False, -- unused
10920 3 => True, -- Statements (List3)
10921 4 => True, -- Discrete_Choices (List4)
10922 5 => False), -- unused
10924 N_Loop_Statement =>
10925 (1 => True, -- Identifier (Node1)
10926 2 => True, -- Iteration_Scheme (Node2)
10927 3 => True, -- Statements (List3)
10928 4 => True, -- End_Label (Node4)
10929 5 => False), -- unused
10931 N_Iteration_Scheme =>
10932 (1 => True, -- Condition (Node1)
10933 2 => True, -- Iterator_Specification (Node2)
10934 3 => False, -- Condition_Actions (List3-Sem)
10935 4 => True, -- Loop_Parameter_Specification (Node4)
10936 5 => False), -- unused
10938 N_Loop_Parameter_Specification =>
10939 (1 => True, -- Defining_Identifier (Node1)
10940 2 => False, -- unused
10941 3 => False, -- unused
10942 4 => True, -- Discrete_Subtype_Definition (Node4)
10943 5 => False), -- unused
10945 N_Iterator_Specification =>
10946 (1 => True, -- Defining_Identifier (Node1)
10947 2 => True, -- Name (Node2)
10948 3 => False, -- Unused
10949 4 => False, -- Unused
10950 5 => True), -- Subtype_Indication (Node5)
10952 N_Block_Statement =>
10953 (1 => True, -- Identifier (Node1)
10954 2 => True, -- Declarations (List2)
10955 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10956 4 => True, -- Handled_Statement_Sequence (Node4)
10957 5 => False), -- unused
10959 N_Exit_Statement =>
10960 (1 => True, -- Condition (Node1)
10961 2 => True, -- Name (Node2)
10962 3 => False, -- unused
10963 4 => False, -- unused
10964 5 => False), -- unused
10966 N_Goto_Statement =>
10967 (1 => False, -- unused
10968 2 => True, -- Name (Node2)
10969 3 => False, -- unused
10970 4 => False, -- unused
10971 5 => False), -- unused
10973 N_Subprogram_Declaration =>
10974 (1 => True, -- Specification (Node1)
10975 2 => False, -- unused
10976 3 => False, -- Body_To_Inline (Node3-Sem)
10977 4 => False, -- Parent_Spec (Node4-Sem)
10978 5 => False), -- Corresponding_Body (Node5-Sem)
10980 N_Abstract_Subprogram_Declaration =>
10981 (1 => True, -- Specification (Node1)
10982 2 => False, -- unused
10983 3 => False, -- unused
10984 4 => False, -- unused
10985 5 => False), -- unused
10987 N_Function_Specification =>
10988 (1 => True, -- Defining_Unit_Name (Node1)
10989 2 => False, -- Elaboration_Boolean (Node2-Sem)
10990 3 => True, -- Parameter_Specifications (List3)
10991 4 => True, -- Result_Definition (Node4)
10992 5 => False), -- Generic_Parent (Node5-Sem)
10994 N_Procedure_Specification =>
10995 (1 => True, -- Defining_Unit_Name (Node1)
10996 2 => False, -- Elaboration_Boolean (Node2-Sem)
10997 3 => True, -- Parameter_Specifications (List3)
10998 4 => False, -- unused
10999 5 => False), -- Generic_Parent (Node5-Sem)
11001 N_Designator =>
11002 (1 => True, -- Identifier (Node1)
11003 2 => True, -- Name (Node2)
11004 3 => False, -- unused
11005 4 => False, -- unused
11006 5 => False), -- unused
11008 N_Defining_Program_Unit_Name =>
11009 (1 => True, -- Defining_Identifier (Node1)
11010 2 => True, -- Name (Node2)
11011 3 => False, -- unused
11012 4 => False, -- unused
11013 5 => False), -- unused
11015 N_Operator_Symbol =>
11016 (1 => True, -- Chars (Name1)
11017 2 => False, -- unused
11018 3 => True, -- Strval (Str3)
11019 4 => False, -- Entity (Node4-Sem)
11020 5 => False), -- Etype (Node5-Sem)
11022 N_Defining_Operator_Symbol =>
11023 (1 => True, -- Chars (Name1)
11024 2 => False, -- Next_Entity (Node2-Sem)
11025 3 => False, -- Scope (Node3-Sem)
11026 4 => False, -- unused
11027 5 => False), -- Etype (Node5-Sem)
11029 N_Parameter_Specification =>
11030 (1 => True, -- Defining_Identifier (Node1)
11031 2 => True, -- Parameter_Type (Node2)
11032 3 => True, -- Expression (Node3)
11033 4 => False, -- unused
11034 5 => False), -- Default_Expression (Node5-Sem)
11036 N_Subprogram_Body =>
11037 (1 => True, -- Specification (Node1)
11038 2 => True, -- Declarations (List2)
11039 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11040 4 => True, -- Handled_Statement_Sequence (Node4)
11041 5 => False), -- Corresponding_Spec (Node5-Sem)
11043 N_Expression_Function =>
11044 (1 => True, -- Specification (Node1)
11045 2 => False, -- unused
11046 3 => True, -- Expression (Node3)
11047 4 => False, -- unused
11048 5 => False), -- unused
11050 N_Procedure_Call_Statement =>
11051 (1 => False, -- Controlling_Argument (Node1-Sem)
11052 2 => True, -- Name (Node2)
11053 3 => True, -- Parameter_Associations (List3)
11054 4 => False, -- First_Named_Actual (Node4-Sem)
11055 5 => False), -- Etype (Node5-Sem)
11057 N_Function_Call =>
11058 (1 => False, -- Controlling_Argument (Node1-Sem)
11059 2 => True, -- Name (Node2)
11060 3 => True, -- Parameter_Associations (List3)
11061 4 => False, -- First_Named_Actual (Node4-Sem)
11062 5 => False), -- Etype (Node5-Sem)
11064 N_Parameter_Association =>
11065 (1 => False, -- unused
11066 2 => True, -- Selector_Name (Node2)
11067 3 => True, -- Explicit_Actual_Parameter (Node3)
11068 4 => False, -- Next_Named_Actual (Node4-Sem)
11069 5 => False), -- unused
11071 N_Simple_Return_Statement =>
11072 (1 => False, -- Storage_Pool (Node1-Sem)
11073 2 => False, -- Procedure_To_Call (Node2-Sem)
11074 3 => True, -- Expression (Node3)
11075 4 => False, -- unused
11076 5 => False), -- Return_Statement_Entity (Node5-Sem)
11078 N_Extended_Return_Statement =>
11079 (1 => False, -- Storage_Pool (Node1-Sem)
11080 2 => False, -- Procedure_To_Call (Node2-Sem)
11081 3 => True, -- Return_Object_Declarations (List3)
11082 4 => True, -- Handled_Statement_Sequence (Node4)
11083 5 => False), -- Return_Statement_Entity (Node5-Sem)
11085 N_Package_Declaration =>
11086 (1 => True, -- Specification (Node1)
11087 2 => False, -- unused
11088 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11089 4 => False, -- Parent_Spec (Node4-Sem)
11090 5 => False), -- Corresponding_Body (Node5-Sem)
11092 N_Package_Specification =>
11093 (1 => True, -- Defining_Unit_Name (Node1)
11094 2 => True, -- Visible_Declarations (List2)
11095 3 => True, -- Private_Declarations (List3)
11096 4 => True, -- End_Label (Node4)
11097 5 => False), -- Generic_Parent (Node5-Sem)
11099 N_Package_Body =>
11100 (1 => True, -- Defining_Unit_Name (Node1)
11101 2 => True, -- Declarations (List2)
11102 3 => False, -- unused
11103 4 => True, -- Handled_Statement_Sequence (Node4)
11104 5 => False), -- Corresponding_Spec (Node5-Sem)
11106 N_Private_Type_Declaration =>
11107 (1 => True, -- Defining_Identifier (Node1)
11108 2 => False, -- unused
11109 3 => False, -- unused
11110 4 => True, -- Discriminant_Specifications (List4)
11111 5 => False), -- unused
11113 N_Private_Extension_Declaration =>
11114 (1 => True, -- Defining_Identifier (Node1)
11115 2 => True, -- Interface_List (List2)
11116 3 => False, -- unused
11117 4 => True, -- Discriminant_Specifications (List4)
11118 5 => True), -- Subtype_Indication (Node5)
11120 N_Use_Package_Clause =>
11121 (1 => False, -- unused
11122 2 => True, -- Names (List2)
11123 3 => False, -- Next_Use_Clause (Node3-Sem)
11124 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11125 5 => False), -- unused
11127 N_Use_Type_Clause =>
11128 (1 => False, -- unused
11129 2 => True, -- Subtype_Marks (List2)
11130 3 => False, -- Next_Use_Clause (Node3-Sem)
11131 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11132 5 => False), -- unused
11134 N_Object_Renaming_Declaration =>
11135 (1 => True, -- Defining_Identifier (Node1)
11136 2 => True, -- Name (Node2)
11137 3 => True, -- Access_Definition (Node3)
11138 4 => True, -- Subtype_Mark (Node4)
11139 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11141 N_Exception_Renaming_Declaration =>
11142 (1 => True, -- Defining_Identifier (Node1)
11143 2 => True, -- Name (Node2)
11144 3 => False, -- unused
11145 4 => False, -- unused
11146 5 => False), -- unused
11148 N_Package_Renaming_Declaration =>
11149 (1 => True, -- Defining_Unit_Name (Node1)
11150 2 => True, -- Name (Node2)
11151 3 => False, -- unused
11152 4 => False, -- Parent_Spec (Node4-Sem)
11153 5 => False), -- unused
11155 N_Subprogram_Renaming_Declaration =>
11156 (1 => True, -- Specification (Node1)
11157 2 => True, -- Name (Node2)
11158 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
11159 4 => False, -- Parent_Spec (Node4-Sem)
11160 5 => False), -- Corresponding_Spec (Node5-Sem)
11162 N_Generic_Package_Renaming_Declaration =>
11163 (1 => True, -- Defining_Unit_Name (Node1)
11164 2 => True, -- Name (Node2)
11165 3 => False, -- unused
11166 4 => False, -- Parent_Spec (Node4-Sem)
11167 5 => False), -- unused
11169 N_Generic_Procedure_Renaming_Declaration =>
11170 (1 => True, -- Defining_Unit_Name (Node1)
11171 2 => True, -- Name (Node2)
11172 3 => False, -- unused
11173 4 => False, -- Parent_Spec (Node4-Sem)
11174 5 => False), -- unused
11176 N_Generic_Function_Renaming_Declaration =>
11177 (1 => True, -- Defining_Unit_Name (Node1)
11178 2 => True, -- Name (Node2)
11179 3 => False, -- unused
11180 4 => False, -- Parent_Spec (Node4-Sem)
11181 5 => False), -- unused
11183 N_Task_Type_Declaration =>
11184 (1 => True, -- Defining_Identifier (Node1)
11185 2 => True, -- Interface_List (List2)
11186 3 => True, -- Task_Definition (Node3)
11187 4 => True, -- Discriminant_Specifications (List4)
11188 5 => False), -- Corresponding_Body (Node5-Sem)
11190 N_Single_Task_Declaration =>
11191 (1 => True, -- Defining_Identifier (Node1)
11192 2 => True, -- Interface_List (List2)
11193 3 => True, -- Task_Definition (Node3)
11194 4 => False, -- unused
11195 5 => False), -- unused
11197 N_Task_Definition =>
11198 (1 => False, -- unused
11199 2 => True, -- Visible_Declarations (List2)
11200 3 => True, -- Private_Declarations (List3)
11201 4 => True, -- End_Label (Node4)
11202 5 => False), -- unused
11204 N_Task_Body =>
11205 (1 => True, -- Defining_Identifier (Node1)
11206 2 => True, -- Declarations (List2)
11207 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11208 4 => True, -- Handled_Statement_Sequence (Node4)
11209 5 => False), -- Corresponding_Spec (Node5-Sem)
11211 N_Protected_Type_Declaration =>
11212 (1 => True, -- Defining_Identifier (Node1)
11213 2 => True, -- Interface_List (List2)
11214 3 => True, -- Protected_Definition (Node3)
11215 4 => True, -- Discriminant_Specifications (List4)
11216 5 => False), -- Corresponding_Body (Node5-Sem)
11218 N_Single_Protected_Declaration =>
11219 (1 => True, -- Defining_Identifier (Node1)
11220 2 => True, -- Interface_List (List2)
11221 3 => True, -- Protected_Definition (Node3)
11222 4 => False, -- unused
11223 5 => False), -- unused
11225 N_Protected_Definition =>
11226 (1 => False, -- unused
11227 2 => True, -- Visible_Declarations (List2)
11228 3 => True, -- Private_Declarations (List3)
11229 4 => True, -- End_Label (Node4)
11230 5 => False), -- unused
11232 N_Protected_Body =>
11233 (1 => True, -- Defining_Identifier (Node1)
11234 2 => True, -- Declarations (List2)
11235 3 => False, -- unused
11236 4 => True, -- End_Label (Node4)
11237 5 => False), -- Corresponding_Spec (Node5-Sem)
11239 N_Entry_Declaration =>
11240 (1 => True, -- Defining_Identifier (Node1)
11241 2 => False, -- unused
11242 3 => True, -- Parameter_Specifications (List3)
11243 4 => True, -- Discrete_Subtype_Definition (Node4)
11244 5 => False), -- Corresponding_Body (Node5-Sem)
11246 N_Accept_Statement =>
11247 (1 => True, -- Entry_Direct_Name (Node1)
11248 2 => True, -- Declarations (List2)
11249 3 => True, -- Parameter_Specifications (List3)
11250 4 => True, -- Handled_Statement_Sequence (Node4)
11251 5 => True), -- Entry_Index (Node5)
11253 N_Entry_Body =>
11254 (1 => True, -- Defining_Identifier (Node1)
11255 2 => True, -- Declarations (List2)
11256 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11257 4 => True, -- Handled_Statement_Sequence (Node4)
11258 5 => True), -- Entry_Body_Formal_Part (Node5)
11260 N_Entry_Body_Formal_Part =>
11261 (1 => True, -- Condition (Node1)
11262 2 => False, -- unused
11263 3 => True, -- Parameter_Specifications (List3)
11264 4 => True, -- Entry_Index_Specification (Node4)
11265 5 => False), -- unused
11267 N_Entry_Index_Specification =>
11268 (1 => True, -- Defining_Identifier (Node1)
11269 2 => False, -- unused
11270 3 => False, -- unused
11271 4 => True, -- Discrete_Subtype_Definition (Node4)
11272 5 => False), -- unused
11274 N_Entry_Call_Statement =>
11275 (1 => False, -- unused
11276 2 => True, -- Name (Node2)
11277 3 => True, -- Parameter_Associations (List3)
11278 4 => False, -- First_Named_Actual (Node4-Sem)
11279 5 => False), -- unused
11281 N_Requeue_Statement =>
11282 (1 => False, -- unused
11283 2 => True, -- Name (Node2)
11284 3 => False, -- unused
11285 4 => False, -- unused
11286 5 => False), -- unused
11288 N_Delay_Until_Statement =>
11289 (1 => False, -- unused
11290 2 => False, -- unused
11291 3 => True, -- Expression (Node3)
11292 4 => False, -- unused
11293 5 => False), -- unused
11295 N_Delay_Relative_Statement =>
11296 (1 => False, -- unused
11297 2 => False, -- unused
11298 3 => True, -- Expression (Node3)
11299 4 => False, -- unused
11300 5 => False), -- unused
11302 N_Selective_Accept =>
11303 (1 => True, -- Select_Alternatives (List1)
11304 2 => False, -- unused
11305 3 => False, -- unused
11306 4 => True, -- Else_Statements (List4)
11307 5 => False), -- unused
11309 N_Accept_Alternative =>
11310 (1 => True, -- Condition (Node1)
11311 2 => True, -- Accept_Statement (Node2)
11312 3 => True, -- Statements (List3)
11313 4 => True, -- Pragmas_Before (List4)
11314 5 => False), -- Accept_Handler_Records (List5-Sem)
11316 N_Delay_Alternative =>
11317 (1 => True, -- Condition (Node1)
11318 2 => True, -- Delay_Statement (Node2)
11319 3 => True, -- Statements (List3)
11320 4 => True, -- Pragmas_Before (List4)
11321 5 => False), -- unused
11323 N_Terminate_Alternative =>
11324 (1 => True, -- Condition (Node1)
11325 2 => False, -- unused
11326 3 => False, -- unused
11327 4 => True, -- Pragmas_Before (List4)
11328 5 => True), -- Pragmas_After (List5)
11330 N_Timed_Entry_Call =>
11331 (1 => True, -- Entry_Call_Alternative (Node1)
11332 2 => False, -- unused
11333 3 => False, -- unused
11334 4 => True, -- Delay_Alternative (Node4)
11335 5 => False), -- unused
11337 N_Entry_Call_Alternative =>
11338 (1 => True, -- Entry_Call_Statement (Node1)
11339 2 => False, -- unused
11340 3 => True, -- Statements (List3)
11341 4 => True, -- Pragmas_Before (List4)
11342 5 => False), -- unused
11344 N_Conditional_Entry_Call =>
11345 (1 => True, -- Entry_Call_Alternative (Node1)
11346 2 => False, -- unused
11347 3 => False, -- unused
11348 4 => True, -- Else_Statements (List4)
11349 5 => False), -- unused
11351 N_Asynchronous_Select =>
11352 (1 => True, -- Triggering_Alternative (Node1)
11353 2 => True, -- Abortable_Part (Node2)
11354 3 => False, -- unused
11355 4 => False, -- unused
11356 5 => False), -- unused
11358 N_Triggering_Alternative =>
11359 (1 => True, -- Triggering_Statement (Node1)
11360 2 => False, -- unused
11361 3 => True, -- Statements (List3)
11362 4 => True, -- Pragmas_Before (List4)
11363 5 => False), -- unused
11365 N_Abortable_Part =>
11366 (1 => False, -- unused
11367 2 => False, -- unused
11368 3 => True, -- Statements (List3)
11369 4 => False, -- unused
11370 5 => False), -- unused
11372 N_Abort_Statement =>
11373 (1 => False, -- unused
11374 2 => True, -- Names (List2)
11375 3 => False, -- unused
11376 4 => False, -- unused
11377 5 => False), -- unused
11379 N_Compilation_Unit =>
11380 (1 => True, -- Context_Items (List1)
11381 2 => True, -- Unit (Node2)
11382 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
11383 4 => False, -- Library_Unit (Node4-Sem)
11384 5 => True), -- Aux_Decls_Node (Node5)
11386 N_Compilation_Unit_Aux =>
11387 (1 => True, -- Actions (List1)
11388 2 => True, -- Declarations (List2)
11389 3 => False, -- Default_Storage_Pool (Node3)
11390 4 => True, -- Config_Pragmas (List4)
11391 5 => True), -- Pragmas_After (List5)
11393 N_With_Clause =>
11394 (1 => False, -- unused
11395 2 => True, -- Name (Node2)
11396 3 => False, -- unused
11397 4 => False, -- Library_Unit (Node4-Sem)
11398 5 => False), -- Corresponding_Spec (Node5-Sem)
11400 N_Subprogram_Body_Stub =>
11401 (1 => True, -- Specification (Node1)
11402 2 => False, -- unused
11403 3 => False, -- unused
11404 4 => False, -- Library_Unit (Node4-Sem)
11405 5 => False), -- Corresponding_Body (Node5-Sem)
11407 N_Package_Body_Stub =>
11408 (1 => True, -- Defining_Identifier (Node1)
11409 2 => False, -- unused
11410 3 => False, -- unused
11411 4 => False, -- Library_Unit (Node4-Sem)
11412 5 => False), -- Corresponding_Body (Node5-Sem)
11414 N_Task_Body_Stub =>
11415 (1 => True, -- Defining_Identifier (Node1)
11416 2 => False, -- unused
11417 3 => False, -- unused
11418 4 => False, -- Library_Unit (Node4-Sem)
11419 5 => False), -- Corresponding_Body (Node5-Sem)
11421 N_Protected_Body_Stub =>
11422 (1 => True, -- Defining_Identifier (Node1)
11423 2 => False, -- unused
11424 3 => False, -- unused
11425 4 => False, -- Library_Unit (Node4-Sem)
11426 5 => False), -- Corresponding_Body (Node5-Sem)
11428 N_Subunit =>
11429 (1 => True, -- Proper_Body (Node1)
11430 2 => True, -- Name (Node2)
11431 3 => False, -- Corresponding_Stub (Node3-Sem)
11432 4 => False, -- unused
11433 5 => False), -- unused
11435 N_Exception_Declaration =>
11436 (1 => True, -- Defining_Identifier (Node1)
11437 2 => False, -- unused
11438 3 => False, -- Expression (Node3-Sem)
11439 4 => False, -- unused
11440 5 => False), -- unused
11442 N_Handled_Sequence_Of_Statements =>
11443 (1 => True, -- At_End_Proc (Node1)
11444 2 => False, -- First_Real_Statement (Node2-Sem)
11445 3 => True, -- Statements (List3)
11446 4 => True, -- End_Label (Node4)
11447 5 => True), -- Exception_Handlers (List5)
11449 N_Exception_Handler =>
11450 (1 => False, -- Local_Raise_Statements (Elist1)
11451 2 => True, -- Choice_Parameter (Node2)
11452 3 => True, -- Statements (List3)
11453 4 => True, -- Exception_Choices (List4)
11454 5 => False), -- Exception_Label (Node5)
11456 N_Raise_Statement =>
11457 (1 => False, -- unused
11458 2 => True, -- Name (Node2)
11459 3 => True, -- Expression (Node3)
11460 4 => False, -- unused
11461 5 => False), -- unused
11463 N_Raise_Expression =>
11464 (1 => False, -- unused
11465 2 => True, -- Name (Node2)
11466 3 => True, -- Expression (Node3)
11467 4 => False, -- unused
11468 5 => False), -- Etype (Node5-Sem)
11470 N_Generic_Subprogram_Declaration =>
11471 (1 => True, -- Specification (Node1)
11472 2 => True, -- Generic_Formal_Declarations (List2)
11473 3 => False, -- unused
11474 4 => False, -- Parent_Spec (Node4-Sem)
11475 5 => False), -- Corresponding_Body (Node5-Sem)
11477 N_Generic_Package_Declaration =>
11478 (1 => True, -- Specification (Node1)
11479 2 => True, -- Generic_Formal_Declarations (List2)
11480 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11481 4 => False, -- Parent_Spec (Node4-Sem)
11482 5 => False), -- Corresponding_Body (Node5-Sem)
11484 N_Package_Instantiation =>
11485 (1 => True, -- Defining_Unit_Name (Node1)
11486 2 => True, -- Name (Node2)
11487 3 => True, -- Generic_Associations (List3)
11488 4 => False, -- Parent_Spec (Node4-Sem)
11489 5 => False), -- Instance_Spec (Node5-Sem)
11491 N_Procedure_Instantiation =>
11492 (1 => True, -- Defining_Unit_Name (Node1)
11493 2 => True, -- Name (Node2)
11494 3 => True, -- Generic_Associations (List3)
11495 4 => False, -- Parent_Spec (Node4-Sem)
11496 5 => False), -- Instance_Spec (Node5-Sem)
11498 N_Function_Instantiation =>
11499 (1 => True, -- Defining_Unit_Name (Node1)
11500 2 => True, -- Name (Node2)
11501 3 => True, -- Generic_Associations (List3)
11502 4 => False, -- Parent_Spec (Node4-Sem)
11503 5 => False), -- Instance_Spec (Node5-Sem)
11505 N_Generic_Association =>
11506 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
11507 2 => True, -- Selector_Name (Node2)
11508 3 => False, -- unused
11509 4 => False, -- unused
11510 5 => False), -- unused
11512 N_Formal_Object_Declaration =>
11513 (1 => True, -- Defining_Identifier (Node1)
11514 2 => False, -- unused
11515 3 => True, -- Access_Definition (Node3)
11516 4 => True, -- Subtype_Mark (Node4)
11517 5 => True), -- Default_Expression (Node5)
11519 N_Formal_Type_Declaration =>
11520 (1 => True, -- Defining_Identifier (Node1)
11521 2 => False, -- unused
11522 3 => True, -- Formal_Type_Definition (Node3)
11523 4 => True, -- Discriminant_Specifications (List4)
11524 5 => False), -- unused
11526 N_Formal_Private_Type_Definition =>
11527 (1 => False, -- unused
11528 2 => False, -- unused
11529 3 => False, -- unused
11530 4 => False, -- unused
11531 5 => False), -- unused
11533 N_Formal_Incomplete_Type_Definition =>
11534 (1 => False, -- unused
11535 2 => False, -- unused
11536 3 => False, -- unused
11537 4 => False, -- unused
11538 5 => False), -- unused
11540 N_Formal_Derived_Type_Definition =>
11541 (1 => False, -- unused
11542 2 => True, -- Interface_List (List2)
11543 3 => False, -- unused
11544 4 => True, -- Subtype_Mark (Node4)
11545 5 => False), -- unused
11547 N_Formal_Discrete_Type_Definition =>
11548 (1 => False, -- unused
11549 2 => False, -- unused
11550 3 => False, -- unused
11551 4 => False, -- unused
11552 5 => False), -- unused
11554 N_Formal_Signed_Integer_Type_Definition =>
11555 (1 => False, -- unused
11556 2 => False, -- unused
11557 3 => False, -- unused
11558 4 => False, -- unused
11559 5 => False), -- unused
11561 N_Formal_Modular_Type_Definition =>
11562 (1 => False, -- unused
11563 2 => False, -- unused
11564 3 => False, -- unused
11565 4 => False, -- unused
11566 5 => False), -- unused
11568 N_Formal_Floating_Point_Definition =>
11569 (1 => False, -- unused
11570 2 => False, -- unused
11571 3 => False, -- unused
11572 4 => False, -- unused
11573 5 => False), -- unused
11575 N_Formal_Ordinary_Fixed_Point_Definition =>
11576 (1 => False, -- unused
11577 2 => False, -- unused
11578 3 => False, -- unused
11579 4 => False, -- unused
11580 5 => False), -- unused
11582 N_Formal_Decimal_Fixed_Point_Definition =>
11583 (1 => False, -- unused
11584 2 => False, -- unused
11585 3 => False, -- unused
11586 4 => False, -- unused
11587 5 => False), -- unused
11589 N_Formal_Concrete_Subprogram_Declaration =>
11590 (1 => True, -- Specification (Node1)
11591 2 => True, -- Default_Name (Node2)
11592 3 => False, -- unused
11593 4 => False, -- unused
11594 5 => False), -- unused
11596 N_Formal_Abstract_Subprogram_Declaration =>
11597 (1 => True, -- Specification (Node1)
11598 2 => True, -- Default_Name (Node2)
11599 3 => False, -- unused
11600 4 => False, -- unused
11601 5 => False), -- unused
11603 N_Formal_Package_Declaration =>
11604 (1 => True, -- Defining_Identifier (Node1)
11605 2 => True, -- Name (Node2)
11606 3 => True, -- Generic_Associations (List3)
11607 4 => False, -- unused
11608 5 => False), -- Instance_Spec (Node5-Sem)
11610 N_Attribute_Definition_Clause =>
11611 (1 => True, -- Chars (Name1)
11612 2 => True, -- Name (Node2)
11613 3 => True, -- Expression (Node3)
11614 4 => False, -- unused
11615 5 => False), -- Next_Rep_Item (Node5-Sem)
11617 N_Aspect_Specification =>
11618 (1 => True, -- Identifier (Node1)
11619 2 => False, -- Aspect_Rep_Item (Node2-Sem)
11620 3 => True, -- Expression (Node3)
11621 4 => False, -- Entity (Node4-Sem)
11622 5 => False), -- Next_Rep_Item (Node5-Sem)
11624 N_Enumeration_Representation_Clause =>
11625 (1 => True, -- Identifier (Node1)
11626 2 => False, -- unused
11627 3 => True, -- Array_Aggregate (Node3)
11628 4 => False, -- unused
11629 5 => False), -- Next_Rep_Item (Node5-Sem)
11631 N_Record_Representation_Clause =>
11632 (1 => True, -- Identifier (Node1)
11633 2 => True, -- Mod_Clause (Node2)
11634 3 => True, -- Component_Clauses (List3)
11635 4 => False, -- unused
11636 5 => False), -- Next_Rep_Item (Node5-Sem)
11638 N_Component_Clause =>
11639 (1 => True, -- Component_Name (Node1)
11640 2 => True, -- Position (Node2)
11641 3 => True, -- First_Bit (Node3)
11642 4 => True, -- Last_Bit (Node4)
11643 5 => False), -- unused
11645 N_Code_Statement =>
11646 (1 => False, -- unused
11647 2 => False, -- unused
11648 3 => True, -- Expression (Node3)
11649 4 => False, -- unused
11650 5 => False), -- unused
11652 N_Op_Rotate_Left =>
11653 (1 => True, -- Chars (Name1)
11654 2 => True, -- Left_Opnd (Node2)
11655 3 => True, -- Right_Opnd (Node3)
11656 4 => False, -- Entity (Node4-Sem)
11657 5 => False), -- Etype (Node5-Sem)
11659 N_Op_Rotate_Right =>
11660 (1 => True, -- Chars (Name1)
11661 2 => True, -- Left_Opnd (Node2)
11662 3 => True, -- Right_Opnd (Node3)
11663 4 => False, -- Entity (Node4-Sem)
11664 5 => False), -- Etype (Node5-Sem)
11666 N_Op_Shift_Left =>
11667 (1 => True, -- Chars (Name1)
11668 2 => True, -- Left_Opnd (Node2)
11669 3 => True, -- Right_Opnd (Node3)
11670 4 => False, -- Entity (Node4-Sem)
11671 5 => False), -- Etype (Node5-Sem)
11673 N_Op_Shift_Right_Arithmetic =>
11674 (1 => True, -- Chars (Name1)
11675 2 => True, -- Left_Opnd (Node2)
11676 3 => True, -- Right_Opnd (Node3)
11677 4 => False, -- Entity (Node4-Sem)
11678 5 => False), -- Etype (Node5-Sem)
11680 N_Op_Shift_Right =>
11681 (1 => True, -- Chars (Name1)
11682 2 => True, -- Left_Opnd (Node2)
11683 3 => True, -- Right_Opnd (Node3)
11684 4 => False, -- Entity (Node4-Sem)
11685 5 => False), -- Etype (Node5-Sem)
11687 N_Delta_Constraint =>
11688 (1 => False, -- unused
11689 2 => False, -- unused
11690 3 => True, -- Delta_Expression (Node3)
11691 4 => True, -- Range_Constraint (Node4)
11692 5 => False), -- unused
11694 N_At_Clause =>
11695 (1 => True, -- Identifier (Node1)
11696 2 => False, -- unused
11697 3 => True, -- Expression (Node3)
11698 4 => False, -- unused
11699 5 => False), -- unused
11701 N_Mod_Clause =>
11702 (1 => False, -- unused
11703 2 => False, -- unused
11704 3 => True, -- Expression (Node3)
11705 4 => True, -- Pragmas_Before (List4)
11706 5 => False), -- unused
11708 N_If_Expression =>
11709 (1 => True, -- Expressions (List1)
11710 2 => False, -- Then_Actions (List2-Sem)
11711 3 => False, -- Else_Actions (List3-Sem)
11712 4 => False, -- unused
11713 5 => False), -- Etype (Node5-Sem)
11715 N_Contract =>
11716 (1 => False, -- Pre_Post_Conditions (Node1)
11717 2 => False, -- Contract_Test_Cases (Node2)
11718 3 => False, -- Classifications (Node3)
11719 4 => False, -- unused
11720 5 => False), -- unused
11722 N_Expanded_Name =>
11723 (1 => True, -- Chars (Name1)
11724 2 => True, -- Selector_Name (Node2)
11725 3 => True, -- Prefix (Node3)
11726 4 => False, -- Entity (Node4-Sem)
11727 5 => False), -- Etype (Node5-Sem)
11729 N_Expression_With_Actions =>
11730 (1 => True, -- Actions (List1)
11731 2 => False, -- unused
11732 3 => True, -- Expression (Node3)
11733 4 => False, -- unused
11734 5 => False), -- unused
11736 N_Free_Statement =>
11737 (1 => False, -- Storage_Pool (Node1-Sem)
11738 2 => False, -- Procedure_To_Call (Node2-Sem)
11739 3 => True, -- Expression (Node3)
11740 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11741 5 => False), -- unused
11743 N_Freeze_Entity =>
11744 (1 => True, -- Actions (List1)
11745 2 => False, -- Access_Types_To_Process (Elist2-Sem)
11746 3 => False, -- TSS_Elist (Elist3-Sem)
11747 4 => False, -- Entity (Node4-Sem)
11748 5 => False), -- First_Subtype_Link (Node5-Sem)
11750 N_Implicit_Label_Declaration =>
11751 (1 => True, -- Defining_Identifier (Node1)
11752 2 => False, -- Label_Construct (Node2-Sem)
11753 3 => False, -- unused
11754 4 => False, -- unused
11755 5 => False), -- unused
11757 N_Itype_Reference =>
11758 (1 => False, -- Itype (Node1-Sem)
11759 2 => False, -- unused
11760 3 => False, -- unused
11761 4 => False, -- unused
11762 5 => False), -- unused
11764 N_Raise_Constraint_Error =>
11765 (1 => True, -- Condition (Node1)
11766 2 => False, -- unused
11767 3 => True, -- Reason (Uint3)
11768 4 => False, -- unused
11769 5 => False), -- Etype (Node5-Sem)
11771 N_Raise_Program_Error =>
11772 (1 => True, -- Condition (Node1)
11773 2 => False, -- unused
11774 3 => True, -- Reason (Uint3)
11775 4 => False, -- unused
11776 5 => False), -- Etype (Node5-Sem)
11778 N_Raise_Storage_Error =>
11779 (1 => True, -- Condition (Node1)
11780 2 => False, -- unused
11781 3 => True, -- Reason (Uint3)
11782 4 => False, -- unused
11783 5 => False), -- Etype (Node5-Sem)
11785 N_Push_Constraint_Error_Label =>
11786 (1 => False, -- unused
11787 2 => False, -- unused
11788 3 => False, -- unused
11789 4 => False, -- unused
11790 5 => False), -- unused
11792 N_Push_Program_Error_Label =>
11793 (1 => False, -- Exception_Label
11794 2 => False, -- unused
11795 3 => False, -- unused
11796 4 => False, -- unused
11797 5 => False), -- Exception_Label
11799 N_Push_Storage_Error_Label =>
11800 (1 => False, -- Exception_Label
11801 2 => False, -- unused
11802 3 => False, -- unused
11803 4 => False, -- unused
11804 5 => False), -- Exception_Label
11806 N_Pop_Constraint_Error_Label =>
11807 (1 => False, -- unused
11808 2 => False, -- unused
11809 3 => False, -- unused
11810 4 => False, -- unused
11811 5 => False), -- unused
11813 N_Pop_Program_Error_Label =>
11814 (1 => False, -- unused
11815 2 => False, -- unused
11816 3 => False, -- unused
11817 4 => False, -- unused
11818 5 => False), -- unused
11820 N_Pop_Storage_Error_Label =>
11821 (1 => False, -- unused
11822 2 => False, -- unused
11823 3 => False, -- unused
11824 4 => False, -- unused
11825 5 => False), -- unused
11827 N_Reference =>
11828 (1 => False, -- unused
11829 2 => False, -- unused
11830 3 => True, -- Prefix (Node3)
11831 4 => False, -- unused
11832 5 => False), -- Etype (Node5-Sem)
11834 N_Subprogram_Info =>
11835 (1 => True, -- Identifier (Node1)
11836 2 => False, -- unused
11837 3 => False, -- unused
11838 4 => False, -- unused
11839 5 => False), -- Etype (Node5-Sem)
11841 N_Unchecked_Expression =>
11842 (1 => False, -- unused
11843 2 => False, -- unused
11844 3 => True, -- Expression (Node3)
11845 4 => False, -- unused
11846 5 => False), -- Etype (Node5-Sem)
11848 N_Unchecked_Type_Conversion =>
11849 (1 => False, -- unused
11850 2 => False, -- unused
11851 3 => True, -- Expression (Node3)
11852 4 => True, -- Subtype_Mark (Node4)
11853 5 => False), -- Etype (Node5-Sem)
11855 N_Validate_Unchecked_Conversion =>
11856 (1 => False, -- Source_Type (Node1-Sem)
11857 2 => False, -- Target_Type (Node2-Sem)
11858 3 => False, -- unused
11859 4 => False, -- unused
11860 5 => False), -- unused
11862 -- Entries for SCIL nodes
11864 N_SCIL_Dispatch_Table_Tag_Init =>
11865 (1 => False, -- unused
11866 2 => False, -- unused
11867 3 => False, -- unused
11868 4 => False, -- SCIL_Entity (Node4-Sem)
11869 5 => False), -- unused
11871 N_SCIL_Dispatching_Call =>
11872 (1 => False, -- unused
11873 2 => False, -- SCIL_Target_Prim (Node2-Sem)
11874 3 => False, -- unused
11875 4 => False, -- SCIL_Entity (Node4-Sem)
11876 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
11878 N_SCIL_Membership_Test =>
11879 (1 => False, -- unused
11880 2 => False, -- unused
11881 3 => False, -- unused
11882 4 => False, -- SCIL_Entity (Node4-Sem)
11883 5 => False), -- SCIL_Tag_Value (Node5-Sem)
11885 -- Entries for Empty, Error and Unused. Even thought these have a Chars
11886 -- field for debugging purposes, they are not really syntactic fields, so
11887 -- we mark all fields as unused.
11889 N_Empty =>
11890 (1 => False, -- unused
11891 2 => False, -- unused
11892 3 => False, -- unused
11893 4 => False, -- unused
11894 5 => False), -- unused
11896 N_Error =>
11897 (1 => False, -- unused
11898 2 => False, -- unused
11899 3 => False, -- unused
11900 4 => False, -- unused
11901 5 => False), -- unused
11903 N_Unused_At_Start =>
11904 (1 => False, -- unused
11905 2 => False, -- unused
11906 3 => False, -- unused
11907 4 => False, -- unused
11908 5 => False), -- unused
11910 N_Unused_At_End =>
11911 (1 => False, -- unused
11912 2 => False, -- unused
11913 3 => False, -- unused
11914 4 => False, -- unused
11915 5 => False)); -- unused
11917 --------------------
11918 -- Inline Pragmas --
11919 --------------------
11921 pragma Inline (ABE_Is_Certain);
11922 pragma Inline (Abort_Present);
11923 pragma Inline (Abortable_Part);
11924 pragma Inline (Abstract_Present);
11925 pragma Inline (Accept_Handler_Records);
11926 pragma Inline (Accept_Statement);
11927 pragma Inline (Access_Definition);
11928 pragma Inline (Access_To_Subprogram_Definition);
11929 pragma Inline (Access_Types_To_Process);
11930 pragma Inline (Actions);
11931 pragma Inline (Activation_Chain_Entity);
11932 pragma Inline (Acts_As_Spec);
11933 pragma Inline (Actual_Designated_Subtype);
11934 pragma Inline (Address_Warning_Posted);
11935 pragma Inline (Aggregate_Bounds);
11936 pragma Inline (Aliased_Present);
11937 pragma Inline (All_Others);
11938 pragma Inline (All_Present);
11939 pragma Inline (Alternatives);
11940 pragma Inline (Ancestor_Part);
11941 pragma Inline (Atomic_Sync_Required);
11942 pragma Inline (Array_Aggregate);
11943 pragma Inline (Aspect_Rep_Item);
11944 pragma Inline (Assignment_OK);
11945 pragma Inline (Associated_Node);
11946 pragma Inline (At_End_Proc);
11947 pragma Inline (Attribute_Name);
11948 pragma Inline (Aux_Decls_Node);
11949 pragma Inline (Backwards_OK);
11950 pragma Inline (Bad_Is_Detected);
11951 pragma Inline (Body_To_Inline);
11952 pragma Inline (Body_Required);
11953 pragma Inline (By_Ref);
11954 pragma Inline (Box_Present);
11955 pragma Inline (Char_Literal_Value);
11956 pragma Inline (Chars);
11957 pragma Inline (Check_Address_Alignment);
11958 pragma Inline (Choice_Parameter);
11959 pragma Inline (Choices);
11960 pragma Inline (Class_Present);
11961 pragma Inline (Classifications);
11962 pragma Inline (Comes_From_Extended_Return_Statement);
11963 pragma Inline (Compile_Time_Known_Aggregate);
11964 pragma Inline (Component_Associations);
11965 pragma Inline (Component_Clauses);
11966 pragma Inline (Component_Definition);
11967 pragma Inline (Component_Items);
11968 pragma Inline (Component_List);
11969 pragma Inline (Component_Name);
11970 pragma Inline (Componentwise_Assignment);
11971 pragma Inline (Condition);
11972 pragma Inline (Condition_Actions);
11973 pragma Inline (Config_Pragmas);
11974 pragma Inline (Constant_Present);
11975 pragma Inline (Constraint);
11976 pragma Inline (Constraints);
11977 pragma Inline (Context_Installed);
11978 pragma Inline (Context_Items);
11979 pragma Inline (Context_Pending);
11980 pragma Inline (Contract_Test_Cases);
11981 pragma Inline (Controlling_Argument);
11982 pragma Inline (Convert_To_Return_False);
11983 pragma Inline (Conversion_OK);
11984 pragma Inline (Corresponding_Aspect);
11985 pragma Inline (Corresponding_Body);
11986 pragma Inline (Corresponding_Formal_Spec);
11987 pragma Inline (Corresponding_Generic_Association);
11988 pragma Inline (Corresponding_Integer_Value);
11989 pragma Inline (Corresponding_Spec);
11990 pragma Inline (Corresponding_Stub);
11991 pragma Inline (Dcheck_Function);
11992 pragma Inline (Declarations);
11993 pragma Inline (Default_Expression);
11994 pragma Inline (Default_Storage_Pool);
11995 pragma Inline (Default_Name);
11996 pragma Inline (Defining_Identifier);
11997 pragma Inline (Defining_Unit_Name);
11998 pragma Inline (Delay_Alternative);
11999 pragma Inline (Delay_Statement);
12000 pragma Inline (Delta_Expression);
12001 pragma Inline (Digits_Expression);
12002 pragma Inline (Discr_Check_Funcs_Built);
12003 pragma Inline (Discrete_Choices);
12004 pragma Inline (Discrete_Range);
12005 pragma Inline (Discrete_Subtype_Definition);
12006 pragma Inline (Discrete_Subtype_Definitions);
12007 pragma Inline (Discriminant_Specifications);
12008 pragma Inline (Discriminant_Type);
12009 pragma Inline (Do_Accessibility_Check);
12010 pragma Inline (Do_Discriminant_Check);
12011 pragma Inline (Do_Length_Check);
12012 pragma Inline (Do_Division_Check);
12013 pragma Inline (Do_Overflow_Check);
12014 pragma Inline (Do_Range_Check);
12015 pragma Inline (Do_Storage_Check);
12016 pragma Inline (Do_Tag_Check);
12017 pragma Inline (Elaborate_Present);
12018 pragma Inline (Elaborate_All_Desirable);
12019 pragma Inline (Elaborate_All_Present);
12020 pragma Inline (Elaborate_Desirable);
12021 pragma Inline (Elaboration_Boolean);
12022 pragma Inline (Else_Actions);
12023 pragma Inline (Else_Statements);
12024 pragma Inline (Elsif_Parts);
12025 pragma Inline (Enclosing_Variant);
12026 pragma Inline (End_Label);
12027 pragma Inline (End_Span);
12028 pragma Inline (Entity);
12029 pragma Inline (Entity_Or_Associated_Node);
12030 pragma Inline (Entry_Body_Formal_Part);
12031 pragma Inline (Entry_Call_Alternative);
12032 pragma Inline (Entry_Call_Statement);
12033 pragma Inline (Entry_Direct_Name);
12034 pragma Inline (Entry_Index);
12035 pragma Inline (Entry_Index_Specification);
12036 pragma Inline (Etype);
12037 pragma Inline (Exception_Choices);
12038 pragma Inline (Exception_Handlers);
12039 pragma Inline (Exception_Junk);
12040 pragma Inline (Exception_Label);
12041 pragma Inline (Expansion_Delayed);
12042 pragma Inline (Explicit_Actual_Parameter);
12043 pragma Inline (Explicit_Generic_Actual_Parameter);
12044 pragma Inline (Expression);
12045 pragma Inline (Expressions);
12046 pragma Inline (First_Bit);
12047 pragma Inline (First_Inlined_Subprogram);
12048 pragma Inline (First_Name);
12049 pragma Inline (First_Named_Actual);
12050 pragma Inline (First_Real_Statement);
12051 pragma Inline (First_Subtype_Link);
12052 pragma Inline (Float_Truncate);
12053 pragma Inline (Formal_Type_Definition);
12054 pragma Inline (Forwards_OK);
12055 pragma Inline (From_Aspect_Specification);
12056 pragma Inline (From_At_End);
12057 pragma Inline (From_At_Mod);
12058 pragma Inline (From_Default);
12059 pragma Inline (Generic_Associations);
12060 pragma Inline (Generic_Formal_Declarations);
12061 pragma Inline (Generic_Parent);
12062 pragma Inline (Generic_Parent_Type);
12063 pragma Inline (Handled_Statement_Sequence);
12064 pragma Inline (Handler_List_Entry);
12065 pragma Inline (Has_Created_Identifier);
12066 pragma Inline (Has_Dereference_Action);
12067 pragma Inline (Has_Dynamic_Length_Check);
12068 pragma Inline (Has_Dynamic_Range_Check);
12069 pragma Inline (Has_Init_Expression);
12070 pragma Inline (Has_Local_Raise);
12071 pragma Inline (Has_Self_Reference);
12072 pragma Inline (Has_No_Elaboration_Code);
12073 pragma Inline (Has_Pragma_Suppress_All);
12074 pragma Inline (Has_Private_View);
12075 pragma Inline (Has_Relative_Deadline_Pragma);
12076 pragma Inline (Has_Storage_Size_Pragma);
12077 pragma Inline (Has_Wide_Character);
12078 pragma Inline (Has_Wide_Wide_Character);
12079 pragma Inline (Header_Size_Added);
12080 pragma Inline (Hidden_By_Use_Clause);
12081 pragma Inline (High_Bound);
12082 pragma Inline (Identifier);
12083 pragma Inline (Implicit_With);
12084 pragma Inline (Implicit_With_From_Instantiation);
12085 pragma Inline (Interface_List);
12086 pragma Inline (Interface_Present);
12087 pragma Inline (Includes_Infinities);
12088 pragma Inline (Import_Interface_Present);
12089 pragma Inline (In_Assertion_Expression);
12090 pragma Inline (In_Present);
12091 pragma Inline (Inherited_Discriminant);
12092 pragma Inline (Instance_Spec);
12093 pragma Inline (Intval);
12094 pragma Inline (Iterator_Specification);
12095 pragma Inline (Is_Accessibility_Actual);
12096 pragma Inline (Is_Asynchronous_Call_Block);
12097 pragma Inline (Is_Boolean_Aspect);
12098 pragma Inline (Is_Component_Left_Opnd);
12099 pragma Inline (Is_Component_Right_Opnd);
12100 pragma Inline (Is_Controlling_Actual);
12101 pragma Inline (Is_Delayed_Aspect);
12102 pragma Inline (Is_Disabled);
12103 pragma Inline (Is_Dynamic_Coextension);
12104 pragma Inline (Is_Elsif);
12105 pragma Inline (Is_Entry_Barrier_Function);
12106 pragma Inline (Is_Expanded_Build_In_Place_Call);
12107 pragma Inline (Is_Finalization_Wrapper);
12108 pragma Inline (Is_Folded_In_Parser);
12109 pragma Inline (Is_Ignored);
12110 pragma Inline (Is_In_Discriminant_Check);
12111 pragma Inline (Is_Machine_Number);
12112 pragma Inline (Is_Null_Loop);
12113 pragma Inline (Is_Overloaded);
12114 pragma Inline (Is_Power_Of_2_For_Shift);
12115 pragma Inline (Is_Prefixed_Call);
12116 pragma Inline (Is_Protected_Subprogram_Body);
12117 pragma Inline (Is_Static_Coextension);
12118 pragma Inline (Is_Static_Expression);
12119 pragma Inline (Is_Subprogram_Descriptor);
12120 pragma Inline (Is_Task_Allocation_Block);
12121 pragma Inline (Is_Task_Master);
12122 pragma Inline (Iteration_Scheme);
12123 pragma Inline (Itype);
12124 pragma Inline (Kill_Range_Check);
12125 pragma Inline (Last_Bit);
12126 pragma Inline (Last_Name);
12127 pragma Inline (Library_Unit);
12128 pragma Inline (Label_Construct);
12129 pragma Inline (Left_Opnd);
12130 pragma Inline (Limited_View_Installed);
12131 pragma Inline (Limited_Present);
12132 pragma Inline (Literals);
12133 pragma Inline (Local_Raise_Not_OK);
12134 pragma Inline (Local_Raise_Statements);
12135 pragma Inline (Loop_Actions);
12136 pragma Inline (Loop_Parameter_Specification);
12137 pragma Inline (Low_Bound);
12138 pragma Inline (Mod_Clause);
12139 pragma Inline (More_Ids);
12140 pragma Inline (Must_Be_Byte_Aligned);
12141 pragma Inline (Must_Not_Freeze);
12142 pragma Inline (Must_Not_Override);
12143 pragma Inline (Must_Override);
12144 pragma Inline (Name);
12145 pragma Inline (Names);
12146 pragma Inline (Next_Entity);
12147 pragma Inline (Next_Exit_Statement);
12148 pragma Inline (Next_Implicit_With);
12149 pragma Inline (Next_Named_Actual);
12150 pragma Inline (Next_Pragma);
12151 pragma Inline (Next_Rep_Item);
12152 pragma Inline (Next_Use_Clause);
12153 pragma Inline (No_Ctrl_Actions);
12154 pragma Inline (No_Elaboration_Check);
12155 pragma Inline (No_Entities_Ref_In_Spec);
12156 pragma Inline (No_Initialization);
12157 pragma Inline (No_Minimize_Eliminate);
12158 pragma Inline (No_Truncation);
12159 pragma Inline (Null_Present);
12160 pragma Inline (Null_Exclusion_Present);
12161 pragma Inline (Null_Exclusion_In_Return_Present);
12162 pragma Inline (Null_Record_Present);
12163 pragma Inline (Object_Definition);
12164 pragma Inline (Of_Present);
12165 pragma Inline (Original_Discriminant);
12166 pragma Inline (Original_Entity);
12167 pragma Inline (Others_Discrete_Choices);
12168 pragma Inline (Out_Present);
12169 pragma Inline (Parameter_Associations);
12170 pragma Inline (Parameter_Specifications);
12171 pragma Inline (Parameter_List_Truncated);
12172 pragma Inline (Parameter_Type);
12173 pragma Inline (Parent_Spec);
12174 pragma Inline (Position);
12175 pragma Inline (Pragma_Argument_Associations);
12176 pragma Inline (Pragma_Identifier);
12177 pragma Inline (Pragmas_After);
12178 pragma Inline (Pragmas_Before);
12179 pragma Inline (Pre_Post_Conditions);
12180 pragma Inline (Prefix);
12181 pragma Inline (Premature_Use);
12182 pragma Inline (Present_Expr);
12183 pragma Inline (Prev_Ids);
12184 pragma Inline (Print_In_Hex);
12185 pragma Inline (Private_Declarations);
12186 pragma Inline (Private_Present);
12187 pragma Inline (Procedure_To_Call);
12188 pragma Inline (Proper_Body);
12189 pragma Inline (Protected_Definition);
12190 pragma Inline (Protected_Present);
12191 pragma Inline (Raises_Constraint_Error);
12192 pragma Inline (Range_Constraint);
12193 pragma Inline (Range_Expression);
12194 pragma Inline (Real_Range_Specification);
12195 pragma Inline (Realval);
12196 pragma Inline (Reason);
12197 pragma Inline (Record_Extension_Part);
12198 pragma Inline (Redundant_Use);
12199 pragma Inline (Renaming_Exception);
12200 pragma Inline (Result_Definition);
12201 pragma Inline (Return_Object_Declarations);
12202 pragma Inline (Return_Statement_Entity);
12203 pragma Inline (Reverse_Present);
12204 pragma Inline (Right_Opnd);
12205 pragma Inline (Rounded_Result);
12206 pragma Inline (SCIL_Controlling_Tag);
12207 pragma Inline (SCIL_Entity);
12208 pragma Inline (SCIL_Tag_Value);
12209 pragma Inline (SCIL_Target_Prim);
12210 pragma Inline (Scope);
12211 pragma Inline (Select_Alternatives);
12212 pragma Inline (Selector_Name);
12213 pragma Inline (Selector_Names);
12214 pragma Inline (Shift_Count_OK);
12215 pragma Inline (Source_Type);
12216 pragma Inline (Specification);
12217 pragma Inline (Split_PPC);
12218 pragma Inline (Statements);
12219 pragma Inline (Storage_Pool);
12220 pragma Inline (Subpool_Handle_Name);
12221 pragma Inline (Strval);
12222 pragma Inline (Subtype_Indication);
12223 pragma Inline (Subtype_Mark);
12224 pragma Inline (Subtype_Marks);
12225 pragma Inline (Suppress_Assignment_Checks);
12226 pragma Inline (Suppress_Loop_Warnings);
12227 pragma Inline (Synchronized_Present);
12228 pragma Inline (Tagged_Present);
12229 pragma Inline (Target_Type);
12230 pragma Inline (Task_Definition);
12231 pragma Inline (Task_Present);
12232 pragma Inline (Then_Actions);
12233 pragma Inline (Then_Statements);
12234 pragma Inline (Triggering_Alternative);
12235 pragma Inline (Triggering_Statement);
12236 pragma Inline (Treat_Fixed_As_Integer);
12237 pragma Inline (TSS_Elist);
12238 pragma Inline (Type_Definition);
12239 pragma Inline (Unit);
12240 pragma Inline (Unknown_Discriminants_Present);
12241 pragma Inline (Unreferenced_In_Spec);
12242 pragma Inline (Variant_Part);
12243 pragma Inline (Variants);
12244 pragma Inline (Visible_Declarations);
12245 pragma Inline (Used_Operations);
12246 pragma Inline (Was_Originally_Stub);
12247 pragma Inline (Withed_Body);
12249 pragma Inline (Set_ABE_Is_Certain);
12250 pragma Inline (Set_Abort_Present);
12251 pragma Inline (Set_Abortable_Part);
12252 pragma Inline (Set_Abstract_Present);
12253 pragma Inline (Set_Accept_Handler_Records);
12254 pragma Inline (Set_Accept_Statement);
12255 pragma Inline (Set_Access_Definition);
12256 pragma Inline (Set_Access_To_Subprogram_Definition);
12257 pragma Inline (Set_Access_Types_To_Process);
12258 pragma Inline (Set_Actions);
12259 pragma Inline (Set_Activation_Chain_Entity);
12260 pragma Inline (Set_Acts_As_Spec);
12261 pragma Inline (Set_Actual_Designated_Subtype);
12262 pragma Inline (Set_Address_Warning_Posted);
12263 pragma Inline (Set_Aggregate_Bounds);
12264 pragma Inline (Set_Aliased_Present);
12265 pragma Inline (Set_All_Others);
12266 pragma Inline (Set_All_Present);
12267 pragma Inline (Set_Alternatives);
12268 pragma Inline (Set_Ancestor_Part);
12269 pragma Inline (Set_Array_Aggregate);
12270 pragma Inline (Set_Aspect_Rep_Item);
12271 pragma Inline (Set_Assignment_OK);
12272 pragma Inline (Set_Associated_Node);
12273 pragma Inline (Set_At_End_Proc);
12274 pragma Inline (Set_Atomic_Sync_Required);
12275 pragma Inline (Set_Attribute_Name);
12276 pragma Inline (Set_Aux_Decls_Node);
12277 pragma Inline (Set_Backwards_OK);
12278 pragma Inline (Set_Bad_Is_Detected);
12279 pragma Inline (Set_Body_Required);
12280 pragma Inline (Set_Body_To_Inline);
12281 pragma Inline (Set_Box_Present);
12282 pragma Inline (Set_By_Ref);
12283 pragma Inline (Set_Char_Literal_Value);
12284 pragma Inline (Set_Chars);
12285 pragma Inline (Set_Check_Address_Alignment);
12286 pragma Inline (Set_Choice_Parameter);
12287 pragma Inline (Set_Choices);
12288 pragma Inline (Set_Class_Present);
12289 pragma Inline (Set_Classifications);
12290 pragma Inline (Set_Comes_From_Extended_Return_Statement);
12291 pragma Inline (Set_Compile_Time_Known_Aggregate);
12292 pragma Inline (Set_Component_Associations);
12293 pragma Inline (Set_Component_Clauses);
12294 pragma Inline (Set_Component_Definition);
12295 pragma Inline (Set_Component_Items);
12296 pragma Inline (Set_Component_List);
12297 pragma Inline (Set_Component_Name);
12298 pragma Inline (Set_Componentwise_Assignment);
12299 pragma Inline (Set_Condition);
12300 pragma Inline (Set_Condition_Actions);
12301 pragma Inline (Set_Config_Pragmas);
12302 pragma Inline (Set_Constant_Present);
12303 pragma Inline (Set_Constraint);
12304 pragma Inline (Set_Constraints);
12305 pragma Inline (Set_Context_Installed);
12306 pragma Inline (Set_Context_Items);
12307 pragma Inline (Set_Context_Pending);
12308 pragma Inline (Set_Contract_Test_Cases);
12309 pragma Inline (Set_Controlling_Argument);
12310 pragma Inline (Set_Conversion_OK);
12311 pragma Inline (Set_Convert_To_Return_False);
12312 pragma Inline (Set_Corresponding_Aspect);
12313 pragma Inline (Set_Corresponding_Body);
12314 pragma Inline (Set_Corresponding_Formal_Spec);
12315 pragma Inline (Set_Corresponding_Generic_Association);
12316 pragma Inline (Set_Corresponding_Integer_Value);
12317 pragma Inline (Set_Corresponding_Spec);
12318 pragma Inline (Set_Corresponding_Stub);
12319 pragma Inline (Set_Dcheck_Function);
12320 pragma Inline (Set_Declarations);
12321 pragma Inline (Set_Default_Expression);
12322 pragma Inline (Set_Default_Name);
12323 pragma Inline (Set_Default_Storage_Pool);
12324 pragma Inline (Set_Defining_Identifier);
12325 pragma Inline (Set_Defining_Unit_Name);
12326 pragma Inline (Set_Delay_Alternative);
12327 pragma Inline (Set_Delay_Statement);
12328 pragma Inline (Set_Delta_Expression);
12329 pragma Inline (Set_Digits_Expression);
12330 pragma Inline (Set_Discr_Check_Funcs_Built);
12331 pragma Inline (Set_Discrete_Choices);
12332 pragma Inline (Set_Discrete_Range);
12333 pragma Inline (Set_Discrete_Subtype_Definition);
12334 pragma Inline (Set_Discrete_Subtype_Definitions);
12335 pragma Inline (Set_Discriminant_Specifications);
12336 pragma Inline (Set_Discriminant_Type);
12337 pragma Inline (Set_Do_Accessibility_Check);
12338 pragma Inline (Set_Do_Discriminant_Check);
12339 pragma Inline (Set_Do_Division_Check);
12340 pragma Inline (Set_Do_Length_Check);
12341 pragma Inline (Set_Do_Overflow_Check);
12342 pragma Inline (Set_Do_Range_Check);
12343 pragma Inline (Set_Do_Storage_Check);
12344 pragma Inline (Set_Do_Tag_Check);
12345 pragma Inline (Set_Elaborate_All_Desirable);
12346 pragma Inline (Set_Elaborate_All_Present);
12347 pragma Inline (Set_Elaborate_Desirable);
12348 pragma Inline (Set_Elaborate_Present);
12349 pragma Inline (Set_Elaboration_Boolean);
12350 pragma Inline (Set_Else_Actions);
12351 pragma Inline (Set_Else_Statements);
12352 pragma Inline (Set_Elsif_Parts);
12353 pragma Inline (Set_Enclosing_Variant);
12354 pragma Inline (Set_End_Label);
12355 pragma Inline (Set_End_Span);
12356 pragma Inline (Set_Entity);
12357 pragma Inline (Set_Entry_Body_Formal_Part);
12358 pragma Inline (Set_Entry_Call_Alternative);
12359 pragma Inline (Set_Entry_Call_Statement);
12360 pragma Inline (Set_Entry_Direct_Name);
12361 pragma Inline (Set_Entry_Index);
12362 pragma Inline (Set_Entry_Index_Specification);
12363 pragma Inline (Set_Etype);
12364 pragma Inline (Set_Exception_Choices);
12365 pragma Inline (Set_Exception_Handlers);
12366 pragma Inline (Set_Exception_Junk);
12367 pragma Inline (Set_Exception_Label);
12368 pragma Inline (Set_Expansion_Delayed);
12369 pragma Inline (Set_Explicit_Actual_Parameter);
12370 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
12371 pragma Inline (Set_Expression);
12372 pragma Inline (Set_Expressions);
12373 pragma Inline (Set_First_Bit);
12374 pragma Inline (Set_First_Inlined_Subprogram);
12375 pragma Inline (Set_First_Name);
12376 pragma Inline (Set_First_Named_Actual);
12377 pragma Inline (Set_First_Real_Statement);
12378 pragma Inline (Set_First_Subtype_Link);
12379 pragma Inline (Set_Float_Truncate);
12380 pragma Inline (Set_Formal_Type_Definition);
12381 pragma Inline (Set_Forwards_OK);
12382 pragma Inline (Set_From_Aspect_Specification);
12383 pragma Inline (Set_From_At_End);
12384 pragma Inline (Set_From_At_Mod);
12385 pragma Inline (Set_From_Default);
12386 pragma Inline (Set_Generic_Associations);
12387 pragma Inline (Set_Generic_Formal_Declarations);
12388 pragma Inline (Set_Generic_Parent);
12389 pragma Inline (Set_Generic_Parent_Type);
12390 pragma Inline (Set_Handled_Statement_Sequence);
12391 pragma Inline (Set_Handler_List_Entry);
12392 pragma Inline (Set_Has_Created_Identifier);
12393 pragma Inline (Set_Has_Dereference_Action);
12394 pragma Inline (Set_Has_Dynamic_Length_Check);
12395 pragma Inline (Set_Has_Dynamic_Range_Check);
12396 pragma Inline (Set_Has_Init_Expression);
12397 pragma Inline (Set_Has_Local_Raise);
12398 pragma Inline (Set_Has_No_Elaboration_Code);
12399 pragma Inline (Set_Has_Pragma_Suppress_All);
12400 pragma Inline (Set_Has_Private_View);
12401 pragma Inline (Set_Has_Relative_Deadline_Pragma);
12402 pragma Inline (Set_Has_Self_Reference);
12403 pragma Inline (Set_Has_Storage_Size_Pragma);
12404 pragma Inline (Set_Has_Wide_Character);
12405 pragma Inline (Set_Has_Wide_Wide_Character);
12406 pragma Inline (Set_Header_Size_Added);
12407 pragma Inline (Set_Hidden_By_Use_Clause);
12408 pragma Inline (Set_High_Bound);
12409 pragma Inline (Set_Identifier);
12410 pragma Inline (Set_Implicit_With);
12411 pragma Inline (Set_Import_Interface_Present);
12412 pragma Inline (Set_In_Assertion_Expression);
12413 pragma Inline (Set_In_Present);
12414 pragma Inline (Set_Includes_Infinities);
12415 pragma Inline (Set_Inherited_Discriminant);
12416 pragma Inline (Set_Instance_Spec);
12417 pragma Inline (Set_Interface_List);
12418 pragma Inline (Set_Interface_Present);
12419 pragma Inline (Set_Intval);
12420 pragma Inline (Set_Is_Accessibility_Actual);
12421 pragma Inline (Set_Is_Asynchronous_Call_Block);
12422 pragma Inline (Set_Is_Boolean_Aspect);
12423 pragma Inline (Set_Is_Component_Left_Opnd);
12424 pragma Inline (Set_Is_Component_Right_Opnd);
12425 pragma Inline (Set_Is_Controlling_Actual);
12426 pragma Inline (Set_Is_Delayed_Aspect);
12427 pragma Inline (Set_Is_Disabled);
12428 pragma Inline (Set_Is_Dynamic_Coextension);
12429 pragma Inline (Set_Is_Elsif);
12430 pragma Inline (Set_Is_Entry_Barrier_Function);
12431 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
12432 pragma Inline (Set_Is_Finalization_Wrapper);
12433 pragma Inline (Set_Is_Folded_In_Parser);
12434 pragma Inline (Set_Is_Ignored);
12435 pragma Inline (Set_Is_In_Discriminant_Check);
12436 pragma Inline (Set_Is_Machine_Number);
12437 pragma Inline (Set_Is_Null_Loop);
12438 pragma Inline (Set_Is_Overloaded);
12439 pragma Inline (Set_Is_Power_Of_2_For_Shift);
12440 pragma Inline (Set_Is_Prefixed_Call);
12441 pragma Inline (Set_Is_Protected_Subprogram_Body);
12442 pragma Inline (Set_Is_Static_Coextension);
12443 pragma Inline (Set_Is_Static_Expression);
12444 pragma Inline (Set_Is_Subprogram_Descriptor);
12445 pragma Inline (Set_Is_Task_Allocation_Block);
12446 pragma Inline (Set_Is_Task_Master);
12447 pragma Inline (Set_Iteration_Scheme);
12448 pragma Inline (Set_Iterator_Specification);
12449 pragma Inline (Set_Itype);
12450 pragma Inline (Set_Kill_Range_Check);
12451 pragma Inline (Set_Label_Construct);
12452 pragma Inline (Set_Last_Bit);
12453 pragma Inline (Set_Last_Name);
12454 pragma Inline (Set_Left_Opnd);
12455 pragma Inline (Set_Library_Unit);
12456 pragma Inline (Set_Limited_Present);
12457 pragma Inline (Set_Limited_View_Installed);
12458 pragma Inline (Set_Literals);
12459 pragma Inline (Set_Local_Raise_Not_OK);
12460 pragma Inline (Set_Local_Raise_Statements);
12461 pragma Inline (Set_Loop_Actions);
12462 pragma Inline (Set_Loop_Parameter_Specification);
12463 pragma Inline (Set_Low_Bound);
12464 pragma Inline (Set_Mod_Clause);
12465 pragma Inline (Set_More_Ids);
12466 pragma Inline (Set_Must_Be_Byte_Aligned);
12467 pragma Inline (Set_Must_Not_Freeze);
12468 pragma Inline (Set_Must_Not_Override);
12469 pragma Inline (Set_Must_Override);
12470 pragma Inline (Set_Name);
12471 pragma Inline (Set_Names);
12472 pragma Inline (Set_Next_Entity);
12473 pragma Inline (Set_Next_Exit_Statement);
12474 pragma Inline (Set_Next_Implicit_With);
12475 pragma Inline (Set_Next_Named_Actual);
12476 pragma Inline (Set_Next_Pragma);
12477 pragma Inline (Set_Next_Rep_Item);
12478 pragma Inline (Set_Next_Use_Clause);
12479 pragma Inline (Set_No_Ctrl_Actions);
12480 pragma Inline (Set_No_Elaboration_Check);
12481 pragma Inline (Set_No_Entities_Ref_In_Spec);
12482 pragma Inline (Set_No_Initialization);
12483 pragma Inline (Set_No_Minimize_Eliminate);
12484 pragma Inline (Set_No_Truncation);
12485 pragma Inline (Set_Null_Exclusion_Present);
12486 pragma Inline (Set_Null_Exclusion_In_Return_Present);
12487 pragma Inline (Set_Null_Present);
12488 pragma Inline (Set_Null_Record_Present);
12489 pragma Inline (Set_Object_Definition);
12490 pragma Inline (Set_Of_Present);
12491 pragma Inline (Set_Original_Discriminant);
12492 pragma Inline (Set_Original_Entity);
12493 pragma Inline (Set_Others_Discrete_Choices);
12494 pragma Inline (Set_Out_Present);
12495 pragma Inline (Set_Parameter_Associations);
12496 pragma Inline (Set_Parameter_List_Truncated);
12497 pragma Inline (Set_Parameter_Specifications);
12498 pragma Inline (Set_Parameter_Type);
12499 pragma Inline (Set_Parent_Spec);
12500 pragma Inline (Set_Position);
12501 pragma Inline (Set_Pragma_Argument_Associations);
12502 pragma Inline (Set_Pragma_Identifier);
12503 pragma Inline (Set_Pragmas_After);
12504 pragma Inline (Set_Pragmas_Before);
12505 pragma Inline (Set_Pre_Post_Conditions);
12506 pragma Inline (Set_Prefix);
12507 pragma Inline (Set_Premature_Use);
12508 pragma Inline (Set_Present_Expr);
12509 pragma Inline (Set_Prev_Ids);
12510 pragma Inline (Set_Print_In_Hex);
12511 pragma Inline (Set_Private_Declarations);
12512 pragma Inline (Set_Private_Present);
12513 pragma Inline (Set_Procedure_To_Call);
12514 pragma Inline (Set_Proper_Body);
12515 pragma Inline (Set_Protected_Definition);
12516 pragma Inline (Set_Protected_Present);
12517 pragma Inline (Set_Raises_Constraint_Error);
12518 pragma Inline (Set_Range_Constraint);
12519 pragma Inline (Set_Range_Expression);
12520 pragma Inline (Set_Real_Range_Specification);
12521 pragma Inline (Set_Realval);
12522 pragma Inline (Set_Reason);
12523 pragma Inline (Set_Record_Extension_Part);
12524 pragma Inline (Set_Redundant_Use);
12525 pragma Inline (Set_Renaming_Exception);
12526 pragma Inline (Set_Result_Definition);
12527 pragma Inline (Set_Return_Object_Declarations);
12528 pragma Inline (Set_Reverse_Present);
12529 pragma Inline (Set_Right_Opnd);
12530 pragma Inline (Set_Rounded_Result);
12531 pragma Inline (Set_SCIL_Controlling_Tag);
12532 pragma Inline (Set_SCIL_Entity);
12533 pragma Inline (Set_SCIL_Tag_Value);
12534 pragma Inline (Set_SCIL_Target_Prim);
12535 pragma Inline (Set_Scope);
12536 pragma Inline (Set_Select_Alternatives);
12537 pragma Inline (Set_Selector_Name);
12538 pragma Inline (Set_Selector_Names);
12539 pragma Inline (Set_Shift_Count_OK);
12540 pragma Inline (Set_Source_Type);
12541 pragma Inline (Set_Split_PPC);
12542 pragma Inline (Set_Statements);
12543 pragma Inline (Set_Storage_Pool);
12544 pragma Inline (Set_Strval);
12545 pragma Inline (Set_Subpool_Handle_Name);
12546 pragma Inline (Set_Subtype_Indication);
12547 pragma Inline (Set_Subtype_Mark);
12548 pragma Inline (Set_Subtype_Marks);
12549 pragma Inline (Set_Suppress_Assignment_Checks);
12550 pragma Inline (Set_Suppress_Loop_Warnings);
12551 pragma Inline (Set_Synchronized_Present);
12552 pragma Inline (Set_TSS_Elist);
12553 pragma Inline (Set_Tagged_Present);
12554 pragma Inline (Set_Target_Type);
12555 pragma Inline (Set_Task_Definition);
12556 pragma Inline (Set_Task_Present);
12557 pragma Inline (Set_Then_Actions);
12558 pragma Inline (Set_Then_Statements);
12559 pragma Inline (Set_Treat_Fixed_As_Integer);
12560 pragma Inline (Set_Triggering_Alternative);
12561 pragma Inline (Set_Triggering_Statement);
12562 pragma Inline (Set_Type_Definition);
12563 pragma Inline (Set_Unit);
12564 pragma Inline (Set_Unknown_Discriminants_Present);
12565 pragma Inline (Set_Unreferenced_In_Spec);
12566 pragma Inline (Set_Used_Operations);
12567 pragma Inline (Set_Variant_Part);
12568 pragma Inline (Set_Variants);
12569 pragma Inline (Set_Visible_Declarations);
12570 pragma Inline (Set_Was_Originally_Stub);
12571 pragma Inline (Set_Withed_Body);
12573 end Sinfo;