aspects.adb: Alphabetize subprogram bodies in this unit.
[gcc.git] / gcc / ada / sinfo.adb
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S I N F O --
6 -- --
7 -- B o d y --
8 -- --
9 -- Copyright (C) 1992-2013, 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 pragma Style_Checks (All_Checks);
33 -- No subprogram ordering check, due to logical grouping
34
35 with Atree; use Atree;
36
37 package body Sinfo is
38
39 use Atree.Unchecked_Access;
40 -- This package is one of the few packages which is allowed to make direct
41 -- references to tree nodes (since it is in the business of providing a
42 -- higher level of tree access which other clients are expected to use and
43 -- which implements checks).
44
45 use Atree_Private_Part;
46 -- The only reason that we ask for direct access to the private part of
47 -- the tree package is so that we can directly reference the Nkind field
48 -- of nodes table entries. We do this since it helps the efficiency of
49 -- the Sinfo debugging checks considerably (note that when we are checking
50 -- Nkind values, we don't need to check for a valid node reference, because
51 -- we will check that anyway when we reference the field).
52
53 NT : Nodes.Table_Ptr renames Nodes.Table;
54 -- A short hand abbreviation, useful for the debugging checks
55
56 ----------------------------
57 -- Field Access Functions --
58 ----------------------------
59
60 function ABE_Is_Certain
61 (N : Node_Id) return Boolean is
62 begin
63 pragma Assert (False
64 or else NT (N).Nkind = N_Formal_Package_Declaration
65 or else NT (N).Nkind = N_Function_Call
66 or else NT (N).Nkind = N_Function_Instantiation
67 or else NT (N).Nkind = N_Package_Instantiation
68 or else NT (N).Nkind = N_Procedure_Call_Statement
69 or else NT (N).Nkind = N_Procedure_Instantiation);
70 return Flag18 (N);
71 end ABE_Is_Certain;
72
73 function Abort_Present
74 (N : Node_Id) return Boolean is
75 begin
76 pragma Assert (False
77 or else NT (N).Nkind = N_Requeue_Statement);
78 return Flag15 (N);
79 end Abort_Present;
80
81 function Abortable_Part
82 (N : Node_Id) return Node_Id is
83 begin
84 pragma Assert (False
85 or else NT (N).Nkind = N_Asynchronous_Select);
86 return Node2 (N);
87 end Abortable_Part;
88
89 function Abstract_Present
90 (N : Node_Id) return Boolean is
91 begin
92 pragma Assert (False
93 or else NT (N).Nkind = N_Derived_Type_Definition
94 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
95 or else NT (N).Nkind = N_Formal_Private_Type_Definition
96 or else NT (N).Nkind = N_Private_Extension_Declaration
97 or else NT (N).Nkind = N_Private_Type_Declaration
98 or else NT (N).Nkind = N_Record_Definition);
99 return Flag4 (N);
100 end Abstract_Present;
101
102 function Accept_Handler_Records
103 (N : Node_Id) return List_Id is
104 begin
105 pragma Assert (False
106 or else NT (N).Nkind = N_Accept_Alternative);
107 return List5 (N);
108 end Accept_Handler_Records;
109
110 function Accept_Statement
111 (N : Node_Id) return Node_Id is
112 begin
113 pragma Assert (False
114 or else NT (N).Nkind = N_Accept_Alternative);
115 return Node2 (N);
116 end Accept_Statement;
117
118 function Access_Definition
119 (N : Node_Id) return Node_Id is
120 begin
121 pragma Assert (False
122 or else NT (N).Nkind = N_Component_Definition
123 or else NT (N).Nkind = N_Formal_Object_Declaration
124 or else NT (N).Nkind = N_Object_Renaming_Declaration);
125 return Node3 (N);
126 end Access_Definition;
127
128 function Access_To_Subprogram_Definition
129 (N : Node_Id) return Node_Id is
130 begin
131 pragma Assert (False
132 or else NT (N).Nkind = N_Access_Definition);
133 return Node3 (N);
134 end Access_To_Subprogram_Definition;
135
136 function Access_Types_To_Process
137 (N : Node_Id) return Elist_Id is
138 begin
139 pragma Assert (False
140 or else NT (N).Nkind = N_Freeze_Entity);
141 return Elist2 (N);
142 end Access_Types_To_Process;
143
144 function Actions
145 (N : Node_Id) return List_Id is
146 begin
147 pragma Assert (False
148 or else NT (N).Nkind = N_And_Then
149 or else NT (N).Nkind = N_Case_Expression_Alternative
150 or else NT (N).Nkind = N_Compilation_Unit_Aux
151 or else NT (N).Nkind = N_Expression_With_Actions
152 or else NT (N).Nkind = N_Freeze_Entity
153 or else NT (N).Nkind = N_Or_Else);
154 return List1 (N);
155 end Actions;
156
157 function Activation_Chain_Entity
158 (N : Node_Id) return Node_Id is
159 begin
160 pragma Assert (False
161 or else NT (N).Nkind = N_Block_Statement
162 or else NT (N).Nkind = N_Entry_Body
163 or else NT (N).Nkind = N_Generic_Package_Declaration
164 or else NT (N).Nkind = N_Package_Declaration
165 or else NT (N).Nkind = N_Subprogram_Body
166 or else NT (N).Nkind = N_Task_Body);
167 return Node3 (N);
168 end Activation_Chain_Entity;
169
170 function Acts_As_Spec
171 (N : Node_Id) return Boolean is
172 begin
173 pragma Assert (False
174 or else NT (N).Nkind = N_Compilation_Unit
175 or else NT (N).Nkind = N_Subprogram_Body);
176 return Flag4 (N);
177 end Acts_As_Spec;
178
179 function Actual_Designated_Subtype
180 (N : Node_Id) return Node_Id is
181 begin
182 pragma Assert (False
183 or else NT (N).Nkind = N_Explicit_Dereference
184 or else NT (N).Nkind = N_Free_Statement);
185 return Node4 (N);
186 end Actual_Designated_Subtype;
187
188 function Address_Warning_Posted
189 (N : Node_Id) return Boolean is
190 begin
191 pragma Assert (False
192 or else NT (N).Nkind = N_Attribute_Definition_Clause);
193 return Flag18 (N);
194 end Address_Warning_Posted;
195
196 function Aggregate_Bounds
197 (N : Node_Id) return Node_Id is
198 begin
199 pragma Assert (False
200 or else NT (N).Nkind = N_Aggregate);
201 return Node3 (N);
202 end Aggregate_Bounds;
203
204 function Aliased_Present
205 (N : Node_Id) return Boolean is
206 begin
207 pragma Assert (False
208 or else NT (N).Nkind = N_Component_Definition
209 or else NT (N).Nkind = N_Object_Declaration
210 or else NT (N).Nkind = N_Parameter_Specification);
211 return Flag4 (N);
212 end Aliased_Present;
213
214 function All_Others
215 (N : Node_Id) return Boolean is
216 begin
217 pragma Assert (False
218 or else NT (N).Nkind = N_Others_Choice);
219 return Flag11 (N);
220 end All_Others;
221
222 function All_Present
223 (N : Node_Id) return Boolean is
224 begin
225 pragma Assert (False
226 or else NT (N).Nkind = N_Access_Definition
227 or else NT (N).Nkind = N_Access_To_Object_Definition
228 or else NT (N).Nkind = N_Quantified_Expression
229 or else NT (N).Nkind = N_Use_Type_Clause);
230 return Flag15 (N);
231 end All_Present;
232
233 function Alternatives
234 (N : Node_Id) return List_Id is
235 begin
236 pragma Assert (False
237 or else NT (N).Nkind = N_Case_Expression
238 or else NT (N).Nkind = N_Case_Statement
239 or else NT (N).Nkind = N_In
240 or else NT (N).Nkind = N_Not_In);
241 return List4 (N);
242 end Alternatives;
243
244 function Ancestor_Part
245 (N : Node_Id) return Node_Id is
246 begin
247 pragma Assert (False
248 or else NT (N).Nkind = N_Extension_Aggregate);
249 return Node3 (N);
250 end Ancestor_Part;
251
252 function Atomic_Sync_Required
253 (N : Node_Id) return Boolean is
254 begin
255 pragma Assert (False
256 or else NT (N).Nkind = N_Expanded_Name
257 or else NT (N).Nkind = N_Explicit_Dereference
258 or else NT (N).Nkind = N_Identifier
259 or else NT (N).Nkind = N_Indexed_Component
260 or else NT (N).Nkind = N_Selected_Component);
261 return Flag14 (N);
262 end Atomic_Sync_Required;
263
264 function Array_Aggregate
265 (N : Node_Id) return Node_Id is
266 begin
267 pragma Assert (False
268 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
269 return Node3 (N);
270 end Array_Aggregate;
271
272 function Aspect_Rep_Item
273 (N : Node_Id) return Node_Id is
274 begin
275 pragma Assert (False
276 or else NT (N).Nkind = N_Aspect_Specification);
277 return Node2 (N);
278 end Aspect_Rep_Item;
279
280 function Assignment_OK
281 (N : Node_Id) return Boolean is
282 begin
283 pragma Assert (False
284 or else NT (N).Nkind = N_Object_Declaration
285 or else NT (N).Nkind in N_Subexpr);
286 return Flag15 (N);
287 end Assignment_OK;
288
289 function Associated_Node
290 (N : Node_Id) return Node_Id is
291 begin
292 pragma Assert (False
293 or else NT (N).Nkind in N_Has_Entity
294 or else NT (N).Nkind = N_Aggregate
295 or else NT (N).Nkind = N_Extension_Aggregate
296 or else NT (N).Nkind = N_Selected_Component);
297 return Node4 (N);
298 end Associated_Node;
299
300 function At_End_Proc
301 (N : Node_Id) return Node_Id is
302 begin
303 pragma Assert (False
304 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
305 return Node1 (N);
306 end At_End_Proc;
307
308 function Attribute_Name
309 (N : Node_Id) return Name_Id is
310 begin
311 pragma Assert (False
312 or else NT (N).Nkind = N_Attribute_Reference);
313 return Name2 (N);
314 end Attribute_Name;
315
316 function Aux_Decls_Node
317 (N : Node_Id) return Node_Id is
318 begin
319 pragma Assert (False
320 or else NT (N).Nkind = N_Compilation_Unit);
321 return Node5 (N);
322 end Aux_Decls_Node;
323
324 function Backwards_OK
325 (N : Node_Id) return Boolean is
326 begin
327 pragma Assert (False
328 or else NT (N).Nkind = N_Assignment_Statement);
329 return Flag6 (N);
330 end Backwards_OK;
331
332 function Bad_Is_Detected
333 (N : Node_Id) return Boolean is
334 begin
335 pragma Assert (False
336 or else NT (N).Nkind = N_Subprogram_Body);
337 return Flag15 (N);
338 end Bad_Is_Detected;
339
340 function Body_Required
341 (N : Node_Id) return Boolean is
342 begin
343 pragma Assert (False
344 or else NT (N).Nkind = N_Compilation_Unit);
345 return Flag13 (N);
346 end Body_Required;
347
348 function Body_To_Inline
349 (N : Node_Id) return Node_Id is
350 begin
351 pragma Assert (False
352 or else NT (N).Nkind = N_Subprogram_Declaration);
353 return Node3 (N);
354 end Body_To_Inline;
355
356 function Box_Present
357 (N : Node_Id) return Boolean is
358 begin
359 pragma Assert (False
360 or else NT (N).Nkind = N_Component_Association
361 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
362 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
363 or else NT (N).Nkind = N_Formal_Package_Declaration
364 or else NT (N).Nkind = N_Generic_Association);
365 return Flag15 (N);
366 end Box_Present;
367
368 function By_Ref
369 (N : Node_Id) return Boolean is
370 begin
371 pragma Assert (False
372 or else NT (N).Nkind = N_Extended_Return_Statement
373 or else NT (N).Nkind = N_Simple_Return_Statement);
374 return Flag5 (N);
375 end By_Ref;
376
377 function Char_Literal_Value
378 (N : Node_Id) return Uint is
379 begin
380 pragma Assert (False
381 or else NT (N).Nkind = N_Character_Literal);
382 return Uint2 (N);
383 end Char_Literal_Value;
384
385 function Chars
386 (N : Node_Id) return Name_Id is
387 begin
388 pragma Assert (False
389 or else NT (N).Nkind in N_Has_Chars);
390 return Name1 (N);
391 end Chars;
392
393 function Check_Address_Alignment
394 (N : Node_Id) return Boolean is
395 begin
396 pragma Assert (False
397 or else NT (N).Nkind = N_Attribute_Definition_Clause);
398 return Flag11 (N);
399 end Check_Address_Alignment;
400
401 function Choice_Parameter
402 (N : Node_Id) return Node_Id is
403 begin
404 pragma Assert (False
405 or else NT (N).Nkind = N_Exception_Handler);
406 return Node2 (N);
407 end Choice_Parameter;
408
409 function Choices
410 (N : Node_Id) return List_Id is
411 begin
412 pragma Assert (False
413 or else NT (N).Nkind = N_Component_Association);
414 return List1 (N);
415 end Choices;
416
417 function Class_Present
418 (N : Node_Id) return Boolean is
419 begin
420 pragma Assert (False
421 or else NT (N).Nkind = N_Aspect_Specification
422 or else NT (N).Nkind = N_Pragma);
423 return Flag6 (N);
424 end Class_Present;
425
426 function Comes_From_Extended_Return_Statement
427 (N : Node_Id) return Boolean is
428 begin
429 pragma Assert (False
430 or else NT (N).Nkind = N_Simple_Return_Statement);
431 return Flag18 (N);
432 end Comes_From_Extended_Return_Statement;
433
434 function Compile_Time_Known_Aggregate
435 (N : Node_Id) return Boolean is
436 begin
437 pragma Assert (False
438 or else NT (N).Nkind = N_Aggregate);
439 return Flag18 (N);
440 end Compile_Time_Known_Aggregate;
441
442 function Component_Associations
443 (N : Node_Id) return List_Id is
444 begin
445 pragma Assert (False
446 or else NT (N).Nkind = N_Aggregate
447 or else NT (N).Nkind = N_Extension_Aggregate);
448 return List2 (N);
449 end Component_Associations;
450
451 function Component_Clauses
452 (N : Node_Id) return List_Id is
453 begin
454 pragma Assert (False
455 or else NT (N).Nkind = N_Record_Representation_Clause);
456 return List3 (N);
457 end Component_Clauses;
458
459 function Component_Definition
460 (N : Node_Id) return Node_Id is
461 begin
462 pragma Assert (False
463 or else NT (N).Nkind = N_Component_Declaration
464 or else NT (N).Nkind = N_Constrained_Array_Definition
465 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
466 return Node4 (N);
467 end Component_Definition;
468
469 function Component_Items
470 (N : Node_Id) return List_Id is
471 begin
472 pragma Assert (False
473 or else NT (N).Nkind = N_Component_List);
474 return List3 (N);
475 end Component_Items;
476
477 function Component_List
478 (N : Node_Id) return Node_Id is
479 begin
480 pragma Assert (False
481 or else NT (N).Nkind = N_Record_Definition
482 or else NT (N).Nkind = N_Variant);
483 return Node1 (N);
484 end Component_List;
485
486 function Component_Name
487 (N : Node_Id) return Node_Id is
488 begin
489 pragma Assert (False
490 or else NT (N).Nkind = N_Component_Clause);
491 return Node1 (N);
492 end Component_Name;
493
494 function Componentwise_Assignment
495 (N : Node_Id) return Boolean is
496 begin
497 pragma Assert (False
498 or else NT (N).Nkind = N_Assignment_Statement);
499 return Flag14 (N);
500 end Componentwise_Assignment;
501
502 function Condition
503 (N : Node_Id) return Node_Id is
504 begin
505 pragma Assert (False
506 or else NT (N).Nkind = N_Accept_Alternative
507 or else NT (N).Nkind = N_Delay_Alternative
508 or else NT (N).Nkind = N_Elsif_Part
509 or else NT (N).Nkind = N_Entry_Body_Formal_Part
510 or else NT (N).Nkind = N_Exit_Statement
511 or else NT (N).Nkind = N_If_Statement
512 or else NT (N).Nkind = N_Iteration_Scheme
513 or else NT (N).Nkind = N_Quantified_Expression
514 or else NT (N).Nkind = N_Raise_Constraint_Error
515 or else NT (N).Nkind = N_Raise_Program_Error
516 or else NT (N).Nkind = N_Raise_Storage_Error
517 or else NT (N).Nkind = N_Terminate_Alternative);
518 return Node1 (N);
519 end Condition;
520
521 function Condition_Actions
522 (N : Node_Id) return List_Id is
523 begin
524 pragma Assert (False
525 or else NT (N).Nkind = N_Elsif_Part
526 or else NT (N).Nkind = N_Iteration_Scheme);
527 return List3 (N);
528 end Condition_Actions;
529
530 function Config_Pragmas
531 (N : Node_Id) return List_Id is
532 begin
533 pragma Assert (False
534 or else NT (N).Nkind = N_Compilation_Unit_Aux);
535 return List4 (N);
536 end Config_Pragmas;
537
538 function Constant_Present
539 (N : Node_Id) return Boolean is
540 begin
541 pragma Assert (False
542 or else NT (N).Nkind = N_Access_Definition
543 or else NT (N).Nkind = N_Access_To_Object_Definition
544 or else NT (N).Nkind = N_Object_Declaration);
545 return Flag17 (N);
546 end Constant_Present;
547
548 function Constraint
549 (N : Node_Id) return Node_Id is
550 begin
551 pragma Assert (False
552 or else NT (N).Nkind = N_Subtype_Indication);
553 return Node3 (N);
554 end Constraint;
555
556 function Constraints
557 (N : Node_Id) return List_Id is
558 begin
559 pragma Assert (False
560 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
561 return List1 (N);
562 end Constraints;
563
564 function Context_Installed
565 (N : Node_Id) return Boolean is
566 begin
567 pragma Assert (False
568 or else NT (N).Nkind = N_With_Clause);
569 return Flag13 (N);
570 end Context_Installed;
571
572 function Context_Items
573 (N : Node_Id) return List_Id is
574 begin
575 pragma Assert (False
576 or else NT (N).Nkind = N_Compilation_Unit);
577 return List1 (N);
578 end Context_Items;
579
580 function Context_Pending
581 (N : Node_Id) return Boolean is
582 begin
583 pragma Assert (False
584 or else NT (N).Nkind = N_Compilation_Unit);
585 return Flag16 (N);
586 end Context_Pending;
587
588 function Controlling_Argument
589 (N : Node_Id) return Node_Id is
590 begin
591 pragma Assert (False
592 or else NT (N).Nkind = N_Function_Call
593 or else NT (N).Nkind = N_Procedure_Call_Statement);
594 return Node1 (N);
595 end Controlling_Argument;
596
597 function Conversion_OK
598 (N : Node_Id) return Boolean is
599 begin
600 pragma Assert (False
601 or else NT (N).Nkind = N_Type_Conversion);
602 return Flag14 (N);
603 end Conversion_OK;
604
605 function Convert_To_Return_False
606 (N : Node_Id) return Boolean is
607 begin
608 pragma Assert (False
609 or else NT (N).Nkind = N_Raise_Expression);
610 return Flag13 (N);
611 end Convert_To_Return_False;
612
613 function Corresponding_Aspect
614 (N : Node_Id) return Node_Id is
615 begin
616 pragma Assert (False
617 or else NT (N).Nkind = N_Pragma);
618 return Node3 (N);
619 end Corresponding_Aspect;
620
621 function Corresponding_Body
622 (N : Node_Id) return Node_Id is
623 begin
624 pragma Assert (False
625 or else NT (N).Nkind = N_Entry_Declaration
626 or else NT (N).Nkind = N_Generic_Package_Declaration
627 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
628 or else NT (N).Nkind = N_Package_Body_Stub
629 or else NT (N).Nkind = N_Package_Declaration
630 or else NT (N).Nkind = N_Protected_Body_Stub
631 or else NT (N).Nkind = N_Protected_Type_Declaration
632 or else NT (N).Nkind = N_Subprogram_Body_Stub
633 or else NT (N).Nkind = N_Subprogram_Declaration
634 or else NT (N).Nkind = N_Task_Body_Stub
635 or else NT (N).Nkind = N_Task_Type_Declaration);
636 return Node5 (N);
637 end Corresponding_Body;
638
639 function Corresponding_Formal_Spec
640 (N : Node_Id) return Node_Id is
641 begin
642 pragma Assert (False
643 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
644 return Node3 (N);
645 end Corresponding_Formal_Spec;
646
647 function Corresponding_Generic_Association
648 (N : Node_Id) return Node_Id is
649 begin
650 pragma Assert (False
651 or else NT (N).Nkind = N_Object_Declaration
652 or else NT (N).Nkind = N_Object_Renaming_Declaration);
653 return Node5 (N);
654 end Corresponding_Generic_Association;
655
656 function Corresponding_Integer_Value
657 (N : Node_Id) return Uint is
658 begin
659 pragma Assert (False
660 or else NT (N).Nkind = N_Real_Literal);
661 return Uint4 (N);
662 end Corresponding_Integer_Value;
663
664 function Corresponding_Spec
665 (N : Node_Id) return Node_Id is
666 begin
667 pragma Assert (False
668 or else NT (N).Nkind = N_Expression_Function
669 or else NT (N).Nkind = N_Package_Body
670 or else NT (N).Nkind = N_Protected_Body
671 or else NT (N).Nkind = N_Subprogram_Body
672 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
673 or else NT (N).Nkind = N_Task_Body
674 or else NT (N).Nkind = N_With_Clause);
675 return Node5 (N);
676 end Corresponding_Spec;
677
678 function Corresponding_Stub
679 (N : Node_Id) return Node_Id is
680 begin
681 pragma Assert (False
682 or else NT (N).Nkind = N_Subunit);
683 return Node3 (N);
684 end Corresponding_Stub;
685
686 function Dcheck_Function
687 (N : Node_Id) return Entity_Id is
688 begin
689 pragma Assert (False
690 or else NT (N).Nkind = N_Variant);
691 return Node5 (N);
692 end Dcheck_Function;
693
694 function Declarations
695 (N : Node_Id) return List_Id is
696 begin
697 pragma Assert (False
698 or else NT (N).Nkind = N_Accept_Statement
699 or else NT (N).Nkind = N_Block_Statement
700 or else NT (N).Nkind = N_Compilation_Unit_Aux
701 or else NT (N).Nkind = N_Entry_Body
702 or else NT (N).Nkind = N_Package_Body
703 or else NT (N).Nkind = N_Protected_Body
704 or else NT (N).Nkind = N_Subprogram_Body
705 or else NT (N).Nkind = N_Task_Body);
706 return List2 (N);
707 end Declarations;
708
709 function Default_Expression
710 (N : Node_Id) return Node_Id is
711 begin
712 pragma Assert (False
713 or else NT (N).Nkind = N_Formal_Object_Declaration
714 or else NT (N).Nkind = N_Parameter_Specification);
715 return Node5 (N);
716 end Default_Expression;
717
718 function Default_Storage_Pool
719 (N : Node_Id) return Node_Id is
720 begin
721 pragma Assert (False
722 or else NT (N).Nkind = N_Compilation_Unit_Aux);
723 return Node3 (N);
724 end Default_Storage_Pool;
725
726 function Default_Name
727 (N : Node_Id) return Node_Id is
728 begin
729 pragma Assert (False
730 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
731 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
732 return Node2 (N);
733 end Default_Name;
734
735 function Defining_Identifier
736 (N : Node_Id) return Entity_Id is
737 begin
738 pragma Assert (False
739 or else NT (N).Nkind = N_Component_Declaration
740 or else NT (N).Nkind = N_Defining_Program_Unit_Name
741 or else NT (N).Nkind = N_Discriminant_Specification
742 or else NT (N).Nkind = N_Entry_Body
743 or else NT (N).Nkind = N_Entry_Declaration
744 or else NT (N).Nkind = N_Entry_Index_Specification
745 or else NT (N).Nkind = N_Exception_Declaration
746 or else NT (N).Nkind = N_Exception_Renaming_Declaration
747 or else NT (N).Nkind = N_Formal_Object_Declaration
748 or else NT (N).Nkind = N_Formal_Package_Declaration
749 or else NT (N).Nkind = N_Formal_Type_Declaration
750 or else NT (N).Nkind = N_Full_Type_Declaration
751 or else NT (N).Nkind = N_Implicit_Label_Declaration
752 or else NT (N).Nkind = N_Incomplete_Type_Declaration
753 or else NT (N).Nkind = N_Iterator_Specification
754 or else NT (N).Nkind = N_Loop_Parameter_Specification
755 or else NT (N).Nkind = N_Number_Declaration
756 or else NT (N).Nkind = N_Object_Declaration
757 or else NT (N).Nkind = N_Object_Renaming_Declaration
758 or else NT (N).Nkind = N_Package_Body_Stub
759 or else NT (N).Nkind = N_Parameter_Specification
760 or else NT (N).Nkind = N_Private_Extension_Declaration
761 or else NT (N).Nkind = N_Private_Type_Declaration
762 or else NT (N).Nkind = N_Protected_Body
763 or else NT (N).Nkind = N_Protected_Body_Stub
764 or else NT (N).Nkind = N_Protected_Type_Declaration
765 or else NT (N).Nkind = N_Single_Protected_Declaration
766 or else NT (N).Nkind = N_Single_Task_Declaration
767 or else NT (N).Nkind = N_Subtype_Declaration
768 or else NT (N).Nkind = N_Task_Body
769 or else NT (N).Nkind = N_Task_Body_Stub
770 or else NT (N).Nkind = N_Task_Type_Declaration);
771 return Node1 (N);
772 end Defining_Identifier;
773
774 function Defining_Unit_Name
775 (N : Node_Id) return Node_Id is
776 begin
777 pragma Assert (False
778 or else NT (N).Nkind = N_Function_Instantiation
779 or else NT (N).Nkind = N_Function_Specification
780 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
781 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
782 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
783 or else NT (N).Nkind = N_Package_Body
784 or else NT (N).Nkind = N_Package_Instantiation
785 or else NT (N).Nkind = N_Package_Renaming_Declaration
786 or else NT (N).Nkind = N_Package_Specification
787 or else NT (N).Nkind = N_Procedure_Instantiation
788 or else NT (N).Nkind = N_Procedure_Specification);
789 return Node1 (N);
790 end Defining_Unit_Name;
791
792 function Delay_Alternative
793 (N : Node_Id) return Node_Id is
794 begin
795 pragma Assert (False
796 or else NT (N).Nkind = N_Timed_Entry_Call);
797 return Node4 (N);
798 end Delay_Alternative;
799
800 function Delay_Statement
801 (N : Node_Id) return Node_Id is
802 begin
803 pragma Assert (False
804 or else NT (N).Nkind = N_Delay_Alternative);
805 return Node2 (N);
806 end Delay_Statement;
807
808 function Delta_Expression
809 (N : Node_Id) return Node_Id is
810 begin
811 pragma Assert (False
812 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
813 or else NT (N).Nkind = N_Delta_Constraint
814 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
815 return Node3 (N);
816 end Delta_Expression;
817
818 function Digits_Expression
819 (N : Node_Id) return Node_Id is
820 begin
821 pragma Assert (False
822 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
823 or else NT (N).Nkind = N_Digits_Constraint
824 or else NT (N).Nkind = N_Floating_Point_Definition);
825 return Node2 (N);
826 end Digits_Expression;
827
828 function Discr_Check_Funcs_Built
829 (N : Node_Id) return Boolean is
830 begin
831 pragma Assert (False
832 or else NT (N).Nkind = N_Full_Type_Declaration);
833 return Flag11 (N);
834 end Discr_Check_Funcs_Built;
835
836 function Discrete_Choices
837 (N : Node_Id) return List_Id is
838 begin
839 pragma Assert (False
840 or else NT (N).Nkind = N_Case_Expression_Alternative
841 or else NT (N).Nkind = N_Case_Statement_Alternative
842 or else NT (N).Nkind = N_Variant);
843 return List4 (N);
844 end Discrete_Choices;
845
846 function Discrete_Range
847 (N : Node_Id) return Node_Id is
848 begin
849 pragma Assert (False
850 or else NT (N).Nkind = N_Slice);
851 return Node4 (N);
852 end Discrete_Range;
853
854 function Discrete_Subtype_Definition
855 (N : Node_Id) return Node_Id is
856 begin
857 pragma Assert (False
858 or else NT (N).Nkind = N_Entry_Declaration
859 or else NT (N).Nkind = N_Entry_Index_Specification
860 or else NT (N).Nkind = N_Loop_Parameter_Specification);
861 return Node4 (N);
862 end Discrete_Subtype_Definition;
863
864 function Discrete_Subtype_Definitions
865 (N : Node_Id) return List_Id is
866 begin
867 pragma Assert (False
868 or else NT (N).Nkind = N_Constrained_Array_Definition);
869 return List2 (N);
870 end Discrete_Subtype_Definitions;
871
872 function Discriminant_Specifications
873 (N : Node_Id) return List_Id is
874 begin
875 pragma Assert (False
876 or else NT (N).Nkind = N_Formal_Type_Declaration
877 or else NT (N).Nkind = N_Full_Type_Declaration
878 or else NT (N).Nkind = N_Incomplete_Type_Declaration
879 or else NT (N).Nkind = N_Private_Extension_Declaration
880 or else NT (N).Nkind = N_Private_Type_Declaration
881 or else NT (N).Nkind = N_Protected_Type_Declaration
882 or else NT (N).Nkind = N_Task_Type_Declaration);
883 return List4 (N);
884 end Discriminant_Specifications;
885
886 function Discriminant_Type
887 (N : Node_Id) return Node_Id is
888 begin
889 pragma Assert (False
890 or else NT (N).Nkind = N_Discriminant_Specification);
891 return Node5 (N);
892 end Discriminant_Type;
893
894 function Do_Accessibility_Check
895 (N : Node_Id) return Boolean is
896 begin
897 pragma Assert (False
898 or else NT (N).Nkind = N_Parameter_Specification);
899 return Flag13 (N);
900 end Do_Accessibility_Check;
901
902 function Do_Discriminant_Check
903 (N : Node_Id) return Boolean is
904 begin
905 pragma Assert (False
906 or else NT (N).Nkind = N_Selected_Component);
907 return Flag13 (N);
908 end Do_Discriminant_Check;
909
910 function Do_Division_Check
911 (N : Node_Id) return Boolean is
912 begin
913 pragma Assert (False
914 or else NT (N).Nkind = N_Op_Divide
915 or else NT (N).Nkind = N_Op_Mod
916 or else NT (N).Nkind = N_Op_Rem);
917 return Flag13 (N);
918 end Do_Division_Check;
919
920 function Do_Length_Check
921 (N : Node_Id) return Boolean is
922 begin
923 pragma Assert (False
924 or else NT (N).Nkind = N_Assignment_Statement
925 or else NT (N).Nkind = N_Op_And
926 or else NT (N).Nkind = N_Op_Or
927 or else NT (N).Nkind = N_Op_Xor
928 or else NT (N).Nkind = N_Type_Conversion);
929 return Flag4 (N);
930 end Do_Length_Check;
931
932 function Do_Overflow_Check
933 (N : Node_Id) return Boolean is
934 begin
935 pragma Assert (False
936 or else NT (N).Nkind in N_Op
937 or else NT (N).Nkind = N_Attribute_Reference
938 or else NT (N).Nkind = N_Case_Expression
939 or else NT (N).Nkind = N_If_Expression
940 or else NT (N).Nkind = N_Type_Conversion);
941 return Flag17 (N);
942 end Do_Overflow_Check;
943
944 function Do_Range_Check
945 (N : Node_Id) return Boolean is
946 begin
947 pragma Assert (False
948 or else NT (N).Nkind in N_Subexpr);
949 return Flag9 (N);
950 end Do_Range_Check;
951
952 function Do_Storage_Check
953 (N : Node_Id) return Boolean is
954 begin
955 pragma Assert (False
956 or else NT (N).Nkind = N_Allocator
957 or else NT (N).Nkind = N_Subprogram_Body);
958 return Flag17 (N);
959 end Do_Storage_Check;
960
961 function Do_Tag_Check
962 (N : Node_Id) return Boolean is
963 begin
964 pragma Assert (False
965 or else NT (N).Nkind = N_Assignment_Statement
966 or else NT (N).Nkind = N_Extended_Return_Statement
967 or else NT (N).Nkind = N_Function_Call
968 or else NT (N).Nkind = N_Procedure_Call_Statement
969 or else NT (N).Nkind = N_Simple_Return_Statement
970 or else NT (N).Nkind = N_Type_Conversion);
971 return Flag13 (N);
972 end Do_Tag_Check;
973
974 function Elaborate_All_Desirable
975 (N : Node_Id) return Boolean is
976 begin
977 pragma Assert (False
978 or else NT (N).Nkind = N_With_Clause);
979 return Flag9 (N);
980 end Elaborate_All_Desirable;
981
982 function Elaborate_All_Present
983 (N : Node_Id) return Boolean is
984 begin
985 pragma Assert (False
986 or else NT (N).Nkind = N_With_Clause);
987 return Flag14 (N);
988 end Elaborate_All_Present;
989
990 function Elaborate_Desirable
991 (N : Node_Id) return Boolean is
992 begin
993 pragma Assert (False
994 or else NT (N).Nkind = N_With_Clause);
995 return Flag11 (N);
996 end Elaborate_Desirable;
997
998 function Elaborate_Present
999 (N : Node_Id) return Boolean is
1000 begin
1001 pragma Assert (False
1002 or else NT (N).Nkind = N_With_Clause);
1003 return Flag4 (N);
1004 end Elaborate_Present;
1005
1006 function Elaboration_Boolean
1007 (N : Node_Id) return Node_Id is
1008 begin
1009 pragma Assert (False
1010 or else NT (N).Nkind = N_Function_Specification
1011 or else NT (N).Nkind = N_Procedure_Specification);
1012 return Node2 (N);
1013 end Elaboration_Boolean;
1014
1015 function Else_Actions
1016 (N : Node_Id) return List_Id is
1017 begin
1018 pragma Assert (False
1019 or else NT (N).Nkind = N_If_Expression);
1020 return List3 (N);
1021 end Else_Actions;
1022
1023 function Else_Statements
1024 (N : Node_Id) return List_Id is
1025 begin
1026 pragma Assert (False
1027 or else NT (N).Nkind = N_Conditional_Entry_Call
1028 or else NT (N).Nkind = N_If_Statement
1029 or else NT (N).Nkind = N_Selective_Accept);
1030 return List4 (N);
1031 end Else_Statements;
1032
1033 function Elsif_Parts
1034 (N : Node_Id) return List_Id is
1035 begin
1036 pragma Assert (False
1037 or else NT (N).Nkind = N_If_Statement);
1038 return List3 (N);
1039 end Elsif_Parts;
1040
1041 function Enclosing_Variant
1042 (N : Node_Id) return Node_Id is
1043 begin
1044 pragma Assert (False
1045 or else NT (N).Nkind = N_Variant);
1046 return Node2 (N);
1047 end Enclosing_Variant;
1048
1049 function End_Label
1050 (N : Node_Id) return Node_Id is
1051 begin
1052 pragma Assert (False
1053 or else NT (N).Nkind = N_Enumeration_Type_Definition
1054 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
1055 or else NT (N).Nkind = N_Loop_Statement
1056 or else NT (N).Nkind = N_Package_Specification
1057 or else NT (N).Nkind = N_Protected_Body
1058 or else NT (N).Nkind = N_Protected_Definition
1059 or else NT (N).Nkind = N_Record_Definition
1060 or else NT (N).Nkind = N_Task_Definition);
1061 return Node4 (N);
1062 end End_Label;
1063
1064 function End_Span
1065 (N : Node_Id) return Uint is
1066 begin
1067 pragma Assert (False
1068 or else NT (N).Nkind = N_Case_Statement
1069 or else NT (N).Nkind = N_If_Statement);
1070 return Uint5 (N);
1071 end End_Span;
1072
1073 function Entity
1074 (N : Node_Id) return Node_Id is
1075 begin
1076 pragma Assert (False
1077 or else NT (N).Nkind in N_Has_Entity
1078 or else NT (N).Nkind = N_Aspect_Specification
1079 or else NT (N).Nkind = N_Attribute_Definition_Clause
1080 or else NT (N).Nkind = N_Freeze_Entity);
1081 return Node4 (N);
1082 end Entity;
1083
1084 function Entity_Or_Associated_Node
1085 (N : Node_Id) return Node_Id is
1086 begin
1087 pragma Assert (False
1088 or else NT (N).Nkind in N_Has_Entity
1089 or else NT (N).Nkind = N_Freeze_Entity);
1090 return Node4 (N);
1091 end Entity_Or_Associated_Node;
1092
1093 function Entry_Body_Formal_Part
1094 (N : Node_Id) return Node_Id is
1095 begin
1096 pragma Assert (False
1097 or else NT (N).Nkind = N_Entry_Body);
1098 return Node5 (N);
1099 end Entry_Body_Formal_Part;
1100
1101 function Entry_Call_Alternative
1102 (N : Node_Id) return Node_Id is
1103 begin
1104 pragma Assert (False
1105 or else NT (N).Nkind = N_Conditional_Entry_Call
1106 or else NT (N).Nkind = N_Timed_Entry_Call);
1107 return Node1 (N);
1108 end Entry_Call_Alternative;
1109
1110 function Entry_Call_Statement
1111 (N : Node_Id) return Node_Id is
1112 begin
1113 pragma Assert (False
1114 or else NT (N).Nkind = N_Entry_Call_Alternative);
1115 return Node1 (N);
1116 end Entry_Call_Statement;
1117
1118 function Entry_Direct_Name
1119 (N : Node_Id) return Node_Id is
1120 begin
1121 pragma Assert (False
1122 or else NT (N).Nkind = N_Accept_Statement);
1123 return Node1 (N);
1124 end Entry_Direct_Name;
1125
1126 function Entry_Index
1127 (N : Node_Id) return Node_Id is
1128 begin
1129 pragma Assert (False
1130 or else NT (N).Nkind = N_Accept_Statement);
1131 return Node5 (N);
1132 end Entry_Index;
1133
1134 function Entry_Index_Specification
1135 (N : Node_Id) return Node_Id is
1136 begin
1137 pragma Assert (False
1138 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
1139 return Node4 (N);
1140 end Entry_Index_Specification;
1141
1142 function Etype
1143 (N : Node_Id) return Node_Id is
1144 begin
1145 pragma Assert (False
1146 or else NT (N).Nkind in N_Has_Etype);
1147 return Node5 (N);
1148 end Etype;
1149
1150 function Exception_Choices
1151 (N : Node_Id) return List_Id is
1152 begin
1153 pragma Assert (False
1154 or else NT (N).Nkind = N_Exception_Handler);
1155 return List4 (N);
1156 end Exception_Choices;
1157
1158 function Exception_Handlers
1159 (N : Node_Id) return List_Id is
1160 begin
1161 pragma Assert (False
1162 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1163 return List5 (N);
1164 end Exception_Handlers;
1165
1166 function Exception_Junk
1167 (N : Node_Id) return Boolean is
1168 begin
1169 pragma Assert (False
1170 or else NT (N).Nkind = N_Block_Statement
1171 or else NT (N).Nkind = N_Goto_Statement
1172 or else NT (N).Nkind = N_Label
1173 or else NT (N).Nkind = N_Object_Declaration
1174 or else NT (N).Nkind = N_Subtype_Declaration);
1175 return Flag8 (N);
1176 end Exception_Junk;
1177
1178 function Exception_Label
1179 (N : Node_Id) return Node_Id is
1180 begin
1181 pragma Assert (False
1182 or else NT (N).Nkind = N_Exception_Handler
1183 or else NT (N).Nkind = N_Push_Constraint_Error_Label
1184 or else NT (N).Nkind = N_Push_Program_Error_Label
1185 or else NT (N).Nkind = N_Push_Storage_Error_Label);
1186 return Node5 (N);
1187 end Exception_Label;
1188
1189 function Expansion_Delayed
1190 (N : Node_Id) return Boolean is
1191 begin
1192 pragma Assert (False
1193 or else NT (N).Nkind = N_Aggregate
1194 or else NT (N).Nkind = N_Extension_Aggregate);
1195 return Flag11 (N);
1196 end Expansion_Delayed;
1197
1198 function Explicit_Actual_Parameter
1199 (N : Node_Id) return Node_Id is
1200 begin
1201 pragma Assert (False
1202 or else NT (N).Nkind = N_Parameter_Association);
1203 return Node3 (N);
1204 end Explicit_Actual_Parameter;
1205
1206 function Explicit_Generic_Actual_Parameter
1207 (N : Node_Id) return Node_Id is
1208 begin
1209 pragma Assert (False
1210 or else NT (N).Nkind = N_Generic_Association);
1211 return Node1 (N);
1212 end Explicit_Generic_Actual_Parameter;
1213
1214 function Expression
1215 (N : Node_Id) return Node_Id is
1216 begin
1217 pragma Assert (False
1218 or else NT (N).Nkind = N_Allocator
1219 or else NT (N).Nkind = N_Aspect_Specification
1220 or else NT (N).Nkind = N_Assignment_Statement
1221 or else NT (N).Nkind = N_At_Clause
1222 or else NT (N).Nkind = N_Attribute_Definition_Clause
1223 or else NT (N).Nkind = N_Case_Expression
1224 or else NT (N).Nkind = N_Case_Expression_Alternative
1225 or else NT (N).Nkind = N_Case_Statement
1226 or else NT (N).Nkind = N_Code_Statement
1227 or else NT (N).Nkind = N_Component_Association
1228 or else NT (N).Nkind = N_Component_Declaration
1229 or else NT (N).Nkind = N_Delay_Relative_Statement
1230 or else NT (N).Nkind = N_Delay_Until_Statement
1231 or else NT (N).Nkind = N_Discriminant_Association
1232 or else NT (N).Nkind = N_Discriminant_Specification
1233 or else NT (N).Nkind = N_Exception_Declaration
1234 or else NT (N).Nkind = N_Expression_Function
1235 or else NT (N).Nkind = N_Expression_With_Actions
1236 or else NT (N).Nkind = N_Free_Statement
1237 or else NT (N).Nkind = N_Mod_Clause
1238 or else NT (N).Nkind = N_Modular_Type_Definition
1239 or else NT (N).Nkind = N_Number_Declaration
1240 or else NT (N).Nkind = N_Object_Declaration
1241 or else NT (N).Nkind = N_Parameter_Specification
1242 or else NT (N).Nkind = N_Pragma_Argument_Association
1243 or else NT (N).Nkind = N_Qualified_Expression
1244 or else NT (N).Nkind = N_Raise_Expression
1245 or else NT (N).Nkind = N_Raise_Statement
1246 or else NT (N).Nkind = N_Simple_Return_Statement
1247 or else NT (N).Nkind = N_Type_Conversion
1248 or else NT (N).Nkind = N_Unchecked_Expression
1249 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1250 return Node3 (N);
1251 end Expression;
1252
1253 function Expressions
1254 (N : Node_Id) return List_Id is
1255 begin
1256 pragma Assert (False
1257 or else NT (N).Nkind = N_Aggregate
1258 or else NT (N).Nkind = N_Attribute_Reference
1259 or else NT (N).Nkind = N_Extension_Aggregate
1260 or else NT (N).Nkind = N_If_Expression
1261 or else NT (N).Nkind = N_Indexed_Component);
1262 return List1 (N);
1263 end Expressions;
1264
1265 function First_Bit
1266 (N : Node_Id) return Node_Id is
1267 begin
1268 pragma Assert (False
1269 or else NT (N).Nkind = N_Component_Clause);
1270 return Node3 (N);
1271 end First_Bit;
1272
1273 function First_Inlined_Subprogram
1274 (N : Node_Id) return Entity_Id is
1275 begin
1276 pragma Assert (False
1277 or else NT (N).Nkind = N_Compilation_Unit);
1278 return Node3 (N);
1279 end First_Inlined_Subprogram;
1280
1281 function First_Name
1282 (N : Node_Id) return Boolean is
1283 begin
1284 pragma Assert (False
1285 or else NT (N).Nkind = N_With_Clause);
1286 return Flag5 (N);
1287 end First_Name;
1288
1289 function First_Named_Actual
1290 (N : Node_Id) return Node_Id is
1291 begin
1292 pragma Assert (False
1293 or else NT (N).Nkind = N_Entry_Call_Statement
1294 or else NT (N).Nkind = N_Function_Call
1295 or else NT (N).Nkind = N_Procedure_Call_Statement);
1296 return Node4 (N);
1297 end First_Named_Actual;
1298
1299 function First_Real_Statement
1300 (N : Node_Id) return Node_Id is
1301 begin
1302 pragma Assert (False
1303 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1304 return Node2 (N);
1305 end First_Real_Statement;
1306
1307 function First_Subtype_Link
1308 (N : Node_Id) return Entity_Id is
1309 begin
1310 pragma Assert (False
1311 or else NT (N).Nkind = N_Freeze_Entity);
1312 return Node5 (N);
1313 end First_Subtype_Link;
1314
1315 function Float_Truncate
1316 (N : Node_Id) return Boolean is
1317 begin
1318 pragma Assert (False
1319 or else NT (N).Nkind = N_Type_Conversion);
1320 return Flag11 (N);
1321 end Float_Truncate;
1322
1323 function Formal_Type_Definition
1324 (N : Node_Id) return Node_Id is
1325 begin
1326 pragma Assert (False
1327 or else NT (N).Nkind = N_Formal_Type_Declaration);
1328 return Node3 (N);
1329 end Formal_Type_Definition;
1330
1331 function Forwards_OK
1332 (N : Node_Id) return Boolean is
1333 begin
1334 pragma Assert (False
1335 or else NT (N).Nkind = N_Assignment_Statement);
1336 return Flag5 (N);
1337 end Forwards_OK;
1338
1339 function From_Aspect_Specification
1340 (N : Node_Id) return Boolean is
1341 begin
1342 pragma Assert (False
1343 or else NT (N).Nkind = N_Attribute_Definition_Clause
1344 or else NT (N).Nkind = N_Pragma);
1345 return Flag13 (N);
1346 end From_Aspect_Specification;
1347
1348 function From_At_End
1349 (N : Node_Id) return Boolean is
1350 begin
1351 pragma Assert (False
1352 or else NT (N).Nkind = N_Raise_Statement);
1353 return Flag4 (N);
1354 end From_At_End;
1355
1356 function From_At_Mod
1357 (N : Node_Id) return Boolean is
1358 begin
1359 pragma Assert (False
1360 or else NT (N).Nkind = N_Attribute_Definition_Clause);
1361 return Flag4 (N);
1362 end From_At_Mod;
1363
1364 function From_Default
1365 (N : Node_Id) return Boolean is
1366 begin
1367 pragma Assert (False
1368 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
1369 return Flag6 (N);
1370 end From_Default;
1371
1372 function Generic_Associations
1373 (N : Node_Id) return List_Id is
1374 begin
1375 pragma Assert (False
1376 or else NT (N).Nkind = N_Formal_Package_Declaration
1377 or else NT (N).Nkind = N_Function_Instantiation
1378 or else NT (N).Nkind = N_Package_Instantiation
1379 or else NT (N).Nkind = N_Procedure_Instantiation);
1380 return List3 (N);
1381 end Generic_Associations;
1382
1383 function Generic_Formal_Declarations
1384 (N : Node_Id) return List_Id is
1385 begin
1386 pragma Assert (False
1387 or else NT (N).Nkind = N_Generic_Package_Declaration
1388 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
1389 return List2 (N);
1390 end Generic_Formal_Declarations;
1391
1392 function Generic_Parent
1393 (N : Node_Id) return Node_Id is
1394 begin
1395 pragma Assert (False
1396 or else NT (N).Nkind = N_Function_Specification
1397 or else NT (N).Nkind = N_Package_Specification
1398 or else NT (N).Nkind = N_Procedure_Specification);
1399 return Node5 (N);
1400 end Generic_Parent;
1401
1402 function Generic_Parent_Type
1403 (N : Node_Id) return Node_Id is
1404 begin
1405 pragma Assert (False
1406 or else NT (N).Nkind = N_Subtype_Declaration);
1407 return Node4 (N);
1408 end Generic_Parent_Type;
1409
1410 function Handled_Statement_Sequence
1411 (N : Node_Id) return Node_Id is
1412 begin
1413 pragma Assert (False
1414 or else NT (N).Nkind = N_Accept_Statement
1415 or else NT (N).Nkind = N_Block_Statement
1416 or else NT (N).Nkind = N_Entry_Body
1417 or else NT (N).Nkind = N_Extended_Return_Statement
1418 or else NT (N).Nkind = N_Package_Body
1419 or else NT (N).Nkind = N_Subprogram_Body
1420 or else NT (N).Nkind = N_Task_Body);
1421 return Node4 (N);
1422 end Handled_Statement_Sequence;
1423
1424 function Handler_List_Entry
1425 (N : Node_Id) return Node_Id is
1426 begin
1427 pragma Assert (False
1428 or else NT (N).Nkind = N_Object_Declaration);
1429 return Node2 (N);
1430 end Handler_List_Entry;
1431
1432 function Has_Created_Identifier
1433 (N : Node_Id) return Boolean is
1434 begin
1435 pragma Assert (False
1436 or else NT (N).Nkind = N_Block_Statement
1437 or else NT (N).Nkind = N_Loop_Statement);
1438 return Flag15 (N);
1439 end Has_Created_Identifier;
1440
1441 function Has_Dereference_Action
1442 (N : Node_Id) return Boolean is
1443 begin
1444 pragma Assert (False
1445 or else NT (N).Nkind = N_Explicit_Dereference);
1446 return Flag13 (N);
1447 end Has_Dereference_Action;
1448
1449 function Has_Dynamic_Length_Check
1450 (N : Node_Id) return Boolean is
1451 begin
1452 pragma Assert (False
1453 or else NT (N).Nkind in N_Subexpr);
1454 return Flag10 (N);
1455 end Has_Dynamic_Length_Check;
1456
1457 function Has_Dynamic_Range_Check
1458 (N : Node_Id) return Boolean is
1459 begin
1460 pragma Assert (False
1461 or else NT (N).Nkind = N_Subtype_Declaration
1462 or else NT (N).Nkind in N_Subexpr);
1463 return Flag12 (N);
1464 end Has_Dynamic_Range_Check;
1465
1466 function Has_Init_Expression
1467 (N : Node_Id) return Boolean is
1468 begin
1469 pragma Assert (False
1470 or else NT (N).Nkind = N_Object_Declaration);
1471 return Flag14 (N);
1472 end Has_Init_Expression;
1473
1474 function Has_Local_Raise
1475 (N : Node_Id) return Boolean is
1476 begin
1477 pragma Assert (False
1478 or else NT (N).Nkind = N_Exception_Handler);
1479 return Flag8 (N);
1480 end Has_Local_Raise;
1481
1482 function Has_No_Elaboration_Code
1483 (N : Node_Id) return Boolean is
1484 begin
1485 pragma Assert (False
1486 or else NT (N).Nkind = N_Compilation_Unit);
1487 return Flag17 (N);
1488 end Has_No_Elaboration_Code;
1489
1490 function Has_Pragma_Suppress_All
1491 (N : Node_Id) return Boolean is
1492 begin
1493 pragma Assert (False
1494 or else NT (N).Nkind = N_Compilation_Unit);
1495 return Flag14 (N);
1496 end Has_Pragma_Suppress_All;
1497
1498 function Has_Private_View
1499 (N : Node_Id) return Boolean is
1500 begin
1501 pragma Assert (False
1502 or else NT (N).Nkind in N_Op
1503 or else NT (N).Nkind = N_Character_Literal
1504 or else NT (N).Nkind = N_Expanded_Name
1505 or else NT (N).Nkind = N_Identifier
1506 or else NT (N).Nkind = N_Operator_Symbol);
1507 return Flag11 (N);
1508 end Has_Private_View;
1509
1510 function Has_Relative_Deadline_Pragma
1511 (N : Node_Id) return Boolean is
1512 begin
1513 pragma Assert (False
1514 or else NT (N).Nkind = N_Subprogram_Body
1515 or else NT (N).Nkind = N_Task_Definition);
1516 return Flag9 (N);
1517 end Has_Relative_Deadline_Pragma;
1518
1519 function Has_Self_Reference
1520 (N : Node_Id) return Boolean is
1521 begin
1522 pragma Assert (False
1523 or else NT (N).Nkind = N_Aggregate
1524 or else NT (N).Nkind = N_Extension_Aggregate);
1525 return Flag13 (N);
1526 end Has_Self_Reference;
1527
1528 function Has_Storage_Size_Pragma
1529 (N : Node_Id) return Boolean is
1530 begin
1531 pragma Assert (False
1532 or else NT (N).Nkind = N_Task_Definition);
1533 return Flag5 (N);
1534 end Has_Storage_Size_Pragma;
1535
1536 function Has_Wide_Character
1537 (N : Node_Id) return Boolean is
1538 begin
1539 pragma Assert (False
1540 or else NT (N).Nkind = N_String_Literal);
1541 return Flag11 (N);
1542 end Has_Wide_Character;
1543
1544 function Has_Wide_Wide_Character
1545 (N : Node_Id) return Boolean is
1546 begin
1547 pragma Assert (False
1548 or else NT (N).Nkind = N_String_Literal);
1549 return Flag13 (N);
1550 end Has_Wide_Wide_Character;
1551
1552 function Header_Size_Added
1553 (N : Node_Id) return Boolean is
1554 begin
1555 pragma Assert (False
1556 or else NT (N).Nkind = N_Attribute_Reference);
1557 return Flag11 (N);
1558 end Header_Size_Added;
1559
1560 function Hidden_By_Use_Clause
1561 (N : Node_Id) return Elist_Id is
1562 begin
1563 pragma Assert (False
1564 or else NT (N).Nkind = N_Use_Package_Clause
1565 or else NT (N).Nkind = N_Use_Type_Clause);
1566 return Elist4 (N);
1567 end Hidden_By_Use_Clause;
1568
1569 function High_Bound
1570 (N : Node_Id) return Node_Id is
1571 begin
1572 pragma Assert (False
1573 or else NT (N).Nkind = N_Range
1574 or else NT (N).Nkind = N_Real_Range_Specification
1575 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1576 return Node2 (N);
1577 end High_Bound;
1578
1579 function Identifier
1580 (N : Node_Id) return Node_Id is
1581 begin
1582 pragma Assert (False
1583 or else NT (N).Nkind = N_Aspect_Specification
1584 or else NT (N).Nkind = N_At_Clause
1585 or else NT (N).Nkind = N_Block_Statement
1586 or else NT (N).Nkind = N_Designator
1587 or else NT (N).Nkind = N_Enumeration_Representation_Clause
1588 or else NT (N).Nkind = N_Label
1589 or else NT (N).Nkind = N_Loop_Statement
1590 or else NT (N).Nkind = N_Record_Representation_Clause
1591 or else NT (N).Nkind = N_Subprogram_Info);
1592 return Node1 (N);
1593 end Identifier;
1594
1595 function Implicit_With
1596 (N : Node_Id) return Boolean is
1597 begin
1598 pragma Assert (False
1599 or else NT (N).Nkind = N_With_Clause);
1600 return Flag16 (N);
1601 end Implicit_With;
1602
1603 function Implicit_With_From_Instantiation
1604 (N : Node_Id) return Boolean is
1605 begin
1606 pragma Assert (False
1607 or else NT (N).Nkind = N_With_Clause);
1608 return Flag12 (N);
1609 end Implicit_With_From_Instantiation;
1610
1611 function Interface_List
1612 (N : Node_Id) return List_Id is
1613 begin
1614 pragma Assert (False
1615 or else NT (N).Nkind = N_Derived_Type_Definition
1616 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1617 or else NT (N).Nkind = N_Private_Extension_Declaration
1618 or else NT (N).Nkind = N_Protected_Type_Declaration
1619 or else NT (N).Nkind = N_Record_Definition
1620 or else NT (N).Nkind = N_Single_Protected_Declaration
1621 or else NT (N).Nkind = N_Single_Task_Declaration
1622 or else NT (N).Nkind = N_Task_Type_Declaration);
1623 return List2 (N);
1624 end Interface_List;
1625
1626 function Interface_Present
1627 (N : Node_Id) return Boolean is
1628 begin
1629 pragma Assert (False
1630 or else NT (N).Nkind = N_Derived_Type_Definition
1631 or else NT (N).Nkind = N_Record_Definition);
1632 return Flag16 (N);
1633 end Interface_Present;
1634
1635 function Import_Interface_Present
1636 (N : Node_Id) return Boolean is
1637 begin
1638 pragma Assert (False
1639 or else NT (N).Nkind = N_Pragma);
1640 return Flag16 (N);
1641 end Import_Interface_Present;
1642
1643 function In_Assertion_Expression
1644 (N : Node_Id) return Boolean is
1645 begin
1646 pragma Assert (False
1647 or else NT (N).Nkind = N_Function_Call);
1648 return Flag4 (N);
1649 end In_Assertion_Expression;
1650
1651 function In_Present
1652 (N : Node_Id) return Boolean is
1653 begin
1654 pragma Assert (False
1655 or else NT (N).Nkind = N_Formal_Object_Declaration
1656 or else NT (N).Nkind = N_Parameter_Specification);
1657 return Flag15 (N);
1658 end In_Present;
1659
1660 function Includes_Infinities
1661 (N : Node_Id) return Boolean is
1662 begin
1663 pragma Assert (False
1664 or else NT (N).Nkind = N_Range);
1665 return Flag11 (N);
1666 end Includes_Infinities;
1667
1668 function Inherited_Discriminant
1669 (N : Node_Id) return Boolean is
1670 begin
1671 pragma Assert (False
1672 or else NT (N).Nkind = N_Component_Association);
1673 return Flag13 (N);
1674 end Inherited_Discriminant;
1675
1676 function Instance_Spec
1677 (N : Node_Id) return Node_Id is
1678 begin
1679 pragma Assert (False
1680 or else NT (N).Nkind = N_Formal_Package_Declaration
1681 or else NT (N).Nkind = N_Function_Instantiation
1682 or else NT (N).Nkind = N_Package_Instantiation
1683 or else NT (N).Nkind = N_Procedure_Instantiation);
1684 return Node5 (N);
1685 end Instance_Spec;
1686
1687 function Intval
1688 (N : Node_Id) return Uint is
1689 begin
1690 pragma Assert (False
1691 or else NT (N).Nkind = N_Integer_Literal);
1692 return Uint3 (N);
1693 end Intval;
1694
1695 function Is_Accessibility_Actual
1696 (N : Node_Id) return Boolean is
1697 begin
1698 pragma Assert (False
1699 or else NT (N).Nkind = N_Parameter_Association);
1700 return Flag13 (N);
1701 end Is_Accessibility_Actual;
1702
1703 function Is_Asynchronous_Call_Block
1704 (N : Node_Id) return Boolean is
1705 begin
1706 pragma Assert (False
1707 or else NT (N).Nkind = N_Block_Statement);
1708 return Flag7 (N);
1709 end Is_Asynchronous_Call_Block;
1710
1711 function Is_Boolean_Aspect
1712 (N : Node_Id) return Boolean is
1713 begin
1714 pragma Assert (False
1715 or else NT (N).Nkind = N_Aspect_Specification);
1716 return Flag16 (N);
1717 end Is_Boolean_Aspect;
1718
1719 function Is_Component_Left_Opnd
1720 (N : Node_Id) return Boolean is
1721 begin
1722 pragma Assert (False
1723 or else NT (N).Nkind = N_Op_Concat);
1724 return Flag13 (N);
1725 end Is_Component_Left_Opnd;
1726
1727 function Is_Component_Right_Opnd
1728 (N : Node_Id) return Boolean is
1729 begin
1730 pragma Assert (False
1731 or else NT (N).Nkind = N_Op_Concat);
1732 return Flag14 (N);
1733 end Is_Component_Right_Opnd;
1734
1735 function Is_Controlling_Actual
1736 (N : Node_Id) return Boolean is
1737 begin
1738 pragma Assert (False
1739 or else NT (N).Nkind in N_Subexpr);
1740 return Flag16 (N);
1741 end Is_Controlling_Actual;
1742
1743 function Is_Delayed_Aspect
1744 (N : Node_Id) return Boolean is
1745 begin
1746 pragma Assert (False
1747 or else NT (N).Nkind = N_Aspect_Specification
1748 or else NT (N).Nkind = N_Attribute_Definition_Clause
1749 or else NT (N).Nkind = N_Pragma);
1750 return Flag14 (N);
1751 end Is_Delayed_Aspect;
1752
1753 function Is_Dynamic_Coextension
1754 (N : Node_Id) return Boolean is
1755 begin
1756 pragma Assert (False
1757 or else NT (N).Nkind = N_Allocator);
1758 return Flag18 (N);
1759 end Is_Dynamic_Coextension;
1760
1761 function Is_Elsif
1762 (N : Node_Id) return Boolean is
1763 begin
1764 pragma Assert (False
1765 or else NT (N).Nkind = N_If_Expression);
1766 return Flag13 (N);
1767 end Is_Elsif;
1768
1769 function Is_Entry_Barrier_Function
1770 (N : Node_Id) return Boolean is
1771 begin
1772 pragma Assert (False
1773 or else NT (N).Nkind = N_Subprogram_Body);
1774 return Flag8 (N);
1775 end Is_Entry_Barrier_Function;
1776
1777 function Is_Expanded_Build_In_Place_Call
1778 (N : Node_Id) return Boolean is
1779 begin
1780 pragma Assert (False
1781 or else NT (N).Nkind = N_Function_Call);
1782 return Flag11 (N);
1783 end Is_Expanded_Build_In_Place_Call;
1784
1785 function Is_Finalization_Wrapper
1786 (N : Node_Id) return Boolean is
1787 begin
1788 pragma Assert (False
1789 or else NT (N).Nkind = N_Block_Statement);
1790 return Flag9 (N);
1791 end Is_Finalization_Wrapper;
1792
1793 function Is_Folded_In_Parser
1794 (N : Node_Id) return Boolean is
1795 begin
1796 pragma Assert (False
1797 or else NT (N).Nkind = N_String_Literal);
1798 return Flag4 (N);
1799 end Is_Folded_In_Parser;
1800
1801 function Is_In_Discriminant_Check
1802 (N : Node_Id) return Boolean is
1803 begin
1804 pragma Assert (False
1805 or else NT (N).Nkind = N_Selected_Component);
1806 return Flag11 (N);
1807 end Is_In_Discriminant_Check;
1808
1809 function Is_Machine_Number
1810 (N : Node_Id) return Boolean is
1811 begin
1812 pragma Assert (False
1813 or else NT (N).Nkind = N_Real_Literal);
1814 return Flag11 (N);
1815 end Is_Machine_Number;
1816
1817 function Is_Null_Loop
1818 (N : Node_Id) return Boolean is
1819 begin
1820 pragma Assert (False
1821 or else NT (N).Nkind = N_Loop_Statement);
1822 return Flag16 (N);
1823 end Is_Null_Loop;
1824
1825 function Is_Overloaded
1826 (N : Node_Id) return Boolean is
1827 begin
1828 pragma Assert (False
1829 or else NT (N).Nkind in N_Subexpr);
1830 return Flag5 (N);
1831 end Is_Overloaded;
1832
1833 function Is_Power_Of_2_For_Shift
1834 (N : Node_Id) return Boolean is
1835 begin
1836 pragma Assert (False
1837 or else NT (N).Nkind = N_Op_Expon);
1838 return Flag13 (N);
1839 end Is_Power_Of_2_For_Shift;
1840
1841 function Is_Prefixed_Call
1842 (N : Node_Id) return Boolean is
1843 begin
1844 pragma Assert (False
1845 or else NT (N).Nkind = N_Selected_Component);
1846 return Flag17 (N);
1847 end Is_Prefixed_Call;
1848
1849 function Is_Protected_Subprogram_Body
1850 (N : Node_Id) return Boolean is
1851 begin
1852 pragma Assert (False
1853 or else NT (N).Nkind = N_Subprogram_Body);
1854 return Flag7 (N);
1855 end Is_Protected_Subprogram_Body;
1856
1857 function Is_Static_Coextension
1858 (N : Node_Id) return Boolean is
1859 begin
1860 pragma Assert (False
1861 or else NT (N).Nkind = N_Allocator);
1862 return Flag14 (N);
1863 end Is_Static_Coextension;
1864
1865 function Is_Static_Expression
1866 (N : Node_Id) return Boolean is
1867 begin
1868 pragma Assert (False
1869 or else NT (N).Nkind in N_Subexpr);
1870 return Flag6 (N);
1871 end Is_Static_Expression;
1872
1873 function Is_Subprogram_Descriptor
1874 (N : Node_Id) return Boolean is
1875 begin
1876 pragma Assert (False
1877 or else NT (N).Nkind = N_Object_Declaration);
1878 return Flag16 (N);
1879 end Is_Subprogram_Descriptor;
1880
1881 function Is_Task_Allocation_Block
1882 (N : Node_Id) return Boolean is
1883 begin
1884 pragma Assert (False
1885 or else NT (N).Nkind = N_Block_Statement);
1886 return Flag6 (N);
1887 end Is_Task_Allocation_Block;
1888
1889 function Is_Task_Master
1890 (N : Node_Id) return Boolean is
1891 begin
1892 pragma Assert (False
1893 or else NT (N).Nkind = N_Block_Statement
1894 or else NT (N).Nkind = N_Subprogram_Body
1895 or else NT (N).Nkind = N_Task_Body);
1896 return Flag5 (N);
1897 end Is_Task_Master;
1898
1899 function Iteration_Scheme
1900 (N : Node_Id) return Node_Id is
1901 begin
1902 pragma Assert (False
1903 or else NT (N).Nkind = N_Loop_Statement);
1904 return Node2 (N);
1905 end Iteration_Scheme;
1906
1907 function Iterator_Specification
1908 (N : Node_Id) return Node_Id is
1909 begin
1910 pragma Assert (False
1911 or else NT (N).Nkind = N_Iteration_Scheme
1912 or else NT (N).Nkind = N_Quantified_Expression);
1913 return Node2 (N);
1914 end Iterator_Specification;
1915
1916 function Itype
1917 (N : Node_Id) return Node_Id is
1918 begin
1919 pragma Assert (False
1920 or else NT (N).Nkind = N_Itype_Reference);
1921 return Node1 (N);
1922 end Itype;
1923
1924 function Kill_Range_Check
1925 (N : Node_Id) return Boolean is
1926 begin
1927 pragma Assert (False
1928 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1929 return Flag11 (N);
1930 end Kill_Range_Check;
1931
1932 function Label_Construct
1933 (N : Node_Id) return Node_Id is
1934 begin
1935 pragma Assert (False
1936 or else NT (N).Nkind = N_Implicit_Label_Declaration);
1937 return Node2 (N);
1938 end Label_Construct;
1939
1940 function Last_Bit
1941 (N : Node_Id) return Node_Id is
1942 begin
1943 pragma Assert (False
1944 or else NT (N).Nkind = N_Component_Clause);
1945 return Node4 (N);
1946 end Last_Bit;
1947
1948 function Last_Name
1949 (N : Node_Id) return Boolean is
1950 begin
1951 pragma Assert (False
1952 or else NT (N).Nkind = N_With_Clause);
1953 return Flag6 (N);
1954 end Last_Name;
1955
1956 function Left_Opnd
1957 (N : Node_Id) return Node_Id is
1958 begin
1959 pragma Assert (False
1960 or else NT (N).Nkind = N_And_Then
1961 or else NT (N).Nkind = N_In
1962 or else NT (N).Nkind = N_Not_In
1963 or else NT (N).Nkind = N_Or_Else
1964 or else NT (N).Nkind in N_Binary_Op);
1965 return Node2 (N);
1966 end Left_Opnd;
1967
1968 function Library_Unit
1969 (N : Node_Id) return Node_Id is
1970 begin
1971 pragma Assert (False
1972 or else NT (N).Nkind = N_Compilation_Unit
1973 or else NT (N).Nkind = N_Package_Body_Stub
1974 or else NT (N).Nkind = N_Protected_Body_Stub
1975 or else NT (N).Nkind = N_Subprogram_Body_Stub
1976 or else NT (N).Nkind = N_Task_Body_Stub
1977 or else NT (N).Nkind = N_With_Clause);
1978 return Node4 (N);
1979 end Library_Unit;
1980
1981 function Limited_View_Installed
1982 (N : Node_Id) return Boolean is
1983 begin
1984 pragma Assert (False
1985 or else NT (N).Nkind = N_Package_Specification
1986 or else NT (N).Nkind = N_With_Clause);
1987 return Flag18 (N);
1988 end Limited_View_Installed;
1989
1990 function Limited_Present
1991 (N : Node_Id) return Boolean is
1992 begin
1993 pragma Assert (False
1994 or else NT (N).Nkind = N_Derived_Type_Definition
1995 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1996 or else NT (N).Nkind = N_Formal_Private_Type_Definition
1997 or else NT (N).Nkind = N_Private_Extension_Declaration
1998 or else NT (N).Nkind = N_Private_Type_Declaration
1999 or else NT (N).Nkind = N_Record_Definition
2000 or else NT (N).Nkind = N_With_Clause);
2001 return Flag17 (N);
2002 end Limited_Present;
2003
2004 function Literals
2005 (N : Node_Id) return List_Id is
2006 begin
2007 pragma Assert (False
2008 or else NT (N).Nkind = N_Enumeration_Type_Definition);
2009 return List1 (N);
2010 end Literals;
2011
2012 function Local_Raise_Not_OK
2013 (N : Node_Id) return Boolean is
2014 begin
2015 pragma Assert (False
2016 or else NT (N).Nkind = N_Exception_Handler);
2017 return Flag7 (N);
2018 end Local_Raise_Not_OK;
2019
2020 function Local_Raise_Statements
2021 (N : Node_Id) return Elist_Id is
2022 begin
2023 pragma Assert (False
2024 or else NT (N).Nkind = N_Exception_Handler);
2025 return Elist1 (N);
2026 end Local_Raise_Statements;
2027
2028 function Loop_Actions
2029 (N : Node_Id) return List_Id is
2030 begin
2031 pragma Assert (False
2032 or else NT (N).Nkind = N_Component_Association);
2033 return List2 (N);
2034 end Loop_Actions;
2035
2036 function Loop_Parameter_Specification
2037 (N : Node_Id) return Node_Id is
2038 begin
2039 pragma Assert (False
2040 or else NT (N).Nkind = N_Iteration_Scheme
2041 or else NT (N).Nkind = N_Quantified_Expression);
2042 return Node4 (N);
2043 end Loop_Parameter_Specification;
2044
2045 function Low_Bound
2046 (N : Node_Id) return Node_Id is
2047 begin
2048 pragma Assert (False
2049 or else NT (N).Nkind = N_Range
2050 or else NT (N).Nkind = N_Real_Range_Specification
2051 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
2052 return Node1 (N);
2053 end Low_Bound;
2054
2055 function Mod_Clause
2056 (N : Node_Id) return Node_Id is
2057 begin
2058 pragma Assert (False
2059 or else NT (N).Nkind = N_Record_Representation_Clause);
2060 return Node2 (N);
2061 end Mod_Clause;
2062
2063 function More_Ids
2064 (N : Node_Id) return Boolean is
2065 begin
2066 pragma Assert (False
2067 or else NT (N).Nkind = N_Component_Declaration
2068 or else NT (N).Nkind = N_Discriminant_Specification
2069 or else NT (N).Nkind = N_Exception_Declaration
2070 or else NT (N).Nkind = N_Formal_Object_Declaration
2071 or else NT (N).Nkind = N_Number_Declaration
2072 or else NT (N).Nkind = N_Object_Declaration
2073 or else NT (N).Nkind = N_Parameter_Specification);
2074 return Flag5 (N);
2075 end More_Ids;
2076
2077 function Must_Be_Byte_Aligned
2078 (N : Node_Id) return Boolean is
2079 begin
2080 pragma Assert (False
2081 or else NT (N).Nkind = N_Attribute_Reference);
2082 return Flag14 (N);
2083 end Must_Be_Byte_Aligned;
2084
2085 function Must_Not_Freeze
2086 (N : Node_Id) return Boolean is
2087 begin
2088 pragma Assert (False
2089 or else NT (N).Nkind = N_Subtype_Indication
2090 or else NT (N).Nkind in N_Subexpr);
2091 return Flag8 (N);
2092 end Must_Not_Freeze;
2093
2094 function Must_Not_Override
2095 (N : Node_Id) return Boolean is
2096 begin
2097 pragma Assert (False
2098 or else NT (N).Nkind = N_Entry_Declaration
2099 or else NT (N).Nkind = N_Function_Instantiation
2100 or else NT (N).Nkind = N_Function_Specification
2101 or else NT (N).Nkind = N_Procedure_Instantiation
2102 or else NT (N).Nkind = N_Procedure_Specification);
2103 return Flag15 (N);
2104 end Must_Not_Override;
2105
2106 function Must_Override
2107 (N : Node_Id) return Boolean is
2108 begin
2109 pragma Assert (False
2110 or else NT (N).Nkind = N_Entry_Declaration
2111 or else NT (N).Nkind = N_Function_Instantiation
2112 or else NT (N).Nkind = N_Function_Specification
2113 or else NT (N).Nkind = N_Procedure_Instantiation
2114 or else NT (N).Nkind = N_Procedure_Specification);
2115 return Flag14 (N);
2116 end Must_Override;
2117
2118 function Name
2119 (N : Node_Id) return Node_Id is
2120 begin
2121 pragma Assert (False
2122 or else NT (N).Nkind = N_Assignment_Statement
2123 or else NT (N).Nkind = N_Attribute_Definition_Clause
2124 or else NT (N).Nkind = N_Defining_Program_Unit_Name
2125 or else NT (N).Nkind = N_Designator
2126 or else NT (N).Nkind = N_Entry_Call_Statement
2127 or else NT (N).Nkind = N_Exception_Renaming_Declaration
2128 or else NT (N).Nkind = N_Exit_Statement
2129 or else NT (N).Nkind = N_Formal_Package_Declaration
2130 or else NT (N).Nkind = N_Function_Call
2131 or else NT (N).Nkind = N_Function_Instantiation
2132 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2133 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2134 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2135 or else NT (N).Nkind = N_Goto_Statement
2136 or else NT (N).Nkind = N_Iterator_Specification
2137 or else NT (N).Nkind = N_Object_Renaming_Declaration
2138 or else NT (N).Nkind = N_Package_Instantiation
2139 or else NT (N).Nkind = N_Package_Renaming_Declaration
2140 or else NT (N).Nkind = N_Procedure_Call_Statement
2141 or else NT (N).Nkind = N_Procedure_Instantiation
2142 or else NT (N).Nkind = N_Raise_Expression
2143 or else NT (N).Nkind = N_Raise_Statement
2144 or else NT (N).Nkind = N_Requeue_Statement
2145 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
2146 or else NT (N).Nkind = N_Subunit
2147 or else NT (N).Nkind = N_Variant_Part
2148 or else NT (N).Nkind = N_With_Clause);
2149 return Node2 (N);
2150 end Name;
2151
2152 function Names
2153 (N : Node_Id) return List_Id is
2154 begin
2155 pragma Assert (False
2156 or else NT (N).Nkind = N_Abort_Statement
2157 or else NT (N).Nkind = N_Use_Package_Clause);
2158 return List2 (N);
2159 end Names;
2160
2161 function Next_Entity
2162 (N : Node_Id) return Node_Id is
2163 begin
2164 pragma Assert (False
2165 or else NT (N).Nkind = N_Defining_Character_Literal
2166 or else NT (N).Nkind = N_Defining_Identifier
2167 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2168 return Node2 (N);
2169 end Next_Entity;
2170
2171 function Next_Exit_Statement
2172 (N : Node_Id) return Node_Id is
2173 begin
2174 pragma Assert (False
2175 or else NT (N).Nkind = N_Exit_Statement);
2176 return Node3 (N);
2177 end Next_Exit_Statement;
2178
2179 function Next_Implicit_With
2180 (N : Node_Id) return Node_Id is
2181 begin
2182 pragma Assert (False
2183 or else NT (N).Nkind = N_With_Clause);
2184 return Node3 (N);
2185 end Next_Implicit_With;
2186
2187 function Next_Named_Actual
2188 (N : Node_Id) return Node_Id is
2189 begin
2190 pragma Assert (False
2191 or else NT (N).Nkind = N_Parameter_Association);
2192 return Node4 (N);
2193 end Next_Named_Actual;
2194
2195 function Next_Pragma
2196 (N : Node_Id) return Node_Id is
2197 begin
2198 pragma Assert (False
2199 or else NT (N).Nkind = N_Pragma);
2200 return Node1 (N);
2201 end Next_Pragma;
2202
2203 function Next_Rep_Item
2204 (N : Node_Id) return Node_Id is
2205 begin
2206 pragma Assert (False
2207 or else NT (N).Nkind = N_Aspect_Specification
2208 or else NT (N).Nkind = N_Attribute_Definition_Clause
2209 or else NT (N).Nkind = N_Enumeration_Representation_Clause
2210 or else NT (N).Nkind = N_Pragma
2211 or else NT (N).Nkind = N_Record_Representation_Clause);
2212 return Node5 (N);
2213 end Next_Rep_Item;
2214
2215 function Next_Use_Clause
2216 (N : Node_Id) return Node_Id is
2217 begin
2218 pragma Assert (False
2219 or else NT (N).Nkind = N_Use_Package_Clause
2220 or else NT (N).Nkind = N_Use_Type_Clause);
2221 return Node3 (N);
2222 end Next_Use_Clause;
2223
2224 function No_Ctrl_Actions
2225 (N : Node_Id) return Boolean is
2226 begin
2227 pragma Assert (False
2228 or else NT (N).Nkind = N_Assignment_Statement);
2229 return Flag7 (N);
2230 end No_Ctrl_Actions;
2231
2232 function No_Elaboration_Check
2233 (N : Node_Id) return Boolean is
2234 begin
2235 pragma Assert (False
2236 or else NT (N).Nkind = N_Function_Call
2237 or else NT (N).Nkind = N_Procedure_Call_Statement);
2238 return Flag14 (N);
2239 end No_Elaboration_Check;
2240
2241 function No_Entities_Ref_In_Spec
2242 (N : Node_Id) return Boolean is
2243 begin
2244 pragma Assert (False
2245 or else NT (N).Nkind = N_With_Clause);
2246 return Flag8 (N);
2247 end No_Entities_Ref_In_Spec;
2248
2249 function No_Initialization
2250 (N : Node_Id) return Boolean is
2251 begin
2252 pragma Assert (False
2253 or else NT (N).Nkind = N_Allocator
2254 or else NT (N).Nkind = N_Object_Declaration);
2255 return Flag13 (N);
2256 end No_Initialization;
2257
2258 function No_Minimize_Eliminate
2259 (N : Node_Id) return Boolean is
2260 begin
2261 pragma Assert (False
2262 or else NT (N).Nkind = N_In
2263 or else NT (N).Nkind = N_Not_In);
2264 return Flag17 (N);
2265 end No_Minimize_Eliminate;
2266
2267 function No_Truncation
2268 (N : Node_Id) return Boolean is
2269 begin
2270 pragma Assert (False
2271 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2272 return Flag17 (N);
2273 end No_Truncation;
2274
2275 function Null_Present
2276 (N : Node_Id) return Boolean is
2277 begin
2278 pragma Assert (False
2279 or else NT (N).Nkind = N_Component_List
2280 or else NT (N).Nkind = N_Procedure_Specification
2281 or else NT (N).Nkind = N_Record_Definition);
2282 return Flag13 (N);
2283 end Null_Present;
2284
2285 function Null_Exclusion_Present
2286 (N : Node_Id) return Boolean is
2287 begin
2288 pragma Assert (False
2289 or else NT (N).Nkind = N_Access_Definition
2290 or else NT (N).Nkind = N_Access_Function_Definition
2291 or else NT (N).Nkind = N_Access_Procedure_Definition
2292 or else NT (N).Nkind = N_Access_To_Object_Definition
2293 or else NT (N).Nkind = N_Allocator
2294 or else NT (N).Nkind = N_Component_Definition
2295 or else NT (N).Nkind = N_Derived_Type_Definition
2296 or else NT (N).Nkind = N_Discriminant_Specification
2297 or else NT (N).Nkind = N_Formal_Object_Declaration
2298 or else NT (N).Nkind = N_Function_Specification
2299 or else NT (N).Nkind = N_Object_Declaration
2300 or else NT (N).Nkind = N_Object_Renaming_Declaration
2301 or else NT (N).Nkind = N_Parameter_Specification
2302 or else NT (N).Nkind = N_Subtype_Declaration);
2303 return Flag11 (N);
2304 end Null_Exclusion_Present;
2305
2306 function Null_Exclusion_In_Return_Present
2307 (N : Node_Id) return Boolean is
2308 begin
2309 pragma Assert (False
2310 or else NT (N).Nkind = N_Access_Function_Definition);
2311 return Flag14 (N);
2312 end Null_Exclusion_In_Return_Present;
2313
2314 function Null_Record_Present
2315 (N : Node_Id) return Boolean is
2316 begin
2317 pragma Assert (False
2318 or else NT (N).Nkind = N_Aggregate
2319 or else NT (N).Nkind = N_Extension_Aggregate);
2320 return Flag17 (N);
2321 end Null_Record_Present;
2322
2323 function Object_Definition
2324 (N : Node_Id) return Node_Id is
2325 begin
2326 pragma Assert (False
2327 or else NT (N).Nkind = N_Object_Declaration);
2328 return Node4 (N);
2329 end Object_Definition;
2330
2331 function Of_Present
2332 (N : Node_Id) return Boolean is
2333 begin
2334 pragma Assert (False
2335 or else NT (N).Nkind = N_Iterator_Specification);
2336 return Flag16 (N);
2337 end Of_Present;
2338
2339 function Original_Discriminant
2340 (N : Node_Id) return Node_Id is
2341 begin
2342 pragma Assert (False
2343 or else NT (N).Nkind = N_Identifier);
2344 return Node2 (N);
2345 end Original_Discriminant;
2346
2347 function Original_Entity
2348 (N : Node_Id) return Entity_Id is
2349 begin
2350 pragma Assert (False
2351 or else NT (N).Nkind = N_Integer_Literal
2352 or else NT (N).Nkind = N_Real_Literal);
2353 return Node2 (N);
2354 end Original_Entity;
2355
2356 function Others_Discrete_Choices
2357 (N : Node_Id) return List_Id is
2358 begin
2359 pragma Assert (False
2360 or else NT (N).Nkind = N_Others_Choice);
2361 return List1 (N);
2362 end Others_Discrete_Choices;
2363
2364 function Out_Present
2365 (N : Node_Id) return Boolean is
2366 begin
2367 pragma Assert (False
2368 or else NT (N).Nkind = N_Formal_Object_Declaration
2369 or else NT (N).Nkind = N_Parameter_Specification);
2370 return Flag17 (N);
2371 end Out_Present;
2372
2373 function Parameter_Associations
2374 (N : Node_Id) return List_Id is
2375 begin
2376 pragma Assert (False
2377 or else NT (N).Nkind = N_Entry_Call_Statement
2378 or else NT (N).Nkind = N_Function_Call
2379 or else NT (N).Nkind = N_Procedure_Call_Statement);
2380 return List3 (N);
2381 end Parameter_Associations;
2382
2383 function Parameter_List_Truncated
2384 (N : Node_Id) return Boolean is
2385 begin
2386 pragma Assert (False
2387 or else NT (N).Nkind = N_Function_Call
2388 or else NT (N).Nkind = N_Procedure_Call_Statement);
2389 return Flag17 (N);
2390 end Parameter_List_Truncated;
2391
2392 function Parameter_Specifications
2393 (N : Node_Id) return List_Id is
2394 begin
2395 pragma Assert (False
2396 or else NT (N).Nkind = N_Accept_Statement
2397 or else NT (N).Nkind = N_Access_Function_Definition
2398 or else NT (N).Nkind = N_Access_Procedure_Definition
2399 or else NT (N).Nkind = N_Entry_Body_Formal_Part
2400 or else NT (N).Nkind = N_Entry_Declaration
2401 or else NT (N).Nkind = N_Function_Specification
2402 or else NT (N).Nkind = N_Procedure_Specification);
2403 return List3 (N);
2404 end Parameter_Specifications;
2405
2406 function Parameter_Type
2407 (N : Node_Id) return Node_Id is
2408 begin
2409 pragma Assert (False
2410 or else NT (N).Nkind = N_Parameter_Specification);
2411 return Node2 (N);
2412 end Parameter_Type;
2413
2414 function Parent_Spec
2415 (N : Node_Id) return Node_Id is
2416 begin
2417 pragma Assert (False
2418 or else NT (N).Nkind = N_Function_Instantiation
2419 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2420 or else NT (N).Nkind = N_Generic_Package_Declaration
2421 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2422 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2423 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2424 or else NT (N).Nkind = N_Package_Declaration
2425 or else NT (N).Nkind = N_Package_Instantiation
2426 or else NT (N).Nkind = N_Package_Renaming_Declaration
2427 or else NT (N).Nkind = N_Procedure_Instantiation
2428 or else NT (N).Nkind = N_Subprogram_Declaration
2429 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2430 return Node4 (N);
2431 end Parent_Spec;
2432
2433 function Position
2434 (N : Node_Id) return Node_Id is
2435 begin
2436 pragma Assert (False
2437 or else NT (N).Nkind = N_Component_Clause);
2438 return Node2 (N);
2439 end Position;
2440
2441 function Pragma_Argument_Associations
2442 (N : Node_Id) return List_Id is
2443 begin
2444 pragma Assert (False
2445 or else NT (N).Nkind = N_Pragma);
2446 return List2 (N);
2447 end Pragma_Argument_Associations;
2448
2449 function Pragma_Identifier
2450 (N : Node_Id) return Node_Id is
2451 begin
2452 pragma Assert (False
2453 or else NT (N).Nkind = N_Pragma);
2454 return Node4 (N);
2455 end Pragma_Identifier;
2456
2457 function Pragmas_After
2458 (N : Node_Id) return List_Id is
2459 begin
2460 pragma Assert (False
2461 or else NT (N).Nkind = N_Compilation_Unit_Aux
2462 or else NT (N).Nkind = N_Terminate_Alternative);
2463 return List5 (N);
2464 end Pragmas_After;
2465
2466 function Pragmas_Before
2467 (N : Node_Id) return List_Id is
2468 begin
2469 pragma Assert (False
2470 or else NT (N).Nkind = N_Accept_Alternative
2471 or else NT (N).Nkind = N_Delay_Alternative
2472 or else NT (N).Nkind = N_Entry_Call_Alternative
2473 or else NT (N).Nkind = N_Mod_Clause
2474 or else NT (N).Nkind = N_Terminate_Alternative
2475 or else NT (N).Nkind = N_Triggering_Alternative);
2476 return List4 (N);
2477 end Pragmas_Before;
2478
2479 function Prefix
2480 (N : Node_Id) return Node_Id is
2481 begin
2482 pragma Assert (False
2483 or else NT (N).Nkind = N_Attribute_Reference
2484 or else NT (N).Nkind = N_Expanded_Name
2485 or else NT (N).Nkind = N_Explicit_Dereference
2486 or else NT (N).Nkind = N_Indexed_Component
2487 or else NT (N).Nkind = N_Reference
2488 or else NT (N).Nkind = N_Selected_Component
2489 or else NT (N).Nkind = N_Slice);
2490 return Node3 (N);
2491 end Prefix;
2492
2493 function Premature_Use
2494 (N : Node_Id) return Node_Id is
2495 begin
2496 pragma Assert (False
2497 or else NT (N).Nkind = N_Incomplete_Type_Declaration);
2498 return Node5 (N);
2499 end Premature_Use;
2500
2501 function Present_Expr
2502 (N : Node_Id) return Uint is
2503 begin
2504 pragma Assert (False
2505 or else NT (N).Nkind = N_Variant);
2506 return Uint3 (N);
2507 end Present_Expr;
2508
2509 function Prev_Ids
2510 (N : Node_Id) return Boolean is
2511 begin
2512 pragma Assert (False
2513 or else NT (N).Nkind = N_Component_Declaration
2514 or else NT (N).Nkind = N_Discriminant_Specification
2515 or else NT (N).Nkind = N_Exception_Declaration
2516 or else NT (N).Nkind = N_Formal_Object_Declaration
2517 or else NT (N).Nkind = N_Number_Declaration
2518 or else NT (N).Nkind = N_Object_Declaration
2519 or else NT (N).Nkind = N_Parameter_Specification);
2520 return Flag6 (N);
2521 end Prev_Ids;
2522
2523 function Print_In_Hex
2524 (N : Node_Id) return Boolean is
2525 begin
2526 pragma Assert (False
2527 or else NT (N).Nkind = N_Integer_Literal);
2528 return Flag13 (N);
2529 end Print_In_Hex;
2530
2531 function Private_Declarations
2532 (N : Node_Id) return List_Id is
2533 begin
2534 pragma Assert (False
2535 or else NT (N).Nkind = N_Package_Specification
2536 or else NT (N).Nkind = N_Protected_Definition
2537 or else NT (N).Nkind = N_Task_Definition);
2538 return List3 (N);
2539 end Private_Declarations;
2540
2541 function Private_Present
2542 (N : Node_Id) return Boolean is
2543 begin
2544 pragma Assert (False
2545 or else NT (N).Nkind = N_Compilation_Unit
2546 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2547 or else NT (N).Nkind = N_With_Clause);
2548 return Flag15 (N);
2549 end Private_Present;
2550
2551 function Procedure_To_Call
2552 (N : Node_Id) return Node_Id is
2553 begin
2554 pragma Assert (False
2555 or else NT (N).Nkind = N_Allocator
2556 or else NT (N).Nkind = N_Extended_Return_Statement
2557 or else NT (N).Nkind = N_Free_Statement
2558 or else NT (N).Nkind = N_Simple_Return_Statement);
2559 return Node2 (N);
2560 end Procedure_To_Call;
2561
2562 function Proper_Body
2563 (N : Node_Id) return Node_Id is
2564 begin
2565 pragma Assert (False
2566 or else NT (N).Nkind = N_Subunit);
2567 return Node1 (N);
2568 end Proper_Body;
2569
2570 function Protected_Definition
2571 (N : Node_Id) return Node_Id is
2572 begin
2573 pragma Assert (False
2574 or else NT (N).Nkind = N_Protected_Type_Declaration
2575 or else NT (N).Nkind = N_Single_Protected_Declaration);
2576 return Node3 (N);
2577 end Protected_Definition;
2578
2579 function Protected_Present
2580 (N : Node_Id) return Boolean is
2581 begin
2582 pragma Assert (False
2583 or else NT (N).Nkind = N_Access_Function_Definition
2584 or else NT (N).Nkind = N_Access_Procedure_Definition
2585 or else NT (N).Nkind = N_Derived_Type_Definition
2586 or else NT (N).Nkind = N_Record_Definition);
2587 return Flag6 (N);
2588 end Protected_Present;
2589
2590 function Raises_Constraint_Error
2591 (N : Node_Id) return Boolean is
2592 begin
2593 pragma Assert (False
2594 or else NT (N).Nkind in N_Subexpr);
2595 return Flag7 (N);
2596 end Raises_Constraint_Error;
2597
2598 function Range_Constraint
2599 (N : Node_Id) return Node_Id is
2600 begin
2601 pragma Assert (False
2602 or else NT (N).Nkind = N_Delta_Constraint
2603 or else NT (N).Nkind = N_Digits_Constraint);
2604 return Node4 (N);
2605 end Range_Constraint;
2606
2607 function Range_Expression
2608 (N : Node_Id) return Node_Id is
2609 begin
2610 pragma Assert (False
2611 or else NT (N).Nkind = N_Range_Constraint);
2612 return Node4 (N);
2613 end Range_Expression;
2614
2615 function Real_Range_Specification
2616 (N : Node_Id) return Node_Id is
2617 begin
2618 pragma Assert (False
2619 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
2620 or else NT (N).Nkind = N_Floating_Point_Definition
2621 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
2622 return Node4 (N);
2623 end Real_Range_Specification;
2624
2625 function Realval
2626 (N : Node_Id) return Ureal is
2627 begin
2628 pragma Assert (False
2629 or else NT (N).Nkind = N_Real_Literal);
2630 return Ureal3 (N);
2631 end Realval;
2632
2633 function Reason
2634 (N : Node_Id) return Uint is
2635 begin
2636 pragma Assert (False
2637 or else NT (N).Nkind = N_Raise_Constraint_Error
2638 or else NT (N).Nkind = N_Raise_Program_Error
2639 or else NT (N).Nkind = N_Raise_Storage_Error);
2640 return Uint3 (N);
2641 end Reason;
2642
2643 function Record_Extension_Part
2644 (N : Node_Id) return Node_Id is
2645 begin
2646 pragma Assert (False
2647 or else NT (N).Nkind = N_Derived_Type_Definition);
2648 return Node3 (N);
2649 end Record_Extension_Part;
2650
2651 function Redundant_Use
2652 (N : Node_Id) return Boolean is
2653 begin
2654 pragma Assert (False
2655 or else NT (N).Nkind = N_Attribute_Reference
2656 or else NT (N).Nkind = N_Expanded_Name
2657 or else NT (N).Nkind = N_Identifier);
2658 return Flag13 (N);
2659 end Redundant_Use;
2660
2661 function Renaming_Exception
2662 (N : Node_Id) return Node_Id is
2663 begin
2664 pragma Assert (False
2665 or else NT (N).Nkind = N_Exception_Declaration);
2666 return Node2 (N);
2667 end Renaming_Exception;
2668
2669 function Result_Definition
2670 (N : Node_Id) return Node_Id is
2671 begin
2672 pragma Assert (False
2673 or else NT (N).Nkind = N_Access_Function_Definition
2674 or else NT (N).Nkind = N_Function_Specification);
2675 return Node4 (N);
2676 end Result_Definition;
2677
2678 function Return_Object_Declarations
2679 (N : Node_Id) return List_Id is
2680 begin
2681 pragma Assert (False
2682 or else NT (N).Nkind = N_Extended_Return_Statement);
2683 return List3 (N);
2684 end Return_Object_Declarations;
2685
2686 function Return_Statement_Entity
2687 (N : Node_Id) return Node_Id is
2688 begin
2689 pragma Assert (False
2690 or else NT (N).Nkind = N_Extended_Return_Statement
2691 or else NT (N).Nkind = N_Simple_Return_Statement);
2692 return Node5 (N);
2693 end Return_Statement_Entity;
2694
2695 function Reverse_Present
2696 (N : Node_Id) return Boolean is
2697 begin
2698 pragma Assert (False
2699 or else NT (N).Nkind = N_Iterator_Specification
2700 or else NT (N).Nkind = N_Loop_Parameter_Specification);
2701 return Flag15 (N);
2702 end Reverse_Present;
2703
2704 function Right_Opnd
2705 (N : Node_Id) return Node_Id is
2706 begin
2707 pragma Assert (False
2708 or else NT (N).Nkind in N_Op
2709 or else NT (N).Nkind = N_And_Then
2710 or else NT (N).Nkind = N_In
2711 or else NT (N).Nkind = N_Not_In
2712 or else NT (N).Nkind = N_Or_Else);
2713 return Node3 (N);
2714 end Right_Opnd;
2715
2716 function Rounded_Result
2717 (N : Node_Id) return Boolean is
2718 begin
2719 pragma Assert (False
2720 or else NT (N).Nkind = N_Op_Divide
2721 or else NT (N).Nkind = N_Op_Multiply
2722 or else NT (N).Nkind = N_Type_Conversion);
2723 return Flag18 (N);
2724 end Rounded_Result;
2725
2726 function SCIL_Controlling_Tag
2727 (N : Node_Id) return Node_Id is
2728 begin
2729 pragma Assert (False
2730 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
2731 return Node5 (N);
2732 end SCIL_Controlling_Tag;
2733
2734 function SCIL_Entity
2735 (N : Node_Id) return Node_Id is
2736 begin
2737 pragma Assert (False
2738 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
2739 or else NT (N).Nkind = N_SCIL_Dispatching_Call
2740 or else NT (N).Nkind = N_SCIL_Membership_Test);
2741 return Node4 (N);
2742 end SCIL_Entity;
2743
2744 function SCIL_Tag_Value
2745 (N : Node_Id) return Node_Id is
2746 begin
2747 pragma Assert (False
2748 or else NT (N).Nkind = N_SCIL_Membership_Test);
2749 return Node5 (N);
2750 end SCIL_Tag_Value;
2751
2752 function SCIL_Target_Prim
2753 (N : Node_Id) return Node_Id is
2754 begin
2755 pragma Assert (False
2756 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
2757 return Node2 (N);
2758 end SCIL_Target_Prim;
2759
2760 function Scope
2761 (N : Node_Id) return Node_Id is
2762 begin
2763 pragma Assert (False
2764 or else NT (N).Nkind = N_Defining_Character_Literal
2765 or else NT (N).Nkind = N_Defining_Identifier
2766 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2767 return Node3 (N);
2768 end Scope;
2769
2770 function Select_Alternatives
2771 (N : Node_Id) return List_Id is
2772 begin
2773 pragma Assert (False
2774 or else NT (N).Nkind = N_Selective_Accept);
2775 return List1 (N);
2776 end Select_Alternatives;
2777
2778 function Selector_Name
2779 (N : Node_Id) return Node_Id is
2780 begin
2781 pragma Assert (False
2782 or else NT (N).Nkind = N_Expanded_Name
2783 or else NT (N).Nkind = N_Generic_Association
2784 or else NT (N).Nkind = N_Parameter_Association
2785 or else NT (N).Nkind = N_Selected_Component);
2786 return Node2 (N);
2787 end Selector_Name;
2788
2789 function Selector_Names
2790 (N : Node_Id) return List_Id is
2791 begin
2792 pragma Assert (False
2793 or else NT (N).Nkind = N_Discriminant_Association);
2794 return List1 (N);
2795 end Selector_Names;
2796
2797 function Shift_Count_OK
2798 (N : Node_Id) return Boolean is
2799 begin
2800 pragma Assert (False
2801 or else NT (N).Nkind = N_Op_Rotate_Left
2802 or else NT (N).Nkind = N_Op_Rotate_Right
2803 or else NT (N).Nkind = N_Op_Shift_Left
2804 or else NT (N).Nkind = N_Op_Shift_Right
2805 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
2806 return Flag4 (N);
2807 end Shift_Count_OK;
2808
2809 function Source_Type
2810 (N : Node_Id) return Entity_Id is
2811 begin
2812 pragma Assert (False
2813 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2814 return Node1 (N);
2815 end Source_Type;
2816
2817 function Spec_PPC_List
2818 (N : Node_Id) return Node_Id is
2819 begin
2820 pragma Assert (False
2821 or else NT (N).Nkind = N_Contract);
2822 return Node1 (N);
2823 end Spec_PPC_List;
2824
2825 function Spec_CTC_List
2826 (N : Node_Id) return Node_Id is
2827 begin
2828 pragma Assert (False
2829 or else NT (N).Nkind = N_Contract);
2830 return Node2 (N);
2831 end Spec_CTC_List;
2832
2833 function Specification
2834 (N : Node_Id) return Node_Id is
2835 begin
2836 pragma Assert (False
2837 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
2838 or else NT (N).Nkind = N_Expression_Function
2839 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
2840 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
2841 or else NT (N).Nkind = N_Generic_Package_Declaration
2842 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2843 or else NT (N).Nkind = N_Package_Declaration
2844 or else NT (N).Nkind = N_Subprogram_Body
2845 or else NT (N).Nkind = N_Subprogram_Body_Stub
2846 or else NT (N).Nkind = N_Subprogram_Declaration
2847 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2848 return Node1 (N);
2849 end Specification;
2850
2851 function Split_PPC
2852 (N : Node_Id) return Boolean is
2853 begin
2854 pragma Assert (False
2855 or else NT (N).Nkind = N_Aspect_Specification
2856 or else NT (N).Nkind = N_Pragma);
2857 return Flag17 (N);
2858 end Split_PPC;
2859
2860 function Statements
2861 (N : Node_Id) return List_Id is
2862 begin
2863 pragma Assert (False
2864 or else NT (N).Nkind = N_Abortable_Part
2865 or else NT (N).Nkind = N_Accept_Alternative
2866 or else NT (N).Nkind = N_Case_Statement_Alternative
2867 or else NT (N).Nkind = N_Delay_Alternative
2868 or else NT (N).Nkind = N_Entry_Call_Alternative
2869 or else NT (N).Nkind = N_Exception_Handler
2870 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
2871 or else NT (N).Nkind = N_Loop_Statement
2872 or else NT (N).Nkind = N_Triggering_Alternative);
2873 return List3 (N);
2874 end Statements;
2875
2876 function Storage_Pool
2877 (N : Node_Id) return Node_Id is
2878 begin
2879 pragma Assert (False
2880 or else NT (N).Nkind = N_Allocator
2881 or else NT (N).Nkind = N_Extended_Return_Statement
2882 or else NT (N).Nkind = N_Free_Statement
2883 or else NT (N).Nkind = N_Simple_Return_Statement);
2884 return Node1 (N);
2885 end Storage_Pool;
2886
2887 function Subpool_Handle_Name
2888 (N : Node_Id) return Node_Id is
2889 begin
2890 pragma Assert (False
2891 or else NT (N).Nkind = N_Allocator);
2892 return Node4 (N);
2893 end Subpool_Handle_Name;
2894
2895 function Strval
2896 (N : Node_Id) return String_Id is
2897 begin
2898 pragma Assert (False
2899 or else NT (N).Nkind = N_Operator_Symbol
2900 or else NT (N).Nkind = N_String_Literal);
2901 return Str3 (N);
2902 end Strval;
2903
2904 function Subtype_Indication
2905 (N : Node_Id) return Node_Id is
2906 begin
2907 pragma Assert (False
2908 or else NT (N).Nkind = N_Access_To_Object_Definition
2909 or else NT (N).Nkind = N_Component_Definition
2910 or else NT (N).Nkind = N_Derived_Type_Definition
2911 or else NT (N).Nkind = N_Iterator_Specification
2912 or else NT (N).Nkind = N_Private_Extension_Declaration
2913 or else NT (N).Nkind = N_Subtype_Declaration);
2914 return Node5 (N);
2915 end Subtype_Indication;
2916
2917 function Suppress_Assignment_Checks
2918 (N : Node_Id) return Boolean is
2919 begin
2920 pragma Assert (False
2921 or else NT (N).Nkind = N_Assignment_Statement
2922 or else NT (N).Nkind = N_Object_Declaration);
2923 return Flag18 (N);
2924 end Suppress_Assignment_Checks;
2925
2926 function Suppress_Loop_Warnings
2927 (N : Node_Id) return Boolean is
2928 begin
2929 pragma Assert (False
2930 or else NT (N).Nkind = N_Loop_Statement);
2931 return Flag17 (N);
2932 end Suppress_Loop_Warnings;
2933
2934 function Subtype_Mark
2935 (N : Node_Id) return Node_Id is
2936 begin
2937 pragma Assert (False
2938 or else NT (N).Nkind = N_Access_Definition
2939 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2940 or else NT (N).Nkind = N_Formal_Object_Declaration
2941 or else NT (N).Nkind = N_Object_Renaming_Declaration
2942 or else NT (N).Nkind = N_Qualified_Expression
2943 or else NT (N).Nkind = N_Subtype_Indication
2944 or else NT (N).Nkind = N_Type_Conversion
2945 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2946 return Node4 (N);
2947 end Subtype_Mark;
2948
2949 function Subtype_Marks
2950 (N : Node_Id) return List_Id is
2951 begin
2952 pragma Assert (False
2953 or else NT (N).Nkind = N_Unconstrained_Array_Definition
2954 or else NT (N).Nkind = N_Use_Type_Clause);
2955 return List2 (N);
2956 end Subtype_Marks;
2957
2958 function Synchronized_Present
2959 (N : Node_Id) return Boolean is
2960 begin
2961 pragma Assert (False
2962 or else NT (N).Nkind = N_Derived_Type_Definition
2963 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2964 or else NT (N).Nkind = N_Private_Extension_Declaration
2965 or else NT (N).Nkind = N_Record_Definition);
2966 return Flag7 (N);
2967 end Synchronized_Present;
2968
2969 function Tagged_Present
2970 (N : Node_Id) return Boolean is
2971 begin
2972 pragma Assert (False
2973 or else NT (N).Nkind = N_Formal_Incomplete_Type_Definition
2974 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2975 or else NT (N).Nkind = N_Incomplete_Type_Declaration
2976 or else NT (N).Nkind = N_Private_Type_Declaration
2977 or else NT (N).Nkind = N_Record_Definition);
2978 return Flag15 (N);
2979 end Tagged_Present;
2980
2981 function Target_Type
2982 (N : Node_Id) return Entity_Id is
2983 begin
2984 pragma Assert (False
2985 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2986 return Node2 (N);
2987 end Target_Type;
2988
2989 function Task_Definition
2990 (N : Node_Id) return Node_Id is
2991 begin
2992 pragma Assert (False
2993 or else NT (N).Nkind = N_Single_Task_Declaration
2994 or else NT (N).Nkind = N_Task_Type_Declaration);
2995 return Node3 (N);
2996 end Task_Definition;
2997
2998 function Task_Present
2999 (N : Node_Id) return Boolean is
3000 begin
3001 pragma Assert (False
3002 or else NT (N).Nkind = N_Derived_Type_Definition
3003 or else NT (N).Nkind = N_Record_Definition);
3004 return Flag5 (N);
3005 end Task_Present;
3006
3007 function Then_Actions
3008 (N : Node_Id) return List_Id is
3009 begin
3010 pragma Assert (False
3011 or else NT (N).Nkind = N_If_Expression);
3012 return List2 (N);
3013 end Then_Actions;
3014
3015 function Then_Statements
3016 (N : Node_Id) return List_Id is
3017 begin
3018 pragma Assert (False
3019 or else NT (N).Nkind = N_Elsif_Part
3020 or else NT (N).Nkind = N_If_Statement);
3021 return List2 (N);
3022 end Then_Statements;
3023
3024 function Treat_Fixed_As_Integer
3025 (N : Node_Id) return Boolean is
3026 begin
3027 pragma Assert (False
3028 or else NT (N).Nkind = N_Op_Divide
3029 or else NT (N).Nkind = N_Op_Mod
3030 or else NT (N).Nkind = N_Op_Multiply
3031 or else NT (N).Nkind = N_Op_Rem);
3032 return Flag14 (N);
3033 end Treat_Fixed_As_Integer;
3034
3035 function Triggering_Alternative
3036 (N : Node_Id) return Node_Id is
3037 begin
3038 pragma Assert (False
3039 or else NT (N).Nkind = N_Asynchronous_Select);
3040 return Node1 (N);
3041 end Triggering_Alternative;
3042
3043 function Triggering_Statement
3044 (N : Node_Id) return Node_Id is
3045 begin
3046 pragma Assert (False
3047 or else NT (N).Nkind = N_Triggering_Alternative);
3048 return Node1 (N);
3049 end Triggering_Statement;
3050
3051 function TSS_Elist
3052 (N : Node_Id) return Elist_Id is
3053 begin
3054 pragma Assert (False
3055 or else NT (N).Nkind = N_Freeze_Entity);
3056 return Elist3 (N);
3057 end TSS_Elist;
3058
3059 function Type_Definition
3060 (N : Node_Id) return Node_Id is
3061 begin
3062 pragma Assert (False
3063 or else NT (N).Nkind = N_Full_Type_Declaration);
3064 return Node3 (N);
3065 end Type_Definition;
3066
3067 function Unit
3068 (N : Node_Id) return Node_Id is
3069 begin
3070 pragma Assert (False
3071 or else NT (N).Nkind = N_Compilation_Unit);
3072 return Node2 (N);
3073 end Unit;
3074
3075 function Unknown_Discriminants_Present
3076 (N : Node_Id) return Boolean is
3077 begin
3078 pragma Assert (False
3079 or else NT (N).Nkind = N_Formal_Type_Declaration
3080 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3081 or else NT (N).Nkind = N_Private_Extension_Declaration
3082 or else NT (N).Nkind = N_Private_Type_Declaration);
3083 return Flag13 (N);
3084 end Unknown_Discriminants_Present;
3085
3086 function Unreferenced_In_Spec
3087 (N : Node_Id) return Boolean is
3088 begin
3089 pragma Assert (False
3090 or else NT (N).Nkind = N_With_Clause);
3091 return Flag7 (N);
3092 end Unreferenced_In_Spec;
3093
3094 function Variant_Part
3095 (N : Node_Id) return Node_Id is
3096 begin
3097 pragma Assert (False
3098 or else NT (N).Nkind = N_Component_List);
3099 return Node4 (N);
3100 end Variant_Part;
3101
3102 function Variants
3103 (N : Node_Id) return List_Id is
3104 begin
3105 pragma Assert (False
3106 or else NT (N).Nkind = N_Variant_Part);
3107 return List1 (N);
3108 end Variants;
3109
3110 function Visible_Declarations
3111 (N : Node_Id) return List_Id is
3112 begin
3113 pragma Assert (False
3114 or else NT (N).Nkind = N_Package_Specification
3115 or else NT (N).Nkind = N_Protected_Definition
3116 or else NT (N).Nkind = N_Task_Definition);
3117 return List2 (N);
3118 end Visible_Declarations;
3119
3120 function Used_Operations
3121 (N : Node_Id) return Elist_Id is
3122 begin
3123 pragma Assert (False
3124 or else NT (N).Nkind = N_Use_Type_Clause);
3125 return Elist5 (N);
3126 end Used_Operations;
3127
3128 function Was_Originally_Stub
3129 (N : Node_Id) return Boolean is
3130 begin
3131 pragma Assert (False
3132 or else NT (N).Nkind = N_Package_Body
3133 or else NT (N).Nkind = N_Protected_Body
3134 or else NT (N).Nkind = N_Subprogram_Body
3135 or else NT (N).Nkind = N_Task_Body);
3136 return Flag13 (N);
3137 end Was_Originally_Stub;
3138
3139 function Withed_Body
3140 (N : Node_Id) return Node_Id is
3141 begin
3142 pragma Assert (False
3143 or else NT (N).Nkind = N_With_Clause);
3144 return Node1 (N);
3145 end Withed_Body;
3146
3147 --------------------------
3148 -- Field Set Procedures --
3149 --------------------------
3150
3151 procedure Set_ABE_Is_Certain
3152 (N : Node_Id; Val : Boolean := True) is
3153 begin
3154 pragma Assert (False
3155 or else NT (N).Nkind = N_Formal_Package_Declaration
3156 or else NT (N).Nkind = N_Function_Call
3157 or else NT (N).Nkind = N_Function_Instantiation
3158 or else NT (N).Nkind = N_Package_Instantiation
3159 or else NT (N).Nkind = N_Procedure_Call_Statement
3160 or else NT (N).Nkind = N_Procedure_Instantiation);
3161 Set_Flag18 (N, Val);
3162 end Set_ABE_Is_Certain;
3163
3164 procedure Set_Abort_Present
3165 (N : Node_Id; Val : Boolean := True) is
3166 begin
3167 pragma Assert (False
3168 or else NT (N).Nkind = N_Requeue_Statement);
3169 Set_Flag15 (N, Val);
3170 end Set_Abort_Present;
3171
3172 procedure Set_Abortable_Part
3173 (N : Node_Id; Val : Node_Id) is
3174 begin
3175 pragma Assert (False
3176 or else NT (N).Nkind = N_Asynchronous_Select);
3177 Set_Node2_With_Parent (N, Val);
3178 end Set_Abortable_Part;
3179
3180 procedure Set_Abstract_Present
3181 (N : Node_Id; Val : Boolean := True) is
3182 begin
3183 pragma Assert (False
3184 or else NT (N).Nkind = N_Derived_Type_Definition
3185 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3186 or else NT (N).Nkind = N_Formal_Private_Type_Definition
3187 or else NT (N).Nkind = N_Private_Extension_Declaration
3188 or else NT (N).Nkind = N_Private_Type_Declaration
3189 or else NT (N).Nkind = N_Record_Definition);
3190 Set_Flag4 (N, Val);
3191 end Set_Abstract_Present;
3192
3193 procedure Set_Accept_Handler_Records
3194 (N : Node_Id; Val : List_Id) is
3195 begin
3196 pragma Assert (False
3197 or else NT (N).Nkind = N_Accept_Alternative);
3198 Set_List5 (N, Val); -- semantic field, no parent set
3199 end Set_Accept_Handler_Records;
3200
3201 procedure Set_Accept_Statement
3202 (N : Node_Id; Val : Node_Id) is
3203 begin
3204 pragma Assert (False
3205 or else NT (N).Nkind = N_Accept_Alternative);
3206 Set_Node2_With_Parent (N, Val);
3207 end Set_Accept_Statement;
3208
3209 procedure Set_Access_Definition
3210 (N : Node_Id; Val : Node_Id) is
3211 begin
3212 pragma Assert (False
3213 or else NT (N).Nkind = N_Component_Definition
3214 or else NT (N).Nkind = N_Formal_Object_Declaration
3215 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3216 Set_Node3_With_Parent (N, Val);
3217 end Set_Access_Definition;
3218
3219 procedure Set_Access_To_Subprogram_Definition
3220 (N : Node_Id; Val : Node_Id) is
3221 begin
3222 pragma Assert (False
3223 or else NT (N).Nkind = N_Access_Definition);
3224 Set_Node3_With_Parent (N, Val);
3225 end Set_Access_To_Subprogram_Definition;
3226
3227 procedure Set_Access_Types_To_Process
3228 (N : Node_Id; Val : Elist_Id) is
3229 begin
3230 pragma Assert (False
3231 or else NT (N).Nkind = N_Freeze_Entity);
3232 Set_Elist2 (N, Val); -- semantic field, no parent set
3233 end Set_Access_Types_To_Process;
3234
3235 procedure Set_Actions
3236 (N : Node_Id; Val : List_Id) is
3237 begin
3238 pragma Assert (False
3239 or else NT (N).Nkind = N_And_Then
3240 or else NT (N).Nkind = N_Case_Expression_Alternative
3241 or else NT (N).Nkind = N_Compilation_Unit_Aux
3242 or else NT (N).Nkind = N_Expression_With_Actions
3243 or else NT (N).Nkind = N_Freeze_Entity
3244 or else NT (N).Nkind = N_Or_Else);
3245 Set_List1_With_Parent (N, Val);
3246 end Set_Actions;
3247
3248 procedure Set_Activation_Chain_Entity
3249 (N : Node_Id; Val : Node_Id) is
3250 begin
3251 pragma Assert (False
3252 or else NT (N).Nkind = N_Block_Statement
3253 or else NT (N).Nkind = N_Entry_Body
3254 or else NT (N).Nkind = N_Generic_Package_Declaration
3255 or else NT (N).Nkind = N_Package_Declaration
3256 or else NT (N).Nkind = N_Subprogram_Body
3257 or else NT (N).Nkind = N_Task_Body);
3258 Set_Node3 (N, Val); -- semantic field, no parent set
3259 end Set_Activation_Chain_Entity;
3260
3261 procedure Set_Acts_As_Spec
3262 (N : Node_Id; Val : Boolean := True) is
3263 begin
3264 pragma Assert (False
3265 or else NT (N).Nkind = N_Compilation_Unit
3266 or else NT (N).Nkind = N_Subprogram_Body);
3267 Set_Flag4 (N, Val);
3268 end Set_Acts_As_Spec;
3269
3270 procedure Set_Actual_Designated_Subtype
3271 (N : Node_Id; Val : Node_Id) is
3272 begin
3273 pragma Assert (False
3274 or else NT (N).Nkind = N_Explicit_Dereference
3275 or else NT (N).Nkind = N_Free_Statement);
3276 Set_Node4 (N, Val);
3277 end Set_Actual_Designated_Subtype;
3278
3279 procedure Set_Address_Warning_Posted
3280 (N : Node_Id; Val : Boolean := True) is
3281 begin
3282 pragma Assert (False
3283 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3284 Set_Flag18 (N, Val);
3285 end Set_Address_Warning_Posted;
3286
3287 procedure Set_Aggregate_Bounds
3288 (N : Node_Id; Val : Node_Id) is
3289 begin
3290 pragma Assert (False
3291 or else NT (N).Nkind = N_Aggregate);
3292 Set_Node3 (N, Val); -- semantic field, no parent set
3293 end Set_Aggregate_Bounds;
3294
3295 procedure Set_Aliased_Present
3296 (N : Node_Id; Val : Boolean := True) is
3297 begin
3298 pragma Assert (False
3299 or else NT (N).Nkind = N_Component_Definition
3300 or else NT (N).Nkind = N_Object_Declaration
3301 or else NT (N).Nkind = N_Parameter_Specification);
3302 Set_Flag4 (N, Val);
3303 end Set_Aliased_Present;
3304
3305 procedure Set_All_Others
3306 (N : Node_Id; Val : Boolean := True) is
3307 begin
3308 pragma Assert (False
3309 or else NT (N).Nkind = N_Others_Choice);
3310 Set_Flag11 (N, Val);
3311 end Set_All_Others;
3312
3313 procedure Set_All_Present
3314 (N : Node_Id; Val : Boolean := True) is
3315 begin
3316 pragma Assert (False
3317 or else NT (N).Nkind = N_Access_Definition
3318 or else NT (N).Nkind = N_Access_To_Object_Definition
3319 or else NT (N).Nkind = N_Quantified_Expression
3320 or else NT (N).Nkind = N_Use_Type_Clause);
3321 Set_Flag15 (N, Val);
3322 end Set_All_Present;
3323
3324 procedure Set_Alternatives
3325 (N : Node_Id; Val : List_Id) is
3326 begin
3327 pragma Assert (False
3328 or else NT (N).Nkind = N_Case_Expression
3329 or else NT (N).Nkind = N_Case_Statement
3330 or else NT (N).Nkind = N_In
3331 or else NT (N).Nkind = N_Not_In);
3332 Set_List4_With_Parent (N, Val);
3333 end Set_Alternatives;
3334
3335 procedure Set_Ancestor_Part
3336 (N : Node_Id; Val : Node_Id) is
3337 begin
3338 pragma Assert (False
3339 or else NT (N).Nkind = N_Extension_Aggregate);
3340 Set_Node3_With_Parent (N, Val);
3341 end Set_Ancestor_Part;
3342
3343 procedure Set_Atomic_Sync_Required
3344 (N : Node_Id; Val : Boolean := True) is
3345 begin
3346 pragma Assert (False
3347 or else NT (N).Nkind = N_Expanded_Name
3348 or else NT (N).Nkind = N_Explicit_Dereference
3349 or else NT (N).Nkind = N_Identifier
3350 or else NT (N).Nkind = N_Indexed_Component
3351 or else NT (N).Nkind = N_Selected_Component);
3352 Set_Flag14 (N, Val);
3353 end Set_Atomic_Sync_Required;
3354
3355 procedure Set_Array_Aggregate
3356 (N : Node_Id; Val : Node_Id) is
3357 begin
3358 pragma Assert (False
3359 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
3360 Set_Node3_With_Parent (N, Val);
3361 end Set_Array_Aggregate;
3362
3363 procedure Set_Aspect_Rep_Item
3364 (N : Node_Id; Val : Node_Id) is
3365 begin
3366 pragma Assert (False
3367 or else NT (N).Nkind = N_Aspect_Specification);
3368 Set_Node2 (N, Val);
3369 end Set_Aspect_Rep_Item;
3370
3371 procedure Set_Assignment_OK
3372 (N : Node_Id; Val : Boolean := True) is
3373 begin
3374 pragma Assert (False
3375 or else NT (N).Nkind = N_Object_Declaration
3376 or else NT (N).Nkind in N_Subexpr);
3377 Set_Flag15 (N, Val);
3378 end Set_Assignment_OK;
3379
3380 procedure Set_Associated_Node
3381 (N : Node_Id; Val : Node_Id) is
3382 begin
3383 pragma Assert (False
3384 or else NT (N).Nkind in N_Has_Entity
3385 or else NT (N).Nkind = N_Aggregate
3386 or else NT (N).Nkind = N_Extension_Aggregate
3387 or else NT (N).Nkind = N_Selected_Component);
3388 Set_Node4 (N, Val); -- semantic field, no parent set
3389 end Set_Associated_Node;
3390
3391 procedure Set_At_End_Proc
3392 (N : Node_Id; Val : Node_Id) is
3393 begin
3394 pragma Assert (False
3395 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3396 Set_Node1 (N, Val);
3397 end Set_At_End_Proc;
3398
3399 procedure Set_Attribute_Name
3400 (N : Node_Id; Val : Name_Id) is
3401 begin
3402 pragma Assert (False
3403 or else NT (N).Nkind = N_Attribute_Reference);
3404 Set_Name2 (N, Val);
3405 end Set_Attribute_Name;
3406
3407 procedure Set_Aux_Decls_Node
3408 (N : Node_Id; Val : Node_Id) is
3409 begin
3410 pragma Assert (False
3411 or else NT (N).Nkind = N_Compilation_Unit);
3412 Set_Node5_With_Parent (N, Val);
3413 end Set_Aux_Decls_Node;
3414
3415 procedure Set_Backwards_OK
3416 (N : Node_Id; Val : Boolean := True) is
3417 begin
3418 pragma Assert (False
3419 or else NT (N).Nkind = N_Assignment_Statement);
3420 Set_Flag6 (N, Val);
3421 end Set_Backwards_OK;
3422
3423 procedure Set_Bad_Is_Detected
3424 (N : Node_Id; Val : Boolean := True) is
3425 begin
3426 pragma Assert (False
3427 or else NT (N).Nkind = N_Subprogram_Body);
3428 Set_Flag15 (N, Val);
3429 end Set_Bad_Is_Detected;
3430
3431 procedure Set_Body_Required
3432 (N : Node_Id; Val : Boolean := True) is
3433 begin
3434 pragma Assert (False
3435 or else NT (N).Nkind = N_Compilation_Unit);
3436 Set_Flag13 (N, Val);
3437 end Set_Body_Required;
3438
3439 procedure Set_Body_To_Inline
3440 (N : Node_Id; Val : Node_Id) is
3441 begin
3442 pragma Assert (False
3443 or else NT (N).Nkind = N_Subprogram_Declaration);
3444 Set_Node3 (N, Val);
3445 end Set_Body_To_Inline;
3446
3447 procedure Set_Box_Present
3448 (N : Node_Id; Val : Boolean := True) is
3449 begin
3450 pragma Assert (False
3451 or else NT (N).Nkind = N_Component_Association
3452 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3453 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
3454 or else NT (N).Nkind = N_Formal_Package_Declaration
3455 or else NT (N).Nkind = N_Generic_Association);
3456 Set_Flag15 (N, Val);
3457 end Set_Box_Present;
3458
3459 procedure Set_By_Ref
3460 (N : Node_Id; Val : Boolean := True) is
3461 begin
3462 pragma Assert (False
3463 or else NT (N).Nkind = N_Extended_Return_Statement
3464 or else NT (N).Nkind = N_Simple_Return_Statement);
3465 Set_Flag5 (N, Val);
3466 end Set_By_Ref;
3467
3468 procedure Set_Char_Literal_Value
3469 (N : Node_Id; Val : Uint) is
3470 begin
3471 pragma Assert (False
3472 or else NT (N).Nkind = N_Character_Literal);
3473 Set_Uint2 (N, Val);
3474 end Set_Char_Literal_Value;
3475
3476 procedure Set_Chars
3477 (N : Node_Id; Val : Name_Id) is
3478 begin
3479 pragma Assert (False
3480 or else NT (N).Nkind in N_Has_Chars);
3481 Set_Name1 (N, Val);
3482 end Set_Chars;
3483
3484 procedure Set_Check_Address_Alignment
3485 (N : Node_Id; Val : Boolean := True) is
3486 begin
3487 pragma Assert (False
3488 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3489 Set_Flag11 (N, Val);
3490 end Set_Check_Address_Alignment;
3491
3492 procedure Set_Choice_Parameter
3493 (N : Node_Id; Val : Node_Id) is
3494 begin
3495 pragma Assert (False
3496 or else NT (N).Nkind = N_Exception_Handler);
3497 Set_Node2_With_Parent (N, Val);
3498 end Set_Choice_Parameter;
3499
3500 procedure Set_Choices
3501 (N : Node_Id; Val : List_Id) is
3502 begin
3503 pragma Assert (False
3504 or else NT (N).Nkind = N_Component_Association);
3505 Set_List1_With_Parent (N, Val);
3506 end Set_Choices;
3507
3508 procedure Set_Class_Present
3509 (N : Node_Id; Val : Boolean := True) is
3510 begin
3511 pragma Assert (False
3512 or else NT (N).Nkind = N_Aspect_Specification
3513 or else NT (N).Nkind = N_Pragma);
3514 Set_Flag6 (N, Val);
3515 end Set_Class_Present;
3516
3517 procedure Set_Comes_From_Extended_Return_Statement
3518 (N : Node_Id; Val : Boolean := True) is
3519 begin
3520 pragma Assert (False
3521 or else NT (N).Nkind = N_Simple_Return_Statement);
3522 Set_Flag18 (N, Val);
3523 end Set_Comes_From_Extended_Return_Statement;
3524
3525 procedure Set_Compile_Time_Known_Aggregate
3526 (N : Node_Id; Val : Boolean := True) is
3527 begin
3528 pragma Assert (False
3529 or else NT (N).Nkind = N_Aggregate);
3530 Set_Flag18 (N, Val);
3531 end Set_Compile_Time_Known_Aggregate;
3532
3533 procedure Set_Component_Associations
3534 (N : Node_Id; Val : List_Id) is
3535 begin
3536 pragma Assert (False
3537 or else NT (N).Nkind = N_Aggregate
3538 or else NT (N).Nkind = N_Extension_Aggregate);
3539 Set_List2_With_Parent (N, Val);
3540 end Set_Component_Associations;
3541
3542 procedure Set_Component_Clauses
3543 (N : Node_Id; Val : List_Id) is
3544 begin
3545 pragma Assert (False
3546 or else NT (N).Nkind = N_Record_Representation_Clause);
3547 Set_List3_With_Parent (N, Val);
3548 end Set_Component_Clauses;
3549
3550 procedure Set_Component_Definition
3551 (N : Node_Id; Val : Node_Id) is
3552 begin
3553 pragma Assert (False
3554 or else NT (N).Nkind = N_Component_Declaration
3555 or else NT (N).Nkind = N_Constrained_Array_Definition
3556 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
3557 Set_Node4_With_Parent (N, Val);
3558 end Set_Component_Definition;
3559
3560 procedure Set_Component_Items
3561 (N : Node_Id; Val : List_Id) is
3562 begin
3563 pragma Assert (False
3564 or else NT (N).Nkind = N_Component_List);
3565 Set_List3_With_Parent (N, Val);
3566 end Set_Component_Items;
3567
3568 procedure Set_Component_List
3569 (N : Node_Id; Val : Node_Id) is
3570 begin
3571 pragma Assert (False
3572 or else NT (N).Nkind = N_Record_Definition
3573 or else NT (N).Nkind = N_Variant);
3574 Set_Node1_With_Parent (N, Val);
3575 end Set_Component_List;
3576
3577 procedure Set_Component_Name
3578 (N : Node_Id; Val : Node_Id) is
3579 begin
3580 pragma Assert (False
3581 or else NT (N).Nkind = N_Component_Clause);
3582 Set_Node1_With_Parent (N, Val);
3583 end Set_Component_Name;
3584
3585 procedure Set_Componentwise_Assignment
3586 (N : Node_Id; Val : Boolean := True) is
3587 begin
3588 pragma Assert (False
3589 or else NT (N).Nkind = N_Assignment_Statement);
3590 Set_Flag14 (N, Val);
3591 end Set_Componentwise_Assignment;
3592
3593 procedure Set_Condition
3594 (N : Node_Id; Val : Node_Id) is
3595 begin
3596 pragma Assert (False
3597 or else NT (N).Nkind = N_Accept_Alternative
3598 or else NT (N).Nkind = N_Delay_Alternative
3599 or else NT (N).Nkind = N_Elsif_Part
3600 or else NT (N).Nkind = N_Entry_Body_Formal_Part
3601 or else NT (N).Nkind = N_Exit_Statement
3602 or else NT (N).Nkind = N_If_Statement
3603 or else NT (N).Nkind = N_Iteration_Scheme
3604 or else NT (N).Nkind = N_Quantified_Expression
3605 or else NT (N).Nkind = N_Raise_Constraint_Error
3606 or else NT (N).Nkind = N_Raise_Program_Error
3607 or else NT (N).Nkind = N_Raise_Storage_Error
3608 or else NT (N).Nkind = N_Terminate_Alternative);
3609 Set_Node1_With_Parent (N, Val);
3610 end Set_Condition;
3611
3612 procedure Set_Condition_Actions
3613 (N : Node_Id; Val : List_Id) is
3614 begin
3615 pragma Assert (False
3616 or else NT (N).Nkind = N_Elsif_Part
3617 or else NT (N).Nkind = N_Iteration_Scheme);
3618 Set_List3 (N, Val); -- semantic field, no parent set
3619 end Set_Condition_Actions;
3620
3621 procedure Set_Config_Pragmas
3622 (N : Node_Id; Val : List_Id) is
3623 begin
3624 pragma Assert (False
3625 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3626 Set_List4_With_Parent (N, Val);
3627 end Set_Config_Pragmas;
3628
3629 procedure Set_Constant_Present
3630 (N : Node_Id; Val : Boolean := True) is
3631 begin
3632 pragma Assert (False
3633 or else NT (N).Nkind = N_Access_Definition
3634 or else NT (N).Nkind = N_Access_To_Object_Definition
3635 or else NT (N).Nkind = N_Object_Declaration);
3636 Set_Flag17 (N, Val);
3637 end Set_Constant_Present;
3638
3639 procedure Set_Constraint
3640 (N : Node_Id; Val : Node_Id) is
3641 begin
3642 pragma Assert (False
3643 or else NT (N).Nkind = N_Subtype_Indication);
3644 Set_Node3_With_Parent (N, Val);
3645 end Set_Constraint;
3646
3647 procedure Set_Constraints
3648 (N : Node_Id; Val : List_Id) is
3649 begin
3650 pragma Assert (False
3651 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
3652 Set_List1_With_Parent (N, Val);
3653 end Set_Constraints;
3654
3655 procedure Set_Context_Installed
3656 (N : Node_Id; Val : Boolean := True) is
3657 begin
3658 pragma Assert (False
3659 or else NT (N).Nkind = N_With_Clause);
3660 Set_Flag13 (N, Val);
3661 end Set_Context_Installed;
3662
3663 procedure Set_Context_Items
3664 (N : Node_Id; Val : List_Id) is
3665 begin
3666 pragma Assert (False
3667 or else NT (N).Nkind = N_Compilation_Unit);
3668 Set_List1_With_Parent (N, Val);
3669 end Set_Context_Items;
3670
3671 procedure Set_Context_Pending
3672 (N : Node_Id; Val : Boolean := True) is
3673 begin
3674 pragma Assert (False
3675 or else NT (N).Nkind = N_Compilation_Unit);
3676 Set_Flag16 (N, Val);
3677 end Set_Context_Pending;
3678
3679 procedure Set_Controlling_Argument
3680 (N : Node_Id; Val : Node_Id) is
3681 begin
3682 pragma Assert (False
3683 or else NT (N).Nkind = N_Function_Call
3684 or else NT (N).Nkind = N_Procedure_Call_Statement);
3685 Set_Node1 (N, Val); -- semantic field, no parent set
3686 end Set_Controlling_Argument;
3687
3688 procedure Set_Conversion_OK
3689 (N : Node_Id; Val : Boolean := True) is
3690 begin
3691 pragma Assert (False
3692 or else NT (N).Nkind = N_Type_Conversion);
3693 Set_Flag14 (N, Val);
3694 end Set_Conversion_OK;
3695
3696 procedure Set_Convert_To_Return_False
3697 (N : Node_Id; Val : Boolean := True) is
3698 begin
3699 pragma Assert (False
3700 or else NT (N).Nkind = N_Raise_Expression);
3701 Set_Flag13 (N, Val);
3702 end Set_Convert_To_Return_False;
3703
3704 procedure Set_Corresponding_Aspect
3705 (N : Node_Id; Val : Node_Id) is
3706 begin
3707 pragma Assert (False
3708 or else NT (N).Nkind = N_Pragma);
3709 Set_Node3 (N, Val);
3710 end Set_Corresponding_Aspect;
3711
3712 procedure Set_Corresponding_Body
3713 (N : Node_Id; Val : Node_Id) is
3714 begin
3715 pragma Assert (False
3716 or else NT (N).Nkind = N_Entry_Declaration
3717 or else NT (N).Nkind = N_Generic_Package_Declaration
3718 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
3719 or else NT (N).Nkind = N_Package_Body_Stub
3720 or else NT (N).Nkind = N_Package_Declaration
3721 or else NT (N).Nkind = N_Protected_Body_Stub
3722 or else NT (N).Nkind = N_Protected_Type_Declaration
3723 or else NT (N).Nkind = N_Subprogram_Body_Stub
3724 or else NT (N).Nkind = N_Subprogram_Declaration
3725 or else NT (N).Nkind = N_Task_Body_Stub
3726 or else NT (N).Nkind = N_Task_Type_Declaration);
3727 Set_Node5 (N, Val); -- semantic field, no parent set
3728 end Set_Corresponding_Body;
3729
3730 procedure Set_Corresponding_Formal_Spec
3731 (N : Node_Id; Val : Node_Id) is
3732 begin
3733 pragma Assert (False
3734 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
3735 Set_Node3 (N, Val); -- semantic field, no parent set
3736 end Set_Corresponding_Formal_Spec;
3737
3738 procedure Set_Corresponding_Generic_Association
3739 (N : Node_Id; Val : Node_Id) is
3740 begin
3741 pragma Assert (False
3742 or else NT (N).Nkind = N_Object_Declaration
3743 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3744 Set_Node5 (N, Val); -- semantic field, no parent set
3745 end Set_Corresponding_Generic_Association;
3746
3747 procedure Set_Corresponding_Integer_Value
3748 (N : Node_Id; Val : Uint) is
3749 begin
3750 pragma Assert (False
3751 or else NT (N).Nkind = N_Real_Literal);
3752 Set_Uint4 (N, Val); -- semantic field, no parent set
3753 end Set_Corresponding_Integer_Value;
3754
3755 procedure Set_Corresponding_Spec
3756 (N : Node_Id; Val : Node_Id) is
3757 begin
3758 pragma Assert (False
3759 or else NT (N).Nkind = N_Expression_Function
3760 or else NT (N).Nkind = N_Package_Body
3761 or else NT (N).Nkind = N_Protected_Body
3762 or else NT (N).Nkind = N_Subprogram_Body
3763 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
3764 or else NT (N).Nkind = N_Task_Body
3765 or else NT (N).Nkind = N_With_Clause);
3766 Set_Node5 (N, Val); -- semantic field, no parent set
3767 end Set_Corresponding_Spec;
3768
3769 procedure Set_Corresponding_Stub
3770 (N : Node_Id; Val : Node_Id) is
3771 begin
3772 pragma Assert (False
3773 or else NT (N).Nkind = N_Subunit);
3774 Set_Node3 (N, Val);
3775 end Set_Corresponding_Stub;
3776
3777 procedure Set_Dcheck_Function
3778 (N : Node_Id; Val : Entity_Id) is
3779 begin
3780 pragma Assert (False
3781 or else NT (N).Nkind = N_Variant);
3782 Set_Node5 (N, Val); -- semantic field, no parent set
3783 end Set_Dcheck_Function;
3784
3785 procedure Set_Declarations
3786 (N : Node_Id; Val : List_Id) is
3787 begin
3788 pragma Assert (False
3789 or else NT (N).Nkind = N_Accept_Statement
3790 or else NT (N).Nkind = N_Block_Statement
3791 or else NT (N).Nkind = N_Compilation_Unit_Aux
3792 or else NT (N).Nkind = N_Entry_Body
3793 or else NT (N).Nkind = N_Package_Body
3794 or else NT (N).Nkind = N_Protected_Body
3795 or else NT (N).Nkind = N_Subprogram_Body
3796 or else NT (N).Nkind = N_Task_Body);
3797 Set_List2_With_Parent (N, Val);
3798 end Set_Declarations;
3799
3800 procedure Set_Default_Expression
3801 (N : Node_Id; Val : Node_Id) is
3802 begin
3803 pragma Assert (False
3804 or else NT (N).Nkind = N_Formal_Object_Declaration
3805 or else NT (N).Nkind = N_Parameter_Specification);
3806 Set_Node5 (N, Val); -- semantic field, no parent set
3807 end Set_Default_Expression;
3808
3809 procedure Set_Default_Storage_Pool
3810 (N : Node_Id; Val : Node_Id) is
3811 begin
3812 pragma Assert (False
3813 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3814 Set_Node3 (N, Val); -- semantic field, no parent set
3815 end Set_Default_Storage_Pool;
3816
3817 procedure Set_Default_Name
3818 (N : Node_Id; Val : Node_Id) is
3819 begin
3820 pragma Assert (False
3821 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3822 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
3823 Set_Node2_With_Parent (N, Val);
3824 end Set_Default_Name;
3825
3826 procedure Set_Defining_Identifier
3827 (N : Node_Id; Val : Entity_Id) is
3828 begin
3829 pragma Assert (False
3830 or else NT (N).Nkind = N_Component_Declaration
3831 or else NT (N).Nkind = N_Defining_Program_Unit_Name
3832 or else NT (N).Nkind = N_Discriminant_Specification
3833 or else NT (N).Nkind = N_Entry_Body
3834 or else NT (N).Nkind = N_Entry_Declaration
3835 or else NT (N).Nkind = N_Entry_Index_Specification
3836 or else NT (N).Nkind = N_Exception_Declaration
3837 or else NT (N).Nkind = N_Exception_Renaming_Declaration
3838 or else NT (N).Nkind = N_Formal_Object_Declaration
3839 or else NT (N).Nkind = N_Formal_Package_Declaration
3840 or else NT (N).Nkind = N_Formal_Type_Declaration
3841 or else NT (N).Nkind = N_Full_Type_Declaration
3842 or else NT (N).Nkind = N_Implicit_Label_Declaration
3843 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3844 or else NT (N).Nkind = N_Iterator_Specification
3845 or else NT (N).Nkind = N_Loop_Parameter_Specification
3846 or else NT (N).Nkind = N_Number_Declaration
3847 or else NT (N).Nkind = N_Object_Declaration
3848 or else NT (N).Nkind = N_Object_Renaming_Declaration
3849 or else NT (N).Nkind = N_Package_Body_Stub
3850 or else NT (N).Nkind = N_Parameter_Specification
3851 or else NT (N).Nkind = N_Private_Extension_Declaration
3852 or else NT (N).Nkind = N_Private_Type_Declaration
3853 or else NT (N).Nkind = N_Protected_Body
3854 or else NT (N).Nkind = N_Protected_Body_Stub
3855 or else NT (N).Nkind = N_Protected_Type_Declaration
3856 or else NT (N).Nkind = N_Single_Protected_Declaration
3857 or else NT (N).Nkind = N_Single_Task_Declaration
3858 or else NT (N).Nkind = N_Subtype_Declaration
3859 or else NT (N).Nkind = N_Task_Body
3860 or else NT (N).Nkind = N_Task_Body_Stub
3861 or else NT (N).Nkind = N_Task_Type_Declaration);
3862 Set_Node1_With_Parent (N, Val);
3863 end Set_Defining_Identifier;
3864
3865 procedure Set_Defining_Unit_Name
3866 (N : Node_Id; Val : Node_Id) is
3867 begin
3868 pragma Assert (False
3869 or else NT (N).Nkind = N_Function_Instantiation
3870 or else NT (N).Nkind = N_Function_Specification
3871 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
3872 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
3873 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
3874 or else NT (N).Nkind = N_Package_Body
3875 or else NT (N).Nkind = N_Package_Instantiation
3876 or else NT (N).Nkind = N_Package_Renaming_Declaration
3877 or else NT (N).Nkind = N_Package_Specification
3878 or else NT (N).Nkind = N_Procedure_Instantiation
3879 or else NT (N).Nkind = N_Procedure_Specification);
3880 Set_Node1_With_Parent (N, Val);
3881 end Set_Defining_Unit_Name;
3882
3883 procedure Set_Delay_Alternative
3884 (N : Node_Id; Val : Node_Id) is
3885 begin
3886 pragma Assert (False
3887 or else NT (N).Nkind = N_Timed_Entry_Call);
3888 Set_Node4_With_Parent (N, Val);
3889 end Set_Delay_Alternative;
3890
3891 procedure Set_Delay_Statement
3892 (N : Node_Id; Val : Node_Id) is
3893 begin
3894 pragma Assert (False
3895 or else NT (N).Nkind = N_Delay_Alternative);
3896 Set_Node2_With_Parent (N, Val);
3897 end Set_Delay_Statement;
3898
3899 procedure Set_Delta_Expression
3900 (N : Node_Id; Val : Node_Id) is
3901 begin
3902 pragma Assert (False
3903 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3904 or else NT (N).Nkind = N_Delta_Constraint
3905 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
3906 Set_Node3_With_Parent (N, Val);
3907 end Set_Delta_Expression;
3908
3909 procedure Set_Digits_Expression
3910 (N : Node_Id; Val : Node_Id) is
3911 begin
3912 pragma Assert (False
3913 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3914 or else NT (N).Nkind = N_Digits_Constraint
3915 or else NT (N).Nkind = N_Floating_Point_Definition);
3916 Set_Node2_With_Parent (N, Val);
3917 end Set_Digits_Expression;
3918
3919 procedure Set_Discr_Check_Funcs_Built
3920 (N : Node_Id; Val : Boolean := True) is
3921 begin
3922 pragma Assert (False
3923 or else NT (N).Nkind = N_Full_Type_Declaration);
3924 Set_Flag11 (N, Val);
3925 end Set_Discr_Check_Funcs_Built;
3926
3927 procedure Set_Discrete_Choices
3928 (N : Node_Id; Val : List_Id) is
3929 begin
3930 pragma Assert (False
3931 or else NT (N).Nkind = N_Case_Expression_Alternative
3932 or else NT (N).Nkind = N_Case_Statement_Alternative
3933 or else NT (N).Nkind = N_Variant);
3934 Set_List4_With_Parent (N, Val);
3935 end Set_Discrete_Choices;
3936
3937 procedure Set_Discrete_Range
3938 (N : Node_Id; Val : Node_Id) is
3939 begin
3940 pragma Assert (False
3941 or else NT (N).Nkind = N_Slice);
3942 Set_Node4_With_Parent (N, Val);
3943 end Set_Discrete_Range;
3944
3945 procedure Set_Discrete_Subtype_Definition
3946 (N : Node_Id; Val : Node_Id) is
3947 begin
3948 pragma Assert (False
3949 or else NT (N).Nkind = N_Entry_Declaration
3950 or else NT (N).Nkind = N_Entry_Index_Specification
3951 or else NT (N).Nkind = N_Loop_Parameter_Specification);
3952 Set_Node4_With_Parent (N, Val);
3953 end Set_Discrete_Subtype_Definition;
3954
3955 procedure Set_Discrete_Subtype_Definitions
3956 (N : Node_Id; Val : List_Id) is
3957 begin
3958 pragma Assert (False
3959 or else NT (N).Nkind = N_Constrained_Array_Definition);
3960 Set_List2_With_Parent (N, Val);
3961 end Set_Discrete_Subtype_Definitions;
3962
3963 procedure Set_Discriminant_Specifications
3964 (N : Node_Id; Val : List_Id) is
3965 begin
3966 pragma Assert (False
3967 or else NT (N).Nkind = N_Formal_Type_Declaration
3968 or else NT (N).Nkind = N_Full_Type_Declaration
3969 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3970 or else NT (N).Nkind = N_Private_Extension_Declaration
3971 or else NT (N).Nkind = N_Private_Type_Declaration
3972 or else NT (N).Nkind = N_Protected_Type_Declaration
3973 or else NT (N).Nkind = N_Task_Type_Declaration);
3974 Set_List4_With_Parent (N, Val);
3975 end Set_Discriminant_Specifications;
3976
3977 procedure Set_Discriminant_Type
3978 (N : Node_Id; Val : Node_Id) is
3979 begin
3980 pragma Assert (False
3981 or else NT (N).Nkind = N_Discriminant_Specification);
3982 Set_Node5_With_Parent (N, Val);
3983 end Set_Discriminant_Type;
3984
3985 procedure Set_Do_Accessibility_Check
3986 (N : Node_Id; Val : Boolean := True) is
3987 begin
3988 pragma Assert (False
3989 or else NT (N).Nkind = N_Parameter_Specification);
3990 Set_Flag13 (N, Val);
3991 end Set_Do_Accessibility_Check;
3992
3993 procedure Set_Do_Discriminant_Check
3994 (N : Node_Id; Val : Boolean := True) is
3995 begin
3996 pragma Assert (False
3997 or else NT (N).Nkind = N_Selected_Component);
3998 Set_Flag13 (N, Val);
3999 end Set_Do_Discriminant_Check;
4000
4001 procedure Set_Do_Division_Check
4002 (N : Node_Id; Val : Boolean := True) is
4003 begin
4004 pragma Assert (False
4005 or else NT (N).Nkind = N_Op_Divide
4006 or else NT (N).Nkind = N_Op_Mod
4007 or else NT (N).Nkind = N_Op_Rem);
4008 Set_Flag13 (N, Val);
4009 end Set_Do_Division_Check;
4010
4011 procedure Set_Do_Length_Check
4012 (N : Node_Id; Val : Boolean := True) is
4013 begin
4014 pragma Assert (False
4015 or else NT (N).Nkind = N_Assignment_Statement
4016 or else NT (N).Nkind = N_Op_And
4017 or else NT (N).Nkind = N_Op_Or
4018 or else NT (N).Nkind = N_Op_Xor
4019 or else NT (N).Nkind = N_Type_Conversion);
4020 Set_Flag4 (N, Val);
4021 end Set_Do_Length_Check;
4022
4023 procedure Set_Do_Overflow_Check
4024 (N : Node_Id; Val : Boolean := True) is
4025 begin
4026 pragma Assert (False
4027 or else NT (N).Nkind in N_Op
4028 or else NT (N).Nkind = N_Attribute_Reference
4029 or else NT (N).Nkind = N_Case_Expression
4030 or else NT (N).Nkind = N_If_Expression
4031 or else NT (N).Nkind = N_Type_Conversion);
4032 Set_Flag17 (N, Val);
4033 end Set_Do_Overflow_Check;
4034
4035 procedure Set_Do_Range_Check
4036 (N : Node_Id; Val : Boolean := True) is
4037 begin
4038 pragma Assert (False
4039 or else NT (N).Nkind in N_Subexpr);
4040 Set_Flag9 (N, Val);
4041 end Set_Do_Range_Check;
4042
4043 procedure Set_Do_Storage_Check
4044 (N : Node_Id; Val : Boolean := True) is
4045 begin
4046 pragma Assert (False
4047 or else NT (N).Nkind = N_Allocator
4048 or else NT (N).Nkind = N_Subprogram_Body);
4049 Set_Flag17 (N, Val);
4050 end Set_Do_Storage_Check;
4051
4052 procedure Set_Do_Tag_Check
4053 (N : Node_Id; Val : Boolean := True) is
4054 begin
4055 pragma Assert (False
4056 or else NT (N).Nkind = N_Assignment_Statement
4057 or else NT (N).Nkind = N_Extended_Return_Statement
4058 or else NT (N).Nkind = N_Function_Call
4059 or else NT (N).Nkind = N_Procedure_Call_Statement
4060 or else NT (N).Nkind = N_Simple_Return_Statement
4061 or else NT (N).Nkind = N_Type_Conversion);
4062 Set_Flag13 (N, Val);
4063 end Set_Do_Tag_Check;
4064
4065 procedure Set_Elaborate_All_Desirable
4066 (N : Node_Id; Val : Boolean := True) is
4067 begin
4068 pragma Assert (False
4069 or else NT (N).Nkind = N_With_Clause);
4070 Set_Flag9 (N, Val);
4071 end Set_Elaborate_All_Desirable;
4072
4073 procedure Set_Elaborate_All_Present
4074 (N : Node_Id; Val : Boolean := True) is
4075 begin
4076 pragma Assert (False
4077 or else NT (N).Nkind = N_With_Clause);
4078 Set_Flag14 (N, Val);
4079 end Set_Elaborate_All_Present;
4080
4081 procedure Set_Elaborate_Desirable
4082 (N : Node_Id; Val : Boolean := True) is
4083 begin
4084 pragma Assert (False
4085 or else NT (N).Nkind = N_With_Clause);
4086 Set_Flag11 (N, Val);
4087 end Set_Elaborate_Desirable;
4088
4089 procedure Set_Elaborate_Present
4090 (N : Node_Id; Val : Boolean := True) is
4091 begin
4092 pragma Assert (False
4093 or else NT (N).Nkind = N_With_Clause);
4094 Set_Flag4 (N, Val);
4095 end Set_Elaborate_Present;
4096
4097 procedure Set_Elaboration_Boolean
4098 (N : Node_Id; Val : Node_Id) is
4099 begin
4100 pragma Assert (False
4101 or else NT (N).Nkind = N_Function_Specification
4102 or else NT (N).Nkind = N_Procedure_Specification);
4103 Set_Node2 (N, Val);
4104 end Set_Elaboration_Boolean;
4105
4106 procedure Set_Else_Actions
4107 (N : Node_Id; Val : List_Id) is
4108 begin
4109 pragma Assert (False
4110 or else NT (N).Nkind = N_If_Expression);
4111 Set_List3 (N, Val); -- semantic field, no parent set
4112 end Set_Else_Actions;
4113
4114 procedure Set_Else_Statements
4115 (N : Node_Id; Val : List_Id) is
4116 begin
4117 pragma Assert (False
4118 or else NT (N).Nkind = N_Conditional_Entry_Call
4119 or else NT (N).Nkind = N_If_Statement
4120 or else NT (N).Nkind = N_Selective_Accept);
4121 Set_List4_With_Parent (N, Val);
4122 end Set_Else_Statements;
4123
4124 procedure Set_Elsif_Parts
4125 (N : Node_Id; Val : List_Id) is
4126 begin
4127 pragma Assert (False
4128 or else NT (N).Nkind = N_If_Statement);
4129 Set_List3_With_Parent (N, Val);
4130 end Set_Elsif_Parts;
4131
4132 procedure Set_Enclosing_Variant
4133 (N : Node_Id; Val : Node_Id) is
4134 begin
4135 pragma Assert (False
4136 or else NT (N).Nkind = N_Variant);
4137 Set_Node2 (N, Val); -- semantic field, no parent set
4138 end Set_Enclosing_Variant;
4139
4140 procedure Set_End_Label
4141 (N : Node_Id; Val : Node_Id) is
4142 begin
4143 pragma Assert (False
4144 or else NT (N).Nkind = N_Enumeration_Type_Definition
4145 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
4146 or else NT (N).Nkind = N_Loop_Statement
4147 or else NT (N).Nkind = N_Package_Specification
4148 or else NT (N).Nkind = N_Protected_Body
4149 or else NT (N).Nkind = N_Protected_Definition
4150 or else NT (N).Nkind = N_Record_Definition
4151 or else NT (N).Nkind = N_Task_Definition);
4152 Set_Node4_With_Parent (N, Val);
4153 end Set_End_Label;
4154
4155 procedure Set_End_Span
4156 (N : Node_Id; Val : Uint) is
4157 begin
4158 pragma Assert (False
4159 or else NT (N).Nkind = N_Case_Statement
4160 or else NT (N).Nkind = N_If_Statement);
4161 Set_Uint5 (N, Val);
4162 end Set_End_Span;
4163
4164 procedure Set_Entity
4165 (N : Node_Id; Val : Node_Id) is
4166 begin
4167 pragma Assert (False
4168 or else NT (N).Nkind in N_Has_Entity
4169 or else NT (N).Nkind = N_Aspect_Specification
4170 or else NT (N).Nkind = N_Attribute_Definition_Clause
4171 or else NT (N).Nkind = N_Freeze_Entity);
4172 Set_Node4 (N, Val); -- semantic field, no parent set
4173 end Set_Entity;
4174
4175 procedure Set_Entry_Body_Formal_Part
4176 (N : Node_Id; Val : Node_Id) is
4177 begin
4178 pragma Assert (False
4179 or else NT (N).Nkind = N_Entry_Body);
4180 Set_Node5_With_Parent (N, Val);
4181 end Set_Entry_Body_Formal_Part;
4182
4183 procedure Set_Entry_Call_Alternative
4184 (N : Node_Id; Val : Node_Id) is
4185 begin
4186 pragma Assert (False
4187 or else NT (N).Nkind = N_Conditional_Entry_Call
4188 or else NT (N).Nkind = N_Timed_Entry_Call);
4189 Set_Node1_With_Parent (N, Val);
4190 end Set_Entry_Call_Alternative;
4191
4192 procedure Set_Entry_Call_Statement
4193 (N : Node_Id; Val : Node_Id) is
4194 begin
4195 pragma Assert (False
4196 or else NT (N).Nkind = N_Entry_Call_Alternative);
4197 Set_Node1_With_Parent (N, Val);
4198 end Set_Entry_Call_Statement;
4199
4200 procedure Set_Entry_Direct_Name
4201 (N : Node_Id; Val : Node_Id) is
4202 begin
4203 pragma Assert (False
4204 or else NT (N).Nkind = N_Accept_Statement);
4205 Set_Node1_With_Parent (N, Val);
4206 end Set_Entry_Direct_Name;
4207
4208 procedure Set_Entry_Index
4209 (N : Node_Id; Val : Node_Id) is
4210 begin
4211 pragma Assert (False
4212 or else NT (N).Nkind = N_Accept_Statement);
4213 Set_Node5_With_Parent (N, Val);
4214 end Set_Entry_Index;
4215
4216 procedure Set_Entry_Index_Specification
4217 (N : Node_Id; Val : Node_Id) is
4218 begin
4219 pragma Assert (False
4220 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
4221 Set_Node4_With_Parent (N, Val);
4222 end Set_Entry_Index_Specification;
4223
4224 procedure Set_Etype
4225 (N : Node_Id; Val : Node_Id) is
4226 begin
4227 pragma Assert (False
4228 or else NT (N).Nkind in N_Has_Etype);
4229 Set_Node5 (N, Val); -- semantic field, no parent set
4230 end Set_Etype;
4231
4232 procedure Set_Exception_Choices
4233 (N : Node_Id; Val : List_Id) is
4234 begin
4235 pragma Assert (False
4236 or else NT (N).Nkind = N_Exception_Handler);
4237 Set_List4_With_Parent (N, Val);
4238 end Set_Exception_Choices;
4239
4240 procedure Set_Exception_Handlers
4241 (N : Node_Id; Val : List_Id) is
4242 begin
4243 pragma Assert (False
4244 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4245 Set_List5_With_Parent (N, Val);
4246 end Set_Exception_Handlers;
4247
4248 procedure Set_Exception_Junk
4249 (N : Node_Id; Val : Boolean := True) is
4250 begin
4251 pragma Assert (False
4252 or else NT (N).Nkind = N_Block_Statement
4253 or else NT (N).Nkind = N_Goto_Statement
4254 or else NT (N).Nkind = N_Label
4255 or else NT (N).Nkind = N_Object_Declaration
4256 or else NT (N).Nkind = N_Subtype_Declaration);
4257 Set_Flag8 (N, Val);
4258 end Set_Exception_Junk;
4259
4260 procedure Set_Exception_Label
4261 (N : Node_Id; Val : Node_Id) is
4262 begin
4263 pragma Assert (False
4264 or else NT (N).Nkind = N_Exception_Handler
4265 or else NT (N).Nkind = N_Push_Constraint_Error_Label
4266 or else NT (N).Nkind = N_Push_Program_Error_Label
4267 or else NT (N).Nkind = N_Push_Storage_Error_Label);
4268 Set_Node5 (N, Val); -- semantic field, no parent set
4269 end Set_Exception_Label;
4270
4271 procedure Set_Expansion_Delayed
4272 (N : Node_Id; Val : Boolean := True) is
4273 begin
4274 pragma Assert (False
4275 or else NT (N).Nkind = N_Aggregate
4276 or else NT (N).Nkind = N_Extension_Aggregate);
4277 Set_Flag11 (N, Val);
4278 end Set_Expansion_Delayed;
4279
4280 procedure Set_Explicit_Actual_Parameter
4281 (N : Node_Id; Val : Node_Id) is
4282 begin
4283 pragma Assert (False
4284 or else NT (N).Nkind = N_Parameter_Association);
4285 Set_Node3_With_Parent (N, Val);
4286 end Set_Explicit_Actual_Parameter;
4287
4288 procedure Set_Explicit_Generic_Actual_Parameter
4289 (N : Node_Id; Val : Node_Id) is
4290 begin
4291 pragma Assert (False
4292 or else NT (N).Nkind = N_Generic_Association);
4293 Set_Node1_With_Parent (N, Val);
4294 end Set_Explicit_Generic_Actual_Parameter;
4295
4296 procedure Set_Expression
4297 (N : Node_Id; Val : Node_Id) is
4298 begin
4299 pragma Assert (False
4300 or else NT (N).Nkind = N_Allocator
4301 or else NT (N).Nkind = N_Aspect_Specification
4302 or else NT (N).Nkind = N_Assignment_Statement
4303 or else NT (N).Nkind = N_At_Clause
4304 or else NT (N).Nkind = N_Attribute_Definition_Clause
4305 or else NT (N).Nkind = N_Case_Expression
4306 or else NT (N).Nkind = N_Case_Expression_Alternative
4307 or else NT (N).Nkind = N_Case_Statement
4308 or else NT (N).Nkind = N_Code_Statement
4309 or else NT (N).Nkind = N_Component_Association
4310 or else NT (N).Nkind = N_Component_Declaration
4311 or else NT (N).Nkind = N_Delay_Relative_Statement
4312 or else NT (N).Nkind = N_Delay_Until_Statement
4313 or else NT (N).Nkind = N_Discriminant_Association
4314 or else NT (N).Nkind = N_Discriminant_Specification
4315 or else NT (N).Nkind = N_Exception_Declaration
4316 or else NT (N).Nkind = N_Expression_Function
4317 or else NT (N).Nkind = N_Expression_With_Actions
4318 or else NT (N).Nkind = N_Free_Statement
4319 or else NT (N).Nkind = N_Mod_Clause
4320 or else NT (N).Nkind = N_Modular_Type_Definition
4321 or else NT (N).Nkind = N_Number_Declaration
4322 or else NT (N).Nkind = N_Object_Declaration
4323 or else NT (N).Nkind = N_Parameter_Specification
4324 or else NT (N).Nkind = N_Pragma_Argument_Association
4325 or else NT (N).Nkind = N_Qualified_Expression
4326 or else NT (N).Nkind = N_Raise_Expression
4327 or else NT (N).Nkind = N_Raise_Statement
4328 or else NT (N).Nkind = N_Simple_Return_Statement
4329 or else NT (N).Nkind = N_Type_Conversion
4330 or else NT (N).Nkind = N_Unchecked_Expression
4331 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4332 Set_Node3_With_Parent (N, Val);
4333 end Set_Expression;
4334
4335 procedure Set_Expressions
4336 (N : Node_Id; Val : List_Id) is
4337 begin
4338 pragma Assert (False
4339 or else NT (N).Nkind = N_Aggregate
4340 or else NT (N).Nkind = N_Attribute_Reference
4341 or else NT (N).Nkind = N_Extension_Aggregate
4342 or else NT (N).Nkind = N_If_Expression
4343 or else NT (N).Nkind = N_Indexed_Component);
4344 Set_List1_With_Parent (N, Val);
4345 end Set_Expressions;
4346
4347 procedure Set_First_Bit
4348 (N : Node_Id; Val : Node_Id) is
4349 begin
4350 pragma Assert (False
4351 or else NT (N).Nkind = N_Component_Clause);
4352 Set_Node3_With_Parent (N, Val);
4353 end Set_First_Bit;
4354
4355 procedure Set_First_Inlined_Subprogram
4356 (N : Node_Id; Val : Entity_Id) is
4357 begin
4358 pragma Assert (False
4359 or else NT (N).Nkind = N_Compilation_Unit);
4360 Set_Node3 (N, Val); -- semantic field, no parent set
4361 end Set_First_Inlined_Subprogram;
4362
4363 procedure Set_First_Name
4364 (N : Node_Id; Val : Boolean := True) is
4365 begin
4366 pragma Assert (False
4367 or else NT (N).Nkind = N_With_Clause);
4368 Set_Flag5 (N, Val);
4369 end Set_First_Name;
4370
4371 procedure Set_First_Named_Actual
4372 (N : Node_Id; Val : Node_Id) is
4373 begin
4374 pragma Assert (False
4375 or else NT (N).Nkind = N_Entry_Call_Statement
4376 or else NT (N).Nkind = N_Function_Call
4377 or else NT (N).Nkind = N_Procedure_Call_Statement);
4378 Set_Node4 (N, Val); -- semantic field, no parent set
4379 end Set_First_Named_Actual;
4380
4381 procedure Set_First_Real_Statement
4382 (N : Node_Id; Val : Node_Id) is
4383 begin
4384 pragma Assert (False
4385 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4386 Set_Node2 (N, Val); -- semantic field, no parent set
4387 end Set_First_Real_Statement;
4388
4389 procedure Set_First_Subtype_Link
4390 (N : Node_Id; Val : Entity_Id) is
4391 begin
4392 pragma Assert (False
4393 or else NT (N).Nkind = N_Freeze_Entity);
4394 Set_Node5 (N, Val); -- semantic field, no parent set
4395 end Set_First_Subtype_Link;
4396
4397 procedure Set_Float_Truncate
4398 (N : Node_Id; Val : Boolean := True) is
4399 begin
4400 pragma Assert (False
4401 or else NT (N).Nkind = N_Type_Conversion);
4402 Set_Flag11 (N, Val);
4403 end Set_Float_Truncate;
4404
4405 procedure Set_Formal_Type_Definition
4406 (N : Node_Id; Val : Node_Id) is
4407 begin
4408 pragma Assert (False
4409 or else NT (N).Nkind = N_Formal_Type_Declaration);
4410 Set_Node3_With_Parent (N, Val);
4411 end Set_Formal_Type_Definition;
4412
4413 procedure Set_Forwards_OK
4414 (N : Node_Id; Val : Boolean := True) is
4415 begin
4416 pragma Assert (False
4417 or else NT (N).Nkind = N_Assignment_Statement);
4418 Set_Flag5 (N, Val);
4419 end Set_Forwards_OK;
4420
4421 procedure Set_From_Aspect_Specification
4422 (N : Node_Id; Val : Boolean := True) is
4423 begin
4424 pragma Assert (False
4425 or else NT (N).Nkind = N_Attribute_Definition_Clause
4426 or else NT (N).Nkind = N_Pragma);
4427 Set_Flag13 (N, Val);
4428 end Set_From_Aspect_Specification;
4429
4430 procedure Set_From_At_End
4431 (N : Node_Id; Val : Boolean := True) is
4432 begin
4433 pragma Assert (False
4434 or else NT (N).Nkind = N_Raise_Statement);
4435 Set_Flag4 (N, Val);
4436 end Set_From_At_End;
4437
4438 procedure Set_From_At_Mod
4439 (N : Node_Id; Val : Boolean := True) is
4440 begin
4441 pragma Assert (False
4442 or else NT (N).Nkind = N_Attribute_Definition_Clause);
4443 Set_Flag4 (N, Val);
4444 end Set_From_At_Mod;
4445
4446 procedure Set_From_Default
4447 (N : Node_Id; Val : Boolean := True) is
4448 begin
4449 pragma Assert (False
4450 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4451 Set_Flag6 (N, Val);
4452 end Set_From_Default;
4453
4454 procedure Set_Generic_Associations
4455 (N : Node_Id; Val : List_Id) is
4456 begin
4457 pragma Assert (False
4458 or else NT (N).Nkind = N_Formal_Package_Declaration
4459 or else NT (N).Nkind = N_Function_Instantiation
4460 or else NT (N).Nkind = N_Package_Instantiation
4461 or else NT (N).Nkind = N_Procedure_Instantiation);
4462 Set_List3_With_Parent (N, Val);
4463 end Set_Generic_Associations;
4464
4465 procedure Set_Generic_Formal_Declarations
4466 (N : Node_Id; Val : List_Id) is
4467 begin
4468 pragma Assert (False
4469 or else NT (N).Nkind = N_Generic_Package_Declaration
4470 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
4471 Set_List2_With_Parent (N, Val);
4472 end Set_Generic_Formal_Declarations;
4473
4474 procedure Set_Generic_Parent
4475 (N : Node_Id; Val : Node_Id) is
4476 begin
4477 pragma Assert (False
4478 or else NT (N).Nkind = N_Function_Specification
4479 or else NT (N).Nkind = N_Package_Specification
4480 or else NT (N).Nkind = N_Procedure_Specification);
4481 Set_Node5 (N, Val);
4482 end Set_Generic_Parent;
4483
4484 procedure Set_Generic_Parent_Type
4485 (N : Node_Id; Val : Node_Id) is
4486 begin
4487 pragma Assert (False
4488 or else NT (N).Nkind = N_Subtype_Declaration);
4489 Set_Node4 (N, Val);
4490 end Set_Generic_Parent_Type;
4491
4492 procedure Set_Handled_Statement_Sequence
4493 (N : Node_Id; Val : Node_Id) is
4494 begin
4495 pragma Assert (False
4496 or else NT (N).Nkind = N_Accept_Statement
4497 or else NT (N).Nkind = N_Block_Statement
4498 or else NT (N).Nkind = N_Entry_Body
4499 or else NT (N).Nkind = N_Extended_Return_Statement
4500 or else NT (N).Nkind = N_Package_Body
4501 or else NT (N).Nkind = N_Subprogram_Body
4502 or else NT (N).Nkind = N_Task_Body);
4503 Set_Node4_With_Parent (N, Val);
4504 end Set_Handled_Statement_Sequence;
4505
4506 procedure Set_Handler_List_Entry
4507 (N : Node_Id; Val : Node_Id) is
4508 begin
4509 pragma Assert (False
4510 or else NT (N).Nkind = N_Object_Declaration);
4511 Set_Node2 (N, Val);
4512 end Set_Handler_List_Entry;
4513
4514 procedure Set_Has_Created_Identifier
4515 (N : Node_Id; Val : Boolean := True) is
4516 begin
4517 pragma Assert (False
4518 or else NT (N).Nkind = N_Block_Statement
4519 or else NT (N).Nkind = N_Loop_Statement);
4520 Set_Flag15 (N, Val);
4521 end Set_Has_Created_Identifier;
4522
4523 procedure Set_Has_Dereference_Action
4524 (N : Node_Id; Val : Boolean := True) is
4525 begin
4526 pragma Assert (False
4527 or else NT (N).Nkind = N_Explicit_Dereference);
4528 Set_Flag13 (N, Val);
4529 end Set_Has_Dereference_Action;
4530
4531 procedure Set_Has_Dynamic_Length_Check
4532 (N : Node_Id; Val : Boolean := True) is
4533 begin
4534 pragma Assert (False
4535 or else NT (N).Nkind in N_Subexpr);
4536 Set_Flag10 (N, Val);
4537 end Set_Has_Dynamic_Length_Check;
4538
4539 procedure Set_Has_Dynamic_Range_Check
4540 (N : Node_Id; Val : Boolean := True) is
4541 begin
4542 pragma Assert (False
4543 or else NT (N).Nkind = N_Subtype_Declaration
4544 or else NT (N).Nkind in N_Subexpr);
4545 Set_Flag12 (N, Val);
4546 end Set_Has_Dynamic_Range_Check;
4547
4548 procedure Set_Has_Init_Expression
4549 (N : Node_Id; Val : Boolean := True) is
4550 begin
4551 pragma Assert (False
4552 or else NT (N).Nkind = N_Object_Declaration);
4553 Set_Flag14 (N, Val);
4554 end Set_Has_Init_Expression;
4555
4556 procedure Set_Has_Local_Raise
4557 (N : Node_Id; Val : Boolean := True) is
4558 begin
4559 pragma Assert (False
4560 or else NT (N).Nkind = N_Exception_Handler);
4561 Set_Flag8 (N, Val);
4562 end Set_Has_Local_Raise;
4563
4564 procedure Set_Has_No_Elaboration_Code
4565 (N : Node_Id; Val : Boolean := True) is
4566 begin
4567 pragma Assert (False
4568 or else NT (N).Nkind = N_Compilation_Unit);
4569 Set_Flag17 (N, Val);
4570 end Set_Has_No_Elaboration_Code;
4571
4572 procedure Set_Has_Pragma_Suppress_All
4573 (N : Node_Id; Val : Boolean := True) is
4574 begin
4575 pragma Assert (False
4576 or else NT (N).Nkind = N_Compilation_Unit);
4577 Set_Flag14 (N, Val);
4578 end Set_Has_Pragma_Suppress_All;
4579
4580 procedure Set_Has_Private_View
4581 (N : Node_Id; Val : Boolean := True) is
4582 begin
4583 pragma Assert (False
4584 or else NT (N).Nkind in N_Op
4585 or else NT (N).Nkind = N_Character_Literal
4586 or else NT (N).Nkind = N_Expanded_Name
4587 or else NT (N).Nkind = N_Identifier
4588 or else NT (N).Nkind = N_Operator_Symbol);
4589 Set_Flag11 (N, Val);
4590 end Set_Has_Private_View;
4591
4592 procedure Set_Has_Relative_Deadline_Pragma
4593 (N : Node_Id; Val : Boolean := True) is
4594 begin
4595 pragma Assert (False
4596 or else NT (N).Nkind = N_Subprogram_Body
4597 or else NT (N).Nkind = N_Task_Definition);
4598 Set_Flag9 (N, Val);
4599 end Set_Has_Relative_Deadline_Pragma;
4600
4601 procedure Set_Has_Self_Reference
4602 (N : Node_Id; Val : Boolean := True) is
4603 begin
4604 pragma Assert (False
4605 or else NT (N).Nkind = N_Aggregate
4606 or else NT (N).Nkind = N_Extension_Aggregate);
4607 Set_Flag13 (N, Val);
4608 end Set_Has_Self_Reference;
4609
4610 procedure Set_Has_Storage_Size_Pragma
4611 (N : Node_Id; Val : Boolean := True) is
4612 begin
4613 pragma Assert (False
4614 or else NT (N).Nkind = N_Task_Definition);
4615 Set_Flag5 (N, Val);
4616 end Set_Has_Storage_Size_Pragma;
4617
4618 procedure Set_Has_Wide_Character
4619 (N : Node_Id; Val : Boolean := True) is
4620 begin
4621 pragma Assert (False
4622 or else NT (N).Nkind = N_String_Literal);
4623 Set_Flag11 (N, Val);
4624 end Set_Has_Wide_Character;
4625
4626 procedure Set_Has_Wide_Wide_Character
4627 (N : Node_Id; Val : Boolean := True) is
4628 begin
4629 pragma Assert (False
4630 or else NT (N).Nkind = N_String_Literal);
4631 Set_Flag13 (N, Val);
4632 end Set_Has_Wide_Wide_Character;
4633
4634 procedure Set_Header_Size_Added
4635 (N : Node_Id; Val : Boolean := True) is
4636 begin
4637 pragma Assert (False
4638 or else NT (N).Nkind = N_Attribute_Reference);
4639 Set_Flag11 (N, Val);
4640 end Set_Header_Size_Added;
4641
4642 procedure Set_Hidden_By_Use_Clause
4643 (N : Node_Id; Val : Elist_Id) is
4644 begin
4645 pragma Assert (False
4646 or else NT (N).Nkind = N_Use_Package_Clause
4647 or else NT (N).Nkind = N_Use_Type_Clause);
4648 Set_Elist4 (N, Val);
4649 end Set_Hidden_By_Use_Clause;
4650
4651 procedure Set_High_Bound
4652 (N : Node_Id; Val : Node_Id) is
4653 begin
4654 pragma Assert (False
4655 or else NT (N).Nkind = N_Range
4656 or else NT (N).Nkind = N_Real_Range_Specification
4657 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4658 Set_Node2_With_Parent (N, Val);
4659 end Set_High_Bound;
4660
4661 procedure Set_Identifier
4662 (N : Node_Id; Val : Node_Id) is
4663 begin
4664 pragma Assert (False
4665 or else NT (N).Nkind = N_Aspect_Specification
4666 or else NT (N).Nkind = N_At_Clause
4667 or else NT (N).Nkind = N_Block_Statement
4668 or else NT (N).Nkind = N_Designator
4669 or else NT (N).Nkind = N_Enumeration_Representation_Clause
4670 or else NT (N).Nkind = N_Label
4671 or else NT (N).Nkind = N_Loop_Statement
4672 or else NT (N).Nkind = N_Record_Representation_Clause
4673 or else NT (N).Nkind = N_Subprogram_Info);
4674 Set_Node1_With_Parent (N, Val);
4675 end Set_Identifier;
4676
4677 procedure Set_Implicit_With
4678 (N : Node_Id; Val : Boolean := True) is
4679 begin
4680 pragma Assert (False
4681 or else NT (N).Nkind = N_With_Clause);
4682 Set_Flag16 (N, Val);
4683 end Set_Implicit_With;
4684
4685 procedure Set_Implicit_With_From_Instantiation
4686 (N : Node_Id; Val : Boolean := True) is
4687 begin
4688 pragma Assert (False
4689 or else NT (N).Nkind = N_With_Clause);
4690 Set_Flag12 (N, Val);
4691 end Set_Implicit_With_From_Instantiation;
4692
4693 procedure Set_Interface_List
4694 (N : Node_Id; Val : List_Id) is
4695 begin
4696 pragma Assert (False
4697 or else NT (N).Nkind = N_Derived_Type_Definition
4698 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4699 or else NT (N).Nkind = N_Private_Extension_Declaration
4700 or else NT (N).Nkind = N_Protected_Type_Declaration
4701 or else NT (N).Nkind = N_Record_Definition
4702 or else NT (N).Nkind = N_Single_Protected_Declaration
4703 or else NT (N).Nkind = N_Single_Task_Declaration
4704 or else NT (N).Nkind = N_Task_Type_Declaration);
4705 Set_List2_With_Parent (N, Val);
4706 end Set_Interface_List;
4707
4708 procedure Set_Interface_Present
4709 (N : Node_Id; Val : Boolean := True) is
4710 begin
4711 pragma Assert (False
4712 or else NT (N).Nkind = N_Derived_Type_Definition
4713 or else NT (N).Nkind = N_Record_Definition);
4714 Set_Flag16 (N, Val);
4715 end Set_Interface_Present;
4716
4717 procedure Set_Import_Interface_Present
4718 (N : Node_Id; Val : Boolean := True) is
4719 begin
4720 pragma Assert (False
4721 or else NT (N).Nkind = N_Pragma);
4722 Set_Flag16 (N, Val);
4723 end Set_Import_Interface_Present;
4724
4725 procedure Set_In_Assertion_Expression
4726 (N : Node_Id; Val : Boolean := True) is
4727 begin
4728 pragma Assert (False
4729 or else NT (N).Nkind = N_Function_Call);
4730 Set_Flag4 (N, Val);
4731 end Set_In_Assertion_Expression;
4732
4733 procedure Set_In_Present
4734 (N : Node_Id; Val : Boolean := True) is
4735 begin
4736 pragma Assert (False
4737 or else NT (N).Nkind = N_Formal_Object_Declaration
4738 or else NT (N).Nkind = N_Parameter_Specification);
4739 Set_Flag15 (N, Val);
4740 end Set_In_Present;
4741
4742 procedure Set_Includes_Infinities
4743 (N : Node_Id; Val : Boolean := True) is
4744 begin
4745 pragma Assert (False
4746 or else NT (N).Nkind = N_Range);
4747 Set_Flag11 (N, Val);
4748 end Set_Includes_Infinities;
4749
4750 procedure Set_Inherited_Discriminant
4751 (N : Node_Id; Val : Boolean := True) is
4752 begin
4753 pragma Assert (False
4754 or else NT (N).Nkind = N_Component_Association);
4755 Set_Flag13 (N, Val);
4756 end Set_Inherited_Discriminant;
4757
4758 procedure Set_Instance_Spec
4759 (N : Node_Id; Val : Node_Id) is
4760 begin
4761 pragma Assert (False
4762 or else NT (N).Nkind = N_Formal_Package_Declaration
4763 or else NT (N).Nkind = N_Function_Instantiation
4764 or else NT (N).Nkind = N_Package_Instantiation
4765 or else NT (N).Nkind = N_Procedure_Instantiation);
4766 Set_Node5 (N, Val); -- semantic field, no Parent set
4767 end Set_Instance_Spec;
4768
4769 procedure Set_Intval
4770 (N : Node_Id; Val : Uint) is
4771 begin
4772 pragma Assert (False
4773 or else NT (N).Nkind = N_Integer_Literal);
4774 Set_Uint3 (N, Val);
4775 end Set_Intval;
4776
4777 procedure Set_Is_Accessibility_Actual
4778 (N : Node_Id; Val : Boolean := True) is
4779 begin
4780 pragma Assert (False
4781 or else NT (N).Nkind = N_Parameter_Association);
4782 Set_Flag13 (N, Val);
4783 end Set_Is_Accessibility_Actual;
4784
4785 procedure Set_Is_Asynchronous_Call_Block
4786 (N : Node_Id; Val : Boolean := True) is
4787 begin
4788 pragma Assert (False
4789 or else NT (N).Nkind = N_Block_Statement);
4790 Set_Flag7 (N, Val);
4791 end Set_Is_Asynchronous_Call_Block;
4792
4793 procedure Set_Is_Boolean_Aspect
4794 (N : Node_Id; Val : Boolean := True) is
4795 begin
4796 pragma Assert (False
4797 or else NT (N).Nkind = N_Aspect_Specification);
4798 Set_Flag16 (N, Val);
4799 end Set_Is_Boolean_Aspect;
4800
4801 procedure Set_Is_Component_Left_Opnd
4802 (N : Node_Id; Val : Boolean := True) is
4803 begin
4804 pragma Assert (False
4805 or else NT (N).Nkind = N_Op_Concat);
4806 Set_Flag13 (N, Val);
4807 end Set_Is_Component_Left_Opnd;
4808
4809 procedure Set_Is_Component_Right_Opnd
4810 (N : Node_Id; Val : Boolean := True) is
4811 begin
4812 pragma Assert (False
4813 or else NT (N).Nkind = N_Op_Concat);
4814 Set_Flag14 (N, Val);
4815 end Set_Is_Component_Right_Opnd;
4816
4817 procedure Set_Is_Controlling_Actual
4818 (N : Node_Id; Val : Boolean := True) is
4819 begin
4820 pragma Assert (False
4821 or else NT (N).Nkind in N_Subexpr);
4822 Set_Flag16 (N, Val);
4823 end Set_Is_Controlling_Actual;
4824
4825 procedure Set_Is_Delayed_Aspect
4826 (N : Node_Id; Val : Boolean := True) is
4827 begin
4828 pragma Assert (False
4829 or else NT (N).Nkind = N_Aspect_Specification
4830 or else NT (N).Nkind = N_Attribute_Definition_Clause
4831 or else NT (N).Nkind = N_Pragma);
4832 Set_Flag14 (N, Val);
4833 end Set_Is_Delayed_Aspect;
4834
4835 procedure Set_Is_Dynamic_Coextension
4836 (N : Node_Id; Val : Boolean := True) is
4837 begin
4838 pragma Assert (False
4839 or else NT (N).Nkind = N_Allocator);
4840 Set_Flag18 (N, Val);
4841 end Set_Is_Dynamic_Coextension;
4842
4843 procedure Set_Is_Elsif
4844 (N : Node_Id; Val : Boolean := True) is
4845 begin
4846 pragma Assert (False
4847 or else NT (N).Nkind = N_If_Expression);
4848 Set_Flag13 (N, Val);
4849 end Set_Is_Elsif;
4850
4851 procedure Set_Is_Entry_Barrier_Function
4852 (N : Node_Id; Val : Boolean := True) is
4853 begin
4854 pragma Assert (False
4855 or else NT (N).Nkind = N_Subprogram_Body);
4856 Set_Flag8 (N, Val);
4857 end Set_Is_Entry_Barrier_Function;
4858
4859 procedure Set_Is_Expanded_Build_In_Place_Call
4860 (N : Node_Id; Val : Boolean := True) is
4861 begin
4862 pragma Assert (False
4863 or else NT (N).Nkind = N_Function_Call);
4864 Set_Flag11 (N, Val);
4865 end Set_Is_Expanded_Build_In_Place_Call;
4866
4867 procedure Set_Is_Finalization_Wrapper
4868 (N : Node_Id; Val : Boolean := True) is
4869 begin
4870 pragma Assert (False
4871 or else NT (N).Nkind = N_Block_Statement);
4872 Set_Flag9 (N, Val);
4873 end Set_Is_Finalization_Wrapper;
4874
4875 procedure Set_Is_Folded_In_Parser
4876 (N : Node_Id; Val : Boolean := True) is
4877 begin
4878 pragma Assert (False
4879 or else NT (N).Nkind = N_String_Literal);
4880 Set_Flag4 (N, Val);
4881 end Set_Is_Folded_In_Parser;
4882
4883 procedure Set_Is_In_Discriminant_Check
4884 (N : Node_Id; Val : Boolean := True) is
4885 begin
4886 pragma Assert (False
4887 or else NT (N).Nkind = N_Selected_Component);
4888 Set_Flag11 (N, Val);
4889 end Set_Is_In_Discriminant_Check;
4890
4891 procedure Set_Is_Machine_Number
4892 (N : Node_Id; Val : Boolean := True) is
4893 begin
4894 pragma Assert (False
4895 or else NT (N).Nkind = N_Real_Literal);
4896 Set_Flag11 (N, Val);
4897 end Set_Is_Machine_Number;
4898
4899 procedure Set_Is_Null_Loop
4900 (N : Node_Id; Val : Boolean := True) is
4901 begin
4902 pragma Assert (False
4903 or else NT (N).Nkind = N_Loop_Statement);
4904 Set_Flag16 (N, Val);
4905 end Set_Is_Null_Loop;
4906
4907 procedure Set_Is_Overloaded
4908 (N : Node_Id; Val : Boolean := True) is
4909 begin
4910 pragma Assert (False
4911 or else NT (N).Nkind in N_Subexpr);
4912 Set_Flag5 (N, Val);
4913 end Set_Is_Overloaded;
4914
4915 procedure Set_Is_Power_Of_2_For_Shift
4916 (N : Node_Id; Val : Boolean := True) is
4917 begin
4918 pragma Assert (False
4919 or else NT (N).Nkind = N_Op_Expon);
4920 Set_Flag13 (N, Val);
4921 end Set_Is_Power_Of_2_For_Shift;
4922
4923 procedure Set_Is_Prefixed_Call
4924 (N : Node_Id; Val : Boolean := True) is
4925 begin
4926 pragma Assert (False
4927 or else NT (N).Nkind = N_Selected_Component);
4928 Set_Flag17 (N, Val);
4929 end Set_Is_Prefixed_Call;
4930
4931 procedure Set_Is_Protected_Subprogram_Body
4932 (N : Node_Id; Val : Boolean := True) is
4933 begin
4934 pragma Assert (False
4935 or else NT (N).Nkind = N_Subprogram_Body);
4936 Set_Flag7 (N, Val);
4937 end Set_Is_Protected_Subprogram_Body;
4938
4939 procedure Set_Is_Static_Coextension
4940 (N : Node_Id; Val : Boolean := True) is
4941 begin
4942 pragma Assert (False
4943 or else NT (N).Nkind = N_Allocator);
4944 Set_Flag14 (N, Val);
4945 end Set_Is_Static_Coextension;
4946
4947 procedure Set_Is_Static_Expression
4948 (N : Node_Id; Val : Boolean := True) is
4949 begin
4950 pragma Assert (False
4951 or else NT (N).Nkind in N_Subexpr);
4952 Set_Flag6 (N, Val);
4953 end Set_Is_Static_Expression;
4954
4955 procedure Set_Is_Subprogram_Descriptor
4956 (N : Node_Id; Val : Boolean := True) is
4957 begin
4958 pragma Assert (False
4959 or else NT (N).Nkind = N_Object_Declaration);
4960 Set_Flag16 (N, Val);
4961 end Set_Is_Subprogram_Descriptor;
4962
4963 procedure Set_Is_Task_Allocation_Block
4964 (N : Node_Id; Val : Boolean := True) is
4965 begin
4966 pragma Assert (False
4967 or else NT (N).Nkind = N_Block_Statement);
4968 Set_Flag6 (N, Val);
4969 end Set_Is_Task_Allocation_Block;
4970
4971 procedure Set_Is_Task_Master
4972 (N : Node_Id; Val : Boolean := True) is
4973 begin
4974 pragma Assert (False
4975 or else NT (N).Nkind = N_Block_Statement
4976 or else NT (N).Nkind = N_Subprogram_Body
4977 or else NT (N).Nkind = N_Task_Body);
4978 Set_Flag5 (N, Val);
4979 end Set_Is_Task_Master;
4980
4981 procedure Set_Iteration_Scheme
4982 (N : Node_Id; Val : Node_Id) is
4983 begin
4984 pragma Assert (False
4985 or else NT (N).Nkind = N_Loop_Statement);
4986 Set_Node2_With_Parent (N, Val);
4987 end Set_Iteration_Scheme;
4988
4989 procedure Set_Iterator_Specification
4990 (N : Node_Id; Val : Node_Id) is
4991 begin
4992 pragma Assert (False
4993 or else NT (N).Nkind = N_Iteration_Scheme
4994 or else NT (N).Nkind = N_Quantified_Expression);
4995 Set_Node2_With_Parent (N, Val);
4996 end Set_Iterator_Specification;
4997
4998 procedure Set_Itype
4999 (N : Node_Id; Val : Entity_Id) is
5000 begin
5001 pragma Assert (False
5002 or else NT (N).Nkind = N_Itype_Reference);
5003 Set_Node1 (N, Val); -- no parent, semantic field
5004 end Set_Itype;
5005
5006 procedure Set_Kill_Range_Check
5007 (N : Node_Id; Val : Boolean := True) is
5008 begin
5009 pragma Assert (False
5010 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5011 Set_Flag11 (N, Val);
5012 end Set_Kill_Range_Check;
5013
5014 procedure Set_Label_Construct
5015 (N : Node_Id; Val : Node_Id) is
5016 begin
5017 pragma Assert (False
5018 or else NT (N).Nkind = N_Implicit_Label_Declaration);
5019 Set_Node2 (N, Val); -- semantic field, no parent set
5020 end Set_Label_Construct;
5021
5022 procedure Set_Last_Bit
5023 (N : Node_Id; Val : Node_Id) is
5024 begin
5025 pragma Assert (False
5026 or else NT (N).Nkind = N_Component_Clause);
5027 Set_Node4_With_Parent (N, Val);
5028 end Set_Last_Bit;
5029
5030 procedure Set_Last_Name
5031 (N : Node_Id; Val : Boolean := True) is
5032 begin
5033 pragma Assert (False
5034 or else NT (N).Nkind = N_With_Clause);
5035 Set_Flag6 (N, Val);
5036 end Set_Last_Name;
5037
5038 procedure Set_Left_Opnd
5039 (N : Node_Id; Val : Node_Id) is
5040 begin
5041 pragma Assert (False
5042 or else NT (N).Nkind = N_And_Then
5043 or else NT (N).Nkind = N_In
5044 or else NT (N).Nkind = N_Not_In
5045 or else NT (N).Nkind = N_Or_Else
5046 or else NT (N).Nkind in N_Binary_Op);
5047 Set_Node2_With_Parent (N, Val);
5048 end Set_Left_Opnd;
5049
5050 procedure Set_Library_Unit
5051 (N : Node_Id; Val : Node_Id) is
5052 begin
5053 pragma Assert (False
5054 or else NT (N).Nkind = N_Compilation_Unit
5055 or else NT (N).Nkind = N_Package_Body_Stub
5056 or else NT (N).Nkind = N_Protected_Body_Stub
5057 or else NT (N).Nkind = N_Subprogram_Body_Stub
5058 or else NT (N).Nkind = N_Task_Body_Stub
5059 or else NT (N).Nkind = N_With_Clause);
5060 Set_Node4 (N, Val); -- semantic field, no parent set
5061 end Set_Library_Unit;
5062
5063 procedure Set_Limited_View_Installed
5064 (N : Node_Id; Val : Boolean := True) is
5065 begin
5066 pragma Assert (False
5067 or else NT (N).Nkind = N_Package_Specification
5068 or else NT (N).Nkind = N_With_Clause);
5069 Set_Flag18 (N, Val);
5070 end Set_Limited_View_Installed;
5071
5072 procedure Set_Limited_Present
5073 (N : Node_Id; Val : Boolean := True) is
5074 begin
5075 pragma Assert (False
5076 or else NT (N).Nkind = N_Derived_Type_Definition
5077 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5078 or else NT (N).Nkind = N_Formal_Private_Type_Definition
5079 or else NT (N).Nkind = N_Private_Extension_Declaration
5080 or else NT (N).Nkind = N_Private_Type_Declaration
5081 or else NT (N).Nkind = N_Record_Definition
5082 or else NT (N).Nkind = N_With_Clause);
5083 Set_Flag17 (N, Val);
5084 end Set_Limited_Present;
5085
5086 procedure Set_Literals
5087 (N : Node_Id; Val : List_Id) is
5088 begin
5089 pragma Assert (False
5090 or else NT (N).Nkind = N_Enumeration_Type_Definition);
5091 Set_List1_With_Parent (N, Val);
5092 end Set_Literals;
5093
5094 procedure Set_Local_Raise_Not_OK
5095 (N : Node_Id; Val : Boolean := True) is
5096 begin
5097 pragma Assert (False
5098 or else NT (N).Nkind = N_Exception_Handler);
5099 Set_Flag7 (N, Val);
5100 end Set_Local_Raise_Not_OK;
5101
5102 procedure Set_Local_Raise_Statements
5103 (N : Node_Id; Val : Elist_Id) is
5104 begin
5105 pragma Assert (False
5106 or else NT (N).Nkind = N_Exception_Handler);
5107 Set_Elist1 (N, Val);
5108 end Set_Local_Raise_Statements;
5109
5110 procedure Set_Loop_Actions
5111 (N : Node_Id; Val : List_Id) is
5112 begin
5113 pragma Assert (False
5114 or else NT (N).Nkind = N_Component_Association);
5115 Set_List2 (N, Val); -- semantic field, no parent set
5116 end Set_Loop_Actions;
5117
5118 procedure Set_Loop_Parameter_Specification
5119 (N : Node_Id; Val : Node_Id) is
5120 begin
5121 pragma Assert (False
5122 or else NT (N).Nkind = N_Iteration_Scheme
5123 or else NT (N).Nkind = N_Quantified_Expression);
5124 Set_Node4_With_Parent (N, Val);
5125 end Set_Loop_Parameter_Specification;
5126
5127 procedure Set_Low_Bound
5128 (N : Node_Id; Val : Node_Id) is
5129 begin
5130 pragma Assert (False
5131 or else NT (N).Nkind = N_Range
5132 or else NT (N).Nkind = N_Real_Range_Specification
5133 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
5134 Set_Node1_With_Parent (N, Val);
5135 end Set_Low_Bound;
5136
5137 procedure Set_Mod_Clause
5138 (N : Node_Id; Val : Node_Id) is
5139 begin
5140 pragma Assert (False
5141 or else NT (N).Nkind = N_Record_Representation_Clause);
5142 Set_Node2_With_Parent (N, Val);
5143 end Set_Mod_Clause;
5144
5145 procedure Set_More_Ids
5146 (N : Node_Id; Val : Boolean := True) is
5147 begin
5148 pragma Assert (False
5149 or else NT (N).Nkind = N_Component_Declaration
5150 or else NT (N).Nkind = N_Discriminant_Specification
5151 or else NT (N).Nkind = N_Exception_Declaration
5152 or else NT (N).Nkind = N_Formal_Object_Declaration
5153 or else NT (N).Nkind = N_Number_Declaration
5154 or else NT (N).Nkind = N_Object_Declaration
5155 or else NT (N).Nkind = N_Parameter_Specification);
5156 Set_Flag5 (N, Val);
5157 end Set_More_Ids;
5158
5159 procedure Set_Must_Be_Byte_Aligned
5160 (N : Node_Id; Val : Boolean := True) is
5161 begin
5162 pragma Assert (False
5163 or else NT (N).Nkind = N_Attribute_Reference);
5164 Set_Flag14 (N, Val);
5165 end Set_Must_Be_Byte_Aligned;
5166
5167 procedure Set_Must_Not_Freeze
5168 (N : Node_Id; Val : Boolean := True) is
5169 begin
5170 pragma Assert (False
5171 or else NT (N).Nkind = N_Subtype_Indication
5172 or else NT (N).Nkind in N_Subexpr);
5173 Set_Flag8 (N, Val);
5174 end Set_Must_Not_Freeze;
5175
5176 procedure Set_Must_Not_Override
5177 (N : Node_Id; Val : Boolean := True) is
5178 begin
5179 pragma Assert (False
5180 or else NT (N).Nkind = N_Entry_Declaration
5181 or else NT (N).Nkind = N_Function_Instantiation
5182 or else NT (N).Nkind = N_Function_Specification
5183 or else NT (N).Nkind = N_Procedure_Instantiation
5184 or else NT (N).Nkind = N_Procedure_Specification);
5185 Set_Flag15 (N, Val);
5186 end Set_Must_Not_Override;
5187
5188 procedure Set_Must_Override
5189 (N : Node_Id; Val : Boolean := True) is
5190 begin
5191 pragma Assert (False
5192 or else NT (N).Nkind = N_Entry_Declaration
5193 or else NT (N).Nkind = N_Function_Instantiation
5194 or else NT (N).Nkind = N_Function_Specification
5195 or else NT (N).Nkind = N_Procedure_Instantiation
5196 or else NT (N).Nkind = N_Procedure_Specification);
5197 Set_Flag14 (N, Val);
5198 end Set_Must_Override;
5199
5200 procedure Set_Name
5201 (N : Node_Id; Val : Node_Id) is
5202 begin
5203 pragma Assert (False
5204 or else NT (N).Nkind = N_Assignment_Statement
5205 or else NT (N).Nkind = N_Attribute_Definition_Clause
5206 or else NT (N).Nkind = N_Defining_Program_Unit_Name
5207 or else NT (N).Nkind = N_Designator
5208 or else NT (N).Nkind = N_Entry_Call_Statement
5209 or else NT (N).Nkind = N_Exception_Renaming_Declaration
5210 or else NT (N).Nkind = N_Exit_Statement
5211 or else NT (N).Nkind = N_Formal_Package_Declaration
5212 or else NT (N).Nkind = N_Function_Call
5213 or else NT (N).Nkind = N_Function_Instantiation
5214 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5215 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5216 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5217 or else NT (N).Nkind = N_Goto_Statement
5218 or else NT (N).Nkind = N_Iterator_Specification
5219 or else NT (N).Nkind = N_Object_Renaming_Declaration
5220 or else NT (N).Nkind = N_Package_Instantiation
5221 or else NT (N).Nkind = N_Package_Renaming_Declaration
5222 or else NT (N).Nkind = N_Procedure_Call_Statement
5223 or else NT (N).Nkind = N_Procedure_Instantiation
5224 or else NT (N).Nkind = N_Raise_Expression
5225 or else NT (N).Nkind = N_Raise_Statement
5226 or else NT (N).Nkind = N_Requeue_Statement
5227 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
5228 or else NT (N).Nkind = N_Subunit
5229 or else NT (N).Nkind = N_Variant_Part
5230 or else NT (N).Nkind = N_With_Clause);
5231 Set_Node2_With_Parent (N, Val);
5232 end Set_Name;
5233
5234 procedure Set_Names
5235 (N : Node_Id; Val : List_Id) is
5236 begin
5237 pragma Assert (False
5238 or else NT (N).Nkind = N_Abort_Statement
5239 or else NT (N).Nkind = N_Use_Package_Clause);
5240 Set_List2_With_Parent (N, Val);
5241 end Set_Names;
5242
5243 procedure Set_Next_Entity
5244 (N : Node_Id; Val : Node_Id) is
5245 begin
5246 pragma Assert (False
5247 or else NT (N).Nkind = N_Defining_Character_Literal
5248 or else NT (N).Nkind = N_Defining_Identifier
5249 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5250 Set_Node2 (N, Val); -- semantic field, no parent set
5251 end Set_Next_Entity;
5252
5253 procedure Set_Next_Exit_Statement
5254 (N : Node_Id; Val : Node_Id) is
5255 begin
5256 pragma Assert (False
5257 or else NT (N).Nkind = N_Exit_Statement);
5258 Set_Node3 (N, Val); -- semantic field, no parent set
5259 end Set_Next_Exit_Statement;
5260
5261 procedure Set_Next_Implicit_With
5262 (N : Node_Id; Val : Node_Id) is
5263 begin
5264 pragma Assert (False
5265 or else NT (N).Nkind = N_With_Clause);
5266 Set_Node3 (N, Val); -- semantic field, no parent set
5267 end Set_Next_Implicit_With;
5268
5269 procedure Set_Next_Named_Actual
5270 (N : Node_Id; Val : Node_Id) is
5271 begin
5272 pragma Assert (False
5273 or else NT (N).Nkind = N_Parameter_Association);
5274 Set_Node4 (N, Val); -- semantic field, no parent set
5275 end Set_Next_Named_Actual;
5276
5277 procedure Set_Next_Pragma
5278 (N : Node_Id; Val : Node_Id) is
5279 begin
5280 pragma Assert (False
5281 or else NT (N).Nkind = N_Pragma);
5282 Set_Node1 (N, Val); -- semantic field, no parent set
5283 end Set_Next_Pragma;
5284
5285 procedure Set_Next_Rep_Item
5286 (N : Node_Id; Val : Node_Id) is
5287 begin
5288 pragma Assert (False
5289 or else NT (N).Nkind = N_Aspect_Specification
5290 or else NT (N).Nkind = N_Attribute_Definition_Clause
5291 or else NT (N).Nkind = N_Enumeration_Representation_Clause
5292 or else NT (N).Nkind = N_Pragma
5293 or else NT (N).Nkind = N_Record_Representation_Clause);
5294 Set_Node5 (N, Val); -- semantic field, no parent set
5295 end Set_Next_Rep_Item;
5296
5297 procedure Set_Next_Use_Clause
5298 (N : Node_Id; Val : Node_Id) is
5299 begin
5300 pragma Assert (False
5301 or else NT (N).Nkind = N_Use_Package_Clause
5302 or else NT (N).Nkind = N_Use_Type_Clause);
5303 Set_Node3 (N, Val); -- semantic field, no parent set
5304 end Set_Next_Use_Clause;
5305
5306 procedure Set_No_Ctrl_Actions
5307 (N : Node_Id; Val : Boolean := True) is
5308 begin
5309 pragma Assert (False
5310 or else NT (N).Nkind = N_Assignment_Statement);
5311 Set_Flag7 (N, Val);
5312 end Set_No_Ctrl_Actions;
5313
5314 procedure Set_No_Elaboration_Check
5315 (N : Node_Id; Val : Boolean := True) is
5316 begin
5317 pragma Assert (False
5318 or else NT (N).Nkind = N_Function_Call
5319 or else NT (N).Nkind = N_Procedure_Call_Statement);
5320 Set_Flag14 (N, Val);
5321 end Set_No_Elaboration_Check;
5322
5323 procedure Set_No_Entities_Ref_In_Spec
5324 (N : Node_Id; Val : Boolean := True) is
5325 begin
5326 pragma Assert (False
5327 or else NT (N).Nkind = N_With_Clause);
5328 Set_Flag8 (N, Val);
5329 end Set_No_Entities_Ref_In_Spec;
5330
5331 procedure Set_No_Initialization
5332 (N : Node_Id; Val : Boolean := True) is
5333 begin
5334 pragma Assert (False
5335 or else NT (N).Nkind = N_Allocator
5336 or else NT (N).Nkind = N_Object_Declaration);
5337 Set_Flag13 (N, Val);
5338 end Set_No_Initialization;
5339
5340 procedure Set_No_Minimize_Eliminate
5341 (N : Node_Id; Val : Boolean := True) is
5342 begin
5343 pragma Assert (False
5344 or else NT (N).Nkind = N_In
5345 or else NT (N).Nkind = N_Not_In);
5346 Set_Flag17 (N, Val);
5347 end Set_No_Minimize_Eliminate;
5348
5349 procedure Set_No_Truncation
5350 (N : Node_Id; Val : Boolean := True) is
5351 begin
5352 pragma Assert (False
5353 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5354 Set_Flag17 (N, Val);
5355 end Set_No_Truncation;
5356
5357 procedure Set_Null_Present
5358 (N : Node_Id; Val : Boolean := True) is
5359 begin
5360 pragma Assert (False
5361 or else NT (N).Nkind = N_Component_List
5362 or else NT (N).Nkind = N_Procedure_Specification
5363 or else NT (N).Nkind = N_Record_Definition);
5364 Set_Flag13 (N, Val);
5365 end Set_Null_Present;
5366
5367 procedure Set_Null_Exclusion_Present
5368 (N : Node_Id; Val : Boolean := True) is
5369 begin
5370 pragma Assert (False
5371 or else NT (N).Nkind = N_Access_Definition
5372 or else NT (N).Nkind = N_Access_Function_Definition
5373 or else NT (N).Nkind = N_Access_Procedure_Definition
5374 or else NT (N).Nkind = N_Access_To_Object_Definition
5375 or else NT (N).Nkind = N_Allocator
5376 or else NT (N).Nkind = N_Component_Definition
5377 or else NT (N).Nkind = N_Derived_Type_Definition
5378 or else NT (N).Nkind = N_Discriminant_Specification
5379 or else NT (N).Nkind = N_Formal_Object_Declaration
5380 or else NT (N).Nkind = N_Function_Specification
5381 or else NT (N).Nkind = N_Object_Declaration
5382 or else NT (N).Nkind = N_Object_Renaming_Declaration
5383 or else NT (N).Nkind = N_Parameter_Specification
5384 or else NT (N).Nkind = N_Subtype_Declaration);
5385 Set_Flag11 (N, Val);
5386 end Set_Null_Exclusion_Present;
5387
5388 procedure Set_Null_Exclusion_In_Return_Present
5389 (N : Node_Id; Val : Boolean := True) is
5390 begin
5391 pragma Assert (False
5392 or else NT (N).Nkind = N_Access_Function_Definition);
5393 Set_Flag14 (N, Val);
5394 end Set_Null_Exclusion_In_Return_Present;
5395
5396 procedure Set_Null_Record_Present
5397 (N : Node_Id; Val : Boolean := True) is
5398 begin
5399 pragma Assert (False
5400 or else NT (N).Nkind = N_Aggregate
5401 or else NT (N).Nkind = N_Extension_Aggregate);
5402 Set_Flag17 (N, Val);
5403 end Set_Null_Record_Present;
5404
5405 procedure Set_Object_Definition
5406 (N : Node_Id; Val : Node_Id) is
5407 begin
5408 pragma Assert (False
5409 or else NT (N).Nkind = N_Object_Declaration);
5410 Set_Node4_With_Parent (N, Val);
5411 end Set_Object_Definition;
5412
5413 procedure Set_Of_Present
5414 (N : Node_Id; Val : Boolean := True) is
5415 begin
5416 pragma Assert (False
5417 or else NT (N).Nkind = N_Iterator_Specification);
5418 Set_Flag16 (N, Val);
5419 end Set_Of_Present;
5420
5421 procedure Set_Original_Discriminant
5422 (N : Node_Id; Val : Node_Id) is
5423 begin
5424 pragma Assert (False
5425 or else NT (N).Nkind = N_Identifier);
5426 Set_Node2 (N, Val); -- semantic field, no parent set
5427 end Set_Original_Discriminant;
5428
5429 procedure Set_Original_Entity
5430 (N : Node_Id; Val : Entity_Id) is
5431 begin
5432 pragma Assert (False
5433 or else NT (N).Nkind = N_Integer_Literal
5434 or else NT (N).Nkind = N_Real_Literal);
5435 Set_Node2 (N, Val); -- semantic field, no parent set
5436 end Set_Original_Entity;
5437
5438 procedure Set_Others_Discrete_Choices
5439 (N : Node_Id; Val : List_Id) is
5440 begin
5441 pragma Assert (False
5442 or else NT (N).Nkind = N_Others_Choice);
5443 Set_List1_With_Parent (N, Val);
5444 end Set_Others_Discrete_Choices;
5445
5446 procedure Set_Out_Present
5447 (N : Node_Id; Val : Boolean := True) is
5448 begin
5449 pragma Assert (False
5450 or else NT (N).Nkind = N_Formal_Object_Declaration
5451 or else NT (N).Nkind = N_Parameter_Specification);
5452 Set_Flag17 (N, Val);
5453 end Set_Out_Present;
5454
5455 procedure Set_Parameter_Associations
5456 (N : Node_Id; Val : List_Id) is
5457 begin
5458 pragma Assert (False
5459 or else NT (N).Nkind = N_Entry_Call_Statement
5460 or else NT (N).Nkind = N_Function_Call
5461 or else NT (N).Nkind = N_Procedure_Call_Statement);
5462 Set_List3_With_Parent (N, Val);
5463 end Set_Parameter_Associations;
5464
5465 procedure Set_Parameter_List_Truncated
5466 (N : Node_Id; Val : Boolean := True) is
5467 begin
5468 pragma Assert (False
5469 or else NT (N).Nkind = N_Function_Call
5470 or else NT (N).Nkind = N_Procedure_Call_Statement);
5471 Set_Flag17 (N, Val);
5472 end Set_Parameter_List_Truncated;
5473
5474 procedure Set_Parameter_Specifications
5475 (N : Node_Id; Val : List_Id) is
5476 begin
5477 pragma Assert (False
5478 or else NT (N).Nkind = N_Accept_Statement
5479 or else NT (N).Nkind = N_Access_Function_Definition
5480 or else NT (N).Nkind = N_Access_Procedure_Definition
5481 or else NT (N).Nkind = N_Entry_Body_Formal_Part
5482 or else NT (N).Nkind = N_Entry_Declaration
5483 or else NT (N).Nkind = N_Function_Specification
5484 or else NT (N).Nkind = N_Procedure_Specification);
5485 Set_List3_With_Parent (N, Val);
5486 end Set_Parameter_Specifications;
5487
5488 procedure Set_Parameter_Type
5489 (N : Node_Id; Val : Node_Id) is
5490 begin
5491 pragma Assert (False
5492 or else NT (N).Nkind = N_Parameter_Specification);
5493 Set_Node2_With_Parent (N, Val);
5494 end Set_Parameter_Type;
5495
5496 procedure Set_Parent_Spec
5497 (N : Node_Id; Val : Node_Id) is
5498 begin
5499 pragma Assert (False
5500 or else NT (N).Nkind = N_Function_Instantiation
5501 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5502 or else NT (N).Nkind = N_Generic_Package_Declaration
5503 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5504 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5505 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5506 or else NT (N).Nkind = N_Package_Declaration
5507 or else NT (N).Nkind = N_Package_Instantiation
5508 or else NT (N).Nkind = N_Package_Renaming_Declaration
5509 or else NT (N).Nkind = N_Procedure_Instantiation
5510 or else NT (N).Nkind = N_Subprogram_Declaration
5511 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5512 Set_Node4 (N, Val); -- semantic field, no parent set
5513 end Set_Parent_Spec;
5514
5515 procedure Set_Position
5516 (N : Node_Id; Val : Node_Id) is
5517 begin
5518 pragma Assert (False
5519 or else NT (N).Nkind = N_Component_Clause);
5520 Set_Node2_With_Parent (N, Val);
5521 end Set_Position;
5522
5523 procedure Set_Pragma_Argument_Associations
5524 (N : Node_Id; Val : List_Id) is
5525 begin
5526 pragma Assert (False
5527 or else NT (N).Nkind = N_Pragma);
5528 Set_List2_With_Parent (N, Val);
5529 end Set_Pragma_Argument_Associations;
5530
5531 procedure Set_Pragma_Identifier
5532 (N : Node_Id; Val : Node_Id) is
5533 begin
5534 pragma Assert (False
5535 or else NT (N).Nkind = N_Pragma);
5536 Set_Node4_With_Parent (N, Val);
5537 end Set_Pragma_Identifier;
5538
5539 procedure Set_Pragmas_After
5540 (N : Node_Id; Val : List_Id) is
5541 begin
5542 pragma Assert (False
5543 or else NT (N).Nkind = N_Compilation_Unit_Aux
5544 or else NT (N).Nkind = N_Terminate_Alternative);
5545 Set_List5_With_Parent (N, Val);
5546 end Set_Pragmas_After;
5547
5548 procedure Set_Pragmas_Before
5549 (N : Node_Id; Val : List_Id) is
5550 begin
5551 pragma Assert (False
5552 or else NT (N).Nkind = N_Accept_Alternative
5553 or else NT (N).Nkind = N_Delay_Alternative
5554 or else NT (N).Nkind = N_Entry_Call_Alternative
5555 or else NT (N).Nkind = N_Mod_Clause
5556 or else NT (N).Nkind = N_Terminate_Alternative
5557 or else NT (N).Nkind = N_Triggering_Alternative);
5558 Set_List4_With_Parent (N, Val);
5559 end Set_Pragmas_Before;
5560
5561 procedure Set_Prefix
5562 (N : Node_Id; Val : Node_Id) is
5563 begin
5564 pragma Assert (False
5565 or else NT (N).Nkind = N_Attribute_Reference
5566 or else NT (N).Nkind = N_Expanded_Name
5567 or else NT (N).Nkind = N_Explicit_Dereference
5568 or else NT (N).Nkind = N_Indexed_Component
5569 or else NT (N).Nkind = N_Reference
5570 or else NT (N).Nkind = N_Selected_Component
5571 or else NT (N).Nkind = N_Slice);
5572 Set_Node3_With_Parent (N, Val);
5573 end Set_Prefix;
5574
5575 procedure Set_Premature_Use
5576 (N : Node_Id; Val : Node_Id) is
5577 begin
5578 pragma Assert (False
5579 or else NT (N).Nkind = N_Incomplete_Type_Declaration);
5580 Set_Node5 (N, Val);
5581 end Set_Premature_Use;
5582
5583 procedure Set_Present_Expr
5584 (N : Node_Id; Val : Uint) is
5585 begin
5586 pragma Assert (False
5587 or else NT (N).Nkind = N_Variant);
5588 Set_Uint3 (N, Val);
5589 end Set_Present_Expr;
5590
5591 procedure Set_Prev_Ids
5592 (N : Node_Id; Val : Boolean := True) is
5593 begin
5594 pragma Assert (False
5595 or else NT (N).Nkind = N_Component_Declaration
5596 or else NT (N).Nkind = N_Discriminant_Specification
5597 or else NT (N).Nkind = N_Exception_Declaration
5598 or else NT (N).Nkind = N_Formal_Object_Declaration
5599 or else NT (N).Nkind = N_Number_Declaration
5600 or else NT (N).Nkind = N_Object_Declaration
5601 or else NT (N).Nkind = N_Parameter_Specification);
5602 Set_Flag6 (N, Val);
5603 end Set_Prev_Ids;
5604
5605 procedure Set_Print_In_Hex
5606 (N : Node_Id; Val : Boolean := True) is
5607 begin
5608 pragma Assert (False
5609 or else NT (N).Nkind = N_Integer_Literal);
5610 Set_Flag13 (N, Val);
5611 end Set_Print_In_Hex;
5612
5613 procedure Set_Private_Declarations
5614 (N : Node_Id; Val : List_Id) is
5615 begin
5616 pragma Assert (False
5617 or else NT (N).Nkind = N_Package_Specification
5618 or else NT (N).Nkind = N_Protected_Definition
5619 or else NT (N).Nkind = N_Task_Definition);
5620 Set_List3_With_Parent (N, Val);
5621 end Set_Private_Declarations;
5622
5623 procedure Set_Private_Present
5624 (N : Node_Id; Val : Boolean := True) is
5625 begin
5626 pragma Assert (False
5627 or else NT (N).Nkind = N_Compilation_Unit
5628 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5629 or else NT (N).Nkind = N_With_Clause);
5630 Set_Flag15 (N, Val);
5631 end Set_Private_Present;
5632
5633 procedure Set_Procedure_To_Call
5634 (N : Node_Id; Val : Node_Id) is
5635 begin
5636 pragma Assert (False
5637 or else NT (N).Nkind = N_Allocator
5638 or else NT (N).Nkind = N_Extended_Return_Statement
5639 or else NT (N).Nkind = N_Free_Statement
5640 or else NT (N).Nkind = N_Simple_Return_Statement);
5641 Set_Node2 (N, Val); -- semantic field, no parent set
5642 end Set_Procedure_To_Call;
5643
5644 procedure Set_Proper_Body
5645 (N : Node_Id; Val : Node_Id) is
5646 begin
5647 pragma Assert (False
5648 or else NT (N).Nkind = N_Subunit);
5649 Set_Node1_With_Parent (N, Val);
5650 end Set_Proper_Body;
5651
5652 procedure Set_Protected_Definition
5653 (N : Node_Id; Val : Node_Id) is
5654 begin
5655 pragma Assert (False
5656 or else NT (N).Nkind = N_Protected_Type_Declaration
5657 or else NT (N).Nkind = N_Single_Protected_Declaration);
5658 Set_Node3_With_Parent (N, Val);
5659 end Set_Protected_Definition;
5660
5661 procedure Set_Protected_Present
5662 (N : Node_Id; Val : Boolean := True) is
5663 begin
5664 pragma Assert (False
5665 or else NT (N).Nkind = N_Access_Function_Definition
5666 or else NT (N).Nkind = N_Access_Procedure_Definition
5667 or else NT (N).Nkind = N_Derived_Type_Definition
5668 or else NT (N).Nkind = N_Record_Definition);
5669 Set_Flag6 (N, Val);
5670 end Set_Protected_Present;
5671
5672 procedure Set_Raises_Constraint_Error
5673 (N : Node_Id; Val : Boolean := True) is
5674 begin
5675 pragma Assert (False
5676 or else NT (N).Nkind in N_Subexpr);
5677 Set_Flag7 (N, Val);
5678 end Set_Raises_Constraint_Error;
5679
5680 procedure Set_Range_Constraint
5681 (N : Node_Id; Val : Node_Id) is
5682 begin
5683 pragma Assert (False
5684 or else NT (N).Nkind = N_Delta_Constraint
5685 or else NT (N).Nkind = N_Digits_Constraint);
5686 Set_Node4_With_Parent (N, Val);
5687 end Set_Range_Constraint;
5688
5689 procedure Set_Range_Expression
5690 (N : Node_Id; Val : Node_Id) is
5691 begin
5692 pragma Assert (False
5693 or else NT (N).Nkind = N_Range_Constraint);
5694 Set_Node4_With_Parent (N, Val);
5695 end Set_Range_Expression;
5696
5697 procedure Set_Real_Range_Specification
5698 (N : Node_Id; Val : Node_Id) is
5699 begin
5700 pragma Assert (False
5701 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
5702 or else NT (N).Nkind = N_Floating_Point_Definition
5703 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
5704 Set_Node4_With_Parent (N, Val);
5705 end Set_Real_Range_Specification;
5706
5707 procedure Set_Realval
5708 (N : Node_Id; Val : Ureal) is
5709 begin
5710 pragma Assert (False
5711 or else NT (N).Nkind = N_Real_Literal);
5712 Set_Ureal3 (N, Val);
5713 end Set_Realval;
5714
5715 procedure Set_Reason
5716 (N : Node_Id; Val : Uint) is
5717 begin
5718 pragma Assert (False
5719 or else NT (N).Nkind = N_Raise_Constraint_Error
5720 or else NT (N).Nkind = N_Raise_Program_Error
5721 or else NT (N).Nkind = N_Raise_Storage_Error);
5722 Set_Uint3 (N, Val);
5723 end Set_Reason;
5724
5725 procedure Set_Record_Extension_Part
5726 (N : Node_Id; Val : Node_Id) is
5727 begin
5728 pragma Assert (False
5729 or else NT (N).Nkind = N_Derived_Type_Definition);
5730 Set_Node3_With_Parent (N, Val);
5731 end Set_Record_Extension_Part;
5732
5733 procedure Set_Redundant_Use
5734 (N : Node_Id; Val : Boolean := True) is
5735 begin
5736 pragma Assert (False
5737 or else NT (N).Nkind = N_Attribute_Reference
5738 or else NT (N).Nkind = N_Expanded_Name
5739 or else NT (N).Nkind = N_Identifier);
5740 Set_Flag13 (N, Val);
5741 end Set_Redundant_Use;
5742
5743 procedure Set_Renaming_Exception
5744 (N : Node_Id; Val : Node_Id) is
5745 begin
5746 pragma Assert (False
5747 or else NT (N).Nkind = N_Exception_Declaration);
5748 Set_Node2 (N, Val);
5749 end Set_Renaming_Exception;
5750
5751 procedure Set_Result_Definition
5752 (N : Node_Id; Val : Node_Id) is
5753 begin
5754 pragma Assert (False
5755 or else NT (N).Nkind = N_Access_Function_Definition
5756 or else NT (N).Nkind = N_Function_Specification);
5757 Set_Node4_With_Parent (N, Val);
5758 end Set_Result_Definition;
5759
5760 procedure Set_Return_Object_Declarations
5761 (N : Node_Id; Val : List_Id) is
5762 begin
5763 pragma Assert (False
5764 or else NT (N).Nkind = N_Extended_Return_Statement);
5765 Set_List3_With_Parent (N, Val);
5766 end Set_Return_Object_Declarations;
5767
5768 procedure Set_Return_Statement_Entity
5769 (N : Node_Id; Val : Node_Id) is
5770 begin
5771 pragma Assert (False
5772 or else NT (N).Nkind = N_Extended_Return_Statement
5773 or else NT (N).Nkind = N_Simple_Return_Statement);
5774 Set_Node5 (N, Val); -- semantic field, no parent set
5775 end Set_Return_Statement_Entity;
5776
5777 procedure Set_Reverse_Present
5778 (N : Node_Id; Val : Boolean := True) is
5779 begin
5780 pragma Assert (False
5781 or else NT (N).Nkind = N_Iterator_Specification
5782 or else NT (N).Nkind = N_Loop_Parameter_Specification);
5783 Set_Flag15 (N, Val);
5784 end Set_Reverse_Present;
5785
5786 procedure Set_Right_Opnd
5787 (N : Node_Id; Val : Node_Id) is
5788 begin
5789 pragma Assert (False
5790 or else NT (N).Nkind in N_Op
5791 or else NT (N).Nkind = N_And_Then
5792 or else NT (N).Nkind = N_In
5793 or else NT (N).Nkind = N_Not_In
5794 or else NT (N).Nkind = N_Or_Else);
5795 Set_Node3_With_Parent (N, Val);
5796 end Set_Right_Opnd;
5797
5798 procedure Set_Rounded_Result
5799 (N : Node_Id; Val : Boolean := True) is
5800 begin
5801 pragma Assert (False
5802 or else NT (N).Nkind = N_Op_Divide
5803 or else NT (N).Nkind = N_Op_Multiply
5804 or else NT (N).Nkind = N_Type_Conversion);
5805 Set_Flag18 (N, Val);
5806 end Set_Rounded_Result;
5807
5808 procedure Set_SCIL_Controlling_Tag
5809 (N : Node_Id; Val : Node_Id) is
5810 begin
5811 pragma Assert (False
5812 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
5813 Set_Node5 (N, Val); -- semantic field, no parent set
5814 end Set_SCIL_Controlling_Tag;
5815
5816 procedure Set_SCIL_Entity
5817 (N : Node_Id; Val : Node_Id) is
5818 begin
5819 pragma Assert (False
5820 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
5821 or else NT (N).Nkind = N_SCIL_Dispatching_Call
5822 or else NT (N).Nkind = N_SCIL_Membership_Test);
5823 Set_Node4 (N, Val); -- semantic field, no parent set
5824 end Set_SCIL_Entity;
5825
5826 procedure Set_SCIL_Tag_Value
5827 (N : Node_Id; Val : Node_Id) is
5828 begin
5829 pragma Assert (False
5830 or else NT (N).Nkind = N_SCIL_Membership_Test);
5831 Set_Node5 (N, Val); -- semantic field, no parent set
5832 end Set_SCIL_Tag_Value;
5833
5834 procedure Set_SCIL_Target_Prim
5835 (N : Node_Id; Val : Node_Id) is
5836 begin
5837 pragma Assert (False
5838 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
5839 Set_Node2 (N, Val); -- semantic field, no parent set
5840 end Set_SCIL_Target_Prim;
5841
5842 procedure Set_Scope
5843 (N : Node_Id; Val : Node_Id) is
5844 begin
5845 pragma Assert (False
5846 or else NT (N).Nkind = N_Defining_Character_Literal
5847 or else NT (N).Nkind = N_Defining_Identifier
5848 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5849 Set_Node3 (N, Val); -- semantic field, no parent set
5850 end Set_Scope;
5851
5852 procedure Set_Select_Alternatives
5853 (N : Node_Id; Val : List_Id) is
5854 begin
5855 pragma Assert (False
5856 or else NT (N).Nkind = N_Selective_Accept);
5857 Set_List1_With_Parent (N, Val);
5858 end Set_Select_Alternatives;
5859
5860 procedure Set_Selector_Name
5861 (N : Node_Id; Val : Node_Id) is
5862 begin
5863 pragma Assert (False
5864 or else NT (N).Nkind = N_Expanded_Name
5865 or else NT (N).Nkind = N_Generic_Association
5866 or else NT (N).Nkind = N_Parameter_Association
5867 or else NT (N).Nkind = N_Selected_Component);
5868 Set_Node2_With_Parent (N, Val);
5869 end Set_Selector_Name;
5870
5871 procedure Set_Selector_Names
5872 (N : Node_Id; Val : List_Id) is
5873 begin
5874 pragma Assert (False
5875 or else NT (N).Nkind = N_Discriminant_Association);
5876 Set_List1_With_Parent (N, Val);
5877 end Set_Selector_Names;
5878
5879 procedure Set_Shift_Count_OK
5880 (N : Node_Id; Val : Boolean := True) is
5881 begin
5882 pragma Assert (False
5883 or else NT (N).Nkind = N_Op_Rotate_Left
5884 or else NT (N).Nkind = N_Op_Rotate_Right
5885 or else NT (N).Nkind = N_Op_Shift_Left
5886 or else NT (N).Nkind = N_Op_Shift_Right
5887 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
5888 Set_Flag4 (N, Val);
5889 end Set_Shift_Count_OK;
5890
5891 procedure Set_Source_Type
5892 (N : Node_Id; Val : Entity_Id) is
5893 begin
5894 pragma Assert (False
5895 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5896 Set_Node1 (N, Val); -- semantic field, no parent set
5897 end Set_Source_Type;
5898
5899 procedure Set_Spec_PPC_List
5900 (N : Node_Id; Val : Node_Id) is
5901 begin
5902 pragma Assert (False
5903 or else NT (N).Nkind = N_Contract);
5904 Set_Node1 (N, Val); -- semantic field, no parent set
5905 end Set_Spec_PPC_List;
5906
5907 procedure Set_Spec_CTC_List
5908 (N : Node_Id; Val : Node_Id) is
5909 begin
5910 pragma Assert (False
5911 or else NT (N).Nkind = N_Contract);
5912 Set_Node2 (N, Val); -- semantic field, no parent set
5913 end Set_Spec_CTC_List;
5914
5915 procedure Set_Specification
5916 (N : Node_Id; Val : Node_Id) is
5917 begin
5918 pragma Assert (False
5919 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
5920 or else NT (N).Nkind = N_Expression_Function
5921 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
5922 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
5923 or else NT (N).Nkind = N_Generic_Package_Declaration
5924 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5925 or else NT (N).Nkind = N_Package_Declaration
5926 or else NT (N).Nkind = N_Subprogram_Body
5927 or else NT (N).Nkind = N_Subprogram_Body_Stub
5928 or else NT (N).Nkind = N_Subprogram_Declaration
5929 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5930 Set_Node1_With_Parent (N, Val);
5931 end Set_Specification;
5932
5933 procedure Set_Split_PPC
5934 (N : Node_Id; Val : Boolean) is
5935 begin
5936 pragma Assert (False
5937 or else NT (N).Nkind = N_Aspect_Specification
5938 or else NT (N).Nkind = N_Pragma);
5939 Set_Flag17 (N, Val);
5940 end Set_Split_PPC;
5941
5942 procedure Set_Statements
5943 (N : Node_Id; Val : List_Id) is
5944 begin
5945 pragma Assert (False
5946 or else NT (N).Nkind = N_Abortable_Part
5947 or else NT (N).Nkind = N_Accept_Alternative
5948 or else NT (N).Nkind = N_Case_Statement_Alternative
5949 or else NT (N).Nkind = N_Delay_Alternative
5950 or else NT (N).Nkind = N_Entry_Call_Alternative
5951 or else NT (N).Nkind = N_Exception_Handler
5952 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
5953 or else NT (N).Nkind = N_Loop_Statement
5954 or else NT (N).Nkind = N_Triggering_Alternative);
5955 Set_List3_With_Parent (N, Val);
5956 end Set_Statements;
5957
5958 procedure Set_Storage_Pool
5959 (N : Node_Id; Val : Node_Id) is
5960 begin
5961 pragma Assert (False
5962 or else NT (N).Nkind = N_Allocator
5963 or else NT (N).Nkind = N_Extended_Return_Statement
5964 or else NT (N).Nkind = N_Free_Statement
5965 or else NT (N).Nkind = N_Simple_Return_Statement);
5966 Set_Node1 (N, Val); -- semantic field, no parent set
5967 end Set_Storage_Pool;
5968
5969 procedure Set_Subpool_Handle_Name
5970 (N : Node_Id; Val : Node_Id) is
5971 begin
5972 pragma Assert (False
5973 or else NT (N).Nkind = N_Allocator);
5974 Set_Node4_With_Parent (N, Val);
5975 end Set_Subpool_Handle_Name;
5976
5977 procedure Set_Strval
5978 (N : Node_Id; Val : String_Id) is
5979 begin
5980 pragma Assert (False
5981 or else NT (N).Nkind = N_Operator_Symbol
5982 or else NT (N).Nkind = N_String_Literal);
5983 Set_Str3 (N, Val);
5984 end Set_Strval;
5985
5986 procedure Set_Subtype_Indication
5987 (N : Node_Id; Val : Node_Id) is
5988 begin
5989 pragma Assert (False
5990 or else NT (N).Nkind = N_Access_To_Object_Definition
5991 or else NT (N).Nkind = N_Component_Definition
5992 or else NT (N).Nkind = N_Derived_Type_Definition
5993 or else NT (N).Nkind = N_Iterator_Specification
5994 or else NT (N).Nkind = N_Private_Extension_Declaration
5995 or else NT (N).Nkind = N_Subtype_Declaration);
5996 Set_Node5_With_Parent (N, Val);
5997 end Set_Subtype_Indication;
5998
5999 procedure Set_Subtype_Mark
6000 (N : Node_Id; Val : Node_Id) is
6001 begin
6002 pragma Assert (False
6003 or else NT (N).Nkind = N_Access_Definition
6004 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
6005 or else NT (N).Nkind = N_Formal_Object_Declaration
6006 or else NT (N).Nkind = N_Object_Renaming_Declaration
6007 or else NT (N).Nkind = N_Qualified_Expression
6008 or else NT (N).Nkind = N_Subtype_Indication
6009 or else NT (N).Nkind = N_Type_Conversion
6010 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
6011 Set_Node4_With_Parent (N, Val);
6012 end Set_Subtype_Mark;
6013
6014 procedure Set_Subtype_Marks
6015 (N : Node_Id; Val : List_Id) is
6016 begin
6017 pragma Assert (False
6018 or else NT (N).Nkind = N_Unconstrained_Array_Definition
6019 or else NT (N).Nkind = N_Use_Type_Clause);
6020 Set_List2_With_Parent (N, Val);
6021 end Set_Subtype_Marks;
6022
6023 procedure Set_Suppress_Assignment_Checks
6024 (N : Node_Id; Val : Boolean := True) is
6025 begin
6026 pragma Assert (False
6027 or else NT (N).Nkind = N_Assignment_Statement
6028 or else NT (N).Nkind = N_Object_Declaration);
6029 Set_Flag18 (N, Val);
6030 end Set_Suppress_Assignment_Checks;
6031
6032 procedure Set_Suppress_Loop_Warnings
6033 (N : Node_Id; Val : Boolean := True) is
6034 begin
6035 pragma Assert (False
6036 or else NT (N).Nkind = N_Loop_Statement);
6037 Set_Flag17 (N, Val);
6038 end Set_Suppress_Loop_Warnings;
6039
6040 procedure Set_Synchronized_Present
6041 (N : Node_Id; Val : Boolean := True) is
6042 begin
6043 pragma Assert (False
6044 or else NT (N).Nkind = N_Derived_Type_Definition
6045 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
6046 or else NT (N).Nkind = N_Private_Extension_Declaration
6047 or else NT (N).Nkind = N_Record_Definition);
6048 Set_Flag7 (N, Val);
6049 end Set_Synchronized_Present;
6050
6051 procedure Set_Tagged_Present
6052 (N : Node_Id; Val : Boolean := True) is
6053 begin
6054 pragma Assert (False
6055 or else NT (N).Nkind = N_Formal_Incomplete_Type_Definition
6056 or else NT (N).Nkind = N_Formal_Private_Type_Definition
6057 or else NT (N).Nkind = N_Incomplete_Type_Declaration
6058 or else NT (N).Nkind = N_Private_Type_Declaration
6059 or else NT (N).Nkind = N_Record_Definition);
6060 Set_Flag15 (N, Val);
6061 end Set_Tagged_Present;
6062
6063 procedure Set_Target_Type
6064 (N : Node_Id; Val : Entity_Id) is
6065 begin
6066 pragma Assert (False
6067 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
6068 Set_Node2 (N, Val); -- semantic field, no parent set
6069 end Set_Target_Type;
6070
6071 procedure Set_Task_Definition
6072 (N : Node_Id; Val : Node_Id) is
6073 begin
6074 pragma Assert (False
6075 or else NT (N).Nkind = N_Single_Task_Declaration
6076 or else NT (N).Nkind = N_Task_Type_Declaration);
6077 Set_Node3_With_Parent (N, Val);
6078 end Set_Task_Definition;
6079
6080 procedure Set_Task_Present
6081 (N : Node_Id; Val : Boolean := True) is
6082 begin
6083 pragma Assert (False
6084 or else NT (N).Nkind = N_Derived_Type_Definition
6085 or else NT (N).Nkind = N_Record_Definition);
6086 Set_Flag5 (N, Val);
6087 end Set_Task_Present;
6088
6089 procedure Set_Then_Actions
6090 (N : Node_Id; Val : List_Id) is
6091 begin
6092 pragma Assert (False
6093 or else NT (N).Nkind = N_If_Expression);
6094 Set_List2 (N, Val); -- semantic field, no parent set
6095 end Set_Then_Actions;
6096
6097 procedure Set_Then_Statements
6098 (N : Node_Id; Val : List_Id) is
6099 begin
6100 pragma Assert (False
6101 or else NT (N).Nkind = N_Elsif_Part
6102 or else NT (N).Nkind = N_If_Statement);
6103 Set_List2_With_Parent (N, Val);
6104 end Set_Then_Statements;
6105
6106 procedure Set_Treat_Fixed_As_Integer
6107 (N : Node_Id; Val : Boolean := True) is
6108 begin
6109 pragma Assert (False
6110 or else NT (N).Nkind = N_Op_Divide
6111 or else NT (N).Nkind = N_Op_Mod
6112 or else NT (N).Nkind = N_Op_Multiply
6113 or else NT (N).Nkind = N_Op_Rem);
6114 Set_Flag14 (N, Val);
6115 end Set_Treat_Fixed_As_Integer;
6116
6117 procedure Set_Triggering_Alternative
6118 (N : Node_Id; Val : Node_Id) is
6119 begin
6120 pragma Assert (False
6121 or else NT (N).Nkind = N_Asynchronous_Select);
6122 Set_Node1_With_Parent (N, Val);
6123 end Set_Triggering_Alternative;
6124
6125 procedure Set_Triggering_Statement
6126 (N : Node_Id; Val : Node_Id) is
6127 begin
6128 pragma Assert (False
6129 or else NT (N).Nkind = N_Triggering_Alternative);
6130 Set_Node1_With_Parent (N, Val);
6131 end Set_Triggering_Statement;
6132
6133 procedure Set_TSS_Elist
6134 (N : Node_Id; Val : Elist_Id) is
6135 begin
6136 pragma Assert (False
6137 or else NT (N).Nkind = N_Freeze_Entity);
6138 Set_Elist3 (N, Val); -- semantic field, no parent set
6139 end Set_TSS_Elist;
6140
6141 procedure Set_Type_Definition
6142 (N : Node_Id; Val : Node_Id) is
6143 begin
6144 pragma Assert (False
6145 or else NT (N).Nkind = N_Full_Type_Declaration);
6146 Set_Node3_With_Parent (N, Val);
6147 end Set_Type_Definition;
6148
6149 procedure Set_Unit
6150 (N : Node_Id; Val : Node_Id) is
6151 begin
6152 pragma Assert (False
6153 or else NT (N).Nkind = N_Compilation_Unit);
6154 Set_Node2_With_Parent (N, Val);
6155 end Set_Unit;
6156
6157 procedure Set_Unknown_Discriminants_Present
6158 (N : Node_Id; Val : Boolean := True) is
6159 begin
6160 pragma Assert (False
6161 or else NT (N).Nkind = N_Formal_Type_Declaration
6162 or else NT (N).Nkind = N_Incomplete_Type_Declaration
6163 or else NT (N).Nkind = N_Private_Extension_Declaration
6164 or else NT (N).Nkind = N_Private_Type_Declaration);
6165 Set_Flag13 (N, Val);
6166 end Set_Unknown_Discriminants_Present;
6167
6168 procedure Set_Unreferenced_In_Spec
6169 (N : Node_Id; Val : Boolean := True) is
6170 begin
6171 pragma Assert (False
6172 or else NT (N).Nkind = N_With_Clause);
6173 Set_Flag7 (N, Val);
6174 end Set_Unreferenced_In_Spec;
6175
6176 procedure Set_Variant_Part
6177 (N : Node_Id; Val : Node_Id) is
6178 begin
6179 pragma Assert (False
6180 or else NT (N).Nkind = N_Component_List);
6181 Set_Node4_With_Parent (N, Val);
6182 end Set_Variant_Part;
6183
6184 procedure Set_Variants
6185 (N : Node_Id; Val : List_Id) is
6186 begin
6187 pragma Assert (False
6188 or else NT (N).Nkind = N_Variant_Part);
6189 Set_List1_With_Parent (N, Val);
6190 end Set_Variants;
6191
6192 procedure Set_Visible_Declarations
6193 (N : Node_Id; Val : List_Id) is
6194 begin
6195 pragma Assert (False
6196 or else NT (N).Nkind = N_Package_Specification
6197 or else NT (N).Nkind = N_Protected_Definition
6198 or else NT (N).Nkind = N_Task_Definition);
6199 Set_List2_With_Parent (N, Val);
6200 end Set_Visible_Declarations;
6201
6202 procedure Set_Used_Operations
6203 (N : Node_Id; Val : Elist_Id) is
6204 begin
6205 pragma Assert (False
6206 or else NT (N).Nkind = N_Use_Type_Clause);
6207 Set_Elist5 (N, Val);
6208 end Set_Used_Operations;
6209
6210 procedure Set_Was_Originally_Stub
6211 (N : Node_Id; Val : Boolean := True) is
6212 begin
6213 pragma Assert (False
6214 or else NT (N).Nkind = N_Package_Body
6215 or else NT (N).Nkind = N_Protected_Body
6216 or else NT (N).Nkind = N_Subprogram_Body
6217 or else NT (N).Nkind = N_Task_Body);
6218 Set_Flag13 (N, Val);
6219 end Set_Was_Originally_Stub;
6220
6221 procedure Set_Withed_Body
6222 (N : Node_Id; Val : Node_Id) is
6223 begin
6224 pragma Assert (False
6225 or else NT (N).Nkind = N_With_Clause);
6226 Set_Node1 (N, Val);
6227 end Set_Withed_Body;
6228
6229 -------------------------
6230 -- Iterator Procedures --
6231 -------------------------
6232
6233 procedure Next_Entity (N : in out Node_Id) is
6234 begin
6235 N := Next_Entity (N);
6236 end Next_Entity;
6237
6238 procedure Next_Named_Actual (N : in out Node_Id) is
6239 begin
6240 N := Next_Named_Actual (N);
6241 end Next_Named_Actual;
6242
6243 procedure Next_Rep_Item (N : in out Node_Id) is
6244 begin
6245 N := Next_Rep_Item (N);
6246 end Next_Rep_Item;
6247
6248 procedure Next_Use_Clause (N : in out Node_Id) is
6249 begin
6250 N := Next_Use_Clause (N);
6251 end Next_Use_Clause;
6252
6253 ------------------
6254 -- End_Location --
6255 ------------------
6256
6257 function End_Location (N : Node_Id) return Source_Ptr is
6258 L : constant Uint := End_Span (N);
6259 begin
6260 if L = No_Uint then
6261 return No_Location;
6262 else
6263 return Source_Ptr (Int (Sloc (N)) + UI_To_Int (L));
6264 end if;
6265 end End_Location;
6266
6267 --------------------
6268 -- Get_Pragma_Arg --
6269 --------------------
6270
6271 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id is
6272 begin
6273 if Nkind (Arg) = N_Pragma_Argument_Association then
6274 return Expression (Arg);
6275 else
6276 return Arg;
6277 end if;
6278 end Get_Pragma_Arg;
6279
6280 ----------------------
6281 -- Set_End_Location --
6282 ----------------------
6283
6284 procedure Set_End_Location (N : Node_Id; S : Source_Ptr) is
6285 begin
6286 Set_End_Span (N,
6287 UI_From_Int (Int (S) - Int (Sloc (N))));
6288 end Set_End_Location;
6289
6290 --------------
6291 -- Nkind_In --
6292 --------------
6293
6294 function Nkind_In
6295 (T : Node_Kind;
6296 V1 : Node_Kind;
6297 V2 : Node_Kind) return Boolean
6298 is
6299 begin
6300 return T = V1 or else
6301 T = V2;
6302 end Nkind_In;
6303
6304 function Nkind_In
6305 (T : Node_Kind;
6306 V1 : Node_Kind;
6307 V2 : Node_Kind;
6308 V3 : Node_Kind) return Boolean
6309 is
6310 begin
6311 return T = V1 or else
6312 T = V2 or else
6313 T = V3;
6314 end Nkind_In;
6315
6316 function Nkind_In
6317 (T : Node_Kind;
6318 V1 : Node_Kind;
6319 V2 : Node_Kind;
6320 V3 : Node_Kind;
6321 V4 : Node_Kind) return Boolean
6322 is
6323 begin
6324 return T = V1 or else
6325 T = V2 or else
6326 T = V3 or else
6327 T = V4;
6328 end Nkind_In;
6329
6330 function Nkind_In
6331 (T : Node_Kind;
6332 V1 : Node_Kind;
6333 V2 : Node_Kind;
6334 V3 : Node_Kind;
6335 V4 : Node_Kind;
6336 V5 : Node_Kind) return Boolean
6337 is
6338 begin
6339 return T = V1 or else
6340 T = V2 or else
6341 T = V3 or else
6342 T = V4 or else
6343 T = V5;
6344 end Nkind_In;
6345
6346 function Nkind_In
6347 (T : Node_Kind;
6348 V1 : Node_Kind;
6349 V2 : Node_Kind;
6350 V3 : Node_Kind;
6351 V4 : Node_Kind;
6352 V5 : Node_Kind;
6353 V6 : Node_Kind) return Boolean
6354 is
6355 begin
6356 return T = V1 or else
6357 T = V2 or else
6358 T = V3 or else
6359 T = V4 or else
6360 T = V5 or else
6361 T = V6;
6362 end Nkind_In;
6363
6364 function Nkind_In
6365 (T : Node_Kind;
6366 V1 : Node_Kind;
6367 V2 : Node_Kind;
6368 V3 : Node_Kind;
6369 V4 : Node_Kind;
6370 V5 : Node_Kind;
6371 V6 : Node_Kind;
6372 V7 : Node_Kind) return Boolean
6373 is
6374 begin
6375 return T = V1 or else
6376 T = V2 or else
6377 T = V3 or else
6378 T = V4 or else
6379 T = V5 or else
6380 T = V6 or else
6381 T = V7;
6382 end Nkind_In;
6383
6384 function Nkind_In
6385 (T : Node_Kind;
6386 V1 : Node_Kind;
6387 V2 : Node_Kind;
6388 V3 : Node_Kind;
6389 V4 : Node_Kind;
6390 V5 : Node_Kind;
6391 V6 : Node_Kind;
6392 V7 : Node_Kind;
6393 V8 : Node_Kind) return Boolean
6394 is
6395 begin
6396 return T = V1 or else
6397 T = V2 or else
6398 T = V3 or else
6399 T = V4 or else
6400 T = V5 or else
6401 T = V6 or else
6402 T = V7 or else
6403 T = V8;
6404 end Nkind_In;
6405
6406 function Nkind_In
6407 (T : Node_Kind;
6408 V1 : Node_Kind;
6409 V2 : Node_Kind;
6410 V3 : Node_Kind;
6411 V4 : Node_Kind;
6412 V5 : Node_Kind;
6413 V6 : Node_Kind;
6414 V7 : Node_Kind;
6415 V8 : Node_Kind;
6416 V9 : Node_Kind) return Boolean
6417 is
6418 begin
6419 return T = V1 or else
6420 T = V2 or else
6421 T = V3 or else
6422 T = V4 or else
6423 T = V5 or else
6424 T = V6 or else
6425 T = V7 or else
6426 T = V8 or else
6427 T = V9;
6428 end Nkind_In;
6429
6430 -----------------
6431 -- Pragma_Name --
6432 -----------------
6433
6434 function Pragma_Name (N : Node_Id) return Name_Id is
6435 begin
6436 return Chars (Pragma_Identifier (N));
6437 end Pragma_Name;
6438
6439 end Sinfo;