exp_ch5.adb, [...]: Minor reformatting.
[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 these places:
63
64 -- In sinfo.ads:
65 -- The documentation associated with the field (if semantic)
66 -- The documentation associated with the node
67 -- The spec of the access function
68 -- The spec of the set procedure
69 -- The entries in Is_Syntactic_Field
70 -- The pragma Inline for the access function
71 -- The pragma Inline for the set procedure
72 -- In sinfo.adb:
73 -- The body of the access function
74 -- The body of the set procedure
75
76 -- The field chosen must be consistent in all places, and, for a node that
77 -- is a subexpression, must not overlap any of the standard expression
78 -- fields.
79
80 -- In addition, if any of the standard expression fields is changed, then
81 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
82 -- must be updated appropriately, since it special cases expression fields.
83
84 -- If a new tree node is added, then the following changes are made
85
86 -- Add it to the documentation in the appropriate place
87 -- Add its fields to this documentation section
88 -- Define it in the appropriate classification in Node_Kind
89 -- In the body (sinfo), add entries to the access functions for all
90 -- its fields (except standard expression fields) to include the new
91 -- node in the checks.
92 -- Add an appropriate section to the case statement in sprint.adb
93 -- Add an appropriate section to the case statement in sem.adb
94 -- Add an appropriate section to the case statement in exp_util.adb
95 -- (Insert_Actions procedure)
96 -- For a subexpression, add an appropriate section to the case
97 -- statement in sem_eval.adb
98 -- For a subexpression, add an appropriate section to the case
99 -- statement in sem_res.adb
100
101 -- Finally, four utility programs must be run:
102
103 -- Run CSinfo to check that you have made the changes consistently. It
104 -- checks most of the rules given above, with clear error messages. This
105 -- utility reads sinfo.ads and sinfo.adb and generates a report to
106 -- standard output.
107
108 -- Run XSinfo to create sinfo.h, the corresponding C header. This
109 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
110 -- not need to read sinfo.adb, since the contents of the body are
111 -- algorithmically determinable from the spec.
112
113 -- Run XTreeprs to create treeprs.ads, an updated version of the module
114 -- that is used to drive the tree print routine. This utility reads (but
115 -- does not modify) treeprs.adt, the template that provides the basic
116 -- structure of the file, and then fills in the data from the comments
117 -- in sinfo.ads.
118
119 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
120 -- spec of the Nmake package which contains functions for constructing
121 -- nodes.
122
123 -- All of the above steps except CSinfo are done automatically by the
124 -- build scripts when you do a full bootstrap.
125
126 -- Note: sometime we could write a utility that actually generated the body
127 -- of sinfo from the spec instead of simply checking it, since, as noted
128 -- above, the contents of the body can be determined from the spec.
129
130 --------------------------------
131 -- Implicit Nodes in the Tree --
132 --------------------------------
133
134 -- Generally the structure of the tree very closely follows the grammar as
135 -- defined in the RM. However, certain nodes are omitted to save space and
136 -- simplify semantic processing. Two general classes of such omitted nodes
137 -- are as follows:
138
139 -- If the only possibilities for a non-terminal are one or more other
140 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
141 -- corresponding node is omitted from the tree, and the target construct
142 -- appears directly. For example, a real type definition is either
143 -- floating point definition or a fixed point definition. No explicit node
144 -- appears for real type definition. Instead either the floating point
145 -- definition or fixed point definition appears directly.
146
147 -- If a non-terminal corresponds to a list of some other non-terminal
148 -- (possibly with separating punctuation), then usually it is omitted from
149 -- the tree, and a list of components appears instead. For example,
150 -- sequence of statements does not appear explicitly in the tree. Instead
151 -- a list of statements appears directly.
152
153 -- Some additional cases of omitted nodes occur and are documented
154 -- individually. In particular, many nodes are omitted in the tree
155 -- generated for an expression.
156
157 -------------------------------------------
158 -- Handling of Defining Identifier Lists --
159 -------------------------------------------
160
161 -- In several declarative forms in the syntax, lists of defining
162 -- identifiers appear (object declarations, component declarations, number
163 -- declarations etc.)
164
165 -- The semantics of such statements are equivalent to a series of identical
166 -- declarations of single defining identifiers (except that conformance
167 -- checks require the same grouping of identifiers in the parameter case).
168
169 -- To simplify semantic processing, the parser breaks down such multiple
170 -- declaration cases into sequences of single declarations, duplicating
171 -- type and initialization information as required. The flags More_Ids and
172 -- Prev_Ids are used to record the original form of the source in the case
173 -- where the original source used a list of names, More_Ids being set on
174 -- all but the last name and Prev_Ids being set on all but the first name.
175 -- These flags are used to reconstruct the original source (e.g. in the
176 -- Sprint package), and also are included in the conformance checks, but
177 -- otherwise have no semantic significance.
178
179 -- Note: the reason that we use More_Ids and Prev_Ids rather than
180 -- First_Name and Last_Name flags is so that the flags are off in the
181 -- normal one identifier case, which minimizes tree print output.
182
183 -----------------------
184 -- Use of Node Lists --
185 -----------------------
186
187 -- With a few exceptions, if a construction of the form {non-terminal}
188 -- appears in the tree, lists are used in the corresponding tree node (see
189 -- package Nlists for handling of node lists). In this case a field of the
190 -- parent node points to a list of nodes for the non-terminal. The field
191 -- name for such fields has a plural name which always ends in "s". For
192 -- example, a case statement has a field Alternatives pointing to list of
193 -- case statement alternative nodes.
194
195 -- Only fields pointing to lists have names ending in "s", so generally the
196 -- structure is strongly typed, fields not ending in s point to single
197 -- nodes, and fields ending in s point to lists.
198
199 -- The following example shows how a traversal of a list is written. We
200 -- suppose here that Stmt points to a N_Case_Statement node which has a
201 -- list field called Alternatives:
202
203 -- Alt := First (Alternatives (Stmt));
204 -- while Present (Alt) loop
205 -- ..
206 -- -- processing for case statement alternative Alt
207 -- ..
208 -- Alt := Next (Alt);
209 -- end loop;
210
211 -- The Present function tests for Empty, which in this case signals the end
212 -- of the list. First returns Empty immediately if the list is empty.
213 -- Present is defined in Atree, First and Next are defined in Nlists.
214
215 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
216 -- contexts, which is handled as described in the previous section, and
217 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
218 -- using the First_Name and Last_Name flags, as further detailed in the
219 -- description of the N_With_Clause node.
220
221 -------------
222 -- Pragmas --
223 -------------
224
225 -- Pragmas can appear in many different context, but are not included in
226 -- the grammar. Still they must appear in the tree, so they can be properly
227 -- processed.
228
229 -- Two approaches are used. In some cases, an extra field is defined in an
230 -- appropriate node that contains a list of pragmas appearing in the
231 -- expected context. For example pragmas can appear before an
232 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
233 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
234
235 -- The other approach is to simply allow pragmas to appear in syntactic
236 -- lists where the grammar (of course) does not include the possibility.
237 -- For example, the Variants field of an N_Variant_Part node points to a
238 -- list that can contain both N_Pragma and N_Variant nodes.
239
240 -- To make processing easier in the latter case, the Nlists package
241 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
242 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
243 -- ignoring all pragmas.
244
245 -- In the case of the variants list, we can either write:
246
247 -- Variant := First (Variants (N));
248 -- while Present (Variant) loop
249 -- ...
250 -- Variant := Next (Variant);
251 -- end loop;
252
253 -- or
254
255 -- Variant := First_Non_Pragma (Variants (N));
256 -- while Present (Variant) loop
257 -- ...
258 -- Variant := Next_Non_Pragma (Variant);
259 -- end loop;
260
261 -- In the first form of the loop, Variant can either be an N_Pragma or an
262 -- N_Variant node. In the second form, Variant can only be N_Variant since
263 -- all pragmas are skipped.
264
265 ---------------------
266 -- Optional Fields --
267 ---------------------
268
269 -- Fields which correspond to a section of the syntax enclosed in square
270 -- brackets are generally omitted (and the corresponding field set to Empty
271 -- for a node, or No_List for a list). The documentation of such fields
272 -- notes these cases. One exception to this rule occurs in the case of
273 -- possibly empty statement sequences (such as the sequence of statements
274 -- in an entry call alternative). Such cases appear in the syntax rules as
275 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
276 -- statement sequences always contain an empty list (not No_List) if no
277 -- statements are present.
278
279 -- Note: the utility program that constructs the body and spec of the Nmake
280 -- package relies on the format of the comments to determine if a field
281 -- should have a default value in the corresponding make routine. The rule
282 -- is that if the first line of the description of the field contains the
283 -- string "(set to xxx if", then a default value of xxx is provided for
284 -- this field in the corresponding Make_yyy routine.
285
286 -----------------------------------
287 -- Note on Body/Spec Terminology --
288 -----------------------------------
289
290 -- In informal discussions about Ada, it is customary to refer to package
291 -- and subprogram specs and bodies. However, this is not technically
292 -- correct, what is normally referred to as a spec or specification is in
293 -- fact a package declaration or subprogram declaration. We are careful in
294 -- GNAT to use the correct terminology and in particular, the full word
295 -- specification is never used as an incorrect substitute for declaration.
296 -- The structure and terminology used in the tree also reflects the grammar
297 -- and thus uses declaration and specification in the technically correct
298 -- manner.
299
300 -- However, there are contexts in which the informal terminology is useful.
301 -- We have the word "body" to refer to the Interp_Etype declared by the
302 -- declaration of a unit body, and in some contexts we need similar term to
303 -- refer to the entity declared by the package or subprogram declaration,
304 -- and simply using declaration can be confusing since the body also has a
305 -- declaration.
306
307 -- An example of such a context is the link between the package body and
308 -- its declaration. With_Declaration is confusing, since the package body
309 -- itself is a declaration.
310
311 -- To deal with this problem, we reserve the informal term Spec, i.e. the
312 -- popular abbreviation used in this context, to refer to the entity
313 -- declared by the package or subprogram declaration. So in the above
314 -- example case, the field in the body is called With_Spec.
315
316 -- Another important context for the use of the word Spec is in error
317 -- messages, where a hyper-correct use of declaration would be confusing to
318 -- a typical Ada programmer, and even for an expert programmer can cause
319 -- confusion since the body has a declaration as well.
320
321 -- So, to summarize:
322
323 -- Declaration always refers to the syntactic entity that is called
324 -- a declaration. In particular, subprogram declaration
325 -- and package declaration are used to describe the
326 -- syntactic entity that includes the semicolon.
327
328 -- Specification always refers to the syntactic entity that is called
329 -- a specification. In particular, the terms procedure
330 -- specification, function specification, package
331 -- specification, subprogram specification always refer
332 -- to the syntactic entity that has no semicolon.
333
334 -- Spec is an informal term, used to refer to the entity
335 -- that is declared by a task declaration, protected
336 -- declaration, generic declaration, subprogram
337 -- declaration or package declaration.
338
339 -- This convention is followed throughout the GNAT documentation
340 -- both internal and external, and in all error message text.
341
342 ------------------------
343 -- Internal Use Nodes --
344 ------------------------
345
346 -- These are Node_Kind settings used in the internal implementation which
347 -- are not logically part of the specification.
348
349 -- N_Unused_At_Start
350 -- Completely unused entry at the start of the enumeration type. This
351 -- is inserted so that no legitimate value is zero, which helps to get
352 -- better debugging behavior, since zero is a likely uninitialized value).
353
354 -- N_Unused_At_End
355 -- Completely unused entry at the end of the enumeration type. This is
356 -- handy so that arrays with Node_Kind as the index type have an extra
357 -- entry at the end (see for example the use of the Pchar_Pos_Array in
358 -- Treepr, where the extra entry provides the limit value when dealing with
359 -- the last used entry in the array).
360
361 -----------------------------------------
362 -- Note on the settings of Sloc fields --
363 -----------------------------------------
364
365 -- The Sloc field of nodes that come from the source is set by the parser.
366 -- For internal nodes, and nodes generated during expansion the Sloc is
367 -- usually set in the call to the constructor for the node. In general the
368 -- Sloc value chosen for an internal node is the Sloc of the source node
369 -- whose processing is responsible for the expansion. For example, the Sloc
370 -- of an inherited primitive operation is the Sloc of the corresponding
371 -- derived type declaration.
372
373 -- For the nodes of a generic instantiation, the Sloc value is encoded to
374 -- represent both the original Sloc in the generic unit, and the Sloc of
375 -- the instantiation itself. See Sinput.ads for details.
376
377 -- Subprogram instances create two callable entities: one is the visible
378 -- subprogram instance, and the other is an anonymous subprogram nested
379 -- within a wrapper package that contains the renamings for the actuals.
380 -- Both of these entities have the Sloc of the defining entity in the
381 -- instantiation node. This simplifies some ASIS queries.
382
383 -----------------------
384 -- Field Definitions --
385 -----------------------
386
387 -- In the following node definitions, all fields, both syntactic and
388 -- semantic, are documented. The one exception is in the case of entities
389 -- (defining identifiers, character literals and operator symbols), where
390 -- the usage of the fields depends on the entity kind. Entity fields are
391 -- fully documented in the separate package Einfo.
392
393 -- In the node definitions, three common sets of fields are abbreviated to
394 -- save both space in the documentation, and also space in the string
395 -- (defined in Tree_Print_Strings) used to print trees. The following
396 -- abbreviations are used:
397
398 -- Note: the utility program that creates the Treeprs spec (in the file
399 -- xtreeprs.adb) knows about the special fields here, so it must be
400 -- modified if any change is made to these fields.
401
402 -- "plus fields for binary operator"
403 -- Chars (Name1) Name_Id for the operator
404 -- Left_Opnd (Node2) left operand expression
405 -- Right_Opnd (Node3) right operand expression
406 -- Entity (Node4-Sem) defining entity for operator
407 -- Associated_Node (Node4-Sem) for generic processing
408 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
409 -- Has_Private_View (Flag11-Sem) set in generic units.
410
411 -- "plus fields for unary operator"
412 -- Chars (Name1) Name_Id for the operator
413 -- Right_Opnd (Node3) right operand expression
414 -- Entity (Node4-Sem) defining entity for operator
415 -- Associated_Node (Node4-Sem) for generic processing
416 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
417 -- Has_Private_View (Flag11-Sem) set in generic units.
418
419 -- "plus fields for expression"
420 -- Paren_Count number of parentheses levels
421 -- Etype (Node5-Sem) type of the expression
422 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
423 -- Is_Static_Expression (Flag6-Sem) set for static expression
424 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
425 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
426 -- Do_Range_Check (Flag9-Sem) set if a range check needed
427 -- Assignment_OK (Flag15-Sem) set if modification is OK
428 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
429
430 -- Note: see under (EXPRESSION) for further details on the use of
431 -- the Paren_Count field to record the number of parentheses levels.
432
433 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
434 -- The actual definition of this type is given later (the reason for this
435 -- is that we want the descriptions ordered by logical chapter in the RM,
436 -- but the type definition is reordered to facilitate the definition of
437 -- some subtype ranges. The individual descriptions of the nodes show how
438 -- the various fields are used in each node kind, as well as providing
439 -- logical names for the fields. Functions and procedures are provided for
440 -- accessing and setting these fields using these logical names.
441
442 -----------------------
443 -- Gigi Restrictions --
444 -----------------------
445
446 -- The tree passed to Gigi is more restricted than the general tree form.
447 -- For example, as a result of expansion, most of the tasking nodes can
448 -- never appear. For each node to which either a complete or partial
449 -- restriction applies, a note entitled "Gigi restriction" appears which
450 -- documents the restriction.
451
452 -- Note that most of these restrictions apply only to trees generated when
453 -- code is being generated, since they involved expander actions that
454 -- destroy the tree.
455
456 ------------------------
457 -- Common Flag Fields --
458 ------------------------
459
460 -- The following flag fields appear in all nodes
461
462 -- Analyzed
463 -- This flag is used to indicate that a node (and all its children have
464 -- been analyzed. It is used to avoid reanalysis of a node that has
465 -- already been analyzed, both for efficiency and functional correctness
466 -- reasons.
467
468 -- Comes_From_Source
469 -- This flag is set if the node comes directly from an explicit construct
470 -- in the source. It is normally on for any nodes built by the scanner or
471 -- parser from the source program, with the exception that in a few cases
472 -- the parser adds nodes to normalize the representation (in particular
473 -- a null statement is added to a package body if there is no begin/end
474 -- initialization section.
475 --
476 -- Most nodes inserted by the analyzer or expander are not considered
477 -- as coming from source, so the flag is off for such nodes. In a few
478 -- cases, the expander constructs nodes closely equivalent to nodes
479 -- from the source program (e.g. the allocator built for build-in-place
480 -- case), and the Comes_From_Source flag is deliberately set.
481
482 -- Error_Posted
483 -- This flag is used to avoid multiple error messages being posted on or
484 -- referring to the same node. This flag is set if an error message
485 -- refers to a node or is posted on its source location, and has the
486 -- effect of inhibiting further messages involving this same node.
487
488 -- Has_Dynamic_Length_Check (Flag10-Sem)
489 -- This flag is present on all nodes. It is set to indicate that one of
490 -- the routines in unit Checks has generated a length check action which
491 -- has been inserted at the flagged node. This is used to avoid the
492 -- generation of duplicate checks.
493
494 -- Has_Dynamic_Range_Check (Flag12-Sem)
495 -- This flag is present on all nodes. It is set to indicate that one of
496 -- the routines in unit Checks has generated a range check action which
497 -- has been inserted at the flagged node. This is used to avoid the
498 -- generation of duplicate checks.
499
500 -- Has_Local_Raise (Flag8-Sem)
501 -- Present in exception handler nodes. Set if the handler can be entered
502 -- via a local raise that gets transformed to a goto statement. This will
503 -- always be set if Local_Raise_Statements is non-empty, but can also be
504 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
505 -- nodes requiring generation of back end checks.
506
507 ------------------------------------
508 -- Description of Semantic Fields --
509 ------------------------------------
510
511 -- The meaning of the syntactic fields is generally clear from their names
512 -- without any further description, since the names are chosen to
513 -- correspond very closely to the syntax in the reference manual. This
514 -- section describes the usage of the semantic fields, which are used to
515 -- contain additional information determined during semantic analysis.
516
517 -- ABE_Is_Certain (Flag18-Sem)
518 -- This flag is set in an instantiation node or a call node is determined
519 -- to be sure to raise an ABE. This is used to trigger special handling
520 -- of such cases, particularly in the instantiation case where we avoid
521 -- instantiating the body if this flag is set. This flag is also present
522 -- in an N_Formal_Package_Declaration_Node since formal package
523 -- declarations are treated like instantiations, but it is always set to
524 -- False in this context.
525
526 -- Accept_Handler_Records (List5-Sem)
527 -- This field is present only in an N_Accept_Alternative node. It is used
528 -- to temporarily hold the exception handler records from an accept
529 -- statement in a selective accept. These exception handlers will
530 -- eventually be placed in the Handler_Records list of the procedure
531 -- built for this accept (see Expand_N_Selective_Accept procedure in
532 -- Exp_Ch9 for further details).
533
534 -- Access_Types_To_Process (Elist2-Sem)
535 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
536 -- Contains the list of access types which may require specific treatment
537 -- when the nature of the type completion is completely known. An example
538 -- of such treatment is the generation of the associated_final_chain.
539
540 -- Actions (List1-Sem)
541 -- This field contains a sequence of actions that are associated with the
542 -- node holding the field. See the individual node types for details of
543 -- how this field is used, as well as the description of the specific use
544 -- for a particular node type.
545
546 -- Activation_Chain_Entity (Node3-Sem)
547 -- This is used in tree nodes representing task activators (blocks,
548 -- subprogram bodies, package declarations, and task bodies). It is
549 -- initially Empty, and then gets set to point to the entity for the
550 -- declared Activation_Chain variable when the first task is declared.
551 -- When tasks are declared in the corresponding declarative region this
552 -- entity is located by name (its name is always _Chain) and the declared
553 -- tasks are added to the chain. Note that N_Extended_Return_Statement
554 -- does not have this attribute, although it does have an activation
555 -- chain. This chain is used to store the tasks temporarily, and is not
556 -- used for activating them. On successful completion of the return
557 -- statement, the tasks are moved to the caller's chain, and the caller
558 -- activates them.
559
560 -- Acts_As_Spec (Flag4-Sem)
561 -- A flag set in the N_Subprogram_Body node for a subprogram body which
562 -- is acting as its own spec, except in the case of a library level
563 -- subprogram, in which case the flag is set on the parent compilation
564 -- unit node instead (see further description in spec of Lib package).
565 -- ??? Above note about Lib is dubious since lib.ads does not mention
566 -- Acts_As_Spec at all.
567
568 -- Actual_Designated_Subtype (Node4-Sem)
569 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
570 -- needs to known the dynamic constrained subtype of the designated
571 -- object, this attribute is set to that type. This is done for
572 -- N_Free_Statements for access-to-classwide types and access to
573 -- unconstrained packed array types, and for N_Explicit_Dereference when
574 -- the designated type is an unconstrained packed array and the
575 -- dereference is the prefix of a 'Size attribute reference.
576
577 -- Address_Warning_Posted (Flag18-Sem)
578 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
579 -- posted a warning for the address clause regarding size or alignment
580 -- issues. Used to inhibit multiple redundant messages.
581
582 -- Aggregate_Bounds (Node3-Sem)
583 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
584 -- known at compile time, this field points to an N_Range node with those
585 -- bounds. Otherwise Empty.
586
587 -- All_Others (Flag11-Sem)
588 -- Present in an N_Others_Choice node. This flag is set for an others
589 -- exception where all exceptions are to be caught, even those that are
590 -- not normally handled (in particular the tasking abort signal). This
591 -- is used for translation of the at end handler into a normal exception
592 -- handler.
593
594 -- Aspect_Cancel (Flag11-Sem)
595 -- Processing of aspect specifications typically generates pragmas and
596 -- attribute definition clauses that are inserted into the tree after
597 -- the declaration node to get the desired aspect effect. In the case
598 -- of Boolean aspects that use "=> False" to cancel the effect of an
599 -- aspect (i.e. turn if off), the generated pragma has the Aspect_Cancel
600 -- flag set to indicate that the pragma operates in the opposite sense.
601
602 -- Aspect_Rep_Item (Node2-Sem)
603 -- Present in N_Aspect_Specification nodes. Points to the corresponding
604 -- pragma/attribute definition node used to process the aspect.
605
606 -- Assignment_OK (Flag15-Sem)
607 -- This flag is set in a subexpression node for an object, indicating
608 -- that the associated object can be modified, even if this would not
609 -- normally be permissible (either by direct assignment, or by being
610 -- passed as an out or in-out parameter). This is used by the expander
611 -- for a number of purposes, including initialization of constants and
612 -- limited type objects (such as tasks), setting discriminant fields,
613 -- setting tag values, etc. N_Object_Declaration nodes also have this
614 -- flag defined. Here it is used to indicate that an initialization
615 -- expression is valid, even where it would normally not be allowed
616 -- (e.g. where the type involved is limited).
617
618 -- Associated_Node (Node4-Sem)
619 -- Present in nodes that can denote an entity: identifiers, character
620 -- literals, operator symbols, expanded names, operator nodes, and
621 -- attribute reference nodes (all these nodes have an Entity field).
622 -- This field is also present in N_Aggregate, N_Selected_Component, and
623 -- N_Extension_Aggregate nodes. This field is used in generic processing
624 -- to create links between the generic template and the generic copy.
625 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
626 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
627 -- the normal function of Entity is not required at the point where the
628 -- Associated_Node is set. Note also, that in generic templates, this
629 -- means that the Entity field does not necessarily point to an Entity.
630 -- Since the back end is expected to ignore generic templates, this is
631 -- harmless.
632
633 -- At_End_Proc (Node1)
634 -- This field is present in an N_Handled_Sequence_Of_Statements node.
635 -- It contains an identifier reference for the cleanup procedure to be
636 -- called. See description of this node for further details.
637
638 -- Backwards_OK (Flag6-Sem)
639 -- A flag present in the N_Assignment_Statement node. It is used only
640 -- if the type being assigned is an array type, and is set if analysis
641 -- determines that it is definitely safe to do the copy backwards, i.e.
642 -- starting at the highest addressed element. This is the case if either
643 -- the operands do not overlap, or they may overlap, but if they do,
644 -- then the left operand is at a higher address than the right operand.
645 --
646 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
647 -- means that the front end could not determine that either direction is
648 -- definitely safe, and a runtime check may be required if the backend
649 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
650 -- set, it means that the front end can assure no overlap of operands.
651
652 -- Body_To_Inline (Node3-Sem)
653 -- present in subprogram declarations. Denotes analyzed but unexpanded
654 -- body of subprogram, to be used when inlining calls. Present when the
655 -- subprogram has an Inline pragma and inlining is enabled. If the
656 -- declaration is completed by a renaming_as_body, and the renamed en-
657 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
658 -- which is used directly in later calls to the original subprogram.
659
660 -- Body_Required (Flag13-Sem)
661 -- A flag that appears in the N_Compilation_Unit node indicating that
662 -- the corresponding unit requires a body. For the package case, this
663 -- indicates that a completion is required. In Ada 95, if the flag is not
664 -- set for the package case, then a body may not be present. In Ada 83,
665 -- if the flag is not set for the package case, then body is optional.
666 -- For a subprogram declaration, the flag is set except in the case where
667 -- a pragma Import or Interface applies, in which case no body is
668 -- permitted (in Ada 83 or Ada 95).
669
670 -- By_Ref (Flag5-Sem)
671 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
672 -- this flag is set when the returned expression is already allocated on
673 -- the secondary stack and thus the result is passed by reference rather
674 -- than copied another time.
675
676 -- Check_Address_Alignment (Flag11-Sem)
677 -- A flag present in N_Attribute_Definition clause for a 'Address
678 -- attribute definition. This flag is set if a dynamic check should be
679 -- generated at the freeze point for the entity to which this address
680 -- clause applies. The reason that we need this flag is that we want to
681 -- check for range checks being suppressed at the point where the
682 -- attribute definition clause is given, rather than testing this at the
683 -- freeze point.
684
685 -- Coextensions (Elist4-Sem)
686 -- Present in allocators nodes. Points to list of allocators for the
687 -- access discriminants of the allocated object.
688
689 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
690 -- Present in N_Simple_Return_Statement nodes. True if this node was
691 -- constructed as part of the N_Extended_Return_Statement expansion.
692
693 -- Compile_Time_Known_Aggregate (Flag18-Sem)
694 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
695 -- evaluated at compile time without raising constraint error. Such
696 -- aggregates can be passed as is to Gigi without any expansion. See
697 -- Sem_Aggr for the specific conditions under which an aggregate has this
698 -- flag set. See also the flag Static_Processing_OK.
699
700 -- Componentwise_Assignment (Flag14-Sem)
701 -- Present in N_Assignment_Statement nodes. Set for a record assignment
702 -- where all that needs doing is to expand it into component-by-component
703 -- assignments. This is used internally for the case of tagged types with
704 -- rep clauses, where we need to avoid recursion (we don't want to try to
705 -- generate a call to the primitive operation, because this is the case
706 -- where we are compiling the primitive operation). Note that when we are
707 -- expanding component assignments in this case, we never assign the _tag
708 -- field, but we recursively assign components of the parent type.
709
710 -- Condition_Actions (List3-Sem)
711 -- This field appears in else-if nodes and in the iteration scheme node
712 -- for while loops. This field is only used during semantic processing to
713 -- temporarily hold actions inserted into the tree. In the tree passed
714 -- to gigi, the condition actions field is always set to No_List. For
715 -- details on how this field is used, see the routine Insert_Actions in
716 -- package Exp_Util, and also the expansion routines for the relevant
717 -- nodes.
718
719 -- Context_Pending (Flag16-Sem)
720 -- This field appears in Compilation_Unit nodes, to indicate that the
721 -- context of the unit is being compiled. Used to detect circularities
722 -- that are not otherwise detected by the loading mechanism. Such
723 -- circularities can occur in the presence of limited and non-limited
724 -- with_clauses that mention the same units.
725
726 -- Controlling_Argument (Node1-Sem)
727 -- This field is set in procedure and function call nodes if the call
728 -- is a dispatching call (it is Empty for a non-dispatching call). It
729 -- indicates the source of the call's controlling tag. For procedure
730 -- calls, the Controlling_Argument is one of the actuals. For function
731 -- that has a dispatching result, it is an entity in the context of the
732 -- call that can provide a tag, or else it is the tag of the root type
733 -- of the class. It can also specify a tag directly rather than being a
734 -- tagged object. The latter is needed by the implementations of AI-239
735 -- and AI-260.
736
737 -- Conversion_OK (Flag14-Sem)
738 -- A flag set on type conversion nodes to indicate that the conversion
739 -- is to be considered as being valid, even though it is the case that
740 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
741 -- Fixed_Value and Integer_Value, for internal conversions done for
742 -- fixed-point operations, and for certain conversions for calls to
743 -- initialization procedures. If Conversion_OK is set, then Etype must be
744 -- set (the analyzer assumes that Etype has been set). For the case of
745 -- fixed-point operands, it also indicates that the conversion is to be
746 -- direct conversion of the underlying integer result, with no regard to
747 -- the small operand.
748
749 -- Corresponding_Body (Node5-Sem)
750 -- This field is set in subprogram declarations, package declarations,
751 -- entry declarations of protected types, and in generic units. It
752 -- points to the defining entity for the corresponding body (NOT the
753 -- node for the body itself).
754
755 -- Corresponding_Formal_Spec (Node3-Sem)
756 -- This field is set in subprogram renaming declarations, where it points
757 -- to the defining entity for a formal subprogram in the case where the
758 -- renaming corresponds to a generic formal subprogram association in an
759 -- instantiation. The field is Empty if the renaming does not correspond
760 -- to such a formal association.
761
762 -- Corresponding_Generic_Association (Node5-Sem)
763 -- This field is defined for object declarations and object renaming
764 -- declarations. It is set for the declarations within an instance that
765 -- map generic formals to their actuals. If set, the field points to
766 -- a generic_association which is the original parent of the expression
767 -- or name appearing in the declaration. This simplifies ASIS queries.
768
769 -- Corresponding_Integer_Value (Uint4-Sem)
770 -- This field is set in real literals of fixed-point types (it is not
771 -- used for floating-point types). It contains the integer value used
772 -- to represent the fixed-point value. It is also set on the universal
773 -- real literals used to represent bounds of fixed-point base types
774 -- and their first named subtypes.
775
776 -- Corresponding_Spec (Node5-Sem)
777 -- This field is set in subprogram, package, task, and protected body
778 -- nodes, where it points to the defining entity in the corresponding
779 -- spec. The attribute is also set in N_With_Clause nodes where it points
780 -- to the defining entity for the with'ed spec, and in a subprogram
781 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
782 -- if there is no corresponding spec, as in the case of a subprogram body
783 -- that serves as its own spec.
784
785 -- Corresponding_Stub (Node3-Sem)
786 -- This field is present in an N_Subunit node. It holds the node in
787 -- the parent unit that is the stub declaration for the subunit. It is
788 -- set when analysis of the stub forces loading of the proper body. If
789 -- expansion of the proper body creates new declarative nodes, they are
790 -- inserted at the point of the corresponding_stub.
791
792 -- Dcheck_Function (Node5-Sem)
793 -- This field is present in an N_Variant node, It references the entity
794 -- for the discriminant checking function for the variant.
795
796 -- Debug_Statement (Node3)
797 -- This field is present in an N_Pragma node. It is used only for a Debug
798 -- pragma. The parameter is of the form of an expression, as required by
799 -- the pragma syntax, but is actually a procedure call. To simplify
800 -- semantic processing, the parser creates a copy of the argument
801 -- rearranged into a procedure call statement and places it in the
802 -- Debug_Statement field. Note that this field is considered syntactic
803 -- field, since it is created by the parser.
804
805 -- Default_Expression (Node5-Sem)
806 -- This field is Empty if there is no default expression. If there is a
807 -- simple default expression (one with no side effects), then this field
808 -- simply contains a copy of the Expression field (both point to the tree
809 -- for the default expression). Default_Expression is used for
810 -- conformance checking.
811
812 -- Default_Storage_Pool (Node3-Sem)
813 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
814 -- copy of Opt.Default_Pool at the end of the compilation unit. See
815 -- package Opt for details. This is used for inheriting the
816 -- Default_Storage_Pool in child units.
817
818 -- Discr_Check_Funcs_Built (Flag11-Sem)
819 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
820 -- discriminant checking functions are constructed. The purpose is to
821 -- avoid attempting to set these functions more than once.
822
823 -- Do_Accessibility_Check (Flag13-Sem)
824 -- This flag is set on N_Parameter_Specification nodes to indicate
825 -- that an accessibility check is required for the parameter. It is
826 -- not yet decided who takes care of this check (TBD ???).
827
828 -- Do_Discriminant_Check (Flag13-Sem)
829 -- This flag is set on N_Selected_Component nodes to indicate that a
830 -- discriminant check is required using the discriminant check routine
831 -- associated with the selector. The actual check is generated by the
832 -- expander when processing selected components.
833
834 -- Do_Division_Check (Flag13-Sem)
835 -- This flag is set on a division operator (/ mod rem) to indicate
836 -- that a zero divide check is required. The actual check is dealt
837 -- with by the backend (all the front end does is to set the flag).
838
839 -- Do_Length_Check (Flag4-Sem)
840 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
841 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
842 -- is required. It is not determined who deals with this flag (???).
843
844 -- Do_Overflow_Check (Flag17-Sem)
845 -- This flag is set on an operator where an overflow check is required on
846 -- the operation. The actual check is dealt with by the backend (all the
847 -- front end does is to set the flag). The other cases where this flag is
848 -- used is on a Type_Conversion node and for attribute reference nodes.
849 -- For a type conversion, it means that the conversion is from one base
850 -- type to another, and the value may not fit in the target base type.
851 -- See also the description of Do_Range_Check for this case. The only
852 -- attribute references which use this flag are Pred and Succ, where it
853 -- means that the result should be checked for going outside the base
854 -- range. Note that this flag is not set for modular types.
855
856 -- Do_Range_Check (Flag9-Sem)
857 -- This flag is set on an expression which appears in a context where a
858 -- range check is required. The target type is clear from the context.
859 -- The contexts in which this flag can appear are the following:
860
861 -- Right side of an assignment. In this case the target type is
862 -- taken from the left side of the assignment, which is referenced
863 -- by the Name of the N_Assignment_Statement node.
864
865 -- Subscript expressions in an indexed component. In this case the
866 -- target type is determined from the type of the array, which is
867 -- referenced by the Prefix of the N_Indexed_Component node.
868
869 -- Argument expression for a parameter, appearing either directly in
870 -- the Parameter_Associations list of a call or as the Expression of an
871 -- N_Parameter_Association node that appears in this list. In either
872 -- case, the check is against the type of the formal. Note that the
873 -- flag is relevant only in IN and IN OUT parameters, and will be
874 -- ignored for OUT parameters, where no check is required in the call,
875 -- and if a check is required on the return, it is generated explicitly
876 -- with a type conversion.
877
878 -- Initialization expression for the initial value in an object
879 -- declaration. In this case the Do_Range_Check flag is set on
880 -- the initialization expression, and the check is against the
881 -- range of the type of the object being declared.
882
883 -- The expression of a type conversion. In this case the range check is
884 -- against the target type of the conversion. See also the use of
885 -- Do_Overflow_Check on a type conversion. The distinction is that the
886 -- overflow check protects against a value that is outside the range of
887 -- the target base type, whereas a range check checks that the
888 -- resulting value (which is a value of the base type of the target
889 -- type), satisfies the range constraint of the target type.
890
891 -- Note: when a range check is required in contexts other than those
892 -- listed above (e.g. in a return statement), an additional type
893 -- conversion node is introduced to represent the required check.
894
895 -- Do_Storage_Check (Flag17-Sem)
896 -- This flag is set in an N_Allocator node to indicate that a storage
897 -- check is required for the allocation, or in an N_Subprogram_Body node
898 -- to indicate that a stack check is required in the subprogram prolog.
899 -- The N_Allocator case is handled by the routine that expands the call
900 -- to the runtime routine. The N_Subprogram_Body case is handled by the
901 -- backend, and all the semantics does is set the flag.
902
903 -- Do_Tag_Check (Flag13-Sem)
904 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
905 -- N_Procedure_Call_Statement, N_Type_Conversion,
906 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
907 -- node to indicate that the tag check can be suppressed. It is not
908 -- yet decided how this flag is used (TBD ???).
909
910 -- Elaborate_Present (Flag4-Sem)
911 -- This flag is set in the N_With_Clause node to indicate that pragma
912 -- Elaborate pragma appears for the with'ed units.
913
914 -- Elaborate_All_Desirable (Flag9-Sem)
915 -- This flag is set in the N_With_Clause mode to indicate that the static
916 -- elaboration processing has determined that an Elaborate_All pragma is
917 -- desirable for correct elaboration for this unit.
918
919 -- Elaborate_All_Present (Flag14-Sem)
920 -- This flag is set in the N_With_Clause node to indicate that a
921 -- pragma Elaborate_All pragma appears for the with'ed units.
922
923 -- Elaborate_Desirable (Flag11-Sem)
924 -- This flag is set in the N_With_Clause mode to indicate that the static
925 -- elaboration processing has determined that an Elaborate pragma is
926 -- desirable for correct elaboration for this unit.
927
928 -- Elaboration_Boolean (Node2-Sem)
929 -- This field is present in function and procedure specification nodes.
930 -- If set, it points to the entity for a Boolean flag that must be tested
931 -- for certain calls to check for access before elaboration. See body of
932 -- Sem_Elab for further details. This field is Empty if no elaboration
933 -- boolean is required.
934
935 -- Else_Actions (List3-Sem)
936 -- This field is present in conditional expression nodes. During code
937 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
938 -- actions at an appropriate place in the tree to get elaborated at the
939 -- right time. For conditional expressions, we have to be sure that the
940 -- actions for the Else branch are only elaborated if the condition is
941 -- False. The Else_Actions field is used as a temporary parking place for
942 -- these actions. The final tree is always rewritten to eliminate the
943 -- need for this field, so in the tree passed to Gigi, this field is
944 -- always set to No_List.
945
946 -- Enclosing_Variant (Node2-Sem)
947 -- This field is present in the N_Variant node and identifies the Node_Id
948 -- corresponding to the immediately enclosing variant when the variant is
949 -- nested, and N_Empty otherwise. Set during semantic processing of the
950 -- variant part of a record type.
951
952 -- Entity (Node4-Sem)
953 -- Appears in all direct names (identifiers, character literals, and
954 -- operator symbols), as well as expanded names, and attributes that
955 -- denote entities, such as 'Class. Points to entity for corresponding
956 -- defining occurrence. Set after name resolution. For identifiers in a
957 -- WITH list, the corresponding defining occurrence is in a separately
958 -- compiled file, and Entity must be set by the library Load procedure.
959 --
960 -- Note: During name resolution, the value in Entity may be temporarily
961 -- incorrect (e.g. during overload resolution, Entity is initially set to
962 -- the first possible correct interpretation, and then later modified if
963 -- necessary to contain the correct value after resolution).
964 --
965 -- Note: This field overlaps Associated_Node, which is used during
966 -- generic processing (see Sem_Ch12 for details). Note also that in
967 -- generic templates, this means that the Entity field does not always
968 -- point to an Entity. Since the back end is expected to ignore generic
969 -- templates, this is harmless.
970 --
971 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
972 -- It is used only for stream attributes definition clauses. In this
973 -- case, it denotes a (possibly dummy) subprogram entity that is declared
974 -- conceptually at the point of the clause. Thus the visibility of the
975 -- attribute definition clause (in the sense of 8.3(23) as amended by
976 -- AI-195) can be checked by testing the visibility of that subprogram.
977 --
978 -- Note: Normally the Entity field of an identifier points to the entity
979 -- for the corresponding defining identifier, and hence the Chars field
980 -- of an identifier will match the Chars field of the entity. However,
981 -- there is no requirement that these match, and there are obscure cases
982 -- of generated code where they do not match.
983
984 -- Entity_Or_Associated_Node (Node4-Sem)
985 -- A synonym for both Entity and Associated_Node. Used by convention in
986 -- the code when referencing this field in cases where it is not known
987 -- whether the field contains an Entity or an Associated_Node.
988
989 -- Etype (Node5-Sem)
990 -- Appears in all expression nodes, all direct names, and all entities.
991 -- Points to the entity for the related type. Set after type resolution.
992 -- Normally this is the actual subtype of the expression. However, in
993 -- certain contexts such as the right side of an assignment, subscripts,
994 -- arguments to calls, returned value in a function, initial value etc.
995 -- it is the desired target type. In the event that this is different
996 -- from the actual type, the Do_Range_Check flag will be set if a range
997 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
998 -- points to an essentially arbitrary choice from the possible set of
999 -- types.
1000
1001 -- Exception_Junk (Flag8-Sem)
1002 -- This flag is set in a various nodes appearing in a statement sequence
1003 -- to indicate that the corresponding node is an artifact of the
1004 -- generated code for exception handling, and should be ignored when
1005 -- analyzing the control flow of the relevant sequence of statements
1006 -- (e.g. to check that it does not end with a bad return statement).
1007
1008 -- Exception_Label (Node5-Sem)
1009 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1010 -- to be used for transforming the corresponding exception into a goto,
1011 -- or contains Empty, if this exception is not to be transformed. Also
1012 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1013 -- that there may be a local raise for the handler, so that expansion
1014 -- to allow a goto is required (and this field contains the label for
1015 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1016
1017 -- Expansion_Delayed (Flag11-Sem)
1018 -- Set on aggregates and extension aggregates that need a top-down rather
1019 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1020 -- up. For nested aggregates the expansion is delayed until the enclosing
1021 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1022 -- delay it we set this flag. This is done to avoid creating a temporary
1023 -- for each level of a nested aggregates, and also to prevent the
1024 -- premature generation of constraint checks. This is also a requirement
1025 -- if we want to generate the proper attachment to the internal
1026 -- finalization lists (for record with controlled components). Top down
1027 -- expansion of aggregates is also used for in-place array aggregate
1028 -- assignment or initialization. When the full context is known, the
1029 -- target of the assignment or initialization is used to generate the
1030 -- left-hand side of individual assignment to each sub-component.
1031
1032 -- First_Inlined_Subprogram (Node3-Sem)
1033 -- Present in the N_Compilation_Unit node for the main program. Points
1034 -- to a chain of entities for subprograms that are to be inlined. The
1035 -- Next_Inlined_Subprogram field of these entities is used as a link
1036 -- pointer with Empty marking the end of the list. This field is Empty
1037 -- if there are no inlined subprograms or inlining is not active.
1038
1039 -- First_Named_Actual (Node4-Sem)
1040 -- Present in procedure call statement and function call nodes, and also
1041 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1042 -- named parameter where parameters are ordered by declaration order (as
1043 -- opposed to the actual order in the call which may be different due to
1044 -- named associations). Note: this field points to the explicit actual
1045 -- parameter itself, not the N_Parameter_Association node (its parent).
1046
1047 -- First_Real_Statement (Node2-Sem)
1048 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1049 -- Empty. Used only when declarations are moved into the statement part
1050 -- of a construct as a result of wrapping an AT END handler that is
1051 -- required to cover the declarations. In this case, this field is used
1052 -- to remember the location in the statements list of the first real
1053 -- statement, i.e. the statement that used to be first in the statement
1054 -- list before the declarations were prepended.
1055
1056 -- First_Subtype_Link (Node5-Sem)
1057 -- Present in N_Freeze_Entity node for an anonymous base type that is
1058 -- implicitly created by the declaration of a first subtype. It points
1059 -- to the entity for the first subtype.
1060
1061 -- Float_Truncate (Flag11-Sem)
1062 -- A flag present in type conversion nodes. This is used for float to
1063 -- integer conversions where truncation is required rather than rounding.
1064 -- Note that Gigi does not handle type conversions from real to integer
1065 -- with rounding (see Expand_N_Type_Conversion).
1066
1067 -- Forwards_OK (Flag5-Sem)
1068 -- A flag present in the N_Assignment_Statement node. It is used only
1069 -- if the type being assigned is an array type, and is set if analysis
1070 -- determines that it is definitely safe to do the copy forwards, i.e.
1071 -- starting at the lowest addressed element. This is the case if either
1072 -- the operands do not overlap, or they may overlap, but if they do,
1073 -- then the left operand is at a lower address than the right operand.
1074 --
1075 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1076 -- means that the front end could not determine that either direction is
1077 -- definitely safe, and a runtime check may be required if the backend
1078 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1079 -- set, it means that the front end can assure no overlap of operands.
1080
1081 -- From_Aspect_Specification (Flag13-Sem)
1082 -- Processing of aspect specifications typically results in insertion in
1083 -- the tree of corresponding pragma or attribute definition clause nodes.
1084 -- These generated nodes have the From_Aspect_Specification flag set to
1085 -- indicate that they came from aspect specifications originally.
1086
1087 -- From_At_End (Flag4-Sem)
1088 -- This flag is set on an N_Raise_Statement node if it corresponds to
1089 -- the reraise statement generated as the last statement of an AT END
1090 -- handler when SJLJ exception handling is active. It is used to stop
1091 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1092 -- because if the restriction is set, the reraise is not generated.
1093
1094 -- From_At_Mod (Flag4-Sem)
1095 -- This flag is set on the attribute definition clause node that is
1096 -- generated by a transformation of an at mod phrase in a record
1097 -- representation clause. This is used to give slightly different (Ada 83
1098 -- compatible) semantics to such a clause, namely it is used to specify a
1099 -- minimum acceptable alignment for the base type and all subtypes. In
1100 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1101 -- must be a multiple of the given value, and the representation clause
1102 -- is considered to be type specific instead of subtype specific.
1103
1104 -- From_Default (Flag6-Sem)
1105 -- This flag is set on the subprogram renaming declaration created in an
1106 -- instance for a formal subprogram, when the formal is declared with a
1107 -- box, and there is no explicit actual. If the flag is present, the
1108 -- declaration is treated as an implicit reference to the formal in the
1109 -- ali file.
1110
1111 -- Generic_Parent (Node5-Sem)
1112 -- Generic_Parent is defined on declaration nodes that are instances. The
1113 -- value of Generic_Parent is the generic entity from which the instance
1114 -- is obtained. Generic_Parent is also defined for the renaming
1115 -- declarations and object declarations created for the actuals in an
1116 -- instantiation. The generic parent of such a declaration is the
1117 -- corresponding generic association in the Instantiation node.
1118
1119 -- Generic_Parent_Type (Node4-Sem)
1120 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1121 -- actuals of formal private and derived types. Within the instance, the
1122 -- operations on the actual are those inherited from the parent. For a
1123 -- formal private type, the parent type is the generic type itself. The
1124 -- Generic_Parent_Type is also used in an instance to determine whether a
1125 -- private operation overrides an inherited one.
1126
1127 -- Handler_List_Entry (Node2-Sem)
1128 -- This field is present in N_Object_Declaration nodes. It is set only
1129 -- for the Handler_Record entry generated for an exception in zero cost
1130 -- exception handling mode. It references the corresponding item in the
1131 -- handler list, and is used to delete this entry if the corresponding
1132 -- handler is deleted during optimization. For further details on why
1133 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1134
1135 -- Has_No_Elaboration_Code (Flag17-Sem)
1136 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1137 -- or not elaboration code is present for this unit. It is initially set
1138 -- true for subprogram specs and bodies and for all generic units and
1139 -- false for non-generic package specs and bodies. Gigi may set the flag
1140 -- in the non-generic package case if it determines that no elaboration
1141 -- code is generated. Note that this flag is not related to the
1142 -- Is_Preelaborated status, there can be preelaborated packages that
1143 -- generate elaboration code, and non-preelaborated packages which do
1144 -- not generate elaboration code.
1145
1146 -- Has_Pragma_CPU (Flag14-Sem)
1147 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1148 -- flag the presence of a CPU pragma in the declaration sequence (public
1149 -- or private in the task case).
1150
1151 -- Has_Pragma_Suppress_All (Flag14-Sem)
1152 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1153 -- pragma appears anywhere in the unit. This accomodates the rather
1154 -- strange placement rules of other compilers (DEC permits it at the
1155 -- end of a unit, and Rational allows it as a program unit pragma). We
1156 -- allow it anywhere at all, and consider it equivalent to a pragma
1157 -- Suppress (All_Checks) appearing at the start of the configuration
1158 -- pragmas for the unit.
1159
1160 -- Has_Pragma_Priority (Flag6-Sem)
1161 -- A flag present in N_Subprogram_Body, N_Task_Definition and
1162 -- N_Protected_Definition nodes to flag the presence of either a Priority
1163 -- or Interrupt_Priority pragma in the declaration sequence (public or
1164 -- private in the task and protected cases)
1165
1166 -- Has_Private_View (Flag11-Sem)
1167 -- A flag present in generic nodes that have an entity, to indicate that
1168 -- the node has a private type. Used to exchange private and full
1169 -- declarations if the visibility at instantiation is different from the
1170 -- visibility at generic definition.
1171
1172 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1173 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1174 -- flag the presence of a pragma Relative_Deadline.
1175
1176 -- Has_Self_Reference (Flag13-Sem)
1177 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1178 -- of the expressions contains an access attribute reference to the
1179 -- enclosing type. Such a self-reference can only appear in default-
1180 -- initialized aggregate for a record type.
1181
1182 -- Has_Storage_Size_Pragma (Flag5-Sem)
1183 -- A flag present in an N_Task_Definition node to flag the presence of a
1184 -- Storage_Size pragma.
1185
1186 -- Has_Task_Info_Pragma (Flag7-Sem)
1187 -- A flag present in an N_Task_Definition node to flag the presence of a
1188 -- Task_Info pragma. Used to detect duplicate pragmas.
1189
1190 -- Has_Task_Name_Pragma (Flag8-Sem)
1191 -- A flag present in N_Task_Definition nodes to flag the presence of a
1192 -- Task_Name pragma in the declaration sequence for the task.
1193
1194 -- Has_Wide_Character (Flag11-Sem)
1195 -- Present in string literals, set if any wide character (i.e. character
1196 -- code outside the Character range but within Wide_Character range)
1197 -- appears in the string. Used to implement pragma preference rules.
1198
1199 -- Has_Wide_Wide_Character (Flag13-Sem)
1200 -- Present in string literals, set if any wide character (i.e. character
1201 -- code outside the Wide_Character range) appears in the string. Used to
1202 -- implement pragma preference rules.
1203
1204 -- Hidden_By_Use_Clause (Elist4-Sem)
1205 -- An entity list present in use clauses that appear within
1206 -- instantiations. For the resolution of local entities, entities
1207 -- introduced by these use clauses have priority over global ones, and
1208 -- outer entities must be explicitly hidden/restored on exit.
1209
1210 -- Implicit_With (Flag16-Sem)
1211 -- This flag is set in the N_With_Clause node that is implicitly
1212 -- generated for runtime units that are loaded by the expander, and also
1213 -- for package System, if it is loaded implicitly by a use of the
1214 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1215 -- as well.
1216
1217 -- Import_Interface_Present (Flag16-Sem)
1218 -- This flag is set in an Interface or Import pragma if a matching
1219 -- pragma of the other kind is also present. This is used to avoid
1220 -- generating some unwanted error messages.
1221
1222 -- Includes_Infinities (Flag11-Sem)
1223 -- This flag is present in N_Range nodes. It is set for the range of
1224 -- unconstrained float types defined in Standard, which include not only
1225 -- the given range of values, but also legitimately can include infinite
1226 -- values. This flag is false for any float type for which an explicit
1227 -- range is given by the programmer, even if that range is identical to
1228 -- the range for Float.
1229
1230 -- Inherited_Discriminant (Flag13-Sem)
1231 -- This flag is present in N_Component_Association nodes. It indicates
1232 -- that a given component association in an extension aggregate is the
1233 -- value obtained from a constraint on an ancestor. Used to prevent
1234 -- double expansion when the aggregate has expansion delayed.
1235
1236 -- Instance_Spec (Node5-Sem)
1237 -- This field is present in generic instantiation nodes, and also in
1238 -- formal package declaration nodes (formal package declarations are
1239 -- treated in a manner very similar to package instantiations). It points
1240 -- to the node for the spec of the instance, inserted as part of the
1241 -- semantic processing for instantiations in Sem_Ch12.
1242
1243 -- Is_Accessibility_Actual (Flag12-Sem)
1244 -- Present in N_Parameter_Association nodes. True if the parameter is
1245 -- an extra actual that carries the accessibility level of the actual
1246 -- for an access parameter, in a function that dispatches on result and
1247 -- is called in a dispatching context. Used to prevent a formal/actual
1248 -- mismatch when the call is rewritten as a dispatching call.
1249
1250 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1251 -- A flag set in a Block_Statement node to indicate that it is the
1252 -- expansion of an asynchronous entry call. Such a block needs cleanup
1253 -- handler to assure that the call is cancelled.
1254
1255 -- Is_Component_Left_Opnd (Flag13-Sem)
1256 -- Is_Component_Right_Opnd (Flag14-Sem)
1257 -- Present in concatenation nodes, to indicate that the corresponding
1258 -- operand is of the component type of the result. Used in resolving
1259 -- concatenation nodes in instances.
1260
1261 -- Is_Delayed_Aspect (Flag14-Sem)
1262 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1263 -- come from aspect specifications, where the evaluation of the aspect
1264 -- must be delayed to the freeze point.
1265
1266 -- Is_Controlling_Actual (Flag16-Sem)
1267 -- This flag is set on in an expression that is a controlling argument in
1268 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1269 -- details of its use.
1270
1271 -- Is_Dynamic_Coextension (Flag18-Sem)
1272 -- Present in allocator nodes, to indicate that this is an allocator
1273 -- for an access discriminant of a dynamically allocated object. The
1274 -- coextension must be deallocated and finalized at the same time as
1275 -- the enclosing object.
1276
1277 -- Is_Entry_Barrier_Function (Flag8-Sem)
1278 -- This flag is set in an N_Subprogram_Body node which is the expansion
1279 -- of an entry barrier from a protected entry body. It is used for the
1280 -- circuitry checking for incorrect use of Current_Task.
1281
1282 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1283 -- This flag is set in an N_Function_Call node to indicate that the extra
1284 -- actuals to support a build-in-place style of call have been added to
1285 -- the call.
1286
1287 -- Is_In_Discriminant_Check (Flag11-Sem)
1288 -- This flag is present in a selected component, and is used to indicate
1289 -- that the reference occurs within a discriminant check. The
1290 -- significance is that optimizations based on assuming that the
1291 -- discriminant check has a correct value cannot be performed in this
1292 -- case (or the discriminant check may be optimized away!)
1293
1294 -- Is_Machine_Number (Flag11-Sem)
1295 -- This flag is set in an N_Real_Literal node to indicate that the value
1296 -- is a machine number. This avoids some unnecessary cases of converting
1297 -- real literals to machine numbers.
1298
1299 -- Is_Null_Loop (Flag16-Sem)
1300 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1301 -- can be determined to be null at compile time. This is used to remove
1302 -- the loop entirely at expansion time.
1303
1304 -- Is_Overloaded (Flag5-Sem)
1305 -- A flag present in all expression nodes. Used temporarily during
1306 -- overloading determination. The setting of this flag is not relevant
1307 -- once overloading analysis is complete.
1308
1309 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1310 -- A flag present only in N_Op_Expon nodes. It is set when the
1311 -- exponentiation is of the form 2 ** N, where the type of N is an
1312 -- unsigned integral subtype whose size does not exceed the size of
1313 -- Standard_Integer (i.e. a type that can be safely converted to
1314 -- Natural), and the exponentiation appears as the right operand of an
1315 -- integer multiplication or an integer division where the dividend is
1316 -- unsigned. It is also required that overflow checking is off for both
1317 -- the exponentiation and the multiply/divide node. If this set of
1318 -- conditions holds, and the flag is set, then the division or
1319 -- multiplication can be (and is) converted to a shift.
1320
1321 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1322 -- A flag set in a Subprogram_Body block to indicate that it is the
1323 -- implementation of a protected subprogram. Such a body needs cleanup
1324 -- handler to make sure that the associated protected object is unlocked
1325 -- when the subprogram completes.
1326
1327 -- Is_Static_Coextension (Flag14-Sem)
1328 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1329 -- of an object allocated on the stack rather than the heap.
1330
1331 -- Is_Static_Expression (Flag6-Sem)
1332 -- Indicates that an expression is a static expression (RM 4.9). See spec
1333 -- of package Sem_Eval for full details on the use of this flag.
1334
1335 -- Is_Subprogram_Descriptor (Flag16-Sem)
1336 -- Present in N_Object_Declaration, and set only for the object
1337 -- declaration generated for a subprogram descriptor in fast exception
1338 -- mode. See Exp_Ch11 for details of use.
1339
1340 -- Is_Task_Allocation_Block (Flag6-Sem)
1341 -- A flag set in a Block_Statement node to indicate that it is the
1342 -- expansion of a task allocator, or the allocator of an object
1343 -- containing tasks. Such a block requires a cleanup handler to call
1344 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1345 -- allocated but not activated when the allocator completes abnormally.
1346
1347 -- Is_Task_Master (Flag5-Sem)
1348 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1349 -- indicate that the construct is a task master (i.e. has declared tasks
1350 -- or declares an access to a task type).
1351
1352 -- Itype (Node1-Sem)
1353 -- Used in N_Itype_Reference node to reference an itype for which it is
1354 -- important to ensure that it is defined. See description of this node
1355 -- for further details.
1356
1357 -- Kill_Range_Check (Flag11-Sem)
1358 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1359 -- result should not be subjected to range checks. This is used for the
1360 -- implementation of Normalize_Scalars.
1361
1362 -- Label_Construct (Node2-Sem)
1363 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1364 -- N_Block_Statement or N_Loop_Statement node to which the label
1365 -- declaration applies. This is not currently used in the compiler
1366 -- itself, but it is useful in the implementation of ASIS queries.
1367 -- This field is left empty for the special labels generated as part
1368 -- of expanding raise statements with a local exception handler.
1369
1370 -- Library_Unit (Node4-Sem)
1371 -- In a stub node, Library_Unit points to the compilation unit node of
1372 -- the corresponding subunit.
1373 --
1374 -- In a with clause node, Library_Unit points to the spec of the with'ed
1375 -- unit.
1376 --
1377 -- In a compilation unit node, the usage depends on the unit type:
1378 --
1379 -- For a library unit body, Library_Unit points to the compilation unit
1380 -- node of the corresponding spec, unless it's a subprogram body with
1381 -- Acts_As_Spec set, in which case it points to itself.
1382 --
1383 -- For a spec, Library_Unit points to the compilation unit node of the
1384 -- corresponding body, if present. The body will be present if the spec
1385 -- is or contains generics that we needed to instantiate. Similarly, the
1386 -- body will be present if we needed it for inlining purposes. Thus, if
1387 -- we have a spec/body pair, both of which are present, they point to
1388 -- each other via Library_Unit.
1389 --
1390 -- For a subunit, Library_Unit points to the compilation unit node of
1391 -- the parent body.
1392 --
1393 -- Note that this field is not used to hold the parent pointer for child
1394 -- unit (which might in any case need to use it for some other purpose as
1395 -- described above). Instead for a child unit, implicit with's are
1396 -- generated for all parents.
1397
1398 -- Local_Raise_Statements (Elist1)
1399 -- This field is present in exception handler nodes. It is set to
1400 -- No_Elist in the normal case. If there is at least one raise statement
1401 -- which can potentially be handled as a local raise, then this field
1402 -- points to a list of raise nodes, which are calls to a routine to raise
1403 -- an exception. These are raise nodes which can be optimized into gotos
1404 -- if the handler turns out to meet the conditions which permit this
1405 -- transformation. Note that this does NOT include instances of the
1406 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1407 -- handled by the back end (using the N_Push/N_Pop mechanism).
1408
1409 -- Loop_Actions (List2-Sem)
1410 -- A list present in Component_Association nodes in array aggregates.
1411 -- Used to collect actions that must be executed within the loop because
1412 -- they may need to be evaluated anew each time through.
1413
1414 -- Limited_View_Installed (Flag18-Sem)
1415 -- Present in With_Clauses and in package specifications. If set on
1416 -- with_clause, it indicates that this clause has created the current
1417 -- limited view of the designated package. On a package specification, it
1418 -- indicates that the limited view has already been created because the
1419 -- package is mentioned in a limited_with_clause in the closure of the
1420 -- unit being compiled.
1421
1422 -- Local_Raise_Not_OK (Flag7-Sem)
1423 -- Present in N_Exception_Handler nodes. Set if the handler contains
1424 -- a construct (reraise statement, or call to subprogram in package
1425 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1426 -- for a local raise (one that could otherwise be converted to a goto).
1427
1428 -- Must_Be_Byte_Aligned (Flag14-Sem)
1429 -- This flag is present in N_Attribute_Reference nodes. It can be set
1430 -- only for the Address and Unrestricted_Access attributes. If set it
1431 -- means that the object for which the address/access is given must be on
1432 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1433 -- of the object is to be made before taking the address (this copy is in
1434 -- the current scope on the stack frame). This is used for certain cases
1435 -- of code generated by the expander that passes parameters by address.
1436 --
1437 -- The reason the copy is not made by the front end is that the back end
1438 -- has more information about type layout and may be able to (but is not
1439 -- guaranteed to) prevent making unnecessary copies.
1440
1441 -- Must_Not_Freeze (Flag8-Sem)
1442 -- A flag present in all expression nodes. Normally expressions cause
1443 -- freezing as described in the RM. If this flag is set, then this is
1444 -- inhibited. This is used by the analyzer and expander to label nodes
1445 -- that are created by semantic analysis or expansion and which must not
1446 -- cause freezing even though they normally would. This flag is also
1447 -- present in an N_Subtype_Indication node, since we also use these in
1448 -- calls to Freeze_Expression.
1449
1450 -- Next_Entity (Node2-Sem)
1451 -- Present in defining identifiers, defining character literals and
1452 -- defining operator symbols (i.e. in all entities). The entities of a
1453 -- scope are chained, and this field is used as the forward pointer for
1454 -- this list. See Einfo for further details.
1455
1456 -- Next_Exit_Statement (Node3-Sem)
1457 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1458 -- chained (in reverse order of appearence) from the First_Exit_Statement
1459 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1460 -- the next entry on this chain (Empty = end of list).
1461
1462 -- Next_Implicit_With (Node3-Sem)
1463 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1464 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1465 -- to prevent multiple with_clauses for the same unit in a given context.
1466 -- A postorder traversal of the tree whose nodes are units and whose
1467 -- links are with_clauses defines the order in which Inspector must
1468 -- examine a compiled unit and its full context. This ordering ensures
1469 -- that any subprogram call is examined after the subprogram declartion
1470 -- has been seen.
1471
1472 -- Next_Named_Actual (Node4-Sem)
1473 -- Present in parameter association node. Set during semantic analysis to
1474 -- point to the next named parameter, where parameters are ordered by
1475 -- declaration order (as opposed to the actual order in the call, which
1476 -- may be different due to named associations). Not that this field
1477 -- points to the explicit actual parameter itself, not to the
1478 -- N_Parameter_Association node (its parent).
1479
1480 -- Next_Pragma (Node1-Sem)
1481 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1482 -- nodes. Currently used for two purposes:
1483 --
1484 -- Create a list of linked Check_Policy pragmas. The head of this list
1485 -- is stored in Opt.Check_Policy_List (which has further details).
1486 --
1487 -- Used by processing for Pre/Postcondition pragmas to store a list of
1488 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1489 -- details).
1490
1491 -- Next_Rep_Item (Node5-Sem)
1492 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1493 -- clauses, record rep clauses, aspect specification nodes. Used to link
1494 -- representation items that apply to an entity. See full description of
1495 -- First_Rep_Item field in Einfo for further details.
1496
1497 -- Next_Use_Clause (Node3-Sem)
1498 -- While use clauses are active during semantic processing, they are
1499 -- chained from the scope stack entry, using Next_Use_Clause as a link
1500 -- pointer, with Empty marking the end of the list. The head pointer is
1501 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1502 -- processing (i.e. when Gigi sees the tree, the contents of this field
1503 -- is undefined and should not be read).
1504
1505 -- No_Ctrl_Actions (Flag7-Sem)
1506 -- Present in N_Assignment_Statement to indicate that no finalize nor
1507 -- adjust should take place on this assignment even though the rhs is
1508 -- controlled. This is used in init procs and aggregate expansions where
1509 -- the generated assignments are more initialisations than real
1510 -- assignments.
1511
1512 -- No_Elaboration_Check (Flag14-Sem)
1513 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1514 -- that no elaboration check is needed on the call, because it appears in
1515 -- the context of a local Suppress pragma. This is used on calls within
1516 -- task bodies, where the actual elaboration checks are applied after
1517 -- analysis, when the local scope stack is not present.
1518
1519 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1520 -- Present in N_With_Clause nodes. Set if the with clause is on the
1521 -- package or subprogram spec where the main unit is the corresponding
1522 -- body, and no entities of the with'ed unit are referenced by the spec
1523 -- (an entity may still be referenced in the body, so this flag is used
1524 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1525 -- full details)
1526
1527 -- No_Initialization (Flag13-Sem)
1528 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1529 -- object must not be initialized (by Initialize or call to an init
1530 -- proc). This is needed for controlled aggregates. When the Object
1531 -- declaration has an expression, this flag means that this expression
1532 -- should not be taken into account (needed for in place initialization
1533 -- with aggregates).
1534
1535 -- No_Truncation (Flag17-Sem)
1536 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1537 -- only if the RM_Size of the source is greater than the RM_Size of the
1538 -- target for scalar operands. Normally in such a case we truncate some
1539 -- higher order bits of the source, and then sign/zero extend the result
1540 -- to form the output value. But if this flag is set, then we do not do
1541 -- any truncation, so for example, if an 8 bit input is converted to 5
1542 -- bit result which is in fact stored in 8 bits, then the high order
1543 -- three bits of the target result will be copied from the source. This
1544 -- is used for properly setting out of range values for use by pragmas
1545 -- Initialize_Scalars and Normalize_Scalars.
1546
1547 -- Original_Discriminant (Node2-Sem)
1548 -- Present in identifiers. Used in references to discriminants that
1549 -- appear in generic units. Because the names of the discriminants may be
1550 -- different in an instance, we use this field to recover the position of
1551 -- the discriminant in the original type, and replace it with the
1552 -- discriminant at the same position in the instantiated type.
1553
1554 -- Original_Entity (Node2-Sem)
1555 -- Present in numeric literals. Used to denote the named number that has
1556 -- been constant-folded into the given literal. If literal is from
1557 -- source, or the result of some other constant-folding operation, then
1558 -- Original_Entity is empty. This field is needed to handle properly
1559 -- named numbers in generic units, where the Associated_Node field
1560 -- interferes with the Entity field, making it impossible to preserve the
1561 -- original entity at the point of instantiation (ASIS problem).
1562
1563 -- Others_Discrete_Choices (List1-Sem)
1564 -- When a case statement or variant is analyzed, the semantic checks
1565 -- determine the actual list of choices that correspond to an others
1566 -- choice. This list is materialized for later use by the expander and
1567 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1568 -- this materialized list of choices, which is in standard format for a
1569 -- list of discrete choices, except that of course it cannot contain an
1570 -- N_Others_Choice entry.
1571
1572 -- Parameter_List_Truncated (Flag17-Sem)
1573 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1574 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1575 -- a result of a First_Optional_Parameter specification in an
1576 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1577 -- The truncation is done by the expander by removing trailing parameters
1578 -- from the argument list, in accordance with the set of rules allowing
1579 -- such parameter removal. In particular, parameters can be removed
1580 -- working from the end of the parameter list backwards up to and
1581 -- including the entry designated by First_Optional_Parameter in the
1582 -- Import pragma. Parameters can be removed if they are implicit and the
1583 -- default value is a known-at-compile-time value, including the use of
1584 -- the Null_Parameter attribute, or if explicit parameter values are
1585 -- present that match the corresponding defaults.
1586
1587 -- Parent_Spec (Node4-Sem)
1588 -- For a library unit that is a child unit spec (package or subprogram
1589 -- declaration, generic declaration or instantiation, or library level
1590 -- rename, this field points to the compilation unit node for the parent
1591 -- package specification. This field is Empty for library bodies (the
1592 -- parent spec in this case can be found from the corresponding spec).
1593
1594 -- Pragma_Enabled (Flag5-Sem)
1595 -- Present in N_Pragma nodes. This flag is relevant only for pragmas
1596 -- Assert, Check, Precondition, and Postcondition. It is true if the
1597 -- check corresponding to the pragma type is enabled at the point where
1598 -- the pragma appears.
1599
1600 -- Present_Expr (Uint3-Sem)
1601 -- Present in an N_Variant node. This has a meaningful value only after
1602 -- Gigi has back annotated the tree with representation information. At
1603 -- this point, it contains a reference to a gcc expression that depends
1604 -- on the values of one or more discriminants. Give a set of discriminant
1605 -- values, this expression evaluates to False (zero) if variant is not
1606 -- present, and True (non-zero) if it is present. See unit Repinfo for
1607 -- further details on gigi back annotation. This field is used during
1608 -- ASIS processing (data decomposition annex) to determine if a field is
1609 -- present or not.
1610
1611 -- Print_In_Hex (Flag13-Sem)
1612 -- Set on an N_Integer_Literal node to indicate that the value should be
1613 -- printed in hexadecimal in the sprint listing. Has no effect on
1614 -- legality or semantics of program, only on the displayed output. This
1615 -- is used to clarify output from the packed array cases.
1616
1617 -- Procedure_To_Call (Node2-Sem)
1618 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1619 -- and N_Extended_Return_Statement nodes. References the entity for the
1620 -- declaration of the procedure to be called to accomplish the required
1621 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1622 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1623 -- allocating the return value), and for the Deallocate procedure in the
1624 -- case of N_Free_Statement.
1625
1626 -- Raises_Constraint_Error (Flag7-Sem)
1627 -- Set on an expression whose evaluation will definitely fail constraint
1628 -- error check. In the case of static expressions, this flag must be set
1629 -- accurately (and if it is set, the expression is typically illegal
1630 -- unless it appears as a non-elaborated branch of a short-circuit form).
1631 -- For a non-static expression, this flag may be set whenever an
1632 -- expression (e.g. an aggregate) is known to raise constraint error. If
1633 -- set, the expression definitely will raise CE if elaborated at runtime.
1634 -- If not set, the expression may or may not raise CE. In other words, on
1635 -- static expressions, the flag is set accurately, on non-static
1636 -- expressions it is set conservatively.
1637
1638 -- Redundant_Use (Flag13-Sem)
1639 -- Present in nodes that can appear as an operand in a use clause or use
1640 -- type clause (identifiers, expanded names, attribute references). Set
1641 -- to indicate that a use is redundant (and therefore need not be undone
1642 -- on scope exit).
1643
1644 -- Renaming_Exception (Node2-Sem)
1645 -- Present in N_Exception_Declaration node. Used to point back to the
1646 -- exception renaming for an exception declared within a subprogram.
1647 -- What happens is that an exception declared in a subprogram is moved
1648 -- to the library level with a unique name, and the original exception
1649 -- becomes a renaming. This link from the library level exception to the
1650 -- renaming declaration allows registering of the proper exception name.
1651
1652 -- Return_Statement_Entity (Node5-Sem)
1653 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1654 -- Points to an E_Return_Statement representing the return statement.
1655
1656 -- Return_Object_Declarations (List3)
1657 -- Present in N_Extended_Return_Statement.
1658 -- Points to a list initially containing a single
1659 -- N_Object_Declaration representing the return object.
1660 -- We use a list (instead of just a pointer to the object decl)
1661 -- because Analyze wants to insert extra actions on this list.
1662
1663 -- Rounded_Result (Flag18-Sem)
1664 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1665 -- Used in the fixed-point cases to indicate that the result must be
1666 -- rounded as a result of the use of the 'Round attribute. Also used for
1667 -- integer N_Op_Divide nodes to indicate that the result should be
1668 -- rounded to the nearest integer (breaking ties away from zero), rather
1669 -- than truncated towards zero as usual. These rounded integer operations
1670 -- are the result of expansion of rounded fixed-point divide, conversion
1671 -- and multiplication operations.
1672
1673 -- SCIL_Entity (Node4-Sem)
1674 -- Present in SCIL nodes. Used to reference the tagged type associated
1675 -- with the SCIL node.
1676
1677 -- SCIL_Controlling_Tag (Node5-Sem)
1678 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the
1679 -- controlling tag of a dispatching call.
1680
1681 -- SCIL_Tag_Value (Node5-Sem)
1682 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1683 -- value that is being tested.
1684
1685 -- SCIL_Target_Prim (Node2-Sem)
1686 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the tagged
1687 -- type primitive associated with the SCIL node.
1688
1689 -- Scope (Node3-Sem)
1690 -- Present in defining identifiers, defining character literals and
1691 -- defining operator symbols (i.e. in all entities). The entities of a
1692 -- scope all use this field to reference the corresponding scope entity.
1693 -- See Einfo for further details.
1694
1695 -- Shift_Count_OK (Flag4-Sem)
1696 -- A flag present in shift nodes to indicate that the shift count is
1697 -- known to be in range, i.e. is in the range from zero to word length
1698 -- minus one. If this flag is not set, then the shift count may be
1699 -- outside this range, i.e. larger than the word length, and the code
1700 -- must ensure that such shift counts give the appropriate result.
1701
1702 -- Source_Type (Node1-Sem)
1703 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1704 -- source type entity for the unchecked conversion instantiation
1705 -- which gigi must do size validation for.
1706
1707 -- Split_PPC (Flag17)
1708 -- When a Pre or Postaspect specification is processed, it is broken
1709 -- into AND THEN sections. The left most section has Split_PPC set to
1710 -- False, indicating that it is the original specification (e.g. for
1711 -- posting errors). For other sections, Split_PPC is set to True.
1712 -- This flag is set in both the N_Aspect_Specification node itself,
1713 -- and in the pragma which is generated from this node.
1714
1715 -- Static_Processing_OK (Flag4-Sem)
1716 -- Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1717 -- flag is set, the full value of the aggregate can be determined at
1718 -- compile time and the aggregate can be passed as is to the back-end.
1719 -- In this event it is irrelevant whether this flag is set or not.
1720 -- However, if the flag Compile_Time_Known_Aggregate is not set but
1721 -- Static_Processing_OK is set, the aggregate can (but need not) be
1722 -- converted into a compile time known aggregate by the expander. See
1723 -- Sem_Aggr for the specific conditions under which an aggregate has its
1724 -- Static_Processing_OK flag set.
1725
1726 -- Storage_Pool (Node1-Sem)
1727 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1728 -- and N_Extended_Return_Statement nodes. References the entity for the
1729 -- storage pool to be used for the allocate or free call or for the
1730 -- allocation of the returned value from function. Empty indicates that
1731 -- the global default pool is to be used. Note that in the case
1732 -- of a return statement, this field is set only if the function returns
1733 -- value of a type whose size is not known at compile time on the
1734 -- secondary stack.
1735
1736 -- Suppress_Loop_Warnings (Flag17-Sem)
1737 -- Used in N_Loop_Statement node to indicate that warnings within the
1738 -- body of the loop should be suppressed. This is set when the range
1739 -- of a FOR loop is known to be null, or is probably null (loop would
1740 -- only execute if invalid values are present).
1741
1742 -- Target_Type (Node2-Sem)
1743 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1744 -- type entity for the unchecked conversion instantiation which gigi must
1745 -- do size validation for.
1746
1747 -- Then_Actions (List3-Sem)
1748 -- This field is present in conditional expression nodes. During code
1749 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1750 -- actions at an appropriate place in the tree to get elaborated at the
1751 -- right time. For conditional expressions, we have to be sure that the
1752 -- actions for the Then branch are only elaborated if the condition is
1753 -- True. The Then_Actions field is used as a temporary parking place for
1754 -- these actions. The final tree is always rewritten to eliminate the
1755 -- need for this field, so in the tree passed to Gigi, this field is
1756 -- always set to No_List.
1757
1758 -- Treat_Fixed_As_Integer (Flag14-Sem)
1759 -- This flag appears in operator nodes for divide, multiply, mod and rem
1760 -- on fixed-point operands. It indicates that the operands are to be
1761 -- treated as integer values, ignoring small values. This flag is only
1762 -- set as a result of expansion of fixed-point operations. Typically a
1763 -- fixed-point multiplication in the source generates subsidiary
1764 -- multiplication and division operations that work with the underlying
1765 -- integer values and have this flag set. Note that this flag is not
1766 -- needed on other arithmetic operations (add, neg, subtract etc.) since
1767 -- in these cases it is always the case that fixed is treated as integer.
1768 -- The Etype field MUST be set if this flag is set. The analyzer knows to
1769 -- leave such nodes alone, and whoever makes them must set the correct
1770 -- Etype value.
1771
1772 -- TSS_Elist (Elist3-Sem)
1773 -- Present in N_Freeze_Entity nodes. Holds an element list containing
1774 -- entries for each TSS (type support subprogram) associated with the
1775 -- frozen type. The elements of the list are the entities for the
1776 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
1777 -- if there are no type support subprograms for the type or if the freeze
1778 -- node is not for a type.
1779
1780 -- Unreferenced_In_Spec (Flag7-Sem)
1781 -- Present in N_With_Clause nodes. Set if the with clause is on the
1782 -- package or subprogram spec where the main unit is the corresponding
1783 -- body, and is not referenced by the spec (it may still be referenced by
1784 -- the body, so this flag is used to generate the proper message (see
1785 -- Sem_Util.Check_Unused_Withs for details)
1786
1787 -- Was_Originally_Stub (Flag13-Sem)
1788 -- This flag is set in the node for a proper body that replaces stub.
1789 -- During the analysis procedure, stubs in some situations get rewritten
1790 -- by the corresponding bodies, and we set this flag to remember that
1791 -- this happened. Note that it is not good enough to rely on the use of
1792 -- Original_Node here because of the case of nested instantiations where
1793 -- the substituted node can be copied.
1794
1795 -- Withed_Body (Node1-Sem)
1796 -- Present in N_With_Clause nodes. Set if the unit in whose context
1797 -- the with_clause appears instantiates a generic contained in the
1798 -- library unit of the with_clause and as a result loads its body.
1799 -- Used for a more precise unit traversal for CodePeer.
1800
1801 -- Zero_Cost_Handling (Flag5-Sem)
1802 -- This flag is set in all handled sequence of statement and exception
1803 -- handler nodes if exceptions are to be handled using the zero-cost
1804 -- mechanism (see Ada.Exceptions and System.Exceptions in files
1805 -- a-except.ads/adb and s-except.ads for full details). What gigi needs
1806 -- to do for such a handler is simply to put the code in the handler
1807 -- somewhere. The front end has generated all necessary labels.
1808
1809 --------------------------------------------------
1810 -- Note on Use of End_Label and End_Span Fields --
1811 --------------------------------------------------
1812
1813 -- Several constructs have end lines:
1814
1815 -- Loop Statement end loop [loop_IDENTIFIER];
1816 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
1817 -- Task Definition end [task_IDENTIFIER]
1818 -- Protected Definition end [protected_IDENTIFIER]
1819 -- Protected Body end [protected_IDENTIFIER]
1820
1821 -- Block Statement end [block_IDENTIFIER];
1822 -- Subprogram Body end [DESIGNATOR];
1823 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
1824 -- Task Body end [task_IDENTIFIER];
1825 -- Accept Statement end [entry_IDENTIFIER]];
1826 -- Entry Body end [entry_IDENTIFIER];
1827
1828 -- If Statement end if;
1829 -- Case Statement end case;
1830
1831 -- Record Definition end record;
1832 -- Enumeration Definition );
1833
1834 -- The End_Label and End_Span fields are used to mark the locations of
1835 -- these lines, and also keep track of the label in the case where a label
1836 -- is present.
1837
1838 -- For the first group above, the End_Label field of the corresponding node
1839 -- is used to point to the label identifier. In the case where there is no
1840 -- label in the source, the parser supplies a dummy identifier (with
1841 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
1842 -- marks the location of the token following the END token.
1843
1844 -- For the second group, the use of End_Label is similar, but the End_Label
1845 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
1846 -- simply because in some cases there is no room in the parent node.
1847
1848 -- For the third group, there is never any label, and instead of using
1849 -- End_Label, we use the End_Span field which gives the location of the
1850 -- token following END, relative to the starting Sloc of the construct,
1851 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1852 -- following the End_Label.
1853
1854 -- The record definition case is handled specially, we treat it as though
1855 -- it required an optional label which is never present, and so the parser
1856 -- always builds a dummy identifier with Comes From Source set False. The
1857 -- reason we do this, rather than using End_Span in this case, is that we
1858 -- want to generate a cross-ref entry for the end of a record, since it
1859 -- represents a scope for name declaration purposes.
1860
1861 -- The enumeration definition case is handled in an exactly similar manner,
1862 -- building a dummy identifier to get a cross-reference.
1863
1864 -- Note: the reason we store the difference as a Uint, instead of storing
1865 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
1866 -- distinguished from other types of values, and we count on all general
1867 -- use fields being self describing. To make things easier for clients,
1868 -- note that we provide function End_Location, and procedure
1869 -- Set_End_Location to allow access to the logical value (which is the
1870 -- Source_Ptr value for the end token).
1871
1872 ---------------------
1873 -- Syntactic Nodes --
1874 ---------------------
1875
1876 ---------------------
1877 -- 2.3 Identifier --
1878 ---------------------
1879
1880 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1881 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1882
1883 -- An IDENTIFIER shall not be a reserved word
1884
1885 -- In the Ada grammar identifiers are the bottom level tokens which have
1886 -- very few semantics. Actual program identifiers are direct names. If
1887 -- we were being 100% honest with the grammar, then we would have a node
1888 -- called N_Direct_Name which would point to an identifier. However,
1889 -- that's too many extra nodes, so we just use the N_Identifier node
1890 -- directly as a direct name, and it contains the expression fields and
1891 -- Entity field that correspond to its use as a direct name. In those
1892 -- few cases where identifiers appear in contexts where they are not
1893 -- direct names (pragmas, pragma argument associations, attribute
1894 -- references and attribute definition clauses), the Chars field of the
1895 -- node contains the Name_Id for the identifier name.
1896
1897 -- Note: in GNAT, a reserved word can be treated as an identifier in two
1898 -- cases. First, an incorrect use of a reserved word as an identifier is
1899 -- diagnosed and then treated as a normal identifier. Second, an
1900 -- attribute designator of the form of a reserved word (access, delta,
1901 -- digits, range) is treated as an identifier.
1902
1903 -- Note: The set of letters that is permitted in an identifier depends
1904 -- on the character set in use. See package Csets for full details.
1905
1906 -- N_Identifier
1907 -- Sloc points to identifier
1908 -- Chars (Name1) contains the Name_Id for the identifier
1909 -- Entity (Node4-Sem)
1910 -- Associated_Node (Node4-Sem)
1911 -- Original_Discriminant (Node2-Sem)
1912 -- Redundant_Use (Flag13-Sem)
1913 -- Has_Private_View (Flag11-Sem) (set in generic units)
1914 -- plus fields for expression
1915
1916 --------------------------
1917 -- 2.4 Numeric Literal --
1918 --------------------------
1919
1920 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1921
1922 ----------------------------
1923 -- 2.4.1 Decimal Literal --
1924 ----------------------------
1925
1926 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1927
1928 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1929
1930 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1931
1932 -- Decimal literals appear in the tree as either integer literal nodes
1933 -- or real literal nodes, depending on whether a period is present.
1934
1935 -- Note: literal nodes appear as a result of direct use of literals
1936 -- in the source program, and also as the result of evaluating
1937 -- expressions at compile time. In the latter case, it is possible
1938 -- to construct real literals that have no syntactic representation
1939 -- using the standard literal format. Such literals are listed by
1940 -- Sprint using the notation [numerator / denominator].
1941
1942 -- Note: the value of an integer literal node created by the front end
1943 -- is never outside the range of values of the base type. However, it
1944 -- can be the case that the value is outside the range of the
1945 -- particular subtype. This happens in the case of integer overflows
1946 -- with checks suppressed.
1947
1948 -- N_Integer_Literal
1949 -- Sloc points to literal
1950 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1951 -- has been constant-folded into its literal value.
1952 -- Intval (Uint3) contains integer value of literal
1953 -- plus fields for expression
1954 -- Print_In_Hex (Flag13-Sem)
1955
1956 -- N_Real_Literal
1957 -- Sloc points to literal
1958 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1959 -- has been constant-folded into its literal value.
1960 -- Realval (Ureal3) contains real value of literal
1961 -- Corresponding_Integer_Value (Uint4-Sem)
1962 -- Is_Machine_Number (Flag11-Sem)
1963 -- plus fields for expression
1964
1965 --------------------------
1966 -- 2.4.2 Based Literal --
1967 --------------------------
1968
1969 -- BASED_LITERAL ::=
1970 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1971
1972 -- BASE ::= NUMERAL
1973
1974 -- BASED_NUMERAL ::=
1975 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1976
1977 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1978
1979 -- Based literals appear in the tree as either integer literal nodes
1980 -- or real literal nodes, depending on whether a period is present.
1981
1982 ----------------------------
1983 -- 2.5 Character Literal --
1984 ----------------------------
1985
1986 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1987
1988 -- N_Character_Literal
1989 -- Sloc points to literal
1990 -- Chars (Name1) contains the Name_Id for the identifier
1991 -- Char_Literal_Value (Uint2) contains the literal value
1992 -- Entity (Node4-Sem)
1993 -- Associated_Node (Node4-Sem)
1994 -- Has_Private_View (Flag11-Sem) set in generic units.
1995 -- plus fields for expression
1996
1997 -- Note: the Entity field will be missing (set to Empty) for character
1998 -- literals whose type is Standard.Wide_Character or Standard.Character
1999 -- or a type derived from one of these two. In this case the character
2000 -- literal stands for its own coding. The reason we take this irregular
2001 -- short cut is to avoid the need to build lots of junk defining
2002 -- character literal nodes.
2003
2004 -------------------------
2005 -- 2.6 String Literal --
2006 -------------------------
2007
2008 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2009
2010 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2011 -- single GRAPHIC_CHARACTER other than a quotation mark.
2012 --
2013 -- Is_Folded_In_Parser is True if the parser created this literal by
2014 -- folding a sequence of "&" operators. For example, if the source code
2015 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2016 -- is set. This flag is needed because the parser doesn't know about
2017 -- visibility, so the folded result might be wrong, and semantic
2018 -- analysis needs to check for that.
2019
2020 -- N_String_Literal
2021 -- Sloc points to literal
2022 -- Strval (Str3) contains Id of string value
2023 -- Has_Wide_Character (Flag11-Sem)
2024 -- Has_Wide_Wide_Character (Flag13-Sem)
2025 -- Is_Folded_In_Parser (Flag4)
2026 -- plus fields for expression
2027
2028 ------------------
2029 -- 2.7 Comment --
2030 ------------------
2031
2032 -- A COMMENT starts with two adjacent hyphens and extends up to the
2033 -- end of the line. A COMMENT may appear on any line of a program.
2034
2035 -- Comments are skipped by the scanner and do not appear in the tree.
2036 -- It is possible to reconstruct the position of comments with respect
2037 -- to the elements of the tree by using the source position (Sloc)
2038 -- pointers that appear in every tree node.
2039
2040 -----------------
2041 -- 2.8 Pragma --
2042 -----------------
2043
2044 -- PRAGMA ::= pragma IDENTIFIER
2045 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2046
2047 -- Note that a pragma may appear in the tree anywhere a declaration
2048 -- or a statement may appear, as well as in some other situations
2049 -- which are explicitly documented.
2050
2051 -- N_Pragma
2052 -- Sloc points to PRAGMA
2053 -- Next_Pragma (Node1-Sem)
2054 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2055 -- Debug_Statement (Node3) (set to Empty if not Debug)
2056 -- Pragma_Identifier (Node4)
2057 -- Next_Rep_Item (Node5-Sem)
2058 -- Pragma_Enabled (Flag5-Sem)
2059 -- From_Aspect_Specification (Flag13-Sem)
2060 -- Is_Delayed_Aspect (Flag14-Sem)
2061 -- Import_Interface_Present (Flag16-Sem)
2062 -- Aspect_Cancel (Flag11-Sem)
2063 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2064 -- Class_Present (Flag6) set if from Aspect with 'Class
2065
2066 -- Note: we should have a section on what pragmas are passed on to
2067 -- the back end to be processed. This section should note that pragma
2068 -- Psect_Object is always converted to Common_Object, but there are
2069 -- undoubtedly many other similar notes required ???
2070
2071 -- Note: a utility function Pragma_Name may be applied to pragma nodes
2072 -- to conveniently obtain the Chars field of the Pragma_Identifier.
2073
2074 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2075 -- aspect name, as does the Pragma_Identifier. In this case if the
2076 -- pragma has a local name argument (such as pragma Inline), it is
2077 -- resolved to point to the specific entity affected by the pragma.
2078
2079 --------------------------------------
2080 -- 2.8 Pragma Argument Association --
2081 --------------------------------------
2082
2083 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2084 -- [pragma_argument_IDENTIFIER =>] NAME
2085 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2086
2087 -- N_Pragma_Argument_Association
2088 -- Sloc points to first token in association
2089 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2090 -- Expression (Node3)
2091
2092 ------------------------
2093 -- 2.9 Reserved Word --
2094 ------------------------
2095
2096 -- Reserved words are parsed by the scanner, and returned as the
2097 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2098
2099 ----------------------------
2100 -- 3.1 Basic Declaration --
2101 ----------------------------
2102
2103 -- BASIC_DECLARATION ::=
2104 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2105 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2106 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2107 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2108 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2109 -- | GENERIC_INSTANTIATION
2110
2111 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2112 -- see further description in section on semantic nodes.
2113
2114 -- Also, in the tree that is constructed, a pragma may appear
2115 -- anywhere that a declaration may appear.
2116
2117 ------------------------------
2118 -- 3.1 Defining Identifier --
2119 ------------------------------
2120
2121 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2122
2123 -- A defining identifier is an entity, which has additional fields
2124 -- depending on the setting of the Ekind field. These additional
2125 -- fields are defined (and access subprograms declared) in package
2126 -- Einfo.
2127
2128 -- Note: N_Defining_Identifier is an extended node whose fields are
2129 -- deliberate layed out to match the layout of fields in an ordinary
2130 -- N_Identifier node allowing for easy alteration of an identifier
2131 -- node into a defining identifier node. For details, see procedure
2132 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2133
2134 -- N_Defining_Identifier
2135 -- Sloc points to identifier
2136 -- Chars (Name1) contains the Name_Id for the identifier
2137 -- Next_Entity (Node2-Sem)
2138 -- Scope (Node3-Sem)
2139 -- Etype (Node5-Sem)
2140
2141 -----------------------------
2142 -- 3.2.1 Type Declaration --
2143 -----------------------------
2144
2145 -- TYPE_DECLARATION ::=
2146 -- FULL_TYPE_DECLARATION
2147 -- | INCOMPLETE_TYPE_DECLARATION
2148 -- | PRIVATE_TYPE_DECLARATION
2149 -- | PRIVATE_EXTENSION_DECLARATION
2150
2151 ----------------------------------
2152 -- 3.2.1 Full Type Declaration --
2153 ----------------------------------
2154
2155 -- FULL_TYPE_DECLARATION ::=
2156 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2157 -- is TYPE_DEFINITION
2158 -- [ASPECT_SPECIFICATIONS];
2159
2160 -- | TASK_TYPE_DECLARATION
2161 -- | PROTECTED_TYPE_DECLARATION
2162
2163 -- The full type declaration node is used only for the first case. The
2164 -- second case (concurrent type declaration), is represented directly
2165 -- by a task type declaration or a protected type declaration.
2166
2167 -- N_Full_Type_Declaration
2168 -- Sloc points to TYPE
2169 -- Defining_Identifier (Node1)
2170 -- Discriminant_Specifications (List4) (set to No_List if none)
2171 -- Type_Definition (Node3)
2172 -- Discr_Check_Funcs_Built (Flag11-Sem)
2173
2174 ----------------------------
2175 -- 3.2.1 Type Definition --
2176 ----------------------------
2177
2178 -- TYPE_DEFINITION ::=
2179 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2180 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2181 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2182 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2183
2184 --------------------------------
2185 -- 3.2.2 Subtype Declaration --
2186 --------------------------------
2187
2188 -- SUBTYPE_DECLARATION ::=
2189 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
2190
2191 -- The subtype indication field is set to Empty for subtypes
2192 -- declared in package Standard (Positive, Natural).
2193
2194 -- N_Subtype_Declaration
2195 -- Sloc points to SUBTYPE
2196 -- Defining_Identifier (Node1)
2197 -- Null_Exclusion_Present (Flag11)
2198 -- Subtype_Indication (Node5)
2199 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2200 -- Exception_Junk (Flag8-Sem)
2201
2202 -------------------------------
2203 -- 3.2.2 Subtype Indication --
2204 -------------------------------
2205
2206 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2207
2208 -- Note: if no constraint is present, the subtype indication appears
2209 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2210 -- node is used only if a constraint is present.
2211
2212 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2213 -- with the null-exclusion part (see AI-231), we had to introduce a new
2214 -- attribute in all the parents of subtype_indication nodes to indicate
2215 -- if the null-exclusion is present.
2216
2217 -- Note: the reason that this node has expression fields is that a
2218 -- subtype indication can appear as an operand of a membership test.
2219
2220 -- N_Subtype_Indication
2221 -- Sloc points to first token of subtype mark
2222 -- Subtype_Mark (Node4)
2223 -- Constraint (Node3)
2224 -- Etype (Node5-Sem)
2225 -- Must_Not_Freeze (Flag8-Sem)
2226
2227 -- Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2228 -- reason for this redundancy is so that in a list of array index types,
2229 -- the Etype can be uniformly accessed to determine the subscript type.
2230 -- This means that no Itype is constructed for the actual subtype that
2231 -- is created by the subtype indication. If such an Itype is required,
2232 -- it is constructed in the context in which the indication appears.
2233
2234 -------------------------
2235 -- 3.2.2 Subtype Mark --
2236 -------------------------
2237
2238 -- SUBTYPE_MARK ::= subtype_NAME
2239
2240 -----------------------
2241 -- 3.2.2 Constraint --
2242 -----------------------
2243
2244 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2245
2246 ------------------------------
2247 -- 3.2.2 Scalar Constraint --
2248 ------------------------------
2249
2250 -- SCALAR_CONSTRAINT ::=
2251 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2252
2253 ---------------------------------
2254 -- 3.2.2 Composite Constraint --
2255 ---------------------------------
2256
2257 -- COMPOSITE_CONSTRAINT ::=
2258 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2259
2260 -------------------------------
2261 -- 3.3.1 Object Declaration --
2262 -------------------------------
2263
2264 -- OBJECT_DECLARATION ::=
2265 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2266 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2267 -- [ASPECT_SPECIFICATIONS];
2268 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2269 -- ACCESS_DEFINITION [:= EXPRESSION]
2270 -- [ASPECT_SPECIFICATIONS];
2271 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2272 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2273 -- [ASPECT_SPECIFICATIONS];
2274 -- | SINGLE_TASK_DECLARATION
2275 -- | SINGLE_PROTECTED_DECLARATION
2276
2277 -- Note: aliased is not permitted in Ada 83 mode
2278
2279 -- The N_Object_Declaration node is only for the first two cases.
2280 -- Single task declaration is handled by P_Task (9.1)
2281 -- Single protected declaration is handled by P_protected (9.5)
2282
2283 -- Although the syntax allows multiple identifiers in the list, the
2284 -- semantics is as though successive declarations were given with
2285 -- identical type definition and expression components. To simplify
2286 -- semantic processing, the parser represents a multiple declaration
2287 -- case as a sequence of single declarations, using the More_Ids and
2288 -- Prev_Ids flags to preserve the original source form as described
2289 -- in the section on "Handling of Defining Identifier Lists".
2290
2291 -- The flag Has_Init_Expression is set if an initializing expression
2292 -- is present. Normally it is set if and only if Expression contains
2293 -- a non-empty value, but there is an exception to this. When the
2294 -- initializing expression is an aggregate which requires explicit
2295 -- assignments, the Expression field gets set to Empty, but this flag
2296 -- is still set, so we don't forget we had an initializing expression.
2297
2298 -- Note: if a range check is required for the initialization
2299 -- expression then the Do_Range_Check flag is set in the Expression,
2300 -- with the check being done against the type given by the object
2301 -- definition, which is also the Etype of the defining identifier.
2302
2303 -- Note: the contents of the Expression field must be ignored (i.e.
2304 -- treated as though it were Empty) if No_Initialization is set True.
2305
2306 -- Note: the back end places some restrictions on the form of the
2307 -- Expression field. If the object being declared is Atomic, then
2308 -- the Expression may not have the form of an aggregate (since this
2309 -- might cause the back end to generate separate assignments). In this
2310 -- case the front end must generate an extra temporary and initialize
2311 -- this temporary as required (the temporary itself is not atomic).
2312
2313 -- Note: there is not node kind for object definition. Instead, the
2314 -- corresponding field holds a subtype indication, an array type
2315 -- definition, or (Ada 2005, AI-406) an access definition.
2316
2317 -- N_Object_Declaration
2318 -- Sloc points to first identifier
2319 -- Defining_Identifier (Node1)
2320 -- Aliased_Present (Flag4) set if ALIASED appears
2321 -- Constant_Present (Flag17) set if CONSTANT appears
2322 -- Null_Exclusion_Present (Flag11)
2323 -- Object_Definition (Node4) subtype indic./array type def./access def.
2324 -- Expression (Node3) (set to Empty if not present)
2325 -- Handler_List_Entry (Node2-Sem)
2326 -- Corresponding_Generic_Association (Node5-Sem)
2327 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2328 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2329 -- No_Initialization (Flag13-Sem)
2330 -- Assignment_OK (Flag15-Sem)
2331 -- Exception_Junk (Flag8-Sem)
2332 -- Is_Subprogram_Descriptor (Flag16-Sem)
2333 -- Has_Init_Expression (Flag14)
2334
2335 -------------------------------------
2336 -- 3.3.1 Defining Identifier List --
2337 -------------------------------------
2338
2339 -- DEFINING_IDENTIFIER_LIST ::=
2340 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2341
2342 -------------------------------
2343 -- 3.3.2 Number Declaration --
2344 -------------------------------
2345
2346 -- NUMBER_DECLARATION ::=
2347 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2348
2349 -- Although the syntax allows multiple identifiers in the list, the
2350 -- semantics is as though successive declarations were given with
2351 -- identical expressions. To simplify semantic processing, the parser
2352 -- represents a multiple declaration case as a sequence of single
2353 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2354 -- the original source form as described in the section on "Handling
2355 -- of Defining Identifier Lists".
2356
2357 -- N_Number_Declaration
2358 -- Sloc points to first identifier
2359 -- Defining_Identifier (Node1)
2360 -- Expression (Node3)
2361 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2362 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2363
2364 ----------------------------------
2365 -- 3.4 Derived Type Definition --
2366 ----------------------------------
2367
2368 -- DERIVED_TYPE_DEFINITION ::=
2369 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2370 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2371
2372 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2373 -- in Ada 83 mode
2374
2375 -- Note: a record extension part is required if ABSTRACT is present
2376
2377 -- N_Derived_Type_Definition
2378 -- Sloc points to NEW
2379 -- Abstract_Present (Flag4)
2380 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2381 -- Subtype_Indication (Node5)
2382 -- Record_Extension_Part (Node3) (set to Empty if not present)
2383 -- Limited_Present (Flag17)
2384 -- Task_Present (Flag5) set in task interfaces
2385 -- Protected_Present (Flag6) set in protected interfaces
2386 -- Synchronized_Present (Flag7) set in interfaces
2387 -- Interface_List (List2) (set to No_List if none)
2388 -- Interface_Present (Flag16) set in abstract interfaces
2389
2390 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2391 -- Interface_List, and Interface_Present are used for abstract
2392 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2393
2394 ---------------------------
2395 -- 3.5 Range Constraint --
2396 ---------------------------
2397
2398 -- RANGE_CONSTRAINT ::= range RANGE
2399
2400 -- N_Range_Constraint
2401 -- Sloc points to RANGE
2402 -- Range_Expression (Node4)
2403
2404 ----------------
2405 -- 3.5 Range --
2406 ----------------
2407
2408 -- RANGE ::=
2409 -- RANGE_ATTRIBUTE_REFERENCE
2410 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2411
2412 -- Note: the case of a range given as a range attribute reference
2413 -- appears directly in the tree as an attribute reference.
2414
2415 -- Note: the field name for a reference to a range is Range_Expression
2416 -- rather than Range, because range is a reserved keyword in Ada!
2417
2418 -- Note: the reason that this node has expression fields is that a
2419 -- range can appear as an operand of a membership test. The Etype
2420 -- field is the type of the range (we do NOT construct an implicit
2421 -- subtype to represent the range exactly).
2422
2423 -- N_Range
2424 -- Sloc points to ..
2425 -- Low_Bound (Node1)
2426 -- High_Bound (Node2)
2427 -- Includes_Infinities (Flag11)
2428 -- plus fields for expression
2429
2430 -- Note: if the range appears in a context, such as a subtype
2431 -- declaration, where range checks are required on one or both of
2432 -- the expression fields, then type conversion nodes are inserted
2433 -- to represent the required checks.
2434
2435 ----------------------------------------
2436 -- 3.5.1 Enumeration Type Definition --
2437 ----------------------------------------
2438
2439 -- ENUMERATION_TYPE_DEFINITION ::=
2440 -- (ENUMERATION_LITERAL_SPECIFICATION
2441 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2442
2443 -- Note: the Literals field in the node described below is null for
2444 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2445 -- which special processing handles these types as special cases.
2446
2447 -- N_Enumeration_Type_Definition
2448 -- Sloc points to left parenthesis
2449 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2450 -- End_Label (Node4) (set to Empty if internally generated record)
2451
2452 ----------------------------------------------
2453 -- 3.5.1 Enumeration Literal Specification --
2454 ----------------------------------------------
2455
2456 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2457 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2458
2459 ---------------------------------------
2460 -- 3.5.1 Defining Character Literal --
2461 ---------------------------------------
2462
2463 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2464
2465 -- A defining character literal is an entity, which has additional
2466 -- fields depending on the setting of the Ekind field. These
2467 -- additional fields are defined (and access subprograms declared)
2468 -- in package Einfo.
2469
2470 -- Note: N_Defining_Character_Literal is an extended node whose fields
2471 -- are deliberate layed out to match the layout of fields in an ordinary
2472 -- N_Character_Literal node allowing for easy alteration of a character
2473 -- literal node into a defining character literal node. For details, see
2474 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2475
2476 -- N_Defining_Character_Literal
2477 -- Sloc points to literal
2478 -- Chars (Name1) contains the Name_Id for the identifier
2479 -- Next_Entity (Node2-Sem)
2480 -- Scope (Node3-Sem)
2481 -- Etype (Node5-Sem)
2482
2483 ------------------------------------
2484 -- 3.5.4 Integer Type Definition --
2485 ------------------------------------
2486
2487 -- Note: there is an error in this rule in the latest version of the
2488 -- grammar, so we have retained the old rule pending clarification.
2489
2490 -- INTEGER_TYPE_DEFINITION ::=
2491 -- SIGNED_INTEGER_TYPE_DEFINITION
2492 -- | MODULAR_TYPE_DEFINITION
2493
2494 -------------------------------------------
2495 -- 3.5.4 Signed Integer Type Definition --
2496 -------------------------------------------
2497
2498 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2499 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2500
2501 -- Note: the Low_Bound and High_Bound fields are set to Empty
2502 -- for integer types defined in package Standard.
2503
2504 -- N_Signed_Integer_Type_Definition
2505 -- Sloc points to RANGE
2506 -- Low_Bound (Node1)
2507 -- High_Bound (Node2)
2508
2509 ------------------------------------
2510 -- 3.5.4 Modular Type Definition --
2511 ------------------------------------
2512
2513 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2514
2515 -- N_Modular_Type_Definition
2516 -- Sloc points to MOD
2517 -- Expression (Node3)
2518
2519 ---------------------------------
2520 -- 3.5.6 Real Type Definition --
2521 ---------------------------------
2522
2523 -- REAL_TYPE_DEFINITION ::=
2524 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2525
2526 --------------------------------------
2527 -- 3.5.7 Floating Point Definition --
2528 --------------------------------------
2529
2530 -- FLOATING_POINT_DEFINITION ::=
2531 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2532
2533 -- Note: The Digits_Expression and Real_Range_Specifications fields
2534 -- are set to Empty for floating-point types declared in Standard.
2535
2536 -- N_Floating_Point_Definition
2537 -- Sloc points to DIGITS
2538 -- Digits_Expression (Node2)
2539 -- Real_Range_Specification (Node4) (set to Empty if not present)
2540
2541 -------------------------------------
2542 -- 3.5.7 Real Range Specification --
2543 -------------------------------------
2544
2545 -- REAL_RANGE_SPECIFICATION ::=
2546 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2547
2548 -- N_Real_Range_Specification
2549 -- Sloc points to RANGE
2550 -- Low_Bound (Node1)
2551 -- High_Bound (Node2)
2552
2553 -----------------------------------
2554 -- 3.5.9 Fixed Point Definition --
2555 -----------------------------------
2556
2557 -- FIXED_POINT_DEFINITION ::=
2558 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2559
2560 --------------------------------------------
2561 -- 3.5.9 Ordinary Fixed Point Definition --
2562 --------------------------------------------
2563
2564 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2565 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2566
2567 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2568
2569 -- N_Ordinary_Fixed_Point_Definition
2570 -- Sloc points to DELTA
2571 -- Delta_Expression (Node3)
2572 -- Real_Range_Specification (Node4)
2573
2574 -------------------------------------------
2575 -- 3.5.9 Decimal Fixed Point Definition --
2576 -------------------------------------------
2577
2578 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2579 -- delta static_EXPRESSION
2580 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2581
2582 -- Note: decimal types are not permitted in Ada 83 mode
2583
2584 -- N_Decimal_Fixed_Point_Definition
2585 -- Sloc points to DELTA
2586 -- Delta_Expression (Node3)
2587 -- Digits_Expression (Node2)
2588 -- Real_Range_Specification (Node4) (set to Empty if not present)
2589
2590 ------------------------------
2591 -- 3.5.9 Digits Constraint --
2592 ------------------------------
2593
2594 -- DIGITS_CONSTRAINT ::=
2595 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2596
2597 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2598 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2599
2600 -- N_Digits_Constraint
2601 -- Sloc points to DIGITS
2602 -- Digits_Expression (Node2)
2603 -- Range_Constraint (Node4) (set to Empty if not present)
2604
2605 --------------------------------
2606 -- 3.6 Array Type Definition --
2607 --------------------------------
2608
2609 -- ARRAY_TYPE_DEFINITION ::=
2610 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2611
2612 -----------------------------------------
2613 -- 3.6 Unconstrained Array Definition --
2614 -----------------------------------------
2615
2616 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2617 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2618 -- COMPONENT_DEFINITION
2619
2620 -- Note: dimensionality of array is indicated by number of entries in
2621 -- the Subtype_Marks list, which has one entry for each dimension.
2622
2623 -- N_Unconstrained_Array_Definition
2624 -- Sloc points to ARRAY
2625 -- Subtype_Marks (List2)
2626 -- Component_Definition (Node4)
2627
2628 -----------------------------------
2629 -- 3.6 Index Subtype Definition --
2630 -----------------------------------
2631
2632 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2633
2634 -- There is no explicit node in the tree for an index subtype
2635 -- definition since the N_Unconstrained_Array_Definition node
2636 -- incorporates the type marks which appear in this context.
2637
2638 ---------------------------------------
2639 -- 3.6 Constrained Array Definition --
2640 ---------------------------------------
2641
2642 -- CONSTRAINED_ARRAY_DEFINITION ::=
2643 -- array (DISCRETE_SUBTYPE_DEFINITION
2644 -- {, DISCRETE_SUBTYPE_DEFINITION})
2645 -- of COMPONENT_DEFINITION
2646
2647 -- Note: dimensionality of array is indicated by number of entries
2648 -- in the Discrete_Subtype_Definitions list, which has one entry
2649 -- for each dimension.
2650
2651 -- N_Constrained_Array_Definition
2652 -- Sloc points to ARRAY
2653 -- Discrete_Subtype_Definitions (List2)
2654 -- Component_Definition (Node4)
2655
2656 --------------------------------------
2657 -- 3.6 Discrete Subtype Definition --
2658 --------------------------------------
2659
2660 -- DISCRETE_SUBTYPE_DEFINITION ::=
2661 -- discrete_SUBTYPE_INDICATION | RANGE
2662
2663 -------------------------------
2664 -- 3.6 Component Definition --
2665 -------------------------------
2666
2667 -- COMPONENT_DEFINITION ::=
2668 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2669
2670 -- Note: although the syntax does not permit a component definition to
2671 -- be an anonymous array (and the parser will diagnose such an attempt
2672 -- with an appropriate message), it is possible for anonymous arrays
2673 -- to appear as component definitions. The semantics and back end handle
2674 -- this case properly, and the expander in fact generates such cases.
2675 -- Access_Definition is an optional field that gives support to
2676 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2677 -- Subtype_Indication field or else the Access_Definition field.
2678
2679 -- N_Component_Definition
2680 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2681 -- Aliased_Present (Flag4)
2682 -- Null_Exclusion_Present (Flag11)
2683 -- Subtype_Indication (Node5) (set to Empty if not present)
2684 -- Access_Definition (Node3) (set to Empty if not present)
2685
2686 -----------------------------
2687 -- 3.6.1 Index Constraint --
2688 -----------------------------
2689
2690 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2691
2692 -- It is not in general possible to distinguish between discriminant
2693 -- constraints and index constraints at parse time, since a simple
2694 -- name could be either the subtype mark of a discrete range, or an
2695 -- expression in a discriminant association with no name. Either
2696 -- entry appears simply as the name, and the semantic parse must
2697 -- distinguish between the two cases. Thus we use a common tree
2698 -- node format for both of these constraint types.
2699
2700 -- See Discriminant_Constraint for format of node
2701
2702 ---------------------------
2703 -- 3.6.1 Discrete Range --
2704 ---------------------------
2705
2706 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2707
2708 ----------------------------
2709 -- 3.7 Discriminant Part --
2710 ----------------------------
2711
2712 -- DISCRIMINANT_PART ::=
2713 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2714
2715 ------------------------------------
2716 -- 3.7 Unknown Discriminant Part --
2717 ------------------------------------
2718
2719 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2720
2721 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2722
2723 -- There is no explicit node in the tree for an unknown discriminant
2724 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2725 -- parent node.
2726
2727 ----------------------------------
2728 -- 3.7 Known Discriminant Part --
2729 ----------------------------------
2730
2731 -- KNOWN_DISCRIMINANT_PART ::=
2732 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2733
2734 -------------------------------------
2735 -- 3.7 Discriminant Specification --
2736 -------------------------------------
2737
2738 -- DISCRIMINANT_SPECIFICATION ::=
2739 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2740 -- [:= DEFAULT_EXPRESSION]
2741 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2742 -- [:= DEFAULT_EXPRESSION]
2743
2744 -- Although the syntax allows multiple identifiers in the list, the
2745 -- semantics is as though successive specifications were given with
2746 -- identical type definition and expression components. To simplify
2747 -- semantic processing, the parser represents a multiple declaration
2748 -- case as a sequence of single specifications, using the More_Ids and
2749 -- Prev_Ids flags to preserve the original source form as described
2750 -- in the section on "Handling of Defining Identifier Lists".
2751
2752 -- N_Discriminant_Specification
2753 -- Sloc points to first identifier
2754 -- Defining_Identifier (Node1)
2755 -- Null_Exclusion_Present (Flag11)
2756 -- Discriminant_Type (Node5) subtype mark or access parameter definition
2757 -- Expression (Node3) (set to Empty if no default expression)
2758 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2759 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2760
2761 -----------------------------
2762 -- 3.7 Default Expression --
2763 -----------------------------
2764
2765 -- DEFAULT_EXPRESSION ::= EXPRESSION
2766
2767 ------------------------------------
2768 -- 3.7.1 Discriminant Constraint --
2769 ------------------------------------
2770
2771 -- DISCRIMINANT_CONSTRAINT ::=
2772 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2773
2774 -- It is not in general possible to distinguish between discriminant
2775 -- constraints and index constraints at parse time, since a simple
2776 -- name could be either the subtype mark of a discrete range, or an
2777 -- expression in a discriminant association with no name. Either
2778 -- entry appears simply as the name, and the semantic parse must
2779 -- distinguish between the two cases. Thus we use a common tree
2780 -- node format for both of these constraint types.
2781
2782 -- N_Index_Or_Discriminant_Constraint
2783 -- Sloc points to left paren
2784 -- Constraints (List1) points to list of discrete ranges or
2785 -- discriminant associations
2786
2787 -------------------------------------
2788 -- 3.7.1 Discriminant Association --
2789 -------------------------------------
2790
2791 -- DISCRIMINANT_ASSOCIATION ::=
2792 -- [discriminant_SELECTOR_NAME
2793 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2794
2795 -- Note: a discriminant association that has no selector name list
2796 -- appears directly as an expression in the tree.
2797
2798 -- N_Discriminant_Association
2799 -- Sloc points to first token of discriminant association
2800 -- Selector_Names (List1) (always non-empty, since if no selector
2801 -- names are present, this node is not used, see comment above)
2802 -- Expression (Node3)
2803
2804 ---------------------------------
2805 -- 3.8 Record Type Definition --
2806 ---------------------------------
2807
2808 -- RECORD_TYPE_DEFINITION ::=
2809 -- [[abstract] tagged] [limited] RECORD_DEFINITION
2810
2811 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2812
2813 -- There is no explicit node in the tree for a record type definition.
2814 -- Instead the flags for Tagged_Present and Limited_Present appear in
2815 -- the N_Record_Definition node for a record definition appearing in
2816 -- the context of a record type definition.
2817
2818 ----------------------------
2819 -- 3.8 Record Definition --
2820 ----------------------------
2821
2822 -- RECORD_DEFINITION ::=
2823 -- record
2824 -- COMPONENT_LIST
2825 -- end record
2826 -- | null record
2827
2828 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
2829 -- flags appear only for a record definition appearing in a record
2830 -- type definition.
2831
2832 -- Note: the NULL RECORD case is not permitted in Ada 83
2833
2834 -- N_Record_Definition
2835 -- Sloc points to RECORD or NULL
2836 -- End_Label (Node4) (set to Empty if internally generated record)
2837 -- Abstract_Present (Flag4)
2838 -- Tagged_Present (Flag15)
2839 -- Limited_Present (Flag17)
2840 -- Component_List (Node1) empty in null record case
2841 -- Null_Present (Flag13) set in null record case
2842 -- Task_Present (Flag5) set in task interfaces
2843 -- Protected_Present (Flag6) set in protected interfaces
2844 -- Synchronized_Present (Flag7) set in interfaces
2845 -- Interface_Present (Flag16) set in abstract interfaces
2846 -- Interface_List (List2) (set to No_List if none)
2847
2848 -- Note: Task_Present, Protected_Present, Synchronized _Present,
2849 -- Interface_List and Interface_Present are used for abstract
2850 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2851
2852 -------------------------
2853 -- 3.8 Component List --
2854 -------------------------
2855
2856 -- COMPONENT_LIST ::=
2857 -- COMPONENT_ITEM {COMPONENT_ITEM}
2858 -- | {COMPONENT_ITEM} VARIANT_PART
2859 -- | null;
2860
2861 -- N_Component_List
2862 -- Sloc points to first token of component list
2863 -- Component_Items (List3)
2864 -- Variant_Part (Node4) (set to Empty if no variant part)
2865 -- Null_Present (Flag13)
2866
2867 -------------------------
2868 -- 3.8 Component Item --
2869 -------------------------
2870
2871 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2872
2873 -- Note: A component item can also be a pragma, and in the tree
2874 -- that is obtained after semantic processing, a component item
2875 -- can be an N_Null node resulting from a non-recognized pragma.
2876
2877 --------------------------------
2878 -- 3.8 Component Declaration --
2879 --------------------------------
2880
2881 -- COMPONENT_DECLARATION ::=
2882 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2883 -- [:= DEFAULT_EXPRESSION]
2884 -- [ASPECT_SPECIFICATIONS];
2885
2886 -- Note: although the syntax does not permit a component definition to
2887 -- be an anonymous array (and the parser will diagnose such an attempt
2888 -- with an appropriate message), it is possible for anonymous arrays
2889 -- to appear as component definitions. The semantics and back end handle
2890 -- this case properly, and the expander in fact generates such cases.
2891
2892 -- Although the syntax allows multiple identifiers in the list, the
2893 -- semantics is as though successive declarations were given with the
2894 -- same component definition and expression components. To simplify
2895 -- semantic processing, the parser represents a multiple declaration
2896 -- case as a sequence of single declarations, using the More_Ids and
2897 -- Prev_Ids flags to preserve the original source form as described
2898 -- in the section on "Handling of Defining Identifier Lists".
2899
2900 -- N_Component_Declaration
2901 -- Sloc points to first identifier
2902 -- Defining_Identifier (Node1)
2903 -- Component_Definition (Node4)
2904 -- Expression (Node3) (set to Empty if no default expression)
2905 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2906 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2907
2908 -------------------------
2909 -- 3.8.1 Variant Part --
2910 -------------------------
2911
2912 -- VARIANT_PART ::=
2913 -- case discriminant_DIRECT_NAME is
2914 -- VARIANT
2915 -- {VARIANT}
2916 -- end case;
2917
2918 -- Note: the variants list can contain pragmas as well as variants.
2919 -- In a properly formed program there is at least one variant.
2920
2921 -- N_Variant_Part
2922 -- Sloc points to CASE
2923 -- Name (Node2)
2924 -- Variants (List1)
2925
2926 --------------------
2927 -- 3.8.1 Variant --
2928 --------------------
2929
2930 -- VARIANT ::=
2931 -- when DISCRETE_CHOICE_LIST =>
2932 -- COMPONENT_LIST
2933
2934 -- N_Variant
2935 -- Sloc points to WHEN
2936 -- Discrete_Choices (List4)
2937 -- Component_List (Node1)
2938 -- Enclosing_Variant (Node2-Sem)
2939 -- Present_Expr (Uint3-Sem)
2940 -- Dcheck_Function (Node5-Sem)
2941
2942 ---------------------------------
2943 -- 3.8.1 Discrete Choice List --
2944 ---------------------------------
2945
2946 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2947
2948 ----------------------------
2949 -- 3.8.1 Discrete Choice --
2950 ----------------------------
2951
2952 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2953
2954 -- Note: in Ada 83 mode, the expression must be a simple expression
2955
2956 -- The only choice that appears explicitly is the OTHERS choice, as
2957 -- defined here. Other cases of discrete choice (expression and
2958 -- discrete range) appear directly. This production is also used
2959 -- for the OTHERS possibility of an exception choice.
2960
2961 -- Note: in accordance with the syntax, the parser does not check that
2962 -- OTHERS appears at the end on its own in a choice list context. This
2963 -- is a semantic check.
2964
2965 -- N_Others_Choice
2966 -- Sloc points to OTHERS
2967 -- Others_Discrete_Choices (List1-Sem)
2968 -- All_Others (Flag11-Sem)
2969
2970 ----------------------------------
2971 -- 3.9.1 Record Extension Part --
2972 ----------------------------------
2973
2974 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2975
2976 -- Note: record extension parts are not permitted in Ada 83 mode
2977
2978 --------------------------------------
2979 -- 3.9.4 Interface Type Definition --
2980 --------------------------------------
2981
2982 -- INTERFACE_TYPE_DEFINITION ::=
2983 -- [limited | task | protected | synchronized]
2984 -- interface [interface_list]
2985
2986 -- Note: Interfaces are implemented with N_Record_Definition and
2987 -- N_Derived_Type_Definition nodes because most of the support
2988 -- for the analysis of abstract types has been reused to
2989 -- analyze abstract interfaces.
2990
2991 ----------------------------------
2992 -- 3.10 Access Type Definition --
2993 ----------------------------------
2994
2995 -- ACCESS_TYPE_DEFINITION ::=
2996 -- ACCESS_TO_OBJECT_DEFINITION
2997 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2998
2999 --------------------------
3000 -- 3.10 Null Exclusion --
3001 --------------------------
3002
3003 -- NULL_EXCLUSION ::= not null
3004
3005 ---------------------------------------
3006 -- 3.10 Access To Object Definition --
3007 ---------------------------------------
3008
3009 -- ACCESS_TO_OBJECT_DEFINITION ::=
3010 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3011 -- SUBTYPE_INDICATION
3012
3013 -- N_Access_To_Object_Definition
3014 -- Sloc points to ACCESS
3015 -- All_Present (Flag15)
3016 -- Null_Exclusion_Present (Flag11)
3017 -- Subtype_Indication (Node5)
3018 -- Constant_Present (Flag17)
3019
3020 -----------------------------------
3021 -- 3.10 General Access Modifier --
3022 -----------------------------------
3023
3024 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3025
3026 -- Note: general access modifiers are not permitted in Ada 83 mode
3027
3028 -- There is no explicit node in the tree for general access modifier.
3029 -- Instead the All_Present or Constant_Present flags are set in the
3030 -- parent node.
3031
3032 -------------------------------------------
3033 -- 3.10 Access To Subprogram Definition --
3034 -------------------------------------------
3035
3036 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3037 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3038 -- | [NULL_EXCLUSION] access [protected] function
3039 -- PARAMETER_AND_RESULT_PROFILE
3040
3041 -- Note: access to subprograms are not permitted in Ada 83 mode
3042
3043 -- N_Access_Function_Definition
3044 -- Sloc points to ACCESS
3045 -- Null_Exclusion_Present (Flag11)
3046 -- Null_Exclusion_In_Return_Present (Flag14)
3047 -- Protected_Present (Flag6)
3048 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3049 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3050
3051 -- N_Access_Procedure_Definition
3052 -- Sloc points to ACCESS
3053 -- Null_Exclusion_Present (Flag11)
3054 -- Protected_Present (Flag6)
3055 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3056
3057 -----------------------------
3058 -- 3.10 Access Definition --
3059 -----------------------------
3060
3061 -- ACCESS_DEFINITION ::=
3062 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3063 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3064
3065 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3066
3067 -- N_Access_Definition
3068 -- Sloc points to ACCESS
3069 -- Null_Exclusion_Present (Flag11)
3070 -- All_Present (Flag15)
3071 -- Constant_Present (Flag17)
3072 -- Subtype_Mark (Node4)
3073 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3074
3075 -----------------------------------------
3076 -- 3.10.1 Incomplete Type Declaration --
3077 -----------------------------------------
3078
3079 -- INCOMPLETE_TYPE_DECLARATION ::=
3080 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3081
3082 -- N_Incomplete_Type_Declaration
3083 -- Sloc points to TYPE
3084 -- Defining_Identifier (Node1)
3085 -- Discriminant_Specifications (List4) (set to No_List if no
3086 -- discriminant part, or if the discriminant part is an
3087 -- unknown discriminant part)
3088 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3089 -- Tagged_Present (Flag15)
3090
3091 ----------------------------
3092 -- 3.11 Declarative Part --
3093 ----------------------------
3094
3095 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3096
3097 -- Note: although the parser enforces the syntactic requirement that
3098 -- a declarative part can contain only declarations, the semantic
3099 -- processing may add statements to the list of actions in a
3100 -- declarative part, so the code generator should be prepared
3101 -- to accept a statement in this position.
3102
3103 ----------------------------
3104 -- 3.11 Declarative Item --
3105 ----------------------------
3106
3107 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3108
3109 ----------------------------------
3110 -- 3.11 Basic Declarative Item --
3111 ----------------------------------
3112
3113 -- BASIC_DECLARATIVE_ITEM ::=
3114 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3115
3116 ----------------
3117 -- 3.11 Body --
3118 ----------------
3119
3120 -- BODY ::= PROPER_BODY | BODY_STUB
3121
3122 -----------------------
3123 -- 3.11 Proper Body --
3124 -----------------------
3125
3126 -- PROPER_BODY ::=
3127 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3128
3129 ---------------
3130 -- 4.1 Name --
3131 ---------------
3132
3133 -- NAME ::=
3134 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3135 -- | INDEXED_COMPONENT | SLICE
3136 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3137 -- | TYPE_CONVERSION | FUNCTION_CALL
3138 -- | CHARACTER_LITERAL
3139
3140 ----------------------
3141 -- 4.1 Direct Name --
3142 ----------------------
3143
3144 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3145
3146 -----------------
3147 -- 4.1 Prefix --
3148 -----------------
3149
3150 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3151
3152 -------------------------------
3153 -- 4.1 Explicit Dereference --
3154 -------------------------------
3155
3156 -- EXPLICIT_DEREFERENCE ::= NAME . all
3157
3158 -- N_Explicit_Dereference
3159 -- Sloc points to ALL
3160 -- Prefix (Node3)
3161 -- Actual_Designated_Subtype (Node4-Sem)
3162 -- plus fields for expression
3163
3164 -------------------------------
3165 -- 4.1 Implicit Dereference --
3166 -------------------------------
3167
3168 -- IMPLICIT_DEREFERENCE ::= NAME
3169
3170 ------------------------------
3171 -- 4.1.1 Indexed Component --
3172 ------------------------------
3173
3174 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3175
3176 -- Note: the parser may generate this node in some situations where it
3177 -- should be a function call. The semantic pass must correct this
3178 -- misidentification (which is inevitable at the parser level).
3179
3180 -- N_Indexed_Component
3181 -- Sloc contains a copy of the Sloc value of the Prefix
3182 -- Prefix (Node3)
3183 -- Expressions (List1)
3184 -- plus fields for expression
3185
3186 -- Note: if any of the subscripts requires a range check, then the
3187 -- Do_Range_Check flag is set on the corresponding expression, with
3188 -- the index type being determined from the type of the Prefix, which
3189 -- references the array being indexed.
3190
3191 -- Note: in a fully analyzed and expanded indexed component node, and
3192 -- hence in any such node that gigi sees, if the prefix is an access
3193 -- type, then an explicit dereference operation has been inserted.
3194
3195 ------------------
3196 -- 4.1.2 Slice --
3197 ------------------
3198
3199 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3200
3201 -- Note: an implicit subtype is created to describe the resulting
3202 -- type, so that the bounds of this type are the bounds of the slice.
3203
3204 -- N_Slice
3205 -- Sloc points to first token of prefix
3206 -- Prefix (Node3)
3207 -- Discrete_Range (Node4)
3208 -- plus fields for expression
3209
3210 -------------------------------
3211 -- 4.1.3 Selected Component --
3212 -------------------------------
3213
3214 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3215
3216 -- Note: selected components that are semantically expanded names get
3217 -- changed during semantic processing into the separate N_Expanded_Name
3218 -- node. See description of this node in the section on semantic nodes.
3219
3220 -- N_Selected_Component
3221 -- Sloc points to period
3222 -- Prefix (Node3)
3223 -- Selector_Name (Node2)
3224 -- Associated_Node (Node4-Sem)
3225 -- Do_Discriminant_Check (Flag13-Sem)
3226 -- Is_In_Discriminant_Check (Flag11-Sem)
3227 -- plus fields for expression
3228
3229 --------------------------
3230 -- 4.1.3 Selector Name --
3231 --------------------------
3232
3233 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3234
3235 --------------------------------
3236 -- 4.1.4 Attribute Reference --
3237 --------------------------------
3238
3239 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3240
3241 -- Note: the syntax is quite ambiguous at this point. Consider:
3242
3243 -- A'Length (X) X is part of the attribute designator
3244 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3245 -- A'Class (X) X is the expression of a type conversion
3246
3247 -- It would be possible for the parser to distinguish these cases
3248 -- by looking at the attribute identifier. However, that would mean
3249 -- more work in introducing new implementation defined attributes,
3250 -- and also it would mean that special processing for attributes
3251 -- would be scattered around, instead of being centralized in the
3252 -- semantic routine that handles an N_Attribute_Reference node.
3253 -- Consequently, the parser in all the above cases stores the
3254 -- expression (X in these examples) as a single element list in
3255 -- in the Expressions field of the N_Attribute_Reference node.
3256
3257 -- Similarly, for attributes like Max which take two arguments,
3258 -- we store the two arguments as a two element list in the
3259 -- Expressions field. Of course it is clear at parse time that
3260 -- this case is really a function call with an attribute as the
3261 -- prefix, but it turns out to be convenient to handle the two
3262 -- argument case in a similar manner to the one argument case,
3263 -- and indeed in general the parser will accept any number of
3264 -- expressions in this position and store them as a list in the
3265 -- attribute reference node. This allows for future addition of
3266 -- attributes that take more than two arguments.
3267
3268 -- Note: named associates are not permitted in function calls where
3269 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3270 -- to skip the normal subprogram argument processing.
3271
3272 -- Note: for the attributes whose designators are technically keywords,
3273 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3274 -- the corresponding name, even though no identifier is involved.
3275
3276 -- Note: the generated code may contain stream attributes applied to
3277 -- limited types for which no stream routines exist officially. In such
3278 -- case, the result is to use the stream attribute for the underlying
3279 -- full type, or in the case of a protected type, the components
3280 -- (including any discriminants) are merely streamed in order.
3281
3282 -- See Exp_Attr for a complete description of which attributes are
3283 -- passed onto Gigi, and which are handled entirely by the front end.
3284
3285 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3286 -- a non-standard enumeration type or a nonzero/zero semantics
3287 -- boolean type, so the value is simply the stored representation.
3288
3289 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3290 -- references a subprogram that is a renaming, then the front end must
3291 -- rewrite the attribute to refer directly to the renamed entity.
3292
3293 -- Note: In generated code, the Address and Unrestricted_Access
3294 -- attributes can be applied to any expression, and the meaning is
3295 -- to create an object containing the value (the object is in the
3296 -- current stack frame), and pass the address of this value. If the
3297 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3298 -- is taken must be on a byte (storage unit) boundary, and if it is
3299 -- not (or may not be), then the generated code must create a copy
3300 -- that is byte aligned, and pass the address of this copy.
3301
3302 -- N_Attribute_Reference
3303 -- Sloc points to apostrophe
3304 -- Prefix (Node3)
3305 -- Attribute_Name (Name2) identifier name from attribute designator
3306 -- Expressions (List1) (set to No_List if no associated expressions)
3307 -- Entity (Node4-Sem) used if the attribute yields a type
3308 -- Associated_Node (Node4-Sem)
3309 -- Do_Overflow_Check (Flag17-Sem)
3310 -- Redundant_Use (Flag13-Sem)
3311 -- Must_Be_Byte_Aligned (Flag14)
3312 -- plus fields for expression
3313
3314 ---------------------------------
3315 -- 4.1.4 Attribute Designator --
3316 ---------------------------------
3317
3318 -- ATTRIBUTE_DESIGNATOR ::=
3319 -- IDENTIFIER [(static_EXPRESSION)]
3320 -- | access | delta | digits
3321
3322 -- There is no explicit node in the tree for an attribute designator.
3323 -- Instead the Attribute_Name and Expressions fields of the parent
3324 -- node (N_Attribute_Reference node) hold the information.
3325
3326 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3327 -- designator, then they are treated as identifiers internally
3328 -- rather than the keywords of the same name.
3329
3330 --------------------------------------
3331 -- 4.1.4 Range Attribute Reference --
3332 --------------------------------------
3333
3334 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3335
3336 -- A range attribute reference is represented in the tree using the
3337 -- normal N_Attribute_Reference node.
3338
3339 ---------------------------------------
3340 -- 4.1.4 Range Attribute Designator --
3341 ---------------------------------------
3342
3343 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3344
3345 -- A range attribute designator is represented in the tree using the
3346 -- normal N_Attribute_Reference node.
3347
3348 --------------------
3349 -- 4.3 Aggregate --
3350 --------------------
3351
3352 -- AGGREGATE ::=
3353 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3354
3355 -----------------------------
3356 -- 4.3.1 Record Aggregate --
3357 -----------------------------
3358
3359 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3360
3361 -- N_Aggregate
3362 -- Sloc points to left parenthesis
3363 -- Expressions (List1) (set to No_List if none or null record case)
3364 -- Component_Associations (List2) (set to No_List if none)
3365 -- Null_Record_Present (Flag17)
3366 -- Aggregate_Bounds (Node3-Sem)
3367 -- Associated_Node (Node4-Sem)
3368 -- Static_Processing_OK (Flag4-Sem)
3369 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3370 -- Expansion_Delayed (Flag11-Sem)
3371 -- Has_Self_Reference (Flag13-Sem)
3372 -- plus fields for expression
3373
3374 -- Note: this structure is used for both record and array aggregates
3375 -- since the two cases are not separable by the parser. The parser
3376 -- makes no attempt to enforce consistency here, so it is up to the
3377 -- semantic phase to make sure that the aggregate is consistent (i.e.
3378 -- that it is not a "half-and-half" case that mixes record and array
3379 -- syntax. In particular, for a record aggregate, the expressions
3380 -- field will be set if there are positional associations.
3381
3382 -- Note: N_Aggregate is not used for all aggregates; in particular,
3383 -- there is a separate node kind for extension aggregates.
3384
3385 -- Note: gigi/gcc can handle array aggregates correctly providing that
3386 -- they are entirely positional, and the array subtype involved has a
3387 -- known at compile time length and is not bit packed, or a convention
3388 -- Fortran array with more than one dimension. If these conditions
3389 -- are not met, then the front end must translate the aggregate into
3390 -- an appropriate set of assignments into a temporary.
3391
3392 -- Note: for the record aggregate case, gigi/gcc can handle all cases of
3393 -- record aggregates, including those for packed, and rep-claused
3394 -- records, and also variant records, providing that there are no
3395 -- variable length fields whose size is not known at compile time, and
3396 -- providing that the aggregate is presented in fully named form.
3397
3398 ----------------------------------------------
3399 -- 4.3.1 Record Component Association List --
3400 ----------------------------------------------
3401
3402 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3403 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3404 -- | null record
3405
3406 -- There is no explicit node in the tree for a record component
3407 -- association list. Instead the Null_Record_Present flag is set in
3408 -- the parent node for the NULL RECORD case.
3409
3410 ------------------------------------------------------
3411 -- 4.3.1 Record Component Association (also 4.3.3) --
3412 ------------------------------------------------------
3413
3414 -- RECORD_COMPONENT_ASSOCIATION ::=
3415 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3416
3417 -- N_Component_Association
3418 -- Sloc points to first selector name
3419 -- Choices (List1)
3420 -- Loop_Actions (List2-Sem)
3421 -- Expression (Node3)
3422 -- Box_Present (Flag15)
3423 -- Inherited_Discriminant (Flag13)
3424
3425 -- Note: this structure is used for both record component associations
3426 -- and array component associations, since the two cases aren't always
3427 -- separable by the parser. The choices list may represent either a
3428 -- list of selector names in the record aggregate case, or a list of
3429 -- discrete choices in the array aggregate case or an N_Others_Choice
3430 -- node (which appears as a singleton list). Box_Present gives support
3431 -- to Ada 2005 (AI-287).
3432
3433 ----------------------------------
3434 -- 4.3.1 Component Choice List --
3435 ----------------------------------
3436
3437 -- COMPONENT_CHOICE_LIST ::=
3438 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3439 -- | others
3440
3441 -- The entries of a component choice list appear in the Choices list of
3442 -- the associated N_Component_Association, as either selector names, or
3443 -- as an N_Others_Choice node.
3444
3445 --------------------------------
3446 -- 4.3.2 Extension Aggregate --
3447 --------------------------------
3448
3449 -- EXTENSION_AGGREGATE ::=
3450 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3451
3452 -- Note: extension aggregates are not permitted in Ada 83 mode
3453
3454 -- N_Extension_Aggregate
3455 -- Sloc points to left parenthesis
3456 -- Ancestor_Part (Node3)
3457 -- Associated_Node (Node4-Sem)
3458 -- Expressions (List1) (set to No_List if none or null record case)
3459 -- Component_Associations (List2) (set to No_List if none)
3460 -- Null_Record_Present (Flag17)
3461 -- Expansion_Delayed (Flag11-Sem)
3462 -- Has_Self_Reference (Flag13-Sem)
3463 -- plus fields for expression
3464
3465 --------------------------
3466 -- 4.3.2 Ancestor Part --
3467 --------------------------
3468
3469 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3470
3471 ----------------------------
3472 -- 4.3.3 Array Aggregate --
3473 ----------------------------
3474
3475 -- ARRAY_AGGREGATE ::=
3476 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3477
3478 ---------------------------------------
3479 -- 4.3.3 Positional Array Aggregate --
3480 ---------------------------------------
3481
3482 -- POSITIONAL_ARRAY_AGGREGATE ::=
3483 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3484 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3485
3486 -- See Record_Aggregate (4.3.1) for node structure
3487
3488 ----------------------------------
3489 -- 4.3.3 Named Array Aggregate --
3490 ----------------------------------
3491
3492 -- NAMED_ARRAY_AGGREGATE ::=
3493 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3494
3495 -- See Record_Aggregate (4.3.1) for node structure
3496
3497 ----------------------------------------
3498 -- 4.3.3 Array Component Association --
3499 ----------------------------------------
3500
3501 -- ARRAY_COMPONENT_ASSOCIATION ::=
3502 -- DISCRETE_CHOICE_LIST => EXPRESSION
3503
3504 -- See Record_Component_Association (4.3.1) for node structure
3505
3506 --------------------------------------------------
3507 -- 4.4 Expression/Relation/Term/Factor/Primary --
3508 --------------------------------------------------
3509
3510 -- EXPRESSION ::=
3511 -- RELATION {and RELATION} | RELATION {and then RELATION}
3512 -- | RELATION {or RELATION} | RELATION {or else RELATION}
3513 -- | RELATION {xor RELATION}
3514
3515 -- RELATION ::=
3516 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3517 -- | SIMPLE_EXPRESSION [not] in RANGE
3518 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3519
3520 -- SIMPLE_EXPRESSION ::=
3521 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3522
3523 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3524
3525 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3526
3527 -- No nodes are generated for any of these constructs. Instead, the
3528 -- node for the operator appears directly. When we refer to an
3529 -- expression in this description, we mean any of the possible
3530 -- constituent components of an expression (e.g. identifier is
3531 -- an example of an expression).
3532
3533 ------------------
3534 -- 4.4 Primary --
3535 ------------------
3536
3537 -- PRIMARY ::=
3538 -- NUMERIC_LITERAL | null
3539 -- | STRING_LITERAL | AGGREGATE
3540 -- | NAME | QUALIFIED_EXPRESSION
3541 -- | ALLOCATOR | (EXPRESSION)
3542
3543 -- Usually there is no explicit node in the tree for primary. Instead
3544 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3545 -- exceptions. First, there is an explicit node for a null primary.
3546
3547 -- N_Null
3548 -- Sloc points to NULL
3549 -- plus fields for expression
3550
3551 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3552 -- that the parser keep track of which subexpressions are enclosed
3553 -- in parentheses, and how many levels of parentheses are used. This
3554 -- information is required for optimization purposes, and also for
3555 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3556 -- conform with ((((1)))) in the body).
3557
3558 -- The parentheses are recorded by keeping a Paren_Count field in every
3559 -- subexpression node (it is actually present in all nodes, but only
3560 -- used in subexpression nodes). This count records the number of
3561 -- levels of parentheses. If the number of levels in the source exceeds
3562 -- the maximum accommodated by this count, then the count is simply left
3563 -- at the maximum value. This means that there are some pathological
3564 -- cases of failure to detect conformance failures (e.g. an expression
3565 -- with 500 levels of parens will conform with one with 501 levels),
3566 -- but we do not need to lose sleep over this.
3567
3568 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3569 -- type N_Parenthesized_Expression used to accurately record unlimited
3570 -- numbers of levels of parentheses. However, it turned out to be a
3571 -- real nuisance to have to take into account the possible presence of
3572 -- this node during semantic analysis, since basically parentheses have
3573 -- zero relevance to semantic analysis.
3574
3575 -- Note: the level of parentheses always present in things like
3576 -- aggregates does not count, only the parentheses in the primary
3577 -- (EXPRESSION) affect the setting of the Paren_Count field.
3578
3579 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3580 -- treated as though it were Empty) if No_Initialization is set True.
3581
3582 --------------------------------------
3583 -- 4.5 Short Circuit Control Forms --
3584 --------------------------------------
3585
3586 -- EXPRESSION ::=
3587 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3588
3589 -- Gigi restriction: For both these control forms, the operand and
3590 -- result types are always Standard.Boolean. The expander inserts the
3591 -- required conversion operations where needed to ensure this is the
3592 -- case.
3593
3594 -- N_And_Then
3595 -- Sloc points to AND of AND THEN
3596 -- Left_Opnd (Node2)
3597 -- Right_Opnd (Node3)
3598 -- Actions (List1-Sem)
3599 -- plus fields for expression
3600
3601 -- N_Or_Else
3602 -- Sloc points to OR of OR ELSE
3603 -- Left_Opnd (Node2)
3604 -- Right_Opnd (Node3)
3605 -- Actions (List1-Sem)
3606 -- plus fields for expression
3607
3608 -- Note: The Actions field is used to hold actions associated with
3609 -- the right hand operand. These have to be treated specially since
3610 -- they are not unconditionally executed. See Insert_Actions for a
3611 -- more detailed description of how these actions are handled.
3612
3613 ---------------------------
3614 -- 4.5 Membership Tests --
3615 ---------------------------
3616
3617 -- RELATION ::=
3618 -- SIMPLE_EXPRESSION [not] in RANGE
3619 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3620
3621 -- Note: although the grammar above allows only a range or a subtype
3622 -- mark, the parser in fact will accept any simple expression in place
3623 -- of a subtype mark. This means that the semantic analyzer must be able
3624 -- to deal with, and diagnose a simple expression other than a name for
3625 -- the right operand. This simplifies error recovery in the parser.
3626
3627 -- If extensions are enabled, the grammar is as follows:
3628
3629 -- RELATION ::=
3630 -- SIMPLE_EXPRESSION [not] in SET_ALTERNATIVE {| SET_ALTERNATIVE}
3631
3632 -- SET_ALTERNATIVE ::= RANGE | SUBTYPE_MARK
3633
3634 -- The Alternatives field below is present only if there is more than
3635 -- one Set_Alternative present, in which case Right_Opnd is set to
3636 -- Empty, and Alternatives contains the list of alternatives. In the
3637 -- tree passed to the back end, Alternatives is always No_List, and
3638 -- Right_Opnd is set (i.e. the expansion circuitry expands out the
3639 -- complex set membership case using simple membership operations).
3640
3641 -- N_In
3642 -- Sloc points to IN
3643 -- Left_Opnd (Node2)
3644 -- Right_Opnd (Node3)
3645 -- Alternatives (List4) (set to No_List if only one set alternative)
3646 -- plus fields for expression
3647
3648 -- N_Not_In
3649 -- Sloc points to NOT of NOT IN
3650 -- Left_Opnd (Node2)
3651 -- Right_Opnd (Node3)
3652 -- Alternatives (List4) (set to No_List if only one set alternative)
3653 -- plus fields for expression
3654
3655 --------------------
3656 -- 4.5 Operators --
3657 --------------------
3658
3659 -- LOGICAL_OPERATOR ::= and | or | xor
3660
3661 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3662
3663 -- BINARY_ADDING_OPERATOR ::= + | - | &
3664
3665 -- UNARY_ADDING_OPERATOR ::= + | -
3666
3667 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3668
3669 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3670
3671 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3672
3673 -- x #* y
3674 -- x #/ y
3675 -- x #mod y
3676 -- x #rem y
3677
3678 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3679 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3680 -- All handling of smalls for multiplication and division is handled
3681 -- by the front end (mod and rem result only from expansion). Gigi
3682 -- thus never needs to worry about small values (for other operators
3683 -- operating on fixed-point, e.g. addition, the small value does not
3684 -- have any semantic effect anyway, these are always integer operations.
3685
3686 -- Gigi restriction: For all operators taking Boolean operands, the
3687 -- type is always Standard.Boolean. The expander inserts the required
3688 -- conversion operations where needed to ensure this is the case.
3689
3690 -- N_Op_And
3691 -- Sloc points to AND
3692 -- Do_Length_Check (Flag4-Sem)
3693 -- plus fields for binary operator
3694 -- plus fields for expression
3695
3696 -- N_Op_Or
3697 -- Sloc points to OR
3698 -- Do_Length_Check (Flag4-Sem)
3699 -- plus fields for binary operator
3700 -- plus fields for expression
3701
3702 -- N_Op_Xor
3703 -- Sloc points to XOR
3704 -- Do_Length_Check (Flag4-Sem)
3705 -- plus fields for binary operator
3706 -- plus fields for expression
3707
3708 -- N_Op_Eq
3709 -- Sloc points to =
3710 -- plus fields for binary operator
3711 -- plus fields for expression
3712
3713 -- N_Op_Ne
3714 -- Sloc points to /=
3715 -- plus fields for binary operator
3716 -- plus fields for expression
3717
3718 -- N_Op_Lt
3719 -- Sloc points to <
3720 -- plus fields for binary operator
3721 -- plus fields for expression
3722
3723 -- N_Op_Le
3724 -- Sloc points to <=
3725 -- plus fields for binary operator
3726 -- plus fields for expression
3727
3728 -- N_Op_Gt
3729 -- Sloc points to >
3730 -- plus fields for binary operator
3731 -- plus fields for expression
3732
3733 -- N_Op_Ge
3734 -- Sloc points to >=
3735 -- plus fields for binary operator
3736 -- plus fields for expression
3737
3738 -- N_Op_Add
3739 -- Sloc points to + (binary)
3740 -- plus fields for binary operator
3741 -- plus fields for expression
3742
3743 -- N_Op_Subtract
3744 -- Sloc points to - (binary)
3745 -- plus fields for binary operator
3746 -- plus fields for expression
3747
3748 -- N_Op_Concat
3749 -- Sloc points to &
3750 -- Is_Component_Left_Opnd (Flag13-Sem)
3751 -- Is_Component_Right_Opnd (Flag14-Sem)
3752 -- plus fields for binary operator
3753 -- plus fields for expression
3754
3755 -- N_Op_Multiply
3756 -- Sloc points to *
3757 -- Treat_Fixed_As_Integer (Flag14-Sem)
3758 -- Rounded_Result (Flag18-Sem)
3759 -- plus fields for binary operator
3760 -- plus fields for expression
3761
3762 -- N_Op_Divide
3763 -- Sloc points to /
3764 -- Treat_Fixed_As_Integer (Flag14-Sem)
3765 -- Do_Division_Check (Flag13-Sem)
3766 -- Rounded_Result (Flag18-Sem)
3767 -- plus fields for binary operator
3768 -- plus fields for expression
3769
3770 -- N_Op_Mod
3771 -- Sloc points to MOD
3772 -- Treat_Fixed_As_Integer (Flag14-Sem)
3773 -- Do_Division_Check (Flag13-Sem)
3774 -- plus fields for binary operator
3775 -- plus fields for expression
3776
3777 -- N_Op_Rem
3778 -- Sloc points to REM
3779 -- Treat_Fixed_As_Integer (Flag14-Sem)
3780 -- Do_Division_Check (Flag13-Sem)
3781 -- plus fields for binary operator
3782 -- plus fields for expression
3783
3784 -- N_Op_Expon
3785 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
3786 -- Sloc points to **
3787 -- plus fields for binary operator
3788 -- plus fields for expression
3789
3790 -- N_Op_Plus
3791 -- Sloc points to + (unary)
3792 -- plus fields for unary operator
3793 -- plus fields for expression
3794
3795 -- N_Op_Minus
3796 -- Sloc points to - (unary)
3797 -- plus fields for unary operator
3798 -- plus fields for expression
3799
3800 -- N_Op_Abs
3801 -- Sloc points to ABS
3802 -- plus fields for unary operator
3803 -- plus fields for expression
3804
3805 -- N_Op_Not
3806 -- Sloc points to NOT
3807 -- plus fields for unary operator
3808 -- plus fields for expression
3809
3810 -- See also shift operators in section B.2
3811
3812 -- Note on fixed-point operations passed to Gigi: For adding operators,
3813 -- the semantics is to treat these simply as integer operations, with
3814 -- the small values being ignored (the bounds are already stored in
3815 -- units of small, so that constraint checking works as usual). For the
3816 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
3817 -- point operands if the Treat_Fixed_As_Integer flag is set and will
3818 -- thus treat these nodes in identical manner, ignoring small values.
3819
3820 ---------------------------------
3821 -- 4.5.9 Quantified Expression --
3822 ---------------------------------
3823
3824 -- QUANTIFIED_EXPRESSION ::=
3825 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
3826 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
3827 --
3828 -- QUANTIFIER ::= all | some
3829
3830 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
3831 -- is present at a time, in which case the other one is empty.
3832
3833 -- N_Quantified_Expression
3834 -- Sloc points to FOR
3835 -- Iterator_Specification (Node2)
3836 -- Loop_Parameter_Specification (Node4)
3837 -- Condition (Node1)
3838 -- All_Present (Flag15)
3839
3840 --------------------------
3841 -- 4.6 Type Conversion --
3842 --------------------------
3843
3844 -- TYPE_CONVERSION ::=
3845 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3846
3847 -- In the (NAME) case, the name is stored as the expression
3848
3849 -- Note: the parser never generates a type conversion node, since it
3850 -- looks like an indexed component which is generated by preference.
3851 -- The semantic pass must correct this misidentification.
3852
3853 -- Gigi handles conversions that involve no change in the root type,
3854 -- and also all conversions from integer to floating-point types.
3855 -- Conversions from floating-point to integer are only handled in
3856 -- the case where Float_Truncate flag set. Other conversions from
3857 -- floating-point to integer (involving rounding) and all conversions
3858 -- involving fixed-point types are handled by the expander.
3859
3860 -- Sprint syntax if Float_Truncate set: X^(Y)
3861 -- Sprint syntax if Conversion_OK set X?(Y)
3862 -- Sprint syntax if both flags set X?^(Y)
3863
3864 -- Note: If either the operand or result type is fixed-point, Gigi will
3865 -- only see a type conversion node with Conversion_OK set. The front end
3866 -- takes care of all handling of small's for fixed-point conversions.
3867
3868 -- N_Type_Conversion
3869 -- Sloc points to first token of subtype mark
3870 -- Subtype_Mark (Node4)
3871 -- Expression (Node3)
3872 -- Do_Tag_Check (Flag13-Sem)
3873 -- Do_Length_Check (Flag4-Sem)
3874 -- Do_Overflow_Check (Flag17-Sem)
3875 -- Float_Truncate (Flag11-Sem)
3876 -- Rounded_Result (Flag18-Sem)
3877 -- Conversion_OK (Flag14-Sem)
3878 -- plus fields for expression
3879
3880 -- Note: if a range check is required, then the Do_Range_Check flag
3881 -- is set in the Expression with the check being done against the
3882 -- target type range (after the base type conversion, if any).
3883
3884 -------------------------------
3885 -- 4.7 Qualified Expression --
3886 -------------------------------
3887
3888 -- QUALIFIED_EXPRESSION ::=
3889 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3890
3891 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3892 -- the expression, so the Expression field of this node always points
3893 -- to a parenthesized expression in this case (i.e. Paren_Count will
3894 -- always be non-zero for the referenced expression if it is not an
3895 -- aggregate).
3896
3897 -- N_Qualified_Expression
3898 -- Sloc points to apostrophe
3899 -- Subtype_Mark (Node4)
3900 -- Expression (Node3) expression or aggregate
3901 -- plus fields for expression
3902
3903 --------------------
3904 -- 4.8 Allocator --
3905 --------------------
3906
3907 -- ALLOCATOR ::=
3908 -- new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3909
3910 -- Sprint syntax (when storage pool present)
3911 -- new xxx (storage_pool = pool)
3912
3913 -- N_Allocator
3914 -- Sloc points to NEW
3915 -- Expression (Node3) subtype indication or qualified expression
3916 -- Storage_Pool (Node1-Sem)
3917 -- Procedure_To_Call (Node2-Sem)
3918 -- Coextensions (Elist4-Sem)
3919 -- Null_Exclusion_Present (Flag11)
3920 -- No_Initialization (Flag13-Sem)
3921 -- Is_Static_Coextension (Flag14-Sem)
3922 -- Do_Storage_Check (Flag17-Sem)
3923 -- Is_Dynamic_Coextension (Flag18-Sem)
3924 -- plus fields for expression
3925
3926 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
3927 -- This flag has a special function in conjunction with the restriction
3928 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
3929 -- is not set. This means that if a source allocator is replaced with
3930 -- a constructed allocator, the Comes_From_Source flag should be copied
3931 -- to the newly created allocator.
3932
3933 ---------------------------------
3934 -- 5.1 Sequence Of Statements --
3935 ---------------------------------
3936
3937 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3938
3939 -- Note: Although the parser will not accept a declaration as a
3940 -- statement, the semantic analyzer may insert declarations (e.g.
3941 -- declarations of implicit types needed for execution of other
3942 -- statements) into a sequence of statements, so the code generator
3943 -- should be prepared to accept a declaration where a statement is
3944 -- expected. Note also that pragmas can appear as statements.
3945
3946 --------------------
3947 -- 5.1 Statement --
3948 --------------------
3949
3950 -- STATEMENT ::=
3951 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3952
3953 -- There is no explicit node in the tree for a statement. Instead, the
3954 -- individual statement appears directly. Labels are treated as a
3955 -- kind of statement, i.e. they are linked into a statement list at
3956 -- the point they appear, so the labeled statement appears following
3957 -- the label or labels in the statement list.
3958
3959 ---------------------------
3960 -- 5.1 Simple Statement --
3961 ---------------------------
3962
3963 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
3964 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
3965 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
3966 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3967 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
3968 -- | ABORT_STATEMENT | RAISE_STATEMENT
3969 -- | CODE_STATEMENT
3970
3971 -----------------------------
3972 -- 5.1 Compound Statement --
3973 -----------------------------
3974
3975 -- COMPOUND_STATEMENT ::=
3976 -- IF_STATEMENT | CASE_STATEMENT
3977 -- | LOOP_STATEMENT | BLOCK_STATEMENT
3978 -- | EXTENDED_RETURN_STATEMENT
3979 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
3980
3981 -------------------------
3982 -- 5.1 Null Statement --
3983 -------------------------
3984
3985 -- NULL_STATEMENT ::= null;
3986
3987 -- N_Null_Statement
3988 -- Sloc points to NULL
3989
3990 ----------------
3991 -- 5.1 Label --
3992 ----------------
3993
3994 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3995
3996 -- Note that the occurrence of a label is not a defining identifier,
3997 -- but rather a referencing occurrence. The defining occurrence is
3998 -- in the implicit label declaration which occurs in the innermost
3999 -- enclosing block.
4000
4001 -- N_Label
4002 -- Sloc points to <<
4003 -- Identifier (Node1) direct name of statement identifier
4004 -- Exception_Junk (Flag8-Sem)
4005
4006 -- Note: Before Ada 2012, a label is always followed by a statement,
4007 -- and this is true in the tree even in Ada 2012 mode (the parser
4008 -- inserts a null statement marked with Comes_From_Source False).
4009
4010 -------------------------------
4011 -- 5.1 Statement Identifier --
4012 -------------------------------
4013
4014 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4015
4016 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4017 -- (not an OPERATOR_SYMBOL)
4018
4019 -------------------------------
4020 -- 5.2 Assignment Statement --
4021 -------------------------------
4022
4023 -- ASSIGNMENT_STATEMENT ::=
4024 -- variable_NAME := EXPRESSION;
4025
4026 -- N_Assignment_Statement
4027 -- Sloc points to :=
4028 -- Name (Node2)
4029 -- Expression (Node3)
4030 -- Do_Tag_Check (Flag13-Sem)
4031 -- Do_Length_Check (Flag4-Sem)
4032 -- Forwards_OK (Flag5-Sem)
4033 -- Backwards_OK (Flag6-Sem)
4034 -- No_Ctrl_Actions (Flag7-Sem)
4035 -- Componentwise_Assignment (Flag14-Sem)
4036
4037 -- Note: if a range check is required, then the Do_Range_Check flag
4038 -- is set in the Expression (right hand side), with the check being
4039 -- done against the type of the Name (left hand side).
4040
4041 -- Note: the back end places some restrictions on the form of the
4042 -- Expression field. If the object being assigned to is Atomic, then
4043 -- the Expression may not have the form of an aggregate (since this
4044 -- might cause the back end to generate separate assignments). In this
4045 -- case the front end must generate an extra temporary and initialize
4046 -- this temporary as required (the temporary itself is not atomic).
4047
4048 -----------------------
4049 -- 5.3 If Statement --
4050 -----------------------
4051
4052 -- IF_STATEMENT ::=
4053 -- if CONDITION then
4054 -- SEQUENCE_OF_STATEMENTS
4055 -- {elsif CONDITION then
4056 -- SEQUENCE_OF_STATEMENTS}
4057 -- [else
4058 -- SEQUENCE_OF_STATEMENTS]
4059 -- end if;
4060
4061 -- Gigi restriction: This expander ensures that the type of the
4062 -- Condition fields is always Standard.Boolean, even if the type
4063 -- in the source is some non-standard boolean type.
4064
4065 -- N_If_Statement
4066 -- Sloc points to IF
4067 -- Condition (Node1)
4068 -- Then_Statements (List2)
4069 -- Elsif_Parts (List3) (set to No_List if none present)
4070 -- Else_Statements (List4) (set to No_List if no else part present)
4071 -- End_Span (Uint5) (set to No_Uint if expander generated)
4072
4073 -- N_Elsif_Part
4074 -- Sloc points to ELSIF
4075 -- Condition (Node1)
4076 -- Then_Statements (List2)
4077 -- Condition_Actions (List3-Sem)
4078
4079 --------------------
4080 -- 5.3 Condition --
4081 --------------------
4082
4083 -- CONDITION ::= boolean_EXPRESSION
4084
4085 -------------------------
4086 -- 5.4 Case Statement --
4087 -------------------------
4088
4089 -- CASE_STATEMENT ::=
4090 -- case EXPRESSION is
4091 -- CASE_STATEMENT_ALTERNATIVE
4092 -- {CASE_STATEMENT_ALTERNATIVE}
4093 -- end case;
4094
4095 -- Note: the Alternatives can contain pragmas. These only occur at
4096 -- the start of the list, since any pragmas occurring after the first
4097 -- alternative are absorbed into the corresponding statement sequence.
4098
4099 -- N_Case_Statement
4100 -- Sloc points to CASE
4101 -- Expression (Node3)
4102 -- Alternatives (List4)
4103 -- End_Span (Uint5) (set to No_Uint if expander generated)
4104
4105 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4106 -- followed by a statement, and this is true in the tree even in Ada
4107 -- 2012 mode (the parser inserts a null statement marked with the flag
4108 -- Comes_From_Source False).
4109
4110 -------------------------------------
4111 -- 5.4 Case Statement Alternative --
4112 -------------------------------------
4113
4114 -- CASE_STATEMENT_ALTERNATIVE ::=
4115 -- when DISCRETE_CHOICE_LIST =>
4116 -- SEQUENCE_OF_STATEMENTS
4117
4118 -- N_Case_Statement_Alternative
4119 -- Sloc points to WHEN
4120 -- Discrete_Choices (List4)
4121 -- Statements (List3)
4122
4123 -------------------------
4124 -- 5.5 Loop Statement --
4125 -------------------------
4126
4127 -- LOOP_STATEMENT ::=
4128 -- [loop_STATEMENT_IDENTIFIER :]
4129 -- [ITERATION_SCHEME] loop
4130 -- SEQUENCE_OF_STATEMENTS
4131 -- end loop [loop_IDENTIFIER];
4132
4133 -- Note: The occurrence of a loop label is not a defining identifier
4134 -- but rather a referencing occurrence. The defining occurrence is in
4135 -- the implicit label declaration which occurs in the innermost
4136 -- enclosing block.
4137
4138 -- Note: there is always a loop statement identifier present in
4139 -- the tree, even if none was given in the source. In the case where
4140 -- no loop identifier is given in the source, the parser creates
4141 -- a name of the form _Loop_n, where n is a decimal integer (the
4142 -- two underlines ensure that the loop names created in this manner
4143 -- do not conflict with any user defined identifiers), and the flag
4144 -- Has_Created_Identifier is set to True. The only exception to the
4145 -- rule that all loop statement nodes have identifiers occurs for
4146 -- loops constructed by the expander, and the semantic analyzer will
4147 -- create and supply dummy loop identifiers in these cases.
4148
4149 -- N_Loop_Statement
4150 -- Sloc points to LOOP
4151 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4152 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4153 -- Statements (List3)
4154 -- End_Label (Node4)
4155 -- Has_Created_Identifier (Flag15)
4156 -- Is_Null_Loop (Flag16)
4157 -- Suppress_Loop_Warnings (Flag17)
4158
4159 -- Note: the parser fills in the Identifier field if there is an
4160 -- explicit loop identifier. Otherwise the parser leaves this field
4161 -- set to Empty, and then the semantic processing for a loop statement
4162 -- creates an identifier, setting the Has_Created_Identifier flag to
4163 -- True. So after semantic anlaysis, the Identifier is always set,
4164 -- referencing an identifier whose entity has an Ekind of E_Loop.
4165
4166 --------------------------
4167 -- 5.5 Iteration Scheme --
4168 --------------------------
4169
4170 -- ITERATION_SCHEME ::=
4171 -- while CONDITION
4172 -- | for LOOP_PARAMETER_SPECIFICATION
4173 -- | for ITERATOR_SPECIFICATION
4174
4175 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4176 -- is present at a time, in which case the other one is empty. Both are
4177 -- empty in the case of a WHILE loop.
4178
4179 -- Gigi restriction: This expander ensures that the type of the
4180 -- Condition field is always Standard.Boolean, even if the type
4181 -- in the source is some non-standard boolean type.
4182
4183 -- N_Iteration_Scheme
4184 -- Sloc points to WHILE or FOR
4185 -- Condition (Node1) (set to Empty if FOR case)
4186 -- Condition_Actions (List3-Sem)
4187 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
4188 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4189
4190 ---------------------------------------
4191 -- 5.5 Loop parameter specification --
4192 ---------------------------------------
4193
4194 -- LOOP_PARAMETER_SPECIFICATION ::=
4195 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4196
4197 -- N_Loop_Parameter_Specification
4198 -- Sloc points to first identifier
4199 -- Defining_Identifier (Node1)
4200 -- Reverse_Present (Flag15)
4201 -- Discrete_Subtype_Definition (Node4)
4202
4203 ----------------------------------
4204 -- 5.5.1 Iterator specification --
4205 ----------------------------------
4206
4207 -- ITERATOR_SPECIFICATION ::=
4208 -- DEFINING_IDENTIFIER in [reverse] NAME
4209 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4210
4211 -- N_Iterator_Specification
4212 -- Sloc points to defining identifier
4213 -- Defining_Identifier (Node1)
4214 -- Name (Node2)
4215 -- Reverse_Present (Flag15)
4216 -- Of_Present (Flag16)
4217 -- Subtype_Indication (Node5)
4218
4219 -- Note: The Of_Present flag distinguishes the two forms
4220
4221 --------------------------
4222 -- 5.6 Block Statement --
4223 --------------------------
4224
4225 -- BLOCK_STATEMENT ::=
4226 -- [block_STATEMENT_IDENTIFIER:]
4227 -- [declare
4228 -- DECLARATIVE_PART]
4229 -- begin
4230 -- HANDLED_SEQUENCE_OF_STATEMENTS
4231 -- end [block_IDENTIFIER];
4232
4233 -- Note that the occurrence of a block identifier is not a defining
4234 -- identifier, but rather a referencing occurrence. The defining
4235 -- occurrence is an E_Block entity declared by the implicit label
4236 -- declaration which occurs in the innermost enclosing block statement
4237 -- or body; the block identifier denotes that E_Block.
4238
4239 -- For block statements that come from source code, there is always a
4240 -- block statement identifier present in the tree, denoting an
4241 -- E_Block. In the case where no block identifier is given in the
4242 -- source, the parser creates a name of the form B_n, where n is a
4243 -- decimal integer, and the flag Has_Created_Identifier is set to
4244 -- True. Blocks constructed by the expander usually have no identifier,
4245 -- and no corresponding entity.
4246
4247 -- Note: the block statement created for an extended return statement
4248 -- has an entity, and this entity is an E_Return_Statement, rather than
4249 -- the usual E_Block.
4250
4251 -- Note: Exception_Junk is set for the wrapping blocks created during
4252 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4253
4254 -- N_Block_Statement
4255 -- Sloc points to DECLARE or BEGIN
4256 -- Identifier (Node1) block direct name (set to Empty if not present)
4257 -- Declarations (List2) (set to No_List if no DECLARE part)
4258 -- Handled_Statement_Sequence (Node4)
4259 -- Is_Task_Master (Flag5-Sem)
4260 -- Activation_Chain_Entity (Node3-Sem)
4261 -- Has_Created_Identifier (Flag15)
4262 -- Is_Task_Allocation_Block (Flag6)
4263 -- Is_Asynchronous_Call_Block (Flag7)
4264 -- Exception_Junk (Flag8-Sem)
4265
4266 -------------------------
4267 -- 5.7 Exit Statement --
4268 -------------------------
4269
4270 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4271
4272 -- Gigi restriction: This expander ensures that the type of the
4273 -- Condition field is always Standard.Boolean, even if the type
4274 -- in the source is some non-standard boolean type.
4275
4276 -- N_Exit_Statement
4277 -- Sloc points to EXIT
4278 -- Name (Node2) (set to Empty if no loop name present)
4279 -- Condition (Node1) (set to Empty if no WHEN part present)
4280 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
4281
4282 -------------------------
4283 -- 5.9 Goto Statement --
4284 -------------------------
4285
4286 -- GOTO_STATEMENT ::= goto label_NAME;
4287
4288 -- N_Goto_Statement
4289 -- Sloc points to GOTO
4290 -- Name (Node2)
4291 -- Exception_Junk (Flag8-Sem)
4292
4293 ---------------------------------
4294 -- 6.1 Subprogram Declaration --
4295 ---------------------------------
4296
4297 -- SUBPROGRAM_DECLARATION ::=
4298 -- SUBPROGRAM_SPECIFICATION
4299 -- [ASPECT_SPECIFICATIONS];
4300
4301 -- N_Subprogram_Declaration
4302 -- Sloc points to FUNCTION or PROCEDURE
4303 -- Specification (Node1)
4304 -- Body_To_Inline (Node3-Sem)
4305 -- Corresponding_Body (Node5-Sem)
4306 -- Parent_Spec (Node4-Sem)
4307
4308 ------------------------------------------
4309 -- 6.1 Abstract Subprogram Declaration --
4310 ------------------------------------------
4311
4312 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4313 -- SUBPROGRAM_SPECIFICATION is abstract
4314 -- [ASPECT_SPECIFICATIONS];
4315
4316 -- N_Abstract_Subprogram_Declaration
4317 -- Sloc points to ABSTRACT
4318 -- Specification (Node1)
4319
4320 -----------------------------------
4321 -- 6.1 Subprogram Specification --
4322 -----------------------------------
4323
4324 -- SUBPROGRAM_SPECIFICATION ::=
4325 -- [[not] overriding]
4326 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4327 -- | [[not] overriding]
4328 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4329
4330 -- Note: there are no separate nodes for the profiles, instead the
4331 -- information appears directly in the following nodes.
4332
4333 -- N_Function_Specification
4334 -- Sloc points to FUNCTION
4335 -- Defining_Unit_Name (Node1) (the designator)
4336 -- Elaboration_Boolean (Node2-Sem)
4337 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4338 -- Null_Exclusion_Present (Flag11)
4339 -- Result_Definition (Node4) for result subtype
4340 -- Generic_Parent (Node5-Sem)
4341 -- Must_Override (Flag14) set if overriding indicator present
4342 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4343
4344 -- N_Procedure_Specification
4345 -- Sloc points to PROCEDURE
4346 -- Defining_Unit_Name (Node1)
4347 -- Elaboration_Boolean (Node2-Sem)
4348 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4349 -- Generic_Parent (Node5-Sem)
4350 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4351 -- Must_Override (Flag14) set if overriding indicator present
4352 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4353
4354 -- Note: overriding indicator is an Ada 2005 feature
4355
4356 ---------------------
4357 -- 6.1 Designator --
4358 ---------------------
4359
4360 -- DESIGNATOR ::=
4361 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4362
4363 -- Designators that are simply identifiers or operator symbols appear
4364 -- directly in the tree in this form. The following node is used only
4365 -- in the case where the designator has a parent unit name component.
4366
4367 -- N_Designator
4368 -- Sloc points to period
4369 -- Name (Node2) holds the parent unit name. Note that this is always
4370 -- non-Empty, since this node is only used for the case where a
4371 -- parent library unit package name is present.
4372 -- Identifier (Node1)
4373
4374 -- Note that the identifier can also be an operator symbol here
4375
4376 ------------------------------
4377 -- 6.1 Defining Designator --
4378 ------------------------------
4379
4380 -- DEFINING_DESIGNATOR ::=
4381 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4382
4383 -------------------------------------
4384 -- 6.1 Defining Program Unit Name --
4385 -------------------------------------
4386
4387 -- DEFINING_PROGRAM_UNIT_NAME ::=
4388 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4389
4390 -- The parent unit name is present only in the case of a child unit
4391 -- name (permissible only for Ada 95 for a library level unit, i.e.
4392 -- a unit at scope level one). If no such name is present, the defining
4393 -- program unit name is represented simply as the defining identifier.
4394 -- In the child unit case, the following node is used to represent the
4395 -- child unit name.
4396
4397 -- N_Defining_Program_Unit_Name
4398 -- Sloc points to period
4399 -- Name (Node2) holds the parent unit name. Note that this is always
4400 -- non-Empty, since this node is only used for the case where a
4401 -- parent unit name is present.
4402 -- Defining_Identifier (Node1)
4403
4404 --------------------------
4405 -- 6.1 Operator Symbol --
4406 --------------------------
4407
4408 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4409
4410 -- Note: the fields of the N_Operator_Symbol node are laid out to
4411 -- match the corresponding fields of an N_Character_Literal node. This
4412 -- allows easy conversion of the operator symbol node into a character
4413 -- literal node in the case where a string constant of the form of an
4414 -- operator symbol is scanned out as such, but turns out semantically
4415 -- to be a string literal that is not an operator. For details see
4416 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4417
4418 -- N_Operator_Symbol
4419 -- Sloc points to literal
4420 -- Chars (Name1) contains the Name_Id for the operator symbol
4421 -- Strval (Str3) Id of string value. This is used if the operator
4422 -- symbol turns out to be a normal string after all.
4423 -- Entity (Node4-Sem)
4424 -- Associated_Node (Node4-Sem)
4425 -- Has_Private_View (Flag11-Sem) set in generic units.
4426 -- Etype (Node5-Sem)
4427
4428 -- Note: the Strval field may be set to No_String for generated
4429 -- operator symbols that are known not to be string literals
4430 -- semantically.
4431
4432 -----------------------------------
4433 -- 6.1 Defining Operator Symbol --
4434 -----------------------------------
4435
4436 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4437
4438 -- A defining operator symbol is an entity, which has additional
4439 -- fields depending on the setting of the Ekind field. These
4440 -- additional fields are defined (and access subprograms declared)
4441 -- in package Einfo.
4442
4443 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4444 -- are deliberately layed out to match the layout of fields in an
4445 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4446 -- an operator symbol node into a defining operator symbol node.
4447 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4448 -- for further details.
4449
4450 -- N_Defining_Operator_Symbol
4451 -- Sloc points to literal
4452 -- Chars (Name1) contains the Name_Id for the operator symbol
4453 -- Next_Entity (Node2-Sem)
4454 -- Scope (Node3-Sem)
4455 -- Etype (Node5-Sem)
4456
4457 ----------------------------
4458 -- 6.1 Parameter Profile --
4459 ----------------------------
4460
4461 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4462
4463 ---------------------------------------
4464 -- 6.1 Parameter and Result Profile --
4465 ---------------------------------------
4466
4467 -- PARAMETER_AND_RESULT_PROFILE ::=
4468 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4469 -- | [FORMAL_PART] return ACCESS_DEFINITION
4470
4471 -- There is no explicit node in the tree for a parameter and result
4472 -- profile. Instead the information appears directly in the parent.
4473
4474 ----------------------
4475 -- 6.1 Formal part --
4476 ----------------------
4477
4478 -- FORMAL_PART ::=
4479 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4480
4481 ----------------------------------
4482 -- 6.1 Parameter specification --
4483 ----------------------------------
4484
4485 -- PARAMETER_SPECIFICATION ::=
4486 -- DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4487 -- [:= DEFAULT_EXPRESSION]
4488 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4489 -- [:= DEFAULT_EXPRESSION]
4490
4491 -- Although the syntax allows multiple identifiers in the list, the
4492 -- semantics is as though successive specifications were given with
4493 -- identical type definition and expression components. To simplify
4494 -- semantic processing, the parser represents a multiple declaration
4495 -- case as a sequence of single Specifications, using the More_Ids and
4496 -- Prev_Ids flags to preserve the original source form as described
4497 -- in the section on "Handling of Defining Identifier Lists".
4498
4499 -- N_Parameter_Specification
4500 -- Sloc points to first identifier
4501 -- Defining_Identifier (Node1)
4502 -- In_Present (Flag15)
4503 -- Out_Present (Flag17)
4504 -- Null_Exclusion_Present (Flag11)
4505 -- Parameter_Type (Node2) subtype mark or access definition
4506 -- Expression (Node3) (set to Empty if no default expression present)
4507 -- Do_Accessibility_Check (Flag13-Sem)
4508 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4509 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4510 -- Default_Expression (Node5-Sem)
4511
4512 ---------------
4513 -- 6.1 Mode --
4514 ---------------
4515
4516 -- MODE ::= [in] | in out | out
4517
4518 -- There is no explicit node in the tree for the Mode. Instead the
4519 -- In_Present and Out_Present flags are set in the parent node to
4520 -- record the presence of keywords specifying the mode.
4521
4522 --------------------------
4523 -- 6.3 Subprogram Body --
4524 --------------------------
4525
4526 -- SUBPROGRAM_BODY ::=
4527 -- SUBPROGRAM_SPECIFICATION is
4528 -- DECLARATIVE_PART
4529 -- begin
4530 -- HANDLED_SEQUENCE_OF_STATEMENTS
4531 -- end [DESIGNATOR];
4532
4533 -- N_Subprogram_Body
4534 -- Sloc points to FUNCTION or PROCEDURE
4535 -- Specification (Node1)
4536 -- Declarations (List2)
4537 -- Handled_Statement_Sequence (Node4)
4538 -- Activation_Chain_Entity (Node3-Sem)
4539 -- Corresponding_Spec (Node5-Sem)
4540 -- Acts_As_Spec (Flag4-Sem)
4541 -- Bad_Is_Detected (Flag15) used only by parser
4542 -- Do_Storage_Check (Flag17-Sem)
4543 -- Has_Pragma_Priority (Flag6-Sem)
4544 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4545 -- Is_Entry_Barrier_Function (Flag8-Sem)
4546 -- Is_Task_Master (Flag5-Sem)
4547 -- Was_Originally_Stub (Flag13-Sem)
4548 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4549 -- Has_Pragma_CPU (Flag14-Sem)
4550
4551 ------------------------------
4552 -- Parameterized Expression --
4553 ------------------------------
4554
4555 -- This is an Ada 2012 extension, we put it here for now, to be labeled
4556 -- and put in its proper section when we know exactly where that is!
4557
4558 -- PARAMETERIZED_EXPRESSION ::=
4559 -- FUNCTION SPECIFICATION IS (EXPRESSION);
4560
4561 -- N_Parameterized_Expression
4562 -- Sloc points to FUNCTION
4563 -- Specification (Node1)
4564 -- Expression (Node3)
4565
4566 -----------------------------------
4567 -- 6.4 Procedure Call Statement --
4568 -----------------------------------
4569
4570 -- PROCEDURE_CALL_STATEMENT ::=
4571 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4572
4573 -- Note: the reason that a procedure call has expression fields is
4574 -- that it semantically resembles an expression, e.g. overloading is
4575 -- allowed and a type is concocted for semantic processing purposes.
4576 -- Certain of these fields, such as Parens are not relevant, but it
4577 -- is easier to just supply all of them together!
4578
4579 -- N_Procedure_Call_Statement
4580 -- Sloc points to first token of name or prefix
4581 -- Name (Node2) stores name or prefix
4582 -- Parameter_Associations (List3) (set to No_List if no
4583 -- actual parameter part)
4584 -- First_Named_Actual (Node4-Sem)
4585 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4586 -- Do_Tag_Check (Flag13-Sem)
4587 -- No_Elaboration_Check (Flag14-Sem)
4588 -- Parameter_List_Truncated (Flag17-Sem)
4589 -- ABE_Is_Certain (Flag18-Sem)
4590 -- plus fields for expression
4591
4592 -- If any IN parameter requires a range check, then the corresponding
4593 -- argument expression has the Do_Range_Check flag set, and the range
4594 -- check is done against the formal type. Note that this argument
4595 -- expression may appear directly in the Parameter_Associations list,
4596 -- or may be a descendent of an N_Parameter_Association node that
4597 -- appears in this list.
4598
4599 ------------------------
4600 -- 6.4 Function Call --
4601 ------------------------
4602
4603 -- FUNCTION_CALL ::=
4604 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4605
4606 -- Note: the parser may generate an indexed component node or simply
4607 -- a name node instead of a function call node. The semantic pass must
4608 -- correct this misidentification.
4609
4610 -- N_Function_Call
4611 -- Sloc points to first token of name or prefix
4612 -- Name (Node2) stores name or prefix
4613 -- Parameter_Associations (List3) (set to No_List if no
4614 -- actual parameter part)
4615 -- First_Named_Actual (Node4-Sem)
4616 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4617 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4618 -- Do_Tag_Check (Flag13-Sem)
4619 -- No_Elaboration_Check (Flag14-Sem)
4620 -- Parameter_List_Truncated (Flag17-Sem)
4621 -- ABE_Is_Certain (Flag18-Sem)
4622 -- plus fields for expression
4623
4624 --------------------------------
4625 -- 6.4 Actual Parameter Part --
4626 --------------------------------
4627
4628 -- ACTUAL_PARAMETER_PART ::=
4629 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4630
4631 --------------------------------
4632 -- 6.4 Parameter Association --
4633 --------------------------------
4634
4635 -- PARAMETER_ASSOCIATION ::=
4636 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4637
4638 -- Note: the N_Parameter_Association node is built only if a formal
4639 -- parameter selector name is present, otherwise the parameter
4640 -- association appears in the tree simply as the node for the
4641 -- explicit actual parameter.
4642
4643 -- N_Parameter_Association
4644 -- Sloc points to formal parameter
4645 -- Selector_Name (Node2) (always non-Empty)
4646 -- Explicit_Actual_Parameter (Node3)
4647 -- Next_Named_Actual (Node4-Sem)
4648 -- Is_Accessibility_Actual (Flag13-Sem)
4649
4650 ---------------------------
4651 -- 6.4 Actual Parameter --
4652 ---------------------------
4653
4654 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4655
4656 ---------------------------
4657 -- 6.5 Return Statement --
4658 ---------------------------
4659
4660 -- RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4661
4662 -- In Ada 2005, we have:
4663
4664 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4665
4666 -- EXTENDED_RETURN_STATEMENT ::=
4667 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4668 -- [:= EXPRESSION] [do
4669 -- HANDLED_SEQUENCE_OF_STATEMENTS
4670 -- end return];
4671
4672 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4673
4674 -- So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4675 -- "return statement" is defined in 6.5 to mean a
4676 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4677
4678 -- N_Return_Statement
4679 -- Sloc points to RETURN
4680 -- Return_Statement_Entity (Node5-Sem)
4681 -- Expression (Node3) (set to Empty if no expression present)
4682 -- Storage_Pool (Node1-Sem)
4683 -- Procedure_To_Call (Node2-Sem)
4684 -- Do_Tag_Check (Flag13-Sem)
4685 -- By_Ref (Flag5-Sem)
4686 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
4687
4688 -- N_Return_Statement represents a simple_return_statement, and is
4689 -- renamed to be N_Simple_Return_Statement below. Clients should refer
4690 -- to N_Simple_Return_Statement. We retain N_Return_Statement because
4691 -- that's how gigi knows it. See also renaming of Make_Return_Statement
4692 -- as Make_Simple_Return_Statement in Sem_Util.
4693
4694 -- Note: Return_Statement_Entity points to an E_Return_Statement
4695
4696 -- If a range check is required, then Do_Range_Check is set on the
4697 -- Expression. The check is against the return subtype of the function.
4698
4699 -- N_Extended_Return_Statement
4700 -- Sloc points to RETURN
4701 -- Return_Statement_Entity (Node5-Sem)
4702 -- Return_Object_Declarations (List3)
4703 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
4704 -- Storage_Pool (Node1-Sem)
4705 -- Procedure_To_Call (Node2-Sem)
4706 -- Do_Tag_Check (Flag13-Sem)
4707 -- By_Ref (Flag5-Sem)
4708
4709 -- Note: Return_Statement_Entity points to an E_Return_Statement.
4710
4711 -- Note that Return_Object_Declarations is a list containing the
4712 -- N_Object_Declaration -- see comment on this field above.
4713
4714 -- The declared object will have Is_Return_Object = True.
4715
4716 -- There is no such syntactic category as return_object_declaration
4717 -- in the RM. Return_Object_Declarations represents this portion of
4718 -- the syntax for EXTENDED_RETURN_STATEMENT:
4719 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4720 -- [:= EXPRESSION]
4721
4722 -- There are two entities associated with an extended_return_statement:
4723 -- the Return_Statement_Entity represents the statement itself, and the
4724 -- Defining_Identifier of the Object_Declaration in
4725 -- Return_Object_Declarations represents the object being
4726 -- returned. N_Simple_Return_Statement has only the former.
4727
4728 ------------------------------
4729 -- 7.1 Package Declaration --
4730 ------------------------------
4731
4732 -- PACKAGE_DECLARATION ::=
4733 -- PACKAGE_SPECIFICATION
4734 -- [ASPECT_SPECIFICATIONS];
4735
4736 -- Note: the activation chain entity for a package spec is used for
4737 -- all tasks declared in the package spec, or in the package body.
4738
4739 -- N_Package_Declaration
4740 -- Sloc points to PACKAGE
4741 -- Specification (Node1)
4742 -- Corresponding_Body (Node5-Sem)
4743 -- Parent_Spec (Node4-Sem)
4744 -- Activation_Chain_Entity (Node3-Sem)
4745
4746 --------------------------------
4747 -- 7.1 Package Specification --
4748 --------------------------------
4749
4750 -- PACKAGE_SPECIFICATION ::=
4751 -- package DEFINING_PROGRAM_UNIT_NAME is
4752 -- {BASIC_DECLARATIVE_ITEM}
4753 -- [private
4754 -- {BASIC_DECLARATIVE_ITEM}]
4755 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
4756
4757 -- N_Package_Specification
4758 -- Sloc points to PACKAGE
4759 -- Defining_Unit_Name (Node1)
4760 -- Visible_Declarations (List2)
4761 -- Private_Declarations (List3) (set to No_List if no private
4762 -- part present)
4763 -- End_Label (Node4)
4764 -- Generic_Parent (Node5-Sem)
4765 -- Limited_View_Installed (Flag18-Sem)
4766
4767 -----------------------
4768 -- 7.1 Package Body --
4769 -----------------------
4770
4771 -- PACKAGE_BODY ::=
4772 -- package body DEFINING_PROGRAM_UNIT_NAME is
4773 -- DECLARATIVE_PART
4774 -- [begin
4775 -- HANDLED_SEQUENCE_OF_STATEMENTS]
4776 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
4777
4778 -- N_Package_Body
4779 -- Sloc points to PACKAGE
4780 -- Defining_Unit_Name (Node1)
4781 -- Declarations (List2)
4782 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4783 -- Corresponding_Spec (Node5-Sem)
4784 -- Was_Originally_Stub (Flag13-Sem)
4785
4786 -- Note: if a source level package does not contain a handled sequence
4787 -- of statements, then the parser supplies a dummy one with a null
4788 -- sequence of statements. Comes_From_Source will be False in this
4789 -- constructed sequence. The reason we need this is for the End_Label
4790 -- field in the HSS.
4791
4792 -----------------------------------
4793 -- 7.4 Private Type Declaration --
4794 -----------------------------------
4795
4796 -- PRIVATE_TYPE_DECLARATION ::=
4797 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4798 -- is [[abstract] tagged] [limited] private;
4799
4800 -- Note: TAGGED is not permitted in Ada 83 mode
4801
4802 -- N_Private_Type_Declaration
4803 -- Sloc points to TYPE
4804 -- Defining_Identifier (Node1)
4805 -- Discriminant_Specifications (List4) (set to No_List if no
4806 -- discriminant part)
4807 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4808 -- Abstract_Present (Flag4)
4809 -- Tagged_Present (Flag15)
4810 -- Limited_Present (Flag17)
4811
4812 ----------------------------------------
4813 -- 7.4 Private Extension Declaration --
4814 ----------------------------------------
4815
4816 -- PRIVATE_EXTENSION_DECLARATION ::=
4817 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4818 -- [abstract] [limited | synchronized]
4819 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4820 -- with private;
4821
4822 -- Note: LIMITED, and private extension declarations are not allowed
4823 -- in Ada 83 mode.
4824
4825 -- N_Private_Extension_Declaration
4826 -- Sloc points to TYPE
4827 -- Defining_Identifier (Node1)
4828 -- Discriminant_Specifications (List4) (set to No_List if no
4829 -- discriminant part)
4830 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4831 -- Abstract_Present (Flag4)
4832 -- Limited_Present (Flag17)
4833 -- Synchronized_Present (Flag7)
4834 -- Subtype_Indication (Node5)
4835 -- Interface_List (List2) (set to No_List if none)
4836
4837 ---------------------
4838 -- 8.4 Use Clause --
4839 ---------------------
4840
4841 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4842
4843 -----------------------------
4844 -- 8.4 Use Package Clause --
4845 -----------------------------
4846
4847 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4848
4849 -- N_Use_Package_Clause
4850 -- Sloc points to USE
4851 -- Names (List2)
4852 -- Next_Use_Clause (Node3-Sem)
4853 -- Hidden_By_Use_Clause (Elist4-Sem)
4854
4855 --------------------------
4856 -- 8.4 Use Type Clause --
4857 --------------------------
4858
4859 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
4860
4861 -- Note: use type clause is not permitted in Ada 83 mode
4862
4863 -- Note: the ALL keyword can appear only in Ada 2012 mode
4864
4865 -- N_Use_Type_Clause
4866 -- Sloc points to USE
4867 -- Subtype_Marks (List2)
4868 -- Next_Use_Clause (Node3-Sem)
4869 -- Hidden_By_Use_Clause (Elist4-Sem)
4870 -- All_Present (Flag15)
4871
4872 -------------------------------
4873 -- 8.5 Renaming Declaration --
4874 -------------------------------
4875
4876 -- RENAMING_DECLARATION ::=
4877 -- OBJECT_RENAMING_DECLARATION
4878 -- | EXCEPTION_RENAMING_DECLARATION
4879 -- | PACKAGE_RENAMING_DECLARATION
4880 -- | SUBPROGRAM_RENAMING_DECLARATION
4881 -- | GENERIC_RENAMING_DECLARATION
4882
4883 --------------------------------------
4884 -- 8.5 Object Renaming Declaration --
4885 --------------------------------------
4886
4887 -- OBJECT_RENAMING_DECLARATION ::=
4888 -- DEFINING_IDENTIFIER :
4889 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4890 -- | DEFINING_IDENTIFIER :
4891 -- ACCESS_DEFINITION renames object_NAME;
4892
4893 -- Note: Access_Definition is an optional field that gives support to
4894 -- Ada 2005 (AI-230). The parser generates nodes that have either the
4895 -- Subtype_Indication field or else the Access_Definition field.
4896
4897 -- N_Object_Renaming_Declaration
4898 -- Sloc points to first identifier
4899 -- Defining_Identifier (Node1)
4900 -- Null_Exclusion_Present (Flag11) (set to False if not present)
4901 -- Subtype_Mark (Node4) (set to Empty if not present)
4902 -- Access_Definition (Node3) (set to Empty if not present)
4903 -- Name (Node2)
4904 -- Corresponding_Generic_Association (Node5-Sem)
4905
4906 -----------------------------------------
4907 -- 8.5 Exception Renaming Declaration --
4908 -----------------------------------------
4909
4910 -- EXCEPTION_RENAMING_DECLARATION ::=
4911 -- DEFINING_IDENTIFIER : exception renames exception_NAME;
4912
4913 -- N_Exception_Renaming_Declaration
4914 -- Sloc points to first identifier
4915 -- Defining_Identifier (Node1)
4916 -- Name (Node2)
4917
4918 ---------------------------------------
4919 -- 8.5 Package Renaming Declaration --
4920 ---------------------------------------
4921
4922 -- PACKAGE_RENAMING_DECLARATION ::=
4923 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4924
4925 -- N_Package_Renaming_Declaration
4926 -- Sloc points to PACKAGE
4927 -- Defining_Unit_Name (Node1)
4928 -- Name (Node2)
4929 -- Parent_Spec (Node4-Sem)
4930
4931 ------------------------------------------
4932 -- 8.5 Subprogram Renaming Declaration --
4933 ------------------------------------------
4934
4935 -- SUBPROGRAM_RENAMING_DECLARATION ::=
4936 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4937
4938 -- N_Subprogram_Renaming_Declaration
4939 -- Sloc points to RENAMES
4940 -- Specification (Node1)
4941 -- Name (Node2)
4942 -- Parent_Spec (Node4-Sem)
4943 -- Corresponding_Spec (Node5-Sem)
4944 -- Corresponding_Formal_Spec (Node3-Sem)
4945 -- From_Default (Flag6-Sem)
4946
4947 -----------------------------------------
4948 -- 8.5.5 Generic Renaming Declaration --
4949 -----------------------------------------
4950
4951 -- GENERIC_RENAMING_DECLARATION ::=
4952 -- generic package DEFINING_PROGRAM_UNIT_NAME
4953 -- renames generic_package_NAME
4954 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
4955 -- renames generic_procedure_NAME
4956 -- | generic function DEFINING_PROGRAM_UNIT_NAME
4957 -- renames generic_function_NAME
4958
4959 -- N_Generic_Package_Renaming_Declaration
4960 -- Sloc points to GENERIC
4961 -- Defining_Unit_Name (Node1)
4962 -- Name (Node2)
4963 -- Parent_Spec (Node4-Sem)
4964
4965 -- N_Generic_Procedure_Renaming_Declaration
4966 -- Sloc points to GENERIC
4967 -- Defining_Unit_Name (Node1)
4968 -- Name (Node2)
4969 -- Parent_Spec (Node4-Sem)
4970
4971 -- N_Generic_Function_Renaming_Declaration
4972 -- Sloc points to GENERIC
4973 -- Defining_Unit_Name (Node1)
4974 -- Name (Node2)
4975 -- Parent_Spec (Node4-Sem)
4976
4977 --------------------------------
4978 -- 9.1 Task Type Declaration --
4979 --------------------------------
4980
4981 -- TASK_TYPE_DECLARATION ::=
4982 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4983 -- [is [new INTERFACE_LIST with] TASK_DEFINITION]
4984 -- [ASPECT_SPECIFICATIONS];
4985
4986 -- N_Task_Type_Declaration
4987 -- Sloc points to TASK
4988 -- Defining_Identifier (Node1)
4989 -- Discriminant_Specifications (List4) (set to No_List if no
4990 -- discriminant part)
4991 -- Interface_List (List2) (set to No_List if none)
4992 -- Task_Definition (Node3) (set to Empty if not present)
4993 -- Corresponding_Body (Node5-Sem)
4994
4995 ----------------------------------
4996 -- 9.1 Single Task Declaration --
4997 ----------------------------------
4998
4999 -- SINGLE_TASK_DECLARATION ::=
5000 -- task DEFINING_IDENTIFIER
5001 -- [is [new INTERFACE_LIST with] TASK_DEFINITION]
5002 -- [ASPECT_SPECIFICATIONS];
5003
5004 -- N_Single_Task_Declaration
5005 -- Sloc points to TASK
5006 -- Defining_Identifier (Node1)
5007 -- Interface_List (List2) (set to No_List if none)
5008 -- Task_Definition (Node3) (set to Empty if not present)
5009
5010 --------------------------
5011 -- 9.1 Task Definition --
5012 --------------------------
5013
5014 -- TASK_DEFINITION ::=
5015 -- {TASK_ITEM}
5016 -- [private
5017 -- {TASK_ITEM}]
5018 -- end [task_IDENTIFIER]
5019
5020 -- Note: as a result of semantic analysis, the list of task items can
5021 -- include implicit type declarations resulting from entry families.
5022
5023 -- N_Task_Definition
5024 -- Sloc points to first token of task definition
5025 -- Visible_Declarations (List2)
5026 -- Private_Declarations (List3) (set to No_List if no private part)
5027 -- End_Label (Node4)
5028 -- Has_Pragma_Priority (Flag6-Sem)
5029 -- Has_Storage_Size_Pragma (Flag5-Sem)
5030 -- Has_Task_Info_Pragma (Flag7-Sem)
5031 -- Has_Task_Name_Pragma (Flag8-Sem)
5032 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5033 -- Has_Pragma_CPU (Flag14-Sem)
5034
5035 --------------------
5036 -- 9.1 Task Item --
5037 --------------------
5038
5039 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5040
5041 --------------------
5042 -- 9.1 Task Body --
5043 --------------------
5044
5045 -- TASK_BODY ::=
5046 -- task body task_DEFINING_IDENTIFIER is
5047 -- DECLARATIVE_PART
5048 -- begin
5049 -- HANDLED_SEQUENCE_OF_STATEMENTS
5050 -- end [task_IDENTIFIER];
5051
5052 -- Gigi restriction: This node never appears
5053
5054 -- N_Task_Body
5055 -- Sloc points to TASK
5056 -- Defining_Identifier (Node1)
5057 -- Declarations (List2)
5058 -- Handled_Statement_Sequence (Node4)
5059 -- Is_Task_Master (Flag5-Sem)
5060 -- Activation_Chain_Entity (Node3-Sem)
5061 -- Corresponding_Spec (Node5-Sem)
5062 -- Was_Originally_Stub (Flag13-Sem)
5063
5064 -------------------------------------
5065 -- 9.4 Protected Type Declaration --
5066 -------------------------------------
5067
5068 -- PROTECTED_TYPE_DECLARATION ::=
5069 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5070 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION
5071 -- {ASPECT_SPECIFICATIONS];
5072
5073 -- Note: protected type declarations are not permitted in Ada 83 mode
5074
5075 -- N_Protected_Type_Declaration
5076 -- Sloc points to PROTECTED
5077 -- Defining_Identifier (Node1)
5078 -- Discriminant_Specifications (List4) (set to No_List if no
5079 -- discriminant part)
5080 -- Interface_List (List2) (set to No_List if none)
5081 -- Protected_Definition (Node3)
5082 -- Corresponding_Body (Node5-Sem)
5083
5084 ---------------------------------------
5085 -- 9.4 Single Protected Declaration --
5086 ---------------------------------------
5087
5088 -- SINGLE_PROTECTED_DECLARATION ::=
5089 -- protected DEFINING_IDENTIFIER
5090 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION
5091 -- [ASPECT_SPECIFICATIONS];
5092
5093 -- Note: single protected declarations are not allowed in Ada 83 mode
5094
5095 -- N_Single_Protected_Declaration
5096 -- Sloc points to PROTECTED
5097 -- Defining_Identifier (Node1)
5098 -- Interface_List (List2) (set to No_List if none)
5099 -- Protected_Definition (Node3)
5100
5101 -------------------------------
5102 -- 9.4 Protected Definition --
5103 -------------------------------
5104
5105 -- PROTECTED_DEFINITION ::=
5106 -- {PROTECTED_OPERATION_DECLARATION}
5107 -- [private
5108 -- {PROTECTED_ELEMENT_DECLARATION}]
5109 -- end [protected_IDENTIFIER]
5110
5111 -- N_Protected_Definition
5112 -- Sloc points to first token of protected definition
5113 -- Visible_Declarations (List2)
5114 -- Private_Declarations (List3) (set to No_List if no private part)
5115 -- End_Label (Node4)
5116 -- Has_Pragma_Priority (Flag6-Sem)
5117
5118 ------------------------------------------
5119 -- 9.4 Protected Operation Declaration --
5120 ------------------------------------------
5121
5122 -- PROTECTED_OPERATION_DECLARATION ::=
5123 -- SUBPROGRAM_DECLARATION
5124 -- | ENTRY_DECLARATION
5125 -- | REPRESENTATION_CLAUSE
5126
5127 ----------------------------------------
5128 -- 9.4 Protected Element Declaration --
5129 ----------------------------------------
5130
5131 -- PROTECTED_ELEMENT_DECLARATION ::=
5132 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5133
5134 -------------------------
5135 -- 9.4 Protected Body --
5136 -------------------------
5137
5138 -- PROTECTED_BODY ::=
5139 -- protected body DEFINING_IDENTIFIER is
5140 -- {PROTECTED_OPERATION_ITEM}
5141 -- end [protected_IDENTIFIER];
5142
5143 -- Note: protected bodies are not allowed in Ada 83 mode
5144
5145 -- Gigi restriction: This node never appears
5146
5147 -- N_Protected_Body
5148 -- Sloc points to PROTECTED
5149 -- Defining_Identifier (Node1)
5150 -- Declarations (List2) protected operation items (and pragmas)
5151 -- End_Label (Node4)
5152 -- Corresponding_Spec (Node5-Sem)
5153 -- Was_Originally_Stub (Flag13-Sem)
5154
5155 -----------------------------------
5156 -- 9.4 Protected Operation Item --
5157 -----------------------------------
5158
5159 -- PROTECTED_OPERATION_ITEM ::=
5160 -- SUBPROGRAM_DECLARATION
5161 -- | SUBPROGRAM_BODY
5162 -- | ENTRY_BODY
5163 -- | REPRESENTATION_CLAUSE
5164
5165 ------------------------------
5166 -- 9.5.2 Entry Declaration --
5167 ------------------------------
5168
5169 -- ENTRY_DECLARATION ::=
5170 -- [[not] overriding]
5171 -- entry DEFINING_IDENTIFIER
5172 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
5173
5174 -- N_Entry_Declaration
5175 -- Sloc points to ENTRY
5176 -- Defining_Identifier (Node1)
5177 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5178 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5179 -- Corresponding_Body (Node5-Sem)
5180 -- Must_Override (Flag14) set if overriding indicator present
5181 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5182
5183 -- Note: overriding indicator is an Ada 2005 feature
5184
5185 -----------------------------
5186 -- 9.5.2 Accept statement --
5187 -----------------------------
5188
5189 -- ACCEPT_STATEMENT ::=
5190 -- accept entry_DIRECT_NAME
5191 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5192 -- HANDLED_SEQUENCE_OF_STATEMENTS
5193 -- end [entry_IDENTIFIER]];
5194
5195 -- Gigi restriction: This node never appears
5196
5197 -- Note: there are no explicit declarations allowed in an accept
5198 -- statement. However, the implicit declarations for any statement
5199 -- identifiers (labels and block/loop identifiers) are declarations
5200 -- that belong logically to the accept statement, and that is why
5201 -- there is a Declarations field in this node.
5202
5203 -- N_Accept_Statement
5204 -- Sloc points to ACCEPT
5205 -- Entry_Direct_Name (Node1)
5206 -- Entry_Index (Node5) (set to Empty if not present)
5207 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5208 -- Handled_Statement_Sequence (Node4)
5209 -- Declarations (List2) (set to No_List if no declarations)
5210
5211 ------------------------
5212 -- 9.5.2 Entry Index --
5213 ------------------------
5214
5215 -- ENTRY_INDEX ::= EXPRESSION
5216
5217 -----------------------
5218 -- 9.5.2 Entry Body --
5219 -----------------------
5220
5221 -- ENTRY_BODY ::=
5222 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5223 -- DECLARATIVE_PART
5224 -- begin
5225 -- HANDLED_SEQUENCE_OF_STATEMENTS
5226 -- end [entry_IDENTIFIER];
5227
5228 -- ENTRY_BARRIER ::= when CONDITION
5229
5230 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5231 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5232 -- too full (it would otherwise have too many fields)
5233
5234 -- Gigi restriction: This node never appears
5235
5236 -- N_Entry_Body
5237 -- Sloc points to ENTRY
5238 -- Defining_Identifier (Node1)
5239 -- Entry_Body_Formal_Part (Node5)
5240 -- Declarations (List2)
5241 -- Handled_Statement_Sequence (Node4)
5242 -- Activation_Chain_Entity (Node3-Sem)
5243
5244 -----------------------------------
5245 -- 9.5.2 Entry Body Formal Part --
5246 -----------------------------------
5247
5248 -- ENTRY_BODY_FORMAL_PART ::=
5249 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5250
5251 -- Note that an entry body formal part node is present even if it is
5252 -- empty. This reflects the grammar, in which it is the components of
5253 -- the entry body formal part that are optional, not the entry body
5254 -- formal part itself. Also this means that the barrier condition
5255 -- always has somewhere to be stored.
5256
5257 -- Gigi restriction: This node never appears
5258
5259 -- N_Entry_Body_Formal_Part
5260 -- Sloc points to first token
5261 -- Entry_Index_Specification (Node4) (set to Empty if not present)
5262 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5263 -- Condition (Node1) from entry barrier of entry body
5264
5265 --------------------------
5266 -- 9.5.2 Entry Barrier --
5267 --------------------------
5268
5269 -- ENTRY_BARRIER ::= when CONDITION
5270
5271 --------------------------------------
5272 -- 9.5.2 Entry Index Specification --
5273 --------------------------------------
5274
5275 -- ENTRY_INDEX_SPECIFICATION ::=
5276 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5277
5278 -- Gigi restriction: This node never appears
5279
5280 -- N_Entry_Index_Specification
5281 -- Sloc points to FOR
5282 -- Defining_Identifier (Node1)
5283 -- Discrete_Subtype_Definition (Node4)
5284
5285 ---------------------------------
5286 -- 9.5.3 Entry Call Statement --
5287 ---------------------------------
5288
5289 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5290
5291 -- The parser may generate a procedure call for this construct. The
5292 -- semantic pass must correct this misidentification where needed.
5293
5294 -- Gigi restriction: This node never appears
5295
5296 -- N_Entry_Call_Statement
5297 -- Sloc points to first token of name
5298 -- Name (Node2)
5299 -- Parameter_Associations (List3) (set to No_List if no
5300 -- actual parameter part)
5301 -- First_Named_Actual (Node4-Sem)
5302
5303 ------------------------------
5304 -- 9.5.4 Requeue Statement --
5305 ------------------------------
5306
5307 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5308
5309 -- Note: requeue statements are not permitted in Ada 83 mode
5310
5311 -- Gigi restriction: This node never appears
5312
5313 -- N_Requeue_Statement
5314 -- Sloc points to REQUEUE
5315 -- Name (Node2)
5316 -- Abort_Present (Flag15)
5317
5318 --------------------------
5319 -- 9.6 Delay Statement --
5320 --------------------------
5321
5322 -- DELAY_STATEMENT ::=
5323 -- DELAY_UNTIL_STATEMENT
5324 -- | DELAY_RELATIVE_STATEMENT
5325
5326 --------------------------------
5327 -- 9.6 Delay Until Statement --
5328 --------------------------------
5329
5330 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5331
5332 -- Note: delay until statements are not permitted in Ada 83 mode
5333
5334 -- Gigi restriction: This node never appears
5335
5336 -- N_Delay_Until_Statement
5337 -- Sloc points to DELAY
5338 -- Expression (Node3)
5339
5340 -----------------------------------
5341 -- 9.6 Delay Relative Statement --
5342 -----------------------------------
5343
5344 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5345
5346 -- Gigi restriction: This node never appears
5347
5348 -- N_Delay_Relative_Statement
5349 -- Sloc points to DELAY
5350 -- Expression (Node3)
5351
5352 ---------------------------
5353 -- 9.7 Select Statement --
5354 ---------------------------
5355
5356 -- SELECT_STATEMENT ::=
5357 -- SELECTIVE_ACCEPT
5358 -- | TIMED_ENTRY_CALL
5359 -- | CONDITIONAL_ENTRY_CALL
5360 -- | ASYNCHRONOUS_SELECT
5361
5362 -----------------------------
5363 -- 9.7.1 Selective Accept --
5364 -----------------------------
5365
5366 -- SELECTIVE_ACCEPT ::=
5367 -- select
5368 -- [GUARD]
5369 -- SELECT_ALTERNATIVE
5370 -- {or
5371 -- [GUARD]
5372 -- SELECT_ALTERNATIVE}
5373 -- [else
5374 -- SEQUENCE_OF_STATEMENTS]
5375 -- end select;
5376
5377 -- Gigi restriction: This node never appears
5378
5379 -- Note: the guard expression, if present, appears in the node for
5380 -- the select alternative.
5381
5382 -- N_Selective_Accept
5383 -- Sloc points to SELECT
5384 -- Select_Alternatives (List1)
5385 -- Else_Statements (List4) (set to No_List if no else part)
5386
5387 ------------------
5388 -- 9.7.1 Guard --
5389 ------------------
5390
5391 -- GUARD ::= when CONDITION =>
5392
5393 -- As noted above, the CONDITION that is part of a GUARD is included
5394 -- in the node for the select alternative for convenience.
5395
5396 -------------------------------
5397 -- 9.7.1 Select Alternative --
5398 -------------------------------
5399
5400 -- SELECT_ALTERNATIVE ::=
5401 -- ACCEPT_ALTERNATIVE
5402 -- | DELAY_ALTERNATIVE
5403 -- | TERMINATE_ALTERNATIVE
5404
5405 -------------------------------
5406 -- 9.7.1 Accept Alternative --
5407 -------------------------------
5408
5409 -- ACCEPT_ALTERNATIVE ::=
5410 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5411
5412 -- Gigi restriction: This node never appears
5413
5414 -- N_Accept_Alternative
5415 -- Sloc points to ACCEPT
5416 -- Accept_Statement (Node2)
5417 -- Condition (Node1) from the guard (set to Empty if no guard present)
5418 -- Statements (List3) (set to Empty_List if no statements)
5419 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5420 -- Accept_Handler_Records (List5-Sem)
5421
5422 ------------------------------
5423 -- 9.7.1 Delay Alternative --
5424 ------------------------------
5425
5426 -- DELAY_ALTERNATIVE ::=
5427 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5428
5429 -- Gigi restriction: This node never appears
5430
5431 -- N_Delay_Alternative
5432 -- Sloc points to DELAY
5433 -- Delay_Statement (Node2)
5434 -- Condition (Node1) from the guard (set to Empty if no guard present)
5435 -- Statements (List3) (set to Empty_List if no statements)
5436 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5437
5438 ----------------------------------
5439 -- 9.7.1 Terminate Alternative --
5440 ----------------------------------
5441
5442 -- TERMINATE_ALTERNATIVE ::= terminate;
5443
5444 -- Gigi restriction: This node never appears
5445
5446 -- N_Terminate_Alternative
5447 -- Sloc points to TERMINATE
5448 -- Condition (Node1) from the guard (set to Empty if no guard present)
5449 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5450 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5451
5452 -----------------------------
5453 -- 9.7.2 Timed Entry Call --
5454 -----------------------------
5455
5456 -- TIMED_ENTRY_CALL ::=
5457 -- select
5458 -- ENTRY_CALL_ALTERNATIVE
5459 -- or
5460 -- DELAY_ALTERNATIVE
5461 -- end select;
5462
5463 -- Gigi restriction: This node never appears
5464
5465 -- N_Timed_Entry_Call
5466 -- Sloc points to SELECT
5467 -- Entry_Call_Alternative (Node1)
5468 -- Delay_Alternative (Node4)
5469
5470 -----------------------------------
5471 -- 9.7.2 Entry Call Alternative --
5472 -----------------------------------
5473
5474 -- ENTRY_CALL_ALTERNATIVE ::=
5475 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5476
5477 -- PROCEDURE_OR_ENTRY_CALL ::=
5478 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5479
5480 -- Gigi restriction: This node never appears
5481
5482 -- N_Entry_Call_Alternative
5483 -- Sloc points to first token of entry call statement
5484 -- Entry_Call_Statement (Node1)
5485 -- Statements (List3) (set to Empty_List if no statements)
5486 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5487
5488 -----------------------------------
5489 -- 9.7.3 Conditional Entry Call --
5490 -----------------------------------
5491
5492 -- CONDITIONAL_ENTRY_CALL ::=
5493 -- select
5494 -- ENTRY_CALL_ALTERNATIVE
5495 -- else
5496 -- SEQUENCE_OF_STATEMENTS
5497 -- end select;
5498
5499 -- Gigi restriction: This node never appears
5500
5501 -- N_Conditional_Entry_Call
5502 -- Sloc points to SELECT
5503 -- Entry_Call_Alternative (Node1)
5504 -- Else_Statements (List4)
5505
5506 --------------------------------
5507 -- 9.7.4 Asynchronous Select --
5508 --------------------------------
5509
5510 -- ASYNCHRONOUS_SELECT ::=
5511 -- select
5512 -- TRIGGERING_ALTERNATIVE
5513 -- then abort
5514 -- ABORTABLE_PART
5515 -- end select;
5516
5517 -- Note: asynchronous select is not permitted in Ada 83 mode
5518
5519 -- Gigi restriction: This node never appears
5520
5521 -- N_Asynchronous_Select
5522 -- Sloc points to SELECT
5523 -- Triggering_Alternative (Node1)
5524 -- Abortable_Part (Node2)
5525
5526 -----------------------------------
5527 -- 9.7.4 Triggering Alternative --
5528 -----------------------------------
5529
5530 -- TRIGGERING_ALTERNATIVE ::=
5531 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5532
5533 -- Gigi restriction: This node never appears
5534
5535 -- N_Triggering_Alternative
5536 -- Sloc points to first token of triggering statement
5537 -- Triggering_Statement (Node1)
5538 -- Statements (List3) (set to Empty_List if no statements)
5539 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5540
5541 ---------------------------------
5542 -- 9.7.4 Triggering Statement --
5543 ---------------------------------
5544
5545 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5546
5547 ---------------------------
5548 -- 9.7.4 Abortable Part --
5549 ---------------------------
5550
5551 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5552
5553 -- Gigi restriction: This node never appears
5554
5555 -- N_Abortable_Part
5556 -- Sloc points to ABORT
5557 -- Statements (List3)
5558
5559 --------------------------
5560 -- 9.8 Abort Statement --
5561 --------------------------
5562
5563 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5564
5565 -- Gigi restriction: This node never appears
5566
5567 -- N_Abort_Statement
5568 -- Sloc points to ABORT
5569 -- Names (List2)
5570
5571 -------------------------
5572 -- 10.1.1 Compilation --
5573 -------------------------
5574
5575 -- COMPILATION ::= {COMPILATION_UNIT}
5576
5577 -- There is no explicit node in the tree for a compilation, since in
5578 -- general the compiler is processing only a single compilation unit
5579 -- at a time. It is possible to parse multiple units in syntax check
5580 -- only mode, but the trees are discarded in that case.
5581
5582 ------------------------------
5583 -- 10.1.1 Compilation Unit --
5584 ------------------------------
5585
5586 -- COMPILATION_UNIT ::=
5587 -- CONTEXT_CLAUSE LIBRARY_ITEM
5588 -- | CONTEXT_CLAUSE SUBUNIT
5589
5590 -- The N_Compilation_Unit node itself represents the above syntax.
5591 -- However, there are two additional items not reflected in the above
5592 -- syntax. First we have the global declarations that are added by the
5593 -- code generator. These are outer level declarations (so they cannot
5594 -- be represented as being inside the units). An example is the wrapper
5595 -- subprograms that are created to do ABE checking. As always a list of
5596 -- declarations can contain actions as well (i.e. statements), and such
5597 -- statements are executed as part of the elaboration of the unit. Note
5598 -- that all such declarations are elaborated before the library unit.
5599
5600 -- Similarly, certain actions need to be elaborated at the completion
5601 -- of elaboration of the library unit (notably the statement that sets
5602 -- the Boolean flag indicating that elaboration is complete).
5603
5604 -- The third item not reflected in the syntax is pragmas that appear
5605 -- after the compilation unit. As always pragmas are a problem since
5606 -- they are not part of the formal syntax, but can be stuck into the
5607 -- source following a set of ad hoc rules, and we have to find an ad
5608 -- hoc way of sticking them into the tree. For pragmas that appear
5609 -- before the library unit, we just consider them to be part of the
5610 -- context clause, and pragmas can appear in the Context_Items list
5611 -- of the compilation unit. However, pragmas can also appear after
5612 -- the library item.
5613
5614 -- To deal with all these problems, we create an auxiliary node for
5615 -- a compilation unit, referenced from the N_Compilation_Unit node,
5616 -- that contains these items.
5617
5618 -- N_Compilation_Unit
5619 -- Sloc points to first token of defining unit name
5620 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
5621 -- Context_Items (List1) context items and pragmas preceding unit
5622 -- Private_Present (Flag15) set if library unit has private keyword
5623 -- Unit (Node2) library item or subunit
5624 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5625 -- Has_No_Elaboration_Code (Flag17-Sem)
5626 -- Body_Required (Flag13-Sem) set for spec if body is required
5627 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5628 -- Context_Pending (Flag16-Sem)
5629 -- First_Inlined_Subprogram (Node3-Sem)
5630 -- Has_Pragma_Suppress_All (Flag14-Sem)
5631
5632 -- N_Compilation_Unit_Aux
5633 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
5634 -- Declarations (List2) (set to No_List if no global declarations)
5635 -- Actions (List1) (set to No_List if no actions)
5636 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
5637 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5638 -- Default_Storage_Pool (Node3-Sem)
5639
5640 --------------------------
5641 -- 10.1.1 Library Item --
5642 --------------------------
5643
5644 -- LIBRARY_ITEM ::=
5645 -- [private] LIBRARY_UNIT_DECLARATION
5646 -- | LIBRARY_UNIT_BODY
5647 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5648
5649 -- Note: PRIVATE is not allowed in Ada 83 mode
5650
5651 -- There is no explicit node in the tree for library item, instead
5652 -- the declaration or body, and the flag for private if present,
5653 -- appear in the N_Compilation_Unit node.
5654
5655 --------------------------------------
5656 -- 10.1.1 Library Unit Declaration --
5657 --------------------------------------
5658
5659 -- LIBRARY_UNIT_DECLARATION ::=
5660 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5661 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
5662
5663 -----------------------------------------------
5664 -- 10.1.1 Library Unit Renaming Declaration --
5665 -----------------------------------------------
5666
5667 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
5668 -- PACKAGE_RENAMING_DECLARATION
5669 -- | GENERIC_RENAMING_DECLARATION
5670 -- | SUBPROGRAM_RENAMING_DECLARATION
5671
5672 -------------------------------
5673 -- 10.1.1 Library unit body --
5674 -------------------------------
5675
5676 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5677
5678 ------------------------------
5679 -- 10.1.1 Parent Unit Name --
5680 ------------------------------
5681
5682 -- PARENT_UNIT_NAME ::= NAME
5683
5684 ----------------------------
5685 -- 10.1.2 Context clause --
5686 ----------------------------
5687
5688 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5689
5690 -- The context clause can include pragmas, and any pragmas that appear
5691 -- before the context clause proper (i.e. all configuration pragmas,
5692 -- also appear at the front of this list).
5693
5694 --------------------------
5695 -- 10.1.2 Context_Item --
5696 --------------------------
5697
5698 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
5699
5700 -------------------------
5701 -- 10.1.2 With clause --
5702 -------------------------
5703
5704 -- WITH_CLAUSE ::=
5705 -- with library_unit_NAME {,library_unit_NAME};
5706
5707 -- A separate With clause is built for each name, so that we have
5708 -- a Corresponding_Spec field for each with'ed spec. The flags
5709 -- First_Name and Last_Name are used to reconstruct the exact
5710 -- source form. When a list of names appears in one with clause,
5711 -- the first name in the list has First_Name set, and the last
5712 -- has Last_Name set. If the with clause has only one name, then
5713 -- both of the flags First_Name and Last_Name are set in this name.
5714
5715 -- Note: in the case of implicit with's that are installed by the
5716 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
5717 -- set to Standard_Location, but it is incorrect to test the Sloc
5718 -- to find out if a with clause is implicit, test the flag instead.
5719
5720 -- N_With_Clause
5721 -- Sloc points to first token of library unit name
5722 -- Withed_Body (Node1-Sem)
5723 -- Name (Node2)
5724 -- Next_Implicit_With (Node3-Sem)
5725 -- Library_Unit (Node4-Sem)
5726 -- Corresponding_Spec (Node5-Sem)
5727 -- First_Name (Flag5) (set to True if first name or only one name)
5728 -- Last_Name (Flag6) (set to True if last name or only one name)
5729 -- Context_Installed (Flag13-Sem)
5730 -- Elaborate_Present (Flag4-Sem)
5731 -- Elaborate_All_Present (Flag14-Sem)
5732 -- Elaborate_All_Desirable (Flag9-Sem)
5733 -- Elaborate_Desirable (Flag11-Sem)
5734 -- Private_Present (Flag15) set if with_clause has private keyword
5735 -- Implicit_With (Flag16-Sem)
5736 -- Limited_Present (Flag17) set if LIMITED is present
5737 -- Limited_View_Installed (Flag18-Sem)
5738 -- Unreferenced_In_Spec (Flag7-Sem)
5739 -- No_Entities_Ref_In_Spec (Flag8-Sem)
5740
5741 -- Note: Limited_Present and Limited_View_Installed give support to
5742 -- Ada 2005 (AI-50217).
5743 -- Similarly, Private_Present gives support to AI-50262.
5744
5745 ----------------------
5746 -- With_Type clause --
5747 ----------------------
5748
5749 -- This is a GNAT extension, used to implement mutually recursive
5750 -- types declared in different packages.
5751 -- Note: this is now obsolete. The functionality of this construct
5752 -- is now implemented by the Ada 2005 Limited_with_Clause.
5753
5754 ---------------------
5755 -- 10.2 Body stub --
5756 ---------------------
5757
5758 -- BODY_STUB ::=
5759 -- SUBPROGRAM_BODY_STUB
5760 -- | PACKAGE_BODY_STUB
5761 -- | TASK_BODY_STUB
5762 -- | PROTECTED_BODY_STUB
5763
5764 ----------------------------------
5765 -- 10.1.3 Subprogram Body Stub --
5766 ----------------------------------
5767
5768 -- SUBPROGRAM_BODY_STUB ::=
5769 -- SUBPROGRAM_SPECIFICATION is separate;
5770
5771 -- N_Subprogram_Body_Stub
5772 -- Sloc points to FUNCTION or PROCEDURE
5773 -- Specification (Node1)
5774 -- Library_Unit (Node4-Sem) points to the subunit
5775 -- Corresponding_Body (Node5-Sem)
5776
5777 -------------------------------
5778 -- 10.1.3 Package Body Stub --
5779 -------------------------------
5780
5781 -- PACKAGE_BODY_STUB ::=
5782 -- package body DEFINING_IDENTIFIER is separate;
5783
5784 -- N_Package_Body_Stub
5785 -- Sloc points to PACKAGE
5786 -- Defining_Identifier (Node1)
5787 -- Library_Unit (Node4-Sem) points to the subunit
5788 -- Corresponding_Body (Node5-Sem)
5789
5790 ----------------------------
5791 -- 10.1.3 Task Body Stub --
5792 ----------------------------
5793
5794 -- TASK_BODY_STUB ::=
5795 -- task body DEFINING_IDENTIFIER is separate;
5796
5797 -- N_Task_Body_Stub
5798 -- Sloc points to TASK
5799 -- Defining_Identifier (Node1)
5800 -- Library_Unit (Node4-Sem) points to the subunit
5801 -- Corresponding_Body (Node5-Sem)
5802
5803 ---------------------------------
5804 -- 10.1.3 Protected Body Stub --
5805 ---------------------------------
5806
5807 -- PROTECTED_BODY_STUB ::=
5808 -- protected body DEFINING_IDENTIFIER is separate;
5809
5810 -- Note: protected body stubs are not allowed in Ada 83 mode
5811
5812 -- N_Protected_Body_Stub
5813 -- Sloc points to PROTECTED
5814 -- Defining_Identifier (Node1)
5815 -- Library_Unit (Node4-Sem) points to the subunit
5816 -- Corresponding_Body (Node5-Sem)
5817
5818 ---------------------
5819 -- 10.1.3 Subunit --
5820 ---------------------
5821
5822 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5823
5824 -- N_Subunit
5825 -- Sloc points to SEPARATE
5826 -- Name (Node2) is the name of the parent unit
5827 -- Proper_Body (Node1) is the subunit body
5828 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5829
5830 ---------------------------------
5831 -- 11.1 Exception Declaration --
5832 ---------------------------------
5833
5834 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
5835 -- [ASPECT_SPECIFICATIONS];
5836
5837 -- For consistency with object declarations etc., the parser converts
5838 -- the case of multiple identifiers being declared to a series of
5839 -- declarations in which the expression is copied, using the More_Ids
5840 -- and Prev_Ids flags to remember the source form as described in the
5841 -- section on "Handling of Defining Identifier Lists".
5842
5843 -- N_Exception_Declaration
5844 -- Sloc points to EXCEPTION
5845 -- Defining_Identifier (Node1)
5846 -- Expression (Node3-Sem)
5847 -- Renaming_Exception (Node2-Sem)
5848 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5849 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5850
5851 ------------------------------------------
5852 -- 11.2 Handled Sequence Of Statements --
5853 ------------------------------------------
5854
5855 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
5856 -- SEQUENCE_OF_STATEMENTS
5857 -- [exception
5858 -- EXCEPTION_HANDLER
5859 -- {EXCEPTION_HANDLER}]
5860 -- [at end
5861 -- cleanup_procedure_call (param, param, param, ...);]
5862
5863 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
5864 -- used only internally currently, but is considered to be syntactic.
5865 -- At the moment, the only cleanup action allowed is a single call to
5866 -- a parameterless procedure, and the Identifier field of the node is
5867 -- the procedure to be called. Also there is a current restriction
5868 -- that exception handles and a cleanup cannot be present in the same
5869 -- frame, so at least one of Exception_Handlers or the Identifier must
5870 -- be missing.
5871
5872 -- Actually, more accurately, this restriction applies to the original
5873 -- source program. In the expanded tree, if the At_End_Proc field is
5874 -- present, then there will also be an exception handler of the form:
5875
5876 -- when all others =>
5877 -- cleanup;
5878 -- raise;
5879
5880 -- where cleanup is the procedure to be generated. The reason we do
5881 -- this is so that the front end can handle the necessary entries in
5882 -- the exception tables, and other exception handler actions required
5883 -- as part of the normal handling for exception handlers.
5884
5885 -- The AT END cleanup handler protects only the sequence of statements
5886 -- (not the associated declarations of the parent), just like exception
5887 -- handlers. The big difference is that the cleanup procedure is called
5888 -- on either a normal or an abnormal exit from the statement sequence.
5889
5890 -- Note: the list of Exception_Handlers can contain pragmas as well
5891 -- as actual handlers. In practice these pragmas can only occur at
5892 -- the start of the list, since any pragmas occurring later on will
5893 -- be included in the statement list of the corresponding handler.
5894
5895 -- Note: although in the Ada syntax, the sequence of statements in
5896 -- a handled sequence of statements can only contain statements, we
5897 -- allow free mixing of declarations and statements in the resulting
5898 -- expanded tree. This is for example used to deal with the case of
5899 -- a cleanup procedure that must handle declarations as well as the
5900 -- statements of a block.
5901
5902 -- N_Handled_Sequence_Of_Statements
5903 -- Sloc points to first token of first statement
5904 -- Statements (List3)
5905 -- End_Label (Node4) (set to Empty if expander generated)
5906 -- Exception_Handlers (List5) (set to No_List if none present)
5907 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
5908 -- First_Real_Statement (Node2-Sem)
5909 -- Zero_Cost_Handling (Flag5-Sem)
5910
5911 -- Note: the parent always contains a Declarations field which contains
5912 -- declarations associated with the handled sequence of statements. This
5913 -- is true even in the case of an accept statement (see description of
5914 -- the N_Accept_Statement node).
5915
5916 -- End_Label refers to the containing construct
5917
5918 -----------------------------
5919 -- 11.2 Exception Handler --
5920 -----------------------------
5921
5922 -- EXCEPTION_HANDLER ::=
5923 -- when [CHOICE_PARAMETER_SPECIFICATION :]
5924 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5925 -- SEQUENCE_OF_STATEMENTS
5926
5927 -- Note: choice parameter specification is not allowed in Ada 83 mode
5928
5929 -- N_Exception_Handler
5930 -- Sloc points to WHEN
5931 -- Choice_Parameter (Node2) (set to Empty if not present)
5932 -- Exception_Choices (List4)
5933 -- Statements (List3)
5934 -- Exception_Label (Node5-Sem) (set to Empty of not present)
5935 -- Zero_Cost_Handling (Flag5-Sem)
5936 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5937 -- Local_Raise_Not_OK (Flag7-Sem)
5938 -- Has_Local_Raise (Flag8-Sem)
5939
5940 ------------------------------------------
5941 -- 11.2 Choice parameter specification --
5942 ------------------------------------------
5943
5944 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5945
5946 ----------------------------
5947 -- 11.2 Exception Choice --
5948 ----------------------------
5949
5950 -- EXCEPTION_CHOICE ::= exception_NAME | others
5951
5952 -- Except in the case of OTHERS, no explicit node appears in the tree
5953 -- for exception choice. Instead the exception name appears directly.
5954 -- An OTHERS choice is represented by a N_Others_Choice node (see
5955 -- section 3.8.1.
5956
5957 -- Note: for the exception choice created for an at end handler, the
5958 -- exception choice is an N_Others_Choice node with All_Others set.
5959
5960 ---------------------------
5961 -- 11.3 Raise Statement --
5962 ---------------------------
5963
5964 -- RAISE_STATEMENT ::= raise [exception_NAME];
5965
5966 -- In Ada 2005, we have
5967
5968 -- RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5969
5970 -- N_Raise_Statement
5971 -- Sloc points to RAISE
5972 -- Name (Node2) (set to Empty if no exception name present)
5973 -- Expression (Node3) (set to Empty if no expression present)
5974 -- From_At_End (Flag4-Sem)
5975
5976 -------------------------------
5977 -- 12.1 Generic Declaration --
5978 -------------------------------
5979
5980 -- GENERIC_DECLARATION ::=
5981 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5982
5983 ------------------------------------------
5984 -- 12.1 Generic Subprogram Declaration --
5985 ------------------------------------------
5986
5987 -- GENERIC_SUBPROGRAM_DECLARATION ::=
5988 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5989
5990 -- Note: Generic_Formal_Declarations can include pragmas
5991
5992 -- N_Generic_Subprogram_Declaration
5993 -- Sloc points to GENERIC
5994 -- Specification (Node1) subprogram specification
5995 -- Corresponding_Body (Node5-Sem)
5996 -- Generic_Formal_Declarations (List2) from generic formal part
5997 -- Parent_Spec (Node4-Sem)
5998
5999 ---------------------------------------
6000 -- 12.1 Generic Package Declaration --
6001 ---------------------------------------
6002
6003 -- GENERIC_PACKAGE_DECLARATION ::=
6004 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6005 -- [ASPECT_SPECIFICATIONS];
6006
6007 -- Note: when we do generics right, the Activation_Chain_Entity entry
6008 -- for this node can be removed (since the expander won't see generic
6009 -- units any more)???.
6010
6011 -- Note: Generic_Formal_Declarations can include pragmas
6012
6013 -- N_Generic_Package_Declaration
6014 -- Sloc points to GENERIC
6015 -- Specification (Node1) package specification
6016 -- Corresponding_Body (Node5-Sem)
6017 -- Generic_Formal_Declarations (List2) from generic formal part
6018 -- Parent_Spec (Node4-Sem)
6019 -- Activation_Chain_Entity (Node3-Sem)
6020
6021 -------------------------------
6022 -- 12.1 Generic Formal Part --
6023 -------------------------------
6024
6025 -- GENERIC_FORMAL_PART ::=
6026 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6027
6028 ------------------------------------------------
6029 -- 12.1 Generic Formal Parameter Declaration --
6030 ------------------------------------------------
6031
6032 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6033 -- FORMAL_OBJECT_DECLARATION
6034 -- | FORMAL_TYPE_DECLARATION
6035 -- | FORMAL_SUBPROGRAM_DECLARATION
6036 -- | FORMAL_PACKAGE_DECLARATION
6037
6038 ---------------------------------
6039 -- 12.3 Generic Instantiation --
6040 ---------------------------------
6041
6042 -- GENERIC_INSTANTIATION ::=
6043 -- package DEFINING_PROGRAM_UNIT_NAME is
6044 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6045 -- [ASPECT_SPECIFICATIONS];
6046 -- | [[not] overriding]
6047 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6048 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6049 -- [ASPECT_SPECIFICATIONS];
6050 -- | [[not] overriding]
6051 -- function DEFINING_DESIGNATOR is
6052 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6053 -- [ASPECT_SPECIFICATIONS];
6054
6055 -- N_Package_Instantiation
6056 -- Sloc points to PACKAGE
6057 -- Defining_Unit_Name (Node1)
6058 -- Name (Node2)
6059 -- Generic_Associations (List3) (set to No_List if no
6060 -- generic actual part)
6061 -- Parent_Spec (Node4-Sem)
6062 -- Instance_Spec (Node5-Sem)
6063 -- ABE_Is_Certain (Flag18-Sem)
6064
6065 -- N_Procedure_Instantiation
6066 -- Sloc points to PROCEDURE
6067 -- Defining_Unit_Name (Node1)
6068 -- Name (Node2)
6069 -- Parent_Spec (Node4-Sem)
6070 -- Generic_Associations (List3) (set to No_List if no
6071 -- generic actual part)
6072 -- Instance_Spec (Node5-Sem)
6073 -- Must_Override (Flag14) set if overriding indicator present
6074 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6075 -- ABE_Is_Certain (Flag18-Sem)
6076
6077 -- N_Function_Instantiation
6078 -- Sloc points to FUNCTION
6079 -- Defining_Unit_Name (Node1)
6080 -- Name (Node2)
6081 -- Generic_Associations (List3) (set to No_List if no
6082 -- generic actual part)
6083 -- Parent_Spec (Node4-Sem)
6084 -- Instance_Spec (Node5-Sem)
6085 -- Must_Override (Flag14) set if overriding indicator present
6086 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6087 -- ABE_Is_Certain (Flag18-Sem)
6088
6089 -- Note: overriding indicator is an Ada 2005 feature
6090
6091 -------------------------------
6092 -- 12.3 Generic Actual Part --
6093 -------------------------------
6094
6095 -- GENERIC_ACTUAL_PART ::=
6096 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6097
6098 -------------------------------
6099 -- 12.3 Generic Association --
6100 -------------------------------
6101
6102 -- GENERIC_ASSOCIATION ::=
6103 -- [generic_formal_parameter_SELECTOR_NAME =>]
6104
6105 -- Note: unlike the procedure call case, a generic association node
6106 -- is generated for every association, even if no formal parameter
6107 -- selector name is present. In this case the parser will leave the
6108 -- Selector_Name field set to Empty, to be filled in later by the
6109 -- semantic pass.
6110
6111 -- In Ada 2005, a formal may be associated with a box, if the
6112 -- association is part of the list of actuals for a formal package.
6113 -- If the association is given by OTHERS => <>, the association is
6114 -- an N_Others_Choice.
6115
6116 -- N_Generic_Association
6117 -- Sloc points to first token of generic association
6118 -- Selector_Name (Node2) (set to Empty if no formal
6119 -- parameter selector name)
6120 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6121 -- Box_Present (Flag15) (for formal_package associations with a box)
6122
6123 ---------------------------------------------
6124 -- 12.3 Explicit Generic Actual Parameter --
6125 ---------------------------------------------
6126
6127 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6128 -- EXPRESSION | variable_NAME | subprogram_NAME
6129 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
6130
6131 -------------------------------------
6132 -- 12.4 Formal Object Declaration --
6133 -------------------------------------
6134
6135 -- FORMAL_OBJECT_DECLARATION ::=
6136 -- DEFINING_IDENTIFIER_LIST :
6137 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6138 -- [ASPECT_SPECIFICATIONS];
6139 -- | DEFINING_IDENTIFIER_LIST :
6140 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6141 -- [ASPECT_SPECIFICATIONS];
6142
6143 -- Although the syntax allows multiple identifiers in the list, the
6144 -- semantics is as though successive declarations were given with
6145 -- identical type definition and expression components. To simplify
6146 -- semantic processing, the parser represents a multiple declaration
6147 -- case as a sequence of single declarations, using the More_Ids and
6148 -- Prev_Ids flags to preserve the original source form as described
6149 -- in the section on "Handling of Defining Identifier Lists".
6150
6151 -- N_Formal_Object_Declaration
6152 -- Sloc points to first identifier
6153 -- Defining_Identifier (Node1)
6154 -- In_Present (Flag15)
6155 -- Out_Present (Flag17)
6156 -- Null_Exclusion_Present (Flag11) (set to False if not present)
6157 -- Subtype_Mark (Node4) (set to Empty if not present)
6158 -- Access_Definition (Node3) (set to Empty if not present)
6159 -- Default_Expression (Node5) (set to Empty if no default expression)
6160 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6161 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6162
6163 -----------------------------------
6164 -- 12.5 Formal Type Declaration --
6165 -----------------------------------
6166
6167 -- FORMAL_TYPE_DECLARATION ::=
6168 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6169 -- is FORMAL_TYPE_DEFINITION
6170 -- [ASPECT_SPECIFICATIONS];
6171
6172 -- N_Formal_Type_Declaration
6173 -- Sloc points to TYPE
6174 -- Defining_Identifier (Node1)
6175 -- Formal_Type_Definition (Node3)
6176 -- Discriminant_Specifications (List4) (set to No_List if no
6177 -- discriminant part)
6178 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6179
6180 ----------------------------------
6181 -- 12.5 Formal type definition --
6182 ----------------------------------
6183
6184 -- FORMAL_TYPE_DEFINITION ::=
6185 -- FORMAL_PRIVATE_TYPE_DEFINITION
6186 -- | FORMAL_DERIVED_TYPE_DEFINITION
6187 -- | FORMAL_DISCRETE_TYPE_DEFINITION
6188 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6189 -- | FORMAL_MODULAR_TYPE_DEFINITION
6190 -- | FORMAL_FLOATING_POINT_DEFINITION
6191 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6192 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6193 -- | FORMAL_ARRAY_TYPE_DEFINITION
6194 -- | FORMAL_ACCESS_TYPE_DEFINITION
6195 -- | FORMAL_INTERFACE_TYPE_DEFINITION
6196
6197 ---------------------------------------------
6198 -- 12.5.1 Formal Private Type Definition --
6199 ---------------------------------------------
6200
6201 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
6202 -- [[abstract] tagged] [limited] private
6203
6204 -- Note: TAGGED is not allowed in Ada 83 mode
6205
6206 -- N_Formal_Private_Type_Definition
6207 -- Sloc points to PRIVATE
6208 -- Abstract_Present (Flag4)
6209 -- Tagged_Present (Flag15)
6210 -- Limited_Present (Flag17)
6211
6212 --------------------------------------------
6213 -- 12.5.1 Formal Derived Type Definition --
6214 --------------------------------------------
6215
6216 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
6217 -- [abstract] [limited | synchronized]
6218 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6219 -- Note: this construct is not allowed in Ada 83 mode
6220
6221 -- N_Formal_Derived_Type_Definition
6222 -- Sloc points to NEW
6223 -- Subtype_Mark (Node4)
6224 -- Private_Present (Flag15)
6225 -- Abstract_Present (Flag4)
6226 -- Limited_Present (Flag17)
6227 -- Synchronized_Present (Flag7)
6228 -- Interface_List (List2) (set to No_List if none)
6229
6230 ---------------------------------------------
6231 -- 12.5.2 Formal Discrete Type Definition --
6232 ---------------------------------------------
6233
6234 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6235
6236 -- N_Formal_Discrete_Type_Definition
6237 -- Sloc points to (
6238
6239 ---------------------------------------------------
6240 -- 12.5.2 Formal Signed Integer Type Definition --
6241 ---------------------------------------------------
6242
6243 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6244
6245 -- N_Formal_Signed_Integer_Type_Definition
6246 -- Sloc points to RANGE
6247
6248 --------------------------------------------
6249 -- 12.5.2 Formal Modular Type Definition --
6250 --------------------------------------------
6251
6252 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6253
6254 -- N_Formal_Modular_Type_Definition
6255 -- Sloc points to MOD
6256
6257 ----------------------------------------------
6258 -- 12.5.2 Formal Floating Point Definition --
6259 ----------------------------------------------
6260
6261 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6262
6263 -- N_Formal_Floating_Point_Definition
6264 -- Sloc points to DIGITS
6265
6266 ----------------------------------------------------
6267 -- 12.5.2 Formal Ordinary Fixed Point Definition --
6268 ----------------------------------------------------
6269
6270 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6271
6272 -- N_Formal_Ordinary_Fixed_Point_Definition
6273 -- Sloc points to DELTA
6274
6275 ---------------------------------------------------
6276 -- 12.5.2 Formal Decimal Fixed Point Definition --
6277 ---------------------------------------------------
6278
6279 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6280
6281 -- Note: formal decimal fixed point definition not allowed in Ada 83
6282
6283 -- N_Formal_Decimal_Fixed_Point_Definition
6284 -- Sloc points to DELTA
6285
6286 ------------------------------------------
6287 -- 12.5.3 Formal Array Type Definition --
6288 ------------------------------------------
6289
6290 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6291
6292 -------------------------------------------
6293 -- 12.5.4 Formal Access Type Definition --
6294 -------------------------------------------
6295
6296 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6297
6298 ----------------------------------------------
6299 -- 12.5.5 Formal Interface Type Definition --
6300 ----------------------------------------------
6301
6302 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6303
6304 -----------------------------------------
6305 -- 12.6 Formal Subprogram Declaration --
6306 -----------------------------------------
6307
6308 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6309 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6310 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6311
6312 --------------------------------------------------
6313 -- 12.6 Formal Concrete Subprogram Declaration --
6314 --------------------------------------------------
6315
6316 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6317 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6318 -- [ASPECT_SPECIFICATIONS];
6319
6320 -- N_Formal_Concrete_Subprogram_Declaration
6321 -- Sloc points to WITH
6322 -- Specification (Node1)
6323 -- Default_Name (Node2) (set to Empty if no subprogram default)
6324 -- Box_Present (Flag15)
6325
6326 -- Note: if no subprogram default is present, then Name is set
6327 -- to Empty, and Box_Present is False.
6328
6329 --------------------------------------------------
6330 -- 12.6 Formal Abstract Subprogram Declaration --
6331 --------------------------------------------------
6332
6333 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6334 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6335 -- [ASPECT_SPECIFICATIONS];
6336
6337 -- N_Formal_Abstract_Subprogram_Declaration
6338 -- Sloc points to WITH
6339 -- Specification (Node1)
6340 -- Default_Name (Node2) (set to Empty if no subprogram default)
6341 -- Box_Present (Flag15)
6342
6343 -- Note: if no subprogram default is present, then Name is set
6344 -- to Empty, and Box_Present is False.
6345
6346 ------------------------------
6347 -- 12.6 Subprogram Default --
6348 ------------------------------
6349
6350 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6351
6352 -- There is no separate node in the tree for a subprogram default.
6353 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6354 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6355 -- default name or box indication, as needed.
6356
6357 ------------------------
6358 -- 12.6 Default Name --
6359 ------------------------
6360
6361 -- DEFAULT_NAME ::= NAME
6362
6363 --------------------------------------
6364 -- 12.7 Formal Package Declaration --
6365 --------------------------------------
6366
6367 -- FORMAL_PACKAGE_DECLARATION ::=
6368 -- with package DEFINING_IDENTIFIER
6369 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
6370 -- [ASPECT_SPECIFICATIONS];
6371
6372 -- Note: formal package declarations not allowed in Ada 83 mode
6373
6374 -- N_Formal_Package_Declaration
6375 -- Sloc points to WITH
6376 -- Defining_Identifier (Node1)
6377 -- Name (Node2)
6378 -- Generic_Associations (List3) (set to No_List if (<>) case or
6379 -- empty generic actual part)
6380 -- Box_Present (Flag15)
6381 -- Instance_Spec (Node5-Sem)
6382 -- ABE_Is_Certain (Flag18-Sem)
6383
6384 --------------------------------------
6385 -- 12.7 Formal Package Actual Part --
6386 --------------------------------------
6387
6388 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6389 -- ([OTHERS] => <>)
6390 -- | [GENERIC_ACTUAL_PART]
6391 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6392
6393 -- FORMAL_PACKAGE_ASSOCIATION ::=
6394 -- GENERIC_ASSOCIATION
6395 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6396
6397 -- There is no explicit node in the tree for a formal package actual
6398 -- part. Instead the information appears in the parent node (i.e. the
6399 -- formal package declaration node itself).
6400
6401 -- There is no explicit node for a formal package association. All of
6402 -- them are represented either by a generic association, possibly with
6403 -- Box_Present, or by an N_Others_Choice.
6404
6405 ---------------------------------
6406 -- 13.1 Representation clause --
6407 ---------------------------------
6408
6409 -- REPRESENTATION_CLAUSE ::=
6410 -- ATTRIBUTE_DEFINITION_CLAUSE
6411 -- | ENUMERATION_REPRESENTATION_CLAUSE
6412 -- | RECORD_REPRESENTATION_CLAUSE
6413 -- | AT_CLAUSE
6414
6415 ----------------------
6416 -- 13.1 Local Name --
6417 ----------------------
6418
6419 -- LOCAL_NAME :=
6420 -- DIRECT_NAME
6421 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6422 -- | library_unit_NAME
6423
6424 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6425 -- as an attribute reference, which has essentially the same form.
6426
6427 ---------------------------------------
6428 -- 13.3 Attribute definition clause --
6429 ---------------------------------------
6430
6431 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6432 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6433 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6434
6435 -- In Ada 83, the expression must be a simple expression and the
6436 -- local name must be a direct name.
6437
6438 -- Note: the only attribute definition clause that is processed by
6439 -- gigi is an address clause. For all other cases, the information
6440 -- is extracted by the front end and either results in setting entity
6441 -- information, e.g. Esize for the Size clause, or in appropriate
6442 -- expansion actions (e.g. in the case of Storage_Size).
6443
6444 -- For an address clause, Gigi constructs the appropriate addressing
6445 -- code. It also ensures that no aliasing optimizations are made
6446 -- for the object for which the address clause appears.
6447
6448 -- Note: for an address clause used to achieve an overlay:
6449
6450 -- A : Integer;
6451 -- B : Integer;
6452 -- for B'Address use A'Address;
6453
6454 -- the above rule means that Gigi will ensure that no optimizations
6455 -- will be made for B that would violate the implementation advice
6456 -- of RM 13.3(19). However, this advice applies only to B and not
6457 -- to A, which seems unfortunate. The GNAT front end will mark the
6458 -- object A as volatile to also prevent unwanted optimization
6459 -- assumptions based on no aliasing being made for B.
6460
6461 -- N_Attribute_Definition_Clause
6462 -- Sloc points to FOR
6463 -- Name (Node2) the local name
6464 -- Chars (Name1) the identifier name from the attribute designator
6465 -- Expression (Node3) the expression or name
6466 -- Entity (Node4-Sem)
6467 -- Next_Rep_Item (Node5-Sem)
6468 -- From_At_Mod (Flag4-Sem)
6469 -- Check_Address_Alignment (Flag11-Sem)
6470 -- From_Aspect_Specification (Flag13-Sem)
6471 -- Is_Delayed_Aspect (Flag14-Sem)
6472 -- Address_Warning_Posted (Flag18-Sem)
6473
6474 -- Note: if From_Aspect_Specification is set, then Sloc points to the
6475 -- aspect name, and Entity is resolved already to reference the entity
6476 -- to which the aspect applies.
6477
6478 -----------------------------------
6479 -- 13.3.1 Aspect Specifications --
6480 -----------------------------------
6481
6482 -- We modify the RM grammar here, the RM grammar is:
6483
6484 -- ASPECT_SPECIFICATION ::=
6485 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {.
6486 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
6487
6488 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6489
6490 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
6491
6492 -- That's inconvenient, since there is no non-terminal name for a single
6493 -- entry in the list of aspects. So we use this grammar instead:
6494
6495 -- ASPECT_SPECIFICATIONS ::=
6496 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
6497
6498 -- ASPECT_SPECIFICATION =>
6499 -- ASPECT_MARK [=> ASPECT_DEFINITION]
6500
6501 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6502
6503 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
6504
6505 -- See separate package Aspects for details on the incorporation of
6506 -- these nodes into the tree, and how aspect specifications for a given
6507 -- declaration node are associated with that node.
6508
6509 -- N_Aspect_Specification
6510 -- Sloc points to aspect identifier
6511 -- Identifier (Node1) aspect identifier
6512 -- Aspect_Rep_Item (Node2-Sem)
6513 -- Expression (Node3) Aspect_Definition (set to Empty if none)
6514 -- Entity (Node4-Sem) entity to which the aspect applies
6515 -- Class_Present (Flag6) Set if 'Class present
6516 -- Next_Rep_Item (Node5-Sem)
6517 -- Split_PPC (Flag17) Set if split pre/post attribute
6518
6519 -- Note: Aspect_Specification is an Ada 2012 feature
6520
6521 -- Note: When a Pre or Post aspect specification is processed, it is
6522 -- broken into AND THEN sections. The left most section has Split_PPC
6523 -- set to False, indicating that it is the original specification (e.g.
6524 -- for posting errors). For the other sections, Split_PPC is set True.
6525
6526 ---------------------------------------------
6527 -- 13.4 Enumeration representation clause --
6528 ---------------------------------------------
6529
6530 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
6531 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6532
6533 -- In Ada 83, the name must be a direct name
6534
6535 -- N_Enumeration_Representation_Clause
6536 -- Sloc points to FOR
6537 -- Identifier (Node1) direct name
6538 -- Array_Aggregate (Node3)
6539 -- Next_Rep_Item (Node5-Sem)
6540
6541 ---------------------------------
6542 -- 13.4 Enumeration aggregate --
6543 ---------------------------------
6544
6545 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6546
6547 ------------------------------------------
6548 -- 13.5.1 Record representation clause --
6549 ------------------------------------------
6550
6551 -- RECORD_REPRESENTATION_CLAUSE ::=
6552 -- for first_subtype_LOCAL_NAME use
6553 -- record [MOD_CLAUSE]
6554 -- {COMPONENT_CLAUSE}
6555 -- end record;
6556
6557 -- Gigi restriction: Mod_Clause is always Empty (if present it is
6558 -- replaced by a corresponding Alignment attribute definition clause).
6559
6560 -- Note: Component_Clauses can include pragmas
6561
6562 -- N_Record_Representation_Clause
6563 -- Sloc points to FOR
6564 -- Identifier (Node1) direct name
6565 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
6566 -- Component_Clauses (List3)
6567 -- Next_Rep_Item (Node5-Sem)
6568
6569 ------------------------------
6570 -- 13.5.1 Component clause --
6571 ------------------------------
6572
6573 -- COMPONENT_CLAUSE ::=
6574 -- component_LOCAL_NAME at POSITION
6575 -- range FIRST_BIT .. LAST_BIT;
6576
6577 -- N_Component_Clause
6578 -- Sloc points to AT
6579 -- Component_Name (Node1) points to Name or Attribute_Reference
6580 -- Position (Node2)
6581 -- First_Bit (Node3)
6582 -- Last_Bit (Node4)
6583
6584 ----------------------
6585 -- 13.5.1 Position --
6586 ----------------------
6587
6588 -- POSITION ::= static_EXPRESSION
6589
6590 -----------------------
6591 -- 13.5.1 First_Bit --
6592 -----------------------
6593
6594 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
6595
6596 ----------------------
6597 -- 13.5.1 Last_Bit --
6598 ----------------------
6599
6600 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
6601
6602 --------------------------
6603 -- 13.8 Code statement --
6604 --------------------------
6605
6606 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6607
6608 -- Note: in GNAT, the qualified expression has the form
6609
6610 -- Asm_Insn'(Asm (...));
6611
6612 -- See package System.Machine_Code in file s-maccod.ads for details on
6613 -- the allowed parameters to Asm. There are two ways this node can
6614 -- arise, as a code statement, in which case the expression is the
6615 -- qualified expression, or as a result of the expansion of an intrinsic
6616 -- call to the Asm or Asm_Input procedure.
6617
6618 -- N_Code_Statement
6619 -- Sloc points to first token of the expression
6620 -- Expression (Node3)
6621
6622 -- Note: package Exp_Code contains an abstract functional interface
6623 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
6624
6625 ------------------------
6626 -- 13.12 Restriction --
6627 ------------------------
6628
6629 -- RESTRICTION ::=
6630 -- restriction_IDENTIFIER
6631 -- | restriction_parameter_IDENTIFIER => EXPRESSION
6632
6633 -- There is no explicit node for restrictions. Instead the restriction
6634 -- appears in normal pragma syntax as a pragma argument association,
6635 -- which has the same syntactic form.
6636
6637 --------------------------
6638 -- B.2 Shift Operators --
6639 --------------------------
6640
6641 -- Calls to the intrinsic shift functions are converted to one of
6642 -- the following shift nodes, which have the form of normal binary
6643 -- operator names. Note that for a given shift operation, one node
6644 -- covers all possible types, as for normal operators.
6645
6646 -- Note: it is perfectly permissible for the expander to generate
6647 -- shift operation nodes directly, in which case they will be analyzed
6648 -- and parsed in the usual manner.
6649
6650 -- Sprint syntax: shift-function-name!(expr, count)
6651
6652 -- Note: the Left_Opnd field holds the first argument (the value to
6653 -- be shifted). The Right_Opnd field holds the second argument (the
6654 -- shift count). The Chars field is the name of the intrinsic function.
6655
6656 -- N_Op_Rotate_Left
6657 -- Sloc points to the function name
6658 -- plus fields for binary operator
6659 -- plus fields for expression
6660 -- Shift_Count_OK (Flag4-Sem)
6661
6662 -- N_Op_Rotate_Right
6663 -- Sloc points to the function name
6664 -- plus fields for binary operator
6665 -- plus fields for expression
6666 -- Shift_Count_OK (Flag4-Sem)
6667
6668 -- N_Op_Shift_Left
6669 -- Sloc points to the function name
6670 -- plus fields for binary operator
6671 -- plus fields for expression
6672 -- Shift_Count_OK (Flag4-Sem)
6673
6674 -- N_Op_Shift_Right_Arithmetic
6675 -- Sloc points to the function name
6676 -- plus fields for binary operator
6677 -- plus fields for expression
6678 -- Shift_Count_OK (Flag4-Sem)
6679
6680 -- N_Op_Shift_Right
6681 -- Sloc points to the function name
6682 -- plus fields for binary operator
6683 -- plus fields for expression
6684 -- Shift_Count_OK (Flag4-Sem)
6685
6686 --------------------------
6687 -- Obsolescent Features --
6688 --------------------------
6689
6690 -- The syntax descriptions and tree nodes for obsolescent features are
6691 -- grouped together, corresponding to their location in appendix I in
6692 -- the RM. However, parsing and semantic analysis for these constructs
6693 -- is located in an appropriate chapter (see individual notes).
6694
6695 ---------------------------
6696 -- J.3 Delta Constraint --
6697 ---------------------------
6698
6699 -- Note: the parse routine for this construct is located in section
6700 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6701 -- where delta constraint logically belongs.
6702
6703 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6704
6705 -- N_Delta_Constraint
6706 -- Sloc points to DELTA
6707 -- Delta_Expression (Node3)
6708 -- Range_Constraint (Node4) (set to Empty if not present)
6709
6710 --------------------
6711 -- J.7 At Clause --
6712 --------------------
6713
6714 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6715
6716 -- Note: the parse routine for this construct is located in Par-Ch13,
6717 -- and the semantic analysis is in Sem_Ch13, where at clause logically
6718 -- belongs if it were not obsolescent.
6719
6720 -- Note: in Ada 83 the expression must be a simple expression
6721
6722 -- Gigi restriction: This node never appears, it is rewritten as an
6723 -- address attribute definition clause.
6724
6725 -- N_At_Clause
6726 -- Sloc points to FOR
6727 -- Identifier (Node1)
6728 -- Expression (Node3)
6729
6730 ---------------------
6731 -- J.8 Mod clause --
6732 ---------------------
6733
6734 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
6735
6736 -- Note: the parse routine for this construct is located in Par-Ch13,
6737 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
6738 -- belongs if it were not obsolescent.
6739
6740 -- Note: in Ada 83, the expression must be a simple expression
6741
6742 -- Gigi restriction: this node never appears. It is replaced
6743 -- by a corresponding Alignment attribute definition clause.
6744
6745 -- Note: pragmas can appear before and after the MOD_CLAUSE since
6746 -- its name has "clause" in it. This is rather strange, but is quite
6747 -- definitely specified. The pragmas before are collected in the
6748 -- Pragmas_Before field of the mod clause node itself, and pragmas
6749 -- after are simply swallowed up in the list of component clauses.
6750
6751 -- N_Mod_Clause
6752 -- Sloc points to AT
6753 -- Expression (Node3)
6754 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6755
6756 --------------------
6757 -- Semantic Nodes --
6758 --------------------
6759
6760 -- These semantic nodes are used to hold additional semantic information.
6761 -- They are inserted into the tree as a result of semantic processing.
6762 -- Although there are no legitimate source syntax constructions that
6763 -- correspond directly to these nodes, we need a source syntax for the
6764 -- reconstructed tree printed by Sprint, and the node descriptions here
6765 -- show this syntax.
6766
6767 -- Note: Case_Expression and Conditional_Expression is in this section for
6768 -- now, since they are extensions. We will move them to their appropriate
6769 -- places when they are officially approved as extensions (and then we will
6770 -- know what the exact grammar and place in the Reference Manual is!)
6771
6772 ---------------------
6773 -- Case Expression --
6774 ---------------------
6775
6776 -- CASE_EXPRESSION ::=
6777 -- case EXPRESSION is
6778 -- CASE_EXPRESSION_ALTERNATIVE
6779 -- {CASE_EXPRESSION_ALTERNATIVE}
6780
6781 -- Note that the Alternatives cannot include pragmas (this constrasts
6782 -- with the situation of case statements where pragmas are allowed).
6783
6784 -- N_Case_Expression
6785 -- Sloc points to CASE
6786 -- Expression (Node3)
6787 -- Alternatives (List4)
6788
6789 ---------------------------------
6790 -- Case Expression Alternative --
6791 ---------------------------------
6792
6793 -- CASE_STATEMENT_ALTERNATIVE ::=
6794 -- when DISCRETE_CHOICE_LIST =>
6795 -- EXPRESSION
6796
6797 -- N_Case_Expression_Alternative
6798 -- Sloc points to WHEN
6799 -- Actions (List1)
6800 -- Discrete_Choices (List4)
6801 -- Expression (Node3)
6802
6803 -- Note: The Actions field temporarily holds any actions associated with
6804 -- evaluation of the Expression. During expansion of the case expression
6805 -- these actions are wrapped into the an N_Expressions_With_Actions node
6806 -- replacing the original expression.
6807
6808 ----------------------------
6809 -- Conditional Expression --
6810 ----------------------------
6811
6812 -- This node is used to represent an expression corresponding to the
6813 -- C construct (condition ? then-expression : else_expression), where
6814 -- Expressions is a three element list, whose first expression is the
6815 -- condition, and whose second and third expressions are the then and
6816 -- else expressions respectively.
6817
6818 -- Note: the Then_Actions and Else_Actions fields are always set to
6819 -- No_List in the tree passed to Gigi. These fields are used only
6820 -- for temporary processing purposes in the expander.
6821
6822 -- The Ada language does not permit conditional expressions, however
6823 -- this is under discussion as a possible extension by the ARG, and we
6824 -- have implemented a form of this capability in GNAT under control of
6825 -- the -gnatX switch. The syntax is:
6826
6827 -- CONDITIONAL_EXPRESSION ::=
6828 -- if EXPRESSION then EXPRESSION
6829 -- {elsif EXPRESSION then EXPRESSION}
6830 -- [else EXPRESSION]
6831
6832 -- And we add the additional constructs
6833
6834 -- PRIMARY ::= ( CONDITIONAL_EXPRESION )
6835 -- PRAGMA_ARGUMENT_ASSOCIATION ::= CONDITIONAL_EXPRESSION
6836
6837 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
6838 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
6839 -- the Is_Elsif flag is set on the inner conditional expression.
6840
6841 -- N_Conditional_Expression
6842 -- Sloc points to IF or ELSIF keyword
6843 -- Expressions (List1)
6844 -- Then_Actions (List2-Sem)
6845 -- Else_Actions (List3-Sem)
6846 -- Is_Elsif (Flag13) (set if comes from ELSIF)
6847 -- plus fields for expression
6848
6849 -------------------
6850 -- Expanded_Name --
6851 -------------------
6852
6853 -- The N_Expanded_Name node is used to represent a selected component
6854 -- name that has been resolved to an expanded name. The semantic phase
6855 -- replaces N_Selected_Component nodes that represent names by the use
6856 -- of this node, leaving the N_Selected_Component node used only when
6857 -- the prefix is a record or protected type.
6858
6859 -- The fields of the N_Expanded_Name node are layed out identically
6860 -- to those of the N_Selected_Component node, allowing conversion of
6861 -- an expanded name node to a selected component node to be done
6862 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6863
6864 -- There is no special sprint syntax for an expanded name
6865
6866 -- N_Expanded_Name
6867 -- Sloc points to the period
6868 -- Chars (Name1) copy of Chars field of selector name
6869 -- Prefix (Node3)
6870 -- Selector_Name (Node2)
6871 -- Entity (Node4-Sem)
6872 -- Associated_Node (Node4-Sem)
6873 -- Redundant_Use (Flag13-Sem)
6874 -- Has_Private_View (Flag11-Sem) set in generic units.
6875 -- plus fields for expression
6876
6877 -----------------------------
6878 -- Expression with Actions --
6879 -----------------------------
6880
6881 -- This node is created by the analyzer/expander to handle some
6882 -- expansion cases, notably short circuit forms where there are
6883 -- actions associated with the right hand operand.
6884
6885 -- The N_Expression_With_Actions node represents an expression with
6886 -- an associated set of actions (which are executable statements and
6887 -- declarations, as might occur in a handled statement sequence).
6888
6889 -- The required semantics is that the set of actions is executed in
6890 -- the order in which it appears just before the expression is
6891 -- evaluated (and these actions must only be executed if the value
6892 -- of the expression is evaluated). The node is considered to be
6893 -- a subexpression, whose value is the value of the Expression after
6894 -- executing all the actions.
6895
6896 -- Note: if the actions contain declarations, then these declarations
6897 -- maybe referenced with in the expression. It is thus appropriate for
6898 -- the back end to create a scope that encompasses the construct (any
6899 -- declarations within the actions will definitely not be referenced
6900 -- once elaboration of the construct is completed).
6901
6902 -- Sprint syntax: do
6903 -- action;
6904 -- action;
6905 -- ...
6906 -- action;
6907 -- in expression end
6908
6909 -- N_Expression_With_Actions
6910 -- Actions (List1)
6911 -- Expression (Node3)
6912 -- plus fields for expression
6913
6914 -- Note: the actions list is always non-null, since we would
6915 -- never have created this node if there weren't some actions.
6916
6917 --------------------
6918 -- Free Statement --
6919 --------------------
6920
6921 -- The N_Free_Statement node is generated as a result of a call to an
6922 -- instantiation of Unchecked_Deallocation. The instantiation of this
6923 -- generic is handled specially and generates this node directly.
6924
6925 -- Sprint syntax: free expression
6926
6927 -- N_Free_Statement
6928 -- Sloc is copied from the unchecked deallocation call
6929 -- Expression (Node3) argument to unchecked deallocation call
6930 -- Storage_Pool (Node1-Sem)
6931 -- Procedure_To_Call (Node2-Sem)
6932 -- Actual_Designated_Subtype (Node4-Sem)
6933
6934 -- Note: in the case where a debug source file is generated, the Sloc
6935 -- for this node points to the FREE keyword in the Sprint file output.
6936
6937 -------------------
6938 -- Freeze Entity --
6939 -------------------
6940
6941 -- This node marks the point in a declarative part at which an entity
6942 -- declared therein becomes frozen. The expander places initialization
6943 -- procedures for types at those points. Gigi uses the freezing point
6944 -- to elaborate entities that may depend on previous private types.
6945
6946 -- See the section in Einfo "Delayed Freezing and Elaboration" for
6947 -- a full description of the use of this node.
6948
6949 -- The Entity field points back to the entity for the type (whose
6950 -- Freeze_Node field points back to this freeze node).
6951
6952 -- The Actions field contains a list of declarations and statements
6953 -- generated by the expander which are associated with the freeze
6954 -- node, and are elaborated as though the freeze node were replaced
6955 -- by this sequence of actions.
6956
6957 -- Note: the Sloc field in the freeze node references a construct
6958 -- associated with the freezing point. This is used for posting
6959 -- messages in some error/warning situations, e.g. the case where
6960 -- a primitive operation of a tagged type is declared too late.
6961
6962 -- Sprint syntax: freeze entity-name [
6963 -- freeze actions
6964 -- ]
6965
6966 -- N_Freeze_Entity
6967 -- Sloc points near freeze point (see above special note)
6968 -- Entity (Node4-Sem)
6969 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6970 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6971 -- Actions (List1) (set to No_List if no freeze actions)
6972 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6973
6974 -- The Actions field holds actions associated with the freeze. These
6975 -- actions are elaborated at the point where the type is frozen.
6976
6977 -- Note: in the case where a debug source file is generated, the Sloc
6978 -- for this node points to the FREEZE keyword in the Sprint file output.
6979
6980 --------------------------------
6981 -- Implicit Label Declaration --
6982 --------------------------------
6983
6984 -- An implicit label declaration is created for every occurrence of a
6985 -- label on a statement or a label on a block or loop. It is chained
6986 -- in the declarations of the innermost enclosing block as specified
6987 -- in RM section 5.1 (3).
6988
6989 -- The Defining_Identifier is the actual identifier for the statement
6990 -- identifier. Note that the occurrence of the label is a reference, NOT
6991 -- the defining occurrence. The defining occurrence occurs at the head
6992 -- of the innermost enclosing block, and is represented by this node.
6993
6994 -- Note: from the grammar, this might better be called an implicit
6995 -- statement identifier declaration, but the term we choose seems
6996 -- friendlier, since at least informally statement identifiers are
6997 -- called labels in both cases (i.e. when used in labels, and when
6998 -- used as the identifiers of blocks and loops).
6999
7000 -- Note: although this is logically a semantic node, since it does not
7001 -- correspond directly to a source syntax construction, these nodes are
7002 -- actually created by the parser in a post pass done just after parsing
7003 -- is complete, before semantic analysis is started (see Par.Labl).
7004
7005 -- Sprint syntax: labelname : label;
7006
7007 -- N_Implicit_Label_Declaration
7008 -- Sloc points to the << of the label
7009 -- Defining_Identifier (Node1)
7010 -- Label_Construct (Node2-Sem)
7011
7012 -- Note: in the case where a debug source file is generated, the Sloc
7013 -- for this node points to the label name in the generated declaration.
7014
7015 ---------------------
7016 -- Itype_Reference --
7017 ---------------------
7018
7019 -- This node is used to create a reference to an Itype. The only purpose
7020 -- is to make sure the Itype is defined if this is the first reference.
7021
7022 -- A typical use of this node is when an Itype is to be referenced in
7023 -- two branches of an IF statement. In this case it is important that
7024 -- the first use of the Itype not be inside the conditional, since then
7025 -- it might not be defined if the other branch of the IF is taken, in
7026 -- the case where the definition generates elaboration code.
7027
7028 -- The Itype field points to the referenced Itype
7029
7030 -- Sprint syntax: reference itype-name
7031
7032 -- N_Itype_Reference
7033 -- Sloc points to the node generating the reference
7034 -- Itype (Node1-Sem)
7035
7036 -- Note: in the case where a debug source file is generated, the Sloc
7037 -- for this node points to the REFERENCE keyword in the file output.
7038
7039 ---------------------
7040 -- Raise_xxx_Error --
7041 ---------------------
7042
7043 -- One of these nodes is created during semantic analysis to replace
7044 -- a node for an expression that is determined to definitely raise
7045 -- the corresponding exception.
7046
7047 -- The N_Raise_xxx_Error node may also stand alone in place
7048 -- of a declaration or statement, in which case it simply causes
7049 -- the exception to be raised (i.e. it is equivalent to a raise
7050 -- statement that raises the corresponding exception). This use
7051 -- is distinguished by the fact that the Etype in this case is
7052 -- Standard_Void_Type, In the subexpression case, the Etype is the
7053 -- same as the type of the subexpression which it replaces.
7054
7055 -- If Condition is empty, then the raise is unconditional. If the
7056 -- Condition field is non-empty, it is a boolean expression which
7057 -- is first evaluated, and the exception is raised only if the
7058 -- value of the expression is True. In the unconditional case, the
7059 -- creation of this node is usually accompanied by a warning message
7060 -- error. The creation of this node will usually be accompanied by a
7061 -- message (unless it appears within the right operand of a short
7062 -- circuit form whose left argument is static and decisively
7063 -- eliminates elaboration of the raise operation. The condition field
7064 -- can ONLY be present when the node is used as a statement form, it
7065 -- may NOT be present in the case where the node appears within an
7066 -- expression.
7067
7068 -- The exception is generated with a message that contains the
7069 -- file name and line number, and then appended text. The Reason
7070 -- code shows the text to be added. The Reason code is an element
7071 -- of the type Types.RT_Exception_Code, and indicates both the
7072 -- message to be added, and the exception to be raised (which must
7073 -- match the node type). The value is stored by storing a Uint which
7074 -- is the Pos value of the enumeration element in this type.
7075
7076 -- Gigi restriction: This expander ensures that the type of the
7077 -- Condition field is always Standard.Boolean, even if the type
7078 -- in the source is some non-standard boolean type.
7079
7080 -- Sprint syntax: [xxx_error "msg"]
7081 -- or: [xxx_error when condition "msg"]
7082
7083 -- N_Raise_Constraint_Error
7084 -- Sloc references related construct
7085 -- Condition (Node1) (set to Empty if no condition)
7086 -- Reason (Uint3)
7087 -- plus fields for expression
7088
7089 -- N_Raise_Program_Error
7090 -- Sloc references related construct
7091 -- Condition (Node1) (set to Empty if no condition)
7092 -- Reason (Uint3)
7093 -- plus fields for expression
7094
7095 -- N_Raise_Storage_Error
7096 -- Sloc references related construct
7097 -- Condition (Node1) (set to Empty if no condition)
7098 -- Reason (Uint3)
7099 -- plus fields for expression
7100
7101 -- Note: Sloc is copied from the expression generating the exception.
7102 -- In the case where a debug source file is generated, the Sloc for
7103 -- this node points to the left bracket in the Sprint file output.
7104
7105 -- Note: the back end may be required to translate these nodes into
7106 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7107
7108 ---------------------------------------------
7109 -- Optimization of Exception Raise to Goto --
7110 ---------------------------------------------
7111
7112 -- In some cases, the front end will determine that any exception raised
7113 -- by the back end for a certain exception should be transformed into a
7114 -- goto statement.
7115
7116 -- There are three kinds of exceptions raised by the back end (note that
7117 -- for this purpose we consider gigi to be part of the back end in the
7118 -- gcc case):
7119
7120 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
7121 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
7122 -- 3. Other cases not specifically marked by the front end
7123
7124 -- Normally all such exceptions are translated into calls to the proper
7125 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
7126 -- and the exception message.
7127
7128 -- The front end may determine that for a particular sequence of code,
7129 -- exceptions in any of these three categories for a particular builtin
7130 -- exception should result in a goto, rather than a call to Rcheck_xx.
7131 -- The exact sequence to be generated is:
7132
7133 -- Local_Raise (exception'Identity);
7134 -- goto Label
7135
7136 -- The front end marks such a sequence of code by bracketing it with
7137 -- push and pop nodes:
7138
7139 -- N_Push_xxx_Label (referencing the label)
7140 -- ...
7141 -- (code where transformation is expected for exception xxx)
7142 -- ...
7143 -- N_Pop_xxx_Label
7144
7145 -- The use of push/pop reflects the fact that such regions can properly
7146 -- nest, and one special case is a subregion in which no transformation
7147 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7148 -- Exception_Label field is Empty.
7149
7150 -- N_Push_Constraint_Error_Label
7151 -- Sloc references first statement in region covered
7152 -- Exception_Label (Node5-Sem)
7153
7154 -- N_Push_Program_Error_Label
7155 -- Sloc references first statement in region covered
7156 -- Exception_Label (Node5-Sem)
7157
7158 -- N_Push_Storage_Error_Label
7159 -- Sloc references first statement in region covered
7160 -- Exception_Label (Node5-Sem)
7161
7162 -- N_Pop_Constraint_Error_Label
7163 -- Sloc references last statement in region covered
7164
7165 -- N_Pop_Program_Error_Label
7166 -- Sloc references last statement in region covered
7167
7168 -- N_Pop_Storage_Error_Label
7169 -- Sloc references last statement in region covered
7170
7171 ---------------
7172 -- Reference --
7173 ---------------
7174
7175 -- For a number of purposes, we need to construct references to objects.
7176 -- These references are subsequently treated as normal access values.
7177 -- An example is the construction of the parameter block passed to a
7178 -- task entry. The N_Reference node is provided for this purpose. It is
7179 -- similar in effect to the use of the Unrestricted_Access attribute,
7180 -- and like Unrestricted_Access can be applied to objects which would
7181 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
7182 -- objects which are not aliased, and slices). In addition it can be
7183 -- applied to composite type values as well as objects, including string
7184 -- values and aggregates.
7185
7186 -- Note: we use the Prefix field for this expression so that the
7187 -- resulting node can be treated using common code with the attribute
7188 -- nodes for the 'Access and related attributes. Logically it would make
7189 -- more sense to call it an Expression field, but then we would have to
7190 -- special case the treatment of the N_Reference node.
7191
7192 -- Sprint syntax: prefix'reference
7193
7194 -- N_Reference
7195 -- Sloc is copied from the expression
7196 -- Prefix (Node3)
7197 -- plus fields for expression
7198
7199 -- Note: in the case where a debug source file is generated, the Sloc
7200 -- for this node points to the quote in the Sprint file output.
7201
7202 -----------------
7203 -- SCIL Nodes --
7204 -----------------
7205
7206 -- SCIL nodes are special nodes added to the tree when the CodePeer
7207 -- mode is active. They help the CodePeer backend to locate nodes that
7208 -- require special processing.
7209
7210 -- Major documentation on the general design of the SCIL interface, and
7211 -- in particular detailed description of these nodes is missing and is
7212 -- to be supplied in the future, when the design has finalized ???
7213
7214 -- Meanwhile these nodes should be considered in experimental form, and
7215 -- should be ignored by all code generating back ends. ???
7216
7217 -- N_SCIL_Dispatch_Table_Tag_Init
7218 -- Sloc references a node for a tag initialization
7219 -- SCIL_Entity (Node4-Sem)
7220
7221 -- N_SCIL_Dispatching_Call
7222 -- Sloc references the node of a dispatching call
7223 -- SCIL_Target_Prim (Node2-Sem)
7224 -- SCIL_Entity (Node4-Sem)
7225 -- SCIL_Controlling_Tag (Node5-Sem)
7226
7227 -- N_SCIL_Membership_Test
7228 -- Sloc references the node of a membership test
7229 -- SCIL_Tag_Value (Node5-Sem)
7230 -- SCIL_Entity (Node4-Sem)
7231
7232 ---------------------
7233 -- Subprogram_Info --
7234 ---------------------
7235
7236 -- This node generates the appropriate Subprogram_Info value for a
7237 -- given procedure. See Ada.Exceptions for further details
7238
7239 -- Sprint syntax: subprog'subprogram_info
7240
7241 -- N_Subprogram_Info
7242 -- Sloc points to the entity for the procedure
7243 -- Identifier (Node1) identifier referencing the procedure
7244 -- Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
7245
7246 -- Note: in the case where a debug source file is generated, the Sloc
7247 -- for this node points to the quote in the Sprint file output.
7248
7249 --------------------------
7250 -- Unchecked Expression --
7251 --------------------------
7252
7253 -- An unchecked expression is one that must be analyzed and resolved
7254 -- with all checks off, regardless of the current setting of scope
7255 -- suppress flags.
7256
7257 -- Sprint syntax: `(expression)
7258
7259 -- Note: this node is always removed from the tree (and replaced by
7260 -- its constituent expression) on completion of analysis, so it only
7261 -- appears in intermediate trees, and will never be seen by Gigi.
7262
7263 -- N_Unchecked_Expression
7264 -- Sloc is a copy of the Sloc of the expression
7265 -- Expression (Node3)
7266 -- plus fields for expression
7267
7268 -- Note: in the case where a debug source file is generated, the Sloc
7269 -- for this node points to the back quote in the Sprint file output.
7270
7271 -------------------------------
7272 -- Unchecked Type Conversion --
7273 -------------------------------
7274
7275 -- An unchecked type conversion node represents the semantic action
7276 -- corresponding to a call to an instantiation of Unchecked_Conversion.
7277 -- It is generated as a result of actual use of Unchecked_Conversion
7278 -- and also the expander generates unchecked type conversion nodes
7279 -- directly for expansion of complex semantic actions.
7280
7281 -- Note: an unchecked type conversion is a variable as far as the
7282 -- semantics are concerned, which is convenient for the expander.
7283 -- This does not change what Ada source programs are legal, since
7284 -- clearly a function call to an instantiation of Unchecked_Conversion
7285 -- is not a variable in any case.
7286
7287 -- Sprint syntax: subtype-mark!(expression)
7288
7289 -- N_Unchecked_Type_Conversion
7290 -- Sloc points to related node in source
7291 -- Subtype_Mark (Node4)
7292 -- Expression (Node3)
7293 -- Kill_Range_Check (Flag11-Sem)
7294 -- No_Truncation (Flag17-Sem)
7295 -- plus fields for expression
7296
7297 -- Note: in the case where a debug source file is generated, the Sloc
7298 -- for this node points to the exclamation in the Sprint file output.
7299
7300 -----------------------------------
7301 -- Validate_Unchecked_Conversion --
7302 -----------------------------------
7303
7304 -- The front end does most of the validation of unchecked conversion,
7305 -- including checking sizes (this is done after the back end is called
7306 -- to take advantage of back-annotation of calculated sizes).
7307
7308 -- The front end also deals with specific cases that are not allowed
7309 -- e.g. involving unconstrained array types.
7310
7311 -- For the case of the standard gigi backend, this means that all
7312 -- checks are done in the front-end.
7313
7314 -- However, in the case of specialized back-ends, notably the JVM
7315 -- backend for JGNAT, additional requirements and restrictions apply
7316 -- to unchecked conversion, and these are most conveniently performed
7317 -- in the specialized back-end.
7318
7319 -- To accommodate this requirement, for such back ends, the following
7320 -- special node is generated recording an unchecked conversion that
7321 -- needs to be validated. The back end should post an appropriate
7322 -- error message if the unchecked conversion is invalid or warrants
7323 -- a special warning message.
7324
7325 -- Source_Type and Target_Type point to the entities for the two
7326 -- types involved in the unchecked conversion instantiation that
7327 -- is to be validated.
7328
7329 -- Sprint syntax: validate Unchecked_Conversion (source, target);
7330
7331 -- N_Validate_Unchecked_Conversion
7332 -- Sloc points to instantiation (location for warning message)
7333 -- Source_Type (Node1-Sem)
7334 -- Target_Type (Node2-Sem)
7335
7336 -- Note: in the case where a debug source file is generated, the Sloc
7337 -- for this node points to the VALIDATE keyword in the file output.
7338
7339 -----------
7340 -- Empty --
7341 -----------
7342
7343 -- Used as the contents of the Nkind field of the dummy Empty node
7344 -- and in some other situations to indicate an uninitialized value.
7345
7346 -- N_Empty
7347 -- Chars (Name1) is set to No_Name
7348
7349 -----------
7350 -- Error --
7351 -----------
7352
7353 -- Used as the contents of the Nkind field of the dummy Error node.
7354 -- Has an Etype field, which gets set to Any_Type later on, to help
7355 -- error recovery (Error_Posted is also set in the Error node).
7356
7357 -- N_Error
7358 -- Chars (Name1) is set to Error_Name
7359 -- Etype (Node5-Sem)
7360
7361 --------------------------
7362 -- Node Type Definition --
7363 --------------------------
7364
7365 -- The following is the definition of the Node_Kind type. As previously
7366 -- discussed, this is separated off to allow rearrangement of the order to
7367 -- facilitate definition of subtype ranges. The comments show the subtype
7368 -- classes which apply to each set of node kinds. The first entry in the
7369 -- comment characterizes the following list of nodes.
7370
7371 type Node_Kind is (
7372 N_Unused_At_Start,
7373
7374 -- N_Representation_Clause
7375
7376 N_At_Clause,
7377 N_Component_Clause,
7378 N_Enumeration_Representation_Clause,
7379 N_Mod_Clause,
7380 N_Record_Representation_Clause,
7381
7382 -- N_Representation_Clause, N_Has_Chars
7383
7384 N_Attribute_Definition_Clause,
7385
7386 -- N_Has_Chars
7387
7388 N_Empty,
7389 N_Pragma_Argument_Association,
7390
7391 -- N_Has_Etype
7392
7393 N_Error,
7394
7395 -- N_Entity, N_Has_Etype, N_Has_Chars
7396
7397 N_Defining_Character_Literal,
7398 N_Defining_Identifier,
7399 N_Defining_Operator_Symbol,
7400
7401 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
7402
7403 N_Expanded_Name,
7404
7405 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
7406 -- N_Has_Chars, N_Has_Entity
7407
7408 N_Identifier,
7409 N_Operator_Symbol,
7410
7411 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
7412 -- N_Has_Chars, N_Has_Entity
7413
7414 N_Character_Literal,
7415
7416 -- N_Binary_Op, N_Op, N_Subexpr,
7417 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
7418
7419 N_Op_Add,
7420 N_Op_Concat,
7421 N_Op_Expon,
7422 N_Op_Subtract,
7423
7424 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
7425 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
7426
7427 N_Op_Divide,
7428 N_Op_Mod,
7429 N_Op_Multiply,
7430 N_Op_Rem,
7431
7432 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7433 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
7434
7435 N_Op_And,
7436
7437 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7438 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
7439
7440 N_Op_Eq,
7441 N_Op_Ge,
7442 N_Op_Gt,
7443 N_Op_Le,
7444 N_Op_Lt,
7445 N_Op_Ne,
7446
7447 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7448 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
7449
7450 N_Op_Or,
7451 N_Op_Xor,
7452
7453 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
7454 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
7455
7456 N_Op_Rotate_Left,
7457 N_Op_Rotate_Right,
7458 N_Op_Shift_Left,
7459 N_Op_Shift_Right,
7460 N_Op_Shift_Right_Arithmetic,
7461
7462 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
7463 -- N_Has_Chars, N_Has_Entity
7464
7465 N_Op_Abs,
7466 N_Op_Minus,
7467 N_Op_Not,
7468 N_Op_Plus,
7469
7470 -- N_Subexpr, N_Has_Etype, N_Has_Entity
7471
7472 N_Attribute_Reference,
7473
7474 -- N_Subexpr, N_Has_Etype, N_Membership_Test
7475
7476 N_In,
7477 N_Not_In,
7478
7479 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
7480
7481 N_And_Then,
7482 N_Or_Else,
7483
7484 -- N_Subexpr, N_Has_Etype
7485
7486 N_Conditional_Expression,
7487 N_Explicit_Dereference,
7488 N_Expression_With_Actions,
7489 N_Function_Call,
7490 N_Indexed_Component,
7491 N_Integer_Literal,
7492 N_Null,
7493 N_Procedure_Call_Statement,
7494 N_Qualified_Expression,
7495 N_Quantified_Expression,
7496
7497 -- N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
7498
7499 N_Raise_Constraint_Error,
7500 N_Raise_Program_Error,
7501 N_Raise_Storage_Error,
7502
7503 -- N_Subexpr, N_Has_Etype
7504
7505 N_Aggregate,
7506 N_Allocator,
7507 N_Case_Expression,
7508 N_Extension_Aggregate,
7509 N_Range,
7510 N_Real_Literal,
7511 N_Reference,
7512 N_Selected_Component,
7513 N_Slice,
7514 N_String_Literal,
7515 N_Subprogram_Info,
7516 N_Type_Conversion,
7517 N_Unchecked_Expression,
7518 N_Unchecked_Type_Conversion,
7519
7520 -- N_Has_Etype
7521
7522 N_Subtype_Indication,
7523
7524 -- N_Declaration
7525
7526 N_Component_Declaration,
7527 N_Entry_Declaration,
7528 N_Formal_Object_Declaration,
7529 N_Formal_Type_Declaration,
7530 N_Full_Type_Declaration,
7531 N_Incomplete_Type_Declaration,
7532 N_Iterator_Specification,
7533 N_Loop_Parameter_Specification,
7534 N_Object_Declaration,
7535 N_Parameterized_Expression,
7536 N_Protected_Type_Declaration,
7537 N_Private_Extension_Declaration,
7538 N_Private_Type_Declaration,
7539 N_Subtype_Declaration,
7540
7541 -- N_Subprogram_Specification, N_Declaration
7542
7543 N_Function_Specification,
7544 N_Procedure_Specification,
7545
7546 -- N_Access_To_Subprogram_Definition
7547
7548 N_Access_Function_Definition,
7549 N_Access_Procedure_Definition,
7550
7551 -- N_Later_Decl_Item
7552
7553 N_Task_Type_Declaration,
7554
7555 -- N_Body_Stub, N_Later_Decl_Item
7556
7557 N_Package_Body_Stub,
7558 N_Protected_Body_Stub,
7559 N_Subprogram_Body_Stub,
7560 N_Task_Body_Stub,
7561
7562 -- N_Generic_Instantiation, N_Later_Decl_Item
7563 -- N_Subprogram_Instantiation
7564
7565 N_Function_Instantiation,
7566 N_Procedure_Instantiation,
7567
7568 -- N_Generic_Instantiation, N_Later_Decl_Item
7569
7570 N_Package_Instantiation,
7571
7572 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7573
7574 N_Package_Body,
7575 N_Subprogram_Body,
7576
7577 -- N_Later_Decl_Item, N_Proper_Body
7578
7579 N_Protected_Body,
7580 N_Task_Body,
7581
7582 -- N_Later_Decl_Item
7583
7584 N_Implicit_Label_Declaration,
7585 N_Package_Declaration,
7586 N_Single_Task_Declaration,
7587 N_Subprogram_Declaration,
7588 N_Use_Package_Clause,
7589
7590 -- N_Generic_Declaration, N_Later_Decl_Item
7591
7592 N_Generic_Package_Declaration,
7593 N_Generic_Subprogram_Declaration,
7594
7595 -- N_Array_Type_Definition
7596
7597 N_Constrained_Array_Definition,
7598 N_Unconstrained_Array_Definition,
7599
7600 -- N_Renaming_Declaration
7601
7602 N_Exception_Renaming_Declaration,
7603 N_Object_Renaming_Declaration,
7604 N_Package_Renaming_Declaration,
7605 N_Subprogram_Renaming_Declaration,
7606
7607 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
7608
7609 N_Generic_Function_Renaming_Declaration,
7610 N_Generic_Package_Renaming_Declaration,
7611 N_Generic_Procedure_Renaming_Declaration,
7612
7613 -- N_Statement_Other_Than_Procedure_Call
7614
7615 N_Abort_Statement,
7616 N_Accept_Statement,
7617 N_Assignment_Statement,
7618 N_Asynchronous_Select,
7619 N_Block_Statement,
7620 N_Case_Statement,
7621 N_Code_Statement,
7622 N_Conditional_Entry_Call,
7623
7624 -- N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
7625
7626 N_Delay_Relative_Statement,
7627 N_Delay_Until_Statement,
7628
7629 -- N_Statement_Other_Than_Procedure_Call
7630
7631 N_Entry_Call_Statement,
7632 N_Free_Statement,
7633 N_Goto_Statement,
7634 N_Loop_Statement,
7635 N_Null_Statement,
7636 N_Raise_Statement,
7637 N_Requeue_Statement,
7638 N_Return_Statement, -- renamed as N_Simple_Return_Statement below
7639 N_Extended_Return_Statement,
7640 N_Selective_Accept,
7641 N_Timed_Entry_Call,
7642
7643 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7644
7645 N_Exit_Statement,
7646 N_If_Statement,
7647
7648 -- N_Has_Condition
7649
7650 N_Accept_Alternative,
7651 N_Delay_Alternative,
7652 N_Elsif_Part,
7653 N_Entry_Body_Formal_Part,
7654 N_Iteration_Scheme,
7655 N_Terminate_Alternative,
7656
7657 -- N_Formal_Subprogram_Declaration
7658
7659 N_Formal_Abstract_Subprogram_Declaration,
7660 N_Formal_Concrete_Subprogram_Declaration,
7661
7662 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
7663
7664 N_Push_Constraint_Error_Label,
7665 N_Push_Program_Error_Label,
7666 N_Push_Storage_Error_Label,
7667
7668 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7669
7670 N_Pop_Constraint_Error_Label,
7671 N_Pop_Program_Error_Label,
7672 N_Pop_Storage_Error_Label,
7673
7674 -- SCIL nodes
7675
7676 N_SCIL_Dispatch_Table_Tag_Init,
7677 N_SCIL_Dispatching_Call,
7678 N_SCIL_Membership_Test,
7679
7680 -- Other nodes (not part of any subtype class)
7681
7682 N_Abortable_Part,
7683 N_Abstract_Subprogram_Declaration,
7684 N_Access_Definition,
7685 N_Access_To_Object_Definition,
7686 N_Aspect_Specification,
7687 N_Case_Expression_Alternative,
7688 N_Case_Statement_Alternative,
7689 N_Compilation_Unit,
7690 N_Compilation_Unit_Aux,
7691 N_Component_Association,
7692 N_Component_Definition,
7693 N_Component_List,
7694 N_Derived_Type_Definition,
7695 N_Decimal_Fixed_Point_Definition,
7696 N_Defining_Program_Unit_Name,
7697 N_Delta_Constraint,
7698 N_Designator,
7699 N_Digits_Constraint,
7700 N_Discriminant_Association,
7701 N_Discriminant_Specification,
7702 N_Enumeration_Type_Definition,
7703 N_Entry_Body,
7704 N_Entry_Call_Alternative,
7705 N_Entry_Index_Specification,
7706 N_Exception_Declaration,
7707 N_Exception_Handler,
7708 N_Floating_Point_Definition,
7709 N_Formal_Decimal_Fixed_Point_Definition,
7710 N_Formal_Derived_Type_Definition,
7711 N_Formal_Discrete_Type_Definition,
7712 N_Formal_Floating_Point_Definition,
7713 N_Formal_Modular_Type_Definition,
7714 N_Formal_Ordinary_Fixed_Point_Definition,
7715 N_Formal_Package_Declaration,
7716 N_Formal_Private_Type_Definition,
7717 N_Formal_Signed_Integer_Type_Definition,
7718 N_Freeze_Entity,
7719 N_Generic_Association,
7720 N_Handled_Sequence_Of_Statements,
7721 N_Index_Or_Discriminant_Constraint,
7722 N_Itype_Reference,
7723 N_Label,
7724 N_Modular_Type_Definition,
7725 N_Number_Declaration,
7726 N_Ordinary_Fixed_Point_Definition,
7727 N_Others_Choice,
7728 N_Package_Specification,
7729 N_Parameter_Association,
7730 N_Parameter_Specification,
7731 N_Pragma,
7732 N_Protected_Definition,
7733 N_Range_Constraint,
7734 N_Real_Range_Specification,
7735 N_Record_Definition,
7736 N_Signed_Integer_Type_Definition,
7737 N_Single_Protected_Declaration,
7738 N_Subunit,
7739 N_Task_Definition,
7740 N_Triggering_Alternative,
7741 N_Use_Type_Clause,
7742 N_Validate_Unchecked_Conversion,
7743 N_Variant,
7744 N_Variant_Part,
7745 N_With_Clause,
7746 N_Unused_At_End);
7747
7748 for Node_Kind'Size use 8;
7749 -- The data structures in Atree assume this!
7750
7751 ----------------------------
7752 -- Node Class Definitions --
7753 ----------------------------
7754
7755 subtype N_Access_To_Subprogram_Definition is Node_Kind range
7756 N_Access_Function_Definition ..
7757 N_Access_Procedure_Definition;
7758
7759 subtype N_Array_Type_Definition is Node_Kind range
7760 N_Constrained_Array_Definition ..
7761 N_Unconstrained_Array_Definition;
7762
7763 subtype N_Binary_Op is Node_Kind range
7764 N_Op_Add ..
7765 N_Op_Shift_Right_Arithmetic;
7766
7767 subtype N_Body_Stub is Node_Kind range
7768 N_Package_Body_Stub ..
7769 N_Task_Body_Stub;
7770
7771 subtype N_Declaration is Node_Kind range
7772 N_Component_Declaration ..
7773 N_Procedure_Specification;
7774 -- Note: this includes all constructs normally thought of as declarations
7775 -- except those which are separately grouped as later declarations.
7776
7777 subtype N_Delay_Statement is Node_Kind range
7778 N_Delay_Relative_Statement ..
7779 N_Delay_Until_Statement;
7780
7781 subtype N_Direct_Name is Node_Kind range
7782 N_Identifier ..
7783 N_Character_Literal;
7784
7785 subtype N_Entity is Node_Kind range
7786 N_Defining_Character_Literal ..
7787 N_Defining_Operator_Symbol;
7788
7789 subtype N_Formal_Subprogram_Declaration is Node_Kind range
7790 N_Formal_Abstract_Subprogram_Declaration ..
7791 N_Formal_Concrete_Subprogram_Declaration;
7792
7793 subtype N_Generic_Declaration is Node_Kind range
7794 N_Generic_Package_Declaration ..
7795 N_Generic_Subprogram_Declaration;
7796
7797 subtype N_Generic_Instantiation is Node_Kind range
7798 N_Function_Instantiation ..
7799 N_Package_Instantiation;
7800
7801 subtype N_Generic_Renaming_Declaration is Node_Kind range
7802 N_Generic_Function_Renaming_Declaration ..
7803 N_Generic_Procedure_Renaming_Declaration;
7804
7805 subtype N_Has_Chars is Node_Kind range
7806 N_Attribute_Definition_Clause ..
7807 N_Op_Plus;
7808
7809 subtype N_Has_Entity is Node_Kind range
7810 N_Expanded_Name ..
7811 N_Attribute_Reference;
7812 -- Nodes that have Entity fields
7813 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Aspect_Specification,
7814 -- or N_Attribute_Definition_Clause.
7815
7816 subtype N_Has_Etype is Node_Kind range
7817 N_Error ..
7818 N_Subtype_Indication;
7819
7820 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7821 N_Op_Divide ..
7822 N_Op_Rem;
7823
7824 subtype N_Multiplying_Operator is Node_Kind range
7825 N_Op_Divide ..
7826 N_Op_Rem;
7827
7828 subtype N_Later_Decl_Item is Node_Kind range
7829 N_Task_Type_Declaration ..
7830 N_Generic_Subprogram_Declaration;
7831 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
7832 -- only those items which can appear as later declarative items. This also
7833 -- includes N_Implicit_Label_Declaration which is not specifically in the
7834 -- grammar but may appear as a valid later declarative items. It does NOT
7835 -- include N_Pragma which can also appear among later declarative items.
7836 -- It does however include N_Protected_Body, which is a bit peculiar, but
7837 -- harmless since this cannot appear in Ada 83 mode anyway.
7838
7839 subtype N_Membership_Test is Node_Kind range
7840 N_In ..
7841 N_Not_In;
7842
7843 subtype N_Op is Node_Kind range
7844 N_Op_Add ..
7845 N_Op_Plus;
7846
7847 subtype N_Op_Boolean is Node_Kind range
7848 N_Op_And ..
7849 N_Op_Xor;
7850 -- Binary operators which take operands of a boolean type, and yield
7851 -- a result of a boolean type.
7852
7853 subtype N_Op_Compare is Node_Kind range
7854 N_Op_Eq ..
7855 N_Op_Ne;
7856
7857 subtype N_Op_Shift is Node_Kind range
7858 N_Op_Rotate_Left ..
7859 N_Op_Shift_Right_Arithmetic;
7860
7861 subtype N_Proper_Body is Node_Kind range
7862 N_Package_Body ..
7863 N_Task_Body;
7864
7865 subtype N_Push_xxx_Label is Node_Kind range
7866 N_Push_Constraint_Error_Label ..
7867 N_Push_Storage_Error_Label;
7868
7869 subtype N_Pop_xxx_Label is Node_Kind range
7870 N_Pop_Constraint_Error_Label ..
7871 N_Pop_Storage_Error_Label;
7872
7873 subtype N_Push_Pop_xxx_Label is Node_Kind range
7874 N_Push_Constraint_Error_Label ..
7875 N_Pop_Storage_Error_Label;
7876
7877 subtype N_Raise_xxx_Error is Node_Kind range
7878 N_Raise_Constraint_Error ..
7879 N_Raise_Storage_Error;
7880
7881 subtype N_Renaming_Declaration is Node_Kind range
7882 N_Exception_Renaming_Declaration ..
7883 N_Generic_Procedure_Renaming_Declaration;
7884
7885 subtype N_Representation_Clause is Node_Kind range
7886 N_At_Clause ..
7887 N_Attribute_Definition_Clause;
7888
7889 subtype N_Short_Circuit is Node_Kind range
7890 N_And_Then ..
7891 N_Or_Else;
7892
7893 subtype N_SCIL_Node is Node_Kind range
7894 N_SCIL_Dispatch_Table_Tag_Init ..
7895 N_SCIL_Membership_Test;
7896
7897 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7898 N_Abort_Statement ..
7899 N_If_Statement;
7900 -- Note that this includes all statement types except for the cases of the
7901 -- N_Procedure_Call_Statement which is considered to be a subexpression
7902 -- (since overloading is possible, so it needs to go through the normal
7903 -- overloading resolution for expressions).
7904
7905 subtype N_Subprogram_Instantiation is Node_Kind range
7906 N_Function_Instantiation ..
7907 N_Procedure_Instantiation;
7908
7909 subtype N_Has_Condition is Node_Kind range
7910 N_Exit_Statement ..
7911 N_Terminate_Alternative;
7912 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
7913
7914 subtype N_Subexpr is Node_Kind range
7915 N_Expanded_Name ..
7916 N_Unchecked_Type_Conversion;
7917 -- Nodes with expression fields
7918
7919 subtype N_Subprogram_Specification is Node_Kind range
7920 N_Function_Specification ..
7921 N_Procedure_Specification;
7922
7923 subtype N_Unary_Op is Node_Kind range
7924 N_Op_Abs ..
7925 N_Op_Plus;
7926
7927 subtype N_Unit_Body is Node_Kind range
7928 N_Package_Body ..
7929 N_Subprogram_Body;
7930
7931 ---------------------------
7932 -- Node Access Functions --
7933 ---------------------------
7934
7935 -- The following functions return the contents of the indicated field of
7936 -- the node referenced by the argument, which is a Node_Id. They provide
7937 -- logical access to fields in the node which could be accessed using the
7938 -- Atree.Unchecked_Access package, but the idea is always to use these
7939 -- higher level routines which preserve strong typing. In debug mode,
7940 -- these routines check that they are being applied to an appropriate
7941 -- node, as well as checking that the node is in range.
7942
7943 function ABE_Is_Certain
7944 (N : Node_Id) return Boolean; -- Flag18
7945
7946 function Abort_Present
7947 (N : Node_Id) return Boolean; -- Flag15
7948
7949 function Abortable_Part
7950 (N : Node_Id) return Node_Id; -- Node2
7951
7952 function Abstract_Present
7953 (N : Node_Id) return Boolean; -- Flag4
7954
7955 function Accept_Handler_Records
7956 (N : Node_Id) return List_Id; -- List5
7957
7958 function Accept_Statement
7959 (N : Node_Id) return Node_Id; -- Node2
7960
7961 function Access_Definition
7962 (N : Node_Id) return Node_Id; -- Node3
7963
7964 function Access_To_Subprogram_Definition
7965 (N : Node_Id) return Node_Id; -- Node3
7966
7967 function Access_Types_To_Process
7968 (N : Node_Id) return Elist_Id; -- Elist2
7969
7970 function Actions
7971 (N : Node_Id) return List_Id; -- List1
7972
7973 function Activation_Chain_Entity
7974 (N : Node_Id) return Node_Id; -- Node3
7975
7976 function Acts_As_Spec
7977 (N : Node_Id) return Boolean; -- Flag4
7978
7979 function Actual_Designated_Subtype
7980 (N : Node_Id) return Node_Id; -- Node4
7981
7982 function Address_Warning_Posted
7983 (N : Node_Id) return Boolean; -- Flag18
7984
7985 function Aggregate_Bounds
7986 (N : Node_Id) return Node_Id; -- Node3
7987
7988 function Aliased_Present
7989 (N : Node_Id) return Boolean; -- Flag4
7990
7991 function All_Others
7992 (N : Node_Id) return Boolean; -- Flag11
7993
7994 function All_Present
7995 (N : Node_Id) return Boolean; -- Flag15
7996
7997 function Alternatives
7998 (N : Node_Id) return List_Id; -- List4
7999
8000 function Ancestor_Part
8001 (N : Node_Id) return Node_Id; -- Node3
8002
8003 function Array_Aggregate
8004 (N : Node_Id) return Node_Id; -- Node3
8005
8006 function Aspect_Cancel
8007 (N : Node_Id) return Boolean; -- Flag11
8008
8009 function Aspect_Rep_Item
8010 (N : Node_Id) return Node_Id; -- Node2
8011
8012 function Assignment_OK
8013 (N : Node_Id) return Boolean; -- Flag15
8014
8015 function Associated_Node
8016 (N : Node_Id) return Node_Id; -- Node4
8017
8018 function At_End_Proc
8019 (N : Node_Id) return Node_Id; -- Node1
8020
8021 function Attribute_Name
8022 (N : Node_Id) return Name_Id; -- Name2
8023
8024 function Aux_Decls_Node
8025 (N : Node_Id) return Node_Id; -- Node5
8026
8027 function Backwards_OK
8028 (N : Node_Id) return Boolean; -- Flag6
8029
8030 function Bad_Is_Detected
8031 (N : Node_Id) return Boolean; -- Flag15
8032
8033 function By_Ref
8034 (N : Node_Id) return Boolean; -- Flag5
8035
8036 function Body_Required
8037 (N : Node_Id) return Boolean; -- Flag13
8038
8039 function Body_To_Inline
8040 (N : Node_Id) return Node_Id; -- Node3
8041
8042 function Box_Present
8043 (N : Node_Id) return Boolean; -- Flag15
8044
8045 function Char_Literal_Value
8046 (N : Node_Id) return Uint; -- Uint2
8047
8048 function Chars
8049 (N : Node_Id) return Name_Id; -- Name1
8050
8051 function Check_Address_Alignment
8052 (N : Node_Id) return Boolean; -- Flag11
8053
8054 function Choice_Parameter
8055 (N : Node_Id) return Node_Id; -- Node2
8056
8057 function Choices
8058 (N : Node_Id) return List_Id; -- List1
8059
8060 function Class_Present
8061 (N : Node_Id) return Boolean; -- Flag6
8062
8063 function Coextensions
8064 (N : Node_Id) return Elist_Id; -- Elist4
8065
8066 function Comes_From_Extended_Return_Statement
8067 (N : Node_Id) return Boolean; -- Flag18
8068
8069 function Compile_Time_Known_Aggregate
8070 (N : Node_Id) return Boolean; -- Flag18
8071
8072 function Component_Associations
8073 (N : Node_Id) return List_Id; -- List2
8074
8075 function Component_Clauses
8076 (N : Node_Id) return List_Id; -- List3
8077
8078 function Component_Definition
8079 (N : Node_Id) return Node_Id; -- Node4
8080
8081 function Component_Items
8082 (N : Node_Id) return List_Id; -- List3
8083
8084 function Component_List
8085 (N : Node_Id) return Node_Id; -- Node1
8086
8087 function Component_Name
8088 (N : Node_Id) return Node_Id; -- Node1
8089
8090 function Componentwise_Assignment
8091 (N : Node_Id) return Boolean; -- Flag14
8092
8093 function Condition
8094 (N : Node_Id) return Node_Id; -- Node1
8095
8096 function Condition_Actions
8097 (N : Node_Id) return List_Id; -- List3
8098
8099 function Config_Pragmas
8100 (N : Node_Id) return List_Id; -- List4
8101
8102 function Constant_Present
8103 (N : Node_Id) return Boolean; -- Flag17
8104
8105 function Constraint
8106 (N : Node_Id) return Node_Id; -- Node3
8107
8108 function Constraints
8109 (N : Node_Id) return List_Id; -- List1
8110
8111 function Context_Installed
8112 (N : Node_Id) return Boolean; -- Flag13
8113
8114 function Context_Pending
8115 (N : Node_Id) return Boolean; -- Flag16
8116
8117 function Context_Items
8118 (N : Node_Id) return List_Id; -- List1
8119
8120 function Controlling_Argument
8121 (N : Node_Id) return Node_Id; -- Node1
8122
8123 function Conversion_OK
8124 (N : Node_Id) return Boolean; -- Flag14
8125
8126 function Corresponding_Body
8127 (N : Node_Id) return Node_Id; -- Node5
8128
8129 function Corresponding_Formal_Spec
8130 (N : Node_Id) return Node_Id; -- Node3
8131
8132 function Corresponding_Generic_Association
8133 (N : Node_Id) return Node_Id; -- Node5
8134
8135 function Corresponding_Integer_Value
8136 (N : Node_Id) return Uint; -- Uint4
8137
8138 function Corresponding_Spec
8139 (N : Node_Id) return Node_Id; -- Node5
8140
8141 function Corresponding_Stub
8142 (N : Node_Id) return Node_Id; -- Node3
8143
8144 function Dcheck_Function
8145 (N : Node_Id) return Entity_Id; -- Node5
8146
8147 function Debug_Statement
8148 (N : Node_Id) return Node_Id; -- Node3
8149
8150 function Declarations
8151 (N : Node_Id) return List_Id; -- List2
8152
8153 function Default_Expression
8154 (N : Node_Id) return Node_Id; -- Node5
8155
8156 function Default_Storage_Pool
8157 (N : Node_Id) return Node_Id; -- Node3
8158
8159 function Default_Name
8160 (N : Node_Id) return Node_Id; -- Node2
8161
8162 function Defining_Identifier
8163 (N : Node_Id) return Entity_Id; -- Node1
8164
8165 function Defining_Unit_Name
8166 (N : Node_Id) return Node_Id; -- Node1
8167
8168 function Delay_Alternative
8169 (N : Node_Id) return Node_Id; -- Node4
8170
8171 function Delay_Statement
8172 (N : Node_Id) return Node_Id; -- Node2
8173
8174 function Delta_Expression
8175 (N : Node_Id) return Node_Id; -- Node3
8176
8177 function Digits_Expression
8178 (N : Node_Id) return Node_Id; -- Node2
8179
8180 function Discr_Check_Funcs_Built
8181 (N : Node_Id) return Boolean; -- Flag11
8182
8183 function Discrete_Choices
8184 (N : Node_Id) return List_Id; -- List4
8185
8186 function Discrete_Range
8187 (N : Node_Id) return Node_Id; -- Node4
8188
8189 function Discrete_Subtype_Definition
8190 (N : Node_Id) return Node_Id; -- Node4
8191
8192 function Discrete_Subtype_Definitions
8193 (N : Node_Id) return List_Id; -- List2
8194
8195 function Discriminant_Specifications
8196 (N : Node_Id) return List_Id; -- List4
8197
8198 function Discriminant_Type
8199 (N : Node_Id) return Node_Id; -- Node5
8200
8201 function Do_Accessibility_Check
8202 (N : Node_Id) return Boolean; -- Flag13
8203
8204 function Do_Discriminant_Check
8205 (N : Node_Id) return Boolean; -- Flag13
8206
8207 function Do_Division_Check
8208 (N : Node_Id) return Boolean; -- Flag13
8209
8210 function Do_Length_Check
8211 (N : Node_Id) return Boolean; -- Flag4
8212
8213 function Do_Overflow_Check
8214 (N : Node_Id) return Boolean; -- Flag17
8215
8216 function Do_Range_Check
8217 (N : Node_Id) return Boolean; -- Flag9
8218
8219 function Do_Storage_Check
8220 (N : Node_Id) return Boolean; -- Flag17
8221
8222 function Do_Tag_Check
8223 (N : Node_Id) return Boolean; -- Flag13
8224
8225 function Elaborate_All_Desirable
8226 (N : Node_Id) return Boolean; -- Flag9
8227
8228 function Elaborate_All_Present
8229 (N : Node_Id) return Boolean; -- Flag14
8230
8231 function Elaborate_Desirable
8232 (N : Node_Id) return Boolean; -- Flag11
8233
8234 function Elaborate_Present
8235 (N : Node_Id) return Boolean; -- Flag4
8236
8237 function Elaboration_Boolean
8238 (N : Node_Id) return Node_Id; -- Node2
8239
8240 function Else_Actions
8241 (N : Node_Id) return List_Id; -- List3
8242
8243 function Else_Statements
8244 (N : Node_Id) return List_Id; -- List4
8245
8246 function Elsif_Parts
8247 (N : Node_Id) return List_Id; -- List3
8248
8249 function Enclosing_Variant
8250 (N : Node_Id) return Node_Id; -- Node2
8251
8252 function End_Label
8253 (N : Node_Id) return Node_Id; -- Node4
8254
8255 function End_Span
8256 (N : Node_Id) return Uint; -- Uint5
8257
8258 function Entity
8259 (N : Node_Id) return Node_Id; -- Node4
8260
8261 function Entity_Or_Associated_Node
8262 (N : Node_Id) return Node_Id; -- Node4
8263
8264 function Entry_Body_Formal_Part
8265 (N : Node_Id) return Node_Id; -- Node5
8266
8267 function Entry_Call_Alternative
8268 (N : Node_Id) return Node_Id; -- Node1
8269
8270 function Entry_Call_Statement
8271 (N : Node_Id) return Node_Id; -- Node1
8272
8273 function Entry_Direct_Name
8274 (N : Node_Id) return Node_Id; -- Node1
8275
8276 function Entry_Index
8277 (N : Node_Id) return Node_Id; -- Node5
8278
8279 function Entry_Index_Specification
8280 (N : Node_Id) return Node_Id; -- Node4
8281
8282 function Etype
8283 (N : Node_Id) return Node_Id; -- Node5
8284
8285 function Exception_Choices
8286 (N : Node_Id) return List_Id; -- List4
8287
8288 function Exception_Handlers
8289 (N : Node_Id) return List_Id; -- List5
8290
8291 function Exception_Junk
8292 (N : Node_Id) return Boolean; -- Flag8
8293
8294 function Exception_Label
8295 (N : Node_Id) return Node_Id; -- Node5
8296
8297 function Explicit_Actual_Parameter
8298 (N : Node_Id) return Node_Id; -- Node3
8299
8300 function Expansion_Delayed
8301 (N : Node_Id) return Boolean; -- Flag11
8302
8303 function Explicit_Generic_Actual_Parameter
8304 (N : Node_Id) return Node_Id; -- Node1
8305
8306 function Expression
8307 (N : Node_Id) return Node_Id; -- Node3
8308
8309 function Expressions
8310 (N : Node_Id) return List_Id; -- List1
8311
8312 function First_Bit
8313 (N : Node_Id) return Node_Id; -- Node3
8314
8315 function First_Inlined_Subprogram
8316 (N : Node_Id) return Entity_Id; -- Node3
8317
8318 function First_Name
8319 (N : Node_Id) return Boolean; -- Flag5
8320
8321 function First_Named_Actual
8322 (N : Node_Id) return Node_Id; -- Node4
8323
8324 function First_Real_Statement
8325 (N : Node_Id) return Node_Id; -- Node2
8326
8327 function First_Subtype_Link
8328 (N : Node_Id) return Entity_Id; -- Node5
8329
8330 function Float_Truncate
8331 (N : Node_Id) return Boolean; -- Flag11
8332
8333 function Formal_Type_Definition
8334 (N : Node_Id) return Node_Id; -- Node3
8335
8336 function Forwards_OK
8337 (N : Node_Id) return Boolean; -- Flag5
8338
8339 function From_Aspect_Specification
8340 (N : Node_Id) return Boolean; -- Flag13
8341
8342 function From_At_End
8343 (N : Node_Id) return Boolean; -- Flag4
8344
8345 function From_At_Mod
8346 (N : Node_Id) return Boolean; -- Flag4
8347
8348 function From_Default
8349 (N : Node_Id) return Boolean; -- Flag6
8350
8351 function Generic_Associations
8352 (N : Node_Id) return List_Id; -- List3
8353
8354 function Generic_Formal_Declarations
8355 (N : Node_Id) return List_Id; -- List2
8356
8357 function Generic_Parent
8358 (N : Node_Id) return Node_Id; -- Node5
8359
8360 function Generic_Parent_Type
8361 (N : Node_Id) return Node_Id; -- Node4
8362
8363 function Handled_Statement_Sequence
8364 (N : Node_Id) return Node_Id; -- Node4
8365
8366 function Handler_List_Entry
8367 (N : Node_Id) return Node_Id; -- Node2
8368
8369 function Has_Created_Identifier
8370 (N : Node_Id) return Boolean; -- Flag15
8371
8372 function Has_Dynamic_Length_Check
8373 (N : Node_Id) return Boolean; -- Flag10
8374
8375 function Has_Dynamic_Range_Check
8376 (N : Node_Id) return Boolean; -- Flag12
8377
8378 function Has_Init_Expression
8379 (N : Node_Id) return Boolean; -- Flag14
8380
8381 function Has_Local_Raise
8382 (N : Node_Id) return Boolean; -- Flag8
8383
8384 function Has_No_Elaboration_Code
8385 (N : Node_Id) return Boolean; -- Flag17
8386
8387 function Has_Pragma_CPU
8388 (N : Node_Id) return Boolean; -- Flag14
8389
8390 function Has_Pragma_Priority
8391 (N : Node_Id) return Boolean; -- Flag6
8392
8393 function Has_Pragma_Suppress_All
8394 (N : Node_Id) return Boolean; -- Flag14
8395
8396 function Has_Private_View
8397 (N : Node_Id) return Boolean; -- Flag11
8398
8399 function Has_Relative_Deadline_Pragma
8400 (N : Node_Id) return Boolean; -- Flag9
8401
8402 function Has_Self_Reference
8403 (N : Node_Id) return Boolean; -- Flag13
8404
8405 function Has_Storage_Size_Pragma
8406 (N : Node_Id) return Boolean; -- Flag5
8407
8408 function Has_Task_Info_Pragma
8409 (N : Node_Id) return Boolean; -- Flag7
8410
8411 function Has_Task_Name_Pragma
8412 (N : Node_Id) return Boolean; -- Flag8
8413
8414 function Has_Wide_Character
8415 (N : Node_Id) return Boolean; -- Flag11
8416
8417 function Has_Wide_Wide_Character
8418 (N : Node_Id) return Boolean; -- Flag13
8419
8420 function Hidden_By_Use_Clause
8421 (N : Node_Id) return Elist_Id; -- Elist4
8422
8423 function High_Bound
8424 (N : Node_Id) return Node_Id; -- Node2
8425
8426 function Identifier
8427 (N : Node_Id) return Node_Id; -- Node1
8428
8429 function Interface_List
8430 (N : Node_Id) return List_Id; -- List2
8431
8432 function Interface_Present
8433 (N : Node_Id) return Boolean; -- Flag16
8434
8435 function Implicit_With
8436 (N : Node_Id) return Boolean; -- Flag16
8437
8438 function Import_Interface_Present
8439 (N : Node_Id) return Boolean; -- Flag16
8440
8441 function In_Present
8442 (N : Node_Id) return Boolean; -- Flag15
8443
8444 function Includes_Infinities
8445 (N : Node_Id) return Boolean; -- Flag11
8446
8447 function Inherited_Discriminant
8448 (N : Node_Id) return Boolean; -- Flag13
8449
8450 function Instance_Spec
8451 (N : Node_Id) return Node_Id; -- Node5
8452
8453 function Intval
8454 (N : Node_Id) return Uint; -- Uint3
8455
8456 function Is_Accessibility_Actual
8457 (N : Node_Id) return Boolean; -- Flag13
8458
8459 function Is_Asynchronous_Call_Block
8460 (N : Node_Id) return Boolean; -- Flag7
8461
8462 function Is_Component_Left_Opnd
8463 (N : Node_Id) return Boolean; -- Flag13
8464
8465 function Is_Component_Right_Opnd
8466 (N : Node_Id) return Boolean; -- Flag14
8467
8468 function Is_Controlling_Actual
8469 (N : Node_Id) return Boolean; -- Flag16
8470
8471 function Is_Delayed_Aspect
8472 (N : Node_Id) return Boolean; -- Flag14
8473
8474 function Is_Dynamic_Coextension
8475 (N : Node_Id) return Boolean; -- Flag18
8476
8477 function Is_Elsif
8478 (N : Node_Id) return Boolean; -- Flag13
8479
8480 function Is_Entry_Barrier_Function
8481 (N : Node_Id) return Boolean; -- Flag8
8482
8483 function Is_Expanded_Build_In_Place_Call
8484 (N : Node_Id) return Boolean; -- Flag11
8485
8486 function Is_Folded_In_Parser
8487 (N : Node_Id) return Boolean; -- Flag4
8488
8489 function Is_In_Discriminant_Check
8490 (N : Node_Id) return Boolean; -- Flag11
8491
8492 function Is_Machine_Number
8493 (N : Node_Id) return Boolean; -- Flag11
8494
8495 function Is_Null_Loop
8496 (N : Node_Id) return Boolean; -- Flag16
8497
8498 function Is_Overloaded
8499 (N : Node_Id) return Boolean; -- Flag5
8500
8501 function Is_Power_Of_2_For_Shift
8502 (N : Node_Id) return Boolean; -- Flag13
8503
8504 function Is_Protected_Subprogram_Body
8505 (N : Node_Id) return Boolean; -- Flag7
8506
8507 function Is_Static_Coextension
8508 (N : Node_Id) return Boolean; -- Flag14
8509
8510 function Is_Static_Expression
8511 (N : Node_Id) return Boolean; -- Flag6
8512
8513 function Is_Subprogram_Descriptor
8514 (N : Node_Id) return Boolean; -- Flag16
8515
8516 function Is_Task_Allocation_Block
8517 (N : Node_Id) return Boolean; -- Flag6
8518
8519 function Is_Task_Master
8520 (N : Node_Id) return Boolean; -- Flag5
8521
8522 function Iteration_Scheme
8523 (N : Node_Id) return Node_Id; -- Node2
8524
8525 function Iterator_Specification
8526 (N : Node_Id) return Node_Id; -- Node2
8527
8528 function Itype
8529 (N : Node_Id) return Entity_Id; -- Node1
8530
8531 function Kill_Range_Check
8532 (N : Node_Id) return Boolean; -- Flag11
8533
8534 function Label_Construct
8535 (N : Node_Id) return Node_Id; -- Node2
8536
8537 function Left_Opnd
8538 (N : Node_Id) return Node_Id; -- Node2
8539
8540 function Last_Bit
8541 (N : Node_Id) return Node_Id; -- Node4
8542
8543 function Last_Name
8544 (N : Node_Id) return Boolean; -- Flag6
8545
8546 function Library_Unit
8547 (N : Node_Id) return Node_Id; -- Node4
8548
8549 function Limited_View_Installed
8550 (N : Node_Id) return Boolean; -- Flag18
8551
8552 function Limited_Present
8553 (N : Node_Id) return Boolean; -- Flag17
8554
8555 function Literals
8556 (N : Node_Id) return List_Id; -- List1
8557
8558 function Local_Raise_Not_OK
8559 (N : Node_Id) return Boolean; -- Flag7
8560
8561 function Local_Raise_Statements
8562 (N : Node_Id) return Elist_Id; -- Elist1
8563
8564 function Loop_Actions
8565 (N : Node_Id) return List_Id; -- List2
8566
8567 function Loop_Parameter_Specification
8568 (N : Node_Id) return Node_Id; -- Node4
8569
8570 function Low_Bound
8571 (N : Node_Id) return Node_Id; -- Node1
8572
8573 function Mod_Clause
8574 (N : Node_Id) return Node_Id; -- Node2
8575
8576 function More_Ids
8577 (N : Node_Id) return Boolean; -- Flag5
8578
8579 function Must_Be_Byte_Aligned
8580 (N : Node_Id) return Boolean; -- Flag14
8581
8582 function Must_Not_Freeze
8583 (N : Node_Id) return Boolean; -- Flag8
8584
8585 function Must_Not_Override
8586 (N : Node_Id) return Boolean; -- Flag15
8587
8588 function Must_Override
8589 (N : Node_Id) return Boolean; -- Flag14
8590
8591 function Name
8592 (N : Node_Id) return Node_Id; -- Node2
8593
8594 function Names
8595 (N : Node_Id) return List_Id; -- List2
8596
8597 function Next_Entity
8598 (N : Node_Id) return Node_Id; -- Node2
8599
8600 function Next_Exit_Statement
8601 (N : Node_Id) return Node_Id; -- Node3
8602
8603 function Next_Implicit_With
8604 (N : Node_Id) return Node_Id; -- Node3
8605
8606 function Next_Named_Actual
8607 (N : Node_Id) return Node_Id; -- Node4
8608
8609 function Next_Pragma
8610 (N : Node_Id) return Node_Id; -- Node1
8611
8612 function Next_Rep_Item
8613 (N : Node_Id) return Node_Id; -- Node5
8614
8615 function Next_Use_Clause
8616 (N : Node_Id) return Node_Id; -- Node3
8617
8618 function No_Ctrl_Actions
8619 (N : Node_Id) return Boolean; -- Flag7
8620
8621 function No_Elaboration_Check
8622 (N : Node_Id) return Boolean; -- Flag14
8623
8624 function No_Entities_Ref_In_Spec
8625 (N : Node_Id) return Boolean; -- Flag8
8626
8627 function No_Initialization
8628 (N : Node_Id) return Boolean; -- Flag13
8629
8630 function No_Truncation
8631 (N : Node_Id) return Boolean; -- Flag17
8632
8633 function Null_Present
8634 (N : Node_Id) return Boolean; -- Flag13
8635
8636 function Null_Exclusion_Present
8637 (N : Node_Id) return Boolean; -- Flag11
8638
8639 function Null_Exclusion_In_Return_Present
8640 (N : Node_Id) return Boolean; -- Flag14
8641
8642 function Null_Record_Present
8643 (N : Node_Id) return Boolean; -- Flag17
8644
8645 function Object_Definition
8646 (N : Node_Id) return Node_Id; -- Node4
8647
8648 function Of_Present
8649 (N : Node_Id) return Boolean; -- Flag16
8650
8651 function Original_Discriminant
8652 (N : Node_Id) return Node_Id; -- Node2
8653
8654 function Original_Entity
8655 (N : Node_Id) return Entity_Id; -- Node2
8656
8657 function Others_Discrete_Choices
8658 (N : Node_Id) return List_Id; -- List1
8659
8660 function Out_Present
8661 (N : Node_Id) return Boolean; -- Flag17
8662
8663 function Parameter_Associations
8664 (N : Node_Id) return List_Id; -- List3
8665
8666 function Parameter_List_Truncated
8667 (N : Node_Id) return Boolean; -- Flag17
8668
8669 function Parameter_Specifications
8670 (N : Node_Id) return List_Id; -- List3
8671
8672 function Parameter_Type
8673 (N : Node_Id) return Node_Id; -- Node2
8674
8675 function Parent_Spec
8676 (N : Node_Id) return Node_Id; -- Node4
8677
8678 function Position
8679 (N : Node_Id) return Node_Id; -- Node2
8680
8681 function Pragma_Argument_Associations
8682 (N : Node_Id) return List_Id; -- List2
8683
8684 function Pragma_Enabled
8685 (N : Node_Id) return Boolean; -- Flag5
8686
8687 function Pragma_Identifier
8688 (N : Node_Id) return Node_Id; -- Node4
8689
8690 function Pragmas_After
8691 (N : Node_Id) return List_Id; -- List5
8692
8693 function Pragmas_Before
8694 (N : Node_Id) return List_Id; -- List4
8695
8696 function Prefix
8697 (N : Node_Id) return Node_Id; -- Node3
8698
8699 function Present_Expr
8700 (N : Node_Id) return Uint; -- Uint3
8701
8702 function Prev_Ids
8703 (N : Node_Id) return Boolean; -- Flag6
8704
8705 function Print_In_Hex
8706 (N : Node_Id) return Boolean; -- Flag13
8707
8708 function Private_Declarations
8709 (N : Node_Id) return List_Id; -- List3
8710
8711 function Private_Present
8712 (N : Node_Id) return Boolean; -- Flag15
8713
8714 function Procedure_To_Call
8715 (N : Node_Id) return Node_Id; -- Node2
8716
8717 function Proper_Body
8718 (N : Node_Id) return Node_Id; -- Node1
8719
8720 function Protected_Definition
8721 (N : Node_Id) return Node_Id; -- Node3
8722
8723 function Protected_Present
8724 (N : Node_Id) return Boolean; -- Flag6
8725
8726 function Raises_Constraint_Error
8727 (N : Node_Id) return Boolean; -- Flag7
8728
8729 function Range_Constraint
8730 (N : Node_Id) return Node_Id; -- Node4
8731
8732 function Range_Expression
8733 (N : Node_Id) return Node_Id; -- Node4
8734
8735 function Real_Range_Specification
8736 (N : Node_Id) return Node_Id; -- Node4
8737
8738 function Realval
8739 (N : Node_Id) return Ureal; -- Ureal3
8740
8741 function Reason
8742 (N : Node_Id) return Uint; -- Uint3
8743
8744 function Record_Extension_Part
8745 (N : Node_Id) return Node_Id; -- Node3
8746
8747 function Redundant_Use
8748 (N : Node_Id) return Boolean; -- Flag13
8749
8750 function Renaming_Exception
8751 (N : Node_Id) return Node_Id; -- Node2
8752
8753 function Result_Definition
8754 (N : Node_Id) return Node_Id; -- Node4
8755
8756 function Return_Object_Declarations
8757 (N : Node_Id) return List_Id; -- List3
8758
8759 function Return_Statement_Entity
8760 (N : Node_Id) return Node_Id; -- Node5
8761
8762 function Reverse_Present
8763 (N : Node_Id) return Boolean; -- Flag15
8764
8765 function Right_Opnd
8766 (N : Node_Id) return Node_Id; -- Node3
8767
8768 function Rounded_Result
8769 (N : Node_Id) return Boolean; -- Flag18
8770
8771 function SCIL_Controlling_Tag
8772 (N : Node_Id) return Node_Id; -- Node5
8773
8774 function SCIL_Entity
8775 (N : Node_Id) return Node_Id; -- Node4
8776
8777 function SCIL_Tag_Value
8778 (N : Node_Id) return Node_Id; -- Node5
8779
8780 function SCIL_Target_Prim
8781 (N : Node_Id) return Node_Id; -- Node2
8782
8783 function Scope
8784 (N : Node_Id) return Node_Id; -- Node3
8785
8786 function Select_Alternatives
8787 (N : Node_Id) return List_Id; -- List1
8788
8789 function Selector_Name
8790 (N : Node_Id) return Node_Id; -- Node2
8791
8792 function Selector_Names
8793 (N : Node_Id) return List_Id; -- List1
8794
8795 function Shift_Count_OK
8796 (N : Node_Id) return Boolean; -- Flag4
8797
8798 function Source_Type
8799 (N : Node_Id) return Entity_Id; -- Node1
8800
8801 function Specification
8802 (N : Node_Id) return Node_Id; -- Node1
8803
8804 function Split_PPC
8805 (N : Node_Id) return Boolean; -- Flag17
8806
8807 function Statements
8808 (N : Node_Id) return List_Id; -- List3
8809
8810 function Static_Processing_OK
8811 (N : Node_Id) return Boolean; -- Flag4
8812
8813 function Storage_Pool
8814 (N : Node_Id) return Node_Id; -- Node1
8815
8816 function Strval
8817 (N : Node_Id) return String_Id; -- Str3
8818
8819 function Subtype_Indication
8820 (N : Node_Id) return Node_Id; -- Node5
8821
8822 function Subtype_Mark
8823 (N : Node_Id) return Node_Id; -- Node4
8824
8825 function Subtype_Marks
8826 (N : Node_Id) return List_Id; -- List2
8827
8828 function Suppress_Loop_Warnings
8829 (N : Node_Id) return Boolean; -- Flag17
8830
8831 function Synchronized_Present
8832 (N : Node_Id) return Boolean; -- Flag7
8833
8834 function Tagged_Present
8835 (N : Node_Id) return Boolean; -- Flag15
8836
8837 function Target_Type
8838 (N : Node_Id) return Entity_Id; -- Node2
8839
8840 function Task_Definition
8841 (N : Node_Id) return Node_Id; -- Node3
8842
8843 function Task_Present
8844 (N : Node_Id) return Boolean; -- Flag5
8845
8846 function Then_Actions
8847 (N : Node_Id) return List_Id; -- List2
8848
8849 function Then_Statements
8850 (N : Node_Id) return List_Id; -- List2
8851
8852 function Treat_Fixed_As_Integer
8853 (N : Node_Id) return Boolean; -- Flag14
8854
8855 function Triggering_Alternative
8856 (N : Node_Id) return Node_Id; -- Node1
8857
8858 function Triggering_Statement
8859 (N : Node_Id) return Node_Id; -- Node1
8860
8861 function TSS_Elist
8862 (N : Node_Id) return Elist_Id; -- Elist3
8863
8864 function Type_Definition
8865 (N : Node_Id) return Node_Id; -- Node3
8866
8867 function Unit
8868 (N : Node_Id) return Node_Id; -- Node2
8869
8870 function Unknown_Discriminants_Present
8871 (N : Node_Id) return Boolean; -- Flag13
8872
8873 function Unreferenced_In_Spec
8874 (N : Node_Id) return Boolean; -- Flag7
8875
8876 function Variant_Part
8877 (N : Node_Id) return Node_Id; -- Node4
8878
8879 function Variants
8880 (N : Node_Id) return List_Id; -- List1
8881
8882 function Visible_Declarations
8883 (N : Node_Id) return List_Id; -- List2
8884
8885 function Was_Originally_Stub
8886 (N : Node_Id) return Boolean; -- Flag13
8887
8888 function Withed_Body
8889 (N : Node_Id) return Node_Id; -- Node1
8890
8891 function Zero_Cost_Handling
8892 (N : Node_Id) return Boolean; -- Flag5
8893
8894 -- End functions (note used by xsinfo utility program to end processing)
8895
8896 ----------------------------
8897 -- Node Update Procedures --
8898 ----------------------------
8899
8900 -- These are the corresponding node update routines, which again provide
8901 -- a high level logical access with type checking. In addition to setting
8902 -- the indicated field of the node N to the given Val, in the case of
8903 -- tree pointers (List1-4), the parent pointer of the Val node is set to
8904 -- point back to node N. This automates the setting of the parent pointer.
8905
8906 procedure Set_ABE_Is_Certain
8907 (N : Node_Id; Val : Boolean := True); -- Flag18
8908
8909 procedure Set_Abort_Present
8910 (N : Node_Id; Val : Boolean := True); -- Flag15
8911
8912 procedure Set_Abortable_Part
8913 (N : Node_Id; Val : Node_Id); -- Node2
8914
8915 procedure Set_Abstract_Present
8916 (N : Node_Id; Val : Boolean := True); -- Flag4
8917
8918 procedure Set_Accept_Handler_Records
8919 (N : Node_Id; Val : List_Id); -- List5
8920
8921 procedure Set_Accept_Statement
8922 (N : Node_Id; Val : Node_Id); -- Node2
8923
8924 procedure Set_Access_Definition
8925 (N : Node_Id; Val : Node_Id); -- Node3
8926
8927 procedure Set_Access_To_Subprogram_Definition
8928 (N : Node_Id; Val : Node_Id); -- Node3
8929
8930 procedure Set_Access_Types_To_Process
8931 (N : Node_Id; Val : Elist_Id); -- Elist2
8932
8933 procedure Set_Actions
8934 (N : Node_Id; Val : List_Id); -- List1
8935
8936 procedure Set_Activation_Chain_Entity
8937 (N : Node_Id; Val : Node_Id); -- Node3
8938
8939 procedure Set_Acts_As_Spec
8940 (N : Node_Id; Val : Boolean := True); -- Flag4
8941
8942 procedure Set_Actual_Designated_Subtype
8943 (N : Node_Id; Val : Node_Id); -- Node4
8944
8945 procedure Set_Address_Warning_Posted
8946 (N : Node_Id; Val : Boolean := True); -- Flag18
8947
8948 procedure Set_Aggregate_Bounds
8949 (N : Node_Id; Val : Node_Id); -- Node3
8950
8951 procedure Set_Aliased_Present
8952 (N : Node_Id; Val : Boolean := True); -- Flag4
8953
8954 procedure Set_All_Others
8955 (N : Node_Id; Val : Boolean := True); -- Flag11
8956
8957 procedure Set_All_Present
8958 (N : Node_Id; Val : Boolean := True); -- Flag15
8959
8960 procedure Set_Alternatives
8961 (N : Node_Id; Val : List_Id); -- List4
8962
8963 procedure Set_Ancestor_Part
8964 (N : Node_Id; Val : Node_Id); -- Node3
8965
8966 procedure Set_Array_Aggregate
8967 (N : Node_Id; Val : Node_Id); -- Node3
8968
8969 procedure Set_Aspect_Cancel
8970 (N : Node_Id; Val : Boolean := True); -- Flag11
8971
8972 procedure Set_Aspect_Rep_Item
8973 (N : Node_Id; Val : Node_Id); -- Node2
8974
8975 procedure Set_Assignment_OK
8976 (N : Node_Id; Val : Boolean := True); -- Flag15
8977
8978 procedure Set_Associated_Node
8979 (N : Node_Id; Val : Node_Id); -- Node4
8980
8981 procedure Set_Attribute_Name
8982 (N : Node_Id; Val : Name_Id); -- Name2
8983
8984 procedure Set_At_End_Proc
8985 (N : Node_Id; Val : Node_Id); -- Node1
8986
8987 procedure Set_Aux_Decls_Node
8988 (N : Node_Id; Val : Node_Id); -- Node5
8989
8990 procedure Set_Backwards_OK
8991 (N : Node_Id; Val : Boolean := True); -- Flag6
8992
8993 procedure Set_Bad_Is_Detected
8994 (N : Node_Id; Val : Boolean := True); -- Flag15
8995
8996 procedure Set_Body_Required
8997 (N : Node_Id; Val : Boolean := True); -- Flag13
8998
8999 procedure Set_Body_To_Inline
9000 (N : Node_Id; Val : Node_Id); -- Node3
9001
9002 procedure Set_Box_Present
9003 (N : Node_Id; Val : Boolean := True); -- Flag15
9004
9005 procedure Set_By_Ref
9006 (N : Node_Id; Val : Boolean := True); -- Flag5
9007
9008 procedure Set_Char_Literal_Value
9009 (N : Node_Id; Val : Uint); -- Uint2
9010
9011 procedure Set_Chars
9012 (N : Node_Id; Val : Name_Id); -- Name1
9013
9014 procedure Set_Check_Address_Alignment
9015 (N : Node_Id; Val : Boolean := True); -- Flag11
9016
9017 procedure Set_Choice_Parameter
9018 (N : Node_Id; Val : Node_Id); -- Node2
9019
9020 procedure Set_Choices
9021 (N : Node_Id; Val : List_Id); -- List1
9022
9023 procedure Set_Class_Present
9024 (N : Node_Id; Val : Boolean := True); -- Flag6
9025
9026 procedure Set_Coextensions
9027 (N : Node_Id; Val : Elist_Id); -- Elist4
9028
9029 procedure Set_Comes_From_Extended_Return_Statement
9030 (N : Node_Id; Val : Boolean := True); -- Flag18
9031
9032 procedure Set_Compile_Time_Known_Aggregate
9033 (N : Node_Id; Val : Boolean := True); -- Flag18
9034
9035 procedure Set_Component_Associations
9036 (N : Node_Id; Val : List_Id); -- List2
9037
9038 procedure Set_Component_Clauses
9039 (N : Node_Id; Val : List_Id); -- List3
9040
9041 procedure Set_Component_Definition
9042 (N : Node_Id; Val : Node_Id); -- Node4
9043
9044 procedure Set_Component_Items
9045 (N : Node_Id; Val : List_Id); -- List3
9046
9047 procedure Set_Component_List
9048 (N : Node_Id; Val : Node_Id); -- Node1
9049
9050 procedure Set_Component_Name
9051 (N : Node_Id; Val : Node_Id); -- Node1
9052
9053 procedure Set_Componentwise_Assignment
9054 (N : Node_Id; Val : Boolean := True); -- Flag14
9055
9056 procedure Set_Condition
9057 (N : Node_Id; Val : Node_Id); -- Node1
9058
9059 procedure Set_Condition_Actions
9060 (N : Node_Id; Val : List_Id); -- List3
9061
9062 procedure Set_Config_Pragmas
9063 (N : Node_Id; Val : List_Id); -- List4
9064
9065 procedure Set_Constant_Present
9066 (N : Node_Id; Val : Boolean := True); -- Flag17
9067
9068 procedure Set_Constraint
9069 (N : Node_Id; Val : Node_Id); -- Node3
9070
9071 procedure Set_Constraints
9072 (N : Node_Id; Val : List_Id); -- List1
9073
9074 procedure Set_Context_Installed
9075 (N : Node_Id; Val : Boolean := True); -- Flag13
9076
9077 procedure Set_Context_Items
9078 (N : Node_Id; Val : List_Id); -- List1
9079
9080 procedure Set_Context_Pending
9081 (N : Node_Id; Val : Boolean := True); -- Flag16
9082
9083 procedure Set_Controlling_Argument
9084 (N : Node_Id; Val : Node_Id); -- Node1
9085
9086 procedure Set_Conversion_OK
9087 (N : Node_Id; Val : Boolean := True); -- Flag14
9088
9089 procedure Set_Corresponding_Body
9090 (N : Node_Id; Val : Node_Id); -- Node5
9091
9092 procedure Set_Corresponding_Formal_Spec
9093 (N : Node_Id; Val : Node_Id); -- Node3
9094
9095 procedure Set_Corresponding_Generic_Association
9096 (N : Node_Id; Val : Node_Id); -- Node5
9097
9098 procedure Set_Corresponding_Integer_Value
9099 (N : Node_Id; Val : Uint); -- Uint4
9100
9101 procedure Set_Corresponding_Spec
9102 (N : Node_Id; Val : Node_Id); -- Node5
9103
9104 procedure Set_Corresponding_Stub
9105 (N : Node_Id; Val : Node_Id); -- Node3
9106
9107 procedure Set_Dcheck_Function
9108 (N : Node_Id; Val : Entity_Id); -- Node5
9109
9110 procedure Set_Debug_Statement
9111 (N : Node_Id; Val : Node_Id); -- Node3
9112
9113 procedure Set_Declarations
9114 (N : Node_Id; Val : List_Id); -- List2
9115
9116 procedure Set_Default_Expression
9117 (N : Node_Id; Val : Node_Id); -- Node5
9118
9119 procedure Set_Default_Storage_Pool
9120 (N : Node_Id; Val : Node_Id); -- Node3
9121
9122 procedure Set_Default_Name
9123 (N : Node_Id; Val : Node_Id); -- Node2
9124
9125 procedure Set_Defining_Identifier
9126 (N : Node_Id; Val : Entity_Id); -- Node1
9127
9128 procedure Set_Defining_Unit_Name
9129 (N : Node_Id; Val : Node_Id); -- Node1
9130
9131 procedure Set_Delay_Alternative
9132 (N : Node_Id; Val : Node_Id); -- Node4
9133
9134 procedure Set_Delay_Statement
9135 (N : Node_Id; Val : Node_Id); -- Node2
9136
9137 procedure Set_Delta_Expression
9138 (N : Node_Id; Val : Node_Id); -- Node3
9139
9140 procedure Set_Digits_Expression
9141 (N : Node_Id; Val : Node_Id); -- Node2
9142
9143 procedure Set_Discr_Check_Funcs_Built
9144 (N : Node_Id; Val : Boolean := True); -- Flag11
9145
9146 procedure Set_Discrete_Choices
9147 (N : Node_Id; Val : List_Id); -- List4
9148
9149 procedure Set_Discrete_Range
9150 (N : Node_Id; Val : Node_Id); -- Node4
9151
9152 procedure Set_Discrete_Subtype_Definition
9153 (N : Node_Id; Val : Node_Id); -- Node4
9154
9155 procedure Set_Discrete_Subtype_Definitions
9156 (N : Node_Id; Val : List_Id); -- List2
9157
9158 procedure Set_Discriminant_Specifications
9159 (N : Node_Id; Val : List_Id); -- List4
9160
9161 procedure Set_Discriminant_Type
9162 (N : Node_Id; Val : Node_Id); -- Node5
9163
9164 procedure Set_Do_Accessibility_Check
9165 (N : Node_Id; Val : Boolean := True); -- Flag13
9166
9167 procedure Set_Do_Discriminant_Check
9168 (N : Node_Id; Val : Boolean := True); -- Flag13
9169
9170 procedure Set_Do_Division_Check
9171 (N : Node_Id; Val : Boolean := True); -- Flag13
9172
9173 procedure Set_Do_Length_Check
9174 (N : Node_Id; Val : Boolean := True); -- Flag4
9175
9176 procedure Set_Do_Overflow_Check
9177 (N : Node_Id; Val : Boolean := True); -- Flag17
9178
9179 procedure Set_Do_Range_Check
9180 (N : Node_Id; Val : Boolean := True); -- Flag9
9181
9182 procedure Set_Do_Storage_Check
9183 (N : Node_Id; Val : Boolean := True); -- Flag17
9184
9185 procedure Set_Do_Tag_Check
9186 (N : Node_Id; Val : Boolean := True); -- Flag13
9187
9188 procedure Set_Elaborate_All_Desirable
9189 (N : Node_Id; Val : Boolean := True); -- Flag9
9190
9191 procedure Set_Elaborate_All_Present
9192 (N : Node_Id; Val : Boolean := True); -- Flag14
9193
9194 procedure Set_Elaborate_Desirable
9195 (N : Node_Id; Val : Boolean := True); -- Flag11
9196
9197 procedure Set_Elaborate_Present
9198 (N : Node_Id; Val : Boolean := True); -- Flag4
9199
9200 procedure Set_Elaboration_Boolean
9201 (N : Node_Id; Val : Node_Id); -- Node2
9202
9203 procedure Set_Else_Actions
9204 (N : Node_Id; Val : List_Id); -- List3
9205
9206 procedure Set_Else_Statements
9207 (N : Node_Id; Val : List_Id); -- List4
9208
9209 procedure Set_Elsif_Parts
9210 (N : Node_Id; Val : List_Id); -- List3
9211
9212 procedure Set_Enclosing_Variant
9213 (N : Node_Id; Val : Node_Id); -- Node2
9214
9215 procedure Set_End_Label
9216 (N : Node_Id; Val : Node_Id); -- Node4
9217
9218 procedure Set_End_Span
9219 (N : Node_Id; Val : Uint); -- Uint5
9220
9221 procedure Set_Entity
9222 (N : Node_Id; Val : Node_Id); -- Node4
9223
9224 procedure Set_Entry_Body_Formal_Part
9225 (N : Node_Id; Val : Node_Id); -- Node5
9226
9227 procedure Set_Entry_Call_Alternative
9228 (N : Node_Id; Val : Node_Id); -- Node1
9229
9230 procedure Set_Entry_Call_Statement
9231 (N : Node_Id; Val : Node_Id); -- Node1
9232
9233 procedure Set_Entry_Direct_Name
9234 (N : Node_Id; Val : Node_Id); -- Node1
9235
9236 procedure Set_Entry_Index
9237 (N : Node_Id; Val : Node_Id); -- Node5
9238
9239 procedure Set_Entry_Index_Specification
9240 (N : Node_Id; Val : Node_Id); -- Node4
9241
9242 procedure Set_Etype
9243 (N : Node_Id; Val : Node_Id); -- Node5
9244
9245 procedure Set_Exception_Choices
9246 (N : Node_Id; Val : List_Id); -- List4
9247
9248 procedure Set_Exception_Handlers
9249 (N : Node_Id; Val : List_Id); -- List5
9250
9251 procedure Set_Exception_Junk
9252 (N : Node_Id; Val : Boolean := True); -- Flag8
9253
9254 procedure Set_Exception_Label
9255 (N : Node_Id; Val : Node_Id); -- Node5
9256
9257 procedure Set_Expansion_Delayed
9258 (N : Node_Id; Val : Boolean := True); -- Flag11
9259
9260 procedure Set_Explicit_Actual_Parameter
9261 (N : Node_Id; Val : Node_Id); -- Node3
9262
9263 procedure Set_Explicit_Generic_Actual_Parameter
9264 (N : Node_Id; Val : Node_Id); -- Node1
9265
9266 procedure Set_Expression
9267 (N : Node_Id; Val : Node_Id); -- Node3
9268
9269 procedure Set_Expressions
9270 (N : Node_Id; Val : List_Id); -- List1
9271
9272 procedure Set_First_Bit
9273 (N : Node_Id; Val : Node_Id); -- Node3
9274
9275 procedure Set_First_Inlined_Subprogram
9276 (N : Node_Id; Val : Entity_Id); -- Node3
9277
9278 procedure Set_First_Name
9279 (N : Node_Id; Val : Boolean := True); -- Flag5
9280
9281 procedure Set_First_Named_Actual
9282 (N : Node_Id; Val : Node_Id); -- Node4
9283
9284 procedure Set_First_Real_Statement
9285 (N : Node_Id; Val : Node_Id); -- Node2
9286
9287 procedure Set_First_Subtype_Link
9288 (N : Node_Id; Val : Entity_Id); -- Node5
9289
9290 procedure Set_Float_Truncate
9291 (N : Node_Id; Val : Boolean := True); -- Flag11
9292
9293 procedure Set_Formal_Type_Definition
9294 (N : Node_Id; Val : Node_Id); -- Node3
9295
9296 procedure Set_Forwards_OK
9297 (N : Node_Id; Val : Boolean := True); -- Flag5
9298
9299 procedure Set_From_At_Mod
9300 (N : Node_Id; Val : Boolean := True); -- Flag4
9301
9302 procedure Set_From_Aspect_Specification
9303 (N : Node_Id; Val : Boolean := True); -- Flag13
9304
9305 procedure Set_From_At_End
9306 (N : Node_Id; Val : Boolean := True); -- Flag4
9307
9308 procedure Set_From_Default
9309 (N : Node_Id; Val : Boolean := True); -- Flag6
9310
9311 procedure Set_Generic_Associations
9312 (N : Node_Id; Val : List_Id); -- List3
9313
9314 procedure Set_Generic_Formal_Declarations
9315 (N : Node_Id; Val : List_Id); -- List2
9316
9317 procedure Set_Generic_Parent
9318 (N : Node_Id; Val : Node_Id); -- Node5
9319
9320 procedure Set_Generic_Parent_Type
9321 (N : Node_Id; Val : Node_Id); -- Node4
9322
9323 procedure Set_Handled_Statement_Sequence
9324 (N : Node_Id; Val : Node_Id); -- Node4
9325
9326 procedure Set_Handler_List_Entry
9327 (N : Node_Id; Val : Node_Id); -- Node2
9328
9329 procedure Set_Has_Created_Identifier
9330 (N : Node_Id; Val : Boolean := True); -- Flag15
9331
9332 procedure Set_Has_Dynamic_Length_Check
9333 (N : Node_Id; Val : Boolean := True); -- Flag10
9334
9335 procedure Set_Has_Dynamic_Range_Check
9336 (N : Node_Id; Val : Boolean := True); -- Flag12
9337
9338 procedure Set_Has_Init_Expression
9339 (N : Node_Id; Val : Boolean := True); -- Flag14
9340
9341 procedure Set_Has_Local_Raise
9342 (N : Node_Id; Val : Boolean := True); -- Flag8
9343
9344 procedure Set_Has_No_Elaboration_Code
9345 (N : Node_Id; Val : Boolean := True); -- Flag17
9346
9347 procedure Set_Has_Pragma_CPU
9348 (N : Node_Id; Val : Boolean := True); -- Flag14
9349
9350 procedure Set_Has_Pragma_Priority
9351 (N : Node_Id; Val : Boolean := True); -- Flag6
9352
9353 procedure Set_Has_Pragma_Suppress_All
9354 (N : Node_Id; Val : Boolean := True); -- Flag14
9355
9356 procedure Set_Has_Private_View
9357 (N : Node_Id; Val : Boolean := True); -- Flag11
9358
9359 procedure Set_Has_Relative_Deadline_Pragma
9360 (N : Node_Id; Val : Boolean := True); -- Flag9
9361
9362 procedure Set_Has_Self_Reference
9363 (N : Node_Id; Val : Boolean := True); -- Flag13
9364
9365 procedure Set_Has_Storage_Size_Pragma
9366 (N : Node_Id; Val : Boolean := True); -- Flag5
9367
9368 procedure Set_Has_Task_Info_Pragma
9369 (N : Node_Id; Val : Boolean := True); -- Flag7
9370
9371 procedure Set_Has_Task_Name_Pragma
9372 (N : Node_Id; Val : Boolean := True); -- Flag8
9373
9374 procedure Set_Has_Wide_Character
9375 (N : Node_Id; Val : Boolean := True); -- Flag11
9376
9377 procedure Set_Has_Wide_Wide_Character
9378 (N : Node_Id; Val : Boolean := True); -- Flag13
9379
9380 procedure Set_Hidden_By_Use_Clause
9381 (N : Node_Id; Val : Elist_Id); -- Elist4
9382
9383 procedure Set_High_Bound
9384 (N : Node_Id; Val : Node_Id); -- Node2
9385
9386 procedure Set_Identifier
9387 (N : Node_Id; Val : Node_Id); -- Node1
9388
9389 procedure Set_Interface_List
9390 (N : Node_Id; Val : List_Id); -- List2
9391
9392 procedure Set_Interface_Present
9393 (N : Node_Id; Val : Boolean := True); -- Flag16
9394
9395 procedure Set_Implicit_With
9396 (N : Node_Id; Val : Boolean := True); -- Flag16
9397
9398 procedure Set_Import_Interface_Present
9399 (N : Node_Id; Val : Boolean := True); -- Flag16
9400
9401 procedure Set_In_Present
9402 (N : Node_Id; Val : Boolean := True); -- Flag15
9403
9404 procedure Set_Includes_Infinities
9405 (N : Node_Id; Val : Boolean := True); -- Flag11
9406
9407 procedure Set_Inherited_Discriminant
9408 (N : Node_Id; Val : Boolean := True); -- Flag13
9409
9410 procedure Set_Instance_Spec
9411 (N : Node_Id; Val : Node_Id); -- Node5
9412
9413 procedure Set_Intval
9414 (N : Node_Id; Val : Uint); -- Uint3
9415
9416 procedure Set_Is_Accessibility_Actual
9417 (N : Node_Id; Val : Boolean := True); -- Flag13
9418
9419 procedure Set_Is_Asynchronous_Call_Block
9420 (N : Node_Id; Val : Boolean := True); -- Flag7
9421
9422 procedure Set_Is_Component_Left_Opnd
9423 (N : Node_Id; Val : Boolean := True); -- Flag13
9424
9425 procedure Set_Is_Component_Right_Opnd
9426 (N : Node_Id; Val : Boolean := True); -- Flag14
9427
9428 procedure Set_Is_Controlling_Actual
9429 (N : Node_Id; Val : Boolean := True); -- Flag16
9430
9431 procedure Set_Is_Delayed_Aspect
9432 (N : Node_Id; Val : Boolean := True); -- Flag14
9433
9434 procedure Set_Is_Dynamic_Coextension
9435 (N : Node_Id; Val : Boolean := True); -- Flag18
9436
9437 procedure Set_Is_Elsif
9438 (N : Node_Id; Val : Boolean := True); -- Flag13
9439
9440 procedure Set_Is_Entry_Barrier_Function
9441 (N : Node_Id; Val : Boolean := True); -- Flag8
9442
9443 procedure Set_Is_Expanded_Build_In_Place_Call
9444 (N : Node_Id; Val : Boolean := True); -- Flag11
9445
9446 procedure Set_Is_Folded_In_Parser
9447 (N : Node_Id; Val : Boolean := True); -- Flag4
9448
9449 procedure Set_Is_In_Discriminant_Check
9450 (N : Node_Id; Val : Boolean := True); -- Flag11
9451
9452 procedure Set_Is_Machine_Number
9453 (N : Node_Id; Val : Boolean := True); -- Flag11
9454
9455 procedure Set_Is_Null_Loop
9456 (N : Node_Id; Val : Boolean := True); -- Flag16
9457
9458 procedure Set_Is_Overloaded
9459 (N : Node_Id; Val : Boolean := True); -- Flag5
9460
9461 procedure Set_Is_Power_Of_2_For_Shift
9462 (N : Node_Id; Val : Boolean := True); -- Flag13
9463
9464 procedure Set_Is_Protected_Subprogram_Body
9465 (N : Node_Id; Val : Boolean := True); -- Flag7
9466
9467 procedure Set_Is_Static_Coextension
9468 (N : Node_Id; Val : Boolean := True); -- Flag14
9469
9470 procedure Set_Is_Static_Expression
9471 (N : Node_Id; Val : Boolean := True); -- Flag6
9472
9473 procedure Set_Is_Subprogram_Descriptor
9474 (N : Node_Id; Val : Boolean := True); -- Flag16
9475
9476 procedure Set_Is_Task_Allocation_Block
9477 (N : Node_Id; Val : Boolean := True); -- Flag6
9478
9479 procedure Set_Is_Task_Master
9480 (N : Node_Id; Val : Boolean := True); -- Flag5
9481
9482 procedure Set_Iteration_Scheme
9483 (N : Node_Id; Val : Node_Id); -- Node2
9484
9485 procedure Set_Iterator_Specification
9486 (N : Node_Id; Val : Node_Id); -- Node2
9487
9488 procedure Set_Itype
9489 (N : Node_Id; Val : Entity_Id); -- Node1
9490
9491 procedure Set_Kill_Range_Check
9492 (N : Node_Id; Val : Boolean := True); -- Flag11
9493
9494 procedure Set_Last_Bit
9495 (N : Node_Id; Val : Node_Id); -- Node4
9496
9497 procedure Set_Last_Name
9498 (N : Node_Id; Val : Boolean := True); -- Flag6
9499
9500 procedure Set_Library_Unit
9501 (N : Node_Id; Val : Node_Id); -- Node4
9502
9503 procedure Set_Label_Construct
9504 (N : Node_Id; Val : Node_Id); -- Node2
9505
9506 procedure Set_Left_Opnd
9507 (N : Node_Id; Val : Node_Id); -- Node2
9508
9509 procedure Set_Limited_View_Installed
9510 (N : Node_Id; Val : Boolean := True); -- Flag18
9511
9512 procedure Set_Limited_Present
9513 (N : Node_Id; Val : Boolean := True); -- Flag17
9514
9515 procedure Set_Literals
9516 (N : Node_Id; Val : List_Id); -- List1
9517
9518 procedure Set_Local_Raise_Not_OK
9519 (N : Node_Id; Val : Boolean := True); -- Flag7
9520
9521 procedure Set_Local_Raise_Statements
9522 (N : Node_Id; Val : Elist_Id); -- Elist1
9523
9524 procedure Set_Loop_Actions
9525 (N : Node_Id; Val : List_Id); -- List2
9526
9527 procedure Set_Loop_Parameter_Specification
9528 (N : Node_Id; Val : Node_Id); -- Node4
9529
9530 procedure Set_Low_Bound
9531 (N : Node_Id; Val : Node_Id); -- Node1
9532
9533 procedure Set_Mod_Clause
9534 (N : Node_Id; Val : Node_Id); -- Node2
9535
9536 procedure Set_More_Ids
9537 (N : Node_Id; Val : Boolean := True); -- Flag5
9538
9539 procedure Set_Must_Be_Byte_Aligned
9540 (N : Node_Id; Val : Boolean := True); -- Flag14
9541
9542 procedure Set_Must_Not_Freeze
9543 (N : Node_Id; Val : Boolean := True); -- Flag8
9544
9545 procedure Set_Must_Not_Override
9546 (N : Node_Id; Val : Boolean := True); -- Flag15
9547
9548 procedure Set_Must_Override
9549 (N : Node_Id; Val : Boolean := True); -- Flag14
9550
9551 procedure Set_Name
9552 (N : Node_Id; Val : Node_Id); -- Node2
9553
9554 procedure Set_Names
9555 (N : Node_Id; Val : List_Id); -- List2
9556
9557 procedure Set_Next_Entity
9558 (N : Node_Id; Val : Node_Id); -- Node2
9559
9560 procedure Set_Next_Exit_Statement
9561 (N : Node_Id; Val : Node_Id); -- Node3
9562
9563 procedure Set_Next_Implicit_With
9564 (N : Node_Id; Val : Node_Id); -- Node3
9565
9566 procedure Set_Next_Named_Actual
9567 (N : Node_Id; Val : Node_Id); -- Node4
9568
9569 procedure Set_Next_Pragma
9570 (N : Node_Id; Val : Node_Id); -- Node1
9571
9572 procedure Set_Next_Rep_Item
9573 (N : Node_Id; Val : Node_Id); -- Node5
9574
9575 procedure Set_Next_Use_Clause
9576 (N : Node_Id; Val : Node_Id); -- Node3
9577
9578 procedure Set_No_Ctrl_Actions
9579 (N : Node_Id; Val : Boolean := True); -- Flag7
9580
9581 procedure Set_No_Elaboration_Check
9582 (N : Node_Id; Val : Boolean := True); -- Flag14
9583
9584 procedure Set_No_Entities_Ref_In_Spec
9585 (N : Node_Id; Val : Boolean := True); -- Flag8
9586
9587 procedure Set_No_Initialization
9588 (N : Node_Id; Val : Boolean := True); -- Flag13
9589
9590 procedure Set_No_Truncation
9591 (N : Node_Id; Val : Boolean := True); -- Flag17
9592
9593 procedure Set_Null_Present
9594 (N : Node_Id; Val : Boolean := True); -- Flag13
9595
9596 procedure Set_Null_Exclusion_Present
9597 (N : Node_Id; Val : Boolean := True); -- Flag11
9598
9599 procedure Set_Null_Exclusion_In_Return_Present
9600 (N : Node_Id; Val : Boolean := True); -- Flag14
9601
9602 procedure Set_Null_Record_Present
9603 (N : Node_Id; Val : Boolean := True); -- Flag17
9604
9605 procedure Set_Object_Definition
9606 (N : Node_Id; Val : Node_Id); -- Node4
9607
9608 procedure Set_Of_Present
9609 (N : Node_Id; Val : Boolean := True); -- Flag16
9610
9611 procedure Set_Original_Discriminant
9612 (N : Node_Id; Val : Node_Id); -- Node2
9613
9614 procedure Set_Original_Entity
9615 (N : Node_Id; Val : Entity_Id); -- Node2
9616
9617 procedure Set_Others_Discrete_Choices
9618 (N : Node_Id; Val : List_Id); -- List1
9619
9620 procedure Set_Out_Present
9621 (N : Node_Id; Val : Boolean := True); -- Flag17
9622
9623 procedure Set_Parameter_Associations
9624 (N : Node_Id; Val : List_Id); -- List3
9625
9626 procedure Set_Parameter_List_Truncated
9627 (N : Node_Id; Val : Boolean := True); -- Flag17
9628
9629 procedure Set_Parameter_Specifications
9630 (N : Node_Id; Val : List_Id); -- List3
9631
9632 procedure Set_Parameter_Type
9633 (N : Node_Id; Val : Node_Id); -- Node2
9634
9635 procedure Set_Parent_Spec
9636 (N : Node_Id; Val : Node_Id); -- Node4
9637
9638 procedure Set_Position
9639 (N : Node_Id; Val : Node_Id); -- Node2
9640
9641 procedure Set_Pragma_Argument_Associations
9642 (N : Node_Id; Val : List_Id); -- List2
9643
9644 procedure Set_Pragma_Enabled
9645 (N : Node_Id; Val : Boolean := True); -- Flag5
9646
9647 procedure Set_Pragma_Identifier
9648 (N : Node_Id; Val : Node_Id); -- Node4
9649
9650 procedure Set_Pragmas_After
9651 (N : Node_Id; Val : List_Id); -- List5
9652
9653 procedure Set_Pragmas_Before
9654 (N : Node_Id; Val : List_Id); -- List4
9655
9656 procedure Set_Prefix
9657 (N : Node_Id; Val : Node_Id); -- Node3
9658
9659 procedure Set_Present_Expr
9660 (N : Node_Id; Val : Uint); -- Uint3
9661
9662 procedure Set_Prev_Ids
9663 (N : Node_Id; Val : Boolean := True); -- Flag6
9664
9665 procedure Set_Print_In_Hex
9666 (N : Node_Id; Val : Boolean := True); -- Flag13
9667
9668 procedure Set_Private_Declarations
9669 (N : Node_Id; Val : List_Id); -- List3
9670
9671 procedure Set_Private_Present
9672 (N : Node_Id; Val : Boolean := True); -- Flag15
9673
9674 procedure Set_Procedure_To_Call
9675 (N : Node_Id; Val : Node_Id); -- Node2
9676
9677 procedure Set_Proper_Body
9678 (N : Node_Id; Val : Node_Id); -- Node1
9679
9680 procedure Set_Protected_Definition
9681 (N : Node_Id; Val : Node_Id); -- Node3
9682
9683 procedure Set_Protected_Present
9684 (N : Node_Id; Val : Boolean := True); -- Flag6
9685
9686 procedure Set_Raises_Constraint_Error
9687 (N : Node_Id; Val : Boolean := True); -- Flag7
9688
9689 procedure Set_Range_Constraint
9690 (N : Node_Id; Val : Node_Id); -- Node4
9691
9692 procedure Set_Range_Expression
9693 (N : Node_Id; Val : Node_Id); -- Node4
9694
9695 procedure Set_Real_Range_Specification
9696 (N : Node_Id; Val : Node_Id); -- Node4
9697
9698 procedure Set_Realval
9699 (N : Node_Id; Val : Ureal); -- Ureal3
9700
9701 procedure Set_Reason
9702 (N : Node_Id; Val : Uint); -- Uint3
9703
9704 procedure Set_Record_Extension_Part
9705 (N : Node_Id; Val : Node_Id); -- Node3
9706
9707 procedure Set_Redundant_Use
9708 (N : Node_Id; Val : Boolean := True); -- Flag13
9709
9710 procedure Set_Renaming_Exception
9711 (N : Node_Id; Val : Node_Id); -- Node2
9712
9713 procedure Set_Result_Definition
9714 (N : Node_Id; Val : Node_Id); -- Node4
9715
9716 procedure Set_Return_Object_Declarations
9717 (N : Node_Id; Val : List_Id); -- List3
9718
9719 procedure Set_Return_Statement_Entity
9720 (N : Node_Id; Val : Node_Id); -- Node5
9721
9722 procedure Set_Reverse_Present
9723 (N : Node_Id; Val : Boolean := True); -- Flag15
9724
9725 procedure Set_Right_Opnd
9726 (N : Node_Id; Val : Node_Id); -- Node3
9727
9728 procedure Set_Rounded_Result
9729 (N : Node_Id; Val : Boolean := True); -- Flag18
9730
9731 procedure Set_SCIL_Controlling_Tag
9732 (N : Node_Id; Val : Node_Id); -- Node5
9733
9734 procedure Set_SCIL_Entity
9735 (N : Node_Id; Val : Node_Id); -- Node4
9736
9737 procedure Set_SCIL_Tag_Value
9738 (N : Node_Id; Val : Node_Id); -- Node5
9739
9740 procedure Set_SCIL_Target_Prim
9741 (N : Node_Id; Val : Node_Id); -- Node2
9742
9743 procedure Set_Scope
9744 (N : Node_Id; Val : Node_Id); -- Node3
9745
9746 procedure Set_Select_Alternatives
9747 (N : Node_Id; Val : List_Id); -- List1
9748
9749 procedure Set_Selector_Name
9750 (N : Node_Id; Val : Node_Id); -- Node2
9751
9752 procedure Set_Selector_Names
9753 (N : Node_Id; Val : List_Id); -- List1
9754
9755 procedure Set_Shift_Count_OK
9756 (N : Node_Id; Val : Boolean := True); -- Flag4
9757
9758 procedure Set_Source_Type
9759 (N : Node_Id; Val : Entity_Id); -- Node1
9760
9761 procedure Set_Specification
9762 (N : Node_Id; Val : Node_Id); -- Node1
9763
9764 procedure Set_Split_PPC
9765 (N : Node_Id; Val : Boolean); -- Flag17
9766
9767 procedure Set_Statements
9768 (N : Node_Id; Val : List_Id); -- List3
9769
9770 procedure Set_Static_Processing_OK
9771 (N : Node_Id; Val : Boolean); -- Flag4
9772
9773 procedure Set_Storage_Pool
9774 (N : Node_Id; Val : Node_Id); -- Node1
9775
9776 procedure Set_Strval
9777 (N : Node_Id; Val : String_Id); -- Str3
9778
9779 procedure Set_Subtype_Indication
9780 (N : Node_Id; Val : Node_Id); -- Node5
9781
9782 procedure Set_Subtype_Mark
9783 (N : Node_Id; Val : Node_Id); -- Node4
9784
9785 procedure Set_Subtype_Marks
9786 (N : Node_Id; Val : List_Id); -- List2
9787
9788 procedure Set_Suppress_Loop_Warnings
9789 (N : Node_Id; Val : Boolean := True); -- Flag17
9790
9791 procedure Set_Synchronized_Present
9792 (N : Node_Id; Val : Boolean := True); -- Flag7
9793
9794 procedure Set_Tagged_Present
9795 (N : Node_Id; Val : Boolean := True); -- Flag15
9796
9797 procedure Set_Target_Type
9798 (N : Node_Id; Val : Entity_Id); -- Node2
9799
9800 procedure Set_Task_Definition
9801 (N : Node_Id; Val : Node_Id); -- Node3
9802
9803 procedure Set_Task_Present
9804 (N : Node_Id; Val : Boolean := True); -- Flag5
9805
9806 procedure Set_Then_Actions
9807 (N : Node_Id; Val : List_Id); -- List2
9808
9809 procedure Set_Then_Statements
9810 (N : Node_Id; Val : List_Id); -- List2
9811
9812 procedure Set_Treat_Fixed_As_Integer
9813 (N : Node_Id; Val : Boolean := True); -- Flag14
9814
9815 procedure Set_Triggering_Alternative
9816 (N : Node_Id; Val : Node_Id); -- Node1
9817
9818 procedure Set_Triggering_Statement
9819 (N : Node_Id; Val : Node_Id); -- Node1
9820
9821 procedure Set_TSS_Elist
9822 (N : Node_Id; Val : Elist_Id); -- Elist3
9823
9824 procedure Set_Type_Definition
9825 (N : Node_Id; Val : Node_Id); -- Node3
9826
9827 procedure Set_Unit
9828 (N : Node_Id; Val : Node_Id); -- Node2
9829
9830 procedure Set_Unknown_Discriminants_Present
9831 (N : Node_Id; Val : Boolean := True); -- Flag13
9832
9833 procedure Set_Unreferenced_In_Spec
9834 (N : Node_Id; Val : Boolean := True); -- Flag7
9835
9836 procedure Set_Variant_Part
9837 (N : Node_Id; Val : Node_Id); -- Node4
9838
9839 procedure Set_Variants
9840 (N : Node_Id; Val : List_Id); -- List1
9841
9842 procedure Set_Visible_Declarations
9843 (N : Node_Id; Val : List_Id); -- List2
9844
9845 procedure Set_Was_Originally_Stub
9846 (N : Node_Id; Val : Boolean := True); -- Flag13
9847
9848 procedure Set_Withed_Body
9849 (N : Node_Id; Val : Node_Id); -- Node1
9850
9851 procedure Set_Zero_Cost_Handling
9852 (N : Node_Id; Val : Boolean := True); -- Flag5
9853
9854 -------------------------
9855 -- Iterator Procedures --
9856 -------------------------
9857
9858 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9859
9860 procedure Next_Entity (N : in out Node_Id);
9861 procedure Next_Named_Actual (N : in out Node_Id);
9862 procedure Next_Rep_Item (N : in out Node_Id);
9863 procedure Next_Use_Clause (N : in out Node_Id);
9864
9865 -------------------------------------------
9866 -- Miscellaneous Tree Access Subprograms --
9867 -------------------------------------------
9868
9869 function End_Location (N : Node_Id) return Source_Ptr;
9870 -- N is an N_If_Statement or N_Case_Statement node, and this function
9871 -- returns the location of the IF token in the END IF sequence by
9872 -- translating the value of the End_Span field.
9873
9874 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9875 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
9876 -- the End_Span field to correspond to the given value S. In other words,
9877 -- End_Span is set to the difference between S and Sloc (N), the starting
9878 -- location.
9879
9880 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
9881 -- Given an argument to a pragma Arg, this function returns the expression
9882 -- for the argument. This is Arg itself, or, in the case where Arg is a
9883 -- pragma argument association node, the expression from this node.
9884
9885 --------------------------------
9886 -- Node_Kind Membership Tests --
9887 --------------------------------
9888
9889 -- The following functions allow a convenient notation for testing whether
9890 -- a Node_Kind value matches any one of a list of possible values. In each
9891 -- case True is returned if the given T argument is equal to any of the V
9892 -- arguments. Note that there is a similar set of functions defined in
9893 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
9894
9895 function Nkind_In
9896 (T : Node_Kind;
9897 V1 : Node_Kind;
9898 V2 : Node_Kind) return Boolean;
9899
9900 function Nkind_In
9901 (T : Node_Kind;
9902 V1 : Node_Kind;
9903 V2 : Node_Kind;
9904 V3 : Node_Kind) return Boolean;
9905
9906 function Nkind_In
9907 (T : Node_Kind;
9908 V1 : Node_Kind;
9909 V2 : Node_Kind;
9910 V3 : Node_Kind;
9911 V4 : Node_Kind) return Boolean;
9912
9913 function Nkind_In
9914 (T : Node_Kind;
9915 V1 : Node_Kind;
9916 V2 : Node_Kind;
9917 V3 : Node_Kind;
9918 V4 : Node_Kind;
9919 V5 : Node_Kind) return Boolean;
9920
9921 function Nkind_In
9922 (T : Node_Kind;
9923 V1 : Node_Kind;
9924 V2 : Node_Kind;
9925 V3 : Node_Kind;
9926 V4 : Node_Kind;
9927 V5 : Node_Kind;
9928 V6 : Node_Kind) return Boolean;
9929
9930 function Nkind_In
9931 (T : Node_Kind;
9932 V1 : Node_Kind;
9933 V2 : Node_Kind;
9934 V3 : Node_Kind;
9935 V4 : Node_Kind;
9936 V5 : Node_Kind;
9937 V6 : Node_Kind;
9938 V7 : Node_Kind) return Boolean;
9939
9940 function Nkind_In
9941 (T : Node_Kind;
9942 V1 : Node_Kind;
9943 V2 : Node_Kind;
9944 V3 : Node_Kind;
9945 V4 : Node_Kind;
9946 V5 : Node_Kind;
9947 V6 : Node_Kind;
9948 V7 : Node_Kind;
9949 V8 : Node_Kind) return Boolean;
9950
9951 function Nkind_In
9952 (T : Node_Kind;
9953 V1 : Node_Kind;
9954 V2 : Node_Kind;
9955 V3 : Node_Kind;
9956 V4 : Node_Kind;
9957 V5 : Node_Kind;
9958 V6 : Node_Kind;
9959 V7 : Node_Kind;
9960 V8 : Node_Kind;
9961 V9 : Node_Kind) return Boolean;
9962
9963 pragma Inline (Nkind_In);
9964 -- Inline all above functions
9965
9966 -----------------------
9967 -- Utility Functions --
9968 -----------------------
9969
9970 function Pragma_Name (N : Node_Id) return Name_Id;
9971 pragma Inline (Pragma_Name);
9972 -- Convenient function to obtain Chars field of Pragma_Identifier
9973
9974 -----------------------------
9975 -- Syntactic Parent Tables --
9976 -----------------------------
9977
9978 -- These tables show for each node, and for each of the five fields,
9979 -- whether the corresponding field is syntactic (True) or semantic (False).
9980 -- Unused entries are also set to False.
9981
9982 subtype Field_Num is Natural range 1 .. 5;
9983
9984 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
9985
9986 -- Following entries can be built automatically from the sinfo sources
9987 -- using the makeisf utility (currently this program is in spitbol).
9988
9989 N_Identifier =>
9990 (1 => True, -- Chars (Name1)
9991 2 => False, -- Original_Discriminant (Node2-Sem)
9992 3 => False, -- unused
9993 4 => False, -- Entity (Node4-Sem)
9994 5 => False), -- Etype (Node5-Sem)
9995
9996 N_Integer_Literal =>
9997 (1 => False, -- unused
9998 2 => False, -- Original_Entity (Node2-Sem)
9999 3 => True, -- Intval (Uint3)
10000 4 => False, -- unused
10001 5 => False), -- Etype (Node5-Sem)
10002
10003 N_Real_Literal =>
10004 (1 => False, -- unused
10005 2 => False, -- Original_Entity (Node2-Sem)
10006 3 => True, -- Realval (Ureal3)
10007 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
10008 5 => False), -- Etype (Node5-Sem)
10009
10010 N_Character_Literal =>
10011 (1 => True, -- Chars (Name1)
10012 2 => True, -- Char_Literal_Value (Uint2)
10013 3 => False, -- unused
10014 4 => False, -- Entity (Node4-Sem)
10015 5 => False), -- Etype (Node5-Sem)
10016
10017 N_String_Literal =>
10018 (1 => False, -- unused
10019 2 => False, -- unused
10020 3 => True, -- Strval (Str3)
10021 4 => False, -- unused
10022 5 => False), -- Etype (Node5-Sem)
10023
10024 N_Pragma =>
10025 (1 => False, -- Next_Pragma (Node1-Sem)
10026 2 => True, -- Pragma_Argument_Associations (List2)
10027 3 => True, -- Debug_Statement (Node3)
10028 4 => True, -- Pragma_Identifier (Node4)
10029 5 => False), -- Next_Rep_Item (Node5-Sem)
10030
10031 N_Pragma_Argument_Association =>
10032 (1 => True, -- Chars (Name1)
10033 2 => False, -- unused
10034 3 => True, -- Expression (Node3)
10035 4 => False, -- unused
10036 5 => False), -- unused
10037
10038 N_Defining_Identifier =>
10039 (1 => True, -- Chars (Name1)
10040 2 => False, -- Next_Entity (Node2-Sem)
10041 3 => False, -- Scope (Node3-Sem)
10042 4 => False, -- unused
10043 5 => False), -- Etype (Node5-Sem)
10044
10045 N_Full_Type_Declaration =>
10046 (1 => True, -- Defining_Identifier (Node1)
10047 2 => False, -- unused
10048 3 => True, -- Type_Definition (Node3)
10049 4 => True, -- Discriminant_Specifications (List4)
10050 5 => False), -- unused
10051
10052 N_Subtype_Declaration =>
10053 (1 => True, -- Defining_Identifier (Node1)
10054 2 => False, -- unused
10055 3 => False, -- unused
10056 4 => False, -- Generic_Parent_Type (Node4-Sem)
10057 5 => True), -- Subtype_Indication (Node5)
10058
10059 N_Subtype_Indication =>
10060 (1 => False, -- unused
10061 2 => False, -- unused
10062 3 => True, -- Constraint (Node3)
10063 4 => True, -- Subtype_Mark (Node4)
10064 5 => False), -- Etype (Node5-Sem)
10065
10066 N_Object_Declaration =>
10067 (1 => True, -- Defining_Identifier (Node1)
10068 2 => False, -- Handler_List_Entry (Node2-Sem)
10069 3 => True, -- Expression (Node3)
10070 4 => True, -- Object_Definition (Node4)
10071 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10072
10073 N_Number_Declaration =>
10074 (1 => True, -- Defining_Identifier (Node1)
10075 2 => False, -- unused
10076 3 => True, -- Expression (Node3)
10077 4 => False, -- unused
10078 5 => False), -- unused
10079
10080 N_Derived_Type_Definition =>
10081 (1 => False, -- unused
10082 2 => True, -- Interface_List (List2)
10083 3 => True, -- Record_Extension_Part (Node3)
10084 4 => False, -- unused
10085 5 => True), -- Subtype_Indication (Node5)
10086
10087 N_Range_Constraint =>
10088 (1 => False, -- unused
10089 2 => False, -- unused
10090 3 => False, -- unused
10091 4 => True, -- Range_Expression (Node4)
10092 5 => False), -- unused
10093
10094 N_Range =>
10095 (1 => True, -- Low_Bound (Node1)
10096 2 => True, -- High_Bound (Node2)
10097 3 => False, -- unused
10098 4 => False, -- unused
10099 5 => False), -- Etype (Node5-Sem)
10100
10101 N_Enumeration_Type_Definition =>
10102 (1 => True, -- Literals (List1)
10103 2 => False, -- unused
10104 3 => False, -- unused
10105 4 => True, -- End_Label (Node4)
10106 5 => False), -- unused
10107
10108 N_Defining_Character_Literal =>
10109 (1 => True, -- Chars (Name1)
10110 2 => False, -- Next_Entity (Node2-Sem)
10111 3 => False, -- Scope (Node3-Sem)
10112 4 => False, -- unused
10113 5 => False), -- Etype (Node5-Sem)
10114
10115 N_Signed_Integer_Type_Definition =>
10116 (1 => True, -- Low_Bound (Node1)
10117 2 => True, -- High_Bound (Node2)
10118 3 => False, -- unused
10119 4 => False, -- unused
10120 5 => False), -- unused
10121
10122 N_Modular_Type_Definition =>
10123 (1 => False, -- unused
10124 2 => False, -- unused
10125 3 => True, -- Expression (Node3)
10126 4 => False, -- unused
10127 5 => False), -- unused
10128
10129 N_Floating_Point_Definition =>
10130 (1 => False, -- unused
10131 2 => True, -- Digits_Expression (Node2)
10132 3 => False, -- unused
10133 4 => True, -- Real_Range_Specification (Node4)
10134 5 => False), -- unused
10135
10136 N_Real_Range_Specification =>
10137 (1 => True, -- Low_Bound (Node1)
10138 2 => True, -- High_Bound (Node2)
10139 3 => False, -- unused
10140 4 => False, -- unused
10141 5 => False), -- unused
10142
10143 N_Ordinary_Fixed_Point_Definition =>
10144 (1 => False, -- unused
10145 2 => False, -- unused
10146 3 => True, -- Delta_Expression (Node3)
10147 4 => True, -- Real_Range_Specification (Node4)
10148 5 => False), -- unused
10149
10150 N_Decimal_Fixed_Point_Definition =>
10151 (1 => False, -- unused
10152 2 => True, -- Digits_Expression (Node2)
10153 3 => True, -- Delta_Expression (Node3)
10154 4 => True, -- Real_Range_Specification (Node4)
10155 5 => False), -- unused
10156
10157 N_Digits_Constraint =>
10158 (1 => False, -- unused
10159 2 => True, -- Digits_Expression (Node2)
10160 3 => False, -- unused
10161 4 => True, -- Range_Constraint (Node4)
10162 5 => False), -- unused
10163
10164 N_Unconstrained_Array_Definition =>
10165 (1 => False, -- unused
10166 2 => True, -- Subtype_Marks (List2)
10167 3 => False, -- unused
10168 4 => True, -- Component_Definition (Node4)
10169 5 => False), -- unused
10170
10171 N_Constrained_Array_Definition =>
10172 (1 => False, -- unused
10173 2 => True, -- Discrete_Subtype_Definitions (List2)
10174 3 => False, -- unused
10175 4 => True, -- Component_Definition (Node4)
10176 5 => False), -- unused
10177
10178 N_Component_Definition =>
10179 (1 => False, -- unused
10180 2 => False, -- unused
10181 3 => True, -- Access_Definition (Node3)
10182 4 => False, -- unused
10183 5 => True), -- Subtype_Indication (Node5)
10184
10185 N_Discriminant_Specification =>
10186 (1 => True, -- Defining_Identifier (Node1)
10187 2 => False, -- unused
10188 3 => True, -- Expression (Node3)
10189 4 => False, -- unused
10190 5 => True), -- Discriminant_Type (Node5)
10191
10192 N_Index_Or_Discriminant_Constraint =>
10193 (1 => True, -- Constraints (List1)
10194 2 => False, -- unused
10195 3 => False, -- unused
10196 4 => False, -- unused
10197 5 => False), -- unused
10198
10199 N_Discriminant_Association =>
10200 (1 => True, -- Selector_Names (List1)
10201 2 => False, -- unused
10202 3 => True, -- Expression (Node3)
10203 4 => False, -- unused
10204 5 => False), -- unused
10205
10206 N_Record_Definition =>
10207 (1 => True, -- Component_List (Node1)
10208 2 => True, -- Interface_List (List2)
10209 3 => False, -- unused
10210 4 => True, -- End_Label (Node4)
10211 5 => False), -- unused
10212
10213 N_Component_List =>
10214 (1 => False, -- unused
10215 2 => False, -- unused
10216 3 => True, -- Component_Items (List3)
10217 4 => True, -- Variant_Part (Node4)
10218 5 => False), -- unused
10219
10220 N_Component_Declaration =>
10221 (1 => True, -- Defining_Identifier (Node1)
10222 2 => False, -- unused
10223 3 => True, -- Expression (Node3)
10224 4 => True, -- Component_Definition (Node4)
10225 5 => False), -- unused
10226
10227 N_Variant_Part =>
10228 (1 => True, -- Variants (List1)
10229 2 => True, -- Name (Node2)
10230 3 => False, -- unused
10231 4 => False, -- unused
10232 5 => False), -- unused
10233
10234 N_Variant =>
10235 (1 => True, -- Component_List (Node1)
10236 2 => False, -- Enclosing_Variant (Node2-Sem)
10237 3 => False, -- Present_Expr (Uint3-Sem)
10238 4 => True, -- Discrete_Choices (List4)
10239 5 => False), -- Dcheck_Function (Node5-Sem)
10240
10241 N_Others_Choice =>
10242 (1 => False, -- Others_Discrete_Choices (List1-Sem)
10243 2 => False, -- unused
10244 3 => False, -- unused
10245 4 => False, -- unused
10246 5 => False), -- unused
10247
10248 N_Access_To_Object_Definition =>
10249 (1 => False, -- unused
10250 2 => False, -- unused
10251 3 => False, -- unused
10252 4 => False, -- unused
10253 5 => True), -- Subtype_Indication (Node5)
10254
10255 N_Access_Function_Definition =>
10256 (1 => False, -- unused
10257 2 => False, -- unused
10258 3 => True, -- Parameter_Specifications (List3)
10259 4 => True, -- Result_Definition (Node4)
10260 5 => False), -- unused
10261
10262 N_Access_Procedure_Definition =>
10263 (1 => False, -- unused
10264 2 => False, -- unused
10265 3 => True, -- Parameter_Specifications (List3)
10266 4 => False, -- unused
10267 5 => False), -- unused
10268
10269 N_Access_Definition =>
10270 (1 => False, -- unused
10271 2 => False, -- unused
10272 3 => True, -- Access_To_Subprogram_Definition (Node3)
10273 4 => True, -- Subtype_Mark (Node4)
10274 5 => False), -- unused
10275
10276 N_Incomplete_Type_Declaration =>
10277 (1 => True, -- Defining_Identifier (Node1)
10278 2 => False, -- unused
10279 3 => False, -- unused
10280 4 => True, -- Discriminant_Specifications (List4)
10281 5 => False), -- unused
10282
10283 N_Explicit_Dereference =>
10284 (1 => False, -- unused
10285 2 => False, -- unused
10286 3 => True, -- Prefix (Node3)
10287 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10288 5 => False), -- Etype (Node5-Sem)
10289
10290 N_Indexed_Component =>
10291 (1 => True, -- Expressions (List1)
10292 2 => False, -- unused
10293 3 => True, -- Prefix (Node3)
10294 4 => False, -- unused
10295 5 => False), -- Etype (Node5-Sem)
10296
10297 N_Slice =>
10298 (1 => False, -- unused
10299 2 => False, -- unused
10300 3 => True, -- Prefix (Node3)
10301 4 => True, -- Discrete_Range (Node4)
10302 5 => False), -- Etype (Node5-Sem)
10303
10304 N_Selected_Component =>
10305 (1 => False, -- unused
10306 2 => True, -- Selector_Name (Node2)
10307 3 => True, -- Prefix (Node3)
10308 4 => False, -- unused
10309 5 => False), -- Etype (Node5-Sem)
10310
10311 N_Attribute_Reference =>
10312 (1 => True, -- Expressions (List1)
10313 2 => True, -- Attribute_Name (Name2)
10314 3 => True, -- Prefix (Node3)
10315 4 => False, -- Entity (Node4-Sem)
10316 5 => False), -- Etype (Node5-Sem)
10317
10318 N_Aggregate =>
10319 (1 => True, -- Expressions (List1)
10320 2 => True, -- Component_Associations (List2)
10321 3 => False, -- Aggregate_Bounds (Node3-Sem)
10322 4 => False, -- unused
10323 5 => False), -- Etype (Node5-Sem)
10324
10325 N_Component_Association =>
10326 (1 => True, -- Choices (List1)
10327 2 => False, -- Loop_Actions (List2-Sem)
10328 3 => True, -- Expression (Node3)
10329 4 => False, -- unused
10330 5 => False), -- unused
10331
10332 N_Extension_Aggregate =>
10333 (1 => True, -- Expressions (List1)
10334 2 => True, -- Component_Associations (List2)
10335 3 => True, -- Ancestor_Part (Node3)
10336 4 => False, -- unused
10337 5 => False), -- Etype (Node5-Sem)
10338
10339 N_Null =>
10340 (1 => False, -- unused
10341 2 => False, -- unused
10342 3 => False, -- unused
10343 4 => False, -- unused
10344 5 => False), -- Etype (Node5-Sem)
10345
10346 N_And_Then =>
10347 (1 => False, -- Actions (List1-Sem)
10348 2 => True, -- Left_Opnd (Node2)
10349 3 => True, -- Right_Opnd (Node3)
10350 4 => False, -- unused
10351 5 => False), -- Etype (Node5-Sem)
10352
10353 N_Or_Else =>
10354 (1 => False, -- Actions (List1-Sem)
10355 2 => True, -- Left_Opnd (Node2)
10356 3 => True, -- Right_Opnd (Node3)
10357 4 => False, -- unused
10358 5 => False), -- Etype (Node5-Sem)
10359
10360 N_In =>
10361 (1 => False, -- unused
10362 2 => True, -- Left_Opnd (Node2)
10363 3 => True, -- Right_Opnd (Node3)
10364 4 => True, -- Alternatives (List4)
10365 5 => False), -- Etype (Node5-Sem)
10366
10367 N_Not_In =>
10368 (1 => False, -- unused
10369 2 => True, -- Left_Opnd (Node2)
10370 3 => True, -- Right_Opnd (Node3)
10371 4 => True, -- Alternatives (List4)
10372 5 => False), -- Etype (Node5-Sem)
10373
10374 N_Op_And =>
10375 (1 => True, -- Chars (Name1)
10376 2 => True, -- Left_Opnd (Node2)
10377 3 => True, -- Right_Opnd (Node3)
10378 4 => False, -- Entity (Node4-Sem)
10379 5 => False), -- Etype (Node5-Sem)
10380
10381 N_Op_Or =>
10382 (1 => True, -- Chars (Name1)
10383 2 => True, -- Left_Opnd (Node2)
10384 3 => True, -- Right_Opnd (Node3)
10385 4 => False, -- Entity (Node4-Sem)
10386 5 => False), -- Etype (Node5-Sem)
10387
10388 N_Op_Xor =>
10389 (1 => True, -- Chars (Name1)
10390 2 => True, -- Left_Opnd (Node2)
10391 3 => True, -- Right_Opnd (Node3)
10392 4 => False, -- Entity (Node4-Sem)
10393 5 => False), -- Etype (Node5-Sem)
10394
10395 N_Op_Eq =>
10396 (1 => True, -- Chars (Name1)
10397 2 => True, -- Left_Opnd (Node2)
10398 3 => True, -- Right_Opnd (Node3)
10399 4 => False, -- Entity (Node4-Sem)
10400 5 => False), -- Etype (Node5-Sem)
10401
10402 N_Op_Ne =>
10403 (1 => True, -- Chars (Name1)
10404 2 => True, -- Left_Opnd (Node2)
10405 3 => True, -- Right_Opnd (Node3)
10406 4 => False, -- Entity (Node4-Sem)
10407 5 => False), -- Etype (Node5-Sem)
10408
10409 N_Op_Lt =>
10410 (1 => True, -- Chars (Name1)
10411 2 => True, -- Left_Opnd (Node2)
10412 3 => True, -- Right_Opnd (Node3)
10413 4 => False, -- Entity (Node4-Sem)
10414 5 => False), -- Etype (Node5-Sem)
10415
10416 N_Op_Le =>
10417 (1 => True, -- Chars (Name1)
10418 2 => True, -- Left_Opnd (Node2)
10419 3 => True, -- Right_Opnd (Node3)
10420 4 => False, -- Entity (Node4-Sem)
10421 5 => False), -- Etype (Node5-Sem)
10422
10423 N_Op_Gt =>
10424 (1 => True, -- Chars (Name1)
10425 2 => True, -- Left_Opnd (Node2)
10426 3 => True, -- Right_Opnd (Node3)
10427 4 => False, -- Entity (Node4-Sem)
10428 5 => False), -- Etype (Node5-Sem)
10429
10430 N_Op_Ge =>
10431 (1 => True, -- Chars (Name1)
10432 2 => True, -- Left_Opnd (Node2)
10433 3 => True, -- Right_Opnd (Node3)
10434 4 => False, -- Entity (Node4-Sem)
10435 5 => False), -- Etype (Node5-Sem)
10436
10437 N_Op_Add =>
10438 (1 => True, -- Chars (Name1)
10439 2 => True, -- Left_Opnd (Node2)
10440 3 => True, -- Right_Opnd (Node3)
10441 4 => False, -- Entity (Node4-Sem)
10442 5 => False), -- Etype (Node5-Sem)
10443
10444 N_Op_Subtract =>
10445 (1 => True, -- Chars (Name1)
10446 2 => True, -- Left_Opnd (Node2)
10447 3 => True, -- Right_Opnd (Node3)
10448 4 => False, -- Entity (Node4-Sem)
10449 5 => False), -- Etype (Node5-Sem)
10450
10451 N_Op_Concat =>
10452 (1 => True, -- Chars (Name1)
10453 2 => True, -- Left_Opnd (Node2)
10454 3 => True, -- Right_Opnd (Node3)
10455 4 => False, -- Entity (Node4-Sem)
10456 5 => False), -- Etype (Node5-Sem)
10457
10458 N_Op_Multiply =>
10459 (1 => True, -- Chars (Name1)
10460 2 => True, -- Left_Opnd (Node2)
10461 3 => True, -- Right_Opnd (Node3)
10462 4 => False, -- Entity (Node4-Sem)
10463 5 => False), -- Etype (Node5-Sem)
10464
10465 N_Op_Divide =>
10466 (1 => True, -- Chars (Name1)
10467 2 => True, -- Left_Opnd (Node2)
10468 3 => True, -- Right_Opnd (Node3)
10469 4 => False, -- Entity (Node4-Sem)
10470 5 => False), -- Etype (Node5-Sem)
10471
10472 N_Op_Mod =>
10473 (1 => True, -- Chars (Name1)
10474 2 => True, -- Left_Opnd (Node2)
10475 3 => True, -- Right_Opnd (Node3)
10476 4 => False, -- Entity (Node4-Sem)
10477 5 => False), -- Etype (Node5-Sem)
10478
10479 N_Op_Rem =>
10480 (1 => True, -- Chars (Name1)
10481 2 => True, -- Left_Opnd (Node2)
10482 3 => True, -- Right_Opnd (Node3)
10483 4 => False, -- Entity (Node4-Sem)
10484 5 => False), -- Etype (Node5-Sem)
10485
10486 N_Op_Expon =>
10487 (1 => True, -- Chars (Name1)
10488 2 => True, -- Left_Opnd (Node2)
10489 3 => True, -- Right_Opnd (Node3)
10490 4 => False, -- Entity (Node4-Sem)
10491 5 => False), -- Etype (Node5-Sem)
10492
10493 N_Op_Plus =>
10494 (1 => True, -- Chars (Name1)
10495 2 => False, -- unused
10496 3 => True, -- Right_Opnd (Node3)
10497 4 => False, -- Entity (Node4-Sem)
10498 5 => False), -- Etype (Node5-Sem)
10499
10500 N_Op_Minus =>
10501 (1 => True, -- Chars (Name1)
10502 2 => False, -- unused
10503 3 => True, -- Right_Opnd (Node3)
10504 4 => False, -- Entity (Node4-Sem)
10505 5 => False), -- Etype (Node5-Sem)
10506
10507 N_Op_Abs =>
10508 (1 => True, -- Chars (Name1)
10509 2 => False, -- unused
10510 3 => True, -- Right_Opnd (Node3)
10511 4 => False, -- Entity (Node4-Sem)
10512 5 => False), -- Etype (Node5-Sem)
10513
10514 N_Op_Not =>
10515 (1 => True, -- Chars (Name1)
10516 2 => False, -- unused
10517 3 => True, -- Right_Opnd (Node3)
10518 4 => False, -- Entity (Node4-Sem)
10519 5 => False), -- Etype (Node5-Sem)
10520
10521 N_Type_Conversion =>
10522 (1 => False, -- unused
10523 2 => False, -- unused
10524 3 => True, -- Expression (Node3)
10525 4 => True, -- Subtype_Mark (Node4)
10526 5 => False), -- Etype (Node5-Sem)
10527
10528 N_Qualified_Expression =>
10529 (1 => False, -- unused
10530 2 => False, -- unused
10531 3 => True, -- Expression (Node3)
10532 4 => True, -- Subtype_Mark (Node4)
10533 5 => False), -- Etype (Node5-Sem)
10534
10535 N_Quantified_Expression =>
10536 (1 => True, -- Condition (Node1)
10537 2 => True, -- Iterator_Specification
10538 3 => False, -- unused
10539 4 => True, -- Loop_Parameter_Specification (Node4)
10540 5 => False), -- Etype (Node5-Sem)
10541
10542 N_Allocator =>
10543 (1 => False, -- Storage_Pool (Node1-Sem)
10544 2 => False, -- Procedure_To_Call (Node2-Sem)
10545 3 => True, -- Expression (Node3)
10546 4 => False, -- Coextensions (Elist4-Sem)
10547 5 => False), -- Etype (Node5-Sem)
10548
10549 N_Null_Statement =>
10550 (1 => False, -- unused
10551 2 => False, -- unused
10552 3 => False, -- unused
10553 4 => False, -- unused
10554 5 => False), -- unused
10555
10556 N_Label =>
10557 (1 => True, -- Identifier (Node1)
10558 2 => False, -- unused
10559 3 => False, -- unused
10560 4 => False, -- unused
10561 5 => False), -- unused
10562
10563 N_Assignment_Statement =>
10564 (1 => False, -- unused
10565 2 => True, -- Name (Node2)
10566 3 => True, -- Expression (Node3)
10567 4 => False, -- unused
10568 5 => False), -- unused
10569
10570 N_If_Statement =>
10571 (1 => True, -- Condition (Node1)
10572 2 => True, -- Then_Statements (List2)
10573 3 => True, -- Elsif_Parts (List3)
10574 4 => True, -- Else_Statements (List4)
10575 5 => True), -- End_Span (Uint5)
10576
10577 N_Elsif_Part =>
10578 (1 => True, -- Condition (Node1)
10579 2 => True, -- Then_Statements (List2)
10580 3 => False, -- Condition_Actions (List3-Sem)
10581 4 => False, -- unused
10582 5 => False), -- unused
10583
10584 N_Case_Expression =>
10585 (1 => False, -- unused
10586 2 => False, -- unused
10587 3 => True, -- Expression (Node3)
10588 4 => True, -- Alternatives (List4)
10589 5 => False), -- unused
10590
10591 N_Case_Expression_Alternative =>
10592 (1 => False, -- Actions (List1-Sem)
10593 2 => False, -- unused
10594 3 => True, -- Statements (List3)
10595 4 => True, -- Expression (Node4)
10596 5 => False), -- unused
10597
10598 N_Case_Statement =>
10599 (1 => False, -- unused
10600 2 => False, -- unused
10601 3 => True, -- Expression (Node3)
10602 4 => True, -- Alternatives (List4)
10603 5 => True), -- End_Span (Uint5)
10604
10605 N_Case_Statement_Alternative =>
10606 (1 => False, -- unused
10607 2 => False, -- unused
10608 3 => True, -- Statements (List3)
10609 4 => True, -- Discrete_Choices (List4)
10610 5 => False), -- unused
10611
10612 N_Loop_Statement =>
10613 (1 => True, -- Identifier (Node1)
10614 2 => True, -- Iteration_Scheme (Node2)
10615 3 => True, -- Statements (List3)
10616 4 => True, -- End_Label (Node4)
10617 5 => False), -- unused
10618
10619 N_Iteration_Scheme =>
10620 (1 => True, -- Condition (Node1)
10621 2 => True, -- Iterator_Specification (Node2)
10622 3 => False, -- Condition_Actions (List3-Sem)
10623 4 => True, -- Loop_Parameter_Specification (Node4)
10624 5 => False), -- unused
10625
10626 N_Loop_Parameter_Specification =>
10627 (1 => True, -- Defining_Identifier (Node1)
10628 2 => False, -- unused
10629 3 => False, -- unused
10630 4 => True, -- Discrete_Subtype_Definition (Node4)
10631 5 => False), -- unused
10632
10633 N_Iterator_Specification =>
10634 (1 => True, -- Defining_Identifier (Node1)
10635 2 => True, -- Name (Node2)
10636 3 => False, -- Unused
10637 4 => False, -- Unused
10638 5 => True), -- Subtype_Indication (Node5)
10639
10640 N_Block_Statement =>
10641 (1 => True, -- Identifier (Node1)
10642 2 => True, -- Declarations (List2)
10643 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10644 4 => True, -- Handled_Statement_Sequence (Node4)
10645 5 => False), -- unused
10646
10647 N_Exit_Statement =>
10648 (1 => True, -- Condition (Node1)
10649 2 => True, -- Name (Node2)
10650 3 => False, -- unused
10651 4 => False, -- unused
10652 5 => False), -- unused
10653
10654 N_Goto_Statement =>
10655 (1 => False, -- unused
10656 2 => True, -- Name (Node2)
10657 3 => False, -- unused
10658 4 => False, -- unused
10659 5 => False), -- unused
10660
10661 N_Subprogram_Declaration =>
10662 (1 => True, -- Specification (Node1)
10663 2 => False, -- unused
10664 3 => False, -- Body_To_Inline (Node3-Sem)
10665 4 => False, -- Parent_Spec (Node4-Sem)
10666 5 => False), -- Corresponding_Body (Node5-Sem)
10667
10668 N_Abstract_Subprogram_Declaration =>
10669 (1 => True, -- Specification (Node1)
10670 2 => False, -- unused
10671 3 => False, -- unused
10672 4 => False, -- unused
10673 5 => False), -- unused
10674
10675 N_Function_Specification =>
10676 (1 => True, -- Defining_Unit_Name (Node1)
10677 2 => False, -- Elaboration_Boolean (Node2-Sem)
10678 3 => True, -- Parameter_Specifications (List3)
10679 4 => True, -- Result_Definition (Node4)
10680 5 => False), -- Generic_Parent (Node5-Sem)
10681
10682 N_Procedure_Specification =>
10683 (1 => True, -- Defining_Unit_Name (Node1)
10684 2 => False, -- Elaboration_Boolean (Node2-Sem)
10685 3 => True, -- Parameter_Specifications (List3)
10686 4 => False, -- unused
10687 5 => False), -- Generic_Parent (Node5-Sem)
10688
10689 N_Designator =>
10690 (1 => True, -- Identifier (Node1)
10691 2 => True, -- Name (Node2)
10692 3 => False, -- unused
10693 4 => False, -- unused
10694 5 => False), -- unused
10695
10696 N_Defining_Program_Unit_Name =>
10697 (1 => True, -- Defining_Identifier (Node1)
10698 2 => True, -- Name (Node2)
10699 3 => False, -- unused
10700 4 => False, -- unused
10701 5 => False), -- unused
10702
10703 N_Operator_Symbol =>
10704 (1 => True, -- Chars (Name1)
10705 2 => False, -- unused
10706 3 => True, -- Strval (Str3)
10707 4 => False, -- Entity (Node4-Sem)
10708 5 => False), -- Etype (Node5-Sem)
10709
10710 N_Defining_Operator_Symbol =>
10711 (1 => True, -- Chars (Name1)
10712 2 => False, -- Next_Entity (Node2-Sem)
10713 3 => False, -- Scope (Node3-Sem)
10714 4 => False, -- unused
10715 5 => False), -- Etype (Node5-Sem)
10716
10717 N_Parameter_Specification =>
10718 (1 => True, -- Defining_Identifier (Node1)
10719 2 => True, -- Parameter_Type (Node2)
10720 3 => True, -- Expression (Node3)
10721 4 => False, -- unused
10722 5 => False), -- Default_Expression (Node5-Sem)
10723
10724 N_Subprogram_Body =>
10725 (1 => True, -- Specification (Node1)
10726 2 => True, -- Declarations (List2)
10727 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10728 4 => True, -- Handled_Statement_Sequence (Node4)
10729 5 => False), -- Corresponding_Spec (Node5-Sem)
10730
10731 N_Parameterized_Expression =>
10732 (1 => True, -- Specification (Node1)
10733 2 => False, -- unused
10734 3 => True, -- Expression (Node3)
10735 4 => False, -- unused
10736 5 => False), -- unused
10737
10738 N_Procedure_Call_Statement =>
10739 (1 => False, -- Controlling_Argument (Node1-Sem)
10740 2 => True, -- Name (Node2)
10741 3 => True, -- Parameter_Associations (List3)
10742 4 => False, -- First_Named_Actual (Node4-Sem)
10743 5 => False), -- Etype (Node5-Sem)
10744
10745 N_Function_Call =>
10746 (1 => False, -- Controlling_Argument (Node1-Sem)
10747 2 => True, -- Name (Node2)
10748 3 => True, -- Parameter_Associations (List3)
10749 4 => False, -- First_Named_Actual (Node4-Sem)
10750 5 => False), -- Etype (Node5-Sem)
10751
10752 N_Parameter_Association =>
10753 (1 => False, -- unused
10754 2 => True, -- Selector_Name (Node2)
10755 3 => True, -- Explicit_Actual_Parameter (Node3)
10756 4 => False, -- Next_Named_Actual (Node4-Sem)
10757 5 => False), -- unused
10758
10759 N_Return_Statement =>
10760 (1 => False, -- Storage_Pool (Node1-Sem)
10761 2 => False, -- Procedure_To_Call (Node2-Sem)
10762 3 => True, -- Expression (Node3)
10763 4 => False, -- unused
10764 5 => False), -- Return_Statement_Entity (Node5-Sem)
10765
10766 N_Extended_Return_Statement =>
10767 (1 => False, -- Storage_Pool (Node1-Sem)
10768 2 => False, -- Procedure_To_Call (Node2-Sem)
10769 3 => True, -- Return_Object_Declarations (List3)
10770 4 => True, -- Handled_Statement_Sequence (Node4)
10771 5 => False), -- Return_Statement_Entity (Node5-Sem)
10772
10773 N_Package_Declaration =>
10774 (1 => True, -- Specification (Node1)
10775 2 => False, -- unused
10776 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10777 4 => False, -- Parent_Spec (Node4-Sem)
10778 5 => False), -- Corresponding_Body (Node5-Sem)
10779
10780 N_Package_Specification =>
10781 (1 => True, -- Defining_Unit_Name (Node1)
10782 2 => True, -- Visible_Declarations (List2)
10783 3 => True, -- Private_Declarations (List3)
10784 4 => True, -- End_Label (Node4)
10785 5 => False), -- Generic_Parent (Node5-Sem)
10786
10787 N_Package_Body =>
10788 (1 => True, -- Defining_Unit_Name (Node1)
10789 2 => True, -- Declarations (List2)
10790 3 => False, -- unused
10791 4 => True, -- Handled_Statement_Sequence (Node4)
10792 5 => False), -- Corresponding_Spec (Node5-Sem)
10793
10794 N_Private_Type_Declaration =>
10795 (1 => True, -- Defining_Identifier (Node1)
10796 2 => False, -- unused
10797 3 => False, -- unused
10798 4 => True, -- Discriminant_Specifications (List4)
10799 5 => False), -- unused
10800
10801 N_Private_Extension_Declaration =>
10802 (1 => True, -- Defining_Identifier (Node1)
10803 2 => True, -- Interface_List (List2)
10804 3 => False, -- unused
10805 4 => True, -- Discriminant_Specifications (List4)
10806 5 => True), -- Subtype_Indication (Node5)
10807
10808 N_Use_Package_Clause =>
10809 (1 => False, -- unused
10810 2 => True, -- Names (List2)
10811 3 => False, -- Next_Use_Clause (Node3-Sem)
10812 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10813 5 => False), -- unused
10814
10815 N_Use_Type_Clause =>
10816 (1 => False, -- unused
10817 2 => True, -- Subtype_Marks (List2)
10818 3 => False, -- Next_Use_Clause (Node3-Sem)
10819 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10820 5 => False), -- unused
10821
10822 N_Object_Renaming_Declaration =>
10823 (1 => True, -- Defining_Identifier (Node1)
10824 2 => True, -- Name (Node2)
10825 3 => True, -- Access_Definition (Node3)
10826 4 => True, -- Subtype_Mark (Node4)
10827 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10828
10829 N_Exception_Renaming_Declaration =>
10830 (1 => True, -- Defining_Identifier (Node1)
10831 2 => True, -- Name (Node2)
10832 3 => False, -- unused
10833 4 => False, -- unused
10834 5 => False), -- unused
10835
10836 N_Package_Renaming_Declaration =>
10837 (1 => True, -- Defining_Unit_Name (Node1)
10838 2 => True, -- Name (Node2)
10839 3 => False, -- unused
10840 4 => False, -- Parent_Spec (Node4-Sem)
10841 5 => False), -- unused
10842
10843 N_Subprogram_Renaming_Declaration =>
10844 (1 => True, -- Specification (Node1)
10845 2 => True, -- Name (Node2)
10846 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
10847 4 => False, -- Parent_Spec (Node4-Sem)
10848 5 => False), -- Corresponding_Spec (Node5-Sem)
10849
10850 N_Generic_Package_Renaming_Declaration =>
10851 (1 => True, -- Defining_Unit_Name (Node1)
10852 2 => True, -- Name (Node2)
10853 3 => False, -- unused
10854 4 => False, -- Parent_Spec (Node4-Sem)
10855 5 => False), -- unused
10856
10857 N_Generic_Procedure_Renaming_Declaration =>
10858 (1 => True, -- Defining_Unit_Name (Node1)
10859 2 => True, -- Name (Node2)
10860 3 => False, -- unused
10861 4 => False, -- Parent_Spec (Node4-Sem)
10862 5 => False), -- unused
10863
10864 N_Generic_Function_Renaming_Declaration =>
10865 (1 => True, -- Defining_Unit_Name (Node1)
10866 2 => True, -- Name (Node2)
10867 3 => False, -- unused
10868 4 => False, -- Parent_Spec (Node4-Sem)
10869 5 => False), -- unused
10870
10871 N_Task_Type_Declaration =>
10872 (1 => True, -- Defining_Identifier (Node1)
10873 2 => True, -- Interface_List (List2)
10874 3 => True, -- Task_Definition (Node3)
10875 4 => True, -- Discriminant_Specifications (List4)
10876 5 => False), -- Corresponding_Body (Node5-Sem)
10877
10878 N_Single_Task_Declaration =>
10879 (1 => True, -- Defining_Identifier (Node1)
10880 2 => True, -- Interface_List (List2)
10881 3 => True, -- Task_Definition (Node3)
10882 4 => False, -- unused
10883 5 => False), -- unused
10884
10885 N_Task_Definition =>
10886 (1 => False, -- unused
10887 2 => True, -- Visible_Declarations (List2)
10888 3 => True, -- Private_Declarations (List3)
10889 4 => True, -- End_Label (Node4)
10890 5 => False), -- unused
10891
10892 N_Task_Body =>
10893 (1 => True, -- Defining_Identifier (Node1)
10894 2 => True, -- Declarations (List2)
10895 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10896 4 => True, -- Handled_Statement_Sequence (Node4)
10897 5 => False), -- Corresponding_Spec (Node5-Sem)
10898
10899 N_Protected_Type_Declaration =>
10900 (1 => True, -- Defining_Identifier (Node1)
10901 2 => True, -- Interface_List (List2)
10902 3 => True, -- Protected_Definition (Node3)
10903 4 => True, -- Discriminant_Specifications (List4)
10904 5 => False), -- Corresponding_Body (Node5-Sem)
10905
10906 N_Single_Protected_Declaration =>
10907 (1 => True, -- Defining_Identifier (Node1)
10908 2 => True, -- Interface_List (List2)
10909 3 => True, -- Protected_Definition (Node3)
10910 4 => False, -- unused
10911 5 => False), -- unused
10912
10913 N_Protected_Definition =>
10914 (1 => False, -- unused
10915 2 => True, -- Visible_Declarations (List2)
10916 3 => True, -- Private_Declarations (List3)
10917 4 => True, -- End_Label (Node4)
10918 5 => False), -- unused
10919
10920 N_Protected_Body =>
10921 (1 => True, -- Defining_Identifier (Node1)
10922 2 => True, -- Declarations (List2)
10923 3 => False, -- unused
10924 4 => True, -- End_Label (Node4)
10925 5 => False), -- Corresponding_Spec (Node5-Sem)
10926
10927 N_Entry_Declaration =>
10928 (1 => True, -- Defining_Identifier (Node1)
10929 2 => False, -- unused
10930 3 => True, -- Parameter_Specifications (List3)
10931 4 => True, -- Discrete_Subtype_Definition (Node4)
10932 5 => False), -- Corresponding_Body (Node5-Sem)
10933
10934 N_Accept_Statement =>
10935 (1 => True, -- Entry_Direct_Name (Node1)
10936 2 => True, -- Declarations (List2)
10937 3 => True, -- Parameter_Specifications (List3)
10938 4 => True, -- Handled_Statement_Sequence (Node4)
10939 5 => True), -- Entry_Index (Node5)
10940
10941 N_Entry_Body =>
10942 (1 => True, -- Defining_Identifier (Node1)
10943 2 => True, -- Declarations (List2)
10944 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10945 4 => True, -- Handled_Statement_Sequence (Node4)
10946 5 => True), -- Entry_Body_Formal_Part (Node5)
10947
10948 N_Entry_Body_Formal_Part =>
10949 (1 => True, -- Condition (Node1)
10950 2 => False, -- unused
10951 3 => True, -- Parameter_Specifications (List3)
10952 4 => True, -- Entry_Index_Specification (Node4)
10953 5 => False), -- unused
10954
10955 N_Entry_Index_Specification =>
10956 (1 => True, -- Defining_Identifier (Node1)
10957 2 => False, -- unused
10958 3 => False, -- unused
10959 4 => True, -- Discrete_Subtype_Definition (Node4)
10960 5 => False), -- unused
10961
10962 N_Entry_Call_Statement =>
10963 (1 => False, -- unused
10964 2 => True, -- Name (Node2)
10965 3 => True, -- Parameter_Associations (List3)
10966 4 => False, -- First_Named_Actual (Node4-Sem)
10967 5 => False), -- unused
10968
10969 N_Requeue_Statement =>
10970 (1 => False, -- unused
10971 2 => True, -- Name (Node2)
10972 3 => False, -- unused
10973 4 => False, -- unused
10974 5 => False), -- unused
10975
10976 N_Delay_Until_Statement =>
10977 (1 => False, -- unused
10978 2 => False, -- unused
10979 3 => True, -- Expression (Node3)
10980 4 => False, -- unused
10981 5 => False), -- unused
10982
10983 N_Delay_Relative_Statement =>
10984 (1 => False, -- unused
10985 2 => False, -- unused
10986 3 => True, -- Expression (Node3)
10987 4 => False, -- unused
10988 5 => False), -- unused
10989
10990 N_Selective_Accept =>
10991 (1 => True, -- Select_Alternatives (List1)
10992 2 => False, -- unused
10993 3 => False, -- unused
10994 4 => True, -- Else_Statements (List4)
10995 5 => False), -- unused
10996
10997 N_Accept_Alternative =>
10998 (1 => True, -- Condition (Node1)
10999 2 => True, -- Accept_Statement (Node2)
11000 3 => True, -- Statements (List3)
11001 4 => True, -- Pragmas_Before (List4)
11002 5 => False), -- Accept_Handler_Records (List5-Sem)
11003
11004 N_Delay_Alternative =>
11005 (1 => True, -- Condition (Node1)
11006 2 => True, -- Delay_Statement (Node2)
11007 3 => True, -- Statements (List3)
11008 4 => True, -- Pragmas_Before (List4)
11009 5 => False), -- unused
11010
11011 N_Terminate_Alternative =>
11012 (1 => True, -- Condition (Node1)
11013 2 => False, -- unused
11014 3 => False, -- unused
11015 4 => True, -- Pragmas_Before (List4)
11016 5 => True), -- Pragmas_After (List5)
11017
11018 N_Timed_Entry_Call =>
11019 (1 => True, -- Entry_Call_Alternative (Node1)
11020 2 => False, -- unused
11021 3 => False, -- unused
11022 4 => True, -- Delay_Alternative (Node4)
11023 5 => False), -- unused
11024
11025 N_Entry_Call_Alternative =>
11026 (1 => True, -- Entry_Call_Statement (Node1)
11027 2 => False, -- unused
11028 3 => True, -- Statements (List3)
11029 4 => True, -- Pragmas_Before (List4)
11030 5 => False), -- unused
11031
11032 N_Conditional_Entry_Call =>
11033 (1 => True, -- Entry_Call_Alternative (Node1)
11034 2 => False, -- unused
11035 3 => False, -- unused
11036 4 => True, -- Else_Statements (List4)
11037 5 => False), -- unused
11038
11039 N_Asynchronous_Select =>
11040 (1 => True, -- Triggering_Alternative (Node1)
11041 2 => True, -- Abortable_Part (Node2)
11042 3 => False, -- unused
11043 4 => False, -- unused
11044 5 => False), -- unused
11045
11046 N_Triggering_Alternative =>
11047 (1 => True, -- Triggering_Statement (Node1)
11048 2 => False, -- unused
11049 3 => True, -- Statements (List3)
11050 4 => True, -- Pragmas_Before (List4)
11051 5 => False), -- unused
11052
11053 N_Abortable_Part =>
11054 (1 => False, -- unused
11055 2 => False, -- unused
11056 3 => True, -- Statements (List3)
11057 4 => False, -- unused
11058 5 => False), -- unused
11059
11060 N_Abort_Statement =>
11061 (1 => False, -- unused
11062 2 => True, -- Names (List2)
11063 3 => False, -- unused
11064 4 => False, -- unused
11065 5 => False), -- unused
11066
11067 N_Compilation_Unit =>
11068 (1 => True, -- Context_Items (List1)
11069 2 => True, -- Unit (Node2)
11070 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
11071 4 => False, -- Library_Unit (Node4-Sem)
11072 5 => True), -- Aux_Decls_Node (Node5)
11073
11074 N_Compilation_Unit_Aux =>
11075 (1 => True, -- Actions (List1)
11076 2 => True, -- Declarations (List2)
11077 3 => False, -- Default_Storage_Pool (Node3)
11078 4 => True, -- Config_Pragmas (List4)
11079 5 => True), -- Pragmas_After (List5)
11080
11081 N_With_Clause =>
11082 (1 => False, -- unused
11083 2 => True, -- Name (Node2)
11084 3 => False, -- unused
11085 4 => False, -- Library_Unit (Node4-Sem)
11086 5 => False), -- Corresponding_Spec (Node5-Sem)
11087
11088 N_Subprogram_Body_Stub =>
11089 (1 => True, -- Specification (Node1)
11090 2 => False, -- unused
11091 3 => False, -- unused
11092 4 => False, -- Library_Unit (Node4-Sem)
11093 5 => False), -- Corresponding_Body (Node5-Sem)
11094
11095 N_Package_Body_Stub =>
11096 (1 => True, -- Defining_Identifier (Node1)
11097 2 => False, -- unused
11098 3 => False, -- unused
11099 4 => False, -- Library_Unit (Node4-Sem)
11100 5 => False), -- Corresponding_Body (Node5-Sem)
11101
11102 N_Task_Body_Stub =>
11103 (1 => True, -- Defining_Identifier (Node1)
11104 2 => False, -- unused
11105 3 => False, -- unused
11106 4 => False, -- Library_Unit (Node4-Sem)
11107 5 => False), -- Corresponding_Body (Node5-Sem)
11108
11109 N_Protected_Body_Stub =>
11110 (1 => True, -- Defining_Identifier (Node1)
11111 2 => False, -- unused
11112 3 => False, -- unused
11113 4 => False, -- Library_Unit (Node4-Sem)
11114 5 => False), -- Corresponding_Body (Node5-Sem)
11115
11116 N_Subunit =>
11117 (1 => True, -- Proper_Body (Node1)
11118 2 => True, -- Name (Node2)
11119 3 => False, -- Corresponding_Stub (Node3-Sem)
11120 4 => False, -- unused
11121 5 => False), -- unused
11122
11123 N_Exception_Declaration =>
11124 (1 => True, -- Defining_Identifier (Node1)
11125 2 => False, -- unused
11126 3 => False, -- Expression (Node3-Sem)
11127 4 => False, -- unused
11128 5 => False), -- unused
11129
11130 N_Handled_Sequence_Of_Statements =>
11131 (1 => True, -- At_End_Proc (Node1)
11132 2 => False, -- First_Real_Statement (Node2-Sem)
11133 3 => True, -- Statements (List3)
11134 4 => True, -- End_Label (Node4)
11135 5 => True), -- Exception_Handlers (List5)
11136
11137 N_Exception_Handler =>
11138 (1 => False, -- Local_Raise_Statements (Elist1)
11139 2 => True, -- Choice_Parameter (Node2)
11140 3 => True, -- Statements (List3)
11141 4 => True, -- Exception_Choices (List4)
11142 5 => False), -- Exception_Label (Node5)
11143
11144 N_Raise_Statement =>
11145 (1 => False, -- unused
11146 2 => True, -- Name (Node2)
11147 3 => True, -- Expression (Node3)
11148 4 => False, -- unused
11149 5 => False), -- unused
11150
11151 N_Generic_Subprogram_Declaration =>
11152 (1 => True, -- Specification (Node1)
11153 2 => True, -- Generic_Formal_Declarations (List2)
11154 3 => False, -- unused
11155 4 => False, -- Parent_Spec (Node4-Sem)
11156 5 => False), -- Corresponding_Body (Node5-Sem)
11157
11158 N_Generic_Package_Declaration =>
11159 (1 => True, -- Specification (Node1)
11160 2 => True, -- Generic_Formal_Declarations (List2)
11161 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11162 4 => False, -- Parent_Spec (Node4-Sem)
11163 5 => False), -- Corresponding_Body (Node5-Sem)
11164
11165 N_Package_Instantiation =>
11166 (1 => True, -- Defining_Unit_Name (Node1)
11167 2 => True, -- Name (Node2)
11168 3 => True, -- Generic_Associations (List3)
11169 4 => False, -- Parent_Spec (Node4-Sem)
11170 5 => False), -- Instance_Spec (Node5-Sem)
11171
11172 N_Procedure_Instantiation =>
11173 (1 => True, -- Defining_Unit_Name (Node1)
11174 2 => True, -- Name (Node2)
11175 3 => True, -- Generic_Associations (List3)
11176 4 => False, -- Parent_Spec (Node4-Sem)
11177 5 => False), -- Instance_Spec (Node5-Sem)
11178
11179 N_Function_Instantiation =>
11180 (1 => True, -- Defining_Unit_Name (Node1)
11181 2 => True, -- Name (Node2)
11182 3 => True, -- Generic_Associations (List3)
11183 4 => False, -- Parent_Spec (Node4-Sem)
11184 5 => False), -- Instance_Spec (Node5-Sem)
11185
11186 N_Generic_Association =>
11187 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
11188 2 => True, -- Selector_Name (Node2)
11189 3 => False, -- unused
11190 4 => False, -- unused
11191 5 => False), -- unused
11192
11193 N_Formal_Object_Declaration =>
11194 (1 => True, -- Defining_Identifier (Node1)
11195 2 => False, -- unused
11196 3 => True, -- Access_Definition (Node3)
11197 4 => True, -- Subtype_Mark (Node4)
11198 5 => True), -- Default_Expression (Node5)
11199
11200 N_Formal_Type_Declaration =>
11201 (1 => True, -- Defining_Identifier (Node1)
11202 2 => False, -- unused
11203 3 => True, -- Formal_Type_Definition (Node3)
11204 4 => True, -- Discriminant_Specifications (List4)
11205 5 => False), -- unused
11206
11207 N_Formal_Private_Type_Definition =>
11208 (1 => False, -- unused
11209 2 => False, -- unused
11210 3 => False, -- unused
11211 4 => False, -- unused
11212 5 => False), -- unused
11213
11214 N_Formal_Derived_Type_Definition =>
11215 (1 => False, -- unused
11216 2 => True, -- Interface_List (List2)
11217 3 => False, -- unused
11218 4 => True, -- Subtype_Mark (Node4)
11219 5 => False), -- unused
11220
11221 N_Formal_Discrete_Type_Definition =>
11222 (1 => False, -- unused
11223 2 => False, -- unused
11224 3 => False, -- unused
11225 4 => False, -- unused
11226 5 => False), -- unused
11227
11228 N_Formal_Signed_Integer_Type_Definition =>
11229 (1 => False, -- unused
11230 2 => False, -- unused
11231 3 => False, -- unused
11232 4 => False, -- unused
11233 5 => False), -- unused
11234
11235 N_Formal_Modular_Type_Definition =>
11236 (1 => False, -- unused
11237 2 => False, -- unused
11238 3 => False, -- unused
11239 4 => False, -- unused
11240 5 => False), -- unused
11241
11242 N_Formal_Floating_Point_Definition =>
11243 (1 => False, -- unused
11244 2 => False, -- unused
11245 3 => False, -- unused
11246 4 => False, -- unused
11247 5 => False), -- unused
11248
11249 N_Formal_Ordinary_Fixed_Point_Definition =>
11250 (1 => False, -- unused
11251 2 => False, -- unused
11252 3 => False, -- unused
11253 4 => False, -- unused
11254 5 => False), -- unused
11255
11256 N_Formal_Decimal_Fixed_Point_Definition =>
11257 (1 => False, -- unused
11258 2 => False, -- unused
11259 3 => False, -- unused
11260 4 => False, -- unused
11261 5 => False), -- unused
11262
11263 N_Formal_Concrete_Subprogram_Declaration =>
11264 (1 => True, -- Specification (Node1)
11265 2 => True, -- Default_Name (Node2)
11266 3 => False, -- unused
11267 4 => False, -- unused
11268 5 => False), -- unused
11269
11270 N_Formal_Abstract_Subprogram_Declaration =>
11271 (1 => True, -- Specification (Node1)
11272 2 => True, -- Default_Name (Node2)
11273 3 => False, -- unused
11274 4 => False, -- unused
11275 5 => False), -- unused
11276
11277 N_Formal_Package_Declaration =>
11278 (1 => True, -- Defining_Identifier (Node1)
11279 2 => True, -- Name (Node2)
11280 3 => True, -- Generic_Associations (List3)
11281 4 => False, -- unused
11282 5 => False), -- Instance_Spec (Node5-Sem)
11283
11284 N_Attribute_Definition_Clause =>
11285 (1 => True, -- Chars (Name1)
11286 2 => True, -- Name (Node2)
11287 3 => True, -- Expression (Node3)
11288 4 => False, -- unused
11289 5 => False), -- Next_Rep_Item (Node5-Sem)
11290
11291 N_Aspect_Specification =>
11292 (1 => True, -- Identifier (Node1)
11293 2 => False, -- Aspect_Rep_Item (Node2-Sem)
11294 3 => True, -- Expression (Node3)
11295 4 => False, -- Entity (Node4-Sem)
11296 5 => False), -- Next_Rep_Item (Node5-Sem)
11297
11298 N_Enumeration_Representation_Clause =>
11299 (1 => True, -- Identifier (Node1)
11300 2 => False, -- unused
11301 3 => True, -- Array_Aggregate (Node3)
11302 4 => False, -- unused
11303 5 => False), -- Next_Rep_Item (Node5-Sem)
11304
11305 N_Record_Representation_Clause =>
11306 (1 => True, -- Identifier (Node1)
11307 2 => True, -- Mod_Clause (Node2)
11308 3 => True, -- Component_Clauses (List3)
11309 4 => False, -- unused
11310 5 => False), -- Next_Rep_Item (Node5-Sem)
11311
11312 N_Component_Clause =>
11313 (1 => True, -- Component_Name (Node1)
11314 2 => True, -- Position (Node2)
11315 3 => True, -- First_Bit (Node3)
11316 4 => True, -- Last_Bit (Node4)
11317 5 => False), -- unused
11318
11319 N_Code_Statement =>
11320 (1 => False, -- unused
11321 2 => False, -- unused
11322 3 => True, -- Expression (Node3)
11323 4 => False, -- unused
11324 5 => False), -- unused
11325
11326 N_Op_Rotate_Left =>
11327 (1 => True, -- Chars (Name1)
11328 2 => True, -- Left_Opnd (Node2)
11329 3 => True, -- Right_Opnd (Node3)
11330 4 => False, -- Entity (Node4-Sem)
11331 5 => False), -- Etype (Node5-Sem)
11332
11333 N_Op_Rotate_Right =>
11334 (1 => True, -- Chars (Name1)
11335 2 => True, -- Left_Opnd (Node2)
11336 3 => True, -- Right_Opnd (Node3)
11337 4 => False, -- Entity (Node4-Sem)
11338 5 => False), -- Etype (Node5-Sem)
11339
11340 N_Op_Shift_Left =>
11341 (1 => True, -- Chars (Name1)
11342 2 => True, -- Left_Opnd (Node2)
11343 3 => True, -- Right_Opnd (Node3)
11344 4 => False, -- Entity (Node4-Sem)
11345 5 => False), -- Etype (Node5-Sem)
11346
11347 N_Op_Shift_Right_Arithmetic =>
11348 (1 => True, -- Chars (Name1)
11349 2 => True, -- Left_Opnd (Node2)
11350 3 => True, -- Right_Opnd (Node3)
11351 4 => False, -- Entity (Node4-Sem)
11352 5 => False), -- Etype (Node5-Sem)
11353
11354 N_Op_Shift_Right =>
11355 (1 => True, -- Chars (Name1)
11356 2 => True, -- Left_Opnd (Node2)
11357 3 => True, -- Right_Opnd (Node3)
11358 4 => False, -- Entity (Node4-Sem)
11359 5 => False), -- Etype (Node5-Sem)
11360
11361 N_Delta_Constraint =>
11362 (1 => False, -- unused
11363 2 => False, -- unused
11364 3 => True, -- Delta_Expression (Node3)
11365 4 => True, -- Range_Constraint (Node4)
11366 5 => False), -- unused
11367
11368 N_At_Clause =>
11369 (1 => True, -- Identifier (Node1)
11370 2 => False, -- unused
11371 3 => True, -- Expression (Node3)
11372 4 => False, -- unused
11373 5 => False), -- unused
11374
11375 N_Mod_Clause =>
11376 (1 => False, -- unused
11377 2 => False, -- unused
11378 3 => True, -- Expression (Node3)
11379 4 => True, -- Pragmas_Before (List4)
11380 5 => False), -- unused
11381
11382 N_Conditional_Expression =>
11383 (1 => True, -- Expressions (List1)
11384 2 => False, -- Then_Actions (List2-Sem)
11385 3 => False, -- Else_Actions (List3-Sem)
11386 4 => False, -- unused
11387 5 => False), -- Etype (Node5-Sem)
11388
11389 N_Expanded_Name =>
11390 (1 => True, -- Chars (Name1)
11391 2 => True, -- Selector_Name (Node2)
11392 3 => True, -- Prefix (Node3)
11393 4 => False, -- Entity (Node4-Sem)
11394 5 => False), -- Etype (Node5-Sem)
11395
11396 N_Expression_With_Actions =>
11397 (1 => True, -- Actions (List1)
11398 2 => False, -- unused
11399 3 => True, -- Expression (Node3)
11400 4 => False, -- unused
11401 5 => False), -- unused
11402
11403 N_Free_Statement =>
11404 (1 => False, -- Storage_Pool (Node1-Sem)
11405 2 => False, -- Procedure_To_Call (Node2-Sem)
11406 3 => True, -- Expression (Node3)
11407 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11408 5 => False), -- unused
11409
11410 N_Freeze_Entity =>
11411 (1 => True, -- Actions (List1)
11412 2 => False, -- Access_Types_To_Process (Elist2-Sem)
11413 3 => False, -- TSS_Elist (Elist3-Sem)
11414 4 => False, -- Entity (Node4-Sem)
11415 5 => False), -- First_Subtype_Link (Node5-Sem)
11416
11417 N_Implicit_Label_Declaration =>
11418 (1 => True, -- Defining_Identifier (Node1)
11419 2 => False, -- Label_Construct (Node2-Sem)
11420 3 => False, -- unused
11421 4 => False, -- unused
11422 5 => False), -- unused
11423
11424 N_Itype_Reference =>
11425 (1 => False, -- Itype (Node1-Sem)
11426 2 => False, -- unused
11427 3 => False, -- unused
11428 4 => False, -- unused
11429 5 => False), -- unused
11430
11431 N_Raise_Constraint_Error =>
11432 (1 => True, -- Condition (Node1)
11433 2 => False, -- unused
11434 3 => True, -- Reason (Uint3)
11435 4 => False, -- unused
11436 5 => False), -- Etype (Node5-Sem)
11437
11438 N_Raise_Program_Error =>
11439 (1 => True, -- Condition (Node1)
11440 2 => False, -- unused
11441 3 => True, -- Reason (Uint3)
11442 4 => False, -- unused
11443 5 => False), -- Etype (Node5-Sem)
11444
11445 N_Raise_Storage_Error =>
11446 (1 => True, -- Condition (Node1)
11447 2 => False, -- unused
11448 3 => True, -- Reason (Uint3)
11449 4 => False, -- unused
11450 5 => False), -- Etype (Node5-Sem)
11451
11452 N_Push_Constraint_Error_Label =>
11453 (1 => False, -- unused
11454 2 => False, -- unused
11455 3 => False, -- unused
11456 4 => False, -- unused
11457 5 => False), -- unused
11458
11459 N_Push_Program_Error_Label =>
11460 (1 => False, -- Exception_Label
11461 2 => False, -- unused
11462 3 => False, -- unused
11463 4 => False, -- unused
11464 5 => False), -- Exception_Label
11465
11466 N_Push_Storage_Error_Label =>
11467 (1 => False, -- Exception_Label
11468 2 => False, -- unused
11469 3 => False, -- unused
11470 4 => False, -- unused
11471 5 => False), -- Exception_Label
11472
11473 N_Pop_Constraint_Error_Label =>
11474 (1 => False, -- unused
11475 2 => False, -- unused
11476 3 => False, -- unused
11477 4 => False, -- unused
11478 5 => False), -- unused
11479
11480 N_Pop_Program_Error_Label =>
11481 (1 => False, -- unused
11482 2 => False, -- unused
11483 3 => False, -- unused
11484 4 => False, -- unused
11485 5 => False), -- unused
11486
11487 N_Pop_Storage_Error_Label =>
11488 (1 => False, -- unused
11489 2 => False, -- unused
11490 3 => False, -- unused
11491 4 => False, -- unused
11492 5 => False), -- unused
11493
11494 N_Reference =>
11495 (1 => False, -- unused
11496 2 => False, -- unused
11497 3 => True, -- Prefix (Node3)
11498 4 => False, -- unused
11499 5 => False), -- Etype (Node5-Sem)
11500
11501 N_Subprogram_Info =>
11502 (1 => True, -- Identifier (Node1)
11503 2 => False, -- unused
11504 3 => False, -- unused
11505 4 => False, -- unused
11506 5 => False), -- Etype (Node5-Sem)
11507
11508 N_Unchecked_Expression =>
11509 (1 => False, -- unused
11510 2 => False, -- unused
11511 3 => True, -- Expression (Node3)
11512 4 => False, -- unused
11513 5 => False), -- Etype (Node5-Sem)
11514
11515 N_Unchecked_Type_Conversion =>
11516 (1 => False, -- unused
11517 2 => False, -- unused
11518 3 => True, -- Expression (Node3)
11519 4 => True, -- Subtype_Mark (Node4)
11520 5 => False), -- Etype (Node5-Sem)
11521
11522 N_Validate_Unchecked_Conversion =>
11523 (1 => False, -- Source_Type (Node1-Sem)
11524 2 => False, -- Target_Type (Node2-Sem)
11525 3 => False, -- unused
11526 4 => False, -- unused
11527 5 => False), -- unused
11528
11529 -- Entries for SCIL nodes
11530
11531 N_SCIL_Dispatch_Table_Tag_Init =>
11532 (1 => False, -- unused
11533 2 => False, -- unused
11534 3 => False, -- unused
11535 4 => False, -- SCIL_Entity (Node4-Sem)
11536 5 => False), -- unused
11537
11538 N_SCIL_Dispatching_Call =>
11539 (1 => False, -- unused
11540 2 => False, -- SCIL_Target_Prim (Node2-Sem)
11541 3 => False, -- unused
11542 4 => False, -- SCIL_Entity (Node4-Sem)
11543 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
11544
11545 N_SCIL_Membership_Test =>
11546 (1 => False, -- unused
11547 2 => False, -- unused
11548 3 => False, -- unused
11549 4 => False, -- SCIL_Entity (Node4-Sem)
11550 5 => False), -- SCIL_Tag_Value (Node5-Sem)
11551
11552 -- Entries for Empty, Error and Unused. Even thought these have a Chars
11553 -- field for debugging purposes, they are not really syntactic fields, so
11554 -- we mark all fields as unused.
11555
11556 N_Empty =>
11557 (1 => False, -- unused
11558 2 => False, -- unused
11559 3 => False, -- unused
11560 4 => False, -- unused
11561 5 => False), -- unused
11562
11563 N_Error =>
11564 (1 => False, -- unused
11565 2 => False, -- unused
11566 3 => False, -- unused
11567 4 => False, -- unused
11568 5 => False), -- unused
11569
11570 N_Unused_At_Start =>
11571 (1 => False, -- unused
11572 2 => False, -- unused
11573 3 => False, -- unused
11574 4 => False, -- unused
11575 5 => False), -- unused
11576
11577 N_Unused_At_End =>
11578 (1 => False, -- unused
11579 2 => False, -- unused
11580 3 => False, -- unused
11581 4 => False, -- unused
11582 5 => False)); -- unused
11583
11584 --------------------
11585 -- Inline Pragmas --
11586 --------------------
11587
11588 pragma Inline (ABE_Is_Certain);
11589 pragma Inline (Abort_Present);
11590 pragma Inline (Abortable_Part);
11591 pragma Inline (Abstract_Present);
11592 pragma Inline (Accept_Handler_Records);
11593 pragma Inline (Accept_Statement);
11594 pragma Inline (Access_Definition);
11595 pragma Inline (Access_To_Subprogram_Definition);
11596 pragma Inline (Access_Types_To_Process);
11597 pragma Inline (Actions);
11598 pragma Inline (Activation_Chain_Entity);
11599 pragma Inline (Acts_As_Spec);
11600 pragma Inline (Actual_Designated_Subtype);
11601 pragma Inline (Address_Warning_Posted);
11602 pragma Inline (Aggregate_Bounds);
11603 pragma Inline (Aliased_Present);
11604 pragma Inline (All_Others);
11605 pragma Inline (All_Present);
11606 pragma Inline (Alternatives);
11607 pragma Inline (Ancestor_Part);
11608 pragma Inline (Array_Aggregate);
11609 pragma Inline (Aspect_Cancel);
11610 pragma Inline (Aspect_Rep_Item);
11611 pragma Inline (Assignment_OK);
11612 pragma Inline (Associated_Node);
11613 pragma Inline (At_End_Proc);
11614 pragma Inline (Attribute_Name);
11615 pragma Inline (Aux_Decls_Node);
11616 pragma Inline (Backwards_OK);
11617 pragma Inline (Bad_Is_Detected);
11618 pragma Inline (Body_To_Inline);
11619 pragma Inline (Body_Required);
11620 pragma Inline (By_Ref);
11621 pragma Inline (Box_Present);
11622 pragma Inline (Char_Literal_Value);
11623 pragma Inline (Chars);
11624 pragma Inline (Check_Address_Alignment);
11625 pragma Inline (Choice_Parameter);
11626 pragma Inline (Choices);
11627 pragma Inline (Class_Present);
11628 pragma Inline (Coextensions);
11629 pragma Inline (Comes_From_Extended_Return_Statement);
11630 pragma Inline (Compile_Time_Known_Aggregate);
11631 pragma Inline (Component_Associations);
11632 pragma Inline (Component_Clauses);
11633 pragma Inline (Component_Definition);
11634 pragma Inline (Component_Items);
11635 pragma Inline (Component_List);
11636 pragma Inline (Component_Name);
11637 pragma Inline (Componentwise_Assignment);
11638 pragma Inline (Condition);
11639 pragma Inline (Condition_Actions);
11640 pragma Inline (Config_Pragmas);
11641 pragma Inline (Constant_Present);
11642 pragma Inline (Constraint);
11643 pragma Inline (Constraints);
11644 pragma Inline (Context_Installed);
11645 pragma Inline (Context_Items);
11646 pragma Inline (Context_Pending);
11647 pragma Inline (Controlling_Argument);
11648 pragma Inline (Conversion_OK);
11649 pragma Inline (Corresponding_Body);
11650 pragma Inline (Corresponding_Formal_Spec);
11651 pragma Inline (Corresponding_Generic_Association);
11652 pragma Inline (Corresponding_Integer_Value);
11653 pragma Inline (Corresponding_Spec);
11654 pragma Inline (Corresponding_Stub);
11655 pragma Inline (Dcheck_Function);
11656 pragma Inline (Debug_Statement);
11657 pragma Inline (Declarations);
11658 pragma Inline (Default_Expression);
11659 pragma Inline (Default_Storage_Pool);
11660 pragma Inline (Default_Name);
11661 pragma Inline (Defining_Identifier);
11662 pragma Inline (Defining_Unit_Name);
11663 pragma Inline (Delay_Alternative);
11664 pragma Inline (Delay_Statement);
11665 pragma Inline (Delta_Expression);
11666 pragma Inline (Digits_Expression);
11667 pragma Inline (Discr_Check_Funcs_Built);
11668 pragma Inline (Discrete_Choices);
11669 pragma Inline (Discrete_Range);
11670 pragma Inline (Discrete_Subtype_Definition);
11671 pragma Inline (Discrete_Subtype_Definitions);
11672 pragma Inline (Discriminant_Specifications);
11673 pragma Inline (Discriminant_Type);
11674 pragma Inline (Do_Accessibility_Check);
11675 pragma Inline (Do_Discriminant_Check);
11676 pragma Inline (Do_Length_Check);
11677 pragma Inline (Do_Division_Check);
11678 pragma Inline (Do_Overflow_Check);
11679 pragma Inline (Do_Range_Check);
11680 pragma Inline (Do_Storage_Check);
11681 pragma Inline (Do_Tag_Check);
11682 pragma Inline (Elaborate_Present);
11683 pragma Inline (Elaborate_All_Desirable);
11684 pragma Inline (Elaborate_All_Present);
11685 pragma Inline (Elaborate_Desirable);
11686 pragma Inline (Elaboration_Boolean);
11687 pragma Inline (Else_Actions);
11688 pragma Inline (Else_Statements);
11689 pragma Inline (Elsif_Parts);
11690 pragma Inline (Enclosing_Variant);
11691 pragma Inline (End_Label);
11692 pragma Inline (End_Span);
11693 pragma Inline (Entity);
11694 pragma Inline (Entity_Or_Associated_Node);
11695 pragma Inline (Entry_Body_Formal_Part);
11696 pragma Inline (Entry_Call_Alternative);
11697 pragma Inline (Entry_Call_Statement);
11698 pragma Inline (Entry_Direct_Name);
11699 pragma Inline (Entry_Index);
11700 pragma Inline (Entry_Index_Specification);
11701 pragma Inline (Etype);
11702 pragma Inline (Exception_Choices);
11703 pragma Inline (Exception_Handlers);
11704 pragma Inline (Exception_Junk);
11705 pragma Inline (Exception_Label);
11706 pragma Inline (Expansion_Delayed);
11707 pragma Inline (Explicit_Actual_Parameter);
11708 pragma Inline (Explicit_Generic_Actual_Parameter);
11709 pragma Inline (Expression);
11710 pragma Inline (Expressions);
11711 pragma Inline (First_Bit);
11712 pragma Inline (First_Inlined_Subprogram);
11713 pragma Inline (First_Name);
11714 pragma Inline (First_Named_Actual);
11715 pragma Inline (First_Real_Statement);
11716 pragma Inline (First_Subtype_Link);
11717 pragma Inline (Float_Truncate);
11718 pragma Inline (Formal_Type_Definition);
11719 pragma Inline (Forwards_OK);
11720 pragma Inline (From_Aspect_Specification);
11721 pragma Inline (From_At_End);
11722 pragma Inline (From_At_Mod);
11723 pragma Inline (From_Default);
11724 pragma Inline (Generic_Associations);
11725 pragma Inline (Generic_Formal_Declarations);
11726 pragma Inline (Generic_Parent);
11727 pragma Inline (Generic_Parent_Type);
11728 pragma Inline (Handled_Statement_Sequence);
11729 pragma Inline (Handler_List_Entry);
11730 pragma Inline (Has_Created_Identifier);
11731 pragma Inline (Has_Dynamic_Length_Check);
11732 pragma Inline (Has_Dynamic_Range_Check);
11733 pragma Inline (Has_Init_Expression);
11734 pragma Inline (Has_Local_Raise);
11735 pragma Inline (Has_Self_Reference);
11736 pragma Inline (Has_No_Elaboration_Code);
11737 pragma Inline (Has_Pragma_CPU);
11738 pragma Inline (Has_Pragma_Priority);
11739 pragma Inline (Has_Pragma_Suppress_All);
11740 pragma Inline (Has_Private_View);
11741 pragma Inline (Has_Relative_Deadline_Pragma);
11742 pragma Inline (Has_Storage_Size_Pragma);
11743 pragma Inline (Has_Task_Info_Pragma);
11744 pragma Inline (Has_Task_Name_Pragma);
11745 pragma Inline (Has_Wide_Character);
11746 pragma Inline (Has_Wide_Wide_Character);
11747 pragma Inline (Hidden_By_Use_Clause);
11748 pragma Inline (High_Bound);
11749 pragma Inline (Identifier);
11750 pragma Inline (Implicit_With);
11751 pragma Inline (Interface_List);
11752 pragma Inline (Interface_Present);
11753 pragma Inline (Includes_Infinities);
11754 pragma Inline (Import_Interface_Present);
11755 pragma Inline (In_Present);
11756 pragma Inline (Inherited_Discriminant);
11757 pragma Inline (Instance_Spec);
11758 pragma Inline (Intval);
11759 pragma Inline (Iterator_Specification);
11760 pragma Inline (Is_Accessibility_Actual);
11761 pragma Inline (Is_Asynchronous_Call_Block);
11762 pragma Inline (Is_Component_Left_Opnd);
11763 pragma Inline (Is_Component_Right_Opnd);
11764 pragma Inline (Is_Controlling_Actual);
11765 pragma Inline (Is_Delayed_Aspect);
11766 pragma Inline (Is_Dynamic_Coextension);
11767 pragma Inline (Is_Elsif);
11768 pragma Inline (Is_Entry_Barrier_Function);
11769 pragma Inline (Is_Expanded_Build_In_Place_Call);
11770 pragma Inline (Is_Folded_In_Parser);
11771 pragma Inline (Is_In_Discriminant_Check);
11772 pragma Inline (Is_Machine_Number);
11773 pragma Inline (Is_Null_Loop);
11774 pragma Inline (Is_Overloaded);
11775 pragma Inline (Is_Power_Of_2_For_Shift);
11776 pragma Inline (Is_Protected_Subprogram_Body);
11777 pragma Inline (Is_Static_Coextension);
11778 pragma Inline (Is_Static_Expression);
11779 pragma Inline (Is_Subprogram_Descriptor);
11780 pragma Inline (Is_Task_Allocation_Block);
11781 pragma Inline (Is_Task_Master);
11782 pragma Inline (Iteration_Scheme);
11783 pragma Inline (Itype);
11784 pragma Inline (Kill_Range_Check);
11785 pragma Inline (Last_Bit);
11786 pragma Inline (Last_Name);
11787 pragma Inline (Library_Unit);
11788 pragma Inline (Label_Construct);
11789 pragma Inline (Left_Opnd);
11790 pragma Inline (Limited_View_Installed);
11791 pragma Inline (Limited_Present);
11792 pragma Inline (Literals);
11793 pragma Inline (Local_Raise_Not_OK);
11794 pragma Inline (Local_Raise_Statements);
11795 pragma Inline (Loop_Actions);
11796 pragma Inline (Loop_Parameter_Specification);
11797 pragma Inline (Low_Bound);
11798 pragma Inline (Mod_Clause);
11799 pragma Inline (More_Ids);
11800 pragma Inline (Must_Be_Byte_Aligned);
11801 pragma Inline (Must_Not_Freeze);
11802 pragma Inline (Must_Not_Override);
11803 pragma Inline (Must_Override);
11804 pragma Inline (Name);
11805 pragma Inline (Names);
11806 pragma Inline (Next_Entity);
11807 pragma Inline (Next_Exit_Statement);
11808 pragma Inline (Next_Implicit_With);
11809 pragma Inline (Next_Named_Actual);
11810 pragma Inline (Next_Pragma);
11811 pragma Inline (Next_Rep_Item);
11812 pragma Inline (Next_Use_Clause);
11813 pragma Inline (No_Ctrl_Actions);
11814 pragma Inline (No_Elaboration_Check);
11815 pragma Inline (No_Entities_Ref_In_Spec);
11816 pragma Inline (No_Initialization);
11817 pragma Inline (No_Truncation);
11818 pragma Inline (Null_Present);
11819 pragma Inline (Null_Exclusion_Present);
11820 pragma Inline (Null_Exclusion_In_Return_Present);
11821 pragma Inline (Null_Record_Present);
11822 pragma Inline (Object_Definition);
11823 pragma Inline (Of_Present);
11824 pragma Inline (Original_Discriminant);
11825 pragma Inline (Original_Entity);
11826 pragma Inline (Others_Discrete_Choices);
11827 pragma Inline (Out_Present);
11828 pragma Inline (Parameter_Associations);
11829 pragma Inline (Parameter_Specifications);
11830 pragma Inline (Parameter_List_Truncated);
11831 pragma Inline (Parameter_Type);
11832 pragma Inline (Parent_Spec);
11833 pragma Inline (Position);
11834 pragma Inline (Pragma_Argument_Associations);
11835 pragma Inline (Pragma_Enabled);
11836 pragma Inline (Pragma_Identifier);
11837 pragma Inline (Pragmas_After);
11838 pragma Inline (Pragmas_Before);
11839 pragma Inline (Prefix);
11840 pragma Inline (Present_Expr);
11841 pragma Inline (Prev_Ids);
11842 pragma Inline (Print_In_Hex);
11843 pragma Inline (Private_Declarations);
11844 pragma Inline (Private_Present);
11845 pragma Inline (Procedure_To_Call);
11846 pragma Inline (Proper_Body);
11847 pragma Inline (Protected_Definition);
11848 pragma Inline (Protected_Present);
11849 pragma Inline (Raises_Constraint_Error);
11850 pragma Inline (Range_Constraint);
11851 pragma Inline (Range_Expression);
11852 pragma Inline (Real_Range_Specification);
11853 pragma Inline (Realval);
11854 pragma Inline (Reason);
11855 pragma Inline (Record_Extension_Part);
11856 pragma Inline (Redundant_Use);
11857 pragma Inline (Renaming_Exception);
11858 pragma Inline (Result_Definition);
11859 pragma Inline (Return_Object_Declarations);
11860 pragma Inline (Return_Statement_Entity);
11861 pragma Inline (Reverse_Present);
11862 pragma Inline (Right_Opnd);
11863 pragma Inline (Rounded_Result);
11864 pragma Inline (SCIL_Controlling_Tag);
11865 pragma Inline (SCIL_Entity);
11866 pragma Inline (SCIL_Tag_Value);
11867 pragma Inline (SCIL_Target_Prim);
11868 pragma Inline (Scope);
11869 pragma Inline (Select_Alternatives);
11870 pragma Inline (Selector_Name);
11871 pragma Inline (Selector_Names);
11872 pragma Inline (Shift_Count_OK);
11873 pragma Inline (Source_Type);
11874 pragma Inline (Specification);
11875 pragma Inline (Split_PPC);
11876 pragma Inline (Statements);
11877 pragma Inline (Static_Processing_OK);
11878 pragma Inline (Storage_Pool);
11879 pragma Inline (Strval);
11880 pragma Inline (Subtype_Indication);
11881 pragma Inline (Subtype_Mark);
11882 pragma Inline (Subtype_Marks);
11883 pragma Inline (Suppress_Loop_Warnings);
11884 pragma Inline (Synchronized_Present);
11885 pragma Inline (Tagged_Present);
11886 pragma Inline (Target_Type);
11887 pragma Inline (Task_Definition);
11888 pragma Inline (Task_Present);
11889 pragma Inline (Then_Actions);
11890 pragma Inline (Then_Statements);
11891 pragma Inline (Triggering_Alternative);
11892 pragma Inline (Triggering_Statement);
11893 pragma Inline (Treat_Fixed_As_Integer);
11894 pragma Inline (TSS_Elist);
11895 pragma Inline (Type_Definition);
11896 pragma Inline (Unit);
11897 pragma Inline (Unknown_Discriminants_Present);
11898 pragma Inline (Unreferenced_In_Spec);
11899 pragma Inline (Variant_Part);
11900 pragma Inline (Variants);
11901 pragma Inline (Visible_Declarations);
11902 pragma Inline (Was_Originally_Stub);
11903 pragma Inline (Withed_Body);
11904 pragma Inline (Zero_Cost_Handling);
11905
11906 pragma Inline (Set_ABE_Is_Certain);
11907 pragma Inline (Set_Abort_Present);
11908 pragma Inline (Set_Abortable_Part);
11909 pragma Inline (Set_Abstract_Present);
11910 pragma Inline (Set_Accept_Handler_Records);
11911 pragma Inline (Set_Accept_Statement);
11912 pragma Inline (Set_Access_Definition);
11913 pragma Inline (Set_Access_To_Subprogram_Definition);
11914 pragma Inline (Set_Access_Types_To_Process);
11915 pragma Inline (Set_Actions);
11916 pragma Inline (Set_Activation_Chain_Entity);
11917 pragma Inline (Set_Acts_As_Spec);
11918 pragma Inline (Set_Actual_Designated_Subtype);
11919 pragma Inline (Set_Address_Warning_Posted);
11920 pragma Inline (Set_Aggregate_Bounds);
11921 pragma Inline (Set_Aliased_Present);
11922 pragma Inline (Set_All_Others);
11923 pragma Inline (Set_All_Present);
11924 pragma Inline (Set_Alternatives);
11925 pragma Inline (Set_Ancestor_Part);
11926 pragma Inline (Set_Array_Aggregate);
11927 pragma Inline (Set_Aspect_Cancel);
11928 pragma Inline (Set_Aspect_Rep_Item);
11929 pragma Inline (Set_Assignment_OK);
11930 pragma Inline (Set_Associated_Node);
11931 pragma Inline (Set_At_End_Proc);
11932 pragma Inline (Set_Attribute_Name);
11933 pragma Inline (Set_Aux_Decls_Node);
11934 pragma Inline (Set_Backwards_OK);
11935 pragma Inline (Set_Bad_Is_Detected);
11936 pragma Inline (Set_Body_To_Inline);
11937 pragma Inline (Set_Body_Required);
11938 pragma Inline (Set_By_Ref);
11939 pragma Inline (Set_Box_Present);
11940 pragma Inline (Set_Char_Literal_Value);
11941 pragma Inline (Set_Chars);
11942 pragma Inline (Set_Check_Address_Alignment);
11943 pragma Inline (Set_Choice_Parameter);
11944 pragma Inline (Set_Choices);
11945 pragma Inline (Set_Class_Present);
11946 pragma Inline (Set_Coextensions);
11947 pragma Inline (Set_Comes_From_Extended_Return_Statement);
11948 pragma Inline (Set_Compile_Time_Known_Aggregate);
11949 pragma Inline (Set_Component_Associations);
11950 pragma Inline (Set_Component_Clauses);
11951 pragma Inline (Set_Component_Definition);
11952 pragma Inline (Set_Component_Items);
11953 pragma Inline (Set_Component_List);
11954 pragma Inline (Set_Component_Name);
11955 pragma Inline (Set_Componentwise_Assignment);
11956 pragma Inline (Set_Condition);
11957 pragma Inline (Set_Condition_Actions);
11958 pragma Inline (Set_Config_Pragmas);
11959 pragma Inline (Set_Constant_Present);
11960 pragma Inline (Set_Constraint);
11961 pragma Inline (Set_Constraints);
11962 pragma Inline (Set_Context_Installed);
11963 pragma Inline (Set_Context_Items);
11964 pragma Inline (Set_Context_Pending);
11965 pragma Inline (Set_Controlling_Argument);
11966 pragma Inline (Set_Conversion_OK);
11967 pragma Inline (Set_Corresponding_Body);
11968 pragma Inline (Set_Corresponding_Formal_Spec);
11969 pragma Inline (Set_Corresponding_Generic_Association);
11970 pragma Inline (Set_Corresponding_Integer_Value);
11971 pragma Inline (Set_Corresponding_Spec);
11972 pragma Inline (Set_Corresponding_Stub);
11973 pragma Inline (Set_Dcheck_Function);
11974 pragma Inline (Set_Debug_Statement);
11975 pragma Inline (Set_Declarations);
11976 pragma Inline (Set_Default_Expression);
11977 pragma Inline (Set_Default_Storage_Pool);
11978 pragma Inline (Set_Default_Name);
11979 pragma Inline (Set_Defining_Identifier);
11980 pragma Inline (Set_Defining_Unit_Name);
11981 pragma Inline (Set_Delay_Alternative);
11982 pragma Inline (Set_Delay_Statement);
11983 pragma Inline (Set_Delta_Expression);
11984 pragma Inline (Set_Digits_Expression);
11985 pragma Inline (Set_Discr_Check_Funcs_Built);
11986 pragma Inline (Set_Discrete_Choices);
11987 pragma Inline (Set_Discrete_Range);
11988 pragma Inline (Set_Discrete_Subtype_Definition);
11989 pragma Inline (Set_Discrete_Subtype_Definitions);
11990 pragma Inline (Set_Discriminant_Specifications);
11991 pragma Inline (Set_Discriminant_Type);
11992 pragma Inline (Set_Do_Accessibility_Check);
11993 pragma Inline (Set_Do_Discriminant_Check);
11994 pragma Inline (Set_Do_Length_Check);
11995 pragma Inline (Set_Do_Division_Check);
11996 pragma Inline (Set_Do_Overflow_Check);
11997 pragma Inline (Set_Do_Range_Check);
11998 pragma Inline (Set_Do_Storage_Check);
11999 pragma Inline (Set_Do_Tag_Check);
12000 pragma Inline (Set_Elaborate_Present);
12001 pragma Inline (Set_Elaborate_All_Desirable);
12002 pragma Inline (Set_Elaborate_All_Present);
12003 pragma Inline (Set_Elaborate_Desirable);
12004 pragma Inline (Set_Elaboration_Boolean);
12005 pragma Inline (Set_Else_Actions);
12006 pragma Inline (Set_Else_Statements);
12007 pragma Inline (Set_Elsif_Parts);
12008 pragma Inline (Set_Enclosing_Variant);
12009 pragma Inline (Set_End_Label);
12010 pragma Inline (Set_End_Span);
12011 pragma Inline (Set_Entity);
12012 pragma Inline (Set_Entry_Body_Formal_Part);
12013 pragma Inline (Set_Entry_Call_Alternative);
12014 pragma Inline (Set_Entry_Call_Statement);
12015 pragma Inline (Set_Entry_Direct_Name);
12016 pragma Inline (Set_Entry_Index);
12017 pragma Inline (Set_Entry_Index_Specification);
12018 pragma Inline (Set_Etype);
12019 pragma Inline (Set_Exception_Choices);
12020 pragma Inline (Set_Exception_Handlers);
12021 pragma Inline (Set_Exception_Junk);
12022 pragma Inline (Set_Exception_Label);
12023 pragma Inline (Set_Expansion_Delayed);
12024 pragma Inline (Set_Explicit_Actual_Parameter);
12025 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
12026 pragma Inline (Set_Expression);
12027 pragma Inline (Set_Expressions);
12028 pragma Inline (Set_First_Bit);
12029 pragma Inline (Set_First_Inlined_Subprogram);
12030 pragma Inline (Set_First_Name);
12031 pragma Inline (Set_First_Named_Actual);
12032 pragma Inline (Set_First_Real_Statement);
12033 pragma Inline (Set_First_Subtype_Link);
12034 pragma Inline (Set_Float_Truncate);
12035 pragma Inline (Set_Formal_Type_Definition);
12036 pragma Inline (Set_Forwards_OK);
12037 pragma Inline (Set_From_Aspect_Specification);
12038 pragma Inline (Set_From_At_End);
12039 pragma Inline (Set_From_At_Mod);
12040 pragma Inline (Set_From_Default);
12041 pragma Inline (Set_Generic_Associations);
12042 pragma Inline (Set_Generic_Formal_Declarations);
12043 pragma Inline (Set_Generic_Parent);
12044 pragma Inline (Set_Generic_Parent_Type);
12045 pragma Inline (Set_Handled_Statement_Sequence);
12046 pragma Inline (Set_Handler_List_Entry);
12047 pragma Inline (Set_Has_Created_Identifier);
12048 pragma Inline (Set_Has_Dynamic_Length_Check);
12049 pragma Inline (Set_Has_Init_Expression);
12050 pragma Inline (Set_Has_Local_Raise);
12051 pragma Inline (Set_Has_Dynamic_Range_Check);
12052 pragma Inline (Set_Has_No_Elaboration_Code);
12053 pragma Inline (Set_Has_Pragma_CPU);
12054 pragma Inline (Set_Has_Pragma_Priority);
12055 pragma Inline (Set_Has_Pragma_Suppress_All);
12056 pragma Inline (Set_Has_Private_View);
12057 pragma Inline (Set_Has_Relative_Deadline_Pragma);
12058 pragma Inline (Set_Has_Storage_Size_Pragma);
12059 pragma Inline (Set_Has_Task_Info_Pragma);
12060 pragma Inline (Set_Has_Task_Name_Pragma);
12061 pragma Inline (Set_Has_Wide_Character);
12062 pragma Inline (Set_Has_Wide_Wide_Character);
12063 pragma Inline (Set_Hidden_By_Use_Clause);
12064 pragma Inline (Set_High_Bound);
12065 pragma Inline (Set_Identifier);
12066 pragma Inline (Set_Implicit_With);
12067 pragma Inline (Set_Includes_Infinities);
12068 pragma Inline (Set_Interface_List);
12069 pragma Inline (Set_Interface_Present);
12070 pragma Inline (Set_Import_Interface_Present);
12071 pragma Inline (Set_In_Present);
12072 pragma Inline (Set_Inherited_Discriminant);
12073 pragma Inline (Set_Instance_Spec);
12074 pragma Inline (Set_Intval);
12075 pragma Inline (Set_Iterator_Specification);
12076 pragma Inline (Set_Is_Accessibility_Actual);
12077 pragma Inline (Set_Is_Asynchronous_Call_Block);
12078 pragma Inline (Set_Is_Component_Left_Opnd);
12079 pragma Inline (Set_Is_Component_Right_Opnd);
12080 pragma Inline (Set_Is_Controlling_Actual);
12081 pragma Inline (Set_Is_Delayed_Aspect);
12082 pragma Inline (Set_Is_Dynamic_Coextension);
12083 pragma Inline (Set_Is_Elsif);
12084 pragma Inline (Set_Is_Entry_Barrier_Function);
12085 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
12086 pragma Inline (Set_Is_Folded_In_Parser);
12087 pragma Inline (Set_Is_In_Discriminant_Check);
12088 pragma Inline (Set_Is_Machine_Number);
12089 pragma Inline (Set_Is_Null_Loop);
12090 pragma Inline (Set_Is_Overloaded);
12091 pragma Inline (Set_Is_Power_Of_2_For_Shift);
12092 pragma Inline (Set_Is_Protected_Subprogram_Body);
12093 pragma Inline (Set_Has_Self_Reference);
12094 pragma Inline (Set_Is_Static_Coextension);
12095 pragma Inline (Set_Is_Static_Expression);
12096 pragma Inline (Set_Is_Subprogram_Descriptor);
12097 pragma Inline (Set_Is_Task_Allocation_Block);
12098 pragma Inline (Set_Is_Task_Master);
12099 pragma Inline (Set_Iteration_Scheme);
12100 pragma Inline (Set_Itype);
12101 pragma Inline (Set_Kill_Range_Check);
12102 pragma Inline (Set_Last_Bit);
12103 pragma Inline (Set_Last_Name);
12104 pragma Inline (Set_Library_Unit);
12105 pragma Inline (Set_Label_Construct);
12106 pragma Inline (Set_Left_Opnd);
12107 pragma Inline (Set_Limited_View_Installed);
12108 pragma Inline (Set_Limited_Present);
12109 pragma Inline (Set_Literals);
12110 pragma Inline (Set_Local_Raise_Not_OK);
12111 pragma Inline (Set_Local_Raise_Statements);
12112 pragma Inline (Set_Loop_Actions);
12113 pragma Inline (Set_Loop_Parameter_Specification);
12114 pragma Inline (Set_Low_Bound);
12115 pragma Inline (Set_Mod_Clause);
12116 pragma Inline (Set_More_Ids);
12117 pragma Inline (Set_Must_Be_Byte_Aligned);
12118 pragma Inline (Set_Must_Not_Freeze);
12119 pragma Inline (Set_Must_Not_Override);
12120 pragma Inline (Set_Must_Override);
12121 pragma Inline (Set_Name);
12122 pragma Inline (Set_Names);
12123 pragma Inline (Set_Next_Entity);
12124 pragma Inline (Set_Next_Exit_Statement);
12125 pragma Inline (Set_Next_Implicit_With);
12126 pragma Inline (Set_Next_Named_Actual);
12127 pragma Inline (Set_Next_Pragma);
12128 pragma Inline (Set_Next_Rep_Item);
12129 pragma Inline (Set_Next_Use_Clause);
12130 pragma Inline (Set_No_Ctrl_Actions);
12131 pragma Inline (Set_No_Elaboration_Check);
12132 pragma Inline (Set_No_Entities_Ref_In_Spec);
12133 pragma Inline (Set_No_Initialization);
12134 pragma Inline (Set_No_Truncation);
12135 pragma Inline (Set_Null_Present);
12136 pragma Inline (Set_Null_Exclusion_Present);
12137 pragma Inline (Set_Null_Exclusion_In_Return_Present);
12138 pragma Inline (Set_Null_Record_Present);
12139 pragma Inline (Set_Object_Definition);
12140 pragma Inline (Set_Of_Present);
12141 pragma Inline (Set_Original_Discriminant);
12142 pragma Inline (Set_Original_Entity);
12143 pragma Inline (Set_Others_Discrete_Choices);
12144 pragma Inline (Set_Out_Present);
12145 pragma Inline (Set_Parameter_Associations);
12146 pragma Inline (Set_Parameter_Specifications);
12147 pragma Inline (Set_Parameter_List_Truncated);
12148 pragma Inline (Set_Parameter_Type);
12149 pragma Inline (Set_Parent_Spec);
12150 pragma Inline (Set_Position);
12151 pragma Inline (Set_Pragma_Argument_Associations);
12152 pragma Inline (Set_Pragma_Enabled);
12153 pragma Inline (Set_Pragma_Identifier);
12154 pragma Inline (Set_Pragmas_After);
12155 pragma Inline (Set_Pragmas_Before);
12156 pragma Inline (Set_Prefix);
12157 pragma Inline (Set_Present_Expr);
12158 pragma Inline (Set_Prev_Ids);
12159 pragma Inline (Set_Print_In_Hex);
12160 pragma Inline (Set_Private_Declarations);
12161 pragma Inline (Set_Private_Present);
12162 pragma Inline (Set_Procedure_To_Call);
12163 pragma Inline (Set_Proper_Body);
12164 pragma Inline (Set_Protected_Definition);
12165 pragma Inline (Set_Protected_Present);
12166 pragma Inline (Set_Raises_Constraint_Error);
12167 pragma Inline (Set_Range_Constraint);
12168 pragma Inline (Set_Range_Expression);
12169 pragma Inline (Set_Real_Range_Specification);
12170 pragma Inline (Set_Realval);
12171 pragma Inline (Set_Reason);
12172 pragma Inline (Set_Record_Extension_Part);
12173 pragma Inline (Set_Redundant_Use);
12174 pragma Inline (Set_Renaming_Exception);
12175 pragma Inline (Set_Result_Definition);
12176 pragma Inline (Set_Return_Object_Declarations);
12177 pragma Inline (Set_Reverse_Present);
12178 pragma Inline (Set_Right_Opnd);
12179 pragma Inline (Set_Rounded_Result);
12180 pragma Inline (Set_SCIL_Controlling_Tag);
12181 pragma Inline (Set_SCIL_Entity);
12182 pragma Inline (Set_SCIL_Tag_Value);
12183 pragma Inline (Set_SCIL_Target_Prim);
12184 pragma Inline (Set_Scope);
12185 pragma Inline (Set_Select_Alternatives);
12186 pragma Inline (Set_Selector_Name);
12187 pragma Inline (Set_Selector_Names);
12188 pragma Inline (Set_Shift_Count_OK);
12189 pragma Inline (Set_Source_Type);
12190 pragma Inline (Set_Specification);
12191 pragma Inline (Set_Split_PPC);
12192 pragma Inline (Set_Statements);
12193 pragma Inline (Set_Static_Processing_OK);
12194 pragma Inline (Set_Storage_Pool);
12195 pragma Inline (Set_Strval);
12196 pragma Inline (Set_Subtype_Indication);
12197 pragma Inline (Set_Subtype_Mark);
12198 pragma Inline (Set_Subtype_Marks);
12199 pragma Inline (Set_Suppress_Loop_Warnings);
12200 pragma Inline (Set_Synchronized_Present);
12201 pragma Inline (Set_Tagged_Present);
12202 pragma Inline (Set_Target_Type);
12203 pragma Inline (Set_Task_Definition);
12204 pragma Inline (Set_Task_Present);
12205 pragma Inline (Set_Then_Actions);
12206 pragma Inline (Set_Then_Statements);
12207 pragma Inline (Set_Triggering_Alternative);
12208 pragma Inline (Set_Triggering_Statement);
12209 pragma Inline (Set_Treat_Fixed_As_Integer);
12210 pragma Inline (Set_TSS_Elist);
12211 pragma Inline (Set_Type_Definition);
12212 pragma Inline (Set_Unit);
12213 pragma Inline (Set_Unknown_Discriminants_Present);
12214 pragma Inline (Set_Unreferenced_In_Spec);
12215 pragma Inline (Set_Variant_Part);
12216 pragma Inline (Set_Variants);
12217 pragma Inline (Set_Visible_Declarations);
12218 pragma Inline (Set_Was_Originally_Stub);
12219 pragma Inline (Set_Withed_Body);
12220 pragma Inline (Set_Zero_Cost_Handling);
12221
12222 N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
12223 -- Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
12224 -- should refer to N_Simple_Return_Statement.
12225
12226 end Sinfo;