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