atree.adb (Flag231..Flag247): New functions
[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 -- Has_Dynamic_Length_Check (Flag10-Sem)
479 -- This flag is present on all nodes. It is set to indicate that one of
480 -- the routines in unit Checks has generated a length check action which
481 -- has been inserted at the flagged node. This is used to avoid the
482 -- generation of duplicate checks.
483
484 -- Has_Dynamic_Range_Check (Flag12-Sem)
485 -- This flag is present on all nodes. It is set to indicate that one of
486 -- the routines in unit Checks has generated a range check action which
487 -- has been inserted at the flagged node. This is used to avoid the
488 -- generation of duplicate checks.
489
490 -- Has_Local_Raise (Flag8-Sem)
491 -- Present in exception handler nodes. Set if the handler can be entered
492 -- via a local raise that gets transformed to a goto statement. This will
493 -- always be set if Local_Raise_Statements is non-empty, but can also be
494 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
495 -- nodes requiring generation of back end checks.
496
497 ------------------------------------
498 -- Description of Semantic Fields --
499 ------------------------------------
500
501 -- The meaning of the syntactic fields is generally clear from their names
502 -- without any further description, since the names are chosen to
503 -- correspond very closely to the syntax in the reference manual. This
504 -- section describes the usage of the semantic fields, which are used to
505 -- contain additional information determined during semantic analysis.
506
507 -- ABE_Is_Certain (Flag18-Sem)
508 -- This flag is set in an instantiation node or a call node is determined
509 -- to be sure to raise an ABE. This is used to trigger special handling
510 -- of such cases, particularly in the instantiation case where we avoid
511 -- instantiating the body if this flag is set. This flag is also present
512 -- in an N_Formal_Package_Declaration_Node since formal package
513 -- declarations are treated like instantiations, but it is always set to
514 -- False in this context.
515
516 -- Accept_Handler_Records (List5-Sem)
517 -- This field is present only in an N_Accept_Alternative node. It is used
518 -- to temporarily hold the exception handler records from an accept
519 -- statement in a selective accept. These exception handlers will
520 -- eventually be placed in the Handler_Records list of the procedure
521 -- built for this accept (see Expand_N_Selective_Accept procedure in
522 -- Exp_Ch9 for further details).
523
524 -- Access_Types_To_Process (Elist2-Sem)
525 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
526 -- Contains the list of access types which may require specific treatment
527 -- when the nature of the type completion is completely known. An example
528 -- of such treatement is the generation of the associated_final_chain.
529
530 -- Actions (List1-Sem)
531 -- This field contains a sequence of actions that are associated with the
532 -- node holding the field. See the individual node types for details of
533 -- how this field is used, as well as the description of the specific use
534 -- for a particular node type.
535
536 -- Activation_Chain_Entity (Node3-Sem)
537 -- This is used in tree nodes representing task activators (blocks,
538 -- subprogram bodies, package declarations, and task bodies). It is
539 -- initially Empty, and then gets set to point to the entity for the
540 -- declared Activation_Chain variable when the first task is declared.
541 -- When tasks are declared in the corresponding declarative region this
542 -- entity is located by name (its name is always _Chain) and the declared
543 -- tasks are added to the chain. Note that N_Extended_Return_Statement
544 -- does not have this attribute, although it does have an activation
545 -- chain. This chain is used to store the tasks temporarily, and is not
546 -- used for activating them. On successful completion of the return
547 -- statement, the tasks are moved to the caller's chain, and the caller
548 -- activates them.
549
550 -- Acts_As_Spec (Flag4-Sem)
551 -- A flag set in the N_Subprogram_Body node for a subprogram body which
552 -- is acting as its own spec, except in the case of a library level
553 -- subprogram, in which case the flag is set on the parent compilation
554 -- unit node instead (see further description in spec of Lib package).
555 -- ??? Above note about Lib is dubious since lib.ads does not mention
556 -- Acts_As_Spec at all.
557
558 -- Actual_Designated_Subtype (Node4-Sem)
559 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
560 -- needs to known the dynamic constrained subtype of the designated
561 -- object, this attribute is set to that type. This is done for
562 -- N_Free_Statements for access-to-classwide types and access to
563 -- unconstrained packed array types, and for N_Explicit_Dereference when
564 -- the designated type is an unconstrained packed array and the
565 -- dereference is the prefix of a 'Size attribute reference.
566
567 -- Address_Warning_Posted (Flag18-Sem)
568 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
569 -- posted a warning for the address clause regarding size or alignment
570 -- issues. Used to inhibit multiple redundant messages.
571
572 -- Aggregate_Bounds (Node3-Sem)
573 -- Present in array N_Aggregate nodes. If the aggregate contains
574 -- component associations this field points to an N_Range node whose
575 -- bounds give the lowest and highest discrete choice values. If the
576 -- named aggregate contains a dynamic or null choice this field is empty.
577 -- If the aggregate contains positional elements this field points to an
578 -- N_Integer_Literal node giving the number of positional elements. Note
579 -- that if the aggregate contains positional elements and an other choice
580 -- the N_Integer_Literal only accounts for the number of positional
581 -- elements.
582
583 -- All_Others (Flag11-Sem)
584 -- Present in an N_Others_Choice node. This flag is set in the case of an
585 -- others exception where all exceptions are to be caught, even those
586 -- that are not normally handled (in particular the tasking abort
587 -- signal). This is used for translation of the at end handler into a
588 -- normal exception handler.
589
590 -- Assignment_OK (Flag15-Sem)
591 -- This flag is set in a subexpression node for an object, indicating
592 -- that the associated object can be modified, even if this would not
593 -- normally be permissible (either by direct assignment, or by being
594 -- passed as an out or in-out parameter). This is used by the expander
595 -- for a number of purposes, including initialzation of constants and
596 -- limited type objects (such as tasks), setting discriminant fields,
597 -- setting tag values, etc. N_Object_Declaration nodes also have this
598 -- flag defined. Here it is used to indicate that an initialization
599 -- expression is valid, even where it would normally not be allowed (e.g.
600 -- where the type involved is limited).
601
602 -- Associated_Node (Node4-Sem)
603 -- Present in nodes that can denote an entity: identifiers, character
604 -- literals, operator symbols, expanded names, operator nodes, and
605 -- attribute reference nodes (all these nodes have an Entity field). This
606 -- field is also present in N_Aggregate, N_Selected_Component, and
607 -- N_Extension_Aggregate nodes. This field is used in generic processing
608 -- to create links between the generic template and the generic copy. See
609 -- Sem_Ch12.Get_Associated_Node for full details. Note that this field
610 -- overlaps Entity, which is fine, since, as explained in Sem_Ch12, the
611 -- normal function of Entity is not required at the point where the
612 -- Associated_Node is set. Note also, that in generic templates, this
613 -- means that the Entity field does not necessarily point to an Entity.
614 -- Since the back end is expected to ignore generic templates, this is
615 -- harmless.
616
617 -- At_End_Proc (Node1)
618 -- This field is present in an N_Handled_Sequence_Of_Statements node. It
619 -- contains an identifier reference for the cleanup procedure to be
620 -- called. See description of this node for further details.
621
622 -- Backwards_OK (Flag6-Sem)
623 -- A flag present in the N_Assignment_Statement node. It is used only if
624 -- the type being assigned is an array type, and is set if analysis
625 -- determines that it is definitely safe to do the copy backwards, i.e.
626 -- starting at the highest addressed element. Note that if neither of the
627 -- flags Forwards_OK or Backwards_OK is set, it means that the front end
628 -- could not determine that either direction is definitely safe, and a
629 -- runtime check may be required if the backend cannot figure it out.
630
631 -- Body_To_Inline (Node3-Sem)
632 -- present in subprogram declarations. Denotes analyzed but unexpanded
633 -- body of subprogram, to be used when inlining calls. Present when the
634 -- subprogram has an Inline pragma and inlining is enabled. If the
635 -- declaration is completed by a renaming_as_body, and the renamed en-
636 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
637 -- which is used directly in later calls to the original subprogram.
638
639 -- Body_Required (Flag13-Sem)
640 -- A flag that appears in the N_Compilation_Unit node indicating that the
641 -- corresponding unit requires a body. For the package case, this
642 -- indicates that a completion is required. In Ada 95, if the flag is not
643 -- set for the package case, then a body may not be present. In Ada 83,
644 -- if the flag is not set for the package case, then body is optional.
645 -- For a subprogram declaration, the flag is set except in the case where
646 -- a pragma Import or Interface applies, in which case no body is
647 -- permitted (in Ada 83 or Ada 95).
648
649 -- By_Ref (Flag5-Sem)
650 -- A flag present in N_Simple_Return_Statement and
651 -- N_Extended_Return_Statement.
652 -- It is set when the returned expression is already allocated on the
653 -- secondary stack and thus the result is passed by reference rather
654 -- than copied another time.
655
656 -- Check_Address_Alignment (Flag11-Sem)
657 -- A flag present in N_Attribute_Definition clause for a 'Address
658 -- attribute definition. This flag is set if a dynamic check should be
659 -- generated at the freeze point for the entity to which this address
660 -- clause applies. The reason that we need this flag is that we want to
661 -- check for range checks being suppressed at the point where the
662 -- attribute definition clause is given, rather than testing this at the
663 -- freeze point.
664
665 -- Coextensions (Elist4-Sem)
666 -- Present in allocators nodes. Points to list of allocators for the
667 -- access discriminants of the allocated object.
668
669 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
670 -- Present in N_Simple_Return_Statement nodes. True if this node was
671 -- constructed as part of the expansion of an
672 -- N_Extended_Return_Statement.
673
674 -- Compile_Time_Known_Aggregate (Flag18-Sem)
675 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
676 -- evaluated at compile time without raising constraint error. Such
677 -- aggregates can be passed as is to Gigi without any expansion. See
678 -- Sem_Aggr for the specific conditions under which an aggregate has this
679 -- flag set. See also the flag Static_Processing_OK.
680
681 -- Condition_Actions (List3-Sem)
682 -- This field appears in else-if nodes and in the iteration scheme node
683 -- for while loops. This field is only used during semantic processing to
684 -- temporarily hold actions inserted into the tree. In the tree passed to
685 -- gigi, the condition actions field is always set to No_List. For
686 -- details on how this field is used, see the routine Insert_Actions in
687 -- package Exp_Util, and also the expansion routines for the relevant
688 -- nodes.
689
690 -- Controlling_Argument (Node1-Sem)
691 -- This field is set in procedure and function call nodes if the call is
692 -- a dispatching call (it is Empty for a non-dispatching call). It
693 -- indicates the source of the call's controlling tag. For procedure
694 -- calls, the Controlling_Argument is one of the actuals. For function
695 -- that has a dispatching result, it is an entity in the context of the
696 -- call that can provide a tag, or else it is the tag of the root type of
697 -- the class. It can also specify a tag directly rather than being a
698 -- tagged object. The latter is needed by the implementations of AI-239
699 -- and AI-260.
700
701 -- Conversion_OK (Flag14-Sem)
702 -- A flag set on type conversion nodes to indicate that the conversion is
703 -- to be considered as being valid, even though it is the case that the
704 -- conversion is not valid Ada. This is used for Enum_Rep, Fixed_Value
705 -- and Integer_Value attributes, for internal conversions done for
706 -- fixed-point operations, and for certain conversions for calls to
707 -- initialization procedures. If Conversion_OK is set, then Etype must be
708 -- set (the analyzer assumes that Etype has been set). For the case of
709 -- fixed-point operands, it also indicates that the conversion is to be
710 -- direct conversion of the underlying integer result, with no regard to
711 -- the small operand.
712
713 -- Corresponding_Body (Node5-Sem)
714 -- This field is set in subprogram declarations, package declarations,
715 -- entry declarations of protected types, and in generic units. It
716 -- points to the defining entity for the corresponding body (NOT the
717 -- node for the body itself).
718
719 -- Corresponding_Formal_Spec (Node3-Sem)
720 -- This field is set in subprogram renaming declarations, where it points
721 -- to the defining entity for a formal subprogram in the case where the
722 -- renaming corresponds to a generic formal subprogram association in an
723 -- instantiation. The field is Empty if the renaming does not correspond
724 -- to such a formal association.
725
726 -- Corresponding_Generic_Association (Node5-Sem)
727 -- This field is defined for object declarations and object renaming
728 -- declarations. It is set for the declarations within an instance that
729 -- map generic formals to their actuals. If set, the field points to
730 -- a generic_association which is the original parent of the expression
731 -- or name appearing in the declaration. This simplifies ASIS queries.
732
733 -- Corresponding_Integer_Value (Uint4-Sem)
734 -- This field is set in real literals of fixed-point types (it is not
735 -- used for floating-point types). It contains the integer value used
736 -- to represent the fixed-point value. It is also set on the universal
737 -- real literals used to represent bounds of fixed-point base types
738 -- and their first named subtypes.
739
740 -- Corresponding_Spec (Node5-Sem)
741 -- This field is set in subprogram, package, task, and protected body
742 -- nodes, where it points to the defining entity in the corresponding
743 -- spec. The attribute is also set in N_With_Clause nodes, where it
744 -- points to the defining entity for the with'ed spec, and in a
745 -- subprogram renaming declaration when it is a Renaming_As_Body. The
746 -- field is Empty if there is no corresponding spec, as in the case of a
747 -- subprogram body that serves as its own spec.
748
749 -- Corresponding_Stub (Node3-Sem)
750 -- This field is present in an N_Subunit node. It holds the node in
751 -- the parent unit that is the stub declaration for the subunit. it is
752 -- set when analysis of the stub forces loading of the proper body. If
753 -- expansion of the proper body creates new declarative nodes, they are
754 -- inserted at the point of the corresponding_stub.
755
756 -- Dcheck_Function (Node5-Sem)
757 -- This field is present in an N_Variant node, It references the entity
758 -- for the discriminant checking function for the variant.
759
760 -- Debug_Statement (Node3)
761 -- This field is present in an N_Pragma node. It is used only for a Debug
762 -- pragma. The parameter is of the form of an expression, as required by
763 -- the pragma syntax, but is actually a procedure call. To simplify
764 -- semantic processing, the parser creates a copy of the argument
765 -- rearranged into a procedure call statement and places it in the
766 -- Debug_Statement field. Note that this field is considered syntactic
767 -- field, since it is created by the parser.
768
769 -- Default_Expression (Node5-Sem)
770 -- This field is Empty if there is no default expression. If there is a
771 -- simple default expression (one with no side effects), then this field
772 -- simply contains a copy of the Expression field (both point to the tree
773 -- for the default expression). Default_Expression is used for
774 -- conformance checking.
775
776 -- Discr_Check_Funcs_Built (Flag11-Sem)
777 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
778 -- discriminant checking functions are constructed. The purpose is to
779 -- avoid attempting to set these functions more than once.
780
781 -- Do_Accessibility_Check (Flag13-Sem)
782 -- This flag is set on N_Parameter_Specification nodes to indicate
783 -- that an accessibility check is required for the parameter. It is
784 -- not yet decided who takes care of this check (TBD ???).
785
786 -- Do_Discriminant_Check (Flag13-Sem)
787 -- This flag is set on N_Selected_Component nodes to indicate that a
788 -- discriminant check is required using the discriminant check routine
789 -- associated with the selector. The actual check is generated by the
790 -- expander when processing selected components.
791
792 -- Do_Division_Check (Flag13-Sem)
793 -- This flag is set on a division operator (/ mod rem) to indicate
794 -- that a zero divide check is required. The actual check is dealt
795 -- with by the backend (all the front end does is to set the flag).
796
797 -- Do_Length_Check (Flag4-Sem)
798 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
799 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
800 -- is required. It is not determined who deals with this flag (???).
801
802 -- Do_Overflow_Check (Flag17-Sem)
803 -- This flag is set on an operator where an overflow check is required on
804 -- the operation. The actual check is dealt with by the backend (all the
805 -- front end does is to set the flag). The other cases where this flag is
806 -- used is on a Type_Conversion node and for attribute reference nodes.
807 -- For a type conversion, it means that the conversion is from one base
808 -- type to another, and the value may not fit in the target base type.
809 -- See also the description of Do_Range_Check for this case. The only
810 -- attribute references which use this flag are Pred and Succ, where it
811 -- means that the result should be checked for going outside the base
812 -- range.
813
814 -- Do_Range_Check (Flag9-Sem)
815 -- This flag is set on an expression which appears in a context where
816 -- a range check is required. The target type is clear from the
817 -- context. The contexts in which this flag can appear are limited to
818 -- the following.
819
820 -- Right side of an assignment. In this case the target type is
821 -- taken from the left side of the assignment, which is referenced
822 -- by the Name of the N_Assignment_Statement node.
823
824 -- Subscript expressions in an indexed component. In this case the
825 -- target type is determined from the type of the array, which is
826 -- referenced by the Prefix of the N_Indexed_Component node.
827
828 -- Argument expression for a parameter, appearing either directly in
829 -- the Parameter_Associations list of a call or as the Expression of an
830 -- N_Parameter_Association node that appears in this list. In either
831 -- case, the check is against the type of the formal. Note that the
832 -- flag is relevant only in IN and IN OUT parameters, and will be
833 -- ignored for OUT parameters, where no check is required in the call,
834 -- and if a check is required on the return, it is generated explicitly
835 -- with a type conversion.
836
837 -- Initialization expression for the initial value in an object
838 -- declaration. In this case the Do_Range_Check flag is set on
839 -- the initialization expression, and the check is against the
840 -- range of the type of the object being declared.
841
842 -- The expression of a type conversion. In this case the range check is
843 -- against the target type of the conversion. See also the use of
844 -- Do_Overflow_Check on a type conversion. The distinction is that the
845 -- overflow check protects against a value that is outside the range of
846 -- the target base type, whereas a range check checks that the
847 -- resulting value (which is a value of the base type of the target
848 -- type), satisfies the range constraint of the target type.
849
850 -- Note: when a range check is required in contexts other than those
851 -- listed above (e.g. in a return statement), an additional type
852 -- conversion node is introduced to represent the required check.
853
854 -- Do_Storage_Check (Flag17-Sem)
855 -- This flag is set in an N_Allocator node to indicate that a storage
856 -- check is required for the allocation, or in an N_Subprogram_Body node
857 -- to indicate that a stack check is required in the subprogram prolog.
858 -- The N_Allocator case is handled by the routine that expands the call
859 -- to the runtime routine. The N_Subprogram_Body case is handled by the
860 -- backend, and all the semantics does is set the flag.
861
862 -- Do_Tag_Check (Flag13-Sem)
863 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
864 -- N_Procedure_Call_Statement, N_Type_Conversion,
865 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
866 -- node to indicate that the tag check can be suppressed. It is not
867 -- yet decided how this flag is used (TBD ???).
868
869 -- Elaborate_Present (Flag4-Sem)
870 -- This flag is set in the N_With_Clause node to indicate that pragma
871 -- Elaborate pragma appears for the with'ed units.
872
873 -- Elaborate_All_Desirable (Flag9-Sem)
874 -- This flag is set in the N_With_Clause mode to indicate that the static
875 -- elaboration processing has determined that an Elaborate_All pragma is
876 -- desirable for correct elaboration for this unit.
877
878 -- Elaborate_All_Present (Flag14-Sem)
879 -- This flag is set in the N_With_Clause node to indicate that a
880 -- pragma Elaborate_All pragma appears for the with'ed units.
881
882 -- Elaborate_Desirable (Flag11-Sem)
883 -- This flag is set in the N_With_Clause mode to indicate that the static
884 -- elaboration processing has determined that an Elaborate pragma is
885 -- desirable for correct elaboration for this unit.
886
887 -- Elaboration_Boolean (Node2-Sem)
888 -- This field is present in function and procedure specification
889 -- nodes. If set, it points to the entity for a Boolean flag that
890 -- must be tested for certain calls to check for access before
891 -- elaboration. See body of Sem_Elab for further details. This
892 -- field is Empty if no elaboration boolean is required.
893
894 -- Else_Actions (List3-Sem)
895 -- This field is present in conditional expression nodes. During code
896 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
897 -- actions at an appropriate place in the tree to get elaborated at the
898 -- right time. For conditional expressions, we have to be sure that the
899 -- actions for the Else branch are only elaborated if the condition is
900 -- False. The Else_Actions field is used as a temporary parking place for
901 -- these actions. The final tree is always rewritten to eliminate the
902 -- need for this field, so in the tree passed to Gigi, this field is
903 -- always set to No_List.
904
905 -- Enclosing_Variant (Node2-Sem)
906 -- This field is present in the N_Variant node and identifies the
907 -- Node_Id corresponding to the immediately enclosing variant when
908 -- the variant is nested, and N_Empty otherwise. Set during semantic
909 -- processing of the variant part of a record type.
910
911 -- Entity (Node4-Sem)
912 -- Appears in all direct names (identifiers, character literals, and
913 -- operator symbols), as well as expanded names, and attributes that
914 -- denote entities, such as 'Class. Points to entity for corresponding
915 -- defining occurrence. Set after name resolution. For identifiers in a
916 -- WITH list, the corresponding defining occurrence is in a separately
917 -- compiled file, and Entity must be set by the library Load procedure.
918 --
919 -- Note: During name resolution, the value in Entity may be temporarily
920 -- incorrect (e.g. during overload resolution, Entity is initially set to
921 -- the first possible correct interpretation, and then later modified if
922 -- necessary to contain the correct value after resolution).
923 --
924 -- Note: This field overlaps Associated_Node, which is used during
925 -- generic processing (see Sem_Ch12 for details). Note also that in
926 -- generic templates, this means that the Entity field does not always
927 -- point to an Entity. Since the back end is expected to ignore generic
928 -- templates, this is harmless.
929 --
930 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
931 -- It is used only for stream attributes definition clauses. In this
932 -- case, it denotes a (possibly dummy) subprogram entity that is declared
933 -- conceptually at the point of the clause. Thus the visibility of the
934 -- attribute definition clause (in the sense of 8.3(23) as amended by
935 -- AI-195) can be checked by testing the visibility of that subprogram.
936 --
937 -- Note: Normally the Entity field of an identifier points to the entity
938 -- for the corresponding defining identifier, and hence the Chars field
939 -- of an identifier will match the Chars field of the entity. However,
940 -- there is no requirement that these match, and there are obscure cases
941 -- of generated code where they do not match.
942
943 -- Entity_Or_Associated_Node (Node4-Sem)
944 -- A synonym for both Entity and Associated_Node. Used by convention in
945 -- the code when referencing this field in cases where it is not known
946 -- whether the field contains an Entity or an Associated_Node.
947
948 -- Etype (Node5-Sem)
949 -- Appears in all expression nodes, all direct names, and all entities.
950 -- Points to the entity for the related type. Set after type resolution.
951 -- Normally this is the actual subtype of the expression. However, in
952 -- certain contexts such as the right side of an assignment, subscripts,
953 -- arguments to calls, returned value in a function, initial value etc.
954 -- it is the desired target type. In the event that this is different
955 -- from the actual type, the Do_Range_Check flag will be set if a range
956 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
957 -- points to an essentially arbitrary choice from the possible set of
958 -- types.
959
960 -- Exception_Junk (Flag8-Sem)
961 -- This flag is set in a various nodes appearing in a statement sequence
962 -- to indicate that the corresponding node is an artifact of the
963 -- generated code for exception handling, and should be ignored when
964 -- analyzing the control flow of the relevant sequence of statements
965 -- (e.g. to check that it does not end with a bad return statement).
966
967 -- Exception_Label (Node5-Sem)
968 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
969 -- to be used for transforming the corresponding exception into a goto,
970 -- or contains Empty, if this exception is not to be transformed. Also
971 -- appears in N_Exception_Handler nodes, where, if set, it indicates
972 -- that there may be a local raise for the handler, so that expansion
973 -- to allow a goto is required (and this field contains the label for
974 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
975
976 -- Expansion_Delayed (Flag11-Sem)
977 -- Set on aggregates and extension aggregates that need a top-down rather
978 -- than bottom up expansion. Typically aggregate expansion happens bottom
979 -- up. For nested aggregates the expansion is delayed until the enclosing
980 -- aggregate itself is expanded, e.g. in the context of a declaration. To
981 -- delay it we set this flag. This is done to avoid creating a temporary
982 -- for each level of a nested aggregates, and also to prevent the
983 -- premature generation of constraint checks. This is also a requirement
984 -- if we want to generate the proper attachment to the internal
985 -- finalization lists (for record with controlled components). Top down
986 -- expansion of aggregates is also used for in-place array aggregate
987 -- assignment or initialization. When the full context is known, the
988 -- target of the assignment or initialization is used to generate the
989 -- left-hand side of individual assignment to each sub-component.
990
991 -- First_Inlined_Subprogram (Node3-Sem)
992 -- Present in the N_Compilation_Unit node for the main program. Points to
993 -- a chain of entities for subprograms that are to be inlined. The
994 -- Next_Inlined_Subprogram field of these entities is used as a link
995 -- pointer with Empty marking the end of the list. This field is Empty if
996 -- there are no inlined subprograms or inlining is not active.
997
998 -- First_Named_Actual (Node4-Sem)
999 -- Present in procedure call statement and function call nodes, and also
1000 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1001 -- named parameter where parameters are ordered by declaration order (as
1002 -- opposed to the actual order in the call which may be different due to
1003 -- named associations). Note: this field points to the explicit actual
1004 -- parameter itself, not the N_Parameter_Association node (its parent).
1005
1006 -- First_Real_Statement (Node2-Sem)
1007 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1008 -- Empty. Used only when declarations are moved into the statement part
1009 -- of a construct as a result of wrapping an AT END handler that is
1010 -- required to cover the declarations. In this case, this field is used
1011 -- to remember the location in the statements list of the first real
1012 -- statement, i.e. the statement that used to be first in the statement
1013 -- list before the declarations were prepended.
1014
1015 -- First_Subtype_Link (Node5-Sem)
1016 -- Present in N_Freeze_Entity node for an anonymous base type that is
1017 -- implicitly created by the declaration of a first subtype. It points to
1018 -- the entity for the first subtype.
1019
1020 -- Float_Truncate (Flag11-Sem)
1021 -- A flag present in type conversion nodes. This is used for float to
1022 -- integer conversions where truncation is required rather than rounding.
1023 -- Note that Gigi does not handle type conversions from real to integer
1024 -- with rounding (see Expand_N_Type_Conversion).
1025
1026 -- Forwards_OK (Flag5-Sem)
1027 -- A flag present in the N_Assignment_Statement node. It is used only if
1028 -- the type being assigned is an array type, and is set if analysis
1029 -- determines that it is definitely safe to do the copy forwards, i.e.
1030 -- starting at the lowest addressed element. Note that if neither of the
1031 -- flags Forwards_OK or Backwards_OK is set, it means that the front end
1032 -- could not determine that either direction is definitely safe, and a
1033 -- runtime check is required.
1034
1035 -- From_At_Mod (Flag4-Sem)
1036 -- This flag is set on the attribute definition clause node that is
1037 -- generated by a transformation of an at mod phrase in a record
1038 -- representation clause. This is used to give slightly different (Ada 83
1039 -- compatible) semantics to such a clause, namely it is used to specify a
1040 -- minimum acceptable alignment for the base type and all subtypes. In
1041 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1042 -- must be a multiple of the given value, and the representation clause
1043 -- is considered to be type specific instead of subtype specific.
1044
1045 -- From_Default (Flag6-Sem)
1046 -- This flag is set on the subprogram renaming declaration created in an
1047 -- instance for a formal subprogram, when the formal is declared with a
1048 -- box, and there is no explicit actual. If the flag is present, the
1049 -- declaration is treated as an implicit reference to the formal in the
1050 -- ali file.
1051
1052 -- Generic_Parent (Node5-Sem)
1053 -- Generic_Parent is defined on declaration nodes that are instances. The
1054 -- value of Generic_Parent is the generic entity from which the instance
1055 -- is obtained. Generic_Parent is also defined for the renaming
1056 -- declarations and object declarations created for the actuals in an
1057 -- instantiation. The generic parent of such a declaration is the
1058 -- corresponding generic association in the Instantiation node.
1059
1060 -- Generic_Parent_Type (Node4-Sem)
1061 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1062 -- actuals of formal private and derived types. Within the instance, the
1063 -- operations on the actual are those inherited from the parent. For a
1064 -- formal private type, the parent type is the generic type itself. The
1065 -- Generic_Parent_Type is also used in an instance to determine whether a
1066 -- private operation overrides an inherited one.
1067
1068 -- Handler_List_Entry (Node2-Sem)
1069 -- This field is present in N_Object_Declaration nodes. It is set only
1070 -- for the Handler_Record entry generated for an exception in zero cost
1071 -- exception handling mode. It references the corresponding item in the
1072 -- handler list, and is used to delete this entry if the corresponding
1073 -- handler is deleted during optimization. For further details on why
1074 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1075
1076 -- Has_No_Elaboration_Code (Flag17-Sem)
1077 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1078 -- or not elaboration code is present for this unit. It is initially set
1079 -- true for subprogram specs and bodies and for all generic units and
1080 -- false for non-generic package specs and bodies. Gigi may set the flag
1081 -- in the non-generic package case if it determines that no elaboration
1082 -- code is generated. Note that this flag is not related to the
1083 -- Is_Preelaborated status, there can be preelaborated packages that
1084 -- generate elaboration code, and non-preelaborated packages which do
1085 -- not generate elaboration code.
1086
1087 -- Has_Priority_Pragma (Flag6-Sem)
1088 -- A flag present in N_Subprogram_Body, N_Task_Definition and
1089 -- N_Protected_Definition nodes to flag the presence of either a Priority
1090 -- or Interrupt_Priority pragma in the declaration sequence (public or
1091 -- private in the task and protected cases)
1092
1093 -- Has_Private_View (Flag11-Sem)
1094 -- A flag present in generic nodes that have an entity, to indicate that
1095 -- the node has a private type. Used to exchange private and full
1096 -- declarations if the visibility at instantiation is different from the
1097 -- visibility at generic definition.
1098
1099 -- Has_Self_Reference (Flag13-Sem)
1100 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1101 -- of the expressions contains an access attribute reference to the
1102 -- enclosing type. Such a self-reference can only appear in default-
1103 -- initialized aggregate for a record type.
1104
1105 -- Has_Storage_Size_Pragma (Flag5-Sem)
1106 -- A flag present in an N_Task_Definition node to flag the presence of a
1107 -- Storage_Size pragma.
1108
1109 -- Has_Task_Info_Pragma (Flag7-Sem)
1110 -- A flag present in an N_Task_Definition node to flag the presence of a
1111 -- Task_Info pragma. Used to detect duplicate pragmas.
1112
1113 -- Has_Task_Name_Pragma (Flag8-Sem)
1114 -- A flag present in N_Task_Definition nodes to flag the presence of a
1115 -- Task_Name pragma in the declaration sequence for the task.
1116
1117 -- Has_Wide_Character (Flag11-Sem)
1118 -- Present in string literals, set if any wide character (i.e. character
1119 -- code outside the Character range) appears in the string.
1120
1121 -- Hidden_By_Use_Clause (Elist4-Sem)
1122 -- An entity list present in use clauses that appear within
1123 -- instantiations. For the resolution of local entities, entities
1124 -- introduced by these use clauses have priority over global ones, and
1125 -- outer entities must be explicitly hidden/restored on exit.
1126
1127 -- Implicit_With (Flag16-Sem)
1128 -- This flag is set in the N_With_Clause node that is implicitly
1129 -- generated for runtime units that are loaded by the expander, and also
1130 -- for package System, if it is loaded implicitly by a use of the
1131 -- 'Address or 'Tag attribute.
1132
1133 -- Includes_Infinities (Flag11-Sem)
1134 -- This flag is present in N_Range nodes. It is set for the range of
1135 -- unconstrained float types defined in Standard, which include not only
1136 -- the given range of values, but also legtitimately can include infinite
1137 -- values. This flag is false for any float type for which an explicit
1138 -- range is given by the programmer, even if that range is identical to
1139 -- the range for Float.
1140
1141 -- Instance_Spec (Node5-Sem)
1142 -- This field is present in generic instantiation nodes, and also in
1143 -- formal package declaration nodes (formal package declarations are
1144 -- treated in a manner very similar to package instantiations). It points
1145 -- to the node for the spec of the instance, inserted as part of the
1146 -- semantic processing for instantiations in Sem_Ch12.
1147
1148 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1149 -- A flag set in a Block_Statement node to indicate that it is the
1150 -- expansion of an asynchronous entry call. Such a block needs cleanup
1151 -- handler to assure that the call is cancelled.
1152
1153 -- Is_Component_Left_Opnd (Flag13-Sem)
1154 -- Is_Component_Right_Opnd (Flag14-Sem)
1155 -- Present in concatenation nodes, to indicate that the corresponding
1156 -- operand is of the component type of the result. Used in resolving
1157 -- concatenation nodes in instances.
1158
1159 -- Is_Controlling_Actual (Flag16-Sem)
1160 -- This flag is set on in an expression that is a controlling argument in
1161 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1162 -- details of its use.
1163
1164 -- Is_Dynamic_Coextension (Flag18-Sem)
1165 -- Present in allocator nodes, to indicate that this is an allocator
1166 -- for an access discriminant of a dynamically allocated object. The
1167 -- coextension must be deallocated and finalized at the same time as
1168 -- the enclosing object.
1169
1170 -- Is_Entry_Barrier_Function (Flag8-Sem)
1171 -- This flag is set in an N_Subprogram_Body node which is the expansion
1172 -- of an entry barrier from a protected entry body. It is used for the
1173 -- circuitry checking for incorrect use of Current_Task.
1174
1175 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1176 -- This flag is set in an N_Function_Call node to indicate that the extra
1177 -- actuals to support a build-in-place style of call have been added to
1178 -- the call.
1179
1180 -- Is_In_Discriminant_Check (Flag11-Sem)
1181 -- This flag is present in a selected component, and is used to indicate
1182 -- that the reference occurs within a discriminant check. The
1183 -- significance is that optimizations based on assuming that the
1184 -- discriminant check has a correct value cannot be performed in this
1185 -- case (or the disriminant check may be optimized away!)
1186
1187 -- Is_Machine_Number (Flag11-Sem)
1188 -- This flag is set in an N_Real_Literal node to indicate that the value
1189 -- is a machine number. This avoids some unnecessary cases of converting
1190 -- real literals to machine numbers.
1191
1192 -- Is_Null_Loop (Flag16-Sem)
1193 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1194 -- can be determined to be null at compile time. This is used to suppress
1195 -- any warnings that would otherwise be issued inside the loop since they
1196 -- are probably not useful.
1197
1198 -- Is_Overloaded (Flag5-Sem)
1199 -- A flag present in all expression nodes. Used temporarily during
1200 -- overloading determination. The setting of this flag is not relevant
1201 -- once overloading analysis is complete.
1202
1203 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1204 -- A flag present only in N_Op_Expon nodes. It is set when the
1205 -- exponentiation is of the forma 2 ** N, where the type of N is an
1206 -- unsigned integral subtype whose size does not exceed the size of
1207 -- Standard_Integer (i.e. a type that can be safely converted to
1208 -- Natural), and the exponentiation appears as the right operand of an
1209 -- integer multiplication or an integer division where the dividend is
1210 -- unsigned. It is also required that overflow checking is off for both
1211 -- the exponentiation and the multiply/divide node. If this set of
1212 -- conditions holds, and the flag is set, then the division or
1213 -- multiplication can be (and is) converted to a shift.
1214
1215 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1216 -- A flag set in a Subprogram_Body block to indicate that it is the
1217 -- implemenation of a protected subprogram. Such a body needs cleanup
1218 -- handler to make sure that the associated protected object is unlocked
1219 -- when the subprogram completes.
1220
1221 -- Is_Static_Coextension (Flag14-Sem)
1222 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1223 -- of an object allocated on the stack rather than the heap.
1224
1225 -- Is_Static_Expression (Flag6-Sem)
1226 -- Indicates that an expression is a static expression (RM 4.9). See spec
1227 -- of package Sem_Eval for full details on the use of this flag.
1228
1229 -- Is_Subprogram_Descriptor (Flag16-Sem)
1230 -- Present in N_Object_Declaration, and set only for the object
1231 -- declaration generated for a subprogram descriptor in fast exception
1232 -- mode. See Exp_Ch11 for details of use.
1233
1234 -- Is_Task_Allocation_Block (Flag6-Sem)
1235 -- A flag set in a Block_Statement node to indicate that it is the
1236 -- expansion of a task allocator, or the allocator of an object
1237 -- containing tasks. Such a block requires a cleanup handler to call
1238 -- Expunge_Unactivted_Tasks to complete any tasks that have been
1239 -- allocated but not activated when the allocator completes abnormally.
1240
1241 -- Is_Task_Master (Flag5-Sem)
1242 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1243 -- indicate that the construct is a task master (i.e. has declared tasks
1244 -- or declares an access to a task type).
1245
1246 -- Itype (Node1-Sem)
1247 -- Used in N_Itype_Reference node to reference an itype for which it is
1248 -- important to ensure that it is defined. See description of this node
1249 -- for further details.
1250
1251 -- Kill_Range_Check (Flag11-Sem)
1252 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1253 -- result should not be subjected to range checks. This is used for the
1254 -- implementation of Normalize_Scalars.
1255
1256 -- Label_Construct (Node2-Sem)
1257 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1258 -- N_Block_Statement or N_Loop_Statement node to which the label
1259 -- declaration applies. This is not currently used in the compiler
1260 -- itself, but it is useful in the implementation of ASIS queries.
1261 -- This field is left empty for the special labels generated as part
1262 -- of expanding raise statements with a local exception handler.
1263
1264 -- Library_Unit (Node4-Sem)
1265 -- In a stub node, Library_Unit points to the compilation unit node of
1266 -- the corresponding subunit.
1267 --
1268 -- In a with clause node, Library_Unit points to the spec of the with'ed
1269 -- unit.
1270 --
1271 -- In a compilation unit node, the usage depends on the unit type:
1272 --
1273 -- For a subprogram body, Library_Unit points to the compilation unit
1274 -- node of the corresponding spec, unless Acts_As_Spec is set, in which
1275 -- case it points to itself.
1276 --
1277 -- For a package body, Library_Unit points to the compilation unit of
1278 -- the corresponding package spec.
1279 --
1280 -- For a subprogram spec to which pragma Inline applies, Library_Unit
1281 -- points to the compilation unit node of the corresponding body, if
1282 -- inlining is active.
1283 --
1284 -- For a generic declaration, Library_Unit points to the compilation
1285 -- unit node of the corresponding generic body.
1286 --
1287 -- For a subunit, Library_Unit points to the compilation unit node of
1288 -- the parent body.
1289 --
1290 -- Note that this field is not used to hold the parent pointer for child
1291 -- unit (which might in any case need to use it for some other purpose as
1292 -- described above). Instead for a child unit, implicit with's are
1293 -- generated for all parents.
1294
1295 -- Local_Raise_Statements (Elist1)
1296 -- This field is present in exception handler nodes. It is set to
1297 -- No_Elist in the normal case. If there is at least one raise statement
1298 -- which can potentially be handled as a local raise, then this field
1299 -- points to a list of raise nodes, which are calls to a routine to raise
1300 -- an exception. These are raise nodes which can be optimized into gotos
1301 -- if the handler turns out to meet the conditions which permit this
1302 -- transformation. Note that this does NOT include instances of the
1303 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1304 -- handled by the back end (using the N_Push/N_Pop mechanism).
1305
1306 -- Loop_Actions (List2-Sem)
1307 -- A list present in Component_Association nodes in array aggregates.
1308 -- Used to collect actions that must be executed within the loop because
1309 -- they may need to be evaluated anew each time through.
1310
1311 -- Limited_View_Installed (Flag18-Sem)
1312 -- Present in With_Clauses and in package specifications. If set on
1313 -- with_clause, it indicates that this clause has created the current
1314 -- limited view of the designated package. On a package specification, it
1315 -- indicates that the limited view has already been created because the
1316 -- package is mentioned in a limited_with_clause in the closure of the
1317 -- unit being compiled.
1318
1319 -- Local_Raise_Not_OK (Flag7-Sem)
1320 -- Present in N_Exception_Handler nodes. Set if the handler contains
1321 -- a construct (reraise statement, or call to subprogram in package
1322 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1323 -- for a local raise (one that could otherwise be converted to a goto).
1324
1325 -- Must_Be_Byte_Aligned (Flag14-Sem)
1326 -- This flag is present in N_Attribute_Reference nodes. It can be set
1327 -- only for the Address and Unrestricted_Access attributes. If set it
1328 -- means that the object for which the address/access is given must be on
1329 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1330 -- of the object is to be made before taking the address (this copy is in
1331 -- the current scope on the stack frame). This is used for certain cases
1332 -- of code generated by the expander that passes parameters by address.
1333 --
1334 -- The reason the copy is not made by the front end is that the back end
1335 -- has more information about type layout and may be able to (but is not
1336 -- guaranteed to) prevent making unnecessary copies.
1337
1338 -- Must_Not_Freeze (Flag8-Sem)
1339 -- A flag present in all expression nodes. Normally expressions cause
1340 -- freezing as described in the RM. If this flag is set, then this is
1341 -- inhibited. This is used by the analyzer and expander to label nodes
1342 -- that are created by semantic analysis or expansion and which must not
1343 -- cause freezing even though they normally would. This flag is also
1344 -- present in an N_Subtype_Indication node, since we also use these in
1345 -- calls to Freeze_Expression.
1346
1347 -- Next_Entity (Node2-Sem)
1348 -- Present in defining identifiers, defining character literals and
1349 -- defining operator symbols (i.e. in all entities). The entities of a
1350 -- scope are chained, and this field is used as the forward pointer for
1351 -- this list. See Einfo for further details.
1352
1353 -- Next_Named_Actual (Node4-Sem)
1354 -- Present in parameter association node. Set during semantic analysis to
1355 -- point to the next named parameter, where parameters are ordered by
1356 -- declaration order (as opposed to the actual order in the call, which
1357 -- may be different due to named associations). Not that this field
1358 -- points to the explicit actual parameter itself, not to the
1359 -- N_Parameter_Association node (its parent).
1360
1361 -- Next_Rep_Item (Node5-Sem)
1362 -- Present in pragma nodes and attribute definition nodes. Used to link
1363 -- representation items that apply to an entity. See description of
1364 -- First_Rep_Item field in Einfo for full details.
1365
1366 -- Next_Use_Clause (Node3-Sem)
1367 -- While use clauses are active during semantic processing, they are
1368 -- chained from the scope stack entry, using Next_Use_Clause as a link
1369 -- pointer, with Empty marking the end of the list. The head pointer is
1370 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1371 -- processing (i.e. when Gigi sees the tree, the contents of this field
1372 -- is undefined and should not be read).
1373
1374 -- No_Ctrl_Actions (Flag7-Sem)
1375 -- Present in N_Assignment_Statement to indicate that no finalize nor nor
1376 -- adjust should take place on this assignment eventhough the rhs is
1377 -- controlled. This is used in init procs and aggregate expansions where
1378 -- the generated assignments are more initialisations than real
1379 -- assignments.
1380
1381 -- No_Elaboration_Check (Flag14-Sem)
1382 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1383 -- that no elaboration check is needed on the call, because it appears in
1384 -- the context of a local Suppress pragma. This is used on calls within
1385 -- task bodies, where the actual elaboration checks are applied after
1386 -- analysis, when the local scope stack is not present.
1387
1388 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1389 -- Present in N_With_Clause nodes. Set if the with clause is on the
1390 -- package or subprogram spec where the main unit is the corresponding
1391 -- body, and no entities of the with'ed unit are referenced by the spec
1392 -- (an entity may still be referenced in the body, so this flag is used
1393 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1394 -- full details)
1395
1396 -- No_Initialization (Flag13-Sem)
1397 -- Present in N_Object_Declaration & N_Allocator to indicate that the
1398 -- object must not be initialized (by Initialize or call to an init
1399 -- proc). This is needed for controlled aggregates. When the Object
1400 -- declaration has an expression, this flag means that this expression
1401 -- should not be taken into account (needed for in place initialization
1402 -- with aggregates)
1403
1404 -- No_Truncation (Flag17-Sem)
1405 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1406 -- only if the RM_Size of the source is greater than the RM_Size of the
1407 -- target for scalar operands. Normally in such a case we truncate some
1408 -- higher order bits of the source, and then sign/zero extend the result
1409 -- to form the output value. But if this flag is set, then we do not do
1410 -- any truncation, so for example, if an 8 bit input is converted to 5
1411 -- bit result which is in fact stored in 8 bits, then the high order
1412 -- three bits of the target result will be copied from the source. This
1413 -- is used for properly setting out of range values for use by pragmas
1414 -- Initialize_Scalars and Normalize_Scalars.
1415
1416 -- Original_Discriminant (Node2-Sem)
1417 -- Present in identifiers. Used in references to discriminants that
1418 -- appear in generic units. Because the names of the discriminants may be
1419 -- different in an instance, we use this field to recover the position of
1420 -- the discriminant in the original type, and replace it with the
1421 -- discriminant at the same position in the instantiated type.
1422
1423 -- Original_Entity (Node2-Sem)
1424 -- Present in numeric literals. Used to denote the named number that has
1425 -- been constant-folded into the given literal. If literal is from
1426 -- source, or the result of some other constant-folding operation, then
1427 -- Original_Entity is empty. This field is needed to handle properly
1428 -- named numbers in generic units, where the Associated_Node field
1429 -- interferes with the Entity field, making it impossible to preserve the
1430 -- original entity at the point of instantiation (ASIS problem).
1431
1432 -- Others_Discrete_Choices (List1-Sem)
1433 -- When a case statement or variant is analyzed, the semantic checks
1434 -- determine the actual list of choices that correspond to an others
1435 -- choice. This list is materialized for later use by the expander and
1436 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1437 -- this materialized list of choices, which is in standard format for a
1438 -- list of discrete choices, except that of course it cannot contain an
1439 -- N_Others_Choice entry.
1440
1441 -- Parameter_List_Truncated (Flag17-Sem)
1442 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1443 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1444 -- a result of a First_Optional_Parameter specification in an
1445 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1446 -- The truncation is done by the expander by removing trailing parameters
1447 -- from the argument list, in accordance with the set of rules allowing
1448 -- such parameter removal. In particular, parameters can be removed
1449 -- working from the end of the parameter list backwards up to and
1450 -- including the entry designated by First_Optional_Parameter in the
1451 -- Import pragma. Parameters can be removed if they are implicit and the
1452 -- default value is a known-at-compile-time value, including the use of
1453 -- the Null_Parameter attribute, or if explicit parameter values are
1454 -- present that match the corresponding defaults.
1455
1456 -- Parent_Spec (Node4-Sem)
1457 -- For a library unit that is a child unit spec (package or subprogram
1458 -- declaration, generic declaration or instantiation, or library level
1459 -- rename, this field points to the compilation unit node for the parent
1460 -- package specification. This field is Empty for library bodies (the
1461 -- parent spec in this case can be found from the corresponding spec).
1462
1463 -- Present_Expr (Uint3-Sem)
1464 -- Present in an N_Variant node. This has a meaningful value only after
1465 -- Gigi has back annotated the tree with representation information. At
1466 -- this point, it contains a reference to a gcc expression that depends
1467 -- on the values of one or more discriminants. Give a set of discriminant
1468 -- values, this expression evaluates to False (zero) if variant is not
1469 -- present, and True (non-zero) if it is present. See unit Repinfo for
1470 -- further details on gigi back annotation. This field is used during
1471 -- ASIS processing (data decomposition annex) to determine if a field is
1472 -- present or not.
1473
1474 -- Print_In_Hex (Flag13-Sem)
1475 -- Set on an N_Integer_Literal node to indicate that the value should be
1476 -- printed in hexadecimal in the sprint listing. Has no effect on
1477 -- legality or semantics of program, only on the displayed output. This
1478 -- is used to clarify output from the packed array cases.
1479
1480 -- Procedure_To_Call (Node2-Sem)
1481 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1482 -- and N_Extended_Return_Statement nodes. References the entity for the
1483 -- declaration of the procedure to be called to accomplish the required
1484 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1485 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1486 -- allocating the return value), and for the Deallocate procedure in the
1487 -- case of N_Free_Statement.
1488
1489 -- Raises_Constraint_Error (Flag7-Sem)
1490 -- Set on an expression whose evaluation will definitely fail constraint
1491 -- error check. In the case of static expressions, this flag must be set
1492 -- accurately (and if it is set, the expression is typically illegal
1493 -- unless it appears as a non-elaborated branch of a short-circuit form).
1494 -- For a non-static expression, this flag may be set whenever an
1495 -- expression (e.g. an aggregate) is known to raise constraint error. If
1496 -- set, the expression definitely will raise CE if elaborated at runtime.
1497 -- If not set, the expression may or may not raise CE. In other words, on
1498 -- static expressions, the flag is set accurately, on non-static
1499 -- expressions it is set conservatively.
1500
1501 -- Redundant_Use (Flag13-Sem)
1502 -- Present in nodes that can appear as an operand in a use clause or use
1503 -- type clause (identifiers, expanded names, attribute references). Set
1504 -- to indicate that a use is redundant (and therefore need not be undone
1505 -- on scope exit).
1506
1507 -- Renaming_Exception (Node2-Sem)
1508 -- Present in N_Exception_Declaration node. Used to point back to the
1509 -- exception renaming for an exception declared within a subprogram.
1510 -- What happens is that an exception declared in a subprogram is moved
1511 -- to the library level with a unique name, and the original exception
1512 -- becomes a renaming. This link from the library level exception to the
1513 -- renaming declaration allows registering of the proper exception name.
1514
1515 -- Return_Statement_Entity (Node5-Sem)
1516 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1517 -- Points to an E_Return_Statement representing the return statement.
1518
1519 -- Return_Object_Declarations (List3)
1520 -- Present in N_Extended_Return_Statement.
1521 -- Points to a list initially containing a single
1522 -- N_Object_Declaration representing the return object.
1523 -- We use a list (instead of just a pointer to the object decl)
1524 -- because Analyze wants to insert extra actions on this list.
1525
1526 -- Rounded_Result (Flag18-Sem)
1527 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1528 -- Used in the fixed-point cases to indicate that the result must be
1529 -- rounded as a result of the use of the 'Round attribute. Also used for
1530 -- integer N_Op_Divide nodes to indicate that the result should be
1531 -- rounded to the nearest integer (breaking ties away from zero), rather
1532 -- than truncated towards zero as usual. These rounded integer operations
1533 -- are the result of expansion of rounded fixed-point divide, conversion
1534 -- and multiplication operations.
1535
1536 -- Scope (Node3-Sem)
1537 -- Present in defining identifiers, defining character literals and
1538 -- defining operator symbols (i.e. in all entities). The entities of a
1539 -- scope all use this field to reference the corresponding scope entity.
1540 -- See Einfo for further details.
1541
1542 -- Shift_Count_OK (Flag4-Sem)
1543 -- A flag present in shift nodes to indicate that the shift count is
1544 -- known to be in range, i.e. is in the range from zero to word length
1545 -- minus one. If this flag is not set, then the shift count may be
1546 -- outside this range, i.e. larger than the word length, and the code
1547 -- must ensure that such shift counts give the appropriate result.
1548
1549 -- Source_Type (Node1-Sem)
1550 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1551 -- source type entity for the unchecked conversion instantiation
1552 -- which gigi must do size validation for.
1553
1554 -- Static_Processing_OK (Flag4-Sem)
1555 -- Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1556 -- flag is set, the full value of the aggregate can be determined at
1557 -- compile time and the aggregate can be passed as is to the back-end.
1558 -- In this event it is irrelevant whether this flag is set or not.
1559 -- However, if the flag Compile_Time_Known_Aggregate is not set but
1560 -- Static_Processing_OK is set, the aggregate can (but need not) be
1561 -- converted into a compile time known aggregate by the expander. See
1562 -- Sem_Aggr for the specific conditions under which an aggregate has its
1563 -- Static_Processing_OK flag set.
1564
1565 -- Storage_Pool (Node1-Sem)
1566 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1567 -- and N_Extended_Return_Statement nodes. References the entity for the
1568 -- storage pool to be used for the allocate or free call or for the
1569 -- allocation of the returned value from function. Empty indicates that
1570 -- the global default default pool is to be used. Note that in the case
1571 -- of a return statement, this field is set only if the function returns
1572 -- value of a type whose size is not known at compile time on the
1573 -- secondary stack.
1574
1575 -- Target_Type (Node2-Sem)
1576 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1577 -- type entity for the unchecked conversion instantiation which gigi must
1578 -- do size validation for.
1579
1580 -- Then_Actions (List3-Sem)
1581 -- This field is present in conditional expression nodes. During code
1582 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1583 -- actions at an appropriate place in the tree to get elaborated at the
1584 -- right time. For conditional expressions, we have to be sure that the
1585 -- actions for the Then branch are only elaborated if the condition is
1586 -- True. The Then_Actions field is used as a temporary parking place for
1587 -- these actions. The final tree is always rewritten to eliminate the
1588 -- need for this field, so in the tree passed to Gigi, this field is
1589 -- always set to No_List.
1590
1591 -- Treat_Fixed_As_Integer (Flag14-Sem)
1592 -- This flag appears in operator nodes for divide, multiply, mod and rem
1593 -- on fixed-point operands. It indicates that the operands are to be
1594 -- treated as integer values, ignoring small values. This flag is only
1595 -- set as a result of expansion of fixed-point operations. Typically a
1596 -- fixed-point multplication in the source generates subsidiary
1597 -- multiplication and division operations that work with the underlying
1598 -- integer values and have this flag set. Note that this flag is not
1599 -- needed on other arithmetic operations (add, neg, subtract etc) since
1600 -- in these cases it is always the case that fixed is treated as integer.
1601 -- The Etype field MUST be set if this flag is set. The analyzer knows to
1602 -- leave such nodes alone, and whoever makes them must set the correct
1603 -- Etype value.
1604
1605 -- TSS_Elist (Elist3-Sem)
1606 -- Present in N_Freeze_Entity nodes. Holds an element list containing
1607 -- entries for each TSS (type support subprogram) associated with the
1608 -- frozen type. The elements of the list are the entities for the
1609 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
1610 -- if there are no type support subprograms for the type or if the freeze
1611 -- node is not for a type.
1612
1613 -- Unreferenced_In_Spec (Flag7-Sem)
1614 -- Present in N_With_Clause nodes. Set if the with clause is on the
1615 -- package or subprogram spec where the main unit is the corresponding
1616 -- body, and is not referenced by the spec (it may still be referenced by
1617 -- the body, so this flag is used to generate the proper message (see
1618 -- Sem_Util.Check_Unused_Withs for details)
1619
1620 -- Was_Originally_Stub (Flag13-Sem)
1621 -- This flag is set in the node for a proper body that replaces stub.
1622 -- During the analysis procedure, stubs in some situations get rewritten
1623 -- by the corresponding bodies, and we set this flag to remember that
1624 -- this happened. Note that it is not good enough to rely on the use of
1625 -- Original_Node here because of the case of nested instantiations where
1626 -- the substituted node can be copied.
1627
1628 -- Zero_Cost_Handling (Flag5-Sem)
1629 -- This flag is set in all handled sequence of statement and exception
1630 -- handler nodes if eceptions are to be handled using the zero-cost
1631 -- mechanism (see Ada.Exceptions and System.Exceptions in files
1632 -- a-except.ads/adb and s-except.ads for full details). What gigi needs
1633 -- to do for such a handler is simply to put the code in the handler
1634 -- somewhere. The front end has generated all necessary labels.
1635
1636 --------------------------------------------------
1637 -- Note on Use of End_Label and End_Span Fields --
1638 --------------------------------------------------
1639
1640 -- Several constructs have end lines:
1641
1642 -- Loop Statement end loop [loop_IDENTIFIER];
1643 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
1644 -- Task Definition end [task_IDENTIFIER]
1645 -- Protected Definition end [protected_IDENTIFIER]
1646 -- Protected Body end [protected_IDENTIFIER]
1647
1648 -- Block Statement end [block_IDENTIFIER];
1649 -- Subprogram Body end [DESIGNATOR];
1650 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
1651 -- Task Body end [task_IDENTIFIER];
1652 -- Accept Statement end [entry_IDENTIFIER]];
1653 -- Entry Body end [entry_IDENTIFIER];
1654
1655 -- If Statement end if;
1656 -- Case Statement end case;
1657
1658 -- Record Definition end record;
1659 -- Enumeration Definition );
1660
1661 -- The End_Label and End_Span fields are used to mark the locations of
1662 -- these lines, and also keep track of the label in the case where a label
1663 -- is present.
1664
1665 -- For the first group above, the End_Label field of the corresponding node
1666 -- is used to point to the label identifier. In the case where there is no
1667 -- label in the source, the parser supplies a dummy identifier (with
1668 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
1669 -- marks the location of the token following the END token.
1670
1671 -- For the second group, the use of End_Label is similar, but the End_Label
1672 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
1673 -- simply because in some cases there is no room in the parent node.
1674
1675 -- For the third group, there is never any label, and instead of using
1676 -- End_Label, we use the End_Span field which gives the location of the
1677 -- token following END, relative to the starting Sloc of the construct,
1678 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1679 -- following the End_Label.
1680
1681 -- The record definition case is handled specially, we treat it as though
1682 -- it required an optional label which is never present, and so the parser
1683 -- always builds a dummy identifier with Comes From Source set False. The
1684 -- reason we do this, rather than using End_Span in this case, is that we
1685 -- want to generate a cross-ref entry for the end of a record, since it
1686 -- represents a scope for name declaration purposes.
1687
1688 -- The enumeration definition case is handled in an exactly similar manner,
1689 -- building a dummy identifier to get a cross-reference.
1690
1691 -- Note: the reason we store the difference as a Uint, instead of storing
1692 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
1693 -- distinguished from other types of values, and we count on all general
1694 -- use fields being self describing. To make things easier for clients,
1695 -- note that we provide function End_Location, and procedure
1696 -- Set_End_Location to allow access to the logical value (which is the
1697 -- Source_Ptr value for the end token).
1698
1699 ---------------------
1700 -- Syntactic Nodes --
1701 ---------------------
1702
1703 ---------------------
1704 -- 2.3 Identifier --
1705 ---------------------
1706
1707 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1708 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1709
1710 -- An IDENTIFIER shall not be a reserved word
1711
1712 -- In the Ada grammar identifiers are the bottom level tokens which have
1713 -- very few semantics. Actual program identifiers are direct names. If
1714 -- we were being 100% honest with the grammar, then we would have a node
1715 -- called N_Direct_Name which would point to an identifier. However,
1716 -- that's too many extra nodes, so we just use the N_Identifier node
1717 -- directly as a direct name, and it contains the expression fields and
1718 -- Entity field that correspond to its use as a direct name. In those
1719 -- few cases where identifiers appear in contexts where they are not
1720 -- direct names (pragmas, pragma argument associations, attribute
1721 -- references and attribute definition clauses), the Chars field of the
1722 -- node contains the Name_Id for the identifier name.
1723
1724 -- Note: in GNAT, a reserved word can be treated as an identifier in two
1725 -- cases. First, an incorrect use of a reserved word as an identifier is
1726 -- diagnosed and then treated as a normal identifier. Second, an
1727 -- attribute designator of the form of a reserved word (access, delta,
1728 -- digits, range) is treated as an identifier.
1729
1730 -- Note: The set of letters that is permitted in an identifier depends
1731 -- on the character set in use. See package Csets for full details.
1732
1733 -- N_Identifier
1734 -- Sloc points to identifier
1735 -- Chars (Name1) contains the Name_Id for the identifier
1736 -- Entity (Node4-Sem)
1737 -- Associated_Node (Node4-Sem)
1738 -- Original_Discriminant (Node2-Sem)
1739 -- Redundant_Use (Flag13-Sem)
1740 -- Has_Private_View (Flag11-Sem) (set in generic units)
1741 -- plus fields for expression
1742
1743 --------------------------
1744 -- 2.4 Numeric Literal --
1745 --------------------------
1746
1747 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1748
1749 ----------------------------
1750 -- 2.4.1 Decimal Literal --
1751 ----------------------------
1752
1753 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1754
1755 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1756
1757 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1758
1759 -- Decimal literals appear in the tree as either integer literal nodes
1760 -- or real literal nodes, depending on whether a period is present.
1761
1762 -- Note: literal nodes appear as a result of direct use of literals
1763 -- in the source program, and also as the result of evaluating
1764 -- expressions at compile time. In the latter case, it is possible
1765 -- to construct real literals that have no syntactic representation
1766 -- using the standard literal format. Such literals are listed by
1767 -- Sprint using the notation [numerator / denominator].
1768
1769 -- Note: the value of an integer literal node created by the front end
1770 -- is never outside the range of values of the base type. However, it
1771 -- can be the case that the value is outside the range of the
1772 -- particular subtype. This happens in the case of integer overflows
1773 -- with checks suppressed.
1774
1775 -- N_Integer_Literal
1776 -- Sloc points to literal
1777 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1778 -- has been constant-folded into its literal value.
1779 -- Intval (Uint3) contains integer value of literal
1780 -- plus fields for expression
1781 -- Print_In_Hex (Flag13-Sem)
1782
1783 -- N_Real_Literal
1784 -- Sloc points to literal
1785 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1786 -- has been constant-folded into its literal value.
1787 -- Realval (Ureal3) contains real value of literal
1788 -- Corresponding_Integer_Value (Uint4-Sem)
1789 -- Is_Machine_Number (Flag11-Sem)
1790 -- plus fields for expression
1791
1792 --------------------------
1793 -- 2.4.2 Based Literal --
1794 --------------------------
1795
1796 -- BASED_LITERAL ::=
1797 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1798
1799 -- BASE ::= NUMERAL
1800
1801 -- BASED_NUMERAL ::=
1802 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1803
1804 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1805
1806 -- Based literals appear in the tree as either integer literal nodes
1807 -- or real literal nodes, depending on whether a period is present.
1808
1809 ----------------------------
1810 -- 2.5 Character Literal --
1811 ----------------------------
1812
1813 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1814
1815 -- N_Character_Literal
1816 -- Sloc points to literal
1817 -- Chars (Name1) contains the Name_Id for the identifier
1818 -- Char_Literal_Value (Uint2) contains the literal value
1819 -- Entity (Node4-Sem)
1820 -- Associated_Node (Node4-Sem)
1821 -- Has_Private_View (Flag11-Sem) set in generic units.
1822 -- plus fields for expression
1823
1824 -- Note: the Entity field will be missing (set to Empty) for character
1825 -- literals whose type is Standard.Wide_Character or Standard.Character
1826 -- or a type derived from one of these two. In this case the character
1827 -- literal stands for its own coding. The reason we take this irregular
1828 -- short cut is to avoid the need to build lots of junk defining
1829 -- character literal nodes.
1830
1831 -------------------------
1832 -- 2.6 String Literal --
1833 -------------------------
1834
1835 -- STRING LITERAL ::= "{STRING_ELEMENT}"
1836
1837 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
1838 -- single GRAPHIC_CHARACTER other than a quotation mark.
1839 --
1840 -- Is_Folded_In_Parser is True if the parser created this literal by
1841 -- folding a sequence of "&" operators. For example, if the source code
1842 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
1843 -- is set. This flag is needed because the parser doesn't know about
1844 -- visibility, so the folded result might be wrong, and semantic
1845 -- analysis needs to check for that.
1846
1847 -- N_String_Literal
1848 -- Sloc points to literal
1849 -- Strval (Str3) contains Id of string value
1850 -- Has_Wide_Character (Flag11-Sem)
1851 -- Is_Folded_In_Parser (Flag4)
1852 -- plus fields for expression
1853
1854 ------------------
1855 -- 2.7 Comment --
1856 ------------------
1857
1858 -- A COMMENT starts with two adjacent hyphens and extends up to the
1859 -- end of the line. A COMMENT may appear on any line of a program.
1860
1861 -- Comments are skipped by the scanner and do not appear in the tree.
1862 -- It is possible to reconstruct the position of comments with respect
1863 -- to the elements of the tree by using the source position (Sloc)
1864 -- pointers that appear in every tree node.
1865
1866 -----------------
1867 -- 2.8 Pragma --
1868 -----------------
1869
1870 -- PRAGMA ::= pragma IDENTIFIER
1871 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
1872
1873 -- Note that a pragma may appear in the tree anywhere a declaration
1874 -- or a statement may appear, as well as in some other situations
1875 -- which are explicitly documented.
1876
1877 -- N_Pragma
1878 -- Sloc points to pragma identifier
1879 -- Chars (Name1) identifier name from pragma identifier
1880 -- Pragma_Argument_Associations (List2) (set to No_List if none)
1881 -- Debug_Statement (Node3) (set to Empty if not Debug, Assert)
1882 -- Pragma_Identifier (Node4)
1883 -- Next_Rep_Item (Node5-Sem)
1884
1885 -- Note: we should have a section on what pragmas are passed on to
1886 -- the back end to be processed. This section should note that pragma
1887 -- Psect_Object is always converted to Common_Object, but there are
1888 -- undoubtedly many other similar notes required ???
1889
1890 -- Note: we don't really need the Chars field, since it can trivially
1891 -- be obtained as Chars (Pragma_Identifier (Node)). However, it is
1892 -- convenient to have this directly available, and historically the
1893 -- Chars field has been around for ever, whereas the Pragma_Identifier
1894 -- field was added much later (when we found the need to be able to get
1895 -- the Sloc of the pragma identifier).
1896
1897 --------------------------------------
1898 -- 2.8 Pragma Argument Association --
1899 --------------------------------------
1900
1901 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
1902 -- [pragma_argument_IDENTIFIER =>] NAME
1903 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
1904
1905 -- N_Pragma_Argument_Association
1906 -- Sloc points to first token in association
1907 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
1908 -- Expression (Node3)
1909
1910 ------------------------
1911 -- 2.9 Reserved Word --
1912 ------------------------
1913
1914 -- Reserved words are parsed by the scanner, and returned as the
1915 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
1916
1917 ----------------------------
1918 -- 3.1 Basic Declaration --
1919 ----------------------------
1920
1921 -- BASIC_DECLARATION ::=
1922 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
1923 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
1924 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
1925 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
1926 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
1927 -- | GENERIC_INSTANTIATION
1928
1929 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
1930 -- see further description in section on semantic nodes.
1931
1932 -- Also, in the tree that is constructed, a pragma may appear
1933 -- anywhere that a declaration may appear.
1934
1935 ------------------------------
1936 -- 3.1 Defining Identifier --
1937 ------------------------------
1938
1939 -- DEFINING_IDENTIFIER ::= IDENTIFIER
1940
1941 -- A defining identifier is an entity, which has additional fields
1942 -- depending on the setting of the Ekind field. These additional
1943 -- fields are defined (and access subprograms declared) in package
1944 -- Einfo.
1945
1946 -- Note: N_Defining_Identifier is an extended node whose fields are
1947 -- deliberate layed out to match the layout of fields in an ordinary
1948 -- N_Identifier node allowing for easy alteration of an identifier
1949 -- node into a defining identifier node. For details, see procedure
1950 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
1951
1952 -- N_Defining_Identifier
1953 -- Sloc points to identifier
1954 -- Chars (Name1) contains the Name_Id for the identifier
1955 -- Next_Entity (Node2-Sem)
1956 -- Scope (Node3-Sem)
1957 -- Etype (Node5-Sem)
1958
1959 -----------------------------
1960 -- 3.2.1 Type Declaration --
1961 -----------------------------
1962
1963 -- TYPE_DECLARATION ::=
1964 -- FULL_TYPE_DECLARATION
1965 -- | INCOMPLETE_TYPE_DECLARATION
1966 -- | PRIVATE_TYPE_DECLARATION
1967 -- | PRIVATE_EXTENSION_DECLARATION
1968
1969 ----------------------------------
1970 -- 3.2.1 Full Type Declaration --
1971 ----------------------------------
1972
1973 -- FULL_TYPE_DECLARATION ::=
1974 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
1975 -- is TYPE_DEFINITION;
1976 -- | TASK_TYPE_DECLARATION
1977 -- | PROTECTED_TYPE_DECLARATION
1978
1979 -- The full type declaration node is used only for the first case. The
1980 -- second case (concurrent type declaration), is represented directly
1981 -- by a task type declaration or a protected type declaration.
1982
1983 -- N_Full_Type_Declaration
1984 -- Sloc points to TYPE
1985 -- Defining_Identifier (Node1)
1986 -- Discriminant_Specifications (List4) (set to No_List if none)
1987 -- Type_Definition (Node3)
1988 -- Discr_Check_Funcs_Built (Flag11-Sem)
1989
1990 ----------------------------
1991 -- 3.2.1 Type Definition --
1992 ----------------------------
1993
1994 -- TYPE_DEFINITION ::=
1995 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
1996 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
1997 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
1998 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
1999
2000 --------------------------------
2001 -- 3.2.2 Subtype Declaration --
2002 --------------------------------
2003
2004 -- SUBTYPE_DECLARATION ::=
2005 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
2006
2007 -- The subtype indication field is set to Empty for subtypes
2008 -- declared in package Standard (Positive, Natural).
2009
2010 -- N_Subtype_Declaration
2011 -- Sloc points to SUBTYPE
2012 -- Defining_Identifier (Node1)
2013 -- Null_Exclusion_Present (Flag11)
2014 -- Subtype_Indication (Node5)
2015 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2016 -- Exception_Junk (Flag8-Sem)
2017
2018 -------------------------------
2019 -- 3.2.2 Subtype Indication --
2020 -------------------------------
2021
2022 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2023
2024 -- Note: if no constraint is present, the subtype indication appears
2025 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2026 -- node is used only if a constraint is present.
2027
2028 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2029 -- with the null-exclusion part (see AI-231), we had to introduce a new
2030 -- attribute in all the parents of subtype_indication nodes to indicate
2031 -- if the null-exclusion is present.
2032
2033 -- Note: the reason that this node has expression fields is that a
2034 -- subtype indication can appear as an operand of a membership test.
2035
2036 -- N_Subtype_Indication
2037 -- Sloc points to first token of subtype mark
2038 -- Subtype_Mark (Node4)
2039 -- Constraint (Node3)
2040 -- Etype (Node5-Sem)
2041 -- Must_Not_Freeze (Flag8-Sem)
2042
2043 -- Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2044 -- reason for this redundancy is so that in a list of array index types,
2045 -- the Etype can be uniformly accessed to determine the subscript type.
2046 -- This means that no Itype is constructed for the actual subtype that
2047 -- is created by the subtype indication. If such an Itype is required,
2048 -- it is constructed in the context in which the indication appears.
2049
2050 -------------------------
2051 -- 3.2.2 Subtype Mark --
2052 -------------------------
2053
2054 -- SUBTYPE_MARK ::= subtype_NAME
2055
2056 -----------------------
2057 -- 3.2.2 Constraint --
2058 -----------------------
2059
2060 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2061
2062 ------------------------------
2063 -- 3.2.2 Scalar Constraint --
2064 ------------------------------
2065
2066 -- SCALAR_CONSTRAINT ::=
2067 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2068
2069 ---------------------------------
2070 -- 3.2.2 Composite Constraint --
2071 ---------------------------------
2072
2073 -- COMPOSITE_CONSTRAINT ::=
2074 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2075
2076 -------------------------------
2077 -- 3.3.1 Object Declaration --
2078 -------------------------------
2079
2080 -- OBJECT_DECLARATION ::=
2081 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2082 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION];
2083 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2084 -- ACCESS_DEFINITION [:= EXPRESSION];
2085 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2086 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION];
2087 -- | SINGLE_TASK_DECLARATION
2088 -- | SINGLE_PROTECTED_DECLARATION
2089
2090 -- Note: aliased is not permitted in Ada 83 mode
2091
2092 -- The N_Object_Declaration node is only for the first two cases.
2093 -- Single task declaration is handled by P_Task (9.1)
2094 -- Single protected declaration is handled by P_protected (9.5)
2095
2096 -- Although the syntax allows multiple identifiers in the list, the
2097 -- semantics is as though successive declarations were given with
2098 -- identical type definition and expression components. To simplify
2099 -- semantic processing, the parser represents a multiple declaration
2100 -- case as a sequence of single declarations, using the More_Ids and
2101 -- Prev_Ids flags to preserve the original source form as described
2102 -- in the section on "Handling of Defining Identifier Lists".
2103
2104 -- The flag Has_Init_Expression is set if an initializing expression
2105 -- is present. Normally it is set if and only if Expression contains
2106 -- a non-empty value, but there is an exception to this. When the
2107 -- initializing expression is an aggregate which requires explicit
2108 -- assignments, the Expression field gets set to Empty, but this flag
2109 -- is still set, so we don't forget we had an initializing expression.
2110
2111 -- Note: if a range check is required for the initialization
2112 -- expression then the Do_Range_Check flag is set in the Expression,
2113 -- with the check being done against the type given by the object
2114 -- definition, which is also the Etype of the defining identifier.
2115
2116 -- Note: the contents of the Expression field must be ignored (i.e.
2117 -- treated as though it were Empty) if No_Initialization is set True.
2118
2119 -- Note: the back end places some restrictions on the form of the
2120 -- Expression field. If the object being declared is Atomic, then
2121 -- the Expression may not have the form of an aggregate (since this
2122 -- might cause the back end to generate separate assignments). It
2123 -- also cannot be a reference to an object marked as a true constant
2124 -- (Is_True_Constant flag set), where the object is itself initalized
2125 -- with an aggregate. If necessary the front end must generate an
2126 -- extra temporary (with Is_True_Constant set False), and initialize
2127 -- this temporary as required (the temporary itself is not atomic).
2128
2129 -- Note: there is not node kind for object definition. Instead, the
2130 -- corresponding field holds a subtype indication, an array type
2131 -- definition, or (Ada 2005, AI-406) an access definition.
2132
2133 -- N_Object_Declaration
2134 -- Sloc points to first identifier
2135 -- Defining_Identifier (Node1)
2136 -- Aliased_Present (Flag4) set if ALIASED appears
2137 -- Constant_Present (Flag17) set if CONSTANT appears
2138 -- Null_Exclusion_Present (Flag11)
2139 -- Object_Definition (Node4) subtype indic./array type def./ access def.
2140 -- Expression (Node3) (set to Empty if not present)
2141 -- Handler_List_Entry (Node2-Sem)
2142 -- Corresponding_Generic_Association (Node5-Sem)
2143 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2144 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2145 -- No_Initialization (Flag13-Sem)
2146 -- Assignment_OK (Flag15-Sem)
2147 -- Exception_Junk (Flag8-Sem)
2148 -- Is_Subprogram_Descriptor (Flag16-Sem)
2149 -- Has_Init_Expression (Flag14)
2150
2151 -------------------------------------
2152 -- 3.3.1 Defining Identifier List --
2153 -------------------------------------
2154
2155 -- DEFINING_IDENTIFIER_LIST ::=
2156 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2157
2158 -------------------------------
2159 -- 3.3.2 Number Declaration --
2160 -------------------------------
2161
2162 -- NUMBER_DECLARATION ::=
2163 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2164
2165 -- Although the syntax allows multiple identifiers in the list, the
2166 -- semantics is as though successive declarations were given with
2167 -- identical expressions. To simplify semantic processing, the parser
2168 -- represents a multiple declaration case as a sequence of single
2169 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2170 -- the original source form as described in the section on "Handling
2171 -- of Defining Identifier Lists".
2172
2173 -- N_Number_Declaration
2174 -- Sloc points to first identifier
2175 -- Defining_Identifier (Node1)
2176 -- Expression (Node3)
2177 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2178 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2179
2180 ----------------------------------
2181 -- 3.4 Derived Type Definition --
2182 ----------------------------------
2183
2184 -- DERIVED_TYPE_DEFINITION ::=
2185 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2186 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2187
2188 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2189 -- in Ada 83 mode
2190
2191 -- Note: a record extension part is required if ABSTRACT is present
2192
2193 -- N_Derived_Type_Definition
2194 -- Sloc points to NEW
2195 -- Abstract_Present (Flag4)
2196 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2197 -- Subtype_Indication (Node5)
2198 -- Record_Extension_Part (Node3) (set to Empty if not present)
2199 -- Limited_Present (Flag17)
2200 -- Task_Present (Flag5) set in task interfaces
2201 -- Protected_Present (Flag6) set in protected interfaces
2202 -- Synchronized_Present (Flag7) set in interfaces
2203 -- Interface_List (List2) (set to No_List if none)
2204 -- Interface_Present (Flag16) set in abstract interfaces
2205
2206 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2207 -- Interface_List, and Interface_Present are used for abstract
2208 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2209
2210 ---------------------------
2211 -- 3.5 Range Constraint --
2212 ---------------------------
2213
2214 -- RANGE_CONSTRAINT ::= range RANGE
2215
2216 -- N_Range_Constraint
2217 -- Sloc points to RANGE
2218 -- Range_Expression (Node4)
2219
2220 ----------------
2221 -- 3.5 Range --
2222 ----------------
2223
2224 -- RANGE ::=
2225 -- RANGE_ATTRIBUTE_REFERENCE
2226 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2227
2228 -- Note: the case of a range given as a range attribute reference
2229 -- appears directly in the tree as an attribute reference.
2230
2231 -- Note: the field name for a reference to a range is Range_Expression
2232 -- rather than Range, because range is a reserved keyword in Ada!
2233
2234 -- Note: the reason that this node has expression fields is that a
2235 -- range can appear as an operand of a membership test. The Etype
2236 -- field is the type of the range (we do NOT construct an implicit
2237 -- subtype to represent the range exactly).
2238
2239 -- N_Range
2240 -- Sloc points to ..
2241 -- Low_Bound (Node1)
2242 -- High_Bound (Node2)
2243 -- Includes_Infinities (Flag11)
2244 -- plus fields for expression
2245
2246 -- Note: if the range appears in a context, such as a subtype
2247 -- declaration, where range checks are required on one or both of
2248 -- the expression fields, then type conversion nodes are inserted
2249 -- to represent the required checks.
2250
2251 ----------------------------------------
2252 -- 3.5.1 Enumeration Type Definition --
2253 ----------------------------------------
2254
2255 -- ENUMERATION_TYPE_DEFINITION ::=
2256 -- (ENUMERATION_LITERAL_SPECIFICATION
2257 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2258
2259 -- Note: the Literals field in the node described below is null for
2260 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2261 -- which special processing handles these types as special cases.
2262
2263 -- N_Enumeration_Type_Definition
2264 -- Sloc points to left parenthesis
2265 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2266 -- End_Label (Node4) (set to Empty if internally generated record)
2267
2268 ----------------------------------------------
2269 -- 3.5.1 Enumeration Literal Specification --
2270 ----------------------------------------------
2271
2272 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2273 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2274
2275 ---------------------------------------
2276 -- 3.5.1 Defining Character Literal --
2277 ---------------------------------------
2278
2279 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2280
2281 -- A defining character literal is an entity, which has additional
2282 -- fields depending on the setting of the Ekind field. These
2283 -- additional fields are defined (and access subprograms declared)
2284 -- in package Einfo.
2285
2286 -- Note: N_Defining_Character_Literal is an extended node whose fields
2287 -- are deliberate layed out to match the layout of fields in an ordinary
2288 -- N_Character_Literal node allowing for easy alteration of a character
2289 -- literal node into a defining character literal node. For details, see
2290 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2291
2292 -- N_Defining_Character_Literal
2293 -- Sloc points to literal
2294 -- Chars (Name1) contains the Name_Id for the identifier
2295 -- Next_Entity (Node2-Sem)
2296 -- Scope (Node3-Sem)
2297 -- Etype (Node5-Sem)
2298
2299 ------------------------------------
2300 -- 3.5.4 Integer Type Definition --
2301 ------------------------------------
2302
2303 -- Note: there is an error in this rule in the latest version of the
2304 -- grammar, so we have retained the old rule pending clarification.
2305
2306 -- INTEGER_TYPE_DEFINITION ::=
2307 -- SIGNED_INTEGER_TYPE_DEFINITION
2308 -- | MODULAR_TYPE_DEFINITION
2309
2310 -------------------------------------------
2311 -- 3.5.4 Signed Integer Type Definition --
2312 -------------------------------------------
2313
2314 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2315 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2316
2317 -- Note: the Low_Bound and High_Bound fields are set to Empty
2318 -- for integer types defined in package Standard.
2319
2320 -- N_Signed_Integer_Type_Definition
2321 -- Sloc points to RANGE
2322 -- Low_Bound (Node1)
2323 -- High_Bound (Node2)
2324
2325 ------------------------------------
2326 -- 3.5.4 Modular Type Definition --
2327 ------------------------------------
2328
2329 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2330
2331 -- N_Modular_Type_Definition
2332 -- Sloc points to MOD
2333 -- Expression (Node3)
2334
2335 ---------------------------------
2336 -- 3.5.6 Real Type Definition --
2337 ---------------------------------
2338
2339 -- REAL_TYPE_DEFINITION ::=
2340 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2341
2342 --------------------------------------
2343 -- 3.5.7 Floating Point Definition --
2344 --------------------------------------
2345
2346 -- FLOATING_POINT_DEFINITION ::=
2347 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2348
2349 -- Note: The Digits_Expression and Real_Range_Specifications fields
2350 -- are set to Empty for floating-point types declared in Standard.
2351
2352 -- N_Floating_Point_Definition
2353 -- Sloc points to DIGITS
2354 -- Digits_Expression (Node2)
2355 -- Real_Range_Specification (Node4) (set to Empty if not present)
2356
2357 -------------------------------------
2358 -- 3.5.7 Real Range Specification --
2359 -------------------------------------
2360
2361 -- REAL_RANGE_SPECIFICATION ::=
2362 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2363
2364 -- N_Real_Range_Specification
2365 -- Sloc points to RANGE
2366 -- Low_Bound (Node1)
2367 -- High_Bound (Node2)
2368
2369 -----------------------------------
2370 -- 3.5.9 Fixed Point Definition --
2371 -----------------------------------
2372
2373 -- FIXED_POINT_DEFINITION ::=
2374 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2375
2376 --------------------------------------------
2377 -- 3.5.9 Ordinary Fixed Point Definition --
2378 --------------------------------------------
2379
2380 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2381 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2382
2383 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2384
2385 -- N_Ordinary_Fixed_Point_Definition
2386 -- Sloc points to DELTA
2387 -- Delta_Expression (Node3)
2388 -- Real_Range_Specification (Node4)
2389
2390 -------------------------------------------
2391 -- 3.5.9 Decimal Fixed Point Definition --
2392 -------------------------------------------
2393
2394 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2395 -- delta static_EXPRESSION
2396 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2397
2398 -- Note: decimal types are not permitted in Ada 83 mode
2399
2400 -- N_Decimal_Fixed_Point_Definition
2401 -- Sloc points to DELTA
2402 -- Delta_Expression (Node3)
2403 -- Digits_Expression (Node2)
2404 -- Real_Range_Specification (Node4) (set to Empty if not present)
2405
2406 ------------------------------
2407 -- 3.5.9 Digits Constraint --
2408 ------------------------------
2409
2410 -- DIGITS_CONSTRAINT ::=
2411 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2412
2413 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2414 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2415
2416 -- N_Digits_Constraint
2417 -- Sloc points to DIGITS
2418 -- Digits_Expression (Node2)
2419 -- Range_Constraint (Node4) (set to Empty if not present)
2420
2421 --------------------------------
2422 -- 3.6 Array Type Definition --
2423 --------------------------------
2424
2425 -- ARRAY_TYPE_DEFINITION ::=
2426 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2427
2428 -----------------------------------------
2429 -- 3.6 Unconstrained Array Definition --
2430 -----------------------------------------
2431
2432 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2433 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2434 -- COMPONENT_DEFINITION
2435
2436 -- Note: dimensionality of array is indicated by number of entries in
2437 -- the Subtype_Marks list, which has one entry for each dimension.
2438
2439 -- N_Unconstrained_Array_Definition
2440 -- Sloc points to ARRAY
2441 -- Subtype_Marks (List2)
2442 -- Component_Definition (Node4)
2443
2444 -----------------------------------
2445 -- 3.6 Index Subtype Definition --
2446 -----------------------------------
2447
2448 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2449
2450 -- There is no explicit node in the tree for an index subtype
2451 -- definition since the N_Unconstrained_Array_Definition node
2452 -- incorporates the type marks which appear in this context.
2453
2454 ---------------------------------------
2455 -- 3.6 Constrained Array Definition --
2456 ---------------------------------------
2457
2458 -- CONSTRAINED_ARRAY_DEFINITION ::=
2459 -- array (DISCRETE_SUBTYPE_DEFINITION
2460 -- {, DISCRETE_SUBTYPE_DEFINITION})
2461 -- of COMPONENT_DEFINITION
2462
2463 -- Note: dimensionality of array is indicated by number of entries
2464 -- in the Discrete_Subtype_Definitions list, which has one entry
2465 -- for each dimension.
2466
2467 -- N_Constrained_Array_Definition
2468 -- Sloc points to ARRAY
2469 -- Discrete_Subtype_Definitions (List2)
2470 -- Component_Definition (Node4)
2471
2472 --------------------------------------
2473 -- 3.6 Discrete Subtype Definition --
2474 --------------------------------------
2475
2476 -- DISCRETE_SUBTYPE_DEFINITION ::=
2477 -- discrete_SUBTYPE_INDICATION | RANGE
2478
2479 -------------------------------
2480 -- 3.6 Component Definition --
2481 -------------------------------
2482
2483 -- COMPONENT_DEFINITION ::=
2484 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2485
2486 -- Note: although the syntax does not permit a component definition to
2487 -- be an anonymous array (and the parser will diagnose such an attempt
2488 -- with an appropriate message), it is possible for anonymous arrays
2489 -- to appear as component definitions. The semantics and back end handle
2490 -- this case properly, and the expander in fact generates such cases.
2491 -- Access_Definition is an optional field that gives support to
2492 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2493 -- Subtype_Indication field or else the Access_Definition field.
2494
2495 -- N_Component_Definition
2496 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2497 -- Aliased_Present (Flag4)
2498 -- Null_Exclusion_Present (Flag11)
2499 -- Subtype_Indication (Node5) (set to Empty if not present)
2500 -- Access_Definition (Node3) (set to Empty if not present)
2501
2502 -----------------------------
2503 -- 3.6.1 Index Constraint --
2504 -----------------------------
2505
2506 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2507
2508 -- It is not in general possible to distinguish between discriminant
2509 -- constraints and index constraints at parse time, since a simple
2510 -- name could be either the subtype mark of a discrete range, or an
2511 -- expression in a discriminant association with no name. Either
2512 -- entry appears simply as the name, and the semantic parse must
2513 -- distinguish between the two cases. Thus we use a common tree
2514 -- node format for both of these constraint types.
2515
2516 -- See Discriminant_Constraint for format of node
2517
2518 ---------------------------
2519 -- 3.6.1 Discrete Range --
2520 ---------------------------
2521
2522 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2523
2524 ----------------------------
2525 -- 3.7 Discriminant Part --
2526 ----------------------------
2527
2528 -- DISCRIMINANT_PART ::=
2529 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2530
2531 ------------------------------------
2532 -- 3.7 Unknown Discriminant Part --
2533 ------------------------------------
2534
2535 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2536
2537 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2538
2539 -- There is no explicit node in the tree for an unknown discriminant
2540 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2541 -- parent node.
2542
2543 ----------------------------------
2544 -- 3.7 Known Discriminant Part --
2545 ----------------------------------
2546
2547 -- KNOWN_DISCRIMINANT_PART ::=
2548 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2549
2550 -------------------------------------
2551 -- 3.7 Discriminant Specification --
2552 -------------------------------------
2553
2554 -- DISCRIMINANT_SPECIFICATION ::=
2555 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2556 -- [:= DEFAULT_EXPRESSION]
2557 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2558 -- [:= DEFAULT_EXPRESSION]
2559
2560 -- Although the syntax allows multiple identifiers in the list, the
2561 -- semantics is as though successive specifications were given with
2562 -- identical type definition and expression components. To simplify
2563 -- semantic processing, the parser represents a multiple declaration
2564 -- case as a sequence of single specifications, using the More_Ids and
2565 -- Prev_Ids flags to preserve the original source form as described
2566 -- in the section on "Handling of Defining Identifier Lists".
2567
2568 -- N_Discriminant_Specification
2569 -- Sloc points to first identifier
2570 -- Defining_Identifier (Node1)
2571 -- Null_Exclusion_Present (Flag11)
2572 -- Discriminant_Type (Node5) subtype mark or access parameter definition
2573 -- Expression (Node3) (set to Empty if no default expression)
2574 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2575 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2576
2577 -----------------------------
2578 -- 3.7 Default Expression --
2579 -----------------------------
2580
2581 -- DEFAULT_EXPRESSION ::= EXPRESSION
2582
2583 ------------------------------------
2584 -- 3.7.1 Discriminant Constraint --
2585 ------------------------------------
2586
2587 -- DISCRIMINANT_CONSTRAINT ::=
2588 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2589
2590 -- It is not in general possible to distinguish between discriminant
2591 -- constraints and index constraints at parse time, since a simple
2592 -- name could be either the subtype mark of a discrete range, or an
2593 -- expression in a discriminant association with no name. Either
2594 -- entry appears simply as the name, and the semantic parse must
2595 -- distinguish between the two cases. Thus we use a common tree
2596 -- node format for both of these constraint types.
2597
2598 -- N_Index_Or_Discriminant_Constraint
2599 -- Sloc points to left paren
2600 -- Constraints (List1) points to list of discrete ranges or
2601 -- discriminant associations
2602
2603 -------------------------------------
2604 -- 3.7.1 Discriminant Association --
2605 -------------------------------------
2606
2607 -- DISCRIMINANT_ASSOCIATION ::=
2608 -- [discriminant_SELECTOR_NAME
2609 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2610
2611 -- Note: a discriminant association that has no selector name list
2612 -- appears directly as an expression in the tree.
2613
2614 -- N_Discriminant_Association
2615 -- Sloc points to first token of discriminant association
2616 -- Selector_Names (List1) (always non-empty, since if no selector
2617 -- names are present, this node is not used, see comment above)
2618 -- Expression (Node3)
2619
2620 ---------------------------------
2621 -- 3.8 Record Type Definition --
2622 ---------------------------------
2623
2624 -- RECORD_TYPE_DEFINITION ::=
2625 -- [[abstract] tagged] [limited] RECORD_DEFINITION
2626
2627 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2628
2629 -- There is no explicit node in the tree for a record type definition.
2630 -- Instead the flags for Tagged_Present and Limited_Present appear in
2631 -- the N_Record_Definition node for a record definition appearing in
2632 -- the context of a record type definition.
2633
2634 ----------------------------
2635 -- 3.8 Record Definition --
2636 ----------------------------
2637
2638 -- RECORD_DEFINITION ::=
2639 -- record
2640 -- COMPONENT_LIST
2641 -- end record
2642 -- | null record
2643
2644 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
2645 -- flags appear only for a record definition appearing in a record
2646 -- type definition.
2647
2648 -- Note: the NULL RECORD case is not permitted in Ada 83
2649
2650 -- N_Record_Definition
2651 -- Sloc points to RECORD or NULL
2652 -- End_Label (Node4) (set to Empty if internally generated record)
2653 -- Abstract_Present (Flag4)
2654 -- Tagged_Present (Flag15)
2655 -- Limited_Present (Flag17)
2656 -- Component_List (Node1) empty in null record case
2657 -- Null_Present (Flag13) set in null record case
2658 -- Task_Present (Flag5) set in task interfaces
2659 -- Protected_Present (Flag6) set in protected interfaces
2660 -- Synchronized_Present (Flag7) set in interfaces
2661 -- Interface_Present (Flag16) set in abstract interfaces
2662 -- Interface_List (List2) (set to No_List if none)
2663
2664 -- Note: Task_Present, Protected_Present, Synchronized _Present,
2665 -- Interface_List and Interface_Present are used for abstract
2666 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2667
2668 -------------------------
2669 -- 3.8 Component List --
2670 -------------------------
2671
2672 -- COMPONENT_LIST ::=
2673 -- COMPONENT_ITEM {COMPONENT_ITEM}
2674 -- | {COMPONENT_ITEM} VARIANT_PART
2675 -- | null;
2676
2677 -- N_Component_List
2678 -- Sloc points to first token of component list
2679 -- Component_Items (List3)
2680 -- Variant_Part (Node4) (set to Empty if no variant part)
2681 -- Null_Present (Flag13)
2682
2683 -------------------------
2684 -- 3.8 Component Item --
2685 -------------------------
2686
2687 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2688
2689 -- Note: A component item can also be a pragma, and in the tree
2690 -- that is obtained after semantic processing, a component item
2691 -- can be an N_Null node resulting from a non-recognized pragma.
2692
2693 --------------------------------
2694 -- 3.8 Component Declaration --
2695 --------------------------------
2696
2697 -- COMPONENT_DECLARATION ::=
2698 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2699 -- [:= DEFAULT_EXPRESSION]
2700
2701 -- Note: although the syntax does not permit a component definition to
2702 -- be an anonymous array (and the parser will diagnose such an attempt
2703 -- with an appropriate message), it is possible for anonymous arrays
2704 -- to appear as component definitions. The semantics and back end handle
2705 -- this case properly, and the expander in fact generates such cases.
2706
2707 -- Although the syntax allows multiple identifiers in the list, the
2708 -- semantics is as though successive declarations were given with the
2709 -- same component definition and expression components. To simplify
2710 -- semantic processing, the parser represents a multiple declaration
2711 -- case as a sequence of single declarations, using the More_Ids and
2712 -- Prev_Ids flags to preserve the original source form as described
2713 -- in the section on "Handling of Defining Identifier Lists".
2714
2715 -- N_Component_Declaration
2716 -- Sloc points to first identifier
2717 -- Defining_Identifier (Node1)
2718 -- Component_Definition (Node4)
2719 -- Expression (Node3) (set to Empty if no default expression)
2720 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2721 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2722
2723 -------------------------
2724 -- 3.8.1 Variant Part --
2725 -------------------------
2726
2727 -- VARIANT_PART ::=
2728 -- case discriminant_DIRECT_NAME is
2729 -- VARIANT
2730 -- {VARIANT}
2731 -- end case;
2732
2733 -- Note: the variants list can contain pragmas as well as variants.
2734 -- In a properly formed program there is at least one variant.
2735
2736 -- N_Variant_Part
2737 -- Sloc points to CASE
2738 -- Name (Node2)
2739 -- Variants (List1)
2740
2741 --------------------
2742 -- 3.8.1 Variant --
2743 --------------------
2744
2745 -- VARIANT ::=
2746 -- when DISCRETE_CHOICE_LIST =>
2747 -- COMPONENT_LIST
2748
2749 -- N_Variant
2750 -- Sloc points to WHEN
2751 -- Discrete_Choices (List4)
2752 -- Component_List (Node1)
2753 -- Enclosing_Variant (Node2-Sem)
2754 -- Present_Expr (Uint3-Sem)
2755 -- Dcheck_Function (Node5-Sem)
2756
2757 ---------------------------------
2758 -- 3.8.1 Discrete Choice List --
2759 ---------------------------------
2760
2761 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2762
2763 ----------------------------
2764 -- 3.8.1 Discrete Choice --
2765 ----------------------------
2766
2767 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2768
2769 -- Note: in Ada 83 mode, the expression must be a simple expression
2770
2771 -- The only choice that appears explicitly is the OTHERS choice, as
2772 -- defined here. Other cases of discrete choice (expression and
2773 -- discrete range) appear directly. This production is also used
2774 -- for the OTHERS possibility of an exception choice.
2775
2776 -- Note: in accordance with the syntax, the parser does not check that
2777 -- OTHERS appears at the end on its own in a choice list context. This
2778 -- is a semantic check.
2779
2780 -- N_Others_Choice
2781 -- Sloc points to OTHERS
2782 -- Others_Discrete_Choices (List1-Sem)
2783 -- All_Others (Flag11-Sem)
2784
2785 ----------------------------------
2786 -- 3.9.1 Record Extension Part --
2787 ----------------------------------
2788
2789 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2790
2791 -- Note: record extension parts are not permitted in Ada 83 mode
2792
2793 --------------------------------------
2794 -- 3.9.4 Interface Type Definition --
2795 --------------------------------------
2796
2797 -- INTERFACE_TYPE_DEFINITION ::=
2798 -- [limited | task | protected | synchronized]
2799 -- interface [interface_list]
2800
2801 -- Note: Interfaces are implemented with N_Record_Definition and
2802 -- N_Derived_Type_Definition nodes because most of the support
2803 -- for the analysis of abstract types has been reused to
2804 -- analyze abstract interfaces.
2805
2806 ----------------------------------
2807 -- 3.10 Access Type Definition --
2808 ----------------------------------
2809
2810 -- ACCESS_TYPE_DEFINITION ::=
2811 -- ACCESS_TO_OBJECT_DEFINITION
2812 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2813
2814 --------------------------
2815 -- 3.10 Null Exclusion --
2816 --------------------------
2817
2818 -- NULL_EXCLUSION ::= not null
2819
2820 ---------------------------------------
2821 -- 3.10 Access To Object Definition --
2822 ---------------------------------------
2823
2824 -- ACCESS_TO_OBJECT_DEFINITION ::=
2825 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
2826 -- SUBTYPE_INDICATION
2827
2828 -- N_Access_To_Object_Definition
2829 -- Sloc points to ACCESS
2830 -- All_Present (Flag15)
2831 -- Null_Exclusion_Present (Flag11)
2832 -- Subtype_Indication (Node5)
2833 -- Constant_Present (Flag17)
2834
2835 -----------------------------------
2836 -- 3.10 General Access Modifier --
2837 -----------------------------------
2838
2839 -- GENERAL_ACCESS_MODIFIER ::= all | constant
2840
2841 -- Note: general access modifiers are not permitted in Ada 83 mode
2842
2843 -- There is no explicit node in the tree for general access modifier.
2844 -- Instead the All_Present or Constant_Present flags are set in the
2845 -- parent node.
2846
2847 -------------------------------------------
2848 -- 3.10 Access To Subprogram Definition --
2849 -------------------------------------------
2850
2851 -- ACCESS_TO_SUBPROGRAM_DEFINITION
2852 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
2853 -- | [NULL_EXCLUSION] access [protected] function
2854 -- PARAMETER_AND_RESULT_PROFILE
2855
2856 -- Note: access to subprograms are not permitted in Ada 83 mode
2857
2858 -- N_Access_Function_Definition
2859 -- Sloc points to ACCESS
2860 -- Null_Exclusion_Present (Flag11)
2861 -- Protected_Present (Flag6)
2862 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2863 -- Result_Definition (Node4) result subtype (subtype mark or access def)
2864
2865 -- N_Access_Procedure_Definition
2866 -- Sloc points to ACCESS
2867 -- Null_Exclusion_Present (Flag11)
2868 -- Protected_Present (Flag6)
2869 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2870
2871 -----------------------------
2872 -- 3.10 Access Definition --
2873 -----------------------------
2874
2875 -- ACCESS_DEFINITION ::=
2876 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
2877 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2878
2879 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
2880
2881 -- N_Access_Definition
2882 -- Sloc points to ACCESS
2883 -- Null_Exclusion_Present (Flag11)
2884 -- All_Present (Flag15)
2885 -- Constant_Present (Flag17)
2886 -- Subtype_Mark (Node4)
2887 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
2888
2889 -----------------------------------------
2890 -- 3.10.1 Incomplete Type Declaration --
2891 -----------------------------------------
2892
2893 -- INCOMPLETE_TYPE_DECLARATION ::=
2894 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2895
2896 -- N_Incomplete_Type_Declaration
2897 -- Sloc points to TYPE
2898 -- Defining_Identifier (Node1)
2899 -- Discriminant_Specifications (List4) (set to No_List if no
2900 -- discriminant part, or if the discriminant part is an
2901 -- unknown discriminant part)
2902 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
2903 -- Tagged_Present (Flag15)
2904
2905 ----------------------------
2906 -- 3.11 Declarative Part --
2907 ----------------------------
2908
2909 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
2910
2911 -- Note: although the parser enforces the syntactic requirement that
2912 -- a declarative part can contain only declarations, the semantic
2913 -- processing may add statements to the list of actions in a
2914 -- declarative part, so the code generator should be prepared
2915 -- to accept a statement in this position.
2916
2917 ----------------------------
2918 -- 3.11 Declarative Item --
2919 ----------------------------
2920
2921 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
2922
2923 ----------------------------------
2924 -- 3.11 Basic Declarative Item --
2925 ----------------------------------
2926
2927 -- BASIC_DECLARATIVE_ITEM ::=
2928 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
2929
2930 ----------------
2931 -- 3.11 Body --
2932 ----------------
2933
2934 -- BODY ::= PROPER_BODY | BODY_STUB
2935
2936 -----------------------
2937 -- 3.11 Proper Body --
2938 -----------------------
2939
2940 -- PROPER_BODY ::=
2941 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
2942
2943 ---------------
2944 -- 4.1 Name --
2945 ---------------
2946
2947 -- NAME ::=
2948 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
2949 -- | INDEXED_COMPONENT | SLICE
2950 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
2951 -- | TYPE_CONVERSION | FUNCTION_CALL
2952 -- | CHARACTER_LITERAL
2953
2954 ----------------------
2955 -- 4.1 Direct Name --
2956 ----------------------
2957
2958 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
2959
2960 -----------------
2961 -- 4.1 Prefix --
2962 -----------------
2963
2964 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
2965
2966 -------------------------------
2967 -- 4.1 Explicit Dereference --
2968 -------------------------------
2969
2970 -- EXPLICIT_DEREFERENCE ::= NAME . all
2971
2972 -- N_Explicit_Dereference
2973 -- Sloc points to ALL
2974 -- Prefix (Node3)
2975 -- Actual_Designated_Subtype (Node4-Sem)
2976 -- plus fields for expression
2977
2978 -------------------------------
2979 -- 4.1 Implicit Dereference --
2980 -------------------------------
2981
2982 -- IMPLICIT_DEREFERENCE ::= NAME
2983
2984 ------------------------------
2985 -- 4.1.1 Indexed Component --
2986 ------------------------------
2987
2988 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
2989
2990 -- Note: the parser may generate this node in some situations where it
2991 -- should be a function call. The semantic pass must correct this
2992 -- misidentification (which is inevitable at the parser level).
2993
2994 -- N_Indexed_Component
2995 -- Sloc contains a copy of the Sloc value of the Prefix
2996 -- Prefix (Node3)
2997 -- Expressions (List1)
2998 -- plus fields for expression
2999
3000 -- Note: if any of the subscripts requires a range check, then the
3001 -- Do_Range_Check flag is set on the corresponding expression, with
3002 -- the index type being determined from the type of the Prefix, which
3003 -- references the array being indexed.
3004
3005 -- Note: in a fully analyzed and expanded indexed component node, and
3006 -- hence in any such node that gigi sees, if the prefix is an access
3007 -- type, then an explicit dereference operation has been inserted.
3008
3009 ------------------
3010 -- 4.1.2 Slice --
3011 ------------------
3012
3013 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3014
3015 -- Note: an implicit subtype is created to describe the resulting
3016 -- type, so that the bounds of this type are the bounds of the slice.
3017
3018 -- N_Slice
3019 -- Sloc points to first token of prefix
3020 -- Prefix (Node3)
3021 -- Discrete_Range (Node4)
3022 -- plus fields for expression
3023
3024 -------------------------------
3025 -- 4.1.3 Selected Component --
3026 -------------------------------
3027
3028 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3029
3030 -- Note: selected components that are semantically expanded names get
3031 -- changed during semantic processing into the separate N_Expanded_Name
3032 -- node. See description of this node in the section on semantic nodes.
3033
3034 -- N_Selected_Component
3035 -- Sloc points to period
3036 -- Prefix (Node3)
3037 -- Selector_Name (Node2)
3038 -- Associated_Node (Node4-Sem)
3039 -- Do_Discriminant_Check (Flag13-Sem)
3040 -- Is_In_Discriminant_Check (Flag11-Sem)
3041 -- plus fields for expression
3042
3043 --------------------------
3044 -- 4.1.3 Selector Name --
3045 --------------------------
3046
3047 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3048
3049 --------------------------------
3050 -- 4.1.4 Attribute Reference --
3051 --------------------------------
3052
3053 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3054
3055 -- Note: the syntax is quite ambiguous at this point. Consider:
3056
3057 -- A'Length (X) X is part of the attribute designator
3058 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3059 -- A'Class (X) X is the expression of a type conversion
3060
3061 -- It would be possible for the parser to distinguish these cases
3062 -- by looking at the attribute identifier. However, that would mean
3063 -- more work in introducing new implementation defined attributes,
3064 -- and also it would mean that special processing for attributes
3065 -- would be scattered around, instead of being centralized in the
3066 -- semantic routine that handles an N_Attribute_Reference node.
3067 -- Consequently, the parser in all the above cases stores the
3068 -- expression (X in these examples) as a single element list in
3069 -- in the Expressions field of the N_Attribute_Reference node.
3070
3071 -- Similarly, for attributes like Max which take two arguments,
3072 -- we store the two arguments as a two element list in the
3073 -- Expressions field. Of course it is clear at parse time that
3074 -- this case is really a function call with an attribute as the
3075 -- prefix, but it turns out to be convenient to handle the two
3076 -- argument case in a similar manner to the one argument case,
3077 -- and indeed in general the parser will accept any number of
3078 -- expressions in this position and store them as a list in the
3079 -- attribute reference node. This allows for future addition of
3080 -- attributes that take more than two arguments.
3081
3082 -- Note: named associates are not permitted in function calls where
3083 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3084 -- to skip the normal subprogram argument processing.
3085
3086 -- Note: for the attributes whose designators are technically keywords,
3087 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3088 -- the corresponding name, even though no identifier is involved.
3089
3090 -- Note: the generated code may contain stream attributes applied to
3091 -- limited types for which no stream routines exist officially. In such
3092 -- case, the result is to use the stream attribute for the underlying
3093 -- full type, or in the case of a protected type, the components
3094 -- (including any disriminants) are merely streamed in order.
3095
3096 -- See Exp_Attr for a complete description of which attributes are
3097 -- passed onto Gigi, and which are handled entirely by the front end.
3098
3099 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3100 -- a non-standard enumeration type or a nonzero/zero semantics
3101 -- boolean type, so the value is simply the stored representation.
3102
3103 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3104 -- references a subprogram that is a renaming, then the front end must
3105 -- rewrite the attribute to refer directly to the renamed entity.
3106
3107 -- Note: In generated code, the Address and Unrestricted_Access
3108 -- attributes can be applied to any expression, and the meaning is
3109 -- to create an object containing the value (the object is in the
3110 -- current stack frame), and pass the address of this value. If the
3111 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3112 -- is taken must be on a byte (storage unit) boundary, and if it is
3113 -- not (or may not be), then the generated code must create a copy
3114 -- that is byte aligned, and pass the address of this copy.
3115
3116 -- N_Attribute_Reference
3117 -- Sloc points to apostrophe
3118 -- Prefix (Node3)
3119 -- Attribute_Name (Name2) identifier name from attribute designator
3120 -- Expressions (List1) (set to No_List if no associated expressions)
3121 -- Entity (Node4-Sem) used if the attribute yields a type
3122 -- Associated_Node (Node4-Sem)
3123 -- Do_Overflow_Check (Flag17-Sem)
3124 -- Redundant_Use (Flag13-Sem)
3125 -- Must_Be_Byte_Aligned (Flag14)
3126 -- plus fields for expression
3127
3128 ---------------------------------
3129 -- 4.1.4 Attribute Designator --
3130 ---------------------------------
3131
3132 -- ATTRIBUTE_DESIGNATOR ::=
3133 -- IDENTIFIER [(static_EXPRESSION)]
3134 -- | access | delta | digits
3135
3136 -- There is no explicit node in the tree for an attribute designator.
3137 -- Instead the Attribute_Name and Expressions fields of the parent
3138 -- node (N_Attribute_Reference node) hold the information.
3139
3140 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3141 -- designator, then they are treated as identifiers internally
3142 -- rather than the keywords of the same name.
3143
3144 --------------------------------------
3145 -- 4.1.4 Range Attribute Reference --
3146 --------------------------------------
3147
3148 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3149
3150 -- A range attribute reference is represented in the tree using the
3151 -- normal N_Attribute_Reference node.
3152
3153 ---------------------------------------
3154 -- 4.1.4 Range Attribute Designator --
3155 ---------------------------------------
3156
3157 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3158
3159 -- A range attribute designator is represented in the tree using the
3160 -- normal N_Attribute_Reference node.
3161
3162 --------------------
3163 -- 4.3 Aggregate --
3164 --------------------
3165
3166 -- AGGREGATE ::=
3167 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3168
3169 -----------------------------
3170 -- 4.3.1 Record Aggregate --
3171 -----------------------------
3172
3173 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3174
3175 -- N_Aggregate
3176 -- Sloc points to left parenthesis
3177 -- Expressions (List1) (set to No_List if none or null record case)
3178 -- Component_Associations (List2) (set to No_List if none)
3179 -- Null_Record_Present (Flag17)
3180 -- Aggregate_Bounds (Node3-Sem)
3181 -- Associated_Node (Node4-Sem)
3182 -- Static_Processing_OK (Flag4-Sem)
3183 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3184 -- Expansion_Delayed (Flag11-Sem)
3185 -- Has_Self_Reference (Flag13-Sem)
3186 -- plus fields for expression
3187
3188 -- Note: this structure is used for both record and array aggregates
3189 -- since the two cases are not separable by the parser. The parser
3190 -- makes no attempt to enforce consistency here, so it is up to the
3191 -- semantic phase to make sure that the aggregate is consistent (i.e.
3192 -- that it is not a "half-and-half" case that mixes record and array
3193 -- syntax. In particular, for a record aggregate, the expressions
3194 -- field will be set if there are positional associations.
3195
3196 -- Note: N_Aggregate is not used for all aggregates; in particular,
3197 -- there is a separate node kind for extension aggregates.
3198
3199 -- Note: gigi/gcc can handle array aggregates correctly providing that
3200 -- they are entirely positional, and the array subtype involved has a
3201 -- known at compile time length and is not bit packed, or a convention
3202 -- Fortran array with more than one dimension. If these conditions
3203 -- are not met, then the front end must translate the aggregate into
3204 -- an appropriate set of assignments into a temporary.
3205
3206 -- Note: for the record aggregate case, gigi/gcc can handle all cases
3207 -- of record aggregates, including those for packed, and rep-claused
3208 -- records, and also variant records, providing that there are no
3209 -- variable length fields whose size is not known at runtime, and
3210 -- providing that the aggregate is presented in fully named form.
3211
3212 ----------------------------------------------
3213 -- 4.3.1 Record Component Association List --
3214 ----------------------------------------------
3215
3216 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3217 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3218 -- | null record
3219
3220 -- There is no explicit node in the tree for a record component
3221 -- association list. Instead the Null_Record_Present flag is set in
3222 -- the parent node for the NULL RECORD case.
3223
3224 ------------------------------------------------------
3225 -- 4.3.1 Record Component Association (also 4.3.3) --
3226 ------------------------------------------------------
3227
3228 -- RECORD_COMPONENT_ASSOCIATION ::=
3229 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3230
3231 -- N_Component_Association
3232 -- Sloc points to first selector name
3233 -- Choices (List1)
3234 -- Loop_Actions (List2-Sem)
3235 -- Expression (Node3)
3236 -- Box_Present (Flag15)
3237
3238 -- Note: this structure is used for both record component associations
3239 -- and array component associations, since the two cases aren't always
3240 -- separable by the parser. The choices list may represent either a
3241 -- list of selector names in the record aggregate case, or a list of
3242 -- discrete choices in the array aggregate case or an N_Others_Choice
3243 -- node (which appears as a singleton list). Box_Present gives support
3244 -- to Ada 2005 (AI-287).
3245
3246 -----------------------------------
3247 -- 4.3.1 Commponent Choice List --
3248 -----------------------------------
3249
3250 -- COMPONENT_CHOICE_LIST ::=
3251 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3252 -- | others
3253
3254 -- The entries of a component choice list appear in the Choices list of
3255 -- the associated N_Component_Association, as either selector names, or
3256 -- as an N_Others_Choice node.
3257
3258 --------------------------------
3259 -- 4.3.2 Extension Aggregate --
3260 --------------------------------
3261
3262 -- EXTENSION_AGGREGATE ::=
3263 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3264
3265 -- Note: extension aggregates are not permitted in Ada 83 mode
3266
3267 -- N_Extension_Aggregate
3268 -- Sloc points to left parenthesis
3269 -- Ancestor_Part (Node3)
3270 -- Associated_Node (Node4-Sem)
3271 -- Expressions (List1) (set to No_List if none or null record case)
3272 -- Component_Associations (List2) (set to No_List if none)
3273 -- Null_Record_Present (Flag17)
3274 -- Expansion_Delayed (Flag11-Sem)
3275 -- Has_Self_Reference (Flag13-Sem)
3276 -- plus fields for expression
3277
3278 --------------------------
3279 -- 4.3.2 Ancestor Part --
3280 --------------------------
3281
3282 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3283
3284 ----------------------------
3285 -- 4.3.3 Array Aggregate --
3286 ----------------------------
3287
3288 -- ARRAY_AGGREGATE ::=
3289 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3290
3291 ---------------------------------------
3292 -- 4.3.3 Positional Array Aggregate --
3293 ---------------------------------------
3294
3295 -- POSITIONAL_ARRAY_AGGREGATE ::=
3296 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3297 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3298
3299 -- See Record_Aggregate (4.3.1) for node structure
3300
3301 ----------------------------------
3302 -- 4.3.3 Named Array Aggregate --
3303 ----------------------------------
3304
3305 -- NAMED_ARRAY_AGGREGATE ::=
3306 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3307
3308 -- See Record_Aggregate (4.3.1) for node structure
3309
3310 ----------------------------------------
3311 -- 4.3.3 Array Component Association --
3312 ----------------------------------------
3313
3314 -- ARRAY_COMPONENT_ASSOCIATION ::=
3315 -- DISCRETE_CHOICE_LIST => EXPRESSION
3316
3317 -- See Record_Component_Association (4.3.1) for node structure
3318
3319 --------------------------------------------------
3320 -- 4.4 Expression/Relation/Term/Factor/Primary --
3321 --------------------------------------------------
3322
3323 -- EXPRESSION ::=
3324 -- RELATION {and RELATION} | RELATION {and then RELATION}
3325 -- | RELATION {or RELATION} | RELATION {or else RELATION}
3326 -- | RELATION {xor RELATION}
3327
3328 -- RELATION ::=
3329 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3330 -- | SIMPLE_EXPRESSION [not] in RANGE
3331 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3332
3333 -- SIMPLE_EXPRESSION ::=
3334 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3335
3336 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3337
3338 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3339
3340 -- No nodes are generated for any of these constructs. Instead, the
3341 -- node for the operator appears directly. When we refer to an
3342 -- expression in this description, we mean any of the possible
3343 -- consistuent components of an expression (e.g. identifier is
3344 -- an example of an expression).
3345
3346 ------------------
3347 -- 4.4 Primary --
3348 ------------------
3349
3350 -- PRIMARY ::=
3351 -- NUMERIC_LITERAL | null
3352 -- | STRING_LITERAL | AGGREGATE
3353 -- | NAME | QUALIFIED_EXPRESSION
3354 -- | ALLOCATOR | (EXPRESSION)
3355
3356 -- Usually there is no explicit node in the tree for primary. Instead
3357 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3358 -- exceptions. First, there is an explicit node for a null primary.
3359
3360 -- N_Null
3361 -- Sloc points to NULL
3362 -- plus fields for expression
3363
3364 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3365 -- that the parser keep track of which subexpressions are enclosed
3366 -- in parentheses, and how many levels of parentheses are used. This
3367 -- information is required for optimization purposes, and also for
3368 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3369 -- conform with ((((1)))) in the body).
3370
3371 -- The parentheses are recorded by keeping a Paren_Count field in every
3372 -- subexpression node (it is actually present in all nodes, but only
3373 -- used in subexpression nodes). This count records the number of
3374 -- levels of parentheses. If the number of levels in the source exceeds
3375 -- the maximum accomodated by this count, then the count is simply left
3376 -- at the maximum value. This means that there are some pathalogical
3377 -- cases of failure to detect conformance failures (e.g. an expression
3378 -- with 500 levels of parens will conform with one with 501 levels),
3379 -- but we do not need to lose sleep over this.
3380
3381 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3382 -- type N_Parenthesized_Expression used to accurately record unlimited
3383 -- numbers of levels of parentheses. However, it turned out to be a
3384 -- real nuisance to have to take into account the possible presence of
3385 -- this node during semantic analysis, since basically parentheses have
3386 -- zero relevance to semantic analysis.
3387
3388 -- Note: the level of parentheses always present in things like
3389 -- aggregates does not count, only the parentheses in the primary
3390 -- (EXPRESSION) affect the setting of the Paren_Count field.
3391
3392 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3393 -- treated as though it were Empty) if No_Initialization is set True.
3394
3395 --------------------------------------
3396 -- 4.5 Short Circuit Control Forms --
3397 --------------------------------------
3398
3399 -- EXPRESSION ::=
3400 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3401
3402 -- Gigi restriction: For both these control forms, the operand and
3403 -- result types are always Standard.Boolean. The expander inserts the
3404 -- required conversion operations where needed to ensure this is the
3405 -- case.
3406
3407 -- N_And_Then
3408 -- Sloc points to AND of AND THEN
3409 -- Left_Opnd (Node2)
3410 -- Right_Opnd (Node3)
3411 -- Actions (List1-Sem)
3412 -- plus fields for expression
3413
3414 -- N_Or_Else
3415 -- Sloc points to OR of OR ELSE
3416 -- Left_Opnd (Node2)
3417 -- Right_Opnd (Node3)
3418 -- Actions (List1-Sem)
3419 -- plus fields for expression
3420
3421 -- Note: The Actions field is used to hold actions associated with
3422 -- the right hand operand. These have to be treated specially since
3423 -- they are not unconditionally executed. See Insert_Actions for a
3424 -- more detailed description of how these actions are handled.
3425
3426 ---------------------------
3427 -- 4.5 Membership Tests --
3428 ---------------------------
3429
3430 -- RELATION ::=
3431 -- SIMPLE_EXPRESSION [not] in RANGE
3432 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3433
3434 -- Note: although the grammar above allows only a range or a
3435 -- subtype mark, the parser in fact will accept any simple
3436 -- expression in place of a subtype mark. This means that the
3437 -- semantic analyzer must be prepared to deal with, and diagnose
3438 -- a simple expression other than a name for the right operand.
3439 -- This simplifies error recovery in the parser.
3440
3441 -- N_In
3442 -- Sloc points to IN
3443 -- Left_Opnd (Node2)
3444 -- Right_Opnd (Node3)
3445 -- plus fields for expression
3446
3447 -- N_Not_In
3448 -- Sloc points to NOT of NOT IN
3449 -- Left_Opnd (Node2)
3450 -- Right_Opnd (Node3)
3451 -- plus fields for expression
3452
3453 --------------------
3454 -- 4.5 Operators --
3455 --------------------
3456
3457 -- LOGICAL_OPERATOR ::= and | or | xor
3458
3459 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3460
3461 -- BINARY_ADDING_OPERATOR ::= + | - | &
3462
3463 -- UNARY_ADDING_OPERATOR ::= + | -
3464
3465 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3466
3467 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3468
3469 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3470
3471 -- x #* y
3472 -- x #/ y
3473 -- x #mod y
3474 -- x #rem y
3475
3476 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3477 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3478 -- All handling of smalls for multiplication and division is handled
3479 -- by the front end (mod and rem result only from expansion). Gigi
3480 -- thus never needs to worry about small values (for other operators
3481 -- operating on fixed-point, e.g. addition, the small value does not
3482 -- have any semantic effect anyway, these are always integer operations.
3483
3484 -- Gigi restriction: For all operators taking Boolean operands, the
3485 -- type is always Standard.Boolean. The expander inserts the required
3486 -- conversion operations where needed to ensure this is the case.
3487
3488 -- N_Op_And
3489 -- Sloc points to AND
3490 -- Do_Length_Check (Flag4-Sem)
3491 -- plus fields for binary operator
3492 -- plus fields for expression
3493
3494 -- N_Op_Or
3495 -- Sloc points to OR
3496 -- Do_Length_Check (Flag4-Sem)
3497 -- plus fields for binary operator
3498 -- plus fields for expression
3499
3500 -- N_Op_Xor
3501 -- Sloc points to XOR
3502 -- Do_Length_Check (Flag4-Sem)
3503 -- plus fields for binary operator
3504 -- plus fields for expression
3505
3506 -- N_Op_Eq
3507 -- Sloc points to =
3508 -- plus fields for binary operator
3509 -- plus fields for expression
3510
3511 -- N_Op_Ne
3512 -- Sloc points to /=
3513 -- plus fields for binary operator
3514 -- plus fields for expression
3515
3516 -- N_Op_Lt
3517 -- Sloc points to <
3518 -- plus fields for binary operator
3519 -- plus fields for expression
3520
3521 -- N_Op_Le
3522 -- Sloc points to <=
3523 -- plus fields for binary operator
3524 -- plus fields for expression
3525
3526 -- N_Op_Gt
3527 -- Sloc points to >
3528 -- plus fields for binary operator
3529 -- plus fields for expression
3530
3531 -- N_Op_Ge
3532 -- Sloc points to >=
3533 -- plus fields for binary operator
3534 -- plus fields for expression
3535
3536 -- N_Op_Add
3537 -- Sloc points to + (binary)
3538 -- plus fields for binary operator
3539 -- plus fields for expression
3540
3541 -- N_Op_Subtract
3542 -- Sloc points to - (binary)
3543 -- plus fields for binary operator
3544 -- plus fields for expression
3545
3546 -- N_Op_Concat
3547 -- Sloc points to &
3548 -- Is_Component_Left_Opnd (Flag13-Sem)
3549 -- Is_Component_Right_Opnd (Flag14-Sem)
3550 -- plus fields for binary operator
3551 -- plus fields for expression
3552
3553 -- N_Op_Multiply
3554 -- Sloc points to *
3555 -- Treat_Fixed_As_Integer (Flag14-Sem)
3556 -- Rounded_Result (Flag18-Sem)
3557 -- plus fields for binary operator
3558 -- plus fields for expression
3559
3560 -- N_Op_Divide
3561 -- Sloc points to /
3562 -- Treat_Fixed_As_Integer (Flag14-Sem)
3563 -- Do_Division_Check (Flag13-Sem)
3564 -- Rounded_Result (Flag18-Sem)
3565 -- plus fields for binary operator
3566 -- plus fields for expression
3567
3568 -- N_Op_Mod
3569 -- Sloc points to MOD
3570 -- Treat_Fixed_As_Integer (Flag14-Sem)
3571 -- Do_Division_Check (Flag13-Sem)
3572 -- plus fields for binary operator
3573 -- plus fields for expression
3574
3575 -- N_Op_Rem
3576 -- Sloc points to REM
3577 -- Treat_Fixed_As_Integer (Flag14-Sem)
3578 -- Do_Division_Check (Flag13-Sem)
3579 -- plus fields for binary operator
3580 -- plus fields for expression
3581
3582 -- N_Op_Expon
3583 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
3584 -- Sloc points to **
3585 -- plus fields for binary operator
3586 -- plus fields for expression
3587
3588 -- N_Op_Plus
3589 -- Sloc points to + (unary)
3590 -- plus fields for unary operator
3591 -- plus fields for expression
3592
3593 -- N_Op_Minus
3594 -- Sloc points to - (unary)
3595 -- plus fields for unary operator
3596 -- plus fields for expression
3597
3598 -- N_Op_Abs
3599 -- Sloc points to ABS
3600 -- plus fields for unary operator
3601 -- plus fields for expression
3602
3603 -- N_Op_Not
3604 -- Sloc points to NOT
3605 -- plus fields for unary operator
3606 -- plus fields for expression
3607
3608 -- See also shift operators in section B.2
3609
3610 -- Note on fixed-point operations passed to Gigi: For adding operators,
3611 -- the semantics is to treat these simply as integer operations, with
3612 -- the small values being ignored (the bounds are already stored in
3613 -- units of small, so that constraint checking works as usual). For the
3614 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
3615 -- point operands if the Treat_Fixed_As_Integer flag is set and will
3616 -- thus treat these nodes in identical manner, ignoring small values.
3617
3618 --------------------------
3619 -- 4.6 Type Conversion --
3620 --------------------------
3621
3622 -- TYPE_CONVERSION ::=
3623 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3624
3625 -- In the (NAME) case, the name is stored as the expression
3626
3627 -- Note: the parser never generates a type conversion node, since it
3628 -- looks like an indexed component which is generated by preference.
3629 -- The semantic pass must correct this misidentification.
3630
3631 -- Gigi handles conversions that involve no change in the root type,
3632 -- and also all conversions from integer to floating-point types.
3633 -- Conversions from floating-point to integer are only handled in
3634 -- the case where Float_Truncate flag set. Other conversions from
3635 -- floating-point to integer (involving rounding) and all conversions
3636 -- involving fixed-point types are handled by the expander.
3637
3638 -- Sprint syntax if Float_Truncate set: X^(Y)
3639 -- Sprint syntax if Conversion_OK set X?(Y)
3640 -- Sprint syntax if both flags set X?^(Y)
3641
3642 -- Note: If either the operand or result type is fixed-point, Gigi will
3643 -- only see a type conversion node with Conversion_OK set. The front end
3644 -- takes care of all handling of small's for fixed-point conversions.
3645
3646 -- N_Type_Conversion
3647 -- Sloc points to first token of subtype mark
3648 -- Subtype_Mark (Node4)
3649 -- Expression (Node3)
3650 -- Do_Tag_Check (Flag13-Sem)
3651 -- Do_Length_Check (Flag4-Sem)
3652 -- Do_Overflow_Check (Flag17-Sem)
3653 -- Float_Truncate (Flag11-Sem)
3654 -- Rounded_Result (Flag18-Sem)
3655 -- Conversion_OK (Flag14-Sem)
3656 -- plus fields for expression
3657
3658 -- Note: if a range check is required, then the Do_Range_Check flag
3659 -- is set in the Expression with the check being done against the
3660 -- target type range (after the base type conversion, if any).
3661
3662 -------------------------------
3663 -- 4.7 Qualified Expression --
3664 -------------------------------
3665
3666 -- QUALIFIED_EXPRESSION ::=
3667 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3668
3669 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3670 -- the expression, so the Expression field of this node always points
3671 -- to a parenthesized expression in this case (i.e. Paren_Count will
3672 -- always be non-zero for the referenced expression if it is not an
3673 -- aggregate).
3674
3675 -- N_Qualified_Expression
3676 -- Sloc points to apostrophe
3677 -- Subtype_Mark (Node4)
3678 -- Expression (Node3) expression or aggregate
3679 -- plus fields for expression
3680
3681 --------------------
3682 -- 4.8 Allocator --
3683 --------------------
3684
3685 -- ALLOCATOR ::=
3686 -- new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3687
3688 -- Sprint syntax (when storage pool present)
3689 -- new xxx (storage_pool = pool)
3690
3691 -- N_Allocator
3692 -- Sloc points to NEW
3693 -- Expression (Node3) subtype indication or qualified expression
3694 -- Storage_Pool (Node1-Sem)
3695 -- Procedure_To_Call (Node2-Sem)
3696 -- Coextensions (Elist4-Sem)
3697 -- Null_Exclusion_Present (Flag11)
3698 -- No_Initialization (Flag13-Sem)
3699 -- Is_Static_Coextension (Flag14-Sem)
3700 -- Do_Storage_Check (Flag17-Sem)
3701 -- Is_Dynamic_Coextension (Flag18-Sem)
3702 -- plus fields for expression
3703
3704 ---------------------------------
3705 -- 5.1 Sequence Of Statements --
3706 ---------------------------------
3707
3708 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3709
3710 -- Note: Although the parser will not accept a declaration as a
3711 -- statement, the semantic analyzer may insert declarations (e.g.
3712 -- declarations of implicit types needed for execution of other
3713 -- statements) into a sequence of statements, so the code genmerator
3714 -- should be prepared to accept a declaration where a statement is
3715 -- expected. Note also that pragmas can appear as statements.
3716
3717 --------------------
3718 -- 5.1 Statement --
3719 --------------------
3720
3721 -- STATEMENT ::=
3722 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3723
3724 -- There is no explicit node in the tree for a statement. Instead, the
3725 -- individual statement appears directly. Labels are treated as a
3726 -- kind of statement, i.e. they are linked into a statement list at
3727 -- the point they appear, so the labeled statement appears following
3728 -- the label or labels in the statement list.
3729
3730 ---------------------------
3731 -- 5.1 Simple Statement --
3732 ---------------------------
3733
3734 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
3735 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
3736 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
3737 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3738 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
3739 -- | ABORT_STATEMENT | RAISE_STATEMENT
3740 -- | CODE_STATEMENT
3741
3742 -----------------------------
3743 -- 5.1 Compound Statement --
3744 -----------------------------
3745
3746 -- COMPOUND_STATEMENT ::=
3747 -- IF_STATEMENT | CASE_STATEMENT
3748 -- | LOOP_STATEMENT | BLOCK_STATEMENT
3749 -- | EXTENDED_RETURN_STATEMENT
3750 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
3751
3752 -------------------------
3753 -- 5.1 Null Statement --
3754 -------------------------
3755
3756 -- NULL_STATEMENT ::= null;
3757
3758 -- N_Null_Statement
3759 -- Sloc points to NULL
3760
3761 ----------------
3762 -- 5.1 Label --
3763 ----------------
3764
3765 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3766
3767 -- Note that the occurrence of a label is not a defining identifier,
3768 -- but rather a referencing occurrence. The defining occurrence is
3769 -- in the implicit label declaration which occurs in the innermost
3770 -- enclosing block.
3771
3772 -- N_Label
3773 -- Sloc points to <<
3774 -- Identifier (Node1) direct name of statement identifier
3775 -- Exception_Junk (Flag8-Sem)
3776
3777 -------------------------------
3778 -- 5.1 Statement Identifier --
3779 -------------------------------
3780
3781 -- STATEMENT_INDENTIFIER ::= DIRECT_NAME
3782
3783 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
3784 -- (not an OPERATOR_SYMBOL)
3785
3786 -------------------------------
3787 -- 5.2 Assignment Statement --
3788 -------------------------------
3789
3790 -- ASSIGNMENT_STATEMENT ::=
3791 -- variable_NAME := EXPRESSION;
3792
3793 -- N_Assignment_Statement
3794 -- Sloc points to :=
3795 -- Name (Node2)
3796 -- Expression (Node3)
3797 -- Do_Tag_Check (Flag13-Sem)
3798 -- Do_Length_Check (Flag4-Sem)
3799 -- Forwards_OK (Flag5-Sem)
3800 -- Backwards_OK (Flag6-Sem)
3801 -- No_Ctrl_Actions (Flag7-Sem)
3802
3803 -- Note: if a range check is required, then the Do_Range_Check flag
3804 -- is set in the Expression (right hand side), with the check being
3805 -- done against the type of the Name (left hand side).
3806
3807 -- Note: the back end places some restrictions on the form of the
3808 -- Expression field. If the object being assigned to is Atomic, then
3809 -- the Expression may not have the form of an aggregate (since this
3810 -- might cause the back end to generate separate assignments). It
3811 -- also cannot be a reference to an object marked as a true constant
3812 -- (Is_True_Constant flag set), where the object is itself initalized
3813 -- with an aggregate. If necessary the front end must generate an
3814 -- extra temporary (with Is_True_Constant set False), and initialize
3815 -- this temporary as required (the temporary itself is not atomic).
3816
3817 -----------------------
3818 -- 5.3 If Statement --
3819 -----------------------
3820
3821 -- IF_STATEMENT ::=
3822 -- if CONDITION then
3823 -- SEQUENCE_OF_STATEMENTS
3824 -- {elsif CONDITION then
3825 -- SEQUENCE_OF_STATEMENTS}
3826 -- [else
3827 -- SEQUENCE_OF_STATEMENTS]
3828 -- end if;
3829
3830 -- Gigi restriction: This expander ensures that the type of the
3831 -- Condition fields is always Standard.Boolean, even if the type
3832 -- in the source is some non-standard boolean type.
3833
3834 -- N_If_Statement
3835 -- Sloc points to IF
3836 -- Condition (Node1)
3837 -- Then_Statements (List2)
3838 -- Elsif_Parts (List3) (set to No_List if none present)
3839 -- Else_Statements (List4) (set to No_List if no else part present)
3840 -- End_Span (Uint5) (set to No_Uint if expander generated)
3841
3842 -- N_Elsif_Part
3843 -- Sloc points to ELSIF
3844 -- Condition (Node1)
3845 -- Then_Statements (List2)
3846 -- Condition_Actions (List3-Sem)
3847
3848 --------------------
3849 -- 5.3 Condition --
3850 --------------------
3851
3852 -- CONDITION ::= boolean_EXPRESSION
3853
3854 -------------------------
3855 -- 5.4 Case Statement --
3856 -------------------------
3857
3858 -- CASE_STATEMENT ::=
3859 -- case EXPRESSION is
3860 -- CASE_STATEMENT_ALTERNATIVE
3861 -- {CASE_STATEMENT_ALTERNATIVE}
3862 -- end case;
3863
3864 -- Note: the Alternatives can contain pragmas. These only occur at
3865 -- the start of the list, since any pragmas occurring after the first
3866 -- alternative are absorbed into the corresponding statement sequence.
3867
3868 -- N_Case_Statement
3869 -- Sloc points to CASE
3870 -- Expression (Node3)
3871 -- Alternatives (List4)
3872 -- End_Span (Uint5) (set to No_Uint if expander generated)
3873
3874 -------------------------------------
3875 -- 5.4 Case Statement Alternative --
3876 -------------------------------------
3877
3878 -- CASE_STATEMENT_ALTERNATIVE ::=
3879 -- when DISCRETE_CHOICE_LIST =>
3880 -- SEQUENCE_OF_STATEMENTS
3881
3882 -- N_Case_Statement_Alternative
3883 -- Sloc points to WHEN
3884 -- Discrete_Choices (List4)
3885 -- Statements (List3)
3886
3887 -------------------------
3888 -- 5.5 Loop Statement --
3889 -------------------------
3890
3891 -- LOOP_STATEMENT ::=
3892 -- [loop_STATEMENT_IDENTIFIER :]
3893 -- [ITERATION_SCHEME] loop
3894 -- SEQUENCE_OF_STATEMENTS
3895 -- end loop [loop_IDENTIFIER];
3896
3897 -- Note: The occurrence of a loop label is not a defining identifier
3898 -- but rather a referencing occurrence. The defining occurrence is in
3899 -- the implicit label declaration which occurs in the innermost
3900 -- enclosing block.
3901
3902 -- Note: there is always a loop statement identifier present in
3903 -- the tree, even if none was given in the source. In the case where
3904 -- no loop identifier is given in the source, the parser creates
3905 -- a name of the form _Loop_n, where n is a decimal integer (the
3906 -- two underlines ensure that the loop names created in this manner
3907 -- do not conflict with any user defined identifiers), and the flag
3908 -- Has_Created_Identifier is set to True. The only exception to the
3909 -- rule that all loop statement nodes have identifiers occurs for
3910 -- loops constructed by the expander, and the semantic analyzer will
3911 -- create and supply dummy loop identifiers in these cases.
3912
3913 -- N_Loop_Statement
3914 -- Sloc points to LOOP
3915 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
3916 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
3917 -- Statements (List3)
3918 -- End_Label (Node4)
3919 -- Has_Created_Identifier (Flag15)
3920 -- Is_Null_Loop (Flag16)
3921
3922 --------------------------
3923 -- 5.5 Iteration Scheme --
3924 --------------------------
3925
3926 -- ITERATION_SCHEME ::=
3927 -- while CONDITION | for LOOP_PARAMETER_SPECIFICATION
3928
3929 -- Gigi restriction: This expander ensures that the type of the
3930 -- Condition field is always Standard.Boolean, even if the type
3931 -- in the source is some non-standard boolean type.
3932
3933 -- N_Iteration_Scheme
3934 -- Sloc points to WHILE or FOR
3935 -- Condition (Node1) (set to Empty if FOR case)
3936 -- Condition_Actions (List3-Sem)
3937 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
3938
3939 ---------------------------------------
3940 -- 5.5 Loop parameter specification --
3941 ---------------------------------------
3942
3943 -- LOOP_PARAMETER_SPECIFICATION ::=
3944 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
3945
3946 -- N_Loop_Parameter_Specification
3947 -- Sloc points to first identifier
3948 -- Defining_Identifier (Node1)
3949 -- Reverse_Present (Flag15)
3950 -- Discrete_Subtype_Definition (Node4)
3951
3952 --------------------------
3953 -- 5.6 Block Statement --
3954 --------------------------
3955
3956 -- BLOCK_STATEMENT ::=
3957 -- [block_STATEMENT_IDENTIFIER:]
3958 -- [declare
3959 -- DECLARATIVE_PART]
3960 -- begin
3961 -- HANDLED_SEQUENCE_OF_STATEMENTS
3962 -- end [block_IDENTIFIER];
3963
3964 -- Note that the occurrence of a block identifier is not a defining
3965 -- identifier, but rather a referencing occurrence. The defining
3966 -- occurrence is an E_Block entity declared by the implicit label
3967 -- declaration which occurs in the innermost enclosing block statement
3968 -- or body; the block identifier denotes that E_Block.
3969
3970 -- For block statements that come from source code, there is always a
3971 -- block statement identifier present in the tree, denoting an
3972 -- E_Block. In the case where no block identifier is given in the
3973 -- source, the parser creates a name of the form B_n, where n is a
3974 -- decimal integer, and the flag Has_Created_Identifier is set to
3975 -- True. Blocks constructed by the expander usually have no identifier,
3976 -- and no corresponding entity.
3977
3978 -- Note: the block statement created for an extended return statement
3979 -- has an entity, and this entity is an E_Return_Statement, rather than
3980 -- the usual E_Block.
3981
3982 -- Note: Exception_Junk is set for the wrapping blocks created during
3983 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
3984
3985 -- N_Block_Statement
3986 -- Sloc points to DECLARE or BEGIN
3987 -- Identifier (Node1) block direct name (set to Empty if not present)
3988 -- Declarations (List2) (set to No_List if no DECLARE part)
3989 -- Handled_Statement_Sequence (Node4)
3990 -- Is_Task_Master (Flag5-Sem)
3991 -- Activation_Chain_Entity (Node3-Sem)
3992 -- Has_Created_Identifier (Flag15)
3993 -- Is_Task_Allocation_Block (Flag6)
3994 -- Is_Asynchronous_Call_Block (Flag7)
3995 -- Exception_Junk (Flag8-Sem)
3996
3997 -------------------------
3998 -- 5.7 Exit Statement --
3999 -------------------------
4000
4001 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4002
4003 -- Gigi restriction: This expander ensures that the type of the
4004 -- Condition field is always Standard.Boolean, even if the type
4005 -- in the source is some non-standard boolean type.
4006
4007 -- N_Exit_Statement
4008 -- Sloc points to EXIT
4009 -- Name (Node2) (set to Empty if no loop name present)
4010 -- Condition (Node1) (set to Empty if no when part present)
4011
4012 -------------------------
4013 -- 5.9 Goto Statement --
4014 -------------------------
4015
4016 -- GOTO_STATEMENT ::= goto label_NAME;
4017
4018 -- N_Goto_Statement
4019 -- Sloc points to GOTO
4020 -- Name (Node2)
4021 -- Exception_Junk (Flag8-Sem)
4022
4023 ---------------------------------
4024 -- 6.1 Subprogram Declaration --
4025 ---------------------------------
4026
4027 -- SUBPROGRAM_DECLARATION ::= SUBPROGRAM_SPECIFICATION;
4028
4029 -- N_Subprogram_Declaration
4030 -- Sloc points to FUNCTION or PROCEDURE
4031 -- Specification (Node1)
4032 -- Body_To_Inline (Node3-Sem)
4033 -- Corresponding_Body (Node5-Sem)
4034 -- Parent_Spec (Node4-Sem)
4035
4036 ------------------------------------------
4037 -- 6.1 Abstract Subprogram Declaration --
4038 ------------------------------------------
4039
4040 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4041 -- SUBPROGRAM_SPECIFICATION is abstract;
4042
4043 -- N_Abstract_Subprogram_Declaration
4044 -- Sloc points to ABSTRACT
4045 -- Specification (Node1)
4046
4047 -----------------------------------
4048 -- 6.1 Subprogram Specification --
4049 -----------------------------------
4050
4051 -- SUBPROGRAM_SPECIFICATION ::=
4052 -- [[not] overriding]
4053 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4054 -- | [[not] overriding]
4055 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4056
4057 -- Note: there are no separate nodes for the profiles, instead the
4058 -- information appears directly in the following nodes.
4059
4060 -- N_Function_Specification
4061 -- Sloc points to FUNCTION
4062 -- Defining_Unit_Name (Node1) (the designator)
4063 -- Elaboration_Boolean (Node2-Sem)
4064 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4065 -- Null_Exclusion_Present (Flag11)
4066 -- Result_Definition (Node4) for result subtype
4067 -- Generic_Parent (Node5-Sem)
4068 -- Must_Override (Flag14) set if overriding indicator present
4069 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4070
4071 -- N_Procedure_Specification
4072 -- Sloc points to PROCEDURE
4073 -- Defining_Unit_Name (Node1)
4074 -- Elaboration_Boolean (Node2-Sem)
4075 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4076 -- Generic_Parent (Node5-Sem)
4077 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4078 -- Must_Override (Flag14) set if overriding indicator present
4079 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4080
4081 -- Note: overriding indicator is an Ada 2005 feature
4082
4083 ---------------------
4084 -- 6.1 Designator --
4085 ---------------------
4086
4087 -- DESIGNATOR ::=
4088 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4089
4090 -- Designators that are simply identifiers or operator symbols appear
4091 -- directly in the tree in this form. The following node is used only
4092 -- in the case where the designator has a parent unit name component.
4093
4094 -- N_Designator
4095 -- Sloc points to period
4096 -- Name (Node2) holds the parent unit name. Note that this is always
4097 -- non-Empty, since this node is only used for the case where a
4098 -- parent library unit package name is present.
4099 -- Identifier (Node1)
4100
4101 -- Note that the identifier can also be an operator symbol here
4102
4103 ------------------------------
4104 -- 6.1 Defining Designator --
4105 ------------------------------
4106
4107 -- DEFINING_DESIGNATOR ::=
4108 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4109
4110 -------------------------------------
4111 -- 6.1 Defining Program Unit Name --
4112 -------------------------------------
4113
4114 -- DEFINING_PROGRAM_UNIT_NAME ::=
4115 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4116
4117 -- The parent unit name is present only in the case of a child unit
4118 -- name (permissible only for Ada 95 for a library level unit, i.e.
4119 -- a unit at scope level one). If no such name is present, the defining
4120 -- program unit name is represented simply as the defining identifier.
4121 -- In the child unit case, the following node is used to represent the
4122 -- child unit name.
4123
4124 -- N_Defining_Program_Unit_Name
4125 -- Sloc points to period
4126 -- Name (Node2) holds the parent unit name. Note that this is always
4127 -- non-Empty, since this node is only used for the case where a
4128 -- parent unit name is present.
4129 -- Defining_Identifier (Node1)
4130
4131 --------------------------
4132 -- 6.1 Operator Symbol --
4133 --------------------------
4134
4135 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4136
4137 -- Note: the fields of the N_Operator_Symbol node are laid out to
4138 -- match the corresponding fields of an N_Character_Literal node. This
4139 -- allows easy conversion of the operator symbol node into a character
4140 -- literal node in the case where a string constant of the form of an
4141 -- operator symbol is scanned out as such, but turns out semantically
4142 -- to be a string literal that is not an operator. For details see
4143 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4144
4145 -- N_Operator_Symbol
4146 -- Sloc points to literal
4147 -- Chars (Name1) contains the Name_Id for the operator symbol
4148 -- Strval (Str3) Id of string value. This is used if the operator
4149 -- symbol turns out to be a normal string after all.
4150 -- Entity (Node4-Sem)
4151 -- Associated_Node (Node4-Sem)
4152 -- Has_Private_View (Flag11-Sem) set in generic units.
4153 -- Etype (Node5-Sem)
4154
4155 -- Note: the Strval field may be set to No_String for generated
4156 -- operator symbols that are known not to be string literals
4157 -- semantically.
4158
4159 -----------------------------------
4160 -- 6.1 Defining Operator Symbol --
4161 -----------------------------------
4162
4163 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4164
4165 -- A defining operator symbol is an entity, which has additional
4166 -- fields depending on the setting of the Ekind field. These
4167 -- additional fields are defined (and access subprograms declared)
4168 -- in package Einfo.
4169
4170 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4171 -- are deliberately layed out to match the layout of fields in an
4172 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4173 -- an operator symbol node into a defining operator symbol node.
4174 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4175 -- for further details.
4176
4177 -- N_Defining_Operator_Symbol
4178 -- Sloc points to literal
4179 -- Chars (Name1) contains the Name_Id for the operator symbol
4180 -- Next_Entity (Node2-Sem)
4181 -- Scope (Node3-Sem)
4182 -- Etype (Node5-Sem)
4183
4184 ----------------------------
4185 -- 6.1 Parameter Profile --
4186 ----------------------------
4187
4188 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4189
4190 ---------------------------------------
4191 -- 6.1 Parameter and Result Profile --
4192 ---------------------------------------
4193
4194 -- PARAMETER_AND_RESULT_PROFILE ::=
4195 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4196 -- | [FORMAL_PART] return ACCESS_DEFINITION
4197
4198 -- There is no explicit node in the tree for a parameter and result
4199 -- profile. Instead the information appears directly in the parent.
4200
4201 ----------------------
4202 -- 6.1 Formal part --
4203 ----------------------
4204
4205 -- FORMAL_PART ::=
4206 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4207
4208 ----------------------------------
4209 -- 6.1 Parameter specification --
4210 ----------------------------------
4211
4212 -- PARAMETER_SPECIFICATION ::=
4213 -- DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4214 -- [:= DEFAULT_EXPRESSION]
4215 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4216 -- [:= DEFAULT_EXPRESSION]
4217
4218 -- Although the syntax allows multiple identifiers in the list, the
4219 -- semantics is as though successive specifications were given with
4220 -- identical type definition and expression components. To simplify
4221 -- semantic processing, the parser represents a multiple declaration
4222 -- case as a sequence of single Specifications, using the More_Ids and
4223 -- Prev_Ids flags to preserve the original source form as described
4224 -- in the section on "Handling of Defining Identifier Lists".
4225
4226 -- N_Parameter_Specification
4227 -- Sloc points to first identifier
4228 -- Defining_Identifier (Node1)
4229 -- In_Present (Flag15)
4230 -- Out_Present (Flag17)
4231 -- Null_Exclusion_Present (Flag11)
4232 -- Parameter_Type (Node2) subtype mark or access definition
4233 -- Expression (Node3) (set to Empty if no default expression present)
4234 -- Do_Accessibility_Check (Flag13-Sem)
4235 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4236 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4237 -- Default_Expression (Node5-Sem)
4238
4239 ---------------
4240 -- 6.1 Mode --
4241 ---------------
4242
4243 -- MODE ::= [in] | in out | out
4244
4245 -- There is no explicit node in the tree for the Mode. Instead the
4246 -- In_Present and Out_Present flags are set in the parent node to
4247 -- record the presence of keywords specifying the mode.
4248
4249 --------------------------
4250 -- 6.3 Subprogram Body --
4251 --------------------------
4252
4253 -- SUBPROGRAM_BODY ::=
4254 -- SUBPROGRAM_SPECIFICATION is
4255 -- DECLARATIVE_PART
4256 -- begin
4257 -- HANDLED_SEQUENCE_OF_STATEMENTS
4258 -- end [DESIGNATOR];
4259
4260 -- N_Subprogram_Body
4261 -- Sloc points to FUNCTION or PROCEDURE
4262 -- Specification (Node1)
4263 -- Declarations (List2)
4264 -- Handled_Statement_Sequence (Node4)
4265 -- Activation_Chain_Entity (Node3-Sem)
4266 -- Corresponding_Spec (Node5-Sem)
4267 -- Acts_As_Spec (Flag4-Sem)
4268 -- Bad_Is_Detected (Flag15) used only by parser
4269 -- Do_Storage_Check (Flag17-Sem)
4270 -- Has_Priority_Pragma (Flag6-Sem)
4271 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4272 -- Is_Entry_Barrier_Function (Flag8-Sem)
4273 -- Is_Task_Master (Flag5-Sem)
4274 -- Was_Originally_Stub (Flag13-Sem)
4275
4276 -----------------------------------
4277 -- 6.4 Procedure Call Statement --
4278 -----------------------------------
4279
4280 -- PROCEDURE_CALL_STATEMENT ::=
4281 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4282
4283 -- Note: the reason that a procedure call has expression fields is
4284 -- that it semantically resembles an expression, e.g. overloading is
4285 -- allowed and a type is concocted for semantic processing purposes.
4286 -- Certain of these fields, such as Parens are not relevant, but it
4287 -- is easier to just supply all of them together!
4288
4289 -- N_Procedure_Call_Statement
4290 -- Sloc points to first token of name or prefix
4291 -- Name (Node2) stores name or prefix
4292 -- Parameter_Associations (List3) (set to No_List if no
4293 -- actual parameter part)
4294 -- First_Named_Actual (Node4-Sem)
4295 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4296 -- Do_Tag_Check (Flag13-Sem)
4297 -- No_Elaboration_Check (Flag14-Sem)
4298 -- Parameter_List_Truncated (Flag17-Sem)
4299 -- ABE_Is_Certain (Flag18-Sem)
4300 -- plus fields for expression
4301
4302 -- If any IN parameter requires a range check, then the corresponding
4303 -- argument expression has the Do_Range_Check flag set, and the range
4304 -- check is done against the formal type. Note that this argument
4305 -- expression may appear directly in the Parameter_Associations list,
4306 -- or may be a descendent of an N_Parameter_Association node that
4307 -- appears in this list.
4308
4309 ------------------------
4310 -- 6.4 Function Call --
4311 ------------------------
4312
4313 -- FUNCTION_CALL ::=
4314 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4315
4316 -- Note: the parser may generate an indexed component node or simply
4317 -- a name node instead of a function call node. The semantic pass must
4318 -- correct this misidentification.
4319
4320 -- N_Function_Call
4321 -- Sloc points to first token of name or prefix
4322 -- Name (Node2) stores name or prefix
4323 -- Parameter_Associations (List3) (set to No_List if no
4324 -- actual parameter part)
4325 -- First_Named_Actual (Node4-Sem)
4326 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4327 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4328 -- Do_Tag_Check (Flag13-Sem)
4329 -- No_Elaboration_Check (Flag14-Sem)
4330 -- Parameter_List_Truncated (Flag17-Sem)
4331 -- ABE_Is_Certain (Flag18-Sem)
4332 -- plus fields for expression
4333
4334 --------------------------------
4335 -- 6.4 Actual Parameter Part --
4336 --------------------------------
4337
4338 -- ACTUAL_PARAMETER_PART ::=
4339 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4340
4341 --------------------------------
4342 -- 6.4 Parameter Association --
4343 --------------------------------
4344
4345 -- PARAMETER_ASSOCIATION ::=
4346 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4347
4348 -- Note: the N_Parameter_Association node is built only if a formal
4349 -- parameter selector name is present, otherwise the parameter
4350 -- association appears in the tree simply as the node for the
4351 -- explicit actual parameter.
4352
4353 -- N_Parameter_Association
4354 -- Sloc points to formal parameter
4355 -- Selector_Name (Node2) (always non-Empty)
4356 -- Explicit_Actual_Parameter (Node3)
4357 -- Next_Named_Actual (Node4-Sem)
4358
4359 ---------------------------
4360 -- 6.4 Actual Parameter --
4361 ---------------------------
4362
4363 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4364
4365 ---------------------------
4366 -- 6.5 Return Statement --
4367 ---------------------------
4368
4369 -- RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4370
4371 -- In Ada 2005, we have:
4372
4373 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4374
4375 -- EXTENDED_RETURN_STATEMENT ::=
4376 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4377 -- [:= EXPRESSION] [do
4378 -- HANDLED_SEQUENCE_OF_STATEMENTS
4379 -- end return];
4380
4381 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4382
4383 -- So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4384 -- "return statement" is defined in 6.5 to mean a
4385 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4386
4387 -- N_Return_Statement
4388 -- Sloc points to RETURN
4389 -- Return_Statement_Entity (Node5-Sem)
4390 -- Expression (Node3) (set to Empty if no expression present)
4391 -- Storage_Pool (Node1-Sem)
4392 -- Procedure_To_Call (Node2-Sem)
4393 -- Do_Tag_Check (Flag13-Sem)
4394 -- By_Ref (Flag5-Sem)
4395 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
4396
4397 -- N_Return_Statement represents a simple_return_statement, and is
4398 -- renamed to be N_Simple_Return_Statement below. Clients should refer
4399 -- to N_Simple_Return_Statement. We retain N_Return_Statement because
4400 -- that's how gigi knows it. See also renaming of Make_Return_Statement
4401 -- as Make_Simple_Return_Statement in Sem_Util.
4402
4403 -- Note: Return_Statement_Entity points to an E_Return_Statement
4404
4405 -- If a range check is required, then Do_Range_Check is set on the
4406 -- Expression. The check is against the return subtype of the function.
4407
4408 -- N_Extended_Return_Statement
4409 -- Sloc points to RETURN
4410 -- Return_Statement_Entity (Node5-Sem)
4411 -- Return_Object_Declarations (List3)
4412 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
4413 -- Storage_Pool (Node1-Sem)
4414 -- Procedure_To_Call (Node2-Sem)
4415 -- Do_Tag_Check (Flag13-Sem)
4416 -- By_Ref (Flag5-Sem)
4417
4418 -- Note: Return_Statement_Entity points to an E_Return_Statement.
4419 -- Note that Return_Object_Declarations is a list containing the
4420 -- N_Object_Declaration -- see comment on this field above.
4421 -- The declared object will have Is_Return_Object = True.
4422 -- There is no such syntactic category as return_object_declaration
4423 -- in the RM. Return_Object_Declarations represents this portion of
4424 -- the syntax for EXTENDED_RETURN_STATEMENT:
4425 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4426 -- [:= EXPRESSION]
4427
4428 -- There are two entities associated with an extended_return_statement:
4429 -- the Return_Statement_Entity represents the statement itself, and the
4430 -- Defining_Identifier of the Object_Declaration in
4431 -- Return_Object_Declarations represents the object being
4432 -- returned. N_Simple_Return_Statement has only the former.
4433
4434 ------------------------------
4435 -- 7.1 Package Declaration --
4436 ------------------------------
4437
4438 -- PACKAGE_DECLARATION ::= PACKAGE_SPECIFICATION;
4439
4440 -- Note: the activation chain entity for a package spec is used for
4441 -- all tasks declared in the package spec, or in the package body.
4442
4443 -- N_Package_Declaration
4444 -- Sloc points to PACKAGE
4445 -- Specification (Node1)
4446 -- Corresponding_Body (Node5-Sem)
4447 -- Parent_Spec (Node4-Sem)
4448 -- Activation_Chain_Entity (Node3-Sem)
4449
4450 --------------------------------
4451 -- 7.1 Package Specification --
4452 --------------------------------
4453
4454 -- PACKAGE_SPECIFICATION ::=
4455 -- package DEFINING_PROGRAM_UNIT_NAME is
4456 -- {BASIC_DECLARATIVE_ITEM}
4457 -- [private
4458 -- {BASIC_DECLARATIVE_ITEM}]
4459 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
4460
4461 -- N_Package_Specification
4462 -- Sloc points to PACKAGE
4463 -- Defining_Unit_Name (Node1)
4464 -- Visible_Declarations (List2)
4465 -- Private_Declarations (List3) (set to No_List if no private
4466 -- part present)
4467 -- End_Label (Node4)
4468 -- Generic_Parent (Node5-Sem)
4469 -- Limited_View_Installed (Flag18-Sem)
4470
4471 -----------------------
4472 -- 7.1 Package Body --
4473 -----------------------
4474
4475 -- PACKAGE_BODY ::=
4476 -- package body DEFINING_PROGRAM_UNIT_NAME is
4477 -- DECLARATIVE_PART
4478 -- [begin
4479 -- HANDLED_SEQUENCE_OF_STATEMENTS]
4480 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
4481
4482 -- N_Package_Body
4483 -- Sloc points to PACKAGE
4484 -- Defining_Unit_Name (Node1)
4485 -- Declarations (List2)
4486 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4487 -- Corresponding_Spec (Node5-Sem)
4488 -- Was_Originally_Stub (Flag13-Sem)
4489
4490 -- Note: if a source level package does not contain a handled sequence
4491 -- of statements, then the parser supplies a dummy one with a null
4492 -- sequence of statements. Comes_From_Source will be False in this
4493 -- constructed sequence. The reason we need this is for the End_Label
4494 -- field in the HSS.
4495
4496 -----------------------------------
4497 -- 7.4 Private Type Declaration --
4498 -----------------------------------
4499
4500 -- PRIVATE_TYPE_DECLARATION ::=
4501 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4502 -- is [[abstract] tagged] [limited] private;
4503
4504 -- Note: TAGGED is not permitted in Ada 83 mode
4505
4506 -- N_Private_Type_Declaration
4507 -- Sloc points to TYPE
4508 -- Defining_Identifier (Node1)
4509 -- Discriminant_Specifications (List4) (set to No_List if no
4510 -- discriminant part)
4511 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4512 -- Abstract_Present (Flag4)
4513 -- Tagged_Present (Flag15)
4514 -- Limited_Present (Flag17)
4515
4516 ----------------------------------------
4517 -- 7.4 Private Extension Declaration --
4518 ----------------------------------------
4519
4520 -- PRIVATE_EXTENSION_DECLARATION ::=
4521 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4522 -- [abstract] [limited | synchronized]
4523 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4524 -- with private;
4525
4526 -- Note: LIMITED, and private extension declarations are not allowed
4527 -- in Ada 83 mode.
4528
4529 -- N_Private_Extension_Declaration
4530 -- Sloc points to TYPE
4531 -- Defining_Identifier (Node1)
4532 -- Discriminant_Specifications (List4) (set to No_List if no
4533 -- discriminant part)
4534 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4535 -- Abstract_Present (Flag4)
4536 -- Limited_Present (Flag17)
4537 -- Synchronized_Present (Flag7)
4538 -- Subtype_Indication (Node5)
4539 -- Interface_List (List2) (set to No_List if none)
4540
4541 ---------------------
4542 -- 8.4 Use Clause --
4543 ---------------------
4544
4545 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4546
4547 -----------------------------
4548 -- 8.4 Use Package Clause --
4549 -----------------------------
4550
4551 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4552
4553 -- N_Use_Package_Clause
4554 -- Sloc points to USE
4555 -- Names (List2)
4556 -- Next_Use_Clause (Node3-Sem)
4557 -- Hidden_By_Use_Clause (Elist4-Sem)
4558
4559 --------------------------
4560 -- 8.4 Use Type Clause --
4561 --------------------------
4562
4563 -- USE_TYPE_CLAUSE ::= use type SUBTYPE_MARK {, SUBTYPE_MARK};
4564
4565 -- Note: use type clause is not permitted in Ada 83 mode
4566
4567 -- N_Use_Type_Clause
4568 -- Sloc points to USE
4569 -- Subtype_Marks (List2)
4570 -- Next_Use_Clause (Node3-Sem)
4571 -- Hidden_By_Use_Clause (Elist4-Sem)
4572
4573 -------------------------------
4574 -- 8.5 Renaming Declaration --
4575 -------------------------------
4576
4577 -- RENAMING_DECLARATION ::=
4578 -- OBJECT_RENAMING_DECLARATION
4579 -- | EXCEPTION_RENAMING_DECLARATION
4580 -- | PACKAGE_RENAMING_DECLARATION
4581 -- | SUBPROGRAM_RENAMING_DECLARATION
4582 -- | GENERIC_RENAMING_DECLARATION
4583
4584 --------------------------------------
4585 -- 8.5 Object Renaming Declaration --
4586 --------------------------------------
4587
4588 -- OBJECT_RENAMING_DECLARATION ::=
4589 -- DEFINING_IDENTIFIER :
4590 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4591 -- | DEFINING_IDENTIFIER :
4592 -- ACCESS_DEFINITION renames object_NAME;
4593
4594 -- Note: Access_Definition is an optional field that gives support to
4595 -- Ada 2005 (AI-230). The parser generates nodes that have either the
4596 -- Subtype_Indication field or else the Access_Definition field.
4597
4598 -- N_Object_Renaming_Declaration
4599 -- Sloc points to first identifier
4600 -- Defining_Identifier (Node1)
4601 -- Null_Exclusion_Present (Flag11) (set to False if not present)
4602 -- Subtype_Mark (Node4) (set to Empty if not present)
4603 -- Access_Definition (Node3) (set to Empty if not present)
4604 -- Name (Node2)
4605 -- Corresponding_Generic_Association (Node5-Sem)
4606
4607 -----------------------------------------
4608 -- 8.5 Exception Renaming Declaration --
4609 -----------------------------------------
4610
4611 -- EXCEPTION_RENAMING_DECLARATION ::=
4612 -- DEFINING_IDENTIFIER : exception renames exception_NAME;
4613
4614 -- N_Exception_Renaming_Declaration
4615 -- Sloc points to first identifier
4616 -- Defining_Identifier (Node1)
4617 -- Name (Node2)
4618
4619 ---------------------------------------
4620 -- 8.5 Package Renaming Declaration --
4621 ---------------------------------------
4622
4623 -- PACKAGE_RENAMING_DECLARATION ::=
4624 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4625
4626 -- N_Package_Renaming_Declaration
4627 -- Sloc points to PACKAGE
4628 -- Defining_Unit_Name (Node1)
4629 -- Name (Node2)
4630 -- Parent_Spec (Node4-Sem)
4631
4632 ------------------------------------------
4633 -- 8.5 Subprogram Renaming Declaration --
4634 ------------------------------------------
4635
4636 -- SUBPROGRAM_RENAMING_DECLARATION ::=
4637 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4638
4639 -- N_Subprogram_Renaming_Declaration
4640 -- Sloc points to RENAMES
4641 -- Specification (Node1)
4642 -- Name (Node2)
4643 -- Parent_Spec (Node4-Sem)
4644 -- Corresponding_Spec (Node5-Sem)
4645 -- Corresponding_Formal_Spec (Node3-Sem)
4646 -- From_Default (Flag6-Sem)
4647
4648 -----------------------------------------
4649 -- 8.5.5 Generic Renaming Declaration --
4650 -----------------------------------------
4651
4652 -- GENERIC_RENAMING_DECLARATION ::=
4653 -- generic package DEFINING_PROGRAM_UNIT_NAME
4654 -- renames generic_package_NAME
4655 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
4656 -- renames generic_procedure_NAME
4657 -- | generic function DEFINING_PROGRAM_UNIT_NAME
4658 -- renames generic_function_NAME
4659
4660 -- N_Generic_Package_Renaming_Declaration
4661 -- Sloc points to GENERIC
4662 -- Defining_Unit_Name (Node1)
4663 -- Name (Node2)
4664 -- Parent_Spec (Node4-Sem)
4665
4666 -- N_Generic_Procedure_Renaming_Declaration
4667 -- Sloc points to GENERIC
4668 -- Defining_Unit_Name (Node1)
4669 -- Name (Node2)
4670 -- Parent_Spec (Node4-Sem)
4671
4672 -- N_Generic_Function_Renaming_Declaration
4673 -- Sloc points to GENERIC
4674 -- Defining_Unit_Name (Node1)
4675 -- Name (Node2)
4676 -- Parent_Spec (Node4-Sem)
4677
4678 --------------------------------
4679 -- 9.1 Task Type Declaration --
4680 --------------------------------
4681
4682 -- TASK_TYPE_DECLARATION ::=
4683 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4684 -- [is [new INTERFACE_LIST with] TASK_DEFINITITION];
4685
4686 -- N_Task_Type_Declaration
4687 -- Sloc points to TASK
4688 -- Defining_Identifier (Node1)
4689 -- Discriminant_Specifications (List4) (set to No_List if no
4690 -- discriminant part)
4691 -- Interface_List (List2) (set to No_List if none)
4692 -- Task_Definition (Node3) (set to Empty if not present)
4693 -- Corresponding_Body (Node5-Sem)
4694
4695 ----------------------------------
4696 -- 9.1 Single Task Declaration --
4697 ----------------------------------
4698
4699 -- SINGLE_TASK_DECLARATION ::=
4700 -- task DEFINING_IDENTIFIER
4701 -- [is [new INTERFACE_LIST with] TASK_DEFINITITION];
4702
4703 -- N_Single_Task_Declaration
4704 -- Sloc points to TASK
4705 -- Defining_Identifier (Node1)
4706 -- Interface_List (List2) (set to No_List if none)
4707 -- Task_Definition (Node3) (set to Empty if not present)
4708
4709 --------------------------
4710 -- 9.1 Task Definition --
4711 --------------------------
4712
4713 -- TASK_DEFINITION ::=
4714 -- {TASK_ITEM}
4715 -- [private
4716 -- {TASK_ITEM}]
4717 -- end [task_IDENTIFIER]
4718
4719 -- Note: as a result of semantic analysis, the list of task items can
4720 -- include implicit type declarations resulting from entry families.
4721
4722 -- N_Task_Definition
4723 -- Sloc points to first token of task definition
4724 -- Visible_Declarations (List2)
4725 -- Private_Declarations (List3) (set to No_List if no private part)
4726 -- End_Label (Node4)
4727 -- Has_Priority_Pragma (Flag6-Sem)
4728 -- Has_Storage_Size_Pragma (Flag5-Sem)
4729 -- Has_Task_Info_Pragma (Flag7-Sem)
4730 -- Has_Task_Name_Pragma (Flag8-Sem)
4731
4732 --------------------
4733 -- 9.1 Task Item --
4734 --------------------
4735
4736 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
4737
4738 --------------------
4739 -- 9.1 Task Body --
4740 --------------------
4741
4742 -- TASK_BODY ::=
4743 -- task body task_DEFINING_IDENTIFIER is
4744 -- DECLARATIVE_PART
4745 -- begin
4746 -- HANDLED_SEQUENCE_OF_STATEMENTS
4747 -- end [task_IDENTIFIER];
4748
4749 -- Gigi restriction: This node never appears
4750
4751 -- N_Task_Body
4752 -- Sloc points to TASK
4753 -- Defining_Identifier (Node1)
4754 -- Declarations (List2)
4755 -- Handled_Statement_Sequence (Node4)
4756 -- Is_Task_Master (Flag5-Sem)
4757 -- Activation_Chain_Entity (Node3-Sem)
4758 -- Corresponding_Spec (Node5-Sem)
4759 -- Was_Originally_Stub (Flag13-Sem)
4760
4761 -------------------------------------
4762 -- 9.4 Protected Type Declaration --
4763 -------------------------------------
4764
4765 -- PROTECTED_TYPE_DECLARATION ::=
4766 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4767 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4768
4769 -- Note: protected type declarations are not permitted in Ada 83 mode
4770
4771 -- N_Protected_Type_Declaration
4772 -- Sloc points to PROTECTED
4773 -- Defining_Identifier (Node1)
4774 -- Discriminant_Specifications (List4) (set to No_List if no
4775 -- discriminant part)
4776 -- Interface_List (List2) (set to No_List if none)
4777 -- Protected_Definition (Node3)
4778 -- Corresponding_Body (Node5-Sem)
4779
4780 ---------------------------------------
4781 -- 9.4 Single Protected Declaration --
4782 ---------------------------------------
4783
4784 -- SINGLE_PROTECTED_DECLARATION ::=
4785 -- protected DEFINING_IDENTIFIER
4786 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4787
4788 -- Note: single protected declarations are not allowed in Ada 83 mode
4789
4790 -- N_Single_Protected_Declaration
4791 -- Sloc points to PROTECTED
4792 -- Defining_Identifier (Node1)
4793 -- Interface_List (List2) (set to No_List if none)
4794 -- Protected_Definition (Node3)
4795
4796 -------------------------------
4797 -- 9.4 Protected Definition --
4798 -------------------------------
4799
4800 -- PROTECTED_DEFINITION ::=
4801 -- {PROTECTED_OPERATION_DECLARATION}
4802 -- [private
4803 -- {PROTECTED_ELEMENT_DECLARATION}]
4804 -- end [protected_IDENTIFIER]
4805
4806 -- N_Protected_Definition
4807 -- Sloc points to first token of protected definition
4808 -- Visible_Declarations (List2)
4809 -- Private_Declarations (List3) (set to No_List if no private part)
4810 -- End_Label (Node4)
4811 -- Has_Priority_Pragma (Flag6-Sem)
4812
4813 ------------------------------------------
4814 -- 9.4 Protected Operation Declaration --
4815 ------------------------------------------
4816
4817 -- PROTECTED_OPERATION_DECLARATION ::=
4818 -- SUBPROGRAM_DECLARATION
4819 -- | ENTRY_DECLARATION
4820 -- | REPRESENTATION_CLAUSE
4821
4822 ----------------------------------------
4823 -- 9.4 Protected Element Declaration --
4824 ----------------------------------------
4825
4826 -- PROTECTED_ELEMENT_DECLARATION ::=
4827 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
4828
4829 -------------------------
4830 -- 9.4 Protected Body --
4831 -------------------------
4832
4833 -- PROTECTED_BODY ::=
4834 -- protected body DEFINING_IDENTIFIER is
4835 -- {PROTECTED_OPERATION_ITEM}
4836 -- end [protected_IDENTIFIER];
4837
4838 -- Note: protected bodies are not allowed in Ada 83 mode
4839
4840 -- Gigi restriction: This node never appears
4841
4842 -- N_Protected_Body
4843 -- Sloc points to PROTECTED
4844 -- Defining_Identifier (Node1)
4845 -- Declarations (List2) protected operation items (and pragmas)
4846 -- End_Label (Node4)
4847 -- Corresponding_Spec (Node5-Sem)
4848 -- Was_Originally_Stub (Flag13-Sem)
4849
4850 -----------------------------------
4851 -- 9.4 Protected Operation Item --
4852 -----------------------------------
4853
4854 -- PROTECTED_OPERATION_ITEM ::=
4855 -- SUBPROGRAM_DECLARATION
4856 -- | SUBPROGRAM_BODY
4857 -- | ENTRY_BODY
4858 -- | REPRESENTATION_CLAUSE
4859
4860 ------------------------------
4861 -- 9.5.2 Entry Declaration --
4862 ------------------------------
4863
4864 -- ENTRY_DECLARATION ::=
4865 -- [[not] overriding]
4866 -- entry DEFINING_IDENTIFIER
4867 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
4868
4869 -- N_Entry_Declaration
4870 -- Sloc points to ENTRY
4871 -- Defining_Identifier (Node1)
4872 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
4873 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4874 -- Corresponding_Body (Node5-Sem)
4875 -- Must_Override (Flag14) set if overriding indicator present
4876 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4877
4878 -- Note: overriding indicator is an Ada 2005 feature
4879
4880 -----------------------------
4881 -- 9.5.2 Accept statement --
4882 -----------------------------
4883
4884 -- ACCEPT_STATEMENT ::=
4885 -- accept entry_DIRECT_NAME
4886 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
4887 -- HANDLED_SEQUENCE_OF_STATEMENTS
4888 -- end [entry_IDENTIFIER]];
4889
4890 -- Gigi restriction: This node never appears
4891
4892 -- Note: there are no explicit declarations allowed in an accept
4893 -- statement. However, the implicit declarations for any statement
4894 -- identifiers (labels and block/loop identifiers) are declarations
4895 -- that belong logically to the accept statement, and that is why
4896 -- there is a Declarations field in this node.
4897
4898 -- N_Accept_Statement
4899 -- Sloc points to ACCEPT
4900 -- Entry_Direct_Name (Node1)
4901 -- Entry_Index (Node5) (set to Empty if not present)
4902 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4903 -- Handled_Statement_Sequence (Node4)
4904 -- Declarations (List2) (set to No_List if no declarations)
4905
4906 ------------------------
4907 -- 9.5.2 Entry Index --
4908 ------------------------
4909
4910 -- ENTRY_INDEX ::= EXPRESSION
4911
4912 -----------------------
4913 -- 9.5.2 Entry Body --
4914 -----------------------
4915
4916 -- ENTRY_BODY ::=
4917 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
4918 -- DECLARATIVE_PART
4919 -- begin
4920 -- HANDLED_SEQUENCE_OF_STATEMENTS
4921 -- end [entry_IDENTIFIER];
4922
4923 -- ENTRY_BARRIER ::= when CONDITION
4924
4925 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
4926 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
4927 -- too full (it would otherwise have too many fields)
4928
4929 -- Gigi restriction: This node never appears
4930
4931 -- N_Entry_Body
4932 -- Sloc points to ENTRY
4933 -- Defining_Identifier (Node1)
4934 -- Entry_Body_Formal_Part (Node5)
4935 -- Declarations (List2)
4936 -- Handled_Statement_Sequence (Node4)
4937 -- Activation_Chain_Entity (Node3-Sem)
4938
4939 -----------------------------------
4940 -- 9.5.2 Entry Body Formal Part --
4941 -----------------------------------
4942
4943 -- ENTRY_BODY_FORMAL_PART ::=
4944 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
4945
4946 -- Note that an entry body formal part node is present even if it is
4947 -- empty. This reflects the grammar, in which it is the components of
4948 -- the entry body formal part that are optional, not the entry body
4949 -- formal part itself. Also this means that the barrier condition
4950 -- always has somewhere to be stored.
4951
4952 -- Gigi restriction: This node never appears
4953
4954 -- N_Entry_Body_Formal_Part
4955 -- Sloc points to first token
4956 -- Entry_Index_Specification (Node4) (set to Empty if not present)
4957 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4958 -- Condition (Node1) from entry barrier of entry body
4959
4960 --------------------------
4961 -- 9.5.2 Entry Barrier --
4962 --------------------------
4963
4964 -- ENTRY_BARRIER ::= when CONDITION
4965
4966 --------------------------------------
4967 -- 9.5.2 Entry Index Specification --
4968 --------------------------------------
4969
4970 -- ENTRY_INDEX_SPECIFICATION ::=
4971 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
4972
4973 -- Gigi restriction: This node never appears
4974
4975 -- N_Entry_Index_Specification
4976 -- Sloc points to FOR
4977 -- Defining_Identifier (Node1)
4978 -- Discrete_Subtype_Definition (Node4)
4979
4980 ---------------------------------
4981 -- 9.5.3 Entry Call Statement --
4982 ---------------------------------
4983
4984 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
4985
4986 -- The parser may generate a procedure call for this construct. The
4987 -- semantic pass must correct this misidentification where needed.
4988
4989 -- Gigi restriction: This node never appears
4990
4991 -- N_Entry_Call_Statement
4992 -- Sloc points to first token of name
4993 -- Name (Node2)
4994 -- Parameter_Associations (List3) (set to No_List if no
4995 -- actual parameter part)
4996 -- First_Named_Actual (Node4-Sem)
4997
4998 ------------------------------
4999 -- 9.5.4 Requeue Statement --
5000 ------------------------------
5001
5002 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5003
5004 -- Note: requeue statements are not permitted in Ada 83 mode
5005
5006 -- Gigi restriction: This node never appears
5007
5008 -- N_Requeue_Statement
5009 -- Sloc points to REQUEUE
5010 -- Name (Node2)
5011 -- Abort_Present (Flag15)
5012
5013 --------------------------
5014 -- 9.6 Delay Statement --
5015 --------------------------
5016
5017 -- DELAY_STATEMENT ::=
5018 -- DELAY_UNTIL_STATEMENT
5019 -- | DELAY_RELATIVE_STATEMENT
5020
5021 --------------------------------
5022 -- 9.6 Delay Until Statement --
5023 --------------------------------
5024
5025 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5026
5027 -- Note: delay until statements are not permitted in Ada 83 mode
5028
5029 -- Gigi restriction: This node never appears
5030
5031 -- N_Delay_Until_Statement
5032 -- Sloc points to DELAY
5033 -- Expression (Node3)
5034
5035 -----------------------------------
5036 -- 9.6 Delay Relative Statement --
5037 -----------------------------------
5038
5039 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5040
5041 -- Gigi restriction: This node never appears
5042
5043 -- N_Delay_Relative_Statement
5044 -- Sloc points to DELAY
5045 -- Expression (Node3)
5046
5047 ---------------------------
5048 -- 9.7 Select Statement --
5049 ---------------------------
5050
5051 -- SELECT_STATEMENT ::=
5052 -- SELECTIVE_ACCEPT
5053 -- | TIMED_ENTRY_CALL
5054 -- | CONDITIONAL_ENTRY_CALL
5055 -- | ASYNCHRONOUS_SELECT
5056
5057 -----------------------------
5058 -- 9.7.1 Selective Accept --
5059 -----------------------------
5060
5061 -- SELECTIVE_ACCEPT ::=
5062 -- select
5063 -- [GUARD]
5064 -- SELECT_ALTERNATIVE
5065 -- {or
5066 -- [GUARD]
5067 -- SELECT_ALTERNATIVE}
5068 -- [else
5069 -- SEQUENCE_OF_STATEMENTS]
5070 -- end select;
5071
5072 -- Gigi restriction: This node never appears
5073
5074 -- Note: the guard expression, if present, appears in the node for
5075 -- the select alternative.
5076
5077 -- N_Selective_Accept
5078 -- Sloc points to SELECT
5079 -- Select_Alternatives (List1)
5080 -- Else_Statements (List4) (set to No_List if no else part)
5081
5082 ------------------
5083 -- 9.7.1 Guard --
5084 ------------------
5085
5086 -- GUARD ::= when CONDITION =>
5087
5088 -- As noted above, the CONDITION that is part of a GUARD is included
5089 -- in the node for the select alernative for convenience.
5090
5091 -------------------------------
5092 -- 9.7.1 Select Alternative --
5093 -------------------------------
5094
5095 -- SELECT_ALTERNATIVE ::=
5096 -- ACCEPT_ALTERNATIVE
5097 -- | DELAY_ALTERNATIVE
5098 -- | TERMINATE_ALTERNATIVE
5099
5100 -------------------------------
5101 -- 9.7.1 Accept Alternative --
5102 -------------------------------
5103
5104 -- ACCEPT_ALTERNATIVE ::=
5105 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5106
5107 -- Gigi restriction: This node never appears
5108
5109 -- N_Accept_Alternative
5110 -- Sloc points to ACCEPT
5111 -- Accept_Statement (Node2)
5112 -- Condition (Node1) from the guard (set to Empty if no guard present)
5113 -- Statements (List3) (set to Empty_List if no statements)
5114 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5115 -- Accept_Handler_Records (List5-Sem)
5116
5117 ------------------------------
5118 -- 9.7.1 Delay Alternative --
5119 ------------------------------
5120
5121 -- DELAY_ALTERNATIVE ::=
5122 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5123
5124 -- Gigi restriction: This node never appears
5125
5126 -- N_Delay_Alternative
5127 -- Sloc points to DELAY
5128 -- Delay_Statement (Node2)
5129 -- Condition (Node1) from the guard (set to Empty if no guard present)
5130 -- Statements (List3) (set to Empty_List if no statements)
5131 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5132
5133 ----------------------------------
5134 -- 9.7.1 Terminate Alternative --
5135 ----------------------------------
5136
5137 -- TERMINATE_ALTERNATIVE ::= terminate;
5138
5139 -- Gigi restriction: This node never appears
5140
5141 -- N_Terminate_Alternative
5142 -- Sloc points to TERMINATE
5143 -- Condition (Node1) from the guard (set to Empty if no guard present)
5144 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5145 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5146
5147 -----------------------------
5148 -- 9.7.2 Timed Entry Call --
5149 -----------------------------
5150
5151 -- TIMED_ENTRY_CALL ::=
5152 -- select
5153 -- ENTRY_CALL_ALTERNATIVE
5154 -- or
5155 -- DELAY_ALTERNATIVE
5156 -- end select;
5157
5158 -- Gigi restriction: This node never appears
5159
5160 -- N_Timed_Entry_Call
5161 -- Sloc points to SELECT
5162 -- Entry_Call_Alternative (Node1)
5163 -- Delay_Alternative (Node4)
5164
5165 -----------------------------------
5166 -- 9.7.2 Entry Call Alternative --
5167 -----------------------------------
5168
5169 -- ENTRY_CALL_ALTERNATIVE ::=
5170 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5171
5172 -- PROCEDURE_OR_ENTRY_CALL ::=
5173 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5174
5175 -- Gigi restriction: This node never appears
5176
5177 -- N_Entry_Call_Alternative
5178 -- Sloc points to first token of entry call statement
5179 -- Entry_Call_Statement (Node1)
5180 -- Statements (List3) (set to Empty_List if no statements)
5181 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5182
5183 -----------------------------------
5184 -- 9.7.3 Conditional Entry Call --
5185 -----------------------------------
5186
5187 -- CONDITIONAL_ENTRY_CALL ::=
5188 -- select
5189 -- ENTRY_CALL_ALTERNATIVE
5190 -- else
5191 -- SEQUENCE_OF_STATEMENTS
5192 -- end select;
5193
5194 -- Gigi restriction: This node never appears
5195
5196 -- N_Conditional_Entry_Call
5197 -- Sloc points to SELECT
5198 -- Entry_Call_Alternative (Node1)
5199 -- Else_Statements (List4)
5200
5201 --------------------------------
5202 -- 9.7.4 Asynchronous Select --
5203 --------------------------------
5204
5205 -- ASYNCHRONOUS_SELECT ::=
5206 -- select
5207 -- TRIGGERING_ALTERNATIVE
5208 -- then abort
5209 -- ABORTABLE_PART
5210 -- end select;
5211
5212 -- Note: asynchronous select is not permitted in Ada 83 mode
5213
5214 -- Gigi restriction: This node never appears
5215
5216 -- N_Asynchronous_Select
5217 -- Sloc points to SELECT
5218 -- Triggering_Alternative (Node1)
5219 -- Abortable_Part (Node2)
5220
5221 -----------------------------------
5222 -- 9.7.4 Triggering Alternative --
5223 -----------------------------------
5224
5225 -- TRIGGERING_ALTERNATIVE ::=
5226 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5227
5228 -- Gigi restriction: This node never appears
5229
5230 -- N_Triggering_Alternative
5231 -- Sloc points to first token of triggering statement
5232 -- Triggering_Statement (Node1)
5233 -- Statements (List3) (set to Empty_List if no statements)
5234 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5235
5236 ---------------------------------
5237 -- 9.7.4 Triggering Statement --
5238 ---------------------------------
5239
5240 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5241
5242 ---------------------------
5243 -- 9.7.4 Abortable Part --
5244 ---------------------------
5245
5246 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5247
5248 -- Gigi restriction: This node never appears
5249
5250 -- N_Abortable_Part
5251 -- Sloc points to ABORT
5252 -- Statements (List3)
5253
5254 --------------------------
5255 -- 9.8 Abort Statement --
5256 --------------------------
5257
5258 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5259
5260 -- Gigi restriction: This node never appears
5261
5262 -- N_Abort_Statement
5263 -- Sloc points to ABORT
5264 -- Names (List2)
5265
5266 -------------------------
5267 -- 10.1.1 Compilation --
5268 -------------------------
5269
5270 -- COMPILATION ::= {COMPILATION_UNIT}
5271
5272 -- There is no explicit node in the tree for a compilation, since in
5273 -- general the compiler is processing only a single compilation unit
5274 -- at a time. It is possible to parse multiple units in syntax check
5275 -- only mode, but they the trees are discarded in any case.
5276
5277 ------------------------------
5278 -- 10.1.1 Compilation Unit --
5279 ------------------------------
5280
5281 -- COMPILATION_UNIT ::=
5282 -- CONTEXT_CLAUSE LIBRARY_ITEM
5283 -- | CONTEXT_CLAUSE SUBUNIT
5284
5285 -- The N_Compilation_Unit node itself respresents the above syntax.
5286 -- However, there are two additional items not reflected in the above
5287 -- syntax. First we have the global declarations that are added by the
5288 -- code generator. These are outer level declarations (so they cannot
5289 -- be represented as being inside the units). An example is the wrapper
5290 -- subprograms that are created to do ABE checking. As always a list of
5291 -- declarations can contain actions as well (i.e. statements), and such
5292 -- statements are executed as part of the elaboration of the unit. Note
5293 -- that all such declarations are elaborated before the library unit.
5294
5295 -- Similarly, certain actions need to be elaborated at the completion
5296 -- of elaboration of the library unit (notably the statement that sets
5297 -- the Boolean flag indicating that elaboration is complete).
5298
5299 -- The third item not reflected in the syntax is pragmas that appear
5300 -- after the compilation unit. As always pragmas are a problem since
5301 -- they are not part of the formal syntax, but can be stuck into the
5302 -- source following a set of ad hoc rules, and we have to find an ad
5303 -- hoc way of sticking them into the tree. For pragmas that appear
5304 -- before the library unit, we just consider them to be part of the
5305 -- context clause, and pragmas can appear in the Context_Items list
5306 -- of the compilation unit. However, pragmas can also appear after
5307 -- the library item.
5308
5309 -- To deal with all these problems, we create an auxiliary node for
5310 -- a compilation unit, referenced from the N_Compilation_Unit node
5311 -- that contains these three items.
5312
5313 -- N_Compilation_Unit
5314 -- Sloc points to first token of defining unit name
5315 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
5316 -- Context_Items (List1) context items and pragmas preceding unit
5317 -- Private_Present (Flag15) set if library unit has private keyword
5318 -- Unit (Node2) library item or subunit
5319 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5320 -- Has_No_Elaboration_Code (Flag17-Sem)
5321 -- Body_Required (Flag13-Sem) set for spec if body is required
5322 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5323 -- First_Inlined_Subprogram (Node3-Sem)
5324
5325 -- N_Compilation_Unit_Aux
5326 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
5327 -- Declarations (List2) (set to No_List if no global declarations)
5328 -- Actions (List1) (set to No_List if no actions)
5329 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
5330 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5331
5332 --------------------------
5333 -- 10.1.1 Library Item --
5334 --------------------------
5335
5336 -- LIBRARY_ITEM ::=
5337 -- [private] LIBRARY_UNIT_DECLARATION
5338 -- | LIBRARY_UNIT_BODY
5339 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5340
5341 -- Note: PRIVATE is not allowed in Ada 83 mode
5342
5343 -- There is no explicit node in the tree for library item, instead
5344 -- the declaration or body, and the flag for private if present,
5345 -- appear in the N_Compilation_Unit clause.
5346
5347 ----------------------------------------
5348 -- 10.1.1 Library Unit Declararation --
5349 ----------------------------------------
5350
5351 -- LIBRARY_UNIT_DECLARATION ::=
5352 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5353 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
5354
5355 -------------------------------------------------
5356 -- 10.1.1 Library Unit Renaming Declararation --
5357 -------------------------------------------------
5358
5359 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
5360 -- PACKAGE_RENAMING_DECLARATION
5361 -- | GENERIC_RENAMING_DECLARATION
5362 -- | SUBPROGRAM_RENAMING_DECLARATION
5363
5364 -------------------------------
5365 -- 10.1.1 Library unit body --
5366 -------------------------------
5367
5368 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5369
5370 ------------------------------
5371 -- 10.1.1 Parent Unit Name --
5372 ------------------------------
5373
5374 -- PARENT_UNIT_NAME ::= NAME
5375
5376 ----------------------------
5377 -- 10.1.2 Context clause --
5378 ----------------------------
5379
5380 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5381
5382 -- The context clause can include pragmas, and any pragmas that appear
5383 -- before the context clause proper (i.e. all configuration pragmas,
5384 -- also appear at the front of this list).
5385
5386 --------------------------
5387 -- 10.1.2 Context_Item --
5388 --------------------------
5389
5390 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
5391
5392 -------------------------
5393 -- 10.1.2 With clause --
5394 -------------------------
5395
5396 -- WITH_CLAUSE ::=
5397 -- with library_unit_NAME {,library_unit_NAME};
5398
5399 -- A separate With clause is built for each name, so that we have
5400 -- a Corresponding_Spec field for each with'ed spec. The flags
5401 -- First_Name and Last_Name are used to reconstruct the exact
5402 -- source form. When a list of names appears in one with clause,
5403 -- the first name in the list has First_Name set, and the last
5404 -- has Last_Name set. If the with clause has only one name, then
5405 -- both of the flags First_Name and Last_Name are set in this name.
5406
5407 -- Note: in the case of implicit with's that are installed by the
5408 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
5409 -- set to Standard_Location, but it is incorrect to test the Sloc
5410 -- to find out if a with clause is implicit, test the flag instead.
5411
5412 -- N_With_Clause
5413 -- Sloc points to first token of library unit name
5414 -- Name (Node2)
5415 -- Library_Unit (Node4-Sem)
5416 -- Corresponding_Spec (Node5-Sem)
5417 -- First_Name (Flag5) (set to True if first name or only one name)
5418 -- Last_Name (Flag6) (set to True if last name or only one name)
5419 -- Context_Installed (Flag13-Sem)
5420 -- Elaborate_Present (Flag4-Sem)
5421 -- Elaborate_All_Present (Flag14-Sem)
5422 -- Elaborate_All_Desirable (Flag9-Sem)
5423 -- Elaborate_Desirable (Flag11-Sem)
5424 -- Private_Present (Flag15) set if with_clause has private keyword
5425 -- Implicit_With (Flag16-Sem)
5426 -- Limited_Present (Flag17) set if LIMITED is present
5427 -- Limited_View_Installed (Flag18-Sem)
5428 -- Unreferenced_In_Spec (Flag7-Sem)
5429 -- No_Entities_Ref_In_Spec (Flag8-Sem)
5430
5431 -- Note: Limited_Present and Limited_View_Installed give support to
5432 -- Ada 2005 (AI-50217).
5433 -- Similarly, Private_Present gives support to AI-50262.
5434
5435 ----------------------
5436 -- With_Type clause --
5437 ----------------------
5438
5439 -- This is a GNAT extension, used to implement mutually recursive
5440 -- types declared in different packages.
5441 -- Note: this is now obsolete. The functionality of this construct
5442 -- is now implemented by the Ada 2005 Limited_with_Clause.
5443
5444 ---------------------
5445 -- 10.2 Body stub --
5446 ---------------------
5447
5448 -- BODY_STUB ::=
5449 -- SUBPROGRAM_BODY_STUB
5450 -- | PACKAGE_BODY_STUB
5451 -- | TASK_BODY_STUB
5452 -- | PROTECTED_BODY_STUB
5453
5454 ----------------------------------
5455 -- 10.1.3 Subprogram Body Stub --
5456 ----------------------------------
5457
5458 -- SUBPROGRAM_BODY_STUB ::=
5459 -- SUBPROGRAM_SPECIFICATION is separate;
5460
5461 -- N_Subprogram_Body_Stub
5462 -- Sloc points to FUNCTION or PROCEDURE
5463 -- Specification (Node1)
5464 -- Library_Unit (Node4-Sem) points to the subunit
5465 -- Corresponding_Body (Node5-Sem)
5466
5467 -------------------------------
5468 -- 10.1.3 Package Body Stub --
5469 -------------------------------
5470
5471 -- PACKAGE_BODY_STUB ::=
5472 -- package body DEFINING_IDENTIFIER is separate;
5473
5474 -- N_Package_Body_Stub
5475 -- Sloc points to PACKAGE
5476 -- Defining_Identifier (Node1)
5477 -- Library_Unit (Node4-Sem) points to the subunit
5478 -- Corresponding_Body (Node5-Sem)
5479
5480 ----------------------------
5481 -- 10.1.3 Task Body Stub --
5482 ----------------------------
5483
5484 -- TASK_BODY_STUB ::=
5485 -- task body DEFINING_IDENTIFIER is separate;
5486
5487 -- N_Task_Body_Stub
5488 -- Sloc points to TASK
5489 -- Defining_Identifier (Node1)
5490 -- Library_Unit (Node4-Sem) points to the subunit
5491 -- Corresponding_Body (Node5-Sem)
5492
5493 ---------------------------------
5494 -- 10.1.3 Protected Body Stub --
5495 ---------------------------------
5496
5497 -- PROTECTED_BODY_STUB ::=
5498 -- protected body DEFINING_IDENTIFIER is separate;
5499
5500 -- Note: protected body stubs are not allowed in Ada 83 mode
5501
5502 -- N_Protected_Body_Stub
5503 -- Sloc points to PROTECTED
5504 -- Defining_Identifier (Node1)
5505 -- Library_Unit (Node4-Sem) points to the subunit
5506 -- Corresponding_Body (Node5-Sem)
5507
5508 ---------------------
5509 -- 10.1.3 Subunit --
5510 ---------------------
5511
5512 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5513
5514 -- N_Subunit
5515 -- Sloc points to SEPARATE
5516 -- Name (Node2) is the name of the parent unit
5517 -- Proper_Body (Node1) is the subunit body
5518 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5519
5520 ---------------------------------
5521 -- 11.1 Exception Declaration --
5522 ---------------------------------
5523
5524 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception;
5525
5526 -- For consistency with object declarations etc, the parser converts
5527 -- the case of multiple identifiers being declared to a series of
5528 -- declarations in which the expression is copied, using the More_Ids
5529 -- and Prev_Ids flags to remember the souce form as described in the
5530 -- section on "Handling of Defining Identifier Lists".
5531
5532 -- N_Exception_Declaration
5533 -- Sloc points to EXCEPTION
5534 -- Defining_Identifier (Node1)
5535 -- Expression (Node3-Sem)
5536 -- Renaming_Exception (Node2-Sem)
5537 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5538 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5539
5540 ------------------------------------------
5541 -- 11.2 Handled Sequence Of Statements --
5542 ------------------------------------------
5543
5544 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
5545 -- SEQUENCE_OF_STATEMENTS
5546 -- [exception
5547 -- EXCEPTION_HANDLER
5548 -- {EXCEPTION_HANDLER}]
5549 -- [at end
5550 -- cleanup_procedure_call (param, param, param, ...);]
5551
5552 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
5553 -- used only internally currently, but is considered to be syntactic.
5554 -- At the moment, the only cleanup action allowed is a single call to
5555 -- a parameterless procedure, and the Identifier field of the node is
5556 -- the procedure to be called. Also there is a current restriction
5557 -- that exception handles and a cleanup cannot be present in the same
5558 -- frame, so at least one of Exception_Handlers or the Identifier must
5559 -- be missing.
5560
5561 -- Actually, more accurately, this restriction applies to the original
5562 -- source program. In the expanded tree, if the At_End_Proc field is
5563 -- present, then there will also be an exception handler of the form:
5564
5565 -- when all others =>
5566 -- cleanup;
5567 -- raise;
5568
5569 -- where cleanup is the procedure to be generated. The reason we do
5570 -- this is so that the front end can handle the necessary entries in
5571 -- the exception tables, and other exception handler actions required
5572 -- as part of the normal handling for exception handlers.
5573
5574 -- The AT END cleanup handler protects only the sequence of statements
5575 -- (not the associated declarations of the parent), just like exception
5576 -- handlers. The big difference is that the cleanup procedure is called
5577 -- on either a normal or an abnormal exit from the statement sequence.
5578
5579 -- Note: the list of Exception_Handlers can contain pragmas as well
5580 -- as actual handlers. In practice these pragmas can only occur at
5581 -- the start of the list, since any pragmas occurring later on will
5582 -- be included in the statement list of the corresponding handler.
5583
5584 -- Note: although in the Ada syntax, the sequence of statements in
5585 -- a handled sequence of statements can only contain statements, we
5586 -- allow free mixing of declarations and statements in the resulting
5587 -- expanded tree. This is for example used to deal with the case of
5588 -- a cleanup procedure that must handle declarations as well as the
5589 -- statements of a block.
5590
5591 -- N_Handled_Sequence_Of_Statements
5592 -- Sloc points to first token of first statement
5593 -- Statements (List3)
5594 -- End_Label (Node4) (set to Empty if expander generated)
5595 -- Exception_Handlers (List5) (set to No_List if none present)
5596 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
5597 -- First_Real_Statement (Node2-Sem)
5598 -- Zero_Cost_Handling (Flag5-Sem)
5599
5600 -- Note: the parent always contains a Declarations field which contains
5601 -- declarations associated with the handled sequence of statements. This
5602 -- is true even in the case of an accept statement (see description of
5603 -- the N_Accept_Statement node).
5604
5605 -- End_Label refers to the containing construct
5606
5607 -----------------------------
5608 -- 11.2 Exception Handler --
5609 -----------------------------
5610
5611 -- EXCEPTION_HANDLER ::=
5612 -- when [CHOICE_PARAMETER_SPECIFICATION :]
5613 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5614 -- SEQUENCE_OF_STATEMENTS
5615
5616 -- Note: choice parameter specification is not allowed in Ada 83 mode
5617
5618 -- N_Exception_Handler
5619 -- Sloc points to WHEN
5620 -- Choice_Parameter (Node2) (set to Empty if not present)
5621 -- Exception_Choices (List4)
5622 -- Statements (List3)
5623 -- Exception_Label (Node5-Sem) (set to Empty of not present)
5624 -- Zero_Cost_Handling (Flag5-Sem)
5625 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5626 -- Local_Raise_Not_OK (Flag7-Sem)
5627 -- Has_Local_Raise (Flag8-Sem)
5628
5629 ------------------------------------------
5630 -- 11.2 Choice parameter specification --
5631 ------------------------------------------
5632
5633 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5634
5635 ----------------------------
5636 -- 11.2 Exception Choice --
5637 ----------------------------
5638
5639 -- EXCEPTION_CHOICE ::= exception_NAME | others
5640
5641 -- Except in the case of OTHERS, no explicit node appears in the tree
5642 -- for exception choice. Instead the exception name appears directly.
5643 -- An OTHERS choice is represented by a N_Others_Choice node (see
5644 -- section 3.8.1.
5645
5646 -- Note: for the exception choice created for an at end handler, the
5647 -- exception choice is an N_Others_Choice node with All_Others set.
5648
5649 ---------------------------
5650 -- 11.3 Raise Statement --
5651 ---------------------------
5652
5653 -- RAISE_STATEMENT ::= raise [exception_NAME];
5654
5655 -- In Ada 2005, we have
5656
5657 -- RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5658
5659 -- N_Raise_Statement
5660 -- Sloc points to RAISE
5661 -- Name (Node2) (set to Empty if no exception name present)
5662 -- Expression (Node3) (set to Empty if no expression present)
5663
5664 -------------------------------
5665 -- 12.1 Generic Declaration --
5666 -------------------------------
5667
5668 -- GENERIC_DECLARATION ::=
5669 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5670
5671 ------------------------------------------
5672 -- 12.1 Generic Subprogram Declaration --
5673 ------------------------------------------
5674
5675 -- GENERIC_SUBPROGRAM_DECLARATION ::=
5676 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5677
5678 -- Note: Generic_Formal_Declarations can include pragmas
5679
5680 -- N_Generic_Subprogram_Declaration
5681 -- Sloc points to GENERIC
5682 -- Specification (Node1) subprogram specification
5683 -- Corresponding_Body (Node5-Sem)
5684 -- Generic_Formal_Declarations (List2) from generic formal part
5685 -- Parent_Spec (Node4-Sem)
5686
5687 ---------------------------------------
5688 -- 12.1 Generic Package Declaration --
5689 ---------------------------------------
5690
5691 -- GENERIC_PACKAGE_DECLARATION ::=
5692 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION;
5693
5694 -- Note: when we do generics right, the Activation_Chain_Entity entry
5695 -- for this node can be removed (since the expander won't see generic
5696 -- units any more)???.
5697
5698 -- Note: Generic_Formal_Declarations can include pragmas
5699
5700 -- N_Generic_Package_Declaration
5701 -- Sloc points to GENERIC
5702 -- Specification (Node1) package specification
5703 -- Corresponding_Body (Node5-Sem)
5704 -- Generic_Formal_Declarations (List2) from generic formal part
5705 -- Parent_Spec (Node4-Sem)
5706 -- Activation_Chain_Entity (Node3-Sem)
5707
5708 -------------------------------
5709 -- 12.1 Generic Formal Part --
5710 -------------------------------
5711
5712 -- GENERIC_FORMAL_PART ::=
5713 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
5714
5715 ------------------------------------------------
5716 -- 12.1 Generic Formal Parameter Declaration --
5717 ------------------------------------------------
5718
5719 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
5720 -- FORMAL_OBJECT_DECLARATION
5721 -- | FORMAL_TYPE_DECLARATION
5722 -- | FORMAL_SUBPROGRAM_DECLARATION
5723 -- | FORMAL_PACKAGE_DECLARATION
5724
5725 ---------------------------------
5726 -- 12.3 Generic Instantiation --
5727 ---------------------------------
5728
5729 -- GENERIC_INSTANTIATION ::=
5730 -- package DEFINING_PROGRAM_UNIT_NAME is
5731 -- new generic_package_NAME [GENERIC_ACTUAL_PART];
5732 -- | [[not] overriding]
5733 -- procedure DEFINING_PROGRAM_UNIT_NAME is
5734 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART];
5735 -- | [[not] overriding]
5736 -- function DEFINING_DESIGNATOR is
5737 -- new generic_function_NAME [GENERIC_ACTUAL_PART];
5738
5739 -- N_Package_Instantiation
5740 -- Sloc points to PACKAGE
5741 -- Defining_Unit_Name (Node1)
5742 -- Name (Node2)
5743 -- Generic_Associations (List3) (set to No_List if no
5744 -- generic actual part)
5745 -- Parent_Spec (Node4-Sem)
5746 -- Instance_Spec (Node5-Sem)
5747 -- ABE_Is_Certain (Flag18-Sem)
5748
5749 -- N_Procedure_Instantiation
5750 -- Sloc points to PROCEDURE
5751 -- Defining_Unit_Name (Node1)
5752 -- Name (Node2)
5753 -- Parent_Spec (Node4-Sem)
5754 -- Generic_Associations (List3) (set to No_List if no
5755 -- generic actual part)
5756 -- Instance_Spec (Node5-Sem)
5757 -- Must_Override (Flag14) set if overriding indicator present
5758 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5759 -- ABE_Is_Certain (Flag18-Sem)
5760
5761 -- N_Function_Instantiation
5762 -- Sloc points to FUNCTION
5763 -- Defining_Unit_Name (Node1)
5764 -- Name (Node2)
5765 -- Generic_Associations (List3) (set to No_List if no
5766 -- generic actual part)
5767 -- Parent_Spec (Node4-Sem)
5768 -- Instance_Spec (Node5-Sem)
5769 -- Must_Override (Flag14) set if overriding indicator present
5770 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5771 -- ABE_Is_Certain (Flag18-Sem)
5772
5773 -- Note: overriding indicator is an Ada 2005 feature
5774
5775 ------------------------------
5776 -- 12.3 Generic Actual Part --
5777 ------------------------------
5778
5779 -- GENERIC_ACTUAL_PART ::=
5780 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
5781
5782 -------------------------------
5783 -- 12.3 Generic Association --
5784 -------------------------------
5785
5786 -- GENERIC_ASSOCIATION ::=
5787 -- [generic_formal_parameter_SELECTOR_NAME =>]
5788
5789 -- Note: unlike the procedure call case, a generic association node
5790 -- is generated for every association, even if no formal is present.
5791 -- In this case the parser will leave the Selector_Name field set
5792 -- to Empty, to be filled in later by the semantic pass.
5793
5794 -- In Ada 2005, a formal may be associated with a box, if the
5795 -- association is part of the list of actuals for a formal package.
5796 -- If the association is given by OTHERS => <>, the association is
5797 -- an N_Others_Choice.
5798
5799 -- N_Generic_Association
5800 -- Sloc points to first token of generic association
5801 -- Selector_Name (Node2) (set to Empty if no formal
5802 -- parameter selector name)
5803 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
5804 -- Box_Present (Flag15) (for formal_package associations with a box)
5805
5806 ---------------------------------------------
5807 -- 12.3 Explicit Generic Actual Parameter --
5808 ---------------------------------------------
5809
5810 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
5811 -- EXPRESSION | variable_NAME | subprogram_NAME
5812 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
5813
5814 -------------------------------------
5815 -- 12.4 Formal Object Declaration --
5816 -------------------------------------
5817
5818 -- FORMAL_OBJECT_DECLARATION ::=
5819 -- DEFINING_IDENTIFIER_LIST :
5820 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION];
5821 -- | DEFINING_IDENTIFIER_LIST :
5822 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION];
5823
5824 -- Although the syntax allows multiple identifiers in the list, the
5825 -- semantics is as though successive declarations were given with
5826 -- identical type definition and expression components. To simplify
5827 -- semantic processing, the parser represents a multiple declaration
5828 -- case as a sequence of single declarations, using the More_Ids and
5829 -- Prev_Ids flags to preserve the original source form as described
5830 -- in the section on "Handling of Defining Identifier Lists".
5831
5832 -- N_Formal_Object_Declaration
5833 -- Sloc points to first identifier
5834 -- Defining_Identifier (Node1)
5835 -- In_Present (Flag15)
5836 -- Out_Present (Flag17)
5837 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5838 -- Subtype_Mark (Node4) (set to Empty if not present)
5839 -- Access_Definition (Node3) (set to Empty if not present)
5840 -- Default_Expression (Node5) (set to Empty if no default expression)
5841 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5842 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5843
5844 -----------------------------------
5845 -- 12.5 Formal Type Declaration --
5846 -----------------------------------
5847
5848 -- FORMAL_TYPE_DECLARATION ::=
5849 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5850 -- is FORMAL_TYPE_DEFINITION;
5851
5852 -- N_Formal_Type_Declaration
5853 -- Sloc points to TYPE
5854 -- Defining_Identifier (Node1)
5855 -- Formal_Type_Definition (Node3)
5856 -- Discriminant_Specifications (List4) (set to No_List if no
5857 -- discriminant part)
5858 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5859
5860 ----------------------------------
5861 -- 12.5 Formal type definition --
5862 ----------------------------------
5863
5864 -- FORMAL_TYPE_DEFINITION ::=
5865 -- FORMAL_PRIVATE_TYPE_DEFINITION
5866 -- | FORMAL_DERIVED_TYPE_DEFINITION
5867 -- | FORMAL_DISCRETE_TYPE_DEFINITION
5868 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
5869 -- | FORMAL_MODULAR_TYPE_DEFINITION
5870 -- | FORMAL_FLOATING_POINT_DEFINITION
5871 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
5872 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
5873 -- | FORMAL_ARRAY_TYPE_DEFINITION
5874 -- | FORMAL_ACCESS_TYPE_DEFINITION
5875 -- | FORMAL_INTERFACE_TYPE_DEFINITION
5876
5877 ---------------------------------------------
5878 -- 12.5.1 Formal Private Type Definition --
5879 ---------------------------------------------
5880
5881 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
5882 -- [[abstract] tagged] [limited] private
5883
5884 -- Note: TAGGED is not allowed in Ada 83 mode
5885
5886 -- N_Formal_Private_Type_Definition
5887 -- Sloc points to PRIVATE
5888 -- Abstract_Present (Flag4)
5889 -- Tagged_Present (Flag15)
5890 -- Limited_Present (Flag17)
5891
5892 --------------------------------------------
5893 -- 12.5.1 Formal Derived Type Definition --
5894 --------------------------------------------
5895
5896 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
5897 -- [abstract] [limited | synchronized]
5898 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
5899 -- Note: this construct is not allowed in Ada 83 mode
5900
5901 -- N_Formal_Derived_Type_Definition
5902 -- Sloc points to NEW
5903 -- Subtype_Mark (Node4)
5904 -- Private_Present (Flag15)
5905 -- Abstract_Present (Flag4)
5906 -- Limited_Present (Flag17)
5907 -- Synchronized_Present (Flag7)
5908 -- Interface_List (List2) (set to No_List if none)
5909
5910 ---------------------------------------------
5911 -- 12.5.2 Formal Discrete Type Definition --
5912 ---------------------------------------------
5913
5914 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
5915
5916 -- N_Formal_Discrete_Type_Definition
5917 -- Sloc points to (
5918
5919 ---------------------------------------------------
5920 -- 12.5.2 Formal Signed Integer Type Definition --
5921 ---------------------------------------------------
5922
5923 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
5924
5925 -- N_Formal_Signed_Integer_Type_Definition
5926 -- Sloc points to RANGE
5927
5928 --------------------------------------------
5929 -- 12.5.2 Formal Modular Type Definition --
5930 --------------------------------------------
5931
5932 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
5933
5934 -- N_Formal_Modular_Type_Definition
5935 -- Sloc points to MOD
5936
5937 ----------------------------------------------
5938 -- 12.5.2 Formal Floating Point Definition --
5939 ----------------------------------------------
5940
5941 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
5942
5943 -- N_Formal_Floating_Point_Definition
5944 -- Sloc points to DIGITS
5945
5946 ----------------------------------------------------
5947 -- 12.5.2 Formal Ordinary Fixed Point Definition --
5948 ----------------------------------------------------
5949
5950 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
5951
5952 -- N_Formal_Ordinary_Fixed_Point_Definition
5953 -- Sloc points to DELTA
5954
5955 ---------------------------------------------------
5956 -- 12.5.2 Formal Decimal Fixed Point Definition --
5957 ---------------------------------------------------
5958
5959 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
5960
5961 -- Note: formal decimal fixed point definition not allowed in Ada 83
5962
5963 -- N_Formal_Decimal_Fixed_Point_Definition
5964 -- Sloc points to DELTA
5965
5966 ------------------------------------------
5967 -- 12.5.3 Formal Array Type Definition --
5968 ------------------------------------------
5969
5970 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
5971
5972 -------------------------------------------
5973 -- 12.5.4 Formal Access Type Definition --
5974 -------------------------------------------
5975
5976 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
5977
5978 ----------------------------------------------
5979 -- 12.5.5 Formal Interface Type Definition --
5980 ----------------------------------------------
5981
5982 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
5983
5984 -----------------------------------------
5985 -- 12.6 Formal Subprogram Declaration --
5986 -----------------------------------------
5987
5988 -- FORMAL_SUBPROGRAM_DECLARATION ::=
5989 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
5990 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
5991
5992 --------------------------------------------------
5993 -- 12.6 Formal Concrete Subprogram Declaration --
5994 --------------------------------------------------
5995
5996 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
5997 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT];
5998
5999 -- N_Formal_Concrete_Subprogram_Declaration
6000 -- Sloc points to WITH
6001 -- Specification (Node1)
6002 -- Default_Name (Node2) (set to Empty if no subprogram default)
6003 -- Box_Present (Flag15)
6004
6005 -- Note: if no subprogram default is present, then Name is set
6006 -- to Empty, and Box_Present is False.
6007
6008 --------------------------------------------------
6009 -- 12.6 Formal Abstract Subprogram Declaration --
6010 --------------------------------------------------
6011
6012 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6013 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT];
6014
6015 -- N_Formal_Abstract_Subprogram_Declaration
6016 -- Sloc points to WITH
6017 -- Specification (Node1)
6018 -- Default_Name (Node2) (set to Empty if no subprogram default)
6019 -- Box_Present (Flag15)
6020
6021 -- Note: if no subprogram default is present, then Name is set
6022 -- to Empty, and Box_Present is False.
6023
6024 ------------------------------
6025 -- 12.6 Subprogram Default --
6026 ------------------------------
6027
6028 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6029
6030 -- There is no separate node in the tree for a subprogram default.
6031 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6032 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6033 -- default name or box indication, as needed.
6034
6035 ------------------------
6036 -- 12.6 Default Name --
6037 ------------------------
6038
6039 -- DEFAULT_NAME ::= NAME
6040
6041 --------------------------------------
6042 -- 12.7 Formal Package Declaration --
6043 --------------------------------------
6044
6045 -- FORMAL_PACKAGE_DECLARATION ::=
6046 -- with package DEFINING_IDENTIFIER
6047 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART;
6048
6049 -- Note: formal package declarations not allowed in Ada 83 mode
6050
6051 -- N_Formal_Package_Declaration
6052 -- Sloc points to WITH
6053 -- Defining_Identifier (Node1)
6054 -- Name (Node2)
6055 -- Generic_Associations (List3) (set to No_List if (<>) case or
6056 -- empty generic actual part)
6057 -- Box_Present (Flag15)
6058 -- Instance_Spec (Node5-Sem)
6059 -- ABE_Is_Certain (Flag18-Sem)
6060
6061 --------------------------------------
6062 -- 12.7 Formal Package Actual Part --
6063 --------------------------------------
6064
6065 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6066 -- ([OTHERS] => <>)
6067 -- | [GENERIC_ACTUAL_PART]
6068 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6069
6070 -- FORMAL_PACKAGE_ASSOCIATION ::=
6071 -- GENERIC_ASSOCIATION
6072 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6073
6074 -- There is no explicit node in the tree for a formal package actual
6075 -- part. Instead the information appears in the parent node (i.e. the
6076 -- formal package declaration node itself).
6077
6078 -- There is no explicit node for a formal package association. All of
6079 -- them are represented either by a generic association, possibly with
6080 -- Box_Present, or by an N_Others_Choice.
6081
6082 ---------------------------------
6083 -- 13.1 Representation clause --
6084 ---------------------------------
6085
6086 -- REPRESENTATION_CLAUSE ::=
6087 -- ATTRIBUTE_DEFINITION_CLAUSE
6088 -- | ENUMERATION_REPRESENTATION_CLAUSE
6089 -- | RECORD_REPRESENTATION_CLAUSE
6090 -- | AT_CLAUSE
6091
6092 ----------------------
6093 -- 13.1 Local Name --
6094 ----------------------
6095
6096 -- LOCAL_NAME :=
6097 -- DIRECT_NAME
6098 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6099 -- | library_unit_NAME
6100
6101 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6102 -- as an attribute reference, which has essentially the same form.
6103
6104 ---------------------------------------
6105 -- 13.3 Attribute definition clause --
6106 ---------------------------------------
6107
6108 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6109 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6110 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6111
6112 -- In Ada 83, the expression must be a simple expression and the
6113 -- local name must be a direct name.
6114
6115 -- Note: the only attribute definition clause that is processed by
6116 -- gigi is an address clause. For all other cases, the information
6117 -- is extracted by the front end and either results in setting entity
6118 -- information, e.g. Esize for the Size clause, or in appropriate
6119 -- expansion actions (e.g. in the case of Storage_Size).
6120
6121 -- For an address clause, Gigi constructs the appropriate addressing
6122 -- code. It also ensures that no aliasing optimizations are made
6123 -- for the object for which the address clause appears.
6124
6125 -- Note: for an address clause used to achieve an overlay:
6126
6127 -- A : Integer;
6128 -- B : Integer;
6129 -- for B'Address use A'Address;
6130
6131 -- the above rule means that Gigi will ensure that no optimizations
6132 -- will be made for B that would violate the implementation advice
6133 -- of RM 13.3(19). However, this advice applies only to B and not
6134 -- to A, which seems unfortunate. The GNAT front end will mark the
6135 -- object A as volatile to also prevent unwanted optimization
6136 -- assumptions based on no aliasing being made for B.
6137
6138 -- N_Attribute_Definition_Clause
6139 -- Sloc points to FOR
6140 -- Name (Node2) the local name
6141 -- Chars (Name1) the identifier name from the attribute designator
6142 -- Expression (Node3) the expression or name
6143 -- Entity (Node4-Sem)
6144 -- Next_Rep_Item (Node5-Sem)
6145 -- From_At_Mod (Flag4-Sem)
6146 -- Check_Address_Alignment (Flag11-Sem)
6147 -- Address_Warning_Posted (Flag18-Sem)
6148
6149 ---------------------------------------------
6150 -- 13.4 Enumeration representation clause --
6151 ---------------------------------------------
6152
6153 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
6154 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6155
6156 -- In Ada 83, the name must be a direct name
6157
6158 -- N_Enumeration_Representation_Clause
6159 -- Sloc points to FOR
6160 -- Identifier (Node1) direct name
6161 -- Array_Aggregate (Node3)
6162 -- Next_Rep_Item (Node5-Sem)
6163
6164 ---------------------------------
6165 -- 13.4 Enumeration aggregate --
6166 ---------------------------------
6167
6168 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6169
6170 ------------------------------------------
6171 -- 13.5.1 Record representation clause --
6172 ------------------------------------------
6173
6174 -- RECORD_REPRESENTATION_CLAUSE ::=
6175 -- for first_subtype_LOCAL_NAME use
6176 -- record [MOD_CLAUSE]
6177 -- {COMPONENT_CLAUSE}
6178 -- end record;
6179
6180 -- Gigi restriction: Mod_Clause is always Empty (if present it is
6181 -- replaced by a corresponding Alignment attribute definition clause).
6182
6183 -- Note: Component_Clauses can include pragmas
6184
6185 -- N_Record_Representation_Clause
6186 -- Sloc points to FOR
6187 -- Identifier (Node1) direct name
6188 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
6189 -- Component_Clauses (List3)
6190 -- Next_Rep_Item (Node5-Sem)
6191
6192 ------------------------------
6193 -- 13.5.1 Component clause --
6194 ------------------------------
6195
6196 -- COMPONENT_CLAUSE ::=
6197 -- component_LOCAL_NAME at POSITION
6198 -- range FIRST_BIT .. LAST_BIT;
6199
6200 -- N_Component_Clause
6201 -- Sloc points to AT
6202 -- Component_Name (Node1) points to Name or Attribute_Reference
6203 -- Position (Node2)
6204 -- First_Bit (Node3)
6205 -- Last_Bit (Node4)
6206
6207 ----------------------
6208 -- 13.5.1 Position --
6209 ----------------------
6210
6211 -- POSITION ::= static_EXPRESSION
6212
6213 -----------------------
6214 -- 13.5.1 First_Bit --
6215 -----------------------
6216
6217 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
6218
6219 ----------------------
6220 -- 13.5.1 Last_Bit --
6221 ----------------------
6222
6223 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
6224
6225 --------------------------
6226 -- 13.8 Code statement --
6227 --------------------------
6228
6229 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6230
6231 -- Note: in GNAT, the qualified expression has the form
6232
6233 -- Asm_Insn'(Asm (...));
6234
6235 -- See package System.Machine_Code in file s-maccod.ads for details on
6236 -- the allowed parameters to Asm. There are two ways this node can
6237 -- arise, as a code statement, in which case the expression is the
6238 -- qualified expression, or as a result of the expansion of an intrinsic
6239 -- call to the Asm or Asm_Input procedure.
6240
6241 -- N_Code_Statement
6242 -- Sloc points to first token of the expression
6243 -- Expression (Node3)
6244
6245 -- Note: package Exp_Code contains an abstract functional interface
6246 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
6247
6248 ------------------------
6249 -- 13.12 Restriction --
6250 ------------------------
6251
6252 -- RESTRICTION ::=
6253 -- restriction_IDENTIFIER
6254 -- | restriction_parameter_IDENTIFIER => EXPRESSION
6255
6256 -- There is no explicit node for restrictions. Instead the restriction
6257 -- appears in normal pragma syntax as a pragma argument association,
6258 -- which has the same syntactic form.
6259
6260 --------------------------
6261 -- B.2 Shift Operators --
6262 --------------------------
6263
6264 -- Calls to the intrinsic shift functions are converted to one of
6265 -- the following shift nodes, which have the form of normal binary
6266 -- operator names. Note that for a given shift operation, one node
6267 -- covers all possible types, as for normal operators.
6268
6269 -- Note: it is perfectly permissible for the expander to generate
6270 -- shift operation nodes directly, in which case they will be analyzed
6271 -- and parsed in the usual manner.
6272
6273 -- Sprint syntax: shift-function-name!(expr, count)
6274
6275 -- Note: the Left_Opnd field holds the first argument (the value to
6276 -- be shifted). The Right_Opnd field holds the second argument (the
6277 -- shift count). The Chars field is the name of the intrinsic function.
6278
6279 -- N_Op_Rotate_Left
6280 -- Sloc points to the function name
6281 -- plus fields for binary operator
6282 -- plus fields for expression
6283 -- Shift_Count_OK (Flag4-Sem)
6284
6285 -- N_Op_Rotate_Right
6286 -- Sloc points to the function name
6287 -- plus fields for binary operator
6288 -- plus fields for expression
6289 -- Shift_Count_OK (Flag4-Sem)
6290
6291 -- N_Op_Shift_Left
6292 -- Sloc points to the function name
6293 -- plus fields for binary operator
6294 -- plus fields for expression
6295 -- Shift_Count_OK (Flag4-Sem)
6296
6297 -- N_Op_Shift_Right_Arithmetic
6298 -- Sloc points to the function name
6299 -- plus fields for binary operator
6300 -- plus fields for expression
6301 -- Shift_Count_OK (Flag4-Sem)
6302
6303 -- N_Op_Shift_Right
6304 -- Sloc points to the function name
6305 -- plus fields for binary operator
6306 -- plus fields for expression
6307 -- Shift_Count_OK (Flag4-Sem)
6308
6309 --------------------------
6310 -- Obsolescent Features --
6311 --------------------------
6312
6313 -- The syntax descriptions and tree nodes for obsolescent features are
6314 -- grouped together, corresponding to their location in appendix I in
6315 -- the RM. However, parsing and semantic analysis for these constructs
6316 -- is located in an appropriate chapter (see individual notes).
6317
6318 ---------------------------
6319 -- J.3 Delta Constraint --
6320 ---------------------------
6321
6322 -- Note: the parse routine for this construct is located in section
6323 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6324 -- where delta constraint logically belongs.
6325
6326 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6327
6328 -- N_Delta_Constraint
6329 -- Sloc points to DELTA
6330 -- Delta_Expression (Node3)
6331 -- Range_Constraint (Node4) (set to Empty if not present)
6332
6333 --------------------
6334 -- J.7 At Clause --
6335 --------------------
6336
6337 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6338
6339 -- Note: the parse routine for this construct is located in Par-Ch13,
6340 -- and the semantic analysis is in Sem_Ch13, where at clause logically
6341 -- belongs if it were not obsolescent.
6342
6343 -- Note: in Ada 83 the expression must be a simple expression
6344
6345 -- Gigi restriction: This node never appears, it is rewritten as an
6346 -- address attribute definition clause.
6347
6348 -- N_At_Clause
6349 -- Sloc points to FOR
6350 -- Identifier (Node1)
6351 -- Expression (Node3)
6352
6353 ---------------------
6354 -- J.8 Mod clause --
6355 ---------------------
6356
6357 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
6358
6359 -- Note: the parse routine for this construct is located in Par-Ch13,
6360 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
6361 -- belongs if it were not obsolescent.
6362
6363 -- Note: in Ada 83, the expression must be a simple expression
6364
6365 -- Gigi restriction: this node never appears. It is replaced
6366 -- by a corresponding Alignment attribute definition clause.
6367
6368 -- Note: pragmas can appear before and after the MOD_CLAUSE since
6369 -- its name has "clause" in it. This is rather strange, but is quite
6370 -- definitely specified. The pragmas before are collected in the
6371 -- Pragmas_Before field of the mod clause node itself, and pragmas
6372 -- after are simply swallowed up in the list of component clauses.
6373
6374 -- N_Mod_Clause
6375 -- Sloc points to AT
6376 -- Expression (Node3)
6377 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6378
6379 --------------------
6380 -- Semantic Nodes --
6381 --------------------
6382
6383 -- These semantic nodes are used to hold additional semantic information.
6384 -- They are inserted into the tree as a result of semantic processing.
6385 -- Although there are no legitimate source syntax constructions that
6386 -- correspond directly to these nodes, we need a source syntax for the
6387 -- reconstructed tree printed by Sprint, and the node descriptions here
6388 -- show this syntax.
6389
6390 ----------------------------
6391 -- Conditional Expression --
6392 ----------------------------
6393
6394 -- This node is used to represent an expression corresponding to the
6395 -- C construct (condition ? then-expression : else_expression), where
6396 -- Expressions is a three element list, whose first expression is the
6397 -- condition, and whose second and third expressions are the then and
6398 -- else expressions respectively.
6399
6400 -- Note: the Then_Actions and Else_Actions fields are always set to
6401 -- No_List in the tree passed to Gigi. These fields are used only
6402 -- for temporary processing purposes in the expander.
6403
6404 -- Sprint syntax: (if expr then expr else expr)
6405
6406 -- N_Conditional_Expression
6407 -- Sloc points to related node
6408 -- Expressions (List1)
6409 -- Then_Actions (List2-Sem)
6410 -- Else_Actions (List3-Sem)
6411 -- plus fields for expression
6412
6413 -- Note: in the case where a debug source file is generated, the Sloc
6414 -- for this node points to the IF keyword in the Sprint file output.
6415
6416 -------------------
6417 -- Expanded_Name --
6418 -------------------
6419
6420 -- The N_Expanded_Name node is used to represent a selected component
6421 -- name that has been resolved to an expanded name. The semantic phase
6422 -- replaces N_Selected_Component nodes that represent names by the use
6423 -- of this node, leaving the N_Selected_Component node used only when
6424 -- the prefix is a record or protected type.
6425
6426 -- The fields of the N_Expanded_Name node are layed out identically
6427 -- to those of the N_Selected_Component node, allowing conversion of
6428 -- an expanded name node to a selected component node to be done
6429 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6430
6431 -- There is no special sprint syntax for an expanded name
6432
6433 -- N_Expanded_Name
6434 -- Sloc points to the period
6435 -- Chars (Name1) copy of Chars field of selector name
6436 -- Prefix (Node3)
6437 -- Selector_Name (Node2)
6438 -- Entity (Node4-Sem)
6439 -- Associated_Node (Node4-Sem)
6440 -- Redundant_Use (Flag13-Sem)
6441 -- Has_Private_View (Flag11-Sem) set in generic units.
6442 -- plus fields for expression
6443
6444 --------------------
6445 -- Free Statement --
6446 --------------------
6447
6448 -- The N_Free_Statement node is generated as a result of a call to an
6449 -- instantiation of Unchecked_Deallocation. The instantiation of this
6450 -- generic is handled specially and generates this node directly.
6451
6452 -- Sprint syntax: free expression
6453
6454 -- N_Free_Statement
6455 -- Sloc is copied from the unchecked deallocation call
6456 -- Expression (Node3) argument to unchecked deallocation call
6457 -- Storage_Pool (Node1-Sem)
6458 -- Procedure_To_Call (Node2-Sem)
6459 -- Actual_Designated_Subtype (Node4-Sem)
6460
6461 -- Note: in the case where a debug source file is generated, the Sloc
6462 -- for this node points to the FREE keyword in the Sprint file output.
6463
6464 -------------------
6465 -- Freeze Entity --
6466 -------------------
6467
6468 -- This node marks the point in a declarative part at which an entity
6469 -- declared therein becomes frozen. The expander places initialization
6470 -- procedures for types at those points. Gigi uses the freezing point
6471 -- to elaborate entities that may depend on previous private types.
6472
6473 -- See the section in Einfo "Delayed Freezing and Elaboration" for
6474 -- a full description of the use of this node.
6475
6476 -- The Entity field points back to the entity for the type (whose
6477 -- Freeze_Node field points back to this freeze node).
6478
6479 -- The Actions field contains a list of declarations and statements
6480 -- generated by the expander which are associated with the freeze
6481 -- node, and are elaborated as though the freeze node were replaced
6482 -- by this sequence of actions.
6483
6484 -- Note: the Sloc field in the freeze node references a construct
6485 -- associated with the freezing point. This is used for posting
6486 -- messages in some error/warning situations, e.g. the case where
6487 -- a primitive operation of a tagged type is declared too late.
6488
6489 -- Sprint syntax: freeze entity-name [
6490 -- freeze actions
6491 -- ]
6492
6493 -- N_Freeze_Entity
6494 -- Sloc points near freeze point (see above special note)
6495 -- Entity (Node4-Sem)
6496 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6497 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6498 -- Actions (List1) (set to No_List if no freeze actions)
6499 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6500
6501 -- The Actions field holds actions associated with the freeze. These
6502 -- actions are elaborated at the point where the type is frozen.
6503
6504 -- Note: in the case where a debug source file is generated, the Sloc
6505 -- for this node points to the FREEZE keyword in the Sprint file output.
6506
6507 --------------------------------
6508 -- Implicit Label Declaration --
6509 --------------------------------
6510
6511 -- An implicit label declaration is created for every occurrence of a
6512 -- label on a statement or a label on a block or loop. It is chained
6513 -- in the declarations of the innermost enclosing block as specified
6514 -- in RM section 5.1 (3).
6515
6516 -- The Defining_Identifier is the actual identifier for the
6517 -- statement identifier. Note that the occurrence of the label
6518 -- is a reference, NOT the defining occurrence. The defining
6519 -- occurrence occurs at the head of the innermost enclosing
6520 -- block, and is represented by this node.
6521
6522 -- Note: from the grammar, this might better be called an implicit
6523 -- statement identifier declaration, but the term we choose seems
6524 -- friendlier, since at least informally statement identifiers are
6525 -- called labels in both cases (i.e. when used in labels, and when
6526 -- used as the identifiers of blocks and loops).
6527
6528 -- Note: although this is logically a semantic node, since it does
6529 -- not correspond directly to a source syntax construction, these
6530 -- nodes are actually created by the parser in a post pass done just
6531 -- after parsing is complete, before semantic analysis is started (see
6532 -- the Par.Labl subunit in file par-labl.adb).
6533
6534 -- Sprint syntax: labelname : label;
6535
6536 -- N_Implicit_Label_Declaration
6537 -- Sloc points to the << of the label
6538 -- Defining_Identifier (Node1)
6539 -- Label_Construct (Node2-Sem)
6540
6541 -- Note: in the case where a debug source file is generated, the Sloc
6542 -- for this node points to the label name in the generated declaration.
6543
6544 ---------------------
6545 -- Itype_Reference --
6546 ---------------------
6547
6548 -- This node is used to create a reference to an Itype. The only
6549 -- purpose is to make sure that the Itype is defined if this is the
6550 -- first reference.
6551
6552 -- A typical use of this node is when an Itype is to be referenced in
6553 -- two branches of an if statement. In this case it is important that
6554 -- the first use of the Itype not be inside the conditional, since
6555 -- then it might not be defined if the wrong branch of the if is
6556 -- taken in the case where the definition generates elaboration code.
6557
6558 -- The Itype field points to the referenced Itype
6559
6560 -- sprint syntax: reference itype-name
6561
6562 -- N_Itype_Reference
6563 -- Sloc points to the node generating the reference
6564 -- Itype (Node1-Sem)
6565
6566 -- Note: in the case where a debug source file is generated, the Sloc
6567 -- for this node points to the REFERENCE keyword in the file output.
6568
6569 ---------------------
6570 -- Raise_xxx_Error --
6571 ---------------------
6572
6573 -- One of these nodes is created during semantic analysis to replace
6574 -- a node for an expression that is determined to definitely raise
6575 -- the corresponding exception.
6576
6577 -- The N_Raise_xxx_Error node may also stand alone in place
6578 -- of a declaration or statement, in which case it simply causes
6579 -- the exception to be raised (i.e. it is equivalent to a raise
6580 -- statement that raises the corresponding exception). This use
6581 -- is distinguished by the fact that the Etype in this case is
6582 -- Standard_Void_Type, In the subexprssion case, the Etype is the
6583 -- same as the type of the subexpression which it replaces.
6584
6585 -- If Condition is empty, then the raise is unconditional. If the
6586 -- Condition field is non-empty, it is a boolean expression which
6587 -- is first evaluated, and the exception is raised only if the
6588 -- value of the expression is True. In the unconditional case, the
6589 -- creation of this node is usually accompanied by a warning message
6590 -- error. The creation of this node will usually be accompanied by a
6591 -- message (unless it appears within the right operand of a short
6592 -- circuit form whose left argument is static and decisively
6593 -- eliminates elaboration of the raise operation. The condition field
6594 -- can ONLY be present when the node is used as a statement form, it
6595 -- may NOT be present in the case where the node appears within an
6596 -- expression.
6597
6598 -- The exception is generated with a message that contains the
6599 -- file name and line number, and then appended text. The Reason
6600 -- code shows the text to be added. The Reason code is an element
6601 -- of the type Types.RT_Exception_Code, and indicates both the
6602 -- message to be added, and the exception to be raised (which must
6603 -- match the node type). The value is stored by storing a Uint which
6604 -- is the Pos value of the enumeration element in this type.
6605
6606 -- Gigi restriction: This expander ensures that the type of the
6607 -- Condition field is always Standard.Boolean, even if the type
6608 -- in the source is some non-standard boolean type.
6609
6610 -- Sprint syntax: [xxx_error "msg"]
6611 -- or: [xxx_error when condition "msg"]
6612
6613 -- N_Raise_Constraint_Error
6614 -- Sloc references related construct
6615 -- Condition (Node1) (set to Empty if no condition)
6616 -- Reason (Uint3)
6617 -- plus fields for expression
6618
6619 -- N_Raise_Program_Error
6620 -- Sloc references related construct
6621 -- Condition (Node1) (set to Empty if no condition)
6622 -- Reason (Uint3)
6623 -- plus fields for expression
6624
6625 -- N_Raise_Storage_Error
6626 -- Sloc references related construct
6627 -- Condition (Node1) (set to Empty if no condition)
6628 -- Reason (Uint3)
6629 -- plus fields for expression
6630
6631 -- Note: Sloc is copied from the expression generating the exception.
6632 -- In the case where a debug source file is generated, the Sloc for
6633 -- this node points to the left bracket in the Sprint file output.
6634
6635 -- Note: the back end may be required to translate these nodes into
6636 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
6637
6638 ---------------------------------------------
6639 -- Optimization of Exception Raise to Goto --
6640 ---------------------------------------------
6641
6642 -- In some cases, the front end will determine that any exception raised
6643 -- by the back end for a certain exception should be transformed into a
6644 -- goto statement.
6645
6646 -- There are three kinds of exceptions raised by the back end (note that
6647 -- for this purpose we consider gigi to be part of the back end in the
6648 -- gcc case):
6649
6650 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
6651 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
6652 -- 3. Other cases not specifically marked by the front end
6653
6654 -- Normally all such exceptions are translated into calls to the proper
6655 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
6656 -- and the exception message.
6657
6658 -- The front end may determine that for a particular sequence of code,
6659 -- exceptions in any of these three categories for a particular builtin
6660 -- exception should result in a goto, rather than a call to Rcheck_xx.
6661 -- The exact sequence to be generated is:
6662
6663 -- Local_Raise (exception'Identity);
6664 -- goto Label
6665
6666 -- The front end marks such a sequence of code by bracketing it with
6667 -- push and pop nodes:
6668
6669 -- N_Push_xxx_Label (referencing the label)
6670 -- ...
6671 -- (code where transformation is expected for exception xxx)
6672 -- ...
6673 -- N_Pop_xxx_Label
6674
6675 -- The use of push/pop reflects the fact that such regions can properly
6676 -- nest, and one special case is a subregion in which no transformation
6677 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
6678 -- Exception_Label field is Empty.
6679
6680 -- N_Push_Constraint_Error_Label
6681 -- Sloc references first statement in region covered
6682 -- Exception_Label (Node5-Sem)
6683
6684 -- N_Push_Program_Error_Label
6685 -- Sloc references first statement in region covered
6686 -- Exception_Label (Node5-Sem)
6687
6688 -- N_Push_Storage_Error_Label
6689 -- Sloc references first statement in region covered
6690 -- Exception_Label (Node5-Sem)
6691
6692 -- N_Pop_Constraint_Error_Label
6693 -- Sloc references last statement in region covered
6694
6695 -- N_Pop_Program_Error_Label
6696 -- Sloc references last statement in region covered
6697
6698 -- N_Pop_Storage_Error_Label
6699 -- Sloc references last statement in region covered
6700
6701 ---------------
6702 -- Reference --
6703 ---------------
6704
6705 -- For a number of purposes, we need to construct references to objects.
6706 -- These references are subsequently treated as normal access values.
6707 -- An example is the construction of the parameter block passed to a
6708 -- task entry. The N_Reference node is provided for this purpose. It is
6709 -- similar in effect to the use of the Unrestricted_Access attribute,
6710 -- and like Unrestricted_Access can be applied to objects which would
6711 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
6712 -- objects which are not aliased, and slices). In addition it can be
6713 -- applied to composite type values as well as objects, including string
6714 -- values and aggregates.
6715
6716 -- Note: we use the Prefix field for this expression so that the
6717 -- resulting node can be treated using common code with the attribute
6718 -- nodes for the 'Access and related attributes. Logically it would make
6719 -- more sense to call it an Expression field, but then we would have to
6720 -- special case the treatment of the N_Reference node.
6721
6722 -- Sprint syntax: prefix'reference
6723
6724 -- N_Reference
6725 -- Sloc is copied from the expression
6726 -- Prefix (Node3)
6727 -- plus fields for expression
6728
6729 -- Note: in the case where a debug source file is generated, the Sloc
6730 -- for this node points to the quote in the Sprint file output.
6731
6732 ---------------------
6733 -- Subprogram_Info --
6734 ---------------------
6735
6736 -- This node generates the appropriate Subprogram_Info value for a
6737 -- given procedure. See Ada.Exceptions for further details
6738
6739 -- Sprint syntax: subprog'subprogram_info
6740
6741 -- N_Subprogram_Info
6742 -- Sloc points to the entity for the procedure
6743 -- Identifier (Node1) identifier referencing the procedure
6744 -- Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
6745
6746 -- Note: in the case where a debug source file is generated, the Sloc
6747 -- for this node points to the quote in the Sprint file output.
6748
6749 --------------------------
6750 -- Unchecked Expression --
6751 --------------------------
6752
6753 -- An unchecked expression is one that must be analyzed and resolved
6754 -- with all checks off, regardless of the current setting of scope
6755 -- suppress flags.
6756
6757 -- Sprint syntax: `(expression)
6758
6759 -- Note: this node is always removed from the tree (and replaced by
6760 -- its constituent expression) on completion of analysis, so it only
6761 -- appears in intermediate trees, and will never be seen by Gigi.
6762
6763 -- N_Unchecked_Expression
6764 -- Sloc is a copy of the Sloc of the expression
6765 -- Expression (Node3)
6766 -- plus fields for expression
6767
6768 -- Note: in the case where a debug source file is generated, the Sloc
6769 -- for this node points to the back quote in the Sprint file output.
6770
6771 -------------------------------
6772 -- Unchecked Type Conversion --
6773 -------------------------------
6774
6775 -- An unchecked type conversion node represents the semantic action
6776 -- corresponding to a call to an instantiation of Unchecked_Conversion.
6777 -- It is generated as a result of actual use of Unchecked_Conversion
6778 -- and also the expander generates unchecked type conversion nodes
6779 -- directly for expansion of complex semantic actions.
6780
6781 -- Note: an unchecked type conversion is a variable as far as the
6782 -- semantics are concerned, which is convenient for the expander.
6783 -- This does not change what Ada source programs are legal, since
6784 -- clearly a function call to an instantiation of Unchecked_Conversion
6785 -- is not a variable in any case.
6786
6787 -- Sprint syntax: subtype-mark!(expression)
6788
6789 -- N_Unchecked_Type_Conversion
6790 -- Sloc points to related node in source
6791 -- Subtype_Mark (Node4)
6792 -- Expression (Node3)
6793 -- Kill_Range_Check (Flag11-Sem)
6794 -- No_Truncation (Flag17-Sem)
6795 -- plus fields for expression
6796
6797 -- Note: in the case where a debug source file is generated, the Sloc
6798 -- for this node points to the exclamation in the Sprint file output.
6799
6800 -----------------------------------
6801 -- Validate_Unchecked_Conversion --
6802 -----------------------------------
6803
6804 -- The front end does most of the validation of unchecked conversion,
6805 -- including checking sizes (this is done after the back end is called
6806 -- to take advantage of back-annotation of calculated sizes).
6807
6808 -- The front end also deals with specific cases that are not allowed
6809 -- e.g. involving unconstrained array types.
6810
6811 -- For the case of the standard gigi backend, this means that all
6812 -- checks are done in the front-end.
6813
6814 -- However, in the case of specialized back-ends, notably the JVM
6815 -- backend for JGNAT, additional requirements and restrictions apply
6816 -- to unchecked conversion, and these are most conveniently performed
6817 -- in the specialized back-end.
6818
6819 -- To accommodate this requirement, for such back ends, the following
6820 -- special node is generated recording an unchecked conversion that
6821 -- needs to be validated. The back end should post an appropriate
6822 -- error message if the unchecked conversion is invalid or warrants
6823 -- a special warning message.
6824
6825 -- Source_Type and Target_Type point to the entities for the two
6826 -- types involved in the unchecked conversion instantiation that
6827 -- is to be validated.
6828
6829 -- Sprint syntax: validate Unchecked_Conversion (source, target);
6830
6831 -- N_Validate_Unchecked_Conversion
6832 -- Sloc points to instantiation (location for warning message)
6833 -- Source_Type (Node1-Sem)
6834 -- Target_Type (Node2-Sem)
6835
6836 -- Note: in the case where a debug source file is generated, the Sloc
6837 -- for this node points to the VALIDATE keyword in the file output.
6838
6839 -----------
6840 -- Empty --
6841 -----------
6842
6843 -- Used as the contents of the Nkind field of the dummy Empty node
6844 -- and in some other situations to indicate an uninitialized value.
6845
6846 -- N_Empty
6847 -- Chars (Name1) is set to No_Name
6848
6849 -----------
6850 -- Error --
6851 -----------
6852
6853 -- Used as the contents of the Nkind field of the dummy Error node.
6854 -- Has an Etype field, which gets set to Any_Type later on, to help
6855 -- error recovery (Error_Posted is also set in the Error node).
6856
6857 -- N_Error
6858 -- Chars (Name1) is set to Error_Name
6859 -- Etype (Node5-Sem)
6860
6861 --------------------------
6862 -- Node Type Definition --
6863 --------------------------
6864
6865 -- The following is the definition of the Node_Kind type. As previously
6866 -- discussed, this is separated off to allow rearrangement of the order
6867 -- to facilitiate definition of subtype ranges. The comments show the
6868 -- subtype classes which apply to each set of node kinds. The first
6869 -- entry in the comment characterizes the following list of nodes.
6870
6871 type Node_Kind is (
6872 N_Unused_At_Start,
6873
6874 -- N_Representation_Clause
6875
6876 N_At_Clause,
6877 N_Component_Clause,
6878 N_Enumeration_Representation_Clause,
6879 N_Mod_Clause,
6880 N_Record_Representation_Clause,
6881
6882 -- N_Representation_Clause, N_Has_Chars
6883
6884 N_Attribute_Definition_Clause,
6885
6886 -- N_Has_Chars
6887
6888 N_Empty,
6889 N_Pragma,
6890 N_Pragma_Argument_Association,
6891
6892 -- N_Has_Etype
6893
6894 N_Error,
6895
6896 -- N_Entity, N_Has_Etype, N_Has_Chars
6897
6898 N_Defining_Character_Literal,
6899 N_Defining_Identifier,
6900 N_Defining_Operator_Symbol,
6901
6902 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
6903
6904 N_Expanded_Name,
6905
6906 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6907 -- N_Has_Chars, N_Has_Entity
6908
6909 N_Identifier,
6910 N_Operator_Symbol,
6911
6912 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6913 -- N_Has_Chars, N_Has_Entity
6914
6915 N_Character_Literal,
6916
6917 -- N_Binary_Op, N_Op, N_Subexpr,
6918 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
6919
6920 N_Op_Add,
6921 N_Op_Concat,
6922 N_Op_Expon,
6923 N_Op_Subtract,
6924
6925 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
6926 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
6927
6928 N_Op_Divide,
6929 N_Op_Mod,
6930 N_Op_Multiply,
6931 N_Op_Rem,
6932
6933 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6934 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6935
6936 N_Op_And,
6937
6938 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6939 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
6940
6941 N_Op_Eq,
6942 N_Op_Ge,
6943 N_Op_Gt,
6944 N_Op_Le,
6945 N_Op_Lt,
6946 N_Op_Ne,
6947
6948 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6949 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6950
6951 N_Op_Or,
6952 N_Op_Xor,
6953
6954 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
6955 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
6956
6957 N_Op_Rotate_Left,
6958 N_Op_Rotate_Right,
6959 N_Op_Shift_Left,
6960 N_Op_Shift_Right,
6961 N_Op_Shift_Right_Arithmetic,
6962
6963 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
6964 -- N_Has_Chars, N_Has_Entity
6965
6966 N_Op_Abs,
6967 N_Op_Minus,
6968 N_Op_Not,
6969 N_Op_Plus,
6970
6971 -- N_Subexpr, N_Has_Etype, N_Has_Entity
6972
6973 N_Attribute_Reference,
6974
6975 -- N_Subexpr, N_Has_Etype, N_Membership_Test
6976
6977 N_In,
6978 N_Not_In,
6979
6980 -- N_Subexpr, N_Has_Etype
6981
6982 N_And_Then,
6983 N_Conditional_Expression,
6984 N_Explicit_Dereference,
6985 N_Function_Call,
6986
6987 N_Indexed_Component,
6988 N_Integer_Literal,
6989
6990 N_Null,
6991 N_Or_Else,
6992 N_Procedure_Call_Statement,
6993 N_Qualified_Expression,
6994
6995 -- N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
6996
6997 N_Raise_Constraint_Error,
6998 N_Raise_Program_Error,
6999 N_Raise_Storage_Error,
7000
7001 -- N_Subexpr, N_Has_Etype
7002
7003 N_Aggregate,
7004 N_Allocator,
7005 N_Extension_Aggregate,
7006 N_Range,
7007 N_Real_Literal,
7008 N_Reference,
7009 N_Selected_Component,
7010 N_Slice,
7011 N_String_Literal,
7012 N_Subprogram_Info,
7013 N_Type_Conversion,
7014 N_Unchecked_Expression,
7015 N_Unchecked_Type_Conversion,
7016
7017 -- N_Has_Etype
7018
7019 N_Subtype_Indication,
7020
7021 -- N_Declaration
7022
7023 N_Component_Declaration,
7024 N_Entry_Declaration,
7025 N_Formal_Object_Declaration,
7026 N_Formal_Type_Declaration,
7027 N_Full_Type_Declaration,
7028 N_Incomplete_Type_Declaration,
7029 N_Loop_Parameter_Specification,
7030 N_Object_Declaration,
7031 N_Protected_Type_Declaration,
7032 N_Private_Extension_Declaration,
7033 N_Private_Type_Declaration,
7034 N_Subtype_Declaration,
7035
7036 -- N_Subprogram_Specification, N_Declaration
7037
7038 N_Function_Specification,
7039 N_Procedure_Specification,
7040
7041 -- N_Access_To_Subprogram_Definition
7042
7043 N_Access_Function_Definition,
7044 N_Access_Procedure_Definition,
7045
7046 -- N_Later_Decl_Item
7047
7048 N_Task_Type_Declaration,
7049
7050 -- N_Body_Stub, N_Later_Decl_Item
7051
7052 N_Package_Body_Stub,
7053 N_Protected_Body_Stub,
7054 N_Subprogram_Body_Stub,
7055 N_Task_Body_Stub,
7056
7057 -- N_Generic_Instantiation, N_Later_Decl_Item
7058 -- N_Subprogram_Instantiation
7059
7060 N_Function_Instantiation,
7061 N_Procedure_Instantiation,
7062
7063 -- N_Generic_Instantiation, N_Later_Decl_Item
7064
7065 N_Package_Instantiation,
7066
7067 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7068
7069 N_Package_Body,
7070 N_Subprogram_Body,
7071
7072 -- N_Later_Decl_Item, N_Proper_Body
7073
7074 N_Protected_Body,
7075 N_Task_Body,
7076
7077 -- N_Later_Decl_Item
7078
7079 N_Implicit_Label_Declaration,
7080 N_Package_Declaration,
7081 N_Single_Task_Declaration,
7082 N_Subprogram_Declaration,
7083 N_Use_Package_Clause,
7084
7085 -- N_Generic_Declaration, N_Later_Decl_Item
7086
7087 N_Generic_Package_Declaration,
7088 N_Generic_Subprogram_Declaration,
7089
7090 -- N_Array_Type_Definition
7091
7092 N_Constrained_Array_Definition,
7093 N_Unconstrained_Array_Definition,
7094
7095 -- N_Renaming_Declaration
7096
7097 N_Exception_Renaming_Declaration,
7098 N_Object_Renaming_Declaration,
7099 N_Package_Renaming_Declaration,
7100 N_Subprogram_Renaming_Declaration,
7101
7102 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
7103
7104 N_Generic_Function_Renaming_Declaration,
7105 N_Generic_Package_Renaming_Declaration,
7106 N_Generic_Procedure_Renaming_Declaration,
7107
7108 -- N_Statement_Other_Than_Procedure_Call
7109
7110 N_Abort_Statement,
7111 N_Accept_Statement,
7112 N_Assignment_Statement,
7113 N_Asynchronous_Select,
7114 N_Block_Statement,
7115 N_Case_Statement,
7116 N_Code_Statement,
7117 N_Conditional_Entry_Call,
7118
7119 -- N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
7120
7121 N_Delay_Relative_Statement,
7122 N_Delay_Until_Statement,
7123
7124 -- N_Statement_Other_Than_Procedure_Call
7125
7126 N_Entry_Call_Statement,
7127 N_Free_Statement,
7128 N_Goto_Statement,
7129 N_Loop_Statement,
7130 N_Null_Statement,
7131 N_Raise_Statement,
7132 N_Requeue_Statement,
7133 N_Return_Statement, -- renamed as N_Simple_Return_Statement in Sem_Util
7134 N_Extended_Return_Statement,
7135 N_Selective_Accept,
7136 N_Timed_Entry_Call,
7137
7138 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7139
7140 N_Exit_Statement,
7141 N_If_Statement,
7142
7143 -- N_Has_Condition
7144
7145 N_Accept_Alternative,
7146 N_Delay_Alternative,
7147 N_Elsif_Part,
7148 N_Entry_Body_Formal_Part,
7149 N_Iteration_Scheme,
7150 N_Terminate_Alternative,
7151
7152 -- N_Formal_Subprogram_Declaration
7153
7154 N_Formal_Abstract_Subprogram_Declaration,
7155 N_Formal_Concrete_Subprogram_Declaration,
7156
7157 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
7158
7159 N_Push_Constraint_Error_Label,
7160 N_Push_Program_Error_Label,
7161 N_Push_Storage_Error_Label,
7162
7163 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7164
7165 N_Pop_Constraint_Error_Label,
7166 N_Pop_Program_Error_Label,
7167 N_Pop_Storage_Error_Label,
7168
7169 -- Other nodes (not part of any subtype class)
7170
7171 N_Abortable_Part,
7172 N_Abstract_Subprogram_Declaration,
7173 N_Access_Definition,
7174 N_Access_To_Object_Definition,
7175 N_Case_Statement_Alternative,
7176 N_Compilation_Unit,
7177 N_Compilation_Unit_Aux,
7178 N_Component_Association,
7179 N_Component_Definition,
7180 N_Component_List,
7181 N_Derived_Type_Definition,
7182 N_Decimal_Fixed_Point_Definition,
7183 N_Defining_Program_Unit_Name,
7184 N_Delta_Constraint,
7185 N_Designator,
7186 N_Digits_Constraint,
7187 N_Discriminant_Association,
7188 N_Discriminant_Specification,
7189 N_Enumeration_Type_Definition,
7190 N_Entry_Body,
7191 N_Entry_Call_Alternative,
7192 N_Entry_Index_Specification,
7193 N_Exception_Declaration,
7194 N_Exception_Handler,
7195 N_Floating_Point_Definition,
7196 N_Formal_Decimal_Fixed_Point_Definition,
7197 N_Formal_Derived_Type_Definition,
7198 N_Formal_Discrete_Type_Definition,
7199 N_Formal_Floating_Point_Definition,
7200 N_Formal_Modular_Type_Definition,
7201 N_Formal_Ordinary_Fixed_Point_Definition,
7202 N_Formal_Package_Declaration,
7203 N_Formal_Private_Type_Definition,
7204 N_Formal_Signed_Integer_Type_Definition,
7205 N_Freeze_Entity,
7206 N_Generic_Association,
7207 N_Handled_Sequence_Of_Statements,
7208 N_Index_Or_Discriminant_Constraint,
7209 N_Itype_Reference,
7210 N_Label,
7211 N_Modular_Type_Definition,
7212 N_Number_Declaration,
7213 N_Ordinary_Fixed_Point_Definition,
7214 N_Others_Choice,
7215 N_Package_Specification,
7216 N_Parameter_Association,
7217 N_Parameter_Specification,
7218 N_Protected_Definition,
7219 N_Range_Constraint,
7220 N_Real_Range_Specification,
7221 N_Record_Definition,
7222 N_Signed_Integer_Type_Definition,
7223 N_Single_Protected_Declaration,
7224 N_Subunit,
7225 N_Task_Definition,
7226 N_Triggering_Alternative,
7227 N_Use_Type_Clause,
7228 N_Validate_Unchecked_Conversion,
7229 N_Variant,
7230 N_Variant_Part,
7231 N_With_Clause,
7232 N_Unused_At_End);
7233
7234 for Node_Kind'Size use 8;
7235 -- The data structures in Atree assume this!
7236
7237 ----------------------------
7238 -- Node Class Definitions --
7239 ----------------------------
7240
7241 subtype N_Access_To_Subprogram_Definition is Node_Kind range
7242 N_Access_Function_Definition ..
7243 N_Access_Procedure_Definition;
7244
7245 subtype N_Array_Type_Definition is Node_Kind range
7246 N_Constrained_Array_Definition ..
7247 N_Unconstrained_Array_Definition;
7248
7249 subtype N_Binary_Op is Node_Kind range
7250 N_Op_Add ..
7251 N_Op_Shift_Right_Arithmetic;
7252
7253 subtype N_Body_Stub is Node_Kind range
7254 N_Package_Body_Stub ..
7255 N_Task_Body_Stub;
7256
7257 subtype N_Declaration is Node_Kind range
7258 N_Component_Declaration ..
7259 N_Procedure_Specification;
7260 -- Note: this includes all constructs normally thought of as declarations
7261 -- except those which are separately grouped as later declarations.
7262
7263 subtype N_Delay_Statement is Node_Kind range
7264 N_Delay_Relative_Statement ..
7265 N_Delay_Until_Statement;
7266
7267 subtype N_Direct_Name is Node_Kind range
7268 N_Identifier ..
7269 N_Character_Literal;
7270
7271 subtype N_Entity is Node_Kind range
7272 N_Defining_Character_Literal ..
7273 N_Defining_Operator_Symbol;
7274
7275 subtype N_Formal_Subprogram_Declaration is Node_Kind range
7276 N_Formal_Abstract_Subprogram_Declaration ..
7277 N_Formal_Concrete_Subprogram_Declaration;
7278
7279 subtype N_Generic_Declaration is Node_Kind range
7280 N_Generic_Package_Declaration ..
7281 N_Generic_Subprogram_Declaration;
7282
7283 subtype N_Generic_Instantiation is Node_Kind range
7284 N_Function_Instantiation ..
7285 N_Package_Instantiation;
7286
7287 subtype N_Generic_Renaming_Declaration is Node_Kind range
7288 N_Generic_Function_Renaming_Declaration ..
7289 N_Generic_Procedure_Renaming_Declaration;
7290
7291 subtype N_Has_Chars is Node_Kind range
7292 N_Attribute_Definition_Clause ..
7293 N_Op_Plus;
7294
7295 subtype N_Has_Entity is Node_Kind range
7296 N_Expanded_Name ..
7297 N_Attribute_Reference;
7298 -- Nodes that have Entity fields
7299 -- Warning: DOES NOT INCLUDE N_Freeze_Entity!
7300
7301 subtype N_Has_Etype is Node_Kind range
7302 N_Error ..
7303 N_Subtype_Indication;
7304
7305 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7306 N_Op_Divide ..
7307 N_Op_Rem;
7308
7309 subtype N_Multiplying_Operator is Node_Kind range
7310 N_Op_Divide ..
7311 N_Op_Rem;
7312
7313 subtype N_Later_Decl_Item is Node_Kind range
7314 N_Task_Type_Declaration ..
7315 N_Generic_Subprogram_Declaration;
7316 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and
7317 -- includes only those items which can appear as later declarative
7318 -- items. This also includes N_Implicit_Label_Declaration which is
7319 -- not specifically in the grammar but may appear as a valid later
7320 -- declarative items. It does NOT include N_Pragma which can also
7321 -- appear among later declarative items. It does however include
7322 -- N_Protected_Body, which is a bit peculiar, but harmless since
7323 -- this cannot appear in Ada 83 mode anyway.
7324
7325 subtype N_Membership_Test is Node_Kind range
7326 N_In ..
7327 N_Not_In;
7328
7329 subtype N_Op is Node_Kind range
7330 N_Op_Add ..
7331 N_Op_Plus;
7332
7333 subtype N_Op_Boolean is Node_Kind range
7334 N_Op_And ..
7335 N_Op_Xor;
7336 -- Binary operators which take operands of a boolean type, and yield
7337 -- a result of a boolean type.
7338
7339 subtype N_Op_Compare is Node_Kind range
7340 N_Op_Eq ..
7341 N_Op_Ne;
7342
7343 subtype N_Op_Shift is Node_Kind range
7344 N_Op_Rotate_Left ..
7345 N_Op_Shift_Right_Arithmetic;
7346
7347 subtype N_Proper_Body is Node_Kind range
7348 N_Package_Body ..
7349 N_Task_Body;
7350
7351 subtype N_Push_xxx_Label is Node_Kind range
7352 N_Push_Constraint_Error_Label ..
7353 N_Push_Storage_Error_Label;
7354
7355 subtype N_Pop_xxx_Label is Node_Kind range
7356 N_Pop_Constraint_Error_Label ..
7357 N_Pop_Storage_Error_Label;
7358
7359 subtype N_Push_Pop_xxx_Label is Node_Kind range
7360 N_Push_Constraint_Error_Label ..
7361 N_Pop_Storage_Error_Label;
7362
7363 subtype N_Raise_xxx_Error is Node_Kind range
7364 N_Raise_Constraint_Error ..
7365 N_Raise_Storage_Error;
7366
7367 subtype N_Renaming_Declaration is Node_Kind range
7368 N_Exception_Renaming_Declaration ..
7369 N_Generic_Procedure_Renaming_Declaration;
7370
7371 subtype N_Representation_Clause is Node_Kind range
7372 N_At_Clause ..
7373 N_Attribute_Definition_Clause;
7374
7375 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7376 N_Abort_Statement ..
7377 N_If_Statement;
7378 -- Note that this includes all statement types except for the cases of the
7379 -- N_Procedure_Call_Statement which is considered to be a subexpression
7380 -- (since overloading is possible, so it needs to go through the normal
7381 -- overloading resolution for expressions).
7382
7383 subtype N_Subprogram_Instantiation is Node_Kind range
7384 N_Function_Instantiation ..
7385 N_Procedure_Instantiation;
7386
7387 subtype N_Has_Condition is Node_Kind range
7388 N_Exit_Statement ..
7389 N_Terminate_Alternative;
7390 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
7391
7392 subtype N_Subexpr is Node_Kind range
7393 N_Expanded_Name ..
7394 N_Unchecked_Type_Conversion;
7395 -- Nodes with expression fields
7396
7397 subtype N_Subprogram_Specification is Node_Kind range
7398 N_Function_Specification ..
7399 N_Procedure_Specification;
7400
7401 subtype N_Unary_Op is Node_Kind range
7402 N_Op_Abs ..
7403 N_Op_Plus;
7404
7405 subtype N_Unit_Body is Node_Kind range
7406 N_Package_Body ..
7407 N_Subprogram_Body;
7408
7409 ---------------------------
7410 -- Node Access Functions --
7411 ---------------------------
7412
7413 -- The following functions return the contents of the indicated field of
7414 -- the node referenced by the argument, which is a Node_Id. They provide
7415 -- logical access to fields in the node which could be accessed using the
7416 -- Atree.Unchecked_Access package, but the idea is always to use these
7417 -- higher level routines which preserve strong typing. In debug mode,
7418 -- these routines check that they are being applied to an appropriate
7419 -- node, as well as checking that the node is in range.
7420
7421 function ABE_Is_Certain
7422 (N : Node_Id) return Boolean; -- Flag18
7423
7424 function Abort_Present
7425 (N : Node_Id) return Boolean; -- Flag15
7426
7427 function Abortable_Part
7428 (N : Node_Id) return Node_Id; -- Node2
7429
7430 function Abstract_Present
7431 (N : Node_Id) return Boolean; -- Flag4
7432
7433 function Accept_Handler_Records
7434 (N : Node_Id) return List_Id; -- List5
7435
7436 function Accept_Statement
7437 (N : Node_Id) return Node_Id; -- Node2
7438
7439 function Access_Definition
7440 (N : Node_Id) return Node_Id; -- Node3
7441
7442 function Access_To_Subprogram_Definition
7443 (N : Node_Id) return Node_Id; -- Node3
7444
7445 function Access_Types_To_Process
7446 (N : Node_Id) return Elist_Id; -- Elist2
7447
7448 function Actions
7449 (N : Node_Id) return List_Id; -- List1
7450
7451 function Activation_Chain_Entity
7452 (N : Node_Id) return Node_Id; -- Node3
7453
7454 function Acts_As_Spec
7455 (N : Node_Id) return Boolean; -- Flag4
7456
7457 function Actual_Designated_Subtype
7458 (N : Node_Id) return Node_Id; -- Node4
7459
7460 function Address_Warning_Posted
7461 (N : Node_Id) return Boolean; -- Flag18
7462
7463 function Aggregate_Bounds
7464 (N : Node_Id) return Node_Id; -- Node3
7465
7466 function Aliased_Present
7467 (N : Node_Id) return Boolean; -- Flag4
7468
7469 function All_Others
7470 (N : Node_Id) return Boolean; -- Flag11
7471
7472 function All_Present
7473 (N : Node_Id) return Boolean; -- Flag15
7474
7475 function Alternatives
7476 (N : Node_Id) return List_Id; -- List4
7477
7478 function Ancestor_Part
7479 (N : Node_Id) return Node_Id; -- Node3
7480
7481 function Array_Aggregate
7482 (N : Node_Id) return Node_Id; -- Node3
7483
7484 function Assignment_OK
7485 (N : Node_Id) return Boolean; -- Flag15
7486
7487 function Associated_Node
7488 (N : Node_Id) return Node_Id; -- Node4
7489
7490 function At_End_Proc
7491 (N : Node_Id) return Node_Id; -- Node1
7492
7493 function Attribute_Name
7494 (N : Node_Id) return Name_Id; -- Name2
7495
7496 function Aux_Decls_Node
7497 (N : Node_Id) return Node_Id; -- Node5
7498
7499 function Backwards_OK
7500 (N : Node_Id) return Boolean; -- Flag6
7501
7502 function Bad_Is_Detected
7503 (N : Node_Id) return Boolean; -- Flag15
7504
7505 function By_Ref
7506 (N : Node_Id) return Boolean; -- Flag5
7507
7508 function Body_Required
7509 (N : Node_Id) return Boolean; -- Flag13
7510
7511 function Body_To_Inline
7512 (N : Node_Id) return Node_Id; -- Node3
7513
7514 function Box_Present
7515 (N : Node_Id) return Boolean; -- Flag15
7516
7517 function Char_Literal_Value
7518 (N : Node_Id) return Uint; -- Uint2
7519
7520 function Chars
7521 (N : Node_Id) return Name_Id; -- Name1
7522
7523 function Check_Address_Alignment
7524 (N : Node_Id) return Boolean; -- Flag11
7525
7526 function Choice_Parameter
7527 (N : Node_Id) return Node_Id; -- Node2
7528
7529 function Choices
7530 (N : Node_Id) return List_Id; -- List1
7531
7532 function Coextensions
7533 (N : Node_Id) return Elist_Id; -- Elist4
7534
7535 function Comes_From_Extended_Return_Statement
7536 (N : Node_Id) return Boolean; -- Flag18
7537
7538 function Compile_Time_Known_Aggregate
7539 (N : Node_Id) return Boolean; -- Flag18
7540
7541 function Component_Associations
7542 (N : Node_Id) return List_Id; -- List2
7543
7544 function Component_Clauses
7545 (N : Node_Id) return List_Id; -- List3
7546
7547 function Component_Definition
7548 (N : Node_Id) return Node_Id; -- Node4
7549
7550 function Component_Items
7551 (N : Node_Id) return List_Id; -- List3
7552
7553 function Component_List
7554 (N : Node_Id) return Node_Id; -- Node1
7555
7556 function Component_Name
7557 (N : Node_Id) return Node_Id; -- Node1
7558
7559 function Condition
7560 (N : Node_Id) return Node_Id; -- Node1
7561
7562 function Condition_Actions
7563 (N : Node_Id) return List_Id; -- List3
7564
7565 function Config_Pragmas
7566 (N : Node_Id) return List_Id; -- List4
7567
7568 function Constant_Present
7569 (N : Node_Id) return Boolean; -- Flag17
7570
7571 function Constraint
7572 (N : Node_Id) return Node_Id; -- Node3
7573
7574 function Constraints
7575 (N : Node_Id) return List_Id; -- List1
7576
7577 function Context_Installed
7578 (N : Node_Id) return Boolean; -- Flag13
7579
7580 function Context_Items
7581 (N : Node_Id) return List_Id; -- List1
7582
7583 function Controlling_Argument
7584 (N : Node_Id) return Node_Id; -- Node1
7585
7586 function Conversion_OK
7587 (N : Node_Id) return Boolean; -- Flag14
7588
7589 function Corresponding_Body
7590 (N : Node_Id) return Node_Id; -- Node5
7591
7592 function Corresponding_Formal_Spec
7593 (N : Node_Id) return Node_Id; -- Node3
7594
7595 function Corresponding_Generic_Association
7596 (N : Node_Id) return Node_Id; -- Node5
7597
7598 function Corresponding_Integer_Value
7599 (N : Node_Id) return Uint; -- Uint4
7600
7601 function Corresponding_Spec
7602 (N : Node_Id) return Node_Id; -- Node5
7603
7604 function Corresponding_Stub
7605 (N : Node_Id) return Node_Id; -- Node3
7606
7607 function Dcheck_Function
7608 (N : Node_Id) return Entity_Id; -- Node5
7609
7610 function Debug_Statement
7611 (N : Node_Id) return Node_Id; -- Node3
7612
7613 function Declarations
7614 (N : Node_Id) return List_Id; -- List2
7615
7616 function Default_Expression
7617 (N : Node_Id) return Node_Id; -- Node5
7618
7619 function Default_Name
7620 (N : Node_Id) return Node_Id; -- Node2
7621
7622 function Defining_Identifier
7623 (N : Node_Id) return Entity_Id; -- Node1
7624
7625 function Defining_Unit_Name
7626 (N : Node_Id) return Node_Id; -- Node1
7627
7628 function Delay_Alternative
7629 (N : Node_Id) return Node_Id; -- Node4
7630
7631 function Delay_Statement
7632 (N : Node_Id) return Node_Id; -- Node2
7633
7634 function Delta_Expression
7635 (N : Node_Id) return Node_Id; -- Node3
7636
7637 function Digits_Expression
7638 (N : Node_Id) return Node_Id; -- Node2
7639
7640 function Discr_Check_Funcs_Built
7641 (N : Node_Id) return Boolean; -- Flag11
7642
7643 function Discrete_Choices
7644 (N : Node_Id) return List_Id; -- List4
7645
7646 function Discrete_Range
7647 (N : Node_Id) return Node_Id; -- Node4
7648
7649 function Discrete_Subtype_Definition
7650 (N : Node_Id) return Node_Id; -- Node4
7651
7652 function Discrete_Subtype_Definitions
7653 (N : Node_Id) return List_Id; -- List2
7654
7655 function Discriminant_Specifications
7656 (N : Node_Id) return List_Id; -- List4
7657
7658 function Discriminant_Type
7659 (N : Node_Id) return Node_Id; -- Node5
7660
7661 function Do_Accessibility_Check
7662 (N : Node_Id) return Boolean; -- Flag13
7663
7664 function Do_Discriminant_Check
7665 (N : Node_Id) return Boolean; -- Flag13
7666
7667 function Do_Division_Check
7668 (N : Node_Id) return Boolean; -- Flag13
7669
7670 function Do_Length_Check
7671 (N : Node_Id) return Boolean; -- Flag4
7672
7673 function Do_Overflow_Check
7674 (N : Node_Id) return Boolean; -- Flag17
7675
7676 function Do_Range_Check
7677 (N : Node_Id) return Boolean; -- Flag9
7678
7679 function Do_Storage_Check
7680 (N : Node_Id) return Boolean; -- Flag17
7681
7682 function Do_Tag_Check
7683 (N : Node_Id) return Boolean; -- Flag13
7684
7685 function Elaborate_All_Desirable
7686 (N : Node_Id) return Boolean; -- Flag9
7687
7688 function Elaborate_All_Present
7689 (N : Node_Id) return Boolean; -- Flag14
7690
7691 function Elaborate_Desirable
7692 (N : Node_Id) return Boolean; -- Flag11
7693
7694 function Elaborate_Present
7695 (N : Node_Id) return Boolean; -- Flag4
7696
7697 function Elaboration_Boolean
7698 (N : Node_Id) return Node_Id; -- Node2
7699
7700 function Else_Actions
7701 (N : Node_Id) return List_Id; -- List3
7702
7703 function Else_Statements
7704 (N : Node_Id) return List_Id; -- List4
7705
7706 function Elsif_Parts
7707 (N : Node_Id) return List_Id; -- List3
7708
7709 function Enclosing_Variant
7710 (N : Node_Id) return Node_Id; -- Node2
7711
7712 function End_Label
7713 (N : Node_Id) return Node_Id; -- Node4
7714
7715 function End_Span
7716 (N : Node_Id) return Uint; -- Uint5
7717
7718 function Entity
7719 (N : Node_Id) return Node_Id; -- Node4
7720
7721 function Entity_Or_Associated_Node
7722 (N : Node_Id) return Node_Id; -- Node4
7723
7724 function Entry_Body_Formal_Part
7725 (N : Node_Id) return Node_Id; -- Node5
7726
7727 function Entry_Call_Alternative
7728 (N : Node_Id) return Node_Id; -- Node1
7729
7730 function Entry_Call_Statement
7731 (N : Node_Id) return Node_Id; -- Node1
7732
7733 function Entry_Direct_Name
7734 (N : Node_Id) return Node_Id; -- Node1
7735
7736 function Entry_Index
7737 (N : Node_Id) return Node_Id; -- Node5
7738
7739 function Entry_Index_Specification
7740 (N : Node_Id) return Node_Id; -- Node4
7741
7742 function Etype
7743 (N : Node_Id) return Node_Id; -- Node5
7744
7745 function Exception_Choices
7746 (N : Node_Id) return List_Id; -- List4
7747
7748 function Exception_Handlers
7749 (N : Node_Id) return List_Id; -- List5
7750
7751 function Exception_Junk
7752 (N : Node_Id) return Boolean; -- Flag8
7753
7754 function Exception_Label
7755 (N : Node_Id) return Node_Id; -- Node5
7756
7757 function Explicit_Actual_Parameter
7758 (N : Node_Id) return Node_Id; -- Node3
7759
7760 function Expansion_Delayed
7761 (N : Node_Id) return Boolean; -- Flag11
7762
7763 function Explicit_Generic_Actual_Parameter
7764 (N : Node_Id) return Node_Id; -- Node1
7765
7766 function Expression
7767 (N : Node_Id) return Node_Id; -- Node3
7768
7769 function Expressions
7770 (N : Node_Id) return List_Id; -- List1
7771
7772 function First_Bit
7773 (N : Node_Id) return Node_Id; -- Node3
7774
7775 function First_Inlined_Subprogram
7776 (N : Node_Id) return Entity_Id; -- Node3
7777
7778 function First_Name
7779 (N : Node_Id) return Boolean; -- Flag5
7780
7781 function First_Named_Actual
7782 (N : Node_Id) return Node_Id; -- Node4
7783
7784 function First_Real_Statement
7785 (N : Node_Id) return Node_Id; -- Node2
7786
7787 function First_Subtype_Link
7788 (N : Node_Id) return Entity_Id; -- Node5
7789
7790 function Float_Truncate
7791 (N : Node_Id) return Boolean; -- Flag11
7792
7793 function Formal_Type_Definition
7794 (N : Node_Id) return Node_Id; -- Node3
7795
7796 function Forwards_OK
7797 (N : Node_Id) return Boolean; -- Flag5
7798
7799 function From_At_Mod
7800 (N : Node_Id) return Boolean; -- Flag4
7801
7802 function From_Default
7803 (N : Node_Id) return Boolean; -- Flag6
7804
7805 function Generic_Associations
7806 (N : Node_Id) return List_Id; -- List3
7807
7808 function Generic_Formal_Declarations
7809 (N : Node_Id) return List_Id; -- List2
7810
7811 function Generic_Parent
7812 (N : Node_Id) return Node_Id; -- Node5
7813
7814 function Generic_Parent_Type
7815 (N : Node_Id) return Node_Id; -- Node4
7816
7817 function Handled_Statement_Sequence
7818 (N : Node_Id) return Node_Id; -- Node4
7819
7820 function Handler_List_Entry
7821 (N : Node_Id) return Node_Id; -- Node2
7822
7823 function Has_Created_Identifier
7824 (N : Node_Id) return Boolean; -- Flag15
7825
7826 function Has_Dynamic_Length_Check
7827 (N : Node_Id) return Boolean; -- Flag10
7828
7829 function Has_Dynamic_Range_Check
7830 (N : Node_Id) return Boolean; -- Flag12
7831
7832 function Has_Init_Expression
7833 (N : Node_Id) return Boolean; -- Flag14
7834
7835 function Has_Local_Raise
7836 (N : Node_Id) return Boolean; -- Flag8
7837
7838 function Has_No_Elaboration_Code
7839 (N : Node_Id) return Boolean; -- Flag17
7840
7841 function Has_Priority_Pragma
7842 (N : Node_Id) return Boolean; -- Flag6
7843
7844 function Has_Private_View
7845 (N : Node_Id) return Boolean; -- Flag11
7846
7847 function Has_Self_Reference
7848 (N : Node_Id) return Boolean; -- Flag13
7849
7850 function Has_Storage_Size_Pragma
7851 (N : Node_Id) return Boolean; -- Flag5
7852
7853 function Has_Task_Info_Pragma
7854 (N : Node_Id) return Boolean; -- Flag7
7855
7856 function Has_Task_Name_Pragma
7857 (N : Node_Id) return Boolean; -- Flag8
7858
7859 function Has_Wide_Character
7860 (N : Node_Id) return Boolean; -- Flag11
7861
7862 function Hidden_By_Use_Clause
7863 (N : Node_Id) return Elist_Id; -- Elist4
7864
7865 function High_Bound
7866 (N : Node_Id) return Node_Id; -- Node2
7867
7868 function Identifier
7869 (N : Node_Id) return Node_Id; -- Node1
7870
7871 function Interface_List
7872 (N : Node_Id) return List_Id; -- List2
7873
7874 function Interface_Present
7875 (N : Node_Id) return Boolean; -- Flag16
7876
7877 function Implicit_With
7878 (N : Node_Id) return Boolean; -- Flag16
7879
7880 function In_Present
7881 (N : Node_Id) return Boolean; -- Flag15
7882
7883 function Includes_Infinities
7884 (N : Node_Id) return Boolean; -- Flag11
7885
7886 function Instance_Spec
7887 (N : Node_Id) return Node_Id; -- Node5
7888
7889 function Intval
7890 (N : Node_Id) return Uint; -- Uint3
7891
7892 function Is_Asynchronous_Call_Block
7893 (N : Node_Id) return Boolean; -- Flag7
7894
7895 function Is_Component_Left_Opnd
7896 (N : Node_Id) return Boolean; -- Flag13
7897
7898 function Is_Component_Right_Opnd
7899 (N : Node_Id) return Boolean; -- Flag14
7900
7901 function Is_Controlling_Actual
7902 (N : Node_Id) return Boolean; -- Flag16
7903
7904 function Is_Dynamic_Coextension
7905 (N : Node_Id) return Boolean; -- Flag18
7906
7907 function Is_Entry_Barrier_Function
7908 (N : Node_Id) return Boolean; -- Flag8
7909
7910 function Is_Expanded_Build_In_Place_Call
7911 (N : Node_Id) return Boolean; -- Flag11
7912
7913 function Is_Folded_In_Parser
7914 (N : Node_Id) return Boolean; -- Flag4
7915
7916 function Is_In_Discriminant_Check
7917 (N : Node_Id) return Boolean; -- Flag11
7918
7919 function Is_Machine_Number
7920 (N : Node_Id) return Boolean; -- Flag11
7921
7922 function Is_Null_Loop
7923 (N : Node_Id) return Boolean; -- Flag16
7924
7925 function Is_Overloaded
7926 (N : Node_Id) return Boolean; -- Flag5
7927
7928 function Is_Power_Of_2_For_Shift
7929 (N : Node_Id) return Boolean; -- Flag13
7930
7931 function Is_Protected_Subprogram_Body
7932 (N : Node_Id) return Boolean; -- Flag7
7933
7934 function Is_Static_Coextension
7935 (N : Node_Id) return Boolean; -- Flag14
7936
7937 function Is_Static_Expression
7938 (N : Node_Id) return Boolean; -- Flag6
7939
7940 function Is_Subprogram_Descriptor
7941 (N : Node_Id) return Boolean; -- Flag16
7942
7943 function Is_Task_Allocation_Block
7944 (N : Node_Id) return Boolean; -- Flag6
7945
7946 function Is_Task_Master
7947 (N : Node_Id) return Boolean; -- Flag5
7948
7949 function Iteration_Scheme
7950 (N : Node_Id) return Node_Id; -- Node2
7951
7952 function Itype
7953 (N : Node_Id) return Entity_Id; -- Node1
7954
7955 function Kill_Range_Check
7956 (N : Node_Id) return Boolean; -- Flag11
7957
7958 function Label_Construct
7959 (N : Node_Id) return Node_Id; -- Node2
7960
7961 function Left_Opnd
7962 (N : Node_Id) return Node_Id; -- Node2
7963
7964 function Last_Bit
7965 (N : Node_Id) return Node_Id; -- Node4
7966
7967 function Last_Name
7968 (N : Node_Id) return Boolean; -- Flag6
7969
7970 function Library_Unit
7971 (N : Node_Id) return Node_Id; -- Node4
7972
7973 function Limited_View_Installed
7974 (N : Node_Id) return Boolean; -- Flag18
7975
7976 function Limited_Present
7977 (N : Node_Id) return Boolean; -- Flag17
7978
7979 function Literals
7980 (N : Node_Id) return List_Id; -- List1
7981
7982 function Local_Raise_Not_OK
7983 (N : Node_Id) return Boolean; -- Flag7
7984
7985 function Local_Raise_Statements
7986 (N : Node_Id) return Elist_Id; -- Elist1
7987
7988 function Loop_Actions
7989 (N : Node_Id) return List_Id; -- List2
7990
7991 function Loop_Parameter_Specification
7992 (N : Node_Id) return Node_Id; -- Node4
7993
7994 function Low_Bound
7995 (N : Node_Id) return Node_Id; -- Node1
7996
7997 function Mod_Clause
7998 (N : Node_Id) return Node_Id; -- Node2
7999
8000 function More_Ids
8001 (N : Node_Id) return Boolean; -- Flag5
8002
8003 function Must_Be_Byte_Aligned
8004 (N : Node_Id) return Boolean; -- Flag14
8005
8006 function Must_Not_Freeze
8007 (N : Node_Id) return Boolean; -- Flag8
8008
8009 function Must_Not_Override
8010 (N : Node_Id) return Boolean; -- Flag15
8011
8012 function Must_Override
8013 (N : Node_Id) return Boolean; -- Flag14
8014
8015 function Name
8016 (N : Node_Id) return Node_Id; -- Node2
8017
8018 function Names
8019 (N : Node_Id) return List_Id; -- List2
8020
8021 function Next_Entity
8022 (N : Node_Id) return Node_Id; -- Node2
8023
8024 function Next_Named_Actual
8025 (N : Node_Id) return Node_Id; -- Node4
8026
8027 function Next_Rep_Item
8028 (N : Node_Id) return Node_Id; -- Node5
8029
8030 function Next_Use_Clause
8031 (N : Node_Id) return Node_Id; -- Node3
8032
8033 function No_Ctrl_Actions
8034 (N : Node_Id) return Boolean; -- Flag7
8035
8036 function No_Elaboration_Check
8037 (N : Node_Id) return Boolean; -- Flag14
8038
8039 function No_Entities_Ref_In_Spec
8040 (N : Node_Id) return Boolean; -- Flag8
8041
8042 function No_Initialization
8043 (N : Node_Id) return Boolean; -- Flag13
8044
8045 function No_Truncation
8046 (N : Node_Id) return Boolean; -- Flag17
8047
8048 function Null_Present
8049 (N : Node_Id) return Boolean; -- Flag13
8050
8051 function Null_Exclusion_Present
8052 (N : Node_Id) return Boolean; -- Flag11
8053
8054 function Null_Record_Present
8055 (N : Node_Id) return Boolean; -- Flag17
8056
8057 function Object_Definition
8058 (N : Node_Id) return Node_Id; -- Node4
8059
8060 function Original_Discriminant
8061 (N : Node_Id) return Node_Id; -- Node2
8062
8063 function Original_Entity
8064 (N : Node_Id) return Entity_Id; -- Node2
8065
8066 function Others_Discrete_Choices
8067 (N : Node_Id) return List_Id; -- List1
8068
8069 function Out_Present
8070 (N : Node_Id) return Boolean; -- Flag17
8071
8072 function Parameter_Associations
8073 (N : Node_Id) return List_Id; -- List3
8074
8075 function Parameter_List_Truncated
8076 (N : Node_Id) return Boolean; -- Flag17
8077
8078 function Parameter_Specifications
8079 (N : Node_Id) return List_Id; -- List3
8080
8081 function Parameter_Type
8082 (N : Node_Id) return Node_Id; -- Node2
8083
8084 function Parent_Spec
8085 (N : Node_Id) return Node_Id; -- Node4
8086
8087 function Position
8088 (N : Node_Id) return Node_Id; -- Node2
8089
8090 function Pragma_Argument_Associations
8091 (N : Node_Id) return List_Id; -- List2
8092
8093 function Pragma_Identifier
8094 (N : Node_Id) return Node_Id; -- Node4
8095
8096 function Pragmas_After
8097 (N : Node_Id) return List_Id; -- List5
8098
8099 function Pragmas_Before
8100 (N : Node_Id) return List_Id; -- List4
8101
8102 function Prefix
8103 (N : Node_Id) return Node_Id; -- Node3
8104
8105 function Present_Expr
8106 (N : Node_Id) return Uint; -- Uint3
8107
8108 function Prev_Ids
8109 (N : Node_Id) return Boolean; -- Flag6
8110
8111 function Print_In_Hex
8112 (N : Node_Id) return Boolean; -- Flag13
8113
8114 function Private_Declarations
8115 (N : Node_Id) return List_Id; -- List3
8116
8117 function Private_Present
8118 (N : Node_Id) return Boolean; -- Flag15
8119
8120 function Procedure_To_Call
8121 (N : Node_Id) return Node_Id; -- Node2
8122
8123 function Proper_Body
8124 (N : Node_Id) return Node_Id; -- Node1
8125
8126 function Protected_Definition
8127 (N : Node_Id) return Node_Id; -- Node3
8128
8129 function Protected_Present
8130 (N : Node_Id) return Boolean; -- Flag6
8131
8132 function Raises_Constraint_Error
8133 (N : Node_Id) return Boolean; -- Flag7
8134
8135 function Range_Constraint
8136 (N : Node_Id) return Node_Id; -- Node4
8137
8138 function Range_Expression
8139 (N : Node_Id) return Node_Id; -- Node4
8140
8141 function Real_Range_Specification
8142 (N : Node_Id) return Node_Id; -- Node4
8143
8144 function Realval
8145 (N : Node_Id) return Ureal; -- Ureal3
8146
8147 function Reason
8148 (N : Node_Id) return Uint; -- Uint3
8149
8150 function Record_Extension_Part
8151 (N : Node_Id) return Node_Id; -- Node3
8152
8153 function Redundant_Use
8154 (N : Node_Id) return Boolean; -- Flag13
8155
8156 function Renaming_Exception
8157 (N : Node_Id) return Node_Id; -- Node2
8158
8159 function Result_Definition
8160 (N : Node_Id) return Node_Id; -- Node4
8161
8162 function Return_Object_Declarations
8163 (N : Node_Id) return List_Id; -- List3
8164
8165 function Return_Statement_Entity
8166 (N : Node_Id) return Node_Id; -- Node5
8167
8168 function Reverse_Present
8169 (N : Node_Id) return Boolean; -- Flag15
8170
8171 function Right_Opnd
8172 (N : Node_Id) return Node_Id; -- Node3
8173
8174 function Rounded_Result
8175 (N : Node_Id) return Boolean; -- Flag18
8176
8177 function Scope
8178 (N : Node_Id) return Node_Id; -- Node3
8179
8180 function Select_Alternatives
8181 (N : Node_Id) return List_Id; -- List1
8182
8183 function Selector_Name
8184 (N : Node_Id) return Node_Id; -- Node2
8185
8186 function Selector_Names
8187 (N : Node_Id) return List_Id; -- List1
8188
8189 function Shift_Count_OK
8190 (N : Node_Id) return Boolean; -- Flag4
8191
8192 function Source_Type
8193 (N : Node_Id) return Entity_Id; -- Node1
8194
8195 function Specification
8196 (N : Node_Id) return Node_Id; -- Node1
8197
8198 function Statements
8199 (N : Node_Id) return List_Id; -- List3
8200
8201 function Static_Processing_OK
8202 (N : Node_Id) return Boolean; -- Flag4
8203
8204 function Storage_Pool
8205 (N : Node_Id) return Node_Id; -- Node1
8206
8207 function Strval
8208 (N : Node_Id) return String_Id; -- Str3
8209
8210 function Subtype_Indication
8211 (N : Node_Id) return Node_Id; -- Node5
8212
8213 function Subtype_Mark
8214 (N : Node_Id) return Node_Id; -- Node4
8215
8216 function Subtype_Marks
8217 (N : Node_Id) return List_Id; -- List2
8218
8219 function Synchronized_Present
8220 (N : Node_Id) return Boolean; -- Flag7
8221
8222 function Tagged_Present
8223 (N : Node_Id) return Boolean; -- Flag15
8224
8225 function Target_Type
8226 (N : Node_Id) return Entity_Id; -- Node2
8227
8228 function Task_Definition
8229 (N : Node_Id) return Node_Id; -- Node3
8230
8231 function Task_Present
8232 (N : Node_Id) return Boolean; -- Flag5
8233
8234 function Then_Actions
8235 (N : Node_Id) return List_Id; -- List2
8236
8237 function Then_Statements
8238 (N : Node_Id) return List_Id; -- List2
8239
8240 function Treat_Fixed_As_Integer
8241 (N : Node_Id) return Boolean; -- Flag14
8242
8243 function Triggering_Alternative
8244 (N : Node_Id) return Node_Id; -- Node1
8245
8246 function Triggering_Statement
8247 (N : Node_Id) return Node_Id; -- Node1
8248
8249 function TSS_Elist
8250 (N : Node_Id) return Elist_Id; -- Elist3
8251
8252 function Type_Definition
8253 (N : Node_Id) return Node_Id; -- Node3
8254
8255 function Unit
8256 (N : Node_Id) return Node_Id; -- Node2
8257
8258 function Unknown_Discriminants_Present
8259 (N : Node_Id) return Boolean; -- Flag13
8260
8261 function Unreferenced_In_Spec
8262 (N : Node_Id) return Boolean; -- Flag7
8263
8264 function Variant_Part
8265 (N : Node_Id) return Node_Id; -- Node4
8266
8267 function Variants
8268 (N : Node_Id) return List_Id; -- List1
8269
8270 function Visible_Declarations
8271 (N : Node_Id) return List_Id; -- List2
8272
8273 function Was_Originally_Stub
8274 (N : Node_Id) return Boolean; -- Flag13
8275
8276 function Zero_Cost_Handling
8277 (N : Node_Id) return Boolean; -- Flag5
8278
8279 -- End functions (note used by xsinfo utility program to end processing)
8280
8281 ----------------------------
8282 -- Node Update Procedures --
8283 ----------------------------
8284
8285 -- These are the corresponding node update routines, which again provide
8286 -- a high level logical access with type checking. In addition to setting
8287 -- the indicated field of the node N to the given Val, in the case of
8288 -- tree pointers (List1-4), the parent pointer of the Val node is set to
8289 -- point back to node N. This automates the setting of the parent pointer.
8290
8291 procedure Set_ABE_Is_Certain
8292 (N : Node_Id; Val : Boolean := True); -- Flag18
8293
8294 procedure Set_Abort_Present
8295 (N : Node_Id; Val : Boolean := True); -- Flag15
8296
8297 procedure Set_Abortable_Part
8298 (N : Node_Id; Val : Node_Id); -- Node2
8299
8300 procedure Set_Abstract_Present
8301 (N : Node_Id; Val : Boolean := True); -- Flag4
8302
8303 procedure Set_Accept_Handler_Records
8304 (N : Node_Id; Val : List_Id); -- List5
8305
8306 procedure Set_Accept_Statement
8307 (N : Node_Id; Val : Node_Id); -- Node2
8308
8309 procedure Set_Access_Definition
8310 (N : Node_Id; Val : Node_Id); -- Node3
8311
8312 procedure Set_Access_To_Subprogram_Definition
8313 (N : Node_Id; Val : Node_Id); -- Node3
8314
8315 procedure Set_Access_Types_To_Process
8316 (N : Node_Id; Val : Elist_Id); -- Elist2
8317
8318 procedure Set_Actions
8319 (N : Node_Id; Val : List_Id); -- List1
8320
8321 procedure Set_Activation_Chain_Entity
8322 (N : Node_Id; Val : Node_Id); -- Node3
8323
8324 procedure Set_Acts_As_Spec
8325 (N : Node_Id; Val : Boolean := True); -- Flag4
8326
8327 procedure Set_Actual_Designated_Subtype
8328 (N : Node_Id; Val : Node_Id); -- Node4
8329
8330 procedure Set_Address_Warning_Posted
8331 (N : Node_Id; Val : Boolean := True); -- Flag18
8332
8333 procedure Set_Aggregate_Bounds
8334 (N : Node_Id; Val : Node_Id); -- Node3
8335
8336 procedure Set_Aliased_Present
8337 (N : Node_Id; Val : Boolean := True); -- Flag4
8338
8339 procedure Set_All_Others
8340 (N : Node_Id; Val : Boolean := True); -- Flag11
8341
8342 procedure Set_All_Present
8343 (N : Node_Id; Val : Boolean := True); -- Flag15
8344
8345 procedure Set_Alternatives
8346 (N : Node_Id; Val : List_Id); -- List4
8347
8348 procedure Set_Ancestor_Part
8349 (N : Node_Id; Val : Node_Id); -- Node3
8350
8351 procedure Set_Array_Aggregate
8352 (N : Node_Id; Val : Node_Id); -- Node3
8353
8354 procedure Set_Assignment_OK
8355 (N : Node_Id; Val : Boolean := True); -- Flag15
8356
8357 procedure Set_Associated_Node
8358 (N : Node_Id; Val : Node_Id); -- Node4
8359
8360 procedure Set_Attribute_Name
8361 (N : Node_Id; Val : Name_Id); -- Name2
8362
8363 procedure Set_At_End_Proc
8364 (N : Node_Id; Val : Node_Id); -- Node1
8365
8366 procedure Set_Aux_Decls_Node
8367 (N : Node_Id; Val : Node_Id); -- Node5
8368
8369 procedure Set_Backwards_OK
8370 (N : Node_Id; Val : Boolean := True); -- Flag6
8371
8372 procedure Set_Bad_Is_Detected
8373 (N : Node_Id; Val : Boolean := True); -- Flag15
8374
8375 procedure Set_Body_Required
8376 (N : Node_Id; Val : Boolean := True); -- Flag13
8377
8378 procedure Set_Body_To_Inline
8379 (N : Node_Id; Val : Node_Id); -- Node3
8380
8381 procedure Set_Box_Present
8382 (N : Node_Id; Val : Boolean := True); -- Flag15
8383
8384 procedure Set_By_Ref
8385 (N : Node_Id; Val : Boolean := True); -- Flag5
8386
8387 procedure Set_Char_Literal_Value
8388 (N : Node_Id; Val : Uint); -- Uint2
8389
8390 procedure Set_Chars
8391 (N : Node_Id; Val : Name_Id); -- Name1
8392
8393 procedure Set_Check_Address_Alignment
8394 (N : Node_Id; Val : Boolean := True); -- Flag11
8395
8396 procedure Set_Choice_Parameter
8397 (N : Node_Id; Val : Node_Id); -- Node2
8398
8399 procedure Set_Coextensions
8400 (N : Node_Id; Val : Elist_Id); -- Elist4
8401
8402 procedure Set_Choices
8403 (N : Node_Id; Val : List_Id); -- List1
8404
8405 procedure Set_Comes_From_Extended_Return_Statement
8406 (N : Node_Id; Val : Boolean := True); -- Flag18
8407
8408 procedure Set_Compile_Time_Known_Aggregate
8409 (N : Node_Id; Val : Boolean := True); -- Flag18
8410
8411 procedure Set_Component_Associations
8412 (N : Node_Id; Val : List_Id); -- List2
8413
8414 procedure Set_Component_Clauses
8415 (N : Node_Id; Val : List_Id); -- List3
8416
8417 procedure Set_Component_Definition
8418 (N : Node_Id; Val : Node_Id); -- Node4
8419
8420 procedure Set_Component_Items
8421 (N : Node_Id; Val : List_Id); -- List3
8422
8423 procedure Set_Component_List
8424 (N : Node_Id; Val : Node_Id); -- Node1
8425
8426 procedure Set_Component_Name
8427 (N : Node_Id; Val : Node_Id); -- Node1
8428
8429 procedure Set_Condition
8430 (N : Node_Id; Val : Node_Id); -- Node1
8431
8432 procedure Set_Condition_Actions
8433 (N : Node_Id; Val : List_Id); -- List3
8434
8435 procedure Set_Config_Pragmas
8436 (N : Node_Id; Val : List_Id); -- List4
8437
8438 procedure Set_Constant_Present
8439 (N : Node_Id; Val : Boolean := True); -- Flag17
8440
8441 procedure Set_Constraint
8442 (N : Node_Id; Val : Node_Id); -- Node3
8443
8444 procedure Set_Constraints
8445 (N : Node_Id; Val : List_Id); -- List1
8446
8447 procedure Set_Context_Installed
8448 (N : Node_Id; Val : Boolean := True); -- Flag13
8449
8450 procedure Set_Context_Items
8451 (N : Node_Id; Val : List_Id); -- List1
8452
8453 procedure Set_Controlling_Argument
8454 (N : Node_Id; Val : Node_Id); -- Node1
8455
8456 procedure Set_Conversion_OK
8457 (N : Node_Id; Val : Boolean := True); -- Flag14
8458
8459 procedure Set_Corresponding_Body
8460 (N : Node_Id; Val : Node_Id); -- Node5
8461
8462 procedure Set_Corresponding_Formal_Spec
8463 (N : Node_Id; Val : Node_Id); -- Node3
8464
8465 procedure Set_Corresponding_Generic_Association
8466 (N : Node_Id; Val : Node_Id); -- Node5
8467
8468 procedure Set_Corresponding_Integer_Value
8469 (N : Node_Id; Val : Uint); -- Uint4
8470
8471 procedure Set_Corresponding_Spec
8472 (N : Node_Id; Val : Node_Id); -- Node5
8473
8474 procedure Set_Corresponding_Stub
8475 (N : Node_Id; Val : Node_Id); -- Node3
8476
8477 procedure Set_Dcheck_Function
8478 (N : Node_Id; Val : Entity_Id); -- Node5
8479
8480 procedure Set_Debug_Statement
8481 (N : Node_Id; Val : Node_Id); -- Node3
8482
8483 procedure Set_Declarations
8484 (N : Node_Id; Val : List_Id); -- List2
8485
8486 procedure Set_Default_Expression
8487 (N : Node_Id; Val : Node_Id); -- Node5
8488
8489 procedure Set_Default_Name
8490 (N : Node_Id; Val : Node_Id); -- Node2
8491
8492 procedure Set_Defining_Identifier
8493 (N : Node_Id; Val : Entity_Id); -- Node1
8494
8495 procedure Set_Defining_Unit_Name
8496 (N : Node_Id; Val : Node_Id); -- Node1
8497
8498 procedure Set_Delay_Alternative
8499 (N : Node_Id; Val : Node_Id); -- Node4
8500
8501 procedure Set_Delay_Statement
8502 (N : Node_Id; Val : Node_Id); -- Node2
8503
8504 procedure Set_Delta_Expression
8505 (N : Node_Id; Val : Node_Id); -- Node3
8506
8507 procedure Set_Digits_Expression
8508 (N : Node_Id; Val : Node_Id); -- Node2
8509
8510 procedure Set_Discr_Check_Funcs_Built
8511 (N : Node_Id; Val : Boolean := True); -- Flag11
8512
8513 procedure Set_Discrete_Choices
8514 (N : Node_Id; Val : List_Id); -- List4
8515
8516 procedure Set_Discrete_Range
8517 (N : Node_Id; Val : Node_Id); -- Node4
8518
8519 procedure Set_Discrete_Subtype_Definition
8520 (N : Node_Id; Val : Node_Id); -- Node4
8521
8522 procedure Set_Discrete_Subtype_Definitions
8523 (N : Node_Id; Val : List_Id); -- List2
8524
8525 procedure Set_Discriminant_Specifications
8526 (N : Node_Id; Val : List_Id); -- List4
8527
8528 procedure Set_Discriminant_Type
8529 (N : Node_Id; Val : Node_Id); -- Node5
8530
8531 procedure Set_Do_Accessibility_Check
8532 (N : Node_Id; Val : Boolean := True); -- Flag13
8533
8534 procedure Set_Do_Discriminant_Check
8535 (N : Node_Id; Val : Boolean := True); -- Flag13
8536
8537 procedure Set_Do_Division_Check
8538 (N : Node_Id; Val : Boolean := True); -- Flag13
8539
8540 procedure Set_Do_Length_Check
8541 (N : Node_Id; Val : Boolean := True); -- Flag4
8542
8543 procedure Set_Do_Overflow_Check
8544 (N : Node_Id; Val : Boolean := True); -- Flag17
8545
8546 procedure Set_Do_Range_Check
8547 (N : Node_Id; Val : Boolean := True); -- Flag9
8548
8549 procedure Set_Do_Storage_Check
8550 (N : Node_Id; Val : Boolean := True); -- Flag17
8551
8552 procedure Set_Do_Tag_Check
8553 (N : Node_Id; Val : Boolean := True); -- Flag13
8554
8555 procedure Set_Elaborate_All_Desirable
8556 (N : Node_Id; Val : Boolean := True); -- Flag9
8557
8558 procedure Set_Elaborate_All_Present
8559 (N : Node_Id; Val : Boolean := True); -- Flag14
8560
8561 procedure Set_Elaborate_Desirable
8562 (N : Node_Id; Val : Boolean := True); -- Flag11
8563
8564 procedure Set_Elaborate_Present
8565 (N : Node_Id; Val : Boolean := True); -- Flag4
8566
8567 procedure Set_Elaboration_Boolean
8568 (N : Node_Id; Val : Node_Id); -- Node2
8569
8570 procedure Set_Else_Actions
8571 (N : Node_Id; Val : List_Id); -- List3
8572
8573 procedure Set_Else_Statements
8574 (N : Node_Id; Val : List_Id); -- List4
8575
8576 procedure Set_Elsif_Parts
8577 (N : Node_Id; Val : List_Id); -- List3
8578
8579 procedure Set_Enclosing_Variant
8580 (N : Node_Id; Val : Node_Id); -- Node2
8581
8582 procedure Set_End_Label
8583 (N : Node_Id; Val : Node_Id); -- Node4
8584
8585 procedure Set_End_Span
8586 (N : Node_Id; Val : Uint); -- Uint5
8587
8588 procedure Set_Entity
8589 (N : Node_Id; Val : Node_Id); -- Node4
8590
8591 procedure Set_Entry_Body_Formal_Part
8592 (N : Node_Id; Val : Node_Id); -- Node5
8593
8594 procedure Set_Entry_Call_Alternative
8595 (N : Node_Id; Val : Node_Id); -- Node1
8596
8597 procedure Set_Entry_Call_Statement
8598 (N : Node_Id; Val : Node_Id); -- Node1
8599
8600 procedure Set_Entry_Direct_Name
8601 (N : Node_Id; Val : Node_Id); -- Node1
8602
8603 procedure Set_Entry_Index
8604 (N : Node_Id; Val : Node_Id); -- Node5
8605
8606 procedure Set_Entry_Index_Specification
8607 (N : Node_Id; Val : Node_Id); -- Node4
8608
8609 procedure Set_Etype
8610 (N : Node_Id; Val : Node_Id); -- Node5
8611
8612 procedure Set_Exception_Choices
8613 (N : Node_Id; Val : List_Id); -- List4
8614
8615 procedure Set_Exception_Handlers
8616 (N : Node_Id; Val : List_Id); -- List5
8617
8618 procedure Set_Exception_Junk
8619 (N : Node_Id; Val : Boolean := True); -- Flag8
8620
8621 procedure Set_Exception_Label
8622 (N : Node_Id; Val : Node_Id); -- Node5
8623
8624 procedure Set_Expansion_Delayed
8625 (N : Node_Id; Val : Boolean := True); -- Flag11
8626
8627 procedure Set_Explicit_Actual_Parameter
8628 (N : Node_Id; Val : Node_Id); -- Node3
8629
8630 procedure Set_Explicit_Generic_Actual_Parameter
8631 (N : Node_Id; Val : Node_Id); -- Node1
8632
8633 procedure Set_Expression
8634 (N : Node_Id; Val : Node_Id); -- Node3
8635
8636 procedure Set_Expressions
8637 (N : Node_Id; Val : List_Id); -- List1
8638
8639 procedure Set_First_Bit
8640 (N : Node_Id; Val : Node_Id); -- Node3
8641
8642 procedure Set_First_Inlined_Subprogram
8643 (N : Node_Id; Val : Entity_Id); -- Node3
8644
8645 procedure Set_First_Name
8646 (N : Node_Id; Val : Boolean := True); -- Flag5
8647
8648 procedure Set_First_Named_Actual
8649 (N : Node_Id; Val : Node_Id); -- Node4
8650
8651 procedure Set_First_Real_Statement
8652 (N : Node_Id; Val : Node_Id); -- Node2
8653
8654 procedure Set_First_Subtype_Link
8655 (N : Node_Id; Val : Entity_Id); -- Node5
8656
8657 procedure Set_Float_Truncate
8658 (N : Node_Id; Val : Boolean := True); -- Flag11
8659
8660 procedure Set_Formal_Type_Definition
8661 (N : Node_Id; Val : Node_Id); -- Node3
8662
8663 procedure Set_Forwards_OK
8664 (N : Node_Id; Val : Boolean := True); -- Flag5
8665
8666 procedure Set_From_At_Mod
8667 (N : Node_Id; Val : Boolean := True); -- Flag4
8668
8669 procedure Set_From_Default
8670 (N : Node_Id; Val : Boolean := True); -- Flag6
8671
8672 procedure Set_Generic_Associations
8673 (N : Node_Id; Val : List_Id); -- List3
8674
8675 procedure Set_Generic_Formal_Declarations
8676 (N : Node_Id; Val : List_Id); -- List2
8677
8678 procedure Set_Generic_Parent
8679 (N : Node_Id; Val : Node_Id); -- Node5
8680
8681 procedure Set_Generic_Parent_Type
8682 (N : Node_Id; Val : Node_Id); -- Node4
8683
8684 procedure Set_Handled_Statement_Sequence
8685 (N : Node_Id; Val : Node_Id); -- Node4
8686
8687 procedure Set_Handler_List_Entry
8688 (N : Node_Id; Val : Node_Id); -- Node2
8689
8690 procedure Set_Has_Created_Identifier
8691 (N : Node_Id; Val : Boolean := True); -- Flag15
8692
8693 procedure Set_Has_Dynamic_Length_Check
8694 (N : Node_Id; Val : Boolean := True); -- Flag10
8695
8696 procedure Set_Has_Dynamic_Range_Check
8697 (N : Node_Id; Val : Boolean := True); -- Flag12
8698
8699 procedure Set_Has_Init_Expression
8700 (N : Node_Id; Val : Boolean := True); -- Flag14
8701
8702 procedure Set_Has_Local_Raise
8703 (N : Node_Id; Val : Boolean := True); -- Flag8
8704
8705 procedure Set_Has_No_Elaboration_Code
8706 (N : Node_Id; Val : Boolean := True); -- Flag17
8707
8708 procedure Set_Has_Priority_Pragma
8709 (N : Node_Id; Val : Boolean := True); -- Flag6
8710
8711 procedure Set_Has_Private_View
8712 (N : Node_Id; Val : Boolean := True); -- Flag11
8713
8714 procedure Set_Has_Self_Reference
8715 (N : Node_Id; Val : Boolean := True); -- Flag13
8716
8717 procedure Set_Has_Storage_Size_Pragma
8718 (N : Node_Id; Val : Boolean := True); -- Flag5
8719
8720 procedure Set_Has_Task_Info_Pragma
8721 (N : Node_Id; Val : Boolean := True); -- Flag7
8722
8723 procedure Set_Has_Task_Name_Pragma
8724 (N : Node_Id; Val : Boolean := True); -- Flag8
8725
8726 procedure Set_Has_Wide_Character
8727 (N : Node_Id; Val : Boolean := True); -- Flag11
8728
8729 procedure Set_Hidden_By_Use_Clause
8730 (N : Node_Id; Val : Elist_Id); -- Elist4
8731
8732 procedure Set_High_Bound
8733 (N : Node_Id; Val : Node_Id); -- Node2
8734
8735 procedure Set_Identifier
8736 (N : Node_Id; Val : Node_Id); -- Node1
8737
8738 procedure Set_Interface_List
8739 (N : Node_Id; Val : List_Id); -- List2
8740
8741 procedure Set_Interface_Present
8742 (N : Node_Id; Val : Boolean := True); -- Flag16
8743
8744 procedure Set_Implicit_With
8745 (N : Node_Id; Val : Boolean := True); -- Flag16
8746
8747 procedure Set_In_Present
8748 (N : Node_Id; Val : Boolean := True); -- Flag15
8749
8750 procedure Set_Includes_Infinities
8751 (N : Node_Id; Val : Boolean := True); -- Flag11
8752
8753 procedure Set_Instance_Spec
8754 (N : Node_Id; Val : Node_Id); -- Node5
8755
8756 procedure Set_Intval
8757 (N : Node_Id; Val : Uint); -- Uint3
8758
8759 procedure Set_Is_Asynchronous_Call_Block
8760 (N : Node_Id; Val : Boolean := True); -- Flag7
8761
8762 procedure Set_Is_Component_Left_Opnd
8763 (N : Node_Id; Val : Boolean := True); -- Flag13
8764
8765 procedure Set_Is_Component_Right_Opnd
8766 (N : Node_Id; Val : Boolean := True); -- Flag14
8767
8768 procedure Set_Is_Controlling_Actual
8769 (N : Node_Id; Val : Boolean := True); -- Flag16
8770
8771 procedure Set_Is_Dynamic_Coextension
8772 (N : Node_Id; Val : Boolean := True); -- Flag18
8773
8774 procedure Set_Is_Entry_Barrier_Function
8775 (N : Node_Id; Val : Boolean := True); -- Flag8
8776
8777 procedure Set_Is_Expanded_Build_In_Place_Call
8778 (N : Node_Id; Val : Boolean := True); -- Flag11
8779
8780 procedure Set_Is_Folded_In_Parser
8781 (N : Node_Id; Val : Boolean := True); -- Flag4
8782
8783 procedure Set_Is_In_Discriminant_Check
8784 (N : Node_Id; Val : Boolean := True); -- Flag11
8785
8786 procedure Set_Is_Machine_Number
8787 (N : Node_Id; Val : Boolean := True); -- Flag11
8788
8789 procedure Set_Is_Null_Loop
8790 (N : Node_Id; Val : Boolean := True); -- Flag16
8791
8792 procedure Set_Is_Overloaded
8793 (N : Node_Id; Val : Boolean := True); -- Flag5
8794
8795 procedure Set_Is_Power_Of_2_For_Shift
8796 (N : Node_Id; Val : Boolean := True); -- Flag13
8797
8798 procedure Set_Is_Protected_Subprogram_Body
8799 (N : Node_Id; Val : Boolean := True); -- Flag7
8800
8801 procedure Set_Is_Static_Coextension
8802 (N : Node_Id; Val : Boolean := True); -- Flag14
8803
8804 procedure Set_Is_Static_Expression
8805 (N : Node_Id; Val : Boolean := True); -- Flag6
8806
8807 procedure Set_Is_Subprogram_Descriptor
8808 (N : Node_Id; Val : Boolean := True); -- Flag16
8809
8810 procedure Set_Is_Task_Allocation_Block
8811 (N : Node_Id; Val : Boolean := True); -- Flag6
8812
8813 procedure Set_Is_Task_Master
8814 (N : Node_Id; Val : Boolean := True); -- Flag5
8815
8816 procedure Set_Iteration_Scheme
8817 (N : Node_Id; Val : Node_Id); -- Node2
8818
8819 procedure Set_Itype
8820 (N : Node_Id; Val : Entity_Id); -- Node1
8821
8822 procedure Set_Kill_Range_Check
8823 (N : Node_Id; Val : Boolean := True); -- Flag11
8824
8825 procedure Set_Last_Bit
8826 (N : Node_Id; Val : Node_Id); -- Node4
8827
8828 procedure Set_Last_Name
8829 (N : Node_Id; Val : Boolean := True); -- Flag6
8830
8831 procedure Set_Library_Unit
8832 (N : Node_Id; Val : Node_Id); -- Node4
8833
8834 procedure Set_Label_Construct
8835 (N : Node_Id; Val : Node_Id); -- Node2
8836
8837 procedure Set_Left_Opnd
8838 (N : Node_Id; Val : Node_Id); -- Node2
8839
8840 procedure Set_Limited_View_Installed
8841 (N : Node_Id; Val : Boolean := True); -- Flag18
8842
8843 procedure Set_Limited_Present
8844 (N : Node_Id; Val : Boolean := True); -- Flag17
8845
8846 procedure Set_Literals
8847 (N : Node_Id; Val : List_Id); -- List1
8848
8849 procedure Set_Local_Raise_Not_OK
8850 (N : Node_Id; Val : Boolean := True); -- Flag7
8851
8852 procedure Set_Local_Raise_Statements
8853 (N : Node_Id; Val : Elist_Id); -- Elist1
8854
8855 procedure Set_Loop_Actions
8856 (N : Node_Id; Val : List_Id); -- List2
8857
8858 procedure Set_Loop_Parameter_Specification
8859 (N : Node_Id; Val : Node_Id); -- Node4
8860
8861 procedure Set_Low_Bound
8862 (N : Node_Id; Val : Node_Id); -- Node1
8863
8864 procedure Set_Mod_Clause
8865 (N : Node_Id; Val : Node_Id); -- Node2
8866
8867 procedure Set_More_Ids
8868 (N : Node_Id; Val : Boolean := True); -- Flag5
8869
8870 procedure Set_Must_Be_Byte_Aligned
8871 (N : Node_Id; Val : Boolean := True); -- Flag14
8872
8873 procedure Set_Must_Not_Freeze
8874 (N : Node_Id; Val : Boolean := True); -- Flag8
8875
8876 procedure Set_Must_Not_Override
8877 (N : Node_Id; Val : Boolean := True); -- Flag15
8878
8879 procedure Set_Must_Override
8880 (N : Node_Id; Val : Boolean := True); -- Flag14
8881
8882 procedure Set_Name
8883 (N : Node_Id; Val : Node_Id); -- Node2
8884
8885 procedure Set_Names
8886 (N : Node_Id; Val : List_Id); -- List2
8887
8888 procedure Set_Next_Entity
8889 (N : Node_Id; Val : Node_Id); -- Node2
8890
8891 procedure Set_Next_Named_Actual
8892 (N : Node_Id; Val : Node_Id); -- Node4
8893
8894 procedure Set_Next_Rep_Item
8895 (N : Node_Id; Val : Node_Id); -- Node5
8896
8897 procedure Set_Next_Use_Clause
8898 (N : Node_Id; Val : Node_Id); -- Node3
8899
8900 procedure Set_No_Ctrl_Actions
8901 (N : Node_Id; Val : Boolean := True); -- Flag7
8902
8903 procedure Set_No_Elaboration_Check
8904 (N : Node_Id; Val : Boolean := True); -- Flag14
8905
8906 procedure Set_No_Entities_Ref_In_Spec
8907 (N : Node_Id; Val : Boolean := True); -- Flag8
8908
8909 procedure Set_No_Initialization
8910 (N : Node_Id; Val : Boolean := True); -- Flag13
8911
8912 procedure Set_No_Truncation
8913 (N : Node_Id; Val : Boolean := True); -- Flag17
8914
8915 procedure Set_Null_Present
8916 (N : Node_Id; Val : Boolean := True); -- Flag13
8917
8918 procedure Set_Null_Exclusion_Present
8919 (N : Node_Id; Val : Boolean := True); -- Flag11
8920
8921 procedure Set_Null_Record_Present
8922 (N : Node_Id; Val : Boolean := True); -- Flag17
8923
8924 procedure Set_Object_Definition
8925 (N : Node_Id; Val : Node_Id); -- Node4
8926
8927 procedure Set_Original_Discriminant
8928 (N : Node_Id; Val : Node_Id); -- Node2
8929
8930 procedure Set_Original_Entity
8931 (N : Node_Id; Val : Entity_Id); -- Node2
8932
8933 procedure Set_Others_Discrete_Choices
8934 (N : Node_Id; Val : List_Id); -- List1
8935
8936 procedure Set_Out_Present
8937 (N : Node_Id; Val : Boolean := True); -- Flag17
8938
8939 procedure Set_Parameter_Associations
8940 (N : Node_Id; Val : List_Id); -- List3
8941
8942 procedure Set_Parameter_List_Truncated
8943 (N : Node_Id; Val : Boolean := True); -- Flag17
8944
8945 procedure Set_Parameter_Specifications
8946 (N : Node_Id; Val : List_Id); -- List3
8947
8948 procedure Set_Parameter_Type
8949 (N : Node_Id; Val : Node_Id); -- Node2
8950
8951 procedure Set_Parent_Spec
8952 (N : Node_Id; Val : Node_Id); -- Node4
8953
8954 procedure Set_Position
8955 (N : Node_Id; Val : Node_Id); -- Node2
8956
8957 procedure Set_Pragma_Argument_Associations
8958 (N : Node_Id; Val : List_Id); -- List2
8959
8960 procedure Set_Pragma_Identifier
8961 (N : Node_Id; Val : Node_Id); -- Node4
8962
8963 procedure Set_Pragmas_After
8964 (N : Node_Id; Val : List_Id); -- List5
8965
8966 procedure Set_Pragmas_Before
8967 (N : Node_Id; Val : List_Id); -- List4
8968
8969 procedure Set_Prefix
8970 (N : Node_Id; Val : Node_Id); -- Node3
8971
8972 procedure Set_Present_Expr
8973 (N : Node_Id; Val : Uint); -- Uint3
8974
8975 procedure Set_Prev_Ids
8976 (N : Node_Id; Val : Boolean := True); -- Flag6
8977
8978 procedure Set_Print_In_Hex
8979 (N : Node_Id; Val : Boolean := True); -- Flag13
8980
8981 procedure Set_Private_Declarations
8982 (N : Node_Id; Val : List_Id); -- List3
8983
8984 procedure Set_Private_Present
8985 (N : Node_Id; Val : Boolean := True); -- Flag15
8986
8987 procedure Set_Procedure_To_Call
8988 (N : Node_Id; Val : Node_Id); -- Node2
8989
8990 procedure Set_Proper_Body
8991 (N : Node_Id; Val : Node_Id); -- Node1
8992
8993 procedure Set_Protected_Definition
8994 (N : Node_Id; Val : Node_Id); -- Node3
8995
8996 procedure Set_Protected_Present
8997 (N : Node_Id; Val : Boolean := True); -- Flag6
8998
8999 procedure Set_Raises_Constraint_Error
9000 (N : Node_Id; Val : Boolean := True); -- Flag7
9001
9002 procedure Set_Range_Constraint
9003 (N : Node_Id; Val : Node_Id); -- Node4
9004
9005 procedure Set_Range_Expression
9006 (N : Node_Id; Val : Node_Id); -- Node4
9007
9008 procedure Set_Real_Range_Specification
9009 (N : Node_Id; Val : Node_Id); -- Node4
9010
9011 procedure Set_Realval
9012 (N : Node_Id; Val : Ureal); -- Ureal3
9013
9014 procedure Set_Reason
9015 (N : Node_Id; Val : Uint); -- Uint3
9016
9017 procedure Set_Record_Extension_Part
9018 (N : Node_Id; Val : Node_Id); -- Node3
9019
9020 procedure Set_Redundant_Use
9021 (N : Node_Id; Val : Boolean := True); -- Flag13
9022
9023 procedure Set_Renaming_Exception
9024 (N : Node_Id; Val : Node_Id); -- Node2
9025
9026 procedure Set_Result_Definition
9027 (N : Node_Id; Val : Node_Id); -- Node4
9028
9029 procedure Set_Return_Object_Declarations
9030 (N : Node_Id; Val : List_Id); -- List3
9031
9032 procedure Set_Return_Statement_Entity
9033 (N : Node_Id; Val : Node_Id); -- Node5
9034
9035 procedure Set_Reverse_Present
9036 (N : Node_Id; Val : Boolean := True); -- Flag15
9037
9038 procedure Set_Right_Opnd
9039 (N : Node_Id; Val : Node_Id); -- Node3
9040
9041 procedure Set_Rounded_Result
9042 (N : Node_Id; Val : Boolean := True); -- Flag18
9043
9044 procedure Set_Scope
9045 (N : Node_Id; Val : Node_Id); -- Node3
9046
9047 procedure Set_Select_Alternatives
9048 (N : Node_Id; Val : List_Id); -- List1
9049
9050 procedure Set_Selector_Name
9051 (N : Node_Id; Val : Node_Id); -- Node2
9052
9053 procedure Set_Selector_Names
9054 (N : Node_Id; Val : List_Id); -- List1
9055
9056 procedure Set_Shift_Count_OK
9057 (N : Node_Id; Val : Boolean := True); -- Flag4
9058
9059 procedure Set_Source_Type
9060 (N : Node_Id; Val : Entity_Id); -- Node1
9061
9062 procedure Set_Specification
9063 (N : Node_Id; Val : Node_Id); -- Node1
9064
9065 procedure Set_Statements
9066 (N : Node_Id; Val : List_Id); -- List3
9067
9068 procedure Set_Static_Processing_OK
9069 (N : Node_Id; Val : Boolean); -- Flag4
9070
9071 procedure Set_Storage_Pool
9072 (N : Node_Id; Val : Node_Id); -- Node1
9073
9074 procedure Set_Strval
9075 (N : Node_Id; Val : String_Id); -- Str3
9076
9077 procedure Set_Subtype_Indication
9078 (N : Node_Id; Val : Node_Id); -- Node5
9079
9080 procedure Set_Subtype_Mark
9081 (N : Node_Id; Val : Node_Id); -- Node4
9082
9083 procedure Set_Subtype_Marks
9084 (N : Node_Id; Val : List_Id); -- List2
9085
9086 procedure Set_Synchronized_Present
9087 (N : Node_Id; Val : Boolean := True); -- Flag7
9088
9089 procedure Set_Tagged_Present
9090 (N : Node_Id; Val : Boolean := True); -- Flag15
9091
9092 procedure Set_Target_Type
9093 (N : Node_Id; Val : Entity_Id); -- Node2
9094
9095 procedure Set_Task_Definition
9096 (N : Node_Id; Val : Node_Id); -- Node3
9097
9098 procedure Set_Task_Present
9099 (N : Node_Id; Val : Boolean := True); -- Flag5
9100
9101 procedure Set_Then_Actions
9102 (N : Node_Id; Val : List_Id); -- List2
9103
9104 procedure Set_Then_Statements
9105 (N : Node_Id; Val : List_Id); -- List2
9106
9107 procedure Set_Treat_Fixed_As_Integer
9108 (N : Node_Id; Val : Boolean := True); -- Flag14
9109
9110 procedure Set_Triggering_Alternative
9111 (N : Node_Id; Val : Node_Id); -- Node1
9112
9113 procedure Set_Triggering_Statement
9114 (N : Node_Id; Val : Node_Id); -- Node1
9115
9116 procedure Set_TSS_Elist
9117 (N : Node_Id; Val : Elist_Id); -- Elist3
9118
9119 procedure Set_Type_Definition
9120 (N : Node_Id; Val : Node_Id); -- Node3
9121
9122 procedure Set_Unit
9123 (N : Node_Id; Val : Node_Id); -- Node2
9124
9125 procedure Set_Unknown_Discriminants_Present
9126 (N : Node_Id; Val : Boolean := True); -- Flag13
9127
9128 procedure Set_Unreferenced_In_Spec
9129 (N : Node_Id; Val : Boolean := True); -- Flag7
9130
9131 procedure Set_Variant_Part
9132 (N : Node_Id; Val : Node_Id); -- Node4
9133
9134 procedure Set_Variants
9135 (N : Node_Id; Val : List_Id); -- List1
9136
9137 procedure Set_Visible_Declarations
9138 (N : Node_Id; Val : List_Id); -- List2
9139
9140 procedure Set_Was_Originally_Stub
9141 (N : Node_Id; Val : Boolean := True); -- Flag13
9142
9143 procedure Set_Zero_Cost_Handling
9144 (N : Node_Id; Val : Boolean := True); -- Flag5
9145
9146 -------------------------
9147 -- Iterator Procedures --
9148 -------------------------
9149
9150 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9151
9152 procedure Next_Entity (N : in out Node_Id);
9153 procedure Next_Named_Actual (N : in out Node_Id);
9154 procedure Next_Rep_Item (N : in out Node_Id);
9155 procedure Next_Use_Clause (N : in out Node_Id);
9156
9157 --------------------------------------
9158 -- Logical Access to End_Span Field --
9159 --------------------------------------
9160
9161 function End_Location (N : Node_Id) return Source_Ptr;
9162 -- N is an N_If_Statement or N_Case_Statement node, and this
9163 -- function returns the location of the IF token in the END IF
9164 -- sequence by translating the value of the End_Span field.
9165
9166 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9167 -- N is an N_If_Statement or N_Case_Statement node. This procedure
9168 -- sets the End_Span field to correspond to the given value S. In
9169 -- other words, End_Span is set to the difference between S and
9170 -- Sloc (N), the starting location.
9171
9172 --------------------------------
9173 -- Node_Kind Membership Tests --
9174 --------------------------------
9175
9176 -- The following functions allow a convenient notation for testing wheter
9177 -- a Node_Kind value matches any one of a list of possible values. In each
9178 -- case True is returned if the given T argument is equal to any of the V
9179 -- arguments. Note that there is a similar set of functions defined in
9180 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
9181
9182 function Nkind_In
9183 (T : Node_Kind;
9184 V1 : Node_Kind;
9185 V2 : Node_Kind) return Boolean;
9186
9187 function Nkind_In
9188 (T : Node_Kind;
9189 V1 : Node_Kind;
9190 V2 : Node_Kind;
9191 V3 : Node_Kind) return Boolean;
9192
9193 function Nkind_In
9194 (T : Node_Kind;
9195 V1 : Node_Kind;
9196 V2 : Node_Kind;
9197 V3 : Node_Kind;
9198 V4 : Node_Kind) return Boolean;
9199
9200 function Nkind_In
9201 (T : Node_Kind;
9202 V1 : Node_Kind;
9203 V2 : Node_Kind;
9204 V3 : Node_Kind;
9205 V4 : Node_Kind;
9206 V5 : Node_Kind) return Boolean;
9207
9208 function Nkind_In
9209 (T : Node_Kind;
9210 V1 : Node_Kind;
9211 V2 : Node_Kind;
9212 V3 : Node_Kind;
9213 V4 : Node_Kind;
9214 V5 : Node_Kind;
9215 V6 : Node_Kind) return Boolean;
9216
9217 function Nkind_In
9218 (T : Node_Kind;
9219 V1 : Node_Kind;
9220 V2 : Node_Kind;
9221 V3 : Node_Kind;
9222 V4 : Node_Kind;
9223 V5 : Node_Kind;
9224 V6 : Node_Kind;
9225 V7 : Node_Kind) return Boolean;
9226
9227 function Nkind_In
9228 (T : Node_Kind;
9229 V1 : Node_Kind;
9230 V2 : Node_Kind;
9231 V3 : Node_Kind;
9232 V4 : Node_Kind;
9233 V5 : Node_Kind;
9234 V6 : Node_Kind;
9235 V7 : Node_Kind;
9236 V8 : Node_Kind) return Boolean;
9237
9238 pragma Inline (Nkind_In);
9239 -- Inline all above functions
9240
9241 -----------------------------
9242 -- Syntactic Parent Tables --
9243 -----------------------------
9244
9245 -- These tables show for each node, and for each of the five fields,
9246 -- whether the corresponding field is syntactic (True) or semantic (False).
9247 -- Unused entries are also set to False.
9248
9249 subtype Field_Num is Natural range 1 .. 5;
9250
9251 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
9252
9253 -- Following entries can be built automatically from the sinfo sources
9254 -- using the makeisf utility (currently this program is in spitbol).
9255
9256 N_Identifier =>
9257 (1 => True, -- Chars (Name1)
9258 2 => False, -- Original_Discriminant (Node2-Sem)
9259 3 => False, -- unused
9260 4 => False, -- Entity (Node4-Sem)
9261 5 => False), -- Etype (Node5-Sem)
9262
9263 N_Integer_Literal =>
9264 (1 => False, -- unused
9265 2 => False, -- Original_Entity (Node2-Sem)
9266 3 => True, -- Intval (Uint3)
9267 4 => False, -- unused
9268 5 => False), -- Etype (Node5-Sem)
9269
9270 N_Real_Literal =>
9271 (1 => False, -- unused
9272 2 => False, -- Original_Entity (Node2-Sem)
9273 3 => True, -- Realval (Ureal3)
9274 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
9275 5 => False), -- Etype (Node5-Sem)
9276
9277 N_Character_Literal =>
9278 (1 => True, -- Chars (Name1)
9279 2 => True, -- Char_Literal_Value (Uint2)
9280 3 => False, -- unused
9281 4 => False, -- Entity (Node4-Sem)
9282 5 => False), -- Etype (Node5-Sem)
9283
9284 N_String_Literal =>
9285 (1 => False, -- unused
9286 2 => False, -- unused
9287 3 => True, -- Strval (Str3)
9288 4 => False, -- unused
9289 5 => False), -- Etype (Node5-Sem)
9290
9291 N_Pragma =>
9292 (1 => True, -- Chars (Name1)
9293 2 => True, -- Pragma_Argument_Associations (List2)
9294 3 => True, -- Debug_Statement (Node3)
9295 4 => True, -- Pragma_Identifier (Node4)
9296 5 => False), -- Next_Rep_Item (Node5-Sem)
9297
9298 N_Pragma_Argument_Association =>
9299 (1 => True, -- Chars (Name1)
9300 2 => False, -- unused
9301 3 => True, -- Expression (Node3)
9302 4 => False, -- unused
9303 5 => False), -- unused
9304
9305 N_Defining_Identifier =>
9306 (1 => True, -- Chars (Name1)
9307 2 => False, -- Next_Entity (Node2-Sem)
9308 3 => False, -- Scope (Node3-Sem)
9309 4 => False, -- unused
9310 5 => False), -- Etype (Node5-Sem)
9311
9312 N_Full_Type_Declaration =>
9313 (1 => True, -- Defining_Identifier (Node1)
9314 2 => False, -- unused
9315 3 => True, -- Type_Definition (Node3)
9316 4 => True, -- Discriminant_Specifications (List4)
9317 5 => False), -- unused
9318
9319 N_Subtype_Declaration =>
9320 (1 => True, -- Defining_Identifier (Node1)
9321 2 => False, -- unused
9322 3 => False, -- unused
9323 4 => False, -- Generic_Parent_Type (Node4-Sem)
9324 5 => True), -- Subtype_Indication (Node5)
9325
9326 N_Subtype_Indication =>
9327 (1 => False, -- unused
9328 2 => False, -- unused
9329 3 => True, -- Constraint (Node3)
9330 4 => True, -- Subtype_Mark (Node4)
9331 5 => False), -- Etype (Node5-Sem)
9332
9333 N_Object_Declaration =>
9334 (1 => True, -- Defining_Identifier (Node1)
9335 2 => False, -- Handler_List_Entry (Node2-Sem)
9336 3 => True, -- Expression (Node3)
9337 4 => True, -- Object_Definition (Node4)
9338 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
9339
9340 N_Number_Declaration =>
9341 (1 => True, -- Defining_Identifier (Node1)
9342 2 => False, -- unused
9343 3 => True, -- Expression (Node3)
9344 4 => False, -- unused
9345 5 => False), -- unused
9346
9347 N_Derived_Type_Definition =>
9348 (1 => False, -- unused
9349 2 => True, -- Interface_List (List2)
9350 3 => True, -- Record_Extension_Part (Node3)
9351 4 => False, -- unused
9352 5 => True), -- Subtype_Indication (Node5)
9353
9354 N_Range_Constraint =>
9355 (1 => False, -- unused
9356 2 => False, -- unused
9357 3 => False, -- unused
9358 4 => True, -- Range_Expression (Node4)
9359 5 => False), -- unused
9360
9361 N_Range =>
9362 (1 => True, -- Low_Bound (Node1)
9363 2 => True, -- High_Bound (Node2)
9364 3 => False, -- unused
9365 4 => False, -- unused
9366 5 => False), -- Etype (Node5-Sem)
9367
9368 N_Enumeration_Type_Definition =>
9369 (1 => True, -- Literals (List1)
9370 2 => False, -- unused
9371 3 => False, -- unused
9372 4 => True, -- End_Label (Node4)
9373 5 => False), -- unused
9374
9375 N_Defining_Character_Literal =>
9376 (1 => True, -- Chars (Name1)
9377 2 => False, -- Next_Entity (Node2-Sem)
9378 3 => False, -- Scope (Node3-Sem)
9379 4 => False, -- unused
9380 5 => False), -- Etype (Node5-Sem)
9381
9382 N_Signed_Integer_Type_Definition =>
9383 (1 => True, -- Low_Bound (Node1)
9384 2 => True, -- High_Bound (Node2)
9385 3 => False, -- unused
9386 4 => False, -- unused
9387 5 => False), -- unused
9388
9389 N_Modular_Type_Definition =>
9390 (1 => False, -- unused
9391 2 => False, -- unused
9392 3 => True, -- Expression (Node3)
9393 4 => False, -- unused
9394 5 => False), -- unused
9395
9396 N_Floating_Point_Definition =>
9397 (1 => False, -- unused
9398 2 => True, -- Digits_Expression (Node2)
9399 3 => False, -- unused
9400 4 => True, -- Real_Range_Specification (Node4)
9401 5 => False), -- unused
9402
9403 N_Real_Range_Specification =>
9404 (1 => True, -- Low_Bound (Node1)
9405 2 => True, -- High_Bound (Node2)
9406 3 => False, -- unused
9407 4 => False, -- unused
9408 5 => False), -- unused
9409
9410 N_Ordinary_Fixed_Point_Definition =>
9411 (1 => False, -- unused
9412 2 => False, -- unused
9413 3 => True, -- Delta_Expression (Node3)
9414 4 => True, -- Real_Range_Specification (Node4)
9415 5 => False), -- unused
9416
9417 N_Decimal_Fixed_Point_Definition =>
9418 (1 => False, -- unused
9419 2 => True, -- Digits_Expression (Node2)
9420 3 => True, -- Delta_Expression (Node3)
9421 4 => True, -- Real_Range_Specification (Node4)
9422 5 => False), -- unused
9423
9424 N_Digits_Constraint =>
9425 (1 => False, -- unused
9426 2 => True, -- Digits_Expression (Node2)
9427 3 => False, -- unused
9428 4 => True, -- Range_Constraint (Node4)
9429 5 => False), -- unused
9430
9431 N_Unconstrained_Array_Definition =>
9432 (1 => False, -- unused
9433 2 => True, -- Subtype_Marks (List2)
9434 3 => False, -- unused
9435 4 => True, -- Component_Definition (Node4)
9436 5 => False), -- unused
9437
9438 N_Constrained_Array_Definition =>
9439 (1 => False, -- unused
9440 2 => True, -- Discrete_Subtype_Definitions (List2)
9441 3 => False, -- unused
9442 4 => True, -- Component_Definition (Node4)
9443 5 => False), -- unused
9444
9445 N_Component_Definition =>
9446 (1 => False, -- unused
9447 2 => False, -- unused
9448 3 => True, -- Access_Definition (Node3)
9449 4 => False, -- unused
9450 5 => True), -- Subtype_Indication (Node5)
9451
9452 N_Discriminant_Specification =>
9453 (1 => True, -- Defining_Identifier (Node1)
9454 2 => False, -- unused
9455 3 => True, -- Expression (Node3)
9456 4 => False, -- unused
9457 5 => True), -- Discriminant_Type (Node5)
9458
9459 N_Index_Or_Discriminant_Constraint =>
9460 (1 => True, -- Constraints (List1)
9461 2 => False, -- unused
9462 3 => False, -- unused
9463 4 => False, -- unused
9464 5 => False), -- unused
9465
9466 N_Discriminant_Association =>
9467 (1 => True, -- Selector_Names (List1)
9468 2 => False, -- unused
9469 3 => True, -- Expression (Node3)
9470 4 => False, -- unused
9471 5 => False), -- unused
9472
9473 N_Record_Definition =>
9474 (1 => True, -- Component_List (Node1)
9475 2 => True, -- Interface_List (List2)
9476 3 => False, -- unused
9477 4 => True, -- End_Label (Node4)
9478 5 => False), -- unused
9479
9480 N_Component_List =>
9481 (1 => False, -- unused
9482 2 => False, -- unused
9483 3 => True, -- Component_Items (List3)
9484 4 => True, -- Variant_Part (Node4)
9485 5 => False), -- unused
9486
9487 N_Component_Declaration =>
9488 (1 => True, -- Defining_Identifier (Node1)
9489 2 => False, -- unused
9490 3 => True, -- Expression (Node3)
9491 4 => True, -- Component_Definition (Node4)
9492 5 => False), -- unused
9493
9494 N_Variant_Part =>
9495 (1 => True, -- Variants (List1)
9496 2 => True, -- Name (Node2)
9497 3 => False, -- unused
9498 4 => False, -- unused
9499 5 => False), -- unused
9500
9501 N_Variant =>
9502 (1 => True, -- Component_List (Node1)
9503 2 => False, -- Enclosing_Variant (Node2-Sem)
9504 3 => False, -- Present_Expr (Uint3-Sem)
9505 4 => True, -- Discrete_Choices (List4)
9506 5 => False), -- Dcheck_Function (Node5-Sem)
9507
9508 N_Others_Choice =>
9509 (1 => False, -- Others_Discrete_Choices (List1-Sem)
9510 2 => False, -- unused
9511 3 => False, -- unused
9512 4 => False, -- unused
9513 5 => False), -- unused
9514
9515 N_Access_To_Object_Definition =>
9516 (1 => False, -- unused
9517 2 => False, -- unused
9518 3 => False, -- unused
9519 4 => False, -- unused
9520 5 => True), -- Subtype_Indication (Node5)
9521
9522 N_Access_Function_Definition =>
9523 (1 => False, -- unused
9524 2 => False, -- unused
9525 3 => True, -- Parameter_Specifications (List3)
9526 4 => True, -- Result_Definition (Node4)
9527 5 => False), -- unused
9528
9529 N_Access_Procedure_Definition =>
9530 (1 => False, -- unused
9531 2 => False, -- unused
9532 3 => True, -- Parameter_Specifications (List3)
9533 4 => False, -- unused
9534 5 => False), -- unused
9535
9536 N_Access_Definition =>
9537 (1 => False, -- unused
9538 2 => False, -- unused
9539 3 => True, -- Access_To_Subprogram_Definition (Node3)
9540 4 => True, -- Subtype_Mark (Node4)
9541 5 => False), -- unused
9542
9543 N_Incomplete_Type_Declaration =>
9544 (1 => True, -- Defining_Identifier (Node1)
9545 2 => False, -- unused
9546 3 => False, -- unused
9547 4 => True, -- Discriminant_Specifications (List4)
9548 5 => False), -- unused
9549
9550 N_Explicit_Dereference =>
9551 (1 => False, -- unused
9552 2 => False, -- unused
9553 3 => True, -- Prefix (Node3)
9554 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
9555 5 => False), -- Etype (Node5-Sem)
9556
9557 N_Indexed_Component =>
9558 (1 => True, -- Expressions (List1)
9559 2 => False, -- unused
9560 3 => True, -- Prefix (Node3)
9561 4 => False, -- unused
9562 5 => False), -- Etype (Node5-Sem)
9563
9564 N_Slice =>
9565 (1 => False, -- unused
9566 2 => False, -- unused
9567 3 => True, -- Prefix (Node3)
9568 4 => True, -- Discrete_Range (Node4)
9569 5 => False), -- Etype (Node5-Sem)
9570
9571 N_Selected_Component =>
9572 (1 => False, -- unused
9573 2 => True, -- Selector_Name (Node2)
9574 3 => True, -- Prefix (Node3)
9575 4 => False, -- unused
9576 5 => False), -- Etype (Node5-Sem)
9577
9578 N_Attribute_Reference =>
9579 (1 => True, -- Expressions (List1)
9580 2 => True, -- Attribute_Name (Name2)
9581 3 => True, -- Prefix (Node3)
9582 4 => False, -- Entity (Node4-Sem)
9583 5 => False), -- Etype (Node5-Sem)
9584
9585 N_Aggregate =>
9586 (1 => True, -- Expressions (List1)
9587 2 => True, -- Component_Associations (List2)
9588 3 => False, -- Aggregate_Bounds (Node3-Sem)
9589 4 => False, -- unused
9590 5 => False), -- Etype (Node5-Sem)
9591
9592 N_Component_Association =>
9593 (1 => True, -- Choices (List1)
9594 2 => False, -- Loop_Actions (List2-Sem)
9595 3 => True, -- Expression (Node3)
9596 4 => False, -- unused
9597 5 => False), -- unused
9598
9599 N_Extension_Aggregate =>
9600 (1 => True, -- Expressions (List1)
9601 2 => True, -- Component_Associations (List2)
9602 3 => True, -- Ancestor_Part (Node3)
9603 4 => False, -- unused
9604 5 => False), -- Etype (Node5-Sem)
9605
9606 N_Null =>
9607 (1 => False, -- unused
9608 2 => False, -- unused
9609 3 => False, -- unused
9610 4 => False, -- unused
9611 5 => False), -- Etype (Node5-Sem)
9612
9613 N_And_Then =>
9614 (1 => False, -- Actions (List1-Sem)
9615 2 => True, -- Left_Opnd (Node2)
9616 3 => True, -- Right_Opnd (Node3)
9617 4 => False, -- unused
9618 5 => False), -- Etype (Node5-Sem)
9619
9620 N_Or_Else =>
9621 (1 => False, -- Actions (List1-Sem)
9622 2 => True, -- Left_Opnd (Node2)
9623 3 => True, -- Right_Opnd (Node3)
9624 4 => False, -- unused
9625 5 => False), -- Etype (Node5-Sem)
9626
9627 N_In =>
9628 (1 => False, -- unused
9629 2 => True, -- Left_Opnd (Node2)
9630 3 => True, -- Right_Opnd (Node3)
9631 4 => False, -- unused
9632 5 => False), -- Etype (Node5-Sem)
9633
9634 N_Not_In =>
9635 (1 => False, -- unused
9636 2 => True, -- Left_Opnd (Node2)
9637 3 => True, -- Right_Opnd (Node3)
9638 4 => False, -- unused
9639 5 => False), -- Etype (Node5-Sem)
9640
9641 N_Op_And =>
9642 (1 => True, -- Chars (Name1)
9643 2 => True, -- Left_Opnd (Node2)
9644 3 => True, -- Right_Opnd (Node3)
9645 4 => False, -- Entity (Node4-Sem)
9646 5 => False), -- Etype (Node5-Sem)
9647
9648 N_Op_Or =>
9649 (1 => True, -- Chars (Name1)
9650 2 => True, -- Left_Opnd (Node2)
9651 3 => True, -- Right_Opnd (Node3)
9652 4 => False, -- Entity (Node4-Sem)
9653 5 => False), -- Etype (Node5-Sem)
9654
9655 N_Op_Xor =>
9656 (1 => True, -- Chars (Name1)
9657 2 => True, -- Left_Opnd (Node2)
9658 3 => True, -- Right_Opnd (Node3)
9659 4 => False, -- Entity (Node4-Sem)
9660 5 => False), -- Etype (Node5-Sem)
9661
9662 N_Op_Eq =>
9663 (1 => True, -- Chars (Name1)
9664 2 => True, -- Left_Opnd (Node2)
9665 3 => True, -- Right_Opnd (Node3)
9666 4 => False, -- Entity (Node4-Sem)
9667 5 => False), -- Etype (Node5-Sem)
9668
9669 N_Op_Ne =>
9670 (1 => True, -- Chars (Name1)
9671 2 => True, -- Left_Opnd (Node2)
9672 3 => True, -- Right_Opnd (Node3)
9673 4 => False, -- Entity (Node4-Sem)
9674 5 => False), -- Etype (Node5-Sem)
9675
9676 N_Op_Lt =>
9677 (1 => True, -- Chars (Name1)
9678 2 => True, -- Left_Opnd (Node2)
9679 3 => True, -- Right_Opnd (Node3)
9680 4 => False, -- Entity (Node4-Sem)
9681 5 => False), -- Etype (Node5-Sem)
9682
9683 N_Op_Le =>
9684 (1 => True, -- Chars (Name1)
9685 2 => True, -- Left_Opnd (Node2)
9686 3 => True, -- Right_Opnd (Node3)
9687 4 => False, -- Entity (Node4-Sem)
9688 5 => False), -- Etype (Node5-Sem)
9689
9690 N_Op_Gt =>
9691 (1 => True, -- Chars (Name1)
9692 2 => True, -- Left_Opnd (Node2)
9693 3 => True, -- Right_Opnd (Node3)
9694 4 => False, -- Entity (Node4-Sem)
9695 5 => False), -- Etype (Node5-Sem)
9696
9697 N_Op_Ge =>
9698 (1 => True, -- Chars (Name1)
9699 2 => True, -- Left_Opnd (Node2)
9700 3 => True, -- Right_Opnd (Node3)
9701 4 => False, -- Entity (Node4-Sem)
9702 5 => False), -- Etype (Node5-Sem)
9703
9704 N_Op_Add =>
9705 (1 => True, -- Chars (Name1)
9706 2 => True, -- Left_Opnd (Node2)
9707 3 => True, -- Right_Opnd (Node3)
9708 4 => False, -- Entity (Node4-Sem)
9709 5 => False), -- Etype (Node5-Sem)
9710
9711 N_Op_Subtract =>
9712 (1 => True, -- Chars (Name1)
9713 2 => True, -- Left_Opnd (Node2)
9714 3 => True, -- Right_Opnd (Node3)
9715 4 => False, -- Entity (Node4-Sem)
9716 5 => False), -- Etype (Node5-Sem)
9717
9718 N_Op_Concat =>
9719 (1 => True, -- Chars (Name1)
9720 2 => True, -- Left_Opnd (Node2)
9721 3 => True, -- Right_Opnd (Node3)
9722 4 => False, -- Entity (Node4-Sem)
9723 5 => False), -- Etype (Node5-Sem)
9724
9725 N_Op_Multiply =>
9726 (1 => True, -- Chars (Name1)
9727 2 => True, -- Left_Opnd (Node2)
9728 3 => True, -- Right_Opnd (Node3)
9729 4 => False, -- Entity (Node4-Sem)
9730 5 => False), -- Etype (Node5-Sem)
9731
9732 N_Op_Divide =>
9733 (1 => True, -- Chars (Name1)
9734 2 => True, -- Left_Opnd (Node2)
9735 3 => True, -- Right_Opnd (Node3)
9736 4 => False, -- Entity (Node4-Sem)
9737 5 => False), -- Etype (Node5-Sem)
9738
9739 N_Op_Mod =>
9740 (1 => True, -- Chars (Name1)
9741 2 => True, -- Left_Opnd (Node2)
9742 3 => True, -- Right_Opnd (Node3)
9743 4 => False, -- Entity (Node4-Sem)
9744 5 => False), -- Etype (Node5-Sem)
9745
9746 N_Op_Rem =>
9747 (1 => True, -- Chars (Name1)
9748 2 => True, -- Left_Opnd (Node2)
9749 3 => True, -- Right_Opnd (Node3)
9750 4 => False, -- Entity (Node4-Sem)
9751 5 => False), -- Etype (Node5-Sem)
9752
9753 N_Op_Expon =>
9754 (1 => True, -- Chars (Name1)
9755 2 => True, -- Left_Opnd (Node2)
9756 3 => True, -- Right_Opnd (Node3)
9757 4 => False, -- Entity (Node4-Sem)
9758 5 => False), -- Etype (Node5-Sem)
9759
9760 N_Op_Plus =>
9761 (1 => True, -- Chars (Name1)
9762 2 => False, -- unused
9763 3 => True, -- Right_Opnd (Node3)
9764 4 => False, -- Entity (Node4-Sem)
9765 5 => False), -- Etype (Node5-Sem)
9766
9767 N_Op_Minus =>
9768 (1 => True, -- Chars (Name1)
9769 2 => False, -- unused
9770 3 => True, -- Right_Opnd (Node3)
9771 4 => False, -- Entity (Node4-Sem)
9772 5 => False), -- Etype (Node5-Sem)
9773
9774 N_Op_Abs =>
9775 (1 => True, -- Chars (Name1)
9776 2 => False, -- unused
9777 3 => True, -- Right_Opnd (Node3)
9778 4 => False, -- Entity (Node4-Sem)
9779 5 => False), -- Etype (Node5-Sem)
9780
9781 N_Op_Not =>
9782 (1 => True, -- Chars (Name1)
9783 2 => False, -- unused
9784 3 => True, -- Right_Opnd (Node3)
9785 4 => False, -- Entity (Node4-Sem)
9786 5 => False), -- Etype (Node5-Sem)
9787
9788 N_Type_Conversion =>
9789 (1 => False, -- unused
9790 2 => False, -- unused
9791 3 => True, -- Expression (Node3)
9792 4 => True, -- Subtype_Mark (Node4)
9793 5 => False), -- Etype (Node5-Sem)
9794
9795 N_Qualified_Expression =>
9796 (1 => False, -- unused
9797 2 => False, -- unused
9798 3 => True, -- Expression (Node3)
9799 4 => True, -- Subtype_Mark (Node4)
9800 5 => False), -- Etype (Node5-Sem)
9801
9802 N_Allocator =>
9803 (1 => False, -- Storage_Pool (Node1-Sem)
9804 2 => False, -- Procedure_To_Call (Node2-Sem)
9805 3 => True, -- Expression (Node3)
9806 4 => False, -- Coextensions (Elist4-Sem)
9807 5 => False), -- Etype (Node5-Sem)
9808
9809 N_Null_Statement =>
9810 (1 => False, -- unused
9811 2 => False, -- unused
9812 3 => False, -- unused
9813 4 => False, -- unused
9814 5 => False), -- unused
9815
9816 N_Label =>
9817 (1 => True, -- Identifier (Node1)
9818 2 => False, -- unused
9819 3 => False, -- unused
9820 4 => False, -- unused
9821 5 => False), -- unused
9822
9823 N_Assignment_Statement =>
9824 (1 => False, -- unused
9825 2 => True, -- Name (Node2)
9826 3 => True, -- Expression (Node3)
9827 4 => False, -- unused
9828 5 => False), -- unused
9829
9830 N_If_Statement =>
9831 (1 => True, -- Condition (Node1)
9832 2 => True, -- Then_Statements (List2)
9833 3 => True, -- Elsif_Parts (List3)
9834 4 => True, -- Else_Statements (List4)
9835 5 => True), -- End_Span (Uint5)
9836
9837 N_Elsif_Part =>
9838 (1 => True, -- Condition (Node1)
9839 2 => True, -- Then_Statements (List2)
9840 3 => False, -- Condition_Actions (List3-Sem)
9841 4 => False, -- unused
9842 5 => False), -- unused
9843
9844 N_Case_Statement =>
9845 (1 => False, -- unused
9846 2 => False, -- unused
9847 3 => True, -- Expression (Node3)
9848 4 => True, -- Alternatives (List4)
9849 5 => True), -- End_Span (Uint5)
9850
9851 N_Case_Statement_Alternative =>
9852 (1 => False, -- unused
9853 2 => False, -- unused
9854 3 => True, -- Statements (List3)
9855 4 => True, -- Discrete_Choices (List4)
9856 5 => False), -- unused
9857
9858 N_Loop_Statement =>
9859 (1 => True, -- Identifier (Node1)
9860 2 => True, -- Iteration_Scheme (Node2)
9861 3 => True, -- Statements (List3)
9862 4 => True, -- End_Label (Node4)
9863 5 => False), -- unused
9864
9865 N_Iteration_Scheme =>
9866 (1 => True, -- Condition (Node1)
9867 2 => False, -- unused
9868 3 => False, -- Condition_Actions (List3-Sem)
9869 4 => True, -- Loop_Parameter_Specification (Node4)
9870 5 => False), -- unused
9871
9872 N_Loop_Parameter_Specification =>
9873 (1 => True, -- Defining_Identifier (Node1)
9874 2 => False, -- unused
9875 3 => False, -- unused
9876 4 => True, -- Discrete_Subtype_Definition (Node4)
9877 5 => False), -- unused
9878
9879 N_Block_Statement =>
9880 (1 => True, -- Identifier (Node1)
9881 2 => True, -- Declarations (List2)
9882 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9883 4 => True, -- Handled_Statement_Sequence (Node4)
9884 5 => False), -- unused
9885
9886 N_Exit_Statement =>
9887 (1 => True, -- Condition (Node1)
9888 2 => True, -- Name (Node2)
9889 3 => False, -- unused
9890 4 => False, -- unused
9891 5 => False), -- unused
9892
9893 N_Goto_Statement =>
9894 (1 => False, -- unused
9895 2 => True, -- Name (Node2)
9896 3 => False, -- unused
9897 4 => False, -- unused
9898 5 => False), -- unused
9899
9900 N_Subprogram_Declaration =>
9901 (1 => True, -- Specification (Node1)
9902 2 => False, -- unused
9903 3 => False, -- Body_To_Inline (Node3-Sem)
9904 4 => False, -- Parent_Spec (Node4-Sem)
9905 5 => False), -- Corresponding_Body (Node5-Sem)
9906
9907 N_Abstract_Subprogram_Declaration =>
9908 (1 => True, -- Specification (Node1)
9909 2 => False, -- unused
9910 3 => False, -- unused
9911 4 => False, -- unused
9912 5 => False), -- unused
9913
9914 N_Function_Specification =>
9915 (1 => True, -- Defining_Unit_Name (Node1)
9916 2 => False, -- Elaboration_Boolean (Node2-Sem)
9917 3 => True, -- Parameter_Specifications (List3)
9918 4 => True, -- Result_Definition (Node4)
9919 5 => False), -- Generic_Parent (Node5-Sem)
9920
9921 N_Procedure_Specification =>
9922 (1 => True, -- Defining_Unit_Name (Node1)
9923 2 => False, -- Elaboration_Boolean (Node2-Sem)
9924 3 => True, -- Parameter_Specifications (List3)
9925 4 => False, -- unused
9926 5 => False), -- Generic_Parent (Node5-Sem)
9927
9928 N_Designator =>
9929 (1 => True, -- Identifier (Node1)
9930 2 => True, -- Name (Node2)
9931 3 => False, -- unused
9932 4 => False, -- unused
9933 5 => False), -- unused
9934
9935 N_Defining_Program_Unit_Name =>
9936 (1 => True, -- Defining_Identifier (Node1)
9937 2 => True, -- Name (Node2)
9938 3 => False, -- unused
9939 4 => False, -- unused
9940 5 => False), -- unused
9941
9942 N_Operator_Symbol =>
9943 (1 => True, -- Chars (Name1)
9944 2 => False, -- unused
9945 3 => True, -- Strval (Str3)
9946 4 => False, -- Entity (Node4-Sem)
9947 5 => False), -- Etype (Node5-Sem)
9948
9949 N_Defining_Operator_Symbol =>
9950 (1 => True, -- Chars (Name1)
9951 2 => False, -- Next_Entity (Node2-Sem)
9952 3 => False, -- Scope (Node3-Sem)
9953 4 => False, -- unused
9954 5 => False), -- Etype (Node5-Sem)
9955
9956 N_Parameter_Specification =>
9957 (1 => True, -- Defining_Identifier (Node1)
9958 2 => True, -- Parameter_Type (Node2)
9959 3 => True, -- Expression (Node3)
9960 4 => False, -- unused
9961 5 => False), -- Default_Expression (Node5-Sem)
9962
9963 N_Subprogram_Body =>
9964 (1 => True, -- Specification (Node1)
9965 2 => True, -- Declarations (List2)
9966 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9967 4 => True, -- Handled_Statement_Sequence (Node4)
9968 5 => False), -- Corresponding_Spec (Node5-Sem)
9969
9970 N_Procedure_Call_Statement =>
9971 (1 => False, -- Controlling_Argument (Node1-Sem)
9972 2 => True, -- Name (Node2)
9973 3 => True, -- Parameter_Associations (List3)
9974 4 => False, -- First_Named_Actual (Node4-Sem)
9975 5 => False), -- Etype (Node5-Sem)
9976
9977 N_Function_Call =>
9978 (1 => False, -- Controlling_Argument (Node1-Sem)
9979 2 => True, -- Name (Node2)
9980 3 => True, -- Parameter_Associations (List3)
9981 4 => False, -- First_Named_Actual (Node4-Sem)
9982 5 => False), -- Etype (Node5-Sem)
9983
9984 N_Parameter_Association =>
9985 (1 => False, -- unused
9986 2 => True, -- Selector_Name (Node2)
9987 3 => True, -- Explicit_Actual_Parameter (Node3)
9988 4 => False, -- Next_Named_Actual (Node4-Sem)
9989 5 => False), -- unused
9990
9991 N_Return_Statement =>
9992 (1 => False, -- Storage_Pool (Node1-Sem)
9993 2 => False, -- Procedure_To_Call (Node2-Sem)
9994 3 => True, -- Expression (Node3)
9995 4 => False, -- unused
9996 5 => False), -- Return_Statement_Entity (Node5-Sem)
9997
9998 N_Extended_Return_Statement =>
9999 (1 => False, -- Storage_Pool (Node1-Sem)
10000 2 => False, -- Procedure_To_Call (Node2-Sem)
10001 3 => True, -- Return_Object_Declarations (List3)
10002 4 => True, -- Handled_Statement_Sequence (Node4)
10003 5 => False), -- Return_Statement_Entity (Node5-Sem)
10004
10005 N_Package_Declaration =>
10006 (1 => True, -- Specification (Node1)
10007 2 => False, -- unused
10008 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10009 4 => False, -- Parent_Spec (Node4-Sem)
10010 5 => False), -- Corresponding_Body (Node5-Sem)
10011
10012 N_Package_Specification =>
10013 (1 => True, -- Defining_Unit_Name (Node1)
10014 2 => True, -- Visible_Declarations (List2)
10015 3 => True, -- Private_Declarations (List3)
10016 4 => True, -- End_Label (Node4)
10017 5 => False), -- Generic_Parent (Node5-Sem)
10018
10019 N_Package_Body =>
10020 (1 => True, -- Defining_Unit_Name (Node1)
10021 2 => True, -- Declarations (List2)
10022 3 => False, -- unused
10023 4 => True, -- Handled_Statement_Sequence (Node4)
10024 5 => False), -- Corresponding_Spec (Node5-Sem)
10025
10026 N_Private_Type_Declaration =>
10027 (1 => True, -- Defining_Identifier (Node1)
10028 2 => False, -- unused
10029 3 => False, -- unused
10030 4 => True, -- Discriminant_Specifications (List4)
10031 5 => False), -- unused
10032
10033 N_Private_Extension_Declaration =>
10034 (1 => True, -- Defining_Identifier (Node1)
10035 2 => True, -- Interface_List (List2)
10036 3 => False, -- unused
10037 4 => True, -- Discriminant_Specifications (List4)
10038 5 => True), -- Subtype_Indication (Node5)
10039
10040 N_Use_Package_Clause =>
10041 (1 => False, -- unused
10042 2 => True, -- Names (List2)
10043 3 => False, -- Next_Use_Clause (Node3-Sem)
10044 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10045 5 => False), -- unused
10046
10047 N_Use_Type_Clause =>
10048 (1 => False, -- unused
10049 2 => True, -- Subtype_Marks (List2)
10050 3 => False, -- Next_Use_Clause (Node3-Sem)
10051 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10052 5 => False), -- unused
10053
10054 N_Object_Renaming_Declaration =>
10055 (1 => True, -- Defining_Identifier (Node1)
10056 2 => True, -- Name (Node2)
10057 3 => True, -- Access_Definition (Node3)
10058 4 => True, -- Subtype_Mark (Node4)
10059 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10060
10061 N_Exception_Renaming_Declaration =>
10062 (1 => True, -- Defining_Identifier (Node1)
10063 2 => True, -- Name (Node2)
10064 3 => False, -- unused
10065 4 => False, -- unused
10066 5 => False), -- unused
10067
10068 N_Package_Renaming_Declaration =>
10069 (1 => True, -- Defining_Unit_Name (Node1)
10070 2 => True, -- Name (Node2)
10071 3 => False, -- unused
10072 4 => False, -- Parent_Spec (Node4-Sem)
10073 5 => False), -- unused
10074
10075 N_Subprogram_Renaming_Declaration =>
10076 (1 => True, -- Specification (Node1)
10077 2 => True, -- Name (Node2)
10078 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
10079 4 => False, -- Parent_Spec (Node4-Sem)
10080 5 => False), -- Corresponding_Spec (Node5-Sem)
10081
10082 N_Generic_Package_Renaming_Declaration =>
10083 (1 => True, -- Defining_Unit_Name (Node1)
10084 2 => True, -- Name (Node2)
10085 3 => False, -- unused
10086 4 => False, -- Parent_Spec (Node4-Sem)
10087 5 => False), -- unused
10088
10089 N_Generic_Procedure_Renaming_Declaration =>
10090 (1 => True, -- Defining_Unit_Name (Node1)
10091 2 => True, -- Name (Node2)
10092 3 => False, -- unused
10093 4 => False, -- Parent_Spec (Node4-Sem)
10094 5 => False), -- unused
10095
10096 N_Generic_Function_Renaming_Declaration =>
10097 (1 => True, -- Defining_Unit_Name (Node1)
10098 2 => True, -- Name (Node2)
10099 3 => False, -- unused
10100 4 => False, -- Parent_Spec (Node4-Sem)
10101 5 => False), -- unused
10102
10103 N_Task_Type_Declaration =>
10104 (1 => True, -- Defining_Identifier (Node1)
10105 2 => True, -- Interface_List (List2)
10106 3 => True, -- Task_Definition (Node3)
10107 4 => True, -- Discriminant_Specifications (List4)
10108 5 => False), -- Corresponding_Body (Node5-Sem)
10109
10110 N_Single_Task_Declaration =>
10111 (1 => True, -- Defining_Identifier (Node1)
10112 2 => True, -- Interface_List (List2)
10113 3 => True, -- Task_Definition (Node3)
10114 4 => False, -- unused
10115 5 => False), -- unused
10116
10117 N_Task_Definition =>
10118 (1 => False, -- unused
10119 2 => True, -- Visible_Declarations (List2)
10120 3 => True, -- Private_Declarations (List3)
10121 4 => True, -- End_Label (Node4)
10122 5 => False), -- unused
10123
10124 N_Task_Body =>
10125 (1 => True, -- Defining_Identifier (Node1)
10126 2 => True, -- Declarations (List2)
10127 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10128 4 => True, -- Handled_Statement_Sequence (Node4)
10129 5 => False), -- Corresponding_Spec (Node5-Sem)
10130
10131 N_Protected_Type_Declaration =>
10132 (1 => True, -- Defining_Identifier (Node1)
10133 2 => True, -- Interface_List (List2)
10134 3 => True, -- Protected_Definition (Node3)
10135 4 => True, -- Discriminant_Specifications (List4)
10136 5 => False), -- Corresponding_Body (Node5-Sem)
10137
10138 N_Single_Protected_Declaration =>
10139 (1 => True, -- Defining_Identifier (Node1)
10140 2 => True, -- Interface_List (List2)
10141 3 => True, -- Protected_Definition (Node3)
10142 4 => False, -- unused
10143 5 => False), -- unused
10144
10145 N_Protected_Definition =>
10146 (1 => False, -- unused
10147 2 => True, -- Visible_Declarations (List2)
10148 3 => True, -- Private_Declarations (List3)
10149 4 => True, -- End_Label (Node4)
10150 5 => False), -- unused
10151
10152 N_Protected_Body =>
10153 (1 => True, -- Defining_Identifier (Node1)
10154 2 => True, -- Declarations (List2)
10155 3 => False, -- unused
10156 4 => True, -- End_Label (Node4)
10157 5 => False), -- Corresponding_Spec (Node5-Sem)
10158
10159 N_Entry_Declaration =>
10160 (1 => True, -- Defining_Identifier (Node1)
10161 2 => False, -- unused
10162 3 => True, -- Parameter_Specifications (List3)
10163 4 => True, -- Discrete_Subtype_Definition (Node4)
10164 5 => False), -- Corresponding_Body (Node5-Sem)
10165
10166 N_Accept_Statement =>
10167 (1 => True, -- Entry_Direct_Name (Node1)
10168 2 => True, -- Declarations (List2)
10169 3 => True, -- Parameter_Specifications (List3)
10170 4 => True, -- Handled_Statement_Sequence (Node4)
10171 5 => True), -- Entry_Index (Node5)
10172
10173 N_Entry_Body =>
10174 (1 => True, -- Defining_Identifier (Node1)
10175 2 => True, -- Declarations (List2)
10176 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10177 4 => True, -- Handled_Statement_Sequence (Node4)
10178 5 => True), -- Entry_Body_Formal_Part (Node5)
10179
10180 N_Entry_Body_Formal_Part =>
10181 (1 => True, -- Condition (Node1)
10182 2 => False, -- unused
10183 3 => True, -- Parameter_Specifications (List3)
10184 4 => True, -- Entry_Index_Specification (Node4)
10185 5 => False), -- unused
10186
10187 N_Entry_Index_Specification =>
10188 (1 => True, -- Defining_Identifier (Node1)
10189 2 => False, -- unused
10190 3 => False, -- unused
10191 4 => True, -- Discrete_Subtype_Definition (Node4)
10192 5 => False), -- unused
10193
10194 N_Entry_Call_Statement =>
10195 (1 => False, -- unused
10196 2 => True, -- Name (Node2)
10197 3 => True, -- Parameter_Associations (List3)
10198 4 => False, -- First_Named_Actual (Node4-Sem)
10199 5 => False), -- unused
10200
10201 N_Requeue_Statement =>
10202 (1 => False, -- unused
10203 2 => True, -- Name (Node2)
10204 3 => False, -- unused
10205 4 => False, -- unused
10206 5 => False), -- unused
10207
10208 N_Delay_Until_Statement =>
10209 (1 => False, -- unused
10210 2 => False, -- unused
10211 3 => True, -- Expression (Node3)
10212 4 => False, -- unused
10213 5 => False), -- unused
10214
10215 N_Delay_Relative_Statement =>
10216 (1 => False, -- unused
10217 2 => False, -- unused
10218 3 => True, -- Expression (Node3)
10219 4 => False, -- unused
10220 5 => False), -- unused
10221
10222 N_Selective_Accept =>
10223 (1 => True, -- Select_Alternatives (List1)
10224 2 => False, -- unused
10225 3 => False, -- unused
10226 4 => True, -- Else_Statements (List4)
10227 5 => False), -- unused
10228
10229 N_Accept_Alternative =>
10230 (1 => True, -- Condition (Node1)
10231 2 => True, -- Accept_Statement (Node2)
10232 3 => True, -- Statements (List3)
10233 4 => True, -- Pragmas_Before (List4)
10234 5 => False), -- Accept_Handler_Records (List5-Sem)
10235
10236 N_Delay_Alternative =>
10237 (1 => True, -- Condition (Node1)
10238 2 => True, -- Delay_Statement (Node2)
10239 3 => True, -- Statements (List3)
10240 4 => True, -- Pragmas_Before (List4)
10241 5 => False), -- unused
10242
10243 N_Terminate_Alternative =>
10244 (1 => True, -- Condition (Node1)
10245 2 => False, -- unused
10246 3 => False, -- unused
10247 4 => True, -- Pragmas_Before (List4)
10248 5 => True), -- Pragmas_After (List5)
10249
10250 N_Timed_Entry_Call =>
10251 (1 => True, -- Entry_Call_Alternative (Node1)
10252 2 => False, -- unused
10253 3 => False, -- unused
10254 4 => True, -- Delay_Alternative (Node4)
10255 5 => False), -- unused
10256
10257 N_Entry_Call_Alternative =>
10258 (1 => True, -- Entry_Call_Statement (Node1)
10259 2 => False, -- unused
10260 3 => True, -- Statements (List3)
10261 4 => True, -- Pragmas_Before (List4)
10262 5 => False), -- unused
10263
10264 N_Conditional_Entry_Call =>
10265 (1 => True, -- Entry_Call_Alternative (Node1)
10266 2 => False, -- unused
10267 3 => False, -- unused
10268 4 => True, -- Else_Statements (List4)
10269 5 => False), -- unused
10270
10271 N_Asynchronous_Select =>
10272 (1 => True, -- Triggering_Alternative (Node1)
10273 2 => True, -- Abortable_Part (Node2)
10274 3 => False, -- unused
10275 4 => False, -- unused
10276 5 => False), -- unused
10277
10278 N_Triggering_Alternative =>
10279 (1 => True, -- Triggering_Statement (Node1)
10280 2 => False, -- unused
10281 3 => True, -- Statements (List3)
10282 4 => True, -- Pragmas_Before (List4)
10283 5 => False), -- unused
10284
10285 N_Abortable_Part =>
10286 (1 => False, -- unused
10287 2 => False, -- unused
10288 3 => True, -- Statements (List3)
10289 4 => False, -- unused
10290 5 => False), -- unused
10291
10292 N_Abort_Statement =>
10293 (1 => False, -- unused
10294 2 => True, -- Names (List2)
10295 3 => False, -- unused
10296 4 => False, -- unused
10297 5 => False), -- unused
10298
10299 N_Compilation_Unit =>
10300 (1 => True, -- Context_Items (List1)
10301 2 => True, -- Unit (Node2)
10302 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
10303 4 => False, -- Library_Unit (Node4-Sem)
10304 5 => True), -- Aux_Decls_Node (Node5)
10305
10306 N_Compilation_Unit_Aux =>
10307 (1 => True, -- Actions (List1)
10308 2 => True, -- Declarations (List2)
10309 3 => False, -- unused
10310 4 => True, -- Config_Pragmas (List4)
10311 5 => True), -- Pragmas_After (List5)
10312
10313 N_With_Clause =>
10314 (1 => False, -- unused
10315 2 => True, -- Name (Node2)
10316 3 => False, -- unused
10317 4 => False, -- Library_Unit (Node4-Sem)
10318 5 => False), -- Corresponding_Spec (Node5-Sem)
10319
10320 N_Subprogram_Body_Stub =>
10321 (1 => True, -- Specification (Node1)
10322 2 => False, -- unused
10323 3 => False, -- unused
10324 4 => False, -- Library_Unit (Node4-Sem)
10325 5 => False), -- Corresponding_Body (Node5-Sem)
10326
10327 N_Package_Body_Stub =>
10328 (1 => True, -- Defining_Identifier (Node1)
10329 2 => False, -- unused
10330 3 => False, -- unused
10331 4 => False, -- Library_Unit (Node4-Sem)
10332 5 => False), -- Corresponding_Body (Node5-Sem)
10333
10334 N_Task_Body_Stub =>
10335 (1 => True, -- Defining_Identifier (Node1)
10336 2 => False, -- unused
10337 3 => False, -- unused
10338 4 => False, -- Library_Unit (Node4-Sem)
10339 5 => False), -- Corresponding_Body (Node5-Sem)
10340
10341 N_Protected_Body_Stub =>
10342 (1 => True, -- Defining_Identifier (Node1)
10343 2 => False, -- unused
10344 3 => False, -- unused
10345 4 => False, -- Library_Unit (Node4-Sem)
10346 5 => False), -- Corresponding_Body (Node5-Sem)
10347
10348 N_Subunit =>
10349 (1 => True, -- Proper_Body (Node1)
10350 2 => True, -- Name (Node2)
10351 3 => False, -- Corresponding_Stub (Node3-Sem)
10352 4 => False, -- unused
10353 5 => False), -- unused
10354
10355 N_Exception_Declaration =>
10356 (1 => True, -- Defining_Identifier (Node1)
10357 2 => False, -- unused
10358 3 => False, -- Expression (Node3-Sem)
10359 4 => False, -- unused
10360 5 => False), -- unused
10361
10362 N_Handled_Sequence_Of_Statements =>
10363 (1 => True, -- At_End_Proc (Node1)
10364 2 => False, -- First_Real_Statement (Node2-Sem)
10365 3 => True, -- Statements (List3)
10366 4 => True, -- End_Label (Node4)
10367 5 => True), -- Exception_Handlers (List5)
10368
10369 N_Exception_Handler =>
10370 (1 => False, -- Local_Raise_Statements (Elist1)
10371 2 => True, -- Choice_Parameter (Node2)
10372 3 => True, -- Statements (List3)
10373 4 => True, -- Exception_Choices (List4)
10374 5 => False), -- Exception_Label (Node5)
10375
10376 N_Raise_Statement =>
10377 (1 => False, -- unused
10378 2 => True, -- Name (Node2)
10379 3 => True, -- Expression (Node3)
10380 4 => False, -- unused
10381 5 => False), -- unused
10382
10383 N_Generic_Subprogram_Declaration =>
10384 (1 => True, -- Specification (Node1)
10385 2 => True, -- Generic_Formal_Declarations (List2)
10386 3 => False, -- unused
10387 4 => False, -- Parent_Spec (Node4-Sem)
10388 5 => False), -- Corresponding_Body (Node5-Sem)
10389
10390 N_Generic_Package_Declaration =>
10391 (1 => True, -- Specification (Node1)
10392 2 => True, -- Generic_Formal_Declarations (List2)
10393 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10394 4 => False, -- Parent_Spec (Node4-Sem)
10395 5 => False), -- Corresponding_Body (Node5-Sem)
10396
10397 N_Package_Instantiation =>
10398 (1 => True, -- Defining_Unit_Name (Node1)
10399 2 => True, -- Name (Node2)
10400 3 => True, -- Generic_Associations (List3)
10401 4 => False, -- Parent_Spec (Node4-Sem)
10402 5 => False), -- Instance_Spec (Node5-Sem)
10403
10404 N_Procedure_Instantiation =>
10405 (1 => True, -- Defining_Unit_Name (Node1)
10406 2 => True, -- Name (Node2)
10407 3 => True, -- Generic_Associations (List3)
10408 4 => False, -- Parent_Spec (Node4-Sem)
10409 5 => False), -- Instance_Spec (Node5-Sem)
10410
10411 N_Function_Instantiation =>
10412 (1 => True, -- Defining_Unit_Name (Node1)
10413 2 => True, -- Name (Node2)
10414 3 => True, -- Generic_Associations (List3)
10415 4 => False, -- Parent_Spec (Node4-Sem)
10416 5 => False), -- Instance_Spec (Node5-Sem)
10417
10418 N_Generic_Association =>
10419 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
10420 2 => True, -- Selector_Name (Node2)
10421 3 => False, -- unused
10422 4 => False, -- unused
10423 5 => False), -- unused
10424
10425 N_Formal_Object_Declaration =>
10426 (1 => True, -- Defining_Identifier (Node1)
10427 2 => False, -- unused
10428 3 => True, -- Access_Definition (Node3)
10429 4 => True, -- Subtype_Mark (Node4)
10430 5 => True), -- Default_Expression (Node5)
10431
10432 N_Formal_Type_Declaration =>
10433 (1 => True, -- Defining_Identifier (Node1)
10434 2 => False, -- unused
10435 3 => True, -- Formal_Type_Definition (Node3)
10436 4 => True, -- Discriminant_Specifications (List4)
10437 5 => False), -- unused
10438
10439 N_Formal_Private_Type_Definition =>
10440 (1 => False, -- unused
10441 2 => False, -- unused
10442 3 => False, -- unused
10443 4 => False, -- unused
10444 5 => False), -- unused
10445
10446 N_Formal_Derived_Type_Definition =>
10447 (1 => False, -- unused
10448 2 => True, -- Interface_List (List2)
10449 3 => False, -- unused
10450 4 => True, -- Subtype_Mark (Node4)
10451 5 => False), -- unused
10452
10453 N_Formal_Discrete_Type_Definition =>
10454 (1 => False, -- unused
10455 2 => False, -- unused
10456 3 => False, -- unused
10457 4 => False, -- unused
10458 5 => False), -- unused
10459
10460 N_Formal_Signed_Integer_Type_Definition =>
10461 (1 => False, -- unused
10462 2 => False, -- unused
10463 3 => False, -- unused
10464 4 => False, -- unused
10465 5 => False), -- unused
10466
10467 N_Formal_Modular_Type_Definition =>
10468 (1 => False, -- unused
10469 2 => False, -- unused
10470 3 => False, -- unused
10471 4 => False, -- unused
10472 5 => False), -- unused
10473
10474 N_Formal_Floating_Point_Definition =>
10475 (1 => False, -- unused
10476 2 => False, -- unused
10477 3 => False, -- unused
10478 4 => False, -- unused
10479 5 => False), -- unused
10480
10481 N_Formal_Ordinary_Fixed_Point_Definition =>
10482 (1 => False, -- unused
10483 2 => False, -- unused
10484 3 => False, -- unused
10485 4 => False, -- unused
10486 5 => False), -- unused
10487
10488 N_Formal_Decimal_Fixed_Point_Definition =>
10489 (1 => False, -- unused
10490 2 => False, -- unused
10491 3 => False, -- unused
10492 4 => False, -- unused
10493 5 => False), -- unused
10494
10495 N_Formal_Concrete_Subprogram_Declaration =>
10496 (1 => True, -- Specification (Node1)
10497 2 => True, -- Default_Name (Node2)
10498 3 => False, -- unused
10499 4 => False, -- unused
10500 5 => False), -- unused
10501
10502 N_Formal_Abstract_Subprogram_Declaration =>
10503 (1 => True, -- Specification (Node1)
10504 2 => True, -- Default_Name (Node2)
10505 3 => False, -- unused
10506 4 => False, -- unused
10507 5 => False), -- unused
10508
10509 N_Formal_Package_Declaration =>
10510 (1 => True, -- Defining_Identifier (Node1)
10511 2 => True, -- Name (Node2)
10512 3 => True, -- Generic_Associations (List3)
10513 4 => False, -- unused
10514 5 => False), -- Instance_Spec (Node5-Sem)
10515
10516 N_Attribute_Definition_Clause =>
10517 (1 => True, -- Chars (Name1)
10518 2 => True, -- Name (Node2)
10519 3 => True, -- Expression (Node3)
10520 4 => False, -- unused
10521 5 => False), -- Next_Rep_Item (Node5-Sem)
10522
10523 N_Enumeration_Representation_Clause =>
10524 (1 => True, -- Identifier (Node1)
10525 2 => False, -- unused
10526 3 => True, -- Array_Aggregate (Node3)
10527 4 => False, -- unused
10528 5 => False), -- Next_Rep_Item (Node5-Sem)
10529
10530 N_Record_Representation_Clause =>
10531 (1 => True, -- Identifier (Node1)
10532 2 => True, -- Mod_Clause (Node2)
10533 3 => True, -- Component_Clauses (List3)
10534 4 => False, -- unused
10535 5 => False), -- Next_Rep_Item (Node5-Sem)
10536
10537 N_Component_Clause =>
10538 (1 => True, -- Component_Name (Node1)
10539 2 => True, -- Position (Node2)
10540 3 => True, -- First_Bit (Node3)
10541 4 => True, -- Last_Bit (Node4)
10542 5 => False), -- unused
10543
10544 N_Code_Statement =>
10545 (1 => False, -- unused
10546 2 => False, -- unused
10547 3 => True, -- Expression (Node3)
10548 4 => False, -- unused
10549 5 => False), -- unused
10550
10551 N_Op_Rotate_Left =>
10552 (1 => True, -- Chars (Name1)
10553 2 => True, -- Left_Opnd (Node2)
10554 3 => True, -- Right_Opnd (Node3)
10555 4 => False, -- Entity (Node4-Sem)
10556 5 => False), -- Etype (Node5-Sem)
10557
10558 N_Op_Rotate_Right =>
10559 (1 => True, -- Chars (Name1)
10560 2 => True, -- Left_Opnd (Node2)
10561 3 => True, -- Right_Opnd (Node3)
10562 4 => False, -- Entity (Node4-Sem)
10563 5 => False), -- Etype (Node5-Sem)
10564
10565 N_Op_Shift_Left =>
10566 (1 => True, -- Chars (Name1)
10567 2 => True, -- Left_Opnd (Node2)
10568 3 => True, -- Right_Opnd (Node3)
10569 4 => False, -- Entity (Node4-Sem)
10570 5 => False), -- Etype (Node5-Sem)
10571
10572 N_Op_Shift_Right_Arithmetic =>
10573 (1 => True, -- Chars (Name1)
10574 2 => True, -- Left_Opnd (Node2)
10575 3 => True, -- Right_Opnd (Node3)
10576 4 => False, -- Entity (Node4-Sem)
10577 5 => False), -- Etype (Node5-Sem)
10578
10579 N_Op_Shift_Right =>
10580 (1 => True, -- Chars (Name1)
10581 2 => True, -- Left_Opnd (Node2)
10582 3 => True, -- Right_Opnd (Node3)
10583 4 => False, -- Entity (Node4-Sem)
10584 5 => False), -- Etype (Node5-Sem)
10585
10586 N_Delta_Constraint =>
10587 (1 => False, -- unused
10588 2 => False, -- unused
10589 3 => True, -- Delta_Expression (Node3)
10590 4 => True, -- Range_Constraint (Node4)
10591 5 => False), -- unused
10592
10593 N_At_Clause =>
10594 (1 => True, -- Identifier (Node1)
10595 2 => False, -- unused
10596 3 => True, -- Expression (Node3)
10597 4 => False, -- unused
10598 5 => False), -- unused
10599
10600 N_Mod_Clause =>
10601 (1 => False, -- unused
10602 2 => False, -- unused
10603 3 => True, -- Expression (Node3)
10604 4 => True, -- Pragmas_Before (List4)
10605 5 => False), -- unused
10606
10607 N_Conditional_Expression =>
10608 (1 => True, -- Expressions (List1)
10609 2 => False, -- Then_Actions (List2-Sem)
10610 3 => False, -- Else_Actions (List3-Sem)
10611 4 => False, -- unused
10612 5 => False), -- Etype (Node5-Sem)
10613
10614 N_Expanded_Name =>
10615 (1 => True, -- Chars (Name1)
10616 2 => True, -- Selector_Name (Node2)
10617 3 => True, -- Prefix (Node3)
10618 4 => False, -- Entity (Node4-Sem)
10619 5 => False), -- Etype (Node5-Sem)
10620
10621 N_Free_Statement =>
10622 (1 => False, -- Storage_Pool (Node1-Sem)
10623 2 => False, -- Procedure_To_Call (Node2-Sem)
10624 3 => True, -- Expression (Node3)
10625 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10626 5 => False), -- unused
10627
10628 N_Freeze_Entity =>
10629 (1 => True, -- Actions (List1)
10630 2 => False, -- Access_Types_To_Process (Elist2-Sem)
10631 3 => False, -- TSS_Elist (Elist3-Sem)
10632 4 => False, -- Entity (Node4-Sem)
10633 5 => False), -- First_Subtype_Link (Node5-Sem)
10634
10635 N_Implicit_Label_Declaration =>
10636 (1 => True, -- Defining_Identifier (Node1)
10637 2 => False, -- Label_Construct (Node2-Sem)
10638 3 => False, -- unused
10639 4 => False, -- unused
10640 5 => False), -- unused
10641
10642 N_Itype_Reference =>
10643 (1 => False, -- Itype (Node1-Sem)
10644 2 => False, -- unused
10645 3 => False, -- unused
10646 4 => False, -- unused
10647 5 => False), -- unused
10648
10649 N_Raise_Constraint_Error =>
10650 (1 => True, -- Condition (Node1)
10651 2 => False, -- unused
10652 3 => True, -- Reason (Uint3)
10653 4 => False, -- unused
10654 5 => False), -- Etype (Node5-Sem)
10655
10656 N_Raise_Program_Error =>
10657 (1 => True, -- Condition (Node1)
10658 2 => False, -- unused
10659 3 => True, -- Reason (Uint3)
10660 4 => False, -- unused
10661 5 => False), -- Etype (Node5-Sem)
10662
10663 N_Raise_Storage_Error =>
10664 (1 => True, -- Condition (Node1)
10665 2 => False, -- unused
10666 3 => True, -- Reason (Uint3)
10667 4 => False, -- unused
10668 5 => False), -- Etype (Node5-Sem)
10669
10670 N_Push_Constraint_Error_Label =>
10671 (1 => False, -- unused
10672 2 => False, -- unused
10673 3 => False, -- unused
10674 4 => False, -- unused
10675 5 => False), -- unused
10676
10677 N_Push_Program_Error_Label =>
10678 (1 => False, -- Exception_Label
10679 2 => False, -- unused
10680 3 => False, -- unused
10681 4 => False, -- unused
10682 5 => False), -- Exception_Label
10683
10684 N_Push_Storage_Error_Label =>
10685 (1 => False, -- Exception_Label
10686 2 => False, -- unused
10687 3 => False, -- unused
10688 4 => False, -- unused
10689 5 => False), -- Exception_Label
10690
10691 N_Pop_Constraint_Error_Label =>
10692 (1 => False, -- unused
10693 2 => False, -- unused
10694 3 => False, -- unused
10695 4 => False, -- unused
10696 5 => False), -- unused
10697
10698 N_Pop_Program_Error_Label =>
10699 (1 => False, -- unused
10700 2 => False, -- unused
10701 3 => False, -- unused
10702 4 => False, -- unused
10703 5 => False), -- unused
10704
10705 N_Pop_Storage_Error_Label =>
10706 (1 => False, -- unused
10707 2 => False, -- unused
10708 3 => False, -- unused
10709 4 => False, -- unused
10710 5 => False), -- unused
10711
10712 N_Reference =>
10713 (1 => False, -- unused
10714 2 => False, -- unused
10715 3 => True, -- Prefix (Node3)
10716 4 => False, -- unused
10717 5 => False), -- Etype (Node5-Sem)
10718
10719 N_Subprogram_Info =>
10720 (1 => True, -- Identifier (Node1)
10721 2 => False, -- unused
10722 3 => False, -- unused
10723 4 => False, -- unused
10724 5 => False), -- Etype (Node5-Sem)
10725
10726 N_Unchecked_Expression =>
10727 (1 => False, -- unused
10728 2 => False, -- unused
10729 3 => True, -- Expression (Node3)
10730 4 => False, -- unused
10731 5 => False), -- Etype (Node5-Sem)
10732
10733 N_Unchecked_Type_Conversion =>
10734 (1 => False, -- unused
10735 2 => False, -- unused
10736 3 => True, -- Expression (Node3)
10737 4 => True, -- Subtype_Mark (Node4)
10738 5 => False), -- Etype (Node5-Sem)
10739
10740 N_Validate_Unchecked_Conversion =>
10741 (1 => False, -- Source_Type (Node1-Sem)
10742 2 => False, -- Target_Type (Node2-Sem)
10743 3 => False, -- unused
10744 4 => False, -- unused
10745 5 => False), -- unused
10746
10747 -- End of inserted output from makeisf program
10748
10749 -- Entries for Empty, Error and Unused. Even thought these have a Chars
10750 -- field for debugging purposes, they are not really syntactic fields, so
10751 -- we mark all fields as unused.
10752
10753 N_Empty =>
10754 (1 => False, -- unused
10755 2 => False, -- unused
10756 3 => False, -- unused
10757 4 => False, -- unused
10758 5 => False), -- unused
10759
10760 N_Error =>
10761 (1 => False, -- unused
10762 2 => False, -- unused
10763 3 => False, -- unused
10764 4 => False, -- unused
10765 5 => False), -- unused
10766
10767 N_Unused_At_Start =>
10768 (1 => False, -- unused
10769 2 => False, -- unused
10770 3 => False, -- unused
10771 4 => False, -- unused
10772 5 => False), -- unused
10773
10774 N_Unused_At_End =>
10775 (1 => False, -- unused
10776 2 => False, -- unused
10777 3 => False, -- unused
10778 4 => False, -- unused
10779 5 => False)); -- unused
10780
10781 --------------------
10782 -- Inline Pragmas --
10783 --------------------
10784
10785 pragma Inline (ABE_Is_Certain);
10786 pragma Inline (Abort_Present);
10787 pragma Inline (Abortable_Part);
10788 pragma Inline (Abstract_Present);
10789 pragma Inline (Accept_Handler_Records);
10790 pragma Inline (Accept_Statement);
10791 pragma Inline (Access_Definition);
10792 pragma Inline (Access_To_Subprogram_Definition);
10793 pragma Inline (Access_Types_To_Process);
10794 pragma Inline (Actions);
10795 pragma Inline (Activation_Chain_Entity);
10796 pragma Inline (Acts_As_Spec);
10797 pragma Inline (Actual_Designated_Subtype);
10798 pragma Inline (Address_Warning_Posted);
10799 pragma Inline (Aggregate_Bounds);
10800 pragma Inline (Aliased_Present);
10801 pragma Inline (All_Others);
10802 pragma Inline (All_Present);
10803 pragma Inline (Alternatives);
10804 pragma Inline (Ancestor_Part);
10805 pragma Inline (Array_Aggregate);
10806 pragma Inline (Assignment_OK);
10807 pragma Inline (Associated_Node);
10808 pragma Inline (At_End_Proc);
10809 pragma Inline (Attribute_Name);
10810 pragma Inline (Aux_Decls_Node);
10811 pragma Inline (Backwards_OK);
10812 pragma Inline (Bad_Is_Detected);
10813 pragma Inline (Body_To_Inline);
10814 pragma Inline (Body_Required);
10815 pragma Inline (By_Ref);
10816 pragma Inline (Box_Present);
10817 pragma Inline (Char_Literal_Value);
10818 pragma Inline (Chars);
10819 pragma Inline (Check_Address_Alignment);
10820 pragma Inline (Choice_Parameter);
10821 pragma Inline (Choices);
10822 pragma Inline (Coextensions);
10823 pragma Inline (Comes_From_Extended_Return_Statement);
10824 pragma Inline (Compile_Time_Known_Aggregate);
10825 pragma Inline (Component_Associations);
10826 pragma Inline (Component_Clauses);
10827 pragma Inline (Component_Definition);
10828 pragma Inline (Component_Items);
10829 pragma Inline (Component_List);
10830 pragma Inline (Component_Name);
10831 pragma Inline (Condition);
10832 pragma Inline (Condition_Actions);
10833 pragma Inline (Config_Pragmas);
10834 pragma Inline (Constant_Present);
10835 pragma Inline (Constraint);
10836 pragma Inline (Constraints);
10837 pragma Inline (Context_Installed);
10838 pragma Inline (Context_Items);
10839 pragma Inline (Controlling_Argument);
10840 pragma Inline (Conversion_OK);
10841 pragma Inline (Corresponding_Body);
10842 pragma Inline (Corresponding_Formal_Spec);
10843 pragma Inline (Corresponding_Generic_Association);
10844 pragma Inline (Corresponding_Integer_Value);
10845 pragma Inline (Corresponding_Spec);
10846 pragma Inline (Corresponding_Stub);
10847 pragma Inline (Dcheck_Function);
10848 pragma Inline (Debug_Statement);
10849 pragma Inline (Declarations);
10850 pragma Inline (Default_Expression);
10851 pragma Inline (Default_Name);
10852 pragma Inline (Defining_Identifier);
10853 pragma Inline (Defining_Unit_Name);
10854 pragma Inline (Delay_Alternative);
10855 pragma Inline (Delay_Statement);
10856 pragma Inline (Delta_Expression);
10857 pragma Inline (Digits_Expression);
10858 pragma Inline (Discr_Check_Funcs_Built);
10859 pragma Inline (Discrete_Choices);
10860 pragma Inline (Discrete_Range);
10861 pragma Inline (Discrete_Subtype_Definition);
10862 pragma Inline (Discrete_Subtype_Definitions);
10863 pragma Inline (Discriminant_Specifications);
10864 pragma Inline (Discriminant_Type);
10865 pragma Inline (Do_Accessibility_Check);
10866 pragma Inline (Do_Discriminant_Check);
10867 pragma Inline (Do_Length_Check);
10868 pragma Inline (Do_Division_Check);
10869 pragma Inline (Do_Overflow_Check);
10870 pragma Inline (Do_Range_Check);
10871 pragma Inline (Do_Storage_Check);
10872 pragma Inline (Do_Tag_Check);
10873 pragma Inline (Elaborate_Present);
10874 pragma Inline (Elaborate_All_Desirable);
10875 pragma Inline (Elaborate_All_Present);
10876 pragma Inline (Elaborate_Desirable);
10877 pragma Inline (Elaboration_Boolean);
10878 pragma Inline (Else_Actions);
10879 pragma Inline (Else_Statements);
10880 pragma Inline (Elsif_Parts);
10881 pragma Inline (Enclosing_Variant);
10882 pragma Inline (End_Label);
10883 pragma Inline (End_Span);
10884 pragma Inline (Entity);
10885 pragma Inline (Entity_Or_Associated_Node);
10886 pragma Inline (Entry_Body_Formal_Part);
10887 pragma Inline (Entry_Call_Alternative);
10888 pragma Inline (Entry_Call_Statement);
10889 pragma Inline (Entry_Direct_Name);
10890 pragma Inline (Entry_Index);
10891 pragma Inline (Entry_Index_Specification);
10892 pragma Inline (Etype);
10893 pragma Inline (Exception_Choices);
10894 pragma Inline (Exception_Handlers);
10895 pragma Inline (Exception_Junk);
10896 pragma Inline (Exception_Label);
10897 pragma Inline (Expansion_Delayed);
10898 pragma Inline (Explicit_Actual_Parameter);
10899 pragma Inline (Explicit_Generic_Actual_Parameter);
10900 pragma Inline (Expression);
10901 pragma Inline (Expressions);
10902 pragma Inline (First_Bit);
10903 pragma Inline (First_Inlined_Subprogram);
10904 pragma Inline (First_Name);
10905 pragma Inline (First_Named_Actual);
10906 pragma Inline (First_Real_Statement);
10907 pragma Inline (First_Subtype_Link);
10908 pragma Inline (Float_Truncate);
10909 pragma Inline (Formal_Type_Definition);
10910 pragma Inline (Forwards_OK);
10911 pragma Inline (From_At_Mod);
10912 pragma Inline (From_Default);
10913 pragma Inline (Generic_Associations);
10914 pragma Inline (Generic_Formal_Declarations);
10915 pragma Inline (Generic_Parent);
10916 pragma Inline (Generic_Parent_Type);
10917 pragma Inline (Handled_Statement_Sequence);
10918 pragma Inline (Handler_List_Entry);
10919 pragma Inline (Has_Created_Identifier);
10920 pragma Inline (Has_Dynamic_Length_Check);
10921 pragma Inline (Has_Dynamic_Range_Check);
10922 pragma Inline (Has_Init_Expression);
10923 pragma Inline (Has_Local_Raise);
10924 pragma Inline (Has_Self_Reference);
10925 pragma Inline (Has_No_Elaboration_Code);
10926 pragma Inline (Has_Priority_Pragma);
10927 pragma Inline (Has_Private_View);
10928 pragma Inline (Has_Storage_Size_Pragma);
10929 pragma Inline (Has_Task_Info_Pragma);
10930 pragma Inline (Has_Task_Name_Pragma);
10931 pragma Inline (Has_Wide_Character);
10932 pragma Inline (Hidden_By_Use_Clause);
10933 pragma Inline (High_Bound);
10934 pragma Inline (Identifier);
10935 pragma Inline (Implicit_With);
10936 pragma Inline (Interface_List);
10937 pragma Inline (Interface_Present);
10938 pragma Inline (Includes_Infinities);
10939 pragma Inline (In_Present);
10940 pragma Inline (Instance_Spec);
10941 pragma Inline (Intval);
10942 pragma Inline (Is_Asynchronous_Call_Block);
10943 pragma Inline (Is_Component_Left_Opnd);
10944 pragma Inline (Is_Component_Right_Opnd);
10945 pragma Inline (Is_Controlling_Actual);
10946 pragma Inline (Is_Dynamic_Coextension);
10947 pragma Inline (Is_Entry_Barrier_Function);
10948 pragma Inline (Is_Expanded_Build_In_Place_Call);
10949 pragma Inline (Is_Folded_In_Parser);
10950 pragma Inline (Is_In_Discriminant_Check);
10951 pragma Inline (Is_Machine_Number);
10952 pragma Inline (Is_Null_Loop);
10953 pragma Inline (Is_Overloaded);
10954 pragma Inline (Is_Power_Of_2_For_Shift);
10955 pragma Inline (Is_Protected_Subprogram_Body);
10956 pragma Inline (Is_Static_Coextension);
10957 pragma Inline (Is_Static_Expression);
10958 pragma Inline (Is_Subprogram_Descriptor);
10959 pragma Inline (Is_Task_Allocation_Block);
10960 pragma Inline (Is_Task_Master);
10961 pragma Inline (Iteration_Scheme);
10962 pragma Inline (Itype);
10963 pragma Inline (Kill_Range_Check);
10964 pragma Inline (Last_Bit);
10965 pragma Inline (Last_Name);
10966 pragma Inline (Library_Unit);
10967 pragma Inline (Label_Construct);
10968 pragma Inline (Left_Opnd);
10969 pragma Inline (Limited_View_Installed);
10970 pragma Inline (Limited_Present);
10971 pragma Inline (Literals);
10972 pragma Inline (Local_Raise_Not_OK);
10973 pragma Inline (Local_Raise_Statements);
10974 pragma Inline (Loop_Actions);
10975 pragma Inline (Loop_Parameter_Specification);
10976 pragma Inline (Low_Bound);
10977 pragma Inline (Mod_Clause);
10978 pragma Inline (More_Ids);
10979 pragma Inline (Must_Be_Byte_Aligned);
10980 pragma Inline (Must_Not_Freeze);
10981 pragma Inline (Must_Not_Override);
10982 pragma Inline (Must_Override);
10983 pragma Inline (Name);
10984 pragma Inline (Names);
10985 pragma Inline (Next_Entity);
10986 pragma Inline (Next_Named_Actual);
10987 pragma Inline (Next_Rep_Item);
10988 pragma Inline (Next_Use_Clause);
10989 pragma Inline (No_Ctrl_Actions);
10990 pragma Inline (No_Elaboration_Check);
10991 pragma Inline (No_Entities_Ref_In_Spec);
10992 pragma Inline (No_Initialization);
10993 pragma Inline (No_Truncation);
10994 pragma Inline (Null_Present);
10995 pragma Inline (Null_Exclusion_Present);
10996 pragma Inline (Null_Record_Present);
10997 pragma Inline (Object_Definition);
10998 pragma Inline (Original_Discriminant);
10999 pragma Inline (Original_Entity);
11000 pragma Inline (Others_Discrete_Choices);
11001 pragma Inline (Out_Present);
11002 pragma Inline (Parameter_Associations);
11003 pragma Inline (Parameter_Specifications);
11004 pragma Inline (Parameter_List_Truncated);
11005 pragma Inline (Parameter_Type);
11006 pragma Inline (Parent_Spec);
11007 pragma Inline (Position);
11008 pragma Inline (Pragma_Argument_Associations);
11009 pragma Inline (Pragma_Identifier);
11010 pragma Inline (Pragmas_After);
11011 pragma Inline (Pragmas_Before);
11012 pragma Inline (Prefix);
11013 pragma Inline (Present_Expr);
11014 pragma Inline (Prev_Ids);
11015 pragma Inline (Print_In_Hex);
11016 pragma Inline (Private_Declarations);
11017 pragma Inline (Private_Present);
11018 pragma Inline (Procedure_To_Call);
11019 pragma Inline (Proper_Body);
11020 pragma Inline (Protected_Definition);
11021 pragma Inline (Protected_Present);
11022 pragma Inline (Raises_Constraint_Error);
11023 pragma Inline (Range_Constraint);
11024 pragma Inline (Range_Expression);
11025 pragma Inline (Real_Range_Specification);
11026 pragma Inline (Realval);
11027 pragma Inline (Reason);
11028 pragma Inline (Record_Extension_Part);
11029 pragma Inline (Redundant_Use);
11030 pragma Inline (Renaming_Exception);
11031 pragma Inline (Result_Definition);
11032 pragma Inline (Return_Object_Declarations);
11033 pragma Inline (Return_Statement_Entity);
11034 pragma Inline (Reverse_Present);
11035 pragma Inline (Right_Opnd);
11036 pragma Inline (Rounded_Result);
11037 pragma Inline (Scope);
11038 pragma Inline (Select_Alternatives);
11039 pragma Inline (Selector_Name);
11040 pragma Inline (Selector_Names);
11041 pragma Inline (Shift_Count_OK);
11042 pragma Inline (Source_Type);
11043 pragma Inline (Specification);
11044 pragma Inline (Statements);
11045 pragma Inline (Static_Processing_OK);
11046 pragma Inline (Storage_Pool);
11047 pragma Inline (Strval);
11048 pragma Inline (Subtype_Indication);
11049 pragma Inline (Subtype_Mark);
11050 pragma Inline (Subtype_Marks);
11051 pragma Inline (Synchronized_Present);
11052 pragma Inline (Tagged_Present);
11053 pragma Inline (Target_Type);
11054 pragma Inline (Task_Definition);
11055 pragma Inline (Task_Present);
11056 pragma Inline (Then_Actions);
11057 pragma Inline (Then_Statements);
11058 pragma Inline (Triggering_Alternative);
11059 pragma Inline (Triggering_Statement);
11060 pragma Inline (Treat_Fixed_As_Integer);
11061 pragma Inline (TSS_Elist);
11062 pragma Inline (Type_Definition);
11063 pragma Inline (Unit);
11064 pragma Inline (Unknown_Discriminants_Present);
11065 pragma Inline (Unreferenced_In_Spec);
11066 pragma Inline (Variant_Part);
11067 pragma Inline (Variants);
11068 pragma Inline (Visible_Declarations);
11069 pragma Inline (Was_Originally_Stub);
11070 pragma Inline (Zero_Cost_Handling);
11071
11072 pragma Inline (Set_ABE_Is_Certain);
11073 pragma Inline (Set_Abort_Present);
11074 pragma Inline (Set_Abortable_Part);
11075 pragma Inline (Set_Abstract_Present);
11076 pragma Inline (Set_Accept_Handler_Records);
11077 pragma Inline (Set_Accept_Statement);
11078 pragma Inline (Set_Access_Definition);
11079 pragma Inline (Set_Access_To_Subprogram_Definition);
11080 pragma Inline (Set_Access_Types_To_Process);
11081 pragma Inline (Set_Actions);
11082 pragma Inline (Set_Activation_Chain_Entity);
11083 pragma Inline (Set_Acts_As_Spec);
11084 pragma Inline (Set_Actual_Designated_Subtype);
11085 pragma Inline (Set_Address_Warning_Posted);
11086 pragma Inline (Set_Aggregate_Bounds);
11087 pragma Inline (Set_Aliased_Present);
11088 pragma Inline (Set_All_Others);
11089 pragma Inline (Set_All_Present);
11090 pragma Inline (Set_Alternatives);
11091 pragma Inline (Set_Ancestor_Part);
11092 pragma Inline (Set_Array_Aggregate);
11093 pragma Inline (Set_Assignment_OK);
11094 pragma Inline (Set_Associated_Node);
11095 pragma Inline (Set_At_End_Proc);
11096 pragma Inline (Set_Attribute_Name);
11097 pragma Inline (Set_Aux_Decls_Node);
11098 pragma Inline (Set_Backwards_OK);
11099 pragma Inline (Set_Bad_Is_Detected);
11100 pragma Inline (Set_Body_To_Inline);
11101 pragma Inline (Set_Body_Required);
11102 pragma Inline (Set_By_Ref);
11103 pragma Inline (Set_Box_Present);
11104 pragma Inline (Set_Char_Literal_Value);
11105 pragma Inline (Set_Chars);
11106 pragma Inline (Set_Check_Address_Alignment);
11107 pragma Inline (Set_Choice_Parameter);
11108 pragma Inline (Set_Choices);
11109 pragma Inline (Set_Coextensions);
11110 pragma Inline (Set_Comes_From_Extended_Return_Statement);
11111 pragma Inline (Set_Compile_Time_Known_Aggregate);
11112 pragma Inline (Set_Component_Associations);
11113 pragma Inline (Set_Component_Clauses);
11114 pragma Inline (Set_Component_Definition);
11115 pragma Inline (Set_Component_Items);
11116 pragma Inline (Set_Component_List);
11117 pragma Inline (Set_Component_Name);
11118 pragma Inline (Set_Condition);
11119 pragma Inline (Set_Condition_Actions);
11120 pragma Inline (Set_Config_Pragmas);
11121 pragma Inline (Set_Constant_Present);
11122 pragma Inline (Set_Constraint);
11123 pragma Inline (Set_Constraints);
11124 pragma Inline (Set_Context_Installed);
11125 pragma Inline (Set_Context_Items);
11126 pragma Inline (Set_Controlling_Argument);
11127 pragma Inline (Set_Conversion_OK);
11128 pragma Inline (Set_Corresponding_Body);
11129 pragma Inline (Set_Corresponding_Formal_Spec);
11130 pragma Inline (Set_Corresponding_Generic_Association);
11131 pragma Inline (Set_Corresponding_Integer_Value);
11132 pragma Inline (Set_Corresponding_Spec);
11133 pragma Inline (Set_Corresponding_Stub);
11134 pragma Inline (Set_Dcheck_Function);
11135 pragma Inline (Set_Debug_Statement);
11136 pragma Inline (Set_Declarations);
11137 pragma Inline (Set_Default_Expression);
11138 pragma Inline (Set_Default_Name);
11139 pragma Inline (Set_Defining_Identifier);
11140 pragma Inline (Set_Defining_Unit_Name);
11141 pragma Inline (Set_Delay_Alternative);
11142 pragma Inline (Set_Delay_Statement);
11143 pragma Inline (Set_Delta_Expression);
11144 pragma Inline (Set_Digits_Expression);
11145 pragma Inline (Set_Discr_Check_Funcs_Built);
11146 pragma Inline (Set_Discrete_Choices);
11147 pragma Inline (Set_Discrete_Range);
11148 pragma Inline (Set_Discrete_Subtype_Definition);
11149 pragma Inline (Set_Discrete_Subtype_Definitions);
11150 pragma Inline (Set_Discriminant_Specifications);
11151 pragma Inline (Set_Discriminant_Type);
11152 pragma Inline (Set_Do_Accessibility_Check);
11153 pragma Inline (Set_Do_Discriminant_Check);
11154 pragma Inline (Set_Do_Length_Check);
11155 pragma Inline (Set_Do_Division_Check);
11156 pragma Inline (Set_Do_Overflow_Check);
11157 pragma Inline (Set_Do_Range_Check);
11158 pragma Inline (Set_Do_Storage_Check);
11159 pragma Inline (Set_Do_Tag_Check);
11160 pragma Inline (Set_Elaborate_Present);
11161 pragma Inline (Set_Elaborate_All_Desirable);
11162 pragma Inline (Set_Elaborate_All_Present);
11163 pragma Inline (Set_Elaborate_Desirable);
11164 pragma Inline (Set_Elaboration_Boolean);
11165 pragma Inline (Set_Else_Actions);
11166 pragma Inline (Set_Else_Statements);
11167 pragma Inline (Set_Elsif_Parts);
11168 pragma Inline (Set_Enclosing_Variant);
11169 pragma Inline (Set_End_Label);
11170 pragma Inline (Set_End_Span);
11171 pragma Inline (Set_Entity);
11172 pragma Inline (Set_Entry_Body_Formal_Part);
11173 pragma Inline (Set_Entry_Call_Alternative);
11174 pragma Inline (Set_Entry_Call_Statement);
11175 pragma Inline (Set_Entry_Direct_Name);
11176 pragma Inline (Set_Entry_Index);
11177 pragma Inline (Set_Entry_Index_Specification);
11178 pragma Inline (Set_Etype);
11179 pragma Inline (Set_Exception_Choices);
11180 pragma Inline (Set_Exception_Handlers);
11181 pragma Inline (Set_Exception_Junk);
11182 pragma Inline (Set_Exception_Label);
11183 pragma Inline (Set_Expansion_Delayed);
11184 pragma Inline (Set_Explicit_Actual_Parameter);
11185 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
11186 pragma Inline (Set_Expression);
11187 pragma Inline (Set_Expressions);
11188 pragma Inline (Set_First_Bit);
11189 pragma Inline (Set_First_Inlined_Subprogram);
11190 pragma Inline (Set_First_Name);
11191 pragma Inline (Set_First_Named_Actual);
11192 pragma Inline (Set_First_Real_Statement);
11193 pragma Inline (Set_First_Subtype_Link);
11194 pragma Inline (Set_Float_Truncate);
11195 pragma Inline (Set_Formal_Type_Definition);
11196 pragma Inline (Set_Forwards_OK);
11197 pragma Inline (Set_From_At_Mod);
11198 pragma Inline (Set_From_Default);
11199 pragma Inline (Set_Generic_Associations);
11200 pragma Inline (Set_Generic_Formal_Declarations);
11201 pragma Inline (Set_Generic_Parent);
11202 pragma Inline (Set_Generic_Parent_Type);
11203 pragma Inline (Set_Handled_Statement_Sequence);
11204 pragma Inline (Set_Handler_List_Entry);
11205 pragma Inline (Set_Has_Created_Identifier);
11206 pragma Inline (Set_Has_Dynamic_Length_Check);
11207 pragma Inline (Set_Has_Init_Expression);
11208 pragma Inline (Set_Has_Local_Raise);
11209 pragma Inline (Set_Has_Dynamic_Range_Check);
11210 pragma Inline (Set_Has_No_Elaboration_Code);
11211 pragma Inline (Set_Has_Priority_Pragma);
11212 pragma Inline (Set_Has_Private_View);
11213 pragma Inline (Set_Has_Storage_Size_Pragma);
11214 pragma Inline (Set_Has_Task_Info_Pragma);
11215 pragma Inline (Set_Has_Task_Name_Pragma);
11216 pragma Inline (Set_Has_Wide_Character);
11217 pragma Inline (Set_Hidden_By_Use_Clause);
11218 pragma Inline (Set_High_Bound);
11219 pragma Inline (Set_Identifier);
11220 pragma Inline (Set_Implicit_With);
11221 pragma Inline (Set_Includes_Infinities);
11222 pragma Inline (Set_Interface_List);
11223 pragma Inline (Set_Interface_Present);
11224 pragma Inline (Set_In_Present);
11225 pragma Inline (Set_Instance_Spec);
11226 pragma Inline (Set_Intval);
11227 pragma Inline (Set_Is_Asynchronous_Call_Block);
11228 pragma Inline (Set_Is_Component_Left_Opnd);
11229 pragma Inline (Set_Is_Component_Right_Opnd);
11230 pragma Inline (Set_Is_Controlling_Actual);
11231 pragma Inline (Set_Is_Dynamic_Coextension);
11232 pragma Inline (Set_Is_Entry_Barrier_Function);
11233 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
11234 pragma Inline (Set_Is_Folded_In_Parser);
11235 pragma Inline (Set_Is_In_Discriminant_Check);
11236 pragma Inline (Set_Is_Machine_Number);
11237 pragma Inline (Set_Is_Null_Loop);
11238 pragma Inline (Set_Is_Overloaded);
11239 pragma Inline (Set_Is_Power_Of_2_For_Shift);
11240 pragma Inline (Set_Is_Protected_Subprogram_Body);
11241 pragma Inline (Set_Has_Self_Reference);
11242 pragma Inline (Set_Is_Static_Coextension);
11243 pragma Inline (Set_Is_Static_Expression);
11244 pragma Inline (Set_Is_Subprogram_Descriptor);
11245 pragma Inline (Set_Is_Task_Allocation_Block);
11246 pragma Inline (Set_Is_Task_Master);
11247 pragma Inline (Set_Iteration_Scheme);
11248 pragma Inline (Set_Itype);
11249 pragma Inline (Set_Kill_Range_Check);
11250 pragma Inline (Set_Last_Bit);
11251 pragma Inline (Set_Last_Name);
11252 pragma Inline (Set_Library_Unit);
11253 pragma Inline (Set_Label_Construct);
11254 pragma Inline (Set_Left_Opnd);
11255 pragma Inline (Set_Limited_View_Installed);
11256 pragma Inline (Set_Limited_Present);
11257 pragma Inline (Set_Literals);
11258 pragma Inline (Set_Local_Raise_Not_OK);
11259 pragma Inline (Set_Local_Raise_Statements);
11260 pragma Inline (Set_Loop_Actions);
11261 pragma Inline (Set_Loop_Parameter_Specification);
11262 pragma Inline (Set_Low_Bound);
11263 pragma Inline (Set_Mod_Clause);
11264 pragma Inline (Set_More_Ids);
11265 pragma Inline (Set_Must_Be_Byte_Aligned);
11266 pragma Inline (Set_Must_Not_Freeze);
11267 pragma Inline (Set_Must_Not_Override);
11268 pragma Inline (Set_Must_Override);
11269 pragma Inline (Set_Name);
11270 pragma Inline (Set_Names);
11271 pragma Inline (Set_Next_Entity);
11272 pragma Inline (Set_Next_Named_Actual);
11273 pragma Inline (Set_Next_Use_Clause);
11274 pragma Inline (Set_No_Ctrl_Actions);
11275 pragma Inline (Set_No_Elaboration_Check);
11276 pragma Inline (Set_No_Entities_Ref_In_Spec);
11277 pragma Inline (Set_No_Initialization);
11278 pragma Inline (Set_No_Truncation);
11279 pragma Inline (Set_Null_Present);
11280 pragma Inline (Set_Null_Exclusion_Present);
11281 pragma Inline (Set_Null_Record_Present);
11282 pragma Inline (Set_Object_Definition);
11283 pragma Inline (Set_Original_Discriminant);
11284 pragma Inline (Set_Original_Entity);
11285 pragma Inline (Set_Others_Discrete_Choices);
11286 pragma Inline (Set_Out_Present);
11287 pragma Inline (Set_Parameter_Associations);
11288 pragma Inline (Set_Parameter_Specifications);
11289 pragma Inline (Set_Parameter_List_Truncated);
11290 pragma Inline (Set_Parameter_Type);
11291 pragma Inline (Set_Parent_Spec);
11292 pragma Inline (Set_Position);
11293 pragma Inline (Set_Pragma_Argument_Associations);
11294 pragma Inline (Set_Pragma_Identifier);
11295 pragma Inline (Set_Pragmas_After);
11296 pragma Inline (Set_Pragmas_Before);
11297 pragma Inline (Set_Prefix);
11298 pragma Inline (Set_Present_Expr);
11299 pragma Inline (Set_Prev_Ids);
11300 pragma Inline (Set_Print_In_Hex);
11301 pragma Inline (Set_Private_Declarations);
11302 pragma Inline (Set_Private_Present);
11303 pragma Inline (Set_Procedure_To_Call);
11304 pragma Inline (Set_Proper_Body);
11305 pragma Inline (Set_Protected_Definition);
11306 pragma Inline (Set_Protected_Present);
11307 pragma Inline (Set_Raises_Constraint_Error);
11308 pragma Inline (Set_Range_Constraint);
11309 pragma Inline (Set_Range_Expression);
11310 pragma Inline (Set_Real_Range_Specification);
11311 pragma Inline (Set_Realval);
11312 pragma Inline (Set_Reason);
11313 pragma Inline (Set_Record_Extension_Part);
11314 pragma Inline (Set_Redundant_Use);
11315 pragma Inline (Set_Renaming_Exception);
11316 pragma Inline (Set_Result_Definition);
11317 pragma Inline (Set_Return_Object_Declarations);
11318 pragma Inline (Set_Reverse_Present);
11319 pragma Inline (Set_Right_Opnd);
11320 pragma Inline (Set_Rounded_Result);
11321 pragma Inline (Set_Scope);
11322 pragma Inline (Set_Select_Alternatives);
11323 pragma Inline (Set_Selector_Name);
11324 pragma Inline (Set_Selector_Names);
11325 pragma Inline (Set_Shift_Count_OK);
11326 pragma Inline (Set_Source_Type);
11327 pragma Inline (Set_Specification);
11328 pragma Inline (Set_Statements);
11329 pragma Inline (Set_Static_Processing_OK);
11330 pragma Inline (Set_Storage_Pool);
11331 pragma Inline (Set_Strval);
11332 pragma Inline (Set_Subtype_Indication);
11333 pragma Inline (Set_Subtype_Mark);
11334 pragma Inline (Set_Subtype_Marks);
11335 pragma Inline (Set_Synchronized_Present);
11336 pragma Inline (Set_Tagged_Present);
11337 pragma Inline (Set_Target_Type);
11338 pragma Inline (Set_Task_Definition);
11339 pragma Inline (Set_Task_Present);
11340 pragma Inline (Set_Then_Actions);
11341 pragma Inline (Set_Then_Statements);
11342 pragma Inline (Set_Triggering_Alternative);
11343 pragma Inline (Set_Triggering_Statement);
11344 pragma Inline (Set_Treat_Fixed_As_Integer);
11345 pragma Inline (Set_TSS_Elist);
11346 pragma Inline (Set_Type_Definition);
11347 pragma Inline (Set_Unit);
11348 pragma Inline (Set_Unknown_Discriminants_Present);
11349 pragma Inline (Set_Unreferenced_In_Spec);
11350 pragma Inline (Set_Variant_Part);
11351 pragma Inline (Set_Variants);
11352 pragma Inline (Set_Visible_Declarations);
11353 pragma Inline (Set_Was_Originally_Stub);
11354 pragma Inline (Set_Zero_Cost_Handling);
11355
11356 N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
11357 -- Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
11358 -- should refer to N_Simple_Return_Statement.
11359
11360 end Sinfo;