[multiple changes]
[gcc.git] / gcc / ada / sinfo.ads
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S I N F O --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2007, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 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. --
21 -- --
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. --
28 -- --
29 -- GNAT was originally developed by the GNAT team at New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc. --
31 -- --
32 ------------------------------------------------------------------------------
33
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.
37
38 -- The grammar in the RM is followed very closely in the tree
39 -- design, and is repeated as part of this source file.
40
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.
47
48 -- WARNING: Several files are automatically generated from this package.
49 -- See below for details.
50
51 with Namet; use Namet;
52 with Types; use Types;
53 with Uintp; use Uintp;
54 with Urealp; use Urealp;
55
56 package Sinfo is
57
58 ---------------------------------
59 -- Making Changes to This File --
60 ---------------------------------
61
62 -- If changes are made to this file, a number of related steps must be
63 -- carried out to ensure consistency. First, if a field access function is
64 -- added, it appears in seven places:
65
66 -- The documentation associated with the node
67 -- The spec of the access function in sinfo.ads
68 -- The body of the access function in sinfo.adb
69 -- The pragma Inline at the end of sinfo.ads for the access function
70 -- The spec of the set procedure in sinfo.ads
71 -- The body of the set procedure in sinfo.adb
72 -- The pragma Inline at the end of sinfo.ads for the set procedure
73
74 -- The field chosen must be consistent in all places, and, for a node that
75 -- is a subexpression, must not overlap any of the standard expression
76 -- fields.
77
78 -- In addition, if any of the standard expression fields is changed, then
79 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
80 -- must be updated appropriately, since it special cases expression fields.
81
82 -- If a new tree node is added, then the following changes are made
83
84 -- Add it to the documentation in the appropriate place
85 -- Add its fields to this documentation section
86 -- Define it in the appropriate classification in Node_Kind
87 -- In the body (sinfo), add entries to the access functions for all
88 -- its fields (except standard expression fields) to include the new
89 -- node in the checks.
90 -- Add an appropriate section to the case statement in sprint.adb
91 -- Add an appropriate section to the case statement in sem.adb
92 -- Add an appropriate section to the case statement in exp_util.adb
93 -- (Insert_Actions procedure)
94 -- For a subexpression, add an appropriate section to the case
95 -- statement in sem_eval.adb
96 -- For a subexpression, add an appropriate section to the case
97 -- statement in sem_res.adb
98
99 -- Finally, four utility programs must be run:
100
101 -- Run CSinfo to check that you have made the changes consistently. It
102 -- checks most of the rules given above, with clear error messages. This
103 -- utility reads sinfo.ads and sinfo.adb and generates a report to
104 -- standard output.
105
106 -- Run XSinfo to create sinfo.h, the corresponding C header. This
107 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
108 -- not need to read sinfo.adb, since the contents of the body are
109 -- algorithmically determinable from the spec.
110
111 -- Run XTreeprs to create treeprs.ads, an updated version of the module
112 -- that is used to drive the tree print routine. This utility reads (but
113 -- does not modify) treeprs.adt, the template that provides the basic
114 -- structure of the file, and then fills in the data from the comments
115 -- in sinfo.ads.
116
117 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
118 -- spec of the Nmake package which contains functions for constructing
119 -- nodes.
120
121 -- All of the above steps except CSinfo are done automatically by the
122 -- build scripts when you do a full bootstrap.
123
124 -- Note: sometime we could write a utility that actually generated the body
125 -- of sinfo from the spec instead of simply checking it, since, as noted
126 -- above, the contents of the body can be determined from the spec.
127
128 --------------------------------
129 -- Implicit Nodes in the Tree --
130 --------------------------------
131
132 -- Generally the structure of the tree very closely follows the grammar as
133 -- defined in the RM. However, certain nodes are omitted to save space and
134 -- simplify semantic processing. Two general classes of such omitted nodes
135 -- are as follows:
136
137 -- If the only possibilities for a non-terminal are one or more other
138 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
139 -- corresponding node is omitted from the tree, and the target construct
140 -- appears directly. For example, a real type definition is either
141 -- floating point definition or a fixed point definition. No explicit node
142 -- appears for real type definition. Instead either the floating point
143 -- definition or fixed point definition appears directly.
144
145 -- If a non-terminal corresponds to a list of some other non-terminal
146 -- (possibly with separating punctuation), then usually it is omitted from
147 -- the tree, and a list of components appears instead. For example,
148 -- sequence of statements does not appear explicitly in the tree. Instead
149 -- a list of statements appears directly.
150
151 -- Some additional cases of omitted nodes occur and are documented
152 -- individually. In particular, many nodes are omitted in the tree
153 -- generated for an expression.
154
155 -------------------------------------------
156 -- Handling of Defining Identifier Lists --
157 -------------------------------------------
158
159 -- In several declarative forms in the syntax, lists of defining
160 -- identifiers appear (object declarations, component declarations, number
161 -- declarations etc.)
162
163 -- The semantics of such statements are equivalent to a series of identical
164 -- declarations of single defining identifiers (except that conformance
165 -- checks require the same grouping of identifiers in the parameter case).
166
167 -- To simplify semantic processing, the parser breaks down such multiple
168 -- declaration cases into sequences of single declarations, duplicating
169 -- type and initialization information as required. The flags More_Ids and
170 -- Prev_Ids are used to record the original form of the source in the case
171 -- where the original source used a list of names, More_Ids being set on
172 -- all but the last name and Prev_Ids being set on all but the first name.
173 -- These flags are used to reconstruct the original source (e.g. in the
174 -- Sprint package), and also are included in the conformance checks, but
175 -- otherwise have no semantic significance.
176
177 -- Note: the reason that we use More_Ids and Prev_Ids rather than
178 -- First_Name and Last_Name flags is so that the flags are off in the
179 -- normal one identifier case, which minimizes tree print output.
180
181 -----------------------
182 -- Use of Node Lists --
183 -----------------------
184
185 -- With a few exceptions, if a construction of the form {non-terminal}
186 -- appears in the tree, lists are used in the corresponding tree node (see
187 -- package Nlists for handling of node lists). In this case a field of the
188 -- parent node points to a list of nodes for the non-terminal. The field
189 -- name for such fields has a plural name which always ends in "s". For
190 -- example, a case statement has a field Alternatives pointing to list of
191 -- case statement alternative nodes.
192
193 -- Only fields pointing to lists have names ending in "s", so generally the
194 -- structure is strongly typed, fields not ending in s point to single
195 -- nodes, and fields ending in s point to lists.
196
197 -- The following example shows how a traversal of a list is written. We
198 -- suppose here that Stmt points to a N_Case_Statement node which has a
199 -- list field called Alternatives:
200
201 -- Alt := First (Alternatives (Stmt));
202 -- while Present (Alt) loop
203 -- ..
204 -- -- processing for case statement alternative Alt
205 -- ..
206 -- Alt := Next (Alt);
207 -- end loop;
208
209 -- The Present function tests for Empty, which in this case signals the end
210 -- of the list. First returns Empty immediately if the list is empty.
211 -- Present is defined in Atree, First and Next are defined in Nlists.
212
213 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
214 -- contexts, which is handled as described in the previous section, and
215 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
216 -- using the First_Name and Last_Name flags, as further detailed in the
217 -- description of the N_With_Clause node.
218
219 -------------
220 -- Pragmas --
221 -------------
222
223 -- Pragmas can appear in many different context, but are not included in
224 -- the grammar. Still they must appear in the tree, so they can be properly
225 -- processed.
226
227 -- Two approaches are used. In some cases, an extra field is defined in an
228 -- appropriate node that contains a list of pragmas appearing in the
229 -- expected context. For example pragmas can appear before an
230 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
231 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
232
233 -- The other approach is to simply allow pragmas to appear in syntactic
234 -- lists where the grammar (of course) does not include the possibility.
235 -- For example, the Variants field of an N_Variant_Part node points to a
236 -- list that can contain both N_Pragma and N_Variant nodes.
237
238 -- To make processing easier in the latter case, the Nlists package
239 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
240 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
241 -- ignoring all pragmas.
242
243 -- In the case of the variants list, we can either write:
244
245 -- Variant := First (Variants (N));
246 -- while Present (Variant) loop
247 -- ...
248 -- Variant := Next (Variant);
249 -- end loop;
250
251 -- or
252
253 -- Variant := First_Non_Pragma (Variants (N));
254 -- while Present (Variant) loop
255 -- ...
256 -- Variant := Next_Non_Pragma (Variant);
257 -- end loop;
258
259 -- In the first form of the loop, Variant can either be an N_Pragma or an
260 -- N_Variant node. In the second form, Variant can only be N_Variant since
261 -- all pragmas are skipped.
262
263 ---------------------
264 -- Optional Fields --
265 ---------------------
266
267 -- Fields which correspond to a section of the syntax enclosed in square
268 -- brackets are generally omitted (and the corresponding field set to Empty
269 -- for a node, or No_List for a list). The documentation of such fields
270 -- notes these cases. One exception to this rule occurs in the case of
271 -- possibly empty statement sequences (such as the sequence of statements
272 -- in an entry call alternative). Such cases appear in the syntax rules as
273 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
274 -- statement sequences always contain an empty list (not No_List) if no
275 -- statements are present.
276
277 -- Note: the utility program that constructs the body and spec of the Nmake
278 -- package relies on the format of the comments to determine if a field
279 -- should have a default value in the corresponding make routine. The rule
280 -- is that if the first line of the description of the field contains the
281 -- string "(set to xxx if", then a default value of xxx is provided for
282 -- this field in the corresponding Make_yyy routine.
283
284 -----------------------------------
285 -- Note on Body/Spec Terminology --
286 -----------------------------------
287
288 -- In informal discussions about Ada, it is customary to refer to package
289 -- and subprogram specs and bodies. However, this is not technically
290 -- correct, what is normally referred to as a spec or specification is in
291 -- fact a package declaration or subprogram declaration. We are careful in
292 -- GNAT to use the correct terminology and in particular, the full word
293 -- specification is never used as an incorrect substitute for declaration.
294 -- The structure and terminology used in the tree also reflects the grammar
295 -- and thus uses declaration and specification in the technically correct
296 -- manner.
297
298 -- However, there are contexts in which the informal terminology is useful.
299 -- We have the word "body" to refer to the Interp_Etype declared by the
300 -- declaration of a unit body, and in some contexts we need similar term to
301 -- refer to the entity declared by the package or subprogram declaration,
302 -- and simply using declaration can be confusing since the body also has a
303 -- declaration.
304
305 -- An example of such a context is the link between the package body and
306 -- its declaration. With_Declaration is confusing, since the package body
307 -- itself is a declaration.
308
309 -- To deal with this problem, we reserve the informal term Spec, i.e. the
310 -- popular abbreviation used in this context, to refer to the entity
311 -- declared by the package or subprogram declaration. So in the above
312 -- example case, the field in the body is called With_Spec.
313
314 -- Another important context for the use of the word Spec is in error
315 -- messages, where a hyper-correct use of declaration would be confusing to
316 -- a typical Ada programmer, and even for an expert programmer can cause
317 -- confusion since the body has a declaration as well.
318
319 -- So, to summarize:
320
321 -- Declaration always refers to the syntactic entity that is called
322 -- a declaration. In particular, subprogram declaration
323 -- and package declaration are used to describe the
324 -- syntactic entity that includes the semicolon.
325
326 -- Specification always refers to the syntactic entity that is called
327 -- a specification. In particular, the terms procedure
328 -- specification, function specification, package
329 -- specification, subprogram specification always refer
330 -- to the syntactic entity that has no semicolon.
331
332 -- Spec is an informal term, used to refer to the entity
333 -- that is declared by a task declaration, protected
334 -- declaration, generic declaration, subprogram
335 -- declaration or package declaration.
336
337 -- This convention is followed throughout the GNAT documentation
338 -- both internal and external, and in all error message text.
339
340 ------------------------
341 -- Internal Use Nodes --
342 ------------------------
343
344 -- These are Node_Kind settings used in the internal implementation which
345 -- are not logically part of the specification.
346
347 -- N_Unused_At_Start
348 -- Completely unused entry at the start of the enumeration type. This
349 -- is inserted so that no legitimate value is zero, which helps to get
350 -- better debugging behavior, since zero is a likely uninitialized value).
351
352 -- N_Unused_At_End
353 -- Completely unused entry at the end of the enumeration type. This is
354 -- handy so that arrays with Node_Kind as the index type have an extra
355 -- entry at the end (see for example the use of the Pchar_Pos_Array in
356 -- Treepr, where the extra entry provides the limit value when dealing with
357 -- the last used entry in the array).
358
359 -----------------------------------------
360 -- Note on the settings of Sloc fields --
361 -----------------------------------------
362
363 -- The Sloc field of nodes that come from the source is set by the parser.
364 -- For internal nodes, and nodes generated during expansion the Sloc is
365 -- usually set in the call to the constructor for the node. In general the
366 -- Sloc value chosen for an internal node is the Sloc of the source node
367 -- whose processing is responsible for the expansion. For example, the Sloc
368 -- of an inherited primitive operation is the Sloc of the corresponding
369 -- derived type declaration.
370
371 -- For the nodes of a generic instantiation, the Sloc value is encoded to
372 -- represent both the original Sloc in the generic unit, and the Sloc of
373 -- the instantiation itself. See Sinput.ads for details.
374
375 -- Subprogram instances create two callable entities: one is the visible
376 -- subprogram instance, and the other is an anonymous subprogram nested
377 -- within a wrapper package that contains the renamings for the actuals.
378 -- Both of these entities have the Sloc of the defining entity in the
379 -- instantiation node. This simplifies some ASIS queries.
380
381 -----------------------
382 -- Field Definitions --
383 -----------------------
384
385 -- In the following node definitions, all fields, both syntactic and
386 -- semantic, are documented. The one exception is in the case of entities
387 -- (defining indentifiers, character literals and operator symbols), where
388 -- the usage of the fields depends on the entity kind. Entity fields are
389 -- fully documented in the separate package Einfo.
390
391 -- In the node definitions, three common sets of fields are abbreviated to
392 -- save both space in the documentation, and also space in the string
393 -- (defined in Tree_Print_Strings) used to print trees. The following
394 -- abbreviations are used:
395
396 -- Note: the utility program that creates the Treeprs spec (in the file
397 -- xtreeprs.adb) knows about the special fields here, so it must be
398 -- modified if any change is made to these fields.
399
400 -- "plus fields for binary operator"
401 -- Chars (Name1) Name_Id for the operator
402 -- Left_Opnd (Node2) left operand expression
403 -- Right_Opnd (Node3) right operand expression
404 -- Entity (Node4-Sem) defining entity for operator
405 -- Associated_Node (Node4-Sem) for generic processing
406 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
407 -- Has_Private_View (Flag11-Sem) set in generic units.
408
409 -- "plus fields for unary operator"
410 -- Chars (Name1) Name_Id for the operator
411 -- Right_Opnd (Node3) right operand expression
412 -- Entity (Node4-Sem) defining entity for operator
413 -- Associated_Node (Node4-Sem) for generic processing
414 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
415 -- Has_Private_View (Flag11-Sem) set in generic units.
416
417 -- "plus fields for expression"
418 -- Paren_Count number of parentheses levels
419 -- Etype (Node5-Sem) type of the expression
420 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
421 -- Is_Static_Expression (Flag6-Sem) set for static expression
422 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
423 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
424 -- Do_Range_Check (Flag9-Sem) set if a range check needed
425 -- Assignment_OK (Flag15-Sem) set if modification is OK
426 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
427
428 -- Note: see under (EXPRESSION) for further details on the use of
429 -- the Paren_Count field to record the number of parentheses levels.
430
431 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
432 -- The actual definition of this type is given later (the reason for this
433 -- is that we want the descriptions ordered by logical chapter in the RM,
434 -- but the type definition is reordered to facilitate the definition of
435 -- some subtype ranges. The individual descriptions of the nodes show how
436 -- the various fields are used in each node kind, as well as providing
437 -- logical names for the fields. Functions and procedures are provided for
438 -- accessing and setting these fields using these logical names.
439
440 -----------------------
441 -- Gigi Restrictions --
442 -----------------------
443
444 -- The tree passed to Gigi is more restricted than the general tree form.
445 -- For example, as a result of expansion, most of the tasking nodes can
446 -- never appear. For each node to which either a complete or partial
447 -- restriction applies, a note entitled "Gigi restriction" appears which
448 -- documents the restriction.
449
450 -- Note that most of these restrictions apply only to trees generated when
451 -- code is being generated, since they involved expander actions that
452 -- destroy the tree.
453
454 ------------------------
455 -- Common Flag Fields --
456 ------------------------
457
458 -- The following flag fields appear in all nodes
459
460 -- Analyzed (Flag1)
461 -- This flag is used to indicate that a node (and all its children have
462 -- been analyzed. It is used to avoid reanalysis of a node that has
463 -- already been analyzed, both for efficiency and functional correctness
464 -- reasons.
465
466 -- Comes_From_Source (Flag2)
467 -- This flag is on for any nodes built by the scanner or parser from the
468 -- source program, and off for any nodes built by the analyzer or
469 -- expander. It indicates that a node comes from the original source.
470 -- This flag is defined in Atree.
471
472 -- Error_Posted (Flag3)
473 -- This flag is used to avoid multiple error messages being posted on or
474 -- referring to the same node. This flag is set if an error message
475 -- refers to a node or is posted on its source location, and has the
476 -- effect of inhibiting further messages involving this same node.
477
478 -- Local_Raise_Statements (Elist1)
479 -- This field is present in exception handler nodes. It is set to
480 -- No_Elist in the normal case. If there is at least one raise statement
481 -- which can potentially be handled as a local raise, then this field
482 -- points to a list of raise nodes, which are calls to a routine to raise
483 -- an exception. These are raise nodes which can be optimized into gotos
484 -- if the handler turns out to meet the conditions which permit this
485 -- transformation. Note that this does NOT include instances of the
486 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
487 -- handled by the back end (using the N_Push/N_Pop mechanism).
488
489 -- Has_Dynamic_Length_Check (Flag10-Sem)
490 -- This flag is present on all nodes. It is set to indicate that one of
491 -- the routines in unit Checks has generated a length check action which
492 -- has been inserted at the flagged node. This is used to avoid the
493 -- generation of duplicate checks.
494
495 -- Has_Dynamic_Range_Check (Flag12-Sem)
496 -- This flag is present on all nodes. It is set to indicate that one of
497 -- the routines in unit Checks has generated a range check action which
498 -- has been inserted at the flagged node. This is used to avoid the
499 -- generation of duplicate checks.
500
501 -- Has_Local_Raise (Flag8-Sem)
502 -- Present in exception handler nodes. Set if the handler can be entered
503 -- via a local raise that gets transformed to a goto statement. This will
504 -- always be set if Local_Raise_Statements is non-empty, but can also be
505 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
506 -- nodes requiring generation of back end checks.
507
508 ------------------------------------
509 -- Description of Semantic Fields --
510 ------------------------------------
511
512 -- The meaning of the syntactic fields is generally clear from their names
513 -- without any further description, since the names are chosen to
514 -- correspond very closely to the syntax in the reference manual. This
515 -- section describes the usage of the semantic fields, which are used to
516 -- contain additional information determined during semantic analysis.
517
518 -- ABE_Is_Certain (Flag18-Sem)
519 -- This flag is set in an instantiation node or a call node is determined
520 -- to be sure to raise an ABE. This is used to trigger special handling
521 -- of such cases, particularly in the instantiation case where we avoid
522 -- instantiating the body if this flag is set. This flag is also present
523 -- in an N_Formal_Package_Declaration_Node since formal package
524 -- declarations are treated like instantiations, but it is always set to
525 -- False in this context.
526
527 -- Accept_Handler_Records (List5-Sem)
528 -- This field is present only in an N_Accept_Alternative node. It is used
529 -- to temporarily hold the exception handler records from an accept
530 -- statement in a selective accept. These exception handlers will
531 -- eventually be placed in the Handler_Records list of the procedure
532 -- built for this accept (see Expand_N_Selective_Accept procedure in
533 -- Exp_Ch9 for further details).
534
535 -- Access_Types_To_Process (Elist2-Sem)
536 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
537 -- Contains the list of access types which may require specific treatment
538 -- when the nature of the type completion is completely known. An example
539 -- of such treatement is the generation of the associated_final_chain.
540
541 -- Actions (List1-Sem)
542 -- This field contains a sequence of actions that are associated with the
543 -- node holding the field. See the individual node types for details of
544 -- how this field is used, as well as the description of the specific use
545 -- for a particular node type.
546
547 -- Activation_Chain_Entity (Node3-Sem)
548 -- This is used in tree nodes representing task activators (blocks,
549 -- subprogram bodies, package declarations, and task bodies). It is
550 -- initially Empty, and then gets set to point to the entity for the
551 -- declared Activation_Chain variable when the first task is declared.
552 -- When tasks are declared in the corresponding declarative region this
553 -- entity is located by name (its name is always _Chain) and the declared
554 -- tasks are added to the chain. Note that N_Extended_Return_Statement
555 -- does not have this attribute, although it does have an activation
556 -- chain. This chain is used to store the tasks temporarily, and is not
557 -- used for activating them. On successful completion of the return
558 -- statement, the tasks are moved to the caller's chain, and the caller
559 -- activates them.
560
561 -- Acts_As_Spec (Flag4-Sem)
562 -- A flag set in the N_Subprogram_Body node for a subprogram body which
563 -- is acting as its own spec. This flag also appears in the compilation
564 -- unit node at the library level for such a subprogram (see further
565 -- description in spec of Lib package).
566
567 -- Actual_Designated_Subtype (Node4-Sem)
568 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
569 -- needs to known the dynamic constrained subtype of the designated
570 -- object, this attribute is set to that type. This is done for
571 -- N_Free_Statements for access-to-classwide types and access to
572 -- unconstrained packed array types, and for N_Explicit_Dereference when
573 -- the designated type is an unconstrained packed array and the
574 -- dereference is the prefix of a 'Size attribute reference.
575
576 -- Aggregate_Bounds (Node3-Sem)
577 -- Present in array N_Aggregate nodes. If the aggregate contains
578 -- component associations this field points to an N_Range node whose
579 -- bounds give the lowest and highest discrete choice values. If the
580 -- named aggregate contains a dynamic or null choice this field is empty.
581 -- If the aggregate contains positional elements this field points to an
582 -- N_Integer_Literal node giving the number of positional elements. Note
583 -- that if the aggregate contains positional elements and an other choice
584 -- the N_Integer_Literal only accounts for the number of positional
585 -- elements.
586
587 -- All_Others (Flag11-Sem)
588 -- Present in an N_Others_Choice node. This flag is set in the case of an
589 -- others exception where all exceptions are to be caught, even those
590 -- that are not normally handled (in particular the tasking abort
591 -- signal). This is used for translation of the at end handler into a
592 -- normal exception handler.
593
594 -- Assignment_OK (Flag15-Sem)
595 -- This flag is set in a subexpression node for an object, indicating
596 -- that the associated object can be modified, even if this would not
597 -- normally be permissible (either by direct assignment, or by being
598 -- passed as an out or in-out parameter). This is used by the expander
599 -- for a number of purposes, including initialzation of constants and
600 -- limited type objects (such as tasks), setting discriminant fields,
601 -- setting tag values, etc. N_Object_Declaration nodes also have this
602 -- flag defined. Here it is used to indicate that an initialization
603 -- expression is valid, even where it would normally not be allowed (e.g.
604 -- where the type involved is limited).
605
606 -- Associated_Node (Node4-Sem)
607 -- Present in nodes that can denote an entity: identifiers, character
608 -- literals, operator symbols, expanded names, operator nodes, and
609 -- attribute reference nodes (all these nodes have an Entity field). This
610 -- field is also present in N_Aggregate, N_Selected_Component, and
611 -- N_Extension_Aggregate nodes. This field is used in generic processing
612 -- to create links between the generic template and the generic copy. See
613 -- Sem_Ch12.Get_Associated_Node for full details. Note that this field
614 -- overlaps Entity, which is fine, since, as explained in Sem_Ch12, the
615 -- normal function of Entity is not required at the point where the
616 -- Associated_Node is set. Note also, that in generic templates, this
617 -- means that the Entity field does not necessarily point to an Entity.
618 -- Since the back end is expected to ignore generic templates, this is
619 -- harmless.
620
621 -- At_End_Proc (Node1)
622 -- This field is present in an N_Handled_Sequence_Of_Statements node. It
623 -- contains an identifier reference for the cleanup procedure to be
624 -- called. See description of this node for further details.
625
626 -- Backwards_OK (Flag6-Sem)
627 -- A flag present in the N_Assignment_Statement node. It is used only if
628 -- the type being assigned is an array type, and is set if analysis
629 -- determines that it is definitely safe to do the copy backwards, i.e.
630 -- starting at the highest addressed element. Note that if neither of the
631 -- flags Forwards_OK or Backwards_OK is set, it means that the front end
632 -- could not determine that either direction is definitely safe, and a
633 -- runtime check may be required if the backend cannot figure it out.
634
635 -- Body_To_Inline (Node3-Sem)
636 -- present in subprogram declarations. Denotes analyzed but unexpanded
637 -- body of subprogram, to be used when inlining calls. Present when the
638 -- subprogram has an Inline pragma and inlining is enabled. If the
639 -- declaration is completed by a renaming_as_body, and the renamed en-
640 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
641 -- which is used directly in later calls to the original subprogram.
642
643 -- Body_Required (Flag13-Sem)
644 -- A flag that appears in the N_Compilation_Unit node indicating that the
645 -- corresponding unit requires a body. For the package case, this
646 -- indicates that a completion is required. In Ada 95, if the flag is not
647 -- set for the package case, then a body may not be present. In Ada 83,
648 -- if the flag is not set for the package case, then body is optional.
649 -- For a subprogram declaration, the flag is set except in the case where
650 -- a pragma Import or Interface applies, in which case no body is
651 -- permitted (in Ada 83 or Ada 95).
652
653 -- By_Ref (Flag5-Sem)
654 -- A flag present in N_Simple_Return_Statement and
655 -- N_Extended_Return_Statement.
656 -- It is set when the returned expression is already allocated on the
657 -- secondary stack and thus the result is passed by reference rather
658 -- than copied another time.
659
660 -- Check_Address_Alignment (Flag11-Sem)
661 -- A flag present in N_Attribute_Definition clause for a 'Address
662 -- attribute definition. This flag is set if a dynamic check should be
663 -- generated at the freeze point for the entity to which this address
664 -- clause applies. The reason that we need this flag is that we want to
665 -- check for range checks being suppressed at the point where the
666 -- attribute definition clause is given, rather than testing this at the
667 -- freeze point.
668
669 -- Coextensions (Elist4-Sem)
670 -- Present in allocators nodes. Points to list of allocators for the
671 -- access discriminants of the allocated object.
672
673 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
674 -- Present in N_Simple_Return_Statement nodes. True if this node was
675 -- constructed as part of the expansion of an
676 -- N_Extended_Return_Statement.
677
678 -- Compile_Time_Known_Aggregate (Flag18-Sem)
679 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
680 -- evaluated at compile time without raising constraint error. Such
681 -- aggregates can be passed as is to Gigi without any expansion. See
682 -- Sem_Aggr for the specific conditions under which an aggregate has this
683 -- flag set. See also the flag Static_Processing_OK.
684
685 -- Condition_Actions (List3-Sem)
686 -- This field appears in else-if nodes and in the iteration scheme node
687 -- for while loops. This field is only used during semantic processing to
688 -- temporarily hold actions inserted into the tree. In the tree passed to
689 -- gigi, the condition actions field is always set to No_List. For
690 -- details on how this field is used, see the routine Insert_Actions in
691 -- package Exp_Util, and also the expansion routines for the relevant
692 -- nodes.
693
694 -- Controlling_Argument (Node1-Sem)
695 -- This field is set in procedure and function call nodes if the call is
696 -- a dispatching call (it is Empty for a non-dispatching call). It
697 -- indicates the source of the call's controlling tag. For procedure
698 -- calls, the Controlling_Argument is one of the actuals. For function
699 -- that has a dispatching result, it is an entity in the context of the
700 -- call that can provide a tag, or else it is the tag of the root type of
701 -- the class. It can also specify a tag directly rather than being a
702 -- tagged object. The latter is needed by the implementations of AI-239
703 -- and AI-260.
704
705 -- Conversion_OK (Flag14-Sem)
706 -- A flag set on type conversion nodes to indicate that the conversion is
707 -- to be considered as being valid, even though it is the case that the
708 -- conversion is not valid Ada. This is used for Enum_Rep, Fixed_Value
709 -- and Integer_Value attributes, for internal conversions done for
710 -- fixed-point operations, and for certain conversions for calls to
711 -- initialization procedures. If Conversion_OK is set, then Etype must be
712 -- set (the analyzer assumes that Etype has been set). For the case of
713 -- fixed-point operands, it also indicates that the conversion is to be
714 -- direct conversion of the underlying integer result, with no regard to
715 -- the small operand.
716
717 -- Corresponding_Body (Node5-Sem)
718 -- This field is set in subprogram declarations, package declarations,
719 -- entry declarations of protected types, and in generic units. It
720 -- points to the defining entity for the corresponding body (NOT the
721 -- node for the body itself).
722
723 -- Corresponding_Formal_Spec (Node3-Sem)
724 -- This field is set in subprogram renaming declarations, where it points
725 -- to the defining entity for a formal subprogram in the case where the
726 -- renaming corresponds to a generic formal subprogram association in an
727 -- instantiation. The field is Empty if the renaming does not correspond
728 -- to such a formal association.
729
730 -- Corresponding_Generic_Association (Node5-Sem)
731 -- This field is defined for object declarations and object renaming
732 -- declarations. It is set for the declarations within an instance that
733 -- map generic formals to their actuals. If set, the field points to
734 -- a generic_association which is the original parent of the expression
735 -- or name appearing in the declaration. This simplifies ASIS queries.
736
737 -- Corresponding_Integer_Value (Uint4-Sem)
738 -- This field is set in real literals of fixed-point types (it is not
739 -- used for floating-point types). It contains the integer value used
740 -- to represent the fixed-point value. It is also set on the universal
741 -- real literals used to represent bounds of fixed-point base types
742 -- and their first named subtypes.
743
744 -- Corresponding_Spec (Node5-Sem)
745 -- This field is set in subprogram, package, task, and protected body
746 -- nodes, where it points to the defining entity in the corresponding
747 -- spec. The attribute is also set in N_With_Clause nodes, where it
748 -- points to the defining entity for the with'ed spec, and in a
749 -- subprogram renaming declaration when it is a Renaming_As_Body. The
750 -- field is Empty if there is no corresponding spec, as in the case of a
751 -- subprogram body that serves as its own spec.
752
753 -- Corresponding_Stub (Node3-Sem)
754 -- This field is present in an N_Subunit node. It holds the node in
755 -- the parent unit that is the stub declaration for the subunit. it is
756 -- set when analysis of the stub forces loading of the proper body. If
757 -- expansion of the proper body creates new declarative nodes, they are
758 -- inserted at the point of the corresponding_stub.
759
760 -- Dcheck_Function (Node5-Sem)
761 -- This field is present in an N_Variant node, It references the entity
762 -- for the discriminant checking function for the variant.
763
764 -- Debug_Statement (Node3)
765 -- This field is present in an N_Pragma node. It is used only for a Debug
766 -- pragma. The parameter is of the form of an expression, as required by
767 -- the pragma syntax, but is actually a procedure call. To simplify
768 -- semantic processing, the parser creates a copy of the argument
769 -- rearranged into a procedure call statement and places it in the
770 -- Debug_Statement field. Note that this field is considered syntactic
771 -- field, since it is created by the parser.
772
773 -- Default_Expression (Node5-Sem)
774 -- This field is Empty if there is no default expression. If there is a
775 -- simple default expression (one with no side effects), then this field
776 -- simply contains a copy of the Expression field (both point to the tree
777 -- for the default expression). Default_Expression is used for
778 -- conformance checking.
779
780 -- Discr_Check_Funcs_Built (Flag11-Sem)
781 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
782 -- discriminant checking functions are constructed. The purpose is to
783 -- avoid attempting to set these functions more than once.
784
785 -- Do_Accessibility_Check (Flag13-Sem)
786 -- This flag is set on N_Parameter_Specification nodes to indicate
787 -- that an accessibility check is required for the parameter. It is
788 -- not yet decided who takes care of this check (TBD ???).
789
790 -- Do_Discriminant_Check (Flag13-Sem)
791 -- This flag is set on N_Selected_Component nodes to indicate that a
792 -- discriminant check is required using the discriminant check routine
793 -- associated with the selector. The actual check is generated by the
794 -- expander when processing selected components.
795
796 -- Do_Division_Check (Flag13-Sem)
797 -- This flag is set on a division operator (/ mod rem) to indicate
798 -- that a zero divide check is required. The actual check is dealt
799 -- with by the backend (all the front end does is to set the flag).
800
801 -- Do_Length_Check (Flag4-Sem)
802 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
803 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
804 -- is required. It is not determined who deals with this flag (???).
805
806 -- Do_Overflow_Check (Flag17-Sem)
807 -- This flag is set on an operator where an overflow check is required on
808 -- the operation. The actual check is dealt with by the backend (all the
809 -- front end does is to set the flag). The other cases where this flag is
810 -- used is on a Type_Conversion node and for attribute reference nodes.
811 -- For a type conversion, it means that the conversion is from one base
812 -- type to another, and the value may not fit in the target base type.
813 -- See also the description of Do_Range_Check for this case. The only
814 -- attribute references which use this flag are Pred and Succ, where it
815 -- means that the result should be checked for going outside the base
816 -- range.
817
818 -- Do_Range_Check (Flag9-Sem)
819 -- This flag is set on an expression which appears in a context where
820 -- a range check is required. The target type is clear from the
821 -- context. The contexts in which this flag can appear are limited to
822 -- the following.
823
824 -- Right side of an assignment. In this case the target type is
825 -- taken from the left side of the assignment, which is referenced
826 -- by the Name of the N_Assignment_Statement node.
827
828 -- Subscript expressions in an indexed component. In this case the
829 -- target type is determined from the type of the array, which is
830 -- referenced by the Prefix of the N_Indexed_Component node.
831
832 -- Argument expression for a parameter, appearing either directly in
833 -- the Parameter_Associations list of a call or as the Expression of an
834 -- N_Parameter_Association node that appears in this list. In either
835 -- case, the check is against the type of the formal. Note that the
836 -- flag is relevant only in IN and IN OUT parameters, and will be
837 -- ignored for OUT parameters, where no check is required in the call,
838 -- and if a check is required on the return, it is generated explicitly
839 -- with a type conversion.
840
841 -- Initialization expression for the initial value in an object
842 -- declaration. In this case the Do_Range_Check flag is set on
843 -- the initialization expression, and the check is against the
844 -- range of the type of the object being declared.
845
846 -- The expression of a type conversion. In this case the range check is
847 -- against the target type of the conversion. See also the use of
848 -- Do_Overflow_Check on a type conversion. The distinction is that the
849 -- overflow check protects against a value that is outside the range of
850 -- the target base type, whereas a range check checks that the
851 -- resulting value (which is a value of the base type of the target
852 -- type), satisfies the range constraint of the target type.
853
854 -- Note: when a range check is required in contexts other than those
855 -- listed above (e.g. in a return statement), an additional type
856 -- conversion node is introduced to represent the required check.
857
858 -- Do_Storage_Check (Flag17-Sem)
859 -- This flag is set in an N_Allocator node to indicate that a storage
860 -- check is required for the allocation, or in an N_Subprogram_Body node
861 -- to indicate that a stack check is required in the subprogram prolog.
862 -- The N_Allocator case is handled by the routine that expands the call
863 -- to the runtime routine. The N_Subprogram_Body case is handled by the
864 -- backend, and all the semantics does is set the flag.
865
866 -- Do_Tag_Check (Flag13-Sem)
867 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
868 -- N_Procedure_Call_Statement, N_Type_Conversion,
869 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
870 -- node to indicate that the tag check can be suppressed. It is not
871 -- yet decided how this flag is used (TBD ???).
872
873 -- Elaborate_Present (Flag4-Sem)
874 -- This flag is set in the N_With_Clause node to indicate that pragma
875 -- Elaborate pragma appears for the with'ed units.
876
877 -- Elaborate_All_Desirable (Flag9-Sem)
878 -- This flag is set in the N_With_Clause mode to indicate that the static
879 -- elaboration processing has determined that an Elaborate_All pragma is
880 -- desirable for correct elaboration for this unit.
881
882 -- Elaborate_All_Present (Flag14-Sem)
883 -- This flag is set in the N_With_Clause node to indicate that a
884 -- pragma Elaborate_All pragma appears for the with'ed units.
885
886 -- Elaborate_Desirable (Flag11-Sem)
887 -- This flag is set in the N_With_Clause mode to indicate that the static
888 -- elaboration processing has determined that an Elaborate pragma is
889 -- desirable for correct elaboration for this unit.
890
891 -- Elaboration_Boolean (Node2-Sem)
892 -- This field is present in function and procedure specification
893 -- nodes. If set, it points to the entity for a Boolean flag that
894 -- must be tested for certain calls to check for access before
895 -- elaboration. See body of Sem_Elab for further details. This
896 -- field is Empty if no elaboration boolean is required.
897
898 -- Else_Actions (List3-Sem)
899 -- This field is present in conditional expression nodes. During code
900 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
901 -- actions at an appropriate place in the tree to get elaborated at the
902 -- right time. For conditional expressions, we have to be sure that the
903 -- actions for the Else branch are only elaborated if the condition is
904 -- False. The Else_Actions field is used as a temporary parking place for
905 -- these actions. The final tree is always rewritten to eliminate the
906 -- need for this field, so in the tree passed to Gigi, this field is
907 -- always set to No_List.
908
909 -- Enclosing_Variant (Node2-Sem)
910 -- This field is present in the N_Variant node and identifies the
911 -- Node_Id corresponding to the immediately enclosing variant when
912 -- the variant is nested, and N_Empty otherwise. Set during semantic
913 -- processing of the variant part of a record type.
914
915 -- Entity (Node4-Sem)
916 -- Appears in all direct names (identifier, character literal, operator
917 -- symbol), as well as expanded names, and attributes that denote
918 -- entities, such as 'Class. Points to the entity for the corresponding
919 -- defining occurrence. Set after name resolution. In the case of
920 -- identifiers in a WITH list, the corresponding defining occurrence is
921 -- in a separately compiled file, and this pointer must be set using the
922 -- library Load procedure. Note that during name resolution, the value in
923 -- Entity may be temporarily incorrect (e.g. during overload resolution,
924 -- Entity is initially set to the first possible correct interpretation,
925 -- and then later modified if necessary to contain the correct value
926 -- after resolution). Note that this field overlaps Associated_Node,
927 -- which is used during generic processing (see Sem_Ch12 for details).
928 -- Note also that in generic templates, this means that the Entity field
929 -- does not always point to an Entity. Since the back end is expected to
930 -- ignore generic templates, this is harmless. Note that this field also
931 -- appears in N_Attribute_Definition_Clause nodes. It is used only for
932 -- stream attributes definition clauses. In this case, it denotes a
933 -- (possibly dummy) subprogram entity that is conceptually declared at
934 -- the point of the clause. Thus the visibility of the attribute
935 -- definition clause (in the sense of 8.3(23) as amended by AI-195) can
936 -- be checked by testing the visibility of that subprogram.
937
938 -- Entity_Or_Associated_Node (Node4-Sem)
939 -- A synonym for both Entity and Associated_Node. Used by convention in
940 -- the code when referencing this field in cases where it is not known
941 -- whether the field contains an Entity or an Associated_Node.
942
943 -- Etype (Node5-Sem)
944 -- Appears in all expression nodes, all direct names, and all entities.
945 -- Points to the entity for the related type. Set after type resolution.
946 -- Normally this is the actual subtype of the expression. However, in
947 -- certain contexts such as the right side of an assignment, subscripts,
948 -- arguments to calls, returned value in a function, initial value etc.
949 -- it is the desired target type. In the event that this is different
950 -- from the actual type, the Do_Range_Check flag will be set if a range
951 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
952 -- points to an essentially arbitrary choice from the possible set of
953 -- types.
954
955 -- Exception_Junk (Flag8-Sem)
956 -- This flag is set in a various nodes appearing in a statement sequence
957 -- to indicate that the corresponding node is an artifact of the
958 -- generated code for exception handling, and should be ignored when
959 -- analyzing the control flow of the relevant sequence of statements
960 -- (e.g. to check that it does not end with a bad return statement).
961
962 -- Exception_Label (Node5-Sem)
963 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
964 -- to be used for transforming the corresponding exception into a goto,
965 -- or contains Empty, if this exception is not to be transformed. Also
966 -- appears in N_Exception_Handler nodes, where, if set, it indicates
967 -- that there may be a local raise for the handler, so that expansion
968 -- to allow a goto is required (and this field contains the label for
969 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
970
971 -- Expansion_Delayed (Flag11-Sem)
972 -- Set on aggregates and extension aggregates that need a top-down rather
973 -- than bottom up expansion. Typically aggregate expansion happens bottom
974 -- up. For nested aggregates the expansion is delayed until the enclosing
975 -- aggregate itself is expanded, e.g. in the context of a declaration. To
976 -- delay it we set this flag. This is done to avoid creating a temporary
977 -- for each level of a nested aggregates, and also to prevent the
978 -- premature generation of constraint checks. This is also a requirement
979 -- if we want to generate the proper attachment to the internal
980 -- finalization lists (for record with controlled components). Top down
981 -- expansion of aggregates is also used for in-place array aggregate
982 -- assignment or initialization. When the full context is known, the
983 -- target of the assignment or initialization is used to generate the
984 -- left-hand side of individual assignment to each sub-component.
985
986 -- First_Inlined_Subprogram (Node3-Sem)
987 -- Present in the N_Compilation_Unit node for the main program. Points to
988 -- a chain of entities for subprograms that are to be inlined. The
989 -- Next_Inlined_Subprogram field of these entities is used as a link
990 -- pointer with Empty marking the end of the list. This field is Empty if
991 -- there are no inlined subprograms or inlining is not active.
992
993 -- First_Named_Actual (Node4-Sem)
994 -- Present in procedure call statement and function call nodes, and also
995 -- in Intrinsic nodes. Set during semantic analysis to point to the first
996 -- named parameter where parameters are ordered by declaration order (as
997 -- opposed to the actual order in the call which may be different due to
998 -- named associations). Note: this field points to the explicit actual
999 -- parameter itself, not the N_Parameter_Association node (its parent).
1000
1001 -- First_Real_Statement (Node2-Sem)
1002 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1003 -- Empty. Used only when declarations are moved into the statement part
1004 -- of a construct as a result of wrapping an AT END handler that is
1005 -- required to cover the declarations. In this case, this field is used
1006 -- to remember the location in the statements list of the first real
1007 -- statement, i.e. the statement that used to be first in the statement
1008 -- list before the declarations were prepended.
1009
1010 -- First_Subtype_Link (Node5-Sem)
1011 -- Present in N_Freeze_Entity node for an anonymous base type that is
1012 -- implicitly created by the declaration of a first subtype. It points to
1013 -- the entity for the first subtype.
1014
1015 -- Float_Truncate (Flag11-Sem)
1016 -- A flag present in type conversion nodes. This is used for float to
1017 -- integer conversions where truncation is required rather than rounding.
1018 -- Note that Gigi does not handle type conversions from real to integer
1019 -- with rounding (see Expand_N_Type_Conversion).
1020
1021 -- Forwards_OK (Flag5-Sem)
1022 -- A flag present in the N_Assignment_Statement node. It is used only if
1023 -- the type being assigned is an array type, and is set if analysis
1024 -- determines that it is definitely safe to do the copy forwards, i.e.
1025 -- starting at the lowest addressed element. Note that if neither of the
1026 -- flags Forwards_OK or Backwards_OK is set, it means that the front end
1027 -- could not determine that either direction is definitely safe, and a
1028 -- runtime check is required.
1029
1030 -- From_At_Mod (Flag4-Sem)
1031 -- This flag is set on the attribute definition clause node that is
1032 -- generated by a transformation of an at mod phrase in a record
1033 -- representation clause. This is used to give slightly different (Ada 83
1034 -- compatible) semantics to such a clause, namely it is used to specify a
1035 -- minimum acceptable alignment for the base type and all subtypes. In
1036 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1037 -- must be a multiple of the given value, and the representation clause
1038 -- is considered to be type specific instead of subtype specific.
1039
1040 -- From_Default (Flag6-Sem)
1041 -- This flag is set on the subprogram renaming declaration created in an
1042 -- instance for a formal subprogram, when the formal is declared with a
1043 -- box, and there is no explicit actual. If the flag is present, the
1044 -- declaration is treated as an implicit reference to the formal in the
1045 -- ali file.
1046
1047 -- Generic_Parent (Node5-Sem)
1048 -- Generic_Parent is defined on declaration nodes that are instances. The
1049 -- value of Generic_Parent is the generic entity from which the instance
1050 -- is obtained. Generic_Parent is also defined for the renaming
1051 -- declarations and object declarations created for the actuals in an
1052 -- instantiation. The generic parent of such a declaration is the
1053 -- corresponding generic association in the Instantiation node.
1054
1055 -- Generic_Parent_Type (Node4-Sem)
1056 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1057 -- actuals of formal private and derived types. Within the instance, the
1058 -- operations on the actual are those inherited from the parent. For a
1059 -- formal private type, the parent type is the generic type itself. The
1060 -- Generic_Parent_Type is also used in an instance to determine whether a
1061 -- private operation overrides an inherited one.
1062
1063 -- Handler_List_Entry (Node2-Sem)
1064 -- This field is present in N_Object_Declaration nodes. It is set only
1065 -- for the Handler_Record entry generated for an exception in zero cost
1066 -- exception handling mode. It references the corresponding item in the
1067 -- handler list, and is used to delete this entry if the corresponding
1068 -- handler is deleted during optimization. For further details on why
1069 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1070
1071 -- Has_No_Elaboration_Code (Flag17-Sem)
1072 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1073 -- or not elaboration code is present for this unit. It is initially set
1074 -- true for subprogram specs and bodies and for all generic units and
1075 -- false for non-generic package specs and bodies. Gigi may set the flag
1076 -- in the non-generic package case if it determines that no elaboration
1077 -- code is generated. Note that this flag is not related to the
1078 -- Is_Preelaborated status, there can be preelaborated packages that
1079 -- generate elaboration code, and non- preelaborated packages which do
1080 -- not generate elaboration code.
1081
1082 -- Has_Priority_Pragma (Flag6-Sem)
1083 -- A flag present in N_Subprogram_Body, N_Task_Definition and
1084 -- N_Protected_Definition nodes to flag the presence of either a Priority
1085 -- or Interrupt_Priority pragma in the declaration sequence (public or
1086 -- private in the task and protected cases)
1087
1088 -- Has_Private_View (Flag11-Sem)
1089 -- A flag present in generic nodes that have an entity, to indicate that
1090 -- the node has a private type. Used to exchange private and full
1091 -- declarations if the visibility at instantiation is different from the
1092 -- visibility at generic definition.
1093
1094 -- Has_Self_Reference (Flag13-Sem)
1095 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1096 -- of the expressions contains an access attribute reference to the
1097 -- enclosing type. Such a self-reference can only appear in default-
1098 -- initialized aggregate for a record type.
1099
1100 -- Has_Storage_Size_Pragma (Flag5-Sem)
1101 -- A flag present in an N_Task_Definition node to flag the presence of a
1102 -- Storage_Size pragma.
1103
1104 -- Has_Task_Info_Pragma (Flag7-Sem)
1105 -- A flag present in an N_Task_Definition node to flag the presence of a
1106 -- Task_Info pragma. Used to detect duplicate pragmas.
1107
1108 -- Has_Task_Name_Pragma (Flag8-Sem)
1109 -- A flag present in N_Task_Definition nodes to flag the presence of a
1110 -- Task_Name pragma in the declaration sequence for the task.
1111
1112 -- Has_Wide_Character (Flag11-Sem)
1113 -- Present in string literals, set if any wide character (i.e. character
1114 -- code outside the Character range) appears in the string.
1115
1116 -- Hidden_By_Use_Clause (Elist4-Sem)
1117 -- An entity list present in use clauses that appear within
1118 -- instantiations. For the resolution of local entities, entities
1119 -- introduced by these use clauses have priority over global ones, and
1120 -- outer entities must be explicitly hidden/restored on exit.
1121
1122 -- Implicit_With (Flag16-Sem)
1123 -- This flag is set in the N_With_Clause node that is implicitly
1124 -- generated for runtime units that are loaded by the expander, and also
1125 -- for package System, if it is loaded implicitly by a use of the
1126 -- 'Address or 'Tag attribute.
1127
1128 -- Includes_Infinities (Flag11-Sem)
1129 -- This flag is present in N_Range nodes. It is set for the range of
1130 -- unconstrained float types defined in Standard, which include not only
1131 -- the given range of values, but also legtitimately can include infinite
1132 -- values. This flag is false for any float type for which an explicit
1133 -- range is given by the programmer, even if that range is identical to
1134 -- the range for Float.
1135
1136 -- Instance_Spec (Node5-Sem)
1137 -- This field is present in generic instantiation nodes, and also in
1138 -- formal package declaration nodes (formal package declarations are
1139 -- treated in a manner very similar to package instantiations). It points
1140 -- to the node for the spec of the instance, inserted as part of the
1141 -- semantic processing for instantiations in Sem_Ch12.
1142
1143 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1144 -- A flag set in a Block_Statement node to indicate that it is the
1145 -- expansion of an asynchronous entry call. Such a block needs cleanup
1146 -- handler to assure that the call is cancelled.
1147
1148 -- Is_Component_Left_Opnd (Flag13-Sem)
1149 -- Is_Component_Right_Opnd (Flag14-Sem)
1150 -- Present in concatenation nodes, to indicate that the corresponding
1151 -- operand is of the component type of the result. Used in resolving
1152 -- concatenation nodes in instances.
1153
1154 -- Is_Controlling_Actual (Flag16-Sem)
1155 -- This flag is set on in an expression that is a controlling argument in
1156 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1157 -- details of its use.
1158
1159 -- Is_Dynamic_Coextension (Flag18-Sem)
1160 -- Present in allocator nodes, to indicate that this is an allocator
1161 -- for an access discriminant of a dynamically allocated object. The
1162 -- coextension must be deallocated and finalized at the same time as
1163 -- the enclosing object.
1164
1165 -- Is_Entry_Barrier_Function (Flag8-Sem)
1166 -- This flag is set in an N_Subprogram_Body node which is the expansion
1167 -- of an entry barrier from a protected entry body. It is used for the
1168 -- circuitry checking for incorrect use of Current_Task.
1169
1170 -- Is_In_Discriminant_Check (Flag11-Sem)
1171 -- This flag is present in a selected component, and is used to indicate
1172 -- that the reference occurs within a discriminant check. The
1173 -- significance is that optimizations based on assuming that the
1174 -- discriminant check has a correct value cannot be performed in this
1175 -- case (or the disriminant check may be optimized away!)
1176
1177 -- Is_Machine_Number (Flag11-Sem)
1178 -- This flag is set in an N_Real_Literal node to indicate that the value
1179 -- is a machine number. This avoids some unnecessary cases of converting
1180 -- real literals to machine numbers.
1181
1182 -- Is_Null_Loop (Flag16-Sem)
1183 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1184 -- can be determined to be null at compile time. This is used to suppress
1185 -- any warnings that would otherwise be issued inside the loop since they
1186 -- are probably not useful.
1187
1188 -- Is_Overloaded (Flag5-Sem)
1189 -- A flag present in all expression nodes. Used temporarily during
1190 -- overloading determination. The setting of this flag is not relevant
1191 -- once overloading analysis is complete.
1192
1193 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1194 -- A flag present only in N_Op_Expon nodes. It is set when the
1195 -- exponentiation is of the forma 2 ** N, where the type of N is an
1196 -- unsigned integral subtype whose size does not exceed the size of
1197 -- Standard_Integer (i.e. a type that can be safely converted to
1198 -- Natural), and the exponentiation appears as the right operand of an
1199 -- integer multiplication or an integer division where the dividend is
1200 -- unsigned. It is also required that overflow checking is off for both
1201 -- the exponentiation and the multiply/divide node. If this set of
1202 -- conditions holds, and the flag is set, then the division or
1203 -- multiplication can be (and is) converted to a shift.
1204
1205 -- Is_Overloaded (Flag5-Sem)
1206 -- A flag present in all expression nodes. Used temporarily during
1207 -- overloading determination. The setting of this flag is not relevant
1208 -- once overloading analysis is complete.
1209
1210 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1211 -- A flag set in a Subprogram_Body block to indicate that it is the
1212 -- implemenation of a protected subprogram. Such a body needs cleanup
1213 -- handler to make sure that the associated protected object is unlocked
1214 -- when the subprogram completes.
1215
1216 -- Is_Static_Coextension (Flag14-Sem)
1217 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1218 -- of an object allocated on the stack rather than the heap.
1219
1220 -- Is_Static_Expression (Flag6-Sem)
1221 -- Indicates that an expression is a static expression (RM 4.9). See spec
1222 -- of package Sem_Eval for full details on the use of this flag.
1223
1224 -- Is_Subprogram_Descriptor (Flag16-Sem)
1225 -- Present in N_Object_Declaration, and set only for the object
1226 -- declaration generated for a subprogram descriptor in fast exception
1227 -- mode. See Exp_Ch11 for details of use.
1228
1229 -- Is_Task_Allocation_Block (Flag6-Sem)
1230 -- A flag set in a Block_Statement node to indicate that it is the
1231 -- expansion of a task allocator, or the allocator of an object
1232 -- containing tasks. Such a block requires a cleanup handler to call
1233 -- Expunge_Unactivted_Tasks to complete any tasks that have been
1234 -- allocated but not activated when the allocator completes abnormally.
1235
1236 -- Is_Task_Master (Flag5-Sem)
1237 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1238 -- indicate that the construct is a task master (i.e. has declared tasks
1239 -- or declares an access to a task type).
1240
1241 -- Itype (Node1-Sem)
1242 -- Used in N_Itype_Reference node to reference an itype for which it is
1243 -- important to ensure that it is defined. See description of this node
1244 -- for further details.
1245
1246 -- Kill_Range_Check (Flag11-Sem)
1247 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1248 -- result should not be subjected to range checks. This is used for the
1249 -- implementation of Normalize_Scalars.
1250
1251 -- Label_Construct (Node2-Sem)
1252 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1253 -- N_Block_Statement or N_Loop_Statement node to which the label
1254 -- declaration applies. This is not currently used in the compiler
1255 -- itself, but it is useful in the implementation of ASIS queries.
1256 -- This field is left empty for the special labels generated as part
1257 -- of expanding raise statements with a local exception handler.
1258
1259 -- Library_Unit (Node4-Sem)
1260 -- In a stub node, Library_Unit points to the compilation unit node of
1261 -- the corresponding subunit.
1262 --
1263 -- In a with clause node, Library_Unit points to the spec of the with'ed
1264 -- unit.
1265 --
1266 -- In a compilation unit node, the usage depends on the unit type:
1267 --
1268 -- For a subprogram body, Library_Unit points to the compilation unit
1269 -- node of the corresponding spec, unless Acts_As_Spec is set, in which
1270 -- case it points to itself.
1271 --
1272 -- For a package body, Library_Unit points to the compilation unit of
1273 -- the corresponding package spec.
1274 --
1275 -- For a subprogram spec to which pragma Inline applies, Library_Unit
1276 -- points to the compilation unit node of the corresponding body, if
1277 -- inlining is active.
1278 --
1279 -- For a generic declaration, Library_Unit points to the compilation
1280 -- unit node of the corresponding generic body.
1281 --
1282 -- For a subunit, Library_Unit points to the compilation unit node of
1283 -- the parent body.
1284 --
1285 -- Note that this field is not used to hold the parent pointer for child
1286 -- unit (which might in any case need to use it for some other purpose as
1287 -- described above). Instead for a child unit, implicit with's are
1288 -- generated for all parents.
1289
1290 -- Loop_Actions (List2-Sem)
1291 -- A list present in Component_Association nodes in array aggregates.
1292 -- Used to collect actions that must be executed within the loop because
1293 -- they may need to be evaluated anew each time through.
1294
1295 -- Limited_View_Installed (Flag18-Sem)
1296 -- Present in With_Clauses and in package specifications. If set on
1297 -- with_clause, it indicates that this clause has created the current
1298 -- limited view of the designated package. On a package specification, it
1299 -- indicates that the limited view has already been created because the
1300 -- package is mentioned in a limited_with_clause in the closure of the
1301 -- unit being compiled.
1302
1303 -- Local_Raise_Not_OK (Flag7-Sem)
1304 -- Present in N_Exception_Handler nodes. Set if the handler contains
1305 -- a construct (reraise statement, or call to subprogram in package
1306 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1307 -- for a local raise (one that could otherwise be converted to a goto).
1308
1309 -- Must_Be_Byte_Aligned (Flag14-Sem)
1310 -- This flag is present in N_Attribute_Reference nodes. It can be set
1311 -- only for the Address and Unrestricted_Access attributes. If set it
1312 -- means that the object for which the address/access is given must be on
1313 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1314 -- of the object is to be made before taking the address (this copy is in
1315 -- the current scope on the stack frame). This is used for certain cases
1316 -- of code generated by the expander that passes parameters by address.
1317 --
1318 -- The reason the copy is not made by the front end is that the back end
1319 -- has more information about type layout and may be able to (but is not
1320 -- guaranteed to) prevent making unnecessary copies.
1321
1322 -- Must_Not_Freeze (Flag8-Sem)
1323 -- A flag present in all expression nodes. Normally expressions cause
1324 -- freezing as described in the RM. If this flag is set, then this is
1325 -- inhibited. This is used by the analyzer and expander to label nodes
1326 -- that are created by semantic analysis or expansion and which must not
1327 -- cause freezing even though they normally would. This flag is also
1328 -- present in an N_Subtype_Indication node, since we also use these in
1329 -- calls to Freeze_Expression.
1330
1331 -- Next_Entity (Node2-Sem)
1332 -- Present in defining identifiers, defining character literals and
1333 -- defining operator symbols (i.e. in all entities). The entities of a
1334 -- scope are chained, and this field is used as the forward pointer for
1335 -- this list. See Einfo for further details.
1336
1337 -- Next_Named_Actual (Node4-Sem)
1338 -- Present in parameter association node. Set during semantic analysis to
1339 -- point to the next named parameter, where parameters are ordered by
1340 -- declaration order (as opposed to the actual order in the call, which
1341 -- may be different due to named associations). Not that this field
1342 -- points to the explicit actual parameter itself, not to the
1343 -- N_Parameter_Association node (its parent).
1344
1345 -- Next_Rep_Item (Node5-Sem)
1346 -- Present in pragma nodes and attribute definition nodes. Used to link
1347 -- representation items that apply to an entity. See description of
1348 -- First_Rep_Item field in Einfo for full details.
1349
1350 -- Next_Use_Clause (Node3-Sem)
1351 -- While use clauses are active during semantic processing, they are
1352 -- chained from the scope stack entry, using Next_Use_Clause as a link
1353 -- pointer, with Empty marking the end of the list. The head pointer is
1354 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1355 -- processing (i.e. when Gigi sees the tree, the contents of this field
1356 -- is undefined and should not be read).
1357
1358 -- No_Ctrl_Actions (Flag7-Sem)
1359 -- Present in N_Assignment_Statement to indicate that no finalize nor nor
1360 -- adjust should take place on this assignment eventhough the rhs is
1361 -- controlled. This is used in init procs and aggregate expansions where
1362 -- the generated assignments are more initialisations than real
1363 -- assignments.
1364
1365 -- No_Elaboration_Check (Flag14-Sem)
1366 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1367 -- that no elaboration check is needed on the call, because it appears in
1368 -- the context of a local Suppress pragma. This is used on calls within
1369 -- task bodies, where the actual elaboration checks are applied after
1370 -- analysis, when the local scope stack is not present.
1371
1372 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1373 -- Present in N_With_Clause nodes. Set if the with clause is on the
1374 -- package or subprogram spec where the main unit is the corresponding
1375 -- body, and no entities of the with'ed unit are referenced by the spec
1376 -- (an entity may still be referenced in the body, so this flag is used
1377 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1378 -- full details)
1379
1380 -- No_Initialization (Flag13-Sem)
1381 -- Present in N_Object_Declaration & N_Allocator to indicate that the
1382 -- object must not be initialized (by Initialize or call to an init
1383 -- proc). This is needed for controlled aggregates. When the Object
1384 -- declaration has an expression, this flag means that this expression
1385 -- should not be taken into account (needed for in place initialization
1386 -- with aggregates)
1387
1388 -- No_Truncation (Flag17-Sem)
1389 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1390 -- only if the RM_Size of the source is greater than the RM_Size of the
1391 -- target for scalar operands. Normally in such a case we truncate some
1392 -- higher order bits of the source, and then sign/zero extend the result
1393 -- to form the output value. But if this flag is set, then we do not do
1394 -- any truncation, so for example, if an 8 bit input is converted to 5
1395 -- bit result which is in fact stored in 8 bits, then the high order
1396 -- three bits of the target result will be copied from the source. This
1397 -- is used for properly setting out of range values for use by pragmas
1398 -- Initialize_Scalars and Normalize_Scalars.
1399
1400 -- Original_Discriminant (Node2-Sem)
1401 -- Present in identifiers. Used in references to discriminants that
1402 -- appear in generic units. Because the names of the discriminants may be
1403 -- different in an instance, we use this field to recover the position of
1404 -- the discriminant in the original type, and replace it with the
1405 -- discriminant at the same position in the instantiated type.
1406
1407 -- Original_Entity (Node2-Sem)
1408 -- Present in numeric literals. Used to denote the named number that has
1409 -- been constant-folded into the given literal. If literal is from
1410 -- source, or the result of some other constant-folding operation, then
1411 -- Original_Entity is empty. This field is needed to handle properly
1412 -- named numbers in generic units, where the Associated_Node field
1413 -- interferes with the Entity field, making it impossible to preserve the
1414 -- original entity at the point of instantiation (ASIS problem).
1415
1416 -- Others_Discrete_Choices (List1-Sem)
1417 -- When a case statement or variant is analyzed, the semantic checks
1418 -- determine the actual list of choices that correspond to an others
1419 -- choice. This list is materialized for later use by the expander and
1420 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1421 -- this materialized list of choices, which is in standard format for a
1422 -- list of discrete choices, except that of course it cannot contain an
1423 -- N_Others_Choice entry.
1424
1425 -- Parameter_List_Truncated (Flag17-Sem)
1426 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1427 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1428 -- a result of a First_Optional_Parameter specification in an
1429 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1430 -- The truncation is done by the expander by removing trailing parameters
1431 -- from the argument list, in accordance with the set of rules allowing
1432 -- such parameter removal. In particular, parameters can be removed
1433 -- working from the end of the parameter list backwards up to and
1434 -- including the entry designated by First_Optional_Parameter in the
1435 -- Import pragma. Parameters can be removed if they are implicit and the
1436 -- default value is a known-at-compile-time value, including the use of
1437 -- the Null_Parameter attribute, or if explicit parameter values are
1438 -- present that match the corresponding defaults.
1439
1440 -- Parent_Spec (Node4-Sem)
1441 -- For a library unit that is a child unit spec (package or subprogram
1442 -- declaration, generic declaration or instantiation, or library level
1443 -- rename, this field points to the compilation unit node for the parent
1444 -- package specification. This field is Empty for library bodies (the
1445 -- parent spec in this case can be found from the corresponding spec).
1446
1447 -- Present_Expr (Uint3-Sem)
1448 -- Present in an N_Variant node. This has a meaningful value only after
1449 -- Gigi has back annotated the tree with representation information. At
1450 -- this point, it contains a reference to a gcc expression that depends
1451 -- on the values of one or more discriminants. Give a set of discriminant
1452 -- values, this expression evaluates to False (zero) if variant is not
1453 -- present, and True (non-zero) if it is present. See unit Repinfo for
1454 -- further details on gigi back annotation. This field is used during
1455 -- ASIS processing (data decomposition annex) to determine if a field is
1456 -- present or not.
1457
1458 -- Print_In_Hex (Flag13-Sem)
1459 -- Set on an N_Integer_Literal node to indicate that the value should be
1460 -- printed in hexadecimal in the sprint listing. Has no effect on
1461 -- legality or semantics of program, only on the displayed output. This
1462 -- is used to clarify output from the packed array cases.
1463
1464 -- Procedure_To_Call (Node2-Sem)
1465 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1466 -- and N_Extended_Return_Statement nodes. References the entity for the
1467 -- declaration of the procedure to be called to accomplish the required
1468 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1469 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1470 -- allocating the return value), and for the Deallocate procedure in the
1471 -- case of N_Free_Statement.
1472
1473 -- Raises_Constraint_Error (Flag7-Sem)
1474 -- Set on an expression whose evaluation will definitely fail constraint
1475 -- error check. In the case of static expressions, this flag must be set
1476 -- accurately (and if it is set, the expression is typically illegal
1477 -- unless it appears as a non-elaborated branch of a short-circuit form).
1478 -- For a non-static expression, this flag may be set whenever an
1479 -- expression (e.g. an aggregate) is known to raise constraint error. If
1480 -- set, the expression definitely will raise CE if elaborated at runtime.
1481 -- If not set, the expression may or may not raise CE. In other words, on
1482 -- static expressions, the flag is set accurately, on non-static
1483 -- expressions it is set conservatively.
1484
1485 -- Redundant_Use (Flag13-Sem)
1486 -- Present in nodes that can appear as an operand in a use clause or use
1487 -- type clause (identifiers, expanded names, attribute references). Set
1488 -- to indicate that a use is redundant (and therefore need not be undone
1489 -- on scope exit).
1490
1491 -- Renaming_Exception (Node2-Sem)
1492 -- Present in N_Exception_Declaration node. Used to point back to the
1493 -- exception renaming for an exception declared within a subprogram.
1494 -- What happens is that an exception declared in a subprogram is moved
1495 -- to the library level with a unique name, and the original exception
1496 -- becomes a renaming. This link from the library level exception to the
1497 -- renaming declaration allows registering of the proper exception name.
1498
1499 -- Return_Statement_Entity (Node5-Sem)
1500 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1501 -- Points to an E_Return_Statement representing the return statement.
1502
1503 -- Return_Object_Declarations (List3)
1504 -- Present in N_Extended_Return_Statement.
1505 -- Points to a list initially containing a single
1506 -- N_Object_Declaration representing the return object.
1507 -- We use a list (instead of just a pointer to the object decl)
1508 -- because Analyze wants to insert extra actions on this list.
1509
1510 -- Rounded_Result (Flag18-Sem)
1511 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1512 -- Used in the fixed-point cases to indicate that the result must be
1513 -- rounded as a result of the use of the 'Round attribute. Also used for
1514 -- integer N_Op_Divide nodes to indicate that the result should be
1515 -- rounded to the nearest integer (breaking ties away from zero), rather
1516 -- than truncated towards zero as usual. These rounded integer operations
1517 -- are the result of expansion of rounded fixed-point divide, conversion
1518 -- and multiplication operations.
1519
1520 -- Scope (Node3-Sem)
1521 -- Present in defining identifiers, defining character literals and
1522 -- defining operator symbols (i.e. in all entities). The entities of a
1523 -- scope all use this field to reference the corresponding scope entity.
1524 -- See Einfo for further details.
1525
1526 -- Shift_Count_OK (Flag4-Sem)
1527 -- A flag present in shift nodes to indicate that the shift count is
1528 -- known to be in range, i.e. is in the range from zero to word length
1529 -- minus one. If this flag is not set, then the shift count may be
1530 -- outside this range, i.e. larger than the word length, and the code
1531 -- must ensure that such shift counts give the appropriate result.
1532
1533 -- Source_Type (Node1-Sem)
1534 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1535 -- source type entity for the unchecked conversion instantiation
1536 -- which gigi must do size validation for.
1537
1538 -- Static_Processing_OK (Flag4-Sem)
1539 -- Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1540 -- flag is set, the full value of the aggregate can be determined at
1541 -- compile time and the aggregate can be passed as is to the back-end.
1542 -- In this event it is irrelevant whether this flag is set or not.
1543 -- However, if the flag Compile_Time_Known_Aggregate is not set but
1544 -- Static_Processing_OK is set, the aggregate can (but need not) be
1545 -- converted into a compile time known aggregate by the expander. See
1546 -- Sem_Aggr for the specific conditions under which an aggregate has its
1547 -- Static_Processing_OK flag set.
1548
1549 -- Storage_Pool (Node1-Sem)
1550 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1551 -- and N_Extended_Return_Statement nodes. References the entity for the
1552 -- storage pool to be used for the allocate or free call or for the
1553 -- allocation of the returned value from function. Empty indicates that
1554 -- the global default default pool is to be used. Note that in the case
1555 -- of a return statement, this field is set only if the function returns
1556 -- value of a type whose size is not known at compile time on the
1557 -- secondary stack.
1558
1559 -- Target_Type (Node2-Sem)
1560 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1561 -- type entity for the unchecked conversion instantiation which gigi must
1562 -- do size validation for.
1563
1564 -- Then_Actions (List3-Sem)
1565 -- This field is present in conditional expression nodes. During code
1566 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1567 -- actions at an appropriate place in the tree to get elaborated at the
1568 -- right time. For conditional expressions, we have to be sure that the
1569 -- actions for the Then branch are only elaborated if the condition is
1570 -- True. The Then_Actions field is used as a temporary parking place for
1571 -- these actions. The final tree is always rewritten to eliminate the
1572 -- need for this field, so in the tree passed to Gigi, this field is
1573 -- always set to No_List.
1574
1575 -- Treat_Fixed_As_Integer (Flag14-Sem)
1576 -- This flag appears in operator nodes for divide, multiply, mod and rem
1577 -- on fixed-point operands. It indicates that the operands are to be
1578 -- treated as integer values, ignoring small values. This flag is only
1579 -- set as a result of expansion of fixed-point operations. Typically a
1580 -- fixed-point multplication in the source generates subsidiary
1581 -- multiplication and division operations that work with the underlying
1582 -- integer values and have this flag set. Note that this flag is not
1583 -- needed on other arithmetic operations (add, neg, subtract etc) since
1584 -- in these cases it is always the case that fixed is treated as integer.
1585 -- The Etype field MUST be set if this flag is set. The analyzer knows to
1586 -- leave such nodes alone, and whoever makes them must set the correct
1587 -- Etype value.
1588
1589 -- TSS_Elist (Elist3-Sem)
1590 -- Present in N_Freeze_Entity nodes. Holds an element list containing
1591 -- entries for each TSS (type support subprogram) associated with the
1592 -- frozen type. The elements of the list are the entities for the
1593 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
1594 -- if there are no type support subprograms for the type or if the freeze
1595 -- node is not for a type.
1596
1597 -- Unreferenced_In_Spec (Flag7-Sem)
1598 -- Present in N_With_Clause nodes. Set if the with clause is on the
1599 -- package or subprogram spec where the main unit is the corresponding
1600 -- body, and is not referenced by the spec (it may still be referenced by
1601 -- the body, so this flag is used to generate the proper message (see
1602 -- Sem_Util.Check_Unused_Withs for details)
1603
1604 -- Was_Originally_Stub (Flag13-Sem)
1605 -- This flag is set in the node for a proper body that replaces stub.
1606 -- During the analysis procedure, stubs in some situations get rewritten
1607 -- by the corresponding bodies, and we set this flag to remember that
1608 -- this happened. Note that it is not good enough to rely on the use of
1609 -- Original_Node here because of the case of nested instantiations where
1610 -- the substituted node can be copied.
1611
1612 -- Zero_Cost_Handling (Flag5-Sem)
1613 -- This flag is set in all handled sequence of statement and exception
1614 -- handler nodes if eceptions are to be handled using the zero-cost
1615 -- mechanism (see Ada.Exceptions and System.Exceptions in files
1616 -- a-except.ads/adb and s-except.ads for full details). What gigi needs
1617 -- to do for such a handler is simply to put the code in the handler
1618 -- somewhere. The front end has generated all necessary labels.
1619
1620 --------------------------------------------------
1621 -- Note on Use of End_Label and End_Span Fields --
1622 --------------------------------------------------
1623
1624 -- Several constructs have end lines:
1625
1626 -- Loop Statement end loop [loop_IDENTIFIER];
1627 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
1628 -- Task Definition end [task_IDENTIFIER]
1629 -- Protected Definition end [protected_IDENTIFIER]
1630 -- Protected Body end [protected_IDENTIFIER]
1631
1632 -- Block Statement end [block_IDENTIFIER];
1633 -- Subprogram Body end [DESIGNATOR];
1634 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
1635 -- Task Body end [task_IDENTIFIER];
1636 -- Accept Statement end [entry_IDENTIFIER]];
1637 -- Entry Body end [entry_IDENTIFIER];
1638
1639 -- If Statement end if;
1640 -- Case Statement end case;
1641
1642 -- Record Definition end record;
1643 -- Enumeration Definition );
1644
1645 -- The End_Label and End_Span fields are used to mark the locations of
1646 -- these lines, and also keep track of the label in the case where a label
1647 -- is present.
1648
1649 -- For the first group above, the End_Label field of the corresponding node
1650 -- is used to point to the label identifier. In the case where there is no
1651 -- label in the source, the parser supplies a dummy identifier (with
1652 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
1653 -- marks the location of the token following the END token.
1654
1655 -- For the second group, the use of End_Label is similar, but the End_Label
1656 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
1657 -- simply because in some cases there is no room in the parent node.
1658
1659 -- For the third group, there is never any label, and instead of using
1660 -- End_Label, we use the End_Span field which gives the location of the
1661 -- token following END, relative to the starting Sloc of the construct,
1662 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1663 -- following the End_Label.
1664
1665 -- The record definition case is handled specially, we treat it as though
1666 -- it required an optional label which is never present, and so the parser
1667 -- always builds a dummy identifier with Comes From Source set False. The
1668 -- reason we do this, rather than using End_Span in this case, is that we
1669 -- want to generate a cross-ref entry for the end of a record, since it
1670 -- represents a scope for name declaration purposes.
1671
1672 -- The enumeration definition case is handled in an exactly similar manner,
1673 -- building a dummy identifier to get a cross-reference.
1674
1675 -- Note: the reason we store the difference as a Uint, instead of storing
1676 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
1677 -- distinguished from other types of values, and we count on all general
1678 -- use fields being self describing. To make things easier for clients,
1679 -- note that we provide function End_Location, and procedure
1680 -- Set_End_Location to allow access to the logical value (which is the
1681 -- Source_Ptr value for the end token).
1682
1683 ---------------------
1684 -- Syntactic Nodes --
1685 ---------------------
1686
1687 ---------------------
1688 -- 2.3 Identifier --
1689 ---------------------
1690
1691 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1692 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1693
1694 -- An IDENTIFIER shall not be a reserved word
1695
1696 -- In the Ada grammar identifiers are the bottom level tokens which have
1697 -- very few semantics. Actual program identifiers are direct names. If
1698 -- we were being 100% honest with the grammar, then we would have a node
1699 -- called N_Direct_Name which would point to an identifier. However,
1700 -- that's too many extra nodes, so we just use the N_Identifier node
1701 -- directly as a direct name, and it contains the expression fields and
1702 -- Entity field that correspond to its use as a direct name. In those
1703 -- few cases where identifiers appear in contexts where they are not
1704 -- direct names (pragmas, pragma argument associations, attribute
1705 -- references and attribute definition clauses), the Chars field of the
1706 -- node contains the Name_Id for the identifier name.
1707
1708 -- Note: in GNAT, a reserved word can be treated as an identifier in two
1709 -- cases. First, an incorrect use of a reserved word as an identifier is
1710 -- diagnosed and then treated as a normal identifier. Second, an
1711 -- attribute designator of the form of a reserved word (access, delta,
1712 -- digits, range) is treated as an identifier.
1713
1714 -- Note: The set of letters that is permitted in an identifier depends
1715 -- on the character set in use. See package Csets for full details.
1716
1717 -- N_Identifier
1718 -- Sloc points to identifier
1719 -- Chars (Name1) contains the Name_Id for the identifier
1720 -- Entity (Node4-Sem)
1721 -- Associated_Node (Node4-Sem)
1722 -- Original_Discriminant (Node2-Sem)
1723 -- Redundant_Use (Flag13-Sem)
1724 -- Has_Private_View (Flag11-Sem) (set in generic units)
1725 -- plus fields for expression
1726
1727 --------------------------
1728 -- 2.4 Numeric Literal --
1729 --------------------------
1730
1731 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1732
1733 ----------------------------
1734 -- 2.4.1 Decimal Literal --
1735 ----------------------------
1736
1737 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1738
1739 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1740
1741 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1742
1743 -- Decimal literals appear in the tree as either integer literal nodes
1744 -- or real literal nodes, depending on whether a period is present.
1745
1746 -- Note: literal nodes appear as a result of direct use of literals
1747 -- in the source program, and also as the result of evaluating
1748 -- expressions at compile time. In the latter case, it is possible
1749 -- to construct real literals that have no syntactic representation
1750 -- using the standard literal format. Such literals are listed by
1751 -- Sprint using the notation [numerator / denominator].
1752
1753 -- Note: the value of an integer literal node created by the front end
1754 -- is never outside the range of values of the base type. However, it
1755 -- can be the case that the value is outside the range of the
1756 -- particular subtype. This happens in the case of integer overflows
1757 -- with checks suppressed.
1758
1759 -- N_Integer_Literal
1760 -- Sloc points to literal
1761 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1762 -- has been constant-folded into its literal value.
1763 -- Intval (Uint3) contains integer value of literal
1764 -- plus fields for expression
1765 -- Print_In_Hex (Flag13-Sem)
1766
1767 -- N_Real_Literal
1768 -- Sloc points to literal
1769 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1770 -- has been constant-folded into its literal value.
1771 -- Realval (Ureal3) contains real value of literal
1772 -- Corresponding_Integer_Value (Uint4-Sem)
1773 -- Is_Machine_Number (Flag11-Sem)
1774 -- plus fields for expression
1775
1776 --------------------------
1777 -- 2.4.2 Based Literal --
1778 --------------------------
1779
1780 -- BASED_LITERAL ::=
1781 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1782
1783 -- BASE ::= NUMERAL
1784
1785 -- BASED_NUMERAL ::=
1786 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1787
1788 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1789
1790 -- Based literals appear in the tree as either integer literal nodes
1791 -- or real literal nodes, depending on whether a period is present.
1792
1793 ----------------------------
1794 -- 2.5 Character Literal --
1795 ----------------------------
1796
1797 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1798
1799 -- N_Character_Literal
1800 -- Sloc points to literal
1801 -- Chars (Name1) contains the Name_Id for the identifier
1802 -- Char_Literal_Value (Uint2) contains the literal value
1803 -- Entity (Node4-Sem)
1804 -- Associated_Node (Node4-Sem)
1805 -- Has_Private_View (Flag11-Sem) set in generic units.
1806 -- plus fields for expression
1807
1808 -- Note: the Entity field will be missing (set to Empty) for character
1809 -- literals whose type is Standard.Wide_Character or Standard.Character
1810 -- or a type derived from one of these two. In this case the character
1811 -- literal stands for its own coding. The reason we take this irregular
1812 -- short cut is to avoid the need to build lots of junk defining
1813 -- character literal nodes.
1814
1815 -------------------------
1816 -- 2.6 String Literal --
1817 -------------------------
1818
1819 -- STRING LITERAL ::= "{STRING_ELEMENT}"
1820
1821 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
1822 -- single GRAPHIC_CHARACTER other than a quotation mark.
1823
1824 -- N_String_Literal
1825 -- Sloc points to literal
1826 -- Strval (Str3) contains Id of string value
1827 -- Has_Wide_Character (Flag11-Sem)
1828 -- plus fields for expression
1829
1830 ------------------
1831 -- 2.7 Comment --
1832 ------------------
1833
1834 -- A COMMENT starts with two adjacent hyphens and extends up to the
1835 -- end of the line. A COMMENT may appear on any line of a program.
1836
1837 -- Comments are skipped by the scanner and do not appear in the tree.
1838 -- It is possible to reconstruct the position of comments with respect
1839 -- to the elements of the tree by using the source position (Sloc)
1840 -- pointers that appear in every tree node.
1841
1842 -----------------
1843 -- 2.8 Pragma --
1844 -----------------
1845
1846 -- PRAGMA ::= pragma IDENTIFIER
1847 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
1848
1849 -- Note that a pragma may appear in the tree anywhere a declaration
1850 -- or a statement may appear, as well as in some other situations
1851 -- which are explicitly documented.
1852
1853 -- N_Pragma
1854 -- Sloc points to PRAGMA
1855 -- Chars (Name1) identifier name from pragma identifier
1856 -- Pragma_Argument_Associations (List2) (set to No_List if none)
1857 -- Debug_Statement (Node3) (set to Empty if not Debug, Assert)
1858 -- Next_Rep_Item (Node5-Sem)
1859
1860 -- Note: we should have a section on what pragmas are passed on to
1861 -- the back end to be processed. This section should note that pragma
1862 -- Psect_Object is always converted to Common_Object, but there are
1863 -- undoubtedly many other similar notes required ???
1864
1865 --------------------------------------
1866 -- 2.8 Pragma Argument Association --
1867 --------------------------------------
1868
1869 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
1870 -- [pragma_argument_IDENTIFIER =>] NAME
1871 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
1872
1873 -- N_Pragma_Argument_Association
1874 -- Sloc points to first token in association
1875 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
1876 -- Expression (Node3)
1877
1878 ------------------------
1879 -- 2.9 Reserved Word --
1880 ------------------------
1881
1882 -- Reserved words are parsed by the scanner, and returned as the
1883 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
1884
1885 ----------------------------
1886 -- 3.1 Basic Declaration --
1887 ----------------------------
1888
1889 -- BASIC_DECLARATION ::=
1890 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
1891 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
1892 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
1893 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
1894 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
1895 -- | GENERIC_INSTANTIATION
1896
1897 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
1898 -- see further description in section on semantic nodes.
1899
1900 -- Also, in the tree that is constructed, a pragma may appear
1901 -- anywhere that a declaration may appear.
1902
1903 ------------------------------
1904 -- 3.1 Defining Identifier --
1905 ------------------------------
1906
1907 -- DEFINING_IDENTIFIER ::= IDENTIFIER
1908
1909 -- A defining identifier is an entity, which has additional fields
1910 -- depending on the setting of the Ekind field. These additional
1911 -- fields are defined (and access subprograms declared) in package
1912 -- Einfo.
1913
1914 -- Note: N_Defining_Identifier is an extended node whose fields are
1915 -- deliberate layed out to match the layout of fields in an ordinary
1916 -- N_Identifier node allowing for easy alteration of an identifier
1917 -- node into a defining identifier node. For details, see procedure
1918 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
1919
1920 -- N_Defining_Identifier
1921 -- Sloc points to identifier
1922 -- Chars (Name1) contains the Name_Id for the identifier
1923 -- Next_Entity (Node2-Sem)
1924 -- Scope (Node3-Sem)
1925 -- Etype (Node5-Sem)
1926
1927 -----------------------------
1928 -- 3.2.1 Type Declaration --
1929 -----------------------------
1930
1931 -- TYPE_DECLARATION ::=
1932 -- FULL_TYPE_DECLARATION
1933 -- | INCOMPLETE_TYPE_DECLARATION
1934 -- | PRIVATE_TYPE_DECLARATION
1935 -- | PRIVATE_EXTENSION_DECLARATION
1936
1937 ----------------------------------
1938 -- 3.2.1 Full Type Declaration --
1939 ----------------------------------
1940
1941 -- FULL_TYPE_DECLARATION ::=
1942 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
1943 -- is TYPE_DEFINITION;
1944 -- | TASK_TYPE_DECLARATION
1945 -- | PROTECTED_TYPE_DECLARATION
1946
1947 -- The full type declaration node is used only for the first case. The
1948 -- second case (concurrent type declaration), is represented directly
1949 -- by a task type declaration or a protected type declaration.
1950
1951 -- N_Full_Type_Declaration
1952 -- Sloc points to TYPE
1953 -- Defining_Identifier (Node1)
1954 -- Discriminant_Specifications (List4) (set to No_List if none)
1955 -- Type_Definition (Node3)
1956 -- Discr_Check_Funcs_Built (Flag11-Sem)
1957
1958 ----------------------------
1959 -- 3.2.1 Type Definition --
1960 ----------------------------
1961
1962 -- TYPE_DEFINITION ::=
1963 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
1964 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
1965 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
1966 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
1967
1968 --------------------------------
1969 -- 3.2.2 Subtype Declaration --
1970 --------------------------------
1971
1972 -- SUBTYPE_DECLARATION ::=
1973 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
1974
1975 -- The subtype indication field is set to Empty for subtypes
1976 -- declared in package Standard (Positive, Natural).
1977
1978 -- N_Subtype_Declaration
1979 -- Sloc points to SUBTYPE
1980 -- Defining_Identifier (Node1)
1981 -- Null_Exclusion_Present (Flag11)
1982 -- Subtype_Indication (Node5)
1983 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
1984 -- Exception_Junk (Flag8-Sem)
1985
1986 -------------------------------
1987 -- 3.2.2 Subtype Indication --
1988 -------------------------------
1989
1990 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
1991
1992 -- Note: if no constraint is present, the subtype indication appears
1993 -- directly in the tree as a subtype mark. The N_Subtype_Indication
1994 -- node is used only if a constraint is present.
1995
1996 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
1997 -- with the null-exclusion part (see AI-231), we had to introduce a new
1998 -- attribute in all the parents of subtype_indication nodes to indicate
1999 -- if the null-exclusion is present.
2000
2001 -- Note: the reason that this node has expression fields is that a
2002 -- subtype indication can appear as an operand of a membership test.
2003
2004 -- N_Subtype_Indication
2005 -- Sloc points to first token of subtype mark
2006 -- Subtype_Mark (Node4)
2007 -- Constraint (Node3)
2008 -- Etype (Node5-Sem)
2009 -- Must_Not_Freeze (Flag8-Sem)
2010
2011 -- Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2012 -- reason for this redundancy is so that in a list of array index types,
2013 -- the Etype can be uniformly accessed to determine the subscript type.
2014 -- This means that no Itype is constructed for the actual subtype that
2015 -- is created by the subtype indication. If such an Itype is required,
2016 -- it is constructed in the context in which the indication appears.
2017
2018 -------------------------
2019 -- 3.2.2 Subtype Mark --
2020 -------------------------
2021
2022 -- SUBTYPE_MARK ::= subtype_NAME
2023
2024 -----------------------
2025 -- 3.2.2 Constraint --
2026 -----------------------
2027
2028 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2029
2030 ------------------------------
2031 -- 3.2.2 Scalar Constraint --
2032 ------------------------------
2033
2034 -- SCALAR_CONSTRAINT ::=
2035 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2036
2037 ---------------------------------
2038 -- 3.2.2 Composite Constraint --
2039 ---------------------------------
2040
2041 -- COMPOSITE_CONSTRAINT ::=
2042 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2043
2044 -------------------------------
2045 -- 3.3.1 Object Declaration --
2046 -------------------------------
2047
2048 -- OBJECT_DECLARATION ::=
2049 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2050 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION];
2051 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2052 -- ACCESS_DEFINITION [:= EXPRESSION];
2053 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2054 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION];
2055 -- | SINGLE_TASK_DECLARATION
2056 -- | SINGLE_PROTECTED_DECLARATION
2057
2058 -- Note: aliased is not permitted in Ada 83 mode
2059
2060 -- The N_Object_Declaration node is only for the first two cases.
2061 -- Single task declaration is handled by P_Task (9.1)
2062 -- Single protected declaration is handled by P_protected (9.5)
2063
2064 -- Although the syntax allows multiple identifiers in the list, the
2065 -- semantics is as though successive declarations were given with
2066 -- identical type definition and expression components. To simplify
2067 -- semantic processing, the parser represents a multiple declaration
2068 -- case as a sequence of single declarations, using the More_Ids and
2069 -- Prev_Ids flags to preserve the original source form as described
2070 -- in the section on "Handling of Defining Identifier Lists".
2071
2072 -- The flag Has_Init_Expression is set if an initializing expression
2073 -- is present. Normally it is set if and only if Expression contains
2074 -- a non-empty value, but there is an exception to this. When the
2075 -- initializing expression is an aggregate which requires explicit
2076 -- assignments, the Expression field gets set to Empty, but this flag
2077 -- is still set, so we don't forget we had an initializing expression.
2078
2079 -- Note: if a range check is required for the initialization
2080 -- expression then the Do_Range_Check flag is set in the Expression,
2081 -- with the check being done against the type given by the object
2082 -- definition, which is also the Etype of the defining identifier.
2083
2084 -- Note: the contents of the Expression field must be ignored (i.e.
2085 -- treated as though it were Empty) if No_Initialization is set True.
2086
2087 -- Note: the back end places some restrictions on the form of the
2088 -- Expression field. If the object being declared is Atomic, then
2089 -- the Expression may not have the form of an aggregate (since this
2090 -- might cause the back end to generate separate assignments). It
2091 -- also cannot be a reference to an object marked as a true constant
2092 -- (Is_True_Constant flag set), where the object is itself initalized
2093 -- with an aggregate. If necessary the front end must generate an
2094 -- extra temporary (with Is_True_Constant set False), and initialize
2095 -- this temporary as required (the temporary itself is not atomic).
2096
2097 -- Note: there is not node kind for object definition. Instead, the
2098 -- corresponding field holds a subtype indication, an array type
2099 -- definition, or (Ada 2005, AI-406) an access definition.
2100
2101 -- N_Object_Declaration
2102 -- Sloc points to first identifier
2103 -- Defining_Identifier (Node1)
2104 -- Aliased_Present (Flag4) set if ALIASED appears
2105 -- Constant_Present (Flag17) set if CONSTANT appears
2106 -- Null_Exclusion_Present (Flag11)
2107 -- Object_Definition (Node4) subtype indic./array type def./ access def.
2108 -- Expression (Node3) (set to Empty if not present)
2109 -- Handler_List_Entry (Node2-Sem)
2110 -- Corresponding_Generic_Association (Node5-Sem)
2111 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2112 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2113 -- No_Initialization (Flag13-Sem)
2114 -- Assignment_OK (Flag15-Sem)
2115 -- Exception_Junk (Flag8-Sem)
2116 -- Is_Subprogram_Descriptor (Flag16-Sem)
2117 -- Has_Init_Expression (Flag14)
2118
2119 -------------------------------------
2120 -- 3.3.1 Defining Identifier List --
2121 -------------------------------------
2122
2123 -- DEFINING_IDENTIFIER_LIST ::=
2124 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2125
2126 -------------------------------
2127 -- 3.3.2 Number Declaration --
2128 -------------------------------
2129
2130 -- NUMBER_DECLARATION ::=
2131 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2132
2133 -- Although the syntax allows multiple identifiers in the list, the
2134 -- semantics is as though successive declarations were given with
2135 -- identical expressions. To simplify semantic processing, the parser
2136 -- represents a multiple declaration case as a sequence of single
2137 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2138 -- the original source form as described in the section on "Handling
2139 -- of Defining Identifier Lists".
2140
2141 -- N_Number_Declaration
2142 -- Sloc points to first identifier
2143 -- Defining_Identifier (Node1)
2144 -- Expression (Node3)
2145 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2146 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2147
2148 ----------------------------------
2149 -- 3.4 Derived Type Definition --
2150 ----------------------------------
2151
2152 -- DERIVED_TYPE_DEFINITION ::=
2153 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2154 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2155
2156 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2157 -- in Ada 83 mode
2158
2159 -- Note: a record extension part is required if ABSTRACT is present
2160
2161 -- N_Derived_Type_Definition
2162 -- Sloc points to NEW
2163 -- Abstract_Present (Flag4)
2164 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2165 -- Subtype_Indication (Node5)
2166 -- Record_Extension_Part (Node3) (set to Empty if not present)
2167 -- Limited_Present (Flag17)
2168 -- Task_Present (Flag5) set in task interfaces
2169 -- Protected_Present (Flag6) set in protected interfaces
2170 -- Synchronized_Present (Flag7) set in interfaces
2171 -- Interface_List (List2) (set to No_List if none)
2172 -- Interface_Present (Flag16) set in abstract interfaces
2173
2174 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2175 -- Interface_List, and Interface_Present are used for abstract
2176 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2177
2178 ---------------------------
2179 -- 3.5 Range Constraint --
2180 ---------------------------
2181
2182 -- RANGE_CONSTRAINT ::= range RANGE
2183
2184 -- N_Range_Constraint
2185 -- Sloc points to RANGE
2186 -- Range_Expression (Node4)
2187
2188 ----------------
2189 -- 3.5 Range --
2190 ----------------
2191
2192 -- RANGE ::=
2193 -- RANGE_ATTRIBUTE_REFERENCE
2194 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2195
2196 -- Note: the case of a range given as a range attribute reference
2197 -- appears directly in the tree as an attribute reference.
2198
2199 -- Note: the field name for a reference to a range is Range_Expression
2200 -- rather than Range, because range is a reserved keyword in Ada!
2201
2202 -- Note: the reason that this node has expression fields is that a
2203 -- range can appear as an operand of a membership test. The Etype
2204 -- field is the type of the range (we do NOT construct an implicit
2205 -- subtype to represent the range exactly).
2206
2207 -- N_Range
2208 -- Sloc points to ..
2209 -- Low_Bound (Node1)
2210 -- High_Bound (Node2)
2211 -- Includes_Infinities (Flag11)
2212 -- plus fields for expression
2213
2214 -- Note: if the range appears in a context, such as a subtype
2215 -- declaration, where range checks are required on one or both of
2216 -- the expression fields, then type conversion nodes are inserted
2217 -- to represent the required checks.
2218
2219 ----------------------------------------
2220 -- 3.5.1 Enumeration Type Definition --
2221 ----------------------------------------
2222
2223 -- ENUMERATION_TYPE_DEFINITION ::=
2224 -- (ENUMERATION_LITERAL_SPECIFICATION
2225 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2226
2227 -- Note: the Literals field in the node described below is null for
2228 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2229 -- which special processing handles these types as special cases.
2230
2231 -- N_Enumeration_Type_Definition
2232 -- Sloc points to left parenthesis
2233 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2234 -- End_Label (Node4) (set to Empty if internally generated record)
2235
2236 ----------------------------------------------
2237 -- 3.5.1 Enumeration Literal Specification --
2238 ----------------------------------------------
2239
2240 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2241 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2242
2243 ---------------------------------------
2244 -- 3.5.1 Defining Character Literal --
2245 ---------------------------------------
2246
2247 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2248
2249 -- A defining character literal is an entity, which has additional
2250 -- fields depending on the setting of the Ekind field. These
2251 -- additional fields are defined (and access subprograms declared)
2252 -- in package Einfo.
2253
2254 -- Note: N_Defining_Character_Literal is an extended node whose fields
2255 -- are deliberate layed out to match the layout of fields in an ordinary
2256 -- N_Character_Literal node allowing for easy alteration of a character
2257 -- literal node into a defining character literal node. For details, see
2258 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2259
2260 -- N_Defining_Character_Literal
2261 -- Sloc points to literal
2262 -- Chars (Name1) contains the Name_Id for the identifier
2263 -- Next_Entity (Node2-Sem)
2264 -- Scope (Node3-Sem)
2265 -- Etype (Node5-Sem)
2266
2267 ------------------------------------
2268 -- 3.5.4 Integer Type Definition --
2269 ------------------------------------
2270
2271 -- Note: there is an error in this rule in the latest version of the
2272 -- grammar, so we have retained the old rule pending clarification.
2273
2274 -- INTEGER_TYPE_DEFINITION ::=
2275 -- SIGNED_INTEGER_TYPE_DEFINITION
2276 -- | MODULAR_TYPE_DEFINITION
2277
2278 -------------------------------------------
2279 -- 3.5.4 Signed Integer Type Definition --
2280 -------------------------------------------
2281
2282 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2283 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2284
2285 -- Note: the Low_Bound and High_Bound fields are set to Empty
2286 -- for integer types defined in package Standard.
2287
2288 -- N_Signed_Integer_Type_Definition
2289 -- Sloc points to RANGE
2290 -- Low_Bound (Node1)
2291 -- High_Bound (Node2)
2292
2293 ------------------------------------
2294 -- 3.5.4 Modular Type Definition --
2295 ------------------------------------
2296
2297 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2298
2299 -- N_Modular_Type_Definition
2300 -- Sloc points to MOD
2301 -- Expression (Node3)
2302
2303 ---------------------------------
2304 -- 3.5.6 Real Type Definition --
2305 ---------------------------------
2306
2307 -- REAL_TYPE_DEFINITION ::=
2308 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2309
2310 --------------------------------------
2311 -- 3.5.7 Floating Point Definition --
2312 --------------------------------------
2313
2314 -- FLOATING_POINT_DEFINITION ::=
2315 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2316
2317 -- Note: The Digits_Expression and Real_Range_Specifications fields
2318 -- are set to Empty for floating-point types declared in Standard.
2319
2320 -- N_Floating_Point_Definition
2321 -- Sloc points to DIGITS
2322 -- Digits_Expression (Node2)
2323 -- Real_Range_Specification (Node4) (set to Empty if not present)
2324
2325 -------------------------------------
2326 -- 3.5.7 Real Range Specification --
2327 -------------------------------------
2328
2329 -- REAL_RANGE_SPECIFICATION ::=
2330 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2331
2332 -- N_Real_Range_Specification
2333 -- Sloc points to RANGE
2334 -- Low_Bound (Node1)
2335 -- High_Bound (Node2)
2336
2337 -----------------------------------
2338 -- 3.5.9 Fixed Point Definition --
2339 -----------------------------------
2340
2341 -- FIXED_POINT_DEFINITION ::=
2342 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2343
2344 --------------------------------------------
2345 -- 3.5.9 Ordinary Fixed Point Definition --
2346 --------------------------------------------
2347
2348 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2349 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2350
2351 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2352
2353 -- N_Ordinary_Fixed_Point_Definition
2354 -- Sloc points to DELTA
2355 -- Delta_Expression (Node3)
2356 -- Real_Range_Specification (Node4)
2357
2358 -------------------------------------------
2359 -- 3.5.9 Decimal Fixed Point Definition --
2360 -------------------------------------------
2361
2362 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2363 -- delta static_EXPRESSION
2364 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2365
2366 -- Note: decimal types are not permitted in Ada 83 mode
2367
2368 -- N_Decimal_Fixed_Point_Definition
2369 -- Sloc points to DELTA
2370 -- Delta_Expression (Node3)
2371 -- Digits_Expression (Node2)
2372 -- Real_Range_Specification (Node4) (set to Empty if not present)
2373
2374 ------------------------------
2375 -- 3.5.9 Digits Constraint --
2376 ------------------------------
2377
2378 -- DIGITS_CONSTRAINT ::=
2379 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2380
2381 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2382 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2383
2384 -- N_Digits_Constraint
2385 -- Sloc points to DIGITS
2386 -- Digits_Expression (Node2)
2387 -- Range_Constraint (Node4) (set to Empty if not present)
2388
2389 --------------------------------
2390 -- 3.6 Array Type Definition --
2391 --------------------------------
2392
2393 -- ARRAY_TYPE_DEFINITION ::=
2394 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2395
2396 -----------------------------------------
2397 -- 3.6 Unconstrained Array Definition --
2398 -----------------------------------------
2399
2400 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2401 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2402 -- COMPONENT_DEFINITION
2403
2404 -- Note: dimensionality of array is indicated by number of entries in
2405 -- the Subtype_Marks list, which has one entry for each dimension.
2406
2407 -- N_Unconstrained_Array_Definition
2408 -- Sloc points to ARRAY
2409 -- Subtype_Marks (List2)
2410 -- Component_Definition (Node4)
2411
2412 -----------------------------------
2413 -- 3.6 Index Subtype Definition --
2414 -----------------------------------
2415
2416 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2417
2418 -- There is no explicit node in the tree for an index subtype
2419 -- definition since the N_Unconstrained_Array_Definition node
2420 -- incorporates the type marks which appear in this context.
2421
2422 ---------------------------------------
2423 -- 3.6 Constrained Array Definition --
2424 ---------------------------------------
2425
2426 -- CONSTRAINED_ARRAY_DEFINITION ::=
2427 -- array (DISCRETE_SUBTYPE_DEFINITION
2428 -- {, DISCRETE_SUBTYPE_DEFINITION})
2429 -- of COMPONENT_DEFINITION
2430
2431 -- Note: dimensionality of array is indicated by number of entries
2432 -- in the Discrete_Subtype_Definitions list, which has one entry
2433 -- for each dimension.
2434
2435 -- N_Constrained_Array_Definition
2436 -- Sloc points to ARRAY
2437 -- Discrete_Subtype_Definitions (List2)
2438 -- Component_Definition (Node4)
2439
2440 --------------------------------------
2441 -- 3.6 Discrete Subtype Definition --
2442 --------------------------------------
2443
2444 -- DISCRETE_SUBTYPE_DEFINITION ::=
2445 -- discrete_SUBTYPE_INDICATION | RANGE
2446
2447 -------------------------------
2448 -- 3.6 Component Definition --
2449 -------------------------------
2450
2451 -- COMPONENT_DEFINITION ::=
2452 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2453
2454 -- Note: although the syntax does not permit a component definition to
2455 -- be an anonymous array (and the parser will diagnose such an attempt
2456 -- with an appropriate message), it is possible for anonymous arrays
2457 -- to appear as component definitions. The semantics and back end handle
2458 -- this case properly, and the expander in fact generates such cases.
2459 -- Access_Definition is an optional field that gives support to
2460 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2461 -- Subtype_Indication field or else the Access_Definition field.
2462
2463 -- N_Component_Definition
2464 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2465 -- Aliased_Present (Flag4)
2466 -- Null_Exclusion_Present (Flag11)
2467 -- Subtype_Indication (Node5) (set to Empty if not present)
2468 -- Access_Definition (Node3) (set to Empty if not present)
2469
2470 -----------------------------
2471 -- 3.6.1 Index Constraint --
2472 -----------------------------
2473
2474 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2475
2476 -- It is not in general possible to distinguish between discriminant
2477 -- constraints and index constraints at parse time, since a simple
2478 -- name could be either the subtype mark of a discrete range, or an
2479 -- expression in a discriminant association with no name. Either
2480 -- entry appears simply as the name, and the semantic parse must
2481 -- distinguish between the two cases. Thus we use a common tree
2482 -- node format for both of these constraint types.
2483
2484 -- See Discriminant_Constraint for format of node
2485
2486 ---------------------------
2487 -- 3.6.1 Discrete Range --
2488 ---------------------------
2489
2490 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2491
2492 ----------------------------
2493 -- 3.7 Discriminant Part --
2494 ----------------------------
2495
2496 -- DISCRIMINANT_PART ::=
2497 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2498
2499 ------------------------------------
2500 -- 3.7 Unknown Discriminant Part --
2501 ------------------------------------
2502
2503 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2504
2505 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2506
2507 -- There is no explicit node in the tree for an unknown discriminant
2508 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2509 -- parent node.
2510
2511 ----------------------------------
2512 -- 3.7 Known Discriminant Part --
2513 ----------------------------------
2514
2515 -- KNOWN_DISCRIMINANT_PART ::=
2516 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2517
2518 -------------------------------------
2519 -- 3.7 Discriminant Specification --
2520 -------------------------------------
2521
2522 -- DISCRIMINANT_SPECIFICATION ::=
2523 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2524 -- [:= DEFAULT_EXPRESSION]
2525 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2526 -- [:= DEFAULT_EXPRESSION]
2527
2528 -- Although the syntax allows multiple identifiers in the list, the
2529 -- semantics is as though successive specifications were given with
2530 -- identical type definition and expression components. To simplify
2531 -- semantic processing, the parser represents a multiple declaration
2532 -- case as a sequence of single specifications, using the More_Ids and
2533 -- Prev_Ids flags to preserve the original source form as described
2534 -- in the section on "Handling of Defining Identifier Lists".
2535
2536 -- N_Discriminant_Specification
2537 -- Sloc points to first identifier
2538 -- Defining_Identifier (Node1)
2539 -- Null_Exclusion_Present (Flag11)
2540 -- Discriminant_Type (Node5) subtype mark or access parameter definition
2541 -- Expression (Node3) (set to Empty if no default expression)
2542 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2543 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2544
2545 -----------------------------
2546 -- 3.7 Default Expression --
2547 -----------------------------
2548
2549 -- DEFAULT_EXPRESSION ::= EXPRESSION
2550
2551 ------------------------------------
2552 -- 3.7.1 Discriminant Constraint --
2553 ------------------------------------
2554
2555 -- DISCRIMINANT_CONSTRAINT ::=
2556 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2557
2558 -- It is not in general possible to distinguish between discriminant
2559 -- constraints and index constraints at parse time, since a simple
2560 -- name could be either the subtype mark of a discrete range, or an
2561 -- expression in a discriminant association with no name. Either
2562 -- entry appears simply as the name, and the semantic parse must
2563 -- distinguish between the two cases. Thus we use a common tree
2564 -- node format for both of these constraint types.
2565
2566 -- N_Index_Or_Discriminant_Constraint
2567 -- Sloc points to left paren
2568 -- Constraints (List1) points to list of discrete ranges or
2569 -- discriminant associations
2570
2571 -------------------------------------
2572 -- 3.7.1 Discriminant Association --
2573 -------------------------------------
2574
2575 -- DISCRIMINANT_ASSOCIATION ::=
2576 -- [discriminant_SELECTOR_NAME
2577 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2578
2579 -- Note: a discriminant association that has no selector name list
2580 -- appears directly as an expression in the tree.
2581
2582 -- N_Discriminant_Association
2583 -- Sloc points to first token of discriminant association
2584 -- Selector_Names (List1) (always non-empty, since if no selector
2585 -- names are present, this node is not used, see comment above)
2586 -- Expression (Node3)
2587
2588 ---------------------------------
2589 -- 3.8 Record Type Definition --
2590 ---------------------------------
2591
2592 -- RECORD_TYPE_DEFINITION ::=
2593 -- [[abstract] tagged] [limited] RECORD_DEFINITION
2594
2595 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2596
2597 -- There is no explicit node in the tree for a record type definition.
2598 -- Instead the flags for Tagged_Present and Limited_Present appear in
2599 -- the N_Record_Definition node for a record definition appearing in
2600 -- the context of a record type definition.
2601
2602 ----------------------------
2603 -- 3.8 Record Definition --
2604 ----------------------------
2605
2606 -- RECORD_DEFINITION ::=
2607 -- record
2608 -- COMPONENT_LIST
2609 -- end record
2610 -- | null record
2611
2612 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
2613 -- flags appear only for a record definition appearing in a record
2614 -- type definition.
2615
2616 -- Note: the NULL RECORD case is not permitted in Ada 83
2617
2618 -- N_Record_Definition
2619 -- Sloc points to RECORD or NULL
2620 -- End_Label (Node4) (set to Empty if internally generated record)
2621 -- Abstract_Present (Flag4)
2622 -- Tagged_Present (Flag15)
2623 -- Limited_Present (Flag17)
2624 -- Component_List (Node1) empty in null record case
2625 -- Null_Present (Flag13) set in null record case
2626 -- Task_Present (Flag5) set in task interfaces
2627 -- Protected_Present (Flag6) set in protected interfaces
2628 -- Synchronized_Present (Flag7) set in interfaces
2629 -- Interface_Present (Flag16) set in abstract interfaces
2630 -- Interface_List (List2) (set to No_List if none)
2631
2632 -- Note: Task_Present, Protected_Present, Synchronized _Present,
2633 -- Interface_List and Interface_Present are used for abstract
2634 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2635
2636 -------------------------
2637 -- 3.8 Component List --
2638 -------------------------
2639
2640 -- COMPONENT_LIST ::=
2641 -- COMPONENT_ITEM {COMPONENT_ITEM}
2642 -- | {COMPONENT_ITEM} VARIANT_PART
2643 -- | null;
2644
2645 -- N_Component_List
2646 -- Sloc points to first token of component list
2647 -- Component_Items (List3)
2648 -- Variant_Part (Node4) (set to Empty if no variant part)
2649 -- Null_Present (Flag13)
2650
2651 -------------------------
2652 -- 3.8 Component Item --
2653 -------------------------
2654
2655 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2656
2657 -- Note: A component item can also be a pragma, and in the tree
2658 -- that is obtained after semantic processing, a component item
2659 -- can be an N_Null node resulting from a non-recognized pragma.
2660
2661 --------------------------------
2662 -- 3.8 Component Declaration --
2663 --------------------------------
2664
2665 -- COMPONENT_DECLARATION ::=
2666 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2667 -- [:= DEFAULT_EXPRESSION]
2668
2669 -- Note: although the syntax does not permit a component definition to
2670 -- be an anonymous array (and the parser will diagnose such an attempt
2671 -- with an appropriate message), it is possible for anonymous arrays
2672 -- to appear as component definitions. The semantics and back end handle
2673 -- this case properly, and the expander in fact generates such cases.
2674
2675 -- Although the syntax allows multiple identifiers in the list, the
2676 -- semantics is as though successive declarations were given with the
2677 -- same component definition and expression components. To simplify
2678 -- semantic processing, the parser represents a multiple declaration
2679 -- case as a sequence of single declarations, using the More_Ids and
2680 -- Prev_Ids flags to preserve the original source form as described
2681 -- in the section on "Handling of Defining Identifier Lists".
2682
2683 -- N_Component_Declaration
2684 -- Sloc points to first identifier
2685 -- Defining_Identifier (Node1)
2686 -- Component_Definition (Node4)
2687 -- Expression (Node3) (set to Empty if no default expression)
2688 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2689 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2690
2691 -------------------------
2692 -- 3.8.1 Variant Part --
2693 -------------------------
2694
2695 -- VARIANT_PART ::=
2696 -- case discriminant_DIRECT_NAME is
2697 -- VARIANT
2698 -- {VARIANT}
2699 -- end case;
2700
2701 -- Note: the variants list can contain pragmas as well as variants.
2702 -- In a properly formed program there is at least one variant.
2703
2704 -- N_Variant_Part
2705 -- Sloc points to CASE
2706 -- Name (Node2)
2707 -- Variants (List1)
2708
2709 --------------------
2710 -- 3.8.1 Variant --
2711 --------------------
2712
2713 -- VARIANT ::=
2714 -- when DISCRETE_CHOICE_LIST =>
2715 -- COMPONENT_LIST
2716
2717 -- N_Variant
2718 -- Sloc points to WHEN
2719 -- Discrete_Choices (List4)
2720 -- Component_List (Node1)
2721 -- Enclosing_Variant (Node2-Sem)
2722 -- Present_Expr (Uint3-Sem)
2723 -- Dcheck_Function (Node5-Sem)
2724
2725 ---------------------------------
2726 -- 3.8.1 Discrete Choice List --
2727 ---------------------------------
2728
2729 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2730
2731 ----------------------------
2732 -- 3.8.1 Discrete Choice --
2733 ----------------------------
2734
2735 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2736
2737 -- Note: in Ada 83 mode, the expression must be a simple expression
2738
2739 -- The only choice that appears explicitly is the OTHERS choice, as
2740 -- defined here. Other cases of discrete choice (expression and
2741 -- discrete range) appear directly. This production is also used
2742 -- for the OTHERS possibility of an exception choice.
2743
2744 -- Note: in accordance with the syntax, the parser does not check that
2745 -- OTHERS appears at the end on its own in a choice list context. This
2746 -- is a semantic check.
2747
2748 -- N_Others_Choice
2749 -- Sloc points to OTHERS
2750 -- Others_Discrete_Choices (List1-Sem)
2751 -- All_Others (Flag11-Sem)
2752
2753 ----------------------------------
2754 -- 3.9.1 Record Extension Part --
2755 ----------------------------------
2756
2757 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2758
2759 -- Note: record extension parts are not permitted in Ada 83 mode
2760
2761 --------------------------------------
2762 -- 3.9.4 Interface Type Definition --
2763 --------------------------------------
2764
2765 -- INTERFACE_TYPE_DEFINITION ::=
2766 -- [limited | task | protected | synchronized]
2767 -- interface [interface_list]
2768
2769 -- Note: Interfaces are implemented with N_Record_Definition and
2770 -- N_Derived_Type_Definition nodes because most of the support
2771 -- for the analysis of abstract types has been reused to
2772 -- analyze abstract interfaces.
2773
2774 ----------------------------------
2775 -- 3.10 Access Type Definition --
2776 ----------------------------------
2777
2778 -- ACCESS_TYPE_DEFINITION ::=
2779 -- ACCESS_TO_OBJECT_DEFINITION
2780 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2781
2782 --------------------------
2783 -- 3.10 Null Exclusion --
2784 --------------------------
2785
2786 -- NULL_EXCLUSION ::= not null
2787
2788 ---------------------------------------
2789 -- 3.10 Access To Object Definition --
2790 ---------------------------------------
2791
2792 -- ACCESS_TO_OBJECT_DEFINITION ::=
2793 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
2794 -- SUBTYPE_INDICATION
2795
2796 -- N_Access_To_Object_Definition
2797 -- Sloc points to ACCESS
2798 -- All_Present (Flag15)
2799 -- Null_Exclusion_Present (Flag11)
2800 -- Subtype_Indication (Node5)
2801 -- Constant_Present (Flag17)
2802
2803 -----------------------------------
2804 -- 3.10 General Access Modifier --
2805 -----------------------------------
2806
2807 -- GENERAL_ACCESS_MODIFIER ::= all | constant
2808
2809 -- Note: general access modifiers are not permitted in Ada 83 mode
2810
2811 -- There is no explicit node in the tree for general access modifier.
2812 -- Instead the All_Present or Constant_Present flags are set in the
2813 -- parent node.
2814
2815 -------------------------------------------
2816 -- 3.10 Access To Subprogram Definition --
2817 -------------------------------------------
2818
2819 -- ACCESS_TO_SUBPROGRAM_DEFINITION
2820 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
2821 -- | [NULL_EXCLUSION] access [protected] function
2822 -- PARAMETER_AND_RESULT_PROFILE
2823
2824 -- Note: access to subprograms are not permitted in Ada 83 mode
2825
2826 -- N_Access_Function_Definition
2827 -- Sloc points to ACCESS
2828 -- Null_Exclusion_Present (Flag11)
2829 -- Protected_Present (Flag6)
2830 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2831 -- Result_Definition (Node4) result subtype (subtype mark or access def)
2832
2833 -- N_Access_Procedure_Definition
2834 -- Sloc points to ACCESS
2835 -- Null_Exclusion_Present (Flag11)
2836 -- Protected_Present (Flag6)
2837 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2838
2839 -----------------------------
2840 -- 3.10 Access Definition --
2841 -----------------------------
2842
2843 -- ACCESS_DEFINITION ::=
2844 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
2845 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2846
2847 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
2848
2849 -- N_Access_Definition
2850 -- Sloc points to ACCESS
2851 -- Null_Exclusion_Present (Flag11)
2852 -- All_Present (Flag15)
2853 -- Constant_Present (Flag17)
2854 -- Subtype_Mark (Node4)
2855 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
2856
2857 -----------------------------------------
2858 -- 3.10.1 Incomplete Type Declaration --
2859 -----------------------------------------
2860
2861 -- INCOMPLETE_TYPE_DECLARATION ::=
2862 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2863
2864 -- N_Incomplete_Type_Declaration
2865 -- Sloc points to TYPE
2866 -- Defining_Identifier (Node1)
2867 -- Discriminant_Specifications (List4) (set to No_List if no
2868 -- discriminant part, or if the discriminant part is an
2869 -- unknown discriminant part)
2870 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
2871 -- Tagged_Present (Flag15)
2872
2873 ----------------------------
2874 -- 3.11 Declarative Part --
2875 ----------------------------
2876
2877 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
2878
2879 -- Note: although the parser enforces the syntactic requirement that
2880 -- a declarative part can contain only declarations, the semantic
2881 -- processing may add statements to the list of actions in a
2882 -- declarative part, so the code generator should be prepared
2883 -- to accept a statement in this position.
2884
2885 ----------------------------
2886 -- 3.11 Declarative Item --
2887 ----------------------------
2888
2889 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
2890
2891 ----------------------------------
2892 -- 3.11 Basic Declarative Item --
2893 ----------------------------------
2894
2895 -- BASIC_DECLARATIVE_ITEM ::=
2896 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
2897
2898 ----------------
2899 -- 3.11 Body --
2900 ----------------
2901
2902 -- BODY ::= PROPER_BODY | BODY_STUB
2903
2904 -----------------------
2905 -- 3.11 Proper Body --
2906 -----------------------
2907
2908 -- PROPER_BODY ::=
2909 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
2910
2911 ---------------
2912 -- 4.1 Name --
2913 ---------------
2914
2915 -- NAME ::=
2916 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
2917 -- | INDEXED_COMPONENT | SLICE
2918 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
2919 -- | TYPE_CONVERSION | FUNCTION_CALL
2920 -- | CHARACTER_LITERAL
2921
2922 ----------------------
2923 -- 4.1 Direct Name --
2924 ----------------------
2925
2926 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
2927
2928 -----------------
2929 -- 4.1 Prefix --
2930 -----------------
2931
2932 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
2933
2934 -------------------------------
2935 -- 4.1 Explicit Dereference --
2936 -------------------------------
2937
2938 -- EXPLICIT_DEREFERENCE ::= NAME . all
2939
2940 -- N_Explicit_Dereference
2941 -- Sloc points to ALL
2942 -- Prefix (Node3)
2943 -- Actual_Designated_Subtype (Node4-Sem)
2944 -- plus fields for expression
2945
2946 -------------------------------
2947 -- 4.1 Implicit Dereference --
2948 -------------------------------
2949
2950 -- IMPLICIT_DEREFERENCE ::= NAME
2951
2952 ------------------------------
2953 -- 4.1.1 Indexed Component --
2954 ------------------------------
2955
2956 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
2957
2958 -- Note: the parser may generate this node in some situations where it
2959 -- should be a function call. The semantic pass must correct this
2960 -- misidentification (which is inevitable at the parser level).
2961
2962 -- N_Indexed_Component
2963 -- Sloc contains a copy of the Sloc value of the Prefix
2964 -- Prefix (Node3)
2965 -- Expressions (List1)
2966 -- plus fields for expression
2967
2968 -- Note: if any of the subscripts requires a range check, then the
2969 -- Do_Range_Check flag is set on the corresponding expression, with
2970 -- the index type being determined from the type of the Prefix, which
2971 -- references the array being indexed.
2972
2973 -- Note: in a fully analyzed and expanded indexed component node, and
2974 -- hence in any such node that gigi sees, if the prefix is an access
2975 -- type, then an explicit dereference operation has been inserted.
2976
2977 ------------------
2978 -- 4.1.2 Slice --
2979 ------------------
2980
2981 -- SLICE ::= PREFIX (DISCRETE_RANGE)
2982
2983 -- Note: an implicit subtype is created to describe the resulting
2984 -- type, so that the bounds of this type are the bounds of the slice.
2985
2986 -- N_Slice
2987 -- Sloc points to first token of prefix
2988 -- Prefix (Node3)
2989 -- Discrete_Range (Node4)
2990 -- plus fields for expression
2991
2992 -------------------------------
2993 -- 4.1.3 Selected Component --
2994 -------------------------------
2995
2996 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
2997
2998 -- Note: selected components that are semantically expanded names get
2999 -- changed during semantic processing into the separate N_Expanded_Name
3000 -- node. See description of this node in the section on semantic nodes.
3001
3002 -- N_Selected_Component
3003 -- Sloc points to period
3004 -- Prefix (Node3)
3005 -- Selector_Name (Node2)
3006 -- Associated_Node (Node4-Sem)
3007 -- Do_Discriminant_Check (Flag13-Sem)
3008 -- Is_In_Discriminant_Check (Flag11-Sem)
3009 -- plus fields for expression
3010
3011 --------------------------
3012 -- 4.1.3 Selector Name --
3013 --------------------------
3014
3015 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3016
3017 --------------------------------
3018 -- 4.1.4 Attribute Reference --
3019 --------------------------------
3020
3021 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3022
3023 -- Note: the syntax is quite ambiguous at this point. Consider:
3024
3025 -- A'Length (X) X is part of the attribute designator
3026 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3027 -- A'Class (X) X is the expression of a type conversion
3028
3029 -- It would be possible for the parser to distinguish these cases
3030 -- by looking at the attribute identifier. However, that would mean
3031 -- more work in introducing new implementation defined attributes,
3032 -- and also it would mean that special processing for attributes
3033 -- would be scattered around, instead of being centralized in the
3034 -- semantic routine that handles an N_Attribute_Reference node.
3035 -- Consequently, the parser in all the above cases stores the
3036 -- expression (X in these examples) as a single element list in
3037 -- in the Expressions field of the N_Attribute_Reference node.
3038
3039 -- Similarly, for attributes like Max which take two arguments,
3040 -- we store the two arguments as a two element list in the
3041 -- Expressions field. Of course it is clear at parse time that
3042 -- this case is really a function call with an attribute as the
3043 -- prefix, but it turns out to be convenient to handle the two
3044 -- argument case in a similar manner to the one argument case,
3045 -- and indeed in general the parser will accept any number of
3046 -- expressions in this position and store them as a list in the
3047 -- attribute reference node. This allows for future addition of
3048 -- attributes that take more than two arguments.
3049
3050 -- Note: named associates are not permitted in function calls where
3051 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3052 -- to skip the normal subprogram argument processing.
3053
3054 -- Note: for the attributes whose designators are technically keywords,
3055 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3056 -- the corresponding name, even though no identifier is involved.
3057
3058 -- Note: the generated code may contain stream attributes applied to
3059 -- limited types for which no stream routines exist officially. In such
3060 -- case, the result is to use the stream attribute for the underlying
3061 -- full type, or in the case of a protected type, the components
3062 -- (including any disriminants) are merely streamed in order.
3063
3064 -- See Exp_Attr for a complete description of which attributes are
3065 -- passed onto Gigi, and which are handled entirely by the front end.
3066
3067 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3068 -- a non-standard enumeration type or a nonzero/zero semantics
3069 -- boolean type, so the value is simply the stored representation.
3070
3071 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3072 -- references a subprogram that is a renaming, then the front end must
3073 -- rewrite the attribute to refer directly to the renamed entity.
3074
3075 -- Note: In generated code, the Address and Unrestricted_Access
3076 -- attributes can be applied to any expression, and the meaning is
3077 -- to create an object containing the value (the object is in the
3078 -- current stack frame), and pass the address of this value. If the
3079 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3080 -- is taken must be on a byte (storage unit) boundary, and if it is
3081 -- not (or may not be), then the generated code must create a copy
3082 -- that is byte aligned, and pass the address of this copy.
3083
3084 -- N_Attribute_Reference
3085 -- Sloc points to apostrophe
3086 -- Prefix (Node3)
3087 -- Attribute_Name (Name2) identifier name from attribute designator
3088 -- Expressions (List1) (set to No_List if no associated expressions)
3089 -- Entity (Node4-Sem) used if the attribute yields a type
3090 -- Associated_Node (Node4-Sem)
3091 -- Do_Overflow_Check (Flag17-Sem)
3092 -- Redundant_Use (Flag13-Sem)
3093 -- Must_Be_Byte_Aligned (Flag14)
3094 -- plus fields for expression
3095
3096 ---------------------------------
3097 -- 4.1.4 Attribute Designator --
3098 ---------------------------------
3099
3100 -- ATTRIBUTE_DESIGNATOR ::=
3101 -- IDENTIFIER [(static_EXPRESSION)]
3102 -- | access | delta | digits
3103
3104 -- There is no explicit node in the tree for an attribute designator.
3105 -- Instead the Attribute_Name and Expressions fields of the parent
3106 -- node (N_Attribute_Reference node) hold the information.
3107
3108 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3109 -- designator, then they are treated as identifiers internally
3110 -- rather than the keywords of the same name.
3111
3112 --------------------------------------
3113 -- 4.1.4 Range Attribute Reference --
3114 --------------------------------------
3115
3116 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3117
3118 -- A range attribute reference is represented in the tree using the
3119 -- normal N_Attribute_Reference node.
3120
3121 ---------------------------------------
3122 -- 4.1.4 Range Attribute Designator --
3123 ---------------------------------------
3124
3125 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3126
3127 -- A range attribute designator is represented in the tree using the
3128 -- normal N_Attribute_Reference node.
3129
3130 --------------------
3131 -- 4.3 Aggregate --
3132 --------------------
3133
3134 -- AGGREGATE ::=
3135 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3136
3137 -----------------------------
3138 -- 4.3.1 Record Aggregate --
3139 -----------------------------
3140
3141 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3142
3143 -- N_Aggregate
3144 -- Sloc points to left parenthesis
3145 -- Expressions (List1) (set to No_List if none or null record case)
3146 -- Component_Associations (List2) (set to No_List if none)
3147 -- Null_Record_Present (Flag17)
3148 -- Aggregate_Bounds (Node3-Sem)
3149 -- Associated_Node (Node4-Sem)
3150 -- Static_Processing_OK (Flag4-Sem)
3151 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3152 -- Expansion_Delayed (Flag11-Sem)
3153 -- Has_Self_Reference (Flag13-Sem)
3154 -- plus fields for expression
3155
3156 -- Note: this structure is used for both record and array aggregates
3157 -- since the two cases are not separable by the parser. The parser
3158 -- makes no attempt to enforce consistency here, so it is up to the
3159 -- semantic phase to make sure that the aggregate is consistent (i.e.
3160 -- that it is not a "half-and-half" case that mixes record and array
3161 -- syntax. In particular, for a record aggregate, the expressions
3162 -- field will be set if there are positional associations.
3163
3164 -- Note: N_Aggregate is not used for all aggregates; in particular,
3165 -- there is a separate node kind for extension aggregates.
3166
3167 -- Note: gigi/gcc can handle array aggregates correctly providing that
3168 -- they are entirely positional, and the array subtype involved has a
3169 -- known at compile time length and is not bit packed, or a convention
3170 -- Fortran array with more than one dimension. If these conditions
3171 -- are not met, then the front end must translate the aggregate into
3172 -- an appropriate set of assignments into a temporary.
3173
3174 -- Note: for the record aggregate case, gigi/gcc can handle all cases
3175 -- of record aggregates, including those for packed, and rep-claused
3176 -- records, and also variant records, providing that there are no
3177 -- variable length fields whose size is not known at runtime, and
3178 -- providing that the aggregate is presented in fully named form.
3179
3180 ----------------------------------------------
3181 -- 4.3.1 Record Component Association List --
3182 ----------------------------------------------
3183
3184 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3185 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3186 -- | null record
3187
3188 -- There is no explicit node in the tree for a record component
3189 -- association list. Instead the Null_Record_Present flag is set in
3190 -- the parent node for the NULL RECORD case.
3191
3192 ------------------------------------------------------
3193 -- 4.3.1 Record Component Association (also 4.3.3) --
3194 ------------------------------------------------------
3195
3196 -- RECORD_COMPONENT_ASSOCIATION ::=
3197 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3198
3199 -- N_Component_Association
3200 -- Sloc points to first selector name
3201 -- Choices (List1)
3202 -- Loop_Actions (List2-Sem)
3203 -- Expression (Node3)
3204 -- Box_Present (Flag15)
3205
3206 -- Note: this structure is used for both record component associations
3207 -- and array component associations, since the two cases aren't always
3208 -- separable by the parser. The choices list may represent either a
3209 -- list of selector names in the record aggregate case, or a list of
3210 -- discrete choices in the array aggregate case or an N_Others_Choice
3211 -- node (which appears as a singleton list). Box_Present gives support
3212 -- to Ada 2005 (AI-287).
3213
3214 -----------------------------------
3215 -- 4.3.1 Commponent Choice List --
3216 -----------------------------------
3217
3218 -- COMPONENT_CHOICE_LIST ::=
3219 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3220 -- | others
3221
3222 -- The entries of a component choice list appear in the Choices list
3223 -- of the associated N_Component_Association, as either selector
3224 -- names, or as an N_Others_Choice node.
3225
3226 --------------------------------
3227 -- 4.3.2 Extension Aggregate --
3228 --------------------------------
3229
3230 -- EXTENSION_AGGREGATE ::=
3231 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3232
3233 -- Note: extension aggregates are not permitted in Ada 83 mode
3234
3235 -- N_Extension_Aggregate
3236 -- Sloc points to left parenthesis
3237 -- Ancestor_Part (Node3)
3238 -- Associated_Node (Node4-Sem)
3239 -- Expressions (List1) (set to No_List if none or null record case)
3240 -- Component_Associations (List2) (set to No_List if none)
3241 -- Null_Record_Present (Flag17)
3242 -- Expansion_Delayed (Flag11-Sem)
3243 -- Has_Self_Reference (Flag13-Sem)
3244 -- plus fields for expression
3245
3246 --------------------------
3247 -- 4.3.2 Ancestor Part --
3248 --------------------------
3249
3250 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3251
3252 ----------------------------
3253 -- 4.3.3 Array Aggregate --
3254 ----------------------------
3255
3256 -- ARRAY_AGGREGATE ::=
3257 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3258
3259 ---------------------------------------
3260 -- 4.3.3 Positional Array Aggregate --
3261 ---------------------------------------
3262
3263 -- POSITIONAL_ARRAY_AGGREGATE ::=
3264 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3265 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3266
3267 -- See Record_Aggregate (4.3.1) for node structure
3268
3269 ----------------------------------
3270 -- 4.3.3 Named Array Aggregate --
3271 ----------------------------------
3272
3273 -- NAMED_ARRAY_AGGREGATE ::=
3274 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3275
3276 -- See Record_Aggregate (4.3.1) for node structure
3277
3278 ----------------------------------------
3279 -- 4.3.3 Array Component Association --
3280 ----------------------------------------
3281
3282 -- ARRAY_COMPONENT_ASSOCIATION ::=
3283 -- DISCRETE_CHOICE_LIST => EXPRESSION
3284
3285 -- See Record_Component_Association (4.3.1) for node structure
3286
3287 --------------------------------------------------
3288 -- 4.4 Expression/Relation/Term/Factor/Primary --
3289 --------------------------------------------------
3290
3291 -- EXPRESSION ::=
3292 -- RELATION {and RELATION} | RELATION {and then RELATION}
3293 -- | RELATION {or RELATION} | RELATION {or else RELATION}
3294 -- | RELATION {xor RELATION}
3295
3296 -- RELATION ::=
3297 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3298 -- | SIMPLE_EXPRESSION [not] in RANGE
3299 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3300
3301 -- SIMPLE_EXPRESSION ::=
3302 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3303
3304 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3305
3306 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3307
3308 -- No nodes are generated for any of these constructs. Instead, the
3309 -- node for the operator appears directly. When we refer to an
3310 -- expression in this description, we mean any of the possible
3311 -- consistuent components of an expression (e.g. identifier is
3312 -- an example of an expression).
3313
3314 ------------------
3315 -- 4.4 Primary --
3316 ------------------
3317
3318 -- PRIMARY ::=
3319 -- NUMERIC_LITERAL | null
3320 -- | STRING_LITERAL | AGGREGATE
3321 -- | NAME | QUALIFIED_EXPRESSION
3322 -- | ALLOCATOR | (EXPRESSION)
3323
3324 -- Usually there is no explicit node in the tree for primary. Instead
3325 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3326 -- exceptions. First, there is an explicit node for a null primary.
3327
3328 -- N_Null
3329 -- Sloc points to NULL
3330 -- plus fields for expression
3331
3332 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3333 -- that the parser keep track of which subexpressions are enclosed
3334 -- in parentheses, and how many levels of parentheses are used. This
3335 -- information is required for optimization purposes, and also for
3336 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3337 -- conform with ((((1)))) in the body).
3338
3339 -- The parentheses are recorded by keeping a Paren_Count field in every
3340 -- subexpression node (it is actually present in all nodes, but only
3341 -- used in subexpression nodes). This count records the number of
3342 -- levels of parentheses. If the number of levels in the source exceeds
3343 -- the maximum accomodated by this count, then the count is simply left
3344 -- at the maximum value. This means that there are some pathalogical
3345 -- cases of failure to detect conformance failures (e.g. an expression
3346 -- with 500 levels of parens will conform with one with 501 levels),
3347 -- but we do not need to lose sleep over this.
3348
3349 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3350 -- type N_Parenthesized_Expression used to accurately record unlimited
3351 -- numbers of levels of parentheses. However, it turned out to be a
3352 -- real nuisance to have to take into account the possible presence of
3353 -- this node during semantic analysis, since basically parentheses have
3354 -- zero relevance to semantic analysis.
3355
3356 -- Note: the level of parentheses always present in things like
3357 -- aggregates does not count, only the parentheses in the primary
3358 -- (EXPRESSION) affect the setting of the Paren_Count field.
3359
3360 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3361 -- treated as though it were Empty) if No_Initialization is set True.
3362
3363 --------------------------------------
3364 -- 4.5 Short Circuit Control Forms --
3365 --------------------------------------
3366
3367 -- EXPRESSION ::=
3368 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3369
3370 -- Gigi restriction: For both these control forms, the operand and
3371 -- result types are always Standard.Boolean. The expander inserts the
3372 -- required conversion operations where needed to ensure this is the
3373 -- case.
3374
3375 -- N_And_Then
3376 -- Sloc points to AND of AND THEN
3377 -- Left_Opnd (Node2)
3378 -- Right_Opnd (Node3)
3379 -- Actions (List1-Sem)
3380 -- plus fields for expression
3381
3382 -- N_Or_Else
3383 -- Sloc points to OR of OR ELSE
3384 -- Left_Opnd (Node2)
3385 -- Right_Opnd (Node3)
3386 -- Actions (List1-Sem)
3387 -- plus fields for expression
3388
3389 -- Note: The Actions field is used to hold actions associated with
3390 -- the right hand operand. These have to be treated specially since
3391 -- they are not unconditionally executed. See Insert_Actions for a
3392 -- more detailed description of how these actions are handled.
3393
3394 ---------------------------
3395 -- 4.5 Membership Tests --
3396 ---------------------------
3397
3398 -- RELATION ::=
3399 -- SIMPLE_EXPRESSION [not] in RANGE
3400 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3401
3402 -- Note: although the grammar above allows only a range or a
3403 -- subtype mark, the parser in fact will accept any simple
3404 -- expression in place of a subtype mark. This means that the
3405 -- semantic analyzer must be prepared to deal with, and diagnose
3406 -- a simple expression other than a name for the right operand.
3407 -- This simplifies error recovery in the parser.
3408
3409 -- N_In
3410 -- Sloc points to IN
3411 -- Left_Opnd (Node2)
3412 -- Right_Opnd (Node3)
3413 -- plus fields for expression
3414
3415 -- N_Not_In
3416 -- Sloc points to NOT of NOT IN
3417 -- Left_Opnd (Node2)
3418 -- Right_Opnd (Node3)
3419 -- plus fields for expression
3420
3421 --------------------
3422 -- 4.5 Operators --
3423 --------------------
3424
3425 -- LOGICAL_OPERATOR ::= and | or | xor
3426
3427 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3428
3429 -- BINARY_ADDING_OPERATOR ::= + | - | &
3430
3431 -- UNARY_ADDING_OPERATOR ::= + | -
3432
3433 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3434
3435 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3436
3437 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3438
3439 -- x #* y
3440 -- x #/ y
3441 -- x #mod y
3442 -- x #rem y
3443
3444 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3445 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3446 -- All handling of smalls for multiplication and division is handled
3447 -- by the front end (mod and rem result only from expansion). Gigi
3448 -- thus never needs to worry about small values (for other operators
3449 -- operating on fixed-point, e.g. addition, the small value does not
3450 -- have any semantic effect anyway, these are always integer operations.
3451
3452 -- Gigi restriction: For all operators taking Boolean operands, the
3453 -- type is always Standard.Boolean. The expander inserts the required
3454 -- conversion operations where needed to ensure this is the case.
3455
3456 -- N_Op_And
3457 -- Sloc points to AND
3458 -- Do_Length_Check (Flag4-Sem)
3459 -- plus fields for binary operator
3460 -- plus fields for expression
3461
3462 -- N_Op_Or
3463 -- Sloc points to OR
3464 -- Do_Length_Check (Flag4-Sem)
3465 -- plus fields for binary operator
3466 -- plus fields for expression
3467
3468 -- N_Op_Xor
3469 -- Sloc points to XOR
3470 -- Do_Length_Check (Flag4-Sem)
3471 -- plus fields for binary operator
3472 -- plus fields for expression
3473
3474 -- N_Op_Eq
3475 -- Sloc points to =
3476 -- plus fields for binary operator
3477 -- plus fields for expression
3478
3479 -- N_Op_Ne
3480 -- Sloc points to /=
3481 -- plus fields for binary operator
3482 -- plus fields for expression
3483
3484 -- N_Op_Lt
3485 -- Sloc points to <
3486 -- plus fields for binary operator
3487 -- plus fields for expression
3488
3489 -- N_Op_Le
3490 -- Sloc points to <=
3491 -- plus fields for binary operator
3492 -- plus fields for expression
3493
3494 -- N_Op_Gt
3495 -- Sloc points to >
3496 -- plus fields for binary operator
3497 -- plus fields for expression
3498
3499 -- N_Op_Ge
3500 -- Sloc points to >=
3501 -- plus fields for binary operator
3502 -- plus fields for expression
3503
3504 -- N_Op_Add
3505 -- Sloc points to + (binary)
3506 -- plus fields for binary operator
3507 -- plus fields for expression
3508
3509 -- N_Op_Subtract
3510 -- Sloc points to - (binary)
3511 -- plus fields for binary operator
3512 -- plus fields for expression
3513
3514 -- N_Op_Concat
3515 -- Sloc points to &
3516 -- Is_Component_Left_Opnd (Flag13-Sem)
3517 -- Is_Component_Right_Opnd (Flag14-Sem)
3518 -- plus fields for binary operator
3519 -- plus fields for expression
3520
3521 -- N_Op_Multiply
3522 -- Sloc points to *
3523 -- Treat_Fixed_As_Integer (Flag14-Sem)
3524 -- Rounded_Result (Flag18-Sem)
3525 -- plus fields for binary operator
3526 -- plus fields for expression
3527
3528 -- N_Op_Divide
3529 -- Sloc points to /
3530 -- Treat_Fixed_As_Integer (Flag14-Sem)
3531 -- Do_Division_Check (Flag13-Sem)
3532 -- Rounded_Result (Flag18-Sem)
3533 -- plus fields for binary operator
3534 -- plus fields for expression
3535
3536 -- N_Op_Mod
3537 -- Sloc points to MOD
3538 -- Treat_Fixed_As_Integer (Flag14-Sem)
3539 -- Do_Division_Check (Flag13-Sem)
3540 -- plus fields for binary operator
3541 -- plus fields for expression
3542
3543 -- N_Op_Rem
3544 -- Sloc points to REM
3545 -- Treat_Fixed_As_Integer (Flag14-Sem)
3546 -- Do_Division_Check (Flag13-Sem)
3547 -- plus fields for binary operator
3548 -- plus fields for expression
3549
3550 -- N_Op_Expon
3551 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
3552 -- Sloc points to **
3553 -- plus fields for binary operator
3554 -- plus fields for expression
3555
3556 -- N_Op_Plus
3557 -- Sloc points to + (unary)
3558 -- plus fields for unary operator
3559 -- plus fields for expression
3560
3561 -- N_Op_Minus
3562 -- Sloc points to - (unary)
3563 -- plus fields for unary operator
3564 -- plus fields for expression
3565
3566 -- N_Op_Abs
3567 -- Sloc points to ABS
3568 -- plus fields for unary operator
3569 -- plus fields for expression
3570
3571 -- N_Op_Not
3572 -- Sloc points to NOT
3573 -- plus fields for unary operator
3574 -- plus fields for expression
3575
3576 -- See also shift operators in section B.2
3577
3578 -- Note on fixed-point operations passed to Gigi: For adding operators,
3579 -- the semantics is to treat these simply as integer operations, with
3580 -- the small values being ignored (the bounds are already stored in
3581 -- units of small, so that constraint checking works as usual). For the
3582 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
3583 -- point operands if the Treat_Fixed_As_Integer flag is set and will
3584 -- thus treat these nodes in identical manner, ignoring small values.
3585
3586 --------------------------
3587 -- 4.6 Type Conversion --
3588 --------------------------
3589
3590 -- TYPE_CONVERSION ::=
3591 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3592
3593 -- In the (NAME) case, the name is stored as the expression
3594
3595 -- Note: the parser never generates a type conversion node, since it
3596 -- looks like an indexed component which is generated by preference.
3597 -- The semantic pass must correct this misidentification.
3598
3599 -- Gigi handles conversions that involve no change in the root type,
3600 -- and also all conversions from integer to floating-point types.
3601 -- Conversions from floating-point to integer are only handled in
3602 -- the case where Float_Truncate flag set. Other conversions from
3603 -- floating-point to integer (involving rounding) and all conversions
3604 -- involving fixed-point types are handled by the expander.
3605
3606 -- Sprint syntax if Float_Truncate set: X^(Y)
3607 -- Sprint syntax if Conversion_OK set X?(Y)
3608 -- Sprint syntax if both flags set X?^(Y)
3609
3610 -- Note: If either the operand or result type is fixed-point, Gigi will
3611 -- only see a type conversion node with Conversion_OK set. The front end
3612 -- takes care of all handling of small's for fixed-point conversions.
3613
3614 -- N_Type_Conversion
3615 -- Sloc points to first token of subtype mark
3616 -- Subtype_Mark (Node4)
3617 -- Expression (Node3)
3618 -- Do_Tag_Check (Flag13-Sem)
3619 -- Do_Length_Check (Flag4-Sem)
3620 -- Do_Overflow_Check (Flag17-Sem)
3621 -- Float_Truncate (Flag11-Sem)
3622 -- Rounded_Result (Flag18-Sem)
3623 -- Conversion_OK (Flag14-Sem)
3624 -- plus fields for expression
3625
3626 -- Note: if a range check is required, then the Do_Range_Check flag
3627 -- is set in the Expression with the check being done against the
3628 -- target type range (after the base type conversion, if any).
3629
3630 -------------------------------
3631 -- 4.7 Qualified Expression --
3632 -------------------------------
3633
3634 -- QUALIFIED_EXPRESSION ::=
3635 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3636
3637 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3638 -- the expression, so the Expression field of this node always points
3639 -- to a parenthesized expression in this case (i.e. Paren_Count will
3640 -- always be non-zero for the referenced expression if it is not an
3641 -- aggregate).
3642
3643 -- N_Qualified_Expression
3644 -- Sloc points to apostrophe
3645 -- Subtype_Mark (Node4)
3646 -- Expression (Node3) expression or aggregate
3647 -- plus fields for expression
3648
3649 --------------------
3650 -- 4.8 Allocator --
3651 --------------------
3652
3653 -- ALLOCATOR ::=
3654 -- new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3655
3656 -- Sprint syntax (when storage pool present)
3657 -- new xxx (storage_pool = pool)
3658
3659 -- N_Allocator
3660 -- Sloc points to NEW
3661 -- Expression (Node3) subtype indication or qualified expression
3662 -- Null_Exclusion_Present (Flag11)
3663 -- Storage_Pool (Node1-Sem)
3664 -- Procedure_To_Call (Node2-Sem)
3665 -- Coextensions (Elist4-Sem)
3666 -- No_Initialization (Flag13-Sem)
3667 -- Is_Static_Coextension (Flag14-Sem)
3668 -- Do_Storage_Check (Flag17-Sem)
3669 -- Is_Dynamic_Coextension (Flag18-Sem)
3670 -- plus fields for expression
3671
3672 ---------------------------------
3673 -- 5.1 Sequence Of Statements --
3674 ---------------------------------
3675
3676 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3677
3678 -- Note: Although the parser will not accept a declaration as a
3679 -- statement, the semantic analyzer may insert declarations (e.g.
3680 -- declarations of implicit types needed for execution of other
3681 -- statements) into a sequence of statements, so the code genmerator
3682 -- should be prepared to accept a declaration where a statement is
3683 -- expected. Note also that pragmas can appear as statements.
3684
3685 --------------------
3686 -- 5.1 Statement --
3687 --------------------
3688
3689 -- STATEMENT ::=
3690 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3691
3692 -- There is no explicit node in the tree for a statement. Instead, the
3693 -- individual statement appears directly. Labels are treated as a
3694 -- kind of statement, i.e. they are linked into a statement list at
3695 -- the point they appear, so the labeled statement appears following
3696 -- the label or labels in the statement list.
3697
3698 ---------------------------
3699 -- 5.1 Simple Statement --
3700 ---------------------------
3701
3702 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
3703 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
3704 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
3705 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3706 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
3707 -- | ABORT_STATEMENT | RAISE_STATEMENT
3708 -- | CODE_STATEMENT
3709
3710 -----------------------------
3711 -- 5.1 Compound Statement --
3712 -----------------------------
3713
3714 -- COMPOUND_STATEMENT ::=
3715 -- IF_STATEMENT | CASE_STATEMENT
3716 -- | LOOP_STATEMENT | BLOCK_STATEMENT
3717 -- | EXTENDED_RETURN_STATEMENT
3718 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
3719
3720 -------------------------
3721 -- 5.1 Null Statement --
3722 -------------------------
3723
3724 -- NULL_STATEMENT ::= null;
3725
3726 -- N_Null_Statement
3727 -- Sloc points to NULL
3728
3729 ----------------
3730 -- 5.1 Label --
3731 ----------------
3732
3733 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3734
3735 -- Note that the occurrence of a label is not a defining identifier,
3736 -- but rather a referencing occurrence. The defining occurrence is
3737 -- in the implicit label declaration which occurs in the innermost
3738 -- enclosing block.
3739
3740 -- N_Label
3741 -- Sloc points to <<
3742 -- Identifier (Node1) direct name of statement identifier
3743 -- Exception_Junk (Flag8-Sem)
3744
3745 -------------------------------
3746 -- 5.1 Statement Identifier --
3747 -------------------------------
3748
3749 -- STATEMENT_INDENTIFIER ::= DIRECT_NAME
3750
3751 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
3752 -- (not an OPERATOR_SYMBOL)
3753
3754 -------------------------------
3755 -- 5.2 Assignment Statement --
3756 -------------------------------
3757
3758 -- ASSIGNMENT_STATEMENT ::=
3759 -- variable_NAME := EXPRESSION;
3760
3761 -- N_Assignment_Statement
3762 -- Sloc points to :=
3763 -- Name (Node2)
3764 -- Expression (Node3)
3765 -- Do_Tag_Check (Flag13-Sem)
3766 -- Do_Length_Check (Flag4-Sem)
3767 -- Forwards_OK (Flag5-Sem)
3768 -- Backwards_OK (Flag6-Sem)
3769 -- No_Ctrl_Actions (Flag7-Sem)
3770
3771 -- Note: if a range check is required, then the Do_Range_Check flag
3772 -- is set in the Expression (right hand side), with the check being
3773 -- done against the type of the Name (left hand side).
3774
3775 -- Note: the back end places some restrictions on the form of the
3776 -- Expression field. If the object being assigned to is Atomic, then
3777 -- the Expression may not have the form of an aggregate (since this
3778 -- might cause the back end to generate separate assignments). It
3779 -- also cannot be a reference to an object marked as a true constant
3780 -- (Is_True_Constant flag set), where the object is itself initalized
3781 -- with an aggregate. If necessary the front end must generate an
3782 -- extra temporary (with Is_True_Constant set False), and initialize
3783 -- this temporary as required (the temporary itself is not atomic).
3784
3785 -----------------------
3786 -- 5.3 If Statement --
3787 -----------------------
3788
3789 -- IF_STATEMENT ::=
3790 -- if CONDITION then
3791 -- SEQUENCE_OF_STATEMENTS
3792 -- {elsif CONDITION then
3793 -- SEQUENCE_OF_STATEMENTS}
3794 -- [else
3795 -- SEQUENCE_OF_STATEMENTS]
3796 -- end if;
3797
3798 -- Gigi restriction: This expander ensures that the type of the
3799 -- Condition fields is always Standard.Boolean, even if the type
3800 -- in the source is some non-standard boolean type.
3801
3802 -- N_If_Statement
3803 -- Sloc points to IF
3804 -- Condition (Node1)
3805 -- Then_Statements (List2)
3806 -- Elsif_Parts (List3) (set to No_List if none present)
3807 -- Else_Statements (List4) (set to No_List if no else part present)
3808 -- End_Span (Uint5) (set to No_Uint if expander generated)
3809
3810 -- N_Elsif_Part
3811 -- Sloc points to ELSIF
3812 -- Condition (Node1)
3813 -- Then_Statements (List2)
3814 -- Condition_Actions (List3-Sem)
3815
3816 --------------------
3817 -- 5.3 Condition --
3818 --------------------
3819
3820 -- CONDITION ::= boolean_EXPRESSION
3821
3822 -------------------------
3823 -- 5.4 Case Statement --
3824 -------------------------
3825
3826 -- CASE_STATEMENT ::=
3827 -- case EXPRESSION is
3828 -- CASE_STATEMENT_ALTERNATIVE
3829 -- {CASE_STATEMENT_ALTERNATIVE}
3830 -- end case;
3831
3832 -- Note: the Alternatives can contain pragmas. These only occur at
3833 -- the start of the list, since any pragmas occurring after the first
3834 -- alternative are absorbed into the corresponding statement sequence.
3835
3836 -- N_Case_Statement
3837 -- Sloc points to CASE
3838 -- Expression (Node3)
3839 -- Alternatives (List4)
3840 -- End_Span (Uint5) (set to No_Uint if expander generated)
3841
3842 -------------------------------------
3843 -- 5.4 Case Statement Alternative --
3844 -------------------------------------
3845
3846 -- CASE_STATEMENT_ALTERNATIVE ::=
3847 -- when DISCRETE_CHOICE_LIST =>
3848 -- SEQUENCE_OF_STATEMENTS
3849
3850 -- N_Case_Statement_Alternative
3851 -- Sloc points to WHEN
3852 -- Discrete_Choices (List4)
3853 -- Statements (List3)
3854
3855 -------------------------
3856 -- 5.5 Loop Statement --
3857 -------------------------
3858
3859 -- LOOP_STATEMENT ::=
3860 -- [loop_STATEMENT_IDENTIFIER :]
3861 -- [ITERATION_SCHEME] loop
3862 -- SEQUENCE_OF_STATEMENTS
3863 -- end loop [loop_IDENTIFIER];
3864
3865 -- Note: The occurrence of a loop label is not a defining identifier
3866 -- but rather a referencing occurrence. The defining occurrence is in
3867 -- the implicit label declaration which occurs in the innermost
3868 -- enclosing block.
3869
3870 -- Note: there is always a loop statement identifier present in
3871 -- the tree, even if none was given in the source. In the case where
3872 -- no loop identifier is given in the source, the parser creates
3873 -- a name of the form _Loop_n, where n is a decimal integer (the
3874 -- two underlines ensure that the loop names created in this manner
3875 -- do not conflict with any user defined identifiers), and the flag
3876 -- Has_Created_Identifier is set to True. The only exception to the
3877 -- rule that all loop statement nodes have identifiers occurs for
3878 -- loops constructed by the expander, and the semantic analyzer will
3879 -- create and supply dummy loop identifiers in these cases.
3880
3881 -- N_Loop_Statement
3882 -- Sloc points to LOOP
3883 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
3884 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
3885 -- Statements (List3)
3886 -- End_Label (Node4)
3887 -- Has_Created_Identifier (Flag15)
3888 -- Is_Null_Loop (Flag16)
3889
3890 --------------------------
3891 -- 5.5 Iteration Scheme --
3892 --------------------------
3893
3894 -- ITERATION_SCHEME ::=
3895 -- while CONDITION | for LOOP_PARAMETER_SPECIFICATION
3896
3897 -- Gigi restriction: This expander ensures that the type of the
3898 -- Condition field is always Standard.Boolean, even if the type
3899 -- in the source is some non-standard boolean type.
3900
3901 -- N_Iteration_Scheme
3902 -- Sloc points to WHILE or FOR
3903 -- Condition (Node1) (set to Empty if FOR case)
3904 -- Condition_Actions (List3-Sem)
3905 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
3906
3907 ---------------------------------------
3908 -- 5.5 Loop parameter specification --
3909 ---------------------------------------
3910
3911 -- LOOP_PARAMETER_SPECIFICATION ::=
3912 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
3913
3914 -- N_Loop_Parameter_Specification
3915 -- Sloc points to first identifier
3916 -- Defining_Identifier (Node1)
3917 -- Reverse_Present (Flag15)
3918 -- Discrete_Subtype_Definition (Node4)
3919
3920 --------------------------
3921 -- 5.6 Block Statement --
3922 --------------------------
3923
3924 -- BLOCK_STATEMENT ::=
3925 -- [block_STATEMENT_IDENTIFIER:]
3926 -- [declare
3927 -- DECLARATIVE_PART]
3928 -- begin
3929 -- HANDLED_SEQUENCE_OF_STATEMENTS
3930 -- end [block_IDENTIFIER];
3931
3932 -- Note that the occurrence of a block identifier is not a defining
3933 -- identifier, but rather a referencing occurrence. The defining
3934 -- occurrence is an E_Block entity declared by the implicit label
3935 -- declaration which occurs in the innermost enclosing block statement
3936 -- or body; the block identifier denotes that E_Block.
3937
3938 -- For block statements that come from source code, there is always a
3939 -- block statement identifier present in the tree, denoting an
3940 -- E_Block. In the case where no block identifier is given in the
3941 -- source, the parser creates a name of the form B_n, where n is a
3942 -- decimal integer, and the flag Has_Created_Identifier is set to
3943 -- True. Blocks constructed by the expander usually have no identifier,
3944 -- and no corresponding entity.
3945
3946 -- Note: the block statement created for an extended return statement
3947 -- has an entity, and this entity is an E_Return_Statement, rather than
3948 -- the usual E_Block.
3949
3950 -- Note: Exception_Junk is set for the wrapping blocks created during
3951 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
3952
3953 -- N_Block_Statement
3954 -- Sloc points to DECLARE or BEGIN
3955 -- Identifier (Node1) block direct name (set to Empty if not present)
3956 -- Declarations (List2) (set to No_List if no DECLARE part)
3957 -- Handled_Statement_Sequence (Node4)
3958 -- Is_Task_Master (Flag5-Sem)
3959 -- Activation_Chain_Entity (Node3-Sem)
3960 -- Has_Created_Identifier (Flag15)
3961 -- Is_Task_Allocation_Block (Flag6)
3962 -- Is_Asynchronous_Call_Block (Flag7)
3963 -- Exception_Junk (Flag8-Sem)
3964
3965 -------------------------
3966 -- 5.7 Exit Statement --
3967 -------------------------
3968
3969 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
3970
3971 -- Gigi restriction: This expander ensures that the type of the
3972 -- Condition field is always Standard.Boolean, even if the type
3973 -- in the source is some non-standard boolean type.
3974
3975 -- N_Exit_Statement
3976 -- Sloc points to EXIT
3977 -- Name (Node2) (set to Empty if no loop name present)
3978 -- Condition (Node1) (set to Empty if no when part present)
3979
3980 -------------------------
3981 -- 5.9 Goto Statement --
3982 -------------------------
3983
3984 -- GOTO_STATEMENT ::= goto label_NAME;
3985
3986 -- N_Goto_Statement
3987 -- Sloc points to GOTO
3988 -- Name (Node2)
3989 -- Exception_Junk (Flag8-Sem)
3990
3991 ---------------------------------
3992 -- 6.1 Subprogram Declaration --
3993 ---------------------------------
3994
3995 -- SUBPROGRAM_DECLARATION ::= SUBPROGRAM_SPECIFICATION;
3996
3997 -- N_Subprogram_Declaration
3998 -- Sloc points to FUNCTION or PROCEDURE
3999 -- Specification (Node1)
4000 -- Body_To_Inline (Node3-Sem)
4001 -- Corresponding_Body (Node5-Sem)
4002 -- Parent_Spec (Node4-Sem)
4003
4004 ------------------------------------------
4005 -- 6.1 Abstract Subprogram Declaration --
4006 ------------------------------------------
4007
4008 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4009 -- SUBPROGRAM_SPECIFICATION is abstract;
4010
4011 -- N_Abstract_Subprogram_Declaration
4012 -- Sloc points to ABSTRACT
4013 -- Specification (Node1)
4014
4015 -----------------------------------
4016 -- 6.1 Subprogram Specification --
4017 -----------------------------------
4018
4019 -- SUBPROGRAM_SPECIFICATION ::=
4020 -- [[not] overriding]
4021 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4022 -- | [[not] overriding]
4023 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4024
4025 -- Note: there are no separate nodes for the profiles, instead the
4026 -- information appears directly in the following nodes.
4027
4028 -- N_Function_Specification
4029 -- Sloc points to FUNCTION
4030 -- Defining_Unit_Name (Node1) (the designator)
4031 -- Elaboration_Boolean (Node2-Sem)
4032 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4033 -- Null_Exclusion_Present (Flag11)
4034 -- Result_Definition (Node4) for result subtype
4035 -- Generic_Parent (Node5-Sem)
4036 -- Must_Override (Flag14) set if overriding indicator present
4037 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4038
4039 -- N_Procedure_Specification
4040 -- Sloc points to PROCEDURE
4041 -- Defining_Unit_Name (Node1)
4042 -- Elaboration_Boolean (Node2-Sem)
4043 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4044 -- Generic_Parent (Node5-Sem)
4045 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4046 -- Must_Override (Flag14) set if overriding indicator present
4047 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4048
4049 -- Note: overriding indicator is an Ada 2005 feature
4050
4051 ---------------------
4052 -- 6.1 Designator --
4053 ---------------------
4054
4055 -- DESIGNATOR ::=
4056 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4057
4058 -- Designators that are simply identifiers or operator symbols appear
4059 -- directly in the tree in this form. The following node is used only
4060 -- in the case where the designator has a parent unit name component.
4061
4062 -- N_Designator
4063 -- Sloc points to period
4064 -- Name (Node2) holds the parent unit name. Note that this is always
4065 -- non-Empty, since this node is only used for the case where a
4066 -- parent library unit package name is present.
4067 -- Identifier (Node1)
4068
4069 -- Note that the identifier can also be an operator symbol here
4070
4071 ------------------------------
4072 -- 6.1 Defining Designator --
4073 ------------------------------
4074
4075 -- DEFINING_DESIGNATOR ::=
4076 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4077
4078 -------------------------------------
4079 -- 6.1 Defining Program Unit Name --
4080 -------------------------------------
4081
4082 -- DEFINING_PROGRAM_UNIT_NAME ::=
4083 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4084
4085 -- The parent unit name is present only in the case of a child unit
4086 -- name (permissible only for Ada 95 for a library level unit, i.e.
4087 -- a unit at scope level one). If no such name is present, the defining
4088 -- program unit name is represented simply as the defining identifier.
4089 -- In the child unit case, the following node is used to represent the
4090 -- child unit name.
4091
4092 -- N_Defining_Program_Unit_Name
4093 -- Sloc points to period
4094 -- Name (Node2) holds the parent unit name. Note that this is always
4095 -- non-Empty, since this node is only used for the case where a
4096 -- parent unit name is present.
4097 -- Defining_Identifier (Node1)
4098
4099 --------------------------
4100 -- 6.1 Operator Symbol --
4101 --------------------------
4102
4103 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4104
4105 -- Note: the fields of the N_Operator_Symbol node are laid out to
4106 -- match the corresponding fields of an N_Character_Literal node. This
4107 -- allows easy conversion of the operator symbol node into a character
4108 -- literal node in the case where a string constant of the form of an
4109 -- operator symbol is scanned out as such, but turns out semantically
4110 -- to be a string literal that is not an operator. For details see
4111 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4112
4113 -- N_Operator_Symbol
4114 -- Sloc points to literal
4115 -- Chars (Name1) contains the Name_Id for the operator symbol
4116 -- Strval (Str3) Id of string value. This is used if the operator
4117 -- symbol turns out to be a normal string after all.
4118 -- Entity (Node4-Sem)
4119 -- Associated_Node (Node4-Sem)
4120 -- Has_Private_View (Flag11-Sem) set in generic units.
4121 -- Etype (Node5-Sem)
4122
4123 -- Note: the Strval field may be set to No_String for generated
4124 -- operator symbols that are known not to be string literals
4125 -- semantically.
4126
4127 -----------------------------------
4128 -- 6.1 Defining Operator Symbol --
4129 -----------------------------------
4130
4131 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4132
4133 -- A defining operator symbol is an entity, which has additional
4134 -- fields depending on the setting of the Ekind field. These
4135 -- additional fields are defined (and access subprograms declared)
4136 -- in package Einfo.
4137
4138 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4139 -- are deliberately layed out to match the layout of fields in an
4140 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4141 -- an operator symbol node into a defining operator symbol node.
4142 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4143 -- for further details.
4144
4145 -- N_Defining_Operator_Symbol
4146 -- Sloc points to literal
4147 -- Chars (Name1) contains the Name_Id for the operator symbol
4148 -- Next_Entity (Node2-Sem)
4149 -- Scope (Node3-Sem)
4150 -- Etype (Node5-Sem)
4151
4152 ----------------------------
4153 -- 6.1 Parameter Profile --
4154 ----------------------------
4155
4156 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4157
4158 ---------------------------------------
4159 -- 6.1 Parameter and Result Profile --
4160 ---------------------------------------
4161
4162 -- PARAMETER_AND_RESULT_PROFILE ::=
4163 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4164 -- | [FORMAL_PART] return ACCESS_DEFINITION
4165
4166 -- There is no explicit node in the tree for a parameter and result
4167 -- profile. Instead the information appears directly in the parent.
4168
4169 ----------------------
4170 -- 6.1 Formal part --
4171 ----------------------
4172
4173 -- FORMAL_PART ::=
4174 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4175
4176 ----------------------------------
4177 -- 6.1 Parameter specification --
4178 ----------------------------------
4179
4180 -- PARAMETER_SPECIFICATION ::=
4181 -- DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4182 -- [:= DEFAULT_EXPRESSION]
4183 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4184 -- [:= DEFAULT_EXPRESSION]
4185
4186 -- Although the syntax allows multiple identifiers in the list, the
4187 -- semantics is as though successive specifications were given with
4188 -- identical type definition and expression components. To simplify
4189 -- semantic processing, the parser represents a multiple declaration
4190 -- case as a sequence of single Specifications, using the More_Ids and
4191 -- Prev_Ids flags to preserve the original source form as described
4192 -- in the section on "Handling of Defining Identifier Lists".
4193
4194 -- N_Parameter_Specification
4195 -- Sloc points to first identifier
4196 -- Defining_Identifier (Node1)
4197 -- In_Present (Flag15)
4198 -- Out_Present (Flag17)
4199 -- Null_Exclusion_Present (Flag11)
4200 -- Parameter_Type (Node2) subtype mark or access definition
4201 -- Expression (Node3) (set to Empty if no default expression present)
4202 -- Do_Accessibility_Check (Flag13-Sem)
4203 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4204 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4205 -- Default_Expression (Node5-Sem)
4206
4207 ---------------
4208 -- 6.1 Mode --
4209 ---------------
4210
4211 -- MODE ::= [in] | in out | out
4212
4213 -- There is no explicit node in the tree for the Mode. Instead the
4214 -- In_Present and Out_Present flags are set in the parent node to
4215 -- record the presence of keywords specifying the mode.
4216
4217 --------------------------
4218 -- 6.3 Subprogram Body --
4219 --------------------------
4220
4221 -- SUBPROGRAM_BODY ::=
4222 -- SUBPROGRAM_SPECIFICATION is
4223 -- DECLARATIVE_PART
4224 -- begin
4225 -- HANDLED_SEQUENCE_OF_STATEMENTS
4226 -- end [DESIGNATOR];
4227
4228 -- N_Subprogram_Body
4229 -- Sloc points to FUNCTION or PROCEDURE
4230 -- Specification (Node1)
4231 -- Declarations (List2)
4232 -- Handled_Statement_Sequence (Node4)
4233 -- Activation_Chain_Entity (Node3-Sem)
4234 -- Corresponding_Spec (Node5-Sem)
4235 -- Acts_As_Spec (Flag4-Sem)
4236 -- Bad_Is_Detected (Flag15) used only by parser
4237 -- Do_Storage_Check (Flag17-Sem)
4238 -- Has_Priority_Pragma (Flag6-Sem)
4239 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4240 -- Is_Entry_Barrier_Function (Flag8-Sem)
4241 -- Is_Task_Master (Flag5-Sem)
4242 -- Was_Originally_Stub (Flag13-Sem)
4243
4244 -----------------------------------
4245 -- 6.4 Procedure Call Statement --
4246 -----------------------------------
4247
4248 -- PROCEDURE_CALL_STATEMENT ::=
4249 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4250
4251 -- Note: the reason that a procedure call has expression fields is
4252 -- that it semantically resembles an expression, e.g. overloading is
4253 -- allowed and a type is concocted for semantic processing purposes.
4254 -- Certain of these fields, such as Parens are not relevant, but it
4255 -- is easier to just supply all of them together!
4256
4257 -- N_Procedure_Call_Statement
4258 -- Sloc points to first token of name or prefix
4259 -- Name (Node2) stores name or prefix
4260 -- Parameter_Associations (List3) (set to No_List if no
4261 -- actual parameter part)
4262 -- First_Named_Actual (Node4-Sem)
4263 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4264 -- Do_Tag_Check (Flag13-Sem)
4265 -- No_Elaboration_Check (Flag14-Sem)
4266 -- Parameter_List_Truncated (Flag17-Sem)
4267 -- ABE_Is_Certain (Flag18-Sem)
4268 -- plus fields for expression
4269
4270 -- If any IN parameter requires a range check, then the corresponding
4271 -- argument expression has the Do_Range_Check flag set, and the range
4272 -- check is done against the formal type. Note that this argument
4273 -- expression may appear directly in the Parameter_Associations list,
4274 -- or may be a descendent of an N_Parameter_Association node that
4275 -- appears in this list.
4276
4277 ------------------------
4278 -- 6.4 Function Call --
4279 ------------------------
4280
4281 -- FUNCTION_CALL ::=
4282 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4283
4284 -- Note: the parser may generate an indexed component node or simply
4285 -- a name node instead of a function call node. The semantic pass must
4286 -- correct this misidentification.
4287
4288 -- N_Function_Call
4289 -- Sloc points to first token of name or prefix
4290 -- Name (Node2) stores name or prefix
4291 -- Parameter_Associations (List3) (set to No_List if no
4292 -- actual parameter part)
4293 -- First_Named_Actual (Node4-Sem)
4294 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4295 -- Do_Tag_Check (Flag13-Sem)
4296 -- No_Elaboration_Check (Flag14-Sem)
4297 -- Parameter_List_Truncated (Flag17-Sem)
4298 -- ABE_Is_Certain (Flag18-Sem)
4299 -- plus fields for expression
4300
4301 --------------------------------
4302 -- 6.4 Actual Parameter Part --
4303 --------------------------------
4304
4305 -- ACTUAL_PARAMETER_PART ::=
4306 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4307
4308 --------------------------------
4309 -- 6.4 Parameter Association --
4310 --------------------------------
4311
4312 -- PARAMETER_ASSOCIATION ::=
4313 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4314
4315 -- Note: the N_Parameter_Association node is built only if a formal
4316 -- parameter selector name is present, otherwise the parameter
4317 -- association appears in the tree simply as the node for the
4318 -- explicit actual parameter.
4319
4320 -- N_Parameter_Association
4321 -- Sloc points to formal parameter
4322 -- Selector_Name (Node2) (always non-Empty)
4323 -- Explicit_Actual_Parameter (Node3)
4324 -- Next_Named_Actual (Node4-Sem)
4325
4326 ---------------------------
4327 -- 6.4 Actual Parameter --
4328 ---------------------------
4329
4330 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4331
4332 ---------------------------
4333 -- 6.5 Return Statement --
4334 ---------------------------
4335
4336 -- RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4337
4338 -- In Ada 2005, we have:
4339
4340 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4341
4342 -- EXTENDED_RETURN_STATEMENT ::=
4343 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4344 -- [:= EXPRESSION] [do
4345 -- HANDLED_SEQUENCE_OF_STATEMENTS
4346 -- end return];
4347
4348 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4349
4350 -- So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4351 -- "return statement" is defined in 6.5 to mean a
4352 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4353
4354 -- N_Return_Statement
4355 -- Sloc points to RETURN
4356 -- Return_Statement_Entity (Node5-Sem)
4357 -- Expression (Node3) (set to Empty if no expression present)
4358 -- Storage_Pool (Node1-Sem)
4359 -- Procedure_To_Call (Node2-Sem)
4360 -- Do_Tag_Check (Flag13-Sem)
4361 -- By_Ref (Flag5-Sem)
4362 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
4363
4364 -- N_Return_Statement represents a simple_return_statement, and is
4365 -- renamed to be N_Simple_Return_Statement below. Clients should refer
4366 -- to N_Simple_Return_Statement. We retain N_Return_Statement because
4367 -- that's how gigi knows it. See also renaming of Make_Return_Statement
4368 -- as Make_Simple_Return_Statement in Sem_Util.
4369
4370 -- Note: Return_Statement_Entity points to an E_Return_Statement
4371
4372 -- If a range check is required, then Do_Range_Check is set on the
4373 -- Expression. The check is against the return subtype of the function.
4374
4375 -- N_Extended_Return_Statement
4376 -- Sloc points to RETURN
4377 -- Return_Statement_Entity (Node5-Sem)
4378 -- Return_Object_Declarations (List3)
4379 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
4380 -- Storage_Pool (Node1-Sem)
4381 -- Procedure_To_Call (Node2-Sem)
4382 -- Do_Tag_Check (Flag13-Sem)
4383 -- By_Ref (Flag5-Sem)
4384
4385 -- Note: Return_Statement_Entity points to an E_Return_Statement.
4386 -- Note that Return_Object_Declarations is a list containing the
4387 -- N_Object_Declaration -- see comment on this field above.
4388 -- The declared object will have Is_Return_Object = True.
4389 -- There is no such syntactic category as return_object_declaration
4390 -- in the RM. Return_Object_Declarations represents this portion of
4391 -- the syntax for EXTENDED_RETURN_STATEMENT:
4392 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4393 -- [:= EXPRESSION]
4394
4395 -- There are two entities associated with an extended_return_statement:
4396 -- the Return_Statement_Entity represents the statement itself, and the
4397 -- Defining_Identifier of the Object_Declaration in
4398 -- Return_Object_Declarations represents the object being
4399 -- returned. N_Simple_Return_Statement has only the former.
4400
4401 ------------------------------
4402 -- 7.1 Package Declaration --
4403 ------------------------------
4404
4405 -- PACKAGE_DECLARATION ::= PACKAGE_SPECIFICATION;
4406
4407 -- Note: the activation chain entity for a package spec is used for
4408 -- all tasks declared in the package spec, or in the package body.
4409
4410 -- N_Package_Declaration
4411 -- Sloc points to PACKAGE
4412 -- Specification (Node1)
4413 -- Corresponding_Body (Node5-Sem)
4414 -- Parent_Spec (Node4-Sem)
4415 -- Activation_Chain_Entity (Node3-Sem)
4416
4417 --------------------------------
4418 -- 7.1 Package Specification --
4419 --------------------------------
4420
4421 -- PACKAGE_SPECIFICATION ::=
4422 -- package DEFINING_PROGRAM_UNIT_NAME is
4423 -- {BASIC_DECLARATIVE_ITEM}
4424 -- [private
4425 -- {BASIC_DECLARATIVE_ITEM}]
4426 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
4427
4428 -- N_Package_Specification
4429 -- Sloc points to PACKAGE
4430 -- Defining_Unit_Name (Node1)
4431 -- Visible_Declarations (List2)
4432 -- Private_Declarations (List3) (set to No_List if no private
4433 -- part present)
4434 -- End_Label (Node4)
4435 -- Generic_Parent (Node5-Sem)
4436 -- Limited_View_Installed (Flag18-Sem)
4437
4438 -----------------------
4439 -- 7.1 Package Body --
4440 -----------------------
4441
4442 -- PACKAGE_BODY ::=
4443 -- package body DEFINING_PROGRAM_UNIT_NAME is
4444 -- DECLARATIVE_PART
4445 -- [begin
4446 -- HANDLED_SEQUENCE_OF_STATEMENTS]
4447 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
4448
4449 -- N_Package_Body
4450 -- Sloc points to PACKAGE
4451 -- Defining_Unit_Name (Node1)
4452 -- Declarations (List2)
4453 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4454 -- Corresponding_Spec (Node5-Sem)
4455 -- Was_Originally_Stub (Flag13-Sem)
4456
4457 -- Note: if a source level package does not contain a handled sequence
4458 -- of statements, then the parser supplies a dummy one with a null
4459 -- sequence of statements. Comes_From_Source will be False in this
4460 -- constructed sequence. The reason we need this is for the End_Label
4461 -- field in the HSS.
4462
4463 -----------------------------------
4464 -- 7.4 Private Type Declaration --
4465 -----------------------------------
4466
4467 -- PRIVATE_TYPE_DECLARATION ::=
4468 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4469 -- is [[abstract] tagged] [limited] private;
4470
4471 -- Note: TAGGED is not permitted in Ada 83 mode
4472
4473 -- N_Private_Type_Declaration
4474 -- Sloc points to TYPE
4475 -- Defining_Identifier (Node1)
4476 -- Discriminant_Specifications (List4) (set to No_List if no
4477 -- discriminant part)
4478 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4479 -- Abstract_Present (Flag4)
4480 -- Tagged_Present (Flag15)
4481 -- Limited_Present (Flag17)
4482
4483 ----------------------------------------
4484 -- 7.4 Private Extension Declaration --
4485 ----------------------------------------
4486
4487 -- PRIVATE_EXTENSION_DECLARATION ::=
4488 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4489 -- [abstract] [limited | synchronized]
4490 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4491 -- with private;
4492
4493 -- Note: LIMITED, and private extension declarations are not allowed
4494 -- in Ada 83 mode.
4495
4496 -- N_Private_Extension_Declaration
4497 -- Sloc points to TYPE
4498 -- Defining_Identifier (Node1)
4499 -- Discriminant_Specifications (List4) (set to No_List if no
4500 -- discriminant part)
4501 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4502 -- Abstract_Present (Flag4)
4503 -- Limited_Present (Flag17)
4504 -- Synchronized_Present (Flag7)
4505 -- Subtype_Indication (Node5)
4506 -- Interface_List (List2) (set to No_List if none)
4507
4508 ---------------------
4509 -- 8.4 Use Clause --
4510 ---------------------
4511
4512 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4513
4514 -----------------------------
4515 -- 8.4 Use Package Clause --
4516 -----------------------------
4517
4518 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4519
4520 -- N_Use_Package_Clause
4521 -- Sloc points to USE
4522 -- Names (List2)
4523 -- Next_Use_Clause (Node3-Sem)
4524 -- Hidden_By_Use_Clause (Elist4-Sem)
4525
4526 --------------------------
4527 -- 8.4 Use Type Clause --
4528 --------------------------
4529
4530 -- USE_TYPE_CLAUSE ::= use type SUBTYPE_MARK {, SUBTYPE_MARK};
4531
4532 -- Note: use type clause is not permitted in Ada 83 mode
4533
4534 -- N_Use_Type_Clause
4535 -- Sloc points to USE
4536 -- Subtype_Marks (List2)
4537 -- Next_Use_Clause (Node3-Sem)
4538 -- Hidden_By_Use_Clause (Elist4-Sem)
4539
4540 -------------------------------
4541 -- 8.5 Renaming Declaration --
4542 -------------------------------
4543
4544 -- RENAMING_DECLARATION ::=
4545 -- OBJECT_RENAMING_DECLARATION
4546 -- | EXCEPTION_RENAMING_DECLARATION
4547 -- | PACKAGE_RENAMING_DECLARATION
4548 -- | SUBPROGRAM_RENAMING_DECLARATION
4549 -- | GENERIC_RENAMING_DECLARATION
4550
4551 --------------------------------------
4552 -- 8.5 Object Renaming Declaration --
4553 --------------------------------------
4554
4555 -- OBJECT_RENAMING_DECLARATION ::=
4556 -- DEFINING_IDENTIFIER :
4557 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4558 -- | DEFINING_IDENTIFIER :
4559 -- ACCESS_DEFINITION renames object_NAME;
4560
4561 -- Note: Access_Definition is an optional field that gives support to
4562 -- Ada 2005 (AI-230). The parser generates nodes that have either the
4563 -- Subtype_Indication field or else the Access_Definition field.
4564
4565 -- N_Object_Renaming_Declaration
4566 -- Sloc points to first identifier
4567 -- Defining_Identifier (Node1)
4568 -- Null_Exclusion_Present (Flag11) (set to False if not present)
4569 -- Subtype_Mark (Node4) (set to Empty if not present)
4570 -- Access_Definition (Node3) (set to Empty if not present)
4571 -- Name (Node2)
4572 -- Corresponding_Generic_Association (Node5-Sem)
4573
4574 -----------------------------------------
4575 -- 8.5 Exception Renaming Declaration --
4576 -----------------------------------------
4577
4578 -- EXCEPTION_RENAMING_DECLARATION ::=
4579 -- DEFINING_IDENTIFIER : exception renames exception_NAME;
4580
4581 -- N_Exception_Renaming_Declaration
4582 -- Sloc points to first identifier
4583 -- Defining_Identifier (Node1)
4584 -- Name (Node2)
4585
4586 ---------------------------------------
4587 -- 8.5 Package Renaming Declaration --
4588 ---------------------------------------
4589
4590 -- PACKAGE_RENAMING_DECLARATION ::=
4591 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4592
4593 -- N_Package_Renaming_Declaration
4594 -- Sloc points to PACKAGE
4595 -- Defining_Unit_Name (Node1)
4596 -- Name (Node2)
4597 -- Parent_Spec (Node4-Sem)
4598
4599 ------------------------------------------
4600 -- 8.5 Subprogram Renaming Declaration --
4601 ------------------------------------------
4602
4603 -- SUBPROGRAM_RENAMING_DECLARATION ::=
4604 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4605
4606 -- N_Subprogram_Renaming_Declaration
4607 -- Sloc points to RENAMES
4608 -- Specification (Node1)
4609 -- Name (Node2)
4610 -- Parent_Spec (Node4-Sem)
4611 -- Corresponding_Spec (Node5-Sem)
4612 -- Corresponding_Formal_Spec (Node3-Sem)
4613 -- From_Default (Flag6-Sem)
4614
4615 -----------------------------------------
4616 -- 8.5.5 Generic Renaming Declaration --
4617 -----------------------------------------
4618
4619 -- GENERIC_RENAMING_DECLARATION ::=
4620 -- generic package DEFINING_PROGRAM_UNIT_NAME
4621 -- renames generic_package_NAME
4622 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
4623 -- renames generic_procedure_NAME
4624 -- | generic function DEFINING_PROGRAM_UNIT_NAME
4625 -- renames generic_function_NAME
4626
4627 -- N_Generic_Package_Renaming_Declaration
4628 -- Sloc points to GENERIC
4629 -- Defining_Unit_Name (Node1)
4630 -- Name (Node2)
4631 -- Parent_Spec (Node4-Sem)
4632
4633 -- N_Generic_Procedure_Renaming_Declaration
4634 -- Sloc points to GENERIC
4635 -- Defining_Unit_Name (Node1)
4636 -- Name (Node2)
4637 -- Parent_Spec (Node4-Sem)
4638
4639 -- N_Generic_Function_Renaming_Declaration
4640 -- Sloc points to GENERIC
4641 -- Defining_Unit_Name (Node1)
4642 -- Name (Node2)
4643 -- Parent_Spec (Node4-Sem)
4644
4645 --------------------------------
4646 -- 9.1 Task Type Declaration --
4647 --------------------------------
4648
4649 -- TASK_TYPE_DECLARATION ::=
4650 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4651 -- [is [new INTERFACE_LIST with] TASK_DEFINITITION];
4652
4653 -- N_Task_Type_Declaration
4654 -- Sloc points to TASK
4655 -- Defining_Identifier (Node1)
4656 -- Discriminant_Specifications (List4) (set to No_List if no
4657 -- discriminant part)
4658 -- Interface_List (List2) (set to No_List if none)
4659 -- Task_Definition (Node3) (set to Empty if not present)
4660 -- Corresponding_Body (Node5-Sem)
4661
4662 ----------------------------------
4663 -- 9.1 Single Task Declaration --
4664 ----------------------------------
4665
4666 -- SINGLE_TASK_DECLARATION ::=
4667 -- task DEFINING_IDENTIFIER
4668 -- [is [new INTERFACE_LIST with] TASK_DEFINITITION];
4669
4670 -- N_Single_Task_Declaration
4671 -- Sloc points to TASK
4672 -- Defining_Identifier (Node1)
4673 -- Interface_List (List2) (set to No_List if none)
4674 -- Task_Definition (Node3) (set to Empty if not present)
4675
4676 --------------------------
4677 -- 9.1 Task Definition --
4678 --------------------------
4679
4680 -- TASK_DEFINITION ::=
4681 -- {TASK_ITEM}
4682 -- [private
4683 -- {TASK_ITEM}]
4684 -- end [task_IDENTIFIER]
4685
4686 -- Note: as a result of semantic analysis, the list of task items can
4687 -- include implicit type declarations resulting from entry families.
4688
4689 -- N_Task_Definition
4690 -- Sloc points to first token of task definition
4691 -- Visible_Declarations (List2)
4692 -- Private_Declarations (List3) (set to No_List if no private part)
4693 -- End_Label (Node4)
4694 -- Has_Priority_Pragma (Flag6-Sem)
4695 -- Has_Storage_Size_Pragma (Flag5-Sem)
4696 -- Has_Task_Info_Pragma (Flag7-Sem)
4697 -- Has_Task_Name_Pragma (Flag8-Sem)
4698
4699 --------------------
4700 -- 9.1 Task Item --
4701 --------------------
4702
4703 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
4704
4705 --------------------
4706 -- 9.1 Task Body --
4707 --------------------
4708
4709 -- TASK_BODY ::=
4710 -- task body task_DEFINING_IDENTIFIER is
4711 -- DECLARATIVE_PART
4712 -- begin
4713 -- HANDLED_SEQUENCE_OF_STATEMENTS
4714 -- end [task_IDENTIFIER];
4715
4716 -- Gigi restriction: This node never appears
4717
4718 -- N_Task_Body
4719 -- Sloc points to TASK
4720 -- Defining_Identifier (Node1)
4721 -- Declarations (List2)
4722 -- Handled_Statement_Sequence (Node4)
4723 -- Is_Task_Master (Flag5-Sem)
4724 -- Activation_Chain_Entity (Node3-Sem)
4725 -- Corresponding_Spec (Node5-Sem)
4726 -- Was_Originally_Stub (Flag13-Sem)
4727
4728 -------------------------------------
4729 -- 9.4 Protected Type Declaration --
4730 -------------------------------------
4731
4732 -- PROTECTED_TYPE_DECLARATION ::=
4733 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4734 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4735
4736 -- Note: protected type declarations are not permitted in Ada 83 mode
4737
4738 -- N_Protected_Type_Declaration
4739 -- Sloc points to PROTECTED
4740 -- Defining_Identifier (Node1)
4741 -- Discriminant_Specifications (List4) (set to No_List if no
4742 -- discriminant part)
4743 -- Interface_List (List2) (set to No_List if none)
4744 -- Protected_Definition (Node3)
4745 -- Corresponding_Body (Node5-Sem)
4746
4747 ---------------------------------------
4748 -- 9.4 Single Protected Declaration --
4749 ---------------------------------------
4750
4751 -- SINGLE_PROTECTED_DECLARATION ::=
4752 -- protected DEFINING_IDENTIFIER
4753 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4754
4755 -- Note: single protected declarations are not allowed in Ada 83 mode
4756
4757 -- N_Single_Protected_Declaration
4758 -- Sloc points to PROTECTED
4759 -- Defining_Identifier (Node1)
4760 -- Interface_List (List2) (set to No_List if none)
4761 -- Protected_Definition (Node3)
4762
4763 -------------------------------
4764 -- 9.4 Protected Definition --
4765 -------------------------------
4766
4767 -- PROTECTED_DEFINITION ::=
4768 -- {PROTECTED_OPERATION_DECLARATION}
4769 -- [private
4770 -- {PROTECTED_ELEMENT_DECLARATION}]
4771 -- end [protected_IDENTIFIER]
4772
4773 -- N_Protected_Definition
4774 -- Sloc points to first token of protected definition
4775 -- Visible_Declarations (List2)
4776 -- Private_Declarations (List3) (set to No_List if no private part)
4777 -- End_Label (Node4)
4778 -- Has_Priority_Pragma (Flag6-Sem)
4779
4780 ------------------------------------------
4781 -- 9.4 Protected Operation Declaration --
4782 ------------------------------------------
4783
4784 -- PROTECTED_OPERATION_DECLARATION ::=
4785 -- SUBPROGRAM_DECLARATION
4786 -- | ENTRY_DECLARATION
4787 -- | REPRESENTATION_CLAUSE
4788
4789 ----------------------------------------
4790 -- 9.4 Protected Element Declaration --
4791 ----------------------------------------
4792
4793 -- PROTECTED_ELEMENT_DECLARATION ::=
4794 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
4795
4796 -------------------------
4797 -- 9.4 Protected Body --
4798 -------------------------
4799
4800 -- PROTECTED_BODY ::=
4801 -- protected body DEFINING_IDENTIFIER is
4802 -- {PROTECTED_OPERATION_ITEM}
4803 -- end [protected_IDENTIFIER];
4804
4805 -- Note: protected bodies are not allowed in Ada 83 mode
4806
4807 -- Gigi restriction: This node never appears
4808
4809 -- N_Protected_Body
4810 -- Sloc points to PROTECTED
4811 -- Defining_Identifier (Node1)
4812 -- Declarations (List2) protected operation items (and pragmas)
4813 -- End_Label (Node4)
4814 -- Corresponding_Spec (Node5-Sem)
4815 -- Was_Originally_Stub (Flag13-Sem)
4816
4817 -----------------------------------
4818 -- 9.4 Protected Operation Item --
4819 -----------------------------------
4820
4821 -- PROTECTED_OPERATION_ITEM ::=
4822 -- SUBPROGRAM_DECLARATION
4823 -- | SUBPROGRAM_BODY
4824 -- | ENTRY_BODY
4825 -- | REPRESENTATION_CLAUSE
4826
4827 ------------------------------
4828 -- 9.5.2 Entry Declaration --
4829 ------------------------------
4830
4831 -- ENTRY_DECLARATION ::=
4832 -- [[not] overriding]
4833 -- entry DEFINING_IDENTIFIER
4834 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
4835
4836 -- N_Entry_Declaration
4837 -- Sloc points to ENTRY
4838 -- Defining_Identifier (Node1)
4839 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
4840 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4841 -- Corresponding_Body (Node5-Sem)
4842 -- Must_Override (Flag14) set if overriding indicator present
4843 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4844
4845 -- Note: overriding indicator is an Ada 2005 feature
4846
4847 -----------------------------
4848 -- 9.5.2 Accept statement --
4849 -----------------------------
4850
4851 -- ACCEPT_STATEMENT ::=
4852 -- accept entry_DIRECT_NAME
4853 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
4854 -- HANDLED_SEQUENCE_OF_STATEMENTS
4855 -- end [entry_IDENTIFIER]];
4856
4857 -- Gigi restriction: This node never appears
4858
4859 -- Note: there are no explicit declarations allowed in an accept
4860 -- statement. However, the implicit declarations for any statement
4861 -- identifiers (labels and block/loop identifiers) are declarations
4862 -- that belong logically to the accept statement, and that is why
4863 -- there is a Declarations field in this node.
4864
4865 -- N_Accept_Statement
4866 -- Sloc points to ACCEPT
4867 -- Entry_Direct_Name (Node1)
4868 -- Entry_Index (Node5) (set to Empty if not present)
4869 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4870 -- Handled_Statement_Sequence (Node4)
4871 -- Declarations (List2) (set to No_List if no declarations)
4872
4873 ------------------------
4874 -- 9.5.2 Entry Index --
4875 ------------------------
4876
4877 -- ENTRY_INDEX ::= EXPRESSION
4878
4879 -----------------------
4880 -- 9.5.2 Entry Body --
4881 -----------------------
4882
4883 -- ENTRY_BODY ::=
4884 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
4885 -- DECLARATIVE_PART
4886 -- begin
4887 -- HANDLED_SEQUENCE_OF_STATEMENTS
4888 -- end [entry_IDENTIFIER];
4889
4890 -- ENTRY_BARRIER ::= when CONDITION
4891
4892 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
4893 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
4894 -- too full (it would otherwise have too many fields)
4895
4896 -- Gigi restriction: This node never appears
4897
4898 -- N_Entry_Body
4899 -- Sloc points to ENTRY
4900 -- Defining_Identifier (Node1)
4901 -- Entry_Body_Formal_Part (Node5)
4902 -- Declarations (List2)
4903 -- Handled_Statement_Sequence (Node4)
4904 -- Activation_Chain_Entity (Node3-Sem)
4905
4906 -----------------------------------
4907 -- 9.5.2 Entry Body Formal Part --
4908 -----------------------------------
4909
4910 -- ENTRY_BODY_FORMAL_PART ::=
4911 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
4912
4913 -- Note that an entry body formal part node is present even if it is
4914 -- empty. This reflects the grammar, in which it is the components of
4915 -- the entry body formal part that are optional, not the entry body
4916 -- formal part itself. Also this means that the barrier condition
4917 -- always has somewhere to be stored.
4918
4919 -- Gigi restriction: This node never appears
4920
4921 -- N_Entry_Body_Formal_Part
4922 -- Sloc points to first token
4923 -- Entry_Index_Specification (Node4) (set to Empty if not present)
4924 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4925 -- Condition (Node1) from entry barrier of entry body
4926
4927 --------------------------
4928 -- 9.5.2 Entry Barrier --
4929 --------------------------
4930
4931 -- ENTRY_BARRIER ::= when CONDITION
4932
4933 --------------------------------------
4934 -- 9.5.2 Entry Index Specification --
4935 --------------------------------------
4936
4937 -- ENTRY_INDEX_SPECIFICATION ::=
4938 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
4939
4940 -- Gigi restriction: This node never appears
4941
4942 -- N_Entry_Index_Specification
4943 -- Sloc points to FOR
4944 -- Defining_Identifier (Node1)
4945 -- Discrete_Subtype_Definition (Node4)
4946
4947 ---------------------------------
4948 -- 9.5.3 Entry Call Statement --
4949 ---------------------------------
4950
4951 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
4952
4953 -- The parser may generate a procedure call for this construct. The
4954 -- semantic pass must correct this misidentification where needed.
4955
4956 -- Gigi restriction: This node never appears
4957
4958 -- N_Entry_Call_Statement
4959 -- Sloc points to first token of name
4960 -- Name (Node2)
4961 -- Parameter_Associations (List3) (set to No_List if no
4962 -- actual parameter part)
4963 -- First_Named_Actual (Node4-Sem)
4964
4965 ------------------------------
4966 -- 9.5.4 Requeue Statement --
4967 ------------------------------
4968
4969 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
4970
4971 -- Note: requeue statements are not permitted in Ada 83 mode
4972
4973 -- Gigi restriction: This node never appears
4974
4975 -- N_Requeue_Statement
4976 -- Sloc points to REQUEUE
4977 -- Name (Node2)
4978 -- Abort_Present (Flag15)
4979
4980 --------------------------
4981 -- 9.6 Delay Statement --
4982 --------------------------
4983
4984 -- DELAY_STATEMENT ::=
4985 -- DELAY_UNTIL_STATEMENT
4986 -- | DELAY_RELATIVE_STATEMENT
4987
4988 --------------------------------
4989 -- 9.6 Delay Until Statement --
4990 --------------------------------
4991
4992 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
4993
4994 -- Note: delay until statements are not permitted in Ada 83 mode
4995
4996 -- Gigi restriction: This node never appears
4997
4998 -- N_Delay_Until_Statement
4999 -- Sloc points to DELAY
5000 -- Expression (Node3)
5001
5002 -----------------------------------
5003 -- 9.6 Delay Relative Statement --
5004 -----------------------------------
5005
5006 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5007
5008 -- Gigi restriction: This node never appears
5009
5010 -- N_Delay_Relative_Statement
5011 -- Sloc points to DELAY
5012 -- Expression (Node3)
5013
5014 ---------------------------
5015 -- 9.7 Select Statement --
5016 ---------------------------
5017
5018 -- SELECT_STATEMENT ::=
5019 -- SELECTIVE_ACCEPT
5020 -- | TIMED_ENTRY_CALL
5021 -- | CONDITIONAL_ENTRY_CALL
5022 -- | ASYNCHRONOUS_SELECT
5023
5024 -----------------------------
5025 -- 9.7.1 Selective Accept --
5026 -----------------------------
5027
5028 -- SELECTIVE_ACCEPT ::=
5029 -- select
5030 -- [GUARD]
5031 -- SELECT_ALTERNATIVE
5032 -- {or
5033 -- [GUARD]
5034 -- SELECT_ALTERNATIVE}
5035 -- [else
5036 -- SEQUENCE_OF_STATEMENTS]
5037 -- end select;
5038
5039 -- Gigi restriction: This node never appears
5040
5041 -- Note: the guard expression, if present, appears in the node for
5042 -- the select alternative.
5043
5044 -- N_Selective_Accept
5045 -- Sloc points to SELECT
5046 -- Select_Alternatives (List1)
5047 -- Else_Statements (List4) (set to No_List if no else part)
5048
5049 ------------------
5050 -- 9.7.1 Guard --
5051 ------------------
5052
5053 -- GUARD ::= when CONDITION =>
5054
5055 -- As noted above, the CONDITION that is part of a GUARD is included
5056 -- in the node for the select alernative for convenience.
5057
5058 -------------------------------
5059 -- 9.7.1 Select Alternative --
5060 -------------------------------
5061
5062 -- SELECT_ALTERNATIVE ::=
5063 -- ACCEPT_ALTERNATIVE
5064 -- | DELAY_ALTERNATIVE
5065 -- | TERMINATE_ALTERNATIVE
5066
5067 -------------------------------
5068 -- 9.7.1 Accept Alternative --
5069 -------------------------------
5070
5071 -- ACCEPT_ALTERNATIVE ::=
5072 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5073
5074 -- Gigi restriction: This node never appears
5075
5076 -- N_Accept_Alternative
5077 -- Sloc points to ACCEPT
5078 -- Accept_Statement (Node2)
5079 -- Condition (Node1) from the guard (set to Empty if no guard present)
5080 -- Statements (List3) (set to Empty_List if no statements)
5081 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5082 -- Accept_Handler_Records (List5-Sem)
5083
5084 ------------------------------
5085 -- 9.7.1 Delay Alternative --
5086 ------------------------------
5087
5088 -- DELAY_ALTERNATIVE ::=
5089 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5090
5091 -- Gigi restriction: This node never appears
5092
5093 -- N_Delay_Alternative
5094 -- Sloc points to DELAY
5095 -- Delay_Statement (Node2)
5096 -- Condition (Node1) from the guard (set to Empty if no guard present)
5097 -- Statements (List3) (set to Empty_List if no statements)
5098 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5099
5100 ----------------------------------
5101 -- 9.7.1 Terminate Alternative --
5102 ----------------------------------
5103
5104 -- TERMINATE_ALTERNATIVE ::= terminate;
5105
5106 -- Gigi restriction: This node never appears
5107
5108 -- N_Terminate_Alternative
5109 -- Sloc points to TERMINATE
5110 -- Condition (Node1) from the guard (set to Empty if no guard present)
5111 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5112 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5113
5114 -----------------------------
5115 -- 9.7.2 Timed Entry Call --
5116 -----------------------------
5117
5118 -- TIMED_ENTRY_CALL ::=
5119 -- select
5120 -- ENTRY_CALL_ALTERNATIVE
5121 -- or
5122 -- DELAY_ALTERNATIVE
5123 -- end select;
5124
5125 -- Gigi restriction: This node never appears
5126
5127 -- N_Timed_Entry_Call
5128 -- Sloc points to SELECT
5129 -- Entry_Call_Alternative (Node1)
5130 -- Delay_Alternative (Node4)
5131
5132 -----------------------------------
5133 -- 9.7.2 Entry Call Alternative --
5134 -----------------------------------
5135
5136 -- ENTRY_CALL_ALTERNATIVE ::=
5137 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5138
5139 -- PROCEDURE_OR_ENTRY_CALL ::=
5140 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5141
5142 -- Gigi restriction: This node never appears
5143
5144 -- N_Entry_Call_Alternative
5145 -- Sloc points to first token of entry call statement
5146 -- Entry_Call_Statement (Node1)
5147 -- Statements (List3) (set to Empty_List if no statements)
5148 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5149
5150 -----------------------------------
5151 -- 9.7.3 Conditional Entry Call --
5152 -----------------------------------
5153
5154 -- CONDITIONAL_ENTRY_CALL ::=
5155 -- select
5156 -- ENTRY_CALL_ALTERNATIVE
5157 -- else
5158 -- SEQUENCE_OF_STATEMENTS
5159 -- end select;
5160
5161 -- Gigi restriction: This node never appears
5162
5163 -- N_Conditional_Entry_Call
5164 -- Sloc points to SELECT
5165 -- Entry_Call_Alternative (Node1)
5166 -- Else_Statements (List4)
5167
5168 --------------------------------
5169 -- 9.7.4 Asynchronous Select --
5170 --------------------------------
5171
5172 -- ASYNCHRONOUS_SELECT ::=
5173 -- select
5174 -- TRIGGERING_ALTERNATIVE
5175 -- then abort
5176 -- ABORTABLE_PART
5177 -- end select;
5178
5179 -- Note: asynchronous select is not permitted in Ada 83 mode
5180
5181 -- Gigi restriction: This node never appears
5182
5183 -- N_Asynchronous_Select
5184 -- Sloc points to SELECT
5185 -- Triggering_Alternative (Node1)
5186 -- Abortable_Part (Node2)
5187
5188 -----------------------------------
5189 -- 9.7.4 Triggering Alternative --
5190 -----------------------------------
5191
5192 -- TRIGGERING_ALTERNATIVE ::=
5193 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5194
5195 -- Gigi restriction: This node never appears
5196
5197 -- N_Triggering_Alternative
5198 -- Sloc points to first token of triggering statement
5199 -- Triggering_Statement (Node1)
5200 -- Statements (List3) (set to Empty_List if no statements)
5201 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5202
5203 ---------------------------------
5204 -- 9.7.4 Triggering Statement --
5205 ---------------------------------
5206
5207 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5208
5209 ---------------------------
5210 -- 9.7.4 Abortable Part --
5211 ---------------------------
5212
5213 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5214
5215 -- Gigi restriction: This node never appears
5216
5217 -- N_Abortable_Part
5218 -- Sloc points to ABORT
5219 -- Statements (List3)
5220
5221 --------------------------
5222 -- 9.8 Abort Statement --
5223 --------------------------
5224
5225 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5226
5227 -- Gigi restriction: This node never appears
5228
5229 -- N_Abort_Statement
5230 -- Sloc points to ABORT
5231 -- Names (List2)
5232
5233 -------------------------
5234 -- 10.1.1 Compilation --
5235 -------------------------
5236
5237 -- COMPILATION ::= {COMPILATION_UNIT}
5238
5239 -- There is no explicit node in the tree for a compilation, since in
5240 -- general the compiler is processing only a single compilation unit
5241 -- at a time. It is possible to parse multiple units in syntax check
5242 -- only mode, but they the trees are discarded in any case.
5243
5244 ------------------------------
5245 -- 10.1.1 Compilation Unit --
5246 ------------------------------
5247
5248 -- COMPILATION_UNIT ::=
5249 -- CONTEXT_CLAUSE LIBRARY_ITEM
5250 -- | CONTEXT_CLAUSE SUBUNIT
5251
5252 -- The N_Compilation_Unit node itself respresents the above syntax.
5253 -- However, there are two additional items not reflected in the above
5254 -- syntax. First we have the global declarations that are added by the
5255 -- code generator. These are outer level declarations (so they cannot
5256 -- be represented as being inside the units). An example is the wrapper
5257 -- subprograms that are created to do ABE checking. As always a list of
5258 -- declarations can contain actions as well (i.e. statements), and such
5259 -- statements are executed as part of the elaboration of the unit. Note
5260 -- that all such declarations are elaborated before the library unit.
5261
5262 -- Similarly, certain actions need to be elaborated at the completion
5263 -- of elaboration of the library unit (notably the statement that sets
5264 -- the Boolean flag indicating that elaboration is complete).
5265
5266 -- The third item not reflected in the syntax is pragmas that appear
5267 -- after the compilation unit. As always pragmas are a problem since
5268 -- they are not part of the formal syntax, but can be stuck into the
5269 -- source following a set of ad hoc rules, and we have to find an ad
5270 -- hoc way of sticking them into the tree. For pragmas that appear
5271 -- before the library unit, we just consider them to be part of the
5272 -- context clause, and pragmas can appear in the Context_Items list
5273 -- of the compilation unit. However, pragmas can also appear after
5274 -- the library item.
5275
5276 -- To deal with all these problems, we create an auxiliary node for
5277 -- a compilation unit, referenced from the N_Compilation_Unit node
5278 -- that contains these three items.
5279
5280 -- N_Compilation_Unit
5281 -- Sloc points to first token of defining unit name
5282 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
5283 -- Context_Items (List1) context items and pragmas preceding unit
5284 -- Private_Present (Flag15) set if library unit has private keyword
5285 -- Unit (Node2) library item or subunit
5286 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5287 -- Has_No_Elaboration_Code (Flag17-Sem)
5288 -- Body_Required (Flag13-Sem) set for spec if body is required
5289 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5290 -- First_Inlined_Subprogram (Node3-Sem)
5291
5292 -- N_Compilation_Unit_Aux
5293 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
5294 -- Declarations (List2) (set to No_List if no global declarations)
5295 -- Actions (List1) (set to No_List if no actions)
5296 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
5297 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5298
5299 --------------------------
5300 -- 10.1.1 Library Item --
5301 --------------------------
5302
5303 -- LIBRARY_ITEM ::=
5304 -- [private] LIBRARY_UNIT_DECLARATION
5305 -- | LIBRARY_UNIT_BODY
5306 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5307
5308 -- Note: PRIVATE is not allowed in Ada 83 mode
5309
5310 -- There is no explicit node in the tree for library item, instead
5311 -- the declaration or body, and the flag for private if present,
5312 -- appear in the N_Compilation_Unit clause.
5313
5314 ----------------------------------------
5315 -- 10.1.1 Library Unit Declararation --
5316 ----------------------------------------
5317
5318 -- LIBRARY_UNIT_DECLARATION ::=
5319 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5320 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
5321
5322 -------------------------------------------------
5323 -- 10.1.1 Library Unit Renaming Declararation --
5324 -------------------------------------------------
5325
5326 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
5327 -- PACKAGE_RENAMING_DECLARATION
5328 -- | GENERIC_RENAMING_DECLARATION
5329 -- | SUBPROGRAM_RENAMING_DECLARATION
5330
5331 -------------------------------
5332 -- 10.1.1 Library unit body --
5333 -------------------------------
5334
5335 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5336
5337 ------------------------------
5338 -- 10.1.1 Parent Unit Name --
5339 ------------------------------
5340
5341 -- PARENT_UNIT_NAME ::= NAME
5342
5343 ----------------------------
5344 -- 10.1.2 Context clause --
5345 ----------------------------
5346
5347 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5348
5349 -- The context clause can include pragmas, and any pragmas that appear
5350 -- before the context clause proper (i.e. all configuration pragmas,
5351 -- also appear at the front of this list).
5352
5353 --------------------------
5354 -- 10.1.2 Context_Item --
5355 --------------------------
5356
5357 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
5358
5359 -------------------------
5360 -- 10.1.2 With clause --
5361 -------------------------
5362
5363 -- WITH_CLAUSE ::=
5364 -- with library_unit_NAME {,library_unit_NAME};
5365
5366 -- A separate With clause is built for each name, so that we have
5367 -- a Corresponding_Spec field for each with'ed spec. The flags
5368 -- First_Name and Last_Name are used to reconstruct the exact
5369 -- source form. When a list of names appears in one with clause,
5370 -- the first name in the list has First_Name set, and the last
5371 -- has Last_Name set. If the with clause has only one name, then
5372 -- both of the flags First_Name and Last_Name are set in this name.
5373
5374 -- Note: in the case of implicit with's that are installed by the
5375 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
5376 -- set to Standard_Location, but it is incorrect to test the Sloc
5377 -- to find out if a with clause is implicit, test the flag instead.
5378
5379 -- N_With_Clause
5380 -- Sloc points to first token of library unit name
5381 -- Name (Node2)
5382 -- Library_Unit (Node4-Sem)
5383 -- Corresponding_Spec (Node5-Sem)
5384 -- First_Name (Flag5) (set to True if first name or only one name)
5385 -- Last_Name (Flag6) (set to True if last name or only one name)
5386 -- Context_Installed (Flag13-Sem)
5387 -- Elaborate_Present (Flag4-Sem)
5388 -- Elaborate_All_Present (Flag14-Sem)
5389 -- Elaborate_All_Desirable (Flag9-Sem)
5390 -- Elaborate_Desirable (Flag11-Sem)
5391 -- Private_Present (Flag15) set if with_clause has private keyword
5392 -- Implicit_With (Flag16-Sem)
5393 -- Limited_Present (Flag17) set if LIMITED is present
5394 -- Limited_View_Installed (Flag18-Sem)
5395 -- Unreferenced_In_Spec (Flag7-Sem)
5396 -- No_Entities_Ref_In_Spec (Flag8-Sem)
5397
5398 -- Note: Limited_Present and Limited_View_Installed give support to
5399 -- Ada 2005 (AI-50217).
5400 -- Similarly, Private_Present gives support to AI-50262.
5401
5402 ----------------------
5403 -- With_Type clause --
5404 ----------------------
5405
5406 -- This is a GNAT extension, used to implement mutually recursive
5407 -- types declared in different packages.
5408 -- Note: this is now obsolete. The functionality of this construct
5409 -- is now implemented by the Ada 2005 Limited_with_Clause.
5410
5411 ---------------------
5412 -- 10.2 Body stub --
5413 ---------------------
5414
5415 -- BODY_STUB ::=
5416 -- SUBPROGRAM_BODY_STUB
5417 -- | PACKAGE_BODY_STUB
5418 -- | TASK_BODY_STUB
5419 -- | PROTECTED_BODY_STUB
5420
5421 ----------------------------------
5422 -- 10.1.3 Subprogram Body Stub --
5423 ----------------------------------
5424
5425 -- SUBPROGRAM_BODY_STUB ::=
5426 -- SUBPROGRAM_SPECIFICATION is separate;
5427
5428 -- N_Subprogram_Body_Stub
5429 -- Sloc points to FUNCTION or PROCEDURE
5430 -- Specification (Node1)
5431 -- Library_Unit (Node4-Sem) points to the subunit
5432 -- Corresponding_Body (Node5-Sem)
5433
5434 -------------------------------
5435 -- 10.1.3 Package Body Stub --
5436 -------------------------------
5437
5438 -- PACKAGE_BODY_STUB ::=
5439 -- package body DEFINING_IDENTIFIER is separate;
5440
5441 -- N_Package_Body_Stub
5442 -- Sloc points to PACKAGE
5443 -- Defining_Identifier (Node1)
5444 -- Library_Unit (Node4-Sem) points to the subunit
5445 -- Corresponding_Body (Node5-Sem)
5446
5447 ----------------------------
5448 -- 10.1.3 Task Body Stub --
5449 ----------------------------
5450
5451 -- TASK_BODY_STUB ::=
5452 -- task body DEFINING_IDENTIFIER is separate;
5453
5454 -- N_Task_Body_Stub
5455 -- Sloc points to TASK
5456 -- Defining_Identifier (Node1)
5457 -- Library_Unit (Node4-Sem) points to the subunit
5458 -- Corresponding_Body (Node5-Sem)
5459
5460 ---------------------------------
5461 -- 10.1.3 Protected Body Stub --
5462 ---------------------------------
5463
5464 -- PROTECTED_BODY_STUB ::=
5465 -- protected body DEFINING_IDENTIFIER is separate;
5466
5467 -- Note: protected body stubs are not allowed in Ada 83 mode
5468
5469 -- N_Protected_Body_Stub
5470 -- Sloc points to PROTECTED
5471 -- Defining_Identifier (Node1)
5472 -- Library_Unit (Node4-Sem) points to the subunit
5473 -- Corresponding_Body (Node5-Sem)
5474
5475 ---------------------
5476 -- 10.1.3 Subunit --
5477 ---------------------
5478
5479 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5480
5481 -- N_Subunit
5482 -- Sloc points to SEPARATE
5483 -- Name (Node2) is the name of the parent unit
5484 -- Proper_Body (Node1) is the subunit body
5485 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5486
5487 ---------------------------------
5488 -- 11.1 Exception Declaration --
5489 ---------------------------------
5490
5491 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception;
5492
5493 -- For consistency with object declarations etc, the parser converts
5494 -- the case of multiple identifiers being declared to a series of
5495 -- declarations in which the expression is copied, using the More_Ids
5496 -- and Prev_Ids flags to remember the souce form as described in the
5497 -- section on "Handling of Defining Identifier Lists".
5498
5499 -- N_Exception_Declaration
5500 -- Sloc points to EXCEPTION
5501 -- Defining_Identifier (Node1)
5502 -- Expression (Node3-Sem)
5503 -- Renaming_Exception (Node2-Sem)
5504 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5505 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5506
5507 ------------------------------------------
5508 -- 11.2 Handled Sequence Of Statements --
5509 ------------------------------------------
5510
5511 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
5512 -- SEQUENCE_OF_STATEMENTS
5513 -- [exception
5514 -- EXCEPTION_HANDLER
5515 -- {EXCEPTION_HANDLER}]
5516 -- [at end
5517 -- cleanup_procedure_call (param, param, param, ...);]
5518
5519 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
5520 -- used only internally currently, but is considered to be syntactic.
5521 -- At the moment, the only cleanup action allowed is a single call to
5522 -- a parameterless procedure, and the Identifier field of the node is
5523 -- the procedure to be called. Also there is a current restriction
5524 -- that exception handles and a cleanup cannot be present in the same
5525 -- frame, so at least one of Exception_Handlers or the Identifier must
5526 -- be missing.
5527
5528 -- Actually, more accurately, this restriction applies to the original
5529 -- source program. In the expanded tree, if the At_End_Proc field is
5530 -- present, then there will also be an exception handler of the form:
5531
5532 -- when all others =>
5533 -- cleanup;
5534 -- raise;
5535
5536 -- where cleanup is the procedure to be generated. The reason we do
5537 -- this is so that the front end can handle the necessary entries in
5538 -- the exception tables, and other exception handler actions required
5539 -- as part of the normal handling for exception handlers.
5540
5541 -- The AT END cleanup handler protects only the sequence of statements
5542 -- (not the associated declarations of the parent), just like exception
5543 -- handlers. The big difference is that the cleanup procedure is called
5544 -- on either a normal or an abnormal exit from the statement sequence.
5545
5546 -- Note: the list of Exception_Handlers can contain pragmas as well
5547 -- as actual handlers. In practice these pragmas can only occur at
5548 -- the start of the list, since any pragmas occurring later on will
5549 -- be included in the statement list of the corresponding handler.
5550
5551 -- Note: although in the Ada syntax, the sequence of statements in
5552 -- a handled sequence of statements can only contain statements, we
5553 -- allow free mixing of declarations and statements in the resulting
5554 -- expanded tree. This is for example used to deal with the case of
5555 -- a cleanup procedure that must handle declarations as well as the
5556 -- statements of a block.
5557
5558 -- N_Handled_Sequence_Of_Statements
5559 -- Sloc points to first token of first statement
5560 -- Statements (List3)
5561 -- End_Label (Node4) (set to Empty if expander generated)
5562 -- Exception_Handlers (List5) (set to No_List if none present)
5563 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
5564 -- First_Real_Statement (Node2-Sem)
5565 -- Zero_Cost_Handling (Flag5-Sem)
5566
5567 -- Note: the parent always contains a Declarations field which contains
5568 -- declarations associated with the handled sequence of statements. This
5569 -- is true even in the case of an accept statement (see description of
5570 -- the N_Accept_Statement node).
5571
5572 -- End_Label refers to the containing construct
5573
5574 -----------------------------
5575 -- 11.2 Exception Handler --
5576 -----------------------------
5577
5578 -- EXCEPTION_HANDLER ::=
5579 -- when [CHOICE_PARAMETER_SPECIFICATION :]
5580 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5581 -- SEQUENCE_OF_STATEMENTS
5582
5583 -- Note: choice parameter specification is not allowed in Ada 83 mode
5584
5585 -- N_Exception_Handler
5586 -- Sloc points to WHEN
5587 -- Choice_Parameter (Node2) (set to Empty if not present)
5588 -- Exception_Choices (List4)
5589 -- Statements (List3)
5590 -- Exception_Label (Node5-Sem) (set to Empty of not present)
5591 -- Zero_Cost_Handling (Flag5-Sem)
5592 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5593 -- Local_Raise_Not_OK (Flag7-Sem)
5594 -- Has_Local_Raise (Flag8-Sem)
5595
5596 ------------------------------------------
5597 -- 11.2 Choice parameter specification --
5598 ------------------------------------------
5599
5600 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5601
5602 ----------------------------
5603 -- 11.2 Exception Choice --
5604 ----------------------------
5605
5606 -- EXCEPTION_CHOICE ::= exception_NAME | others
5607
5608 -- Except in the case of OTHERS, no explicit node appears in the tree
5609 -- for exception choice. Instead the exception name appears directly.
5610 -- An OTHERS choice is represented by a N_Others_Choice node (see
5611 -- section 3.8.1.
5612
5613 -- Note: for the exception choice created for an at end handler, the
5614 -- exception choice is an N_Others_Choice node with All_Others set.
5615
5616 ---------------------------
5617 -- 11.3 Raise Statement --
5618 ---------------------------
5619
5620 -- RAISE_STATEMENT ::= raise [exception_NAME];
5621
5622 -- In Ada 2005, we have
5623
5624 -- RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5625
5626 -- N_Raise_Statement
5627 -- Sloc points to RAISE
5628 -- Name (Node2) (set to Empty if no exception name present)
5629 -- Expression (Node3) (set to Empty if no expression present)
5630
5631 -------------------------------
5632 -- 12.1 Generic Declaration --
5633 -------------------------------
5634
5635 -- GENERIC_DECLARATION ::=
5636 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5637
5638 ------------------------------------------
5639 -- 12.1 Generic Subprogram Declaration --
5640 ------------------------------------------
5641
5642 -- GENERIC_SUBPROGRAM_DECLARATION ::=
5643 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5644
5645 -- Note: Generic_Formal_Declarations can include pragmas
5646
5647 -- N_Generic_Subprogram_Declaration
5648 -- Sloc points to GENERIC
5649 -- Specification (Node1) subprogram specification
5650 -- Corresponding_Body (Node5-Sem)
5651 -- Generic_Formal_Declarations (List2) from generic formal part
5652 -- Parent_Spec (Node4-Sem)
5653
5654 ---------------------------------------
5655 -- 12.1 Generic Package Declaration --
5656 ---------------------------------------
5657
5658 -- GENERIC_PACKAGE_DECLARATION ::=
5659 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION;
5660
5661 -- Note: when we do generics right, the Activation_Chain_Entity entry
5662 -- for this node can be removed (since the expander won't see generic
5663 -- units any more)???.
5664
5665 -- Note: Generic_Formal_Declarations can include pragmas
5666
5667 -- N_Generic_Package_Declaration
5668 -- Sloc points to GENERIC
5669 -- Specification (Node1) package specification
5670 -- Corresponding_Body (Node5-Sem)
5671 -- Generic_Formal_Declarations (List2) from generic formal part
5672 -- Parent_Spec (Node4-Sem)
5673 -- Activation_Chain_Entity (Node3-Sem)
5674
5675 -------------------------------
5676 -- 12.1 Generic Formal Part --
5677 -------------------------------
5678
5679 -- GENERIC_FORMAL_PART ::=
5680 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
5681
5682 ------------------------------------------------
5683 -- 12.1 Generic Formal Parameter Declaration --
5684 ------------------------------------------------
5685
5686 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
5687 -- FORMAL_OBJECT_DECLARATION
5688 -- | FORMAL_TYPE_DECLARATION
5689 -- | FORMAL_SUBPROGRAM_DECLARATION
5690 -- | FORMAL_PACKAGE_DECLARATION
5691
5692 ---------------------------------
5693 -- 12.3 Generic Instantiation --
5694 ---------------------------------
5695
5696 -- GENERIC_INSTANTIATION ::=
5697 -- package DEFINING_PROGRAM_UNIT_NAME is
5698 -- new generic_package_NAME [GENERIC_ACTUAL_PART];
5699 -- | [[not] overriding]
5700 -- procedure DEFINING_PROGRAM_UNIT_NAME is
5701 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART];
5702 -- | [[not] overriding]
5703 -- function DEFINING_DESIGNATOR is
5704 -- new generic_function_NAME [GENERIC_ACTUAL_PART];
5705
5706 -- N_Package_Instantiation
5707 -- Sloc points to PACKAGE
5708 -- Defining_Unit_Name (Node1)
5709 -- Name (Node2)
5710 -- Generic_Associations (List3) (set to No_List if no
5711 -- generic actual part)
5712 -- Parent_Spec (Node4-Sem)
5713 -- Instance_Spec (Node5-Sem)
5714 -- ABE_Is_Certain (Flag18-Sem)
5715
5716 -- N_Procedure_Instantiation
5717 -- Sloc points to PROCEDURE
5718 -- Defining_Unit_Name (Node1)
5719 -- Name (Node2)
5720 -- Parent_Spec (Node4-Sem)
5721 -- Generic_Associations (List3) (set to No_List if no
5722 -- generic actual part)
5723 -- Instance_Spec (Node5-Sem)
5724 -- Must_Override (Flag14) set if overriding indicator present
5725 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5726 -- ABE_Is_Certain (Flag18-Sem)
5727
5728 -- N_Function_Instantiation
5729 -- Sloc points to FUNCTION
5730 -- Defining_Unit_Name (Node1)
5731 -- Name (Node2)
5732 -- Generic_Associations (List3) (set to No_List if no
5733 -- generic actual part)
5734 -- Parent_Spec (Node4-Sem)
5735 -- Instance_Spec (Node5-Sem)
5736 -- Must_Override (Flag14) set if overriding indicator present
5737 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5738 -- ABE_Is_Certain (Flag18-Sem)
5739
5740 -- Note: overriding indicator is an Ada 2005 feature
5741
5742 ------------------------------
5743 -- 12.3 Generic Actual Part --
5744 ------------------------------
5745
5746 -- GENERIC_ACTUAL_PART ::=
5747 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
5748
5749 -------------------------------
5750 -- 12.3 Generic Association --
5751 -------------------------------
5752
5753 -- GENERIC_ASSOCIATION ::=
5754 -- [generic_formal_parameter_SELECTOR_NAME =>]
5755
5756 -- Note: unlike the procedure call case, a generic association node
5757 -- is generated for every association, even if no formal is present.
5758 -- In this case the parser will leave the Selector_Name field set
5759 -- to Empty, to be filled in later by the semantic pass.
5760
5761 -- In Ada 2005, a formal may be associated with a box, if the
5762 -- association is part of the list of actuals for a formal package.
5763 -- If the association is given by OTHERS => <>, the association is
5764 -- an N_Others_Choice.
5765
5766 -- N_Generic_Association
5767 -- Sloc points to first token of generic association
5768 -- Selector_Name (Node2) (set to Empty if no formal
5769 -- parameter selector name)
5770 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
5771 -- Box_Present (Flag15) (for formal_package associations with a box)
5772
5773 ---------------------------------------------
5774 -- 12.3 Explicit Generic Actual Parameter --
5775 ---------------------------------------------
5776
5777 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
5778 -- EXPRESSION | variable_NAME | subprogram_NAME
5779 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
5780
5781 -------------------------------------
5782 -- 12.4 Formal Object Declaration --
5783 -------------------------------------
5784
5785 -- FORMAL_OBJECT_DECLARATION ::=
5786 -- DEFINING_IDENTIFIER_LIST :
5787 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION];
5788 -- | DEFINING_IDENTIFIER_LIST :
5789 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION];
5790
5791 -- Although the syntax allows multiple identifiers in the list, the
5792 -- semantics is as though successive declarations were given with
5793 -- identical type definition and expression components. To simplify
5794 -- semantic processing, the parser represents a multiple declaration
5795 -- case as a sequence of single declarations, using the More_Ids and
5796 -- Prev_Ids flags to preserve the original source form as described
5797 -- in the section on "Handling of Defining Identifier Lists".
5798
5799 -- N_Formal_Object_Declaration
5800 -- Sloc points to first identifier
5801 -- Defining_Identifier (Node1)
5802 -- In_Present (Flag15)
5803 -- Out_Present (Flag17)
5804 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5805 -- Subtype_Mark (Node4) (set to Empty if not present)
5806 -- Access_Definition (Node3) (set to Empty if not present)
5807 -- Default_Expression (Node5) (set to Empty if no default expression)
5808 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5809 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5810
5811 -----------------------------------
5812 -- 12.5 Formal Type Declaration --
5813 -----------------------------------
5814
5815 -- FORMAL_TYPE_DECLARATION ::=
5816 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5817 -- is FORMAL_TYPE_DEFINITION;
5818
5819 -- N_Formal_Type_Declaration
5820 -- Sloc points to TYPE
5821 -- Defining_Identifier (Node1)
5822 -- Formal_Type_Definition (Node3)
5823 -- Discriminant_Specifications (List4) (set to No_List if no
5824 -- discriminant part)
5825 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5826
5827 ----------------------------------
5828 -- 12.5 Formal type definition --
5829 ----------------------------------
5830
5831 -- FORMAL_TYPE_DEFINITION ::=
5832 -- FORMAL_PRIVATE_TYPE_DEFINITION
5833 -- | FORMAL_DERIVED_TYPE_DEFINITION
5834 -- | FORMAL_DISCRETE_TYPE_DEFINITION
5835 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
5836 -- | FORMAL_MODULAR_TYPE_DEFINITION
5837 -- | FORMAL_FLOATING_POINT_DEFINITION
5838 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
5839 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
5840 -- | FORMAL_ARRAY_TYPE_DEFINITION
5841 -- | FORMAL_ACCESS_TYPE_DEFINITION
5842 -- | FORMAL_INTERFACE_TYPE_DEFINITION
5843
5844 ---------------------------------------------
5845 -- 12.5.1 Formal Private Type Definition --
5846 ---------------------------------------------
5847
5848 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
5849 -- [[abstract] tagged] [limited] private
5850
5851 -- Note: TAGGED is not allowed in Ada 83 mode
5852
5853 -- N_Formal_Private_Type_Definition
5854 -- Sloc points to PRIVATE
5855 -- Abstract_Present (Flag4)
5856 -- Tagged_Present (Flag15)
5857 -- Limited_Present (Flag17)
5858
5859 --------------------------------------------
5860 -- 12.5.1 Formal Derived Type Definition --
5861 --------------------------------------------
5862
5863 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
5864 -- [abstract] [limited | synchronized]
5865 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
5866 -- Note: this construct is not allowed in Ada 83 mode
5867
5868 -- N_Formal_Derived_Type_Definition
5869 -- Sloc points to NEW
5870 -- Subtype_Mark (Node4)
5871 -- Private_Present (Flag15)
5872 -- Abstract_Present (Flag4)
5873 -- Limited_Present (Flag17)
5874 -- Synchronized_Present (Flag7)
5875 -- Interface_List (List2) (set to No_List if none)
5876
5877 ---------------------------------------------
5878 -- 12.5.2 Formal Discrete Type Definition --
5879 ---------------------------------------------
5880
5881 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
5882
5883 -- N_Formal_Discrete_Type_Definition
5884 -- Sloc points to (
5885
5886 ---------------------------------------------------
5887 -- 12.5.2 Formal Signed Integer Type Definition --
5888 ---------------------------------------------------
5889
5890 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
5891
5892 -- N_Formal_Signed_Integer_Type_Definition
5893 -- Sloc points to RANGE
5894
5895 --------------------------------------------
5896 -- 12.5.2 Formal Modular Type Definition --
5897 --------------------------------------------
5898
5899 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
5900
5901 -- N_Formal_Modular_Type_Definition
5902 -- Sloc points to MOD
5903
5904 ----------------------------------------------
5905 -- 12.5.2 Formal Floating Point Definition --
5906 ----------------------------------------------
5907
5908 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
5909
5910 -- N_Formal_Floating_Point_Definition
5911 -- Sloc points to DIGITS
5912
5913 ----------------------------------------------------
5914 -- 12.5.2 Formal Ordinary Fixed Point Definition --
5915 ----------------------------------------------------
5916
5917 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
5918
5919 -- N_Formal_Ordinary_Fixed_Point_Definition
5920 -- Sloc points to DELTA
5921
5922 ---------------------------------------------------
5923 -- 12.5.2 Formal Decimal Fixed Point Definition --
5924 ---------------------------------------------------
5925
5926 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
5927
5928 -- Note: formal decimal fixed point definition not allowed in Ada 83
5929
5930 -- N_Formal_Decimal_Fixed_Point_Definition
5931 -- Sloc points to DELTA
5932
5933 ------------------------------------------
5934 -- 12.5.3 Formal Array Type Definition --
5935 ------------------------------------------
5936
5937 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
5938
5939 -------------------------------------------
5940 -- 12.5.4 Formal Access Type Definition --
5941 -------------------------------------------
5942
5943 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
5944
5945 ----------------------------------------------
5946 -- 12.5.5 Formal Interface Type Definition --
5947 ----------------------------------------------
5948
5949 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
5950
5951 -----------------------------------------
5952 -- 12.6 Formal Subprogram Declaration --
5953 -----------------------------------------
5954
5955 -- FORMAL_SUBPROGRAM_DECLARATION ::=
5956 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
5957 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
5958
5959 --------------------------------------------------
5960 -- 12.6 Formal Concrete Subprogram Declaration --
5961 --------------------------------------------------
5962
5963 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
5964 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT];
5965
5966 -- N_Formal_Concrete_Subprogram_Declaration
5967 -- Sloc points to WITH
5968 -- Specification (Node1)
5969 -- Default_Name (Node2) (set to Empty if no subprogram default)
5970 -- Box_Present (Flag15)
5971
5972 -- Note: if no subprogram default is present, then Name is set
5973 -- to Empty, and Box_Present is False.
5974
5975 --------------------------------------------------
5976 -- 12.6 Formal Abstract Subprogram Declaration --
5977 --------------------------------------------------
5978
5979 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
5980 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT];
5981
5982 -- N_Formal_Abstract_Subprogram_Declaration
5983 -- Sloc points to WITH
5984 -- Specification (Node1)
5985 -- Default_Name (Node2) (set to Empty if no subprogram default)
5986 -- Box_Present (Flag15)
5987
5988 -- Note: if no subprogram default is present, then Name is set
5989 -- to Empty, and Box_Present is False.
5990
5991 ------------------------------
5992 -- 12.6 Subprogram Default --
5993 ------------------------------
5994
5995 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
5996
5997 -- There is no separate node in the tree for a subprogram default.
5998 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
5999 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6000 -- default name or box indication, as needed.
6001
6002 ------------------------
6003 -- 12.6 Default Name --
6004 ------------------------
6005
6006 -- DEFAULT_NAME ::= NAME
6007
6008 --------------------------------------
6009 -- 12.7 Formal Package Declaration --
6010 --------------------------------------
6011
6012 -- FORMAL_PACKAGE_DECLARATION ::=
6013 -- with package DEFINING_IDENTIFIER
6014 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART;
6015
6016 -- Note: formal package declarations not allowed in Ada 83 mode
6017
6018 -- N_Formal_Package_Declaration
6019 -- Sloc points to WITH
6020 -- Defining_Identifier (Node1)
6021 -- Name (Node2)
6022 -- Generic_Associations (List3) (set to No_List if (<>) case or
6023 -- empty generic actual part)
6024 -- Box_Present (Flag15)
6025 -- Instance_Spec (Node5-Sem)
6026 -- ABE_Is_Certain (Flag18-Sem)
6027
6028 --------------------------------------
6029 -- 12.7 Formal Package Actual Part --
6030 --------------------------------------
6031
6032 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6033 -- ([OTHERS] => <>)
6034 -- | [GENERIC_ACTUAL_PART]
6035 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6036
6037 -- FORMAL_PACKAGE_ASSOCIATION ::=
6038 -- GENERIC_ASSOCIATION
6039 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6040
6041 -- There is no explicit node in the tree for a formal package actual
6042 -- part. Instead the information appears in the parent node (i.e. the
6043 -- formal package declaration node itself).
6044
6045 -- There is no explicit node for a formal package association. All of
6046 -- them are represented either by a generic association, possibly with
6047 -- Box_Present, or by an N_Others_Choice.
6048
6049 ---------------------------------
6050 -- 13.1 Representation clause --
6051 ---------------------------------
6052
6053 -- REPRESENTATION_CLAUSE ::=
6054 -- ATTRIBUTE_DEFINITION_CLAUSE
6055 -- | ENUMERATION_REPRESENTATION_CLAUSE
6056 -- | RECORD_REPRESENTATION_CLAUSE
6057 -- | AT_CLAUSE
6058
6059 ----------------------
6060 -- 13.1 Local Name --
6061 ----------------------
6062
6063 -- LOCAL_NAME :=
6064 -- DIRECT_NAME
6065 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6066 -- | library_unit_NAME
6067
6068 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6069 -- as an attribute reference, which has essentially the same form.
6070
6071 ---------------------------------------
6072 -- 13.3 Attribute definition clause --
6073 ---------------------------------------
6074
6075 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6076 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6077 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6078
6079 -- In Ada 83, the expression must be a simple expression and the
6080 -- local name must be a direct name.
6081
6082 -- Note: the only attribute definition clause that is processed by
6083 -- gigi is an address clause. For all other cases, the information
6084 -- is extracted by the front end and either results in setting entity
6085 -- information, e.g. Esize for the Size clause, or in appropriate
6086 -- expansion actions (e.g. in the case of Storage_Size).
6087
6088 -- For an address clause, Gigi constructs the appropriate addressing
6089 -- code. It also ensures that no aliasing optimizations are made
6090 -- for the object for which the address clause appears.
6091
6092 -- Note: for an address clause used to achieve an overlay:
6093
6094 -- A : Integer;
6095 -- B : Integer;
6096 -- for B'Address use A'Address;
6097
6098 -- the above rule means that Gigi will ensure that no optimizations
6099 -- will be made for B that would violate the implementation advice
6100 -- of RM 13.3(19). However, this advice applies only to B and not
6101 -- to A, which seems unfortunate. The GNAT front end will mark the
6102 -- object A as volatile to also prevent unwanted optimization
6103 -- assumptions based on no aliasing being made for B.
6104
6105 -- N_Attribute_Definition_Clause
6106 -- Sloc points to FOR
6107 -- Name (Node2) the local name
6108 -- Chars (Name1) the identifier name from the attribute designator
6109 -- Expression (Node3) the expression or name
6110 -- Entity (Node4-Sem)
6111 -- Next_Rep_Item (Node5-Sem)
6112 -- From_At_Mod (Flag4-Sem)
6113 -- Check_Address_Alignment (Flag11-Sem)
6114
6115 ---------------------------------------------
6116 -- 13.4 Enumeration representation clause --
6117 ---------------------------------------------
6118
6119 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
6120 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6121
6122 -- In Ada 83, the name must be a direct name
6123
6124 -- N_Enumeration_Representation_Clause
6125 -- Sloc points to FOR
6126 -- Identifier (Node1) direct name
6127 -- Array_Aggregate (Node3)
6128 -- Next_Rep_Item (Node5-Sem)
6129
6130 ---------------------------------
6131 -- 13.4 Enumeration aggregate --
6132 ---------------------------------
6133
6134 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6135
6136 ------------------------------------------
6137 -- 13.5.1 Record representation clause --
6138 ------------------------------------------
6139
6140 -- RECORD_REPRESENTATION_CLAUSE ::=
6141 -- for first_subtype_LOCAL_NAME use
6142 -- record [MOD_CLAUSE]
6143 -- {COMPONENT_CLAUSE}
6144 -- end record;
6145
6146 -- Gigi restriction: Mod_Clause is always Empty (if present it is
6147 -- replaced by a corresponding Alignment attribute definition clause).
6148
6149 -- Note: Component_Clauses can include pragmas
6150
6151 -- N_Record_Representation_Clause
6152 -- Sloc points to FOR
6153 -- Identifier (Node1) direct name
6154 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
6155 -- Component_Clauses (List3)
6156 -- Next_Rep_Item (Node5-Sem)
6157
6158 ------------------------------
6159 -- 13.5.1 Component clause --
6160 ------------------------------
6161
6162 -- COMPONENT_CLAUSE ::=
6163 -- component_LOCAL_NAME at POSITION
6164 -- range FIRST_BIT .. LAST_BIT;
6165
6166 -- N_Component_Clause
6167 -- Sloc points to AT
6168 -- Component_Name (Node1) points to Name or Attribute_Reference
6169 -- Position (Node2)
6170 -- First_Bit (Node3)
6171 -- Last_Bit (Node4)
6172
6173 ----------------------
6174 -- 13.5.1 Position --
6175 ----------------------
6176
6177 -- POSITION ::= static_EXPRESSION
6178
6179 -----------------------
6180 -- 13.5.1 First_Bit --
6181 -----------------------
6182
6183 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
6184
6185 ----------------------
6186 -- 13.5.1 Last_Bit --
6187 ----------------------
6188
6189 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
6190
6191 --------------------------
6192 -- 13.8 Code statement --
6193 --------------------------
6194
6195 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6196
6197 -- Note: in GNAT, the qualified expression has the form
6198
6199 -- Asm_Insn'(Asm (...));
6200
6201 -- See package System.Machine_Code in file s-maccod.ads for details on
6202 -- the allowed parameters to Asm. There are two ways this node can
6203 -- arise, as a code statement, in which case the expression is the
6204 -- qualified expression, or as a result of the expansion of an intrinsic
6205 -- call to the Asm or Asm_Input procedure.
6206
6207 -- N_Code_Statement
6208 -- Sloc points to first token of the expression
6209 -- Expression (Node3)
6210
6211 -- Note: package Exp_Code contains an abstract functional interface
6212 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
6213
6214 ------------------------
6215 -- 13.12 Restriction --
6216 ------------------------
6217
6218 -- RESTRICTION ::=
6219 -- restriction_IDENTIFIER
6220 -- | restriction_parameter_IDENTIFIER => EXPRESSION
6221
6222 -- There is no explicit node for restrictions. Instead the restriction
6223 -- appears in normal pragma syntax as a pragma argument association,
6224 -- which has the same syntactic form.
6225
6226 --------------------------
6227 -- B.2 Shift Operators --
6228 --------------------------
6229
6230 -- Calls to the intrinsic shift functions are converted to one of
6231 -- the following shift nodes, which have the form of normal binary
6232 -- operator names. Note that for a given shift operation, one node
6233 -- covers all possible types, as for normal operators.
6234
6235 -- Note: it is perfectly permissible for the expander to generate
6236 -- shift operation nodes directly, in which case they will be analyzed
6237 -- and parsed in the usual manner.
6238
6239 -- Sprint syntax: shift-function-name!(expr, count)
6240
6241 -- Note: the Left_Opnd field holds the first argument (the value to
6242 -- be shifted). The Right_Opnd field holds the second argument (the
6243 -- shift count). The Chars field is the name of the intrinsic function.
6244
6245 -- N_Op_Rotate_Left
6246 -- Sloc points to the function name
6247 -- plus fields for binary operator
6248 -- plus fields for expression
6249 -- Shift_Count_OK (Flag4-Sem)
6250
6251 -- N_Op_Rotate_Right
6252 -- Sloc points to the function name
6253 -- plus fields for binary operator
6254 -- plus fields for expression
6255 -- Shift_Count_OK (Flag4-Sem)
6256
6257 -- N_Op_Shift_Left
6258 -- Sloc points to the function name
6259 -- plus fields for binary operator
6260 -- plus fields for expression
6261 -- Shift_Count_OK (Flag4-Sem)
6262
6263 -- N_Op_Shift_Right_Arithmetic
6264 -- Sloc points to the function name
6265 -- plus fields for binary operator
6266 -- plus fields for expression
6267 -- Shift_Count_OK (Flag4-Sem)
6268
6269 -- N_Op_Shift_Right
6270 -- Sloc points to the function name
6271 -- plus fields for binary operator
6272 -- plus fields for expression
6273 -- Shift_Count_OK (Flag4-Sem)
6274
6275 --------------------------
6276 -- Obsolescent Features --
6277 --------------------------
6278
6279 -- The syntax descriptions and tree nodes for obsolescent features are
6280 -- grouped together, corresponding to their location in appendix I in
6281 -- the RM. However, parsing and semantic analysis for these constructs
6282 -- is located in an appropriate chapter (see individual notes).
6283
6284 ---------------------------
6285 -- J.3 Delta Constraint --
6286 ---------------------------
6287
6288 -- Note: the parse routine for this construct is located in section
6289 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6290 -- where delta constraint logically belongs.
6291
6292 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6293
6294 -- N_Delta_Constraint
6295 -- Sloc points to DELTA
6296 -- Delta_Expression (Node3)
6297 -- Range_Constraint (Node4) (set to Empty if not present)
6298
6299 --------------------
6300 -- J.7 At Clause --
6301 --------------------
6302
6303 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6304
6305 -- Note: the parse routine for this construct is located in Par-Ch13,
6306 -- and the semantic analysis is in Sem_Ch13, where at clause logically
6307 -- belongs if it were not obsolescent.
6308
6309 -- Note: in Ada 83 the expression must be a simple expression
6310
6311 -- Gigi restriction: This node never appears, it is rewritten as an
6312 -- address attribute definition clause.
6313
6314 -- N_At_Clause
6315 -- Sloc points to FOR
6316 -- Identifier (Node1)
6317 -- Expression (Node3)
6318
6319 ---------------------
6320 -- J.8 Mod clause --
6321 ---------------------
6322
6323 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
6324
6325 -- Note: the parse routine for this construct is located in Par-Ch13,
6326 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
6327 -- belongs if it were not obsolescent.
6328
6329 -- Note: in Ada 83, the expression must be a simple expression
6330
6331 -- Gigi restriction: this node never appears. It is replaced
6332 -- by a corresponding Alignment attribute definition clause.
6333
6334 -- Note: pragmas can appear before and after the MOD_CLAUSE since
6335 -- its name has "clause" in it. This is rather strange, but is quite
6336 -- definitely specified. The pragmas before are collected in the
6337 -- Pragmas_Before field of the mod clause node itself, and pragmas
6338 -- after are simply swallowed up in the list of component clauses.
6339
6340 -- N_Mod_Clause
6341 -- Sloc points to AT
6342 -- Expression (Node3)
6343 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6344
6345 --------------------
6346 -- Semantic Nodes --
6347 --------------------
6348
6349 -- These semantic nodes are used to hold additional semantic information.
6350 -- They are inserted into the tree as a result of semantic processing.
6351 -- Although there are no legitimate source syntax constructions that
6352 -- correspond directly to these nodes, we need a source syntax for the
6353 -- reconstructed tree printed by Sprint, and the node descriptions here
6354 -- show this syntax.
6355
6356 ----------------------------
6357 -- Conditional Expression --
6358 ----------------------------
6359
6360 -- This node is used to represent an expression corresponding to the
6361 -- C construct (condition ? then-expression : else_expression), where
6362 -- Expressions is a three element list, whose first expression is the
6363 -- condition, and whose second and third expressions are the then and
6364 -- else expressions respectively.
6365
6366 -- Note: the Then_Actions and Else_Actions fields are always set to
6367 -- No_List in the tree passed to Gigi. These fields are used only
6368 -- for temporary processing purposes in the expander.
6369
6370 -- Sprint syntax: (if expr then expr else expr)
6371
6372 -- N_Conditional_Expression
6373 -- Sloc points to related node
6374 -- Expressions (List1)
6375 -- Then_Actions (List2-Sem)
6376 -- Else_Actions (List3-Sem)
6377 -- plus fields for expression
6378
6379 -- Note: in the case where a debug source file is generated, the Sloc
6380 -- for this node points to the IF keyword in the Sprint file output.
6381
6382 -------------------
6383 -- Expanded_Name --
6384 -------------------
6385
6386 -- The N_Expanded_Name node is used to represent a selected component
6387 -- name that has been resolved to an expanded name. The semantic phase
6388 -- replaces N_Selected_Component nodes that represent names by the use
6389 -- of this node, leaving the N_Selected_Component node used only when
6390 -- the prefix is a record or protected type.
6391
6392 -- The fields of the N_Expanded_Name node are layed out identically
6393 -- to those of the N_Selected_Component node, allowing conversion of
6394 -- an expanded name node to a selected component node to be done
6395 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6396
6397 -- There is no special sprint syntax for an expanded name
6398
6399 -- N_Expanded_Name
6400 -- Sloc points to the period
6401 -- Chars (Name1) copy of Chars field of selector name
6402 -- Prefix (Node3)
6403 -- Selector_Name (Node2)
6404 -- Entity (Node4-Sem)
6405 -- Associated_Node (Node4-Sem)
6406 -- Redundant_Use (Flag13-Sem)
6407 -- Has_Private_View (Flag11-Sem) set in generic units.
6408 -- plus fields for expression
6409
6410 --------------------
6411 -- Free Statement --
6412 --------------------
6413
6414 -- The N_Free_Statement node is generated as a result of a call to an
6415 -- instantiation of Unchecked_Deallocation. The instantiation of this
6416 -- generic is handled specially and generates this node directly.
6417
6418 -- Sprint syntax: free expression
6419
6420 -- N_Free_Statement
6421 -- Sloc is copied from the unchecked deallocation call
6422 -- Expression (Node3) argument to unchecked deallocation call
6423 -- Storage_Pool (Node1-Sem)
6424 -- Procedure_To_Call (Node2-Sem)
6425 -- Actual_Designated_Subtype (Node4-Sem)
6426
6427 -- Note: in the case where a debug source file is generated, the Sloc
6428 -- for this node points to the FREE keyword in the Sprint file output.
6429
6430 -------------------
6431 -- Freeze Entity --
6432 -------------------
6433
6434 -- This node marks the point in a declarative part at which an entity
6435 -- declared therein becomes frozen. The expander places initialization
6436 -- procedures for types at those points. Gigi uses the freezing point
6437 -- to elaborate entities that may depend on previous private types.
6438
6439 -- See the section in Einfo "Delayed Freezing and Elaboration" for
6440 -- a full description of the use of this node.
6441
6442 -- The Entity field points back to the entity for the type (whose
6443 -- Freeze_Node field points back to this freeze node).
6444
6445 -- The Actions field contains a list of declarations and statements
6446 -- generated by the expander which are associated with the freeze
6447 -- node, and are elaborated as though the freeze node were replaced
6448 -- by this sequence of actions.
6449
6450 -- Note: the Sloc field in the freeze node references a construct
6451 -- associated with the freezing point. This is used for posting
6452 -- messages in some error/warning situations, e.g. the case where
6453 -- a primitive operation of a tagged type is declared too late.
6454
6455 -- Sprint syntax: freeze entity-name [
6456 -- freeze actions
6457 -- ]
6458
6459 -- N_Freeze_Entity
6460 -- Sloc points near freeze point (see above special note)
6461 -- Entity (Node4-Sem)
6462 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6463 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6464 -- Actions (List1) (set to No_List if no freeze actions)
6465 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6466
6467 -- The Actions field holds actions associated with the freeze. These
6468 -- actions are elaborated at the point where the type is frozen.
6469
6470 -- Note: in the case where a debug source file is generated, the Sloc
6471 -- for this node points to the FREEZE keyword in the Sprint file output.
6472
6473 --------------------------------
6474 -- Implicit Label Declaration --
6475 --------------------------------
6476
6477 -- An implicit label declaration is created for every occurrence of a
6478 -- label on a statement or a label on a block or loop. It is chained
6479 -- in the declarations of the innermost enclosing block as specified
6480 -- in RM section 5.1 (3).
6481
6482 -- The Defining_Identifier is the actual identifier for the
6483 -- statement identifier. Note that the occurrence of the label
6484 -- is a reference, NOT the defining occurrence. The defining
6485 -- occurrence occurs at the head of the innermost enclosing
6486 -- block, and is represented by this node.
6487
6488 -- Note: from the grammar, this might better be called an implicit
6489 -- statement identifier declaration, but the term we choose seems
6490 -- friendlier, since at least informally statement identifiers are
6491 -- called labels in both cases (i.e. when used in labels, and when
6492 -- used as the identifiers of blocks and loops).
6493
6494 -- Note: although this is logically a semantic node, since it does
6495 -- not correspond directly to a source syntax construction, these
6496 -- nodes are actually created by the parser in a post pass done just
6497 -- after parsing is complete, before semantic analysis is started (see
6498 -- the Par.Labl subunit in file par-labl.adb).
6499
6500 -- Sprint syntax: labelname : label;
6501
6502 -- N_Implicit_Label_Declaration
6503 -- Sloc points to the << of the label
6504 -- Defining_Identifier (Node1)
6505 -- Label_Construct (Node2-Sem)
6506
6507 -- Note: in the case where a debug source file is generated, the Sloc
6508 -- for this node points to the label name in the generated declaration.
6509
6510 ---------------------
6511 -- Itype_Reference --
6512 ---------------------
6513
6514 -- This node is used to create a reference to an Itype. The only
6515 -- purpose is to make sure that the Itype is defined if this is the
6516 -- first reference.
6517
6518 -- A typical use of this node is when an Itype is to be referenced in
6519 -- two branches of an if statement. In this case it is important that
6520 -- the first use of the Itype not be inside the conditional, since
6521 -- then it might not be defined if the wrong branch of the if is
6522 -- taken in the case where the definition generates elaboration code.
6523
6524 -- The Itype field points to the referenced Itype
6525
6526 -- sprint syntax: reference itype-name
6527
6528 -- N_Itype_Reference
6529 -- Sloc points to the node generating the reference
6530 -- Itype (Node1-Sem)
6531
6532 -- Note: in the case where a debug source file is generated, the Sloc
6533 -- for this node points to the REFERENCE keyword in the file output.
6534
6535 ---------------------
6536 -- Raise_xxx_Error --
6537 ---------------------
6538
6539 -- One of these nodes is created during semantic analysis to replace
6540 -- a node for an expression that is determined to definitely raise
6541 -- the corresponding exception.
6542
6543 -- The N_Raise_xxx_Error node may also stand alone in place
6544 -- of a declaration or statement, in which case it simply causes
6545 -- the exception to be raised (i.e. it is equivalent to a raise
6546 -- statement that raises the corresponding exception). This use
6547 -- is distinguished by the fact that the Etype in this case is
6548 -- Standard_Void_Type, In the subexprssion case, the Etype is the
6549 -- same as the type of the subexpression which it replaces.
6550
6551 -- If Condition is empty, then the raise is unconditional. If the
6552 -- Condition field is non-empty, it is a boolean expression which
6553 -- is first evaluated, and the exception is raised only if the
6554 -- value of the expression is True. In the unconditional case, the
6555 -- creation of this node is usually accompanied by a warning message
6556 -- error. The creation of this node will usually be accompanied by a
6557 -- message (unless it appears within the right operand of a short
6558 -- circuit form whose left argument is static and decisively
6559 -- eliminates elaboration of the raise operation. The condition field
6560 -- can ONLY be present when the node is used as a statement form, it
6561 -- may NOT be present in the case where the node appears within an
6562 -- expression.
6563
6564 -- The exception is generated with a message that contains the
6565 -- file name and line number, and then appended text. The Reason
6566 -- code shows the text to be added. The Reason code is an element
6567 -- of the type Types.RT_Exception_Code, and indicates both the
6568 -- message to be added, and the exception to be raised (which must
6569 -- match the node type). The value is stored by storing a Uint which
6570 -- is the Pos value of the enumeration element in this type.
6571
6572 -- Gigi restriction: This expander ensures that the type of the
6573 -- Condition field is always Standard.Boolean, even if the type
6574 -- in the source is some non-standard boolean type.
6575
6576 -- Sprint syntax: [xxx_error "msg"]
6577 -- or: [xxx_error when condition "msg"]
6578
6579 -- N_Raise_Constraint_Error
6580 -- Sloc references related construct
6581 -- Condition (Node1) (set to Empty if no condition)
6582 -- Reason (Uint3)
6583 -- plus fields for expression
6584
6585 -- N_Raise_Program_Error
6586 -- Sloc references related construct
6587 -- Condition (Node1) (set to Empty if no condition)
6588 -- Reason (Uint3)
6589 -- plus fields for expression
6590
6591 -- N_Raise_Storage_Error
6592 -- Sloc references related construct
6593 -- Condition (Node1) (set to Empty if no condition)
6594 -- Reason (Uint3)
6595 -- plus fields for expression
6596
6597 -- Note: Sloc is copied from the expression generating the exception.
6598 -- In the case where a debug source file is generated, the Sloc for
6599 -- this node points to the left bracket in the Sprint file output.
6600
6601 -- Note: the back end may be required to translate these nodes into
6602 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
6603
6604 ---------------------------------------------
6605 -- Optimization of Exception Raise to Goto --
6606 ---------------------------------------------
6607
6608 -- In some cases, the front end will determine that any exception raised
6609 -- by the back end for a certain exception should be transformed into a
6610 -- goto statement.
6611
6612 -- There are three kinds of exceptions raised by the back end (note that
6613 -- for this purpose we consider gigi to be part of the back end in the
6614 -- gcc case):
6615
6616 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
6617 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
6618 -- 3. Other cases not specifically marked by the front end
6619
6620 -- Normally all such exceptions are translated into calls to the proper
6621 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
6622 -- and the exception message.
6623
6624 -- The front end may determine that for a particular sequence of code,
6625 -- exceptions in any of these three categories for a particular builtin
6626 -- exception should result in a goto, rather than a call to Rcheck_xx.
6627 -- The exact sequence to be generated is:
6628
6629 -- Local_Raise (exception'Identity);
6630 -- goto Label
6631
6632 -- The front end marks such a sequence of code by bracketing it with
6633 -- push and pop nodes:
6634
6635 -- N_Push_xxx_Label (referencing the label)
6636 -- ...
6637 -- (code where transformation is expected for exception xxx)
6638 -- ...
6639 -- N_Pop_xxx_Label
6640
6641 -- The use of push/pop reflects the fact that such regions can properly
6642 -- nest, and one special case is a subregion in which no transformation
6643 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
6644 -- Exception_Label field is Empty.
6645
6646 -- N_Push_Constraint_Error_Label
6647 -- Sloc references first statement in region covered
6648 -- Exception_Label (Node5-Sem)
6649
6650 -- N_Push_Program_Error_Label
6651 -- Sloc references first statement in region covered
6652 -- Exception_Label (Node5-Sem)
6653
6654 -- N_Push_Storage_Error_Label
6655 -- Sloc references first statement in region covered
6656 -- Exception_Label (Node5-Sem)
6657
6658 -- N_Pop_Constraint_Error_Label
6659 -- Sloc references last statement in region covered
6660
6661 -- N_Pop_Program_Error_Label
6662 -- Sloc references last statement in region covered
6663
6664 -- N_Pop_Storage_Error_Label
6665 -- Sloc references last statement in region covered
6666
6667 ---------------
6668 -- Reference --
6669 ---------------
6670
6671 -- For a number of purposes, we need to construct references to objects.
6672 -- These references are subsequently treated as normal access values.
6673 -- An example is the construction of the parameter block passed to a
6674 -- task entry. The N_Reference node is provided for this purpose. It is
6675 -- similar in effect to the use of the Unrestricted_Access attribute,
6676 -- and like Unrestricted_Access can be applied to objects which would
6677 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
6678 -- objects which are not aliased, and slices). In addition it can be
6679 -- applied to composite type values as well as objects, including string
6680 -- values and aggregates.
6681
6682 -- Note: we use the Prefix field for this expression so that the
6683 -- resulting node can be treated using common code with the attribute
6684 -- nodes for the 'Access and related attributes. Logically it would make
6685 -- more sense to call it an Expression field, but then we would have to
6686 -- special case the treatment of the N_Reference node.
6687
6688 -- Sprint syntax: prefix'reference
6689
6690 -- N_Reference
6691 -- Sloc is copied from the expression
6692 -- Prefix (Node3)
6693 -- plus fields for expression
6694
6695 -- Note: in the case where a debug source file is generated, the Sloc
6696 -- for this node points to the quote in the Sprint file output.
6697
6698 ---------------------
6699 -- Subprogram_Info --
6700 ---------------------
6701
6702 -- This node generates the appropriate Subprogram_Info value for a
6703 -- given procedure. See Ada.Exceptions for further details
6704
6705 -- Sprint syntax: subprog'subprogram_info
6706
6707 -- N_Subprogram_Info
6708 -- Sloc points to the entity for the procedure
6709 -- Identifier (Node1) identifier referencing the procedure
6710 -- Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
6711
6712 -- Note: in the case where a debug source file is generated, the Sloc
6713 -- for this node points to the quote in the Sprint file output.
6714
6715 --------------------------
6716 -- Unchecked Expression --
6717 --------------------------
6718
6719 -- An unchecked expression is one that must be analyzed and resolved
6720 -- with all checks off, regardless of the current setting of scope
6721 -- suppress flags.
6722
6723 -- Sprint syntax: `(expression)
6724
6725 -- Note: this node is always removed from the tree (and replaced by
6726 -- its constituent expression) on completion of analysis, so it only
6727 -- appears in intermediate trees, and will never be seen by Gigi.
6728
6729 -- N_Unchecked_Expression
6730 -- Sloc is a copy of the Sloc of the expression
6731 -- Expression (Node3)
6732 -- plus fields for expression
6733
6734 -- Note: in the case where a debug source file is generated, the Sloc
6735 -- for this node points to the back quote in the Sprint file output.
6736
6737 -------------------------------
6738 -- Unchecked Type Conversion --
6739 -------------------------------
6740
6741 -- An unchecked type conversion node represents the semantic action
6742 -- corresponding to a call to an instantiation of Unchecked_Conversion.
6743 -- It is generated as a result of actual use of Unchecked_Conversion
6744 -- and also the expander generates unchecked type conversion nodes
6745 -- directly for expansion of complex semantic actions.
6746
6747 -- Note: an unchecked type conversion is a variable as far as the
6748 -- semantics are concerned, which is convenient for the expander.
6749 -- This does not change what Ada source programs are legal, since
6750 -- clearly a function call to an instantiation of Unchecked_Conversion
6751 -- is not a variable in any case.
6752
6753 -- Sprint syntax: subtype-mark!(expression)
6754
6755 -- N_Unchecked_Type_Conversion
6756 -- Sloc points to related node in source
6757 -- Subtype_Mark (Node4)
6758 -- Expression (Node3)
6759 -- Kill_Range_Check (Flag11-Sem)
6760 -- No_Truncation (Flag17-Sem)
6761 -- plus fields for expression
6762
6763 -- Note: in the case where a debug source file is generated, the Sloc
6764 -- for this node points to the exclamation in the Sprint file output.
6765
6766 -----------------------------------
6767 -- Validate_Unchecked_Conversion --
6768 -----------------------------------
6769
6770 -- The front end does most of the validation of unchecked conversion,
6771 -- including checking sizes (this is done after the back end is called
6772 -- to take advantage of back-annotation of calculated sizes).
6773
6774 -- The front end also deals with specific cases that are not allowed
6775 -- e.g. involving unconstrained array types.
6776
6777 -- For the case of the standard gigi backend, this means that all
6778 -- checks are done in the front-end.
6779
6780 -- However, in the case of specialized back-ends, notably the JVM
6781 -- backend for JGNAT, additional requirements and restrictions apply
6782 -- to unchecked conversion, and these are most conveniently performed
6783 -- in the specialized back-end.
6784
6785 -- To accommodate this requirement, for such back ends, the following
6786 -- special node is generated recording an unchecked conversion that
6787 -- needs to be validated. The back end should post an appropriate
6788 -- error message if the unchecked conversion is invalid or warrants
6789 -- a special warning message.
6790
6791 -- Source_Type and Target_Type point to the entities for the two
6792 -- types involved in the unchecked conversion instantiation that
6793 -- is to be validated.
6794
6795 -- Sprint syntax: validate Unchecked_Conversion (source, target);
6796
6797 -- N_Validate_Unchecked_Conversion
6798 -- Sloc points to instantiation (location for warning message)
6799 -- Source_Type (Node1-Sem)
6800 -- Target_Type (Node2-Sem)
6801
6802 -- Note: in the case where a debug source file is generated, the Sloc
6803 -- for this node points to the VALIDATE keyword in the file output.
6804
6805 -----------
6806 -- Empty --
6807 -----------
6808
6809 -- Used as the contents of the Nkind field of the dummy Empty node
6810 -- and in some other situations to indicate an uninitialized value.
6811
6812 -- N_Empty
6813 -- Chars (Name1) is set to No_Name
6814
6815 -----------
6816 -- Error --
6817 -----------
6818
6819 -- Used as the contents of the Nkind field of the dummy Error node.
6820 -- Has an Etype field, which gets set to Any_Type later on, to help
6821 -- error recovery (Error_Posted is also set in the Error node).
6822
6823 -- N_Error
6824 -- Chars (Name1) is set to Error_Name
6825 -- Etype (Node5-Sem)
6826
6827 --------------------------
6828 -- Node Type Definition --
6829 --------------------------
6830
6831 -- The following is the definition of the Node_Kind type. As previously
6832 -- discussed, this is separated off to allow rearrangement of the order
6833 -- to facilitiate definition of subtype ranges. The comments show the
6834 -- subtype classes which apply to each set of node kinds. The first
6835 -- entry in the comment characterizes the following list of nodes.
6836
6837 type Node_Kind is (
6838 N_Unused_At_Start,
6839
6840 -- N_Representation_Clause
6841
6842 N_At_Clause,
6843 N_Component_Clause,
6844 N_Enumeration_Representation_Clause,
6845 N_Mod_Clause,
6846 N_Record_Representation_Clause,
6847
6848 -- N_Representation_Clause, N_Has_Chars
6849
6850 N_Attribute_Definition_Clause,
6851
6852 -- N_Has_Chars
6853
6854 N_Empty,
6855 N_Pragma,
6856 N_Pragma_Argument_Association,
6857
6858 -- N_Has_Etype
6859
6860 N_Error,
6861
6862 -- N_Entity, N_Has_Etype, N_Has_Chars
6863
6864 N_Defining_Character_Literal,
6865 N_Defining_Identifier,
6866 N_Defining_Operator_Symbol,
6867
6868 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
6869
6870 N_Expanded_Name,
6871
6872 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6873 -- N_Has_Chars, N_Has_Entity
6874
6875 N_Identifier,
6876 N_Operator_Symbol,
6877
6878 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6879 -- N_Has_Chars, N_Has_Entity
6880
6881 N_Character_Literal,
6882
6883 -- N_Binary_Op, N_Op, N_Subexpr,
6884 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
6885
6886 N_Op_Add,
6887 N_Op_Concat,
6888 N_Op_Expon,
6889 N_Op_Subtract,
6890
6891 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
6892 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
6893
6894 N_Op_Divide,
6895 N_Op_Mod,
6896 N_Op_Multiply,
6897 N_Op_Rem,
6898
6899 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6900 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6901
6902 N_Op_And,
6903
6904 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6905 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
6906
6907 N_Op_Eq,
6908 N_Op_Ge,
6909 N_Op_Gt,
6910 N_Op_Le,
6911 N_Op_Lt,
6912 N_Op_Ne,
6913
6914 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6915 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6916
6917 N_Op_Or,
6918 N_Op_Xor,
6919
6920 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
6921 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
6922
6923 N_Op_Rotate_Left,
6924 N_Op_Rotate_Right,
6925 N_Op_Shift_Left,
6926 N_Op_Shift_Right,
6927 N_Op_Shift_Right_Arithmetic,
6928
6929 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
6930 -- N_Has_Chars, N_Has_Entity
6931
6932 N_Op_Abs,
6933 N_Op_Minus,
6934 N_Op_Not,
6935 N_Op_Plus,
6936
6937 -- N_Subexpr, N_Has_Etype, N_Has_Entity
6938
6939 N_Attribute_Reference,
6940
6941 -- N_Subexpr, N_Has_Etype, N_Membership_Test
6942
6943 N_In,
6944 N_Not_In,
6945
6946 -- N_Subexpr, N_Has_Etype
6947
6948 N_And_Then,
6949 N_Conditional_Expression,
6950 N_Explicit_Dereference,
6951 N_Function_Call,
6952
6953 N_Indexed_Component,
6954 N_Integer_Literal,
6955
6956 N_Null,
6957 N_Or_Else,
6958 N_Procedure_Call_Statement,
6959 N_Qualified_Expression,
6960
6961 -- N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
6962
6963 N_Raise_Constraint_Error,
6964 N_Raise_Program_Error,
6965 N_Raise_Storage_Error,
6966
6967 -- N_Subexpr, N_Has_Etype
6968
6969 N_Aggregate,
6970 N_Allocator,
6971 N_Extension_Aggregate,
6972 N_Range,
6973 N_Real_Literal,
6974 N_Reference,
6975 N_Selected_Component,
6976 N_Slice,
6977 N_String_Literal,
6978 N_Subprogram_Info,
6979 N_Type_Conversion,
6980 N_Unchecked_Expression,
6981 N_Unchecked_Type_Conversion,
6982
6983 -- N_Has_Etype
6984
6985 N_Subtype_Indication,
6986
6987 -- N_Declaration
6988
6989 N_Component_Declaration,
6990 N_Entry_Declaration,
6991 N_Formal_Object_Declaration,
6992 N_Formal_Type_Declaration,
6993 N_Full_Type_Declaration,
6994 N_Incomplete_Type_Declaration,
6995 N_Loop_Parameter_Specification,
6996 N_Object_Declaration,
6997 N_Protected_Type_Declaration,
6998 N_Private_Extension_Declaration,
6999 N_Private_Type_Declaration,
7000 N_Subtype_Declaration,
7001
7002 -- N_Subprogram_Specification, N_Declaration
7003
7004 N_Function_Specification,
7005 N_Procedure_Specification,
7006
7007 -- N_Access_To_Subprogram_Definition
7008
7009 N_Access_Function_Definition,
7010 N_Access_Procedure_Definition,
7011
7012 -- N_Later_Decl_Item
7013
7014 N_Task_Type_Declaration,
7015
7016 -- N_Body_Stub, N_Later_Decl_Item
7017
7018 N_Package_Body_Stub,
7019 N_Protected_Body_Stub,
7020 N_Subprogram_Body_Stub,
7021 N_Task_Body_Stub,
7022
7023 -- N_Generic_Instantiation, N_Later_Decl_Item
7024 -- N_Subprogram_Instantiation
7025
7026 N_Function_Instantiation,
7027 N_Procedure_Instantiation,
7028
7029 -- N_Generic_Instantiation, N_Later_Decl_Item
7030
7031 N_Package_Instantiation,
7032
7033 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7034
7035 N_Package_Body,
7036 N_Subprogram_Body,
7037
7038 -- N_Later_Decl_Item, N_Proper_Body
7039
7040 N_Protected_Body,
7041 N_Task_Body,
7042
7043 -- N_Later_Decl_Item
7044
7045 N_Implicit_Label_Declaration,
7046 N_Package_Declaration,
7047 N_Single_Task_Declaration,
7048 N_Subprogram_Declaration,
7049 N_Use_Package_Clause,
7050
7051 -- N_Generic_Declaration, N_Later_Decl_Item
7052
7053 N_Generic_Package_Declaration,
7054 N_Generic_Subprogram_Declaration,
7055
7056 -- N_Array_Type_Definition
7057
7058 N_Constrained_Array_Definition,
7059 N_Unconstrained_Array_Definition,
7060
7061 -- N_Renaming_Declaration
7062
7063 N_Exception_Renaming_Declaration,
7064 N_Object_Renaming_Declaration,
7065 N_Package_Renaming_Declaration,
7066 N_Subprogram_Renaming_Declaration,
7067
7068 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
7069
7070 N_Generic_Function_Renaming_Declaration,
7071 N_Generic_Package_Renaming_Declaration,
7072 N_Generic_Procedure_Renaming_Declaration,
7073
7074 -- N_Statement_Other_Than_Procedure_Call
7075
7076 N_Abort_Statement,
7077 N_Accept_Statement,
7078 N_Assignment_Statement,
7079 N_Asynchronous_Select,
7080 N_Block_Statement,
7081 N_Case_Statement,
7082 N_Code_Statement,
7083 N_Conditional_Entry_Call,
7084
7085 -- N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
7086
7087 N_Delay_Relative_Statement,
7088 N_Delay_Until_Statement,
7089
7090 -- N_Statement_Other_Than_Procedure_Call
7091
7092 N_Entry_Call_Statement,
7093 N_Free_Statement,
7094 N_Goto_Statement,
7095 N_Loop_Statement,
7096 N_Null_Statement,
7097 N_Raise_Statement,
7098 N_Requeue_Statement,
7099 N_Return_Statement, -- renamed as N_Simple_Return_Statement in Sem_Util
7100 N_Extended_Return_Statement,
7101 N_Selective_Accept,
7102 N_Timed_Entry_Call,
7103
7104 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7105
7106 N_Exit_Statement,
7107 N_If_Statement,
7108
7109 -- N_Has_Condition
7110
7111 N_Accept_Alternative,
7112 N_Delay_Alternative,
7113 N_Elsif_Part,
7114 N_Entry_Body_Formal_Part,
7115 N_Iteration_Scheme,
7116 N_Terminate_Alternative,
7117
7118 -- N_Formal_Subprogram_Declaration
7119
7120 N_Formal_Abstract_Subprogram_Declaration,
7121 N_Formal_Concrete_Subprogram_Declaration,
7122
7123 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
7124
7125 N_Push_Constraint_Error_Label,
7126 N_Push_Program_Error_Label,
7127 N_Push_Storage_Error_Label,
7128
7129 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7130
7131 N_Pop_Constraint_Error_Label,
7132 N_Pop_Program_Error_Label,
7133 N_Pop_Storage_Error_Label,
7134
7135 -- Other nodes (not part of any subtype class)
7136
7137 N_Abortable_Part,
7138 N_Abstract_Subprogram_Declaration,
7139 N_Access_Definition,
7140 N_Access_To_Object_Definition,
7141 N_Case_Statement_Alternative,
7142 N_Compilation_Unit,
7143 N_Compilation_Unit_Aux,
7144 N_Component_Association,
7145 N_Component_Definition,
7146 N_Component_List,
7147 N_Derived_Type_Definition,
7148 N_Decimal_Fixed_Point_Definition,
7149 N_Defining_Program_Unit_Name,
7150 N_Delta_Constraint,
7151 N_Designator,
7152 N_Digits_Constraint,
7153 N_Discriminant_Association,
7154 N_Discriminant_Specification,
7155 N_Enumeration_Type_Definition,
7156 N_Entry_Body,
7157 N_Entry_Call_Alternative,
7158 N_Entry_Index_Specification,
7159 N_Exception_Declaration,
7160 N_Exception_Handler,
7161 N_Floating_Point_Definition,
7162 N_Formal_Decimal_Fixed_Point_Definition,
7163 N_Formal_Derived_Type_Definition,
7164 N_Formal_Discrete_Type_Definition,
7165 N_Formal_Floating_Point_Definition,
7166 N_Formal_Modular_Type_Definition,
7167 N_Formal_Ordinary_Fixed_Point_Definition,
7168 N_Formal_Package_Declaration,
7169 N_Formal_Private_Type_Definition,
7170 N_Formal_Signed_Integer_Type_Definition,
7171 N_Freeze_Entity,
7172 N_Generic_Association,
7173 N_Handled_Sequence_Of_Statements,
7174 N_Index_Or_Discriminant_Constraint,
7175 N_Itype_Reference,
7176 N_Label,
7177 N_Modular_Type_Definition,
7178 N_Number_Declaration,
7179 N_Ordinary_Fixed_Point_Definition,
7180 N_Others_Choice,
7181 N_Package_Specification,
7182 N_Parameter_Association,
7183 N_Parameter_Specification,
7184 N_Protected_Definition,
7185 N_Range_Constraint,
7186 N_Real_Range_Specification,
7187 N_Record_Definition,
7188 N_Signed_Integer_Type_Definition,
7189 N_Single_Protected_Declaration,
7190 N_Subunit,
7191 N_Task_Definition,
7192 N_Triggering_Alternative,
7193 N_Use_Type_Clause,
7194 N_Validate_Unchecked_Conversion,
7195 N_Variant,
7196 N_Variant_Part,
7197 N_With_Clause,
7198 N_Unused_At_End);
7199
7200 for Node_Kind'Size use 8;
7201 -- The data structures in Atree assume this!
7202
7203 ----------------------------
7204 -- Node Class Definitions --
7205 ----------------------------
7206
7207 subtype N_Access_To_Subprogram_Definition is Node_Kind range
7208 N_Access_Function_Definition ..
7209 N_Access_Procedure_Definition;
7210
7211 subtype N_Array_Type_Definition is Node_Kind range
7212 N_Constrained_Array_Definition ..
7213 N_Unconstrained_Array_Definition;
7214
7215 subtype N_Binary_Op is Node_Kind range
7216 N_Op_Add ..
7217 N_Op_Shift_Right_Arithmetic;
7218
7219 subtype N_Body_Stub is Node_Kind range
7220 N_Package_Body_Stub ..
7221 N_Task_Body_Stub;
7222
7223 subtype N_Declaration is Node_Kind range
7224 N_Component_Declaration ..
7225 N_Procedure_Specification;
7226 -- Note: this includes all constructs normally thought of as declarations
7227 -- except those which are separately grouped as later declarations.
7228
7229 subtype N_Delay_Statement is Node_Kind range
7230 N_Delay_Relative_Statement ..
7231 N_Delay_Until_Statement;
7232
7233 subtype N_Direct_Name is Node_Kind range
7234 N_Identifier ..
7235 N_Character_Literal;
7236
7237 subtype N_Entity is Node_Kind range
7238 N_Defining_Character_Literal ..
7239 N_Defining_Operator_Symbol;
7240
7241 subtype N_Formal_Subprogram_Declaration is Node_Kind range
7242 N_Formal_Abstract_Subprogram_Declaration ..
7243 N_Formal_Concrete_Subprogram_Declaration;
7244
7245 subtype N_Generic_Declaration is Node_Kind range
7246 N_Generic_Package_Declaration ..
7247 N_Generic_Subprogram_Declaration;
7248
7249 subtype N_Generic_Instantiation is Node_Kind range
7250 N_Function_Instantiation ..
7251 N_Package_Instantiation;
7252
7253 subtype N_Generic_Renaming_Declaration is Node_Kind range
7254 N_Generic_Function_Renaming_Declaration ..
7255 N_Generic_Procedure_Renaming_Declaration;
7256
7257 subtype N_Has_Chars is Node_Kind range
7258 N_Attribute_Definition_Clause ..
7259 N_Op_Plus;
7260
7261 subtype N_Has_Entity is Node_Kind range
7262 N_Expanded_Name ..
7263 N_Attribute_Reference;
7264 -- Nodes that have Entity fields
7265 -- Warning: DOES NOT INCLUDE N_Freeze_Entity!
7266
7267 subtype N_Has_Etype is Node_Kind range
7268 N_Error ..
7269 N_Subtype_Indication;
7270
7271 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7272 N_Op_Divide ..
7273 N_Op_Rem;
7274
7275 subtype N_Multiplying_Operator is Node_Kind range
7276 N_Op_Divide ..
7277 N_Op_Rem;
7278
7279 subtype N_Later_Decl_Item is Node_Kind range
7280 N_Task_Type_Declaration ..
7281 N_Generic_Subprogram_Declaration;
7282 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and
7283 -- includes only those items which can appear as later declarative
7284 -- items. This also includes N_Implicit_Label_Declaration which is
7285 -- not specifically in the grammar but may appear as a valid later
7286 -- declarative items. It does NOT include N_Pragma which can also
7287 -- appear among later declarative items. It does however include
7288 -- N_Protected_Body, which is a bit peculiar, but harmless since
7289 -- this cannot appear in Ada 83 mode anyway.
7290
7291 subtype N_Membership_Test is Node_Kind range
7292 N_In ..
7293 N_Not_In;
7294
7295 subtype N_Op is Node_Kind range
7296 N_Op_Add ..
7297 N_Op_Plus;
7298
7299 subtype N_Op_Boolean is Node_Kind range
7300 N_Op_And ..
7301 N_Op_Xor;
7302 -- Binary operators which take operands of a boolean type, and yield
7303 -- a result of a boolean type.
7304
7305 subtype N_Op_Compare is Node_Kind range
7306 N_Op_Eq ..
7307 N_Op_Ne;
7308
7309 subtype N_Op_Shift is Node_Kind range
7310 N_Op_Rotate_Left ..
7311 N_Op_Shift_Right_Arithmetic;
7312
7313 subtype N_Proper_Body is Node_Kind range
7314 N_Package_Body ..
7315 N_Task_Body;
7316
7317 subtype N_Push_xxx_Label is Node_Kind range
7318 N_Push_Constraint_Error_Label ..
7319 N_Push_Storage_Error_Label;
7320
7321 subtype N_Pop_xxx_Label is Node_Kind range
7322 N_Pop_Constraint_Error_Label ..
7323 N_Pop_Storage_Error_Label;
7324
7325 subtype N_Push_Pop_xxx_Label is Node_Kind range
7326 N_Push_Constraint_Error_Label ..
7327 N_Pop_Storage_Error_Label;
7328
7329 subtype N_Raise_xxx_Error is Node_Kind range
7330 N_Raise_Constraint_Error ..
7331 N_Raise_Storage_Error;
7332
7333 subtype N_Renaming_Declaration is Node_Kind range
7334 N_Exception_Renaming_Declaration ..
7335 N_Generic_Procedure_Renaming_Declaration;
7336
7337 subtype N_Representation_Clause is Node_Kind range
7338 N_At_Clause ..
7339 N_Attribute_Definition_Clause;
7340
7341 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7342 N_Abort_Statement ..
7343 N_If_Statement;
7344 -- Note that this includes all statement types except for the cases of the
7345 -- N_Procedure_Call_Statement which is considered to be a subexpression
7346 -- (since overloading is possible, so it needs to go through the normal
7347 -- overloading resolution for expressions).
7348
7349 subtype N_Subprogram_Instantiation is Node_Kind range
7350 N_Function_Instantiation ..
7351 N_Procedure_Instantiation;
7352
7353 subtype N_Has_Condition is Node_Kind range
7354 N_Exit_Statement ..
7355 N_Terminate_Alternative;
7356 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
7357
7358 subtype N_Subexpr is Node_Kind range
7359 N_Expanded_Name ..
7360 N_Unchecked_Type_Conversion;
7361 -- Nodes with expression fields
7362
7363 subtype N_Subprogram_Specification is Node_Kind range
7364 N_Function_Specification ..
7365 N_Procedure_Specification;
7366
7367 subtype N_Unary_Op is Node_Kind range
7368 N_Op_Abs ..
7369 N_Op_Plus;
7370
7371 subtype N_Unit_Body is Node_Kind range
7372 N_Package_Body ..
7373 N_Subprogram_Body;
7374
7375 ---------------------------
7376 -- Node Access Functions --
7377 ---------------------------
7378
7379 -- The following functions return the contents of the indicated field of
7380 -- the node referenced by the argument, which is a Node_Id. They provide
7381 -- logical access to fields in the node which could be accessed using the
7382 -- Atree.Unchecked_Access package, but the idea is always to use these
7383 -- higher level routines which preserve strong typing. In debug mode,
7384 -- these routines check that they are being applied to an appropriate
7385 -- node, as well as checking that the node is in range.
7386
7387 function ABE_Is_Certain
7388 (N : Node_Id) return Boolean; -- Flag18
7389
7390 function Abort_Present
7391 (N : Node_Id) return Boolean; -- Flag15
7392
7393 function Abortable_Part
7394 (N : Node_Id) return Node_Id; -- Node2
7395
7396 function Abstract_Present
7397 (N : Node_Id) return Boolean; -- Flag4
7398
7399 function Accept_Handler_Records
7400 (N : Node_Id) return List_Id; -- List5
7401
7402 function Accept_Statement
7403 (N : Node_Id) return Node_Id; -- Node2
7404
7405 function Access_Definition
7406 (N : Node_Id) return Node_Id; -- Node3
7407
7408 function Access_To_Subprogram_Definition
7409 (N : Node_Id) return Node_Id; -- Node3
7410
7411 function Access_Types_To_Process
7412 (N : Node_Id) return Elist_Id; -- Elist2
7413
7414 function Actions
7415 (N : Node_Id) return List_Id; -- List1
7416
7417 function Activation_Chain_Entity
7418 (N : Node_Id) return Node_Id; -- Node3
7419
7420 function Acts_As_Spec
7421 (N : Node_Id) return Boolean; -- Flag4
7422
7423 function Actual_Designated_Subtype
7424 (N : Node_Id) return Node_Id; -- Node4
7425
7426 function Aggregate_Bounds
7427 (N : Node_Id) return Node_Id; -- Node3
7428
7429 function Aliased_Present
7430 (N : Node_Id) return Boolean; -- Flag4
7431
7432 function All_Others
7433 (N : Node_Id) return Boolean; -- Flag11
7434
7435 function All_Present
7436 (N : Node_Id) return Boolean; -- Flag15
7437
7438 function Alternatives
7439 (N : Node_Id) return List_Id; -- List4
7440
7441 function Ancestor_Part
7442 (N : Node_Id) return Node_Id; -- Node3
7443
7444 function Array_Aggregate
7445 (N : Node_Id) return Node_Id; -- Node3
7446
7447 function Assignment_OK
7448 (N : Node_Id) return Boolean; -- Flag15
7449
7450 function Associated_Node
7451 (N : Node_Id) return Node_Id; -- Node4
7452
7453 function At_End_Proc
7454 (N : Node_Id) return Node_Id; -- Node1
7455
7456 function Attribute_Name
7457 (N : Node_Id) return Name_Id; -- Name2
7458
7459 function Aux_Decls_Node
7460 (N : Node_Id) return Node_Id; -- Node5
7461
7462 function Backwards_OK
7463 (N : Node_Id) return Boolean; -- Flag6
7464
7465 function Bad_Is_Detected
7466 (N : Node_Id) return Boolean; -- Flag15
7467
7468 function By_Ref
7469 (N : Node_Id) return Boolean; -- Flag5
7470
7471 function Body_Required
7472 (N : Node_Id) return Boolean; -- Flag13
7473
7474 function Body_To_Inline
7475 (N : Node_Id) return Node_Id; -- Node3
7476
7477 function Box_Present
7478 (N : Node_Id) return Boolean; -- Flag15
7479
7480 function Char_Literal_Value
7481 (N : Node_Id) return Uint; -- Uint2
7482
7483 function Chars
7484 (N : Node_Id) return Name_Id; -- Name1
7485
7486 function Check_Address_Alignment
7487 (N : Node_Id) return Boolean; -- Flag11
7488
7489 function Choice_Parameter
7490 (N : Node_Id) return Node_Id; -- Node2
7491
7492 function Choices
7493 (N : Node_Id) return List_Id; -- List1
7494
7495 function Coextensions
7496 (N : Node_Id) return Elist_Id; -- Elist4
7497
7498 function Comes_From_Extended_Return_Statement
7499 (N : Node_Id) return Boolean; -- Flag18
7500
7501 function Compile_Time_Known_Aggregate
7502 (N : Node_Id) return Boolean; -- Flag18
7503
7504 function Component_Associations
7505 (N : Node_Id) return List_Id; -- List2
7506
7507 function Component_Clauses
7508 (N : Node_Id) return List_Id; -- List3
7509
7510 function Component_Definition
7511 (N : Node_Id) return Node_Id; -- Node4
7512
7513 function Component_Items
7514 (N : Node_Id) return List_Id; -- List3
7515
7516 function Component_List
7517 (N : Node_Id) return Node_Id; -- Node1
7518
7519 function Component_Name
7520 (N : Node_Id) return Node_Id; -- Node1
7521
7522 function Condition
7523 (N : Node_Id) return Node_Id; -- Node1
7524
7525 function Condition_Actions
7526 (N : Node_Id) return List_Id; -- List3
7527
7528 function Config_Pragmas
7529 (N : Node_Id) return List_Id; -- List4
7530
7531 function Constant_Present
7532 (N : Node_Id) return Boolean; -- Flag17
7533
7534 function Constraint
7535 (N : Node_Id) return Node_Id; -- Node3
7536
7537 function Constraints
7538 (N : Node_Id) return List_Id; -- List1
7539
7540 function Context_Installed
7541 (N : Node_Id) return Boolean; -- Flag13
7542
7543 function Context_Items
7544 (N : Node_Id) return List_Id; -- List1
7545
7546 function Controlling_Argument
7547 (N : Node_Id) return Node_Id; -- Node1
7548
7549 function Conversion_OK
7550 (N : Node_Id) return Boolean; -- Flag14
7551
7552 function Corresponding_Body
7553 (N : Node_Id) return Node_Id; -- Node5
7554
7555 function Corresponding_Formal_Spec
7556 (N : Node_Id) return Node_Id; -- Node3
7557
7558 function Corresponding_Generic_Association
7559 (N : Node_Id) return Node_Id; -- Node5
7560
7561 function Corresponding_Integer_Value
7562 (N : Node_Id) return Uint; -- Uint4
7563
7564 function Corresponding_Spec
7565 (N : Node_Id) return Node_Id; -- Node5
7566
7567 function Corresponding_Stub
7568 (N : Node_Id) return Node_Id; -- Node3
7569
7570 function Dcheck_Function
7571 (N : Node_Id) return Entity_Id; -- Node5
7572
7573 function Debug_Statement
7574 (N : Node_Id) return Node_Id; -- Node3
7575
7576 function Declarations
7577 (N : Node_Id) return List_Id; -- List2
7578
7579 function Default_Expression
7580 (N : Node_Id) return Node_Id; -- Node5
7581
7582 function Default_Name
7583 (N : Node_Id) return Node_Id; -- Node2
7584
7585 function Defining_Identifier
7586 (N : Node_Id) return Entity_Id; -- Node1
7587
7588 function Defining_Unit_Name
7589 (N : Node_Id) return Node_Id; -- Node1
7590
7591 function Delay_Alternative
7592 (N : Node_Id) return Node_Id; -- Node4
7593
7594 function Delay_Statement
7595 (N : Node_Id) return Node_Id; -- Node2
7596
7597 function Delta_Expression
7598 (N : Node_Id) return Node_Id; -- Node3
7599
7600 function Digits_Expression
7601 (N : Node_Id) return Node_Id; -- Node2
7602
7603 function Discr_Check_Funcs_Built
7604 (N : Node_Id) return Boolean; -- Flag11
7605
7606 function Discrete_Choices
7607 (N : Node_Id) return List_Id; -- List4
7608
7609 function Discrete_Range
7610 (N : Node_Id) return Node_Id; -- Node4
7611
7612 function Discrete_Subtype_Definition
7613 (N : Node_Id) return Node_Id; -- Node4
7614
7615 function Discrete_Subtype_Definitions
7616 (N : Node_Id) return List_Id; -- List2
7617
7618 function Discriminant_Specifications
7619 (N : Node_Id) return List_Id; -- List4
7620
7621 function Discriminant_Type
7622 (N : Node_Id) return Node_Id; -- Node5
7623
7624 function Do_Accessibility_Check
7625 (N : Node_Id) return Boolean; -- Flag13
7626
7627 function Do_Discriminant_Check
7628 (N : Node_Id) return Boolean; -- Flag13
7629
7630 function Do_Division_Check
7631 (N : Node_Id) return Boolean; -- Flag13
7632
7633 function Do_Length_Check
7634 (N : Node_Id) return Boolean; -- Flag4
7635
7636 function Do_Overflow_Check
7637 (N : Node_Id) return Boolean; -- Flag17
7638
7639 function Do_Range_Check
7640 (N : Node_Id) return Boolean; -- Flag9
7641
7642 function Do_Storage_Check
7643 (N : Node_Id) return Boolean; -- Flag17
7644
7645 function Do_Tag_Check
7646 (N : Node_Id) return Boolean; -- Flag13
7647
7648 function Elaborate_All_Desirable
7649 (N : Node_Id) return Boolean; -- Flag9
7650
7651 function Elaborate_All_Present
7652 (N : Node_Id) return Boolean; -- Flag14
7653
7654 function Elaborate_Desirable
7655 (N : Node_Id) return Boolean; -- Flag11
7656
7657 function Elaborate_Present
7658 (N : Node_Id) return Boolean; -- Flag4
7659
7660 function Elaboration_Boolean
7661 (N : Node_Id) return Node_Id; -- Node2
7662
7663 function Else_Actions
7664 (N : Node_Id) return List_Id; -- List3
7665
7666 function Else_Statements
7667 (N : Node_Id) return List_Id; -- List4
7668
7669 function Elsif_Parts
7670 (N : Node_Id) return List_Id; -- List3
7671
7672 function Enclosing_Variant
7673 (N : Node_Id) return Node_Id; -- Node2
7674
7675 function End_Label
7676 (N : Node_Id) return Node_Id; -- Node4
7677
7678 function End_Span
7679 (N : Node_Id) return Uint; -- Uint5
7680
7681 function Entity
7682 (N : Node_Id) return Node_Id; -- Node4
7683
7684 function Entity_Or_Associated_Node
7685 (N : Node_Id) return Node_Id; -- Node4
7686
7687 function Entry_Body_Formal_Part
7688 (N : Node_Id) return Node_Id; -- Node5
7689
7690 function Entry_Call_Alternative
7691 (N : Node_Id) return Node_Id; -- Node1
7692
7693 function Entry_Call_Statement
7694 (N : Node_Id) return Node_Id; -- Node1
7695
7696 function Entry_Direct_Name
7697 (N : Node_Id) return Node_Id; -- Node1
7698
7699 function Entry_Index
7700 (N : Node_Id) return Node_Id; -- Node5
7701
7702 function Entry_Index_Specification
7703 (N : Node_Id) return Node_Id; -- Node4
7704
7705 function Etype
7706 (N : Node_Id) return Node_Id; -- Node5
7707
7708 function Exception_Choices
7709 (N : Node_Id) return List_Id; -- List4
7710
7711 function Exception_Handlers
7712 (N : Node_Id) return List_Id; -- List5
7713
7714 function Exception_Junk
7715 (N : Node_Id) return Boolean; -- Flag8
7716
7717 function Exception_Label
7718 (N : Node_Id) return Node_Id; -- Node5
7719
7720 function Explicit_Actual_Parameter
7721 (N : Node_Id) return Node_Id; -- Node3
7722
7723 function Expansion_Delayed
7724 (N : Node_Id) return Boolean; -- Flag11
7725
7726 function Explicit_Generic_Actual_Parameter
7727 (N : Node_Id) return Node_Id; -- Node1
7728
7729 function Expression
7730 (N : Node_Id) return Node_Id; -- Node3
7731
7732 function Expressions
7733 (N : Node_Id) return List_Id; -- List1
7734
7735 function First_Bit
7736 (N : Node_Id) return Node_Id; -- Node3
7737
7738 function First_Inlined_Subprogram
7739 (N : Node_Id) return Entity_Id; -- Node3
7740
7741 function First_Name
7742 (N : Node_Id) return Boolean; -- Flag5
7743
7744 function First_Named_Actual
7745 (N : Node_Id) return Node_Id; -- Node4
7746
7747 function First_Real_Statement
7748 (N : Node_Id) return Node_Id; -- Node2
7749
7750 function First_Subtype_Link
7751 (N : Node_Id) return Entity_Id; -- Node5
7752
7753 function Float_Truncate
7754 (N : Node_Id) return Boolean; -- Flag11
7755
7756 function Formal_Type_Definition
7757 (N : Node_Id) return Node_Id; -- Node3
7758
7759 function Forwards_OK
7760 (N : Node_Id) return Boolean; -- Flag5
7761
7762 function From_At_Mod
7763 (N : Node_Id) return Boolean; -- Flag4
7764
7765 function From_Default
7766 (N : Node_Id) return Boolean; -- Flag6
7767
7768 function Generic_Associations
7769 (N : Node_Id) return List_Id; -- List3
7770
7771 function Generic_Formal_Declarations
7772 (N : Node_Id) return List_Id; -- List2
7773
7774 function Generic_Parent
7775 (N : Node_Id) return Node_Id; -- Node5
7776
7777 function Generic_Parent_Type
7778 (N : Node_Id) return Node_Id; -- Node4
7779
7780 function Handled_Statement_Sequence
7781 (N : Node_Id) return Node_Id; -- Node4
7782
7783 function Handler_List_Entry
7784 (N : Node_Id) return Node_Id; -- Node2
7785
7786 function Has_Created_Identifier
7787 (N : Node_Id) return Boolean; -- Flag15
7788
7789 function Has_Dynamic_Length_Check
7790 (N : Node_Id) return Boolean; -- Flag10
7791
7792 function Has_Dynamic_Range_Check
7793 (N : Node_Id) return Boolean; -- Flag12
7794
7795 function Has_Init_Expression
7796 (N : Node_Id) return Boolean; -- Flag14
7797
7798 function Has_Local_Raise
7799 (N : Node_Id) return Boolean; -- Flag8
7800
7801 function Has_No_Elaboration_Code
7802 (N : Node_Id) return Boolean; -- Flag17
7803
7804 function Has_Priority_Pragma
7805 (N : Node_Id) return Boolean; -- Flag6
7806
7807 function Has_Private_View
7808 (N : Node_Id) return Boolean; -- Flag11
7809
7810 function Has_Self_Reference
7811 (N : Node_Id) return Boolean; -- Flag13
7812
7813 function Has_Storage_Size_Pragma
7814 (N : Node_Id) return Boolean; -- Flag5
7815
7816 function Has_Task_Info_Pragma
7817 (N : Node_Id) return Boolean; -- Flag7
7818
7819 function Has_Task_Name_Pragma
7820 (N : Node_Id) return Boolean; -- Flag8
7821
7822 function Has_Wide_Character
7823 (N : Node_Id) return Boolean; -- Flag11
7824
7825 function Hidden_By_Use_Clause
7826 (N : Node_Id) return Elist_Id; -- Elist4
7827
7828 function High_Bound
7829 (N : Node_Id) return Node_Id; -- Node2
7830
7831 function Identifier
7832 (N : Node_Id) return Node_Id; -- Node1
7833
7834 function Interface_List
7835 (N : Node_Id) return List_Id; -- List2
7836
7837 function Interface_Present
7838 (N : Node_Id) return Boolean; -- Flag16
7839
7840 function Implicit_With
7841 (N : Node_Id) return Boolean; -- Flag16
7842
7843 function In_Present
7844 (N : Node_Id) return Boolean; -- Flag15
7845
7846 function Includes_Infinities
7847 (N : Node_Id) return Boolean; -- Flag11
7848
7849 function Instance_Spec
7850 (N : Node_Id) return Node_Id; -- Node5
7851
7852 function Intval
7853 (N : Node_Id) return Uint; -- Uint3
7854
7855 function Is_Asynchronous_Call_Block
7856 (N : Node_Id) return Boolean; -- Flag7
7857
7858 function Is_Component_Left_Opnd
7859 (N : Node_Id) return Boolean; -- Flag13
7860
7861 function Is_Component_Right_Opnd
7862 (N : Node_Id) return Boolean; -- Flag14
7863
7864 function Is_Controlling_Actual
7865 (N : Node_Id) return Boolean; -- Flag16
7866
7867 function Is_Dynamic_Coextension
7868 (N : Node_Id) return Boolean; -- Flag18
7869
7870 function Is_Entry_Barrier_Function
7871 (N : Node_Id) return Boolean; -- Flag8
7872
7873 function Is_In_Discriminant_Check
7874 (N : Node_Id) return Boolean; -- Flag11
7875
7876 function Is_Machine_Number
7877 (N : Node_Id) return Boolean; -- Flag11
7878
7879 function Is_Null_Loop
7880 (N : Node_Id) return Boolean; -- Flag16
7881
7882 function Is_Overloaded
7883 (N : Node_Id) return Boolean; -- Flag5
7884
7885 function Is_Power_Of_2_For_Shift
7886 (N : Node_Id) return Boolean; -- Flag13
7887
7888 function Is_Protected_Subprogram_Body
7889 (N : Node_Id) return Boolean; -- Flag7
7890
7891 function Is_Static_Coextension
7892 (N : Node_Id) return Boolean; -- Flag14
7893
7894 function Is_Static_Expression
7895 (N : Node_Id) return Boolean; -- Flag6
7896
7897 function Is_Subprogram_Descriptor
7898 (N : Node_Id) return Boolean; -- Flag16
7899
7900 function Is_Task_Allocation_Block
7901 (N : Node_Id) return Boolean; -- Flag6
7902
7903 function Is_Task_Master
7904 (N : Node_Id) return Boolean; -- Flag5
7905
7906 function Iteration_Scheme
7907 (N : Node_Id) return Node_Id; -- Node2
7908
7909 function Itype
7910 (N : Node_Id) return Entity_Id; -- Node1
7911
7912 function Kill_Range_Check
7913 (N : Node_Id) return Boolean; -- Flag11
7914
7915 function Label_Construct
7916 (N : Node_Id) return Node_Id; -- Node2
7917
7918 function Left_Opnd
7919 (N : Node_Id) return Node_Id; -- Node2
7920
7921 function Last_Bit
7922 (N : Node_Id) return Node_Id; -- Node4
7923
7924 function Last_Name
7925 (N : Node_Id) return Boolean; -- Flag6
7926
7927 function Library_Unit
7928 (N : Node_Id) return Node_Id; -- Node4
7929
7930 function Limited_View_Installed
7931 (N : Node_Id) return Boolean; -- Flag18
7932
7933 function Limited_Present
7934 (N : Node_Id) return Boolean; -- Flag17
7935
7936 function Literals
7937 (N : Node_Id) return List_Id; -- List1
7938
7939 function Local_Raise_Not_OK
7940 (N : Node_Id) return Boolean; -- Flag7
7941
7942 function Local_Raise_Statements
7943 (N : Node_Id) return Elist_Id; -- Elist1
7944
7945 function Loop_Actions
7946 (N : Node_Id) return List_Id; -- List2
7947
7948 function Loop_Parameter_Specification
7949 (N : Node_Id) return Node_Id; -- Node4
7950
7951 function Low_Bound
7952 (N : Node_Id) return Node_Id; -- Node1
7953
7954 function Mod_Clause
7955 (N : Node_Id) return Node_Id; -- Node2
7956
7957 function More_Ids
7958 (N : Node_Id) return Boolean; -- Flag5
7959
7960 function Must_Be_Byte_Aligned
7961 (N : Node_Id) return Boolean; -- Flag14
7962
7963 function Must_Not_Freeze
7964 (N : Node_Id) return Boolean; -- Flag8
7965
7966 function Must_Not_Override
7967 (N : Node_Id) return Boolean; -- Flag15
7968
7969 function Must_Override
7970 (N : Node_Id) return Boolean; -- Flag14
7971
7972 function Name
7973 (N : Node_Id) return Node_Id; -- Node2
7974
7975 function Names
7976 (N : Node_Id) return List_Id; -- List2
7977
7978 function Next_Entity
7979 (N : Node_Id) return Node_Id; -- Node2
7980
7981 function Next_Named_Actual
7982 (N : Node_Id) return Node_Id; -- Node4
7983
7984 function Next_Rep_Item
7985 (N : Node_Id) return Node_Id; -- Node5
7986
7987 function Next_Use_Clause
7988 (N : Node_Id) return Node_Id; -- Node3
7989
7990 function No_Ctrl_Actions
7991 (N : Node_Id) return Boolean; -- Flag7
7992
7993 function No_Elaboration_Check
7994 (N : Node_Id) return Boolean; -- Flag14
7995
7996 function No_Entities_Ref_In_Spec
7997 (N : Node_Id) return Boolean; -- Flag8
7998
7999 function No_Initialization
8000 (N : Node_Id) return Boolean; -- Flag13
8001
8002 function No_Truncation
8003 (N : Node_Id) return Boolean; -- Flag17
8004
8005 function Null_Present
8006 (N : Node_Id) return Boolean; -- Flag13
8007
8008 function Null_Exclusion_Present
8009 (N : Node_Id) return Boolean; -- Flag11
8010
8011 function Null_Record_Present
8012 (N : Node_Id) return Boolean; -- Flag17
8013
8014 function Object_Definition
8015 (N : Node_Id) return Node_Id; -- Node4
8016
8017 function Original_Discriminant
8018 (N : Node_Id) return Node_Id; -- Node2
8019
8020 function Original_Entity
8021 (N : Node_Id) return Entity_Id; -- Node2
8022
8023 function Others_Discrete_Choices
8024 (N : Node_Id) return List_Id; -- List1
8025
8026 function Out_Present
8027 (N : Node_Id) return Boolean; -- Flag17
8028
8029 function Parameter_Associations
8030 (N : Node_Id) return List_Id; -- List3
8031
8032 function Parameter_List_Truncated
8033 (N : Node_Id) return Boolean; -- Flag17
8034
8035 function Parameter_Specifications
8036 (N : Node_Id) return List_Id; -- List3
8037
8038 function Parameter_Type
8039 (N : Node_Id) return Node_Id; -- Node2
8040
8041 function Parent_Spec
8042 (N : Node_Id) return Node_Id; -- Node4
8043
8044 function Position
8045 (N : Node_Id) return Node_Id; -- Node2
8046
8047 function Pragma_Argument_Associations
8048 (N : Node_Id) return List_Id; -- List2
8049
8050 function Pragmas_After
8051 (N : Node_Id) return List_Id; -- List5
8052
8053 function Pragmas_Before
8054 (N : Node_Id) return List_Id; -- List4
8055
8056 function Prefix
8057 (N : Node_Id) return Node_Id; -- Node3
8058
8059 function Present_Expr
8060 (N : Node_Id) return Uint; -- Uint3
8061
8062 function Prev_Ids
8063 (N : Node_Id) return Boolean; -- Flag6
8064
8065 function Print_In_Hex
8066 (N : Node_Id) return Boolean; -- Flag13
8067
8068 function Private_Declarations
8069 (N : Node_Id) return List_Id; -- List3
8070
8071 function Private_Present
8072 (N : Node_Id) return Boolean; -- Flag15
8073
8074 function Procedure_To_Call
8075 (N : Node_Id) return Node_Id; -- Node2
8076
8077 function Proper_Body
8078 (N : Node_Id) return Node_Id; -- Node1
8079
8080 function Protected_Definition
8081 (N : Node_Id) return Node_Id; -- Node3
8082
8083 function Protected_Present
8084 (N : Node_Id) return Boolean; -- Flag6
8085
8086 function Raises_Constraint_Error
8087 (N : Node_Id) return Boolean; -- Flag7
8088
8089 function Range_Constraint
8090 (N : Node_Id) return Node_Id; -- Node4
8091
8092 function Range_Expression
8093 (N : Node_Id) return Node_Id; -- Node4
8094
8095 function Real_Range_Specification
8096 (N : Node_Id) return Node_Id; -- Node4
8097
8098 function Realval
8099 (N : Node_Id) return Ureal; -- Ureal3
8100
8101 function Reason
8102 (N : Node_Id) return Uint; -- Uint3
8103
8104 function Record_Extension_Part
8105 (N : Node_Id) return Node_Id; -- Node3
8106
8107 function Redundant_Use
8108 (N : Node_Id) return Boolean; -- Flag13
8109
8110 function Renaming_Exception
8111 (N : Node_Id) return Node_Id; -- Node2
8112
8113 function Result_Definition
8114 (N : Node_Id) return Node_Id; -- Node4
8115
8116 function Return_Object_Declarations
8117 (N : Node_Id) return List_Id; -- List3
8118
8119 function Return_Statement_Entity
8120 (N : Node_Id) return Node_Id; -- Node5
8121
8122 function Reverse_Present
8123 (N : Node_Id) return Boolean; -- Flag15
8124
8125 function Right_Opnd
8126 (N : Node_Id) return Node_Id; -- Node3
8127
8128 function Rounded_Result
8129 (N : Node_Id) return Boolean; -- Flag18
8130
8131 function Scope
8132 (N : Node_Id) return Node_Id; -- Node3
8133
8134 function Select_Alternatives
8135 (N : Node_Id) return List_Id; -- List1
8136
8137 function Selector_Name
8138 (N : Node_Id) return Node_Id; -- Node2
8139
8140 function Selector_Names
8141 (N : Node_Id) return List_Id; -- List1
8142
8143 function Shift_Count_OK
8144 (N : Node_Id) return Boolean; -- Flag4
8145
8146 function Source_Type
8147 (N : Node_Id) return Entity_Id; -- Node1
8148
8149 function Specification
8150 (N : Node_Id) return Node_Id; -- Node1
8151
8152 function Statements
8153 (N : Node_Id) return List_Id; -- List3
8154
8155 function Static_Processing_OK
8156 (N : Node_Id) return Boolean; -- Flag4
8157
8158 function Storage_Pool
8159 (N : Node_Id) return Node_Id; -- Node1
8160
8161 function Strval
8162 (N : Node_Id) return String_Id; -- Str3
8163
8164 function Subtype_Indication
8165 (N : Node_Id) return Node_Id; -- Node5
8166
8167 function Subtype_Mark
8168 (N : Node_Id) return Node_Id; -- Node4
8169
8170 function Subtype_Marks
8171 (N : Node_Id) return List_Id; -- List2
8172
8173 function Synchronized_Present
8174 (N : Node_Id) return Boolean; -- Flag7
8175
8176 function Tagged_Present
8177 (N : Node_Id) return Boolean; -- Flag15
8178
8179 function Target_Type
8180 (N : Node_Id) return Entity_Id; -- Node2
8181
8182 function Task_Definition
8183 (N : Node_Id) return Node_Id; -- Node3
8184
8185 function Task_Present
8186 (N : Node_Id) return Boolean; -- Flag5
8187
8188 function Then_Actions
8189 (N : Node_Id) return List_Id; -- List2
8190
8191 function Then_Statements
8192 (N : Node_Id) return List_Id; -- List2
8193
8194 function Treat_Fixed_As_Integer
8195 (N : Node_Id) return Boolean; -- Flag14
8196
8197 function Triggering_Alternative
8198 (N : Node_Id) return Node_Id; -- Node1
8199
8200 function Triggering_Statement
8201 (N : Node_Id) return Node_Id; -- Node1
8202
8203 function TSS_Elist
8204 (N : Node_Id) return Elist_Id; -- Elist3
8205
8206 function Type_Definition
8207 (N : Node_Id) return Node_Id; -- Node3
8208
8209 function Unit
8210 (N : Node_Id) return Node_Id; -- Node2
8211
8212 function Unknown_Discriminants_Present
8213 (N : Node_Id) return Boolean; -- Flag13
8214
8215 function Unreferenced_In_Spec
8216 (N : Node_Id) return Boolean; -- Flag7
8217
8218 function Variant_Part
8219 (N : Node_Id) return Node_Id; -- Node4
8220
8221 function Variants
8222 (N : Node_Id) return List_Id; -- List1
8223
8224 function Visible_Declarations
8225 (N : Node_Id) return List_Id; -- List2
8226
8227 function Was_Originally_Stub
8228 (N : Node_Id) return Boolean; -- Flag13
8229
8230 function Zero_Cost_Handling
8231 (N : Node_Id) return Boolean; -- Flag5
8232
8233 -- End functions (note used by xsinfo utility program to end processing)
8234
8235 ----------------------------
8236 -- Node Update Procedures --
8237 ----------------------------
8238
8239 -- These are the corresponding node update routines, which again provide
8240 -- a high level logical access with type checking. In addition to setting
8241 -- the indicated field of the node N to the given Val, in the case of
8242 -- tree pointers (List1-4), the parent pointer of the Val node is set to
8243 -- point back to node N. This automates the setting of the parent pointer.
8244
8245 procedure Set_ABE_Is_Certain
8246 (N : Node_Id; Val : Boolean := True); -- Flag18
8247
8248 procedure Set_Abort_Present
8249 (N : Node_Id; Val : Boolean := True); -- Flag15
8250
8251 procedure Set_Abortable_Part
8252 (N : Node_Id; Val : Node_Id); -- Node2
8253
8254 procedure Set_Abstract_Present
8255 (N : Node_Id; Val : Boolean := True); -- Flag4
8256
8257 procedure Set_Accept_Handler_Records
8258 (N : Node_Id; Val : List_Id); -- List5
8259
8260 procedure Set_Accept_Statement
8261 (N : Node_Id; Val : Node_Id); -- Node2
8262
8263 procedure Set_Access_Definition
8264 (N : Node_Id; Val : Node_Id); -- Node3
8265
8266 procedure Set_Access_To_Subprogram_Definition
8267 (N : Node_Id; Val : Node_Id); -- Node3
8268
8269 procedure Set_Access_Types_To_Process
8270 (N : Node_Id; Val : Elist_Id); -- Elist2
8271
8272 procedure Set_Actions
8273 (N : Node_Id; Val : List_Id); -- List1
8274
8275 procedure Set_Activation_Chain_Entity
8276 (N : Node_Id; Val : Node_Id); -- Node3
8277
8278 procedure Set_Acts_As_Spec
8279 (N : Node_Id; Val : Boolean := True); -- Flag4
8280
8281 procedure Set_Actual_Designated_Subtype
8282 (N : Node_Id; Val : Node_Id); -- Node4
8283
8284 procedure Set_Aggregate_Bounds
8285 (N : Node_Id; Val : Node_Id); -- Node3
8286
8287 procedure Set_Aliased_Present
8288 (N : Node_Id; Val : Boolean := True); -- Flag4
8289
8290 procedure Set_All_Others
8291 (N : Node_Id; Val : Boolean := True); -- Flag11
8292
8293 procedure Set_All_Present
8294 (N : Node_Id; Val : Boolean := True); -- Flag15
8295
8296 procedure Set_Alternatives
8297 (N : Node_Id; Val : List_Id); -- List4
8298
8299 procedure Set_Ancestor_Part
8300 (N : Node_Id; Val : Node_Id); -- Node3
8301
8302 procedure Set_Array_Aggregate
8303 (N : Node_Id; Val : Node_Id); -- Node3
8304
8305 procedure Set_Assignment_OK
8306 (N : Node_Id; Val : Boolean := True); -- Flag15
8307
8308 procedure Set_Associated_Node
8309 (N : Node_Id; Val : Node_Id); -- Node4
8310
8311 procedure Set_Attribute_Name
8312 (N : Node_Id; Val : Name_Id); -- Name2
8313
8314 procedure Set_At_End_Proc
8315 (N : Node_Id; Val : Node_Id); -- Node1
8316
8317 procedure Set_Aux_Decls_Node
8318 (N : Node_Id; Val : Node_Id); -- Node5
8319
8320 procedure Set_Backwards_OK
8321 (N : Node_Id; Val : Boolean := True); -- Flag6
8322
8323 procedure Set_Bad_Is_Detected
8324 (N : Node_Id; Val : Boolean := True); -- Flag15
8325
8326 procedure Set_Body_Required
8327 (N : Node_Id; Val : Boolean := True); -- Flag13
8328
8329 procedure Set_Body_To_Inline
8330 (N : Node_Id; Val : Node_Id); -- Node3
8331
8332 procedure Set_Box_Present
8333 (N : Node_Id; Val : Boolean := True); -- Flag15
8334
8335 procedure Set_By_Ref
8336 (N : Node_Id; Val : Boolean := True); -- Flag5
8337
8338 procedure Set_Char_Literal_Value
8339 (N : Node_Id; Val : Uint); -- Uint2
8340
8341 procedure Set_Chars
8342 (N : Node_Id; Val : Name_Id); -- Name1
8343
8344 procedure Set_Check_Address_Alignment
8345 (N : Node_Id; Val : Boolean := True); -- Flag11
8346
8347 procedure Set_Choice_Parameter
8348 (N : Node_Id; Val : Node_Id); -- Node2
8349
8350 procedure Set_Coextensions
8351 (N : Node_Id; Val : Elist_Id); -- Elist4
8352
8353 procedure Set_Choices
8354 (N : Node_Id; Val : List_Id); -- List1
8355
8356 procedure Set_Comes_From_Extended_Return_Statement
8357 (N : Node_Id; Val : Boolean := True); -- Flag18
8358
8359 procedure Set_Compile_Time_Known_Aggregate
8360 (N : Node_Id; Val : Boolean := True); -- Flag18
8361
8362 procedure Set_Component_Associations
8363 (N : Node_Id; Val : List_Id); -- List2
8364
8365 procedure Set_Component_Clauses
8366 (N : Node_Id; Val : List_Id); -- List3
8367
8368 procedure Set_Component_Definition
8369 (N : Node_Id; Val : Node_Id); -- Node4
8370
8371 procedure Set_Component_Items
8372 (N : Node_Id; Val : List_Id); -- List3
8373
8374 procedure Set_Component_List
8375 (N : Node_Id; Val : Node_Id); -- Node1
8376
8377 procedure Set_Component_Name
8378 (N : Node_Id; Val : Node_Id); -- Node1
8379
8380 procedure Set_Condition
8381 (N : Node_Id; Val : Node_Id); -- Node1
8382
8383 procedure Set_Condition_Actions
8384 (N : Node_Id; Val : List_Id); -- List3
8385
8386 procedure Set_Config_Pragmas
8387 (N : Node_Id; Val : List_Id); -- List4
8388
8389 procedure Set_Constant_Present
8390 (N : Node_Id; Val : Boolean := True); -- Flag17
8391
8392 procedure Set_Constraint
8393 (N : Node_Id; Val : Node_Id); -- Node3
8394
8395 procedure Set_Constraints
8396 (N : Node_Id; Val : List_Id); -- List1
8397
8398 procedure Set_Context_Installed
8399 (N : Node_Id; Val : Boolean := True); -- Flag13
8400
8401 procedure Set_Context_Items
8402 (N : Node_Id; Val : List_Id); -- List1
8403
8404 procedure Set_Controlling_Argument
8405 (N : Node_Id; Val : Node_Id); -- Node1
8406
8407 procedure Set_Conversion_OK
8408 (N : Node_Id; Val : Boolean := True); -- Flag14
8409
8410 procedure Set_Corresponding_Body
8411 (N : Node_Id; Val : Node_Id); -- Node5
8412
8413 procedure Set_Corresponding_Formal_Spec
8414 (N : Node_Id; Val : Node_Id); -- Node3
8415
8416 procedure Set_Corresponding_Generic_Association
8417 (N : Node_Id; Val : Node_Id); -- Node5
8418
8419 procedure Set_Corresponding_Integer_Value
8420 (N : Node_Id; Val : Uint); -- Uint4
8421
8422 procedure Set_Corresponding_Spec
8423 (N : Node_Id; Val : Node_Id); -- Node5
8424
8425 procedure Set_Corresponding_Stub
8426 (N : Node_Id; Val : Node_Id); -- Node3
8427
8428 procedure Set_Dcheck_Function
8429 (N : Node_Id; Val : Entity_Id); -- Node5
8430
8431 procedure Set_Debug_Statement
8432 (N : Node_Id; Val : Node_Id); -- Node3
8433
8434 procedure Set_Declarations
8435 (N : Node_Id; Val : List_Id); -- List2
8436
8437 procedure Set_Default_Expression
8438 (N : Node_Id; Val : Node_Id); -- Node5
8439
8440 procedure Set_Default_Name
8441 (N : Node_Id; Val : Node_Id); -- Node2
8442
8443 procedure Set_Defining_Identifier
8444 (N : Node_Id; Val : Entity_Id); -- Node1
8445
8446 procedure Set_Defining_Unit_Name
8447 (N : Node_Id; Val : Node_Id); -- Node1
8448
8449 procedure Set_Delay_Alternative
8450 (N : Node_Id; Val : Node_Id); -- Node4
8451
8452 procedure Set_Delay_Statement
8453 (N : Node_Id; Val : Node_Id); -- Node2
8454
8455 procedure Set_Delta_Expression
8456 (N : Node_Id; Val : Node_Id); -- Node3
8457
8458 procedure Set_Digits_Expression
8459 (N : Node_Id; Val : Node_Id); -- Node2
8460
8461 procedure Set_Discr_Check_Funcs_Built
8462 (N : Node_Id; Val : Boolean := True); -- Flag11
8463
8464 procedure Set_Discrete_Choices
8465 (N : Node_Id; Val : List_Id); -- List4
8466
8467 procedure Set_Discrete_Range
8468 (N : Node_Id; Val : Node_Id); -- Node4
8469
8470 procedure Set_Discrete_Subtype_Definition
8471 (N : Node_Id; Val : Node_Id); -- Node4
8472
8473 procedure Set_Discrete_Subtype_Definitions
8474 (N : Node_Id; Val : List_Id); -- List2
8475
8476 procedure Set_Discriminant_Specifications
8477 (N : Node_Id; Val : List_Id); -- List4
8478
8479 procedure Set_Discriminant_Type
8480 (N : Node_Id; Val : Node_Id); -- Node5
8481
8482 procedure Set_Do_Accessibility_Check
8483 (N : Node_Id; Val : Boolean := True); -- Flag13
8484
8485 procedure Set_Do_Discriminant_Check
8486 (N : Node_Id; Val : Boolean := True); -- Flag13
8487
8488 procedure Set_Do_Division_Check
8489 (N : Node_Id; Val : Boolean := True); -- Flag13
8490
8491 procedure Set_Do_Length_Check
8492 (N : Node_Id; Val : Boolean := True); -- Flag4
8493
8494 procedure Set_Do_Overflow_Check
8495 (N : Node_Id; Val : Boolean := True); -- Flag17
8496
8497 procedure Set_Do_Range_Check
8498 (N : Node_Id; Val : Boolean := True); -- Flag9
8499
8500 procedure Set_Do_Storage_Check
8501 (N : Node_Id; Val : Boolean := True); -- Flag17
8502
8503 procedure Set_Do_Tag_Check
8504 (N : Node_Id; Val : Boolean := True); -- Flag13
8505
8506 procedure Set_Elaborate_All_Desirable
8507 (N : Node_Id; Val : Boolean := True); -- Flag9
8508
8509 procedure Set_Elaborate_All_Present
8510 (N : Node_Id; Val : Boolean := True); -- Flag14
8511
8512 procedure Set_Elaborate_Desirable
8513 (N : Node_Id; Val : Boolean := True); -- Flag11
8514
8515 procedure Set_Elaborate_Present
8516 (N : Node_Id; Val : Boolean := True); -- Flag4
8517
8518 procedure Set_Elaboration_Boolean
8519 (N : Node_Id; Val : Node_Id); -- Node2
8520
8521 procedure Set_Else_Actions
8522 (N : Node_Id; Val : List_Id); -- List3
8523
8524 procedure Set_Else_Statements
8525 (N : Node_Id; Val : List_Id); -- List4
8526
8527 procedure Set_Elsif_Parts
8528 (N : Node_Id; Val : List_Id); -- List3
8529
8530 procedure Set_Enclosing_Variant
8531 (N : Node_Id; Val : Node_Id); -- Node2
8532
8533 procedure Set_End_Label
8534 (N : Node_Id; Val : Node_Id); -- Node4
8535
8536 procedure Set_End_Span
8537 (N : Node_Id; Val : Uint); -- Uint5
8538
8539 procedure Set_Entity
8540 (N : Node_Id; Val : Node_Id); -- Node4
8541
8542 procedure Set_Entry_Body_Formal_Part
8543 (N : Node_Id; Val : Node_Id); -- Node5
8544
8545 procedure Set_Entry_Call_Alternative
8546 (N : Node_Id; Val : Node_Id); -- Node1
8547
8548 procedure Set_Entry_Call_Statement
8549 (N : Node_Id; Val : Node_Id); -- Node1
8550
8551 procedure Set_Entry_Direct_Name
8552 (N : Node_Id; Val : Node_Id); -- Node1
8553
8554 procedure Set_Entry_Index
8555 (N : Node_Id; Val : Node_Id); -- Node5
8556
8557 procedure Set_Entry_Index_Specification
8558 (N : Node_Id; Val : Node_Id); -- Node4
8559
8560 procedure Set_Etype
8561 (N : Node_Id; Val : Node_Id); -- Node5
8562
8563 procedure Set_Exception_Choices
8564 (N : Node_Id; Val : List_Id); -- List4
8565
8566 procedure Set_Exception_Handlers
8567 (N : Node_Id; Val : List_Id); -- List5
8568
8569 procedure Set_Exception_Junk
8570 (N : Node_Id; Val : Boolean := True); -- Flag8
8571
8572 procedure Set_Exception_Label
8573 (N : Node_Id; Val : Node_Id); -- Node5
8574
8575 procedure Set_Expansion_Delayed
8576 (N : Node_Id; Val : Boolean := True); -- Flag11
8577
8578 procedure Set_Explicit_Actual_Parameter
8579 (N : Node_Id; Val : Node_Id); -- Node3
8580
8581 procedure Set_Explicit_Generic_Actual_Parameter
8582 (N : Node_Id; Val : Node_Id); -- Node1
8583
8584 procedure Set_Expression
8585 (N : Node_Id; Val : Node_Id); -- Node3
8586
8587 procedure Set_Expressions
8588 (N : Node_Id; Val : List_Id); -- List1
8589
8590 procedure Set_First_Bit
8591 (N : Node_Id; Val : Node_Id); -- Node3
8592
8593 procedure Set_First_Inlined_Subprogram
8594 (N : Node_Id; Val : Entity_Id); -- Node3
8595
8596 procedure Set_First_Name
8597 (N : Node_Id; Val : Boolean := True); -- Flag5
8598
8599 procedure Set_First_Named_Actual
8600 (N : Node_Id; Val : Node_Id); -- Node4
8601
8602 procedure Set_First_Real_Statement
8603 (N : Node_Id; Val : Node_Id); -- Node2
8604
8605 procedure Set_First_Subtype_Link
8606 (N : Node_Id; Val : Entity_Id); -- Node5
8607
8608 procedure Set_Float_Truncate
8609 (N : Node_Id; Val : Boolean := True); -- Flag11
8610
8611 procedure Set_Formal_Type_Definition
8612 (N : Node_Id; Val : Node_Id); -- Node3
8613
8614 procedure Set_Forwards_OK
8615 (N : Node_Id; Val : Boolean := True); -- Flag5
8616
8617 procedure Set_From_At_Mod
8618 (N : Node_Id; Val : Boolean := True); -- Flag4
8619
8620 procedure Set_From_Default
8621 (N : Node_Id; Val : Boolean := True); -- Flag6
8622
8623 procedure Set_Generic_Associations
8624 (N : Node_Id; Val : List_Id); -- List3
8625
8626 procedure Set_Generic_Formal_Declarations
8627 (N : Node_Id; Val : List_Id); -- List2
8628
8629 procedure Set_Generic_Parent
8630 (N : Node_Id; Val : Node_Id); -- Node5
8631
8632 procedure Set_Generic_Parent_Type
8633 (N : Node_Id; Val : Node_Id); -- Node4
8634
8635 procedure Set_Handled_Statement_Sequence
8636 (N : Node_Id; Val : Node_Id); -- Node4
8637
8638 procedure Set_Handler_List_Entry
8639 (N : Node_Id; Val : Node_Id); -- Node2
8640
8641 procedure Set_Has_Created_Identifier
8642 (N : Node_Id; Val : Boolean := True); -- Flag15
8643
8644 procedure Set_Has_Dynamic_Length_Check
8645 (N : Node_Id; Val : Boolean := True); -- Flag10
8646
8647 procedure Set_Has_Dynamic_Range_Check
8648 (N : Node_Id; Val : Boolean := True); -- Flag12
8649
8650 procedure Set_Has_Init_Expression
8651 (N : Node_Id; Val : Boolean := True); -- Flag14
8652
8653 procedure Set_Has_Local_Raise
8654 (N : Node_Id; Val : Boolean := True); -- Flag8
8655
8656 procedure Set_Has_No_Elaboration_Code
8657 (N : Node_Id; Val : Boolean := True); -- Flag17
8658
8659 procedure Set_Has_Priority_Pragma
8660 (N : Node_Id; Val : Boolean := True); -- Flag6
8661
8662 procedure Set_Has_Private_View
8663 (N : Node_Id; Val : Boolean := True); -- Flag11
8664
8665 procedure Set_Has_Self_Reference
8666 (N : Node_Id; Val : Boolean := True); -- Flag13
8667
8668 procedure Set_Has_Storage_Size_Pragma
8669 (N : Node_Id; Val : Boolean := True); -- Flag5
8670
8671 procedure Set_Has_Task_Info_Pragma
8672 (N : Node_Id; Val : Boolean := True); -- Flag7
8673
8674 procedure Set_Has_Task_Name_Pragma
8675 (N : Node_Id; Val : Boolean := True); -- Flag8
8676
8677 procedure Set_Has_Wide_Character
8678 (N : Node_Id; Val : Boolean := True); -- Flag11
8679
8680 procedure Set_Hidden_By_Use_Clause
8681 (N : Node_Id; Val : Elist_Id); -- Elist4
8682
8683 procedure Set_High_Bound
8684 (N : Node_Id; Val : Node_Id); -- Node2
8685
8686 procedure Set_Identifier
8687 (N : Node_Id; Val : Node_Id); -- Node1
8688
8689 procedure Set_Interface_List
8690 (N : Node_Id; Val : List_Id); -- List2
8691
8692 procedure Set_Interface_Present
8693 (N : Node_Id; Val : Boolean := True); -- Flag16
8694
8695 procedure Set_Implicit_With
8696 (N : Node_Id; Val : Boolean := True); -- Flag16
8697
8698 procedure Set_In_Present
8699 (N : Node_Id; Val : Boolean := True); -- Flag15
8700
8701 procedure Set_Includes_Infinities
8702 (N : Node_Id; Val : Boolean := True); -- Flag11
8703
8704 procedure Set_Instance_Spec
8705 (N : Node_Id; Val : Node_Id); -- Node5
8706
8707 procedure Set_Intval
8708 (N : Node_Id; Val : Uint); -- Uint3
8709
8710 procedure Set_Is_Asynchronous_Call_Block
8711 (N : Node_Id; Val : Boolean := True); -- Flag7
8712
8713 procedure Set_Is_Component_Left_Opnd
8714 (N : Node_Id; Val : Boolean := True); -- Flag13
8715
8716 procedure Set_Is_Component_Right_Opnd
8717 (N : Node_Id; Val : Boolean := True); -- Flag14
8718
8719 procedure Set_Is_Controlling_Actual
8720 (N : Node_Id; Val : Boolean := True); -- Flag16
8721
8722 procedure Set_Is_Dynamic_Coextension
8723 (N : Node_Id; Val : Boolean := True); -- Flag18
8724
8725 procedure Set_Is_Entry_Barrier_Function
8726 (N : Node_Id; Val : Boolean := True); -- Flag8
8727
8728 procedure Set_Is_In_Discriminant_Check
8729 (N : Node_Id; Val : Boolean := True); -- Flag11
8730
8731 procedure Set_Is_Machine_Number
8732 (N : Node_Id; Val : Boolean := True); -- Flag11
8733
8734 procedure Set_Is_Null_Loop
8735 (N : Node_Id; Val : Boolean := True); -- Flag16
8736
8737 procedure Set_Is_Overloaded
8738 (N : Node_Id; Val : Boolean := True); -- Flag5
8739
8740 procedure Set_Is_Power_Of_2_For_Shift
8741 (N : Node_Id; Val : Boolean := True); -- Flag13
8742
8743 procedure Set_Is_Protected_Subprogram_Body
8744 (N : Node_Id; Val : Boolean := True); -- Flag7
8745
8746 procedure Set_Is_Static_Coextension
8747 (N : Node_Id; Val : Boolean := True); -- Flag14
8748
8749 procedure Set_Is_Static_Expression
8750 (N : Node_Id; Val : Boolean := True); -- Flag6
8751
8752 procedure Set_Is_Subprogram_Descriptor
8753 (N : Node_Id; Val : Boolean := True); -- Flag16
8754
8755 procedure Set_Is_Task_Allocation_Block
8756 (N : Node_Id; Val : Boolean := True); -- Flag6
8757
8758 procedure Set_Is_Task_Master
8759 (N : Node_Id; Val : Boolean := True); -- Flag5
8760
8761 procedure Set_Iteration_Scheme
8762 (N : Node_Id; Val : Node_Id); -- Node2
8763
8764 procedure Set_Itype
8765 (N : Node_Id; Val : Entity_Id); -- Node1
8766
8767 procedure Set_Kill_Range_Check
8768 (N : Node_Id; Val : Boolean := True); -- Flag11
8769
8770 procedure Set_Last_Bit
8771 (N : Node_Id; Val : Node_Id); -- Node4
8772
8773 procedure Set_Last_Name
8774 (N : Node_Id; Val : Boolean := True); -- Flag6
8775
8776 procedure Set_Library_Unit
8777 (N : Node_Id; Val : Node_Id); -- Node4
8778
8779 procedure Set_Label_Construct
8780 (N : Node_Id; Val : Node_Id); -- Node2
8781
8782 procedure Set_Left_Opnd
8783 (N : Node_Id; Val : Node_Id); -- Node2
8784
8785 procedure Set_Limited_View_Installed
8786 (N : Node_Id; Val : Boolean := True); -- Flag18
8787
8788 procedure Set_Limited_Present
8789 (N : Node_Id; Val : Boolean := True); -- Flag17
8790
8791 procedure Set_Literals
8792 (N : Node_Id; Val : List_Id); -- List1
8793
8794 procedure Set_Local_Raise_Not_OK
8795 (N : Node_Id; Val : Boolean := True); -- Flag7
8796
8797 procedure Set_Local_Raise_Statements
8798 (N : Node_Id; Val : Elist_Id); -- Elist1
8799
8800 procedure Set_Loop_Actions
8801 (N : Node_Id; Val : List_Id); -- List2
8802
8803 procedure Set_Loop_Parameter_Specification
8804 (N : Node_Id; Val : Node_Id); -- Node4
8805
8806 procedure Set_Low_Bound
8807 (N : Node_Id; Val : Node_Id); -- Node1
8808
8809 procedure Set_Mod_Clause
8810 (N : Node_Id; Val : Node_Id); -- Node2
8811
8812 procedure Set_More_Ids
8813 (N : Node_Id; Val : Boolean := True); -- Flag5
8814
8815 procedure Set_Must_Be_Byte_Aligned
8816 (N : Node_Id; Val : Boolean := True); -- Flag14
8817
8818 procedure Set_Must_Not_Freeze
8819 (N : Node_Id; Val : Boolean := True); -- Flag8
8820
8821 procedure Set_Must_Not_Override
8822 (N : Node_Id; Val : Boolean := True); -- Flag15
8823
8824 procedure Set_Must_Override
8825 (N : Node_Id; Val : Boolean := True); -- Flag14
8826
8827 procedure Set_Name
8828 (N : Node_Id; Val : Node_Id); -- Node2
8829
8830 procedure Set_Names
8831 (N : Node_Id; Val : List_Id); -- List2
8832
8833 procedure Set_Next_Entity
8834 (N : Node_Id; Val : Node_Id); -- Node2
8835
8836 procedure Set_Next_Named_Actual
8837 (N : Node_Id; Val : Node_Id); -- Node4
8838
8839 procedure Set_Next_Rep_Item
8840 (N : Node_Id; Val : Node_Id); -- Node5
8841
8842 procedure Set_Next_Use_Clause
8843 (N : Node_Id; Val : Node_Id); -- Node3
8844
8845 procedure Set_No_Ctrl_Actions
8846 (N : Node_Id; Val : Boolean := True); -- Flag7
8847
8848 procedure Set_No_Elaboration_Check
8849 (N : Node_Id; Val : Boolean := True); -- Flag14
8850
8851 procedure Set_No_Entities_Ref_In_Spec
8852 (N : Node_Id; Val : Boolean := True); -- Flag8
8853
8854 procedure Set_No_Initialization
8855 (N : Node_Id; Val : Boolean := True); -- Flag13
8856
8857 procedure Set_No_Truncation
8858 (N : Node_Id; Val : Boolean := True); -- Flag17
8859
8860 procedure Set_Null_Present
8861 (N : Node_Id; Val : Boolean := True); -- Flag13
8862
8863 procedure Set_Null_Exclusion_Present
8864 (N : Node_Id; Val : Boolean := True); -- Flag11
8865
8866 procedure Set_Null_Record_Present
8867 (N : Node_Id; Val : Boolean := True); -- Flag17
8868
8869 procedure Set_Object_Definition
8870 (N : Node_Id; Val : Node_Id); -- Node4
8871
8872 procedure Set_Original_Discriminant
8873 (N : Node_Id; Val : Node_Id); -- Node2
8874
8875 procedure Set_Original_Entity
8876 (N : Node_Id; Val : Entity_Id); -- Node2
8877
8878 procedure Set_Others_Discrete_Choices
8879 (N : Node_Id; Val : List_Id); -- List1
8880
8881 procedure Set_Out_Present
8882 (N : Node_Id; Val : Boolean := True); -- Flag17
8883
8884 procedure Set_Parameter_Associations
8885 (N : Node_Id; Val : List_Id); -- List3
8886
8887 procedure Set_Parameter_List_Truncated
8888 (N : Node_Id; Val : Boolean := True); -- Flag17
8889
8890 procedure Set_Parameter_Specifications
8891 (N : Node_Id; Val : List_Id); -- List3
8892
8893 procedure Set_Parameter_Type
8894 (N : Node_Id; Val : Node_Id); -- Node2
8895
8896 procedure Set_Parent_Spec
8897 (N : Node_Id; Val : Node_Id); -- Node4
8898
8899 procedure Set_Position
8900 (N : Node_Id; Val : Node_Id); -- Node2
8901
8902 procedure Set_Pragma_Argument_Associations
8903 (N : Node_Id; Val : List_Id); -- List2
8904
8905 procedure Set_Pragmas_After
8906 (N : Node_Id; Val : List_Id); -- List5
8907
8908 procedure Set_Pragmas_Before
8909 (N : Node_Id; Val : List_Id); -- List4
8910
8911 procedure Set_Prefix
8912 (N : Node_Id; Val : Node_Id); -- Node3
8913
8914 procedure Set_Present_Expr
8915 (N : Node_Id; Val : Uint); -- Uint3
8916
8917 procedure Set_Prev_Ids
8918 (N : Node_Id; Val : Boolean := True); -- Flag6
8919
8920 procedure Set_Print_In_Hex
8921 (N : Node_Id; Val : Boolean := True); -- Flag13
8922
8923 procedure Set_Private_Declarations
8924 (N : Node_Id; Val : List_Id); -- List3
8925
8926 procedure Set_Private_Present
8927 (N : Node_Id; Val : Boolean := True); -- Flag15
8928
8929 procedure Set_Procedure_To_Call
8930 (N : Node_Id; Val : Node_Id); -- Node2
8931
8932 procedure Set_Proper_Body
8933 (N : Node_Id; Val : Node_Id); -- Node1
8934
8935 procedure Set_Protected_Definition
8936 (N : Node_Id; Val : Node_Id); -- Node3
8937
8938 procedure Set_Protected_Present
8939 (N : Node_Id; Val : Boolean := True); -- Flag6
8940
8941 procedure Set_Raises_Constraint_Error
8942 (N : Node_Id; Val : Boolean := True); -- Flag7
8943
8944 procedure Set_Range_Constraint
8945 (N : Node_Id; Val : Node_Id); -- Node4
8946
8947 procedure Set_Range_Expression
8948 (N : Node_Id; Val : Node_Id); -- Node4
8949
8950 procedure Set_Real_Range_Specification
8951 (N : Node_Id; Val : Node_Id); -- Node4
8952
8953 procedure Set_Realval
8954 (N : Node_Id; Val : Ureal); -- Ureal3
8955
8956 procedure Set_Reason
8957 (N : Node_Id; Val : Uint); -- Uint3
8958
8959 procedure Set_Record_Extension_Part
8960 (N : Node_Id; Val : Node_Id); -- Node3
8961
8962 procedure Set_Redundant_Use
8963 (N : Node_Id; Val : Boolean := True); -- Flag13
8964
8965 procedure Set_Renaming_Exception
8966 (N : Node_Id; Val : Node_Id); -- Node2
8967
8968 procedure Set_Result_Definition
8969 (N : Node_Id; Val : Node_Id); -- Node4
8970
8971 procedure Set_Return_Object_Declarations
8972 (N : Node_Id; Val : List_Id); -- List3
8973
8974 procedure Set_Return_Statement_Entity
8975 (N : Node_Id; Val : Node_Id); -- Node5
8976
8977 procedure Set_Reverse_Present
8978 (N : Node_Id; Val : Boolean := True); -- Flag15
8979
8980 procedure Set_Right_Opnd
8981 (N : Node_Id; Val : Node_Id); -- Node3
8982
8983 procedure Set_Rounded_Result
8984 (N : Node_Id; Val : Boolean := True); -- Flag18
8985
8986 procedure Set_Scope
8987 (N : Node_Id; Val : Node_Id); -- Node3
8988
8989 procedure Set_Select_Alternatives
8990 (N : Node_Id; Val : List_Id); -- List1
8991
8992 procedure Set_Selector_Name
8993 (N : Node_Id; Val : Node_Id); -- Node2
8994
8995 procedure Set_Selector_Names
8996 (N : Node_Id; Val : List_Id); -- List1
8997
8998 procedure Set_Shift_Count_OK
8999 (N : Node_Id; Val : Boolean := True); -- Flag4
9000
9001 procedure Set_Source_Type
9002 (N : Node_Id; Val : Entity_Id); -- Node1
9003
9004 procedure Set_Specification
9005 (N : Node_Id; Val : Node_Id); -- Node1
9006
9007 procedure Set_Statements
9008 (N : Node_Id; Val : List_Id); -- List3
9009
9010 procedure Set_Static_Processing_OK
9011 (N : Node_Id; Val : Boolean); -- Flag4
9012
9013 procedure Set_Storage_Pool
9014 (N : Node_Id; Val : Node_Id); -- Node1
9015
9016 procedure Set_Strval
9017 (N : Node_Id; Val : String_Id); -- Str3
9018
9019 procedure Set_Subtype_Indication
9020 (N : Node_Id; Val : Node_Id); -- Node5
9021
9022 procedure Set_Subtype_Mark
9023 (N : Node_Id; Val : Node_Id); -- Node4
9024
9025 procedure Set_Subtype_Marks
9026 (N : Node_Id; Val : List_Id); -- List2
9027
9028 procedure Set_Synchronized_Present
9029 (N : Node_Id; Val : Boolean := True); -- Flag7
9030
9031 procedure Set_Tagged_Present
9032 (N : Node_Id; Val : Boolean := True); -- Flag15
9033
9034 procedure Set_Target_Type
9035 (N : Node_Id; Val : Entity_Id); -- Node2
9036
9037 procedure Set_Task_Definition
9038 (N : Node_Id; Val : Node_Id); -- Node3
9039
9040 procedure Set_Task_Present
9041 (N : Node_Id; Val : Boolean := True); -- Flag5
9042
9043 procedure Set_Then_Actions
9044 (N : Node_Id; Val : List_Id); -- List2
9045
9046 procedure Set_Then_Statements
9047 (N : Node_Id; Val : List_Id); -- List2
9048
9049 procedure Set_Treat_Fixed_As_Integer
9050 (N : Node_Id; Val : Boolean := True); -- Flag14
9051
9052 procedure Set_Triggering_Alternative
9053 (N : Node_Id; Val : Node_Id); -- Node1
9054
9055 procedure Set_Triggering_Statement
9056 (N : Node_Id; Val : Node_Id); -- Node1
9057
9058 procedure Set_TSS_Elist
9059 (N : Node_Id; Val : Elist_Id); -- Elist3
9060
9061 procedure Set_Type_Definition
9062 (N : Node_Id; Val : Node_Id); -- Node3
9063
9064 procedure Set_Unit
9065 (N : Node_Id; Val : Node_Id); -- Node2
9066
9067 procedure Set_Unknown_Discriminants_Present
9068 (N : Node_Id; Val : Boolean := True); -- Flag13
9069
9070 procedure Set_Unreferenced_In_Spec
9071 (N : Node_Id; Val : Boolean := True); -- Flag7
9072
9073 procedure Set_Variant_Part
9074 (N : Node_Id; Val : Node_Id); -- Node4
9075
9076 procedure Set_Variants
9077 (N : Node_Id; Val : List_Id); -- List1
9078
9079 procedure Set_Visible_Declarations
9080 (N : Node_Id; Val : List_Id); -- List2
9081
9082 procedure Set_Was_Originally_Stub
9083 (N : Node_Id; Val : Boolean := True); -- Flag13
9084
9085 procedure Set_Zero_Cost_Handling
9086 (N : Node_Id; Val : Boolean := True); -- Flag5
9087
9088 -------------------------
9089 -- Iterator Procedures --
9090 -------------------------
9091
9092 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9093
9094 procedure Next_Entity (N : in out Node_Id);
9095 procedure Next_Named_Actual (N : in out Node_Id);
9096 procedure Next_Rep_Item (N : in out Node_Id);
9097 procedure Next_Use_Clause (N : in out Node_Id);
9098
9099 --------------------------------------
9100 -- Logical Access to End_Span Field --
9101 --------------------------------------
9102
9103 function End_Location (N : Node_Id) return Source_Ptr;
9104 -- N is an N_If_Statement or N_Case_Statement node, and this
9105 -- function returns the location of the IF token in the END IF
9106 -- sequence by translating the value of the End_Span field.
9107
9108 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9109 -- N is an N_If_Statement or N_Case_Statement node. This procedure
9110 -- sets the End_Span field to correspond to the given value S. In
9111 -- other words, End_Span is set to the difference between S and
9112 -- Sloc (N), the starting location.
9113
9114 -----------------------------
9115 -- Syntactic Parent Tables --
9116 -----------------------------
9117
9118 -- These tables show for each node, and for each of the five fields,
9119 -- whether the corresponding field is syntactic (True) or semantic (False).
9120 -- Unused entries are also set to False.
9121
9122 subtype Field_Num is Natural range 1 .. 5;
9123
9124 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
9125
9126 -- Following entries can be built automatically from the sinfo sources
9127 -- using the makeisf utility (currently this program is in spitbol).
9128
9129 N_Identifier =>
9130 (1 => True, -- Chars (Name1)
9131 2 => False, -- Original_Discriminant (Node2-Sem)
9132 3 => False, -- unused
9133 4 => False, -- Entity (Node4-Sem)
9134 5 => False), -- Etype (Node5-Sem)
9135
9136 N_Integer_Literal =>
9137 (1 => False, -- unused
9138 2 => False, -- Original_Entity (Node2-Sem)
9139 3 => True, -- Intval (Uint3)
9140 4 => False, -- unused
9141 5 => False), -- Etype (Node5-Sem)
9142
9143 N_Real_Literal =>
9144 (1 => False, -- unused
9145 2 => False, -- Original_Entity (Node2-Sem)
9146 3 => True, -- Realval (Ureal3)
9147 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
9148 5 => False), -- Etype (Node5-Sem)
9149
9150 N_Character_Literal =>
9151 (1 => True, -- Chars (Name1)
9152 2 => True, -- Char_Literal_Value (Uint2)
9153 3 => False, -- unused
9154 4 => False, -- Entity (Node4-Sem)
9155 5 => False), -- Etype (Node5-Sem)
9156
9157 N_String_Literal =>
9158 (1 => False, -- unused
9159 2 => False, -- unused
9160 3 => True, -- Strval (Str3)
9161 4 => False, -- unused
9162 5 => False), -- Etype (Node5-Sem)
9163
9164 N_Pragma =>
9165 (1 => True, -- Chars (Name1)
9166 2 => True, -- Pragma_Argument_Associations (List2)
9167 3 => True, -- Debug_Statement (Node3)
9168 4 => False, -- Entity (Node4-Sem)
9169 5 => False), -- Next_Rep_Item (Node5-Sem)
9170
9171 N_Pragma_Argument_Association =>
9172 (1 => True, -- Chars (Name1)
9173 2 => False, -- unused
9174 3 => True, -- Expression (Node3)
9175 4 => False, -- unused
9176 5 => False), -- unused
9177
9178 N_Defining_Identifier =>
9179 (1 => True, -- Chars (Name1)
9180 2 => False, -- Next_Entity (Node2-Sem)
9181 3 => False, -- Scope (Node3-Sem)
9182 4 => False, -- unused
9183 5 => False), -- Etype (Node5-Sem)
9184
9185 N_Full_Type_Declaration =>
9186 (1 => True, -- Defining_Identifier (Node1)
9187 2 => False, -- unused
9188 3 => True, -- Type_Definition (Node3)
9189 4 => True, -- Discriminant_Specifications (List4)
9190 5 => False), -- unused
9191
9192 N_Subtype_Declaration =>
9193 (1 => True, -- Defining_Identifier (Node1)
9194 2 => False, -- unused
9195 3 => False, -- unused
9196 4 => False, -- Generic_Parent_Type (Node4-Sem)
9197 5 => True), -- Subtype_Indication (Node5)
9198
9199 N_Subtype_Indication =>
9200 (1 => False, -- unused
9201 2 => False, -- unused
9202 3 => True, -- Constraint (Node3)
9203 4 => True, -- Subtype_Mark (Node4)
9204 5 => False), -- Etype (Node5-Sem)
9205
9206 N_Object_Declaration =>
9207 (1 => True, -- Defining_Identifier (Node1)
9208 2 => False, -- Handler_List_Entry (Node2-Sem)
9209 3 => True, -- Expression (Node3)
9210 4 => True, -- Object_Definition (Node4)
9211 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
9212
9213 N_Number_Declaration =>
9214 (1 => True, -- Defining_Identifier (Node1)
9215 2 => False, -- unused
9216 3 => True, -- Expression (Node3)
9217 4 => False, -- unused
9218 5 => False), -- unused
9219
9220 N_Derived_Type_Definition =>
9221 (1 => False, -- unused
9222 2 => True, -- Interface_List (List2)
9223 3 => True, -- Record_Extension_Part (Node3)
9224 4 => False, -- unused
9225 5 => True), -- Subtype_Indication (Node5)
9226
9227 N_Range_Constraint =>
9228 (1 => False, -- unused
9229 2 => False, -- unused
9230 3 => False, -- unused
9231 4 => True, -- Range_Expression (Node4)
9232 5 => False), -- unused
9233
9234 N_Range =>
9235 (1 => True, -- Low_Bound (Node1)
9236 2 => True, -- High_Bound (Node2)
9237 3 => False, -- unused
9238 4 => False, -- unused
9239 5 => False), -- Etype (Node5-Sem)
9240
9241 N_Enumeration_Type_Definition =>
9242 (1 => True, -- Literals (List1)
9243 2 => False, -- unused
9244 3 => False, -- unused
9245 4 => True, -- End_Label (Node4)
9246 5 => False), -- unused
9247
9248 N_Defining_Character_Literal =>
9249 (1 => True, -- Chars (Name1)
9250 2 => False, -- Next_Entity (Node2-Sem)
9251 3 => False, -- Scope (Node3-Sem)
9252 4 => False, -- unused
9253 5 => False), -- Etype (Node5-Sem)
9254
9255 N_Signed_Integer_Type_Definition =>
9256 (1 => True, -- Low_Bound (Node1)
9257 2 => True, -- High_Bound (Node2)
9258 3 => False, -- unused
9259 4 => False, -- unused
9260 5 => False), -- unused
9261
9262 N_Modular_Type_Definition =>
9263 (1 => False, -- unused
9264 2 => False, -- unused
9265 3 => True, -- Expression (Node3)
9266 4 => False, -- unused
9267 5 => False), -- unused
9268
9269 N_Floating_Point_Definition =>
9270 (1 => False, -- unused
9271 2 => True, -- Digits_Expression (Node2)
9272 3 => False, -- unused
9273 4 => True, -- Real_Range_Specification (Node4)
9274 5 => False), -- unused
9275
9276 N_Real_Range_Specification =>
9277 (1 => True, -- Low_Bound (Node1)
9278 2 => True, -- High_Bound (Node2)
9279 3 => False, -- unused
9280 4 => False, -- unused
9281 5 => False), -- unused
9282
9283 N_Ordinary_Fixed_Point_Definition =>
9284 (1 => False, -- unused
9285 2 => False, -- unused
9286 3 => True, -- Delta_Expression (Node3)
9287 4 => True, -- Real_Range_Specification (Node4)
9288 5 => False), -- unused
9289
9290 N_Decimal_Fixed_Point_Definition =>
9291 (1 => False, -- unused
9292 2 => True, -- Digits_Expression (Node2)
9293 3 => True, -- Delta_Expression (Node3)
9294 4 => True, -- Real_Range_Specification (Node4)
9295 5 => False), -- unused
9296
9297 N_Digits_Constraint =>
9298 (1 => False, -- unused
9299 2 => True, -- Digits_Expression (Node2)
9300 3 => False, -- unused
9301 4 => True, -- Range_Constraint (Node4)
9302 5 => False), -- unused
9303
9304 N_Unconstrained_Array_Definition =>
9305 (1 => False, -- unused
9306 2 => True, -- Subtype_Marks (List2)
9307 3 => False, -- unused
9308 4 => True, -- Component_Definition (Node4)
9309 5 => False), -- unused
9310
9311 N_Constrained_Array_Definition =>
9312 (1 => False, -- unused
9313 2 => True, -- Discrete_Subtype_Definitions (List2)
9314 3 => False, -- unused
9315 4 => True, -- Component_Definition (Node4)
9316 5 => False), -- unused
9317
9318 N_Component_Definition =>
9319 (1 => False, -- unused
9320 2 => False, -- unused
9321 3 => True, -- Access_Definition (Node3)
9322 4 => False, -- unused
9323 5 => True), -- Subtype_Indication (Node5)
9324
9325 N_Discriminant_Specification =>
9326 (1 => True, -- Defining_Identifier (Node1)
9327 2 => False, -- unused
9328 3 => True, -- Expression (Node3)
9329 4 => False, -- unused
9330 5 => True), -- Discriminant_Type (Node5)
9331
9332 N_Index_Or_Discriminant_Constraint =>
9333 (1 => True, -- Constraints (List1)
9334 2 => False, -- unused
9335 3 => False, -- unused
9336 4 => False, -- unused
9337 5 => False), -- unused
9338
9339 N_Discriminant_Association =>
9340 (1 => True, -- Selector_Names (List1)
9341 2 => False, -- unused
9342 3 => True, -- Expression (Node3)
9343 4 => False, -- unused
9344 5 => False), -- unused
9345
9346 N_Record_Definition =>
9347 (1 => True, -- Component_List (Node1)
9348 2 => True, -- Interface_List (List2)
9349 3 => False, -- unused
9350 4 => True, -- End_Label (Node4)
9351 5 => False), -- unused
9352
9353 N_Component_List =>
9354 (1 => False, -- unused
9355 2 => False, -- unused
9356 3 => True, -- Component_Items (List3)
9357 4 => True, -- Variant_Part (Node4)
9358 5 => False), -- unused
9359
9360 N_Component_Declaration =>
9361 (1 => True, -- Defining_Identifier (Node1)
9362 2 => False, -- unused
9363 3 => True, -- Expression (Node3)
9364 4 => True, -- Component_Definition (Node4)
9365 5 => False), -- unused
9366
9367 N_Variant_Part =>
9368 (1 => True, -- Variants (List1)
9369 2 => True, -- Name (Node2)
9370 3 => False, -- unused
9371 4 => False, -- unused
9372 5 => False), -- unused
9373
9374 N_Variant =>
9375 (1 => True, -- Component_List (Node1)
9376 2 => False, -- Enclosing_Variant (Node2-Sem)
9377 3 => False, -- Present_Expr (Uint3-Sem)
9378 4 => True, -- Discrete_Choices (List4)
9379 5 => False), -- Dcheck_Function (Node5-Sem)
9380
9381 N_Others_Choice =>
9382 (1 => False, -- Others_Discrete_Choices (List1-Sem)
9383 2 => False, -- unused
9384 3 => False, -- unused
9385 4 => False, -- unused
9386 5 => False), -- unused
9387
9388 N_Access_To_Object_Definition =>
9389 (1 => False, -- unused
9390 2 => False, -- unused
9391 3 => False, -- unused
9392 4 => False, -- unused
9393 5 => True), -- Subtype_Indication (Node5)
9394
9395 N_Access_Function_Definition =>
9396 (1 => False, -- unused
9397 2 => False, -- unused
9398 3 => True, -- Parameter_Specifications (List3)
9399 4 => True, -- Result_Definition (Node4)
9400 5 => False), -- unused
9401
9402 N_Access_Procedure_Definition =>
9403 (1 => False, -- unused
9404 2 => False, -- unused
9405 3 => True, -- Parameter_Specifications (List3)
9406 4 => False, -- unused
9407 5 => False), -- unused
9408
9409 N_Access_Definition =>
9410 (1 => False, -- unused
9411 2 => False, -- unused
9412 3 => True, -- Access_To_Subprogram_Definition (Node3)
9413 4 => True, -- Subtype_Mark (Node4)
9414 5 => False), -- unused
9415
9416 N_Incomplete_Type_Declaration =>
9417 (1 => True, -- Defining_Identifier (Node1)
9418 2 => False, -- unused
9419 3 => False, -- unused
9420 4 => True, -- Discriminant_Specifications (List4)
9421 5 => False), -- unused
9422
9423 N_Explicit_Dereference =>
9424 (1 => False, -- unused
9425 2 => False, -- unused
9426 3 => True, -- Prefix (Node3)
9427 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
9428 5 => False), -- Etype (Node5-Sem)
9429
9430 N_Indexed_Component =>
9431 (1 => True, -- Expressions (List1)
9432 2 => False, -- unused
9433 3 => True, -- Prefix (Node3)
9434 4 => False, -- unused
9435 5 => False), -- Etype (Node5-Sem)
9436
9437 N_Slice =>
9438 (1 => False, -- unused
9439 2 => False, -- unused
9440 3 => True, -- Prefix (Node3)
9441 4 => True, -- Discrete_Range (Node4)
9442 5 => False), -- Etype (Node5-Sem)
9443
9444 N_Selected_Component =>
9445 (1 => False, -- unused
9446 2 => True, -- Selector_Name (Node2)
9447 3 => True, -- Prefix (Node3)
9448 4 => False, -- unused
9449 5 => False), -- Etype (Node5-Sem)
9450
9451 N_Attribute_Reference =>
9452 (1 => True, -- Expressions (List1)
9453 2 => True, -- Attribute_Name (Name2)
9454 3 => True, -- Prefix (Node3)
9455 4 => False, -- Entity (Node4-Sem)
9456 5 => False), -- Etype (Node5-Sem)
9457
9458 N_Aggregate =>
9459 (1 => True, -- Expressions (List1)
9460 2 => True, -- Component_Associations (List2)
9461 3 => False, -- Aggregate_Bounds (Node3-Sem)
9462 4 => False, -- unused
9463 5 => False), -- Etype (Node5-Sem)
9464
9465 N_Component_Association =>
9466 (1 => True, -- Choices (List1)
9467 2 => False, -- Loop_Actions (List2-Sem)
9468 3 => True, -- Expression (Node3)
9469 4 => False, -- unused
9470 5 => False), -- unused
9471
9472 N_Extension_Aggregate =>
9473 (1 => True, -- Expressions (List1)
9474 2 => True, -- Component_Associations (List2)
9475 3 => True, -- Ancestor_Part (Node3)
9476 4 => False, -- unused
9477 5 => False), -- Etype (Node5-Sem)
9478
9479 N_Null =>
9480 (1 => False, -- unused
9481 2 => False, -- unused
9482 3 => False, -- unused
9483 4 => False, -- unused
9484 5 => False), -- Etype (Node5-Sem)
9485
9486 N_And_Then =>
9487 (1 => False, -- Actions (List1-Sem)
9488 2 => True, -- Left_Opnd (Node2)
9489 3 => True, -- Right_Opnd (Node3)
9490 4 => False, -- unused
9491 5 => False), -- Etype (Node5-Sem)
9492
9493 N_Or_Else =>
9494 (1 => False, -- Actions (List1-Sem)
9495 2 => True, -- Left_Opnd (Node2)
9496 3 => True, -- Right_Opnd (Node3)
9497 4 => False, -- unused
9498 5 => False), -- Etype (Node5-Sem)
9499
9500 N_In =>
9501 (1 => False, -- unused
9502 2 => True, -- Left_Opnd (Node2)
9503 3 => True, -- Right_Opnd (Node3)
9504 4 => False, -- unused
9505 5 => False), -- Etype (Node5-Sem)
9506
9507 N_Not_In =>
9508 (1 => False, -- unused
9509 2 => True, -- Left_Opnd (Node2)
9510 3 => True, -- Right_Opnd (Node3)
9511 4 => False, -- unused
9512 5 => False), -- Etype (Node5-Sem)
9513
9514 N_Op_And =>
9515 (1 => True, -- Chars (Name1)
9516 2 => True, -- Left_Opnd (Node2)
9517 3 => True, -- Right_Opnd (Node3)
9518 4 => False, -- Entity (Node4-Sem)
9519 5 => False), -- Etype (Node5-Sem)
9520
9521 N_Op_Or =>
9522 (1 => True, -- Chars (Name1)
9523 2 => True, -- Left_Opnd (Node2)
9524 3 => True, -- Right_Opnd (Node3)
9525 4 => False, -- Entity (Node4-Sem)
9526 5 => False), -- Etype (Node5-Sem)
9527
9528 N_Op_Xor =>
9529 (1 => True, -- Chars (Name1)
9530 2 => True, -- Left_Opnd (Node2)
9531 3 => True, -- Right_Opnd (Node3)
9532 4 => False, -- Entity (Node4-Sem)
9533 5 => False), -- Etype (Node5-Sem)
9534
9535 N_Op_Eq =>
9536 (1 => True, -- Chars (Name1)
9537 2 => True, -- Left_Opnd (Node2)
9538 3 => True, -- Right_Opnd (Node3)
9539 4 => False, -- Entity (Node4-Sem)
9540 5 => False), -- Etype (Node5-Sem)
9541
9542 N_Op_Ne =>
9543 (1 => True, -- Chars (Name1)
9544 2 => True, -- Left_Opnd (Node2)
9545 3 => True, -- Right_Opnd (Node3)
9546 4 => False, -- Entity (Node4-Sem)
9547 5 => False), -- Etype (Node5-Sem)
9548
9549 N_Op_Lt =>
9550 (1 => True, -- Chars (Name1)
9551 2 => True, -- Left_Opnd (Node2)
9552 3 => True, -- Right_Opnd (Node3)
9553 4 => False, -- Entity (Node4-Sem)
9554 5 => False), -- Etype (Node5-Sem)
9555
9556 N_Op_Le =>
9557 (1 => True, -- Chars (Name1)
9558 2 => True, -- Left_Opnd (Node2)
9559 3 => True, -- Right_Opnd (Node3)
9560 4 => False, -- Entity (Node4-Sem)
9561 5 => False), -- Etype (Node5-Sem)
9562
9563 N_Op_Gt =>
9564 (1 => True, -- Chars (Name1)
9565 2 => True, -- Left_Opnd (Node2)
9566 3 => True, -- Right_Opnd (Node3)
9567 4 => False, -- Entity (Node4-Sem)
9568 5 => False), -- Etype (Node5-Sem)
9569
9570 N_Op_Ge =>
9571 (1 => True, -- Chars (Name1)
9572 2 => True, -- Left_Opnd (Node2)
9573 3 => True, -- Right_Opnd (Node3)
9574 4 => False, -- Entity (Node4-Sem)
9575 5 => False), -- Etype (Node5-Sem)
9576
9577 N_Op_Add =>
9578 (1 => True, -- Chars (Name1)
9579 2 => True, -- Left_Opnd (Node2)
9580 3 => True, -- Right_Opnd (Node3)
9581 4 => False, -- Entity (Node4-Sem)
9582 5 => False), -- Etype (Node5-Sem)
9583
9584 N_Op_Subtract =>
9585 (1 => True, -- Chars (Name1)
9586 2 => True, -- Left_Opnd (Node2)
9587 3 => True, -- Right_Opnd (Node3)
9588 4 => False, -- Entity (Node4-Sem)
9589 5 => False), -- Etype (Node5-Sem)
9590
9591 N_Op_Concat =>
9592 (1 => True, -- Chars (Name1)
9593 2 => True, -- Left_Opnd (Node2)
9594 3 => True, -- Right_Opnd (Node3)
9595 4 => False, -- Entity (Node4-Sem)
9596 5 => False), -- Etype (Node5-Sem)
9597
9598 N_Op_Multiply =>
9599 (1 => True, -- Chars (Name1)
9600 2 => True, -- Left_Opnd (Node2)
9601 3 => True, -- Right_Opnd (Node3)
9602 4 => False, -- Entity (Node4-Sem)
9603 5 => False), -- Etype (Node5-Sem)
9604
9605 N_Op_Divide =>
9606 (1 => True, -- Chars (Name1)
9607 2 => True, -- Left_Opnd (Node2)
9608 3 => True, -- Right_Opnd (Node3)
9609 4 => False, -- Entity (Node4-Sem)
9610 5 => False), -- Etype (Node5-Sem)
9611
9612 N_Op_Mod =>
9613 (1 => True, -- Chars (Name1)
9614 2 => True, -- Left_Opnd (Node2)
9615 3 => True, -- Right_Opnd (Node3)
9616 4 => False, -- Entity (Node4-Sem)
9617 5 => False), -- Etype (Node5-Sem)
9618
9619 N_Op_Rem =>
9620 (1 => True, -- Chars (Name1)
9621 2 => True, -- Left_Opnd (Node2)
9622 3 => True, -- Right_Opnd (Node3)
9623 4 => False, -- Entity (Node4-Sem)
9624 5 => False), -- Etype (Node5-Sem)
9625
9626 N_Op_Expon =>
9627 (1 => True, -- Chars (Name1)
9628 2 => True, -- Left_Opnd (Node2)
9629 3 => True, -- Right_Opnd (Node3)
9630 4 => False, -- Entity (Node4-Sem)
9631 5 => False), -- Etype (Node5-Sem)
9632
9633 N_Op_Plus =>
9634 (1 => True, -- Chars (Name1)
9635 2 => False, -- unused
9636 3 => True, -- Right_Opnd (Node3)
9637 4 => False, -- Entity (Node4-Sem)
9638 5 => False), -- Etype (Node5-Sem)
9639
9640 N_Op_Minus =>
9641 (1 => True, -- Chars (Name1)
9642 2 => False, -- unused
9643 3 => True, -- Right_Opnd (Node3)
9644 4 => False, -- Entity (Node4-Sem)
9645 5 => False), -- Etype (Node5-Sem)
9646
9647 N_Op_Abs =>
9648 (1 => True, -- Chars (Name1)
9649 2 => False, -- unused
9650 3 => True, -- Right_Opnd (Node3)
9651 4 => False, -- Entity (Node4-Sem)
9652 5 => False), -- Etype (Node5-Sem)
9653
9654 N_Op_Not =>
9655 (1 => True, -- Chars (Name1)
9656 2 => False, -- unused
9657 3 => True, -- Right_Opnd (Node3)
9658 4 => False, -- Entity (Node4-Sem)
9659 5 => False), -- Etype (Node5-Sem)
9660
9661 N_Type_Conversion =>
9662 (1 => False, -- unused
9663 2 => False, -- unused
9664 3 => True, -- Expression (Node3)
9665 4 => True, -- Subtype_Mark (Node4)
9666 5 => False), -- Etype (Node5-Sem)
9667
9668 N_Qualified_Expression =>
9669 (1 => False, -- unused
9670 2 => False, -- unused
9671 3 => True, -- Expression (Node3)
9672 4 => True, -- Subtype_Mark (Node4)
9673 5 => False), -- Etype (Node5-Sem)
9674
9675 N_Allocator =>
9676 (1 => False, -- Storage_Pool (Node1-Sem)
9677 2 => False, -- Procedure_To_Call (Node2-Sem)
9678 3 => True, -- Expression (Node3)
9679 4 => False, -- Coextensions (Elist4-Sem)
9680 5 => False), -- Etype (Node5-Sem)
9681
9682 N_Null_Statement =>
9683 (1 => False, -- unused
9684 2 => False, -- unused
9685 3 => False, -- unused
9686 4 => False, -- unused
9687 5 => False), -- unused
9688
9689 N_Label =>
9690 (1 => True, -- Identifier (Node1)
9691 2 => False, -- unused
9692 3 => False, -- unused
9693 4 => False, -- unused
9694 5 => False), -- unused
9695
9696 N_Assignment_Statement =>
9697 (1 => False, -- unused
9698 2 => True, -- Name (Node2)
9699 3 => True, -- Expression (Node3)
9700 4 => False, -- unused
9701 5 => False), -- unused
9702
9703 N_If_Statement =>
9704 (1 => True, -- Condition (Node1)
9705 2 => True, -- Then_Statements (List2)
9706 3 => True, -- Elsif_Parts (List3)
9707 4 => True, -- Else_Statements (List4)
9708 5 => True), -- End_Span (Uint5)
9709
9710 N_Elsif_Part =>
9711 (1 => True, -- Condition (Node1)
9712 2 => True, -- Then_Statements (List2)
9713 3 => False, -- Condition_Actions (List3-Sem)
9714 4 => False, -- unused
9715 5 => False), -- unused
9716
9717 N_Case_Statement =>
9718 (1 => False, -- unused
9719 2 => False, -- unused
9720 3 => True, -- Expression (Node3)
9721 4 => True, -- Alternatives (List4)
9722 5 => True), -- End_Span (Uint5)
9723
9724 N_Case_Statement_Alternative =>
9725 (1 => False, -- unused
9726 2 => False, -- unused
9727 3 => True, -- Statements (List3)
9728 4 => True, -- Discrete_Choices (List4)
9729 5 => False), -- unused
9730
9731 N_Loop_Statement =>
9732 (1 => True, -- Identifier (Node1)
9733 2 => True, -- Iteration_Scheme (Node2)
9734 3 => True, -- Statements (List3)
9735 4 => True, -- End_Label (Node4)
9736 5 => False), -- unused
9737
9738 N_Iteration_Scheme =>
9739 (1 => True, -- Condition (Node1)
9740 2 => False, -- unused
9741 3 => False, -- Condition_Actions (List3-Sem)
9742 4 => True, -- Loop_Parameter_Specification (Node4)
9743 5 => False), -- unused
9744
9745 N_Loop_Parameter_Specification =>
9746 (1 => True, -- Defining_Identifier (Node1)
9747 2 => False, -- unused
9748 3 => False, -- unused
9749 4 => True, -- Discrete_Subtype_Definition (Node4)
9750 5 => False), -- unused
9751
9752 N_Block_Statement =>
9753 (1 => True, -- Identifier (Node1)
9754 2 => True, -- Declarations (List2)
9755 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9756 4 => True, -- Handled_Statement_Sequence (Node4)
9757 5 => False), -- unused
9758
9759 N_Exit_Statement =>
9760 (1 => True, -- Condition (Node1)
9761 2 => True, -- Name (Node2)
9762 3 => False, -- unused
9763 4 => False, -- unused
9764 5 => False), -- unused
9765
9766 N_Goto_Statement =>
9767 (1 => False, -- unused
9768 2 => True, -- Name (Node2)
9769 3 => False, -- unused
9770 4 => False, -- unused
9771 5 => False), -- unused
9772
9773 N_Subprogram_Declaration =>
9774 (1 => True, -- Specification (Node1)
9775 2 => False, -- unused
9776 3 => False, -- Body_To_Inline (Node3-Sem)
9777 4 => False, -- Parent_Spec (Node4-Sem)
9778 5 => False), -- Corresponding_Body (Node5-Sem)
9779
9780 N_Abstract_Subprogram_Declaration =>
9781 (1 => True, -- Specification (Node1)
9782 2 => False, -- unused
9783 3 => False, -- unused
9784 4 => False, -- unused
9785 5 => False), -- unused
9786
9787 N_Function_Specification =>
9788 (1 => True, -- Defining_Unit_Name (Node1)
9789 2 => False, -- Elaboration_Boolean (Node2-Sem)
9790 3 => True, -- Parameter_Specifications (List3)
9791 4 => True, -- Result_Definition (Node4)
9792 5 => False), -- Generic_Parent (Node5-Sem)
9793
9794 N_Procedure_Specification =>
9795 (1 => True, -- Defining_Unit_Name (Node1)
9796 2 => False, -- Elaboration_Boolean (Node2-Sem)
9797 3 => True, -- Parameter_Specifications (List3)
9798 4 => False, -- unused
9799 5 => False), -- Generic_Parent (Node5-Sem)
9800
9801 N_Designator =>
9802 (1 => True, -- Identifier (Node1)
9803 2 => True, -- Name (Node2)
9804 3 => False, -- unused
9805 4 => False, -- unused
9806 5 => False), -- unused
9807
9808 N_Defining_Program_Unit_Name =>
9809 (1 => True, -- Defining_Identifier (Node1)
9810 2 => True, -- Name (Node2)
9811 3 => False, -- unused
9812 4 => False, -- unused
9813 5 => False), -- unused
9814
9815 N_Operator_Symbol =>
9816 (1 => True, -- Chars (Name1)
9817 2 => False, -- unused
9818 3 => True, -- Strval (Str3)
9819 4 => False, -- Entity (Node4-Sem)
9820 5 => False), -- Etype (Node5-Sem)
9821
9822 N_Defining_Operator_Symbol =>
9823 (1 => True, -- Chars (Name1)
9824 2 => False, -- Next_Entity (Node2-Sem)
9825 3 => False, -- Scope (Node3-Sem)
9826 4 => False, -- unused
9827 5 => False), -- Etype (Node5-Sem)
9828
9829 N_Parameter_Specification =>
9830 (1 => True, -- Defining_Identifier (Node1)
9831 2 => True, -- Parameter_Type (Node2)
9832 3 => True, -- Expression (Node3)
9833 4 => False, -- unused
9834 5 => False), -- Default_Expression (Node5-Sem)
9835
9836 N_Subprogram_Body =>
9837 (1 => True, -- Specification (Node1)
9838 2 => True, -- Declarations (List2)
9839 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9840 4 => True, -- Handled_Statement_Sequence (Node4)
9841 5 => False), -- Corresponding_Spec (Node5-Sem)
9842
9843 N_Procedure_Call_Statement =>
9844 (1 => False, -- Controlling_Argument (Node1-Sem)
9845 2 => True, -- Name (Node2)
9846 3 => True, -- Parameter_Associations (List3)
9847 4 => False, -- First_Named_Actual (Node4-Sem)
9848 5 => False), -- Etype (Node5-Sem)
9849
9850 N_Function_Call =>
9851 (1 => False, -- Controlling_Argument (Node1-Sem)
9852 2 => True, -- Name (Node2)
9853 3 => True, -- Parameter_Associations (List3)
9854 4 => False, -- First_Named_Actual (Node4-Sem)
9855 5 => False), -- Etype (Node5-Sem)
9856
9857 N_Parameter_Association =>
9858 (1 => False, -- unused
9859 2 => True, -- Selector_Name (Node2)
9860 3 => True, -- Explicit_Actual_Parameter (Node3)
9861 4 => False, -- Next_Named_Actual (Node4-Sem)
9862 5 => False), -- unused
9863
9864 N_Return_Statement =>
9865 (1 => False, -- Storage_Pool (Node1-Sem)
9866 2 => False, -- Procedure_To_Call (Node2-Sem)
9867 3 => True, -- Expression (Node3)
9868 4 => False, -- unused
9869 5 => False), -- Return_Statement_Entity (Node5-Sem)
9870
9871 N_Extended_Return_Statement =>
9872 (1 => False, -- Storage_Pool (Node1-Sem)
9873 2 => False, -- Procedure_To_Call (Node2-Sem)
9874 3 => True, -- Return_Object_Declarations (List3)
9875 4 => True, -- Handled_Statement_Sequence (Node4)
9876 5 => False), -- Return_Statement_Entity (Node5-Sem)
9877
9878 N_Package_Declaration =>
9879 (1 => True, -- Specification (Node1)
9880 2 => False, -- unused
9881 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9882 4 => False, -- Parent_Spec (Node4-Sem)
9883 5 => False), -- Corresponding_Body (Node5-Sem)
9884
9885 N_Package_Specification =>
9886 (1 => True, -- Defining_Unit_Name (Node1)
9887 2 => True, -- Visible_Declarations (List2)
9888 3 => True, -- Private_Declarations (List3)
9889 4 => True, -- End_Label (Node4)
9890 5 => False), -- Generic_Parent (Node5-Sem)
9891
9892 N_Package_Body =>
9893 (1 => True, -- Defining_Unit_Name (Node1)
9894 2 => True, -- Declarations (List2)
9895 3 => False, -- unused
9896 4 => True, -- Handled_Statement_Sequence (Node4)
9897 5 => False), -- Corresponding_Spec (Node5-Sem)
9898
9899 N_Private_Type_Declaration =>
9900 (1 => True, -- Defining_Identifier (Node1)
9901 2 => False, -- unused
9902 3 => False, -- unused
9903 4 => True, -- Discriminant_Specifications (List4)
9904 5 => False), -- unused
9905
9906 N_Private_Extension_Declaration =>
9907 (1 => True, -- Defining_Identifier (Node1)
9908 2 => True, -- Interface_List (List2)
9909 3 => False, -- unused
9910 4 => True, -- Discriminant_Specifications (List4)
9911 5 => True), -- Subtype_Indication (Node5)
9912
9913 N_Use_Package_Clause =>
9914 (1 => False, -- unused
9915 2 => True, -- Names (List2)
9916 3 => False, -- Next_Use_Clause (Node3-Sem)
9917 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
9918 5 => False), -- unused
9919
9920 N_Use_Type_Clause =>
9921 (1 => False, -- unused
9922 2 => True, -- Subtype_Marks (List2)
9923 3 => False, -- Next_Use_Clause (Node3-Sem)
9924 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
9925 5 => False), -- unused
9926
9927 N_Object_Renaming_Declaration =>
9928 (1 => True, -- Defining_Identifier (Node1)
9929 2 => True, -- Name (Node2)
9930 3 => True, -- Access_Definition (Node3)
9931 4 => True, -- Subtype_Mark (Node4)
9932 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
9933
9934 N_Exception_Renaming_Declaration =>
9935 (1 => True, -- Defining_Identifier (Node1)
9936 2 => True, -- Name (Node2)
9937 3 => False, -- unused
9938 4 => False, -- unused
9939 5 => False), -- unused
9940
9941 N_Package_Renaming_Declaration =>
9942 (1 => True, -- Defining_Unit_Name (Node1)
9943 2 => True, -- Name (Node2)
9944 3 => False, -- unused
9945 4 => False, -- Parent_Spec (Node4-Sem)
9946 5 => False), -- unused
9947
9948 N_Subprogram_Renaming_Declaration =>
9949 (1 => True, -- Specification (Node1)
9950 2 => True, -- Name (Node2)
9951 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
9952 4 => False, -- Parent_Spec (Node4-Sem)
9953 5 => False), -- Corresponding_Spec (Node5-Sem)
9954
9955 N_Generic_Package_Renaming_Declaration =>
9956 (1 => True, -- Defining_Unit_Name (Node1)
9957 2 => True, -- Name (Node2)
9958 3 => False, -- unused
9959 4 => False, -- Parent_Spec (Node4-Sem)
9960 5 => False), -- unused
9961
9962 N_Generic_Procedure_Renaming_Declaration =>
9963 (1 => True, -- Defining_Unit_Name (Node1)
9964 2 => True, -- Name (Node2)
9965 3 => False, -- unused
9966 4 => False, -- Parent_Spec (Node4-Sem)
9967 5 => False), -- unused
9968
9969 N_Generic_Function_Renaming_Declaration =>
9970 (1 => True, -- Defining_Unit_Name (Node1)
9971 2 => True, -- Name (Node2)
9972 3 => False, -- unused
9973 4 => False, -- Parent_Spec (Node4-Sem)
9974 5 => False), -- unused
9975
9976 N_Task_Type_Declaration =>
9977 (1 => True, -- Defining_Identifier (Node1)
9978 2 => True, -- Interface_List (List2)
9979 3 => True, -- Task_Definition (Node3)
9980 4 => True, -- Discriminant_Specifications (List4)
9981 5 => False), -- Corresponding_Body (Node5-Sem)
9982
9983 N_Single_Task_Declaration =>
9984 (1 => True, -- Defining_Identifier (Node1)
9985 2 => True, -- Interface_List (List2)
9986 3 => True, -- Task_Definition (Node3)
9987 4 => False, -- unused
9988 5 => False), -- unused
9989
9990 N_Task_Definition =>
9991 (1 => False, -- unused
9992 2 => True, -- Visible_Declarations (List2)
9993 3 => True, -- Private_Declarations (List3)
9994 4 => True, -- End_Label (Node4)
9995 5 => False), -- unused
9996
9997 N_Task_Body =>
9998 (1 => True, -- Defining_Identifier (Node1)
9999 2 => True, -- Declarations (List2)
10000 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10001 4 => True, -- Handled_Statement_Sequence (Node4)
10002 5 => False), -- Corresponding_Spec (Node5-Sem)
10003
10004 N_Protected_Type_Declaration =>
10005 (1 => True, -- Defining_Identifier (Node1)
10006 2 => True, -- Interface_List (List2)
10007 3 => True, -- Protected_Definition (Node3)
10008 4 => True, -- Discriminant_Specifications (List4)
10009 5 => False), -- Corresponding_Body (Node5-Sem)
10010
10011 N_Single_Protected_Declaration =>
10012 (1 => True, -- Defining_Identifier (Node1)
10013 2 => True, -- Interface_List (List2)
10014 3 => True, -- Protected_Definition (Node3)
10015 4 => False, -- unused
10016 5 => False), -- unused
10017
10018 N_Protected_Definition =>
10019 (1 => False, -- unused
10020 2 => True, -- Visible_Declarations (List2)
10021 3 => True, -- Private_Declarations (List3)
10022 4 => True, -- End_Label (Node4)
10023 5 => False), -- unused
10024
10025 N_Protected_Body =>
10026 (1 => True, -- Defining_Identifier (Node1)
10027 2 => True, -- Declarations (List2)
10028 3 => False, -- unused
10029 4 => True, -- End_Label (Node4)
10030 5 => False), -- Corresponding_Spec (Node5-Sem)
10031
10032 N_Entry_Declaration =>
10033 (1 => True, -- Defining_Identifier (Node1)
10034 2 => False, -- unused
10035 3 => True, -- Parameter_Specifications (List3)
10036 4 => True, -- Discrete_Subtype_Definition (Node4)
10037 5 => False), -- Corresponding_Body (Node5-Sem)
10038
10039 N_Accept_Statement =>
10040 (1 => True, -- Entry_Direct_Name (Node1)
10041 2 => True, -- Declarations (List2)
10042 3 => True, -- Parameter_Specifications (List3)
10043 4 => True, -- Handled_Statement_Sequence (Node4)
10044 5 => True), -- Entry_Index (Node5)
10045
10046 N_Entry_Body =>
10047 (1 => True, -- Defining_Identifier (Node1)
10048 2 => True, -- Declarations (List2)
10049 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10050 4 => True, -- Handled_Statement_Sequence (Node4)
10051 5 => True), -- Entry_Body_Formal_Part (Node5)
10052
10053 N_Entry_Body_Formal_Part =>
10054 (1 => True, -- Condition (Node1)
10055 2 => False, -- unused
10056 3 => True, -- Parameter_Specifications (List3)
10057 4 => True, -- Entry_Index_Specification (Node4)
10058 5 => False), -- unused
10059
10060 N_Entry_Index_Specification =>
10061 (1 => True, -- Defining_Identifier (Node1)
10062 2 => False, -- unused
10063 3 => False, -- unused
10064 4 => True, -- Discrete_Subtype_Definition (Node4)
10065 5 => False), -- unused
10066
10067 N_Entry_Call_Statement =>
10068 (1 => False, -- unused
10069 2 => True, -- Name (Node2)
10070 3 => True, -- Parameter_Associations (List3)
10071 4 => False, -- First_Named_Actual (Node4-Sem)
10072 5 => False), -- unused
10073
10074 N_Requeue_Statement =>
10075 (1 => False, -- unused
10076 2 => True, -- Name (Node2)
10077 3 => False, -- unused
10078 4 => False, -- unused
10079 5 => False), -- unused
10080
10081 N_Delay_Until_Statement =>
10082 (1 => False, -- unused
10083 2 => False, -- unused
10084 3 => True, -- Expression (Node3)
10085 4 => False, -- unused
10086 5 => False), -- unused
10087
10088 N_Delay_Relative_Statement =>
10089 (1 => False, -- unused
10090 2 => False, -- unused
10091 3 => True, -- Expression (Node3)
10092 4 => False, -- unused
10093 5 => False), -- unused
10094
10095 N_Selective_Accept =>
10096 (1 => True, -- Select_Alternatives (List1)
10097 2 => False, -- unused
10098 3 => False, -- unused
10099 4 => True, -- Else_Statements (List4)
10100 5 => False), -- unused
10101
10102 N_Accept_Alternative =>
10103 (1 => True, -- Condition (Node1)
10104 2 => True, -- Accept_Statement (Node2)
10105 3 => True, -- Statements (List3)
10106 4 => True, -- Pragmas_Before (List4)
10107 5 => False), -- Accept_Handler_Records (List5-Sem)
10108
10109 N_Delay_Alternative =>
10110 (1 => True, -- Condition (Node1)
10111 2 => True, -- Delay_Statement (Node2)
10112 3 => True, -- Statements (List3)
10113 4 => True, -- Pragmas_Before (List4)
10114 5 => False), -- unused
10115
10116 N_Terminate_Alternative =>
10117 (1 => True, -- Condition (Node1)
10118 2 => False, -- unused
10119 3 => False, -- unused
10120 4 => True, -- Pragmas_Before (List4)
10121 5 => True), -- Pragmas_After (List5)
10122
10123 N_Timed_Entry_Call =>
10124 (1 => True, -- Entry_Call_Alternative (Node1)
10125 2 => False, -- unused
10126 3 => False, -- unused
10127 4 => True, -- Delay_Alternative (Node4)
10128 5 => False), -- unused
10129
10130 N_Entry_Call_Alternative =>
10131 (1 => True, -- Entry_Call_Statement (Node1)
10132 2 => False, -- unused
10133 3 => True, -- Statements (List3)
10134 4 => True, -- Pragmas_Before (List4)
10135 5 => False), -- unused
10136
10137 N_Conditional_Entry_Call =>
10138 (1 => True, -- Entry_Call_Alternative (Node1)
10139 2 => False, -- unused
10140 3 => False, -- unused
10141 4 => True, -- Else_Statements (List4)
10142 5 => False), -- unused
10143
10144 N_Asynchronous_Select =>
10145 (1 => True, -- Triggering_Alternative (Node1)
10146 2 => True, -- Abortable_Part (Node2)
10147 3 => False, -- unused
10148 4 => False, -- unused
10149 5 => False), -- unused
10150
10151 N_Triggering_Alternative =>
10152 (1 => True, -- Triggering_Statement (Node1)
10153 2 => False, -- unused
10154 3 => True, -- Statements (List3)
10155 4 => True, -- Pragmas_Before (List4)
10156 5 => False), -- unused
10157
10158 N_Abortable_Part =>
10159 (1 => False, -- unused
10160 2 => False, -- unused
10161 3 => True, -- Statements (List3)
10162 4 => False, -- unused
10163 5 => False), -- unused
10164
10165 N_Abort_Statement =>
10166 (1 => False, -- unused
10167 2 => True, -- Names (List2)
10168 3 => False, -- unused
10169 4 => False, -- unused
10170 5 => False), -- unused
10171
10172 N_Compilation_Unit =>
10173 (1 => True, -- Context_Items (List1)
10174 2 => True, -- Unit (Node2)
10175 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
10176 4 => False, -- Library_Unit (Node4-Sem)
10177 5 => True), -- Aux_Decls_Node (Node5)
10178
10179 N_Compilation_Unit_Aux =>
10180 (1 => True, -- Actions (List1)
10181 2 => True, -- Declarations (List2)
10182 3 => False, -- unused
10183 4 => True, -- Config_Pragmas (List4)
10184 5 => True), -- Pragmas_After (List5)
10185
10186 N_With_Clause =>
10187 (1 => False, -- unused
10188 2 => True, -- Name (Node2)
10189 3 => False, -- unused
10190 4 => False, -- Library_Unit (Node4-Sem)
10191 5 => False), -- Corresponding_Spec (Node5-Sem)
10192
10193 N_Subprogram_Body_Stub =>
10194 (1 => True, -- Specification (Node1)
10195 2 => False, -- unused
10196 3 => False, -- unused
10197 4 => False, -- Library_Unit (Node4-Sem)
10198 5 => False), -- Corresponding_Body (Node5-Sem)
10199
10200 N_Package_Body_Stub =>
10201 (1 => True, -- Defining_Identifier (Node1)
10202 2 => False, -- unused
10203 3 => False, -- unused
10204 4 => False, -- Library_Unit (Node4-Sem)
10205 5 => False), -- Corresponding_Body (Node5-Sem)
10206
10207 N_Task_Body_Stub =>
10208 (1 => True, -- Defining_Identifier (Node1)
10209 2 => False, -- unused
10210 3 => False, -- unused
10211 4 => False, -- Library_Unit (Node4-Sem)
10212 5 => False), -- Corresponding_Body (Node5-Sem)
10213
10214 N_Protected_Body_Stub =>
10215 (1 => True, -- Defining_Identifier (Node1)
10216 2 => False, -- unused
10217 3 => False, -- unused
10218 4 => False, -- Library_Unit (Node4-Sem)
10219 5 => False), -- Corresponding_Body (Node5-Sem)
10220
10221 N_Subunit =>
10222 (1 => True, -- Proper_Body (Node1)
10223 2 => True, -- Name (Node2)
10224 3 => False, -- Corresponding_Stub (Node3-Sem)
10225 4 => False, -- unused
10226 5 => False), -- unused
10227
10228 N_Exception_Declaration =>
10229 (1 => True, -- Defining_Identifier (Node1)
10230 2 => False, -- unused
10231 3 => False, -- Expression (Node3-Sem)
10232 4 => False, -- unused
10233 5 => False), -- unused
10234
10235 N_Handled_Sequence_Of_Statements =>
10236 (1 => True, -- At_End_Proc (Node1)
10237 2 => False, -- First_Real_Statement (Node2-Sem)
10238 3 => True, -- Statements (List3)
10239 4 => True, -- End_Label (Node4)
10240 5 => True), -- Exception_Handlers (List5)
10241
10242 N_Exception_Handler =>
10243 (1 => False, -- Local_Raise_Statements (Elist1)
10244 2 => True, -- Choice_Parameter (Node2)
10245 3 => True, -- Statements (List3)
10246 4 => True, -- Exception_Choices (List4)
10247 5 => False), -- Exception_Label (Node5)
10248
10249 N_Raise_Statement =>
10250 (1 => False, -- unused
10251 2 => True, -- Name (Node2)
10252 3 => True, -- Expression (Node3)
10253 4 => False, -- unused
10254 5 => False), -- unused
10255
10256 N_Generic_Subprogram_Declaration =>
10257 (1 => True, -- Specification (Node1)
10258 2 => True, -- Generic_Formal_Declarations (List2)
10259 3 => False, -- unused
10260 4 => False, -- Parent_Spec (Node4-Sem)
10261 5 => False), -- Corresponding_Body (Node5-Sem)
10262
10263 N_Generic_Package_Declaration =>
10264 (1 => True, -- Specification (Node1)
10265 2 => True, -- Generic_Formal_Declarations (List2)
10266 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10267 4 => False, -- Parent_Spec (Node4-Sem)
10268 5 => False), -- Corresponding_Body (Node5-Sem)
10269
10270 N_Package_Instantiation =>
10271 (1 => True, -- Defining_Unit_Name (Node1)
10272 2 => True, -- Name (Node2)
10273 3 => True, -- Generic_Associations (List3)
10274 4 => False, -- Parent_Spec (Node4-Sem)
10275 5 => False), -- Instance_Spec (Node5-Sem)
10276
10277 N_Procedure_Instantiation =>
10278 (1 => True, -- Defining_Unit_Name (Node1)
10279 2 => True, -- Name (Node2)
10280 3 => True, -- Generic_Associations (List3)
10281 4 => False, -- Parent_Spec (Node4-Sem)
10282 5 => False), -- Instance_Spec (Node5-Sem)
10283
10284 N_Function_Instantiation =>
10285 (1 => True, -- Defining_Unit_Name (Node1)
10286 2 => True, -- Name (Node2)
10287 3 => True, -- Generic_Associations (List3)
10288 4 => False, -- Parent_Spec (Node4-Sem)
10289 5 => False), -- Instance_Spec (Node5-Sem)
10290
10291 N_Generic_Association =>
10292 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
10293 2 => True, -- Selector_Name (Node2)
10294 3 => False, -- unused
10295 4 => False, -- unused
10296 5 => False), -- unused
10297
10298 N_Formal_Object_Declaration =>
10299 (1 => True, -- Defining_Identifier (Node1)
10300 2 => False, -- unused
10301 3 => True, -- Access_Definition (Node3)
10302 4 => True, -- Subtype_Mark (Node4)
10303 5 => True), -- Default_Expression (Node5)
10304
10305 N_Formal_Type_Declaration =>
10306 (1 => True, -- Defining_Identifier (Node1)
10307 2 => False, -- unused
10308 3 => True, -- Formal_Type_Definition (Node3)
10309 4 => True, -- Discriminant_Specifications (List4)
10310 5 => False), -- unused
10311
10312 N_Formal_Private_Type_Definition =>
10313 (1 => False, -- unused
10314 2 => False, -- unused
10315 3 => False, -- unused
10316 4 => False, -- unused
10317 5 => False), -- unused
10318
10319 N_Formal_Derived_Type_Definition =>
10320 (1 => False, -- unused
10321 2 => True, -- Interface_List (List2)
10322 3 => False, -- unused
10323 4 => True, -- Subtype_Mark (Node4)
10324 5 => False), -- unused
10325
10326 N_Formal_Discrete_Type_Definition =>
10327 (1 => False, -- unused
10328 2 => False, -- unused
10329 3 => False, -- unused
10330 4 => False, -- unused
10331 5 => False), -- unused
10332
10333 N_Formal_Signed_Integer_Type_Definition =>
10334 (1 => False, -- unused
10335 2 => False, -- unused
10336 3 => False, -- unused
10337 4 => False, -- unused
10338 5 => False), -- unused
10339
10340 N_Formal_Modular_Type_Definition =>
10341 (1 => False, -- unused
10342 2 => False, -- unused
10343 3 => False, -- unused
10344 4 => False, -- unused
10345 5 => False), -- unused
10346
10347 N_Formal_Floating_Point_Definition =>
10348 (1 => False, -- unused
10349 2 => False, -- unused
10350 3 => False, -- unused
10351 4 => False, -- unused
10352 5 => False), -- unused
10353
10354 N_Formal_Ordinary_Fixed_Point_Definition =>
10355 (1 => False, -- unused
10356 2 => False, -- unused
10357 3 => False, -- unused
10358 4 => False, -- unused
10359 5 => False), -- unused
10360
10361 N_Formal_Decimal_Fixed_Point_Definition =>
10362 (1 => False, -- unused
10363 2 => False, -- unused
10364 3 => False, -- unused
10365 4 => False, -- unused
10366 5 => False), -- unused
10367
10368 N_Formal_Concrete_Subprogram_Declaration =>
10369 (1 => True, -- Specification (Node1)
10370 2 => True, -- Default_Name (Node2)
10371 3 => False, -- unused
10372 4 => False, -- unused
10373 5 => False), -- unused
10374
10375 N_Formal_Abstract_Subprogram_Declaration =>
10376 (1 => True, -- Specification (Node1)
10377 2 => True, -- Default_Name (Node2)
10378 3 => False, -- unused
10379 4 => False, -- unused
10380 5 => False), -- unused
10381
10382 N_Formal_Package_Declaration =>
10383 (1 => True, -- Defining_Identifier (Node1)
10384 2 => True, -- Name (Node2)
10385 3 => True, -- Generic_Associations (List3)
10386 4 => False, -- unused
10387 5 => False), -- Instance_Spec (Node5-Sem)
10388
10389 N_Attribute_Definition_Clause =>
10390 (1 => True, -- Chars (Name1)
10391 2 => True, -- Name (Node2)
10392 3 => True, -- Expression (Node3)
10393 4 => False, -- unused
10394 5 => False), -- Next_Rep_Item (Node5-Sem)
10395
10396 N_Enumeration_Representation_Clause =>
10397 (1 => True, -- Identifier (Node1)
10398 2 => False, -- unused
10399 3 => True, -- Array_Aggregate (Node3)
10400 4 => False, -- unused
10401 5 => False), -- Next_Rep_Item (Node5-Sem)
10402
10403 N_Record_Representation_Clause =>
10404 (1 => True, -- Identifier (Node1)
10405 2 => True, -- Mod_Clause (Node2)
10406 3 => True, -- Component_Clauses (List3)
10407 4 => False, -- unused
10408 5 => False), -- Next_Rep_Item (Node5-Sem)
10409
10410 N_Component_Clause =>
10411 (1 => True, -- Component_Name (Node1)
10412 2 => True, -- Position (Node2)
10413 3 => True, -- First_Bit (Node3)
10414 4 => True, -- Last_Bit (Node4)
10415 5 => False), -- unused
10416
10417 N_Code_Statement =>
10418 (1 => False, -- unused
10419 2 => False, -- unused
10420 3 => True, -- Expression (Node3)
10421 4 => False, -- unused
10422 5 => False), -- unused
10423
10424 N_Op_Rotate_Left =>
10425 (1 => True, -- Chars (Name1)
10426 2 => True, -- Left_Opnd (Node2)
10427 3 => True, -- Right_Opnd (Node3)
10428 4 => False, -- Entity (Node4-Sem)
10429 5 => False), -- Etype (Node5-Sem)
10430
10431 N_Op_Rotate_Right =>
10432 (1 => True, -- Chars (Name1)
10433 2 => True, -- Left_Opnd (Node2)
10434 3 => True, -- Right_Opnd (Node3)
10435 4 => False, -- Entity (Node4-Sem)
10436 5 => False), -- Etype (Node5-Sem)
10437
10438 N_Op_Shift_Left =>
10439 (1 => True, -- Chars (Name1)
10440 2 => True, -- Left_Opnd (Node2)
10441 3 => True, -- Right_Opnd (Node3)
10442 4 => False, -- Entity (Node4-Sem)
10443 5 => False), -- Etype (Node5-Sem)
10444
10445 N_Op_Shift_Right_Arithmetic =>
10446 (1 => True, -- Chars (Name1)
10447 2 => True, -- Left_Opnd (Node2)
10448 3 => True, -- Right_Opnd (Node3)
10449 4 => False, -- Entity (Node4-Sem)
10450 5 => False), -- Etype (Node5-Sem)
10451
10452 N_Op_Shift_Right =>
10453 (1 => True, -- Chars (Name1)
10454 2 => True, -- Left_Opnd (Node2)
10455 3 => True, -- Right_Opnd (Node3)
10456 4 => False, -- Entity (Node4-Sem)
10457 5 => False), -- Etype (Node5-Sem)
10458
10459 N_Delta_Constraint =>
10460 (1 => False, -- unused
10461 2 => False, -- unused
10462 3 => True, -- Delta_Expression (Node3)
10463 4 => True, -- Range_Constraint (Node4)
10464 5 => False), -- unused
10465
10466 N_At_Clause =>
10467 (1 => True, -- Identifier (Node1)
10468 2 => False, -- unused
10469 3 => True, -- Expression (Node3)
10470 4 => False, -- unused
10471 5 => False), -- unused
10472
10473 N_Mod_Clause =>
10474 (1 => False, -- unused
10475 2 => False, -- unused
10476 3 => True, -- Expression (Node3)
10477 4 => True, -- Pragmas_Before (List4)
10478 5 => False), -- unused
10479
10480 N_Conditional_Expression =>
10481 (1 => True, -- Expressions (List1)
10482 2 => False, -- Then_Actions (List2-Sem)
10483 3 => False, -- Else_Actions (List3-Sem)
10484 4 => False, -- unused
10485 5 => False), -- Etype (Node5-Sem)
10486
10487 N_Expanded_Name =>
10488 (1 => True, -- Chars (Name1)
10489 2 => True, -- Selector_Name (Node2)
10490 3 => True, -- Prefix (Node3)
10491 4 => False, -- Entity (Node4-Sem)
10492 5 => False), -- Etype (Node5-Sem)
10493
10494 N_Free_Statement =>
10495 (1 => False, -- Storage_Pool (Node1-Sem)
10496 2 => False, -- Procedure_To_Call (Node2-Sem)
10497 3 => True, -- Expression (Node3)
10498 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10499 5 => False), -- unused
10500
10501 N_Freeze_Entity =>
10502 (1 => True, -- Actions (List1)
10503 2 => False, -- Access_Types_To_Process (Elist2-Sem)
10504 3 => False, -- TSS_Elist (Elist3-Sem)
10505 4 => False, -- Entity (Node4-Sem)
10506 5 => False), -- First_Subtype_Link (Node5-Sem)
10507
10508 N_Implicit_Label_Declaration =>
10509 (1 => True, -- Defining_Identifier (Node1)
10510 2 => False, -- Label_Construct (Node2-Sem)
10511 3 => False, -- unused
10512 4 => False, -- unused
10513 5 => False), -- unused
10514
10515 N_Itype_Reference =>
10516 (1 => False, -- Itype (Node1-Sem)
10517 2 => False, -- unused
10518 3 => False, -- unused
10519 4 => False, -- unused
10520 5 => False), -- unused
10521
10522 N_Raise_Constraint_Error =>
10523 (1 => True, -- Condition (Node1)
10524 2 => False, -- unused
10525 3 => True, -- Reason (Uint3)
10526 4 => False, -- unused
10527 5 => False), -- Etype (Node5-Sem)
10528
10529 N_Raise_Program_Error =>
10530 (1 => True, -- Condition (Node1)
10531 2 => False, -- unused
10532 3 => True, -- Reason (Uint3)
10533 4 => False, -- unused
10534 5 => False), -- Etype (Node5-Sem)
10535
10536 N_Raise_Storage_Error =>
10537 (1 => True, -- Condition (Node1)
10538 2 => False, -- unused
10539 3 => True, -- Reason (Uint3)
10540 4 => False, -- unused
10541 5 => False), -- Etype (Node5-Sem)
10542
10543 N_Push_Constraint_Error_Label =>
10544 (1 => False, -- unused
10545 2 => False, -- unused
10546 3 => False, -- unused
10547 4 => False, -- unused
10548 5 => False), -- unused
10549
10550 N_Push_Program_Error_Label =>
10551 (1 => False, -- Exception_Label
10552 2 => False, -- unused
10553 3 => False, -- unused
10554 4 => False, -- unused
10555 5 => False), -- Exception_Label
10556
10557 N_Push_Storage_Error_Label =>
10558 (1 => False, -- Exception_Label
10559 2 => False, -- unused
10560 3 => False, -- unused
10561 4 => False, -- unused
10562 5 => False), -- Exception_Label
10563
10564 N_Pop_Constraint_Error_Label =>
10565 (1 => False, -- unused
10566 2 => False, -- unused
10567 3 => False, -- unused
10568 4 => False, -- unused
10569 5 => False), -- unused
10570
10571 N_Pop_Program_Error_Label =>
10572 (1 => False, -- unused
10573 2 => False, -- unused
10574 3 => False, -- unused
10575 4 => False, -- unused
10576 5 => False), -- unused
10577
10578 N_Pop_Storage_Error_Label =>
10579 (1 => False, -- unused
10580 2 => False, -- unused
10581 3 => False, -- unused
10582 4 => False, -- unused
10583 5 => False), -- unused
10584
10585 N_Reference =>
10586 (1 => False, -- unused
10587 2 => False, -- unused
10588 3 => True, -- Prefix (Node3)
10589 4 => False, -- unused
10590 5 => False), -- Etype (Node5-Sem)
10591
10592 N_Subprogram_Info =>
10593 (1 => True, -- Identifier (Node1)
10594 2 => False, -- unused
10595 3 => False, -- unused
10596 4 => False, -- unused
10597 5 => False), -- Etype (Node5-Sem)
10598
10599 N_Unchecked_Expression =>
10600 (1 => False, -- unused
10601 2 => False, -- unused
10602 3 => True, -- Expression (Node3)
10603 4 => False, -- unused
10604 5 => False), -- Etype (Node5-Sem)
10605
10606 N_Unchecked_Type_Conversion =>
10607 (1 => False, -- unused
10608 2 => False, -- unused
10609 3 => True, -- Expression (Node3)
10610 4 => True, -- Subtype_Mark (Node4)
10611 5 => False), -- Etype (Node5-Sem)
10612
10613 N_Validate_Unchecked_Conversion =>
10614 (1 => False, -- Source_Type (Node1-Sem)
10615 2 => False, -- Target_Type (Node2-Sem)
10616 3 => False, -- unused
10617 4 => False, -- unused
10618 5 => False), -- unused
10619
10620 -- End of inserted output from makeisf program
10621
10622 -- Entries for Empty, Error and Unused. Even thought these have a Chars
10623 -- field for debugging purposes, they are not really syntactic fields, so
10624 -- we mark all fields as unused.
10625
10626 N_Empty =>
10627 (1 => False, -- unused
10628 2 => False, -- unused
10629 3 => False, -- unused
10630 4 => False, -- unused
10631 5 => False), -- unused
10632
10633 N_Error =>
10634 (1 => False, -- unused
10635 2 => False, -- unused
10636 3 => False, -- unused
10637 4 => False, -- unused
10638 5 => False), -- unused
10639
10640 N_Unused_At_Start =>
10641 (1 => False, -- unused
10642 2 => False, -- unused
10643 3 => False, -- unused
10644 4 => False, -- unused
10645 5 => False), -- unused
10646
10647 N_Unused_At_End =>
10648 (1 => False, -- unused
10649 2 => False, -- unused
10650 3 => False, -- unused
10651 4 => False, -- unused
10652 5 => False)); -- unused
10653
10654 --------------------
10655 -- Inline Pragmas --
10656 --------------------
10657
10658 pragma Inline (ABE_Is_Certain);
10659 pragma Inline (Abort_Present);
10660 pragma Inline (Abortable_Part);
10661 pragma Inline (Abstract_Present);
10662 pragma Inline (Accept_Handler_Records);
10663 pragma Inline (Accept_Statement);
10664 pragma Inline (Access_Definition);
10665 pragma Inline (Access_To_Subprogram_Definition);
10666 pragma Inline (Access_Types_To_Process);
10667 pragma Inline (Actions);
10668 pragma Inline (Activation_Chain_Entity);
10669 pragma Inline (Acts_As_Spec);
10670 pragma Inline (Actual_Designated_Subtype);
10671 pragma Inline (Aggregate_Bounds);
10672 pragma Inline (Aliased_Present);
10673 pragma Inline (All_Others);
10674 pragma Inline (All_Present);
10675 pragma Inline (Alternatives);
10676 pragma Inline (Ancestor_Part);
10677 pragma Inline (Array_Aggregate);
10678 pragma Inline (Assignment_OK);
10679 pragma Inline (Associated_Node);
10680 pragma Inline (At_End_Proc);
10681 pragma Inline (Attribute_Name);
10682 pragma Inline (Aux_Decls_Node);
10683 pragma Inline (Backwards_OK);
10684 pragma Inline (Bad_Is_Detected);
10685 pragma Inline (Body_To_Inline);
10686 pragma Inline (Body_Required);
10687 pragma Inline (By_Ref);
10688 pragma Inline (Box_Present);
10689 pragma Inline (Char_Literal_Value);
10690 pragma Inline (Chars);
10691 pragma Inline (Check_Address_Alignment);
10692 pragma Inline (Choice_Parameter);
10693 pragma Inline (Choices);
10694 pragma Inline (Coextensions);
10695 pragma Inline (Comes_From_Extended_Return_Statement);
10696 pragma Inline (Compile_Time_Known_Aggregate);
10697 pragma Inline (Component_Associations);
10698 pragma Inline (Component_Clauses);
10699 pragma Inline (Component_Definition);
10700 pragma Inline (Component_Items);
10701 pragma Inline (Component_List);
10702 pragma Inline (Component_Name);
10703 pragma Inline (Condition);
10704 pragma Inline (Condition_Actions);
10705 pragma Inline (Config_Pragmas);
10706 pragma Inline (Constant_Present);
10707 pragma Inline (Constraint);
10708 pragma Inline (Constraints);
10709 pragma Inline (Context_Installed);
10710 pragma Inline (Context_Items);
10711 pragma Inline (Controlling_Argument);
10712 pragma Inline (Conversion_OK);
10713 pragma Inline (Corresponding_Body);
10714 pragma Inline (Corresponding_Formal_Spec);
10715 pragma Inline (Corresponding_Generic_Association);
10716 pragma Inline (Corresponding_Integer_Value);
10717 pragma Inline (Corresponding_Spec);
10718 pragma Inline (Corresponding_Stub);
10719 pragma Inline (Dcheck_Function);
10720 pragma Inline (Debug_Statement);
10721 pragma Inline (Declarations);
10722 pragma Inline (Default_Expression);
10723 pragma Inline (Default_Name);
10724 pragma Inline (Defining_Identifier);
10725 pragma Inline (Defining_Unit_Name);
10726 pragma Inline (Delay_Alternative);
10727 pragma Inline (Delay_Statement);
10728 pragma Inline (Delta_Expression);
10729 pragma Inline (Digits_Expression);
10730 pragma Inline (Discr_Check_Funcs_Built);
10731 pragma Inline (Discrete_Choices);
10732 pragma Inline (Discrete_Range);
10733 pragma Inline (Discrete_Subtype_Definition);
10734 pragma Inline (Discrete_Subtype_Definitions);
10735 pragma Inline (Discriminant_Specifications);
10736 pragma Inline (Discriminant_Type);
10737 pragma Inline (Do_Accessibility_Check);
10738 pragma Inline (Do_Discriminant_Check);
10739 pragma Inline (Do_Length_Check);
10740 pragma Inline (Do_Division_Check);
10741 pragma Inline (Do_Overflow_Check);
10742 pragma Inline (Do_Range_Check);
10743 pragma Inline (Do_Storage_Check);
10744 pragma Inline (Do_Tag_Check);
10745 pragma Inline (Elaborate_Present);
10746 pragma Inline (Elaborate_All_Desirable);
10747 pragma Inline (Elaborate_All_Present);
10748 pragma Inline (Elaborate_Desirable);
10749 pragma Inline (Elaboration_Boolean);
10750 pragma Inline (Else_Actions);
10751 pragma Inline (Else_Statements);
10752 pragma Inline (Elsif_Parts);
10753 pragma Inline (Enclosing_Variant);
10754 pragma Inline (End_Label);
10755 pragma Inline (End_Span);
10756 pragma Inline (Entity);
10757 pragma Inline (Entity_Or_Associated_Node);
10758 pragma Inline (Entry_Body_Formal_Part);
10759 pragma Inline (Entry_Call_Alternative);
10760 pragma Inline (Entry_Call_Statement);
10761 pragma Inline (Entry_Direct_Name);
10762 pragma Inline (Entry_Index);
10763 pragma Inline (Entry_Index_Specification);
10764 pragma Inline (Etype);
10765 pragma Inline (Exception_Choices);
10766 pragma Inline (Exception_Handlers);
10767 pragma Inline (Exception_Junk);
10768 pragma Inline (Exception_Label);
10769 pragma Inline (Expansion_Delayed);
10770 pragma Inline (Explicit_Actual_Parameter);
10771 pragma Inline (Explicit_Generic_Actual_Parameter);
10772 pragma Inline (Expression);
10773 pragma Inline (Expressions);
10774 pragma Inline (First_Bit);
10775 pragma Inline (First_Inlined_Subprogram);
10776 pragma Inline (First_Name);
10777 pragma Inline (First_Named_Actual);
10778 pragma Inline (First_Real_Statement);
10779 pragma Inline (First_Subtype_Link);
10780 pragma Inline (Float_Truncate);
10781 pragma Inline (Formal_Type_Definition);
10782 pragma Inline (Forwards_OK);
10783 pragma Inline (From_At_Mod);
10784 pragma Inline (From_Default);
10785 pragma Inline (Generic_Associations);
10786 pragma Inline (Generic_Formal_Declarations);
10787 pragma Inline (Generic_Parent);
10788 pragma Inline (Generic_Parent_Type);
10789 pragma Inline (Handled_Statement_Sequence);
10790 pragma Inline (Handler_List_Entry);
10791 pragma Inline (Has_Created_Identifier);
10792 pragma Inline (Has_Dynamic_Length_Check);
10793 pragma Inline (Has_Dynamic_Range_Check);
10794 pragma Inline (Has_Init_Expression);
10795 pragma Inline (Has_Local_Raise);
10796 pragma Inline (Has_Self_Reference);
10797 pragma Inline (Has_No_Elaboration_Code);
10798 pragma Inline (Has_Priority_Pragma);
10799 pragma Inline (Has_Private_View);
10800 pragma Inline (Has_Storage_Size_Pragma);
10801 pragma Inline (Has_Task_Info_Pragma);
10802 pragma Inline (Has_Task_Name_Pragma);
10803 pragma Inline (Has_Wide_Character);
10804 pragma Inline (Hidden_By_Use_Clause);
10805 pragma Inline (High_Bound);
10806 pragma Inline (Identifier);
10807 pragma Inline (Implicit_With);
10808 pragma Inline (Interface_List);
10809 pragma Inline (Interface_Present);
10810 pragma Inline (Includes_Infinities);
10811 pragma Inline (In_Present);
10812 pragma Inline (Instance_Spec);
10813 pragma Inline (Intval);
10814 pragma Inline (Is_Asynchronous_Call_Block);
10815 pragma Inline (Is_Component_Left_Opnd);
10816 pragma Inline (Is_Component_Right_Opnd);
10817 pragma Inline (Is_Controlling_Actual);
10818 pragma Inline (Is_Dynamic_Coextension);
10819 pragma Inline (Is_Entry_Barrier_Function);
10820 pragma Inline (Is_In_Discriminant_Check);
10821 pragma Inline (Is_Machine_Number);
10822 pragma Inline (Is_Null_Loop);
10823 pragma Inline (Is_Overloaded);
10824 pragma Inline (Is_Power_Of_2_For_Shift);
10825 pragma Inline (Is_Protected_Subprogram_Body);
10826 pragma Inline (Is_Static_Coextension);
10827 pragma Inline (Is_Static_Expression);
10828 pragma Inline (Is_Subprogram_Descriptor);
10829 pragma Inline (Is_Task_Allocation_Block);
10830 pragma Inline (Is_Task_Master);
10831 pragma Inline (Iteration_Scheme);
10832 pragma Inline (Itype);
10833 pragma Inline (Kill_Range_Check);
10834 pragma Inline (Last_Bit);
10835 pragma Inline (Last_Name);
10836 pragma Inline (Library_Unit);
10837 pragma Inline (Label_Construct);
10838 pragma Inline (Left_Opnd);
10839 pragma Inline (Limited_View_Installed);
10840 pragma Inline (Limited_Present);
10841 pragma Inline (Literals);
10842 pragma Inline (Local_Raise_Not_OK);
10843 pragma Inline (Local_Raise_Statements);
10844 pragma Inline (Loop_Actions);
10845 pragma Inline (Loop_Parameter_Specification);
10846 pragma Inline (Low_Bound);
10847 pragma Inline (Mod_Clause);
10848 pragma Inline (More_Ids);
10849 pragma Inline (Must_Be_Byte_Aligned);
10850 pragma Inline (Must_Not_Freeze);
10851 pragma Inline (Must_Not_Override);
10852 pragma Inline (Must_Override);
10853 pragma Inline (Name);
10854 pragma Inline (Names);
10855 pragma Inline (Next_Entity);
10856 pragma Inline (Next_Named_Actual);
10857 pragma Inline (Next_Rep_Item);
10858 pragma Inline (Next_Use_Clause);
10859 pragma Inline (No_Ctrl_Actions);
10860 pragma Inline (No_Elaboration_Check);
10861 pragma Inline (No_Entities_Ref_In_Spec);
10862 pragma Inline (No_Initialization);
10863 pragma Inline (No_Truncation);
10864 pragma Inline (Null_Present);
10865 pragma Inline (Null_Exclusion_Present);
10866 pragma Inline (Null_Record_Present);
10867 pragma Inline (Object_Definition);
10868 pragma Inline (Original_Discriminant);
10869 pragma Inline (Original_Entity);
10870 pragma Inline (Others_Discrete_Choices);
10871 pragma Inline (Out_Present);
10872 pragma Inline (Parameter_Associations);
10873 pragma Inline (Parameter_Specifications);
10874 pragma Inline (Parameter_List_Truncated);
10875 pragma Inline (Parameter_Type);
10876 pragma Inline (Parent_Spec);
10877 pragma Inline (Position);
10878 pragma Inline (Pragma_Argument_Associations);
10879 pragma Inline (Pragmas_After);
10880 pragma Inline (Pragmas_Before);
10881 pragma Inline (Prefix);
10882 pragma Inline (Present_Expr);
10883 pragma Inline (Prev_Ids);
10884 pragma Inline (Print_In_Hex);
10885 pragma Inline (Private_Declarations);
10886 pragma Inline (Private_Present);
10887 pragma Inline (Procedure_To_Call);
10888 pragma Inline (Proper_Body);
10889 pragma Inline (Protected_Definition);
10890 pragma Inline (Protected_Present);
10891 pragma Inline (Raises_Constraint_Error);
10892 pragma Inline (Range_Constraint);
10893 pragma Inline (Range_Expression);
10894 pragma Inline (Real_Range_Specification);
10895 pragma Inline (Realval);
10896 pragma Inline (Reason);
10897 pragma Inline (Record_Extension_Part);
10898 pragma Inline (Redundant_Use);
10899 pragma Inline (Renaming_Exception);
10900 pragma Inline (Result_Definition);
10901 pragma Inline (Return_Object_Declarations);
10902 pragma Inline (Return_Statement_Entity);
10903 pragma Inline (Reverse_Present);
10904 pragma Inline (Right_Opnd);
10905 pragma Inline (Rounded_Result);
10906 pragma Inline (Scope);
10907 pragma Inline (Select_Alternatives);
10908 pragma Inline (Selector_Name);
10909 pragma Inline (Selector_Names);
10910 pragma Inline (Shift_Count_OK);
10911 pragma Inline (Source_Type);
10912 pragma Inline (Specification);
10913 pragma Inline (Statements);
10914 pragma Inline (Static_Processing_OK);
10915 pragma Inline (Storage_Pool);
10916 pragma Inline (Strval);
10917 pragma Inline (Subtype_Indication);
10918 pragma Inline (Subtype_Mark);
10919 pragma Inline (Subtype_Marks);
10920 pragma Inline (Synchronized_Present);
10921 pragma Inline (Tagged_Present);
10922 pragma Inline (Target_Type);
10923 pragma Inline (Task_Definition);
10924 pragma Inline (Task_Present);
10925 pragma Inline (Then_Actions);
10926 pragma Inline (Then_Statements);
10927 pragma Inline (Triggering_Alternative);
10928 pragma Inline (Triggering_Statement);
10929 pragma Inline (Treat_Fixed_As_Integer);
10930 pragma Inline (TSS_Elist);
10931 pragma Inline (Type_Definition);
10932 pragma Inline (Unit);
10933 pragma Inline (Unknown_Discriminants_Present);
10934 pragma Inline (Unreferenced_In_Spec);
10935 pragma Inline (Variant_Part);
10936 pragma Inline (Variants);
10937 pragma Inline (Visible_Declarations);
10938 pragma Inline (Was_Originally_Stub);
10939 pragma Inline (Zero_Cost_Handling);
10940
10941 pragma Inline (Set_ABE_Is_Certain);
10942 pragma Inline (Set_Abort_Present);
10943 pragma Inline (Set_Abortable_Part);
10944 pragma Inline (Set_Abstract_Present);
10945 pragma Inline (Set_Accept_Handler_Records);
10946 pragma Inline (Set_Accept_Statement);
10947 pragma Inline (Set_Access_Definition);
10948 pragma Inline (Set_Access_To_Subprogram_Definition);
10949 pragma Inline (Set_Access_Types_To_Process);
10950 pragma Inline (Set_Actions);
10951 pragma Inline (Set_Activation_Chain_Entity);
10952 pragma Inline (Set_Acts_As_Spec);
10953 pragma Inline (Set_Actual_Designated_Subtype);
10954 pragma Inline (Set_Aggregate_Bounds);
10955 pragma Inline (Set_Aliased_Present);
10956 pragma Inline (Set_All_Others);
10957 pragma Inline (Set_All_Present);
10958 pragma Inline (Set_Alternatives);
10959 pragma Inline (Set_Ancestor_Part);
10960 pragma Inline (Set_Array_Aggregate);
10961 pragma Inline (Set_Assignment_OK);
10962 pragma Inline (Set_Associated_Node);
10963 pragma Inline (Set_At_End_Proc);
10964 pragma Inline (Set_Attribute_Name);
10965 pragma Inline (Set_Aux_Decls_Node);
10966 pragma Inline (Set_Backwards_OK);
10967 pragma Inline (Set_Bad_Is_Detected);
10968 pragma Inline (Set_Body_To_Inline);
10969 pragma Inline (Set_Body_Required);
10970 pragma Inline (Set_By_Ref);
10971 pragma Inline (Set_Box_Present);
10972 pragma Inline (Set_Char_Literal_Value);
10973 pragma Inline (Set_Chars);
10974 pragma Inline (Set_Check_Address_Alignment);
10975 pragma Inline (Set_Choice_Parameter);
10976 pragma Inline (Set_Choices);
10977 pragma Inline (Set_Coextensions);
10978 pragma Inline (Set_Comes_From_Extended_Return_Statement);
10979 pragma Inline (Set_Compile_Time_Known_Aggregate);
10980 pragma Inline (Set_Component_Associations);
10981 pragma Inline (Set_Component_Clauses);
10982 pragma Inline (Set_Component_Definition);
10983 pragma Inline (Set_Component_Items);
10984 pragma Inline (Set_Component_List);
10985 pragma Inline (Set_Component_Name);
10986 pragma Inline (Set_Condition);
10987 pragma Inline (Set_Condition_Actions);
10988 pragma Inline (Set_Config_Pragmas);
10989 pragma Inline (Set_Constant_Present);
10990 pragma Inline (Set_Constraint);
10991 pragma Inline (Set_Constraints);
10992 pragma Inline (Set_Context_Installed);
10993 pragma Inline (Set_Context_Items);
10994 pragma Inline (Set_Controlling_Argument);
10995 pragma Inline (Set_Conversion_OK);
10996 pragma Inline (Set_Corresponding_Body);
10997 pragma Inline (Set_Corresponding_Formal_Spec);
10998 pragma Inline (Set_Corresponding_Generic_Association);
10999 pragma Inline (Set_Corresponding_Integer_Value);
11000 pragma Inline (Set_Corresponding_Spec);
11001 pragma Inline (Set_Corresponding_Stub);
11002 pragma Inline (Set_Dcheck_Function);
11003 pragma Inline (Set_Debug_Statement);
11004 pragma Inline (Set_Declarations);
11005 pragma Inline (Set_Default_Expression);
11006 pragma Inline (Set_Default_Name);
11007 pragma Inline (Set_Defining_Identifier);
11008 pragma Inline (Set_Defining_Unit_Name);
11009 pragma Inline (Set_Delay_Alternative);
11010 pragma Inline (Set_Delay_Statement);
11011 pragma Inline (Set_Delta_Expression);
11012 pragma Inline (Set_Digits_Expression);
11013 pragma Inline (Set_Discr_Check_Funcs_Built);
11014 pragma Inline (Set_Discrete_Choices);
11015 pragma Inline (Set_Discrete_Range);
11016 pragma Inline (Set_Discrete_Subtype_Definition);
11017 pragma Inline (Set_Discrete_Subtype_Definitions);
11018 pragma Inline (Set_Discriminant_Specifications);
11019 pragma Inline (Set_Discriminant_Type);
11020 pragma Inline (Set_Do_Accessibility_Check);
11021 pragma Inline (Set_Do_Discriminant_Check);
11022 pragma Inline (Set_Do_Length_Check);
11023 pragma Inline (Set_Do_Division_Check);
11024 pragma Inline (Set_Do_Overflow_Check);
11025 pragma Inline (Set_Do_Range_Check);
11026 pragma Inline (Set_Do_Storage_Check);
11027 pragma Inline (Set_Do_Tag_Check);
11028 pragma Inline (Set_Elaborate_Present);
11029 pragma Inline (Set_Elaborate_All_Desirable);
11030 pragma Inline (Set_Elaborate_All_Present);
11031 pragma Inline (Set_Elaborate_Desirable);
11032 pragma Inline (Set_Elaboration_Boolean);
11033 pragma Inline (Set_Else_Actions);
11034 pragma Inline (Set_Else_Statements);
11035 pragma Inline (Set_Elsif_Parts);
11036 pragma Inline (Set_Enclosing_Variant);
11037 pragma Inline (Set_End_Label);
11038 pragma Inline (Set_End_Span);
11039 pragma Inline (Set_Entity);
11040 pragma Inline (Set_Entry_Body_Formal_Part);
11041 pragma Inline (Set_Entry_Call_Alternative);
11042 pragma Inline (Set_Entry_Call_Statement);
11043 pragma Inline (Set_Entry_Direct_Name);
11044 pragma Inline (Set_Entry_Index);
11045 pragma Inline (Set_Entry_Index_Specification);
11046 pragma Inline (Set_Etype);
11047 pragma Inline (Set_Exception_Choices);
11048 pragma Inline (Set_Exception_Handlers);
11049 pragma Inline (Set_Exception_Junk);
11050 pragma Inline (Set_Exception_Label);
11051 pragma Inline (Set_Expansion_Delayed);
11052 pragma Inline (Set_Explicit_Actual_Parameter);
11053 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
11054 pragma Inline (Set_Expression);
11055 pragma Inline (Set_Expressions);
11056 pragma Inline (Set_First_Bit);
11057 pragma Inline (Set_First_Inlined_Subprogram);
11058 pragma Inline (Set_First_Name);
11059 pragma Inline (Set_First_Named_Actual);
11060 pragma Inline (Set_First_Real_Statement);
11061 pragma Inline (Set_First_Subtype_Link);
11062 pragma Inline (Set_Float_Truncate);
11063 pragma Inline (Set_Formal_Type_Definition);
11064 pragma Inline (Set_Forwards_OK);
11065 pragma Inline (Set_From_At_Mod);
11066 pragma Inline (Set_From_Default);
11067 pragma Inline (Set_Generic_Associations);
11068 pragma Inline (Set_Generic_Formal_Declarations);
11069 pragma Inline (Set_Generic_Parent);
11070 pragma Inline (Set_Generic_Parent_Type);
11071 pragma Inline (Set_Handled_Statement_Sequence);
11072 pragma Inline (Set_Handler_List_Entry);
11073 pragma Inline (Set_Has_Created_Identifier);
11074 pragma Inline (Set_Has_Dynamic_Length_Check);
11075 pragma Inline (Set_Has_Init_Expression);
11076 pragma Inline (Set_Has_Local_Raise);
11077 pragma Inline (Set_Has_Dynamic_Range_Check);
11078 pragma Inline (Set_Has_No_Elaboration_Code);
11079 pragma Inline (Set_Has_Priority_Pragma);
11080 pragma Inline (Set_Has_Private_View);
11081 pragma Inline (Set_Has_Storage_Size_Pragma);
11082 pragma Inline (Set_Has_Task_Info_Pragma);
11083 pragma Inline (Set_Has_Task_Name_Pragma);
11084 pragma Inline (Set_Has_Wide_Character);
11085 pragma Inline (Set_Hidden_By_Use_Clause);
11086 pragma Inline (Set_High_Bound);
11087 pragma Inline (Set_Identifier);
11088 pragma Inline (Set_Implicit_With);
11089 pragma Inline (Set_Includes_Infinities);
11090 pragma Inline (Set_Interface_List);
11091 pragma Inline (Set_Interface_Present);
11092 pragma Inline (Set_In_Present);
11093 pragma Inline (Set_Instance_Spec);
11094 pragma Inline (Set_Intval);
11095 pragma Inline (Set_Is_Asynchronous_Call_Block);
11096 pragma Inline (Set_Is_Component_Left_Opnd);
11097 pragma Inline (Set_Is_Component_Right_Opnd);
11098 pragma Inline (Set_Is_Controlling_Actual);
11099 pragma Inline (Set_Is_Dynamic_Coextension);
11100 pragma Inline (Set_Is_Entry_Barrier_Function);
11101 pragma Inline (Set_Is_In_Discriminant_Check);
11102 pragma Inline (Set_Is_Machine_Number);
11103 pragma Inline (Set_Is_Null_Loop);
11104 pragma Inline (Set_Is_Overloaded);
11105 pragma Inline (Set_Is_Power_Of_2_For_Shift);
11106 pragma Inline (Set_Is_Protected_Subprogram_Body);
11107 pragma Inline (Set_Has_Self_Reference);
11108 pragma Inline (Set_Is_Static_Coextension);
11109 pragma Inline (Set_Is_Static_Expression);
11110 pragma Inline (Set_Is_Subprogram_Descriptor);
11111 pragma Inline (Set_Is_Task_Allocation_Block);
11112 pragma Inline (Set_Is_Task_Master);
11113 pragma Inline (Set_Iteration_Scheme);
11114 pragma Inline (Set_Itype);
11115 pragma Inline (Set_Kill_Range_Check);
11116 pragma Inline (Set_Last_Bit);
11117 pragma Inline (Set_Last_Name);
11118 pragma Inline (Set_Library_Unit);
11119 pragma Inline (Set_Label_Construct);
11120 pragma Inline (Set_Left_Opnd);
11121 pragma Inline (Set_Limited_View_Installed);
11122 pragma Inline (Set_Limited_Present);
11123 pragma Inline (Set_Literals);
11124 pragma Inline (Set_Local_Raise_Not_OK);
11125 pragma Inline (Set_Local_Raise_Statements);
11126 pragma Inline (Set_Loop_Actions);
11127 pragma Inline (Set_Loop_Parameter_Specification);
11128 pragma Inline (Set_Low_Bound);
11129 pragma Inline (Set_Mod_Clause);
11130 pragma Inline (Set_More_Ids);
11131 pragma Inline (Set_Must_Be_Byte_Aligned);
11132 pragma Inline (Set_Must_Not_Freeze);
11133 pragma Inline (Set_Must_Not_Override);
11134 pragma Inline (Set_Must_Override);
11135 pragma Inline (Set_Name);
11136 pragma Inline (Set_Names);
11137 pragma Inline (Set_Next_Entity);
11138 pragma Inline (Set_Next_Named_Actual);
11139 pragma Inline (Set_Next_Use_Clause);
11140 pragma Inline (Set_No_Ctrl_Actions);
11141 pragma Inline (Set_No_Elaboration_Check);
11142 pragma Inline (Set_No_Entities_Ref_In_Spec);
11143 pragma Inline (Set_No_Initialization);
11144 pragma Inline (Set_No_Truncation);
11145 pragma Inline (Set_Null_Present);
11146 pragma Inline (Set_Null_Exclusion_Present);
11147 pragma Inline (Set_Null_Record_Present);
11148 pragma Inline (Set_Object_Definition);
11149 pragma Inline (Set_Original_Discriminant);
11150 pragma Inline (Set_Original_Entity);
11151 pragma Inline (Set_Others_Discrete_Choices);
11152 pragma Inline (Set_Out_Present);
11153 pragma Inline (Set_Parameter_Associations);
11154 pragma Inline (Set_Parameter_Specifications);
11155 pragma Inline (Set_Parameter_List_Truncated);
11156 pragma Inline (Set_Parameter_Type);
11157 pragma Inline (Set_Parent_Spec);
11158 pragma Inline (Set_Position);
11159 pragma Inline (Set_Pragma_Argument_Associations);
11160 pragma Inline (Set_Pragmas_After);
11161 pragma Inline (Set_Pragmas_Before);
11162 pragma Inline (Set_Prefix);
11163 pragma Inline (Set_Present_Expr);
11164 pragma Inline (Set_Prev_Ids);
11165 pragma Inline (Set_Print_In_Hex);
11166 pragma Inline (Set_Private_Declarations);
11167 pragma Inline (Set_Private_Present);
11168 pragma Inline (Set_Procedure_To_Call);
11169 pragma Inline (Set_Proper_Body);
11170 pragma Inline (Set_Protected_Definition);
11171 pragma Inline (Set_Protected_Present);
11172 pragma Inline (Set_Raises_Constraint_Error);
11173 pragma Inline (Set_Range_Constraint);
11174 pragma Inline (Set_Range_Expression);
11175 pragma Inline (Set_Real_Range_Specification);
11176 pragma Inline (Set_Realval);
11177 pragma Inline (Set_Reason);
11178 pragma Inline (Set_Record_Extension_Part);
11179 pragma Inline (Set_Redundant_Use);
11180 pragma Inline (Set_Renaming_Exception);
11181 pragma Inline (Set_Result_Definition);
11182 pragma Inline (Set_Return_Object_Declarations);
11183 pragma Inline (Set_Reverse_Present);
11184 pragma Inline (Set_Right_Opnd);
11185 pragma Inline (Set_Rounded_Result);
11186 pragma Inline (Set_Scope);
11187 pragma Inline (Set_Select_Alternatives);
11188 pragma Inline (Set_Selector_Name);
11189 pragma Inline (Set_Selector_Names);
11190 pragma Inline (Set_Shift_Count_OK);
11191 pragma Inline (Set_Source_Type);
11192 pragma Inline (Set_Specification);
11193 pragma Inline (Set_Statements);
11194 pragma Inline (Set_Static_Processing_OK);
11195 pragma Inline (Set_Storage_Pool);
11196 pragma Inline (Set_Strval);
11197 pragma Inline (Set_Subtype_Indication);
11198 pragma Inline (Set_Subtype_Mark);
11199 pragma Inline (Set_Subtype_Marks);
11200 pragma Inline (Set_Synchronized_Present);
11201 pragma Inline (Set_Tagged_Present);
11202 pragma Inline (Set_Target_Type);
11203 pragma Inline (Set_Task_Definition);
11204 pragma Inline (Set_Task_Present);
11205 pragma Inline (Set_Then_Actions);
11206 pragma Inline (Set_Then_Statements);
11207 pragma Inline (Set_Triggering_Alternative);
11208 pragma Inline (Set_Triggering_Statement);
11209 pragma Inline (Set_Treat_Fixed_As_Integer);
11210 pragma Inline (Set_TSS_Elist);
11211 pragma Inline (Set_Type_Definition);
11212 pragma Inline (Set_Unit);
11213 pragma Inline (Set_Unknown_Discriminants_Present);
11214 pragma Inline (Set_Unreferenced_In_Spec);
11215 pragma Inline (Set_Variant_Part);
11216 pragma Inline (Set_Variants);
11217 pragma Inline (Set_Visible_Declarations);
11218 pragma Inline (Set_Was_Originally_Stub);
11219 pragma Inline (Set_Zero_Cost_Handling);
11220
11221 N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
11222 -- Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
11223 -- should refer to N_Simple_Return_Statement.
11224
11225 end Sinfo;