1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2006, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 2, 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. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING. If not, write --
19 -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
20 -- Boston, MA 02110-1301, USA. --
22 -- As a special exception, if other files instantiate generics from this --
23 -- unit, or you link this unit with other files to produce an executable, --
24 -- this unit does not by itself cause the resulting executable to be --
25 -- covered by the GNU General Public License. This exception does not --
26 -- however invalidate any other reasons why the executable file might be --
27 -- covered by the GNU Public License. --
29 -- GNAT was originally developed by the GNAT team at New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc. --
32 ------------------------------------------------------------------------------
34 -- This package defines the structure of the abstract syntax tree. The Tree
35 -- package provides a basic tree structure. Sinfo describes how this structure
36 -- is used to represent the syntax of an Ada program.
38 -- The grammar in the RM is followed very closely in the tree
39 -- design, and is repeated as part of this source file.
41 -- The tree contains not only the full syntactic representation of the
42 -- program, but also the results of semantic analysis. In particular, the
43 -- nodes for defining identifiers, defining character literals and defining
44 -- operator symbols, collectively referred to as entities, represent what
45 -- would normally be regarded as the symbol table information. In addition a
46 -- number of the tree nodes contain semantic information.
48 -- WARNING: Several files are automatically generated from this package.
49 -- See below for details.
51 with Types
; use Types
;
52 with Uintp
; use Uintp
;
53 with Urealp
; use Urealp
;
57 ---------------------------------
58 -- Making Changes to This File --
59 ---------------------------------
61 -- If changes are made to this file, a number of related steps must be
62 -- carried out to ensure consistency. First, if a field access function is
63 -- added, it appears in seven places:
65 -- The documentation associated with the node
66 -- The spec of the access function in sinfo.ads
67 -- The body of the access function in sinfo.adb
68 -- The pragma Inline at the end of sinfo.ads for the access function
69 -- The spec of the set procedure in sinfo.ads
70 -- The body of the set procedure in sinfo.adb
71 -- The pragma Inline at the end of sinfo.ads for the set procedure
73 -- The field chosen must be consistent in all places, and, for a node that
74 -- is a subexpression, must not overlap any of the standard expression
77 -- In addition, if any of the standard expression fields is changed, then
78 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
79 -- must be updated appropriately, since it special cases expression fields.
81 -- If a new tree node is added, then the following changes are made
83 -- Add it to the documentation in the appropriate place
84 -- Add its fields to this documentation section
85 -- Define it in the appropriate classification in Node_Kind
86 -- In the body (sinfo), add entries to the access functions for all
87 -- its fields (except standard expression fields) to include the new
88 -- node in the checks.
89 -- Add an appropriate section to the case statement in sprint.adb
90 -- Add an appropriate section to the case statement in sem.adb
91 -- Add an appropriate section to the case statement in exp_util.adb
92 -- (Insert_Actions procedure)
93 -- For a subexpression, add an appropriate section to the case
94 -- statement in sem_eval.adb
95 -- For a subexpression, add an appropriate section to the case
96 -- statement in sem_res.adb
98 -- Finally, four utility programs must be run:
100 -- Run CSinfo to check that you have made the changes consistently. It
101 -- checks most of the rules given above, with clear error messages. This
102 -- utility reads sinfo.ads and sinfo.adb and generates a report to
105 -- Run XSinfo to create sinfo.h, the corresponding C header. This
106 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
107 -- not need to read sinfo.adb, since the contents of the body are
108 -- algorithmically determinable from the spec.
110 -- Run XTreeprs to create treeprs.ads, an updated version of the module
111 -- that is used to drive the tree print routine. This utility reads (but
112 -- does not modify) treeprs.adt, the template that provides the basic
113 -- structure of the file, and then fills in the data from the comments
116 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
117 -- spec of the Nmake package which contains functions for constructing
120 -- All of the above steps except CSinfo are done automatically by the
121 -- build scripts when you do a full bootstrap.
123 -- Note: sometime we could write a utility that actually generated the body
124 -- of sinfo from the spec instead of simply checking it, since, as noted
125 -- above, the contents of the body can be determined from the spec.
127 --------------------------------
128 -- Implicit Nodes in the Tree --
129 --------------------------------
131 -- Generally the structure of the tree very closely follows the grammar as
132 -- defined in the RM. However, certain nodes are omitted to save space and
133 -- simplify semantic processing. Two general classes of such omitted nodes
136 -- If the only possibilities for a non-terminal are one or more other
137 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
138 -- corresponding node is omitted from the tree, and the target construct
139 -- appears directly. For example, a real type definition is either
140 -- floating point definition or a fixed point definition. No explicit node
141 -- appears for real type definition. Instead either the floating point
142 -- definition or fixed point definition appears directly.
144 -- If a non-terminal corresponds to a list of some other non-terminal
145 -- (possibly with separating punctuation), then usually it is omitted from
146 -- the tree, and a list of components appears instead. For example,
147 -- sequence of statements does not appear explicitly in the tree. Instead
148 -- a list of statements appears directly.
150 -- Some additional cases of omitted nodes occur and are documented
151 -- individually. In particular, many nodes are omitted in the tree
152 -- generated for an expression.
154 -------------------------------------------
155 -- Handling of Defining Identifier Lists --
156 -------------------------------------------
158 -- In several declarative forms in the syntax, lists of defining
159 -- identifiers appear (object declarations, component declarations, number
160 -- declarations etc.)
162 -- The semantics of such statements are equivalent to a series of identical
163 -- declarations of single defining identifiers (except that conformance
164 -- checks require the same grouping of identifiers in the parameter case).
166 -- To simplify semantic processing, the parser breaks down such multiple
167 -- declaration cases into sequences of single declarations, duplicating
168 -- type and initialization information as required. The flags More_Ids and
169 -- Prev_Ids are used to record the original form of the source in the case
170 -- where the original source used a list of names, More_Ids being set on
171 -- all but the last name and Prev_Ids being set on all but the first name.
172 -- These flags are used to reconstruct the original source (e.g. in the
173 -- Sprint package), and also are included in the conformance checks, but
174 -- otherwise have no semantic significance.
176 -- Note: the reason that we use More_Ids and Prev_Ids rather than
177 -- First_Name and Last_Name flags is so that the flags are off in the
178 -- normal one identifier case, which minimizes tree print output.
180 -----------------------
181 -- Use of Node Lists --
182 -----------------------
184 -- With a few exceptions, if a construction of the form {non-terminal}
185 -- appears in the tree, lists are used in the corresponding tree node (see
186 -- package Nlists for handling of node lists). In this case a field of the
187 -- parent node points to a list of nodes for the non-terminal. The field
188 -- name for such fields has a plural name which always ends in "s". For
189 -- example, a case statement has a field Alternatives pointing to list of
190 -- case statement alternative nodes.
192 -- Only fields pointing to lists have names ending in "s", so generally the
193 -- structure is strongly typed, fields not ending in s point to single
194 -- nodes, and fields ending in s point to lists.
196 -- The following example shows how a traversal of a list is written. We
197 -- suppose here that Stmt points to a N_Case_Statement node which has a
198 -- list field called Alternatives:
200 -- Alt := First (Alternatives (Stmt));
201 -- while Present (Alt) loop
203 -- -- processing for case statement alternative Alt
205 -- Alt := Next (Alt);
208 -- The Present function tests for Empty, which in this case signals the end
209 -- of the list. First returns Empty immediately if the list is empty.
210 -- Present is defined in Atree, First and Next are defined in Nlists.
212 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
213 -- contexts, which is handled as described in the previous section, and
214 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
215 -- using the First_Name and Last_Name flags, as further detailed in the
216 -- description of the N_With_Clause node.
222 -- Pragmas can appear in many different context, but are not included in
223 -- the grammar. Still they must appear in the tree, so they can be properly
226 -- Two approaches are used. In some cases, an extra field is defined in an
227 -- appropriate node that contains a list of pragmas appearing in the
228 -- expected context. For example pragmas can appear before an
229 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
230 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
232 -- The other approach is to simply allow pragmas to appear in syntactic
233 -- lists where the grammar (of course) does not include the possibility.
234 -- For example, the Variants field of an N_Variant_Part node points to a
235 -- list that can contain both N_Pragma and N_Variant nodes.
237 -- To make processing easier in the latter case, the Nlists package
238 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
239 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
240 -- ignoring all pragmas.
242 -- In the case of the variants list, we can either write:
244 -- Variant := First (Variants (N));
245 -- while Present (Variant) loop
247 -- Variant := Next (Variant);
252 -- Variant := First_Non_Pragma (Variants (N));
253 -- while Present (Variant) loop
255 -- Variant := Next_Non_Pragma (Variant);
258 -- In the first form of the loop, Variant can either be an N_Pragma or an
259 -- N_Variant node. In the second form, Variant can only be N_Variant since
260 -- all pragmas are skipped.
262 ---------------------
263 -- Optional Fields --
264 ---------------------
266 -- Fields which correspond to a section of the syntax enclosed in square
267 -- brackets are generally omitted (and the corresponding field set to Empty
268 -- for a node, or No_List for a list). The documentation of such fields
269 -- notes these cases. One exception to this rule occurs in the case of
270 -- possibly empty statement sequences (such as the sequence of statements
271 -- in an entry call alternative). Such cases appear in the syntax rules as
272 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
273 -- statement sequences always contain an empty list (not No_List) if no
274 -- statements are present.
276 -- Note: the utility program that constructs the body and spec of the Nmake
277 -- package relies on the format of the comments to determine if a field
278 -- should have a default value in the corresponding make routine. The rule
279 -- is that if the first line of the description of the field contains the
280 -- string "(set to xxx if", then a default value of xxx is provided for
281 -- this field in the corresponding Make_yyy routine.
283 -----------------------------------
284 -- Note on Body/Spec Terminology --
285 -----------------------------------
287 -- In informal discussions about Ada, it is customary to refer to package
288 -- and subprogram specs and bodies. However, this is not technically
289 -- correct, what is normally referred to as a spec or specification is in
290 -- fact a package declaration or subprogram declaration. We are careful in
291 -- GNAT to use the correct terminology and in particular, the full word
292 -- specification is never used as an incorrect substitute for declaration.
293 -- The structure and terminology used in the tree also reflects the grammar
294 -- and thus uses declaration and specification in the technically correct
297 -- However, there are contexts in which the informal terminology is useful.
298 -- We have the word "body" to refer to the Interp_Etype declared by the
299 -- declaration of a unit body, and in some contexts we need similar term to
300 -- refer to the entity declared by the package or subprogram declaration,
301 -- and simply using declaration can be confusing since the body also has a
304 -- An example of such a context is the link between the package body and
305 -- its declaration. With_Declaration is confusing, since the package body
306 -- itself is a declaration.
308 -- To deal with this problem, we reserve the informal term Spec, i.e. the
309 -- popular abbreviation used in this context, to refer to the entity
310 -- declared by the package or subprogram declaration. So in the above
311 -- example case, the field in the body is called With_Spec.
313 -- Another important context for the use of the word Spec is in error
314 -- messages, where a hyper-correct use of declaration would be confusing to
315 -- a typical Ada programmer, and even for an expert programmer can cause
316 -- confusion since the body has a declaration as well.
320 -- Declaration always refers to the syntactic entity that is called
321 -- a declaration. In particular, subprogram declaration
322 -- and package declaration are used to describe the
323 -- syntactic entity that includes the semicolon.
325 -- Specification always refers to the syntactic entity that is called
326 -- a specification. In particular, the terms procedure
327 -- specification, function specification, package
328 -- specification, subprogram specification always refer
329 -- to the syntactic entity that has no semicolon.
331 -- Spec is an informal term, used to refer to the entity
332 -- that is declared by a task declaration, protected
333 -- declaration, generic declaration, subprogram
334 -- declaration or package declaration.
336 -- This convention is followed throughout the GNAT documentation
337 -- both internal and external, and in all error message text.
339 ------------------------
340 -- Internal Use Nodes --
341 ------------------------
343 -- These are Node_Kind settings used in the internal implementation which
344 -- are not logically part of the specification.
347 -- Completely unused entry at the start of the enumeration type. This
348 -- is inserted so that no legitimate value is zero, which helps to get
349 -- better debugging behavior, since zero is a likely uninitialized value).
352 -- Completely unused entry at the end of the enumeration type. This is
353 -- handy so that arrays with Node_Kind as the index type have an extra
354 -- entry at the end (see for example the use of the Pchar_Pos_Array in
355 -- Treepr, where the extra entry provides the limit value when dealing with
356 -- the last used entry in the array).
358 -----------------------------------------
359 -- Note on the settings of Sloc fields --
360 -----------------------------------------
362 -- The Sloc field of nodes that come from the source is set by the parser.
363 -- For internal nodes, and nodes generated during expansion the Sloc is
364 -- usually set in the call to the constructor for the node. In general the
365 -- Sloc value chosen for an internal node is the Sloc of the source node
366 -- whose processing is responsible for the expansion. For example, the Sloc
367 -- of an inherited primitive operation is the Sloc of the corresponding
368 -- derived type declaration.
370 -- For the nodes of a generic instantiation, the Sloc value is encoded to
371 -- represent both the original Sloc in the generic unit, and the Sloc of
372 -- the instantiation itself. See Sinput.ads for details.
374 -- Subprogram instances create two callable entities: one is the visible
375 -- subprogram instance, and the other is an anonymous subprogram nested
376 -- within a wrapper package that contains the renamings for the actuals.
377 -- Both of these entities have the Sloc of the defining entity in the
378 -- instantiation node. This simplifies some ASIS queries.
380 -----------------------
381 -- Field Definitions --
382 -----------------------
384 -- In the following node definitions, all fields, both syntactic and
385 -- semantic, are documented. The one exception is in the case of entities
386 -- (defining indentifiers, character literals and operator symbols), where
387 -- the usage of the fields depends on the entity kind. Entity fields are
388 -- fully documented in the separate package Einfo.
390 -- In the node definitions, three common sets of fields are abbreviated to
391 -- save both space in the documentation, and also space in the string
392 -- (defined in Tree_Print_Strings) used to print trees. The following
393 -- abbreviations are used:
395 -- Note: the utility program that creates the Treeprs spec (in the file
396 -- xtreeprs.adb) knows about the special fields here, so it must be
397 -- modified if any change is made to these fields.
399 -- "plus fields for binary operator"
400 -- Chars (Name1) Name_Id for the operator
401 -- Left_Opnd (Node2) left operand expression
402 -- Right_Opnd (Node3) right operand expression
403 -- Entity (Node4-Sem) defining entity for operator
404 -- Associated_Node (Node4-Sem) for generic processing
405 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
406 -- Has_Private_View (Flag11-Sem) set in generic units.
408 -- "plus fields for unary operator"
409 -- Chars (Name1) Name_Id for the operator
410 -- Right_Opnd (Node3) right operand expression
411 -- Entity (Node4-Sem) defining entity for operator
412 -- Associated_Node (Node4-Sem) for generic processing
413 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
414 -- Has_Private_View (Flag11-Sem) set in generic units.
416 -- "plus fields for expression"
417 -- Paren_Count number of parentheses levels
418 -- Etype (Node5-Sem) type of the expression
419 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
420 -- Is_Static_Expression (Flag6-Sem) set for static expression
421 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
422 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
423 -- Do_Range_Check (Flag9-Sem) set if a range check needed
424 -- Assignment_OK (Flag15-Sem) set if modification is OK
425 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
427 -- Note: see under (EXPRESSION) for further details on the use of
428 -- the Paren_Count field to record the number of parentheses levels.
430 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
431 -- The actual definition of this type is given later (the reason for this
432 -- is that we want the descriptions ordered by logical chapter in the RM,
433 -- but the type definition is reordered to facilitate the definition of
434 -- some subtype ranges. The individual descriptions of the nodes show how
435 -- the various fields are used in each node kind, as well as providing
436 -- logical names for the fields. Functions and procedures are provided for
437 -- accessing and setting these fields using these logical names.
439 -----------------------
440 -- Gigi Restrictions --
441 -----------------------
443 -- The tree passed to Gigi is more restricted than the general tree form.
444 -- For example, as a result of expansion, most of the tasking nodes can
445 -- never appear. For each node to which either a complete or partial
446 -- restriction applies, a note entitled "Gigi restriction" appears which
447 -- documents the restriction.
449 -- Note that most of these restrictions apply only to trees generated when
450 -- code is being generated, since they involved expander actions that
453 ------------------------
454 -- Common Flag Fields --
455 ------------------------
457 -- The following flag fields appear in all nodes
460 -- This flag is used to indicate that a node (and all its children have
461 -- been analyzed. It is used to avoid reanalysis of a node that has
462 -- already been analyzed, both for efficiency and functional correctness
465 -- Comes_From_Source (Flag2)
466 -- This flag is on for any nodes built by the scanner or parser from the
467 -- source program, and off for any nodes built by the analyzer or
468 -- expander. It indicates that a node comes from the original source.
469 -- This flag is defined in Atree.
471 -- Error_Posted (Flag3)
472 -- This flag is used to avoid multiple error messages being posted on or
473 -- referring to the same node. This flag is set if an error message
474 -- refers to a node or is posted on its source location, and has the
475 -- effect of inhibiting further messages involving this same node.
477 -- Has_Dynamic_Length_Check (Flag10-Sem)
478 -- This flag is present on all nodes. It is set to indicate that one of
479 -- the routines in unit Checks has generated a length check action which
480 -- has been inserted at the flagged node. This is used to avoid the
481 -- generation of duplicate checks.
483 -- Has_Dynamic_Range_Check (Flag12-Sem)
484 -- This flag is present on all nodes. It is set to indicate that one of
485 -- the routines in unit Checks has generated a range check action which
486 -- has been inserted at the flagged node. This is used to avoid the
487 -- generation of duplicate checks.
489 ------------------------------------
490 -- Description of Semantic Fields --
491 ------------------------------------
493 -- The meaning of the syntactic fields is generally clear from their names
494 -- without any further description, since the names are chosen to
495 -- correspond very closely to the syntax in the reference manual. This
496 -- section describes the usage of the semantic fields, which are used to
497 -- contain additional information determined during semantic analysis.
499 -- ABE_Is_Certain (Flag18-Sem)
500 -- This flag is set in an instantiation node or a call node is determined
501 -- to be sure to raise an ABE. This is used to trigger special handling
502 -- of such cases, particularly in the instantiation case where we avoid
503 -- instantiating the body if this flag is set. This flag is also present
504 -- in an N_Formal_Package_Declaration_Node since formal package
505 -- declarations are treated like instantiations, but it is always set to
506 -- False in this context.
508 -- Accept_Handler_Records (List5-Sem)
509 -- This field is present only in an N_Accept_Alternative node. It is used
510 -- to temporarily hold the exception handler records from an accept
511 -- statement in a selective accept. These exception handlers will
512 -- eventually be placed in the Handler_Records list of the procedure
513 -- built for this accept (see Expand_N_Selective_Accept procedure in
514 -- Exp_Ch9 for further details).
516 -- Access_Types_To_Process (Elist2-Sem)
517 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
518 -- Contains the list of access types which may require specific treatment
519 -- when the nature of the type completion is completely known. An example
520 -- of such treatement is the generation of the associated_final_chain.
522 -- Actions (List1-Sem)
523 -- This field contains a sequence of actions that are associated with the
524 -- node holding the field. See the individual node types for details of
525 -- how this field is used, as well as the description of the specific use
526 -- for a particular node type.
528 -- Activation_Chain_Entity (Node3-Sem)
529 -- This is used in tree nodes representing task activators (blocks,
530 -- subprogram bodies, package declarations, and task bodies). It is
531 -- initially Empty, and then gets set to point to the entity for the
532 -- declared Activation_Chain variable when the first task is declared.
533 -- When tasks are declared in the corresponding declarative region this
534 -- entity is located by name (its name is always _Chain) and the declared
535 -- tasks are added to the chain.
537 -- Acts_As_Spec (Flag4-Sem)
538 -- A flag set in the N_Subprogram_Body node for a subprogram body which
539 -- is acting as its own spec. This flag also appears in the compilation
540 -- unit node at the library level for such a subprogram (see further
541 -- description in spec of Lib package).
543 -- Actual_Designated_Subtype (Node4-Sem)
544 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
545 -- needs to known the dynamic constrained subtype of the designated
546 -- object, this attribute is set to that type. This is done for
547 -- N_Free_Statements for access-to-classwide types and access to
548 -- unconstrained packed array types, and for N_Explicit_Dereference when
549 -- the designated type is an unconstrained packed array and the
550 -- dereference is the prefix of a 'Size attribute reference.
552 -- Aggregate_Bounds (Node3-Sem)
553 -- Present in array N_Aggregate nodes. If the aggregate contains
554 -- component associations this field points to an N_Range node whose
555 -- bounds give the lowest and highest discrete choice values. If the
556 -- named aggregate contains a dynamic or null choice this field is empty.
557 -- If the aggregate contains positional elements this field points to an
558 -- N_Integer_Literal node giving the number of positional elements. Note
559 -- that if the aggregate contains positional elements and an other choice
560 -- the N_Integer_Literal only accounts for the number of positional
563 -- All_Others (Flag11-Sem)
564 -- Present in an N_Others_Choice node. This flag is set in the case of an
565 -- others exception where all exceptions are to be caught, even those
566 -- that are not normally handled (in particular the tasking abort
567 -- signal). This is used for translation of the at end handler into a
568 -- normal exception handler.
570 -- Assignment_OK (Flag15-Sem)
571 -- This flag is set in a subexpression node for an object, indicating
572 -- that the associated object can be modified, even if this would not
573 -- normally be permissible (either by direct assignment, or by being
574 -- passed as an out or in-out parameter). This is used by the expander
575 -- for a number of purposes, including initialzation of constants and
576 -- limited type objects (such as tasks), setting discriminant fields,
577 -- setting tag values, etc. N_Object_Declaration nodes also have this
578 -- flag defined. Here it is used to indicate that an initialization
579 -- expression is valid, even where it would normally not be allowed (e.g.
580 -- where the type involved is limited).
582 -- Associated_Node (Node4-Sem)
583 -- Present in nodes that can denote an entity: identifiers, character
584 -- literals, operator symbols, expanded names, operator nodes, and
585 -- attribute reference nodes (all these nodes have an Entity field). This
586 -- field is also present in N_Aggregate, N_Selected_Component, and
587 -- N_Extension_Aggregate nodes. This field is used in generic processing
588 -- to create links between the generic template and the generic copy. See
589 -- Sem_Ch12.Get_Associated_Node for full details. Note that this field
590 -- overlaps Entity, which is fine, since, as explained in Sem_Ch12, the
591 -- normal function of Entity is not required at the point where the
592 -- Associated_Node is set. Note also, that in generic templates, this
593 -- means that the Entity field does not necessarily point to an Entity.
594 -- Since the back end is expected to ignore generic templates, this is
597 -- At_End_Proc (Node1)
598 -- This field is present in an N_Handled_Sequence_Of_Statements node. It
599 -- contains an identifier reference for the cleanup procedure to be
600 -- called. See description of this node for further details.
602 -- Backwards_OK (Flag6-Sem)
603 -- A flag present in the N_Assignment_Statement node. It is used only if
604 -- the type being assigned is an array type, and is set if analysis
605 -- determines that it is definitely safe to do the copy backwards, i.e.
606 -- starting at the highest addressed element. Note that if neither of the
607 -- flags Forwards_OK or Backwards_OK is set, it means that the front end
608 -- could not determine that either direction is definitely safe, and a
609 -- runtime check is required.
611 -- Body_To_Inline (Node3-Sem)
612 -- present in subprogram declarations. Denotes analyzed but unexpanded
613 -- body of subprogram, to be used when inlining calls. Present when the
614 -- subprogram has an Inline pragma and inlining is enabled. If the
615 -- declaration is completed by a renaming_as_body, and the renamed en-
616 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
617 -- which is used directly in later calls to the original subprogram.
619 -- Body_Required (Flag13-Sem)
620 -- A flag that appears in the N_Compilation_Unit node indicating that the
621 -- corresponding unit requires a body. For the package case, this
622 -- indicates that a completion is required. In Ada 95, if the flag is not
623 -- set for the package case, then a body may not be present. In Ada 83,
624 -- if the flag is not set for the package case, then body is optional.
625 -- For a subprogram declaration, the flag is set except in the case where
626 -- a pragma Import or Interface applies, in which case no body is
627 -- permitted (in Ada 83 or Ada 95).
629 -- By_Ref (Flag5-Sem)
630 -- A flag present in N_Return_Statement and
631 -- N_Extended_Return_Statement.
632 -- It is set when the returned expression is already allocated on the
633 -- secondary stack and thus the result is passed by reference rather
634 -- than copied another time.
636 -- Check_Address_Alignment (Flag11-Sem)
637 -- A flag present in N_Attribute_Definition clause for a 'Address
638 -- attribute definition. This flag is set if a dynamic check should be
639 -- generated at the freeze point for the entity to which this address
640 -- clause applies. The reason that we need this flag is that we want to
641 -- check for range checks being suppressed at the point where the
642 -- attribute definition clause is given, rather than testing this at the
645 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
646 -- Present in N_Return_Statement nodes. True if this node was
647 -- constructed as part of the expansion of an
648 -- N_Extended_Return_Statement.
650 -- Compile_Time_Known_Aggregate (Flag18-Sem)
651 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
652 -- evaluated at compile time without raising constraint error. Such
653 -- aggregates can be passed as is to Gigi without any expansion. See
654 -- Sem_Aggr for the specific conditions under which an aggregate has this
655 -- flag set. See also the flag Static_Processing_OK.
657 -- Condition_Actions (List3-Sem)
658 -- This field appears in else-if nodes and in the iteration scheme node
659 -- for while loops. This field is only used during semantic processing to
660 -- temporarily hold actions inserted into the tree. In the tree passed to
661 -- gigi, the condition actions field is always set to No_List. For
662 -- details on how this field is used, see the routine Insert_Actions in
663 -- package Exp_Util, and also the expansion routines for the relevant
666 -- Controlling_Argument (Node1-Sem)
667 -- This field is set in procedure and function call nodes if the call is
668 -- a dispatching call (it is Empty for a non-dispatching call). It
669 -- indicates the source of the call's controlling tag. For procedure
670 -- calls, the Controlling_Argument is one of the actuals. For function
671 -- that has a dispatching result, it is an entity in the context of the
672 -- call that can provide a tag, or else it is the tag of the root type of
673 -- the class. It can also specify a tag directly rather than being a
674 -- tagged object. The latter is needed by the implementations of AI-239
677 -- Conversion_OK (Flag14-Sem)
678 -- A flag set on type conversion nodes to indicate that the conversion is
679 -- to be considered as being valid, even though it is the case that the
680 -- conversion is not valid Ada. This is used for Enum_Rep, Fixed_Value
681 -- and Integer_Value attributes, for internal conversions done for
682 -- fixed-point operations, and for certain conversions for calls to
683 -- initialization procedures. If Conversion_OK is set, then Etype must be
684 -- set (the analyzer assumes that Etype has been set). For the case of
685 -- fixed-point operands, it also indicates that the conversion is to be
686 -- direct conversion of the underlying integer result, with no regard to
687 -- the small operand.
689 -- Corresponding_Body (Node5-Sem)
690 -- This field is set in subprogram declarations, package declarations,
691 -- entry declarations of protected types, and in generic units. It
692 -- points to the defining entity for the corresponding body (NOT the
693 -- node for the body itself).
695 -- Corresponding_Formal_Spec (Node3-Sem)
696 -- This field is set in subprogram renaming declarations, where it points
697 -- to the defining entity for a formal subprogram in the case where the
698 -- renaming corresponds to a generic formal subprogram association in an
699 -- instantiation. The field is Empty if the renaming does not correspond
700 -- to such a formal association.
702 -- Corresponding_Generic_Association (Node5-Sem)
703 -- This field is defined for object declarations and object renaming
704 -- declarations. It is set for the declarations within an instance that
705 -- map generic formals to their actuals. If set, the field points to
706 -- a generic_association which is the original parent of the expression
707 -- or name appearing in the declaration. This simplifies ASIS queries.
709 -- Corresponding_Integer_Value (Uint4-Sem)
710 -- This field is set in real literals of fixed-point types (it is not
711 -- used for floating-point types). It contains the integer value used
712 -- to represent the fixed-point value. It is also set on the universal
713 -- real literals used to represent bounds of fixed-point base types
714 -- and their first named subtypes.
716 -- Corresponding_Spec (Node5-Sem)
717 -- This field is set in subprogram, package, task, and protected body
718 -- nodes, where it points to the defining entity in the corresponding
719 -- spec. The attribute is also set in N_With_Clause nodes, where it
720 -- points to the defining entity for the with'ed spec, and in a
721 -- subprogram renaming declaration when it is a Renaming_As_Body. The
722 -- field is Empty if there is no corresponding spec, as in the case of a
723 -- subprogram body that serves as its own spec.
725 -- Corresponding_Stub (Node3-Sem)
726 -- This field is present in an N_Subunit node. It holds the node in
727 -- the parent unit that is the stub declaration for the subunit. it is
728 -- set when analysis of the stub forces loading of the proper body. If
729 -- expansion of the proper body creates new declarative nodes, they are
730 -- inserted at the point of the corresponding_stub.
732 -- Dcheck_Function (Node5-Sem)
733 -- This field is present in an N_Variant node, It references the entity
734 -- for the discriminant checking function for the variant.
736 -- Debug_Statement (Node3)
737 -- This field is present in an N_Pragma node. It is used only for a Debug
738 -- pragma. The parameter is of the form of an expression, as required by
739 -- the pragma syntax, but is actually a procedure call. To simplify
740 -- semantic processing, the parser creates a copy of the argument
741 -- rearranged into a procedure call statement and places it in the
742 -- Debug_Statement field. Note that this field is considered syntactic
743 -- field, since it is created by the parser.
745 -- Default_Expression (Node5-Sem)
746 -- This field is Empty if there is no default expression. If there is a
747 -- simple default expression (one with no side effects), then this field
748 -- simply contains a copy of the Expression field (both point to the tree
749 -- for the default expression). Default_Expression is used for
750 -- conformance checking.
752 -- Delay_Finalize_Attach (Flag14-Sem)
753 -- This flag is present in an N_Object_Declaration node. If it is set,
754 -- then in the case of a controlled type being declared and initialized,
755 -- the normal code for attaching the result to the appropriate local
756 -- finalization list is suppressed. This is used for functions that
757 -- return controlled types without using the secondary stack, where it is
758 -- the caller who must do the attachment.
760 -- Discr_Check_Funcs_Built (Flag11-Sem)
761 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
762 -- discriminant checking functions are constructed. The purpose is to
763 -- avoid attempting to set these functions more than once.
765 -- Do_Accessibility_Check (Flag13-Sem)
766 -- This flag is set on N_Parameter_Specification nodes to indicate
767 -- that an accessibility check is required for the parameter. It is
768 -- not yet decided who takes care of this check (TBD ???).
770 -- Do_Discriminant_Check (Flag13-Sem)
771 -- This flag is set on N_Selected_Component nodes to indicate that a
772 -- discriminant check is required using the discriminant check routine
773 -- associated with the selector. The actual check is generated by the
774 -- expander when processing selected components.
776 -- Do_Division_Check (Flag13-Sem)
777 -- This flag is set on a division operator (/ mod rem) to indicate
778 -- that a zero divide check is required. The actual check is dealt
779 -- with by the backend (all the front end does is to set the flag).
781 -- Do_Length_Check (Flag4-Sem)
782 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
783 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
784 -- is required. It is not determined who deals with this flag (???).
786 -- Do_Overflow_Check (Flag17-Sem)
787 -- This flag is set on an operator where an overflow check is required on
788 -- the operation. The actual check is dealt with by the backend (all the
789 -- front end does is to set the flag). The other cases where this flag is
790 -- used is on a Type_Conversion node and for attribute reference nodes.
791 -- For a type conversion, it means that the conversion is from one base
792 -- type to another, and the value may not fit in the target base type.
793 -- See also the description of Do_Range_Check for this case. The only
794 -- attribute references which use this flag are Pred and Succ, where it
795 -- means that the result should be checked for going outside the base
798 -- Do_Range_Check (Flag9-Sem)
799 -- This flag is set on an expression which appears in a context where
800 -- a range check is required. The target type is clear from the
801 -- context. The contexts in which this flag can appear are limited to
804 -- Right side of an assignment. In this case the target type is
805 -- taken from the left side of the assignment, which is referenced
806 -- by the Name of the N_Assignment_Statement node.
808 -- Subscript expressions in an indexed component. In this case the
809 -- target type is determined from the type of the array, which is
810 -- referenced by the Prefix of the N_Indexed_Component node.
812 -- Argument expression for a parameter, appearing either directly in
813 -- the Parameter_Associations list of a call or as the Expression of an
814 -- N_Parameter_Association node that appears in this list. In either
815 -- case, the check is against the type of the formal. Note that the
816 -- flag is relevant only in IN and IN OUT parameters, and will be
817 -- ignored for OUT parameters, where no check is required in the call,
818 -- and if a check is required on the return, it is generated explicitly
819 -- with a type conversion.
821 -- Initialization expression for the initial value in an object
822 -- declaration. In this case the Do_Range_Check flag is set on
823 -- the initialization expression, and the check is against the
824 -- range of the type of the object being declared.
826 -- The expression of a type conversion. In this case the range check is
827 -- against the target type of the conversion. See also the use of
828 -- Do_Overflow_Check on a type conversion. The distinction is that the
829 -- overflow check protects against a value that is outside the range of
830 -- the target base type, whereas a range check checks that the
831 -- resulting value (which is a value of the base type of the target
832 -- type), satisfies the range constraint of the target type.
834 -- Note: when a range check is required in contexts other than those
835 -- listed above (e.g. in a return statement), an additional type
836 -- conversion node is introduced to represent the required check.
838 -- Do_Storage_Check (Flag17-Sem)
839 -- This flag is set in an N_Allocator node to indicate that a storage
840 -- check is required for the allocation, or in an N_Subprogram_Body node
841 -- to indicate that a stack check is required in the subprogram prolog.
842 -- The N_Allocator case is handled by the routine that expands the call
843 -- to the runtime routine. The N_Subprogram_Body case is handled by the
844 -- backend, and all the semantics does is set the flag.
846 -- Do_Tag_Check (Flag13-Sem)
847 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
848 -- N_Procedure_Call_Statement, N_Type_Conversion,
849 -- N_Return_Statement, or N_Extended_Return_Statement
850 -- node to indicate that the tag check can be suppressed. It is not
851 -- yet decided how this flag is used (TBD ???).
853 -- Elaborate_Present (Flag4-Sem)
854 -- This flag is set in the N_With_Clause node to indicate that pragma
855 -- Elaborate pragma appears for the with'ed units.
857 -- Elaborate_All_Desirable (Flag9-Sem)
858 -- This flag is set in the N_With_Clause mode to indicate that the static
859 -- elaboration processing has determined that an Elaborate_All pragma is
860 -- desirable for correct elaboration for this unit.
862 -- Elaborate_All_Present (Flag14-Sem)
863 -- This flag is set in the N_With_Clause node to indicate that a
864 -- pragma Elaborate_All pragma appears for the with'ed units.
866 -- Elaborate_Desirable (Flag11-Sem)
867 -- This flag is set in the N_With_Clause mode to indicate that the static
868 -- elaboration processing has determined that an Elaborate pragma is
869 -- desirable for correct elaboration for this unit.
871 -- Elaboration_Boolean (Node2-Sem)
872 -- This field is present in function and procedure specification
873 -- nodes. If set, it points to the entity for a Boolean flag that
874 -- must be tested for certain calls to check for access before
875 -- elaboration. See body of Sem_Elab for further details. This
876 -- field is Empty if no elaboration boolean is required.
878 -- Else_Actions (List3-Sem)
879 -- This field is present in conditional expression nodes. During code
880 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
881 -- actions at an appropriate place in the tree to get elaborated at the
882 -- right time. For conditional expressions, we have to be sure that the
883 -- actions for the Else branch are only elaborated if the condition is
884 -- False. The Else_Actions field is used as a temporary parking place for
885 -- these actions. The final tree is always rewritten to eliminate the
886 -- need for this field, so in the tree passed to Gigi, this field is
887 -- always set to No_List.
889 -- Enclosing_Variant (Node2-Sem)
890 -- This field is present in the N_Variant node and identifies the
891 -- Node_Id corresponding to the immediately enclosing variant when
892 -- the variant is nested, and N_Empty otherwise. Set during semantic
893 -- processing of the variant part of a record type.
895 -- Entity (Node4-Sem)
896 -- Appears in all direct names (identifier, character literal, operator
897 -- symbol), as well as expanded names, and attributes that denote
898 -- entities, such as 'Class. Points to the entity for the corresponding
899 -- defining occurrence. Set after name resolution. In the case of
900 -- identifiers in a WITH list, the corresponding defining occurrence is
901 -- in a separately compiled file, and this pointer must be set using the
902 -- library Load procedure. Note that during name resolution, the value in
903 -- Entity may be temporarily incorrect (e.g. during overload resolution,
904 -- Entity is initially set to the first possible correct interpretation,
905 -- and then later modified if necessary to contain the correct value
906 -- after resolution). Note that this field overlaps Associated_Node,
907 -- which is used during generic processing (see Sem_Ch12 for details).
908 -- Note also that in generic templates, this means that the Entity field
909 -- does not always point to an Entity. Since the back end is expected to
910 -- ignore generic templates, this is harmless. Note that this field also
911 -- appears in N_Attribute_Definition_Clause nodes. It is used only for
912 -- stream attributes definition clauses. In this case, it denotes a
913 -- (possibly dummy) subprogram entity that is conceptually declared at
914 -- the point of the clause. Thus the visibility of the attribute
915 -- definition clause (in the sense of 8.3(23) as amended by AI-195) can
916 -- be checked by testing the visibility of that subprogram.
918 -- Entity_Or_Associated_Node (Node4-Sem)
919 -- A synonym for both Entity and Associated_Node. Used by convention in
920 -- the code when referencing this field in cases where it is not known
921 -- whether the field contains an Entity or an Associated_Node.
924 -- Appears in all expression nodes, all direct names, and all entities.
925 -- Points to the entity for the related type. Set after type resolution.
926 -- Normally this is the actual subtype of the expression. However, in
927 -- certain contexts such as the right side of an assignment, subscripts,
928 -- arguments to calls, returned value in a function, initial value etc.
929 -- it is the desired target type. In the event that this is different
930 -- from the actual type, the Do_Range_Check flag will be set if a range
931 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
932 -- points to an essentially arbitrary choice from the possible set of
935 -- Exception_Junk (Flag7-Sem)
936 -- This flag is set in a various nodes appearing in a statement sequence
937 -- to indicate that the corresponding node is an artifact of the
938 -- generated code for exception handling, and should be ignored when
939 -- analyzing the control flow of the relevant sequence of statements
940 -- (e.g. to check that it does not end with a bad return statement).
942 -- Expansion_Delayed (Flag11-Sem)
943 -- Set on aggregates and extension aggregates that need a top-down rather
944 -- than bottom up expansion. Typically aggregate expansion happens bottom
945 -- up. For nested aggregates the expansion is delayed until the enclosing
946 -- aggregate itself is expanded, e.g. in the context of a declaration. To
947 -- delay it we set this flag. This is done to avoid creating a temporary
948 -- for each level of a nested aggregates, and also to prevent the
949 -- premature generation of constraint checks. This is also a requirement
950 -- if we want to generate the proper attachment to the internal
951 -- finalization lists (for record with controlled components). Top down
952 -- expansion of aggregates is also used for in-place array aggregate
953 -- assignment or initialization. When the full context is known, the
954 -- target of the assignment or initialization is used to generate the
955 -- left-hand side of individual assignment to each sub-component.
957 -- First_Inlined_Subprogram (Node3-Sem)
958 -- Present in the N_Compilation_Unit node for the main program. Points to
959 -- a chain of entities for subprograms that are to be inlined. The
960 -- Next_Inlined_Subprogram field of these entities is used as a link
961 -- pointer with Empty marking the end of the list. This field is Empty if
962 -- there are no inlined subprograms or inlining is not active.
964 -- First_Named_Actual (Node4-Sem)
965 -- Present in procedure call statement and function call nodes, and also
966 -- in Intrinsic nodes. Set during semantic analysis to point to the first
967 -- named parameter where parameters are ordered by declaration order (as
968 -- opposed to the actual order in the call which may be different due to
969 -- named associations). Note: this field points to the explicit actual
970 -- parameter itself, not the N_Parameter_Association node (its parent).
972 -- First_Real_Statement (Node2-Sem)
973 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
974 -- Empty. Used only when declarations are moved into the statement part
975 -- of a construct as a result of wrapping an AT END handler that is
976 -- required to cover the declarations. In this case, this field is used
977 -- to remember the location in the statements list of the first real
978 -- statement, i.e. the statement that used to be first in the statement
979 -- list before the declarations were prepended.
981 -- First_Subtype_Link (Node5-Sem)
982 -- Present in N_Freeze_Entity node for an anonymous base type that is
983 -- implicitly created by the declaration of a first subtype. It points to
984 -- the entity for the first subtype.
986 -- Float_Truncate (Flag11-Sem)
987 -- A flag present in type conversion nodes. This is used for float to
988 -- integer conversions where truncation is required rather than rounding.
989 -- Note that Gigi does not handle type conversions from real to integer
990 -- with rounding (see Expand_N_Type_Conversion).
992 -- Forwards_OK (Flag5-Sem)
993 -- A flag present in the N_Assignment_Statement node. It is used only if
994 -- the type being assigned is an array type, and is set if analysis
995 -- determines that it is definitely safe to do the copy forwards, i.e.
996 -- starting at the lowest addressed element. Note that if neither of the
997 -- flags Forwards_OK or Backwards_OK is set, it means that the front end
998 -- could not determine that either direction is definitely safe, and a
999 -- runtime check is required.
1001 -- From_At_Mod (Flag4-Sem)
1002 -- This flag is set on the attribute definition clause node that is
1003 -- generated by a transformation of an at mod phrase in a record
1004 -- representation clause. This is used to give slightly different (Ada 83
1005 -- compatible) semantics to such a clause, namely it is used to specify a
1006 -- minimum acceptable alignment for the base type and all subtypes. In
1007 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1008 -- must be a multiple of the given value, and the representation clause
1009 -- is considered to be type specific instead of subtype specific.
1011 -- From_Default (Flag6-Sem)
1012 -- This flag is set on the subprogram renaming declaration created in an
1013 -- instance for a formal subprogram, when the formal is declared with a
1014 -- box, and there is no explicit actual. If the flag is present, the
1015 -- declaration is treated as an implicit reference to the formal in the
1018 -- Generic_Parent (Node5-Sem)
1019 -- Generic_Parent is defined on declaration nodes that are instances. The
1020 -- value of Generic_Parent is the generic entity from which the instance
1021 -- is obtained. Generic_Parent is also defined for the renaming
1022 -- declarations and object declarations created for the actuals in an
1023 -- instantiation. The generic parent of such a declaration is the
1024 -- corresponding generic association in the Instantiation node.
1026 -- Generic_Parent_Type (Node4-Sem)
1027 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1028 -- actuals of formal private and derived types. Within the instance, the
1029 -- operations on the actual are those inherited from the parent. For a
1030 -- formal private type, the parent type is the generic type itself. The
1031 -- Generic_Parent_Type is also used in an instance to determine whether a
1032 -- private operation overrides an inherited one.
1034 -- Handler_List_Entry (Node2-Sem)
1035 -- This field is present in N_Object_Declaration nodes. It is set only
1036 -- for the Handler_Record entry generated for an exception in zero cost
1037 -- exception handling mode. It references the corresponding item in the
1038 -- handler list, and is used to delete this entry if the corresponding
1039 -- handler is deleted during optimization. For further details on why
1040 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1042 -- Has_No_Elaboration_Code (Flag17-Sem)
1043 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1044 -- or not elaboration code is present for this unit. It is initially set
1045 -- true for subprogram specs and bodies and for all generic units and
1046 -- false for non-generic package specs and bodies. Gigi may set the flag
1047 -- in the non-generic package case if it determines that no elaboration
1048 -- code is generated. Note that this flag is not related to the
1049 -- Is_Preelaborated status, there can be preelaborated packages that
1050 -- generate elaboration code, and non- preelaborated packages which do
1051 -- not generate elaboration code.
1053 -- Has_Priority_Pragma (Flag6-Sem)
1054 -- A flag present in N_Subprogram_Body, N_Task_Definition and
1055 -- N_Protected_Definition nodes to flag the presence of either a Priority
1056 -- or Interrupt_Priority pragma in the declaration sequence (public or
1057 -- private in the task and protected cases)
1059 -- Has_Private_View (Flag11-Sem)
1060 -- A flag present in generic nodes that have an entity, to indicate that
1061 -- the node has a private type. Used to exchange private and full
1062 -- declarations if the visibility at instantiation is different from the
1063 -- visibility at generic definition.
1065 -- Has_Self_Reference (Flag13-Sem)
1066 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1067 -- of the expressions contains an access attribute reference to the
1068 -- enclosing type. Such a self-reference can only appear in default-
1069 -- initialized aggregate for a record type.
1071 -- Has_Storage_Size_Pragma (Flag5-Sem)
1072 -- A flag present in an N_Task_Definition node to flag the presence of a
1073 -- Storage_Size pragma.
1075 -- Has_Task_Info_Pragma (Flag7-Sem)
1076 -- A flag present in an N_Task_Definition node to flag the presence of a
1077 -- Task_Info pragma. Used to detect duplicate pragmas.
1079 -- Has_Task_Name_Pragma (Flag8-Sem)
1080 -- A flag present in N_Task_Definition nodes to flag the presence of a
1081 -- Task_Name pragma in the declaration sequence for the task.
1083 -- Has_Wide_Character (Flag11-Sem)
1084 -- Present in string literals, set if any wide character (i.e. character
1085 -- code outside the Character range) appears in the string.
1087 -- Hidden_By_Use_Clause (Elist4-Sem)
1088 -- An entity list present in use clauses that appear within
1089 -- instantiations. For the resolution of local entities, entities
1090 -- introduced by these use clauses have priority over global ones, and
1091 -- outer entities must be explicitly hidden/restored on exit.
1093 -- Implicit_With (Flag16-Sem)
1094 -- This flag is set in the N_With_Clause node that is implicitly
1095 -- generated for runtime units that are loaded by the expander, and also
1096 -- for package System, if it is loaded implicitly by a use of the
1097 -- 'Address or 'Tag attribute.
1099 -- Includes_Infinities (Flag11-Sem)
1100 -- This flag is present in N_Range nodes. It is set for the range of
1101 -- unconstrained float types defined in Standard, which include not only
1102 -- the given range of values, but also legtitimately can include infinite
1103 -- values. This flag is false for any float type for which an explicit
1104 -- range is given by the programmer, even if that range is identical to
1105 -- the range for Float.
1107 -- Instance_Spec (Node5-Sem)
1108 -- This field is present in generic instantiation nodes, and also in
1109 -- formal package declaration nodes (formal package declarations are
1110 -- treated in a manner very similar to package instantiations). It points
1111 -- to the node for the spec of the instance, inserted as part of the
1112 -- semantic processing for instantiations in Sem_Ch12.
1114 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1115 -- A flag set in a Block_Statement node to indicate that it is the
1116 -- expansion of an asynchronous entry call. Such a block needs cleanup
1117 -- handler to assure that the call is cancelled.
1119 -- Is_Component_Left_Opnd (Flag13-Sem)
1120 -- Is_Component_Right_Opnd (Flag14-Sem)
1121 -- Present in concatenation nodes, to indicate that the corresponding
1122 -- operand is of the component type of the result. Used in resolving
1123 -- concatenation nodes in instances.
1125 -- Is_Controlling_Actual (Flag16-Sem)
1126 -- This flag is set on in an expression that is a controlling argument in
1127 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1128 -- details of its use.
1130 -- Is_Entry_Barrier_Function (Flag8-Sem)
1131 -- This flag is set in an N_Subprogram_Body node which is the expansion
1132 -- of an entry barrier from a protected entry body. It is used for the
1133 -- circuitry checking for incorrect use of Current_Task.
1135 -- Is_In_Discriminant_Check (Flag11-Sem)
1136 -- This flag is present in a selected component, and is used to indicate
1137 -- that the reference occurs within a discriminant check. The
1138 -- significance is that optimizations based on assuming that the
1139 -- discriminant check has a correct value cannot be performed in this
1140 -- case (or the disriminant check may be optimized away!)
1142 -- Is_Machine_Number (Flag11-Sem)
1143 -- This flag is set in an N_Real_Literal node to indicate that the value
1144 -- is a machine number. This avoids some unnecessary cases of converting
1145 -- real literals to machine numbers.
1147 -- Is_Null_Loop (Flag16-Sem)
1148 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1149 -- can be determined to be null at compile time. This is used to suppress
1150 -- any warnings that would otherwise be issued inside the loop since they
1151 -- are probably not useful.
1153 -- Is_Overloaded (Flag5-Sem)
1154 -- A flag present in all expression nodes. Used temporarily during
1155 -- overloading determination. The setting of this flag is not relevant
1156 -- once overloading analysis is complete.
1158 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1159 -- A flag present only in N_Op_Expon nodes. It is set when the
1160 -- exponentiation is of the forma 2 ** N, where the type of N is an
1161 -- unsigned integral subtype whose size does not exceed the size of
1162 -- Standard_Integer (i.e. a type that can be safely converted to
1163 -- Natural), and the exponentiation appears as the right operand of an
1164 -- integer multiplication or an integer division where the dividend is
1165 -- unsigned. It is also required that overflow checking is off for both
1166 -- the exponentiation and the multiply/divide node. If this set of
1167 -- conditions holds, and the flag is set, then the division or
1168 -- multiplication can be (and is) converted to a shift.
1170 -- Is_Overloaded (Flag5-Sem)
1171 -- A flag present in all expression nodes. Used temporarily during
1172 -- overloading determination. The setting of this flag is not relevant
1173 -- once overloading analysis is complete.
1175 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1176 -- A flag set in a Subprogram_Body block to indicate that it is the
1177 -- implemenation of a protected subprogram. Such a body needs cleanup
1178 -- handler to make sure that the associated protected object is unlocked
1179 -- when the subprogram completes.
1181 -- Is_Static_Expression (Flag6-Sem)
1182 -- Indicates that an expression is a static expression (RM 4.9). See spec
1183 -- of package Sem_Eval for full details on the use of this flag.
1185 -- Is_Subprogram_Descriptor (Flag16-Sem)
1186 -- Present in N_Object_Declaration, and set only for the object
1187 -- declaration generated for a subprogram descriptor in fast exception
1188 -- mode. See Exp_Ch11 for details of use.
1190 -- Is_Task_Allocation_Block (Flag6-Sem)
1191 -- A flag set in a Block_Statement node to indicate that it is the
1192 -- expansion of a task allocator, or the allocator of an object
1193 -- containing tasks. Such a block requires a cleanup handler to call
1194 -- Expunge_Unactivted_Tasks to complete any tasks that have been
1195 -- allocated but not activated when the allocator completes abnormally.
1197 -- Is_Task_Master (Flag5-Sem)
1198 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1199 -- indicate that the construct is a task master (i.e. has declared tasks
1200 -- or declares an access to a task type).
1202 -- Itype (Node1-Sem)
1203 -- Used in N_Itype_Reference node to reference an itype for which it is
1204 -- important to ensure that it is defined. See description of this node
1205 -- for further details.
1207 -- Kill_Range_Check (Flag11-Sem)
1208 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1209 -- result should not be subjected to range checks. This is used for the
1210 -- implementation of Normalize_Scalars.
1212 -- Label_Construct (Node2-Sem)
1213 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1214 -- N_Block_Statement or N_Loop_Statement node to which the label
1215 -- declaration applies. This is not currently used in the compiler
1216 -- itself, but it is useful in the implementation of ASIS queries.
1218 -- Library_Unit (Node4-Sem)
1219 -- In a stub node, Library_Unit points to the compilation unit node of
1220 -- the corresponding subunit.
1222 -- In a with clause node, Library_Unit points to the spec of the with'ed
1225 -- In a compilation unit node, the usage depends on the unit type:
1227 -- For a subprogram body, Library_Unit points to the compilation unit
1228 -- node of the corresponding spec, unless Acts_As_Spec is set, in which
1229 -- case it points to itself.
1231 -- For a package body, Library_Unit points to the compilation unit of
1232 -- the corresponding package spec.
1234 -- For a subprogram spec to which pragma Inline applies, Library_Unit
1235 -- points to the compilation unit node of the corresponding body, if
1236 -- inlining is active.
1238 -- For a generic declaration, Library_Unit points to the compilation
1239 -- unit node of the corresponding generic body.
1241 -- For a subunit, Library_Unit points to the compilation unit node of
1244 -- Note that this field is not used to hold the parent pointer for child
1245 -- unit (which might in any case need to use it for some other purpose as
1246 -- described above). Instead for a child unit, implicit with's are
1247 -- generated for all parents.
1249 -- Loop_Actions (List2-Sem)
1250 -- A list present in Component_Association nodes in array aggregates.
1251 -- Used to collect actions that must be executed within the loop because
1252 -- they may need to be evaluated anew each time through.
1254 -- Limited_View_Installed (Flag18-Sem)
1255 -- Present in With_Clauses and in package specifications. If set on
1256 -- with_clause, it indicates that this clause has created the current
1257 -- limited view of the designated package. On a package specification, it
1258 -- indicates that the limited view has already been created because the
1259 -- package is mentioned in a limited_with_clause in the closure of the
1260 -- unit being compiled.
1262 -- Must_Be_Byte_Aligned (Flag14-Sem)
1263 -- This flag is present in N_Attribute_Reference nodes. It can be set
1264 -- only for the Address and Unrestricted_Access attributes. If set it
1265 -- means that the object for which the address/access is given must be on
1266 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1267 -- of the object is to be made before taking the address (this copy is in
1268 -- the current scope on the stack frame). This is used for certain cases
1269 -- of code generated by the expander that passes parameters by address.
1271 -- The reason the copy is not made by the front end is that the back end
1272 -- has more information about type layout and may be able to (but is not
1273 -- guaranteed to) prevent making unnecessary copies.
1275 -- Must_Not_Freeze (Flag8-Sem)
1276 -- A flag present in all expression nodes. Normally expressions cause
1277 -- freezing as described in the RM. If this flag is set, then this is
1278 -- inhibited. This is used by the analyzer and expander to label nodes
1279 -- that are created by semantic analysis or expansion and which must not
1280 -- cause freezing even though they normally would. This flag is also
1281 -- present in an N_Subtype_Indication node, since we also use these in
1282 -- calls to Freeze_Expression.
1284 -- Next_Entity (Node2-Sem)
1285 -- Present in defining identifiers, defining character literals and
1286 -- defining operator symbols (i.e. in all entities). The entities of a
1287 -- scope are chained, and this field is used as the forward pointer for
1288 -- this list. See Einfo for further details.
1290 -- Next_Named_Actual (Node4-Sem)
1291 -- Present in parameter association node. Set during semantic analysis to
1292 -- point to the next named parameter, where parameters are ordered by
1293 -- declaration order (as opposed to the actual order in the call, which
1294 -- may be different due to named associations). Not that this field
1295 -- points to the explicit actual parameter itself, not to the
1296 -- N_Parameter_Association node (its parent).
1298 -- Next_Rep_Item (Node5-Sem)
1299 -- Present in pragma nodes and attribute definition nodes. Used to link
1300 -- representation items that apply to an entity. See description of
1301 -- First_Rep_Item field in Einfo for full details.
1303 -- Next_Use_Clause (Node3-Sem)
1304 -- While use clauses are active during semantic processing, they are
1305 -- chained from the scope stack entry, using Next_Use_Clause as a link
1306 -- pointer, with Empty marking the end of the list. The head pointer is
1307 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1308 -- processing (i.e. when Gigi sees the tree, the contents of this field
1309 -- is undefined and should not be read).
1311 -- No_Ctrl_Actions (Flag7-Sem)
1312 -- Present in N_Assignment_Statement to indicate that no finalize nor nor
1313 -- adjust should take place on this assignment eventhough the rhs is
1314 -- controlled. This is used in init procs and aggregate expansions where
1315 -- the generated assignments are more initialisations than real
1318 -- No_Elaboration_Check (Flag14-Sem)
1319 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1320 -- that no elaboration check is needed on the call, because it appears in
1321 -- the context of a local Suppress pragma. This is used on calls within
1322 -- task bodies, where the actual elaboration checks are applied after
1323 -- analysis, when the local scope stack is not present.
1325 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1326 -- Present in N_With_Clause nodes. Set if the with clause is on the
1327 -- package or subprogram spec where the main unit is the corresponding
1328 -- body, and no entities of the with'ed unit are referenced by the spec
1329 -- (an entity may still be referenced in the body, so this flag is used
1330 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1333 -- No_Initialization (Flag13-Sem)
1334 -- Present in N_Object_Declaration & N_Allocator to indicate that the
1335 -- object must not be initialized (by Initialize or call to an init
1336 -- proc). This is needed for controlled aggregates. When the Object
1337 -- declaration has an expression, this flag means that this expression
1338 -- should not be taken into account (needed for in place initialization
1341 -- No_Truncation (Flag17-Sem)
1342 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1343 -- only if the RM_Size of the source is greater than the RM_Size of the
1344 -- target for scalar operands. Normally in such a case we truncate some
1345 -- higher order bits of the source, and then sign/zero extend the result
1346 -- to form the output value. But if this flag is set, then we do not do
1347 -- any truncation, so for example, if an 8 bit input is converted to 5
1348 -- bit result which is in fact stored in 8 bits, then the high order
1349 -- three bits of the target result will be copied from the source. This
1350 -- is used for properly setting out of range values for use by pragmas
1351 -- Initialize_Scalars and Normalize_Scalars.
1353 -- Original_Discriminant (Node2-Sem)
1354 -- Present in identifiers. Used in references to discriminants that
1355 -- appear in generic units. Because the names of the discriminants may be
1356 -- different in an instance, we use this field to recover the position of
1357 -- the discriminant in the original type, and replace it with the
1358 -- discriminant at the same position in the instantiated type.
1360 -- Original_Entity (Node2-Sem)
1361 -- Present in numeric literals. Used to denote the named number that has
1362 -- been constant-folded into the given literal. If literal is from
1363 -- source, or the result of some other constant-folding operation, then
1364 -- Original_Entity is empty. This field is needed to handle properly
1365 -- named numbers in generic units, where the Associated_Node field
1366 -- interferes with the Entity field, making it impossible to preserve the
1367 -- original entity at the point of instantiation (ASIS problem).
1369 -- Others_Discrete_Choices (List1-Sem)
1370 -- When a case statement or variant is analyzed, the semantic checks
1371 -- determine the actual list of choices that correspond to an others
1372 -- choice. This list is materialized for later use by the expander and
1373 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1374 -- this materialized list of choices, which is in standard format for a
1375 -- list of discrete choices, except that of course it cannot contain an
1376 -- N_Others_Choice entry.
1378 -- Parameter_List_Truncated (Flag17-Sem)
1379 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1380 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1381 -- a result of a First_Optional_Parameter specification in an
1382 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1383 -- The truncation is done by the expander by removing trailing parameters
1384 -- from the argument list, in accordance with the set of rules allowing
1385 -- such parameter removal. In particular, parameters can be removed
1386 -- working from the end of the parameter list backwards up to and
1387 -- including the entry designated by First_Optional_Parameter in the
1388 -- Import pragma. Parameters can be removed if they are implicit and the
1389 -- default value is a known-at-compile-time value, including the use of
1390 -- the Null_Parameter attribute, or if explicit parameter values are
1391 -- present that match the corresponding defaults.
1393 -- Parent_Spec (Node4-Sem)
1394 -- For a library unit that is a child unit spec (package or subprogram
1395 -- declaration, generic declaration or instantiation, or library level
1396 -- rename, this field points to the compilation unit node for the parent
1397 -- package specification. This field is Empty for library bodies (the
1398 -- parent spec in this case can be found from the corresponding spec).
1400 -- Present_Expr (Uint3-Sem)
1401 -- Present in an N_Variant node. This has a meaningful value only after
1402 -- Gigi has back annotated the tree with representation information. At
1403 -- this point, it contains a reference to a gcc expression that depends
1404 -- on the values of one or more discriminants. Give a set of discriminant
1405 -- values, this expression evaluates to False (zero) if variant is not
1406 -- present, and True (non-zero) if it is present. See unit Repinfo for
1407 -- further details on gigi back annotation. This field is used during
1408 -- ASIS processing (data decomposition annex) to determine if a field is
1411 -- Print_In_Hex (Flag13-Sem)
1412 -- Set on an N_Integer_Literal node to indicate that the value should be
1413 -- printed in hexadecimal in the sprint listing. Has no effect on
1414 -- legality or semantics of program, only on the displayed output. This
1415 -- is used to clarify output from the packed array cases.
1417 -- Procedure_To_Call (Node2-Sem)
1418 -- Present in N_Allocator, N_Free_Statement, N_Return_Statement,
1419 -- and N_Extended_Return_Statement nodes. References the entity for the
1420 -- declaration of the procedure to be called to accomplish the required
1421 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1422 -- and N_Return_Statement and N_Extended_Return_Statement (for
1423 -- allocating the return value), and for the Deallocate procedure in the
1424 -- case of N_Free_Statement.
1426 -- Raises_Constraint_Error (Flag7-Sem)
1427 -- Set on an expression whose evaluation will definitely fail constraint
1428 -- error check. In the case of static expressions, this flag must be set
1429 -- accurately (and if it is set, the expression is typically illegal
1430 -- unless it appears as a non-elaborated branch of a short-circuit form).
1431 -- For a non-static expression, this flag may be set whenever an
1432 -- expression (e.g. an aggregate) is known to raise constraint error. If
1433 -- set, the expression definitely will raise CE if elaborated at runtime.
1434 -- If not set, the expression may or may not raise CE. In other words, on
1435 -- static expressions, the flag is set accurately, on non-static
1436 -- expressions it is set conservatively.
1438 -- Redundant_Use (Flag13-Sem)
1439 -- Present in nodes that can appear as an operand in a use clause or use
1440 -- type clause (identifiers, expanded names, attribute references). Set
1441 -- to indicate that a use is redundant (and therefore need not be undone
1444 -- Return_Statement_Entity (Node5-Sem)
1445 -- Present in N_Return_Statement and N_Extended_Return_Statement.
1446 -- Points to an E_Return_Statement representing the return statement.
1448 -- Return_Object_Declarations (List3)
1449 -- Present in N_Extended_Return_Statement.
1450 -- Points to a list initially containing a single
1451 -- N_Object_Declaration representing the return object.
1452 -- We use a list (instead of just a pointer to the object decl)
1453 -- because Analyze wants to insert extra actions on this list.
1455 -- Rounded_Result (Flag18-Sem)
1456 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1457 -- Used in the fixed-point cases to indicate that the result must be
1458 -- rounded as a result of the use of the 'Round attribute. Also used for
1459 -- integer N_Op_Divide nodes to indicate that the result should be
1460 -- rounded to the nearest integer (breaking ties away from zero), rather
1461 -- than truncated towards zero as usual. These rounded integer operations
1462 -- are the result of expansion of rounded fixed-point divide, conversion
1463 -- and multiplication operations.
1465 -- Scope (Node3-Sem)
1466 -- Present in defining identifiers, defining character literals and
1467 -- defining operator symbols (i.e. in all entities). The entities of a
1468 -- scope all use this field to reference the corresponding scope entity.
1469 -- See Einfo for further details.
1471 -- Shift_Count_OK (Flag4-Sem)
1472 -- A flag present in shift nodes to indicate that the shift count is
1473 -- known to be in range, i.e. is in the range from zero to word length
1474 -- minus one. If this flag is not set, then the shift count may be
1475 -- outside this range, i.e. larger than the word length, and the code
1476 -- must ensure that such shift counts give the appropriate result.
1478 -- Source_Type (Node1-Sem)
1479 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1480 -- source type entity for the unchecked conversion instantiation
1481 -- which gigi must do size validation for.
1483 -- Static_Processing_OK (Flag4-Sem)
1484 -- Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1485 -- flag is set, the full value of the aggregate can be determined at
1486 -- compile time and the aggregate can be passed as is to the back-end. In
1487 -- this event it is irrelevant whether this flag is set or not. However,
1488 -- if the Compile_Time_Known_Aggregate flag is not set but
1489 -- Static_Processing_OK is set, the aggregate can (but need not) be
1490 -- converted into a compile time known aggregate by the expander. See
1491 -- Sem_Aggr for the specific conditions under which an aggregate has its
1492 -- Static_Processing_OK flag set.
1494 -- Storage_Pool (Node1-Sem)
1495 -- Present in N_Allocator, N_Free_Statement, N_Return_Statement,
1496 -- and N_Extended_Return_Statement nodes.
1497 -- References the entity for the storage pool to be used for the allocate
1498 -- or free call or for the allocation of the returned value from a
1499 -- function. Empty indicates that the global default default pool is to
1500 -- be used. Note that in the case of a return statement, this field is
1501 -- set only if the function returns value of a type whose size is not
1502 -- known at compile time on the secondary stack. It is never set on
1503 -- targets for which the parameter Functions_Return_By_DSP_On_Target in
1504 -- Targparm is True.
1506 -- Target_Type (Node2-Sem)
1507 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1508 -- type entity for the unchecked conversion instantiation which gigi must
1509 -- do size validation for.
1511 -- Then_Actions (List3-Sem)
1512 -- This field is present in conditional expression nodes. During code
1513 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1514 -- actions at an appropriate place in the tree to get elaborated at the
1515 -- right time. For conditional expressions, we have to be sure that the
1516 -- actions for the Then branch are only elaborated if the condition is
1517 -- True. The Then_Actions field is used as a temporary parking place for
1518 -- these actions. The final tree is always rewritten to eliminate the
1519 -- need for this field, so in the tree passed to Gigi, this field is
1520 -- always set to No_List.
1522 -- Treat_Fixed_As_Integer (Flag14-Sem)
1523 -- This flag appears in operator nodes for divide, multiply, mod and rem
1524 -- on fixed-point operands. It indicates that the operands are to be
1525 -- treated as integer values, ignoring small values. This flag is only
1526 -- set as a result of expansion of fixed-point operations. Typically a
1527 -- fixed-point multplication in the source generates subsidiary
1528 -- multiplication and division operations that work with the underlying
1529 -- integer values and have this flag set. Note that this flag is not
1530 -- needed on other arithmetic operations (add, neg, subtract etc) since
1531 -- in these cases it is always the case that fixed is treated as integer.
1532 -- The Etype field MUST be set if this flag is set. The analyzer knows to
1533 -- leave such nodes alone, and whoever makes them must set the correct
1536 -- TSS_Elist (Elist3-Sem)
1537 -- Present in N_Freeze_Entity nodes. Holds an element list containing
1538 -- entries for each TSS (type support subprogram) associated with the
1539 -- frozen type. The elements of the list are the entities for the
1540 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
1541 -- if there are no type support subprograms for the type or if the freeze
1542 -- node is not for a type.
1544 -- Unreferenced_In_Spec (Flag7-Sem)
1545 -- Present in N_With_Clause nodes. Set if the with clause is on the
1546 -- package or subprogram spec where the main unit is the corresponding
1547 -- body, and is not referenced by the spec (it may still be referenced by
1548 -- the body, so this flag is used to generate the proper message (see
1549 -- Sem_Util.Check_Unused_Withs for details)
1551 -- Was_Originally_Stub (Flag13-Sem)
1552 -- This flag is set in the node for a proper body that replaces stub.
1553 -- During the analysis procedure, stubs in some situations get rewritten
1554 -- by the corresponding bodies, and we set this flag to remember that
1555 -- this happened. Note that it is not good enough to rely on the use of
1556 -- Original_Node here because of the case of nested instantiations where
1557 -- the substituted node can be copied.
1559 -- Zero_Cost_Handling (Flag5-Sem)
1560 -- This flag is set in all handled sequence of statement and exception
1561 -- handler nodes if eceptions are to be handled using the zero-cost
1562 -- mechanism (see Ada.Exceptions and System.Exceptions in files
1563 -- a-except.ads/adb and s-except.ads for full details). What gigi needs
1564 -- to do for such a handler is simply to put the code in the handler
1565 -- somewhere. The front end has generated all necessary labels.
1567 --------------------------------------------------
1568 -- Note on Use of End_Label and End_Span Fields --
1569 --------------------------------------------------
1571 -- Several constructs have end lines:
1573 -- Loop Statement end loop [loop_IDENTIFIER];
1574 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
1575 -- Task Definition end [task_IDENTIFIER]
1576 -- Protected Definition end [protected_IDENTIFIER]
1577 -- Protected Body end [protected_IDENTIFIER]
1579 -- Block Statement end [block_IDENTIFIER];
1580 -- Subprogram Body end [DESIGNATOR];
1581 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
1582 -- Task Body end [task_IDENTIFIER];
1583 -- Accept Statement end [entry_IDENTIFIER]];
1584 -- Entry Body end [entry_IDENTIFIER];
1586 -- If Statement end if;
1587 -- Case Statement end case;
1589 -- Record Definition end record;
1590 -- Enumeration Definition );
1592 -- The End_Label and End_Span fields are used to mark the locations of
1593 -- these lines, and also keep track of the label in the case where a label
1596 -- For the first group above, the End_Label field of the corresponding node
1597 -- is used to point to the label identifier. In the case where there is no
1598 -- label in the source, the parser supplies a dummy identifier (with
1599 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
1600 -- marks the location of the token following the END token.
1602 -- For the second group, the use of End_Label is similar, but the End_Label
1603 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
1604 -- simply because in some cases there is no room in the parent node.
1606 -- For the third group, there is never any label, and instead of using
1607 -- End_Label, we use the End_Span field which gives the location of the
1608 -- token following END, relative to the starting Sloc of the construct,
1609 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1610 -- following the End_Label.
1612 -- The record definition case is handled specially, we treat it as though
1613 -- it required an optional label which is never present, and so the parser
1614 -- always builds a dummy identifier with Comes From Source set False. The
1615 -- reason we do this, rather than using End_Span in this case, is that we
1616 -- want to generate a cross-ref entry for the end of a record, since it
1617 -- represents a scope for name declaration purposes.
1619 -- The enumeration definition case is handled in an exactly similar manner,
1620 -- building a dummy identifier to get a cross-reference.
1622 -- Note: the reason we store the difference as a Uint, instead of storing
1623 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
1624 -- distinguished from other types of values, and we count on all general
1625 -- use fields being self describing. To make things easier for clients,
1626 -- note that we provide function End_Location, and procedure
1627 -- Set_End_Location to allow access to the logical value (which is the
1628 -- Source_Ptr value for the end token).
1630 ---------------------
1631 -- Syntactic Nodes --
1632 ---------------------
1634 ---------------------
1635 -- 2.3 Identifier --
1636 ---------------------
1638 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1639 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1641 -- An IDENTIFIER shall not be a reserved word
1643 -- In the Ada grammar identifiers are the bottom level tokens which have
1644 -- very few semantics. Actual program identifiers are direct names. If
1645 -- we were being 100% honest with the grammar, then we would have a node
1646 -- called N_Direct_Name which would point to an identifier. However,
1647 -- that's too many extra nodes, so we just use the N_Identifier node
1648 -- directly as a direct name, and it contains the expression fields and
1649 -- Entity field that correspond to its use as a direct name. In those
1650 -- few cases where identifiers appear in contexts where they are not
1651 -- direct names (pragmas, pragma argument associations, attribute
1652 -- references and attribute definition clauses), the Chars field of the
1653 -- node contains the Name_Id for the identifier name.
1655 -- Note: in GNAT, a reserved word can be treated as an identifier in two
1656 -- cases. First, an incorrect use of a reserved word as an identifier is
1657 -- diagnosed and then treated as a normal identifier. Second, an
1658 -- attribute designator of the form of a reserved word (access, delta,
1659 -- digits, range) is treated as an identifier.
1661 -- Note: The set of letters that is permitted in an identifier depends
1662 -- on the character set in use. See package Csets for full details.
1665 -- Sloc points to identifier
1666 -- Chars (Name1) contains the Name_Id for the identifier
1667 -- Entity (Node4-Sem)
1668 -- Associated_Node (Node4-Sem)
1669 -- Original_Discriminant (Node2-Sem)
1670 -- Redundant_Use (Flag13-Sem)
1671 -- Has_Private_View (Flag11-Sem) (set in generic units)
1672 -- plus fields for expression
1674 --------------------------
1675 -- 2.4 Numeric Literal --
1676 --------------------------
1678 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1680 ----------------------------
1681 -- 2.4.1 Decimal Literal --
1682 ----------------------------
1684 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1686 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1688 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1690 -- Decimal literals appear in the tree as either integer literal nodes
1691 -- or real literal nodes, depending on whether a period is present.
1693 -- Note: literal nodes appear as a result of direct use of literals
1694 -- in the source program, and also as the result of evaluating
1695 -- expressions at compile time. In the latter case, it is possible
1696 -- to construct real literals that have no syntactic representation
1697 -- using the standard literal format. Such literals are listed by
1698 -- Sprint using the notation [numerator / denominator].
1700 -- Note: the value of an integer literal node created by the front end
1701 -- is never outside the range of values of the base type. However, it
1702 -- can be the case that the value is outside the range of the
1703 -- particular subtype. This happens in the case of integer overflows
1704 -- with checks suppressed.
1706 -- N_Integer_Literal
1707 -- Sloc points to literal
1708 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1709 -- has been constant-folded into its literal value.
1710 -- Intval (Uint3) contains integer value of literal
1711 -- plus fields for expression
1712 -- Print_In_Hex (Flag13-Sem)
1715 -- Sloc points to literal
1716 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1717 -- has been constant-folded into its literal value.
1718 -- Realval (Ureal3) contains real value of literal
1719 -- Corresponding_Integer_Value (Uint4-Sem)
1720 -- Is_Machine_Number (Flag11-Sem)
1721 -- plus fields for expression
1723 --------------------------
1724 -- 2.4.2 Based Literal --
1725 --------------------------
1727 -- BASED_LITERAL ::=
1728 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1732 -- BASED_NUMERAL ::=
1733 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1735 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1737 -- Based literals appear in the tree as either integer literal nodes
1738 -- or real literal nodes, depending on whether a period is present.
1740 ----------------------------
1741 -- 2.5 Character Literal --
1742 ----------------------------
1744 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1746 -- N_Character_Literal
1747 -- Sloc points to literal
1748 -- Chars (Name1) contains the Name_Id for the identifier
1749 -- Char_Literal_Value (Uint2) contains the literal value
1750 -- Entity (Node4-Sem)
1751 -- Associated_Node (Node4-Sem)
1752 -- Has_Private_View (Flag11-Sem) set in generic units.
1753 -- plus fields for expression
1755 -- Note: the Entity field will be missing (set to Empty) for character
1756 -- literals whose type is Standard.Wide_Character or Standard.Character
1757 -- or a type derived from one of these two. In this case the character
1758 -- literal stands for its own coding. The reason we take this irregular
1759 -- short cut is to avoid the need to build lots of junk defining
1760 -- character literal nodes.
1762 -------------------------
1763 -- 2.6 String Literal --
1764 -------------------------
1766 -- STRING LITERAL ::= "{STRING_ELEMENT}"
1768 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
1769 -- single GRAPHIC_CHARACTER other than a quotation mark.
1772 -- Sloc points to literal
1773 -- Strval (Str3) contains Id of string value
1774 -- Has_Wide_Character (Flag11-Sem)
1775 -- plus fields for expression
1781 -- A COMMENT starts with two adjacent hyphens and extends up to the
1782 -- end of the line. A COMMENT may appear on any line of a program.
1784 -- Comments are skipped by the scanner and do not appear in the tree.
1785 -- It is possible to reconstruct the position of comments with respect
1786 -- to the elements of the tree by using the source position (Sloc)
1787 -- pointers that appear in every tree node.
1793 -- PRAGMA ::= pragma IDENTIFIER
1794 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
1796 -- Note that a pragma may appear in the tree anywhere a declaration
1797 -- or a statement may appear, as well as in some other situations
1798 -- which are explicitly documented.
1801 -- Sloc points to PRAGMA
1802 -- Chars (Name1) identifier name from pragma identifier
1803 -- Pragma_Argument_Associations (List2) (set to No_List if none)
1804 -- Debug_Statement (Node3) (set to Empty if not Debug, Assert)
1805 -- Next_Rep_Item (Node5-Sem)
1807 -- Note: we should have a section on what pragmas are passed on to
1808 -- the back end to be processed. This section should note that pragma
1809 -- Psect_Object is always converted to Common_Object, but there are
1810 -- undoubtedly many other similar notes required ???
1812 --------------------------------------
1813 -- 2.8 Pragma Argument Association --
1814 --------------------------------------
1816 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
1817 -- [pragma_argument_IDENTIFIER =>] NAME
1818 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
1820 -- N_Pragma_Argument_Association
1821 -- Sloc points to first token in association
1822 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
1823 -- Expression (Node3)
1825 ------------------------
1826 -- 2.9 Reserved Word --
1827 ------------------------
1829 -- Reserved words are parsed by the scanner, and returned as the
1830 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
1832 ----------------------------
1833 -- 3.1 Basic Declaration --
1834 ----------------------------
1836 -- BASIC_DECLARATION ::=
1837 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
1838 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
1839 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
1840 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
1841 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
1842 -- | GENERIC_INSTANTIATION
1844 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
1845 -- see further description in section on semantic nodes.
1847 -- Also, in the tree that is constructed, a pragma may appear
1848 -- anywhere that a declaration may appear.
1850 ------------------------------
1851 -- 3.1 Defining Identifier --
1852 ------------------------------
1854 -- DEFINING_IDENTIFIER ::= IDENTIFIER
1856 -- A defining identifier is an entity, which has additional fields
1857 -- depending on the setting of the Ekind field. These additional
1858 -- fields are defined (and access subprograms declared) in package
1861 -- Note: N_Defining_Identifier is an extended node whose fields are
1862 -- deliberate layed out to match the layout of fields in an ordinary
1863 -- N_Identifier node allowing for easy alteration of an identifier
1864 -- node into a defining identifier node. For details, see procedure
1865 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
1867 -- N_Defining_Identifier
1868 -- Sloc points to identifier
1869 -- Chars (Name1) contains the Name_Id for the identifier
1870 -- Next_Entity (Node2-Sem)
1871 -- Scope (Node3-Sem)
1872 -- Etype (Node5-Sem)
1874 -----------------------------
1875 -- 3.2.1 Type Declaration --
1876 -----------------------------
1878 -- TYPE_DECLARATION ::=
1879 -- FULL_TYPE_DECLARATION
1880 -- | INCOMPLETE_TYPE_DECLARATION
1881 -- | PRIVATE_TYPE_DECLARATION
1882 -- | PRIVATE_EXTENSION_DECLARATION
1884 ----------------------------------
1885 -- 3.2.1 Full Type Declaration --
1886 ----------------------------------
1888 -- FULL_TYPE_DECLARATION ::=
1889 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
1890 -- is TYPE_DEFINITION;
1891 -- | TASK_TYPE_DECLARATION
1892 -- | PROTECTED_TYPE_DECLARATION
1894 -- The full type declaration node is used only for the first case. The
1895 -- second case (concurrent type declaration), is represented directly
1896 -- by a task type declaration or a protected type declaration.
1898 -- N_Full_Type_Declaration
1899 -- Sloc points to TYPE
1900 -- Defining_Identifier (Node1)
1901 -- Discriminant_Specifications (List4) (set to No_List if none)
1902 -- Type_Definition (Node3)
1903 -- Discr_Check_Funcs_Built (Flag11-Sem)
1905 ----------------------------
1906 -- 3.2.1 Type Definition --
1907 ----------------------------
1909 -- TYPE_DEFINITION ::=
1910 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
1911 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
1912 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
1913 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
1915 --------------------------------
1916 -- 3.2.2 Subtype Declaration --
1917 --------------------------------
1919 -- SUBTYPE_DECLARATION ::=
1920 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
1922 -- The subtype indication field is set to Empty for subtypes
1923 -- declared in package Standard (Positive, Natural).
1925 -- N_Subtype_Declaration
1926 -- Sloc points to SUBTYPE
1927 -- Defining_Identifier (Node1)
1928 -- Null_Exclusion_Present (Flag11)
1929 -- Subtype_Indication (Node5)
1930 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
1931 -- Exception_Junk (Flag7-Sem)
1933 -------------------------------
1934 -- 3.2.2 Subtype Indication --
1935 -------------------------------
1937 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
1939 -- Note: if no constraint is present, the subtype indication appears
1940 -- directly in the tree as a subtype mark. The N_Subtype_Indication
1941 -- node is used only if a constraint is present.
1943 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
1944 -- with the null-exclusion part (see AI-231), we had to introduce a new
1945 -- attribute in all the parents of subtype_indication nodes to indicate
1946 -- if the null-exclusion is present.
1948 -- Note: the reason that this node has expression fields is that a
1949 -- subtype indication can appear as an operand of a membership test.
1951 -- N_Subtype_Indication
1952 -- Sloc points to first token of subtype mark
1953 -- Subtype_Mark (Node4)
1954 -- Constraint (Node3)
1955 -- Etype (Node5-Sem)
1956 -- Must_Not_Freeze (Flag8-Sem)
1958 -- Note: Etype is a copy of the Etype field of the Subtype_Mark. The
1959 -- reason for this redundancy is so that in a list of array index types,
1960 -- the Etype can be uniformly accessed to determine the subscript type.
1961 -- This means that no Itype is constructed for the actual subtype that
1962 -- is created by the subtype indication. If such an Itype is required,
1963 -- it is constructed in the context in which the indication appears.
1965 -------------------------
1966 -- 3.2.2 Subtype Mark --
1967 -------------------------
1969 -- SUBTYPE_MARK ::= subtype_NAME
1971 -----------------------
1972 -- 3.2.2 Constraint --
1973 -----------------------
1975 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
1977 ------------------------------
1978 -- 3.2.2 Scalar Constraint --
1979 ------------------------------
1981 -- SCALAR_CONSTRAINT ::=
1982 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
1984 ---------------------------------
1985 -- 3.2.2 Composite Constraint --
1986 ---------------------------------
1988 -- COMPOSITE_CONSTRAINT ::=
1989 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
1991 -------------------------------
1992 -- 3.3.1 Object Declaration --
1993 -------------------------------
1995 -- OBJECT_DECLARATION ::=
1996 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
1997 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION];
1998 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
1999 -- ACCESS_DEFINITION [:= EXPRESSION];
2000 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2001 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION];
2002 -- | SINGLE_TASK_DECLARATION
2003 -- | SINGLE_PROTECTED_DECLARATION
2005 -- Note: aliased is not permitted in Ada 83 mode
2007 -- The N_Object_Declaration node is only for the first two cases.
2008 -- Single task declaration is handled by P_Task (9.1)
2009 -- Single protected declaration is handled by P_protected (9.5)
2011 -- Although the syntax allows multiple identifiers in the list, the
2012 -- semantics is as though successive declarations were given with
2013 -- identical type definition and expression components. To simplify
2014 -- semantic processing, the parser represents a multiple declaration
2015 -- case as a sequence of single declarations, using the More_Ids and
2016 -- Prev_Ids flags to preserve the original source form as described
2017 -- in the section on "Handling of Defining Identifier Lists".
2019 -- Note: if a range check is required for the initialization
2020 -- expression then the Do_Range_Check flag is set in the Expression,
2021 -- with the check being done against the type given by the object
2022 -- definition, which is also the Etype of the defining identifier.
2024 -- Note: the contents of the Expression field must be ignored (i.e.
2025 -- treated as though it were Empty) if No_Initialization is set True.
2027 -- Note: the back end places some restrictions on the form of the
2028 -- Expression field. If the object being declared is Atomic, then
2029 -- the Expression may not have the form of an aggregate (since this
2030 -- might cause the back end to generate separate assignments). It
2031 -- also cannot be a reference to an object marked as a true constant
2032 -- (Is_True_Constant flag set), where the object is itself initalized
2033 -- with an aggregate. If necessary the front end must generate an
2034 -- extra temporary (with Is_True_Constant set False), and initialize
2035 -- this temporary as required (the temporary itself is not atomic).
2037 -- Note: there is not node kind for object definition. Instead, the
2038 -- corresponding field holds a subtype indication, an array type
2039 -- definition, or (Ada 2005, AI-406) an access definition.
2041 -- N_Object_Declaration
2042 -- Sloc points to first identifier
2043 -- Defining_Identifier (Node1)
2044 -- Aliased_Present (Flag4) set if ALIASED appears
2045 -- Constant_Present (Flag17) set if CONSTANT appears
2046 -- Null_Exclusion_Present (Flag11)
2047 -- Object_Definition (Node4) subtype indic./array type def./ access def.
2048 -- Expression (Node3) (set to Empty if not present)
2049 -- Handler_List_Entry (Node2-Sem)
2050 -- Corresponding_Generic_Association (Node5-Sem)
2051 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2052 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2053 -- No_Initialization (Flag13-Sem)
2054 -- Assignment_OK (Flag15-Sem)
2055 -- Exception_Junk (Flag7-Sem)
2056 -- Delay_Finalize_Attach (Flag14-Sem)
2057 -- Is_Subprogram_Descriptor (Flag16-Sem)
2059 -------------------------------------
2060 -- 3.3.1 Defining Identifier List --
2061 -------------------------------------
2063 -- DEFINING_IDENTIFIER_LIST ::=
2064 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2066 -------------------------------
2067 -- 3.3.2 Number Declaration --
2068 -------------------------------
2070 -- NUMBER_DECLARATION ::=
2071 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2073 -- Although the syntax allows multiple identifiers in the list, the
2074 -- semantics is as though successive declarations were given with
2075 -- identical expressions. To simplify semantic processing, the parser
2076 -- represents a multiple declaration case as a sequence of single
2077 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2078 -- the original source form as described in the section on "Handling
2079 -- of Defining Identifier Lists".
2081 -- N_Number_Declaration
2082 -- Sloc points to first identifier
2083 -- Defining_Identifier (Node1)
2084 -- Expression (Node3)
2085 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2086 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2088 ----------------------------------
2089 -- 3.4 Derived Type Definition --
2090 ----------------------------------
2092 -- DERIVED_TYPE_DEFINITION ::=
2093 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2094 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2096 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2099 -- Note: a record extension part is required if ABSTRACT is present
2101 -- N_Derived_Type_Definition
2102 -- Sloc points to NEW
2103 -- Abstract_Present (Flag4)
2104 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2105 -- Subtype_Indication (Node5)
2106 -- Record_Extension_Part (Node3) (set to Empty if not present)
2107 -- Limited_Present (Flag17)
2108 -- Task_Present (Flag5) set in task interfaces
2109 -- Protected_Present (Flag6) set in protected interfaces
2110 -- Synchronized_Present (Flag7) set in interfaces
2111 -- Interface_List (List2) (set to No_List if none)
2112 -- Interface_Present (Flag16) set in abstract interfaces
2114 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2115 -- Interface_List, and Interface_Present are used for abstract
2116 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2118 ---------------------------
2119 -- 3.5 Range Constraint --
2120 ---------------------------
2122 -- RANGE_CONSTRAINT ::= range RANGE
2124 -- N_Range_Constraint
2125 -- Sloc points to RANGE
2126 -- Range_Expression (Node4)
2133 -- RANGE_ATTRIBUTE_REFERENCE
2134 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2136 -- Note: the case of a range given as a range attribute reference
2137 -- appears directly in the tree as an attribute reference.
2139 -- Note: the field name for a reference to a range is Range_Expression
2140 -- rather than Range, because range is a reserved keyword in Ada!
2142 -- Note: the reason that this node has expression fields is that a
2143 -- range can appear as an operand of a membership test. The Etype
2144 -- field is the type of the range (we do NOT construct an implicit
2145 -- subtype to represent the range exactly).
2148 -- Sloc points to ..
2149 -- Low_Bound (Node1)
2150 -- High_Bound (Node2)
2151 -- Includes_Infinities (Flag11)
2152 -- plus fields for expression
2154 -- Note: if the range appears in a context, such as a subtype
2155 -- declaration, where range checks are required on one or both of
2156 -- the expression fields, then type conversion nodes are inserted
2157 -- to represent the required checks.
2159 ----------------------------------------
2160 -- 3.5.1 Enumeration Type Definition --
2161 ----------------------------------------
2163 -- ENUMERATION_TYPE_DEFINITION ::=
2164 -- (ENUMERATION_LITERAL_SPECIFICATION
2165 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2167 -- Note: the Literals field in the node described below is null for
2168 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2169 -- which special processing handles these types as special cases.
2171 -- N_Enumeration_Type_Definition
2172 -- Sloc points to left parenthesis
2173 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2174 -- End_Label (Node4) (set to Empty if internally generated record)
2176 ----------------------------------------------
2177 -- 3.5.1 Enumeration Literal Specification --
2178 ----------------------------------------------
2180 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2181 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2183 ---------------------------------------
2184 -- 3.5.1 Defining Character Literal --
2185 ---------------------------------------
2187 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2189 -- A defining character literal is an entity, which has additional
2190 -- fields depending on the setting of the Ekind field. These
2191 -- additional fields are defined (and access subprograms declared)
2192 -- in package Einfo.
2194 -- Note: N_Defining_Character_Literal is an extended node whose fields
2195 -- are deliberate layed out to match the layout of fields in an ordinary
2196 -- N_Character_Literal node allowing for easy alteration of a character
2197 -- literal node into a defining character literal node. For details, see
2198 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2200 -- N_Defining_Character_Literal
2201 -- Sloc points to literal
2202 -- Chars (Name1) contains the Name_Id for the identifier
2203 -- Next_Entity (Node2-Sem)
2204 -- Scope (Node3-Sem)
2205 -- Etype (Node5-Sem)
2207 ------------------------------------
2208 -- 3.5.4 Integer Type Definition --
2209 ------------------------------------
2211 -- Note: there is an error in this rule in the latest version of the
2212 -- grammar, so we have retained the old rule pending clarification.
2214 -- INTEGER_TYPE_DEFINITION ::=
2215 -- SIGNED_INTEGER_TYPE_DEFINITION
2216 -- | MODULAR_TYPE_DEFINITION
2218 -------------------------------------------
2219 -- 3.5.4 Signed Integer Type Definition --
2220 -------------------------------------------
2222 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2223 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2225 -- Note: the Low_Bound and High_Bound fields are set to Empty
2226 -- for integer types defined in package Standard.
2228 -- N_Signed_Integer_Type_Definition
2229 -- Sloc points to RANGE
2230 -- Low_Bound (Node1)
2231 -- High_Bound (Node2)
2233 ------------------------------------
2234 -- 3.5.4 Modular Type Definition --
2235 ------------------------------------
2237 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2239 -- N_Modular_Type_Definition
2240 -- Sloc points to MOD
2241 -- Expression (Node3)
2243 ---------------------------------
2244 -- 3.5.6 Real Type Definition --
2245 ---------------------------------
2247 -- REAL_TYPE_DEFINITION ::=
2248 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2250 --------------------------------------
2251 -- 3.5.7 Floating Point Definition --
2252 --------------------------------------
2254 -- FLOATING_POINT_DEFINITION ::=
2255 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2257 -- Note: The Digits_Expression and Real_Range_Specifications fields
2258 -- are set to Empty for floating-point types declared in Standard.
2260 -- N_Floating_Point_Definition
2261 -- Sloc points to DIGITS
2262 -- Digits_Expression (Node2)
2263 -- Real_Range_Specification (Node4) (set to Empty if not present)
2265 -------------------------------------
2266 -- 3.5.7 Real Range Specification --
2267 -------------------------------------
2269 -- REAL_RANGE_SPECIFICATION ::=
2270 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2272 -- N_Real_Range_Specification
2273 -- Sloc points to RANGE
2274 -- Low_Bound (Node1)
2275 -- High_Bound (Node2)
2277 -----------------------------------
2278 -- 3.5.9 Fixed Point Definition --
2279 -----------------------------------
2281 -- FIXED_POINT_DEFINITION ::=
2282 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2284 --------------------------------------------
2285 -- 3.5.9 Ordinary Fixed Point Definition --
2286 --------------------------------------------
2288 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2289 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2291 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2293 -- N_Ordinary_Fixed_Point_Definition
2294 -- Sloc points to DELTA
2295 -- Delta_Expression (Node3)
2296 -- Real_Range_Specification (Node4)
2298 -------------------------------------------
2299 -- 3.5.9 Decimal Fixed Point Definition --
2300 -------------------------------------------
2302 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2303 -- delta static_EXPRESSION
2304 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2306 -- Note: decimal types are not permitted in Ada 83 mode
2308 -- N_Decimal_Fixed_Point_Definition
2309 -- Sloc points to DELTA
2310 -- Delta_Expression (Node3)
2311 -- Digits_Expression (Node2)
2312 -- Real_Range_Specification (Node4) (set to Empty if not present)
2314 ------------------------------
2315 -- 3.5.9 Digits Constraint --
2316 ------------------------------
2318 -- DIGITS_CONSTRAINT ::=
2319 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2321 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2322 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2324 -- N_Digits_Constraint
2325 -- Sloc points to DIGITS
2326 -- Digits_Expression (Node2)
2327 -- Range_Constraint (Node4) (set to Empty if not present)
2329 --------------------------------
2330 -- 3.6 Array Type Definition --
2331 --------------------------------
2333 -- ARRAY_TYPE_DEFINITION ::=
2334 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2336 -----------------------------------------
2337 -- 3.6 Unconstrained Array Definition --
2338 -----------------------------------------
2340 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2341 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2342 -- COMPONENT_DEFINITION
2344 -- Note: dimensionality of array is indicated by number of entries in
2345 -- the Subtype_Marks list, which has one entry for each dimension.
2347 -- N_Unconstrained_Array_Definition
2348 -- Sloc points to ARRAY
2349 -- Subtype_Marks (List2)
2350 -- Component_Definition (Node4)
2352 -----------------------------------
2353 -- 3.6 Index Subtype Definition --
2354 -----------------------------------
2356 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2358 -- There is no explicit node in the tree for an index subtype
2359 -- definition since the N_Unconstrained_Array_Definition node
2360 -- incorporates the type marks which appear in this context.
2362 ---------------------------------------
2363 -- 3.6 Constrained Array Definition --
2364 ---------------------------------------
2366 -- CONSTRAINED_ARRAY_DEFINITION ::=
2367 -- array (DISCRETE_SUBTYPE_DEFINITION
2368 -- {, DISCRETE_SUBTYPE_DEFINITION})
2369 -- of COMPONENT_DEFINITION
2371 -- Note: dimensionality of array is indicated by number of entries
2372 -- in the Discrete_Subtype_Definitions list, which has one entry
2373 -- for each dimension.
2375 -- N_Constrained_Array_Definition
2376 -- Sloc points to ARRAY
2377 -- Discrete_Subtype_Definitions (List2)
2378 -- Component_Definition (Node4)
2380 --------------------------------------
2381 -- 3.6 Discrete Subtype Definition --
2382 --------------------------------------
2384 -- DISCRETE_SUBTYPE_DEFINITION ::=
2385 -- discrete_SUBTYPE_INDICATION | RANGE
2387 -------------------------------
2388 -- 3.6 Component Definition --
2389 -------------------------------
2391 -- COMPONENT_DEFINITION ::=
2392 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2394 -- Note: although the syntax does not permit a component definition to
2395 -- be an anonymous array (and the parser will diagnose such an attempt
2396 -- with an appropriate message), it is possible for anonymous arrays
2397 -- to appear as component definitions. The semantics and back end handle
2398 -- this case properly, and the expander in fact generates such cases.
2399 -- Access_Definition is an optional field that gives support to
2400 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2401 -- Subtype_Indication field or else the Access_Definition field.
2403 -- N_Component_Definition
2404 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2405 -- Aliased_Present (Flag4)
2406 -- Null_Exclusion_Present (Flag11)
2407 -- Subtype_Indication (Node5) (set to Empty if not present)
2408 -- Access_Definition (Node3) (set to Empty if not present)
2410 -----------------------------
2411 -- 3.6.1 Index Constraint --
2412 -----------------------------
2414 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2416 -- It is not in general possible to distinguish between discriminant
2417 -- constraints and index constraints at parse time, since a simple
2418 -- name could be either the subtype mark of a discrete range, or an
2419 -- expression in a discriminant association with no name. Either
2420 -- entry appears simply as the name, and the semantic parse must
2421 -- distinguish between the two cases. Thus we use a common tree
2422 -- node format for both of these constraint types.
2424 -- See Discriminant_Constraint for format of node
2426 ---------------------------
2427 -- 3.6.1 Discrete Range --
2428 ---------------------------
2430 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2432 ----------------------------
2433 -- 3.7 Discriminant Part --
2434 ----------------------------
2436 -- DISCRIMINANT_PART ::=
2437 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2439 ------------------------------------
2440 -- 3.7 Unknown Discriminant Part --
2441 ------------------------------------
2443 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2445 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2447 -- There is no explicit node in the tree for an unknown discriminant
2448 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2451 ----------------------------------
2452 -- 3.7 Known Discriminant Part --
2453 ----------------------------------
2455 -- KNOWN_DISCRIMINANT_PART ::=
2456 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2458 -------------------------------------
2459 -- 3.7 Discriminant Specification --
2460 -------------------------------------
2462 -- DISCRIMINANT_SPECIFICATION ::=
2463 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2464 -- [:= DEFAULT_EXPRESSION]
2465 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2466 -- [:= DEFAULT_EXPRESSION]
2468 -- Although the syntax allows multiple identifiers in the list, the
2469 -- semantics is as though successive specifications were given with
2470 -- identical type definition and expression components. To simplify
2471 -- semantic processing, the parser represents a multiple declaration
2472 -- case as a sequence of single specifications, using the More_Ids and
2473 -- Prev_Ids flags to preserve the original source form as described
2474 -- in the section on "Handling of Defining Identifier Lists".
2476 -- N_Discriminant_Specification
2477 -- Sloc points to first identifier
2478 -- Defining_Identifier (Node1)
2479 -- Null_Exclusion_Present (Flag11)
2480 -- Discriminant_Type (Node5) subtype mark or access parameter definition
2481 -- Expression (Node3) (set to Empty if no default expression)
2482 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2483 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2485 -----------------------------
2486 -- 3.7 Default Expression --
2487 -----------------------------
2489 -- DEFAULT_EXPRESSION ::= EXPRESSION
2491 ------------------------------------
2492 -- 3.7.1 Discriminant Constraint --
2493 ------------------------------------
2495 -- DISCRIMINANT_CONSTRAINT ::=
2496 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2498 -- It is not in general possible to distinguish between discriminant
2499 -- constraints and index constraints at parse time, since a simple
2500 -- name could be either the subtype mark of a discrete range, or an
2501 -- expression in a discriminant association with no name. Either
2502 -- entry appears simply as the name, and the semantic parse must
2503 -- distinguish between the two cases. Thus we use a common tree
2504 -- node format for both of these constraint types.
2506 -- N_Index_Or_Discriminant_Constraint
2507 -- Sloc points to left paren
2508 -- Constraints (List1) points to list of discrete ranges or
2509 -- discriminant associations
2511 -------------------------------------
2512 -- 3.7.1 Discriminant Association --
2513 -------------------------------------
2515 -- DISCRIMINANT_ASSOCIATION ::=
2516 -- [discriminant_SELECTOR_NAME
2517 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2519 -- Note: a discriminant association that has no selector name list
2520 -- appears directly as an expression in the tree.
2522 -- N_Discriminant_Association
2523 -- Sloc points to first token of discriminant association
2524 -- Selector_Names (List1) (always non-empty, since if no selector
2525 -- names are present, this node is not used, see comment above)
2526 -- Expression (Node3)
2528 ---------------------------------
2529 -- 3.8 Record Type Definition --
2530 ---------------------------------
2532 -- RECORD_TYPE_DEFINITION ::=
2533 -- [[abstract] tagged] [limited] RECORD_DEFINITION
2535 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2537 -- There is no explicit node in the tree for a record type definition.
2538 -- Instead the flags for Tagged_Present and Limited_Present appear in
2539 -- the N_Record_Definition node for a record definition appearing in
2540 -- the context of a record type definition.
2542 ----------------------------
2543 -- 3.8 Record Definition --
2544 ----------------------------
2546 -- RECORD_DEFINITION ::=
2552 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
2553 -- flags appear only for a record definition appearing in a record
2556 -- Note: the NULL RECORD case is not permitted in Ada 83
2558 -- N_Record_Definition
2559 -- Sloc points to RECORD or NULL
2560 -- End_Label (Node4) (set to Empty if internally generated record)
2561 -- Abstract_Present (Flag4)
2562 -- Tagged_Present (Flag15)
2563 -- Limited_Present (Flag17)
2564 -- Component_List (Node1) empty in null record case
2565 -- Null_Present (Flag13) set in null record case
2566 -- Task_Present (Flag5) set in task interfaces
2567 -- Protected_Present (Flag6) set in protected interfaces
2568 -- Synchronized_Present (Flag7) set in interfaces
2569 -- Interface_Present (Flag16) set in abstract interfaces
2570 -- Interface_List (List2) (set to No_List if none)
2572 -- Note: Task_Present, Protected_Present, Synchronized _Present,
2573 -- Interface_List and Interface_Present are used for abstract
2574 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2576 -------------------------
2577 -- 3.8 Component List --
2578 -------------------------
2580 -- COMPONENT_LIST ::=
2581 -- COMPONENT_ITEM {COMPONENT_ITEM}
2582 -- | {COMPONENT_ITEM} VARIANT_PART
2586 -- Sloc points to first token of component list
2587 -- Component_Items (List3)
2588 -- Variant_Part (Node4) (set to Empty if no variant part)
2589 -- Null_Present (Flag13)
2591 -------------------------
2592 -- 3.8 Component Item --
2593 -------------------------
2595 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2597 -- Note: A component item can also be a pragma, and in the tree
2598 -- that is obtained after semantic processing, a component item
2599 -- can be an N_Null node resulting from a non-recognized pragma.
2601 --------------------------------
2602 -- 3.8 Component Declaration --
2603 --------------------------------
2605 -- COMPONENT_DECLARATION ::=
2606 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2607 -- [:= DEFAULT_EXPRESSION]
2609 -- Note: although the syntax does not permit a component definition to
2610 -- be an anonymous array (and the parser will diagnose such an attempt
2611 -- with an appropriate message), it is possible for anonymous arrays
2612 -- to appear as component definitions. The semantics and back end handle
2613 -- this case properly, and the expander in fact generates such cases.
2615 -- Although the syntax allows multiple identifiers in the list, the
2616 -- semantics is as though successive declarations were given with the
2617 -- same component definition and expression components. To simplify
2618 -- semantic processing, the parser represents a multiple declaration
2619 -- case as a sequence of single declarations, using the More_Ids and
2620 -- Prev_Ids flags to preserve the original source form as described
2621 -- in the section on "Handling of Defining Identifier Lists".
2623 -- N_Component_Declaration
2624 -- Sloc points to first identifier
2625 -- Defining_Identifier (Node1)
2626 -- Component_Definition (Node4)
2627 -- Expression (Node3) (set to Empty if no default expression)
2628 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2629 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2631 -------------------------
2632 -- 3.8.1 Variant Part --
2633 -------------------------
2636 -- case discriminant_DIRECT_NAME is
2641 -- Note: the variants list can contain pragmas as well as variants.
2642 -- In a properly formed program there is at least one variant.
2645 -- Sloc points to CASE
2649 --------------------
2651 --------------------
2654 -- when DISCRETE_CHOICE_LIST =>
2658 -- Sloc points to WHEN
2659 -- Discrete_Choices (List4)
2660 -- Component_List (Node1)
2661 -- Enclosing_Variant (Node2-Sem)
2662 -- Present_Expr (Uint3-Sem)
2663 -- Dcheck_Function (Node5-Sem)
2665 ---------------------------------
2666 -- 3.8.1 Discrete Choice List --
2667 ---------------------------------
2669 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2671 ----------------------------
2672 -- 3.8.1 Discrete Choice --
2673 ----------------------------
2675 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2677 -- Note: in Ada 83 mode, the expression must be a simple expression
2679 -- The only choice that appears explicitly is the OTHERS choice, as
2680 -- defined here. Other cases of discrete choice (expression and
2681 -- discrete range) appear directly. This production is also used
2682 -- for the OTHERS possibility of an exception choice.
2684 -- Note: in accordance with the syntax, the parser does not check that
2685 -- OTHERS appears at the end on its own in a choice list context. This
2686 -- is a semantic check.
2689 -- Sloc points to OTHERS
2690 -- Others_Discrete_Choices (List1-Sem)
2691 -- All_Others (Flag11-Sem)
2693 ----------------------------------
2694 -- 3.9.1 Record Extension Part --
2695 ----------------------------------
2697 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2699 -- Note: record extension parts are not permitted in Ada 83 mode
2701 --------------------------------------
2702 -- 3.9.4 Interface Type Definition --
2703 --------------------------------------
2705 -- INTERFACE_TYPE_DEFINITION ::=
2706 -- [limited | task | protected | synchronized]
2707 -- interface [interface_list]
2709 -- Note: Interfaces are implemented with N_Record_Definition and
2710 -- N_Derived_Type_Definition nodes because most of the support
2711 -- for the analysis of abstract types has been reused to
2712 -- analyze abstract interfaces.
2714 ----------------------------------
2715 -- 3.10 Access Type Definition --
2716 ----------------------------------
2718 -- ACCESS_TYPE_DEFINITION ::=
2719 -- ACCESS_TO_OBJECT_DEFINITION
2720 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2722 --------------------------
2723 -- 3.10 Null Exclusion --
2724 --------------------------
2726 -- NULL_EXCLUSION ::= not null
2728 ---------------------------------------
2729 -- 3.10 Access To Object Definition --
2730 ---------------------------------------
2732 -- ACCESS_TO_OBJECT_DEFINITION ::=
2733 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
2734 -- SUBTYPE_INDICATION
2736 -- N_Access_To_Object_Definition
2737 -- Sloc points to ACCESS
2738 -- All_Present (Flag15)
2739 -- Null_Exclusion_Present (Flag11)
2740 -- Subtype_Indication (Node5)
2741 -- Constant_Present (Flag17)
2743 -----------------------------------
2744 -- 3.10 General Access Modifier --
2745 -----------------------------------
2747 -- GENERAL_ACCESS_MODIFIER ::= all | constant
2749 -- Note: general access modifiers are not permitted in Ada 83 mode
2751 -- There is no explicit node in the tree for general access modifier.
2752 -- Instead the All_Present or Constant_Present flags are set in the
2755 -------------------------------------------
2756 -- 3.10 Access To Subprogram Definition --
2757 -------------------------------------------
2759 -- ACCESS_TO_SUBPROGRAM_DEFINITION
2760 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
2761 -- | [NULL_EXCLUSION] access [protected] function
2762 -- PARAMETER_AND_RESULT_PROFILE
2764 -- Note: access to subprograms are not permitted in Ada 83 mode
2766 -- N_Access_Function_Definition
2767 -- Sloc points to ACCESS
2768 -- Null_Exclusion_Present (Flag11)
2769 -- Protected_Present (Flag6)
2770 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2771 -- Result_Definition (Node4) result subtype (subtype mark or access def)
2773 -- N_Access_Procedure_Definition
2774 -- Sloc points to ACCESS
2775 -- Null_Exclusion_Present (Flag11)
2776 -- Protected_Present (Flag6)
2777 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2779 -----------------------------
2780 -- 3.10 Access Definition --
2781 -----------------------------
2783 -- ACCESS_DEFINITION ::=
2784 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
2785 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2787 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
2789 -- N_Access_Definition
2790 -- Sloc points to ACCESS
2791 -- Null_Exclusion_Present (Flag11)
2792 -- All_Present (Flag15)
2793 -- Constant_Present (Flag17)
2794 -- Subtype_Mark (Node4)
2795 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
2797 -----------------------------------------
2798 -- 3.10.1 Incomplete Type Declaration --
2799 -----------------------------------------
2801 -- INCOMPLETE_TYPE_DECLARATION ::=
2802 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2804 -- N_Incomplete_Type_Declaration
2805 -- Sloc points to TYPE
2806 -- Defining_Identifier (Node1)
2807 -- Discriminant_Specifications (List4) (set to No_List if no
2808 -- discriminant part, or if the discriminant part is an
2809 -- unknown discriminant part)
2810 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
2811 -- Tagged_Present (Flag15)
2813 ----------------------------
2814 -- 3.11 Declarative Part --
2815 ----------------------------
2817 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
2819 -- Note: although the parser enforces the syntactic requirement that
2820 -- a declarative part can contain only declarations, the semantic
2821 -- processing may add statements to the list of actions in a
2822 -- declarative part, so the code generator should be prepared
2823 -- to accept a statement in this position.
2825 ----------------------------
2826 -- 3.11 Declarative Item --
2827 ----------------------------
2829 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
2831 ----------------------------------
2832 -- 3.11 Basic Declarative Item --
2833 ----------------------------------
2835 -- BASIC_DECLARATIVE_ITEM ::=
2836 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
2842 -- BODY ::= PROPER_BODY | BODY_STUB
2844 -----------------------
2845 -- 3.11 Proper Body --
2846 -----------------------
2849 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
2856 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
2857 -- | INDEXED_COMPONENT | SLICE
2858 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
2859 -- | TYPE_CONVERSION | FUNCTION_CALL
2860 -- | CHARACTER_LITERAL
2862 ----------------------
2863 -- 4.1 Direct Name --
2864 ----------------------
2866 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
2872 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
2874 -------------------------------
2875 -- 4.1 Explicit Dereference --
2876 -------------------------------
2878 -- EXPLICIT_DEREFERENCE ::= NAME . all
2880 -- N_Explicit_Dereference
2881 -- Sloc points to ALL
2883 -- Actual_Designated_Subtype (Node4-Sem)
2884 -- plus fields for expression
2886 -------------------------------
2887 -- 4.1 Implicit Dereference --
2888 -------------------------------
2890 -- IMPLICIT_DEREFERENCE ::= NAME
2892 ------------------------------
2893 -- 4.1.1 Indexed Component --
2894 ------------------------------
2896 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
2898 -- Note: the parser may generate this node in some situations where it
2899 -- should be a function call. The semantic pass must correct this
2900 -- misidentification (which is inevitable at the parser level).
2902 -- N_Indexed_Component
2903 -- Sloc contains a copy of the Sloc value of the Prefix
2905 -- Expressions (List1)
2906 -- plus fields for expression
2908 -- Note: if any of the subscripts requires a range check, then the
2909 -- Do_Range_Check flag is set on the corresponding expression, with
2910 -- the index type being determined from the type of the Prefix, which
2911 -- references the array being indexed.
2913 -- Note: in a fully analyzed and expanded indexed component node, and
2914 -- hence in any such node that gigi sees, if the prefix is an access
2915 -- type, then an explicit dereference operation has been inserted.
2921 -- SLICE ::= PREFIX (DISCRETE_RANGE)
2923 -- Note: an implicit subtype is created to describe the resulting
2924 -- type, so that the bounds of this type are the bounds of the slice.
2927 -- Sloc points to first token of prefix
2929 -- Discrete_Range (Node4)
2930 -- plus fields for expression
2932 -------------------------------
2933 -- 4.1.3 Selected Component --
2934 -------------------------------
2936 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
2938 -- Note: selected components that are semantically expanded names get
2939 -- changed during semantic processing into the separate N_Expanded_Name
2940 -- node. See description of this node in the section on semantic nodes.
2942 -- N_Selected_Component
2943 -- Sloc points to period
2945 -- Selector_Name (Node2)
2946 -- Associated_Node (Node4-Sem)
2947 -- Do_Discriminant_Check (Flag13-Sem)
2948 -- Is_In_Discriminant_Check (Flag11-Sem)
2949 -- plus fields for expression
2951 --------------------------
2952 -- 4.1.3 Selector Name --
2953 --------------------------
2955 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
2957 --------------------------------
2958 -- 4.1.4 Attribute Reference --
2959 --------------------------------
2961 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
2963 -- Note: the syntax is quite ambiguous at this point. Consider:
2965 -- A'Length (X) X is part of the attribute designator
2966 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
2967 -- A'Class (X) X is the expression of a type conversion
2969 -- It would be possible for the parser to distinguish these cases
2970 -- by looking at the attribute identifier. However, that would mean
2971 -- more work in introducing new implementation defined attributes,
2972 -- and also it would mean that special processing for attributes
2973 -- would be scattered around, instead of being centralized in the
2974 -- semantic routine that handles an N_Attribute_Reference node.
2975 -- Consequently, the parser in all the above cases stores the
2976 -- expression (X in these examples) as a single element list in
2977 -- in the Expressions field of the N_Attribute_Reference node.
2979 -- Similarly, for attributes like Max which take two arguments,
2980 -- we store the two arguments as a two element list in the
2981 -- Expressions field. Of course it is clear at parse time that
2982 -- this case is really a function call with an attribute as the
2983 -- prefix, but it turns out to be convenient to handle the two
2984 -- argument case in a similar manner to the one argument case,
2985 -- and indeed in general the parser will accept any number of
2986 -- expressions in this position and store them as a list in the
2987 -- attribute reference node. This allows for future addition of
2988 -- attributes that take more than two arguments.
2990 -- Note: named associates are not permitted in function calls where
2991 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
2992 -- to skip the normal subprogram argument processing.
2994 -- Note: for the attributes whose designators are technically keywords,
2995 -- i.e. digits, access, delta, range, the Attribute_Name field contains
2996 -- the corresponding name, even though no identifier is involved.
2998 -- Note: the generated code may contain stream attributes applied to
2999 -- limited types for which no stream routines exist officially. In such
3000 -- case, the result is to use the stream attribute for the underlying
3001 -- full type, or in the case of a protected type, the components
3002 -- (including any disriminants) are merely streamed in order.
3004 -- See Exp_Attr for a complete description of which attributes are
3005 -- passed onto Gigi, and which are handled entirely by the front end.
3007 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3008 -- a non-standard enumeration type or a nonzero/zero semantics
3009 -- boolean type, so the value is simply the stored representation.
3011 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3012 -- references a subprogram that is a renaming, then the front end must
3013 -- rewrite the attribute to refer directly to the renamed entity.
3015 -- Note: In generated code, the Address and Unrestricted_Access
3016 -- attributes can be applied to any expression, and the meaning is
3017 -- to create an object containing the value (the object is in the
3018 -- current stack frame), and pass the address of this value. If the
3019 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3020 -- is taken must be on a byte (storage unit) boundary, and if it is
3021 -- not (or may not be), then the generated code must create a copy
3022 -- that is byte aligned, and pass the address of this copy.
3024 -- N_Attribute_Reference
3025 -- Sloc points to apostrophe
3027 -- Attribute_Name (Name2) identifier name from attribute designator
3028 -- Expressions (List1) (set to No_List if no associated expressions)
3029 -- Entity (Node4-Sem) used if the attribute yields a type
3030 -- Associated_Node (Node4-Sem)
3031 -- Do_Overflow_Check (Flag17-Sem)
3032 -- Redundant_Use (Flag13-Sem)
3033 -- Must_Be_Byte_Aligned (Flag14)
3034 -- plus fields for expression
3036 ---------------------------------
3037 -- 4.1.4 Attribute Designator --
3038 ---------------------------------
3040 -- ATTRIBUTE_DESIGNATOR ::=
3041 -- IDENTIFIER [(static_EXPRESSION)]
3042 -- | access | delta | digits
3044 -- There is no explicit node in the tree for an attribute designator.
3045 -- Instead the Attribute_Name and Expressions fields of the parent
3046 -- node (N_Attribute_Reference node) hold the information.
3048 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3049 -- designator, then they are treated as identifiers internally
3050 -- rather than the keywords of the same name.
3052 --------------------------------------
3053 -- 4.1.4 Range Attribute Reference --
3054 --------------------------------------
3056 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3058 -- A range attribute reference is represented in the tree using the
3059 -- normal N_Attribute_Reference node.
3061 ---------------------------------------
3062 -- 4.1.4 Range Attribute Designator --
3063 ---------------------------------------
3065 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3067 -- A range attribute designator is represented in the tree using the
3068 -- normal N_Attribute_Reference node.
3070 --------------------
3072 --------------------
3075 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3077 -----------------------------
3078 -- 4.3.1 Record Aggregate --
3079 -----------------------------
3081 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3084 -- Sloc points to left parenthesis
3085 -- Expressions (List1) (set to No_List if none or null record case)
3086 -- Component_Associations (List2) (set to No_List if none)
3087 -- Null_Record_Present (Flag17)
3088 -- Aggregate_Bounds (Node3-Sem)
3089 -- Associated_Node (Node4-Sem)
3090 -- Static_Processing_OK (Flag4-Sem)
3091 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3092 -- Expansion_Delayed (Flag11-Sem)
3093 -- Has_Self_Reference (Flag13-Sem)
3094 -- plus fields for expression
3096 -- Note: this structure is used for both record and array aggregates
3097 -- since the two cases are not separable by the parser. The parser
3098 -- makes no attempt to enforce consistency here, so it is up to the
3099 -- semantic phase to make sure that the aggregate is consistent (i.e.
3100 -- that it is not a "half-and-half" case that mixes record and array
3101 -- syntax. In particular, for a record aggregate, the expressions
3102 -- field will be set if there are positional associations.
3104 -- Note: N_Aggregate is not used for all aggregates; in particular,
3105 -- there is a separate node kind for extension aggregates.
3107 -- Note: gigi/gcc can handle array aggregates correctly providing that
3108 -- they are entirely positional, and the array subtype involved has a
3109 -- known at compile time length and is not bit packed, or a convention
3110 -- Fortran array with more than one dimension. If these conditions
3111 -- are not met, then the front end must translate the aggregate into
3112 -- an appropriate set of assignments into a temporary.
3114 -- Note: for the record aggregate case, gigi/gcc can handle all cases
3115 -- of record aggregates, including those for packed, and rep-claused
3116 -- records, and also variant records, providing that there are no
3117 -- variable length fields whose size is not known at runtime, and
3118 -- providing that the aggregate is presented in fully named form.
3120 ----------------------------------------------
3121 -- 4.3.1 Record Component Association List --
3122 ----------------------------------------------
3124 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3125 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3128 -- There is no explicit node in the tree for a record component
3129 -- association list. Instead the Null_Record_Present flag is set in
3130 -- the parent node for the NULL RECORD case.
3132 ------------------------------------------------------
3133 -- 4.3.1 Record Component Association (also 4.3.3) --
3134 ------------------------------------------------------
3136 -- RECORD_COMPONENT_ASSOCIATION ::=
3137 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3139 -- N_Component_Association
3140 -- Sloc points to first selector name
3142 -- Loop_Actions (List2-Sem)
3143 -- Expression (Node3)
3144 -- Box_Present (Flag15)
3146 -- Note: this structure is used for both record component associations
3147 -- and array component associations, since the two cases aren't always
3148 -- separable by the parser. The choices list may represent either a
3149 -- list of selector names in the record aggregate case, or a list of
3150 -- discrete choices in the array aggregate case or an N_Others_Choice
3151 -- node (which appears as a singleton list). Box_Present gives support
3152 -- to Ada 2005 (AI-287).
3154 -----------------------------------
3155 -- 4.3.1 Commponent Choice List --
3156 -----------------------------------
3158 -- COMPONENT_CHOICE_LIST ::=
3159 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3162 -- The entries of a component choice list appear in the Choices list
3163 -- of the associated N_Component_Association, as either selector
3164 -- names, or as an N_Others_Choice node.
3166 --------------------------------
3167 -- 4.3.2 Extension Aggregate --
3168 --------------------------------
3170 -- EXTENSION_AGGREGATE ::=
3171 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3173 -- Note: extension aggregates are not permitted in Ada 83 mode
3175 -- N_Extension_Aggregate
3176 -- Sloc points to left parenthesis
3177 -- Ancestor_Part (Node3)
3178 -- Associated_Node (Node4-Sem)
3179 -- Expressions (List1) (set to No_List if none or null record case)
3180 -- Component_Associations (List2) (set to No_List if none)
3181 -- Null_Record_Present (Flag17)
3182 -- Expansion_Delayed (Flag11-Sem)
3183 -- Has_Self_Reference (Flag13-Sem)
3184 -- plus fields for expression
3186 --------------------------
3187 -- 4.3.2 Ancestor Part --
3188 --------------------------
3190 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3192 ----------------------------
3193 -- 4.3.3 Array Aggregate --
3194 ----------------------------
3196 -- ARRAY_AGGREGATE ::=
3197 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3199 ---------------------------------------
3200 -- 4.3.3 Positional Array Aggregate --
3201 ---------------------------------------
3203 -- POSITIONAL_ARRAY_AGGREGATE ::=
3204 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3205 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3207 -- See Record_Aggregate (4.3.1) for node structure
3209 ----------------------------------
3210 -- 4.3.3 Named Array Aggregate --
3211 ----------------------------------
3213 -- NAMED_ARRAY_AGGREGATE ::=
3214 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3216 -- See Record_Aggregate (4.3.1) for node structure
3218 ----------------------------------------
3219 -- 4.3.3 Array Component Association --
3220 ----------------------------------------
3222 -- ARRAY_COMPONENT_ASSOCIATION ::=
3223 -- DISCRETE_CHOICE_LIST => EXPRESSION
3225 -- See Record_Component_Association (4.3.1) for node structure
3227 --------------------------------------------------
3228 -- 4.4 Expression/Relation/Term/Factor/Primary --
3229 --------------------------------------------------
3232 -- RELATION {and RELATION} | RELATION {and then RELATION}
3233 -- | RELATION {or RELATION} | RELATION {or else RELATION}
3234 -- | RELATION {xor RELATION}
3237 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3238 -- | SIMPLE_EXPRESSION [not] in RANGE
3239 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3241 -- SIMPLE_EXPRESSION ::=
3242 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3244 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3246 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3248 -- No nodes are generated for any of these constructs. Instead, the
3249 -- node for the operator appears directly. When we refer to an
3250 -- expression in this description, we mean any of the possible
3251 -- consistuent components of an expression (e.g. identifier is
3252 -- an example of an expression).
3259 -- NUMERIC_LITERAL | null
3260 -- | STRING_LITERAL | AGGREGATE
3261 -- | NAME | QUALIFIED_EXPRESSION
3262 -- | ALLOCATOR | (EXPRESSION)
3264 -- Usually there is no explicit node in the tree for primary. Instead
3265 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3266 -- exceptions. First, there is an explicit node for a null primary.
3269 -- Sloc points to NULL
3270 -- plus fields for expression
3272 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3273 -- that the parser keep track of which subexpressions are enclosed
3274 -- in parentheses, and how many levels of parentheses are used. This
3275 -- information is required for optimization purposes, and also for
3276 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3277 -- conform with ((((1)))) in the body).
3279 -- The parentheses are recorded by keeping a Paren_Count field in every
3280 -- subexpression node (it is actually present in all nodes, but only
3281 -- used in subexpression nodes). This count records the number of
3282 -- levels of parentheses. If the number of levels in the source exceeds
3283 -- the maximum accomodated by this count, then the count is simply left
3284 -- at the maximum value. This means that there are some pathalogical
3285 -- cases of failure to detect conformance failures (e.g. an expression
3286 -- with 500 levels of parens will conform with one with 501 levels),
3287 -- but we do not need to lose sleep over this.
3289 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3290 -- type N_Parenthesized_Expression used to accurately record unlimited
3291 -- numbers of levels of parentheses. However, it turned out to be a
3292 -- real nuisance to have to take into account the possible presence of
3293 -- this node during semantic analysis, since basically parentheses have
3294 -- zero relevance to semantic analysis.
3296 -- Note: the level of parentheses always present in things like
3297 -- aggregates does not count, only the parentheses in the primary
3298 -- (EXPRESSION) affect the setting of the Paren_Count field.
3300 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3301 -- treated as though it were Empty) if No_Initialization is set True.
3303 --------------------------------------
3304 -- 4.5 Short Circuit Control Forms --
3305 --------------------------------------
3308 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3310 -- Gigi restriction: For both these control forms, the operand and
3311 -- result types are always Standard.Boolean. The expander inserts the
3312 -- required conversion operations where needed to ensure this is the
3316 -- Sloc points to AND of AND THEN
3317 -- Left_Opnd (Node2)
3318 -- Right_Opnd (Node3)
3319 -- Actions (List1-Sem)
3320 -- plus fields for expression
3323 -- Sloc points to OR of OR ELSE
3324 -- Left_Opnd (Node2)
3325 -- Right_Opnd (Node3)
3326 -- Actions (List1-Sem)
3327 -- plus fields for expression
3329 -- Note: The Actions field is used to hold actions associated with
3330 -- the right hand operand. These have to be treated specially since
3331 -- they are not unconditionally executed. See Insert_Actions for a
3332 -- more detailed description of how these actions are handled.
3334 ---------------------------
3335 -- 4.5 Membership Tests --
3336 ---------------------------
3339 -- SIMPLE_EXPRESSION [not] in RANGE
3340 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3342 -- Note: although the grammar above allows only a range or a
3343 -- subtype mark, the parser in fact will accept any simple
3344 -- expression in place of a subtype mark. This means that the
3345 -- semantic analyzer must be prepared to deal with, and diagnose
3346 -- a simple expression other than a name for the right operand.
3347 -- This simplifies error recovery in the parser.
3350 -- Sloc points to IN
3351 -- Left_Opnd (Node2)
3352 -- Right_Opnd (Node3)
3353 -- plus fields for expression
3356 -- Sloc points to NOT of NOT IN
3357 -- Left_Opnd (Node2)
3358 -- Right_Opnd (Node3)
3359 -- plus fields for expression
3361 --------------------
3363 --------------------
3365 -- LOGICAL_OPERATOR ::= and | or | xor
3367 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3369 -- BINARY_ADDING_OPERATOR ::= + | - | &
3371 -- UNARY_ADDING_OPERATOR ::= + | -
3373 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3375 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3377 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3384 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3385 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3386 -- All handling of smalls for multiplication and division is handled
3387 -- by the front end (mod and rem result only from expansion). Gigi
3388 -- thus never needs to worry about small values (for other operators
3389 -- operating on fixed-point, e.g. addition, the small value does not
3390 -- have any semantic effect anyway, these are always integer operations.
3392 -- Gigi restriction: For all operators taking Boolean operands, the
3393 -- type is always Standard.Boolean. The expander inserts the required
3394 -- conversion operations where needed to ensure this is the case.
3397 -- Sloc points to AND
3398 -- Do_Length_Check (Flag4-Sem)
3399 -- plus fields for binary operator
3400 -- plus fields for expression
3403 -- Sloc points to OR
3404 -- Do_Length_Check (Flag4-Sem)
3405 -- plus fields for binary operator
3406 -- plus fields for expression
3409 -- Sloc points to XOR
3410 -- Do_Length_Check (Flag4-Sem)
3411 -- plus fields for binary operator
3412 -- plus fields for expression
3416 -- plus fields for binary operator
3417 -- plus fields for expression
3420 -- Sloc points to /=
3421 -- plus fields for binary operator
3422 -- plus fields for expression
3426 -- plus fields for binary operator
3427 -- plus fields for expression
3430 -- Sloc points to <=
3431 -- plus fields for binary operator
3432 -- plus fields for expression
3436 -- plus fields for binary operator
3437 -- plus fields for expression
3440 -- Sloc points to >=
3441 -- plus fields for binary operator
3442 -- plus fields for expression
3445 -- Sloc points to + (binary)
3446 -- plus fields for binary operator
3447 -- plus fields for expression
3450 -- Sloc points to - (binary)
3451 -- plus fields for binary operator
3452 -- plus fields for expression
3456 -- Is_Component_Left_Opnd (Flag13-Sem)
3457 -- Is_Component_Right_Opnd (Flag14-Sem)
3458 -- plus fields for binary operator
3459 -- plus fields for expression
3463 -- Treat_Fixed_As_Integer (Flag14-Sem)
3464 -- Rounded_Result (Flag18-Sem)
3465 -- plus fields for binary operator
3466 -- plus fields for expression
3470 -- Treat_Fixed_As_Integer (Flag14-Sem)
3471 -- Do_Division_Check (Flag13-Sem)
3472 -- Rounded_Result (Flag18-Sem)
3473 -- plus fields for binary operator
3474 -- plus fields for expression
3477 -- Sloc points to MOD
3478 -- Treat_Fixed_As_Integer (Flag14-Sem)
3479 -- Do_Division_Check (Flag13-Sem)
3480 -- plus fields for binary operator
3481 -- plus fields for expression
3484 -- Sloc points to REM
3485 -- Treat_Fixed_As_Integer (Flag14-Sem)
3486 -- Do_Division_Check (Flag13-Sem)
3487 -- plus fields for binary operator
3488 -- plus fields for expression
3491 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
3492 -- Sloc points to **
3493 -- plus fields for binary operator
3494 -- plus fields for expression
3497 -- Sloc points to + (unary)
3498 -- plus fields for unary operator
3499 -- plus fields for expression
3502 -- Sloc points to - (unary)
3503 -- plus fields for unary operator
3504 -- plus fields for expression
3507 -- Sloc points to ABS
3508 -- plus fields for unary operator
3509 -- plus fields for expression
3512 -- Sloc points to NOT
3513 -- plus fields for unary operator
3514 -- plus fields for expression
3516 -- See also shift operators in section B.2
3518 -- Note on fixed-point operations passed to Gigi: For adding operators,
3519 -- the semantics is to treat these simply as integer operations, with
3520 -- the small values being ignored (the bounds are already stored in
3521 -- units of small, so that constraint checking works as usual). For the
3522 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
3523 -- point operands if the Treat_Fixed_As_Integer flag is set and will
3524 -- thus treat these nodes in identical manner, ignoring small values.
3526 --------------------------
3527 -- 4.6 Type Conversion --
3528 --------------------------
3530 -- TYPE_CONVERSION ::=
3531 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3533 -- In the (NAME) case, the name is stored as the expression
3535 -- Note: the parser never generates a type conversion node, since it
3536 -- looks like an indexed component which is generated by preference.
3537 -- The semantic pass must correct this misidentification.
3539 -- Gigi handles conversions that involve no change in the root type,
3540 -- and also all conversions from integer to floating-point types.
3541 -- Conversions from floating-point to integer are only handled in
3542 -- the case where Float_Truncate flag set. Other conversions from
3543 -- floating-point to integer (involving rounding) and all conversions
3544 -- involving fixed-point types are handled by the expander.
3546 -- Sprint syntax if Float_Truncate set: X^(Y)
3547 -- Sprint syntax if Conversion_OK set X?(Y)
3548 -- Sprint syntax if both flags set X?^(Y)
3550 -- Note: If either the operand or result type is fixed-point, Gigi will
3551 -- only see a type conversion node with Conversion_OK set. The front end
3552 -- takes care of all handling of small's for fixed-point conversions.
3554 -- N_Type_Conversion
3555 -- Sloc points to first token of subtype mark
3556 -- Subtype_Mark (Node4)
3557 -- Expression (Node3)
3558 -- Do_Tag_Check (Flag13-Sem)
3559 -- Do_Length_Check (Flag4-Sem)
3560 -- Do_Overflow_Check (Flag17-Sem)
3561 -- Float_Truncate (Flag11-Sem)
3562 -- Rounded_Result (Flag18-Sem)
3563 -- Conversion_OK (Flag14-Sem)
3564 -- plus fields for expression
3566 -- Note: if a range check is required, then the Do_Range_Check flag
3567 -- is set in the Expression with the check being done against the
3568 -- target type range (after the base type conversion, if any).
3570 -------------------------------
3571 -- 4.7 Qualified Expression --
3572 -------------------------------
3574 -- QUALIFIED_EXPRESSION ::=
3575 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3577 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3578 -- the expression, so the Expression field of this node always points
3579 -- to a parenthesized expression in this case (i.e. Paren_Count will
3580 -- always be non-zero for the referenced expression if it is not an
3583 -- N_Qualified_Expression
3584 -- Sloc points to apostrophe
3585 -- Subtype_Mark (Node4)
3586 -- Expression (Node3) expression or aggregate
3587 -- plus fields for expression
3589 --------------------
3591 --------------------
3594 -- new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3596 -- Sprint syntax (when storage pool present)
3597 -- new xxx (storage_pool = pool)
3600 -- Sloc points to NEW
3601 -- Expression (Node3) subtype indication or qualified expression
3602 -- Null_Exclusion_Present (Flag11)
3603 -- Storage_Pool (Node1-Sem)
3604 -- Procedure_To_Call (Node2-Sem)
3605 -- No_Initialization (Flag13-Sem)
3606 -- Do_Storage_Check (Flag17-Sem)
3607 -- plus fields for expression
3609 ---------------------------------
3610 -- 5.1 Sequence Of Statements --
3611 ---------------------------------
3613 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3615 -- Note: Although the parser will not accept a declaration as a
3616 -- statement, the semantic analyzer may insert declarations (e.g.
3617 -- declarations of implicit types needed for execution of other
3618 -- statements) into a sequence of statements, so the code genmerator
3619 -- should be prepared to accept a declaration where a statement is
3620 -- expected. Note also that pragmas can appear as statements.
3622 --------------------
3624 --------------------
3627 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3629 -- There is no explicit node in the tree for a statement. Instead, the
3630 -- individual statement appears directly. Labels are treated as a
3631 -- kind of statement, i.e. they are linked into a statement list at
3632 -- the point they appear, so the labeled statement appears following
3633 -- the label or labels in the statement list.
3635 ---------------------------
3636 -- 5.1 Simple Statement --
3637 ---------------------------
3639 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
3640 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
3641 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
3642 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3643 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
3644 -- | ABORT_STATEMENT | RAISE_STATEMENT
3647 -----------------------------
3648 -- 5.1 Compound Statement --
3649 -----------------------------
3651 -- COMPOUND_STATEMENT ::=
3652 -- IF_STATEMENT | CASE_STATEMENT
3653 -- | LOOP_STATEMENT | BLOCK_STATEMENT
3654 -- | EXTENDED_RETURN_STATEMENT
3655 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
3657 -------------------------
3658 -- 5.1 Null Statement --
3659 -------------------------
3661 -- NULL_STATEMENT ::= null;
3664 -- Sloc points to NULL
3670 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3672 -- Note that the occurrence of a label is not a defining identifier,
3673 -- but rather a referencing occurrence. The defining occurrence is
3674 -- in the implicit label declaration which occurs in the innermost
3678 -- Sloc points to <<
3679 -- Identifier (Node1) direct name of statement identifier
3680 -- Exception_Junk (Flag7-Sem)
3682 -------------------------------
3683 -- 5.1 Statement Identifier --
3684 -------------------------------
3686 -- STATEMENT_INDENTIFIER ::= DIRECT_NAME
3688 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
3689 -- (not an OPERATOR_SYMBOL)
3691 -------------------------------
3692 -- 5.2 Assignment Statement --
3693 -------------------------------
3695 -- ASSIGNMENT_STATEMENT ::=
3696 -- variable_NAME := EXPRESSION;
3698 -- N_Assignment_Statement
3699 -- Sloc points to :=
3701 -- Expression (Node3)
3702 -- Do_Tag_Check (Flag13-Sem)
3703 -- Do_Length_Check (Flag4-Sem)
3704 -- Forwards_OK (Flag5-Sem)
3705 -- Backwards_OK (Flag6-Sem)
3706 -- No_Ctrl_Actions (Flag7-Sem)
3708 -- Note: if a range check is required, then the Do_Range_Check flag
3709 -- is set in the Expression (right hand side), with the check being
3710 -- done against the type of the Name (left hand side).
3712 -- Note: the back end places some restrictions on the form of the
3713 -- Expression field. If the object being assigned to is Atomic, then
3714 -- the Expression may not have the form of an aggregate (since this
3715 -- might cause the back end to generate separate assignments). It
3716 -- also cannot be a reference to an object marked as a true constant
3717 -- (Is_True_Constant flag set), where the object is itself initalized
3718 -- with an aggregate. If necessary the front end must generate an
3719 -- extra temporary (with Is_True_Constant set False), and initialize
3720 -- this temporary as required (the temporary itself is not atomic).
3722 -----------------------
3723 -- 5.3 If Statement --
3724 -----------------------
3727 -- if CONDITION then
3728 -- SEQUENCE_OF_STATEMENTS
3729 -- {elsif CONDITION then
3730 -- SEQUENCE_OF_STATEMENTS}
3732 -- SEQUENCE_OF_STATEMENTS]
3735 -- Gigi restriction: This expander ensures that the type of the
3736 -- Condition fields is always Standard.Boolean, even if the type
3737 -- in the source is some non-standard boolean type.
3740 -- Sloc points to IF
3741 -- Condition (Node1)
3742 -- Then_Statements (List2)
3743 -- Elsif_Parts (List3) (set to No_List if none present)
3744 -- Else_Statements (List4) (set to No_List if no else part present)
3745 -- End_Span (Uint5) (set to No_Uint if expander generated)
3748 -- Sloc points to ELSIF
3749 -- Condition (Node1)
3750 -- Then_Statements (List2)
3751 -- Condition_Actions (List3-Sem)
3753 --------------------
3755 --------------------
3757 -- CONDITION ::= boolean_EXPRESSION
3759 -------------------------
3760 -- 5.4 Case Statement --
3761 -------------------------
3763 -- CASE_STATEMENT ::=
3764 -- case EXPRESSION is
3765 -- CASE_STATEMENT_ALTERNATIVE
3766 -- {CASE_STATEMENT_ALTERNATIVE}
3769 -- Note: the Alternatives can contain pragmas. These only occur at
3770 -- the start of the list, since any pragmas occurring after the first
3771 -- alternative are absorbed into the corresponding statement sequence.
3774 -- Sloc points to CASE
3775 -- Expression (Node3)
3776 -- Alternatives (List4)
3777 -- End_Span (Uint5) (set to No_Uint if expander generated)
3779 -------------------------------------
3780 -- 5.4 Case Statement Alternative --
3781 -------------------------------------
3783 -- CASE_STATEMENT_ALTERNATIVE ::=
3784 -- when DISCRETE_CHOICE_LIST =>
3785 -- SEQUENCE_OF_STATEMENTS
3787 -- N_Case_Statement_Alternative
3788 -- Sloc points to WHEN
3789 -- Discrete_Choices (List4)
3790 -- Statements (List3)
3792 -------------------------
3793 -- 5.5 Loop Statement --
3794 -------------------------
3796 -- LOOP_STATEMENT ::=
3797 -- [loop_STATEMENT_IDENTIFIER :]
3798 -- [ITERATION_SCHEME] loop
3799 -- SEQUENCE_OF_STATEMENTS
3800 -- end loop [loop_IDENTIFIER];
3802 -- Note: The occurrence of a loop label is not a defining identifier
3803 -- but rather a referencing occurrence. The defining occurrence is in
3804 -- the implicit label declaration which occurs in the innermost
3807 -- Note: there is always a loop statement identifier present in
3808 -- the tree, even if none was given in the source. In the case where
3809 -- no loop identifier is given in the source, the parser creates
3810 -- a name of the form _Loop_n, where n is a decimal integer (the
3811 -- two underlines ensure that the loop names created in this manner
3812 -- do not conflict with any user defined identifiers), and the flag
3813 -- Has_Created_Identifier is set to True. The only exception to the
3814 -- rule that all loop statement nodes have identifiers occurs for
3815 -- loops constructed by the expander, and the semantic analyzer will
3816 -- create and supply dummy loop identifiers in these cases.
3819 -- Sloc points to LOOP
3820 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
3821 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
3822 -- Statements (List3)
3823 -- End_Label (Node4)
3824 -- Has_Created_Identifier (Flag15)
3825 -- Is_Null_Loop (Flag16)
3827 --------------------------
3828 -- 5.5 Iteration Scheme --
3829 --------------------------
3831 -- ITERATION_SCHEME ::=
3832 -- while CONDITION | for LOOP_PARAMETER_SPECIFICATION
3834 -- Gigi restriction: This expander ensures that the type of the
3835 -- Condition field is always Standard.Boolean, even if the type
3836 -- in the source is some non-standard boolean type.
3838 -- N_Iteration_Scheme
3839 -- Sloc points to WHILE or FOR
3840 -- Condition (Node1) (set to Empty if FOR case)
3841 -- Condition_Actions (List3-Sem)
3842 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
3844 ---------------------------------------
3845 -- 5.5 Loop parameter specification --
3846 ---------------------------------------
3848 -- LOOP_PARAMETER_SPECIFICATION ::=
3849 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
3851 -- N_Loop_Parameter_Specification
3852 -- Sloc points to first identifier
3853 -- Defining_Identifier (Node1)
3854 -- Reverse_Present (Flag15)
3855 -- Discrete_Subtype_Definition (Node4)
3857 --------------------------
3858 -- 5.6 Block Statement --
3859 --------------------------
3861 -- BLOCK_STATEMENT ::=
3862 -- [block_STATEMENT_IDENTIFIER:]
3864 -- DECLARATIVE_PART]
3866 -- HANDLED_SEQUENCE_OF_STATEMENTS
3867 -- end [block_IDENTIFIER];
3869 -- Note that the occurrence of a block identifier is not a defining
3870 -- identifier, but rather a referencing occurrence. The defining
3871 -- occurrence is in the implicit label declaration which occurs in
3872 -- the innermost enclosing block.
3874 -- Note: there is always a block statement identifier present in
3875 -- the tree, even if none was given in the source. In the case where
3876 -- no block identifier is given in the source, the parser creates
3877 -- a name of the form _Block_n, where n is a decimal integer (the
3878 -- two underlines ensure that the block names created in this manner
3879 -- do not conflict with any user defined identifiers), and the flag
3880 -- Has_Created_Identifier is set to True. The only exception to the
3881 -- rule that all loop statement nodes have identifiers occurs for
3882 -- blocks constructed by the expander, and the semantic analyzer
3883 -- creates and supplies dummy names for the blocks).
3885 -- N_Block_Statement
3886 -- Sloc points to DECLARE or BEGIN
3887 -- Identifier (Node1) block direct name (set to Empty if not present)
3888 -- Declarations (List2) (set to No_List if no DECLARE part)
3889 -- Handled_Statement_Sequence (Node4)
3890 -- Is_Task_Master (Flag5-Sem)
3891 -- Activation_Chain_Entity (Node3-Sem)
3892 -- Has_Created_Identifier (Flag15)
3893 -- Is_Task_Allocation_Block (Flag6)
3894 -- Is_Asynchronous_Call_Block (Flag7)
3896 -------------------------
3897 -- 5.7 Exit Statement --
3898 -------------------------
3900 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
3902 -- Gigi restriction: This expander ensures that the type of the
3903 -- Condition field is always Standard.Boolean, even if the type
3904 -- in the source is some non-standard boolean type.
3907 -- Sloc points to EXIT
3908 -- Name (Node2) (set to Empty if no loop name present)
3909 -- Condition (Node1) (set to Empty if no when part present)
3911 -------------------------
3912 -- 5.9 Goto Statement --
3913 -------------------------
3915 -- GOTO_STATEMENT ::= goto label_NAME;
3918 -- Sloc points to GOTO
3920 -- Exception_Junk (Flag7-Sem)
3922 ---------------------------------
3923 -- 6.1 Subprogram Declaration --
3924 ---------------------------------
3926 -- SUBPROGRAM_DECLARATION ::= SUBPROGRAM_SPECIFICATION;
3928 -- N_Subprogram_Declaration
3929 -- Sloc points to FUNCTION or PROCEDURE
3930 -- Specification (Node1)
3931 -- Body_To_Inline (Node3-Sem)
3932 -- Corresponding_Body (Node5-Sem)
3933 -- Parent_Spec (Node4-Sem)
3935 ------------------------------------------
3936 -- 6.1 Abstract Subprogram Declaration --
3937 ------------------------------------------
3939 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
3940 -- SUBPROGRAM_SPECIFICATION is abstract;
3942 -- N_Abstract_Subprogram_Declaration
3943 -- Sloc points to ABSTRACT
3944 -- Specification (Node1)
3946 -----------------------------------
3947 -- 6.1 Subprogram Specification --
3948 -----------------------------------
3950 -- SUBPROGRAM_SPECIFICATION ::=
3951 -- [[not] overriding]
3952 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
3953 -- | [[not] overriding]
3954 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
3956 -- Note: there are no separate nodes for the profiles, instead the
3957 -- information appears directly in the following nodes.
3959 -- N_Function_Specification
3960 -- Sloc points to FUNCTION
3961 -- Defining_Unit_Name (Node1) (the designator)
3962 -- Elaboration_Boolean (Node2-Sem)
3963 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3964 -- Null_Exclusion_Present (Flag11)
3965 -- Result_Definition (Node4) for result subtype
3966 -- Generic_Parent (Node5-Sem)
3967 -- Must_Override (Flag14) set if overriding indicator present
3968 -- Must_Not_Override (Flag15) set if not_overriding indicator present
3970 -- N_Procedure_Specification
3971 -- Sloc points to PROCEDURE
3972 -- Defining_Unit_Name (Node1)
3973 -- Elaboration_Boolean (Node2-Sem)
3974 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3975 -- Generic_Parent (Node5-Sem)
3976 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
3977 -- Must_Override (Flag14) set if overriding indicator present
3978 -- Must_Not_Override (Flag15) set if not_overriding indicator present
3980 -- Note: overriding indicator is an Ada 2005 feature
3982 ---------------------
3983 -- 6.1 Designator --
3984 ---------------------
3987 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
3989 -- Designators that are simply identifiers or operator symbols appear
3990 -- directly in the tree in this form. The following node is used only
3991 -- in the case where the designator has a parent unit name component.
3994 -- Sloc points to period
3995 -- Name (Node2) holds the parent unit name. Note that this is always
3996 -- non-Empty, since this node is only used for the case where a
3997 -- parent library unit package name is present.
3998 -- Identifier (Node1)
4000 -- Note that the identifier can also be an operator symbol here
4002 ------------------------------
4003 -- 6.1 Defining Designator --
4004 ------------------------------
4006 -- DEFINING_DESIGNATOR ::=
4007 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4009 -------------------------------------
4010 -- 6.1 Defining Program Unit Name --
4011 -------------------------------------
4013 -- DEFINING_PROGRAM_UNIT_NAME ::=
4014 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4016 -- The parent unit name is present only in the case of a child unit
4017 -- name (permissible only for Ada 95 for a library level unit, i.e.
4018 -- a unit at scope level one). If no such name is present, the defining
4019 -- program unit name is represented simply as the defining identifier.
4020 -- In the child unit case, the following node is used to represent the
4023 -- N_Defining_Program_Unit_Name
4024 -- Sloc points to period
4025 -- Name (Node2) holds the parent unit name. Note that this is always
4026 -- non-Empty, since this node is only used for the case where a
4027 -- parent unit name is present.
4028 -- Defining_Identifier (Node1)
4030 --------------------------
4031 -- 6.1 Operator Symbol --
4032 --------------------------
4034 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4036 -- Note: the fields of the N_Operator_Symbol node are laid out to
4037 -- match the corresponding fields of an N_Character_Literal node. This
4038 -- allows easy conversion of the operator symbol node into a character
4039 -- literal node in the case where a string constant of the form of an
4040 -- operator symbol is scanned out as such, but turns out semantically
4041 -- to be a string literal that is not an operator. For details see
4042 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4044 -- N_Operator_Symbol
4045 -- Sloc points to literal
4046 -- Chars (Name1) contains the Name_Id for the operator symbol
4047 -- Strval (Str3) Id of string value. This is used if the operator
4048 -- symbol turns out to be a normal string after all.
4049 -- Entity (Node4-Sem)
4050 -- Associated_Node (Node4-Sem)
4051 -- Has_Private_View (Flag11-Sem) set in generic units.
4052 -- Etype (Node5-Sem)
4054 -- Note: the Strval field may be set to No_String for generated
4055 -- operator symbols that are known not to be string literals
4058 -----------------------------------
4059 -- 6.1 Defining Operator Symbol --
4060 -----------------------------------
4062 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4064 -- A defining operator symbol is an entity, which has additional
4065 -- fields depending on the setting of the Ekind field. These
4066 -- additional fields are defined (and access subprograms declared)
4067 -- in package Einfo.
4069 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4070 -- are deliberately layed out to match the layout of fields in an
4071 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4072 -- an operator symbol node into a defining operator symbol node.
4073 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4074 -- for further details.
4076 -- N_Defining_Operator_Symbol
4077 -- Sloc points to literal
4078 -- Chars (Name1) contains the Name_Id for the operator symbol
4079 -- Next_Entity (Node2-Sem)
4080 -- Scope (Node3-Sem)
4081 -- Etype (Node5-Sem)
4083 ----------------------------
4084 -- 6.1 Parameter Profile --
4085 ----------------------------
4087 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4089 ---------------------------------------
4090 -- 6.1 Parameter and Result Profile --
4091 ---------------------------------------
4093 -- PARAMETER_AND_RESULT_PROFILE ::=
4094 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4095 -- | [FORMAL_PART] return ACCESS_DEFINITION
4097 -- There is no explicit node in the tree for a parameter and result
4098 -- profile. Instead the information appears directly in the parent.
4100 ----------------------
4101 -- 6.1 Formal part --
4102 ----------------------
4105 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4107 ----------------------------------
4108 -- 6.1 Parameter specification --
4109 ----------------------------------
4111 -- PARAMETER_SPECIFICATION ::=
4112 -- DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4113 -- [:= DEFAULT_EXPRESSION]
4114 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4115 -- [:= DEFAULT_EXPRESSION]
4117 -- Although the syntax allows multiple identifiers in the list, the
4118 -- semantics is as though successive specifications were given with
4119 -- identical type definition and expression components. To simplify
4120 -- semantic processing, the parser represents a multiple declaration
4121 -- case as a sequence of single Specifications, using the More_Ids and
4122 -- Prev_Ids flags to preserve the original source form as described
4123 -- in the section on "Handling of Defining Identifier Lists".
4125 -- N_Parameter_Specification
4126 -- Sloc points to first identifier
4127 -- Defining_Identifier (Node1)
4128 -- In_Present (Flag15)
4129 -- Out_Present (Flag17)
4130 -- Null_Exclusion_Present (Flag11)
4131 -- Parameter_Type (Node2) subtype mark or access definition
4132 -- Expression (Node3) (set to Empty if no default expression present)
4133 -- Do_Accessibility_Check (Flag13-Sem)
4134 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4135 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4136 -- Default_Expression (Node5-Sem)
4142 -- MODE ::= [in] | in out | out
4144 -- There is no explicit node in the tree for the Mode. Instead the
4145 -- In_Present and Out_Present flags are set in the parent node to
4146 -- record the presence of keywords specifying the mode.
4148 --------------------------
4149 -- 6.3 Subprogram Body --
4150 --------------------------
4152 -- SUBPROGRAM_BODY ::=
4153 -- SUBPROGRAM_SPECIFICATION is
4156 -- HANDLED_SEQUENCE_OF_STATEMENTS
4157 -- end [DESIGNATOR];
4159 -- N_Subprogram_Body
4160 -- Sloc points to FUNCTION or PROCEDURE
4161 -- Specification (Node1)
4162 -- Declarations (List2)
4163 -- Handled_Statement_Sequence (Node4)
4164 -- Activation_Chain_Entity (Node3-Sem)
4165 -- Corresponding_Spec (Node5-Sem)
4166 -- Acts_As_Spec (Flag4-Sem)
4167 -- Bad_Is_Detected (Flag15) used only by parser
4168 -- Do_Storage_Check (Flag17-Sem)
4169 -- Has_Priority_Pragma (Flag6-Sem)
4170 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4171 -- Is_Entry_Barrier_Function (Flag8-Sem)
4172 -- Is_Task_Master (Flag5-Sem)
4173 -- Was_Originally_Stub (Flag13-Sem)
4175 -----------------------------------
4176 -- 6.4 Procedure Call Statement --
4177 -----------------------------------
4179 -- PROCEDURE_CALL_STATEMENT ::=
4180 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4182 -- Note: the reason that a procedure call has expression fields is
4183 -- that it semantically resembles an expression, e.g. overloading is
4184 -- allowed and a type is concocted for semantic processing purposes.
4185 -- Certain of these fields, such as Parens are not relevant, but it
4186 -- is easier to just supply all of them together!
4188 -- N_Procedure_Call_Statement
4189 -- Sloc points to first token of name or prefix
4190 -- Name (Node2) stores name or prefix
4191 -- Parameter_Associations (List3) (set to No_List if no
4192 -- actual parameter part)
4193 -- First_Named_Actual (Node4-Sem)
4194 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4195 -- Do_Tag_Check (Flag13-Sem)
4196 -- No_Elaboration_Check (Flag14-Sem)
4197 -- Parameter_List_Truncated (Flag17-Sem)
4198 -- ABE_Is_Certain (Flag18-Sem)
4199 -- plus fields for expression
4201 -- If any IN parameter requires a range check, then the corresponding
4202 -- argument expression has the Do_Range_Check flag set, and the range
4203 -- check is done against the formal type. Note that this argument
4204 -- expression may appear directly in the Parameter_Associations list,
4205 -- or may be a descendent of an N_Parameter_Association node that
4206 -- appears in this list.
4208 ------------------------
4209 -- 6.4 Function Call --
4210 ------------------------
4212 -- FUNCTION_CALL ::=
4213 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4215 -- Note: the parser may generate an indexed component node or simply
4216 -- a name node instead of a function call node. The semantic pass must
4217 -- correct this misidentification.
4220 -- Sloc points to first token of name or prefix
4221 -- Name (Node2) stores name or prefix
4222 -- Parameter_Associations (List3) (set to No_List if no
4223 -- actual parameter part)
4224 -- First_Named_Actual (Node4-Sem)
4225 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4226 -- Do_Tag_Check (Flag13-Sem)
4227 -- No_Elaboration_Check (Flag14-Sem)
4228 -- Parameter_List_Truncated (Flag17-Sem)
4229 -- ABE_Is_Certain (Flag18-Sem)
4230 -- plus fields for expression
4232 --------------------------------
4233 -- 6.4 Actual Parameter Part --
4234 --------------------------------
4236 -- ACTUAL_PARAMETER_PART ::=
4237 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4239 --------------------------------
4240 -- 6.4 Parameter Association --
4241 --------------------------------
4243 -- PARAMETER_ASSOCIATION ::=
4244 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4246 -- Note: the N_Parameter_Association node is built only if a formal
4247 -- parameter selector name is present, otherwise the parameter
4248 -- association appears in the tree simply as the node for the
4249 -- explicit actual parameter.
4251 -- N_Parameter_Association
4252 -- Sloc points to formal parameter
4253 -- Selector_Name (Node2) (always non-Empty)
4254 -- Explicit_Actual_Parameter (Node3)
4255 -- Next_Named_Actual (Node4-Sem)
4257 ---------------------------
4258 -- 6.4 Actual Parameter --
4259 ---------------------------
4261 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4263 ---------------------------
4264 -- 6.5 Return Statement --
4265 ---------------------------
4267 -- RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4269 -- In Ada 2005, we have:
4271 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4273 -- EXTENDED_RETURN_STATEMENT ::=
4274 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4275 -- [:= EXPRESSION] [do
4276 -- HANDLED_SEQUENCE_OF_STATEMENTS
4279 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4281 -- So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal
4283 -- N_Return_Statement
4284 -- Sloc points to RETURN
4285 -- Return_Statement_Entity (Node5-Sem)
4286 -- Expression (Node3) (set to Empty if no expression present)
4287 -- Storage_Pool (Node1-Sem)
4288 -- Procedure_To_Call (Node2-Sem)
4289 -- Do_Tag_Check (Flag13-Sem)
4290 -- By_Ref (Flag5-Sem)
4291 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
4293 -- ???N_Return_Statement represents a simple_return_statement,
4294 -- and should be renamed to N_Simple_Return_Statement.
4296 -- Note: Return_Statement_Entity points to an E_Return_Statement
4298 -- If a range check is required, then Do_Range_Check is set on the
4299 -- Expression. The check is against the return subtype of the function.
4301 -- N_Extended_Return_Statement
4302 -- Sloc points to RETURN
4303 -- Return_Statement_Entity (Node5-Sem)
4304 -- Return_Object_Declarations (List3)
4305 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
4306 -- Storage_Pool (Node1-Sem)
4307 -- Procedure_To_Call (Node2-Sem)
4308 -- Do_Tag_Check (Flag13-Sem)
4309 -- By_Ref (Flag5-Sem)
4311 -- Note: Return_Statement_Entity points to an E_Return_Statement.
4312 -- Note that Return_Object_Declarations is a list containing the
4313 -- N_Object_Declaration -- see comment on this field above.
4314 -- The declared object will have Is_Return_Object = True.
4315 -- There is no such syntactic category as return_object_declaration
4316 -- in the RM. Return_Object_Declarations represents this portion of
4317 -- the syntax for EXTENDED_RETURN_STATEMENT:
4318 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4321 -- There are two entities associated with an extended_return_statement:
4322 -- the Return_Statement_Entity represents the statement itself, and the
4323 -- Defining_Identifier of the Object_Declaration in
4324 -- Return_Object_Declarations represents the object being
4325 -- returned. N_Return_Statement has only the former.
4327 ------------------------------
4328 -- 7.1 Package Declaration --
4329 ------------------------------
4331 -- PACKAGE_DECLARATION ::= PACKAGE_SPECIFICATION;
4333 -- Note: the activation chain entity for a package spec is used for
4334 -- all tasks declared in the package spec, or in the package body.
4336 -- N_Package_Declaration
4337 -- Sloc points to PACKAGE
4338 -- Specification (Node1)
4339 -- Corresponding_Body (Node5-Sem)
4340 -- Parent_Spec (Node4-Sem)
4341 -- Activation_Chain_Entity (Node3-Sem)
4343 --------------------------------
4344 -- 7.1 Package Specification --
4345 --------------------------------
4347 -- PACKAGE_SPECIFICATION ::=
4348 -- package DEFINING_PROGRAM_UNIT_NAME is
4349 -- {BASIC_DECLARATIVE_ITEM}
4351 -- {BASIC_DECLARATIVE_ITEM}]
4352 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
4354 -- N_Package_Specification
4355 -- Sloc points to PACKAGE
4356 -- Defining_Unit_Name (Node1)
4357 -- Visible_Declarations (List2)
4358 -- Private_Declarations (List3) (set to No_List if no private
4360 -- End_Label (Node4)
4361 -- Generic_Parent (Node5-Sem)
4362 -- Limited_View_Installed (Flag18-Sem)
4364 -----------------------
4365 -- 7.1 Package Body --
4366 -----------------------
4369 -- package body DEFINING_PROGRAM_UNIT_NAME is
4372 -- HANDLED_SEQUENCE_OF_STATEMENTS]
4373 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
4376 -- Sloc points to PACKAGE
4377 -- Defining_Unit_Name (Node1)
4378 -- Declarations (List2)
4379 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4380 -- Corresponding_Spec (Node5-Sem)
4381 -- Was_Originally_Stub (Flag13-Sem)
4383 -- Note: if a source level package does not contain a handled sequence
4384 -- of statements, then the parser supplies a dummy one with a null
4385 -- sequence of statements. Comes_From_Source will be False in this
4386 -- constructed sequence. The reason we need this is for the End_Label
4387 -- field in the HSS.
4389 -----------------------------------
4390 -- 7.4 Private Type Declaration --
4391 -----------------------------------
4393 -- PRIVATE_TYPE_DECLARATION ::=
4394 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4395 -- is [[abstract] tagged] [limited] private;
4397 -- Note: TAGGED is not permitted in Ada 83 mode
4399 -- N_Private_Type_Declaration
4400 -- Sloc points to TYPE
4401 -- Defining_Identifier (Node1)
4402 -- Discriminant_Specifications (List4) (set to No_List if no
4403 -- discriminant part)
4404 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4405 -- Abstract_Present (Flag4)
4406 -- Tagged_Present (Flag15)
4407 -- Limited_Present (Flag17)
4409 ----------------------------------------
4410 -- 7.4 Private Extension Declaration --
4411 ----------------------------------------
4413 -- PRIVATE_EXTENSION_DECLARATION ::=
4414 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4415 -- [abstract] [limited | synchronized]
4416 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4419 -- Note: LIMITED, and private extension declarations are not allowed
4422 -- N_Private_Extension_Declaration
4423 -- Sloc points to TYPE
4424 -- Defining_Identifier (Node1)
4425 -- Discriminant_Specifications (List4) (set to No_List if no
4426 -- discriminant part)
4427 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4428 -- Abstract_Present (Flag4)
4429 -- Limited_Present (Flag17)
4430 -- Synchronized_Present (Flag7)
4431 -- Subtype_Indication (Node5)
4432 -- Interface_List (List2) (set to No_List if none)
4434 ---------------------
4435 -- 8.4 Use Clause --
4436 ---------------------
4438 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4440 -----------------------------
4441 -- 8.4 Use Package Clause --
4442 -----------------------------
4444 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4446 -- N_Use_Package_Clause
4447 -- Sloc points to USE
4449 -- Next_Use_Clause (Node3-Sem)
4450 -- Hidden_By_Use_Clause (Elist4-Sem)
4452 --------------------------
4453 -- 8.4 Use Type Clause --
4454 --------------------------
4456 -- USE_TYPE_CLAUSE ::= use type SUBTYPE_MARK {, SUBTYPE_MARK};
4458 -- Note: use type clause is not permitted in Ada 83 mode
4460 -- N_Use_Type_Clause
4461 -- Sloc points to USE
4462 -- Subtype_Marks (List2)
4463 -- Next_Use_Clause (Node3-Sem)
4464 -- Hidden_By_Use_Clause (Elist4-Sem)
4466 -------------------------------
4467 -- 8.5 Renaming Declaration --
4468 -------------------------------
4470 -- RENAMING_DECLARATION ::=
4471 -- OBJECT_RENAMING_DECLARATION
4472 -- | EXCEPTION_RENAMING_DECLARATION
4473 -- | PACKAGE_RENAMING_DECLARATION
4474 -- | SUBPROGRAM_RENAMING_DECLARATION
4475 -- | GENERIC_RENAMING_DECLARATION
4477 --------------------------------------
4478 -- 8.5 Object Renaming Declaration --
4479 --------------------------------------
4481 -- OBJECT_RENAMING_DECLARATION ::=
4482 -- DEFINING_IDENTIFIER :
4483 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4484 -- | DEFINING_IDENTIFIER :
4485 -- ACCESS_DEFINITION renames object_NAME;
4487 -- Note: Access_Definition is an optional field that gives support to
4488 -- Ada 2005 (AI-230). The parser generates nodes that have either the
4489 -- Subtype_Indication field or else the Access_Definition field.
4491 -- N_Object_Renaming_Declaration
4492 -- Sloc points to first identifier
4493 -- Defining_Identifier (Node1)
4494 -- Null_Exclusion_Present (Flag11) (set to False if not present)
4495 -- Subtype_Mark (Node4) (set to Empty if not present)
4496 -- Access_Definition (Node3) (set to Empty if not present)
4498 -- Corresponding_Generic_Association (Node5-Sem)
4500 -----------------------------------------
4501 -- 8.5 Exception Renaming Declaration --
4502 -----------------------------------------
4504 -- EXCEPTION_RENAMING_DECLARATION ::=
4505 -- DEFINING_IDENTIFIER : exception renames exception_NAME;
4507 -- N_Exception_Renaming_Declaration
4508 -- Sloc points to first identifier
4509 -- Defining_Identifier (Node1)
4512 ---------------------------------------
4513 -- 8.5 Package Renaming Declaration --
4514 ---------------------------------------
4516 -- PACKAGE_RENAMING_DECLARATION ::=
4517 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4519 -- N_Package_Renaming_Declaration
4520 -- Sloc points to PACKAGE
4521 -- Defining_Unit_Name (Node1)
4523 -- Parent_Spec (Node4-Sem)
4525 ------------------------------------------
4526 -- 8.5 Subprogram Renaming Declaration --
4527 ------------------------------------------
4529 -- SUBPROGRAM_RENAMING_DECLARATION ::=
4530 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4532 -- N_Subprogram_Renaming_Declaration
4533 -- Sloc points to RENAMES
4534 -- Specification (Node1)
4536 -- Parent_Spec (Node4-Sem)
4537 -- Corresponding_Spec (Node5-Sem)
4538 -- Corresponding_Formal_Spec (Node3-Sem)
4539 -- From_Default (Flag6-Sem)
4541 -----------------------------------------
4542 -- 8.5.5 Generic Renaming Declaration --
4543 -----------------------------------------
4545 -- GENERIC_RENAMING_DECLARATION ::=
4546 -- generic package DEFINING_PROGRAM_UNIT_NAME
4547 -- renames generic_package_NAME
4548 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
4549 -- renames generic_procedure_NAME
4550 -- | generic function DEFINING_PROGRAM_UNIT_NAME
4551 -- renames generic_function_NAME
4553 -- N_Generic_Package_Renaming_Declaration
4554 -- Sloc points to GENERIC
4555 -- Defining_Unit_Name (Node1)
4557 -- Parent_Spec (Node4-Sem)
4559 -- N_Generic_Procedure_Renaming_Declaration
4560 -- Sloc points to GENERIC
4561 -- Defining_Unit_Name (Node1)
4563 -- Parent_Spec (Node4-Sem)
4565 -- N_Generic_Function_Renaming_Declaration
4566 -- Sloc points to GENERIC
4567 -- Defining_Unit_Name (Node1)
4569 -- Parent_Spec (Node4-Sem)
4571 --------------------------------
4572 -- 9.1 Task Type Declaration --
4573 --------------------------------
4575 -- TASK_TYPE_DECLARATION ::=
4576 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4577 -- [is [new INTERFACE_LIST with] TASK_DEFINITITION];
4579 -- N_Task_Type_Declaration
4580 -- Sloc points to TASK
4581 -- Defining_Identifier (Node1)
4582 -- Discriminant_Specifications (List4) (set to No_List if no
4583 -- discriminant part)
4584 -- Interface_List (List2) (set to No_List if none)
4585 -- Task_Definition (Node3) (set to Empty if not present)
4586 -- Corresponding_Body (Node5-Sem)
4588 ----------------------------------
4589 -- 9.1 Single Task Declaration --
4590 ----------------------------------
4592 -- SINGLE_TASK_DECLARATION ::=
4593 -- task DEFINING_IDENTIFIER
4594 -- [is [new INTERFACE_LIST with] TASK_DEFINITITION];
4596 -- N_Single_Task_Declaration
4597 -- Sloc points to TASK
4598 -- Defining_Identifier (Node1)
4599 -- Interface_List (List2) (set to No_List if none)
4600 -- Task_Definition (Node3) (set to Empty if not present)
4602 --------------------------
4603 -- 9.1 Task Definition --
4604 --------------------------
4606 -- TASK_DEFINITION ::=
4610 -- end [task_IDENTIFIER]
4612 -- Note: as a result of semantic analysis, the list of task items can
4613 -- include implicit type declarations resulting from entry families.
4615 -- N_Task_Definition
4616 -- Sloc points to first token of task definition
4617 -- Visible_Declarations (List2)
4618 -- Private_Declarations (List3) (set to No_List if no private part)
4619 -- End_Label (Node4)
4620 -- Has_Priority_Pragma (Flag6-Sem)
4621 -- Has_Storage_Size_Pragma (Flag5-Sem)
4622 -- Has_Task_Info_Pragma (Flag7-Sem)
4623 -- Has_Task_Name_Pragma (Flag8-Sem)
4625 --------------------
4627 --------------------
4629 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
4631 --------------------
4633 --------------------
4636 -- task body task_DEFINING_IDENTIFIER is
4639 -- HANDLED_SEQUENCE_OF_STATEMENTS
4640 -- end [task_IDENTIFIER];
4642 -- Gigi restriction: This node never appears
4645 -- Sloc points to TASK
4646 -- Defining_Identifier (Node1)
4647 -- Declarations (List2)
4648 -- Handled_Statement_Sequence (Node4)
4649 -- Is_Task_Master (Flag5-Sem)
4650 -- Activation_Chain_Entity (Node3-Sem)
4651 -- Corresponding_Spec (Node5-Sem)
4652 -- Was_Originally_Stub (Flag13-Sem)
4654 -------------------------------------
4655 -- 9.4 Protected Type Declaration --
4656 -------------------------------------
4658 -- PROTECTED_TYPE_DECLARATION ::=
4659 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4660 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4662 -- Note: protected type declarations are not permitted in Ada 83 mode
4664 -- N_Protected_Type_Declaration
4665 -- Sloc points to PROTECTED
4666 -- Defining_Identifier (Node1)
4667 -- Discriminant_Specifications (List4) (set to No_List if no
4668 -- discriminant part)
4669 -- Interface_List (List2) (set to No_List if none)
4670 -- Protected_Definition (Node3)
4671 -- Corresponding_Body (Node5-Sem)
4673 ---------------------------------------
4674 -- 9.4 Single Protected Declaration --
4675 ---------------------------------------
4677 -- SINGLE_PROTECTED_DECLARATION ::=
4678 -- protected DEFINING_IDENTIFIER
4679 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4681 -- Note: single protected declarations are not allowed in Ada 83 mode
4683 -- N_Single_Protected_Declaration
4684 -- Sloc points to PROTECTED
4685 -- Defining_Identifier (Node1)
4686 -- Interface_List (List2) (set to No_List if none)
4687 -- Protected_Definition (Node3)
4689 -------------------------------
4690 -- 9.4 Protected Definition --
4691 -------------------------------
4693 -- PROTECTED_DEFINITION ::=
4694 -- {PROTECTED_OPERATION_DECLARATION}
4696 -- {PROTECTED_ELEMENT_DECLARATION}]
4697 -- end [protected_IDENTIFIER]
4699 -- N_Protected_Definition
4700 -- Sloc points to first token of protected definition
4701 -- Visible_Declarations (List2)
4702 -- Private_Declarations (List3) (set to No_List if no private part)
4703 -- End_Label (Node4)
4704 -- Has_Priority_Pragma (Flag6-Sem)
4706 ------------------------------------------
4707 -- 9.4 Protected Operation Declaration --
4708 ------------------------------------------
4710 -- PROTECTED_OPERATION_DECLARATION ::=
4711 -- SUBPROGRAM_DECLARATION
4712 -- | ENTRY_DECLARATION
4713 -- | REPRESENTATION_CLAUSE
4715 ----------------------------------------
4716 -- 9.4 Protected Element Declaration --
4717 ----------------------------------------
4719 -- PROTECTED_ELEMENT_DECLARATION ::=
4720 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
4722 -------------------------
4723 -- 9.4 Protected Body --
4724 -------------------------
4726 -- PROTECTED_BODY ::=
4727 -- protected body DEFINING_IDENTIFIER is
4728 -- {PROTECTED_OPERATION_ITEM}
4729 -- end [protected_IDENTIFIER];
4731 -- Note: protected bodies are not allowed in Ada 83 mode
4733 -- Gigi restriction: This node never appears
4736 -- Sloc points to PROTECTED
4737 -- Defining_Identifier (Node1)
4738 -- Declarations (List2) protected operation items (and pragmas)
4739 -- End_Label (Node4)
4740 -- Corresponding_Spec (Node5-Sem)
4741 -- Was_Originally_Stub (Flag13-Sem)
4743 -----------------------------------
4744 -- 9.4 Protected Operation Item --
4745 -----------------------------------
4747 -- PROTECTED_OPERATION_ITEM ::=
4748 -- SUBPROGRAM_DECLARATION
4749 -- | SUBPROGRAM_BODY
4751 -- | REPRESENTATION_CLAUSE
4753 ------------------------------
4754 -- 9.5.2 Entry Declaration --
4755 ------------------------------
4757 -- ENTRY_DECLARATION ::=
4758 -- [[not] overriding]
4759 -- entry DEFINING_IDENTIFIER
4760 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
4762 -- N_Entry_Declaration
4763 -- Sloc points to ENTRY
4764 -- Defining_Identifier (Node1)
4765 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
4766 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4767 -- Corresponding_Body (Node5-Sem)
4768 -- Must_Override (Flag14) set if overriding indicator present
4769 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4771 -- Note: overriding indicator is an Ada 2005 feature
4773 -----------------------------
4774 -- 9.5.2 Accept statement --
4775 -----------------------------
4777 -- ACCEPT_STATEMENT ::=
4778 -- accept entry_DIRECT_NAME
4779 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
4780 -- HANDLED_SEQUENCE_OF_STATEMENTS
4781 -- end [entry_IDENTIFIER]];
4783 -- Gigi restriction: This node never appears
4785 -- Note: there are no explicit declarations allowed in an accept
4786 -- statement. However, the implicit declarations for any statement
4787 -- identifiers (labels and block/loop identifiers) are declarations
4788 -- that belong logically to the accept statement, and that is why
4789 -- there is a Declarations field in this node.
4791 -- N_Accept_Statement
4792 -- Sloc points to ACCEPT
4793 -- Entry_Direct_Name (Node1)
4794 -- Entry_Index (Node5) (set to Empty if not present)
4795 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4796 -- Handled_Statement_Sequence (Node4)
4797 -- Declarations (List2) (set to No_List if no declarations)
4799 ------------------------
4800 -- 9.5.2 Entry Index --
4801 ------------------------
4803 -- ENTRY_INDEX ::= EXPRESSION
4805 -----------------------
4806 -- 9.5.2 Entry Body --
4807 -----------------------
4810 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
4813 -- HANDLED_SEQUENCE_OF_STATEMENTS
4814 -- end [entry_IDENTIFIER];
4816 -- ENTRY_BARRIER ::= when CONDITION
4818 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
4819 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
4820 -- too full (it would otherwise have too many fields)
4822 -- Gigi restriction: This node never appears
4825 -- Sloc points to ENTRY
4826 -- Defining_Identifier (Node1)
4827 -- Entry_Body_Formal_Part (Node5)
4828 -- Declarations (List2)
4829 -- Handled_Statement_Sequence (Node4)
4830 -- Activation_Chain_Entity (Node3-Sem)
4832 -----------------------------------
4833 -- 9.5.2 Entry Body Formal Part --
4834 -----------------------------------
4836 -- ENTRY_BODY_FORMAL_PART ::=
4837 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
4839 -- Note that an entry body formal part node is present even if it is
4840 -- empty. This reflects the grammar, in which it is the components of
4841 -- the entry body formal part that are optional, not the entry body
4842 -- formal part itself. Also this means that the barrier condition
4843 -- always has somewhere to be stored.
4845 -- Gigi restriction: This node never appears
4847 -- N_Entry_Body_Formal_Part
4848 -- Sloc points to first token
4849 -- Entry_Index_Specification (Node4) (set to Empty if not present)
4850 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4851 -- Condition (Node1) from entry barrier of entry body
4853 --------------------------
4854 -- 9.5.2 Entry Barrier --
4855 --------------------------
4857 -- ENTRY_BARRIER ::= when CONDITION
4859 --------------------------------------
4860 -- 9.5.2 Entry Index Specification --
4861 --------------------------------------
4863 -- ENTRY_INDEX_SPECIFICATION ::=
4864 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
4866 -- Gigi restriction: This node never appears
4868 -- N_Entry_Index_Specification
4869 -- Sloc points to FOR
4870 -- Defining_Identifier (Node1)
4871 -- Discrete_Subtype_Definition (Node4)
4873 ---------------------------------
4874 -- 9.5.3 Entry Call Statement --
4875 ---------------------------------
4877 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
4879 -- The parser may generate a procedure call for this construct. The
4880 -- semantic pass must correct this misidentification where needed.
4882 -- Gigi restriction: This node never appears
4884 -- N_Entry_Call_Statement
4885 -- Sloc points to first token of name
4887 -- Parameter_Associations (List3) (set to No_List if no
4888 -- actual parameter part)
4889 -- First_Named_Actual (Node4-Sem)
4891 ------------------------------
4892 -- 9.5.4 Requeue Statement --
4893 ------------------------------
4895 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
4897 -- Note: requeue statements are not permitted in Ada 83 mode
4899 -- Gigi restriction: This node never appears
4901 -- N_Requeue_Statement
4902 -- Sloc points to REQUEUE
4904 -- Abort_Present (Flag15)
4906 --------------------------
4907 -- 9.6 Delay Statement --
4908 --------------------------
4910 -- DELAY_STATEMENT ::=
4911 -- DELAY_UNTIL_STATEMENT
4912 -- | DELAY_RELATIVE_STATEMENT
4914 --------------------------------
4915 -- 9.6 Delay Until Statement --
4916 --------------------------------
4918 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
4920 -- Note: delay until statements are not permitted in Ada 83 mode
4922 -- Gigi restriction: This node never appears
4924 -- N_Delay_Until_Statement
4925 -- Sloc points to DELAY
4926 -- Expression (Node3)
4928 -----------------------------------
4929 -- 9.6 Delay Relative Statement --
4930 -----------------------------------
4932 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
4934 -- Gigi restriction: This node never appears
4936 -- N_Delay_Relative_Statement
4937 -- Sloc points to DELAY
4938 -- Expression (Node3)
4940 ---------------------------
4941 -- 9.7 Select Statement --
4942 ---------------------------
4944 -- SELECT_STATEMENT ::=
4946 -- | TIMED_ENTRY_CALL
4947 -- | CONDITIONAL_ENTRY_CALL
4948 -- | ASYNCHRONOUS_SELECT
4950 -----------------------------
4951 -- 9.7.1 Selective Accept --
4952 -----------------------------
4954 -- SELECTIVE_ACCEPT ::=
4957 -- SELECT_ALTERNATIVE
4960 -- SELECT_ALTERNATIVE}
4962 -- SEQUENCE_OF_STATEMENTS]
4965 -- Gigi restriction: This node never appears
4967 -- Note: the guard expression, if present, appears in the node for
4968 -- the select alternative.
4970 -- N_Selective_Accept
4971 -- Sloc points to SELECT
4972 -- Select_Alternatives (List1)
4973 -- Else_Statements (List4) (set to No_List if no else part)
4979 -- GUARD ::= when CONDITION =>
4981 -- As noted above, the CONDITION that is part of a GUARD is included
4982 -- in the node for the select alernative for convenience.
4984 -------------------------------
4985 -- 9.7.1 Select Alternative --
4986 -------------------------------
4988 -- SELECT_ALTERNATIVE ::=
4989 -- ACCEPT_ALTERNATIVE
4990 -- | DELAY_ALTERNATIVE
4991 -- | TERMINATE_ALTERNATIVE
4993 -------------------------------
4994 -- 9.7.1 Accept Alternative --
4995 -------------------------------
4997 -- ACCEPT_ALTERNATIVE ::=
4998 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5000 -- Gigi restriction: This node never appears
5002 -- N_Accept_Alternative
5003 -- Sloc points to ACCEPT
5004 -- Accept_Statement (Node2)
5005 -- Condition (Node1) from the guard (set to Empty if no guard present)
5006 -- Statements (List3) (set to Empty_List if no statements)
5007 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5008 -- Accept_Handler_Records (List5-Sem)
5010 ------------------------------
5011 -- 9.7.1 Delay Alternative --
5012 ------------------------------
5014 -- DELAY_ALTERNATIVE ::=
5015 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5017 -- Gigi restriction: This node never appears
5019 -- N_Delay_Alternative
5020 -- Sloc points to DELAY
5021 -- Delay_Statement (Node2)
5022 -- Condition (Node1) from the guard (set to Empty if no guard present)
5023 -- Statements (List3) (set to Empty_List if no statements)
5024 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5026 ----------------------------------
5027 -- 9.7.1 Terminate Alternative --
5028 ----------------------------------
5030 -- TERMINATE_ALTERNATIVE ::= terminate;
5032 -- Gigi restriction: This node never appears
5034 -- N_Terminate_Alternative
5035 -- Sloc points to TERMINATE
5036 -- Condition (Node1) from the guard (set to Empty if no guard present)
5037 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5038 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5040 -----------------------------
5041 -- 9.7.2 Timed Entry Call --
5042 -----------------------------
5044 -- TIMED_ENTRY_CALL ::=
5046 -- ENTRY_CALL_ALTERNATIVE
5048 -- DELAY_ALTERNATIVE
5051 -- Gigi restriction: This node never appears
5053 -- N_Timed_Entry_Call
5054 -- Sloc points to SELECT
5055 -- Entry_Call_Alternative (Node1)
5056 -- Delay_Alternative (Node4)
5058 -----------------------------------
5059 -- 9.7.2 Entry Call Alternative --
5060 -----------------------------------
5062 -- ENTRY_CALL_ALTERNATIVE ::=
5063 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5065 -- PROCEDURE_OR_ENTRY_CALL ::=
5066 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5068 -- Gigi restriction: This node never appears
5070 -- N_Entry_Call_Alternative
5071 -- Sloc points to first token of entry call statement
5072 -- Entry_Call_Statement (Node1)
5073 -- Statements (List3) (set to Empty_List if no statements)
5074 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5076 -----------------------------------
5077 -- 9.7.3 Conditional Entry Call --
5078 -----------------------------------
5080 -- CONDITIONAL_ENTRY_CALL ::=
5082 -- ENTRY_CALL_ALTERNATIVE
5084 -- SEQUENCE_OF_STATEMENTS
5087 -- Gigi restriction: This node never appears
5089 -- N_Conditional_Entry_Call
5090 -- Sloc points to SELECT
5091 -- Entry_Call_Alternative (Node1)
5092 -- Else_Statements (List4)
5094 --------------------------------
5095 -- 9.7.4 Asynchronous Select --
5096 --------------------------------
5098 -- ASYNCHRONOUS_SELECT ::=
5100 -- TRIGGERING_ALTERNATIVE
5105 -- Note: asynchronous select is not permitted in Ada 83 mode
5107 -- Gigi restriction: This node never appears
5109 -- N_Asynchronous_Select
5110 -- Sloc points to SELECT
5111 -- Triggering_Alternative (Node1)
5112 -- Abortable_Part (Node2)
5114 -----------------------------------
5115 -- 9.7.4 Triggering Alternative --
5116 -----------------------------------
5118 -- TRIGGERING_ALTERNATIVE ::=
5119 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5121 -- Gigi restriction: This node never appears
5123 -- N_Triggering_Alternative
5124 -- Sloc points to first token of triggering statement
5125 -- Triggering_Statement (Node1)
5126 -- Statements (List3) (set to Empty_List if no statements)
5127 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5129 ---------------------------------
5130 -- 9.7.4 Triggering Statement --
5131 ---------------------------------
5133 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5135 ---------------------------
5136 -- 9.7.4 Abortable Part --
5137 ---------------------------
5139 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5141 -- Gigi restriction: This node never appears
5144 -- Sloc points to ABORT
5145 -- Statements (List3)
5147 --------------------------
5148 -- 9.8 Abort Statement --
5149 --------------------------
5151 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5153 -- Gigi restriction: This node never appears
5155 -- N_Abort_Statement
5156 -- Sloc points to ABORT
5159 -------------------------
5160 -- 10.1.1 Compilation --
5161 -------------------------
5163 -- COMPILATION ::= {COMPILATION_UNIT}
5165 -- There is no explicit node in the tree for a compilation, since in
5166 -- general the compiler is processing only a single compilation unit
5167 -- at a time. It is possible to parse multiple units in syntax check
5168 -- only mode, but they the trees are discarded in any case.
5170 ------------------------------
5171 -- 10.1.1 Compilation Unit --
5172 ------------------------------
5174 -- COMPILATION_UNIT ::=
5175 -- CONTEXT_CLAUSE LIBRARY_ITEM
5176 -- | CONTEXT_CLAUSE SUBUNIT
5178 -- The N_Compilation_Unit node itself respresents the above syntax.
5179 -- However, there are two additional items not reflected in the above
5180 -- syntax. First we have the global declarations that are added by the
5181 -- code generator. These are outer level declarations (so they cannot
5182 -- be represented as being inside the units). An example is the wrapper
5183 -- subprograms that are created to do ABE checking. As always a list of
5184 -- declarations can contain actions as well (i.e. statements), and such
5185 -- statements are executed as part of the elaboration of the unit. Note
5186 -- that all such declarations are elaborated before the library unit.
5188 -- Similarly, certain actions need to be elaborated at the completion
5189 -- of elaboration of the library unit (notably the statement that sets
5190 -- the Boolean flag indicating that elaboration is complete).
5192 -- The third item not reflected in the syntax is pragmas that appear
5193 -- after the compilation unit. As always pragmas are a problem since
5194 -- they are not part of the formal syntax, but can be stuck into the
5195 -- source following a set of ad hoc rules, and we have to find an ad
5196 -- hoc way of sticking them into the tree. For pragmas that appear
5197 -- before the library unit, we just consider them to be part of the
5198 -- context clause, and pragmas can appear in the Context_Items list
5199 -- of the compilation unit. However, pragmas can also appear after
5200 -- the library item.
5202 -- To deal with all these problems, we create an auxiliary node for
5203 -- a compilation unit, referenced from the N_Compilation_Unit node
5204 -- that contains these three items.
5206 -- N_Compilation_Unit
5207 -- Sloc points to first token of defining unit name
5208 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
5209 -- Context_Items (List1) context items and pragmas preceding unit
5210 -- Private_Present (Flag15) set if library unit has private keyword
5211 -- Unit (Node2) library item or subunit
5212 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5213 -- Has_No_Elaboration_Code (Flag17-Sem)
5214 -- Body_Required (Flag13-Sem) set for spec if body is required
5215 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5216 -- First_Inlined_Subprogram (Node3-Sem)
5218 -- N_Compilation_Unit_Aux
5219 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
5220 -- Declarations (List2) (set to No_List if no global declarations)
5221 -- Actions (List1) (set to No_List if no actions)
5222 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
5223 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5225 --------------------------
5226 -- 10.1.1 Library Item --
5227 --------------------------
5230 -- [private] LIBRARY_UNIT_DECLARATION
5231 -- | LIBRARY_UNIT_BODY
5232 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5234 -- Note: PRIVATE is not allowed in Ada 83 mode
5236 -- There is no explicit node in the tree for library item, instead
5237 -- the declaration or body, and the flag for private if present,
5238 -- appear in the N_Compilation_Unit clause.
5240 ----------------------------------------
5241 -- 10.1.1 Library Unit Declararation --
5242 ----------------------------------------
5244 -- LIBRARY_UNIT_DECLARATION ::=
5245 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5246 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
5248 -------------------------------------------------
5249 -- 10.1.1 Library Unit Renaming Declararation --
5250 -------------------------------------------------
5252 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
5253 -- PACKAGE_RENAMING_DECLARATION
5254 -- | GENERIC_RENAMING_DECLARATION
5255 -- | SUBPROGRAM_RENAMING_DECLARATION
5257 -------------------------------
5258 -- 10.1.1 Library unit body --
5259 -------------------------------
5261 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5263 ------------------------------
5264 -- 10.1.1 Parent Unit Name --
5265 ------------------------------
5267 -- PARENT_UNIT_NAME ::= NAME
5269 ----------------------------
5270 -- 10.1.2 Context clause --
5271 ----------------------------
5273 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5275 -- The context clause can include pragmas, and any pragmas that appear
5276 -- before the context clause proper (i.e. all configuration pragmas,
5277 -- also appear at the front of this list).
5279 --------------------------
5280 -- 10.1.2 Context_Item --
5281 --------------------------
5283 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
5285 -------------------------
5286 -- 10.1.2 With clause --
5287 -------------------------
5290 -- with library_unit_NAME {,library_unit_NAME};
5292 -- A separate With clause is built for each name, so that we have
5293 -- a Corresponding_Spec field for each with'ed spec. The flags
5294 -- First_Name and Last_Name are used to reconstruct the exact
5295 -- source form. When a list of names appears in one with clause,
5296 -- the first name in the list has First_Name set, and the last
5297 -- has Last_Name set. If the with clause has only one name, then
5298 -- both of the flags First_Name and Last_Name are set in this name.
5300 -- Note: in the case of implicit with's that are installed by the
5301 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
5302 -- set to Standard_Location, but it is incorrect to test the Sloc
5303 -- to find out if a with clause is implicit, test the flag instead.
5306 -- Sloc points to first token of library unit name
5308 -- Library_Unit (Node4-Sem)
5309 -- Corresponding_Spec (Node5-Sem)
5310 -- First_Name (Flag5) (set to True if first name or only one name)
5311 -- Last_Name (Flag6) (set to True if last name or only one name)
5312 -- Context_Installed (Flag13-Sem)
5313 -- Elaborate_Present (Flag4-Sem)
5314 -- Elaborate_All_Present (Flag14-Sem)
5315 -- Elaborate_All_Desirable (Flag9-Sem)
5316 -- Elaborate_Desirable (Flag11-Sem)
5317 -- Private_Present (Flag15) set if with_clause has private keyword
5318 -- Implicit_With (Flag16-Sem)
5319 -- Limited_Present (Flag17) set if LIMITED is present
5320 -- Limited_View_Installed (Flag18-Sem)
5321 -- Unreferenced_In_Spec (Flag7-Sem)
5322 -- No_Entities_Ref_In_Spec (Flag8-Sem)
5324 -- Note: Limited_Present and Limited_View_Installed give support to
5325 -- Ada 2005 (AI-50217).
5326 -- Similarly, Private_Present gives support to AI-50262.
5328 ----------------------
5329 -- With_Type clause --
5330 ----------------------
5332 -- This is a GNAT extension, used to implement mutually recursive
5333 -- types declared in different packages.
5335 -- WITH_TYPE_CLAUSE ::=
5336 -- with type type_NAME is access | with type type_NAME is tagged
5338 -- N_With_Type_Clause
5339 -- Sloc points to first token of type name
5341 -- Tagged_Present (Flag15)
5343 ---------------------
5344 -- 10.2 Body stub --
5345 ---------------------
5348 -- SUBPROGRAM_BODY_STUB
5349 -- | PACKAGE_BODY_STUB
5351 -- | PROTECTED_BODY_STUB
5353 ----------------------------------
5354 -- 10.1.3 Subprogram Body Stub --
5355 ----------------------------------
5357 -- SUBPROGRAM_BODY_STUB ::=
5358 -- SUBPROGRAM_SPECIFICATION is separate;
5360 -- N_Subprogram_Body_Stub
5361 -- Sloc points to FUNCTION or PROCEDURE
5362 -- Specification (Node1)
5363 -- Library_Unit (Node4-Sem) points to the subunit
5364 -- Corresponding_Body (Node5-Sem)
5366 -------------------------------
5367 -- 10.1.3 Package Body Stub --
5368 -------------------------------
5370 -- PACKAGE_BODY_STUB ::=
5371 -- package body DEFINING_IDENTIFIER is separate;
5373 -- N_Package_Body_Stub
5374 -- Sloc points to PACKAGE
5375 -- Defining_Identifier (Node1)
5376 -- Library_Unit (Node4-Sem) points to the subunit
5377 -- Corresponding_Body (Node5-Sem)
5379 ----------------------------
5380 -- 10.1.3 Task Body Stub --
5381 ----------------------------
5383 -- TASK_BODY_STUB ::=
5384 -- task body DEFINING_IDENTIFIER is separate;
5387 -- Sloc points to TASK
5388 -- Defining_Identifier (Node1)
5389 -- Library_Unit (Node4-Sem) points to the subunit
5390 -- Corresponding_Body (Node5-Sem)
5392 ---------------------------------
5393 -- 10.1.3 Protected Body Stub --
5394 ---------------------------------
5396 -- PROTECTED_BODY_STUB ::=
5397 -- protected body DEFINING_IDENTIFIER is separate;
5399 -- Note: protected body stubs are not allowed in Ada 83 mode
5401 -- N_Protected_Body_Stub
5402 -- Sloc points to PROTECTED
5403 -- Defining_Identifier (Node1)
5404 -- Library_Unit (Node4-Sem) points to the subunit
5405 -- Corresponding_Body (Node5-Sem)
5407 ---------------------
5408 -- 10.1.3 Subunit --
5409 ---------------------
5411 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5414 -- Sloc points to SEPARATE
5415 -- Name (Node2) is the name of the parent unit
5416 -- Proper_Body (Node1) is the subunit body
5417 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5419 ---------------------------------
5420 -- 11.1 Exception Declaration --
5421 ---------------------------------
5423 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception;
5425 -- For consistency with object declarations etc, the parser converts
5426 -- the case of multiple identifiers being declared to a series of
5427 -- declarations in which the expression is copied, using the More_Ids
5428 -- and Prev_Ids flags to remember the souce form as described in the
5429 -- section on "Handling of Defining Identifier Lists".
5431 -- N_Exception_Declaration
5432 -- Sloc points to EXCEPTION
5433 -- Defining_Identifier (Node1)
5434 -- Expression (Node3-Sem)
5435 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5436 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5438 ------------------------------------------
5439 -- 11.2 Handled Sequence Of Statements --
5440 ------------------------------------------
5442 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
5443 -- SEQUENCE_OF_STATEMENTS
5445 -- EXCEPTION_HANDLER
5446 -- {EXCEPTION_HANDLER}]
5448 -- cleanup_procedure_call (param, param, param, ...);]
5450 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
5451 -- used only internally currently, but is considered to be syntactic.
5452 -- At the moment, the only cleanup action allowed is a single call to
5453 -- a parameterless procedure, and the Identifier field of the node is
5454 -- the procedure to be called. Also there is a current restriction
5455 -- that exception handles and a cleanup cannot be present in the same
5456 -- frame, so at least one of Exception_Handlers or the Identifier must
5459 -- Actually, more accurately, this restriction applies to the original
5460 -- source program. In the expanded tree, if the At_End_Proc field is
5461 -- present, then there will also be an exception handler of the form:
5463 -- when all others =>
5467 -- where cleanup is the procedure to be generated. The reason we do
5468 -- this is so that the front end can handle the necessary entries in
5469 -- the exception tables, and other exception handler actions required
5470 -- as part of the normal handling for exception handlers.
5472 -- The AT END cleanup handler protects only the sequence of statements
5473 -- (not the associated declarations of the parent), just like exception
5474 -- handlers. The big difference is that the cleanup procedure is called
5475 -- on either a normal or an abnormal exit from the statement sequence.
5477 -- Note: the list of Exception_Handlers can contain pragmas as well
5478 -- as actual handlers. In practice these pragmas can only occur at
5479 -- the start of the list, since any pragmas occurring later on will
5480 -- be included in the statement list of the corresponding handler.
5482 -- Note: although in the Ada syntax, the sequence of statements in
5483 -- a handled sequence of statements can only contain statements, we
5484 -- allow free mixing of declarations and statements in the resulting
5485 -- expanded tree. This is for example used to deal with the case of
5486 -- a cleanup procedure that must handle declarations as well as the
5487 -- statements of a block.
5489 -- N_Handled_Sequence_Of_Statements
5490 -- Sloc points to first token of first statement
5491 -- Statements (List3)
5492 -- End_Label (Node4) (set to Empty if expander generated)
5493 -- Exception_Handlers (List5) (set to No_List if none present)
5494 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
5495 -- First_Real_Statement (Node2-Sem)
5496 -- Zero_Cost_Handling (Flag5-Sem)
5498 -- Note: the parent always contains a Declarations field which contains
5499 -- declarations associated with the handled sequence of statements. This
5500 -- is true even in the case of an accept statement (see description of
5501 -- the N_Accept_Statement node).
5503 -- End_Label refers to the containing construct
5505 -----------------------------
5506 -- 11.2 Exception Handler --
5507 -----------------------------
5509 -- EXCEPTION_HANDLER ::=
5510 -- when [CHOICE_PARAMETER_SPECIFICATION :]
5511 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5512 -- SEQUENCE_OF_STATEMENTS
5514 -- Note: choice parameter specification is not allowed in Ada 83 mode
5516 -- N_Exception_Handler
5517 -- Sloc points to WHEN
5518 -- Choice_Parameter (Node2) (set to Empty if not present)
5519 -- Exception_Choices (List4)
5520 -- Statements (List3)
5521 -- Zero_Cost_Handling (Flag5-Sem)
5523 ------------------------------------------
5524 -- 11.2 Choice parameter specification --
5525 ------------------------------------------
5527 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5529 ----------------------------
5530 -- 11.2 Exception Choice --
5531 ----------------------------
5533 -- EXCEPTION_CHOICE ::= exception_NAME | others
5535 -- Except in the case of OTHERS, no explicit node appears in the tree
5536 -- for exception choice. Instead the exception name appears directly.
5537 -- An OTHERS choice is represented by a N_Others_Choice node (see
5540 -- Note: for the exception choice created for an at end handler, the
5541 -- exception choice is an N_Others_Choice node with All_Others set.
5543 ---------------------------
5544 -- 11.3 Raise Statement --
5545 ---------------------------
5547 -- RAISE_STATEMENT ::= raise [exception_NAME];
5549 -- In Ada 2005, we have
5551 -- RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5553 -- N_Raise_Statement
5554 -- Sloc points to RAISE
5555 -- Name (Node2) (set to Empty if no exception name present)
5556 -- Expression (Node3) (set to Empty if no expression present)
5558 -------------------------------
5559 -- 12.1 Generic Declaration --
5560 -------------------------------
5562 -- GENERIC_DECLARATION ::=
5563 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5565 ------------------------------------------
5566 -- 12.1 Generic Subprogram Declaration --
5567 ------------------------------------------
5569 -- GENERIC_SUBPROGRAM_DECLARATION ::=
5570 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5572 -- Note: Generic_Formal_Declarations can include pragmas
5574 -- N_Generic_Subprogram_Declaration
5575 -- Sloc points to GENERIC
5576 -- Specification (Node1) subprogram specification
5577 -- Corresponding_Body (Node5-Sem)
5578 -- Generic_Formal_Declarations (List2) from generic formal part
5579 -- Parent_Spec (Node4-Sem)
5581 ---------------------------------------
5582 -- 12.1 Generic Package Declaration --
5583 ---------------------------------------
5585 -- GENERIC_PACKAGE_DECLARATION ::=
5586 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION;
5588 -- Note: when we do generics right, the Activation_Chain_Entity entry
5589 -- for this node can be removed (since the expander won't see generic
5590 -- units any more)???.
5592 -- Note: Generic_Formal_Declarations can include pragmas
5594 -- N_Generic_Package_Declaration
5595 -- Sloc points to GENERIC
5596 -- Specification (Node1) package specification
5597 -- Corresponding_Body (Node5-Sem)
5598 -- Generic_Formal_Declarations (List2) from generic formal part
5599 -- Parent_Spec (Node4-Sem)
5600 -- Activation_Chain_Entity (Node3-Sem)
5602 -------------------------------
5603 -- 12.1 Generic Formal Part --
5604 -------------------------------
5606 -- GENERIC_FORMAL_PART ::=
5607 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
5609 ------------------------------------------------
5610 -- 12.1 Generic Formal Parameter Declaration --
5611 ------------------------------------------------
5613 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
5614 -- FORMAL_OBJECT_DECLARATION
5615 -- | FORMAL_TYPE_DECLARATION
5616 -- | FORMAL_SUBPROGRAM_DECLARATION
5617 -- | FORMAL_PACKAGE_DECLARATION
5619 ---------------------------------
5620 -- 12.3 Generic Instantiation --
5621 ---------------------------------
5623 -- GENERIC_INSTANTIATION ::=
5624 -- package DEFINING_PROGRAM_UNIT_NAME is
5625 -- new generic_package_NAME [GENERIC_ACTUAL_PART];
5626 -- | [[not] overriding]
5627 -- procedure DEFINING_PROGRAM_UNIT_NAME is
5628 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART];
5629 -- | [[not] overriding]
5630 -- function DEFINING_DESIGNATOR is
5631 -- new generic_function_NAME [GENERIC_ACTUAL_PART];
5633 -- N_Package_Instantiation
5634 -- Sloc points to PACKAGE
5635 -- Defining_Unit_Name (Node1)
5637 -- Generic_Associations (List3) (set to No_List if no
5638 -- generic actual part)
5639 -- Parent_Spec (Node4-Sem)
5640 -- Instance_Spec (Node5-Sem)
5641 -- ABE_Is_Certain (Flag18-Sem)
5643 -- N_Procedure_Instantiation
5644 -- Sloc points to PROCEDURE
5645 -- Defining_Unit_Name (Node1)
5647 -- Parent_Spec (Node4-Sem)
5648 -- Generic_Associations (List3) (set to No_List if no
5649 -- generic actual part)
5650 -- Instance_Spec (Node5-Sem)
5651 -- Must_Override (Flag14) set if overriding indicator present
5652 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5653 -- ABE_Is_Certain (Flag18-Sem)
5655 -- N_Function_Instantiation
5656 -- Sloc points to FUNCTION
5657 -- Defining_Unit_Name (Node1)
5659 -- Generic_Associations (List3) (set to No_List if no
5660 -- generic actual part)
5661 -- Parent_Spec (Node4-Sem)
5662 -- Instance_Spec (Node5-Sem)
5663 -- Must_Override (Flag14) set if overriding indicator present
5664 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5665 -- ABE_Is_Certain (Flag18-Sem)
5667 -- Note: overriding indicator is an Ada 2005 feature
5669 ------------------------------
5670 -- 12.3 Generic Actual Part --
5671 ------------------------------
5673 -- GENERIC_ACTUAL_PART ::=
5674 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
5676 -------------------------------
5677 -- 12.3 Generic Association --
5678 -------------------------------
5680 -- GENERIC_ASSOCIATION ::=
5681 -- [generic_formal_parameter_SELECTOR_NAME =>]
5683 -- Note: unlike the procedure call case, a generic association node
5684 -- is generated for every association, even if no formal is present.
5685 -- In this case the parser will leave the Selector_Name field set
5686 -- to Empty, to be filled in later by the semantic pass.
5688 -- In Ada 2005, a formal may be associated with a box, if the
5689 -- association is part of the list of actuals for a formal package.
5690 -- If the association is given by OTHERS => <>, the association is
5691 -- an N_Others_Choice.
5693 -- N_Generic_Association
5694 -- Sloc points to first token of generic association
5695 -- Selector_Name (Node2) (set to Empty if no formal
5696 -- parameter selector name)
5697 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
5698 -- Box_Present (Flag15) (for formal_package associations with a box)
5700 ---------------------------------------------
5701 -- 12.3 Explicit Generic Actual Parameter --
5702 ---------------------------------------------
5704 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
5705 -- EXPRESSION | variable_NAME | subprogram_NAME
5706 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
5708 -------------------------------------
5709 -- 12.4 Formal Object Declaration --
5710 -------------------------------------
5712 -- FORMAL_OBJECT_DECLARATION ::=
5713 -- DEFINING_IDENTIFIER_LIST :
5714 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION];
5715 -- | DEFINING_IDENTIFIER_LIST :
5716 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION];
5718 -- Although the syntax allows multiple identifiers in the list, the
5719 -- semantics is as though successive declarations were given with
5720 -- identical type definition and expression components. To simplify
5721 -- semantic processing, the parser represents a multiple declaration
5722 -- case as a sequence of single declarations, using the More_Ids and
5723 -- Prev_Ids flags to preserve the original source form as described
5724 -- in the section on "Handling of Defining Identifier Lists".
5726 -- N_Formal_Object_Declaration
5727 -- Sloc points to first identifier
5728 -- Defining_Identifier (Node1)
5729 -- In_Present (Flag15)
5730 -- Out_Present (Flag17)
5731 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5732 -- Subtype_Mark (Node4) (set to Empty if not present)
5733 -- Access_Definition (Node3) (set to Empty if not present)
5734 -- Default_Expression (Node5) (set to Empty if no default expression)
5735 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5736 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5738 -----------------------------------
5739 -- 12.5 Formal Type Declaration --
5740 -----------------------------------
5742 -- FORMAL_TYPE_DECLARATION ::=
5743 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5744 -- is FORMAL_TYPE_DEFINITION;
5746 -- N_Formal_Type_Declaration
5747 -- Sloc points to TYPE
5748 -- Defining_Identifier (Node1)
5749 -- Formal_Type_Definition (Node3)
5750 -- Discriminant_Specifications (List4) (set to No_List if no
5751 -- discriminant part)
5752 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5754 ----------------------------------
5755 -- 12.5 Formal type definition --
5756 ----------------------------------
5758 -- FORMAL_TYPE_DEFINITION ::=
5759 -- FORMAL_PRIVATE_TYPE_DEFINITION
5760 -- | FORMAL_DERIVED_TYPE_DEFINITION
5761 -- | FORMAL_DISCRETE_TYPE_DEFINITION
5762 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
5763 -- | FORMAL_MODULAR_TYPE_DEFINITION
5764 -- | FORMAL_FLOATING_POINT_DEFINITION
5765 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
5766 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
5767 -- | FORMAL_ARRAY_TYPE_DEFINITION
5768 -- | FORMAL_ACCESS_TYPE_DEFINITION
5769 -- | FORMAL_INTERFACE_TYPE_DEFINITION
5771 ---------------------------------------------
5772 -- 12.5.1 Formal Private Type Definition --
5773 ---------------------------------------------
5775 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
5776 -- [[abstract] tagged] [limited] private
5778 -- Note: TAGGED is not allowed in Ada 83 mode
5780 -- N_Formal_Private_Type_Definition
5781 -- Sloc points to PRIVATE
5782 -- Abstract_Present (Flag4)
5783 -- Tagged_Present (Flag15)
5784 -- Limited_Present (Flag17)
5786 --------------------------------------------
5787 -- 12.5.1 Formal Derived Type Definition --
5788 --------------------------------------------
5790 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
5791 -- [abstract] [limited | synchronized]
5792 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
5793 -- Note: this construct is not allowed in Ada 83 mode
5795 -- N_Formal_Derived_Type_Definition
5796 -- Sloc points to NEW
5797 -- Subtype_Mark (Node4)
5798 -- Private_Present (Flag15)
5799 -- Abstract_Present (Flag4)
5800 -- Limited_Present (Flag17)
5801 -- Synchronized_Present (Flag7)
5802 -- Interface_List (List2) (set to No_List if none)
5804 ---------------------------------------------
5805 -- 12.5.2 Formal Discrete Type Definition --
5806 ---------------------------------------------
5808 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
5810 -- N_Formal_Discrete_Type_Definition
5813 ---------------------------------------------------
5814 -- 12.5.2 Formal Signed Integer Type Definition --
5815 ---------------------------------------------------
5817 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
5819 -- N_Formal_Signed_Integer_Type_Definition
5820 -- Sloc points to RANGE
5822 --------------------------------------------
5823 -- 12.5.2 Formal Modular Type Definition --
5824 --------------------------------------------
5826 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
5828 -- N_Formal_Modular_Type_Definition
5829 -- Sloc points to MOD
5831 ----------------------------------------------
5832 -- 12.5.2 Formal Floating Point Definition --
5833 ----------------------------------------------
5835 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
5837 -- N_Formal_Floating_Point_Definition
5838 -- Sloc points to DIGITS
5840 ----------------------------------------------------
5841 -- 12.5.2 Formal Ordinary Fixed Point Definition --
5842 ----------------------------------------------------
5844 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
5846 -- N_Formal_Ordinary_Fixed_Point_Definition
5847 -- Sloc points to DELTA
5849 ---------------------------------------------------
5850 -- 12.5.2 Formal Decimal Fixed Point Definition --
5851 ---------------------------------------------------
5853 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
5855 -- Note: formal decimal fixed point definition not allowed in Ada 83
5857 -- N_Formal_Decimal_Fixed_Point_Definition
5858 -- Sloc points to DELTA
5860 ------------------------------------------
5861 -- 12.5.3 Formal Array Type Definition --
5862 ------------------------------------------
5864 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
5866 -------------------------------------------
5867 -- 12.5.4 Formal Access Type Definition --
5868 -------------------------------------------
5870 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
5872 ----------------------------------------------
5873 -- 12.5.5 Formal Interface Type Definition --
5874 ----------------------------------------------
5876 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
5878 -----------------------------------------
5879 -- 12.6 Formal Subprogram Declaration --
5880 -----------------------------------------
5882 -- FORMAL_SUBPROGRAM_DECLARATION ::=
5883 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
5884 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
5886 --------------------------------------------------
5887 -- 12.6 Formal Concrete Subprogram Declaration --
5888 --------------------------------------------------
5890 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
5891 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT];
5893 -- N_Formal_Concrete_Subprogram_Declaration
5894 -- Sloc points to WITH
5895 -- Specification (Node1)
5896 -- Default_Name (Node2) (set to Empty if no subprogram default)
5897 -- Box_Present (Flag15)
5899 -- Note: if no subprogram default is present, then Name is set
5900 -- to Empty, and Box_Present is False.
5902 --------------------------------------------------
5903 -- 12.6 Formal Abstract Subprogram Declaration --
5904 --------------------------------------------------
5906 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
5907 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT];
5909 -- N_Formal_Abstract_Subprogram_Declaration
5910 -- Sloc points to WITH
5911 -- Specification (Node1)
5912 -- Default_Name (Node2) (set to Empty if no subprogram default)
5913 -- Box_Present (Flag15)
5915 -- Note: if no subprogram default is present, then Name is set
5916 -- to Empty, and Box_Present is False.
5918 ------------------------------
5919 -- 12.6 Subprogram Default --
5920 ------------------------------
5922 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
5924 -- There is no separate node in the tree for a subprogram default.
5925 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
5926 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
5927 -- default name or box indication, as needed.
5929 ------------------------
5930 -- 12.6 Default Name --
5931 ------------------------
5933 -- DEFAULT_NAME ::= NAME
5935 --------------------------------------
5936 -- 12.7 Formal Package Declaration --
5937 --------------------------------------
5939 -- FORMAL_PACKAGE_DECLARATION ::=
5940 -- with package DEFINING_IDENTIFIER
5941 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART;
5943 -- Note: formal package declarations not allowed in Ada 83 mode
5945 -- N_Formal_Package_Declaration
5946 -- Sloc points to WITH
5947 -- Defining_Identifier (Node1)
5949 -- Generic_Associations (List3) (set to No_List if (<>) case or
5950 -- empty generic actual part)
5951 -- Box_Present (Flag15)
5952 -- Instance_Spec (Node5-Sem)
5953 -- ABE_Is_Certain (Flag18-Sem)
5955 --------------------------------------
5956 -- 12.7 Formal Package Actual Part --
5957 --------------------------------------
5959 -- FORMAL_PACKAGE_ACTUAL_PART ::=
5961 -- | [GENERIC_ACTUAL_PART]
5962 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
5964 -- FORMAL_PACKAGE_ASSOCIATION ::=
5965 -- GENERIC_ASSOCIATION
5966 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
5968 -- There is no explicit node in the tree for a formal package actual
5969 -- part. Instead the information appears in the parent node (i.e. the
5970 -- formal package declaration node itself).
5972 -- There is no explicit node for a formal package association. All of
5973 -- them are represented either by a generic association, possibly with
5974 -- Box_Present, or by an N_Others_Choice.
5976 ---------------------------------
5977 -- 13.1 Representation clause --
5978 ---------------------------------
5980 -- REPRESENTATION_CLAUSE ::=
5981 -- ATTRIBUTE_DEFINITION_CLAUSE
5982 -- | ENUMERATION_REPRESENTATION_CLAUSE
5983 -- | RECORD_REPRESENTATION_CLAUSE
5986 ----------------------
5987 -- 13.1 Local Name --
5988 ----------------------
5992 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
5993 -- | library_unit_NAME
5995 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
5996 -- as an attribute reference, which has essentially the same form.
5998 ---------------------------------------
5999 -- 13.3 Attribute definition clause --
6000 ---------------------------------------
6002 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6003 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6004 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6006 -- In Ada 83, the expression must be a simple expression and the
6007 -- local name must be a direct name.
6009 -- Note: the only attribute definition clause that is processed by
6010 -- gigi is an address clause. For all other cases, the information
6011 -- is extracted by the front end and either results in setting entity
6012 -- information, e.g. Esize for the Size clause, or in appropriate
6013 -- expansion actions (e.g. in the case of Storage_Size).
6015 -- For an address clause, Gigi constructs the appropriate addressing
6016 -- code. It also ensures that no aliasing optimizations are made
6017 -- for the object for which the address clause appears.
6019 -- Note: for an address clause used to achieve an overlay:
6023 -- for B'Address use A'Address;
6025 -- the above rule means that Gigi will ensure that no optimizations
6026 -- will be made for B that would violate the implementation advice
6027 -- of RM 13.3(19). However, this advice applies only to B and not
6028 -- to A, which seems unfortunate. The GNAT front end will mark the
6029 -- object A as volatile to also prevent unwanted optimization
6030 -- assumptions based on no aliasing being made for B.
6032 -- N_Attribute_Definition_Clause
6033 -- Sloc points to FOR
6034 -- Name (Node2) the local name
6035 -- Chars (Name1) the identifier name from the attribute designator
6036 -- Expression (Node3) the expression or name
6037 -- Entity (Node4-Sem)
6038 -- Next_Rep_Item (Node5-Sem)
6039 -- From_At_Mod (Flag4-Sem)
6040 -- Check_Address_Alignment (Flag11-Sem)
6042 ---------------------------------------------
6043 -- 13.4 Enumeration representation clause --
6044 ---------------------------------------------
6046 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
6047 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6049 -- In Ada 83, the name must be a direct name
6051 -- N_Enumeration_Representation_Clause
6052 -- Sloc points to FOR
6053 -- Identifier (Node1) direct name
6054 -- Array_Aggregate (Node3)
6055 -- Next_Rep_Item (Node5-Sem)
6057 ---------------------------------
6058 -- 13.4 Enumeration aggregate --
6059 ---------------------------------
6061 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6063 ------------------------------------------
6064 -- 13.5.1 Record representation clause --
6065 ------------------------------------------
6067 -- RECORD_REPRESENTATION_CLAUSE ::=
6068 -- for first_subtype_LOCAL_NAME use
6069 -- record [MOD_CLAUSE]
6070 -- {COMPONENT_CLAUSE}
6073 -- Gigi restriction: Mod_Clause is always Empty (if present it is
6074 -- replaced by a corresponding Alignment attribute definition clause).
6076 -- Note: Component_Clauses can include pragmas
6078 -- N_Record_Representation_Clause
6079 -- Sloc points to FOR
6080 -- Identifier (Node1) direct name
6081 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
6082 -- Component_Clauses (List3)
6083 -- Next_Rep_Item (Node5-Sem)
6085 ------------------------------
6086 -- 13.5.1 Component clause --
6087 ------------------------------
6089 -- COMPONENT_CLAUSE ::=
6090 -- component_LOCAL_NAME at POSITION
6091 -- range FIRST_BIT .. LAST_BIT;
6093 -- N_Component_Clause
6094 -- Sloc points to AT
6095 -- Component_Name (Node1) points to Name or Attribute_Reference
6097 -- First_Bit (Node3)
6100 ----------------------
6101 -- 13.5.1 Position --
6102 ----------------------
6104 -- POSITION ::= static_EXPRESSION
6106 -----------------------
6107 -- 13.5.1 First_Bit --
6108 -----------------------
6110 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
6112 ----------------------
6113 -- 13.5.1 Last_Bit --
6114 ----------------------
6116 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
6118 --------------------------
6119 -- 13.8 Code statement --
6120 --------------------------
6122 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6124 -- Note: in GNAT, the qualified expression has the form
6126 -- Asm_Insn'(Asm (...));
6128 -- See package System.Machine_Code in file s-maccod.ads for details on
6129 -- the allowed parameters to Asm. There are two ways this node can
6130 -- arise, as a code statement, in which case the expression is the
6131 -- qualified expression, or as a result of the expansion of an intrinsic
6132 -- call to the Asm or Asm_Input procedure.
6135 -- Sloc points to first token of the expression
6136 -- Expression (Node3)
6138 -- Note: package Exp_Code contains an abstract functional interface
6139 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
6141 ------------------------
6142 -- 13.12 Restriction --
6143 ------------------------
6146 -- restriction_IDENTIFIER
6147 -- | restriction_parameter_IDENTIFIER => EXPRESSION
6149 -- There is no explicit node for restrictions. Instead the restriction
6150 -- appears in normal pragma syntax as a pragma argument association,
6151 -- which has the same syntactic form.
6153 --------------------------
6154 -- B.2 Shift Operators --
6155 --------------------------
6157 -- Calls to the intrinsic shift functions are converted to one of
6158 -- the following shift nodes, which have the form of normal binary
6159 -- operator names. Note that for a given shift operation, one node
6160 -- covers all possible types, as for normal operators.
6162 -- Note: it is perfectly permissible for the expander to generate
6163 -- shift operation nodes directly, in which case they will be analyzed
6164 -- and parsed in the usual manner.
6166 -- Sprint syntax: shift-function-name!(expr, count)
6168 -- Note: the Left_Opnd field holds the first argument (the value to
6169 -- be shifted). The Right_Opnd field holds the second argument (the
6170 -- shift count). The Chars field is the name of the intrinsic function.
6173 -- Sloc points to the function name
6174 -- plus fields for binary operator
6175 -- plus fields for expression
6176 -- Shift_Count_OK (Flag4-Sem)
6178 -- N_Op_Rotate_Right
6179 -- Sloc points to the function name
6180 -- plus fields for binary operator
6181 -- plus fields for expression
6182 -- Shift_Count_OK (Flag4-Sem)
6185 -- Sloc points to the function name
6186 -- plus fields for binary operator
6187 -- plus fields for expression
6188 -- Shift_Count_OK (Flag4-Sem)
6190 -- N_Op_Shift_Right_Arithmetic
6191 -- Sloc points to the function name
6192 -- plus fields for binary operator
6193 -- plus fields for expression
6194 -- Shift_Count_OK (Flag4-Sem)
6197 -- Sloc points to the function name
6198 -- plus fields for binary operator
6199 -- plus fields for expression
6200 -- Shift_Count_OK (Flag4-Sem)
6202 --------------------------
6203 -- Obsolescent Features --
6204 --------------------------
6206 -- The syntax descriptions and tree nodes for obsolescent features are
6207 -- grouped together, corresponding to their location in appendix I in
6208 -- the RM. However, parsing and semantic analysis for these constructs
6209 -- is located in an appropriate chapter (see individual notes).
6211 ---------------------------
6212 -- J.3 Delta Constraint --
6213 ---------------------------
6215 -- Note: the parse routine for this construct is located in section
6216 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6217 -- where delta constraint logically belongs.
6219 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6221 -- N_Delta_Constraint
6222 -- Sloc points to DELTA
6223 -- Delta_Expression (Node3)
6224 -- Range_Constraint (Node4) (set to Empty if not present)
6226 --------------------
6228 --------------------
6230 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6232 -- Note: the parse routine for this construct is located in Par-Ch13,
6233 -- and the semantic analysis is in Sem_Ch13, where at clause logically
6234 -- belongs if it were not obsolescent.
6236 -- Note: in Ada 83 the expression must be a simple expression
6238 -- Gigi restriction: This node never appears, it is rewritten as an
6239 -- address attribute definition clause.
6242 -- Sloc points to FOR
6243 -- Identifier (Node1)
6244 -- Expression (Node3)
6246 ---------------------
6247 -- J.8 Mod clause --
6248 ---------------------
6250 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
6252 -- Note: the parse routine for this construct is located in Par-Ch13,
6253 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
6254 -- belongs if it were not obsolescent.
6256 -- Note: in Ada 83, the expression must be a simple expression
6258 -- Gigi restriction: this node never appears. It is replaced
6259 -- by a corresponding Alignment attribute definition clause.
6261 -- Note: pragmas can appear before and after the MOD_CLAUSE since
6262 -- its name has "clause" in it. This is rather strange, but is quite
6263 -- definitely specified. The pragmas before are collected in the
6264 -- Pragmas_Before field of the mod clause node itself, and pragmas
6265 -- after are simply swallowed up in the list of component clauses.
6268 -- Sloc points to AT
6269 -- Expression (Node3)
6270 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6272 --------------------
6273 -- Semantic Nodes --
6274 --------------------
6276 -- These semantic nodes are used to hold additional semantic information.
6277 -- They are inserted into the tree as a result of semantic processing.
6278 -- Although there are no legitimate source syntax constructions that
6279 -- correspond directly to these nodes, we need a source syntax for the
6280 -- reconstructed tree printed by Sprint, and the node descriptions here
6281 -- show this syntax.
6283 ----------------------------
6284 -- Conditional Expression --
6285 ----------------------------
6287 -- This node is used to represent an expression corresponding to the
6288 -- C construct (condition ? then-expression : else_expression), where
6289 -- Expressions is a three element list, whose first expression is the
6290 -- condition, and whose second and third expressions are the then and
6291 -- else expressions respectively.
6293 -- Note: the Then_Actions and Else_Actions fields are always set to
6294 -- No_List in the tree passed to Gigi. These fields are used only
6295 -- for temporary processing purposes in the expander.
6297 -- Sprint syntax: (if expr then expr else expr)
6299 -- N_Conditional_Expression
6300 -- Sloc points to related node
6301 -- Expressions (List1)
6302 -- Then_Actions (List2-Sem)
6303 -- Else_Actions (List3-Sem)
6304 -- plus fields for expression
6306 -- Note: in the case where a debug source file is generated, the Sloc
6307 -- for this node points to the IF keyword in the Sprint file output.
6313 -- The N_Expanded_Name node is used to represent a selected component
6314 -- name that has been resolved to an expanded name. The semantic phase
6315 -- replaces N_Selected_Component nodes that represent names by the use
6316 -- of this node, leaving the N_Selected_Component node used only when
6317 -- the prefix is a record or protected type.
6319 -- The fields of the N_Expanded_Name node are layed out identically
6320 -- to those of the N_Selected_Component node, allowing conversion of
6321 -- an expanded name node to a selected component node to be done
6322 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6324 -- There is no special sprint syntax for an expanded name
6327 -- Sloc points to the period
6328 -- Chars (Name1) copy of Chars field of selector name
6330 -- Selector_Name (Node2)
6331 -- Entity (Node4-Sem)
6332 -- Associated_Node (Node4-Sem)
6333 -- Redundant_Use (Flag13-Sem)
6334 -- Has_Private_View (Flag11-Sem) set in generic units.
6335 -- plus fields for expression
6337 --------------------
6338 -- Free Statement --
6339 --------------------
6341 -- The N_Free_Statement node is generated as a result of a call to an
6342 -- instantiation of Unchecked_Deallocation. The instantiation of this
6343 -- generic is handled specially and generates this node directly.
6345 -- Sprint syntax: free expression
6348 -- Sloc is copied from the unchecked deallocation call
6349 -- Expression (Node3) argument to unchecked deallocation call
6350 -- Storage_Pool (Node1-Sem)
6351 -- Procedure_To_Call (Node2-Sem)
6352 -- Actual_Designated_Subtype (Node4-Sem)
6354 -- Note: in the case where a debug source file is generated, the Sloc
6355 -- for this node points to the FREE keyword in the Sprint file output.
6361 -- This node marks the point in a declarative part at which an entity
6362 -- declared therein becomes frozen. The expander places initialization
6363 -- procedures for types at those points. Gigi uses the freezing point
6364 -- to elaborate entities that may depend on previous private types.
6366 -- See the section in Einfo "Delayed Freezing and Elaboration" for
6367 -- a full description of the use of this node.
6369 -- The Entity field points back to the entity for the type (whose
6370 -- Freeze_Node field points back to this freeze node).
6372 -- The Actions field contains a list of declarations and statements
6373 -- generated by the expander which are associated with the freeze
6374 -- node, and are elaborated as though the freeze node were replaced
6375 -- by this sequence of actions.
6377 -- Note: the Sloc field in the freeze node references a construct
6378 -- associated with the freezing point. This is used for posting
6379 -- messages in some error/warning situations, e.g. the case where
6380 -- a primitive operation of a tagged type is declared too late.
6382 -- Sprint syntax: freeze entity-name [
6387 -- Sloc points near freeze point (see above special note)
6388 -- Entity (Node4-Sem)
6389 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6390 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6391 -- Actions (List1) (set to No_List if no freeze actions)
6392 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6394 -- The Actions field holds actions associated with the freeze. These
6395 -- actions are elaborated at the point where the type is frozen.
6397 -- Note: in the case where a debug source file is generated, the Sloc
6398 -- for this node points to the FREEZE keyword in the Sprint file output.
6400 --------------------------------
6401 -- Implicit Label Declaration --
6402 --------------------------------
6404 -- An implicit label declaration is created for every occurrence of a
6405 -- label on a statement or a label on a block or loop. It is chained
6406 -- in the declarations of the innermost enclosing block as specified
6407 -- in RM section 5.1 (3).
6409 -- The Defining_Identifier is the actual identifier for the
6410 -- statement identifier. Note that the occurrence of the label
6411 -- is a reference, NOT the defining occurrence. The defining
6412 -- occurrence occurs at the head of the innermost enclosing
6413 -- block, and is represented by this node.
6415 -- Note: from the grammar, this might better be called an implicit
6416 -- statement identifier declaration, but the term we choose seems
6417 -- friendlier, since at least informally statement identifiers are
6418 -- called labels in both cases (i.e. when used in labels, and when
6419 -- used as the identifiers of blocks and loops).
6421 -- Note: although this is logically a semantic node, since it does
6422 -- not correspond directly to a source syntax construction, these
6423 -- nodes are actually created by the parser in a post pass done just
6424 -- after parsing is complete, before semantic analysis is started (see
6425 -- the Par.Labl subunit in file par-labl.adb).
6427 -- Sprint syntax: labelname : label;
6429 -- N_Implicit_Label_Declaration
6430 -- Sloc points to the << of the label
6431 -- Defining_Identifier (Node1)
6432 -- Label_Construct (Node2-Sem)
6434 -- Note: in the case where a debug source file is generated, the Sloc
6435 -- for this node points to the label name in the generated declaration.
6437 ---------------------
6438 -- Itype_Reference --
6439 ---------------------
6441 -- This node is used to create a reference to an Itype. The only
6442 -- purpose is to make sure that the Itype is defined if this is the
6445 -- A typical use of this node is when an Itype is to be referenced in
6446 -- two branches of an if statement. In this case it is important that
6447 -- the first use of the Itype not be inside the conditional, since
6448 -- then it might not be defined if the wrong branch of the if is
6449 -- taken in the case where the definition generates elaboration code.
6451 -- The Itype field points to the referenced Itype
6453 -- sprint syntax: reference itype-name
6455 -- N_Itype_Reference
6456 -- Sloc points to the node generating the reference
6457 -- Itype (Node1-Sem)
6459 -- Note: in the case where a debug source file is generated, the Sloc
6460 -- for this node points to the REFERENCE keyword in the file output.
6462 ---------------------
6463 -- Raise_xxx_Error --
6464 ---------------------
6466 -- One of these nodes is created during semantic analysis to replace
6467 -- a node for an expression that is determined to definitely raise
6468 -- the corresponding exception.
6470 -- The N_Raise_xxx_Error node may also stand alone in place
6471 -- of a declaration or statement, in which case it simply causes
6472 -- the exception to be raised (i.e. it is equivalent to a raise
6473 -- statement that raises the corresponding exception). This use
6474 -- is distinguished by the fact that the Etype in this case is
6475 -- Standard_Void_Type, In the subexprssion case, the Etype is the
6476 -- same as the type of the subexpression which it replaces.
6478 -- If Condition is empty, then the raise is unconditional. If the
6479 -- Condition field is non-empty, it is a boolean expression which
6480 -- is first evaluated, and the exception is raised only if the
6481 -- value of the expression is True. In the unconditional case, the
6482 -- creation of this node is usually accompanied by a warning message
6483 -- error. The creation of this node will usually be accompanied by a
6484 -- message (unless it appears within the right operand of a short
6485 -- circuit form whose left argument is static and decisively
6486 -- eliminates elaboration of the raise operation.
6488 -- The exception is generated with a message that contains the
6489 -- file name and line number, and then appended text. The Reason
6490 -- code shows the text to be added. The Reason code is an element
6491 -- of the type Types.RT_Exception_Code, and indicates both the
6492 -- message to be added, and the exception to be raised (which must
6493 -- match the node type). The value is stored by storing a Uint which
6494 -- is the Pos value of the enumeration element in this type.
6496 -- Gigi restriction: This expander ensures that the type of the
6497 -- Condition field is always Standard.Boolean, even if the type
6498 -- in the source is some non-standard boolean type.
6500 -- Sprint syntax: [xxx_error "msg"]
6501 -- or: [xxx_error when condition "msg"]
6503 -- N_Raise_Constraint_Error
6504 -- Sloc references related construct
6505 -- Condition (Node1) (set to Empty if no condition)
6507 -- plus fields for expression
6509 -- N_Raise_Program_Error
6510 -- Sloc references related construct
6511 -- Condition (Node1) (set to Empty if no condition)
6513 -- plus fields for expression
6515 -- N_Raise_Storage_Error
6516 -- Sloc references related construct
6517 -- Condition (Node1) (set to Empty if no condition)
6519 -- plus fields for expression
6521 -- Note: Sloc is copied from the expression generating the exception.
6522 -- In the case where a debug source file is generated, the Sloc for
6523 -- this node points to the left bracket in the Sprint file output.
6529 -- For a number of purposes, we need to construct references to objects.
6530 -- These references are subsequently treated as normal access values.
6531 -- An example is the construction of the parameter block passed to a
6532 -- task entry. The N_Reference node is provided for this purpose. It is
6533 -- similar in effect to the use of the Unrestricted_Access attribute,
6534 -- and like Unrestricted_Access can be applied to objects which would
6535 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
6536 -- objects which are not aliased, and slices). In addition it can be
6537 -- applied to composite type values as well as objects, including string
6538 -- values and aggregates.
6540 -- Note: we use the Prefix field for this expression so that the
6541 -- resulting node can be treated using common code with the attribute
6542 -- nodes for the 'Access and related attributes. Logically it would make
6543 -- more sense to call it an Expression field, but then we would have to
6544 -- special case the treatment of the N_Reference node.
6546 -- Sprint syntax: prefix'reference
6549 -- Sloc is copied from the expression
6551 -- plus fields for expression
6553 -- Note: in the case where a debug source file is generated, the Sloc
6554 -- for this node points to the quote in the Sprint file output.
6556 ---------------------
6557 -- Subprogram_Info --
6558 ---------------------
6560 -- This node generates the appropriate Subprogram_Info value for a
6561 -- given procedure. See Ada.Exceptions for further details
6563 -- Sprint syntax: subprog'subprogram_info
6565 -- N_Subprogram_Info
6566 -- Sloc points to the entity for the procedure
6567 -- Identifier (Node1) identifier referencing the procedure
6568 -- Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
6570 -- Note: in the case where a debug source file is generated, the Sloc
6571 -- for this node points to the quote in the Sprint file output.
6573 --------------------------
6574 -- Unchecked Expression --
6575 --------------------------
6577 -- An unchecked expression is one that must be analyzed and resolved
6578 -- with all checks off, regardless of the current setting of scope
6581 -- Sprint syntax: `(expression)
6583 -- Note: this node is always removed from the tree (and replaced by
6584 -- its constituent expression) on completion of analysis, so it only
6585 -- appears in intermediate trees, and will never be seen by Gigi.
6587 -- N_Unchecked_Expression
6588 -- Sloc is a copy of the Sloc of the expression
6589 -- Expression (Node3)
6590 -- plus fields for expression
6592 -- Note: in the case where a debug source file is generated, the Sloc
6593 -- for this node points to the back quote in the Sprint file output.
6595 -------------------------------
6596 -- Unchecked Type Conversion --
6597 -------------------------------
6599 -- An unchecked type conversion node represents the semantic action
6600 -- corresponding to a call to an instantiation of Unchecked_Conversion.
6601 -- It is generated as a result of actual use of Unchecked_Conversion
6602 -- and also the expander generates unchecked type conversion nodes
6603 -- directly for expansion of complex semantic actions.
6605 -- Note: an unchecked type conversion is a variable as far as the
6606 -- semantics are concerned, which is convenient for the expander.
6607 -- This does not change what Ada source programs are legal, since
6608 -- clearly a function call to an instantiation of Unchecked_Conversion
6609 -- is not a variable in any case.
6611 -- Sprint syntax: subtype-mark!(expression)
6613 -- N_Unchecked_Type_Conversion
6614 -- Sloc points to related node in source
6615 -- Subtype_Mark (Node4)
6616 -- Expression (Node3)
6617 -- Kill_Range_Check (Flag11-Sem)
6618 -- No_Truncation (Flag17-Sem)
6619 -- plus fields for expression
6621 -- Note: in the case where a debug source file is generated, the Sloc
6622 -- for this node points to the exclamation in the Sprint file output.
6624 -----------------------------------
6625 -- Validate_Unchecked_Conversion --
6626 -----------------------------------
6628 -- The front end does most of the validation of unchecked conversion,
6629 -- including checking sizes (this is done after the back end is called
6630 -- to take advantage of back-annotation of calculated sizes).
6632 -- The front end also deals with specific cases that are not allowed
6633 -- e.g. involving unconstrained array types.
6635 -- For the case of the standard gigi backend, this means that all
6636 -- checks are done in the front-end.
6638 -- However, in the case of specialized back-ends, notably the JVM
6639 -- backend for JGNAT, additional requirements and restrictions apply
6640 -- to unchecked conversion, and these are most conveniently performed
6641 -- in the specialized back-end.
6643 -- To accommodate this requirement, for such back ends, the following
6644 -- special node is generated recording an unchecked conversion that
6645 -- needs to be validated. The back end should post an appropriate
6646 -- error message if the unchecked conversion is invalid or warrants
6647 -- a special warning message.
6649 -- Source_Type and Target_Type point to the entities for the two
6650 -- types involved in the unchecked conversion instantiation that
6651 -- is to be validated.
6653 -- Sprint syntax: validate Unchecked_Conversion (source, target);
6655 -- N_Validate_Unchecked_Conversion
6656 -- Sloc points to instantiation (location for warning message)
6657 -- Source_Type (Node1-Sem)
6658 -- Target_Type (Node2-Sem)
6660 -- Note: in the case where a debug source file is generated, the Sloc
6661 -- for this node points to the VALIDATE keyword in the file output.
6667 -- Used as the contents of the Nkind field of the dummy Empty node
6668 -- and in some other situations to indicate an uninitialized value.
6671 -- Chars (Name1) is set to No_Name
6677 -- Used as the contents of the Nkind field of the dummy Error node.
6678 -- Has an Etype field, which gets set to Any_Type later on, to help
6679 -- error recovery (Error_Posted is also set in the Error node).
6682 -- Chars (Name1) is set to Error_Name
6683 -- Etype (Node5-Sem)
6685 --------------------------
6686 -- Node Type Definition --
6687 --------------------------
6689 -- The following is the definition of the Node_Kind type. As previously
6690 -- discussed, this is separated off to allow rearrangement of the order
6691 -- to facilitiate definition of subtype ranges. The comments show the
6692 -- subtype classes which apply to each set of node kinds. The first
6693 -- entry in the comment characterizes the following list of nodes.
6698 -- N_Representation_Clause
6702 N_Enumeration_Representation_Clause
,
6704 N_Record_Representation_Clause
,
6706 -- N_Representation_Clause, N_Has_Chars
6708 N_Attribute_Definition_Clause
,
6714 N_Pragma_Argument_Association
,
6720 -- N_Entity, N_Has_Etype, N_Has_Chars
6722 N_Defining_Character_Literal
,
6723 N_Defining_Identifier
,
6724 N_Defining_Operator_Symbol
,
6726 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
6730 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6731 -- N_Has_Chars, N_Has_Entity
6736 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6737 -- N_Has_Chars, N_Has_Entity
6739 N_Character_Literal
,
6741 -- N_Binary_Op, N_Op, N_Subexpr,
6742 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
6749 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
6750 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
6757 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6758 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6762 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6763 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
6772 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6773 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6778 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
6779 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
6785 N_Op_Shift_Right_Arithmetic
,
6787 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
6788 -- N_Has_Chars, N_Has_Entity
6795 -- N_Subexpr, N_Has_Etype, N_Has_Entity
6797 N_Attribute_Reference
,
6799 -- N_Subexpr, N_Has_Etype, N_Membership_Test
6804 -- N_Subexpr, N_Has_Etype
6807 N_Conditional_Expression
,
6808 N_Explicit_Dereference
,
6811 N_Indexed_Component
,
6816 N_Procedure_Call_Statement
,
6817 N_Qualified_Expression
,
6819 -- N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
6821 N_Raise_Constraint_Error
,
6822 N_Raise_Program_Error
,
6823 N_Raise_Storage_Error
,
6825 -- N_Subexpr, N_Has_Etype
6829 N_Extension_Aggregate
,
6833 N_Selected_Component
,
6838 N_Unchecked_Expression
,
6839 N_Unchecked_Type_Conversion
,
6843 N_Subtype_Indication
,
6847 N_Component_Declaration
,
6848 N_Entry_Declaration
,
6849 N_Formal_Object_Declaration
,
6850 N_Formal_Type_Declaration
,
6851 N_Full_Type_Declaration
,
6852 N_Incomplete_Type_Declaration
,
6853 N_Loop_Parameter_Specification
,
6854 N_Object_Declaration
,
6855 N_Protected_Type_Declaration
,
6856 N_Private_Extension_Declaration
,
6857 N_Private_Type_Declaration
,
6858 N_Subtype_Declaration
,
6860 -- N_Subprogram_Specification, N_Declaration
6862 N_Function_Specification
,
6863 N_Procedure_Specification
,
6865 -- N_Access_To_Subprogram_Definition
6867 N_Access_Function_Definition
,
6868 N_Access_Procedure_Definition
,
6870 -- N_Later_Decl_Item
6872 N_Task_Type_Declaration
,
6874 -- N_Body_Stub, N_Later_Decl_Item
6876 N_Package_Body_Stub
,
6877 N_Protected_Body_Stub
,
6878 N_Subprogram_Body_Stub
,
6881 -- N_Generic_Instantiation, N_Later_Decl_Item
6882 -- N_Subprogram_Instantiation
6884 N_Function_Instantiation
,
6885 N_Procedure_Instantiation
,
6887 -- N_Generic_Instantiation, N_Later_Decl_Item
6889 N_Package_Instantiation
,
6891 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
6896 -- N_Later_Decl_Item, N_Proper_Body
6901 -- N_Later_Decl_Item
6903 N_Implicit_Label_Declaration
,
6904 N_Package_Declaration
,
6905 N_Single_Task_Declaration
,
6906 N_Subprogram_Declaration
,
6907 N_Use_Package_Clause
,
6909 -- N_Generic_Declaration, N_Later_Decl_Item
6911 N_Generic_Package_Declaration
,
6912 N_Generic_Subprogram_Declaration
,
6914 -- N_Array_Type_Definition
6916 N_Constrained_Array_Definition
,
6917 N_Unconstrained_Array_Definition
,
6919 -- N_Renaming_Declaration
6921 N_Exception_Renaming_Declaration
,
6922 N_Object_Renaming_Declaration
,
6923 N_Package_Renaming_Declaration
,
6924 N_Subprogram_Renaming_Declaration
,
6926 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
6928 N_Generic_Function_Renaming_Declaration
,
6929 N_Generic_Package_Renaming_Declaration
,
6930 N_Generic_Procedure_Renaming_Declaration
,
6932 -- N_Statement_Other_Than_Procedure_Call
6936 N_Assignment_Statement
,
6937 N_Asynchronous_Select
,
6941 N_Conditional_Entry_Call
,
6943 -- N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
6945 N_Delay_Relative_Statement
,
6946 N_Delay_Until_Statement
,
6948 -- N_Statement_Other_Than_Procedure_Call
6950 N_Entry_Call_Statement
,
6956 N_Requeue_Statement
,
6958 N_Extended_Return_Statement
,
6962 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
6969 N_Accept_Alternative
,
6970 N_Delay_Alternative
,
6972 N_Entry_Body_Formal_Part
,
6974 N_Terminate_Alternative
,
6976 -- N_Formal_Subprogram_Declaration
6978 N_Formal_Abstract_Subprogram_Declaration
,
6979 N_Formal_Concrete_Subprogram_Declaration
,
6981 -- Other nodes (not part of any subtype class)
6984 N_Abstract_Subprogram_Declaration
,
6985 N_Access_Definition
,
6986 N_Access_To_Object_Definition
,
6987 N_Case_Statement_Alternative
,
6989 N_Compilation_Unit_Aux
,
6990 N_Component_Association
,
6991 N_Component_Definition
,
6993 N_Derived_Type_Definition
,
6994 N_Decimal_Fixed_Point_Definition
,
6995 N_Defining_Program_Unit_Name
,
6998 N_Digits_Constraint
,
6999 N_Discriminant_Association
,
7000 N_Discriminant_Specification
,
7001 N_Enumeration_Type_Definition
,
7003 N_Entry_Call_Alternative
,
7004 N_Entry_Index_Specification
,
7005 N_Exception_Declaration
,
7006 N_Exception_Handler
,
7007 N_Floating_Point_Definition
,
7008 N_Formal_Decimal_Fixed_Point_Definition
,
7009 N_Formal_Derived_Type_Definition
,
7010 N_Formal_Discrete_Type_Definition
,
7011 N_Formal_Floating_Point_Definition
,
7012 N_Formal_Modular_Type_Definition
,
7013 N_Formal_Ordinary_Fixed_Point_Definition
,
7014 N_Formal_Package_Declaration
,
7015 N_Formal_Private_Type_Definition
,
7016 N_Formal_Signed_Integer_Type_Definition
,
7018 N_Generic_Association
,
7019 N_Handled_Sequence_Of_Statements
,
7020 N_Index_Or_Discriminant_Constraint
,
7023 N_Modular_Type_Definition
,
7024 N_Number_Declaration
,
7025 N_Ordinary_Fixed_Point_Definition
,
7027 N_Package_Specification
,
7028 N_Parameter_Association
,
7029 N_Parameter_Specification
,
7030 N_Protected_Definition
,
7032 N_Real_Range_Specification
,
7033 N_Record_Definition
,
7034 N_Signed_Integer_Type_Definition
,
7035 N_Single_Protected_Declaration
,
7038 N_Triggering_Alternative
,
7040 N_Validate_Unchecked_Conversion
,
7047 for Node_Kind
'Size use 8;
7048 -- The data structures in Atree assume this!
7050 ----------------------------
7051 -- Node Class Definitions --
7052 ----------------------------
7054 subtype N_Access_To_Subprogram_Definition
is Node_Kind
range
7055 N_Access_Function_Definition
..
7056 N_Access_Procedure_Definition
;
7058 subtype N_Array_Type_Definition
is Node_Kind
range
7059 N_Constrained_Array_Definition
..
7060 N_Unconstrained_Array_Definition
;
7062 subtype N_Binary_Op
is Node_Kind
range
7064 N_Op_Shift_Right_Arithmetic
;
7066 subtype N_Body_Stub
is Node_Kind
range
7067 N_Package_Body_Stub
..
7070 subtype N_Declaration
is Node_Kind
range
7071 N_Component_Declaration
..
7072 N_Procedure_Specification
;
7073 -- Note: this includes all constructs normally thought of as declarations
7074 -- except those which are separately grouped as later declarations.
7076 subtype N_Delay_Statement
is Node_Kind
range
7077 N_Delay_Relative_Statement
..
7078 N_Delay_Until_Statement
;
7080 subtype N_Direct_Name
is Node_Kind
range
7082 N_Character_Literal
;
7084 subtype N_Entity
is Node_Kind
range
7085 N_Defining_Character_Literal
..
7086 N_Defining_Operator_Symbol
;
7088 subtype N_Formal_Subprogram_Declaration
is Node_Kind
range
7089 N_Formal_Abstract_Subprogram_Declaration
..
7090 N_Formal_Concrete_Subprogram_Declaration
;
7092 subtype N_Generic_Declaration
is Node_Kind
range
7093 N_Generic_Package_Declaration
..
7094 N_Generic_Subprogram_Declaration
;
7096 subtype N_Generic_Instantiation
is Node_Kind
range
7097 N_Function_Instantiation
..
7098 N_Package_Instantiation
;
7100 subtype N_Generic_Renaming_Declaration
is Node_Kind
range
7101 N_Generic_Function_Renaming_Declaration
..
7102 N_Generic_Procedure_Renaming_Declaration
;
7104 subtype N_Has_Chars
is Node_Kind
range
7105 N_Attribute_Definition_Clause
..
7108 subtype N_Has_Entity
is Node_Kind
range
7110 N_Attribute_Reference
;
7111 -- Nodes that have Entity fields
7112 -- Warning: DOES NOT INCLUDE N_Freeze_Entity!
7114 subtype N_Has_Etype
is Node_Kind
range
7116 N_Subtype_Indication
;
7118 subtype N_Has_Treat_Fixed_As_Integer
is Node_Kind
range
7122 subtype N_Multiplying_Operator
is Node_Kind
range
7126 subtype N_Later_Decl_Item
is Node_Kind
range
7127 N_Task_Type_Declaration
..
7128 N_Generic_Subprogram_Declaration
;
7129 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and
7130 -- includes only those items which can appear as later declarative
7131 -- items. This also includes N_Implicit_Label_Declaration which is
7132 -- not specifically in the grammar but may appear as a valid later
7133 -- declarative items. It does NOT include N_Pragma which can also
7134 -- appear among later declarative items. It does however include
7135 -- N_Protected_Body, which is a bit peculiar, but harmless since
7136 -- this cannot appear in Ada 83 mode anyway.
7138 subtype N_Membership_Test
is Node_Kind
range
7142 subtype N_Op
is Node_Kind
range
7146 subtype N_Op_Boolean
is Node_Kind
range
7149 -- Binary operators which take operands of a boolean type, and yield
7150 -- a result of a boolean type.
7152 subtype N_Op_Compare
is Node_Kind
range
7156 subtype N_Op_Shift
is Node_Kind
range
7158 N_Op_Shift_Right_Arithmetic
;
7160 subtype N_Proper_Body
is Node_Kind
range
7164 subtype N_Raise_xxx_Error
is Node_Kind
range
7165 N_Raise_Constraint_Error
..
7166 N_Raise_Storage_Error
;
7168 subtype N_Renaming_Declaration
is Node_Kind
range
7169 N_Exception_Renaming_Declaration
..
7170 N_Generic_Procedure_Renaming_Declaration
;
7172 subtype N_Representation_Clause
is Node_Kind
range
7174 N_Attribute_Definition_Clause
;
7176 subtype N_Statement_Other_Than_Procedure_Call
is Node_Kind
range
7177 N_Abort_Statement
..
7179 -- Note that this includes all statement types except for the cases of the
7180 -- N_Procedure_Call_Statement which is considered to be a subexpression
7181 -- (since overloading is possible, so it needs to go through the normal
7182 -- overloading resolution for expressions).
7184 subtype N_Subprogram_Instantiation
is Node_Kind
range
7185 N_Function_Instantiation
..
7186 N_Procedure_Instantiation
;
7188 subtype N_Has_Condition
is Node_Kind
range
7190 N_Terminate_Alternative
;
7191 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
7193 subtype N_Subexpr
is Node_Kind
range
7195 N_Unchecked_Type_Conversion
;
7196 -- Nodes with expression fields
7198 subtype N_Subprogram_Specification
is Node_Kind
range
7199 N_Function_Specification
..
7200 N_Procedure_Specification
;
7202 subtype N_Unary_Op
is Node_Kind
range
7206 subtype N_Unit_Body
is Node_Kind
range
7210 ---------------------------
7211 -- Node Access Functions --
7212 ---------------------------
7214 -- The following functions return the contents of the indicated field of
7215 -- the node referenced by the argument, which is a Node_Id. They provide
7216 -- logical access to fields in the node which could be accessed using the
7217 -- Atree.Unchecked_Access package, but the idea is always to use these
7218 -- higher level routines which preserve strong typing. In debug mode,
7219 -- these routines check that they are being applied to an appropriate
7220 -- node, as well as checking that the node is in range.
7222 function ABE_Is_Certain
7223 (N
: Node_Id
) return Boolean; -- Flag18
7225 function Abort_Present
7226 (N
: Node_Id
) return Boolean; -- Flag15
7228 function Abortable_Part
7229 (N
: Node_Id
) return Node_Id
; -- Node2
7231 function Abstract_Present
7232 (N
: Node_Id
) return Boolean; -- Flag4
7234 function Accept_Handler_Records
7235 (N
: Node_Id
) return List_Id
; -- List5
7237 function Accept_Statement
7238 (N
: Node_Id
) return Node_Id
; -- Node2
7240 function Access_Definition
7241 (N
: Node_Id
) return Node_Id
; -- Node3
7243 function Access_To_Subprogram_Definition
7244 (N
: Node_Id
) return Node_Id
; -- Node3
7246 function Access_Types_To_Process
7247 (N
: Node_Id
) return Elist_Id
; -- Elist2
7250 (N
: Node_Id
) return List_Id
; -- List1
7252 function Activation_Chain_Entity
7253 (N
: Node_Id
) return Node_Id
; -- Node3
7255 function Acts_As_Spec
7256 (N
: Node_Id
) return Boolean; -- Flag4
7258 function Actual_Designated_Subtype
7259 (N
: Node_Id
) return Node_Id
; -- Node4
7261 function Aggregate_Bounds
7262 (N
: Node_Id
) return Node_Id
; -- Node3
7264 function Aliased_Present
7265 (N
: Node_Id
) return Boolean; -- Flag4
7268 (N
: Node_Id
) return Boolean; -- Flag11
7270 function All_Present
7271 (N
: Node_Id
) return Boolean; -- Flag15
7273 function Alternatives
7274 (N
: Node_Id
) return List_Id
; -- List4
7276 function Ancestor_Part
7277 (N
: Node_Id
) return Node_Id
; -- Node3
7279 function Array_Aggregate
7280 (N
: Node_Id
) return Node_Id
; -- Node3
7282 function Assignment_OK
7283 (N
: Node_Id
) return Boolean; -- Flag15
7285 function Associated_Node
7286 (N
: Node_Id
) return Node_Id
; -- Node4
7288 function At_End_Proc
7289 (N
: Node_Id
) return Node_Id
; -- Node1
7291 function Attribute_Name
7292 (N
: Node_Id
) return Name_Id
; -- Name2
7294 function Aux_Decls_Node
7295 (N
: Node_Id
) return Node_Id
; -- Node5
7297 function Backwards_OK
7298 (N
: Node_Id
) return Boolean; -- Flag6
7300 function Bad_Is_Detected
7301 (N
: Node_Id
) return Boolean; -- Flag15
7304 (N
: Node_Id
) return Boolean; -- Flag5
7306 function Body_Required
7307 (N
: Node_Id
) return Boolean; -- Flag13
7309 function Body_To_Inline
7310 (N
: Node_Id
) return Node_Id
; -- Node3
7312 function Box_Present
7313 (N
: Node_Id
) return Boolean; -- Flag15
7315 function Char_Literal_Value
7316 (N
: Node_Id
) return Uint
; -- Uint2
7319 (N
: Node_Id
) return Name_Id
; -- Name1
7321 function Check_Address_Alignment
7322 (N
: Node_Id
) return Boolean; -- Flag11
7324 function Choice_Parameter
7325 (N
: Node_Id
) return Node_Id
; -- Node2
7328 (N
: Node_Id
) return List_Id
; -- List1
7330 function Comes_From_Extended_Return_Statement
7331 (N
: Node_Id
) return Boolean; -- Flag18
7333 function Compile_Time_Known_Aggregate
7334 (N
: Node_Id
) return Boolean; -- Flag18
7336 function Component_Associations
7337 (N
: Node_Id
) return List_Id
; -- List2
7339 function Component_Clauses
7340 (N
: Node_Id
) return List_Id
; -- List3
7342 function Component_Definition
7343 (N
: Node_Id
) return Node_Id
; -- Node4
7345 function Component_Items
7346 (N
: Node_Id
) return List_Id
; -- List3
7348 function Component_List
7349 (N
: Node_Id
) return Node_Id
; -- Node1
7351 function Component_Name
7352 (N
: Node_Id
) return Node_Id
; -- Node1
7355 (N
: Node_Id
) return Node_Id
; -- Node1
7357 function Condition_Actions
7358 (N
: Node_Id
) return List_Id
; -- List3
7360 function Config_Pragmas
7361 (N
: Node_Id
) return List_Id
; -- List4
7363 function Constant_Present
7364 (N
: Node_Id
) return Boolean; -- Flag17
7367 (N
: Node_Id
) return Node_Id
; -- Node3
7369 function Constraints
7370 (N
: Node_Id
) return List_Id
; -- List1
7372 function Context_Installed
7373 (N
: Node_Id
) return Boolean; -- Flag13
7375 function Context_Items
7376 (N
: Node_Id
) return List_Id
; -- List1
7378 function Controlling_Argument
7379 (N
: Node_Id
) return Node_Id
; -- Node1
7381 function Conversion_OK
7382 (N
: Node_Id
) return Boolean; -- Flag14
7384 function Corresponding_Body
7385 (N
: Node_Id
) return Node_Id
; -- Node5
7387 function Corresponding_Formal_Spec
7388 (N
: Node_Id
) return Node_Id
; -- Node3
7390 function Corresponding_Generic_Association
7391 (N
: Node_Id
) return Node_Id
; -- Node5
7393 function Corresponding_Integer_Value
7394 (N
: Node_Id
) return Uint
; -- Uint4
7396 function Corresponding_Spec
7397 (N
: Node_Id
) return Node_Id
; -- Node5
7399 function Corresponding_Stub
7400 (N
: Node_Id
) return Node_Id
; -- Node3
7402 function Dcheck_Function
7403 (N
: Node_Id
) return Entity_Id
; -- Node5
7405 function Debug_Statement
7406 (N
: Node_Id
) return Node_Id
; -- Node3
7408 function Declarations
7409 (N
: Node_Id
) return List_Id
; -- List2
7411 function Default_Expression
7412 (N
: Node_Id
) return Node_Id
; -- Node5
7414 function Default_Name
7415 (N
: Node_Id
) return Node_Id
; -- Node2
7417 function Defining_Identifier
7418 (N
: Node_Id
) return Entity_Id
; -- Node1
7420 function Defining_Unit_Name
7421 (N
: Node_Id
) return Node_Id
; -- Node1
7423 function Delay_Alternative
7424 (N
: Node_Id
) return Node_Id
; -- Node4
7426 function Delay_Finalize_Attach
7427 (N
: Node_Id
) return Boolean; -- Flag14
7429 function Delay_Statement
7430 (N
: Node_Id
) return Node_Id
; -- Node2
7432 function Delta_Expression
7433 (N
: Node_Id
) return Node_Id
; -- Node3
7435 function Digits_Expression
7436 (N
: Node_Id
) return Node_Id
; -- Node2
7438 function Discr_Check_Funcs_Built
7439 (N
: Node_Id
) return Boolean; -- Flag11
7441 function Discrete_Choices
7442 (N
: Node_Id
) return List_Id
; -- List4
7444 function Discrete_Range
7445 (N
: Node_Id
) return Node_Id
; -- Node4
7447 function Discrete_Subtype_Definition
7448 (N
: Node_Id
) return Node_Id
; -- Node4
7450 function Discrete_Subtype_Definitions
7451 (N
: Node_Id
) return List_Id
; -- List2
7453 function Discriminant_Specifications
7454 (N
: Node_Id
) return List_Id
; -- List4
7456 function Discriminant_Type
7457 (N
: Node_Id
) return Node_Id
; -- Node5
7459 function Do_Accessibility_Check
7460 (N
: Node_Id
) return Boolean; -- Flag13
7462 function Do_Discriminant_Check
7463 (N
: Node_Id
) return Boolean; -- Flag13
7465 function Do_Division_Check
7466 (N
: Node_Id
) return Boolean; -- Flag13
7468 function Do_Length_Check
7469 (N
: Node_Id
) return Boolean; -- Flag4
7471 function Do_Overflow_Check
7472 (N
: Node_Id
) return Boolean; -- Flag17
7474 function Do_Range_Check
7475 (N
: Node_Id
) return Boolean; -- Flag9
7477 function Do_Storage_Check
7478 (N
: Node_Id
) return Boolean; -- Flag17
7480 function Do_Tag_Check
7481 (N
: Node_Id
) return Boolean; -- Flag13
7483 function Elaborate_All_Desirable
7484 (N
: Node_Id
) return Boolean; -- Flag9
7486 function Elaborate_All_Present
7487 (N
: Node_Id
) return Boolean; -- Flag14
7489 function Elaborate_Desirable
7490 (N
: Node_Id
) return Boolean; -- Flag11
7492 function Elaborate_Present
7493 (N
: Node_Id
) return Boolean; -- Flag4
7495 function Elaboration_Boolean
7496 (N
: Node_Id
) return Node_Id
; -- Node2
7498 function Else_Actions
7499 (N
: Node_Id
) return List_Id
; -- List3
7501 function Else_Statements
7502 (N
: Node_Id
) return List_Id
; -- List4
7504 function Elsif_Parts
7505 (N
: Node_Id
) return List_Id
; -- List3
7507 function Enclosing_Variant
7508 (N
: Node_Id
) return Node_Id
; -- Node2
7511 (N
: Node_Id
) return Node_Id
; -- Node4
7514 (N
: Node_Id
) return Uint
; -- Uint5
7517 (N
: Node_Id
) return Node_Id
; -- Node4
7519 function Entity_Or_Associated_Node
7520 (N
: Node_Id
) return Node_Id
; -- Node4
7522 function Entry_Body_Formal_Part
7523 (N
: Node_Id
) return Node_Id
; -- Node5
7525 function Entry_Call_Alternative
7526 (N
: Node_Id
) return Node_Id
; -- Node1
7528 function Entry_Call_Statement
7529 (N
: Node_Id
) return Node_Id
; -- Node1
7531 function Entry_Direct_Name
7532 (N
: Node_Id
) return Node_Id
; -- Node1
7534 function Entry_Index
7535 (N
: Node_Id
) return Node_Id
; -- Node5
7537 function Entry_Index_Specification
7538 (N
: Node_Id
) return Node_Id
; -- Node4
7541 (N
: Node_Id
) return Node_Id
; -- Node5
7543 function Exception_Choices
7544 (N
: Node_Id
) return List_Id
; -- List4
7546 function Exception_Handlers
7547 (N
: Node_Id
) return List_Id
; -- List5
7549 function Exception_Junk
7550 (N
: Node_Id
) return Boolean; -- Flag7
7552 function Explicit_Actual_Parameter
7553 (N
: Node_Id
) return Node_Id
; -- Node3
7555 function Expansion_Delayed
7556 (N
: Node_Id
) return Boolean; -- Flag11
7558 function Explicit_Generic_Actual_Parameter
7559 (N
: Node_Id
) return Node_Id
; -- Node1
7562 (N
: Node_Id
) return Node_Id
; -- Node3
7564 function Expressions
7565 (N
: Node_Id
) return List_Id
; -- List1
7568 (N
: Node_Id
) return Node_Id
; -- Node3
7570 function First_Inlined_Subprogram
7571 (N
: Node_Id
) return Entity_Id
; -- Node3
7574 (N
: Node_Id
) return Boolean; -- Flag5
7576 function First_Named_Actual
7577 (N
: Node_Id
) return Node_Id
; -- Node4
7579 function First_Real_Statement
7580 (N
: Node_Id
) return Node_Id
; -- Node2
7582 function First_Subtype_Link
7583 (N
: Node_Id
) return Entity_Id
; -- Node5
7585 function Float_Truncate
7586 (N
: Node_Id
) return Boolean; -- Flag11
7588 function Formal_Type_Definition
7589 (N
: Node_Id
) return Node_Id
; -- Node3
7591 function Forwards_OK
7592 (N
: Node_Id
) return Boolean; -- Flag5
7594 function From_At_Mod
7595 (N
: Node_Id
) return Boolean; -- Flag4
7597 function From_Default
7598 (N
: Node_Id
) return Boolean; -- Flag6
7600 function Generic_Associations
7601 (N
: Node_Id
) return List_Id
; -- List3
7603 function Generic_Formal_Declarations
7604 (N
: Node_Id
) return List_Id
; -- List2
7606 function Generic_Parent
7607 (N
: Node_Id
) return Node_Id
; -- Node5
7609 function Generic_Parent_Type
7610 (N
: Node_Id
) return Node_Id
; -- Node4
7612 function Handled_Statement_Sequence
7613 (N
: Node_Id
) return Node_Id
; -- Node4
7615 function Handler_List_Entry
7616 (N
: Node_Id
) return Node_Id
; -- Node2
7618 function Has_Created_Identifier
7619 (N
: Node_Id
) return Boolean; -- Flag15
7621 function Has_Dynamic_Length_Check
7622 (N
: Node_Id
) return Boolean; -- Flag10
7624 function Has_Dynamic_Range_Check
7625 (N
: Node_Id
) return Boolean; -- Flag12
7627 function Has_No_Elaboration_Code
7628 (N
: Node_Id
) return Boolean; -- Flag17
7630 function Has_Priority_Pragma
7631 (N
: Node_Id
) return Boolean; -- Flag6
7633 function Has_Private_View
7634 (N
: Node_Id
) return Boolean; -- Flag11
7636 function Has_Self_Reference
7637 (N
: Node_Id
) return Boolean; -- Flag13
7639 function Has_Storage_Size_Pragma
7640 (N
: Node_Id
) return Boolean; -- Flag5
7642 function Has_Task_Info_Pragma
7643 (N
: Node_Id
) return Boolean; -- Flag7
7645 function Has_Task_Name_Pragma
7646 (N
: Node_Id
) return Boolean; -- Flag8
7648 function Has_Wide_Character
7649 (N
: Node_Id
) return Boolean; -- Flag11
7651 function Hidden_By_Use_Clause
7652 (N
: Node_Id
) return Elist_Id
; -- Elist4
7655 (N
: Node_Id
) return Node_Id
; -- Node2
7658 (N
: Node_Id
) return Node_Id
; -- Node1
7660 function Interface_List
7661 (N
: Node_Id
) return List_Id
; -- List2
7663 function Interface_Present
7664 (N
: Node_Id
) return Boolean; -- Flag16
7666 function Implicit_With
7667 (N
: Node_Id
) return Boolean; -- Flag16
7670 (N
: Node_Id
) return Boolean; -- Flag15
7672 function Includes_Infinities
7673 (N
: Node_Id
) return Boolean; -- Flag11
7675 function Instance_Spec
7676 (N
: Node_Id
) return Node_Id
; -- Node5
7679 (N
: Node_Id
) return Uint
; -- Uint3
7681 function Is_Asynchronous_Call_Block
7682 (N
: Node_Id
) return Boolean; -- Flag7
7684 function Is_Component_Left_Opnd
7685 (N
: Node_Id
) return Boolean; -- Flag13
7687 function Is_Component_Right_Opnd
7688 (N
: Node_Id
) return Boolean; -- Flag14
7690 function Is_Controlling_Actual
7691 (N
: Node_Id
) return Boolean; -- Flag16
7693 function Is_Entry_Barrier_Function
7694 (N
: Node_Id
) return Boolean; -- Flag8
7696 function Is_In_Discriminant_Check
7697 (N
: Node_Id
) return Boolean; -- Flag11
7699 function Is_Machine_Number
7700 (N
: Node_Id
) return Boolean; -- Flag11
7702 function Is_Null_Loop
7703 (N
: Node_Id
) return Boolean; -- Flag16
7705 function Is_Overloaded
7706 (N
: Node_Id
) return Boolean; -- Flag5
7708 function Is_Power_Of_2_For_Shift
7709 (N
: Node_Id
) return Boolean; -- Flag13
7711 function Is_Protected_Subprogram_Body
7712 (N
: Node_Id
) return Boolean; -- Flag7
7714 function Is_Static_Expression
7715 (N
: Node_Id
) return Boolean; -- Flag6
7717 function Is_Subprogram_Descriptor
7718 (N
: Node_Id
) return Boolean; -- Flag16
7720 function Is_Task_Allocation_Block
7721 (N
: Node_Id
) return Boolean; -- Flag6
7723 function Is_Task_Master
7724 (N
: Node_Id
) return Boolean; -- Flag5
7726 function Iteration_Scheme
7727 (N
: Node_Id
) return Node_Id
; -- Node2
7730 (N
: Node_Id
) return Entity_Id
; -- Node1
7732 function Kill_Range_Check
7733 (N
: Node_Id
) return Boolean; -- Flag11
7735 function Label_Construct
7736 (N
: Node_Id
) return Node_Id
; -- Node2
7739 (N
: Node_Id
) return Node_Id
; -- Node2
7742 (N
: Node_Id
) return Node_Id
; -- Node4
7745 (N
: Node_Id
) return Boolean; -- Flag6
7747 function Library_Unit
7748 (N
: Node_Id
) return Node_Id
; -- Node4
7750 function Limited_View_Installed
7751 (N
: Node_Id
) return Boolean; -- Flag18
7753 function Limited_Present
7754 (N
: Node_Id
) return Boolean; -- Flag17
7757 (N
: Node_Id
) return List_Id
; -- List1
7759 function Loop_Actions
7760 (N
: Node_Id
) return List_Id
; -- List2
7762 function Loop_Parameter_Specification
7763 (N
: Node_Id
) return Node_Id
; -- Node4
7766 (N
: Node_Id
) return Node_Id
; -- Node1
7769 (N
: Node_Id
) return Node_Id
; -- Node2
7772 (N
: Node_Id
) return Boolean; -- Flag5
7774 function Must_Be_Byte_Aligned
7775 (N
: Node_Id
) return Boolean; -- Flag14
7777 function Must_Not_Freeze
7778 (N
: Node_Id
) return Boolean; -- Flag8
7780 function Must_Not_Override
7781 (N
: Node_Id
) return Boolean; -- Flag15
7783 function Must_Override
7784 (N
: Node_Id
) return Boolean; -- Flag14
7787 (N
: Node_Id
) return Node_Id
; -- Node2
7790 (N
: Node_Id
) return List_Id
; -- List2
7792 function Next_Entity
7793 (N
: Node_Id
) return Node_Id
; -- Node2
7795 function Next_Named_Actual
7796 (N
: Node_Id
) return Node_Id
; -- Node4
7798 function Next_Rep_Item
7799 (N
: Node_Id
) return Node_Id
; -- Node5
7801 function Next_Use_Clause
7802 (N
: Node_Id
) return Node_Id
; -- Node3
7804 function No_Ctrl_Actions
7805 (N
: Node_Id
) return Boolean; -- Flag7
7807 function No_Elaboration_Check
7808 (N
: Node_Id
) return Boolean; -- Flag14
7810 function No_Entities_Ref_In_Spec
7811 (N
: Node_Id
) return Boolean; -- Flag8
7813 function No_Initialization
7814 (N
: Node_Id
) return Boolean; -- Flag13
7816 function No_Truncation
7817 (N
: Node_Id
) return Boolean; -- Flag17
7819 function Null_Present
7820 (N
: Node_Id
) return Boolean; -- Flag13
7822 function Null_Exclusion_Present
7823 (N
: Node_Id
) return Boolean; -- Flag11
7825 function Null_Record_Present
7826 (N
: Node_Id
) return Boolean; -- Flag17
7828 function Object_Definition
7829 (N
: Node_Id
) return Node_Id
; -- Node4
7831 function Original_Discriminant
7832 (N
: Node_Id
) return Node_Id
; -- Node2
7834 function Original_Entity
7835 (N
: Node_Id
) return Entity_Id
; -- Node2
7837 function Others_Discrete_Choices
7838 (N
: Node_Id
) return List_Id
; -- List1
7840 function Out_Present
7841 (N
: Node_Id
) return Boolean; -- Flag17
7843 function Parameter_Associations
7844 (N
: Node_Id
) return List_Id
; -- List3
7846 function Parameter_List_Truncated
7847 (N
: Node_Id
) return Boolean; -- Flag17
7849 function Parameter_Specifications
7850 (N
: Node_Id
) return List_Id
; -- List3
7852 function Parameter_Type
7853 (N
: Node_Id
) return Node_Id
; -- Node2
7855 function Parent_Spec
7856 (N
: Node_Id
) return Node_Id
; -- Node4
7859 (N
: Node_Id
) return Node_Id
; -- Node2
7861 function Pragma_Argument_Associations
7862 (N
: Node_Id
) return List_Id
; -- List2
7864 function Pragmas_After
7865 (N
: Node_Id
) return List_Id
; -- List5
7867 function Pragmas_Before
7868 (N
: Node_Id
) return List_Id
; -- List4
7871 (N
: Node_Id
) return Node_Id
; -- Node3
7873 function Present_Expr
7874 (N
: Node_Id
) return Uint
; -- Uint3
7877 (N
: Node_Id
) return Boolean; -- Flag6
7879 function Print_In_Hex
7880 (N
: Node_Id
) return Boolean; -- Flag13
7882 function Private_Declarations
7883 (N
: Node_Id
) return List_Id
; -- List3
7885 function Private_Present
7886 (N
: Node_Id
) return Boolean; -- Flag15
7888 function Procedure_To_Call
7889 (N
: Node_Id
) return Node_Id
; -- Node2
7891 function Proper_Body
7892 (N
: Node_Id
) return Node_Id
; -- Node1
7894 function Protected_Definition
7895 (N
: Node_Id
) return Node_Id
; -- Node3
7897 function Protected_Present
7898 (N
: Node_Id
) return Boolean; -- Flag6
7900 function Raises_Constraint_Error
7901 (N
: Node_Id
) return Boolean; -- Flag7
7903 function Range_Constraint
7904 (N
: Node_Id
) return Node_Id
; -- Node4
7906 function Range_Expression
7907 (N
: Node_Id
) return Node_Id
; -- Node4
7909 function Real_Range_Specification
7910 (N
: Node_Id
) return Node_Id
; -- Node4
7913 (N
: Node_Id
) return Ureal
; -- Ureal3
7916 (N
: Node_Id
) return Uint
; -- Uint3
7918 function Record_Extension_Part
7919 (N
: Node_Id
) return Node_Id
; -- Node3
7921 function Redundant_Use
7922 (N
: Node_Id
) return Boolean; -- Flag13
7924 function Result_Definition
7925 (N
: Node_Id
) return Node_Id
; -- Node4
7927 function Return_Object_Declarations
7928 (N
: Node_Id
) return List_Id
; -- List3
7930 function Return_Statement_Entity
7931 (N
: Node_Id
) return Node_Id
; -- Node5
7933 function Reverse_Present
7934 (N
: Node_Id
) return Boolean; -- Flag15
7937 (N
: Node_Id
) return Node_Id
; -- Node3
7939 function Rounded_Result
7940 (N
: Node_Id
) return Boolean; -- Flag18
7943 (N
: Node_Id
) return Node_Id
; -- Node3
7945 function Select_Alternatives
7946 (N
: Node_Id
) return List_Id
; -- List1
7948 function Selector_Name
7949 (N
: Node_Id
) return Node_Id
; -- Node2
7951 function Selector_Names
7952 (N
: Node_Id
) return List_Id
; -- List1
7954 function Shift_Count_OK
7955 (N
: Node_Id
) return Boolean; -- Flag4
7957 function Source_Type
7958 (N
: Node_Id
) return Entity_Id
; -- Node1
7960 function Specification
7961 (N
: Node_Id
) return Node_Id
; -- Node1
7964 (N
: Node_Id
) return List_Id
; -- List3
7966 function Static_Processing_OK
7967 (N
: Node_Id
) return Boolean; -- Flag4
7969 function Storage_Pool
7970 (N
: Node_Id
) return Node_Id
; -- Node1
7973 (N
: Node_Id
) return String_Id
; -- Str3
7975 function Subtype_Indication
7976 (N
: Node_Id
) return Node_Id
; -- Node5
7978 function Subtype_Mark
7979 (N
: Node_Id
) return Node_Id
; -- Node4
7981 function Subtype_Marks
7982 (N
: Node_Id
) return List_Id
; -- List2
7984 function Synchronized_Present
7985 (N
: Node_Id
) return Boolean; -- Flag7
7987 function Tagged_Present
7988 (N
: Node_Id
) return Boolean; -- Flag15
7990 function Target_Type
7991 (N
: Node_Id
) return Entity_Id
; -- Node2
7993 function Task_Definition
7994 (N
: Node_Id
) return Node_Id
; -- Node3
7996 function Task_Present
7997 (N
: Node_Id
) return Boolean; -- Flag5
7999 function Then_Actions
8000 (N
: Node_Id
) return List_Id
; -- List2
8002 function Then_Statements
8003 (N
: Node_Id
) return List_Id
; -- List2
8005 function Treat_Fixed_As_Integer
8006 (N
: Node_Id
) return Boolean; -- Flag14
8008 function Triggering_Alternative
8009 (N
: Node_Id
) return Node_Id
; -- Node1
8011 function Triggering_Statement
8012 (N
: Node_Id
) return Node_Id
; -- Node1
8015 (N
: Node_Id
) return Elist_Id
; -- Elist3
8017 function Type_Definition
8018 (N
: Node_Id
) return Node_Id
; -- Node3
8021 (N
: Node_Id
) return Node_Id
; -- Node2
8023 function Unknown_Discriminants_Present
8024 (N
: Node_Id
) return Boolean; -- Flag13
8026 function Unreferenced_In_Spec
8027 (N
: Node_Id
) return Boolean; -- Flag7
8029 function Variant_Part
8030 (N
: Node_Id
) return Node_Id
; -- Node4
8033 (N
: Node_Id
) return List_Id
; -- List1
8035 function Visible_Declarations
8036 (N
: Node_Id
) return List_Id
; -- List2
8038 function Was_Originally_Stub
8039 (N
: Node_Id
) return Boolean; -- Flag13
8041 function Zero_Cost_Handling
8042 (N
: Node_Id
) return Boolean; -- Flag5
8044 -- End functions (note used by xsinfo utility program to end processing)
8046 ----------------------------
8047 -- Node Update Procedures --
8048 ----------------------------
8050 -- These are the corresponding node update routines, which again provide
8051 -- a high level logical access with type checking. In addition to setting
8052 -- the indicated field of the node N to the given Val, in the case of
8053 -- tree pointers (List1-4), the parent pointer of the Val node is set to
8054 -- point back to node N. This automates the setting of the parent pointer.
8056 procedure Set_ABE_Is_Certain
8057 (N
: Node_Id
; Val
: Boolean := True); -- Flag18
8059 procedure Set_Abort_Present
8060 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
8062 procedure Set_Abortable_Part
8063 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8065 procedure Set_Abstract_Present
8066 (N
: Node_Id
; Val
: Boolean := True); -- Flag4
8068 procedure Set_Accept_Handler_Records
8069 (N
: Node_Id
; Val
: List_Id
); -- List5
8071 procedure Set_Accept_Statement
8072 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8074 procedure Set_Access_Definition
8075 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8077 procedure Set_Access_To_Subprogram_Definition
8078 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8080 procedure Set_Access_Types_To_Process
8081 (N
: Node_Id
; Val
: Elist_Id
); -- Elist2
8083 procedure Set_Actions
8084 (N
: Node_Id
; Val
: List_Id
); -- List1
8086 procedure Set_Activation_Chain_Entity
8087 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8089 procedure Set_Acts_As_Spec
8090 (N
: Node_Id
; Val
: Boolean := True); -- Flag4
8092 procedure Set_Actual_Designated_Subtype
8093 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8095 procedure Set_Aggregate_Bounds
8096 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8098 procedure Set_Aliased_Present
8099 (N
: Node_Id
; Val
: Boolean := True); -- Flag4
8101 procedure Set_All_Others
8102 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
8104 procedure Set_All_Present
8105 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
8107 procedure Set_Alternatives
8108 (N
: Node_Id
; Val
: List_Id
); -- List4
8110 procedure Set_Ancestor_Part
8111 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8113 procedure Set_Array_Aggregate
8114 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8116 procedure Set_Assignment_OK
8117 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
8119 procedure Set_Associated_Node
8120 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8122 procedure Set_Attribute_Name
8123 (N
: Node_Id
; Val
: Name_Id
); -- Name2
8125 procedure Set_At_End_Proc
8126 (N
: Node_Id
; Val
: Node_Id
); -- Node1
8128 procedure Set_Aux_Decls_Node
8129 (N
: Node_Id
; Val
: Node_Id
); -- Node5
8131 procedure Set_Backwards_OK
8132 (N
: Node_Id
; Val
: Boolean := True); -- Flag6
8134 procedure Set_Bad_Is_Detected
8135 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
8137 procedure Set_Body_Required
8138 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
8140 procedure Set_Body_To_Inline
8141 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8143 procedure Set_Box_Present
8144 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
8146 procedure Set_By_Ref
8147 (N
: Node_Id
; Val
: Boolean := True); -- Flag5
8149 procedure Set_Char_Literal_Value
8150 (N
: Node_Id
; Val
: Uint
); -- Uint2
8153 (N
: Node_Id
; Val
: Name_Id
); -- Name1
8155 procedure Set_Check_Address_Alignment
8156 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
8158 procedure Set_Choice_Parameter
8159 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8161 procedure Set_Choices
8162 (N
: Node_Id
; Val
: List_Id
); -- List1
8164 procedure Set_Comes_From_Extended_Return_Statement
8165 (N
: Node_Id
; Val
: Boolean := True); -- Flag18
8167 procedure Set_Compile_Time_Known_Aggregate
8168 (N
: Node_Id
; Val
: Boolean := True); -- Flag18
8170 procedure Set_Component_Associations
8171 (N
: Node_Id
; Val
: List_Id
); -- List2
8173 procedure Set_Component_Clauses
8174 (N
: Node_Id
; Val
: List_Id
); -- List3
8176 procedure Set_Component_Definition
8177 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8179 procedure Set_Component_Items
8180 (N
: Node_Id
; Val
: List_Id
); -- List3
8182 procedure Set_Component_List
8183 (N
: Node_Id
; Val
: Node_Id
); -- Node1
8185 procedure Set_Component_Name
8186 (N
: Node_Id
; Val
: Node_Id
); -- Node1
8188 procedure Set_Condition
8189 (N
: Node_Id
; Val
: Node_Id
); -- Node1
8191 procedure Set_Condition_Actions
8192 (N
: Node_Id
; Val
: List_Id
); -- List3
8194 procedure Set_Config_Pragmas
8195 (N
: Node_Id
; Val
: List_Id
); -- List4
8197 procedure Set_Constant_Present
8198 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
8200 procedure Set_Constraint
8201 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8203 procedure Set_Constraints
8204 (N
: Node_Id
; Val
: List_Id
); -- List1
8206 procedure Set_Context_Installed
8207 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
8209 procedure Set_Context_Items
8210 (N
: Node_Id
; Val
: List_Id
); -- List1
8212 procedure Set_Controlling_Argument
8213 (N
: Node_Id
; Val
: Node_Id
); -- Node1
8215 procedure Set_Conversion_OK
8216 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
8218 procedure Set_Corresponding_Body
8219 (N
: Node_Id
; Val
: Node_Id
); -- Node5
8221 procedure Set_Corresponding_Formal_Spec
8222 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8224 procedure Set_Corresponding_Generic_Association
8225 (N
: Node_Id
; Val
: Node_Id
); -- Node5
8227 procedure Set_Corresponding_Integer_Value
8228 (N
: Node_Id
; Val
: Uint
); -- Uint4
8230 procedure Set_Corresponding_Spec
8231 (N
: Node_Id
; Val
: Node_Id
); -- Node5
8233 procedure Set_Corresponding_Stub
8234 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8236 procedure Set_Dcheck_Function
8237 (N
: Node_Id
; Val
: Entity_Id
); -- Node5
8239 procedure Set_Debug_Statement
8240 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8242 procedure Set_Declarations
8243 (N
: Node_Id
; Val
: List_Id
); -- List2
8245 procedure Set_Default_Expression
8246 (N
: Node_Id
; Val
: Node_Id
); -- Node5
8248 procedure Set_Default_Name
8249 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8251 procedure Set_Defining_Identifier
8252 (N
: Node_Id
; Val
: Entity_Id
); -- Node1
8254 procedure Set_Defining_Unit_Name
8255 (N
: Node_Id
; Val
: Node_Id
); -- Node1
8257 procedure Set_Delay_Alternative
8258 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8260 procedure Set_Delay_Finalize_Attach
8261 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
8263 procedure Set_Delay_Statement
8264 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8266 procedure Set_Delta_Expression
8267 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8269 procedure Set_Digits_Expression
8270 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8272 procedure Set_Discr_Check_Funcs_Built
8273 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
8275 procedure Set_Discrete_Choices
8276 (N
: Node_Id
; Val
: List_Id
); -- List4
8278 procedure Set_Discrete_Range
8279 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8281 procedure Set_Discrete_Subtype_Definition
8282 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8284 procedure Set_Discrete_Subtype_Definitions
8285 (N
: Node_Id
; Val
: List_Id
); -- List2
8287 procedure Set_Discriminant_Specifications
8288 (N
: Node_Id
; Val
: List_Id
); -- List4
8290 procedure Set_Discriminant_Type
8291 (N
: Node_Id
; Val
: Node_Id
); -- Node5
8293 procedure Set_Do_Accessibility_Check
8294 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
8296 procedure Set_Do_Discriminant_Check
8297 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
8299 procedure Set_Do_Division_Check
8300 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
8302 procedure Set_Do_Length_Check
8303 (N
: Node_Id
; Val
: Boolean := True); -- Flag4
8305 procedure Set_Do_Overflow_Check
8306 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
8308 procedure Set_Do_Range_Check
8309 (N
: Node_Id
; Val
: Boolean := True); -- Flag9
8311 procedure Set_Do_Storage_Check
8312 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
8314 procedure Set_Do_Tag_Check
8315 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
8317 procedure Set_Elaborate_All_Desirable
8318 (N
: Node_Id
; Val
: Boolean := True); -- Flag9
8320 procedure Set_Elaborate_All_Present
8321 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
8323 procedure Set_Elaborate_Desirable
8324 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
8326 procedure Set_Elaborate_Present
8327 (N
: Node_Id
; Val
: Boolean := True); -- Flag4
8329 procedure Set_Elaboration_Boolean
8330 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8332 procedure Set_Else_Actions
8333 (N
: Node_Id
; Val
: List_Id
); -- List3
8335 procedure Set_Else_Statements
8336 (N
: Node_Id
; Val
: List_Id
); -- List4
8338 procedure Set_Elsif_Parts
8339 (N
: Node_Id
; Val
: List_Id
); -- List3
8341 procedure Set_Enclosing_Variant
8342 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8344 procedure Set_End_Label
8345 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8347 procedure Set_End_Span
8348 (N
: Node_Id
; Val
: Uint
); -- Uint5
8350 procedure Set_Entity
8351 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8353 procedure Set_Entry_Body_Formal_Part
8354 (N
: Node_Id
; Val
: Node_Id
); -- Node5
8356 procedure Set_Entry_Call_Alternative
8357 (N
: Node_Id
; Val
: Node_Id
); -- Node1
8359 procedure Set_Entry_Call_Statement
8360 (N
: Node_Id
; Val
: Node_Id
); -- Node1
8362 procedure Set_Entry_Direct_Name
8363 (N
: Node_Id
; Val
: Node_Id
); -- Node1
8365 procedure Set_Entry_Index
8366 (N
: Node_Id
; Val
: Node_Id
); -- Node5
8368 procedure Set_Entry_Index_Specification
8369 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8372 (N
: Node_Id
; Val
: Node_Id
); -- Node5
8374 procedure Set_Exception_Choices
8375 (N
: Node_Id
; Val
: List_Id
); -- List4
8377 procedure Set_Exception_Handlers
8378 (N
: Node_Id
; Val
: List_Id
); -- List5
8380 procedure Set_Exception_Junk
8381 (N
: Node_Id
; Val
: Boolean := True); -- Flag7
8383 procedure Set_Expansion_Delayed
8384 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
8386 procedure Set_Explicit_Actual_Parameter
8387 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8389 procedure Set_Explicit_Generic_Actual_Parameter
8390 (N
: Node_Id
; Val
: Node_Id
); -- Node1
8392 procedure Set_Expression
8393 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8395 procedure Set_Expressions
8396 (N
: Node_Id
; Val
: List_Id
); -- List1
8398 procedure Set_First_Bit
8399 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8401 procedure Set_First_Inlined_Subprogram
8402 (N
: Node_Id
; Val
: Entity_Id
); -- Node3
8404 procedure Set_First_Name
8405 (N
: Node_Id
; Val
: Boolean := True); -- Flag5
8407 procedure Set_First_Named_Actual
8408 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8410 procedure Set_First_Real_Statement
8411 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8413 procedure Set_First_Subtype_Link
8414 (N
: Node_Id
; Val
: Entity_Id
); -- Node5
8416 procedure Set_Float_Truncate
8417 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
8419 procedure Set_Formal_Type_Definition
8420 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8422 procedure Set_Forwards_OK
8423 (N
: Node_Id
; Val
: Boolean := True); -- Flag5
8425 procedure Set_From_At_Mod
8426 (N
: Node_Id
; Val
: Boolean := True); -- Flag4
8428 procedure Set_From_Default
8429 (N
: Node_Id
; Val
: Boolean := True); -- Flag6
8431 procedure Set_Generic_Associations
8432 (N
: Node_Id
; Val
: List_Id
); -- List3
8434 procedure Set_Generic_Formal_Declarations
8435 (N
: Node_Id
; Val
: List_Id
); -- List2
8437 procedure Set_Generic_Parent
8438 (N
: Node_Id
; Val
: Node_Id
); -- Node5
8440 procedure Set_Generic_Parent_Type
8441 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8443 procedure Set_Handled_Statement_Sequence
8444 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8446 procedure Set_Handler_List_Entry
8447 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8449 procedure Set_Has_Created_Identifier
8450 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
8452 procedure Set_Has_Dynamic_Length_Check
8453 (N
: Node_Id
; Val
: Boolean := True); -- Flag10
8455 procedure Set_Has_Dynamic_Range_Check
8456 (N
: Node_Id
; Val
: Boolean := True); -- Flag12
8458 procedure Set_Has_No_Elaboration_Code
8459 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
8461 procedure Set_Has_Priority_Pragma
8462 (N
: Node_Id
; Val
: Boolean := True); -- Flag6
8464 procedure Set_Has_Private_View
8465 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
8467 procedure Set_Has_Self_Reference
8468 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
8470 procedure Set_Has_Storage_Size_Pragma
8471 (N
: Node_Id
; Val
: Boolean := True); -- Flag5
8473 procedure Set_Has_Task_Info_Pragma
8474 (N
: Node_Id
; Val
: Boolean := True); -- Flag7
8476 procedure Set_Has_Task_Name_Pragma
8477 (N
: Node_Id
; Val
: Boolean := True); -- Flag8
8479 procedure Set_Has_Wide_Character
8480 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
8482 procedure Set_Hidden_By_Use_Clause
8483 (N
: Node_Id
; Val
: Elist_Id
); -- Elist4
8485 procedure Set_High_Bound
8486 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8488 procedure Set_Identifier
8489 (N
: Node_Id
; Val
: Node_Id
); -- Node1
8491 procedure Set_Interface_List
8492 (N
: Node_Id
; Val
: List_Id
); -- List2
8494 procedure Set_Interface_Present
8495 (N
: Node_Id
; Val
: Boolean := True); -- Flag16
8497 procedure Set_Implicit_With
8498 (N
: Node_Id
; Val
: Boolean := True); -- Flag16
8500 procedure Set_In_Present
8501 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
8503 procedure Set_Includes_Infinities
8504 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
8506 procedure Set_Instance_Spec
8507 (N
: Node_Id
; Val
: Node_Id
); -- Node5
8509 procedure Set_Intval
8510 (N
: Node_Id
; Val
: Uint
); -- Uint3
8512 procedure Set_Is_Asynchronous_Call_Block
8513 (N
: Node_Id
; Val
: Boolean := True); -- Flag7
8515 procedure Set_Is_Component_Left_Opnd
8516 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
8518 procedure Set_Is_Component_Right_Opnd
8519 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
8521 procedure Set_Is_Controlling_Actual
8522 (N
: Node_Id
; Val
: Boolean := True); -- Flag16
8524 procedure Set_Is_Entry_Barrier_Function
8525 (N
: Node_Id
; Val
: Boolean := True); -- Flag8
8527 procedure Set_Is_In_Discriminant_Check
8528 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
8530 procedure Set_Is_Machine_Number
8531 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
8533 procedure Set_Is_Null_Loop
8534 (N
: Node_Id
; Val
: Boolean := True); -- Flag16
8536 procedure Set_Is_Overloaded
8537 (N
: Node_Id
; Val
: Boolean := True); -- Flag5
8539 procedure Set_Is_Power_Of_2_For_Shift
8540 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
8542 procedure Set_Is_Protected_Subprogram_Body
8543 (N
: Node_Id
; Val
: Boolean := True); -- Flag7
8545 procedure Set_Is_Static_Expression
8546 (N
: Node_Id
; Val
: Boolean := True); -- Flag6
8548 procedure Set_Is_Subprogram_Descriptor
8549 (N
: Node_Id
; Val
: Boolean := True); -- Flag16
8551 procedure Set_Is_Task_Allocation_Block
8552 (N
: Node_Id
; Val
: Boolean := True); -- Flag6
8554 procedure Set_Is_Task_Master
8555 (N
: Node_Id
; Val
: Boolean := True); -- Flag5
8557 procedure Set_Iteration_Scheme
8558 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8561 (N
: Node_Id
; Val
: Entity_Id
); -- Node1
8563 procedure Set_Kill_Range_Check
8564 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
8566 procedure Set_Last_Bit
8567 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8569 procedure Set_Last_Name
8570 (N
: Node_Id
; Val
: Boolean := True); -- Flag6
8572 procedure Set_Library_Unit
8573 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8575 procedure Set_Label_Construct
8576 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8578 procedure Set_Left_Opnd
8579 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8581 procedure Set_Limited_View_Installed
8582 (N
: Node_Id
; Val
: Boolean := True); -- Flag18
8584 procedure Set_Limited_Present
8585 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
8587 procedure Set_Literals
8588 (N
: Node_Id
; Val
: List_Id
); -- List1
8590 procedure Set_Loop_Actions
8591 (N
: Node_Id
; Val
: List_Id
); -- List2
8593 procedure Set_Loop_Parameter_Specification
8594 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8596 procedure Set_Low_Bound
8597 (N
: Node_Id
; Val
: Node_Id
); -- Node1
8599 procedure Set_Mod_Clause
8600 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8602 procedure Set_More_Ids
8603 (N
: Node_Id
; Val
: Boolean := True); -- Flag5
8605 procedure Set_Must_Be_Byte_Aligned
8606 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
8608 procedure Set_Must_Not_Freeze
8609 (N
: Node_Id
; Val
: Boolean := True); -- Flag8
8611 procedure Set_Must_Not_Override
8612 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
8614 procedure Set_Must_Override
8615 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
8618 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8621 (N
: Node_Id
; Val
: List_Id
); -- List2
8623 procedure Set_Next_Entity
8624 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8626 procedure Set_Next_Named_Actual
8627 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8629 procedure Set_Next_Rep_Item
8630 (N
: Node_Id
; Val
: Node_Id
); -- Node5
8632 procedure Set_Next_Use_Clause
8633 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8635 procedure Set_No_Ctrl_Actions
8636 (N
: Node_Id
; Val
: Boolean := True); -- Flag7
8638 procedure Set_No_Elaboration_Check
8639 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
8641 procedure Set_No_Entities_Ref_In_Spec
8642 (N
: Node_Id
; Val
: Boolean := True); -- Flag8
8644 procedure Set_No_Initialization
8645 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
8647 procedure Set_No_Truncation
8648 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
8650 procedure Set_Null_Present
8651 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
8653 procedure Set_Null_Exclusion_Present
8654 (N
: Node_Id
; Val
: Boolean := True); -- Flag11
8656 procedure Set_Null_Record_Present
8657 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
8659 procedure Set_Object_Definition
8660 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8662 procedure Set_Original_Discriminant
8663 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8665 procedure Set_Original_Entity
8666 (N
: Node_Id
; Val
: Entity_Id
); -- Node2
8668 procedure Set_Others_Discrete_Choices
8669 (N
: Node_Id
; Val
: List_Id
); -- List1
8671 procedure Set_Out_Present
8672 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
8674 procedure Set_Parameter_Associations
8675 (N
: Node_Id
; Val
: List_Id
); -- List3
8677 procedure Set_Parameter_List_Truncated
8678 (N
: Node_Id
; Val
: Boolean := True); -- Flag17
8680 procedure Set_Parameter_Specifications
8681 (N
: Node_Id
; Val
: List_Id
); -- List3
8683 procedure Set_Parameter_Type
8684 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8686 procedure Set_Parent_Spec
8687 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8689 procedure Set_Position
8690 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8692 procedure Set_Pragma_Argument_Associations
8693 (N
: Node_Id
; Val
: List_Id
); -- List2
8695 procedure Set_Pragmas_After
8696 (N
: Node_Id
; Val
: List_Id
); -- List5
8698 procedure Set_Pragmas_Before
8699 (N
: Node_Id
; Val
: List_Id
); -- List4
8701 procedure Set_Prefix
8702 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8704 procedure Set_Present_Expr
8705 (N
: Node_Id
; Val
: Uint
); -- Uint3
8707 procedure Set_Prev_Ids
8708 (N
: Node_Id
; Val
: Boolean := True); -- Flag6
8710 procedure Set_Print_In_Hex
8711 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
8713 procedure Set_Private_Declarations
8714 (N
: Node_Id
; Val
: List_Id
); -- List3
8716 procedure Set_Private_Present
8717 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
8719 procedure Set_Procedure_To_Call
8720 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8722 procedure Set_Proper_Body
8723 (N
: Node_Id
; Val
: Node_Id
); -- Node1
8725 procedure Set_Protected_Definition
8726 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8728 procedure Set_Protected_Present
8729 (N
: Node_Id
; Val
: Boolean := True); -- Flag6
8731 procedure Set_Raises_Constraint_Error
8732 (N
: Node_Id
; Val
: Boolean := True); -- Flag7
8734 procedure Set_Range_Constraint
8735 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8737 procedure Set_Range_Expression
8738 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8740 procedure Set_Real_Range_Specification
8741 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8743 procedure Set_Realval
8744 (N
: Node_Id
; Val
: Ureal
); -- Ureal3
8746 procedure Set_Reason
8747 (N
: Node_Id
; Val
: Uint
); -- Uint3
8749 procedure Set_Record_Extension_Part
8750 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8752 procedure Set_Redundant_Use
8753 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
8755 procedure Set_Result_Definition
8756 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8758 procedure Set_Return_Object_Declarations
8759 (N
: Node_Id
; Val
: List_Id
); -- List3
8761 procedure Set_Return_Statement_Entity
8762 (N
: Node_Id
; Val
: Node_Id
); -- Node5
8764 procedure Set_Reverse_Present
8765 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
8767 procedure Set_Right_Opnd
8768 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8770 procedure Set_Rounded_Result
8771 (N
: Node_Id
; Val
: Boolean := True); -- Flag18
8774 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8776 procedure Set_Select_Alternatives
8777 (N
: Node_Id
; Val
: List_Id
); -- List1
8779 procedure Set_Selector_Name
8780 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8782 procedure Set_Selector_Names
8783 (N
: Node_Id
; Val
: List_Id
); -- List1
8785 procedure Set_Shift_Count_OK
8786 (N
: Node_Id
; Val
: Boolean := True); -- Flag4
8788 procedure Set_Source_Type
8789 (N
: Node_Id
; Val
: Entity_Id
); -- Node1
8791 procedure Set_Specification
8792 (N
: Node_Id
; Val
: Node_Id
); -- Node1
8794 procedure Set_Statements
8795 (N
: Node_Id
; Val
: List_Id
); -- List3
8797 procedure Set_Static_Processing_OK
8798 (N
: Node_Id
; Val
: Boolean); -- Flag4
8800 procedure Set_Storage_Pool
8801 (N
: Node_Id
; Val
: Node_Id
); -- Node1
8803 procedure Set_Strval
8804 (N
: Node_Id
; Val
: String_Id
); -- Str3
8806 procedure Set_Subtype_Indication
8807 (N
: Node_Id
; Val
: Node_Id
); -- Node5
8809 procedure Set_Subtype_Mark
8810 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8812 procedure Set_Subtype_Marks
8813 (N
: Node_Id
; Val
: List_Id
); -- List2
8815 procedure Set_Synchronized_Present
8816 (N
: Node_Id
; Val
: Boolean := True); -- Flag7
8818 procedure Set_Tagged_Present
8819 (N
: Node_Id
; Val
: Boolean := True); -- Flag15
8821 procedure Set_Target_Type
8822 (N
: Node_Id
; Val
: Entity_Id
); -- Node2
8824 procedure Set_Task_Definition
8825 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8827 procedure Set_Task_Present
8828 (N
: Node_Id
; Val
: Boolean := True); -- Flag5
8830 procedure Set_Then_Actions
8831 (N
: Node_Id
; Val
: List_Id
); -- List2
8833 procedure Set_Then_Statements
8834 (N
: Node_Id
; Val
: List_Id
); -- List2
8836 procedure Set_Treat_Fixed_As_Integer
8837 (N
: Node_Id
; Val
: Boolean := True); -- Flag14
8839 procedure Set_Triggering_Alternative
8840 (N
: Node_Id
; Val
: Node_Id
); -- Node1
8842 procedure Set_Triggering_Statement
8843 (N
: Node_Id
; Val
: Node_Id
); -- Node1
8845 procedure Set_TSS_Elist
8846 (N
: Node_Id
; Val
: Elist_Id
); -- Elist3
8848 procedure Set_Type_Definition
8849 (N
: Node_Id
; Val
: Node_Id
); -- Node3
8852 (N
: Node_Id
; Val
: Node_Id
); -- Node2
8854 procedure Set_Unknown_Discriminants_Present
8855 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
8857 procedure Set_Unreferenced_In_Spec
8858 (N
: Node_Id
; Val
: Boolean := True); -- Flag7
8860 procedure Set_Variant_Part
8861 (N
: Node_Id
; Val
: Node_Id
); -- Node4
8863 procedure Set_Variants
8864 (N
: Node_Id
; Val
: List_Id
); -- List1
8866 procedure Set_Visible_Declarations
8867 (N
: Node_Id
; Val
: List_Id
); -- List2
8869 procedure Set_Was_Originally_Stub
8870 (N
: Node_Id
; Val
: Boolean := True); -- Flag13
8872 procedure Set_Zero_Cost_Handling
8873 (N
: Node_Id
; Val
: Boolean := True); -- Flag5
8875 -------------------------
8876 -- Iterator Procedures --
8877 -------------------------
8879 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
8881 procedure Next_Entity
(N
: in out Node_Id
);
8882 procedure Next_Named_Actual
(N
: in out Node_Id
);
8883 procedure Next_Rep_Item
(N
: in out Node_Id
);
8884 procedure Next_Use_Clause
(N
: in out Node_Id
);
8886 --------------------------------------
8887 -- Logical Access to End_Span Field --
8888 --------------------------------------
8890 function End_Location
(N
: Node_Id
) return Source_Ptr
;
8891 -- N is an N_If_Statement or N_Case_Statement node, and this
8892 -- function returns the location of the IF token in the END IF
8893 -- sequence by translating the value of the End_Span field.
8895 procedure Set_End_Location
(N
: Node_Id
; S
: Source_Ptr
);
8896 -- N is an N_If_Statement or N_Case_Statement node. This procedure
8897 -- sets the End_Span field to correspond to the given value S. In
8898 -- other words, End_Span is set to the difference between S and
8899 -- Sloc (N), the starting location.
8901 -----------------------------
8902 -- Syntactic Parent Tables --
8903 -----------------------------
8905 -- These tables show for each node, and for each of the five fields,
8906 -- whether the corresponding field is syntactic (True) or semantic (False).
8907 -- Unused entries are also set to False.
8909 subtype Field_Num
is Natural range 1 .. 5;
8911 Is_Syntactic_Field
: constant array (Node_Kind
, Field_Num
) of Boolean := (
8913 -- Following entries can be built automatically from the sinfo sources
8914 -- using the makeisf utility (currently this program is in spitbol).
8917 (1 => True, -- Chars (Name1)
8918 2 => False, -- Original_Discriminant (Node2-Sem)
8919 3 => False, -- unused
8920 4 => False, -- Entity (Node4-Sem)
8921 5 => False), -- Etype (Node5-Sem)
8923 N_Integer_Literal
=>
8924 (1 => False, -- unused
8925 2 => False, -- Original_Entity (Node2-Sem)
8926 3 => True, -- Intval (Uint3)
8927 4 => False, -- unused
8928 5 => False), -- Etype (Node5-Sem)
8931 (1 => False, -- unused
8932 2 => False, -- Original_Entity (Node2-Sem)
8933 3 => True, -- Realval (Ureal3)
8934 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
8935 5 => False), -- Etype (Node5-Sem)
8937 N_Character_Literal
=>
8938 (1 => True, -- Chars (Name1)
8939 2 => True, -- Char_Literal_Value (Uint2)
8940 3 => False, -- unused
8941 4 => False, -- Entity (Node4-Sem)
8942 5 => False), -- Etype (Node5-Sem)
8945 (1 => False, -- unused
8946 2 => False, -- unused
8947 3 => True, -- Strval (Str3)
8948 4 => False, -- unused
8949 5 => False), -- Etype (Node5-Sem)
8952 (1 => True, -- Chars (Name1)
8953 2 => True, -- Pragma_Argument_Associations (List2)
8954 3 => True, -- Debug_Statement (Node3)
8955 4 => False, -- Entity (Node4-Sem)
8956 5 => False), -- Next_Rep_Item (Node5-Sem)
8958 N_Pragma_Argument_Association
=>
8959 (1 => True, -- Chars (Name1)
8960 2 => False, -- unused
8961 3 => True, -- Expression (Node3)
8962 4 => False, -- unused
8963 5 => False), -- unused
8965 N_Defining_Identifier
=>
8966 (1 => True, -- Chars (Name1)
8967 2 => False, -- Next_Entity (Node2-Sem)
8968 3 => False, -- Scope (Node3-Sem)
8969 4 => False, -- unused
8970 5 => False), -- Etype (Node5-Sem)
8972 N_Full_Type_Declaration
=>
8973 (1 => True, -- Defining_Identifier (Node1)
8974 2 => False, -- unused
8975 3 => True, -- Type_Definition (Node3)
8976 4 => True, -- Discriminant_Specifications (List4)
8977 5 => False), -- unused
8979 N_Subtype_Declaration
=>
8980 (1 => True, -- Defining_Identifier (Node1)
8981 2 => False, -- unused
8982 3 => False, -- unused
8983 4 => False, -- Generic_Parent_Type (Node4-Sem)
8984 5 => True), -- Subtype_Indication (Node5)
8986 N_Subtype_Indication
=>
8987 (1 => False, -- unused
8988 2 => False, -- unused
8989 3 => True, -- Constraint (Node3)
8990 4 => True, -- Subtype_Mark (Node4)
8991 5 => False), -- Etype (Node5-Sem)
8993 N_Object_Declaration
=>
8994 (1 => True, -- Defining_Identifier (Node1)
8995 2 => False, -- Handler_List_Entry (Node2-Sem)
8996 3 => True, -- Expression (Node3)
8997 4 => True, -- Object_Definition (Node4)
8998 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
9000 N_Number_Declaration
=>
9001 (1 => True, -- Defining_Identifier (Node1)
9002 2 => False, -- unused
9003 3 => True, -- Expression (Node3)
9004 4 => False, -- unused
9005 5 => False), -- unused
9007 N_Derived_Type_Definition
=>
9008 (1 => False, -- unused
9009 2 => True, -- Interface_List (List2)
9010 3 => True, -- Record_Extension_Part (Node3)
9011 4 => False, -- unused
9012 5 => True), -- Subtype_Indication (Node5)
9014 N_Range_Constraint
=>
9015 (1 => False, -- unused
9016 2 => False, -- unused
9017 3 => False, -- unused
9018 4 => True, -- Range_Expression (Node4)
9019 5 => False), -- unused
9022 (1 => True, -- Low_Bound (Node1)
9023 2 => True, -- High_Bound (Node2)
9024 3 => False, -- unused
9025 4 => False, -- unused
9026 5 => False), -- Etype (Node5-Sem)
9028 N_Enumeration_Type_Definition
=>
9029 (1 => True, -- Literals (List1)
9030 2 => False, -- unused
9031 3 => False, -- unused
9032 4 => True, -- End_Label (Node4)
9033 5 => False), -- unused
9035 N_Defining_Character_Literal
=>
9036 (1 => True, -- Chars (Name1)
9037 2 => False, -- Next_Entity (Node2-Sem)
9038 3 => False, -- Scope (Node3-Sem)
9039 4 => False, -- unused
9040 5 => False), -- Etype (Node5-Sem)
9042 N_Signed_Integer_Type_Definition
=>
9043 (1 => True, -- Low_Bound (Node1)
9044 2 => True, -- High_Bound (Node2)
9045 3 => False, -- unused
9046 4 => False, -- unused
9047 5 => False), -- unused
9049 N_Modular_Type_Definition
=>
9050 (1 => False, -- unused
9051 2 => False, -- unused
9052 3 => True, -- Expression (Node3)
9053 4 => False, -- unused
9054 5 => False), -- unused
9056 N_Floating_Point_Definition
=>
9057 (1 => False, -- unused
9058 2 => True, -- Digits_Expression (Node2)
9059 3 => False, -- unused
9060 4 => True, -- Real_Range_Specification (Node4)
9061 5 => False), -- unused
9063 N_Real_Range_Specification
=>
9064 (1 => True, -- Low_Bound (Node1)
9065 2 => True, -- High_Bound (Node2)
9066 3 => False, -- unused
9067 4 => False, -- unused
9068 5 => False), -- unused
9070 N_Ordinary_Fixed_Point_Definition
=>
9071 (1 => False, -- unused
9072 2 => False, -- unused
9073 3 => True, -- Delta_Expression (Node3)
9074 4 => True, -- Real_Range_Specification (Node4)
9075 5 => False), -- unused
9077 N_Decimal_Fixed_Point_Definition
=>
9078 (1 => False, -- unused
9079 2 => True, -- Digits_Expression (Node2)
9080 3 => True, -- Delta_Expression (Node3)
9081 4 => True, -- Real_Range_Specification (Node4)
9082 5 => False), -- unused
9084 N_Digits_Constraint
=>
9085 (1 => False, -- unused
9086 2 => True, -- Digits_Expression (Node2)
9087 3 => False, -- unused
9088 4 => True, -- Range_Constraint (Node4)
9089 5 => False), -- unused
9091 N_Unconstrained_Array_Definition
=>
9092 (1 => False, -- unused
9093 2 => True, -- Subtype_Marks (List2)
9094 3 => False, -- unused
9095 4 => True, -- Component_Definition (Node4)
9096 5 => False), -- unused
9098 N_Constrained_Array_Definition
=>
9099 (1 => False, -- unused
9100 2 => True, -- Discrete_Subtype_Definitions (List2)
9101 3 => False, -- unused
9102 4 => True, -- Component_Definition (Node4)
9103 5 => False), -- unused
9105 N_Component_Definition
=>
9106 (1 => False, -- unused
9107 2 => False, -- unused
9108 3 => True, -- Access_Definition (Node3)
9109 4 => False, -- unused
9110 5 => True), -- Subtype_Indication (Node5)
9112 N_Discriminant_Specification
=>
9113 (1 => True, -- Defining_Identifier (Node1)
9114 2 => False, -- unused
9115 3 => True, -- Expression (Node3)
9116 4 => False, -- unused
9117 5 => True), -- Discriminant_Type (Node5)
9119 N_Index_Or_Discriminant_Constraint
=>
9120 (1 => True, -- Constraints (List1)
9121 2 => False, -- unused
9122 3 => False, -- unused
9123 4 => False, -- unused
9124 5 => False), -- unused
9126 N_Discriminant_Association
=>
9127 (1 => True, -- Selector_Names (List1)
9128 2 => False, -- unused
9129 3 => True, -- Expression (Node3)
9130 4 => False, -- unused
9131 5 => False), -- unused
9133 N_Record_Definition
=>
9134 (1 => True, -- Component_List (Node1)
9135 2 => True, -- Interface_List (List2)
9136 3 => False, -- unused
9137 4 => True, -- End_Label (Node4)
9138 5 => False), -- unused
9141 (1 => False, -- unused
9142 2 => False, -- unused
9143 3 => True, -- Component_Items (List3)
9144 4 => True, -- Variant_Part (Node4)
9145 5 => False), -- unused
9147 N_Component_Declaration
=>
9148 (1 => True, -- Defining_Identifier (Node1)
9149 2 => False, -- unused
9150 3 => True, -- Expression (Node3)
9151 4 => True, -- Component_Definition (Node4)
9152 5 => False), -- unused
9155 (1 => True, -- Variants (List1)
9156 2 => True, -- Name (Node2)
9157 3 => False, -- unused
9158 4 => False, -- unused
9159 5 => False), -- unused
9162 (1 => True, -- Component_List (Node1)
9163 2 => False, -- Enclosing_Variant (Node2-Sem)
9164 3 => False, -- Present_Expr (Uint3-Sem)
9165 4 => True, -- Discrete_Choices (List4)
9166 5 => False), -- Dcheck_Function (Node5-Sem)
9169 (1 => False, -- Others_Discrete_Choices (List1-Sem)
9170 2 => False, -- unused
9171 3 => False, -- unused
9172 4 => False, -- unused
9173 5 => False), -- unused
9175 N_Access_To_Object_Definition
=>
9176 (1 => False, -- unused
9177 2 => False, -- unused
9178 3 => False, -- unused
9179 4 => False, -- unused
9180 5 => True), -- Subtype_Indication (Node5)
9182 N_Access_Function_Definition
=>
9183 (1 => False, -- unused
9184 2 => False, -- unused
9185 3 => True, -- Parameter_Specifications (List3)
9186 4 => True, -- Result_Definition (Node4)
9187 5 => False), -- unused
9189 N_Access_Procedure_Definition
=>
9190 (1 => False, -- unused
9191 2 => False, -- unused
9192 3 => True, -- Parameter_Specifications (List3)
9193 4 => False, -- unused
9194 5 => False), -- unused
9196 N_Access_Definition
=>
9197 (1 => False, -- unused
9198 2 => False, -- unused
9199 3 => True, -- Access_To_Subprogram_Definition (Node3)
9200 4 => True, -- Subtype_Mark (Node4)
9201 5 => False), -- unused
9203 N_Incomplete_Type_Declaration
=>
9204 (1 => True, -- Defining_Identifier (Node1)
9205 2 => False, -- unused
9206 3 => False, -- unused
9207 4 => True, -- Discriminant_Specifications (List4)
9208 5 => False), -- unused
9210 N_Explicit_Dereference
=>
9211 (1 => False, -- unused
9212 2 => False, -- unused
9213 3 => True, -- Prefix (Node3)
9214 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
9215 5 => False), -- Etype (Node5-Sem)
9217 N_Indexed_Component
=>
9218 (1 => True, -- Expressions (List1)
9219 2 => False, -- unused
9220 3 => True, -- Prefix (Node3)
9221 4 => False, -- unused
9222 5 => False), -- Etype (Node5-Sem)
9225 (1 => False, -- unused
9226 2 => False, -- unused
9227 3 => True, -- Prefix (Node3)
9228 4 => True, -- Discrete_Range (Node4)
9229 5 => False), -- Etype (Node5-Sem)
9231 N_Selected_Component
=>
9232 (1 => False, -- unused
9233 2 => True, -- Selector_Name (Node2)
9234 3 => True, -- Prefix (Node3)
9235 4 => False, -- unused
9236 5 => False), -- Etype (Node5-Sem)
9238 N_Attribute_Reference
=>
9239 (1 => True, -- Expressions (List1)
9240 2 => True, -- Attribute_Name (Name2)
9241 3 => True, -- Prefix (Node3)
9242 4 => False, -- Entity (Node4-Sem)
9243 5 => False), -- Etype (Node5-Sem)
9246 (1 => True, -- Expressions (List1)
9247 2 => True, -- Component_Associations (List2)
9248 3 => False, -- Aggregate_Bounds (Node3-Sem)
9249 4 => False, -- unused
9250 5 => False), -- Etype (Node5-Sem)
9252 N_Component_Association
=>
9253 (1 => True, -- Choices (List1)
9254 2 => False, -- Loop_Actions (List2-Sem)
9255 3 => True, -- Expression (Node3)
9256 4 => False, -- unused
9257 5 => False), -- unused
9259 N_Extension_Aggregate
=>
9260 (1 => True, -- Expressions (List1)
9261 2 => True, -- Component_Associations (List2)
9262 3 => True, -- Ancestor_Part (Node3)
9263 4 => False, -- unused
9264 5 => False), -- Etype (Node5-Sem)
9267 (1 => False, -- unused
9268 2 => False, -- unused
9269 3 => False, -- unused
9270 4 => False, -- unused
9271 5 => False), -- Etype (Node5-Sem)
9274 (1 => False, -- Actions (List1-Sem)
9275 2 => True, -- Left_Opnd (Node2)
9276 3 => True, -- Right_Opnd (Node3)
9277 4 => False, -- unused
9278 5 => False), -- Etype (Node5-Sem)
9281 (1 => False, -- Actions (List1-Sem)
9282 2 => True, -- Left_Opnd (Node2)
9283 3 => True, -- Right_Opnd (Node3)
9284 4 => False, -- unused
9285 5 => False), -- Etype (Node5-Sem)
9288 (1 => False, -- unused
9289 2 => True, -- Left_Opnd (Node2)
9290 3 => True, -- Right_Opnd (Node3)
9291 4 => False, -- unused
9292 5 => False), -- Etype (Node5-Sem)
9295 (1 => False, -- unused
9296 2 => True, -- Left_Opnd (Node2)
9297 3 => True, -- Right_Opnd (Node3)
9298 4 => False, -- unused
9299 5 => False), -- Etype (Node5-Sem)
9302 (1 => True, -- Chars (Name1)
9303 2 => True, -- Left_Opnd (Node2)
9304 3 => True, -- Right_Opnd (Node3)
9305 4 => False, -- Entity (Node4-Sem)
9306 5 => False), -- Etype (Node5-Sem)
9309 (1 => True, -- Chars (Name1)
9310 2 => True, -- Left_Opnd (Node2)
9311 3 => True, -- Right_Opnd (Node3)
9312 4 => False, -- Entity (Node4-Sem)
9313 5 => False), -- Etype (Node5-Sem)
9316 (1 => True, -- Chars (Name1)
9317 2 => True, -- Left_Opnd (Node2)
9318 3 => True, -- Right_Opnd (Node3)
9319 4 => False, -- Entity (Node4-Sem)
9320 5 => False), -- Etype (Node5-Sem)
9323 (1 => True, -- Chars (Name1)
9324 2 => True, -- Left_Opnd (Node2)
9325 3 => True, -- Right_Opnd (Node3)
9326 4 => False, -- Entity (Node4-Sem)
9327 5 => False), -- Etype (Node5-Sem)
9330 (1 => True, -- Chars (Name1)
9331 2 => True, -- Left_Opnd (Node2)
9332 3 => True, -- Right_Opnd (Node3)
9333 4 => False, -- Entity (Node4-Sem)
9334 5 => False), -- Etype (Node5-Sem)
9337 (1 => True, -- Chars (Name1)
9338 2 => True, -- Left_Opnd (Node2)
9339 3 => True, -- Right_Opnd (Node3)
9340 4 => False, -- Entity (Node4-Sem)
9341 5 => False), -- Etype (Node5-Sem)
9344 (1 => True, -- Chars (Name1)
9345 2 => True, -- Left_Opnd (Node2)
9346 3 => True, -- Right_Opnd (Node3)
9347 4 => False, -- Entity (Node4-Sem)
9348 5 => False), -- Etype (Node5-Sem)
9351 (1 => True, -- Chars (Name1)
9352 2 => True, -- Left_Opnd (Node2)
9353 3 => True, -- Right_Opnd (Node3)
9354 4 => False, -- Entity (Node4-Sem)
9355 5 => False), -- Etype (Node5-Sem)
9358 (1 => True, -- Chars (Name1)
9359 2 => True, -- Left_Opnd (Node2)
9360 3 => True, -- Right_Opnd (Node3)
9361 4 => False, -- Entity (Node4-Sem)
9362 5 => False), -- Etype (Node5-Sem)
9365 (1 => True, -- Chars (Name1)
9366 2 => True, -- Left_Opnd (Node2)
9367 3 => True, -- Right_Opnd (Node3)
9368 4 => False, -- Entity (Node4-Sem)
9369 5 => False), -- Etype (Node5-Sem)
9372 (1 => True, -- Chars (Name1)
9373 2 => True, -- Left_Opnd (Node2)
9374 3 => True, -- Right_Opnd (Node3)
9375 4 => False, -- Entity (Node4-Sem)
9376 5 => False), -- Etype (Node5-Sem)
9379 (1 => True, -- Chars (Name1)
9380 2 => True, -- Left_Opnd (Node2)
9381 3 => True, -- Right_Opnd (Node3)
9382 4 => False, -- Entity (Node4-Sem)
9383 5 => False), -- Etype (Node5-Sem)
9386 (1 => True, -- Chars (Name1)
9387 2 => True, -- Left_Opnd (Node2)
9388 3 => True, -- Right_Opnd (Node3)
9389 4 => False, -- Entity (Node4-Sem)
9390 5 => False), -- Etype (Node5-Sem)
9393 (1 => True, -- Chars (Name1)
9394 2 => True, -- Left_Opnd (Node2)
9395 3 => True, -- Right_Opnd (Node3)
9396 4 => False, -- Entity (Node4-Sem)
9397 5 => False), -- Etype (Node5-Sem)
9400 (1 => True, -- Chars (Name1)
9401 2 => True, -- Left_Opnd (Node2)
9402 3 => True, -- Right_Opnd (Node3)
9403 4 => False, -- Entity (Node4-Sem)
9404 5 => False), -- Etype (Node5-Sem)
9407 (1 => True, -- Chars (Name1)
9408 2 => True, -- Left_Opnd (Node2)
9409 3 => True, -- Right_Opnd (Node3)
9410 4 => False, -- Entity (Node4-Sem)
9411 5 => False), -- Etype (Node5-Sem)
9414 (1 => True, -- Chars (Name1)
9415 2 => True, -- Left_Opnd (Node2)
9416 3 => True, -- Right_Opnd (Node3)
9417 4 => False, -- Entity (Node4-Sem)
9418 5 => False), -- Etype (Node5-Sem)
9421 (1 => True, -- Chars (Name1)
9422 2 => False, -- unused
9423 3 => True, -- Right_Opnd (Node3)
9424 4 => False, -- Entity (Node4-Sem)
9425 5 => False), -- Etype (Node5-Sem)
9428 (1 => True, -- Chars (Name1)
9429 2 => False, -- unused
9430 3 => True, -- Right_Opnd (Node3)
9431 4 => False, -- Entity (Node4-Sem)
9432 5 => False), -- Etype (Node5-Sem)
9435 (1 => True, -- Chars (Name1)
9436 2 => False, -- unused
9437 3 => True, -- Right_Opnd (Node3)
9438 4 => False, -- Entity (Node4-Sem)
9439 5 => False), -- Etype (Node5-Sem)
9442 (1 => True, -- Chars (Name1)
9443 2 => False, -- unused
9444 3 => True, -- Right_Opnd (Node3)
9445 4 => False, -- Entity (Node4-Sem)
9446 5 => False), -- Etype (Node5-Sem)
9448 N_Type_Conversion
=>
9449 (1 => False, -- unused
9450 2 => False, -- unused
9451 3 => True, -- Expression (Node3)
9452 4 => True, -- Subtype_Mark (Node4)
9453 5 => False), -- Etype (Node5-Sem)
9455 N_Qualified_Expression
=>
9456 (1 => False, -- unused
9457 2 => False, -- unused
9458 3 => True, -- Expression (Node3)
9459 4 => True, -- Subtype_Mark (Node4)
9460 5 => False), -- Etype (Node5-Sem)
9463 (1 => False, -- Storage_Pool (Node1-Sem)
9464 2 => False, -- Procedure_To_Call (Node2-Sem)
9465 3 => True, -- Expression (Node3)
9466 4 => False, -- unused
9467 5 => False), -- Etype (Node5-Sem)
9470 (1 => False, -- unused
9471 2 => False, -- unused
9472 3 => False, -- unused
9473 4 => False, -- unused
9474 5 => False), -- unused
9477 (1 => True, -- Identifier (Node1)
9478 2 => False, -- unused
9479 3 => False, -- unused
9480 4 => False, -- unused
9481 5 => False), -- unused
9483 N_Assignment_Statement
=>
9484 (1 => False, -- unused
9485 2 => True, -- Name (Node2)
9486 3 => True, -- Expression (Node3)
9487 4 => False, -- unused
9488 5 => False), -- unused
9491 (1 => True, -- Condition (Node1)
9492 2 => True, -- Then_Statements (List2)
9493 3 => True, -- Elsif_Parts (List3)
9494 4 => True, -- Else_Statements (List4)
9495 5 => True), -- End_Span (Uint5)
9498 (1 => True, -- Condition (Node1)
9499 2 => True, -- Then_Statements (List2)
9500 3 => False, -- Condition_Actions (List3-Sem)
9501 4 => False, -- unused
9502 5 => False), -- unused
9505 (1 => False, -- unused
9506 2 => False, -- unused
9507 3 => True, -- Expression (Node3)
9508 4 => True, -- Alternatives (List4)
9509 5 => True), -- End_Span (Uint5)
9511 N_Case_Statement_Alternative
=>
9512 (1 => False, -- unused
9513 2 => False, -- unused
9514 3 => True, -- Statements (List3)
9515 4 => True, -- Discrete_Choices (List4)
9516 5 => False), -- unused
9519 (1 => True, -- Identifier (Node1)
9520 2 => True, -- Iteration_Scheme (Node2)
9521 3 => True, -- Statements (List3)
9522 4 => True, -- End_Label (Node4)
9523 5 => False), -- unused
9525 N_Iteration_Scheme
=>
9526 (1 => True, -- Condition (Node1)
9527 2 => False, -- unused
9528 3 => False, -- Condition_Actions (List3-Sem)
9529 4 => True, -- Loop_Parameter_Specification (Node4)
9530 5 => False), -- unused
9532 N_Loop_Parameter_Specification
=>
9533 (1 => True, -- Defining_Identifier (Node1)
9534 2 => False, -- unused
9535 3 => False, -- unused
9536 4 => True, -- Discrete_Subtype_Definition (Node4)
9537 5 => False), -- unused
9539 N_Block_Statement
=>
9540 (1 => True, -- Identifier (Node1)
9541 2 => True, -- Declarations (List2)
9542 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9543 4 => True, -- Handled_Statement_Sequence (Node4)
9544 5 => False), -- unused
9547 (1 => True, -- Condition (Node1)
9548 2 => True, -- Name (Node2)
9549 3 => False, -- unused
9550 4 => False, -- unused
9551 5 => False), -- unused
9554 (1 => False, -- unused
9555 2 => True, -- Name (Node2)
9556 3 => False, -- unused
9557 4 => False, -- unused
9558 5 => False), -- unused
9560 N_Subprogram_Declaration
=>
9561 (1 => True, -- Specification (Node1)
9562 2 => False, -- unused
9563 3 => False, -- Body_To_Inline (Node3-Sem)
9564 4 => False, -- Parent_Spec (Node4-Sem)
9565 5 => False), -- Corresponding_Body (Node5-Sem)
9567 N_Abstract_Subprogram_Declaration
=>
9568 (1 => True, -- Specification (Node1)
9569 2 => False, -- unused
9570 3 => False, -- unused
9571 4 => False, -- unused
9572 5 => False), -- unused
9574 N_Function_Specification
=>
9575 (1 => True, -- Defining_Unit_Name (Node1)
9576 2 => False, -- Elaboration_Boolean (Node2-Sem)
9577 3 => True, -- Parameter_Specifications (List3)
9578 4 => True, -- Result_Definition (Node4)
9579 5 => False), -- Generic_Parent (Node5-Sem)
9581 N_Procedure_Specification
=>
9582 (1 => True, -- Defining_Unit_Name (Node1)
9583 2 => False, -- Elaboration_Boolean (Node2-Sem)
9584 3 => True, -- Parameter_Specifications (List3)
9585 4 => False, -- unused
9586 5 => False), -- Generic_Parent (Node5-Sem)
9589 (1 => True, -- Identifier (Node1)
9590 2 => True, -- Name (Node2)
9591 3 => False, -- unused
9592 4 => False, -- unused
9593 5 => False), -- unused
9595 N_Defining_Program_Unit_Name
=>
9596 (1 => True, -- Defining_Identifier (Node1)
9597 2 => True, -- Name (Node2)
9598 3 => False, -- unused
9599 4 => False, -- unused
9600 5 => False), -- unused
9602 N_Operator_Symbol
=>
9603 (1 => True, -- Chars (Name1)
9604 2 => False, -- unused
9605 3 => True, -- Strval (Str3)
9606 4 => False, -- Entity (Node4-Sem)
9607 5 => False), -- Etype (Node5-Sem)
9609 N_Defining_Operator_Symbol
=>
9610 (1 => True, -- Chars (Name1)
9611 2 => False, -- Next_Entity (Node2-Sem)
9612 3 => False, -- Scope (Node3-Sem)
9613 4 => False, -- unused
9614 5 => False), -- Etype (Node5-Sem)
9616 N_Parameter_Specification
=>
9617 (1 => True, -- Defining_Identifier (Node1)
9618 2 => True, -- Parameter_Type (Node2)
9619 3 => True, -- Expression (Node3)
9620 4 => False, -- unused
9621 5 => False), -- Default_Expression (Node5-Sem)
9623 N_Subprogram_Body
=>
9624 (1 => True, -- Specification (Node1)
9625 2 => True, -- Declarations (List2)
9626 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9627 4 => True, -- Handled_Statement_Sequence (Node4)
9628 5 => False), -- Corresponding_Spec (Node5-Sem)
9630 N_Procedure_Call_Statement
=>
9631 (1 => False, -- Controlling_Argument (Node1-Sem)
9632 2 => True, -- Name (Node2)
9633 3 => True, -- Parameter_Associations (List3)
9634 4 => False, -- First_Named_Actual (Node4-Sem)
9635 5 => False), -- Etype (Node5-Sem)
9638 (1 => False, -- Controlling_Argument (Node1-Sem)
9639 2 => True, -- Name (Node2)
9640 3 => True, -- Parameter_Associations (List3)
9641 4 => False, -- First_Named_Actual (Node4-Sem)
9642 5 => False), -- Etype (Node5-Sem)
9644 N_Parameter_Association
=>
9645 (1 => False, -- unused
9646 2 => True, -- Selector_Name (Node2)
9647 3 => True, -- Explicit_Actual_Parameter (Node3)
9648 4 => False, -- Next_Named_Actual (Node4-Sem)
9649 5 => False), -- unused
9651 N_Return_Statement
=>
9652 (1 => False, -- Storage_Pool (Node1-Sem)
9653 2 => False, -- Procedure_To_Call (Node2-Sem)
9654 3 => True, -- Expression (Node3)
9655 4 => False, -- unused
9656 5 => False), -- Return_Statement_Entity (Node5-Sem)
9658 N_Extended_Return_Statement
=>
9659 (1 => False, -- Storage_Pool (Node1-Sem)
9660 2 => False, -- Procedure_To_Call (Node2-Sem)
9661 3 => True, -- Return_Object_Declarations (List3)
9662 4 => True, -- Handled_Statement_Sequence (Node4)
9663 5 => False), -- Return_Statement_Entity (Node5-Sem)
9665 N_Package_Declaration
=>
9666 (1 => True, -- Specification (Node1)
9667 2 => False, -- unused
9668 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9669 4 => False, -- Parent_Spec (Node4-Sem)
9670 5 => False), -- Corresponding_Body (Node5-Sem)
9672 N_Package_Specification
=>
9673 (1 => True, -- Defining_Unit_Name (Node1)
9674 2 => True, -- Visible_Declarations (List2)
9675 3 => True, -- Private_Declarations (List3)
9676 4 => True, -- End_Label (Node4)
9677 5 => False), -- Generic_Parent (Node5-Sem)
9680 (1 => True, -- Defining_Unit_Name (Node1)
9681 2 => True, -- Declarations (List2)
9682 3 => False, -- unused
9683 4 => True, -- Handled_Statement_Sequence (Node4)
9684 5 => False), -- Corresponding_Spec (Node5-Sem)
9686 N_Private_Type_Declaration
=>
9687 (1 => True, -- Defining_Identifier (Node1)
9688 2 => False, -- unused
9689 3 => False, -- unused
9690 4 => True, -- Discriminant_Specifications (List4)
9691 5 => False), -- unused
9693 N_Private_Extension_Declaration
=>
9694 (1 => True, -- Defining_Identifier (Node1)
9695 2 => True, -- Interface_List (List2)
9696 3 => False, -- unused
9697 4 => True, -- Discriminant_Specifications (List4)
9698 5 => True), -- Subtype_Indication (Node5)
9700 N_Use_Package_Clause
=>
9701 (1 => False, -- unused
9702 2 => True, -- Names (List2)
9703 3 => False, -- Next_Use_Clause (Node3-Sem)
9704 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
9705 5 => False), -- unused
9707 N_Use_Type_Clause
=>
9708 (1 => False, -- unused
9709 2 => True, -- Subtype_Marks (List2)
9710 3 => False, -- Next_Use_Clause (Node3-Sem)
9711 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
9712 5 => False), -- unused
9714 N_Object_Renaming_Declaration
=>
9715 (1 => True, -- Defining_Identifier (Node1)
9716 2 => True, -- Name (Node2)
9717 3 => True, -- Access_Definition (Node3)
9718 4 => True, -- Subtype_Mark (Node4)
9719 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
9721 N_Exception_Renaming_Declaration
=>
9722 (1 => True, -- Defining_Identifier (Node1)
9723 2 => True, -- Name (Node2)
9724 3 => False, -- unused
9725 4 => False, -- unused
9726 5 => False), -- unused
9728 N_Package_Renaming_Declaration
=>
9729 (1 => True, -- Defining_Unit_Name (Node1)
9730 2 => True, -- Name (Node2)
9731 3 => False, -- unused
9732 4 => False, -- Parent_Spec (Node4-Sem)
9733 5 => False), -- unused
9735 N_Subprogram_Renaming_Declaration
=>
9736 (1 => True, -- Specification (Node1)
9737 2 => True, -- Name (Node2)
9738 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
9739 4 => False, -- Parent_Spec (Node4-Sem)
9740 5 => False), -- Corresponding_Spec (Node5-Sem)
9742 N_Generic_Package_Renaming_Declaration
=>
9743 (1 => True, -- Defining_Unit_Name (Node1)
9744 2 => True, -- Name (Node2)
9745 3 => False, -- unused
9746 4 => False, -- Parent_Spec (Node4-Sem)
9747 5 => False), -- unused
9749 N_Generic_Procedure_Renaming_Declaration
=>
9750 (1 => True, -- Defining_Unit_Name (Node1)
9751 2 => True, -- Name (Node2)
9752 3 => False, -- unused
9753 4 => False, -- Parent_Spec (Node4-Sem)
9754 5 => False), -- unused
9756 N_Generic_Function_Renaming_Declaration
=>
9757 (1 => True, -- Defining_Unit_Name (Node1)
9758 2 => True, -- Name (Node2)
9759 3 => False, -- unused
9760 4 => False, -- Parent_Spec (Node4-Sem)
9761 5 => False), -- unused
9763 N_Task_Type_Declaration
=>
9764 (1 => True, -- Defining_Identifier (Node1)
9765 2 => True, -- Interface_List (List2)
9766 3 => True, -- Task_Definition (Node3)
9767 4 => True, -- Discriminant_Specifications (List4)
9768 5 => False), -- Corresponding_Body (Node5-Sem)
9770 N_Single_Task_Declaration
=>
9771 (1 => True, -- Defining_Identifier (Node1)
9772 2 => True, -- Interface_List (List2)
9773 3 => True, -- Task_Definition (Node3)
9774 4 => False, -- unused
9775 5 => False), -- unused
9777 N_Task_Definition
=>
9778 (1 => False, -- unused
9779 2 => True, -- Visible_Declarations (List2)
9780 3 => True, -- Private_Declarations (List3)
9781 4 => True, -- End_Label (Node4)
9782 5 => False), -- unused
9785 (1 => True, -- Defining_Identifier (Node1)
9786 2 => True, -- Declarations (List2)
9787 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9788 4 => True, -- Handled_Statement_Sequence (Node4)
9789 5 => False), -- Corresponding_Spec (Node5-Sem)
9791 N_Protected_Type_Declaration
=>
9792 (1 => True, -- Defining_Identifier (Node1)
9793 2 => True, -- Interface_List (List2)
9794 3 => True, -- Protected_Definition (Node3)
9795 4 => True, -- Discriminant_Specifications (List4)
9796 5 => False), -- Corresponding_Body (Node5-Sem)
9798 N_Single_Protected_Declaration
=>
9799 (1 => True, -- Defining_Identifier (Node1)
9800 2 => True, -- Interface_List (List2)
9801 3 => True, -- Protected_Definition (Node3)
9802 4 => False, -- unused
9803 5 => False), -- unused
9805 N_Protected_Definition
=>
9806 (1 => False, -- unused
9807 2 => True, -- Visible_Declarations (List2)
9808 3 => True, -- Private_Declarations (List3)
9809 4 => True, -- End_Label (Node4)
9810 5 => False), -- unused
9813 (1 => True, -- Defining_Identifier (Node1)
9814 2 => True, -- Declarations (List2)
9815 3 => False, -- unused
9816 4 => True, -- End_Label (Node4)
9817 5 => False), -- Corresponding_Spec (Node5-Sem)
9819 N_Entry_Declaration
=>
9820 (1 => True, -- Defining_Identifier (Node1)
9821 2 => False, -- unused
9822 3 => True, -- Parameter_Specifications (List3)
9823 4 => True, -- Discrete_Subtype_Definition (Node4)
9824 5 => False), -- Corresponding_Body (Node5-Sem)
9826 N_Accept_Statement
=>
9827 (1 => True, -- Entry_Direct_Name (Node1)
9828 2 => True, -- Declarations (List2)
9829 3 => True, -- Parameter_Specifications (List3)
9830 4 => True, -- Handled_Statement_Sequence (Node4)
9831 5 => True), -- Entry_Index (Node5)
9834 (1 => True, -- Defining_Identifier (Node1)
9835 2 => True, -- Declarations (List2)
9836 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9837 4 => True, -- Handled_Statement_Sequence (Node4)
9838 5 => True), -- Entry_Body_Formal_Part (Node5)
9840 N_Entry_Body_Formal_Part
=>
9841 (1 => True, -- Condition (Node1)
9842 2 => False, -- unused
9843 3 => True, -- Parameter_Specifications (List3)
9844 4 => True, -- Entry_Index_Specification (Node4)
9845 5 => False), -- unused
9847 N_Entry_Index_Specification
=>
9848 (1 => True, -- Defining_Identifier (Node1)
9849 2 => False, -- unused
9850 3 => False, -- unused
9851 4 => True, -- Discrete_Subtype_Definition (Node4)
9852 5 => False), -- unused
9854 N_Entry_Call_Statement
=>
9855 (1 => False, -- unused
9856 2 => True, -- Name (Node2)
9857 3 => True, -- Parameter_Associations (List3)
9858 4 => False, -- First_Named_Actual (Node4-Sem)
9859 5 => False), -- unused
9861 N_Requeue_Statement
=>
9862 (1 => False, -- unused
9863 2 => True, -- Name (Node2)
9864 3 => False, -- unused
9865 4 => False, -- unused
9866 5 => False), -- unused
9868 N_Delay_Until_Statement
=>
9869 (1 => False, -- unused
9870 2 => False, -- unused
9871 3 => True, -- Expression (Node3)
9872 4 => False, -- unused
9873 5 => False), -- unused
9875 N_Delay_Relative_Statement
=>
9876 (1 => False, -- unused
9877 2 => False, -- unused
9878 3 => True, -- Expression (Node3)
9879 4 => False, -- unused
9880 5 => False), -- unused
9882 N_Selective_Accept
=>
9883 (1 => True, -- Select_Alternatives (List1)
9884 2 => False, -- unused
9885 3 => False, -- unused
9886 4 => True, -- Else_Statements (List4)
9887 5 => False), -- unused
9889 N_Accept_Alternative
=>
9890 (1 => True, -- Condition (Node1)
9891 2 => True, -- Accept_Statement (Node2)
9892 3 => True, -- Statements (List3)
9893 4 => True, -- Pragmas_Before (List4)
9894 5 => False), -- Accept_Handler_Records (List5-Sem)
9896 N_Delay_Alternative
=>
9897 (1 => True, -- Condition (Node1)
9898 2 => True, -- Delay_Statement (Node2)
9899 3 => True, -- Statements (List3)
9900 4 => True, -- Pragmas_Before (List4)
9901 5 => False), -- unused
9903 N_Terminate_Alternative
=>
9904 (1 => True, -- Condition (Node1)
9905 2 => False, -- unused
9906 3 => False, -- unused
9907 4 => True, -- Pragmas_Before (List4)
9908 5 => True), -- Pragmas_After (List5)
9910 N_Timed_Entry_Call
=>
9911 (1 => True, -- Entry_Call_Alternative (Node1)
9912 2 => False, -- unused
9913 3 => False, -- unused
9914 4 => True, -- Delay_Alternative (Node4)
9915 5 => False), -- unused
9917 N_Entry_Call_Alternative
=>
9918 (1 => True, -- Entry_Call_Statement (Node1)
9919 2 => False, -- unused
9920 3 => True, -- Statements (List3)
9921 4 => True, -- Pragmas_Before (List4)
9922 5 => False), -- unused
9924 N_Conditional_Entry_Call
=>
9925 (1 => True, -- Entry_Call_Alternative (Node1)
9926 2 => False, -- unused
9927 3 => False, -- unused
9928 4 => True, -- Else_Statements (List4)
9929 5 => False), -- unused
9931 N_Asynchronous_Select
=>
9932 (1 => True, -- Triggering_Alternative (Node1)
9933 2 => True, -- Abortable_Part (Node2)
9934 3 => False, -- unused
9935 4 => False, -- unused
9936 5 => False), -- unused
9938 N_Triggering_Alternative
=>
9939 (1 => True, -- Triggering_Statement (Node1)
9940 2 => False, -- unused
9941 3 => True, -- Statements (List3)
9942 4 => True, -- Pragmas_Before (List4)
9943 5 => False), -- unused
9946 (1 => False, -- unused
9947 2 => False, -- unused
9948 3 => True, -- Statements (List3)
9949 4 => False, -- unused
9950 5 => False), -- unused
9952 N_Abort_Statement
=>
9953 (1 => False, -- unused
9954 2 => True, -- Names (List2)
9955 3 => False, -- unused
9956 4 => False, -- unused
9957 5 => False), -- unused
9959 N_Compilation_Unit
=>
9960 (1 => True, -- Context_Items (List1)
9961 2 => True, -- Unit (Node2)
9962 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
9963 4 => False, -- Library_Unit (Node4-Sem)
9964 5 => True), -- Aux_Decls_Node (Node5)
9966 N_Compilation_Unit_Aux
=>
9967 (1 => True, -- Actions (List1)
9968 2 => True, -- Declarations (List2)
9969 3 => False, -- unused
9970 4 => True, -- Config_Pragmas (List4)
9971 5 => True), -- Pragmas_After (List5)
9974 (1 => False, -- unused
9975 2 => True, -- Name (Node2)
9976 3 => False, -- unused
9977 4 => False, -- Library_Unit (Node4-Sem)
9978 5 => False), -- Corresponding_Spec (Node5-Sem)
9980 N_With_Type_Clause
=>
9981 (1 => False, -- unused
9982 2 => True, -- Name (Node2)
9983 3 => False, -- unused
9984 4 => False, -- unused
9985 5 => False), -- unused
9987 N_Subprogram_Body_Stub
=>
9988 (1 => True, -- Specification (Node1)
9989 2 => False, -- unused
9990 3 => False, -- unused
9991 4 => False, -- Library_Unit (Node4-Sem)
9992 5 => False), -- Corresponding_Body (Node5-Sem)
9994 N_Package_Body_Stub
=>
9995 (1 => True, -- Defining_Identifier (Node1)
9996 2 => False, -- unused
9997 3 => False, -- unused
9998 4 => False, -- Library_Unit (Node4-Sem)
9999 5 => False), -- Corresponding_Body (Node5-Sem)
10001 N_Task_Body_Stub
=>
10002 (1 => True, -- Defining_Identifier (Node1)
10003 2 => False, -- unused
10004 3 => False, -- unused
10005 4 => False, -- Library_Unit (Node4-Sem)
10006 5 => False), -- Corresponding_Body (Node5-Sem)
10008 N_Protected_Body_Stub
=>
10009 (1 => True, -- Defining_Identifier (Node1)
10010 2 => False, -- unused
10011 3 => False, -- unused
10012 4 => False, -- Library_Unit (Node4-Sem)
10013 5 => False), -- Corresponding_Body (Node5-Sem)
10016 (1 => True, -- Proper_Body (Node1)
10017 2 => True, -- Name (Node2)
10018 3 => False, -- Corresponding_Stub (Node3-Sem)
10019 4 => False, -- unused
10020 5 => False), -- unused
10022 N_Exception_Declaration
=>
10023 (1 => True, -- Defining_Identifier (Node1)
10024 2 => False, -- unused
10025 3 => False, -- Expression (Node3-Sem)
10026 4 => False, -- unused
10027 5 => False), -- unused
10029 N_Handled_Sequence_Of_Statements
=>
10030 (1 => True, -- At_End_Proc (Node1)
10031 2 => False, -- First_Real_Statement (Node2-Sem)
10032 3 => True, -- Statements (List3)
10033 4 => True, -- End_Label (Node4)
10034 5 => True), -- Exception_Handlers (List5)
10036 N_Exception_Handler
=>
10037 (1 => False, -- unused
10038 2 => True, -- Choice_Parameter (Node2)
10039 3 => True, -- Statements (List3)
10040 4 => True, -- Exception_Choices (List4)
10041 5 => False), -- unused
10043 N_Raise_Statement
=>
10044 (1 => False, -- unused
10045 2 => True, -- Name (Node2)
10046 3 => True, -- Expression (Node3)
10047 4 => False, -- unused
10048 5 => False), -- unused
10050 N_Generic_Subprogram_Declaration
=>
10051 (1 => True, -- Specification (Node1)
10052 2 => True, -- Generic_Formal_Declarations (List2)
10053 3 => False, -- unused
10054 4 => False, -- Parent_Spec (Node4-Sem)
10055 5 => False), -- Corresponding_Body (Node5-Sem)
10057 N_Generic_Package_Declaration
=>
10058 (1 => True, -- Specification (Node1)
10059 2 => True, -- Generic_Formal_Declarations (List2)
10060 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10061 4 => False, -- Parent_Spec (Node4-Sem)
10062 5 => False), -- Corresponding_Body (Node5-Sem)
10064 N_Package_Instantiation
=>
10065 (1 => True, -- Defining_Unit_Name (Node1)
10066 2 => True, -- Name (Node2)
10067 3 => True, -- Generic_Associations (List3)
10068 4 => False, -- Parent_Spec (Node4-Sem)
10069 5 => False), -- Instance_Spec (Node5-Sem)
10071 N_Procedure_Instantiation
=>
10072 (1 => True, -- Defining_Unit_Name (Node1)
10073 2 => True, -- Name (Node2)
10074 3 => True, -- Generic_Associations (List3)
10075 4 => False, -- Parent_Spec (Node4-Sem)
10076 5 => False), -- Instance_Spec (Node5-Sem)
10078 N_Function_Instantiation
=>
10079 (1 => True, -- Defining_Unit_Name (Node1)
10080 2 => True, -- Name (Node2)
10081 3 => True, -- Generic_Associations (List3)
10082 4 => False, -- Parent_Spec (Node4-Sem)
10083 5 => False), -- Instance_Spec (Node5-Sem)
10085 N_Generic_Association
=>
10086 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
10087 2 => True, -- Selector_Name (Node2)
10088 3 => False, -- unused
10089 4 => False, -- unused
10090 5 => False), -- unused
10092 N_Formal_Object_Declaration
=>
10093 (1 => True, -- Defining_Identifier (Node1)
10094 2 => False, -- unused
10095 3 => True, -- Access_Definition (Node3)
10096 4 => True, -- Subtype_Mark (Node4)
10097 5 => True), -- Default_Expression (Node5)
10099 N_Formal_Type_Declaration
=>
10100 (1 => True, -- Defining_Identifier (Node1)
10101 2 => False, -- unused
10102 3 => True, -- Formal_Type_Definition (Node3)
10103 4 => True, -- Discriminant_Specifications (List4)
10104 5 => False), -- unused
10106 N_Formal_Private_Type_Definition
=>
10107 (1 => False, -- unused
10108 2 => False, -- unused
10109 3 => False, -- unused
10110 4 => False, -- unused
10111 5 => False), -- unused
10113 N_Formal_Derived_Type_Definition
=>
10114 (1 => False, -- unused
10115 2 => True, -- Interface_List (List2)
10116 3 => False, -- unused
10117 4 => True, -- Subtype_Mark (Node4)
10118 5 => False), -- unused
10120 N_Formal_Discrete_Type_Definition
=>
10121 (1 => False, -- unused
10122 2 => False, -- unused
10123 3 => False, -- unused
10124 4 => False, -- unused
10125 5 => False), -- unused
10127 N_Formal_Signed_Integer_Type_Definition
=>
10128 (1 => False, -- unused
10129 2 => False, -- unused
10130 3 => False, -- unused
10131 4 => False, -- unused
10132 5 => False), -- unused
10134 N_Formal_Modular_Type_Definition
=>
10135 (1 => False, -- unused
10136 2 => False, -- unused
10137 3 => False, -- unused
10138 4 => False, -- unused
10139 5 => False), -- unused
10141 N_Formal_Floating_Point_Definition
=>
10142 (1 => False, -- unused
10143 2 => False, -- unused
10144 3 => False, -- unused
10145 4 => False, -- unused
10146 5 => False), -- unused
10148 N_Formal_Ordinary_Fixed_Point_Definition
=>
10149 (1 => False, -- unused
10150 2 => False, -- unused
10151 3 => False, -- unused
10152 4 => False, -- unused
10153 5 => False), -- unused
10155 N_Formal_Decimal_Fixed_Point_Definition
=>
10156 (1 => False, -- unused
10157 2 => False, -- unused
10158 3 => False, -- unused
10159 4 => False, -- unused
10160 5 => False), -- unused
10162 N_Formal_Concrete_Subprogram_Declaration
=>
10163 (1 => True, -- Specification (Node1)
10164 2 => True, -- Default_Name (Node2)
10165 3 => False, -- unused
10166 4 => False, -- unused
10167 5 => False), -- unused
10169 N_Formal_Abstract_Subprogram_Declaration
=>
10170 (1 => True, -- Specification (Node1)
10171 2 => True, -- Default_Name (Node2)
10172 3 => False, -- unused
10173 4 => False, -- unused
10174 5 => False), -- unused
10176 N_Formal_Package_Declaration
=>
10177 (1 => True, -- Defining_Identifier (Node1)
10178 2 => True, -- Name (Node2)
10179 3 => True, -- Generic_Associations (List3)
10180 4 => False, -- unused
10181 5 => False), -- Instance_Spec (Node5-Sem)
10183 N_Attribute_Definition_Clause
=>
10184 (1 => True, -- Chars (Name1)
10185 2 => True, -- Name (Node2)
10186 3 => True, -- Expression (Node3)
10187 4 => False, -- unused
10188 5 => False), -- Next_Rep_Item (Node5-Sem)
10190 N_Enumeration_Representation_Clause
=>
10191 (1 => True, -- Identifier (Node1)
10192 2 => False, -- unused
10193 3 => True, -- Array_Aggregate (Node3)
10194 4 => False, -- unused
10195 5 => False), -- Next_Rep_Item (Node5-Sem)
10197 N_Record_Representation_Clause
=>
10198 (1 => True, -- Identifier (Node1)
10199 2 => True, -- Mod_Clause (Node2)
10200 3 => True, -- Component_Clauses (List3)
10201 4 => False, -- unused
10202 5 => False), -- Next_Rep_Item (Node5-Sem)
10204 N_Component_Clause
=>
10205 (1 => True, -- Component_Name (Node1)
10206 2 => True, -- Position (Node2)
10207 3 => True, -- First_Bit (Node3)
10208 4 => True, -- Last_Bit (Node4)
10209 5 => False), -- unused
10211 N_Code_Statement
=>
10212 (1 => False, -- unused
10213 2 => False, -- unused
10214 3 => True, -- Expression (Node3)
10215 4 => False, -- unused
10216 5 => False), -- unused
10218 N_Op_Rotate_Left
=>
10219 (1 => True, -- Chars (Name1)
10220 2 => True, -- Left_Opnd (Node2)
10221 3 => True, -- Right_Opnd (Node3)
10222 4 => False, -- Entity (Node4-Sem)
10223 5 => False), -- Etype (Node5-Sem)
10225 N_Op_Rotate_Right
=>
10226 (1 => True, -- Chars (Name1)
10227 2 => True, -- Left_Opnd (Node2)
10228 3 => True, -- Right_Opnd (Node3)
10229 4 => False, -- Entity (Node4-Sem)
10230 5 => False), -- Etype (Node5-Sem)
10233 (1 => True, -- Chars (Name1)
10234 2 => True, -- Left_Opnd (Node2)
10235 3 => True, -- Right_Opnd (Node3)
10236 4 => False, -- Entity (Node4-Sem)
10237 5 => False), -- Etype (Node5-Sem)
10239 N_Op_Shift_Right_Arithmetic
=>
10240 (1 => True, -- Chars (Name1)
10241 2 => True, -- Left_Opnd (Node2)
10242 3 => True, -- Right_Opnd (Node3)
10243 4 => False, -- Entity (Node4-Sem)
10244 5 => False), -- Etype (Node5-Sem)
10246 N_Op_Shift_Right
=>
10247 (1 => True, -- Chars (Name1)
10248 2 => True, -- Left_Opnd (Node2)
10249 3 => True, -- Right_Opnd (Node3)
10250 4 => False, -- Entity (Node4-Sem)
10251 5 => False), -- Etype (Node5-Sem)
10253 N_Delta_Constraint
=>
10254 (1 => False, -- unused
10255 2 => False, -- unused
10256 3 => True, -- Delta_Expression (Node3)
10257 4 => True, -- Range_Constraint (Node4)
10258 5 => False), -- unused
10261 (1 => True, -- Identifier (Node1)
10262 2 => False, -- unused
10263 3 => True, -- Expression (Node3)
10264 4 => False, -- unused
10265 5 => False), -- unused
10268 (1 => False, -- unused
10269 2 => False, -- unused
10270 3 => True, -- Expression (Node3)
10271 4 => True, -- Pragmas_Before (List4)
10272 5 => False), -- unused
10274 N_Conditional_Expression
=>
10275 (1 => True, -- Expressions (List1)
10276 2 => False, -- Then_Actions (List2-Sem)
10277 3 => False, -- Else_Actions (List3-Sem)
10278 4 => False, -- unused
10279 5 => False), -- Etype (Node5-Sem)
10282 (1 => True, -- Chars (Name1)
10283 2 => True, -- Selector_Name (Node2)
10284 3 => True, -- Prefix (Node3)
10285 4 => False, -- Entity (Node4-Sem)
10286 5 => False), -- Etype (Node5-Sem)
10288 N_Free_Statement
=>
10289 (1 => False, -- Storage_Pool (Node1-Sem)
10290 2 => False, -- Procedure_To_Call (Node2-Sem)
10291 3 => True, -- Expression (Node3)
10292 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10293 5 => False), -- unused
10296 (1 => True, -- Actions (List1)
10297 2 => False, -- Access_Types_To_Process (Elist2-Sem)
10298 3 => False, -- TSS_Elist (Elist3-Sem)
10299 4 => False, -- Entity (Node4-Sem)
10300 5 => False), -- First_Subtype_Link (Node5-Sem)
10302 N_Implicit_Label_Declaration
=>
10303 (1 => True, -- Defining_Identifier (Node1)
10304 2 => False, -- Label_Construct (Node2-Sem)
10305 3 => False, -- unused
10306 4 => False, -- unused
10307 5 => False), -- unused
10309 N_Itype_Reference
=>
10310 (1 => False, -- Itype (Node1-Sem)
10311 2 => False, -- unused
10312 3 => False, -- unused
10313 4 => False, -- unused
10314 5 => False), -- unused
10316 N_Raise_Constraint_Error
=>
10317 (1 => True, -- Condition (Node1)
10318 2 => False, -- unused
10319 3 => True, -- Reason (Uint3)
10320 4 => False, -- unused
10321 5 => False), -- Etype (Node5-Sem)
10323 N_Raise_Program_Error
=>
10324 (1 => True, -- Condition (Node1)
10325 2 => False, -- unused
10326 3 => True, -- Reason (Uint3)
10327 4 => False, -- unused
10328 5 => False), -- Etype (Node5-Sem)
10330 N_Raise_Storage_Error
=>
10331 (1 => True, -- Condition (Node1)
10332 2 => False, -- unused
10333 3 => True, -- Reason (Uint3)
10334 4 => False, -- unused
10335 5 => False), -- Etype (Node5-Sem)
10338 (1 => False, -- unused
10339 2 => False, -- unused
10340 3 => True, -- Prefix (Node3)
10341 4 => False, -- unused
10342 5 => False), -- Etype (Node5-Sem)
10344 N_Subprogram_Info
=>
10345 (1 => True, -- Identifier (Node1)
10346 2 => False, -- unused
10347 3 => False, -- unused
10348 4 => False, -- unused
10349 5 => False), -- Etype (Node5-Sem)
10351 N_Unchecked_Expression
=>
10352 (1 => False, -- unused
10353 2 => False, -- unused
10354 3 => True, -- Expression (Node3)
10355 4 => False, -- unused
10356 5 => False), -- Etype (Node5-Sem)
10358 N_Unchecked_Type_Conversion
=>
10359 (1 => False, -- unused
10360 2 => False, -- unused
10361 3 => True, -- Expression (Node3)
10362 4 => True, -- Subtype_Mark (Node4)
10363 5 => False), -- Etype (Node5-Sem)
10365 N_Validate_Unchecked_Conversion
=>
10366 (1 => False, -- Source_Type (Node1-Sem)
10367 2 => False, -- Target_Type (Node2-Sem)
10368 3 => False, -- unused
10369 4 => False, -- unused
10370 5 => False), -- unused
10372 -- End of inserted output from makeisf program
10374 -- Entries for Empty, Error and Unused. Even thought these have a Chars
10375 -- field for debugging purposes, they are not really syntactic fields, so
10376 -- we mark all fields as unused.
10379 (1 => False, -- unused
10380 2 => False, -- unused
10381 3 => False, -- unused
10382 4 => False, -- unused
10383 5 => False), -- unused
10386 (1 => False, -- unused
10387 2 => False, -- unused
10388 3 => False, -- unused
10389 4 => False, -- unused
10390 5 => False), -- unused
10392 N_Unused_At_Start
=>
10393 (1 => False, -- unused
10394 2 => False, -- unused
10395 3 => False, -- unused
10396 4 => False, -- unused
10397 5 => False), -- unused
10400 (1 => False, -- unused
10401 2 => False, -- unused
10402 3 => False, -- unused
10403 4 => False, -- unused
10404 5 => False)); -- unused
10406 --------------------
10407 -- Inline Pragmas --
10408 --------------------
10410 pragma Inline
(ABE_Is_Certain
);
10411 pragma Inline
(Abort_Present
);
10412 pragma Inline
(Abortable_Part
);
10413 pragma Inline
(Abstract_Present
);
10414 pragma Inline
(Accept_Handler_Records
);
10415 pragma Inline
(Accept_Statement
);
10416 pragma Inline
(Access_Definition
);
10417 pragma Inline
(Access_To_Subprogram_Definition
);
10418 pragma Inline
(Access_Types_To_Process
);
10419 pragma Inline
(Actions
);
10420 pragma Inline
(Activation_Chain_Entity
);
10421 pragma Inline
(Acts_As_Spec
);
10422 pragma Inline
(Actual_Designated_Subtype
);
10423 pragma Inline
(Aggregate_Bounds
);
10424 pragma Inline
(Aliased_Present
);
10425 pragma Inline
(All_Others
);
10426 pragma Inline
(All_Present
);
10427 pragma Inline
(Alternatives
);
10428 pragma Inline
(Ancestor_Part
);
10429 pragma Inline
(Array_Aggregate
);
10430 pragma Inline
(Assignment_OK
);
10431 pragma Inline
(Associated_Node
);
10432 pragma Inline
(At_End_Proc
);
10433 pragma Inline
(Attribute_Name
);
10434 pragma Inline
(Aux_Decls_Node
);
10435 pragma Inline
(Backwards_OK
);
10436 pragma Inline
(Bad_Is_Detected
);
10437 pragma Inline
(Body_To_Inline
);
10438 pragma Inline
(Body_Required
);
10439 pragma Inline
(By_Ref
);
10440 pragma Inline
(Box_Present
);
10441 pragma Inline
(Char_Literal_Value
);
10442 pragma Inline
(Chars
);
10443 pragma Inline
(Check_Address_Alignment
);
10444 pragma Inline
(Choice_Parameter
);
10445 pragma Inline
(Choices
);
10446 pragma Inline
(Comes_From_Extended_Return_Statement
);
10447 pragma Inline
(Compile_Time_Known_Aggregate
);
10448 pragma Inline
(Component_Associations
);
10449 pragma Inline
(Component_Clauses
);
10450 pragma Inline
(Component_Definition
);
10451 pragma Inline
(Component_Items
);
10452 pragma Inline
(Component_List
);
10453 pragma Inline
(Component_Name
);
10454 pragma Inline
(Condition
);
10455 pragma Inline
(Condition_Actions
);
10456 pragma Inline
(Config_Pragmas
);
10457 pragma Inline
(Constant_Present
);
10458 pragma Inline
(Constraint
);
10459 pragma Inline
(Constraints
);
10460 pragma Inline
(Context_Installed
);
10461 pragma Inline
(Context_Items
);
10462 pragma Inline
(Controlling_Argument
);
10463 pragma Inline
(Conversion_OK
);
10464 pragma Inline
(Corresponding_Body
);
10465 pragma Inline
(Corresponding_Formal_Spec
);
10466 pragma Inline
(Corresponding_Generic_Association
);
10467 pragma Inline
(Corresponding_Integer_Value
);
10468 pragma Inline
(Corresponding_Spec
);
10469 pragma Inline
(Corresponding_Stub
);
10470 pragma Inline
(Dcheck_Function
);
10471 pragma Inline
(Debug_Statement
);
10472 pragma Inline
(Declarations
);
10473 pragma Inline
(Default_Expression
);
10474 pragma Inline
(Default_Name
);
10475 pragma Inline
(Defining_Identifier
);
10476 pragma Inline
(Defining_Unit_Name
);
10477 pragma Inline
(Delay_Alternative
);
10478 pragma Inline
(Delay_Finalize_Attach
);
10479 pragma Inline
(Delay_Statement
);
10480 pragma Inline
(Delta_Expression
);
10481 pragma Inline
(Digits_Expression
);
10482 pragma Inline
(Discr_Check_Funcs_Built
);
10483 pragma Inline
(Discrete_Choices
);
10484 pragma Inline
(Discrete_Range
);
10485 pragma Inline
(Discrete_Subtype_Definition
);
10486 pragma Inline
(Discrete_Subtype_Definitions
);
10487 pragma Inline
(Discriminant_Specifications
);
10488 pragma Inline
(Discriminant_Type
);
10489 pragma Inline
(Do_Accessibility_Check
);
10490 pragma Inline
(Do_Discriminant_Check
);
10491 pragma Inline
(Do_Length_Check
);
10492 pragma Inline
(Do_Division_Check
);
10493 pragma Inline
(Do_Overflow_Check
);
10494 pragma Inline
(Do_Range_Check
);
10495 pragma Inline
(Do_Storage_Check
);
10496 pragma Inline
(Do_Tag_Check
);
10497 pragma Inline
(Elaborate_Present
);
10498 pragma Inline
(Elaborate_All_Desirable
);
10499 pragma Inline
(Elaborate_All_Present
);
10500 pragma Inline
(Elaborate_Desirable
);
10501 pragma Inline
(Elaboration_Boolean
);
10502 pragma Inline
(Else_Actions
);
10503 pragma Inline
(Else_Statements
);
10504 pragma Inline
(Elsif_Parts
);
10505 pragma Inline
(Enclosing_Variant
);
10506 pragma Inline
(End_Label
);
10507 pragma Inline
(End_Span
);
10508 pragma Inline
(Entity
);
10509 pragma Inline
(Entity_Or_Associated_Node
);
10510 pragma Inline
(Entry_Body_Formal_Part
);
10511 pragma Inline
(Entry_Call_Alternative
);
10512 pragma Inline
(Entry_Call_Statement
);
10513 pragma Inline
(Entry_Direct_Name
);
10514 pragma Inline
(Entry_Index
);
10515 pragma Inline
(Entry_Index_Specification
);
10516 pragma Inline
(Etype
);
10517 pragma Inline
(Exception_Choices
);
10518 pragma Inline
(Exception_Junk
);
10519 pragma Inline
(Exception_Handlers
);
10520 pragma Inline
(Expansion_Delayed
);
10521 pragma Inline
(Explicit_Actual_Parameter
);
10522 pragma Inline
(Explicit_Generic_Actual_Parameter
);
10523 pragma Inline
(Expression
);
10524 pragma Inline
(Expressions
);
10525 pragma Inline
(First_Bit
);
10526 pragma Inline
(First_Inlined_Subprogram
);
10527 pragma Inline
(First_Name
);
10528 pragma Inline
(First_Named_Actual
);
10529 pragma Inline
(First_Real_Statement
);
10530 pragma Inline
(First_Subtype_Link
);
10531 pragma Inline
(Float_Truncate
);
10532 pragma Inline
(Formal_Type_Definition
);
10533 pragma Inline
(Forwards_OK
);
10534 pragma Inline
(From_At_Mod
);
10535 pragma Inline
(From_Default
);
10536 pragma Inline
(Generic_Associations
);
10537 pragma Inline
(Generic_Formal_Declarations
);
10538 pragma Inline
(Generic_Parent
);
10539 pragma Inline
(Generic_Parent_Type
);
10540 pragma Inline
(Handled_Statement_Sequence
);
10541 pragma Inline
(Handler_List_Entry
);
10542 pragma Inline
(Has_Created_Identifier
);
10543 pragma Inline
(Has_Dynamic_Length_Check
);
10544 pragma Inline
(Has_Dynamic_Range_Check
);
10545 pragma Inline
(Has_No_Elaboration_Code
);
10546 pragma Inline
(Has_Priority_Pragma
);
10547 pragma Inline
(Has_Private_View
);
10548 pragma Inline
(Has_Storage_Size_Pragma
);
10549 pragma Inline
(Has_Task_Info_Pragma
);
10550 pragma Inline
(Has_Task_Name_Pragma
);
10551 pragma Inline
(Has_Wide_Character
);
10552 pragma Inline
(Hidden_By_Use_Clause
);
10553 pragma Inline
(High_Bound
);
10554 pragma Inline
(Identifier
);
10555 pragma Inline
(Implicit_With
);
10556 pragma Inline
(Interface_List
);
10557 pragma Inline
(Interface_Present
);
10558 pragma Inline
(Includes_Infinities
);
10559 pragma Inline
(In_Present
);
10560 pragma Inline
(Instance_Spec
);
10561 pragma Inline
(Intval
);
10562 pragma Inline
(Is_Asynchronous_Call_Block
);
10563 pragma Inline
(Is_Component_Left_Opnd
);
10564 pragma Inline
(Is_Component_Right_Opnd
);
10565 pragma Inline
(Is_Controlling_Actual
);
10566 pragma Inline
(Is_Entry_Barrier_Function
);
10567 pragma Inline
(Is_In_Discriminant_Check
);
10568 pragma Inline
(Is_Machine_Number
);
10569 pragma Inline
(Is_Null_Loop
);
10570 pragma Inline
(Is_Overloaded
);
10571 pragma Inline
(Is_Power_Of_2_For_Shift
);
10572 pragma Inline
(Is_Protected_Subprogram_Body
);
10573 pragma Inline
(Has_Self_Reference
);
10574 pragma Inline
(Is_Static_Expression
);
10575 pragma Inline
(Is_Subprogram_Descriptor
);
10576 pragma Inline
(Is_Task_Allocation_Block
);
10577 pragma Inline
(Is_Task_Master
);
10578 pragma Inline
(Iteration_Scheme
);
10579 pragma Inline
(Itype
);
10580 pragma Inline
(Kill_Range_Check
);
10581 pragma Inline
(Last_Bit
);
10582 pragma Inline
(Last_Name
);
10583 pragma Inline
(Library_Unit
);
10584 pragma Inline
(Label_Construct
);
10585 pragma Inline
(Left_Opnd
);
10586 pragma Inline
(Limited_View_Installed
);
10587 pragma Inline
(Limited_Present
);
10588 pragma Inline
(Literals
);
10589 pragma Inline
(Loop_Actions
);
10590 pragma Inline
(Loop_Parameter_Specification
);
10591 pragma Inline
(Low_Bound
);
10592 pragma Inline
(Mod_Clause
);
10593 pragma Inline
(More_Ids
);
10594 pragma Inline
(Must_Be_Byte_Aligned
);
10595 pragma Inline
(Must_Not_Freeze
);
10596 pragma Inline
(Must_Not_Override
);
10597 pragma Inline
(Must_Override
);
10598 pragma Inline
(Name
);
10599 pragma Inline
(Names
);
10600 pragma Inline
(Next_Entity
);
10601 pragma Inline
(Next_Named_Actual
);
10602 pragma Inline
(Next_Rep_Item
);
10603 pragma Inline
(Next_Use_Clause
);
10604 pragma Inline
(No_Ctrl_Actions
);
10605 pragma Inline
(No_Elaboration_Check
);
10606 pragma Inline
(No_Entities_Ref_In_Spec
);
10607 pragma Inline
(No_Initialization
);
10608 pragma Inline
(No_Truncation
);
10609 pragma Inline
(Null_Present
);
10610 pragma Inline
(Null_Exclusion_Present
);
10611 pragma Inline
(Null_Record_Present
);
10612 pragma Inline
(Object_Definition
);
10613 pragma Inline
(Original_Discriminant
);
10614 pragma Inline
(Original_Entity
);
10615 pragma Inline
(Others_Discrete_Choices
);
10616 pragma Inline
(Out_Present
);
10617 pragma Inline
(Parameter_Associations
);
10618 pragma Inline
(Parameter_Specifications
);
10619 pragma Inline
(Parameter_List_Truncated
);
10620 pragma Inline
(Parameter_Type
);
10621 pragma Inline
(Parent_Spec
);
10622 pragma Inline
(Position
);
10623 pragma Inline
(Pragma_Argument_Associations
);
10624 pragma Inline
(Pragmas_After
);
10625 pragma Inline
(Pragmas_Before
);
10626 pragma Inline
(Prefix
);
10627 pragma Inline
(Present_Expr
);
10628 pragma Inline
(Prev_Ids
);
10629 pragma Inline
(Print_In_Hex
);
10630 pragma Inline
(Private_Declarations
);
10631 pragma Inline
(Private_Present
);
10632 pragma Inline
(Procedure_To_Call
);
10633 pragma Inline
(Proper_Body
);
10634 pragma Inline
(Protected_Definition
);
10635 pragma Inline
(Protected_Present
);
10636 pragma Inline
(Raises_Constraint_Error
);
10637 pragma Inline
(Range_Constraint
);
10638 pragma Inline
(Range_Expression
);
10639 pragma Inline
(Real_Range_Specification
);
10640 pragma Inline
(Realval
);
10641 pragma Inline
(Reason
);
10642 pragma Inline
(Record_Extension_Part
);
10643 pragma Inline
(Redundant_Use
);
10644 pragma Inline
(Result_Definition
);
10645 pragma Inline
(Return_Object_Declarations
);
10646 pragma Inline
(Return_Statement_Entity
);
10647 pragma Inline
(Reverse_Present
);
10648 pragma Inline
(Right_Opnd
);
10649 pragma Inline
(Rounded_Result
);
10650 pragma Inline
(Scope
);
10651 pragma Inline
(Select_Alternatives
);
10652 pragma Inline
(Selector_Name
);
10653 pragma Inline
(Selector_Names
);
10654 pragma Inline
(Shift_Count_OK
);
10655 pragma Inline
(Source_Type
);
10656 pragma Inline
(Specification
);
10657 pragma Inline
(Statements
);
10658 pragma Inline
(Static_Processing_OK
);
10659 pragma Inline
(Storage_Pool
);
10660 pragma Inline
(Strval
);
10661 pragma Inline
(Subtype_Indication
);
10662 pragma Inline
(Subtype_Mark
);
10663 pragma Inline
(Subtype_Marks
);
10664 pragma Inline
(Synchronized_Present
);
10665 pragma Inline
(Tagged_Present
);
10666 pragma Inline
(Target_Type
);
10667 pragma Inline
(Task_Definition
);
10668 pragma Inline
(Task_Present
);
10669 pragma Inline
(Then_Actions
);
10670 pragma Inline
(Then_Statements
);
10671 pragma Inline
(Triggering_Alternative
);
10672 pragma Inline
(Triggering_Statement
);
10673 pragma Inline
(Treat_Fixed_As_Integer
);
10674 pragma Inline
(TSS_Elist
);
10675 pragma Inline
(Type_Definition
);
10676 pragma Inline
(Unit
);
10677 pragma Inline
(Unknown_Discriminants_Present
);
10678 pragma Inline
(Unreferenced_In_Spec
);
10679 pragma Inline
(Variant_Part
);
10680 pragma Inline
(Variants
);
10681 pragma Inline
(Visible_Declarations
);
10682 pragma Inline
(Was_Originally_Stub
);
10683 pragma Inline
(Zero_Cost_Handling
);
10685 pragma Inline
(Set_ABE_Is_Certain
);
10686 pragma Inline
(Set_Abort_Present
);
10687 pragma Inline
(Set_Abortable_Part
);
10688 pragma Inline
(Set_Abstract_Present
);
10689 pragma Inline
(Set_Accept_Handler_Records
);
10690 pragma Inline
(Set_Accept_Statement
);
10691 pragma Inline
(Set_Access_Definition
);
10692 pragma Inline
(Set_Access_To_Subprogram_Definition
);
10693 pragma Inline
(Set_Access_Types_To_Process
);
10694 pragma Inline
(Set_Actions
);
10695 pragma Inline
(Set_Activation_Chain_Entity
);
10696 pragma Inline
(Set_Acts_As_Spec
);
10697 pragma Inline
(Set_Actual_Designated_Subtype
);
10698 pragma Inline
(Set_Aggregate_Bounds
);
10699 pragma Inline
(Set_Aliased_Present
);
10700 pragma Inline
(Set_All_Others
);
10701 pragma Inline
(Set_All_Present
);
10702 pragma Inline
(Set_Alternatives
);
10703 pragma Inline
(Set_Ancestor_Part
);
10704 pragma Inline
(Set_Array_Aggregate
);
10705 pragma Inline
(Set_Assignment_OK
);
10706 pragma Inline
(Set_Associated_Node
);
10707 pragma Inline
(Set_At_End_Proc
);
10708 pragma Inline
(Set_Attribute_Name
);
10709 pragma Inline
(Set_Aux_Decls_Node
);
10710 pragma Inline
(Set_Backwards_OK
);
10711 pragma Inline
(Set_Bad_Is_Detected
);
10712 pragma Inline
(Set_Body_To_Inline
);
10713 pragma Inline
(Set_Body_Required
);
10714 pragma Inline
(Set_By_Ref
);
10715 pragma Inline
(Set_Box_Present
);
10716 pragma Inline
(Set_Char_Literal_Value
);
10717 pragma Inline
(Set_Chars
);
10718 pragma Inline
(Set_Check_Address_Alignment
);
10719 pragma Inline
(Set_Choice_Parameter
);
10720 pragma Inline
(Set_Choices
);
10721 pragma Inline
(Set_Comes_From_Extended_Return_Statement
);
10722 pragma Inline
(Set_Compile_Time_Known_Aggregate
);
10723 pragma Inline
(Set_Component_Associations
);
10724 pragma Inline
(Set_Component_Clauses
);
10725 pragma Inline
(Set_Component_Definition
);
10726 pragma Inline
(Set_Component_Items
);
10727 pragma Inline
(Set_Component_List
);
10728 pragma Inline
(Set_Component_Name
);
10729 pragma Inline
(Set_Condition
);
10730 pragma Inline
(Set_Condition_Actions
);
10731 pragma Inline
(Set_Config_Pragmas
);
10732 pragma Inline
(Set_Constant_Present
);
10733 pragma Inline
(Set_Constraint
);
10734 pragma Inline
(Set_Constraints
);
10735 pragma Inline
(Set_Context_Installed
);
10736 pragma Inline
(Set_Context_Items
);
10737 pragma Inline
(Set_Controlling_Argument
);
10738 pragma Inline
(Set_Conversion_OK
);
10739 pragma Inline
(Set_Corresponding_Body
);
10740 pragma Inline
(Set_Corresponding_Formal_Spec
);
10741 pragma Inline
(Set_Corresponding_Generic_Association
);
10742 pragma Inline
(Set_Corresponding_Integer_Value
);
10743 pragma Inline
(Set_Corresponding_Spec
);
10744 pragma Inline
(Set_Corresponding_Stub
);
10745 pragma Inline
(Set_Dcheck_Function
);
10746 pragma Inline
(Set_Debug_Statement
);
10747 pragma Inline
(Set_Declarations
);
10748 pragma Inline
(Set_Default_Expression
);
10749 pragma Inline
(Set_Default_Name
);
10750 pragma Inline
(Set_Defining_Identifier
);
10751 pragma Inline
(Set_Defining_Unit_Name
);
10752 pragma Inline
(Set_Delay_Alternative
);
10753 pragma Inline
(Set_Delay_Finalize_Attach
);
10754 pragma Inline
(Set_Delay_Statement
);
10755 pragma Inline
(Set_Delta_Expression
);
10756 pragma Inline
(Set_Digits_Expression
);
10757 pragma Inline
(Set_Discr_Check_Funcs_Built
);
10758 pragma Inline
(Set_Discrete_Choices
);
10759 pragma Inline
(Set_Discrete_Range
);
10760 pragma Inline
(Set_Discrete_Subtype_Definition
);
10761 pragma Inline
(Set_Discrete_Subtype_Definitions
);
10762 pragma Inline
(Set_Discriminant_Specifications
);
10763 pragma Inline
(Set_Discriminant_Type
);
10764 pragma Inline
(Set_Do_Accessibility_Check
);
10765 pragma Inline
(Set_Do_Discriminant_Check
);
10766 pragma Inline
(Set_Do_Length_Check
);
10767 pragma Inline
(Set_Do_Division_Check
);
10768 pragma Inline
(Set_Do_Overflow_Check
);
10769 pragma Inline
(Set_Do_Range_Check
);
10770 pragma Inline
(Set_Do_Storage_Check
);
10771 pragma Inline
(Set_Do_Tag_Check
);
10772 pragma Inline
(Set_Elaborate_Present
);
10773 pragma Inline
(Set_Elaborate_All_Desirable
);
10774 pragma Inline
(Set_Elaborate_All_Present
);
10775 pragma Inline
(Set_Elaborate_Desirable
);
10776 pragma Inline
(Set_Elaboration_Boolean
);
10777 pragma Inline
(Set_Else_Actions
);
10778 pragma Inline
(Set_Else_Statements
);
10779 pragma Inline
(Set_Elsif_Parts
);
10780 pragma Inline
(Set_Enclosing_Variant
);
10781 pragma Inline
(Set_End_Label
);
10782 pragma Inline
(Set_End_Span
);
10783 pragma Inline
(Set_Entity
);
10784 pragma Inline
(Set_Entry_Body_Formal_Part
);
10785 pragma Inline
(Set_Entry_Call_Alternative
);
10786 pragma Inline
(Set_Entry_Call_Statement
);
10787 pragma Inline
(Set_Entry_Direct_Name
);
10788 pragma Inline
(Set_Entry_Index
);
10789 pragma Inline
(Set_Entry_Index_Specification
);
10790 pragma Inline
(Set_Etype
);
10791 pragma Inline
(Set_Exception_Choices
);
10792 pragma Inline
(Set_Exception_Junk
);
10793 pragma Inline
(Set_Exception_Handlers
);
10794 pragma Inline
(Set_Expansion_Delayed
);
10795 pragma Inline
(Set_Explicit_Actual_Parameter
);
10796 pragma Inline
(Set_Explicit_Generic_Actual_Parameter
);
10797 pragma Inline
(Set_Expression
);
10798 pragma Inline
(Set_Expressions
);
10799 pragma Inline
(Set_First_Bit
);
10800 pragma Inline
(Set_First_Inlined_Subprogram
);
10801 pragma Inline
(Set_First_Name
);
10802 pragma Inline
(Set_First_Named_Actual
);
10803 pragma Inline
(Set_First_Real_Statement
);
10804 pragma Inline
(Set_First_Subtype_Link
);
10805 pragma Inline
(Set_Float_Truncate
);
10806 pragma Inline
(Set_Formal_Type_Definition
);
10807 pragma Inline
(Set_Forwards_OK
);
10808 pragma Inline
(Set_From_At_Mod
);
10809 pragma Inline
(Set_From_Default
);
10810 pragma Inline
(Set_Generic_Associations
);
10811 pragma Inline
(Set_Generic_Formal_Declarations
);
10812 pragma Inline
(Set_Generic_Parent
);
10813 pragma Inline
(Set_Generic_Parent_Type
);
10814 pragma Inline
(Set_Handled_Statement_Sequence
);
10815 pragma Inline
(Set_Handler_List_Entry
);
10816 pragma Inline
(Set_Has_Created_Identifier
);
10817 pragma Inline
(Set_Has_Dynamic_Length_Check
);
10818 pragma Inline
(Set_Has_Dynamic_Range_Check
);
10819 pragma Inline
(Set_Has_No_Elaboration_Code
);
10820 pragma Inline
(Set_Has_Priority_Pragma
);
10821 pragma Inline
(Set_Has_Private_View
);
10822 pragma Inline
(Set_Has_Storage_Size_Pragma
);
10823 pragma Inline
(Set_Has_Task_Info_Pragma
);
10824 pragma Inline
(Set_Has_Task_Name_Pragma
);
10825 pragma Inline
(Set_Has_Wide_Character
);
10826 pragma Inline
(Set_Hidden_By_Use_Clause
);
10827 pragma Inline
(Set_High_Bound
);
10828 pragma Inline
(Set_Identifier
);
10829 pragma Inline
(Set_Implicit_With
);
10830 pragma Inline
(Set_Includes_Infinities
);
10831 pragma Inline
(Set_Interface_List
);
10832 pragma Inline
(Set_Interface_Present
);
10833 pragma Inline
(Set_In_Present
);
10834 pragma Inline
(Set_Instance_Spec
);
10835 pragma Inline
(Set_Intval
);
10836 pragma Inline
(Set_Is_Asynchronous_Call_Block
);
10837 pragma Inline
(Set_Is_Component_Left_Opnd
);
10838 pragma Inline
(Set_Is_Component_Right_Opnd
);
10839 pragma Inline
(Set_Is_Controlling_Actual
);
10840 pragma Inline
(Set_Is_Entry_Barrier_Function
);
10841 pragma Inline
(Set_Is_In_Discriminant_Check
);
10842 pragma Inline
(Set_Is_Machine_Number
);
10843 pragma Inline
(Set_Is_Null_Loop
);
10844 pragma Inline
(Set_Is_Overloaded
);
10845 pragma Inline
(Set_Is_Power_Of_2_For_Shift
);
10846 pragma Inline
(Set_Is_Protected_Subprogram_Body
);
10847 pragma Inline
(Set_Has_Self_Reference
);
10848 pragma Inline
(Set_Is_Static_Expression
);
10849 pragma Inline
(Set_Is_Subprogram_Descriptor
);
10850 pragma Inline
(Set_Is_Task_Allocation_Block
);
10851 pragma Inline
(Set_Is_Task_Master
);
10852 pragma Inline
(Set_Iteration_Scheme
);
10853 pragma Inline
(Set_Itype
);
10854 pragma Inline
(Set_Kill_Range_Check
);
10855 pragma Inline
(Set_Last_Bit
);
10856 pragma Inline
(Set_Last_Name
);
10857 pragma Inline
(Set_Library_Unit
);
10858 pragma Inline
(Set_Label_Construct
);
10859 pragma Inline
(Set_Left_Opnd
);
10860 pragma Inline
(Set_Limited_View_Installed
);
10861 pragma Inline
(Set_Limited_Present
);
10862 pragma Inline
(Set_Literals
);
10863 pragma Inline
(Set_Loop_Actions
);
10864 pragma Inline
(Set_Loop_Parameter_Specification
);
10865 pragma Inline
(Set_Low_Bound
);
10866 pragma Inline
(Set_Mod_Clause
);
10867 pragma Inline
(Set_More_Ids
);
10868 pragma Inline
(Set_Must_Be_Byte_Aligned
);
10869 pragma Inline
(Set_Must_Not_Freeze
);
10870 pragma Inline
(Set_Must_Not_Override
);
10871 pragma Inline
(Set_Must_Override
);
10872 pragma Inline
(Set_Name
);
10873 pragma Inline
(Set_Names
);
10874 pragma Inline
(Set_Next_Entity
);
10875 pragma Inline
(Set_Next_Named_Actual
);
10876 pragma Inline
(Set_Next_Use_Clause
);
10877 pragma Inline
(Set_No_Ctrl_Actions
);
10878 pragma Inline
(Set_No_Elaboration_Check
);
10879 pragma Inline
(Set_No_Entities_Ref_In_Spec
);
10880 pragma Inline
(Set_No_Initialization
);
10881 pragma Inline
(Set_No_Truncation
);
10882 pragma Inline
(Set_Null_Present
);
10883 pragma Inline
(Set_Null_Exclusion_Present
);
10884 pragma Inline
(Set_Null_Record_Present
);
10885 pragma Inline
(Set_Object_Definition
);
10886 pragma Inline
(Set_Original_Discriminant
);
10887 pragma Inline
(Set_Original_Entity
);
10888 pragma Inline
(Set_Others_Discrete_Choices
);
10889 pragma Inline
(Set_Out_Present
);
10890 pragma Inline
(Set_Parameter_Associations
);
10891 pragma Inline
(Set_Parameter_Specifications
);
10892 pragma Inline
(Set_Parameter_List_Truncated
);
10893 pragma Inline
(Set_Parameter_Type
);
10894 pragma Inline
(Set_Parent_Spec
);
10895 pragma Inline
(Set_Position
);
10896 pragma Inline
(Set_Pragma_Argument_Associations
);
10897 pragma Inline
(Set_Pragmas_After
);
10898 pragma Inline
(Set_Pragmas_Before
);
10899 pragma Inline
(Set_Prefix
);
10900 pragma Inline
(Set_Present_Expr
);
10901 pragma Inline
(Set_Prev_Ids
);
10902 pragma Inline
(Set_Print_In_Hex
);
10903 pragma Inline
(Set_Private_Declarations
);
10904 pragma Inline
(Set_Private_Present
);
10905 pragma Inline
(Set_Procedure_To_Call
);
10906 pragma Inline
(Set_Proper_Body
);
10907 pragma Inline
(Set_Protected_Definition
);
10908 pragma Inline
(Set_Protected_Present
);
10909 pragma Inline
(Set_Raises_Constraint_Error
);
10910 pragma Inline
(Set_Range_Constraint
);
10911 pragma Inline
(Set_Range_Expression
);
10912 pragma Inline
(Set_Real_Range_Specification
);
10913 pragma Inline
(Set_Realval
);
10914 pragma Inline
(Set_Reason
);
10915 pragma Inline
(Set_Record_Extension_Part
);
10916 pragma Inline
(Set_Redundant_Use
);
10917 pragma Inline
(Set_Result_Definition
);
10918 pragma Inline
(Set_Return_Object_Declarations
);
10919 pragma Inline
(Set_Reverse_Present
);
10920 pragma Inline
(Set_Right_Opnd
);
10921 pragma Inline
(Set_Rounded_Result
);
10922 pragma Inline
(Set_Scope
);
10923 pragma Inline
(Set_Select_Alternatives
);
10924 pragma Inline
(Set_Selector_Name
);
10925 pragma Inline
(Set_Selector_Names
);
10926 pragma Inline
(Set_Shift_Count_OK
);
10927 pragma Inline
(Set_Source_Type
);
10928 pragma Inline
(Set_Specification
);
10929 pragma Inline
(Set_Statements
);
10930 pragma Inline
(Set_Static_Processing_OK
);
10931 pragma Inline
(Set_Storage_Pool
);
10932 pragma Inline
(Set_Strval
);
10933 pragma Inline
(Set_Subtype_Indication
);
10934 pragma Inline
(Set_Subtype_Mark
);
10935 pragma Inline
(Set_Subtype_Marks
);
10936 pragma Inline
(Set_Synchronized_Present
);
10937 pragma Inline
(Set_Tagged_Present
);
10938 pragma Inline
(Set_Target_Type
);
10939 pragma Inline
(Set_Task_Definition
);
10940 pragma Inline
(Set_Task_Present
);
10941 pragma Inline
(Set_Then_Actions
);
10942 pragma Inline
(Set_Then_Statements
);
10943 pragma Inline
(Set_Triggering_Alternative
);
10944 pragma Inline
(Set_Triggering_Statement
);
10945 pragma Inline
(Set_Treat_Fixed_As_Integer
);
10946 pragma Inline
(Set_TSS_Elist
);
10947 pragma Inline
(Set_Type_Definition
);
10948 pragma Inline
(Set_Unit
);
10949 pragma Inline
(Set_Unknown_Discriminants_Present
);
10950 pragma Inline
(Set_Unreferenced_In_Spec
);
10951 pragma Inline
(Set_Variant_Part
);
10952 pragma Inline
(Set_Variants
);
10953 pragma Inline
(Set_Visible_Declarations
);
10954 pragma Inline
(Set_Was_Originally_Stub
);
10955 pragma Inline
(Set_Zero_Cost_Handling
);