decl.c (validate_size): Set minimum size for fat pointers same as access types.
[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-2008, 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 for an others
585 -- exception where all exceptions are to be caught, even those that are
586 -- not normally handled (in particular the tasking abort signal). This
587 -- is used for translation of the at end handler into a normal exception
588 -- 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
600 -- (e.g. 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).
606 -- This 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.
609 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
610 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
611 -- the 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.
619 -- It 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
624 -- if 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
641 -- the corresponding unit requires a body. For the package case, this
642 -- indicates that a completion is required. In Ada 95, if the flag is not
643 -- set for the package case, then a body may not be present. In Ada 83,
644 -- if the flag is not set for the package case, then body is optional.
645 -- For a subprogram declaration, the flag is set except in the case where
646 -- a pragma Import or Interface applies, in which case no body is
647 -- permitted (in Ada 83 or Ada 95).
648
649 -- By_Ref (Flag5-Sem)
650 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
651 -- this flag is set when the returned expression is already allocated on
652 -- the secondary stack and thus the result is passed by reference rather
653 -- than copied another time.
654
655 -- Check_Address_Alignment (Flag11-Sem)
656 -- A flag present in N_Attribute_Definition clause for a 'Address
657 -- attribute definition. This flag is set if a dynamic check should be
658 -- generated at the freeze point for the entity to which this address
659 -- clause applies. The reason that we need this flag is that we want to
660 -- check for range checks being suppressed at the point where the
661 -- attribute definition clause is given, rather than testing this at the
662 -- freeze point.
663
664 -- Coextensions (Elist4-Sem)
665 -- Present in allocators nodes. Points to list of allocators for the
666 -- access discriminants of the allocated object.
667
668 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
669 -- Present in N_Simple_Return_Statement nodes. True if this node was
670 -- constructed as part of the N_Extended_Return_Statement expansion.
671 -- .
672
673 -- Compile_Time_Known_Aggregate (Flag18-Sem)
674 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
675 -- evaluated at compile time without raising constraint error. Such
676 -- aggregates can be passed as is to Gigi without any expansion. See
677 -- Sem_Aggr for the specific conditions under which an aggregate has this
678 -- flag set. See also the flag Static_Processing_OK.
679
680 -- Condition_Actions (List3-Sem)
681 -- This field appears in else-if nodes and in the iteration scheme node
682 -- for while loops. This field is only used during semantic processing to
683 -- temporarily hold actions inserted into the tree. In the tree passed
684 -- to gigi, the condition actions field is always set to No_List. For
685 -- details on how this field is used, see the routine Insert_Actions in
686 -- package Exp_Util, and also the expansion routines for the relevant
687 -- nodes.
688
689 -- Controlling_Argument (Node1-Sem)
690 -- This field is set in procedure and function call nodes if the call
691 -- is a dispatching call (it is Empty for a non-dispatching call). It
692 -- indicates the source of the call's controlling tag. For procedure
693 -- calls, the Controlling_Argument is one of the actuals. For function
694 -- that has a dispatching result, it is an entity in the context of the
695 -- call that can provide a tag, or else it is the tag of the root type
696 -- of the class. It can also specify a tag directly rather than being a
697 -- tagged object. The latter is needed by the implementations of AI-239
698 -- and AI-260.
699
700 -- Conversion_OK (Flag14-Sem)
701 -- A flag set on type conversion nodes to indicate that the conversion
702 -- is to be considered as being valid, even though it is the case that
703 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
704 -- Fixed_Value and Integer_Value, for internal conversions done for
705 -- fixed-point operations, and for certain conversions for calls to
706 -- initialization procedures. If Conversion_OK is set, then Etype must be
707 -- set (the analyzer assumes that Etype has been set). For the case of
708 -- fixed-point operands, it also indicates that the conversion is to be
709 -- direct conversion of the underlying integer result, with no regard to
710 -- the small operand.
711
712 -- Corresponding_Body (Node5-Sem)
713 -- This field is set in subprogram declarations, package declarations,
714 -- entry declarations of protected types, and in generic units. It
715 -- points to the defining entity for the corresponding body (NOT the
716 -- node for the body itself).
717
718 -- Corresponding_Formal_Spec (Node3-Sem)
719 -- This field is set in subprogram renaming declarations, where it points
720 -- to the defining entity for a formal subprogram in the case where the
721 -- renaming corresponds to a generic formal subprogram association in an
722 -- instantiation. The field is Empty if the renaming does not correspond
723 -- to such a formal association.
724
725 -- Corresponding_Generic_Association (Node5-Sem)
726 -- This field is defined for object declarations and object renaming
727 -- declarations. It is set for the declarations within an instance that
728 -- map generic formals to their actuals. If set, the field points to
729 -- a generic_association which is the original parent of the expression
730 -- or name appearing in the declaration. This simplifies ASIS queries.
731
732 -- Corresponding_Integer_Value (Uint4-Sem)
733 -- This field is set in real literals of fixed-point types (it is not
734 -- used for floating-point types). It contains the integer value used
735 -- to represent the fixed-point value. It is also set on the universal
736 -- real literals used to represent bounds of fixed-point base types
737 -- and their first named subtypes.
738
739 -- Corresponding_Spec (Node5-Sem)
740 -- This field is set in subprogram, package, task, and protected body
741 -- nodes, where it points to the defining entity in the corresponding
742 -- spec. The attribute is also set in N_With_Clause nodes where it points
743 -- to the defining entity for the with'ed spec, and in a subprogram
744 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
745 -- if there is no corresponding spec, as in the case of a subprogram body
746 -- that serves as its own spec.
747
748 -- Corresponding_Stub (Node3-Sem)
749 -- This field is present in an N_Subunit node. It holds the node in
750 -- the parent unit that is the stub declaration for the subunit. it is
751 -- set when analysis of the stub forces loading of the proper body. If
752 -- expansion of the proper body creates new declarative nodes, they are
753 -- inserted at the point of the corresponding_stub.
754
755 -- Dcheck_Function (Node5-Sem)
756 -- This field is present in an N_Variant node, It references the entity
757 -- for the discriminant checking function for the variant.
758
759 -- Debug_Statement (Node3)
760 -- This field is present in an N_Pragma node. It is used only for a Debug
761 -- pragma. The parameter is of the form of an expression, as required by
762 -- the pragma syntax, but is actually a procedure call. To simplify
763 -- semantic processing, the parser creates a copy of the argument
764 -- rearranged into a procedure call statement and places it in the
765 -- Debug_Statement field. Note that this field is considered syntactic
766 -- field, since it is created by the parser.
767
768 -- Default_Expression (Node5-Sem)
769 -- This field is Empty if there is no default expression. If there is a
770 -- simple default expression (one with no side effects), then this field
771 -- simply contains a copy of the Expression field (both point to the tree
772 -- for the default expression). Default_Expression is used for
773 -- conformance checking.
774
775 -- Discr_Check_Funcs_Built (Flag11-Sem)
776 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
777 -- discriminant checking functions are constructed. The purpose is to
778 -- avoid attempting to set these functions more than once.
779
780 -- Do_Accessibility_Check (Flag13-Sem)
781 -- This flag is set on N_Parameter_Specification nodes to indicate
782 -- that an accessibility check is required for the parameter. It is
783 -- not yet decided who takes care of this check (TBD ???).
784
785 -- Do_Discriminant_Check (Flag13-Sem)
786 -- This flag is set on N_Selected_Component nodes to indicate that a
787 -- discriminant check is required using the discriminant check routine
788 -- associated with the selector. The actual check is generated by the
789 -- expander when processing selected components.
790
791 -- Do_Division_Check (Flag13-Sem)
792 -- This flag is set on a division operator (/ mod rem) to indicate
793 -- that a zero divide check is required. The actual check is dealt
794 -- with by the backend (all the front end does is to set the flag).
795
796 -- Do_Length_Check (Flag4-Sem)
797 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
798 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
799 -- is required. It is not determined who deals with this flag (???).
800
801 -- Do_Overflow_Check (Flag17-Sem)
802 -- This flag is set on an operator where an overflow check is required on
803 -- the operation. The actual check is dealt with by the backend (all the
804 -- front end does is to set the flag). The other cases where this flag is
805 -- used is on a Type_Conversion node and for attribute reference nodes.
806 -- For a type conversion, it means that the conversion is from one base
807 -- type to another, and the value may not fit in the target base type.
808 -- See also the description of Do_Range_Check for this case. The only
809 -- attribute references which use this flag are Pred and Succ, where it
810 -- means that the result should be checked for going outside the base
811 -- range.
812
813 -- Do_Range_Check (Flag9-Sem)
814 -- This flag is set on an expression which appears in a context where a
815 -- range check is required. The target type is clear from the context.
816 -- The contexts in which this flag can appear are the following:
817
818 -- Right side of an assignment. In this case the target type is
819 -- taken from the left side of the assignment, which is referenced
820 -- by the Name of the N_Assignment_Statement node.
821
822 -- Subscript expressions in an indexed component. In this case the
823 -- target type is determined from the type of the array, which is
824 -- referenced by the Prefix of the N_Indexed_Component node.
825
826 -- Argument expression for a parameter, appearing either directly in
827 -- the Parameter_Associations list of a call or as the Expression of an
828 -- N_Parameter_Association node that appears in this list. In either
829 -- case, the check is against the type of the formal. Note that the
830 -- flag is relevant only in IN and IN OUT parameters, and will be
831 -- ignored for OUT parameters, where no check is required in the call,
832 -- and if a check is required on the return, it is generated explicitly
833 -- with a type conversion.
834
835 -- Initialization expression for the initial value in an object
836 -- declaration. In this case the Do_Range_Check flag is set on
837 -- the initialization expression, and the check is against the
838 -- range of the type of the object being declared.
839
840 -- The expression of a type conversion. In this case the range check is
841 -- against the target type of the conversion. See also the use of
842 -- Do_Overflow_Check on a type conversion. The distinction is that the
843 -- overflow check protects against a value that is outside the range of
844 -- the target base type, whereas a range check checks that the
845 -- resulting value (which is a value of the base type of the target
846 -- type), satisfies the range constraint of the target type.
847
848 -- Note: when a range check is required in contexts other than those
849 -- listed above (e.g. in a return statement), an additional type
850 -- conversion node is introduced to represent the required check.
851
852 -- Do_Storage_Check (Flag17-Sem)
853 -- This flag is set in an N_Allocator node to indicate that a storage
854 -- check is required for the allocation, or in an N_Subprogram_Body node
855 -- to indicate that a stack check is required in the subprogram prolog.
856 -- The N_Allocator case is handled by the routine that expands the call
857 -- to the runtime routine. The N_Subprogram_Body case is handled by the
858 -- backend, and all the semantics does is set the flag.
859
860 -- Do_Tag_Check (Flag13-Sem)
861 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
862 -- N_Procedure_Call_Statement, N_Type_Conversion,
863 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
864 -- node to indicate that the tag check can be suppressed. It is not
865 -- yet decided how this flag is used (TBD ???).
866
867 -- Elaborate_Present (Flag4-Sem)
868 -- This flag is set in the N_With_Clause node to indicate that pragma
869 -- Elaborate pragma appears for the with'ed units.
870
871 -- Elaborate_All_Desirable (Flag9-Sem)
872 -- This flag is set in the N_With_Clause mode to indicate that the static
873 -- elaboration processing has determined that an Elaborate_All pragma is
874 -- desirable for correct elaboration for this unit.
875
876 -- Elaborate_All_Present (Flag14-Sem)
877 -- This flag is set in the N_With_Clause node to indicate that a
878 -- pragma Elaborate_All pragma appears for the with'ed units.
879
880 -- Elaborate_Desirable (Flag11-Sem)
881 -- This flag is set in the N_With_Clause mode to indicate that the static
882 -- elaboration processing has determined that an Elaborate pragma is
883 -- desirable for correct elaboration for this unit.
884
885 -- Elaboration_Boolean (Node2-Sem)
886 -- This field is present in function and procedure specification nodes.
887 -- If set, it points to the entity for a Boolean flag that must be tested
888 -- for certain calls to check for access before elaboration. See body of
889 -- Sem_Elab for further details. This field is Empty if no elaboration
890 -- boolean is required.
891
892 -- Else_Actions (List3-Sem)
893 -- This field is present in conditional expression nodes. During code
894 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
895 -- actions at an appropriate place in the tree to get elaborated at the
896 -- right time. For conditional expressions, we have to be sure that the
897 -- actions for the Else branch are only elaborated if the condition is
898 -- False. The Else_Actions field is used as a temporary parking place for
899 -- these actions. The final tree is always rewritten to eliminate the
900 -- need for this field, so in the tree passed to Gigi, this field is
901 -- always set to No_List.
902
903 -- Enclosing_Variant (Node2-Sem)
904 -- This field is present in the N_Variant node and identifies the Node_Id
905 -- corresponding to the immediately enclosing variant when the variant is
906 -- nested, and N_Empty otherwise. Set during semantic processing of the
907 -- variant part of a record type.
908
909 -- Entity (Node4-Sem)
910 -- Appears in all direct names (identifiers, character literals, and
911 -- operator symbols), as well as expanded names, and attributes that
912 -- denote entities, such as 'Class. Points to entity for corresponding
913 -- defining occurrence. Set after name resolution. For identifiers in a
914 -- WITH list, the corresponding defining occurrence is in a separately
915 -- compiled file, and Entity must be set by the library Load procedure.
916 --
917 -- Note: During name resolution, the value in Entity may be temporarily
918 -- incorrect (e.g. during overload resolution, Entity is initially set to
919 -- the first possible correct interpretation, and then later modified if
920 -- necessary to contain the correct value after resolution).
921 --
922 -- Note: This field overlaps Associated_Node, which is used during
923 -- generic processing (see Sem_Ch12 for details). Note also that in
924 -- generic templates, this means that the Entity field does not always
925 -- point to an Entity. Since the back end is expected to ignore generic
926 -- templates, this is harmless.
927 --
928 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
929 -- It is used only for stream attributes definition clauses. In this
930 -- case, it denotes a (possibly dummy) subprogram entity that is declared
931 -- conceptually at the point of the clause. Thus the visibility of the
932 -- attribute definition clause (in the sense of 8.3(23) as amended by
933 -- AI-195) can be checked by testing the visibility of that subprogram.
934 --
935 -- Note: Normally the Entity field of an identifier points to the entity
936 -- for the corresponding defining identifier, and hence the Chars field
937 -- of an identifier will match the Chars field of the entity. However,
938 -- there is no requirement that these match, and there are obscure cases
939 -- of generated code where they do not match.
940
941 -- Entity_Or_Associated_Node (Node4-Sem)
942 -- A synonym for both Entity and Associated_Node. Used by convention in
943 -- the code when referencing this field in cases where it is not known
944 -- whether the field contains an Entity or an Associated_Node.
945
946 -- Etype (Node5-Sem)
947 -- Appears in all expression nodes, all direct names, and all entities.
948 -- Points to the entity for the related type. Set after type resolution.
949 -- Normally this is the actual subtype of the expression. However, in
950 -- certain contexts such as the right side of an assignment, subscripts,
951 -- arguments to calls, returned value in a function, initial value etc.
952 -- it is the desired target type. In the event that this is different
953 -- from the actual type, the Do_Range_Check flag will be set if a range
954 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
955 -- points to an essentially arbitrary choice from the possible set of
956 -- types.
957
958 -- Exception_Junk (Flag8-Sem)
959 -- This flag is set in a various nodes appearing in a statement sequence
960 -- to indicate that the corresponding node is an artifact of the
961 -- generated code for exception handling, and should be ignored when
962 -- analyzing the control flow of the relevant sequence of statements
963 -- (e.g. to check that it does not end with a bad return statement).
964
965 -- Exception_Label (Node5-Sem)
966 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
967 -- to be used for transforming the corresponding exception into a goto,
968 -- or contains Empty, if this exception is not to be transformed. Also
969 -- appears in N_Exception_Handler nodes, where, if set, it indicates
970 -- that there may be a local raise for the handler, so that expansion
971 -- to allow a goto is required (and this field contains the label for
972 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
973
974 -- Expansion_Delayed (Flag11-Sem)
975 -- Set on aggregates and extension aggregates that need a top-down rather
976 -- than bottom up expansion. Typically aggregate expansion happens bottom
977 -- up. For nested aggregates the expansion is delayed until the enclosing
978 -- aggregate itself is expanded, e.g. in the context of a declaration. To
979 -- delay it we set this flag. This is done to avoid creating a temporary
980 -- for each level of a nested aggregates, and also to prevent the
981 -- premature generation of constraint checks. This is also a requirement
982 -- if we want to generate the proper attachment to the internal
983 -- finalization lists (for record with controlled components). Top down
984 -- expansion of aggregates is also used for in-place array aggregate
985 -- assignment or initialization. When the full context is known, the
986 -- target of the assignment or initialization is used to generate the
987 -- left-hand side of individual assignment to each sub-component.
988
989 -- First_Inlined_Subprogram (Node3-Sem)
990 -- Present in the N_Compilation_Unit node for the main program. Points
991 -- to a chain of entities for subprograms that are to be inlined. The
992 -- Next_Inlined_Subprogram field of these entities is used as a link
993 -- pointer with Empty marking the end of the list. This field is Empty
994 -- if there are no inlined subprograms or inlining is not active.
995
996 -- First_Named_Actual (Node4-Sem)
997 -- Present in procedure call statement and function call nodes, and also
998 -- in Intrinsic nodes. Set during semantic analysis to point to the first
999 -- named parameter where parameters are ordered by declaration order (as
1000 -- opposed to the actual order in the call which may be different due to
1001 -- named associations). Note: this field points to the explicit actual
1002 -- parameter itself, not the N_Parameter_Association node (its parent).
1003
1004 -- First_Real_Statement (Node2-Sem)
1005 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1006 -- Empty. Used only when declarations are moved into the statement part
1007 -- of a construct as a result of wrapping an AT END handler that is
1008 -- required to cover the declarations. In this case, this field is used
1009 -- to remember the location in the statements list of the first real
1010 -- statement, i.e. the statement that used to be first in the statement
1011 -- list before the declarations were prepended.
1012
1013 -- First_Subtype_Link (Node5-Sem)
1014 -- Present in N_Freeze_Entity node for an anonymous base type that is
1015 -- implicitly created by the declaration of a first subtype. It points
1016 -- to the entity for the first subtype.
1017
1018 -- Float_Truncate (Flag11-Sem)
1019 -- A flag present in type conversion nodes. This is used for float to
1020 -- integer conversions where truncation is required rather than rounding.
1021 -- Note that Gigi does not handle type conversions from real to integer
1022 -- with rounding (see Expand_N_Type_Conversion).
1023
1024 -- Forwards_OK (Flag5-Sem)
1025 -- A flag present in the N_Assignment_Statement node. It is used only
1026 -- if the type being assigned is an array type, and is set if analysis
1027 -- determines that it is definitely safe to do the copy forwards, i.e.
1028 -- starting at the lowest addressed element. Note that if neither of the
1029 -- flags Forwards_OK or Backwards_OK is set, it means that the front end
1030 -- could not determine that either direction is definitely safe, and a
1031 -- runtime check is required.
1032
1033 -- From_At_End (Flag4-Sem)
1034 -- This flag is set on an N_Raise_Statement node if it corresponds to
1035 -- the reraise statement generated as the last statement of an AT END
1036 -- handler when SJLJ exception handling is active. It is used to stop
1037 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1038 -- because if the restriction is set, the reraise is not generated.
1039
1040 -- From_At_Mod (Flag4-Sem)
1041 -- This flag is set on the attribute definition clause node that is
1042 -- generated by a transformation of an at mod phrase in a record
1043 -- representation clause. This is used to give slightly different (Ada 83
1044 -- compatible) semantics to such a clause, namely it is used to specify a
1045 -- minimum acceptable alignment for the base type and all subtypes. In
1046 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1047 -- must be a multiple of the given value, and the representation clause
1048 -- is considered to be type specific instead of subtype specific.
1049
1050 -- From_Default (Flag6-Sem)
1051 -- This flag is set on the subprogram renaming declaration created in an
1052 -- instance for a formal subprogram, when the formal is declared with a
1053 -- box, and there is no explicit actual. If the flag is present, the
1054 -- declaration is treated as an implicit reference to the formal in the
1055 -- ali file.
1056
1057 -- Generic_Parent (Node5-Sem)
1058 -- Generic_Parent is defined on declaration nodes that are instances. The
1059 -- value of Generic_Parent is the generic entity from which the instance
1060 -- is obtained. Generic_Parent is also defined for the renaming
1061 -- declarations and object declarations created for the actuals in an
1062 -- instantiation. The generic parent of such a declaration is the
1063 -- corresponding generic association in the Instantiation node.
1064
1065 -- Generic_Parent_Type (Node4-Sem)
1066 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1067 -- actuals of formal private and derived types. Within the instance, the
1068 -- operations on the actual are those inherited from the parent. For a
1069 -- formal private type, the parent type is the generic type itself. The
1070 -- Generic_Parent_Type is also used in an instance to determine whether a
1071 -- private operation overrides an inherited one.
1072
1073 -- Handler_List_Entry (Node2-Sem)
1074 -- This field is present in N_Object_Declaration nodes. It is set only
1075 -- for the Handler_Record entry generated for an exception in zero cost
1076 -- exception handling mode. It references the corresponding item in the
1077 -- handler list, and is used to delete this entry if the corresponding
1078 -- handler is deleted during optimization. For further details on why
1079 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1080
1081 -- Has_No_Elaboration_Code (Flag17-Sem)
1082 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1083 -- or not elaboration code is present for this unit. It is initially set
1084 -- true for subprogram specs and bodies and for all generic units and
1085 -- false for non-generic package specs and bodies. Gigi may set the flag
1086 -- in the non-generic package case if it determines that no elaboration
1087 -- code is generated. Note that this flag is not related to the
1088 -- Is_Preelaborated status, there can be preelaborated packages that
1089 -- generate elaboration code, and non-preelaborated packages which do
1090 -- not generate elaboration code.
1091
1092 -- Has_Priority_Pragma (Flag6-Sem)
1093 -- A flag present in N_Subprogram_Body, N_Task_Definition and
1094 -- N_Protected_Definition nodes to flag the presence of either a Priority
1095 -- or Interrupt_Priority pragma in the declaration sequence (public or
1096 -- private in the task and protected cases)
1097
1098 -- Has_Private_View (Flag11-Sem)
1099 -- A flag present in generic nodes that have an entity, to indicate that
1100 -- the node has a private type. Used to exchange private and full
1101 -- declarations if the visibility at instantiation is different from the
1102 -- visibility at generic definition.
1103
1104 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1105 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1106 -- flag the presence of a pragma Relative_Deadline.
1107
1108 -- Has_Self_Reference (Flag13-Sem)
1109 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1110 -- of the expressions contains an access attribute reference to the
1111 -- enclosing type. Such a self-reference can only appear in default-
1112 -- initialized aggregate for a record type.
1113
1114 -- Has_Storage_Size_Pragma (Flag5-Sem)
1115 -- A flag present in an N_Task_Definition node to flag the presence of a
1116 -- Storage_Size pragma.
1117
1118 -- Has_Task_Info_Pragma (Flag7-Sem)
1119 -- A flag present in an N_Task_Definition node to flag the presence of a
1120 -- Task_Info pragma. Used to detect duplicate pragmas.
1121
1122 -- Has_Task_Name_Pragma (Flag8-Sem)
1123 -- A flag present in N_Task_Definition nodes to flag the presence of a
1124 -- Task_Name pragma in the declaration sequence for the task.
1125
1126 -- Has_Wide_Character (Flag11-Sem)
1127 -- Present in string literals, set if any wide character (i.e. character
1128 -- code outside the Character range) appears in the string.
1129
1130 -- Hidden_By_Use_Clause (Elist4-Sem)
1131 -- An entity list present in use clauses that appear within
1132 -- instantiations. For the resolution of local entities, entities
1133 -- introduced by these use clauses have priority over global ones, and
1134 -- outer entities must be explicitly hidden/restored on exit.
1135
1136 -- Implicit_With (Flag16-Sem)
1137 -- This flag is set in the N_With_Clause node that is implicitly
1138 -- generated for runtime units that are loaded by the expander, and also
1139 -- for package System, if it is loaded implicitly by a use of the
1140 -- 'Address or 'Tag attribute.
1141
1142 -- Includes_Infinities (Flag11-Sem)
1143 -- This flag is present in N_Range nodes. It is set for the range of
1144 -- unconstrained float types defined in Standard, which include not only
1145 -- the given range of values, but also legtitimately can include infinite
1146 -- values. This flag is false for any float type for which an explicit
1147 -- range is given by the programmer, even if that range is identical to
1148 -- the range for Float.
1149
1150 -- Instance_Spec (Node5-Sem)
1151 -- This field is present in generic instantiation nodes, and also in
1152 -- formal package declaration nodes (formal package declarations are
1153 -- treated in a manner very similar to package instantiations). It points
1154 -- to the node for the spec of the instance, inserted as part of the
1155 -- semantic processing for instantiations in Sem_Ch12.
1156
1157 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1158 -- A flag set in a Block_Statement node to indicate that it is the
1159 -- expansion of an asynchronous entry call. Such a block needs cleanup
1160 -- handler to assure that the call is cancelled.
1161
1162 -- Is_Component_Left_Opnd (Flag13-Sem)
1163 -- Is_Component_Right_Opnd (Flag14-Sem)
1164 -- Present in concatenation nodes, to indicate that the corresponding
1165 -- operand is of the component type of the result. Used in resolving
1166 -- concatenation nodes in instances.
1167
1168 -- Is_Controlling_Actual (Flag16-Sem)
1169 -- This flag is set on in an expression that is a controlling argument in
1170 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1171 -- details of its use.
1172
1173 -- Is_Dynamic_Coextension (Flag18-Sem)
1174 -- Present in allocator nodes, to indicate that this is an allocator
1175 -- for an access discriminant of a dynamically allocated object. The
1176 -- coextension must be deallocated and finalized at the same time as
1177 -- the enclosing object.
1178
1179 -- Is_Entry_Barrier_Function (Flag8-Sem)
1180 -- This flag is set in an N_Subprogram_Body node which is the expansion
1181 -- of an entry barrier from a protected entry body. It is used for the
1182 -- circuitry checking for incorrect use of Current_Task.
1183
1184 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1185 -- This flag is set in an N_Function_Call node to indicate that the extra
1186 -- actuals to support a build-in-place style of call have been added to
1187 -- the call.
1188
1189 -- Is_In_Discriminant_Check (Flag11-Sem)
1190 -- This flag is present in a selected component, and is used to indicate
1191 -- that the reference occurs within a discriminant check. The
1192 -- significance is that optimizations based on assuming that the
1193 -- discriminant check has a correct value cannot be performed in this
1194 -- case (or the disriminant check may be optimized away!)
1195
1196 -- Is_Machine_Number (Flag11-Sem)
1197 -- This flag is set in an N_Real_Literal node to indicate that the value
1198 -- is a machine number. This avoids some unnecessary cases of converting
1199 -- real literals to machine numbers.
1200
1201 -- Is_Null_Loop (Flag16-Sem)
1202 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1203 -- can be determined to be null at compile time. This is used to suppress
1204 -- any warnings that would otherwise be issued inside the loop since they
1205 -- are probably not useful.
1206
1207 -- Is_Overloaded (Flag5-Sem)
1208 -- A flag present in all expression nodes. Used temporarily during
1209 -- overloading determination. The setting of this flag is not relevant
1210 -- once overloading analysis is complete.
1211
1212 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1213 -- A flag present only in N_Op_Expon nodes. It is set when the
1214 -- exponentiation is of the forma 2 ** N, where the type of N is an
1215 -- unsigned integral subtype whose size does not exceed the size of
1216 -- Standard_Integer (i.e. a type that can be safely converted to
1217 -- Natural), and the exponentiation appears as the right operand of an
1218 -- integer multiplication or an integer division where the dividend is
1219 -- unsigned. It is also required that overflow checking is off for both
1220 -- the exponentiation and the multiply/divide node. If this set of
1221 -- conditions holds, and the flag is set, then the division or
1222 -- multiplication can be (and is) converted to a shift.
1223
1224 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1225 -- A flag set in a Subprogram_Body block to indicate that it is the
1226 -- implemenation of a protected subprogram. Such a body needs cleanup
1227 -- handler to make sure that the associated protected object is unlocked
1228 -- when the subprogram completes.
1229
1230 -- Is_Static_Coextension (Flag14-Sem)
1231 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1232 -- of an object allocated on the stack rather than the heap.
1233
1234 -- Is_Static_Expression (Flag6-Sem)
1235 -- Indicates that an expression is a static expression (RM 4.9). See spec
1236 -- of package Sem_Eval for full details on the use of this flag.
1237
1238 -- Is_Subprogram_Descriptor (Flag16-Sem)
1239 -- Present in N_Object_Declaration, and set only for the object
1240 -- declaration generated for a subprogram descriptor in fast exception
1241 -- mode. See Exp_Ch11 for details of use.
1242
1243 -- Is_Task_Allocation_Block (Flag6-Sem)
1244 -- A flag set in a Block_Statement node to indicate that it is the
1245 -- expansion of a task allocator, or the allocator of an object
1246 -- containing tasks. Such a block requires a cleanup handler to call
1247 -- Expunge_Unactivted_Tasks to complete any tasks that have been
1248 -- allocated but not activated when the allocator completes abnormally.
1249
1250 -- Is_Task_Master (Flag5-Sem)
1251 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1252 -- indicate that the construct is a task master (i.e. has declared tasks
1253 -- or declares an access to a task type).
1254
1255 -- Itype (Node1-Sem)
1256 -- Used in N_Itype_Reference node to reference an itype for which it is
1257 -- important to ensure that it is defined. See description of this node
1258 -- for further details.
1259
1260 -- Kill_Range_Check (Flag11-Sem)
1261 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1262 -- result should not be subjected to range checks. This is used for the
1263 -- implementation of Normalize_Scalars.
1264
1265 -- Label_Construct (Node2-Sem)
1266 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1267 -- N_Block_Statement or N_Loop_Statement node to which the label
1268 -- declaration applies. This is not currently used in the compiler
1269 -- itself, but it is useful in the implementation of ASIS queries.
1270 -- This field is left empty for the special labels generated as part
1271 -- of expanding raise statements with a local exception handler.
1272
1273 -- Library_Unit (Node4-Sem)
1274 -- In a stub node, Library_Unit points to the compilation unit node of
1275 -- the corresponding subunit.
1276 --
1277 -- In a with clause node, Library_Unit points to the spec of the with'ed
1278 -- unit.
1279 --
1280 -- In a compilation unit node, the usage depends on the unit type:
1281 --
1282 -- For a subprogram body, Library_Unit points to the compilation unit
1283 -- node of the corresponding spec, unless Acts_As_Spec is set, in which
1284 -- case it points to itself.
1285 --
1286 -- For a package body, Library_Unit points to the compilation unit of
1287 -- the corresponding package spec.
1288 --
1289 -- For a subprogram spec to which pragma Inline applies, Library_Unit
1290 -- points to the compilation unit node of the corresponding body, if
1291 -- inlining is active.
1292 --
1293 -- For a generic declaration, Library_Unit points to the compilation
1294 -- unit node of the corresponding generic body.
1295 --
1296 -- For a subunit, Library_Unit points to the compilation unit node of
1297 -- the parent body.
1298 --
1299 -- Note that this field is not used to hold the parent pointer for child
1300 -- unit (which might in any case need to use it for some other purpose as
1301 -- described above). Instead for a child unit, implicit with's are
1302 -- generated for all parents.
1303
1304 -- Local_Raise_Statements (Elist1)
1305 -- This field is present in exception handler nodes. It is set to
1306 -- No_Elist in the normal case. If there is at least one raise statement
1307 -- which can potentially be handled as a local raise, then this field
1308 -- points to a list of raise nodes, which are calls to a routine to raise
1309 -- an exception. These are raise nodes which can be optimized into gotos
1310 -- if the handler turns out to meet the conditions which permit this
1311 -- transformation. Note that this does NOT include instances of the
1312 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1313 -- handled by the back end (using the N_Push/N_Pop mechanism).
1314
1315 -- Loop_Actions (List2-Sem)
1316 -- A list present in Component_Association nodes in array aggregates.
1317 -- Used to collect actions that must be executed within the loop because
1318 -- they may need to be evaluated anew each time through.
1319
1320 -- Limited_View_Installed (Flag18-Sem)
1321 -- Present in With_Clauses and in package specifications. If set on
1322 -- with_clause, it indicates that this clause has created the current
1323 -- limited view of the designated package. On a package specification, it
1324 -- indicates that the limited view has already been created because the
1325 -- package is mentioned in a limited_with_clause in the closure of the
1326 -- unit being compiled.
1327
1328 -- Local_Raise_Not_OK (Flag7-Sem)
1329 -- Present in N_Exception_Handler nodes. Set if the handler contains
1330 -- a construct (reraise statement, or call to subprogram in package
1331 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1332 -- for a local raise (one that could otherwise be converted to a goto).
1333
1334 -- Must_Be_Byte_Aligned (Flag14-Sem)
1335 -- This flag is present in N_Attribute_Reference nodes. It can be set
1336 -- only for the Address and Unrestricted_Access attributes. If set it
1337 -- means that the object for which the address/access is given must be on
1338 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1339 -- of the object is to be made before taking the address (this copy is in
1340 -- the current scope on the stack frame). This is used for certain cases
1341 -- of code generated by the expander that passes parameters by address.
1342 --
1343 -- The reason the copy is not made by the front end is that the back end
1344 -- has more information about type layout and may be able to (but is not
1345 -- guaranteed to) prevent making unnecessary copies.
1346
1347 -- Must_Not_Freeze (Flag8-Sem)
1348 -- A flag present in all expression nodes. Normally expressions cause
1349 -- freezing as described in the RM. If this flag is set, then this is
1350 -- inhibited. This is used by the analyzer and expander to label nodes
1351 -- that are created by semantic analysis or expansion and which must not
1352 -- cause freezing even though they normally would. This flag is also
1353 -- present in an N_Subtype_Indication node, since we also use these in
1354 -- calls to Freeze_Expression.
1355
1356 -- Next_Entity (Node2-Sem)
1357 -- Present in defining identifiers, defining character literals and
1358 -- defining operator symbols (i.e. in all entities). The entities of a
1359 -- scope are chained, and this field is used as the forward pointer for
1360 -- this list. See Einfo for further details.
1361
1362 -- Next_Named_Actual (Node4-Sem)
1363 -- Present in parameter association node. Set during semantic analysis to
1364 -- point to the next named parameter, where parameters are ordered by
1365 -- declaration order (as opposed to the actual order in the call, which
1366 -- may be different due to named associations). Not that this field
1367 -- points to the explicit actual parameter itself, not to the
1368 -- N_Parameter_Association node (its parent).
1369
1370 -- Next_Pragma (Node1-Sem)
1371 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1372 -- nodes. Curently used for two purposes:
1373 --
1374 -- Create a list of linked Check_Policy pragmas. The head of this list
1375 -- is stored in Opt.Check_Policy_List (which has further details).
1376 --
1377 -- Used by processing for Pre/Postcondition pragmas to store a list of
1378 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1379 -- details).
1380
1381 -- Next_Rep_Item (Node5-Sem)
1382 -- Present in pragma nodes and attribute definition nodes. Used to link
1383 -- representation items that apply to an entity. See description of
1384 -- First_Rep_Item field in Einfo for full details.
1385
1386 -- Next_Use_Clause (Node3-Sem)
1387 -- While use clauses are active during semantic processing, they are
1388 -- chained from the scope stack entry, using Next_Use_Clause as a link
1389 -- pointer, with Empty marking the end of the list. The head pointer is
1390 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1391 -- processing (i.e. when Gigi sees the tree, the contents of this field
1392 -- is undefined and should not be read).
1393
1394 -- No_Ctrl_Actions (Flag7-Sem)
1395 -- Present in N_Assignment_Statement to indicate that no finalize nor nor
1396 -- adjust should take place on this assignment eventhough the rhs is
1397 -- controlled. This is used in init procs and aggregate expansions where
1398 -- the generated assignments are more initialisations than real
1399 -- assignments.
1400
1401 -- No_Elaboration_Check (Flag14-Sem)
1402 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1403 -- that no elaboration check is needed on the call, because it appears in
1404 -- the context of a local Suppress pragma. This is used on calls within
1405 -- task bodies, where the actual elaboration checks are applied after
1406 -- analysis, when the local scope stack is not present.
1407
1408 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1409 -- Present in N_With_Clause nodes. Set if the with clause is on the
1410 -- package or subprogram spec where the main unit is the corresponding
1411 -- body, and no entities of the with'ed unit are referenced by the spec
1412 -- (an entity may still be referenced in the body, so this flag is used
1413 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1414 -- full details)
1415
1416 -- No_Initialization (Flag13-Sem)
1417 -- Present in N_Object_Declaration & N_Allocator to indicate that the
1418 -- object must not be initialized (by Initialize or call to an init
1419 -- proc). This is needed for controlled aggregates. When the Object
1420 -- declaration has an expression, this flag means that this expression
1421 -- should not be taken into account (needed for in place initialization
1422 -- with aggregates)
1423
1424 -- No_Truncation (Flag17-Sem)
1425 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1426 -- only if the RM_Size of the source is greater than the RM_Size of the
1427 -- target for scalar operands. Normally in such a case we truncate some
1428 -- higher order bits of the source, and then sign/zero extend the result
1429 -- to form the output value. But if this flag is set, then we do not do
1430 -- any truncation, so for example, if an 8 bit input is converted to 5
1431 -- bit result which is in fact stored in 8 bits, then the high order
1432 -- three bits of the target result will be copied from the source. This
1433 -- is used for properly setting out of range values for use by pragmas
1434 -- Initialize_Scalars and Normalize_Scalars.
1435
1436 -- Original_Discriminant (Node2-Sem)
1437 -- Present in identifiers. Used in references to discriminants that
1438 -- appear in generic units. Because the names of the discriminants may be
1439 -- different in an instance, we use this field to recover the position of
1440 -- the discriminant in the original type, and replace it with the
1441 -- discriminant at the same position in the instantiated type.
1442
1443 -- Original_Entity (Node2-Sem)
1444 -- Present in numeric literals. Used to denote the named number that has
1445 -- been constant-folded into the given literal. If literal is from
1446 -- source, or the result of some other constant-folding operation, then
1447 -- Original_Entity is empty. This field is needed to handle properly
1448 -- named numbers in generic units, where the Associated_Node field
1449 -- interferes with the Entity field, making it impossible to preserve the
1450 -- original entity at the point of instantiation (ASIS problem).
1451
1452 -- Others_Discrete_Choices (List1-Sem)
1453 -- When a case statement or variant is analyzed, the semantic checks
1454 -- determine the actual list of choices that correspond to an others
1455 -- choice. This list is materialized for later use by the expander and
1456 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1457 -- this materialized list of choices, which is in standard format for a
1458 -- list of discrete choices, except that of course it cannot contain an
1459 -- N_Others_Choice entry.
1460
1461 -- Parameter_List_Truncated (Flag17-Sem)
1462 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1463 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1464 -- a result of a First_Optional_Parameter specification in an
1465 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1466 -- The truncation is done by the expander by removing trailing parameters
1467 -- from the argument list, in accordance with the set of rules allowing
1468 -- such parameter removal. In particular, parameters can be removed
1469 -- working from the end of the parameter list backwards up to and
1470 -- including the entry designated by First_Optional_Parameter in the
1471 -- Import pragma. Parameters can be removed if they are implicit and the
1472 -- default value is a known-at-compile-time value, including the use of
1473 -- the Null_Parameter attribute, or if explicit parameter values are
1474 -- present that match the corresponding defaults.
1475
1476 -- Parent_Spec (Node4-Sem)
1477 -- For a library unit that is a child unit spec (package or subprogram
1478 -- declaration, generic declaration or instantiation, or library level
1479 -- rename, this field points to the compilation unit node for the parent
1480 -- package specification. This field is Empty for library bodies (the
1481 -- parent spec in this case can be found from the corresponding spec).
1482
1483 -- PPC_Enabled (Flag5-Sem)
1484 -- Present in N_Pragma nodes. This flag is relevant only for precondition
1485 -- and postcondition nodes. It is true if the check corresponding to the
1486 -- pragma type is enabled at the point where the pragma appears.
1487
1488 -- Present_Expr (Uint3-Sem)
1489 -- Present in an N_Variant node. This has a meaningful value only after
1490 -- Gigi has back annotated the tree with representation information. At
1491 -- this point, it contains a reference to a gcc expression that depends
1492 -- on the values of one or more discriminants. Give a set of discriminant
1493 -- values, this expression evaluates to False (zero) if variant is not
1494 -- present, and True (non-zero) if it is present. See unit Repinfo for
1495 -- further details on gigi back annotation. This field is used during
1496 -- ASIS processing (data decomposition annex) to determine if a field is
1497 -- present or not.
1498
1499 -- Print_In_Hex (Flag13-Sem)
1500 -- Set on an N_Integer_Literal node to indicate that the value should be
1501 -- printed in hexadecimal in the sprint listing. Has no effect on
1502 -- legality or semantics of program, only on the displayed output. This
1503 -- is used to clarify output from the packed array cases.
1504
1505 -- Procedure_To_Call (Node2-Sem)
1506 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1507 -- and N_Extended_Return_Statement nodes. References the entity for the
1508 -- declaration of the procedure to be called to accomplish the required
1509 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1510 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1511 -- allocating the return value), and for the Deallocate procedure in the
1512 -- case of N_Free_Statement.
1513
1514 -- Raises_Constraint_Error (Flag7-Sem)
1515 -- Set on an expression whose evaluation will definitely fail constraint
1516 -- error check. In the case of static expressions, this flag must be set
1517 -- accurately (and if it is set, the expression is typically illegal
1518 -- unless it appears as a non-elaborated branch of a short-circuit form).
1519 -- For a non-static expression, this flag may be set whenever an
1520 -- expression (e.g. an aggregate) is known to raise constraint error. If
1521 -- set, the expression definitely will raise CE if elaborated at runtime.
1522 -- If not set, the expression may or may not raise CE. In other words, on
1523 -- static expressions, the flag is set accurately, on non-static
1524 -- expressions it is set conservatively.
1525
1526 -- Redundant_Use (Flag13-Sem)
1527 -- Present in nodes that can appear as an operand in a use clause or use
1528 -- type clause (identifiers, expanded names, attribute references). Set
1529 -- to indicate that a use is redundant (and therefore need not be undone
1530 -- on scope exit).
1531
1532 -- Renaming_Exception (Node2-Sem)
1533 -- Present in N_Exception_Declaration node. Used to point back to the
1534 -- exception renaming for an exception declared within a subprogram.
1535 -- What happens is that an exception declared in a subprogram is moved
1536 -- to the library level with a unique name, and the original exception
1537 -- becomes a renaming. This link from the library level exception to the
1538 -- renaming declaration allows registering of the proper exception name.
1539
1540 -- Return_Statement_Entity (Node5-Sem)
1541 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1542 -- Points to an E_Return_Statement representing the return statement.
1543
1544 -- Return_Object_Declarations (List3)
1545 -- Present in N_Extended_Return_Statement.
1546 -- Points to a list initially containing a single
1547 -- N_Object_Declaration representing the return object.
1548 -- We use a list (instead of just a pointer to the object decl)
1549 -- because Analyze wants to insert extra actions on this list.
1550
1551 -- Rounded_Result (Flag18-Sem)
1552 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1553 -- Used in the fixed-point cases to indicate that the result must be
1554 -- rounded as a result of the use of the 'Round attribute. Also used for
1555 -- integer N_Op_Divide nodes to indicate that the result should be
1556 -- rounded to the nearest integer (breaking ties away from zero), rather
1557 -- than truncated towards zero as usual. These rounded integer operations
1558 -- are the result of expansion of rounded fixed-point divide, conversion
1559 -- and multiplication operations.
1560
1561 -- Scope (Node3-Sem)
1562 -- Present in defining identifiers, defining character literals and
1563 -- defining operator symbols (i.e. in all entities). The entities of a
1564 -- scope all use this field to reference the corresponding scope entity.
1565 -- See Einfo for further details.
1566
1567 -- Shift_Count_OK (Flag4-Sem)
1568 -- A flag present in shift nodes to indicate that the shift count is
1569 -- known to be in range, i.e. is in the range from zero to word length
1570 -- minus one. If this flag is not set, then the shift count may be
1571 -- outside this range, i.e. larger than the word length, and the code
1572 -- must ensure that such shift counts give the appropriate result.
1573
1574 -- Source_Type (Node1-Sem)
1575 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1576 -- source type entity for the unchecked conversion instantiation
1577 -- which gigi must do size validation for.
1578
1579 -- Static_Processing_OK (Flag4-Sem)
1580 -- Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1581 -- flag is set, the full value of the aggregate can be determined at
1582 -- compile time and the aggregate can be passed as is to the back-end.
1583 -- In this event it is irrelevant whether this flag is set or not.
1584 -- However, if the flag Compile_Time_Known_Aggregate is not set but
1585 -- Static_Processing_OK is set, the aggregate can (but need not) be
1586 -- converted into a compile time known aggregate by the expander. See
1587 -- Sem_Aggr for the specific conditions under which an aggregate has its
1588 -- Static_Processing_OK flag set.
1589
1590 -- Storage_Pool (Node1-Sem)
1591 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1592 -- and N_Extended_Return_Statement nodes. References the entity for the
1593 -- storage pool to be used for the allocate or free call or for the
1594 -- allocation of the returned value from function. Empty indicates that
1595 -- the global default default pool is to be used. Note that in the case
1596 -- of a return statement, this field is set only if the function returns
1597 -- value of a type whose size is not known at compile time on the
1598 -- secondary stack.
1599
1600 -- Target_Type (Node2-Sem)
1601 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1602 -- type entity for the unchecked conversion instantiation which gigi must
1603 -- do size validation for.
1604
1605 -- Then_Actions (List3-Sem)
1606 -- This field is present in conditional expression nodes. During code
1607 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1608 -- actions at an appropriate place in the tree to get elaborated at the
1609 -- right time. For conditional expressions, we have to be sure that the
1610 -- actions for the Then branch are only elaborated if the condition is
1611 -- True. The Then_Actions field is used as a temporary parking place for
1612 -- these actions. The final tree is always rewritten to eliminate the
1613 -- need for this field, so in the tree passed to Gigi, this field is
1614 -- always set to No_List.
1615
1616 -- Treat_Fixed_As_Integer (Flag14-Sem)
1617 -- This flag appears in operator nodes for divide, multiply, mod and rem
1618 -- on fixed-point operands. It indicates that the operands are to be
1619 -- treated as integer values, ignoring small values. This flag is only
1620 -- set as a result of expansion of fixed-point operations. Typically a
1621 -- fixed-point multplication in the source generates subsidiary
1622 -- multiplication and division operations that work with the underlying
1623 -- integer values and have this flag set. Note that this flag is not
1624 -- needed on other arithmetic operations (add, neg, subtract etc) since
1625 -- in these cases it is always the case that fixed is treated as integer.
1626 -- The Etype field MUST be set if this flag is set. The analyzer knows to
1627 -- leave such nodes alone, and whoever makes them must set the correct
1628 -- Etype value.
1629
1630 -- TSS_Elist (Elist3-Sem)
1631 -- Present in N_Freeze_Entity nodes. Holds an element list containing
1632 -- entries for each TSS (type support subprogram) associated with the
1633 -- frozen type. The elements of the list are the entities for the
1634 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
1635 -- if there are no type support subprograms for the type or if the freeze
1636 -- node is not for a type.
1637
1638 -- Unreferenced_In_Spec (Flag7-Sem)
1639 -- Present in N_With_Clause nodes. Set if the with clause is on the
1640 -- package or subprogram spec where the main unit is the corresponding
1641 -- body, and is not referenced by the spec (it may still be referenced by
1642 -- the body, so this flag is used to generate the proper message (see
1643 -- Sem_Util.Check_Unused_Withs for details)
1644
1645 -- Was_Originally_Stub (Flag13-Sem)
1646 -- This flag is set in the node for a proper body that replaces stub.
1647 -- During the analysis procedure, stubs in some situations get rewritten
1648 -- by the corresponding bodies, and we set this flag to remember that
1649 -- this happened. Note that it is not good enough to rely on the use of
1650 -- Original_Node here because of the case of nested instantiations where
1651 -- the substituted node can be copied.
1652
1653 -- Zero_Cost_Handling (Flag5-Sem)
1654 -- This flag is set in all handled sequence of statement and exception
1655 -- handler nodes if eceptions are to be handled using the zero-cost
1656 -- mechanism (see Ada.Exceptions and System.Exceptions in files
1657 -- a-except.ads/adb and s-except.ads for full details). What gigi needs
1658 -- to do for such a handler is simply to put the code in the handler
1659 -- somewhere. The front end has generated all necessary labels.
1660
1661 --------------------------------------------------
1662 -- Note on Use of End_Label and End_Span Fields --
1663 --------------------------------------------------
1664
1665 -- Several constructs have end lines:
1666
1667 -- Loop Statement end loop [loop_IDENTIFIER];
1668 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
1669 -- Task Definition end [task_IDENTIFIER]
1670 -- Protected Definition end [protected_IDENTIFIER]
1671 -- Protected Body end [protected_IDENTIFIER]
1672
1673 -- Block Statement end [block_IDENTIFIER];
1674 -- Subprogram Body end [DESIGNATOR];
1675 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
1676 -- Task Body end [task_IDENTIFIER];
1677 -- Accept Statement end [entry_IDENTIFIER]];
1678 -- Entry Body end [entry_IDENTIFIER];
1679
1680 -- If Statement end if;
1681 -- Case Statement end case;
1682
1683 -- Record Definition end record;
1684 -- Enumeration Definition );
1685
1686 -- The End_Label and End_Span fields are used to mark the locations of
1687 -- these lines, and also keep track of the label in the case where a label
1688 -- is present.
1689
1690 -- For the first group above, the End_Label field of the corresponding node
1691 -- is used to point to the label identifier. In the case where there is no
1692 -- label in the source, the parser supplies a dummy identifier (with
1693 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
1694 -- marks the location of the token following the END token.
1695
1696 -- For the second group, the use of End_Label is similar, but the End_Label
1697 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
1698 -- simply because in some cases there is no room in the parent node.
1699
1700 -- For the third group, there is never any label, and instead of using
1701 -- End_Label, we use the End_Span field which gives the location of the
1702 -- token following END, relative to the starting Sloc of the construct,
1703 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1704 -- following the End_Label.
1705
1706 -- The record definition case is handled specially, we treat it as though
1707 -- it required an optional label which is never present, and so the parser
1708 -- always builds a dummy identifier with Comes From Source set False. The
1709 -- reason we do this, rather than using End_Span in this case, is that we
1710 -- want to generate a cross-ref entry for the end of a record, since it
1711 -- represents a scope for name declaration purposes.
1712
1713 -- The enumeration definition case is handled in an exactly similar manner,
1714 -- building a dummy identifier to get a cross-reference.
1715
1716 -- Note: the reason we store the difference as a Uint, instead of storing
1717 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
1718 -- distinguished from other types of values, and we count on all general
1719 -- use fields being self describing. To make things easier for clients,
1720 -- note that we provide function End_Location, and procedure
1721 -- Set_End_Location to allow access to the logical value (which is the
1722 -- Source_Ptr value for the end token).
1723
1724 ---------------------
1725 -- Syntactic Nodes --
1726 ---------------------
1727
1728 ---------------------
1729 -- 2.3 Identifier --
1730 ---------------------
1731
1732 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1733 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1734
1735 -- An IDENTIFIER shall not be a reserved word
1736
1737 -- In the Ada grammar identifiers are the bottom level tokens which have
1738 -- very few semantics. Actual program identifiers are direct names. If
1739 -- we were being 100% honest with the grammar, then we would have a node
1740 -- called N_Direct_Name which would point to an identifier. However,
1741 -- that's too many extra nodes, so we just use the N_Identifier node
1742 -- directly as a direct name, and it contains the expression fields and
1743 -- Entity field that correspond to its use as a direct name. In those
1744 -- few cases where identifiers appear in contexts where they are not
1745 -- direct names (pragmas, pragma argument associations, attribute
1746 -- references and attribute definition clauses), the Chars field of the
1747 -- node contains the Name_Id for the identifier name.
1748
1749 -- Note: in GNAT, a reserved word can be treated as an identifier in two
1750 -- cases. First, an incorrect use of a reserved word as an identifier is
1751 -- diagnosed and then treated as a normal identifier. Second, an
1752 -- attribute designator of the form of a reserved word (access, delta,
1753 -- digits, range) is treated as an identifier.
1754
1755 -- Note: The set of letters that is permitted in an identifier depends
1756 -- on the character set in use. See package Csets for full details.
1757
1758 -- N_Identifier
1759 -- Sloc points to identifier
1760 -- Chars (Name1) contains the Name_Id for the identifier
1761 -- Entity (Node4-Sem)
1762 -- Associated_Node (Node4-Sem)
1763 -- Original_Discriminant (Node2-Sem)
1764 -- Redundant_Use (Flag13-Sem)
1765 -- Has_Private_View (Flag11-Sem) (set in generic units)
1766 -- plus fields for expression
1767
1768 --------------------------
1769 -- 2.4 Numeric Literal --
1770 --------------------------
1771
1772 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1773
1774 ----------------------------
1775 -- 2.4.1 Decimal Literal --
1776 ----------------------------
1777
1778 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1779
1780 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1781
1782 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1783
1784 -- Decimal literals appear in the tree as either integer literal nodes
1785 -- or real literal nodes, depending on whether a period is present.
1786
1787 -- Note: literal nodes appear as a result of direct use of literals
1788 -- in the source program, and also as the result of evaluating
1789 -- expressions at compile time. In the latter case, it is possible
1790 -- to construct real literals that have no syntactic representation
1791 -- using the standard literal format. Such literals are listed by
1792 -- Sprint using the notation [numerator / denominator].
1793
1794 -- Note: the value of an integer literal node created by the front end
1795 -- is never outside the range of values of the base type. However, it
1796 -- can be the case that the value is outside the range of the
1797 -- particular subtype. This happens in the case of integer overflows
1798 -- with checks suppressed.
1799
1800 -- N_Integer_Literal
1801 -- Sloc points to literal
1802 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1803 -- has been constant-folded into its literal value.
1804 -- Intval (Uint3) contains integer value of literal
1805 -- plus fields for expression
1806 -- Print_In_Hex (Flag13-Sem)
1807
1808 -- N_Real_Literal
1809 -- Sloc points to literal
1810 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1811 -- has been constant-folded into its literal value.
1812 -- Realval (Ureal3) contains real value of literal
1813 -- Corresponding_Integer_Value (Uint4-Sem)
1814 -- Is_Machine_Number (Flag11-Sem)
1815 -- plus fields for expression
1816
1817 --------------------------
1818 -- 2.4.2 Based Literal --
1819 --------------------------
1820
1821 -- BASED_LITERAL ::=
1822 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1823
1824 -- BASE ::= NUMERAL
1825
1826 -- BASED_NUMERAL ::=
1827 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1828
1829 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1830
1831 -- Based literals appear in the tree as either integer literal nodes
1832 -- or real literal nodes, depending on whether a period is present.
1833
1834 ----------------------------
1835 -- 2.5 Character Literal --
1836 ----------------------------
1837
1838 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1839
1840 -- N_Character_Literal
1841 -- Sloc points to literal
1842 -- Chars (Name1) contains the Name_Id for the identifier
1843 -- Char_Literal_Value (Uint2) contains the literal value
1844 -- Entity (Node4-Sem)
1845 -- Associated_Node (Node4-Sem)
1846 -- Has_Private_View (Flag11-Sem) set in generic units.
1847 -- plus fields for expression
1848
1849 -- Note: the Entity field will be missing (set to Empty) for character
1850 -- literals whose type is Standard.Wide_Character or Standard.Character
1851 -- or a type derived from one of these two. In this case the character
1852 -- literal stands for its own coding. The reason we take this irregular
1853 -- short cut is to avoid the need to build lots of junk defining
1854 -- character literal nodes.
1855
1856 -------------------------
1857 -- 2.6 String Literal --
1858 -------------------------
1859
1860 -- STRING LITERAL ::= "{STRING_ELEMENT}"
1861
1862 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
1863 -- single GRAPHIC_CHARACTER other than a quotation mark.
1864 --
1865 -- Is_Folded_In_Parser is True if the parser created this literal by
1866 -- folding a sequence of "&" operators. For example, if the source code
1867 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
1868 -- is set. This flag is needed because the parser doesn't know about
1869 -- visibility, so the folded result might be wrong, and semantic
1870 -- analysis needs to check for that.
1871
1872 -- N_String_Literal
1873 -- Sloc points to literal
1874 -- Strval (Str3) contains Id of string value
1875 -- Has_Wide_Character (Flag11-Sem)
1876 -- Is_Folded_In_Parser (Flag4)
1877 -- plus fields for expression
1878
1879 ------------------
1880 -- 2.7 Comment --
1881 ------------------
1882
1883 -- A COMMENT starts with two adjacent hyphens and extends up to the
1884 -- end of the line. A COMMENT may appear on any line of a program.
1885
1886 -- Comments are skipped by the scanner and do not appear in the tree.
1887 -- It is possible to reconstruct the position of comments with respect
1888 -- to the elements of the tree by using the source position (Sloc)
1889 -- pointers that appear in every tree node.
1890
1891 -----------------
1892 -- 2.8 Pragma --
1893 -----------------
1894
1895 -- PRAGMA ::= pragma IDENTIFIER
1896 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
1897
1898 -- Note that a pragma may appear in the tree anywhere a declaration
1899 -- or a statement may appear, as well as in some other situations
1900 -- which are explicitly documented.
1901
1902 -- N_Pragma
1903 -- Sloc points to pragma identifier
1904 -- Next_Pragma (Node1-Sem)
1905 -- Pragma_Argument_Associations (List2) (set to No_List if none)
1906 -- Debug_Statement (Node3) (set to Empty if not Debug, Assert)
1907 -- Pragma_Identifier (Node4)
1908 -- Next_Rep_Item (Node5-Sem)
1909 -- PPC_Enabled (Flag5-Sem)
1910
1911 -- Note: we should have a section on what pragmas are passed on to
1912 -- the back end to be processed. This section should note that pragma
1913 -- Psect_Object is always converted to Common_Object, but there are
1914 -- undoubtedly many other similar notes required ???
1915
1916 -- Note: a utility function Pragma_Name may be applied to pragma nodes
1917 -- to conveniently obtain the Chars field of the Pragma_Identifier.
1918
1919 --------------------------------------
1920 -- 2.8 Pragma Argument Association --
1921 --------------------------------------
1922
1923 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
1924 -- [pragma_argument_IDENTIFIER =>] NAME
1925 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
1926
1927 -- N_Pragma_Argument_Association
1928 -- Sloc points to first token in association
1929 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
1930 -- Expression (Node3)
1931
1932 ------------------------
1933 -- 2.9 Reserved Word --
1934 ------------------------
1935
1936 -- Reserved words are parsed by the scanner, and returned as the
1937 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
1938
1939 ----------------------------
1940 -- 3.1 Basic Declaration --
1941 ----------------------------
1942
1943 -- BASIC_DECLARATION ::=
1944 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
1945 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
1946 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
1947 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
1948 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
1949 -- | GENERIC_INSTANTIATION
1950
1951 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
1952 -- see further description in section on semantic nodes.
1953
1954 -- Also, in the tree that is constructed, a pragma may appear
1955 -- anywhere that a declaration may appear.
1956
1957 ------------------------------
1958 -- 3.1 Defining Identifier --
1959 ------------------------------
1960
1961 -- DEFINING_IDENTIFIER ::= IDENTIFIER
1962
1963 -- A defining identifier is an entity, which has additional fields
1964 -- depending on the setting of the Ekind field. These additional
1965 -- fields are defined (and access subprograms declared) in package
1966 -- Einfo.
1967
1968 -- Note: N_Defining_Identifier is an extended node whose fields are
1969 -- deliberate layed out to match the layout of fields in an ordinary
1970 -- N_Identifier node allowing for easy alteration of an identifier
1971 -- node into a defining identifier node. For details, see procedure
1972 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
1973
1974 -- N_Defining_Identifier
1975 -- Sloc points to identifier
1976 -- Chars (Name1) contains the Name_Id for the identifier
1977 -- Next_Entity (Node2-Sem)
1978 -- Scope (Node3-Sem)
1979 -- Etype (Node5-Sem)
1980
1981 -----------------------------
1982 -- 3.2.1 Type Declaration --
1983 -----------------------------
1984
1985 -- TYPE_DECLARATION ::=
1986 -- FULL_TYPE_DECLARATION
1987 -- | INCOMPLETE_TYPE_DECLARATION
1988 -- | PRIVATE_TYPE_DECLARATION
1989 -- | PRIVATE_EXTENSION_DECLARATION
1990
1991 ----------------------------------
1992 -- 3.2.1 Full Type Declaration --
1993 ----------------------------------
1994
1995 -- FULL_TYPE_DECLARATION ::=
1996 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
1997 -- is TYPE_DEFINITION;
1998 -- | TASK_TYPE_DECLARATION
1999 -- | PROTECTED_TYPE_DECLARATION
2000
2001 -- The full type declaration node is used only for the first case. The
2002 -- second case (concurrent type declaration), is represented directly
2003 -- by a task type declaration or a protected type declaration.
2004
2005 -- N_Full_Type_Declaration
2006 -- Sloc points to TYPE
2007 -- Defining_Identifier (Node1)
2008 -- Discriminant_Specifications (List4) (set to No_List if none)
2009 -- Type_Definition (Node3)
2010 -- Discr_Check_Funcs_Built (Flag11-Sem)
2011
2012 ----------------------------
2013 -- 3.2.1 Type Definition --
2014 ----------------------------
2015
2016 -- TYPE_DEFINITION ::=
2017 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2018 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2019 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2020 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2021
2022 --------------------------------
2023 -- 3.2.2 Subtype Declaration --
2024 --------------------------------
2025
2026 -- SUBTYPE_DECLARATION ::=
2027 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
2028
2029 -- The subtype indication field is set to Empty for subtypes
2030 -- declared in package Standard (Positive, Natural).
2031
2032 -- N_Subtype_Declaration
2033 -- Sloc points to SUBTYPE
2034 -- Defining_Identifier (Node1)
2035 -- Null_Exclusion_Present (Flag11)
2036 -- Subtype_Indication (Node5)
2037 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2038 -- Exception_Junk (Flag8-Sem)
2039
2040 -------------------------------
2041 -- 3.2.2 Subtype Indication --
2042 -------------------------------
2043
2044 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2045
2046 -- Note: if no constraint is present, the subtype indication appears
2047 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2048 -- node is used only if a constraint is present.
2049
2050 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2051 -- with the null-exclusion part (see AI-231), we had to introduce a new
2052 -- attribute in all the parents of subtype_indication nodes to indicate
2053 -- if the null-exclusion is present.
2054
2055 -- Note: the reason that this node has expression fields is that a
2056 -- subtype indication can appear as an operand of a membership test.
2057
2058 -- N_Subtype_Indication
2059 -- Sloc points to first token of subtype mark
2060 -- Subtype_Mark (Node4)
2061 -- Constraint (Node3)
2062 -- Etype (Node5-Sem)
2063 -- Must_Not_Freeze (Flag8-Sem)
2064
2065 -- Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2066 -- reason for this redundancy is so that in a list of array index types,
2067 -- the Etype can be uniformly accessed to determine the subscript type.
2068 -- This means that no Itype is constructed for the actual subtype that
2069 -- is created by the subtype indication. If such an Itype is required,
2070 -- it is constructed in the context in which the indication appears.
2071
2072 -------------------------
2073 -- 3.2.2 Subtype Mark --
2074 -------------------------
2075
2076 -- SUBTYPE_MARK ::= subtype_NAME
2077
2078 -----------------------
2079 -- 3.2.2 Constraint --
2080 -----------------------
2081
2082 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2083
2084 ------------------------------
2085 -- 3.2.2 Scalar Constraint --
2086 ------------------------------
2087
2088 -- SCALAR_CONSTRAINT ::=
2089 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2090
2091 ---------------------------------
2092 -- 3.2.2 Composite Constraint --
2093 ---------------------------------
2094
2095 -- COMPOSITE_CONSTRAINT ::=
2096 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2097
2098 -------------------------------
2099 -- 3.3.1 Object Declaration --
2100 -------------------------------
2101
2102 -- OBJECT_DECLARATION ::=
2103 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2104 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION];
2105 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2106 -- ACCESS_DEFINITION [:= EXPRESSION];
2107 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2108 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION];
2109 -- | SINGLE_TASK_DECLARATION
2110 -- | SINGLE_PROTECTED_DECLARATION
2111
2112 -- Note: aliased is not permitted in Ada 83 mode
2113
2114 -- The N_Object_Declaration node is only for the first two cases.
2115 -- Single task declaration is handled by P_Task (9.1)
2116 -- Single protected declaration is handled by P_protected (9.5)
2117
2118 -- Although the syntax allows multiple identifiers in the list, the
2119 -- semantics is as though successive declarations were given with
2120 -- identical type definition and expression components. To simplify
2121 -- semantic processing, the parser represents a multiple declaration
2122 -- case as a sequence of single declarations, using the More_Ids and
2123 -- Prev_Ids flags to preserve the original source form as described
2124 -- in the section on "Handling of Defining Identifier Lists".
2125
2126 -- The flag Has_Init_Expression is set if an initializing expression
2127 -- is present. Normally it is set if and only if Expression contains
2128 -- a non-empty value, but there is an exception to this. When the
2129 -- initializing expression is an aggregate which requires explicit
2130 -- assignments, the Expression field gets set to Empty, but this flag
2131 -- is still set, so we don't forget we had an initializing expression.
2132
2133 -- Note: if a range check is required for the initialization
2134 -- expression then the Do_Range_Check flag is set in the Expression,
2135 -- with the check being done against the type given by the object
2136 -- definition, which is also the Etype of the defining identifier.
2137
2138 -- Note: the contents of the Expression field must be ignored (i.e.
2139 -- treated as though it were Empty) if No_Initialization is set True.
2140
2141 -- Note: the back end places some restrictions on the form of the
2142 -- Expression field. If the object being declared is Atomic, then
2143 -- the Expression may not have the form of an aggregate (since this
2144 -- might cause the back end to generate separate assignments). It
2145 -- also cannot be a reference to an object marked as a true constant
2146 -- (Is_True_Constant flag set), where the object is itself initalized
2147 -- with an aggregate. If necessary the front end must generate an
2148 -- extra temporary (with Is_True_Constant set False), and initialize
2149 -- this temporary as required (the temporary itself is not atomic).
2150
2151 -- Note: there is not node kind for object definition. Instead, the
2152 -- corresponding field holds a subtype indication, an array type
2153 -- definition, or (Ada 2005, AI-406) an access definition.
2154
2155 -- N_Object_Declaration
2156 -- Sloc points to first identifier
2157 -- Defining_Identifier (Node1)
2158 -- Aliased_Present (Flag4) set if ALIASED appears
2159 -- Constant_Present (Flag17) set if CONSTANT appears
2160 -- Null_Exclusion_Present (Flag11)
2161 -- Object_Definition (Node4) subtype indic./array type def./ access def.
2162 -- Expression (Node3) (set to Empty if not present)
2163 -- Handler_List_Entry (Node2-Sem)
2164 -- Corresponding_Generic_Association (Node5-Sem)
2165 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2166 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2167 -- No_Initialization (Flag13-Sem)
2168 -- Assignment_OK (Flag15-Sem)
2169 -- Exception_Junk (Flag8-Sem)
2170 -- Is_Subprogram_Descriptor (Flag16-Sem)
2171 -- Has_Init_Expression (Flag14)
2172
2173 -------------------------------------
2174 -- 3.3.1 Defining Identifier List --
2175 -------------------------------------
2176
2177 -- DEFINING_IDENTIFIER_LIST ::=
2178 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2179
2180 -------------------------------
2181 -- 3.3.2 Number Declaration --
2182 -------------------------------
2183
2184 -- NUMBER_DECLARATION ::=
2185 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2186
2187 -- Although the syntax allows multiple identifiers in the list, the
2188 -- semantics is as though successive declarations were given with
2189 -- identical expressions. To simplify semantic processing, the parser
2190 -- represents a multiple declaration case as a sequence of single
2191 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2192 -- the original source form as described in the section on "Handling
2193 -- of Defining Identifier Lists".
2194
2195 -- N_Number_Declaration
2196 -- Sloc points to first identifier
2197 -- Defining_Identifier (Node1)
2198 -- Expression (Node3)
2199 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2200 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2201
2202 ----------------------------------
2203 -- 3.4 Derived Type Definition --
2204 ----------------------------------
2205
2206 -- DERIVED_TYPE_DEFINITION ::=
2207 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2208 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2209
2210 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2211 -- in Ada 83 mode
2212
2213 -- Note: a record extension part is required if ABSTRACT is present
2214
2215 -- N_Derived_Type_Definition
2216 -- Sloc points to NEW
2217 -- Abstract_Present (Flag4)
2218 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2219 -- Subtype_Indication (Node5)
2220 -- Record_Extension_Part (Node3) (set to Empty if not present)
2221 -- Limited_Present (Flag17)
2222 -- Task_Present (Flag5) set in task interfaces
2223 -- Protected_Present (Flag6) set in protected interfaces
2224 -- Synchronized_Present (Flag7) set in interfaces
2225 -- Interface_List (List2) (set to No_List if none)
2226 -- Interface_Present (Flag16) set in abstract interfaces
2227
2228 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2229 -- Interface_List, and Interface_Present are used for abstract
2230 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2231
2232 ---------------------------
2233 -- 3.5 Range Constraint --
2234 ---------------------------
2235
2236 -- RANGE_CONSTRAINT ::= range RANGE
2237
2238 -- N_Range_Constraint
2239 -- Sloc points to RANGE
2240 -- Range_Expression (Node4)
2241
2242 ----------------
2243 -- 3.5 Range --
2244 ----------------
2245
2246 -- RANGE ::=
2247 -- RANGE_ATTRIBUTE_REFERENCE
2248 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2249
2250 -- Note: the case of a range given as a range attribute reference
2251 -- appears directly in the tree as an attribute reference.
2252
2253 -- Note: the field name for a reference to a range is Range_Expression
2254 -- rather than Range, because range is a reserved keyword in Ada!
2255
2256 -- Note: the reason that this node has expression fields is that a
2257 -- range can appear as an operand of a membership test. The Etype
2258 -- field is the type of the range (we do NOT construct an implicit
2259 -- subtype to represent the range exactly).
2260
2261 -- N_Range
2262 -- Sloc points to ..
2263 -- Low_Bound (Node1)
2264 -- High_Bound (Node2)
2265 -- Includes_Infinities (Flag11)
2266 -- plus fields for expression
2267
2268 -- Note: if the range appears in a context, such as a subtype
2269 -- declaration, where range checks are required on one or both of
2270 -- the expression fields, then type conversion nodes are inserted
2271 -- to represent the required checks.
2272
2273 ----------------------------------------
2274 -- 3.5.1 Enumeration Type Definition --
2275 ----------------------------------------
2276
2277 -- ENUMERATION_TYPE_DEFINITION ::=
2278 -- (ENUMERATION_LITERAL_SPECIFICATION
2279 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2280
2281 -- Note: the Literals field in the node described below is null for
2282 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2283 -- which special processing handles these types as special cases.
2284
2285 -- N_Enumeration_Type_Definition
2286 -- Sloc points to left parenthesis
2287 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2288 -- End_Label (Node4) (set to Empty if internally generated record)
2289
2290 ----------------------------------------------
2291 -- 3.5.1 Enumeration Literal Specification --
2292 ----------------------------------------------
2293
2294 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2295 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2296
2297 ---------------------------------------
2298 -- 3.5.1 Defining Character Literal --
2299 ---------------------------------------
2300
2301 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2302
2303 -- A defining character literal is an entity, which has additional
2304 -- fields depending on the setting of the Ekind field. These
2305 -- additional fields are defined (and access subprograms declared)
2306 -- in package Einfo.
2307
2308 -- Note: N_Defining_Character_Literal is an extended node whose fields
2309 -- are deliberate layed out to match the layout of fields in an ordinary
2310 -- N_Character_Literal node allowing for easy alteration of a character
2311 -- literal node into a defining character literal node. For details, see
2312 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2313
2314 -- N_Defining_Character_Literal
2315 -- Sloc points to literal
2316 -- Chars (Name1) contains the Name_Id for the identifier
2317 -- Next_Entity (Node2-Sem)
2318 -- Scope (Node3-Sem)
2319 -- Etype (Node5-Sem)
2320
2321 ------------------------------------
2322 -- 3.5.4 Integer Type Definition --
2323 ------------------------------------
2324
2325 -- Note: there is an error in this rule in the latest version of the
2326 -- grammar, so we have retained the old rule pending clarification.
2327
2328 -- INTEGER_TYPE_DEFINITION ::=
2329 -- SIGNED_INTEGER_TYPE_DEFINITION
2330 -- | MODULAR_TYPE_DEFINITION
2331
2332 -------------------------------------------
2333 -- 3.5.4 Signed Integer Type Definition --
2334 -------------------------------------------
2335
2336 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2337 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2338
2339 -- Note: the Low_Bound and High_Bound fields are set to Empty
2340 -- for integer types defined in package Standard.
2341
2342 -- N_Signed_Integer_Type_Definition
2343 -- Sloc points to RANGE
2344 -- Low_Bound (Node1)
2345 -- High_Bound (Node2)
2346
2347 ------------------------------------
2348 -- 3.5.4 Modular Type Definition --
2349 ------------------------------------
2350
2351 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2352
2353 -- N_Modular_Type_Definition
2354 -- Sloc points to MOD
2355 -- Expression (Node3)
2356
2357 ---------------------------------
2358 -- 3.5.6 Real Type Definition --
2359 ---------------------------------
2360
2361 -- REAL_TYPE_DEFINITION ::=
2362 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2363
2364 --------------------------------------
2365 -- 3.5.7 Floating Point Definition --
2366 --------------------------------------
2367
2368 -- FLOATING_POINT_DEFINITION ::=
2369 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2370
2371 -- Note: The Digits_Expression and Real_Range_Specifications fields
2372 -- are set to Empty for floating-point types declared in Standard.
2373
2374 -- N_Floating_Point_Definition
2375 -- Sloc points to DIGITS
2376 -- Digits_Expression (Node2)
2377 -- Real_Range_Specification (Node4) (set to Empty if not present)
2378
2379 -------------------------------------
2380 -- 3.5.7 Real Range Specification --
2381 -------------------------------------
2382
2383 -- REAL_RANGE_SPECIFICATION ::=
2384 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2385
2386 -- N_Real_Range_Specification
2387 -- Sloc points to RANGE
2388 -- Low_Bound (Node1)
2389 -- High_Bound (Node2)
2390
2391 -----------------------------------
2392 -- 3.5.9 Fixed Point Definition --
2393 -----------------------------------
2394
2395 -- FIXED_POINT_DEFINITION ::=
2396 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2397
2398 --------------------------------------------
2399 -- 3.5.9 Ordinary Fixed Point Definition --
2400 --------------------------------------------
2401
2402 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2403 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2404
2405 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2406
2407 -- N_Ordinary_Fixed_Point_Definition
2408 -- Sloc points to DELTA
2409 -- Delta_Expression (Node3)
2410 -- Real_Range_Specification (Node4)
2411
2412 -------------------------------------------
2413 -- 3.5.9 Decimal Fixed Point Definition --
2414 -------------------------------------------
2415
2416 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2417 -- delta static_EXPRESSION
2418 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2419
2420 -- Note: decimal types are not permitted in Ada 83 mode
2421
2422 -- N_Decimal_Fixed_Point_Definition
2423 -- Sloc points to DELTA
2424 -- Delta_Expression (Node3)
2425 -- Digits_Expression (Node2)
2426 -- Real_Range_Specification (Node4) (set to Empty if not present)
2427
2428 ------------------------------
2429 -- 3.5.9 Digits Constraint --
2430 ------------------------------
2431
2432 -- DIGITS_CONSTRAINT ::=
2433 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2434
2435 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2436 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2437
2438 -- N_Digits_Constraint
2439 -- Sloc points to DIGITS
2440 -- Digits_Expression (Node2)
2441 -- Range_Constraint (Node4) (set to Empty if not present)
2442
2443 --------------------------------
2444 -- 3.6 Array Type Definition --
2445 --------------------------------
2446
2447 -- ARRAY_TYPE_DEFINITION ::=
2448 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2449
2450 -----------------------------------------
2451 -- 3.6 Unconstrained Array Definition --
2452 -----------------------------------------
2453
2454 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2455 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2456 -- COMPONENT_DEFINITION
2457
2458 -- Note: dimensionality of array is indicated by number of entries in
2459 -- the Subtype_Marks list, which has one entry for each dimension.
2460
2461 -- N_Unconstrained_Array_Definition
2462 -- Sloc points to ARRAY
2463 -- Subtype_Marks (List2)
2464 -- Component_Definition (Node4)
2465
2466 -----------------------------------
2467 -- 3.6 Index Subtype Definition --
2468 -----------------------------------
2469
2470 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2471
2472 -- There is no explicit node in the tree for an index subtype
2473 -- definition since the N_Unconstrained_Array_Definition node
2474 -- incorporates the type marks which appear in this context.
2475
2476 ---------------------------------------
2477 -- 3.6 Constrained Array Definition --
2478 ---------------------------------------
2479
2480 -- CONSTRAINED_ARRAY_DEFINITION ::=
2481 -- array (DISCRETE_SUBTYPE_DEFINITION
2482 -- {, DISCRETE_SUBTYPE_DEFINITION})
2483 -- of COMPONENT_DEFINITION
2484
2485 -- Note: dimensionality of array is indicated by number of entries
2486 -- in the Discrete_Subtype_Definitions list, which has one entry
2487 -- for each dimension.
2488
2489 -- N_Constrained_Array_Definition
2490 -- Sloc points to ARRAY
2491 -- Discrete_Subtype_Definitions (List2)
2492 -- Component_Definition (Node4)
2493
2494 --------------------------------------
2495 -- 3.6 Discrete Subtype Definition --
2496 --------------------------------------
2497
2498 -- DISCRETE_SUBTYPE_DEFINITION ::=
2499 -- discrete_SUBTYPE_INDICATION | RANGE
2500
2501 -------------------------------
2502 -- 3.6 Component Definition --
2503 -------------------------------
2504
2505 -- COMPONENT_DEFINITION ::=
2506 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2507
2508 -- Note: although the syntax does not permit a component definition to
2509 -- be an anonymous array (and the parser will diagnose such an attempt
2510 -- with an appropriate message), it is possible for anonymous arrays
2511 -- to appear as component definitions. The semantics and back end handle
2512 -- this case properly, and the expander in fact generates such cases.
2513 -- Access_Definition is an optional field that gives support to
2514 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2515 -- Subtype_Indication field or else the Access_Definition field.
2516
2517 -- N_Component_Definition
2518 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2519 -- Aliased_Present (Flag4)
2520 -- Null_Exclusion_Present (Flag11)
2521 -- Subtype_Indication (Node5) (set to Empty if not present)
2522 -- Access_Definition (Node3) (set to Empty if not present)
2523
2524 -----------------------------
2525 -- 3.6.1 Index Constraint --
2526 -----------------------------
2527
2528 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2529
2530 -- It is not in general possible to distinguish between discriminant
2531 -- constraints and index constraints at parse time, since a simple
2532 -- name could be either the subtype mark of a discrete range, or an
2533 -- expression in a discriminant association with no name. Either
2534 -- entry appears simply as the name, and the semantic parse must
2535 -- distinguish between the two cases. Thus we use a common tree
2536 -- node format for both of these constraint types.
2537
2538 -- See Discriminant_Constraint for format of node
2539
2540 ---------------------------
2541 -- 3.6.1 Discrete Range --
2542 ---------------------------
2543
2544 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2545
2546 ----------------------------
2547 -- 3.7 Discriminant Part --
2548 ----------------------------
2549
2550 -- DISCRIMINANT_PART ::=
2551 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2552
2553 ------------------------------------
2554 -- 3.7 Unknown Discriminant Part --
2555 ------------------------------------
2556
2557 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2558
2559 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2560
2561 -- There is no explicit node in the tree for an unknown discriminant
2562 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2563 -- parent node.
2564
2565 ----------------------------------
2566 -- 3.7 Known Discriminant Part --
2567 ----------------------------------
2568
2569 -- KNOWN_DISCRIMINANT_PART ::=
2570 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2571
2572 -------------------------------------
2573 -- 3.7 Discriminant Specification --
2574 -------------------------------------
2575
2576 -- DISCRIMINANT_SPECIFICATION ::=
2577 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2578 -- [:= DEFAULT_EXPRESSION]
2579 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2580 -- [:= DEFAULT_EXPRESSION]
2581
2582 -- Although the syntax allows multiple identifiers in the list, the
2583 -- semantics is as though successive specifications were given with
2584 -- identical type definition and expression components. To simplify
2585 -- semantic processing, the parser represents a multiple declaration
2586 -- case as a sequence of single specifications, using the More_Ids and
2587 -- Prev_Ids flags to preserve the original source form as described
2588 -- in the section on "Handling of Defining Identifier Lists".
2589
2590 -- N_Discriminant_Specification
2591 -- Sloc points to first identifier
2592 -- Defining_Identifier (Node1)
2593 -- Null_Exclusion_Present (Flag11)
2594 -- Discriminant_Type (Node5) subtype mark or access parameter definition
2595 -- Expression (Node3) (set to Empty if no default expression)
2596 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2597 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2598
2599 -----------------------------
2600 -- 3.7 Default Expression --
2601 -----------------------------
2602
2603 -- DEFAULT_EXPRESSION ::= EXPRESSION
2604
2605 ------------------------------------
2606 -- 3.7.1 Discriminant Constraint --
2607 ------------------------------------
2608
2609 -- DISCRIMINANT_CONSTRAINT ::=
2610 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2611
2612 -- It is not in general possible to distinguish between discriminant
2613 -- constraints and index constraints at parse time, since a simple
2614 -- name could be either the subtype mark of a discrete range, or an
2615 -- expression in a discriminant association with no name. Either
2616 -- entry appears simply as the name, and the semantic parse must
2617 -- distinguish between the two cases. Thus we use a common tree
2618 -- node format for both of these constraint types.
2619
2620 -- N_Index_Or_Discriminant_Constraint
2621 -- Sloc points to left paren
2622 -- Constraints (List1) points to list of discrete ranges or
2623 -- discriminant associations
2624
2625 -------------------------------------
2626 -- 3.7.1 Discriminant Association --
2627 -------------------------------------
2628
2629 -- DISCRIMINANT_ASSOCIATION ::=
2630 -- [discriminant_SELECTOR_NAME
2631 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2632
2633 -- Note: a discriminant association that has no selector name list
2634 -- appears directly as an expression in the tree.
2635
2636 -- N_Discriminant_Association
2637 -- Sloc points to first token of discriminant association
2638 -- Selector_Names (List1) (always non-empty, since if no selector
2639 -- names are present, this node is not used, see comment above)
2640 -- Expression (Node3)
2641
2642 ---------------------------------
2643 -- 3.8 Record Type Definition --
2644 ---------------------------------
2645
2646 -- RECORD_TYPE_DEFINITION ::=
2647 -- [[abstract] tagged] [limited] RECORD_DEFINITION
2648
2649 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2650
2651 -- There is no explicit node in the tree for a record type definition.
2652 -- Instead the flags for Tagged_Present and Limited_Present appear in
2653 -- the N_Record_Definition node for a record definition appearing in
2654 -- the context of a record type definition.
2655
2656 ----------------------------
2657 -- 3.8 Record Definition --
2658 ----------------------------
2659
2660 -- RECORD_DEFINITION ::=
2661 -- record
2662 -- COMPONENT_LIST
2663 -- end record
2664 -- | null record
2665
2666 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
2667 -- flags appear only for a record definition appearing in a record
2668 -- type definition.
2669
2670 -- Note: the NULL RECORD case is not permitted in Ada 83
2671
2672 -- N_Record_Definition
2673 -- Sloc points to RECORD or NULL
2674 -- End_Label (Node4) (set to Empty if internally generated record)
2675 -- Abstract_Present (Flag4)
2676 -- Tagged_Present (Flag15)
2677 -- Limited_Present (Flag17)
2678 -- Component_List (Node1) empty in null record case
2679 -- Null_Present (Flag13) set in null record case
2680 -- Task_Present (Flag5) set in task interfaces
2681 -- Protected_Present (Flag6) set in protected interfaces
2682 -- Synchronized_Present (Flag7) set in interfaces
2683 -- Interface_Present (Flag16) set in abstract interfaces
2684 -- Interface_List (List2) (set to No_List if none)
2685
2686 -- Note: Task_Present, Protected_Present, Synchronized _Present,
2687 -- Interface_List and Interface_Present are used for abstract
2688 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2689
2690 -------------------------
2691 -- 3.8 Component List --
2692 -------------------------
2693
2694 -- COMPONENT_LIST ::=
2695 -- COMPONENT_ITEM {COMPONENT_ITEM}
2696 -- | {COMPONENT_ITEM} VARIANT_PART
2697 -- | null;
2698
2699 -- N_Component_List
2700 -- Sloc points to first token of component list
2701 -- Component_Items (List3)
2702 -- Variant_Part (Node4) (set to Empty if no variant part)
2703 -- Null_Present (Flag13)
2704
2705 -------------------------
2706 -- 3.8 Component Item --
2707 -------------------------
2708
2709 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2710
2711 -- Note: A component item can also be a pragma, and in the tree
2712 -- that is obtained after semantic processing, a component item
2713 -- can be an N_Null node resulting from a non-recognized pragma.
2714
2715 --------------------------------
2716 -- 3.8 Component Declaration --
2717 --------------------------------
2718
2719 -- COMPONENT_DECLARATION ::=
2720 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2721 -- [:= DEFAULT_EXPRESSION]
2722
2723 -- Note: although the syntax does not permit a component definition to
2724 -- be an anonymous array (and the parser will diagnose such an attempt
2725 -- with an appropriate message), it is possible for anonymous arrays
2726 -- to appear as component definitions. The semantics and back end handle
2727 -- this case properly, and the expander in fact generates such cases.
2728
2729 -- Although the syntax allows multiple identifiers in the list, the
2730 -- semantics is as though successive declarations were given with the
2731 -- same component definition and expression components. To simplify
2732 -- semantic processing, the parser represents a multiple declaration
2733 -- case as a sequence of single declarations, using the More_Ids and
2734 -- Prev_Ids flags to preserve the original source form as described
2735 -- in the section on "Handling of Defining Identifier Lists".
2736
2737 -- N_Component_Declaration
2738 -- Sloc points to first identifier
2739 -- Defining_Identifier (Node1)
2740 -- Component_Definition (Node4)
2741 -- Expression (Node3) (set to Empty if no default expression)
2742 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2743 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2744
2745 -------------------------
2746 -- 3.8.1 Variant Part --
2747 -------------------------
2748
2749 -- VARIANT_PART ::=
2750 -- case discriminant_DIRECT_NAME is
2751 -- VARIANT
2752 -- {VARIANT}
2753 -- end case;
2754
2755 -- Note: the variants list can contain pragmas as well as variants.
2756 -- In a properly formed program there is at least one variant.
2757
2758 -- N_Variant_Part
2759 -- Sloc points to CASE
2760 -- Name (Node2)
2761 -- Variants (List1)
2762
2763 --------------------
2764 -- 3.8.1 Variant --
2765 --------------------
2766
2767 -- VARIANT ::=
2768 -- when DISCRETE_CHOICE_LIST =>
2769 -- COMPONENT_LIST
2770
2771 -- N_Variant
2772 -- Sloc points to WHEN
2773 -- Discrete_Choices (List4)
2774 -- Component_List (Node1)
2775 -- Enclosing_Variant (Node2-Sem)
2776 -- Present_Expr (Uint3-Sem)
2777 -- Dcheck_Function (Node5-Sem)
2778
2779 ---------------------------------
2780 -- 3.8.1 Discrete Choice List --
2781 ---------------------------------
2782
2783 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2784
2785 ----------------------------
2786 -- 3.8.1 Discrete Choice --
2787 ----------------------------
2788
2789 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2790
2791 -- Note: in Ada 83 mode, the expression must be a simple expression
2792
2793 -- The only choice that appears explicitly is the OTHERS choice, as
2794 -- defined here. Other cases of discrete choice (expression and
2795 -- discrete range) appear directly. This production is also used
2796 -- for the OTHERS possibility of an exception choice.
2797
2798 -- Note: in accordance with the syntax, the parser does not check that
2799 -- OTHERS appears at the end on its own in a choice list context. This
2800 -- is a semantic check.
2801
2802 -- N_Others_Choice
2803 -- Sloc points to OTHERS
2804 -- Others_Discrete_Choices (List1-Sem)
2805 -- All_Others (Flag11-Sem)
2806
2807 ----------------------------------
2808 -- 3.9.1 Record Extension Part --
2809 ----------------------------------
2810
2811 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2812
2813 -- Note: record extension parts are not permitted in Ada 83 mode
2814
2815 --------------------------------------
2816 -- 3.9.4 Interface Type Definition --
2817 --------------------------------------
2818
2819 -- INTERFACE_TYPE_DEFINITION ::=
2820 -- [limited | task | protected | synchronized]
2821 -- interface [interface_list]
2822
2823 -- Note: Interfaces are implemented with N_Record_Definition and
2824 -- N_Derived_Type_Definition nodes because most of the support
2825 -- for the analysis of abstract types has been reused to
2826 -- analyze abstract interfaces.
2827
2828 ----------------------------------
2829 -- 3.10 Access Type Definition --
2830 ----------------------------------
2831
2832 -- ACCESS_TYPE_DEFINITION ::=
2833 -- ACCESS_TO_OBJECT_DEFINITION
2834 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2835
2836 --------------------------
2837 -- 3.10 Null Exclusion --
2838 --------------------------
2839
2840 -- NULL_EXCLUSION ::= not null
2841
2842 ---------------------------------------
2843 -- 3.10 Access To Object Definition --
2844 ---------------------------------------
2845
2846 -- ACCESS_TO_OBJECT_DEFINITION ::=
2847 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
2848 -- SUBTYPE_INDICATION
2849
2850 -- N_Access_To_Object_Definition
2851 -- Sloc points to ACCESS
2852 -- All_Present (Flag15)
2853 -- Null_Exclusion_Present (Flag11)
2854 -- Subtype_Indication (Node5)
2855 -- Constant_Present (Flag17)
2856
2857 -----------------------------------
2858 -- 3.10 General Access Modifier --
2859 -----------------------------------
2860
2861 -- GENERAL_ACCESS_MODIFIER ::= all | constant
2862
2863 -- Note: general access modifiers are not permitted in Ada 83 mode
2864
2865 -- There is no explicit node in the tree for general access modifier.
2866 -- Instead the All_Present or Constant_Present flags are set in the
2867 -- parent node.
2868
2869 -------------------------------------------
2870 -- 3.10 Access To Subprogram Definition --
2871 -------------------------------------------
2872
2873 -- ACCESS_TO_SUBPROGRAM_DEFINITION
2874 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
2875 -- | [NULL_EXCLUSION] access [protected] function
2876 -- PARAMETER_AND_RESULT_PROFILE
2877
2878 -- Note: access to subprograms are not permitted in Ada 83 mode
2879
2880 -- N_Access_Function_Definition
2881 -- Sloc points to ACCESS
2882 -- Null_Exclusion_Present (Flag11)
2883 -- Protected_Present (Flag6)
2884 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2885 -- Result_Definition (Node4) result subtype (subtype mark or access def)
2886
2887 -- N_Access_Procedure_Definition
2888 -- Sloc points to ACCESS
2889 -- Null_Exclusion_Present (Flag11)
2890 -- Protected_Present (Flag6)
2891 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2892
2893 -----------------------------
2894 -- 3.10 Access Definition --
2895 -----------------------------
2896
2897 -- ACCESS_DEFINITION ::=
2898 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
2899 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2900
2901 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
2902
2903 -- N_Access_Definition
2904 -- Sloc points to ACCESS
2905 -- Null_Exclusion_Present (Flag11)
2906 -- All_Present (Flag15)
2907 -- Constant_Present (Flag17)
2908 -- Subtype_Mark (Node4)
2909 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
2910
2911 -----------------------------------------
2912 -- 3.10.1 Incomplete Type Declaration --
2913 -----------------------------------------
2914
2915 -- INCOMPLETE_TYPE_DECLARATION ::=
2916 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2917
2918 -- N_Incomplete_Type_Declaration
2919 -- Sloc points to TYPE
2920 -- Defining_Identifier (Node1)
2921 -- Discriminant_Specifications (List4) (set to No_List if no
2922 -- discriminant part, or if the discriminant part is an
2923 -- unknown discriminant part)
2924 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
2925 -- Tagged_Present (Flag15)
2926
2927 ----------------------------
2928 -- 3.11 Declarative Part --
2929 ----------------------------
2930
2931 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
2932
2933 -- Note: although the parser enforces the syntactic requirement that
2934 -- a declarative part can contain only declarations, the semantic
2935 -- processing may add statements to the list of actions in a
2936 -- declarative part, so the code generator should be prepared
2937 -- to accept a statement in this position.
2938
2939 ----------------------------
2940 -- 3.11 Declarative Item --
2941 ----------------------------
2942
2943 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
2944
2945 ----------------------------------
2946 -- 3.11 Basic Declarative Item --
2947 ----------------------------------
2948
2949 -- BASIC_DECLARATIVE_ITEM ::=
2950 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
2951
2952 ----------------
2953 -- 3.11 Body --
2954 ----------------
2955
2956 -- BODY ::= PROPER_BODY | BODY_STUB
2957
2958 -----------------------
2959 -- 3.11 Proper Body --
2960 -----------------------
2961
2962 -- PROPER_BODY ::=
2963 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
2964
2965 ---------------
2966 -- 4.1 Name --
2967 ---------------
2968
2969 -- NAME ::=
2970 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
2971 -- | INDEXED_COMPONENT | SLICE
2972 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
2973 -- | TYPE_CONVERSION | FUNCTION_CALL
2974 -- | CHARACTER_LITERAL
2975
2976 ----------------------
2977 -- 4.1 Direct Name --
2978 ----------------------
2979
2980 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
2981
2982 -----------------
2983 -- 4.1 Prefix --
2984 -----------------
2985
2986 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
2987
2988 -------------------------------
2989 -- 4.1 Explicit Dereference --
2990 -------------------------------
2991
2992 -- EXPLICIT_DEREFERENCE ::= NAME . all
2993
2994 -- N_Explicit_Dereference
2995 -- Sloc points to ALL
2996 -- Prefix (Node3)
2997 -- Actual_Designated_Subtype (Node4-Sem)
2998 -- plus fields for expression
2999
3000 -------------------------------
3001 -- 4.1 Implicit Dereference --
3002 -------------------------------
3003
3004 -- IMPLICIT_DEREFERENCE ::= NAME
3005
3006 ------------------------------
3007 -- 4.1.1 Indexed Component --
3008 ------------------------------
3009
3010 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3011
3012 -- Note: the parser may generate this node in some situations where it
3013 -- should be a function call. The semantic pass must correct this
3014 -- misidentification (which is inevitable at the parser level).
3015
3016 -- N_Indexed_Component
3017 -- Sloc contains a copy of the Sloc value of the Prefix
3018 -- Prefix (Node3)
3019 -- Expressions (List1)
3020 -- plus fields for expression
3021
3022 -- Note: if any of the subscripts requires a range check, then the
3023 -- Do_Range_Check flag is set on the corresponding expression, with
3024 -- the index type being determined from the type of the Prefix, which
3025 -- references the array being indexed.
3026
3027 -- Note: in a fully analyzed and expanded indexed component node, and
3028 -- hence in any such node that gigi sees, if the prefix is an access
3029 -- type, then an explicit dereference operation has been inserted.
3030
3031 ------------------
3032 -- 4.1.2 Slice --
3033 ------------------
3034
3035 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3036
3037 -- Note: an implicit subtype is created to describe the resulting
3038 -- type, so that the bounds of this type are the bounds of the slice.
3039
3040 -- N_Slice
3041 -- Sloc points to first token of prefix
3042 -- Prefix (Node3)
3043 -- Discrete_Range (Node4)
3044 -- plus fields for expression
3045
3046 -------------------------------
3047 -- 4.1.3 Selected Component --
3048 -------------------------------
3049
3050 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3051
3052 -- Note: selected components that are semantically expanded names get
3053 -- changed during semantic processing into the separate N_Expanded_Name
3054 -- node. See description of this node in the section on semantic nodes.
3055
3056 -- N_Selected_Component
3057 -- Sloc points to period
3058 -- Prefix (Node3)
3059 -- Selector_Name (Node2)
3060 -- Associated_Node (Node4-Sem)
3061 -- Do_Discriminant_Check (Flag13-Sem)
3062 -- Is_In_Discriminant_Check (Flag11-Sem)
3063 -- plus fields for expression
3064
3065 --------------------------
3066 -- 4.1.3 Selector Name --
3067 --------------------------
3068
3069 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3070
3071 --------------------------------
3072 -- 4.1.4 Attribute Reference --
3073 --------------------------------
3074
3075 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3076
3077 -- Note: the syntax is quite ambiguous at this point. Consider:
3078
3079 -- A'Length (X) X is part of the attribute designator
3080 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3081 -- A'Class (X) X is the expression of a type conversion
3082
3083 -- It would be possible for the parser to distinguish these cases
3084 -- by looking at the attribute identifier. However, that would mean
3085 -- more work in introducing new implementation defined attributes,
3086 -- and also it would mean that special processing for attributes
3087 -- would be scattered around, instead of being centralized in the
3088 -- semantic routine that handles an N_Attribute_Reference node.
3089 -- Consequently, the parser in all the above cases stores the
3090 -- expression (X in these examples) as a single element list in
3091 -- in the Expressions field of the N_Attribute_Reference node.
3092
3093 -- Similarly, for attributes like Max which take two arguments,
3094 -- we store the two arguments as a two element list in the
3095 -- Expressions field. Of course it is clear at parse time that
3096 -- this case is really a function call with an attribute as the
3097 -- prefix, but it turns out to be convenient to handle the two
3098 -- argument case in a similar manner to the one argument case,
3099 -- and indeed in general the parser will accept any number of
3100 -- expressions in this position and store them as a list in the
3101 -- attribute reference node. This allows for future addition of
3102 -- attributes that take more than two arguments.
3103
3104 -- Note: named associates are not permitted in function calls where
3105 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3106 -- to skip the normal subprogram argument processing.
3107
3108 -- Note: for the attributes whose designators are technically keywords,
3109 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3110 -- the corresponding name, even though no identifier is involved.
3111
3112 -- Note: the generated code may contain stream attributes applied to
3113 -- limited types for which no stream routines exist officially. In such
3114 -- case, the result is to use the stream attribute for the underlying
3115 -- full type, or in the case of a protected type, the components
3116 -- (including any disriminants) are merely streamed in order.
3117
3118 -- See Exp_Attr for a complete description of which attributes are
3119 -- passed onto Gigi, and which are handled entirely by the front end.
3120
3121 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3122 -- a non-standard enumeration type or a nonzero/zero semantics
3123 -- boolean type, so the value is simply the stored representation.
3124
3125 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3126 -- references a subprogram that is a renaming, then the front end must
3127 -- rewrite the attribute to refer directly to the renamed entity.
3128
3129 -- Note: In generated code, the Address and Unrestricted_Access
3130 -- attributes can be applied to any expression, and the meaning is
3131 -- to create an object containing the value (the object is in the
3132 -- current stack frame), and pass the address of this value. If the
3133 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3134 -- is taken must be on a byte (storage unit) boundary, and if it is
3135 -- not (or may not be), then the generated code must create a copy
3136 -- that is byte aligned, and pass the address of this copy.
3137
3138 -- N_Attribute_Reference
3139 -- Sloc points to apostrophe
3140 -- Prefix (Node3)
3141 -- Attribute_Name (Name2) identifier name from attribute designator
3142 -- Expressions (List1) (set to No_List if no associated expressions)
3143 -- Entity (Node4-Sem) used if the attribute yields a type
3144 -- Associated_Node (Node4-Sem)
3145 -- Do_Overflow_Check (Flag17-Sem)
3146 -- Redundant_Use (Flag13-Sem)
3147 -- Must_Be_Byte_Aligned (Flag14)
3148 -- plus fields for expression
3149
3150 ---------------------------------
3151 -- 4.1.4 Attribute Designator --
3152 ---------------------------------
3153
3154 -- ATTRIBUTE_DESIGNATOR ::=
3155 -- IDENTIFIER [(static_EXPRESSION)]
3156 -- | access | delta | digits
3157
3158 -- There is no explicit node in the tree for an attribute designator.
3159 -- Instead the Attribute_Name and Expressions fields of the parent
3160 -- node (N_Attribute_Reference node) hold the information.
3161
3162 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3163 -- designator, then they are treated as identifiers internally
3164 -- rather than the keywords of the same name.
3165
3166 --------------------------------------
3167 -- 4.1.4 Range Attribute Reference --
3168 --------------------------------------
3169
3170 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3171
3172 -- A range attribute reference is represented in the tree using the
3173 -- normal N_Attribute_Reference node.
3174
3175 ---------------------------------------
3176 -- 4.1.4 Range Attribute Designator --
3177 ---------------------------------------
3178
3179 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3180
3181 -- A range attribute designator is represented in the tree using the
3182 -- normal N_Attribute_Reference node.
3183
3184 --------------------
3185 -- 4.3 Aggregate --
3186 --------------------
3187
3188 -- AGGREGATE ::=
3189 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3190
3191 -----------------------------
3192 -- 4.3.1 Record Aggregate --
3193 -----------------------------
3194
3195 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3196
3197 -- N_Aggregate
3198 -- Sloc points to left parenthesis
3199 -- Expressions (List1) (set to No_List if none or null record case)
3200 -- Component_Associations (List2) (set to No_List if none)
3201 -- Null_Record_Present (Flag17)
3202 -- Aggregate_Bounds (Node3-Sem)
3203 -- Associated_Node (Node4-Sem)
3204 -- Static_Processing_OK (Flag4-Sem)
3205 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3206 -- Expansion_Delayed (Flag11-Sem)
3207 -- Has_Self_Reference (Flag13-Sem)
3208 -- plus fields for expression
3209
3210 -- Note: this structure is used for both record and array aggregates
3211 -- since the two cases are not separable by the parser. The parser
3212 -- makes no attempt to enforce consistency here, so it is up to the
3213 -- semantic phase to make sure that the aggregate is consistent (i.e.
3214 -- that it is not a "half-and-half" case that mixes record and array
3215 -- syntax. In particular, for a record aggregate, the expressions
3216 -- field will be set if there are positional associations.
3217
3218 -- Note: N_Aggregate is not used for all aggregates; in particular,
3219 -- there is a separate node kind for extension aggregates.
3220
3221 -- Note: gigi/gcc can handle array aggregates correctly providing that
3222 -- they are entirely positional, and the array subtype involved has a
3223 -- known at compile time length and is not bit packed, or a convention
3224 -- Fortran array with more than one dimension. If these conditions
3225 -- are not met, then the front end must translate the aggregate into
3226 -- an appropriate set of assignments into a temporary.
3227
3228 -- Note: for the record aggregate case, gigi/gcc can handle all cases
3229 -- of record aggregates, including those for packed, and rep-claused
3230 -- records, and also variant records, providing that there are no
3231 -- variable length fields whose size is not known at runtime, and
3232 -- providing that the aggregate is presented in fully named form.
3233
3234 ----------------------------------------------
3235 -- 4.3.1 Record Component Association List --
3236 ----------------------------------------------
3237
3238 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3239 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3240 -- | null record
3241
3242 -- There is no explicit node in the tree for a record component
3243 -- association list. Instead the Null_Record_Present flag is set in
3244 -- the parent node for the NULL RECORD case.
3245
3246 ------------------------------------------------------
3247 -- 4.3.1 Record Component Association (also 4.3.3) --
3248 ------------------------------------------------------
3249
3250 -- RECORD_COMPONENT_ASSOCIATION ::=
3251 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3252
3253 -- N_Component_Association
3254 -- Sloc points to first selector name
3255 -- Choices (List1)
3256 -- Loop_Actions (List2-Sem)
3257 -- Expression (Node3)
3258 -- Box_Present (Flag15)
3259
3260 -- Note: this structure is used for both record component associations
3261 -- and array component associations, since the two cases aren't always
3262 -- separable by the parser. The choices list may represent either a
3263 -- list of selector names in the record aggregate case, or a list of
3264 -- discrete choices in the array aggregate case or an N_Others_Choice
3265 -- node (which appears as a singleton list). Box_Present gives support
3266 -- to Ada 2005 (AI-287).
3267
3268 -----------------------------------
3269 -- 4.3.1 Commponent Choice List --
3270 -----------------------------------
3271
3272 -- COMPONENT_CHOICE_LIST ::=
3273 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3274 -- | others
3275
3276 -- The entries of a component choice list appear in the Choices list of
3277 -- the associated N_Component_Association, as either selector names, or
3278 -- as an N_Others_Choice node.
3279
3280 --------------------------------
3281 -- 4.3.2 Extension Aggregate --
3282 --------------------------------
3283
3284 -- EXTENSION_AGGREGATE ::=
3285 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3286
3287 -- Note: extension aggregates are not permitted in Ada 83 mode
3288
3289 -- N_Extension_Aggregate
3290 -- Sloc points to left parenthesis
3291 -- Ancestor_Part (Node3)
3292 -- Associated_Node (Node4-Sem)
3293 -- Expressions (List1) (set to No_List if none or null record case)
3294 -- Component_Associations (List2) (set to No_List if none)
3295 -- Null_Record_Present (Flag17)
3296 -- Expansion_Delayed (Flag11-Sem)
3297 -- Has_Self_Reference (Flag13-Sem)
3298 -- plus fields for expression
3299
3300 --------------------------
3301 -- 4.3.2 Ancestor Part --
3302 --------------------------
3303
3304 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3305
3306 ----------------------------
3307 -- 4.3.3 Array Aggregate --
3308 ----------------------------
3309
3310 -- ARRAY_AGGREGATE ::=
3311 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3312
3313 ---------------------------------------
3314 -- 4.3.3 Positional Array Aggregate --
3315 ---------------------------------------
3316
3317 -- POSITIONAL_ARRAY_AGGREGATE ::=
3318 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3319 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3320
3321 -- See Record_Aggregate (4.3.1) for node structure
3322
3323 ----------------------------------
3324 -- 4.3.3 Named Array Aggregate --
3325 ----------------------------------
3326
3327 -- NAMED_ARRAY_AGGREGATE ::=
3328 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3329
3330 -- See Record_Aggregate (4.3.1) for node structure
3331
3332 ----------------------------------------
3333 -- 4.3.3 Array Component Association --
3334 ----------------------------------------
3335
3336 -- ARRAY_COMPONENT_ASSOCIATION ::=
3337 -- DISCRETE_CHOICE_LIST => EXPRESSION
3338
3339 -- See Record_Component_Association (4.3.1) for node structure
3340
3341 --------------------------------------------------
3342 -- 4.4 Expression/Relation/Term/Factor/Primary --
3343 --------------------------------------------------
3344
3345 -- EXPRESSION ::=
3346 -- RELATION {and RELATION} | RELATION {and then RELATION}
3347 -- | RELATION {or RELATION} | RELATION {or else RELATION}
3348 -- | RELATION {xor RELATION}
3349
3350 -- RELATION ::=
3351 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3352 -- | SIMPLE_EXPRESSION [not] in RANGE
3353 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3354
3355 -- SIMPLE_EXPRESSION ::=
3356 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3357
3358 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3359
3360 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3361
3362 -- No nodes are generated for any of these constructs. Instead, the
3363 -- node for the operator appears directly. When we refer to an
3364 -- expression in this description, we mean any of the possible
3365 -- consistuent components of an expression (e.g. identifier is
3366 -- an example of an expression).
3367
3368 ------------------
3369 -- 4.4 Primary --
3370 ------------------
3371
3372 -- PRIMARY ::=
3373 -- NUMERIC_LITERAL | null
3374 -- | STRING_LITERAL | AGGREGATE
3375 -- | NAME | QUALIFIED_EXPRESSION
3376 -- | ALLOCATOR | (EXPRESSION)
3377
3378 -- Usually there is no explicit node in the tree for primary. Instead
3379 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3380 -- exceptions. First, there is an explicit node for a null primary.
3381
3382 -- N_Null
3383 -- Sloc points to NULL
3384 -- plus fields for expression
3385
3386 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3387 -- that the parser keep track of which subexpressions are enclosed
3388 -- in parentheses, and how many levels of parentheses are used. This
3389 -- information is required for optimization purposes, and also for
3390 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3391 -- conform with ((((1)))) in the body).
3392
3393 -- The parentheses are recorded by keeping a Paren_Count field in every
3394 -- subexpression node (it is actually present in all nodes, but only
3395 -- used in subexpression nodes). This count records the number of
3396 -- levels of parentheses. If the number of levels in the source exceeds
3397 -- the maximum accomodated by this count, then the count is simply left
3398 -- at the maximum value. This means that there are some pathalogical
3399 -- cases of failure to detect conformance failures (e.g. an expression
3400 -- with 500 levels of parens will conform with one with 501 levels),
3401 -- but we do not need to lose sleep over this.
3402
3403 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3404 -- type N_Parenthesized_Expression used to accurately record unlimited
3405 -- numbers of levels of parentheses. However, it turned out to be a
3406 -- real nuisance to have to take into account the possible presence of
3407 -- this node during semantic analysis, since basically parentheses have
3408 -- zero relevance to semantic analysis.
3409
3410 -- Note: the level of parentheses always present in things like
3411 -- aggregates does not count, only the parentheses in the primary
3412 -- (EXPRESSION) affect the setting of the Paren_Count field.
3413
3414 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3415 -- treated as though it were Empty) if No_Initialization is set True.
3416
3417 --------------------------------------
3418 -- 4.5 Short Circuit Control Forms --
3419 --------------------------------------
3420
3421 -- EXPRESSION ::=
3422 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3423
3424 -- Gigi restriction: For both these control forms, the operand and
3425 -- result types are always Standard.Boolean. The expander inserts the
3426 -- required conversion operations where needed to ensure this is the
3427 -- case.
3428
3429 -- N_And_Then
3430 -- Sloc points to AND of AND THEN
3431 -- Left_Opnd (Node2)
3432 -- Right_Opnd (Node3)
3433 -- Actions (List1-Sem)
3434 -- plus fields for expression
3435
3436 -- N_Or_Else
3437 -- Sloc points to OR of OR ELSE
3438 -- Left_Opnd (Node2)
3439 -- Right_Opnd (Node3)
3440 -- Actions (List1-Sem)
3441 -- plus fields for expression
3442
3443 -- Note: The Actions field is used to hold actions associated with
3444 -- the right hand operand. These have to be treated specially since
3445 -- they are not unconditionally executed. See Insert_Actions for a
3446 -- more detailed description of how these actions are handled.
3447
3448 ---------------------------
3449 -- 4.5 Membership Tests --
3450 ---------------------------
3451
3452 -- RELATION ::=
3453 -- SIMPLE_EXPRESSION [not] in RANGE
3454 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3455
3456 -- Note: although the grammar above allows only a range or a
3457 -- subtype mark, the parser in fact will accept any simple
3458 -- expression in place of a subtype mark. This means that the
3459 -- semantic analyzer must be prepared to deal with, and diagnose
3460 -- a simple expression other than a name for the right operand.
3461 -- This simplifies error recovery in the parser.
3462
3463 -- N_In
3464 -- Sloc points to IN
3465 -- Left_Opnd (Node2)
3466 -- Right_Opnd (Node3)
3467 -- plus fields for expression
3468
3469 -- N_Not_In
3470 -- Sloc points to NOT of NOT IN
3471 -- Left_Opnd (Node2)
3472 -- Right_Opnd (Node3)
3473 -- plus fields for expression
3474
3475 --------------------
3476 -- 4.5 Operators --
3477 --------------------
3478
3479 -- LOGICAL_OPERATOR ::= and | or | xor
3480
3481 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3482
3483 -- BINARY_ADDING_OPERATOR ::= + | - | &
3484
3485 -- UNARY_ADDING_OPERATOR ::= + | -
3486
3487 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3488
3489 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3490
3491 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3492
3493 -- x #* y
3494 -- x #/ y
3495 -- x #mod y
3496 -- x #rem y
3497
3498 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3499 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3500 -- All handling of smalls for multiplication and division is handled
3501 -- by the front end (mod and rem result only from expansion). Gigi
3502 -- thus never needs to worry about small values (for other operators
3503 -- operating on fixed-point, e.g. addition, the small value does not
3504 -- have any semantic effect anyway, these are always integer operations.
3505
3506 -- Gigi restriction: For all operators taking Boolean operands, the
3507 -- type is always Standard.Boolean. The expander inserts the required
3508 -- conversion operations where needed to ensure this is the case.
3509
3510 -- N_Op_And
3511 -- Sloc points to AND
3512 -- Do_Length_Check (Flag4-Sem)
3513 -- plus fields for binary operator
3514 -- plus fields for expression
3515
3516 -- N_Op_Or
3517 -- Sloc points to OR
3518 -- Do_Length_Check (Flag4-Sem)
3519 -- plus fields for binary operator
3520 -- plus fields for expression
3521
3522 -- N_Op_Xor
3523 -- Sloc points to XOR
3524 -- Do_Length_Check (Flag4-Sem)
3525 -- plus fields for binary operator
3526 -- plus fields for expression
3527
3528 -- N_Op_Eq
3529 -- Sloc points to =
3530 -- plus fields for binary operator
3531 -- plus fields for expression
3532
3533 -- N_Op_Ne
3534 -- Sloc points to /=
3535 -- plus fields for binary operator
3536 -- plus fields for expression
3537
3538 -- N_Op_Lt
3539 -- Sloc points to <
3540 -- plus fields for binary operator
3541 -- plus fields for expression
3542
3543 -- N_Op_Le
3544 -- Sloc points to <=
3545 -- plus fields for binary operator
3546 -- plus fields for expression
3547
3548 -- N_Op_Gt
3549 -- Sloc points to >
3550 -- plus fields for binary operator
3551 -- plus fields for expression
3552
3553 -- N_Op_Ge
3554 -- Sloc points to >=
3555 -- plus fields for binary operator
3556 -- plus fields for expression
3557
3558 -- N_Op_Add
3559 -- Sloc points to + (binary)
3560 -- plus fields for binary operator
3561 -- plus fields for expression
3562
3563 -- N_Op_Subtract
3564 -- Sloc points to - (binary)
3565 -- plus fields for binary operator
3566 -- plus fields for expression
3567
3568 -- N_Op_Concat
3569 -- Sloc points to &
3570 -- Is_Component_Left_Opnd (Flag13-Sem)
3571 -- Is_Component_Right_Opnd (Flag14-Sem)
3572 -- plus fields for binary operator
3573 -- plus fields for expression
3574
3575 -- N_Op_Multiply
3576 -- Sloc points to *
3577 -- Treat_Fixed_As_Integer (Flag14-Sem)
3578 -- Rounded_Result (Flag18-Sem)
3579 -- plus fields for binary operator
3580 -- plus fields for expression
3581
3582 -- N_Op_Divide
3583 -- Sloc points to /
3584 -- Treat_Fixed_As_Integer (Flag14-Sem)
3585 -- Do_Division_Check (Flag13-Sem)
3586 -- Rounded_Result (Flag18-Sem)
3587 -- plus fields for binary operator
3588 -- plus fields for expression
3589
3590 -- N_Op_Mod
3591 -- Sloc points to MOD
3592 -- Treat_Fixed_As_Integer (Flag14-Sem)
3593 -- Do_Division_Check (Flag13-Sem)
3594 -- plus fields for binary operator
3595 -- plus fields for expression
3596
3597 -- N_Op_Rem
3598 -- Sloc points to REM
3599 -- Treat_Fixed_As_Integer (Flag14-Sem)
3600 -- Do_Division_Check (Flag13-Sem)
3601 -- plus fields for binary operator
3602 -- plus fields for expression
3603
3604 -- N_Op_Expon
3605 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
3606 -- Sloc points to **
3607 -- plus fields for binary operator
3608 -- plus fields for expression
3609
3610 -- N_Op_Plus
3611 -- Sloc points to + (unary)
3612 -- plus fields for unary operator
3613 -- plus fields for expression
3614
3615 -- N_Op_Minus
3616 -- Sloc points to - (unary)
3617 -- plus fields for unary operator
3618 -- plus fields for expression
3619
3620 -- N_Op_Abs
3621 -- Sloc points to ABS
3622 -- plus fields for unary operator
3623 -- plus fields for expression
3624
3625 -- N_Op_Not
3626 -- Sloc points to NOT
3627 -- plus fields for unary operator
3628 -- plus fields for expression
3629
3630 -- See also shift operators in section B.2
3631
3632 -- Note on fixed-point operations passed to Gigi: For adding operators,
3633 -- the semantics is to treat these simply as integer operations, with
3634 -- the small values being ignored (the bounds are already stored in
3635 -- units of small, so that constraint checking works as usual). For the
3636 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
3637 -- point operands if the Treat_Fixed_As_Integer flag is set and will
3638 -- thus treat these nodes in identical manner, ignoring small values.
3639
3640 --------------------------
3641 -- 4.6 Type Conversion --
3642 --------------------------
3643
3644 -- TYPE_CONVERSION ::=
3645 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3646
3647 -- In the (NAME) case, the name is stored as the expression
3648
3649 -- Note: the parser never generates a type conversion node, since it
3650 -- looks like an indexed component which is generated by preference.
3651 -- The semantic pass must correct this misidentification.
3652
3653 -- Gigi handles conversions that involve no change in the root type,
3654 -- and also all conversions from integer to floating-point types.
3655 -- Conversions from floating-point to integer are only handled in
3656 -- the case where Float_Truncate flag set. Other conversions from
3657 -- floating-point to integer (involving rounding) and all conversions
3658 -- involving fixed-point types are handled by the expander.
3659
3660 -- Sprint syntax if Float_Truncate set: X^(Y)
3661 -- Sprint syntax if Conversion_OK set X?(Y)
3662 -- Sprint syntax if both flags set X?^(Y)
3663
3664 -- Note: If either the operand or result type is fixed-point, Gigi will
3665 -- only see a type conversion node with Conversion_OK set. The front end
3666 -- takes care of all handling of small's for fixed-point conversions.
3667
3668 -- N_Type_Conversion
3669 -- Sloc points to first token of subtype mark
3670 -- Subtype_Mark (Node4)
3671 -- Expression (Node3)
3672 -- Do_Tag_Check (Flag13-Sem)
3673 -- Do_Length_Check (Flag4-Sem)
3674 -- Do_Overflow_Check (Flag17-Sem)
3675 -- Float_Truncate (Flag11-Sem)
3676 -- Rounded_Result (Flag18-Sem)
3677 -- Conversion_OK (Flag14-Sem)
3678 -- plus fields for expression
3679
3680 -- Note: if a range check is required, then the Do_Range_Check flag
3681 -- is set in the Expression with the check being done against the
3682 -- target type range (after the base type conversion, if any).
3683
3684 -------------------------------
3685 -- 4.7 Qualified Expression --
3686 -------------------------------
3687
3688 -- QUALIFIED_EXPRESSION ::=
3689 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3690
3691 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3692 -- the expression, so the Expression field of this node always points
3693 -- to a parenthesized expression in this case (i.e. Paren_Count will
3694 -- always be non-zero for the referenced expression if it is not an
3695 -- aggregate).
3696
3697 -- N_Qualified_Expression
3698 -- Sloc points to apostrophe
3699 -- Subtype_Mark (Node4)
3700 -- Expression (Node3) expression or aggregate
3701 -- plus fields for expression
3702
3703 --------------------
3704 -- 4.8 Allocator --
3705 --------------------
3706
3707 -- ALLOCATOR ::=
3708 -- new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3709
3710 -- Sprint syntax (when storage pool present)
3711 -- new xxx (storage_pool = pool)
3712
3713 -- N_Allocator
3714 -- Sloc points to NEW
3715 -- Expression (Node3) subtype indication or qualified expression
3716 -- Storage_Pool (Node1-Sem)
3717 -- Procedure_To_Call (Node2-Sem)
3718 -- Coextensions (Elist4-Sem)
3719 -- Null_Exclusion_Present (Flag11)
3720 -- No_Initialization (Flag13-Sem)
3721 -- Is_Static_Coextension (Flag14-Sem)
3722 -- Do_Storage_Check (Flag17-Sem)
3723 -- Is_Dynamic_Coextension (Flag18-Sem)
3724 -- plus fields for expression
3725
3726 ---------------------------------
3727 -- 5.1 Sequence Of Statements --
3728 ---------------------------------
3729
3730 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3731
3732 -- Note: Although the parser will not accept a declaration as a
3733 -- statement, the semantic analyzer may insert declarations (e.g.
3734 -- declarations of implicit types needed for execution of other
3735 -- statements) into a sequence of statements, so the code genmerator
3736 -- should be prepared to accept a declaration where a statement is
3737 -- expected. Note also that pragmas can appear as statements.
3738
3739 --------------------
3740 -- 5.1 Statement --
3741 --------------------
3742
3743 -- STATEMENT ::=
3744 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3745
3746 -- There is no explicit node in the tree for a statement. Instead, the
3747 -- individual statement appears directly. Labels are treated as a
3748 -- kind of statement, i.e. they are linked into a statement list at
3749 -- the point they appear, so the labeled statement appears following
3750 -- the label or labels in the statement list.
3751
3752 ---------------------------
3753 -- 5.1 Simple Statement --
3754 ---------------------------
3755
3756 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
3757 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
3758 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
3759 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3760 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
3761 -- | ABORT_STATEMENT | RAISE_STATEMENT
3762 -- | CODE_STATEMENT
3763
3764 -----------------------------
3765 -- 5.1 Compound Statement --
3766 -----------------------------
3767
3768 -- COMPOUND_STATEMENT ::=
3769 -- IF_STATEMENT | CASE_STATEMENT
3770 -- | LOOP_STATEMENT | BLOCK_STATEMENT
3771 -- | EXTENDED_RETURN_STATEMENT
3772 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
3773
3774 -------------------------
3775 -- 5.1 Null Statement --
3776 -------------------------
3777
3778 -- NULL_STATEMENT ::= null;
3779
3780 -- N_Null_Statement
3781 -- Sloc points to NULL
3782
3783 ----------------
3784 -- 5.1 Label --
3785 ----------------
3786
3787 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3788
3789 -- Note that the occurrence of a label is not a defining identifier,
3790 -- but rather a referencing occurrence. The defining occurrence is
3791 -- in the implicit label declaration which occurs in the innermost
3792 -- enclosing block.
3793
3794 -- N_Label
3795 -- Sloc points to <<
3796 -- Identifier (Node1) direct name of statement identifier
3797 -- Exception_Junk (Flag8-Sem)
3798
3799 -------------------------------
3800 -- 5.1 Statement Identifier --
3801 -------------------------------
3802
3803 -- STATEMENT_INDENTIFIER ::= DIRECT_NAME
3804
3805 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
3806 -- (not an OPERATOR_SYMBOL)
3807
3808 -------------------------------
3809 -- 5.2 Assignment Statement --
3810 -------------------------------
3811
3812 -- ASSIGNMENT_STATEMENT ::=
3813 -- variable_NAME := EXPRESSION;
3814
3815 -- N_Assignment_Statement
3816 -- Sloc points to :=
3817 -- Name (Node2)
3818 -- Expression (Node3)
3819 -- Do_Tag_Check (Flag13-Sem)
3820 -- Do_Length_Check (Flag4-Sem)
3821 -- Forwards_OK (Flag5-Sem)
3822 -- Backwards_OK (Flag6-Sem)
3823 -- No_Ctrl_Actions (Flag7-Sem)
3824
3825 -- Note: if a range check is required, then the Do_Range_Check flag
3826 -- is set in the Expression (right hand side), with the check being
3827 -- done against the type of the Name (left hand side).
3828
3829 -- Note: the back end places some restrictions on the form of the
3830 -- Expression field. If the object being assigned to is Atomic, then
3831 -- the Expression may not have the form of an aggregate (since this
3832 -- might cause the back end to generate separate assignments). It
3833 -- also cannot be a reference to an object marked as a true constant
3834 -- (Is_True_Constant flag set), where the object is itself initalized
3835 -- with an aggregate. If necessary the front end must generate an
3836 -- extra temporary (with Is_True_Constant set False), and initialize
3837 -- this temporary as required (the temporary itself is not atomic).
3838
3839 -----------------------
3840 -- 5.3 If Statement --
3841 -----------------------
3842
3843 -- IF_STATEMENT ::=
3844 -- if CONDITION then
3845 -- SEQUENCE_OF_STATEMENTS
3846 -- {elsif CONDITION then
3847 -- SEQUENCE_OF_STATEMENTS}
3848 -- [else
3849 -- SEQUENCE_OF_STATEMENTS]
3850 -- end if;
3851
3852 -- Gigi restriction: This expander ensures that the type of the
3853 -- Condition fields is always Standard.Boolean, even if the type
3854 -- in the source is some non-standard boolean type.
3855
3856 -- N_If_Statement
3857 -- Sloc points to IF
3858 -- Condition (Node1)
3859 -- Then_Statements (List2)
3860 -- Elsif_Parts (List3) (set to No_List if none present)
3861 -- Else_Statements (List4) (set to No_List if no else part present)
3862 -- End_Span (Uint5) (set to No_Uint if expander generated)
3863
3864 -- N_Elsif_Part
3865 -- Sloc points to ELSIF
3866 -- Condition (Node1)
3867 -- Then_Statements (List2)
3868 -- Condition_Actions (List3-Sem)
3869
3870 --------------------
3871 -- 5.3 Condition --
3872 --------------------
3873
3874 -- CONDITION ::= boolean_EXPRESSION
3875
3876 -------------------------
3877 -- 5.4 Case Statement --
3878 -------------------------
3879
3880 -- CASE_STATEMENT ::=
3881 -- case EXPRESSION is
3882 -- CASE_STATEMENT_ALTERNATIVE
3883 -- {CASE_STATEMENT_ALTERNATIVE}
3884 -- end case;
3885
3886 -- Note: the Alternatives can contain pragmas. These only occur at
3887 -- the start of the list, since any pragmas occurring after the first
3888 -- alternative are absorbed into the corresponding statement sequence.
3889
3890 -- N_Case_Statement
3891 -- Sloc points to CASE
3892 -- Expression (Node3)
3893 -- Alternatives (List4)
3894 -- End_Span (Uint5) (set to No_Uint if expander generated)
3895
3896 -------------------------------------
3897 -- 5.4 Case Statement Alternative --
3898 -------------------------------------
3899
3900 -- CASE_STATEMENT_ALTERNATIVE ::=
3901 -- when DISCRETE_CHOICE_LIST =>
3902 -- SEQUENCE_OF_STATEMENTS
3903
3904 -- N_Case_Statement_Alternative
3905 -- Sloc points to WHEN
3906 -- Discrete_Choices (List4)
3907 -- Statements (List3)
3908
3909 -------------------------
3910 -- 5.5 Loop Statement --
3911 -------------------------
3912
3913 -- LOOP_STATEMENT ::=
3914 -- [loop_STATEMENT_IDENTIFIER :]
3915 -- [ITERATION_SCHEME] loop
3916 -- SEQUENCE_OF_STATEMENTS
3917 -- end loop [loop_IDENTIFIER];
3918
3919 -- Note: The occurrence of a loop label is not a defining identifier
3920 -- but rather a referencing occurrence. The defining occurrence is in
3921 -- the implicit label declaration which occurs in the innermost
3922 -- enclosing block.
3923
3924 -- Note: there is always a loop statement identifier present in
3925 -- the tree, even if none was given in the source. In the case where
3926 -- no loop identifier is given in the source, the parser creates
3927 -- a name of the form _Loop_n, where n is a decimal integer (the
3928 -- two underlines ensure that the loop names created in this manner
3929 -- do not conflict with any user defined identifiers), and the flag
3930 -- Has_Created_Identifier is set to True. The only exception to the
3931 -- rule that all loop statement nodes have identifiers occurs for
3932 -- loops constructed by the expander, and the semantic analyzer will
3933 -- create and supply dummy loop identifiers in these cases.
3934
3935 -- N_Loop_Statement
3936 -- Sloc points to LOOP
3937 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
3938 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
3939 -- Statements (List3)
3940 -- End_Label (Node4)
3941 -- Has_Created_Identifier (Flag15)
3942 -- Is_Null_Loop (Flag16)
3943
3944 --------------------------
3945 -- 5.5 Iteration Scheme --
3946 --------------------------
3947
3948 -- ITERATION_SCHEME ::=
3949 -- while CONDITION | for LOOP_PARAMETER_SPECIFICATION
3950
3951 -- Gigi restriction: This expander ensures that the type of the
3952 -- Condition field is always Standard.Boolean, even if the type
3953 -- in the source is some non-standard boolean type.
3954
3955 -- N_Iteration_Scheme
3956 -- Sloc points to WHILE or FOR
3957 -- Condition (Node1) (set to Empty if FOR case)
3958 -- Condition_Actions (List3-Sem)
3959 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
3960
3961 ---------------------------------------
3962 -- 5.5 Loop parameter specification --
3963 ---------------------------------------
3964
3965 -- LOOP_PARAMETER_SPECIFICATION ::=
3966 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
3967
3968 -- N_Loop_Parameter_Specification
3969 -- Sloc points to first identifier
3970 -- Defining_Identifier (Node1)
3971 -- Reverse_Present (Flag15)
3972 -- Discrete_Subtype_Definition (Node4)
3973
3974 --------------------------
3975 -- 5.6 Block Statement --
3976 --------------------------
3977
3978 -- BLOCK_STATEMENT ::=
3979 -- [block_STATEMENT_IDENTIFIER:]
3980 -- [declare
3981 -- DECLARATIVE_PART]
3982 -- begin
3983 -- HANDLED_SEQUENCE_OF_STATEMENTS
3984 -- end [block_IDENTIFIER];
3985
3986 -- Note that the occurrence of a block identifier is not a defining
3987 -- identifier, but rather a referencing occurrence. The defining
3988 -- occurrence is an E_Block entity declared by the implicit label
3989 -- declaration which occurs in the innermost enclosing block statement
3990 -- or body; the block identifier denotes that E_Block.
3991
3992 -- For block statements that come from source code, there is always a
3993 -- block statement identifier present in the tree, denoting an
3994 -- E_Block. In the case where no block identifier is given in the
3995 -- source, the parser creates a name of the form B_n, where n is a
3996 -- decimal integer, and the flag Has_Created_Identifier is set to
3997 -- True. Blocks constructed by the expander usually have no identifier,
3998 -- and no corresponding entity.
3999
4000 -- Note: the block statement created for an extended return statement
4001 -- has an entity, and this entity is an E_Return_Statement, rather than
4002 -- the usual E_Block.
4003
4004 -- Note: Exception_Junk is set for the wrapping blocks created during
4005 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4006
4007 -- N_Block_Statement
4008 -- Sloc points to DECLARE or BEGIN
4009 -- Identifier (Node1) block direct name (set to Empty if not present)
4010 -- Declarations (List2) (set to No_List if no DECLARE part)
4011 -- Handled_Statement_Sequence (Node4)
4012 -- Is_Task_Master (Flag5-Sem)
4013 -- Activation_Chain_Entity (Node3-Sem)
4014 -- Has_Created_Identifier (Flag15)
4015 -- Is_Task_Allocation_Block (Flag6)
4016 -- Is_Asynchronous_Call_Block (Flag7)
4017 -- Exception_Junk (Flag8-Sem)
4018
4019 -------------------------
4020 -- 5.7 Exit Statement --
4021 -------------------------
4022
4023 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4024
4025 -- Gigi restriction: This expander ensures that the type of the
4026 -- Condition field is always Standard.Boolean, even if the type
4027 -- in the source is some non-standard boolean type.
4028
4029 -- N_Exit_Statement
4030 -- Sloc points to EXIT
4031 -- Name (Node2) (set to Empty if no loop name present)
4032 -- Condition (Node1) (set to Empty if no when part present)
4033
4034 -------------------------
4035 -- 5.9 Goto Statement --
4036 -------------------------
4037
4038 -- GOTO_STATEMENT ::= goto label_NAME;
4039
4040 -- N_Goto_Statement
4041 -- Sloc points to GOTO
4042 -- Name (Node2)
4043 -- Exception_Junk (Flag8-Sem)
4044
4045 ---------------------------------
4046 -- 6.1 Subprogram Declaration --
4047 ---------------------------------
4048
4049 -- SUBPROGRAM_DECLARATION ::= SUBPROGRAM_SPECIFICATION;
4050
4051 -- N_Subprogram_Declaration
4052 -- Sloc points to FUNCTION or PROCEDURE
4053 -- Specification (Node1)
4054 -- Body_To_Inline (Node3-Sem)
4055 -- Corresponding_Body (Node5-Sem)
4056 -- Parent_Spec (Node4-Sem)
4057
4058 ------------------------------------------
4059 -- 6.1 Abstract Subprogram Declaration --
4060 ------------------------------------------
4061
4062 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4063 -- SUBPROGRAM_SPECIFICATION is abstract;
4064
4065 -- N_Abstract_Subprogram_Declaration
4066 -- Sloc points to ABSTRACT
4067 -- Specification (Node1)
4068
4069 -----------------------------------
4070 -- 6.1 Subprogram Specification --
4071 -----------------------------------
4072
4073 -- SUBPROGRAM_SPECIFICATION ::=
4074 -- [[not] overriding]
4075 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4076 -- | [[not] overriding]
4077 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4078
4079 -- Note: there are no separate nodes for the profiles, instead the
4080 -- information appears directly in the following nodes.
4081
4082 -- N_Function_Specification
4083 -- Sloc points to FUNCTION
4084 -- Defining_Unit_Name (Node1) (the designator)
4085 -- Elaboration_Boolean (Node2-Sem)
4086 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4087 -- Null_Exclusion_Present (Flag11)
4088 -- Result_Definition (Node4) for result subtype
4089 -- Generic_Parent (Node5-Sem)
4090 -- Must_Override (Flag14) set if overriding indicator present
4091 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4092
4093 -- N_Procedure_Specification
4094 -- Sloc points to PROCEDURE
4095 -- Defining_Unit_Name (Node1)
4096 -- Elaboration_Boolean (Node2-Sem)
4097 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4098 -- Generic_Parent (Node5-Sem)
4099 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4100 -- Must_Override (Flag14) set if overriding indicator present
4101 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4102
4103 -- Note: overriding indicator is an Ada 2005 feature
4104
4105 ---------------------
4106 -- 6.1 Designator --
4107 ---------------------
4108
4109 -- DESIGNATOR ::=
4110 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4111
4112 -- Designators that are simply identifiers or operator symbols appear
4113 -- directly in the tree in this form. The following node is used only
4114 -- in the case where the designator has a parent unit name component.
4115
4116 -- N_Designator
4117 -- Sloc points to period
4118 -- Name (Node2) holds the parent unit name. Note that this is always
4119 -- non-Empty, since this node is only used for the case where a
4120 -- parent library unit package name is present.
4121 -- Identifier (Node1)
4122
4123 -- Note that the identifier can also be an operator symbol here
4124
4125 ------------------------------
4126 -- 6.1 Defining Designator --
4127 ------------------------------
4128
4129 -- DEFINING_DESIGNATOR ::=
4130 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4131
4132 -------------------------------------
4133 -- 6.1 Defining Program Unit Name --
4134 -------------------------------------
4135
4136 -- DEFINING_PROGRAM_UNIT_NAME ::=
4137 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4138
4139 -- The parent unit name is present only in the case of a child unit
4140 -- name (permissible only for Ada 95 for a library level unit, i.e.
4141 -- a unit at scope level one). If no such name is present, the defining
4142 -- program unit name is represented simply as the defining identifier.
4143 -- In the child unit case, the following node is used to represent the
4144 -- child unit name.
4145
4146 -- N_Defining_Program_Unit_Name
4147 -- Sloc points to period
4148 -- Name (Node2) holds the parent unit name. Note that this is always
4149 -- non-Empty, since this node is only used for the case where a
4150 -- parent unit name is present.
4151 -- Defining_Identifier (Node1)
4152
4153 --------------------------
4154 -- 6.1 Operator Symbol --
4155 --------------------------
4156
4157 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4158
4159 -- Note: the fields of the N_Operator_Symbol node are laid out to
4160 -- match the corresponding fields of an N_Character_Literal node. This
4161 -- allows easy conversion of the operator symbol node into a character
4162 -- literal node in the case where a string constant of the form of an
4163 -- operator symbol is scanned out as such, but turns out semantically
4164 -- to be a string literal that is not an operator. For details see
4165 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4166
4167 -- N_Operator_Symbol
4168 -- Sloc points to literal
4169 -- Chars (Name1) contains the Name_Id for the operator symbol
4170 -- Strval (Str3) Id of string value. This is used if the operator
4171 -- symbol turns out to be a normal string after all.
4172 -- Entity (Node4-Sem)
4173 -- Associated_Node (Node4-Sem)
4174 -- Has_Private_View (Flag11-Sem) set in generic units.
4175 -- Etype (Node5-Sem)
4176
4177 -- Note: the Strval field may be set to No_String for generated
4178 -- operator symbols that are known not to be string literals
4179 -- semantically.
4180
4181 -----------------------------------
4182 -- 6.1 Defining Operator Symbol --
4183 -----------------------------------
4184
4185 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4186
4187 -- A defining operator symbol is an entity, which has additional
4188 -- fields depending on the setting of the Ekind field. These
4189 -- additional fields are defined (and access subprograms declared)
4190 -- in package Einfo.
4191
4192 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4193 -- are deliberately layed out to match the layout of fields in an
4194 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4195 -- an operator symbol node into a defining operator symbol node.
4196 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4197 -- for further details.
4198
4199 -- N_Defining_Operator_Symbol
4200 -- Sloc points to literal
4201 -- Chars (Name1) contains the Name_Id for the operator symbol
4202 -- Next_Entity (Node2-Sem)
4203 -- Scope (Node3-Sem)
4204 -- Etype (Node5-Sem)
4205
4206 ----------------------------
4207 -- 6.1 Parameter Profile --
4208 ----------------------------
4209
4210 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4211
4212 ---------------------------------------
4213 -- 6.1 Parameter and Result Profile --
4214 ---------------------------------------
4215
4216 -- PARAMETER_AND_RESULT_PROFILE ::=
4217 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4218 -- | [FORMAL_PART] return ACCESS_DEFINITION
4219
4220 -- There is no explicit node in the tree for a parameter and result
4221 -- profile. Instead the information appears directly in the parent.
4222
4223 ----------------------
4224 -- 6.1 Formal part --
4225 ----------------------
4226
4227 -- FORMAL_PART ::=
4228 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4229
4230 ----------------------------------
4231 -- 6.1 Parameter specification --
4232 ----------------------------------
4233
4234 -- PARAMETER_SPECIFICATION ::=
4235 -- DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4236 -- [:= DEFAULT_EXPRESSION]
4237 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4238 -- [:= DEFAULT_EXPRESSION]
4239
4240 -- Although the syntax allows multiple identifiers in the list, the
4241 -- semantics is as though successive specifications were given with
4242 -- identical type definition and expression components. To simplify
4243 -- semantic processing, the parser represents a multiple declaration
4244 -- case as a sequence of single Specifications, using the More_Ids and
4245 -- Prev_Ids flags to preserve the original source form as described
4246 -- in the section on "Handling of Defining Identifier Lists".
4247
4248 -- N_Parameter_Specification
4249 -- Sloc points to first identifier
4250 -- Defining_Identifier (Node1)
4251 -- In_Present (Flag15)
4252 -- Out_Present (Flag17)
4253 -- Null_Exclusion_Present (Flag11)
4254 -- Parameter_Type (Node2) subtype mark or access definition
4255 -- Expression (Node3) (set to Empty if no default expression present)
4256 -- Do_Accessibility_Check (Flag13-Sem)
4257 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4258 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4259 -- Default_Expression (Node5-Sem)
4260
4261 ---------------
4262 -- 6.1 Mode --
4263 ---------------
4264
4265 -- MODE ::= [in] | in out | out
4266
4267 -- There is no explicit node in the tree for the Mode. Instead the
4268 -- In_Present and Out_Present flags are set in the parent node to
4269 -- record the presence of keywords specifying the mode.
4270
4271 --------------------------
4272 -- 6.3 Subprogram Body --
4273 --------------------------
4274
4275 -- SUBPROGRAM_BODY ::=
4276 -- SUBPROGRAM_SPECIFICATION is
4277 -- DECLARATIVE_PART
4278 -- begin
4279 -- HANDLED_SEQUENCE_OF_STATEMENTS
4280 -- end [DESIGNATOR];
4281
4282 -- N_Subprogram_Body
4283 -- Sloc points to FUNCTION or PROCEDURE
4284 -- Specification (Node1)
4285 -- Declarations (List2)
4286 -- Handled_Statement_Sequence (Node4)
4287 -- Activation_Chain_Entity (Node3-Sem)
4288 -- Corresponding_Spec (Node5-Sem)
4289 -- Acts_As_Spec (Flag4-Sem)
4290 -- Bad_Is_Detected (Flag15) used only by parser
4291 -- Do_Storage_Check (Flag17-Sem)
4292 -- Has_Priority_Pragma (Flag6-Sem)
4293 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4294 -- Is_Entry_Barrier_Function (Flag8-Sem)
4295 -- Is_Task_Master (Flag5-Sem)
4296 -- Was_Originally_Stub (Flag13-Sem)
4297 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4298
4299 -----------------------------------
4300 -- 6.4 Procedure Call Statement --
4301 -----------------------------------
4302
4303 -- PROCEDURE_CALL_STATEMENT ::=
4304 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4305
4306 -- Note: the reason that a procedure call has expression fields is
4307 -- that it semantically resembles an expression, e.g. overloading is
4308 -- allowed and a type is concocted for semantic processing purposes.
4309 -- Certain of these fields, such as Parens are not relevant, but it
4310 -- is easier to just supply all of them together!
4311
4312 -- N_Procedure_Call_Statement
4313 -- Sloc points to first token of name or prefix
4314 -- Name (Node2) stores name or prefix
4315 -- Parameter_Associations (List3) (set to No_List if no
4316 -- actual parameter part)
4317 -- First_Named_Actual (Node4-Sem)
4318 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4319 -- Do_Tag_Check (Flag13-Sem)
4320 -- No_Elaboration_Check (Flag14-Sem)
4321 -- Parameter_List_Truncated (Flag17-Sem)
4322 -- ABE_Is_Certain (Flag18-Sem)
4323 -- plus fields for expression
4324
4325 -- If any IN parameter requires a range check, then the corresponding
4326 -- argument expression has the Do_Range_Check flag set, and the range
4327 -- check is done against the formal type. Note that this argument
4328 -- expression may appear directly in the Parameter_Associations list,
4329 -- or may be a descendent of an N_Parameter_Association node that
4330 -- appears in this list.
4331
4332 ------------------------
4333 -- 6.4 Function Call --
4334 ------------------------
4335
4336 -- FUNCTION_CALL ::=
4337 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4338
4339 -- Note: the parser may generate an indexed component node or simply
4340 -- a name node instead of a function call node. The semantic pass must
4341 -- correct this misidentification.
4342
4343 -- N_Function_Call
4344 -- Sloc points to first token of name or prefix
4345 -- Name (Node2) stores name or prefix
4346 -- Parameter_Associations (List3) (set to No_List if no
4347 -- actual parameter part)
4348 -- First_Named_Actual (Node4-Sem)
4349 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4350 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4351 -- Do_Tag_Check (Flag13-Sem)
4352 -- No_Elaboration_Check (Flag14-Sem)
4353 -- Parameter_List_Truncated (Flag17-Sem)
4354 -- ABE_Is_Certain (Flag18-Sem)
4355 -- plus fields for expression
4356
4357 --------------------------------
4358 -- 6.4 Actual Parameter Part --
4359 --------------------------------
4360
4361 -- ACTUAL_PARAMETER_PART ::=
4362 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4363
4364 --------------------------------
4365 -- 6.4 Parameter Association --
4366 --------------------------------
4367
4368 -- PARAMETER_ASSOCIATION ::=
4369 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4370
4371 -- Note: the N_Parameter_Association node is built only if a formal
4372 -- parameter selector name is present, otherwise the parameter
4373 -- association appears in the tree simply as the node for the
4374 -- explicit actual parameter.
4375
4376 -- N_Parameter_Association
4377 -- Sloc points to formal parameter
4378 -- Selector_Name (Node2) (always non-Empty)
4379 -- Explicit_Actual_Parameter (Node3)
4380 -- Next_Named_Actual (Node4-Sem)
4381
4382 ---------------------------
4383 -- 6.4 Actual Parameter --
4384 ---------------------------
4385
4386 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4387
4388 ---------------------------
4389 -- 6.5 Return Statement --
4390 ---------------------------
4391
4392 -- RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4393
4394 -- In Ada 2005, we have:
4395
4396 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4397
4398 -- EXTENDED_RETURN_STATEMENT ::=
4399 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4400 -- [:= EXPRESSION] [do
4401 -- HANDLED_SEQUENCE_OF_STATEMENTS
4402 -- end return];
4403
4404 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4405
4406 -- So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4407 -- "return statement" is defined in 6.5 to mean a
4408 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4409
4410 -- N_Return_Statement
4411 -- Sloc points to RETURN
4412 -- Return_Statement_Entity (Node5-Sem)
4413 -- Expression (Node3) (set to Empty if no expression present)
4414 -- Storage_Pool (Node1-Sem)
4415 -- Procedure_To_Call (Node2-Sem)
4416 -- Do_Tag_Check (Flag13-Sem)
4417 -- By_Ref (Flag5-Sem)
4418 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
4419
4420 -- N_Return_Statement represents a simple_return_statement, and is
4421 -- renamed to be N_Simple_Return_Statement below. Clients should refer
4422 -- to N_Simple_Return_Statement. We retain N_Return_Statement because
4423 -- that's how gigi knows it. See also renaming of Make_Return_Statement
4424 -- as Make_Simple_Return_Statement in Sem_Util.
4425
4426 -- Note: Return_Statement_Entity points to an E_Return_Statement
4427
4428 -- If a range check is required, then Do_Range_Check is set on the
4429 -- Expression. The check is against the return subtype of the function.
4430
4431 -- N_Extended_Return_Statement
4432 -- Sloc points to RETURN
4433 -- Return_Statement_Entity (Node5-Sem)
4434 -- Return_Object_Declarations (List3)
4435 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
4436 -- Storage_Pool (Node1-Sem)
4437 -- Procedure_To_Call (Node2-Sem)
4438 -- Do_Tag_Check (Flag13-Sem)
4439 -- By_Ref (Flag5-Sem)
4440
4441 -- Note: Return_Statement_Entity points to an E_Return_Statement.
4442 -- Note that Return_Object_Declarations is a list containing the
4443 -- N_Object_Declaration -- see comment on this field above.
4444 -- The declared object will have Is_Return_Object = True.
4445 -- There is no such syntactic category as return_object_declaration
4446 -- in the RM. Return_Object_Declarations represents this portion of
4447 -- the syntax for EXTENDED_RETURN_STATEMENT:
4448 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4449 -- [:= EXPRESSION]
4450
4451 -- There are two entities associated with an extended_return_statement:
4452 -- the Return_Statement_Entity represents the statement itself, and the
4453 -- Defining_Identifier of the Object_Declaration in
4454 -- Return_Object_Declarations represents the object being
4455 -- returned. N_Simple_Return_Statement has only the former.
4456
4457 ------------------------------
4458 -- 7.1 Package Declaration --
4459 ------------------------------
4460
4461 -- PACKAGE_DECLARATION ::= PACKAGE_SPECIFICATION;
4462
4463 -- Note: the activation chain entity for a package spec is used for
4464 -- all tasks declared in the package spec, or in the package body.
4465
4466 -- N_Package_Declaration
4467 -- Sloc points to PACKAGE
4468 -- Specification (Node1)
4469 -- Corresponding_Body (Node5-Sem)
4470 -- Parent_Spec (Node4-Sem)
4471 -- Activation_Chain_Entity (Node3-Sem)
4472
4473 --------------------------------
4474 -- 7.1 Package Specification --
4475 --------------------------------
4476
4477 -- PACKAGE_SPECIFICATION ::=
4478 -- package DEFINING_PROGRAM_UNIT_NAME is
4479 -- {BASIC_DECLARATIVE_ITEM}
4480 -- [private
4481 -- {BASIC_DECLARATIVE_ITEM}]
4482 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
4483
4484 -- N_Package_Specification
4485 -- Sloc points to PACKAGE
4486 -- Defining_Unit_Name (Node1)
4487 -- Visible_Declarations (List2)
4488 -- Private_Declarations (List3) (set to No_List if no private
4489 -- part present)
4490 -- End_Label (Node4)
4491 -- Generic_Parent (Node5-Sem)
4492 -- Limited_View_Installed (Flag18-Sem)
4493
4494 -----------------------
4495 -- 7.1 Package Body --
4496 -----------------------
4497
4498 -- PACKAGE_BODY ::=
4499 -- package body DEFINING_PROGRAM_UNIT_NAME is
4500 -- DECLARATIVE_PART
4501 -- [begin
4502 -- HANDLED_SEQUENCE_OF_STATEMENTS]
4503 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
4504
4505 -- N_Package_Body
4506 -- Sloc points to PACKAGE
4507 -- Defining_Unit_Name (Node1)
4508 -- Declarations (List2)
4509 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4510 -- Corresponding_Spec (Node5-Sem)
4511 -- Was_Originally_Stub (Flag13-Sem)
4512
4513 -- Note: if a source level package does not contain a handled sequence
4514 -- of statements, then the parser supplies a dummy one with a null
4515 -- sequence of statements. Comes_From_Source will be False in this
4516 -- constructed sequence. The reason we need this is for the End_Label
4517 -- field in the HSS.
4518
4519 -----------------------------------
4520 -- 7.4 Private Type Declaration --
4521 -----------------------------------
4522
4523 -- PRIVATE_TYPE_DECLARATION ::=
4524 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4525 -- is [[abstract] tagged] [limited] private;
4526
4527 -- Note: TAGGED is not permitted in Ada 83 mode
4528
4529 -- N_Private_Type_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 -- Tagged_Present (Flag15)
4537 -- Limited_Present (Flag17)
4538
4539 ----------------------------------------
4540 -- 7.4 Private Extension Declaration --
4541 ----------------------------------------
4542
4543 -- PRIVATE_EXTENSION_DECLARATION ::=
4544 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4545 -- [abstract] [limited | synchronized]
4546 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4547 -- with private;
4548
4549 -- Note: LIMITED, and private extension declarations are not allowed
4550 -- in Ada 83 mode.
4551
4552 -- N_Private_Extension_Declaration
4553 -- Sloc points to TYPE
4554 -- Defining_Identifier (Node1)
4555 -- Discriminant_Specifications (List4) (set to No_List if no
4556 -- discriminant part)
4557 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4558 -- Abstract_Present (Flag4)
4559 -- Limited_Present (Flag17)
4560 -- Synchronized_Present (Flag7)
4561 -- Subtype_Indication (Node5)
4562 -- Interface_List (List2) (set to No_List if none)
4563
4564 ---------------------
4565 -- 8.4 Use Clause --
4566 ---------------------
4567
4568 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4569
4570 -----------------------------
4571 -- 8.4 Use Package Clause --
4572 -----------------------------
4573
4574 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4575
4576 -- N_Use_Package_Clause
4577 -- Sloc points to USE
4578 -- Names (List2)
4579 -- Next_Use_Clause (Node3-Sem)
4580 -- Hidden_By_Use_Clause (Elist4-Sem)
4581
4582 --------------------------
4583 -- 8.4 Use Type Clause --
4584 --------------------------
4585
4586 -- USE_TYPE_CLAUSE ::= use type SUBTYPE_MARK {, SUBTYPE_MARK};
4587
4588 -- Note: use type clause is not permitted in Ada 83 mode
4589
4590 -- N_Use_Type_Clause
4591 -- Sloc points to USE
4592 -- Subtype_Marks (List2)
4593 -- Next_Use_Clause (Node3-Sem)
4594 -- Hidden_By_Use_Clause (Elist4-Sem)
4595
4596 -------------------------------
4597 -- 8.5 Renaming Declaration --
4598 -------------------------------
4599
4600 -- RENAMING_DECLARATION ::=
4601 -- OBJECT_RENAMING_DECLARATION
4602 -- | EXCEPTION_RENAMING_DECLARATION
4603 -- | PACKAGE_RENAMING_DECLARATION
4604 -- | SUBPROGRAM_RENAMING_DECLARATION
4605 -- | GENERIC_RENAMING_DECLARATION
4606
4607 --------------------------------------
4608 -- 8.5 Object Renaming Declaration --
4609 --------------------------------------
4610
4611 -- OBJECT_RENAMING_DECLARATION ::=
4612 -- DEFINING_IDENTIFIER :
4613 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4614 -- | DEFINING_IDENTIFIER :
4615 -- ACCESS_DEFINITION renames object_NAME;
4616
4617 -- Note: Access_Definition is an optional field that gives support to
4618 -- Ada 2005 (AI-230). The parser generates nodes that have either the
4619 -- Subtype_Indication field or else the Access_Definition field.
4620
4621 -- N_Object_Renaming_Declaration
4622 -- Sloc points to first identifier
4623 -- Defining_Identifier (Node1)
4624 -- Null_Exclusion_Present (Flag11) (set to False if not present)
4625 -- Subtype_Mark (Node4) (set to Empty if not present)
4626 -- Access_Definition (Node3) (set to Empty if not present)
4627 -- Name (Node2)
4628 -- Corresponding_Generic_Association (Node5-Sem)
4629
4630 -----------------------------------------
4631 -- 8.5 Exception Renaming Declaration --
4632 -----------------------------------------
4633
4634 -- EXCEPTION_RENAMING_DECLARATION ::=
4635 -- DEFINING_IDENTIFIER : exception renames exception_NAME;
4636
4637 -- N_Exception_Renaming_Declaration
4638 -- Sloc points to first identifier
4639 -- Defining_Identifier (Node1)
4640 -- Name (Node2)
4641
4642 ---------------------------------------
4643 -- 8.5 Package Renaming Declaration --
4644 ---------------------------------------
4645
4646 -- PACKAGE_RENAMING_DECLARATION ::=
4647 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4648
4649 -- N_Package_Renaming_Declaration
4650 -- Sloc points to PACKAGE
4651 -- Defining_Unit_Name (Node1)
4652 -- Name (Node2)
4653 -- Parent_Spec (Node4-Sem)
4654
4655 ------------------------------------------
4656 -- 8.5 Subprogram Renaming Declaration --
4657 ------------------------------------------
4658
4659 -- SUBPROGRAM_RENAMING_DECLARATION ::=
4660 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4661
4662 -- N_Subprogram_Renaming_Declaration
4663 -- Sloc points to RENAMES
4664 -- Specification (Node1)
4665 -- Name (Node2)
4666 -- Parent_Spec (Node4-Sem)
4667 -- Corresponding_Spec (Node5-Sem)
4668 -- Corresponding_Formal_Spec (Node3-Sem)
4669 -- From_Default (Flag6-Sem)
4670
4671 -----------------------------------------
4672 -- 8.5.5 Generic Renaming Declaration --
4673 -----------------------------------------
4674
4675 -- GENERIC_RENAMING_DECLARATION ::=
4676 -- generic package DEFINING_PROGRAM_UNIT_NAME
4677 -- renames generic_package_NAME
4678 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
4679 -- renames generic_procedure_NAME
4680 -- | generic function DEFINING_PROGRAM_UNIT_NAME
4681 -- renames generic_function_NAME
4682
4683 -- N_Generic_Package_Renaming_Declaration
4684 -- Sloc points to GENERIC
4685 -- Defining_Unit_Name (Node1)
4686 -- Name (Node2)
4687 -- Parent_Spec (Node4-Sem)
4688
4689 -- N_Generic_Procedure_Renaming_Declaration
4690 -- Sloc points to GENERIC
4691 -- Defining_Unit_Name (Node1)
4692 -- Name (Node2)
4693 -- Parent_Spec (Node4-Sem)
4694
4695 -- N_Generic_Function_Renaming_Declaration
4696 -- Sloc points to GENERIC
4697 -- Defining_Unit_Name (Node1)
4698 -- Name (Node2)
4699 -- Parent_Spec (Node4-Sem)
4700
4701 --------------------------------
4702 -- 9.1 Task Type Declaration --
4703 --------------------------------
4704
4705 -- TASK_TYPE_DECLARATION ::=
4706 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4707 -- [is [new INTERFACE_LIST with] TASK_DEFINITITION];
4708
4709 -- N_Task_Type_Declaration
4710 -- Sloc points to TASK
4711 -- Defining_Identifier (Node1)
4712 -- Discriminant_Specifications (List4) (set to No_List if no
4713 -- discriminant part)
4714 -- Interface_List (List2) (set to No_List if none)
4715 -- Task_Definition (Node3) (set to Empty if not present)
4716 -- Corresponding_Body (Node5-Sem)
4717
4718 ----------------------------------
4719 -- 9.1 Single Task Declaration --
4720 ----------------------------------
4721
4722 -- SINGLE_TASK_DECLARATION ::=
4723 -- task DEFINING_IDENTIFIER
4724 -- [is [new INTERFACE_LIST with] TASK_DEFINITITION];
4725
4726 -- N_Single_Task_Declaration
4727 -- Sloc points to TASK
4728 -- Defining_Identifier (Node1)
4729 -- Interface_List (List2) (set to No_List if none)
4730 -- Task_Definition (Node3) (set to Empty if not present)
4731
4732 --------------------------
4733 -- 9.1 Task Definition --
4734 --------------------------
4735
4736 -- TASK_DEFINITION ::=
4737 -- {TASK_ITEM}
4738 -- [private
4739 -- {TASK_ITEM}]
4740 -- end [task_IDENTIFIER]
4741
4742 -- Note: as a result of semantic analysis, the list of task items can
4743 -- include implicit type declarations resulting from entry families.
4744
4745 -- N_Task_Definition
4746 -- Sloc points to first token of task definition
4747 -- Visible_Declarations (List2)
4748 -- Private_Declarations (List3) (set to No_List if no private part)
4749 -- End_Label (Node4)
4750 -- Has_Priority_Pragma (Flag6-Sem)
4751 -- Has_Storage_Size_Pragma (Flag5-Sem)
4752 -- Has_Task_Info_Pragma (Flag7-Sem)
4753 -- Has_Task_Name_Pragma (Flag8-Sem)
4754 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4755
4756 --------------------
4757 -- 9.1 Task Item --
4758 --------------------
4759
4760 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
4761
4762 --------------------
4763 -- 9.1 Task Body --
4764 --------------------
4765
4766 -- TASK_BODY ::=
4767 -- task body task_DEFINING_IDENTIFIER is
4768 -- DECLARATIVE_PART
4769 -- begin
4770 -- HANDLED_SEQUENCE_OF_STATEMENTS
4771 -- end [task_IDENTIFIER];
4772
4773 -- Gigi restriction: This node never appears
4774
4775 -- N_Task_Body
4776 -- Sloc points to TASK
4777 -- Defining_Identifier (Node1)
4778 -- Declarations (List2)
4779 -- Handled_Statement_Sequence (Node4)
4780 -- Is_Task_Master (Flag5-Sem)
4781 -- Activation_Chain_Entity (Node3-Sem)
4782 -- Corresponding_Spec (Node5-Sem)
4783 -- Was_Originally_Stub (Flag13-Sem)
4784
4785 -------------------------------------
4786 -- 9.4 Protected Type Declaration --
4787 -------------------------------------
4788
4789 -- PROTECTED_TYPE_DECLARATION ::=
4790 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4791 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4792
4793 -- Note: protected type declarations are not permitted in Ada 83 mode
4794
4795 -- N_Protected_Type_Declaration
4796 -- Sloc points to PROTECTED
4797 -- Defining_Identifier (Node1)
4798 -- Discriminant_Specifications (List4) (set to No_List if no
4799 -- discriminant part)
4800 -- Interface_List (List2) (set to No_List if none)
4801 -- Protected_Definition (Node3)
4802 -- Corresponding_Body (Node5-Sem)
4803
4804 ---------------------------------------
4805 -- 9.4 Single Protected Declaration --
4806 ---------------------------------------
4807
4808 -- SINGLE_PROTECTED_DECLARATION ::=
4809 -- protected DEFINING_IDENTIFIER
4810 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4811
4812 -- Note: single protected declarations are not allowed in Ada 83 mode
4813
4814 -- N_Single_Protected_Declaration
4815 -- Sloc points to PROTECTED
4816 -- Defining_Identifier (Node1)
4817 -- Interface_List (List2) (set to No_List if none)
4818 -- Protected_Definition (Node3)
4819
4820 -------------------------------
4821 -- 9.4 Protected Definition --
4822 -------------------------------
4823
4824 -- PROTECTED_DEFINITION ::=
4825 -- {PROTECTED_OPERATION_DECLARATION}
4826 -- [private
4827 -- {PROTECTED_ELEMENT_DECLARATION}]
4828 -- end [protected_IDENTIFIER]
4829
4830 -- N_Protected_Definition
4831 -- Sloc points to first token of protected definition
4832 -- Visible_Declarations (List2)
4833 -- Private_Declarations (List3) (set to No_List if no private part)
4834 -- End_Label (Node4)
4835 -- Has_Priority_Pragma (Flag6-Sem)
4836
4837 ------------------------------------------
4838 -- 9.4 Protected Operation Declaration --
4839 ------------------------------------------
4840
4841 -- PROTECTED_OPERATION_DECLARATION ::=
4842 -- SUBPROGRAM_DECLARATION
4843 -- | ENTRY_DECLARATION
4844 -- | REPRESENTATION_CLAUSE
4845
4846 ----------------------------------------
4847 -- 9.4 Protected Element Declaration --
4848 ----------------------------------------
4849
4850 -- PROTECTED_ELEMENT_DECLARATION ::=
4851 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
4852
4853 -------------------------
4854 -- 9.4 Protected Body --
4855 -------------------------
4856
4857 -- PROTECTED_BODY ::=
4858 -- protected body DEFINING_IDENTIFIER is
4859 -- {PROTECTED_OPERATION_ITEM}
4860 -- end [protected_IDENTIFIER];
4861
4862 -- Note: protected bodies are not allowed in Ada 83 mode
4863
4864 -- Gigi restriction: This node never appears
4865
4866 -- N_Protected_Body
4867 -- Sloc points to PROTECTED
4868 -- Defining_Identifier (Node1)
4869 -- Declarations (List2) protected operation items (and pragmas)
4870 -- End_Label (Node4)
4871 -- Corresponding_Spec (Node5-Sem)
4872 -- Was_Originally_Stub (Flag13-Sem)
4873
4874 -----------------------------------
4875 -- 9.4 Protected Operation Item --
4876 -----------------------------------
4877
4878 -- PROTECTED_OPERATION_ITEM ::=
4879 -- SUBPROGRAM_DECLARATION
4880 -- | SUBPROGRAM_BODY
4881 -- | ENTRY_BODY
4882 -- | REPRESENTATION_CLAUSE
4883
4884 ------------------------------
4885 -- 9.5.2 Entry Declaration --
4886 ------------------------------
4887
4888 -- ENTRY_DECLARATION ::=
4889 -- [[not] overriding]
4890 -- entry DEFINING_IDENTIFIER
4891 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
4892
4893 -- N_Entry_Declaration
4894 -- Sloc points to ENTRY
4895 -- Defining_Identifier (Node1)
4896 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
4897 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4898 -- Corresponding_Body (Node5-Sem)
4899 -- Must_Override (Flag14) set if overriding indicator present
4900 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4901
4902 -- Note: overriding indicator is an Ada 2005 feature
4903
4904 -----------------------------
4905 -- 9.5.2 Accept statement --
4906 -----------------------------
4907
4908 -- ACCEPT_STATEMENT ::=
4909 -- accept entry_DIRECT_NAME
4910 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
4911 -- HANDLED_SEQUENCE_OF_STATEMENTS
4912 -- end [entry_IDENTIFIER]];
4913
4914 -- Gigi restriction: This node never appears
4915
4916 -- Note: there are no explicit declarations allowed in an accept
4917 -- statement. However, the implicit declarations for any statement
4918 -- identifiers (labels and block/loop identifiers) are declarations
4919 -- that belong logically to the accept statement, and that is why
4920 -- there is a Declarations field in this node.
4921
4922 -- N_Accept_Statement
4923 -- Sloc points to ACCEPT
4924 -- Entry_Direct_Name (Node1)
4925 -- Entry_Index (Node5) (set to Empty if not present)
4926 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4927 -- Handled_Statement_Sequence (Node4)
4928 -- Declarations (List2) (set to No_List if no declarations)
4929
4930 ------------------------
4931 -- 9.5.2 Entry Index --
4932 ------------------------
4933
4934 -- ENTRY_INDEX ::= EXPRESSION
4935
4936 -----------------------
4937 -- 9.5.2 Entry Body --
4938 -----------------------
4939
4940 -- ENTRY_BODY ::=
4941 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
4942 -- DECLARATIVE_PART
4943 -- begin
4944 -- HANDLED_SEQUENCE_OF_STATEMENTS
4945 -- end [entry_IDENTIFIER];
4946
4947 -- ENTRY_BARRIER ::= when CONDITION
4948
4949 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
4950 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
4951 -- too full (it would otherwise have too many fields)
4952
4953 -- Gigi restriction: This node never appears
4954
4955 -- N_Entry_Body
4956 -- Sloc points to ENTRY
4957 -- Defining_Identifier (Node1)
4958 -- Entry_Body_Formal_Part (Node5)
4959 -- Declarations (List2)
4960 -- Handled_Statement_Sequence (Node4)
4961 -- Activation_Chain_Entity (Node3-Sem)
4962
4963 -----------------------------------
4964 -- 9.5.2 Entry Body Formal Part --
4965 -----------------------------------
4966
4967 -- ENTRY_BODY_FORMAL_PART ::=
4968 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
4969
4970 -- Note that an entry body formal part node is present even if it is
4971 -- empty. This reflects the grammar, in which it is the components of
4972 -- the entry body formal part that are optional, not the entry body
4973 -- formal part itself. Also this means that the barrier condition
4974 -- always has somewhere to be stored.
4975
4976 -- Gigi restriction: This node never appears
4977
4978 -- N_Entry_Body_Formal_Part
4979 -- Sloc points to first token
4980 -- Entry_Index_Specification (Node4) (set to Empty if not present)
4981 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4982 -- Condition (Node1) from entry barrier of entry body
4983
4984 --------------------------
4985 -- 9.5.2 Entry Barrier --
4986 --------------------------
4987
4988 -- ENTRY_BARRIER ::= when CONDITION
4989
4990 --------------------------------------
4991 -- 9.5.2 Entry Index Specification --
4992 --------------------------------------
4993
4994 -- ENTRY_INDEX_SPECIFICATION ::=
4995 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
4996
4997 -- Gigi restriction: This node never appears
4998
4999 -- N_Entry_Index_Specification
5000 -- Sloc points to FOR
5001 -- Defining_Identifier (Node1)
5002 -- Discrete_Subtype_Definition (Node4)
5003
5004 ---------------------------------
5005 -- 9.5.3 Entry Call Statement --
5006 ---------------------------------
5007
5008 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5009
5010 -- The parser may generate a procedure call for this construct. The
5011 -- semantic pass must correct this misidentification where needed.
5012
5013 -- Gigi restriction: This node never appears
5014
5015 -- N_Entry_Call_Statement
5016 -- Sloc points to first token of name
5017 -- Name (Node2)
5018 -- Parameter_Associations (List3) (set to No_List if no
5019 -- actual parameter part)
5020 -- First_Named_Actual (Node4-Sem)
5021
5022 ------------------------------
5023 -- 9.5.4 Requeue Statement --
5024 ------------------------------
5025
5026 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5027
5028 -- Note: requeue statements are not permitted in Ada 83 mode
5029
5030 -- Gigi restriction: This node never appears
5031
5032 -- N_Requeue_Statement
5033 -- Sloc points to REQUEUE
5034 -- Name (Node2)
5035 -- Abort_Present (Flag15)
5036
5037 --------------------------
5038 -- 9.6 Delay Statement --
5039 --------------------------
5040
5041 -- DELAY_STATEMENT ::=
5042 -- DELAY_UNTIL_STATEMENT
5043 -- | DELAY_RELATIVE_STATEMENT
5044
5045 --------------------------------
5046 -- 9.6 Delay Until Statement --
5047 --------------------------------
5048
5049 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5050
5051 -- Note: delay until statements are not permitted in Ada 83 mode
5052
5053 -- Gigi restriction: This node never appears
5054
5055 -- N_Delay_Until_Statement
5056 -- Sloc points to DELAY
5057 -- Expression (Node3)
5058
5059 -----------------------------------
5060 -- 9.6 Delay Relative Statement --
5061 -----------------------------------
5062
5063 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5064
5065 -- Gigi restriction: This node never appears
5066
5067 -- N_Delay_Relative_Statement
5068 -- Sloc points to DELAY
5069 -- Expression (Node3)
5070
5071 ---------------------------
5072 -- 9.7 Select Statement --
5073 ---------------------------
5074
5075 -- SELECT_STATEMENT ::=
5076 -- SELECTIVE_ACCEPT
5077 -- | TIMED_ENTRY_CALL
5078 -- | CONDITIONAL_ENTRY_CALL
5079 -- | ASYNCHRONOUS_SELECT
5080
5081 -----------------------------
5082 -- 9.7.1 Selective Accept --
5083 -----------------------------
5084
5085 -- SELECTIVE_ACCEPT ::=
5086 -- select
5087 -- [GUARD]
5088 -- SELECT_ALTERNATIVE
5089 -- {or
5090 -- [GUARD]
5091 -- SELECT_ALTERNATIVE}
5092 -- [else
5093 -- SEQUENCE_OF_STATEMENTS]
5094 -- end select;
5095
5096 -- Gigi restriction: This node never appears
5097
5098 -- Note: the guard expression, if present, appears in the node for
5099 -- the select alternative.
5100
5101 -- N_Selective_Accept
5102 -- Sloc points to SELECT
5103 -- Select_Alternatives (List1)
5104 -- Else_Statements (List4) (set to No_List if no else part)
5105
5106 ------------------
5107 -- 9.7.1 Guard --
5108 ------------------
5109
5110 -- GUARD ::= when CONDITION =>
5111
5112 -- As noted above, the CONDITION that is part of a GUARD is included
5113 -- in the node for the select alernative for convenience.
5114
5115 -------------------------------
5116 -- 9.7.1 Select Alternative --
5117 -------------------------------
5118
5119 -- SELECT_ALTERNATIVE ::=
5120 -- ACCEPT_ALTERNATIVE
5121 -- | DELAY_ALTERNATIVE
5122 -- | TERMINATE_ALTERNATIVE
5123
5124 -------------------------------
5125 -- 9.7.1 Accept Alternative --
5126 -------------------------------
5127
5128 -- ACCEPT_ALTERNATIVE ::=
5129 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5130
5131 -- Gigi restriction: This node never appears
5132
5133 -- N_Accept_Alternative
5134 -- Sloc points to ACCEPT
5135 -- Accept_Statement (Node2)
5136 -- Condition (Node1) from the guard (set to Empty if no guard present)
5137 -- Statements (List3) (set to Empty_List if no statements)
5138 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5139 -- Accept_Handler_Records (List5-Sem)
5140
5141 ------------------------------
5142 -- 9.7.1 Delay Alternative --
5143 ------------------------------
5144
5145 -- DELAY_ALTERNATIVE ::=
5146 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5147
5148 -- Gigi restriction: This node never appears
5149
5150 -- N_Delay_Alternative
5151 -- Sloc points to DELAY
5152 -- Delay_Statement (Node2)
5153 -- Condition (Node1) from the guard (set to Empty if no guard present)
5154 -- Statements (List3) (set to Empty_List if no statements)
5155 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5156
5157 ----------------------------------
5158 -- 9.7.1 Terminate Alternative --
5159 ----------------------------------
5160
5161 -- TERMINATE_ALTERNATIVE ::= terminate;
5162
5163 -- Gigi restriction: This node never appears
5164
5165 -- N_Terminate_Alternative
5166 -- Sloc points to TERMINATE
5167 -- Condition (Node1) from the guard (set to Empty if no guard present)
5168 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5169 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5170
5171 -----------------------------
5172 -- 9.7.2 Timed Entry Call --
5173 -----------------------------
5174
5175 -- TIMED_ENTRY_CALL ::=
5176 -- select
5177 -- ENTRY_CALL_ALTERNATIVE
5178 -- or
5179 -- DELAY_ALTERNATIVE
5180 -- end select;
5181
5182 -- Gigi restriction: This node never appears
5183
5184 -- N_Timed_Entry_Call
5185 -- Sloc points to SELECT
5186 -- Entry_Call_Alternative (Node1)
5187 -- Delay_Alternative (Node4)
5188
5189 -----------------------------------
5190 -- 9.7.2 Entry Call Alternative --
5191 -----------------------------------
5192
5193 -- ENTRY_CALL_ALTERNATIVE ::=
5194 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5195
5196 -- PROCEDURE_OR_ENTRY_CALL ::=
5197 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5198
5199 -- Gigi restriction: This node never appears
5200
5201 -- N_Entry_Call_Alternative
5202 -- Sloc points to first token of entry call statement
5203 -- Entry_Call_Statement (Node1)
5204 -- Statements (List3) (set to Empty_List if no statements)
5205 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5206
5207 -----------------------------------
5208 -- 9.7.3 Conditional Entry Call --
5209 -----------------------------------
5210
5211 -- CONDITIONAL_ENTRY_CALL ::=
5212 -- select
5213 -- ENTRY_CALL_ALTERNATIVE
5214 -- else
5215 -- SEQUENCE_OF_STATEMENTS
5216 -- end select;
5217
5218 -- Gigi restriction: This node never appears
5219
5220 -- N_Conditional_Entry_Call
5221 -- Sloc points to SELECT
5222 -- Entry_Call_Alternative (Node1)
5223 -- Else_Statements (List4)
5224
5225 --------------------------------
5226 -- 9.7.4 Asynchronous Select --
5227 --------------------------------
5228
5229 -- ASYNCHRONOUS_SELECT ::=
5230 -- select
5231 -- TRIGGERING_ALTERNATIVE
5232 -- then abort
5233 -- ABORTABLE_PART
5234 -- end select;
5235
5236 -- Note: asynchronous select is not permitted in Ada 83 mode
5237
5238 -- Gigi restriction: This node never appears
5239
5240 -- N_Asynchronous_Select
5241 -- Sloc points to SELECT
5242 -- Triggering_Alternative (Node1)
5243 -- Abortable_Part (Node2)
5244
5245 -----------------------------------
5246 -- 9.7.4 Triggering Alternative --
5247 -----------------------------------
5248
5249 -- TRIGGERING_ALTERNATIVE ::=
5250 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5251
5252 -- Gigi restriction: This node never appears
5253
5254 -- N_Triggering_Alternative
5255 -- Sloc points to first token of triggering statement
5256 -- Triggering_Statement (Node1)
5257 -- Statements (List3) (set to Empty_List if no statements)
5258 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5259
5260 ---------------------------------
5261 -- 9.7.4 Triggering Statement --
5262 ---------------------------------
5263
5264 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5265
5266 ---------------------------
5267 -- 9.7.4 Abortable Part --
5268 ---------------------------
5269
5270 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5271
5272 -- Gigi restriction: This node never appears
5273
5274 -- N_Abortable_Part
5275 -- Sloc points to ABORT
5276 -- Statements (List3)
5277
5278 --------------------------
5279 -- 9.8 Abort Statement --
5280 --------------------------
5281
5282 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5283
5284 -- Gigi restriction: This node never appears
5285
5286 -- N_Abort_Statement
5287 -- Sloc points to ABORT
5288 -- Names (List2)
5289
5290 -------------------------
5291 -- 10.1.1 Compilation --
5292 -------------------------
5293
5294 -- COMPILATION ::= {COMPILATION_UNIT}
5295
5296 -- There is no explicit node in the tree for a compilation, since in
5297 -- general the compiler is processing only a single compilation unit
5298 -- at a time. It is possible to parse multiple units in syntax check
5299 -- only mode, but they the trees are discarded in any case.
5300
5301 ------------------------------
5302 -- 10.1.1 Compilation Unit --
5303 ------------------------------
5304
5305 -- COMPILATION_UNIT ::=
5306 -- CONTEXT_CLAUSE LIBRARY_ITEM
5307 -- | CONTEXT_CLAUSE SUBUNIT
5308
5309 -- The N_Compilation_Unit node itself respresents the above syntax.
5310 -- However, there are two additional items not reflected in the above
5311 -- syntax. First we have the global declarations that are added by the
5312 -- code generator. These are outer level declarations (so they cannot
5313 -- be represented as being inside the units). An example is the wrapper
5314 -- subprograms that are created to do ABE checking. As always a list of
5315 -- declarations can contain actions as well (i.e. statements), and such
5316 -- statements are executed as part of the elaboration of the unit. Note
5317 -- that all such declarations are elaborated before the library unit.
5318
5319 -- Similarly, certain actions need to be elaborated at the completion
5320 -- of elaboration of the library unit (notably the statement that sets
5321 -- the Boolean flag indicating that elaboration is complete).
5322
5323 -- The third item not reflected in the syntax is pragmas that appear
5324 -- after the compilation unit. As always pragmas are a problem since
5325 -- they are not part of the formal syntax, but can be stuck into the
5326 -- source following a set of ad hoc rules, and we have to find an ad
5327 -- hoc way of sticking them into the tree. For pragmas that appear
5328 -- before the library unit, we just consider them to be part of the
5329 -- context clause, and pragmas can appear in the Context_Items list
5330 -- of the compilation unit. However, pragmas can also appear after
5331 -- the library item.
5332
5333 -- To deal with all these problems, we create an auxiliary node for
5334 -- a compilation unit, referenced from the N_Compilation_Unit node
5335 -- that contains these three items.
5336
5337 -- N_Compilation_Unit
5338 -- Sloc points to first token of defining unit name
5339 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
5340 -- Context_Items (List1) context items and pragmas preceding unit
5341 -- Private_Present (Flag15) set if library unit has private keyword
5342 -- Unit (Node2) library item or subunit
5343 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5344 -- Has_No_Elaboration_Code (Flag17-Sem)
5345 -- Body_Required (Flag13-Sem) set for spec if body is required
5346 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5347 -- First_Inlined_Subprogram (Node3-Sem)
5348
5349 -- N_Compilation_Unit_Aux
5350 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
5351 -- Declarations (List2) (set to No_List if no global declarations)
5352 -- Actions (List1) (set to No_List if no actions)
5353 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
5354 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5355
5356 --------------------------
5357 -- 10.1.1 Library Item --
5358 --------------------------
5359
5360 -- LIBRARY_ITEM ::=
5361 -- [private] LIBRARY_UNIT_DECLARATION
5362 -- | LIBRARY_UNIT_BODY
5363 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5364
5365 -- Note: PRIVATE is not allowed in Ada 83 mode
5366
5367 -- There is no explicit node in the tree for library item, instead
5368 -- the declaration or body, and the flag for private if present,
5369 -- appear in the N_Compilation_Unit clause.
5370
5371 ----------------------------------------
5372 -- 10.1.1 Library Unit Declararation --
5373 ----------------------------------------
5374
5375 -- LIBRARY_UNIT_DECLARATION ::=
5376 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5377 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
5378
5379 -------------------------------------------------
5380 -- 10.1.1 Library Unit Renaming Declararation --
5381 -------------------------------------------------
5382
5383 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
5384 -- PACKAGE_RENAMING_DECLARATION
5385 -- | GENERIC_RENAMING_DECLARATION
5386 -- | SUBPROGRAM_RENAMING_DECLARATION
5387
5388 -------------------------------
5389 -- 10.1.1 Library unit body --
5390 -------------------------------
5391
5392 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5393
5394 ------------------------------
5395 -- 10.1.1 Parent Unit Name --
5396 ------------------------------
5397
5398 -- PARENT_UNIT_NAME ::= NAME
5399
5400 ----------------------------
5401 -- 10.1.2 Context clause --
5402 ----------------------------
5403
5404 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5405
5406 -- The context clause can include pragmas, and any pragmas that appear
5407 -- before the context clause proper (i.e. all configuration pragmas,
5408 -- also appear at the front of this list).
5409
5410 --------------------------
5411 -- 10.1.2 Context_Item --
5412 --------------------------
5413
5414 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
5415
5416 -------------------------
5417 -- 10.1.2 With clause --
5418 -------------------------
5419
5420 -- WITH_CLAUSE ::=
5421 -- with library_unit_NAME {,library_unit_NAME};
5422
5423 -- A separate With clause is built for each name, so that we have
5424 -- a Corresponding_Spec field for each with'ed spec. The flags
5425 -- First_Name and Last_Name are used to reconstruct the exact
5426 -- source form. When a list of names appears in one with clause,
5427 -- the first name in the list has First_Name set, and the last
5428 -- has Last_Name set. If the with clause has only one name, then
5429 -- both of the flags First_Name and Last_Name are set in this name.
5430
5431 -- Note: in the case of implicit with's that are installed by the
5432 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
5433 -- set to Standard_Location, but it is incorrect to test the Sloc
5434 -- to find out if a with clause is implicit, test the flag instead.
5435
5436 -- N_With_Clause
5437 -- Sloc points to first token of library unit name
5438 -- Name (Node2)
5439 -- Library_Unit (Node4-Sem)
5440 -- Corresponding_Spec (Node5-Sem)
5441 -- First_Name (Flag5) (set to True if first name or only one name)
5442 -- Last_Name (Flag6) (set to True if last name or only one name)
5443 -- Context_Installed (Flag13-Sem)
5444 -- Elaborate_Present (Flag4-Sem)
5445 -- Elaborate_All_Present (Flag14-Sem)
5446 -- Elaborate_All_Desirable (Flag9-Sem)
5447 -- Elaborate_Desirable (Flag11-Sem)
5448 -- Private_Present (Flag15) set if with_clause has private keyword
5449 -- Implicit_With (Flag16-Sem)
5450 -- Limited_Present (Flag17) set if LIMITED is present
5451 -- Limited_View_Installed (Flag18-Sem)
5452 -- Unreferenced_In_Spec (Flag7-Sem)
5453 -- No_Entities_Ref_In_Spec (Flag8-Sem)
5454
5455 -- Note: Limited_Present and Limited_View_Installed give support to
5456 -- Ada 2005 (AI-50217).
5457 -- Similarly, Private_Present gives support to AI-50262.
5458
5459 ----------------------
5460 -- With_Type clause --
5461 ----------------------
5462
5463 -- This is a GNAT extension, used to implement mutually recursive
5464 -- types declared in different packages.
5465 -- Note: this is now obsolete. The functionality of this construct
5466 -- is now implemented by the Ada 2005 Limited_with_Clause.
5467
5468 ---------------------
5469 -- 10.2 Body stub --
5470 ---------------------
5471
5472 -- BODY_STUB ::=
5473 -- SUBPROGRAM_BODY_STUB
5474 -- | PACKAGE_BODY_STUB
5475 -- | TASK_BODY_STUB
5476 -- | PROTECTED_BODY_STUB
5477
5478 ----------------------------------
5479 -- 10.1.3 Subprogram Body Stub --
5480 ----------------------------------
5481
5482 -- SUBPROGRAM_BODY_STUB ::=
5483 -- SUBPROGRAM_SPECIFICATION is separate;
5484
5485 -- N_Subprogram_Body_Stub
5486 -- Sloc points to FUNCTION or PROCEDURE
5487 -- Specification (Node1)
5488 -- Library_Unit (Node4-Sem) points to the subunit
5489 -- Corresponding_Body (Node5-Sem)
5490
5491 -------------------------------
5492 -- 10.1.3 Package Body Stub --
5493 -------------------------------
5494
5495 -- PACKAGE_BODY_STUB ::=
5496 -- package body DEFINING_IDENTIFIER is separate;
5497
5498 -- N_Package_Body_Stub
5499 -- Sloc points to PACKAGE
5500 -- Defining_Identifier (Node1)
5501 -- Library_Unit (Node4-Sem) points to the subunit
5502 -- Corresponding_Body (Node5-Sem)
5503
5504 ----------------------------
5505 -- 10.1.3 Task Body Stub --
5506 ----------------------------
5507
5508 -- TASK_BODY_STUB ::=
5509 -- task body DEFINING_IDENTIFIER is separate;
5510
5511 -- N_Task_Body_Stub
5512 -- Sloc points to TASK
5513 -- Defining_Identifier (Node1)
5514 -- Library_Unit (Node4-Sem) points to the subunit
5515 -- Corresponding_Body (Node5-Sem)
5516
5517 ---------------------------------
5518 -- 10.1.3 Protected Body Stub --
5519 ---------------------------------
5520
5521 -- PROTECTED_BODY_STUB ::=
5522 -- protected body DEFINING_IDENTIFIER is separate;
5523
5524 -- Note: protected body stubs are not allowed in Ada 83 mode
5525
5526 -- N_Protected_Body_Stub
5527 -- Sloc points to PROTECTED
5528 -- Defining_Identifier (Node1)
5529 -- Library_Unit (Node4-Sem) points to the subunit
5530 -- Corresponding_Body (Node5-Sem)
5531
5532 ---------------------
5533 -- 10.1.3 Subunit --
5534 ---------------------
5535
5536 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5537
5538 -- N_Subunit
5539 -- Sloc points to SEPARATE
5540 -- Name (Node2) is the name of the parent unit
5541 -- Proper_Body (Node1) is the subunit body
5542 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5543
5544 ---------------------------------
5545 -- 11.1 Exception Declaration --
5546 ---------------------------------
5547
5548 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception;
5549
5550 -- For consistency with object declarations etc, the parser converts
5551 -- the case of multiple identifiers being declared to a series of
5552 -- declarations in which the expression is copied, using the More_Ids
5553 -- and Prev_Ids flags to remember the souce form as described in the
5554 -- section on "Handling of Defining Identifier Lists".
5555
5556 -- N_Exception_Declaration
5557 -- Sloc points to EXCEPTION
5558 -- Defining_Identifier (Node1)
5559 -- Expression (Node3-Sem)
5560 -- Renaming_Exception (Node2-Sem)
5561 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5562 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5563
5564 ------------------------------------------
5565 -- 11.2 Handled Sequence Of Statements --
5566 ------------------------------------------
5567
5568 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
5569 -- SEQUENCE_OF_STATEMENTS
5570 -- [exception
5571 -- EXCEPTION_HANDLER
5572 -- {EXCEPTION_HANDLER}]
5573 -- [at end
5574 -- cleanup_procedure_call (param, param, param, ...);]
5575
5576 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
5577 -- used only internally currently, but is considered to be syntactic.
5578 -- At the moment, the only cleanup action allowed is a single call to
5579 -- a parameterless procedure, and the Identifier field of the node is
5580 -- the procedure to be called. Also there is a current restriction
5581 -- that exception handles and a cleanup cannot be present in the same
5582 -- frame, so at least one of Exception_Handlers or the Identifier must
5583 -- be missing.
5584
5585 -- Actually, more accurately, this restriction applies to the original
5586 -- source program. In the expanded tree, if the At_End_Proc field is
5587 -- present, then there will also be an exception handler of the form:
5588
5589 -- when all others =>
5590 -- cleanup;
5591 -- raise;
5592
5593 -- where cleanup is the procedure to be generated. The reason we do
5594 -- this is so that the front end can handle the necessary entries in
5595 -- the exception tables, and other exception handler actions required
5596 -- as part of the normal handling for exception handlers.
5597
5598 -- The AT END cleanup handler protects only the sequence of statements
5599 -- (not the associated declarations of the parent), just like exception
5600 -- handlers. The big difference is that the cleanup procedure is called
5601 -- on either a normal or an abnormal exit from the statement sequence.
5602
5603 -- Note: the list of Exception_Handlers can contain pragmas as well
5604 -- as actual handlers. In practice these pragmas can only occur at
5605 -- the start of the list, since any pragmas occurring later on will
5606 -- be included in the statement list of the corresponding handler.
5607
5608 -- Note: although in the Ada syntax, the sequence of statements in
5609 -- a handled sequence of statements can only contain statements, we
5610 -- allow free mixing of declarations and statements in the resulting
5611 -- expanded tree. This is for example used to deal with the case of
5612 -- a cleanup procedure that must handle declarations as well as the
5613 -- statements of a block.
5614
5615 -- N_Handled_Sequence_Of_Statements
5616 -- Sloc points to first token of first statement
5617 -- Statements (List3)
5618 -- End_Label (Node4) (set to Empty if expander generated)
5619 -- Exception_Handlers (List5) (set to No_List if none present)
5620 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
5621 -- First_Real_Statement (Node2-Sem)
5622 -- Zero_Cost_Handling (Flag5-Sem)
5623
5624 -- Note: the parent always contains a Declarations field which contains
5625 -- declarations associated with the handled sequence of statements. This
5626 -- is true even in the case of an accept statement (see description of
5627 -- the N_Accept_Statement node).
5628
5629 -- End_Label refers to the containing construct
5630
5631 -----------------------------
5632 -- 11.2 Exception Handler --
5633 -----------------------------
5634
5635 -- EXCEPTION_HANDLER ::=
5636 -- when [CHOICE_PARAMETER_SPECIFICATION :]
5637 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5638 -- SEQUENCE_OF_STATEMENTS
5639
5640 -- Note: choice parameter specification is not allowed in Ada 83 mode
5641
5642 -- N_Exception_Handler
5643 -- Sloc points to WHEN
5644 -- Choice_Parameter (Node2) (set to Empty if not present)
5645 -- Exception_Choices (List4)
5646 -- Statements (List3)
5647 -- Exception_Label (Node5-Sem) (set to Empty of not present)
5648 -- Zero_Cost_Handling (Flag5-Sem)
5649 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5650 -- Local_Raise_Not_OK (Flag7-Sem)
5651 -- Has_Local_Raise (Flag8-Sem)
5652
5653 ------------------------------------------
5654 -- 11.2 Choice parameter specification --
5655 ------------------------------------------
5656
5657 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5658
5659 ----------------------------
5660 -- 11.2 Exception Choice --
5661 ----------------------------
5662
5663 -- EXCEPTION_CHOICE ::= exception_NAME | others
5664
5665 -- Except in the case of OTHERS, no explicit node appears in the tree
5666 -- for exception choice. Instead the exception name appears directly.
5667 -- An OTHERS choice is represented by a N_Others_Choice node (see
5668 -- section 3.8.1.
5669
5670 -- Note: for the exception choice created for an at end handler, the
5671 -- exception choice is an N_Others_Choice node with All_Others set.
5672
5673 ---------------------------
5674 -- 11.3 Raise Statement --
5675 ---------------------------
5676
5677 -- RAISE_STATEMENT ::= raise [exception_NAME];
5678
5679 -- In Ada 2005, we have
5680
5681 -- RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5682
5683 -- N_Raise_Statement
5684 -- Sloc points to RAISE
5685 -- Name (Node2) (set to Empty if no exception name present)
5686 -- Expression (Node3) (set to Empty if no expression present)
5687 -- From_At_End (Flag4-Sem)
5688
5689 -------------------------------
5690 -- 12.1 Generic Declaration --
5691 -------------------------------
5692
5693 -- GENERIC_DECLARATION ::=
5694 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5695
5696 ------------------------------------------
5697 -- 12.1 Generic Subprogram Declaration --
5698 ------------------------------------------
5699
5700 -- GENERIC_SUBPROGRAM_DECLARATION ::=
5701 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5702
5703 -- Note: Generic_Formal_Declarations can include pragmas
5704
5705 -- N_Generic_Subprogram_Declaration
5706 -- Sloc points to GENERIC
5707 -- Specification (Node1) subprogram specification
5708 -- Corresponding_Body (Node5-Sem)
5709 -- Generic_Formal_Declarations (List2) from generic formal part
5710 -- Parent_Spec (Node4-Sem)
5711
5712 ---------------------------------------
5713 -- 12.1 Generic Package Declaration --
5714 ---------------------------------------
5715
5716 -- GENERIC_PACKAGE_DECLARATION ::=
5717 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION;
5718
5719 -- Note: when we do generics right, the Activation_Chain_Entity entry
5720 -- for this node can be removed (since the expander won't see generic
5721 -- units any more)???.
5722
5723 -- Note: Generic_Formal_Declarations can include pragmas
5724
5725 -- N_Generic_Package_Declaration
5726 -- Sloc points to GENERIC
5727 -- Specification (Node1) package specification
5728 -- Corresponding_Body (Node5-Sem)
5729 -- Generic_Formal_Declarations (List2) from generic formal part
5730 -- Parent_Spec (Node4-Sem)
5731 -- Activation_Chain_Entity (Node3-Sem)
5732
5733 -------------------------------
5734 -- 12.1 Generic Formal Part --
5735 -------------------------------
5736
5737 -- GENERIC_FORMAL_PART ::=
5738 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
5739
5740 ------------------------------------------------
5741 -- 12.1 Generic Formal Parameter Declaration --
5742 ------------------------------------------------
5743
5744 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
5745 -- FORMAL_OBJECT_DECLARATION
5746 -- | FORMAL_TYPE_DECLARATION
5747 -- | FORMAL_SUBPROGRAM_DECLARATION
5748 -- | FORMAL_PACKAGE_DECLARATION
5749
5750 ---------------------------------
5751 -- 12.3 Generic Instantiation --
5752 ---------------------------------
5753
5754 -- GENERIC_INSTANTIATION ::=
5755 -- package DEFINING_PROGRAM_UNIT_NAME is
5756 -- new generic_package_NAME [GENERIC_ACTUAL_PART];
5757 -- | [[not] overriding]
5758 -- procedure DEFINING_PROGRAM_UNIT_NAME is
5759 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART];
5760 -- | [[not] overriding]
5761 -- function DEFINING_DESIGNATOR is
5762 -- new generic_function_NAME [GENERIC_ACTUAL_PART];
5763
5764 -- N_Package_Instantiation
5765 -- Sloc points to PACKAGE
5766 -- Defining_Unit_Name (Node1)
5767 -- Name (Node2)
5768 -- Generic_Associations (List3) (set to No_List if no
5769 -- generic actual part)
5770 -- Parent_Spec (Node4-Sem)
5771 -- Instance_Spec (Node5-Sem)
5772 -- ABE_Is_Certain (Flag18-Sem)
5773
5774 -- N_Procedure_Instantiation
5775 -- Sloc points to PROCEDURE
5776 -- Defining_Unit_Name (Node1)
5777 -- Name (Node2)
5778 -- Parent_Spec (Node4-Sem)
5779 -- Generic_Associations (List3) (set to No_List if no
5780 -- generic actual part)
5781 -- Instance_Spec (Node5-Sem)
5782 -- Must_Override (Flag14) set if overriding indicator present
5783 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5784 -- ABE_Is_Certain (Flag18-Sem)
5785
5786 -- N_Function_Instantiation
5787 -- Sloc points to FUNCTION
5788 -- Defining_Unit_Name (Node1)
5789 -- Name (Node2)
5790 -- Generic_Associations (List3) (set to No_List if no
5791 -- generic actual part)
5792 -- Parent_Spec (Node4-Sem)
5793 -- Instance_Spec (Node5-Sem)
5794 -- Must_Override (Flag14) set if overriding indicator present
5795 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5796 -- ABE_Is_Certain (Flag18-Sem)
5797
5798 -- Note: overriding indicator is an Ada 2005 feature
5799
5800 ------------------------------
5801 -- 12.3 Generic Actual Part --
5802 ------------------------------
5803
5804 -- GENERIC_ACTUAL_PART ::=
5805 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
5806
5807 -------------------------------
5808 -- 12.3 Generic Association --
5809 -------------------------------
5810
5811 -- GENERIC_ASSOCIATION ::=
5812 -- [generic_formal_parameter_SELECTOR_NAME =>]
5813
5814 -- Note: unlike the procedure call case, a generic association node
5815 -- is generated for every association, even if no formal is present.
5816 -- In this case the parser will leave the Selector_Name field set
5817 -- to Empty, to be filled in later by the semantic pass.
5818
5819 -- In Ada 2005, a formal may be associated with a box, if the
5820 -- association is part of the list of actuals for a formal package.
5821 -- If the association is given by OTHERS => <>, the association is
5822 -- an N_Others_Choice.
5823
5824 -- N_Generic_Association
5825 -- Sloc points to first token of generic association
5826 -- Selector_Name (Node2) (set to Empty if no formal
5827 -- parameter selector name)
5828 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
5829 -- Box_Present (Flag15) (for formal_package associations with a box)
5830
5831 ---------------------------------------------
5832 -- 12.3 Explicit Generic Actual Parameter --
5833 ---------------------------------------------
5834
5835 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
5836 -- EXPRESSION | variable_NAME | subprogram_NAME
5837 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
5838
5839 -------------------------------------
5840 -- 12.4 Formal Object Declaration --
5841 -------------------------------------
5842
5843 -- FORMAL_OBJECT_DECLARATION ::=
5844 -- DEFINING_IDENTIFIER_LIST :
5845 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION];
5846 -- | DEFINING_IDENTIFIER_LIST :
5847 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION];
5848
5849 -- Although the syntax allows multiple identifiers in the list, the
5850 -- semantics is as though successive declarations were given with
5851 -- identical type definition and expression components. To simplify
5852 -- semantic processing, the parser represents a multiple declaration
5853 -- case as a sequence of single declarations, using the More_Ids and
5854 -- Prev_Ids flags to preserve the original source form as described
5855 -- in the section on "Handling of Defining Identifier Lists".
5856
5857 -- N_Formal_Object_Declaration
5858 -- Sloc points to first identifier
5859 -- Defining_Identifier (Node1)
5860 -- In_Present (Flag15)
5861 -- Out_Present (Flag17)
5862 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5863 -- Subtype_Mark (Node4) (set to Empty if not present)
5864 -- Access_Definition (Node3) (set to Empty if not present)
5865 -- Default_Expression (Node5) (set to Empty if no default expression)
5866 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5867 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5868
5869 -----------------------------------
5870 -- 12.5 Formal Type Declaration --
5871 -----------------------------------
5872
5873 -- FORMAL_TYPE_DECLARATION ::=
5874 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5875 -- is FORMAL_TYPE_DEFINITION;
5876
5877 -- N_Formal_Type_Declaration
5878 -- Sloc points to TYPE
5879 -- Defining_Identifier (Node1)
5880 -- Formal_Type_Definition (Node3)
5881 -- Discriminant_Specifications (List4) (set to No_List if no
5882 -- discriminant part)
5883 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5884
5885 ----------------------------------
5886 -- 12.5 Formal type definition --
5887 ----------------------------------
5888
5889 -- FORMAL_TYPE_DEFINITION ::=
5890 -- FORMAL_PRIVATE_TYPE_DEFINITION
5891 -- | FORMAL_DERIVED_TYPE_DEFINITION
5892 -- | FORMAL_DISCRETE_TYPE_DEFINITION
5893 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
5894 -- | FORMAL_MODULAR_TYPE_DEFINITION
5895 -- | FORMAL_FLOATING_POINT_DEFINITION
5896 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
5897 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
5898 -- | FORMAL_ARRAY_TYPE_DEFINITION
5899 -- | FORMAL_ACCESS_TYPE_DEFINITION
5900 -- | FORMAL_INTERFACE_TYPE_DEFINITION
5901
5902 ---------------------------------------------
5903 -- 12.5.1 Formal Private Type Definition --
5904 ---------------------------------------------
5905
5906 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
5907 -- [[abstract] tagged] [limited] private
5908
5909 -- Note: TAGGED is not allowed in Ada 83 mode
5910
5911 -- N_Formal_Private_Type_Definition
5912 -- Sloc points to PRIVATE
5913 -- Abstract_Present (Flag4)
5914 -- Tagged_Present (Flag15)
5915 -- Limited_Present (Flag17)
5916
5917 --------------------------------------------
5918 -- 12.5.1 Formal Derived Type Definition --
5919 --------------------------------------------
5920
5921 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
5922 -- [abstract] [limited | synchronized]
5923 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
5924 -- Note: this construct is not allowed in Ada 83 mode
5925
5926 -- N_Formal_Derived_Type_Definition
5927 -- Sloc points to NEW
5928 -- Subtype_Mark (Node4)
5929 -- Private_Present (Flag15)
5930 -- Abstract_Present (Flag4)
5931 -- Limited_Present (Flag17)
5932 -- Synchronized_Present (Flag7)
5933 -- Interface_List (List2) (set to No_List if none)
5934
5935 ---------------------------------------------
5936 -- 12.5.2 Formal Discrete Type Definition --
5937 ---------------------------------------------
5938
5939 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
5940
5941 -- N_Formal_Discrete_Type_Definition
5942 -- Sloc points to (
5943
5944 ---------------------------------------------------
5945 -- 12.5.2 Formal Signed Integer Type Definition --
5946 ---------------------------------------------------
5947
5948 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
5949
5950 -- N_Formal_Signed_Integer_Type_Definition
5951 -- Sloc points to RANGE
5952
5953 --------------------------------------------
5954 -- 12.5.2 Formal Modular Type Definition --
5955 --------------------------------------------
5956
5957 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
5958
5959 -- N_Formal_Modular_Type_Definition
5960 -- Sloc points to MOD
5961
5962 ----------------------------------------------
5963 -- 12.5.2 Formal Floating Point Definition --
5964 ----------------------------------------------
5965
5966 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
5967
5968 -- N_Formal_Floating_Point_Definition
5969 -- Sloc points to DIGITS
5970
5971 ----------------------------------------------------
5972 -- 12.5.2 Formal Ordinary Fixed Point Definition --
5973 ----------------------------------------------------
5974
5975 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
5976
5977 -- N_Formal_Ordinary_Fixed_Point_Definition
5978 -- Sloc points to DELTA
5979
5980 ---------------------------------------------------
5981 -- 12.5.2 Formal Decimal Fixed Point Definition --
5982 ---------------------------------------------------
5983
5984 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
5985
5986 -- Note: formal decimal fixed point definition not allowed in Ada 83
5987
5988 -- N_Formal_Decimal_Fixed_Point_Definition
5989 -- Sloc points to DELTA
5990
5991 ------------------------------------------
5992 -- 12.5.3 Formal Array Type Definition --
5993 ------------------------------------------
5994
5995 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
5996
5997 -------------------------------------------
5998 -- 12.5.4 Formal Access Type Definition --
5999 -------------------------------------------
6000
6001 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6002
6003 ----------------------------------------------
6004 -- 12.5.5 Formal Interface Type Definition --
6005 ----------------------------------------------
6006
6007 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6008
6009 -----------------------------------------
6010 -- 12.6 Formal Subprogram Declaration --
6011 -----------------------------------------
6012
6013 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6014 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6015 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6016
6017 --------------------------------------------------
6018 -- 12.6 Formal Concrete Subprogram Declaration --
6019 --------------------------------------------------
6020
6021 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6022 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT];
6023
6024 -- N_Formal_Concrete_Subprogram_Declaration
6025 -- Sloc points to WITH
6026 -- Specification (Node1)
6027 -- Default_Name (Node2) (set to Empty if no subprogram default)
6028 -- Box_Present (Flag15)
6029
6030 -- Note: if no subprogram default is present, then Name is set
6031 -- to Empty, and Box_Present is False.
6032
6033 --------------------------------------------------
6034 -- 12.6 Formal Abstract Subprogram Declaration --
6035 --------------------------------------------------
6036
6037 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6038 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT];
6039
6040 -- N_Formal_Abstract_Subprogram_Declaration
6041 -- Sloc points to WITH
6042 -- Specification (Node1)
6043 -- Default_Name (Node2) (set to Empty if no subprogram default)
6044 -- Box_Present (Flag15)
6045
6046 -- Note: if no subprogram default is present, then Name is set
6047 -- to Empty, and Box_Present is False.
6048
6049 ------------------------------
6050 -- 12.6 Subprogram Default --
6051 ------------------------------
6052
6053 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6054
6055 -- There is no separate node in the tree for a subprogram default.
6056 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6057 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6058 -- default name or box indication, as needed.
6059
6060 ------------------------
6061 -- 12.6 Default Name --
6062 ------------------------
6063
6064 -- DEFAULT_NAME ::= NAME
6065
6066 --------------------------------------
6067 -- 12.7 Formal Package Declaration --
6068 --------------------------------------
6069
6070 -- FORMAL_PACKAGE_DECLARATION ::=
6071 -- with package DEFINING_IDENTIFIER
6072 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART;
6073
6074 -- Note: formal package declarations not allowed in Ada 83 mode
6075
6076 -- N_Formal_Package_Declaration
6077 -- Sloc points to WITH
6078 -- Defining_Identifier (Node1)
6079 -- Name (Node2)
6080 -- Generic_Associations (List3) (set to No_List if (<>) case or
6081 -- empty generic actual part)
6082 -- Box_Present (Flag15)
6083 -- Instance_Spec (Node5-Sem)
6084 -- ABE_Is_Certain (Flag18-Sem)
6085
6086 --------------------------------------
6087 -- 12.7 Formal Package Actual Part --
6088 --------------------------------------
6089
6090 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6091 -- ([OTHERS] => <>)
6092 -- | [GENERIC_ACTUAL_PART]
6093 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6094
6095 -- FORMAL_PACKAGE_ASSOCIATION ::=
6096 -- GENERIC_ASSOCIATION
6097 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6098
6099 -- There is no explicit node in the tree for a formal package actual
6100 -- part. Instead the information appears in the parent node (i.e. the
6101 -- formal package declaration node itself).
6102
6103 -- There is no explicit node for a formal package association. All of
6104 -- them are represented either by a generic association, possibly with
6105 -- Box_Present, or by an N_Others_Choice.
6106
6107 ---------------------------------
6108 -- 13.1 Representation clause --
6109 ---------------------------------
6110
6111 -- REPRESENTATION_CLAUSE ::=
6112 -- ATTRIBUTE_DEFINITION_CLAUSE
6113 -- | ENUMERATION_REPRESENTATION_CLAUSE
6114 -- | RECORD_REPRESENTATION_CLAUSE
6115 -- | AT_CLAUSE
6116
6117 ----------------------
6118 -- 13.1 Local Name --
6119 ----------------------
6120
6121 -- LOCAL_NAME :=
6122 -- DIRECT_NAME
6123 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6124 -- | library_unit_NAME
6125
6126 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6127 -- as an attribute reference, which has essentially the same form.
6128
6129 ---------------------------------------
6130 -- 13.3 Attribute definition clause --
6131 ---------------------------------------
6132
6133 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6134 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6135 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6136
6137 -- In Ada 83, the expression must be a simple expression and the
6138 -- local name must be a direct name.
6139
6140 -- Note: the only attribute definition clause that is processed by
6141 -- gigi is an address clause. For all other cases, the information
6142 -- is extracted by the front end and either results in setting entity
6143 -- information, e.g. Esize for the Size clause, or in appropriate
6144 -- expansion actions (e.g. in the case of Storage_Size).
6145
6146 -- For an address clause, Gigi constructs the appropriate addressing
6147 -- code. It also ensures that no aliasing optimizations are made
6148 -- for the object for which the address clause appears.
6149
6150 -- Note: for an address clause used to achieve an overlay:
6151
6152 -- A : Integer;
6153 -- B : Integer;
6154 -- for B'Address use A'Address;
6155
6156 -- the above rule means that Gigi will ensure that no optimizations
6157 -- will be made for B that would violate the implementation advice
6158 -- of RM 13.3(19). However, this advice applies only to B and not
6159 -- to A, which seems unfortunate. The GNAT front end will mark the
6160 -- object A as volatile to also prevent unwanted optimization
6161 -- assumptions based on no aliasing being made for B.
6162
6163 -- N_Attribute_Definition_Clause
6164 -- Sloc points to FOR
6165 -- Name (Node2) the local name
6166 -- Chars (Name1) the identifier name from the attribute designator
6167 -- Expression (Node3) the expression or name
6168 -- Entity (Node4-Sem)
6169 -- Next_Rep_Item (Node5-Sem)
6170 -- From_At_Mod (Flag4-Sem)
6171 -- Check_Address_Alignment (Flag11-Sem)
6172 -- Address_Warning_Posted (Flag18-Sem)
6173
6174 ---------------------------------------------
6175 -- 13.4 Enumeration representation clause --
6176 ---------------------------------------------
6177
6178 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
6179 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6180
6181 -- In Ada 83, the name must be a direct name
6182
6183 -- N_Enumeration_Representation_Clause
6184 -- Sloc points to FOR
6185 -- Identifier (Node1) direct name
6186 -- Array_Aggregate (Node3)
6187 -- Next_Rep_Item (Node5-Sem)
6188
6189 ---------------------------------
6190 -- 13.4 Enumeration aggregate --
6191 ---------------------------------
6192
6193 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6194
6195 ------------------------------------------
6196 -- 13.5.1 Record representation clause --
6197 ------------------------------------------
6198
6199 -- RECORD_REPRESENTATION_CLAUSE ::=
6200 -- for first_subtype_LOCAL_NAME use
6201 -- record [MOD_CLAUSE]
6202 -- {COMPONENT_CLAUSE}
6203 -- end record;
6204
6205 -- Gigi restriction: Mod_Clause is always Empty (if present it is
6206 -- replaced by a corresponding Alignment attribute definition clause).
6207
6208 -- Note: Component_Clauses can include pragmas
6209
6210 -- N_Record_Representation_Clause
6211 -- Sloc points to FOR
6212 -- Identifier (Node1) direct name
6213 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
6214 -- Component_Clauses (List3)
6215 -- Next_Rep_Item (Node5-Sem)
6216
6217 ------------------------------
6218 -- 13.5.1 Component clause --
6219 ------------------------------
6220
6221 -- COMPONENT_CLAUSE ::=
6222 -- component_LOCAL_NAME at POSITION
6223 -- range FIRST_BIT .. LAST_BIT;
6224
6225 -- N_Component_Clause
6226 -- Sloc points to AT
6227 -- Component_Name (Node1) points to Name or Attribute_Reference
6228 -- Position (Node2)
6229 -- First_Bit (Node3)
6230 -- Last_Bit (Node4)
6231
6232 ----------------------
6233 -- 13.5.1 Position --
6234 ----------------------
6235
6236 -- POSITION ::= static_EXPRESSION
6237
6238 -----------------------
6239 -- 13.5.1 First_Bit --
6240 -----------------------
6241
6242 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
6243
6244 ----------------------
6245 -- 13.5.1 Last_Bit --
6246 ----------------------
6247
6248 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
6249
6250 --------------------------
6251 -- 13.8 Code statement --
6252 --------------------------
6253
6254 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6255
6256 -- Note: in GNAT, the qualified expression has the form
6257
6258 -- Asm_Insn'(Asm (...));
6259
6260 -- See package System.Machine_Code in file s-maccod.ads for details on
6261 -- the allowed parameters to Asm. There are two ways this node can
6262 -- arise, as a code statement, in which case the expression is the
6263 -- qualified expression, or as a result of the expansion of an intrinsic
6264 -- call to the Asm or Asm_Input procedure.
6265
6266 -- N_Code_Statement
6267 -- Sloc points to first token of the expression
6268 -- Expression (Node3)
6269
6270 -- Note: package Exp_Code contains an abstract functional interface
6271 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
6272
6273 ------------------------
6274 -- 13.12 Restriction --
6275 ------------------------
6276
6277 -- RESTRICTION ::=
6278 -- restriction_IDENTIFIER
6279 -- | restriction_parameter_IDENTIFIER => EXPRESSION
6280
6281 -- There is no explicit node for restrictions. Instead the restriction
6282 -- appears in normal pragma syntax as a pragma argument association,
6283 -- which has the same syntactic form.
6284
6285 --------------------------
6286 -- B.2 Shift Operators --
6287 --------------------------
6288
6289 -- Calls to the intrinsic shift functions are converted to one of
6290 -- the following shift nodes, which have the form of normal binary
6291 -- operator names. Note that for a given shift operation, one node
6292 -- covers all possible types, as for normal operators.
6293
6294 -- Note: it is perfectly permissible for the expander to generate
6295 -- shift operation nodes directly, in which case they will be analyzed
6296 -- and parsed in the usual manner.
6297
6298 -- Sprint syntax: shift-function-name!(expr, count)
6299
6300 -- Note: the Left_Opnd field holds the first argument (the value to
6301 -- be shifted). The Right_Opnd field holds the second argument (the
6302 -- shift count). The Chars field is the name of the intrinsic function.
6303
6304 -- N_Op_Rotate_Left
6305 -- Sloc points to the function name
6306 -- plus fields for binary operator
6307 -- plus fields for expression
6308 -- Shift_Count_OK (Flag4-Sem)
6309
6310 -- N_Op_Rotate_Right
6311 -- Sloc points to the function name
6312 -- plus fields for binary operator
6313 -- plus fields for expression
6314 -- Shift_Count_OK (Flag4-Sem)
6315
6316 -- N_Op_Shift_Left
6317 -- Sloc points to the function name
6318 -- plus fields for binary operator
6319 -- plus fields for expression
6320 -- Shift_Count_OK (Flag4-Sem)
6321
6322 -- N_Op_Shift_Right_Arithmetic
6323 -- Sloc points to the function name
6324 -- plus fields for binary operator
6325 -- plus fields for expression
6326 -- Shift_Count_OK (Flag4-Sem)
6327
6328 -- N_Op_Shift_Right
6329 -- Sloc points to the function name
6330 -- plus fields for binary operator
6331 -- plus fields for expression
6332 -- Shift_Count_OK (Flag4-Sem)
6333
6334 --------------------------
6335 -- Obsolescent Features --
6336 --------------------------
6337
6338 -- The syntax descriptions and tree nodes for obsolescent features are
6339 -- grouped together, corresponding to their location in appendix I in
6340 -- the RM. However, parsing and semantic analysis for these constructs
6341 -- is located in an appropriate chapter (see individual notes).
6342
6343 ---------------------------
6344 -- J.3 Delta Constraint --
6345 ---------------------------
6346
6347 -- Note: the parse routine for this construct is located in section
6348 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6349 -- where delta constraint logically belongs.
6350
6351 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6352
6353 -- N_Delta_Constraint
6354 -- Sloc points to DELTA
6355 -- Delta_Expression (Node3)
6356 -- Range_Constraint (Node4) (set to Empty if not present)
6357
6358 --------------------
6359 -- J.7 At Clause --
6360 --------------------
6361
6362 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6363
6364 -- Note: the parse routine for this construct is located in Par-Ch13,
6365 -- and the semantic analysis is in Sem_Ch13, where at clause logically
6366 -- belongs if it were not obsolescent.
6367
6368 -- Note: in Ada 83 the expression must be a simple expression
6369
6370 -- Gigi restriction: This node never appears, it is rewritten as an
6371 -- address attribute definition clause.
6372
6373 -- N_At_Clause
6374 -- Sloc points to FOR
6375 -- Identifier (Node1)
6376 -- Expression (Node3)
6377
6378 ---------------------
6379 -- J.8 Mod clause --
6380 ---------------------
6381
6382 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
6383
6384 -- Note: the parse routine for this construct is located in Par-Ch13,
6385 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
6386 -- belongs if it were not obsolescent.
6387
6388 -- Note: in Ada 83, the expression must be a simple expression
6389
6390 -- Gigi restriction: this node never appears. It is replaced
6391 -- by a corresponding Alignment attribute definition clause.
6392
6393 -- Note: pragmas can appear before and after the MOD_CLAUSE since
6394 -- its name has "clause" in it. This is rather strange, but is quite
6395 -- definitely specified. The pragmas before are collected in the
6396 -- Pragmas_Before field of the mod clause node itself, and pragmas
6397 -- after are simply swallowed up in the list of component clauses.
6398
6399 -- N_Mod_Clause
6400 -- Sloc points to AT
6401 -- Expression (Node3)
6402 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6403
6404 --------------------
6405 -- Semantic Nodes --
6406 --------------------
6407
6408 -- These semantic nodes are used to hold additional semantic information.
6409 -- They are inserted into the tree as a result of semantic processing.
6410 -- Although there are no legitimate source syntax constructions that
6411 -- correspond directly to these nodes, we need a source syntax for the
6412 -- reconstructed tree printed by Sprint, and the node descriptions here
6413 -- show this syntax.
6414
6415 ----------------------------
6416 -- Conditional Expression --
6417 ----------------------------
6418
6419 -- This node is used to represent an expression corresponding to the
6420 -- C construct (condition ? then-expression : else_expression), where
6421 -- Expressions is a three element list, whose first expression is the
6422 -- condition, and whose second and third expressions are the then and
6423 -- else expressions respectively.
6424
6425 -- Note: the Then_Actions and Else_Actions fields are always set to
6426 -- No_List in the tree passed to Gigi. These fields are used only
6427 -- for temporary processing purposes in the expander.
6428
6429 -- Sprint syntax: (if expr then expr else expr)
6430
6431 -- N_Conditional_Expression
6432 -- Sloc points to related node
6433 -- Expressions (List1)
6434 -- Then_Actions (List2-Sem)
6435 -- Else_Actions (List3-Sem)
6436 -- plus fields for expression
6437
6438 -- Note: in the case where a debug source file is generated, the Sloc
6439 -- for this node points to the IF keyword in the Sprint file output.
6440
6441 -------------------
6442 -- Expanded_Name --
6443 -------------------
6444
6445 -- The N_Expanded_Name node is used to represent a selected component
6446 -- name that has been resolved to an expanded name. The semantic phase
6447 -- replaces N_Selected_Component nodes that represent names by the use
6448 -- of this node, leaving the N_Selected_Component node used only when
6449 -- the prefix is a record or protected type.
6450
6451 -- The fields of the N_Expanded_Name node are layed out identically
6452 -- to those of the N_Selected_Component node, allowing conversion of
6453 -- an expanded name node to a selected component node to be done
6454 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6455
6456 -- There is no special sprint syntax for an expanded name
6457
6458 -- N_Expanded_Name
6459 -- Sloc points to the period
6460 -- Chars (Name1) copy of Chars field of selector name
6461 -- Prefix (Node3)
6462 -- Selector_Name (Node2)
6463 -- Entity (Node4-Sem)
6464 -- Associated_Node (Node4-Sem)
6465 -- Redundant_Use (Flag13-Sem)
6466 -- Has_Private_View (Flag11-Sem) set in generic units.
6467 -- plus fields for expression
6468
6469 --------------------
6470 -- Free Statement --
6471 --------------------
6472
6473 -- The N_Free_Statement node is generated as a result of a call to an
6474 -- instantiation of Unchecked_Deallocation. The instantiation of this
6475 -- generic is handled specially and generates this node directly.
6476
6477 -- Sprint syntax: free expression
6478
6479 -- N_Free_Statement
6480 -- Sloc is copied from the unchecked deallocation call
6481 -- Expression (Node3) argument to unchecked deallocation call
6482 -- Storage_Pool (Node1-Sem)
6483 -- Procedure_To_Call (Node2-Sem)
6484 -- Actual_Designated_Subtype (Node4-Sem)
6485
6486 -- Note: in the case where a debug source file is generated, the Sloc
6487 -- for this node points to the FREE keyword in the Sprint file output.
6488
6489 -------------------
6490 -- Freeze Entity --
6491 -------------------
6492
6493 -- This node marks the point in a declarative part at which an entity
6494 -- declared therein becomes frozen. The expander places initialization
6495 -- procedures for types at those points. Gigi uses the freezing point
6496 -- to elaborate entities that may depend on previous private types.
6497
6498 -- See the section in Einfo "Delayed Freezing and Elaboration" for
6499 -- a full description of the use of this node.
6500
6501 -- The Entity field points back to the entity for the type (whose
6502 -- Freeze_Node field points back to this freeze node).
6503
6504 -- The Actions field contains a list of declarations and statements
6505 -- generated by the expander which are associated with the freeze
6506 -- node, and are elaborated as though the freeze node were replaced
6507 -- by this sequence of actions.
6508
6509 -- Note: the Sloc field in the freeze node references a construct
6510 -- associated with the freezing point. This is used for posting
6511 -- messages in some error/warning situations, e.g. the case where
6512 -- a primitive operation of a tagged type is declared too late.
6513
6514 -- Sprint syntax: freeze entity-name [
6515 -- freeze actions
6516 -- ]
6517
6518 -- N_Freeze_Entity
6519 -- Sloc points near freeze point (see above special note)
6520 -- Entity (Node4-Sem)
6521 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6522 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6523 -- Actions (List1) (set to No_List if no freeze actions)
6524 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6525
6526 -- The Actions field holds actions associated with the freeze. These
6527 -- actions are elaborated at the point where the type is frozen.
6528
6529 -- Note: in the case where a debug source file is generated, the Sloc
6530 -- for this node points to the FREEZE keyword in the Sprint file output.
6531
6532 --------------------------------
6533 -- Implicit Label Declaration --
6534 --------------------------------
6535
6536 -- An implicit label declaration is created for every occurrence of a
6537 -- label on a statement or a label on a block or loop. It is chained
6538 -- in the declarations of the innermost enclosing block as specified
6539 -- in RM section 5.1 (3).
6540
6541 -- The Defining_Identifier is the actual identifier for the
6542 -- statement identifier. Note that the occurrence of the label
6543 -- is a reference, NOT the defining occurrence. The defining
6544 -- occurrence occurs at the head of the innermost enclosing
6545 -- block, and is represented by this node.
6546
6547 -- Note: from the grammar, this might better be called an implicit
6548 -- statement identifier declaration, but the term we choose seems
6549 -- friendlier, since at least informally statement identifiers are
6550 -- called labels in both cases (i.e. when used in labels, and when
6551 -- used as the identifiers of blocks and loops).
6552
6553 -- Note: although this is logically a semantic node, since it does
6554 -- not correspond directly to a source syntax construction, these
6555 -- nodes are actually created by the parser in a post pass done just
6556 -- after parsing is complete, before semantic analysis is started (see
6557 -- the Par.Labl subunit in file par-labl.adb).
6558
6559 -- Sprint syntax: labelname : label;
6560
6561 -- N_Implicit_Label_Declaration
6562 -- Sloc points to the << of the label
6563 -- Defining_Identifier (Node1)
6564 -- Label_Construct (Node2-Sem)
6565
6566 -- Note: in the case where a debug source file is generated, the Sloc
6567 -- for this node points to the label name in the generated declaration.
6568
6569 ---------------------
6570 -- Itype_Reference --
6571 ---------------------
6572
6573 -- This node is used to create a reference to an Itype. The only
6574 -- purpose is to make sure that the Itype is defined if this is the
6575 -- first reference.
6576
6577 -- A typical use of this node is when an Itype is to be referenced in
6578 -- two branches of an if statement. In this case it is important that
6579 -- the first use of the Itype not be inside the conditional, since
6580 -- then it might not be defined if the wrong branch of the if is
6581 -- taken in the case where the definition generates elaboration code.
6582
6583 -- The Itype field points to the referenced Itype
6584
6585 -- sprint syntax: reference itype-name
6586
6587 -- N_Itype_Reference
6588 -- Sloc points to the node generating the reference
6589 -- Itype (Node1-Sem)
6590
6591 -- Note: in the case where a debug source file is generated, the Sloc
6592 -- for this node points to the REFERENCE keyword in the file output.
6593
6594 ---------------------
6595 -- Raise_xxx_Error --
6596 ---------------------
6597
6598 -- One of these nodes is created during semantic analysis to replace
6599 -- a node for an expression that is determined to definitely raise
6600 -- the corresponding exception.
6601
6602 -- The N_Raise_xxx_Error node may also stand alone in place
6603 -- of a declaration or statement, in which case it simply causes
6604 -- the exception to be raised (i.e. it is equivalent to a raise
6605 -- statement that raises the corresponding exception). This use
6606 -- is distinguished by the fact that the Etype in this case is
6607 -- Standard_Void_Type, In the subexprssion case, the Etype is the
6608 -- same as the type of the subexpression which it replaces.
6609
6610 -- If Condition is empty, then the raise is unconditional. If the
6611 -- Condition field is non-empty, it is a boolean expression which
6612 -- is first evaluated, and the exception is raised only if the
6613 -- value of the expression is True. In the unconditional case, the
6614 -- creation of this node is usually accompanied by a warning message
6615 -- error. The creation of this node will usually be accompanied by a
6616 -- message (unless it appears within the right operand of a short
6617 -- circuit form whose left argument is static and decisively
6618 -- eliminates elaboration of the raise operation. The condition field
6619 -- can ONLY be present when the node is used as a statement form, it
6620 -- may NOT be present in the case where the node appears within an
6621 -- expression.
6622
6623 -- The exception is generated with a message that contains the
6624 -- file name and line number, and then appended text. The Reason
6625 -- code shows the text to be added. The Reason code is an element
6626 -- of the type Types.RT_Exception_Code, and indicates both the
6627 -- message to be added, and the exception to be raised (which must
6628 -- match the node type). The value is stored by storing a Uint which
6629 -- is the Pos value of the enumeration element in this type.
6630
6631 -- Gigi restriction: This expander ensures that the type of the
6632 -- Condition field is always Standard.Boolean, even if the type
6633 -- in the source is some non-standard boolean type.
6634
6635 -- Sprint syntax: [xxx_error "msg"]
6636 -- or: [xxx_error when condition "msg"]
6637
6638 -- N_Raise_Constraint_Error
6639 -- Sloc references related construct
6640 -- Condition (Node1) (set to Empty if no condition)
6641 -- Reason (Uint3)
6642 -- plus fields for expression
6643
6644 -- N_Raise_Program_Error
6645 -- Sloc references related construct
6646 -- Condition (Node1) (set to Empty if no condition)
6647 -- Reason (Uint3)
6648 -- plus fields for expression
6649
6650 -- N_Raise_Storage_Error
6651 -- Sloc references related construct
6652 -- Condition (Node1) (set to Empty if no condition)
6653 -- Reason (Uint3)
6654 -- plus fields for expression
6655
6656 -- Note: Sloc is copied from the expression generating the exception.
6657 -- In the case where a debug source file is generated, the Sloc for
6658 -- this node points to the left bracket in the Sprint file output.
6659
6660 -- Note: the back end may be required to translate these nodes into
6661 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
6662
6663 ---------------------------------------------
6664 -- Optimization of Exception Raise to Goto --
6665 ---------------------------------------------
6666
6667 -- In some cases, the front end will determine that any exception raised
6668 -- by the back end for a certain exception should be transformed into a
6669 -- goto statement.
6670
6671 -- There are three kinds of exceptions raised by the back end (note that
6672 -- for this purpose we consider gigi to be part of the back end in the
6673 -- gcc case):
6674
6675 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
6676 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
6677 -- 3. Other cases not specifically marked by the front end
6678
6679 -- Normally all such exceptions are translated into calls to the proper
6680 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
6681 -- and the exception message.
6682
6683 -- The front end may determine that for a particular sequence of code,
6684 -- exceptions in any of these three categories for a particular builtin
6685 -- exception should result in a goto, rather than a call to Rcheck_xx.
6686 -- The exact sequence to be generated is:
6687
6688 -- Local_Raise (exception'Identity);
6689 -- goto Label
6690
6691 -- The front end marks such a sequence of code by bracketing it with
6692 -- push and pop nodes:
6693
6694 -- N_Push_xxx_Label (referencing the label)
6695 -- ...
6696 -- (code where transformation is expected for exception xxx)
6697 -- ...
6698 -- N_Pop_xxx_Label
6699
6700 -- The use of push/pop reflects the fact that such regions can properly
6701 -- nest, and one special case is a subregion in which no transformation
6702 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
6703 -- Exception_Label field is Empty.
6704
6705 -- N_Push_Constraint_Error_Label
6706 -- Sloc references first statement in region covered
6707 -- Exception_Label (Node5-Sem)
6708
6709 -- N_Push_Program_Error_Label
6710 -- Sloc references first statement in region covered
6711 -- Exception_Label (Node5-Sem)
6712
6713 -- N_Push_Storage_Error_Label
6714 -- Sloc references first statement in region covered
6715 -- Exception_Label (Node5-Sem)
6716
6717 -- N_Pop_Constraint_Error_Label
6718 -- Sloc references last statement in region covered
6719
6720 -- N_Pop_Program_Error_Label
6721 -- Sloc references last statement in region covered
6722
6723 -- N_Pop_Storage_Error_Label
6724 -- Sloc references last statement in region covered
6725
6726 ---------------
6727 -- Reference --
6728 ---------------
6729
6730 -- For a number of purposes, we need to construct references to objects.
6731 -- These references are subsequently treated as normal access values.
6732 -- An example is the construction of the parameter block passed to a
6733 -- task entry. The N_Reference node is provided for this purpose. It is
6734 -- similar in effect to the use of the Unrestricted_Access attribute,
6735 -- and like Unrestricted_Access can be applied to objects which would
6736 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
6737 -- objects which are not aliased, and slices). In addition it can be
6738 -- applied to composite type values as well as objects, including string
6739 -- values and aggregates.
6740
6741 -- Note: we use the Prefix field for this expression so that the
6742 -- resulting node can be treated using common code with the attribute
6743 -- nodes for the 'Access and related attributes. Logically it would make
6744 -- more sense to call it an Expression field, but then we would have to
6745 -- special case the treatment of the N_Reference node.
6746
6747 -- Sprint syntax: prefix'reference
6748
6749 -- N_Reference
6750 -- Sloc is copied from the expression
6751 -- Prefix (Node3)
6752 -- plus fields for expression
6753
6754 -- Note: in the case where a debug source file is generated, the Sloc
6755 -- for this node points to the quote in the Sprint file output.
6756
6757 ---------------------
6758 -- Subprogram_Info --
6759 ---------------------
6760
6761 -- This node generates the appropriate Subprogram_Info value for a
6762 -- given procedure. See Ada.Exceptions for further details
6763
6764 -- Sprint syntax: subprog'subprogram_info
6765
6766 -- N_Subprogram_Info
6767 -- Sloc points to the entity for the procedure
6768 -- Identifier (Node1) identifier referencing the procedure
6769 -- Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
6770
6771 -- Note: in the case where a debug source file is generated, the Sloc
6772 -- for this node points to the quote in the Sprint file output.
6773
6774 --------------------------
6775 -- Unchecked Expression --
6776 --------------------------
6777
6778 -- An unchecked expression is one that must be analyzed and resolved
6779 -- with all checks off, regardless of the current setting of scope
6780 -- suppress flags.
6781
6782 -- Sprint syntax: `(expression)
6783
6784 -- Note: this node is always removed from the tree (and replaced by
6785 -- its constituent expression) on completion of analysis, so it only
6786 -- appears in intermediate trees, and will never be seen by Gigi.
6787
6788 -- N_Unchecked_Expression
6789 -- Sloc is a copy of the Sloc of the expression
6790 -- Expression (Node3)
6791 -- plus fields for expression
6792
6793 -- Note: in the case where a debug source file is generated, the Sloc
6794 -- for this node points to the back quote in the Sprint file output.
6795
6796 -------------------------------
6797 -- Unchecked Type Conversion --
6798 -------------------------------
6799
6800 -- An unchecked type conversion node represents the semantic action
6801 -- corresponding to a call to an instantiation of Unchecked_Conversion.
6802 -- It is generated as a result of actual use of Unchecked_Conversion
6803 -- and also the expander generates unchecked type conversion nodes
6804 -- directly for expansion of complex semantic actions.
6805
6806 -- Note: an unchecked type conversion is a variable as far as the
6807 -- semantics are concerned, which is convenient for the expander.
6808 -- This does not change what Ada source programs are legal, since
6809 -- clearly a function call to an instantiation of Unchecked_Conversion
6810 -- is not a variable in any case.
6811
6812 -- Sprint syntax: subtype-mark!(expression)
6813
6814 -- N_Unchecked_Type_Conversion
6815 -- Sloc points to related node in source
6816 -- Subtype_Mark (Node4)
6817 -- Expression (Node3)
6818 -- Kill_Range_Check (Flag11-Sem)
6819 -- No_Truncation (Flag17-Sem)
6820 -- plus fields for expression
6821
6822 -- Note: in the case where a debug source file is generated, the Sloc
6823 -- for this node points to the exclamation in the Sprint file output.
6824
6825 -----------------------------------
6826 -- Validate_Unchecked_Conversion --
6827 -----------------------------------
6828
6829 -- The front end does most of the validation of unchecked conversion,
6830 -- including checking sizes (this is done after the back end is called
6831 -- to take advantage of back-annotation of calculated sizes).
6832
6833 -- The front end also deals with specific cases that are not allowed
6834 -- e.g. involving unconstrained array types.
6835
6836 -- For the case of the standard gigi backend, this means that all
6837 -- checks are done in the front-end.
6838
6839 -- However, in the case of specialized back-ends, notably the JVM
6840 -- backend for JGNAT, additional requirements and restrictions apply
6841 -- to unchecked conversion, and these are most conveniently performed
6842 -- in the specialized back-end.
6843
6844 -- To accommodate this requirement, for such back ends, the following
6845 -- special node is generated recording an unchecked conversion that
6846 -- needs to be validated. The back end should post an appropriate
6847 -- error message if the unchecked conversion is invalid or warrants
6848 -- a special warning message.
6849
6850 -- Source_Type and Target_Type point to the entities for the two
6851 -- types involved in the unchecked conversion instantiation that
6852 -- is to be validated.
6853
6854 -- Sprint syntax: validate Unchecked_Conversion (source, target);
6855
6856 -- N_Validate_Unchecked_Conversion
6857 -- Sloc points to instantiation (location for warning message)
6858 -- Source_Type (Node1-Sem)
6859 -- Target_Type (Node2-Sem)
6860
6861 -- Note: in the case where a debug source file is generated, the Sloc
6862 -- for this node points to the VALIDATE keyword in the file output.
6863
6864 -----------
6865 -- Empty --
6866 -----------
6867
6868 -- Used as the contents of the Nkind field of the dummy Empty node
6869 -- and in some other situations to indicate an uninitialized value.
6870
6871 -- N_Empty
6872 -- Chars (Name1) is set to No_Name
6873
6874 -----------
6875 -- Error --
6876 -----------
6877
6878 -- Used as the contents of the Nkind field of the dummy Error node.
6879 -- Has an Etype field, which gets set to Any_Type later on, to help
6880 -- error recovery (Error_Posted is also set in the Error node).
6881
6882 -- N_Error
6883 -- Chars (Name1) is set to Error_Name
6884 -- Etype (Node5-Sem)
6885
6886 --------------------------
6887 -- Node Type Definition --
6888 --------------------------
6889
6890 -- The following is the definition of the Node_Kind type. As previously
6891 -- discussed, this is separated off to allow rearrangement of the order
6892 -- to facilitiate definition of subtype ranges. The comments show the
6893 -- subtype classes which apply to each set of node kinds. The first
6894 -- entry in the comment characterizes the following list of nodes.
6895
6896 type Node_Kind is (
6897 N_Unused_At_Start,
6898
6899 -- N_Representation_Clause
6900
6901 N_At_Clause,
6902 N_Component_Clause,
6903 N_Enumeration_Representation_Clause,
6904 N_Mod_Clause,
6905 N_Record_Representation_Clause,
6906
6907 -- N_Representation_Clause, N_Has_Chars
6908
6909 N_Attribute_Definition_Clause,
6910
6911 -- N_Has_Chars
6912
6913 N_Empty,
6914 N_Pragma_Argument_Association,
6915
6916 -- N_Has_Etype
6917
6918 N_Error,
6919
6920 -- N_Entity, N_Has_Etype, N_Has_Chars
6921
6922 N_Defining_Character_Literal,
6923 N_Defining_Identifier,
6924 N_Defining_Operator_Symbol,
6925
6926 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
6927
6928 N_Expanded_Name,
6929
6930 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6931 -- N_Has_Chars, N_Has_Entity
6932
6933 N_Identifier,
6934 N_Operator_Symbol,
6935
6936 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6937 -- N_Has_Chars, N_Has_Entity
6938
6939 N_Character_Literal,
6940
6941 -- N_Binary_Op, N_Op, N_Subexpr,
6942 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
6943
6944 N_Op_Add,
6945 N_Op_Concat,
6946 N_Op_Expon,
6947 N_Op_Subtract,
6948
6949 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
6950 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
6951
6952 N_Op_Divide,
6953 N_Op_Mod,
6954 N_Op_Multiply,
6955 N_Op_Rem,
6956
6957 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6958 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6959
6960 N_Op_And,
6961
6962 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6963 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
6964
6965 N_Op_Eq,
6966 N_Op_Ge,
6967 N_Op_Gt,
6968 N_Op_Le,
6969 N_Op_Lt,
6970 N_Op_Ne,
6971
6972 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6973 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6974
6975 N_Op_Or,
6976 N_Op_Xor,
6977
6978 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
6979 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
6980
6981 N_Op_Rotate_Left,
6982 N_Op_Rotate_Right,
6983 N_Op_Shift_Left,
6984 N_Op_Shift_Right,
6985 N_Op_Shift_Right_Arithmetic,
6986
6987 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
6988 -- N_Has_Chars, N_Has_Entity
6989
6990 N_Op_Abs,
6991 N_Op_Minus,
6992 N_Op_Not,
6993 N_Op_Plus,
6994
6995 -- N_Subexpr, N_Has_Etype, N_Has_Entity
6996
6997 N_Attribute_Reference,
6998
6999 -- N_Subexpr, N_Has_Etype, N_Membership_Test
7000
7001 N_In,
7002 N_Not_In,
7003
7004 -- N_Subexpr, N_Has_Etype
7005
7006 N_And_Then,
7007 N_Conditional_Expression,
7008 N_Explicit_Dereference,
7009 N_Function_Call,
7010 N_Indexed_Component,
7011 N_Integer_Literal,
7012 N_Null,
7013 N_Or_Else,
7014 N_Procedure_Call_Statement,
7015 N_Qualified_Expression,
7016
7017 -- N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
7018
7019 N_Raise_Constraint_Error,
7020 N_Raise_Program_Error,
7021 N_Raise_Storage_Error,
7022
7023 -- N_Subexpr, N_Has_Etype
7024
7025 N_Aggregate,
7026 N_Allocator,
7027 N_Extension_Aggregate,
7028 N_Range,
7029 N_Real_Literal,
7030 N_Reference,
7031 N_Selected_Component,
7032 N_Slice,
7033 N_String_Literal,
7034 N_Subprogram_Info,
7035 N_Type_Conversion,
7036 N_Unchecked_Expression,
7037 N_Unchecked_Type_Conversion,
7038
7039 -- N_Has_Etype
7040
7041 N_Subtype_Indication,
7042
7043 -- N_Declaration
7044
7045 N_Component_Declaration,
7046 N_Entry_Declaration,
7047 N_Formal_Object_Declaration,
7048 N_Formal_Type_Declaration,
7049 N_Full_Type_Declaration,
7050 N_Incomplete_Type_Declaration,
7051 N_Loop_Parameter_Specification,
7052 N_Object_Declaration,
7053 N_Protected_Type_Declaration,
7054 N_Private_Extension_Declaration,
7055 N_Private_Type_Declaration,
7056 N_Subtype_Declaration,
7057
7058 -- N_Subprogram_Specification, N_Declaration
7059
7060 N_Function_Specification,
7061 N_Procedure_Specification,
7062
7063 -- N_Access_To_Subprogram_Definition
7064
7065 N_Access_Function_Definition,
7066 N_Access_Procedure_Definition,
7067
7068 -- N_Later_Decl_Item
7069
7070 N_Task_Type_Declaration,
7071
7072 -- N_Body_Stub, N_Later_Decl_Item
7073
7074 N_Package_Body_Stub,
7075 N_Protected_Body_Stub,
7076 N_Subprogram_Body_Stub,
7077 N_Task_Body_Stub,
7078
7079 -- N_Generic_Instantiation, N_Later_Decl_Item
7080 -- N_Subprogram_Instantiation
7081
7082 N_Function_Instantiation,
7083 N_Procedure_Instantiation,
7084
7085 -- N_Generic_Instantiation, N_Later_Decl_Item
7086
7087 N_Package_Instantiation,
7088
7089 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7090
7091 N_Package_Body,
7092 N_Subprogram_Body,
7093
7094 -- N_Later_Decl_Item, N_Proper_Body
7095
7096 N_Protected_Body,
7097 N_Task_Body,
7098
7099 -- N_Later_Decl_Item
7100
7101 N_Implicit_Label_Declaration,
7102 N_Package_Declaration,
7103 N_Single_Task_Declaration,
7104 N_Subprogram_Declaration,
7105 N_Use_Package_Clause,
7106
7107 -- N_Generic_Declaration, N_Later_Decl_Item
7108
7109 N_Generic_Package_Declaration,
7110 N_Generic_Subprogram_Declaration,
7111
7112 -- N_Array_Type_Definition
7113
7114 N_Constrained_Array_Definition,
7115 N_Unconstrained_Array_Definition,
7116
7117 -- N_Renaming_Declaration
7118
7119 N_Exception_Renaming_Declaration,
7120 N_Object_Renaming_Declaration,
7121 N_Package_Renaming_Declaration,
7122 N_Subprogram_Renaming_Declaration,
7123
7124 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
7125
7126 N_Generic_Function_Renaming_Declaration,
7127 N_Generic_Package_Renaming_Declaration,
7128 N_Generic_Procedure_Renaming_Declaration,
7129
7130 -- N_Statement_Other_Than_Procedure_Call
7131
7132 N_Abort_Statement,
7133 N_Accept_Statement,
7134 N_Assignment_Statement,
7135 N_Asynchronous_Select,
7136 N_Block_Statement,
7137 N_Case_Statement,
7138 N_Code_Statement,
7139 N_Conditional_Entry_Call,
7140
7141 -- N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
7142
7143 N_Delay_Relative_Statement,
7144 N_Delay_Until_Statement,
7145
7146 -- N_Statement_Other_Than_Procedure_Call
7147
7148 N_Entry_Call_Statement,
7149 N_Free_Statement,
7150 N_Goto_Statement,
7151 N_Loop_Statement,
7152 N_Null_Statement,
7153 N_Raise_Statement,
7154 N_Requeue_Statement,
7155 N_Return_Statement, -- renamed as N_Simple_Return_Statement below
7156 N_Extended_Return_Statement,
7157 N_Selective_Accept,
7158 N_Timed_Entry_Call,
7159
7160 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7161
7162 N_Exit_Statement,
7163 N_If_Statement,
7164
7165 -- N_Has_Condition
7166
7167 N_Accept_Alternative,
7168 N_Delay_Alternative,
7169 N_Elsif_Part,
7170 N_Entry_Body_Formal_Part,
7171 N_Iteration_Scheme,
7172 N_Terminate_Alternative,
7173
7174 -- N_Formal_Subprogram_Declaration
7175
7176 N_Formal_Abstract_Subprogram_Declaration,
7177 N_Formal_Concrete_Subprogram_Declaration,
7178
7179 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
7180
7181 N_Push_Constraint_Error_Label,
7182 N_Push_Program_Error_Label,
7183 N_Push_Storage_Error_Label,
7184
7185 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7186
7187 N_Pop_Constraint_Error_Label,
7188 N_Pop_Program_Error_Label,
7189 N_Pop_Storage_Error_Label,
7190
7191 -- Other nodes (not part of any subtype class)
7192
7193 N_Abortable_Part,
7194 N_Abstract_Subprogram_Declaration,
7195 N_Access_Definition,
7196 N_Access_To_Object_Definition,
7197 N_Case_Statement_Alternative,
7198 N_Compilation_Unit,
7199 N_Compilation_Unit_Aux,
7200 N_Component_Association,
7201 N_Component_Definition,
7202 N_Component_List,
7203 N_Derived_Type_Definition,
7204 N_Decimal_Fixed_Point_Definition,
7205 N_Defining_Program_Unit_Name,
7206 N_Delta_Constraint,
7207 N_Designator,
7208 N_Digits_Constraint,
7209 N_Discriminant_Association,
7210 N_Discriminant_Specification,
7211 N_Enumeration_Type_Definition,
7212 N_Entry_Body,
7213 N_Entry_Call_Alternative,
7214 N_Entry_Index_Specification,
7215 N_Exception_Declaration,
7216 N_Exception_Handler,
7217 N_Floating_Point_Definition,
7218 N_Formal_Decimal_Fixed_Point_Definition,
7219 N_Formal_Derived_Type_Definition,
7220 N_Formal_Discrete_Type_Definition,
7221 N_Formal_Floating_Point_Definition,
7222 N_Formal_Modular_Type_Definition,
7223 N_Formal_Ordinary_Fixed_Point_Definition,
7224 N_Formal_Package_Declaration,
7225 N_Formal_Private_Type_Definition,
7226 N_Formal_Signed_Integer_Type_Definition,
7227 N_Freeze_Entity,
7228 N_Generic_Association,
7229 N_Handled_Sequence_Of_Statements,
7230 N_Index_Or_Discriminant_Constraint,
7231 N_Itype_Reference,
7232 N_Label,
7233 N_Modular_Type_Definition,
7234 N_Number_Declaration,
7235 N_Ordinary_Fixed_Point_Definition,
7236 N_Others_Choice,
7237 N_Package_Specification,
7238 N_Parameter_Association,
7239 N_Parameter_Specification,
7240 N_Pragma,
7241 N_Protected_Definition,
7242 N_Range_Constraint,
7243 N_Real_Range_Specification,
7244 N_Record_Definition,
7245 N_Signed_Integer_Type_Definition,
7246 N_Single_Protected_Declaration,
7247 N_Subunit,
7248 N_Task_Definition,
7249 N_Triggering_Alternative,
7250 N_Use_Type_Clause,
7251 N_Validate_Unchecked_Conversion,
7252 N_Variant,
7253 N_Variant_Part,
7254 N_With_Clause,
7255 N_Unused_At_End);
7256
7257 for Node_Kind'Size use 8;
7258 -- The data structures in Atree assume this!
7259
7260 ----------------------------
7261 -- Node Class Definitions --
7262 ----------------------------
7263
7264 subtype N_Access_To_Subprogram_Definition is Node_Kind range
7265 N_Access_Function_Definition ..
7266 N_Access_Procedure_Definition;
7267
7268 subtype N_Array_Type_Definition is Node_Kind range
7269 N_Constrained_Array_Definition ..
7270 N_Unconstrained_Array_Definition;
7271
7272 subtype N_Binary_Op is Node_Kind range
7273 N_Op_Add ..
7274 N_Op_Shift_Right_Arithmetic;
7275
7276 subtype N_Body_Stub is Node_Kind range
7277 N_Package_Body_Stub ..
7278 N_Task_Body_Stub;
7279
7280 subtype N_Declaration is Node_Kind range
7281 N_Component_Declaration ..
7282 N_Procedure_Specification;
7283 -- Note: this includes all constructs normally thought of as declarations
7284 -- except those which are separately grouped as later declarations.
7285
7286 subtype N_Delay_Statement is Node_Kind range
7287 N_Delay_Relative_Statement ..
7288 N_Delay_Until_Statement;
7289
7290 subtype N_Direct_Name is Node_Kind range
7291 N_Identifier ..
7292 N_Character_Literal;
7293
7294 subtype N_Entity is Node_Kind range
7295 N_Defining_Character_Literal ..
7296 N_Defining_Operator_Symbol;
7297
7298 subtype N_Formal_Subprogram_Declaration is Node_Kind range
7299 N_Formal_Abstract_Subprogram_Declaration ..
7300 N_Formal_Concrete_Subprogram_Declaration;
7301
7302 subtype N_Generic_Declaration is Node_Kind range
7303 N_Generic_Package_Declaration ..
7304 N_Generic_Subprogram_Declaration;
7305
7306 subtype N_Generic_Instantiation is Node_Kind range
7307 N_Function_Instantiation ..
7308 N_Package_Instantiation;
7309
7310 subtype N_Generic_Renaming_Declaration is Node_Kind range
7311 N_Generic_Function_Renaming_Declaration ..
7312 N_Generic_Procedure_Renaming_Declaration;
7313
7314 subtype N_Has_Chars is Node_Kind range
7315 N_Attribute_Definition_Clause ..
7316 N_Op_Plus;
7317
7318 subtype N_Has_Entity is Node_Kind range
7319 N_Expanded_Name ..
7320 N_Attribute_Reference;
7321 -- Nodes that have Entity fields
7322 -- Warning: DOES NOT INCLUDE N_Freeze_Entity!
7323
7324 subtype N_Has_Etype is Node_Kind range
7325 N_Error ..
7326 N_Subtype_Indication;
7327
7328 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7329 N_Op_Divide ..
7330 N_Op_Rem;
7331
7332 subtype N_Multiplying_Operator is Node_Kind range
7333 N_Op_Divide ..
7334 N_Op_Rem;
7335
7336 subtype N_Later_Decl_Item is Node_Kind range
7337 N_Task_Type_Declaration ..
7338 N_Generic_Subprogram_Declaration;
7339 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and
7340 -- includes only those items which can appear as later declarative
7341 -- items. This also includes N_Implicit_Label_Declaration which is
7342 -- not specifically in the grammar but may appear as a valid later
7343 -- declarative items. It does NOT include N_Pragma which can also
7344 -- appear among later declarative items. It does however include
7345 -- N_Protected_Body, which is a bit peculiar, but harmless since
7346 -- this cannot appear in Ada 83 mode anyway.
7347
7348 subtype N_Membership_Test is Node_Kind range
7349 N_In ..
7350 N_Not_In;
7351
7352 subtype N_Op is Node_Kind range
7353 N_Op_Add ..
7354 N_Op_Plus;
7355
7356 subtype N_Op_Boolean is Node_Kind range
7357 N_Op_And ..
7358 N_Op_Xor;
7359 -- Binary operators which take operands of a boolean type, and yield
7360 -- a result of a boolean type.
7361
7362 subtype N_Op_Compare is Node_Kind range
7363 N_Op_Eq ..
7364 N_Op_Ne;
7365
7366 subtype N_Op_Shift is Node_Kind range
7367 N_Op_Rotate_Left ..
7368 N_Op_Shift_Right_Arithmetic;
7369
7370 subtype N_Proper_Body is Node_Kind range
7371 N_Package_Body ..
7372 N_Task_Body;
7373
7374 subtype N_Push_xxx_Label is Node_Kind range
7375 N_Push_Constraint_Error_Label ..
7376 N_Push_Storage_Error_Label;
7377
7378 subtype N_Pop_xxx_Label is Node_Kind range
7379 N_Pop_Constraint_Error_Label ..
7380 N_Pop_Storage_Error_Label;
7381
7382 subtype N_Push_Pop_xxx_Label is Node_Kind range
7383 N_Push_Constraint_Error_Label ..
7384 N_Pop_Storage_Error_Label;
7385
7386 subtype N_Raise_xxx_Error is Node_Kind range
7387 N_Raise_Constraint_Error ..
7388 N_Raise_Storage_Error;
7389
7390 subtype N_Renaming_Declaration is Node_Kind range
7391 N_Exception_Renaming_Declaration ..
7392 N_Generic_Procedure_Renaming_Declaration;
7393
7394 subtype N_Representation_Clause is Node_Kind range
7395 N_At_Clause ..
7396 N_Attribute_Definition_Clause;
7397
7398 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7399 N_Abort_Statement ..
7400 N_If_Statement;
7401 -- Note that this includes all statement types except for the cases of the
7402 -- N_Procedure_Call_Statement which is considered to be a subexpression
7403 -- (since overloading is possible, so it needs to go through the normal
7404 -- overloading resolution for expressions).
7405
7406 subtype N_Subprogram_Instantiation is Node_Kind range
7407 N_Function_Instantiation ..
7408 N_Procedure_Instantiation;
7409
7410 subtype N_Has_Condition is Node_Kind range
7411 N_Exit_Statement ..
7412 N_Terminate_Alternative;
7413 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
7414
7415 subtype N_Subexpr is Node_Kind range
7416 N_Expanded_Name ..
7417 N_Unchecked_Type_Conversion;
7418 -- Nodes with expression fields
7419
7420 subtype N_Subprogram_Specification is Node_Kind range
7421 N_Function_Specification ..
7422 N_Procedure_Specification;
7423
7424 subtype N_Unary_Op is Node_Kind range
7425 N_Op_Abs ..
7426 N_Op_Plus;
7427
7428 subtype N_Unit_Body is Node_Kind range
7429 N_Package_Body ..
7430 N_Subprogram_Body;
7431
7432 ---------------------------
7433 -- Node Access Functions --
7434 ---------------------------
7435
7436 -- The following functions return the contents of the indicated field of
7437 -- the node referenced by the argument, which is a Node_Id. They provide
7438 -- logical access to fields in the node which could be accessed using the
7439 -- Atree.Unchecked_Access package, but the idea is always to use these
7440 -- higher level routines which preserve strong typing. In debug mode,
7441 -- these routines check that they are being applied to an appropriate
7442 -- node, as well as checking that the node is in range.
7443
7444 function ABE_Is_Certain
7445 (N : Node_Id) return Boolean; -- Flag18
7446
7447 function Abort_Present
7448 (N : Node_Id) return Boolean; -- Flag15
7449
7450 function Abortable_Part
7451 (N : Node_Id) return Node_Id; -- Node2
7452
7453 function Abstract_Present
7454 (N : Node_Id) return Boolean; -- Flag4
7455
7456 function Accept_Handler_Records
7457 (N : Node_Id) return List_Id; -- List5
7458
7459 function Accept_Statement
7460 (N : Node_Id) return Node_Id; -- Node2
7461
7462 function Access_Definition
7463 (N : Node_Id) return Node_Id; -- Node3
7464
7465 function Access_To_Subprogram_Definition
7466 (N : Node_Id) return Node_Id; -- Node3
7467
7468 function Access_Types_To_Process
7469 (N : Node_Id) return Elist_Id; -- Elist2
7470
7471 function Actions
7472 (N : Node_Id) return List_Id; -- List1
7473
7474 function Activation_Chain_Entity
7475 (N : Node_Id) return Node_Id; -- Node3
7476
7477 function Acts_As_Spec
7478 (N : Node_Id) return Boolean; -- Flag4
7479
7480 function Actual_Designated_Subtype
7481 (N : Node_Id) return Node_Id; -- Node4
7482
7483 function Address_Warning_Posted
7484 (N : Node_Id) return Boolean; -- Flag18
7485
7486 function Aggregate_Bounds
7487 (N : Node_Id) return Node_Id; -- Node3
7488
7489 function Aliased_Present
7490 (N : Node_Id) return Boolean; -- Flag4
7491
7492 function All_Others
7493 (N : Node_Id) return Boolean; -- Flag11
7494
7495 function All_Present
7496 (N : Node_Id) return Boolean; -- Flag15
7497
7498 function Alternatives
7499 (N : Node_Id) return List_Id; -- List4
7500
7501 function Ancestor_Part
7502 (N : Node_Id) return Node_Id; -- Node3
7503
7504 function Array_Aggregate
7505 (N : Node_Id) return Node_Id; -- Node3
7506
7507 function Assignment_OK
7508 (N : Node_Id) return Boolean; -- Flag15
7509
7510 function Associated_Node
7511 (N : Node_Id) return Node_Id; -- Node4
7512
7513 function At_End_Proc
7514 (N : Node_Id) return Node_Id; -- Node1
7515
7516 function Attribute_Name
7517 (N : Node_Id) return Name_Id; -- Name2
7518
7519 function Aux_Decls_Node
7520 (N : Node_Id) return Node_Id; -- Node5
7521
7522 function Backwards_OK
7523 (N : Node_Id) return Boolean; -- Flag6
7524
7525 function Bad_Is_Detected
7526 (N : Node_Id) return Boolean; -- Flag15
7527
7528 function By_Ref
7529 (N : Node_Id) return Boolean; -- Flag5
7530
7531 function Body_Required
7532 (N : Node_Id) return Boolean; -- Flag13
7533
7534 function Body_To_Inline
7535 (N : Node_Id) return Node_Id; -- Node3
7536
7537 function Box_Present
7538 (N : Node_Id) return Boolean; -- Flag15
7539
7540 function Char_Literal_Value
7541 (N : Node_Id) return Uint; -- Uint2
7542
7543 function Chars
7544 (N : Node_Id) return Name_Id; -- Name1
7545
7546 function Check_Address_Alignment
7547 (N : Node_Id) return Boolean; -- Flag11
7548
7549 function Choice_Parameter
7550 (N : Node_Id) return Node_Id; -- Node2
7551
7552 function Choices
7553 (N : Node_Id) return List_Id; -- List1
7554
7555 function Coextensions
7556 (N : Node_Id) return Elist_Id; -- Elist4
7557
7558 function Comes_From_Extended_Return_Statement
7559 (N : Node_Id) return Boolean; -- Flag18
7560
7561 function Compile_Time_Known_Aggregate
7562 (N : Node_Id) return Boolean; -- Flag18
7563
7564 function Component_Associations
7565 (N : Node_Id) return List_Id; -- List2
7566
7567 function Component_Clauses
7568 (N : Node_Id) return List_Id; -- List3
7569
7570 function Component_Definition
7571 (N : Node_Id) return Node_Id; -- Node4
7572
7573 function Component_Items
7574 (N : Node_Id) return List_Id; -- List3
7575
7576 function Component_List
7577 (N : Node_Id) return Node_Id; -- Node1
7578
7579 function Component_Name
7580 (N : Node_Id) return Node_Id; -- Node1
7581
7582 function Condition
7583 (N : Node_Id) return Node_Id; -- Node1
7584
7585 function Condition_Actions
7586 (N : Node_Id) return List_Id; -- List3
7587
7588 function Config_Pragmas
7589 (N : Node_Id) return List_Id; -- List4
7590
7591 function Constant_Present
7592 (N : Node_Id) return Boolean; -- Flag17
7593
7594 function Constraint
7595 (N : Node_Id) return Node_Id; -- Node3
7596
7597 function Constraints
7598 (N : Node_Id) return List_Id; -- List1
7599
7600 function Context_Installed
7601 (N : Node_Id) return Boolean; -- Flag13
7602
7603 function Context_Items
7604 (N : Node_Id) return List_Id; -- List1
7605
7606 function Controlling_Argument
7607 (N : Node_Id) return Node_Id; -- Node1
7608
7609 function Conversion_OK
7610 (N : Node_Id) return Boolean; -- Flag14
7611
7612 function Corresponding_Body
7613 (N : Node_Id) return Node_Id; -- Node5
7614
7615 function Corresponding_Formal_Spec
7616 (N : Node_Id) return Node_Id; -- Node3
7617
7618 function Corresponding_Generic_Association
7619 (N : Node_Id) return Node_Id; -- Node5
7620
7621 function Corresponding_Integer_Value
7622 (N : Node_Id) return Uint; -- Uint4
7623
7624 function Corresponding_Spec
7625 (N : Node_Id) return Node_Id; -- Node5
7626
7627 function Corresponding_Stub
7628 (N : Node_Id) return Node_Id; -- Node3
7629
7630 function Dcheck_Function
7631 (N : Node_Id) return Entity_Id; -- Node5
7632
7633 function Debug_Statement
7634 (N : Node_Id) return Node_Id; -- Node3
7635
7636 function Declarations
7637 (N : Node_Id) return List_Id; -- List2
7638
7639 function Default_Expression
7640 (N : Node_Id) return Node_Id; -- Node5
7641
7642 function Default_Name
7643 (N : Node_Id) return Node_Id; -- Node2
7644
7645 function Defining_Identifier
7646 (N : Node_Id) return Entity_Id; -- Node1
7647
7648 function Defining_Unit_Name
7649 (N : Node_Id) return Node_Id; -- Node1
7650
7651 function Delay_Alternative
7652 (N : Node_Id) return Node_Id; -- Node4
7653
7654 function Delay_Statement
7655 (N : Node_Id) return Node_Id; -- Node2
7656
7657 function Delta_Expression
7658 (N : Node_Id) return Node_Id; -- Node3
7659
7660 function Digits_Expression
7661 (N : Node_Id) return Node_Id; -- Node2
7662
7663 function Discr_Check_Funcs_Built
7664 (N : Node_Id) return Boolean; -- Flag11
7665
7666 function Discrete_Choices
7667 (N : Node_Id) return List_Id; -- List4
7668
7669 function Discrete_Range
7670 (N : Node_Id) return Node_Id; -- Node4
7671
7672 function Discrete_Subtype_Definition
7673 (N : Node_Id) return Node_Id; -- Node4
7674
7675 function Discrete_Subtype_Definitions
7676 (N : Node_Id) return List_Id; -- List2
7677
7678 function Discriminant_Specifications
7679 (N : Node_Id) return List_Id; -- List4
7680
7681 function Discriminant_Type
7682 (N : Node_Id) return Node_Id; -- Node5
7683
7684 function Do_Accessibility_Check
7685 (N : Node_Id) return Boolean; -- Flag13
7686
7687 function Do_Discriminant_Check
7688 (N : Node_Id) return Boolean; -- Flag13
7689
7690 function Do_Division_Check
7691 (N : Node_Id) return Boolean; -- Flag13
7692
7693 function Do_Length_Check
7694 (N : Node_Id) return Boolean; -- Flag4
7695
7696 function Do_Overflow_Check
7697 (N : Node_Id) return Boolean; -- Flag17
7698
7699 function Do_Range_Check
7700 (N : Node_Id) return Boolean; -- Flag9
7701
7702 function Do_Storage_Check
7703 (N : Node_Id) return Boolean; -- Flag17
7704
7705 function Do_Tag_Check
7706 (N : Node_Id) return Boolean; -- Flag13
7707
7708 function Elaborate_All_Desirable
7709 (N : Node_Id) return Boolean; -- Flag9
7710
7711 function Elaborate_All_Present
7712 (N : Node_Id) return Boolean; -- Flag14
7713
7714 function Elaborate_Desirable
7715 (N : Node_Id) return Boolean; -- Flag11
7716
7717 function Elaborate_Present
7718 (N : Node_Id) return Boolean; -- Flag4
7719
7720 function Elaboration_Boolean
7721 (N : Node_Id) return Node_Id; -- Node2
7722
7723 function Else_Actions
7724 (N : Node_Id) return List_Id; -- List3
7725
7726 function Else_Statements
7727 (N : Node_Id) return List_Id; -- List4
7728
7729 function Elsif_Parts
7730 (N : Node_Id) return List_Id; -- List3
7731
7732 function Enclosing_Variant
7733 (N : Node_Id) return Node_Id; -- Node2
7734
7735 function End_Label
7736 (N : Node_Id) return Node_Id; -- Node4
7737
7738 function End_Span
7739 (N : Node_Id) return Uint; -- Uint5
7740
7741 function Entity
7742 (N : Node_Id) return Node_Id; -- Node4
7743
7744 function Entity_Or_Associated_Node
7745 (N : Node_Id) return Node_Id; -- Node4
7746
7747 function Entry_Body_Formal_Part
7748 (N : Node_Id) return Node_Id; -- Node5
7749
7750 function Entry_Call_Alternative
7751 (N : Node_Id) return Node_Id; -- Node1
7752
7753 function Entry_Call_Statement
7754 (N : Node_Id) return Node_Id; -- Node1
7755
7756 function Entry_Direct_Name
7757 (N : Node_Id) return Node_Id; -- Node1
7758
7759 function Entry_Index
7760 (N : Node_Id) return Node_Id; -- Node5
7761
7762 function Entry_Index_Specification
7763 (N : Node_Id) return Node_Id; -- Node4
7764
7765 function Etype
7766 (N : Node_Id) return Node_Id; -- Node5
7767
7768 function Exception_Choices
7769 (N : Node_Id) return List_Id; -- List4
7770
7771 function Exception_Handlers
7772 (N : Node_Id) return List_Id; -- List5
7773
7774 function Exception_Junk
7775 (N : Node_Id) return Boolean; -- Flag8
7776
7777 function Exception_Label
7778 (N : Node_Id) return Node_Id; -- Node5
7779
7780 function Explicit_Actual_Parameter
7781 (N : Node_Id) return Node_Id; -- Node3
7782
7783 function Expansion_Delayed
7784 (N : Node_Id) return Boolean; -- Flag11
7785
7786 function Explicit_Generic_Actual_Parameter
7787 (N : Node_Id) return Node_Id; -- Node1
7788
7789 function Expression
7790 (N : Node_Id) return Node_Id; -- Node3
7791
7792 function Expressions
7793 (N : Node_Id) return List_Id; -- List1
7794
7795 function First_Bit
7796 (N : Node_Id) return Node_Id; -- Node3
7797
7798 function First_Inlined_Subprogram
7799 (N : Node_Id) return Entity_Id; -- Node3
7800
7801 function First_Name
7802 (N : Node_Id) return Boolean; -- Flag5
7803
7804 function First_Named_Actual
7805 (N : Node_Id) return Node_Id; -- Node4
7806
7807 function First_Real_Statement
7808 (N : Node_Id) return Node_Id; -- Node2
7809
7810 function First_Subtype_Link
7811 (N : Node_Id) return Entity_Id; -- Node5
7812
7813 function Float_Truncate
7814 (N : Node_Id) return Boolean; -- Flag11
7815
7816 function Formal_Type_Definition
7817 (N : Node_Id) return Node_Id; -- Node3
7818
7819 function Forwards_OK
7820 (N : Node_Id) return Boolean; -- Flag5
7821
7822 function From_At_End
7823 (N : Node_Id) return Boolean; -- Flag4
7824
7825 function From_At_Mod
7826 (N : Node_Id) return Boolean; -- Flag4
7827
7828 function From_Default
7829 (N : Node_Id) return Boolean; -- Flag6
7830
7831 function Generic_Associations
7832 (N : Node_Id) return List_Id; -- List3
7833
7834 function Generic_Formal_Declarations
7835 (N : Node_Id) return List_Id; -- List2
7836
7837 function Generic_Parent
7838 (N : Node_Id) return Node_Id; -- Node5
7839
7840 function Generic_Parent_Type
7841 (N : Node_Id) return Node_Id; -- Node4
7842
7843 function Handled_Statement_Sequence
7844 (N : Node_Id) return Node_Id; -- Node4
7845
7846 function Handler_List_Entry
7847 (N : Node_Id) return Node_Id; -- Node2
7848
7849 function Has_Created_Identifier
7850 (N : Node_Id) return Boolean; -- Flag15
7851
7852 function Has_Dynamic_Length_Check
7853 (N : Node_Id) return Boolean; -- Flag10
7854
7855 function Has_Dynamic_Range_Check
7856 (N : Node_Id) return Boolean; -- Flag12
7857
7858 function Has_Init_Expression
7859 (N : Node_Id) return Boolean; -- Flag14
7860
7861 function Has_Local_Raise
7862 (N : Node_Id) return Boolean; -- Flag8
7863
7864 function Has_No_Elaboration_Code
7865 (N : Node_Id) return Boolean; -- Flag17
7866
7867 function Has_Priority_Pragma
7868 (N : Node_Id) return Boolean; -- Flag6
7869
7870 function Has_Private_View
7871 (N : Node_Id) return Boolean; -- Flag11
7872
7873 function Has_Relative_Deadline_Pragma
7874 (N : Node_Id) return Boolean; -- Flag9
7875
7876 function Has_Self_Reference
7877 (N : Node_Id) return Boolean; -- Flag13
7878
7879 function Has_Storage_Size_Pragma
7880 (N : Node_Id) return Boolean; -- Flag5
7881
7882 function Has_Task_Info_Pragma
7883 (N : Node_Id) return Boolean; -- Flag7
7884
7885 function Has_Task_Name_Pragma
7886 (N : Node_Id) return Boolean; -- Flag8
7887
7888 function Has_Wide_Character
7889 (N : Node_Id) return Boolean; -- Flag11
7890
7891 function Hidden_By_Use_Clause
7892 (N : Node_Id) return Elist_Id; -- Elist4
7893
7894 function High_Bound
7895 (N : Node_Id) return Node_Id; -- Node2
7896
7897 function Identifier
7898 (N : Node_Id) return Node_Id; -- Node1
7899
7900 function Interface_List
7901 (N : Node_Id) return List_Id; -- List2
7902
7903 function Interface_Present
7904 (N : Node_Id) return Boolean; -- Flag16
7905
7906 function Implicit_With
7907 (N : Node_Id) return Boolean; -- Flag16
7908
7909 function In_Present
7910 (N : Node_Id) return Boolean; -- Flag15
7911
7912 function Includes_Infinities
7913 (N : Node_Id) return Boolean; -- Flag11
7914
7915 function Instance_Spec
7916 (N : Node_Id) return Node_Id; -- Node5
7917
7918 function Intval
7919 (N : Node_Id) return Uint; -- Uint3
7920
7921 function Is_Asynchronous_Call_Block
7922 (N : Node_Id) return Boolean; -- Flag7
7923
7924 function Is_Component_Left_Opnd
7925 (N : Node_Id) return Boolean; -- Flag13
7926
7927 function Is_Component_Right_Opnd
7928 (N : Node_Id) return Boolean; -- Flag14
7929
7930 function Is_Controlling_Actual
7931 (N : Node_Id) return Boolean; -- Flag16
7932
7933 function Is_Dynamic_Coextension
7934 (N : Node_Id) return Boolean; -- Flag18
7935
7936 function Is_Entry_Barrier_Function
7937 (N : Node_Id) return Boolean; -- Flag8
7938
7939 function Is_Expanded_Build_In_Place_Call
7940 (N : Node_Id) return Boolean; -- Flag11
7941
7942 function Is_Folded_In_Parser
7943 (N : Node_Id) return Boolean; -- Flag4
7944
7945 function Is_In_Discriminant_Check
7946 (N : Node_Id) return Boolean; -- Flag11
7947
7948 function Is_Machine_Number
7949 (N : Node_Id) return Boolean; -- Flag11
7950
7951 function Is_Null_Loop
7952 (N : Node_Id) return Boolean; -- Flag16
7953
7954 function Is_Overloaded
7955 (N : Node_Id) return Boolean; -- Flag5
7956
7957 function Is_Power_Of_2_For_Shift
7958 (N : Node_Id) return Boolean; -- Flag13
7959
7960 function Is_Protected_Subprogram_Body
7961 (N : Node_Id) return Boolean; -- Flag7
7962
7963 function Is_Static_Coextension
7964 (N : Node_Id) return Boolean; -- Flag14
7965
7966 function Is_Static_Expression
7967 (N : Node_Id) return Boolean; -- Flag6
7968
7969 function Is_Subprogram_Descriptor
7970 (N : Node_Id) return Boolean; -- Flag16
7971
7972 function Is_Task_Allocation_Block
7973 (N : Node_Id) return Boolean; -- Flag6
7974
7975 function Is_Task_Master
7976 (N : Node_Id) return Boolean; -- Flag5
7977
7978 function Iteration_Scheme
7979 (N : Node_Id) return Node_Id; -- Node2
7980
7981 function Itype
7982 (N : Node_Id) return Entity_Id; -- Node1
7983
7984 function Kill_Range_Check
7985 (N : Node_Id) return Boolean; -- Flag11
7986
7987 function Label_Construct
7988 (N : Node_Id) return Node_Id; -- Node2
7989
7990 function Left_Opnd
7991 (N : Node_Id) return Node_Id; -- Node2
7992
7993 function Last_Bit
7994 (N : Node_Id) return Node_Id; -- Node4
7995
7996 function Last_Name
7997 (N : Node_Id) return Boolean; -- Flag6
7998
7999 function Library_Unit
8000 (N : Node_Id) return Node_Id; -- Node4
8001
8002 function Limited_View_Installed
8003 (N : Node_Id) return Boolean; -- Flag18
8004
8005 function Limited_Present
8006 (N : Node_Id) return Boolean; -- Flag17
8007
8008 function Literals
8009 (N : Node_Id) return List_Id; -- List1
8010
8011 function Local_Raise_Not_OK
8012 (N : Node_Id) return Boolean; -- Flag7
8013
8014 function Local_Raise_Statements
8015 (N : Node_Id) return Elist_Id; -- Elist1
8016
8017 function Loop_Actions
8018 (N : Node_Id) return List_Id; -- List2
8019
8020 function Loop_Parameter_Specification
8021 (N : Node_Id) return Node_Id; -- Node4
8022
8023 function Low_Bound
8024 (N : Node_Id) return Node_Id; -- Node1
8025
8026 function Mod_Clause
8027 (N : Node_Id) return Node_Id; -- Node2
8028
8029 function More_Ids
8030 (N : Node_Id) return Boolean; -- Flag5
8031
8032 function Must_Be_Byte_Aligned
8033 (N : Node_Id) return Boolean; -- Flag14
8034
8035 function Must_Not_Freeze
8036 (N : Node_Id) return Boolean; -- Flag8
8037
8038 function Must_Not_Override
8039 (N : Node_Id) return Boolean; -- Flag15
8040
8041 function Must_Override
8042 (N : Node_Id) return Boolean; -- Flag14
8043
8044 function Name
8045 (N : Node_Id) return Node_Id; -- Node2
8046
8047 function Names
8048 (N : Node_Id) return List_Id; -- List2
8049
8050 function Next_Entity
8051 (N : Node_Id) return Node_Id; -- Node2
8052
8053 function Next_Named_Actual
8054 (N : Node_Id) return Node_Id; -- Node4
8055
8056 function Next_Pragma
8057 (N : Node_Id) return Node_Id; -- Node1
8058
8059 function Next_Rep_Item
8060 (N : Node_Id) return Node_Id; -- Node5
8061
8062 function Next_Use_Clause
8063 (N : Node_Id) return Node_Id; -- Node3
8064
8065 function No_Ctrl_Actions
8066 (N : Node_Id) return Boolean; -- Flag7
8067
8068 function No_Elaboration_Check
8069 (N : Node_Id) return Boolean; -- Flag14
8070
8071 function No_Entities_Ref_In_Spec
8072 (N : Node_Id) return Boolean; -- Flag8
8073
8074 function No_Initialization
8075 (N : Node_Id) return Boolean; -- Flag13
8076
8077 function No_Truncation
8078 (N : Node_Id) return Boolean; -- Flag17
8079
8080 function Null_Present
8081 (N : Node_Id) return Boolean; -- Flag13
8082
8083 function Null_Exclusion_Present
8084 (N : Node_Id) return Boolean; -- Flag11
8085
8086 function Null_Record_Present
8087 (N : Node_Id) return Boolean; -- Flag17
8088
8089 function Object_Definition
8090 (N : Node_Id) return Node_Id; -- Node4
8091
8092 function Original_Discriminant
8093 (N : Node_Id) return Node_Id; -- Node2
8094
8095 function Original_Entity
8096 (N : Node_Id) return Entity_Id; -- Node2
8097
8098 function Others_Discrete_Choices
8099 (N : Node_Id) return List_Id; -- List1
8100
8101 function Out_Present
8102 (N : Node_Id) return Boolean; -- Flag17
8103
8104 function Parameter_Associations
8105 (N : Node_Id) return List_Id; -- List3
8106
8107 function Parameter_List_Truncated
8108 (N : Node_Id) return Boolean; -- Flag17
8109
8110 function Parameter_Specifications
8111 (N : Node_Id) return List_Id; -- List3
8112
8113 function Parameter_Type
8114 (N : Node_Id) return Node_Id; -- Node2
8115
8116 function Parent_Spec
8117 (N : Node_Id) return Node_Id; -- Node4
8118
8119 function PPC_Enabled
8120 (N : Node_Id) return Boolean; -- Flag5
8121
8122 function Position
8123 (N : Node_Id) return Node_Id; -- Node2
8124
8125 function Pragma_Argument_Associations
8126 (N : Node_Id) return List_Id; -- List2
8127
8128 function Pragma_Identifier
8129 (N : Node_Id) return Node_Id; -- Node4
8130
8131 function Pragmas_After
8132 (N : Node_Id) return List_Id; -- List5
8133
8134 function Pragmas_Before
8135 (N : Node_Id) return List_Id; -- List4
8136
8137 function Prefix
8138 (N : Node_Id) return Node_Id; -- Node3
8139
8140 function Present_Expr
8141 (N : Node_Id) return Uint; -- Uint3
8142
8143 function Prev_Ids
8144 (N : Node_Id) return Boolean; -- Flag6
8145
8146 function Print_In_Hex
8147 (N : Node_Id) return Boolean; -- Flag13
8148
8149 function Private_Declarations
8150 (N : Node_Id) return List_Id; -- List3
8151
8152 function Private_Present
8153 (N : Node_Id) return Boolean; -- Flag15
8154
8155 function Procedure_To_Call
8156 (N : Node_Id) return Node_Id; -- Node2
8157
8158 function Proper_Body
8159 (N : Node_Id) return Node_Id; -- Node1
8160
8161 function Protected_Definition
8162 (N : Node_Id) return Node_Id; -- Node3
8163
8164 function Protected_Present
8165 (N : Node_Id) return Boolean; -- Flag6
8166
8167 function Raises_Constraint_Error
8168 (N : Node_Id) return Boolean; -- Flag7
8169
8170 function Range_Constraint
8171 (N : Node_Id) return Node_Id; -- Node4
8172
8173 function Range_Expression
8174 (N : Node_Id) return Node_Id; -- Node4
8175
8176 function Real_Range_Specification
8177 (N : Node_Id) return Node_Id; -- Node4
8178
8179 function Realval
8180 (N : Node_Id) return Ureal; -- Ureal3
8181
8182 function Reason
8183 (N : Node_Id) return Uint; -- Uint3
8184
8185 function Record_Extension_Part
8186 (N : Node_Id) return Node_Id; -- Node3
8187
8188 function Redundant_Use
8189 (N : Node_Id) return Boolean; -- Flag13
8190
8191 function Renaming_Exception
8192 (N : Node_Id) return Node_Id; -- Node2
8193
8194 function Result_Definition
8195 (N : Node_Id) return Node_Id; -- Node4
8196
8197 function Return_Object_Declarations
8198 (N : Node_Id) return List_Id; -- List3
8199
8200 function Return_Statement_Entity
8201 (N : Node_Id) return Node_Id; -- Node5
8202
8203 function Reverse_Present
8204 (N : Node_Id) return Boolean; -- Flag15
8205
8206 function Right_Opnd
8207 (N : Node_Id) return Node_Id; -- Node3
8208
8209 function Rounded_Result
8210 (N : Node_Id) return Boolean; -- Flag18
8211
8212 function Scope
8213 (N : Node_Id) return Node_Id; -- Node3
8214
8215 function Select_Alternatives
8216 (N : Node_Id) return List_Id; -- List1
8217
8218 function Selector_Name
8219 (N : Node_Id) return Node_Id; -- Node2
8220
8221 function Selector_Names
8222 (N : Node_Id) return List_Id; -- List1
8223
8224 function Shift_Count_OK
8225 (N : Node_Id) return Boolean; -- Flag4
8226
8227 function Source_Type
8228 (N : Node_Id) return Entity_Id; -- Node1
8229
8230 function Specification
8231 (N : Node_Id) return Node_Id; -- Node1
8232
8233 function Statements
8234 (N : Node_Id) return List_Id; -- List3
8235
8236 function Static_Processing_OK
8237 (N : Node_Id) return Boolean; -- Flag4
8238
8239 function Storage_Pool
8240 (N : Node_Id) return Node_Id; -- Node1
8241
8242 function Strval
8243 (N : Node_Id) return String_Id; -- Str3
8244
8245 function Subtype_Indication
8246 (N : Node_Id) return Node_Id; -- Node5
8247
8248 function Subtype_Mark
8249 (N : Node_Id) return Node_Id; -- Node4
8250
8251 function Subtype_Marks
8252 (N : Node_Id) return List_Id; -- List2
8253
8254 function Synchronized_Present
8255 (N : Node_Id) return Boolean; -- Flag7
8256
8257 function Tagged_Present
8258 (N : Node_Id) return Boolean; -- Flag15
8259
8260 function Target_Type
8261 (N : Node_Id) return Entity_Id; -- Node2
8262
8263 function Task_Definition
8264 (N : Node_Id) return Node_Id; -- Node3
8265
8266 function Task_Present
8267 (N : Node_Id) return Boolean; -- Flag5
8268
8269 function Then_Actions
8270 (N : Node_Id) return List_Id; -- List2
8271
8272 function Then_Statements
8273 (N : Node_Id) return List_Id; -- List2
8274
8275 function Treat_Fixed_As_Integer
8276 (N : Node_Id) return Boolean; -- Flag14
8277
8278 function Triggering_Alternative
8279 (N : Node_Id) return Node_Id; -- Node1
8280
8281 function Triggering_Statement
8282 (N : Node_Id) return Node_Id; -- Node1
8283
8284 function TSS_Elist
8285 (N : Node_Id) return Elist_Id; -- Elist3
8286
8287 function Type_Definition
8288 (N : Node_Id) return Node_Id; -- Node3
8289
8290 function Unit
8291 (N : Node_Id) return Node_Id; -- Node2
8292
8293 function Unknown_Discriminants_Present
8294 (N : Node_Id) return Boolean; -- Flag13
8295
8296 function Unreferenced_In_Spec
8297 (N : Node_Id) return Boolean; -- Flag7
8298
8299 function Variant_Part
8300 (N : Node_Id) return Node_Id; -- Node4
8301
8302 function Variants
8303 (N : Node_Id) return List_Id; -- List1
8304
8305 function Visible_Declarations
8306 (N : Node_Id) return List_Id; -- List2
8307
8308 function Was_Originally_Stub
8309 (N : Node_Id) return Boolean; -- Flag13
8310
8311 function Zero_Cost_Handling
8312 (N : Node_Id) return Boolean; -- Flag5
8313
8314 -- End functions (note used by xsinfo utility program to end processing)
8315
8316 ----------------------------
8317 -- Node Update Procedures --
8318 ----------------------------
8319
8320 -- These are the corresponding node update routines, which again provide
8321 -- a high level logical access with type checking. In addition to setting
8322 -- the indicated field of the node N to the given Val, in the case of
8323 -- tree pointers (List1-4), the parent pointer of the Val node is set to
8324 -- point back to node N. This automates the setting of the parent pointer.
8325
8326 procedure Set_ABE_Is_Certain
8327 (N : Node_Id; Val : Boolean := True); -- Flag18
8328
8329 procedure Set_Abort_Present
8330 (N : Node_Id; Val : Boolean := True); -- Flag15
8331
8332 procedure Set_Abortable_Part
8333 (N : Node_Id; Val : Node_Id); -- Node2
8334
8335 procedure Set_Abstract_Present
8336 (N : Node_Id; Val : Boolean := True); -- Flag4
8337
8338 procedure Set_Accept_Handler_Records
8339 (N : Node_Id; Val : List_Id); -- List5
8340
8341 procedure Set_Accept_Statement
8342 (N : Node_Id; Val : Node_Id); -- Node2
8343
8344 procedure Set_Access_Definition
8345 (N : Node_Id; Val : Node_Id); -- Node3
8346
8347 procedure Set_Access_To_Subprogram_Definition
8348 (N : Node_Id; Val : Node_Id); -- Node3
8349
8350 procedure Set_Access_Types_To_Process
8351 (N : Node_Id; Val : Elist_Id); -- Elist2
8352
8353 procedure Set_Actions
8354 (N : Node_Id; Val : List_Id); -- List1
8355
8356 procedure Set_Activation_Chain_Entity
8357 (N : Node_Id; Val : Node_Id); -- Node3
8358
8359 procedure Set_Acts_As_Spec
8360 (N : Node_Id; Val : Boolean := True); -- Flag4
8361
8362 procedure Set_Actual_Designated_Subtype
8363 (N : Node_Id; Val : Node_Id); -- Node4
8364
8365 procedure Set_Address_Warning_Posted
8366 (N : Node_Id; Val : Boolean := True); -- Flag18
8367
8368 procedure Set_Aggregate_Bounds
8369 (N : Node_Id; Val : Node_Id); -- Node3
8370
8371 procedure Set_Aliased_Present
8372 (N : Node_Id; Val : Boolean := True); -- Flag4
8373
8374 procedure Set_All_Others
8375 (N : Node_Id; Val : Boolean := True); -- Flag11
8376
8377 procedure Set_All_Present
8378 (N : Node_Id; Val : Boolean := True); -- Flag15
8379
8380 procedure Set_Alternatives
8381 (N : Node_Id; Val : List_Id); -- List4
8382
8383 procedure Set_Ancestor_Part
8384 (N : Node_Id; Val : Node_Id); -- Node3
8385
8386 procedure Set_Array_Aggregate
8387 (N : Node_Id; Val : Node_Id); -- Node3
8388
8389 procedure Set_Assignment_OK
8390 (N : Node_Id; Val : Boolean := True); -- Flag15
8391
8392 procedure Set_Associated_Node
8393 (N : Node_Id; Val : Node_Id); -- Node4
8394
8395 procedure Set_Attribute_Name
8396 (N : Node_Id; Val : Name_Id); -- Name2
8397
8398 procedure Set_At_End_Proc
8399 (N : Node_Id; Val : Node_Id); -- Node1
8400
8401 procedure Set_Aux_Decls_Node
8402 (N : Node_Id; Val : Node_Id); -- Node5
8403
8404 procedure Set_Backwards_OK
8405 (N : Node_Id; Val : Boolean := True); -- Flag6
8406
8407 procedure Set_Bad_Is_Detected
8408 (N : Node_Id; Val : Boolean := True); -- Flag15
8409
8410 procedure Set_Body_Required
8411 (N : Node_Id; Val : Boolean := True); -- Flag13
8412
8413 procedure Set_Body_To_Inline
8414 (N : Node_Id; Val : Node_Id); -- Node3
8415
8416 procedure Set_Box_Present
8417 (N : Node_Id; Val : Boolean := True); -- Flag15
8418
8419 procedure Set_By_Ref
8420 (N : Node_Id; Val : Boolean := True); -- Flag5
8421
8422 procedure Set_Char_Literal_Value
8423 (N : Node_Id; Val : Uint); -- Uint2
8424
8425 procedure Set_Chars
8426 (N : Node_Id; Val : Name_Id); -- Name1
8427
8428 procedure Set_Check_Address_Alignment
8429 (N : Node_Id; Val : Boolean := True); -- Flag11
8430
8431 procedure Set_Choice_Parameter
8432 (N : Node_Id; Val : Node_Id); -- Node2
8433
8434 procedure Set_Coextensions
8435 (N : Node_Id; Val : Elist_Id); -- Elist4
8436
8437 procedure Set_Choices
8438 (N : Node_Id; Val : List_Id); -- List1
8439
8440 procedure Set_Comes_From_Extended_Return_Statement
8441 (N : Node_Id; Val : Boolean := True); -- Flag18
8442
8443 procedure Set_Compile_Time_Known_Aggregate
8444 (N : Node_Id; Val : Boolean := True); -- Flag18
8445
8446 procedure Set_Component_Associations
8447 (N : Node_Id; Val : List_Id); -- List2
8448
8449 procedure Set_Component_Clauses
8450 (N : Node_Id; Val : List_Id); -- List3
8451
8452 procedure Set_Component_Definition
8453 (N : Node_Id; Val : Node_Id); -- Node4
8454
8455 procedure Set_Component_Items
8456 (N : Node_Id; Val : List_Id); -- List3
8457
8458 procedure Set_Component_List
8459 (N : Node_Id; Val : Node_Id); -- Node1
8460
8461 procedure Set_Component_Name
8462 (N : Node_Id; Val : Node_Id); -- Node1
8463
8464 procedure Set_Condition
8465 (N : Node_Id; Val : Node_Id); -- Node1
8466
8467 procedure Set_Condition_Actions
8468 (N : Node_Id; Val : List_Id); -- List3
8469
8470 procedure Set_Config_Pragmas
8471 (N : Node_Id; Val : List_Id); -- List4
8472
8473 procedure Set_Constant_Present
8474 (N : Node_Id; Val : Boolean := True); -- Flag17
8475
8476 procedure Set_Constraint
8477 (N : Node_Id; Val : Node_Id); -- Node3
8478
8479 procedure Set_Constraints
8480 (N : Node_Id; Val : List_Id); -- List1
8481
8482 procedure Set_Context_Installed
8483 (N : Node_Id; Val : Boolean := True); -- Flag13
8484
8485 procedure Set_Context_Items
8486 (N : Node_Id; Val : List_Id); -- List1
8487
8488 procedure Set_Controlling_Argument
8489 (N : Node_Id; Val : Node_Id); -- Node1
8490
8491 procedure Set_Conversion_OK
8492 (N : Node_Id; Val : Boolean := True); -- Flag14
8493
8494 procedure Set_Corresponding_Body
8495 (N : Node_Id; Val : Node_Id); -- Node5
8496
8497 procedure Set_Corresponding_Formal_Spec
8498 (N : Node_Id; Val : Node_Id); -- Node3
8499
8500 procedure Set_Corresponding_Generic_Association
8501 (N : Node_Id; Val : Node_Id); -- Node5
8502
8503 procedure Set_Corresponding_Integer_Value
8504 (N : Node_Id; Val : Uint); -- Uint4
8505
8506 procedure Set_Corresponding_Spec
8507 (N : Node_Id; Val : Node_Id); -- Node5
8508
8509 procedure Set_Corresponding_Stub
8510 (N : Node_Id; Val : Node_Id); -- Node3
8511
8512 procedure Set_Dcheck_Function
8513 (N : Node_Id; Val : Entity_Id); -- Node5
8514
8515 procedure Set_Debug_Statement
8516 (N : Node_Id; Val : Node_Id); -- Node3
8517
8518 procedure Set_Declarations
8519 (N : Node_Id; Val : List_Id); -- List2
8520
8521 procedure Set_Default_Expression
8522 (N : Node_Id; Val : Node_Id); -- Node5
8523
8524 procedure Set_Default_Name
8525 (N : Node_Id; Val : Node_Id); -- Node2
8526
8527 procedure Set_Defining_Identifier
8528 (N : Node_Id; Val : Entity_Id); -- Node1
8529
8530 procedure Set_Defining_Unit_Name
8531 (N : Node_Id; Val : Node_Id); -- Node1
8532
8533 procedure Set_Delay_Alternative
8534 (N : Node_Id; Val : Node_Id); -- Node4
8535
8536 procedure Set_Delay_Statement
8537 (N : Node_Id; Val : Node_Id); -- Node2
8538
8539 procedure Set_Delta_Expression
8540 (N : Node_Id; Val : Node_Id); -- Node3
8541
8542 procedure Set_Digits_Expression
8543 (N : Node_Id; Val : Node_Id); -- Node2
8544
8545 procedure Set_Discr_Check_Funcs_Built
8546 (N : Node_Id; Val : Boolean := True); -- Flag11
8547
8548 procedure Set_Discrete_Choices
8549 (N : Node_Id; Val : List_Id); -- List4
8550
8551 procedure Set_Discrete_Range
8552 (N : Node_Id; Val : Node_Id); -- Node4
8553
8554 procedure Set_Discrete_Subtype_Definition
8555 (N : Node_Id; Val : Node_Id); -- Node4
8556
8557 procedure Set_Discrete_Subtype_Definitions
8558 (N : Node_Id; Val : List_Id); -- List2
8559
8560 procedure Set_Discriminant_Specifications
8561 (N : Node_Id; Val : List_Id); -- List4
8562
8563 procedure Set_Discriminant_Type
8564 (N : Node_Id; Val : Node_Id); -- Node5
8565
8566 procedure Set_Do_Accessibility_Check
8567 (N : Node_Id; Val : Boolean := True); -- Flag13
8568
8569 procedure Set_Do_Discriminant_Check
8570 (N : Node_Id; Val : Boolean := True); -- Flag13
8571
8572 procedure Set_Do_Division_Check
8573 (N : Node_Id; Val : Boolean := True); -- Flag13
8574
8575 procedure Set_Do_Length_Check
8576 (N : Node_Id; Val : Boolean := True); -- Flag4
8577
8578 procedure Set_Do_Overflow_Check
8579 (N : Node_Id; Val : Boolean := True); -- Flag17
8580
8581 procedure Set_Do_Range_Check
8582 (N : Node_Id; Val : Boolean := True); -- Flag9
8583
8584 procedure Set_Do_Storage_Check
8585 (N : Node_Id; Val : Boolean := True); -- Flag17
8586
8587 procedure Set_Do_Tag_Check
8588 (N : Node_Id; Val : Boolean := True); -- Flag13
8589
8590 procedure Set_Elaborate_All_Desirable
8591 (N : Node_Id; Val : Boolean := True); -- Flag9
8592
8593 procedure Set_Elaborate_All_Present
8594 (N : Node_Id; Val : Boolean := True); -- Flag14
8595
8596 procedure Set_Elaborate_Desirable
8597 (N : Node_Id; Val : Boolean := True); -- Flag11
8598
8599 procedure Set_Elaborate_Present
8600 (N : Node_Id; Val : Boolean := True); -- Flag4
8601
8602 procedure Set_Elaboration_Boolean
8603 (N : Node_Id; Val : Node_Id); -- Node2
8604
8605 procedure Set_Else_Actions
8606 (N : Node_Id; Val : List_Id); -- List3
8607
8608 procedure Set_Else_Statements
8609 (N : Node_Id; Val : List_Id); -- List4
8610
8611 procedure Set_Elsif_Parts
8612 (N : Node_Id; Val : List_Id); -- List3
8613
8614 procedure Set_Enclosing_Variant
8615 (N : Node_Id; Val : Node_Id); -- Node2
8616
8617 procedure Set_End_Label
8618 (N : Node_Id; Val : Node_Id); -- Node4
8619
8620 procedure Set_End_Span
8621 (N : Node_Id; Val : Uint); -- Uint5
8622
8623 procedure Set_Entity
8624 (N : Node_Id; Val : Node_Id); -- Node4
8625
8626 procedure Set_Entry_Body_Formal_Part
8627 (N : Node_Id; Val : Node_Id); -- Node5
8628
8629 procedure Set_Entry_Call_Alternative
8630 (N : Node_Id; Val : Node_Id); -- Node1
8631
8632 procedure Set_Entry_Call_Statement
8633 (N : Node_Id; Val : Node_Id); -- Node1
8634
8635 procedure Set_Entry_Direct_Name
8636 (N : Node_Id; Val : Node_Id); -- Node1
8637
8638 procedure Set_Entry_Index
8639 (N : Node_Id; Val : Node_Id); -- Node5
8640
8641 procedure Set_Entry_Index_Specification
8642 (N : Node_Id; Val : Node_Id); -- Node4
8643
8644 procedure Set_Etype
8645 (N : Node_Id; Val : Node_Id); -- Node5
8646
8647 procedure Set_Exception_Choices
8648 (N : Node_Id; Val : List_Id); -- List4
8649
8650 procedure Set_Exception_Handlers
8651 (N : Node_Id; Val : List_Id); -- List5
8652
8653 procedure Set_Exception_Junk
8654 (N : Node_Id; Val : Boolean := True); -- Flag8
8655
8656 procedure Set_Exception_Label
8657 (N : Node_Id; Val : Node_Id); -- Node5
8658
8659 procedure Set_Expansion_Delayed
8660 (N : Node_Id; Val : Boolean := True); -- Flag11
8661
8662 procedure Set_Explicit_Actual_Parameter
8663 (N : Node_Id; Val : Node_Id); -- Node3
8664
8665 procedure Set_Explicit_Generic_Actual_Parameter
8666 (N : Node_Id; Val : Node_Id); -- Node1
8667
8668 procedure Set_Expression
8669 (N : Node_Id; Val : Node_Id); -- Node3
8670
8671 procedure Set_Expressions
8672 (N : Node_Id; Val : List_Id); -- List1
8673
8674 procedure Set_First_Bit
8675 (N : Node_Id; Val : Node_Id); -- Node3
8676
8677 procedure Set_First_Inlined_Subprogram
8678 (N : Node_Id; Val : Entity_Id); -- Node3
8679
8680 procedure Set_First_Name
8681 (N : Node_Id; Val : Boolean := True); -- Flag5
8682
8683 procedure Set_First_Named_Actual
8684 (N : Node_Id; Val : Node_Id); -- Node4
8685
8686 procedure Set_First_Real_Statement
8687 (N : Node_Id; Val : Node_Id); -- Node2
8688
8689 procedure Set_First_Subtype_Link
8690 (N : Node_Id; Val : Entity_Id); -- Node5
8691
8692 procedure Set_Float_Truncate
8693 (N : Node_Id; Val : Boolean := True); -- Flag11
8694
8695 procedure Set_Formal_Type_Definition
8696 (N : Node_Id; Val : Node_Id); -- Node3
8697
8698 procedure Set_Forwards_OK
8699 (N : Node_Id; Val : Boolean := True); -- Flag5
8700
8701 procedure Set_From_At_Mod
8702 (N : Node_Id; Val : Boolean := True); -- Flag4
8703
8704 procedure Set_From_At_End
8705 (N : Node_Id; Val : Boolean := True); -- Flag4
8706
8707 procedure Set_From_Default
8708 (N : Node_Id; Val : Boolean := True); -- Flag6
8709
8710 procedure Set_Generic_Associations
8711 (N : Node_Id; Val : List_Id); -- List3
8712
8713 procedure Set_Generic_Formal_Declarations
8714 (N : Node_Id; Val : List_Id); -- List2
8715
8716 procedure Set_Generic_Parent
8717 (N : Node_Id; Val : Node_Id); -- Node5
8718
8719 procedure Set_Generic_Parent_Type
8720 (N : Node_Id; Val : Node_Id); -- Node4
8721
8722 procedure Set_Handled_Statement_Sequence
8723 (N : Node_Id; Val : Node_Id); -- Node4
8724
8725 procedure Set_Handler_List_Entry
8726 (N : Node_Id; Val : Node_Id); -- Node2
8727
8728 procedure Set_Has_Created_Identifier
8729 (N : Node_Id; Val : Boolean := True); -- Flag15
8730
8731 procedure Set_Has_Dynamic_Length_Check
8732 (N : Node_Id; Val : Boolean := True); -- Flag10
8733
8734 procedure Set_Has_Dynamic_Range_Check
8735 (N : Node_Id; Val : Boolean := True); -- Flag12
8736
8737 procedure Set_Has_Init_Expression
8738 (N : Node_Id; Val : Boolean := True); -- Flag14
8739
8740 procedure Set_Has_Local_Raise
8741 (N : Node_Id; Val : Boolean := True); -- Flag8
8742
8743 procedure Set_Has_No_Elaboration_Code
8744 (N : Node_Id; Val : Boolean := True); -- Flag17
8745
8746 procedure Set_Has_Priority_Pragma
8747 (N : Node_Id; Val : Boolean := True); -- Flag6
8748
8749 procedure Set_Has_Private_View
8750 (N : Node_Id; Val : Boolean := True); -- Flag11
8751
8752 procedure Set_Has_Relative_Deadline_Pragma
8753 (N : Node_Id; Val : Boolean := True); -- Flag9
8754
8755 procedure Set_Has_Self_Reference
8756 (N : Node_Id; Val : Boolean := True); -- Flag13
8757
8758 procedure Set_Has_Storage_Size_Pragma
8759 (N : Node_Id; Val : Boolean := True); -- Flag5
8760
8761 procedure Set_Has_Task_Info_Pragma
8762 (N : Node_Id; Val : Boolean := True); -- Flag7
8763
8764 procedure Set_Has_Task_Name_Pragma
8765 (N : Node_Id; Val : Boolean := True); -- Flag8
8766
8767 procedure Set_Has_Wide_Character
8768 (N : Node_Id; Val : Boolean := True); -- Flag11
8769
8770 procedure Set_Hidden_By_Use_Clause
8771 (N : Node_Id; Val : Elist_Id); -- Elist4
8772
8773 procedure Set_High_Bound
8774 (N : Node_Id; Val : Node_Id); -- Node2
8775
8776 procedure Set_Identifier
8777 (N : Node_Id; Val : Node_Id); -- Node1
8778
8779 procedure Set_Interface_List
8780 (N : Node_Id; Val : List_Id); -- List2
8781
8782 procedure Set_Interface_Present
8783 (N : Node_Id; Val : Boolean := True); -- Flag16
8784
8785 procedure Set_Implicit_With
8786 (N : Node_Id; Val : Boolean := True); -- Flag16
8787
8788 procedure Set_In_Present
8789 (N : Node_Id; Val : Boolean := True); -- Flag15
8790
8791 procedure Set_Includes_Infinities
8792 (N : Node_Id; Val : Boolean := True); -- Flag11
8793
8794 procedure Set_Instance_Spec
8795 (N : Node_Id; Val : Node_Id); -- Node5
8796
8797 procedure Set_Intval
8798 (N : Node_Id; Val : Uint); -- Uint3
8799
8800 procedure Set_Is_Asynchronous_Call_Block
8801 (N : Node_Id; Val : Boolean := True); -- Flag7
8802
8803 procedure Set_Is_Component_Left_Opnd
8804 (N : Node_Id; Val : Boolean := True); -- Flag13
8805
8806 procedure Set_Is_Component_Right_Opnd
8807 (N : Node_Id; Val : Boolean := True); -- Flag14
8808
8809 procedure Set_Is_Controlling_Actual
8810 (N : Node_Id; Val : Boolean := True); -- Flag16
8811
8812 procedure Set_Is_Dynamic_Coextension
8813 (N : Node_Id; Val : Boolean := True); -- Flag18
8814
8815 procedure Set_Is_Entry_Barrier_Function
8816 (N : Node_Id; Val : Boolean := True); -- Flag8
8817
8818 procedure Set_Is_Expanded_Build_In_Place_Call
8819 (N : Node_Id; Val : Boolean := True); -- Flag11
8820
8821 procedure Set_Is_Folded_In_Parser
8822 (N : Node_Id; Val : Boolean := True); -- Flag4
8823
8824 procedure Set_Is_In_Discriminant_Check
8825 (N : Node_Id; Val : Boolean := True); -- Flag11
8826
8827 procedure Set_Is_Machine_Number
8828 (N : Node_Id; Val : Boolean := True); -- Flag11
8829
8830 procedure Set_Is_Null_Loop
8831 (N : Node_Id; Val : Boolean := True); -- Flag16
8832
8833 procedure Set_Is_Overloaded
8834 (N : Node_Id; Val : Boolean := True); -- Flag5
8835
8836 procedure Set_Is_Power_Of_2_For_Shift
8837 (N : Node_Id; Val : Boolean := True); -- Flag13
8838
8839 procedure Set_Is_Protected_Subprogram_Body
8840 (N : Node_Id; Val : Boolean := True); -- Flag7
8841
8842 procedure Set_Is_Static_Coextension
8843 (N : Node_Id; Val : Boolean := True); -- Flag14
8844
8845 procedure Set_Is_Static_Expression
8846 (N : Node_Id; Val : Boolean := True); -- Flag6
8847
8848 procedure Set_Is_Subprogram_Descriptor
8849 (N : Node_Id; Val : Boolean := True); -- Flag16
8850
8851 procedure Set_Is_Task_Allocation_Block
8852 (N : Node_Id; Val : Boolean := True); -- Flag6
8853
8854 procedure Set_Is_Task_Master
8855 (N : Node_Id; Val : Boolean := True); -- Flag5
8856
8857 procedure Set_Iteration_Scheme
8858 (N : Node_Id; Val : Node_Id); -- Node2
8859
8860 procedure Set_Itype
8861 (N : Node_Id; Val : Entity_Id); -- Node1
8862
8863 procedure Set_Kill_Range_Check
8864 (N : Node_Id; Val : Boolean := True); -- Flag11
8865
8866 procedure Set_Last_Bit
8867 (N : Node_Id; Val : Node_Id); -- Node4
8868
8869 procedure Set_Last_Name
8870 (N : Node_Id; Val : Boolean := True); -- Flag6
8871
8872 procedure Set_Library_Unit
8873 (N : Node_Id; Val : Node_Id); -- Node4
8874
8875 procedure Set_Label_Construct
8876 (N : Node_Id; Val : Node_Id); -- Node2
8877
8878 procedure Set_Left_Opnd
8879 (N : Node_Id; Val : Node_Id); -- Node2
8880
8881 procedure Set_Limited_View_Installed
8882 (N : Node_Id; Val : Boolean := True); -- Flag18
8883
8884 procedure Set_Limited_Present
8885 (N : Node_Id; Val : Boolean := True); -- Flag17
8886
8887 procedure Set_Literals
8888 (N : Node_Id; Val : List_Id); -- List1
8889
8890 procedure Set_Local_Raise_Not_OK
8891 (N : Node_Id; Val : Boolean := True); -- Flag7
8892
8893 procedure Set_Local_Raise_Statements
8894 (N : Node_Id; Val : Elist_Id); -- Elist1
8895
8896 procedure Set_Loop_Actions
8897 (N : Node_Id; Val : List_Id); -- List2
8898
8899 procedure Set_Loop_Parameter_Specification
8900 (N : Node_Id; Val : Node_Id); -- Node4
8901
8902 procedure Set_Low_Bound
8903 (N : Node_Id; Val : Node_Id); -- Node1
8904
8905 procedure Set_Mod_Clause
8906 (N : Node_Id; Val : Node_Id); -- Node2
8907
8908 procedure Set_More_Ids
8909 (N : Node_Id; Val : Boolean := True); -- Flag5
8910
8911 procedure Set_Must_Be_Byte_Aligned
8912 (N : Node_Id; Val : Boolean := True); -- Flag14
8913
8914 procedure Set_Must_Not_Freeze
8915 (N : Node_Id; Val : Boolean := True); -- Flag8
8916
8917 procedure Set_Must_Not_Override
8918 (N : Node_Id; Val : Boolean := True); -- Flag15
8919
8920 procedure Set_Must_Override
8921 (N : Node_Id; Val : Boolean := True); -- Flag14
8922
8923 procedure Set_Name
8924 (N : Node_Id; Val : Node_Id); -- Node2
8925
8926 procedure Set_Names
8927 (N : Node_Id; Val : List_Id); -- List2
8928
8929 procedure Set_Next_Entity
8930 (N : Node_Id; Val : Node_Id); -- Node2
8931
8932 procedure Set_Next_Named_Actual
8933 (N : Node_Id; Val : Node_Id); -- Node4
8934
8935 procedure Set_Next_Pragma
8936 (N : Node_Id; Val : Node_Id); -- Node1
8937
8938 procedure Set_Next_Rep_Item
8939 (N : Node_Id; Val : Node_Id); -- Node5
8940
8941 procedure Set_Next_Use_Clause
8942 (N : Node_Id; Val : Node_Id); -- Node3
8943
8944 procedure Set_No_Ctrl_Actions
8945 (N : Node_Id; Val : Boolean := True); -- Flag7
8946
8947 procedure Set_No_Elaboration_Check
8948 (N : Node_Id; Val : Boolean := True); -- Flag14
8949
8950 procedure Set_No_Entities_Ref_In_Spec
8951 (N : Node_Id; Val : Boolean := True); -- Flag8
8952
8953 procedure Set_No_Initialization
8954 (N : Node_Id; Val : Boolean := True); -- Flag13
8955
8956 procedure Set_No_Truncation
8957 (N : Node_Id; Val : Boolean := True); -- Flag17
8958
8959 procedure Set_Null_Present
8960 (N : Node_Id; Val : Boolean := True); -- Flag13
8961
8962 procedure Set_Null_Exclusion_Present
8963 (N : Node_Id; Val : Boolean := True); -- Flag11
8964
8965 procedure Set_Null_Record_Present
8966 (N : Node_Id; Val : Boolean := True); -- Flag17
8967
8968 procedure Set_Object_Definition
8969 (N : Node_Id; Val : Node_Id); -- Node4
8970
8971 procedure Set_Original_Discriminant
8972 (N : Node_Id; Val : Node_Id); -- Node2
8973
8974 procedure Set_Original_Entity
8975 (N : Node_Id; Val : Entity_Id); -- Node2
8976
8977 procedure Set_Others_Discrete_Choices
8978 (N : Node_Id; Val : List_Id); -- List1
8979
8980 procedure Set_Out_Present
8981 (N : Node_Id; Val : Boolean := True); -- Flag17
8982
8983 procedure Set_Parameter_Associations
8984 (N : Node_Id; Val : List_Id); -- List3
8985
8986 procedure Set_Parameter_List_Truncated
8987 (N : Node_Id; Val : Boolean := True); -- Flag17
8988
8989 procedure Set_Parameter_Specifications
8990 (N : Node_Id; Val : List_Id); -- List3
8991
8992 procedure Set_Parameter_Type
8993 (N : Node_Id; Val : Node_Id); -- Node2
8994
8995 procedure Set_Parent_Spec
8996 (N : Node_Id; Val : Node_Id); -- Node4
8997
8998 procedure Set_PPC_Enabled
8999 (N : Node_Id; Val : Boolean := True); -- Flag5
9000
9001 procedure Set_Position
9002 (N : Node_Id; Val : Node_Id); -- Node2
9003
9004 procedure Set_Pragma_Argument_Associations
9005 (N : Node_Id; Val : List_Id); -- List2
9006
9007 procedure Set_Pragma_Identifier
9008 (N : Node_Id; Val : Node_Id); -- Node4
9009
9010 procedure Set_Pragmas_After
9011 (N : Node_Id; Val : List_Id); -- List5
9012
9013 procedure Set_Pragmas_Before
9014 (N : Node_Id; Val : List_Id); -- List4
9015
9016 procedure Set_Prefix
9017 (N : Node_Id; Val : Node_Id); -- Node3
9018
9019 procedure Set_Present_Expr
9020 (N : Node_Id; Val : Uint); -- Uint3
9021
9022 procedure Set_Prev_Ids
9023 (N : Node_Id; Val : Boolean := True); -- Flag6
9024
9025 procedure Set_Print_In_Hex
9026 (N : Node_Id; Val : Boolean := True); -- Flag13
9027
9028 procedure Set_Private_Declarations
9029 (N : Node_Id; Val : List_Id); -- List3
9030
9031 procedure Set_Private_Present
9032 (N : Node_Id; Val : Boolean := True); -- Flag15
9033
9034 procedure Set_Procedure_To_Call
9035 (N : Node_Id; Val : Node_Id); -- Node2
9036
9037 procedure Set_Proper_Body
9038 (N : Node_Id; Val : Node_Id); -- Node1
9039
9040 procedure Set_Protected_Definition
9041 (N : Node_Id; Val : Node_Id); -- Node3
9042
9043 procedure Set_Protected_Present
9044 (N : Node_Id; Val : Boolean := True); -- Flag6
9045
9046 procedure Set_Raises_Constraint_Error
9047 (N : Node_Id; Val : Boolean := True); -- Flag7
9048
9049 procedure Set_Range_Constraint
9050 (N : Node_Id; Val : Node_Id); -- Node4
9051
9052 procedure Set_Range_Expression
9053 (N : Node_Id; Val : Node_Id); -- Node4
9054
9055 procedure Set_Real_Range_Specification
9056 (N : Node_Id; Val : Node_Id); -- Node4
9057
9058 procedure Set_Realval
9059 (N : Node_Id; Val : Ureal); -- Ureal3
9060
9061 procedure Set_Reason
9062 (N : Node_Id; Val : Uint); -- Uint3
9063
9064 procedure Set_Record_Extension_Part
9065 (N : Node_Id; Val : Node_Id); -- Node3
9066
9067 procedure Set_Redundant_Use
9068 (N : Node_Id; Val : Boolean := True); -- Flag13
9069
9070 procedure Set_Renaming_Exception
9071 (N : Node_Id; Val : Node_Id); -- Node2
9072
9073 procedure Set_Result_Definition
9074 (N : Node_Id; Val : Node_Id); -- Node4
9075
9076 procedure Set_Return_Object_Declarations
9077 (N : Node_Id; Val : List_Id); -- List3
9078
9079 procedure Set_Return_Statement_Entity
9080 (N : Node_Id; Val : Node_Id); -- Node5
9081
9082 procedure Set_Reverse_Present
9083 (N : Node_Id; Val : Boolean := True); -- Flag15
9084
9085 procedure Set_Right_Opnd
9086 (N : Node_Id; Val : Node_Id); -- Node3
9087
9088 procedure Set_Rounded_Result
9089 (N : Node_Id; Val : Boolean := True); -- Flag18
9090
9091 procedure Set_Scope
9092 (N : Node_Id; Val : Node_Id); -- Node3
9093
9094 procedure Set_Select_Alternatives
9095 (N : Node_Id; Val : List_Id); -- List1
9096
9097 procedure Set_Selector_Name
9098 (N : Node_Id; Val : Node_Id); -- Node2
9099
9100 procedure Set_Selector_Names
9101 (N : Node_Id; Val : List_Id); -- List1
9102
9103 procedure Set_Shift_Count_OK
9104 (N : Node_Id; Val : Boolean := True); -- Flag4
9105
9106 procedure Set_Source_Type
9107 (N : Node_Id; Val : Entity_Id); -- Node1
9108
9109 procedure Set_Specification
9110 (N : Node_Id; Val : Node_Id); -- Node1
9111
9112 procedure Set_Statements
9113 (N : Node_Id; Val : List_Id); -- List3
9114
9115 procedure Set_Static_Processing_OK
9116 (N : Node_Id; Val : Boolean); -- Flag4
9117
9118 procedure Set_Storage_Pool
9119 (N : Node_Id; Val : Node_Id); -- Node1
9120
9121 procedure Set_Strval
9122 (N : Node_Id; Val : String_Id); -- Str3
9123
9124 procedure Set_Subtype_Indication
9125 (N : Node_Id; Val : Node_Id); -- Node5
9126
9127 procedure Set_Subtype_Mark
9128 (N : Node_Id; Val : Node_Id); -- Node4
9129
9130 procedure Set_Subtype_Marks
9131 (N : Node_Id; Val : List_Id); -- List2
9132
9133 procedure Set_Synchronized_Present
9134 (N : Node_Id; Val : Boolean := True); -- Flag7
9135
9136 procedure Set_Tagged_Present
9137 (N : Node_Id; Val : Boolean := True); -- Flag15
9138
9139 procedure Set_Target_Type
9140 (N : Node_Id; Val : Entity_Id); -- Node2
9141
9142 procedure Set_Task_Definition
9143 (N : Node_Id; Val : Node_Id); -- Node3
9144
9145 procedure Set_Task_Present
9146 (N : Node_Id; Val : Boolean := True); -- Flag5
9147
9148 procedure Set_Then_Actions
9149 (N : Node_Id; Val : List_Id); -- List2
9150
9151 procedure Set_Then_Statements
9152 (N : Node_Id; Val : List_Id); -- List2
9153
9154 procedure Set_Treat_Fixed_As_Integer
9155 (N : Node_Id; Val : Boolean := True); -- Flag14
9156
9157 procedure Set_Triggering_Alternative
9158 (N : Node_Id; Val : Node_Id); -- Node1
9159
9160 procedure Set_Triggering_Statement
9161 (N : Node_Id; Val : Node_Id); -- Node1
9162
9163 procedure Set_TSS_Elist
9164 (N : Node_Id; Val : Elist_Id); -- Elist3
9165
9166 procedure Set_Type_Definition
9167 (N : Node_Id; Val : Node_Id); -- Node3
9168
9169 procedure Set_Unit
9170 (N : Node_Id; Val : Node_Id); -- Node2
9171
9172 procedure Set_Unknown_Discriminants_Present
9173 (N : Node_Id; Val : Boolean := True); -- Flag13
9174
9175 procedure Set_Unreferenced_In_Spec
9176 (N : Node_Id; Val : Boolean := True); -- Flag7
9177
9178 procedure Set_Variant_Part
9179 (N : Node_Id; Val : Node_Id); -- Node4
9180
9181 procedure Set_Variants
9182 (N : Node_Id; Val : List_Id); -- List1
9183
9184 procedure Set_Visible_Declarations
9185 (N : Node_Id; Val : List_Id); -- List2
9186
9187 procedure Set_Was_Originally_Stub
9188 (N : Node_Id; Val : Boolean := True); -- Flag13
9189
9190 procedure Set_Zero_Cost_Handling
9191 (N : Node_Id; Val : Boolean := True); -- Flag5
9192
9193 -------------------------
9194 -- Iterator Procedures --
9195 -------------------------
9196
9197 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9198
9199 procedure Next_Entity (N : in out Node_Id);
9200 procedure Next_Named_Actual (N : in out Node_Id);
9201 procedure Next_Rep_Item (N : in out Node_Id);
9202 procedure Next_Use_Clause (N : in out Node_Id);
9203
9204 --------------------------------------
9205 -- Logical Access to End_Span Field --
9206 --------------------------------------
9207
9208 function End_Location (N : Node_Id) return Source_Ptr;
9209 -- N is an N_If_Statement or N_Case_Statement node, and this
9210 -- function returns the location of the IF token in the END IF
9211 -- sequence by translating the value of the End_Span field.
9212
9213 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9214 -- N is an N_If_Statement or N_Case_Statement node. This procedure
9215 -- sets the End_Span field to correspond to the given value S. In
9216 -- other words, End_Span is set to the difference between S and
9217 -- Sloc (N), the starting location.
9218
9219 --------------------------------
9220 -- Node_Kind Membership Tests --
9221 --------------------------------
9222
9223 -- The following functions allow a convenient notation for testing wheter
9224 -- a Node_Kind value matches any one of a list of possible values. In each
9225 -- case True is returned if the given T argument is equal to any of the V
9226 -- arguments. Note that there is a similar set of functions defined in
9227 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
9228
9229 function Nkind_In
9230 (T : Node_Kind;
9231 V1 : Node_Kind;
9232 V2 : Node_Kind) return Boolean;
9233
9234 function Nkind_In
9235 (T : Node_Kind;
9236 V1 : Node_Kind;
9237 V2 : Node_Kind;
9238 V3 : Node_Kind) return Boolean;
9239
9240 function Nkind_In
9241 (T : Node_Kind;
9242 V1 : Node_Kind;
9243 V2 : Node_Kind;
9244 V3 : Node_Kind;
9245 V4 : Node_Kind) return Boolean;
9246
9247 function Nkind_In
9248 (T : Node_Kind;
9249 V1 : Node_Kind;
9250 V2 : Node_Kind;
9251 V3 : Node_Kind;
9252 V4 : Node_Kind;
9253 V5 : Node_Kind) return Boolean;
9254
9255 function Nkind_In
9256 (T : Node_Kind;
9257 V1 : Node_Kind;
9258 V2 : Node_Kind;
9259 V3 : Node_Kind;
9260 V4 : Node_Kind;
9261 V5 : Node_Kind;
9262 V6 : Node_Kind) return Boolean;
9263
9264 function Nkind_In
9265 (T : Node_Kind;
9266 V1 : Node_Kind;
9267 V2 : Node_Kind;
9268 V3 : Node_Kind;
9269 V4 : Node_Kind;
9270 V5 : Node_Kind;
9271 V6 : Node_Kind;
9272 V7 : Node_Kind) return Boolean;
9273
9274 function Nkind_In
9275 (T : Node_Kind;
9276 V1 : Node_Kind;
9277 V2 : Node_Kind;
9278 V3 : Node_Kind;
9279 V4 : Node_Kind;
9280 V5 : Node_Kind;
9281 V6 : Node_Kind;
9282 V7 : Node_Kind;
9283 V8 : Node_Kind) return Boolean;
9284
9285 pragma Inline (Nkind_In);
9286 -- Inline all above functions
9287
9288 -----------------------
9289 -- Utility Functions --
9290 -----------------------
9291
9292 function Pragma_Name (N : Node_Id) return Name_Id;
9293 pragma Inline (Pragma_Name);
9294 -- Convenient function to obtain Chars field of Pragma_Identifier
9295
9296 -----------------------------
9297 -- Syntactic Parent Tables --
9298 -----------------------------
9299
9300 -- These tables show for each node, and for each of the five fields,
9301 -- whether the corresponding field is syntactic (True) or semantic (False).
9302 -- Unused entries are also set to False.
9303
9304 subtype Field_Num is Natural range 1 .. 5;
9305
9306 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
9307
9308 -- Following entries can be built automatically from the sinfo sources
9309 -- using the makeisf utility (currently this program is in spitbol).
9310
9311 N_Identifier =>
9312 (1 => True, -- Chars (Name1)
9313 2 => False, -- Original_Discriminant (Node2-Sem)
9314 3 => False, -- unused
9315 4 => False, -- Entity (Node4-Sem)
9316 5 => False), -- Etype (Node5-Sem)
9317
9318 N_Integer_Literal =>
9319 (1 => False, -- unused
9320 2 => False, -- Original_Entity (Node2-Sem)
9321 3 => True, -- Intval (Uint3)
9322 4 => False, -- unused
9323 5 => False), -- Etype (Node5-Sem)
9324
9325 N_Real_Literal =>
9326 (1 => False, -- unused
9327 2 => False, -- Original_Entity (Node2-Sem)
9328 3 => True, -- Realval (Ureal3)
9329 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
9330 5 => False), -- Etype (Node5-Sem)
9331
9332 N_Character_Literal =>
9333 (1 => True, -- Chars (Name1)
9334 2 => True, -- Char_Literal_Value (Uint2)
9335 3 => False, -- unused
9336 4 => False, -- Entity (Node4-Sem)
9337 5 => False), -- Etype (Node5-Sem)
9338
9339 N_String_Literal =>
9340 (1 => False, -- unused
9341 2 => False, -- unused
9342 3 => True, -- Strval (Str3)
9343 4 => False, -- unused
9344 5 => False), -- Etype (Node5-Sem)
9345
9346 N_Pragma =>
9347 (1 => False, -- Next_Pragma (Node1-Sem)
9348 2 => True, -- Pragma_Argument_Associations (List2)
9349 3 => True, -- Debug_Statement (Node3)
9350 4 => True, -- Pragma_Identifier (Node4)
9351 5 => False), -- Next_Rep_Item (Node5-Sem)
9352
9353 N_Pragma_Argument_Association =>
9354 (1 => True, -- Chars (Name1)
9355 2 => False, -- unused
9356 3 => True, -- Expression (Node3)
9357 4 => False, -- unused
9358 5 => False), -- unused
9359
9360 N_Defining_Identifier =>
9361 (1 => True, -- Chars (Name1)
9362 2 => False, -- Next_Entity (Node2-Sem)
9363 3 => False, -- Scope (Node3-Sem)
9364 4 => False, -- unused
9365 5 => False), -- Etype (Node5-Sem)
9366
9367 N_Full_Type_Declaration =>
9368 (1 => True, -- Defining_Identifier (Node1)
9369 2 => False, -- unused
9370 3 => True, -- Type_Definition (Node3)
9371 4 => True, -- Discriminant_Specifications (List4)
9372 5 => False), -- unused
9373
9374 N_Subtype_Declaration =>
9375 (1 => True, -- Defining_Identifier (Node1)
9376 2 => False, -- unused
9377 3 => False, -- unused
9378 4 => False, -- Generic_Parent_Type (Node4-Sem)
9379 5 => True), -- Subtype_Indication (Node5)
9380
9381 N_Subtype_Indication =>
9382 (1 => False, -- unused
9383 2 => False, -- unused
9384 3 => True, -- Constraint (Node3)
9385 4 => True, -- Subtype_Mark (Node4)
9386 5 => False), -- Etype (Node5-Sem)
9387
9388 N_Object_Declaration =>
9389 (1 => True, -- Defining_Identifier (Node1)
9390 2 => False, -- Handler_List_Entry (Node2-Sem)
9391 3 => True, -- Expression (Node3)
9392 4 => True, -- Object_Definition (Node4)
9393 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
9394
9395 N_Number_Declaration =>
9396 (1 => True, -- Defining_Identifier (Node1)
9397 2 => False, -- unused
9398 3 => True, -- Expression (Node3)
9399 4 => False, -- unused
9400 5 => False), -- unused
9401
9402 N_Derived_Type_Definition =>
9403 (1 => False, -- unused
9404 2 => True, -- Interface_List (List2)
9405 3 => True, -- Record_Extension_Part (Node3)
9406 4 => False, -- unused
9407 5 => True), -- Subtype_Indication (Node5)
9408
9409 N_Range_Constraint =>
9410 (1 => False, -- unused
9411 2 => False, -- unused
9412 3 => False, -- unused
9413 4 => True, -- Range_Expression (Node4)
9414 5 => False), -- unused
9415
9416 N_Range =>
9417 (1 => True, -- Low_Bound (Node1)
9418 2 => True, -- High_Bound (Node2)
9419 3 => False, -- unused
9420 4 => False, -- unused
9421 5 => False), -- Etype (Node5-Sem)
9422
9423 N_Enumeration_Type_Definition =>
9424 (1 => True, -- Literals (List1)
9425 2 => False, -- unused
9426 3 => False, -- unused
9427 4 => True, -- End_Label (Node4)
9428 5 => False), -- unused
9429
9430 N_Defining_Character_Literal =>
9431 (1 => True, -- Chars (Name1)
9432 2 => False, -- Next_Entity (Node2-Sem)
9433 3 => False, -- Scope (Node3-Sem)
9434 4 => False, -- unused
9435 5 => False), -- Etype (Node5-Sem)
9436
9437 N_Signed_Integer_Type_Definition =>
9438 (1 => True, -- Low_Bound (Node1)
9439 2 => True, -- High_Bound (Node2)
9440 3 => False, -- unused
9441 4 => False, -- unused
9442 5 => False), -- unused
9443
9444 N_Modular_Type_Definition =>
9445 (1 => False, -- unused
9446 2 => False, -- unused
9447 3 => True, -- Expression (Node3)
9448 4 => False, -- unused
9449 5 => False), -- unused
9450
9451 N_Floating_Point_Definition =>
9452 (1 => False, -- unused
9453 2 => True, -- Digits_Expression (Node2)
9454 3 => False, -- unused
9455 4 => True, -- Real_Range_Specification (Node4)
9456 5 => False), -- unused
9457
9458 N_Real_Range_Specification =>
9459 (1 => True, -- Low_Bound (Node1)
9460 2 => True, -- High_Bound (Node2)
9461 3 => False, -- unused
9462 4 => False, -- unused
9463 5 => False), -- unused
9464
9465 N_Ordinary_Fixed_Point_Definition =>
9466 (1 => False, -- unused
9467 2 => False, -- unused
9468 3 => True, -- Delta_Expression (Node3)
9469 4 => True, -- Real_Range_Specification (Node4)
9470 5 => False), -- unused
9471
9472 N_Decimal_Fixed_Point_Definition =>
9473 (1 => False, -- unused
9474 2 => True, -- Digits_Expression (Node2)
9475 3 => True, -- Delta_Expression (Node3)
9476 4 => True, -- Real_Range_Specification (Node4)
9477 5 => False), -- unused
9478
9479 N_Digits_Constraint =>
9480 (1 => False, -- unused
9481 2 => True, -- Digits_Expression (Node2)
9482 3 => False, -- unused
9483 4 => True, -- Range_Constraint (Node4)
9484 5 => False), -- unused
9485
9486 N_Unconstrained_Array_Definition =>
9487 (1 => False, -- unused
9488 2 => True, -- Subtype_Marks (List2)
9489 3 => False, -- unused
9490 4 => True, -- Component_Definition (Node4)
9491 5 => False), -- unused
9492
9493 N_Constrained_Array_Definition =>
9494 (1 => False, -- unused
9495 2 => True, -- Discrete_Subtype_Definitions (List2)
9496 3 => False, -- unused
9497 4 => True, -- Component_Definition (Node4)
9498 5 => False), -- unused
9499
9500 N_Component_Definition =>
9501 (1 => False, -- unused
9502 2 => False, -- unused
9503 3 => True, -- Access_Definition (Node3)
9504 4 => False, -- unused
9505 5 => True), -- Subtype_Indication (Node5)
9506
9507 N_Discriminant_Specification =>
9508 (1 => True, -- Defining_Identifier (Node1)
9509 2 => False, -- unused
9510 3 => True, -- Expression (Node3)
9511 4 => False, -- unused
9512 5 => True), -- Discriminant_Type (Node5)
9513
9514 N_Index_Or_Discriminant_Constraint =>
9515 (1 => True, -- Constraints (List1)
9516 2 => False, -- unused
9517 3 => False, -- unused
9518 4 => False, -- unused
9519 5 => False), -- unused
9520
9521 N_Discriminant_Association =>
9522 (1 => True, -- Selector_Names (List1)
9523 2 => False, -- unused
9524 3 => True, -- Expression (Node3)
9525 4 => False, -- unused
9526 5 => False), -- unused
9527
9528 N_Record_Definition =>
9529 (1 => True, -- Component_List (Node1)
9530 2 => True, -- Interface_List (List2)
9531 3 => False, -- unused
9532 4 => True, -- End_Label (Node4)
9533 5 => False), -- unused
9534
9535 N_Component_List =>
9536 (1 => False, -- unused
9537 2 => False, -- unused
9538 3 => True, -- Component_Items (List3)
9539 4 => True, -- Variant_Part (Node4)
9540 5 => False), -- unused
9541
9542 N_Component_Declaration =>
9543 (1 => True, -- Defining_Identifier (Node1)
9544 2 => False, -- unused
9545 3 => True, -- Expression (Node3)
9546 4 => True, -- Component_Definition (Node4)
9547 5 => False), -- unused
9548
9549 N_Variant_Part =>
9550 (1 => True, -- Variants (List1)
9551 2 => True, -- Name (Node2)
9552 3 => False, -- unused
9553 4 => False, -- unused
9554 5 => False), -- unused
9555
9556 N_Variant =>
9557 (1 => True, -- Component_List (Node1)
9558 2 => False, -- Enclosing_Variant (Node2-Sem)
9559 3 => False, -- Present_Expr (Uint3-Sem)
9560 4 => True, -- Discrete_Choices (List4)
9561 5 => False), -- Dcheck_Function (Node5-Sem)
9562
9563 N_Others_Choice =>
9564 (1 => False, -- Others_Discrete_Choices (List1-Sem)
9565 2 => False, -- unused
9566 3 => False, -- unused
9567 4 => False, -- unused
9568 5 => False), -- unused
9569
9570 N_Access_To_Object_Definition =>
9571 (1 => False, -- unused
9572 2 => False, -- unused
9573 3 => False, -- unused
9574 4 => False, -- unused
9575 5 => True), -- Subtype_Indication (Node5)
9576
9577 N_Access_Function_Definition =>
9578 (1 => False, -- unused
9579 2 => False, -- unused
9580 3 => True, -- Parameter_Specifications (List3)
9581 4 => True, -- Result_Definition (Node4)
9582 5 => False), -- unused
9583
9584 N_Access_Procedure_Definition =>
9585 (1 => False, -- unused
9586 2 => False, -- unused
9587 3 => True, -- Parameter_Specifications (List3)
9588 4 => False, -- unused
9589 5 => False), -- unused
9590
9591 N_Access_Definition =>
9592 (1 => False, -- unused
9593 2 => False, -- unused
9594 3 => True, -- Access_To_Subprogram_Definition (Node3)
9595 4 => True, -- Subtype_Mark (Node4)
9596 5 => False), -- unused
9597
9598 N_Incomplete_Type_Declaration =>
9599 (1 => True, -- Defining_Identifier (Node1)
9600 2 => False, -- unused
9601 3 => False, -- unused
9602 4 => True, -- Discriminant_Specifications (List4)
9603 5 => False), -- unused
9604
9605 N_Explicit_Dereference =>
9606 (1 => False, -- unused
9607 2 => False, -- unused
9608 3 => True, -- Prefix (Node3)
9609 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
9610 5 => False), -- Etype (Node5-Sem)
9611
9612 N_Indexed_Component =>
9613 (1 => True, -- Expressions (List1)
9614 2 => False, -- unused
9615 3 => True, -- Prefix (Node3)
9616 4 => False, -- unused
9617 5 => False), -- Etype (Node5-Sem)
9618
9619 N_Slice =>
9620 (1 => False, -- unused
9621 2 => False, -- unused
9622 3 => True, -- Prefix (Node3)
9623 4 => True, -- Discrete_Range (Node4)
9624 5 => False), -- Etype (Node5-Sem)
9625
9626 N_Selected_Component =>
9627 (1 => False, -- unused
9628 2 => True, -- Selector_Name (Node2)
9629 3 => True, -- Prefix (Node3)
9630 4 => False, -- unused
9631 5 => False), -- Etype (Node5-Sem)
9632
9633 N_Attribute_Reference =>
9634 (1 => True, -- Expressions (List1)
9635 2 => True, -- Attribute_Name (Name2)
9636 3 => True, -- Prefix (Node3)
9637 4 => False, -- Entity (Node4-Sem)
9638 5 => False), -- Etype (Node5-Sem)
9639
9640 N_Aggregate =>
9641 (1 => True, -- Expressions (List1)
9642 2 => True, -- Component_Associations (List2)
9643 3 => False, -- Aggregate_Bounds (Node3-Sem)
9644 4 => False, -- unused
9645 5 => False), -- Etype (Node5-Sem)
9646
9647 N_Component_Association =>
9648 (1 => True, -- Choices (List1)
9649 2 => False, -- Loop_Actions (List2-Sem)
9650 3 => True, -- Expression (Node3)
9651 4 => False, -- unused
9652 5 => False), -- unused
9653
9654 N_Extension_Aggregate =>
9655 (1 => True, -- Expressions (List1)
9656 2 => True, -- Component_Associations (List2)
9657 3 => True, -- Ancestor_Part (Node3)
9658 4 => False, -- unused
9659 5 => False), -- Etype (Node5-Sem)
9660
9661 N_Null =>
9662 (1 => False, -- unused
9663 2 => False, -- unused
9664 3 => False, -- unused
9665 4 => False, -- unused
9666 5 => False), -- Etype (Node5-Sem)
9667
9668 N_And_Then =>
9669 (1 => False, -- Actions (List1-Sem)
9670 2 => True, -- Left_Opnd (Node2)
9671 3 => True, -- Right_Opnd (Node3)
9672 4 => False, -- unused
9673 5 => False), -- Etype (Node5-Sem)
9674
9675 N_Or_Else =>
9676 (1 => False, -- Actions (List1-Sem)
9677 2 => True, -- Left_Opnd (Node2)
9678 3 => True, -- Right_Opnd (Node3)
9679 4 => False, -- unused
9680 5 => False), -- Etype (Node5-Sem)
9681
9682 N_In =>
9683 (1 => False, -- unused
9684 2 => True, -- Left_Opnd (Node2)
9685 3 => True, -- Right_Opnd (Node3)
9686 4 => False, -- unused
9687 5 => False), -- Etype (Node5-Sem)
9688
9689 N_Not_In =>
9690 (1 => False, -- unused
9691 2 => True, -- Left_Opnd (Node2)
9692 3 => True, -- Right_Opnd (Node3)
9693 4 => False, -- unused
9694 5 => False), -- Etype (Node5-Sem)
9695
9696 N_Op_And =>
9697 (1 => True, -- Chars (Name1)
9698 2 => True, -- Left_Opnd (Node2)
9699 3 => True, -- Right_Opnd (Node3)
9700 4 => False, -- Entity (Node4-Sem)
9701 5 => False), -- Etype (Node5-Sem)
9702
9703 N_Op_Or =>
9704 (1 => True, -- Chars (Name1)
9705 2 => True, -- Left_Opnd (Node2)
9706 3 => True, -- Right_Opnd (Node3)
9707 4 => False, -- Entity (Node4-Sem)
9708 5 => False), -- Etype (Node5-Sem)
9709
9710 N_Op_Xor =>
9711 (1 => True, -- Chars (Name1)
9712 2 => True, -- Left_Opnd (Node2)
9713 3 => True, -- Right_Opnd (Node3)
9714 4 => False, -- Entity (Node4-Sem)
9715 5 => False), -- Etype (Node5-Sem)
9716
9717 N_Op_Eq =>
9718 (1 => True, -- Chars (Name1)
9719 2 => True, -- Left_Opnd (Node2)
9720 3 => True, -- Right_Opnd (Node3)
9721 4 => False, -- Entity (Node4-Sem)
9722 5 => False), -- Etype (Node5-Sem)
9723
9724 N_Op_Ne =>
9725 (1 => True, -- Chars (Name1)
9726 2 => True, -- Left_Opnd (Node2)
9727 3 => True, -- Right_Opnd (Node3)
9728 4 => False, -- Entity (Node4-Sem)
9729 5 => False), -- Etype (Node5-Sem)
9730
9731 N_Op_Lt =>
9732 (1 => True, -- Chars (Name1)
9733 2 => True, -- Left_Opnd (Node2)
9734 3 => True, -- Right_Opnd (Node3)
9735 4 => False, -- Entity (Node4-Sem)
9736 5 => False), -- Etype (Node5-Sem)
9737
9738 N_Op_Le =>
9739 (1 => True, -- Chars (Name1)
9740 2 => True, -- Left_Opnd (Node2)
9741 3 => True, -- Right_Opnd (Node3)
9742 4 => False, -- Entity (Node4-Sem)
9743 5 => False), -- Etype (Node5-Sem)
9744
9745 N_Op_Gt =>
9746 (1 => True, -- Chars (Name1)
9747 2 => True, -- Left_Opnd (Node2)
9748 3 => True, -- Right_Opnd (Node3)
9749 4 => False, -- Entity (Node4-Sem)
9750 5 => False), -- Etype (Node5-Sem)
9751
9752 N_Op_Ge =>
9753 (1 => True, -- Chars (Name1)
9754 2 => True, -- Left_Opnd (Node2)
9755 3 => True, -- Right_Opnd (Node3)
9756 4 => False, -- Entity (Node4-Sem)
9757 5 => False), -- Etype (Node5-Sem)
9758
9759 N_Op_Add =>
9760 (1 => True, -- Chars (Name1)
9761 2 => True, -- Left_Opnd (Node2)
9762 3 => True, -- Right_Opnd (Node3)
9763 4 => False, -- Entity (Node4-Sem)
9764 5 => False), -- Etype (Node5-Sem)
9765
9766 N_Op_Subtract =>
9767 (1 => True, -- Chars (Name1)
9768 2 => True, -- Left_Opnd (Node2)
9769 3 => True, -- Right_Opnd (Node3)
9770 4 => False, -- Entity (Node4-Sem)
9771 5 => False), -- Etype (Node5-Sem)
9772
9773 N_Op_Concat =>
9774 (1 => True, -- Chars (Name1)
9775 2 => True, -- Left_Opnd (Node2)
9776 3 => True, -- Right_Opnd (Node3)
9777 4 => False, -- Entity (Node4-Sem)
9778 5 => False), -- Etype (Node5-Sem)
9779
9780 N_Op_Multiply =>
9781 (1 => True, -- Chars (Name1)
9782 2 => True, -- Left_Opnd (Node2)
9783 3 => True, -- Right_Opnd (Node3)
9784 4 => False, -- Entity (Node4-Sem)
9785 5 => False), -- Etype (Node5-Sem)
9786
9787 N_Op_Divide =>
9788 (1 => True, -- Chars (Name1)
9789 2 => True, -- Left_Opnd (Node2)
9790 3 => True, -- Right_Opnd (Node3)
9791 4 => False, -- Entity (Node4-Sem)
9792 5 => False), -- Etype (Node5-Sem)
9793
9794 N_Op_Mod =>
9795 (1 => True, -- Chars (Name1)
9796 2 => True, -- Left_Opnd (Node2)
9797 3 => True, -- Right_Opnd (Node3)
9798 4 => False, -- Entity (Node4-Sem)
9799 5 => False), -- Etype (Node5-Sem)
9800
9801 N_Op_Rem =>
9802 (1 => True, -- Chars (Name1)
9803 2 => True, -- Left_Opnd (Node2)
9804 3 => True, -- Right_Opnd (Node3)
9805 4 => False, -- Entity (Node4-Sem)
9806 5 => False), -- Etype (Node5-Sem)
9807
9808 N_Op_Expon =>
9809 (1 => True, -- Chars (Name1)
9810 2 => True, -- Left_Opnd (Node2)
9811 3 => True, -- Right_Opnd (Node3)
9812 4 => False, -- Entity (Node4-Sem)
9813 5 => False), -- Etype (Node5-Sem)
9814
9815 N_Op_Plus =>
9816 (1 => True, -- Chars (Name1)
9817 2 => False, -- unused
9818 3 => True, -- Right_Opnd (Node3)
9819 4 => False, -- Entity (Node4-Sem)
9820 5 => False), -- Etype (Node5-Sem)
9821
9822 N_Op_Minus =>
9823 (1 => True, -- Chars (Name1)
9824 2 => False, -- unused
9825 3 => True, -- Right_Opnd (Node3)
9826 4 => False, -- Entity (Node4-Sem)
9827 5 => False), -- Etype (Node5-Sem)
9828
9829 N_Op_Abs =>
9830 (1 => True, -- Chars (Name1)
9831 2 => False, -- unused
9832 3 => True, -- Right_Opnd (Node3)
9833 4 => False, -- Entity (Node4-Sem)
9834 5 => False), -- Etype (Node5-Sem)
9835
9836 N_Op_Not =>
9837 (1 => True, -- Chars (Name1)
9838 2 => False, -- unused
9839 3 => True, -- Right_Opnd (Node3)
9840 4 => False, -- Entity (Node4-Sem)
9841 5 => False), -- Etype (Node5-Sem)
9842
9843 N_Type_Conversion =>
9844 (1 => False, -- unused
9845 2 => False, -- unused
9846 3 => True, -- Expression (Node3)
9847 4 => True, -- Subtype_Mark (Node4)
9848 5 => False), -- Etype (Node5-Sem)
9849
9850 N_Qualified_Expression =>
9851 (1 => False, -- unused
9852 2 => False, -- unused
9853 3 => True, -- Expression (Node3)
9854 4 => True, -- Subtype_Mark (Node4)
9855 5 => False), -- Etype (Node5-Sem)
9856
9857 N_Allocator =>
9858 (1 => False, -- Storage_Pool (Node1-Sem)
9859 2 => False, -- Procedure_To_Call (Node2-Sem)
9860 3 => True, -- Expression (Node3)
9861 4 => False, -- Coextensions (Elist4-Sem)
9862 5 => False), -- Etype (Node5-Sem)
9863
9864 N_Null_Statement =>
9865 (1 => False, -- unused
9866 2 => False, -- unused
9867 3 => False, -- unused
9868 4 => False, -- unused
9869 5 => False), -- unused
9870
9871 N_Label =>
9872 (1 => True, -- Identifier (Node1)
9873 2 => False, -- unused
9874 3 => False, -- unused
9875 4 => False, -- unused
9876 5 => False), -- unused
9877
9878 N_Assignment_Statement =>
9879 (1 => False, -- unused
9880 2 => True, -- Name (Node2)
9881 3 => True, -- Expression (Node3)
9882 4 => False, -- unused
9883 5 => False), -- unused
9884
9885 N_If_Statement =>
9886 (1 => True, -- Condition (Node1)
9887 2 => True, -- Then_Statements (List2)
9888 3 => True, -- Elsif_Parts (List3)
9889 4 => True, -- Else_Statements (List4)
9890 5 => True), -- End_Span (Uint5)
9891
9892 N_Elsif_Part =>
9893 (1 => True, -- Condition (Node1)
9894 2 => True, -- Then_Statements (List2)
9895 3 => False, -- Condition_Actions (List3-Sem)
9896 4 => False, -- unused
9897 5 => False), -- unused
9898
9899 N_Case_Statement =>
9900 (1 => False, -- unused
9901 2 => False, -- unused
9902 3 => True, -- Expression (Node3)
9903 4 => True, -- Alternatives (List4)
9904 5 => True), -- End_Span (Uint5)
9905
9906 N_Case_Statement_Alternative =>
9907 (1 => False, -- unused
9908 2 => False, -- unused
9909 3 => True, -- Statements (List3)
9910 4 => True, -- Discrete_Choices (List4)
9911 5 => False), -- unused
9912
9913 N_Loop_Statement =>
9914 (1 => True, -- Identifier (Node1)
9915 2 => True, -- Iteration_Scheme (Node2)
9916 3 => True, -- Statements (List3)
9917 4 => True, -- End_Label (Node4)
9918 5 => False), -- unused
9919
9920 N_Iteration_Scheme =>
9921 (1 => True, -- Condition (Node1)
9922 2 => False, -- unused
9923 3 => False, -- Condition_Actions (List3-Sem)
9924 4 => True, -- Loop_Parameter_Specification (Node4)
9925 5 => False), -- unused
9926
9927 N_Loop_Parameter_Specification =>
9928 (1 => True, -- Defining_Identifier (Node1)
9929 2 => False, -- unused
9930 3 => False, -- unused
9931 4 => True, -- Discrete_Subtype_Definition (Node4)
9932 5 => False), -- unused
9933
9934 N_Block_Statement =>
9935 (1 => True, -- Identifier (Node1)
9936 2 => True, -- Declarations (List2)
9937 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9938 4 => True, -- Handled_Statement_Sequence (Node4)
9939 5 => False), -- unused
9940
9941 N_Exit_Statement =>
9942 (1 => True, -- Condition (Node1)
9943 2 => True, -- Name (Node2)
9944 3 => False, -- unused
9945 4 => False, -- unused
9946 5 => False), -- unused
9947
9948 N_Goto_Statement =>
9949 (1 => False, -- unused
9950 2 => True, -- Name (Node2)
9951 3 => False, -- unused
9952 4 => False, -- unused
9953 5 => False), -- unused
9954
9955 N_Subprogram_Declaration =>
9956 (1 => True, -- Specification (Node1)
9957 2 => False, -- unused
9958 3 => False, -- Body_To_Inline (Node3-Sem)
9959 4 => False, -- Parent_Spec (Node4-Sem)
9960 5 => False), -- Corresponding_Body (Node5-Sem)
9961
9962 N_Abstract_Subprogram_Declaration =>
9963 (1 => True, -- Specification (Node1)
9964 2 => False, -- unused
9965 3 => False, -- unused
9966 4 => False, -- unused
9967 5 => False), -- unused
9968
9969 N_Function_Specification =>
9970 (1 => True, -- Defining_Unit_Name (Node1)
9971 2 => False, -- Elaboration_Boolean (Node2-Sem)
9972 3 => True, -- Parameter_Specifications (List3)
9973 4 => True, -- Result_Definition (Node4)
9974 5 => False), -- Generic_Parent (Node5-Sem)
9975
9976 N_Procedure_Specification =>
9977 (1 => True, -- Defining_Unit_Name (Node1)
9978 2 => False, -- Elaboration_Boolean (Node2-Sem)
9979 3 => True, -- Parameter_Specifications (List3)
9980 4 => False, -- unused
9981 5 => False), -- Generic_Parent (Node5-Sem)
9982
9983 N_Designator =>
9984 (1 => True, -- Identifier (Node1)
9985 2 => True, -- Name (Node2)
9986 3 => False, -- unused
9987 4 => False, -- unused
9988 5 => False), -- unused
9989
9990 N_Defining_Program_Unit_Name =>
9991 (1 => True, -- Defining_Identifier (Node1)
9992 2 => True, -- Name (Node2)
9993 3 => False, -- unused
9994 4 => False, -- unused
9995 5 => False), -- unused
9996
9997 N_Operator_Symbol =>
9998 (1 => True, -- Chars (Name1)
9999 2 => False, -- unused
10000 3 => True, -- Strval (Str3)
10001 4 => False, -- Entity (Node4-Sem)
10002 5 => False), -- Etype (Node5-Sem)
10003
10004 N_Defining_Operator_Symbol =>
10005 (1 => True, -- Chars (Name1)
10006 2 => False, -- Next_Entity (Node2-Sem)
10007 3 => False, -- Scope (Node3-Sem)
10008 4 => False, -- unused
10009 5 => False), -- Etype (Node5-Sem)
10010
10011 N_Parameter_Specification =>
10012 (1 => True, -- Defining_Identifier (Node1)
10013 2 => True, -- Parameter_Type (Node2)
10014 3 => True, -- Expression (Node3)
10015 4 => False, -- unused
10016 5 => False), -- Default_Expression (Node5-Sem)
10017
10018 N_Subprogram_Body =>
10019 (1 => True, -- Specification (Node1)
10020 2 => True, -- Declarations (List2)
10021 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10022 4 => True, -- Handled_Statement_Sequence (Node4)
10023 5 => False), -- Corresponding_Spec (Node5-Sem)
10024
10025 N_Procedure_Call_Statement =>
10026 (1 => False, -- Controlling_Argument (Node1-Sem)
10027 2 => True, -- Name (Node2)
10028 3 => True, -- Parameter_Associations (List3)
10029 4 => False, -- First_Named_Actual (Node4-Sem)
10030 5 => False), -- Etype (Node5-Sem)
10031
10032 N_Function_Call =>
10033 (1 => False, -- Controlling_Argument (Node1-Sem)
10034 2 => True, -- Name (Node2)
10035 3 => True, -- Parameter_Associations (List3)
10036 4 => False, -- First_Named_Actual (Node4-Sem)
10037 5 => False), -- Etype (Node5-Sem)
10038
10039 N_Parameter_Association =>
10040 (1 => False, -- unused
10041 2 => True, -- Selector_Name (Node2)
10042 3 => True, -- Explicit_Actual_Parameter (Node3)
10043 4 => False, -- Next_Named_Actual (Node4-Sem)
10044 5 => False), -- unused
10045
10046 N_Return_Statement =>
10047 (1 => False, -- Storage_Pool (Node1-Sem)
10048 2 => False, -- Procedure_To_Call (Node2-Sem)
10049 3 => True, -- Expression (Node3)
10050 4 => False, -- unused
10051 5 => False), -- Return_Statement_Entity (Node5-Sem)
10052
10053 N_Extended_Return_Statement =>
10054 (1 => False, -- Storage_Pool (Node1-Sem)
10055 2 => False, -- Procedure_To_Call (Node2-Sem)
10056 3 => True, -- Return_Object_Declarations (List3)
10057 4 => True, -- Handled_Statement_Sequence (Node4)
10058 5 => False), -- Return_Statement_Entity (Node5-Sem)
10059
10060 N_Package_Declaration =>
10061 (1 => True, -- Specification (Node1)
10062 2 => False, -- unused
10063 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10064 4 => False, -- Parent_Spec (Node4-Sem)
10065 5 => False), -- Corresponding_Body (Node5-Sem)
10066
10067 N_Package_Specification =>
10068 (1 => True, -- Defining_Unit_Name (Node1)
10069 2 => True, -- Visible_Declarations (List2)
10070 3 => True, -- Private_Declarations (List3)
10071 4 => True, -- End_Label (Node4)
10072 5 => False), -- Generic_Parent (Node5-Sem)
10073
10074 N_Package_Body =>
10075 (1 => True, -- Defining_Unit_Name (Node1)
10076 2 => True, -- Declarations (List2)
10077 3 => False, -- unused
10078 4 => True, -- Handled_Statement_Sequence (Node4)
10079 5 => False), -- Corresponding_Spec (Node5-Sem)
10080
10081 N_Private_Type_Declaration =>
10082 (1 => True, -- Defining_Identifier (Node1)
10083 2 => False, -- unused
10084 3 => False, -- unused
10085 4 => True, -- Discriminant_Specifications (List4)
10086 5 => False), -- unused
10087
10088 N_Private_Extension_Declaration =>
10089 (1 => True, -- Defining_Identifier (Node1)
10090 2 => True, -- Interface_List (List2)
10091 3 => False, -- unused
10092 4 => True, -- Discriminant_Specifications (List4)
10093 5 => True), -- Subtype_Indication (Node5)
10094
10095 N_Use_Package_Clause =>
10096 (1 => False, -- unused
10097 2 => True, -- Names (List2)
10098 3 => False, -- Next_Use_Clause (Node3-Sem)
10099 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10100 5 => False), -- unused
10101
10102 N_Use_Type_Clause =>
10103 (1 => False, -- unused
10104 2 => True, -- Subtype_Marks (List2)
10105 3 => False, -- Next_Use_Clause (Node3-Sem)
10106 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10107 5 => False), -- unused
10108
10109 N_Object_Renaming_Declaration =>
10110 (1 => True, -- Defining_Identifier (Node1)
10111 2 => True, -- Name (Node2)
10112 3 => True, -- Access_Definition (Node3)
10113 4 => True, -- Subtype_Mark (Node4)
10114 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10115
10116 N_Exception_Renaming_Declaration =>
10117 (1 => True, -- Defining_Identifier (Node1)
10118 2 => True, -- Name (Node2)
10119 3 => False, -- unused
10120 4 => False, -- unused
10121 5 => False), -- unused
10122
10123 N_Package_Renaming_Declaration =>
10124 (1 => True, -- Defining_Unit_Name (Node1)
10125 2 => True, -- Name (Node2)
10126 3 => False, -- unused
10127 4 => False, -- Parent_Spec (Node4-Sem)
10128 5 => False), -- unused
10129
10130 N_Subprogram_Renaming_Declaration =>
10131 (1 => True, -- Specification (Node1)
10132 2 => True, -- Name (Node2)
10133 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
10134 4 => False, -- Parent_Spec (Node4-Sem)
10135 5 => False), -- Corresponding_Spec (Node5-Sem)
10136
10137 N_Generic_Package_Renaming_Declaration =>
10138 (1 => True, -- Defining_Unit_Name (Node1)
10139 2 => True, -- Name (Node2)
10140 3 => False, -- unused
10141 4 => False, -- Parent_Spec (Node4-Sem)
10142 5 => False), -- unused
10143
10144 N_Generic_Procedure_Renaming_Declaration =>
10145 (1 => True, -- Defining_Unit_Name (Node1)
10146 2 => True, -- Name (Node2)
10147 3 => False, -- unused
10148 4 => False, -- Parent_Spec (Node4-Sem)
10149 5 => False), -- unused
10150
10151 N_Generic_Function_Renaming_Declaration =>
10152 (1 => True, -- Defining_Unit_Name (Node1)
10153 2 => True, -- Name (Node2)
10154 3 => False, -- unused
10155 4 => False, -- Parent_Spec (Node4-Sem)
10156 5 => False), -- unused
10157
10158 N_Task_Type_Declaration =>
10159 (1 => True, -- Defining_Identifier (Node1)
10160 2 => True, -- Interface_List (List2)
10161 3 => True, -- Task_Definition (Node3)
10162 4 => True, -- Discriminant_Specifications (List4)
10163 5 => False), -- Corresponding_Body (Node5-Sem)
10164
10165 N_Single_Task_Declaration =>
10166 (1 => True, -- Defining_Identifier (Node1)
10167 2 => True, -- Interface_List (List2)
10168 3 => True, -- Task_Definition (Node3)
10169 4 => False, -- unused
10170 5 => False), -- unused
10171
10172 N_Task_Definition =>
10173 (1 => False, -- unused
10174 2 => True, -- Visible_Declarations (List2)
10175 3 => True, -- Private_Declarations (List3)
10176 4 => True, -- End_Label (Node4)
10177 5 => False), -- unused
10178
10179 N_Task_Body =>
10180 (1 => True, -- Defining_Identifier (Node1)
10181 2 => True, -- Declarations (List2)
10182 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10183 4 => True, -- Handled_Statement_Sequence (Node4)
10184 5 => False), -- Corresponding_Spec (Node5-Sem)
10185
10186 N_Protected_Type_Declaration =>
10187 (1 => True, -- Defining_Identifier (Node1)
10188 2 => True, -- Interface_List (List2)
10189 3 => True, -- Protected_Definition (Node3)
10190 4 => True, -- Discriminant_Specifications (List4)
10191 5 => False), -- Corresponding_Body (Node5-Sem)
10192
10193 N_Single_Protected_Declaration =>
10194 (1 => True, -- Defining_Identifier (Node1)
10195 2 => True, -- Interface_List (List2)
10196 3 => True, -- Protected_Definition (Node3)
10197 4 => False, -- unused
10198 5 => False), -- unused
10199
10200 N_Protected_Definition =>
10201 (1 => False, -- unused
10202 2 => True, -- Visible_Declarations (List2)
10203 3 => True, -- Private_Declarations (List3)
10204 4 => True, -- End_Label (Node4)
10205 5 => False), -- unused
10206
10207 N_Protected_Body =>
10208 (1 => True, -- Defining_Identifier (Node1)
10209 2 => True, -- Declarations (List2)
10210 3 => False, -- unused
10211 4 => True, -- End_Label (Node4)
10212 5 => False), -- Corresponding_Spec (Node5-Sem)
10213
10214 N_Entry_Declaration =>
10215 (1 => True, -- Defining_Identifier (Node1)
10216 2 => False, -- unused
10217 3 => True, -- Parameter_Specifications (List3)
10218 4 => True, -- Discrete_Subtype_Definition (Node4)
10219 5 => False), -- Corresponding_Body (Node5-Sem)
10220
10221 N_Accept_Statement =>
10222 (1 => True, -- Entry_Direct_Name (Node1)
10223 2 => True, -- Declarations (List2)
10224 3 => True, -- Parameter_Specifications (List3)
10225 4 => True, -- Handled_Statement_Sequence (Node4)
10226 5 => True), -- Entry_Index (Node5)
10227
10228 N_Entry_Body =>
10229 (1 => True, -- Defining_Identifier (Node1)
10230 2 => True, -- Declarations (List2)
10231 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10232 4 => True, -- Handled_Statement_Sequence (Node4)
10233 5 => True), -- Entry_Body_Formal_Part (Node5)
10234
10235 N_Entry_Body_Formal_Part =>
10236 (1 => True, -- Condition (Node1)
10237 2 => False, -- unused
10238 3 => True, -- Parameter_Specifications (List3)
10239 4 => True, -- Entry_Index_Specification (Node4)
10240 5 => False), -- unused
10241
10242 N_Entry_Index_Specification =>
10243 (1 => True, -- Defining_Identifier (Node1)
10244 2 => False, -- unused
10245 3 => False, -- unused
10246 4 => True, -- Discrete_Subtype_Definition (Node4)
10247 5 => False), -- unused
10248
10249 N_Entry_Call_Statement =>
10250 (1 => False, -- unused
10251 2 => True, -- Name (Node2)
10252 3 => True, -- Parameter_Associations (List3)
10253 4 => False, -- First_Named_Actual (Node4-Sem)
10254 5 => False), -- unused
10255
10256 N_Requeue_Statement =>
10257 (1 => False, -- unused
10258 2 => True, -- Name (Node2)
10259 3 => False, -- unused
10260 4 => False, -- unused
10261 5 => False), -- unused
10262
10263 N_Delay_Until_Statement =>
10264 (1 => False, -- unused
10265 2 => False, -- unused
10266 3 => True, -- Expression (Node3)
10267 4 => False, -- unused
10268 5 => False), -- unused
10269
10270 N_Delay_Relative_Statement =>
10271 (1 => False, -- unused
10272 2 => False, -- unused
10273 3 => True, -- Expression (Node3)
10274 4 => False, -- unused
10275 5 => False), -- unused
10276
10277 N_Selective_Accept =>
10278 (1 => True, -- Select_Alternatives (List1)
10279 2 => False, -- unused
10280 3 => False, -- unused
10281 4 => True, -- Else_Statements (List4)
10282 5 => False), -- unused
10283
10284 N_Accept_Alternative =>
10285 (1 => True, -- Condition (Node1)
10286 2 => True, -- Accept_Statement (Node2)
10287 3 => True, -- Statements (List3)
10288 4 => True, -- Pragmas_Before (List4)
10289 5 => False), -- Accept_Handler_Records (List5-Sem)
10290
10291 N_Delay_Alternative =>
10292 (1 => True, -- Condition (Node1)
10293 2 => True, -- Delay_Statement (Node2)
10294 3 => True, -- Statements (List3)
10295 4 => True, -- Pragmas_Before (List4)
10296 5 => False), -- unused
10297
10298 N_Terminate_Alternative =>
10299 (1 => True, -- Condition (Node1)
10300 2 => False, -- unused
10301 3 => False, -- unused
10302 4 => True, -- Pragmas_Before (List4)
10303 5 => True), -- Pragmas_After (List5)
10304
10305 N_Timed_Entry_Call =>
10306 (1 => True, -- Entry_Call_Alternative (Node1)
10307 2 => False, -- unused
10308 3 => False, -- unused
10309 4 => True, -- Delay_Alternative (Node4)
10310 5 => False), -- unused
10311
10312 N_Entry_Call_Alternative =>
10313 (1 => True, -- Entry_Call_Statement (Node1)
10314 2 => False, -- unused
10315 3 => True, -- Statements (List3)
10316 4 => True, -- Pragmas_Before (List4)
10317 5 => False), -- unused
10318
10319 N_Conditional_Entry_Call =>
10320 (1 => True, -- Entry_Call_Alternative (Node1)
10321 2 => False, -- unused
10322 3 => False, -- unused
10323 4 => True, -- Else_Statements (List4)
10324 5 => False), -- unused
10325
10326 N_Asynchronous_Select =>
10327 (1 => True, -- Triggering_Alternative (Node1)
10328 2 => True, -- Abortable_Part (Node2)
10329 3 => False, -- unused
10330 4 => False, -- unused
10331 5 => False), -- unused
10332
10333 N_Triggering_Alternative =>
10334 (1 => True, -- Triggering_Statement (Node1)
10335 2 => False, -- unused
10336 3 => True, -- Statements (List3)
10337 4 => True, -- Pragmas_Before (List4)
10338 5 => False), -- unused
10339
10340 N_Abortable_Part =>
10341 (1 => False, -- unused
10342 2 => False, -- unused
10343 3 => True, -- Statements (List3)
10344 4 => False, -- unused
10345 5 => False), -- unused
10346
10347 N_Abort_Statement =>
10348 (1 => False, -- unused
10349 2 => True, -- Names (List2)
10350 3 => False, -- unused
10351 4 => False, -- unused
10352 5 => False), -- unused
10353
10354 N_Compilation_Unit =>
10355 (1 => True, -- Context_Items (List1)
10356 2 => True, -- Unit (Node2)
10357 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
10358 4 => False, -- Library_Unit (Node4-Sem)
10359 5 => True), -- Aux_Decls_Node (Node5)
10360
10361 N_Compilation_Unit_Aux =>
10362 (1 => True, -- Actions (List1)
10363 2 => True, -- Declarations (List2)
10364 3 => False, -- unused
10365 4 => True, -- Config_Pragmas (List4)
10366 5 => True), -- Pragmas_After (List5)
10367
10368 N_With_Clause =>
10369 (1 => False, -- unused
10370 2 => True, -- Name (Node2)
10371 3 => False, -- unused
10372 4 => False, -- Library_Unit (Node4-Sem)
10373 5 => False), -- Corresponding_Spec (Node5-Sem)
10374
10375 N_Subprogram_Body_Stub =>
10376 (1 => True, -- Specification (Node1)
10377 2 => False, -- unused
10378 3 => False, -- unused
10379 4 => False, -- Library_Unit (Node4-Sem)
10380 5 => False), -- Corresponding_Body (Node5-Sem)
10381
10382 N_Package_Body_Stub =>
10383 (1 => True, -- Defining_Identifier (Node1)
10384 2 => False, -- unused
10385 3 => False, -- unused
10386 4 => False, -- Library_Unit (Node4-Sem)
10387 5 => False), -- Corresponding_Body (Node5-Sem)
10388
10389 N_Task_Body_Stub =>
10390 (1 => True, -- Defining_Identifier (Node1)
10391 2 => False, -- unused
10392 3 => False, -- unused
10393 4 => False, -- Library_Unit (Node4-Sem)
10394 5 => False), -- Corresponding_Body (Node5-Sem)
10395
10396 N_Protected_Body_Stub =>
10397 (1 => True, -- Defining_Identifier (Node1)
10398 2 => False, -- unused
10399 3 => False, -- unused
10400 4 => False, -- Library_Unit (Node4-Sem)
10401 5 => False), -- Corresponding_Body (Node5-Sem)
10402
10403 N_Subunit =>
10404 (1 => True, -- Proper_Body (Node1)
10405 2 => True, -- Name (Node2)
10406 3 => False, -- Corresponding_Stub (Node3-Sem)
10407 4 => False, -- unused
10408 5 => False), -- unused
10409
10410 N_Exception_Declaration =>
10411 (1 => True, -- Defining_Identifier (Node1)
10412 2 => False, -- unused
10413 3 => False, -- Expression (Node3-Sem)
10414 4 => False, -- unused
10415 5 => False), -- unused
10416
10417 N_Handled_Sequence_Of_Statements =>
10418 (1 => True, -- At_End_Proc (Node1)
10419 2 => False, -- First_Real_Statement (Node2-Sem)
10420 3 => True, -- Statements (List3)
10421 4 => True, -- End_Label (Node4)
10422 5 => True), -- Exception_Handlers (List5)
10423
10424 N_Exception_Handler =>
10425 (1 => False, -- Local_Raise_Statements (Elist1)
10426 2 => True, -- Choice_Parameter (Node2)
10427 3 => True, -- Statements (List3)
10428 4 => True, -- Exception_Choices (List4)
10429 5 => False), -- Exception_Label (Node5)
10430
10431 N_Raise_Statement =>
10432 (1 => False, -- unused
10433 2 => True, -- Name (Node2)
10434 3 => True, -- Expression (Node3)
10435 4 => False, -- unused
10436 5 => False), -- unused
10437
10438 N_Generic_Subprogram_Declaration =>
10439 (1 => True, -- Specification (Node1)
10440 2 => True, -- Generic_Formal_Declarations (List2)
10441 3 => False, -- unused
10442 4 => False, -- Parent_Spec (Node4-Sem)
10443 5 => False), -- Corresponding_Body (Node5-Sem)
10444
10445 N_Generic_Package_Declaration =>
10446 (1 => True, -- Specification (Node1)
10447 2 => True, -- Generic_Formal_Declarations (List2)
10448 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10449 4 => False, -- Parent_Spec (Node4-Sem)
10450 5 => False), -- Corresponding_Body (Node5-Sem)
10451
10452 N_Package_Instantiation =>
10453 (1 => True, -- Defining_Unit_Name (Node1)
10454 2 => True, -- Name (Node2)
10455 3 => True, -- Generic_Associations (List3)
10456 4 => False, -- Parent_Spec (Node4-Sem)
10457 5 => False), -- Instance_Spec (Node5-Sem)
10458
10459 N_Procedure_Instantiation =>
10460 (1 => True, -- Defining_Unit_Name (Node1)
10461 2 => True, -- Name (Node2)
10462 3 => True, -- Generic_Associations (List3)
10463 4 => False, -- Parent_Spec (Node4-Sem)
10464 5 => False), -- Instance_Spec (Node5-Sem)
10465
10466 N_Function_Instantiation =>
10467 (1 => True, -- Defining_Unit_Name (Node1)
10468 2 => True, -- Name (Node2)
10469 3 => True, -- Generic_Associations (List3)
10470 4 => False, -- Parent_Spec (Node4-Sem)
10471 5 => False), -- Instance_Spec (Node5-Sem)
10472
10473 N_Generic_Association =>
10474 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
10475 2 => True, -- Selector_Name (Node2)
10476 3 => False, -- unused
10477 4 => False, -- unused
10478 5 => False), -- unused
10479
10480 N_Formal_Object_Declaration =>
10481 (1 => True, -- Defining_Identifier (Node1)
10482 2 => False, -- unused
10483 3 => True, -- Access_Definition (Node3)
10484 4 => True, -- Subtype_Mark (Node4)
10485 5 => True), -- Default_Expression (Node5)
10486
10487 N_Formal_Type_Declaration =>
10488 (1 => True, -- Defining_Identifier (Node1)
10489 2 => False, -- unused
10490 3 => True, -- Formal_Type_Definition (Node3)
10491 4 => True, -- Discriminant_Specifications (List4)
10492 5 => False), -- unused
10493
10494 N_Formal_Private_Type_Definition =>
10495 (1 => False, -- unused
10496 2 => False, -- unused
10497 3 => False, -- unused
10498 4 => False, -- unused
10499 5 => False), -- unused
10500
10501 N_Formal_Derived_Type_Definition =>
10502 (1 => False, -- unused
10503 2 => True, -- Interface_List (List2)
10504 3 => False, -- unused
10505 4 => True, -- Subtype_Mark (Node4)
10506 5 => False), -- unused
10507
10508 N_Formal_Discrete_Type_Definition =>
10509 (1 => False, -- unused
10510 2 => False, -- unused
10511 3 => False, -- unused
10512 4 => False, -- unused
10513 5 => False), -- unused
10514
10515 N_Formal_Signed_Integer_Type_Definition =>
10516 (1 => False, -- unused
10517 2 => False, -- unused
10518 3 => False, -- unused
10519 4 => False, -- unused
10520 5 => False), -- unused
10521
10522 N_Formal_Modular_Type_Definition =>
10523 (1 => False, -- unused
10524 2 => False, -- unused
10525 3 => False, -- unused
10526 4 => False, -- unused
10527 5 => False), -- unused
10528
10529 N_Formal_Floating_Point_Definition =>
10530 (1 => False, -- unused
10531 2 => False, -- unused
10532 3 => False, -- unused
10533 4 => False, -- unused
10534 5 => False), -- unused
10535
10536 N_Formal_Ordinary_Fixed_Point_Definition =>
10537 (1 => False, -- unused
10538 2 => False, -- unused
10539 3 => False, -- unused
10540 4 => False, -- unused
10541 5 => False), -- unused
10542
10543 N_Formal_Decimal_Fixed_Point_Definition =>
10544 (1 => False, -- unused
10545 2 => False, -- unused
10546 3 => False, -- unused
10547 4 => False, -- unused
10548 5 => False), -- unused
10549
10550 N_Formal_Concrete_Subprogram_Declaration =>
10551 (1 => True, -- Specification (Node1)
10552 2 => True, -- Default_Name (Node2)
10553 3 => False, -- unused
10554 4 => False, -- unused
10555 5 => False), -- unused
10556
10557 N_Formal_Abstract_Subprogram_Declaration =>
10558 (1 => True, -- Specification (Node1)
10559 2 => True, -- Default_Name (Node2)
10560 3 => False, -- unused
10561 4 => False, -- unused
10562 5 => False), -- unused
10563
10564 N_Formal_Package_Declaration =>
10565 (1 => True, -- Defining_Identifier (Node1)
10566 2 => True, -- Name (Node2)
10567 3 => True, -- Generic_Associations (List3)
10568 4 => False, -- unused
10569 5 => False), -- Instance_Spec (Node5-Sem)
10570
10571 N_Attribute_Definition_Clause =>
10572 (1 => True, -- Chars (Name1)
10573 2 => True, -- Name (Node2)
10574 3 => True, -- Expression (Node3)
10575 4 => False, -- unused
10576 5 => False), -- Next_Rep_Item (Node5-Sem)
10577
10578 N_Enumeration_Representation_Clause =>
10579 (1 => True, -- Identifier (Node1)
10580 2 => False, -- unused
10581 3 => True, -- Array_Aggregate (Node3)
10582 4 => False, -- unused
10583 5 => False), -- Next_Rep_Item (Node5-Sem)
10584
10585 N_Record_Representation_Clause =>
10586 (1 => True, -- Identifier (Node1)
10587 2 => True, -- Mod_Clause (Node2)
10588 3 => True, -- Component_Clauses (List3)
10589 4 => False, -- unused
10590 5 => False), -- Next_Rep_Item (Node5-Sem)
10591
10592 N_Component_Clause =>
10593 (1 => True, -- Component_Name (Node1)
10594 2 => True, -- Position (Node2)
10595 3 => True, -- First_Bit (Node3)
10596 4 => True, -- Last_Bit (Node4)
10597 5 => False), -- unused
10598
10599 N_Code_Statement =>
10600 (1 => False, -- unused
10601 2 => False, -- unused
10602 3 => True, -- Expression (Node3)
10603 4 => False, -- unused
10604 5 => False), -- unused
10605
10606 N_Op_Rotate_Left =>
10607 (1 => True, -- Chars (Name1)
10608 2 => True, -- Left_Opnd (Node2)
10609 3 => True, -- Right_Opnd (Node3)
10610 4 => False, -- Entity (Node4-Sem)
10611 5 => False), -- Etype (Node5-Sem)
10612
10613 N_Op_Rotate_Right =>
10614 (1 => True, -- Chars (Name1)
10615 2 => True, -- Left_Opnd (Node2)
10616 3 => True, -- Right_Opnd (Node3)
10617 4 => False, -- Entity (Node4-Sem)
10618 5 => False), -- Etype (Node5-Sem)
10619
10620 N_Op_Shift_Left =>
10621 (1 => True, -- Chars (Name1)
10622 2 => True, -- Left_Opnd (Node2)
10623 3 => True, -- Right_Opnd (Node3)
10624 4 => False, -- Entity (Node4-Sem)
10625 5 => False), -- Etype (Node5-Sem)
10626
10627 N_Op_Shift_Right_Arithmetic =>
10628 (1 => True, -- Chars (Name1)
10629 2 => True, -- Left_Opnd (Node2)
10630 3 => True, -- Right_Opnd (Node3)
10631 4 => False, -- Entity (Node4-Sem)
10632 5 => False), -- Etype (Node5-Sem)
10633
10634 N_Op_Shift_Right =>
10635 (1 => True, -- Chars (Name1)
10636 2 => True, -- Left_Opnd (Node2)
10637 3 => True, -- Right_Opnd (Node3)
10638 4 => False, -- Entity (Node4-Sem)
10639 5 => False), -- Etype (Node5-Sem)
10640
10641 N_Delta_Constraint =>
10642 (1 => False, -- unused
10643 2 => False, -- unused
10644 3 => True, -- Delta_Expression (Node3)
10645 4 => True, -- Range_Constraint (Node4)
10646 5 => False), -- unused
10647
10648 N_At_Clause =>
10649 (1 => True, -- Identifier (Node1)
10650 2 => False, -- unused
10651 3 => True, -- Expression (Node3)
10652 4 => False, -- unused
10653 5 => False), -- unused
10654
10655 N_Mod_Clause =>
10656 (1 => False, -- unused
10657 2 => False, -- unused
10658 3 => True, -- Expression (Node3)
10659 4 => True, -- Pragmas_Before (List4)
10660 5 => False), -- unused
10661
10662 N_Conditional_Expression =>
10663 (1 => True, -- Expressions (List1)
10664 2 => False, -- Then_Actions (List2-Sem)
10665 3 => False, -- Else_Actions (List3-Sem)
10666 4 => False, -- unused
10667 5 => False), -- Etype (Node5-Sem)
10668
10669 N_Expanded_Name =>
10670 (1 => True, -- Chars (Name1)
10671 2 => True, -- Selector_Name (Node2)
10672 3 => True, -- Prefix (Node3)
10673 4 => False, -- Entity (Node4-Sem)
10674 5 => False), -- Etype (Node5-Sem)
10675
10676 N_Free_Statement =>
10677 (1 => False, -- Storage_Pool (Node1-Sem)
10678 2 => False, -- Procedure_To_Call (Node2-Sem)
10679 3 => True, -- Expression (Node3)
10680 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10681 5 => False), -- unused
10682
10683 N_Freeze_Entity =>
10684 (1 => True, -- Actions (List1)
10685 2 => False, -- Access_Types_To_Process (Elist2-Sem)
10686 3 => False, -- TSS_Elist (Elist3-Sem)
10687 4 => False, -- Entity (Node4-Sem)
10688 5 => False), -- First_Subtype_Link (Node5-Sem)
10689
10690 N_Implicit_Label_Declaration =>
10691 (1 => True, -- Defining_Identifier (Node1)
10692 2 => False, -- Label_Construct (Node2-Sem)
10693 3 => False, -- unused
10694 4 => False, -- unused
10695 5 => False), -- unused
10696
10697 N_Itype_Reference =>
10698 (1 => False, -- Itype (Node1-Sem)
10699 2 => False, -- unused
10700 3 => False, -- unused
10701 4 => False, -- unused
10702 5 => False), -- unused
10703
10704 N_Raise_Constraint_Error =>
10705 (1 => True, -- Condition (Node1)
10706 2 => False, -- unused
10707 3 => True, -- Reason (Uint3)
10708 4 => False, -- unused
10709 5 => False), -- Etype (Node5-Sem)
10710
10711 N_Raise_Program_Error =>
10712 (1 => True, -- Condition (Node1)
10713 2 => False, -- unused
10714 3 => True, -- Reason (Uint3)
10715 4 => False, -- unused
10716 5 => False), -- Etype (Node5-Sem)
10717
10718 N_Raise_Storage_Error =>
10719 (1 => True, -- Condition (Node1)
10720 2 => False, -- unused
10721 3 => True, -- Reason (Uint3)
10722 4 => False, -- unused
10723 5 => False), -- Etype (Node5-Sem)
10724
10725 N_Push_Constraint_Error_Label =>
10726 (1 => False, -- unused
10727 2 => False, -- unused
10728 3 => False, -- unused
10729 4 => False, -- unused
10730 5 => False), -- unused
10731
10732 N_Push_Program_Error_Label =>
10733 (1 => False, -- Exception_Label
10734 2 => False, -- unused
10735 3 => False, -- unused
10736 4 => False, -- unused
10737 5 => False), -- Exception_Label
10738
10739 N_Push_Storage_Error_Label =>
10740 (1 => False, -- Exception_Label
10741 2 => False, -- unused
10742 3 => False, -- unused
10743 4 => False, -- unused
10744 5 => False), -- Exception_Label
10745
10746 N_Pop_Constraint_Error_Label =>
10747 (1 => False, -- unused
10748 2 => False, -- unused
10749 3 => False, -- unused
10750 4 => False, -- unused
10751 5 => False), -- unused
10752
10753 N_Pop_Program_Error_Label =>
10754 (1 => False, -- unused
10755 2 => False, -- unused
10756 3 => False, -- unused
10757 4 => False, -- unused
10758 5 => False), -- unused
10759
10760 N_Pop_Storage_Error_Label =>
10761 (1 => False, -- unused
10762 2 => False, -- unused
10763 3 => False, -- unused
10764 4 => False, -- unused
10765 5 => False), -- unused
10766
10767 N_Reference =>
10768 (1 => False, -- unused
10769 2 => False, -- unused
10770 3 => True, -- Prefix (Node3)
10771 4 => False, -- unused
10772 5 => False), -- Etype (Node5-Sem)
10773
10774 N_Subprogram_Info =>
10775 (1 => True, -- Identifier (Node1)
10776 2 => False, -- unused
10777 3 => False, -- unused
10778 4 => False, -- unused
10779 5 => False), -- Etype (Node5-Sem)
10780
10781 N_Unchecked_Expression =>
10782 (1 => False, -- unused
10783 2 => False, -- unused
10784 3 => True, -- Expression (Node3)
10785 4 => False, -- unused
10786 5 => False), -- Etype (Node5-Sem)
10787
10788 N_Unchecked_Type_Conversion =>
10789 (1 => False, -- unused
10790 2 => False, -- unused
10791 3 => True, -- Expression (Node3)
10792 4 => True, -- Subtype_Mark (Node4)
10793 5 => False), -- Etype (Node5-Sem)
10794
10795 N_Validate_Unchecked_Conversion =>
10796 (1 => False, -- Source_Type (Node1-Sem)
10797 2 => False, -- Target_Type (Node2-Sem)
10798 3 => False, -- unused
10799 4 => False, -- unused
10800 5 => False), -- unused
10801
10802 -- End of inserted output from makeisf program
10803
10804 -- Entries for Empty, Error and Unused. Even thought these have a Chars
10805 -- field for debugging purposes, they are not really syntactic fields, so
10806 -- we mark all fields as unused.
10807
10808 N_Empty =>
10809 (1 => False, -- unused
10810 2 => False, -- unused
10811 3 => False, -- unused
10812 4 => False, -- unused
10813 5 => False), -- unused
10814
10815 N_Error =>
10816 (1 => False, -- unused
10817 2 => False, -- unused
10818 3 => False, -- unused
10819 4 => False, -- unused
10820 5 => False), -- unused
10821
10822 N_Unused_At_Start =>
10823 (1 => False, -- unused
10824 2 => False, -- unused
10825 3 => False, -- unused
10826 4 => False, -- unused
10827 5 => False), -- unused
10828
10829 N_Unused_At_End =>
10830 (1 => False, -- unused
10831 2 => False, -- unused
10832 3 => False, -- unused
10833 4 => False, -- unused
10834 5 => False)); -- unused
10835
10836 --------------------
10837 -- Inline Pragmas --
10838 --------------------
10839
10840 pragma Inline (ABE_Is_Certain);
10841 pragma Inline (Abort_Present);
10842 pragma Inline (Abortable_Part);
10843 pragma Inline (Abstract_Present);
10844 pragma Inline (Accept_Handler_Records);
10845 pragma Inline (Accept_Statement);
10846 pragma Inline (Access_Definition);
10847 pragma Inline (Access_To_Subprogram_Definition);
10848 pragma Inline (Access_Types_To_Process);
10849 pragma Inline (Actions);
10850 pragma Inline (Activation_Chain_Entity);
10851 pragma Inline (Acts_As_Spec);
10852 pragma Inline (Actual_Designated_Subtype);
10853 pragma Inline (Address_Warning_Posted);
10854 pragma Inline (Aggregate_Bounds);
10855 pragma Inline (Aliased_Present);
10856 pragma Inline (All_Others);
10857 pragma Inline (All_Present);
10858 pragma Inline (Alternatives);
10859 pragma Inline (Ancestor_Part);
10860 pragma Inline (Array_Aggregate);
10861 pragma Inline (Assignment_OK);
10862 pragma Inline (Associated_Node);
10863 pragma Inline (At_End_Proc);
10864 pragma Inline (Attribute_Name);
10865 pragma Inline (Aux_Decls_Node);
10866 pragma Inline (Backwards_OK);
10867 pragma Inline (Bad_Is_Detected);
10868 pragma Inline (Body_To_Inline);
10869 pragma Inline (Body_Required);
10870 pragma Inline (By_Ref);
10871 pragma Inline (Box_Present);
10872 pragma Inline (Char_Literal_Value);
10873 pragma Inline (Chars);
10874 pragma Inline (Check_Address_Alignment);
10875 pragma Inline (Choice_Parameter);
10876 pragma Inline (Choices);
10877 pragma Inline (Coextensions);
10878 pragma Inline (Comes_From_Extended_Return_Statement);
10879 pragma Inline (Compile_Time_Known_Aggregate);
10880 pragma Inline (Component_Associations);
10881 pragma Inline (Component_Clauses);
10882 pragma Inline (Component_Definition);
10883 pragma Inline (Component_Items);
10884 pragma Inline (Component_List);
10885 pragma Inline (Component_Name);
10886 pragma Inline (Condition);
10887 pragma Inline (Condition_Actions);
10888 pragma Inline (Config_Pragmas);
10889 pragma Inline (Constant_Present);
10890 pragma Inline (Constraint);
10891 pragma Inline (Constraints);
10892 pragma Inline (Context_Installed);
10893 pragma Inline (Context_Items);
10894 pragma Inline (Controlling_Argument);
10895 pragma Inline (Conversion_OK);
10896 pragma Inline (Corresponding_Body);
10897 pragma Inline (Corresponding_Formal_Spec);
10898 pragma Inline (Corresponding_Generic_Association);
10899 pragma Inline (Corresponding_Integer_Value);
10900 pragma Inline (Corresponding_Spec);
10901 pragma Inline (Corresponding_Stub);
10902 pragma Inline (Dcheck_Function);
10903 pragma Inline (Debug_Statement);
10904 pragma Inline (Declarations);
10905 pragma Inline (Default_Expression);
10906 pragma Inline (Default_Name);
10907 pragma Inline (Defining_Identifier);
10908 pragma Inline (Defining_Unit_Name);
10909 pragma Inline (Delay_Alternative);
10910 pragma Inline (Delay_Statement);
10911 pragma Inline (Delta_Expression);
10912 pragma Inline (Digits_Expression);
10913 pragma Inline (Discr_Check_Funcs_Built);
10914 pragma Inline (Discrete_Choices);
10915 pragma Inline (Discrete_Range);
10916 pragma Inline (Discrete_Subtype_Definition);
10917 pragma Inline (Discrete_Subtype_Definitions);
10918 pragma Inline (Discriminant_Specifications);
10919 pragma Inline (Discriminant_Type);
10920 pragma Inline (Do_Accessibility_Check);
10921 pragma Inline (Do_Discriminant_Check);
10922 pragma Inline (Do_Length_Check);
10923 pragma Inline (Do_Division_Check);
10924 pragma Inline (Do_Overflow_Check);
10925 pragma Inline (Do_Range_Check);
10926 pragma Inline (Do_Storage_Check);
10927 pragma Inline (Do_Tag_Check);
10928 pragma Inline (Elaborate_Present);
10929 pragma Inline (Elaborate_All_Desirable);
10930 pragma Inline (Elaborate_All_Present);
10931 pragma Inline (Elaborate_Desirable);
10932 pragma Inline (Elaboration_Boolean);
10933 pragma Inline (Else_Actions);
10934 pragma Inline (Else_Statements);
10935 pragma Inline (Elsif_Parts);
10936 pragma Inline (Enclosing_Variant);
10937 pragma Inline (End_Label);
10938 pragma Inline (End_Span);
10939 pragma Inline (Entity);
10940 pragma Inline (Entity_Or_Associated_Node);
10941 pragma Inline (Entry_Body_Formal_Part);
10942 pragma Inline (Entry_Call_Alternative);
10943 pragma Inline (Entry_Call_Statement);
10944 pragma Inline (Entry_Direct_Name);
10945 pragma Inline (Entry_Index);
10946 pragma Inline (Entry_Index_Specification);
10947 pragma Inline (Etype);
10948 pragma Inline (Exception_Choices);
10949 pragma Inline (Exception_Handlers);
10950 pragma Inline (Exception_Junk);
10951 pragma Inline (Exception_Label);
10952 pragma Inline (Expansion_Delayed);
10953 pragma Inline (Explicit_Actual_Parameter);
10954 pragma Inline (Explicit_Generic_Actual_Parameter);
10955 pragma Inline (Expression);
10956 pragma Inline (Expressions);
10957 pragma Inline (First_Bit);
10958 pragma Inline (First_Inlined_Subprogram);
10959 pragma Inline (First_Name);
10960 pragma Inline (First_Named_Actual);
10961 pragma Inline (First_Real_Statement);
10962 pragma Inline (First_Subtype_Link);
10963 pragma Inline (Float_Truncate);
10964 pragma Inline (Formal_Type_Definition);
10965 pragma Inline (Forwards_OK);
10966 pragma Inline (From_At_End);
10967 pragma Inline (From_At_Mod);
10968 pragma Inline (From_Default);
10969 pragma Inline (Generic_Associations);
10970 pragma Inline (Generic_Formal_Declarations);
10971 pragma Inline (Generic_Parent);
10972 pragma Inline (Generic_Parent_Type);
10973 pragma Inline (Handled_Statement_Sequence);
10974 pragma Inline (Handler_List_Entry);
10975 pragma Inline (Has_Created_Identifier);
10976 pragma Inline (Has_Dynamic_Length_Check);
10977 pragma Inline (Has_Dynamic_Range_Check);
10978 pragma Inline (Has_Init_Expression);
10979 pragma Inline (Has_Local_Raise);
10980 pragma Inline (Has_Self_Reference);
10981 pragma Inline (Has_No_Elaboration_Code);
10982 pragma Inline (Has_Priority_Pragma);
10983 pragma Inline (Has_Private_View);
10984 pragma Inline (Has_Relative_Deadline_Pragma);
10985 pragma Inline (Has_Storage_Size_Pragma);
10986 pragma Inline (Has_Task_Info_Pragma);
10987 pragma Inline (Has_Task_Name_Pragma);
10988 pragma Inline (Has_Wide_Character);
10989 pragma Inline (Hidden_By_Use_Clause);
10990 pragma Inline (High_Bound);
10991 pragma Inline (Identifier);
10992 pragma Inline (Implicit_With);
10993 pragma Inline (Interface_List);
10994 pragma Inline (Interface_Present);
10995 pragma Inline (Includes_Infinities);
10996 pragma Inline (In_Present);
10997 pragma Inline (Instance_Spec);
10998 pragma Inline (Intval);
10999 pragma Inline (Is_Asynchronous_Call_Block);
11000 pragma Inline (Is_Component_Left_Opnd);
11001 pragma Inline (Is_Component_Right_Opnd);
11002 pragma Inline (Is_Controlling_Actual);
11003 pragma Inline (Is_Dynamic_Coextension);
11004 pragma Inline (Is_Entry_Barrier_Function);
11005 pragma Inline (Is_Expanded_Build_In_Place_Call);
11006 pragma Inline (Is_Folded_In_Parser);
11007 pragma Inline (Is_In_Discriminant_Check);
11008 pragma Inline (Is_Machine_Number);
11009 pragma Inline (Is_Null_Loop);
11010 pragma Inline (Is_Overloaded);
11011 pragma Inline (Is_Power_Of_2_For_Shift);
11012 pragma Inline (Is_Protected_Subprogram_Body);
11013 pragma Inline (Is_Static_Coextension);
11014 pragma Inline (Is_Static_Expression);
11015 pragma Inline (Is_Subprogram_Descriptor);
11016 pragma Inline (Is_Task_Allocation_Block);
11017 pragma Inline (Is_Task_Master);
11018 pragma Inline (Iteration_Scheme);
11019 pragma Inline (Itype);
11020 pragma Inline (Kill_Range_Check);
11021 pragma Inline (Last_Bit);
11022 pragma Inline (Last_Name);
11023 pragma Inline (Library_Unit);
11024 pragma Inline (Label_Construct);
11025 pragma Inline (Left_Opnd);
11026 pragma Inline (Limited_View_Installed);
11027 pragma Inline (Limited_Present);
11028 pragma Inline (Literals);
11029 pragma Inline (Local_Raise_Not_OK);
11030 pragma Inline (Local_Raise_Statements);
11031 pragma Inline (Loop_Actions);
11032 pragma Inline (Loop_Parameter_Specification);
11033 pragma Inline (Low_Bound);
11034 pragma Inline (Mod_Clause);
11035 pragma Inline (More_Ids);
11036 pragma Inline (Must_Be_Byte_Aligned);
11037 pragma Inline (Must_Not_Freeze);
11038 pragma Inline (Must_Not_Override);
11039 pragma Inline (Must_Override);
11040 pragma Inline (Name);
11041 pragma Inline (Names);
11042 pragma Inline (Next_Entity);
11043 pragma Inline (Next_Named_Actual);
11044 pragma Inline (Next_Pragma);
11045 pragma Inline (Next_Rep_Item);
11046 pragma Inline (Next_Use_Clause);
11047 pragma Inline (No_Ctrl_Actions);
11048 pragma Inline (No_Elaboration_Check);
11049 pragma Inline (No_Entities_Ref_In_Spec);
11050 pragma Inline (No_Initialization);
11051 pragma Inline (No_Truncation);
11052 pragma Inline (Null_Present);
11053 pragma Inline (Null_Exclusion_Present);
11054 pragma Inline (Null_Record_Present);
11055 pragma Inline (Object_Definition);
11056 pragma Inline (Original_Discriminant);
11057 pragma Inline (Original_Entity);
11058 pragma Inline (Others_Discrete_Choices);
11059 pragma Inline (Out_Present);
11060 pragma Inline (Parameter_Associations);
11061 pragma Inline (Parameter_Specifications);
11062 pragma Inline (Parameter_List_Truncated);
11063 pragma Inline (Parameter_Type);
11064 pragma Inline (Parent_Spec);
11065 pragma Inline (PPC_Enabled);
11066 pragma Inline (Position);
11067 pragma Inline (Pragma_Argument_Associations);
11068 pragma Inline (Pragma_Identifier);
11069 pragma Inline (Pragmas_After);
11070 pragma Inline (Pragmas_Before);
11071 pragma Inline (Prefix);
11072 pragma Inline (Present_Expr);
11073 pragma Inline (Prev_Ids);
11074 pragma Inline (Print_In_Hex);
11075 pragma Inline (Private_Declarations);
11076 pragma Inline (Private_Present);
11077 pragma Inline (Procedure_To_Call);
11078 pragma Inline (Proper_Body);
11079 pragma Inline (Protected_Definition);
11080 pragma Inline (Protected_Present);
11081 pragma Inline (Raises_Constraint_Error);
11082 pragma Inline (Range_Constraint);
11083 pragma Inline (Range_Expression);
11084 pragma Inline (Real_Range_Specification);
11085 pragma Inline (Realval);
11086 pragma Inline (Reason);
11087 pragma Inline (Record_Extension_Part);
11088 pragma Inline (Redundant_Use);
11089 pragma Inline (Renaming_Exception);
11090 pragma Inline (Result_Definition);
11091 pragma Inline (Return_Object_Declarations);
11092 pragma Inline (Return_Statement_Entity);
11093 pragma Inline (Reverse_Present);
11094 pragma Inline (Right_Opnd);
11095 pragma Inline (Rounded_Result);
11096 pragma Inline (Scope);
11097 pragma Inline (Select_Alternatives);
11098 pragma Inline (Selector_Name);
11099 pragma Inline (Selector_Names);
11100 pragma Inline (Shift_Count_OK);
11101 pragma Inline (Source_Type);
11102 pragma Inline (Specification);
11103 pragma Inline (Statements);
11104 pragma Inline (Static_Processing_OK);
11105 pragma Inline (Storage_Pool);
11106 pragma Inline (Strval);
11107 pragma Inline (Subtype_Indication);
11108 pragma Inline (Subtype_Mark);
11109 pragma Inline (Subtype_Marks);
11110 pragma Inline (Synchronized_Present);
11111 pragma Inline (Tagged_Present);
11112 pragma Inline (Target_Type);
11113 pragma Inline (Task_Definition);
11114 pragma Inline (Task_Present);
11115 pragma Inline (Then_Actions);
11116 pragma Inline (Then_Statements);
11117 pragma Inline (Triggering_Alternative);
11118 pragma Inline (Triggering_Statement);
11119 pragma Inline (Treat_Fixed_As_Integer);
11120 pragma Inline (TSS_Elist);
11121 pragma Inline (Type_Definition);
11122 pragma Inline (Unit);
11123 pragma Inline (Unknown_Discriminants_Present);
11124 pragma Inline (Unreferenced_In_Spec);
11125 pragma Inline (Variant_Part);
11126 pragma Inline (Variants);
11127 pragma Inline (Visible_Declarations);
11128 pragma Inline (Was_Originally_Stub);
11129 pragma Inline (Zero_Cost_Handling);
11130
11131 pragma Inline (Set_ABE_Is_Certain);
11132 pragma Inline (Set_Abort_Present);
11133 pragma Inline (Set_Abortable_Part);
11134 pragma Inline (Set_Abstract_Present);
11135 pragma Inline (Set_Accept_Handler_Records);
11136 pragma Inline (Set_Accept_Statement);
11137 pragma Inline (Set_Access_Definition);
11138 pragma Inline (Set_Access_To_Subprogram_Definition);
11139 pragma Inline (Set_Access_Types_To_Process);
11140 pragma Inline (Set_Actions);
11141 pragma Inline (Set_Activation_Chain_Entity);
11142 pragma Inline (Set_Acts_As_Spec);
11143 pragma Inline (Set_Actual_Designated_Subtype);
11144 pragma Inline (Set_Address_Warning_Posted);
11145 pragma Inline (Set_Aggregate_Bounds);
11146 pragma Inline (Set_Aliased_Present);
11147 pragma Inline (Set_All_Others);
11148 pragma Inline (Set_All_Present);
11149 pragma Inline (Set_Alternatives);
11150 pragma Inline (Set_Ancestor_Part);
11151 pragma Inline (Set_Array_Aggregate);
11152 pragma Inline (Set_Assignment_OK);
11153 pragma Inline (Set_Associated_Node);
11154 pragma Inline (Set_At_End_Proc);
11155 pragma Inline (Set_Attribute_Name);
11156 pragma Inline (Set_Aux_Decls_Node);
11157 pragma Inline (Set_Backwards_OK);
11158 pragma Inline (Set_Bad_Is_Detected);
11159 pragma Inline (Set_Body_To_Inline);
11160 pragma Inline (Set_Body_Required);
11161 pragma Inline (Set_By_Ref);
11162 pragma Inline (Set_Box_Present);
11163 pragma Inline (Set_Char_Literal_Value);
11164 pragma Inline (Set_Chars);
11165 pragma Inline (Set_Check_Address_Alignment);
11166 pragma Inline (Set_Choice_Parameter);
11167 pragma Inline (Set_Choices);
11168 pragma Inline (Set_Coextensions);
11169 pragma Inline (Set_Comes_From_Extended_Return_Statement);
11170 pragma Inline (Set_Compile_Time_Known_Aggregate);
11171 pragma Inline (Set_Component_Associations);
11172 pragma Inline (Set_Component_Clauses);
11173 pragma Inline (Set_Component_Definition);
11174 pragma Inline (Set_Component_Items);
11175 pragma Inline (Set_Component_List);
11176 pragma Inline (Set_Component_Name);
11177 pragma Inline (Set_Condition);
11178 pragma Inline (Set_Condition_Actions);
11179 pragma Inline (Set_Config_Pragmas);
11180 pragma Inline (Set_Constant_Present);
11181 pragma Inline (Set_Constraint);
11182 pragma Inline (Set_Constraints);
11183 pragma Inline (Set_Context_Installed);
11184 pragma Inline (Set_Context_Items);
11185 pragma Inline (Set_Controlling_Argument);
11186 pragma Inline (Set_Conversion_OK);
11187 pragma Inline (Set_Corresponding_Body);
11188 pragma Inline (Set_Corresponding_Formal_Spec);
11189 pragma Inline (Set_Corresponding_Generic_Association);
11190 pragma Inline (Set_Corresponding_Integer_Value);
11191 pragma Inline (Set_Corresponding_Spec);
11192 pragma Inline (Set_Corresponding_Stub);
11193 pragma Inline (Set_Dcheck_Function);
11194 pragma Inline (Set_Debug_Statement);
11195 pragma Inline (Set_Declarations);
11196 pragma Inline (Set_Default_Expression);
11197 pragma Inline (Set_Default_Name);
11198 pragma Inline (Set_Defining_Identifier);
11199 pragma Inline (Set_Defining_Unit_Name);
11200 pragma Inline (Set_Delay_Alternative);
11201 pragma Inline (Set_Delay_Statement);
11202 pragma Inline (Set_Delta_Expression);
11203 pragma Inline (Set_Digits_Expression);
11204 pragma Inline (Set_Discr_Check_Funcs_Built);
11205 pragma Inline (Set_Discrete_Choices);
11206 pragma Inline (Set_Discrete_Range);
11207 pragma Inline (Set_Discrete_Subtype_Definition);
11208 pragma Inline (Set_Discrete_Subtype_Definitions);
11209 pragma Inline (Set_Discriminant_Specifications);
11210 pragma Inline (Set_Discriminant_Type);
11211 pragma Inline (Set_Do_Accessibility_Check);
11212 pragma Inline (Set_Do_Discriminant_Check);
11213 pragma Inline (Set_Do_Length_Check);
11214 pragma Inline (Set_Do_Division_Check);
11215 pragma Inline (Set_Do_Overflow_Check);
11216 pragma Inline (Set_Do_Range_Check);
11217 pragma Inline (Set_Do_Storage_Check);
11218 pragma Inline (Set_Do_Tag_Check);
11219 pragma Inline (Set_Elaborate_Present);
11220 pragma Inline (Set_Elaborate_All_Desirable);
11221 pragma Inline (Set_Elaborate_All_Present);
11222 pragma Inline (Set_Elaborate_Desirable);
11223 pragma Inline (Set_Elaboration_Boolean);
11224 pragma Inline (Set_Else_Actions);
11225 pragma Inline (Set_Else_Statements);
11226 pragma Inline (Set_Elsif_Parts);
11227 pragma Inline (Set_Enclosing_Variant);
11228 pragma Inline (Set_End_Label);
11229 pragma Inline (Set_End_Span);
11230 pragma Inline (Set_Entity);
11231 pragma Inline (Set_Entry_Body_Formal_Part);
11232 pragma Inline (Set_Entry_Call_Alternative);
11233 pragma Inline (Set_Entry_Call_Statement);
11234 pragma Inline (Set_Entry_Direct_Name);
11235 pragma Inline (Set_Entry_Index);
11236 pragma Inline (Set_Entry_Index_Specification);
11237 pragma Inline (Set_Etype);
11238 pragma Inline (Set_Exception_Choices);
11239 pragma Inline (Set_Exception_Handlers);
11240 pragma Inline (Set_Exception_Junk);
11241 pragma Inline (Set_Exception_Label);
11242 pragma Inline (Set_Expansion_Delayed);
11243 pragma Inline (Set_Explicit_Actual_Parameter);
11244 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
11245 pragma Inline (Set_Expression);
11246 pragma Inline (Set_Expressions);
11247 pragma Inline (Set_First_Bit);
11248 pragma Inline (Set_First_Inlined_Subprogram);
11249 pragma Inline (Set_First_Name);
11250 pragma Inline (Set_First_Named_Actual);
11251 pragma Inline (Set_First_Real_Statement);
11252 pragma Inline (Set_First_Subtype_Link);
11253 pragma Inline (Set_Float_Truncate);
11254 pragma Inline (Set_Formal_Type_Definition);
11255 pragma Inline (Set_Forwards_OK);
11256 pragma Inline (Set_From_At_End);
11257 pragma Inline (Set_From_At_Mod);
11258 pragma Inline (Set_From_Default);
11259 pragma Inline (Set_Generic_Associations);
11260 pragma Inline (Set_Generic_Formal_Declarations);
11261 pragma Inline (Set_Generic_Parent);
11262 pragma Inline (Set_Generic_Parent_Type);
11263 pragma Inline (Set_Handled_Statement_Sequence);
11264 pragma Inline (Set_Handler_List_Entry);
11265 pragma Inline (Set_Has_Created_Identifier);
11266 pragma Inline (Set_Has_Dynamic_Length_Check);
11267 pragma Inline (Set_Has_Init_Expression);
11268 pragma Inline (Set_Has_Local_Raise);
11269 pragma Inline (Set_Has_Dynamic_Range_Check);
11270 pragma Inline (Set_Has_No_Elaboration_Code);
11271 pragma Inline (Set_Has_Priority_Pragma);
11272 pragma Inline (Set_Has_Private_View);
11273 pragma Inline (Set_Has_Relative_Deadline_Pragma);
11274 pragma Inline (Set_Has_Storage_Size_Pragma);
11275 pragma Inline (Set_Has_Task_Info_Pragma);
11276 pragma Inline (Set_Has_Task_Name_Pragma);
11277 pragma Inline (Set_Has_Wide_Character);
11278 pragma Inline (Set_Hidden_By_Use_Clause);
11279 pragma Inline (Set_High_Bound);
11280 pragma Inline (Set_Identifier);
11281 pragma Inline (Set_Implicit_With);
11282 pragma Inline (Set_Includes_Infinities);
11283 pragma Inline (Set_Interface_List);
11284 pragma Inline (Set_Interface_Present);
11285 pragma Inline (Set_In_Present);
11286 pragma Inline (Set_Instance_Spec);
11287 pragma Inline (Set_Intval);
11288 pragma Inline (Set_Is_Asynchronous_Call_Block);
11289 pragma Inline (Set_Is_Component_Left_Opnd);
11290 pragma Inline (Set_Is_Component_Right_Opnd);
11291 pragma Inline (Set_Is_Controlling_Actual);
11292 pragma Inline (Set_Is_Dynamic_Coextension);
11293 pragma Inline (Set_Is_Entry_Barrier_Function);
11294 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
11295 pragma Inline (Set_Is_Folded_In_Parser);
11296 pragma Inline (Set_Is_In_Discriminant_Check);
11297 pragma Inline (Set_Is_Machine_Number);
11298 pragma Inline (Set_Is_Null_Loop);
11299 pragma Inline (Set_Is_Overloaded);
11300 pragma Inline (Set_Is_Power_Of_2_For_Shift);
11301 pragma Inline (Set_Is_Protected_Subprogram_Body);
11302 pragma Inline (Set_Has_Self_Reference);
11303 pragma Inline (Set_Is_Static_Coextension);
11304 pragma Inline (Set_Is_Static_Expression);
11305 pragma Inline (Set_Is_Subprogram_Descriptor);
11306 pragma Inline (Set_Is_Task_Allocation_Block);
11307 pragma Inline (Set_Is_Task_Master);
11308 pragma Inline (Set_Iteration_Scheme);
11309 pragma Inline (Set_Itype);
11310 pragma Inline (Set_Kill_Range_Check);
11311 pragma Inline (Set_Last_Bit);
11312 pragma Inline (Set_Last_Name);
11313 pragma Inline (Set_Library_Unit);
11314 pragma Inline (Set_Label_Construct);
11315 pragma Inline (Set_Left_Opnd);
11316 pragma Inline (Set_Limited_View_Installed);
11317 pragma Inline (Set_Limited_Present);
11318 pragma Inline (Set_Literals);
11319 pragma Inline (Set_Local_Raise_Not_OK);
11320 pragma Inline (Set_Local_Raise_Statements);
11321 pragma Inline (Set_Loop_Actions);
11322 pragma Inline (Set_Loop_Parameter_Specification);
11323 pragma Inline (Set_Low_Bound);
11324 pragma Inline (Set_Mod_Clause);
11325 pragma Inline (Set_More_Ids);
11326 pragma Inline (Set_Must_Be_Byte_Aligned);
11327 pragma Inline (Set_Must_Not_Freeze);
11328 pragma Inline (Set_Must_Not_Override);
11329 pragma Inline (Set_Must_Override);
11330 pragma Inline (Set_Name);
11331 pragma Inline (Set_Names);
11332 pragma Inline (Set_Next_Entity);
11333 pragma Inline (Set_Next_Named_Actual);
11334 pragma Inline (Set_Next_Pragma);
11335 pragma Inline (Set_Next_Rep_Item);
11336 pragma Inline (Set_Next_Use_Clause);
11337 pragma Inline (Set_No_Ctrl_Actions);
11338 pragma Inline (Set_No_Elaboration_Check);
11339 pragma Inline (Set_No_Entities_Ref_In_Spec);
11340 pragma Inline (Set_No_Initialization);
11341 pragma Inline (Set_No_Truncation);
11342 pragma Inline (Set_Null_Present);
11343 pragma Inline (Set_Null_Exclusion_Present);
11344 pragma Inline (Set_Null_Record_Present);
11345 pragma Inline (Set_Object_Definition);
11346 pragma Inline (Set_Original_Discriminant);
11347 pragma Inline (Set_Original_Entity);
11348 pragma Inline (Set_Others_Discrete_Choices);
11349 pragma Inline (Set_Out_Present);
11350 pragma Inline (Set_Parameter_Associations);
11351 pragma Inline (Set_Parameter_Specifications);
11352 pragma Inline (Set_Parameter_List_Truncated);
11353 pragma Inline (Set_Parameter_Type);
11354 pragma Inline (Set_Parent_Spec);
11355 pragma Inline (Set_PPC_Enabled);
11356 pragma Inline (Set_Position);
11357 pragma Inline (Set_Pragma_Argument_Associations);
11358 pragma Inline (Set_Pragma_Identifier);
11359 pragma Inline (Set_Pragmas_After);
11360 pragma Inline (Set_Pragmas_Before);
11361 pragma Inline (Set_Prefix);
11362 pragma Inline (Set_Present_Expr);
11363 pragma Inline (Set_Prev_Ids);
11364 pragma Inline (Set_Print_In_Hex);
11365 pragma Inline (Set_Private_Declarations);
11366 pragma Inline (Set_Private_Present);
11367 pragma Inline (Set_Procedure_To_Call);
11368 pragma Inline (Set_Proper_Body);
11369 pragma Inline (Set_Protected_Definition);
11370 pragma Inline (Set_Protected_Present);
11371 pragma Inline (Set_Raises_Constraint_Error);
11372 pragma Inline (Set_Range_Constraint);
11373 pragma Inline (Set_Range_Expression);
11374 pragma Inline (Set_Real_Range_Specification);
11375 pragma Inline (Set_Realval);
11376 pragma Inline (Set_Reason);
11377 pragma Inline (Set_Record_Extension_Part);
11378 pragma Inline (Set_Redundant_Use);
11379 pragma Inline (Set_Renaming_Exception);
11380 pragma Inline (Set_Result_Definition);
11381 pragma Inline (Set_Return_Object_Declarations);
11382 pragma Inline (Set_Reverse_Present);
11383 pragma Inline (Set_Right_Opnd);
11384 pragma Inline (Set_Rounded_Result);
11385 pragma Inline (Set_Scope);
11386 pragma Inline (Set_Select_Alternatives);
11387 pragma Inline (Set_Selector_Name);
11388 pragma Inline (Set_Selector_Names);
11389 pragma Inline (Set_Shift_Count_OK);
11390 pragma Inline (Set_Source_Type);
11391 pragma Inline (Set_Specification);
11392 pragma Inline (Set_Statements);
11393 pragma Inline (Set_Static_Processing_OK);
11394 pragma Inline (Set_Storage_Pool);
11395 pragma Inline (Set_Strval);
11396 pragma Inline (Set_Subtype_Indication);
11397 pragma Inline (Set_Subtype_Mark);
11398 pragma Inline (Set_Subtype_Marks);
11399 pragma Inline (Set_Synchronized_Present);
11400 pragma Inline (Set_Tagged_Present);
11401 pragma Inline (Set_Target_Type);
11402 pragma Inline (Set_Task_Definition);
11403 pragma Inline (Set_Task_Present);
11404 pragma Inline (Set_Then_Actions);
11405 pragma Inline (Set_Then_Statements);
11406 pragma Inline (Set_Triggering_Alternative);
11407 pragma Inline (Set_Triggering_Statement);
11408 pragma Inline (Set_Treat_Fixed_As_Integer);
11409 pragma Inline (Set_TSS_Elist);
11410 pragma Inline (Set_Type_Definition);
11411 pragma Inline (Set_Unit);
11412 pragma Inline (Set_Unknown_Discriminants_Present);
11413 pragma Inline (Set_Unreferenced_In_Spec);
11414 pragma Inline (Set_Variant_Part);
11415 pragma Inline (Set_Variants);
11416 pragma Inline (Set_Visible_Declarations);
11417 pragma Inline (Set_Was_Originally_Stub);
11418 pragma Inline (Set_Zero_Cost_Handling);
11419
11420 N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
11421 -- Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
11422 -- should refer to N_Simple_Return_Statement.
11423
11424 end Sinfo;