par-ch13.adb (P_Aspect_Specifications): Fix handling of 'Class aspects
[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-2010, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
17 -- --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
21 -- --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
26 -- --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
29 -- --
30 ------------------------------------------------------------------------------
31
32 -- This package defines the structure of the abstract syntax tree. The Tree
33 -- package provides a basic tree structure. Sinfo describes how this structure
34 -- is used to represent the syntax of an Ada program.
35
36 -- The grammar in the RM is followed very closely in the tree design, and is
37 -- repeated as part of this source file.
38
39 -- The tree contains not only the full syntactic representation of the
40 -- program, but also the results of semantic analysis. In particular, the
41 -- nodes for defining identifiers, defining character literals and defining
42 -- operator symbols, collectively referred to as entities, represent what
43 -- would normally be regarded as the symbol table information. In addition a
44 -- number of the tree nodes contain semantic information.
45
46 -- WARNING: Several files are automatically generated from this package.
47 -- See below for details.
48
49 with Namet; use Namet;
50 with Types; use Types;
51 with Uintp; use Uintp;
52 with Urealp; use Urealp;
53
54 package Sinfo is
55
56 ---------------------------------
57 -- Making Changes to This File --
58 ---------------------------------
59
60 -- If changes are made to this file, a number of related steps must be
61 -- carried out to ensure consistency. First, if a field access function is
62 -- added, it appears in seven places:
63
64 -- The documentation associated with the node
65 -- The spec of the access function in sinfo.ads
66 -- The body of the access function in sinfo.adb
67 -- The pragma Inline at the end of sinfo.ads for the access function
68 -- The spec of the set procedure in sinfo.ads
69 -- The body of the set procedure in sinfo.adb
70 -- The pragma Inline at the end of sinfo.ads for the set procedure
71
72 -- The field chosen must be consistent in all places, and, for a node that
73 -- is a subexpression, must not overlap any of the standard expression
74 -- fields.
75
76 -- In addition, if any of the standard expression fields is changed, then
77 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
78 -- must be updated appropriately, since it special cases expression fields.
79
80 -- If a new tree node is added, then the following changes are made
81
82 -- Add it to the documentation in the appropriate place
83 -- Add its fields to this documentation section
84 -- Define it in the appropriate classification in Node_Kind
85 -- In the body (sinfo), add entries to the access functions for all
86 -- its fields (except standard expression fields) to include the new
87 -- node in the checks.
88 -- Add an appropriate section to the case statement in sprint.adb
89 -- Add an appropriate section to the case statement in sem.adb
90 -- Add an appropriate section to the case statement in exp_util.adb
91 -- (Insert_Actions procedure)
92 -- For a subexpression, add an appropriate section to the case
93 -- statement in sem_eval.adb
94 -- For a subexpression, add an appropriate section to the case
95 -- statement in sem_res.adb
96
97 -- Finally, four utility programs must be run:
98
99 -- Run CSinfo to check that you have made the changes consistently. It
100 -- checks most of the rules given above, with clear error messages. This
101 -- utility reads sinfo.ads and sinfo.adb and generates a report to
102 -- standard output.
103
104 -- Run XSinfo to create sinfo.h, the corresponding C header. This
105 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
106 -- not need to read sinfo.adb, since the contents of the body are
107 -- algorithmically determinable from the spec.
108
109 -- Run XTreeprs to create treeprs.ads, an updated version of the module
110 -- that is used to drive the tree print routine. This utility reads (but
111 -- does not modify) treeprs.adt, the template that provides the basic
112 -- structure of the file, and then fills in the data from the comments
113 -- in sinfo.ads.
114
115 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
116 -- spec of the Nmake package which contains functions for constructing
117 -- nodes.
118
119 -- All of the above steps except CSinfo are done automatically by the
120 -- build scripts when you do a full bootstrap.
121
122 -- Note: sometime we could write a utility that actually generated the body
123 -- of sinfo from the spec instead of simply checking it, since, as noted
124 -- above, the contents of the body can be determined from the spec.
125
126 --------------------------------
127 -- Implicit Nodes in the Tree --
128 --------------------------------
129
130 -- Generally the structure of the tree very closely follows the grammar as
131 -- defined in the RM. However, certain nodes are omitted to save space and
132 -- simplify semantic processing. Two general classes of such omitted nodes
133 -- are as follows:
134
135 -- If the only possibilities for a non-terminal are one or more other
136 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
137 -- corresponding node is omitted from the tree, and the target construct
138 -- appears directly. For example, a real type definition is either
139 -- floating point definition or a fixed point definition. No explicit node
140 -- appears for real type definition. Instead either the floating point
141 -- definition or fixed point definition appears directly.
142
143 -- If a non-terminal corresponds to a list of some other non-terminal
144 -- (possibly with separating punctuation), then usually it is omitted from
145 -- the tree, and a list of components appears instead. For example,
146 -- sequence of statements does not appear explicitly in the tree. Instead
147 -- a list of statements appears directly.
148
149 -- Some additional cases of omitted nodes occur and are documented
150 -- individually. In particular, many nodes are omitted in the tree
151 -- generated for an expression.
152
153 -------------------------------------------
154 -- Handling of Defining Identifier Lists --
155 -------------------------------------------
156
157 -- In several declarative forms in the syntax, lists of defining
158 -- identifiers appear (object declarations, component declarations, number
159 -- declarations etc.)
160
161 -- The semantics of such statements are equivalent to a series of identical
162 -- declarations of single defining identifiers (except that conformance
163 -- checks require the same grouping of identifiers in the parameter case).
164
165 -- To simplify semantic processing, the parser breaks down such multiple
166 -- declaration cases into sequences of single declarations, duplicating
167 -- type and initialization information as required. The flags More_Ids and
168 -- Prev_Ids are used to record the original form of the source in the case
169 -- where the original source used a list of names, More_Ids being set on
170 -- all but the last name and Prev_Ids being set on all but the first name.
171 -- These flags are used to reconstruct the original source (e.g. in the
172 -- Sprint package), and also are included in the conformance checks, but
173 -- otherwise have no semantic significance.
174
175 -- Note: the reason that we use More_Ids and Prev_Ids rather than
176 -- First_Name and Last_Name flags is so that the flags are off in the
177 -- normal one identifier case, which minimizes tree print output.
178
179 -----------------------
180 -- Use of Node Lists --
181 -----------------------
182
183 -- With a few exceptions, if a construction of the form {non-terminal}
184 -- appears in the tree, lists are used in the corresponding tree node (see
185 -- package Nlists for handling of node lists). In this case a field of the
186 -- parent node points to a list of nodes for the non-terminal. The field
187 -- name for such fields has a plural name which always ends in "s". For
188 -- example, a case statement has a field Alternatives pointing to list of
189 -- case statement alternative nodes.
190
191 -- Only fields pointing to lists have names ending in "s", so generally the
192 -- structure is strongly typed, fields not ending in s point to single
193 -- nodes, and fields ending in s point to lists.
194
195 -- The following example shows how a traversal of a list is written. We
196 -- suppose here that Stmt points to a N_Case_Statement node which has a
197 -- list field called Alternatives:
198
199 -- Alt := First (Alternatives (Stmt));
200 -- while Present (Alt) loop
201 -- ..
202 -- -- processing for case statement alternative Alt
203 -- ..
204 -- Alt := Next (Alt);
205 -- end loop;
206
207 -- The Present function tests for Empty, which in this case signals the end
208 -- of the list. First returns Empty immediately if the list is empty.
209 -- Present is defined in Atree, First and Next are defined in Nlists.
210
211 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
212 -- contexts, which is handled as described in the previous section, and
213 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
214 -- using the First_Name and Last_Name flags, as further detailed in the
215 -- description of the N_With_Clause node.
216
217 -------------
218 -- Pragmas --
219 -------------
220
221 -- Pragmas can appear in many different context, but are not included in
222 -- the grammar. Still they must appear in the tree, so they can be properly
223 -- processed.
224
225 -- Two approaches are used. In some cases, an extra field is defined in an
226 -- appropriate node that contains a list of pragmas appearing in the
227 -- expected context. For example pragmas can appear before an
228 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
229 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
230
231 -- The other approach is to simply allow pragmas to appear in syntactic
232 -- lists where the grammar (of course) does not include the possibility.
233 -- For example, the Variants field of an N_Variant_Part node points to a
234 -- list that can contain both N_Pragma and N_Variant nodes.
235
236 -- To make processing easier in the latter case, the Nlists package
237 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
238 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
239 -- ignoring all pragmas.
240
241 -- In the case of the variants list, we can either write:
242
243 -- Variant := First (Variants (N));
244 -- while Present (Variant) loop
245 -- ...
246 -- Variant := Next (Variant);
247 -- end loop;
248
249 -- or
250
251 -- Variant := First_Non_Pragma (Variants (N));
252 -- while Present (Variant) loop
253 -- ...
254 -- Variant := Next_Non_Pragma (Variant);
255 -- end loop;
256
257 -- In the first form of the loop, Variant can either be an N_Pragma or an
258 -- N_Variant node. In the second form, Variant can only be N_Variant since
259 -- all pragmas are skipped.
260
261 ---------------------
262 -- Optional Fields --
263 ---------------------
264
265 -- Fields which correspond to a section of the syntax enclosed in square
266 -- brackets are generally omitted (and the corresponding field set to Empty
267 -- for a node, or No_List for a list). The documentation of such fields
268 -- notes these cases. One exception to this rule occurs in the case of
269 -- possibly empty statement sequences (such as the sequence of statements
270 -- in an entry call alternative). Such cases appear in the syntax rules as
271 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
272 -- statement sequences always contain an empty list (not No_List) if no
273 -- statements are present.
274
275 -- Note: the utility program that constructs the body and spec of the Nmake
276 -- package relies on the format of the comments to determine if a field
277 -- should have a default value in the corresponding make routine. The rule
278 -- is that if the first line of the description of the field contains the
279 -- string "(set to xxx if", then a default value of xxx is provided for
280 -- this field in the corresponding Make_yyy routine.
281
282 -----------------------------------
283 -- Note on Body/Spec Terminology --
284 -----------------------------------
285
286 -- In informal discussions about Ada, it is customary to refer to package
287 -- and subprogram specs and bodies. However, this is not technically
288 -- correct, what is normally referred to as a spec or specification is in
289 -- fact a package declaration or subprogram declaration. We are careful in
290 -- GNAT to use the correct terminology and in particular, the full word
291 -- specification is never used as an incorrect substitute for declaration.
292 -- The structure and terminology used in the tree also reflects the grammar
293 -- and thus uses declaration and specification in the technically correct
294 -- manner.
295
296 -- However, there are contexts in which the informal terminology is useful.
297 -- We have the word "body" to refer to the Interp_Etype declared by the
298 -- declaration of a unit body, and in some contexts we need similar term to
299 -- refer to the entity declared by the package or subprogram declaration,
300 -- and simply using declaration can be confusing since the body also has a
301 -- declaration.
302
303 -- An example of such a context is the link between the package body and
304 -- its declaration. With_Declaration is confusing, since the package body
305 -- itself is a declaration.
306
307 -- To deal with this problem, we reserve the informal term Spec, i.e. the
308 -- popular abbreviation used in this context, to refer to the entity
309 -- declared by the package or subprogram declaration. So in the above
310 -- example case, the field in the body is called With_Spec.
311
312 -- Another important context for the use of the word Spec is in error
313 -- messages, where a hyper-correct use of declaration would be confusing to
314 -- a typical Ada programmer, and even for an expert programmer can cause
315 -- confusion since the body has a declaration as well.
316
317 -- So, to summarize:
318
319 -- Declaration always refers to the syntactic entity that is called
320 -- a declaration. In particular, subprogram declaration
321 -- and package declaration are used to describe the
322 -- syntactic entity that includes the semicolon.
323
324 -- Specification always refers to the syntactic entity that is called
325 -- a specification. In particular, the terms procedure
326 -- specification, function specification, package
327 -- specification, subprogram specification always refer
328 -- to the syntactic entity that has no semicolon.
329
330 -- Spec is an informal term, used to refer to the entity
331 -- that is declared by a task declaration, protected
332 -- declaration, generic declaration, subprogram
333 -- declaration or package declaration.
334
335 -- This convention is followed throughout the GNAT documentation
336 -- both internal and external, and in all error message text.
337
338 ------------------------
339 -- Internal Use Nodes --
340 ------------------------
341
342 -- These are Node_Kind settings used in the internal implementation which
343 -- are not logically part of the specification.
344
345 -- N_Unused_At_Start
346 -- Completely unused entry at the start of the enumeration type. This
347 -- is inserted so that no legitimate value is zero, which helps to get
348 -- better debugging behavior, since zero is a likely uninitialized value).
349
350 -- N_Unused_At_End
351 -- Completely unused entry at the end of the enumeration type. This is
352 -- handy so that arrays with Node_Kind as the index type have an extra
353 -- entry at the end (see for example the use of the Pchar_Pos_Array in
354 -- Treepr, where the extra entry provides the limit value when dealing with
355 -- the last used entry in the array).
356
357 -----------------------------------------
358 -- Note on the settings of Sloc fields --
359 -----------------------------------------
360
361 -- The Sloc field of nodes that come from the source is set by the parser.
362 -- For internal nodes, and nodes generated during expansion the Sloc is
363 -- usually set in the call to the constructor for the node. In general the
364 -- Sloc value chosen for an internal node is the Sloc of the source node
365 -- whose processing is responsible for the expansion. For example, the Sloc
366 -- of an inherited primitive operation is the Sloc of the corresponding
367 -- derived type declaration.
368
369 -- For the nodes of a generic instantiation, the Sloc value is encoded to
370 -- represent both the original Sloc in the generic unit, and the Sloc of
371 -- the instantiation itself. See Sinput.ads for details.
372
373 -- Subprogram instances create two callable entities: one is the visible
374 -- subprogram instance, and the other is an anonymous subprogram nested
375 -- within a wrapper package that contains the renamings for the actuals.
376 -- Both of these entities have the Sloc of the defining entity in the
377 -- instantiation node. This simplifies some ASIS queries.
378
379 -----------------------
380 -- Field Definitions --
381 -----------------------
382
383 -- In the following node definitions, all fields, both syntactic and
384 -- semantic, are documented. The one exception is in the case of entities
385 -- (defining identifiers, character literals and operator symbols), where
386 -- the usage of the fields depends on the entity kind. Entity fields are
387 -- fully documented in the separate package Einfo.
388
389 -- In the node definitions, three common sets of fields are abbreviated to
390 -- save both space in the documentation, and also space in the string
391 -- (defined in Tree_Print_Strings) used to print trees. The following
392 -- abbreviations are used:
393
394 -- Note: the utility program that creates the Treeprs spec (in the file
395 -- xtreeprs.adb) knows about the special fields here, so it must be
396 -- modified if any change is made to these fields.
397
398 -- "plus fields for binary operator"
399 -- Chars (Name1) Name_Id for the operator
400 -- Left_Opnd (Node2) left operand expression
401 -- Right_Opnd (Node3) right operand expression
402 -- Entity (Node4-Sem) defining entity for operator
403 -- Associated_Node (Node4-Sem) for generic processing
404 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
405 -- Has_Private_View (Flag11-Sem) set in generic units.
406
407 -- "plus fields for unary operator"
408 -- Chars (Name1) Name_Id for the operator
409 -- Right_Opnd (Node3) right operand expression
410 -- Entity (Node4-Sem) defining entity for operator
411 -- Associated_Node (Node4-Sem) for generic processing
412 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
413 -- Has_Private_View (Flag11-Sem) set in generic units.
414
415 -- "plus fields for expression"
416 -- Paren_Count number of parentheses levels
417 -- Etype (Node5-Sem) type of the expression
418 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
419 -- Is_Static_Expression (Flag6-Sem) set for static expression
420 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
421 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
422 -- Do_Range_Check (Flag9-Sem) set if a range check needed
423 -- Assignment_OK (Flag15-Sem) set if modification is OK
424 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
425
426 -- Note: see under (EXPRESSION) for further details on the use of
427 -- the Paren_Count field to record the number of parentheses levels.
428
429 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
430 -- The actual definition of this type is given later (the reason for this
431 -- is that we want the descriptions ordered by logical chapter in the RM,
432 -- but the type definition is reordered to facilitate the definition of
433 -- some subtype ranges. The individual descriptions of the nodes show how
434 -- the various fields are used in each node kind, as well as providing
435 -- logical names for the fields. Functions and procedures are provided for
436 -- accessing and setting these fields using these logical names.
437
438 -----------------------
439 -- Gigi Restrictions --
440 -----------------------
441
442 -- The tree passed to Gigi is more restricted than the general tree form.
443 -- For example, as a result of expansion, most of the tasking nodes can
444 -- never appear. For each node to which either a complete or partial
445 -- restriction applies, a note entitled "Gigi restriction" appears which
446 -- documents the restriction.
447
448 -- Note that most of these restrictions apply only to trees generated when
449 -- code is being generated, since they involved expander actions that
450 -- destroy the tree.
451
452 ------------------------
453 -- Common Flag Fields --
454 ------------------------
455
456 -- The following flag fields appear in all nodes
457
458 -- Analyzed
459 -- This flag is used to indicate that a node (and all its children have
460 -- been analyzed. It is used to avoid reanalysis of a node that has
461 -- already been analyzed, both for efficiency and functional correctness
462 -- reasons.
463
464 -- Comes_From_Source
465 -- This flag is set if the node comes directly from an explicit construct
466 -- in the source. It is normally on for any nodes built by the scanner or
467 -- parser from the source program, with the exception that in a few cases
468 -- the parser adds nodes to normalize the representation (in particular
469 -- a null statement is added to a package body if there is no begin/end
470 -- initialization section.
471 --
472 -- Most nodes inserted by the analyzer or expander are not considered
473 -- as coming from source, so the flag is off for such nodes. In a few
474 -- cases, the expander constructs nodes closely equivalent to nodes
475 -- from the source program (e.g. the allocator built for build-in-place
476 -- case), and the Comes_From_Source flag is deliberately set.
477
478 -- Error_Posted
479 -- This flag is used to avoid multiple error messages being posted on or
480 -- referring to the same node. This flag is set if an error message
481 -- refers to a node or is posted on its source location, and has the
482 -- effect of inhibiting further messages involving this same node.
483
484 -- Has_Dynamic_Length_Check (Flag10-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 length 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_Dynamic_Range_Check (Flag12-Sem)
491 -- This flag is present on all nodes. It is set to indicate that one of
492 -- the routines in unit Checks has generated a range check action which
493 -- has been inserted at the flagged node. This is used to avoid the
494 -- generation of duplicate checks.
495
496 -- Has_Local_Raise (Flag8-Sem)
497 -- Present in exception handler nodes. Set if the handler can be entered
498 -- via a local raise that gets transformed to a goto statement. This will
499 -- always be set if Local_Raise_Statements is non-empty, but can also be
500 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
501 -- nodes requiring generation of back end checks.
502
503 ------------------------------------
504 -- Description of Semantic Fields --
505 ------------------------------------
506
507 -- The meaning of the syntactic fields is generally clear from their names
508 -- without any further description, since the names are chosen to
509 -- correspond very closely to the syntax in the reference manual. This
510 -- section describes the usage of the semantic fields, which are used to
511 -- contain additional information determined during semantic analysis.
512
513 -- ABE_Is_Certain (Flag18-Sem)
514 -- This flag is set in an instantiation node or a call node is determined
515 -- to be sure to raise an ABE. This is used to trigger special handling
516 -- of such cases, particularly in the instantiation case where we avoid
517 -- instantiating the body if this flag is set. This flag is also present
518 -- in an N_Formal_Package_Declaration_Node since formal package
519 -- declarations are treated like instantiations, but it is always set to
520 -- False in this context.
521
522 -- Accept_Handler_Records (List5-Sem)
523 -- This field is present only in an N_Accept_Alternative node. It is used
524 -- to temporarily hold the exception handler records from an accept
525 -- statement in a selective accept. These exception handlers will
526 -- eventually be placed in the Handler_Records list of the procedure
527 -- built for this accept (see Expand_N_Selective_Accept procedure in
528 -- Exp_Ch9 for further details).
529
530 -- Access_Types_To_Process (Elist2-Sem)
531 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
532 -- Contains the list of access types which may require specific treatment
533 -- when the nature of the type completion is completely known. An example
534 -- of such treatment is the generation of the associated_final_chain.
535
536 -- Actions (List1-Sem)
537 -- This field contains a sequence of actions that are associated with the
538 -- node holding the field. See the individual node types for details of
539 -- how this field is used, as well as the description of the specific use
540 -- for a particular node type.
541
542 -- Activation_Chain_Entity (Node3-Sem)
543 -- This is used in tree nodes representing task activators (blocks,
544 -- subprogram bodies, package declarations, and task bodies). It is
545 -- initially Empty, and then gets set to point to the entity for the
546 -- declared Activation_Chain variable when the first task is declared.
547 -- When tasks are declared in the corresponding declarative region this
548 -- entity is located by name (its name is always _Chain) and the declared
549 -- tasks are added to the chain. Note that N_Extended_Return_Statement
550 -- does not have this attribute, although it does have an activation
551 -- chain. This chain is used to store the tasks temporarily, and is not
552 -- used for activating them. On successful completion of the return
553 -- statement, the tasks are moved to the caller's chain, and the caller
554 -- activates them.
555
556 -- Acts_As_Spec (Flag4-Sem)
557 -- A flag set in the N_Subprogram_Body node for a subprogram body which
558 -- is acting as its own spec, except in the case of a library level
559 -- subprogram, in which case the flag is set on the parent compilation
560 -- unit node instead (see further description in spec of Lib package).
561 -- ??? Above note about Lib is dubious since lib.ads does not mention
562 -- Acts_As_Spec at all.
563
564 -- Actual_Designated_Subtype (Node4-Sem)
565 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
566 -- needs to known the dynamic constrained subtype of the designated
567 -- object, this attribute is set to that type. This is done for
568 -- N_Free_Statements for access-to-classwide types and access to
569 -- unconstrained packed array types, and for N_Explicit_Dereference when
570 -- the designated type is an unconstrained packed array and the
571 -- dereference is the prefix of a 'Size attribute reference.
572
573 -- Address_Warning_Posted (Flag18-Sem)
574 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
575 -- posted a warning for the address clause regarding size or alignment
576 -- issues. Used to inhibit multiple redundant messages.
577
578 -- Aggregate_Bounds (Node3-Sem)
579 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
580 -- known at compile time, this field points to an N_Range node with those
581 -- bounds. Otherwise Empty.
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 -- Aspect_Cancel (Flag11-Sem)
591 -- Processing of aspect specifications typically generates pragmas and
592 -- attribute definition clauses that are inserted into the tree after
593 -- the declaration node to get the desired aspect effect. In the case
594 -- of Boolean aspects that use "=> False" to cancel the effect of an
595 -- aspect (i.e. turn if off), the generated pragma has the Aspect_Cancel
596 -- flag set to indicate that the pragma operates in the opposite sense.
597
598 -- Aspect_Rep_Item (Node2-Sem)
599 -- Present in N_Aspect_Specification nodes. Points to the corresponding
600 -- pragma/attribute definition node used to process the aspect.
601
602 -- Assignment_OK (Flag15-Sem)
603 -- This flag is set in a subexpression node for an object, indicating
604 -- that the associated object can be modified, even if this would not
605 -- normally be permissible (either by direct assignment, or by being
606 -- passed as an out or in-out parameter). This is used by the expander
607 -- for a number of purposes, including initialization of constants and
608 -- limited type objects (such as tasks), setting discriminant fields,
609 -- setting tag values, etc. N_Object_Declaration nodes also have this
610 -- flag defined. Here it is used to indicate that an initialization
611 -- expression is valid, even where it would normally not be allowed
612 -- (e.g. where the type involved is limited).
613
614 -- Associated_Node (Node4-Sem)
615 -- Present in nodes that can denote an entity: identifiers, character
616 -- literals, operator symbols, expanded names, operator nodes, and
617 -- attribute reference nodes (all these nodes have an Entity field).
618 -- This field is also present in N_Aggregate, N_Selected_Component, and
619 -- N_Extension_Aggregate nodes. This field is used in generic processing
620 -- to create links between the generic template and the generic copy.
621 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
622 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
623 -- the normal function of Entity is not required at the point where the
624 -- Associated_Node is set. Note also, that in generic templates, this
625 -- means that the Entity field does not necessarily point to an Entity.
626 -- Since the back end is expected to ignore generic templates, this is
627 -- harmless.
628
629 -- At_End_Proc (Node1)
630 -- This field is present in an N_Handled_Sequence_Of_Statements node.
631 -- It contains an identifier reference for the cleanup procedure to be
632 -- called. See description of this node for further details.
633
634 -- Backwards_OK (Flag6-Sem)
635 -- A flag present in the N_Assignment_Statement node. It is used only
636 -- if the type being assigned is an array type, and is set if analysis
637 -- determines that it is definitely safe to do the copy backwards, i.e.
638 -- starting at the highest addressed element. This is the case if either
639 -- the operands do not overlap, or they may overlap, but if they do,
640 -- then the left operand is at a higher address than the right operand.
641 --
642 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
643 -- means that the front end could not determine that either direction is
644 -- definitely safe, and a runtime check may be required if the backend
645 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
646 -- set, it means that the front end can assure no overlap of operands.
647
648 -- Body_To_Inline (Node3-Sem)
649 -- present in subprogram declarations. Denotes analyzed but unexpanded
650 -- body of subprogram, to be used when inlining calls. Present when the
651 -- subprogram has an Inline pragma and inlining is enabled. If the
652 -- declaration is completed by a renaming_as_body, and the renamed en-
653 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
654 -- which is used directly in later calls to the original subprogram.
655
656 -- Body_Required (Flag13-Sem)
657 -- A flag that appears in the N_Compilation_Unit node indicating that
658 -- the corresponding unit requires a body. For the package case, this
659 -- indicates that a completion is required. In Ada 95, if the flag is not
660 -- set for the package case, then a body may not be present. In Ada 83,
661 -- if the flag is not set for the package case, then body is optional.
662 -- For a subprogram declaration, the flag is set except in the case where
663 -- a pragma Import or Interface applies, in which case no body is
664 -- permitted (in Ada 83 or Ada 95).
665
666 -- By_Ref (Flag5-Sem)
667 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
668 -- this flag is set when the returned expression is already allocated on
669 -- the secondary stack and thus the result is passed by reference rather
670 -- than copied another time.
671
672 -- Check_Address_Alignment (Flag11-Sem)
673 -- A flag present in N_Attribute_Definition clause for a 'Address
674 -- attribute definition. This flag is set if a dynamic check should be
675 -- generated at the freeze point for the entity to which this address
676 -- clause applies. The reason that we need this flag is that we want to
677 -- check for range checks being suppressed at the point where the
678 -- attribute definition clause is given, rather than testing this at the
679 -- freeze point.
680
681 -- Coextensions (Elist4-Sem)
682 -- Present in allocators nodes. Points to list of allocators for the
683 -- access discriminants of the allocated object.
684
685 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
686 -- Present in N_Simple_Return_Statement nodes. True if this node was
687 -- constructed as part of the N_Extended_Return_Statement expansion.
688
689 -- Compile_Time_Known_Aggregate (Flag18-Sem)
690 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
691 -- evaluated at compile time without raising constraint error. Such
692 -- aggregates can be passed as is to Gigi without any expansion. See
693 -- Sem_Aggr for the specific conditions under which an aggregate has this
694 -- flag set. See also the flag Static_Processing_OK.
695
696 -- Componentwise_Assignment (Flag14-Sem)
697 -- Present in N_Assignment_Statement nodes. Set for a record assignment
698 -- where all that needs doing is to expand it into component-by-component
699 -- assignments. This is used internally for the case of tagged types with
700 -- rep clauses, where we need to avoid recursion (we don't want to try to
701 -- generate a call to the primitive operation, because this is the case
702 -- where we are compiling the primitive operation). Note that when we are
703 -- expanding component assignments in this case, we never assign the _tag
704 -- field, but we recursively assign components of the parent type.
705
706 -- Condition_Actions (List3-Sem)
707 -- This field appears in else-if nodes and in the iteration scheme node
708 -- for while loops. This field is only used during semantic processing to
709 -- temporarily hold actions inserted into the tree. In the tree passed
710 -- to gigi, the condition actions field is always set to No_List. For
711 -- details on how this field is used, see the routine Insert_Actions in
712 -- package Exp_Util, and also the expansion routines for the relevant
713 -- nodes.
714
715 -- Context_Pending (Flag16-Sem)
716 -- This field appears in Compilation_Unit nodes, to indicate that the
717 -- context of the unit is being compiled. Used to detect circularities
718 -- that are not otherwise detected by the loading mechanism. Such
719 -- circularities can occur in the presence of limited and non-limited
720 -- with_clauses that mention the same units.
721
722 -- Controlling_Argument (Node1-Sem)
723 -- This field is set in procedure and function call nodes if the call
724 -- is a dispatching call (it is Empty for a non-dispatching call). It
725 -- indicates the source of the call's controlling tag. For procedure
726 -- calls, the Controlling_Argument is one of the actuals. For function
727 -- that has a dispatching result, it is an entity in the context of the
728 -- call that can provide a tag, or else it is the tag of the root type
729 -- of the class. It can also specify a tag directly rather than being a
730 -- tagged object. The latter is needed by the implementations of AI-239
731 -- and AI-260.
732
733 -- Conversion_OK (Flag14-Sem)
734 -- A flag set on type conversion nodes to indicate that the conversion
735 -- is to be considered as being valid, even though it is the case that
736 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
737 -- Fixed_Value and Integer_Value, for internal conversions done for
738 -- fixed-point operations, and for certain conversions for calls to
739 -- initialization procedures. If Conversion_OK is set, then Etype must be
740 -- set (the analyzer assumes that Etype has been set). For the case of
741 -- fixed-point operands, it also indicates that the conversion is to be
742 -- direct conversion of the underlying integer result, with no regard to
743 -- the small operand.
744
745 -- Corresponding_Body (Node5-Sem)
746 -- This field is set in subprogram declarations, package declarations,
747 -- entry declarations of protected types, and in generic units. It
748 -- points to the defining entity for the corresponding body (NOT the
749 -- node for the body itself).
750
751 -- Corresponding_Formal_Spec (Node3-Sem)
752 -- This field is set in subprogram renaming declarations, where it points
753 -- to the defining entity for a formal subprogram in the case where the
754 -- renaming corresponds to a generic formal subprogram association in an
755 -- instantiation. The field is Empty if the renaming does not correspond
756 -- to such a formal association.
757
758 -- Corresponding_Generic_Association (Node5-Sem)
759 -- This field is defined for object declarations and object renaming
760 -- declarations. It is set for the declarations within an instance that
761 -- map generic formals to their actuals. If set, the field points to
762 -- a generic_association which is the original parent of the expression
763 -- or name appearing in the declaration. This simplifies ASIS queries.
764
765 -- Corresponding_Integer_Value (Uint4-Sem)
766 -- This field is set in real literals of fixed-point types (it is not
767 -- used for floating-point types). It contains the integer value used
768 -- to represent the fixed-point value. It is also set on the universal
769 -- real literals used to represent bounds of fixed-point base types
770 -- and their first named subtypes.
771
772 -- Corresponding_Spec (Node5-Sem)
773 -- This field is set in subprogram, package, task, and protected body
774 -- nodes, where it points to the defining entity in the corresponding
775 -- spec. The attribute is also set in N_With_Clause nodes where it points
776 -- to the defining entity for the with'ed spec, and in a subprogram
777 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
778 -- if there is no corresponding spec, as in the case of a subprogram body
779 -- that serves as its own spec.
780
781 -- Corresponding_Stub (Node3-Sem)
782 -- This field is present in an N_Subunit node. It holds the node in
783 -- the parent unit that is the stub declaration for the subunit. It is
784 -- set when analysis of the stub forces loading of the proper body. If
785 -- expansion of the proper body creates new declarative nodes, they are
786 -- inserted at the point of the corresponding_stub.
787
788 -- Dcheck_Function (Node5-Sem)
789 -- This field is present in an N_Variant node, It references the entity
790 -- for the discriminant checking function for the variant.
791
792 -- Debug_Statement (Node3)
793 -- This field is present in an N_Pragma node. It is used only for a Debug
794 -- pragma. The parameter is of the form of an expression, as required by
795 -- the pragma syntax, but is actually a procedure call. To simplify
796 -- semantic processing, the parser creates a copy of the argument
797 -- rearranged into a procedure call statement and places it in the
798 -- Debug_Statement field. Note that this field is considered syntactic
799 -- field, since it is created by the parser.
800
801 -- Default_Expression (Node5-Sem)
802 -- This field is Empty if there is no default expression. If there is a
803 -- simple default expression (one with no side effects), then this field
804 -- simply contains a copy of the Expression field (both point to the tree
805 -- for the default expression). Default_Expression is used for
806 -- conformance checking.
807
808 -- Discr_Check_Funcs_Built (Flag11-Sem)
809 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
810 -- discriminant checking functions are constructed. The purpose is to
811 -- avoid attempting to set these functions more than once.
812
813 -- Do_Accessibility_Check (Flag13-Sem)
814 -- This flag is set on N_Parameter_Specification nodes to indicate
815 -- that an accessibility check is required for the parameter. It is
816 -- not yet decided who takes care of this check (TBD ???).
817
818 -- Do_Discriminant_Check (Flag13-Sem)
819 -- This flag is set on N_Selected_Component nodes to indicate that a
820 -- discriminant check is required using the discriminant check routine
821 -- associated with the selector. The actual check is generated by the
822 -- expander when processing selected components.
823
824 -- Do_Division_Check (Flag13-Sem)
825 -- This flag is set on a division operator (/ mod rem) to indicate
826 -- that a zero divide check is required. The actual check is dealt
827 -- with by the backend (all the front end does is to set the flag).
828
829 -- Do_Length_Check (Flag4-Sem)
830 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
831 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
832 -- is required. It is not determined who deals with this flag (???).
833
834 -- Do_Overflow_Check (Flag17-Sem)
835 -- This flag is set on an operator where an overflow check is required on
836 -- the operation. The actual check is dealt with by the backend (all the
837 -- front end does is to set the flag). The other cases where this flag is
838 -- used is on a Type_Conversion node and for attribute reference nodes.
839 -- For a type conversion, it means that the conversion is from one base
840 -- type to another, and the value may not fit in the target base type.
841 -- See also the description of Do_Range_Check for this case. The only
842 -- attribute references which use this flag are Pred and Succ, where it
843 -- means that the result should be checked for going outside the base
844 -- range. Note that this flag is not set for modular types.
845
846 -- Do_Range_Check (Flag9-Sem)
847 -- This flag is set on an expression which appears in a context where a
848 -- range check is required. The target type is clear from the context.
849 -- The contexts in which this flag can appear are the following:
850
851 -- Right side of an assignment. In this case the target type is
852 -- taken from the left side of the assignment, which is referenced
853 -- by the Name of the N_Assignment_Statement node.
854
855 -- Subscript expressions in an indexed component. In this case the
856 -- target type is determined from the type of the array, which is
857 -- referenced by the Prefix of the N_Indexed_Component node.
858
859 -- Argument expression for a parameter, appearing either directly in
860 -- the Parameter_Associations list of a call or as the Expression of an
861 -- N_Parameter_Association node that appears in this list. In either
862 -- case, the check is against the type of the formal. Note that the
863 -- flag is relevant only in IN and IN OUT parameters, and will be
864 -- ignored for OUT parameters, where no check is required in the call,
865 -- and if a check is required on the return, it is generated explicitly
866 -- with a type conversion.
867
868 -- Initialization expression for the initial value in an object
869 -- declaration. In this case the Do_Range_Check flag is set on
870 -- the initialization expression, and the check is against the
871 -- range of the type of the object being declared.
872
873 -- The expression of a type conversion. In this case the range check is
874 -- against the target type of the conversion. See also the use of
875 -- Do_Overflow_Check on a type conversion. The distinction is that the
876 -- overflow check protects against a value that is outside the range of
877 -- the target base type, whereas a range check checks that the
878 -- resulting value (which is a value of the base type of the target
879 -- type), satisfies the range constraint of the target type.
880
881 -- Note: when a range check is required in contexts other than those
882 -- listed above (e.g. in a return statement), an additional type
883 -- conversion node is introduced to represent the required check.
884
885 -- Do_Storage_Check (Flag17-Sem)
886 -- This flag is set in an N_Allocator node to indicate that a storage
887 -- check is required for the allocation, or in an N_Subprogram_Body node
888 -- to indicate that a stack check is required in the subprogram prolog.
889 -- The N_Allocator case is handled by the routine that expands the call
890 -- to the runtime routine. The N_Subprogram_Body case is handled by the
891 -- backend, and all the semantics does is set the flag.
892
893 -- Do_Tag_Check (Flag13-Sem)
894 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
895 -- N_Procedure_Call_Statement, N_Type_Conversion,
896 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
897 -- node to indicate that the tag check can be suppressed. It is not
898 -- yet decided how this flag is used (TBD ???).
899
900 -- Elaborate_Present (Flag4-Sem)
901 -- This flag is set in the N_With_Clause node to indicate that pragma
902 -- Elaborate pragma appears for the with'ed units.
903
904 -- Elaborate_All_Desirable (Flag9-Sem)
905 -- This flag is set in the N_With_Clause mode to indicate that the static
906 -- elaboration processing has determined that an Elaborate_All pragma is
907 -- desirable for correct elaboration for this unit.
908
909 -- Elaborate_All_Present (Flag14-Sem)
910 -- This flag is set in the N_With_Clause node to indicate that a
911 -- pragma Elaborate_All pragma appears for the with'ed units.
912
913 -- Elaborate_Desirable (Flag11-Sem)
914 -- This flag is set in the N_With_Clause mode to indicate that the static
915 -- elaboration processing has determined that an Elaborate pragma is
916 -- desirable for correct elaboration for this unit.
917
918 -- Elaboration_Boolean (Node2-Sem)
919 -- This field is present in function and procedure specification nodes.
920 -- If set, it points to the entity for a Boolean flag that must be tested
921 -- for certain calls to check for access before elaboration. See body of
922 -- Sem_Elab for further details. This field is Empty if no elaboration
923 -- boolean is required.
924
925 -- Else_Actions (List3-Sem)
926 -- This field is present in conditional expression nodes. During code
927 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
928 -- actions at an appropriate place in the tree to get elaborated at the
929 -- right time. For conditional expressions, we have to be sure that the
930 -- actions for the Else branch are only elaborated if the condition is
931 -- False. The Else_Actions field is used as a temporary parking place for
932 -- these actions. The final tree is always rewritten to eliminate the
933 -- need for this field, so in the tree passed to Gigi, this field is
934 -- always set to No_List.
935
936 -- Enclosing_Variant (Node2-Sem)
937 -- This field is present in the N_Variant node and identifies the Node_Id
938 -- corresponding to the immediately enclosing variant when the variant is
939 -- nested, and N_Empty otherwise. Set during semantic processing of the
940 -- variant part of a record type.
941
942 -- Entity (Node4-Sem)
943 -- Appears in all direct names (identifiers, character literals, and
944 -- operator symbols), as well as expanded names, and attributes that
945 -- denote entities, such as 'Class. Points to entity for corresponding
946 -- defining occurrence. Set after name resolution. For identifiers in a
947 -- WITH list, the corresponding defining occurrence is in a separately
948 -- compiled file, and Entity must be set by the library Load procedure.
949 --
950 -- Note: During name resolution, the value in Entity may be temporarily
951 -- incorrect (e.g. during overload resolution, Entity is initially set to
952 -- the first possible correct interpretation, and then later modified if
953 -- necessary to contain the correct value after resolution).
954 --
955 -- Note: This field overlaps Associated_Node, which is used during
956 -- generic processing (see Sem_Ch12 for details). Note also that in
957 -- generic templates, this means that the Entity field does not always
958 -- point to an Entity. Since the back end is expected to ignore generic
959 -- templates, this is harmless.
960 --
961 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
962 -- It is used only for stream attributes definition clauses. In this
963 -- case, it denotes a (possibly dummy) subprogram entity that is declared
964 -- conceptually at the point of the clause. Thus the visibility of the
965 -- attribute definition clause (in the sense of 8.3(23) as amended by
966 -- AI-195) can be checked by testing the visibility of that subprogram.
967 --
968 -- Note: Normally the Entity field of an identifier points to the entity
969 -- for the corresponding defining identifier, and hence the Chars field
970 -- of an identifier will match the Chars field of the entity. However,
971 -- there is no requirement that these match, and there are obscure cases
972 -- of generated code where they do not match.
973
974 -- Entity_Or_Associated_Node (Node4-Sem)
975 -- A synonym for both Entity and Associated_Node. Used by convention in
976 -- the code when referencing this field in cases where it is not known
977 -- whether the field contains an Entity or an Associated_Node.
978
979 -- Etype (Node5-Sem)
980 -- Appears in all expression nodes, all direct names, and all entities.
981 -- Points to the entity for the related type. Set after type resolution.
982 -- Normally this is the actual subtype of the expression. However, in
983 -- certain contexts such as the right side of an assignment, subscripts,
984 -- arguments to calls, returned value in a function, initial value etc.
985 -- it is the desired target type. In the event that this is different
986 -- from the actual type, the Do_Range_Check flag will be set if a range
987 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
988 -- points to an essentially arbitrary choice from the possible set of
989 -- types.
990
991 -- Exception_Junk (Flag8-Sem)
992 -- This flag is set in a various nodes appearing in a statement sequence
993 -- to indicate that the corresponding node is an artifact of the
994 -- generated code for exception handling, and should be ignored when
995 -- analyzing the control flow of the relevant sequence of statements
996 -- (e.g. to check that it does not end with a bad return statement).
997
998 -- Exception_Label (Node5-Sem)
999 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1000 -- to be used for transforming the corresponding exception into a goto,
1001 -- or contains Empty, if this exception is not to be transformed. Also
1002 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1003 -- that there may be a local raise for the handler, so that expansion
1004 -- to allow a goto is required (and this field contains the label for
1005 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1006
1007 -- Expansion_Delayed (Flag11-Sem)
1008 -- Set on aggregates and extension aggregates that need a top-down rather
1009 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1010 -- up. For nested aggregates the expansion is delayed until the enclosing
1011 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1012 -- delay it we set this flag. This is done to avoid creating a temporary
1013 -- for each level of a nested aggregates, and also to prevent the
1014 -- premature generation of constraint checks. This is also a requirement
1015 -- if we want to generate the proper attachment to the internal
1016 -- finalization lists (for record with controlled components). Top down
1017 -- expansion of aggregates is also used for in-place array aggregate
1018 -- assignment or initialization. When the full context is known, the
1019 -- target of the assignment or initialization is used to generate the
1020 -- left-hand side of individual assignment to each sub-component.
1021
1022 -- First_Inlined_Subprogram (Node3-Sem)
1023 -- Present in the N_Compilation_Unit node for the main program. Points
1024 -- to a chain of entities for subprograms that are to be inlined. The
1025 -- Next_Inlined_Subprogram field of these entities is used as a link
1026 -- pointer with Empty marking the end of the list. This field is Empty
1027 -- if there are no inlined subprograms or inlining is not active.
1028
1029 -- First_Named_Actual (Node4-Sem)
1030 -- Present in procedure call statement and function call nodes, and also
1031 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1032 -- named parameter where parameters are ordered by declaration order (as
1033 -- opposed to the actual order in the call which may be different due to
1034 -- named associations). Note: this field points to the explicit actual
1035 -- parameter itself, not the N_Parameter_Association node (its parent).
1036
1037 -- First_Real_Statement (Node2-Sem)
1038 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1039 -- Empty. Used only when declarations are moved into the statement part
1040 -- of a construct as a result of wrapping an AT END handler that is
1041 -- required to cover the declarations. In this case, this field is used
1042 -- to remember the location in the statements list of the first real
1043 -- statement, i.e. the statement that used to be first in the statement
1044 -- list before the declarations were prepended.
1045
1046 -- First_Subtype_Link (Node5-Sem)
1047 -- Present in N_Freeze_Entity node for an anonymous base type that is
1048 -- implicitly created by the declaration of a first subtype. It points
1049 -- to the entity for the first subtype.
1050
1051 -- Float_Truncate (Flag11-Sem)
1052 -- A flag present in type conversion nodes. This is used for float to
1053 -- integer conversions where truncation is required rather than rounding.
1054 -- Note that Gigi does not handle type conversions from real to integer
1055 -- with rounding (see Expand_N_Type_Conversion).
1056
1057 -- Forwards_OK (Flag5-Sem)
1058 -- A flag present in the N_Assignment_Statement node. It is used only
1059 -- if the type being assigned is an array type, and is set if analysis
1060 -- determines that it is definitely safe to do the copy forwards, i.e.
1061 -- starting at the lowest addressed element. This is the case if either
1062 -- the operands do not overlap, or they may overlap, but if they do,
1063 -- then the left operand is at a lower address than the right operand.
1064 --
1065 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1066 -- means that the front end could not determine that either direction is
1067 -- definitely safe, and a runtime check may be required if the backend
1068 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1069 -- set, it means that the front end can assure no overlap of operands.
1070
1071 -- From_Aspect_Specification (Flag13-Sem)
1072 -- Processing of aspect specifications typically results in insertion in
1073 -- the tree of corresponding pragma or attribute definition clause nodes.
1074 -- These generated nodes have the From_Aspect_Specification flag set to
1075 -- indicate that they came from aspect specifications originally.
1076
1077 -- From_At_End (Flag4-Sem)
1078 -- This flag is set on an N_Raise_Statement node if it corresponds to
1079 -- the reraise statement generated as the last statement of an AT END
1080 -- handler when SJLJ exception handling is active. It is used to stop
1081 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1082 -- because if the restriction is set, the reraise is not generated.
1083
1084 -- From_At_Mod (Flag4-Sem)
1085 -- This flag is set on the attribute definition clause node that is
1086 -- generated by a transformation of an at mod phrase in a record
1087 -- representation clause. This is used to give slightly different (Ada 83
1088 -- compatible) semantics to such a clause, namely it is used to specify a
1089 -- minimum acceptable alignment for the base type and all subtypes. In
1090 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1091 -- must be a multiple of the given value, and the representation clause
1092 -- is considered to be type specific instead of subtype specific.
1093
1094 -- From_Default (Flag6-Sem)
1095 -- This flag is set on the subprogram renaming declaration created in an
1096 -- instance for a formal subprogram, when the formal is declared with a
1097 -- box, and there is no explicit actual. If the flag is present, the
1098 -- declaration is treated as an implicit reference to the formal in the
1099 -- ali file.
1100
1101 -- Generic_Parent (Node5-Sem)
1102 -- Generic_Parent is defined on declaration nodes that are instances. The
1103 -- value of Generic_Parent is the generic entity from which the instance
1104 -- is obtained. Generic_Parent is also defined for the renaming
1105 -- declarations and object declarations created for the actuals in an
1106 -- instantiation. The generic parent of such a declaration is the
1107 -- corresponding generic association in the Instantiation node.
1108
1109 -- Generic_Parent_Type (Node4-Sem)
1110 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1111 -- actuals of formal private and derived types. Within the instance, the
1112 -- operations on the actual are those inherited from the parent. For a
1113 -- formal private type, the parent type is the generic type itself. The
1114 -- Generic_Parent_Type is also used in an instance to determine whether a
1115 -- private operation overrides an inherited one.
1116
1117 -- Handler_List_Entry (Node2-Sem)
1118 -- This field is present in N_Object_Declaration nodes. It is set only
1119 -- for the Handler_Record entry generated for an exception in zero cost
1120 -- exception handling mode. It references the corresponding item in the
1121 -- handler list, and is used to delete this entry if the corresponding
1122 -- handler is deleted during optimization. For further details on why
1123 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1124
1125 -- Has_No_Elaboration_Code (Flag17-Sem)
1126 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1127 -- or not elaboration code is present for this unit. It is initially set
1128 -- true for subprogram specs and bodies and for all generic units and
1129 -- false for non-generic package specs and bodies. Gigi may set the flag
1130 -- in the non-generic package case if it determines that no elaboration
1131 -- code is generated. Note that this flag is not related to the
1132 -- Is_Preelaborated status, there can be preelaborated packages that
1133 -- generate elaboration code, and non-preelaborated packages which do
1134 -- not generate elaboration code.
1135
1136 -- Has_Priority_Pragma (Flag6-Sem)
1137 -- A flag present in N_Subprogram_Body, N_Task_Definition and
1138 -- N_Protected_Definition nodes to flag the presence of either a Priority
1139 -- or Interrupt_Priority pragma in the declaration sequence (public or
1140 -- private in the task and protected cases)
1141
1142 -- Has_Private_View (Flag11-Sem)
1143 -- A flag present in generic nodes that have an entity, to indicate that
1144 -- the node has a private type. Used to exchange private and full
1145 -- declarations if the visibility at instantiation is different from the
1146 -- visibility at generic definition.
1147
1148 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1149 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1150 -- flag the presence of a pragma Relative_Deadline.
1151
1152 -- Has_Self_Reference (Flag13-Sem)
1153 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1154 -- of the expressions contains an access attribute reference to the
1155 -- enclosing type. Such a self-reference can only appear in default-
1156 -- initialized aggregate for a record type.
1157
1158 -- Has_Storage_Size_Pragma (Flag5-Sem)
1159 -- A flag present in an N_Task_Definition node to flag the presence of a
1160 -- Storage_Size pragma.
1161
1162 -- Has_Task_Info_Pragma (Flag7-Sem)
1163 -- A flag present in an N_Task_Definition node to flag the presence of a
1164 -- Task_Info pragma. Used to detect duplicate pragmas.
1165
1166 -- Has_Task_Name_Pragma (Flag8-Sem)
1167 -- A flag present in N_Task_Definition nodes to flag the presence of a
1168 -- Task_Name pragma in the declaration sequence for the task.
1169
1170 -- Has_Wide_Character (Flag11-Sem)
1171 -- Present in string literals, set if any wide character (i.e. character
1172 -- code outside the Character range but within Wide_Character range)
1173 -- appears in the string. Used to implement pragma preference rules.
1174
1175 -- Has_Wide_Wide_Character (Flag13-Sem)
1176 -- Present in string literals, set if any wide character (i.e. character
1177 -- code outside the Wide_Character range) appears in the string. Used to
1178 -- implement pragma preference rules.
1179
1180 -- Hidden_By_Use_Clause (Elist4-Sem)
1181 -- An entity list present in use clauses that appear within
1182 -- instantiations. For the resolution of local entities, entities
1183 -- introduced by these use clauses have priority over global ones, and
1184 -- outer entities must be explicitly hidden/restored on exit.
1185
1186 -- Implicit_With (Flag16-Sem)
1187 -- This flag is set in the N_With_Clause node that is implicitly
1188 -- generated for runtime units that are loaded by the expander, and also
1189 -- for package System, if it is loaded implicitly by a use of the
1190 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1191 -- as well.
1192
1193 -- Import_Interface_Present (Flag16-Sem)
1194 -- This flag is set in an Interface or Import pragma if a matching
1195 -- pragma of the other kind is also present. This is used to avoid
1196 -- generating some unwanted error messages.
1197
1198 -- Includes_Infinities (Flag11-Sem)
1199 -- This flag is present in N_Range nodes. It is set for the range of
1200 -- unconstrained float types defined in Standard, which include not only
1201 -- the given range of values, but also legitimately can include infinite
1202 -- values. This flag is false for any float type for which an explicit
1203 -- range is given by the programmer, even if that range is identical to
1204 -- the range for Float.
1205
1206 -- Inherited_Discriminant (Flag13-Sem)
1207 -- This flag is present in N_Component_Association nodes. It indicates
1208 -- that a given component association in an extension aggregate is the
1209 -- value obtained from a constraint on an ancestor. Used to prevent
1210 -- double expansion when the aggregate has expansion delayed.
1211
1212 -- Instance_Spec (Node5-Sem)
1213 -- This field is present in generic instantiation nodes, and also in
1214 -- formal package declaration nodes (formal package declarations are
1215 -- treated in a manner very similar to package instantiations). It points
1216 -- to the node for the spec of the instance, inserted as part of the
1217 -- semantic processing for instantiations in Sem_Ch12.
1218
1219 -- Is_Accessibility_Actual (Flag12-Sem)
1220 -- Present in N_Parameter_Association nodes. True if the parameter is
1221 -- an extra actual that carries the accessibility level of the actual
1222 -- for an access parameter, in a function that dispatches on result and
1223 -- is called in a dispatching context. Used to prevent a formal/actual
1224 -- mismatch when the call is rewritten as a dispatching call.
1225
1226 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1227 -- A flag set in a Block_Statement node to indicate that it is the
1228 -- expansion of an asynchronous entry call. Such a block needs cleanup
1229 -- handler to assure that the call is cancelled.
1230
1231 -- Is_Component_Left_Opnd (Flag13-Sem)
1232 -- Is_Component_Right_Opnd (Flag14-Sem)
1233 -- Present in concatenation nodes, to indicate that the corresponding
1234 -- operand is of the component type of the result. Used in resolving
1235 -- concatenation nodes in instances.
1236
1237 -- Is_Delayed_Aspect (Flag14-Sem)
1238 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1239 -- come from aspect specifications, where the evaluation of the aspect
1240 -- must be delayed to the freeze point.
1241
1242 -- Is_Controlling_Actual (Flag16-Sem)
1243 -- This flag is set on in an expression that is a controlling argument in
1244 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1245 -- details of its use.
1246
1247 -- Is_Dynamic_Coextension (Flag18-Sem)
1248 -- Present in allocator nodes, to indicate that this is an allocator
1249 -- for an access discriminant of a dynamically allocated object. The
1250 -- coextension must be deallocated and finalized at the same time as
1251 -- the enclosing object.
1252
1253 -- Is_Entry_Barrier_Function (Flag8-Sem)
1254 -- This flag is set in an N_Subprogram_Body node which is the expansion
1255 -- of an entry barrier from a protected entry body. It is used for the
1256 -- circuitry checking for incorrect use of Current_Task.
1257
1258 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1259 -- This flag is set in an N_Function_Call node to indicate that the extra
1260 -- actuals to support a build-in-place style of call have been added to
1261 -- the call.
1262
1263 -- Is_In_Discriminant_Check (Flag11-Sem)
1264 -- This flag is present in a selected component, and is used to indicate
1265 -- that the reference occurs within a discriminant check. The
1266 -- significance is that optimizations based on assuming that the
1267 -- discriminant check has a correct value cannot be performed in this
1268 -- case (or the discriminant check may be optimized away!)
1269
1270 -- Is_Machine_Number (Flag11-Sem)
1271 -- This flag is set in an N_Real_Literal node to indicate that the value
1272 -- is a machine number. This avoids some unnecessary cases of converting
1273 -- real literals to machine numbers.
1274
1275 -- Is_Null_Loop (Flag16-Sem)
1276 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1277 -- can be determined to be null at compile time. This is used to remove
1278 -- the loop entirely at expansion time.
1279
1280 -- Is_Overloaded (Flag5-Sem)
1281 -- A flag present in all expression nodes. Used temporarily during
1282 -- overloading determination. The setting of this flag is not relevant
1283 -- once overloading analysis is complete.
1284
1285 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1286 -- A flag present only in N_Op_Expon nodes. It is set when the
1287 -- exponentiation is of the form 2 ** N, where the type of N is an
1288 -- unsigned integral subtype whose size does not exceed the size of
1289 -- Standard_Integer (i.e. a type that can be safely converted to
1290 -- Natural), and the exponentiation appears as the right operand of an
1291 -- integer multiplication or an integer division where the dividend is
1292 -- unsigned. It is also required that overflow checking is off for both
1293 -- the exponentiation and the multiply/divide node. If this set of
1294 -- conditions holds, and the flag is set, then the division or
1295 -- multiplication can be (and is) converted to a shift.
1296
1297 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1298 -- A flag set in a Subprogram_Body block to indicate that it is the
1299 -- implementation of a protected subprogram. Such a body needs cleanup
1300 -- handler to make sure that the associated protected object is unlocked
1301 -- when the subprogram completes.
1302
1303 -- Is_Static_Coextension (Flag14-Sem)
1304 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1305 -- of an object allocated on the stack rather than the heap.
1306
1307 -- Is_Static_Expression (Flag6-Sem)
1308 -- Indicates that an expression is a static expression (RM 4.9). See spec
1309 -- of package Sem_Eval for full details on the use of this flag.
1310
1311 -- Is_Subprogram_Descriptor (Flag16-Sem)
1312 -- Present in N_Object_Declaration, and set only for the object
1313 -- declaration generated for a subprogram descriptor in fast exception
1314 -- mode. See Exp_Ch11 for details of use.
1315
1316 -- Is_Task_Allocation_Block (Flag6-Sem)
1317 -- A flag set in a Block_Statement node to indicate that it is the
1318 -- expansion of a task allocator, or the allocator of an object
1319 -- containing tasks. Such a block requires a cleanup handler to call
1320 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1321 -- allocated but not activated when the allocator completes abnormally.
1322
1323 -- Is_Task_Master (Flag5-Sem)
1324 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1325 -- indicate that the construct is a task master (i.e. has declared tasks
1326 -- or declares an access to a task type).
1327
1328 -- Itype (Node1-Sem)
1329 -- Used in N_Itype_Reference node to reference an itype for which it is
1330 -- important to ensure that it is defined. See description of this node
1331 -- for further details.
1332
1333 -- Kill_Range_Check (Flag11-Sem)
1334 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1335 -- result should not be subjected to range checks. This is used for the
1336 -- implementation of Normalize_Scalars.
1337
1338 -- Label_Construct (Node2-Sem)
1339 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1340 -- N_Block_Statement or N_Loop_Statement node to which the label
1341 -- declaration applies. This is not currently used in the compiler
1342 -- itself, but it is useful in the implementation of ASIS queries.
1343 -- This field is left empty for the special labels generated as part
1344 -- of expanding raise statements with a local exception handler.
1345
1346 -- Library_Unit (Node4-Sem)
1347 -- In a stub node, Library_Unit points to the compilation unit node of
1348 -- the corresponding subunit.
1349 --
1350 -- In a with clause node, Library_Unit points to the spec of the with'ed
1351 -- unit.
1352 --
1353 -- In a compilation unit node, the usage depends on the unit type:
1354 --
1355 -- For a library unit body, Library_Unit points to the compilation unit
1356 -- node of the corresponding spec, unless it's a subprogram body with
1357 -- Acts_As_Spec set, in which case it points to itself.
1358 --
1359 -- For a spec, Library_Unit points to the compilation unit node of the
1360 -- corresponding body, if present. The body will be present if the spec
1361 -- is or contains generics that we needed to instantiate. Similarly, the
1362 -- body will be present if we needed it for inlining purposes. Thus, if
1363 -- we have a spec/body pair, both of which are present, they point to
1364 -- each other via Library_Unit.
1365 --
1366 -- For a subunit, Library_Unit points to the compilation unit node of
1367 -- the parent body.
1368 --
1369 -- Note that this field is not used to hold the parent pointer for child
1370 -- unit (which might in any case need to use it for some other purpose as
1371 -- described above). Instead for a child unit, implicit with's are
1372 -- generated for all parents.
1373
1374 -- Local_Raise_Statements (Elist1)
1375 -- This field is present in exception handler nodes. It is set to
1376 -- No_Elist in the normal case. If there is at least one raise statement
1377 -- which can potentially be handled as a local raise, then this field
1378 -- points to a list of raise nodes, which are calls to a routine to raise
1379 -- an exception. These are raise nodes which can be optimized into gotos
1380 -- if the handler turns out to meet the conditions which permit this
1381 -- transformation. Note that this does NOT include instances of the
1382 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1383 -- handled by the back end (using the N_Push/N_Pop mechanism).
1384
1385 -- Loop_Actions (List2-Sem)
1386 -- A list present in Component_Association nodes in array aggregates.
1387 -- Used to collect actions that must be executed within the loop because
1388 -- they may need to be evaluated anew each time through.
1389
1390 -- Limited_View_Installed (Flag18-Sem)
1391 -- Present in With_Clauses and in package specifications. If set on
1392 -- with_clause, it indicates that this clause has created the current
1393 -- limited view of the designated package. On a package specification, it
1394 -- indicates that the limited view has already been created because the
1395 -- package is mentioned in a limited_with_clause in the closure of the
1396 -- unit being compiled.
1397
1398 -- Local_Raise_Not_OK (Flag7-Sem)
1399 -- Present in N_Exception_Handler nodes. Set if the handler contains
1400 -- a construct (reraise statement, or call to subprogram in package
1401 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1402 -- for a local raise (one that could otherwise be converted to a goto).
1403
1404 -- Must_Be_Byte_Aligned (Flag14-Sem)
1405 -- This flag is present in N_Attribute_Reference nodes. It can be set
1406 -- only for the Address and Unrestricted_Access attributes. If set it
1407 -- means that the object for which the address/access is given must be on
1408 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1409 -- of the object is to be made before taking the address (this copy is in
1410 -- the current scope on the stack frame). This is used for certain cases
1411 -- of code generated by the expander that passes parameters by address.
1412 --
1413 -- The reason the copy is not made by the front end is that the back end
1414 -- has more information about type layout and may be able to (but is not
1415 -- guaranteed to) prevent making unnecessary copies.
1416
1417 -- Must_Not_Freeze (Flag8-Sem)
1418 -- A flag present in all expression nodes. Normally expressions cause
1419 -- freezing as described in the RM. If this flag is set, then this is
1420 -- inhibited. This is used by the analyzer and expander to label nodes
1421 -- that are created by semantic analysis or expansion and which must not
1422 -- cause freezing even though they normally would. This flag is also
1423 -- present in an N_Subtype_Indication node, since we also use these in
1424 -- calls to Freeze_Expression.
1425
1426 -- Next_Entity (Node2-Sem)
1427 -- Present in defining identifiers, defining character literals and
1428 -- defining operator symbols (i.e. in all entities). The entities of a
1429 -- scope are chained, and this field is used as the forward pointer for
1430 -- this list. See Einfo for further details.
1431
1432 -- Next_Exit_Statement (Node3-Sem)
1433 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1434 -- chained (in reverse order of appearence) from the First_Exit_Statement
1435 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1436 -- the next entry on this chain (Empty = end of list).
1437
1438 -- Next_Implicit_With (Node3-Sem)
1439 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1440 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1441 -- to prevent multiple with_clauses for the same unit in a given context.
1442 -- A postorder traversal of the tree whose nodes are units and whose
1443 -- links are with_clauses defines the order in which Inspector must
1444 -- examine a compiled unit and its full context. This ordering ensures
1445 -- that any subprogram call is examined after the subprogram declartion
1446 -- has been seen.
1447
1448 -- Next_Named_Actual (Node4-Sem)
1449 -- Present in parameter association node. Set during semantic analysis to
1450 -- point to the next named parameter, where parameters are ordered by
1451 -- declaration order (as opposed to the actual order in the call, which
1452 -- may be different due to named associations). Not that this field
1453 -- points to the explicit actual parameter itself, not to the
1454 -- N_Parameter_Association node (its parent).
1455
1456 -- Next_Pragma (Node1-Sem)
1457 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1458 -- nodes. Currently used for two purposes:
1459 --
1460 -- Create a list of linked Check_Policy pragmas. The head of this list
1461 -- is stored in Opt.Check_Policy_List (which has further details).
1462 --
1463 -- Used by processing for Pre/Postcondition pragmas to store a list of
1464 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1465 -- details).
1466
1467 -- Next_Rep_Item (Node5-Sem)
1468 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1469 -- clauses, record rep clauses, aspect specification nodes. Used to link
1470 -- representation items that apply to an entity. See full description of
1471 -- First_Rep_Item field in Einfo for further details.
1472
1473 -- Next_Use_Clause (Node3-Sem)
1474 -- While use clauses are active during semantic processing, they are
1475 -- chained from the scope stack entry, using Next_Use_Clause as a link
1476 -- pointer, with Empty marking the end of the list. The head pointer is
1477 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1478 -- processing (i.e. when Gigi sees the tree, the contents of this field
1479 -- is undefined and should not be read).
1480
1481 -- No_Ctrl_Actions (Flag7-Sem)
1482 -- Present in N_Assignment_Statement to indicate that no finalize nor
1483 -- adjust should take place on this assignment even though the rhs is
1484 -- controlled. This is used in init procs and aggregate expansions where
1485 -- the generated assignments are more initialisations than real
1486 -- assignments.
1487
1488 -- No_Elaboration_Check (Flag14-Sem)
1489 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1490 -- that no elaboration check is needed on the call, because it appears in
1491 -- the context of a local Suppress pragma. This is used on calls within
1492 -- task bodies, where the actual elaboration checks are applied after
1493 -- analysis, when the local scope stack is not present.
1494
1495 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1496 -- Present in N_With_Clause nodes. Set if the with clause is on the
1497 -- package or subprogram spec where the main unit is the corresponding
1498 -- body, and no entities of the with'ed unit are referenced by the spec
1499 -- (an entity may still be referenced in the body, so this flag is used
1500 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1501 -- full details)
1502
1503 -- No_Initialization (Flag13-Sem)
1504 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1505 -- object must not be initialized (by Initialize or call to an init
1506 -- proc). This is needed for controlled aggregates. When the Object
1507 -- declaration has an expression, this flag means that this expression
1508 -- should not be taken into account (needed for in place initialization
1509 -- with aggregates).
1510
1511 -- No_Truncation (Flag17-Sem)
1512 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1513 -- only if the RM_Size of the source is greater than the RM_Size of the
1514 -- target for scalar operands. Normally in such a case we truncate some
1515 -- higher order bits of the source, and then sign/zero extend the result
1516 -- to form the output value. But if this flag is set, then we do not do
1517 -- any truncation, so for example, if an 8 bit input is converted to 5
1518 -- bit result which is in fact stored in 8 bits, then the high order
1519 -- three bits of the target result will be copied from the source. This
1520 -- is used for properly setting out of range values for use by pragmas
1521 -- Initialize_Scalars and Normalize_Scalars.
1522
1523 -- Original_Discriminant (Node2-Sem)
1524 -- Present in identifiers. Used in references to discriminants that
1525 -- appear in generic units. Because the names of the discriminants may be
1526 -- different in an instance, we use this field to recover the position of
1527 -- the discriminant in the original type, and replace it with the
1528 -- discriminant at the same position in the instantiated type.
1529
1530 -- Original_Entity (Node2-Sem)
1531 -- Present in numeric literals. Used to denote the named number that has
1532 -- been constant-folded into the given literal. If literal is from
1533 -- source, or the result of some other constant-folding operation, then
1534 -- Original_Entity is empty. This field is needed to handle properly
1535 -- named numbers in generic units, where the Associated_Node field
1536 -- interferes with the Entity field, making it impossible to preserve the
1537 -- original entity at the point of instantiation (ASIS problem).
1538
1539 -- Others_Discrete_Choices (List1-Sem)
1540 -- When a case statement or variant is analyzed, the semantic checks
1541 -- determine the actual list of choices that correspond to an others
1542 -- choice. This list is materialized for later use by the expander and
1543 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1544 -- this materialized list of choices, which is in standard format for a
1545 -- list of discrete choices, except that of course it cannot contain an
1546 -- N_Others_Choice entry.
1547
1548 -- Parameter_List_Truncated (Flag17-Sem)
1549 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1550 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1551 -- a result of a First_Optional_Parameter specification in an
1552 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1553 -- The truncation is done by the expander by removing trailing parameters
1554 -- from the argument list, in accordance with the set of rules allowing
1555 -- such parameter removal. In particular, parameters can be removed
1556 -- working from the end of the parameter list backwards up to and
1557 -- including the entry designated by First_Optional_Parameter in the
1558 -- Import pragma. Parameters can be removed if they are implicit and the
1559 -- default value is a known-at-compile-time value, including the use of
1560 -- the Null_Parameter attribute, or if explicit parameter values are
1561 -- present that match the corresponding defaults.
1562
1563 -- Parent_Spec (Node4-Sem)
1564 -- For a library unit that is a child unit spec (package or subprogram
1565 -- declaration, generic declaration or instantiation, or library level
1566 -- rename, this field points to the compilation unit node for the parent
1567 -- package specification. This field is Empty for library bodies (the
1568 -- parent spec in this case can be found from the corresponding spec).
1569
1570 -- Pragma_Enabled (Flag5-Sem)
1571 -- Present in N_Pragma nodes. This flag is relevant only for pragmas
1572 -- Assert, Check, Precondition, and Postcondition. It is true if the
1573 -- check corresponding to the pragma type is enabled at the point where
1574 -- the pragma appears.
1575
1576 -- Present_Expr (Uint3-Sem)
1577 -- Present in an N_Variant node. This has a meaningful value only after
1578 -- Gigi has back annotated the tree with representation information. At
1579 -- this point, it contains a reference to a gcc expression that depends
1580 -- on the values of one or more discriminants. Give a set of discriminant
1581 -- values, this expression evaluates to False (zero) if variant is not
1582 -- present, and True (non-zero) if it is present. See unit Repinfo for
1583 -- further details on gigi back annotation. This field is used during
1584 -- ASIS processing (data decomposition annex) to determine if a field is
1585 -- present or not.
1586
1587 -- Print_In_Hex (Flag13-Sem)
1588 -- Set on an N_Integer_Literal node to indicate that the value should be
1589 -- printed in hexadecimal in the sprint listing. Has no effect on
1590 -- legality or semantics of program, only on the displayed output. This
1591 -- is used to clarify output from the packed array cases.
1592
1593 -- Procedure_To_Call (Node2-Sem)
1594 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1595 -- and N_Extended_Return_Statement nodes. References the entity for the
1596 -- declaration of the procedure to be called to accomplish the required
1597 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1598 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1599 -- allocating the return value), and for the Deallocate procedure in the
1600 -- case of N_Free_Statement.
1601
1602 -- Raises_Constraint_Error (Flag7-Sem)
1603 -- Set on an expression whose evaluation will definitely fail constraint
1604 -- error check. In the case of static expressions, this flag must be set
1605 -- accurately (and if it is set, the expression is typically illegal
1606 -- unless it appears as a non-elaborated branch of a short-circuit form).
1607 -- For a non-static expression, this flag may be set whenever an
1608 -- expression (e.g. an aggregate) is known to raise constraint error. If
1609 -- set, the expression definitely will raise CE if elaborated at runtime.
1610 -- If not set, the expression may or may not raise CE. In other words, on
1611 -- static expressions, the flag is set accurately, on non-static
1612 -- expressions it is set conservatively.
1613
1614 -- Redundant_Use (Flag13-Sem)
1615 -- Present in nodes that can appear as an operand in a use clause or use
1616 -- type clause (identifiers, expanded names, attribute references). Set
1617 -- to indicate that a use is redundant (and therefore need not be undone
1618 -- on scope exit).
1619
1620 -- Renaming_Exception (Node2-Sem)
1621 -- Present in N_Exception_Declaration node. Used to point back to the
1622 -- exception renaming for an exception declared within a subprogram.
1623 -- What happens is that an exception declared in a subprogram is moved
1624 -- to the library level with a unique name, and the original exception
1625 -- becomes a renaming. This link from the library level exception to the
1626 -- renaming declaration allows registering of the proper exception name.
1627
1628 -- Return_Statement_Entity (Node5-Sem)
1629 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1630 -- Points to an E_Return_Statement representing the return statement.
1631
1632 -- Return_Object_Declarations (List3)
1633 -- Present in N_Extended_Return_Statement.
1634 -- Points to a list initially containing a single
1635 -- N_Object_Declaration representing the return object.
1636 -- We use a list (instead of just a pointer to the object decl)
1637 -- because Analyze wants to insert extra actions on this list.
1638
1639 -- Rounded_Result (Flag18-Sem)
1640 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1641 -- Used in the fixed-point cases to indicate that the result must be
1642 -- rounded as a result of the use of the 'Round attribute. Also used for
1643 -- integer N_Op_Divide nodes to indicate that the result should be
1644 -- rounded to the nearest integer (breaking ties away from zero), rather
1645 -- than truncated towards zero as usual. These rounded integer operations
1646 -- are the result of expansion of rounded fixed-point divide, conversion
1647 -- and multiplication operations.
1648
1649 -- SCIL_Entity (Node4-Sem)
1650 -- Present in SCIL nodes. Used to reference the tagged type associated
1651 -- with the SCIL node.
1652
1653 -- SCIL_Controlling_Tag (Node5-Sem)
1654 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the
1655 -- controlling tag of a dispatching call.
1656
1657 -- SCIL_Tag_Value (Node5-Sem)
1658 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1659 -- value that is being tested.
1660
1661 -- SCIL_Target_Prim (Node2-Sem)
1662 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the tagged
1663 -- type primitive associated with the SCIL node.
1664
1665 -- Scope (Node3-Sem)
1666 -- Present in defining identifiers, defining character literals and
1667 -- defining operator symbols (i.e. in all entities). The entities of a
1668 -- scope all use this field to reference the corresponding scope entity.
1669 -- See Einfo for further details.
1670
1671 -- Shift_Count_OK (Flag4-Sem)
1672 -- A flag present in shift nodes to indicate that the shift count is
1673 -- known to be in range, i.e. is in the range from zero to word length
1674 -- minus one. If this flag is not set, then the shift count may be
1675 -- outside this range, i.e. larger than the word length, and the code
1676 -- must ensure that such shift counts give the appropriate result.
1677
1678 -- Source_Type (Node1-Sem)
1679 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1680 -- source type entity for the unchecked conversion instantiation
1681 -- which gigi must do size validation for.
1682
1683 -- Static_Processing_OK (Flag4-Sem)
1684 -- Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1685 -- flag is set, the full value of the aggregate can be determined at
1686 -- compile time and the aggregate can be passed as is to the back-end.
1687 -- In this event it is irrelevant whether this flag is set or not.
1688 -- However, if the flag Compile_Time_Known_Aggregate is not set but
1689 -- Static_Processing_OK is set, the aggregate can (but need not) be
1690 -- converted into a compile time known aggregate by the expander. See
1691 -- Sem_Aggr for the specific conditions under which an aggregate has its
1692 -- Static_Processing_OK flag set.
1693
1694 -- Storage_Pool (Node1-Sem)
1695 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1696 -- and N_Extended_Return_Statement nodes. References the entity for the
1697 -- storage pool to be used for the allocate or free call or for the
1698 -- allocation of the returned value from function. Empty indicates that
1699 -- the global default pool is to be used. Note that in the case
1700 -- of a return statement, this field is set only if the function returns
1701 -- value of a type whose size is not known at compile time on the
1702 -- secondary stack.
1703
1704 -- Suppress_Loop_Warnings (Flag17-Sem)
1705 -- Used in N_Loop_Statement node to indicate that warnings within the
1706 -- body of the loop should be suppressed. This is set when the range
1707 -- of a FOR loop is known to be null, or is probably null (loop would
1708 -- only execute if invalid values are present).
1709
1710 -- Target_Type (Node2-Sem)
1711 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1712 -- type entity for the unchecked conversion instantiation which gigi must
1713 -- do size validation for.
1714
1715 -- Then_Actions (List3-Sem)
1716 -- This field is present in conditional expression nodes. During code
1717 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1718 -- actions at an appropriate place in the tree to get elaborated at the
1719 -- right time. For conditional expressions, we have to be sure that the
1720 -- actions for the Then branch are only elaborated if the condition is
1721 -- True. The Then_Actions field is used as a temporary parking place for
1722 -- these actions. The final tree is always rewritten to eliminate the
1723 -- need for this field, so in the tree passed to Gigi, this field is
1724 -- always set to No_List.
1725
1726 -- Treat_Fixed_As_Integer (Flag14-Sem)
1727 -- This flag appears in operator nodes for divide, multiply, mod and rem
1728 -- on fixed-point operands. It indicates that the operands are to be
1729 -- treated as integer values, ignoring small values. This flag is only
1730 -- set as a result of expansion of fixed-point operations. Typically a
1731 -- fixed-point multiplication in the source generates subsidiary
1732 -- multiplication and division operations that work with the underlying
1733 -- integer values and have this flag set. Note that this flag is not
1734 -- needed on other arithmetic operations (add, neg, subtract etc.) since
1735 -- in these cases it is always the case that fixed is treated as integer.
1736 -- The Etype field MUST be set if this flag is set. The analyzer knows to
1737 -- leave such nodes alone, and whoever makes them must set the correct
1738 -- Etype value.
1739
1740 -- TSS_Elist (Elist3-Sem)
1741 -- Present in N_Freeze_Entity nodes. Holds an element list containing
1742 -- entries for each TSS (type support subprogram) associated with the
1743 -- frozen type. The elements of the list are the entities for the
1744 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
1745 -- if there are no type support subprograms for the type or if the freeze
1746 -- node is not for a type.
1747
1748 -- Unreferenced_In_Spec (Flag7-Sem)
1749 -- Present in N_With_Clause nodes. Set if the with clause is on the
1750 -- package or subprogram spec where the main unit is the corresponding
1751 -- body, and is not referenced by the spec (it may still be referenced by
1752 -- the body, so this flag is used to generate the proper message (see
1753 -- Sem_Util.Check_Unused_Withs for details)
1754
1755 -- Was_Originally_Stub (Flag13-Sem)
1756 -- This flag is set in the node for a proper body that replaces stub.
1757 -- During the analysis procedure, stubs in some situations get rewritten
1758 -- by the corresponding bodies, and we set this flag to remember that
1759 -- this happened. Note that it is not good enough to rely on the use of
1760 -- Original_Node here because of the case of nested instantiations where
1761 -- the substituted node can be copied.
1762
1763 -- Withed_Body (Node1-Sem)
1764 -- Present in N_With_Clause nodes. Set if the unit in whose context
1765 -- the with_clause appears instantiates a generic contained in the
1766 -- library unit of the with_clause and as a result loads its body.
1767 -- Used for a more precise unit traversal for CodePeer.
1768
1769 -- Zero_Cost_Handling (Flag5-Sem)
1770 -- This flag is set in all handled sequence of statement and exception
1771 -- handler nodes if exceptions are to be handled using the zero-cost
1772 -- mechanism (see Ada.Exceptions and System.Exceptions in files
1773 -- a-except.ads/adb and s-except.ads for full details). What gigi needs
1774 -- to do for such a handler is simply to put the code in the handler
1775 -- somewhere. The front end has generated all necessary labels.
1776
1777 --------------------------------------------------
1778 -- Note on Use of End_Label and End_Span Fields --
1779 --------------------------------------------------
1780
1781 -- Several constructs have end lines:
1782
1783 -- Loop Statement end loop [loop_IDENTIFIER];
1784 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
1785 -- Task Definition end [task_IDENTIFIER]
1786 -- Protected Definition end [protected_IDENTIFIER]
1787 -- Protected Body end [protected_IDENTIFIER]
1788
1789 -- Block Statement end [block_IDENTIFIER];
1790 -- Subprogram Body end [DESIGNATOR];
1791 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
1792 -- Task Body end [task_IDENTIFIER];
1793 -- Accept Statement end [entry_IDENTIFIER]];
1794 -- Entry Body end [entry_IDENTIFIER];
1795
1796 -- If Statement end if;
1797 -- Case Statement end case;
1798
1799 -- Record Definition end record;
1800 -- Enumeration Definition );
1801
1802 -- The End_Label and End_Span fields are used to mark the locations of
1803 -- these lines, and also keep track of the label in the case where a label
1804 -- is present.
1805
1806 -- For the first group above, the End_Label field of the corresponding node
1807 -- is used to point to the label identifier. In the case where there is no
1808 -- label in the source, the parser supplies a dummy identifier (with
1809 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
1810 -- marks the location of the token following the END token.
1811
1812 -- For the second group, the use of End_Label is similar, but the End_Label
1813 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
1814 -- simply because in some cases there is no room in the parent node.
1815
1816 -- For the third group, there is never any label, and instead of using
1817 -- End_Label, we use the End_Span field which gives the location of the
1818 -- token following END, relative to the starting Sloc of the construct,
1819 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1820 -- following the End_Label.
1821
1822 -- The record definition case is handled specially, we treat it as though
1823 -- it required an optional label which is never present, and so the parser
1824 -- always builds a dummy identifier with Comes From Source set False. The
1825 -- reason we do this, rather than using End_Span in this case, is that we
1826 -- want to generate a cross-ref entry for the end of a record, since it
1827 -- represents a scope for name declaration purposes.
1828
1829 -- The enumeration definition case is handled in an exactly similar manner,
1830 -- building a dummy identifier to get a cross-reference.
1831
1832 -- Note: the reason we store the difference as a Uint, instead of storing
1833 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
1834 -- distinguished from other types of values, and we count on all general
1835 -- use fields being self describing. To make things easier for clients,
1836 -- note that we provide function End_Location, and procedure
1837 -- Set_End_Location to allow access to the logical value (which is the
1838 -- Source_Ptr value for the end token).
1839
1840 ---------------------
1841 -- Syntactic Nodes --
1842 ---------------------
1843
1844 ---------------------
1845 -- 2.3 Identifier --
1846 ---------------------
1847
1848 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1849 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1850
1851 -- An IDENTIFIER shall not be a reserved word
1852
1853 -- In the Ada grammar identifiers are the bottom level tokens which have
1854 -- very few semantics. Actual program identifiers are direct names. If
1855 -- we were being 100% honest with the grammar, then we would have a node
1856 -- called N_Direct_Name which would point to an identifier. However,
1857 -- that's too many extra nodes, so we just use the N_Identifier node
1858 -- directly as a direct name, and it contains the expression fields and
1859 -- Entity field that correspond to its use as a direct name. In those
1860 -- few cases where identifiers appear in contexts where they are not
1861 -- direct names (pragmas, pragma argument associations, attribute
1862 -- references and attribute definition clauses), the Chars field of the
1863 -- node contains the Name_Id for the identifier name.
1864
1865 -- Note: in GNAT, a reserved word can be treated as an identifier in two
1866 -- cases. First, an incorrect use of a reserved word as an identifier is
1867 -- diagnosed and then treated as a normal identifier. Second, an
1868 -- attribute designator of the form of a reserved word (access, delta,
1869 -- digits, range) is treated as an identifier.
1870
1871 -- Note: The set of letters that is permitted in an identifier depends
1872 -- on the character set in use. See package Csets for full details.
1873
1874 -- N_Identifier
1875 -- Sloc points to identifier
1876 -- Chars (Name1) contains the Name_Id for the identifier
1877 -- Entity (Node4-Sem)
1878 -- Associated_Node (Node4-Sem)
1879 -- Original_Discriminant (Node2-Sem)
1880 -- Redundant_Use (Flag13-Sem)
1881 -- Has_Private_View (Flag11-Sem) (set in generic units)
1882 -- plus fields for expression
1883
1884 --------------------------
1885 -- 2.4 Numeric Literal --
1886 --------------------------
1887
1888 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1889
1890 ----------------------------
1891 -- 2.4.1 Decimal Literal --
1892 ----------------------------
1893
1894 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1895
1896 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1897
1898 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1899
1900 -- Decimal literals appear in the tree as either integer literal nodes
1901 -- or real literal nodes, depending on whether a period is present.
1902
1903 -- Note: literal nodes appear as a result of direct use of literals
1904 -- in the source program, and also as the result of evaluating
1905 -- expressions at compile time. In the latter case, it is possible
1906 -- to construct real literals that have no syntactic representation
1907 -- using the standard literal format. Such literals are listed by
1908 -- Sprint using the notation [numerator / denominator].
1909
1910 -- Note: the value of an integer literal node created by the front end
1911 -- is never outside the range of values of the base type. However, it
1912 -- can be the case that the value is outside the range of the
1913 -- particular subtype. This happens in the case of integer overflows
1914 -- with checks suppressed.
1915
1916 -- N_Integer_Literal
1917 -- Sloc points to literal
1918 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1919 -- has been constant-folded into its literal value.
1920 -- Intval (Uint3) contains integer value of literal
1921 -- plus fields for expression
1922 -- Print_In_Hex (Flag13-Sem)
1923
1924 -- N_Real_Literal
1925 -- Sloc points to literal
1926 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1927 -- has been constant-folded into its literal value.
1928 -- Realval (Ureal3) contains real value of literal
1929 -- Corresponding_Integer_Value (Uint4-Sem)
1930 -- Is_Machine_Number (Flag11-Sem)
1931 -- plus fields for expression
1932
1933 --------------------------
1934 -- 2.4.2 Based Literal --
1935 --------------------------
1936
1937 -- BASED_LITERAL ::=
1938 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1939
1940 -- BASE ::= NUMERAL
1941
1942 -- BASED_NUMERAL ::=
1943 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1944
1945 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1946
1947 -- Based literals appear in the tree as either integer literal nodes
1948 -- or real literal nodes, depending on whether a period is present.
1949
1950 ----------------------------
1951 -- 2.5 Character Literal --
1952 ----------------------------
1953
1954 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1955
1956 -- N_Character_Literal
1957 -- Sloc points to literal
1958 -- Chars (Name1) contains the Name_Id for the identifier
1959 -- Char_Literal_Value (Uint2) contains the literal value
1960 -- Entity (Node4-Sem)
1961 -- Associated_Node (Node4-Sem)
1962 -- Has_Private_View (Flag11-Sem) set in generic units.
1963 -- plus fields for expression
1964
1965 -- Note: the Entity field will be missing (set to Empty) for character
1966 -- literals whose type is Standard.Wide_Character or Standard.Character
1967 -- or a type derived from one of these two. In this case the character
1968 -- literal stands for its own coding. The reason we take this irregular
1969 -- short cut is to avoid the need to build lots of junk defining
1970 -- character literal nodes.
1971
1972 -------------------------
1973 -- 2.6 String Literal --
1974 -------------------------
1975
1976 -- STRING LITERAL ::= "{STRING_ELEMENT}"
1977
1978 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
1979 -- single GRAPHIC_CHARACTER other than a quotation mark.
1980 --
1981 -- Is_Folded_In_Parser is True if the parser created this literal by
1982 -- folding a sequence of "&" operators. For example, if the source code
1983 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
1984 -- is set. This flag is needed because the parser doesn't know about
1985 -- visibility, so the folded result might be wrong, and semantic
1986 -- analysis needs to check for that.
1987
1988 -- N_String_Literal
1989 -- Sloc points to literal
1990 -- Strval (Str3) contains Id of string value
1991 -- Has_Wide_Character (Flag11-Sem)
1992 -- Has_Wide_Wide_Character (Flag13-Sem)
1993 -- Is_Folded_In_Parser (Flag4)
1994 -- plus fields for expression
1995
1996 ------------------
1997 -- 2.7 Comment --
1998 ------------------
1999
2000 -- A COMMENT starts with two adjacent hyphens and extends up to the
2001 -- end of the line. A COMMENT may appear on any line of a program.
2002
2003 -- Comments are skipped by the scanner and do not appear in the tree.
2004 -- It is possible to reconstruct the position of comments with respect
2005 -- to the elements of the tree by using the source position (Sloc)
2006 -- pointers that appear in every tree node.
2007
2008 -----------------
2009 -- 2.8 Pragma --
2010 -----------------
2011
2012 -- PRAGMA ::= pragma IDENTIFIER
2013 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2014
2015 -- Note that a pragma may appear in the tree anywhere a declaration
2016 -- or a statement may appear, as well as in some other situations
2017 -- which are explicitly documented.
2018
2019 -- N_Pragma
2020 -- Sloc points to PRAGMA
2021 -- Next_Pragma (Node1-Sem)
2022 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2023 -- Debug_Statement (Node3) (set to Empty if not Debug)
2024 -- Pragma_Identifier (Node4)
2025 -- Next_Rep_Item (Node5-Sem)
2026 -- Pragma_Enabled (Flag5-Sem)
2027 -- From_Aspect_Specification (Flag13-Sem)
2028 -- Is_Delayed_Aspect (Flag14-Sem)
2029 -- Import_Interface_Present (Flag16-Sem)
2030 -- Aspect_Cancel (Flag11-Sem)
2031 -- Class_Present (Flag6) (set False if not from Aspect with 'Class)
2032
2033 -- Note: we should have a section on what pragmas are passed on to
2034 -- the back end to be processed. This section should note that pragma
2035 -- Psect_Object is always converted to Common_Object, but there are
2036 -- undoubtedly many other similar notes required ???
2037
2038 -- Note: a utility function Pragma_Name may be applied to pragma nodes
2039 -- to conveniently obtain the Chars field of the Pragma_Identifier.
2040
2041 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2042 -- aspect name, as does the Pragma_Identifier. In this case if the
2043 -- pragma has a local name argument (such as pragma Inline), it is
2044 -- resolved to point to the specific entity affected by the pragma.
2045
2046 --------------------------------------
2047 -- 2.8 Pragma Argument Association --
2048 --------------------------------------
2049
2050 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2051 -- [pragma_argument_IDENTIFIER =>] NAME
2052 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2053
2054 -- N_Pragma_Argument_Association
2055 -- Sloc points to first token in association
2056 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2057 -- Expression (Node3)
2058
2059 ------------------------
2060 -- 2.9 Reserved Word --
2061 ------------------------
2062
2063 -- Reserved words are parsed by the scanner, and returned as the
2064 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2065
2066 ----------------------------
2067 -- 3.1 Basic Declaration --
2068 ----------------------------
2069
2070 -- BASIC_DECLARATION ::=
2071 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2072 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2073 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2074 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2075 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2076 -- | GENERIC_INSTANTIATION
2077
2078 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2079 -- see further description in section on semantic nodes.
2080
2081 -- Also, in the tree that is constructed, a pragma may appear
2082 -- anywhere that a declaration may appear.
2083
2084 ------------------------------
2085 -- 3.1 Defining Identifier --
2086 ------------------------------
2087
2088 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2089
2090 -- A defining identifier is an entity, which has additional fields
2091 -- depending on the setting of the Ekind field. These additional
2092 -- fields are defined (and access subprograms declared) in package
2093 -- Einfo.
2094
2095 -- Note: N_Defining_Identifier is an extended node whose fields are
2096 -- deliberate layed out to match the layout of fields in an ordinary
2097 -- N_Identifier node allowing for easy alteration of an identifier
2098 -- node into a defining identifier node. For details, see procedure
2099 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2100
2101 -- N_Defining_Identifier
2102 -- Sloc points to identifier
2103 -- Chars (Name1) contains the Name_Id for the identifier
2104 -- Next_Entity (Node2-Sem)
2105 -- Scope (Node3-Sem)
2106 -- Etype (Node5-Sem)
2107
2108 -----------------------------
2109 -- 3.2.1 Type Declaration --
2110 -----------------------------
2111
2112 -- TYPE_DECLARATION ::=
2113 -- FULL_TYPE_DECLARATION
2114 -- | INCOMPLETE_TYPE_DECLARATION
2115 -- | PRIVATE_TYPE_DECLARATION
2116 -- | PRIVATE_EXTENSION_DECLARATION
2117
2118 ----------------------------------
2119 -- 3.2.1 Full Type Declaration --
2120 ----------------------------------
2121
2122 -- FULL_TYPE_DECLARATION ::=
2123 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2124 -- is TYPE_DEFINITION
2125 -- [ASPECT_SPECIFICATIONS];
2126
2127 -- | TASK_TYPE_DECLARATION
2128 -- | PROTECTED_TYPE_DECLARATION
2129
2130 -- The full type declaration node is used only for the first case. The
2131 -- second case (concurrent type declaration), is represented directly
2132 -- by a task type declaration or a protected type declaration.
2133
2134 -- N_Full_Type_Declaration
2135 -- Sloc points to TYPE
2136 -- Defining_Identifier (Node1)
2137 -- Discriminant_Specifications (List4) (set to No_List if none)
2138 -- Type_Definition (Node3)
2139 -- Discr_Check_Funcs_Built (Flag11-Sem)
2140
2141 ----------------------------
2142 -- 3.2.1 Type Definition --
2143 ----------------------------
2144
2145 -- TYPE_DEFINITION ::=
2146 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2147 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2148 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2149 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2150
2151 --------------------------------
2152 -- 3.2.2 Subtype Declaration --
2153 --------------------------------
2154
2155 -- SUBTYPE_DECLARATION ::=
2156 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
2157
2158 -- The subtype indication field is set to Empty for subtypes
2159 -- declared in package Standard (Positive, Natural).
2160
2161 -- N_Subtype_Declaration
2162 -- Sloc points to SUBTYPE
2163 -- Defining_Identifier (Node1)
2164 -- Null_Exclusion_Present (Flag11)
2165 -- Subtype_Indication (Node5)
2166 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2167 -- Exception_Junk (Flag8-Sem)
2168
2169 -------------------------------
2170 -- 3.2.2 Subtype Indication --
2171 -------------------------------
2172
2173 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2174
2175 -- Note: if no constraint is present, the subtype indication appears
2176 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2177 -- node is used only if a constraint is present.
2178
2179 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2180 -- with the null-exclusion part (see AI-231), we had to introduce a new
2181 -- attribute in all the parents of subtype_indication nodes to indicate
2182 -- if the null-exclusion is present.
2183
2184 -- Note: the reason that this node has expression fields is that a
2185 -- subtype indication can appear as an operand of a membership test.
2186
2187 -- N_Subtype_Indication
2188 -- Sloc points to first token of subtype mark
2189 -- Subtype_Mark (Node4)
2190 -- Constraint (Node3)
2191 -- Etype (Node5-Sem)
2192 -- Must_Not_Freeze (Flag8-Sem)
2193
2194 -- Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2195 -- reason for this redundancy is so that in a list of array index types,
2196 -- the Etype can be uniformly accessed to determine the subscript type.
2197 -- This means that no Itype is constructed for the actual subtype that
2198 -- is created by the subtype indication. If such an Itype is required,
2199 -- it is constructed in the context in which the indication appears.
2200
2201 -------------------------
2202 -- 3.2.2 Subtype Mark --
2203 -------------------------
2204
2205 -- SUBTYPE_MARK ::= subtype_NAME
2206
2207 -----------------------
2208 -- 3.2.2 Constraint --
2209 -----------------------
2210
2211 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2212
2213 ------------------------------
2214 -- 3.2.2 Scalar Constraint --
2215 ------------------------------
2216
2217 -- SCALAR_CONSTRAINT ::=
2218 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2219
2220 ---------------------------------
2221 -- 3.2.2 Composite Constraint --
2222 ---------------------------------
2223
2224 -- COMPOSITE_CONSTRAINT ::=
2225 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2226
2227 -------------------------------
2228 -- 3.3.1 Object Declaration --
2229 -------------------------------
2230
2231 -- OBJECT_DECLARATION ::=
2232 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2233 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2234 -- [ASPECT_SPECIFICATIONS];
2235 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2236 -- ACCESS_DEFINITION [:= EXPRESSION]
2237 -- [ASPECT_SPECIFICATIONS];
2238 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2239 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2240 -- [ASPECT_SPECIFICATIONS];
2241 -- | SINGLE_TASK_DECLARATION
2242 -- | SINGLE_PROTECTED_DECLARATION
2243
2244 -- Note: aliased is not permitted in Ada 83 mode
2245
2246 -- The N_Object_Declaration node is only for the first two cases.
2247 -- Single task declaration is handled by P_Task (9.1)
2248 -- Single protected declaration is handled by P_protected (9.5)
2249
2250 -- Although the syntax allows multiple identifiers in the list, the
2251 -- semantics is as though successive declarations were given with
2252 -- identical type definition and expression components. To simplify
2253 -- semantic processing, the parser represents a multiple declaration
2254 -- case as a sequence of single declarations, using the More_Ids and
2255 -- Prev_Ids flags to preserve the original source form as described
2256 -- in the section on "Handling of Defining Identifier Lists".
2257
2258 -- The flag Has_Init_Expression is set if an initializing expression
2259 -- is present. Normally it is set if and only if Expression contains
2260 -- a non-empty value, but there is an exception to this. When the
2261 -- initializing expression is an aggregate which requires explicit
2262 -- assignments, the Expression field gets set to Empty, but this flag
2263 -- is still set, so we don't forget we had an initializing expression.
2264
2265 -- Note: if a range check is required for the initialization
2266 -- expression then the Do_Range_Check flag is set in the Expression,
2267 -- with the check being done against the type given by the object
2268 -- definition, which is also the Etype of the defining identifier.
2269
2270 -- Note: the contents of the Expression field must be ignored (i.e.
2271 -- treated as though it were Empty) if No_Initialization is set True.
2272
2273 -- Note: the back end places some restrictions on the form of the
2274 -- Expression field. If the object being declared is Atomic, then
2275 -- the Expression may not have the form of an aggregate (since this
2276 -- might cause the back end to generate separate assignments). In this
2277 -- case the front end must generate an extra temporary and initialize
2278 -- this temporary as required (the temporary itself is not atomic).
2279
2280 -- Note: there is not node kind for object definition. Instead, the
2281 -- corresponding field holds a subtype indication, an array type
2282 -- definition, or (Ada 2005, AI-406) an access definition.
2283
2284 -- N_Object_Declaration
2285 -- Sloc points to first identifier
2286 -- Defining_Identifier (Node1)
2287 -- Aliased_Present (Flag4) set if ALIASED appears
2288 -- Constant_Present (Flag17) set if CONSTANT appears
2289 -- Null_Exclusion_Present (Flag11)
2290 -- Object_Definition (Node4) subtype indic./array type def./access def.
2291 -- Expression (Node3) (set to Empty if not present)
2292 -- Handler_List_Entry (Node2-Sem)
2293 -- Corresponding_Generic_Association (Node5-Sem)
2294 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2295 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2296 -- No_Initialization (Flag13-Sem)
2297 -- Assignment_OK (Flag15-Sem)
2298 -- Exception_Junk (Flag8-Sem)
2299 -- Is_Subprogram_Descriptor (Flag16-Sem)
2300 -- Has_Init_Expression (Flag14)
2301
2302 -------------------------------------
2303 -- 3.3.1 Defining Identifier List --
2304 -------------------------------------
2305
2306 -- DEFINING_IDENTIFIER_LIST ::=
2307 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2308
2309 -------------------------------
2310 -- 3.3.2 Number Declaration --
2311 -------------------------------
2312
2313 -- NUMBER_DECLARATION ::=
2314 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2315
2316 -- Although the syntax allows multiple identifiers in the list, the
2317 -- semantics is as though successive declarations were given with
2318 -- identical expressions. To simplify semantic processing, the parser
2319 -- represents a multiple declaration case as a sequence of single
2320 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2321 -- the original source form as described in the section on "Handling
2322 -- of Defining Identifier Lists".
2323
2324 -- N_Number_Declaration
2325 -- Sloc points to first identifier
2326 -- Defining_Identifier (Node1)
2327 -- Expression (Node3)
2328 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2329 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2330
2331 ----------------------------------
2332 -- 3.4 Derived Type Definition --
2333 ----------------------------------
2334
2335 -- DERIVED_TYPE_DEFINITION ::=
2336 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2337 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2338
2339 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2340 -- in Ada 83 mode
2341
2342 -- Note: a record extension part is required if ABSTRACT is present
2343
2344 -- N_Derived_Type_Definition
2345 -- Sloc points to NEW
2346 -- Abstract_Present (Flag4)
2347 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2348 -- Subtype_Indication (Node5)
2349 -- Record_Extension_Part (Node3) (set to Empty if not present)
2350 -- Limited_Present (Flag17)
2351 -- Task_Present (Flag5) set in task interfaces
2352 -- Protected_Present (Flag6) set in protected interfaces
2353 -- Synchronized_Present (Flag7) set in interfaces
2354 -- Interface_List (List2) (set to No_List if none)
2355 -- Interface_Present (Flag16) set in abstract interfaces
2356
2357 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2358 -- Interface_List, and Interface_Present are used for abstract
2359 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2360
2361 ---------------------------
2362 -- 3.5 Range Constraint --
2363 ---------------------------
2364
2365 -- RANGE_CONSTRAINT ::= range RANGE
2366
2367 -- N_Range_Constraint
2368 -- Sloc points to RANGE
2369 -- Range_Expression (Node4)
2370
2371 ----------------
2372 -- 3.5 Range --
2373 ----------------
2374
2375 -- RANGE ::=
2376 -- RANGE_ATTRIBUTE_REFERENCE
2377 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2378
2379 -- Note: the case of a range given as a range attribute reference
2380 -- appears directly in the tree as an attribute reference.
2381
2382 -- Note: the field name for a reference to a range is Range_Expression
2383 -- rather than Range, because range is a reserved keyword in Ada!
2384
2385 -- Note: the reason that this node has expression fields is that a
2386 -- range can appear as an operand of a membership test. The Etype
2387 -- field is the type of the range (we do NOT construct an implicit
2388 -- subtype to represent the range exactly).
2389
2390 -- N_Range
2391 -- Sloc points to ..
2392 -- Low_Bound (Node1)
2393 -- High_Bound (Node2)
2394 -- Includes_Infinities (Flag11)
2395 -- plus fields for expression
2396
2397 -- Note: if the range appears in a context, such as a subtype
2398 -- declaration, where range checks are required on one or both of
2399 -- the expression fields, then type conversion nodes are inserted
2400 -- to represent the required checks.
2401
2402 ----------------------------------------
2403 -- 3.5.1 Enumeration Type Definition --
2404 ----------------------------------------
2405
2406 -- ENUMERATION_TYPE_DEFINITION ::=
2407 -- (ENUMERATION_LITERAL_SPECIFICATION
2408 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2409
2410 -- Note: the Literals field in the node described below is null for
2411 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2412 -- which special processing handles these types as special cases.
2413
2414 -- N_Enumeration_Type_Definition
2415 -- Sloc points to left parenthesis
2416 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2417 -- End_Label (Node4) (set to Empty if internally generated record)
2418
2419 ----------------------------------------------
2420 -- 3.5.1 Enumeration Literal Specification --
2421 ----------------------------------------------
2422
2423 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2424 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2425
2426 ---------------------------------------
2427 -- 3.5.1 Defining Character Literal --
2428 ---------------------------------------
2429
2430 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2431
2432 -- A defining character literal is an entity, which has additional
2433 -- fields depending on the setting of the Ekind field. These
2434 -- additional fields are defined (and access subprograms declared)
2435 -- in package Einfo.
2436
2437 -- Note: N_Defining_Character_Literal is an extended node whose fields
2438 -- are deliberate layed out to match the layout of fields in an ordinary
2439 -- N_Character_Literal node allowing for easy alteration of a character
2440 -- literal node into a defining character literal node. For details, see
2441 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2442
2443 -- N_Defining_Character_Literal
2444 -- Sloc points to literal
2445 -- Chars (Name1) contains the Name_Id for the identifier
2446 -- Next_Entity (Node2-Sem)
2447 -- Scope (Node3-Sem)
2448 -- Etype (Node5-Sem)
2449
2450 ------------------------------------
2451 -- 3.5.4 Integer Type Definition --
2452 ------------------------------------
2453
2454 -- Note: there is an error in this rule in the latest version of the
2455 -- grammar, so we have retained the old rule pending clarification.
2456
2457 -- INTEGER_TYPE_DEFINITION ::=
2458 -- SIGNED_INTEGER_TYPE_DEFINITION
2459 -- | MODULAR_TYPE_DEFINITION
2460
2461 -------------------------------------------
2462 -- 3.5.4 Signed Integer Type Definition --
2463 -------------------------------------------
2464
2465 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2466 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2467
2468 -- Note: the Low_Bound and High_Bound fields are set to Empty
2469 -- for integer types defined in package Standard.
2470
2471 -- N_Signed_Integer_Type_Definition
2472 -- Sloc points to RANGE
2473 -- Low_Bound (Node1)
2474 -- High_Bound (Node2)
2475
2476 ------------------------------------
2477 -- 3.5.4 Modular Type Definition --
2478 ------------------------------------
2479
2480 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2481
2482 -- N_Modular_Type_Definition
2483 -- Sloc points to MOD
2484 -- Expression (Node3)
2485
2486 ---------------------------------
2487 -- 3.5.6 Real Type Definition --
2488 ---------------------------------
2489
2490 -- REAL_TYPE_DEFINITION ::=
2491 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2492
2493 --------------------------------------
2494 -- 3.5.7 Floating Point Definition --
2495 --------------------------------------
2496
2497 -- FLOATING_POINT_DEFINITION ::=
2498 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2499
2500 -- Note: The Digits_Expression and Real_Range_Specifications fields
2501 -- are set to Empty for floating-point types declared in Standard.
2502
2503 -- N_Floating_Point_Definition
2504 -- Sloc points to DIGITS
2505 -- Digits_Expression (Node2)
2506 -- Real_Range_Specification (Node4) (set to Empty if not present)
2507
2508 -------------------------------------
2509 -- 3.5.7 Real Range Specification --
2510 -------------------------------------
2511
2512 -- REAL_RANGE_SPECIFICATION ::=
2513 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2514
2515 -- N_Real_Range_Specification
2516 -- Sloc points to RANGE
2517 -- Low_Bound (Node1)
2518 -- High_Bound (Node2)
2519
2520 -----------------------------------
2521 -- 3.5.9 Fixed Point Definition --
2522 -----------------------------------
2523
2524 -- FIXED_POINT_DEFINITION ::=
2525 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2526
2527 --------------------------------------------
2528 -- 3.5.9 Ordinary Fixed Point Definition --
2529 --------------------------------------------
2530
2531 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2532 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2533
2534 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2535
2536 -- N_Ordinary_Fixed_Point_Definition
2537 -- Sloc points to DELTA
2538 -- Delta_Expression (Node3)
2539 -- Real_Range_Specification (Node4)
2540
2541 -------------------------------------------
2542 -- 3.5.9 Decimal Fixed Point Definition --
2543 -------------------------------------------
2544
2545 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2546 -- delta static_EXPRESSION
2547 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2548
2549 -- Note: decimal types are not permitted in Ada 83 mode
2550
2551 -- N_Decimal_Fixed_Point_Definition
2552 -- Sloc points to DELTA
2553 -- Delta_Expression (Node3)
2554 -- Digits_Expression (Node2)
2555 -- Real_Range_Specification (Node4) (set to Empty if not present)
2556
2557 ------------------------------
2558 -- 3.5.9 Digits Constraint --
2559 ------------------------------
2560
2561 -- DIGITS_CONSTRAINT ::=
2562 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2563
2564 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2565 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2566
2567 -- N_Digits_Constraint
2568 -- Sloc points to DIGITS
2569 -- Digits_Expression (Node2)
2570 -- Range_Constraint (Node4) (set to Empty if not present)
2571
2572 --------------------------------
2573 -- 3.6 Array Type Definition --
2574 --------------------------------
2575
2576 -- ARRAY_TYPE_DEFINITION ::=
2577 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2578
2579 -----------------------------------------
2580 -- 3.6 Unconstrained Array Definition --
2581 -----------------------------------------
2582
2583 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2584 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2585 -- COMPONENT_DEFINITION
2586
2587 -- Note: dimensionality of array is indicated by number of entries in
2588 -- the Subtype_Marks list, which has one entry for each dimension.
2589
2590 -- N_Unconstrained_Array_Definition
2591 -- Sloc points to ARRAY
2592 -- Subtype_Marks (List2)
2593 -- Component_Definition (Node4)
2594
2595 -----------------------------------
2596 -- 3.6 Index Subtype Definition --
2597 -----------------------------------
2598
2599 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2600
2601 -- There is no explicit node in the tree for an index subtype
2602 -- definition since the N_Unconstrained_Array_Definition node
2603 -- incorporates the type marks which appear in this context.
2604
2605 ---------------------------------------
2606 -- 3.6 Constrained Array Definition --
2607 ---------------------------------------
2608
2609 -- CONSTRAINED_ARRAY_DEFINITION ::=
2610 -- array (DISCRETE_SUBTYPE_DEFINITION
2611 -- {, DISCRETE_SUBTYPE_DEFINITION})
2612 -- of COMPONENT_DEFINITION
2613
2614 -- Note: dimensionality of array is indicated by number of entries
2615 -- in the Discrete_Subtype_Definitions list, which has one entry
2616 -- for each dimension.
2617
2618 -- N_Constrained_Array_Definition
2619 -- Sloc points to ARRAY
2620 -- Discrete_Subtype_Definitions (List2)
2621 -- Component_Definition (Node4)
2622
2623 --------------------------------------
2624 -- 3.6 Discrete Subtype Definition --
2625 --------------------------------------
2626
2627 -- DISCRETE_SUBTYPE_DEFINITION ::=
2628 -- discrete_SUBTYPE_INDICATION | RANGE
2629
2630 -------------------------------
2631 -- 3.6 Component Definition --
2632 -------------------------------
2633
2634 -- COMPONENT_DEFINITION ::=
2635 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2636
2637 -- Note: although the syntax does not permit a component definition to
2638 -- be an anonymous array (and the parser will diagnose such an attempt
2639 -- with an appropriate message), it is possible for anonymous arrays
2640 -- to appear as component definitions. The semantics and back end handle
2641 -- this case properly, and the expander in fact generates such cases.
2642 -- Access_Definition is an optional field that gives support to
2643 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2644 -- Subtype_Indication field or else the Access_Definition field.
2645
2646 -- N_Component_Definition
2647 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2648 -- Aliased_Present (Flag4)
2649 -- Null_Exclusion_Present (Flag11)
2650 -- Subtype_Indication (Node5) (set to Empty if not present)
2651 -- Access_Definition (Node3) (set to Empty if not present)
2652
2653 -----------------------------
2654 -- 3.6.1 Index Constraint --
2655 -----------------------------
2656
2657 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2658
2659 -- It is not in general possible to distinguish between discriminant
2660 -- constraints and index constraints at parse time, since a simple
2661 -- name could be either the subtype mark of a discrete range, or an
2662 -- expression in a discriminant association with no name. Either
2663 -- entry appears simply as the name, and the semantic parse must
2664 -- distinguish between the two cases. Thus we use a common tree
2665 -- node format for both of these constraint types.
2666
2667 -- See Discriminant_Constraint for format of node
2668
2669 ---------------------------
2670 -- 3.6.1 Discrete Range --
2671 ---------------------------
2672
2673 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2674
2675 ----------------------------
2676 -- 3.7 Discriminant Part --
2677 ----------------------------
2678
2679 -- DISCRIMINANT_PART ::=
2680 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2681
2682 ------------------------------------
2683 -- 3.7 Unknown Discriminant Part --
2684 ------------------------------------
2685
2686 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2687
2688 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2689
2690 -- There is no explicit node in the tree for an unknown discriminant
2691 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2692 -- parent node.
2693
2694 ----------------------------------
2695 -- 3.7 Known Discriminant Part --
2696 ----------------------------------
2697
2698 -- KNOWN_DISCRIMINANT_PART ::=
2699 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2700
2701 -------------------------------------
2702 -- 3.7 Discriminant Specification --
2703 -------------------------------------
2704
2705 -- DISCRIMINANT_SPECIFICATION ::=
2706 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2707 -- [:= DEFAULT_EXPRESSION]
2708 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2709 -- [:= DEFAULT_EXPRESSION]
2710
2711 -- Although the syntax allows multiple identifiers in the list, the
2712 -- semantics is as though successive specifications were given with
2713 -- identical type definition and expression components. To simplify
2714 -- semantic processing, the parser represents a multiple declaration
2715 -- case as a sequence of single specifications, using the More_Ids and
2716 -- Prev_Ids flags to preserve the original source form as described
2717 -- in the section on "Handling of Defining Identifier Lists".
2718
2719 -- N_Discriminant_Specification
2720 -- Sloc points to first identifier
2721 -- Defining_Identifier (Node1)
2722 -- Null_Exclusion_Present (Flag11)
2723 -- Discriminant_Type (Node5) subtype mark or access parameter definition
2724 -- Expression (Node3) (set to Empty if no default expression)
2725 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2726 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2727
2728 -----------------------------
2729 -- 3.7 Default Expression --
2730 -----------------------------
2731
2732 -- DEFAULT_EXPRESSION ::= EXPRESSION
2733
2734 ------------------------------------
2735 -- 3.7.1 Discriminant Constraint --
2736 ------------------------------------
2737
2738 -- DISCRIMINANT_CONSTRAINT ::=
2739 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2740
2741 -- It is not in general possible to distinguish between discriminant
2742 -- constraints and index constraints at parse time, since a simple
2743 -- name could be either the subtype mark of a discrete range, or an
2744 -- expression in a discriminant association with no name. Either
2745 -- entry appears simply as the name, and the semantic parse must
2746 -- distinguish between the two cases. Thus we use a common tree
2747 -- node format for both of these constraint types.
2748
2749 -- N_Index_Or_Discriminant_Constraint
2750 -- Sloc points to left paren
2751 -- Constraints (List1) points to list of discrete ranges or
2752 -- discriminant associations
2753
2754 -------------------------------------
2755 -- 3.7.1 Discriminant Association --
2756 -------------------------------------
2757
2758 -- DISCRIMINANT_ASSOCIATION ::=
2759 -- [discriminant_SELECTOR_NAME
2760 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2761
2762 -- Note: a discriminant association that has no selector name list
2763 -- appears directly as an expression in the tree.
2764
2765 -- N_Discriminant_Association
2766 -- Sloc points to first token of discriminant association
2767 -- Selector_Names (List1) (always non-empty, since if no selector
2768 -- names are present, this node is not used, see comment above)
2769 -- Expression (Node3)
2770
2771 ---------------------------------
2772 -- 3.8 Record Type Definition --
2773 ---------------------------------
2774
2775 -- RECORD_TYPE_DEFINITION ::=
2776 -- [[abstract] tagged] [limited] RECORD_DEFINITION
2777
2778 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2779
2780 -- There is no explicit node in the tree for a record type definition.
2781 -- Instead the flags for Tagged_Present and Limited_Present appear in
2782 -- the N_Record_Definition node for a record definition appearing in
2783 -- the context of a record type definition.
2784
2785 ----------------------------
2786 -- 3.8 Record Definition --
2787 ----------------------------
2788
2789 -- RECORD_DEFINITION ::=
2790 -- record
2791 -- COMPONENT_LIST
2792 -- end record
2793 -- | null record
2794
2795 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
2796 -- flags appear only for a record definition appearing in a record
2797 -- type definition.
2798
2799 -- Note: the NULL RECORD case is not permitted in Ada 83
2800
2801 -- N_Record_Definition
2802 -- Sloc points to RECORD or NULL
2803 -- End_Label (Node4) (set to Empty if internally generated record)
2804 -- Abstract_Present (Flag4)
2805 -- Tagged_Present (Flag15)
2806 -- Limited_Present (Flag17)
2807 -- Component_List (Node1) empty in null record case
2808 -- Null_Present (Flag13) set in null record case
2809 -- Task_Present (Flag5) set in task interfaces
2810 -- Protected_Present (Flag6) set in protected interfaces
2811 -- Synchronized_Present (Flag7) set in interfaces
2812 -- Interface_Present (Flag16) set in abstract interfaces
2813 -- Interface_List (List2) (set to No_List if none)
2814
2815 -- Note: Task_Present, Protected_Present, Synchronized _Present,
2816 -- Interface_List and Interface_Present are used for abstract
2817 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2818
2819 -------------------------
2820 -- 3.8 Component List --
2821 -------------------------
2822
2823 -- COMPONENT_LIST ::=
2824 -- COMPONENT_ITEM {COMPONENT_ITEM}
2825 -- | {COMPONENT_ITEM} VARIANT_PART
2826 -- | null;
2827
2828 -- N_Component_List
2829 -- Sloc points to first token of component list
2830 -- Component_Items (List3)
2831 -- Variant_Part (Node4) (set to Empty if no variant part)
2832 -- Null_Present (Flag13)
2833
2834 -------------------------
2835 -- 3.8 Component Item --
2836 -------------------------
2837
2838 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2839
2840 -- Note: A component item can also be a pragma, and in the tree
2841 -- that is obtained after semantic processing, a component item
2842 -- can be an N_Null node resulting from a non-recognized pragma.
2843
2844 --------------------------------
2845 -- 3.8 Component Declaration --
2846 --------------------------------
2847
2848 -- COMPONENT_DECLARATION ::=
2849 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2850 -- [:= DEFAULT_EXPRESSION]
2851 -- [ASPECT_SPECIFICATIONS];
2852
2853 -- Note: although the syntax does not permit a component definition to
2854 -- be an anonymous array (and the parser will diagnose such an attempt
2855 -- with an appropriate message), it is possible for anonymous arrays
2856 -- to appear as component definitions. The semantics and back end handle
2857 -- this case properly, and the expander in fact generates such cases.
2858
2859 -- Although the syntax allows multiple identifiers in the list, the
2860 -- semantics is as though successive declarations were given with the
2861 -- same component definition and expression components. To simplify
2862 -- semantic processing, the parser represents a multiple declaration
2863 -- case as a sequence of single declarations, using the More_Ids and
2864 -- Prev_Ids flags to preserve the original source form as described
2865 -- in the section on "Handling of Defining Identifier Lists".
2866
2867 -- N_Component_Declaration
2868 -- Sloc points to first identifier
2869 -- Defining_Identifier (Node1)
2870 -- Component_Definition (Node4)
2871 -- Expression (Node3) (set to Empty if no default expression)
2872 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2873 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2874
2875 -------------------------
2876 -- 3.8.1 Variant Part --
2877 -------------------------
2878
2879 -- VARIANT_PART ::=
2880 -- case discriminant_DIRECT_NAME is
2881 -- VARIANT
2882 -- {VARIANT}
2883 -- end case;
2884
2885 -- Note: the variants list can contain pragmas as well as variants.
2886 -- In a properly formed program there is at least one variant.
2887
2888 -- N_Variant_Part
2889 -- Sloc points to CASE
2890 -- Name (Node2)
2891 -- Variants (List1)
2892
2893 --------------------
2894 -- 3.8.1 Variant --
2895 --------------------
2896
2897 -- VARIANT ::=
2898 -- when DISCRETE_CHOICE_LIST =>
2899 -- COMPONENT_LIST
2900
2901 -- N_Variant
2902 -- Sloc points to WHEN
2903 -- Discrete_Choices (List4)
2904 -- Component_List (Node1)
2905 -- Enclosing_Variant (Node2-Sem)
2906 -- Present_Expr (Uint3-Sem)
2907 -- Dcheck_Function (Node5-Sem)
2908
2909 ---------------------------------
2910 -- 3.8.1 Discrete Choice List --
2911 ---------------------------------
2912
2913 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2914
2915 ----------------------------
2916 -- 3.8.1 Discrete Choice --
2917 ----------------------------
2918
2919 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2920
2921 -- Note: in Ada 83 mode, the expression must be a simple expression
2922
2923 -- The only choice that appears explicitly is the OTHERS choice, as
2924 -- defined here. Other cases of discrete choice (expression and
2925 -- discrete range) appear directly. This production is also used
2926 -- for the OTHERS possibility of an exception choice.
2927
2928 -- Note: in accordance with the syntax, the parser does not check that
2929 -- OTHERS appears at the end on its own in a choice list context. This
2930 -- is a semantic check.
2931
2932 -- N_Others_Choice
2933 -- Sloc points to OTHERS
2934 -- Others_Discrete_Choices (List1-Sem)
2935 -- All_Others (Flag11-Sem)
2936
2937 ----------------------------------
2938 -- 3.9.1 Record Extension Part --
2939 ----------------------------------
2940
2941 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2942
2943 -- Note: record extension parts are not permitted in Ada 83 mode
2944
2945 --------------------------------------
2946 -- 3.9.4 Interface Type Definition --
2947 --------------------------------------
2948
2949 -- INTERFACE_TYPE_DEFINITION ::=
2950 -- [limited | task | protected | synchronized]
2951 -- interface [interface_list]
2952
2953 -- Note: Interfaces are implemented with N_Record_Definition and
2954 -- N_Derived_Type_Definition nodes because most of the support
2955 -- for the analysis of abstract types has been reused to
2956 -- analyze abstract interfaces.
2957
2958 ----------------------------------
2959 -- 3.10 Access Type Definition --
2960 ----------------------------------
2961
2962 -- ACCESS_TYPE_DEFINITION ::=
2963 -- ACCESS_TO_OBJECT_DEFINITION
2964 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2965
2966 --------------------------
2967 -- 3.10 Null Exclusion --
2968 --------------------------
2969
2970 -- NULL_EXCLUSION ::= not null
2971
2972 ---------------------------------------
2973 -- 3.10 Access To Object Definition --
2974 ---------------------------------------
2975
2976 -- ACCESS_TO_OBJECT_DEFINITION ::=
2977 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
2978 -- SUBTYPE_INDICATION
2979
2980 -- N_Access_To_Object_Definition
2981 -- Sloc points to ACCESS
2982 -- All_Present (Flag15)
2983 -- Null_Exclusion_Present (Flag11)
2984 -- Subtype_Indication (Node5)
2985 -- Constant_Present (Flag17)
2986
2987 -----------------------------------
2988 -- 3.10 General Access Modifier --
2989 -----------------------------------
2990
2991 -- GENERAL_ACCESS_MODIFIER ::= all | constant
2992
2993 -- Note: general access modifiers are not permitted in Ada 83 mode
2994
2995 -- There is no explicit node in the tree for general access modifier.
2996 -- Instead the All_Present or Constant_Present flags are set in the
2997 -- parent node.
2998
2999 -------------------------------------------
3000 -- 3.10 Access To Subprogram Definition --
3001 -------------------------------------------
3002
3003 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3004 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3005 -- | [NULL_EXCLUSION] access [protected] function
3006 -- PARAMETER_AND_RESULT_PROFILE
3007
3008 -- Note: access to subprograms are not permitted in Ada 83 mode
3009
3010 -- N_Access_Function_Definition
3011 -- Sloc points to ACCESS
3012 -- Null_Exclusion_Present (Flag11)
3013 -- Null_Exclusion_In_Return_Present (Flag14)
3014 -- Protected_Present (Flag6)
3015 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3016 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3017
3018 -- N_Access_Procedure_Definition
3019 -- Sloc points to ACCESS
3020 -- Null_Exclusion_Present (Flag11)
3021 -- Protected_Present (Flag6)
3022 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3023
3024 -----------------------------
3025 -- 3.10 Access Definition --
3026 -----------------------------
3027
3028 -- ACCESS_DEFINITION ::=
3029 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3030 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3031
3032 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3033
3034 -- N_Access_Definition
3035 -- Sloc points to ACCESS
3036 -- Null_Exclusion_Present (Flag11)
3037 -- All_Present (Flag15)
3038 -- Constant_Present (Flag17)
3039 -- Subtype_Mark (Node4)
3040 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3041
3042 -----------------------------------------
3043 -- 3.10.1 Incomplete Type Declaration --
3044 -----------------------------------------
3045
3046 -- INCOMPLETE_TYPE_DECLARATION ::=
3047 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3048
3049 -- N_Incomplete_Type_Declaration
3050 -- Sloc points to TYPE
3051 -- Defining_Identifier (Node1)
3052 -- Discriminant_Specifications (List4) (set to No_List if no
3053 -- discriminant part, or if the discriminant part is an
3054 -- unknown discriminant part)
3055 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3056 -- Tagged_Present (Flag15)
3057
3058 ----------------------------
3059 -- 3.11 Declarative Part --
3060 ----------------------------
3061
3062 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3063
3064 -- Note: although the parser enforces the syntactic requirement that
3065 -- a declarative part can contain only declarations, the semantic
3066 -- processing may add statements to the list of actions in a
3067 -- declarative part, so the code generator should be prepared
3068 -- to accept a statement in this position.
3069
3070 ----------------------------
3071 -- 3.11 Declarative Item --
3072 ----------------------------
3073
3074 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3075
3076 ----------------------------------
3077 -- 3.11 Basic Declarative Item --
3078 ----------------------------------
3079
3080 -- BASIC_DECLARATIVE_ITEM ::=
3081 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3082
3083 ----------------
3084 -- 3.11 Body --
3085 ----------------
3086
3087 -- BODY ::= PROPER_BODY | BODY_STUB
3088
3089 -----------------------
3090 -- 3.11 Proper Body --
3091 -----------------------
3092
3093 -- PROPER_BODY ::=
3094 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3095
3096 ---------------
3097 -- 4.1 Name --
3098 ---------------
3099
3100 -- NAME ::=
3101 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3102 -- | INDEXED_COMPONENT | SLICE
3103 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3104 -- | TYPE_CONVERSION | FUNCTION_CALL
3105 -- | CHARACTER_LITERAL
3106
3107 ----------------------
3108 -- 4.1 Direct Name --
3109 ----------------------
3110
3111 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3112
3113 -----------------
3114 -- 4.1 Prefix --
3115 -----------------
3116
3117 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3118
3119 -------------------------------
3120 -- 4.1 Explicit Dereference --
3121 -------------------------------
3122
3123 -- EXPLICIT_DEREFERENCE ::= NAME . all
3124
3125 -- N_Explicit_Dereference
3126 -- Sloc points to ALL
3127 -- Prefix (Node3)
3128 -- Actual_Designated_Subtype (Node4-Sem)
3129 -- plus fields for expression
3130
3131 -------------------------------
3132 -- 4.1 Implicit Dereference --
3133 -------------------------------
3134
3135 -- IMPLICIT_DEREFERENCE ::= NAME
3136
3137 ------------------------------
3138 -- 4.1.1 Indexed Component --
3139 ------------------------------
3140
3141 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3142
3143 -- Note: the parser may generate this node in some situations where it
3144 -- should be a function call. The semantic pass must correct this
3145 -- misidentification (which is inevitable at the parser level).
3146
3147 -- N_Indexed_Component
3148 -- Sloc contains a copy of the Sloc value of the Prefix
3149 -- Prefix (Node3)
3150 -- Expressions (List1)
3151 -- plus fields for expression
3152
3153 -- Note: if any of the subscripts requires a range check, then the
3154 -- Do_Range_Check flag is set on the corresponding expression, with
3155 -- the index type being determined from the type of the Prefix, which
3156 -- references the array being indexed.
3157
3158 -- Note: in a fully analyzed and expanded indexed component node, and
3159 -- hence in any such node that gigi sees, if the prefix is an access
3160 -- type, then an explicit dereference operation has been inserted.
3161
3162 ------------------
3163 -- 4.1.2 Slice --
3164 ------------------
3165
3166 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3167
3168 -- Note: an implicit subtype is created to describe the resulting
3169 -- type, so that the bounds of this type are the bounds of the slice.
3170
3171 -- N_Slice
3172 -- Sloc points to first token of prefix
3173 -- Prefix (Node3)
3174 -- Discrete_Range (Node4)
3175 -- plus fields for expression
3176
3177 -------------------------------
3178 -- 4.1.3 Selected Component --
3179 -------------------------------
3180
3181 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3182
3183 -- Note: selected components that are semantically expanded names get
3184 -- changed during semantic processing into the separate N_Expanded_Name
3185 -- node. See description of this node in the section on semantic nodes.
3186
3187 -- N_Selected_Component
3188 -- Sloc points to period
3189 -- Prefix (Node3)
3190 -- Selector_Name (Node2)
3191 -- Associated_Node (Node4-Sem)
3192 -- Do_Discriminant_Check (Flag13-Sem)
3193 -- Is_In_Discriminant_Check (Flag11-Sem)
3194 -- plus fields for expression
3195
3196 --------------------------
3197 -- 4.1.3 Selector Name --
3198 --------------------------
3199
3200 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3201
3202 --------------------------------
3203 -- 4.1.4 Attribute Reference --
3204 --------------------------------
3205
3206 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3207
3208 -- Note: the syntax is quite ambiguous at this point. Consider:
3209
3210 -- A'Length (X) X is part of the attribute designator
3211 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3212 -- A'Class (X) X is the expression of a type conversion
3213
3214 -- It would be possible for the parser to distinguish these cases
3215 -- by looking at the attribute identifier. However, that would mean
3216 -- more work in introducing new implementation defined attributes,
3217 -- and also it would mean that special processing for attributes
3218 -- would be scattered around, instead of being centralized in the
3219 -- semantic routine that handles an N_Attribute_Reference node.
3220 -- Consequently, the parser in all the above cases stores the
3221 -- expression (X in these examples) as a single element list in
3222 -- in the Expressions field of the N_Attribute_Reference node.
3223
3224 -- Similarly, for attributes like Max which take two arguments,
3225 -- we store the two arguments as a two element list in the
3226 -- Expressions field. Of course it is clear at parse time that
3227 -- this case is really a function call with an attribute as the
3228 -- prefix, but it turns out to be convenient to handle the two
3229 -- argument case in a similar manner to the one argument case,
3230 -- and indeed in general the parser will accept any number of
3231 -- expressions in this position and store them as a list in the
3232 -- attribute reference node. This allows for future addition of
3233 -- attributes that take more than two arguments.
3234
3235 -- Note: named associates are not permitted in function calls where
3236 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3237 -- to skip the normal subprogram argument processing.
3238
3239 -- Note: for the attributes whose designators are technically keywords,
3240 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3241 -- the corresponding name, even though no identifier is involved.
3242
3243 -- Note: the generated code may contain stream attributes applied to
3244 -- limited types for which no stream routines exist officially. In such
3245 -- case, the result is to use the stream attribute for the underlying
3246 -- full type, or in the case of a protected type, the components
3247 -- (including any discriminants) are merely streamed in order.
3248
3249 -- See Exp_Attr for a complete description of which attributes are
3250 -- passed onto Gigi, and which are handled entirely by the front end.
3251
3252 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3253 -- a non-standard enumeration type or a nonzero/zero semantics
3254 -- boolean type, so the value is simply the stored representation.
3255
3256 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3257 -- references a subprogram that is a renaming, then the front end must
3258 -- rewrite the attribute to refer directly to the renamed entity.
3259
3260 -- Note: In generated code, the Address and Unrestricted_Access
3261 -- attributes can be applied to any expression, and the meaning is
3262 -- to create an object containing the value (the object is in the
3263 -- current stack frame), and pass the address of this value. If the
3264 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3265 -- is taken must be on a byte (storage unit) boundary, and if it is
3266 -- not (or may not be), then the generated code must create a copy
3267 -- that is byte aligned, and pass the address of this copy.
3268
3269 -- N_Attribute_Reference
3270 -- Sloc points to apostrophe
3271 -- Prefix (Node3)
3272 -- Attribute_Name (Name2) identifier name from attribute designator
3273 -- Expressions (List1) (set to No_List if no associated expressions)
3274 -- Entity (Node4-Sem) used if the attribute yields a type
3275 -- Associated_Node (Node4-Sem)
3276 -- Do_Overflow_Check (Flag17-Sem)
3277 -- Redundant_Use (Flag13-Sem)
3278 -- Must_Be_Byte_Aligned (Flag14)
3279 -- plus fields for expression
3280
3281 ---------------------------------
3282 -- 4.1.4 Attribute Designator --
3283 ---------------------------------
3284
3285 -- ATTRIBUTE_DESIGNATOR ::=
3286 -- IDENTIFIER [(static_EXPRESSION)]
3287 -- | access | delta | digits
3288
3289 -- There is no explicit node in the tree for an attribute designator.
3290 -- Instead the Attribute_Name and Expressions fields of the parent
3291 -- node (N_Attribute_Reference node) hold the information.
3292
3293 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3294 -- designator, then they are treated as identifiers internally
3295 -- rather than the keywords of the same name.
3296
3297 --------------------------------------
3298 -- 4.1.4 Range Attribute Reference --
3299 --------------------------------------
3300
3301 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3302
3303 -- A range attribute reference is represented in the tree using the
3304 -- normal N_Attribute_Reference node.
3305
3306 ---------------------------------------
3307 -- 4.1.4 Range Attribute Designator --
3308 ---------------------------------------
3309
3310 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3311
3312 -- A range attribute designator is represented in the tree using the
3313 -- normal N_Attribute_Reference node.
3314
3315 --------------------
3316 -- 4.3 Aggregate --
3317 --------------------
3318
3319 -- AGGREGATE ::=
3320 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3321
3322 -----------------------------
3323 -- 4.3.1 Record Aggregate --
3324 -----------------------------
3325
3326 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3327
3328 -- N_Aggregate
3329 -- Sloc points to left parenthesis
3330 -- Expressions (List1) (set to No_List if none or null record case)
3331 -- Component_Associations (List2) (set to No_List if none)
3332 -- Null_Record_Present (Flag17)
3333 -- Aggregate_Bounds (Node3-Sem)
3334 -- Associated_Node (Node4-Sem)
3335 -- Static_Processing_OK (Flag4-Sem)
3336 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3337 -- Expansion_Delayed (Flag11-Sem)
3338 -- Has_Self_Reference (Flag13-Sem)
3339 -- plus fields for expression
3340
3341 -- Note: this structure is used for both record and array aggregates
3342 -- since the two cases are not separable by the parser. The parser
3343 -- makes no attempt to enforce consistency here, so it is up to the
3344 -- semantic phase to make sure that the aggregate is consistent (i.e.
3345 -- that it is not a "half-and-half" case that mixes record and array
3346 -- syntax. In particular, for a record aggregate, the expressions
3347 -- field will be set if there are positional associations.
3348
3349 -- Note: N_Aggregate is not used for all aggregates; in particular,
3350 -- there is a separate node kind for extension aggregates.
3351
3352 -- Note: gigi/gcc can handle array aggregates correctly providing that
3353 -- they are entirely positional, and the array subtype involved has a
3354 -- known at compile time length and is not bit packed, or a convention
3355 -- Fortran array with more than one dimension. If these conditions
3356 -- are not met, then the front end must translate the aggregate into
3357 -- an appropriate set of assignments into a temporary.
3358
3359 -- Note: for the record aggregate case, gigi/gcc can handle all cases of
3360 -- record aggregates, including those for packed, and rep-claused
3361 -- records, and also variant records, providing that there are no
3362 -- variable length fields whose size is not known at compile time, and
3363 -- providing that the aggregate is presented in fully named form.
3364
3365 ----------------------------------------------
3366 -- 4.3.1 Record Component Association List --
3367 ----------------------------------------------
3368
3369 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3370 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3371 -- | null record
3372
3373 -- There is no explicit node in the tree for a record component
3374 -- association list. Instead the Null_Record_Present flag is set in
3375 -- the parent node for the NULL RECORD case.
3376
3377 ------------------------------------------------------
3378 -- 4.3.1 Record Component Association (also 4.3.3) --
3379 ------------------------------------------------------
3380
3381 -- RECORD_COMPONENT_ASSOCIATION ::=
3382 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3383
3384 -- N_Component_Association
3385 -- Sloc points to first selector name
3386 -- Choices (List1)
3387 -- Loop_Actions (List2-Sem)
3388 -- Expression (Node3)
3389 -- Box_Present (Flag15)
3390 -- Inherited_Discriminant (Flag13)
3391
3392 -- Note: this structure is used for both record component associations
3393 -- and array component associations, since the two cases aren't always
3394 -- separable by the parser. The choices list may represent either a
3395 -- list of selector names in the record aggregate case, or a list of
3396 -- discrete choices in the array aggregate case or an N_Others_Choice
3397 -- node (which appears as a singleton list). Box_Present gives support
3398 -- to Ada 2005 (AI-287).
3399
3400 ----------------------------------
3401 -- 4.3.1 Component Choice List --
3402 ----------------------------------
3403
3404 -- COMPONENT_CHOICE_LIST ::=
3405 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3406 -- | others
3407
3408 -- The entries of a component choice list appear in the Choices list of
3409 -- the associated N_Component_Association, as either selector names, or
3410 -- as an N_Others_Choice node.
3411
3412 --------------------------------
3413 -- 4.3.2 Extension Aggregate --
3414 --------------------------------
3415
3416 -- EXTENSION_AGGREGATE ::=
3417 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3418
3419 -- Note: extension aggregates are not permitted in Ada 83 mode
3420
3421 -- N_Extension_Aggregate
3422 -- Sloc points to left parenthesis
3423 -- Ancestor_Part (Node3)
3424 -- Associated_Node (Node4-Sem)
3425 -- Expressions (List1) (set to No_List if none or null record case)
3426 -- Component_Associations (List2) (set to No_List if none)
3427 -- Null_Record_Present (Flag17)
3428 -- Expansion_Delayed (Flag11-Sem)
3429 -- Has_Self_Reference (Flag13-Sem)
3430 -- plus fields for expression
3431
3432 --------------------------
3433 -- 4.3.2 Ancestor Part --
3434 --------------------------
3435
3436 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3437
3438 ----------------------------
3439 -- 4.3.3 Array Aggregate --
3440 ----------------------------
3441
3442 -- ARRAY_AGGREGATE ::=
3443 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3444
3445 ---------------------------------------
3446 -- 4.3.3 Positional Array Aggregate --
3447 ---------------------------------------
3448
3449 -- POSITIONAL_ARRAY_AGGREGATE ::=
3450 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3451 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3452
3453 -- See Record_Aggregate (4.3.1) for node structure
3454
3455 ----------------------------------
3456 -- 4.3.3 Named Array Aggregate --
3457 ----------------------------------
3458
3459 -- NAMED_ARRAY_AGGREGATE ::=
3460 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3461
3462 -- See Record_Aggregate (4.3.1) for node structure
3463
3464 ----------------------------------------
3465 -- 4.3.3 Array Component Association --
3466 ----------------------------------------
3467
3468 -- ARRAY_COMPONENT_ASSOCIATION ::=
3469 -- DISCRETE_CHOICE_LIST => EXPRESSION
3470
3471 -- See Record_Component_Association (4.3.1) for node structure
3472
3473 --------------------------------------------------
3474 -- 4.4 Expression/Relation/Term/Factor/Primary --
3475 --------------------------------------------------
3476
3477 -- EXPRESSION ::=
3478 -- RELATION {and RELATION} | RELATION {and then RELATION}
3479 -- | RELATION {or RELATION} | RELATION {or else RELATION}
3480 -- | RELATION {xor RELATION}
3481
3482 -- RELATION ::=
3483 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3484 -- | SIMPLE_EXPRESSION [not] in RANGE
3485 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3486
3487 -- SIMPLE_EXPRESSION ::=
3488 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3489
3490 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3491
3492 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3493
3494 -- No nodes are generated for any of these constructs. Instead, the
3495 -- node for the operator appears directly. When we refer to an
3496 -- expression in this description, we mean any of the possible
3497 -- constituent components of an expression (e.g. identifier is
3498 -- an example of an expression).
3499
3500 ------------------
3501 -- 4.4 Primary --
3502 ------------------
3503
3504 -- PRIMARY ::=
3505 -- NUMERIC_LITERAL | null
3506 -- | STRING_LITERAL | AGGREGATE
3507 -- | NAME | QUALIFIED_EXPRESSION
3508 -- | ALLOCATOR | (EXPRESSION)
3509
3510 -- Usually there is no explicit node in the tree for primary. Instead
3511 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3512 -- exceptions. First, there is an explicit node for a null primary.
3513
3514 -- N_Null
3515 -- Sloc points to NULL
3516 -- plus fields for expression
3517
3518 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3519 -- that the parser keep track of which subexpressions are enclosed
3520 -- in parentheses, and how many levels of parentheses are used. This
3521 -- information is required for optimization purposes, and also for
3522 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3523 -- conform with ((((1)))) in the body).
3524
3525 -- The parentheses are recorded by keeping a Paren_Count field in every
3526 -- subexpression node (it is actually present in all nodes, but only
3527 -- used in subexpression nodes). This count records the number of
3528 -- levels of parentheses. If the number of levels in the source exceeds
3529 -- the maximum accommodated by this count, then the count is simply left
3530 -- at the maximum value. This means that there are some pathological
3531 -- cases of failure to detect conformance failures (e.g. an expression
3532 -- with 500 levels of parens will conform with one with 501 levels),
3533 -- but we do not need to lose sleep over this.
3534
3535 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3536 -- type N_Parenthesized_Expression used to accurately record unlimited
3537 -- numbers of levels of parentheses. However, it turned out to be a
3538 -- real nuisance to have to take into account the possible presence of
3539 -- this node during semantic analysis, since basically parentheses have
3540 -- zero relevance to semantic analysis.
3541
3542 -- Note: the level of parentheses always present in things like
3543 -- aggregates does not count, only the parentheses in the primary
3544 -- (EXPRESSION) affect the setting of the Paren_Count field.
3545
3546 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3547 -- treated as though it were Empty) if No_Initialization is set True.
3548
3549 --------------------------------------
3550 -- 4.5 Short Circuit Control Forms --
3551 --------------------------------------
3552
3553 -- EXPRESSION ::=
3554 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3555
3556 -- Gigi restriction: For both these control forms, the operand and
3557 -- result types are always Standard.Boolean. The expander inserts the
3558 -- required conversion operations where needed to ensure this is the
3559 -- case.
3560
3561 -- N_And_Then
3562 -- Sloc points to AND of AND THEN
3563 -- Left_Opnd (Node2)
3564 -- Right_Opnd (Node3)
3565 -- Actions (List1-Sem)
3566 -- plus fields for expression
3567
3568 -- N_Or_Else
3569 -- Sloc points to OR of OR ELSE
3570 -- Left_Opnd (Node2)
3571 -- Right_Opnd (Node3)
3572 -- Actions (List1-Sem)
3573 -- plus fields for expression
3574
3575 -- Note: The Actions field is used to hold actions associated with
3576 -- the right hand operand. These have to be treated specially since
3577 -- they are not unconditionally executed. See Insert_Actions for a
3578 -- more detailed description of how these actions are handled.
3579
3580 ---------------------------
3581 -- 4.5 Membership Tests --
3582 ---------------------------
3583
3584 -- RELATION ::=
3585 -- SIMPLE_EXPRESSION [not] in RANGE
3586 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3587
3588 -- Note: although the grammar above allows only a range or a subtype
3589 -- mark, the parser in fact will accept any simple expression in place
3590 -- of a subtype mark. This means that the semantic analyzer must be able
3591 -- to deal with, and diagnose a simple expression other than a name for
3592 -- the right operand. This simplifies error recovery in the parser.
3593
3594 -- If extensions are enabled, the grammar is as follows:
3595
3596 -- RELATION ::=
3597 -- SIMPLE_EXPRESSION [not] in SET_ALTERNATIVE {| SET_ALTERNATIVE}
3598
3599 -- SET_ALTERNATIVE ::= RANGE | SUBTYPE_MARK
3600
3601 -- The Alternatives field below is present only if there is more than
3602 -- one Set_Alternative present, in which case Right_Opnd is set to
3603 -- Empty, and Alternatives contains the list of alternatives. In the
3604 -- tree passed to the back end, Alternatives is always No_List, and
3605 -- Right_Opnd is set (i.e. the expansion circuitry expands out the
3606 -- complex set membership case using simple membership operations).
3607
3608 -- N_In
3609 -- Sloc points to IN
3610 -- Left_Opnd (Node2)
3611 -- Right_Opnd (Node3)
3612 -- Alternatives (List4) (set to No_List if only one set alternative)
3613 -- plus fields for expression
3614
3615 -- N_Not_In
3616 -- Sloc points to NOT of NOT IN
3617 -- Left_Opnd (Node2)
3618 -- Right_Opnd (Node3)
3619 -- Alternatives (List4) (set to No_List if only one set alternative)
3620 -- plus fields for expression
3621
3622 --------------------
3623 -- 4.5 Operators --
3624 --------------------
3625
3626 -- LOGICAL_OPERATOR ::= and | or | xor
3627
3628 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3629
3630 -- BINARY_ADDING_OPERATOR ::= + | - | &
3631
3632 -- UNARY_ADDING_OPERATOR ::= + | -
3633
3634 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3635
3636 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3637
3638 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3639
3640 -- x #* y
3641 -- x #/ y
3642 -- x #mod y
3643 -- x #rem y
3644
3645 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3646 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3647 -- All handling of smalls for multiplication and division is handled
3648 -- by the front end (mod and rem result only from expansion). Gigi
3649 -- thus never needs to worry about small values (for other operators
3650 -- operating on fixed-point, e.g. addition, the small value does not
3651 -- have any semantic effect anyway, these are always integer operations.
3652
3653 -- Gigi restriction: For all operators taking Boolean operands, the
3654 -- type is always Standard.Boolean. The expander inserts the required
3655 -- conversion operations where needed to ensure this is the case.
3656
3657 -- N_Op_And
3658 -- Sloc points to AND
3659 -- Do_Length_Check (Flag4-Sem)
3660 -- plus fields for binary operator
3661 -- plus fields for expression
3662
3663 -- N_Op_Or
3664 -- Sloc points to OR
3665 -- Do_Length_Check (Flag4-Sem)
3666 -- plus fields for binary operator
3667 -- plus fields for expression
3668
3669 -- N_Op_Xor
3670 -- Sloc points to XOR
3671 -- Do_Length_Check (Flag4-Sem)
3672 -- plus fields for binary operator
3673 -- plus fields for expression
3674
3675 -- N_Op_Eq
3676 -- Sloc points to =
3677 -- plus fields for binary operator
3678 -- plus fields for expression
3679
3680 -- N_Op_Ne
3681 -- Sloc points to /=
3682 -- plus fields for binary operator
3683 -- plus fields for expression
3684
3685 -- N_Op_Lt
3686 -- Sloc points to <
3687 -- plus fields for binary operator
3688 -- plus fields for expression
3689
3690 -- N_Op_Le
3691 -- Sloc points to <=
3692 -- plus fields for binary operator
3693 -- plus fields for expression
3694
3695 -- N_Op_Gt
3696 -- Sloc points to >
3697 -- plus fields for binary operator
3698 -- plus fields for expression
3699
3700 -- N_Op_Ge
3701 -- Sloc points to >=
3702 -- plus fields for binary operator
3703 -- plus fields for expression
3704
3705 -- N_Op_Add
3706 -- Sloc points to + (binary)
3707 -- plus fields for binary operator
3708 -- plus fields for expression
3709
3710 -- N_Op_Subtract
3711 -- Sloc points to - (binary)
3712 -- plus fields for binary operator
3713 -- plus fields for expression
3714
3715 -- N_Op_Concat
3716 -- Sloc points to &
3717 -- Is_Component_Left_Opnd (Flag13-Sem)
3718 -- Is_Component_Right_Opnd (Flag14-Sem)
3719 -- plus fields for binary operator
3720 -- plus fields for expression
3721
3722 -- N_Op_Multiply
3723 -- Sloc points to *
3724 -- Treat_Fixed_As_Integer (Flag14-Sem)
3725 -- Rounded_Result (Flag18-Sem)
3726 -- plus fields for binary operator
3727 -- plus fields for expression
3728
3729 -- N_Op_Divide
3730 -- Sloc points to /
3731 -- Treat_Fixed_As_Integer (Flag14-Sem)
3732 -- Do_Division_Check (Flag13-Sem)
3733 -- Rounded_Result (Flag18-Sem)
3734 -- plus fields for binary operator
3735 -- plus fields for expression
3736
3737 -- N_Op_Mod
3738 -- Sloc points to MOD
3739 -- Treat_Fixed_As_Integer (Flag14-Sem)
3740 -- Do_Division_Check (Flag13-Sem)
3741 -- plus fields for binary operator
3742 -- plus fields for expression
3743
3744 -- N_Op_Rem
3745 -- Sloc points to REM
3746 -- Treat_Fixed_As_Integer (Flag14-Sem)
3747 -- Do_Division_Check (Flag13-Sem)
3748 -- plus fields for binary operator
3749 -- plus fields for expression
3750
3751 -- N_Op_Expon
3752 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
3753 -- Sloc points to **
3754 -- plus fields for binary operator
3755 -- plus fields for expression
3756
3757 -- N_Op_Plus
3758 -- Sloc points to + (unary)
3759 -- plus fields for unary operator
3760 -- plus fields for expression
3761
3762 -- N_Op_Minus
3763 -- Sloc points to - (unary)
3764 -- plus fields for unary operator
3765 -- plus fields for expression
3766
3767 -- N_Op_Abs
3768 -- Sloc points to ABS
3769 -- plus fields for unary operator
3770 -- plus fields for expression
3771
3772 -- N_Op_Not
3773 -- Sloc points to NOT
3774 -- plus fields for unary operator
3775 -- plus fields for expression
3776
3777 -- See also shift operators in section B.2
3778
3779 -- Note on fixed-point operations passed to Gigi: For adding operators,
3780 -- the semantics is to treat these simply as integer operations, with
3781 -- the small values being ignored (the bounds are already stored in
3782 -- units of small, so that constraint checking works as usual). For the
3783 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
3784 -- point operands if the Treat_Fixed_As_Integer flag is set and will
3785 -- thus treat these nodes in identical manner, ignoring small values.
3786
3787 --------------------------
3788 -- 4.6 Type Conversion --
3789 --------------------------
3790
3791 -- TYPE_CONVERSION ::=
3792 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3793
3794 -- In the (NAME) case, the name is stored as the expression
3795
3796 -- Note: the parser never generates a type conversion node, since it
3797 -- looks like an indexed component which is generated by preference.
3798 -- The semantic pass must correct this misidentification.
3799
3800 -- Gigi handles conversions that involve no change in the root type,
3801 -- and also all conversions from integer to floating-point types.
3802 -- Conversions from floating-point to integer are only handled in
3803 -- the case where Float_Truncate flag set. Other conversions from
3804 -- floating-point to integer (involving rounding) and all conversions
3805 -- involving fixed-point types are handled by the expander.
3806
3807 -- Sprint syntax if Float_Truncate set: X^(Y)
3808 -- Sprint syntax if Conversion_OK set X?(Y)
3809 -- Sprint syntax if both flags set X?^(Y)
3810
3811 -- Note: If either the operand or result type is fixed-point, Gigi will
3812 -- only see a type conversion node with Conversion_OK set. The front end
3813 -- takes care of all handling of small's for fixed-point conversions.
3814
3815 -- N_Type_Conversion
3816 -- Sloc points to first token of subtype mark
3817 -- Subtype_Mark (Node4)
3818 -- Expression (Node3)
3819 -- Do_Tag_Check (Flag13-Sem)
3820 -- Do_Length_Check (Flag4-Sem)
3821 -- Do_Overflow_Check (Flag17-Sem)
3822 -- Float_Truncate (Flag11-Sem)
3823 -- Rounded_Result (Flag18-Sem)
3824 -- Conversion_OK (Flag14-Sem)
3825 -- plus fields for expression
3826
3827 -- Note: if a range check is required, then the Do_Range_Check flag
3828 -- is set in the Expression with the check being done against the
3829 -- target type range (after the base type conversion, if any).
3830
3831 -------------------------------
3832 -- 4.7 Qualified Expression --
3833 -------------------------------
3834
3835 -- QUALIFIED_EXPRESSION ::=
3836 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3837
3838 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3839 -- the expression, so the Expression field of this node always points
3840 -- to a parenthesized expression in this case (i.e. Paren_Count will
3841 -- always be non-zero for the referenced expression if it is not an
3842 -- aggregate).
3843
3844 -- N_Qualified_Expression
3845 -- Sloc points to apostrophe
3846 -- Subtype_Mark (Node4)
3847 -- Expression (Node3) expression or aggregate
3848 -- plus fields for expression
3849
3850 --------------------
3851 -- 4.8 Allocator --
3852 --------------------
3853
3854 -- ALLOCATOR ::=
3855 -- new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3856
3857 -- Sprint syntax (when storage pool present)
3858 -- new xxx (storage_pool = pool)
3859
3860 -- N_Allocator
3861 -- Sloc points to NEW
3862 -- Expression (Node3) subtype indication or qualified expression
3863 -- Storage_Pool (Node1-Sem)
3864 -- Procedure_To_Call (Node2-Sem)
3865 -- Coextensions (Elist4-Sem)
3866 -- Null_Exclusion_Present (Flag11)
3867 -- No_Initialization (Flag13-Sem)
3868 -- Is_Static_Coextension (Flag14-Sem)
3869 -- Do_Storage_Check (Flag17-Sem)
3870 -- Is_Dynamic_Coextension (Flag18-Sem)
3871 -- plus fields for expression
3872
3873 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
3874 -- This flag has a special function in conjunction with the restriction
3875 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
3876 -- is not set. This means that if a source allocator is replaced with
3877 -- a constructed allocator, the Comes_From_Source flag should be copied
3878 -- to the newly created allocator.
3879
3880 ---------------------------------
3881 -- 5.1 Sequence Of Statements --
3882 ---------------------------------
3883
3884 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3885
3886 -- Note: Although the parser will not accept a declaration as a
3887 -- statement, the semantic analyzer may insert declarations (e.g.
3888 -- declarations of implicit types needed for execution of other
3889 -- statements) into a sequence of statements, so the code generator
3890 -- should be prepared to accept a declaration where a statement is
3891 -- expected. Note also that pragmas can appear as statements.
3892
3893 --------------------
3894 -- 5.1 Statement --
3895 --------------------
3896
3897 -- STATEMENT ::=
3898 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3899
3900 -- There is no explicit node in the tree for a statement. Instead, the
3901 -- individual statement appears directly. Labels are treated as a
3902 -- kind of statement, i.e. they are linked into a statement list at
3903 -- the point they appear, so the labeled statement appears following
3904 -- the label or labels in the statement list.
3905
3906 ---------------------------
3907 -- 5.1 Simple Statement --
3908 ---------------------------
3909
3910 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
3911 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
3912 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
3913 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3914 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
3915 -- | ABORT_STATEMENT | RAISE_STATEMENT
3916 -- | CODE_STATEMENT
3917
3918 -----------------------------
3919 -- 5.1 Compound Statement --
3920 -----------------------------
3921
3922 -- COMPOUND_STATEMENT ::=
3923 -- IF_STATEMENT | CASE_STATEMENT
3924 -- | LOOP_STATEMENT | BLOCK_STATEMENT
3925 -- | EXTENDED_RETURN_STATEMENT
3926 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
3927
3928 -------------------------
3929 -- 5.1 Null Statement --
3930 -------------------------
3931
3932 -- NULL_STATEMENT ::= null;
3933
3934 -- N_Null_Statement
3935 -- Sloc points to NULL
3936
3937 ----------------
3938 -- 5.1 Label --
3939 ----------------
3940
3941 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3942
3943 -- Note that the occurrence of a label is not a defining identifier,
3944 -- but rather a referencing occurrence. The defining occurrence is
3945 -- in the implicit label declaration which occurs in the innermost
3946 -- enclosing block.
3947
3948 -- N_Label
3949 -- Sloc points to <<
3950 -- Identifier (Node1) direct name of statement identifier
3951 -- Exception_Junk (Flag8-Sem)
3952
3953 -- Note: Before Ada 2012, a label is always followed by a statement,
3954 -- and this is true in the tree even in Ada 2012 mode (the parser
3955 -- inserts a null statement marked with Comes_From_Source False).
3956
3957 -------------------------------
3958 -- 5.1 Statement Identifier --
3959 -------------------------------
3960
3961 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
3962
3963 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
3964 -- (not an OPERATOR_SYMBOL)
3965
3966 -------------------------------
3967 -- 5.2 Assignment Statement --
3968 -------------------------------
3969
3970 -- ASSIGNMENT_STATEMENT ::=
3971 -- variable_NAME := EXPRESSION;
3972
3973 -- N_Assignment_Statement
3974 -- Sloc points to :=
3975 -- Name (Node2)
3976 -- Expression (Node3)
3977 -- Do_Tag_Check (Flag13-Sem)
3978 -- Do_Length_Check (Flag4-Sem)
3979 -- Forwards_OK (Flag5-Sem)
3980 -- Backwards_OK (Flag6-Sem)
3981 -- No_Ctrl_Actions (Flag7-Sem)
3982 -- Componentwise_Assignment (Flag14-Sem)
3983
3984 -- Note: if a range check is required, then the Do_Range_Check flag
3985 -- is set in the Expression (right hand side), with the check being
3986 -- done against the type of the Name (left hand side).
3987
3988 -- Note: the back end places some restrictions on the form of the
3989 -- Expression field. If the object being assigned to is Atomic, then
3990 -- the Expression may not have the form of an aggregate (since this
3991 -- might cause the back end to generate separate assignments). In this
3992 -- case the front end must generate an extra temporary and initialize
3993 -- this temporary as required (the temporary itself is not atomic).
3994
3995 -----------------------
3996 -- 5.3 If Statement --
3997 -----------------------
3998
3999 -- IF_STATEMENT ::=
4000 -- if CONDITION then
4001 -- SEQUENCE_OF_STATEMENTS
4002 -- {elsif CONDITION then
4003 -- SEQUENCE_OF_STATEMENTS}
4004 -- [else
4005 -- SEQUENCE_OF_STATEMENTS]
4006 -- end if;
4007
4008 -- Gigi restriction: This expander ensures that the type of the
4009 -- Condition fields is always Standard.Boolean, even if the type
4010 -- in the source is some non-standard boolean type.
4011
4012 -- N_If_Statement
4013 -- Sloc points to IF
4014 -- Condition (Node1)
4015 -- Then_Statements (List2)
4016 -- Elsif_Parts (List3) (set to No_List if none present)
4017 -- Else_Statements (List4) (set to No_List if no else part present)
4018 -- End_Span (Uint5) (set to No_Uint if expander generated)
4019
4020 -- N_Elsif_Part
4021 -- Sloc points to ELSIF
4022 -- Condition (Node1)
4023 -- Then_Statements (List2)
4024 -- Condition_Actions (List3-Sem)
4025
4026 --------------------
4027 -- 5.3 Condition --
4028 --------------------
4029
4030 -- CONDITION ::= boolean_EXPRESSION
4031
4032 -------------------------
4033 -- 5.4 Case Statement --
4034 -------------------------
4035
4036 -- CASE_STATEMENT ::=
4037 -- case EXPRESSION is
4038 -- CASE_STATEMENT_ALTERNATIVE
4039 -- {CASE_STATEMENT_ALTERNATIVE}
4040 -- end case;
4041
4042 -- Note: the Alternatives can contain pragmas. These only occur at
4043 -- the start of the list, since any pragmas occurring after the first
4044 -- alternative are absorbed into the corresponding statement sequence.
4045
4046 -- N_Case_Statement
4047 -- Sloc points to CASE
4048 -- Expression (Node3)
4049 -- Alternatives (List4)
4050 -- End_Span (Uint5) (set to No_Uint if expander generated)
4051
4052 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4053 -- followed by a statement, and this is true in the tree even in Ada
4054 -- 2012 mode (the parser inserts a null statement marked with the flag
4055 -- Comes_From_Source False).
4056
4057 -------------------------------------
4058 -- 5.4 Case Statement Alternative --
4059 -------------------------------------
4060
4061 -- CASE_STATEMENT_ALTERNATIVE ::=
4062 -- when DISCRETE_CHOICE_LIST =>
4063 -- SEQUENCE_OF_STATEMENTS
4064
4065 -- N_Case_Statement_Alternative
4066 -- Sloc points to WHEN
4067 -- Discrete_Choices (List4)
4068 -- Statements (List3)
4069
4070 -------------------------
4071 -- 5.5 Loop Statement --
4072 -------------------------
4073
4074 -- LOOP_STATEMENT ::=
4075 -- [loop_STATEMENT_IDENTIFIER :]
4076 -- [ITERATION_SCHEME] loop
4077 -- SEQUENCE_OF_STATEMENTS
4078 -- end loop [loop_IDENTIFIER];
4079
4080 -- Note: The occurrence of a loop label is not a defining identifier
4081 -- but rather a referencing occurrence. The defining occurrence is in
4082 -- the implicit label declaration which occurs in the innermost
4083 -- enclosing block.
4084
4085 -- Note: there is always a loop statement identifier present in
4086 -- the tree, even if none was given in the source. In the case where
4087 -- no loop identifier is given in the source, the parser creates
4088 -- a name of the form _Loop_n, where n is a decimal integer (the
4089 -- two underlines ensure that the loop names created in this manner
4090 -- do not conflict with any user defined identifiers), and the flag
4091 -- Has_Created_Identifier is set to True. The only exception to the
4092 -- rule that all loop statement nodes have identifiers occurs for
4093 -- loops constructed by the expander, and the semantic analyzer will
4094 -- create and supply dummy loop identifiers in these cases.
4095
4096 -- N_Loop_Statement
4097 -- Sloc points to LOOP
4098 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4099 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4100 -- Statements (List3)
4101 -- End_Label (Node4)
4102 -- Has_Created_Identifier (Flag15)
4103 -- Is_Null_Loop (Flag16)
4104 -- Suppress_Loop_Warnings (Flag17)
4105
4106 -- Note: the parser fills in the Identifier field if there is an
4107 -- explicit loop identifier. Otherwise the parser leaves this field
4108 -- set to Empty, and then the semantic processing for a loop statement
4109 -- creates an identifier, setting the Has_Created_Identifier flag to
4110 -- True. So after semantic anlaysis, the Identifier is always set,
4111 -- referencing an identifier whose entity has an Ekind of E_Loop.
4112
4113 --------------------------
4114 -- 5.5 Iteration Scheme --
4115 --------------------------
4116
4117 -- ITERATION_SCHEME ::=
4118 -- while CONDITION | for LOOP_PARAMETER_SPECIFICATION
4119
4120 -- Gigi restriction: This expander ensures that the type of the
4121 -- Condition field is always Standard.Boolean, even if the type
4122 -- in the source is some non-standard boolean type.
4123
4124 -- N_Iteration_Scheme
4125 -- Sloc points to WHILE or FOR
4126 -- Condition (Node1) (set to Empty if FOR case)
4127 -- Condition_Actions (List3-Sem)
4128 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4129
4130 ---------------------------------------
4131 -- 5.5 Loop parameter specification --
4132 ---------------------------------------
4133
4134 -- LOOP_PARAMETER_SPECIFICATION ::=
4135 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4136
4137 -- N_Loop_Parameter_Specification
4138 -- Sloc points to first identifier
4139 -- Defining_Identifier (Node1)
4140 -- Reverse_Present (Flag15)
4141 -- Discrete_Subtype_Definition (Node4)
4142
4143 --------------------------
4144 -- 5.6 Block Statement --
4145 --------------------------
4146
4147 -- BLOCK_STATEMENT ::=
4148 -- [block_STATEMENT_IDENTIFIER:]
4149 -- [declare
4150 -- DECLARATIVE_PART]
4151 -- begin
4152 -- HANDLED_SEQUENCE_OF_STATEMENTS
4153 -- end [block_IDENTIFIER];
4154
4155 -- Note that the occurrence of a block identifier is not a defining
4156 -- identifier, but rather a referencing occurrence. The defining
4157 -- occurrence is an E_Block entity declared by the implicit label
4158 -- declaration which occurs in the innermost enclosing block statement
4159 -- or body; the block identifier denotes that E_Block.
4160
4161 -- For block statements that come from source code, there is always a
4162 -- block statement identifier present in the tree, denoting an
4163 -- E_Block. In the case where no block identifier is given in the
4164 -- source, the parser creates a name of the form B_n, where n is a
4165 -- decimal integer, and the flag Has_Created_Identifier is set to
4166 -- True. Blocks constructed by the expander usually have no identifier,
4167 -- and no corresponding entity.
4168
4169 -- Note: the block statement created for an extended return statement
4170 -- has an entity, and this entity is an E_Return_Statement, rather than
4171 -- the usual E_Block.
4172
4173 -- Note: Exception_Junk is set for the wrapping blocks created during
4174 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4175
4176 -- N_Block_Statement
4177 -- Sloc points to DECLARE or BEGIN
4178 -- Identifier (Node1) block direct name (set to Empty if not present)
4179 -- Declarations (List2) (set to No_List if no DECLARE part)
4180 -- Handled_Statement_Sequence (Node4)
4181 -- Is_Task_Master (Flag5-Sem)
4182 -- Activation_Chain_Entity (Node3-Sem)
4183 -- Has_Created_Identifier (Flag15)
4184 -- Is_Task_Allocation_Block (Flag6)
4185 -- Is_Asynchronous_Call_Block (Flag7)
4186 -- Exception_Junk (Flag8-Sem)
4187
4188 -------------------------
4189 -- 5.7 Exit Statement --
4190 -------------------------
4191
4192 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4193
4194 -- Gigi restriction: This expander ensures that the type of the
4195 -- Condition field is always Standard.Boolean, even if the type
4196 -- in the source is some non-standard boolean type.
4197
4198 -- N_Exit_Statement
4199 -- Sloc points to EXIT
4200 -- Name (Node2) (set to Empty if no loop name present)
4201 -- Condition (Node1) (set to Empty if no WHEN part present)
4202 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
4203
4204 -------------------------
4205 -- 5.9 Goto Statement --
4206 -------------------------
4207
4208 -- GOTO_STATEMENT ::= goto label_NAME;
4209
4210 -- N_Goto_Statement
4211 -- Sloc points to GOTO
4212 -- Name (Node2)
4213 -- Exception_Junk (Flag8-Sem)
4214
4215 ---------------------------------
4216 -- 6.1 Subprogram Declaration --
4217 ---------------------------------
4218
4219 -- SUBPROGRAM_DECLARATION ::=
4220 -- SUBPROGRAM_SPECIFICATION
4221 -- [ASPECT_SPECIFICATIONS];
4222
4223 -- N_Subprogram_Declaration
4224 -- Sloc points to FUNCTION or PROCEDURE
4225 -- Specification (Node1)
4226 -- Body_To_Inline (Node3-Sem)
4227 -- Corresponding_Body (Node5-Sem)
4228 -- Parent_Spec (Node4-Sem)
4229
4230 ------------------------------------------
4231 -- 6.1 Abstract Subprogram Declaration --
4232 ------------------------------------------
4233
4234 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4235 -- SUBPROGRAM_SPECIFICATION is abstract
4236 -- [ASPECT_SPECIFICATIONS];
4237
4238 -- N_Abstract_Subprogram_Declaration
4239 -- Sloc points to ABSTRACT
4240 -- Specification (Node1)
4241
4242 -----------------------------------
4243 -- 6.1 Subprogram Specification --
4244 -----------------------------------
4245
4246 -- SUBPROGRAM_SPECIFICATION ::=
4247 -- [[not] overriding]
4248 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4249 -- | [[not] overriding]
4250 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4251
4252 -- Note: there are no separate nodes for the profiles, instead the
4253 -- information appears directly in the following nodes.
4254
4255 -- N_Function_Specification
4256 -- Sloc points to FUNCTION
4257 -- Defining_Unit_Name (Node1) (the designator)
4258 -- Elaboration_Boolean (Node2-Sem)
4259 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4260 -- Null_Exclusion_Present (Flag11)
4261 -- Result_Definition (Node4) for result subtype
4262 -- Generic_Parent (Node5-Sem)
4263 -- Must_Override (Flag14) set if overriding indicator present
4264 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4265
4266 -- N_Procedure_Specification
4267 -- Sloc points to PROCEDURE
4268 -- Defining_Unit_Name (Node1)
4269 -- Elaboration_Boolean (Node2-Sem)
4270 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4271 -- Generic_Parent (Node5-Sem)
4272 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4273 -- Must_Override (Flag14) set if overriding indicator present
4274 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4275
4276 -- Note: overriding indicator is an Ada 2005 feature
4277
4278 ---------------------
4279 -- 6.1 Designator --
4280 ---------------------
4281
4282 -- DESIGNATOR ::=
4283 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4284
4285 -- Designators that are simply identifiers or operator symbols appear
4286 -- directly in the tree in this form. The following node is used only
4287 -- in the case where the designator has a parent unit name component.
4288
4289 -- N_Designator
4290 -- Sloc points to period
4291 -- Name (Node2) holds the parent unit name. Note that this is always
4292 -- non-Empty, since this node is only used for the case where a
4293 -- parent library unit package name is present.
4294 -- Identifier (Node1)
4295
4296 -- Note that the identifier can also be an operator symbol here
4297
4298 ------------------------------
4299 -- 6.1 Defining Designator --
4300 ------------------------------
4301
4302 -- DEFINING_DESIGNATOR ::=
4303 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4304
4305 -------------------------------------
4306 -- 6.1 Defining Program Unit Name --
4307 -------------------------------------
4308
4309 -- DEFINING_PROGRAM_UNIT_NAME ::=
4310 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4311
4312 -- The parent unit name is present only in the case of a child unit
4313 -- name (permissible only for Ada 95 for a library level unit, i.e.
4314 -- a unit at scope level one). If no such name is present, the defining
4315 -- program unit name is represented simply as the defining identifier.
4316 -- In the child unit case, the following node is used to represent the
4317 -- child unit name.
4318
4319 -- N_Defining_Program_Unit_Name
4320 -- Sloc points to period
4321 -- Name (Node2) holds the parent unit name. Note that this is always
4322 -- non-Empty, since this node is only used for the case where a
4323 -- parent unit name is present.
4324 -- Defining_Identifier (Node1)
4325
4326 --------------------------
4327 -- 6.1 Operator Symbol --
4328 --------------------------
4329
4330 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4331
4332 -- Note: the fields of the N_Operator_Symbol node are laid out to
4333 -- match the corresponding fields of an N_Character_Literal node. This
4334 -- allows easy conversion of the operator symbol node into a character
4335 -- literal node in the case where a string constant of the form of an
4336 -- operator symbol is scanned out as such, but turns out semantically
4337 -- to be a string literal that is not an operator. For details see
4338 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4339
4340 -- N_Operator_Symbol
4341 -- Sloc points to literal
4342 -- Chars (Name1) contains the Name_Id for the operator symbol
4343 -- Strval (Str3) Id of string value. This is used if the operator
4344 -- symbol turns out to be a normal string after all.
4345 -- Entity (Node4-Sem)
4346 -- Associated_Node (Node4-Sem)
4347 -- Has_Private_View (Flag11-Sem) set in generic units.
4348 -- Etype (Node5-Sem)
4349
4350 -- Note: the Strval field may be set to No_String for generated
4351 -- operator symbols that are known not to be string literals
4352 -- semantically.
4353
4354 -----------------------------------
4355 -- 6.1 Defining Operator Symbol --
4356 -----------------------------------
4357
4358 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4359
4360 -- A defining operator symbol is an entity, which has additional
4361 -- fields depending on the setting of the Ekind field. These
4362 -- additional fields are defined (and access subprograms declared)
4363 -- in package Einfo.
4364
4365 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4366 -- are deliberately layed out to match the layout of fields in an
4367 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4368 -- an operator symbol node into a defining operator symbol node.
4369 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4370 -- for further details.
4371
4372 -- N_Defining_Operator_Symbol
4373 -- Sloc points to literal
4374 -- Chars (Name1) contains the Name_Id for the operator symbol
4375 -- Next_Entity (Node2-Sem)
4376 -- Scope (Node3-Sem)
4377 -- Etype (Node5-Sem)
4378
4379 ----------------------------
4380 -- 6.1 Parameter Profile --
4381 ----------------------------
4382
4383 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4384
4385 ---------------------------------------
4386 -- 6.1 Parameter and Result Profile --
4387 ---------------------------------------
4388
4389 -- PARAMETER_AND_RESULT_PROFILE ::=
4390 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4391 -- | [FORMAL_PART] return ACCESS_DEFINITION
4392
4393 -- There is no explicit node in the tree for a parameter and result
4394 -- profile. Instead the information appears directly in the parent.
4395
4396 ----------------------
4397 -- 6.1 Formal part --
4398 ----------------------
4399
4400 -- FORMAL_PART ::=
4401 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4402
4403 ----------------------------------
4404 -- 6.1 Parameter specification --
4405 ----------------------------------
4406
4407 -- PARAMETER_SPECIFICATION ::=
4408 -- DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4409 -- [:= DEFAULT_EXPRESSION]
4410 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4411 -- [:= DEFAULT_EXPRESSION]
4412
4413 -- Although the syntax allows multiple identifiers in the list, the
4414 -- semantics is as though successive specifications were given with
4415 -- identical type definition and expression components. To simplify
4416 -- semantic processing, the parser represents a multiple declaration
4417 -- case as a sequence of single Specifications, using the More_Ids and
4418 -- Prev_Ids flags to preserve the original source form as described
4419 -- in the section on "Handling of Defining Identifier Lists".
4420
4421 -- N_Parameter_Specification
4422 -- Sloc points to first identifier
4423 -- Defining_Identifier (Node1)
4424 -- In_Present (Flag15)
4425 -- Out_Present (Flag17)
4426 -- Null_Exclusion_Present (Flag11)
4427 -- Parameter_Type (Node2) subtype mark or access definition
4428 -- Expression (Node3) (set to Empty if no default expression present)
4429 -- Do_Accessibility_Check (Flag13-Sem)
4430 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4431 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4432 -- Default_Expression (Node5-Sem)
4433
4434 ---------------
4435 -- 6.1 Mode --
4436 ---------------
4437
4438 -- MODE ::= [in] | in out | out
4439
4440 -- There is no explicit node in the tree for the Mode. Instead the
4441 -- In_Present and Out_Present flags are set in the parent node to
4442 -- record the presence of keywords specifying the mode.
4443
4444 --------------------------
4445 -- 6.3 Subprogram Body --
4446 --------------------------
4447
4448 -- SUBPROGRAM_BODY ::=
4449 -- SUBPROGRAM_SPECIFICATION is
4450 -- DECLARATIVE_PART
4451 -- begin
4452 -- HANDLED_SEQUENCE_OF_STATEMENTS
4453 -- end [DESIGNATOR];
4454
4455 -- N_Subprogram_Body
4456 -- Sloc points to FUNCTION or PROCEDURE
4457 -- Specification (Node1)
4458 -- Declarations (List2)
4459 -- Handled_Statement_Sequence (Node4)
4460 -- Activation_Chain_Entity (Node3-Sem)
4461 -- Corresponding_Spec (Node5-Sem)
4462 -- Acts_As_Spec (Flag4-Sem)
4463 -- Bad_Is_Detected (Flag15) used only by parser
4464 -- Do_Storage_Check (Flag17-Sem)
4465 -- Has_Priority_Pragma (Flag6-Sem)
4466 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4467 -- Is_Entry_Barrier_Function (Flag8-Sem)
4468 -- Is_Task_Master (Flag5-Sem)
4469 -- Was_Originally_Stub (Flag13-Sem)
4470 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4471
4472 ------------------------------
4473 -- Parameterized Expression --
4474 ------------------------------
4475
4476 -- This is an Ada 2012 extension, we put it here for now, to be labeled
4477 -- and put in its proper section when we know exactly where that is!
4478
4479 -- PARAMETERIZED_EXPRESSION ::=
4480 -- FUNCTION SPECIFICATION IS (EXPRESSION);
4481
4482 -- N_Parameterized_Expression
4483 -- Sloc points to FUNCTION
4484 -- Specification (Node1)
4485 -- Expression (Node3)
4486
4487 -----------------------------------
4488 -- 6.4 Procedure Call Statement --
4489 -----------------------------------
4490
4491 -- PROCEDURE_CALL_STATEMENT ::=
4492 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4493
4494 -- Note: the reason that a procedure call has expression fields is
4495 -- that it semantically resembles an expression, e.g. overloading is
4496 -- allowed and a type is concocted for semantic processing purposes.
4497 -- Certain of these fields, such as Parens are not relevant, but it
4498 -- is easier to just supply all of them together!
4499
4500 -- N_Procedure_Call_Statement
4501 -- Sloc points to first token of name or prefix
4502 -- Name (Node2) stores name or prefix
4503 -- Parameter_Associations (List3) (set to No_List if no
4504 -- actual parameter part)
4505 -- First_Named_Actual (Node4-Sem)
4506 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4507 -- Do_Tag_Check (Flag13-Sem)
4508 -- No_Elaboration_Check (Flag14-Sem)
4509 -- Parameter_List_Truncated (Flag17-Sem)
4510 -- ABE_Is_Certain (Flag18-Sem)
4511 -- plus fields for expression
4512
4513 -- If any IN parameter requires a range check, then the corresponding
4514 -- argument expression has the Do_Range_Check flag set, and the range
4515 -- check is done against the formal type. Note that this argument
4516 -- expression may appear directly in the Parameter_Associations list,
4517 -- or may be a descendent of an N_Parameter_Association node that
4518 -- appears in this list.
4519
4520 ------------------------
4521 -- 6.4 Function Call --
4522 ------------------------
4523
4524 -- FUNCTION_CALL ::=
4525 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4526
4527 -- Note: the parser may generate an indexed component node or simply
4528 -- a name node instead of a function call node. The semantic pass must
4529 -- correct this misidentification.
4530
4531 -- N_Function_Call
4532 -- Sloc points to first token of name or prefix
4533 -- Name (Node2) stores name or prefix
4534 -- Parameter_Associations (List3) (set to No_List if no
4535 -- actual parameter part)
4536 -- First_Named_Actual (Node4-Sem)
4537 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4538 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4539 -- Do_Tag_Check (Flag13-Sem)
4540 -- No_Elaboration_Check (Flag14-Sem)
4541 -- Parameter_List_Truncated (Flag17-Sem)
4542 -- ABE_Is_Certain (Flag18-Sem)
4543 -- plus fields for expression
4544
4545 --------------------------------
4546 -- 6.4 Actual Parameter Part --
4547 --------------------------------
4548
4549 -- ACTUAL_PARAMETER_PART ::=
4550 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4551
4552 --------------------------------
4553 -- 6.4 Parameter Association --
4554 --------------------------------
4555
4556 -- PARAMETER_ASSOCIATION ::=
4557 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4558
4559 -- Note: the N_Parameter_Association node is built only if a formal
4560 -- parameter selector name is present, otherwise the parameter
4561 -- association appears in the tree simply as the node for the
4562 -- explicit actual parameter.
4563
4564 -- N_Parameter_Association
4565 -- Sloc points to formal parameter
4566 -- Selector_Name (Node2) (always non-Empty)
4567 -- Explicit_Actual_Parameter (Node3)
4568 -- Next_Named_Actual (Node4-Sem)
4569 -- Is_Accessibility_Actual (Flag13-Sem)
4570
4571 ---------------------------
4572 -- 6.4 Actual Parameter --
4573 ---------------------------
4574
4575 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4576
4577 ---------------------------
4578 -- 6.5 Return Statement --
4579 ---------------------------
4580
4581 -- RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4582
4583 -- In Ada 2005, we have:
4584
4585 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4586
4587 -- EXTENDED_RETURN_STATEMENT ::=
4588 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4589 -- [:= EXPRESSION] [do
4590 -- HANDLED_SEQUENCE_OF_STATEMENTS
4591 -- end return];
4592
4593 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4594
4595 -- So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4596 -- "return statement" is defined in 6.5 to mean a
4597 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4598
4599 -- N_Return_Statement
4600 -- Sloc points to RETURN
4601 -- Return_Statement_Entity (Node5-Sem)
4602 -- Expression (Node3) (set to Empty if no expression present)
4603 -- Storage_Pool (Node1-Sem)
4604 -- Procedure_To_Call (Node2-Sem)
4605 -- Do_Tag_Check (Flag13-Sem)
4606 -- By_Ref (Flag5-Sem)
4607 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
4608
4609 -- N_Return_Statement represents a simple_return_statement, and is
4610 -- renamed to be N_Simple_Return_Statement below. Clients should refer
4611 -- to N_Simple_Return_Statement. We retain N_Return_Statement because
4612 -- that's how gigi knows it. See also renaming of Make_Return_Statement
4613 -- as Make_Simple_Return_Statement in Sem_Util.
4614
4615 -- Note: Return_Statement_Entity points to an E_Return_Statement
4616
4617 -- If a range check is required, then Do_Range_Check is set on the
4618 -- Expression. The check is against the return subtype of the function.
4619
4620 -- N_Extended_Return_Statement
4621 -- Sloc points to RETURN
4622 -- Return_Statement_Entity (Node5-Sem)
4623 -- Return_Object_Declarations (List3)
4624 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
4625 -- Storage_Pool (Node1-Sem)
4626 -- Procedure_To_Call (Node2-Sem)
4627 -- Do_Tag_Check (Flag13-Sem)
4628 -- By_Ref (Flag5-Sem)
4629
4630 -- Note: Return_Statement_Entity points to an E_Return_Statement.
4631
4632 -- Note that Return_Object_Declarations is a list containing the
4633 -- N_Object_Declaration -- see comment on this field above.
4634
4635 -- The declared object will have Is_Return_Object = True.
4636
4637 -- There is no such syntactic category as return_object_declaration
4638 -- in the RM. Return_Object_Declarations represents this portion of
4639 -- the syntax for EXTENDED_RETURN_STATEMENT:
4640 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4641 -- [:= EXPRESSION]
4642
4643 -- There are two entities associated with an extended_return_statement:
4644 -- the Return_Statement_Entity represents the statement itself, and the
4645 -- Defining_Identifier of the Object_Declaration in
4646 -- Return_Object_Declarations represents the object being
4647 -- returned. N_Simple_Return_Statement has only the former.
4648
4649 ------------------------------
4650 -- 7.1 Package Declaration --
4651 ------------------------------
4652
4653 -- PACKAGE_DECLARATION ::=
4654 -- PACKAGE_SPECIFICATION
4655 -- [ASPECT_SPECIFICATIONS];
4656
4657 -- Note: the activation chain entity for a package spec is used for
4658 -- all tasks declared in the package spec, or in the package body.
4659
4660 -- N_Package_Declaration
4661 -- Sloc points to PACKAGE
4662 -- Specification (Node1)
4663 -- Corresponding_Body (Node5-Sem)
4664 -- Parent_Spec (Node4-Sem)
4665 -- Activation_Chain_Entity (Node3-Sem)
4666
4667 --------------------------------
4668 -- 7.1 Package Specification --
4669 --------------------------------
4670
4671 -- PACKAGE_SPECIFICATION ::=
4672 -- package DEFINING_PROGRAM_UNIT_NAME is
4673 -- {BASIC_DECLARATIVE_ITEM}
4674 -- [private
4675 -- {BASIC_DECLARATIVE_ITEM}]
4676 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
4677
4678 -- N_Package_Specification
4679 -- Sloc points to PACKAGE
4680 -- Defining_Unit_Name (Node1)
4681 -- Visible_Declarations (List2)
4682 -- Private_Declarations (List3) (set to No_List if no private
4683 -- part present)
4684 -- End_Label (Node4)
4685 -- Generic_Parent (Node5-Sem)
4686 -- Limited_View_Installed (Flag18-Sem)
4687
4688 -----------------------
4689 -- 7.1 Package Body --
4690 -----------------------
4691
4692 -- PACKAGE_BODY ::=
4693 -- package body DEFINING_PROGRAM_UNIT_NAME is
4694 -- DECLARATIVE_PART
4695 -- [begin
4696 -- HANDLED_SEQUENCE_OF_STATEMENTS]
4697 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
4698
4699 -- N_Package_Body
4700 -- Sloc points to PACKAGE
4701 -- Defining_Unit_Name (Node1)
4702 -- Declarations (List2)
4703 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4704 -- Corresponding_Spec (Node5-Sem)
4705 -- Was_Originally_Stub (Flag13-Sem)
4706
4707 -- Note: if a source level package does not contain a handled sequence
4708 -- of statements, then the parser supplies a dummy one with a null
4709 -- sequence of statements. Comes_From_Source will be False in this
4710 -- constructed sequence. The reason we need this is for the End_Label
4711 -- field in the HSS.
4712
4713 -----------------------------------
4714 -- 7.4 Private Type Declaration --
4715 -----------------------------------
4716
4717 -- PRIVATE_TYPE_DECLARATION ::=
4718 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4719 -- is [[abstract] tagged] [limited] private;
4720
4721 -- Note: TAGGED is not permitted in Ada 83 mode
4722
4723 -- N_Private_Type_Declaration
4724 -- Sloc points to TYPE
4725 -- Defining_Identifier (Node1)
4726 -- Discriminant_Specifications (List4) (set to No_List if no
4727 -- discriminant part)
4728 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4729 -- Abstract_Present (Flag4)
4730 -- Tagged_Present (Flag15)
4731 -- Limited_Present (Flag17)
4732
4733 ----------------------------------------
4734 -- 7.4 Private Extension Declaration --
4735 ----------------------------------------
4736
4737 -- PRIVATE_EXTENSION_DECLARATION ::=
4738 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4739 -- [abstract] [limited | synchronized]
4740 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4741 -- with private;
4742
4743 -- Note: LIMITED, and private extension declarations are not allowed
4744 -- in Ada 83 mode.
4745
4746 -- N_Private_Extension_Declaration
4747 -- Sloc points to TYPE
4748 -- Defining_Identifier (Node1)
4749 -- Discriminant_Specifications (List4) (set to No_List if no
4750 -- discriminant part)
4751 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4752 -- Abstract_Present (Flag4)
4753 -- Limited_Present (Flag17)
4754 -- Synchronized_Present (Flag7)
4755 -- Subtype_Indication (Node5)
4756 -- Interface_List (List2) (set to No_List if none)
4757
4758 ---------------------
4759 -- 8.4 Use Clause --
4760 ---------------------
4761
4762 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4763
4764 -----------------------------
4765 -- 8.4 Use Package Clause --
4766 -----------------------------
4767
4768 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4769
4770 -- N_Use_Package_Clause
4771 -- Sloc points to USE
4772 -- Names (List2)
4773 -- Next_Use_Clause (Node3-Sem)
4774 -- Hidden_By_Use_Clause (Elist4-Sem)
4775
4776 --------------------------
4777 -- 8.4 Use Type Clause --
4778 --------------------------
4779
4780 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
4781
4782 -- Note: use type clause is not permitted in Ada 83 mode
4783
4784 -- Note: the ALL keyword can appear only in Ada 2012 mode
4785
4786 -- N_Use_Type_Clause
4787 -- Sloc points to USE
4788 -- Subtype_Marks (List2)
4789 -- Next_Use_Clause (Node3-Sem)
4790 -- Hidden_By_Use_Clause (Elist4-Sem)
4791 -- All_Present (Flag15)
4792
4793 -------------------------------
4794 -- 8.5 Renaming Declaration --
4795 -------------------------------
4796
4797 -- RENAMING_DECLARATION ::=
4798 -- OBJECT_RENAMING_DECLARATION
4799 -- | EXCEPTION_RENAMING_DECLARATION
4800 -- | PACKAGE_RENAMING_DECLARATION
4801 -- | SUBPROGRAM_RENAMING_DECLARATION
4802 -- | GENERIC_RENAMING_DECLARATION
4803
4804 --------------------------------------
4805 -- 8.5 Object Renaming Declaration --
4806 --------------------------------------
4807
4808 -- OBJECT_RENAMING_DECLARATION ::=
4809 -- DEFINING_IDENTIFIER :
4810 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4811 -- | DEFINING_IDENTIFIER :
4812 -- ACCESS_DEFINITION renames object_NAME;
4813
4814 -- Note: Access_Definition is an optional field that gives support to
4815 -- Ada 2005 (AI-230). The parser generates nodes that have either the
4816 -- Subtype_Indication field or else the Access_Definition field.
4817
4818 -- N_Object_Renaming_Declaration
4819 -- Sloc points to first identifier
4820 -- Defining_Identifier (Node1)
4821 -- Null_Exclusion_Present (Flag11) (set to False if not present)
4822 -- Subtype_Mark (Node4) (set to Empty if not present)
4823 -- Access_Definition (Node3) (set to Empty if not present)
4824 -- Name (Node2)
4825 -- Corresponding_Generic_Association (Node5-Sem)
4826
4827 -----------------------------------------
4828 -- 8.5 Exception Renaming Declaration --
4829 -----------------------------------------
4830
4831 -- EXCEPTION_RENAMING_DECLARATION ::=
4832 -- DEFINING_IDENTIFIER : exception renames exception_NAME;
4833
4834 -- N_Exception_Renaming_Declaration
4835 -- Sloc points to first identifier
4836 -- Defining_Identifier (Node1)
4837 -- Name (Node2)
4838
4839 ---------------------------------------
4840 -- 8.5 Package Renaming Declaration --
4841 ---------------------------------------
4842
4843 -- PACKAGE_RENAMING_DECLARATION ::=
4844 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4845
4846 -- N_Package_Renaming_Declaration
4847 -- Sloc points to PACKAGE
4848 -- Defining_Unit_Name (Node1)
4849 -- Name (Node2)
4850 -- Parent_Spec (Node4-Sem)
4851
4852 ------------------------------------------
4853 -- 8.5 Subprogram Renaming Declaration --
4854 ------------------------------------------
4855
4856 -- SUBPROGRAM_RENAMING_DECLARATION ::=
4857 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4858
4859 -- N_Subprogram_Renaming_Declaration
4860 -- Sloc points to RENAMES
4861 -- Specification (Node1)
4862 -- Name (Node2)
4863 -- Parent_Spec (Node4-Sem)
4864 -- Corresponding_Spec (Node5-Sem)
4865 -- Corresponding_Formal_Spec (Node3-Sem)
4866 -- From_Default (Flag6-Sem)
4867
4868 -----------------------------------------
4869 -- 8.5.5 Generic Renaming Declaration --
4870 -----------------------------------------
4871
4872 -- GENERIC_RENAMING_DECLARATION ::=
4873 -- generic package DEFINING_PROGRAM_UNIT_NAME
4874 -- renames generic_package_NAME
4875 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
4876 -- renames generic_procedure_NAME
4877 -- | generic function DEFINING_PROGRAM_UNIT_NAME
4878 -- renames generic_function_NAME
4879
4880 -- N_Generic_Package_Renaming_Declaration
4881 -- Sloc points to GENERIC
4882 -- Defining_Unit_Name (Node1)
4883 -- Name (Node2)
4884 -- Parent_Spec (Node4-Sem)
4885
4886 -- N_Generic_Procedure_Renaming_Declaration
4887 -- Sloc points to GENERIC
4888 -- Defining_Unit_Name (Node1)
4889 -- Name (Node2)
4890 -- Parent_Spec (Node4-Sem)
4891
4892 -- N_Generic_Function_Renaming_Declaration
4893 -- Sloc points to GENERIC
4894 -- Defining_Unit_Name (Node1)
4895 -- Name (Node2)
4896 -- Parent_Spec (Node4-Sem)
4897
4898 --------------------------------
4899 -- 9.1 Task Type Declaration --
4900 --------------------------------
4901
4902 -- TASK_TYPE_DECLARATION ::=
4903 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4904 -- [is [new INTERFACE_LIST with] TASK_DEFINITION]
4905 -- [ASPECT_SPECIFICATIONS];
4906
4907 -- N_Task_Type_Declaration
4908 -- Sloc points to TASK
4909 -- Defining_Identifier (Node1)
4910 -- Discriminant_Specifications (List4) (set to No_List if no
4911 -- discriminant part)
4912 -- Interface_List (List2) (set to No_List if none)
4913 -- Task_Definition (Node3) (set to Empty if not present)
4914 -- Corresponding_Body (Node5-Sem)
4915
4916 ----------------------------------
4917 -- 9.1 Single Task Declaration --
4918 ----------------------------------
4919
4920 -- SINGLE_TASK_DECLARATION ::=
4921 -- task DEFINING_IDENTIFIER
4922 -- [is [new INTERFACE_LIST with] TASK_DEFINITION]
4923 -- [ASPECT_SPECIFICATIONS];
4924
4925 -- N_Single_Task_Declaration
4926 -- Sloc points to TASK
4927 -- Defining_Identifier (Node1)
4928 -- Interface_List (List2) (set to No_List if none)
4929 -- Task_Definition (Node3) (set to Empty if not present)
4930
4931 --------------------------
4932 -- 9.1 Task Definition --
4933 --------------------------
4934
4935 -- TASK_DEFINITION ::=
4936 -- {TASK_ITEM}
4937 -- [private
4938 -- {TASK_ITEM}]
4939 -- end [task_IDENTIFIER]
4940
4941 -- Note: as a result of semantic analysis, the list of task items can
4942 -- include implicit type declarations resulting from entry families.
4943
4944 -- N_Task_Definition
4945 -- Sloc points to first token of task definition
4946 -- Visible_Declarations (List2)
4947 -- Private_Declarations (List3) (set to No_List if no private part)
4948 -- End_Label (Node4)
4949 -- Has_Priority_Pragma (Flag6-Sem)
4950 -- Has_Storage_Size_Pragma (Flag5-Sem)
4951 -- Has_Task_Info_Pragma (Flag7-Sem)
4952 -- Has_Task_Name_Pragma (Flag8-Sem)
4953 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4954
4955 --------------------
4956 -- 9.1 Task Item --
4957 --------------------
4958
4959 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
4960
4961 --------------------
4962 -- 9.1 Task Body --
4963 --------------------
4964
4965 -- TASK_BODY ::=
4966 -- task body task_DEFINING_IDENTIFIER is
4967 -- DECLARATIVE_PART
4968 -- begin
4969 -- HANDLED_SEQUENCE_OF_STATEMENTS
4970 -- end [task_IDENTIFIER];
4971
4972 -- Gigi restriction: This node never appears
4973
4974 -- N_Task_Body
4975 -- Sloc points to TASK
4976 -- Defining_Identifier (Node1)
4977 -- Declarations (List2)
4978 -- Handled_Statement_Sequence (Node4)
4979 -- Is_Task_Master (Flag5-Sem)
4980 -- Activation_Chain_Entity (Node3-Sem)
4981 -- Corresponding_Spec (Node5-Sem)
4982 -- Was_Originally_Stub (Flag13-Sem)
4983
4984 -------------------------------------
4985 -- 9.4 Protected Type Declaration --
4986 -------------------------------------
4987
4988 -- PROTECTED_TYPE_DECLARATION ::=
4989 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4990 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION
4991 -- {ASPECT_SPECIFICATIONS];
4992
4993 -- Note: protected type declarations are not permitted in Ada 83 mode
4994
4995 -- N_Protected_Type_Declaration
4996 -- Sloc points to PROTECTED
4997 -- Defining_Identifier (Node1)
4998 -- Discriminant_Specifications (List4) (set to No_List if no
4999 -- discriminant part)
5000 -- Interface_List (List2) (set to No_List if none)
5001 -- Protected_Definition (Node3)
5002 -- Corresponding_Body (Node5-Sem)
5003
5004 ---------------------------------------
5005 -- 9.4 Single Protected Declaration --
5006 ---------------------------------------
5007
5008 -- SINGLE_PROTECTED_DECLARATION ::=
5009 -- protected DEFINING_IDENTIFIER
5010 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION
5011 -- [ASPECT_SPECIFICATIONS];
5012
5013 -- Note: single protected declarations are not allowed in Ada 83 mode
5014
5015 -- N_Single_Protected_Declaration
5016 -- Sloc points to PROTECTED
5017 -- Defining_Identifier (Node1)
5018 -- Interface_List (List2) (set to No_List if none)
5019 -- Protected_Definition (Node3)
5020
5021 -------------------------------
5022 -- 9.4 Protected Definition --
5023 -------------------------------
5024
5025 -- PROTECTED_DEFINITION ::=
5026 -- {PROTECTED_OPERATION_DECLARATION}
5027 -- [private
5028 -- {PROTECTED_ELEMENT_DECLARATION}]
5029 -- end [protected_IDENTIFIER]
5030
5031 -- N_Protected_Definition
5032 -- Sloc points to first token of protected definition
5033 -- Visible_Declarations (List2)
5034 -- Private_Declarations (List3) (set to No_List if no private part)
5035 -- End_Label (Node4)
5036 -- Has_Priority_Pragma (Flag6-Sem)
5037
5038 ------------------------------------------
5039 -- 9.4 Protected Operation Declaration --
5040 ------------------------------------------
5041
5042 -- PROTECTED_OPERATION_DECLARATION ::=
5043 -- SUBPROGRAM_DECLARATION
5044 -- | ENTRY_DECLARATION
5045 -- | REPRESENTATION_CLAUSE
5046
5047 ----------------------------------------
5048 -- 9.4 Protected Element Declaration --
5049 ----------------------------------------
5050
5051 -- PROTECTED_ELEMENT_DECLARATION ::=
5052 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5053
5054 -------------------------
5055 -- 9.4 Protected Body --
5056 -------------------------
5057
5058 -- PROTECTED_BODY ::=
5059 -- protected body DEFINING_IDENTIFIER is
5060 -- {PROTECTED_OPERATION_ITEM}
5061 -- end [protected_IDENTIFIER];
5062
5063 -- Note: protected bodies are not allowed in Ada 83 mode
5064
5065 -- Gigi restriction: This node never appears
5066
5067 -- N_Protected_Body
5068 -- Sloc points to PROTECTED
5069 -- Defining_Identifier (Node1)
5070 -- Declarations (List2) protected operation items (and pragmas)
5071 -- End_Label (Node4)
5072 -- Corresponding_Spec (Node5-Sem)
5073 -- Was_Originally_Stub (Flag13-Sem)
5074
5075 -----------------------------------
5076 -- 9.4 Protected Operation Item --
5077 -----------------------------------
5078
5079 -- PROTECTED_OPERATION_ITEM ::=
5080 -- SUBPROGRAM_DECLARATION
5081 -- | SUBPROGRAM_BODY
5082 -- | ENTRY_BODY
5083 -- | REPRESENTATION_CLAUSE
5084
5085 ------------------------------
5086 -- 9.5.2 Entry Declaration --
5087 ------------------------------
5088
5089 -- ENTRY_DECLARATION ::=
5090 -- [[not] overriding]
5091 -- entry DEFINING_IDENTIFIER
5092 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
5093
5094 -- N_Entry_Declaration
5095 -- Sloc points to ENTRY
5096 -- Defining_Identifier (Node1)
5097 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5098 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5099 -- Corresponding_Body (Node5-Sem)
5100 -- Must_Override (Flag14) set if overriding indicator present
5101 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5102
5103 -- Note: overriding indicator is an Ada 2005 feature
5104
5105 -----------------------------
5106 -- 9.5.2 Accept statement --
5107 -----------------------------
5108
5109 -- ACCEPT_STATEMENT ::=
5110 -- accept entry_DIRECT_NAME
5111 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5112 -- HANDLED_SEQUENCE_OF_STATEMENTS
5113 -- end [entry_IDENTIFIER]];
5114
5115 -- Gigi restriction: This node never appears
5116
5117 -- Note: there are no explicit declarations allowed in an accept
5118 -- statement. However, the implicit declarations for any statement
5119 -- identifiers (labels and block/loop identifiers) are declarations
5120 -- that belong logically to the accept statement, and that is why
5121 -- there is a Declarations field in this node.
5122
5123 -- N_Accept_Statement
5124 -- Sloc points to ACCEPT
5125 -- Entry_Direct_Name (Node1)
5126 -- Entry_Index (Node5) (set to Empty if not present)
5127 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5128 -- Handled_Statement_Sequence (Node4)
5129 -- Declarations (List2) (set to No_List if no declarations)
5130
5131 ------------------------
5132 -- 9.5.2 Entry Index --
5133 ------------------------
5134
5135 -- ENTRY_INDEX ::= EXPRESSION
5136
5137 -----------------------
5138 -- 9.5.2 Entry Body --
5139 -----------------------
5140
5141 -- ENTRY_BODY ::=
5142 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5143 -- DECLARATIVE_PART
5144 -- begin
5145 -- HANDLED_SEQUENCE_OF_STATEMENTS
5146 -- end [entry_IDENTIFIER];
5147
5148 -- ENTRY_BARRIER ::= when CONDITION
5149
5150 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5151 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5152 -- too full (it would otherwise have too many fields)
5153
5154 -- Gigi restriction: This node never appears
5155
5156 -- N_Entry_Body
5157 -- Sloc points to ENTRY
5158 -- Defining_Identifier (Node1)
5159 -- Entry_Body_Formal_Part (Node5)
5160 -- Declarations (List2)
5161 -- Handled_Statement_Sequence (Node4)
5162 -- Activation_Chain_Entity (Node3-Sem)
5163
5164 -----------------------------------
5165 -- 9.5.2 Entry Body Formal Part --
5166 -----------------------------------
5167
5168 -- ENTRY_BODY_FORMAL_PART ::=
5169 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5170
5171 -- Note that an entry body formal part node is present even if it is
5172 -- empty. This reflects the grammar, in which it is the components of
5173 -- the entry body formal part that are optional, not the entry body
5174 -- formal part itself. Also this means that the barrier condition
5175 -- always has somewhere to be stored.
5176
5177 -- Gigi restriction: This node never appears
5178
5179 -- N_Entry_Body_Formal_Part
5180 -- Sloc points to first token
5181 -- Entry_Index_Specification (Node4) (set to Empty if not present)
5182 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5183 -- Condition (Node1) from entry barrier of entry body
5184
5185 --------------------------
5186 -- 9.5.2 Entry Barrier --
5187 --------------------------
5188
5189 -- ENTRY_BARRIER ::= when CONDITION
5190
5191 --------------------------------------
5192 -- 9.5.2 Entry Index Specification --
5193 --------------------------------------
5194
5195 -- ENTRY_INDEX_SPECIFICATION ::=
5196 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5197
5198 -- Gigi restriction: This node never appears
5199
5200 -- N_Entry_Index_Specification
5201 -- Sloc points to FOR
5202 -- Defining_Identifier (Node1)
5203 -- Discrete_Subtype_Definition (Node4)
5204
5205 ---------------------------------
5206 -- 9.5.3 Entry Call Statement --
5207 ---------------------------------
5208
5209 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5210
5211 -- The parser may generate a procedure call for this construct. The
5212 -- semantic pass must correct this misidentification where needed.
5213
5214 -- Gigi restriction: This node never appears
5215
5216 -- N_Entry_Call_Statement
5217 -- Sloc points to first token of name
5218 -- Name (Node2)
5219 -- Parameter_Associations (List3) (set to No_List if no
5220 -- actual parameter part)
5221 -- First_Named_Actual (Node4-Sem)
5222
5223 ------------------------------
5224 -- 9.5.4 Requeue Statement --
5225 ------------------------------
5226
5227 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5228
5229 -- Note: requeue statements are not permitted in Ada 83 mode
5230
5231 -- Gigi restriction: This node never appears
5232
5233 -- N_Requeue_Statement
5234 -- Sloc points to REQUEUE
5235 -- Name (Node2)
5236 -- Abort_Present (Flag15)
5237
5238 --------------------------
5239 -- 9.6 Delay Statement --
5240 --------------------------
5241
5242 -- DELAY_STATEMENT ::=
5243 -- DELAY_UNTIL_STATEMENT
5244 -- | DELAY_RELATIVE_STATEMENT
5245
5246 --------------------------------
5247 -- 9.6 Delay Until Statement --
5248 --------------------------------
5249
5250 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5251
5252 -- Note: delay until statements are not permitted in Ada 83 mode
5253
5254 -- Gigi restriction: This node never appears
5255
5256 -- N_Delay_Until_Statement
5257 -- Sloc points to DELAY
5258 -- Expression (Node3)
5259
5260 -----------------------------------
5261 -- 9.6 Delay Relative Statement --
5262 -----------------------------------
5263
5264 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5265
5266 -- Gigi restriction: This node never appears
5267
5268 -- N_Delay_Relative_Statement
5269 -- Sloc points to DELAY
5270 -- Expression (Node3)
5271
5272 ---------------------------
5273 -- 9.7 Select Statement --
5274 ---------------------------
5275
5276 -- SELECT_STATEMENT ::=
5277 -- SELECTIVE_ACCEPT
5278 -- | TIMED_ENTRY_CALL
5279 -- | CONDITIONAL_ENTRY_CALL
5280 -- | ASYNCHRONOUS_SELECT
5281
5282 -----------------------------
5283 -- 9.7.1 Selective Accept --
5284 -----------------------------
5285
5286 -- SELECTIVE_ACCEPT ::=
5287 -- select
5288 -- [GUARD]
5289 -- SELECT_ALTERNATIVE
5290 -- {or
5291 -- [GUARD]
5292 -- SELECT_ALTERNATIVE}
5293 -- [else
5294 -- SEQUENCE_OF_STATEMENTS]
5295 -- end select;
5296
5297 -- Gigi restriction: This node never appears
5298
5299 -- Note: the guard expression, if present, appears in the node for
5300 -- the select alternative.
5301
5302 -- N_Selective_Accept
5303 -- Sloc points to SELECT
5304 -- Select_Alternatives (List1)
5305 -- Else_Statements (List4) (set to No_List if no else part)
5306
5307 ------------------
5308 -- 9.7.1 Guard --
5309 ------------------
5310
5311 -- GUARD ::= when CONDITION =>
5312
5313 -- As noted above, the CONDITION that is part of a GUARD is included
5314 -- in the node for the select alternative for convenience.
5315
5316 -------------------------------
5317 -- 9.7.1 Select Alternative --
5318 -------------------------------
5319
5320 -- SELECT_ALTERNATIVE ::=
5321 -- ACCEPT_ALTERNATIVE
5322 -- | DELAY_ALTERNATIVE
5323 -- | TERMINATE_ALTERNATIVE
5324
5325 -------------------------------
5326 -- 9.7.1 Accept Alternative --
5327 -------------------------------
5328
5329 -- ACCEPT_ALTERNATIVE ::=
5330 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5331
5332 -- Gigi restriction: This node never appears
5333
5334 -- N_Accept_Alternative
5335 -- Sloc points to ACCEPT
5336 -- Accept_Statement (Node2)
5337 -- Condition (Node1) from the guard (set to Empty if no guard present)
5338 -- Statements (List3) (set to Empty_List if no statements)
5339 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5340 -- Accept_Handler_Records (List5-Sem)
5341
5342 ------------------------------
5343 -- 9.7.1 Delay Alternative --
5344 ------------------------------
5345
5346 -- DELAY_ALTERNATIVE ::=
5347 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5348
5349 -- Gigi restriction: This node never appears
5350
5351 -- N_Delay_Alternative
5352 -- Sloc points to DELAY
5353 -- Delay_Statement (Node2)
5354 -- Condition (Node1) from the guard (set to Empty if no guard present)
5355 -- Statements (List3) (set to Empty_List if no statements)
5356 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5357
5358 ----------------------------------
5359 -- 9.7.1 Terminate Alternative --
5360 ----------------------------------
5361
5362 -- TERMINATE_ALTERNATIVE ::= terminate;
5363
5364 -- Gigi restriction: This node never appears
5365
5366 -- N_Terminate_Alternative
5367 -- Sloc points to TERMINATE
5368 -- Condition (Node1) from the guard (set to Empty if no guard present)
5369 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5370 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5371
5372 -----------------------------
5373 -- 9.7.2 Timed Entry Call --
5374 -----------------------------
5375
5376 -- TIMED_ENTRY_CALL ::=
5377 -- select
5378 -- ENTRY_CALL_ALTERNATIVE
5379 -- or
5380 -- DELAY_ALTERNATIVE
5381 -- end select;
5382
5383 -- Gigi restriction: This node never appears
5384
5385 -- N_Timed_Entry_Call
5386 -- Sloc points to SELECT
5387 -- Entry_Call_Alternative (Node1)
5388 -- Delay_Alternative (Node4)
5389
5390 -----------------------------------
5391 -- 9.7.2 Entry Call Alternative --
5392 -----------------------------------
5393
5394 -- ENTRY_CALL_ALTERNATIVE ::=
5395 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5396
5397 -- PROCEDURE_OR_ENTRY_CALL ::=
5398 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5399
5400 -- Gigi restriction: This node never appears
5401
5402 -- N_Entry_Call_Alternative
5403 -- Sloc points to first token of entry call statement
5404 -- Entry_Call_Statement (Node1)
5405 -- Statements (List3) (set to Empty_List if no statements)
5406 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5407
5408 -----------------------------------
5409 -- 9.7.3 Conditional Entry Call --
5410 -----------------------------------
5411
5412 -- CONDITIONAL_ENTRY_CALL ::=
5413 -- select
5414 -- ENTRY_CALL_ALTERNATIVE
5415 -- else
5416 -- SEQUENCE_OF_STATEMENTS
5417 -- end select;
5418
5419 -- Gigi restriction: This node never appears
5420
5421 -- N_Conditional_Entry_Call
5422 -- Sloc points to SELECT
5423 -- Entry_Call_Alternative (Node1)
5424 -- Else_Statements (List4)
5425
5426 --------------------------------
5427 -- 9.7.4 Asynchronous Select --
5428 --------------------------------
5429
5430 -- ASYNCHRONOUS_SELECT ::=
5431 -- select
5432 -- TRIGGERING_ALTERNATIVE
5433 -- then abort
5434 -- ABORTABLE_PART
5435 -- end select;
5436
5437 -- Note: asynchronous select is not permitted in Ada 83 mode
5438
5439 -- Gigi restriction: This node never appears
5440
5441 -- N_Asynchronous_Select
5442 -- Sloc points to SELECT
5443 -- Triggering_Alternative (Node1)
5444 -- Abortable_Part (Node2)
5445
5446 -----------------------------------
5447 -- 9.7.4 Triggering Alternative --
5448 -----------------------------------
5449
5450 -- TRIGGERING_ALTERNATIVE ::=
5451 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5452
5453 -- Gigi restriction: This node never appears
5454
5455 -- N_Triggering_Alternative
5456 -- Sloc points to first token of triggering statement
5457 -- Triggering_Statement (Node1)
5458 -- Statements (List3) (set to Empty_List if no statements)
5459 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5460
5461 ---------------------------------
5462 -- 9.7.4 Triggering Statement --
5463 ---------------------------------
5464
5465 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5466
5467 ---------------------------
5468 -- 9.7.4 Abortable Part --
5469 ---------------------------
5470
5471 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5472
5473 -- Gigi restriction: This node never appears
5474
5475 -- N_Abortable_Part
5476 -- Sloc points to ABORT
5477 -- Statements (List3)
5478
5479 --------------------------
5480 -- 9.8 Abort Statement --
5481 --------------------------
5482
5483 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5484
5485 -- Gigi restriction: This node never appears
5486
5487 -- N_Abort_Statement
5488 -- Sloc points to ABORT
5489 -- Names (List2)
5490
5491 -------------------------
5492 -- 10.1.1 Compilation --
5493 -------------------------
5494
5495 -- COMPILATION ::= {COMPILATION_UNIT}
5496
5497 -- There is no explicit node in the tree for a compilation, since in
5498 -- general the compiler is processing only a single compilation unit
5499 -- at a time. It is possible to parse multiple units in syntax check
5500 -- only mode, but the trees are discarded in that case.
5501
5502 ------------------------------
5503 -- 10.1.1 Compilation Unit --
5504 ------------------------------
5505
5506 -- COMPILATION_UNIT ::=
5507 -- CONTEXT_CLAUSE LIBRARY_ITEM
5508 -- | CONTEXT_CLAUSE SUBUNIT
5509
5510 -- The N_Compilation_Unit node itself represents the above syntax.
5511 -- However, there are two additional items not reflected in the above
5512 -- syntax. First we have the global declarations that are added by the
5513 -- code generator. These are outer level declarations (so they cannot
5514 -- be represented as being inside the units). An example is the wrapper
5515 -- subprograms that are created to do ABE checking. As always a list of
5516 -- declarations can contain actions as well (i.e. statements), and such
5517 -- statements are executed as part of the elaboration of the unit. Note
5518 -- that all such declarations are elaborated before the library unit.
5519
5520 -- Similarly, certain actions need to be elaborated at the completion
5521 -- of elaboration of the library unit (notably the statement that sets
5522 -- the Boolean flag indicating that elaboration is complete).
5523
5524 -- The third item not reflected in the syntax is pragmas that appear
5525 -- after the compilation unit. As always pragmas are a problem since
5526 -- they are not part of the formal syntax, but can be stuck into the
5527 -- source following a set of ad hoc rules, and we have to find an ad
5528 -- hoc way of sticking them into the tree. For pragmas that appear
5529 -- before the library unit, we just consider them to be part of the
5530 -- context clause, and pragmas can appear in the Context_Items list
5531 -- of the compilation unit. However, pragmas can also appear after
5532 -- the library item.
5533
5534 -- To deal with all these problems, we create an auxiliary node for
5535 -- a compilation unit, referenced from the N_Compilation_Unit node
5536 -- that contains these three items.
5537
5538 -- N_Compilation_Unit
5539 -- Sloc points to first token of defining unit name
5540 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
5541 -- Context_Items (List1) context items and pragmas preceding unit
5542 -- Private_Present (Flag15) set if library unit has private keyword
5543 -- Unit (Node2) library item or subunit
5544 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5545 -- Has_No_Elaboration_Code (Flag17-Sem)
5546 -- Body_Required (Flag13-Sem) set for spec if body is required
5547 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5548 -- Context_Pending (Flag16-Sem)
5549 -- First_Inlined_Subprogram (Node3-Sem)
5550
5551 -- N_Compilation_Unit_Aux
5552 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
5553 -- Declarations (List2) (set to No_List if no global declarations)
5554 -- Actions (List1) (set to No_List if no actions)
5555 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
5556 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5557
5558 --------------------------
5559 -- 10.1.1 Library Item --
5560 --------------------------
5561
5562 -- LIBRARY_ITEM ::=
5563 -- [private] LIBRARY_UNIT_DECLARATION
5564 -- | LIBRARY_UNIT_BODY
5565 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5566
5567 -- Note: PRIVATE is not allowed in Ada 83 mode
5568
5569 -- There is no explicit node in the tree for library item, instead
5570 -- the declaration or body, and the flag for private if present,
5571 -- appear in the N_Compilation_Unit node.
5572
5573 --------------------------------------
5574 -- 10.1.1 Library Unit Declaration --
5575 --------------------------------------
5576
5577 -- LIBRARY_UNIT_DECLARATION ::=
5578 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5579 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
5580
5581 -----------------------------------------------
5582 -- 10.1.1 Library Unit Renaming Declaration --
5583 -----------------------------------------------
5584
5585 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
5586 -- PACKAGE_RENAMING_DECLARATION
5587 -- | GENERIC_RENAMING_DECLARATION
5588 -- | SUBPROGRAM_RENAMING_DECLARATION
5589
5590 -------------------------------
5591 -- 10.1.1 Library unit body --
5592 -------------------------------
5593
5594 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5595
5596 ------------------------------
5597 -- 10.1.1 Parent Unit Name --
5598 ------------------------------
5599
5600 -- PARENT_UNIT_NAME ::= NAME
5601
5602 ----------------------------
5603 -- 10.1.2 Context clause --
5604 ----------------------------
5605
5606 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5607
5608 -- The context clause can include pragmas, and any pragmas that appear
5609 -- before the context clause proper (i.e. all configuration pragmas,
5610 -- also appear at the front of this list).
5611
5612 --------------------------
5613 -- 10.1.2 Context_Item --
5614 --------------------------
5615
5616 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
5617
5618 -------------------------
5619 -- 10.1.2 With clause --
5620 -------------------------
5621
5622 -- WITH_CLAUSE ::=
5623 -- with library_unit_NAME {,library_unit_NAME};
5624
5625 -- A separate With clause is built for each name, so that we have
5626 -- a Corresponding_Spec field for each with'ed spec. The flags
5627 -- First_Name and Last_Name are used to reconstruct the exact
5628 -- source form. When a list of names appears in one with clause,
5629 -- the first name in the list has First_Name set, and the last
5630 -- has Last_Name set. If the with clause has only one name, then
5631 -- both of the flags First_Name and Last_Name are set in this name.
5632
5633 -- Note: in the case of implicit with's that are installed by the
5634 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
5635 -- set to Standard_Location, but it is incorrect to test the Sloc
5636 -- to find out if a with clause is implicit, test the flag instead.
5637
5638 -- N_With_Clause
5639 -- Sloc points to first token of library unit name
5640 -- Withed_Body (Node1-Sem)
5641 -- Name (Node2)
5642 -- Next_Implicit_With (Node3-Sem)
5643 -- Library_Unit (Node4-Sem)
5644 -- Corresponding_Spec (Node5-Sem)
5645 -- First_Name (Flag5) (set to True if first name or only one name)
5646 -- Last_Name (Flag6) (set to True if last name or only one name)
5647 -- Context_Installed (Flag13-Sem)
5648 -- Elaborate_Present (Flag4-Sem)
5649 -- Elaborate_All_Present (Flag14-Sem)
5650 -- Elaborate_All_Desirable (Flag9-Sem)
5651 -- Elaborate_Desirable (Flag11-Sem)
5652 -- Private_Present (Flag15) set if with_clause has private keyword
5653 -- Implicit_With (Flag16-Sem)
5654 -- Limited_Present (Flag17) set if LIMITED is present
5655 -- Limited_View_Installed (Flag18-Sem)
5656 -- Unreferenced_In_Spec (Flag7-Sem)
5657 -- No_Entities_Ref_In_Spec (Flag8-Sem)
5658
5659 -- Note: Limited_Present and Limited_View_Installed give support to
5660 -- Ada 2005 (AI-50217).
5661 -- Similarly, Private_Present gives support to AI-50262.
5662
5663 ----------------------
5664 -- With_Type clause --
5665 ----------------------
5666
5667 -- This is a GNAT extension, used to implement mutually recursive
5668 -- types declared in different packages.
5669 -- Note: this is now obsolete. The functionality of this construct
5670 -- is now implemented by the Ada 2005 Limited_with_Clause.
5671
5672 ---------------------
5673 -- 10.2 Body stub --
5674 ---------------------
5675
5676 -- BODY_STUB ::=
5677 -- SUBPROGRAM_BODY_STUB
5678 -- | PACKAGE_BODY_STUB
5679 -- | TASK_BODY_STUB
5680 -- | PROTECTED_BODY_STUB
5681
5682 ----------------------------------
5683 -- 10.1.3 Subprogram Body Stub --
5684 ----------------------------------
5685
5686 -- SUBPROGRAM_BODY_STUB ::=
5687 -- SUBPROGRAM_SPECIFICATION is separate;
5688
5689 -- N_Subprogram_Body_Stub
5690 -- Sloc points to FUNCTION or PROCEDURE
5691 -- Specification (Node1)
5692 -- Library_Unit (Node4-Sem) points to the subunit
5693 -- Corresponding_Body (Node5-Sem)
5694
5695 -------------------------------
5696 -- 10.1.3 Package Body Stub --
5697 -------------------------------
5698
5699 -- PACKAGE_BODY_STUB ::=
5700 -- package body DEFINING_IDENTIFIER is separate;
5701
5702 -- N_Package_Body_Stub
5703 -- Sloc points to PACKAGE
5704 -- Defining_Identifier (Node1)
5705 -- Library_Unit (Node4-Sem) points to the subunit
5706 -- Corresponding_Body (Node5-Sem)
5707
5708 ----------------------------
5709 -- 10.1.3 Task Body Stub --
5710 ----------------------------
5711
5712 -- TASK_BODY_STUB ::=
5713 -- task body DEFINING_IDENTIFIER is separate;
5714
5715 -- N_Task_Body_Stub
5716 -- Sloc points to TASK
5717 -- Defining_Identifier (Node1)
5718 -- Library_Unit (Node4-Sem) points to the subunit
5719 -- Corresponding_Body (Node5-Sem)
5720
5721 ---------------------------------
5722 -- 10.1.3 Protected Body Stub --
5723 ---------------------------------
5724
5725 -- PROTECTED_BODY_STUB ::=
5726 -- protected body DEFINING_IDENTIFIER is separate;
5727
5728 -- Note: protected body stubs are not allowed in Ada 83 mode
5729
5730 -- N_Protected_Body_Stub
5731 -- Sloc points to PROTECTED
5732 -- Defining_Identifier (Node1)
5733 -- Library_Unit (Node4-Sem) points to the subunit
5734 -- Corresponding_Body (Node5-Sem)
5735
5736 ---------------------
5737 -- 10.1.3 Subunit --
5738 ---------------------
5739
5740 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5741
5742 -- N_Subunit
5743 -- Sloc points to SEPARATE
5744 -- Name (Node2) is the name of the parent unit
5745 -- Proper_Body (Node1) is the subunit body
5746 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5747
5748 ---------------------------------
5749 -- 11.1 Exception Declaration --
5750 ---------------------------------
5751
5752 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
5753 -- [ASPECT_SPECIFICATIONS];
5754
5755 -- For consistency with object declarations etc., the parser converts
5756 -- the case of multiple identifiers being declared to a series of
5757 -- declarations in which the expression is copied, using the More_Ids
5758 -- and Prev_Ids flags to remember the source form as described in the
5759 -- section on "Handling of Defining Identifier Lists".
5760
5761 -- N_Exception_Declaration
5762 -- Sloc points to EXCEPTION
5763 -- Defining_Identifier (Node1)
5764 -- Expression (Node3-Sem)
5765 -- Renaming_Exception (Node2-Sem)
5766 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5767 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5768
5769 ------------------------------------------
5770 -- 11.2 Handled Sequence Of Statements --
5771 ------------------------------------------
5772
5773 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
5774 -- SEQUENCE_OF_STATEMENTS
5775 -- [exception
5776 -- EXCEPTION_HANDLER
5777 -- {EXCEPTION_HANDLER}]
5778 -- [at end
5779 -- cleanup_procedure_call (param, param, param, ...);]
5780
5781 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
5782 -- used only internally currently, but is considered to be syntactic.
5783 -- At the moment, the only cleanup action allowed is a single call to
5784 -- a parameterless procedure, and the Identifier field of the node is
5785 -- the procedure to be called. Also there is a current restriction
5786 -- that exception handles and a cleanup cannot be present in the same
5787 -- frame, so at least one of Exception_Handlers or the Identifier must
5788 -- be missing.
5789
5790 -- Actually, more accurately, this restriction applies to the original
5791 -- source program. In the expanded tree, if the At_End_Proc field is
5792 -- present, then there will also be an exception handler of the form:
5793
5794 -- when all others =>
5795 -- cleanup;
5796 -- raise;
5797
5798 -- where cleanup is the procedure to be generated. The reason we do
5799 -- this is so that the front end can handle the necessary entries in
5800 -- the exception tables, and other exception handler actions required
5801 -- as part of the normal handling for exception handlers.
5802
5803 -- The AT END cleanup handler protects only the sequence of statements
5804 -- (not the associated declarations of the parent), just like exception
5805 -- handlers. The big difference is that the cleanup procedure is called
5806 -- on either a normal or an abnormal exit from the statement sequence.
5807
5808 -- Note: the list of Exception_Handlers can contain pragmas as well
5809 -- as actual handlers. In practice these pragmas can only occur at
5810 -- the start of the list, since any pragmas occurring later on will
5811 -- be included in the statement list of the corresponding handler.
5812
5813 -- Note: although in the Ada syntax, the sequence of statements in
5814 -- a handled sequence of statements can only contain statements, we
5815 -- allow free mixing of declarations and statements in the resulting
5816 -- expanded tree. This is for example used to deal with the case of
5817 -- a cleanup procedure that must handle declarations as well as the
5818 -- statements of a block.
5819
5820 -- N_Handled_Sequence_Of_Statements
5821 -- Sloc points to first token of first statement
5822 -- Statements (List3)
5823 -- End_Label (Node4) (set to Empty if expander generated)
5824 -- Exception_Handlers (List5) (set to No_List if none present)
5825 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
5826 -- First_Real_Statement (Node2-Sem)
5827 -- Zero_Cost_Handling (Flag5-Sem)
5828
5829 -- Note: the parent always contains a Declarations field which contains
5830 -- declarations associated with the handled sequence of statements. This
5831 -- is true even in the case of an accept statement (see description of
5832 -- the N_Accept_Statement node).
5833
5834 -- End_Label refers to the containing construct
5835
5836 -----------------------------
5837 -- 11.2 Exception Handler --
5838 -----------------------------
5839
5840 -- EXCEPTION_HANDLER ::=
5841 -- when [CHOICE_PARAMETER_SPECIFICATION :]
5842 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5843 -- SEQUENCE_OF_STATEMENTS
5844
5845 -- Note: choice parameter specification is not allowed in Ada 83 mode
5846
5847 -- N_Exception_Handler
5848 -- Sloc points to WHEN
5849 -- Choice_Parameter (Node2) (set to Empty if not present)
5850 -- Exception_Choices (List4)
5851 -- Statements (List3)
5852 -- Exception_Label (Node5-Sem) (set to Empty of not present)
5853 -- Zero_Cost_Handling (Flag5-Sem)
5854 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5855 -- Local_Raise_Not_OK (Flag7-Sem)
5856 -- Has_Local_Raise (Flag8-Sem)
5857
5858 ------------------------------------------
5859 -- 11.2 Choice parameter specification --
5860 ------------------------------------------
5861
5862 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5863
5864 ----------------------------
5865 -- 11.2 Exception Choice --
5866 ----------------------------
5867
5868 -- EXCEPTION_CHOICE ::= exception_NAME | others
5869
5870 -- Except in the case of OTHERS, no explicit node appears in the tree
5871 -- for exception choice. Instead the exception name appears directly.
5872 -- An OTHERS choice is represented by a N_Others_Choice node (see
5873 -- section 3.8.1.
5874
5875 -- Note: for the exception choice created for an at end handler, the
5876 -- exception choice is an N_Others_Choice node with All_Others set.
5877
5878 ---------------------------
5879 -- 11.3 Raise Statement --
5880 ---------------------------
5881
5882 -- RAISE_STATEMENT ::= raise [exception_NAME];
5883
5884 -- In Ada 2005, we have
5885
5886 -- RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5887
5888 -- N_Raise_Statement
5889 -- Sloc points to RAISE
5890 -- Name (Node2) (set to Empty if no exception name present)
5891 -- Expression (Node3) (set to Empty if no expression present)
5892 -- From_At_End (Flag4-Sem)
5893
5894 -------------------------------
5895 -- 12.1 Generic Declaration --
5896 -------------------------------
5897
5898 -- GENERIC_DECLARATION ::=
5899 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5900
5901 ------------------------------------------
5902 -- 12.1 Generic Subprogram Declaration --
5903 ------------------------------------------
5904
5905 -- GENERIC_SUBPROGRAM_DECLARATION ::=
5906 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5907
5908 -- Note: Generic_Formal_Declarations can include pragmas
5909
5910 -- N_Generic_Subprogram_Declaration
5911 -- Sloc points to GENERIC
5912 -- Specification (Node1) subprogram specification
5913 -- Corresponding_Body (Node5-Sem)
5914 -- Generic_Formal_Declarations (List2) from generic formal part
5915 -- Parent_Spec (Node4-Sem)
5916
5917 ---------------------------------------
5918 -- 12.1 Generic Package Declaration --
5919 ---------------------------------------
5920
5921 -- GENERIC_PACKAGE_DECLARATION ::=
5922 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
5923 -- [ASPECT_SPECIFICATIONS];
5924
5925 -- Note: when we do generics right, the Activation_Chain_Entity entry
5926 -- for this node can be removed (since the expander won't see generic
5927 -- units any more)???.
5928
5929 -- Note: Generic_Formal_Declarations can include pragmas
5930
5931 -- N_Generic_Package_Declaration
5932 -- Sloc points to GENERIC
5933 -- Specification (Node1) package specification
5934 -- Corresponding_Body (Node5-Sem)
5935 -- Generic_Formal_Declarations (List2) from generic formal part
5936 -- Parent_Spec (Node4-Sem)
5937 -- Activation_Chain_Entity (Node3-Sem)
5938
5939 -------------------------------
5940 -- 12.1 Generic Formal Part --
5941 -------------------------------
5942
5943 -- GENERIC_FORMAL_PART ::=
5944 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
5945
5946 ------------------------------------------------
5947 -- 12.1 Generic Formal Parameter Declaration --
5948 ------------------------------------------------
5949
5950 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
5951 -- FORMAL_OBJECT_DECLARATION
5952 -- | FORMAL_TYPE_DECLARATION
5953 -- | FORMAL_SUBPROGRAM_DECLARATION
5954 -- | FORMAL_PACKAGE_DECLARATION
5955
5956 ---------------------------------
5957 -- 12.3 Generic Instantiation --
5958 ---------------------------------
5959
5960 -- GENERIC_INSTANTIATION ::=
5961 -- package DEFINING_PROGRAM_UNIT_NAME is
5962 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
5963 -- [ASPECT_SPECIFICATIONS];
5964 -- | [[not] overriding]
5965 -- procedure DEFINING_PROGRAM_UNIT_NAME is
5966 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
5967 -- [ASPECT_SPECIFICATIONS];
5968 -- | [[not] overriding]
5969 -- function DEFINING_DESIGNATOR is
5970 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
5971 -- [ASPECT_SPECIFICATIONS];
5972
5973 -- N_Package_Instantiation
5974 -- Sloc points to PACKAGE
5975 -- Defining_Unit_Name (Node1)
5976 -- Name (Node2)
5977 -- Generic_Associations (List3) (set to No_List if no
5978 -- generic actual part)
5979 -- Parent_Spec (Node4-Sem)
5980 -- Instance_Spec (Node5-Sem)
5981 -- ABE_Is_Certain (Flag18-Sem)
5982
5983 -- N_Procedure_Instantiation
5984 -- Sloc points to PROCEDURE
5985 -- Defining_Unit_Name (Node1)
5986 -- Name (Node2)
5987 -- Parent_Spec (Node4-Sem)
5988 -- Generic_Associations (List3) (set to No_List if no
5989 -- generic actual part)
5990 -- Instance_Spec (Node5-Sem)
5991 -- Must_Override (Flag14) set if overriding indicator present
5992 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5993 -- ABE_Is_Certain (Flag18-Sem)
5994
5995 -- N_Function_Instantiation
5996 -- Sloc points to FUNCTION
5997 -- Defining_Unit_Name (Node1)
5998 -- Name (Node2)
5999 -- Generic_Associations (List3) (set to No_List if no
6000 -- generic actual part)
6001 -- Parent_Spec (Node4-Sem)
6002 -- Instance_Spec (Node5-Sem)
6003 -- Must_Override (Flag14) set if overriding indicator present
6004 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6005 -- ABE_Is_Certain (Flag18-Sem)
6006
6007 -- Note: overriding indicator is an Ada 2005 feature
6008
6009 -------------------------------
6010 -- 12.3 Generic Actual Part --
6011 -------------------------------
6012
6013 -- GENERIC_ACTUAL_PART ::=
6014 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6015
6016 -------------------------------
6017 -- 12.3 Generic Association --
6018 -------------------------------
6019
6020 -- GENERIC_ASSOCIATION ::=
6021 -- [generic_formal_parameter_SELECTOR_NAME =>]
6022
6023 -- Note: unlike the procedure call case, a generic association node
6024 -- is generated for every association, even if no formal parameter
6025 -- selector name is present. In this case the parser will leave the
6026 -- Selector_Name field set to Empty, to be filled in later by the
6027 -- semantic pass.
6028
6029 -- In Ada 2005, a formal may be associated with a box, if the
6030 -- association is part of the list of actuals for a formal package.
6031 -- If the association is given by OTHERS => <>, the association is
6032 -- an N_Others_Choice.
6033
6034 -- N_Generic_Association
6035 -- Sloc points to first token of generic association
6036 -- Selector_Name (Node2) (set to Empty if no formal
6037 -- parameter selector name)
6038 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6039 -- Box_Present (Flag15) (for formal_package associations with a box)
6040
6041 ---------------------------------------------
6042 -- 12.3 Explicit Generic Actual Parameter --
6043 ---------------------------------------------
6044
6045 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6046 -- EXPRESSION | variable_NAME | subprogram_NAME
6047 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
6048
6049 -------------------------------------
6050 -- 12.4 Formal Object Declaration --
6051 -------------------------------------
6052
6053 -- FORMAL_OBJECT_DECLARATION ::=
6054 -- DEFINING_IDENTIFIER_LIST :
6055 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6056 -- [ASPECT_SPECIFICATIONS];
6057 -- | DEFINING_IDENTIFIER_LIST :
6058 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6059 -- [ASPECT_SPECIFICATIONS];
6060
6061 -- Although the syntax allows multiple identifiers in the list, the
6062 -- semantics is as though successive declarations were given with
6063 -- identical type definition and expression components. To simplify
6064 -- semantic processing, the parser represents a multiple declaration
6065 -- case as a sequence of single declarations, using the More_Ids and
6066 -- Prev_Ids flags to preserve the original source form as described
6067 -- in the section on "Handling of Defining Identifier Lists".
6068
6069 -- N_Formal_Object_Declaration
6070 -- Sloc points to first identifier
6071 -- Defining_Identifier (Node1)
6072 -- In_Present (Flag15)
6073 -- Out_Present (Flag17)
6074 -- Null_Exclusion_Present (Flag11) (set to False if not present)
6075 -- Subtype_Mark (Node4) (set to Empty if not present)
6076 -- Access_Definition (Node3) (set to Empty if not present)
6077 -- Default_Expression (Node5) (set to Empty if no default expression)
6078 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6079 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6080
6081 -----------------------------------
6082 -- 12.5 Formal Type Declaration --
6083 -----------------------------------
6084
6085 -- FORMAL_TYPE_DECLARATION ::=
6086 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6087 -- is FORMAL_TYPE_DEFINITION
6088 -- [ASPECT_SPECIFICATIONS];
6089
6090 -- N_Formal_Type_Declaration
6091 -- Sloc points to TYPE
6092 -- Defining_Identifier (Node1)
6093 -- Formal_Type_Definition (Node3)
6094 -- Discriminant_Specifications (List4) (set to No_List if no
6095 -- discriminant part)
6096 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6097
6098 ----------------------------------
6099 -- 12.5 Formal type definition --
6100 ----------------------------------
6101
6102 -- FORMAL_TYPE_DEFINITION ::=
6103 -- FORMAL_PRIVATE_TYPE_DEFINITION
6104 -- | FORMAL_DERIVED_TYPE_DEFINITION
6105 -- | FORMAL_DISCRETE_TYPE_DEFINITION
6106 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6107 -- | FORMAL_MODULAR_TYPE_DEFINITION
6108 -- | FORMAL_FLOATING_POINT_DEFINITION
6109 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6110 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6111 -- | FORMAL_ARRAY_TYPE_DEFINITION
6112 -- | FORMAL_ACCESS_TYPE_DEFINITION
6113 -- | FORMAL_INTERFACE_TYPE_DEFINITION
6114
6115 ---------------------------------------------
6116 -- 12.5.1 Formal Private Type Definition --
6117 ---------------------------------------------
6118
6119 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
6120 -- [[abstract] tagged] [limited] private
6121
6122 -- Note: TAGGED is not allowed in Ada 83 mode
6123
6124 -- N_Formal_Private_Type_Definition
6125 -- Sloc points to PRIVATE
6126 -- Abstract_Present (Flag4)
6127 -- Tagged_Present (Flag15)
6128 -- Limited_Present (Flag17)
6129
6130 --------------------------------------------
6131 -- 12.5.1 Formal Derived Type Definition --
6132 --------------------------------------------
6133
6134 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
6135 -- [abstract] [limited | synchronized]
6136 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6137 -- Note: this construct is not allowed in Ada 83 mode
6138
6139 -- N_Formal_Derived_Type_Definition
6140 -- Sloc points to NEW
6141 -- Subtype_Mark (Node4)
6142 -- Private_Present (Flag15)
6143 -- Abstract_Present (Flag4)
6144 -- Limited_Present (Flag17)
6145 -- Synchronized_Present (Flag7)
6146 -- Interface_List (List2) (set to No_List if none)
6147
6148 ---------------------------------------------
6149 -- 12.5.2 Formal Discrete Type Definition --
6150 ---------------------------------------------
6151
6152 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6153
6154 -- N_Formal_Discrete_Type_Definition
6155 -- Sloc points to (
6156
6157 ---------------------------------------------------
6158 -- 12.5.2 Formal Signed Integer Type Definition --
6159 ---------------------------------------------------
6160
6161 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6162
6163 -- N_Formal_Signed_Integer_Type_Definition
6164 -- Sloc points to RANGE
6165
6166 --------------------------------------------
6167 -- 12.5.2 Formal Modular Type Definition --
6168 --------------------------------------------
6169
6170 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6171
6172 -- N_Formal_Modular_Type_Definition
6173 -- Sloc points to MOD
6174
6175 ----------------------------------------------
6176 -- 12.5.2 Formal Floating Point Definition --
6177 ----------------------------------------------
6178
6179 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6180
6181 -- N_Formal_Floating_Point_Definition
6182 -- Sloc points to DIGITS
6183
6184 ----------------------------------------------------
6185 -- 12.5.2 Formal Ordinary Fixed Point Definition --
6186 ----------------------------------------------------
6187
6188 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6189
6190 -- N_Formal_Ordinary_Fixed_Point_Definition
6191 -- Sloc points to DELTA
6192
6193 ---------------------------------------------------
6194 -- 12.5.2 Formal Decimal Fixed Point Definition --
6195 ---------------------------------------------------
6196
6197 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6198
6199 -- Note: formal decimal fixed point definition not allowed in Ada 83
6200
6201 -- N_Formal_Decimal_Fixed_Point_Definition
6202 -- Sloc points to DELTA
6203
6204 ------------------------------------------
6205 -- 12.5.3 Formal Array Type Definition --
6206 ------------------------------------------
6207
6208 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6209
6210 -------------------------------------------
6211 -- 12.5.4 Formal Access Type Definition --
6212 -------------------------------------------
6213
6214 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6215
6216 ----------------------------------------------
6217 -- 12.5.5 Formal Interface Type Definition --
6218 ----------------------------------------------
6219
6220 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6221
6222 -----------------------------------------
6223 -- 12.6 Formal Subprogram Declaration --
6224 -----------------------------------------
6225
6226 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6227 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6228 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6229
6230 --------------------------------------------------
6231 -- 12.6 Formal Concrete Subprogram Declaration --
6232 --------------------------------------------------
6233
6234 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6235 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6236 -- [ASPECT_SPECIFICATIONS];
6237
6238 -- N_Formal_Concrete_Subprogram_Declaration
6239 -- Sloc points to WITH
6240 -- Specification (Node1)
6241 -- Default_Name (Node2) (set to Empty if no subprogram default)
6242 -- Box_Present (Flag15)
6243
6244 -- Note: if no subprogram default is present, then Name is set
6245 -- to Empty, and Box_Present is False.
6246
6247 --------------------------------------------------
6248 -- 12.6 Formal Abstract Subprogram Declaration --
6249 --------------------------------------------------
6250
6251 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6252 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6253 -- [ASPECT_SPECIFICATIONS];
6254
6255 -- N_Formal_Abstract_Subprogram_Declaration
6256 -- Sloc points to WITH
6257 -- Specification (Node1)
6258 -- Default_Name (Node2) (set to Empty if no subprogram default)
6259 -- Box_Present (Flag15)
6260
6261 -- Note: if no subprogram default is present, then Name is set
6262 -- to Empty, and Box_Present is False.
6263
6264 ------------------------------
6265 -- 12.6 Subprogram Default --
6266 ------------------------------
6267
6268 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6269
6270 -- There is no separate node in the tree for a subprogram default.
6271 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6272 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6273 -- default name or box indication, as needed.
6274
6275 ------------------------
6276 -- 12.6 Default Name --
6277 ------------------------
6278
6279 -- DEFAULT_NAME ::= NAME
6280
6281 --------------------------------------
6282 -- 12.7 Formal Package Declaration --
6283 --------------------------------------
6284
6285 -- FORMAL_PACKAGE_DECLARATION ::=
6286 -- with package DEFINING_IDENTIFIER
6287 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
6288 -- [ASPECT_SPECIFICATIONS];
6289
6290 -- Note: formal package declarations not allowed in Ada 83 mode
6291
6292 -- N_Formal_Package_Declaration
6293 -- Sloc points to WITH
6294 -- Defining_Identifier (Node1)
6295 -- Name (Node2)
6296 -- Generic_Associations (List3) (set to No_List if (<>) case or
6297 -- empty generic actual part)
6298 -- Box_Present (Flag15)
6299 -- Instance_Spec (Node5-Sem)
6300 -- ABE_Is_Certain (Flag18-Sem)
6301
6302 --------------------------------------
6303 -- 12.7 Formal Package Actual Part --
6304 --------------------------------------
6305
6306 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6307 -- ([OTHERS] => <>)
6308 -- | [GENERIC_ACTUAL_PART]
6309 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6310
6311 -- FORMAL_PACKAGE_ASSOCIATION ::=
6312 -- GENERIC_ASSOCIATION
6313 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6314
6315 -- There is no explicit node in the tree for a formal package actual
6316 -- part. Instead the information appears in the parent node (i.e. the
6317 -- formal package declaration node itself).
6318
6319 -- There is no explicit node for a formal package association. All of
6320 -- them are represented either by a generic association, possibly with
6321 -- Box_Present, or by an N_Others_Choice.
6322
6323 ---------------------------------
6324 -- 13.1 Representation clause --
6325 ---------------------------------
6326
6327 -- REPRESENTATION_CLAUSE ::=
6328 -- ATTRIBUTE_DEFINITION_CLAUSE
6329 -- | ENUMERATION_REPRESENTATION_CLAUSE
6330 -- | RECORD_REPRESENTATION_CLAUSE
6331 -- | AT_CLAUSE
6332
6333 ----------------------
6334 -- 13.1 Local Name --
6335 ----------------------
6336
6337 -- LOCAL_NAME :=
6338 -- DIRECT_NAME
6339 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6340 -- | library_unit_NAME
6341
6342 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6343 -- as an attribute reference, which has essentially the same form.
6344
6345 ---------------------------------------
6346 -- 13.3 Attribute definition clause --
6347 ---------------------------------------
6348
6349 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6350 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6351 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6352
6353 -- In Ada 83, the expression must be a simple expression and the
6354 -- local name must be a direct name.
6355
6356 -- Note: the only attribute definition clause that is processed by
6357 -- gigi is an address clause. For all other cases, the information
6358 -- is extracted by the front end and either results in setting entity
6359 -- information, e.g. Esize for the Size clause, or in appropriate
6360 -- expansion actions (e.g. in the case of Storage_Size).
6361
6362 -- For an address clause, Gigi constructs the appropriate addressing
6363 -- code. It also ensures that no aliasing optimizations are made
6364 -- for the object for which the address clause appears.
6365
6366 -- Note: for an address clause used to achieve an overlay:
6367
6368 -- A : Integer;
6369 -- B : Integer;
6370 -- for B'Address use A'Address;
6371
6372 -- the above rule means that Gigi will ensure that no optimizations
6373 -- will be made for B that would violate the implementation advice
6374 -- of RM 13.3(19). However, this advice applies only to B and not
6375 -- to A, which seems unfortunate. The GNAT front end will mark the
6376 -- object A as volatile to also prevent unwanted optimization
6377 -- assumptions based on no aliasing being made for B.
6378
6379 -- N_Attribute_Definition_Clause
6380 -- Sloc points to FOR
6381 -- Name (Node2) the local name
6382 -- Chars (Name1) the identifier name from the attribute designator
6383 -- Expression (Node3) the expression or name
6384 -- Entity (Node4-Sem)
6385 -- Next_Rep_Item (Node5-Sem)
6386 -- From_At_Mod (Flag4-Sem)
6387 -- Check_Address_Alignment (Flag11-Sem)
6388 -- From_Aspect_Specification (Flag13-Sem)
6389 -- Is_Delayed_Aspect (Flag14-Sem)
6390 -- Address_Warning_Posted (Flag18-Sem)
6391
6392 -- Note: if From_Aspect_Specification is set, then Sloc points to the
6393 -- aspect name, and Entity is resolved already to reference the entity
6394 -- to which the aspect applies.
6395
6396 -----------------------------------
6397 -- 13.3.1 Aspect Specifications --
6398 -----------------------------------
6399
6400 -- We modify the RM grammar here, the RM grammar is:
6401
6402 -- ASPECT_SPECIFICATION ::=
6403 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {.
6404 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
6405
6406 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6407
6408 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
6409
6410 -- That's inconvenient, since there is no non-terminal name for a single
6411 -- entry in the list of aspects. So we use this grammar instead:
6412
6413 -- ASPECT_SPECIFICATIONS ::=
6414 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
6415
6416 -- ASPECT_SPECIFICATION =>
6417 -- ASPECT_MARK [=> ASPECT_DEFINITION]
6418
6419 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6420
6421 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
6422
6423 -- See separate package Aspects for details on the incorporation of
6424 -- these nodes into the tree, and how aspect specifications for a given
6425 -- declaration node are associated with that node.
6426
6427 -- N_Aspect_Specification
6428 -- Sloc points to aspect identifier
6429 -- Identifier (Node1) aspect identifier
6430 -- Aspect_Rep_Item (Node2-Sem)
6431 -- Expression (Node3) Aspect_Definition (set to Empty if none)
6432 -- Entity (Node4-Sem) entity to which the aspect applies
6433 -- Class_Present (Flag6) Set if 'Class present
6434 -- Next_Rep_Item (Node5-Sem)
6435
6436 -- Note: Aspect_Specification is an Ada 2012 feature
6437
6438 ---------------------------------------------
6439 -- 13.4 Enumeration representation clause --
6440 ---------------------------------------------
6441
6442 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
6443 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6444
6445 -- In Ada 83, the name must be a direct name
6446
6447 -- N_Enumeration_Representation_Clause
6448 -- Sloc points to FOR
6449 -- Identifier (Node1) direct name
6450 -- Array_Aggregate (Node3)
6451 -- Next_Rep_Item (Node5-Sem)
6452
6453 ---------------------------------
6454 -- 13.4 Enumeration aggregate --
6455 ---------------------------------
6456
6457 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6458
6459 ------------------------------------------
6460 -- 13.5.1 Record representation clause --
6461 ------------------------------------------
6462
6463 -- RECORD_REPRESENTATION_CLAUSE ::=
6464 -- for first_subtype_LOCAL_NAME use
6465 -- record [MOD_CLAUSE]
6466 -- {COMPONENT_CLAUSE}
6467 -- end record;
6468
6469 -- Gigi restriction: Mod_Clause is always Empty (if present it is
6470 -- replaced by a corresponding Alignment attribute definition clause).
6471
6472 -- Note: Component_Clauses can include pragmas
6473
6474 -- N_Record_Representation_Clause
6475 -- Sloc points to FOR
6476 -- Identifier (Node1) direct name
6477 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
6478 -- Component_Clauses (List3)
6479 -- Next_Rep_Item (Node5-Sem)
6480
6481 ------------------------------
6482 -- 13.5.1 Component clause --
6483 ------------------------------
6484
6485 -- COMPONENT_CLAUSE ::=
6486 -- component_LOCAL_NAME at POSITION
6487 -- range FIRST_BIT .. LAST_BIT;
6488
6489 -- N_Component_Clause
6490 -- Sloc points to AT
6491 -- Component_Name (Node1) points to Name or Attribute_Reference
6492 -- Position (Node2)
6493 -- First_Bit (Node3)
6494 -- Last_Bit (Node4)
6495
6496 ----------------------
6497 -- 13.5.1 Position --
6498 ----------------------
6499
6500 -- POSITION ::= static_EXPRESSION
6501
6502 -----------------------
6503 -- 13.5.1 First_Bit --
6504 -----------------------
6505
6506 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
6507
6508 ----------------------
6509 -- 13.5.1 Last_Bit --
6510 ----------------------
6511
6512 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
6513
6514 --------------------------
6515 -- 13.8 Code statement --
6516 --------------------------
6517
6518 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6519
6520 -- Note: in GNAT, the qualified expression has the form
6521
6522 -- Asm_Insn'(Asm (...));
6523
6524 -- See package System.Machine_Code in file s-maccod.ads for details on
6525 -- the allowed parameters to Asm. There are two ways this node can
6526 -- arise, as a code statement, in which case the expression is the
6527 -- qualified expression, or as a result of the expansion of an intrinsic
6528 -- call to the Asm or Asm_Input procedure.
6529
6530 -- N_Code_Statement
6531 -- Sloc points to first token of the expression
6532 -- Expression (Node3)
6533
6534 -- Note: package Exp_Code contains an abstract functional interface
6535 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
6536
6537 ------------------------
6538 -- 13.12 Restriction --
6539 ------------------------
6540
6541 -- RESTRICTION ::=
6542 -- restriction_IDENTIFIER
6543 -- | restriction_parameter_IDENTIFIER => EXPRESSION
6544
6545 -- There is no explicit node for restrictions. Instead the restriction
6546 -- appears in normal pragma syntax as a pragma argument association,
6547 -- which has the same syntactic form.
6548
6549 --------------------------
6550 -- B.2 Shift Operators --
6551 --------------------------
6552
6553 -- Calls to the intrinsic shift functions are converted to one of
6554 -- the following shift nodes, which have the form of normal binary
6555 -- operator names. Note that for a given shift operation, one node
6556 -- covers all possible types, as for normal operators.
6557
6558 -- Note: it is perfectly permissible for the expander to generate
6559 -- shift operation nodes directly, in which case they will be analyzed
6560 -- and parsed in the usual manner.
6561
6562 -- Sprint syntax: shift-function-name!(expr, count)
6563
6564 -- Note: the Left_Opnd field holds the first argument (the value to
6565 -- be shifted). The Right_Opnd field holds the second argument (the
6566 -- shift count). The Chars field is the name of the intrinsic function.
6567
6568 -- N_Op_Rotate_Left
6569 -- Sloc points to the function name
6570 -- plus fields for binary operator
6571 -- plus fields for expression
6572 -- Shift_Count_OK (Flag4-Sem)
6573
6574 -- N_Op_Rotate_Right
6575 -- Sloc points to the function name
6576 -- plus fields for binary operator
6577 -- plus fields for expression
6578 -- Shift_Count_OK (Flag4-Sem)
6579
6580 -- N_Op_Shift_Left
6581 -- Sloc points to the function name
6582 -- plus fields for binary operator
6583 -- plus fields for expression
6584 -- Shift_Count_OK (Flag4-Sem)
6585
6586 -- N_Op_Shift_Right_Arithmetic
6587 -- Sloc points to the function name
6588 -- plus fields for binary operator
6589 -- plus fields for expression
6590 -- Shift_Count_OK (Flag4-Sem)
6591
6592 -- N_Op_Shift_Right
6593 -- Sloc points to the function name
6594 -- plus fields for binary operator
6595 -- plus fields for expression
6596 -- Shift_Count_OK (Flag4-Sem)
6597
6598 --------------------------
6599 -- Obsolescent Features --
6600 --------------------------
6601
6602 -- The syntax descriptions and tree nodes for obsolescent features are
6603 -- grouped together, corresponding to their location in appendix I in
6604 -- the RM. However, parsing and semantic analysis for these constructs
6605 -- is located in an appropriate chapter (see individual notes).
6606
6607 ---------------------------
6608 -- J.3 Delta Constraint --
6609 ---------------------------
6610
6611 -- Note: the parse routine for this construct is located in section
6612 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6613 -- where delta constraint logically belongs.
6614
6615 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6616
6617 -- N_Delta_Constraint
6618 -- Sloc points to DELTA
6619 -- Delta_Expression (Node3)
6620 -- Range_Constraint (Node4) (set to Empty if not present)
6621
6622 --------------------
6623 -- J.7 At Clause --
6624 --------------------
6625
6626 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6627
6628 -- Note: the parse routine for this construct is located in Par-Ch13,
6629 -- and the semantic analysis is in Sem_Ch13, where at clause logically
6630 -- belongs if it were not obsolescent.
6631
6632 -- Note: in Ada 83 the expression must be a simple expression
6633
6634 -- Gigi restriction: This node never appears, it is rewritten as an
6635 -- address attribute definition clause.
6636
6637 -- N_At_Clause
6638 -- Sloc points to FOR
6639 -- Identifier (Node1)
6640 -- Expression (Node3)
6641
6642 ---------------------
6643 -- J.8 Mod clause --
6644 ---------------------
6645
6646 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
6647
6648 -- Note: the parse routine for this construct is located in Par-Ch13,
6649 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
6650 -- belongs if it were not obsolescent.
6651
6652 -- Note: in Ada 83, the expression must be a simple expression
6653
6654 -- Gigi restriction: this node never appears. It is replaced
6655 -- by a corresponding Alignment attribute definition clause.
6656
6657 -- Note: pragmas can appear before and after the MOD_CLAUSE since
6658 -- its name has "clause" in it. This is rather strange, but is quite
6659 -- definitely specified. The pragmas before are collected in the
6660 -- Pragmas_Before field of the mod clause node itself, and pragmas
6661 -- after are simply swallowed up in the list of component clauses.
6662
6663 -- N_Mod_Clause
6664 -- Sloc points to AT
6665 -- Expression (Node3)
6666 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6667
6668 --------------------
6669 -- Semantic Nodes --
6670 --------------------
6671
6672 -- These semantic nodes are used to hold additional semantic information.
6673 -- They are inserted into the tree as a result of semantic processing.
6674 -- Although there are no legitimate source syntax constructions that
6675 -- correspond directly to these nodes, we need a source syntax for the
6676 -- reconstructed tree printed by Sprint, and the node descriptions here
6677 -- show this syntax.
6678
6679 -- Note: Case_Expression and Conditional_Expression is in this section for
6680 -- now, since they are extensions. We will move them to their appropriate
6681 -- places when they are officially approved as extensions (and then we will
6682 -- know what the exact grammar and place in the Reference Manual is!)
6683
6684 ---------------------
6685 -- Case Expression --
6686 ---------------------
6687
6688 -- CASE_EXPRESSION ::=
6689 -- case EXPRESSION is
6690 -- CASE_EXPRESSION_ALTERNATIVE
6691 -- {CASE_EXPRESSION_ALTERNATIVE}
6692
6693 -- Note that the Alternatives cannot include pragmas (this constrasts
6694 -- with the situation of case statements where pragmas are allowed).
6695
6696 -- N_Case_Expression
6697 -- Sloc points to CASE
6698 -- Expression (Node3)
6699 -- Alternatives (List4)
6700
6701 ---------------------------------
6702 -- Case Expression Alternative --
6703 ---------------------------------
6704
6705 -- CASE_STATEMENT_ALTERNATIVE ::=
6706 -- when DISCRETE_CHOICE_LIST =>
6707 -- EXPRESSION
6708
6709 -- N_Case_Expression_Alternative
6710 -- Sloc points to WHEN
6711 -- Actions (List1)
6712 -- Discrete_Choices (List4)
6713 -- Expression (Node3)
6714
6715 -- Note: The Actions field temporarily holds any actions associated with
6716 -- evaluation of the Expression. During expansion of the case expression
6717 -- these actions are wrapped into the an N_Expressions_With_Actions node
6718 -- replacing the original expression.
6719
6720 ----------------------------
6721 -- Conditional Expression --
6722 ----------------------------
6723
6724 -- This node is used to represent an expression corresponding to the
6725 -- C construct (condition ? then-expression : else_expression), where
6726 -- Expressions is a three element list, whose first expression is the
6727 -- condition, and whose second and third expressions are the then and
6728 -- else expressions respectively.
6729
6730 -- Note: the Then_Actions and Else_Actions fields are always set to
6731 -- No_List in the tree passed to Gigi. These fields are used only
6732 -- for temporary processing purposes in the expander.
6733
6734 -- The Ada language does not permit conditional expressions, however
6735 -- this is under discussion as a possible extension by the ARG, and we
6736 -- have implemented a form of this capability in GNAT under control of
6737 -- the -gnatX switch. The syntax is:
6738
6739 -- CONDITIONAL_EXPRESSION ::=
6740 -- if EXPRESSION then EXPRESSION
6741 -- {elsif EXPRESSION then EXPRESSION}
6742 -- [else EXPRESSION]
6743
6744 -- And we add the additional constructs
6745
6746 -- PRIMARY ::= ( CONDITIONAL_EXPRESION )
6747 -- PRAGMA_ARGUMENT_ASSOCIATION ::= CONDITIONAL_EXPRESSION
6748
6749 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
6750 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
6751 -- the Is_Elsif flag is set on the inner conditional expression.
6752
6753 -- N_Conditional_Expression
6754 -- Sloc points to IF or ELSIF keyword
6755 -- Expressions (List1)
6756 -- Then_Actions (List2-Sem)
6757 -- Else_Actions (List3-Sem)
6758 -- Is_Elsif (Flag13) (set if comes from ELSIF)
6759 -- plus fields for expression
6760
6761 -------------------
6762 -- Expanded_Name --
6763 -------------------
6764
6765 -- The N_Expanded_Name node is used to represent a selected component
6766 -- name that has been resolved to an expanded name. The semantic phase
6767 -- replaces N_Selected_Component nodes that represent names by the use
6768 -- of this node, leaving the N_Selected_Component node used only when
6769 -- the prefix is a record or protected type.
6770
6771 -- The fields of the N_Expanded_Name node are layed out identically
6772 -- to those of the N_Selected_Component node, allowing conversion of
6773 -- an expanded name node to a selected component node to be done
6774 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6775
6776 -- There is no special sprint syntax for an expanded name
6777
6778 -- N_Expanded_Name
6779 -- Sloc points to the period
6780 -- Chars (Name1) copy of Chars field of selector name
6781 -- Prefix (Node3)
6782 -- Selector_Name (Node2)
6783 -- Entity (Node4-Sem)
6784 -- Associated_Node (Node4-Sem)
6785 -- Redundant_Use (Flag13-Sem)
6786 -- Has_Private_View (Flag11-Sem) set in generic units.
6787 -- plus fields for expression
6788
6789 -----------------------------
6790 -- Expression with Actions --
6791 -----------------------------
6792
6793 -- This node is created by the analyzer/expander to handle some
6794 -- expansion cases, notably short circuit forms where there are
6795 -- actions associated with the right hand operand.
6796
6797 -- The N_Expression_With_Actions node represents an expression with
6798 -- an associated set of actions (which are executable statements and
6799 -- declarations, as might occur in a handled statement sequence).
6800
6801 -- The required semantics is that the set of actions is executed in
6802 -- the order in which it appears just before the expression is
6803 -- evaluated (and these actions must only be executed if the value
6804 -- of the expression is evaluated). The node is considered to be
6805 -- a subexpression, whose value is the value of the Expression after
6806 -- executing all the actions.
6807
6808 -- Note: if the actions contain declarations, then these declarations
6809 -- maybe referenced with in the expression. It is thus appropriate for
6810 -- the back end to create a scope that encompasses the construct (any
6811 -- declarations within the actions will definitely not be referenced
6812 -- once elaboration of the construct is completed).
6813
6814 -- Sprint syntax: do
6815 -- action;
6816 -- action;
6817 -- ...
6818 -- action;
6819 -- in expression end
6820
6821 -- N_Expression_With_Actions
6822 -- Actions (List1)
6823 -- Expression (Node3)
6824 -- plus fields for expression
6825
6826 -- Note: the actions list is always non-null, since we would
6827 -- never have created this node if there weren't some actions.
6828
6829 --------------------
6830 -- Free Statement --
6831 --------------------
6832
6833 -- The N_Free_Statement node is generated as a result of a call to an
6834 -- instantiation of Unchecked_Deallocation. The instantiation of this
6835 -- generic is handled specially and generates this node directly.
6836
6837 -- Sprint syntax: free expression
6838
6839 -- N_Free_Statement
6840 -- Sloc is copied from the unchecked deallocation call
6841 -- Expression (Node3) argument to unchecked deallocation call
6842 -- Storage_Pool (Node1-Sem)
6843 -- Procedure_To_Call (Node2-Sem)
6844 -- Actual_Designated_Subtype (Node4-Sem)
6845
6846 -- Note: in the case where a debug source file is generated, the Sloc
6847 -- for this node points to the FREE keyword in the Sprint file output.
6848
6849 -------------------
6850 -- Freeze Entity --
6851 -------------------
6852
6853 -- This node marks the point in a declarative part at which an entity
6854 -- declared therein becomes frozen. The expander places initialization
6855 -- procedures for types at those points. Gigi uses the freezing point
6856 -- to elaborate entities that may depend on previous private types.
6857
6858 -- See the section in Einfo "Delayed Freezing and Elaboration" for
6859 -- a full description of the use of this node.
6860
6861 -- The Entity field points back to the entity for the type (whose
6862 -- Freeze_Node field points back to this freeze node).
6863
6864 -- The Actions field contains a list of declarations and statements
6865 -- generated by the expander which are associated with the freeze
6866 -- node, and are elaborated as though the freeze node were replaced
6867 -- by this sequence of actions.
6868
6869 -- Note: the Sloc field in the freeze node references a construct
6870 -- associated with the freezing point. This is used for posting
6871 -- messages in some error/warning situations, e.g. the case where
6872 -- a primitive operation of a tagged type is declared too late.
6873
6874 -- Sprint syntax: freeze entity-name [
6875 -- freeze actions
6876 -- ]
6877
6878 -- N_Freeze_Entity
6879 -- Sloc points near freeze point (see above special note)
6880 -- Entity (Node4-Sem)
6881 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6882 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6883 -- Actions (List1) (set to No_List if no freeze actions)
6884 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6885
6886 -- The Actions field holds actions associated with the freeze. These
6887 -- actions are elaborated at the point where the type is frozen.
6888
6889 -- Note: in the case where a debug source file is generated, the Sloc
6890 -- for this node points to the FREEZE keyword in the Sprint file output.
6891
6892 --------------------------------
6893 -- Implicit Label Declaration --
6894 --------------------------------
6895
6896 -- An implicit label declaration is created for every occurrence of a
6897 -- label on a statement or a label on a block or loop. It is chained
6898 -- in the declarations of the innermost enclosing block as specified
6899 -- in RM section 5.1 (3).
6900
6901 -- The Defining_Identifier is the actual identifier for the statement
6902 -- identifier. Note that the occurrence of the label is a reference, NOT
6903 -- the defining occurrence. The defining occurrence occurs at the head
6904 -- of the innermost enclosing block, and is represented by this node.
6905
6906 -- Note: from the grammar, this might better be called an implicit
6907 -- statement identifier declaration, but the term we choose seems
6908 -- friendlier, since at least informally statement identifiers are
6909 -- called labels in both cases (i.e. when used in labels, and when
6910 -- used as the identifiers of blocks and loops).
6911
6912 -- Note: although this is logically a semantic node, since it does not
6913 -- correspond directly to a source syntax construction, these nodes are
6914 -- actually created by the parser in a post pass done just after parsing
6915 -- is complete, before semantic analysis is started (see Par.Labl).
6916
6917 -- Sprint syntax: labelname : label;
6918
6919 -- N_Implicit_Label_Declaration
6920 -- Sloc points to the << of the label
6921 -- Defining_Identifier (Node1)
6922 -- Label_Construct (Node2-Sem)
6923
6924 -- Note: in the case where a debug source file is generated, the Sloc
6925 -- for this node points to the label name in the generated declaration.
6926
6927 ---------------------
6928 -- Itype_Reference --
6929 ---------------------
6930
6931 -- This node is used to create a reference to an Itype. The only purpose
6932 -- is to make sure the Itype is defined if this is the first reference.
6933
6934 -- A typical use of this node is when an Itype is to be referenced in
6935 -- two branches of an IF statement. In this case it is important that
6936 -- the first use of the Itype not be inside the conditional, since then
6937 -- it might not be defined if the other branch of the IF is taken, in
6938 -- the case where the definition generates elaboration code.
6939
6940 -- The Itype field points to the referenced Itype
6941
6942 -- Sprint syntax: reference itype-name
6943
6944 -- N_Itype_Reference
6945 -- Sloc points to the node generating the reference
6946 -- Itype (Node1-Sem)
6947
6948 -- Note: in the case where a debug source file is generated, the Sloc
6949 -- for this node points to the REFERENCE keyword in the file output.
6950
6951 ---------------------
6952 -- Raise_xxx_Error --
6953 ---------------------
6954
6955 -- One of these nodes is created during semantic analysis to replace
6956 -- a node for an expression that is determined to definitely raise
6957 -- the corresponding exception.
6958
6959 -- The N_Raise_xxx_Error node may also stand alone in place
6960 -- of a declaration or statement, in which case it simply causes
6961 -- the exception to be raised (i.e. it is equivalent to a raise
6962 -- statement that raises the corresponding exception). This use
6963 -- is distinguished by the fact that the Etype in this case is
6964 -- Standard_Void_Type, In the subexpression case, the Etype is the
6965 -- same as the type of the subexpression which it replaces.
6966
6967 -- If Condition is empty, then the raise is unconditional. If the
6968 -- Condition field is non-empty, it is a boolean expression which
6969 -- is first evaluated, and the exception is raised only if the
6970 -- value of the expression is True. In the unconditional case, the
6971 -- creation of this node is usually accompanied by a warning message
6972 -- error. The creation of this node will usually be accompanied by a
6973 -- message (unless it appears within the right operand of a short
6974 -- circuit form whose left argument is static and decisively
6975 -- eliminates elaboration of the raise operation. The condition field
6976 -- can ONLY be present when the node is used as a statement form, it
6977 -- may NOT be present in the case where the node appears within an
6978 -- expression.
6979
6980 -- The exception is generated with a message that contains the
6981 -- file name and line number, and then appended text. The Reason
6982 -- code shows the text to be added. The Reason code is an element
6983 -- of the type Types.RT_Exception_Code, and indicates both the
6984 -- message to be added, and the exception to be raised (which must
6985 -- match the node type). The value is stored by storing a Uint which
6986 -- is the Pos value of the enumeration element in this type.
6987
6988 -- Gigi restriction: This expander ensures that the type of the
6989 -- Condition field is always Standard.Boolean, even if the type
6990 -- in the source is some non-standard boolean type.
6991
6992 -- Sprint syntax: [xxx_error "msg"]
6993 -- or: [xxx_error when condition "msg"]
6994
6995 -- N_Raise_Constraint_Error
6996 -- Sloc references related construct
6997 -- Condition (Node1) (set to Empty if no condition)
6998 -- Reason (Uint3)
6999 -- plus fields for expression
7000
7001 -- N_Raise_Program_Error
7002 -- Sloc references related construct
7003 -- Condition (Node1) (set to Empty if no condition)
7004 -- Reason (Uint3)
7005 -- plus fields for expression
7006
7007 -- N_Raise_Storage_Error
7008 -- Sloc references related construct
7009 -- Condition (Node1) (set to Empty if no condition)
7010 -- Reason (Uint3)
7011 -- plus fields for expression
7012
7013 -- Note: Sloc is copied from the expression generating the exception.
7014 -- In the case where a debug source file is generated, the Sloc for
7015 -- this node points to the left bracket in the Sprint file output.
7016
7017 -- Note: the back end may be required to translate these nodes into
7018 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7019
7020 ---------------------------------------------
7021 -- Optimization of Exception Raise to Goto --
7022 ---------------------------------------------
7023
7024 -- In some cases, the front end will determine that any exception raised
7025 -- by the back end for a certain exception should be transformed into a
7026 -- goto statement.
7027
7028 -- There are three kinds of exceptions raised by the back end (note that
7029 -- for this purpose we consider gigi to be part of the back end in the
7030 -- gcc case):
7031
7032 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
7033 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
7034 -- 3. Other cases not specifically marked by the front end
7035
7036 -- Normally all such exceptions are translated into calls to the proper
7037 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
7038 -- and the exception message.
7039
7040 -- The front end may determine that for a particular sequence of code,
7041 -- exceptions in any of these three categories for a particular builtin
7042 -- exception should result in a goto, rather than a call to Rcheck_xx.
7043 -- The exact sequence to be generated is:
7044
7045 -- Local_Raise (exception'Identity);
7046 -- goto Label
7047
7048 -- The front end marks such a sequence of code by bracketing it with
7049 -- push and pop nodes:
7050
7051 -- N_Push_xxx_Label (referencing the label)
7052 -- ...
7053 -- (code where transformation is expected for exception xxx)
7054 -- ...
7055 -- N_Pop_xxx_Label
7056
7057 -- The use of push/pop reflects the fact that such regions can properly
7058 -- nest, and one special case is a subregion in which no transformation
7059 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7060 -- Exception_Label field is Empty.
7061
7062 -- N_Push_Constraint_Error_Label
7063 -- Sloc references first statement in region covered
7064 -- Exception_Label (Node5-Sem)
7065
7066 -- N_Push_Program_Error_Label
7067 -- Sloc references first statement in region covered
7068 -- Exception_Label (Node5-Sem)
7069
7070 -- N_Push_Storage_Error_Label
7071 -- Sloc references first statement in region covered
7072 -- Exception_Label (Node5-Sem)
7073
7074 -- N_Pop_Constraint_Error_Label
7075 -- Sloc references last statement in region covered
7076
7077 -- N_Pop_Program_Error_Label
7078 -- Sloc references last statement in region covered
7079
7080 -- N_Pop_Storage_Error_Label
7081 -- Sloc references last statement in region covered
7082
7083 ---------------
7084 -- Reference --
7085 ---------------
7086
7087 -- For a number of purposes, we need to construct references to objects.
7088 -- These references are subsequently treated as normal access values.
7089 -- An example is the construction of the parameter block passed to a
7090 -- task entry. The N_Reference node is provided for this purpose. It is
7091 -- similar in effect to the use of the Unrestricted_Access attribute,
7092 -- and like Unrestricted_Access can be applied to objects which would
7093 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
7094 -- objects which are not aliased, and slices). In addition it can be
7095 -- applied to composite type values as well as objects, including string
7096 -- values and aggregates.
7097
7098 -- Note: we use the Prefix field for this expression so that the
7099 -- resulting node can be treated using common code with the attribute
7100 -- nodes for the 'Access and related attributes. Logically it would make
7101 -- more sense to call it an Expression field, but then we would have to
7102 -- special case the treatment of the N_Reference node.
7103
7104 -- Sprint syntax: prefix'reference
7105
7106 -- N_Reference
7107 -- Sloc is copied from the expression
7108 -- Prefix (Node3)
7109 -- plus fields for expression
7110
7111 -- Note: in the case where a debug source file is generated, the Sloc
7112 -- for this node points to the quote in the Sprint file output.
7113
7114 -----------------
7115 -- SCIL Nodes --
7116 -----------------
7117
7118 -- SCIL nodes are special nodes added to the tree when the CodePeer
7119 -- mode is active. They help the CodePeer backend to locate nodes that
7120 -- require special processing.
7121
7122 -- Major documentation on the general design of the SCIL interface, and
7123 -- in particular detailed description of these nodes is missing and is
7124 -- to be supplied in the future, when the design has finalized ???
7125
7126 -- Meanwhile these nodes should be considered in experimental form, and
7127 -- should be ignored by all code generating back ends. ???
7128
7129 -- N_SCIL_Dispatch_Table_Tag_Init
7130 -- Sloc references a node for a tag initialization
7131 -- SCIL_Entity (Node4-Sem)
7132
7133 -- N_SCIL_Dispatching_Call
7134 -- Sloc references the node of a dispatching call
7135 -- SCIL_Target_Prim (Node2-Sem)
7136 -- SCIL_Entity (Node4-Sem)
7137 -- SCIL_Controlling_Tag (Node5-Sem)
7138
7139 -- N_SCIL_Membership_Test
7140 -- Sloc references the node of a membership test
7141 -- SCIL_Tag_Value (Node5-Sem)
7142 -- SCIL_Entity (Node4-Sem)
7143
7144 ---------------------
7145 -- Subprogram_Info --
7146 ---------------------
7147
7148 -- This node generates the appropriate Subprogram_Info value for a
7149 -- given procedure. See Ada.Exceptions for further details
7150
7151 -- Sprint syntax: subprog'subprogram_info
7152
7153 -- N_Subprogram_Info
7154 -- Sloc points to the entity for the procedure
7155 -- Identifier (Node1) identifier referencing the procedure
7156 -- Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
7157
7158 -- Note: in the case where a debug source file is generated, the Sloc
7159 -- for this node points to the quote in the Sprint file output.
7160
7161 --------------------------
7162 -- Unchecked Expression --
7163 --------------------------
7164
7165 -- An unchecked expression is one that must be analyzed and resolved
7166 -- with all checks off, regardless of the current setting of scope
7167 -- suppress flags.
7168
7169 -- Sprint syntax: `(expression)
7170
7171 -- Note: this node is always removed from the tree (and replaced by
7172 -- its constituent expression) on completion of analysis, so it only
7173 -- appears in intermediate trees, and will never be seen by Gigi.
7174
7175 -- N_Unchecked_Expression
7176 -- Sloc is a copy of the Sloc of the expression
7177 -- Expression (Node3)
7178 -- plus fields for expression
7179
7180 -- Note: in the case where a debug source file is generated, the Sloc
7181 -- for this node points to the back quote in the Sprint file output.
7182
7183 -------------------------------
7184 -- Unchecked Type Conversion --
7185 -------------------------------
7186
7187 -- An unchecked type conversion node represents the semantic action
7188 -- corresponding to a call to an instantiation of Unchecked_Conversion.
7189 -- It is generated as a result of actual use of Unchecked_Conversion
7190 -- and also the expander generates unchecked type conversion nodes
7191 -- directly for expansion of complex semantic actions.
7192
7193 -- Note: an unchecked type conversion is a variable as far as the
7194 -- semantics are concerned, which is convenient for the expander.
7195 -- This does not change what Ada source programs are legal, since
7196 -- clearly a function call to an instantiation of Unchecked_Conversion
7197 -- is not a variable in any case.
7198
7199 -- Sprint syntax: subtype-mark!(expression)
7200
7201 -- N_Unchecked_Type_Conversion
7202 -- Sloc points to related node in source
7203 -- Subtype_Mark (Node4)
7204 -- Expression (Node3)
7205 -- Kill_Range_Check (Flag11-Sem)
7206 -- No_Truncation (Flag17-Sem)
7207 -- plus fields for expression
7208
7209 -- Note: in the case where a debug source file is generated, the Sloc
7210 -- for this node points to the exclamation in the Sprint file output.
7211
7212 -----------------------------------
7213 -- Validate_Unchecked_Conversion --
7214 -----------------------------------
7215
7216 -- The front end does most of the validation of unchecked conversion,
7217 -- including checking sizes (this is done after the back end is called
7218 -- to take advantage of back-annotation of calculated sizes).
7219
7220 -- The front end also deals with specific cases that are not allowed
7221 -- e.g. involving unconstrained array types.
7222
7223 -- For the case of the standard gigi backend, this means that all
7224 -- checks are done in the front-end.
7225
7226 -- However, in the case of specialized back-ends, notably the JVM
7227 -- backend for JGNAT, additional requirements and restrictions apply
7228 -- to unchecked conversion, and these are most conveniently performed
7229 -- in the specialized back-end.
7230
7231 -- To accommodate this requirement, for such back ends, the following
7232 -- special node is generated recording an unchecked conversion that
7233 -- needs to be validated. The back end should post an appropriate
7234 -- error message if the unchecked conversion is invalid or warrants
7235 -- a special warning message.
7236
7237 -- Source_Type and Target_Type point to the entities for the two
7238 -- types involved in the unchecked conversion instantiation that
7239 -- is to be validated.
7240
7241 -- Sprint syntax: validate Unchecked_Conversion (source, target);
7242
7243 -- N_Validate_Unchecked_Conversion
7244 -- Sloc points to instantiation (location for warning message)
7245 -- Source_Type (Node1-Sem)
7246 -- Target_Type (Node2-Sem)
7247
7248 -- Note: in the case where a debug source file is generated, the Sloc
7249 -- for this node points to the VALIDATE keyword in the file output.
7250
7251 -----------
7252 -- Empty --
7253 -----------
7254
7255 -- Used as the contents of the Nkind field of the dummy Empty node
7256 -- and in some other situations to indicate an uninitialized value.
7257
7258 -- N_Empty
7259 -- Chars (Name1) is set to No_Name
7260
7261 -----------
7262 -- Error --
7263 -----------
7264
7265 -- Used as the contents of the Nkind field of the dummy Error node.
7266 -- Has an Etype field, which gets set to Any_Type later on, to help
7267 -- error recovery (Error_Posted is also set in the Error node).
7268
7269 -- N_Error
7270 -- Chars (Name1) is set to Error_Name
7271 -- Etype (Node5-Sem)
7272
7273 --------------------------
7274 -- Node Type Definition --
7275 --------------------------
7276
7277 -- The following is the definition of the Node_Kind type. As previously
7278 -- discussed, this is separated off to allow rearrangement of the order to
7279 -- facilitate definition of subtype ranges. The comments show the subtype
7280 -- classes which apply to each set of node kinds. The first entry in the
7281 -- comment characterizes the following list of nodes.
7282
7283 type Node_Kind is (
7284 N_Unused_At_Start,
7285
7286 -- N_Representation_Clause
7287
7288 N_At_Clause,
7289 N_Component_Clause,
7290 N_Enumeration_Representation_Clause,
7291 N_Mod_Clause,
7292 N_Record_Representation_Clause,
7293
7294 -- N_Representation_Clause, N_Has_Chars
7295
7296 N_Attribute_Definition_Clause,
7297
7298 -- N_Has_Chars
7299
7300 N_Empty,
7301 N_Pragma_Argument_Association,
7302
7303 -- N_Has_Etype
7304
7305 N_Error,
7306
7307 -- N_Entity, N_Has_Etype, N_Has_Chars
7308
7309 N_Defining_Character_Literal,
7310 N_Defining_Identifier,
7311 N_Defining_Operator_Symbol,
7312
7313 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
7314
7315 N_Expanded_Name,
7316
7317 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
7318 -- N_Has_Chars, N_Has_Entity
7319
7320 N_Identifier,
7321 N_Operator_Symbol,
7322
7323 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
7324 -- N_Has_Chars, N_Has_Entity
7325
7326 N_Character_Literal,
7327
7328 -- N_Binary_Op, N_Op, N_Subexpr,
7329 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
7330
7331 N_Op_Add,
7332 N_Op_Concat,
7333 N_Op_Expon,
7334 N_Op_Subtract,
7335
7336 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
7337 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
7338
7339 N_Op_Divide,
7340 N_Op_Mod,
7341 N_Op_Multiply,
7342 N_Op_Rem,
7343
7344 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7345 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
7346
7347 N_Op_And,
7348
7349 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7350 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
7351
7352 N_Op_Eq,
7353 N_Op_Ge,
7354 N_Op_Gt,
7355 N_Op_Le,
7356 N_Op_Lt,
7357 N_Op_Ne,
7358
7359 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7360 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
7361
7362 N_Op_Or,
7363 N_Op_Xor,
7364
7365 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
7366 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
7367
7368 N_Op_Rotate_Left,
7369 N_Op_Rotate_Right,
7370 N_Op_Shift_Left,
7371 N_Op_Shift_Right,
7372 N_Op_Shift_Right_Arithmetic,
7373
7374 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
7375 -- N_Has_Chars, N_Has_Entity
7376
7377 N_Op_Abs,
7378 N_Op_Minus,
7379 N_Op_Not,
7380 N_Op_Plus,
7381
7382 -- N_Subexpr, N_Has_Etype, N_Has_Entity
7383
7384 N_Attribute_Reference,
7385
7386 -- N_Subexpr, N_Has_Etype, N_Membership_Test
7387
7388 N_In,
7389 N_Not_In,
7390
7391 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
7392
7393 N_And_Then,
7394 N_Or_Else,
7395
7396 -- N_Subexpr, N_Has_Etype
7397
7398 N_Conditional_Expression,
7399 N_Explicit_Dereference,
7400 N_Expression_With_Actions,
7401 N_Function_Call,
7402 N_Indexed_Component,
7403 N_Integer_Literal,
7404 N_Null,
7405 N_Procedure_Call_Statement,
7406 N_Qualified_Expression,
7407
7408 -- N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
7409
7410 N_Raise_Constraint_Error,
7411 N_Raise_Program_Error,
7412 N_Raise_Storage_Error,
7413
7414 -- N_Subexpr, N_Has_Etype
7415
7416 N_Aggregate,
7417 N_Allocator,
7418 N_Case_Expression,
7419 N_Extension_Aggregate,
7420 N_Range,
7421 N_Real_Literal,
7422 N_Reference,
7423 N_Selected_Component,
7424 N_Slice,
7425 N_String_Literal,
7426 N_Subprogram_Info,
7427 N_Type_Conversion,
7428 N_Unchecked_Expression,
7429 N_Unchecked_Type_Conversion,
7430
7431 -- N_Has_Etype
7432
7433 N_Subtype_Indication,
7434
7435 -- N_Declaration
7436
7437 N_Component_Declaration,
7438 N_Entry_Declaration,
7439 N_Formal_Object_Declaration,
7440 N_Formal_Type_Declaration,
7441 N_Full_Type_Declaration,
7442 N_Incomplete_Type_Declaration,
7443 N_Loop_Parameter_Specification,
7444 N_Object_Declaration,
7445 N_Parameterized_Expression,
7446 N_Protected_Type_Declaration,
7447 N_Private_Extension_Declaration,
7448 N_Private_Type_Declaration,
7449 N_Subtype_Declaration,
7450
7451 -- N_Subprogram_Specification, N_Declaration
7452
7453 N_Function_Specification,
7454 N_Procedure_Specification,
7455
7456 -- N_Access_To_Subprogram_Definition
7457
7458 N_Access_Function_Definition,
7459 N_Access_Procedure_Definition,
7460
7461 -- N_Later_Decl_Item
7462
7463 N_Task_Type_Declaration,
7464
7465 -- N_Body_Stub, N_Later_Decl_Item
7466
7467 N_Package_Body_Stub,
7468 N_Protected_Body_Stub,
7469 N_Subprogram_Body_Stub,
7470 N_Task_Body_Stub,
7471
7472 -- N_Generic_Instantiation, N_Later_Decl_Item
7473 -- N_Subprogram_Instantiation
7474
7475 N_Function_Instantiation,
7476 N_Procedure_Instantiation,
7477
7478 -- N_Generic_Instantiation, N_Later_Decl_Item
7479
7480 N_Package_Instantiation,
7481
7482 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7483
7484 N_Package_Body,
7485 N_Subprogram_Body,
7486
7487 -- N_Later_Decl_Item, N_Proper_Body
7488
7489 N_Protected_Body,
7490 N_Task_Body,
7491
7492 -- N_Later_Decl_Item
7493
7494 N_Implicit_Label_Declaration,
7495 N_Package_Declaration,
7496 N_Single_Task_Declaration,
7497 N_Subprogram_Declaration,
7498 N_Use_Package_Clause,
7499
7500 -- N_Generic_Declaration, N_Later_Decl_Item
7501
7502 N_Generic_Package_Declaration,
7503 N_Generic_Subprogram_Declaration,
7504
7505 -- N_Array_Type_Definition
7506
7507 N_Constrained_Array_Definition,
7508 N_Unconstrained_Array_Definition,
7509
7510 -- N_Renaming_Declaration
7511
7512 N_Exception_Renaming_Declaration,
7513 N_Object_Renaming_Declaration,
7514 N_Package_Renaming_Declaration,
7515 N_Subprogram_Renaming_Declaration,
7516
7517 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
7518
7519 N_Generic_Function_Renaming_Declaration,
7520 N_Generic_Package_Renaming_Declaration,
7521 N_Generic_Procedure_Renaming_Declaration,
7522
7523 -- N_Statement_Other_Than_Procedure_Call
7524
7525 N_Abort_Statement,
7526 N_Accept_Statement,
7527 N_Assignment_Statement,
7528 N_Asynchronous_Select,
7529 N_Block_Statement,
7530 N_Case_Statement,
7531 N_Code_Statement,
7532 N_Conditional_Entry_Call,
7533
7534 -- N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
7535
7536 N_Delay_Relative_Statement,
7537 N_Delay_Until_Statement,
7538
7539 -- N_Statement_Other_Than_Procedure_Call
7540
7541 N_Entry_Call_Statement,
7542 N_Free_Statement,
7543 N_Goto_Statement,
7544 N_Loop_Statement,
7545 N_Null_Statement,
7546 N_Raise_Statement,
7547 N_Requeue_Statement,
7548 N_Return_Statement, -- renamed as N_Simple_Return_Statement below
7549 N_Extended_Return_Statement,
7550 N_Selective_Accept,
7551 N_Timed_Entry_Call,
7552
7553 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7554
7555 N_Exit_Statement,
7556 N_If_Statement,
7557
7558 -- N_Has_Condition
7559
7560 N_Accept_Alternative,
7561 N_Delay_Alternative,
7562 N_Elsif_Part,
7563 N_Entry_Body_Formal_Part,
7564 N_Iteration_Scheme,
7565 N_Terminate_Alternative,
7566
7567 -- N_Formal_Subprogram_Declaration
7568
7569 N_Formal_Abstract_Subprogram_Declaration,
7570 N_Formal_Concrete_Subprogram_Declaration,
7571
7572 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
7573
7574 N_Push_Constraint_Error_Label,
7575 N_Push_Program_Error_Label,
7576 N_Push_Storage_Error_Label,
7577
7578 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7579
7580 N_Pop_Constraint_Error_Label,
7581 N_Pop_Program_Error_Label,
7582 N_Pop_Storage_Error_Label,
7583
7584 -- SCIL nodes
7585
7586 N_SCIL_Dispatch_Table_Tag_Init,
7587 N_SCIL_Dispatching_Call,
7588 N_SCIL_Membership_Test,
7589
7590 -- Other nodes (not part of any subtype class)
7591
7592 N_Abortable_Part,
7593 N_Abstract_Subprogram_Declaration,
7594 N_Access_Definition,
7595 N_Access_To_Object_Definition,
7596 N_Aspect_Specification,
7597 N_Case_Expression_Alternative,
7598 N_Case_Statement_Alternative,
7599 N_Compilation_Unit,
7600 N_Compilation_Unit_Aux,
7601 N_Component_Association,
7602 N_Component_Definition,
7603 N_Component_List,
7604 N_Derived_Type_Definition,
7605 N_Decimal_Fixed_Point_Definition,
7606 N_Defining_Program_Unit_Name,
7607 N_Delta_Constraint,
7608 N_Designator,
7609 N_Digits_Constraint,
7610 N_Discriminant_Association,
7611 N_Discriminant_Specification,
7612 N_Enumeration_Type_Definition,
7613 N_Entry_Body,
7614 N_Entry_Call_Alternative,
7615 N_Entry_Index_Specification,
7616 N_Exception_Declaration,
7617 N_Exception_Handler,
7618 N_Floating_Point_Definition,
7619 N_Formal_Decimal_Fixed_Point_Definition,
7620 N_Formal_Derived_Type_Definition,
7621 N_Formal_Discrete_Type_Definition,
7622 N_Formal_Floating_Point_Definition,
7623 N_Formal_Modular_Type_Definition,
7624 N_Formal_Ordinary_Fixed_Point_Definition,
7625 N_Formal_Package_Declaration,
7626 N_Formal_Private_Type_Definition,
7627 N_Formal_Signed_Integer_Type_Definition,
7628 N_Freeze_Entity,
7629 N_Generic_Association,
7630 N_Handled_Sequence_Of_Statements,
7631 N_Index_Or_Discriminant_Constraint,
7632 N_Itype_Reference,
7633 N_Label,
7634 N_Modular_Type_Definition,
7635 N_Number_Declaration,
7636 N_Ordinary_Fixed_Point_Definition,
7637 N_Others_Choice,
7638 N_Package_Specification,
7639 N_Parameter_Association,
7640 N_Parameter_Specification,
7641 N_Pragma,
7642 N_Protected_Definition,
7643 N_Range_Constraint,
7644 N_Real_Range_Specification,
7645 N_Record_Definition,
7646 N_Signed_Integer_Type_Definition,
7647 N_Single_Protected_Declaration,
7648 N_Subunit,
7649 N_Task_Definition,
7650 N_Triggering_Alternative,
7651 N_Use_Type_Clause,
7652 N_Validate_Unchecked_Conversion,
7653 N_Variant,
7654 N_Variant_Part,
7655 N_With_Clause,
7656 N_Unused_At_End);
7657
7658 for Node_Kind'Size use 8;
7659 -- The data structures in Atree assume this!
7660
7661 ----------------------------
7662 -- Node Class Definitions --
7663 ----------------------------
7664
7665 subtype N_Access_To_Subprogram_Definition is Node_Kind range
7666 N_Access_Function_Definition ..
7667 N_Access_Procedure_Definition;
7668
7669 subtype N_Array_Type_Definition is Node_Kind range
7670 N_Constrained_Array_Definition ..
7671 N_Unconstrained_Array_Definition;
7672
7673 subtype N_Binary_Op is Node_Kind range
7674 N_Op_Add ..
7675 N_Op_Shift_Right_Arithmetic;
7676
7677 subtype N_Body_Stub is Node_Kind range
7678 N_Package_Body_Stub ..
7679 N_Task_Body_Stub;
7680
7681 subtype N_Declaration is Node_Kind range
7682 N_Component_Declaration ..
7683 N_Procedure_Specification;
7684 -- Note: this includes all constructs normally thought of as declarations
7685 -- except those which are separately grouped as later declarations.
7686
7687 subtype N_Delay_Statement is Node_Kind range
7688 N_Delay_Relative_Statement ..
7689 N_Delay_Until_Statement;
7690
7691 subtype N_Direct_Name is Node_Kind range
7692 N_Identifier ..
7693 N_Character_Literal;
7694
7695 subtype N_Entity is Node_Kind range
7696 N_Defining_Character_Literal ..
7697 N_Defining_Operator_Symbol;
7698
7699 subtype N_Formal_Subprogram_Declaration is Node_Kind range
7700 N_Formal_Abstract_Subprogram_Declaration ..
7701 N_Formal_Concrete_Subprogram_Declaration;
7702
7703 subtype N_Generic_Declaration is Node_Kind range
7704 N_Generic_Package_Declaration ..
7705 N_Generic_Subprogram_Declaration;
7706
7707 subtype N_Generic_Instantiation is Node_Kind range
7708 N_Function_Instantiation ..
7709 N_Package_Instantiation;
7710
7711 subtype N_Generic_Renaming_Declaration is Node_Kind range
7712 N_Generic_Function_Renaming_Declaration ..
7713 N_Generic_Procedure_Renaming_Declaration;
7714
7715 subtype N_Has_Chars is Node_Kind range
7716 N_Attribute_Definition_Clause ..
7717 N_Op_Plus;
7718
7719 subtype N_Has_Entity is Node_Kind range
7720 N_Expanded_Name ..
7721 N_Attribute_Reference;
7722 -- Nodes that have Entity fields
7723 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Aspect_Specification,
7724 -- or N_Attribute_Definition_Clause.
7725
7726 subtype N_Has_Etype is Node_Kind range
7727 N_Error ..
7728 N_Subtype_Indication;
7729
7730 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7731 N_Op_Divide ..
7732 N_Op_Rem;
7733
7734 subtype N_Multiplying_Operator is Node_Kind range
7735 N_Op_Divide ..
7736 N_Op_Rem;
7737
7738 subtype N_Later_Decl_Item is Node_Kind range
7739 N_Task_Type_Declaration ..
7740 N_Generic_Subprogram_Declaration;
7741 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
7742 -- only those items which can appear as later declarative items. This also
7743 -- includes N_Implicit_Label_Declaration which is not specifically in the
7744 -- grammar but may appear as a valid later declarative items. It does NOT
7745 -- include N_Pragma which can also appear among later declarative items.
7746 -- It does however include N_Protected_Body, which is a bit peculiar, but
7747 -- harmless since this cannot appear in Ada 83 mode anyway.
7748
7749 subtype N_Membership_Test is Node_Kind range
7750 N_In ..
7751 N_Not_In;
7752
7753 subtype N_Op is Node_Kind range
7754 N_Op_Add ..
7755 N_Op_Plus;
7756
7757 subtype N_Op_Boolean is Node_Kind range
7758 N_Op_And ..
7759 N_Op_Xor;
7760 -- Binary operators which take operands of a boolean type, and yield
7761 -- a result of a boolean type.
7762
7763 subtype N_Op_Compare is Node_Kind range
7764 N_Op_Eq ..
7765 N_Op_Ne;
7766
7767 subtype N_Op_Shift is Node_Kind range
7768 N_Op_Rotate_Left ..
7769 N_Op_Shift_Right_Arithmetic;
7770
7771 subtype N_Proper_Body is Node_Kind range
7772 N_Package_Body ..
7773 N_Task_Body;
7774
7775 subtype N_Push_xxx_Label is Node_Kind range
7776 N_Push_Constraint_Error_Label ..
7777 N_Push_Storage_Error_Label;
7778
7779 subtype N_Pop_xxx_Label is Node_Kind range
7780 N_Pop_Constraint_Error_Label ..
7781 N_Pop_Storage_Error_Label;
7782
7783 subtype N_Push_Pop_xxx_Label is Node_Kind range
7784 N_Push_Constraint_Error_Label ..
7785 N_Pop_Storage_Error_Label;
7786
7787 subtype N_Raise_xxx_Error is Node_Kind range
7788 N_Raise_Constraint_Error ..
7789 N_Raise_Storage_Error;
7790
7791 subtype N_Renaming_Declaration is Node_Kind range
7792 N_Exception_Renaming_Declaration ..
7793 N_Generic_Procedure_Renaming_Declaration;
7794
7795 subtype N_Representation_Clause is Node_Kind range
7796 N_At_Clause ..
7797 N_Attribute_Definition_Clause;
7798
7799 subtype N_Short_Circuit is Node_Kind range
7800 N_And_Then ..
7801 N_Or_Else;
7802
7803 subtype N_SCIL_Node is Node_Kind range
7804 N_SCIL_Dispatch_Table_Tag_Init ..
7805 N_SCIL_Membership_Test;
7806
7807 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7808 N_Abort_Statement ..
7809 N_If_Statement;
7810 -- Note that this includes all statement types except for the cases of the
7811 -- N_Procedure_Call_Statement which is considered to be a subexpression
7812 -- (since overloading is possible, so it needs to go through the normal
7813 -- overloading resolution for expressions).
7814
7815 subtype N_Subprogram_Instantiation is Node_Kind range
7816 N_Function_Instantiation ..
7817 N_Procedure_Instantiation;
7818
7819 subtype N_Has_Condition is Node_Kind range
7820 N_Exit_Statement ..
7821 N_Terminate_Alternative;
7822 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
7823
7824 subtype N_Subexpr is Node_Kind range
7825 N_Expanded_Name ..
7826 N_Unchecked_Type_Conversion;
7827 -- Nodes with expression fields
7828
7829 subtype N_Subprogram_Specification is Node_Kind range
7830 N_Function_Specification ..
7831 N_Procedure_Specification;
7832
7833 subtype N_Unary_Op is Node_Kind range
7834 N_Op_Abs ..
7835 N_Op_Plus;
7836
7837 subtype N_Unit_Body is Node_Kind range
7838 N_Package_Body ..
7839 N_Subprogram_Body;
7840
7841 ---------------------------
7842 -- Node Access Functions --
7843 ---------------------------
7844
7845 -- The following functions return the contents of the indicated field of
7846 -- the node referenced by the argument, which is a Node_Id. They provide
7847 -- logical access to fields in the node which could be accessed using the
7848 -- Atree.Unchecked_Access package, but the idea is always to use these
7849 -- higher level routines which preserve strong typing. In debug mode,
7850 -- these routines check that they are being applied to an appropriate
7851 -- node, as well as checking that the node is in range.
7852
7853 function ABE_Is_Certain
7854 (N : Node_Id) return Boolean; -- Flag18
7855
7856 function Abort_Present
7857 (N : Node_Id) return Boolean; -- Flag15
7858
7859 function Abortable_Part
7860 (N : Node_Id) return Node_Id; -- Node2
7861
7862 function Abstract_Present
7863 (N : Node_Id) return Boolean; -- Flag4
7864
7865 function Accept_Handler_Records
7866 (N : Node_Id) return List_Id; -- List5
7867
7868 function Accept_Statement
7869 (N : Node_Id) return Node_Id; -- Node2
7870
7871 function Access_Definition
7872 (N : Node_Id) return Node_Id; -- Node3
7873
7874 function Access_To_Subprogram_Definition
7875 (N : Node_Id) return Node_Id; -- Node3
7876
7877 function Access_Types_To_Process
7878 (N : Node_Id) return Elist_Id; -- Elist2
7879
7880 function Actions
7881 (N : Node_Id) return List_Id; -- List1
7882
7883 function Activation_Chain_Entity
7884 (N : Node_Id) return Node_Id; -- Node3
7885
7886 function Acts_As_Spec
7887 (N : Node_Id) return Boolean; -- Flag4
7888
7889 function Actual_Designated_Subtype
7890 (N : Node_Id) return Node_Id; -- Node4
7891
7892 function Address_Warning_Posted
7893 (N : Node_Id) return Boolean; -- Flag18
7894
7895 function Aggregate_Bounds
7896 (N : Node_Id) return Node_Id; -- Node3
7897
7898 function Aliased_Present
7899 (N : Node_Id) return Boolean; -- Flag4
7900
7901 function All_Others
7902 (N : Node_Id) return Boolean; -- Flag11
7903
7904 function All_Present
7905 (N : Node_Id) return Boolean; -- Flag15
7906
7907 function Alternatives
7908 (N : Node_Id) return List_Id; -- List4
7909
7910 function Ancestor_Part
7911 (N : Node_Id) return Node_Id; -- Node3
7912
7913 function Array_Aggregate
7914 (N : Node_Id) return Node_Id; -- Node3
7915
7916 function Aspect_Cancel
7917 (N : Node_Id) return Boolean; -- Flag11
7918
7919 function Aspect_Rep_Item
7920 (N : Node_Id) return Node_Id; -- Node2
7921
7922 function Assignment_OK
7923 (N : Node_Id) return Boolean; -- Flag15
7924
7925 function Associated_Node
7926 (N : Node_Id) return Node_Id; -- Node4
7927
7928 function At_End_Proc
7929 (N : Node_Id) return Node_Id; -- Node1
7930
7931 function Attribute_Name
7932 (N : Node_Id) return Name_Id; -- Name2
7933
7934 function Aux_Decls_Node
7935 (N : Node_Id) return Node_Id; -- Node5
7936
7937 function Backwards_OK
7938 (N : Node_Id) return Boolean; -- Flag6
7939
7940 function Bad_Is_Detected
7941 (N : Node_Id) return Boolean; -- Flag15
7942
7943 function By_Ref
7944 (N : Node_Id) return Boolean; -- Flag5
7945
7946 function Body_Required
7947 (N : Node_Id) return Boolean; -- Flag13
7948
7949 function Body_To_Inline
7950 (N : Node_Id) return Node_Id; -- Node3
7951
7952 function Box_Present
7953 (N : Node_Id) return Boolean; -- Flag15
7954
7955 function Char_Literal_Value
7956 (N : Node_Id) return Uint; -- Uint2
7957
7958 function Chars
7959 (N : Node_Id) return Name_Id; -- Name1
7960
7961 function Check_Address_Alignment
7962 (N : Node_Id) return Boolean; -- Flag11
7963
7964 function Choice_Parameter
7965 (N : Node_Id) return Node_Id; -- Node2
7966
7967 function Choices
7968 (N : Node_Id) return List_Id; -- List1
7969
7970 function Class_Present
7971 (N : Node_Id) return Boolean; -- Flag6
7972
7973 function Coextensions
7974 (N : Node_Id) return Elist_Id; -- Elist4
7975
7976 function Comes_From_Extended_Return_Statement
7977 (N : Node_Id) return Boolean; -- Flag18
7978
7979 function Compile_Time_Known_Aggregate
7980 (N : Node_Id) return Boolean; -- Flag18
7981
7982 function Component_Associations
7983 (N : Node_Id) return List_Id; -- List2
7984
7985 function Component_Clauses
7986 (N : Node_Id) return List_Id; -- List3
7987
7988 function Component_Definition
7989 (N : Node_Id) return Node_Id; -- Node4
7990
7991 function Component_Items
7992 (N : Node_Id) return List_Id; -- List3
7993
7994 function Component_List
7995 (N : Node_Id) return Node_Id; -- Node1
7996
7997 function Component_Name
7998 (N : Node_Id) return Node_Id; -- Node1
7999
8000 function Componentwise_Assignment
8001 (N : Node_Id) return Boolean; -- Flag14
8002
8003 function Condition
8004 (N : Node_Id) return Node_Id; -- Node1
8005
8006 function Condition_Actions
8007 (N : Node_Id) return List_Id; -- List3
8008
8009 function Config_Pragmas
8010 (N : Node_Id) return List_Id; -- List4
8011
8012 function Constant_Present
8013 (N : Node_Id) return Boolean; -- Flag17
8014
8015 function Constraint
8016 (N : Node_Id) return Node_Id; -- Node3
8017
8018 function Constraints
8019 (N : Node_Id) return List_Id; -- List1
8020
8021 function Context_Installed
8022 (N : Node_Id) return Boolean; -- Flag13
8023
8024 function Context_Pending
8025 (N : Node_Id) return Boolean; -- Flag16
8026
8027 function Context_Items
8028 (N : Node_Id) return List_Id; -- List1
8029
8030 function Controlling_Argument
8031 (N : Node_Id) return Node_Id; -- Node1
8032
8033 function Conversion_OK
8034 (N : Node_Id) return Boolean; -- Flag14
8035
8036 function Corresponding_Body
8037 (N : Node_Id) return Node_Id; -- Node5
8038
8039 function Corresponding_Formal_Spec
8040 (N : Node_Id) return Node_Id; -- Node3
8041
8042 function Corresponding_Generic_Association
8043 (N : Node_Id) return Node_Id; -- Node5
8044
8045 function Corresponding_Integer_Value
8046 (N : Node_Id) return Uint; -- Uint4
8047
8048 function Corresponding_Spec
8049 (N : Node_Id) return Node_Id; -- Node5
8050
8051 function Corresponding_Stub
8052 (N : Node_Id) return Node_Id; -- Node3
8053
8054 function Dcheck_Function
8055 (N : Node_Id) return Entity_Id; -- Node5
8056
8057 function Debug_Statement
8058 (N : Node_Id) return Node_Id; -- Node3
8059
8060 function Declarations
8061 (N : Node_Id) return List_Id; -- List2
8062
8063 function Default_Expression
8064 (N : Node_Id) return Node_Id; -- Node5
8065
8066 function Default_Name
8067 (N : Node_Id) return Node_Id; -- Node2
8068
8069 function Defining_Identifier
8070 (N : Node_Id) return Entity_Id; -- Node1
8071
8072 function Defining_Unit_Name
8073 (N : Node_Id) return Node_Id; -- Node1
8074
8075 function Delay_Alternative
8076 (N : Node_Id) return Node_Id; -- Node4
8077
8078 function Delay_Statement
8079 (N : Node_Id) return Node_Id; -- Node2
8080
8081 function Delta_Expression
8082 (N : Node_Id) return Node_Id; -- Node3
8083
8084 function Digits_Expression
8085 (N : Node_Id) return Node_Id; -- Node2
8086
8087 function Discr_Check_Funcs_Built
8088 (N : Node_Id) return Boolean; -- Flag11
8089
8090 function Discrete_Choices
8091 (N : Node_Id) return List_Id; -- List4
8092
8093 function Discrete_Range
8094 (N : Node_Id) return Node_Id; -- Node4
8095
8096 function Discrete_Subtype_Definition
8097 (N : Node_Id) return Node_Id; -- Node4
8098
8099 function Discrete_Subtype_Definitions
8100 (N : Node_Id) return List_Id; -- List2
8101
8102 function Discriminant_Specifications
8103 (N : Node_Id) return List_Id; -- List4
8104
8105 function Discriminant_Type
8106 (N : Node_Id) return Node_Id; -- Node5
8107
8108 function Do_Accessibility_Check
8109 (N : Node_Id) return Boolean; -- Flag13
8110
8111 function Do_Discriminant_Check
8112 (N : Node_Id) return Boolean; -- Flag13
8113
8114 function Do_Division_Check
8115 (N : Node_Id) return Boolean; -- Flag13
8116
8117 function Do_Length_Check
8118 (N : Node_Id) return Boolean; -- Flag4
8119
8120 function Do_Overflow_Check
8121 (N : Node_Id) return Boolean; -- Flag17
8122
8123 function Do_Range_Check
8124 (N : Node_Id) return Boolean; -- Flag9
8125
8126 function Do_Storage_Check
8127 (N : Node_Id) return Boolean; -- Flag17
8128
8129 function Do_Tag_Check
8130 (N : Node_Id) return Boolean; -- Flag13
8131
8132 function Elaborate_All_Desirable
8133 (N : Node_Id) return Boolean; -- Flag9
8134
8135 function Elaborate_All_Present
8136 (N : Node_Id) return Boolean; -- Flag14
8137
8138 function Elaborate_Desirable
8139 (N : Node_Id) return Boolean; -- Flag11
8140
8141 function Elaborate_Present
8142 (N : Node_Id) return Boolean; -- Flag4
8143
8144 function Elaboration_Boolean
8145 (N : Node_Id) return Node_Id; -- Node2
8146
8147 function Else_Actions
8148 (N : Node_Id) return List_Id; -- List3
8149
8150 function Else_Statements
8151 (N : Node_Id) return List_Id; -- List4
8152
8153 function Elsif_Parts
8154 (N : Node_Id) return List_Id; -- List3
8155
8156 function Enclosing_Variant
8157 (N : Node_Id) return Node_Id; -- Node2
8158
8159 function End_Label
8160 (N : Node_Id) return Node_Id; -- Node4
8161
8162 function End_Span
8163 (N : Node_Id) return Uint; -- Uint5
8164
8165 function Entity
8166 (N : Node_Id) return Node_Id; -- Node4
8167
8168 function Entity_Or_Associated_Node
8169 (N : Node_Id) return Node_Id; -- Node4
8170
8171 function Entry_Body_Formal_Part
8172 (N : Node_Id) return Node_Id; -- Node5
8173
8174 function Entry_Call_Alternative
8175 (N : Node_Id) return Node_Id; -- Node1
8176
8177 function Entry_Call_Statement
8178 (N : Node_Id) return Node_Id; -- Node1
8179
8180 function Entry_Direct_Name
8181 (N : Node_Id) return Node_Id; -- Node1
8182
8183 function Entry_Index
8184 (N : Node_Id) return Node_Id; -- Node5
8185
8186 function Entry_Index_Specification
8187 (N : Node_Id) return Node_Id; -- Node4
8188
8189 function Etype
8190 (N : Node_Id) return Node_Id; -- Node5
8191
8192 function Exception_Choices
8193 (N : Node_Id) return List_Id; -- List4
8194
8195 function Exception_Handlers
8196 (N : Node_Id) return List_Id; -- List5
8197
8198 function Exception_Junk
8199 (N : Node_Id) return Boolean; -- Flag8
8200
8201 function Exception_Label
8202 (N : Node_Id) return Node_Id; -- Node5
8203
8204 function Explicit_Actual_Parameter
8205 (N : Node_Id) return Node_Id; -- Node3
8206
8207 function Expansion_Delayed
8208 (N : Node_Id) return Boolean; -- Flag11
8209
8210 function Explicit_Generic_Actual_Parameter
8211 (N : Node_Id) return Node_Id; -- Node1
8212
8213 function Expression
8214 (N : Node_Id) return Node_Id; -- Node3
8215
8216 function Expressions
8217 (N : Node_Id) return List_Id; -- List1
8218
8219 function First_Bit
8220 (N : Node_Id) return Node_Id; -- Node3
8221
8222 function First_Inlined_Subprogram
8223 (N : Node_Id) return Entity_Id; -- Node3
8224
8225 function First_Name
8226 (N : Node_Id) return Boolean; -- Flag5
8227
8228 function First_Named_Actual
8229 (N : Node_Id) return Node_Id; -- Node4
8230
8231 function First_Real_Statement
8232 (N : Node_Id) return Node_Id; -- Node2
8233
8234 function First_Subtype_Link
8235 (N : Node_Id) return Entity_Id; -- Node5
8236
8237 function Float_Truncate
8238 (N : Node_Id) return Boolean; -- Flag11
8239
8240 function Formal_Type_Definition
8241 (N : Node_Id) return Node_Id; -- Node3
8242
8243 function Forwards_OK
8244 (N : Node_Id) return Boolean; -- Flag5
8245
8246 function From_Aspect_Specification
8247 (N : Node_Id) return Boolean; -- Flag13
8248
8249 function From_At_End
8250 (N : Node_Id) return Boolean; -- Flag4
8251
8252 function From_At_Mod
8253 (N : Node_Id) return Boolean; -- Flag4
8254
8255 function From_Default
8256 (N : Node_Id) return Boolean; -- Flag6
8257
8258 function Generic_Associations
8259 (N : Node_Id) return List_Id; -- List3
8260
8261 function Generic_Formal_Declarations
8262 (N : Node_Id) return List_Id; -- List2
8263
8264 function Generic_Parent
8265 (N : Node_Id) return Node_Id; -- Node5
8266
8267 function Generic_Parent_Type
8268 (N : Node_Id) return Node_Id; -- Node4
8269
8270 function Handled_Statement_Sequence
8271 (N : Node_Id) return Node_Id; -- Node4
8272
8273 function Handler_List_Entry
8274 (N : Node_Id) return Node_Id; -- Node2
8275
8276 function Has_Created_Identifier
8277 (N : Node_Id) return Boolean; -- Flag15
8278
8279 function Has_Dynamic_Length_Check
8280 (N : Node_Id) return Boolean; -- Flag10
8281
8282 function Has_Dynamic_Range_Check
8283 (N : Node_Id) return Boolean; -- Flag12
8284
8285 function Has_Init_Expression
8286 (N : Node_Id) return Boolean; -- Flag14
8287
8288 function Has_Local_Raise
8289 (N : Node_Id) return Boolean; -- Flag8
8290
8291 function Has_No_Elaboration_Code
8292 (N : Node_Id) return Boolean; -- Flag17
8293
8294 function Has_Priority_Pragma
8295 (N : Node_Id) return Boolean; -- Flag6
8296
8297 function Has_Private_View
8298 (N : Node_Id) return Boolean; -- Flag11
8299
8300 function Has_Relative_Deadline_Pragma
8301 (N : Node_Id) return Boolean; -- Flag9
8302
8303 function Has_Self_Reference
8304 (N : Node_Id) return Boolean; -- Flag13
8305
8306 function Has_Storage_Size_Pragma
8307 (N : Node_Id) return Boolean; -- Flag5
8308
8309 function Has_Task_Info_Pragma
8310 (N : Node_Id) return Boolean; -- Flag7
8311
8312 function Has_Task_Name_Pragma
8313 (N : Node_Id) return Boolean; -- Flag8
8314
8315 function Has_Wide_Character
8316 (N : Node_Id) return Boolean; -- Flag11
8317
8318 function Has_Wide_Wide_Character
8319 (N : Node_Id) return Boolean; -- Flag13
8320
8321 function Hidden_By_Use_Clause
8322 (N : Node_Id) return Elist_Id; -- Elist4
8323
8324 function High_Bound
8325 (N : Node_Id) return Node_Id; -- Node2
8326
8327 function Identifier
8328 (N : Node_Id) return Node_Id; -- Node1
8329
8330 function Interface_List
8331 (N : Node_Id) return List_Id; -- List2
8332
8333 function Interface_Present
8334 (N : Node_Id) return Boolean; -- Flag16
8335
8336 function Implicit_With
8337 (N : Node_Id) return Boolean; -- Flag16
8338
8339 function Import_Interface_Present
8340 (N : Node_Id) return Boolean; -- Flag16
8341
8342 function In_Present
8343 (N : Node_Id) return Boolean; -- Flag15
8344
8345 function Includes_Infinities
8346 (N : Node_Id) return Boolean; -- Flag11
8347
8348 function Inherited_Discriminant
8349 (N : Node_Id) return Boolean; -- Flag13
8350
8351 function Instance_Spec
8352 (N : Node_Id) return Node_Id; -- Node5
8353
8354 function Intval
8355 (N : Node_Id) return Uint; -- Uint3
8356
8357 function Is_Accessibility_Actual
8358 (N : Node_Id) return Boolean; -- Flag13
8359
8360 function Is_Asynchronous_Call_Block
8361 (N : Node_Id) return Boolean; -- Flag7
8362
8363 function Is_Component_Left_Opnd
8364 (N : Node_Id) return Boolean; -- Flag13
8365
8366 function Is_Component_Right_Opnd
8367 (N : Node_Id) return Boolean; -- Flag14
8368
8369 function Is_Controlling_Actual
8370 (N : Node_Id) return Boolean; -- Flag16
8371
8372 function Is_Delayed_Aspect
8373 (N : Node_Id) return Boolean; -- Flag14
8374
8375 function Is_Dynamic_Coextension
8376 (N : Node_Id) return Boolean; -- Flag18
8377
8378 function Is_Elsif
8379 (N : Node_Id) return Boolean; -- Flag13
8380
8381 function Is_Entry_Barrier_Function
8382 (N : Node_Id) return Boolean; -- Flag8
8383
8384 function Is_Expanded_Build_In_Place_Call
8385 (N : Node_Id) return Boolean; -- Flag11
8386
8387 function Is_Folded_In_Parser
8388 (N : Node_Id) return Boolean; -- Flag4
8389
8390 function Is_In_Discriminant_Check
8391 (N : Node_Id) return Boolean; -- Flag11
8392
8393 function Is_Machine_Number
8394 (N : Node_Id) return Boolean; -- Flag11
8395
8396 function Is_Null_Loop
8397 (N : Node_Id) return Boolean; -- Flag16
8398
8399 function Is_Overloaded
8400 (N : Node_Id) return Boolean; -- Flag5
8401
8402 function Is_Power_Of_2_For_Shift
8403 (N : Node_Id) return Boolean; -- Flag13
8404
8405 function Is_Protected_Subprogram_Body
8406 (N : Node_Id) return Boolean; -- Flag7
8407
8408 function Is_Static_Coextension
8409 (N : Node_Id) return Boolean; -- Flag14
8410
8411 function Is_Static_Expression
8412 (N : Node_Id) return Boolean; -- Flag6
8413
8414 function Is_Subprogram_Descriptor
8415 (N : Node_Id) return Boolean; -- Flag16
8416
8417 function Is_Task_Allocation_Block
8418 (N : Node_Id) return Boolean; -- Flag6
8419
8420 function Is_Task_Master
8421 (N : Node_Id) return Boolean; -- Flag5
8422
8423 function Iteration_Scheme
8424 (N : Node_Id) return Node_Id; -- Node2
8425
8426 function Itype
8427 (N : Node_Id) return Entity_Id; -- Node1
8428
8429 function Kill_Range_Check
8430 (N : Node_Id) return Boolean; -- Flag11
8431
8432 function Label_Construct
8433 (N : Node_Id) return Node_Id; -- Node2
8434
8435 function Left_Opnd
8436 (N : Node_Id) return Node_Id; -- Node2
8437
8438 function Last_Bit
8439 (N : Node_Id) return Node_Id; -- Node4
8440
8441 function Last_Name
8442 (N : Node_Id) return Boolean; -- Flag6
8443
8444 function Library_Unit
8445 (N : Node_Id) return Node_Id; -- Node4
8446
8447 function Limited_View_Installed
8448 (N : Node_Id) return Boolean; -- Flag18
8449
8450 function Limited_Present
8451 (N : Node_Id) return Boolean; -- Flag17
8452
8453 function Literals
8454 (N : Node_Id) return List_Id; -- List1
8455
8456 function Local_Raise_Not_OK
8457 (N : Node_Id) return Boolean; -- Flag7
8458
8459 function Local_Raise_Statements
8460 (N : Node_Id) return Elist_Id; -- Elist1
8461
8462 function Loop_Actions
8463 (N : Node_Id) return List_Id; -- List2
8464
8465 function Loop_Parameter_Specification
8466 (N : Node_Id) return Node_Id; -- Node4
8467
8468 function Low_Bound
8469 (N : Node_Id) return Node_Id; -- Node1
8470
8471 function Mod_Clause
8472 (N : Node_Id) return Node_Id; -- Node2
8473
8474 function More_Ids
8475 (N : Node_Id) return Boolean; -- Flag5
8476
8477 function Must_Be_Byte_Aligned
8478 (N : Node_Id) return Boolean; -- Flag14
8479
8480 function Must_Not_Freeze
8481 (N : Node_Id) return Boolean; -- Flag8
8482
8483 function Must_Not_Override
8484 (N : Node_Id) return Boolean; -- Flag15
8485
8486 function Must_Override
8487 (N : Node_Id) return Boolean; -- Flag14
8488
8489 function Name
8490 (N : Node_Id) return Node_Id; -- Node2
8491
8492 function Names
8493 (N : Node_Id) return List_Id; -- List2
8494
8495 function Next_Entity
8496 (N : Node_Id) return Node_Id; -- Node2
8497
8498 function Next_Exit_Statement
8499 (N : Node_Id) return Node_Id; -- Node3
8500
8501 function Next_Implicit_With
8502 (N : Node_Id) return Node_Id; -- Node3
8503
8504 function Next_Named_Actual
8505 (N : Node_Id) return Node_Id; -- Node4
8506
8507 function Next_Pragma
8508 (N : Node_Id) return Node_Id; -- Node1
8509
8510 function Next_Rep_Item
8511 (N : Node_Id) return Node_Id; -- Node5
8512
8513 function Next_Use_Clause
8514 (N : Node_Id) return Node_Id; -- Node3
8515
8516 function No_Ctrl_Actions
8517 (N : Node_Id) return Boolean; -- Flag7
8518
8519 function No_Elaboration_Check
8520 (N : Node_Id) return Boolean; -- Flag14
8521
8522 function No_Entities_Ref_In_Spec
8523 (N : Node_Id) return Boolean; -- Flag8
8524
8525 function No_Initialization
8526 (N : Node_Id) return Boolean; -- Flag13
8527
8528 function No_Truncation
8529 (N : Node_Id) return Boolean; -- Flag17
8530
8531 function Null_Present
8532 (N : Node_Id) return Boolean; -- Flag13
8533
8534 function Null_Exclusion_Present
8535 (N : Node_Id) return Boolean; -- Flag11
8536
8537 function Null_Exclusion_In_Return_Present
8538 (N : Node_Id) return Boolean; -- Flag14
8539
8540 function Null_Record_Present
8541 (N : Node_Id) return Boolean; -- Flag17
8542
8543 function Object_Definition
8544 (N : Node_Id) return Node_Id; -- Node4
8545
8546 function Original_Discriminant
8547 (N : Node_Id) return Node_Id; -- Node2
8548
8549 function Original_Entity
8550 (N : Node_Id) return Entity_Id; -- Node2
8551
8552 function Others_Discrete_Choices
8553 (N : Node_Id) return List_Id; -- List1
8554
8555 function Out_Present
8556 (N : Node_Id) return Boolean; -- Flag17
8557
8558 function Parameter_Associations
8559 (N : Node_Id) return List_Id; -- List3
8560
8561 function Parameter_List_Truncated
8562 (N : Node_Id) return Boolean; -- Flag17
8563
8564 function Parameter_Specifications
8565 (N : Node_Id) return List_Id; -- List3
8566
8567 function Parameter_Type
8568 (N : Node_Id) return Node_Id; -- Node2
8569
8570 function Parent_Spec
8571 (N : Node_Id) return Node_Id; -- Node4
8572
8573 function Position
8574 (N : Node_Id) return Node_Id; -- Node2
8575
8576 function Pragma_Argument_Associations
8577 (N : Node_Id) return List_Id; -- List2
8578
8579 function Pragma_Enabled
8580 (N : Node_Id) return Boolean; -- Flag5
8581
8582 function Pragma_Identifier
8583 (N : Node_Id) return Node_Id; -- Node4
8584
8585 function Pragmas_After
8586 (N : Node_Id) return List_Id; -- List5
8587
8588 function Pragmas_Before
8589 (N : Node_Id) return List_Id; -- List4
8590
8591 function Prefix
8592 (N : Node_Id) return Node_Id; -- Node3
8593
8594 function Present_Expr
8595 (N : Node_Id) return Uint; -- Uint3
8596
8597 function Prev_Ids
8598 (N : Node_Id) return Boolean; -- Flag6
8599
8600 function Print_In_Hex
8601 (N : Node_Id) return Boolean; -- Flag13
8602
8603 function Private_Declarations
8604 (N : Node_Id) return List_Id; -- List3
8605
8606 function Private_Present
8607 (N : Node_Id) return Boolean; -- Flag15
8608
8609 function Procedure_To_Call
8610 (N : Node_Id) return Node_Id; -- Node2
8611
8612 function Proper_Body
8613 (N : Node_Id) return Node_Id; -- Node1
8614
8615 function Protected_Definition
8616 (N : Node_Id) return Node_Id; -- Node3
8617
8618 function Protected_Present
8619 (N : Node_Id) return Boolean; -- Flag6
8620
8621 function Raises_Constraint_Error
8622 (N : Node_Id) return Boolean; -- Flag7
8623
8624 function Range_Constraint
8625 (N : Node_Id) return Node_Id; -- Node4
8626
8627 function Range_Expression
8628 (N : Node_Id) return Node_Id; -- Node4
8629
8630 function Real_Range_Specification
8631 (N : Node_Id) return Node_Id; -- Node4
8632
8633 function Realval
8634 (N : Node_Id) return Ureal; -- Ureal3
8635
8636 function Reason
8637 (N : Node_Id) return Uint; -- Uint3
8638
8639 function Record_Extension_Part
8640 (N : Node_Id) return Node_Id; -- Node3
8641
8642 function Redundant_Use
8643 (N : Node_Id) return Boolean; -- Flag13
8644
8645 function Renaming_Exception
8646 (N : Node_Id) return Node_Id; -- Node2
8647
8648 function Result_Definition
8649 (N : Node_Id) return Node_Id; -- Node4
8650
8651 function Return_Object_Declarations
8652 (N : Node_Id) return List_Id; -- List3
8653
8654 function Return_Statement_Entity
8655 (N : Node_Id) return Node_Id; -- Node5
8656
8657 function Reverse_Present
8658 (N : Node_Id) return Boolean; -- Flag15
8659
8660 function Right_Opnd
8661 (N : Node_Id) return Node_Id; -- Node3
8662
8663 function Rounded_Result
8664 (N : Node_Id) return Boolean; -- Flag18
8665
8666 function SCIL_Controlling_Tag
8667 (N : Node_Id) return Node_Id; -- Node5
8668
8669 function SCIL_Entity
8670 (N : Node_Id) return Node_Id; -- Node4
8671
8672 function SCIL_Tag_Value
8673 (N : Node_Id) return Node_Id; -- Node5
8674
8675 function SCIL_Target_Prim
8676 (N : Node_Id) return Node_Id; -- Node2
8677
8678 function Scope
8679 (N : Node_Id) return Node_Id; -- Node3
8680
8681 function Select_Alternatives
8682 (N : Node_Id) return List_Id; -- List1
8683
8684 function Selector_Name
8685 (N : Node_Id) return Node_Id; -- Node2
8686
8687 function Selector_Names
8688 (N : Node_Id) return List_Id; -- List1
8689
8690 function Shift_Count_OK
8691 (N : Node_Id) return Boolean; -- Flag4
8692
8693 function Source_Type
8694 (N : Node_Id) return Entity_Id; -- Node1
8695
8696 function Specification
8697 (N : Node_Id) return Node_Id; -- Node1
8698
8699 function Statements
8700 (N : Node_Id) return List_Id; -- List3
8701
8702 function Static_Processing_OK
8703 (N : Node_Id) return Boolean; -- Flag4
8704
8705 function Storage_Pool
8706 (N : Node_Id) return Node_Id; -- Node1
8707
8708 function Strval
8709 (N : Node_Id) return String_Id; -- Str3
8710
8711 function Subtype_Indication
8712 (N : Node_Id) return Node_Id; -- Node5
8713
8714 function Subtype_Mark
8715 (N : Node_Id) return Node_Id; -- Node4
8716
8717 function Subtype_Marks
8718 (N : Node_Id) return List_Id; -- List2
8719
8720 function Suppress_Loop_Warnings
8721 (N : Node_Id) return Boolean; -- Flag17
8722
8723 function Synchronized_Present
8724 (N : Node_Id) return Boolean; -- Flag7
8725
8726 function Tagged_Present
8727 (N : Node_Id) return Boolean; -- Flag15
8728
8729 function Target_Type
8730 (N : Node_Id) return Entity_Id; -- Node2
8731
8732 function Task_Definition
8733 (N : Node_Id) return Node_Id; -- Node3
8734
8735 function Task_Present
8736 (N : Node_Id) return Boolean; -- Flag5
8737
8738 function Then_Actions
8739 (N : Node_Id) return List_Id; -- List2
8740
8741 function Then_Statements
8742 (N : Node_Id) return List_Id; -- List2
8743
8744 function Treat_Fixed_As_Integer
8745 (N : Node_Id) return Boolean; -- Flag14
8746
8747 function Triggering_Alternative
8748 (N : Node_Id) return Node_Id; -- Node1
8749
8750 function Triggering_Statement
8751 (N : Node_Id) return Node_Id; -- Node1
8752
8753 function TSS_Elist
8754 (N : Node_Id) return Elist_Id; -- Elist3
8755
8756 function Type_Definition
8757 (N : Node_Id) return Node_Id; -- Node3
8758
8759 function Unit
8760 (N : Node_Id) return Node_Id; -- Node2
8761
8762 function Unknown_Discriminants_Present
8763 (N : Node_Id) return Boolean; -- Flag13
8764
8765 function Unreferenced_In_Spec
8766 (N : Node_Id) return Boolean; -- Flag7
8767
8768 function Variant_Part
8769 (N : Node_Id) return Node_Id; -- Node4
8770
8771 function Variants
8772 (N : Node_Id) return List_Id; -- List1
8773
8774 function Visible_Declarations
8775 (N : Node_Id) return List_Id; -- List2
8776
8777 function Was_Originally_Stub
8778 (N : Node_Id) return Boolean; -- Flag13
8779
8780 function Withed_Body
8781 (N : Node_Id) return Node_Id; -- Node1
8782
8783 function Zero_Cost_Handling
8784 (N : Node_Id) return Boolean; -- Flag5
8785
8786 -- End functions (note used by xsinfo utility program to end processing)
8787
8788 ----------------------------
8789 -- Node Update Procedures --
8790 ----------------------------
8791
8792 -- These are the corresponding node update routines, which again provide
8793 -- a high level logical access with type checking. In addition to setting
8794 -- the indicated field of the node N to the given Val, in the case of
8795 -- tree pointers (List1-4), the parent pointer of the Val node is set to
8796 -- point back to node N. This automates the setting of the parent pointer.
8797
8798 procedure Set_ABE_Is_Certain
8799 (N : Node_Id; Val : Boolean := True); -- Flag18
8800
8801 procedure Set_Abort_Present
8802 (N : Node_Id; Val : Boolean := True); -- Flag15
8803
8804 procedure Set_Abortable_Part
8805 (N : Node_Id; Val : Node_Id); -- Node2
8806
8807 procedure Set_Abstract_Present
8808 (N : Node_Id; Val : Boolean := True); -- Flag4
8809
8810 procedure Set_Accept_Handler_Records
8811 (N : Node_Id; Val : List_Id); -- List5
8812
8813 procedure Set_Accept_Statement
8814 (N : Node_Id; Val : Node_Id); -- Node2
8815
8816 procedure Set_Access_Definition
8817 (N : Node_Id; Val : Node_Id); -- Node3
8818
8819 procedure Set_Access_To_Subprogram_Definition
8820 (N : Node_Id; Val : Node_Id); -- Node3
8821
8822 procedure Set_Access_Types_To_Process
8823 (N : Node_Id; Val : Elist_Id); -- Elist2
8824
8825 procedure Set_Actions
8826 (N : Node_Id; Val : List_Id); -- List1
8827
8828 procedure Set_Activation_Chain_Entity
8829 (N : Node_Id; Val : Node_Id); -- Node3
8830
8831 procedure Set_Acts_As_Spec
8832 (N : Node_Id; Val : Boolean := True); -- Flag4
8833
8834 procedure Set_Actual_Designated_Subtype
8835 (N : Node_Id; Val : Node_Id); -- Node4
8836
8837 procedure Set_Address_Warning_Posted
8838 (N : Node_Id; Val : Boolean := True); -- Flag18
8839
8840 procedure Set_Aggregate_Bounds
8841 (N : Node_Id; Val : Node_Id); -- Node3
8842
8843 procedure Set_Aliased_Present
8844 (N : Node_Id; Val : Boolean := True); -- Flag4
8845
8846 procedure Set_All_Others
8847 (N : Node_Id; Val : Boolean := True); -- Flag11
8848
8849 procedure Set_All_Present
8850 (N : Node_Id; Val : Boolean := True); -- Flag15
8851
8852 procedure Set_Alternatives
8853 (N : Node_Id; Val : List_Id); -- List4
8854
8855 procedure Set_Ancestor_Part
8856 (N : Node_Id; Val : Node_Id); -- Node3
8857
8858 procedure Set_Array_Aggregate
8859 (N : Node_Id; Val : Node_Id); -- Node3
8860
8861 procedure Set_Aspect_Cancel
8862 (N : Node_Id; Val : Boolean := True); -- Flag11
8863
8864 procedure Set_Aspect_Rep_Item
8865 (N : Node_Id; Val : Node_Id); -- Node2
8866
8867 procedure Set_Assignment_OK
8868 (N : Node_Id; Val : Boolean := True); -- Flag15
8869
8870 procedure Set_Associated_Node
8871 (N : Node_Id; Val : Node_Id); -- Node4
8872
8873 procedure Set_Attribute_Name
8874 (N : Node_Id; Val : Name_Id); -- Name2
8875
8876 procedure Set_At_End_Proc
8877 (N : Node_Id; Val : Node_Id); -- Node1
8878
8879 procedure Set_Aux_Decls_Node
8880 (N : Node_Id; Val : Node_Id); -- Node5
8881
8882 procedure Set_Backwards_OK
8883 (N : Node_Id; Val : Boolean := True); -- Flag6
8884
8885 procedure Set_Bad_Is_Detected
8886 (N : Node_Id; Val : Boolean := True); -- Flag15
8887
8888 procedure Set_Body_Required
8889 (N : Node_Id; Val : Boolean := True); -- Flag13
8890
8891 procedure Set_Body_To_Inline
8892 (N : Node_Id; Val : Node_Id); -- Node3
8893
8894 procedure Set_Box_Present
8895 (N : Node_Id; Val : Boolean := True); -- Flag15
8896
8897 procedure Set_By_Ref
8898 (N : Node_Id; Val : Boolean := True); -- Flag5
8899
8900 procedure Set_Char_Literal_Value
8901 (N : Node_Id; Val : Uint); -- Uint2
8902
8903 procedure Set_Chars
8904 (N : Node_Id; Val : Name_Id); -- Name1
8905
8906 procedure Set_Check_Address_Alignment
8907 (N : Node_Id; Val : Boolean := True); -- Flag11
8908
8909 procedure Set_Choice_Parameter
8910 (N : Node_Id; Val : Node_Id); -- Node2
8911
8912 procedure Set_Choices
8913 (N : Node_Id; Val : List_Id); -- List1
8914
8915 procedure Set_Class_Present
8916 (N : Node_Id; Val : Boolean := True); -- Flag6
8917
8918 procedure Set_Coextensions
8919 (N : Node_Id; Val : Elist_Id); -- Elist4
8920
8921 procedure Set_Comes_From_Extended_Return_Statement
8922 (N : Node_Id; Val : Boolean := True); -- Flag18
8923
8924 procedure Set_Compile_Time_Known_Aggregate
8925 (N : Node_Id; Val : Boolean := True); -- Flag18
8926
8927 procedure Set_Component_Associations
8928 (N : Node_Id; Val : List_Id); -- List2
8929
8930 procedure Set_Component_Clauses
8931 (N : Node_Id; Val : List_Id); -- List3
8932
8933 procedure Set_Component_Definition
8934 (N : Node_Id; Val : Node_Id); -- Node4
8935
8936 procedure Set_Component_Items
8937 (N : Node_Id; Val : List_Id); -- List3
8938
8939 procedure Set_Component_List
8940 (N : Node_Id; Val : Node_Id); -- Node1
8941
8942 procedure Set_Component_Name
8943 (N : Node_Id; Val : Node_Id); -- Node1
8944
8945 procedure Set_Componentwise_Assignment
8946 (N : Node_Id; Val : Boolean := True); -- Flag14
8947
8948 procedure Set_Condition
8949 (N : Node_Id; Val : Node_Id); -- Node1
8950
8951 procedure Set_Condition_Actions
8952 (N : Node_Id; Val : List_Id); -- List3
8953
8954 procedure Set_Config_Pragmas
8955 (N : Node_Id; Val : List_Id); -- List4
8956
8957 procedure Set_Constant_Present
8958 (N : Node_Id; Val : Boolean := True); -- Flag17
8959
8960 procedure Set_Constraint
8961 (N : Node_Id; Val : Node_Id); -- Node3
8962
8963 procedure Set_Constraints
8964 (N : Node_Id; Val : List_Id); -- List1
8965
8966 procedure Set_Context_Installed
8967 (N : Node_Id; Val : Boolean := True); -- Flag13
8968
8969 procedure Set_Context_Items
8970 (N : Node_Id; Val : List_Id); -- List1
8971
8972 procedure Set_Context_Pending
8973 (N : Node_Id; Val : Boolean := True); -- Flag16
8974
8975 procedure Set_Controlling_Argument
8976 (N : Node_Id; Val : Node_Id); -- Node1
8977
8978 procedure Set_Conversion_OK
8979 (N : Node_Id; Val : Boolean := True); -- Flag14
8980
8981 procedure Set_Corresponding_Body
8982 (N : Node_Id; Val : Node_Id); -- Node5
8983
8984 procedure Set_Corresponding_Formal_Spec
8985 (N : Node_Id; Val : Node_Id); -- Node3
8986
8987 procedure Set_Corresponding_Generic_Association
8988 (N : Node_Id; Val : Node_Id); -- Node5
8989
8990 procedure Set_Corresponding_Integer_Value
8991 (N : Node_Id; Val : Uint); -- Uint4
8992
8993 procedure Set_Corresponding_Spec
8994 (N : Node_Id; Val : Node_Id); -- Node5
8995
8996 procedure Set_Corresponding_Stub
8997 (N : Node_Id; Val : Node_Id); -- Node3
8998
8999 procedure Set_Dcheck_Function
9000 (N : Node_Id; Val : Entity_Id); -- Node5
9001
9002 procedure Set_Debug_Statement
9003 (N : Node_Id; Val : Node_Id); -- Node3
9004
9005 procedure Set_Declarations
9006 (N : Node_Id; Val : List_Id); -- List2
9007
9008 procedure Set_Default_Expression
9009 (N : Node_Id; Val : Node_Id); -- Node5
9010
9011 procedure Set_Default_Name
9012 (N : Node_Id; Val : Node_Id); -- Node2
9013
9014 procedure Set_Defining_Identifier
9015 (N : Node_Id; Val : Entity_Id); -- Node1
9016
9017 procedure Set_Defining_Unit_Name
9018 (N : Node_Id; Val : Node_Id); -- Node1
9019
9020 procedure Set_Delay_Alternative
9021 (N : Node_Id; Val : Node_Id); -- Node4
9022
9023 procedure Set_Delay_Statement
9024 (N : Node_Id; Val : Node_Id); -- Node2
9025
9026 procedure Set_Delta_Expression
9027 (N : Node_Id; Val : Node_Id); -- Node3
9028
9029 procedure Set_Digits_Expression
9030 (N : Node_Id; Val : Node_Id); -- Node2
9031
9032 procedure Set_Discr_Check_Funcs_Built
9033 (N : Node_Id; Val : Boolean := True); -- Flag11
9034
9035 procedure Set_Discrete_Choices
9036 (N : Node_Id; Val : List_Id); -- List4
9037
9038 procedure Set_Discrete_Range
9039 (N : Node_Id; Val : Node_Id); -- Node4
9040
9041 procedure Set_Discrete_Subtype_Definition
9042 (N : Node_Id; Val : Node_Id); -- Node4
9043
9044 procedure Set_Discrete_Subtype_Definitions
9045 (N : Node_Id; Val : List_Id); -- List2
9046
9047 procedure Set_Discriminant_Specifications
9048 (N : Node_Id; Val : List_Id); -- List4
9049
9050 procedure Set_Discriminant_Type
9051 (N : Node_Id; Val : Node_Id); -- Node5
9052
9053 procedure Set_Do_Accessibility_Check
9054 (N : Node_Id; Val : Boolean := True); -- Flag13
9055
9056 procedure Set_Do_Discriminant_Check
9057 (N : Node_Id; Val : Boolean := True); -- Flag13
9058
9059 procedure Set_Do_Division_Check
9060 (N : Node_Id; Val : Boolean := True); -- Flag13
9061
9062 procedure Set_Do_Length_Check
9063 (N : Node_Id; Val : Boolean := True); -- Flag4
9064
9065 procedure Set_Do_Overflow_Check
9066 (N : Node_Id; Val : Boolean := True); -- Flag17
9067
9068 procedure Set_Do_Range_Check
9069 (N : Node_Id; Val : Boolean := True); -- Flag9
9070
9071 procedure Set_Do_Storage_Check
9072 (N : Node_Id; Val : Boolean := True); -- Flag17
9073
9074 procedure Set_Do_Tag_Check
9075 (N : Node_Id; Val : Boolean := True); -- Flag13
9076
9077 procedure Set_Elaborate_All_Desirable
9078 (N : Node_Id; Val : Boolean := True); -- Flag9
9079
9080 procedure Set_Elaborate_All_Present
9081 (N : Node_Id; Val : Boolean := True); -- Flag14
9082
9083 procedure Set_Elaborate_Desirable
9084 (N : Node_Id; Val : Boolean := True); -- Flag11
9085
9086 procedure Set_Elaborate_Present
9087 (N : Node_Id; Val : Boolean := True); -- Flag4
9088
9089 procedure Set_Elaboration_Boolean
9090 (N : Node_Id; Val : Node_Id); -- Node2
9091
9092 procedure Set_Else_Actions
9093 (N : Node_Id; Val : List_Id); -- List3
9094
9095 procedure Set_Else_Statements
9096 (N : Node_Id; Val : List_Id); -- List4
9097
9098 procedure Set_Elsif_Parts
9099 (N : Node_Id; Val : List_Id); -- List3
9100
9101 procedure Set_Enclosing_Variant
9102 (N : Node_Id; Val : Node_Id); -- Node2
9103
9104 procedure Set_End_Label
9105 (N : Node_Id; Val : Node_Id); -- Node4
9106
9107 procedure Set_End_Span
9108 (N : Node_Id; Val : Uint); -- Uint5
9109
9110 procedure Set_Entity
9111 (N : Node_Id; Val : Node_Id); -- Node4
9112
9113 procedure Set_Entry_Body_Formal_Part
9114 (N : Node_Id; Val : Node_Id); -- Node5
9115
9116 procedure Set_Entry_Call_Alternative
9117 (N : Node_Id; Val : Node_Id); -- Node1
9118
9119 procedure Set_Entry_Call_Statement
9120 (N : Node_Id; Val : Node_Id); -- Node1
9121
9122 procedure Set_Entry_Direct_Name
9123 (N : Node_Id; Val : Node_Id); -- Node1
9124
9125 procedure Set_Entry_Index
9126 (N : Node_Id; Val : Node_Id); -- Node5
9127
9128 procedure Set_Entry_Index_Specification
9129 (N : Node_Id; Val : Node_Id); -- Node4
9130
9131 procedure Set_Etype
9132 (N : Node_Id; Val : Node_Id); -- Node5
9133
9134 procedure Set_Exception_Choices
9135 (N : Node_Id; Val : List_Id); -- List4
9136
9137 procedure Set_Exception_Handlers
9138 (N : Node_Id; Val : List_Id); -- List5
9139
9140 procedure Set_Exception_Junk
9141 (N : Node_Id; Val : Boolean := True); -- Flag8
9142
9143 procedure Set_Exception_Label
9144 (N : Node_Id; Val : Node_Id); -- Node5
9145
9146 procedure Set_Expansion_Delayed
9147 (N : Node_Id; Val : Boolean := True); -- Flag11
9148
9149 procedure Set_Explicit_Actual_Parameter
9150 (N : Node_Id; Val : Node_Id); -- Node3
9151
9152 procedure Set_Explicit_Generic_Actual_Parameter
9153 (N : Node_Id; Val : Node_Id); -- Node1
9154
9155 procedure Set_Expression
9156 (N : Node_Id; Val : Node_Id); -- Node3
9157
9158 procedure Set_Expressions
9159 (N : Node_Id; Val : List_Id); -- List1
9160
9161 procedure Set_First_Bit
9162 (N : Node_Id; Val : Node_Id); -- Node3
9163
9164 procedure Set_First_Inlined_Subprogram
9165 (N : Node_Id; Val : Entity_Id); -- Node3
9166
9167 procedure Set_First_Name
9168 (N : Node_Id; Val : Boolean := True); -- Flag5
9169
9170 procedure Set_First_Named_Actual
9171 (N : Node_Id; Val : Node_Id); -- Node4
9172
9173 procedure Set_First_Real_Statement
9174 (N : Node_Id; Val : Node_Id); -- Node2
9175
9176 procedure Set_First_Subtype_Link
9177 (N : Node_Id; Val : Entity_Id); -- Node5
9178
9179 procedure Set_Float_Truncate
9180 (N : Node_Id; Val : Boolean := True); -- Flag11
9181
9182 procedure Set_Formal_Type_Definition
9183 (N : Node_Id; Val : Node_Id); -- Node3
9184
9185 procedure Set_Forwards_OK
9186 (N : Node_Id; Val : Boolean := True); -- Flag5
9187
9188 procedure Set_From_At_Mod
9189 (N : Node_Id; Val : Boolean := True); -- Flag4
9190
9191 procedure Set_From_Aspect_Specification
9192 (N : Node_Id; Val : Boolean := True); -- Flag13
9193
9194 procedure Set_From_At_End
9195 (N : Node_Id; Val : Boolean := True); -- Flag4
9196
9197 procedure Set_From_Default
9198 (N : Node_Id; Val : Boolean := True); -- Flag6
9199
9200 procedure Set_Generic_Associations
9201 (N : Node_Id; Val : List_Id); -- List3
9202
9203 procedure Set_Generic_Formal_Declarations
9204 (N : Node_Id; Val : List_Id); -- List2
9205
9206 procedure Set_Generic_Parent
9207 (N : Node_Id; Val : Node_Id); -- Node5
9208
9209 procedure Set_Generic_Parent_Type
9210 (N : Node_Id; Val : Node_Id); -- Node4
9211
9212 procedure Set_Handled_Statement_Sequence
9213 (N : Node_Id; Val : Node_Id); -- Node4
9214
9215 procedure Set_Handler_List_Entry
9216 (N : Node_Id; Val : Node_Id); -- Node2
9217
9218 procedure Set_Has_Created_Identifier
9219 (N : Node_Id; Val : Boolean := True); -- Flag15
9220
9221 procedure Set_Has_Dynamic_Length_Check
9222 (N : Node_Id; Val : Boolean := True); -- Flag10
9223
9224 procedure Set_Has_Dynamic_Range_Check
9225 (N : Node_Id; Val : Boolean := True); -- Flag12
9226
9227 procedure Set_Has_Init_Expression
9228 (N : Node_Id; Val : Boolean := True); -- Flag14
9229
9230 procedure Set_Has_Local_Raise
9231 (N : Node_Id; Val : Boolean := True); -- Flag8
9232
9233 procedure Set_Has_No_Elaboration_Code
9234 (N : Node_Id; Val : Boolean := True); -- Flag17
9235
9236 procedure Set_Has_Priority_Pragma
9237 (N : Node_Id; Val : Boolean := True); -- Flag6
9238
9239 procedure Set_Has_Private_View
9240 (N : Node_Id; Val : Boolean := True); -- Flag11
9241
9242 procedure Set_Has_Relative_Deadline_Pragma
9243 (N : Node_Id; Val : Boolean := True); -- Flag9
9244
9245 procedure Set_Has_Self_Reference
9246 (N : Node_Id; Val : Boolean := True); -- Flag13
9247
9248 procedure Set_Has_Storage_Size_Pragma
9249 (N : Node_Id; Val : Boolean := True); -- Flag5
9250
9251 procedure Set_Has_Task_Info_Pragma
9252 (N : Node_Id; Val : Boolean := True); -- Flag7
9253
9254 procedure Set_Has_Task_Name_Pragma
9255 (N : Node_Id; Val : Boolean := True); -- Flag8
9256
9257 procedure Set_Has_Wide_Character
9258 (N : Node_Id; Val : Boolean := True); -- Flag11
9259
9260 procedure Set_Has_Wide_Wide_Character
9261 (N : Node_Id; Val : Boolean := True); -- Flag13
9262
9263 procedure Set_Hidden_By_Use_Clause
9264 (N : Node_Id; Val : Elist_Id); -- Elist4
9265
9266 procedure Set_High_Bound
9267 (N : Node_Id; Val : Node_Id); -- Node2
9268
9269 procedure Set_Identifier
9270 (N : Node_Id; Val : Node_Id); -- Node1
9271
9272 procedure Set_Interface_List
9273 (N : Node_Id; Val : List_Id); -- List2
9274
9275 procedure Set_Interface_Present
9276 (N : Node_Id; Val : Boolean := True); -- Flag16
9277
9278 procedure Set_Implicit_With
9279 (N : Node_Id; Val : Boolean := True); -- Flag16
9280
9281 procedure Set_Import_Interface_Present
9282 (N : Node_Id; Val : Boolean := True); -- Flag16
9283
9284 procedure Set_In_Present
9285 (N : Node_Id; Val : Boolean := True); -- Flag15
9286
9287 procedure Set_Includes_Infinities
9288 (N : Node_Id; Val : Boolean := True); -- Flag11
9289
9290 procedure Set_Inherited_Discriminant
9291 (N : Node_Id; Val : Boolean := True); -- Flag13
9292
9293 procedure Set_Instance_Spec
9294 (N : Node_Id; Val : Node_Id); -- Node5
9295
9296 procedure Set_Intval
9297 (N : Node_Id; Val : Uint); -- Uint3
9298
9299 procedure Set_Is_Accessibility_Actual
9300 (N : Node_Id; Val : Boolean := True); -- Flag13
9301
9302 procedure Set_Is_Asynchronous_Call_Block
9303 (N : Node_Id; Val : Boolean := True); -- Flag7
9304
9305 procedure Set_Is_Component_Left_Opnd
9306 (N : Node_Id; Val : Boolean := True); -- Flag13
9307
9308 procedure Set_Is_Component_Right_Opnd
9309 (N : Node_Id; Val : Boolean := True); -- Flag14
9310
9311 procedure Set_Is_Controlling_Actual
9312 (N : Node_Id; Val : Boolean := True); -- Flag16
9313
9314 procedure Set_Is_Delayed_Aspect
9315 (N : Node_Id; Val : Boolean := True); -- Flag14
9316
9317 procedure Set_Is_Dynamic_Coextension
9318 (N : Node_Id; Val : Boolean := True); -- Flag18
9319
9320 procedure Set_Is_Elsif
9321 (N : Node_Id; Val : Boolean := True); -- Flag13
9322
9323 procedure Set_Is_Entry_Barrier_Function
9324 (N : Node_Id; Val : Boolean := True); -- Flag8
9325
9326 procedure Set_Is_Expanded_Build_In_Place_Call
9327 (N : Node_Id; Val : Boolean := True); -- Flag11
9328
9329 procedure Set_Is_Folded_In_Parser
9330 (N : Node_Id; Val : Boolean := True); -- Flag4
9331
9332 procedure Set_Is_In_Discriminant_Check
9333 (N : Node_Id; Val : Boolean := True); -- Flag11
9334
9335 procedure Set_Is_Machine_Number
9336 (N : Node_Id; Val : Boolean := True); -- Flag11
9337
9338 procedure Set_Is_Null_Loop
9339 (N : Node_Id; Val : Boolean := True); -- Flag16
9340
9341 procedure Set_Is_Overloaded
9342 (N : Node_Id; Val : Boolean := True); -- Flag5
9343
9344 procedure Set_Is_Power_Of_2_For_Shift
9345 (N : Node_Id; Val : Boolean := True); -- Flag13
9346
9347 procedure Set_Is_Protected_Subprogram_Body
9348 (N : Node_Id; Val : Boolean := True); -- Flag7
9349
9350 procedure Set_Is_Static_Coextension
9351 (N : Node_Id; Val : Boolean := True); -- Flag14
9352
9353 procedure Set_Is_Static_Expression
9354 (N : Node_Id; Val : Boolean := True); -- Flag6
9355
9356 procedure Set_Is_Subprogram_Descriptor
9357 (N : Node_Id; Val : Boolean := True); -- Flag16
9358
9359 procedure Set_Is_Task_Allocation_Block
9360 (N : Node_Id; Val : Boolean := True); -- Flag6
9361
9362 procedure Set_Is_Task_Master
9363 (N : Node_Id; Val : Boolean := True); -- Flag5
9364
9365 procedure Set_Iteration_Scheme
9366 (N : Node_Id; Val : Node_Id); -- Node2
9367
9368 procedure Set_Itype
9369 (N : Node_Id; Val : Entity_Id); -- Node1
9370
9371 procedure Set_Kill_Range_Check
9372 (N : Node_Id; Val : Boolean := True); -- Flag11
9373
9374 procedure Set_Last_Bit
9375 (N : Node_Id; Val : Node_Id); -- Node4
9376
9377 procedure Set_Last_Name
9378 (N : Node_Id; Val : Boolean := True); -- Flag6
9379
9380 procedure Set_Library_Unit
9381 (N : Node_Id; Val : Node_Id); -- Node4
9382
9383 procedure Set_Label_Construct
9384 (N : Node_Id; Val : Node_Id); -- Node2
9385
9386 procedure Set_Left_Opnd
9387 (N : Node_Id; Val : Node_Id); -- Node2
9388
9389 procedure Set_Limited_View_Installed
9390 (N : Node_Id; Val : Boolean := True); -- Flag18
9391
9392 procedure Set_Limited_Present
9393 (N : Node_Id; Val : Boolean := True); -- Flag17
9394
9395 procedure Set_Literals
9396 (N : Node_Id; Val : List_Id); -- List1
9397
9398 procedure Set_Local_Raise_Not_OK
9399 (N : Node_Id; Val : Boolean := True); -- Flag7
9400
9401 procedure Set_Local_Raise_Statements
9402 (N : Node_Id; Val : Elist_Id); -- Elist1
9403
9404 procedure Set_Loop_Actions
9405 (N : Node_Id; Val : List_Id); -- List2
9406
9407 procedure Set_Loop_Parameter_Specification
9408 (N : Node_Id; Val : Node_Id); -- Node4
9409
9410 procedure Set_Low_Bound
9411 (N : Node_Id; Val : Node_Id); -- Node1
9412
9413 procedure Set_Mod_Clause
9414 (N : Node_Id; Val : Node_Id); -- Node2
9415
9416 procedure Set_More_Ids
9417 (N : Node_Id; Val : Boolean := True); -- Flag5
9418
9419 procedure Set_Must_Be_Byte_Aligned
9420 (N : Node_Id; Val : Boolean := True); -- Flag14
9421
9422 procedure Set_Must_Not_Freeze
9423 (N : Node_Id; Val : Boolean := True); -- Flag8
9424
9425 procedure Set_Must_Not_Override
9426 (N : Node_Id; Val : Boolean := True); -- Flag15
9427
9428 procedure Set_Must_Override
9429 (N : Node_Id; Val : Boolean := True); -- Flag14
9430
9431 procedure Set_Name
9432 (N : Node_Id; Val : Node_Id); -- Node2
9433
9434 procedure Set_Names
9435 (N : Node_Id; Val : List_Id); -- List2
9436
9437 procedure Set_Next_Entity
9438 (N : Node_Id; Val : Node_Id); -- Node2
9439
9440 procedure Set_Next_Exit_Statement
9441 (N : Node_Id; Val : Node_Id); -- Node3
9442
9443 procedure Set_Next_Implicit_With
9444 (N : Node_Id; Val : Node_Id); -- Node3
9445
9446 procedure Set_Next_Named_Actual
9447 (N : Node_Id; Val : Node_Id); -- Node4
9448
9449 procedure Set_Next_Pragma
9450 (N : Node_Id; Val : Node_Id); -- Node1
9451
9452 procedure Set_Next_Rep_Item
9453 (N : Node_Id; Val : Node_Id); -- Node5
9454
9455 procedure Set_Next_Use_Clause
9456 (N : Node_Id; Val : Node_Id); -- Node3
9457
9458 procedure Set_No_Ctrl_Actions
9459 (N : Node_Id; Val : Boolean := True); -- Flag7
9460
9461 procedure Set_No_Elaboration_Check
9462 (N : Node_Id; Val : Boolean := True); -- Flag14
9463
9464 procedure Set_No_Entities_Ref_In_Spec
9465 (N : Node_Id; Val : Boolean := True); -- Flag8
9466
9467 procedure Set_No_Initialization
9468 (N : Node_Id; Val : Boolean := True); -- Flag13
9469
9470 procedure Set_No_Truncation
9471 (N : Node_Id; Val : Boolean := True); -- Flag17
9472
9473 procedure Set_Null_Present
9474 (N : Node_Id; Val : Boolean := True); -- Flag13
9475
9476 procedure Set_Null_Exclusion_Present
9477 (N : Node_Id; Val : Boolean := True); -- Flag11
9478
9479 procedure Set_Null_Exclusion_In_Return_Present
9480 (N : Node_Id; Val : Boolean := True); -- Flag14
9481
9482 procedure Set_Null_Record_Present
9483 (N : Node_Id; Val : Boolean := True); -- Flag17
9484
9485 procedure Set_Object_Definition
9486 (N : Node_Id; Val : Node_Id); -- Node4
9487
9488 procedure Set_Original_Discriminant
9489 (N : Node_Id; Val : Node_Id); -- Node2
9490
9491 procedure Set_Original_Entity
9492 (N : Node_Id; Val : Entity_Id); -- Node2
9493
9494 procedure Set_Others_Discrete_Choices
9495 (N : Node_Id; Val : List_Id); -- List1
9496
9497 procedure Set_Out_Present
9498 (N : Node_Id; Val : Boolean := True); -- Flag17
9499
9500 procedure Set_Parameter_Associations
9501 (N : Node_Id; Val : List_Id); -- List3
9502
9503 procedure Set_Parameter_List_Truncated
9504 (N : Node_Id; Val : Boolean := True); -- Flag17
9505
9506 procedure Set_Parameter_Specifications
9507 (N : Node_Id; Val : List_Id); -- List3
9508
9509 procedure Set_Parameter_Type
9510 (N : Node_Id; Val : Node_Id); -- Node2
9511
9512 procedure Set_Parent_Spec
9513 (N : Node_Id; Val : Node_Id); -- Node4
9514
9515 procedure Set_Position
9516 (N : Node_Id; Val : Node_Id); -- Node2
9517
9518 procedure Set_Pragma_Argument_Associations
9519 (N : Node_Id; Val : List_Id); -- List2
9520
9521 procedure Set_Pragma_Enabled
9522 (N : Node_Id; Val : Boolean := True); -- Flag5
9523
9524 procedure Set_Pragma_Identifier
9525 (N : Node_Id; Val : Node_Id); -- Node4
9526
9527 procedure Set_Pragmas_After
9528 (N : Node_Id; Val : List_Id); -- List5
9529
9530 procedure Set_Pragmas_Before
9531 (N : Node_Id; Val : List_Id); -- List4
9532
9533 procedure Set_Prefix
9534 (N : Node_Id; Val : Node_Id); -- Node3
9535
9536 procedure Set_Present_Expr
9537 (N : Node_Id; Val : Uint); -- Uint3
9538
9539 procedure Set_Prev_Ids
9540 (N : Node_Id; Val : Boolean := True); -- Flag6
9541
9542 procedure Set_Print_In_Hex
9543 (N : Node_Id; Val : Boolean := True); -- Flag13
9544
9545 procedure Set_Private_Declarations
9546 (N : Node_Id; Val : List_Id); -- List3
9547
9548 procedure Set_Private_Present
9549 (N : Node_Id; Val : Boolean := True); -- Flag15
9550
9551 procedure Set_Procedure_To_Call
9552 (N : Node_Id; Val : Node_Id); -- Node2
9553
9554 procedure Set_Proper_Body
9555 (N : Node_Id; Val : Node_Id); -- Node1
9556
9557 procedure Set_Protected_Definition
9558 (N : Node_Id; Val : Node_Id); -- Node3
9559
9560 procedure Set_Protected_Present
9561 (N : Node_Id; Val : Boolean := True); -- Flag6
9562
9563 procedure Set_Raises_Constraint_Error
9564 (N : Node_Id; Val : Boolean := True); -- Flag7
9565
9566 procedure Set_Range_Constraint
9567 (N : Node_Id; Val : Node_Id); -- Node4
9568
9569 procedure Set_Range_Expression
9570 (N : Node_Id; Val : Node_Id); -- Node4
9571
9572 procedure Set_Real_Range_Specification
9573 (N : Node_Id; Val : Node_Id); -- Node4
9574
9575 procedure Set_Realval
9576 (N : Node_Id; Val : Ureal); -- Ureal3
9577
9578 procedure Set_Reason
9579 (N : Node_Id; Val : Uint); -- Uint3
9580
9581 procedure Set_Record_Extension_Part
9582 (N : Node_Id; Val : Node_Id); -- Node3
9583
9584 procedure Set_Redundant_Use
9585 (N : Node_Id; Val : Boolean := True); -- Flag13
9586
9587 procedure Set_Renaming_Exception
9588 (N : Node_Id; Val : Node_Id); -- Node2
9589
9590 procedure Set_Result_Definition
9591 (N : Node_Id; Val : Node_Id); -- Node4
9592
9593 procedure Set_Return_Object_Declarations
9594 (N : Node_Id; Val : List_Id); -- List3
9595
9596 procedure Set_Return_Statement_Entity
9597 (N : Node_Id; Val : Node_Id); -- Node5
9598
9599 procedure Set_Reverse_Present
9600 (N : Node_Id; Val : Boolean := True); -- Flag15
9601
9602 procedure Set_Right_Opnd
9603 (N : Node_Id; Val : Node_Id); -- Node3
9604
9605 procedure Set_Rounded_Result
9606 (N : Node_Id; Val : Boolean := True); -- Flag18
9607
9608 procedure Set_SCIL_Controlling_Tag
9609 (N : Node_Id; Val : Node_Id); -- Node5
9610
9611 procedure Set_SCIL_Entity
9612 (N : Node_Id; Val : Node_Id); -- Node4
9613
9614 procedure Set_SCIL_Tag_Value
9615 (N : Node_Id; Val : Node_Id); -- Node5
9616
9617 procedure Set_SCIL_Target_Prim
9618 (N : Node_Id; Val : Node_Id); -- Node2
9619
9620 procedure Set_Scope
9621 (N : Node_Id; Val : Node_Id); -- Node3
9622
9623 procedure Set_Select_Alternatives
9624 (N : Node_Id; Val : List_Id); -- List1
9625
9626 procedure Set_Selector_Name
9627 (N : Node_Id; Val : Node_Id); -- Node2
9628
9629 procedure Set_Selector_Names
9630 (N : Node_Id; Val : List_Id); -- List1
9631
9632 procedure Set_Shift_Count_OK
9633 (N : Node_Id; Val : Boolean := True); -- Flag4
9634
9635 procedure Set_Source_Type
9636 (N : Node_Id; Val : Entity_Id); -- Node1
9637
9638 procedure Set_Specification
9639 (N : Node_Id; Val : Node_Id); -- Node1
9640
9641 procedure Set_Statements
9642 (N : Node_Id; Val : List_Id); -- List3
9643
9644 procedure Set_Static_Processing_OK
9645 (N : Node_Id; Val : Boolean); -- Flag4
9646
9647 procedure Set_Storage_Pool
9648 (N : Node_Id; Val : Node_Id); -- Node1
9649
9650 procedure Set_Strval
9651 (N : Node_Id; Val : String_Id); -- Str3
9652
9653 procedure Set_Subtype_Indication
9654 (N : Node_Id; Val : Node_Id); -- Node5
9655
9656 procedure Set_Subtype_Mark
9657 (N : Node_Id; Val : Node_Id); -- Node4
9658
9659 procedure Set_Subtype_Marks
9660 (N : Node_Id; Val : List_Id); -- List2
9661
9662 procedure Set_Suppress_Loop_Warnings
9663 (N : Node_Id; Val : Boolean := True); -- Flag17
9664
9665 procedure Set_Synchronized_Present
9666 (N : Node_Id; Val : Boolean := True); -- Flag7
9667
9668 procedure Set_Tagged_Present
9669 (N : Node_Id; Val : Boolean := True); -- Flag15
9670
9671 procedure Set_Target_Type
9672 (N : Node_Id; Val : Entity_Id); -- Node2
9673
9674 procedure Set_Task_Definition
9675 (N : Node_Id; Val : Node_Id); -- Node3
9676
9677 procedure Set_Task_Present
9678 (N : Node_Id; Val : Boolean := True); -- Flag5
9679
9680 procedure Set_Then_Actions
9681 (N : Node_Id; Val : List_Id); -- List2
9682
9683 procedure Set_Then_Statements
9684 (N : Node_Id; Val : List_Id); -- List2
9685
9686 procedure Set_Treat_Fixed_As_Integer
9687 (N : Node_Id; Val : Boolean := True); -- Flag14
9688
9689 procedure Set_Triggering_Alternative
9690 (N : Node_Id; Val : Node_Id); -- Node1
9691
9692 procedure Set_Triggering_Statement
9693 (N : Node_Id; Val : Node_Id); -- Node1
9694
9695 procedure Set_TSS_Elist
9696 (N : Node_Id; Val : Elist_Id); -- Elist3
9697
9698 procedure Set_Type_Definition
9699 (N : Node_Id; Val : Node_Id); -- Node3
9700
9701 procedure Set_Unit
9702 (N : Node_Id; Val : Node_Id); -- Node2
9703
9704 procedure Set_Unknown_Discriminants_Present
9705 (N : Node_Id; Val : Boolean := True); -- Flag13
9706
9707 procedure Set_Unreferenced_In_Spec
9708 (N : Node_Id; Val : Boolean := True); -- Flag7
9709
9710 procedure Set_Variant_Part
9711 (N : Node_Id; Val : Node_Id); -- Node4
9712
9713 procedure Set_Variants
9714 (N : Node_Id; Val : List_Id); -- List1
9715
9716 procedure Set_Visible_Declarations
9717 (N : Node_Id; Val : List_Id); -- List2
9718
9719 procedure Set_Was_Originally_Stub
9720 (N : Node_Id; Val : Boolean := True); -- Flag13
9721
9722 procedure Set_Withed_Body
9723 (N : Node_Id; Val : Node_Id); -- Node1
9724
9725 procedure Set_Zero_Cost_Handling
9726 (N : Node_Id; Val : Boolean := True); -- Flag5
9727
9728 -------------------------
9729 -- Iterator Procedures --
9730 -------------------------
9731
9732 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9733
9734 procedure Next_Entity (N : in out Node_Id);
9735 procedure Next_Named_Actual (N : in out Node_Id);
9736 procedure Next_Rep_Item (N : in out Node_Id);
9737 procedure Next_Use_Clause (N : in out Node_Id);
9738
9739 -------------------------------------------
9740 -- Miscellaneous Tree Access Subprograms --
9741 -------------------------------------------
9742
9743 function End_Location (N : Node_Id) return Source_Ptr;
9744 -- N is an N_If_Statement or N_Case_Statement node, and this function
9745 -- returns the location of the IF token in the END IF sequence by
9746 -- translating the value of the End_Span field.
9747
9748 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9749 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
9750 -- the End_Span field to correspond to the given value S. In other words,
9751 -- End_Span is set to the difference between S and Sloc (N), the starting
9752 -- location.
9753
9754 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
9755 -- Given an argument to a pragma Arg, this function returns the expression
9756 -- for the argument. This is Arg itself, or, in the case where Arg is a
9757 -- pragma argument association node, the expression from this node.
9758
9759 --------------------------------
9760 -- Node_Kind Membership Tests --
9761 --------------------------------
9762
9763 -- The following functions allow a convenient notation for testing whether
9764 -- a Node_Kind value matches any one of a list of possible values. In each
9765 -- case True is returned if the given T argument is equal to any of the V
9766 -- arguments. Note that there is a similar set of functions defined in
9767 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
9768
9769 function Nkind_In
9770 (T : Node_Kind;
9771 V1 : Node_Kind;
9772 V2 : Node_Kind) return Boolean;
9773
9774 function Nkind_In
9775 (T : Node_Kind;
9776 V1 : Node_Kind;
9777 V2 : Node_Kind;
9778 V3 : Node_Kind) return Boolean;
9779
9780 function Nkind_In
9781 (T : Node_Kind;
9782 V1 : Node_Kind;
9783 V2 : Node_Kind;
9784 V3 : Node_Kind;
9785 V4 : Node_Kind) return Boolean;
9786
9787 function Nkind_In
9788 (T : Node_Kind;
9789 V1 : Node_Kind;
9790 V2 : Node_Kind;
9791 V3 : Node_Kind;
9792 V4 : Node_Kind;
9793 V5 : Node_Kind) return Boolean;
9794
9795 function Nkind_In
9796 (T : Node_Kind;
9797 V1 : Node_Kind;
9798 V2 : Node_Kind;
9799 V3 : Node_Kind;
9800 V4 : Node_Kind;
9801 V5 : Node_Kind;
9802 V6 : Node_Kind) return Boolean;
9803
9804 function Nkind_In
9805 (T : Node_Kind;
9806 V1 : Node_Kind;
9807 V2 : Node_Kind;
9808 V3 : Node_Kind;
9809 V4 : Node_Kind;
9810 V5 : Node_Kind;
9811 V6 : Node_Kind;
9812 V7 : Node_Kind) return Boolean;
9813
9814 function Nkind_In
9815 (T : Node_Kind;
9816 V1 : Node_Kind;
9817 V2 : Node_Kind;
9818 V3 : Node_Kind;
9819 V4 : Node_Kind;
9820 V5 : Node_Kind;
9821 V6 : Node_Kind;
9822 V7 : Node_Kind;
9823 V8 : Node_Kind) return Boolean;
9824
9825 function Nkind_In
9826 (T : Node_Kind;
9827 V1 : Node_Kind;
9828 V2 : Node_Kind;
9829 V3 : Node_Kind;
9830 V4 : Node_Kind;
9831 V5 : Node_Kind;
9832 V6 : Node_Kind;
9833 V7 : Node_Kind;
9834 V8 : Node_Kind;
9835 V9 : Node_Kind) return Boolean;
9836
9837 pragma Inline (Nkind_In);
9838 -- Inline all above functions
9839
9840 -----------------------
9841 -- Utility Functions --
9842 -----------------------
9843
9844 function Pragma_Name (N : Node_Id) return Name_Id;
9845 pragma Inline (Pragma_Name);
9846 -- Convenient function to obtain Chars field of Pragma_Identifier
9847
9848 -----------------------------
9849 -- Syntactic Parent Tables --
9850 -----------------------------
9851
9852 -- These tables show for each node, and for each of the five fields,
9853 -- whether the corresponding field is syntactic (True) or semantic (False).
9854 -- Unused entries are also set to False.
9855
9856 subtype Field_Num is Natural range 1 .. 5;
9857
9858 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
9859
9860 -- Following entries can be built automatically from the sinfo sources
9861 -- using the makeisf utility (currently this program is in spitbol).
9862
9863 N_Identifier =>
9864 (1 => True, -- Chars (Name1)
9865 2 => False, -- Original_Discriminant (Node2-Sem)
9866 3 => False, -- unused
9867 4 => False, -- Entity (Node4-Sem)
9868 5 => False), -- Etype (Node5-Sem)
9869
9870 N_Integer_Literal =>
9871 (1 => False, -- unused
9872 2 => False, -- Original_Entity (Node2-Sem)
9873 3 => True, -- Intval (Uint3)
9874 4 => False, -- unused
9875 5 => False), -- Etype (Node5-Sem)
9876
9877 N_Real_Literal =>
9878 (1 => False, -- unused
9879 2 => False, -- Original_Entity (Node2-Sem)
9880 3 => True, -- Realval (Ureal3)
9881 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
9882 5 => False), -- Etype (Node5-Sem)
9883
9884 N_Character_Literal =>
9885 (1 => True, -- Chars (Name1)
9886 2 => True, -- Char_Literal_Value (Uint2)
9887 3 => False, -- unused
9888 4 => False, -- Entity (Node4-Sem)
9889 5 => False), -- Etype (Node5-Sem)
9890
9891 N_String_Literal =>
9892 (1 => False, -- unused
9893 2 => False, -- unused
9894 3 => True, -- Strval (Str3)
9895 4 => False, -- unused
9896 5 => False), -- Etype (Node5-Sem)
9897
9898 N_Pragma =>
9899 (1 => False, -- Next_Pragma (Node1-Sem)
9900 2 => True, -- Pragma_Argument_Associations (List2)
9901 3 => True, -- Debug_Statement (Node3)
9902 4 => True, -- Pragma_Identifier (Node4)
9903 5 => False), -- Next_Rep_Item (Node5-Sem)
9904
9905 N_Pragma_Argument_Association =>
9906 (1 => True, -- Chars (Name1)
9907 2 => False, -- unused
9908 3 => True, -- Expression (Node3)
9909 4 => False, -- unused
9910 5 => False), -- unused
9911
9912 N_Defining_Identifier =>
9913 (1 => True, -- Chars (Name1)
9914 2 => False, -- Next_Entity (Node2-Sem)
9915 3 => False, -- Scope (Node3-Sem)
9916 4 => False, -- unused
9917 5 => False), -- Etype (Node5-Sem)
9918
9919 N_Full_Type_Declaration =>
9920 (1 => True, -- Defining_Identifier (Node1)
9921 2 => False, -- unused
9922 3 => True, -- Type_Definition (Node3)
9923 4 => True, -- Discriminant_Specifications (List4)
9924 5 => False), -- unused
9925
9926 N_Subtype_Declaration =>
9927 (1 => True, -- Defining_Identifier (Node1)
9928 2 => False, -- unused
9929 3 => False, -- unused
9930 4 => False, -- Generic_Parent_Type (Node4-Sem)
9931 5 => True), -- Subtype_Indication (Node5)
9932
9933 N_Subtype_Indication =>
9934 (1 => False, -- unused
9935 2 => False, -- unused
9936 3 => True, -- Constraint (Node3)
9937 4 => True, -- Subtype_Mark (Node4)
9938 5 => False), -- Etype (Node5-Sem)
9939
9940 N_Object_Declaration =>
9941 (1 => True, -- Defining_Identifier (Node1)
9942 2 => False, -- Handler_List_Entry (Node2-Sem)
9943 3 => True, -- Expression (Node3)
9944 4 => True, -- Object_Definition (Node4)
9945 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
9946
9947 N_Number_Declaration =>
9948 (1 => True, -- Defining_Identifier (Node1)
9949 2 => False, -- unused
9950 3 => True, -- Expression (Node3)
9951 4 => False, -- unused
9952 5 => False), -- unused
9953
9954 N_Derived_Type_Definition =>
9955 (1 => False, -- unused
9956 2 => True, -- Interface_List (List2)
9957 3 => True, -- Record_Extension_Part (Node3)
9958 4 => False, -- unused
9959 5 => True), -- Subtype_Indication (Node5)
9960
9961 N_Range_Constraint =>
9962 (1 => False, -- unused
9963 2 => False, -- unused
9964 3 => False, -- unused
9965 4 => True, -- Range_Expression (Node4)
9966 5 => False), -- unused
9967
9968 N_Range =>
9969 (1 => True, -- Low_Bound (Node1)
9970 2 => True, -- High_Bound (Node2)
9971 3 => False, -- unused
9972 4 => False, -- unused
9973 5 => False), -- Etype (Node5-Sem)
9974
9975 N_Enumeration_Type_Definition =>
9976 (1 => True, -- Literals (List1)
9977 2 => False, -- unused
9978 3 => False, -- unused
9979 4 => True, -- End_Label (Node4)
9980 5 => False), -- unused
9981
9982 N_Defining_Character_Literal =>
9983 (1 => True, -- Chars (Name1)
9984 2 => False, -- Next_Entity (Node2-Sem)
9985 3 => False, -- Scope (Node3-Sem)
9986 4 => False, -- unused
9987 5 => False), -- Etype (Node5-Sem)
9988
9989 N_Signed_Integer_Type_Definition =>
9990 (1 => True, -- Low_Bound (Node1)
9991 2 => True, -- High_Bound (Node2)
9992 3 => False, -- unused
9993 4 => False, -- unused
9994 5 => False), -- unused
9995
9996 N_Modular_Type_Definition =>
9997 (1 => False, -- unused
9998 2 => False, -- unused
9999 3 => True, -- Expression (Node3)
10000 4 => False, -- unused
10001 5 => False), -- unused
10002
10003 N_Floating_Point_Definition =>
10004 (1 => False, -- unused
10005 2 => True, -- Digits_Expression (Node2)
10006 3 => False, -- unused
10007 4 => True, -- Real_Range_Specification (Node4)
10008 5 => False), -- unused
10009
10010 N_Real_Range_Specification =>
10011 (1 => True, -- Low_Bound (Node1)
10012 2 => True, -- High_Bound (Node2)
10013 3 => False, -- unused
10014 4 => False, -- unused
10015 5 => False), -- unused
10016
10017 N_Ordinary_Fixed_Point_Definition =>
10018 (1 => False, -- unused
10019 2 => False, -- unused
10020 3 => True, -- Delta_Expression (Node3)
10021 4 => True, -- Real_Range_Specification (Node4)
10022 5 => False), -- unused
10023
10024 N_Decimal_Fixed_Point_Definition =>
10025 (1 => False, -- unused
10026 2 => True, -- Digits_Expression (Node2)
10027 3 => True, -- Delta_Expression (Node3)
10028 4 => True, -- Real_Range_Specification (Node4)
10029 5 => False), -- unused
10030
10031 N_Digits_Constraint =>
10032 (1 => False, -- unused
10033 2 => True, -- Digits_Expression (Node2)
10034 3 => False, -- unused
10035 4 => True, -- Range_Constraint (Node4)
10036 5 => False), -- unused
10037
10038 N_Unconstrained_Array_Definition =>
10039 (1 => False, -- unused
10040 2 => True, -- Subtype_Marks (List2)
10041 3 => False, -- unused
10042 4 => True, -- Component_Definition (Node4)
10043 5 => False), -- unused
10044
10045 N_Constrained_Array_Definition =>
10046 (1 => False, -- unused
10047 2 => True, -- Discrete_Subtype_Definitions (List2)
10048 3 => False, -- unused
10049 4 => True, -- Component_Definition (Node4)
10050 5 => False), -- unused
10051
10052 N_Component_Definition =>
10053 (1 => False, -- unused
10054 2 => False, -- unused
10055 3 => True, -- Access_Definition (Node3)
10056 4 => False, -- unused
10057 5 => True), -- Subtype_Indication (Node5)
10058
10059 N_Discriminant_Specification =>
10060 (1 => True, -- Defining_Identifier (Node1)
10061 2 => False, -- unused
10062 3 => True, -- Expression (Node3)
10063 4 => False, -- unused
10064 5 => True), -- Discriminant_Type (Node5)
10065
10066 N_Index_Or_Discriminant_Constraint =>
10067 (1 => True, -- Constraints (List1)
10068 2 => False, -- unused
10069 3 => False, -- unused
10070 4 => False, -- unused
10071 5 => False), -- unused
10072
10073 N_Discriminant_Association =>
10074 (1 => True, -- Selector_Names (List1)
10075 2 => False, -- unused
10076 3 => True, -- Expression (Node3)
10077 4 => False, -- unused
10078 5 => False), -- unused
10079
10080 N_Record_Definition =>
10081 (1 => True, -- Component_List (Node1)
10082 2 => True, -- Interface_List (List2)
10083 3 => False, -- unused
10084 4 => True, -- End_Label (Node4)
10085 5 => False), -- unused
10086
10087 N_Component_List =>
10088 (1 => False, -- unused
10089 2 => False, -- unused
10090 3 => True, -- Component_Items (List3)
10091 4 => True, -- Variant_Part (Node4)
10092 5 => False), -- unused
10093
10094 N_Component_Declaration =>
10095 (1 => True, -- Defining_Identifier (Node1)
10096 2 => False, -- unused
10097 3 => True, -- Expression (Node3)
10098 4 => True, -- Component_Definition (Node4)
10099 5 => False), -- unused
10100
10101 N_Variant_Part =>
10102 (1 => True, -- Variants (List1)
10103 2 => True, -- Name (Node2)
10104 3 => False, -- unused
10105 4 => False, -- unused
10106 5 => False), -- unused
10107
10108 N_Variant =>
10109 (1 => True, -- Component_List (Node1)
10110 2 => False, -- Enclosing_Variant (Node2-Sem)
10111 3 => False, -- Present_Expr (Uint3-Sem)
10112 4 => True, -- Discrete_Choices (List4)
10113 5 => False), -- Dcheck_Function (Node5-Sem)
10114
10115 N_Others_Choice =>
10116 (1 => False, -- Others_Discrete_Choices (List1-Sem)
10117 2 => False, -- unused
10118 3 => False, -- unused
10119 4 => False, -- unused
10120 5 => False), -- unused
10121
10122 N_Access_To_Object_Definition =>
10123 (1 => False, -- unused
10124 2 => False, -- unused
10125 3 => False, -- unused
10126 4 => False, -- unused
10127 5 => True), -- Subtype_Indication (Node5)
10128
10129 N_Access_Function_Definition =>
10130 (1 => False, -- unused
10131 2 => False, -- unused
10132 3 => True, -- Parameter_Specifications (List3)
10133 4 => True, -- Result_Definition (Node4)
10134 5 => False), -- unused
10135
10136 N_Access_Procedure_Definition =>
10137 (1 => False, -- unused
10138 2 => False, -- unused
10139 3 => True, -- Parameter_Specifications (List3)
10140 4 => False, -- unused
10141 5 => False), -- unused
10142
10143 N_Access_Definition =>
10144 (1 => False, -- unused
10145 2 => False, -- unused
10146 3 => True, -- Access_To_Subprogram_Definition (Node3)
10147 4 => True, -- Subtype_Mark (Node4)
10148 5 => False), -- unused
10149
10150 N_Incomplete_Type_Declaration =>
10151 (1 => True, -- Defining_Identifier (Node1)
10152 2 => False, -- unused
10153 3 => False, -- unused
10154 4 => True, -- Discriminant_Specifications (List4)
10155 5 => False), -- unused
10156
10157 N_Explicit_Dereference =>
10158 (1 => False, -- unused
10159 2 => False, -- unused
10160 3 => True, -- Prefix (Node3)
10161 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10162 5 => False), -- Etype (Node5-Sem)
10163
10164 N_Indexed_Component =>
10165 (1 => True, -- Expressions (List1)
10166 2 => False, -- unused
10167 3 => True, -- Prefix (Node3)
10168 4 => False, -- unused
10169 5 => False), -- Etype (Node5-Sem)
10170
10171 N_Slice =>
10172 (1 => False, -- unused
10173 2 => False, -- unused
10174 3 => True, -- Prefix (Node3)
10175 4 => True, -- Discrete_Range (Node4)
10176 5 => False), -- Etype (Node5-Sem)
10177
10178 N_Selected_Component =>
10179 (1 => False, -- unused
10180 2 => True, -- Selector_Name (Node2)
10181 3 => True, -- Prefix (Node3)
10182 4 => False, -- unused
10183 5 => False), -- Etype (Node5-Sem)
10184
10185 N_Attribute_Reference =>
10186 (1 => True, -- Expressions (List1)
10187 2 => True, -- Attribute_Name (Name2)
10188 3 => True, -- Prefix (Node3)
10189 4 => False, -- Entity (Node4-Sem)
10190 5 => False), -- Etype (Node5-Sem)
10191
10192 N_Aggregate =>
10193 (1 => True, -- Expressions (List1)
10194 2 => True, -- Component_Associations (List2)
10195 3 => False, -- Aggregate_Bounds (Node3-Sem)
10196 4 => False, -- unused
10197 5 => False), -- Etype (Node5-Sem)
10198
10199 N_Component_Association =>
10200 (1 => True, -- Choices (List1)
10201 2 => False, -- Loop_Actions (List2-Sem)
10202 3 => True, -- Expression (Node3)
10203 4 => False, -- unused
10204 5 => False), -- unused
10205
10206 N_Extension_Aggregate =>
10207 (1 => True, -- Expressions (List1)
10208 2 => True, -- Component_Associations (List2)
10209 3 => True, -- Ancestor_Part (Node3)
10210 4 => False, -- unused
10211 5 => False), -- Etype (Node5-Sem)
10212
10213 N_Null =>
10214 (1 => False, -- unused
10215 2 => False, -- unused
10216 3 => False, -- unused
10217 4 => False, -- unused
10218 5 => False), -- Etype (Node5-Sem)
10219
10220 N_And_Then =>
10221 (1 => False, -- Actions (List1-Sem)
10222 2 => True, -- Left_Opnd (Node2)
10223 3 => True, -- Right_Opnd (Node3)
10224 4 => False, -- unused
10225 5 => False), -- Etype (Node5-Sem)
10226
10227 N_Or_Else =>
10228 (1 => False, -- Actions (List1-Sem)
10229 2 => True, -- Left_Opnd (Node2)
10230 3 => True, -- Right_Opnd (Node3)
10231 4 => False, -- unused
10232 5 => False), -- Etype (Node5-Sem)
10233
10234 N_In =>
10235 (1 => False, -- unused
10236 2 => True, -- Left_Opnd (Node2)
10237 3 => True, -- Right_Opnd (Node3)
10238 4 => True, -- Alternatives (List4)
10239 5 => False), -- Etype (Node5-Sem)
10240
10241 N_Not_In =>
10242 (1 => False, -- unused
10243 2 => True, -- Left_Opnd (Node2)
10244 3 => True, -- Right_Opnd (Node3)
10245 4 => True, -- Alternatives (List4)
10246 5 => False), -- Etype (Node5-Sem)
10247
10248 N_Op_And =>
10249 (1 => True, -- Chars (Name1)
10250 2 => True, -- Left_Opnd (Node2)
10251 3 => True, -- Right_Opnd (Node3)
10252 4 => False, -- Entity (Node4-Sem)
10253 5 => False), -- Etype (Node5-Sem)
10254
10255 N_Op_Or =>
10256 (1 => True, -- Chars (Name1)
10257 2 => True, -- Left_Opnd (Node2)
10258 3 => True, -- Right_Opnd (Node3)
10259 4 => False, -- Entity (Node4-Sem)
10260 5 => False), -- Etype (Node5-Sem)
10261
10262 N_Op_Xor =>
10263 (1 => True, -- Chars (Name1)
10264 2 => True, -- Left_Opnd (Node2)
10265 3 => True, -- Right_Opnd (Node3)
10266 4 => False, -- Entity (Node4-Sem)
10267 5 => False), -- Etype (Node5-Sem)
10268
10269 N_Op_Eq =>
10270 (1 => True, -- Chars (Name1)
10271 2 => True, -- Left_Opnd (Node2)
10272 3 => True, -- Right_Opnd (Node3)
10273 4 => False, -- Entity (Node4-Sem)
10274 5 => False), -- Etype (Node5-Sem)
10275
10276 N_Op_Ne =>
10277 (1 => True, -- Chars (Name1)
10278 2 => True, -- Left_Opnd (Node2)
10279 3 => True, -- Right_Opnd (Node3)
10280 4 => False, -- Entity (Node4-Sem)
10281 5 => False), -- Etype (Node5-Sem)
10282
10283 N_Op_Lt =>
10284 (1 => True, -- Chars (Name1)
10285 2 => True, -- Left_Opnd (Node2)
10286 3 => True, -- Right_Opnd (Node3)
10287 4 => False, -- Entity (Node4-Sem)
10288 5 => False), -- Etype (Node5-Sem)
10289
10290 N_Op_Le =>
10291 (1 => True, -- Chars (Name1)
10292 2 => True, -- Left_Opnd (Node2)
10293 3 => True, -- Right_Opnd (Node3)
10294 4 => False, -- Entity (Node4-Sem)
10295 5 => False), -- Etype (Node5-Sem)
10296
10297 N_Op_Gt =>
10298 (1 => True, -- Chars (Name1)
10299 2 => True, -- Left_Opnd (Node2)
10300 3 => True, -- Right_Opnd (Node3)
10301 4 => False, -- Entity (Node4-Sem)
10302 5 => False), -- Etype (Node5-Sem)
10303
10304 N_Op_Ge =>
10305 (1 => True, -- Chars (Name1)
10306 2 => True, -- Left_Opnd (Node2)
10307 3 => True, -- Right_Opnd (Node3)
10308 4 => False, -- Entity (Node4-Sem)
10309 5 => False), -- Etype (Node5-Sem)
10310
10311 N_Op_Add =>
10312 (1 => True, -- Chars (Name1)
10313 2 => True, -- Left_Opnd (Node2)
10314 3 => True, -- Right_Opnd (Node3)
10315 4 => False, -- Entity (Node4-Sem)
10316 5 => False), -- Etype (Node5-Sem)
10317
10318 N_Op_Subtract =>
10319 (1 => True, -- Chars (Name1)
10320 2 => True, -- Left_Opnd (Node2)
10321 3 => True, -- Right_Opnd (Node3)
10322 4 => False, -- Entity (Node4-Sem)
10323 5 => False), -- Etype (Node5-Sem)
10324
10325 N_Op_Concat =>
10326 (1 => True, -- Chars (Name1)
10327 2 => True, -- Left_Opnd (Node2)
10328 3 => True, -- Right_Opnd (Node3)
10329 4 => False, -- Entity (Node4-Sem)
10330 5 => False), -- Etype (Node5-Sem)
10331
10332 N_Op_Multiply =>
10333 (1 => True, -- Chars (Name1)
10334 2 => True, -- Left_Opnd (Node2)
10335 3 => True, -- Right_Opnd (Node3)
10336 4 => False, -- Entity (Node4-Sem)
10337 5 => False), -- Etype (Node5-Sem)
10338
10339 N_Op_Divide =>
10340 (1 => True, -- Chars (Name1)
10341 2 => True, -- Left_Opnd (Node2)
10342 3 => True, -- Right_Opnd (Node3)
10343 4 => False, -- Entity (Node4-Sem)
10344 5 => False), -- Etype (Node5-Sem)
10345
10346 N_Op_Mod =>
10347 (1 => True, -- Chars (Name1)
10348 2 => True, -- Left_Opnd (Node2)
10349 3 => True, -- Right_Opnd (Node3)
10350 4 => False, -- Entity (Node4-Sem)
10351 5 => False), -- Etype (Node5-Sem)
10352
10353 N_Op_Rem =>
10354 (1 => True, -- Chars (Name1)
10355 2 => True, -- Left_Opnd (Node2)
10356 3 => True, -- Right_Opnd (Node3)
10357 4 => False, -- Entity (Node4-Sem)
10358 5 => False), -- Etype (Node5-Sem)
10359
10360 N_Op_Expon =>
10361 (1 => True, -- Chars (Name1)
10362 2 => True, -- Left_Opnd (Node2)
10363 3 => True, -- Right_Opnd (Node3)
10364 4 => False, -- Entity (Node4-Sem)
10365 5 => False), -- Etype (Node5-Sem)
10366
10367 N_Op_Plus =>
10368 (1 => True, -- Chars (Name1)
10369 2 => False, -- unused
10370 3 => True, -- Right_Opnd (Node3)
10371 4 => False, -- Entity (Node4-Sem)
10372 5 => False), -- Etype (Node5-Sem)
10373
10374 N_Op_Minus =>
10375 (1 => True, -- Chars (Name1)
10376 2 => False, -- unused
10377 3 => True, -- Right_Opnd (Node3)
10378 4 => False, -- Entity (Node4-Sem)
10379 5 => False), -- Etype (Node5-Sem)
10380
10381 N_Op_Abs =>
10382 (1 => True, -- Chars (Name1)
10383 2 => False, -- unused
10384 3 => True, -- Right_Opnd (Node3)
10385 4 => False, -- Entity (Node4-Sem)
10386 5 => False), -- Etype (Node5-Sem)
10387
10388 N_Op_Not =>
10389 (1 => True, -- Chars (Name1)
10390 2 => False, -- unused
10391 3 => True, -- Right_Opnd (Node3)
10392 4 => False, -- Entity (Node4-Sem)
10393 5 => False), -- Etype (Node5-Sem)
10394
10395 N_Type_Conversion =>
10396 (1 => False, -- unused
10397 2 => False, -- unused
10398 3 => True, -- Expression (Node3)
10399 4 => True, -- Subtype_Mark (Node4)
10400 5 => False), -- Etype (Node5-Sem)
10401
10402 N_Qualified_Expression =>
10403 (1 => False, -- unused
10404 2 => False, -- unused
10405 3 => True, -- Expression (Node3)
10406 4 => True, -- Subtype_Mark (Node4)
10407 5 => False), -- Etype (Node5-Sem)
10408
10409 N_Allocator =>
10410 (1 => False, -- Storage_Pool (Node1-Sem)
10411 2 => False, -- Procedure_To_Call (Node2-Sem)
10412 3 => True, -- Expression (Node3)
10413 4 => False, -- Coextensions (Elist4-Sem)
10414 5 => False), -- Etype (Node5-Sem)
10415
10416 N_Null_Statement =>
10417 (1 => False, -- unused
10418 2 => False, -- unused
10419 3 => False, -- unused
10420 4 => False, -- unused
10421 5 => False), -- unused
10422
10423 N_Label =>
10424 (1 => True, -- Identifier (Node1)
10425 2 => False, -- unused
10426 3 => False, -- unused
10427 4 => False, -- unused
10428 5 => False), -- unused
10429
10430 N_Assignment_Statement =>
10431 (1 => False, -- unused
10432 2 => True, -- Name (Node2)
10433 3 => True, -- Expression (Node3)
10434 4 => False, -- unused
10435 5 => False), -- unused
10436
10437 N_If_Statement =>
10438 (1 => True, -- Condition (Node1)
10439 2 => True, -- Then_Statements (List2)
10440 3 => True, -- Elsif_Parts (List3)
10441 4 => True, -- Else_Statements (List4)
10442 5 => True), -- End_Span (Uint5)
10443
10444 N_Elsif_Part =>
10445 (1 => True, -- Condition (Node1)
10446 2 => True, -- Then_Statements (List2)
10447 3 => False, -- Condition_Actions (List3-Sem)
10448 4 => False, -- unused
10449 5 => False), -- unused
10450
10451 N_Case_Expression =>
10452 (1 => False, -- unused
10453 2 => False, -- unused
10454 3 => True, -- Expression (Node3)
10455 4 => True, -- Alternatives (List4)
10456 5 => False), -- unused
10457
10458 N_Case_Expression_Alternative =>
10459 (1 => False, -- Actions (List1-Sem)
10460 2 => False, -- unused
10461 3 => True, -- Statements (List3)
10462 4 => True, -- Expression (Node4)
10463 5 => False), -- unused
10464
10465 N_Case_Statement =>
10466 (1 => False, -- unused
10467 2 => False, -- unused
10468 3 => True, -- Expression (Node3)
10469 4 => True, -- Alternatives (List4)
10470 5 => True), -- End_Span (Uint5)
10471
10472 N_Case_Statement_Alternative =>
10473 (1 => False, -- unused
10474 2 => False, -- unused
10475 3 => True, -- Statements (List3)
10476 4 => True, -- Discrete_Choices (List4)
10477 5 => False), -- unused
10478
10479 N_Loop_Statement =>
10480 (1 => True, -- Identifier (Node1)
10481 2 => True, -- Iteration_Scheme (Node2)
10482 3 => True, -- Statements (List3)
10483 4 => True, -- End_Label (Node4)
10484 5 => False), -- unused
10485
10486 N_Iteration_Scheme =>
10487 (1 => True, -- Condition (Node1)
10488 2 => False, -- unused
10489 3 => False, -- Condition_Actions (List3-Sem)
10490 4 => True, -- Loop_Parameter_Specification (Node4)
10491 5 => False), -- unused
10492
10493 N_Loop_Parameter_Specification =>
10494 (1 => True, -- Defining_Identifier (Node1)
10495 2 => False, -- unused
10496 3 => False, -- unused
10497 4 => True, -- Discrete_Subtype_Definition (Node4)
10498 5 => False), -- unused
10499
10500 N_Block_Statement =>
10501 (1 => True, -- Identifier (Node1)
10502 2 => True, -- Declarations (List2)
10503 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10504 4 => True, -- Handled_Statement_Sequence (Node4)
10505 5 => False), -- unused
10506
10507 N_Exit_Statement =>
10508 (1 => True, -- Condition (Node1)
10509 2 => True, -- Name (Node2)
10510 3 => False, -- unused
10511 4 => False, -- unused
10512 5 => False), -- unused
10513
10514 N_Goto_Statement =>
10515 (1 => False, -- unused
10516 2 => True, -- Name (Node2)
10517 3 => False, -- unused
10518 4 => False, -- unused
10519 5 => False), -- unused
10520
10521 N_Subprogram_Declaration =>
10522 (1 => True, -- Specification (Node1)
10523 2 => False, -- unused
10524 3 => False, -- Body_To_Inline (Node3-Sem)
10525 4 => False, -- Parent_Spec (Node4-Sem)
10526 5 => False), -- Corresponding_Body (Node5-Sem)
10527
10528 N_Abstract_Subprogram_Declaration =>
10529 (1 => True, -- Specification (Node1)
10530 2 => False, -- unused
10531 3 => False, -- unused
10532 4 => False, -- unused
10533 5 => False), -- unused
10534
10535 N_Function_Specification =>
10536 (1 => True, -- Defining_Unit_Name (Node1)
10537 2 => False, -- Elaboration_Boolean (Node2-Sem)
10538 3 => True, -- Parameter_Specifications (List3)
10539 4 => True, -- Result_Definition (Node4)
10540 5 => False), -- Generic_Parent (Node5-Sem)
10541
10542 N_Procedure_Specification =>
10543 (1 => True, -- Defining_Unit_Name (Node1)
10544 2 => False, -- Elaboration_Boolean (Node2-Sem)
10545 3 => True, -- Parameter_Specifications (List3)
10546 4 => False, -- unused
10547 5 => False), -- Generic_Parent (Node5-Sem)
10548
10549 N_Designator =>
10550 (1 => True, -- Identifier (Node1)
10551 2 => True, -- Name (Node2)
10552 3 => False, -- unused
10553 4 => False, -- unused
10554 5 => False), -- unused
10555
10556 N_Defining_Program_Unit_Name =>
10557 (1 => True, -- Defining_Identifier (Node1)
10558 2 => True, -- Name (Node2)
10559 3 => False, -- unused
10560 4 => False, -- unused
10561 5 => False), -- unused
10562
10563 N_Operator_Symbol =>
10564 (1 => True, -- Chars (Name1)
10565 2 => False, -- unused
10566 3 => True, -- Strval (Str3)
10567 4 => False, -- Entity (Node4-Sem)
10568 5 => False), -- Etype (Node5-Sem)
10569
10570 N_Defining_Operator_Symbol =>
10571 (1 => True, -- Chars (Name1)
10572 2 => False, -- Next_Entity (Node2-Sem)
10573 3 => False, -- Scope (Node3-Sem)
10574 4 => False, -- unused
10575 5 => False), -- Etype (Node5-Sem)
10576
10577 N_Parameter_Specification =>
10578 (1 => True, -- Defining_Identifier (Node1)
10579 2 => True, -- Parameter_Type (Node2)
10580 3 => True, -- Expression (Node3)
10581 4 => False, -- unused
10582 5 => False), -- Default_Expression (Node5-Sem)
10583
10584 N_Subprogram_Body =>
10585 (1 => True, -- Specification (Node1)
10586 2 => True, -- Declarations (List2)
10587 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10588 4 => True, -- Handled_Statement_Sequence (Node4)
10589 5 => False), -- Corresponding_Spec (Node5-Sem)
10590
10591 N_Parameterized_Expression =>
10592 (1 => True, -- Specification (Node1)
10593 2 => False, -- unused
10594 3 => True, -- Expression (Node3)
10595 4 => False, -- unused
10596 5 => False), -- unused
10597
10598 N_Procedure_Call_Statement =>
10599 (1 => False, -- Controlling_Argument (Node1-Sem)
10600 2 => True, -- Name (Node2)
10601 3 => True, -- Parameter_Associations (List3)
10602 4 => False, -- First_Named_Actual (Node4-Sem)
10603 5 => False), -- Etype (Node5-Sem)
10604
10605 N_Function_Call =>
10606 (1 => False, -- Controlling_Argument (Node1-Sem)
10607 2 => True, -- Name (Node2)
10608 3 => True, -- Parameter_Associations (List3)
10609 4 => False, -- First_Named_Actual (Node4-Sem)
10610 5 => False), -- Etype (Node5-Sem)
10611
10612 N_Parameter_Association =>
10613 (1 => False, -- unused
10614 2 => True, -- Selector_Name (Node2)
10615 3 => True, -- Explicit_Actual_Parameter (Node3)
10616 4 => False, -- Next_Named_Actual (Node4-Sem)
10617 5 => False), -- unused
10618
10619 N_Return_Statement =>
10620 (1 => False, -- Storage_Pool (Node1-Sem)
10621 2 => False, -- Procedure_To_Call (Node2-Sem)
10622 3 => True, -- Expression (Node3)
10623 4 => False, -- unused
10624 5 => False), -- Return_Statement_Entity (Node5-Sem)
10625
10626 N_Extended_Return_Statement =>
10627 (1 => False, -- Storage_Pool (Node1-Sem)
10628 2 => False, -- Procedure_To_Call (Node2-Sem)
10629 3 => True, -- Return_Object_Declarations (List3)
10630 4 => True, -- Handled_Statement_Sequence (Node4)
10631 5 => False), -- Return_Statement_Entity (Node5-Sem)
10632
10633 N_Package_Declaration =>
10634 (1 => True, -- Specification (Node1)
10635 2 => False, -- unused
10636 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10637 4 => False, -- Parent_Spec (Node4-Sem)
10638 5 => False), -- Corresponding_Body (Node5-Sem)
10639
10640 N_Package_Specification =>
10641 (1 => True, -- Defining_Unit_Name (Node1)
10642 2 => True, -- Visible_Declarations (List2)
10643 3 => True, -- Private_Declarations (List3)
10644 4 => True, -- End_Label (Node4)
10645 5 => False), -- Generic_Parent (Node5-Sem)
10646
10647 N_Package_Body =>
10648 (1 => True, -- Defining_Unit_Name (Node1)
10649 2 => True, -- Declarations (List2)
10650 3 => False, -- unused
10651 4 => True, -- Handled_Statement_Sequence (Node4)
10652 5 => False), -- Corresponding_Spec (Node5-Sem)
10653
10654 N_Private_Type_Declaration =>
10655 (1 => True, -- Defining_Identifier (Node1)
10656 2 => False, -- unused
10657 3 => False, -- unused
10658 4 => True, -- Discriminant_Specifications (List4)
10659 5 => False), -- unused
10660
10661 N_Private_Extension_Declaration =>
10662 (1 => True, -- Defining_Identifier (Node1)
10663 2 => True, -- Interface_List (List2)
10664 3 => False, -- unused
10665 4 => True, -- Discriminant_Specifications (List4)
10666 5 => True), -- Subtype_Indication (Node5)
10667
10668 N_Use_Package_Clause =>
10669 (1 => False, -- unused
10670 2 => True, -- Names (List2)
10671 3 => False, -- Next_Use_Clause (Node3-Sem)
10672 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10673 5 => False), -- unused
10674
10675 N_Use_Type_Clause =>
10676 (1 => False, -- unused
10677 2 => True, -- Subtype_Marks (List2)
10678 3 => False, -- Next_Use_Clause (Node3-Sem)
10679 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10680 5 => False), -- unused
10681
10682 N_Object_Renaming_Declaration =>
10683 (1 => True, -- Defining_Identifier (Node1)
10684 2 => True, -- Name (Node2)
10685 3 => True, -- Access_Definition (Node3)
10686 4 => True, -- Subtype_Mark (Node4)
10687 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10688
10689 N_Exception_Renaming_Declaration =>
10690 (1 => True, -- Defining_Identifier (Node1)
10691 2 => True, -- Name (Node2)
10692 3 => False, -- unused
10693 4 => False, -- unused
10694 5 => False), -- unused
10695
10696 N_Package_Renaming_Declaration =>
10697 (1 => True, -- Defining_Unit_Name (Node1)
10698 2 => True, -- Name (Node2)
10699 3 => False, -- unused
10700 4 => False, -- Parent_Spec (Node4-Sem)
10701 5 => False), -- unused
10702
10703 N_Subprogram_Renaming_Declaration =>
10704 (1 => True, -- Specification (Node1)
10705 2 => True, -- Name (Node2)
10706 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
10707 4 => False, -- Parent_Spec (Node4-Sem)
10708 5 => False), -- Corresponding_Spec (Node5-Sem)
10709
10710 N_Generic_Package_Renaming_Declaration =>
10711 (1 => True, -- Defining_Unit_Name (Node1)
10712 2 => True, -- Name (Node2)
10713 3 => False, -- unused
10714 4 => False, -- Parent_Spec (Node4-Sem)
10715 5 => False), -- unused
10716
10717 N_Generic_Procedure_Renaming_Declaration =>
10718 (1 => True, -- Defining_Unit_Name (Node1)
10719 2 => True, -- Name (Node2)
10720 3 => False, -- unused
10721 4 => False, -- Parent_Spec (Node4-Sem)
10722 5 => False), -- unused
10723
10724 N_Generic_Function_Renaming_Declaration =>
10725 (1 => True, -- Defining_Unit_Name (Node1)
10726 2 => True, -- Name (Node2)
10727 3 => False, -- unused
10728 4 => False, -- Parent_Spec (Node4-Sem)
10729 5 => False), -- unused
10730
10731 N_Task_Type_Declaration =>
10732 (1 => True, -- Defining_Identifier (Node1)
10733 2 => True, -- Interface_List (List2)
10734 3 => True, -- Task_Definition (Node3)
10735 4 => True, -- Discriminant_Specifications (List4)
10736 5 => False), -- Corresponding_Body (Node5-Sem)
10737
10738 N_Single_Task_Declaration =>
10739 (1 => True, -- Defining_Identifier (Node1)
10740 2 => True, -- Interface_List (List2)
10741 3 => True, -- Task_Definition (Node3)
10742 4 => False, -- unused
10743 5 => False), -- unused
10744
10745 N_Task_Definition =>
10746 (1 => False, -- unused
10747 2 => True, -- Visible_Declarations (List2)
10748 3 => True, -- Private_Declarations (List3)
10749 4 => True, -- End_Label (Node4)
10750 5 => False), -- unused
10751
10752 N_Task_Body =>
10753 (1 => True, -- Defining_Identifier (Node1)
10754 2 => True, -- Declarations (List2)
10755 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10756 4 => True, -- Handled_Statement_Sequence (Node4)
10757 5 => False), -- Corresponding_Spec (Node5-Sem)
10758
10759 N_Protected_Type_Declaration =>
10760 (1 => True, -- Defining_Identifier (Node1)
10761 2 => True, -- Interface_List (List2)
10762 3 => True, -- Protected_Definition (Node3)
10763 4 => True, -- Discriminant_Specifications (List4)
10764 5 => False), -- Corresponding_Body (Node5-Sem)
10765
10766 N_Single_Protected_Declaration =>
10767 (1 => True, -- Defining_Identifier (Node1)
10768 2 => True, -- Interface_List (List2)
10769 3 => True, -- Protected_Definition (Node3)
10770 4 => False, -- unused
10771 5 => False), -- unused
10772
10773 N_Protected_Definition =>
10774 (1 => False, -- unused
10775 2 => True, -- Visible_Declarations (List2)
10776 3 => True, -- Private_Declarations (List3)
10777 4 => True, -- End_Label (Node4)
10778 5 => False), -- unused
10779
10780 N_Protected_Body =>
10781 (1 => True, -- Defining_Identifier (Node1)
10782 2 => True, -- Declarations (List2)
10783 3 => False, -- unused
10784 4 => True, -- End_Label (Node4)
10785 5 => False), -- Corresponding_Spec (Node5-Sem)
10786
10787 N_Entry_Declaration =>
10788 (1 => True, -- Defining_Identifier (Node1)
10789 2 => False, -- unused
10790 3 => True, -- Parameter_Specifications (List3)
10791 4 => True, -- Discrete_Subtype_Definition (Node4)
10792 5 => False), -- Corresponding_Body (Node5-Sem)
10793
10794 N_Accept_Statement =>
10795 (1 => True, -- Entry_Direct_Name (Node1)
10796 2 => True, -- Declarations (List2)
10797 3 => True, -- Parameter_Specifications (List3)
10798 4 => True, -- Handled_Statement_Sequence (Node4)
10799 5 => True), -- Entry_Index (Node5)
10800
10801 N_Entry_Body =>
10802 (1 => True, -- Defining_Identifier (Node1)
10803 2 => True, -- Declarations (List2)
10804 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10805 4 => True, -- Handled_Statement_Sequence (Node4)
10806 5 => True), -- Entry_Body_Formal_Part (Node5)
10807
10808 N_Entry_Body_Formal_Part =>
10809 (1 => True, -- Condition (Node1)
10810 2 => False, -- unused
10811 3 => True, -- Parameter_Specifications (List3)
10812 4 => True, -- Entry_Index_Specification (Node4)
10813 5 => False), -- unused
10814
10815 N_Entry_Index_Specification =>
10816 (1 => True, -- Defining_Identifier (Node1)
10817 2 => False, -- unused
10818 3 => False, -- unused
10819 4 => True, -- Discrete_Subtype_Definition (Node4)
10820 5 => False), -- unused
10821
10822 N_Entry_Call_Statement =>
10823 (1 => False, -- unused
10824 2 => True, -- Name (Node2)
10825 3 => True, -- Parameter_Associations (List3)
10826 4 => False, -- First_Named_Actual (Node4-Sem)
10827 5 => False), -- unused
10828
10829 N_Requeue_Statement =>
10830 (1 => False, -- unused
10831 2 => True, -- Name (Node2)
10832 3 => False, -- unused
10833 4 => False, -- unused
10834 5 => False), -- unused
10835
10836 N_Delay_Until_Statement =>
10837 (1 => False, -- unused
10838 2 => False, -- unused
10839 3 => True, -- Expression (Node3)
10840 4 => False, -- unused
10841 5 => False), -- unused
10842
10843 N_Delay_Relative_Statement =>
10844 (1 => False, -- unused
10845 2 => False, -- unused
10846 3 => True, -- Expression (Node3)
10847 4 => False, -- unused
10848 5 => False), -- unused
10849
10850 N_Selective_Accept =>
10851 (1 => True, -- Select_Alternatives (List1)
10852 2 => False, -- unused
10853 3 => False, -- unused
10854 4 => True, -- Else_Statements (List4)
10855 5 => False), -- unused
10856
10857 N_Accept_Alternative =>
10858 (1 => True, -- Condition (Node1)
10859 2 => True, -- Accept_Statement (Node2)
10860 3 => True, -- Statements (List3)
10861 4 => True, -- Pragmas_Before (List4)
10862 5 => False), -- Accept_Handler_Records (List5-Sem)
10863
10864 N_Delay_Alternative =>
10865 (1 => True, -- Condition (Node1)
10866 2 => True, -- Delay_Statement (Node2)
10867 3 => True, -- Statements (List3)
10868 4 => True, -- Pragmas_Before (List4)
10869 5 => False), -- unused
10870
10871 N_Terminate_Alternative =>
10872 (1 => True, -- Condition (Node1)
10873 2 => False, -- unused
10874 3 => False, -- unused
10875 4 => True, -- Pragmas_Before (List4)
10876 5 => True), -- Pragmas_After (List5)
10877
10878 N_Timed_Entry_Call =>
10879 (1 => True, -- Entry_Call_Alternative (Node1)
10880 2 => False, -- unused
10881 3 => False, -- unused
10882 4 => True, -- Delay_Alternative (Node4)
10883 5 => False), -- unused
10884
10885 N_Entry_Call_Alternative =>
10886 (1 => True, -- Entry_Call_Statement (Node1)
10887 2 => False, -- unused
10888 3 => True, -- Statements (List3)
10889 4 => True, -- Pragmas_Before (List4)
10890 5 => False), -- unused
10891
10892 N_Conditional_Entry_Call =>
10893 (1 => True, -- Entry_Call_Alternative (Node1)
10894 2 => False, -- unused
10895 3 => False, -- unused
10896 4 => True, -- Else_Statements (List4)
10897 5 => False), -- unused
10898
10899 N_Asynchronous_Select =>
10900 (1 => True, -- Triggering_Alternative (Node1)
10901 2 => True, -- Abortable_Part (Node2)
10902 3 => False, -- unused
10903 4 => False, -- unused
10904 5 => False), -- unused
10905
10906 N_Triggering_Alternative =>
10907 (1 => True, -- Triggering_Statement (Node1)
10908 2 => False, -- unused
10909 3 => True, -- Statements (List3)
10910 4 => True, -- Pragmas_Before (List4)
10911 5 => False), -- unused
10912
10913 N_Abortable_Part =>
10914 (1 => False, -- unused
10915 2 => False, -- unused
10916 3 => True, -- Statements (List3)
10917 4 => False, -- unused
10918 5 => False), -- unused
10919
10920 N_Abort_Statement =>
10921 (1 => False, -- unused
10922 2 => True, -- Names (List2)
10923 3 => False, -- unused
10924 4 => False, -- unused
10925 5 => False), -- unused
10926
10927 N_Compilation_Unit =>
10928 (1 => True, -- Context_Items (List1)
10929 2 => True, -- Unit (Node2)
10930 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
10931 4 => False, -- Library_Unit (Node4-Sem)
10932 5 => True), -- Aux_Decls_Node (Node5)
10933
10934 N_Compilation_Unit_Aux =>
10935 (1 => True, -- Actions (List1)
10936 2 => True, -- Declarations (List2)
10937 3 => False, -- unused
10938 4 => True, -- Config_Pragmas (List4)
10939 5 => True), -- Pragmas_After (List5)
10940
10941 N_With_Clause =>
10942 (1 => False, -- unused
10943 2 => True, -- Name (Node2)
10944 3 => False, -- unused
10945 4 => False, -- Library_Unit (Node4-Sem)
10946 5 => False), -- Corresponding_Spec (Node5-Sem)
10947
10948 N_Subprogram_Body_Stub =>
10949 (1 => True, -- Specification (Node1)
10950 2 => False, -- unused
10951 3 => False, -- unused
10952 4 => False, -- Library_Unit (Node4-Sem)
10953 5 => False), -- Corresponding_Body (Node5-Sem)
10954
10955 N_Package_Body_Stub =>
10956 (1 => True, -- Defining_Identifier (Node1)
10957 2 => False, -- unused
10958 3 => False, -- unused
10959 4 => False, -- Library_Unit (Node4-Sem)
10960 5 => False), -- Corresponding_Body (Node5-Sem)
10961
10962 N_Task_Body_Stub =>
10963 (1 => True, -- Defining_Identifier (Node1)
10964 2 => False, -- unused
10965 3 => False, -- unused
10966 4 => False, -- Library_Unit (Node4-Sem)
10967 5 => False), -- Corresponding_Body (Node5-Sem)
10968
10969 N_Protected_Body_Stub =>
10970 (1 => True, -- Defining_Identifier (Node1)
10971 2 => False, -- unused
10972 3 => False, -- unused
10973 4 => False, -- Library_Unit (Node4-Sem)
10974 5 => False), -- Corresponding_Body (Node5-Sem)
10975
10976 N_Subunit =>
10977 (1 => True, -- Proper_Body (Node1)
10978 2 => True, -- Name (Node2)
10979 3 => False, -- Corresponding_Stub (Node3-Sem)
10980 4 => False, -- unused
10981 5 => False), -- unused
10982
10983 N_Exception_Declaration =>
10984 (1 => True, -- Defining_Identifier (Node1)
10985 2 => False, -- unused
10986 3 => False, -- Expression (Node3-Sem)
10987 4 => False, -- unused
10988 5 => False), -- unused
10989
10990 N_Handled_Sequence_Of_Statements =>
10991 (1 => True, -- At_End_Proc (Node1)
10992 2 => False, -- First_Real_Statement (Node2-Sem)
10993 3 => True, -- Statements (List3)
10994 4 => True, -- End_Label (Node4)
10995 5 => True), -- Exception_Handlers (List5)
10996
10997 N_Exception_Handler =>
10998 (1 => False, -- Local_Raise_Statements (Elist1)
10999 2 => True, -- Choice_Parameter (Node2)
11000 3 => True, -- Statements (List3)
11001 4 => True, -- Exception_Choices (List4)
11002 5 => False), -- Exception_Label (Node5)
11003
11004 N_Raise_Statement =>
11005 (1 => False, -- unused
11006 2 => True, -- Name (Node2)
11007 3 => True, -- Expression (Node3)
11008 4 => False, -- unused
11009 5 => False), -- unused
11010
11011 N_Generic_Subprogram_Declaration =>
11012 (1 => True, -- Specification (Node1)
11013 2 => True, -- Generic_Formal_Declarations (List2)
11014 3 => False, -- unused
11015 4 => False, -- Parent_Spec (Node4-Sem)
11016 5 => False), -- Corresponding_Body (Node5-Sem)
11017
11018 N_Generic_Package_Declaration =>
11019 (1 => True, -- Specification (Node1)
11020 2 => True, -- Generic_Formal_Declarations (List2)
11021 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11022 4 => False, -- Parent_Spec (Node4-Sem)
11023 5 => False), -- Corresponding_Body (Node5-Sem)
11024
11025 N_Package_Instantiation =>
11026 (1 => True, -- Defining_Unit_Name (Node1)
11027 2 => True, -- Name (Node2)
11028 3 => True, -- Generic_Associations (List3)
11029 4 => False, -- Parent_Spec (Node4-Sem)
11030 5 => False), -- Instance_Spec (Node5-Sem)
11031
11032 N_Procedure_Instantiation =>
11033 (1 => True, -- Defining_Unit_Name (Node1)
11034 2 => True, -- Name (Node2)
11035 3 => True, -- Generic_Associations (List3)
11036 4 => False, -- Parent_Spec (Node4-Sem)
11037 5 => False), -- Instance_Spec (Node5-Sem)
11038
11039 N_Function_Instantiation =>
11040 (1 => True, -- Defining_Unit_Name (Node1)
11041 2 => True, -- Name (Node2)
11042 3 => True, -- Generic_Associations (List3)
11043 4 => False, -- Parent_Spec (Node4-Sem)
11044 5 => False), -- Instance_Spec (Node5-Sem)
11045
11046 N_Generic_Association =>
11047 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
11048 2 => True, -- Selector_Name (Node2)
11049 3 => False, -- unused
11050 4 => False, -- unused
11051 5 => False), -- unused
11052
11053 N_Formal_Object_Declaration =>
11054 (1 => True, -- Defining_Identifier (Node1)
11055 2 => False, -- unused
11056 3 => True, -- Access_Definition (Node3)
11057 4 => True, -- Subtype_Mark (Node4)
11058 5 => True), -- Default_Expression (Node5)
11059
11060 N_Formal_Type_Declaration =>
11061 (1 => True, -- Defining_Identifier (Node1)
11062 2 => False, -- unused
11063 3 => True, -- Formal_Type_Definition (Node3)
11064 4 => True, -- Discriminant_Specifications (List4)
11065 5 => False), -- unused
11066
11067 N_Formal_Private_Type_Definition =>
11068 (1 => False, -- unused
11069 2 => False, -- unused
11070 3 => False, -- unused
11071 4 => False, -- unused
11072 5 => False), -- unused
11073
11074 N_Formal_Derived_Type_Definition =>
11075 (1 => False, -- unused
11076 2 => True, -- Interface_List (List2)
11077 3 => False, -- unused
11078 4 => True, -- Subtype_Mark (Node4)
11079 5 => False), -- unused
11080
11081 N_Formal_Discrete_Type_Definition =>
11082 (1 => False, -- unused
11083 2 => False, -- unused
11084 3 => False, -- unused
11085 4 => False, -- unused
11086 5 => False), -- unused
11087
11088 N_Formal_Signed_Integer_Type_Definition =>
11089 (1 => False, -- unused
11090 2 => False, -- unused
11091 3 => False, -- unused
11092 4 => False, -- unused
11093 5 => False), -- unused
11094
11095 N_Formal_Modular_Type_Definition =>
11096 (1 => False, -- unused
11097 2 => False, -- unused
11098 3 => False, -- unused
11099 4 => False, -- unused
11100 5 => False), -- unused
11101
11102 N_Formal_Floating_Point_Definition =>
11103 (1 => False, -- unused
11104 2 => False, -- unused
11105 3 => False, -- unused
11106 4 => False, -- unused
11107 5 => False), -- unused
11108
11109 N_Formal_Ordinary_Fixed_Point_Definition =>
11110 (1 => False, -- unused
11111 2 => False, -- unused
11112 3 => False, -- unused
11113 4 => False, -- unused
11114 5 => False), -- unused
11115
11116 N_Formal_Decimal_Fixed_Point_Definition =>
11117 (1 => False, -- unused
11118 2 => False, -- unused
11119 3 => False, -- unused
11120 4 => False, -- unused
11121 5 => False), -- unused
11122
11123 N_Formal_Concrete_Subprogram_Declaration =>
11124 (1 => True, -- Specification (Node1)
11125 2 => True, -- Default_Name (Node2)
11126 3 => False, -- unused
11127 4 => False, -- unused
11128 5 => False), -- unused
11129
11130 N_Formal_Abstract_Subprogram_Declaration =>
11131 (1 => True, -- Specification (Node1)
11132 2 => True, -- Default_Name (Node2)
11133 3 => False, -- unused
11134 4 => False, -- unused
11135 5 => False), -- unused
11136
11137 N_Formal_Package_Declaration =>
11138 (1 => True, -- Defining_Identifier (Node1)
11139 2 => True, -- Name (Node2)
11140 3 => True, -- Generic_Associations (List3)
11141 4 => False, -- unused
11142 5 => False), -- Instance_Spec (Node5-Sem)
11143
11144 N_Attribute_Definition_Clause =>
11145 (1 => True, -- Chars (Name1)
11146 2 => True, -- Name (Node2)
11147 3 => True, -- Expression (Node3)
11148 4 => False, -- unused
11149 5 => False), -- Next_Rep_Item (Node5-Sem)
11150
11151 N_Aspect_Specification =>
11152 (1 => True, -- Identifier (Node1)
11153 2 => False, -- Aspect_Rep_Item (Node2-Sem)
11154 3 => True, -- Expression (Node3)
11155 4 => False, -- Entity (Node4-Sem)
11156 5 => False), -- Next_Rep_Item (Node5-Sem)
11157
11158 N_Enumeration_Representation_Clause =>
11159 (1 => True, -- Identifier (Node1)
11160 2 => False, -- unused
11161 3 => True, -- Array_Aggregate (Node3)
11162 4 => False, -- unused
11163 5 => False), -- Next_Rep_Item (Node5-Sem)
11164
11165 N_Record_Representation_Clause =>
11166 (1 => True, -- Identifier (Node1)
11167 2 => True, -- Mod_Clause (Node2)
11168 3 => True, -- Component_Clauses (List3)
11169 4 => False, -- unused
11170 5 => False), -- Next_Rep_Item (Node5-Sem)
11171
11172 N_Component_Clause =>
11173 (1 => True, -- Component_Name (Node1)
11174 2 => True, -- Position (Node2)
11175 3 => True, -- First_Bit (Node3)
11176 4 => True, -- Last_Bit (Node4)
11177 5 => False), -- unused
11178
11179 N_Code_Statement =>
11180 (1 => False, -- unused
11181 2 => False, -- unused
11182 3 => True, -- Expression (Node3)
11183 4 => False, -- unused
11184 5 => False), -- unused
11185
11186 N_Op_Rotate_Left =>
11187 (1 => True, -- Chars (Name1)
11188 2 => True, -- Left_Opnd (Node2)
11189 3 => True, -- Right_Opnd (Node3)
11190 4 => False, -- Entity (Node4-Sem)
11191 5 => False), -- Etype (Node5-Sem)
11192
11193 N_Op_Rotate_Right =>
11194 (1 => True, -- Chars (Name1)
11195 2 => True, -- Left_Opnd (Node2)
11196 3 => True, -- Right_Opnd (Node3)
11197 4 => False, -- Entity (Node4-Sem)
11198 5 => False), -- Etype (Node5-Sem)
11199
11200 N_Op_Shift_Left =>
11201 (1 => True, -- Chars (Name1)
11202 2 => True, -- Left_Opnd (Node2)
11203 3 => True, -- Right_Opnd (Node3)
11204 4 => False, -- Entity (Node4-Sem)
11205 5 => False), -- Etype (Node5-Sem)
11206
11207 N_Op_Shift_Right_Arithmetic =>
11208 (1 => True, -- Chars (Name1)
11209 2 => True, -- Left_Opnd (Node2)
11210 3 => True, -- Right_Opnd (Node3)
11211 4 => False, -- Entity (Node4-Sem)
11212 5 => False), -- Etype (Node5-Sem)
11213
11214 N_Op_Shift_Right =>
11215 (1 => True, -- Chars (Name1)
11216 2 => True, -- Left_Opnd (Node2)
11217 3 => True, -- Right_Opnd (Node3)
11218 4 => False, -- Entity (Node4-Sem)
11219 5 => False), -- Etype (Node5-Sem)
11220
11221 N_Delta_Constraint =>
11222 (1 => False, -- unused
11223 2 => False, -- unused
11224 3 => True, -- Delta_Expression (Node3)
11225 4 => True, -- Range_Constraint (Node4)
11226 5 => False), -- unused
11227
11228 N_At_Clause =>
11229 (1 => True, -- Identifier (Node1)
11230 2 => False, -- unused
11231 3 => True, -- Expression (Node3)
11232 4 => False, -- unused
11233 5 => False), -- unused
11234
11235 N_Mod_Clause =>
11236 (1 => False, -- unused
11237 2 => False, -- unused
11238 3 => True, -- Expression (Node3)
11239 4 => True, -- Pragmas_Before (List4)
11240 5 => False), -- unused
11241
11242 N_Conditional_Expression =>
11243 (1 => True, -- Expressions (List1)
11244 2 => False, -- Then_Actions (List2-Sem)
11245 3 => False, -- Else_Actions (List3-Sem)
11246 4 => False, -- unused
11247 5 => False), -- Etype (Node5-Sem)
11248
11249 N_Expanded_Name =>
11250 (1 => True, -- Chars (Name1)
11251 2 => True, -- Selector_Name (Node2)
11252 3 => True, -- Prefix (Node3)
11253 4 => False, -- Entity (Node4-Sem)
11254 5 => False), -- Etype (Node5-Sem)
11255
11256 N_Expression_With_Actions =>
11257 (1 => True, -- Actions (List1)
11258 2 => False, -- unused
11259 3 => True, -- Expression (Node3)
11260 4 => False, -- unused
11261 5 => False), -- unused
11262
11263 N_Free_Statement =>
11264 (1 => False, -- Storage_Pool (Node1-Sem)
11265 2 => False, -- Procedure_To_Call (Node2-Sem)
11266 3 => True, -- Expression (Node3)
11267 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11268 5 => False), -- unused
11269
11270 N_Freeze_Entity =>
11271 (1 => True, -- Actions (List1)
11272 2 => False, -- Access_Types_To_Process (Elist2-Sem)
11273 3 => False, -- TSS_Elist (Elist3-Sem)
11274 4 => False, -- Entity (Node4-Sem)
11275 5 => False), -- First_Subtype_Link (Node5-Sem)
11276
11277 N_Implicit_Label_Declaration =>
11278 (1 => True, -- Defining_Identifier (Node1)
11279 2 => False, -- Label_Construct (Node2-Sem)
11280 3 => False, -- unused
11281 4 => False, -- unused
11282 5 => False), -- unused
11283
11284 N_Itype_Reference =>
11285 (1 => False, -- Itype (Node1-Sem)
11286 2 => False, -- unused
11287 3 => False, -- unused
11288 4 => False, -- unused
11289 5 => False), -- unused
11290
11291 N_Raise_Constraint_Error =>
11292 (1 => True, -- Condition (Node1)
11293 2 => False, -- unused
11294 3 => True, -- Reason (Uint3)
11295 4 => False, -- unused
11296 5 => False), -- Etype (Node5-Sem)
11297
11298 N_Raise_Program_Error =>
11299 (1 => True, -- Condition (Node1)
11300 2 => False, -- unused
11301 3 => True, -- Reason (Uint3)
11302 4 => False, -- unused
11303 5 => False), -- Etype (Node5-Sem)
11304
11305 N_Raise_Storage_Error =>
11306 (1 => True, -- Condition (Node1)
11307 2 => False, -- unused
11308 3 => True, -- Reason (Uint3)
11309 4 => False, -- unused
11310 5 => False), -- Etype (Node5-Sem)
11311
11312 N_Push_Constraint_Error_Label =>
11313 (1 => False, -- unused
11314 2 => False, -- unused
11315 3 => False, -- unused
11316 4 => False, -- unused
11317 5 => False), -- unused
11318
11319 N_Push_Program_Error_Label =>
11320 (1 => False, -- Exception_Label
11321 2 => False, -- unused
11322 3 => False, -- unused
11323 4 => False, -- unused
11324 5 => False), -- Exception_Label
11325
11326 N_Push_Storage_Error_Label =>
11327 (1 => False, -- Exception_Label
11328 2 => False, -- unused
11329 3 => False, -- unused
11330 4 => False, -- unused
11331 5 => False), -- Exception_Label
11332
11333 N_Pop_Constraint_Error_Label =>
11334 (1 => False, -- unused
11335 2 => False, -- unused
11336 3 => False, -- unused
11337 4 => False, -- unused
11338 5 => False), -- unused
11339
11340 N_Pop_Program_Error_Label =>
11341 (1 => False, -- unused
11342 2 => False, -- unused
11343 3 => False, -- unused
11344 4 => False, -- unused
11345 5 => False), -- unused
11346
11347 N_Pop_Storage_Error_Label =>
11348 (1 => False, -- unused
11349 2 => False, -- unused
11350 3 => False, -- unused
11351 4 => False, -- unused
11352 5 => False), -- unused
11353
11354 N_Reference =>
11355 (1 => False, -- unused
11356 2 => False, -- unused
11357 3 => True, -- Prefix (Node3)
11358 4 => False, -- unused
11359 5 => False), -- Etype (Node5-Sem)
11360
11361 N_Subprogram_Info =>
11362 (1 => True, -- Identifier (Node1)
11363 2 => False, -- unused
11364 3 => False, -- unused
11365 4 => False, -- unused
11366 5 => False), -- Etype (Node5-Sem)
11367
11368 N_Unchecked_Expression =>
11369 (1 => False, -- unused
11370 2 => False, -- unused
11371 3 => True, -- Expression (Node3)
11372 4 => False, -- unused
11373 5 => False), -- Etype (Node5-Sem)
11374
11375 N_Unchecked_Type_Conversion =>
11376 (1 => False, -- unused
11377 2 => False, -- unused
11378 3 => True, -- Expression (Node3)
11379 4 => True, -- Subtype_Mark (Node4)
11380 5 => False), -- Etype (Node5-Sem)
11381
11382 N_Validate_Unchecked_Conversion =>
11383 (1 => False, -- Source_Type (Node1-Sem)
11384 2 => False, -- Target_Type (Node2-Sem)
11385 3 => False, -- unused
11386 4 => False, -- unused
11387 5 => False), -- unused
11388
11389 -- Entries for SCIL nodes
11390
11391 N_SCIL_Dispatch_Table_Tag_Init =>
11392 (1 => False, -- unused
11393 2 => False, -- unused
11394 3 => False, -- unused
11395 4 => False, -- SCIL_Entity (Node4-Sem)
11396 5 => False), -- unused
11397
11398 N_SCIL_Dispatching_Call =>
11399 (1 => False, -- unused
11400 2 => False, -- SCIL_Target_Prim (Node2-Sem)
11401 3 => False, -- unused
11402 4 => False, -- SCIL_Entity (Node4-Sem)
11403 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
11404
11405 N_SCIL_Membership_Test =>
11406 (1 => False, -- unused
11407 2 => False, -- unused
11408 3 => False, -- unused
11409 4 => False, -- SCIL_Entity (Node4-Sem)
11410 5 => False), -- SCIL_Tag_Value (Node5-Sem)
11411
11412 -- Entries for Empty, Error and Unused. Even thought these have a Chars
11413 -- field for debugging purposes, they are not really syntactic fields, so
11414 -- we mark all fields as unused.
11415
11416 N_Empty =>
11417 (1 => False, -- unused
11418 2 => False, -- unused
11419 3 => False, -- unused
11420 4 => False, -- unused
11421 5 => False), -- unused
11422
11423 N_Error =>
11424 (1 => False, -- unused
11425 2 => False, -- unused
11426 3 => False, -- unused
11427 4 => False, -- unused
11428 5 => False), -- unused
11429
11430 N_Unused_At_Start =>
11431 (1 => False, -- unused
11432 2 => False, -- unused
11433 3 => False, -- unused
11434 4 => False, -- unused
11435 5 => False), -- unused
11436
11437 N_Unused_At_End =>
11438 (1 => False, -- unused
11439 2 => False, -- unused
11440 3 => False, -- unused
11441 4 => False, -- unused
11442 5 => False)); -- unused
11443
11444 --------------------
11445 -- Inline Pragmas --
11446 --------------------
11447
11448 pragma Inline (ABE_Is_Certain);
11449 pragma Inline (Abort_Present);
11450 pragma Inline (Abortable_Part);
11451 pragma Inline (Abstract_Present);
11452 pragma Inline (Accept_Handler_Records);
11453 pragma Inline (Accept_Statement);
11454 pragma Inline (Access_Definition);
11455 pragma Inline (Access_To_Subprogram_Definition);
11456 pragma Inline (Access_Types_To_Process);
11457 pragma Inline (Actions);
11458 pragma Inline (Activation_Chain_Entity);
11459 pragma Inline (Acts_As_Spec);
11460 pragma Inline (Actual_Designated_Subtype);
11461 pragma Inline (Address_Warning_Posted);
11462 pragma Inline (Aggregate_Bounds);
11463 pragma Inline (Aliased_Present);
11464 pragma Inline (All_Others);
11465 pragma Inline (All_Present);
11466 pragma Inline (Alternatives);
11467 pragma Inline (Ancestor_Part);
11468 pragma Inline (Array_Aggregate);
11469 pragma Inline (Aspect_Cancel);
11470 pragma Inline (Aspect_Rep_Item);
11471 pragma Inline (Assignment_OK);
11472 pragma Inline (Associated_Node);
11473 pragma Inline (At_End_Proc);
11474 pragma Inline (Attribute_Name);
11475 pragma Inline (Aux_Decls_Node);
11476 pragma Inline (Backwards_OK);
11477 pragma Inline (Bad_Is_Detected);
11478 pragma Inline (Body_To_Inline);
11479 pragma Inline (Body_Required);
11480 pragma Inline (By_Ref);
11481 pragma Inline (Box_Present);
11482 pragma Inline (Char_Literal_Value);
11483 pragma Inline (Chars);
11484 pragma Inline (Check_Address_Alignment);
11485 pragma Inline (Choice_Parameter);
11486 pragma Inline (Choices);
11487 pragma Inline (Class_Present);
11488 pragma Inline (Coextensions);
11489 pragma Inline (Comes_From_Extended_Return_Statement);
11490 pragma Inline (Compile_Time_Known_Aggregate);
11491 pragma Inline (Component_Associations);
11492 pragma Inline (Component_Clauses);
11493 pragma Inline (Component_Definition);
11494 pragma Inline (Component_Items);
11495 pragma Inline (Component_List);
11496 pragma Inline (Component_Name);
11497 pragma Inline (Componentwise_Assignment);
11498 pragma Inline (Condition);
11499 pragma Inline (Condition_Actions);
11500 pragma Inline (Config_Pragmas);
11501 pragma Inline (Constant_Present);
11502 pragma Inline (Constraint);
11503 pragma Inline (Constraints);
11504 pragma Inline (Context_Installed);
11505 pragma Inline (Context_Items);
11506 pragma Inline (Context_Pending);
11507 pragma Inline (Controlling_Argument);
11508 pragma Inline (Conversion_OK);
11509 pragma Inline (Corresponding_Body);
11510 pragma Inline (Corresponding_Formal_Spec);
11511 pragma Inline (Corresponding_Generic_Association);
11512 pragma Inline (Corresponding_Integer_Value);
11513 pragma Inline (Corresponding_Spec);
11514 pragma Inline (Corresponding_Stub);
11515 pragma Inline (Dcheck_Function);
11516 pragma Inline (Debug_Statement);
11517 pragma Inline (Declarations);
11518 pragma Inline (Default_Expression);
11519 pragma Inline (Default_Name);
11520 pragma Inline (Defining_Identifier);
11521 pragma Inline (Defining_Unit_Name);
11522 pragma Inline (Delay_Alternative);
11523 pragma Inline (Delay_Statement);
11524 pragma Inline (Delta_Expression);
11525 pragma Inline (Digits_Expression);
11526 pragma Inline (Discr_Check_Funcs_Built);
11527 pragma Inline (Discrete_Choices);
11528 pragma Inline (Discrete_Range);
11529 pragma Inline (Discrete_Subtype_Definition);
11530 pragma Inline (Discrete_Subtype_Definitions);
11531 pragma Inline (Discriminant_Specifications);
11532 pragma Inline (Discriminant_Type);
11533 pragma Inline (Do_Accessibility_Check);
11534 pragma Inline (Do_Discriminant_Check);
11535 pragma Inline (Do_Length_Check);
11536 pragma Inline (Do_Division_Check);
11537 pragma Inline (Do_Overflow_Check);
11538 pragma Inline (Do_Range_Check);
11539 pragma Inline (Do_Storage_Check);
11540 pragma Inline (Do_Tag_Check);
11541 pragma Inline (Elaborate_Present);
11542 pragma Inline (Elaborate_All_Desirable);
11543 pragma Inline (Elaborate_All_Present);
11544 pragma Inline (Elaborate_Desirable);
11545 pragma Inline (Elaboration_Boolean);
11546 pragma Inline (Else_Actions);
11547 pragma Inline (Else_Statements);
11548 pragma Inline (Elsif_Parts);
11549 pragma Inline (Enclosing_Variant);
11550 pragma Inline (End_Label);
11551 pragma Inline (End_Span);
11552 pragma Inline (Entity);
11553 pragma Inline (Entity_Or_Associated_Node);
11554 pragma Inline (Entry_Body_Formal_Part);
11555 pragma Inline (Entry_Call_Alternative);
11556 pragma Inline (Entry_Call_Statement);
11557 pragma Inline (Entry_Direct_Name);
11558 pragma Inline (Entry_Index);
11559 pragma Inline (Entry_Index_Specification);
11560 pragma Inline (Etype);
11561 pragma Inline (Exception_Choices);
11562 pragma Inline (Exception_Handlers);
11563 pragma Inline (Exception_Junk);
11564 pragma Inline (Exception_Label);
11565 pragma Inline (Expansion_Delayed);
11566 pragma Inline (Explicit_Actual_Parameter);
11567 pragma Inline (Explicit_Generic_Actual_Parameter);
11568 pragma Inline (Expression);
11569 pragma Inline (Expressions);
11570 pragma Inline (First_Bit);
11571 pragma Inline (First_Inlined_Subprogram);
11572 pragma Inline (First_Name);
11573 pragma Inline (First_Named_Actual);
11574 pragma Inline (First_Real_Statement);
11575 pragma Inline (First_Subtype_Link);
11576 pragma Inline (Float_Truncate);
11577 pragma Inline (Formal_Type_Definition);
11578 pragma Inline (Forwards_OK);
11579 pragma Inline (From_Aspect_Specification);
11580 pragma Inline (From_At_End);
11581 pragma Inline (From_At_Mod);
11582 pragma Inline (From_Default);
11583 pragma Inline (Generic_Associations);
11584 pragma Inline (Generic_Formal_Declarations);
11585 pragma Inline (Generic_Parent);
11586 pragma Inline (Generic_Parent_Type);
11587 pragma Inline (Handled_Statement_Sequence);
11588 pragma Inline (Handler_List_Entry);
11589 pragma Inline (Has_Created_Identifier);
11590 pragma Inline (Has_Dynamic_Length_Check);
11591 pragma Inline (Has_Dynamic_Range_Check);
11592 pragma Inline (Has_Init_Expression);
11593 pragma Inline (Has_Local_Raise);
11594 pragma Inline (Has_Self_Reference);
11595 pragma Inline (Has_No_Elaboration_Code);
11596 pragma Inline (Has_Priority_Pragma);
11597 pragma Inline (Has_Private_View);
11598 pragma Inline (Has_Relative_Deadline_Pragma);
11599 pragma Inline (Has_Storage_Size_Pragma);
11600 pragma Inline (Has_Task_Info_Pragma);
11601 pragma Inline (Has_Task_Name_Pragma);
11602 pragma Inline (Has_Wide_Character);
11603 pragma Inline (Has_Wide_Wide_Character);
11604 pragma Inline (Hidden_By_Use_Clause);
11605 pragma Inline (High_Bound);
11606 pragma Inline (Identifier);
11607 pragma Inline (Implicit_With);
11608 pragma Inline (Interface_List);
11609 pragma Inline (Interface_Present);
11610 pragma Inline (Includes_Infinities);
11611 pragma Inline (Import_Interface_Present);
11612 pragma Inline (In_Present);
11613 pragma Inline (Inherited_Discriminant);
11614 pragma Inline (Instance_Spec);
11615 pragma Inline (Intval);
11616 pragma Inline (Is_Accessibility_Actual);
11617 pragma Inline (Is_Asynchronous_Call_Block);
11618 pragma Inline (Is_Component_Left_Opnd);
11619 pragma Inline (Is_Component_Right_Opnd);
11620 pragma Inline (Is_Controlling_Actual);
11621 pragma Inline (Is_Delayed_Aspect);
11622 pragma Inline (Is_Dynamic_Coextension);
11623 pragma Inline (Is_Elsif);
11624 pragma Inline (Is_Entry_Barrier_Function);
11625 pragma Inline (Is_Expanded_Build_In_Place_Call);
11626 pragma Inline (Is_Folded_In_Parser);
11627 pragma Inline (Is_In_Discriminant_Check);
11628 pragma Inline (Is_Machine_Number);
11629 pragma Inline (Is_Null_Loop);
11630 pragma Inline (Is_Overloaded);
11631 pragma Inline (Is_Power_Of_2_For_Shift);
11632 pragma Inline (Is_Protected_Subprogram_Body);
11633 pragma Inline (Is_Static_Coextension);
11634 pragma Inline (Is_Static_Expression);
11635 pragma Inline (Is_Subprogram_Descriptor);
11636 pragma Inline (Is_Task_Allocation_Block);
11637 pragma Inline (Is_Task_Master);
11638 pragma Inline (Iteration_Scheme);
11639 pragma Inline (Itype);
11640 pragma Inline (Kill_Range_Check);
11641 pragma Inline (Last_Bit);
11642 pragma Inline (Last_Name);
11643 pragma Inline (Library_Unit);
11644 pragma Inline (Label_Construct);
11645 pragma Inline (Left_Opnd);
11646 pragma Inline (Limited_View_Installed);
11647 pragma Inline (Limited_Present);
11648 pragma Inline (Literals);
11649 pragma Inline (Local_Raise_Not_OK);
11650 pragma Inline (Local_Raise_Statements);
11651 pragma Inline (Loop_Actions);
11652 pragma Inline (Loop_Parameter_Specification);
11653 pragma Inline (Low_Bound);
11654 pragma Inline (Mod_Clause);
11655 pragma Inline (More_Ids);
11656 pragma Inline (Must_Be_Byte_Aligned);
11657 pragma Inline (Must_Not_Freeze);
11658 pragma Inline (Must_Not_Override);
11659 pragma Inline (Must_Override);
11660 pragma Inline (Name);
11661 pragma Inline (Names);
11662 pragma Inline (Next_Entity);
11663 pragma Inline (Next_Exit_Statement);
11664 pragma Inline (Next_Implicit_With);
11665 pragma Inline (Next_Named_Actual);
11666 pragma Inline (Next_Pragma);
11667 pragma Inline (Next_Rep_Item);
11668 pragma Inline (Next_Use_Clause);
11669 pragma Inline (No_Ctrl_Actions);
11670 pragma Inline (No_Elaboration_Check);
11671 pragma Inline (No_Entities_Ref_In_Spec);
11672 pragma Inline (No_Initialization);
11673 pragma Inline (No_Truncation);
11674 pragma Inline (Null_Present);
11675 pragma Inline (Null_Exclusion_Present);
11676 pragma Inline (Null_Exclusion_In_Return_Present);
11677 pragma Inline (Null_Record_Present);
11678 pragma Inline (Object_Definition);
11679 pragma Inline (Original_Discriminant);
11680 pragma Inline (Original_Entity);
11681 pragma Inline (Others_Discrete_Choices);
11682 pragma Inline (Out_Present);
11683 pragma Inline (Parameter_Associations);
11684 pragma Inline (Parameter_Specifications);
11685 pragma Inline (Parameter_List_Truncated);
11686 pragma Inline (Parameter_Type);
11687 pragma Inline (Parent_Spec);
11688 pragma Inline (Position);
11689 pragma Inline (Pragma_Argument_Associations);
11690 pragma Inline (Pragma_Enabled);
11691 pragma Inline (Pragma_Identifier);
11692 pragma Inline (Pragmas_After);
11693 pragma Inline (Pragmas_Before);
11694 pragma Inline (Prefix);
11695 pragma Inline (Present_Expr);
11696 pragma Inline (Prev_Ids);
11697 pragma Inline (Print_In_Hex);
11698 pragma Inline (Private_Declarations);
11699 pragma Inline (Private_Present);
11700 pragma Inline (Procedure_To_Call);
11701 pragma Inline (Proper_Body);
11702 pragma Inline (Protected_Definition);
11703 pragma Inline (Protected_Present);
11704 pragma Inline (Raises_Constraint_Error);
11705 pragma Inline (Range_Constraint);
11706 pragma Inline (Range_Expression);
11707 pragma Inline (Real_Range_Specification);
11708 pragma Inline (Realval);
11709 pragma Inline (Reason);
11710 pragma Inline (Record_Extension_Part);
11711 pragma Inline (Redundant_Use);
11712 pragma Inline (Renaming_Exception);
11713 pragma Inline (Result_Definition);
11714 pragma Inline (Return_Object_Declarations);
11715 pragma Inline (Return_Statement_Entity);
11716 pragma Inline (Reverse_Present);
11717 pragma Inline (Right_Opnd);
11718 pragma Inline (Rounded_Result);
11719 pragma Inline (SCIL_Controlling_Tag);
11720 pragma Inline (SCIL_Entity);
11721 pragma Inline (SCIL_Tag_Value);
11722 pragma Inline (SCIL_Target_Prim);
11723 pragma Inline (Scope);
11724 pragma Inline (Select_Alternatives);
11725 pragma Inline (Selector_Name);
11726 pragma Inline (Selector_Names);
11727 pragma Inline (Shift_Count_OK);
11728 pragma Inline (Source_Type);
11729 pragma Inline (Specification);
11730 pragma Inline (Statements);
11731 pragma Inline (Static_Processing_OK);
11732 pragma Inline (Storage_Pool);
11733 pragma Inline (Strval);
11734 pragma Inline (Subtype_Indication);
11735 pragma Inline (Subtype_Mark);
11736 pragma Inline (Subtype_Marks);
11737 pragma Inline (Suppress_Loop_Warnings);
11738 pragma Inline (Synchronized_Present);
11739 pragma Inline (Tagged_Present);
11740 pragma Inline (Target_Type);
11741 pragma Inline (Task_Definition);
11742 pragma Inline (Task_Present);
11743 pragma Inline (Then_Actions);
11744 pragma Inline (Then_Statements);
11745 pragma Inline (Triggering_Alternative);
11746 pragma Inline (Triggering_Statement);
11747 pragma Inline (Treat_Fixed_As_Integer);
11748 pragma Inline (TSS_Elist);
11749 pragma Inline (Type_Definition);
11750 pragma Inline (Unit);
11751 pragma Inline (Unknown_Discriminants_Present);
11752 pragma Inline (Unreferenced_In_Spec);
11753 pragma Inline (Variant_Part);
11754 pragma Inline (Variants);
11755 pragma Inline (Visible_Declarations);
11756 pragma Inline (Was_Originally_Stub);
11757 pragma Inline (Withed_Body);
11758 pragma Inline (Zero_Cost_Handling);
11759
11760 pragma Inline (Set_ABE_Is_Certain);
11761 pragma Inline (Set_Abort_Present);
11762 pragma Inline (Set_Abortable_Part);
11763 pragma Inline (Set_Abstract_Present);
11764 pragma Inline (Set_Accept_Handler_Records);
11765 pragma Inline (Set_Accept_Statement);
11766 pragma Inline (Set_Access_Definition);
11767 pragma Inline (Set_Access_To_Subprogram_Definition);
11768 pragma Inline (Set_Access_Types_To_Process);
11769 pragma Inline (Set_Actions);
11770 pragma Inline (Set_Activation_Chain_Entity);
11771 pragma Inline (Set_Acts_As_Spec);
11772 pragma Inline (Set_Actual_Designated_Subtype);
11773 pragma Inline (Set_Address_Warning_Posted);
11774 pragma Inline (Set_Aggregate_Bounds);
11775 pragma Inline (Set_Aliased_Present);
11776 pragma Inline (Set_All_Others);
11777 pragma Inline (Set_All_Present);
11778 pragma Inline (Set_Alternatives);
11779 pragma Inline (Set_Ancestor_Part);
11780 pragma Inline (Set_Array_Aggregate);
11781 pragma Inline (Set_Aspect_Cancel);
11782 pragma Inline (Set_Aspect_Rep_Item);
11783 pragma Inline (Set_Assignment_OK);
11784 pragma Inline (Set_Associated_Node);
11785 pragma Inline (Set_At_End_Proc);
11786 pragma Inline (Set_Attribute_Name);
11787 pragma Inline (Set_Aux_Decls_Node);
11788 pragma Inline (Set_Backwards_OK);
11789 pragma Inline (Set_Bad_Is_Detected);
11790 pragma Inline (Set_Body_To_Inline);
11791 pragma Inline (Set_Body_Required);
11792 pragma Inline (Set_By_Ref);
11793 pragma Inline (Set_Box_Present);
11794 pragma Inline (Set_Char_Literal_Value);
11795 pragma Inline (Set_Chars);
11796 pragma Inline (Set_Check_Address_Alignment);
11797 pragma Inline (Set_Choice_Parameter);
11798 pragma Inline (Set_Choices);
11799 pragma Inline (Set_Class_Present);
11800 pragma Inline (Set_Coextensions);
11801 pragma Inline (Set_Comes_From_Extended_Return_Statement);
11802 pragma Inline (Set_Compile_Time_Known_Aggregate);
11803 pragma Inline (Set_Component_Associations);
11804 pragma Inline (Set_Component_Clauses);
11805 pragma Inline (Set_Component_Definition);
11806 pragma Inline (Set_Component_Items);
11807 pragma Inline (Set_Component_List);
11808 pragma Inline (Set_Component_Name);
11809 pragma Inline (Set_Componentwise_Assignment);
11810 pragma Inline (Set_Condition);
11811 pragma Inline (Set_Condition_Actions);
11812 pragma Inline (Set_Config_Pragmas);
11813 pragma Inline (Set_Constant_Present);
11814 pragma Inline (Set_Constraint);
11815 pragma Inline (Set_Constraints);
11816 pragma Inline (Set_Context_Installed);
11817 pragma Inline (Set_Context_Items);
11818 pragma Inline (Set_Context_Pending);
11819 pragma Inline (Set_Controlling_Argument);
11820 pragma Inline (Set_Conversion_OK);
11821 pragma Inline (Set_Corresponding_Body);
11822 pragma Inline (Set_Corresponding_Formal_Spec);
11823 pragma Inline (Set_Corresponding_Generic_Association);
11824 pragma Inline (Set_Corresponding_Integer_Value);
11825 pragma Inline (Set_Corresponding_Spec);
11826 pragma Inline (Set_Corresponding_Stub);
11827 pragma Inline (Set_Dcheck_Function);
11828 pragma Inline (Set_Debug_Statement);
11829 pragma Inline (Set_Declarations);
11830 pragma Inline (Set_Default_Expression);
11831 pragma Inline (Set_Default_Name);
11832 pragma Inline (Set_Defining_Identifier);
11833 pragma Inline (Set_Defining_Unit_Name);
11834 pragma Inline (Set_Delay_Alternative);
11835 pragma Inline (Set_Delay_Statement);
11836 pragma Inline (Set_Delta_Expression);
11837 pragma Inline (Set_Digits_Expression);
11838 pragma Inline (Set_Discr_Check_Funcs_Built);
11839 pragma Inline (Set_Discrete_Choices);
11840 pragma Inline (Set_Discrete_Range);
11841 pragma Inline (Set_Discrete_Subtype_Definition);
11842 pragma Inline (Set_Discrete_Subtype_Definitions);
11843 pragma Inline (Set_Discriminant_Specifications);
11844 pragma Inline (Set_Discriminant_Type);
11845 pragma Inline (Set_Do_Accessibility_Check);
11846 pragma Inline (Set_Do_Discriminant_Check);
11847 pragma Inline (Set_Do_Length_Check);
11848 pragma Inline (Set_Do_Division_Check);
11849 pragma Inline (Set_Do_Overflow_Check);
11850 pragma Inline (Set_Do_Range_Check);
11851 pragma Inline (Set_Do_Storage_Check);
11852 pragma Inline (Set_Do_Tag_Check);
11853 pragma Inline (Set_Elaborate_Present);
11854 pragma Inline (Set_Elaborate_All_Desirable);
11855 pragma Inline (Set_Elaborate_All_Present);
11856 pragma Inline (Set_Elaborate_Desirable);
11857 pragma Inline (Set_Elaboration_Boolean);
11858 pragma Inline (Set_Else_Actions);
11859 pragma Inline (Set_Else_Statements);
11860 pragma Inline (Set_Elsif_Parts);
11861 pragma Inline (Set_Enclosing_Variant);
11862 pragma Inline (Set_End_Label);
11863 pragma Inline (Set_End_Span);
11864 pragma Inline (Set_Entity);
11865 pragma Inline (Set_Entry_Body_Formal_Part);
11866 pragma Inline (Set_Entry_Call_Alternative);
11867 pragma Inline (Set_Entry_Call_Statement);
11868 pragma Inline (Set_Entry_Direct_Name);
11869 pragma Inline (Set_Entry_Index);
11870 pragma Inline (Set_Entry_Index_Specification);
11871 pragma Inline (Set_Etype);
11872 pragma Inline (Set_Exception_Choices);
11873 pragma Inline (Set_Exception_Handlers);
11874 pragma Inline (Set_Exception_Junk);
11875 pragma Inline (Set_Exception_Label);
11876 pragma Inline (Set_Expansion_Delayed);
11877 pragma Inline (Set_Explicit_Actual_Parameter);
11878 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
11879 pragma Inline (Set_Expression);
11880 pragma Inline (Set_Expressions);
11881 pragma Inline (Set_First_Bit);
11882 pragma Inline (Set_First_Inlined_Subprogram);
11883 pragma Inline (Set_First_Name);
11884 pragma Inline (Set_First_Named_Actual);
11885 pragma Inline (Set_First_Real_Statement);
11886 pragma Inline (Set_First_Subtype_Link);
11887 pragma Inline (Set_Float_Truncate);
11888 pragma Inline (Set_Formal_Type_Definition);
11889 pragma Inline (Set_Forwards_OK);
11890 pragma Inline (Set_From_Aspect_Specification);
11891 pragma Inline (Set_From_At_End);
11892 pragma Inline (Set_From_At_Mod);
11893 pragma Inline (Set_From_Default);
11894 pragma Inline (Set_Generic_Associations);
11895 pragma Inline (Set_Generic_Formal_Declarations);
11896 pragma Inline (Set_Generic_Parent);
11897 pragma Inline (Set_Generic_Parent_Type);
11898 pragma Inline (Set_Handled_Statement_Sequence);
11899 pragma Inline (Set_Handler_List_Entry);
11900 pragma Inline (Set_Has_Created_Identifier);
11901 pragma Inline (Set_Has_Dynamic_Length_Check);
11902 pragma Inline (Set_Has_Init_Expression);
11903 pragma Inline (Set_Has_Local_Raise);
11904 pragma Inline (Set_Has_Dynamic_Range_Check);
11905 pragma Inline (Set_Has_No_Elaboration_Code);
11906 pragma Inline (Set_Has_Priority_Pragma);
11907 pragma Inline (Set_Has_Private_View);
11908 pragma Inline (Set_Has_Relative_Deadline_Pragma);
11909 pragma Inline (Set_Has_Storage_Size_Pragma);
11910 pragma Inline (Set_Has_Task_Info_Pragma);
11911 pragma Inline (Set_Has_Task_Name_Pragma);
11912 pragma Inline (Set_Has_Wide_Character);
11913 pragma Inline (Set_Has_Wide_Wide_Character);
11914 pragma Inline (Set_Hidden_By_Use_Clause);
11915 pragma Inline (Set_High_Bound);
11916 pragma Inline (Set_Identifier);
11917 pragma Inline (Set_Implicit_With);
11918 pragma Inline (Set_Includes_Infinities);
11919 pragma Inline (Set_Interface_List);
11920 pragma Inline (Set_Interface_Present);
11921 pragma Inline (Set_Import_Interface_Present);
11922 pragma Inline (Set_In_Present);
11923 pragma Inline (Set_Inherited_Discriminant);
11924 pragma Inline (Set_Instance_Spec);
11925 pragma Inline (Set_Intval);
11926 pragma Inline (Set_Is_Accessibility_Actual);
11927 pragma Inline (Set_Is_Asynchronous_Call_Block);
11928 pragma Inline (Set_Is_Component_Left_Opnd);
11929 pragma Inline (Set_Is_Component_Right_Opnd);
11930 pragma Inline (Set_Is_Controlling_Actual);
11931 pragma Inline (Set_Is_Delayed_Aspect);
11932 pragma Inline (Set_Is_Dynamic_Coextension);
11933 pragma Inline (Set_Is_Elsif);
11934 pragma Inline (Set_Is_Entry_Barrier_Function);
11935 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
11936 pragma Inline (Set_Is_Folded_In_Parser);
11937 pragma Inline (Set_Is_In_Discriminant_Check);
11938 pragma Inline (Set_Is_Machine_Number);
11939 pragma Inline (Set_Is_Null_Loop);
11940 pragma Inline (Set_Is_Overloaded);
11941 pragma Inline (Set_Is_Power_Of_2_For_Shift);
11942 pragma Inline (Set_Is_Protected_Subprogram_Body);
11943 pragma Inline (Set_Has_Self_Reference);
11944 pragma Inline (Set_Is_Static_Coextension);
11945 pragma Inline (Set_Is_Static_Expression);
11946 pragma Inline (Set_Is_Subprogram_Descriptor);
11947 pragma Inline (Set_Is_Task_Allocation_Block);
11948 pragma Inline (Set_Is_Task_Master);
11949 pragma Inline (Set_Iteration_Scheme);
11950 pragma Inline (Set_Itype);
11951 pragma Inline (Set_Kill_Range_Check);
11952 pragma Inline (Set_Last_Bit);
11953 pragma Inline (Set_Last_Name);
11954 pragma Inline (Set_Library_Unit);
11955 pragma Inline (Set_Label_Construct);
11956 pragma Inline (Set_Left_Opnd);
11957 pragma Inline (Set_Limited_View_Installed);
11958 pragma Inline (Set_Limited_Present);
11959 pragma Inline (Set_Literals);
11960 pragma Inline (Set_Local_Raise_Not_OK);
11961 pragma Inline (Set_Local_Raise_Statements);
11962 pragma Inline (Set_Loop_Actions);
11963 pragma Inline (Set_Loop_Parameter_Specification);
11964 pragma Inline (Set_Low_Bound);
11965 pragma Inline (Set_Mod_Clause);
11966 pragma Inline (Set_More_Ids);
11967 pragma Inline (Set_Must_Be_Byte_Aligned);
11968 pragma Inline (Set_Must_Not_Freeze);
11969 pragma Inline (Set_Must_Not_Override);
11970 pragma Inline (Set_Must_Override);
11971 pragma Inline (Set_Name);
11972 pragma Inline (Set_Names);
11973 pragma Inline (Set_Next_Entity);
11974 pragma Inline (Set_Next_Exit_Statement);
11975 pragma Inline (Set_Next_Implicit_With);
11976 pragma Inline (Set_Next_Named_Actual);
11977 pragma Inline (Set_Next_Pragma);
11978 pragma Inline (Set_Next_Rep_Item);
11979 pragma Inline (Set_Next_Use_Clause);
11980 pragma Inline (Set_No_Ctrl_Actions);
11981 pragma Inline (Set_No_Elaboration_Check);
11982 pragma Inline (Set_No_Entities_Ref_In_Spec);
11983 pragma Inline (Set_No_Initialization);
11984 pragma Inline (Set_No_Truncation);
11985 pragma Inline (Set_Null_Present);
11986 pragma Inline (Set_Null_Exclusion_Present);
11987 pragma Inline (Set_Null_Exclusion_In_Return_Present);
11988 pragma Inline (Set_Null_Record_Present);
11989 pragma Inline (Set_Object_Definition);
11990 pragma Inline (Set_Original_Discriminant);
11991 pragma Inline (Set_Original_Entity);
11992 pragma Inline (Set_Others_Discrete_Choices);
11993 pragma Inline (Set_Out_Present);
11994 pragma Inline (Set_Parameter_Associations);
11995 pragma Inline (Set_Parameter_Specifications);
11996 pragma Inline (Set_Parameter_List_Truncated);
11997 pragma Inline (Set_Parameter_Type);
11998 pragma Inline (Set_Parent_Spec);
11999 pragma Inline (Set_Position);
12000 pragma Inline (Set_Pragma_Argument_Associations);
12001 pragma Inline (Set_Pragma_Enabled);
12002 pragma Inline (Set_Pragma_Identifier);
12003 pragma Inline (Set_Pragmas_After);
12004 pragma Inline (Set_Pragmas_Before);
12005 pragma Inline (Set_Prefix);
12006 pragma Inline (Set_Present_Expr);
12007 pragma Inline (Set_Prev_Ids);
12008 pragma Inline (Set_Print_In_Hex);
12009 pragma Inline (Set_Private_Declarations);
12010 pragma Inline (Set_Private_Present);
12011 pragma Inline (Set_Procedure_To_Call);
12012 pragma Inline (Set_Proper_Body);
12013 pragma Inline (Set_Protected_Definition);
12014 pragma Inline (Set_Protected_Present);
12015 pragma Inline (Set_Raises_Constraint_Error);
12016 pragma Inline (Set_Range_Constraint);
12017 pragma Inline (Set_Range_Expression);
12018 pragma Inline (Set_Real_Range_Specification);
12019 pragma Inline (Set_Realval);
12020 pragma Inline (Set_Reason);
12021 pragma Inline (Set_Record_Extension_Part);
12022 pragma Inline (Set_Redundant_Use);
12023 pragma Inline (Set_Renaming_Exception);
12024 pragma Inline (Set_Result_Definition);
12025 pragma Inline (Set_Return_Object_Declarations);
12026 pragma Inline (Set_Reverse_Present);
12027 pragma Inline (Set_Right_Opnd);
12028 pragma Inline (Set_Rounded_Result);
12029 pragma Inline (Set_SCIL_Controlling_Tag);
12030 pragma Inline (Set_SCIL_Entity);
12031 pragma Inline (Set_SCIL_Tag_Value);
12032 pragma Inline (Set_SCIL_Target_Prim);
12033 pragma Inline (Set_Scope);
12034 pragma Inline (Set_Select_Alternatives);
12035 pragma Inline (Set_Selector_Name);
12036 pragma Inline (Set_Selector_Names);
12037 pragma Inline (Set_Shift_Count_OK);
12038 pragma Inline (Set_Source_Type);
12039 pragma Inline (Set_Specification);
12040 pragma Inline (Set_Statements);
12041 pragma Inline (Set_Static_Processing_OK);
12042 pragma Inline (Set_Storage_Pool);
12043 pragma Inline (Set_Strval);
12044 pragma Inline (Set_Subtype_Indication);
12045 pragma Inline (Set_Subtype_Mark);
12046 pragma Inline (Set_Subtype_Marks);
12047 pragma Inline (Set_Suppress_Loop_Warnings);
12048 pragma Inline (Set_Synchronized_Present);
12049 pragma Inline (Set_Tagged_Present);
12050 pragma Inline (Set_Target_Type);
12051 pragma Inline (Set_Task_Definition);
12052 pragma Inline (Set_Task_Present);
12053 pragma Inline (Set_Then_Actions);
12054 pragma Inline (Set_Then_Statements);
12055 pragma Inline (Set_Triggering_Alternative);
12056 pragma Inline (Set_Triggering_Statement);
12057 pragma Inline (Set_Treat_Fixed_As_Integer);
12058 pragma Inline (Set_TSS_Elist);
12059 pragma Inline (Set_Type_Definition);
12060 pragma Inline (Set_Unit);
12061 pragma Inline (Set_Unknown_Discriminants_Present);
12062 pragma Inline (Set_Unreferenced_In_Spec);
12063 pragma Inline (Set_Variant_Part);
12064 pragma Inline (Set_Variants);
12065 pragma Inline (Set_Visible_Declarations);
12066 pragma Inline (Set_Was_Originally_Stub);
12067 pragma Inline (Set_Withed_Body);
12068 pragma Inline (Set_Zero_Cost_Handling);
12069
12070 N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
12071 -- Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
12072 -- should refer to N_Simple_Return_Statement.
12073
12074 end Sinfo;