]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ada/sinfo.ads
56c774500e6c865565c5f5d6a1933d71645bdb48
[thirdparty/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-2016, 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 -- Add an entry in Is_Syntactic_Field
90 -- In the body (sinfo), add entries to the access functions for all
91 -- its fields (except standard expression fields) to include the new
92 -- node in the checks.
93 -- Add an appropriate section to the case statement in sprint.adb
94 -- Add an appropriate section to the case statement in sem.adb
95 -- Add an appropriate section to the case statement in exp_util.adb
96 -- (Insert_Actions procedure)
97 -- For a subexpression, add an appropriate section to the case
98 -- statement in sem_eval.adb
99 -- For a subexpression, add an appropriate section to the case
100 -- statement in sem_res.adb
101
102 -- All back ends must be made aware of the new node kind.
103
104 -- Finally, four utility programs must be run:
105
106 -- (Optional.) Run CSinfo to check that you have made the changes
107 -- consistently. It checks most of the rules given above. This utility
108 -- reads sinfo.ads and sinfo.adb and generates a report to standard
109 -- output. This step is optional because XSinfo runs CSinfo.
110
111 -- Run XSinfo to create sinfo.h, the corresponding C header. This
112 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
113 -- not need to read sinfo.adb, since the contents of the body are
114 -- algorithmically determinable from the spec.
115
116 -- Run XTreeprs to create treeprs.ads, an updated version of the module
117 -- that is used to drive the tree print routine. This utility reads (but
118 -- does not modify) treeprs.adt, the template that provides the basic
119 -- structure of the file, and then fills in the data from the comments
120 -- in sinfo.ads.
121
122 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
123 -- spec of the Nmake package which contains functions for constructing
124 -- nodes.
125
126 -- The above steps are done automatically by the build scripts when you do
127 -- a full bootstrap.
128
129 -- Note: sometime we could write a utility that actually generated the body
130 -- of sinfo from the spec instead of simply checking it, since, as noted
131 -- above, the contents of the body can be determined from the spec.
132
133 --------------------------------
134 -- Implicit Nodes in the Tree --
135 --------------------------------
136
137 -- Generally the structure of the tree very closely follows the grammar as
138 -- defined in the RM. However, certain nodes are omitted to save space and
139 -- simplify semantic processing. Two general classes of such omitted nodes
140 -- are as follows:
141
142 -- If the only possibilities for a non-terminal are one or more other
143 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
144 -- corresponding node is omitted from the tree, and the target construct
145 -- appears directly. For example, a real type definition is either
146 -- floating point definition or a fixed point definition. No explicit node
147 -- appears for real type definition. Instead either the floating point
148 -- definition or fixed point definition appears directly.
149
150 -- If a non-terminal corresponds to a list of some other non-terminal
151 -- (possibly with separating punctuation), then usually it is omitted from
152 -- the tree, and a list of components appears instead. For example,
153 -- sequence of statements does not appear explicitly in the tree. Instead
154 -- a list of statements appears directly.
155
156 -- Some additional cases of omitted nodes occur and are documented
157 -- individually. In particular, many nodes are omitted in the tree
158 -- generated for an expression.
159
160 -------------------------------------------
161 -- Handling of Defining Identifier Lists --
162 -------------------------------------------
163
164 -- In several declarative forms in the syntax, lists of defining
165 -- identifiers appear (object declarations, component declarations, number
166 -- declarations etc.)
167
168 -- The semantics of such statements are equivalent to a series of identical
169 -- declarations of single defining identifiers (except that conformance
170 -- checks require the same grouping of identifiers in the parameter case).
171
172 -- To simplify semantic processing, the parser breaks down such multiple
173 -- declaration cases into sequences of single declarations, duplicating
174 -- type and initialization information as required. The flags More_Ids and
175 -- Prev_Ids are used to record the original form of the source in the case
176 -- where the original source used a list of names, More_Ids being set on
177 -- all but the last name and Prev_Ids being set on all but the first name.
178 -- These flags are used to reconstruct the original source (e.g. in the
179 -- Sprint package), and also are included in the conformance checks, but
180 -- otherwise have no semantic significance.
181
182 -- Note: the reason that we use More_Ids and Prev_Ids rather than
183 -- First_Name and Last_Name flags is so that the flags are off in the
184 -- normal one identifier case, which minimizes tree print output.
185
186 -----------------------
187 -- Use of Node Lists --
188 -----------------------
189
190 -- With a few exceptions, if a construction of the form {non-terminal}
191 -- appears in the tree, lists are used in the corresponding tree node (see
192 -- package Nlists for handling of node lists). In this case a field of the
193 -- parent node points to a list of nodes for the non-terminal. The field
194 -- name for such fields has a plural name which always ends in "s". For
195 -- example, a case statement has a field Alternatives pointing to list of
196 -- case statement alternative nodes.
197
198 -- Only fields pointing to lists have names ending in "s", so generally the
199 -- structure is strongly typed, fields not ending in s point to single
200 -- nodes, and fields ending in s point to lists.
201
202 -- The following example shows how a traversal of a list is written. We
203 -- suppose here that Stmt points to a N_Case_Statement node which has a
204 -- list field called Alternatives:
205
206 -- Alt := First (Alternatives (Stmt));
207 -- while Present (Alt) loop
208 -- ..
209 -- -- processing for case statement alternative Alt
210 -- ..
211 -- Alt := Next (Alt);
212 -- end loop;
213
214 -- The Present function tests for Empty, which in this case signals the end
215 -- of the list. First returns Empty immediately if the list is empty.
216 -- Present is defined in Atree, First and Next are defined in Nlists.
217
218 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
219 -- contexts, which is handled as described in the previous section, and
220 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
221 -- using the First_Name and Last_Name flags, as further detailed in the
222 -- description of the N_With_Clause node.
223
224 -------------
225 -- Pragmas --
226 -------------
227
228 -- Pragmas can appear in many different context, but are not included in
229 -- the grammar. Still they must appear in the tree, so they can be properly
230 -- processed.
231
232 -- Two approaches are used. In some cases, an extra field is defined in an
233 -- appropriate node that contains a list of pragmas appearing in the
234 -- expected context. For example pragmas can appear before an
235 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
236 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
237
238 -- The other approach is to simply allow pragmas to appear in syntactic
239 -- lists where the grammar (of course) does not include the possibility.
240 -- For example, the Variants field of an N_Variant_Part node points to a
241 -- list that can contain both N_Pragma and N_Variant nodes.
242
243 -- To make processing easier in the latter case, the Nlists package
244 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
245 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
246 -- ignoring all pragmas.
247
248 -- In the case of the variants list, we can either write:
249
250 -- Variant := First (Variants (N));
251 -- while Present (Variant) loop
252 -- ...
253 -- Variant := Next (Variant);
254 -- end loop;
255
256 -- or
257
258 -- Variant := First_Non_Pragma (Variants (N));
259 -- while Present (Variant) loop
260 -- ...
261 -- Variant := Next_Non_Pragma (Variant);
262 -- end loop;
263
264 -- In the first form of the loop, Variant can either be an N_Pragma or an
265 -- N_Variant node. In the second form, Variant can only be N_Variant since
266 -- all pragmas are skipped.
267
268 ---------------------
269 -- Optional Fields --
270 ---------------------
271
272 -- Fields which correspond to a section of the syntax enclosed in square
273 -- brackets are generally omitted (and the corresponding field set to Empty
274 -- for a node, or No_List for a list). The documentation of such fields
275 -- notes these cases. One exception to this rule occurs in the case of
276 -- possibly empty statement sequences (such as the sequence of statements
277 -- in an entry call alternative). Such cases appear in the syntax rules as
278 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
279 -- statement sequences always contain an empty list (not No_List) if no
280 -- statements are present.
281
282 -- Note: the utility program that constructs the body and spec of the Nmake
283 -- package relies on the format of the comments to determine if a field
284 -- should have a default value in the corresponding make routine. The rule
285 -- is that if the first line of the description of the field contains the
286 -- string "(set to xxx if", then a default value of xxx is provided for
287 -- this field in the corresponding Make_yyy routine.
288
289 -----------------------------------
290 -- Note on Body/Spec Terminology --
291 -----------------------------------
292
293 -- In informal discussions about Ada, it is customary to refer to package
294 -- and subprogram specs and bodies. However, this is not technically
295 -- correct, what is normally referred to as a spec or specification is in
296 -- fact a package declaration or subprogram declaration. We are careful in
297 -- GNAT to use the correct terminology and in particular, the full word
298 -- specification is never used as an incorrect substitute for declaration.
299 -- The structure and terminology used in the tree also reflects the grammar
300 -- and thus uses declaration and specification in the technically correct
301 -- manner.
302
303 -- However, there are contexts in which the informal terminology is useful.
304 -- We have the word "body" to refer to the Interp_Etype declared by the
305 -- declaration of a unit body, and in some contexts we need similar term to
306 -- refer to the entity declared by the package or subprogram declaration,
307 -- and simply using declaration can be confusing since the body also has a
308 -- declaration.
309
310 -- An example of such a context is the link between the package body and
311 -- its declaration. With_Declaration is confusing, since the package body
312 -- itself is a declaration.
313
314 -- To deal with this problem, we reserve the informal term Spec, i.e. the
315 -- popular abbreviation used in this context, to refer to the entity
316 -- declared by the package or subprogram declaration. So in the above
317 -- example case, the field in the body is called With_Spec.
318
319 -- Another important context for the use of the word Spec is in error
320 -- messages, where a hyper-correct use of declaration would be confusing to
321 -- a typical Ada programmer, and even for an expert programmer can cause
322 -- confusion since the body has a declaration as well.
323
324 -- So, to summarize:
325
326 -- Declaration always refers to the syntactic entity that is called
327 -- a declaration. In particular, subprogram declaration
328 -- and package declaration are used to describe the
329 -- syntactic entity that includes the semicolon.
330
331 -- Specification always refers to the syntactic entity that is called
332 -- a specification. In particular, the terms procedure
333 -- specification, function specification, package
334 -- specification, subprogram specification always refer
335 -- to the syntactic entity that has no semicolon.
336
337 -- Spec is an informal term, used to refer to the entity
338 -- that is declared by a task declaration, protected
339 -- declaration, generic declaration, subprogram
340 -- declaration or package declaration.
341
342 -- This convention is followed throughout the GNAT documentation
343 -- both internal and external, and in all error message text.
344
345 ------------------------
346 -- Internal Use Nodes --
347 ------------------------
348
349 -- These are Node_Kind settings used in the internal implementation which
350 -- are not logically part of the specification.
351
352 -- N_Unused_At_Start
353 -- Completely unused entry at the start of the enumeration type. This
354 -- is inserted so that no legitimate value is zero, which helps to get
355 -- better debugging behavior, since zero is a likely uninitialized value).
356
357 -- N_Unused_At_End
358 -- Completely unused entry at the end of the enumeration type. This is
359 -- handy so that arrays with Node_Kind as the index type have an extra
360 -- entry at the end (see for example the use of the Pchar_Pos_Array in
361 -- Treepr, where the extra entry provides the limit value when dealing with
362 -- the last used entry in the array).
363
364 -----------------------------------------
365 -- Note on the settings of Sloc fields --
366 -----------------------------------------
367
368 -- The Sloc field of nodes that come from the source is set by the parser.
369 -- For internal nodes, and nodes generated during expansion the Sloc is
370 -- usually set in the call to the constructor for the node. In general the
371 -- Sloc value chosen for an internal node is the Sloc of the source node
372 -- whose processing is responsible for the expansion. For example, the Sloc
373 -- of an inherited primitive operation is the Sloc of the corresponding
374 -- derived type declaration.
375
376 -- For the nodes of a generic instantiation, the Sloc value is encoded to
377 -- represent both the original Sloc in the generic unit, and the Sloc of
378 -- the instantiation itself. See Sinput.ads for details.
379
380 -- Subprogram instances create two callable entities: one is the visible
381 -- subprogram instance, and the other is an anonymous subprogram nested
382 -- within a wrapper package that contains the renamings for the actuals.
383 -- Both of these entities have the Sloc of the defining entity in the
384 -- instantiation node. This simplifies some ASIS queries.
385
386 -----------------------
387 -- Field Definitions --
388 -----------------------
389
390 -- In the following node definitions, all fields, both syntactic and
391 -- semantic, are documented. The one exception is in the case of entities
392 -- (defining identifiers, character literals and operator symbols), where
393 -- the usage of the fields depends on the entity kind. Entity fields are
394 -- fully documented in the separate package Einfo.
395
396 -- In the node definitions, three common sets of fields are abbreviated to
397 -- save both space in the documentation, and also space in the string
398 -- (defined in Tree_Print_Strings) used to print trees. The following
399 -- abbreviations are used:
400
401 -- Note: the utility program that creates the Treeprs spec (in the file
402 -- xtreeprs.adb) knows about the special fields here, so it must be
403 -- modified if any change is made to these fields.
404
405 -- "plus fields for binary operator"
406 -- Chars (Name1) Name_Id for the operator
407 -- Left_Opnd (Node2) left operand expression
408 -- Right_Opnd (Node3) right operand expression
409 -- Entity (Node4-Sem) defining entity for operator
410 -- Associated_Node (Node4-Sem) for generic processing
411 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
412 -- Has_Private_View (Flag11-Sem) set in generic units.
413
414 -- "plus fields for unary operator"
415 -- Chars (Name1) Name_Id for the operator
416 -- Right_Opnd (Node3) right operand expression
417 -- Entity (Node4-Sem) defining entity for operator
418 -- Associated_Node (Node4-Sem) for generic processing
419 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
420 -- Has_Private_View (Flag11-Sem) set in generic units.
421
422 -- "plus fields for expression"
423 -- Paren_Count number of parentheses levels
424 -- Etype (Node5-Sem) type of the expression
425 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
426 -- Is_Static_Expression (Flag6-Sem) set for static expression
427 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
428 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
429 -- Do_Range_Check (Flag9-Sem) set if a range check needed
430 -- Has_Dynamic_Length_Check (Flag10-Sem) set if length check inserted
431 -- Has_Dynamic_Range_Check (Flag12-Sem) set if range check inserted
432 -- Assignment_OK (Flag15-Sem) set if modification is OK
433 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
434
435 -- Note: see under (EXPRESSION) for further details on the use of
436 -- the Paren_Count field to record the number of parentheses levels.
437
438 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
439 -- The actual definition of this type is given later (the reason for this
440 -- is that we want the descriptions ordered by logical chapter in the RM,
441 -- but the type definition is reordered to facilitate the definition of
442 -- some subtype ranges. The individual descriptions of the nodes show how
443 -- the various fields are used in each node kind, as well as providing
444 -- logical names for the fields. Functions and procedures are provided for
445 -- accessing and setting these fields using these logical names.
446
447 -----------------------
448 -- Gigi Restrictions --
449 -----------------------
450
451 -- The tree passed to Gigi is more restricted than the general tree form.
452 -- For example, as a result of expansion, most of the tasking nodes can
453 -- never appear. For each node to which either a complete or partial
454 -- restriction applies, a note entitled "Gigi restriction" appears which
455 -- documents the restriction.
456
457 -- Note that most of these restrictions apply only to trees generated when
458 -- code is being generated, since they involved expander actions that
459 -- destroy the tree.
460
461 ---------------
462 -- ASIS Mode --
463 ---------------
464
465 -- When a file is compiled in ASIS mode (-gnatct), expansion is skipped,
466 -- and the analysis must generate a tree in a form that meets all ASIS
467 -- requirements.
468
469 -- ASIS must be able to recover the original tree that corresponds to the
470 -- source. It relies heavily on Original_Node for this purpose, which as
471 -- described in Atree, records the history when a node is rewritten. ASIS
472 -- uses Original_Node to recover the original node before the Rewrite.
473
474 -- At least in ASIS mode (not really important in non-ASIS mode), when
475 -- N1 is rewritten as N2:
476
477 -- The subtree rooted by the original node N1 should be fully decorated,
478 -- i.e. all semantic fields noted in sinfo.ads should be set properly
479 -- and any referenced entities should be complete (with exceptions for
480 -- representation information, noted below).
481
482 -- For all the direct descendants of N1 (original node) their Parent
483 -- links should point not to N1, but to N2 (rewriting node).
484
485 -- The Parent links of rewritten nodes (N1 in this example) are set in
486 -- some cases (to point to the rewritten parent), but in other cases
487 -- they are set to Empty. This needs sorting out ??? It would be much
488 -- cleaner if they could always be set in the original node ???
489
490 -- There are a few cases when ASIS has to use not the original, but the
491 -- rewritten tree structures. This happens when because of some important
492 -- technical reasons it is impossible or very hard to have the original
493 -- structure properly decorated by semantic information, and the rewritten
494 -- structure fully reproduces the original source. Below is the (incomplete
495 -- for the moment???) list of such exceptions:
496 --
497 -- Generic specifications and generic bodies
498 -- Function calls that use prefixed notation (Operand.Operation [(...)])
499
500 -- Representation Information
501
502 -- For the purposes of the data description annex, the representation
503 -- information for source declared entities must be complete in the
504 -- ASIS tree.
505
506 -- This requires that the front end call the back end (gigi/gcc) in
507 -- a special "back annotate only" mode to obtain information on layout
508 -- from the back end.
509
510 -- For the purposes of this special "back annotate only" mode, the
511 -- requirements that would normally need to be met to generate code
512 -- are relaxed as follows:
513
514 -- Anonymous types need not have full representation information (e.g.
515 -- sizes need not be set for types where the front end would normally
516 -- set the sizes), since anonymous types can be ignored in this mode.
517
518 -- In this mode, gigi will see at least fragments of a fully annotated
519 -- unexpanded tree. This means that it will encounter nodes it does
520 -- not normally handle (such as stubs, task bodies etc). It should
521 -- simply ignore these nodes, since they are not relevant to the task
522 -- of back annotating representation information.
523
524 -- Some other ASIS-specific issues are covered in specific comments in
525 -- sections for particular nodes or flags.
526
527 ----------------
528 -- Ghost Mode --
529 ----------------
530
531 -- The SPARK RM 6.9 defines two classes of constructs - Ghost entities and
532 -- Ghost statements. The intent of the feature is to treat Ghost constructs
533 -- as non-existent when Ghost assertion policy Ignore is in effect.
534
535 -- The corresponding nodes which map to Ghost constructs are:
536
537 -- Ghost entities
538 -- Declaration nodes
539 -- N_Package_Body
540 -- N_Subprogram_Body
541
542 -- Ghost statements
543 -- N_Assignment_Statement
544 -- N_Procedure_Call_Statement
545 -- N_Pragma
546
547 -- In addition, the compiler treats instantiations as Ghost entities
548
549 -- To achieve the removal of ignored Ghost constructs, the compiler relies
550 -- on global variable Ghost_Mode and a mechanism called "Ghost regions".
551 -- The values of the global variable are as follows:
552
553 -- 1. Check - All static semantics as defined in SPARK RM 6.9 are in
554 -- effect. The Ghost region has mode Check.
555
556 -- 2. Ignore - Same as Check, ignored Ghost code is not present in ALI
557 -- files, object files, and the final executable. The Ghost region
558 -- has mode Ignore.
559
560 -- 3. None - No Ghost region is in effect
561
562 -- A Ghost region is a compiler operating mode, similar to Check_Syntax,
563 -- however a region is much more finely grained and depends on the policy
564 -- in effect. The region starts prior to the analysis of a Ghost construct
565 -- and ends immediately after its expansion. The region is established as
566 -- follows:
567
568 -- 1. Declarations - Prior to analysis, if the declaration is subject to
569 -- pragma Ghost.
570
571 -- 2. Renaming declarations - Same as 1) or when the renamed entity is
572 -- Ghost.
573
574 -- 3. Completing declarations - Same as 1) or when the declaration is
575 -- partially analyzed and the declaration completes a Ghost entity.
576
577 -- 4. N_Package_Body, N_Subprogram_Body - Same as 1) or when the body is
578 -- partially analyzed and completes a Ghost entity.
579
580 -- 5. N_Assignment_Statement - After the left hand side is analyzed and
581 -- references a Ghost entity.
582
583 -- 6. N_Procedure_Call_Statement - After the name is analyzed and denotes
584 -- a Ghost procedure.
585
586 -- 7. N_Pragma - During analysis, when the related entity is Ghost or the
587 -- pragma encloses a Ghost entity.
588
589 -- 8. Instantiations - Save as 1) or when the instantiation is partially
590 -- analyzed and the generic template is Ghost.
591
592 -- Routines Mark_And_Set_Ghost_xxx install a new Ghost region and routine
593 -- Restore_Ghost_Mode ends a Ghost region. A region may be reinstalled
594 -- similar to scopes for decoupled expansion such as the generation of
595 -- dispatch tables or the creation of a predicate function.
596
597 -- If the mode of a Ghost region is Ignore, any newly created nodes as well
598 -- as source entities are marked as ignored Ghost. In additon, the marking
599 -- process signals all enclosing scopes that an ignored Ghost node resides
600 -- within. The compilation unit where the node resides is also added to an
601 -- auxiliary table for post processing.
602
603 -- After the analysis and expansion of all compilation units takes place
604 -- as well as the instantiation of all inlined [generic] bodies, the GNAT
605 -- driver initiates a separate pass which removes all ignored Ghost nodes
606 -- from all units stored in the auxiliary table.
607
608 --------------------
609 -- GNATprove Mode --
610 --------------------
611
612 -- When a file is compiled in GNATprove mode (-gnatd.F), a very light
613 -- expansion is performed and the analysis must generate a tree in a
614 -- form that meets additional requirements.
615
616 -- This light expansion does two transformations of the tree that cannot
617 -- be postponed till after semantic analysis:
618
619 -- 1. Replace object renamings by renamed object. This requires the
620 -- introduction of temporaries at the point of the renaming, which
621 -- must be properly analyzed.
622
623 -- 2. Fully qualify entity names. This is needed to generate suitable
624 -- local effects and call-graphs in ALI files, with the completely
625 -- qualified names (in particular the suffix to distinguish homonyms).
626
627 -- The tree after this light expansion should be fully analyzed
628 -- semantically, which sometimes requires the insertion of semantic
629 -- pre-analysis, for example for subprogram contracts and pragma
630 -- check/assert. In particular, all expression must have their proper type,
631 -- and semantic links should be set between tree nodes (partial to full
632 -- view, etc.) Some kinds of nodes should be either absent, or can be
633 -- ignored by the formal verification backend:
634
635 -- N_Object_Renaming_Declaration: can be ignored safely
636 -- N_Expression_Function: absent (rewritten)
637 -- N_Expression_With_Actions: absent (not generated)
638
639 -- SPARK cross-references are generated from the regular cross-references
640 -- (used for browsing and code understanding) and additional references
641 -- collected during semantic analysis, in particular on all dereferences.
642 -- These SPARK cross-references are output in a separate section of ALI
643 -- files, as described in spark_xrefs.adb. They are the basis for the
644 -- computation of data dependences in GNATprove. This implies that all
645 -- cross-references should be generated in this mode, even those that would
646 -- not make sense from a user point-of-view, and that cross-references that
647 -- do not lead to data dependences for subprograms can be safely ignored.
648
649 -- GNATprove relies on the following front end behaviors:
650
651 -- 1. The first declarations in the list of visible declarations of
652 -- a package declaration for a generic instance, up to the first
653 -- declaration which comes from source, should correspond to
654 -- the "mappings nodes" between formal and actual generic parameters.
655
656 -- 2. In addition pragma Debug statements are removed from the tree
657 -- (rewritten to NULL stmt), since they should be ignored in formal
658 -- verification.
659
660 -- 3. An error is also issued for missing subunits, similar to the
661 -- warning issued when generating code, to avoid formal verification
662 -- of a partial unit.
663
664 -- 4. Unconstrained types are not replaced by constrained types whose
665 -- bounds are generated from an expression: Expand_Subtype_From_Expr
666 -- should be a no-op.
667
668 -- 5. Errors (instead of warnings) are issued on compile-time-known
669 -- constraint errors even though such cases do not correspond to
670 -- illegalities in the Ada RM (this is simply another case where
671 -- GNATprove implements a subset of the full language).
672 --
673 -- However, there are a few exceptions to this rule for cases where
674 -- we want to allow the GNATprove analysis to proceed (e.g. range
675 -- checks on empty ranges, which typically appear in deactivated
676 -- code in a particular configuration).
677
678 -- 6. Subtypes should match in the AST, even after a generic is
679 -- instantiated. In particular, GNATprove relies on the fact that,
680 -- on a selected component, the type of the selected component is
681 -- the type of the corresponding component in the prefix of the
682 -- selected component.
683 --
684 -- Note that, in some cases, we know that this rule is broken by the
685 -- frontend. In particular, if the selected component is a packed
686 -- array depending on a discriminant of a unconstrained formal object
687 -- parameter of a generic.
688
689 -----------------------
690 -- Check Flag Fields --
691 -----------------------
692
693 -- The following flag fields appear in expression nodes:
694
695 -- Do_Division_Check
696 -- Do_Overflow_Check
697 -- Do_Range_Check
698
699 -- These three flags are always set by the front end during semantic
700 -- analysis, on expression nodes that may trigger the corresponding
701 -- check. The front end then inserts or not the check during expansion. In
702 -- particular, these flags should also be correctly set in ASIS mode and
703 -- GNATprove mode. As a special case, the front end does not insert a
704 -- Do_Division_Check flag on float exponentiation expressions, for the case
705 -- where the value is 0.0 and the exponent is negative, although this case
706 -- does lead to a division check failure.
707
708 -- Note: the expander always takes care of the Do_Range check case,
709 -- so this flag will never be set in the expanded tree passed to the
710 -- back end code generator.
711
712 -- Note that this accounts for all nodes that trigger the corresponding
713 -- checks, except for range checks on subtype_indications, which may be
714 -- required to check that a range_constraint is compatible with the given
715 -- subtype (RM 3.2.2(11)).
716
717 -- The following flag fields appear in various nodes:
718
719 -- Do_Accessibility_Check
720 -- Do_Discriminant_Check
721 -- Do_Length_Check
722 -- Do_Storage_Check
723 -- Do_Tag_Check
724
725 -- These flags are used in some specific cases by the front end, either
726 -- during semantic analysis or during expansion, and cannot be expected
727 -- to be set on all nodes that trigger the corresponding check.
728
729 ------------------------
730 -- Common Flag Fields --
731 ------------------------
732
733 -- The following flag fields appear in all nodes:
734
735 -- Analyzed
736 -- This flag is used to indicate that a node (and all its children have
737 -- been analyzed. It is used to avoid reanalysis of a node that has
738 -- already been analyzed, both for efficiency and functional correctness
739 -- reasons.
740
741 -- Comes_From_Source
742 -- This flag is set if the node comes directly from an explicit construct
743 -- in the source. It is normally on for any nodes built by the scanner or
744 -- parser from the source program, with the exception that in a few cases
745 -- the parser adds nodes to normalize the representation (in particular
746 -- a null statement is added to a package body if there is no begin/end
747 -- initialization section.
748 --
749 -- Most nodes inserted by the analyzer or expander are not considered
750 -- as coming from source, so the flag is off for such nodes. In a few
751 -- cases, the expander constructs nodes closely equivalent to nodes
752 -- from the source program (e.g. the allocator built for build-in-place
753 -- case), and the Comes_From_Source flag is deliberately set.
754
755 -- Error_Posted
756 -- This flag is used to avoid multiple error messages being posted on or
757 -- referring to the same node. This flag is set if an error message
758 -- refers to a node or is posted on its source location, and has the
759 -- effect of inhibiting further messages involving this same node.
760
761 -----------------------
762 -- Modify_Tree_For_C --
763 -----------------------
764
765 -- If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
766 -- in ways that help match the semantics better with C, easing the task of
767 -- interfacing to C code generators (other than GCC, where the work is done
768 -- in gigi, and there is no point in changing that), and also making life
769 -- easier for Cprint in generating C source code.
770
771 -- The current modifications implemented are as follows:
772
773 -- N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
774 -- are eliminated from the tree (since these operations do not exist in
775 -- C), and the operations are rewritten in terms of logical shifts and
776 -- other logical operations that do exist in C. See Exp_Ch4 expansion
777 -- routines for these operators for details of the transformations made.
778
779 -- The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
780 -- less than the word size (since other values are not well-defined in
781 -- C). This is done using an explicit test if necessary.
782
783 -- Min and Max attributes are expanded into equivalent if expressions,
784 -- dealing properly with side effect issues.
785
786 -- Mod for signed integer types is expanded into equivalent expressions
787 -- using Rem (which is % in C) and other C-available operators.
788
789 -- Functions returning bounded arrays are transformed into procedures
790 -- with an extra out parameter, and the calls updated accordingly.
791
792 -- Aggregates are only kept unexpanded for object declarations, otherwise
793 -- they are systematically expanded into loops (for arrays) and
794 -- individual assignments (for records).
795
796 -- Unconstrained array types are handled by means of fat pointers.
797
798 -- Postconditions are inlined by the frontend since their body may have
799 -- references to itypes defined in the enclosing subprogram.
800
801 ------------------------------------
802 -- Description of Semantic Fields --
803 ------------------------------------
804
805 -- The meaning of the syntactic fields is generally clear from their names
806 -- without any further description, since the names are chosen to
807 -- correspond very closely to the syntax in the reference manual. This
808 -- section describes the usage of the semantic fields, which are used to
809 -- contain additional information determined during semantic analysis.
810
811 -- ABE_Is_Certain (Flag18-Sem)
812 -- This flag is set in an instantiation node or a call node is determined
813 -- to be sure to raise an ABE. This is used to trigger special handling
814 -- of such cases, particularly in the instantiation case where we avoid
815 -- instantiating the body if this flag is set. This flag is also present
816 -- in an N_Formal_Package_Declaration node since formal package
817 -- declarations are treated like instantiations, but it is always set to
818 -- False in this context.
819
820 -- Accept_Handler_Records (List5-Sem)
821 -- This field is present only in an N_Accept_Alternative node. It is used
822 -- to temporarily hold the exception handler records from an accept
823 -- statement in a selective accept. These exception handlers will
824 -- eventually be placed in the Handler_Records list of the procedure
825 -- built for this accept (see Expand_N_Selective_Accept procedure in
826 -- Exp_Ch9 for further details).
827
828 -- Access_Types_To_Process (Elist2-Sem)
829 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
830 -- Contains the list of access types which may require specific treatment
831 -- when the nature of the type completion is completely known. An example
832 -- of such treatment is the generation of the associated_final_chain.
833
834 -- Actions (List1-Sem)
835 -- This field contains a sequence of actions that are associated with the
836 -- node holding the field. See the individual node types for details of
837 -- how this field is used, as well as the description of the specific use
838 -- for a particular node type.
839
840 -- Activation_Chain_Entity (Node3-Sem)
841 -- This is used in tree nodes representing task activators (blocks,
842 -- subprogram bodies, package declarations, and task bodies). It is
843 -- initially Empty, and then gets set to point to the entity for the
844 -- declared Activation_Chain variable when the first task is declared.
845 -- When tasks are declared in the corresponding declarative region this
846 -- entity is located by name (its name is always _Chain) and the declared
847 -- tasks are added to the chain. Note that N_Extended_Return_Statement
848 -- does not have this attribute, although it does have an activation
849 -- chain. This chain is used to store the tasks temporarily, and is not
850 -- used for activating them. On successful completion of the return
851 -- statement, the tasks are moved to the caller's chain, and the caller
852 -- activates them.
853
854 -- Acts_As_Spec (Flag4-Sem)
855 -- A flag set in the N_Subprogram_Body node for a subprogram body which
856 -- is acting as its own spec. In the case of a library-level subprogram
857 -- the flag is set as well on the parent compilation unit node.
858
859 -- Actual_Designated_Subtype (Node4-Sem)
860 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
861 -- needs to known the dynamic constrained subtype of the designated
862 -- object, this attribute is set to that type. This is done for
863 -- N_Free_Statements for access-to-classwide types and access to
864 -- unconstrained packed array types, and for N_Explicit_Dereference when
865 -- the designated type is an unconstrained packed array and the
866 -- dereference is the prefix of a 'Size attribute reference.
867
868 -- Address_Warning_Posted (Flag18-Sem)
869 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
870 -- posted a warning for the address clause regarding size or alignment
871 -- issues. Used to inhibit multiple redundant messages.
872
873 -- Aggregate_Bounds (Node3-Sem)
874 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
875 -- known at compile time, this field points to an N_Range node with those
876 -- bounds. Otherwise Empty.
877
878 -- All_Others (Flag11-Sem)
879 -- Present in an N_Others_Choice node. This flag is set for an others
880 -- exception where all exceptions are to be caught, even those that are
881 -- not normally handled (in particular the tasking abort signal). This
882 -- is used for translation of the at end handler into a normal exception
883 -- handler.
884
885 -- Aspect_Rep_Item (Node2-Sem)
886 -- Present in N_Aspect_Specification nodes. Points to the corresponding
887 -- pragma/attribute definition node used to process the aspect.
888
889 -- Assignment_OK (Flag15-Sem)
890 -- This flag is set in a subexpression node for an object, indicating
891 -- that the associated object can be modified, even if this would not
892 -- normally be permissible (either by direct assignment, or by being
893 -- passed as an out or in-out parameter). This is used by the expander
894 -- for a number of purposes, including initialization of constants and
895 -- limited type objects (such as tasks), setting discriminant fields,
896 -- setting tag values, etc. N_Object_Declaration nodes also have this
897 -- flag defined. Here it is used to indicate that an initialization
898 -- expression is valid, even where it would normally not be allowed
899 -- (e.g. where the type involved is limited). It is also used to stop
900 -- a Force_Evaluation call for an unchecked conversion, but this usage
901 -- is unclear and not documented ???
902
903 -- Associated_Node (Node4-Sem)
904 -- Present in nodes that can denote an entity: identifiers, character
905 -- literals, operator symbols, expanded names, operator nodes, and
906 -- attribute reference nodes (all these nodes have an Entity field).
907 -- This field is also present in N_Aggregate, N_Selected_Component, and
908 -- N_Extension_Aggregate nodes. This field is used in generic processing
909 -- to create links between the generic template and the generic copy.
910 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
911 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
912 -- the normal function of Entity is not required at the point where the
913 -- Associated_Node is set. Note also, that in generic templates, this
914 -- means that the Entity field does not necessarily point to an Entity.
915 -- Since the back end is expected to ignore generic templates, this is
916 -- harmless.
917
918 -- Atomic_Sync_Required (Flag14-Sem)
919 -- This flag is set on a node for which atomic synchronization is
920 -- required for the corresponding reference or modification.
921
922 -- At_End_Proc (Node1)
923 -- This field is present in an N_Handled_Sequence_Of_Statements node.
924 -- It contains an identifier reference for the cleanup procedure to be
925 -- called. See description of this node for further details.
926
927 -- Backwards_OK (Flag6-Sem)
928 -- A flag present in the N_Assignment_Statement node. It is used only
929 -- if the type being assigned is an array type, and is set if analysis
930 -- determines that it is definitely safe to do the copy backwards, i.e.
931 -- starting at the highest addressed element. This is the case if either
932 -- the operands do not overlap, or they may overlap, but if they do,
933 -- then the left operand is at a higher address than the right operand.
934 --
935 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
936 -- means that the front end could not determine that either direction is
937 -- definitely safe, and a runtime check may be required if the backend
938 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
939 -- set, it means that the front end can assure no overlap of operands.
940
941 -- Body_To_Inline (Node3-Sem)
942 -- Present in subprogram declarations. Denotes analyzed but unexpanded
943 -- body of subprogram, to be used when inlining calls. Present when the
944 -- subprogram has an Inline pragma and inlining is enabled. If the
945 -- declaration is completed by a renaming_as_body, and the renamed entity
946 -- is a subprogram, the Body_To_Inline is the name of that entity, which
947 -- is used directly in later calls to the original subprogram.
948
949 -- Body_Required (Flag13-Sem)
950 -- A flag that appears in the N_Compilation_Unit node indicating that
951 -- the corresponding unit requires a body. For the package case, this
952 -- indicates that a completion is required. In Ada 95, if the flag is not
953 -- set for the package case, then a body may not be present. In Ada 83,
954 -- if the flag is not set for the package case, then body is optional.
955 -- For a subprogram declaration, the flag is set except in the case where
956 -- a pragma Import or Interface applies, in which case no body is
957 -- permitted (in Ada 83 or Ada 95).
958
959 -- By_Ref (Flag5-Sem)
960 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
961 -- this flag is set when the returned expression is already allocated on
962 -- the secondary stack and thus the result is passed by reference rather
963 -- than copied another time.
964
965 -- Cleanup_Actions (List5-Sem)
966 -- Present in block statements created for transient blocks, contains
967 -- additional cleanup actions carried over from the transient scope.
968
969 -- Check_Address_Alignment (Flag11-Sem)
970 -- A flag present in N_Attribute_Definition clause for a 'Address
971 -- attribute definition. This flag is set if a dynamic check should be
972 -- generated at the freeze point for the entity to which this address
973 -- clause applies. The reason that we need this flag is that we want to
974 -- check for range checks being suppressed at the point where the
975 -- attribute definition clause is given, rather than testing this at the
976 -- freeze point.
977
978 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
979 -- Present in N_Simple_Return_Statement nodes. True if this node was
980 -- constructed as part of the N_Extended_Return_Statement expansion.
981
982 -- Compile_Time_Known_Aggregate (Flag18-Sem)
983 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
984 -- evaluated at compile time without raising constraint error. Such
985 -- aggregates can be passed as is the back end without any expansion.
986 -- See Exp_Aggr for specific conditions under which this flag gets set.
987
988 -- Componentwise_Assignment (Flag14-Sem)
989 -- Present in N_Assignment_Statement nodes. Set for a record assignment
990 -- where all that needs doing is to expand it into component-by-component
991 -- assignments. This is used internally for the case of tagged types with
992 -- rep clauses, where we need to avoid recursion (we don't want to try to
993 -- generate a call to the primitive operation, because this is the case
994 -- where we are compiling the primitive operation). Note that when we are
995 -- expanding component assignments in this case, we never assign the _tag
996 -- field, but we recursively assign components of the parent type.
997
998 -- Condition_Actions (List3-Sem)
999 -- This field appears in else-if nodes and in the iteration scheme node
1000 -- for while loops. This field is only used during semantic processing to
1001 -- temporarily hold actions inserted into the tree. In the tree passed
1002 -- to gigi, the condition actions field is always set to No_List. For
1003 -- details on how this field is used, see the routine Insert_Actions in
1004 -- package Exp_Util, and also the expansion routines for the relevant
1005 -- nodes.
1006
1007 -- Context_Pending (Flag16-Sem)
1008 -- This field appears in Compilation_Unit nodes, to indicate that the
1009 -- context of the unit is being compiled. Used to detect circularities
1010 -- that are not otherwise detected by the loading mechanism. Such
1011 -- circularities can occur in the presence of limited and non-limited
1012 -- with_clauses that mention the same units.
1013
1014 -- Controlling_Argument (Node1-Sem)
1015 -- This field is set in procedure and function call nodes if the call
1016 -- is a dispatching call (it is Empty for a non-dispatching call). It
1017 -- indicates the source of the call's controlling tag. For procedure
1018 -- calls, the Controlling_Argument is one of the actuals. For function
1019 -- that has a dispatching result, it is an entity in the context of the
1020 -- call that can provide a tag, or else it is the tag of the root type
1021 -- of the class. It can also specify a tag directly rather than being a
1022 -- tagged object. The latter is needed by the implementations of AI-239
1023 -- and AI-260.
1024
1025 -- Conversion_OK (Flag14-Sem)
1026 -- A flag set on type conversion nodes to indicate that the conversion
1027 -- is to be considered as being valid, even though it is the case that
1028 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
1029 -- Fixed_Value and Integer_Value, for internal conversions done for
1030 -- fixed-point operations, and for certain conversions for calls to
1031 -- initialization procedures. If Conversion_OK is set, then Etype must be
1032 -- set (the analyzer assumes that Etype has been set). For the case of
1033 -- fixed-point operands, it also indicates that the conversion is to be
1034 -- direct conversion of the underlying integer result, with no regard to
1035 -- the small operand.
1036
1037 -- Convert_To_Return_False (Flag13-Sem)
1038 -- Present in N_Raise_Expression nodes that appear in the body of the
1039 -- special predicateM function used to test a predicate in the context
1040 -- of a membership test, where raise expression results in returning a
1041 -- value of False rather than raising an exception.
1042
1043 -- Corresponding_Aspect (Node3-Sem)
1044 -- Present in N_Pragma node. Used to point back to the source aspect from
1045 -- the corresponding pragma. This field is Empty for source pragmas.
1046
1047 -- Corresponding_Body (Node5-Sem)
1048 -- This field is set in subprogram declarations, package declarations,
1049 -- entry declarations of protected types, and in generic units. It points
1050 -- to the defining entity for the corresponding body (NOT the node for
1051 -- the body itself).
1052
1053 -- Corresponding_Formal_Spec (Node3-Sem)
1054 -- This field is set in subprogram renaming declarations, where it points
1055 -- to the defining entity for a formal subprogram in the case where the
1056 -- renaming corresponds to a generic formal subprogram association in an
1057 -- instantiation. The field is Empty if the renaming does not correspond
1058 -- to such a formal association.
1059
1060 -- Corresponding_Generic_Association (Node5-Sem)
1061 -- This field is defined for object declarations and object renaming
1062 -- declarations. It is set for the declarations within an instance that
1063 -- map generic formals to their actuals. If set, the field points to
1064 -- a generic_association which is the original parent of the expression
1065 -- or name appearing in the declaration. This simplifies ASIS queries.
1066
1067 -- Corresponding_Integer_Value (Uint4-Sem)
1068 -- This field is set in real literals of fixed-point types (it is not
1069 -- used for floating-point types). It contains the integer value used
1070 -- to represent the fixed-point value. It is also set on the universal
1071 -- real literals used to represent bounds of fixed-point base types
1072 -- and their first named subtypes.
1073
1074 -- Corresponding_Spec (Node5-Sem)
1075 -- This field is set in subprogram, package, task, and protected body
1076 -- nodes, where it points to the defining entity in the corresponding
1077 -- spec. The attribute is also set in N_With_Clause nodes where it points
1078 -- to the defining entity for the with'ed spec, and in a subprogram
1079 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
1080 -- if there is no corresponding spec, as in the case of a subprogram body
1081 -- that serves as its own spec.
1082 --
1083 -- In Ada 2012, Corresponding_Spec is set on expression functions that
1084 -- complete a subprogram declaration.
1085
1086 -- Corresponding_Spec_Of_Stub (Node2-Sem)
1087 -- This field is present in subprogram, package, task and protected body
1088 -- stubs where it points to the corresponding spec of the stub. Due to
1089 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
1090
1091 -- Corresponding_Stub (Node3-Sem)
1092 -- This field is present in an N_Subunit node. It holds the node in
1093 -- the parent unit that is the stub declaration for the subunit. It is
1094 -- set when analysis of the stub forces loading of the proper body. If
1095 -- expansion of the proper body creates new declarative nodes, they are
1096 -- inserted at the point of the corresponding_stub.
1097
1098 -- Dcheck_Function (Node5-Sem)
1099 -- This field is present in an N_Variant node, It references the entity
1100 -- for the discriminant checking function for the variant.
1101
1102 -- Default_Expression (Node5-Sem)
1103 -- This field is Empty if there is no default expression. If there is a
1104 -- simple default expression (one with no side effects), then this field
1105 -- simply contains a copy of the Expression field (both point to the tree
1106 -- for the default expression). Default_Expression is used for
1107 -- conformance checking.
1108
1109 -- Default_Storage_Pool (Node3-Sem)
1110 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
1111 -- copy of Opt.Default_Pool at the end of the compilation unit. See
1112 -- package Opt for details. This is used for inheriting the
1113 -- Default_Storage_Pool in child units.
1114
1115 -- Discr_Check_Funcs_Built (Flag11-Sem)
1116 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
1117 -- discriminant checking functions are constructed. The purpose is to
1118 -- avoid attempting to set these functions more than once.
1119
1120 -- Do_Accessibility_Check (Flag13-Sem)
1121 -- This flag is set on N_Parameter_Specification nodes to indicate
1122 -- that an accessibility check is required for the parameter. It is
1123 -- not yet decided who takes care of this check (TBD ???).
1124
1125 -- Do_Discriminant_Check (Flag1-Sem)
1126 -- This flag is set on N_Selected_Component nodes to indicate that a
1127 -- discriminant check is required using the discriminant check routine
1128 -- associated with the selector. The actual check is generated by the
1129 -- expander when processing selected components. In the case of
1130 -- Unchecked_Union, the flag is also set, but no discriminant check
1131 -- routine is associated with the selector, and the expander does not
1132 -- generate a check. This flag is also present in assignment statements
1133 -- (and set if the assignment requires a discriminant check), and in type
1134 -- conversion nodes (and set if the conversion requires a check).
1135
1136 -- Do_Division_Check (Flag13-Sem)
1137 -- This flag is set on a division operator (/ mod rem) to indicate
1138 -- that a zero divide check is required. The actual check is dealt
1139 -- with by the backend (all the front end does is to set the flag).
1140
1141 -- Do_Length_Check (Flag4-Sem)
1142 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1143 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1144 -- is required. It is not determined who deals with this flag (???).
1145
1146 -- Do_Overflow_Check (Flag17-Sem)
1147 -- This flag is set on an operator where an overflow check is required on
1148 -- the operation. The actual check is dealt with by the backend (all the
1149 -- front end does is to set the flag). The other cases where this flag is
1150 -- used is on a Type_Conversion node and for attribute reference nodes.
1151 -- For a type conversion, it means that the conversion is from one base
1152 -- type to another, and the value may not fit in the target base type.
1153 -- See also the description of Do_Range_Check for this case. The only
1154 -- attribute references which use this flag are Pred and Succ, where it
1155 -- means that the result should be checked for going outside the base
1156 -- range. Note that this flag is not set for modular types. This flag is
1157 -- also set on if and case expression nodes if we are operating in either
1158 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1159 -- properly process overflow checking for dependent expressions).
1160
1161 -- Do_Range_Check (Flag9-Sem)
1162 -- This flag is set on an expression which appears in a context where a
1163 -- range check is required. The target type is clear from the context.
1164 -- The contexts in which this flag can appear are the following:
1165
1166 -- Right side of an assignment. In this case the target type is
1167 -- taken from the left side of the assignment, which is referenced
1168 -- by the Name of the N_Assignment_Statement node.
1169
1170 -- Subscript expressions in an indexed component. In this case the
1171 -- target type is determined from the type of the array, which is
1172 -- referenced by the Prefix of the N_Indexed_Component node.
1173
1174 -- Argument expression for a parameter, appearing either directly in
1175 -- the Parameter_Associations list of a call or as the Expression of an
1176 -- N_Parameter_Association node that appears in this list. In either
1177 -- case, the check is against the type of the formal. Note that the
1178 -- flag is relevant only in IN and IN OUT parameters, and will be
1179 -- ignored for OUT parameters, where no check is required in the call,
1180 -- and if a check is required on the return, it is generated explicitly
1181 -- with a type conversion.
1182
1183 -- Initialization expression for the initial value in an object
1184 -- declaration. In this case the Do_Range_Check flag is set on
1185 -- the initialization expression, and the check is against the
1186 -- range of the type of the object being declared. This includes the
1187 -- cases of expressions providing default discriminant values, and
1188 -- expressions used to initialize record components.
1189
1190 -- The expression of a type conversion. In this case the range check is
1191 -- against the target type of the conversion. See also the use of
1192 -- Do_Overflow_Check on a type conversion. The distinction is that the
1193 -- overflow check protects against a value that is outside the range of
1194 -- the target base type, whereas a range check checks that the
1195 -- resulting value (which is a value of the base type of the target
1196 -- type), satisfies the range constraint of the target type.
1197
1198 -- Note: when a range check is required in contexts other than those
1199 -- listed above (e.g. in a return statement), an additional type
1200 -- conversion node is introduced to represent the required check.
1201
1202 -- A special case arises for the arguments of the Pred/Succ attributes.
1203 -- Here the range check needed is against First + 1 .. Last (Pred) or
1204 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
1205 -- these checks are what would be performed within the implicit body of
1206 -- the functions that correspond to these attributes. In these cases,
1207 -- the Do_Range check flag is set on the argument to the attribute
1208 -- function, and the back end must special case the appropriate range
1209 -- to check against.
1210
1211 -- Do_Storage_Check (Flag17-Sem)
1212 -- This flag is set in an N_Allocator node to indicate that a storage
1213 -- check is required for the allocation, or in an N_Subprogram_Body node
1214 -- to indicate that a stack check is required in the subprogram prologue.
1215 -- The N_Allocator case is handled by the routine that expands the call
1216 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1217 -- backend, and all the semantics does is set the flag.
1218
1219 -- Do_Tag_Check (Flag13-Sem)
1220 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1221 -- N_Procedure_Call_Statement, N_Type_Conversion,
1222 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1223 -- node to indicate that the tag check can be suppressed. It is not
1224 -- yet decided how this flag is used (TBD ???).
1225
1226 -- Elaborate_Present (Flag4-Sem)
1227 -- This flag is set in the N_With_Clause node to indicate that pragma
1228 -- Elaborate pragma appears for the with'ed units.
1229
1230 -- Elaborate_All_Desirable (Flag9-Sem)
1231 -- This flag is set in the N_With_Clause mode to indicate that the static
1232 -- elaboration processing has determined that an Elaborate_All pragma is
1233 -- desirable for correct elaboration for this unit.
1234
1235 -- Elaborate_All_Present (Flag14-Sem)
1236 -- This flag is set in the N_With_Clause node to indicate that a
1237 -- pragma Elaborate_All pragma appears for the with'ed units.
1238
1239 -- Elaborate_Desirable (Flag11-Sem)
1240 -- This flag is set in the N_With_Clause mode to indicate that the static
1241 -- elaboration processing has determined that an Elaborate pragma is
1242 -- desirable for correct elaboration for this unit.
1243
1244 -- Else_Actions (List3-Sem)
1245 -- This field is present in if expression nodes. During code
1246 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1247 -- actions at an appropriate place in the tree to get elaborated at the
1248 -- right time. For if expressions, we have to be sure that the actions
1249 -- for the Else branch are only elaborated if the condition is False.
1250 -- The Else_Actions field is used as a temporary parking place for
1251 -- these actions. The final tree is always rewritten to eliminate the
1252 -- need for this field, so in the tree passed to Gigi, this field is
1253 -- always set to No_List.
1254
1255 -- Enclosing_Variant (Node2-Sem)
1256 -- This field is present in the N_Variant node and identifies the Node_Id
1257 -- corresponding to the immediately enclosing variant when the variant is
1258 -- nested, and N_Empty otherwise. Set during semantic processing of the
1259 -- variant part of a record type.
1260
1261 -- Entity (Node4-Sem)
1262 -- Appears in all direct names (identifiers, character literals, and
1263 -- operator symbols), as well as expanded names, and attributes that
1264 -- denote entities, such as 'Class. Points to entity for corresponding
1265 -- defining occurrence. Set after name resolution. For identifiers in a
1266 -- WITH list, the corresponding defining occurrence is in a separately
1267 -- compiled file, and Entity must be set by the library Load procedure.
1268 --
1269 -- Note: During name resolution, the value in Entity may be temporarily
1270 -- incorrect (e.g. during overload resolution, Entity is initially set to
1271 -- the first possible correct interpretation, and then later modified if
1272 -- necessary to contain the correct value after resolution).
1273 --
1274 -- Note: This field overlaps Associated_Node, which is used during
1275 -- generic processing (see Sem_Ch12 for details). Note also that in
1276 -- generic templates, this means that the Entity field does not always
1277 -- point to an Entity. Since the back end is expected to ignore generic
1278 -- templates, this is harmless.
1279 --
1280 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1281 -- It is used only for stream attributes definition clauses. In this
1282 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1283 -- conceptually at the point of the clause. Thus the visibility of the
1284 -- attribute definition clause (in the sense of 8.3(23) as amended by
1285 -- AI-195) can be checked by testing the visibility of that subprogram.
1286 --
1287 -- Note: Normally the Entity field of an identifier points to the entity
1288 -- for the corresponding defining identifier, and hence the Chars field
1289 -- of an identifier will match the Chars field of the entity. However,
1290 -- there is no requirement that these match, and there are obscure cases
1291 -- of generated code where they do not match.
1292
1293 -- Note: Ada 2012 aspect specifications require additional links between
1294 -- identifiers and various attributes. These attributes can be of
1295 -- arbitrary types, and the entity field of identifiers that denote
1296 -- aspects must be used to store arbitrary expressions for later semantic
1297 -- checks. See section on aspect specifications for details.
1298
1299 -- Entity_Or_Associated_Node (Node4-Sem)
1300 -- A synonym for both Entity and Associated_Node. Used by convention in
1301 -- the code when referencing this field in cases where it is not known
1302 -- whether the field contains an Entity or an Associated_Node.
1303
1304 -- Etype (Node5-Sem)
1305 -- Appears in all expression nodes, all direct names, and all entities.
1306 -- Points to the entity for the related type. Set after type resolution.
1307 -- Normally this is the actual subtype of the expression. However, in
1308 -- certain contexts such as the right side of an assignment, subscripts,
1309 -- arguments to calls, returned value in a function, initial value etc.
1310 -- it is the desired target type. In the event that this is different
1311 -- from the actual type, the Do_Range_Check flag will be set if a range
1312 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1313 -- points to an essentially arbitrary choice from the possible set of
1314 -- types.
1315
1316 -- Exception_Junk (Flag8-Sem)
1317 -- This flag is set in a various nodes appearing in a statement sequence
1318 -- to indicate that the corresponding node is an artifact of the
1319 -- generated code for exception handling, and should be ignored when
1320 -- analyzing the control flow of the relevant sequence of statements
1321 -- (e.g. to check that it does not end with a bad return statement).
1322
1323 -- Exception_Label (Node5-Sem)
1324 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1325 -- to be used for transforming the corresponding exception into a goto,
1326 -- or contains Empty, if this exception is not to be transformed. Also
1327 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1328 -- that there may be a local raise for the handler, so that expansion
1329 -- to allow a goto is required (and this field contains the label for
1330 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1331
1332 -- Expansion_Delayed (Flag11-Sem)
1333 -- Set on aggregates and extension aggregates that need a top-down rather
1334 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1335 -- up. For nested aggregates the expansion is delayed until the enclosing
1336 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1337 -- delay it we set this flag. This is done to avoid creating a temporary
1338 -- for each level of a nested aggregates, and also to prevent the
1339 -- premature generation of constraint checks. This is also a requirement
1340 -- if we want to generate the proper attachment to the internal
1341 -- finalization lists (for record with controlled components). Top down
1342 -- expansion of aggregates is also used for in-place array aggregate
1343 -- assignment or initialization. When the full context is known, the
1344 -- target of the assignment or initialization is used to generate the
1345 -- left-hand side of individual assignment to each sub-component.
1346
1347 -- Expression_Copy (Node2-Sem)
1348 -- Present in N_Pragma_Argument_Association nodes. Contains a copy of the
1349 -- original expression. This field is best used to store pragma-dependent
1350 -- modifications performed on the original expression such as replacement
1351 -- of the current type instance or substitutions of primitives.
1352
1353 -- First_Inlined_Subprogram (Node3-Sem)
1354 -- Present in the N_Compilation_Unit node for the main program. Points
1355 -- to a chain of entities for subprograms that are to be inlined. The
1356 -- Next_Inlined_Subprogram field of these entities is used as a link
1357 -- pointer with Empty marking the end of the list. This field is Empty
1358 -- if there are no inlined subprograms or inlining is not active.
1359
1360 -- First_Named_Actual (Node4-Sem)
1361 -- Present in procedure call statement and function call nodes, and also
1362 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1363 -- named parameter where parameters are ordered by declaration order (as
1364 -- opposed to the actual order in the call which may be different due to
1365 -- named associations). Note: this field points to the explicit actual
1366 -- parameter itself, not the N_Parameter_Association node (its parent).
1367
1368 -- First_Real_Statement (Node2-Sem)
1369 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1370 -- Empty. Used only when declarations are moved into the statement part
1371 -- of a construct as a result of wrapping an AT END handler that is
1372 -- required to cover the declarations. In this case, this field is used
1373 -- to remember the location in the statements list of the first real
1374 -- statement, i.e. the statement that used to be first in the statement
1375 -- list before the declarations were prepended.
1376
1377 -- First_Subtype_Link (Node5-Sem)
1378 -- Present in N_Freeze_Entity node for an anonymous base type that is
1379 -- implicitly created by the declaration of a first subtype. It points
1380 -- to the entity for the first subtype.
1381
1382 -- Float_Truncate (Flag11-Sem)
1383 -- A flag present in type conversion nodes. This is used for float to
1384 -- integer conversions where truncation is required rather than rounding.
1385
1386 -- Forwards_OK (Flag5-Sem)
1387 -- A flag present in the N_Assignment_Statement node. It is used only
1388 -- if the type being assigned is an array type, and is set if analysis
1389 -- determines that it is definitely safe to do the copy forwards, i.e.
1390 -- starting at the lowest addressed element. This is the case if either
1391 -- the operands do not overlap, or they may overlap, but if they do,
1392 -- then the left operand is at a lower address than the right operand.
1393 --
1394 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1395 -- means that the front end could not determine that either direction is
1396 -- definitely safe, and a runtime check may be required if the backend
1397 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1398 -- set, it means that the front end can assure no overlap of operands.
1399
1400 -- From_Aspect_Specification (Flag13-Sem)
1401 -- Processing of aspect specifications typically results in insertion in
1402 -- the tree of corresponding pragma or attribute definition clause nodes.
1403 -- These generated nodes have the From_Aspect_Specification flag set to
1404 -- indicate that they came from aspect specifications originally.
1405
1406 -- From_At_End (Flag4-Sem)
1407 -- This flag is set on an N_Raise_Statement node if it corresponds to
1408 -- the reraise statement generated as the last statement of an AT END
1409 -- handler when SJLJ exception handling is active. It is used to stop
1410 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1411 -- because if the restriction is set, the reraise is not generated.
1412
1413 -- From_At_Mod (Flag4-Sem)
1414 -- This flag is set on the attribute definition clause node that is
1415 -- generated by a transformation of an at mod phrase in a record
1416 -- representation clause. This is used to give slightly different (Ada 83
1417 -- compatible) semantics to such a clause, namely it is used to specify a
1418 -- minimum acceptable alignment for the base type and all subtypes. In
1419 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1420 -- must be a multiple of the given value, and the representation clause
1421 -- is considered to be type specific instead of subtype specific.
1422
1423 -- From_Conditional_Expression (Flag1-Sem)
1424 -- This flag is set on if and case statements generated by the expansion
1425 -- of if and case expressions respectively. The flag is used to suppress
1426 -- any finalization of controlled objects found within these statements.
1427
1428 -- From_Default (Flag6-Sem)
1429 -- This flag is set on the subprogram renaming declaration created in an
1430 -- instance for a formal subprogram, when the formal is declared with a
1431 -- box, and there is no explicit actual. If the flag is present, the
1432 -- declaration is treated as an implicit reference to the formal in the
1433 -- ali file.
1434
1435 -- Generalized_Indexing (Node4-Sem)
1436 -- Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1437 -- that are Ada 2012 container indexing operations. The value of the
1438 -- attribute is a function call (possibly dereferenced) that corresponds
1439 -- to the proper expansion of the source indexing operation. Before
1440 -- expansion, the source node is rewritten as the resolved generalized
1441 -- indexing. In ASIS mode, the expansion does not take place, so that
1442 -- the source is preserved and properly annotated with types.
1443
1444 -- Generic_Parent (Node5-Sem)
1445 -- Generic_Parent is defined on declaration nodes that are instances. The
1446 -- value of Generic_Parent is the generic entity from which the instance
1447 -- is obtained. Generic_Parent is also defined for the renaming
1448 -- declarations and object declarations created for the actuals in an
1449 -- instantiation. The generic parent of such a declaration is the
1450 -- corresponding generic association in the Instantiation node.
1451
1452 -- Generic_Parent_Type (Node4-Sem)
1453 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1454 -- actuals of formal private and derived types. Within the instance, the
1455 -- operations on the actual are those inherited from the parent. For a
1456 -- formal private type, the parent type is the generic type itself. The
1457 -- Generic_Parent_Type is also used in an instance to determine whether a
1458 -- private operation overrides an inherited one.
1459
1460 -- Handler_List_Entry (Node2-Sem)
1461 -- This field is present in N_Object_Declaration nodes. It is set only
1462 -- for the Handler_Record entry generated for an exception in zero cost
1463 -- exception handling mode. It references the corresponding item in the
1464 -- handler list, and is used to delete this entry if the corresponding
1465 -- handler is deleted during optimization. For further details on why
1466 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1467
1468 -- Has_Dereference_Action (Flag13-Sem)
1469 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1470 -- indicate that the expansion has aready produced a call to primitive
1471 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1472 -- Such dereference actions are produced for debugging purposes.
1473
1474 -- Has_Dynamic_Length_Check (Flag10-Sem)
1475 -- This flag is present in all expression nodes. It is set to indicate
1476 -- that one of the routines in unit Checks has generated a length check
1477 -- action which has been inserted at the flagged node. This is used to
1478 -- avoid the generation of duplicate checks.
1479
1480 -- Has_Dynamic_Range_Check (Flag12-Sem)
1481 -- This flag is present in N_Subtype_Declaration nodes and on all
1482 -- expression nodes. It is set to indicate that one of the routines in
1483 -- unit Checks has generated a range check action which has been inserted
1484 -- at the flagged node. This is used to avoid the generation of duplicate
1485 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1486 -- it mean in that context???
1487
1488 -- Has_Local_Raise (Flag8-Sem)
1489 -- Present in exception handler nodes. Set if the handler can be entered
1490 -- via a local raise that gets transformed to a goto statement. This will
1491 -- always be set if Local_Raise_Statements is non-empty, but can also be
1492 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1493 -- nodes requiring generation of back end checks.
1494
1495 -- Has_No_Elaboration_Code (Flag17-Sem)
1496 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1497 -- or not elaboration code is present for this unit. It is initially set
1498 -- true for subprogram specs and bodies and for all generic units and
1499 -- false for non-generic package specs and bodies. Gigi may set the flag
1500 -- in the non-generic package case if it determines that no elaboration
1501 -- code is generated. Note that this flag is not related to the
1502 -- Is_Preelaborated status, there can be preelaborated packages that
1503 -- generate elaboration code, and non-preelaborated packages which do
1504 -- not generate elaboration code.
1505
1506 -- Has_Pragma_Suppress_All (Flag14-Sem)
1507 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1508 -- pragma appears anywhere in the unit. This accommodates the rather
1509 -- strange placement rules of other compilers (DEC permits it at the
1510 -- end of a unit, and Rational allows it as a program unit pragma). We
1511 -- allow it anywhere at all, and consider it equivalent to a pragma
1512 -- Suppress (All_Checks) appearing at the start of the configuration
1513 -- pragmas for the unit.
1514
1515 -- Has_Private_View (Flag11-Sem)
1516 -- A flag present in generic nodes that have an entity, to indicate that
1517 -- the node has a private type. Used to exchange private and full
1518 -- declarations if the visibility at instantiation is different from the
1519 -- visibility at generic definition.
1520
1521 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1522 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1523 -- flag the presence of a pragma Relative_Deadline.
1524
1525 -- Has_Self_Reference (Flag13-Sem)
1526 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1527 -- of the expressions contains an access attribute reference to the
1528 -- enclosing type. Such a self-reference can only appear in default-
1529 -- initialized aggregate for a record type.
1530
1531 -- Has_SP_Choice (Flag15-Sem)
1532 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1533 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1534 -- True if the Discrete_Choices list has at least one occurrence of a
1535 -- statically predicated subtype.
1536
1537 -- Has_Storage_Size_Pragma (Flag5-Sem)
1538 -- A flag present in an N_Task_Definition node to flag the presence of a
1539 -- Storage_Size pragma.
1540
1541 -- Has_Wide_Character (Flag11-Sem)
1542 -- Present in string literals, set if any wide character (i.e. character
1543 -- code outside the Character range but within Wide_Character range)
1544 -- appears in the string. Used to implement pragma preference rules.
1545
1546 -- Has_Target_Names (Flag8-Sem)
1547 -- Present in assignment statements. Indicates that the RHS contains
1548 -- target names (see AI12-0125-3) and must be expanded accordingly.
1549
1550 -- Has_Wide_Wide_Character (Flag13-Sem)
1551 -- Present in string literals, set if any wide character (i.e. character
1552 -- code outside the Wide_Character range) appears in the string. Used to
1553 -- implement pragma preference rules.
1554
1555 -- Header_Size_Added (Flag11-Sem)
1556 -- Present in N_Attribute_Reference nodes, set only for attribute
1557 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1558 -- hidden list header used by the runtime finalization support has been
1559 -- added to the size of the prefix. The flag also prevents the infinite
1560 -- expansion of the same attribute in the said context.
1561
1562 -- Hidden_By_Use_Clause (Elist4-Sem)
1563 -- An entity list present in use clauses that appear within
1564 -- instantiations. For the resolution of local entities, entities
1565 -- introduced by these use clauses have priority over global ones, and
1566 -- outer entities must be explicitly hidden/restored on exit.
1567
1568 -- Implicit_With (Flag16-Sem)
1569 -- This flag is set in the N_With_Clause node that is implicitly
1570 -- generated for runtime units that are loaded by the expander or in
1571 -- GNATprove mode, and also for package System, if it is loaded
1572 -- implicitly by a use of the 'Address or 'Tag attribute.
1573 -- ??? There are other implicit with clauses as well.
1574
1575 -- Implicit_With_From_Instantiation (Flag12-Sem)
1576 -- Set in N_With_Clause nodes from generic instantiations.
1577
1578 -- Import_Interface_Present (Flag16-Sem)
1579 -- This flag is set in an Interface or Import pragma if a matching
1580 -- pragma of the other kind is also present. This is used to avoid
1581 -- generating some unwanted error messages.
1582
1583 -- Includes_Infinities (Flag11-Sem)
1584 -- This flag is present in N_Range nodes. It is set for the range of
1585 -- unconstrained float types defined in Standard, which include not only
1586 -- the given range of values, but also legitimately can include infinite
1587 -- values. This flag is false for any float type for which an explicit
1588 -- range is given by the programmer, even if that range is identical to
1589 -- the range for Float.
1590
1591 -- Incomplete_View (Node2-Sem)
1592 -- Present in full type declarations that are completions of incomplete
1593 -- type declarations. Denotes the corresponding incomplete type
1594 -- declaration. Used to simplify the retrieval of primitive operations
1595 -- that may be declared between the partial and the full view of an
1596 -- untagged type.
1597
1598 -- Inherited_Discriminant (Flag13-Sem)
1599 -- This flag is present in N_Component_Association nodes. It indicates
1600 -- that a given component association in an extension aggregate is the
1601 -- value obtained from a constraint on an ancestor. Used to prevent
1602 -- double expansion when the aggregate has expansion delayed.
1603
1604 -- Instance_Spec (Node5-Sem)
1605 -- This field is present in generic instantiation nodes, and also in
1606 -- formal package declaration nodes (formal package declarations are
1607 -- treated in a manner very similar to package instantiations). It points
1608 -- to the node for the spec of the instance, inserted as part of the
1609 -- semantic processing for instantiations in Sem_Ch12.
1610
1611 -- Is_Abort_Block (Flag4-Sem)
1612 -- Present in N_Block_Statement nodes. True if the block protects a list
1613 -- of statements with an Abort_Defer / Abort_Undefer_Direct pair.
1614
1615 -- Is_Accessibility_Actual (Flag13-Sem)
1616 -- Present in N_Parameter_Association nodes. True if the parameter is
1617 -- an extra actual that carries the accessibility level of the actual
1618 -- for an access parameter, in a function that dispatches on result and
1619 -- is called in a dispatching context. Used to prevent a formal/actual
1620 -- mismatch when the call is rewritten as a dispatching call.
1621
1622 -- Is_Analyzed_Pragma (Flag5-Sem)
1623 -- Present in N_Pragma nodes. Set for delayed pragmas that require a two
1624 -- step analysis. The initial step is peformed by routine Analyze_Pragma
1625 -- and verifies the overall legality of the pragma. The second step takes
1626 -- place in the various Analyze_xxx_In_Decl_Part routines which perform
1627 -- full analysis. The flag prevents the reanalysis of a delayed pragma.
1628
1629 -- Is_Expanded_Contract (Flag1-Sem)
1630 -- Present in N_Contract nodes. Set if the contract has already undergone
1631 -- expansion activities.
1632
1633 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1634 -- A flag set in a Block_Statement node to indicate that it is the
1635 -- expansion of an asynchronous entry call. Such a block needs cleanup
1636 -- handler to assure that the call is cancelled.
1637
1638 -- Is_Boolean_Aspect (Flag16-Sem)
1639 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1640 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1641
1642 -- Is_Checked (Flag11-Sem)
1643 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1644 -- assertion aspect or pragma, or check pragma for an assertion, that
1645 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1646 -- is set (they cannot both be set), then this means that the status of
1647 -- the pragma has been checked at the appropriate point and should not
1648 -- be further modified (in some cases these flags are copied when a
1649 -- pragma is rewritten).
1650
1651 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
1652 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1653 -- related to a checked Ghost entity or encloses a checked Ghost entity.
1654 -- This flag has no relation to Is_Checked.
1655
1656 -- Is_Component_Left_Opnd (Flag13-Sem)
1657 -- Is_Component_Right_Opnd (Flag14-Sem)
1658 -- Present in concatenation nodes, to indicate that the corresponding
1659 -- operand is of the component type of the result. Used in resolving
1660 -- concatenation nodes in instances.
1661
1662 -- Is_Controlling_Actual (Flag16-Sem)
1663 -- This flag is set on an expression that is a controlling argument in
1664 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1665 -- details of its use.
1666
1667 -- Is_Delayed_Aspect (Flag14-Sem)
1668 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1669 -- come from aspect specifications, where the evaluation of the aspect
1670 -- must be delayed to the freeze point. This flag is also set True in
1671 -- the corresponding N_Aspect_Specification node.
1672
1673 -- Is_Disabled (Flag15-Sem)
1674 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1675 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1676 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1677 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1678 -- If this flag is set, the aspect or policy is not analyzed for semantic
1679 -- correctness, so any expressions etc will not be marked as analyzed.
1680
1681 -- Is_Dynamic_Coextension (Flag18-Sem)
1682 -- Present in allocator nodes, to indicate that this is an allocator
1683 -- for an access discriminant of a dynamically allocated object. The
1684 -- coextension must be deallocated and finalized at the same time as
1685 -- the enclosing object.
1686
1687 -- Is_Entry_Barrier_Function (Flag8-Sem)
1688 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1689 -- nodes which emulate the barrier function of a protected entry body.
1690 -- The flag is used when checking for incorrect use of Current_Task.
1691
1692 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1693 -- This flag is set in an N_Function_Call node to indicate that the extra
1694 -- actuals to support a build-in-place style of call have been added to
1695 -- the call.
1696
1697 -- Is_Finalization_Wrapper (Flag9-Sem)
1698 -- This flag is present in N_Block_Statement nodes. It is set when the
1699 -- block acts as a wrapper of a handled construct which has controlled
1700 -- objects. The wrapper prevents interference between exception handlers
1701 -- and At_End handlers.
1702
1703 -- Is_Generic_Contract_Pragma (Flag2-Sem)
1704 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1705 -- a source construct, applies to a generic unit or its body and denotes
1706 -- one of the following contract-related annotations:
1707 -- Abstract_State
1708 -- Contract_Cases
1709 -- Depends
1710 -- Extensions_Visible
1711 -- Global
1712 -- Initial_Condition
1713 -- Initializes
1714 -- Post
1715 -- Post_Class
1716 -- Postcondition
1717 -- Pre
1718 -- Pre_Class
1719 -- Precondition
1720 -- Refined_Depends
1721 -- Refined_Global
1722 -- Refined_Post
1723 -- Refined_State
1724 -- Test_Case
1725
1726 -- Is_Ignored (Flag9-Sem)
1727 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1728 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1729 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1730 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1731 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1732 -- gives a policy for the aspect or pragma, then there are two cases. For
1733 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1734 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1735 -- ignored because of the absence of a -gnata switch. For any other
1736 -- aspects or pragmas, the flag is off. If this flag is set, the
1737 -- aspect/pragma is fully analyzed and checked for other syntactic
1738 -- and semantic errors, but it does not have any semantic effect.
1739
1740 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
1741 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1742 -- related to an ignored Ghost entity or encloses ignored Ghost entity.
1743 -- This flag has no relation to Is_Ignored.
1744
1745 -- Is_In_Discriminant_Check (Flag11-Sem)
1746 -- This flag is present in a selected component, and is used to indicate
1747 -- that the reference occurs within a discriminant check. The
1748 -- significance is that optimizations based on assuming that the
1749 -- discriminant check has a correct value cannot be performed in this
1750 -- case (or the discriminant check may be optimized away).
1751
1752 -- Is_Inherited_Pragma (Flag4-Sem)
1753 -- This flag is set in an N_Pragma node that appears in a N_Contract node
1754 -- to indicate that the pragma has been inherited from a parent context.
1755
1756 -- Is_Machine_Number (Flag11-Sem)
1757 -- This flag is set in an N_Real_Literal node to indicate that the value
1758 -- is a machine number. This avoids some unnecessary cases of converting
1759 -- real literals to machine numbers.
1760
1761 -- Is_Null_Loop (Flag16-Sem)
1762 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1763 -- can be determined to be null at compile time. This is used to remove
1764 -- the loop entirely at expansion time.
1765
1766 -- Is_Overloaded (Flag5-Sem)
1767 -- A flag present in all expression nodes. Used temporarily during
1768 -- overloading determination. The setting of this flag is not relevant
1769 -- once overloading analysis is complete.
1770
1771 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1772 -- A flag present only in N_Op_Expon nodes. It is set when the
1773 -- exponentiation is of the form 2 ** N, where the type of N is an
1774 -- unsigned integral subtype whose size does not exceed the size of
1775 -- Standard_Integer (i.e. a type that can be safely converted to
1776 -- Natural), and the exponentiation appears as the right operand of an
1777 -- integer multiplication or an integer division where the dividend is
1778 -- unsigned. It is also required that overflow checking is off for both
1779 -- the exponentiation and the multiply/divide node. If this set of
1780 -- conditions holds, and the flag is set, then the division or
1781 -- multiplication can be (and is) converted to a shift.
1782
1783 -- Is_Prefixed_Call (Flag17-Sem)
1784 -- This flag is set in a selected component within a generic unit, if
1785 -- it resolves to a prefixed call to a primitive operation. The flag
1786 -- is used to prevent accidental overloadings in an instance, when a
1787 -- primitive operation and a private record component may be homographs.
1788
1789 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1790 -- A flag set in a Subprogram_Body block to indicate that it is the
1791 -- implementation of a protected subprogram. Such a body needs cleanup
1792 -- handler to make sure that the associated protected object is unlocked
1793 -- when the subprogram completes.
1794
1795 -- Is_Qualified_Universal_Literal (Flag4-Sem)
1796 -- Present in N_Qualified_Expression nodes. Set when the qualification is
1797 -- converting a universal literal to a specific type. Such qualifiers aid
1798 -- the resolution of accidental overloading of binary or unary operators
1799 -- which may occur in instances.
1800
1801 -- Is_Static_Coextension (Flag14-Sem)
1802 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1803 -- of an object allocated on the stack rather than the heap.
1804
1805 -- Is_Static_Expression (Flag6-Sem)
1806 -- Indicates that an expression is a static expression according to the
1807 -- rules in (RM 4.9). Note that it is possible for this flag to be set
1808 -- when Raises_Constraint_Error is also set. In practice almost all cases
1809 -- where a static expression is required do not allow an expression which
1810 -- raises Constraint_Error, so almost always, callers should call the
1811 -- Is_Ok_Static_Expression routine instead of testing this flag. See
1812 -- spec of package Sem_Eval for full details on the use of this flag.
1813
1814 -- Is_Subprogram_Descriptor (Flag16-Sem)
1815 -- Present in N_Object_Declaration, and set only for the object
1816 -- declaration generated for a subprogram descriptor in fast exception
1817 -- mode. See Exp_Ch11 for details of use.
1818
1819 -- Is_Task_Allocation_Block (Flag6-Sem)
1820 -- A flag set in a Block_Statement node to indicate that it is the
1821 -- expansion of a task allocator, or the allocator of an object
1822 -- containing tasks. Such a block requires a cleanup handler to call
1823 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1824 -- allocated but not activated when the allocator completes abnormally.
1825
1826 -- Is_Task_Body_Procedure (Flag1-Sem)
1827 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1828 -- nodes which emulate the body of a task unit.
1829
1830 -- Is_Task_Master (Flag5-Sem)
1831 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1832 -- indicate that the construct is a task master (i.e. has declared tasks
1833 -- or declares an access to a task type).
1834
1835 -- Itype (Node1-Sem)
1836 -- Used in N_Itype_Reference node to reference an itype for which it is
1837 -- important to ensure that it is defined. See description of this node
1838 -- for further details.
1839
1840 -- Kill_Range_Check (Flag11-Sem)
1841 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1842 -- result should not be subjected to range checks. This is used for the
1843 -- implementation of Normalize_Scalars.
1844
1845 -- Label_Construct (Node2-Sem)
1846 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1847 -- N_Block_Statement or N_Loop_Statement node to which the label
1848 -- declaration applies. This attribute is used both in the compiler and
1849 -- in the implementation of ASIS queries. The field is left empty for the
1850 -- special labels generated as part of expanding raise statements with a
1851 -- local exception handler.
1852
1853 -- Library_Unit (Node4-Sem)
1854 -- In a stub node, Library_Unit points to the compilation unit node of
1855 -- the corresponding subunit.
1856 --
1857 -- In a with clause node, Library_Unit points to the spec of the with'ed
1858 -- unit.
1859 --
1860 -- In a compilation unit node, the usage depends on the unit type:
1861 --
1862 -- For a library unit body, Library_Unit points to the compilation unit
1863 -- node of the corresponding spec, unless it's a subprogram body with
1864 -- Acts_As_Spec set, in which case it points to itself.
1865 --
1866 -- For a spec, Library_Unit points to the compilation unit node of the
1867 -- corresponding body, if present. The body will be present if the spec
1868 -- is or contains generics that we needed to instantiate. Similarly, the
1869 -- body will be present if we needed it for inlining purposes. Thus, if
1870 -- we have a spec/body pair, both of which are present, they point to
1871 -- each other via Library_Unit.
1872 --
1873 -- For a subunit, Library_Unit points to the compilation unit node of
1874 -- the parent body.
1875 -- ??? not (always) true, in (at least some, maybe all?) cases it points
1876 -- to the corresponding spec for the parent body.
1877 --
1878 -- Note that this field is not used to hold the parent pointer for child
1879 -- unit (which might in any case need to use it for some other purpose as
1880 -- described above). Instead for a child unit, implicit with's are
1881 -- generated for all parents.
1882
1883 -- Local_Raise_Statements (Elist1)
1884 -- This field is present in exception handler nodes. It is set to
1885 -- No_Elist in the normal case. If there is at least one raise statement
1886 -- which can potentially be handled as a local raise, then this field
1887 -- points to a list of raise nodes, which are calls to a routine to raise
1888 -- an exception. These are raise nodes which can be optimized into gotos
1889 -- if the handler turns out to meet the conditions which permit this
1890 -- transformation. Note that this does NOT include instances of the
1891 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1892 -- handled by the back end (using the N_Push/N_Pop mechanism).
1893
1894 -- Loop_Actions (List2-Sem)
1895 -- A list present in Component_Association nodes in array aggregates.
1896 -- Used to collect actions that must be executed within the loop because
1897 -- they may need to be evaluated anew each time through.
1898
1899 -- Limited_View_Installed (Flag18-Sem)
1900 -- Present in With_Clauses and in package specifications. If set on
1901 -- with_clause, it indicates that this clause has created the current
1902 -- limited view of the designated package. On a package specification, it
1903 -- indicates that the limited view has already been created because the
1904 -- package is mentioned in a limited_with_clause in the closure of the
1905 -- unit being compiled.
1906
1907 -- Local_Raise_Not_OK (Flag7-Sem)
1908 -- Present in N_Exception_Handler nodes. Set if the handler contains
1909 -- a construct (reraise statement, or call to subprogram in package
1910 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1911 -- for a local raise (one that could otherwise be converted to a goto).
1912
1913 -- Must_Be_Byte_Aligned (Flag14-Sem)
1914 -- This flag is present in N_Attribute_Reference nodes. It can be set
1915 -- only for the Address and Unrestricted_Access attributes. If set it
1916 -- means that the object for which the address/access is given must be on
1917 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1918 -- of the object is to be made before taking the address (this copy is in
1919 -- the current scope on the stack frame). This is used for certain cases
1920 -- of code generated by the expander that passes parameters by address.
1921 --
1922 -- The reason the copy is not made by the front end is that the back end
1923 -- has more information about type layout and may be able to (but is not
1924 -- guaranteed to) prevent making unnecessary copies.
1925
1926 -- Must_Not_Freeze (Flag8-Sem)
1927 -- A flag present in all expression nodes. Normally expressions cause
1928 -- freezing as described in the RM. If this flag is set, then this is
1929 -- inhibited. This is used by the analyzer and expander to label nodes
1930 -- that are created by semantic analysis or expansion and which must not
1931 -- cause freezing even though they normally would. This flag is also
1932 -- present in an N_Subtype_Indication node, since we also use these in
1933 -- calls to Freeze_Expression.
1934
1935 -- Next_Entity (Node2-Sem)
1936 -- Present in defining identifiers, defining character literals and
1937 -- defining operator symbols (i.e. in all entities). The entities of a
1938 -- scope are chained, and this field is used as the forward pointer for
1939 -- this list. See Einfo for further details.
1940
1941 -- Next_Exit_Statement (Node3-Sem)
1942 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1943 -- chained (in reverse order of appearance) from the First_Exit_Statement
1944 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1945 -- the next entry on this chain (Empty = end of list).
1946
1947 -- Next_Implicit_With (Node3-Sem)
1948 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1949 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1950 -- to prevent multiple with_clauses for the same unit in a given context.
1951 -- A postorder traversal of the tree whose nodes are units and whose
1952 -- links are with_clauses defines the order in which CodePeer must
1953 -- examine a compiled unit and its full context. This ordering ensures
1954 -- that any subprogram call is examined after the subprogram declaration
1955 -- has been seen.
1956
1957 -- Next_Named_Actual (Node4-Sem)
1958 -- Present in parameter association nodes. Set during semantic analysis
1959 -- to point to the next named parameter, where parameters are ordered by
1960 -- declaration order (as opposed to the actual order in the call, which
1961 -- may be different due to named associations). Not that this field
1962 -- points to the explicit actual parameter itself, not to the
1963 -- N_Parameter_Association node (its parent).
1964
1965 -- Next_Pragma (Node1-Sem)
1966 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1967 -- nodes. Currently used for two purposes:
1968 --
1969 -- Create a list of linked Check_Policy pragmas. The head of this list
1970 -- is stored in Opt.Check_Policy_List (which has further details).
1971 --
1972 -- Used by processing for Pre/Postcondition pragmas to store a list of
1973 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1974 -- details).
1975 --
1976 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
1977 -- the apply to the same construct. These are visible/private mode for
1978 -- a package spec and declarative/statement mode for package body.
1979
1980 -- Next_Rep_Item (Node5-Sem)
1981 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1982 -- clauses, record rep clauses, aspect specification nodes. Used to link
1983 -- representation items that apply to an entity. See full description of
1984 -- First_Rep_Item field in Einfo for further details.
1985
1986 -- Next_Use_Clause (Node3-Sem)
1987 -- While use clauses are active during semantic processing, they are
1988 -- chained from the scope stack entry, using Next_Use_Clause as a link
1989 -- pointer, with Empty marking the end of the list. The head pointer is
1990 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1991 -- processing (i.e. when Gigi sees the tree, the contents of this field
1992 -- is undefined and should not be read).
1993
1994 -- No_Ctrl_Actions (Flag7-Sem)
1995 -- Present in N_Assignment_Statement to indicate that no Finalize nor
1996 -- Adjust should take place on this assignment even though the RHS is
1997 -- controlled. Also indicates that the primitive _assign should not be
1998 -- used for a tagged assignment. This is used in init procs and aggregate
1999 -- expansions where the generated assignments are initializations, not
2000 -- real assignments.
2001
2002 -- No_Elaboration_Check (Flag14-Sem)
2003 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
2004 -- that no elaboration check is needed on the call, because it appears in
2005 -- the context of a local Suppress pragma. This is used on calls within
2006 -- task bodies, where the actual elaboration checks are applied after
2007 -- analysis, when the local scope stack is not present.
2008
2009 -- No_Entities_Ref_In_Spec (Flag8-Sem)
2010 -- Present in N_With_Clause nodes. Set if the with clause is on the
2011 -- package or subprogram spec where the main unit is the corresponding
2012 -- body, and no entities of the with'ed unit are referenced by the spec
2013 -- (an entity may still be referenced in the body, so this flag is used
2014 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
2015 -- full details).
2016
2017 -- No_Initialization (Flag13-Sem)
2018 -- Present in N_Object_Declaration and N_Allocator to indicate that the
2019 -- object must not be initialized (by Initialize or call to an init
2020 -- proc). This is needed for controlled aggregates. When the Object
2021 -- declaration has an expression, this flag means that this expression
2022 -- should not be taken into account (needed for in place initialization
2023 -- with aggregates, and for object with an address clause, which are
2024 -- initialized with an assignment at freeze time).
2025
2026 -- No_Minimize_Eliminate (Flag17-Sem)
2027 -- This flag is present in membership operator nodes (N_In/N_Not_In).
2028 -- It is used to indicate that processing for extended overflow checking
2029 -- modes is not required (this is used to prevent infinite recursion).
2030
2031 -- No_Side_Effect_Removal (Flag1-Sem)
2032 -- Present in N_Function_Call nodes. Set when a function call does not
2033 -- require side effect removal. This attribute suppresses the generation
2034 -- of a temporary to capture the result of the function which eventually
2035 -- replaces the function call.
2036
2037 -- No_Truncation (Flag17-Sem)
2038 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
2039 -- only if the RM_Size of the source is greater than the RM_Size of the
2040 -- target for scalar operands. Normally in such a case we truncate some
2041 -- higher order bits of the source, and then sign/zero extend the result
2042 -- to form the output value. But if this flag is set, then we do not do
2043 -- any truncation, so for example, if an 8 bit input is converted to 5
2044 -- bit result which is in fact stored in 8 bits, then the high order
2045 -- three bits of the target result will be copied from the source. This
2046 -- is used for properly setting out of range values for use by pragmas
2047 -- Initialize_Scalars and Normalize_Scalars.
2048
2049 -- Non_Aliased_Prefix (Flag18-Sem)
2050 -- Present in N_Attribute_Reference nodes. Set only for the case of an
2051 -- Unrestricted_Access reference whose prefix is non-aliased, which is
2052 -- the case that is permitted for Unrestricted_Access except when the
2053 -- expected type is a thin pointer to unconstrained array. This flag is
2054 -- to assist in detecting this illegal use of Unrestricted_Access.
2055
2056 -- Null_Excluding_Subtype (Flag16)
2057 -- Present in N_Access_To_Object_Definition. Indicates that the subtype
2058 -- indication carries a null-exclusion indicator, which is distinct from
2059 -- the null-exclusion indicator that may precede the access keyword.
2060
2061 -- Original_Discriminant (Node2-Sem)
2062 -- Present in identifiers. Used in references to discriminants that
2063 -- appear in generic units. Because the names of the discriminants may be
2064 -- different in an instance, we use this field to recover the position of
2065 -- the discriminant in the original type, and replace it with the
2066 -- discriminant at the same position in the instantiated type.
2067
2068 -- Original_Entity (Node2-Sem)
2069 -- Present in numeric literals. Used to denote the named number that has
2070 -- been constant-folded into the given literal. If literal is from
2071 -- source, or the result of some other constant-folding operation, then
2072 -- Original_Entity is empty. This field is needed to handle properly
2073 -- named numbers in generic units, where the Associated_Node field
2074 -- interferes with the Entity field, making it impossible to preserve the
2075 -- original entity at the point of instantiation (ASIS problem).
2076
2077 -- Others_Discrete_Choices (List1-Sem)
2078 -- When a case statement or variant is analyzed, the semantic checks
2079 -- determine the actual list of choices that correspond to an others
2080 -- choice. This list is materialized for later use by the expander and
2081 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
2082 -- this materialized list of choices, which is in standard format for a
2083 -- list of discrete choices, except that of course it cannot contain an
2084 -- N_Others_Choice entry.
2085
2086 -- Parent_Spec (Node4-Sem)
2087 -- For a library unit that is a child unit spec (package or subprogram
2088 -- declaration, generic declaration or instantiation, or library level
2089 -- rename) this field points to the compilation unit node for the parent
2090 -- package specification. This field is Empty for library bodies (the
2091 -- parent spec in this case can be found from the corresponding spec).
2092
2093 -- Premature_Use (Node5-Sem)
2094 -- Present in N_Incomplete_Type_Declaration node. Used for improved
2095 -- error diagnostics: if there is a premature usage of an incomplete
2096 -- type, a subsequently generated error message indicates the position
2097 -- of its full declaration.
2098
2099 -- Present_Expr (Uint3-Sem)
2100 -- Present in an N_Variant node. This has a meaningful value only after
2101 -- Gigi has back annotated the tree with representation information. At
2102 -- this point, it contains a reference to a gcc expression that depends
2103 -- on the values of one or more discriminants. Give a set of discriminant
2104 -- values, this expression evaluates to False (zero) if variant is not
2105 -- present, and True (non-zero) if it is present. See unit Repinfo for
2106 -- further details on gigi back annotation. This field is used during
2107 -- ASIS processing (data decomposition annex) to determine if a field is
2108 -- present or not.
2109
2110 -- Print_In_Hex (Flag13-Sem)
2111 -- Set on an N_Integer_Literal node to indicate that the value should be
2112 -- printed in hexadecimal in the sprint listing. Has no effect on
2113 -- legality or semantics of program, only on the displayed output. This
2114 -- is used to clarify output from the packed array cases.
2115
2116 -- Procedure_To_Call (Node2-Sem)
2117 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2118 -- and N_Extended_Return_Statement nodes. References the entity for the
2119 -- declaration of the procedure to be called to accomplish the required
2120 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
2121 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
2122 -- allocating the return value), and for the Deallocate procedure in the
2123 -- case of N_Free_Statement.
2124
2125 -- Raises_Constraint_Error (Flag7-Sem)
2126 -- Set on an expression whose evaluation will definitely fail constraint
2127 -- error check. In the case of static expressions, this flag must be set
2128 -- accurately (and if it is set, the expression is typically illegal
2129 -- unless it appears as a non-elaborated branch of a short-circuit form).
2130 -- For a non-static expression, this flag may be set whenever an
2131 -- expression (e.g. an aggregate) is known to raise constraint error. If
2132 -- set, the expression definitely will raise CE if elaborated at runtime.
2133 -- If not set, the expression may or may not raise CE. In other words, on
2134 -- static expressions, the flag is set accurately, on non-static
2135 -- expressions it is set conservatively.
2136
2137 -- Redundant_Use (Flag13-Sem)
2138 -- Present in nodes that can appear as an operand in a use clause or use
2139 -- type clause (identifiers, expanded names, attribute references). Set
2140 -- to indicate that a use is redundant (and therefore need not be undone
2141 -- on scope exit).
2142
2143 -- Renaming_Exception (Node2-Sem)
2144 -- Present in N_Exception_Declaration node. Used to point back to the
2145 -- exception renaming for an exception declared within a subprogram.
2146 -- What happens is that an exception declared in a subprogram is moved
2147 -- to the library level with a unique name, and the original exception
2148 -- becomes a renaming. This link from the library level exception to the
2149 -- renaming declaration allows registering of the proper exception name.
2150
2151 -- Return_Statement_Entity (Node5-Sem)
2152 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
2153 -- Points to an E_Return_Statement representing the return statement.
2154
2155 -- Return_Object_Declarations (List3)
2156 -- Present in N_Extended_Return_Statement. Points to a list initially
2157 -- containing a single N_Object_Declaration representing the return
2158 -- object. We use a list (instead of just a pointer to the object decl)
2159 -- because Analyze wants to insert extra actions on this list.
2160
2161 -- Rounded_Result (Flag18-Sem)
2162 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
2163 -- Used in the fixed-point cases to indicate that the result must be
2164 -- rounded as a result of the use of the 'Round attribute. Also used for
2165 -- integer N_Op_Divide nodes to indicate that the result should be
2166 -- rounded to the nearest integer (breaking ties away from zero), rather
2167 -- than truncated towards zero as usual. These rounded integer operations
2168 -- are the result of expansion of rounded fixed-point divide, conversion
2169 -- and multiplication operations.
2170
2171 -- SCIL_Entity (Node4-Sem)
2172 -- Present in SCIL nodes. References the specific tagged type associated
2173 -- with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
2174 -- the controlling type of the call; for an N_SCIL_Membership_Test node
2175 -- generated as part of testing membership in T'Class, this is T; for an
2176 -- N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
2177
2178 -- SCIL_Controlling_Tag (Node5-Sem)
2179 -- Present in N_SCIL_Dispatching_Call nodes. References the controlling
2180 -- tag of a dispatching call. This is usually an N_Selected_Component
2181 -- node (for a _tag component), but may be an N_Object_Declaration or
2182 -- N_Parameter_Specification node in some cases (e.g., for a call to
2183 -- a classwide streaming operation or a call to an instance of
2184 -- Ada.Tags.Generic_Dispatching_Constructor).
2185
2186 -- SCIL_Tag_Value (Node5-Sem)
2187 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
2188 -- of the value that is being tested.
2189
2190 -- SCIL_Target_Prim (Node2-Sem)
2191 -- Present in N_SCIL_Dispatching_Call nodes. References the primitive
2192 -- operation named (statically) in a dispatching call.
2193
2194 -- Scope (Node3-Sem)
2195 -- Present in defining identifiers, defining character literals and
2196 -- defining operator symbols (i.e. in all entities). The entities of a
2197 -- scope all use this field to reference the corresponding scope entity.
2198 -- See Einfo for further details.
2199
2200 -- Shift_Count_OK (Flag4-Sem)
2201 -- A flag present in shift nodes to indicate that the shift count is
2202 -- known to be in range, i.e. is in the range from zero to word length
2203 -- minus one. If this flag is not set, then the shift count may be
2204 -- outside this range, i.e. larger than the word length, and the code
2205 -- must ensure that such shift counts give the appropriate result.
2206
2207 -- Source_Type (Node1-Sem)
2208 -- Used in an N_Validate_Unchecked_Conversion node to point to the
2209 -- source type entity for the unchecked conversion instantiation
2210 -- which gigi must do size validation for.
2211
2212 -- Split_PPC (Flag17)
2213 -- When a Pre or Post aspect specification is processed, it is broken
2214 -- into AND THEN sections. The left most section has Split_PPC set to
2215 -- False, indicating that it is the original specification (e.g. for
2216 -- posting errors). For other sections, Split_PPC is set to True.
2217 -- This flag is set in both the N_Aspect_Specification node itself,
2218 -- and in the pragma which is generated from this node.
2219
2220 -- Storage_Pool (Node1-Sem)
2221 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2222 -- and N_Extended_Return_Statement nodes. References the entity for the
2223 -- storage pool to be used for the allocate or free call or for the
2224 -- allocation of the returned value from function. Empty indicates that
2225 -- the global default pool is to be used. Note that in the case
2226 -- of a return statement, this field is set only if the function returns
2227 -- value of a type whose size is not known at compile time on the
2228 -- secondary stack.
2229
2230 -- Suppress_Assignment_Checks (Flag18-Sem)
2231 -- Used in generated N_Assignment_Statement nodes to suppress predicate
2232 -- and range checks in cases where the generated code knows that the
2233 -- value being assigned is in range and satisfies any predicate. Also
2234 -- can be set in N_Object_Declaration nodes, to similarly suppress any
2235 -- checks on the initializing value. In assignment statements it also
2236 -- suppresses access checks in the generated code for out- and in-out
2237 -- parameters in entry calls.
2238
2239 -- Suppress_Loop_Warnings (Flag17-Sem)
2240 -- Used in N_Loop_Statement node to indicate that warnings within the
2241 -- body of the loop should be suppressed. This is set when the range
2242 -- of a FOR loop is known to be null, or is probably null (loop would
2243 -- only execute if invalid values are present).
2244
2245 -- Target_Type (Node2-Sem)
2246 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
2247 -- type entity for the unchecked conversion instantiation which gigi must
2248 -- do size validation for.
2249
2250 -- Then_Actions (List3-Sem)
2251 -- This field is present in if expression nodes. During code expansion
2252 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
2253 -- at an appropriate place in the tree to get elaborated at the right
2254 -- time. For if expressions, we have to be sure that the actions for
2255 -- for the Then branch are only elaborated if the condition is True.
2256 -- The Then_Actions field is used as a temporary parking place for
2257 -- these actions. The final tree is always rewritten to eliminate the
2258 -- need for this field, so in the tree passed to Gigi, this field is
2259 -- always set to No_List.
2260
2261 -- Treat_Fixed_As_Integer (Flag14-Sem)
2262 -- This flag appears in operator nodes for divide, multiply, mod and rem
2263 -- on fixed-point operands. It indicates that the operands are to be
2264 -- treated as integer values, ignoring small values. This flag is only
2265 -- set as a result of expansion of fixed-point operations. Typically a
2266 -- fixed-point multiplication in the source generates subsidiary
2267 -- multiplication and division operations that work with the underlying
2268 -- integer values and have this flag set. Note that this flag is not
2269 -- needed on other arithmetic operations (add, neg, subtract etc.) since
2270 -- in these cases it is always the case that fixed is treated as integer.
2271 -- The Etype field MUST be set if this flag is set. The analyzer knows to
2272 -- leave such nodes alone, and whoever makes them must set the correct
2273 -- Etype value.
2274
2275 -- TSS_Elist (Elist3-Sem)
2276 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2277 -- entries for each TSS (type support subprogram) associated with the
2278 -- frozen type. The elements of the list are the entities for the
2279 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2280 -- if there are no type support subprograms for the type or if the freeze
2281 -- node is not for a type.
2282
2283 -- Uneval_Old_Accept (Flag7-Sem)
2284 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'A'
2285 -- (accept) at the point where the pragma is encountered (including the
2286 -- case of a pragma generated from an aspect specification). It is this
2287 -- setting that is relevant, rather than the setting at the point where
2288 -- a contract is finally analyzed after the delay till the freeze point.
2289
2290 -- Uneval_Old_Warn (Flag18-Sem)
2291 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'W'
2292 -- (warn) at the point where the pragma is encountered (including the
2293 -- case of a pragma generated from an aspect specification). It is this
2294 -- setting that is relevant, rather than the setting at the point where
2295 -- a contract is finally analyzed after the delay till the freeze point.
2296
2297 -- Unreferenced_In_Spec (Flag7-Sem)
2298 -- Present in N_With_Clause nodes. Set if the with clause is on the
2299 -- package or subprogram spec where the main unit is the corresponding
2300 -- body, and is not referenced by the spec (it may still be referenced by
2301 -- the body, so this flag is used to generate the proper message (see
2302 -- Sem_Util.Check_Unused_Withs for details)
2303
2304 -- Uninitialized_Variable (Node3-Sem)
2305 -- Present in N_Formal_Private_Type_Definition and in N_Private_
2306 -- Extension_Declarations. Indicates that a variable in a generic unit
2307 -- whose type is a formal private or derived type is read without being
2308 -- initialized. Used to warn if the corresponding actual type is not
2309 -- a fully initialized type.
2310
2311 -- Used_Operations (Elist5-Sem)
2312 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2313 -- are made potentially use-visible by the clause. Simplifies processing
2314 -- on exit from the scope of the use_type_clause, in particular in the
2315 -- case of Use_All_Type, when those operations several scopes.
2316
2317 -- Was_Expression_Function (Flag18-Sem)
2318 -- Present in N_Subprogram_Body. True if the original source had an
2319 -- N_Expression_Function, which was converted to the N_Subprogram_Body
2320 -- by Analyze_Expression_Function. This is needed by ASIS to correctly
2321 -- recreate the expression function (for the instance body) when the
2322 -- completion of a generic function declaration is an expression
2323 -- function.
2324
2325 -- Was_Originally_Stub (Flag13-Sem)
2326 -- This flag is set in the node for a proper body that replaces stub.
2327 -- During the analysis procedure, stubs in some situations get rewritten
2328 -- by the corresponding bodies, and we set this flag to remember that
2329 -- this happened. Note that it is not good enough to rely on the use of
2330 -- Original_Node here because of the case of nested instantiations where
2331 -- the substituted node can be copied.
2332
2333 -- Withed_Body (Node1-Sem)
2334 -- Present in N_With_Clause nodes. Set if the unit in whose context
2335 -- the with_clause appears instantiates a generic contained in the
2336 -- library unit of the with_clause and as a result loads its body.
2337 -- Used for a more precise unit traversal for CodePeer.
2338
2339 --------------------------------------------------
2340 -- Note on Use of End_Label and End_Span Fields --
2341 --------------------------------------------------
2342
2343 -- Several constructs have end lines:
2344
2345 -- Loop Statement end loop [loop_IDENTIFIER];
2346 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2347 -- Task Definition end [task_IDENTIFIER]
2348 -- Protected Definition end [protected_IDENTIFIER]
2349 -- Protected Body end [protected_IDENTIFIER]
2350
2351 -- Block Statement end [block_IDENTIFIER];
2352 -- Subprogram Body end [DESIGNATOR];
2353 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2354 -- Task Body end [task_IDENTIFIER];
2355 -- Accept Statement end [entry_IDENTIFIER]];
2356 -- Entry Body end [entry_IDENTIFIER];
2357
2358 -- If Statement end if;
2359 -- Case Statement end case;
2360
2361 -- Record Definition end record;
2362 -- Enumeration Definition );
2363
2364 -- The End_Label and End_Span fields are used to mark the locations of
2365 -- these lines, and also keep track of the label in the case where a label
2366 -- is present.
2367
2368 -- For the first group above, the End_Label field of the corresponding node
2369 -- is used to point to the label identifier. In the case where there is no
2370 -- label in the source, the parser supplies a dummy identifier (with
2371 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2372 -- marks the location of the token following the END token.
2373
2374 -- For the second group, the use of End_Label is similar, but the End_Label
2375 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2376 -- simply because in some cases there is no room in the parent node.
2377
2378 -- For the third group, there is never any label, and instead of using
2379 -- End_Label, we use the End_Span field which gives the location of the
2380 -- token following END, relative to the starting Sloc of the construct,
2381 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2382 -- following the End_Label.
2383
2384 -- The record definition case is handled specially, we treat it as though
2385 -- it required an optional label which is never present, and so the parser
2386 -- always builds a dummy identifier with Comes From Source set False. The
2387 -- reason we do this, rather than using End_Span in this case, is that we
2388 -- want to generate a cross-ref entry for the end of a record, since it
2389 -- represents a scope for name declaration purposes.
2390
2391 -- The enumeration definition case is handled in an exactly similar manner,
2392 -- building a dummy identifier to get a cross-reference.
2393
2394 -- Note: the reason we store the difference as a Uint, instead of storing
2395 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2396 -- distinguished from other types of values, and we count on all general
2397 -- use fields being self describing. To make things easier for clients,
2398 -- note that we provide function End_Location, and procedure
2399 -- Set_End_Location to allow access to the logical value (which is the
2400 -- Source_Ptr value for the end token).
2401
2402 ---------------------
2403 -- Syntactic Nodes --
2404 ---------------------
2405
2406 ---------------------
2407 -- 2.3 Identifier --
2408 ---------------------
2409
2410 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2411 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2412
2413 -- An IDENTIFIER shall not be a reserved word
2414
2415 -- In the Ada grammar identifiers are the bottom level tokens which have
2416 -- very few semantics. Actual program identifiers are direct names. If
2417 -- we were being 100% honest with the grammar, then we would have a node
2418 -- called N_Direct_Name which would point to an identifier. However,
2419 -- that's too many extra nodes, so we just use the N_Identifier node
2420 -- directly as a direct name, and it contains the expression fields and
2421 -- Entity field that correspond to its use as a direct name. In those
2422 -- few cases where identifiers appear in contexts where they are not
2423 -- direct names (pragmas, pragma argument associations, attribute
2424 -- references and attribute definition clauses), the Chars field of the
2425 -- node contains the Name_Id for the identifier name.
2426
2427 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2428 -- cases. First, an incorrect use of a reserved word as an identifier is
2429 -- diagnosed and then treated as a normal identifier. Second, an
2430 -- attribute designator of the form of a reserved word (access, delta,
2431 -- digits, range) is treated as an identifier.
2432
2433 -- Note: The set of letters that is permitted in an identifier depends
2434 -- on the character set in use. See package Csets for full details.
2435
2436 -- N_Identifier
2437 -- Sloc points to identifier
2438 -- Chars (Name1) contains the Name_Id for the identifier
2439 -- Entity (Node4-Sem)
2440 -- Associated_Node (Node4-Sem)
2441 -- Original_Discriminant (Node2-Sem)
2442 -- Redundant_Use (Flag13-Sem)
2443 -- Atomic_Sync_Required (Flag14-Sem)
2444 -- Has_Private_View (Flag11-Sem) (set in generic units)
2445 -- plus fields for expression
2446
2447 --------------------------
2448 -- 2.4 Numeric Literal --
2449 --------------------------
2450
2451 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2452
2453 ----------------------------
2454 -- 2.4.1 Decimal Literal --
2455 ----------------------------
2456
2457 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2458
2459 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2460
2461 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2462
2463 -- Decimal literals appear in the tree as either integer literal nodes
2464 -- or real literal nodes, depending on whether a period is present.
2465
2466 -- Note: literal nodes appear as a result of direct use of literals
2467 -- in the source program, and also as the result of evaluating
2468 -- expressions at compile time. In the latter case, it is possible
2469 -- to construct real literals that have no syntactic representation
2470 -- using the standard literal format. Such literals are listed by
2471 -- Sprint using the notation [numerator / denominator].
2472
2473 -- Note: the value of an integer literal node created by the front end
2474 -- is never outside the range of values of the base type. However, it
2475 -- can be the case that the created value is outside the range of the
2476 -- particular subtype. This happens in the case of integer overflows
2477 -- with checks suppressed.
2478
2479 -- N_Integer_Literal
2480 -- Sloc points to literal
2481 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2482 -- has been constant-folded into its literal value.
2483 -- Intval (Uint3) contains integer value of literal
2484 -- Print_In_Hex (Flag13-Sem)
2485 -- plus fields for expression
2486
2487 -- N_Real_Literal
2488 -- Sloc points to literal
2489 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2490 -- has been constant-folded into its literal value.
2491 -- Realval (Ureal3) contains real value of literal
2492 -- Corresponding_Integer_Value (Uint4-Sem)
2493 -- Is_Machine_Number (Flag11-Sem)
2494 -- plus fields for expression
2495
2496 --------------------------
2497 -- 2.4.2 Based Literal --
2498 --------------------------
2499
2500 -- BASED_LITERAL ::=
2501 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2502
2503 -- BASE ::= NUMERAL
2504
2505 -- BASED_NUMERAL ::=
2506 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2507
2508 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2509
2510 -- Based literals appear in the tree as either integer literal nodes
2511 -- or real literal nodes, depending on whether a period is present.
2512
2513 ----------------------------
2514 -- 2.5 Character Literal --
2515 ----------------------------
2516
2517 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2518
2519 -- N_Character_Literal
2520 -- Sloc points to literal
2521 -- Chars (Name1) contains the Name_Id for the identifier
2522 -- Char_Literal_Value (Uint2) contains the literal value
2523 -- Entity (Node4-Sem)
2524 -- Associated_Node (Node4-Sem)
2525 -- Has_Private_View (Flag11-Sem) set in generic units.
2526 -- plus fields for expression
2527
2528 -- Note: the Entity field will be missing (set to Empty) for character
2529 -- literals whose type is Standard.Wide_Character or Standard.Character
2530 -- or a type derived from one of these two. In this case the character
2531 -- literal stands for its own coding. The reason we take this irregular
2532 -- short cut is to avoid the need to build lots of junk defining
2533 -- character literal nodes.
2534
2535 -------------------------
2536 -- 2.6 String Literal --
2537 -------------------------
2538
2539 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2540
2541 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2542 -- single GRAPHIC_CHARACTER other than a quotation mark.
2543 --
2544 -- Is_Folded_In_Parser is True if the parser created this literal by
2545 -- folding a sequence of "&" operators. For example, if the source code
2546 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2547 -- is set. This flag is needed because the parser doesn't know about
2548 -- visibility, so the folded result might be wrong, and semantic
2549 -- analysis needs to check for that.
2550
2551 -- N_String_Literal
2552 -- Sloc points to literal
2553 -- Strval (Str3) contains Id of string value
2554 -- Has_Wide_Character (Flag11-Sem)
2555 -- Has_Wide_Wide_Character (Flag13-Sem)
2556 -- Is_Folded_In_Parser (Flag4)
2557 -- plus fields for expression
2558
2559 ------------------
2560 -- 2.7 Comment --
2561 ------------------
2562
2563 -- A COMMENT starts with two adjacent hyphens and extends up to the
2564 -- end of the line. A COMMENT may appear on any line of a program.
2565
2566 -- Comments are skipped by the scanner and do not appear in the tree.
2567 -- It is possible to reconstruct the position of comments with respect
2568 -- to the elements of the tree by using the source position (Sloc)
2569 -- pointers that appear in every tree node.
2570
2571 -----------------
2572 -- 2.8 Pragma --
2573 -----------------
2574
2575 -- PRAGMA ::= pragma IDENTIFIER
2576 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2577
2578 -- Note that a pragma may appear in the tree anywhere a declaration
2579 -- or a statement may appear, as well as in some other situations
2580 -- which are explicitly documented.
2581
2582 -- N_Pragma
2583 -- Sloc points to PRAGMA
2584 -- Next_Pragma (Node1-Sem)
2585 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2586 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2587 -- Pragma_Identifier (Node4)
2588 -- Next_Rep_Item (Node5-Sem)
2589 -- Class_Present (Flag6) set if from Aspect with 'Class
2590 -- From_Aspect_Specification (Flag13-Sem)
2591 -- Import_Interface_Present (Flag16-Sem)
2592 -- Is_Analyzed_Pragma (Flag5-Sem)
2593 -- Is_Checked (Flag11-Sem)
2594 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
2595 -- Is_Delayed_Aspect (Flag14-Sem)
2596 -- Is_Disabled (Flag15-Sem)
2597 -- Is_Generic_Contract_Pragma (Flag2-Sem)
2598 -- Is_Ignored (Flag9-Sem)
2599 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
2600 -- Is_Inherited_Pragma (Flag4-Sem)
2601 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2602 -- Uneval_Old_Accept (Flag7-Sem)
2603 -- Uneval_Old_Warn (Flag18-Sem)
2604
2605 -- Note: we should have a section on what pragmas are passed on to
2606 -- the back end to be processed. This section should note that pragma
2607 -- Psect_Object is always converted to Common_Object, but there are
2608 -- undoubtedly many other similar notes required ???
2609
2610 -- Note: utility functions Pragma_Name_Unmapped and Pragma_Name may be
2611 -- applied to pragma nodes to obtain the Chars or its mapped version.
2612
2613 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2614 -- aspect name, as does the Pragma_Identifier. In this case if the
2615 -- pragma has a local name argument (such as pragma Inline), it is
2616 -- resolved to point to the specific entity affected by the pragma.
2617
2618 --------------------------------------
2619 -- 2.8 Pragma Argument Association --
2620 --------------------------------------
2621
2622 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2623 -- [pragma_argument_IDENTIFIER =>] NAME
2624 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2625
2626 -- In Ada 2012, there are two more possibilities:
2627
2628 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2629 -- [pragma_argument_ASPECT_MARK =>] NAME
2630 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2631
2632 -- where the interesting allowed cases (which do not fit the syntax of
2633 -- the first alternative above) are
2634
2635 -- ASPECT_MARK => Pre'Class |
2636 -- Post'Class |
2637 -- Type_Invariant'Class |
2638 -- Invariant'Class
2639
2640 -- We allow this special usage in all Ada modes, but it would be a
2641 -- pain to allow these aspects to pervade the pragma syntax, and the
2642 -- representation of pragma nodes internally. So what we do is to
2643 -- replace these ASPECT_MARK forms with identifiers whose name is one
2644 -- of the special internal names _Pre, _Post or _Type_Invariant.
2645
2646 -- We do a similar replacement of these Aspect_Mark forms in the
2647 -- Expression of a pragma argument association for the cases of
2648 -- the first arguments of any Check pragmas and Check_Policy pragmas
2649
2650 -- N_Pragma_Argument_Association
2651 -- Sloc points to first token in association
2652 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2653 -- Expression_Copy (Node2-Sem)
2654 -- Expression (Node3)
2655
2656 ------------------------
2657 -- 2.9 Reserved Word --
2658 ------------------------
2659
2660 -- Reserved words are parsed by the scanner, and returned as the
2661 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2662
2663 ----------------------------
2664 -- 3.1 Basic Declaration --
2665 ----------------------------
2666
2667 -- BASIC_DECLARATION ::=
2668 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2669 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2670 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2671 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2672 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2673 -- | GENERIC_INSTANTIATION
2674
2675 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2676 -- see further description in section on semantic nodes.
2677
2678 -- Also, in the tree that is constructed, a pragma may appear
2679 -- anywhere that a declaration may appear.
2680
2681 ------------------------------
2682 -- 3.1 Defining Identifier --
2683 ------------------------------
2684
2685 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2686
2687 -- A defining identifier is an entity, which has additional fields
2688 -- depending on the setting of the Ekind field. These additional
2689 -- fields are defined (and access subprograms declared) in package
2690 -- Einfo.
2691
2692 -- Note: N_Defining_Identifier is an extended node whose fields are
2693 -- deliberate layed out to match the layout of fields in an ordinary
2694 -- N_Identifier node allowing for easy alteration of an identifier
2695 -- node into a defining identifier node. For details, see procedure
2696 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2697
2698 -- N_Defining_Identifier
2699 -- Sloc points to identifier
2700 -- Chars (Name1) contains the Name_Id for the identifier
2701 -- Next_Entity (Node2-Sem)
2702 -- Scope (Node3-Sem)
2703 -- Etype (Node5-Sem)
2704
2705 -----------------------------
2706 -- 3.2.1 Type Declaration --
2707 -----------------------------
2708
2709 -- TYPE_DECLARATION ::=
2710 -- FULL_TYPE_DECLARATION
2711 -- | INCOMPLETE_TYPE_DECLARATION
2712 -- | PRIVATE_TYPE_DECLARATION
2713 -- | PRIVATE_EXTENSION_DECLARATION
2714
2715 ----------------------------------
2716 -- 3.2.1 Full Type Declaration --
2717 ----------------------------------
2718
2719 -- FULL_TYPE_DECLARATION ::=
2720 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2721 -- is TYPE_DEFINITION
2722 -- [ASPECT_SPECIFICATIONS];
2723 -- | TASK_TYPE_DECLARATION
2724 -- | PROTECTED_TYPE_DECLARATION
2725
2726 -- The full type declaration node is used only for the first case. The
2727 -- second case (concurrent type declaration), is represented directly
2728 -- by a task type declaration or a protected type declaration.
2729
2730 -- N_Full_Type_Declaration
2731 -- Sloc points to TYPE
2732 -- Defining_Identifier (Node1)
2733 -- Incomplete_View (Node2-Sem)
2734 -- Discriminant_Specifications (List4) (set to No_List if none)
2735 -- Type_Definition (Node3)
2736 -- Discr_Check_Funcs_Built (Flag11-Sem)
2737
2738 ----------------------------
2739 -- 3.2.1 Type Definition --
2740 ----------------------------
2741
2742 -- TYPE_DEFINITION ::=
2743 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2744 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2745 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2746 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2747
2748 --------------------------------
2749 -- 3.2.2 Subtype Declaration --
2750 --------------------------------
2751
2752 -- SUBTYPE_DECLARATION ::=
2753 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2754 -- [ASPECT_SPECIFICATIONS];
2755
2756 -- The subtype indication field is set to Empty for subtypes
2757 -- declared in package Standard (Positive, Natural).
2758
2759 -- N_Subtype_Declaration
2760 -- Sloc points to SUBTYPE
2761 -- Defining_Identifier (Node1)
2762 -- Null_Exclusion_Present (Flag11)
2763 -- Subtype_Indication (Node5)
2764 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2765 -- Exception_Junk (Flag8-Sem)
2766 -- Has_Dynamic_Range_Check (Flag12-Sem)
2767
2768 -------------------------------
2769 -- 3.2.2 Subtype Indication --
2770 -------------------------------
2771
2772 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2773
2774 -- Note: if no constraint is present, the subtype indication appears
2775 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2776 -- node is used only if a constraint is present.
2777
2778 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2779 -- with the null-exclusion part (see AI-231), we had to introduce a new
2780 -- attribute in all the parents of subtype_indication nodes to indicate
2781 -- if the null-exclusion is present.
2782
2783 -- Note: the reason that this node has expression fields is that a
2784 -- subtype indication can appear as an operand of a membership test.
2785
2786 -- N_Subtype_Indication
2787 -- Sloc points to first token of subtype mark
2788 -- Subtype_Mark (Node4)
2789 -- Constraint (Node3)
2790 -- Etype (Node5-Sem)
2791 -- Must_Not_Freeze (Flag8-Sem)
2792
2793 -- Note: Depending on context, the Etype is either the entity of the
2794 -- Subtype_Mark field, or it is an itype constructed to reify the
2795 -- subtype indication. In particular, such itypes are created for a
2796 -- subtype indication that appears in an array type declaration. This
2797 -- simplifies constraint checking in indexed components.
2798
2799 -- For subtype indications that appear in scalar type and subtype
2800 -- declarations, the Etype is the entity of the subtype mark.
2801
2802 -------------------------
2803 -- 3.2.2 Subtype Mark --
2804 -------------------------
2805
2806 -- SUBTYPE_MARK ::= subtype_NAME
2807
2808 -----------------------
2809 -- 3.2.2 Constraint --
2810 -----------------------
2811
2812 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2813
2814 ------------------------------
2815 -- 3.2.2 Scalar Constraint --
2816 ------------------------------
2817
2818 -- SCALAR_CONSTRAINT ::=
2819 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2820
2821 ---------------------------------
2822 -- 3.2.2 Composite Constraint --
2823 ---------------------------------
2824
2825 -- COMPOSITE_CONSTRAINT ::=
2826 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2827
2828 -------------------------------
2829 -- 3.3.1 Object Declaration --
2830 -------------------------------
2831
2832 -- OBJECT_DECLARATION ::=
2833 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2834 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2835 -- [ASPECT_SPECIFICATIONS];
2836 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2837 -- ACCESS_DEFINITION [:= EXPRESSION]
2838 -- [ASPECT_SPECIFICATIONS];
2839 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2840 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2841 -- [ASPECT_SPECIFICATIONS];
2842 -- | SINGLE_TASK_DECLARATION
2843 -- | SINGLE_PROTECTED_DECLARATION
2844
2845 -- Note: aliased is not permitted in Ada 83 mode
2846
2847 -- The N_Object_Declaration node is only for the first three cases.
2848 -- Single task declaration is handled by P_Task (9.1)
2849 -- Single protected declaration is handled by P_protected (9.5)
2850
2851 -- Although the syntax allows multiple identifiers in the list, the
2852 -- semantics is as though successive declarations were given with
2853 -- identical type definition and expression components. To simplify
2854 -- semantic processing, the parser represents a multiple declaration
2855 -- case as a sequence of single declarations, using the More_Ids and
2856 -- Prev_Ids flags to preserve the original source form as described
2857 -- in the section on "Handling of Defining Identifier Lists".
2858
2859 -- The flag Has_Init_Expression is set if an initializing expression
2860 -- is present. Normally it is set if and only if Expression contains
2861 -- a non-empty value, but there is an exception to this. When the
2862 -- initializing expression is an aggregate which requires explicit
2863 -- assignments, the Expression field gets set to Empty, but this flag
2864 -- is still set, so we don't forget we had an initializing expression.
2865
2866 -- Note: if a range check is required for the initialization
2867 -- expression then the Do_Range_Check flag is set in the Expression,
2868 -- with the check being done against the type given by the object
2869 -- definition, which is also the Etype of the defining identifier.
2870
2871 -- Note: the contents of the Expression field must be ignored (i.e.
2872 -- treated as though it were Empty) if No_Initialization is set True.
2873
2874 -- Note: the back end places some restrictions on the form of the
2875 -- Expression field. If the object being declared is Atomic, then
2876 -- the Expression may not have the form of an aggregate (since this
2877 -- might cause the back end to generate separate assignments). In this
2878 -- case the front end must generate an extra temporary and initialize
2879 -- this temporary as required (the temporary itself is not atomic).
2880
2881 -- Note: there is not node kind for object definition. Instead, the
2882 -- corresponding field holds a subtype indication, an array type
2883 -- definition, or (Ada 2005, AI-406) an access definition.
2884
2885 -- N_Object_Declaration
2886 -- Sloc points to first identifier
2887 -- Defining_Identifier (Node1)
2888 -- Aliased_Present (Flag4)
2889 -- Constant_Present (Flag17) set if CONSTANT appears
2890 -- Null_Exclusion_Present (Flag11)
2891 -- Object_Definition (Node4) subtype indic./array type def./access def.
2892 -- Expression (Node3) (set to Empty if not present)
2893 -- Handler_List_Entry (Node2-Sem)
2894 -- Corresponding_Generic_Association (Node5-Sem)
2895 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2896 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2897 -- No_Initialization (Flag13-Sem)
2898 -- Assignment_OK (Flag15-Sem)
2899 -- Exception_Junk (Flag8-Sem)
2900 -- Is_Subprogram_Descriptor (Flag16-Sem)
2901 -- Has_Init_Expression (Flag14)
2902 -- Suppress_Assignment_Checks (Flag18-Sem)
2903
2904 -------------------------------------
2905 -- 3.3.1 Defining Identifier List --
2906 -------------------------------------
2907
2908 -- DEFINING_IDENTIFIER_LIST ::=
2909 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2910
2911 -------------------------------
2912 -- 3.3.2 Number Declaration --
2913 -------------------------------
2914
2915 -- NUMBER_DECLARATION ::=
2916 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2917
2918 -- Although the syntax allows multiple identifiers in the list, the
2919 -- semantics is as though successive declarations were given with
2920 -- identical expressions. To simplify semantic processing, the parser
2921 -- represents a multiple declaration case as a sequence of single
2922 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2923 -- the original source form as described in the section on "Handling
2924 -- of Defining Identifier Lists".
2925
2926 -- N_Number_Declaration
2927 -- Sloc points to first identifier
2928 -- Defining_Identifier (Node1)
2929 -- Expression (Node3)
2930 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2931 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2932
2933 ----------------------------------
2934 -- 3.4 Derived Type Definition --
2935 ----------------------------------
2936
2937 -- DERIVED_TYPE_DEFINITION ::=
2938 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2939 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2940
2941 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2942 -- in Ada 83 mode
2943
2944 -- Note: a record extension part is required if ABSTRACT is present
2945
2946 -- N_Derived_Type_Definition
2947 -- Sloc points to NEW
2948 -- Abstract_Present (Flag4)
2949 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2950 -- Subtype_Indication (Node5)
2951 -- Record_Extension_Part (Node3) (set to Empty if not present)
2952 -- Limited_Present (Flag17)
2953 -- Task_Present (Flag5) set in task interfaces
2954 -- Protected_Present (Flag6) set in protected interfaces
2955 -- Synchronized_Present (Flag7) set in interfaces
2956 -- Interface_List (List2) (set to No_List if none)
2957 -- Interface_Present (Flag16) set in abstract interfaces
2958
2959 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2960 -- Interface_List, and Interface_Present are used for abstract
2961 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2962
2963 ---------------------------
2964 -- 3.5 Range Constraint --
2965 ---------------------------
2966
2967 -- RANGE_CONSTRAINT ::= range RANGE
2968
2969 -- N_Range_Constraint
2970 -- Sloc points to RANGE
2971 -- Range_Expression (Node4)
2972
2973 ----------------
2974 -- 3.5 Range --
2975 ----------------
2976
2977 -- RANGE ::=
2978 -- RANGE_ATTRIBUTE_REFERENCE
2979 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2980
2981 -- Note: the case of a range given as a range attribute reference
2982 -- appears directly in the tree as an attribute reference.
2983
2984 -- Note: the field name for a reference to a range is Range_Expression
2985 -- rather than Range, because range is a reserved keyword in Ada.
2986
2987 -- Note: the reason that this node has expression fields is that a
2988 -- range can appear as an operand of a membership test. The Etype
2989 -- field is the type of the range (we do NOT construct an implicit
2990 -- subtype to represent the range exactly).
2991
2992 -- N_Range
2993 -- Sloc points to ..
2994 -- Low_Bound (Node1)
2995 -- High_Bound (Node2)
2996 -- Includes_Infinities (Flag11)
2997 -- plus fields for expression
2998
2999 -- Note: if the range appears in a context, such as a subtype
3000 -- declaration, where range checks are required on one or both of
3001 -- the expression fields, then type conversion nodes are inserted
3002 -- to represent the required checks.
3003
3004 ----------------------------------------
3005 -- 3.5.1 Enumeration Type Definition --
3006 ----------------------------------------
3007
3008 -- ENUMERATION_TYPE_DEFINITION ::=
3009 -- (ENUMERATION_LITERAL_SPECIFICATION
3010 -- {, ENUMERATION_LITERAL_SPECIFICATION})
3011
3012 -- Note: the Literals field in the node described below is null for
3013 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
3014 -- which special processing handles these types as special cases.
3015
3016 -- N_Enumeration_Type_Definition
3017 -- Sloc points to left parenthesis
3018 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
3019 -- End_Label (Node4) (set to Empty if internally generated record)
3020
3021 ----------------------------------------------
3022 -- 3.5.1 Enumeration Literal Specification --
3023 ----------------------------------------------
3024
3025 -- ENUMERATION_LITERAL_SPECIFICATION ::=
3026 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
3027
3028 ---------------------------------------
3029 -- 3.5.1 Defining Character Literal --
3030 ---------------------------------------
3031
3032 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
3033
3034 -- A defining character literal is an entity, which has additional
3035 -- fields depending on the setting of the Ekind field. These
3036 -- additional fields are defined (and access subprograms declared)
3037 -- in package Einfo.
3038
3039 -- Note: N_Defining_Character_Literal is an extended node whose fields
3040 -- are deliberate layed out to match the layout of fields in an ordinary
3041 -- N_Character_Literal node allowing for easy alteration of a character
3042 -- literal node into a defining character literal node. For details, see
3043 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
3044
3045 -- N_Defining_Character_Literal
3046 -- Sloc points to literal
3047 -- Chars (Name1) contains the Name_Id for the identifier
3048 -- Next_Entity (Node2-Sem)
3049 -- Scope (Node3-Sem)
3050 -- Etype (Node5-Sem)
3051
3052 ------------------------------------
3053 -- 3.5.4 Integer Type Definition --
3054 ------------------------------------
3055
3056 -- Note: there is an error in this rule in the latest version of the
3057 -- grammar, so we have retained the old rule pending clarification.
3058
3059 -- INTEGER_TYPE_DEFINITION ::=
3060 -- SIGNED_INTEGER_TYPE_DEFINITION
3061 -- | MODULAR_TYPE_DEFINITION
3062
3063 -------------------------------------------
3064 -- 3.5.4 Signed Integer Type Definition --
3065 -------------------------------------------
3066
3067 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
3068 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3069
3070 -- Note: the Low_Bound and High_Bound fields are set to Empty
3071 -- for integer types defined in package Standard.
3072
3073 -- N_Signed_Integer_Type_Definition
3074 -- Sloc points to RANGE
3075 -- Low_Bound (Node1)
3076 -- High_Bound (Node2)
3077
3078 ------------------------------------
3079 -- 3.5.4 Modular Type Definition --
3080 ------------------------------------
3081
3082 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
3083
3084 -- N_Modular_Type_Definition
3085 -- Sloc points to MOD
3086 -- Expression (Node3)
3087
3088 ---------------------------------
3089 -- 3.5.6 Real Type Definition --
3090 ---------------------------------
3091
3092 -- REAL_TYPE_DEFINITION ::=
3093 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
3094
3095 --------------------------------------
3096 -- 3.5.7 Floating Point Definition --
3097 --------------------------------------
3098
3099 -- FLOATING_POINT_DEFINITION ::=
3100 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
3101
3102 -- Note: The Digits_Expression and Real_Range_Specifications fields
3103 -- are set to Empty for floating-point types declared in Standard.
3104
3105 -- N_Floating_Point_Definition
3106 -- Sloc points to DIGITS
3107 -- Digits_Expression (Node2)
3108 -- Real_Range_Specification (Node4) (set to Empty if not present)
3109
3110 -------------------------------------
3111 -- 3.5.7 Real Range Specification --
3112 -------------------------------------
3113
3114 -- REAL_RANGE_SPECIFICATION ::=
3115 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3116
3117 -- N_Real_Range_Specification
3118 -- Sloc points to RANGE
3119 -- Low_Bound (Node1)
3120 -- High_Bound (Node2)
3121
3122 -----------------------------------
3123 -- 3.5.9 Fixed Point Definition --
3124 -----------------------------------
3125
3126 -- FIXED_POINT_DEFINITION ::=
3127 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
3128
3129 --------------------------------------------
3130 -- 3.5.9 Ordinary Fixed Point Definition --
3131 --------------------------------------------
3132
3133 -- ORDINARY_FIXED_POINT_DEFINITION ::=
3134 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
3135
3136 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3137
3138 -- N_Ordinary_Fixed_Point_Definition
3139 -- Sloc points to DELTA
3140 -- Delta_Expression (Node3)
3141 -- Real_Range_Specification (Node4)
3142
3143 -------------------------------------------
3144 -- 3.5.9 Decimal Fixed Point Definition --
3145 -------------------------------------------
3146
3147 -- DECIMAL_FIXED_POINT_DEFINITION ::=
3148 -- delta static_EXPRESSION
3149 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
3150
3151 -- Note: decimal types are not permitted in Ada 83 mode
3152
3153 -- N_Decimal_Fixed_Point_Definition
3154 -- Sloc points to DELTA
3155 -- Delta_Expression (Node3)
3156 -- Digits_Expression (Node2)
3157 -- Real_Range_Specification (Node4) (set to Empty if not present)
3158
3159 ------------------------------
3160 -- 3.5.9 Digits Constraint --
3161 ------------------------------
3162
3163 -- DIGITS_CONSTRAINT ::=
3164 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
3165
3166 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3167 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
3168
3169 -- N_Digits_Constraint
3170 -- Sloc points to DIGITS
3171 -- Digits_Expression (Node2)
3172 -- Range_Constraint (Node4) (set to Empty if not present)
3173
3174 --------------------------------
3175 -- 3.6 Array Type Definition --
3176 --------------------------------
3177
3178 -- ARRAY_TYPE_DEFINITION ::=
3179 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
3180
3181 -----------------------------------------
3182 -- 3.6 Unconstrained Array Definition --
3183 -----------------------------------------
3184
3185 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
3186 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
3187 -- COMPONENT_DEFINITION
3188
3189 -- Note: dimensionality of array is indicated by number of entries in
3190 -- the Subtype_Marks list, which has one entry for each dimension.
3191
3192 -- N_Unconstrained_Array_Definition
3193 -- Sloc points to ARRAY
3194 -- Subtype_Marks (List2)
3195 -- Component_Definition (Node4)
3196
3197 -----------------------------------
3198 -- 3.6 Index Subtype Definition --
3199 -----------------------------------
3200
3201 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
3202
3203 -- There is no explicit node in the tree for an index subtype
3204 -- definition since the N_Unconstrained_Array_Definition node
3205 -- incorporates the type marks which appear in this context.
3206
3207 ---------------------------------------
3208 -- 3.6 Constrained Array Definition --
3209 ---------------------------------------
3210
3211 -- CONSTRAINED_ARRAY_DEFINITION ::=
3212 -- array (DISCRETE_SUBTYPE_DEFINITION
3213 -- {, DISCRETE_SUBTYPE_DEFINITION})
3214 -- of COMPONENT_DEFINITION
3215
3216 -- Note: dimensionality of array is indicated by number of entries
3217 -- in the Discrete_Subtype_Definitions list, which has one entry
3218 -- for each dimension.
3219
3220 -- N_Constrained_Array_Definition
3221 -- Sloc points to ARRAY
3222 -- Discrete_Subtype_Definitions (List2)
3223 -- Component_Definition (Node4)
3224
3225 -- Note: although the language allows the full syntax for discrete
3226 -- subtype definitions (i.e. a discrete subtype indication or a range),
3227 -- in the generated tree, we always rewrite these as N_Range nodes.
3228
3229 --------------------------------------
3230 -- 3.6 Discrete Subtype Definition --
3231 --------------------------------------
3232
3233 -- DISCRETE_SUBTYPE_DEFINITION ::=
3234 -- discrete_SUBTYPE_INDICATION | RANGE
3235
3236 -------------------------------
3237 -- 3.6 Component Definition --
3238 -------------------------------
3239
3240 -- COMPONENT_DEFINITION ::=
3241 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
3242
3243 -- Note: although the syntax does not permit a component definition to
3244 -- be an anonymous array (and the parser will diagnose such an attempt
3245 -- with an appropriate message), it is possible for anonymous arrays
3246 -- to appear as component definitions. The semantics and back end handle
3247 -- this case properly, and the expander in fact generates such cases.
3248 -- Access_Definition is an optional field that gives support to
3249 -- Ada 2005 (AI-230). The parser generates nodes that have either the
3250 -- Subtype_Indication field or else the Access_Definition field.
3251
3252 -- N_Component_Definition
3253 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
3254 -- Aliased_Present (Flag4)
3255 -- Null_Exclusion_Present (Flag11)
3256 -- Subtype_Indication (Node5) (set to Empty if not present)
3257 -- Access_Definition (Node3) (set to Empty if not present)
3258
3259 -----------------------------
3260 -- 3.6.1 Index Constraint --
3261 -----------------------------
3262
3263 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3264
3265 -- It is not in general possible to distinguish between discriminant
3266 -- constraints and index constraints at parse time, since a simple
3267 -- name could be either the subtype mark of a discrete range, or an
3268 -- expression in a discriminant association with no name. Either
3269 -- entry appears simply as the name, and the semantic parse must
3270 -- distinguish between the two cases. Thus we use a common tree
3271 -- node format for both of these constraint types.
3272
3273 -- See Discriminant_Constraint for format of node
3274
3275 ---------------------------
3276 -- 3.6.1 Discrete Range --
3277 ---------------------------
3278
3279 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3280
3281 ----------------------------
3282 -- 3.7 Discriminant Part --
3283 ----------------------------
3284
3285 -- DISCRIMINANT_PART ::=
3286 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3287
3288 ------------------------------------
3289 -- 3.7 Unknown Discriminant Part --
3290 ------------------------------------
3291
3292 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
3293
3294 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
3295
3296 -- There is no explicit node in the tree for an unknown discriminant
3297 -- part. Instead the Unknown_Discriminants_Present flag is set in the
3298 -- parent node.
3299
3300 ----------------------------------
3301 -- 3.7 Known Discriminant Part --
3302 ----------------------------------
3303
3304 -- KNOWN_DISCRIMINANT_PART ::=
3305 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3306
3307 -------------------------------------
3308 -- 3.7 Discriminant Specification --
3309 -------------------------------------
3310
3311 -- DISCRIMINANT_SPECIFICATION ::=
3312 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3313 -- [:= DEFAULT_EXPRESSION]
3314 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3315 -- [:= DEFAULT_EXPRESSION]
3316
3317 -- Although the syntax allows multiple identifiers in the list, the
3318 -- semantics is as though successive specifications were given with
3319 -- identical type definition and expression components. To simplify
3320 -- semantic processing, the parser represents a multiple declaration
3321 -- case as a sequence of single specifications, using the More_Ids and
3322 -- Prev_Ids flags to preserve the original source form as described
3323 -- in the section on "Handling of Defining Identifier Lists".
3324
3325 -- N_Discriminant_Specification
3326 -- Sloc points to first identifier
3327 -- Defining_Identifier (Node1)
3328 -- Null_Exclusion_Present (Flag11)
3329 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3330 -- Expression (Node3) (set to Empty if no default expression)
3331 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3332 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3333
3334 -----------------------------
3335 -- 3.7 Default Expression --
3336 -----------------------------
3337
3338 -- DEFAULT_EXPRESSION ::= EXPRESSION
3339
3340 ------------------------------------
3341 -- 3.7.1 Discriminant Constraint --
3342 ------------------------------------
3343
3344 -- DISCRIMINANT_CONSTRAINT ::=
3345 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3346
3347 -- It is not in general possible to distinguish between discriminant
3348 -- constraints and index constraints at parse time, since a simple
3349 -- name could be either the subtype mark of a discrete range, or an
3350 -- expression in a discriminant association with no name. Either
3351 -- entry appears simply as the name, and the semantic parse must
3352 -- distinguish between the two cases. Thus we use a common tree
3353 -- node format for both of these constraint types.
3354
3355 -- N_Index_Or_Discriminant_Constraint
3356 -- Sloc points to left paren
3357 -- Constraints (List1) points to list of discrete ranges or
3358 -- discriminant associations
3359
3360 -------------------------------------
3361 -- 3.7.1 Discriminant Association --
3362 -------------------------------------
3363
3364 -- DISCRIMINANT_ASSOCIATION ::=
3365 -- [discriminant_SELECTOR_NAME
3366 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3367
3368 -- Note: a discriminant association that has no selector name list
3369 -- appears directly as an expression in the tree.
3370
3371 -- N_Discriminant_Association
3372 -- Sloc points to first token of discriminant association
3373 -- Selector_Names (List1) (always non-empty, since if no selector
3374 -- names are present, this node is not used, see comment above)
3375 -- Expression (Node3)
3376
3377 ---------------------------------
3378 -- 3.8 Record Type Definition --
3379 ---------------------------------
3380
3381 -- RECORD_TYPE_DEFINITION ::=
3382 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3383
3384 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3385
3386 -- There is no explicit node in the tree for a record type definition.
3387 -- Instead the flags for Tagged_Present and Limited_Present appear in
3388 -- the N_Record_Definition node for a record definition appearing in
3389 -- the context of a record type definition.
3390
3391 ----------------------------
3392 -- 3.8 Record Definition --
3393 ----------------------------
3394
3395 -- RECORD_DEFINITION ::=
3396 -- record
3397 -- COMPONENT_LIST
3398 -- end record
3399 -- | null record
3400
3401 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
3402 -- flags appear only for a record definition appearing in a record
3403 -- type definition.
3404
3405 -- Note: the NULL RECORD case is not permitted in Ada 83
3406
3407 -- N_Record_Definition
3408 -- Sloc points to RECORD or NULL
3409 -- End_Label (Node4) (set to Empty if internally generated record)
3410 -- Abstract_Present (Flag4)
3411 -- Tagged_Present (Flag15)
3412 -- Limited_Present (Flag17)
3413 -- Component_List (Node1) empty in null record case
3414 -- Null_Present (Flag13) set in null record case
3415 -- Task_Present (Flag5) set in task interfaces
3416 -- Protected_Present (Flag6) set in protected interfaces
3417 -- Synchronized_Present (Flag7) set in interfaces
3418 -- Interface_Present (Flag16) set in abstract interfaces
3419 -- Interface_List (List2) (set to No_List if none)
3420
3421 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3422 -- Interface_List and Interface_Present are used for abstract
3423 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3424
3425 -------------------------
3426 -- 3.8 Component List --
3427 -------------------------
3428
3429 -- COMPONENT_LIST ::=
3430 -- COMPONENT_ITEM {COMPONENT_ITEM}
3431 -- | {COMPONENT_ITEM} VARIANT_PART
3432 -- | null;
3433
3434 -- N_Component_List
3435 -- Sloc points to first token of component list
3436 -- Component_Items (List3)
3437 -- Variant_Part (Node4) (set to Empty if no variant part)
3438 -- Null_Present (Flag13)
3439
3440 -------------------------
3441 -- 3.8 Component Item --
3442 -------------------------
3443
3444 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3445
3446 -- Note: A component item can also be a pragma, and in the tree
3447 -- that is obtained after semantic processing, a component item
3448 -- can be an N_Null node resulting from a non-recognized pragma.
3449
3450 --------------------------------
3451 -- 3.8 Component Declaration --
3452 --------------------------------
3453
3454 -- COMPONENT_DECLARATION ::=
3455 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3456 -- [:= DEFAULT_EXPRESSION]
3457 -- [ASPECT_SPECIFICATIONS];
3458
3459 -- Note: although the syntax does not permit a component definition to
3460 -- be an anonymous array (and the parser will diagnose such an attempt
3461 -- with an appropriate message), it is possible for anonymous arrays
3462 -- to appear as component definitions. The semantics and back end handle
3463 -- this case properly, and the expander in fact generates such cases.
3464
3465 -- Although the syntax allows multiple identifiers in the list, the
3466 -- semantics is as though successive declarations were given with the
3467 -- same component definition and expression components. To simplify
3468 -- semantic processing, the parser represents a multiple declaration
3469 -- case as a sequence of single declarations, using the More_Ids and
3470 -- Prev_Ids flags to preserve the original source form as described
3471 -- in the section on "Handling of Defining Identifier Lists".
3472
3473 -- N_Component_Declaration
3474 -- Sloc points to first identifier
3475 -- Defining_Identifier (Node1)
3476 -- Component_Definition (Node4)
3477 -- Expression (Node3) (set to Empty if no default expression)
3478 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3479 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3480
3481 -------------------------
3482 -- 3.8.1 Variant Part --
3483 -------------------------
3484
3485 -- VARIANT_PART ::=
3486 -- case discriminant_DIRECT_NAME is
3487 -- VARIANT {VARIANT}
3488 -- end case;
3489
3490 -- Note: the variants list can contain pragmas as well as variants.
3491 -- In a properly formed program there is at least one variant.
3492
3493 -- N_Variant_Part
3494 -- Sloc points to CASE
3495 -- Name (Node2)
3496 -- Variants (List1)
3497
3498 --------------------
3499 -- 3.8.1 Variant --
3500 --------------------
3501
3502 -- VARIANT ::=
3503 -- when DISCRETE_CHOICE_LIST =>
3504 -- COMPONENT_LIST
3505
3506 -- N_Variant
3507 -- Sloc points to WHEN
3508 -- Discrete_Choices (List4)
3509 -- Component_List (Node1)
3510 -- Enclosing_Variant (Node2-Sem)
3511 -- Present_Expr (Uint3-Sem)
3512 -- Dcheck_Function (Node5-Sem)
3513 -- Has_SP_Choice (Flag15-Sem)
3514
3515 -- Note: in the list of Discrete_Choices, the tree passed to the back
3516 -- end does not have choice entries corresponding to names of statically
3517 -- predicated subtypes. Such entries are always expanded out to the list
3518 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3519 -- mode also has this expansion, but done with a proper Rewrite call on
3520 -- the N_Variant node so that ASIS can properly retrieve the original.
3521
3522 ---------------------------------
3523 -- 3.8.1 Discrete Choice List --
3524 ---------------------------------
3525
3526 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3527
3528 ----------------------------
3529 -- 3.8.1 Discrete Choice --
3530 ----------------------------
3531
3532 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3533
3534 -- Note: in Ada 83 mode, the expression must be a simple expression
3535
3536 -- The only choice that appears explicitly is the OTHERS choice, as
3537 -- defined here. Other cases of discrete choice (expression and
3538 -- discrete range) appear directly. This production is also used
3539 -- for the OTHERS possibility of an exception choice.
3540
3541 -- Note: in accordance with the syntax, the parser does not check that
3542 -- OTHERS appears at the end on its own in a choice list context. This
3543 -- is a semantic check.
3544
3545 -- N_Others_Choice
3546 -- Sloc points to OTHERS
3547 -- Others_Discrete_Choices (List1-Sem)
3548 -- All_Others (Flag11-Sem)
3549
3550 ----------------------------------
3551 -- 3.9.1 Record Extension Part --
3552 ----------------------------------
3553
3554 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3555
3556 -- Note: record extension parts are not permitted in Ada 83 mode
3557
3558 --------------------------------------
3559 -- 3.9.4 Interface Type Definition --
3560 --------------------------------------
3561
3562 -- INTERFACE_TYPE_DEFINITION ::=
3563 -- [limited | task | protected | synchronized]
3564 -- interface [interface_list]
3565
3566 -- Note: Interfaces are implemented with N_Record_Definition and
3567 -- N_Derived_Type_Definition nodes because most of the support
3568 -- for the analysis of abstract types has been reused to
3569 -- analyze abstract interfaces.
3570
3571 ----------------------------------
3572 -- 3.10 Access Type Definition --
3573 ----------------------------------
3574
3575 -- ACCESS_TYPE_DEFINITION ::=
3576 -- ACCESS_TO_OBJECT_DEFINITION
3577 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3578
3579 --------------------------
3580 -- 3.10 Null Exclusion --
3581 --------------------------
3582
3583 -- NULL_EXCLUSION ::= not null
3584
3585 ---------------------------------------
3586 -- 3.10 Access To Object Definition --
3587 ---------------------------------------
3588
3589 -- ACCESS_TO_OBJECT_DEFINITION ::=
3590 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3591 -- SUBTYPE_INDICATION
3592
3593 -- N_Access_To_Object_Definition
3594 -- Sloc points to ACCESS
3595 -- All_Present (Flag15)
3596 -- Null_Exclusion_Present (Flag11)
3597 -- Null_Excluding_Subtype (Flag16)
3598 -- Subtype_Indication (Node5)
3599 -- Constant_Present (Flag17)
3600
3601 -----------------------------------
3602 -- 3.10 General Access Modifier --
3603 -----------------------------------
3604
3605 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3606
3607 -- Note: general access modifiers are not permitted in Ada 83 mode
3608
3609 -- There is no explicit node in the tree for general access modifier.
3610 -- Instead the All_Present or Constant_Present flags are set in the
3611 -- parent node.
3612
3613 -------------------------------------------
3614 -- 3.10 Access To Subprogram Definition --
3615 -------------------------------------------
3616
3617 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3618 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3619 -- | [NULL_EXCLUSION] access [protected] function
3620 -- PARAMETER_AND_RESULT_PROFILE
3621
3622 -- Note: access to subprograms are not permitted in Ada 83 mode
3623
3624 -- N_Access_Function_Definition
3625 -- Sloc points to ACCESS
3626 -- Null_Exclusion_Present (Flag11)
3627 -- Null_Exclusion_In_Return_Present (Flag14)
3628 -- Protected_Present (Flag6)
3629 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3630 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3631
3632 -- N_Access_Procedure_Definition
3633 -- Sloc points to ACCESS
3634 -- Null_Exclusion_Present (Flag11)
3635 -- Protected_Present (Flag6)
3636 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3637
3638 -----------------------------
3639 -- 3.10 Access Definition --
3640 -----------------------------
3641
3642 -- ACCESS_DEFINITION ::=
3643 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3644 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3645
3646 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3647
3648 -- N_Access_Definition
3649 -- Sloc points to ACCESS
3650 -- Null_Exclusion_Present (Flag11)
3651 -- All_Present (Flag15)
3652 -- Constant_Present (Flag17)
3653 -- Subtype_Mark (Node4)
3654 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3655
3656 -----------------------------------------
3657 -- 3.10.1 Incomplete Type Declaration --
3658 -----------------------------------------
3659
3660 -- INCOMPLETE_TYPE_DECLARATION ::=
3661 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3662
3663 -- N_Incomplete_Type_Declaration
3664 -- Sloc points to TYPE
3665 -- Defining_Identifier (Node1)
3666 -- Discriminant_Specifications (List4) (set to No_List if no
3667 -- discriminant part, or if the discriminant part is an
3668 -- unknown discriminant part)
3669 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3670 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3671 -- Tagged_Present (Flag15)
3672
3673 ----------------------------
3674 -- 3.11 Declarative Part --
3675 ----------------------------
3676
3677 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3678
3679 -- Note: although the parser enforces the syntactic requirement that
3680 -- a declarative part can contain only declarations, the semantic
3681 -- processing may add statements to the list of actions in a
3682 -- declarative part, so the code generator should be prepared
3683 -- to accept a statement in this position.
3684
3685 ----------------------------
3686 -- 3.11 Declarative Item --
3687 ----------------------------
3688
3689 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3690
3691 ----------------------------------
3692 -- 3.11 Basic Declarative Item --
3693 ----------------------------------
3694
3695 -- BASIC_DECLARATIVE_ITEM ::=
3696 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3697
3698 ----------------
3699 -- 3.11 Body --
3700 ----------------
3701
3702 -- BODY ::= PROPER_BODY | BODY_STUB
3703
3704 -----------------------
3705 -- 3.11 Proper Body --
3706 -----------------------
3707
3708 -- PROPER_BODY ::=
3709 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3710
3711 ---------------
3712 -- 4.1 Name --
3713 ---------------
3714
3715 -- NAME ::=
3716 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3717 -- | INDEXED_COMPONENT | SLICE
3718 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3719 -- | TYPE_CONVERSION | FUNCTION_CALL
3720 -- | CHARACTER_LITERAL
3721
3722 ----------------------
3723 -- 4.1 Direct Name --
3724 ----------------------
3725
3726 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3727
3728 -----------------
3729 -- 4.1 Prefix --
3730 -----------------
3731
3732 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3733
3734 -------------------------------
3735 -- 4.1 Explicit Dereference --
3736 -------------------------------
3737
3738 -- EXPLICIT_DEREFERENCE ::= NAME . all
3739
3740 -- N_Explicit_Dereference
3741 -- Sloc points to ALL
3742 -- Prefix (Node3)
3743 -- Actual_Designated_Subtype (Node4-Sem)
3744 -- Atomic_Sync_Required (Flag14-Sem)
3745 -- Has_Dereference_Action (Flag13-Sem)
3746 -- plus fields for expression
3747
3748 -------------------------------
3749 -- 4.1 Implicit Dereference --
3750 -------------------------------
3751
3752 -- IMPLICIT_DEREFERENCE ::= NAME
3753
3754 ------------------------------
3755 -- 4.1.1 Indexed Component --
3756 ------------------------------
3757
3758 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3759
3760 -- Note: the parser may generate this node in some situations where it
3761 -- should be a function call. The semantic pass must correct this
3762 -- misidentification (which is inevitable at the parser level).
3763
3764 -- N_Indexed_Component
3765 -- Sloc contains a copy of the Sloc value of the Prefix
3766 -- Prefix (Node3)
3767 -- Expressions (List1)
3768 -- Generalized_Indexing (Node4-Sem)
3769 -- Atomic_Sync_Required (Flag14-Sem)
3770 -- plus fields for expression
3771
3772 -- Note: if any of the subscripts requires a range check, then the
3773 -- Do_Range_Check flag is set on the corresponding expression, with
3774 -- the index type being determined from the type of the Prefix, which
3775 -- references the array being indexed.
3776
3777 -- Note: in a fully analyzed and expanded indexed component node, and
3778 -- hence in any such node that gigi sees, if the prefix is an access
3779 -- type, then an explicit dereference operation has been inserted.
3780
3781 ------------------
3782 -- 4.1.2 Slice --
3783 ------------------
3784
3785 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3786
3787 -- Note: an implicit subtype is created to describe the resulting
3788 -- type, so that the bounds of this type are the bounds of the slice.
3789
3790 -- N_Slice
3791 -- Sloc points to first token of prefix
3792 -- Prefix (Node3)
3793 -- Discrete_Range (Node4)
3794 -- plus fields for expression
3795
3796 -------------------------------
3797 -- 4.1.3 Selected Component --
3798 -------------------------------
3799
3800 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3801
3802 -- Note: selected components that are semantically expanded names get
3803 -- changed during semantic processing into the separate N_Expanded_Name
3804 -- node. See description of this node in the section on semantic nodes.
3805
3806 -- N_Selected_Component
3807 -- Sloc points to the period
3808 -- Prefix (Node3)
3809 -- Selector_Name (Node2)
3810 -- Associated_Node (Node4-Sem)
3811 -- Do_Discriminant_Check (Flag1-Sem)
3812 -- Is_In_Discriminant_Check (Flag11-Sem)
3813 -- Is_Prefixed_Call (Flag17-Sem)
3814 -- Atomic_Sync_Required (Flag14-Sem)
3815 -- plus fields for expression
3816
3817 --------------------------
3818 -- 4.1.3 Selector Name --
3819 --------------------------
3820
3821 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3822
3823 --------------------------------
3824 -- 4.1.4 Attribute Reference --
3825 --------------------------------
3826
3827 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3828
3829 -- Note: the syntax is quite ambiguous at this point. Consider:
3830
3831 -- A'Length (X) X is part of the attribute designator
3832 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3833 -- A'Class (X) X is the expression of a type conversion
3834
3835 -- It would be possible for the parser to distinguish these cases
3836 -- by looking at the attribute identifier. However, that would mean
3837 -- more work in introducing new implementation defined attributes,
3838 -- and also it would mean that special processing for attributes
3839 -- would be scattered around, instead of being centralized in the
3840 -- semantic routine that handles an N_Attribute_Reference node.
3841 -- Consequently, the parser in all the above cases stores the
3842 -- expression (X in these examples) as a single element list in
3843 -- in the Expressions field of the N_Attribute_Reference node.
3844
3845 -- Similarly, for attributes like Max which take two arguments,
3846 -- we store the two arguments as a two element list in the
3847 -- Expressions field. Of course it is clear at parse time that
3848 -- this case is really a function call with an attribute as the
3849 -- prefix, but it turns out to be convenient to handle the two
3850 -- argument case in a similar manner to the one argument case,
3851 -- and indeed in general the parser will accept any number of
3852 -- expressions in this position and store them as a list in the
3853 -- attribute reference node. This allows for future addition of
3854 -- attributes that take more than two arguments.
3855
3856 -- Note: named associates are not permitted in function calls where
3857 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3858 -- to skip the normal subprogram argument processing.
3859
3860 -- Note: for the attributes whose designators are technically keywords,
3861 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3862 -- the corresponding name, even though no identifier is involved.
3863
3864 -- Note: the generated code may contain stream attributes applied to
3865 -- limited types for which no stream routines exist officially. In such
3866 -- case, the result is to use the stream attribute for the underlying
3867 -- full type, or in the case of a protected type, the components
3868 -- (including any discriminants) are merely streamed in order.
3869
3870 -- See Exp_Attr for a complete description of which attributes are
3871 -- passed onto Gigi, and which are handled entirely by the front end.
3872
3873 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3874 -- a non-standard enumeration type or a nonzero/zero semantics
3875 -- boolean type, so the value is simply the stored representation.
3876
3877 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3878 -- references a subprogram that is a renaming, then the front end must
3879 -- rewrite the attribute to refer directly to the renamed entity.
3880
3881 -- Note: syntactically the prefix of an attribute reference must be a
3882 -- name, and this (somewhat artificial) requirement is enforced by the
3883 -- parser. However, for many attributes, such as 'Valid, it is quite
3884 -- reasonable to apply the attribute to any value, and hence to any
3885 -- expression. Internally in the tree, the prefix is an expression which
3886 -- does not have to be a name, and this is handled fine by the semantic
3887 -- analysis and expansion, and back ends. This arises for the case of
3888 -- attribute references built by the expander (e.g. 'Valid for the case
3889 -- of an implicit validity check).
3890
3891 -- Note: In generated code, the Address and Unrestricted_Access
3892 -- attributes can be applied to any expression, and the meaning is
3893 -- to create an object containing the value (the object is in the
3894 -- current stack frame), and pass the address of this value. If the
3895 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3896 -- is taken must be on a byte (storage unit) boundary, and if it is
3897 -- not (or may not be), then the generated code must create a copy
3898 -- that is byte aligned, and pass the address of this copy.
3899
3900 -- N_Attribute_Reference
3901 -- Sloc points to apostrophe
3902 -- Prefix (Node3) (general expression, see note above)
3903 -- Attribute_Name (Name2) identifier name from attribute designator
3904 -- Expressions (List1) (set to No_List if no associated expressions)
3905 -- Entity (Node4-Sem) used if the attribute yields a type
3906 -- Associated_Node (Node4-Sem)
3907 -- Do_Overflow_Check (Flag17-Sem)
3908 -- Header_Size_Added (Flag11-Sem)
3909 -- Must_Be_Byte_Aligned (Flag14-Sem)
3910 -- Non_Aliased_Prefix (Flag18-Sem)
3911 -- Redundant_Use (Flag13-Sem)
3912 -- plus fields for expression
3913
3914 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
3915 -- into equivalent if expressions, properly taking care of side effects.
3916
3917 ---------------------------------
3918 -- 4.1.4 Attribute Designator --
3919 ---------------------------------
3920
3921 -- ATTRIBUTE_DESIGNATOR ::=
3922 -- IDENTIFIER [(static_EXPRESSION)]
3923 -- | access | delta | digits
3924
3925 -- There is no explicit node in the tree for an attribute designator.
3926 -- Instead the Attribute_Name and Expressions fields of the parent
3927 -- node (N_Attribute_Reference node) hold the information.
3928
3929 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3930 -- designator, then they are treated as identifiers internally
3931 -- rather than the keywords of the same name.
3932
3933 --------------------------------------
3934 -- 4.1.4 Range Attribute Reference --
3935 --------------------------------------
3936
3937 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3938
3939 -- A range attribute reference is represented in the tree using the
3940 -- normal N_Attribute_Reference node.
3941
3942 ---------------------------------------
3943 -- 4.1.4 Range Attribute Designator --
3944 ---------------------------------------
3945
3946 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3947
3948 -- A range attribute designator is represented in the tree using the
3949 -- normal N_Attribute_Reference node.
3950
3951 --------------------
3952 -- 4.3 Aggregate --
3953 --------------------
3954
3955 -- AGGREGATE ::=
3956 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3957
3958 -----------------------------
3959 -- 4.3.1 Record Aggregate --
3960 -----------------------------
3961
3962 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3963
3964 -- N_Aggregate
3965 -- Sloc points to left parenthesis
3966 -- Expressions (List1) (set to No_List if none or null record case)
3967 -- Component_Associations (List2) (set to No_List if none)
3968 -- Null_Record_Present (Flag17)
3969 -- Aggregate_Bounds (Node3-Sem)
3970 -- Associated_Node (Node4-Sem)
3971 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3972 -- Expansion_Delayed (Flag11-Sem)
3973 -- Has_Self_Reference (Flag13-Sem)
3974 -- plus fields for expression
3975
3976 -- Note: this structure is used for both record and array aggregates
3977 -- since the two cases are not separable by the parser. The parser
3978 -- makes no attempt to enforce consistency here, so it is up to the
3979 -- semantic phase to make sure that the aggregate is consistent (i.e.
3980 -- that it is not a "half-and-half" case that mixes record and array
3981 -- syntax. In particular, for a record aggregate, the expressions
3982 -- field will be set if there are positional associations.
3983
3984 -- Note: N_Aggregate is not used for all aggregates; in particular,
3985 -- there is a separate node kind for extension aggregates.
3986
3987 -- Note: gigi/gcc can handle array aggregates correctly providing that
3988 -- they are entirely positional, and the array subtype involved has a
3989 -- known at compile time length and is not bit packed, or a convention
3990 -- Fortran array with more than one dimension. If these conditions
3991 -- are not met, then the front end must translate the aggregate into
3992 -- an appropriate set of assignments into a temporary.
3993
3994 -- Note: for the record aggregate case, gigi/gcc can handle most cases
3995 -- of record aggregates, including those for packed, and rep-claused
3996 -- records, and also variant records, providing that there are no
3997 -- variable length fields whose size is not known at compile time,
3998 -- and providing that the aggregate is presented in fully named form.
3999
4000 -- The other situation in which array aggregates and record aggregates
4001 -- cannot be passed to the back end is if assignment to one or more
4002 -- components itself needs expansion, e.g. in the case of an assignment
4003 -- of an object of a controlled type. In such cases, the front end
4004 -- must expand the aggregate to a series of assignments, and apply
4005 -- the required expansion to the individual assignment statements.
4006
4007 ----------------------------------------------
4008 -- 4.3.1 Record Component Association List --
4009 ----------------------------------------------
4010
4011 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
4012 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
4013 -- | null record
4014
4015 -- There is no explicit node in the tree for a record component
4016 -- association list. Instead the Null_Record_Present flag is set in
4017 -- the parent node for the NULL RECORD case.
4018
4019 ------------------------------------------------------
4020 -- 4.3.1 Record Component Association (also 4.3.3) --
4021 ------------------------------------------------------
4022
4023 -- RECORD_COMPONENT_ASSOCIATION ::=
4024 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
4025
4026 -- N_Component_Association
4027 -- Sloc points to first selector name
4028 -- Choices (List1)
4029 -- Loop_Actions (List2-Sem)
4030 -- Expression (Node3) (empty if Box_Present)
4031 -- Box_Present (Flag15)
4032 -- Inherited_Discriminant (Flag13)
4033
4034 -- Note: this structure is used for both record component associations
4035 -- and array component associations, since the two cases aren't always
4036 -- separable by the parser. The choices list may represent either a
4037 -- list of selector names in the record aggregate case, or a list of
4038 -- discrete choices in the array aggregate case or an N_Others_Choice
4039 -- node (which appears as a singleton list). Box_Present gives support
4040 -- to Ada 2005 (AI-287).
4041
4042 ----------------------------------
4043 -- 4.3.1 Component Choice List --
4044 ----------------------------------
4045
4046 -- COMPONENT_CHOICE_LIST ::=
4047 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
4048 -- | others
4049
4050 -- The entries of a component choice list appear in the Choices list of
4051 -- the associated N_Component_Association, as either selector names, or
4052 -- as an N_Others_Choice node.
4053
4054 --------------------------------
4055 -- 4.3.2 Extension Aggregate --
4056 --------------------------------
4057
4058 -- EXTENSION_AGGREGATE ::=
4059 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
4060
4061 -- Note: extension aggregates are not permitted in Ada 83 mode
4062
4063 -- N_Extension_Aggregate
4064 -- Sloc points to left parenthesis
4065 -- Ancestor_Part (Node3)
4066 -- Associated_Node (Node4-Sem)
4067 -- Expressions (List1) (set to No_List if none or null record case)
4068 -- Component_Associations (List2) (set to No_List if none)
4069 -- Null_Record_Present (Flag17)
4070 -- Expansion_Delayed (Flag11-Sem)
4071 -- Has_Self_Reference (Flag13-Sem)
4072 -- plus fields for expression
4073
4074 --------------------------
4075 -- 4.3.2 Ancestor Part --
4076 --------------------------
4077
4078 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
4079
4080 ----------------------------
4081 -- 4.3.3 Array Aggregate --
4082 ----------------------------
4083
4084 -- ARRAY_AGGREGATE ::=
4085 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
4086
4087 ---------------------------------------
4088 -- 4.3.3 Positional Array Aggregate --
4089 ---------------------------------------
4090
4091 -- POSITIONAL_ARRAY_AGGREGATE ::=
4092 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
4093 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
4094
4095 -- See Record_Aggregate (4.3.1) for node structure
4096
4097 ----------------------------------
4098 -- 4.3.3 Named Array Aggregate --
4099 ----------------------------------
4100
4101 -- NAMED_ARRAY_AGGREGATE ::=
4102 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
4103
4104 -- See Record_Aggregate (4.3.1) for node structure
4105
4106 ----------------------------------------
4107 -- 4.3.3 Array Component Association --
4108 ----------------------------------------
4109
4110 -- ARRAY_COMPONENT_ASSOCIATION ::=
4111 -- DISCRETE_CHOICE_LIST => EXPRESSION
4112 -- | ITERATED_COMPONENT_ASSOCIATION
4113
4114 -- See Record_Component_Association (4.3.1) for node structure
4115 -- The iterated_component_association is introduced into the
4116 -- Corrigendum of Ada_2012 by AI12-061.
4117
4118 ------------------------------------------
4119 -- 4.3.3 Iterated component Association --
4120 ------------------------------------------
4121
4122 -- ITERATED_COMPONENT_ASSOCIATION ::=
4123 -- for DEFINING_IDENTIFIER in DISCRETE_CHOICE_LIST => EXPRESSION
4124
4125 -- N_Iterated_Component_Association
4126 -- Sloc points to FOR
4127 -- Defining_Identifier (Node1)
4128 -- Loop_Actions (List2-Sem)
4129 -- Expression (Node3)
4130 -- Discrete_Choices (List4)
4131 -- Box_Present (Flag15)
4132
4133 -- Note that Box_Present is always False, but it is intentionally added
4134 -- for completeness.
4135
4136 --------------------------------------------------
4137 -- 4.4 Expression/Relation/Term/Factor/Primary --
4138 --------------------------------------------------
4139
4140 -- EXPRESSION ::=
4141 -- RELATION {LOGICAL_OPERATOR RELATION}
4142
4143 -- CHOICE_EXPRESSION ::=
4144 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
4145
4146 -- CHOICE_RELATION ::=
4147 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
4148
4149 -- RELATION ::=
4150 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4151 -- | RAISE_EXPRESSION
4152
4153 -- MEMBERSHIP_CHOICE_LIST ::=
4154 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4155
4156 -- MEMBERSHIP_CHOICE ::=
4157 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4158
4159 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
4160
4161 -- SIMPLE_EXPRESSION ::=
4162 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
4163
4164 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
4165
4166 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
4167
4168 -- No nodes are generated for any of these constructs. Instead, the
4169 -- node for the operator appears directly. When we refer to an
4170 -- expression in this description, we mean any of the possible
4171 -- constituent components of an expression (e.g. identifier is
4172 -- an example of an expression).
4173
4174 -- Note: the above syntax is that Ada 2012 syntax which restricts
4175 -- choice relations to simple expressions to avoid ambiguities in
4176 -- some contexts with set membership notation. It has been decided
4177 -- that in retrospect, the Ada 95 change allowing general expressions
4178 -- in this context was a mistake, so we have reverted to the above
4179 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
4180 -- expressions was there in Ada 83 from the start).
4181
4182 ------------------
4183 -- 4.4 Primary --
4184 ------------------
4185
4186 -- PRIMARY ::=
4187 -- NUMERIC_LITERAL | null
4188 -- | STRING_LITERAL | AGGREGATE
4189 -- | NAME | QUALIFIED_EXPRESSION
4190 -- | ALLOCATOR | (EXPRESSION)
4191
4192 -- Usually there is no explicit node in the tree for primary. Instead
4193 -- the constituent (e.g. AGGREGATE) appears directly. There are two
4194 -- exceptions. First, there is an explicit node for a null primary.
4195
4196 -- N_Null
4197 -- Sloc points to NULL
4198 -- plus fields for expression
4199
4200 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
4201 -- that the parser keep track of which subexpressions are enclosed
4202 -- in parentheses, and how many levels of parentheses are used. This
4203 -- information is required for optimization purposes, and also for
4204 -- some semantic checks (e.g. (((1))) in a procedure spec does not
4205 -- conform with ((((1)))) in the body).
4206
4207 -- The parentheses are recorded by keeping a Paren_Count field in every
4208 -- subexpression node (it is actually present in all nodes, but only
4209 -- used in subexpression nodes). This count records the number of
4210 -- levels of parentheses. If the number of levels in the source exceeds
4211 -- the maximum accommodated by this count, then the count is simply left
4212 -- at the maximum value. This means that there are some pathological
4213 -- cases of failure to detect conformance failures (e.g. an expression
4214 -- with 500 levels of parens will conform with one with 501 levels),
4215 -- but we do not need to lose sleep over this.
4216
4217 -- Historical note: in versions of GNAT prior to 1.75, there was a node
4218 -- type N_Parenthesized_Expression used to accurately record unlimited
4219 -- numbers of levels of parentheses. However, it turned out to be a
4220 -- real nuisance to have to take into account the possible presence of
4221 -- this node during semantic analysis, since basically parentheses have
4222 -- zero relevance to semantic analysis.
4223
4224 -- Note: the level of parentheses always present in things like
4225 -- aggregates does not count, only the parentheses in the primary
4226 -- (EXPRESSION) affect the setting of the Paren_Count field.
4227
4228 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
4229 -- treated as though it were Empty) if No_Initialization is set True.
4230
4231 --------------------------------------
4232 -- 4.5 Short-Circuit Control Forms --
4233 --------------------------------------
4234
4235 -- EXPRESSION ::=
4236 -- RELATION {and then RELATION} | RELATION {or else RELATION}
4237
4238 -- Gigi restriction: For both these control forms, the operand and
4239 -- result types are always Standard.Boolean. The expander inserts the
4240 -- required conversion operations where needed to ensure this is the
4241 -- case.
4242
4243 -- N_And_Then
4244 -- Sloc points to AND of AND THEN
4245 -- Left_Opnd (Node2)
4246 -- Right_Opnd (Node3)
4247 -- Actions (List1-Sem)
4248 -- plus fields for expression
4249
4250 -- N_Or_Else
4251 -- Sloc points to OR of OR ELSE
4252 -- Left_Opnd (Node2)
4253 -- Right_Opnd (Node3)
4254 -- Actions (List1-Sem)
4255 -- plus fields for expression
4256
4257 -- Note: The Actions field is used to hold actions associated with
4258 -- the right hand operand. These have to be treated specially since
4259 -- they are not unconditionally executed. See Insert_Actions for a
4260 -- more detailed description of how these actions are handled.
4261
4262 ---------------------------
4263 -- 4.5 Membership Tests --
4264 ---------------------------
4265
4266 -- RELATION ::=
4267 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4268
4269 -- MEMBERSHIP_CHOICE_LIST ::=
4270 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4271
4272 -- MEMBERSHIP_CHOICE ::=
4273 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4274
4275 -- Note: although the grammar above allows only a range or a subtype
4276 -- mark, the parser in fact will accept any simple expression in place
4277 -- of a subtype mark. This means that the semantic analyzer must be able
4278 -- to deal with, and diagnose a simple expression other than a name for
4279 -- the right operand. This simplifies error recovery in the parser.
4280
4281 -- The Alternatives field below is present only if there is more than
4282 -- one Membership_Choice present (which is legitimate only in Ada 2012
4283 -- mode) in which case Right_Opnd is Empty, and Alternatives contains
4284 -- the list of choices. In the tree passed to the back end, Alternatives
4285 -- is always No_List, and Right_Opnd is set (i.e. the expansion circuit
4286 -- expands out the complex set membership case using simple membership
4287 -- and equality operations).
4288
4289 -- Should we rename Alternatives here to Membership_Choices ???
4290
4291 -- N_In
4292 -- Sloc points to IN
4293 -- Left_Opnd (Node2)
4294 -- Right_Opnd (Node3)
4295 -- Alternatives (List4) (set to No_List if only one set alternative)
4296 -- No_Minimize_Eliminate (Flag17)
4297 -- plus fields for expression
4298
4299 -- N_Not_In
4300 -- Sloc points to NOT of NOT IN
4301 -- Left_Opnd (Node2)
4302 -- Right_Opnd (Node3)
4303 -- Alternatives (List4) (set to No_List if only one set alternative)
4304 -- No_Minimize_Eliminate (Flag17)
4305 -- plus fields for expression
4306
4307 --------------------
4308 -- 4.5 Operators --
4309 --------------------
4310
4311 -- LOGICAL_OPERATOR ::= and | or | xor
4312
4313 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
4314
4315 -- BINARY_ADDING_OPERATOR ::= + | - | &
4316
4317 -- UNARY_ADDING_OPERATOR ::= + | -
4318
4319 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
4320
4321 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
4322
4323 -- Sprint syntax if Treat_Fixed_As_Integer is set:
4324
4325 -- x #* y
4326 -- x #/ y
4327 -- x #mod y
4328 -- x #rem y
4329
4330 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
4331 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
4332 -- All handling of smalls for multiplication and division is handled
4333 -- by the front end (mod and rem result only from expansion). Gigi
4334 -- thus never needs to worry about small values (for other operators
4335 -- operating on fixed-point, e.g. addition, the small value does not
4336 -- have any semantic effect anyway, these are always integer operations.
4337
4338 -- Gigi restriction: For all operators taking Boolean operands, the
4339 -- type is always Standard.Boolean. The expander inserts the required
4340 -- conversion operations where needed to ensure this is the case.
4341
4342 -- N_Op_And
4343 -- Sloc points to AND
4344 -- Do_Length_Check (Flag4-Sem)
4345 -- plus fields for binary operator
4346 -- plus fields for expression
4347
4348 -- N_Op_Or
4349 -- Sloc points to OR
4350 -- Do_Length_Check (Flag4-Sem)
4351 -- plus fields for binary operator
4352 -- plus fields for expression
4353
4354 -- N_Op_Xor
4355 -- Sloc points to XOR
4356 -- Do_Length_Check (Flag4-Sem)
4357 -- plus fields for binary operator
4358 -- plus fields for expression
4359
4360 -- N_Op_Eq
4361 -- Sloc points to =
4362 -- plus fields for binary operator
4363 -- plus fields for expression
4364
4365 -- N_Op_Ne
4366 -- Sloc points to /=
4367 -- plus fields for binary operator
4368 -- plus fields for expression
4369
4370 -- N_Op_Lt
4371 -- Sloc points to <
4372 -- plus fields for binary operator
4373 -- plus fields for expression
4374
4375 -- N_Op_Le
4376 -- Sloc points to <=
4377 -- plus fields for binary operator
4378 -- plus fields for expression
4379
4380 -- N_Op_Gt
4381 -- Sloc points to >
4382 -- plus fields for binary operator
4383 -- plus fields for expression
4384
4385 -- N_Op_Ge
4386 -- Sloc points to >=
4387 -- plus fields for binary operator
4388 -- plus fields for expression
4389
4390 -- N_Op_Add
4391 -- Sloc points to + (binary)
4392 -- plus fields for binary operator
4393 -- plus fields for expression
4394
4395 -- N_Op_Subtract
4396 -- Sloc points to - (binary)
4397 -- plus fields for binary operator
4398 -- plus fields for expression
4399
4400 -- N_Op_Concat
4401 -- Sloc points to &
4402 -- Is_Component_Left_Opnd (Flag13-Sem)
4403 -- Is_Component_Right_Opnd (Flag14-Sem)
4404 -- plus fields for binary operator
4405 -- plus fields for expression
4406
4407 -- N_Op_Multiply
4408 -- Sloc points to *
4409 -- Treat_Fixed_As_Integer (Flag14-Sem)
4410 -- Rounded_Result (Flag18-Sem)
4411 -- plus fields for binary operator
4412 -- plus fields for expression
4413
4414 -- N_Op_Divide
4415 -- Sloc points to /
4416 -- Treat_Fixed_As_Integer (Flag14-Sem)
4417 -- Do_Division_Check (Flag13-Sem)
4418 -- Rounded_Result (Flag18-Sem)
4419 -- plus fields for binary operator
4420 -- plus fields for expression
4421
4422 -- N_Op_Mod
4423 -- Sloc points to MOD
4424 -- Treat_Fixed_As_Integer (Flag14-Sem)
4425 -- Do_Division_Check (Flag13-Sem)
4426 -- plus fields for binary operator
4427 -- plus fields for expression
4428
4429 -- N_Op_Rem
4430 -- Sloc points to REM
4431 -- Treat_Fixed_As_Integer (Flag14-Sem)
4432 -- Do_Division_Check (Flag13-Sem)
4433 -- plus fields for binary operator
4434 -- plus fields for expression
4435
4436 -- N_Op_Expon
4437 -- Sloc points to **
4438 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4439 -- plus fields for binary operator
4440 -- plus fields for expression
4441
4442 -- N_Op_Plus
4443 -- Sloc points to + (unary)
4444 -- plus fields for unary operator
4445 -- plus fields for expression
4446
4447 -- N_Op_Minus
4448 -- Sloc points to - (unary)
4449 -- plus fields for unary operator
4450 -- plus fields for expression
4451
4452 -- N_Op_Abs
4453 -- Sloc points to ABS
4454 -- plus fields for unary operator
4455 -- plus fields for expression
4456
4457 -- N_Op_Not
4458 -- Sloc points to NOT
4459 -- plus fields for unary operator
4460 -- plus fields for expression
4461
4462 -- See also shift operators in section B.2
4463
4464 -- Note on fixed-point operations passed to Gigi: For adding operators,
4465 -- the semantics is to treat these simply as integer operations, with
4466 -- the small values being ignored (the bounds are already stored in
4467 -- units of small, so that constraint checking works as usual). For the
4468 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4469 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4470 -- thus treat these nodes in identical manner, ignoring small values.
4471
4472 -- Note on equality/inequality tests for records. In the expanded tree,
4473 -- record comparisons are always expanded to be a series of component
4474 -- comparisons, so the back end will never see an equality or inequality
4475 -- operation with operands of a record type.
4476
4477 -- Note on overflow handling: When the overflow checking mode is set to
4478 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4479 -- be modified to use a larger type for the operands and result. In
4480 -- the case where the computed range exceeds that of Long_Long_Integer,
4481 -- and we are running in ELIMINATED mode, the operator node will be
4482 -- changed to be a call to the appropriate routine in System.Bignums.
4483
4484 -- Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4485 -- for signed integer types (since there is no equivalent operator in
4486 -- C). Instead we rewrite such an operation in terms of REM (which is
4487 -- % in C) and other C-available operators.
4488
4489 ------------------------------------
4490 -- 4.5.7 Conditional Expressions --
4491 ------------------------------------
4492
4493 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4494
4495 --------------------------
4496 -- 4.5.7 If Expression --
4497 ----------------------------
4498
4499 -- IF_EXPRESSION ::=
4500 -- if CONDITION then DEPENDENT_EXPRESSION
4501 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4502 -- [else DEPENDENT_EXPRESSION]
4503
4504 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4505
4506 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4507 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4508 -- the Is_Elsif flag is set on the inner if expression.
4509
4510 -- N_If_Expression
4511 -- Sloc points to IF or ELSIF keyword
4512 -- Expressions (List1)
4513 -- Then_Actions (List2-Sem)
4514 -- Else_Actions (List3-Sem)
4515 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4516 -- Do_Overflow_Check (Flag17-Sem)
4517 -- plus fields for expression
4518
4519 -- Expressions here is a three-element list, whose first element is the
4520 -- condition, the second element is the dependent expression after THEN
4521 -- and the third element is the dependent expression after the ELSE
4522 -- (explicitly set to True if missing).
4523
4524 -- Note: the Then_Actions and Else_Actions fields are always set to
4525 -- No_List in the tree passed to the back end. These are used only
4526 -- for temporary processing purposes in the expander. Even though they
4527 -- are semantic fields, their parent pointers are set because analysis
4528 -- of actions nodes in those lists may generate additional actions that
4529 -- need to know their insertion point (for example for the creation of
4530 -- transient scopes).
4531
4532 -- Note: in the tree passed to the back end, if the result type is
4533 -- an unconstrained array, the if expression can only appears in the
4534 -- initializing expression of an object declaration (this avoids the
4535 -- back end having to create a variable length temporary on the fly).
4536
4537 ----------------------------
4538 -- 4.5.7 Case Expression --
4539 ----------------------------
4540
4541 -- CASE_EXPRESSION ::=
4542 -- case SELECTING_EXPRESSION is
4543 -- CASE_EXPRESSION_ALTERNATIVE
4544 -- {,CASE_EXPRESSION_ALTERNATIVE}
4545
4546 -- Note that the Alternatives cannot include pragmas (this contrasts
4547 -- with the situation of case statements where pragmas are allowed).
4548
4549 -- N_Case_Expression
4550 -- Sloc points to CASE
4551 -- Expression (Node3) (the selecting expression)
4552 -- Alternatives (List4) (the case expression alternatives)
4553 -- Do_Overflow_Check (Flag17-Sem)
4554
4555 ----------------------------------------
4556 -- 4.5.7 Case Expression Alternative --
4557 ----------------------------------------
4558
4559 -- CASE_EXPRESSION_ALTERNATIVE ::=
4560 -- when DISCRETE_CHOICE_LIST =>
4561 -- DEPENDENT_EXPRESSION
4562
4563 -- N_Case_Expression_Alternative
4564 -- Sloc points to WHEN
4565 -- Actions (List1)
4566 -- Discrete_Choices (List4)
4567 -- Expression (Node3)
4568 -- Has_SP_Choice (Flag15-Sem)
4569
4570 -- Note: The Actions field temporarily holds any actions associated with
4571 -- evaluation of the Expression. During expansion of the case expression
4572 -- these actions are wrapped into an N_Expressions_With_Actions node
4573 -- replacing the original expression.
4574
4575 -- Note: this node never appears in the tree passed to the back end,
4576 -- since the expander converts case expressions into case statements.
4577
4578 ---------------------------------
4579 -- 4.5.9 Quantified Expression --
4580 ---------------------------------
4581
4582 -- QUANTIFIED_EXPRESSION ::=
4583 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4584 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4585 --
4586 -- QUANTIFIER ::= all | some
4587
4588 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4589 -- is present at a time, in which case the other one is empty.
4590
4591 -- N_Quantified_Expression
4592 -- Sloc points to FOR
4593 -- Iterator_Specification (Node2)
4594 -- Loop_Parameter_Specification (Node4)
4595 -- Condition (Node1)
4596 -- All_Present (Flag15)
4597
4598 --------------------------
4599 -- 4.6 Type Conversion --
4600 --------------------------
4601
4602 -- TYPE_CONVERSION ::=
4603 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4604
4605 -- In the (NAME) case, the name is stored as the expression
4606
4607 -- Note: the parser never generates a type conversion node, since it
4608 -- looks like an indexed component which is generated by preference.
4609 -- The semantic pass must correct this misidentification.
4610
4611 -- Gigi handles conversions that involve no change in the root type,
4612 -- and also all conversions from integer to floating-point types.
4613 -- Conversions from floating-point to integer are only handled in
4614 -- the case where Float_Truncate flag set. Other conversions from
4615 -- floating-point to integer (involving rounding) and all conversions
4616 -- involving fixed-point types are handled by the expander.
4617
4618 -- Sprint syntax if Float_Truncate set: X^(Y)
4619 -- Sprint syntax if Conversion_OK set X?(Y)
4620 -- Sprint syntax if both flags set X?^(Y)
4621
4622 -- Note: If either the operand or result type is fixed-point, Gigi will
4623 -- only see a type conversion node with Conversion_OK set. The front end
4624 -- takes care of all handling of small's for fixed-point conversions.
4625
4626 -- N_Type_Conversion
4627 -- Sloc points to first token of subtype mark
4628 -- Subtype_Mark (Node4)
4629 -- Expression (Node3)
4630 -- Do_Discriminant_Check (Flag1-Sem)
4631 -- Do_Length_Check (Flag4-Sem)
4632 -- Float_Truncate (Flag11-Sem)
4633 -- Do_Tag_Check (Flag13-Sem)
4634 -- Conversion_OK (Flag14-Sem)
4635 -- Do_Overflow_Check (Flag17-Sem)
4636 -- Rounded_Result (Flag18-Sem)
4637 -- plus fields for expression
4638
4639 -- Note: if a range check is required, then the Do_Range_Check flag
4640 -- is set in the Expression with the check being done against the
4641 -- target type range (after the base type conversion, if any).
4642
4643 -------------------------------
4644 -- 4.7 Qualified Expression --
4645 -------------------------------
4646
4647 -- QUALIFIED_EXPRESSION ::=
4648 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4649
4650 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4651 -- the expression, so the Expression field of this node always points
4652 -- to a parenthesized expression in this case (i.e. Paren_Count will
4653 -- always be non-zero for the referenced expression if it is not an
4654 -- aggregate).
4655
4656 -- N_Qualified_Expression
4657 -- Sloc points to apostrophe
4658 -- Subtype_Mark (Node4)
4659 -- Expression (Node3) expression or aggregate
4660 -- Is_Qualified_Universal_Literal (Flag4-Sem)
4661 -- plus fields for expression
4662
4663 --------------------
4664 -- 4.8 Allocator --
4665 --------------------
4666
4667 -- ALLOCATOR ::=
4668 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4669 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4670 --
4671 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4672
4673 -- Sprint syntax (when storage pool present)
4674 -- new xxx (storage_pool = pool)
4675 -- or
4676 -- new (subpool) xxx (storage_pool = pool)
4677
4678 -- N_Allocator
4679 -- Sloc points to NEW
4680 -- Expression (Node3) subtype indication or qualified expression
4681 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4682 -- Storage_Pool (Node1-Sem)
4683 -- Procedure_To_Call (Node2-Sem)
4684 -- Null_Exclusion_Present (Flag11)
4685 -- No_Initialization (Flag13-Sem)
4686 -- Is_Static_Coextension (Flag14-Sem)
4687 -- Do_Storage_Check (Flag17-Sem)
4688 -- Is_Dynamic_Coextension (Flag18-Sem)
4689 -- plus fields for expression
4690
4691 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4692 -- This flag has a special function in conjunction with the restriction
4693 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4694 -- is not set. This means that if a source allocator is replaced with
4695 -- a constructed allocator, the Comes_From_Source flag should be copied
4696 -- to the newly created allocator.
4697
4698 ---------------------------------
4699 -- 5.1 Sequence Of Statements --
4700 ---------------------------------
4701
4702 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4703
4704 -- Note: Although the parser will not accept a declaration as a
4705 -- statement, the semantic analyzer may insert declarations (e.g.
4706 -- declarations of implicit types needed for execution of other
4707 -- statements) into a sequence of statements, so the code generator
4708 -- should be prepared to accept a declaration where a statement is
4709 -- expected. Note also that pragmas can appear as statements.
4710
4711 --------------------
4712 -- 5.1 Statement --
4713 --------------------
4714
4715 -- STATEMENT ::=
4716 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4717
4718 -- There is no explicit node in the tree for a statement. Instead, the
4719 -- individual statement appears directly. Labels are treated as a
4720 -- kind of statement, i.e. they are linked into a statement list at
4721 -- the point they appear, so the labeled statement appears following
4722 -- the label or labels in the statement list.
4723
4724 ---------------------------
4725 -- 5.1 Simple Statement --
4726 ---------------------------
4727
4728 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4729 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4730 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4731 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4732 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4733 -- | ABORT_STATEMENT | RAISE_STATEMENT
4734 -- | CODE_STATEMENT
4735
4736 -----------------------------
4737 -- 5.1 Compound Statement --
4738 -----------------------------
4739
4740 -- COMPOUND_STATEMENT ::=
4741 -- IF_STATEMENT | CASE_STATEMENT
4742 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4743 -- | EXTENDED_RETURN_STATEMENT
4744 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4745
4746 -------------------------
4747 -- 5.1 Null Statement --
4748 -------------------------
4749
4750 -- NULL_STATEMENT ::= null;
4751
4752 -- N_Null_Statement
4753 -- Sloc points to NULL
4754
4755 ----------------
4756 -- 5.1 Label --
4757 ----------------
4758
4759 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4760
4761 -- Note that the occurrence of a label is not a defining identifier,
4762 -- but rather a referencing occurrence. The defining occurrence is
4763 -- in the implicit label declaration which occurs in the innermost
4764 -- enclosing block.
4765
4766 -- N_Label
4767 -- Sloc points to <<
4768 -- Identifier (Node1) direct name of statement identifier
4769 -- Exception_Junk (Flag8-Sem)
4770
4771 -- Note: Before Ada 2012, a label is always followed by a statement,
4772 -- and this is true in the tree even in Ada 2012 mode (the parser
4773 -- inserts a null statement marked with Comes_From_Source False).
4774
4775 -------------------------------
4776 -- 5.1 Statement Identifier --
4777 -------------------------------
4778
4779 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4780
4781 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4782 -- (not an OPERATOR_SYMBOL)
4783
4784 -------------------------------
4785 -- 5.2 Assignment Statement --
4786 -------------------------------
4787
4788 -- ASSIGNMENT_STATEMENT ::=
4789 -- variable_NAME := EXPRESSION;
4790
4791 -- N_Assignment_Statement
4792 -- Sloc points to :=
4793 -- Name (Node2)
4794 -- Expression (Node3)
4795 -- Do_Discriminant_Check (Flag1-Sem)
4796 -- Do_Tag_Check (Flag13-Sem)
4797 -- Do_Length_Check (Flag4-Sem)
4798 -- Forwards_OK (Flag5-Sem)
4799 -- Backwards_OK (Flag6-Sem)
4800 -- No_Ctrl_Actions (Flag7-Sem)
4801 -- Has_Target_Names (Flag8-Sem)
4802 -- Componentwise_Assignment (Flag14-Sem)
4803 -- Suppress_Assignment_Checks (Flag18-Sem)
4804
4805 -- Note: if a range check is required, then the Do_Range_Check flag
4806 -- is set in the Expression (right hand side), with the check being
4807 -- done against the type of the Name (left hand side).
4808
4809 -- Note: the back end places some restrictions on the form of the
4810 -- Expression field. If the object being assigned to is Atomic, then
4811 -- the Expression may not have the form of an aggregate (since this
4812 -- might cause the back end to generate separate assignments). In this
4813 -- case the front end must generate an extra temporary and initialize
4814 -- this temporary as required (the temporary itself is not atomic).
4815
4816 ------------------
4817 -- Target_Name --
4818 ------------------
4819
4820 -- N_Target_Name
4821 -- Sloc points to @
4822 -- Etype (Node5-Sem)
4823
4824 -- Note (Ada 2020): node is used during analysis as a placeholder for
4825 -- the value of the LHS of the enclosing assignment statement. Node is
4826 -- eventually rewritten together with enclosing assignment, and backends
4827 -- are not aware of it.
4828
4829 -----------------------
4830 -- 5.3 If Statement --
4831 -----------------------
4832
4833 -- IF_STATEMENT ::=
4834 -- if CONDITION then
4835 -- SEQUENCE_OF_STATEMENTS
4836 -- {elsif CONDITION then
4837 -- SEQUENCE_OF_STATEMENTS}
4838 -- [else
4839 -- SEQUENCE_OF_STATEMENTS]
4840 -- end if;
4841
4842 -- Gigi restriction: This expander ensures that the type of the
4843 -- Condition fields is always Standard.Boolean, even if the type
4844 -- in the source is some non-standard boolean type.
4845
4846 -- N_If_Statement
4847 -- Sloc points to IF
4848 -- Condition (Node1)
4849 -- Then_Statements (List2)
4850 -- Elsif_Parts (List3) (set to No_List if none present)
4851 -- Else_Statements (List4) (set to No_List if no else part present)
4852 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4853 -- From_Conditional_Expression (Flag1-Sem)
4854
4855 -- N_Elsif_Part
4856 -- Sloc points to ELSIF
4857 -- Condition (Node1)
4858 -- Then_Statements (List2)
4859 -- Condition_Actions (List3-Sem)
4860
4861 --------------------
4862 -- 5.3 Condition --
4863 --------------------
4864
4865 -- CONDITION ::= boolean_EXPRESSION
4866
4867 -------------------------
4868 -- 5.4 Case Statement --
4869 -------------------------
4870
4871 -- CASE_STATEMENT ::=
4872 -- case EXPRESSION is
4873 -- CASE_STATEMENT_ALTERNATIVE
4874 -- {CASE_STATEMENT_ALTERNATIVE}
4875 -- end case;
4876
4877 -- Note: the Alternatives can contain pragmas. These only occur at
4878 -- the start of the list, since any pragmas occurring after the first
4879 -- alternative are absorbed into the corresponding statement sequence.
4880
4881 -- N_Case_Statement
4882 -- Sloc points to CASE
4883 -- Expression (Node3)
4884 -- Alternatives (List4)
4885 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4886 -- From_Conditional_Expression (Flag1-Sem)
4887
4888 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4889 -- followed by a statement, and this is true in the tree even in Ada
4890 -- 2012 mode (the parser inserts a null statement marked with the flag
4891 -- Comes_From_Source False).
4892
4893 -------------------------------------
4894 -- 5.4 Case Statement Alternative --
4895 -------------------------------------
4896
4897 -- CASE_STATEMENT_ALTERNATIVE ::=
4898 -- when DISCRETE_CHOICE_LIST =>
4899 -- SEQUENCE_OF_STATEMENTS
4900
4901 -- N_Case_Statement_Alternative
4902 -- Sloc points to WHEN
4903 -- Discrete_Choices (List4)
4904 -- Statements (List3)
4905 -- Has_SP_Choice (Flag15-Sem)
4906
4907 -- Note: in the list of Discrete_Choices, the tree passed to the back
4908 -- end does not have choice entries corresponding to names of statically
4909 -- predicated subtypes. Such entries are always expanded out to the list
4910 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
4911 -- mode does not have this expansion, and has the original choices.
4912
4913 -------------------------
4914 -- 5.5 Loop Statement --
4915 -------------------------
4916
4917 -- LOOP_STATEMENT ::=
4918 -- [loop_STATEMENT_IDENTIFIER :]
4919 -- [ITERATION_SCHEME] loop
4920 -- SEQUENCE_OF_STATEMENTS
4921 -- end loop [loop_IDENTIFIER];
4922
4923 -- Note: The occurrence of a loop label is not a defining identifier
4924 -- but rather a referencing occurrence. The defining occurrence is in
4925 -- the implicit label declaration which occurs in the innermost
4926 -- enclosing block.
4927
4928 -- Note: there is always a loop statement identifier present in the
4929 -- tree, even if none was given in the source. In the case where no loop
4930 -- identifier is given in the source, the parser creates a name of the
4931 -- form _Loop_n, where n is a decimal integer (the two underlines ensure
4932 -- that the loop names created in this manner do not conflict with any
4933 -- user defined identifiers), and the flag Has_Created_Identifier is set
4934 -- to True. The only exception to the rule that all loop statement nodes
4935 -- have identifiers occurs for loops constructed by the expander, and
4936 -- the semantic analyzer will create and supply dummy loop identifiers
4937 -- in these cases.
4938
4939 -- N_Loop_Statement
4940 -- Sloc points to LOOP
4941 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4942 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4943 -- Statements (List3)
4944 -- End_Label (Node4)
4945 -- Has_Created_Identifier (Flag15)
4946 -- Is_Null_Loop (Flag16)
4947 -- Suppress_Loop_Warnings (Flag17)
4948
4949 -- Note: the parser fills in the Identifier field if there is an
4950 -- explicit loop identifier. Otherwise the parser leaves this field
4951 -- set to Empty, and then the semantic processing for a loop statement
4952 -- creates an identifier, setting the Has_Created_Identifier flag to
4953 -- True. So after semantic analysis, the Identifier is always set,
4954 -- referencing an identifier whose entity has an Ekind of E_Loop.
4955
4956 ---------------------------
4957 -- 5.5 Iteration Scheme --
4958 ---------------------------
4959
4960 -- ITERATION_SCHEME ::=
4961 -- while CONDITION
4962 -- | for LOOP_PARAMETER_SPECIFICATION
4963 -- | for ITERATOR_SPECIFICATION
4964
4965 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4966 -- is present at a time, in which case the other one is empty. Both are
4967 -- empty in the case of a WHILE loop.
4968
4969 -- Gigi restriction: The expander ensures that the type of the Condition
4970 -- field is always Standard.Boolean, even if the type in the source is
4971 -- some non-standard boolean type.
4972
4973 -- N_Iteration_Scheme
4974 -- Sloc points to WHILE or FOR
4975 -- Condition (Node1) (set to Empty if FOR case)
4976 -- Condition_Actions (List3-Sem)
4977 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
4978 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4979
4980 ---------------------------------------
4981 -- 5.5 Loop Parameter Specification --
4982 ---------------------------------------
4983
4984 -- LOOP_PARAMETER_SPECIFICATION ::=
4985 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4986
4987 -- N_Loop_Parameter_Specification
4988 -- Sloc points to first identifier
4989 -- Defining_Identifier (Node1)
4990 -- Reverse_Present (Flag15)
4991 -- Discrete_Subtype_Definition (Node4)
4992
4993 -----------------------------------
4994 -- 5.5.1 Iterator Specification --
4995 -----------------------------------
4996
4997 -- ITERATOR_SPECIFICATION ::=
4998 -- DEFINING_IDENTIFIER in [reverse] NAME
4999 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
5000
5001 -- N_Iterator_Specification
5002 -- Sloc points to defining identifier
5003 -- Defining_Identifier (Node1)
5004 -- Name (Node2)
5005 -- Reverse_Present (Flag15)
5006 -- Of_Present (Flag16)
5007 -- Subtype_Indication (Node5)
5008
5009 -- Note: The Of_Present flag distinguishes the two forms
5010
5011 --------------------------
5012 -- 5.6 Block Statement --
5013 --------------------------
5014
5015 -- BLOCK_STATEMENT ::=
5016 -- [block_STATEMENT_IDENTIFIER:]
5017 -- [declare
5018 -- DECLARATIVE_PART]
5019 -- begin
5020 -- HANDLED_SEQUENCE_OF_STATEMENTS
5021 -- end [block_IDENTIFIER];
5022
5023 -- Note that the occurrence of a block identifier is not a defining
5024 -- identifier, but rather a referencing occurrence. The defining
5025 -- occurrence is an E_Block entity declared by the implicit label
5026 -- declaration which occurs in the innermost enclosing block statement
5027 -- or body; the block identifier denotes that E_Block.
5028
5029 -- For block statements that come from source code, there is always a
5030 -- block statement identifier present in the tree, denoting an E_Block.
5031 -- In the case where no block identifier is given in the source,
5032 -- the parser creates a name of the form B_n, where n is a decimal
5033 -- integer, and the flag Has_Created_Identifier is set to True. Blocks
5034 -- constructed by the expander usually have no identifier, and no
5035 -- corresponding entity.
5036
5037 -- Note: the block statement created for an extended return statement
5038 -- has an entity, and this entity is an E_Return_Statement, rather than
5039 -- the usual E_Block.
5040
5041 -- Note: Exception_Junk is set for the wrapping blocks created during
5042 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
5043
5044 -- Note: from a control flow viewpoint, a block statement defines an
5045 -- extended basic block, i.e. the entry of the block dominates every
5046 -- statement in the sequence. When generating new statements with
5047 -- exception handlers in the expander at the end of a sequence that
5048 -- comes from source code, it can be necessary to wrap them all in a
5049 -- block statement in order to expose the implicit control flow to
5050 -- gigi and thus prevent it from issuing bogus control flow warnings.
5051
5052 -- N_Block_Statement
5053 -- Sloc points to DECLARE or BEGIN
5054 -- Identifier (Node1) block direct name (set to Empty if not present)
5055 -- Declarations (List2) (set to No_List if no DECLARE part)
5056 -- Handled_Statement_Sequence (Node4)
5057 -- Cleanup_Actions (List5-Sem)
5058 -- Is_Abort_Block (Flag4-Sem)
5059 -- Is_Task_Master (Flag5-Sem)
5060 -- Activation_Chain_Entity (Node3-Sem)
5061 -- Has_Created_Identifier (Flag15)
5062 -- Is_Task_Allocation_Block (Flag6)
5063 -- Is_Asynchronous_Call_Block (Flag7)
5064 -- Exception_Junk (Flag8-Sem)
5065 -- Is_Finalization_Wrapper (Flag9-Sem)
5066
5067 -------------------------
5068 -- 5.7 Exit Statement --
5069 -------------------------
5070
5071 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
5072
5073 -- Gigi restriction: The expander ensures that the type of the Condition
5074 -- field is always Standard.Boolean, even if the type in the source is
5075 -- some non-standard boolean type.
5076
5077 -- N_Exit_Statement
5078 -- Sloc points to EXIT
5079 -- Name (Node2) (set to Empty if no loop name present)
5080 -- Condition (Node1) (set to Empty if no WHEN part present)
5081 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
5082
5083 -------------------------
5084 -- 5.9 Goto Statement --
5085 -------------------------
5086
5087 -- GOTO_STATEMENT ::= goto label_NAME;
5088
5089 -- N_Goto_Statement
5090 -- Sloc points to GOTO
5091 -- Name (Node2)
5092 -- Exception_Junk (Flag8-Sem)
5093
5094 ---------------------------------
5095 -- 6.1 Subprogram Declaration --
5096 ---------------------------------
5097
5098 -- SUBPROGRAM_DECLARATION ::=
5099 -- SUBPROGRAM_SPECIFICATION
5100 -- [ASPECT_SPECIFICATIONS];
5101
5102 -- N_Subprogram_Declaration
5103 -- Sloc points to FUNCTION or PROCEDURE
5104 -- Specification (Node1)
5105 -- Body_To_Inline (Node3-Sem)
5106 -- Corresponding_Body (Node5-Sem)
5107 -- Parent_Spec (Node4-Sem)
5108 -- Is_Entry_Barrier_Function (Flag8-Sem)
5109 -- Is_Task_Body_Procedure (Flag1-Sem)
5110
5111 ------------------------------------------
5112 -- 6.1 Abstract Subprogram Declaration --
5113 ------------------------------------------
5114
5115 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
5116 -- SUBPROGRAM_SPECIFICATION is abstract
5117 -- [ASPECT_SPECIFICATIONS];
5118
5119 -- N_Abstract_Subprogram_Declaration
5120 -- Sloc points to ABSTRACT
5121 -- Specification (Node1)
5122
5123 -----------------------------------
5124 -- 6.1 Subprogram Specification --
5125 -----------------------------------
5126
5127 -- SUBPROGRAM_SPECIFICATION ::=
5128 -- [[not] overriding]
5129 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
5130 -- | [[not] overriding]
5131 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
5132
5133 -- Note: there are no separate nodes for the profiles, instead the
5134 -- information appears directly in the following nodes.
5135
5136 -- N_Function_Specification
5137 -- Sloc points to FUNCTION
5138 -- Defining_Unit_Name (Node1) (the designator)
5139 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5140 -- Null_Exclusion_Present (Flag11)
5141 -- Result_Definition (Node4) for result subtype
5142 -- Generic_Parent (Node5-Sem)
5143 -- Must_Override (Flag14) set if overriding indicator present
5144 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5145
5146 -- N_Procedure_Specification
5147 -- Sloc points to PROCEDURE
5148 -- Defining_Unit_Name (Node1)
5149 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5150 -- Generic_Parent (Node5-Sem)
5151 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
5152 -- Must_Override (Flag14) set if overriding indicator present
5153 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5154
5155 -- Note: overriding indicator is an Ada 2005 feature
5156
5157 ---------------------
5158 -- 6.1 Designator --
5159 ---------------------
5160
5161 -- DESIGNATOR ::=
5162 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
5163
5164 -- Designators that are simply identifiers or operator symbols appear
5165 -- directly in the tree in this form. The following node is used only
5166 -- in the case where the designator has a parent unit name component.
5167
5168 -- N_Designator
5169 -- Sloc points to period
5170 -- Name (Node2) holds the parent unit name
5171 -- Identifier (Node1)
5172
5173 -- Note: Name is always non-Empty, since this node is only used for the
5174 -- case where a parent library unit package name is present.
5175
5176 -- Note that the identifier can also be an operator symbol here
5177
5178 ------------------------------
5179 -- 6.1 Defining Designator --
5180 ------------------------------
5181
5182 -- DEFINING_DESIGNATOR ::=
5183 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
5184
5185 -------------------------------------
5186 -- 6.1 Defining Program Unit Name --
5187 -------------------------------------
5188
5189 -- DEFINING_PROGRAM_UNIT_NAME ::=
5190 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
5191
5192 -- The parent unit name is present only in the case of a child unit name
5193 -- (permissible only for Ada 95 for a library level unit, i.e. a unit
5194 -- at scope level one). If no such name is present, the defining program
5195 -- unit name is represented simply as the defining identifier. In the
5196 -- child unit case, the following node is used to represent the child
5197 -- unit name.
5198
5199 -- N_Defining_Program_Unit_Name
5200 -- Sloc points to period
5201 -- Name (Node2) holds the parent unit name
5202 -- Defining_Identifier (Node1)
5203
5204 -- Note: Name is always non-Empty, since this node is only used for the
5205 -- case where a parent unit name is present.
5206
5207 --------------------------
5208 -- 6.1 Operator Symbol --
5209 --------------------------
5210
5211 -- OPERATOR_SYMBOL ::= STRING_LITERAL
5212
5213 -- Note: the fields of the N_Operator_Symbol node are laid out to match
5214 -- the corresponding fields of an N_Character_Literal node. This allows
5215 -- easy conversion of the operator symbol node into a character literal
5216 -- node in the case where a string constant of the form of an operator
5217 -- symbol is scanned out as such, but turns out semantically to be a
5218 -- string literal that is not an operator. For details see Sinfo.CN.
5219 -- Change_Operator_Symbol_To_String_Literal.
5220
5221 -- N_Operator_Symbol
5222 -- Sloc points to literal
5223 -- Chars (Name1) contains the Name_Id for the operator symbol
5224 -- Strval (Str3) Id of string value. This is used if the operator
5225 -- symbol turns out to be a normal string after all.
5226 -- Entity (Node4-Sem)
5227 -- Associated_Node (Node4-Sem)
5228 -- Has_Private_View (Flag11-Sem) set in generic units.
5229 -- Etype (Node5-Sem)
5230
5231 -- Note: the Strval field may be set to No_String for generated
5232 -- operator symbols that are known not to be string literals
5233 -- semantically.
5234
5235 -----------------------------------
5236 -- 6.1 Defining Operator Symbol --
5237 -----------------------------------
5238
5239 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
5240
5241 -- A defining operator symbol is an entity, which has additional
5242 -- fields depending on the setting of the Ekind field. These
5243 -- additional fields are defined (and access subprograms declared)
5244 -- in package Einfo.
5245
5246 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
5247 -- are deliberately layed out to match the layout of fields in an
5248 -- ordinary N_Operator_Symbol node allowing for easy alteration of
5249 -- an operator symbol node into a defining operator symbol node.
5250 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
5251 -- for further details.
5252
5253 -- N_Defining_Operator_Symbol
5254 -- Sloc points to literal
5255 -- Chars (Name1) contains the Name_Id for the operator symbol
5256 -- Next_Entity (Node2-Sem)
5257 -- Scope (Node3-Sem)
5258 -- Etype (Node5-Sem)
5259
5260 ----------------------------
5261 -- 6.1 Parameter Profile --
5262 ----------------------------
5263
5264 -- PARAMETER_PROFILE ::= [FORMAL_PART]
5265
5266 ---------------------------------------
5267 -- 6.1 Parameter and Result Profile --
5268 ---------------------------------------
5269
5270 -- PARAMETER_AND_RESULT_PROFILE ::=
5271 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
5272 -- | [FORMAL_PART] return ACCESS_DEFINITION
5273
5274 -- There is no explicit node in the tree for a parameter and result
5275 -- profile. Instead the information appears directly in the parent.
5276
5277 ----------------------
5278 -- 6.1 Formal Part --
5279 ----------------------
5280
5281 -- FORMAL_PART ::=
5282 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
5283
5284 ----------------------------------
5285 -- 6.1 Parameter Specification --
5286 ----------------------------------
5287
5288 -- PARAMETER_SPECIFICATION ::=
5289 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
5290 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
5291 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
5292 -- [:= DEFAULT_EXPRESSION]
5293
5294 -- Although the syntax allows multiple identifiers in the list, the
5295 -- semantics is as though successive specifications were given with
5296 -- identical type definition and expression components. To simplify
5297 -- semantic processing, the parser represents a multiple declaration
5298 -- case as a sequence of single Specifications, using the More_Ids and
5299 -- Prev_Ids flags to preserve the original source form as described
5300 -- in the section on "Handling of Defining Identifier Lists".
5301
5302 -- ALIASED can only be present in Ada 2012 mode
5303
5304 -- N_Parameter_Specification
5305 -- Sloc points to first identifier
5306 -- Defining_Identifier (Node1)
5307 -- Aliased_Present (Flag4)
5308 -- In_Present (Flag15)
5309 -- Out_Present (Flag17)
5310 -- Null_Exclusion_Present (Flag11)
5311 -- Parameter_Type (Node2) subtype mark or access definition
5312 -- Expression (Node3) (set to Empty if no default expression present)
5313 -- Do_Accessibility_Check (Flag13-Sem)
5314 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5315 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5316 -- Default_Expression (Node5-Sem)
5317
5318 ---------------
5319 -- 6.1 Mode --
5320 ---------------
5321
5322 -- MODE ::= [in] | in out | out
5323
5324 -- There is no explicit node in the tree for the Mode. Instead the
5325 -- In_Present and Out_Present flags are set in the parent node to
5326 -- record the presence of keywords specifying the mode.
5327
5328 --------------------------
5329 -- 6.3 Subprogram Body --
5330 --------------------------
5331
5332 -- SUBPROGRAM_BODY ::=
5333 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5334 -- DECLARATIVE_PART
5335 -- begin
5336 -- HANDLED_SEQUENCE_OF_STATEMENTS
5337 -- end [DESIGNATOR];
5338
5339 -- N_Subprogram_Body
5340 -- Sloc points to FUNCTION or PROCEDURE
5341 -- Specification (Node1)
5342 -- Declarations (List2)
5343 -- Handled_Statement_Sequence (Node4)
5344 -- Activation_Chain_Entity (Node3-Sem)
5345 -- Corresponding_Spec (Node5-Sem)
5346 -- Acts_As_Spec (Flag4-Sem)
5347 -- Bad_Is_Detected (Flag15) used only by parser
5348 -- Do_Storage_Check (Flag17-Sem)
5349 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5350 -- Is_Entry_Barrier_Function (Flag8-Sem)
5351 -- Is_Protected_Subprogram_Body (Flag7-Sem)
5352 -- Is_Task_Body_Procedure (Flag1-Sem)
5353 -- Is_Task_Master (Flag5-Sem)
5354 -- Was_Expression_Function (Flag18-Sem)
5355 -- Was_Originally_Stub (Flag13-Sem)
5356
5357 -------------------------
5358 -- Expression Function --
5359 -------------------------
5360
5361 -- This is an Ada 2012 extension, we put it here for now, to be labeled
5362 -- and put in its proper section when we know exactly where that is.
5363
5364 -- EXPRESSION_FUNCTION ::=
5365 -- FUNCTION SPECIFICATION IS (EXPRESSION)
5366 -- [ASPECT_SPECIFICATIONS];
5367
5368 -- N_Expression_Function
5369 -- Sloc points to FUNCTION
5370 -- Specification (Node1)
5371 -- Expression (Node3)
5372 -- Corresponding_Spec (Node5-Sem)
5373
5374 -----------------------------------
5375 -- 6.4 Procedure Call Statement --
5376 -----------------------------------
5377
5378 -- PROCEDURE_CALL_STATEMENT ::=
5379 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5380
5381 -- Note: the reason that a procedure call has expression fields is that
5382 -- it semantically resembles an expression, e.g. overloading is allowed
5383 -- and a type is concocted for semantic processing purposes. Certain of
5384 -- these fields, such as Parens are not relevant, but it is easier to
5385 -- just supply all of them together.
5386
5387 -- N_Procedure_Call_Statement
5388 -- Sloc points to first token of name or prefix
5389 -- Name (Node2) stores name or prefix
5390 -- Parameter_Associations (List3) (set to No_List if no
5391 -- actual parameter part)
5392 -- First_Named_Actual (Node4-Sem)
5393 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5394 -- Do_Tag_Check (Flag13-Sem)
5395 -- No_Elaboration_Check (Flag14-Sem)
5396 -- ABE_Is_Certain (Flag18-Sem)
5397 -- plus fields for expression
5398
5399 -- If any IN parameter requires a range check, then the corresponding
5400 -- argument expression has the Do_Range_Check flag set, and the range
5401 -- check is done against the formal type. Note that this argument
5402 -- expression may appear directly in the Parameter_Associations list,
5403 -- or may be a descendant of an N_Parameter_Association node that
5404 -- appears in this list.
5405
5406 ------------------------
5407 -- 6.4 Function Call --
5408 ------------------------
5409
5410 -- FUNCTION_CALL ::=
5411 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5412
5413 -- Note: the parser may generate an indexed component node or simply
5414 -- a name node instead of a function call node. The semantic pass must
5415 -- correct this misidentification.
5416
5417 -- N_Function_Call
5418 -- Sloc points to first token of name or prefix
5419 -- Name (Node2) stores name or prefix
5420 -- Parameter_Associations (List3) (set to No_List if no
5421 -- actual parameter part)
5422 -- First_Named_Actual (Node4-Sem)
5423 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5424 -- No_Side_Effect_Removal (Flag1-Sem)
5425 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5426 -- Do_Tag_Check (Flag13-Sem)
5427 -- No_Elaboration_Check (Flag14-Sem)
5428 -- ABE_Is_Certain (Flag18-Sem)
5429 -- plus fields for expression
5430
5431 --------------------------------
5432 -- 6.4 Actual Parameter Part --
5433 --------------------------------
5434
5435 -- ACTUAL_PARAMETER_PART ::=
5436 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5437
5438 --------------------------------
5439 -- 6.4 Parameter Association --
5440 --------------------------------
5441
5442 -- PARAMETER_ASSOCIATION ::=
5443 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5444
5445 -- Note: the N_Parameter_Association node is built only if a formal
5446 -- parameter selector name is present, otherwise the parameter
5447 -- association appears in the tree simply as the node for the
5448 -- explicit actual parameter.
5449
5450 -- N_Parameter_Association
5451 -- Sloc points to formal parameter
5452 -- Selector_Name (Node2) (always non-Empty)
5453 -- Explicit_Actual_Parameter (Node3)
5454 -- Next_Named_Actual (Node4-Sem)
5455 -- Is_Accessibility_Actual (Flag13-Sem)
5456
5457 ---------------------------
5458 -- 6.4 Actual Parameter --
5459 ---------------------------
5460
5461 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
5462
5463 ---------------------------
5464 -- 6.5 Return Statement --
5465 ---------------------------
5466
5467 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5468
5469 -- EXTENDED_RETURN_STATEMENT ::=
5470 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5471 -- [:= EXPRESSION] [do
5472 -- HANDLED_SEQUENCE_OF_STATEMENTS
5473 -- end return];
5474
5475 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5476
5477 -- The term "return statement" is defined in 6.5 to mean either a
5478 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5479 -- the use of this term, since it used to mean someting else in earlier
5480 -- versions of Ada.
5481
5482 -- N_Simple_Return_Statement
5483 -- Sloc points to RETURN
5484 -- Return_Statement_Entity (Node5-Sem)
5485 -- Expression (Node3) (set to Empty if no expression present)
5486 -- Storage_Pool (Node1-Sem)
5487 -- Procedure_To_Call (Node2-Sem)
5488 -- Do_Tag_Check (Flag13-Sem)
5489 -- By_Ref (Flag5-Sem)
5490 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5491
5492 -- Note: Return_Statement_Entity points to an E_Return_Statement
5493
5494 -- If a range check is required, then Do_Range_Check is set on the
5495 -- Expression. The check is against the return subtype of the function.
5496
5497 -- N_Extended_Return_Statement
5498 -- Sloc points to RETURN
5499 -- Return_Statement_Entity (Node5-Sem)
5500 -- Return_Object_Declarations (List3)
5501 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5502 -- Storage_Pool (Node1-Sem)
5503 -- Procedure_To_Call (Node2-Sem)
5504 -- Do_Tag_Check (Flag13-Sem)
5505 -- By_Ref (Flag5-Sem)
5506
5507 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5508
5509 -- Note that Return_Object_Declarations is a list containing the
5510 -- N_Object_Declaration -- see comment on this field above.
5511
5512 -- The declared object will have Is_Return_Object = True.
5513
5514 -- There is no such syntactic category as return_object_declaration
5515 -- in the RM. Return_Object_Declarations represents this portion of
5516 -- the syntax for EXTENDED_RETURN_STATEMENT:
5517 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5518 -- [:= EXPRESSION]
5519
5520 -- There are two entities associated with an extended_return_statement:
5521 -- the Return_Statement_Entity represents the statement itself,
5522 -- and the Defining_Identifier of the Object_Declaration in
5523 -- Return_Object_Declarations represents the object being
5524 -- returned. N_Simple_Return_Statement has only the former.
5525
5526 ------------------------------
5527 -- 7.1 Package Declaration --
5528 ------------------------------
5529
5530 -- PACKAGE_DECLARATION ::=
5531 -- PACKAGE_SPECIFICATION;
5532
5533 -- Note: the activation chain entity for a package spec is used for
5534 -- all tasks declared in the package spec, or in the package body.
5535
5536 -- N_Package_Declaration
5537 -- Sloc points to PACKAGE
5538 -- Specification (Node1)
5539 -- Corresponding_Body (Node5-Sem)
5540 -- Parent_Spec (Node4-Sem)
5541 -- Activation_Chain_Entity (Node3-Sem)
5542
5543 --------------------------------
5544 -- 7.1 Package Specification --
5545 --------------------------------
5546
5547 -- PACKAGE_SPECIFICATION ::=
5548 -- package DEFINING_PROGRAM_UNIT_NAME
5549 -- [ASPECT_SPECIFICATIONS]
5550 -- is
5551 -- {BASIC_DECLARATIVE_ITEM}
5552 -- [private
5553 -- {BASIC_DECLARATIVE_ITEM}]
5554 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5555
5556 -- N_Package_Specification
5557 -- Sloc points to PACKAGE
5558 -- Defining_Unit_Name (Node1)
5559 -- Visible_Declarations (List2)
5560 -- Private_Declarations (List3) (set to No_List if no private
5561 -- part present)
5562 -- End_Label (Node4)
5563 -- Generic_Parent (Node5-Sem)
5564 -- Limited_View_Installed (Flag18-Sem)
5565
5566 -----------------------
5567 -- 7.1 Package Body --
5568 -----------------------
5569
5570 -- PACKAGE_BODY ::=
5571 -- package body DEFINING_PROGRAM_UNIT_NAME
5572 -- [ASPECT_SPECIFICATIONS]
5573 -- is
5574 -- DECLARATIVE_PART
5575 -- [begin
5576 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5577 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5578
5579 -- N_Package_Body
5580 -- Sloc points to PACKAGE
5581 -- Defining_Unit_Name (Node1)
5582 -- Declarations (List2)
5583 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5584 -- Corresponding_Spec (Node5-Sem)
5585 -- Was_Originally_Stub (Flag13-Sem)
5586
5587 -- Note: if a source level package does not contain a handled sequence
5588 -- of statements, then the parser supplies a dummy one with a null
5589 -- sequence of statements. Comes_From_Source will be False in this
5590 -- constructed sequence. The reason we need this is for the End_Label
5591 -- field in the HSS.
5592
5593 -----------------------------------
5594 -- 7.4 Private Type Declaration --
5595 -----------------------------------
5596
5597 -- PRIVATE_TYPE_DECLARATION ::=
5598 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5599 -- is [[abstract] tagged] [limited] private
5600 -- [ASPECT_SPECIFICATIONS];
5601
5602 -- Note: TAGGED is not permitted in Ada 83 mode
5603
5604 -- N_Private_Type_Declaration
5605 -- Sloc points to TYPE
5606 -- Defining_Identifier (Node1)
5607 -- Discriminant_Specifications (List4) (set to No_List if no
5608 -- discriminant part)
5609 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5610 -- Abstract_Present (Flag4)
5611 -- Tagged_Present (Flag15)
5612 -- Limited_Present (Flag17)
5613
5614 ----------------------------------------
5615 -- 7.4 Private Extension Declaration --
5616 ----------------------------------------
5617
5618 -- PRIVATE_EXTENSION_DECLARATION ::=
5619 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5620 -- [abstract] [limited | synchronized]
5621 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5622 -- with private [ASPECT_SPECIFICATIONS];
5623
5624 -- Note: LIMITED, and private extension declarations are not allowed
5625 -- in Ada 83 mode.
5626
5627 -- N_Private_Extension_Declaration
5628 -- Sloc points to TYPE
5629 -- Defining_Identifier (Node1)
5630 -- Uninitialized_Variable (Node3-Sem)
5631 -- Discriminant_Specifications (List4) (set to No_List if no
5632 -- discriminant part)
5633 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5634 -- Abstract_Present (Flag4)
5635 -- Limited_Present (Flag17)
5636 -- Synchronized_Present (Flag7)
5637 -- Subtype_Indication (Node5)
5638 -- Interface_List (List2) (set to No_List if none)
5639
5640 ---------------------
5641 -- 8.4 Use Clause --
5642 ---------------------
5643
5644 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5645
5646 -----------------------------
5647 -- 8.4 Use Package Clause --
5648 -----------------------------
5649
5650 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5651
5652 -- N_Use_Package_Clause
5653 -- Sloc points to USE
5654 -- Names (List2)
5655 -- Next_Use_Clause (Node3-Sem)
5656 -- Hidden_By_Use_Clause (Elist4-Sem)
5657
5658 --------------------------
5659 -- 8.4 Use Type Clause --
5660 --------------------------
5661
5662 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5663
5664 -- Note: use type clause is not permitted in Ada 83 mode
5665
5666 -- Note: the ALL keyword can appear only in Ada 2012 mode
5667
5668 -- N_Use_Type_Clause
5669 -- Sloc points to USE
5670 -- Subtype_Marks (List2)
5671 -- Next_Use_Clause (Node3-Sem)
5672 -- Hidden_By_Use_Clause (Elist4-Sem)
5673 -- Used_Operations (Elist5-Sem)
5674 -- All_Present (Flag15)
5675
5676 -------------------------------
5677 -- 8.5 Renaming Declaration --
5678 -------------------------------
5679
5680 -- RENAMING_DECLARATION ::=
5681 -- OBJECT_RENAMING_DECLARATION
5682 -- | EXCEPTION_RENAMING_DECLARATION
5683 -- | PACKAGE_RENAMING_DECLARATION
5684 -- | SUBPROGRAM_RENAMING_DECLARATION
5685 -- | GENERIC_RENAMING_DECLARATION
5686
5687 --------------------------------------
5688 -- 8.5 Object Renaming Declaration --
5689 --------------------------------------
5690
5691 -- OBJECT_RENAMING_DECLARATION ::=
5692 -- DEFINING_IDENTIFIER :
5693 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5694 -- [ASPECT_SPECIFICATIONS];
5695 -- | DEFINING_IDENTIFIER :
5696 -- ACCESS_DEFINITION renames object_NAME
5697 -- [ASPECT_SPECIFICATIONS];
5698
5699 -- Note: Access_Definition is an optional field that gives support to
5700 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5701 -- Subtype_Indication field or else the Access_Definition field.
5702
5703 -- N_Object_Renaming_Declaration
5704 -- Sloc points to first identifier
5705 -- Defining_Identifier (Node1)
5706 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5707 -- Subtype_Mark (Node4) (set to Empty if not present)
5708 -- Access_Definition (Node3) (set to Empty if not present)
5709 -- Name (Node2)
5710 -- Corresponding_Generic_Association (Node5-Sem)
5711
5712 -----------------------------------------
5713 -- 8.5 Exception Renaming Declaration --
5714 -----------------------------------------
5715
5716 -- EXCEPTION_RENAMING_DECLARATION ::=
5717 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5718 -- [ASPECT_SPECIFICATIONS];
5719
5720 -- N_Exception_Renaming_Declaration
5721 -- Sloc points to first identifier
5722 -- Defining_Identifier (Node1)
5723 -- Name (Node2)
5724
5725 ---------------------------------------
5726 -- 8.5 Package Renaming Declaration --
5727 ---------------------------------------
5728
5729 -- PACKAGE_RENAMING_DECLARATION ::=
5730 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5731 -- [ASPECT_SPECIFICATIONS];
5732
5733 -- N_Package_Renaming_Declaration
5734 -- Sloc points to PACKAGE
5735 -- Defining_Unit_Name (Node1)
5736 -- Name (Node2)
5737 -- Parent_Spec (Node4-Sem)
5738
5739 ------------------------------------------
5740 -- 8.5 Subprogram Renaming Declaration --
5741 ------------------------------------------
5742
5743 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5744 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5745 -- [ASPECT_SPECIFICATIONS];
5746
5747 -- N_Subprogram_Renaming_Declaration
5748 -- Sloc points to RENAMES
5749 -- Specification (Node1)
5750 -- Name (Node2)
5751 -- Parent_Spec (Node4-Sem)
5752 -- Corresponding_Spec (Node5-Sem)
5753 -- Corresponding_Formal_Spec (Node3-Sem)
5754 -- From_Default (Flag6-Sem)
5755
5756 -----------------------------------------
5757 -- 8.5.5 Generic Renaming Declaration --
5758 -----------------------------------------
5759
5760 -- GENERIC_RENAMING_DECLARATION ::=
5761 -- generic package DEFINING_PROGRAM_UNIT_NAME
5762 -- renames generic_package_NAME
5763 -- [ASPECT_SPECIFICATIONS];
5764 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5765 -- renames generic_procedure_NAME
5766 -- [ASPECT_SPECIFICATIONS];
5767 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5768 -- renames generic_function_NAME
5769 -- [ASPECT_SPECIFICATIONS];
5770
5771 -- N_Generic_Package_Renaming_Declaration
5772 -- Sloc points to GENERIC
5773 -- Defining_Unit_Name (Node1)
5774 -- Name (Node2)
5775 -- Parent_Spec (Node4-Sem)
5776
5777 -- N_Generic_Procedure_Renaming_Declaration
5778 -- Sloc points to GENERIC
5779 -- Defining_Unit_Name (Node1)
5780 -- Name (Node2)
5781 -- Parent_Spec (Node4-Sem)
5782
5783 -- N_Generic_Function_Renaming_Declaration
5784 -- Sloc points to GENERIC
5785 -- Defining_Unit_Name (Node1)
5786 -- Name (Node2)
5787 -- Parent_Spec (Node4-Sem)
5788
5789 --------------------------------
5790 -- 9.1 Task Type Declaration --
5791 --------------------------------
5792
5793 -- TASK_TYPE_DECLARATION ::=
5794 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5795 -- [ASPECT_SPECIFICATIONS]
5796 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5797
5798 -- N_Task_Type_Declaration
5799 -- Sloc points to TASK
5800 -- Defining_Identifier (Node1)
5801 -- Discriminant_Specifications (List4) (set to No_List if no
5802 -- discriminant part)
5803 -- Interface_List (List2) (set to No_List if none)
5804 -- Task_Definition (Node3) (set to Empty if not present)
5805 -- Corresponding_Body (Node5-Sem)
5806
5807 ----------------------------------
5808 -- 9.1 Single Task Declaration --
5809 ----------------------------------
5810
5811 -- SINGLE_TASK_DECLARATION ::=
5812 -- task DEFINING_IDENTIFIER
5813 -- [ASPECT_SPECIFICATIONS]
5814 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5815
5816 -- N_Single_Task_Declaration
5817 -- Sloc points to TASK
5818 -- Defining_Identifier (Node1)
5819 -- Interface_List (List2) (set to No_List if none)
5820 -- Task_Definition (Node3) (set to Empty if not present)
5821
5822 --------------------------
5823 -- 9.1 Task Definition --
5824 --------------------------
5825
5826 -- TASK_DEFINITION ::=
5827 -- {TASK_ITEM}
5828 -- [private
5829 -- {TASK_ITEM}]
5830 -- end [task_IDENTIFIER]
5831
5832 -- Note: as a result of semantic analysis, the list of task items can
5833 -- include implicit type declarations resulting from entry families.
5834
5835 -- N_Task_Definition
5836 -- Sloc points to first token of task definition
5837 -- Visible_Declarations (List2)
5838 -- Private_Declarations (List3) (set to No_List if no private part)
5839 -- End_Label (Node4)
5840 -- Has_Storage_Size_Pragma (Flag5-Sem)
5841 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5842
5843 --------------------
5844 -- 9.1 Task Item --
5845 --------------------
5846
5847 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5848
5849 --------------------
5850 -- 9.1 Task Body --
5851 --------------------
5852
5853 -- TASK_BODY ::=
5854 -- task body task_DEFINING_IDENTIFIER
5855 -- [ASPECT_SPECIFICATIONS]
5856 -- is
5857 -- DECLARATIVE_PART
5858 -- begin
5859 -- HANDLED_SEQUENCE_OF_STATEMENTS
5860 -- end [task_IDENTIFIER];
5861
5862 -- Gigi restriction: This node never appears
5863
5864 -- N_Task_Body
5865 -- Sloc points to TASK
5866 -- Defining_Identifier (Node1)
5867 -- Declarations (List2)
5868 -- Handled_Statement_Sequence (Node4)
5869 -- Is_Task_Master (Flag5-Sem)
5870 -- Activation_Chain_Entity (Node3-Sem)
5871 -- Corresponding_Spec (Node5-Sem)
5872 -- Was_Originally_Stub (Flag13-Sem)
5873
5874 -------------------------------------
5875 -- 9.4 Protected Type Declaration --
5876 -------------------------------------
5877
5878 -- PROTECTED_TYPE_DECLARATION ::=
5879 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5880 -- [ASPECT_SPECIFICATIONS]
5881 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5882
5883 -- Note: protected type declarations are not permitted in Ada 83 mode
5884
5885 -- N_Protected_Type_Declaration
5886 -- Sloc points to PROTECTED
5887 -- Defining_Identifier (Node1)
5888 -- Discriminant_Specifications (List4) (set to No_List if no
5889 -- discriminant part)
5890 -- Interface_List (List2) (set to No_List if none)
5891 -- Protected_Definition (Node3)
5892 -- Corresponding_Body (Node5-Sem)
5893
5894 ---------------------------------------
5895 -- 9.4 Single Protected Declaration --
5896 ---------------------------------------
5897
5898 -- SINGLE_PROTECTED_DECLARATION ::=
5899 -- protected DEFINING_IDENTIFIER
5900 -- [ASPECT_SPECIFICATIONS]
5901 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5902
5903 -- Note: single protected declarations are not allowed in Ada 83 mode
5904
5905 -- N_Single_Protected_Declaration
5906 -- Sloc points to PROTECTED
5907 -- Defining_Identifier (Node1)
5908 -- Interface_List (List2) (set to No_List if none)
5909 -- Protected_Definition (Node3)
5910
5911 -------------------------------
5912 -- 9.4 Protected Definition --
5913 -------------------------------
5914
5915 -- PROTECTED_DEFINITION ::=
5916 -- {PROTECTED_OPERATION_DECLARATION}
5917 -- [private
5918 -- {PROTECTED_ELEMENT_DECLARATION}]
5919 -- end [protected_IDENTIFIER]
5920
5921 -- N_Protected_Definition
5922 -- Sloc points to first token of protected definition
5923 -- Visible_Declarations (List2)
5924 -- Private_Declarations (List3) (set to No_List if no private part)
5925 -- End_Label (Node4)
5926
5927 ------------------------------------------
5928 -- 9.4 Protected Operation Declaration --
5929 ------------------------------------------
5930
5931 -- PROTECTED_OPERATION_DECLARATION ::=
5932 -- SUBPROGRAM_DECLARATION
5933 -- | ENTRY_DECLARATION
5934 -- | REPRESENTATION_CLAUSE
5935
5936 ----------------------------------------
5937 -- 9.4 Protected Element Declaration --
5938 ----------------------------------------
5939
5940 -- PROTECTED_ELEMENT_DECLARATION ::=
5941 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5942
5943 -------------------------
5944 -- 9.4 Protected Body --
5945 -------------------------
5946
5947 -- PROTECTED_BODY ::=
5948 -- protected body DEFINING_IDENTIFIER
5949 -- [ASPECT_SPECIFICATIONS];
5950 -- is
5951 -- {PROTECTED_OPERATION_ITEM}
5952 -- end [protected_IDENTIFIER];
5953
5954 -- Note: protected bodies are not allowed in Ada 83 mode
5955
5956 -- Gigi restriction: This node never appears
5957
5958 -- N_Protected_Body
5959 -- Sloc points to PROTECTED
5960 -- Defining_Identifier (Node1)
5961 -- Declarations (List2) protected operation items (and pragmas)
5962 -- End_Label (Node4)
5963 -- Corresponding_Spec (Node5-Sem)
5964 -- Was_Originally_Stub (Flag13-Sem)
5965
5966 -----------------------------------
5967 -- 9.4 Protected Operation Item --
5968 -----------------------------------
5969
5970 -- PROTECTED_OPERATION_ITEM ::=
5971 -- SUBPROGRAM_DECLARATION
5972 -- | SUBPROGRAM_BODY
5973 -- | ENTRY_BODY
5974 -- | REPRESENTATION_CLAUSE
5975
5976 ------------------------------
5977 -- 9.5.2 Entry Declaration --
5978 ------------------------------
5979
5980 -- ENTRY_DECLARATION ::=
5981 -- [[not] overriding]
5982 -- entry DEFINING_IDENTIFIER
5983 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
5984 -- [ASPECT_SPECIFICATIONS];
5985
5986 -- N_Entry_Declaration
5987 -- Sloc points to ENTRY
5988 -- Defining_Identifier (Node1)
5989 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5990 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5991 -- Corresponding_Body (Node5-Sem)
5992 -- Must_Override (Flag14) set if overriding indicator present
5993 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5994
5995 -- Note: overriding indicator is an Ada 2005 feature
5996
5997 -----------------------------
5998 -- 9.5.2 Accept statement --
5999 -----------------------------
6000
6001 -- ACCEPT_STATEMENT ::=
6002 -- accept entry_DIRECT_NAME
6003 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
6004 -- HANDLED_SEQUENCE_OF_STATEMENTS
6005 -- end [entry_IDENTIFIER]];
6006
6007 -- Gigi restriction: This node never appears
6008
6009 -- Note: there are no explicit declarations allowed in an accept
6010 -- statement. However, the implicit declarations for any statement
6011 -- identifiers (labels and block/loop identifiers) are declarations
6012 -- that belong logically to the accept statement, and that is why
6013 -- there is a Declarations field in this node.
6014
6015 -- N_Accept_Statement
6016 -- Sloc points to ACCEPT
6017 -- Entry_Direct_Name (Node1)
6018 -- Entry_Index (Node5) (set to Empty if not present)
6019 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6020 -- Handled_Statement_Sequence (Node4)
6021 -- Declarations (List2) (set to No_List if no declarations)
6022
6023 ------------------------
6024 -- 9.5.2 Entry Index --
6025 ------------------------
6026
6027 -- ENTRY_INDEX ::= EXPRESSION
6028
6029 -----------------------
6030 -- 9.5.2 Entry Body --
6031 -----------------------
6032
6033 -- ENTRY_BODY ::=
6034 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
6035 -- DECLARATIVE_PART
6036 -- begin
6037 -- HANDLED_SEQUENCE_OF_STATEMENTS
6038 -- end [entry_IDENTIFIER];
6039
6040 -- ENTRY_BARRIER ::= when CONDITION
6041
6042 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
6043 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
6044 -- too full (it would otherwise have too many fields)
6045
6046 -- Gigi restriction: This node never appears
6047
6048 -- N_Entry_Body
6049 -- Sloc points to ENTRY
6050 -- Defining_Identifier (Node1)
6051 -- Entry_Body_Formal_Part (Node5)
6052 -- Declarations (List2)
6053 -- Handled_Statement_Sequence (Node4)
6054 -- Activation_Chain_Entity (Node3-Sem)
6055
6056 -----------------------------------
6057 -- 9.5.2 Entry Body Formal Part --
6058 -----------------------------------
6059
6060 -- ENTRY_BODY_FORMAL_PART ::=
6061 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
6062
6063 -- Note that an entry body formal part node is present even if it is
6064 -- empty. This reflects the grammar, in which it is the components of
6065 -- the entry body formal part that are optional, not the entry body
6066 -- formal part itself. Also this means that the barrier condition
6067 -- always has somewhere to be stored.
6068
6069 -- Gigi restriction: This node never appears
6070
6071 -- N_Entry_Body_Formal_Part
6072 -- Sloc points to first token
6073 -- Entry_Index_Specification (Node4) (set to Empty if not present)
6074 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6075 -- Condition (Node1) from entry barrier of entry body
6076
6077 --------------------------
6078 -- 9.5.2 Entry Barrier --
6079 --------------------------
6080
6081 -- ENTRY_BARRIER ::= when CONDITION
6082
6083 --------------------------------------
6084 -- 9.5.2 Entry Index Specification --
6085 --------------------------------------
6086
6087 -- ENTRY_INDEX_SPECIFICATION ::=
6088 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
6089
6090 -- Gigi restriction: This node never appears
6091
6092 -- N_Entry_Index_Specification
6093 -- Sloc points to FOR
6094 -- Defining_Identifier (Node1)
6095 -- Discrete_Subtype_Definition (Node4)
6096
6097 ---------------------------------
6098 -- 9.5.3 Entry Call Statement --
6099 ---------------------------------
6100
6101 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
6102
6103 -- The parser may generate a procedure call for this construct. The
6104 -- semantic pass must correct this misidentification where needed.
6105
6106 -- Gigi restriction: This node never appears
6107
6108 -- N_Entry_Call_Statement
6109 -- Sloc points to first token of name
6110 -- Name (Node2)
6111 -- Parameter_Associations (List3) (set to No_List if no
6112 -- actual parameter part)
6113 -- First_Named_Actual (Node4-Sem)
6114
6115 ------------------------------
6116 -- 9.5.4 Requeue Statement --
6117 ------------------------------
6118
6119 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
6120
6121 -- Note: requeue statements are not permitted in Ada 83 mode
6122
6123 -- Gigi restriction: This node never appears
6124
6125 -- N_Requeue_Statement
6126 -- Sloc points to REQUEUE
6127 -- Name (Node2)
6128 -- Abort_Present (Flag15)
6129
6130 --------------------------
6131 -- 9.6 Delay Statement --
6132 --------------------------
6133
6134 -- DELAY_STATEMENT ::=
6135 -- DELAY_UNTIL_STATEMENT
6136 -- | DELAY_RELATIVE_STATEMENT
6137
6138 --------------------------------
6139 -- 9.6 Delay Until Statement --
6140 --------------------------------
6141
6142 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
6143
6144 -- Note: delay until statements are not permitted in Ada 83 mode
6145
6146 -- Gigi restriction: This node never appears
6147
6148 -- N_Delay_Until_Statement
6149 -- Sloc points to DELAY
6150 -- Expression (Node3)
6151
6152 -----------------------------------
6153 -- 9.6 Delay Relative Statement --
6154 -----------------------------------
6155
6156 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
6157
6158 -- Gigi restriction: This node never appears
6159
6160 -- N_Delay_Relative_Statement
6161 -- Sloc points to DELAY
6162 -- Expression (Node3)
6163
6164 ---------------------------
6165 -- 9.7 Select Statement --
6166 ---------------------------
6167
6168 -- SELECT_STATEMENT ::=
6169 -- SELECTIVE_ACCEPT
6170 -- | TIMED_ENTRY_CALL
6171 -- | CONDITIONAL_ENTRY_CALL
6172 -- | ASYNCHRONOUS_SELECT
6173
6174 -----------------------------
6175 -- 9.7.1 Selective Accept --
6176 -----------------------------
6177
6178 -- SELECTIVE_ACCEPT ::=
6179 -- select
6180 -- [GUARD]
6181 -- SELECT_ALTERNATIVE
6182 -- {or
6183 -- [GUARD]
6184 -- SELECT_ALTERNATIVE}
6185 -- [else
6186 -- SEQUENCE_OF_STATEMENTS]
6187 -- end select;
6188
6189 -- Gigi restriction: This node never appears
6190
6191 -- Note: the guard expression, if present, appears in the node for
6192 -- the select alternative.
6193
6194 -- N_Selective_Accept
6195 -- Sloc points to SELECT
6196 -- Select_Alternatives (List1)
6197 -- Else_Statements (List4) (set to No_List if no else part)
6198
6199 ------------------
6200 -- 9.7.1 Guard --
6201 ------------------
6202
6203 -- GUARD ::= when CONDITION =>
6204
6205 -- As noted above, the CONDITION that is part of a GUARD is included
6206 -- in the node for the select alternative for convenience.
6207
6208 -------------------------------
6209 -- 9.7.1 Select Alternative --
6210 -------------------------------
6211
6212 -- SELECT_ALTERNATIVE ::=
6213 -- ACCEPT_ALTERNATIVE
6214 -- | DELAY_ALTERNATIVE
6215 -- | TERMINATE_ALTERNATIVE
6216
6217 -------------------------------
6218 -- 9.7.1 Accept Alternative --
6219 -------------------------------
6220
6221 -- ACCEPT_ALTERNATIVE ::=
6222 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
6223
6224 -- Gigi restriction: This node never appears
6225
6226 -- N_Accept_Alternative
6227 -- Sloc points to ACCEPT
6228 -- Accept_Statement (Node2)
6229 -- Condition (Node1) from the guard (set to Empty if no guard present)
6230 -- Statements (List3) (set to Empty_List if no statements)
6231 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6232 -- Accept_Handler_Records (List5-Sem)
6233
6234 ------------------------------
6235 -- 9.7.1 Delay Alternative --
6236 ------------------------------
6237
6238 -- DELAY_ALTERNATIVE ::=
6239 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
6240
6241 -- Gigi restriction: This node never appears
6242
6243 -- N_Delay_Alternative
6244 -- Sloc points to DELAY
6245 -- Delay_Statement (Node2)
6246 -- Condition (Node1) from the guard (set to Empty if no guard present)
6247 -- Statements (List3) (set to Empty_List if no statements)
6248 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6249
6250 ----------------------------------
6251 -- 9.7.1 Terminate Alternative --
6252 ----------------------------------
6253
6254 -- TERMINATE_ALTERNATIVE ::= terminate;
6255
6256 -- Gigi restriction: This node never appears
6257
6258 -- N_Terminate_Alternative
6259 -- Sloc points to TERMINATE
6260 -- Condition (Node1) from the guard (set to Empty if no guard present)
6261 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6262 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
6263
6264 -----------------------------
6265 -- 9.7.2 Timed Entry Call --
6266 -----------------------------
6267
6268 -- TIMED_ENTRY_CALL ::=
6269 -- select
6270 -- ENTRY_CALL_ALTERNATIVE
6271 -- or
6272 -- DELAY_ALTERNATIVE
6273 -- end select;
6274
6275 -- Gigi restriction: This node never appears
6276
6277 -- N_Timed_Entry_Call
6278 -- Sloc points to SELECT
6279 -- Entry_Call_Alternative (Node1)
6280 -- Delay_Alternative (Node4)
6281
6282 -----------------------------------
6283 -- 9.7.2 Entry Call Alternative --
6284 -----------------------------------
6285
6286 -- ENTRY_CALL_ALTERNATIVE ::=
6287 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
6288
6289 -- PROCEDURE_OR_ENTRY_CALL ::=
6290 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
6291
6292 -- Gigi restriction: This node never appears
6293
6294 -- N_Entry_Call_Alternative
6295 -- Sloc points to first token of entry call statement
6296 -- Entry_Call_Statement (Node1)
6297 -- Statements (List3) (set to Empty_List if no statements)
6298 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6299
6300 -----------------------------------
6301 -- 9.7.3 Conditional Entry Call --
6302 -----------------------------------
6303
6304 -- CONDITIONAL_ENTRY_CALL ::=
6305 -- select
6306 -- ENTRY_CALL_ALTERNATIVE
6307 -- else
6308 -- SEQUENCE_OF_STATEMENTS
6309 -- end select;
6310
6311 -- Gigi restriction: This node never appears
6312
6313 -- N_Conditional_Entry_Call
6314 -- Sloc points to SELECT
6315 -- Entry_Call_Alternative (Node1)
6316 -- Else_Statements (List4)
6317
6318 --------------------------------
6319 -- 9.7.4 Asynchronous Select --
6320 --------------------------------
6321
6322 -- ASYNCHRONOUS_SELECT ::=
6323 -- select
6324 -- TRIGGERING_ALTERNATIVE
6325 -- then abort
6326 -- ABORTABLE_PART
6327 -- end select;
6328
6329 -- Note: asynchronous select is not permitted in Ada 83 mode
6330
6331 -- Gigi restriction: This node never appears
6332
6333 -- N_Asynchronous_Select
6334 -- Sloc points to SELECT
6335 -- Triggering_Alternative (Node1)
6336 -- Abortable_Part (Node2)
6337
6338 -----------------------------------
6339 -- 9.7.4 Triggering Alternative --
6340 -----------------------------------
6341
6342 -- TRIGGERING_ALTERNATIVE ::=
6343 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6344
6345 -- Gigi restriction: This node never appears
6346
6347 -- N_Triggering_Alternative
6348 -- Sloc points to first token of triggering statement
6349 -- Triggering_Statement (Node1)
6350 -- Statements (List3) (set to Empty_List if no statements)
6351 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6352
6353 ---------------------------------
6354 -- 9.7.4 Triggering Statement --
6355 ---------------------------------
6356
6357 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6358
6359 ---------------------------
6360 -- 9.7.4 Abortable Part --
6361 ---------------------------
6362
6363 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6364
6365 -- Gigi restriction: This node never appears
6366
6367 -- N_Abortable_Part
6368 -- Sloc points to ABORT
6369 -- Statements (List3)
6370
6371 --------------------------
6372 -- 9.8 Abort Statement --
6373 --------------------------
6374
6375 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6376
6377 -- Gigi restriction: This node never appears
6378
6379 -- N_Abort_Statement
6380 -- Sloc points to ABORT
6381 -- Names (List2)
6382
6383 -------------------------
6384 -- 10.1.1 Compilation --
6385 -------------------------
6386
6387 -- COMPILATION ::= {COMPILATION_UNIT}
6388
6389 -- There is no explicit node in the tree for a compilation, since in
6390 -- general the compiler is processing only a single compilation unit
6391 -- at a time. It is possible to parse multiple units in syntax check
6392 -- only mode, but the trees are discarded in that case.
6393
6394 ------------------------------
6395 -- 10.1.1 Compilation Unit --
6396 ------------------------------
6397
6398 -- COMPILATION_UNIT ::=
6399 -- CONTEXT_CLAUSE LIBRARY_ITEM
6400 -- | CONTEXT_CLAUSE SUBUNIT
6401
6402 -- The N_Compilation_Unit node itself represents the above syntax.
6403 -- However, there are two additional items not reflected in the above
6404 -- syntax. First we have the global declarations that are added by the
6405 -- code generator. These are outer level declarations (so they cannot
6406 -- be represented as being inside the units). An example is the wrapper
6407 -- subprograms that are created to do ABE checking. As always a list of
6408 -- declarations can contain actions as well (i.e. statements), and such
6409 -- statements are executed as part of the elaboration of the unit. Note
6410 -- that all such declarations are elaborated before the library unit.
6411
6412 -- Similarly, certain actions need to be elaborated at the completion
6413 -- of elaboration of the library unit (notably the statement that sets
6414 -- the Boolean flag indicating that elaboration is complete).
6415
6416 -- The third item not reflected in the syntax is pragmas that appear
6417 -- after the compilation unit. As always pragmas are a problem since
6418 -- they are not part of the formal syntax, but can be stuck into the
6419 -- source following a set of ad hoc rules, and we have to find an ad
6420 -- hoc way of sticking them into the tree. For pragmas that appear
6421 -- before the library unit, we just consider them to be part of the
6422 -- context clause, and pragmas can appear in the Context_Items list
6423 -- of the compilation unit. However, pragmas can also appear after
6424 -- the library item.
6425
6426 -- To deal with all these problems, we create an auxiliary node for
6427 -- a compilation unit, referenced from the N_Compilation_Unit node,
6428 -- that contains these items.
6429
6430 -- N_Compilation_Unit
6431 -- Sloc points to first token of defining unit name
6432 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6433 -- Context_Items (List1) context items and pragmas preceding unit
6434 -- Private_Present (Flag15) set if library unit has private keyword
6435 -- Unit (Node2) library item or subunit
6436 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6437 -- Has_No_Elaboration_Code (Flag17-Sem)
6438 -- Body_Required (Flag13-Sem) set for spec if body is required
6439 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6440 -- Context_Pending (Flag16-Sem)
6441 -- First_Inlined_Subprogram (Node3-Sem)
6442 -- Has_Pragma_Suppress_All (Flag14-Sem)
6443
6444 -- N_Compilation_Unit_Aux
6445 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6446 -- Declarations (List2) (set to No_List if no global declarations)
6447 -- Actions (List1) (set to No_List if no actions)
6448 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6449 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6450 -- Default_Storage_Pool (Node3-Sem)
6451
6452 --------------------------
6453 -- 10.1.1 Library Item --
6454 --------------------------
6455
6456 -- LIBRARY_ITEM ::=
6457 -- [private] LIBRARY_UNIT_DECLARATION
6458 -- | LIBRARY_UNIT_BODY
6459 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6460
6461 -- Note: PRIVATE is not allowed in Ada 83 mode
6462
6463 -- There is no explicit node in the tree for library item, instead
6464 -- the declaration or body, and the flag for private if present,
6465 -- appear in the N_Compilation_Unit node.
6466
6467 --------------------------------------
6468 -- 10.1.1 Library Unit Declaration --
6469 --------------------------------------
6470
6471 -- LIBRARY_UNIT_DECLARATION ::=
6472 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6473 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6474
6475 -----------------------------------------------
6476 -- 10.1.1 Library Unit Renaming Declaration --
6477 -----------------------------------------------
6478
6479 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6480 -- PACKAGE_RENAMING_DECLARATION
6481 -- | GENERIC_RENAMING_DECLARATION
6482 -- | SUBPROGRAM_RENAMING_DECLARATION
6483
6484 -------------------------------
6485 -- 10.1.1 Library unit body --
6486 -------------------------------
6487
6488 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6489
6490 ------------------------------
6491 -- 10.1.1 Parent Unit Name --
6492 ------------------------------
6493
6494 -- PARENT_UNIT_NAME ::= NAME
6495
6496 ----------------------------
6497 -- 10.1.2 Context clause --
6498 ----------------------------
6499
6500 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6501
6502 -- The context clause can include pragmas, and any pragmas that appear
6503 -- before the context clause proper (i.e. all configuration pragmas,
6504 -- also appear at the front of this list).
6505
6506 --------------------------
6507 -- 10.1.2 Context_Item --
6508 --------------------------
6509
6510 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6511
6512 -------------------------
6513 -- 10.1.2 With clause --
6514 -------------------------
6515
6516 -- WITH_CLAUSE ::=
6517 -- with library_unit_NAME {,library_unit_NAME};
6518
6519 -- A separate With clause is built for each name, so that we have
6520 -- a Corresponding_Spec field for each with'ed spec. The flags
6521 -- First_Name and Last_Name are used to reconstruct the exact
6522 -- source form. When a list of names appears in one with clause,
6523 -- the first name in the list has First_Name set, and the last
6524 -- has Last_Name set. If the with clause has only one name, then
6525 -- both of the flags First_Name and Last_Name are set in this name.
6526
6527 -- Note: in the case of implicit with's that are installed by the
6528 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6529 -- set to Standard_Location, but it is incorrect to test the Sloc
6530 -- to find out if a with clause is implicit, test the flag instead.
6531
6532 -- N_With_Clause
6533 -- Sloc points to first token of library unit name
6534 -- Withed_Body (Node1-Sem)
6535 -- Name (Node2)
6536 -- Next_Implicit_With (Node3-Sem)
6537 -- Library_Unit (Node4-Sem)
6538 -- Corresponding_Spec (Node5-Sem)
6539 -- First_Name (Flag5) (set to True if first name or only one name)
6540 -- Last_Name (Flag6) (set to True if last name or only one name)
6541 -- Context_Installed (Flag13-Sem)
6542 -- Elaborate_Present (Flag4-Sem)
6543 -- Elaborate_All_Present (Flag14-Sem)
6544 -- Elaborate_All_Desirable (Flag9-Sem)
6545 -- Elaborate_Desirable (Flag11-Sem)
6546 -- Private_Present (Flag15) set if with_clause has private keyword
6547 -- Implicit_With (Flag16-Sem)
6548 -- Implicit_With_From_Instantiation (Flag12-Sem)
6549 -- Limited_Present (Flag17) set if LIMITED is present
6550 -- Limited_View_Installed (Flag18-Sem)
6551 -- Unreferenced_In_Spec (Flag7-Sem)
6552 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6553
6554 -- Note: Limited_Present and Limited_View_Installed are used to support
6555 -- the implementation of Ada 2005 (AI-50217).
6556
6557 -- Similarly, Private_Present is used to support the implementation of
6558 -- Ada 2005 (AI-50262).
6559
6560 -- Note: if the WITH clause refers to a standard library unit, then a
6561 -- limited with clause is changed into a normal with clause, because we
6562 -- are not prepared to deal with limited with in the context of Rtsfind.
6563 -- So in this case, the Limited_Present flag will be False in the final
6564 -- tree. However, we do NOT do this transformation in ASIS mode, so for
6565 -- ASIS the flag will remain set in this situation.
6566
6567 ----------------------
6568 -- With_Type clause --
6569 ----------------------
6570
6571 -- This is a GNAT extension, used to implement mutually recursive
6572 -- types declared in different packages.
6573
6574 -- Note: this is now obsolete. The functionality of this construct
6575 -- is now implemented by the Ada 2005 limited_with_clause.
6576
6577 ---------------------
6578 -- 10.2 Body stub --
6579 ---------------------
6580
6581 -- BODY_STUB ::=
6582 -- SUBPROGRAM_BODY_STUB
6583 -- | PACKAGE_BODY_STUB
6584 -- | TASK_BODY_STUB
6585 -- | PROTECTED_BODY_STUB
6586
6587 ----------------------------------
6588 -- 10.1.3 Subprogram Body Stub --
6589 ----------------------------------
6590
6591 -- SUBPROGRAM_BODY_STUB ::=
6592 -- SUBPROGRAM_SPECIFICATION is separate
6593 -- [ASPECT_SPECIFICATION];
6594
6595 -- N_Subprogram_Body_Stub
6596 -- Sloc points to FUNCTION or PROCEDURE
6597 -- Specification (Node1)
6598 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6599 -- Library_Unit (Node4-Sem) points to the subunit
6600 -- Corresponding_Body (Node5-Sem)
6601
6602 -------------------------------
6603 -- 10.1.3 Package Body Stub --
6604 -------------------------------
6605
6606 -- PACKAGE_BODY_STUB ::=
6607 -- package body DEFINING_IDENTIFIER is separate
6608 -- [ASPECT_SPECIFICATION];
6609
6610 -- N_Package_Body_Stub
6611 -- Sloc points to PACKAGE
6612 -- Defining_Identifier (Node1)
6613 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6614 -- Library_Unit (Node4-Sem) points to the subunit
6615 -- Corresponding_Body (Node5-Sem)
6616
6617 ----------------------------
6618 -- 10.1.3 Task Body Stub --
6619 ----------------------------
6620
6621 -- TASK_BODY_STUB ::=
6622 -- task body DEFINING_IDENTIFIER is separate
6623 -- [ASPECT_SPECIFICATION];
6624
6625 -- N_Task_Body_Stub
6626 -- Sloc points to TASK
6627 -- Defining_Identifier (Node1)
6628 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6629 -- Library_Unit (Node4-Sem) points to the subunit
6630 -- Corresponding_Body (Node5-Sem)
6631
6632 ---------------------------------
6633 -- 10.1.3 Protected Body Stub --
6634 ---------------------------------
6635
6636 -- PROTECTED_BODY_STUB ::=
6637 -- protected body DEFINING_IDENTIFIER is separate
6638 -- [ASPECT_SPECIFICATION];
6639
6640 -- Note: protected body stubs are not allowed in Ada 83 mode
6641
6642 -- N_Protected_Body_Stub
6643 -- Sloc points to PROTECTED
6644 -- Defining_Identifier (Node1)
6645 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6646 -- Library_Unit (Node4-Sem) points to the subunit
6647 -- Corresponding_Body (Node5-Sem)
6648
6649 ---------------------
6650 -- 10.1.3 Subunit --
6651 ---------------------
6652
6653 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6654
6655 -- N_Subunit
6656 -- Sloc points to SEPARATE
6657 -- Name (Node2) is the name of the parent unit
6658 -- Proper_Body (Node1) is the subunit body
6659 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6660
6661 ---------------------------------
6662 -- 11.1 Exception Declaration --
6663 ---------------------------------
6664
6665 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6666 -- [ASPECT_SPECIFICATIONS];
6667
6668 -- For consistency with object declarations etc., the parser converts
6669 -- the case of multiple identifiers being declared to a series of
6670 -- declarations in which the expression is copied, using the More_Ids
6671 -- and Prev_Ids flags to remember the source form as described in the
6672 -- section on "Handling of Defining Identifier Lists".
6673
6674 -- N_Exception_Declaration
6675 -- Sloc points to EXCEPTION
6676 -- Defining_Identifier (Node1)
6677 -- Expression (Node3-Sem)
6678 -- Renaming_Exception (Node2-Sem)
6679 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6680 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6681
6682 ------------------------------------------
6683 -- 11.2 Handled Sequence Of Statements --
6684 ------------------------------------------
6685
6686 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6687 -- SEQUENCE_OF_STATEMENTS
6688 -- [exception
6689 -- EXCEPTION_HANDLER
6690 -- {EXCEPTION_HANDLER}]
6691 -- [at end
6692 -- cleanup_procedure_call (param, param, param, ...);]
6693
6694 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6695 -- used only internally currently, but is considered to be syntactic.
6696 -- At the moment, the only cleanup action allowed is a single call to
6697 -- a parameterless procedure, and the Identifier field of the node is
6698 -- the procedure to be called. The cleanup action occurs whenever the
6699 -- sequence of statements is left for any reason. The possible reasons
6700 -- are:
6701 -- 1. reaching the end of the sequence
6702 -- 2. exit, return, or goto
6703 -- 3. exception or abort
6704 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6705 -- entirely in the back end. In this case, a handled sequence of
6706 -- statements with an "at end" cannot also have exception handlers.
6707 -- For other back ends, such as gcc with front-end SJLJ, the
6708 -- implementation is split between the front end and back end; the front
6709 -- end implements 3, and the back end implements 1 and 2. In this case,
6710 -- if there is an "at end", the front end inserts the appropriate
6711 -- exception handler, and this handler takes precedence over "at end"
6712 -- in case of exception.
6713
6714 -- The inserted exception handler is of the form:
6715
6716 -- when all others =>
6717 -- cleanup;
6718 -- raise;
6719
6720 -- where cleanup is the procedure to be called. The reason we do this is
6721 -- so that the front end can handle the necessary entries in the
6722 -- exception tables, and other exception handler actions required as
6723 -- part of the normal handling for exception handlers.
6724
6725 -- The AT END cleanup handler protects only the sequence of statements
6726 -- (not the associated declarations of the parent), just like exception
6727 -- handlers. The big difference is that the cleanup procedure is called
6728 -- on either a normal or an abnormal exit from the statement sequence.
6729
6730 -- Note: the list of Exception_Handlers can contain pragmas as well
6731 -- as actual handlers. In practice these pragmas can only occur at
6732 -- the start of the list, since any pragmas occurring later on will
6733 -- be included in the statement list of the corresponding handler.
6734
6735 -- Note: although in the Ada syntax, the sequence of statements in
6736 -- a handled sequence of statements can only contain statements, we
6737 -- allow free mixing of declarations and statements in the resulting
6738 -- expanded tree. This is for example used to deal with the case of
6739 -- a cleanup procedure that must handle declarations as well as the
6740 -- statements of a block.
6741
6742 -- Note: the cleanup_procedure_call does not go through the common
6743 -- processing for calls, which in particular means that it will not be
6744 -- automatically inlined in all cases, even though the procedure to be
6745 -- called is marked inline. More specifically, if the procedure comes
6746 -- from another unit than the main source unit, for example a run-time
6747 -- unit, then it needs to be manually added to the list of bodies to be
6748 -- inlined by invoking Add_Inlined_Body on it.
6749
6750 -- N_Handled_Sequence_Of_Statements
6751 -- Sloc points to first token of first statement
6752 -- Statements (List3)
6753 -- End_Label (Node4) (set to Empty if expander generated)
6754 -- Exception_Handlers (List5) (set to No_List if none present)
6755 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6756 -- First_Real_Statement (Node2-Sem)
6757
6758 -- Note: the parent always contains a Declarations field which contains
6759 -- declarations associated with the handled sequence of statements. This
6760 -- is true even in the case of an accept statement (see description of
6761 -- the N_Accept_Statement node).
6762
6763 -- End_Label refers to the containing construct
6764
6765 -----------------------------
6766 -- 11.2 Exception Handler --
6767 -----------------------------
6768
6769 -- EXCEPTION_HANDLER ::=
6770 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6771 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6772 -- SEQUENCE_OF_STATEMENTS
6773
6774 -- Note: choice parameter specification is not allowed in Ada 83 mode
6775
6776 -- N_Exception_Handler
6777 -- Sloc points to WHEN
6778 -- Choice_Parameter (Node2) (set to Empty if not present)
6779 -- Exception_Choices (List4)
6780 -- Statements (List3)
6781 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6782 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6783 -- Local_Raise_Not_OK (Flag7-Sem)
6784 -- Has_Local_Raise (Flag8-Sem)
6785
6786 ------------------------------------------
6787 -- 11.2 Choice parameter specification --
6788 ------------------------------------------
6789
6790 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6791
6792 ----------------------------
6793 -- 11.2 Exception Choice --
6794 ----------------------------
6795
6796 -- EXCEPTION_CHOICE ::= exception_NAME | others
6797
6798 -- Except in the case of OTHERS, no explicit node appears in the tree
6799 -- for exception choice. Instead the exception name appears directly.
6800 -- An OTHERS choice is represented by a N_Others_Choice node (see
6801 -- section 3.8.1.
6802
6803 -- Note: for the exception choice created for an at end handler, the
6804 -- exception choice is an N_Others_Choice node with All_Others set.
6805
6806 ---------------------------
6807 -- 11.3 Raise Statement --
6808 ---------------------------
6809
6810 -- RAISE_STATEMENT ::= raise [exception_NAME];
6811
6812 -- In Ada 2005, we have
6813
6814 -- RAISE_STATEMENT ::=
6815 -- raise; | raise exception_NAME [with string_EXPRESSION];
6816
6817 -- N_Raise_Statement
6818 -- Sloc points to RAISE
6819 -- Name (Node2) (set to Empty if no exception name present)
6820 -- Expression (Node3) (set to Empty if no expression present)
6821 -- From_At_End (Flag4-Sem)
6822
6823 ----------------------------
6824 -- 11.3 Raise Expression --
6825 ----------------------------
6826
6827 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6828
6829 -- N_Raise_Expression
6830 -- Sloc points to RAISE
6831 -- Name (Node2) (always present)
6832 -- Expression (Node3) (set to Empty if no expression present)
6833 -- Convert_To_Return_False (Flag13-Sem)
6834 -- plus fields for expression
6835
6836 -------------------------------
6837 -- 12.1 Generic Declaration --
6838 -------------------------------
6839
6840 -- GENERIC_DECLARATION ::=
6841 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6842
6843 ------------------------------------------
6844 -- 12.1 Generic Subprogram Declaration --
6845 ------------------------------------------
6846
6847 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6848 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6849 -- [ASPECT_SPECIFICATIONS];
6850
6851 -- Note: Generic_Formal_Declarations can include pragmas
6852
6853 -- N_Generic_Subprogram_Declaration
6854 -- Sloc points to GENERIC
6855 -- Specification (Node1) subprogram specification
6856 -- Corresponding_Body (Node5-Sem)
6857 -- Generic_Formal_Declarations (List2) from generic formal part
6858 -- Parent_Spec (Node4-Sem)
6859
6860 ---------------------------------------
6861 -- 12.1 Generic Package Declaration --
6862 ---------------------------------------
6863
6864 -- GENERIC_PACKAGE_DECLARATION ::=
6865 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6866 -- [ASPECT_SPECIFICATIONS];
6867
6868 -- Note: when we do generics right, the Activation_Chain_Entity entry
6869 -- for this node can be removed (since the expander won't see generic
6870 -- units any more)???.
6871
6872 -- Note: Generic_Formal_Declarations can include pragmas
6873
6874 -- N_Generic_Package_Declaration
6875 -- Sloc points to GENERIC
6876 -- Specification (Node1) package specification
6877 -- Corresponding_Body (Node5-Sem)
6878 -- Generic_Formal_Declarations (List2) from generic formal part
6879 -- Parent_Spec (Node4-Sem)
6880 -- Activation_Chain_Entity (Node3-Sem)
6881
6882 -------------------------------
6883 -- 12.1 Generic Formal Part --
6884 -------------------------------
6885
6886 -- GENERIC_FORMAL_PART ::=
6887 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6888
6889 ------------------------------------------------
6890 -- 12.1 Generic Formal Parameter Declaration --
6891 ------------------------------------------------
6892
6893 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6894 -- FORMAL_OBJECT_DECLARATION
6895 -- | FORMAL_TYPE_DECLARATION
6896 -- | FORMAL_SUBPROGRAM_DECLARATION
6897 -- | FORMAL_PACKAGE_DECLARATION
6898
6899 ---------------------------------
6900 -- 12.3 Generic Instantiation --
6901 ---------------------------------
6902
6903 -- GENERIC_INSTANTIATION ::=
6904 -- package DEFINING_PROGRAM_UNIT_NAME is
6905 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6906 -- [ASPECT_SPECIFICATIONS];
6907 -- | [[not] overriding]
6908 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6909 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6910 -- [ASPECT_SPECIFICATIONS];
6911 -- | [[not] overriding]
6912 -- function DEFINING_DESIGNATOR is
6913 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6914 -- [ASPECT_SPECIFICATIONS];
6915
6916 -- N_Package_Instantiation
6917 -- Sloc points to PACKAGE
6918 -- Defining_Unit_Name (Node1)
6919 -- Name (Node2)
6920 -- Generic_Associations (List3) (set to No_List if no
6921 -- generic actual part)
6922 -- Parent_Spec (Node4-Sem)
6923 -- Instance_Spec (Node5-Sem)
6924 -- ABE_Is_Certain (Flag18-Sem)
6925
6926 -- N_Procedure_Instantiation
6927 -- Sloc points to PROCEDURE
6928 -- Defining_Unit_Name (Node1)
6929 -- Name (Node2)
6930 -- Parent_Spec (Node4-Sem)
6931 -- Generic_Associations (List3) (set to No_List if no
6932 -- generic actual part)
6933 -- Instance_Spec (Node5-Sem)
6934 -- Must_Override (Flag14) set if overriding indicator present
6935 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6936 -- ABE_Is_Certain (Flag18-Sem)
6937
6938 -- N_Function_Instantiation
6939 -- Sloc points to FUNCTION
6940 -- Defining_Unit_Name (Node1)
6941 -- Name (Node2)
6942 -- Generic_Associations (List3) (set to No_List if no
6943 -- generic actual part)
6944 -- Parent_Spec (Node4-Sem)
6945 -- Instance_Spec (Node5-Sem)
6946 -- Must_Override (Flag14) set if overriding indicator present
6947 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6948 -- ABE_Is_Certain (Flag18-Sem)
6949
6950 -- Note: overriding indicator is an Ada 2005 feature
6951
6952 -------------------------------
6953 -- 12.3 Generic Actual Part --
6954 -------------------------------
6955
6956 -- GENERIC_ACTUAL_PART ::=
6957 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6958
6959 -------------------------------
6960 -- 12.3 Generic Association --
6961 -------------------------------
6962
6963 -- GENERIC_ASSOCIATION ::=
6964 -- [generic_formal_parameter_SELECTOR_NAME =>]
6965
6966 -- Note: unlike the procedure call case, a generic association node
6967 -- is generated for every association, even if no formal parameter
6968 -- selector name is present. In this case the parser will leave the
6969 -- Selector_Name field set to Empty, to be filled in later by the
6970 -- semantic pass.
6971
6972 -- In Ada 2005, a formal may be associated with a box, if the
6973 -- association is part of the list of actuals for a formal package.
6974 -- If the association is given by OTHERS => <>, the association is
6975 -- an N_Others_Choice.
6976
6977 -- N_Generic_Association
6978 -- Sloc points to first token of generic association
6979 -- Selector_Name (Node2) (set to Empty if no formal
6980 -- parameter selector name)
6981 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6982 -- Box_Present (Flag15) (for formal_package associations with a box)
6983
6984 ---------------------------------------------
6985 -- 12.3 Explicit Generic Actual Parameter --
6986 ---------------------------------------------
6987
6988 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6989 -- EXPRESSION | variable_NAME | subprogram_NAME
6990 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
6991
6992 -------------------------------------
6993 -- 12.4 Formal Object Declaration --
6994 -------------------------------------
6995
6996 -- FORMAL_OBJECT_DECLARATION ::=
6997 -- DEFINING_IDENTIFIER_LIST :
6998 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6999 -- [ASPECT_SPECIFICATIONS];
7000 -- | DEFINING_IDENTIFIER_LIST :
7001 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
7002 -- [ASPECT_SPECIFICATIONS];
7003
7004 -- Although the syntax allows multiple identifiers in the list, the
7005 -- semantics is as though successive declarations were given with
7006 -- identical type definition and expression components. To simplify
7007 -- semantic processing, the parser represents a multiple declaration
7008 -- case as a sequence of single declarations, using the More_Ids and
7009 -- Prev_Ids flags to preserve the original source form as described
7010 -- in the section on "Handling of Defining Identifier Lists".
7011
7012 -- N_Formal_Object_Declaration
7013 -- Sloc points to first identifier
7014 -- Defining_Identifier (Node1)
7015 -- In_Present (Flag15)
7016 -- Out_Present (Flag17)
7017 -- Null_Exclusion_Present (Flag11) (set to False if not present)
7018 -- Subtype_Mark (Node4) (set to Empty if not present)
7019 -- Access_Definition (Node3) (set to Empty if not present)
7020 -- Default_Expression (Node5) (set to Empty if no default expression)
7021 -- More_Ids (Flag5) (set to False if no more identifiers in list)
7022 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
7023
7024 -----------------------------------
7025 -- 12.5 Formal Type Declaration --
7026 -----------------------------------
7027
7028 -- FORMAL_TYPE_DECLARATION ::=
7029 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
7030 -- is FORMAL_TYPE_DEFINITION
7031 -- [ASPECT_SPECIFICATIONS];
7032 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
7033
7034 -- N_Formal_Type_Declaration
7035 -- Sloc points to TYPE
7036 -- Defining_Identifier (Node1)
7037 -- Formal_Type_Definition (Node3)
7038 -- Discriminant_Specifications (List4) (set to No_List if no
7039 -- discriminant part)
7040 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
7041
7042 ----------------------------------
7043 -- 12.5 Formal type definition --
7044 ----------------------------------
7045
7046 -- FORMAL_TYPE_DEFINITION ::=
7047 -- FORMAL_PRIVATE_TYPE_DEFINITION
7048 -- | FORMAL_DERIVED_TYPE_DEFINITION
7049 -- | FORMAL_DISCRETE_TYPE_DEFINITION
7050 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
7051 -- | FORMAL_MODULAR_TYPE_DEFINITION
7052 -- | FORMAL_FLOATING_POINT_DEFINITION
7053 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
7054 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
7055 -- | FORMAL_ARRAY_TYPE_DEFINITION
7056 -- | FORMAL_ACCESS_TYPE_DEFINITION
7057 -- | FORMAL_INTERFACE_TYPE_DEFINITION
7058 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
7059
7060 -- The Ada 2012 syntax introduces two new non-terminals:
7061 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
7062 -- the latter category. Here we introduce an incomplete type definition
7063 -- in order to preserve as much as possible the existing structure.
7064
7065 ---------------------------------------------
7066 -- 12.5.1 Formal Private Type Definition --
7067 ---------------------------------------------
7068
7069 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
7070 -- [[abstract] tagged] [limited] private
7071
7072 -- Note: TAGGED is not allowed in Ada 83 mode
7073
7074 -- N_Formal_Private_Type_Definition
7075 -- Sloc points to PRIVATE
7076 -- Uninitialized_Variable (Node3-Sem)
7077 -- Abstract_Present (Flag4)
7078 -- Tagged_Present (Flag15)
7079 -- Limited_Present (Flag17)
7080
7081 --------------------------------------------
7082 -- 12.5.1 Formal Derived Type Definition --
7083 --------------------------------------------
7084
7085 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
7086 -- [abstract] [limited | synchronized]
7087 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
7088 -- Note: this construct is not allowed in Ada 83 mode
7089
7090 -- N_Formal_Derived_Type_Definition
7091 -- Sloc points to NEW
7092 -- Subtype_Mark (Node4)
7093 -- Private_Present (Flag15)
7094 -- Abstract_Present (Flag4)
7095 -- Limited_Present (Flag17)
7096 -- Synchronized_Present (Flag7)
7097 -- Interface_List (List2) (set to No_List if none)
7098
7099 -----------------------------------------------
7100 -- 12.5.1 Formal Incomplete Type Definition --
7101 -----------------------------------------------
7102
7103 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
7104
7105 -- N_Formal_Incomplete_Type_Definition
7106 -- Sloc points to identifier of parent
7107 -- Tagged_Present (Flag15)
7108
7109 ---------------------------------------------
7110 -- 12.5.2 Formal Discrete Type Definition --
7111 ---------------------------------------------
7112
7113 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
7114
7115 -- N_Formal_Discrete_Type_Definition
7116 -- Sloc points to (
7117
7118 ---------------------------------------------------
7119 -- 12.5.2 Formal Signed Integer Type Definition --
7120 ---------------------------------------------------
7121
7122 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
7123
7124 -- N_Formal_Signed_Integer_Type_Definition
7125 -- Sloc points to RANGE
7126
7127 --------------------------------------------
7128 -- 12.5.2 Formal Modular Type Definition --
7129 --------------------------------------------
7130
7131 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
7132
7133 -- N_Formal_Modular_Type_Definition
7134 -- Sloc points to MOD
7135
7136 ----------------------------------------------
7137 -- 12.5.2 Formal Floating Point Definition --
7138 ----------------------------------------------
7139
7140 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
7141
7142 -- N_Formal_Floating_Point_Definition
7143 -- Sloc points to DIGITS
7144
7145 ----------------------------------------------------
7146 -- 12.5.2 Formal Ordinary Fixed Point Definition --
7147 ----------------------------------------------------
7148
7149 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
7150
7151 -- N_Formal_Ordinary_Fixed_Point_Definition
7152 -- Sloc points to DELTA
7153
7154 ---------------------------------------------------
7155 -- 12.5.2 Formal Decimal Fixed Point Definition --
7156 ---------------------------------------------------
7157
7158 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
7159
7160 -- Note: formal decimal fixed point definition not allowed in Ada 83
7161
7162 -- N_Formal_Decimal_Fixed_Point_Definition
7163 -- Sloc points to DELTA
7164
7165 ------------------------------------------
7166 -- 12.5.3 Formal Array Type Definition --
7167 ------------------------------------------
7168
7169 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
7170
7171 -------------------------------------------
7172 -- 12.5.4 Formal Access Type Definition --
7173 -------------------------------------------
7174
7175 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
7176
7177 ----------------------------------------------
7178 -- 12.5.5 Formal Interface Type Definition --
7179 ----------------------------------------------
7180
7181 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
7182
7183 -----------------------------------------
7184 -- 12.6 Formal Subprogram Declaration --
7185 -----------------------------------------
7186
7187 -- FORMAL_SUBPROGRAM_DECLARATION ::=
7188 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
7189 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
7190
7191 --------------------------------------------------
7192 -- 12.6 Formal Concrete Subprogram Declaration --
7193 --------------------------------------------------
7194
7195 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
7196 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
7197 -- [ASPECT_SPECIFICATIONS];
7198
7199 -- N_Formal_Concrete_Subprogram_Declaration
7200 -- Sloc points to WITH
7201 -- Specification (Node1)
7202 -- Default_Name (Node2) (set to Empty if no subprogram default)
7203 -- Box_Present (Flag15)
7204
7205 -- Note: if no subprogram default is present, then Name is set
7206 -- to Empty, and Box_Present is False.
7207
7208 --------------------------------------------------
7209 -- 12.6 Formal Abstract Subprogram Declaration --
7210 --------------------------------------------------
7211
7212 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
7213 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
7214 -- [ASPECT_SPECIFICATIONS];
7215
7216 -- N_Formal_Abstract_Subprogram_Declaration
7217 -- Sloc points to WITH
7218 -- Specification (Node1)
7219 -- Default_Name (Node2) (set to Empty if no subprogram default)
7220 -- Box_Present (Flag15)
7221
7222 -- Note: if no subprogram default is present, then Name is set
7223 -- to Empty, and Box_Present is False.
7224
7225 ------------------------------
7226 -- 12.6 Subprogram Default --
7227 ------------------------------
7228
7229 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
7230
7231 -- There is no separate node in the tree for a subprogram default.
7232 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
7233 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
7234 -- default name or box indication, as needed.
7235
7236 ------------------------
7237 -- 12.6 Default Name --
7238 ------------------------
7239
7240 -- DEFAULT_NAME ::= NAME
7241
7242 --------------------------------------
7243 -- 12.7 Formal Package Declaration --
7244 --------------------------------------
7245
7246 -- FORMAL_PACKAGE_DECLARATION ::=
7247 -- with package DEFINING_IDENTIFIER
7248 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
7249 -- [ASPECT_SPECIFICATIONS];
7250
7251 -- Note: formal package declarations not allowed in Ada 83 mode
7252
7253 -- N_Formal_Package_Declaration
7254 -- Sloc points to WITH
7255 -- Defining_Identifier (Node1)
7256 -- Name (Node2)
7257 -- Generic_Associations (List3) (set to No_List if (<>) case or
7258 -- empty generic actual part)
7259 -- Box_Present (Flag15)
7260 -- Instance_Spec (Node5-Sem)
7261 -- ABE_Is_Certain (Flag18-Sem)
7262
7263 --------------------------------------
7264 -- 12.7 Formal Package Actual Part --
7265 --------------------------------------
7266
7267 -- FORMAL_PACKAGE_ACTUAL_PART ::=
7268 -- ([OTHERS] => <>)
7269 -- | [GENERIC_ACTUAL_PART]
7270 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
7271
7272 -- FORMAL_PACKAGE_ASSOCIATION ::=
7273 -- GENERIC_ASSOCIATION
7274 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
7275
7276 -- There is no explicit node in the tree for a formal package actual
7277 -- part. Instead the information appears in the parent node (i.e. the
7278 -- formal package declaration node itself).
7279
7280 -- There is no explicit node for a formal package association. All of
7281 -- them are represented either by a generic association, possibly with
7282 -- Box_Present, or by an N_Others_Choice.
7283
7284 ---------------------------------
7285 -- 13.1 Representation clause --
7286 ---------------------------------
7287
7288 -- REPRESENTATION_CLAUSE ::=
7289 -- ATTRIBUTE_DEFINITION_CLAUSE
7290 -- | ENUMERATION_REPRESENTATION_CLAUSE
7291 -- | RECORD_REPRESENTATION_CLAUSE
7292 -- | AT_CLAUSE
7293
7294 ----------------------
7295 -- 13.1 Local Name --
7296 ----------------------
7297
7298 -- LOCAL_NAME :=
7299 -- DIRECT_NAME
7300 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
7301 -- | library_unit_NAME
7302
7303 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
7304 -- as an attribute reference, which has essentially the same form.
7305
7306 ---------------------------------------
7307 -- 13.3 Attribute definition clause --
7308 ---------------------------------------
7309
7310 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
7311 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
7312 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
7313
7314 -- In Ada 83, the expression must be a simple expression and the
7315 -- local name must be a direct name.
7316
7317 -- Note: the only attribute definition clause that is processed by
7318 -- gigi is an address clause. For all other cases, the information
7319 -- is extracted by the front end and either results in setting entity
7320 -- information, e.g. Esize for the Size clause, or in appropriate
7321 -- expansion actions (e.g. in the case of Storage_Size).
7322
7323 -- For an address clause, Gigi constructs the appropriate addressing
7324 -- code. It also ensures that no aliasing optimizations are made
7325 -- for the object for which the address clause appears.
7326
7327 -- Note: for an address clause used to achieve an overlay:
7328
7329 -- A : Integer;
7330 -- B : Integer;
7331 -- for B'Address use A'Address;
7332
7333 -- the above rule means that Gigi will ensure that no optimizations
7334 -- will be made for B that would violate the implementation advice
7335 -- of RM 13.3(19). However, this advice applies only to B and not
7336 -- to A, which seems unfortunate. The GNAT front end will mark the
7337 -- object A as volatile to also prevent unwanted optimization
7338 -- assumptions based on no aliasing being made for B.
7339
7340 -- N_Attribute_Definition_Clause
7341 -- Sloc points to FOR
7342 -- Name (Node2) the local name
7343 -- Chars (Name1) the identifier name from the attribute designator
7344 -- Expression (Node3) the expression or name
7345 -- Entity (Node4-Sem)
7346 -- Next_Rep_Item (Node5-Sem)
7347 -- From_At_Mod (Flag4-Sem)
7348 -- Check_Address_Alignment (Flag11-Sem)
7349 -- From_Aspect_Specification (Flag13-Sem)
7350 -- Is_Delayed_Aspect (Flag14-Sem)
7351 -- Address_Warning_Posted (Flag18-Sem)
7352
7353 -- Note: if From_Aspect_Specification is set, then Sloc points to the
7354 -- aspect name, and Entity is resolved already to reference the entity
7355 -- to which the aspect applies.
7356
7357 -----------------------------------
7358 -- 13.3.1 Aspect Specifications --
7359 -----------------------------------
7360
7361 -- We modify the RM grammar here, the RM grammar is:
7362
7363 -- ASPECT_SPECIFICATION ::=
7364 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7365 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
7366
7367 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7368
7369 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7370
7371 -- That's inconvenient, since there is no non-terminal name for a single
7372 -- entry in the list of aspects. So we use this grammar instead:
7373
7374 -- ASPECT_SPECIFICATIONS ::=
7375 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7376
7377 -- ASPECT_SPECIFICATION =>
7378 -- ASPECT_MARK [=> ASPECT_DEFINITION]
7379
7380 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7381
7382 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7383
7384 -- Note that for Annotate, the ASPECT_DEFINITION is a pure positional
7385 -- aggregate with the elements of the aggregate corresponding to the
7386 -- successive arguments of the corresponding pragma.
7387
7388 -- See separate package Aspects for details on the incorporation of
7389 -- these nodes into the tree, and how aspect specifications for a given
7390 -- declaration node are associated with that node.
7391
7392 -- N_Aspect_Specification
7393 -- Sloc points to aspect identifier
7394 -- Identifier (Node1) aspect identifier
7395 -- Aspect_Rep_Item (Node2-Sem)
7396 -- Expression (Node3) Aspect_Definition (set to Empty if none)
7397 -- Entity (Node4-Sem) entity to which the aspect applies
7398 -- Next_Rep_Item (Node5-Sem)
7399 -- Class_Present (Flag6) Set if 'Class present
7400 -- Is_Ignored (Flag9-Sem)
7401 -- Is_Checked (Flag11-Sem)
7402 -- Is_Delayed_Aspect (Flag14-Sem)
7403 -- Is_Disabled (Flag15-Sem)
7404 -- Is_Boolean_Aspect (Flag16-Sem)
7405 -- Split_PPC (Flag17) Set if split pre/post attribute
7406
7407 -- Note: Aspect_Specification is an Ada 2012 feature
7408
7409 -- Note: The Identifier serves to identify the aspect involved (it
7410 -- is the aspect whose name corresponds to the Chars field). This
7411 -- means that the other fields of this identifier are unused, and
7412 -- in particular we use the Entity field of this identifier to save
7413 -- a copy of the expression for visibility analysis, see spec of
7414 -- Sem_Ch13 for full details of this usage.
7415
7416 -- In the case of aspects of the form xxx'Class, the aspect identifier
7417 -- is for xxx, and Class_Present is set to True.
7418
7419 -- Note: When a Pre or Post aspect specification is processed, it is
7420 -- broken into AND THEN sections. The left most section has Split_PPC
7421 -- set to False, indicating that it is the original specification (e.g.
7422 -- for posting errors). For the other sections, Split_PPC is set True.
7423
7424 ---------------------------------------------
7425 -- 13.4 Enumeration representation clause --
7426 ---------------------------------------------
7427
7428 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7429 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7430
7431 -- In Ada 83, the name must be a direct name
7432
7433 -- N_Enumeration_Representation_Clause
7434 -- Sloc points to FOR
7435 -- Identifier (Node1) direct name
7436 -- Array_Aggregate (Node3)
7437 -- Next_Rep_Item (Node5-Sem)
7438
7439 ---------------------------------
7440 -- 13.4 Enumeration aggregate --
7441 ---------------------------------
7442
7443 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7444
7445 ------------------------------------------
7446 -- 13.5.1 Record representation clause --
7447 ------------------------------------------
7448
7449 -- RECORD_REPRESENTATION_CLAUSE ::=
7450 -- for first_subtype_LOCAL_NAME use
7451 -- record [MOD_CLAUSE]
7452 -- {COMPONENT_CLAUSE}
7453 -- end record;
7454
7455 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7456 -- replaced by a corresponding Alignment attribute definition clause).
7457
7458 -- Note: Component_Clauses can include pragmas
7459
7460 -- N_Record_Representation_Clause
7461 -- Sloc points to FOR
7462 -- Identifier (Node1) direct name
7463 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7464 -- Component_Clauses (List3)
7465 -- Next_Rep_Item (Node5-Sem)
7466
7467 ------------------------------
7468 -- 13.5.1 Component clause --
7469 ------------------------------
7470
7471 -- COMPONENT_CLAUSE ::=
7472 -- component_LOCAL_NAME at POSITION
7473 -- range FIRST_BIT .. LAST_BIT;
7474
7475 -- N_Component_Clause
7476 -- Sloc points to AT
7477 -- Component_Name (Node1) points to Name or Attribute_Reference
7478 -- Position (Node2)
7479 -- First_Bit (Node3)
7480 -- Last_Bit (Node4)
7481
7482 ----------------------
7483 -- 13.5.1 Position --
7484 ----------------------
7485
7486 -- POSITION ::= static_EXPRESSION
7487
7488 -----------------------
7489 -- 13.5.1 First_Bit --
7490 -----------------------
7491
7492 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7493
7494 ----------------------
7495 -- 13.5.1 Last_Bit --
7496 ----------------------
7497
7498 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7499
7500 --------------------------
7501 -- 13.8 Code statement --
7502 --------------------------
7503
7504 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7505
7506 -- Note: in GNAT, the qualified expression has the form
7507
7508 -- Asm_Insn'(Asm (...));
7509
7510 -- See package System.Machine_Code in file s-maccod.ads for details on
7511 -- the allowed parameters to Asm. There are two ways this node can
7512 -- arise, as a code statement, in which case the expression is the
7513 -- qualified expression, or as a result of the expansion of an intrinsic
7514 -- call to the Asm or Asm_Input procedure.
7515
7516 -- N_Code_Statement
7517 -- Sloc points to first token of the expression
7518 -- Expression (Node3)
7519
7520 -- Note: package Exp_Code contains an abstract functional interface
7521 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7522
7523 ------------------------
7524 -- 13.12 Restriction --
7525 ------------------------
7526
7527 -- RESTRICTION ::=
7528 -- restriction_IDENTIFIER
7529 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7530
7531 -- There is no explicit node for restrictions. Instead the restriction
7532 -- appears in normal pragma syntax as a pragma argument association,
7533 -- which has the same syntactic form.
7534
7535 --------------------------
7536 -- B.2 Shift Operators --
7537 --------------------------
7538
7539 -- Calls to the intrinsic shift functions are converted to one of
7540 -- the following shift nodes, which have the form of normal binary
7541 -- operator names. Note that for a given shift operation, one node
7542 -- covers all possible types, as for normal operators.
7543
7544 -- Note: it is perfectly permissible for the expander to generate
7545 -- shift operation nodes directly, in which case they will be analyzed
7546 -- and parsed in the usual manner.
7547
7548 -- Sprint syntax: shift-function-name!(expr, count)
7549
7550 -- Note: the Left_Opnd field holds the first argument (the value to
7551 -- be shifted). The Right_Opnd field holds the second argument (the
7552 -- shift count). The Chars field is the name of the intrinsic function.
7553
7554 -- N_Op_Rotate_Left
7555 -- Sloc points to the function name
7556 -- plus fields for binary operator
7557 -- plus fields for expression
7558 -- Shift_Count_OK (Flag4-Sem)
7559
7560 -- N_Op_Rotate_Right
7561 -- Sloc points to the function name
7562 -- plus fields for binary operator
7563 -- plus fields for expression
7564 -- Shift_Count_OK (Flag4-Sem)
7565
7566 -- N_Op_Shift_Left
7567 -- Sloc points to the function name
7568 -- plus fields for binary operator
7569 -- plus fields for expression
7570 -- Shift_Count_OK (Flag4-Sem)
7571
7572 -- N_Op_Shift_Right_Arithmetic
7573 -- Sloc points to the function name
7574 -- plus fields for binary operator
7575 -- plus fields for expression
7576 -- Shift_Count_OK (Flag4-Sem)
7577
7578 -- N_Op_Shift_Right
7579 -- Sloc points to the function name
7580 -- plus fields for binary operator
7581 -- plus fields for expression
7582 -- Shift_Count_OK (Flag4-Sem)
7583
7584 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7585 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7586
7587 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7588 -- always less than the word size if Modify_Tree_For_C mode is set.
7589
7590 --------------------------
7591 -- Obsolescent Features --
7592 --------------------------
7593
7594 -- The syntax descriptions and tree nodes for obsolescent features are
7595 -- grouped together, corresponding to their location in appendix I in
7596 -- the RM. However, parsing and semantic analysis for these constructs
7597 -- is located in an appropriate chapter (see individual notes).
7598
7599 ---------------------------
7600 -- J.3 Delta Constraint --
7601 ---------------------------
7602
7603 -- Note: the parse routine for this construct is located in section
7604 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7605 -- where delta constraint logically belongs.
7606
7607 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7608
7609 -- N_Delta_Constraint
7610 -- Sloc points to DELTA
7611 -- Delta_Expression (Node3)
7612 -- Range_Constraint (Node4) (set to Empty if not present)
7613
7614 --------------------
7615 -- J.7 At Clause --
7616 --------------------
7617
7618 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7619
7620 -- Note: the parse routine for this construct is located in Par-Ch13,
7621 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7622 -- belongs if it were not obsolescent.
7623
7624 -- Note: in Ada 83 the expression must be a simple expression
7625
7626 -- Gigi restriction: This node never appears, it is rewritten as an
7627 -- address attribute definition clause.
7628
7629 -- N_At_Clause
7630 -- Sloc points to FOR
7631 -- Identifier (Node1)
7632 -- Expression (Node3)
7633
7634 ---------------------
7635 -- J.8 Mod clause --
7636 ---------------------
7637
7638 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7639
7640 -- Note: the parse routine for this construct is located in Par-Ch13,
7641 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7642 -- belongs if it were not obsolescent.
7643
7644 -- Note: in Ada 83, the expression must be a simple expression
7645
7646 -- Gigi restriction: this node never appears. It is replaced
7647 -- by a corresponding Alignment attribute definition clause.
7648
7649 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7650 -- its name has "clause" in it. This is rather strange, but is quite
7651 -- definitely specified. The pragmas before are collected in the
7652 -- Pragmas_Before field of the mod clause node itself, and pragmas
7653 -- after are simply swallowed up in the list of component clauses.
7654
7655 -- N_Mod_Clause
7656 -- Sloc points to AT
7657 -- Expression (Node3)
7658 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7659
7660 --------------------
7661 -- Semantic Nodes --
7662 --------------------
7663
7664 -- These semantic nodes are used to hold additional semantic information.
7665 -- They are inserted into the tree as a result of semantic processing.
7666 -- Although there are no legitimate source syntax constructions that
7667 -- correspond directly to these nodes, we need a source syntax for the
7668 -- reconstructed tree printed by Sprint, and the node descriptions here
7669 -- show this syntax.
7670
7671 ------------------------
7672 -- Compound Statement --
7673 ------------------------
7674
7675 -- This node is created by the analyzer/expander to handle some
7676 -- expansion cases where a sequence of actions needs to be captured
7677 -- within a single node (which acts as a container and allows the
7678 -- entire list of actions to be moved around as a whole) appearing
7679 -- in a sequence of statements.
7680
7681 -- This is the statement counterpart to the expression node
7682 -- N_Expression_With_Actions.
7683
7684 -- The required semantics is that the set of actions is executed in
7685 -- the order in which it appears, as though they appeared by themselves
7686 -- in the enclosing list of declarations of statements. Unlike what
7687 -- happens when using an N_Block_Statement, no new scope is introduced.
7688
7689 -- Note: for the time being, this is used only as a transient
7690 -- representation during expansion, and all compound statement nodes
7691 -- must be exploded back to their constituent statements before handing
7692 -- the tree to the back end.
7693
7694 -- Sprint syntax: do
7695 -- action;
7696 -- action;
7697 -- ...
7698 -- action;
7699 -- end;
7700
7701 -- N_Compound_Statement
7702 -- Actions (List1)
7703
7704 --------------
7705 -- Contract --
7706 --------------
7707
7708 -- This node is used to hold the various parts of an entry, subprogram
7709 -- [body] or package [body] contract, in particular:
7710 -- Abstract states declared by a package declaration
7711 -- Contract cases that apply to a subprogram
7712 -- Dependency relations of inputs and output of a subprogram
7713 -- Global annotations classifying data as input or output
7714 -- Initialization sequences for a package declaration
7715 -- Pre- and postconditions that apply to a subprogram
7716
7717 -- The node appears in an entry and [generic] subprogram [body] entity.
7718
7719 -- Sprint syntax: <none> as the node should not appear in the tree, but
7720 -- only attached to an entry or [generic] subprogram
7721 -- entity.
7722
7723 -- N_Contract
7724 -- Sloc points to the subprogram's name
7725 -- Pre_Post_Conditions (Node1-Sem) (set to Empty if none)
7726 -- Contract_Test_Cases (Node2-Sem) (set to Empty if none)
7727 -- Classifications (Node3-Sem) (set to Empty if none)
7728 -- Is_Expanded_Contract (Flag1-Sem)
7729
7730 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7731 -- to pre- and postconditions associated with an entry or a subprogram
7732 -- [body or stub]. The pragmas can either come from source or be the
7733 -- byproduct of aspect expansion. Currently the following pragmas appear
7734 -- in this list:
7735 -- Post
7736 -- Postcondition
7737 -- Pre
7738 -- Precondition
7739 -- Refined_Post
7740 -- The ordering in the list is in LIFO fashion.
7741
7742 -- Note that there might be multiple preconditions or postconditions
7743 -- in this list, either because they come from separate pragmas in the
7744 -- source, or because a Pre (resp. Post) aspect specification has been
7745 -- broken into AND THEN sections. See Split_PPC for details.
7746
7747 -- In GNATprove mode, the inherited classwide pre- and postconditions
7748 -- (suitably specialized for the specific type of the overriding
7749 -- operation) are also in this list.
7750
7751 -- Contract_Test_Cases contains a collection of pragmas that correspond
7752 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7753 -- list is in LIFO fashion.
7754
7755 -- Classifications contains pragmas that either declare, categorize or
7756 -- establish dependencies between subprogram or package inputs and
7757 -- outputs. Currently the following pragmas appear in this list:
7758 -- Abstract_States
7759 -- Async_Readers
7760 -- Async_Writers
7761 -- Constant_After_Elaboration
7762 -- Depends
7763 -- Effective_Reads
7764 -- Effective_Writes
7765 -- Extensions_Visible
7766 -- Global
7767 -- Initial_Condition
7768 -- Initializes
7769 -- Part_Of
7770 -- Refined_Depends
7771 -- Refined_Global
7772 -- Refined_States
7773 -- Volatile_Function
7774 -- The ordering is in LIFO fashion.
7775
7776 -------------------
7777 -- Expanded Name --
7778 -------------------
7779
7780 -- The N_Expanded_Name node is used to represent a selected component
7781 -- name that has been resolved to an expanded name. The semantic phase
7782 -- replaces N_Selected_Component nodes that represent names by the use
7783 -- of this node, leaving the N_Selected_Component node used only when
7784 -- the prefix is a record or protected type.
7785
7786 -- The fields of the N_Expanded_Name node are layed out identically
7787 -- to those of the N_Selected_Component node, allowing conversion of
7788 -- an expanded name node to a selected component node to be done
7789 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7790
7791 -- There is no special sprint syntax for an expanded name
7792
7793 -- N_Expanded_Name
7794 -- Sloc points to the period
7795 -- Chars (Name1) copy of Chars field of selector name
7796 -- Prefix (Node3)
7797 -- Selector_Name (Node2)
7798 -- Entity (Node4-Sem)
7799 -- Associated_Node (Node4-Sem)
7800 -- Has_Private_View (Flag11-Sem) set in generic units.
7801 -- Redundant_Use (Flag13-Sem)
7802 -- Atomic_Sync_Required (Flag14-Sem)
7803 -- plus fields for expression
7804
7805 -----------------------------
7806 -- Expression With Actions --
7807 -----------------------------
7808
7809 -- This node is created by the analyzer/expander to handle some
7810 -- expansion cases, notably short-circuit forms where there are
7811 -- actions associated with the right-hand side operand.
7812
7813 -- The N_Expression_With_Actions node represents an expression with
7814 -- an associated set of actions (which are executable statements and
7815 -- declarations, as might occur in a handled statement sequence).
7816
7817 -- The required semantics is that the set of actions is executed in
7818 -- the order in which it appears just before the expression is
7819 -- evaluated (and these actions must only be executed if the value
7820 -- of the expression is evaluated). The node is considered to be
7821 -- a subexpression, whose value is the value of the Expression after
7822 -- executing all the actions.
7823
7824 -- If the actions contain declarations, then these declarations may
7825 -- be referenced within the expression. However note that there is
7826 -- no proper scope associated with the expression-with-action, so the
7827 -- back-end will elaborate them in the context of the enclosing scope.
7828
7829 -- Sprint syntax: do
7830 -- action;
7831 -- action;
7832 -- ...
7833 -- action;
7834 -- in expression end
7835
7836 -- N_Expression_With_Actions
7837 -- Actions (List1)
7838 -- Expression (Node3)
7839 -- plus fields for expression
7840
7841 -- Note: In the final generated tree presented to the code generator,
7842 -- the actions list is always non-null, since there is no point in this
7843 -- node if the actions are Empty. During semantic analysis there are
7844 -- cases where it is convenient to temporarily generate an empty actions
7845 -- list. This arises in cases where we create such an empty actions
7846 -- list, and it may or may not end up being a place where additional
7847 -- actions are inserted. The expander removes such empty cases after
7848 -- the expression of the node is fully analyzed and expanded, at which
7849 -- point it is safe to remove it, since no more actions can be inserted.
7850
7851 -- Note: In Modify_Tree_For_C, we never generate any declarations in
7852 -- the action list, which can contain only non-declarative statements.
7853
7854 --------------------
7855 -- Free Statement --
7856 --------------------
7857
7858 -- The N_Free_Statement node is generated as a result of a call to an
7859 -- instantiation of Unchecked_Deallocation. The instantiation of this
7860 -- generic is handled specially and generates this node directly.
7861
7862 -- Sprint syntax: free expression
7863
7864 -- N_Free_Statement
7865 -- Sloc is copied from the unchecked deallocation call
7866 -- Expression (Node3) argument to unchecked deallocation call
7867 -- Storage_Pool (Node1-Sem)
7868 -- Procedure_To_Call (Node2-Sem)
7869 -- Actual_Designated_Subtype (Node4-Sem)
7870
7871 -- Note: in the case where a debug source file is generated, the Sloc
7872 -- for this node points to the FREE keyword in the Sprint file output.
7873
7874 -------------------
7875 -- Freeze Entity --
7876 -------------------
7877
7878 -- This node marks the point in a declarative part at which an entity
7879 -- declared therein becomes frozen. The expander places initialization
7880 -- procedures for types at those points. Gigi uses the freezing point
7881 -- to elaborate entities that may depend on previous private types.
7882
7883 -- See the section in Einfo "Delayed Freezing and Elaboration" for
7884 -- a full description of the use of this node.
7885
7886 -- The Entity field points back to the entity for the type (whose
7887 -- Freeze_Node field points back to this freeze node).
7888
7889 -- The Actions field contains a list of declarations and statements
7890 -- generated by the expander which are associated with the freeze
7891 -- node, and are elaborated as though the freeze node were replaced
7892 -- by this sequence of actions.
7893
7894 -- Note: the Sloc field in the freeze node references a construct
7895 -- associated with the freezing point. This is used for posting
7896 -- messages in some error/warning situations, e.g. the case where
7897 -- a primitive operation of a tagged type is declared too late.
7898
7899 -- Sprint syntax: freeze entity-name [
7900 -- freeze actions
7901 -- ]
7902
7903 -- N_Freeze_Entity
7904 -- Sloc points near freeze point (see above special note)
7905 -- Entity (Node4-Sem)
7906 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7907 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7908 -- Actions (List1) (set to No_List if no freeze actions)
7909 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7910
7911 -- The Actions field holds actions associated with the freeze. These
7912 -- actions are elaborated at the point where the type is frozen.
7913
7914 -- Note: in the case where a debug source file is generated, the Sloc
7915 -- for this node points to the FREEZE keyword in the Sprint file output.
7916
7917 ---------------------------
7918 -- Freeze Generic Entity --
7919 ---------------------------
7920
7921 -- The freeze point of an entity indicates the point at which the
7922 -- information needed to generate code for the entity is complete.
7923 -- The freeze node for an entity triggers expander activities, such as
7924 -- build initialization procedures, and backend activities, such as
7925 -- completing the elaboration of packages.
7926
7927 -- For entities declared within a generic unit, for which no code is
7928 -- generated, the freeze point is not equally meaningful. However, in
7929 -- Ada 2012 several semantic checks on declarations must be delayed to
7930 -- the freeze point, and we need to include such a mark in the tree to
7931 -- trigger these checks. The Freeze_Generic_Entity node plays no other
7932 -- role, and is ignored by the expander and the back-end.
7933
7934 -- Sprint syntax: freeze_generic entity-name
7935
7936 -- N_Freeze_Generic_Entity
7937 -- Sloc points near freeze point
7938 -- Entity (Node4-Sem)
7939
7940 --------------------------------
7941 -- Implicit Label Declaration --
7942 --------------------------------
7943
7944 -- An implicit label declaration is created for every occurrence of a
7945 -- label on a statement or a label on a block or loop. It is chained
7946 -- in the declarations of the innermost enclosing block as specified
7947 -- in RM section 5.1 (3).
7948
7949 -- The Defining_Identifier is the actual identifier for the statement
7950 -- identifier. Note that the occurrence of the label is a reference, NOT
7951 -- the defining occurrence. The defining occurrence occurs at the head
7952 -- of the innermost enclosing block, and is represented by this node.
7953
7954 -- Note: from the grammar, this might better be called an implicit
7955 -- statement identifier declaration, but the term we choose seems
7956 -- friendlier, since at least informally statement identifiers are
7957 -- called labels in both cases (i.e. when used in labels, and when
7958 -- used as the identifiers of blocks and loops).
7959
7960 -- Note: although this is logically a semantic node, since it does not
7961 -- correspond directly to a source syntax construction, these nodes are
7962 -- actually created by the parser in a post pass done just after parsing
7963 -- is complete, before semantic analysis is started (see Par.Labl).
7964
7965 -- Sprint syntax: labelname : label;
7966
7967 -- N_Implicit_Label_Declaration
7968 -- Sloc points to the << token for a statement identifier, or to the
7969 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
7970 -- Defining_Identifier (Node1)
7971 -- Label_Construct (Node2-Sem)
7972
7973 -- Note: in the case where a debug source file is generated, the Sloc
7974 -- for this node points to the label name in the generated declaration.
7975
7976 ---------------------
7977 -- Itype Reference --
7978 ---------------------
7979
7980 -- This node is used to create a reference to an Itype. The only purpose
7981 -- is to make sure the Itype is defined if this is the first reference.
7982
7983 -- A typical use of this node is when an Itype is to be referenced in
7984 -- two branches of an IF statement. In this case it is important that
7985 -- the first use of the Itype not be inside the conditional, since then
7986 -- it might not be defined if the other branch of the IF is taken, in
7987 -- the case where the definition generates elaboration code.
7988
7989 -- The Itype field points to the referenced Itype
7990
7991 -- Sprint syntax: reference itype-name
7992
7993 -- N_Itype_Reference
7994 -- Sloc points to the node generating the reference
7995 -- Itype (Node1-Sem)
7996
7997 -- Note: in the case where a debug source file is generated, the Sloc
7998 -- for this node points to the REFERENCE keyword in the file output.
7999
8000 ---------------------
8001 -- Raise xxx Error --
8002 ---------------------
8003
8004 -- One of these nodes is created during semantic analysis to replace
8005 -- a node for an expression that is determined to definitely raise
8006 -- the corresponding exception.
8007
8008 -- The N_Raise_xxx_Error node may also stand alone in place
8009 -- of a declaration or statement, in which case it simply causes
8010 -- the exception to be raised (i.e. it is equivalent to a raise
8011 -- statement that raises the corresponding exception). This use
8012 -- is distinguished by the fact that the Etype in this case is
8013 -- Standard_Void_Type; in the subexpression case, the Etype is the
8014 -- same as the type of the subexpression which it replaces.
8015
8016 -- If Condition is empty, then the raise is unconditional. If the
8017 -- Condition field is non-empty, it is a boolean expression which is
8018 -- first evaluated, and the exception is raised only if the value of the
8019 -- expression is True. In the unconditional case, the creation of this
8020 -- node is usually accompanied by a warning message (unless it appears
8021 -- within the right operand of a short-circuit form whose left argument
8022 -- is static and decisively eliminates elaboration of the raise
8023 -- operation). The condition field can ONLY be present when the node is
8024 -- used as a statement form; it must NOT be present in the case where
8025 -- the node appears within an expression.
8026
8027 -- The exception is generated with a message that contains the
8028 -- file name and line number, and then appended text. The Reason
8029 -- code shows the text to be added. The Reason code is an element
8030 -- of the type Types.RT_Exception_Code, and indicates both the
8031 -- message to be added, and the exception to be raised (which must
8032 -- match the node type). The value is stored by storing a Uint which
8033 -- is the Pos value of the enumeration element in this type.
8034
8035 -- Gigi restriction: This expander ensures that the type of the
8036 -- Condition field is always Standard.Boolean, even if the type
8037 -- in the source is some non-standard boolean type.
8038
8039 -- Sprint syntax: [xxx_error "msg"]
8040 -- or: [xxx_error when condition "msg"]
8041
8042 -- N_Raise_Constraint_Error
8043 -- Sloc references related construct
8044 -- Condition (Node1) (set to Empty if no condition)
8045 -- Reason (Uint3)
8046 -- plus fields for expression
8047
8048 -- N_Raise_Program_Error
8049 -- Sloc references related construct
8050 -- Condition (Node1) (set to Empty if no condition)
8051 -- Reason (Uint3)
8052 -- plus fields for expression
8053
8054 -- N_Raise_Storage_Error
8055 -- Sloc references related construct
8056 -- Condition (Node1) (set to Empty if no condition)
8057 -- Reason (Uint3)
8058 -- plus fields for expression
8059
8060 -- Note: Sloc is copied from the expression generating the exception.
8061 -- In the case where a debug source file is generated, the Sloc for
8062 -- this node points to the left bracket in the Sprint file output.
8063
8064 -- Note: the back end may be required to translate these nodes into
8065 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
8066
8067 ---------------------------------------------
8068 -- Optimization of Exception Raise to Goto --
8069 ---------------------------------------------
8070
8071 -- In some cases, the front end will determine that any exception raised
8072 -- by the back end for a certain exception should be transformed into a
8073 -- goto statement.
8074
8075 -- There are three kinds of exceptions raised by the back end (note that
8076 -- for this purpose we consider gigi to be part of the back end in the
8077 -- gcc case):
8078
8079 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
8080 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
8081 -- 3. Other cases not specifically marked by the front end
8082
8083 -- Normally all such exceptions are translated into calls to the proper
8084 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
8085 -- and the exception message.
8086
8087 -- The front end may determine that for a particular sequence of code,
8088 -- exceptions in any of these three categories for a particular builtin
8089 -- exception should result in a goto, rather than a call to Rcheck_xx.
8090 -- The exact sequence to be generated is:
8091
8092 -- Local_Raise (exception'Identity);
8093 -- goto Label
8094
8095 -- The front end marks such a sequence of code by bracketing it with
8096 -- push and pop nodes:
8097
8098 -- N_Push_xxx_Label (referencing the label)
8099 -- ...
8100 -- (code where transformation is expected for exception xxx)
8101 -- ...
8102 -- N_Pop_xxx_Label
8103
8104 -- The use of push/pop reflects the fact that such regions can properly
8105 -- nest, and one special case is a subregion in which no transformation
8106 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
8107 -- Exception_Label field is Empty.
8108
8109 -- N_Push_Constraint_Error_Label
8110 -- Sloc references first statement in region covered
8111 -- Exception_Label (Node5-Sem)
8112
8113 -- N_Push_Program_Error_Label
8114 -- Sloc references first statement in region covered
8115 -- Exception_Label (Node5-Sem)
8116
8117 -- N_Push_Storage_Error_Label
8118 -- Sloc references first statement in region covered
8119 -- Exception_Label (Node5-Sem)
8120
8121 -- N_Pop_Constraint_Error_Label
8122 -- Sloc references last statement in region covered
8123
8124 -- N_Pop_Program_Error_Label
8125 -- Sloc references last statement in region covered
8126
8127 -- N_Pop_Storage_Error_Label
8128 -- Sloc references last statement in region covered
8129
8130 ---------------
8131 -- Reference --
8132 ---------------
8133
8134 -- For a number of purposes, we need to construct references to objects.
8135 -- These references are subsequently treated as normal access values.
8136 -- An example is the construction of the parameter block passed to a
8137 -- task entry. The N_Reference node is provided for this purpose. It is
8138 -- similar in effect to the use of the Unrestricted_Access attribute,
8139 -- and like Unrestricted_Access can be applied to objects which would
8140 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
8141 -- objects which are not aliased, and slices). In addition it can be
8142 -- applied to composite type values as well as objects, including string
8143 -- values and aggregates.
8144
8145 -- Note: we use the Prefix field for this expression so that the
8146 -- resulting node can be treated using common code with the attribute
8147 -- nodes for the 'Access and related attributes. Logically it would make
8148 -- more sense to call it an Expression field, but then we would have to
8149 -- special case the treatment of the N_Reference node.
8150
8151 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
8152 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
8153 -- a temporary initialized to a N_Reference node in order to eliminate
8154 -- superfluous access checks.
8155
8156 -- Sprint syntax: prefix'reference
8157
8158 -- N_Reference
8159 -- Sloc is copied from the expression
8160 -- Prefix (Node3)
8161 -- plus fields for expression
8162
8163 -- Note: in the case where a debug source file is generated, the Sloc
8164 -- for this node points to the quote in the Sprint file output.
8165
8166 ----------------
8167 -- SCIL Nodes --
8168 ----------------
8169
8170 -- SCIL nodes are special nodes added to the tree when the CodePeer mode
8171 -- is active. They are only generated if SCIL generation is enabled.
8172 -- A standard tree-walk will not encounter these nodes even if they
8173 -- are present; these nodes are only accessible via the function
8174 -- SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
8175 -- semantics.
8176
8177 -- Sprint syntax: [ <node kind> ]
8178 -- No semantic field values are displayed.
8179
8180 -- N_SCIL_Dispatch_Table_Tag_Init
8181 -- Sloc references a node for a tag initialization
8182 -- SCIL_Entity (Node4-Sem)
8183 --
8184 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
8185 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
8186 -- the declaration of the dispatch table for a tagged type.
8187
8188 -- N_SCIL_Dispatching_Call
8189 -- Sloc references the node of a dispatching call
8190 -- SCIL_Target_Prim (Node2-Sem)
8191 -- SCIL_Entity (Node4-Sem)
8192 -- SCIL_Controlling_Tag (Node5-Sem)
8193 --
8194 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
8195 -- with the N_Procedure_Call_Statement or N_Function_Call node (or a
8196 -- rewriting thereof) corresponding to a dispatching call.
8197
8198 -- N_SCIL_Membership_Test
8199 -- Sloc references the node of a membership test
8200 -- SCIL_Tag_Value (Node5-Sem)
8201 -- SCIL_Entity (Node4-Sem)
8202 --
8203 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
8204 -- with the N_In node (or a rewriting thereof) corresponding to a
8205 -- classwide membership test.
8206
8207 --------------------------
8208 -- Unchecked Expression --
8209 --------------------------
8210
8211 -- An unchecked expression is one that must be analyzed and resolved
8212 -- with all checks off, regardless of the current setting of scope
8213 -- suppress flags.
8214
8215 -- Sprint syntax: `(expression)
8216
8217 -- Note: this node is always removed from the tree (and replaced by
8218 -- its constituent expression) on completion of analysis, so it only
8219 -- appears in intermediate trees, and will never be seen by Gigi.
8220
8221 -- N_Unchecked_Expression
8222 -- Sloc is a copy of the Sloc of the expression
8223 -- Expression (Node3)
8224 -- plus fields for expression
8225
8226 -- Note: in the case where a debug source file is generated, the Sloc
8227 -- for this node points to the back quote in the Sprint file output.
8228
8229 -------------------------------
8230 -- Unchecked Type Conversion --
8231 -------------------------------
8232
8233 -- An unchecked type conversion node represents the semantic action
8234 -- corresponding to a call to an instantiation of Unchecked_Conversion.
8235 -- It is generated as a result of actual use of Unchecked_Conversion
8236 -- and also the expander generates unchecked type conversion nodes
8237 -- directly for expansion of complex semantic actions.
8238
8239 -- Note: an unchecked type conversion is a variable as far as the
8240 -- semantics are concerned, which is convenient for the expander.
8241 -- This does not change what Ada source programs are legal, since
8242 -- clearly a function call to an instantiation of Unchecked_Conversion
8243 -- is not a variable in any case.
8244
8245 -- Sprint syntax: subtype-mark!(expression)
8246
8247 -- N_Unchecked_Type_Conversion
8248 -- Sloc points to related node in source
8249 -- Subtype_Mark (Node4)
8250 -- Expression (Node3)
8251 -- Kill_Range_Check (Flag11-Sem)
8252 -- No_Truncation (Flag17-Sem)
8253 -- plus fields for expression
8254
8255 -- Note: in the case where a debug source file is generated, the Sloc
8256 -- for this node points to the exclamation in the Sprint file output.
8257
8258 -----------------------------------
8259 -- Validate_Unchecked_Conversion --
8260 -----------------------------------
8261
8262 -- The front end does most of the validation of unchecked conversion,
8263 -- including checking sizes (this is done after the back end is called
8264 -- to take advantage of back-annotation of calculated sizes).
8265
8266 -- The front end also deals with specific cases that are not allowed
8267 -- e.g. involving unconstrained array types.
8268
8269 -- For the case of the standard gigi backend, this means that all
8270 -- checks are done in the front end.
8271
8272 -- However, in the case of specialized back-ends, in particular the JVM
8273 -- backend in the past, additional requirements and restrictions may
8274 -- apply to unchecked conversion, and these are most conveniently
8275 -- performed in the specialized back-end.
8276
8277 -- To accommodate this requirement, for such back ends, the following
8278 -- special node is generated recording an unchecked conversion that
8279 -- needs to be validated. The back end should post an appropriate
8280 -- error message if the unchecked conversion is invalid or warrants
8281 -- a special warning message.
8282
8283 -- Source_Type and Target_Type point to the entities for the two
8284 -- types involved in the unchecked conversion instantiation that
8285 -- is to be validated.
8286
8287 -- Sprint syntax: validate Unchecked_Conversion (source, target);
8288
8289 -- N_Validate_Unchecked_Conversion
8290 -- Sloc points to instantiation (location for warning message)
8291 -- Source_Type (Node1-Sem)
8292 -- Target_Type (Node2-Sem)
8293
8294 -- Note: in the case where a debug source file is generated, the Sloc
8295 -- for this node points to the VALIDATE keyword in the file output.
8296
8297 -----------
8298 -- Empty --
8299 -----------
8300
8301 -- Used as the contents of the Nkind field of the dummy Empty node
8302 -- and in some other situations to indicate an uninitialized value.
8303
8304 -- N_Empty
8305 -- Chars (Name1) is set to No_Name
8306
8307 -----------
8308 -- Error --
8309 -----------
8310
8311 -- Used as the contents of the Nkind field of the dummy Error node.
8312 -- Has an Etype field, which gets set to Any_Type later on, to help
8313 -- error recovery (Error_Posted is also set in the Error node).
8314
8315 -- N_Error
8316 -- Chars (Name1) is set to Error_Name
8317 -- Etype (Node5-Sem)
8318
8319 --------------------------
8320 -- Node Type Definition --
8321 --------------------------
8322
8323 -- The following is the definition of the Node_Kind type. As previously
8324 -- discussed, this is separated off to allow rearrangement of the order to
8325 -- facilitate definition of subtype ranges. The comments show the subtype
8326 -- classes which apply to each set of node kinds. The first entry in the
8327 -- comment characterizes the following list of nodes.
8328
8329 type Node_Kind is (
8330 N_Unused_At_Start,
8331
8332 -- N_Representation_Clause
8333
8334 N_At_Clause,
8335 N_Component_Clause,
8336 N_Enumeration_Representation_Clause,
8337 N_Mod_Clause,
8338 N_Record_Representation_Clause,
8339
8340 -- N_Representation_Clause, N_Has_Chars
8341
8342 N_Attribute_Definition_Clause,
8343
8344 -- N_Has_Chars
8345
8346 N_Empty,
8347 N_Pragma_Argument_Association,
8348
8349 -- N_Has_Etype, N_Has_Chars
8350
8351 -- Note: of course N_Error does not really have Etype or Chars fields,
8352 -- and any attempt to access these fields in N_Error will cause an
8353 -- error, but historically this always has been positioned so that an
8354 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8355 -- Most likely this makes coding easier somewhere but still seems
8356 -- undesirable. To be investigated some time ???
8357
8358 N_Error,
8359
8360 -- N_Entity, N_Has_Etype, N_Has_Chars
8361
8362 N_Defining_Character_Literal,
8363 N_Defining_Identifier,
8364 N_Defining_Operator_Symbol,
8365
8366 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8367
8368 N_Expanded_Name,
8369
8370 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8371 -- N_Has_Chars, N_Has_Entity
8372
8373 N_Identifier,
8374 N_Operator_Symbol,
8375
8376 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8377 -- N_Has_Chars, N_Has_Entity
8378
8379 N_Character_Literal,
8380
8381 -- N_Binary_Op, N_Op, N_Subexpr,
8382 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
8383
8384 N_Op_Add,
8385 N_Op_Concat,
8386 N_Op_Expon,
8387 N_Op_Subtract,
8388
8389 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
8390 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8391
8392 N_Op_Divide,
8393 N_Op_Mod,
8394 N_Op_Multiply,
8395 N_Op_Rem,
8396
8397 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8398 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8399
8400 N_Op_And,
8401
8402 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8403 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8404
8405 N_Op_Eq,
8406 N_Op_Ge,
8407 N_Op_Gt,
8408 N_Op_Le,
8409 N_Op_Lt,
8410 N_Op_Ne,
8411
8412 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8413 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8414
8415 N_Op_Or,
8416 N_Op_Xor,
8417
8418 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8419 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
8420
8421 N_Op_Rotate_Left,
8422 N_Op_Rotate_Right,
8423 N_Op_Shift_Left,
8424 N_Op_Shift_Right,
8425 N_Op_Shift_Right_Arithmetic,
8426
8427 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8428 -- N_Has_Chars, N_Has_Entity
8429
8430 N_Op_Abs,
8431 N_Op_Minus,
8432 N_Op_Not,
8433 N_Op_Plus,
8434
8435 -- N_Subexpr, N_Has_Etype, N_Has_Entity
8436
8437 N_Attribute_Reference,
8438
8439 -- N_Subexpr, N_Has_Etype, N_Membership_Test
8440
8441 N_In,
8442 N_Not_In,
8443
8444 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8445
8446 N_And_Then,
8447 N_Or_Else,
8448
8449 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8450
8451 N_Function_Call,
8452 N_Procedure_Call_Statement,
8453
8454 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8455
8456 N_Raise_Constraint_Error,
8457 N_Raise_Program_Error,
8458 N_Raise_Storage_Error,
8459
8460 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8461
8462 N_Integer_Literal,
8463 N_Real_Literal,
8464 N_String_Literal,
8465
8466 -- N_Subexpr, N_Has_Etype
8467
8468 N_Explicit_Dereference,
8469 N_Expression_With_Actions,
8470 N_If_Expression,
8471 N_Indexed_Component,
8472 N_Null,
8473 N_Qualified_Expression,
8474 N_Quantified_Expression,
8475 N_Aggregate,
8476 N_Allocator,
8477 N_Case_Expression,
8478 N_Extension_Aggregate,
8479 N_Raise_Expression,
8480 N_Range,
8481 N_Reference,
8482 N_Selected_Component,
8483 N_Slice,
8484 N_Target_Name,
8485 N_Type_Conversion,
8486 N_Unchecked_Expression,
8487 N_Unchecked_Type_Conversion,
8488
8489 -- N_Has_Etype
8490
8491 N_Subtype_Indication,
8492
8493 -- N_Declaration
8494
8495 N_Component_Declaration,
8496 N_Entry_Declaration,
8497 N_Expression_Function,
8498 N_Formal_Object_Declaration,
8499 N_Formal_Type_Declaration,
8500 N_Full_Type_Declaration,
8501 N_Incomplete_Type_Declaration,
8502 N_Iterator_Specification,
8503 N_Loop_Parameter_Specification,
8504 N_Object_Declaration,
8505 N_Protected_Type_Declaration,
8506 N_Private_Extension_Declaration,
8507 N_Private_Type_Declaration,
8508 N_Subtype_Declaration,
8509
8510 -- N_Subprogram_Specification, N_Declaration
8511
8512 N_Function_Specification,
8513 N_Procedure_Specification,
8514
8515 -- N_Access_To_Subprogram_Definition
8516
8517 N_Access_Function_Definition,
8518 N_Access_Procedure_Definition,
8519
8520 -- N_Later_Decl_Item
8521
8522 N_Task_Type_Declaration,
8523
8524 -- N_Body_Stub, N_Later_Decl_Item
8525
8526 N_Package_Body_Stub,
8527 N_Protected_Body_Stub,
8528 N_Subprogram_Body_Stub,
8529 N_Task_Body_Stub,
8530
8531 -- N_Generic_Instantiation, N_Later_Decl_Item
8532 -- N_Subprogram_Instantiation
8533
8534 N_Function_Instantiation,
8535 N_Procedure_Instantiation,
8536
8537 -- N_Generic_Instantiation, N_Later_Decl_Item
8538
8539 N_Package_Instantiation,
8540
8541 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8542
8543 N_Package_Body,
8544 N_Subprogram_Body,
8545
8546 -- N_Later_Decl_Item, N_Proper_Body
8547
8548 N_Protected_Body,
8549 N_Task_Body,
8550
8551 -- N_Later_Decl_Item
8552
8553 N_Implicit_Label_Declaration,
8554 N_Package_Declaration,
8555 N_Single_Task_Declaration,
8556 N_Subprogram_Declaration,
8557 N_Use_Package_Clause,
8558
8559 -- N_Generic_Declaration, N_Later_Decl_Item
8560
8561 N_Generic_Package_Declaration,
8562 N_Generic_Subprogram_Declaration,
8563
8564 -- N_Array_Type_Definition
8565
8566 N_Constrained_Array_Definition,
8567 N_Unconstrained_Array_Definition,
8568
8569 -- N_Renaming_Declaration
8570
8571 N_Exception_Renaming_Declaration,
8572 N_Object_Renaming_Declaration,
8573 N_Package_Renaming_Declaration,
8574 N_Subprogram_Renaming_Declaration,
8575
8576 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8577
8578 N_Generic_Function_Renaming_Declaration,
8579 N_Generic_Package_Renaming_Declaration,
8580 N_Generic_Procedure_Renaming_Declaration,
8581
8582 -- N_Statement_Other_Than_Procedure_Call
8583
8584 N_Abort_Statement,
8585 N_Accept_Statement,
8586 N_Assignment_Statement,
8587 N_Asynchronous_Select,
8588 N_Block_Statement,
8589 N_Case_Statement,
8590 N_Code_Statement,
8591 N_Compound_Statement,
8592 N_Conditional_Entry_Call,
8593
8594 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8595
8596 N_Delay_Relative_Statement,
8597 N_Delay_Until_Statement,
8598
8599 -- N_Statement_Other_Than_Procedure_Call
8600
8601 N_Entry_Call_Statement,
8602 N_Free_Statement,
8603 N_Goto_Statement,
8604 N_Loop_Statement,
8605 N_Null_Statement,
8606 N_Raise_Statement,
8607 N_Requeue_Statement,
8608 N_Simple_Return_Statement,
8609 N_Extended_Return_Statement,
8610 N_Selective_Accept,
8611 N_Timed_Entry_Call,
8612
8613 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8614
8615 N_Exit_Statement,
8616 N_If_Statement,
8617
8618 -- N_Has_Condition
8619
8620 N_Accept_Alternative,
8621 N_Delay_Alternative,
8622 N_Elsif_Part,
8623 N_Entry_Body_Formal_Part,
8624 N_Iteration_Scheme,
8625 N_Terminate_Alternative,
8626
8627 -- N_Formal_Subprogram_Declaration
8628
8629 N_Formal_Abstract_Subprogram_Declaration,
8630 N_Formal_Concrete_Subprogram_Declaration,
8631
8632 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8633
8634 N_Push_Constraint_Error_Label,
8635 N_Push_Program_Error_Label,
8636 N_Push_Storage_Error_Label,
8637
8638 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8639
8640 N_Pop_Constraint_Error_Label,
8641 N_Pop_Program_Error_Label,
8642 N_Pop_Storage_Error_Label,
8643
8644 -- SCIL nodes
8645
8646 N_SCIL_Dispatch_Table_Tag_Init,
8647 N_SCIL_Dispatching_Call,
8648 N_SCIL_Membership_Test,
8649
8650 -- Other nodes (not part of any subtype class)
8651
8652 N_Abortable_Part,
8653 N_Abstract_Subprogram_Declaration,
8654 N_Access_Definition,
8655 N_Access_To_Object_Definition,
8656 N_Aspect_Specification,
8657 N_Case_Expression_Alternative,
8658 N_Case_Statement_Alternative,
8659 N_Compilation_Unit,
8660 N_Compilation_Unit_Aux,
8661 N_Component_Association,
8662 N_Component_Definition,
8663 N_Component_List,
8664 N_Contract,
8665 N_Derived_Type_Definition,
8666 N_Decimal_Fixed_Point_Definition,
8667 N_Defining_Program_Unit_Name,
8668 N_Delta_Constraint,
8669 N_Designator,
8670 N_Digits_Constraint,
8671 N_Discriminant_Association,
8672 N_Discriminant_Specification,
8673 N_Enumeration_Type_Definition,
8674 N_Entry_Body,
8675 N_Entry_Call_Alternative,
8676 N_Entry_Index_Specification,
8677 N_Exception_Declaration,
8678 N_Exception_Handler,
8679 N_Floating_Point_Definition,
8680 N_Formal_Decimal_Fixed_Point_Definition,
8681 N_Formal_Derived_Type_Definition,
8682 N_Formal_Discrete_Type_Definition,
8683 N_Formal_Floating_Point_Definition,
8684 N_Formal_Modular_Type_Definition,
8685 N_Formal_Ordinary_Fixed_Point_Definition,
8686 N_Formal_Package_Declaration,
8687 N_Formal_Private_Type_Definition,
8688 N_Formal_Incomplete_Type_Definition,
8689 N_Formal_Signed_Integer_Type_Definition,
8690 N_Freeze_Entity,
8691 N_Freeze_Generic_Entity,
8692 N_Generic_Association,
8693 N_Handled_Sequence_Of_Statements,
8694 N_Index_Or_Discriminant_Constraint,
8695 N_Iterated_Component_Association,
8696 N_Itype_Reference,
8697 N_Label,
8698 N_Modular_Type_Definition,
8699 N_Number_Declaration,
8700 N_Ordinary_Fixed_Point_Definition,
8701 N_Others_Choice,
8702 N_Package_Specification,
8703 N_Parameter_Association,
8704 N_Parameter_Specification,
8705 N_Pragma,
8706 N_Protected_Definition,
8707 N_Range_Constraint,
8708 N_Real_Range_Specification,
8709 N_Record_Definition,
8710 N_Signed_Integer_Type_Definition,
8711 N_Single_Protected_Declaration,
8712 N_Subunit,
8713 N_Task_Definition,
8714 N_Triggering_Alternative,
8715 N_Use_Type_Clause,
8716 N_Validate_Unchecked_Conversion,
8717 N_Variant,
8718 N_Variant_Part,
8719 N_With_Clause,
8720 N_Unused_At_End);
8721
8722 for Node_Kind'Size use 8;
8723 -- The data structures in Atree assume this
8724
8725 ----------------------------
8726 -- Node Class Definitions --
8727 ----------------------------
8728
8729 subtype N_Access_To_Subprogram_Definition is Node_Kind range
8730 N_Access_Function_Definition ..
8731 N_Access_Procedure_Definition;
8732
8733 subtype N_Array_Type_Definition is Node_Kind range
8734 N_Constrained_Array_Definition ..
8735 N_Unconstrained_Array_Definition;
8736
8737 subtype N_Binary_Op is Node_Kind range
8738 N_Op_Add ..
8739 N_Op_Shift_Right_Arithmetic;
8740
8741 subtype N_Body_Stub is Node_Kind range
8742 N_Package_Body_Stub ..
8743 N_Task_Body_Stub;
8744
8745 subtype N_Declaration is Node_Kind range
8746 N_Component_Declaration ..
8747 N_Procedure_Specification;
8748 -- Note: this includes all constructs normally thought of as declarations
8749 -- except those which are separately grouped as later declarations.
8750
8751 subtype N_Delay_Statement is Node_Kind range
8752 N_Delay_Relative_Statement ..
8753 N_Delay_Until_Statement;
8754
8755 subtype N_Direct_Name is Node_Kind range
8756 N_Identifier ..
8757 N_Character_Literal;
8758
8759 subtype N_Entity is Node_Kind range
8760 N_Defining_Character_Literal ..
8761 N_Defining_Operator_Symbol;
8762
8763 subtype N_Formal_Subprogram_Declaration is Node_Kind range
8764 N_Formal_Abstract_Subprogram_Declaration ..
8765 N_Formal_Concrete_Subprogram_Declaration;
8766
8767 subtype N_Generic_Declaration is Node_Kind range
8768 N_Generic_Package_Declaration ..
8769 N_Generic_Subprogram_Declaration;
8770
8771 subtype N_Generic_Instantiation is Node_Kind range
8772 N_Function_Instantiation ..
8773 N_Package_Instantiation;
8774
8775 subtype N_Generic_Renaming_Declaration is Node_Kind range
8776 N_Generic_Function_Renaming_Declaration ..
8777 N_Generic_Procedure_Renaming_Declaration;
8778
8779 subtype N_Has_Chars is Node_Kind range
8780 N_Attribute_Definition_Clause ..
8781 N_Op_Plus;
8782
8783 subtype N_Has_Entity is Node_Kind range
8784 N_Expanded_Name ..
8785 N_Attribute_Reference;
8786 -- Nodes that have Entity fields
8787 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
8788 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
8789
8790 subtype N_Has_Etype is Node_Kind range
8791 N_Error ..
8792 N_Subtype_Indication;
8793
8794 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
8795 N_Op_Divide ..
8796 N_Op_Rem;
8797
8798 subtype N_Multiplying_Operator is Node_Kind range
8799 N_Op_Divide ..
8800 N_Op_Rem;
8801
8802 subtype N_Later_Decl_Item is Node_Kind range
8803 N_Task_Type_Declaration ..
8804 N_Generic_Subprogram_Declaration;
8805 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8806 -- only those items which can appear as later declarative items. This also
8807 -- includes N_Implicit_Label_Declaration which is not specifically in the
8808 -- grammar but may appear as a valid later declarative items. It does NOT
8809 -- include N_Pragma which can also appear among later declarative items.
8810 -- It does however include N_Protected_Body, which is a bit peculiar, but
8811 -- harmless since this cannot appear in Ada 83 mode anyway.
8812
8813 subtype N_Membership_Test is Node_Kind range
8814 N_In ..
8815 N_Not_In;
8816
8817 subtype N_Numeric_Or_String_Literal is Node_Kind range
8818 N_Integer_Literal ..
8819 N_String_Literal;
8820
8821 subtype N_Op is Node_Kind range
8822 N_Op_Add ..
8823 N_Op_Plus;
8824
8825 subtype N_Op_Boolean is Node_Kind range
8826 N_Op_And ..
8827 N_Op_Xor;
8828 -- Binary operators which take operands of a boolean type, and yield
8829 -- a result of a boolean type.
8830
8831 subtype N_Op_Compare is Node_Kind range
8832 N_Op_Eq ..
8833 N_Op_Ne;
8834
8835 subtype N_Op_Shift is Node_Kind range
8836 N_Op_Rotate_Left ..
8837 N_Op_Shift_Right_Arithmetic;
8838
8839 subtype N_Proper_Body is Node_Kind range
8840 N_Package_Body ..
8841 N_Task_Body;
8842
8843 subtype N_Push_xxx_Label is Node_Kind range
8844 N_Push_Constraint_Error_Label ..
8845 N_Push_Storage_Error_Label;
8846
8847 subtype N_Pop_xxx_Label is Node_Kind range
8848 N_Pop_Constraint_Error_Label ..
8849 N_Pop_Storage_Error_Label;
8850
8851 subtype N_Push_Pop_xxx_Label is Node_Kind range
8852 N_Push_Constraint_Error_Label ..
8853 N_Pop_Storage_Error_Label;
8854
8855 subtype N_Raise_xxx_Error is Node_Kind range
8856 N_Raise_Constraint_Error ..
8857 N_Raise_Storage_Error;
8858
8859 subtype N_Renaming_Declaration is Node_Kind range
8860 N_Exception_Renaming_Declaration ..
8861 N_Generic_Procedure_Renaming_Declaration;
8862
8863 subtype N_Representation_Clause is Node_Kind range
8864 N_At_Clause ..
8865 N_Attribute_Definition_Clause;
8866
8867 subtype N_Short_Circuit is Node_Kind range
8868 N_And_Then ..
8869 N_Or_Else;
8870
8871 subtype N_SCIL_Node is Node_Kind range
8872 N_SCIL_Dispatch_Table_Tag_Init ..
8873 N_SCIL_Membership_Test;
8874
8875 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8876 N_Abort_Statement ..
8877 N_If_Statement;
8878 -- Note that this includes all statement types except for the cases of the
8879 -- N_Procedure_Call_Statement which is considered to be a subexpression
8880 -- (since overloading is possible, so it needs to go through the normal
8881 -- overloading resolution for expressions).
8882
8883 subtype N_Subprogram_Call is Node_Kind range
8884 N_Function_Call ..
8885 N_Procedure_Call_Statement;
8886
8887 subtype N_Subprogram_Instantiation is Node_Kind range
8888 N_Function_Instantiation ..
8889 N_Procedure_Instantiation;
8890
8891 subtype N_Has_Condition is Node_Kind range
8892 N_Exit_Statement ..
8893 N_Terminate_Alternative;
8894 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
8895
8896 subtype N_Subexpr is Node_Kind range
8897 N_Expanded_Name ..
8898 N_Unchecked_Type_Conversion;
8899 -- Nodes with expression fields
8900
8901 subtype N_Subprogram_Specification is Node_Kind range
8902 N_Function_Specification ..
8903 N_Procedure_Specification;
8904
8905 subtype N_Unary_Op is Node_Kind range
8906 N_Op_Abs ..
8907 N_Op_Plus;
8908
8909 subtype N_Unit_Body is Node_Kind range
8910 N_Package_Body ..
8911 N_Subprogram_Body;
8912
8913 ---------------------------
8914 -- Node Access Functions --
8915 ---------------------------
8916
8917 -- The following functions return the contents of the indicated field of
8918 -- the node referenced by the argument, which is a Node_Id. They provide
8919 -- logical access to fields in the node which could be accessed using the
8920 -- Atree.Unchecked_Access package, but the idea is always to use these
8921 -- higher level routines which preserve strong typing. In debug mode,
8922 -- these routines check that they are being applied to an appropriate
8923 -- node, as well as checking that the node is in range.
8924
8925 function ABE_Is_Certain
8926 (N : Node_Id) return Boolean; -- Flag18
8927
8928 function Abort_Present
8929 (N : Node_Id) return Boolean; -- Flag15
8930
8931 function Abortable_Part
8932 (N : Node_Id) return Node_Id; -- Node2
8933
8934 function Abstract_Present
8935 (N : Node_Id) return Boolean; -- Flag4
8936
8937 function Accept_Handler_Records
8938 (N : Node_Id) return List_Id; -- List5
8939
8940 function Accept_Statement
8941 (N : Node_Id) return Node_Id; -- Node2
8942
8943 function Access_Definition
8944 (N : Node_Id) return Node_Id; -- Node3
8945
8946 function Access_To_Subprogram_Definition
8947 (N : Node_Id) return Node_Id; -- Node3
8948
8949 function Access_Types_To_Process
8950 (N : Node_Id) return Elist_Id; -- Elist2
8951
8952 function Actions
8953 (N : Node_Id) return List_Id; -- List1
8954
8955 function Activation_Chain_Entity
8956 (N : Node_Id) return Node_Id; -- Node3
8957
8958 function Acts_As_Spec
8959 (N : Node_Id) return Boolean; -- Flag4
8960
8961 function Actual_Designated_Subtype
8962 (N : Node_Id) return Node_Id; -- Node4
8963
8964 function Address_Warning_Posted
8965 (N : Node_Id) return Boolean; -- Flag18
8966
8967 function Aggregate_Bounds
8968 (N : Node_Id) return Node_Id; -- Node3
8969
8970 function Aliased_Present
8971 (N : Node_Id) return Boolean; -- Flag4
8972
8973 function All_Others
8974 (N : Node_Id) return Boolean; -- Flag11
8975
8976 function All_Present
8977 (N : Node_Id) return Boolean; -- Flag15
8978
8979 function Alternatives
8980 (N : Node_Id) return List_Id; -- List4
8981
8982 function Ancestor_Part
8983 (N : Node_Id) return Node_Id; -- Node3
8984
8985 function Atomic_Sync_Required
8986 (N : Node_Id) return Boolean; -- Flag14
8987
8988 function Array_Aggregate
8989 (N : Node_Id) return Node_Id; -- Node3
8990
8991 function Aspect_Rep_Item
8992 (N : Node_Id) return Node_Id; -- Node2
8993
8994 function Assignment_OK
8995 (N : Node_Id) return Boolean; -- Flag15
8996
8997 function Associated_Node
8998 (N : Node_Id) return Node_Id; -- Node4
8999
9000 function At_End_Proc
9001 (N : Node_Id) return Node_Id; -- Node1
9002
9003 function Attribute_Name
9004 (N : Node_Id) return Name_Id; -- Name2
9005
9006 function Aux_Decls_Node
9007 (N : Node_Id) return Node_Id; -- Node5
9008
9009 function Backwards_OK
9010 (N : Node_Id) return Boolean; -- Flag6
9011
9012 function Bad_Is_Detected
9013 (N : Node_Id) return Boolean; -- Flag15
9014
9015 function By_Ref
9016 (N : Node_Id) return Boolean; -- Flag5
9017
9018 function Body_Required
9019 (N : Node_Id) return Boolean; -- Flag13
9020
9021 function Body_To_Inline
9022 (N : Node_Id) return Node_Id; -- Node3
9023
9024 function Box_Present
9025 (N : Node_Id) return Boolean; -- Flag15
9026
9027 function Char_Literal_Value
9028 (N : Node_Id) return Uint; -- Uint2
9029
9030 function Chars
9031 (N : Node_Id) return Name_Id; -- Name1
9032
9033 function Check_Address_Alignment
9034 (N : Node_Id) return Boolean; -- Flag11
9035
9036 function Choice_Parameter
9037 (N : Node_Id) return Node_Id; -- Node2
9038
9039 function Choices
9040 (N : Node_Id) return List_Id; -- List1
9041
9042 function Class_Present
9043 (N : Node_Id) return Boolean; -- Flag6
9044
9045 function Classifications
9046 (N : Node_Id) return Node_Id; -- Node3
9047
9048 function Cleanup_Actions
9049 (N : Node_Id) return List_Id; -- List5
9050
9051 function Comes_From_Extended_Return_Statement
9052 (N : Node_Id) return Boolean; -- Flag18
9053
9054 function Compile_Time_Known_Aggregate
9055 (N : Node_Id) return Boolean; -- Flag18
9056
9057 function Component_Associations
9058 (N : Node_Id) return List_Id; -- List2
9059
9060 function Component_Clauses
9061 (N : Node_Id) return List_Id; -- List3
9062
9063 function Component_Definition
9064 (N : Node_Id) return Node_Id; -- Node4
9065
9066 function Component_Items
9067 (N : Node_Id) return List_Id; -- List3
9068
9069 function Component_List
9070 (N : Node_Id) return Node_Id; -- Node1
9071
9072 function Component_Name
9073 (N : Node_Id) return Node_Id; -- Node1
9074
9075 function Componentwise_Assignment
9076 (N : Node_Id) return Boolean; -- Flag14
9077
9078 function Condition
9079 (N : Node_Id) return Node_Id; -- Node1
9080
9081 function Condition_Actions
9082 (N : Node_Id) return List_Id; -- List3
9083
9084 function Config_Pragmas
9085 (N : Node_Id) return List_Id; -- List4
9086
9087 function Constant_Present
9088 (N : Node_Id) return Boolean; -- Flag17
9089
9090 function Constraint
9091 (N : Node_Id) return Node_Id; -- Node3
9092
9093 function Constraints
9094 (N : Node_Id) return List_Id; -- List1
9095
9096 function Context_Installed
9097 (N : Node_Id) return Boolean; -- Flag13
9098
9099 function Context_Pending
9100 (N : Node_Id) return Boolean; -- Flag16
9101
9102 function Context_Items
9103 (N : Node_Id) return List_Id; -- List1
9104
9105 function Contract_Test_Cases
9106 (N : Node_Id) return Node_Id; -- Node2
9107
9108 function Controlling_Argument
9109 (N : Node_Id) return Node_Id; -- Node1
9110
9111 function Conversion_OK
9112 (N : Node_Id) return Boolean; -- Flag14
9113
9114 function Convert_To_Return_False
9115 (N : Node_Id) return Boolean; -- Flag13
9116
9117 function Corresponding_Aspect
9118 (N : Node_Id) return Node_Id; -- Node3
9119
9120 function Corresponding_Body
9121 (N : Node_Id) return Node_Id; -- Node5
9122
9123 function Corresponding_Formal_Spec
9124 (N : Node_Id) return Node_Id; -- Node3
9125
9126 function Corresponding_Generic_Association
9127 (N : Node_Id) return Node_Id; -- Node5
9128
9129 function Corresponding_Integer_Value
9130 (N : Node_Id) return Uint; -- Uint4
9131
9132 function Corresponding_Spec
9133 (N : Node_Id) return Entity_Id; -- Node5
9134
9135 function Corresponding_Spec_Of_Stub
9136 (N : Node_Id) return Node_Id; -- Node2
9137
9138 function Corresponding_Stub
9139 (N : Node_Id) return Node_Id; -- Node3
9140
9141 function Dcheck_Function
9142 (N : Node_Id) return Entity_Id; -- Node5
9143
9144 function Declarations
9145 (N : Node_Id) return List_Id; -- List2
9146
9147 function Default_Expression
9148 (N : Node_Id) return Node_Id; -- Node5
9149
9150 function Default_Storage_Pool
9151 (N : Node_Id) return Node_Id; -- Node3
9152
9153 function Default_Name
9154 (N : Node_Id) return Node_Id; -- Node2
9155
9156 function Defining_Identifier
9157 (N : Node_Id) return Entity_Id; -- Node1
9158
9159 function Defining_Unit_Name
9160 (N : Node_Id) return Node_Id; -- Node1
9161
9162 function Delay_Alternative
9163 (N : Node_Id) return Node_Id; -- Node4
9164
9165 function Delay_Statement
9166 (N : Node_Id) return Node_Id; -- Node2
9167
9168 function Delta_Expression
9169 (N : Node_Id) return Node_Id; -- Node3
9170
9171 function Digits_Expression
9172 (N : Node_Id) return Node_Id; -- Node2
9173
9174 function Discr_Check_Funcs_Built
9175 (N : Node_Id) return Boolean; -- Flag11
9176
9177 function Discrete_Choices
9178 (N : Node_Id) return List_Id; -- List4
9179
9180 function Discrete_Range
9181 (N : Node_Id) return Node_Id; -- Node4
9182
9183 function Discrete_Subtype_Definition
9184 (N : Node_Id) return Node_Id; -- Node4
9185
9186 function Discrete_Subtype_Definitions
9187 (N : Node_Id) return List_Id; -- List2
9188
9189 function Discriminant_Specifications
9190 (N : Node_Id) return List_Id; -- List4
9191
9192 function Discriminant_Type
9193 (N : Node_Id) return Node_Id; -- Node5
9194
9195 function Do_Accessibility_Check
9196 (N : Node_Id) return Boolean; -- Flag13
9197
9198 function Do_Discriminant_Check
9199 (N : Node_Id) return Boolean; -- Flag1
9200
9201 function Do_Division_Check
9202 (N : Node_Id) return Boolean; -- Flag13
9203
9204 function Do_Length_Check
9205 (N : Node_Id) return Boolean; -- Flag4
9206
9207 function Do_Overflow_Check
9208 (N : Node_Id) return Boolean; -- Flag17
9209
9210 function Do_Range_Check
9211 (N : Node_Id) return Boolean; -- Flag9
9212
9213 function Do_Storage_Check
9214 (N : Node_Id) return Boolean; -- Flag17
9215
9216 function Do_Tag_Check
9217 (N : Node_Id) return Boolean; -- Flag13
9218
9219 function Elaborate_All_Desirable
9220 (N : Node_Id) return Boolean; -- Flag9
9221
9222 function Elaborate_All_Present
9223 (N : Node_Id) return Boolean; -- Flag14
9224
9225 function Elaborate_Desirable
9226 (N : Node_Id) return Boolean; -- Flag11
9227
9228 function Elaborate_Present
9229 (N : Node_Id) return Boolean; -- Flag4
9230
9231 function Else_Actions
9232 (N : Node_Id) return List_Id; -- List3
9233
9234 function Else_Statements
9235 (N : Node_Id) return List_Id; -- List4
9236
9237 function Elsif_Parts
9238 (N : Node_Id) return List_Id; -- List3
9239
9240 function Enclosing_Variant
9241 (N : Node_Id) return Node_Id; -- Node2
9242
9243 function End_Label
9244 (N : Node_Id) return Node_Id; -- Node4
9245
9246 function End_Span
9247 (N : Node_Id) return Uint; -- Uint5
9248
9249 function Entity
9250 (N : Node_Id) return Node_Id; -- Node4
9251
9252 function Entity_Or_Associated_Node
9253 (N : Node_Id) return Node_Id; -- Node4
9254
9255 function Entry_Body_Formal_Part
9256 (N : Node_Id) return Node_Id; -- Node5
9257
9258 function Entry_Call_Alternative
9259 (N : Node_Id) return Node_Id; -- Node1
9260
9261 function Entry_Call_Statement
9262 (N : Node_Id) return Node_Id; -- Node1
9263
9264 function Entry_Direct_Name
9265 (N : Node_Id) return Node_Id; -- Node1
9266
9267 function Entry_Index
9268 (N : Node_Id) return Node_Id; -- Node5
9269
9270 function Entry_Index_Specification
9271 (N : Node_Id) return Node_Id; -- Node4
9272
9273 function Etype
9274 (N : Node_Id) return Node_Id; -- Node5
9275
9276 function Exception_Choices
9277 (N : Node_Id) return List_Id; -- List4
9278
9279 function Exception_Handlers
9280 (N : Node_Id) return List_Id; -- List5
9281
9282 function Exception_Junk
9283 (N : Node_Id) return Boolean; -- Flag8
9284
9285 function Exception_Label
9286 (N : Node_Id) return Node_Id; -- Node5
9287
9288 function Explicit_Actual_Parameter
9289 (N : Node_Id) return Node_Id; -- Node3
9290
9291 function Expansion_Delayed
9292 (N : Node_Id) return Boolean; -- Flag11
9293
9294 function Explicit_Generic_Actual_Parameter
9295 (N : Node_Id) return Node_Id; -- Node1
9296
9297 function Expression
9298 (N : Node_Id) return Node_Id; -- Node3
9299
9300 function Expression_Copy
9301 (N : Node_Id) return Node_Id; -- Node2
9302
9303 function Expressions
9304 (N : Node_Id) return List_Id; -- List1
9305
9306 function First_Bit
9307 (N : Node_Id) return Node_Id; -- Node3
9308
9309 function First_Inlined_Subprogram
9310 (N : Node_Id) return Entity_Id; -- Node3
9311
9312 function First_Name
9313 (N : Node_Id) return Boolean; -- Flag5
9314
9315 function First_Named_Actual
9316 (N : Node_Id) return Node_Id; -- Node4
9317
9318 function First_Real_Statement
9319 (N : Node_Id) return Node_Id; -- Node2
9320
9321 function First_Subtype_Link
9322 (N : Node_Id) return Entity_Id; -- Node5
9323
9324 function Float_Truncate
9325 (N : Node_Id) return Boolean; -- Flag11
9326
9327 function Formal_Type_Definition
9328 (N : Node_Id) return Node_Id; -- Node3
9329
9330 function Forwards_OK
9331 (N : Node_Id) return Boolean; -- Flag5
9332
9333 function From_Aspect_Specification
9334 (N : Node_Id) return Boolean; -- Flag13
9335
9336 function From_At_End
9337 (N : Node_Id) return Boolean; -- Flag4
9338
9339 function From_At_Mod
9340 (N : Node_Id) return Boolean; -- Flag4
9341
9342 function From_Conditional_Expression
9343 (N : Node_Id) return Boolean; -- Flag1
9344
9345 function From_Default
9346 (N : Node_Id) return Boolean; -- Flag6
9347
9348 function Generalized_Indexing
9349 (N : Node_Id) return Node_Id; -- Node4
9350 function Generic_Associations
9351 (N : Node_Id) return List_Id; -- List3
9352
9353 function Generic_Formal_Declarations
9354 (N : Node_Id) return List_Id; -- List2
9355
9356 function Generic_Parent
9357 (N : Node_Id) return Node_Id; -- Node5
9358
9359 function Generic_Parent_Type
9360 (N : Node_Id) return Node_Id; -- Node4
9361
9362 function Handled_Statement_Sequence
9363 (N : Node_Id) return Node_Id; -- Node4
9364
9365 function Handler_List_Entry
9366 (N : Node_Id) return Node_Id; -- Node2
9367
9368 function Has_Created_Identifier
9369 (N : Node_Id) return Boolean; -- Flag15
9370
9371 function Has_Dereference_Action
9372 (N : Node_Id) return Boolean; -- Flag13
9373
9374 function Has_Dynamic_Length_Check
9375 (N : Node_Id) return Boolean; -- Flag10
9376
9377 function Has_Dynamic_Range_Check
9378 (N : Node_Id) return Boolean; -- Flag12
9379
9380 function Has_Init_Expression
9381 (N : Node_Id) return Boolean; -- Flag14
9382
9383 function Has_Local_Raise
9384 (N : Node_Id) return Boolean; -- Flag8
9385
9386 function Has_No_Elaboration_Code
9387 (N : Node_Id) return Boolean; -- Flag17
9388
9389 function Has_Pragma_Suppress_All
9390 (N : Node_Id) return Boolean; -- Flag14
9391
9392 function Has_Private_View
9393 (N : Node_Id) return Boolean; -- Flag11
9394
9395 function Has_Relative_Deadline_Pragma
9396 (N : Node_Id) return Boolean; -- Flag9
9397
9398 function Has_Self_Reference
9399 (N : Node_Id) return Boolean; -- Flag13
9400
9401 function Has_SP_Choice
9402 (N : Node_Id) return Boolean; -- Flag15
9403
9404 function Has_Storage_Size_Pragma
9405 (N : Node_Id) return Boolean; -- Flag5
9406
9407 function Has_Target_Names
9408 (N : Node_Id) return Boolean; -- Flag8
9409
9410 function Has_Wide_Character
9411 (N : Node_Id) return Boolean; -- Flag11
9412
9413 function Has_Wide_Wide_Character
9414 (N : Node_Id) return Boolean; -- Flag13
9415
9416 function Header_Size_Added
9417 (N : Node_Id) return Boolean; -- Flag11
9418
9419 function Hidden_By_Use_Clause
9420 (N : Node_Id) return Elist_Id; -- Elist4
9421
9422 function High_Bound
9423 (N : Node_Id) return Node_Id; -- Node2
9424
9425 function Identifier
9426 (N : Node_Id) return Node_Id; -- Node1
9427
9428 function Interface_List
9429 (N : Node_Id) return List_Id; -- List2
9430
9431 function Interface_Present
9432 (N : Node_Id) return Boolean; -- Flag16
9433
9434 function Implicit_With
9435 (N : Node_Id) return Boolean; -- Flag16
9436
9437 function Implicit_With_From_Instantiation
9438 (N : Node_Id) return Boolean; -- Flag12
9439
9440 function Import_Interface_Present
9441 (N : Node_Id) return Boolean; -- Flag16
9442
9443 function In_Present
9444 (N : Node_Id) return Boolean; -- Flag15
9445
9446 function Includes_Infinities
9447 (N : Node_Id) return Boolean; -- Flag11
9448
9449 function Incomplete_View
9450 (N : Node_Id) return Node_Id; -- Node2
9451
9452 function Inherited_Discriminant
9453 (N : Node_Id) return Boolean; -- Flag13
9454
9455 function Instance_Spec
9456 (N : Node_Id) return Node_Id; -- Node5
9457
9458 function Intval
9459 (N : Node_Id) return Uint; -- Uint3
9460
9461 function Is_Abort_Block
9462 (N : Node_Id) return Boolean; -- Flag4
9463
9464 function Is_Accessibility_Actual
9465 (N : Node_Id) return Boolean; -- Flag13
9466
9467 function Is_Analyzed_Pragma
9468 (N : Node_Id) return Boolean; -- Flag5
9469
9470 function Is_Asynchronous_Call_Block
9471 (N : Node_Id) return Boolean; -- Flag7
9472
9473 function Is_Boolean_Aspect
9474 (N : Node_Id) return Boolean; -- Flag16
9475
9476 function Is_Checked
9477 (N : Node_Id) return Boolean; -- Flag11
9478
9479 function Is_Checked_Ghost_Pragma
9480 (N : Node_Id) return Boolean; -- Flag3
9481
9482 function Is_Component_Left_Opnd
9483 (N : Node_Id) return Boolean; -- Flag13
9484
9485 function Is_Component_Right_Opnd
9486 (N : Node_Id) return Boolean; -- Flag14
9487
9488 function Is_Controlling_Actual
9489 (N : Node_Id) return Boolean; -- Flag16
9490
9491 function Is_Delayed_Aspect
9492 (N : Node_Id) return Boolean; -- Flag14
9493
9494 function Is_Disabled
9495 (N : Node_Id) return Boolean; -- Flag15
9496
9497 function Is_Dynamic_Coextension
9498 (N : Node_Id) return Boolean; -- Flag18
9499
9500 function Is_Elsif
9501 (N : Node_Id) return Boolean; -- Flag13
9502
9503 function Is_Entry_Barrier_Function
9504 (N : Node_Id) return Boolean; -- Flag8
9505
9506 function Is_Expanded_Build_In_Place_Call
9507 (N : Node_Id) return Boolean; -- Flag11
9508
9509 function Is_Expanded_Contract
9510 (N : Node_Id) return Boolean; -- Flag1
9511
9512 function Is_Finalization_Wrapper
9513 (N : Node_Id) return Boolean; -- Flag9
9514
9515 function Is_Folded_In_Parser
9516 (N : Node_Id) return Boolean; -- Flag4
9517
9518 function Is_Generic_Contract_Pragma
9519 (N : Node_Id) return Boolean; -- Flag2
9520
9521 function Is_Ignored
9522 (N : Node_Id) return Boolean; -- Flag9
9523
9524 function Is_Ignored_Ghost_Pragma
9525 (N : Node_Id) return Boolean; -- Flag8
9526
9527 function Is_In_Discriminant_Check
9528 (N : Node_Id) return Boolean; -- Flag11
9529
9530 function Is_Inherited_Pragma
9531 (N : Node_Id) return Boolean; -- Flag4
9532
9533 function Is_Machine_Number
9534 (N : Node_Id) return Boolean; -- Flag11
9535
9536 function Is_Null_Loop
9537 (N : Node_Id) return Boolean; -- Flag16
9538
9539 function Is_Overloaded
9540 (N : Node_Id) return Boolean; -- Flag5
9541
9542 function Is_Power_Of_2_For_Shift
9543 (N : Node_Id) return Boolean; -- Flag13
9544
9545 function Is_Prefixed_Call
9546 (N : Node_Id) return Boolean; -- Flag17
9547
9548 function Is_Protected_Subprogram_Body
9549 (N : Node_Id) return Boolean; -- Flag7
9550
9551 function Is_Qualified_Universal_Literal
9552 (N : Node_Id) return Boolean; -- Flag4
9553
9554 function Is_Static_Coextension
9555 (N : Node_Id) return Boolean; -- Flag14
9556
9557 function Is_Static_Expression
9558 (N : Node_Id) return Boolean; -- Flag6
9559
9560 function Is_Subprogram_Descriptor
9561 (N : Node_Id) return Boolean; -- Flag16
9562
9563 function Is_Task_Allocation_Block
9564 (N : Node_Id) return Boolean; -- Flag6
9565
9566 function Is_Task_Body_Procedure
9567 (N : Node_Id) return Boolean; -- Flag1
9568
9569 function Is_Task_Master
9570 (N : Node_Id) return Boolean; -- Flag5
9571
9572 function Iteration_Scheme
9573 (N : Node_Id) return Node_Id; -- Node2
9574
9575 function Iterator_Specification
9576 (N : Node_Id) return Node_Id; -- Node2
9577
9578 function Itype
9579 (N : Node_Id) return Entity_Id; -- Node1
9580
9581 function Kill_Range_Check
9582 (N : Node_Id) return Boolean; -- Flag11
9583
9584 function Label_Construct
9585 (N : Node_Id) return Node_Id; -- Node2
9586
9587 function Left_Opnd
9588 (N : Node_Id) return Node_Id; -- Node2
9589
9590 function Last_Bit
9591 (N : Node_Id) return Node_Id; -- Node4
9592
9593 function Last_Name
9594 (N : Node_Id) return Boolean; -- Flag6
9595
9596 function Library_Unit
9597 (N : Node_Id) return Node_Id; -- Node4
9598
9599 function Limited_View_Installed
9600 (N : Node_Id) return Boolean; -- Flag18
9601
9602 function Limited_Present
9603 (N : Node_Id) return Boolean; -- Flag17
9604
9605 function Literals
9606 (N : Node_Id) return List_Id; -- List1
9607
9608 function Local_Raise_Not_OK
9609 (N : Node_Id) return Boolean; -- Flag7
9610
9611 function Local_Raise_Statements
9612 (N : Node_Id) return Elist_Id; -- Elist1
9613
9614 function Loop_Actions
9615 (N : Node_Id) return List_Id; -- List2
9616
9617 function Loop_Parameter_Specification
9618 (N : Node_Id) return Node_Id; -- Node4
9619
9620 function Low_Bound
9621 (N : Node_Id) return Node_Id; -- Node1
9622
9623 function Mod_Clause
9624 (N : Node_Id) return Node_Id; -- Node2
9625
9626 function More_Ids
9627 (N : Node_Id) return Boolean; -- Flag5
9628
9629 function Must_Be_Byte_Aligned
9630 (N : Node_Id) return Boolean; -- Flag14
9631
9632 function Must_Not_Freeze
9633 (N : Node_Id) return Boolean; -- Flag8
9634
9635 function Must_Not_Override
9636 (N : Node_Id) return Boolean; -- Flag15
9637
9638 function Must_Override
9639 (N : Node_Id) return Boolean; -- Flag14
9640
9641 function Name
9642 (N : Node_Id) return Node_Id; -- Node2
9643
9644 function Names
9645 (N : Node_Id) return List_Id; -- List2
9646
9647 function Next_Entity
9648 (N : Node_Id) return Node_Id; -- Node2
9649
9650 function Next_Exit_Statement
9651 (N : Node_Id) return Node_Id; -- Node3
9652
9653 function Next_Implicit_With
9654 (N : Node_Id) return Node_Id; -- Node3
9655
9656 function Next_Named_Actual
9657 (N : Node_Id) return Node_Id; -- Node4
9658
9659 function Next_Pragma
9660 (N : Node_Id) return Node_Id; -- Node1
9661
9662 function Next_Rep_Item
9663 (N : Node_Id) return Node_Id; -- Node5
9664
9665 function Next_Use_Clause
9666 (N : Node_Id) return Node_Id; -- Node3
9667
9668 function No_Ctrl_Actions
9669 (N : Node_Id) return Boolean; -- Flag7
9670
9671 function No_Elaboration_Check
9672 (N : Node_Id) return Boolean; -- Flag14
9673
9674 function No_Entities_Ref_In_Spec
9675 (N : Node_Id) return Boolean; -- Flag8
9676
9677 function No_Initialization
9678 (N : Node_Id) return Boolean; -- Flag13
9679
9680 function No_Minimize_Eliminate
9681 (N : Node_Id) return Boolean; -- Flag17
9682
9683 function No_Side_Effect_Removal
9684 (N : Node_Id) return Boolean; -- Flag1
9685
9686 function No_Truncation
9687 (N : Node_Id) return Boolean; -- Flag17
9688
9689 function Non_Aliased_Prefix
9690 (N : Node_Id) return Boolean; -- Flag18
9691
9692 function Null_Present
9693 (N : Node_Id) return Boolean; -- Flag13
9694
9695 function Null_Excluding_Subtype
9696 (N : Node_Id) return Boolean; -- Flag16
9697
9698 function Null_Exclusion_Present
9699 (N : Node_Id) return Boolean; -- Flag11
9700
9701 function Null_Exclusion_In_Return_Present
9702 (N : Node_Id) return Boolean; -- Flag14
9703
9704 function Null_Record_Present
9705 (N : Node_Id) return Boolean; -- Flag17
9706
9707 function Object_Definition
9708 (N : Node_Id) return Node_Id; -- Node4
9709
9710 function Of_Present
9711 (N : Node_Id) return Boolean; -- Flag16
9712
9713 function Original_Discriminant
9714 (N : Node_Id) return Node_Id; -- Node2
9715
9716 function Original_Entity
9717 (N : Node_Id) return Entity_Id; -- Node2
9718
9719 function Others_Discrete_Choices
9720 (N : Node_Id) return List_Id; -- List1
9721
9722 function Out_Present
9723 (N : Node_Id) return Boolean; -- Flag17
9724
9725 function Parameter_Associations
9726 (N : Node_Id) return List_Id; -- List3
9727
9728 function Parameter_Specifications
9729 (N : Node_Id) return List_Id; -- List3
9730
9731 function Parameter_Type
9732 (N : Node_Id) return Node_Id; -- Node2
9733
9734 function Parent_Spec
9735 (N : Node_Id) return Node_Id; -- Node4
9736
9737 function Position
9738 (N : Node_Id) return Node_Id; -- Node2
9739
9740 function Pragma_Argument_Associations
9741 (N : Node_Id) return List_Id; -- List2
9742
9743 function Pragma_Identifier
9744 (N : Node_Id) return Node_Id; -- Node4
9745
9746 function Pragmas_After
9747 (N : Node_Id) return List_Id; -- List5
9748
9749 function Pragmas_Before
9750 (N : Node_Id) return List_Id; -- List4
9751
9752 function Pre_Post_Conditions
9753 (N : Node_Id) return Node_Id; -- Node1
9754
9755 function Prefix
9756 (N : Node_Id) return Node_Id; -- Node3
9757
9758 function Premature_Use
9759 (N : Node_Id) return Node_Id; -- Node5
9760
9761 function Present_Expr
9762 (N : Node_Id) return Uint; -- Uint3
9763
9764 function Prev_Ids
9765 (N : Node_Id) return Boolean; -- Flag6
9766
9767 function Print_In_Hex
9768 (N : Node_Id) return Boolean; -- Flag13
9769
9770 function Private_Declarations
9771 (N : Node_Id) return List_Id; -- List3
9772
9773 function Private_Present
9774 (N : Node_Id) return Boolean; -- Flag15
9775
9776 function Procedure_To_Call
9777 (N : Node_Id) return Node_Id; -- Node2
9778
9779 function Proper_Body
9780 (N : Node_Id) return Node_Id; -- Node1
9781
9782 function Protected_Definition
9783 (N : Node_Id) return Node_Id; -- Node3
9784
9785 function Protected_Present
9786 (N : Node_Id) return Boolean; -- Flag6
9787
9788 function Raises_Constraint_Error
9789 (N : Node_Id) return Boolean; -- Flag7
9790
9791 function Range_Constraint
9792 (N : Node_Id) return Node_Id; -- Node4
9793
9794 function Range_Expression
9795 (N : Node_Id) return Node_Id; -- Node4
9796
9797 function Real_Range_Specification
9798 (N : Node_Id) return Node_Id; -- Node4
9799
9800 function Realval
9801 (N : Node_Id) return Ureal; -- Ureal3
9802
9803 function Reason
9804 (N : Node_Id) return Uint; -- Uint3
9805
9806 function Record_Extension_Part
9807 (N : Node_Id) return Node_Id; -- Node3
9808
9809 function Redundant_Use
9810 (N : Node_Id) return Boolean; -- Flag13
9811
9812 function Renaming_Exception
9813 (N : Node_Id) return Node_Id; -- Node2
9814
9815 function Result_Definition
9816 (N : Node_Id) return Node_Id; -- Node4
9817
9818 function Return_Object_Declarations
9819 (N : Node_Id) return List_Id; -- List3
9820
9821 function Return_Statement_Entity
9822 (N : Node_Id) return Node_Id; -- Node5
9823
9824 function Reverse_Present
9825 (N : Node_Id) return Boolean; -- Flag15
9826
9827 function Right_Opnd
9828 (N : Node_Id) return Node_Id; -- Node3
9829
9830 function Rounded_Result
9831 (N : Node_Id) return Boolean; -- Flag18
9832
9833 function SCIL_Controlling_Tag
9834 (N : Node_Id) return Node_Id; -- Node5
9835
9836 function SCIL_Entity
9837 (N : Node_Id) return Node_Id; -- Node4
9838
9839 function SCIL_Tag_Value
9840 (N : Node_Id) return Node_Id; -- Node5
9841
9842 function SCIL_Target_Prim
9843 (N : Node_Id) return Node_Id; -- Node2
9844
9845 function Scope
9846 (N : Node_Id) return Node_Id; -- Node3
9847
9848 function Select_Alternatives
9849 (N : Node_Id) return List_Id; -- List1
9850
9851 function Selector_Name
9852 (N : Node_Id) return Node_Id; -- Node2
9853
9854 function Selector_Names
9855 (N : Node_Id) return List_Id; -- List1
9856
9857 function Shift_Count_OK
9858 (N : Node_Id) return Boolean; -- Flag4
9859
9860 function Source_Type
9861 (N : Node_Id) return Entity_Id; -- Node1
9862
9863 function Specification
9864 (N : Node_Id) return Node_Id; -- Node1
9865
9866 function Split_PPC
9867 (N : Node_Id) return Boolean; -- Flag17
9868
9869 function Statements
9870 (N : Node_Id) return List_Id; -- List3
9871
9872 function Storage_Pool
9873 (N : Node_Id) return Node_Id; -- Node1
9874
9875 function Subpool_Handle_Name
9876 (N : Node_Id) return Node_Id; -- Node4
9877
9878 function Strval
9879 (N : Node_Id) return String_Id; -- Str3
9880
9881 function Subtype_Indication
9882 (N : Node_Id) return Node_Id; -- Node5
9883
9884 function Subtype_Mark
9885 (N : Node_Id) return Node_Id; -- Node4
9886
9887 function Subtype_Marks
9888 (N : Node_Id) return List_Id; -- List2
9889
9890 function Suppress_Assignment_Checks
9891 (N : Node_Id) return Boolean; -- Flag18
9892
9893 function Suppress_Loop_Warnings
9894 (N : Node_Id) return Boolean; -- Flag17
9895
9896 function Synchronized_Present
9897 (N : Node_Id) return Boolean; -- Flag7
9898
9899 function Tagged_Present
9900 (N : Node_Id) return Boolean; -- Flag15
9901
9902 function Target_Type
9903 (N : Node_Id) return Entity_Id; -- Node2
9904
9905 function Task_Definition
9906 (N : Node_Id) return Node_Id; -- Node3
9907
9908 function Task_Present
9909 (N : Node_Id) return Boolean; -- Flag5
9910
9911 function Then_Actions
9912 (N : Node_Id) return List_Id; -- List2
9913
9914 function Then_Statements
9915 (N : Node_Id) return List_Id; -- List2
9916
9917 function Treat_Fixed_As_Integer
9918 (N : Node_Id) return Boolean; -- Flag14
9919
9920 function Triggering_Alternative
9921 (N : Node_Id) return Node_Id; -- Node1
9922
9923 function Triggering_Statement
9924 (N : Node_Id) return Node_Id; -- Node1
9925
9926 function TSS_Elist
9927 (N : Node_Id) return Elist_Id; -- Elist3
9928
9929 function Type_Definition
9930 (N : Node_Id) return Node_Id; -- Node3
9931
9932 function Uneval_Old_Accept
9933 (N : Node_Id) return Boolean; -- Flag7
9934
9935 function Uneval_Old_Warn
9936 (N : Node_Id) return Boolean; -- Flag18
9937
9938 function Unit
9939 (N : Node_Id) return Node_Id; -- Node2
9940
9941 function Unknown_Discriminants_Present
9942 (N : Node_Id) return Boolean; -- Flag13
9943
9944 function Unreferenced_In_Spec
9945 (N : Node_Id) return Boolean; -- Flag7
9946
9947 function Variant_Part
9948 (N : Node_Id) return Node_Id; -- Node4
9949
9950 function Variants
9951 (N : Node_Id) return List_Id; -- List1
9952
9953 function Visible_Declarations
9954 (N : Node_Id) return List_Id; -- List2
9955
9956 function Uninitialized_Variable
9957 (N : Node_Id) return Node_Id; -- Node3
9958
9959 function Used_Operations
9960 (N : Node_Id) return Elist_Id; -- Elist5
9961
9962 function Was_Expression_Function
9963 (N : Node_Id) return Boolean; -- Flag18
9964
9965 function Was_Originally_Stub
9966 (N : Node_Id) return Boolean; -- Flag13
9967
9968 function Withed_Body
9969 (N : Node_Id) return Node_Id; -- Node1
9970
9971 -- End functions (note used by xsinfo utility program to end processing)
9972
9973 ----------------------------
9974 -- Node Update Procedures --
9975 ----------------------------
9976
9977 -- These are the corresponding node update routines, which again provide
9978 -- a high level logical access with type checking. In addition to setting
9979 -- the indicated field of the node N to the given Val, in the case of
9980 -- tree pointers (List1-4), the parent pointer of the Val node is set to
9981 -- point back to node N. This automates the setting of the parent pointer.
9982
9983 procedure Set_ABE_Is_Certain
9984 (N : Node_Id; Val : Boolean := True); -- Flag18
9985
9986 procedure Set_Abort_Present
9987 (N : Node_Id; Val : Boolean := True); -- Flag15
9988
9989 procedure Set_Abortable_Part
9990 (N : Node_Id; Val : Node_Id); -- Node2
9991
9992 procedure Set_Abstract_Present
9993 (N : Node_Id; Val : Boolean := True); -- Flag4
9994
9995 procedure Set_Accept_Handler_Records
9996 (N : Node_Id; Val : List_Id); -- List5
9997
9998 procedure Set_Accept_Statement
9999 (N : Node_Id; Val : Node_Id); -- Node2
10000
10001 procedure Set_Access_Definition
10002 (N : Node_Id; Val : Node_Id); -- Node3
10003
10004 procedure Set_Access_To_Subprogram_Definition
10005 (N : Node_Id; Val : Node_Id); -- Node3
10006
10007 procedure Set_Access_Types_To_Process
10008 (N : Node_Id; Val : Elist_Id); -- Elist2
10009
10010 procedure Set_Actions
10011 (N : Node_Id; Val : List_Id); -- List1
10012
10013 procedure Set_Activation_Chain_Entity
10014 (N : Node_Id; Val : Node_Id); -- Node3
10015
10016 procedure Set_Acts_As_Spec
10017 (N : Node_Id; Val : Boolean := True); -- Flag4
10018
10019 procedure Set_Actual_Designated_Subtype
10020 (N : Node_Id; Val : Node_Id); -- Node4
10021
10022 procedure Set_Address_Warning_Posted
10023 (N : Node_Id; Val : Boolean := True); -- Flag18
10024
10025 procedure Set_Aggregate_Bounds
10026 (N : Node_Id; Val : Node_Id); -- Node3
10027
10028 procedure Set_Aliased_Present
10029 (N : Node_Id; Val : Boolean := True); -- Flag4
10030
10031 procedure Set_All_Others
10032 (N : Node_Id; Val : Boolean := True); -- Flag11
10033
10034 procedure Set_All_Present
10035 (N : Node_Id; Val : Boolean := True); -- Flag15
10036
10037 procedure Set_Alternatives
10038 (N : Node_Id; Val : List_Id); -- List4
10039
10040 procedure Set_Ancestor_Part
10041 (N : Node_Id; Val : Node_Id); -- Node3
10042
10043 procedure Set_Atomic_Sync_Required
10044 (N : Node_Id; Val : Boolean := True); -- Flag14
10045
10046 procedure Set_Array_Aggregate
10047 (N : Node_Id; Val : Node_Id); -- Node3
10048
10049 procedure Set_Aspect_Rep_Item
10050 (N : Node_Id; Val : Node_Id); -- Node2
10051
10052 procedure Set_Assignment_OK
10053 (N : Node_Id; Val : Boolean := True); -- Flag15
10054
10055 procedure Set_Associated_Node
10056 (N : Node_Id; Val : Node_Id); -- Node4
10057
10058 procedure Set_Attribute_Name
10059 (N : Node_Id; Val : Name_Id); -- Name2
10060
10061 procedure Set_At_End_Proc
10062 (N : Node_Id; Val : Node_Id); -- Node1
10063
10064 procedure Set_Aux_Decls_Node
10065 (N : Node_Id; Val : Node_Id); -- Node5
10066
10067 procedure Set_Backwards_OK
10068 (N : Node_Id; Val : Boolean := True); -- Flag6
10069
10070 procedure Set_Bad_Is_Detected
10071 (N : Node_Id; Val : Boolean := True); -- Flag15
10072
10073 procedure Set_Body_Required
10074 (N : Node_Id; Val : Boolean := True); -- Flag13
10075
10076 procedure Set_Body_To_Inline
10077 (N : Node_Id; Val : Node_Id); -- Node3
10078
10079 procedure Set_Box_Present
10080 (N : Node_Id; Val : Boolean := True); -- Flag15
10081
10082 procedure Set_By_Ref
10083 (N : Node_Id; Val : Boolean := True); -- Flag5
10084
10085 procedure Set_Char_Literal_Value
10086 (N : Node_Id; Val : Uint); -- Uint2
10087
10088 procedure Set_Chars
10089 (N : Node_Id; Val : Name_Id); -- Name1
10090
10091 procedure Set_Check_Address_Alignment
10092 (N : Node_Id; Val : Boolean := True); -- Flag11
10093
10094 procedure Set_Choice_Parameter
10095 (N : Node_Id; Val : Node_Id); -- Node2
10096
10097 procedure Set_Choices
10098 (N : Node_Id; Val : List_Id); -- List1
10099
10100 procedure Set_Class_Present
10101 (N : Node_Id; Val : Boolean := True); -- Flag6
10102
10103 procedure Set_Classifications
10104 (N : Node_Id; Val : Node_Id); -- Node3
10105
10106 procedure Set_Cleanup_Actions
10107 (N : Node_Id; Val : List_Id); -- List5
10108
10109 procedure Set_Comes_From_Extended_Return_Statement
10110 (N : Node_Id; Val : Boolean := True); -- Flag18
10111
10112 procedure Set_Compile_Time_Known_Aggregate
10113 (N : Node_Id; Val : Boolean := True); -- Flag18
10114
10115 procedure Set_Component_Associations
10116 (N : Node_Id; Val : List_Id); -- List2
10117
10118 procedure Set_Component_Clauses
10119 (N : Node_Id; Val : List_Id); -- List3
10120
10121 procedure Set_Component_Definition
10122 (N : Node_Id; Val : Node_Id); -- Node4
10123
10124 procedure Set_Component_Items
10125 (N : Node_Id; Val : List_Id); -- List3
10126
10127 procedure Set_Component_List
10128 (N : Node_Id; Val : Node_Id); -- Node1
10129
10130 procedure Set_Component_Name
10131 (N : Node_Id; Val : Node_Id); -- Node1
10132
10133 procedure Set_Componentwise_Assignment
10134 (N : Node_Id; Val : Boolean := True); -- Flag14
10135
10136 procedure Set_Condition
10137 (N : Node_Id; Val : Node_Id); -- Node1
10138
10139 procedure Set_Condition_Actions
10140 (N : Node_Id; Val : List_Id); -- List3
10141
10142 procedure Set_Config_Pragmas
10143 (N : Node_Id; Val : List_Id); -- List4
10144
10145 procedure Set_Constant_Present
10146 (N : Node_Id; Val : Boolean := True); -- Flag17
10147
10148 procedure Set_Constraint
10149 (N : Node_Id; Val : Node_Id); -- Node3
10150
10151 procedure Set_Constraints
10152 (N : Node_Id; Val : List_Id); -- List1
10153
10154 procedure Set_Context_Installed
10155 (N : Node_Id; Val : Boolean := True); -- Flag13
10156
10157 procedure Set_Context_Items
10158 (N : Node_Id; Val : List_Id); -- List1
10159
10160 procedure Set_Context_Pending
10161 (N : Node_Id; Val : Boolean := True); -- Flag16
10162
10163 procedure Set_Contract_Test_Cases
10164 (N : Node_Id; Val : Node_Id); -- Node2
10165
10166 procedure Set_Controlling_Argument
10167 (N : Node_Id; Val : Node_Id); -- Node1
10168
10169 procedure Set_Conversion_OK
10170 (N : Node_Id; Val : Boolean := True); -- Flag14
10171
10172 procedure Set_Convert_To_Return_False
10173 (N : Node_Id; Val : Boolean := True); -- Flag13
10174
10175 procedure Set_Corresponding_Aspect
10176 (N : Node_Id; Val : Node_Id); -- Node3
10177
10178 procedure Set_Corresponding_Body
10179 (N : Node_Id; Val : Node_Id); -- Node5
10180
10181 procedure Set_Corresponding_Formal_Spec
10182 (N : Node_Id; Val : Node_Id); -- Node3
10183
10184 procedure Set_Corresponding_Generic_Association
10185 (N : Node_Id; Val : Node_Id); -- Node5
10186
10187 procedure Set_Corresponding_Integer_Value
10188 (N : Node_Id; Val : Uint); -- Uint4
10189
10190 procedure Set_Corresponding_Spec
10191 (N : Node_Id; Val : Entity_Id); -- Node5
10192
10193 procedure Set_Corresponding_Spec_Of_Stub
10194 (N : Node_Id; Val : Node_Id); -- Node2
10195
10196 procedure Set_Corresponding_Stub
10197 (N : Node_Id; Val : Node_Id); -- Node3
10198
10199 procedure Set_Dcheck_Function
10200 (N : Node_Id; Val : Entity_Id); -- Node5
10201
10202 procedure Set_Declarations
10203 (N : Node_Id; Val : List_Id); -- List2
10204
10205 procedure Set_Default_Expression
10206 (N : Node_Id; Val : Node_Id); -- Node5
10207
10208 procedure Set_Default_Storage_Pool
10209 (N : Node_Id; Val : Node_Id); -- Node3
10210
10211 procedure Set_Default_Name
10212 (N : Node_Id; Val : Node_Id); -- Node2
10213
10214 procedure Set_Defining_Identifier
10215 (N : Node_Id; Val : Entity_Id); -- Node1
10216
10217 procedure Set_Defining_Unit_Name
10218 (N : Node_Id; Val : Node_Id); -- Node1
10219
10220 procedure Set_Delay_Alternative
10221 (N : Node_Id; Val : Node_Id); -- Node4
10222
10223 procedure Set_Delay_Statement
10224 (N : Node_Id; Val : Node_Id); -- Node2
10225
10226 procedure Set_Delta_Expression
10227 (N : Node_Id; Val : Node_Id); -- Node3
10228
10229 procedure Set_Digits_Expression
10230 (N : Node_Id; Val : Node_Id); -- Node2
10231
10232 procedure Set_Discr_Check_Funcs_Built
10233 (N : Node_Id; Val : Boolean := True); -- Flag11
10234
10235 procedure Set_Discrete_Choices
10236 (N : Node_Id; Val : List_Id); -- List4
10237
10238 procedure Set_Discrete_Range
10239 (N : Node_Id; Val : Node_Id); -- Node4
10240
10241 procedure Set_Discrete_Subtype_Definition
10242 (N : Node_Id; Val : Node_Id); -- Node4
10243
10244 procedure Set_Discrete_Subtype_Definitions
10245 (N : Node_Id; Val : List_Id); -- List2
10246
10247 procedure Set_Discriminant_Specifications
10248 (N : Node_Id; Val : List_Id); -- List4
10249
10250 procedure Set_Discriminant_Type
10251 (N : Node_Id; Val : Node_Id); -- Node5
10252
10253 procedure Set_Do_Accessibility_Check
10254 (N : Node_Id; Val : Boolean := True); -- Flag13
10255
10256 procedure Set_Do_Discriminant_Check
10257 (N : Node_Id; Val : Boolean := True); -- Flag1
10258
10259 procedure Set_Do_Division_Check
10260 (N : Node_Id; Val : Boolean := True); -- Flag13
10261
10262 procedure Set_Do_Length_Check
10263 (N : Node_Id; Val : Boolean := True); -- Flag4
10264
10265 procedure Set_Do_Overflow_Check
10266 (N : Node_Id; Val : Boolean := True); -- Flag17
10267
10268 procedure Set_Do_Range_Check
10269 (N : Node_Id; Val : Boolean := True); -- Flag9
10270
10271 procedure Set_Do_Storage_Check
10272 (N : Node_Id; Val : Boolean := True); -- Flag17
10273
10274 procedure Set_Do_Tag_Check
10275 (N : Node_Id; Val : Boolean := True); -- Flag13
10276
10277 procedure Set_Elaborate_All_Desirable
10278 (N : Node_Id; Val : Boolean := True); -- Flag9
10279
10280 procedure Set_Elaborate_All_Present
10281 (N : Node_Id; Val : Boolean := True); -- Flag14
10282
10283 procedure Set_Elaborate_Desirable
10284 (N : Node_Id; Val : Boolean := True); -- Flag11
10285
10286 procedure Set_Elaborate_Present
10287 (N : Node_Id; Val : Boolean := True); -- Flag4
10288
10289 procedure Set_Else_Actions
10290 (N : Node_Id; Val : List_Id); -- List3
10291
10292 procedure Set_Else_Statements
10293 (N : Node_Id; Val : List_Id); -- List4
10294
10295 procedure Set_Elsif_Parts
10296 (N : Node_Id; Val : List_Id); -- List3
10297
10298 procedure Set_Enclosing_Variant
10299 (N : Node_Id; Val : Node_Id); -- Node2
10300
10301 procedure Set_End_Label
10302 (N : Node_Id; Val : Node_Id); -- Node4
10303
10304 procedure Set_End_Span
10305 (N : Node_Id; Val : Uint); -- Uint5
10306
10307 procedure Set_Entity
10308 (N : Node_Id; Val : Node_Id); -- Node4
10309
10310 procedure Set_Entry_Body_Formal_Part
10311 (N : Node_Id; Val : Node_Id); -- Node5
10312
10313 procedure Set_Entry_Call_Alternative
10314 (N : Node_Id; Val : Node_Id); -- Node1
10315
10316 procedure Set_Entry_Call_Statement
10317 (N : Node_Id; Val : Node_Id); -- Node1
10318
10319 procedure Set_Entry_Direct_Name
10320 (N : Node_Id; Val : Node_Id); -- Node1
10321
10322 procedure Set_Entry_Index
10323 (N : Node_Id; Val : Node_Id); -- Node5
10324
10325 procedure Set_Entry_Index_Specification
10326 (N : Node_Id; Val : Node_Id); -- Node4
10327
10328 procedure Set_Etype
10329 (N : Node_Id; Val : Node_Id); -- Node5
10330
10331 procedure Set_Exception_Choices
10332 (N : Node_Id; Val : List_Id); -- List4
10333
10334 procedure Set_Exception_Handlers
10335 (N : Node_Id; Val : List_Id); -- List5
10336
10337 procedure Set_Exception_Junk
10338 (N : Node_Id; Val : Boolean := True); -- Flag8
10339
10340 procedure Set_Exception_Label
10341 (N : Node_Id; Val : Node_Id); -- Node5
10342
10343 procedure Set_Expansion_Delayed
10344 (N : Node_Id; Val : Boolean := True); -- Flag11
10345
10346 procedure Set_Explicit_Actual_Parameter
10347 (N : Node_Id; Val : Node_Id); -- Node3
10348
10349 procedure Set_Explicit_Generic_Actual_Parameter
10350 (N : Node_Id; Val : Node_Id); -- Node1
10351
10352 procedure Set_Expression
10353 (N : Node_Id; Val : Node_Id); -- Node3
10354
10355 procedure Set_Expression_Copy
10356 (N : Node_Id; Val : Node_Id); -- Node2
10357
10358 procedure Set_Expressions
10359 (N : Node_Id; Val : List_Id); -- List1
10360
10361 procedure Set_First_Bit
10362 (N : Node_Id; Val : Node_Id); -- Node3
10363
10364 procedure Set_First_Inlined_Subprogram
10365 (N : Node_Id; Val : Entity_Id); -- Node3
10366
10367 procedure Set_First_Name
10368 (N : Node_Id; Val : Boolean := True); -- Flag5
10369
10370 procedure Set_First_Named_Actual
10371 (N : Node_Id; Val : Node_Id); -- Node4
10372
10373 procedure Set_First_Real_Statement
10374 (N : Node_Id; Val : Node_Id); -- Node2
10375
10376 procedure Set_First_Subtype_Link
10377 (N : Node_Id; Val : Entity_Id); -- Node5
10378
10379 procedure Set_Float_Truncate
10380 (N : Node_Id; Val : Boolean := True); -- Flag11
10381
10382 procedure Set_Formal_Type_Definition
10383 (N : Node_Id; Val : Node_Id); -- Node3
10384
10385 procedure Set_Forwards_OK
10386 (N : Node_Id; Val : Boolean := True); -- Flag5
10387
10388 procedure Set_From_Aspect_Specification
10389 (N : Node_Id; Val : Boolean := True); -- Flag13
10390
10391 procedure Set_From_At_End
10392 (N : Node_Id; Val : Boolean := True); -- Flag4
10393
10394 procedure Set_From_At_Mod
10395 (N : Node_Id; Val : Boolean := True); -- Flag4
10396
10397 procedure Set_From_Conditional_Expression
10398 (N : Node_Id; Val : Boolean := True); -- Flag1
10399
10400 procedure Set_From_Default
10401 (N : Node_Id; Val : Boolean := True); -- Flag6
10402
10403 procedure Set_Generalized_Indexing
10404 (N : Node_Id; Val : Node_Id); -- Node4
10405
10406 procedure Set_Generic_Associations
10407 (N : Node_Id; Val : List_Id); -- List3
10408
10409 procedure Set_Generic_Formal_Declarations
10410 (N : Node_Id; Val : List_Id); -- List2
10411
10412 procedure Set_Generic_Parent
10413 (N : Node_Id; Val : Node_Id); -- Node5
10414
10415 procedure Set_Generic_Parent_Type
10416 (N : Node_Id; Val : Node_Id); -- Node4
10417
10418 procedure Set_Handled_Statement_Sequence
10419 (N : Node_Id; Val : Node_Id); -- Node4
10420
10421 procedure Set_Handler_List_Entry
10422 (N : Node_Id; Val : Node_Id); -- Node2
10423
10424 procedure Set_Has_Created_Identifier
10425 (N : Node_Id; Val : Boolean := True); -- Flag15
10426
10427 procedure Set_Has_Dereference_Action
10428 (N : Node_Id; Val : Boolean := True); -- Flag13
10429
10430 procedure Set_Has_Dynamic_Length_Check
10431 (N : Node_Id; Val : Boolean := True); -- Flag10
10432
10433 procedure Set_Has_Dynamic_Range_Check
10434 (N : Node_Id; Val : Boolean := True); -- Flag12
10435
10436 procedure Set_Has_Init_Expression
10437 (N : Node_Id; Val : Boolean := True); -- Flag14
10438
10439 procedure Set_Has_Local_Raise
10440 (N : Node_Id; Val : Boolean := True); -- Flag8
10441
10442 procedure Set_Has_No_Elaboration_Code
10443 (N : Node_Id; Val : Boolean := True); -- Flag17
10444
10445 procedure Set_Has_Pragma_Suppress_All
10446 (N : Node_Id; Val : Boolean := True); -- Flag14
10447
10448 procedure Set_Has_Private_View
10449 (N : Node_Id; Val : Boolean := True); -- Flag11
10450
10451 procedure Set_Has_Relative_Deadline_Pragma
10452 (N : Node_Id; Val : Boolean := True); -- Flag9
10453
10454 procedure Set_Has_Self_Reference
10455 (N : Node_Id; Val : Boolean := True); -- Flag13
10456
10457 procedure Set_Has_SP_Choice
10458 (N : Node_Id; Val : Boolean := True); -- Flag15
10459
10460 procedure Set_Has_Storage_Size_Pragma
10461 (N : Node_Id; Val : Boolean := True); -- Flag5
10462
10463 procedure Set_Has_Target_Names
10464 (N : Node_Id; Val : Boolean := True); -- Flag8
10465
10466 procedure Set_Has_Wide_Character
10467 (N : Node_Id; Val : Boolean := True); -- Flag11
10468
10469 procedure Set_Has_Wide_Wide_Character
10470 (N : Node_Id; Val : Boolean := True); -- Flag13
10471
10472 procedure Set_Header_Size_Added
10473 (N : Node_Id; Val : Boolean := True); -- Flag11
10474
10475 procedure Set_Hidden_By_Use_Clause
10476 (N : Node_Id; Val : Elist_Id); -- Elist4
10477
10478 procedure Set_High_Bound
10479 (N : Node_Id; Val : Node_Id); -- Node2
10480
10481 procedure Set_Identifier
10482 (N : Node_Id; Val : Node_Id); -- Node1
10483
10484 procedure Set_Interface_List
10485 (N : Node_Id; Val : List_Id); -- List2
10486
10487 procedure Set_Interface_Present
10488 (N : Node_Id; Val : Boolean := True); -- Flag16
10489
10490 procedure Set_Implicit_With
10491 (N : Node_Id; Val : Boolean := True); -- Flag16
10492
10493 procedure Set_Implicit_With_From_Instantiation
10494 (N : Node_Id; Val : Boolean := True); -- Flag12
10495
10496 procedure Set_Import_Interface_Present
10497 (N : Node_Id; Val : Boolean := True); -- Flag16
10498
10499 procedure Set_In_Present
10500 (N : Node_Id; Val : Boolean := True); -- Flag15
10501
10502 procedure Set_Includes_Infinities
10503 (N : Node_Id; Val : Boolean := True); -- Flag11
10504
10505 procedure Set_Incomplete_View
10506 (N : Node_Id; Val : Node_Id); -- Node2
10507
10508 procedure Set_Inherited_Discriminant
10509 (N : Node_Id; Val : Boolean := True); -- Flag13
10510
10511 procedure Set_Instance_Spec
10512 (N : Node_Id; Val : Node_Id); -- Node5
10513
10514 procedure Set_Intval
10515 (N : Node_Id; Val : Uint); -- Uint3
10516
10517 procedure Set_Is_Abort_Block
10518 (N : Node_Id; Val : Boolean := True); -- Flag4
10519
10520 procedure Set_Is_Accessibility_Actual
10521 (N : Node_Id; Val : Boolean := True); -- Flag13
10522
10523 procedure Set_Is_Analyzed_Pragma
10524 (N : Node_Id; Val : Boolean := True); -- Flag5
10525
10526 procedure Set_Is_Asynchronous_Call_Block
10527 (N : Node_Id; Val : Boolean := True); -- Flag7
10528
10529 procedure Set_Is_Boolean_Aspect
10530 (N : Node_Id; Val : Boolean := True); -- Flag16
10531
10532 procedure Set_Is_Checked
10533 (N : Node_Id; Val : Boolean := True); -- Flag11
10534
10535 procedure Set_Is_Checked_Ghost_Pragma
10536 (N : Node_Id; Val : Boolean := True); -- Flag3
10537
10538 procedure Set_Is_Component_Left_Opnd
10539 (N : Node_Id; Val : Boolean := True); -- Flag13
10540
10541 procedure Set_Is_Component_Right_Opnd
10542 (N : Node_Id; Val : Boolean := True); -- Flag14
10543
10544 procedure Set_Is_Controlling_Actual
10545 (N : Node_Id; Val : Boolean := True); -- Flag16
10546
10547 procedure Set_Is_Delayed_Aspect
10548 (N : Node_Id; Val : Boolean := True); -- Flag14
10549
10550 procedure Set_Is_Disabled
10551 (N : Node_Id; Val : Boolean := True); -- Flag15
10552
10553 procedure Set_Is_Dynamic_Coextension
10554 (N : Node_Id; Val : Boolean := True); -- Flag18
10555
10556 procedure Set_Is_Elsif
10557 (N : Node_Id; Val : Boolean := True); -- Flag13
10558
10559 procedure Set_Is_Entry_Barrier_Function
10560 (N : Node_Id; Val : Boolean := True); -- Flag8
10561
10562 procedure Set_Is_Expanded_Build_In_Place_Call
10563 (N : Node_Id; Val : Boolean := True); -- Flag11
10564
10565 procedure Set_Is_Expanded_Contract
10566 (N : Node_Id; Val : Boolean := True); -- Flag1
10567
10568 procedure Set_Is_Finalization_Wrapper
10569 (N : Node_Id; Val : Boolean := True); -- Flag9
10570
10571 procedure Set_Is_Folded_In_Parser
10572 (N : Node_Id; Val : Boolean := True); -- Flag4
10573
10574 procedure Set_Is_Generic_Contract_Pragma
10575 (N : Node_Id; Val : Boolean := True); -- Flag2
10576
10577 procedure Set_Is_Ignored
10578 (N : Node_Id; Val : Boolean := True); -- Flag9
10579
10580 procedure Set_Is_Ignored_Ghost_Pragma
10581 (N : Node_Id; Val : Boolean := True); -- Flag8
10582
10583 procedure Set_Is_In_Discriminant_Check
10584 (N : Node_Id; Val : Boolean := True); -- Flag11
10585
10586 procedure Set_Is_Inherited_Pragma
10587 (N : Node_Id; Val : Boolean := True); -- Flag4
10588
10589 procedure Set_Is_Machine_Number
10590 (N : Node_Id; Val : Boolean := True); -- Flag11
10591
10592 procedure Set_Is_Null_Loop
10593 (N : Node_Id; Val : Boolean := True); -- Flag16
10594
10595 procedure Set_Is_Overloaded
10596 (N : Node_Id; Val : Boolean := True); -- Flag5
10597
10598 procedure Set_Is_Power_Of_2_For_Shift
10599 (N : Node_Id; Val : Boolean := True); -- Flag13
10600
10601 procedure Set_Is_Prefixed_Call
10602 (N : Node_Id; Val : Boolean := True); -- Flag17
10603
10604 procedure Set_Is_Protected_Subprogram_Body
10605 (N : Node_Id; Val : Boolean := True); -- Flag7
10606
10607 procedure Set_Is_Qualified_Universal_Literal
10608 (N : Node_Id; Val : Boolean := True); -- Flag4
10609
10610 procedure Set_Is_Static_Coextension
10611 (N : Node_Id; Val : Boolean := True); -- Flag14
10612
10613 procedure Set_Is_Static_Expression
10614 (N : Node_Id; Val : Boolean := True); -- Flag6
10615
10616 procedure Set_Is_Subprogram_Descriptor
10617 (N : Node_Id; Val : Boolean := True); -- Flag16
10618
10619 procedure Set_Is_Task_Allocation_Block
10620 (N : Node_Id; Val : Boolean := True); -- Flag6
10621
10622 procedure Set_Is_Task_Body_Procedure
10623 (N : Node_Id; Val : Boolean := True); -- Flag1
10624
10625 procedure Set_Is_Task_Master
10626 (N : Node_Id; Val : Boolean := True); -- Flag5
10627
10628 procedure Set_Iteration_Scheme
10629 (N : Node_Id; Val : Node_Id); -- Node2
10630
10631 procedure Set_Iterator_Specification
10632 (N : Node_Id; Val : Node_Id); -- Node2
10633
10634 procedure Set_Itype
10635 (N : Node_Id; Val : Entity_Id); -- Node1
10636
10637 procedure Set_Kill_Range_Check
10638 (N : Node_Id; Val : Boolean := True); -- Flag11
10639
10640 procedure Set_Last_Bit
10641 (N : Node_Id; Val : Node_Id); -- Node4
10642
10643 procedure Set_Last_Name
10644 (N : Node_Id; Val : Boolean := True); -- Flag6
10645
10646 procedure Set_Library_Unit
10647 (N : Node_Id; Val : Node_Id); -- Node4
10648
10649 procedure Set_Label_Construct
10650 (N : Node_Id; Val : Node_Id); -- Node2
10651
10652 procedure Set_Left_Opnd
10653 (N : Node_Id; Val : Node_Id); -- Node2
10654
10655 procedure Set_Limited_View_Installed
10656 (N : Node_Id; Val : Boolean := True); -- Flag18
10657
10658 procedure Set_Limited_Present
10659 (N : Node_Id; Val : Boolean := True); -- Flag17
10660
10661 procedure Set_Literals
10662 (N : Node_Id; Val : List_Id); -- List1
10663
10664 procedure Set_Local_Raise_Not_OK
10665 (N : Node_Id; Val : Boolean := True); -- Flag7
10666
10667 procedure Set_Local_Raise_Statements
10668 (N : Node_Id; Val : Elist_Id); -- Elist1
10669
10670 procedure Set_Loop_Actions
10671 (N : Node_Id; Val : List_Id); -- List2
10672
10673 procedure Set_Loop_Parameter_Specification
10674 (N : Node_Id; Val : Node_Id); -- Node4
10675
10676 procedure Set_Low_Bound
10677 (N : Node_Id; Val : Node_Id); -- Node1
10678
10679 procedure Set_Mod_Clause
10680 (N : Node_Id; Val : Node_Id); -- Node2
10681
10682 procedure Set_More_Ids
10683 (N : Node_Id; Val : Boolean := True); -- Flag5
10684
10685 procedure Set_Must_Be_Byte_Aligned
10686 (N : Node_Id; Val : Boolean := True); -- Flag14
10687
10688 procedure Set_Must_Not_Freeze
10689 (N : Node_Id; Val : Boolean := True); -- Flag8
10690
10691 procedure Set_Must_Not_Override
10692 (N : Node_Id; Val : Boolean := True); -- Flag15
10693
10694 procedure Set_Must_Override
10695 (N : Node_Id; Val : Boolean := True); -- Flag14
10696
10697 procedure Set_Name
10698 (N : Node_Id; Val : Node_Id); -- Node2
10699
10700 procedure Set_Names
10701 (N : Node_Id; Val : List_Id); -- List2
10702
10703 procedure Set_Next_Entity
10704 (N : Node_Id; Val : Node_Id); -- Node2
10705
10706 procedure Set_Next_Exit_Statement
10707 (N : Node_Id; Val : Node_Id); -- Node3
10708
10709 procedure Set_Next_Implicit_With
10710 (N : Node_Id; Val : Node_Id); -- Node3
10711
10712 procedure Set_Next_Named_Actual
10713 (N : Node_Id; Val : Node_Id); -- Node4
10714
10715 procedure Set_Next_Pragma
10716 (N : Node_Id; Val : Node_Id); -- Node1
10717
10718 procedure Set_Next_Rep_Item
10719 (N : Node_Id; Val : Node_Id); -- Node5
10720
10721 procedure Set_Next_Use_Clause
10722 (N : Node_Id; Val : Node_Id); -- Node3
10723
10724 procedure Set_No_Ctrl_Actions
10725 (N : Node_Id; Val : Boolean := True); -- Flag7
10726
10727 procedure Set_No_Elaboration_Check
10728 (N : Node_Id; Val : Boolean := True); -- Flag14
10729
10730 procedure Set_No_Entities_Ref_In_Spec
10731 (N : Node_Id; Val : Boolean := True); -- Flag8
10732
10733 procedure Set_No_Initialization
10734 (N : Node_Id; Val : Boolean := True); -- Flag13
10735
10736 procedure Set_No_Minimize_Eliminate
10737 (N : Node_Id; Val : Boolean := True); -- Flag17
10738
10739 procedure Set_No_Side_Effect_Removal
10740 (N : Node_Id; Val : Boolean := True); -- Flag1
10741
10742 procedure Set_No_Truncation
10743 (N : Node_Id; Val : Boolean := True); -- Flag17
10744
10745 procedure Set_Non_Aliased_Prefix
10746 (N : Node_Id; Val : Boolean := True); -- Flag18
10747
10748 procedure Set_Null_Present
10749 (N : Node_Id; Val : Boolean := True); -- Flag13
10750
10751 procedure Set_Null_Excluding_Subtype
10752 (N : Node_Id; Val : Boolean := True); -- Flag16
10753
10754 procedure Set_Null_Exclusion_Present
10755 (N : Node_Id; Val : Boolean := True); -- Flag11
10756
10757 procedure Set_Null_Exclusion_In_Return_Present
10758 (N : Node_Id; Val : Boolean := True); -- Flag14
10759
10760 procedure Set_Null_Record_Present
10761 (N : Node_Id; Val : Boolean := True); -- Flag17
10762
10763 procedure Set_Object_Definition
10764 (N : Node_Id; Val : Node_Id); -- Node4
10765
10766 procedure Set_Of_Present
10767 (N : Node_Id; Val : Boolean := True); -- Flag16
10768
10769 procedure Set_Original_Discriminant
10770 (N : Node_Id; Val : Node_Id); -- Node2
10771
10772 procedure Set_Original_Entity
10773 (N : Node_Id; Val : Entity_Id); -- Node2
10774
10775 procedure Set_Others_Discrete_Choices
10776 (N : Node_Id; Val : List_Id); -- List1
10777
10778 procedure Set_Out_Present
10779 (N : Node_Id; Val : Boolean := True); -- Flag17
10780
10781 procedure Set_Parameter_Associations
10782 (N : Node_Id; Val : List_Id); -- List3
10783
10784 procedure Set_Parameter_Specifications
10785 (N : Node_Id; Val : List_Id); -- List3
10786
10787 procedure Set_Parameter_Type
10788 (N : Node_Id; Val : Node_Id); -- Node2
10789
10790 procedure Set_Parent_Spec
10791 (N : Node_Id; Val : Node_Id); -- Node4
10792
10793 procedure Set_Position
10794 (N : Node_Id; Val : Node_Id); -- Node2
10795
10796 procedure Set_Pragma_Argument_Associations
10797 (N : Node_Id; Val : List_Id); -- List2
10798
10799 procedure Set_Pragma_Identifier
10800 (N : Node_Id; Val : Node_Id); -- Node4
10801
10802 procedure Set_Pragmas_After
10803 (N : Node_Id; Val : List_Id); -- List5
10804
10805 procedure Set_Pragmas_Before
10806 (N : Node_Id; Val : List_Id); -- List4
10807
10808 procedure Set_Pre_Post_Conditions
10809 (N : Node_Id; Val : Node_Id); -- Node1
10810
10811 procedure Set_Prefix
10812 (N : Node_Id; Val : Node_Id); -- Node3
10813
10814 procedure Set_Premature_Use
10815 (N : Node_Id; Val : Node_Id); -- Node5
10816
10817 procedure Set_Present_Expr
10818 (N : Node_Id; Val : Uint); -- Uint3
10819
10820 procedure Set_Prev_Ids
10821 (N : Node_Id; Val : Boolean := True); -- Flag6
10822
10823 procedure Set_Print_In_Hex
10824 (N : Node_Id; Val : Boolean := True); -- Flag13
10825
10826 procedure Set_Private_Declarations
10827 (N : Node_Id; Val : List_Id); -- List3
10828
10829 procedure Set_Private_Present
10830 (N : Node_Id; Val : Boolean := True); -- Flag15
10831
10832 procedure Set_Procedure_To_Call
10833 (N : Node_Id; Val : Node_Id); -- Node2
10834
10835 procedure Set_Proper_Body
10836 (N : Node_Id; Val : Node_Id); -- Node1
10837
10838 procedure Set_Protected_Definition
10839 (N : Node_Id; Val : Node_Id); -- Node3
10840
10841 procedure Set_Protected_Present
10842 (N : Node_Id; Val : Boolean := True); -- Flag6
10843
10844 procedure Set_Raises_Constraint_Error
10845 (N : Node_Id; Val : Boolean := True); -- Flag7
10846
10847 procedure Set_Range_Constraint
10848 (N : Node_Id; Val : Node_Id); -- Node4
10849
10850 procedure Set_Range_Expression
10851 (N : Node_Id; Val : Node_Id); -- Node4
10852
10853 procedure Set_Real_Range_Specification
10854 (N : Node_Id; Val : Node_Id); -- Node4
10855
10856 procedure Set_Realval
10857 (N : Node_Id; Val : Ureal); -- Ureal3
10858
10859 procedure Set_Reason
10860 (N : Node_Id; Val : Uint); -- Uint3
10861
10862 procedure Set_Record_Extension_Part
10863 (N : Node_Id; Val : Node_Id); -- Node3
10864
10865 procedure Set_Redundant_Use
10866 (N : Node_Id; Val : Boolean := True); -- Flag13
10867
10868 procedure Set_Renaming_Exception
10869 (N : Node_Id; Val : Node_Id); -- Node2
10870
10871 procedure Set_Result_Definition
10872 (N : Node_Id; Val : Node_Id); -- Node4
10873
10874 procedure Set_Return_Object_Declarations
10875 (N : Node_Id; Val : List_Id); -- List3
10876
10877 procedure Set_Return_Statement_Entity
10878 (N : Node_Id; Val : Node_Id); -- Node5
10879
10880 procedure Set_Reverse_Present
10881 (N : Node_Id; Val : Boolean := True); -- Flag15
10882
10883 procedure Set_Right_Opnd
10884 (N : Node_Id; Val : Node_Id); -- Node3
10885
10886 procedure Set_Rounded_Result
10887 (N : Node_Id; Val : Boolean := True); -- Flag18
10888
10889 procedure Set_SCIL_Controlling_Tag
10890 (N : Node_Id; Val : Node_Id); -- Node5
10891
10892 procedure Set_SCIL_Entity
10893 (N : Node_Id; Val : Node_Id); -- Node4
10894
10895 procedure Set_SCIL_Tag_Value
10896 (N : Node_Id; Val : Node_Id); -- Node5
10897
10898 procedure Set_SCIL_Target_Prim
10899 (N : Node_Id; Val : Node_Id); -- Node2
10900
10901 procedure Set_Scope
10902 (N : Node_Id; Val : Node_Id); -- Node3
10903
10904 procedure Set_Select_Alternatives
10905 (N : Node_Id; Val : List_Id); -- List1
10906
10907 procedure Set_Selector_Name
10908 (N : Node_Id; Val : Node_Id); -- Node2
10909
10910 procedure Set_Selector_Names
10911 (N : Node_Id; Val : List_Id); -- List1
10912
10913 procedure Set_Shift_Count_OK
10914 (N : Node_Id; Val : Boolean := True); -- Flag4
10915
10916 procedure Set_Source_Type
10917 (N : Node_Id; Val : Entity_Id); -- Node1
10918
10919 procedure Set_Specification
10920 (N : Node_Id; Val : Node_Id); -- Node1
10921
10922 procedure Set_Split_PPC
10923 (N : Node_Id; Val : Boolean); -- Flag17
10924
10925 procedure Set_Statements
10926 (N : Node_Id; Val : List_Id); -- List3
10927
10928 procedure Set_Storage_Pool
10929 (N : Node_Id; Val : Node_Id); -- Node1
10930
10931 procedure Set_Subpool_Handle_Name
10932 (N : Node_Id; Val : Node_Id); -- Node4
10933
10934 procedure Set_Strval
10935 (N : Node_Id; Val : String_Id); -- Str3
10936
10937 procedure Set_Subtype_Indication
10938 (N : Node_Id; Val : Node_Id); -- Node5
10939
10940 procedure Set_Subtype_Mark
10941 (N : Node_Id; Val : Node_Id); -- Node4
10942
10943 procedure Set_Subtype_Marks
10944 (N : Node_Id; Val : List_Id); -- List2
10945
10946 procedure Set_Suppress_Assignment_Checks
10947 (N : Node_Id; Val : Boolean := True); -- Flag18
10948
10949 procedure Set_Suppress_Loop_Warnings
10950 (N : Node_Id; Val : Boolean := True); -- Flag17
10951
10952 procedure Set_Synchronized_Present
10953 (N : Node_Id; Val : Boolean := True); -- Flag7
10954
10955 procedure Set_Tagged_Present
10956 (N : Node_Id; Val : Boolean := True); -- Flag15
10957
10958 procedure Set_Target_Type
10959 (N : Node_Id; Val : Entity_Id); -- Node2
10960
10961 procedure Set_Task_Definition
10962 (N : Node_Id; Val : Node_Id); -- Node3
10963
10964 procedure Set_Task_Present
10965 (N : Node_Id; Val : Boolean := True); -- Flag5
10966
10967 procedure Set_Then_Actions
10968 (N : Node_Id; Val : List_Id); -- List2
10969
10970 procedure Set_Then_Statements
10971 (N : Node_Id; Val : List_Id); -- List2
10972
10973 procedure Set_Treat_Fixed_As_Integer
10974 (N : Node_Id; Val : Boolean := True); -- Flag14
10975
10976 procedure Set_Triggering_Alternative
10977 (N : Node_Id; Val : Node_Id); -- Node1
10978
10979 procedure Set_Triggering_Statement
10980 (N : Node_Id; Val : Node_Id); -- Node1
10981
10982 procedure Set_TSS_Elist
10983 (N : Node_Id; Val : Elist_Id); -- Elist3
10984
10985 procedure Set_Type_Definition
10986 (N : Node_Id; Val : Node_Id); -- Node3
10987
10988 procedure Set_Uneval_Old_Accept
10989 (N : Node_Id; Val : Boolean := True); -- Flag7
10990
10991 procedure Set_Uneval_Old_Warn
10992 (N : Node_Id; Val : Boolean := True); -- Flag18
10993
10994 procedure Set_Unit
10995 (N : Node_Id; Val : Node_Id); -- Node2
10996
10997 procedure Set_Unknown_Discriminants_Present
10998 (N : Node_Id; Val : Boolean := True); -- Flag13
10999
11000 procedure Set_Unreferenced_In_Spec
11001 (N : Node_Id; Val : Boolean := True); -- Flag7
11002
11003 procedure Set_Variant_Part
11004 (N : Node_Id; Val : Node_Id); -- Node4
11005
11006 procedure Set_Variants
11007 (N : Node_Id; Val : List_Id); -- List1
11008
11009 procedure Set_Visible_Declarations
11010 (N : Node_Id; Val : List_Id); -- List2
11011
11012 procedure Set_Uninitialized_Variable
11013 (N : Node_Id; Val : Node_Id); -- Node3
11014
11015 procedure Set_Used_Operations
11016 (N : Node_Id; Val : Elist_Id); -- Elist5
11017
11018 procedure Set_Was_Expression_Function
11019 (N : Node_Id; Val : Boolean := True); -- Flag18
11020
11021 procedure Set_Was_Originally_Stub
11022 (N : Node_Id; Val : Boolean := True); -- Flag13
11023
11024 procedure Set_Withed_Body
11025 (N : Node_Id; Val : Node_Id); -- Node1
11026
11027 -------------------------
11028 -- Iterator Procedures --
11029 -------------------------
11030
11031 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
11032
11033 procedure Next_Entity (N : in out Node_Id);
11034 procedure Next_Named_Actual (N : in out Node_Id);
11035 procedure Next_Rep_Item (N : in out Node_Id);
11036 procedure Next_Use_Clause (N : in out Node_Id);
11037
11038 -------------------------------------------
11039 -- Miscellaneous Tree Access Subprograms --
11040 -------------------------------------------
11041
11042 function End_Location (N : Node_Id) return Source_Ptr;
11043 -- N is an N_If_Statement or N_Case_Statement node, and this function
11044 -- returns the location of the IF token in the END IF sequence by
11045 -- translating the value of the End_Span field.
11046
11047 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
11048 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
11049 -- the End_Span field to correspond to the given value S. In other words,
11050 -- End_Span is set to the difference between S and Sloc (N), the starting
11051 -- location.
11052
11053 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
11054 -- Given an argument to a pragma Arg, this function returns the expression
11055 -- for the argument. This is Arg itself, or, in the case where Arg is a
11056 -- pragma argument association node, the expression from this node.
11057
11058 --------------------------------
11059 -- Node_Kind Membership Tests --
11060 --------------------------------
11061
11062 -- The following functions allow a convenient notation for testing whether
11063 -- a Node_Kind value matches any one of a list of possible values. In each
11064 -- case True is returned if the given T argument is equal to any of the V
11065 -- arguments. Note that there is a similar set of functions defined in
11066 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
11067
11068 function Nkind_In
11069 (T : Node_Kind;
11070 V1 : Node_Kind;
11071 V2 : Node_Kind) return Boolean;
11072
11073 function Nkind_In
11074 (T : Node_Kind;
11075 V1 : Node_Kind;
11076 V2 : Node_Kind;
11077 V3 : Node_Kind) return Boolean;
11078
11079 function Nkind_In
11080 (T : Node_Kind;
11081 V1 : Node_Kind;
11082 V2 : Node_Kind;
11083 V3 : Node_Kind;
11084 V4 : Node_Kind) return Boolean;
11085
11086 function Nkind_In
11087 (T : Node_Kind;
11088 V1 : Node_Kind;
11089 V2 : Node_Kind;
11090 V3 : Node_Kind;
11091 V4 : Node_Kind;
11092 V5 : Node_Kind) return Boolean;
11093
11094 function Nkind_In
11095 (T : Node_Kind;
11096 V1 : Node_Kind;
11097 V2 : Node_Kind;
11098 V3 : Node_Kind;
11099 V4 : Node_Kind;
11100 V5 : Node_Kind;
11101 V6 : Node_Kind) return Boolean;
11102
11103 function Nkind_In
11104 (T : Node_Kind;
11105 V1 : Node_Kind;
11106 V2 : Node_Kind;
11107 V3 : Node_Kind;
11108 V4 : Node_Kind;
11109 V5 : Node_Kind;
11110 V6 : Node_Kind;
11111 V7 : Node_Kind) return Boolean;
11112
11113 function Nkind_In
11114 (T : Node_Kind;
11115 V1 : Node_Kind;
11116 V2 : Node_Kind;
11117 V3 : Node_Kind;
11118 V4 : Node_Kind;
11119 V5 : Node_Kind;
11120 V6 : Node_Kind;
11121 V7 : Node_Kind;
11122 V8 : Node_Kind) return Boolean;
11123
11124 function Nkind_In
11125 (T : Node_Kind;
11126 V1 : Node_Kind;
11127 V2 : Node_Kind;
11128 V3 : Node_Kind;
11129 V4 : Node_Kind;
11130 V5 : Node_Kind;
11131 V6 : Node_Kind;
11132 V7 : Node_Kind;
11133 V8 : Node_Kind;
11134 V9 : Node_Kind) return Boolean;
11135
11136 pragma Inline (Nkind_In);
11137 -- Inline all above functions
11138
11139 -----------------------
11140 -- Utility Functions --
11141 -----------------------
11142
11143 procedure Map_Pragma_Name (From, To : Name_Id);
11144 -- Used in the implementation of pragma Rename_Pragma. Maps pragma name
11145 -- From to pragma name To, so From can be used as a synonym for To.
11146
11147 Too_Many_Pragma_Mappings : exception;
11148 -- Raised if Map_Pragma_Name is called too many times. We expect that few
11149 -- programs will use it at all, and those that do will use it approximately
11150 -- once or twice.
11151
11152 function Pragma_Name (N : Node_Id) return Name_Id;
11153 -- Obtain the name of pragma N from the Chars field of its identifier. If
11154 -- the pragma has been renamed using Rename_Pragma, this routine returns
11155 -- the name of the renaming.
11156
11157 function Pragma_Name_Unmapped (N : Node_Id) return Name_Id;
11158 -- Obtain the name of pragma N from the Chars field of its identifier. This
11159 -- form of name extraction does not take into account renamings performed
11160 -- by Rename_Pragma.
11161
11162 -----------------------------
11163 -- Syntactic Parent Tables --
11164 -----------------------------
11165
11166 -- These tables show for each node, and for each of the five fields,
11167 -- whether the corresponding field is syntactic (True) or semantic (False).
11168 -- Unused entries are also set to False.
11169
11170 subtype Field_Num is Natural range 1 .. 5;
11171
11172 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
11173
11174 -- Following entries can be built automatically from the sinfo sources
11175 -- using the makeisf utility (currently this program is in spitbol).
11176
11177 N_Identifier =>
11178 (1 => True, -- Chars (Name1)
11179 2 => False, -- Original_Discriminant (Node2-Sem)
11180 3 => False, -- unused
11181 4 => False, -- Entity (Node4-Sem)
11182 5 => False), -- Etype (Node5-Sem)
11183
11184 N_Integer_Literal =>
11185 (1 => False, -- unused
11186 2 => False, -- Original_Entity (Node2-Sem)
11187 3 => True, -- Intval (Uint3)
11188 4 => False, -- unused
11189 5 => False), -- Etype (Node5-Sem)
11190
11191 N_Real_Literal =>
11192 (1 => False, -- unused
11193 2 => False, -- Original_Entity (Node2-Sem)
11194 3 => True, -- Realval (Ureal3)
11195 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
11196 5 => False), -- Etype (Node5-Sem)
11197
11198 N_Character_Literal =>
11199 (1 => True, -- Chars (Name1)
11200 2 => True, -- Char_Literal_Value (Uint2)
11201 3 => False, -- unused
11202 4 => False, -- Entity (Node4-Sem)
11203 5 => False), -- Etype (Node5-Sem)
11204
11205 N_String_Literal =>
11206 (1 => False, -- unused
11207 2 => False, -- unused
11208 3 => True, -- Strval (Str3)
11209 4 => False, -- unused
11210 5 => False), -- Etype (Node5-Sem)
11211
11212 N_Pragma =>
11213 (1 => False, -- Next_Pragma (Node1-Sem)
11214 2 => True, -- Pragma_Argument_Associations (List2)
11215 3 => False, -- Corresponding_Aspect (Node3-Sem)
11216 4 => True, -- Pragma_Identifier (Node4)
11217 5 => False), -- Next_Rep_Item (Node5-Sem)
11218
11219 N_Pragma_Argument_Association =>
11220 (1 => True, -- Chars (Name1)
11221 2 => False, -- Expression_Copy (Node2-Sem)
11222 3 => True, -- Expression (Node3)
11223 4 => False, -- unused
11224 5 => False), -- unused
11225
11226 N_Defining_Identifier =>
11227 (1 => True, -- Chars (Name1)
11228 2 => False, -- Next_Entity (Node2-Sem)
11229 3 => False, -- Scope (Node3-Sem)
11230 4 => False, -- unused
11231 5 => False), -- Etype (Node5-Sem)
11232
11233 N_Full_Type_Declaration =>
11234 (1 => True, -- Defining_Identifier (Node1)
11235 2 => False, -- Incomplete_View (Node2-Sem)
11236 3 => True, -- Type_Definition (Node3)
11237 4 => True, -- Discriminant_Specifications (List4)
11238 5 => False), -- unused
11239
11240 N_Subtype_Declaration =>
11241 (1 => True, -- Defining_Identifier (Node1)
11242 2 => False, -- unused
11243 3 => False, -- unused
11244 4 => False, -- Generic_Parent_Type (Node4-Sem)
11245 5 => True), -- Subtype_Indication (Node5)
11246
11247 N_Subtype_Indication =>
11248 (1 => False, -- unused
11249 2 => False, -- unused
11250 3 => True, -- Constraint (Node3)
11251 4 => True, -- Subtype_Mark (Node4)
11252 5 => False), -- Etype (Node5-Sem)
11253
11254 N_Object_Declaration =>
11255 (1 => True, -- Defining_Identifier (Node1)
11256 2 => False, -- Handler_List_Entry (Node2-Sem)
11257 3 => True, -- Expression (Node3)
11258 4 => True, -- Object_Definition (Node4)
11259 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11260
11261 N_Number_Declaration =>
11262 (1 => True, -- Defining_Identifier (Node1)
11263 2 => False, -- unused
11264 3 => True, -- Expression (Node3)
11265 4 => False, -- unused
11266 5 => False), -- unused
11267
11268 N_Derived_Type_Definition =>
11269 (1 => False, -- unused
11270 2 => True, -- Interface_List (List2)
11271 3 => True, -- Record_Extension_Part (Node3)
11272 4 => False, -- unused
11273 5 => True), -- Subtype_Indication (Node5)
11274
11275 N_Range_Constraint =>
11276 (1 => False, -- unused
11277 2 => False, -- unused
11278 3 => False, -- unused
11279 4 => True, -- Range_Expression (Node4)
11280 5 => False), -- unused
11281
11282 N_Range =>
11283 (1 => True, -- Low_Bound (Node1)
11284 2 => True, -- High_Bound (Node2)
11285 3 => False, -- unused
11286 4 => False, -- unused
11287 5 => False), -- Etype (Node5-Sem)
11288
11289 N_Enumeration_Type_Definition =>
11290 (1 => True, -- Literals (List1)
11291 2 => False, -- unused
11292 3 => False, -- unused
11293 4 => True, -- End_Label (Node4)
11294 5 => False), -- unused
11295
11296 N_Defining_Character_Literal =>
11297 (1 => True, -- Chars (Name1)
11298 2 => False, -- Next_Entity (Node2-Sem)
11299 3 => False, -- Scope (Node3-Sem)
11300 4 => False, -- unused
11301 5 => False), -- Etype (Node5-Sem)
11302
11303 N_Signed_Integer_Type_Definition =>
11304 (1 => True, -- Low_Bound (Node1)
11305 2 => True, -- High_Bound (Node2)
11306 3 => False, -- unused
11307 4 => False, -- unused
11308 5 => False), -- unused
11309
11310 N_Modular_Type_Definition =>
11311 (1 => False, -- unused
11312 2 => False, -- unused
11313 3 => True, -- Expression (Node3)
11314 4 => False, -- unused
11315 5 => False), -- unused
11316
11317 N_Floating_Point_Definition =>
11318 (1 => False, -- unused
11319 2 => True, -- Digits_Expression (Node2)
11320 3 => False, -- unused
11321 4 => True, -- Real_Range_Specification (Node4)
11322 5 => False), -- unused
11323
11324 N_Real_Range_Specification =>
11325 (1 => True, -- Low_Bound (Node1)
11326 2 => True, -- High_Bound (Node2)
11327 3 => False, -- unused
11328 4 => False, -- unused
11329 5 => False), -- unused
11330
11331 N_Ordinary_Fixed_Point_Definition =>
11332 (1 => False, -- unused
11333 2 => False, -- unused
11334 3 => True, -- Delta_Expression (Node3)
11335 4 => True, -- Real_Range_Specification (Node4)
11336 5 => False), -- unused
11337
11338 N_Decimal_Fixed_Point_Definition =>
11339 (1 => False, -- unused
11340 2 => True, -- Digits_Expression (Node2)
11341 3 => True, -- Delta_Expression (Node3)
11342 4 => True, -- Real_Range_Specification (Node4)
11343 5 => False), -- unused
11344
11345 N_Digits_Constraint =>
11346 (1 => False, -- unused
11347 2 => True, -- Digits_Expression (Node2)
11348 3 => False, -- unused
11349 4 => True, -- Range_Constraint (Node4)
11350 5 => False), -- unused
11351
11352 N_Unconstrained_Array_Definition =>
11353 (1 => False, -- unused
11354 2 => True, -- Subtype_Marks (List2)
11355 3 => False, -- unused
11356 4 => True, -- Component_Definition (Node4)
11357 5 => False), -- unused
11358
11359 N_Constrained_Array_Definition =>
11360 (1 => False, -- unused
11361 2 => True, -- Discrete_Subtype_Definitions (List2)
11362 3 => False, -- unused
11363 4 => True, -- Component_Definition (Node4)
11364 5 => False), -- unused
11365
11366 N_Component_Definition =>
11367 (1 => False, -- unused
11368 2 => False, -- unused
11369 3 => True, -- Access_Definition (Node3)
11370 4 => False, -- unused
11371 5 => True), -- Subtype_Indication (Node5)
11372
11373 N_Discriminant_Specification =>
11374 (1 => True, -- Defining_Identifier (Node1)
11375 2 => False, -- unused
11376 3 => True, -- Expression (Node3)
11377 4 => False, -- unused
11378 5 => True), -- Discriminant_Type (Node5)
11379
11380 N_Index_Or_Discriminant_Constraint =>
11381 (1 => True, -- Constraints (List1)
11382 2 => False, -- unused
11383 3 => False, -- unused
11384 4 => False, -- unused
11385 5 => False), -- unused
11386
11387 N_Discriminant_Association =>
11388 (1 => True, -- Selector_Names (List1)
11389 2 => False, -- unused
11390 3 => True, -- Expression (Node3)
11391 4 => False, -- unused
11392 5 => False), -- unused
11393
11394 N_Record_Definition =>
11395 (1 => True, -- Component_List (Node1)
11396 2 => True, -- Interface_List (List2)
11397 3 => False, -- unused
11398 4 => True, -- End_Label (Node4)
11399 5 => False), -- unused
11400
11401 N_Component_List =>
11402 (1 => False, -- unused
11403 2 => False, -- unused
11404 3 => True, -- Component_Items (List3)
11405 4 => True, -- Variant_Part (Node4)
11406 5 => False), -- unused
11407
11408 N_Component_Declaration =>
11409 (1 => True, -- Defining_Identifier (Node1)
11410 2 => False, -- unused
11411 3 => True, -- Expression (Node3)
11412 4 => True, -- Component_Definition (Node4)
11413 5 => False), -- unused
11414
11415 N_Variant_Part =>
11416 (1 => True, -- Variants (List1)
11417 2 => True, -- Name (Node2)
11418 3 => False, -- unused
11419 4 => False, -- unused
11420 5 => False), -- unused
11421
11422 N_Variant =>
11423 (1 => True, -- Component_List (Node1)
11424 2 => False, -- Enclosing_Variant (Node2-Sem)
11425 3 => False, -- Present_Expr (Uint3-Sem)
11426 4 => True, -- Discrete_Choices (List4)
11427 5 => False), -- Dcheck_Function (Node5-Sem)
11428
11429 N_Others_Choice =>
11430 (1 => False, -- Others_Discrete_Choices (List1-Sem)
11431 2 => False, -- unused
11432 3 => False, -- unused
11433 4 => False, -- unused
11434 5 => False), -- unused
11435
11436 N_Access_To_Object_Definition =>
11437 (1 => False, -- unused
11438 2 => False, -- unused
11439 3 => False, -- unused
11440 4 => False, -- unused
11441 5 => True), -- Subtype_Indication (Node5)
11442
11443 N_Access_Function_Definition =>
11444 (1 => False, -- unused
11445 2 => False, -- unused
11446 3 => True, -- Parameter_Specifications (List3)
11447 4 => True, -- Result_Definition (Node4)
11448 5 => False), -- unused
11449
11450 N_Access_Procedure_Definition =>
11451 (1 => False, -- unused
11452 2 => False, -- unused
11453 3 => True, -- Parameter_Specifications (List3)
11454 4 => False, -- unused
11455 5 => False), -- unused
11456
11457 N_Access_Definition =>
11458 (1 => False, -- unused
11459 2 => False, -- unused
11460 3 => True, -- Access_To_Subprogram_Definition (Node3)
11461 4 => True, -- Subtype_Mark (Node4)
11462 5 => False), -- unused
11463
11464 N_Incomplete_Type_Declaration =>
11465 (1 => True, -- Defining_Identifier (Node1)
11466 2 => False, -- unused
11467 3 => False, -- unused
11468 4 => True, -- Discriminant_Specifications (List4)
11469 5 => False), -- Premature_Use
11470
11471 N_Explicit_Dereference =>
11472 (1 => False, -- unused
11473 2 => False, -- unused
11474 3 => True, -- Prefix (Node3)
11475 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11476 5 => False), -- Etype (Node5-Sem)
11477
11478 N_Indexed_Component =>
11479 (1 => True, -- Expressions (List1)
11480 2 => False, -- unused
11481 3 => True, -- Prefix (Node3)
11482 4 => False, -- Generalized_Indexing (Node4-Sem)
11483 5 => False), -- Etype (Node5-Sem)
11484
11485 N_Slice =>
11486 (1 => False, -- unused
11487 2 => False, -- unused
11488 3 => True, -- Prefix (Node3)
11489 4 => True, -- Discrete_Range (Node4)
11490 5 => False), -- Etype (Node5-Sem)
11491
11492 N_Selected_Component =>
11493 (1 => False, -- unused
11494 2 => True, -- Selector_Name (Node2)
11495 3 => True, -- Prefix (Node3)
11496 4 => False, -- unused
11497 5 => False), -- Etype (Node5-Sem)
11498
11499 N_Attribute_Reference =>
11500 (1 => True, -- Expressions (List1)
11501 2 => True, -- Attribute_Name (Name2)
11502 3 => True, -- Prefix (Node3)
11503 4 => False, -- Entity (Node4-Sem)
11504 5 => False), -- Etype (Node5-Sem)
11505
11506 N_Aggregate =>
11507 (1 => True, -- Expressions (List1)
11508 2 => True, -- Component_Associations (List2)
11509 3 => False, -- Aggregate_Bounds (Node3-Sem)
11510 4 => False, -- unused
11511 5 => False), -- Etype (Node5-Sem)
11512
11513 N_Component_Association =>
11514 (1 => True, -- Choices (List1)
11515 2 => False, -- Loop_Actions (List2-Sem)
11516 3 => True, -- Expression (Node3)
11517 4 => False, -- unused
11518 5 => False), -- unused
11519
11520 N_Iterated_Component_Association =>
11521 (1 => True, -- Defining_Identifier (Node1)
11522 2 => False, -- unused
11523 3 => True, -- Expression (Node3)
11524 4 => True, -- Discrete_Choices (List4)
11525 5 => False), -- unused
11526
11527 N_Extension_Aggregate =>
11528 (1 => True, -- Expressions (List1)
11529 2 => True, -- Component_Associations (List2)
11530 3 => True, -- Ancestor_Part (Node3)
11531 4 => False, -- unused
11532 5 => False), -- Etype (Node5-Sem)
11533
11534 N_Null =>
11535 (1 => False, -- unused
11536 2 => False, -- unused
11537 3 => False, -- unused
11538 4 => False, -- unused
11539 5 => False), -- Etype (Node5-Sem)
11540
11541 N_And_Then =>
11542 (1 => False, -- Actions (List1-Sem)
11543 2 => True, -- Left_Opnd (Node2)
11544 3 => True, -- Right_Opnd (Node3)
11545 4 => False, -- unused
11546 5 => False), -- Etype (Node5-Sem)
11547
11548 N_Or_Else =>
11549 (1 => False, -- Actions (List1-Sem)
11550 2 => True, -- Left_Opnd (Node2)
11551 3 => True, -- Right_Opnd (Node3)
11552 4 => False, -- unused
11553 5 => False), -- Etype (Node5-Sem)
11554
11555 N_In =>
11556 (1 => False, -- unused
11557 2 => True, -- Left_Opnd (Node2)
11558 3 => True, -- Right_Opnd (Node3)
11559 4 => True, -- Alternatives (List4)
11560 5 => False), -- Etype (Node5-Sem)
11561
11562 N_Not_In =>
11563 (1 => False, -- unused
11564 2 => True, -- Left_Opnd (Node2)
11565 3 => True, -- Right_Opnd (Node3)
11566 4 => True, -- Alternatives (List4)
11567 5 => False), -- Etype (Node5-Sem)
11568
11569 N_Op_And =>
11570 (1 => True, -- Chars (Name1)
11571 2 => True, -- Left_Opnd (Node2)
11572 3 => True, -- Right_Opnd (Node3)
11573 4 => False, -- Entity (Node4-Sem)
11574 5 => False), -- Etype (Node5-Sem)
11575
11576 N_Op_Or =>
11577 (1 => True, -- Chars (Name1)
11578 2 => True, -- Left_Opnd (Node2)
11579 3 => True, -- Right_Opnd (Node3)
11580 4 => False, -- Entity (Node4-Sem)
11581 5 => False), -- Etype (Node5-Sem)
11582
11583 N_Op_Xor =>
11584 (1 => True, -- Chars (Name1)
11585 2 => True, -- Left_Opnd (Node2)
11586 3 => True, -- Right_Opnd (Node3)
11587 4 => False, -- Entity (Node4-Sem)
11588 5 => False), -- Etype (Node5-Sem)
11589
11590 N_Op_Eq =>
11591 (1 => True, -- Chars (Name1)
11592 2 => True, -- Left_Opnd (Node2)
11593 3 => True, -- Right_Opnd (Node3)
11594 4 => False, -- Entity (Node4-Sem)
11595 5 => False), -- Etype (Node5-Sem)
11596
11597 N_Op_Ne =>
11598 (1 => True, -- Chars (Name1)
11599 2 => True, -- Left_Opnd (Node2)
11600 3 => True, -- Right_Opnd (Node3)
11601 4 => False, -- Entity (Node4-Sem)
11602 5 => False), -- Etype (Node5-Sem)
11603
11604 N_Op_Lt =>
11605 (1 => True, -- Chars (Name1)
11606 2 => True, -- Left_Opnd (Node2)
11607 3 => True, -- Right_Opnd (Node3)
11608 4 => False, -- Entity (Node4-Sem)
11609 5 => False), -- Etype (Node5-Sem)
11610
11611 N_Op_Le =>
11612 (1 => True, -- Chars (Name1)
11613 2 => True, -- Left_Opnd (Node2)
11614 3 => True, -- Right_Opnd (Node3)
11615 4 => False, -- Entity (Node4-Sem)
11616 5 => False), -- Etype (Node5-Sem)
11617
11618 N_Op_Gt =>
11619 (1 => True, -- Chars (Name1)
11620 2 => True, -- Left_Opnd (Node2)
11621 3 => True, -- Right_Opnd (Node3)
11622 4 => False, -- Entity (Node4-Sem)
11623 5 => False), -- Etype (Node5-Sem)
11624
11625 N_Op_Ge =>
11626 (1 => True, -- Chars (Name1)
11627 2 => True, -- Left_Opnd (Node2)
11628 3 => True, -- Right_Opnd (Node3)
11629 4 => False, -- Entity (Node4-Sem)
11630 5 => False), -- Etype (Node5-Sem)
11631
11632 N_Op_Add =>
11633 (1 => True, -- Chars (Name1)
11634 2 => True, -- Left_Opnd (Node2)
11635 3 => True, -- Right_Opnd (Node3)
11636 4 => False, -- Entity (Node4-Sem)
11637 5 => False), -- Etype (Node5-Sem)
11638
11639 N_Op_Subtract =>
11640 (1 => True, -- Chars (Name1)
11641 2 => True, -- Left_Opnd (Node2)
11642 3 => True, -- Right_Opnd (Node3)
11643 4 => False, -- Entity (Node4-Sem)
11644 5 => False), -- Etype (Node5-Sem)
11645
11646 N_Op_Concat =>
11647 (1 => True, -- Chars (Name1)
11648 2 => True, -- Left_Opnd (Node2)
11649 3 => True, -- Right_Opnd (Node3)
11650 4 => False, -- Entity (Node4-Sem)
11651 5 => False), -- Etype (Node5-Sem)
11652
11653 N_Op_Multiply =>
11654 (1 => True, -- Chars (Name1)
11655 2 => True, -- Left_Opnd (Node2)
11656 3 => True, -- Right_Opnd (Node3)
11657 4 => False, -- Entity (Node4-Sem)
11658 5 => False), -- Etype (Node5-Sem)
11659
11660 N_Op_Divide =>
11661 (1 => True, -- Chars (Name1)
11662 2 => True, -- Left_Opnd (Node2)
11663 3 => True, -- Right_Opnd (Node3)
11664 4 => False, -- Entity (Node4-Sem)
11665 5 => False), -- Etype (Node5-Sem)
11666
11667 N_Op_Mod =>
11668 (1 => True, -- Chars (Name1)
11669 2 => True, -- Left_Opnd (Node2)
11670 3 => True, -- Right_Opnd (Node3)
11671 4 => False, -- Entity (Node4-Sem)
11672 5 => False), -- Etype (Node5-Sem)
11673
11674 N_Op_Rem =>
11675 (1 => True, -- Chars (Name1)
11676 2 => True, -- Left_Opnd (Node2)
11677 3 => True, -- Right_Opnd (Node3)
11678 4 => False, -- Entity (Node4-Sem)
11679 5 => False), -- Etype (Node5-Sem)
11680
11681 N_Op_Expon =>
11682 (1 => True, -- Chars (Name1)
11683 2 => True, -- Left_Opnd (Node2)
11684 3 => True, -- Right_Opnd (Node3)
11685 4 => False, -- Entity (Node4-Sem)
11686 5 => False), -- Etype (Node5-Sem)
11687
11688 N_Op_Plus =>
11689 (1 => True, -- Chars (Name1)
11690 2 => False, -- unused
11691 3 => True, -- Right_Opnd (Node3)
11692 4 => False, -- Entity (Node4-Sem)
11693 5 => False), -- Etype (Node5-Sem)
11694
11695 N_Op_Minus =>
11696 (1 => True, -- Chars (Name1)
11697 2 => False, -- unused
11698 3 => True, -- Right_Opnd (Node3)
11699 4 => False, -- Entity (Node4-Sem)
11700 5 => False), -- Etype (Node5-Sem)
11701
11702 N_Op_Abs =>
11703 (1 => True, -- Chars (Name1)
11704 2 => False, -- unused
11705 3 => True, -- Right_Opnd (Node3)
11706 4 => False, -- Entity (Node4-Sem)
11707 5 => False), -- Etype (Node5-Sem)
11708
11709 N_Op_Not =>
11710 (1 => True, -- Chars (Name1)
11711 2 => False, -- unused
11712 3 => True, -- Right_Opnd (Node3)
11713 4 => False, -- Entity (Node4-Sem)
11714 5 => False), -- Etype (Node5-Sem)
11715
11716 N_Type_Conversion =>
11717 (1 => False, -- unused
11718 2 => False, -- unused
11719 3 => True, -- Expression (Node3)
11720 4 => True, -- Subtype_Mark (Node4)
11721 5 => False), -- Etype (Node5-Sem)
11722
11723 N_Qualified_Expression =>
11724 (1 => False, -- unused
11725 2 => False, -- unused
11726 3 => True, -- Expression (Node3)
11727 4 => True, -- Subtype_Mark (Node4)
11728 5 => False), -- Etype (Node5-Sem)
11729
11730 N_Quantified_Expression =>
11731 (1 => True, -- Condition (Node1)
11732 2 => True, -- Iterator_Specification
11733 3 => False, -- unused
11734 4 => True, -- Loop_Parameter_Specification (Node4)
11735 5 => False), -- Etype (Node5-Sem)
11736
11737 N_Allocator =>
11738 (1 => False, -- Storage_Pool (Node1-Sem)
11739 2 => False, -- Procedure_To_Call (Node2-Sem)
11740 3 => True, -- Expression (Node3)
11741 4 => True, -- Subpool_Handle_Name (Node4)
11742 5 => False), -- Etype (Node5-Sem)
11743
11744 N_Null_Statement =>
11745 (1 => False, -- unused
11746 2 => False, -- unused
11747 3 => False, -- unused
11748 4 => False, -- unused
11749 5 => False), -- unused
11750
11751 N_Label =>
11752 (1 => True, -- Identifier (Node1)
11753 2 => False, -- unused
11754 3 => False, -- unused
11755 4 => False, -- unused
11756 5 => False), -- unused
11757
11758 N_Assignment_Statement =>
11759 (1 => False, -- unused
11760 2 => True, -- Name (Node2)
11761 3 => True, -- Expression (Node3)
11762 4 => False, -- unused
11763 5 => False), -- unused
11764
11765 N_Target_Name =>
11766 (1 => False, -- unused
11767 2 => False, -- unused
11768 3 => False, -- unused
11769 4 => False, -- unused
11770 5 => False), -- Etype (Node5-Sem)
11771
11772 N_If_Statement =>
11773 (1 => True, -- Condition (Node1)
11774 2 => True, -- Then_Statements (List2)
11775 3 => True, -- Elsif_Parts (List3)
11776 4 => True, -- Else_Statements (List4)
11777 5 => True), -- End_Span (Uint5)
11778
11779 N_Elsif_Part =>
11780 (1 => True, -- Condition (Node1)
11781 2 => True, -- Then_Statements (List2)
11782 3 => False, -- Condition_Actions (List3-Sem)
11783 4 => False, -- unused
11784 5 => False), -- unused
11785
11786 N_Case_Expression =>
11787 (1 => False, -- unused
11788 2 => False, -- unused
11789 3 => True, -- Expression (Node3)
11790 4 => True, -- Alternatives (List4)
11791 5 => False), -- unused
11792
11793 N_Case_Expression_Alternative =>
11794 (1 => False, -- Actions (List1-Sem)
11795 2 => False, -- unused
11796 3 => True, -- Statements (List3)
11797 4 => True, -- Expression (Node4)
11798 5 => False), -- unused
11799
11800 N_Case_Statement =>
11801 (1 => False, -- unused
11802 2 => False, -- unused
11803 3 => True, -- Expression (Node3)
11804 4 => True, -- Alternatives (List4)
11805 5 => True), -- End_Span (Uint5)
11806
11807 N_Case_Statement_Alternative =>
11808 (1 => False, -- unused
11809 2 => False, -- unused
11810 3 => True, -- Statements (List3)
11811 4 => True, -- Discrete_Choices (List4)
11812 5 => False), -- unused
11813
11814 N_Loop_Statement =>
11815 (1 => True, -- Identifier (Node1)
11816 2 => True, -- Iteration_Scheme (Node2)
11817 3 => True, -- Statements (List3)
11818 4 => True, -- End_Label (Node4)
11819 5 => False), -- unused
11820
11821 N_Iteration_Scheme =>
11822 (1 => True, -- Condition (Node1)
11823 2 => True, -- Iterator_Specification (Node2)
11824 3 => False, -- Condition_Actions (List3-Sem)
11825 4 => True, -- Loop_Parameter_Specification (Node4)
11826 5 => False), -- unused
11827
11828 N_Loop_Parameter_Specification =>
11829 (1 => True, -- Defining_Identifier (Node1)
11830 2 => False, -- unused
11831 3 => False, -- unused
11832 4 => True, -- Discrete_Subtype_Definition (Node4)
11833 5 => False), -- unused
11834
11835 N_Iterator_Specification =>
11836 (1 => True, -- Defining_Identifier (Node1)
11837 2 => True, -- Name (Node2)
11838 3 => False, -- Unused
11839 4 => False, -- Unused
11840 5 => True), -- Subtype_Indication (Node5)
11841
11842 N_Block_Statement =>
11843 (1 => True, -- Identifier (Node1)
11844 2 => True, -- Declarations (List2)
11845 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11846 4 => True, -- Handled_Statement_Sequence (Node4)
11847 5 => False), -- unused
11848
11849 N_Exit_Statement =>
11850 (1 => True, -- Condition (Node1)
11851 2 => True, -- Name (Node2)
11852 3 => False, -- unused
11853 4 => False, -- unused
11854 5 => False), -- unused
11855
11856 N_Goto_Statement =>
11857 (1 => False, -- unused
11858 2 => True, -- Name (Node2)
11859 3 => False, -- unused
11860 4 => False, -- unused
11861 5 => False), -- unused
11862
11863 N_Subprogram_Declaration =>
11864 (1 => True, -- Specification (Node1)
11865 2 => False, -- unused
11866 3 => False, -- Body_To_Inline (Node3-Sem)
11867 4 => False, -- Parent_Spec (Node4-Sem)
11868 5 => False), -- Corresponding_Body (Node5-Sem)
11869
11870 N_Abstract_Subprogram_Declaration =>
11871 (1 => True, -- Specification (Node1)
11872 2 => False, -- unused
11873 3 => False, -- unused
11874 4 => False, -- unused
11875 5 => False), -- unused
11876
11877 N_Function_Specification =>
11878 (1 => True, -- Defining_Unit_Name (Node1)
11879 2 => False, -- unused
11880 3 => True, -- Parameter_Specifications (List3)
11881 4 => True, -- Result_Definition (Node4)
11882 5 => False), -- Generic_Parent (Node5-Sem)
11883
11884 N_Procedure_Specification =>
11885 (1 => True, -- Defining_Unit_Name (Node1)
11886 2 => False, -- unused
11887 3 => True, -- Parameter_Specifications (List3)
11888 4 => False, -- unused
11889 5 => False), -- Generic_Parent (Node5-Sem)
11890
11891 N_Designator =>
11892 (1 => True, -- Identifier (Node1)
11893 2 => True, -- Name (Node2)
11894 3 => False, -- unused
11895 4 => False, -- unused
11896 5 => False), -- unused
11897
11898 N_Defining_Program_Unit_Name =>
11899 (1 => True, -- Defining_Identifier (Node1)
11900 2 => True, -- Name (Node2)
11901 3 => False, -- unused
11902 4 => False, -- unused
11903 5 => False), -- unused
11904
11905 N_Operator_Symbol =>
11906 (1 => True, -- Chars (Name1)
11907 2 => False, -- unused
11908 3 => True, -- Strval (Str3)
11909 4 => False, -- Entity (Node4-Sem)
11910 5 => False), -- Etype (Node5-Sem)
11911
11912 N_Defining_Operator_Symbol =>
11913 (1 => True, -- Chars (Name1)
11914 2 => False, -- Next_Entity (Node2-Sem)
11915 3 => False, -- Scope (Node3-Sem)
11916 4 => False, -- unused
11917 5 => False), -- Etype (Node5-Sem)
11918
11919 N_Parameter_Specification =>
11920 (1 => True, -- Defining_Identifier (Node1)
11921 2 => True, -- Parameter_Type (Node2)
11922 3 => True, -- Expression (Node3)
11923 4 => False, -- unused
11924 5 => False), -- Default_Expression (Node5-Sem)
11925
11926 N_Subprogram_Body =>
11927 (1 => True, -- Specification (Node1)
11928 2 => True, -- Declarations (List2)
11929 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11930 4 => True, -- Handled_Statement_Sequence (Node4)
11931 5 => False), -- Corresponding_Spec (Node5-Sem)
11932
11933 N_Expression_Function =>
11934 (1 => True, -- Specification (Node1)
11935 2 => False, -- unused
11936 3 => True, -- Expression (Node3)
11937 4 => False, -- unused
11938 5 => False), -- unused
11939
11940 N_Procedure_Call_Statement =>
11941 (1 => False, -- Controlling_Argument (Node1-Sem)
11942 2 => True, -- Name (Node2)
11943 3 => True, -- Parameter_Associations (List3)
11944 4 => False, -- First_Named_Actual (Node4-Sem)
11945 5 => False), -- Etype (Node5-Sem)
11946
11947 N_Function_Call =>
11948 (1 => False, -- Controlling_Argument (Node1-Sem)
11949 2 => True, -- Name (Node2)
11950 3 => True, -- Parameter_Associations (List3)
11951 4 => False, -- First_Named_Actual (Node4-Sem)
11952 5 => False), -- Etype (Node5-Sem)
11953
11954 N_Parameter_Association =>
11955 (1 => False, -- unused
11956 2 => True, -- Selector_Name (Node2)
11957 3 => True, -- Explicit_Actual_Parameter (Node3)
11958 4 => False, -- Next_Named_Actual (Node4-Sem)
11959 5 => False), -- unused
11960
11961 N_Simple_Return_Statement =>
11962 (1 => False, -- Storage_Pool (Node1-Sem)
11963 2 => False, -- Procedure_To_Call (Node2-Sem)
11964 3 => True, -- Expression (Node3)
11965 4 => False, -- unused
11966 5 => False), -- Return_Statement_Entity (Node5-Sem)
11967
11968 N_Extended_Return_Statement =>
11969 (1 => False, -- Storage_Pool (Node1-Sem)
11970 2 => False, -- Procedure_To_Call (Node2-Sem)
11971 3 => True, -- Return_Object_Declarations (List3)
11972 4 => True, -- Handled_Statement_Sequence (Node4)
11973 5 => False), -- Return_Statement_Entity (Node5-Sem)
11974
11975 N_Package_Declaration =>
11976 (1 => True, -- Specification (Node1)
11977 2 => False, -- unused
11978 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11979 4 => False, -- Parent_Spec (Node4-Sem)
11980 5 => False), -- Corresponding_Body (Node5-Sem)
11981
11982 N_Package_Specification =>
11983 (1 => True, -- Defining_Unit_Name (Node1)
11984 2 => True, -- Visible_Declarations (List2)
11985 3 => True, -- Private_Declarations (List3)
11986 4 => True, -- End_Label (Node4)
11987 5 => False), -- Generic_Parent (Node5-Sem)
11988
11989 N_Package_Body =>
11990 (1 => True, -- Defining_Unit_Name (Node1)
11991 2 => True, -- Declarations (List2)
11992 3 => False, -- unused
11993 4 => True, -- Handled_Statement_Sequence (Node4)
11994 5 => False), -- Corresponding_Spec (Node5-Sem)
11995
11996 N_Private_Type_Declaration =>
11997 (1 => True, -- Defining_Identifier (Node1)
11998 2 => False, -- unused
11999 3 => False, -- unused
12000 4 => True, -- Discriminant_Specifications (List4)
12001 5 => False), -- unused
12002
12003 N_Private_Extension_Declaration =>
12004 (1 => True, -- Defining_Identifier (Node1)
12005 2 => True, -- Interface_List (List2)
12006 3 => False, -- unused
12007 4 => True, -- Discriminant_Specifications (List4)
12008 5 => True), -- Subtype_Indication (Node5)
12009
12010 N_Use_Package_Clause =>
12011 (1 => False, -- unused
12012 2 => True, -- Names (List2)
12013 3 => False, -- Next_Use_Clause (Node3-Sem)
12014 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
12015 5 => False), -- unused
12016
12017 N_Use_Type_Clause =>
12018 (1 => False, -- unused
12019 2 => True, -- Subtype_Marks (List2)
12020 3 => False, -- Next_Use_Clause (Node3-Sem)
12021 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
12022 5 => False), -- unused
12023
12024 N_Object_Renaming_Declaration =>
12025 (1 => True, -- Defining_Identifier (Node1)
12026 2 => True, -- Name (Node2)
12027 3 => True, -- Access_Definition (Node3)
12028 4 => True, -- Subtype_Mark (Node4)
12029 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
12030
12031 N_Exception_Renaming_Declaration =>
12032 (1 => True, -- Defining_Identifier (Node1)
12033 2 => True, -- Name (Node2)
12034 3 => False, -- unused
12035 4 => False, -- unused
12036 5 => False), -- unused
12037
12038 N_Package_Renaming_Declaration =>
12039 (1 => True, -- Defining_Unit_Name (Node1)
12040 2 => True, -- Name (Node2)
12041 3 => False, -- unused
12042 4 => False, -- Parent_Spec (Node4-Sem)
12043 5 => False), -- unused
12044
12045 N_Subprogram_Renaming_Declaration =>
12046 (1 => True, -- Specification (Node1)
12047 2 => True, -- Name (Node2)
12048 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
12049 4 => False, -- Parent_Spec (Node4-Sem)
12050 5 => False), -- Corresponding_Spec (Node5-Sem)
12051
12052 N_Generic_Package_Renaming_Declaration =>
12053 (1 => True, -- Defining_Unit_Name (Node1)
12054 2 => True, -- Name (Node2)
12055 3 => False, -- unused
12056 4 => False, -- Parent_Spec (Node4-Sem)
12057 5 => False), -- unused
12058
12059 N_Generic_Procedure_Renaming_Declaration =>
12060 (1 => True, -- Defining_Unit_Name (Node1)
12061 2 => True, -- Name (Node2)
12062 3 => False, -- unused
12063 4 => False, -- Parent_Spec (Node4-Sem)
12064 5 => False), -- unused
12065
12066 N_Generic_Function_Renaming_Declaration =>
12067 (1 => True, -- Defining_Unit_Name (Node1)
12068 2 => True, -- Name (Node2)
12069 3 => False, -- unused
12070 4 => False, -- Parent_Spec (Node4-Sem)
12071 5 => False), -- unused
12072
12073 N_Task_Type_Declaration =>
12074 (1 => True, -- Defining_Identifier (Node1)
12075 2 => True, -- Interface_List (List2)
12076 3 => True, -- Task_Definition (Node3)
12077 4 => True, -- Discriminant_Specifications (List4)
12078 5 => False), -- Corresponding_Body (Node5-Sem)
12079
12080 N_Single_Task_Declaration =>
12081 (1 => True, -- Defining_Identifier (Node1)
12082 2 => True, -- Interface_List (List2)
12083 3 => True, -- Task_Definition (Node3)
12084 4 => False, -- unused
12085 5 => False), -- unused
12086
12087 N_Task_Definition =>
12088 (1 => False, -- unused
12089 2 => True, -- Visible_Declarations (List2)
12090 3 => True, -- Private_Declarations (List3)
12091 4 => True, -- End_Label (Node4)
12092 5 => False), -- unused
12093
12094 N_Task_Body =>
12095 (1 => True, -- Defining_Identifier (Node1)
12096 2 => True, -- Declarations (List2)
12097 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12098 4 => True, -- Handled_Statement_Sequence (Node4)
12099 5 => False), -- Corresponding_Spec (Node5-Sem)
12100
12101 N_Protected_Type_Declaration =>
12102 (1 => True, -- Defining_Identifier (Node1)
12103 2 => True, -- Interface_List (List2)
12104 3 => True, -- Protected_Definition (Node3)
12105 4 => True, -- Discriminant_Specifications (List4)
12106 5 => False), -- Corresponding_Body (Node5-Sem)
12107
12108 N_Single_Protected_Declaration =>
12109 (1 => True, -- Defining_Identifier (Node1)
12110 2 => True, -- Interface_List (List2)
12111 3 => True, -- Protected_Definition (Node3)
12112 4 => False, -- unused
12113 5 => False), -- unused
12114
12115 N_Protected_Definition =>
12116 (1 => False, -- unused
12117 2 => True, -- Visible_Declarations (List2)
12118 3 => True, -- Private_Declarations (List3)
12119 4 => True, -- End_Label (Node4)
12120 5 => False), -- unused
12121
12122 N_Protected_Body =>
12123 (1 => True, -- Defining_Identifier (Node1)
12124 2 => True, -- Declarations (List2)
12125 3 => False, -- unused
12126 4 => True, -- End_Label (Node4)
12127 5 => False), -- Corresponding_Spec (Node5-Sem)
12128
12129 N_Entry_Declaration =>
12130 (1 => True, -- Defining_Identifier (Node1)
12131 2 => False, -- unused
12132 3 => True, -- Parameter_Specifications (List3)
12133 4 => True, -- Discrete_Subtype_Definition (Node4)
12134 5 => False), -- Corresponding_Body (Node5-Sem)
12135
12136 N_Accept_Statement =>
12137 (1 => True, -- Entry_Direct_Name (Node1)
12138 2 => True, -- Declarations (List2)
12139 3 => True, -- Parameter_Specifications (List3)
12140 4 => True, -- Handled_Statement_Sequence (Node4)
12141 5 => True), -- Entry_Index (Node5)
12142
12143 N_Entry_Body =>
12144 (1 => True, -- Defining_Identifier (Node1)
12145 2 => True, -- Declarations (List2)
12146 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12147 4 => True, -- Handled_Statement_Sequence (Node4)
12148 5 => True), -- Entry_Body_Formal_Part (Node5)
12149
12150 N_Entry_Body_Formal_Part =>
12151 (1 => True, -- Condition (Node1)
12152 2 => False, -- unused
12153 3 => True, -- Parameter_Specifications (List3)
12154 4 => True, -- Entry_Index_Specification (Node4)
12155 5 => False), -- unused
12156
12157 N_Entry_Index_Specification =>
12158 (1 => True, -- Defining_Identifier (Node1)
12159 2 => False, -- unused
12160 3 => False, -- unused
12161 4 => True, -- Discrete_Subtype_Definition (Node4)
12162 5 => False), -- unused
12163
12164 N_Entry_Call_Statement =>
12165 (1 => False, -- unused
12166 2 => True, -- Name (Node2)
12167 3 => True, -- Parameter_Associations (List3)
12168 4 => False, -- First_Named_Actual (Node4-Sem)
12169 5 => False), -- unused
12170
12171 N_Requeue_Statement =>
12172 (1 => False, -- unused
12173 2 => True, -- Name (Node2)
12174 3 => False, -- unused
12175 4 => False, -- unused
12176 5 => False), -- unused
12177
12178 N_Delay_Until_Statement =>
12179 (1 => False, -- unused
12180 2 => False, -- unused
12181 3 => True, -- Expression (Node3)
12182 4 => False, -- unused
12183 5 => False), -- unused
12184
12185 N_Delay_Relative_Statement =>
12186 (1 => False, -- unused
12187 2 => False, -- unused
12188 3 => True, -- Expression (Node3)
12189 4 => False, -- unused
12190 5 => False), -- unused
12191
12192 N_Selective_Accept =>
12193 (1 => True, -- Select_Alternatives (List1)
12194 2 => False, -- unused
12195 3 => False, -- unused
12196 4 => True, -- Else_Statements (List4)
12197 5 => False), -- unused
12198
12199 N_Accept_Alternative =>
12200 (1 => True, -- Condition (Node1)
12201 2 => True, -- Accept_Statement (Node2)
12202 3 => True, -- Statements (List3)
12203 4 => True, -- Pragmas_Before (List4)
12204 5 => False), -- Accept_Handler_Records (List5-Sem)
12205
12206 N_Delay_Alternative =>
12207 (1 => True, -- Condition (Node1)
12208 2 => True, -- Delay_Statement (Node2)
12209 3 => True, -- Statements (List3)
12210 4 => True, -- Pragmas_Before (List4)
12211 5 => False), -- unused
12212
12213 N_Terminate_Alternative =>
12214 (1 => True, -- Condition (Node1)
12215 2 => False, -- unused
12216 3 => False, -- unused
12217 4 => True, -- Pragmas_Before (List4)
12218 5 => True), -- Pragmas_After (List5)
12219
12220 N_Timed_Entry_Call =>
12221 (1 => True, -- Entry_Call_Alternative (Node1)
12222 2 => False, -- unused
12223 3 => False, -- unused
12224 4 => True, -- Delay_Alternative (Node4)
12225 5 => False), -- unused
12226
12227 N_Entry_Call_Alternative =>
12228 (1 => True, -- Entry_Call_Statement (Node1)
12229 2 => False, -- unused
12230 3 => True, -- Statements (List3)
12231 4 => True, -- Pragmas_Before (List4)
12232 5 => False), -- unused
12233
12234 N_Conditional_Entry_Call =>
12235 (1 => True, -- Entry_Call_Alternative (Node1)
12236 2 => False, -- unused
12237 3 => False, -- unused
12238 4 => True, -- Else_Statements (List4)
12239 5 => False), -- unused
12240
12241 N_Asynchronous_Select =>
12242 (1 => True, -- Triggering_Alternative (Node1)
12243 2 => True, -- Abortable_Part (Node2)
12244 3 => False, -- unused
12245 4 => False, -- unused
12246 5 => False), -- unused
12247
12248 N_Triggering_Alternative =>
12249 (1 => True, -- Triggering_Statement (Node1)
12250 2 => False, -- unused
12251 3 => True, -- Statements (List3)
12252 4 => True, -- Pragmas_Before (List4)
12253 5 => False), -- unused
12254
12255 N_Abortable_Part =>
12256 (1 => False, -- unused
12257 2 => False, -- unused
12258 3 => True, -- Statements (List3)
12259 4 => False, -- unused
12260 5 => False), -- unused
12261
12262 N_Abort_Statement =>
12263 (1 => False, -- unused
12264 2 => True, -- Names (List2)
12265 3 => False, -- unused
12266 4 => False, -- unused
12267 5 => False), -- unused
12268
12269 N_Compilation_Unit =>
12270 (1 => True, -- Context_Items (List1)
12271 2 => True, -- Unit (Node2)
12272 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
12273 4 => False, -- Library_Unit (Node4-Sem)
12274 5 => True), -- Aux_Decls_Node (Node5)
12275
12276 N_Compilation_Unit_Aux =>
12277 (1 => True, -- Actions (List1)
12278 2 => True, -- Declarations (List2)
12279 3 => False, -- Default_Storage_Pool (Node3)
12280 4 => True, -- Config_Pragmas (List4)
12281 5 => True), -- Pragmas_After (List5)
12282
12283 N_With_Clause =>
12284 (1 => False, -- unused
12285 2 => True, -- Name (Node2)
12286 3 => False, -- unused
12287 4 => False, -- Library_Unit (Node4-Sem)
12288 5 => False), -- Corresponding_Spec (Node5-Sem)
12289
12290 N_Subprogram_Body_Stub =>
12291 (1 => True, -- Specification (Node1)
12292 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12293 3 => False, -- unused
12294 4 => False, -- Library_Unit (Node4-Sem)
12295 5 => False), -- Corresponding_Body (Node5-Sem)
12296
12297 N_Package_Body_Stub =>
12298 (1 => True, -- Defining_Identifier (Node1)
12299 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12300 3 => False, -- unused
12301 4 => False, -- Library_Unit (Node4-Sem)
12302 5 => False), -- Corresponding_Body (Node5-Sem)
12303
12304 N_Task_Body_Stub =>
12305 (1 => True, -- Defining_Identifier (Node1)
12306 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12307 3 => False, -- unused
12308 4 => False, -- Library_Unit (Node4-Sem)
12309 5 => False), -- Corresponding_Body (Node5-Sem)
12310
12311 N_Protected_Body_Stub =>
12312 (1 => True, -- Defining_Identifier (Node1)
12313 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12314 3 => False, -- unused
12315 4 => False, -- Library_Unit (Node4-Sem)
12316 5 => False), -- Corresponding_Body (Node5-Sem)
12317
12318 N_Subunit =>
12319 (1 => True, -- Proper_Body (Node1)
12320 2 => True, -- Name (Node2)
12321 3 => False, -- Corresponding_Stub (Node3-Sem)
12322 4 => False, -- unused
12323 5 => False), -- unused
12324
12325 N_Exception_Declaration =>
12326 (1 => True, -- Defining_Identifier (Node1)
12327 2 => False, -- unused
12328 3 => False, -- Expression (Node3-Sem)
12329 4 => False, -- unused
12330 5 => False), -- unused
12331
12332 N_Handled_Sequence_Of_Statements =>
12333 (1 => True, -- At_End_Proc (Node1)
12334 2 => False, -- First_Real_Statement (Node2-Sem)
12335 3 => True, -- Statements (List3)
12336 4 => True, -- End_Label (Node4)
12337 5 => True), -- Exception_Handlers (List5)
12338
12339 N_Exception_Handler =>
12340 (1 => False, -- Local_Raise_Statements (Elist1)
12341 2 => True, -- Choice_Parameter (Node2)
12342 3 => True, -- Statements (List3)
12343 4 => True, -- Exception_Choices (List4)
12344 5 => False), -- Exception_Label (Node5)
12345
12346 N_Raise_Statement =>
12347 (1 => False, -- unused
12348 2 => True, -- Name (Node2)
12349 3 => True, -- Expression (Node3)
12350 4 => False, -- unused
12351 5 => False), -- unused
12352
12353 N_Raise_Expression =>
12354 (1 => False, -- unused
12355 2 => True, -- Name (Node2)
12356 3 => True, -- Expression (Node3)
12357 4 => False, -- unused
12358 5 => False), -- Etype (Node5-Sem)
12359
12360 N_Generic_Subprogram_Declaration =>
12361 (1 => True, -- Specification (Node1)
12362 2 => True, -- Generic_Formal_Declarations (List2)
12363 3 => False, -- unused
12364 4 => False, -- Parent_Spec (Node4-Sem)
12365 5 => False), -- Corresponding_Body (Node5-Sem)
12366
12367 N_Generic_Package_Declaration =>
12368 (1 => True, -- Specification (Node1)
12369 2 => True, -- Generic_Formal_Declarations (List2)
12370 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12371 4 => False, -- Parent_Spec (Node4-Sem)
12372 5 => False), -- Corresponding_Body (Node5-Sem)
12373
12374 N_Package_Instantiation =>
12375 (1 => True, -- Defining_Unit_Name (Node1)
12376 2 => True, -- Name (Node2)
12377 3 => True, -- Generic_Associations (List3)
12378 4 => False, -- Parent_Spec (Node4-Sem)
12379 5 => False), -- Instance_Spec (Node5-Sem)
12380
12381 N_Procedure_Instantiation =>
12382 (1 => True, -- Defining_Unit_Name (Node1)
12383 2 => True, -- Name (Node2)
12384 3 => True, -- Generic_Associations (List3)
12385 4 => False, -- Parent_Spec (Node4-Sem)
12386 5 => False), -- Instance_Spec (Node5-Sem)
12387
12388 N_Function_Instantiation =>
12389 (1 => True, -- Defining_Unit_Name (Node1)
12390 2 => True, -- Name (Node2)
12391 3 => True, -- Generic_Associations (List3)
12392 4 => False, -- Parent_Spec (Node4-Sem)
12393 5 => False), -- Instance_Spec (Node5-Sem)
12394
12395 N_Generic_Association =>
12396 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
12397 2 => True, -- Selector_Name (Node2)
12398 3 => False, -- unused
12399 4 => False, -- unused
12400 5 => False), -- unused
12401
12402 N_Formal_Object_Declaration =>
12403 (1 => True, -- Defining_Identifier (Node1)
12404 2 => False, -- unused
12405 3 => True, -- Access_Definition (Node3)
12406 4 => True, -- Subtype_Mark (Node4)
12407 5 => True), -- Default_Expression (Node5)
12408
12409 N_Formal_Type_Declaration =>
12410 (1 => True, -- Defining_Identifier (Node1)
12411 2 => False, -- unused
12412 3 => True, -- Formal_Type_Definition (Node3)
12413 4 => True, -- Discriminant_Specifications (List4)
12414 5 => False), -- unused
12415
12416 N_Formal_Private_Type_Definition =>
12417 (1 => False, -- unused
12418 2 => False, -- unused
12419 3 => False, -- unused
12420 4 => False, -- unused
12421 5 => False), -- unused
12422
12423 N_Formal_Incomplete_Type_Definition =>
12424 (1 => False, -- unused
12425 2 => False, -- unused
12426 3 => False, -- unused
12427 4 => False, -- unused
12428 5 => False), -- unused
12429
12430 N_Formal_Derived_Type_Definition =>
12431 (1 => False, -- unused
12432 2 => True, -- Interface_List (List2)
12433 3 => False, -- unused
12434 4 => True, -- Subtype_Mark (Node4)
12435 5 => False), -- unused
12436
12437 N_Formal_Discrete_Type_Definition =>
12438 (1 => False, -- unused
12439 2 => False, -- unused
12440 3 => False, -- unused
12441 4 => False, -- unused
12442 5 => False), -- unused
12443
12444 N_Formal_Signed_Integer_Type_Definition =>
12445 (1 => False, -- unused
12446 2 => False, -- unused
12447 3 => False, -- unused
12448 4 => False, -- unused
12449 5 => False), -- unused
12450
12451 N_Formal_Modular_Type_Definition =>
12452 (1 => False, -- unused
12453 2 => False, -- unused
12454 3 => False, -- unused
12455 4 => False, -- unused
12456 5 => False), -- unused
12457
12458 N_Formal_Floating_Point_Definition =>
12459 (1 => False, -- unused
12460 2 => False, -- unused
12461 3 => False, -- unused
12462 4 => False, -- unused
12463 5 => False), -- unused
12464
12465 N_Formal_Ordinary_Fixed_Point_Definition =>
12466 (1 => False, -- unused
12467 2 => False, -- unused
12468 3 => False, -- unused
12469 4 => False, -- unused
12470 5 => False), -- unused
12471
12472 N_Formal_Decimal_Fixed_Point_Definition =>
12473 (1 => False, -- unused
12474 2 => False, -- unused
12475 3 => False, -- unused
12476 4 => False, -- unused
12477 5 => False), -- unused
12478
12479 N_Formal_Concrete_Subprogram_Declaration =>
12480 (1 => True, -- Specification (Node1)
12481 2 => True, -- Default_Name (Node2)
12482 3 => False, -- unused
12483 4 => False, -- unused
12484 5 => False), -- unused
12485
12486 N_Formal_Abstract_Subprogram_Declaration =>
12487 (1 => True, -- Specification (Node1)
12488 2 => True, -- Default_Name (Node2)
12489 3 => False, -- unused
12490 4 => False, -- unused
12491 5 => False), -- unused
12492
12493 N_Formal_Package_Declaration =>
12494 (1 => True, -- Defining_Identifier (Node1)
12495 2 => True, -- Name (Node2)
12496 3 => True, -- Generic_Associations (List3)
12497 4 => False, -- unused
12498 5 => False), -- Instance_Spec (Node5-Sem)
12499
12500 N_Attribute_Definition_Clause =>
12501 (1 => True, -- Chars (Name1)
12502 2 => True, -- Name (Node2)
12503 3 => True, -- Expression (Node3)
12504 4 => False, -- unused
12505 5 => False), -- Next_Rep_Item (Node5-Sem)
12506
12507 N_Aspect_Specification =>
12508 (1 => True, -- Identifier (Node1)
12509 2 => False, -- Aspect_Rep_Item (Node2-Sem)
12510 3 => True, -- Expression (Node3)
12511 4 => False, -- Entity (Node4-Sem)
12512 5 => False), -- Next_Rep_Item (Node5-Sem)
12513
12514 N_Enumeration_Representation_Clause =>
12515 (1 => True, -- Identifier (Node1)
12516 2 => False, -- unused
12517 3 => True, -- Array_Aggregate (Node3)
12518 4 => False, -- unused
12519 5 => False), -- Next_Rep_Item (Node5-Sem)
12520
12521 N_Record_Representation_Clause =>
12522 (1 => True, -- Identifier (Node1)
12523 2 => True, -- Mod_Clause (Node2)
12524 3 => True, -- Component_Clauses (List3)
12525 4 => False, -- unused
12526 5 => False), -- Next_Rep_Item (Node5-Sem)
12527
12528 N_Component_Clause =>
12529 (1 => True, -- Component_Name (Node1)
12530 2 => True, -- Position (Node2)
12531 3 => True, -- First_Bit (Node3)
12532 4 => True, -- Last_Bit (Node4)
12533 5 => False), -- unused
12534
12535 N_Code_Statement =>
12536 (1 => False, -- unused
12537 2 => False, -- unused
12538 3 => True, -- Expression (Node3)
12539 4 => False, -- unused
12540 5 => False), -- unused
12541
12542 N_Op_Rotate_Left =>
12543 (1 => True, -- Chars (Name1)
12544 2 => True, -- Left_Opnd (Node2)
12545 3 => True, -- Right_Opnd (Node3)
12546 4 => False, -- Entity (Node4-Sem)
12547 5 => False), -- Etype (Node5-Sem)
12548
12549 N_Op_Rotate_Right =>
12550 (1 => True, -- Chars (Name1)
12551 2 => True, -- Left_Opnd (Node2)
12552 3 => True, -- Right_Opnd (Node3)
12553 4 => False, -- Entity (Node4-Sem)
12554 5 => False), -- Etype (Node5-Sem)
12555
12556 N_Op_Shift_Left =>
12557 (1 => True, -- Chars (Name1)
12558 2 => True, -- Left_Opnd (Node2)
12559 3 => True, -- Right_Opnd (Node3)
12560 4 => False, -- Entity (Node4-Sem)
12561 5 => False), -- Etype (Node5-Sem)
12562
12563 N_Op_Shift_Right_Arithmetic =>
12564 (1 => True, -- Chars (Name1)
12565 2 => True, -- Left_Opnd (Node2)
12566 3 => True, -- Right_Opnd (Node3)
12567 4 => False, -- Entity (Node4-Sem)
12568 5 => False), -- Etype (Node5-Sem)
12569
12570 N_Op_Shift_Right =>
12571 (1 => True, -- Chars (Name1)
12572 2 => True, -- Left_Opnd (Node2)
12573 3 => True, -- Right_Opnd (Node3)
12574 4 => False, -- Entity (Node4-Sem)
12575 5 => False), -- Etype (Node5-Sem)
12576
12577 N_Delta_Constraint =>
12578 (1 => False, -- unused
12579 2 => False, -- unused
12580 3 => True, -- Delta_Expression (Node3)
12581 4 => True, -- Range_Constraint (Node4)
12582 5 => False), -- unused
12583
12584 N_At_Clause =>
12585 (1 => True, -- Identifier (Node1)
12586 2 => False, -- unused
12587 3 => True, -- Expression (Node3)
12588 4 => False, -- unused
12589 5 => False), -- unused
12590
12591 N_Mod_Clause =>
12592 (1 => False, -- unused
12593 2 => False, -- unused
12594 3 => True, -- Expression (Node3)
12595 4 => True, -- Pragmas_Before (List4)
12596 5 => False), -- unused
12597
12598 N_If_Expression =>
12599 (1 => True, -- Expressions (List1)
12600 2 => False, -- Then_Actions (List2-Sem)
12601 3 => False, -- Else_Actions (List3-Sem)
12602 4 => False, -- unused
12603 5 => False), -- Etype (Node5-Sem)
12604
12605 N_Compound_Statement =>
12606 (1 => True, -- Actions (List1)
12607 2 => False, -- unused
12608 3 => False, -- unused
12609 4 => False, -- unused
12610 5 => False), -- unused
12611
12612 N_Contract =>
12613 (1 => False, -- Pre_Post_Conditions (Node1-Sem)
12614 2 => False, -- Contract_Test_Cases (Node2-Sem)
12615 3 => False, -- Classifications (Node3-Sem)
12616 4 => False, -- unused
12617 5 => False), -- unused
12618
12619 N_Expanded_Name =>
12620 (1 => True, -- Chars (Name1)
12621 2 => True, -- Selector_Name (Node2)
12622 3 => True, -- Prefix (Node3)
12623 4 => False, -- Entity (Node4-Sem)
12624 5 => False), -- Etype (Node5-Sem)
12625
12626 N_Expression_With_Actions =>
12627 (1 => True, -- Actions (List1)
12628 2 => False, -- unused
12629 3 => True, -- Expression (Node3)
12630 4 => False, -- unused
12631 5 => False), -- unused
12632
12633 N_Free_Statement =>
12634 (1 => False, -- Storage_Pool (Node1-Sem)
12635 2 => False, -- Procedure_To_Call (Node2-Sem)
12636 3 => True, -- Expression (Node3)
12637 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
12638 5 => False), -- unused
12639
12640 N_Freeze_Entity =>
12641 (1 => True, -- Actions (List1)
12642 2 => False, -- Access_Types_To_Process (Elist2-Sem)
12643 3 => False, -- TSS_Elist (Elist3-Sem)
12644 4 => False, -- Entity (Node4-Sem)
12645 5 => False), -- First_Subtype_Link (Node5-Sem)
12646
12647 N_Freeze_Generic_Entity =>
12648 (1 => False, -- unused
12649 2 => False, -- unused
12650 3 => False, -- unused
12651 4 => False, -- Entity (Node4-Sem)
12652 5 => False), -- unused
12653
12654 N_Implicit_Label_Declaration =>
12655 (1 => True, -- Defining_Identifier (Node1)
12656 2 => False, -- Label_Construct (Node2-Sem)
12657 3 => False, -- unused
12658 4 => False, -- unused
12659 5 => False), -- unused
12660
12661 N_Itype_Reference =>
12662 (1 => False, -- Itype (Node1-Sem)
12663 2 => False, -- unused
12664 3 => False, -- unused
12665 4 => False, -- unused
12666 5 => False), -- unused
12667
12668 N_Raise_Constraint_Error =>
12669 (1 => True, -- Condition (Node1)
12670 2 => False, -- unused
12671 3 => True, -- Reason (Uint3)
12672 4 => False, -- unused
12673 5 => False), -- Etype (Node5-Sem)
12674
12675 N_Raise_Program_Error =>
12676 (1 => True, -- Condition (Node1)
12677 2 => False, -- unused
12678 3 => True, -- Reason (Uint3)
12679 4 => False, -- unused
12680 5 => False), -- Etype (Node5-Sem)
12681
12682 N_Raise_Storage_Error =>
12683 (1 => True, -- Condition (Node1)
12684 2 => False, -- unused
12685 3 => True, -- Reason (Uint3)
12686 4 => False, -- unused
12687 5 => False), -- Etype (Node5-Sem)
12688
12689 N_Push_Constraint_Error_Label =>
12690 (1 => False, -- unused
12691 2 => False, -- unused
12692 3 => False, -- unused
12693 4 => False, -- unused
12694 5 => False), -- unused
12695
12696 N_Push_Program_Error_Label =>
12697 (1 => False, -- unused
12698 2 => False, -- unused
12699 3 => False, -- unused
12700 4 => False, -- unused
12701 5 => False), -- Exception_Label
12702
12703 N_Push_Storage_Error_Label =>
12704 (1 => False, -- unused
12705 2 => False, -- unused
12706 3 => False, -- unused
12707 4 => False, -- unused
12708 5 => False), -- Exception_Label
12709
12710 N_Pop_Constraint_Error_Label =>
12711 (1 => False, -- unused
12712 2 => False, -- unused
12713 3 => False, -- unused
12714 4 => False, -- unused
12715 5 => False), -- unused
12716
12717 N_Pop_Program_Error_Label =>
12718 (1 => False, -- unused
12719 2 => False, -- unused
12720 3 => False, -- unused
12721 4 => False, -- unused
12722 5 => False), -- unused
12723
12724 N_Pop_Storage_Error_Label =>
12725 (1 => False, -- unused
12726 2 => False, -- unused
12727 3 => False, -- unused
12728 4 => False, -- unused
12729 5 => False), -- unused
12730
12731 N_Reference =>
12732 (1 => False, -- unused
12733 2 => False, -- unused
12734 3 => True, -- Prefix (Node3)
12735 4 => False, -- unused
12736 5 => False), -- Etype (Node5-Sem)
12737
12738 N_Unchecked_Expression =>
12739 (1 => False, -- unused
12740 2 => False, -- unused
12741 3 => True, -- Expression (Node3)
12742 4 => False, -- unused
12743 5 => False), -- Etype (Node5-Sem)
12744
12745 N_Unchecked_Type_Conversion =>
12746 (1 => False, -- unused
12747 2 => False, -- unused
12748 3 => True, -- Expression (Node3)
12749 4 => True, -- Subtype_Mark (Node4)
12750 5 => False), -- Etype (Node5-Sem)
12751
12752 N_Validate_Unchecked_Conversion =>
12753 (1 => False, -- Source_Type (Node1-Sem)
12754 2 => False, -- Target_Type (Node2-Sem)
12755 3 => False, -- unused
12756 4 => False, -- unused
12757 5 => False), -- unused
12758
12759 -- Entries for SCIL nodes
12760
12761 N_SCIL_Dispatch_Table_Tag_Init =>
12762 (1 => False, -- unused
12763 2 => False, -- unused
12764 3 => False, -- unused
12765 4 => False, -- SCIL_Entity (Node4-Sem)
12766 5 => False), -- unused
12767
12768 N_SCIL_Dispatching_Call =>
12769 (1 => False, -- unused
12770 2 => False, -- SCIL_Target_Prim (Node2-Sem)
12771 3 => False, -- unused
12772 4 => False, -- SCIL_Entity (Node4-Sem)
12773 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
12774
12775 N_SCIL_Membership_Test =>
12776 (1 => False, -- unused
12777 2 => False, -- unused
12778 3 => False, -- unused
12779 4 => False, -- SCIL_Entity (Node4-Sem)
12780 5 => False), -- SCIL_Tag_Value (Node5-Sem)
12781
12782 -- Entries for Empty, Error and Unused. Even thought these have a Chars
12783 -- field for debugging purposes, they are not really syntactic fields, so
12784 -- we mark all fields as unused.
12785
12786 N_Empty =>
12787 (1 => False, -- unused
12788 2 => False, -- unused
12789 3 => False, -- unused
12790 4 => False, -- unused
12791 5 => False), -- unused
12792
12793 N_Error =>
12794 (1 => False, -- unused
12795 2 => False, -- unused
12796 3 => False, -- unused
12797 4 => False, -- unused
12798 5 => False), -- unused
12799
12800 N_Unused_At_Start =>
12801 (1 => False, -- unused
12802 2 => False, -- unused
12803 3 => False, -- unused
12804 4 => False, -- unused
12805 5 => False), -- unused
12806
12807 N_Unused_At_End =>
12808 (1 => False, -- unused
12809 2 => False, -- unused
12810 3 => False, -- unused
12811 4 => False, -- unused
12812 5 => False)); -- unused
12813
12814 --------------------
12815 -- Inline Pragmas --
12816 --------------------
12817
12818 pragma Inline (ABE_Is_Certain);
12819 pragma Inline (Abort_Present);
12820 pragma Inline (Abortable_Part);
12821 pragma Inline (Abstract_Present);
12822 pragma Inline (Accept_Handler_Records);
12823 pragma Inline (Accept_Statement);
12824 pragma Inline (Access_Definition);
12825 pragma Inline (Access_To_Subprogram_Definition);
12826 pragma Inline (Access_Types_To_Process);
12827 pragma Inline (Actions);
12828 pragma Inline (Activation_Chain_Entity);
12829 pragma Inline (Acts_As_Spec);
12830 pragma Inline (Actual_Designated_Subtype);
12831 pragma Inline (Address_Warning_Posted);
12832 pragma Inline (Aggregate_Bounds);
12833 pragma Inline (Aliased_Present);
12834 pragma Inline (All_Others);
12835 pragma Inline (All_Present);
12836 pragma Inline (Alternatives);
12837 pragma Inline (Ancestor_Part);
12838 pragma Inline (Atomic_Sync_Required);
12839 pragma Inline (Array_Aggregate);
12840 pragma Inline (Aspect_Rep_Item);
12841 pragma Inline (Assignment_OK);
12842 pragma Inline (Associated_Node);
12843 pragma Inline (At_End_Proc);
12844 pragma Inline (Attribute_Name);
12845 pragma Inline (Aux_Decls_Node);
12846 pragma Inline (Backwards_OK);
12847 pragma Inline (Bad_Is_Detected);
12848 pragma Inline (Body_To_Inline);
12849 pragma Inline (Body_Required);
12850 pragma Inline (By_Ref);
12851 pragma Inline (Box_Present);
12852 pragma Inline (Char_Literal_Value);
12853 pragma Inline (Chars);
12854 pragma Inline (Check_Address_Alignment);
12855 pragma Inline (Choice_Parameter);
12856 pragma Inline (Choices);
12857 pragma Inline (Class_Present);
12858 pragma Inline (Classifications);
12859 pragma Inline (Cleanup_Actions);
12860 pragma Inline (Comes_From_Extended_Return_Statement);
12861 pragma Inline (Compile_Time_Known_Aggregate);
12862 pragma Inline (Component_Associations);
12863 pragma Inline (Component_Clauses);
12864 pragma Inline (Component_Definition);
12865 pragma Inline (Component_Items);
12866 pragma Inline (Component_List);
12867 pragma Inline (Component_Name);
12868 pragma Inline (Componentwise_Assignment);
12869 pragma Inline (Condition);
12870 pragma Inline (Condition_Actions);
12871 pragma Inline (Config_Pragmas);
12872 pragma Inline (Constant_Present);
12873 pragma Inline (Constraint);
12874 pragma Inline (Constraints);
12875 pragma Inline (Context_Installed);
12876 pragma Inline (Context_Items);
12877 pragma Inline (Context_Pending);
12878 pragma Inline (Contract_Test_Cases);
12879 pragma Inline (Controlling_Argument);
12880 pragma Inline (Convert_To_Return_False);
12881 pragma Inline (Conversion_OK);
12882 pragma Inline (Corresponding_Aspect);
12883 pragma Inline (Corresponding_Body);
12884 pragma Inline (Corresponding_Formal_Spec);
12885 pragma Inline (Corresponding_Generic_Association);
12886 pragma Inline (Corresponding_Integer_Value);
12887 pragma Inline (Corresponding_Spec);
12888 pragma Inline (Corresponding_Spec_Of_Stub);
12889 pragma Inline (Corresponding_Stub);
12890 pragma Inline (Dcheck_Function);
12891 pragma Inline (Declarations);
12892 pragma Inline (Default_Expression);
12893 pragma Inline (Default_Storage_Pool);
12894 pragma Inline (Default_Name);
12895 pragma Inline (Defining_Identifier);
12896 pragma Inline (Defining_Unit_Name);
12897 pragma Inline (Delay_Alternative);
12898 pragma Inline (Delay_Statement);
12899 pragma Inline (Delta_Expression);
12900 pragma Inline (Digits_Expression);
12901 pragma Inline (Discr_Check_Funcs_Built);
12902 pragma Inline (Discrete_Choices);
12903 pragma Inline (Discrete_Range);
12904 pragma Inline (Discrete_Subtype_Definition);
12905 pragma Inline (Discrete_Subtype_Definitions);
12906 pragma Inline (Discriminant_Specifications);
12907 pragma Inline (Discriminant_Type);
12908 pragma Inline (Do_Accessibility_Check);
12909 pragma Inline (Do_Discriminant_Check);
12910 pragma Inline (Do_Length_Check);
12911 pragma Inline (Do_Division_Check);
12912 pragma Inline (Do_Overflow_Check);
12913 pragma Inline (Do_Range_Check);
12914 pragma Inline (Do_Storage_Check);
12915 pragma Inline (Do_Tag_Check);
12916 pragma Inline (Elaborate_Present);
12917 pragma Inline (Elaborate_All_Desirable);
12918 pragma Inline (Elaborate_All_Present);
12919 pragma Inline (Elaborate_Desirable);
12920 pragma Inline (Else_Actions);
12921 pragma Inline (Else_Statements);
12922 pragma Inline (Elsif_Parts);
12923 pragma Inline (Enclosing_Variant);
12924 pragma Inline (End_Label);
12925 pragma Inline (End_Span);
12926 pragma Inline (Entity);
12927 pragma Inline (Entity_Or_Associated_Node);
12928 pragma Inline (Entry_Body_Formal_Part);
12929 pragma Inline (Entry_Call_Alternative);
12930 pragma Inline (Entry_Call_Statement);
12931 pragma Inline (Entry_Direct_Name);
12932 pragma Inline (Entry_Index);
12933 pragma Inline (Entry_Index_Specification);
12934 pragma Inline (Etype);
12935 pragma Inline (Exception_Choices);
12936 pragma Inline (Exception_Handlers);
12937 pragma Inline (Exception_Junk);
12938 pragma Inline (Exception_Label);
12939 pragma Inline (Expansion_Delayed);
12940 pragma Inline (Explicit_Actual_Parameter);
12941 pragma Inline (Explicit_Generic_Actual_Parameter);
12942 pragma Inline (Expression);
12943 pragma Inline (Expression_Copy);
12944 pragma Inline (Expressions);
12945 pragma Inline (First_Bit);
12946 pragma Inline (First_Inlined_Subprogram);
12947 pragma Inline (First_Name);
12948 pragma Inline (First_Named_Actual);
12949 pragma Inline (First_Real_Statement);
12950 pragma Inline (First_Subtype_Link);
12951 pragma Inline (Float_Truncate);
12952 pragma Inline (Formal_Type_Definition);
12953 pragma Inline (Forwards_OK);
12954 pragma Inline (From_Aspect_Specification);
12955 pragma Inline (From_At_End);
12956 pragma Inline (From_At_Mod);
12957 pragma Inline (From_Conditional_Expression);
12958 pragma Inline (From_Default);
12959 pragma Inline (Generalized_Indexing);
12960 pragma Inline (Generic_Associations);
12961 pragma Inline (Generic_Formal_Declarations);
12962 pragma Inline (Generic_Parent);
12963 pragma Inline (Generic_Parent_Type);
12964 pragma Inline (Handled_Statement_Sequence);
12965 pragma Inline (Handler_List_Entry);
12966 pragma Inline (Has_Created_Identifier);
12967 pragma Inline (Has_Dereference_Action);
12968 pragma Inline (Has_Dynamic_Length_Check);
12969 pragma Inline (Has_Dynamic_Range_Check);
12970 pragma Inline (Has_Init_Expression);
12971 pragma Inline (Has_Local_Raise);
12972 pragma Inline (Has_Self_Reference);
12973 pragma Inline (Has_SP_Choice);
12974 pragma Inline (Has_No_Elaboration_Code);
12975 pragma Inline (Has_Pragma_Suppress_All);
12976 pragma Inline (Has_Private_View);
12977 pragma Inline (Has_Relative_Deadline_Pragma);
12978 pragma Inline (Has_Storage_Size_Pragma);
12979 pragma Inline (Has_Target_Names);
12980 pragma Inline (Has_Wide_Character);
12981 pragma Inline (Has_Wide_Wide_Character);
12982 pragma Inline (Header_Size_Added);
12983 pragma Inline (Hidden_By_Use_Clause);
12984 pragma Inline (High_Bound);
12985 pragma Inline (Identifier);
12986 pragma Inline (Implicit_With);
12987 pragma Inline (Implicit_With_From_Instantiation);
12988 pragma Inline (Interface_List);
12989 pragma Inline (Interface_Present);
12990 pragma Inline (Includes_Infinities);
12991 pragma Inline (Import_Interface_Present);
12992 pragma Inline (In_Present);
12993 pragma Inline (Incomplete_View);
12994 pragma Inline (Inherited_Discriminant);
12995 pragma Inline (Instance_Spec);
12996 pragma Inline (Intval);
12997 pragma Inline (Iterator_Specification);
12998 pragma Inline (Is_Abort_Block);
12999 pragma Inline (Is_Accessibility_Actual);
13000 pragma Inline (Is_Analyzed_Pragma);
13001 pragma Inline (Is_Asynchronous_Call_Block);
13002 pragma Inline (Is_Boolean_Aspect);
13003 pragma Inline (Is_Checked);
13004 pragma Inline (Is_Checked_Ghost_Pragma);
13005 pragma Inline (Is_Component_Left_Opnd);
13006 pragma Inline (Is_Component_Right_Opnd);
13007 pragma Inline (Is_Controlling_Actual);
13008 pragma Inline (Is_Delayed_Aspect);
13009 pragma Inline (Is_Disabled);
13010 pragma Inline (Is_Dynamic_Coextension);
13011 pragma Inline (Is_Elsif);
13012 pragma Inline (Is_Entry_Barrier_Function);
13013 pragma Inline (Is_Expanded_Build_In_Place_Call);
13014 pragma Inline (Is_Expanded_Contract);
13015 pragma Inline (Is_Finalization_Wrapper);
13016 pragma Inline (Is_Folded_In_Parser);
13017 pragma Inline (Is_Generic_Contract_Pragma);
13018 pragma Inline (Is_Ignored);
13019 pragma Inline (Is_Ignored_Ghost_Pragma);
13020 pragma Inline (Is_In_Discriminant_Check);
13021 pragma Inline (Is_Inherited_Pragma);
13022 pragma Inline (Is_Machine_Number);
13023 pragma Inline (Is_Null_Loop);
13024 pragma Inline (Is_Overloaded);
13025 pragma Inline (Is_Power_Of_2_For_Shift);
13026 pragma Inline (Is_Prefixed_Call);
13027 pragma Inline (Is_Protected_Subprogram_Body);
13028 pragma Inline (Is_Qualified_Universal_Literal);
13029 pragma Inline (Is_Static_Coextension);
13030 pragma Inline (Is_Static_Expression);
13031 pragma Inline (Is_Subprogram_Descriptor);
13032 pragma Inline (Is_Task_Allocation_Block);
13033 pragma Inline (Is_Task_Body_Procedure);
13034 pragma Inline (Is_Task_Master);
13035 pragma Inline (Iteration_Scheme);
13036 pragma Inline (Itype);
13037 pragma Inline (Kill_Range_Check);
13038 pragma Inline (Last_Bit);
13039 pragma Inline (Last_Name);
13040 pragma Inline (Library_Unit);
13041 pragma Inline (Label_Construct);
13042 pragma Inline (Left_Opnd);
13043 pragma Inline (Limited_View_Installed);
13044 pragma Inline (Limited_Present);
13045 pragma Inline (Literals);
13046 pragma Inline (Local_Raise_Not_OK);
13047 pragma Inline (Local_Raise_Statements);
13048 pragma Inline (Loop_Actions);
13049 pragma Inline (Loop_Parameter_Specification);
13050 pragma Inline (Low_Bound);
13051 pragma Inline (Mod_Clause);
13052 pragma Inline (More_Ids);
13053 pragma Inline (Must_Be_Byte_Aligned);
13054 pragma Inline (Must_Not_Freeze);
13055 pragma Inline (Must_Not_Override);
13056 pragma Inline (Must_Override);
13057 pragma Inline (Name);
13058 pragma Inline (Names);
13059 pragma Inline (Next_Entity);
13060 pragma Inline (Next_Exit_Statement);
13061 pragma Inline (Next_Implicit_With);
13062 pragma Inline (Next_Named_Actual);
13063 pragma Inline (Next_Pragma);
13064 pragma Inline (Next_Rep_Item);
13065 pragma Inline (Next_Use_Clause);
13066 pragma Inline (No_Ctrl_Actions);
13067 pragma Inline (No_Elaboration_Check);
13068 pragma Inline (No_Entities_Ref_In_Spec);
13069 pragma Inline (No_Initialization);
13070 pragma Inline (No_Minimize_Eliminate);
13071 pragma Inline (No_Side_Effect_Removal);
13072 pragma Inline (No_Truncation);
13073 pragma Inline (Non_Aliased_Prefix);
13074 pragma Inline (Null_Present);
13075 pragma Inline (Null_Excluding_Subtype);
13076 pragma Inline (Null_Exclusion_Present);
13077 pragma Inline (Null_Exclusion_In_Return_Present);
13078 pragma Inline (Null_Record_Present);
13079 pragma Inline (Object_Definition);
13080 pragma Inline (Of_Present);
13081 pragma Inline (Original_Discriminant);
13082 pragma Inline (Original_Entity);
13083 pragma Inline (Others_Discrete_Choices);
13084 pragma Inline (Out_Present);
13085 pragma Inline (Parameter_Associations);
13086 pragma Inline (Parameter_Specifications);
13087 pragma Inline (Parameter_Type);
13088 pragma Inline (Parent_Spec);
13089 pragma Inline (Position);
13090 pragma Inline (Pragma_Argument_Associations);
13091 pragma Inline (Pragma_Identifier);
13092 pragma Inline (Pragmas_After);
13093 pragma Inline (Pragmas_Before);
13094 pragma Inline (Pre_Post_Conditions);
13095 pragma Inline (Prefix);
13096 pragma Inline (Premature_Use);
13097 pragma Inline (Present_Expr);
13098 pragma Inline (Prev_Ids);
13099 pragma Inline (Print_In_Hex);
13100 pragma Inline (Private_Declarations);
13101 pragma Inline (Private_Present);
13102 pragma Inline (Procedure_To_Call);
13103 pragma Inline (Proper_Body);
13104 pragma Inline (Protected_Definition);
13105 pragma Inline (Protected_Present);
13106 pragma Inline (Raises_Constraint_Error);
13107 pragma Inline (Range_Constraint);
13108 pragma Inline (Range_Expression);
13109 pragma Inline (Real_Range_Specification);
13110 pragma Inline (Realval);
13111 pragma Inline (Reason);
13112 pragma Inline (Record_Extension_Part);
13113 pragma Inline (Redundant_Use);
13114 pragma Inline (Renaming_Exception);
13115 pragma Inline (Result_Definition);
13116 pragma Inline (Return_Object_Declarations);
13117 pragma Inline (Return_Statement_Entity);
13118 pragma Inline (Reverse_Present);
13119 pragma Inline (Right_Opnd);
13120 pragma Inline (Rounded_Result);
13121 pragma Inline (SCIL_Controlling_Tag);
13122 pragma Inline (SCIL_Entity);
13123 pragma Inline (SCIL_Tag_Value);
13124 pragma Inline (SCIL_Target_Prim);
13125 pragma Inline (Scope);
13126 pragma Inline (Select_Alternatives);
13127 pragma Inline (Selector_Name);
13128 pragma Inline (Selector_Names);
13129 pragma Inline (Shift_Count_OK);
13130 pragma Inline (Source_Type);
13131 pragma Inline (Specification);
13132 pragma Inline (Split_PPC);
13133 pragma Inline (Statements);
13134 pragma Inline (Storage_Pool);
13135 pragma Inline (Subpool_Handle_Name);
13136 pragma Inline (Strval);
13137 pragma Inline (Subtype_Indication);
13138 pragma Inline (Subtype_Mark);
13139 pragma Inline (Subtype_Marks);
13140 pragma Inline (Suppress_Assignment_Checks);
13141 pragma Inline (Suppress_Loop_Warnings);
13142 pragma Inline (Synchronized_Present);
13143 pragma Inline (Tagged_Present);
13144 pragma Inline (Target_Type);
13145 pragma Inline (Task_Definition);
13146 pragma Inline (Task_Present);
13147 pragma Inline (Then_Actions);
13148 pragma Inline (Then_Statements);
13149 pragma Inline (Triggering_Alternative);
13150 pragma Inline (Triggering_Statement);
13151 pragma Inline (Treat_Fixed_As_Integer);
13152 pragma Inline (TSS_Elist);
13153 pragma Inline (Type_Definition);
13154 pragma Inline (Uneval_Old_Accept);
13155 pragma Inline (Uneval_Old_Warn);
13156 pragma Inline (Unit);
13157 pragma Inline (Uninitialized_Variable);
13158 pragma Inline (Unknown_Discriminants_Present);
13159 pragma Inline (Unreferenced_In_Spec);
13160 pragma Inline (Variant_Part);
13161 pragma Inline (Variants);
13162 pragma Inline (Visible_Declarations);
13163 pragma Inline (Used_Operations);
13164 pragma Inline (Was_Expression_Function);
13165 pragma Inline (Was_Originally_Stub);
13166 pragma Inline (Withed_Body);
13167
13168 pragma Inline (Set_ABE_Is_Certain);
13169 pragma Inline (Set_Abort_Present);
13170 pragma Inline (Set_Abortable_Part);
13171 pragma Inline (Set_Abstract_Present);
13172 pragma Inline (Set_Accept_Handler_Records);
13173 pragma Inline (Set_Accept_Statement);
13174 pragma Inline (Set_Access_Definition);
13175 pragma Inline (Set_Access_To_Subprogram_Definition);
13176 pragma Inline (Set_Access_Types_To_Process);
13177 pragma Inline (Set_Actions);
13178 pragma Inline (Set_Activation_Chain_Entity);
13179 pragma Inline (Set_Acts_As_Spec);
13180 pragma Inline (Set_Actual_Designated_Subtype);
13181 pragma Inline (Set_Address_Warning_Posted);
13182 pragma Inline (Set_Aggregate_Bounds);
13183 pragma Inline (Set_Aliased_Present);
13184 pragma Inline (Set_All_Others);
13185 pragma Inline (Set_All_Present);
13186 pragma Inline (Set_Alternatives);
13187 pragma Inline (Set_Ancestor_Part);
13188 pragma Inline (Set_Array_Aggregate);
13189 pragma Inline (Set_Aspect_Rep_Item);
13190 pragma Inline (Set_Assignment_OK);
13191 pragma Inline (Set_Associated_Node);
13192 pragma Inline (Set_At_End_Proc);
13193 pragma Inline (Set_Atomic_Sync_Required);
13194 pragma Inline (Set_Attribute_Name);
13195 pragma Inline (Set_Aux_Decls_Node);
13196 pragma Inline (Set_Backwards_OK);
13197 pragma Inline (Set_Bad_Is_Detected);
13198 pragma Inline (Set_Body_Required);
13199 pragma Inline (Set_Body_To_Inline);
13200 pragma Inline (Set_Box_Present);
13201 pragma Inline (Set_By_Ref);
13202 pragma Inline (Set_Char_Literal_Value);
13203 pragma Inline (Set_Chars);
13204 pragma Inline (Set_Check_Address_Alignment);
13205 pragma Inline (Set_Choice_Parameter);
13206 pragma Inline (Set_Choices);
13207 pragma Inline (Set_Class_Present);
13208 pragma Inline (Set_Classifications);
13209 pragma Inline (Set_Cleanup_Actions);
13210 pragma Inline (Set_Comes_From_Extended_Return_Statement);
13211 pragma Inline (Set_Compile_Time_Known_Aggregate);
13212 pragma Inline (Set_Component_Associations);
13213 pragma Inline (Set_Component_Clauses);
13214 pragma Inline (Set_Component_Definition);
13215 pragma Inline (Set_Component_Items);
13216 pragma Inline (Set_Component_List);
13217 pragma Inline (Set_Component_Name);
13218 pragma Inline (Set_Componentwise_Assignment);
13219 pragma Inline (Set_Condition);
13220 pragma Inline (Set_Condition_Actions);
13221 pragma Inline (Set_Config_Pragmas);
13222 pragma Inline (Set_Constant_Present);
13223 pragma Inline (Set_Constraint);
13224 pragma Inline (Set_Constraints);
13225 pragma Inline (Set_Context_Installed);
13226 pragma Inline (Set_Context_Items);
13227 pragma Inline (Set_Context_Pending);
13228 pragma Inline (Set_Contract_Test_Cases);
13229 pragma Inline (Set_Controlling_Argument);
13230 pragma Inline (Set_Conversion_OK);
13231 pragma Inline (Set_Convert_To_Return_False);
13232 pragma Inline (Set_Corresponding_Aspect);
13233 pragma Inline (Set_Corresponding_Body);
13234 pragma Inline (Set_Corresponding_Formal_Spec);
13235 pragma Inline (Set_Corresponding_Generic_Association);
13236 pragma Inline (Set_Corresponding_Integer_Value);
13237 pragma Inline (Set_Corresponding_Spec);
13238 pragma Inline (Set_Corresponding_Spec_Of_Stub);
13239 pragma Inline (Set_Corresponding_Stub);
13240 pragma Inline (Set_Dcheck_Function);
13241 pragma Inline (Set_Declarations);
13242 pragma Inline (Set_Default_Expression);
13243 pragma Inline (Set_Default_Name);
13244 pragma Inline (Set_Default_Storage_Pool);
13245 pragma Inline (Set_Defining_Identifier);
13246 pragma Inline (Set_Defining_Unit_Name);
13247 pragma Inline (Set_Delay_Alternative);
13248 pragma Inline (Set_Delay_Statement);
13249 pragma Inline (Set_Delta_Expression);
13250 pragma Inline (Set_Digits_Expression);
13251 pragma Inline (Set_Discr_Check_Funcs_Built);
13252 pragma Inline (Set_Discrete_Choices);
13253 pragma Inline (Set_Discrete_Range);
13254 pragma Inline (Set_Discrete_Subtype_Definition);
13255 pragma Inline (Set_Discrete_Subtype_Definitions);
13256 pragma Inline (Set_Discriminant_Specifications);
13257 pragma Inline (Set_Discriminant_Type);
13258 pragma Inline (Set_Do_Accessibility_Check);
13259 pragma Inline (Set_Do_Discriminant_Check);
13260 pragma Inline (Set_Do_Division_Check);
13261 pragma Inline (Set_Do_Length_Check);
13262 pragma Inline (Set_Do_Overflow_Check);
13263 pragma Inline (Set_Do_Range_Check);
13264 pragma Inline (Set_Do_Storage_Check);
13265 pragma Inline (Set_Do_Tag_Check);
13266 pragma Inline (Set_Elaborate_All_Desirable);
13267 pragma Inline (Set_Elaborate_All_Present);
13268 pragma Inline (Set_Elaborate_Desirable);
13269 pragma Inline (Set_Elaborate_Present);
13270 pragma Inline (Set_Else_Actions);
13271 pragma Inline (Set_Else_Statements);
13272 pragma Inline (Set_Elsif_Parts);
13273 pragma Inline (Set_Enclosing_Variant);
13274 pragma Inline (Set_End_Label);
13275 pragma Inline (Set_End_Span);
13276 pragma Inline (Set_Entity);
13277 pragma Inline (Set_Entry_Body_Formal_Part);
13278 pragma Inline (Set_Entry_Call_Alternative);
13279 pragma Inline (Set_Entry_Call_Statement);
13280 pragma Inline (Set_Entry_Direct_Name);
13281 pragma Inline (Set_Entry_Index);
13282 pragma Inline (Set_Entry_Index_Specification);
13283 pragma Inline (Set_Etype);
13284 pragma Inline (Set_Exception_Choices);
13285 pragma Inline (Set_Exception_Handlers);
13286 pragma Inline (Set_Exception_Junk);
13287 pragma Inline (Set_Exception_Label);
13288 pragma Inline (Set_Expansion_Delayed);
13289 pragma Inline (Set_Explicit_Actual_Parameter);
13290 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
13291 pragma Inline (Set_Expression);
13292 pragma Inline (Set_Expression_Copy);
13293 pragma Inline (Set_Expressions);
13294 pragma Inline (Set_First_Bit);
13295 pragma Inline (Set_First_Inlined_Subprogram);
13296 pragma Inline (Set_First_Name);
13297 pragma Inline (Set_First_Named_Actual);
13298 pragma Inline (Set_First_Real_Statement);
13299 pragma Inline (Set_First_Subtype_Link);
13300 pragma Inline (Set_Float_Truncate);
13301 pragma Inline (Set_Formal_Type_Definition);
13302 pragma Inline (Set_Forwards_OK);
13303 pragma Inline (Set_From_Aspect_Specification);
13304 pragma Inline (Set_From_At_End);
13305 pragma Inline (Set_From_At_Mod);
13306 pragma Inline (Set_From_Conditional_Expression);
13307 pragma Inline (Set_From_Default);
13308 pragma Inline (Set_Generalized_Indexing);
13309 pragma Inline (Set_Generic_Associations);
13310 pragma Inline (Set_Generic_Formal_Declarations);
13311 pragma Inline (Set_Generic_Parent);
13312 pragma Inline (Set_Generic_Parent_Type);
13313 pragma Inline (Set_Handled_Statement_Sequence);
13314 pragma Inline (Set_Handler_List_Entry);
13315 pragma Inline (Set_Has_Created_Identifier);
13316 pragma Inline (Set_Has_Dereference_Action);
13317 pragma Inline (Set_Has_Dynamic_Length_Check);
13318 pragma Inline (Set_Has_Dynamic_Range_Check);
13319 pragma Inline (Set_Has_Init_Expression);
13320 pragma Inline (Set_Has_Local_Raise);
13321 pragma Inline (Set_Has_No_Elaboration_Code);
13322 pragma Inline (Set_Has_Pragma_Suppress_All);
13323 pragma Inline (Set_Has_Private_View);
13324 pragma Inline (Set_Has_Relative_Deadline_Pragma);
13325 pragma Inline (Set_Has_Self_Reference);
13326 pragma Inline (Set_Has_SP_Choice);
13327 pragma Inline (Set_Has_Storage_Size_Pragma);
13328 pragma Inline (Set_Has_Target_Names);
13329 pragma Inline (Set_Has_Wide_Character);
13330 pragma Inline (Set_Has_Wide_Wide_Character);
13331 pragma Inline (Set_Header_Size_Added);
13332 pragma Inline (Set_Hidden_By_Use_Clause);
13333 pragma Inline (Set_High_Bound);
13334 pragma Inline (Set_Identifier);
13335 pragma Inline (Set_Implicit_With);
13336 pragma Inline (Set_Import_Interface_Present);
13337 pragma Inline (Set_In_Present);
13338 pragma Inline (Set_Includes_Infinities);
13339 pragma Inline (Set_Incomplete_View);
13340 pragma Inline (Set_Inherited_Discriminant);
13341 pragma Inline (Set_Instance_Spec);
13342 pragma Inline (Set_Interface_List);
13343 pragma Inline (Set_Interface_Present);
13344 pragma Inline (Set_Intval);
13345 pragma Inline (Set_Is_Abort_Block);
13346 pragma Inline (Set_Is_Accessibility_Actual);
13347 pragma Inline (Set_Is_Analyzed_Pragma);
13348 pragma Inline (Set_Is_Asynchronous_Call_Block);
13349 pragma Inline (Set_Is_Boolean_Aspect);
13350 pragma Inline (Set_Is_Checked);
13351 pragma Inline (Set_Is_Checked_Ghost_Pragma);
13352 pragma Inline (Set_Is_Component_Left_Opnd);
13353 pragma Inline (Set_Is_Component_Right_Opnd);
13354 pragma Inline (Set_Is_Controlling_Actual);
13355 pragma Inline (Set_Is_Delayed_Aspect);
13356 pragma Inline (Set_Is_Disabled);
13357 pragma Inline (Set_Is_Dynamic_Coextension);
13358 pragma Inline (Set_Is_Elsif);
13359 pragma Inline (Set_Is_Entry_Barrier_Function);
13360 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
13361 pragma Inline (Set_Is_Expanded_Contract);
13362 pragma Inline (Set_Is_Finalization_Wrapper);
13363 pragma Inline (Set_Is_Folded_In_Parser);
13364 pragma Inline (Set_Is_Generic_Contract_Pragma);
13365 pragma Inline (Set_Is_Ignored);
13366 pragma Inline (Set_Is_Ignored_Ghost_Pragma);
13367 pragma Inline (Set_Is_In_Discriminant_Check);
13368 pragma Inline (Set_Is_Inherited_Pragma);
13369 pragma Inline (Set_Is_Machine_Number);
13370 pragma Inline (Set_Is_Null_Loop);
13371 pragma Inline (Set_Is_Overloaded);
13372 pragma Inline (Set_Is_Power_Of_2_For_Shift);
13373 pragma Inline (Set_Is_Prefixed_Call);
13374 pragma Inline (Set_Is_Protected_Subprogram_Body);
13375 pragma Inline (Set_Is_Qualified_Universal_Literal);
13376 pragma Inline (Set_Is_Static_Coextension);
13377 pragma Inline (Set_Is_Static_Expression);
13378 pragma Inline (Set_Is_Subprogram_Descriptor);
13379 pragma Inline (Set_Is_Task_Allocation_Block);
13380 pragma Inline (Set_Is_Task_Body_Procedure);
13381 pragma Inline (Set_Is_Task_Master);
13382 pragma Inline (Set_Iteration_Scheme);
13383 pragma Inline (Set_Iterator_Specification);
13384 pragma Inline (Set_Itype);
13385 pragma Inline (Set_Kill_Range_Check);
13386 pragma Inline (Set_Label_Construct);
13387 pragma Inline (Set_Last_Bit);
13388 pragma Inline (Set_Last_Name);
13389 pragma Inline (Set_Left_Opnd);
13390 pragma Inline (Set_Library_Unit);
13391 pragma Inline (Set_Limited_Present);
13392 pragma Inline (Set_Limited_View_Installed);
13393 pragma Inline (Set_Literals);
13394 pragma Inline (Set_Local_Raise_Not_OK);
13395 pragma Inline (Set_Local_Raise_Statements);
13396 pragma Inline (Set_Loop_Actions);
13397 pragma Inline (Set_Loop_Parameter_Specification);
13398 pragma Inline (Set_Low_Bound);
13399 pragma Inline (Set_Mod_Clause);
13400 pragma Inline (Set_More_Ids);
13401 pragma Inline (Set_Must_Be_Byte_Aligned);
13402 pragma Inline (Set_Must_Not_Freeze);
13403 pragma Inline (Set_Must_Not_Override);
13404 pragma Inline (Set_Must_Override);
13405 pragma Inline (Set_Name);
13406 pragma Inline (Set_Names);
13407 pragma Inline (Set_Next_Entity);
13408 pragma Inline (Set_Next_Exit_Statement);
13409 pragma Inline (Set_Next_Implicit_With);
13410 pragma Inline (Set_Next_Named_Actual);
13411 pragma Inline (Set_Next_Pragma);
13412 pragma Inline (Set_Next_Rep_Item);
13413 pragma Inline (Set_Next_Use_Clause);
13414 pragma Inline (Set_No_Ctrl_Actions);
13415 pragma Inline (Set_No_Elaboration_Check);
13416 pragma Inline (Set_No_Entities_Ref_In_Spec);
13417 pragma Inline (Set_No_Initialization);
13418 pragma Inline (Set_No_Minimize_Eliminate);
13419 pragma Inline (Set_No_Side_Effect_Removal);
13420 pragma Inline (Set_No_Truncation);
13421 pragma Inline (Set_Non_Aliased_Prefix);
13422 pragma Inline (Set_Null_Excluding_Subtype);
13423 pragma Inline (Set_Null_Exclusion_Present);
13424 pragma Inline (Set_Null_Exclusion_In_Return_Present);
13425 pragma Inline (Set_Null_Present);
13426 pragma Inline (Set_Null_Record_Present);
13427 pragma Inline (Set_Object_Definition);
13428 pragma Inline (Set_Of_Present);
13429 pragma Inline (Set_Original_Discriminant);
13430 pragma Inline (Set_Original_Entity);
13431 pragma Inline (Set_Others_Discrete_Choices);
13432 pragma Inline (Set_Out_Present);
13433 pragma Inline (Set_Parameter_Associations);
13434 pragma Inline (Set_Parameter_Specifications);
13435 pragma Inline (Set_Parameter_Type);
13436 pragma Inline (Set_Parent_Spec);
13437 pragma Inline (Set_Position);
13438 pragma Inline (Set_Pragma_Argument_Associations);
13439 pragma Inline (Set_Pragma_Identifier);
13440 pragma Inline (Set_Pragmas_After);
13441 pragma Inline (Set_Pragmas_Before);
13442 pragma Inline (Set_Pre_Post_Conditions);
13443 pragma Inline (Set_Prefix);
13444 pragma Inline (Set_Premature_Use);
13445 pragma Inline (Set_Present_Expr);
13446 pragma Inline (Set_Prev_Ids);
13447 pragma Inline (Set_Print_In_Hex);
13448 pragma Inline (Set_Private_Declarations);
13449 pragma Inline (Set_Private_Present);
13450 pragma Inline (Set_Procedure_To_Call);
13451 pragma Inline (Set_Proper_Body);
13452 pragma Inline (Set_Protected_Definition);
13453 pragma Inline (Set_Protected_Present);
13454 pragma Inline (Set_Raises_Constraint_Error);
13455 pragma Inline (Set_Range_Constraint);
13456 pragma Inline (Set_Range_Expression);
13457 pragma Inline (Set_Real_Range_Specification);
13458 pragma Inline (Set_Realval);
13459 pragma Inline (Set_Reason);
13460 pragma Inline (Set_Record_Extension_Part);
13461 pragma Inline (Set_Redundant_Use);
13462 pragma Inline (Set_Renaming_Exception);
13463 pragma Inline (Set_Result_Definition);
13464 pragma Inline (Set_Return_Object_Declarations);
13465 pragma Inline (Set_Reverse_Present);
13466 pragma Inline (Set_Right_Opnd);
13467 pragma Inline (Set_Rounded_Result);
13468 pragma Inline (Set_SCIL_Controlling_Tag);
13469 pragma Inline (Set_SCIL_Entity);
13470 pragma Inline (Set_SCIL_Tag_Value);
13471 pragma Inline (Set_SCIL_Target_Prim);
13472 pragma Inline (Set_Scope);
13473 pragma Inline (Set_Select_Alternatives);
13474 pragma Inline (Set_Selector_Name);
13475 pragma Inline (Set_Selector_Names);
13476 pragma Inline (Set_Shift_Count_OK);
13477 pragma Inline (Set_Source_Type);
13478 pragma Inline (Set_Split_PPC);
13479 pragma Inline (Set_Statements);
13480 pragma Inline (Set_Storage_Pool);
13481 pragma Inline (Set_Strval);
13482 pragma Inline (Set_Subpool_Handle_Name);
13483 pragma Inline (Set_Subtype_Indication);
13484 pragma Inline (Set_Subtype_Mark);
13485 pragma Inline (Set_Subtype_Marks);
13486 pragma Inline (Set_Suppress_Assignment_Checks);
13487 pragma Inline (Set_Suppress_Loop_Warnings);
13488 pragma Inline (Set_Synchronized_Present);
13489 pragma Inline (Set_TSS_Elist);
13490 pragma Inline (Set_Tagged_Present);
13491 pragma Inline (Set_Target_Type);
13492 pragma Inline (Set_Task_Definition);
13493 pragma Inline (Set_Task_Present);
13494 pragma Inline (Set_Then_Actions);
13495 pragma Inline (Set_Then_Statements);
13496 pragma Inline (Set_Treat_Fixed_As_Integer);
13497 pragma Inline (Set_Triggering_Alternative);
13498 pragma Inline (Set_Triggering_Statement);
13499 pragma Inline (Set_Type_Definition);
13500 pragma Inline (Set_Uneval_Old_Accept);
13501 pragma Inline (Set_Uneval_Old_Warn);
13502 pragma Inline (Set_Unit);
13503 pragma Inline (Set_Uninitialized_Variable);
13504 pragma Inline (Set_Unknown_Discriminants_Present);
13505 pragma Inline (Set_Unreferenced_In_Spec);
13506 pragma Inline (Set_Used_Operations);
13507 pragma Inline (Set_Variant_Part);
13508 pragma Inline (Set_Variants);
13509 pragma Inline (Set_Visible_Declarations);
13510 pragma Inline (Set_Was_Expression_Function);
13511 pragma Inline (Set_Was_Originally_Stub);
13512 pragma Inline (Set_Withed_Body);
13513
13514 end Sinfo;