[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 Incomplete_View
1717 (N : Node_Id) return Node_Id is
1718 begin
1719 pragma Assert (False
1720 or else NT (N).Nkind = N_Full_Type_Declaration);
1721 return Node2 (N);
1722 end Incomplete_View;
1723
1724 function Inherited_Discriminant
1725 (N : Node_Id) return Boolean is
1726 begin
1727 pragma Assert (False
1728 or else NT (N).Nkind = N_Component_Association);
1729 return Flag13 (N);
1730 end Inherited_Discriminant;
1731
1732 function Instance_Spec
1733 (N : Node_Id) return Node_Id is
1734 begin
1735 pragma Assert (False
1736 or else NT (N).Nkind = N_Formal_Package_Declaration
1737 or else NT (N).Nkind = N_Function_Instantiation
1738 or else NT (N).Nkind = N_Package_Instantiation
1739 or else NT (N).Nkind = N_Procedure_Instantiation);
1740 return Node5 (N);
1741 end Instance_Spec;
1742
1743 function Intval
1744 (N : Node_Id) return Uint is
1745 begin
1746 pragma Assert (False
1747 or else NT (N).Nkind = N_Integer_Literal);
1748 return Uint3 (N);
1749 end Intval;
1750
1751 function Is_Accessibility_Actual
1752 (N : Node_Id) return Boolean is
1753 begin
1754 pragma Assert (False
1755 or else NT (N).Nkind = N_Parameter_Association);
1756 return Flag13 (N);
1757 end Is_Accessibility_Actual;
1758
1759 function Is_Asynchronous_Call_Block
1760 (N : Node_Id) return Boolean is
1761 begin
1762 pragma Assert (False
1763 or else NT (N).Nkind = N_Block_Statement);
1764 return Flag7 (N);
1765 end Is_Asynchronous_Call_Block;
1766
1767 function Is_Boolean_Aspect
1768 (N : Node_Id) return Boolean is
1769 begin
1770 pragma Assert (False
1771 or else NT (N).Nkind = N_Aspect_Specification);
1772 return Flag16 (N);
1773 end Is_Boolean_Aspect;
1774
1775 function Is_Checked
1776 (N : Node_Id) return Boolean is
1777 begin
1778 pragma Assert (False
1779 or else NT (N).Nkind = N_Aspect_Specification
1780 or else NT (N).Nkind = N_Pragma);
1781 return Flag11 (N);
1782 end Is_Checked;
1783
1784 function Is_Component_Left_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 Flag13 (N);
1790 end Is_Component_Left_Opnd;
1791
1792 function Is_Component_Right_Opnd
1793 (N : Node_Id) return Boolean is
1794 begin
1795 pragma Assert (False
1796 or else NT (N).Nkind = N_Op_Concat);
1797 return Flag14 (N);
1798 end Is_Component_Right_Opnd;
1799
1800 function Is_Controlling_Actual
1801 (N : Node_Id) return Boolean is
1802 begin
1803 pragma Assert (False
1804 or else NT (N).Nkind in N_Subexpr);
1805 return Flag16 (N);
1806 end Is_Controlling_Actual;
1807
1808 function Is_Disabled
1809 (N : Node_Id) return Boolean is
1810 begin
1811 pragma Assert (False
1812 or else NT (N).Nkind = N_Aspect_Specification
1813 or else NT (N).Nkind = N_Pragma);
1814 return Flag15 (N);
1815 end Is_Disabled;
1816
1817 function Is_Delayed_Aspect
1818 (N : Node_Id) return Boolean is
1819 begin
1820 pragma Assert (False
1821 or else NT (N).Nkind = N_Aspect_Specification
1822 or else NT (N).Nkind = N_Attribute_Definition_Clause
1823 or else NT (N).Nkind = N_Pragma);
1824 return Flag14 (N);
1825 end Is_Delayed_Aspect;
1826
1827 function Is_Dynamic_Coextension
1828 (N : Node_Id) return Boolean is
1829 begin
1830 pragma Assert (False
1831 or else NT (N).Nkind = N_Allocator);
1832 return Flag18 (N);
1833 end Is_Dynamic_Coextension;
1834
1835 function Is_Elsif
1836 (N : Node_Id) return Boolean is
1837 begin
1838 pragma Assert (False
1839 or else NT (N).Nkind = N_If_Expression);
1840 return Flag13 (N);
1841 end Is_Elsif;
1842
1843 function Is_Entry_Barrier_Function
1844 (N : Node_Id) return Boolean is
1845 begin
1846 pragma Assert (False
1847 or else NT (N).Nkind = N_Subprogram_Body);
1848 return Flag8 (N);
1849 end Is_Entry_Barrier_Function;
1850
1851 function Is_Expanded_Build_In_Place_Call
1852 (N : Node_Id) return Boolean is
1853 begin
1854 pragma Assert (False
1855 or else NT (N).Nkind = N_Function_Call);
1856 return Flag11 (N);
1857 end Is_Expanded_Build_In_Place_Call;
1858
1859 function Is_Finalization_Wrapper
1860 (N : Node_Id) return Boolean is
1861 begin
1862 pragma Assert (False
1863 or else NT (N).Nkind = N_Block_Statement);
1864 return Flag9 (N);
1865 end Is_Finalization_Wrapper;
1866
1867 function Is_Folded_In_Parser
1868 (N : Node_Id) return Boolean is
1869 begin
1870 pragma Assert (False
1871 or else NT (N).Nkind = N_String_Literal);
1872 return Flag4 (N);
1873 end Is_Folded_In_Parser;
1874
1875 function Is_Ignored
1876 (N : Node_Id) return Boolean is
1877 begin
1878 pragma Assert (False
1879 or else NT (N).Nkind = N_Aspect_Specification
1880 or else NT (N).Nkind = N_Pragma);
1881 return Flag9 (N);
1882 end Is_Ignored;
1883
1884 function Is_In_Discriminant_Check
1885 (N : Node_Id) return Boolean is
1886 begin
1887 pragma Assert (False
1888 or else NT (N).Nkind = N_Selected_Component);
1889 return Flag11 (N);
1890 end Is_In_Discriminant_Check;
1891
1892 function Is_Machine_Number
1893 (N : Node_Id) return Boolean is
1894 begin
1895 pragma Assert (False
1896 or else NT (N).Nkind = N_Real_Literal);
1897 return Flag11 (N);
1898 end Is_Machine_Number;
1899
1900 function Is_Null_Loop
1901 (N : Node_Id) return Boolean is
1902 begin
1903 pragma Assert (False
1904 or else NT (N).Nkind = N_Loop_Statement);
1905 return Flag16 (N);
1906 end Is_Null_Loop;
1907
1908 function Is_Overloaded
1909 (N : Node_Id) return Boolean is
1910 begin
1911 pragma Assert (False
1912 or else NT (N).Nkind in N_Subexpr);
1913 return Flag5 (N);
1914 end Is_Overloaded;
1915
1916 function Is_Power_Of_2_For_Shift
1917 (N : Node_Id) return Boolean is
1918 begin
1919 pragma Assert (False
1920 or else NT (N).Nkind = N_Op_Expon);
1921 return Flag13 (N);
1922 end Is_Power_Of_2_For_Shift;
1923
1924 function Is_Prefixed_Call
1925 (N : Node_Id) return Boolean is
1926 begin
1927 pragma Assert (False
1928 or else NT (N).Nkind = N_Selected_Component);
1929 return Flag17 (N);
1930 end Is_Prefixed_Call;
1931
1932 function Is_Protected_Subprogram_Body
1933 (N : Node_Id) return Boolean is
1934 begin
1935 pragma Assert (False
1936 or else NT (N).Nkind = N_Subprogram_Body);
1937 return Flag7 (N);
1938 end Is_Protected_Subprogram_Body;
1939
1940 function Is_Static_Coextension
1941 (N : Node_Id) return Boolean is
1942 begin
1943 pragma Assert (False
1944 or else NT (N).Nkind = N_Allocator);
1945 return Flag14 (N);
1946 end Is_Static_Coextension;
1947
1948 function Is_Static_Expression
1949 (N : Node_Id) return Boolean is
1950 begin
1951 pragma Assert (False
1952 or else NT (N).Nkind in N_Subexpr);
1953 return Flag6 (N);
1954 end Is_Static_Expression;
1955
1956 function Is_Subprogram_Descriptor
1957 (N : Node_Id) return Boolean is
1958 begin
1959 pragma Assert (False
1960 or else NT (N).Nkind = N_Object_Declaration);
1961 return Flag16 (N);
1962 end Is_Subprogram_Descriptor;
1963
1964 function Is_Task_Allocation_Block
1965 (N : Node_Id) return Boolean is
1966 begin
1967 pragma Assert (False
1968 or else NT (N).Nkind = N_Block_Statement);
1969 return Flag6 (N);
1970 end Is_Task_Allocation_Block;
1971
1972 function Is_Task_Master
1973 (N : Node_Id) return Boolean is
1974 begin
1975 pragma Assert (False
1976 or else NT (N).Nkind = N_Block_Statement
1977 or else NT (N).Nkind = N_Subprogram_Body
1978 or else NT (N).Nkind = N_Task_Body);
1979 return Flag5 (N);
1980 end Is_Task_Master;
1981
1982 function Iteration_Scheme
1983 (N : Node_Id) return Node_Id is
1984 begin
1985 pragma Assert (False
1986 or else NT (N).Nkind = N_Loop_Statement);
1987 return Node2 (N);
1988 end Iteration_Scheme;
1989
1990 function Iterator_Specification
1991 (N : Node_Id) return Node_Id is
1992 begin
1993 pragma Assert (False
1994 or else NT (N).Nkind = N_Iteration_Scheme
1995 or else NT (N).Nkind = N_Quantified_Expression);
1996 return Node2 (N);
1997 end Iterator_Specification;
1998
1999 function Itype
2000 (N : Node_Id) return Node_Id is
2001 begin
2002 pragma Assert (False
2003 or else NT (N).Nkind = N_Itype_Reference);
2004 return Node1 (N);
2005 end Itype;
2006
2007 function Kill_Range_Check
2008 (N : Node_Id) return Boolean is
2009 begin
2010 pragma Assert (False
2011 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2012 return Flag11 (N);
2013 end Kill_Range_Check;
2014
2015 function Label_Construct
2016 (N : Node_Id) return Node_Id is
2017 begin
2018 pragma Assert (False
2019 or else NT (N).Nkind = N_Implicit_Label_Declaration);
2020 return Node2 (N);
2021 end Label_Construct;
2022
2023 function Last_Bit
2024 (N : Node_Id) return Node_Id is
2025 begin
2026 pragma Assert (False
2027 or else NT (N).Nkind = N_Component_Clause);
2028 return Node4 (N);
2029 end Last_Bit;
2030
2031 function Last_Name
2032 (N : Node_Id) return Boolean is
2033 begin
2034 pragma Assert (False
2035 or else NT (N).Nkind = N_With_Clause);
2036 return Flag6 (N);
2037 end Last_Name;
2038
2039 function Left_Opnd
2040 (N : Node_Id) return Node_Id is
2041 begin
2042 pragma Assert (False
2043 or else NT (N).Nkind = N_And_Then
2044 or else NT (N).Nkind = N_In
2045 or else NT (N).Nkind = N_Not_In
2046 or else NT (N).Nkind = N_Or_Else
2047 or else NT (N).Nkind in N_Binary_Op);
2048 return Node2 (N);
2049 end Left_Opnd;
2050
2051 function Library_Unit
2052 (N : Node_Id) return Node_Id is
2053 begin
2054 pragma Assert (False
2055 or else NT (N).Nkind = N_Compilation_Unit
2056 or else NT (N).Nkind = N_Package_Body_Stub
2057 or else NT (N).Nkind = N_Protected_Body_Stub
2058 or else NT (N).Nkind = N_Subprogram_Body_Stub
2059 or else NT (N).Nkind = N_Task_Body_Stub
2060 or else NT (N).Nkind = N_With_Clause);
2061 return Node4 (N);
2062 end Library_Unit;
2063
2064 function Limited_View_Installed
2065 (N : Node_Id) return Boolean is
2066 begin
2067 pragma Assert (False
2068 or else NT (N).Nkind = N_Package_Specification
2069 or else NT (N).Nkind = N_With_Clause);
2070 return Flag18 (N);
2071 end Limited_View_Installed;
2072
2073 function Limited_Present
2074 (N : Node_Id) return Boolean is
2075 begin
2076 pragma Assert (False
2077 or else NT (N).Nkind = N_Derived_Type_Definition
2078 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2079 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2080 or else NT (N).Nkind = N_Private_Extension_Declaration
2081 or else NT (N).Nkind = N_Private_Type_Declaration
2082 or else NT (N).Nkind = N_Record_Definition
2083 or else NT (N).Nkind = N_With_Clause);
2084 return Flag17 (N);
2085 end Limited_Present;
2086
2087 function Literals
2088 (N : Node_Id) return List_Id is
2089 begin
2090 pragma Assert (False
2091 or else NT (N).Nkind = N_Enumeration_Type_Definition);
2092 return List1 (N);
2093 end Literals;
2094
2095 function Local_Raise_Not_OK
2096 (N : Node_Id) return Boolean is
2097 begin
2098 pragma Assert (False
2099 or else NT (N).Nkind = N_Exception_Handler);
2100 return Flag7 (N);
2101 end Local_Raise_Not_OK;
2102
2103 function Local_Raise_Statements
2104 (N : Node_Id) return Elist_Id is
2105 begin
2106 pragma Assert (False
2107 or else NT (N).Nkind = N_Exception_Handler);
2108 return Elist1 (N);
2109 end Local_Raise_Statements;
2110
2111 function Loop_Actions
2112 (N : Node_Id) return List_Id is
2113 begin
2114 pragma Assert (False
2115 or else NT (N).Nkind = N_Component_Association);
2116 return List2 (N);
2117 end Loop_Actions;
2118
2119 function Loop_Parameter_Specification
2120 (N : Node_Id) return Node_Id is
2121 begin
2122 pragma Assert (False
2123 or else NT (N).Nkind = N_Iteration_Scheme
2124 or else NT (N).Nkind = N_Quantified_Expression);
2125 return Node4 (N);
2126 end Loop_Parameter_Specification;
2127
2128 function Low_Bound
2129 (N : Node_Id) return Node_Id is
2130 begin
2131 pragma Assert (False
2132 or else NT (N).Nkind = N_Range
2133 or else NT (N).Nkind = N_Real_Range_Specification
2134 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
2135 return Node1 (N);
2136 end Low_Bound;
2137
2138 function Mod_Clause
2139 (N : Node_Id) return Node_Id is
2140 begin
2141 pragma Assert (False
2142 or else NT (N).Nkind = N_Record_Representation_Clause);
2143 return Node2 (N);
2144 end Mod_Clause;
2145
2146 function More_Ids
2147 (N : Node_Id) return Boolean is
2148 begin
2149 pragma Assert (False
2150 or else NT (N).Nkind = N_Component_Declaration
2151 or else NT (N).Nkind = N_Discriminant_Specification
2152 or else NT (N).Nkind = N_Exception_Declaration
2153 or else NT (N).Nkind = N_Formal_Object_Declaration
2154 or else NT (N).Nkind = N_Number_Declaration
2155 or else NT (N).Nkind = N_Object_Declaration
2156 or else NT (N).Nkind = N_Parameter_Specification);
2157 return Flag5 (N);
2158 end More_Ids;
2159
2160 function Must_Be_Byte_Aligned
2161 (N : Node_Id) return Boolean is
2162 begin
2163 pragma Assert (False
2164 or else NT (N).Nkind = N_Attribute_Reference);
2165 return Flag14 (N);
2166 end Must_Be_Byte_Aligned;
2167
2168 function Must_Not_Freeze
2169 (N : Node_Id) return Boolean is
2170 begin
2171 pragma Assert (False
2172 or else NT (N).Nkind = N_Subtype_Indication
2173 or else NT (N).Nkind in N_Subexpr);
2174 return Flag8 (N);
2175 end Must_Not_Freeze;
2176
2177 function Must_Not_Override
2178 (N : Node_Id) return Boolean is
2179 begin
2180 pragma Assert (False
2181 or else NT (N).Nkind = N_Entry_Declaration
2182 or else NT (N).Nkind = N_Function_Instantiation
2183 or else NT (N).Nkind = N_Function_Specification
2184 or else NT (N).Nkind = N_Procedure_Instantiation
2185 or else NT (N).Nkind = N_Procedure_Specification);
2186 return Flag15 (N);
2187 end Must_Not_Override;
2188
2189 function Must_Override
2190 (N : Node_Id) return Boolean is
2191 begin
2192 pragma Assert (False
2193 or else NT (N).Nkind = N_Entry_Declaration
2194 or else NT (N).Nkind = N_Function_Instantiation
2195 or else NT (N).Nkind = N_Function_Specification
2196 or else NT (N).Nkind = N_Procedure_Instantiation
2197 or else NT (N).Nkind = N_Procedure_Specification);
2198 return Flag14 (N);
2199 end Must_Override;
2200
2201 function Name
2202 (N : Node_Id) return Node_Id is
2203 begin
2204 pragma Assert (False
2205 or else NT (N).Nkind = N_Assignment_Statement
2206 or else NT (N).Nkind = N_Attribute_Definition_Clause
2207 or else NT (N).Nkind = N_Defining_Program_Unit_Name
2208 or else NT (N).Nkind = N_Designator
2209 or else NT (N).Nkind = N_Entry_Call_Statement
2210 or else NT (N).Nkind = N_Exception_Renaming_Declaration
2211 or else NT (N).Nkind = N_Exit_Statement
2212 or else NT (N).Nkind = N_Formal_Package_Declaration
2213 or else NT (N).Nkind = N_Function_Call
2214 or else NT (N).Nkind = N_Function_Instantiation
2215 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2216 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2217 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2218 or else NT (N).Nkind = N_Goto_Statement
2219 or else NT (N).Nkind = N_Iterator_Specification
2220 or else NT (N).Nkind = N_Object_Renaming_Declaration
2221 or else NT (N).Nkind = N_Package_Instantiation
2222 or else NT (N).Nkind = N_Package_Renaming_Declaration
2223 or else NT (N).Nkind = N_Procedure_Call_Statement
2224 or else NT (N).Nkind = N_Procedure_Instantiation
2225 or else NT (N).Nkind = N_Raise_Expression
2226 or else NT (N).Nkind = N_Raise_Statement
2227 or else NT (N).Nkind = N_Requeue_Statement
2228 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
2229 or else NT (N).Nkind = N_Subunit
2230 or else NT (N).Nkind = N_Variant_Part
2231 or else NT (N).Nkind = N_With_Clause);
2232 return Node2 (N);
2233 end Name;
2234
2235 function Names
2236 (N : Node_Id) return List_Id is
2237 begin
2238 pragma Assert (False
2239 or else NT (N).Nkind = N_Abort_Statement
2240 or else NT (N).Nkind = N_Use_Package_Clause);
2241 return List2 (N);
2242 end Names;
2243
2244 function Next_Entity
2245 (N : Node_Id) return Node_Id is
2246 begin
2247 pragma Assert (False
2248 or else NT (N).Nkind = N_Defining_Character_Literal
2249 or else NT (N).Nkind = N_Defining_Identifier
2250 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2251 return Node2 (N);
2252 end Next_Entity;
2253
2254 function Next_Exit_Statement
2255 (N : Node_Id) return Node_Id is
2256 begin
2257 pragma Assert (False
2258 or else NT (N).Nkind = N_Exit_Statement);
2259 return Node3 (N);
2260 end Next_Exit_Statement;
2261
2262 function Next_Implicit_With
2263 (N : Node_Id) return Node_Id is
2264 begin
2265 pragma Assert (False
2266 or else NT (N).Nkind = N_With_Clause);
2267 return Node3 (N);
2268 end Next_Implicit_With;
2269
2270 function Next_Named_Actual
2271 (N : Node_Id) return Node_Id is
2272 begin
2273 pragma Assert (False
2274 or else NT (N).Nkind = N_Parameter_Association);
2275 return Node4 (N);
2276 end Next_Named_Actual;
2277
2278 function Next_Pragma
2279 (N : Node_Id) return Node_Id is
2280 begin
2281 pragma Assert (False
2282 or else NT (N).Nkind = N_Pragma);
2283 return Node1 (N);
2284 end Next_Pragma;
2285
2286 function Next_Rep_Item
2287 (N : Node_Id) return Node_Id is
2288 begin
2289 pragma Assert (False
2290 or else NT (N).Nkind = N_Aspect_Specification
2291 or else NT (N).Nkind = N_Attribute_Definition_Clause
2292 or else NT (N).Nkind = N_Enumeration_Representation_Clause
2293 or else NT (N).Nkind = N_Pragma
2294 or else NT (N).Nkind = N_Record_Representation_Clause);
2295 return Node5 (N);
2296 end Next_Rep_Item;
2297
2298 function Next_Use_Clause
2299 (N : Node_Id) return Node_Id is
2300 begin
2301 pragma Assert (False
2302 or else NT (N).Nkind = N_Use_Package_Clause
2303 or else NT (N).Nkind = N_Use_Type_Clause);
2304 return Node3 (N);
2305 end Next_Use_Clause;
2306
2307 function No_Ctrl_Actions
2308 (N : Node_Id) return Boolean is
2309 begin
2310 pragma Assert (False
2311 or else NT (N).Nkind = N_Assignment_Statement);
2312 return Flag7 (N);
2313 end No_Ctrl_Actions;
2314
2315 function No_Elaboration_Check
2316 (N : Node_Id) return Boolean is
2317 begin
2318 pragma Assert (False
2319 or else NT (N).Nkind = N_Function_Call
2320 or else NT (N).Nkind = N_Procedure_Call_Statement);
2321 return Flag14 (N);
2322 end No_Elaboration_Check;
2323
2324 function No_Entities_Ref_In_Spec
2325 (N : Node_Id) return Boolean is
2326 begin
2327 pragma Assert (False
2328 or else NT (N).Nkind = N_With_Clause);
2329 return Flag8 (N);
2330 end No_Entities_Ref_In_Spec;
2331
2332 function No_Initialization
2333 (N : Node_Id) return Boolean is
2334 begin
2335 pragma Assert (False
2336 or else NT (N).Nkind = N_Allocator
2337 or else NT (N).Nkind = N_Object_Declaration);
2338 return Flag13 (N);
2339 end No_Initialization;
2340
2341 function No_Minimize_Eliminate
2342 (N : Node_Id) return Boolean is
2343 begin
2344 pragma Assert (False
2345 or else NT (N).Nkind = N_In
2346 or else NT (N).Nkind = N_Not_In);
2347 return Flag17 (N);
2348 end No_Minimize_Eliminate;
2349
2350 function No_Truncation
2351 (N : Node_Id) return Boolean is
2352 begin
2353 pragma Assert (False
2354 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2355 return Flag17 (N);
2356 end No_Truncation;
2357
2358 function Non_Aliased_Prefix
2359 (N : Node_Id) return Boolean is
2360 begin
2361 pragma Assert (False
2362 or else NT (N).Nkind = N_Attribute_Reference);
2363 return Flag18 (N);
2364 end Non_Aliased_Prefix;
2365
2366 function Null_Present
2367 (N : Node_Id) return Boolean is
2368 begin
2369 pragma Assert (False
2370 or else NT (N).Nkind = N_Component_List
2371 or else NT (N).Nkind = N_Procedure_Specification
2372 or else NT (N).Nkind = N_Record_Definition);
2373 return Flag13 (N);
2374 end Null_Present;
2375
2376 function Null_Exclusion_Present
2377 (N : Node_Id) return Boolean is
2378 begin
2379 pragma Assert (False
2380 or else NT (N).Nkind = N_Access_Definition
2381 or else NT (N).Nkind = N_Access_Function_Definition
2382 or else NT (N).Nkind = N_Access_Procedure_Definition
2383 or else NT (N).Nkind = N_Access_To_Object_Definition
2384 or else NT (N).Nkind = N_Allocator
2385 or else NT (N).Nkind = N_Component_Definition
2386 or else NT (N).Nkind = N_Derived_Type_Definition
2387 or else NT (N).Nkind = N_Discriminant_Specification
2388 or else NT (N).Nkind = N_Formal_Object_Declaration
2389 or else NT (N).Nkind = N_Function_Specification
2390 or else NT (N).Nkind = N_Object_Declaration
2391 or else NT (N).Nkind = N_Object_Renaming_Declaration
2392 or else NT (N).Nkind = N_Parameter_Specification
2393 or else NT (N).Nkind = N_Subtype_Declaration);
2394 return Flag11 (N);
2395 end Null_Exclusion_Present;
2396
2397 function Null_Exclusion_In_Return_Present
2398 (N : Node_Id) return Boolean is
2399 begin
2400 pragma Assert (False
2401 or else NT (N).Nkind = N_Access_Function_Definition);
2402 return Flag14 (N);
2403 end Null_Exclusion_In_Return_Present;
2404
2405 function Null_Record_Present
2406 (N : Node_Id) return Boolean is
2407 begin
2408 pragma Assert (False
2409 or else NT (N).Nkind = N_Aggregate
2410 or else NT (N).Nkind = N_Extension_Aggregate);
2411 return Flag17 (N);
2412 end Null_Record_Present;
2413
2414 function Object_Definition
2415 (N : Node_Id) return Node_Id is
2416 begin
2417 pragma Assert (False
2418 or else NT (N).Nkind = N_Object_Declaration);
2419 return Node4 (N);
2420 end Object_Definition;
2421
2422 function Of_Present
2423 (N : Node_Id) return Boolean is
2424 begin
2425 pragma Assert (False
2426 or else NT (N).Nkind = N_Iterator_Specification);
2427 return Flag16 (N);
2428 end Of_Present;
2429
2430 function Original_Discriminant
2431 (N : Node_Id) return Node_Id is
2432 begin
2433 pragma Assert (False
2434 or else NT (N).Nkind = N_Identifier);
2435 return Node2 (N);
2436 end Original_Discriminant;
2437
2438 function Original_Entity
2439 (N : Node_Id) return Entity_Id is
2440 begin
2441 pragma Assert (False
2442 or else NT (N).Nkind = N_Integer_Literal
2443 or else NT (N).Nkind = N_Real_Literal);
2444 return Node2 (N);
2445 end Original_Entity;
2446
2447 function Others_Discrete_Choices
2448 (N : Node_Id) return List_Id is
2449 begin
2450 pragma Assert (False
2451 or else NT (N).Nkind = N_Others_Choice);
2452 return List1 (N);
2453 end Others_Discrete_Choices;
2454
2455 function Out_Present
2456 (N : Node_Id) return Boolean is
2457 begin
2458 pragma Assert (False
2459 or else NT (N).Nkind = N_Formal_Object_Declaration
2460 or else NT (N).Nkind = N_Parameter_Specification);
2461 return Flag17 (N);
2462 end Out_Present;
2463
2464 function Parameter_Associations
2465 (N : Node_Id) return List_Id is
2466 begin
2467 pragma Assert (False
2468 or else NT (N).Nkind = N_Entry_Call_Statement
2469 or else NT (N).Nkind = N_Function_Call
2470 or else NT (N).Nkind = N_Procedure_Call_Statement);
2471 return List3 (N);
2472 end Parameter_Associations;
2473
2474 function Parameter_List_Truncated
2475 (N : Node_Id) return Boolean is
2476 begin
2477 pragma Assert (False
2478 or else NT (N).Nkind = N_Function_Call
2479 or else NT (N).Nkind = N_Procedure_Call_Statement);
2480 return Flag17 (N);
2481 end Parameter_List_Truncated;
2482
2483 function Parameter_Specifications
2484 (N : Node_Id) return List_Id is
2485 begin
2486 pragma Assert (False
2487 or else NT (N).Nkind = N_Accept_Statement
2488 or else NT (N).Nkind = N_Access_Function_Definition
2489 or else NT (N).Nkind = N_Access_Procedure_Definition
2490 or else NT (N).Nkind = N_Entry_Body_Formal_Part
2491 or else NT (N).Nkind = N_Entry_Declaration
2492 or else NT (N).Nkind = N_Function_Specification
2493 or else NT (N).Nkind = N_Procedure_Specification);
2494 return List3 (N);
2495 end Parameter_Specifications;
2496
2497 function Parameter_Type
2498 (N : Node_Id) return Node_Id is
2499 begin
2500 pragma Assert (False
2501 or else NT (N).Nkind = N_Parameter_Specification);
2502 return Node2 (N);
2503 end Parameter_Type;
2504
2505 function Parent_Spec
2506 (N : Node_Id) return Node_Id is
2507 begin
2508 pragma Assert (False
2509 or else NT (N).Nkind = N_Function_Instantiation
2510 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2511 or else NT (N).Nkind = N_Generic_Package_Declaration
2512 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2513 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2514 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2515 or else NT (N).Nkind = N_Package_Declaration
2516 or else NT (N).Nkind = N_Package_Instantiation
2517 or else NT (N).Nkind = N_Package_Renaming_Declaration
2518 or else NT (N).Nkind = N_Procedure_Instantiation
2519 or else NT (N).Nkind = N_Subprogram_Declaration
2520 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2521 return Node4 (N);
2522 end Parent_Spec;
2523
2524 function Position
2525 (N : Node_Id) return Node_Id is
2526 begin
2527 pragma Assert (False
2528 or else NT (N).Nkind = N_Component_Clause);
2529 return Node2 (N);
2530 end Position;
2531
2532 function Pragma_Argument_Associations
2533 (N : Node_Id) return List_Id is
2534 begin
2535 pragma Assert (False
2536 or else NT (N).Nkind = N_Pragma);
2537 return List2 (N);
2538 end Pragma_Argument_Associations;
2539
2540 function Pragma_Identifier
2541 (N : Node_Id) return Node_Id is
2542 begin
2543 pragma Assert (False
2544 or else NT (N).Nkind = N_Pragma);
2545 return Node4 (N);
2546 end Pragma_Identifier;
2547
2548 function Pragmas_After
2549 (N : Node_Id) return List_Id is
2550 begin
2551 pragma Assert (False
2552 or else NT (N).Nkind = N_Compilation_Unit_Aux
2553 or else NT (N).Nkind = N_Terminate_Alternative);
2554 return List5 (N);
2555 end Pragmas_After;
2556
2557 function Pragmas_Before
2558 (N : Node_Id) return List_Id is
2559 begin
2560 pragma Assert (False
2561 or else NT (N).Nkind = N_Accept_Alternative
2562 or else NT (N).Nkind = N_Delay_Alternative
2563 or else NT (N).Nkind = N_Entry_Call_Alternative
2564 or else NT (N).Nkind = N_Mod_Clause
2565 or else NT (N).Nkind = N_Terminate_Alternative
2566 or else NT (N).Nkind = N_Triggering_Alternative);
2567 return List4 (N);
2568 end Pragmas_Before;
2569
2570 function Pre_Post_Conditions
2571 (N : Node_Id) return Node_Id is
2572 begin
2573 pragma Assert (False
2574 or else NT (N).Nkind = N_Contract);
2575 return Node1 (N);
2576 end Pre_Post_Conditions;
2577
2578 function Prefix
2579 (N : Node_Id) return Node_Id is
2580 begin
2581 pragma Assert (False
2582 or else NT (N).Nkind = N_Attribute_Reference
2583 or else NT (N).Nkind = N_Expanded_Name
2584 or else NT (N).Nkind = N_Explicit_Dereference
2585 or else NT (N).Nkind = N_Indexed_Component
2586 or else NT (N).Nkind = N_Reference
2587 or else NT (N).Nkind = N_Selected_Component
2588 or else NT (N).Nkind = N_Slice);
2589 return Node3 (N);
2590 end Prefix;
2591
2592 function Premature_Use
2593 (N : Node_Id) return Node_Id is
2594 begin
2595 pragma Assert (False
2596 or else NT (N).Nkind = N_Incomplete_Type_Declaration);
2597 return Node5 (N);
2598 end Premature_Use;
2599
2600 function Present_Expr
2601 (N : Node_Id) return Uint is
2602 begin
2603 pragma Assert (False
2604 or else NT (N).Nkind = N_Variant);
2605 return Uint3 (N);
2606 end Present_Expr;
2607
2608 function Prev_Ids
2609 (N : Node_Id) return Boolean is
2610 begin
2611 pragma Assert (False
2612 or else NT (N).Nkind = N_Component_Declaration
2613 or else NT (N).Nkind = N_Discriminant_Specification
2614 or else NT (N).Nkind = N_Exception_Declaration
2615 or else NT (N).Nkind = N_Formal_Object_Declaration
2616 or else NT (N).Nkind = N_Number_Declaration
2617 or else NT (N).Nkind = N_Object_Declaration
2618 or else NT (N).Nkind = N_Parameter_Specification);
2619 return Flag6 (N);
2620 end Prev_Ids;
2621
2622 function Print_In_Hex
2623 (N : Node_Id) return Boolean is
2624 begin
2625 pragma Assert (False
2626 or else NT (N).Nkind = N_Integer_Literal);
2627 return Flag13 (N);
2628 end Print_In_Hex;
2629
2630 function Private_Declarations
2631 (N : Node_Id) return List_Id is
2632 begin
2633 pragma Assert (False
2634 or else NT (N).Nkind = N_Package_Specification
2635 or else NT (N).Nkind = N_Protected_Definition
2636 or else NT (N).Nkind = N_Task_Definition);
2637 return List3 (N);
2638 end Private_Declarations;
2639
2640 function Private_Present
2641 (N : Node_Id) return Boolean is
2642 begin
2643 pragma Assert (False
2644 or else NT (N).Nkind = N_Compilation_Unit
2645 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2646 or else NT (N).Nkind = N_With_Clause);
2647 return Flag15 (N);
2648 end Private_Present;
2649
2650 function Procedure_To_Call
2651 (N : Node_Id) return Node_Id is
2652 begin
2653 pragma Assert (False
2654 or else NT (N).Nkind = N_Allocator
2655 or else NT (N).Nkind = N_Extended_Return_Statement
2656 or else NT (N).Nkind = N_Free_Statement
2657 or else NT (N).Nkind = N_Simple_Return_Statement);
2658 return Node2 (N);
2659 end Procedure_To_Call;
2660
2661 function Proper_Body
2662 (N : Node_Id) return Node_Id is
2663 begin
2664 pragma Assert (False
2665 or else NT (N).Nkind = N_Subunit);
2666 return Node1 (N);
2667 end Proper_Body;
2668
2669 function Protected_Definition
2670 (N : Node_Id) return Node_Id is
2671 begin
2672 pragma Assert (False
2673 or else NT (N).Nkind = N_Protected_Type_Declaration
2674 or else NT (N).Nkind = N_Single_Protected_Declaration);
2675 return Node3 (N);
2676 end Protected_Definition;
2677
2678 function Protected_Present
2679 (N : Node_Id) return Boolean is
2680 begin
2681 pragma Assert (False
2682 or else NT (N).Nkind = N_Access_Function_Definition
2683 or else NT (N).Nkind = N_Access_Procedure_Definition
2684 or else NT (N).Nkind = N_Derived_Type_Definition
2685 or else NT (N).Nkind = N_Record_Definition);
2686 return Flag6 (N);
2687 end Protected_Present;
2688
2689 function Raises_Constraint_Error
2690 (N : Node_Id) return Boolean is
2691 begin
2692 pragma Assert (False
2693 or else NT (N).Nkind in N_Subexpr);
2694 return Flag7 (N);
2695 end Raises_Constraint_Error;
2696
2697 function Range_Constraint
2698 (N : Node_Id) return Node_Id is
2699 begin
2700 pragma Assert (False
2701 or else NT (N).Nkind = N_Delta_Constraint
2702 or else NT (N).Nkind = N_Digits_Constraint);
2703 return Node4 (N);
2704 end Range_Constraint;
2705
2706 function Range_Expression
2707 (N : Node_Id) return Node_Id is
2708 begin
2709 pragma Assert (False
2710 or else NT (N).Nkind = N_Range_Constraint);
2711 return Node4 (N);
2712 end Range_Expression;
2713
2714 function Real_Range_Specification
2715 (N : Node_Id) return Node_Id is
2716 begin
2717 pragma Assert (False
2718 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
2719 or else NT (N).Nkind = N_Floating_Point_Definition
2720 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
2721 return Node4 (N);
2722 end Real_Range_Specification;
2723
2724 function Realval
2725 (N : Node_Id) return Ureal is
2726 begin
2727 pragma Assert (False
2728 or else NT (N).Nkind = N_Real_Literal);
2729 return Ureal3 (N);
2730 end Realval;
2731
2732 function Reason
2733 (N : Node_Id) return Uint is
2734 begin
2735 pragma Assert (False
2736 or else NT (N).Nkind = N_Raise_Constraint_Error
2737 or else NT (N).Nkind = N_Raise_Program_Error
2738 or else NT (N).Nkind = N_Raise_Storage_Error);
2739 return Uint3 (N);
2740 end Reason;
2741
2742 function Record_Extension_Part
2743 (N : Node_Id) return Node_Id is
2744 begin
2745 pragma Assert (False
2746 or else NT (N).Nkind = N_Derived_Type_Definition);
2747 return Node3 (N);
2748 end Record_Extension_Part;
2749
2750 function Redundant_Use
2751 (N : Node_Id) return Boolean is
2752 begin
2753 pragma Assert (False
2754 or else NT (N).Nkind = N_Attribute_Reference
2755 or else NT (N).Nkind = N_Expanded_Name
2756 or else NT (N).Nkind = N_Identifier);
2757 return Flag13 (N);
2758 end Redundant_Use;
2759
2760 function Renaming_Exception
2761 (N : Node_Id) return Node_Id is
2762 begin
2763 pragma Assert (False
2764 or else NT (N).Nkind = N_Exception_Declaration);
2765 return Node2 (N);
2766 end Renaming_Exception;
2767
2768 function Result_Definition
2769 (N : Node_Id) return Node_Id is
2770 begin
2771 pragma Assert (False
2772 or else NT (N).Nkind = N_Access_Function_Definition
2773 or else NT (N).Nkind = N_Function_Specification);
2774 return Node4 (N);
2775 end Result_Definition;
2776
2777 function Return_Object_Declarations
2778 (N : Node_Id) return List_Id is
2779 begin
2780 pragma Assert (False
2781 or else NT (N).Nkind = N_Extended_Return_Statement);
2782 return List3 (N);
2783 end Return_Object_Declarations;
2784
2785 function Return_Statement_Entity
2786 (N : Node_Id) return Node_Id is
2787 begin
2788 pragma Assert (False
2789 or else NT (N).Nkind = N_Extended_Return_Statement
2790 or else NT (N).Nkind = N_Simple_Return_Statement);
2791 return Node5 (N);
2792 end Return_Statement_Entity;
2793
2794 function Reverse_Present
2795 (N : Node_Id) return Boolean is
2796 begin
2797 pragma Assert (False
2798 or else NT (N).Nkind = N_Iterator_Specification
2799 or else NT (N).Nkind = N_Loop_Parameter_Specification);
2800 return Flag15 (N);
2801 end Reverse_Present;
2802
2803 function Right_Opnd
2804 (N : Node_Id) return Node_Id is
2805 begin
2806 pragma Assert (False
2807 or else NT (N).Nkind in N_Op
2808 or else NT (N).Nkind = N_And_Then
2809 or else NT (N).Nkind = N_In
2810 or else NT (N).Nkind = N_Not_In
2811 or else NT (N).Nkind = N_Or_Else);
2812 return Node3 (N);
2813 end Right_Opnd;
2814
2815 function Rounded_Result
2816 (N : Node_Id) return Boolean is
2817 begin
2818 pragma Assert (False
2819 or else NT (N).Nkind = N_Op_Divide
2820 or else NT (N).Nkind = N_Op_Multiply
2821 or else NT (N).Nkind = N_Type_Conversion);
2822 return Flag18 (N);
2823 end Rounded_Result;
2824
2825 function SCIL_Controlling_Tag
2826 (N : Node_Id) return Node_Id is
2827 begin
2828 pragma Assert (False
2829 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
2830 return Node5 (N);
2831 end SCIL_Controlling_Tag;
2832
2833 function SCIL_Entity
2834 (N : Node_Id) return Node_Id is
2835 begin
2836 pragma Assert (False
2837 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
2838 or else NT (N).Nkind = N_SCIL_Dispatching_Call
2839 or else NT (N).Nkind = N_SCIL_Membership_Test);
2840 return Node4 (N);
2841 end SCIL_Entity;
2842
2843 function SCIL_Tag_Value
2844 (N : Node_Id) return Node_Id is
2845 begin
2846 pragma Assert (False
2847 or else NT (N).Nkind = N_SCIL_Membership_Test);
2848 return Node5 (N);
2849 end SCIL_Tag_Value;
2850
2851 function SCIL_Target_Prim
2852 (N : Node_Id) return Node_Id is
2853 begin
2854 pragma Assert (False
2855 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
2856 return Node2 (N);
2857 end SCIL_Target_Prim;
2858
2859 function Scope
2860 (N : Node_Id) return Node_Id is
2861 begin
2862 pragma Assert (False
2863 or else NT (N).Nkind = N_Defining_Character_Literal
2864 or else NT (N).Nkind = N_Defining_Identifier
2865 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2866 return Node3 (N);
2867 end Scope;
2868
2869 function Select_Alternatives
2870 (N : Node_Id) return List_Id is
2871 begin
2872 pragma Assert (False
2873 or else NT (N).Nkind = N_Selective_Accept);
2874 return List1 (N);
2875 end Select_Alternatives;
2876
2877 function Selector_Name
2878 (N : Node_Id) return Node_Id is
2879 begin
2880 pragma Assert (False
2881 or else NT (N).Nkind = N_Expanded_Name
2882 or else NT (N).Nkind = N_Generic_Association
2883 or else NT (N).Nkind = N_Parameter_Association
2884 or else NT (N).Nkind = N_Selected_Component);
2885 return Node2 (N);
2886 end Selector_Name;
2887
2888 function Selector_Names
2889 (N : Node_Id) return List_Id is
2890 begin
2891 pragma Assert (False
2892 or else NT (N).Nkind = N_Discriminant_Association);
2893 return List1 (N);
2894 end Selector_Names;
2895
2896 function Shift_Count_OK
2897 (N : Node_Id) return Boolean is
2898 begin
2899 pragma Assert (False
2900 or else NT (N).Nkind = N_Op_Rotate_Left
2901 or else NT (N).Nkind = N_Op_Rotate_Right
2902 or else NT (N).Nkind = N_Op_Shift_Left
2903 or else NT (N).Nkind = N_Op_Shift_Right
2904 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
2905 return Flag4 (N);
2906 end Shift_Count_OK;
2907
2908 function Source_Type
2909 (N : Node_Id) return Entity_Id is
2910 begin
2911 pragma Assert (False
2912 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2913 return Node1 (N);
2914 end Source_Type;
2915
2916 function Specification
2917 (N : Node_Id) return Node_Id is
2918 begin
2919 pragma Assert (False
2920 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
2921 or else NT (N).Nkind = N_Expression_Function
2922 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
2923 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
2924 or else NT (N).Nkind = N_Generic_Package_Declaration
2925 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2926 or else NT (N).Nkind = N_Package_Declaration
2927 or else NT (N).Nkind = N_Subprogram_Body
2928 or else NT (N).Nkind = N_Subprogram_Body_Stub
2929 or else NT (N).Nkind = N_Subprogram_Declaration
2930 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2931 return Node1 (N);
2932 end Specification;
2933
2934 function Split_PPC
2935 (N : Node_Id) return Boolean is
2936 begin
2937 pragma Assert (False
2938 or else NT (N).Nkind = N_Aspect_Specification
2939 or else NT (N).Nkind = N_Pragma);
2940 return Flag17 (N);
2941 end Split_PPC;
2942
2943 function Statements
2944 (N : Node_Id) return List_Id is
2945 begin
2946 pragma Assert (False
2947 or else NT (N).Nkind = N_Abortable_Part
2948 or else NT (N).Nkind = N_Accept_Alternative
2949 or else NT (N).Nkind = N_Case_Statement_Alternative
2950 or else NT (N).Nkind = N_Delay_Alternative
2951 or else NT (N).Nkind = N_Entry_Call_Alternative
2952 or else NT (N).Nkind = N_Exception_Handler
2953 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
2954 or else NT (N).Nkind = N_Loop_Statement
2955 or else NT (N).Nkind = N_Triggering_Alternative);
2956 return List3 (N);
2957 end Statements;
2958
2959 function Storage_Pool
2960 (N : Node_Id) return Node_Id is
2961 begin
2962 pragma Assert (False
2963 or else NT (N).Nkind = N_Allocator
2964 or else NT (N).Nkind = N_Extended_Return_Statement
2965 or else NT (N).Nkind = N_Free_Statement
2966 or else NT (N).Nkind = N_Simple_Return_Statement);
2967 return Node1 (N);
2968 end Storage_Pool;
2969
2970 function Subpool_Handle_Name
2971 (N : Node_Id) return Node_Id is
2972 begin
2973 pragma Assert (False
2974 or else NT (N).Nkind = N_Allocator);
2975 return Node4 (N);
2976 end Subpool_Handle_Name;
2977
2978 function Strval
2979 (N : Node_Id) return String_Id is
2980 begin
2981 pragma Assert (False
2982 or else NT (N).Nkind = N_Operator_Symbol
2983 or else NT (N).Nkind = N_String_Literal);
2984 return Str3 (N);
2985 end Strval;
2986
2987 function Subtype_Indication
2988 (N : Node_Id) return Node_Id is
2989 begin
2990 pragma Assert (False
2991 or else NT (N).Nkind = N_Access_To_Object_Definition
2992 or else NT (N).Nkind = N_Component_Definition
2993 or else NT (N).Nkind = N_Derived_Type_Definition
2994 or else NT (N).Nkind = N_Iterator_Specification
2995 or else NT (N).Nkind = N_Private_Extension_Declaration
2996 or else NT (N).Nkind = N_Subtype_Declaration);
2997 return Node5 (N);
2998 end Subtype_Indication;
2999
3000 function Suppress_Assignment_Checks
3001 (N : Node_Id) return Boolean is
3002 begin
3003 pragma Assert (False
3004 or else NT (N).Nkind = N_Assignment_Statement
3005 or else NT (N).Nkind = N_Object_Declaration);
3006 return Flag18 (N);
3007 end Suppress_Assignment_Checks;
3008
3009 function Suppress_Loop_Warnings
3010 (N : Node_Id) return Boolean is
3011 begin
3012 pragma Assert (False
3013 or else NT (N).Nkind = N_Loop_Statement);
3014 return Flag17 (N);
3015 end Suppress_Loop_Warnings;
3016
3017 function Subtype_Mark
3018 (N : Node_Id) return Node_Id is
3019 begin
3020 pragma Assert (False
3021 or else NT (N).Nkind = N_Access_Definition
3022 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3023 or else NT (N).Nkind = N_Formal_Object_Declaration
3024 or else NT (N).Nkind = N_Object_Renaming_Declaration
3025 or else NT (N).Nkind = N_Qualified_Expression
3026 or else NT (N).Nkind = N_Subtype_Indication
3027 or else NT (N).Nkind = N_Type_Conversion
3028 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
3029 return Node4 (N);
3030 end Subtype_Mark;
3031
3032 function Subtype_Marks
3033 (N : Node_Id) return List_Id is
3034 begin
3035 pragma Assert (False
3036 or else NT (N).Nkind = N_Unconstrained_Array_Definition
3037 or else NT (N).Nkind = N_Use_Type_Clause);
3038 return List2 (N);
3039 end Subtype_Marks;
3040
3041 function Synchronized_Present
3042 (N : Node_Id) return Boolean is
3043 begin
3044 pragma Assert (False
3045 or else NT (N).Nkind = N_Derived_Type_Definition
3046 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3047 or else NT (N).Nkind = N_Private_Extension_Declaration
3048 or else NT (N).Nkind = N_Record_Definition);
3049 return Flag7 (N);
3050 end Synchronized_Present;
3051
3052 function Tagged_Present
3053 (N : Node_Id) return Boolean is
3054 begin
3055 pragma Assert (False
3056 or else NT (N).Nkind = N_Formal_Incomplete_Type_Definition
3057 or else NT (N).Nkind = N_Formal_Private_Type_Definition
3058 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3059 or else NT (N).Nkind = N_Private_Type_Declaration
3060 or else NT (N).Nkind = N_Record_Definition);
3061 return Flag15 (N);
3062 end Tagged_Present;
3063
3064 function Target_Type
3065 (N : Node_Id) return Entity_Id is
3066 begin
3067 pragma Assert (False
3068 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
3069 return Node2 (N);
3070 end Target_Type;
3071
3072 function Task_Definition
3073 (N : Node_Id) return Node_Id is
3074 begin
3075 pragma Assert (False
3076 or else NT (N).Nkind = N_Single_Task_Declaration
3077 or else NT (N).Nkind = N_Task_Type_Declaration);
3078 return Node3 (N);
3079 end Task_Definition;
3080
3081 function Task_Present
3082 (N : Node_Id) return Boolean is
3083 begin
3084 pragma Assert (False
3085 or else NT (N).Nkind = N_Derived_Type_Definition
3086 or else NT (N).Nkind = N_Record_Definition);
3087 return Flag5 (N);
3088 end Task_Present;
3089
3090 function Then_Actions
3091 (N : Node_Id) return List_Id is
3092 begin
3093 pragma Assert (False
3094 or else NT (N).Nkind = N_If_Expression);
3095 return List2 (N);
3096 end Then_Actions;
3097
3098 function Then_Statements
3099 (N : Node_Id) return List_Id is
3100 begin
3101 pragma Assert (False
3102 or else NT (N).Nkind = N_Elsif_Part
3103 or else NT (N).Nkind = N_If_Statement);
3104 return List2 (N);
3105 end Then_Statements;
3106
3107 function Treat_Fixed_As_Integer
3108 (N : Node_Id) return Boolean is
3109 begin
3110 pragma Assert (False
3111 or else NT (N).Nkind = N_Op_Divide
3112 or else NT (N).Nkind = N_Op_Mod
3113 or else NT (N).Nkind = N_Op_Multiply
3114 or else NT (N).Nkind = N_Op_Rem);
3115 return Flag14 (N);
3116 end Treat_Fixed_As_Integer;
3117
3118 function Triggering_Alternative
3119 (N : Node_Id) return Node_Id is
3120 begin
3121 pragma Assert (False
3122 or else NT (N).Nkind = N_Asynchronous_Select);
3123 return Node1 (N);
3124 end Triggering_Alternative;
3125
3126 function Triggering_Statement
3127 (N : Node_Id) return Node_Id is
3128 begin
3129 pragma Assert (False
3130 or else NT (N).Nkind = N_Triggering_Alternative);
3131 return Node1 (N);
3132 end Triggering_Statement;
3133
3134 function TSS_Elist
3135 (N : Node_Id) return Elist_Id is
3136 begin
3137 pragma Assert (False
3138 or else NT (N).Nkind = N_Freeze_Entity);
3139 return Elist3 (N);
3140 end TSS_Elist;
3141
3142 function Type_Definition
3143 (N : Node_Id) return Node_Id is
3144 begin
3145 pragma Assert (False
3146 or else NT (N).Nkind = N_Full_Type_Declaration);
3147 return Node3 (N);
3148 end Type_Definition;
3149
3150 function Unit
3151 (N : Node_Id) return Node_Id is
3152 begin
3153 pragma Assert (False
3154 or else NT (N).Nkind = N_Compilation_Unit);
3155 return Node2 (N);
3156 end Unit;
3157
3158 function Unknown_Discriminants_Present
3159 (N : Node_Id) return Boolean is
3160 begin
3161 pragma Assert (False
3162 or else NT (N).Nkind = N_Formal_Type_Declaration
3163 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3164 or else NT (N).Nkind = N_Private_Extension_Declaration
3165 or else NT (N).Nkind = N_Private_Type_Declaration);
3166 return Flag13 (N);
3167 end Unknown_Discriminants_Present;
3168
3169 function Unreferenced_In_Spec
3170 (N : Node_Id) return Boolean is
3171 begin
3172 pragma Assert (False
3173 or else NT (N).Nkind = N_With_Clause);
3174 return Flag7 (N);
3175 end Unreferenced_In_Spec;
3176
3177 function Variant_Part
3178 (N : Node_Id) return Node_Id is
3179 begin
3180 pragma Assert (False
3181 or else NT (N).Nkind = N_Component_List);
3182 return Node4 (N);
3183 end Variant_Part;
3184
3185 function Variants
3186 (N : Node_Id) return List_Id is
3187 begin
3188 pragma Assert (False
3189 or else NT (N).Nkind = N_Variant_Part);
3190 return List1 (N);
3191 end Variants;
3192
3193 function Visible_Declarations
3194 (N : Node_Id) return List_Id is
3195 begin
3196 pragma Assert (False
3197 or else NT (N).Nkind = N_Package_Specification
3198 or else NT (N).Nkind = N_Protected_Definition
3199 or else NT (N).Nkind = N_Task_Definition);
3200 return List2 (N);
3201 end Visible_Declarations;
3202
3203 function Uninitialized_Variable
3204 (N : Node_Id) return Node_Id is
3205 begin
3206 pragma Assert (False
3207 or else NT (N).Nkind = N_Formal_Private_Type_Definition
3208 or else NT (N).Nkind = N_Private_Extension_Declaration);
3209 return Node3 (N);
3210 end Uninitialized_Variable;
3211
3212 function Used_Operations
3213 (N : Node_Id) return Elist_Id is
3214 begin
3215 pragma Assert (False
3216 or else NT (N).Nkind = N_Use_Type_Clause);
3217 return Elist5 (N);
3218 end Used_Operations;
3219
3220 function Was_Originally_Stub
3221 (N : Node_Id) return Boolean is
3222 begin
3223 pragma Assert (False
3224 or else NT (N).Nkind = N_Package_Body
3225 or else NT (N).Nkind = N_Protected_Body
3226 or else NT (N).Nkind = N_Subprogram_Body
3227 or else NT (N).Nkind = N_Task_Body);
3228 return Flag13 (N);
3229 end Was_Originally_Stub;
3230
3231 function Withed_Body
3232 (N : Node_Id) return Node_Id is
3233 begin
3234 pragma Assert (False
3235 or else NT (N).Nkind = N_With_Clause);
3236 return Node1 (N);
3237 end Withed_Body;
3238
3239 --------------------------
3240 -- Field Set Procedures --
3241 --------------------------
3242
3243 procedure Set_ABE_Is_Certain
3244 (N : Node_Id; Val : Boolean := True) is
3245 begin
3246 pragma Assert (False
3247 or else NT (N).Nkind = N_Formal_Package_Declaration
3248 or else NT (N).Nkind = N_Function_Call
3249 or else NT (N).Nkind = N_Function_Instantiation
3250 or else NT (N).Nkind = N_Package_Instantiation
3251 or else NT (N).Nkind = N_Procedure_Call_Statement
3252 or else NT (N).Nkind = N_Procedure_Instantiation);
3253 Set_Flag18 (N, Val);
3254 end Set_ABE_Is_Certain;
3255
3256 procedure Set_Abort_Present
3257 (N : Node_Id; Val : Boolean := True) is
3258 begin
3259 pragma Assert (False
3260 or else NT (N).Nkind = N_Requeue_Statement);
3261 Set_Flag15 (N, Val);
3262 end Set_Abort_Present;
3263
3264 procedure Set_Abortable_Part
3265 (N : Node_Id; Val : Node_Id) is
3266 begin
3267 pragma Assert (False
3268 or else NT (N).Nkind = N_Asynchronous_Select);
3269 Set_Node2_With_Parent (N, Val);
3270 end Set_Abortable_Part;
3271
3272 procedure Set_Abstract_Present
3273 (N : Node_Id; Val : Boolean := True) is
3274 begin
3275 pragma Assert (False
3276 or else NT (N).Nkind = N_Derived_Type_Definition
3277 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3278 or else NT (N).Nkind = N_Formal_Private_Type_Definition
3279 or else NT (N).Nkind = N_Private_Extension_Declaration
3280 or else NT (N).Nkind = N_Private_Type_Declaration
3281 or else NT (N).Nkind = N_Record_Definition);
3282 Set_Flag4 (N, Val);
3283 end Set_Abstract_Present;
3284
3285 procedure Set_Accept_Handler_Records
3286 (N : Node_Id; Val : List_Id) is
3287 begin
3288 pragma Assert (False
3289 or else NT (N).Nkind = N_Accept_Alternative);
3290 Set_List5 (N, Val); -- semantic field, no parent set
3291 end Set_Accept_Handler_Records;
3292
3293 procedure Set_Accept_Statement
3294 (N : Node_Id; Val : Node_Id) is
3295 begin
3296 pragma Assert (False
3297 or else NT (N).Nkind = N_Accept_Alternative);
3298 Set_Node2_With_Parent (N, Val);
3299 end Set_Accept_Statement;
3300
3301 procedure Set_Access_Definition
3302 (N : Node_Id; Val : Node_Id) is
3303 begin
3304 pragma Assert (False
3305 or else NT (N).Nkind = N_Component_Definition
3306 or else NT (N).Nkind = N_Formal_Object_Declaration
3307 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3308 Set_Node3_With_Parent (N, Val);
3309 end Set_Access_Definition;
3310
3311 procedure Set_Access_To_Subprogram_Definition
3312 (N : Node_Id; Val : Node_Id) is
3313 begin
3314 pragma Assert (False
3315 or else NT (N).Nkind = N_Access_Definition);
3316 Set_Node3_With_Parent (N, Val);
3317 end Set_Access_To_Subprogram_Definition;
3318
3319 procedure Set_Access_Types_To_Process
3320 (N : Node_Id; Val : Elist_Id) is
3321 begin
3322 pragma Assert (False
3323 or else NT (N).Nkind = N_Freeze_Entity);
3324 Set_Elist2 (N, Val); -- semantic field, no parent set
3325 end Set_Access_Types_To_Process;
3326
3327 procedure Set_Actions
3328 (N : Node_Id; Val : List_Id) is
3329 begin
3330 pragma Assert (False
3331 or else NT (N).Nkind = N_And_Then
3332 or else NT (N).Nkind = N_Case_Expression_Alternative
3333 or else NT (N).Nkind = N_Compilation_Unit_Aux
3334 or else NT (N).Nkind = N_Compound_Statement
3335 or else NT (N).Nkind = N_Expression_With_Actions
3336 or else NT (N).Nkind = N_Freeze_Entity
3337 or else NT (N).Nkind = N_Or_Else);
3338 Set_List1_With_Parent (N, Val);
3339 end Set_Actions;
3340
3341 procedure Set_Activation_Chain_Entity
3342 (N : Node_Id; Val : Node_Id) is
3343 begin
3344 pragma Assert (False
3345 or else NT (N).Nkind = N_Block_Statement
3346 or else NT (N).Nkind = N_Entry_Body
3347 or else NT (N).Nkind = N_Generic_Package_Declaration
3348 or else NT (N).Nkind = N_Package_Declaration
3349 or else NT (N).Nkind = N_Subprogram_Body
3350 or else NT (N).Nkind = N_Task_Body);
3351 Set_Node3 (N, Val); -- semantic field, no parent set
3352 end Set_Activation_Chain_Entity;
3353
3354 procedure Set_Acts_As_Spec
3355 (N : Node_Id; Val : Boolean := True) is
3356 begin
3357 pragma Assert (False
3358 or else NT (N).Nkind = N_Compilation_Unit
3359 or else NT (N).Nkind = N_Subprogram_Body);
3360 Set_Flag4 (N, Val);
3361 end Set_Acts_As_Spec;
3362
3363 procedure Set_Actual_Designated_Subtype
3364 (N : Node_Id; Val : Node_Id) is
3365 begin
3366 pragma Assert (False
3367 or else NT (N).Nkind = N_Explicit_Dereference
3368 or else NT (N).Nkind = N_Free_Statement);
3369 Set_Node4 (N, Val);
3370 end Set_Actual_Designated_Subtype;
3371
3372 procedure Set_Address_Warning_Posted
3373 (N : Node_Id; Val : Boolean := True) is
3374 begin
3375 pragma Assert (False
3376 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3377 Set_Flag18 (N, Val);
3378 end Set_Address_Warning_Posted;
3379
3380 procedure Set_Aggregate_Bounds
3381 (N : Node_Id; Val : Node_Id) is
3382 begin
3383 pragma Assert (False
3384 or else NT (N).Nkind = N_Aggregate);
3385 Set_Node3 (N, Val); -- semantic field, no parent set
3386 end Set_Aggregate_Bounds;
3387
3388 procedure Set_Aliased_Present
3389 (N : Node_Id; Val : Boolean := True) is
3390 begin
3391 pragma Assert (False
3392 or else NT (N).Nkind = N_Component_Definition
3393 or else NT (N).Nkind = N_Object_Declaration
3394 or else NT (N).Nkind = N_Parameter_Specification);
3395 Set_Flag4 (N, Val);
3396 end Set_Aliased_Present;
3397
3398 procedure Set_All_Others
3399 (N : Node_Id; Val : Boolean := True) is
3400 begin
3401 pragma Assert (False
3402 or else NT (N).Nkind = N_Others_Choice);
3403 Set_Flag11 (N, Val);
3404 end Set_All_Others;
3405
3406 procedure Set_All_Present
3407 (N : Node_Id; Val : Boolean := True) is
3408 begin
3409 pragma Assert (False
3410 or else NT (N).Nkind = N_Access_Definition
3411 or else NT (N).Nkind = N_Access_To_Object_Definition
3412 or else NT (N).Nkind = N_Quantified_Expression
3413 or else NT (N).Nkind = N_Use_Type_Clause);
3414 Set_Flag15 (N, Val);
3415 end Set_All_Present;
3416
3417 procedure Set_Alternatives
3418 (N : Node_Id; Val : List_Id) is
3419 begin
3420 pragma Assert (False
3421 or else NT (N).Nkind = N_Case_Expression
3422 or else NT (N).Nkind = N_Case_Statement
3423 or else NT (N).Nkind = N_In
3424 or else NT (N).Nkind = N_Not_In);
3425 Set_List4_With_Parent (N, Val);
3426 end Set_Alternatives;
3427
3428 procedure Set_Ancestor_Part
3429 (N : Node_Id; Val : Node_Id) is
3430 begin
3431 pragma Assert (False
3432 or else NT (N).Nkind = N_Extension_Aggregate);
3433 Set_Node3_With_Parent (N, Val);
3434 end Set_Ancestor_Part;
3435
3436 procedure Set_Atomic_Sync_Required
3437 (N : Node_Id; Val : Boolean := True) is
3438 begin
3439 pragma Assert (False
3440 or else NT (N).Nkind = N_Expanded_Name
3441 or else NT (N).Nkind = N_Explicit_Dereference
3442 or else NT (N).Nkind = N_Identifier
3443 or else NT (N).Nkind = N_Indexed_Component
3444 or else NT (N).Nkind = N_Selected_Component);
3445 Set_Flag14 (N, Val);
3446 end Set_Atomic_Sync_Required;
3447
3448 procedure Set_Array_Aggregate
3449 (N : Node_Id; Val : Node_Id) is
3450 begin
3451 pragma Assert (False
3452 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
3453 Set_Node3_With_Parent (N, Val);
3454 end Set_Array_Aggregate;
3455
3456 procedure Set_Aspect_Rep_Item
3457 (N : Node_Id; Val : Node_Id) is
3458 begin
3459 pragma Assert (False
3460 or else NT (N).Nkind = N_Aspect_Specification);
3461 Set_Node2 (N, Val);
3462 end Set_Aspect_Rep_Item;
3463
3464 procedure Set_Assignment_OK
3465 (N : Node_Id; Val : Boolean := True) is
3466 begin
3467 pragma Assert (False
3468 or else NT (N).Nkind = N_Object_Declaration
3469 or else NT (N).Nkind in N_Subexpr);
3470 Set_Flag15 (N, Val);
3471 end Set_Assignment_OK;
3472
3473 procedure Set_Associated_Node
3474 (N : Node_Id; Val : Node_Id) is
3475 begin
3476 pragma Assert (False
3477 or else NT (N).Nkind in N_Has_Entity
3478 or else NT (N).Nkind = N_Aggregate
3479 or else NT (N).Nkind = N_Extension_Aggregate
3480 or else NT (N).Nkind = N_Selected_Component);
3481 Set_Node4 (N, Val); -- semantic field, no parent set
3482 end Set_Associated_Node;
3483
3484 procedure Set_At_End_Proc
3485 (N : Node_Id; Val : Node_Id) is
3486 begin
3487 pragma Assert (False
3488 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3489 Set_Node1 (N, Val);
3490 end Set_At_End_Proc;
3491
3492 procedure Set_Attribute_Name
3493 (N : Node_Id; Val : Name_Id) is
3494 begin
3495 pragma Assert (False
3496 or else NT (N).Nkind = N_Attribute_Reference);
3497 Set_Name2 (N, Val);
3498 end Set_Attribute_Name;
3499
3500 procedure Set_Aux_Decls_Node
3501 (N : Node_Id; Val : Node_Id) is
3502 begin
3503 pragma Assert (False
3504 or else NT (N).Nkind = N_Compilation_Unit);
3505 Set_Node5_With_Parent (N, Val);
3506 end Set_Aux_Decls_Node;
3507
3508 procedure Set_Backwards_OK
3509 (N : Node_Id; Val : Boolean := True) is
3510 begin
3511 pragma Assert (False
3512 or else NT (N).Nkind = N_Assignment_Statement);
3513 Set_Flag6 (N, Val);
3514 end Set_Backwards_OK;
3515
3516 procedure Set_Bad_Is_Detected
3517 (N : Node_Id; Val : Boolean := True) is
3518 begin
3519 pragma Assert (False
3520 or else NT (N).Nkind = N_Subprogram_Body);
3521 Set_Flag15 (N, Val);
3522 end Set_Bad_Is_Detected;
3523
3524 procedure Set_Body_Required
3525 (N : Node_Id; Val : Boolean := True) is
3526 begin
3527 pragma Assert (False
3528 or else NT (N).Nkind = N_Compilation_Unit);
3529 Set_Flag13 (N, Val);
3530 end Set_Body_Required;
3531
3532 procedure Set_Body_To_Inline
3533 (N : Node_Id; Val : Node_Id) is
3534 begin
3535 pragma Assert (False
3536 or else NT (N).Nkind = N_Subprogram_Declaration);
3537 Set_Node3 (N, Val);
3538 end Set_Body_To_Inline;
3539
3540 procedure Set_Box_Present
3541 (N : Node_Id; Val : Boolean := True) is
3542 begin
3543 pragma Assert (False
3544 or else NT (N).Nkind = N_Component_Association
3545 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3546 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
3547 or else NT (N).Nkind = N_Formal_Package_Declaration
3548 or else NT (N).Nkind = N_Generic_Association);
3549 Set_Flag15 (N, Val);
3550 end Set_Box_Present;
3551
3552 procedure Set_By_Ref
3553 (N : Node_Id; Val : Boolean := True) is
3554 begin
3555 pragma Assert (False
3556 or else NT (N).Nkind = N_Extended_Return_Statement
3557 or else NT (N).Nkind = N_Simple_Return_Statement);
3558 Set_Flag5 (N, Val);
3559 end Set_By_Ref;
3560
3561 procedure Set_Char_Literal_Value
3562 (N : Node_Id; Val : Uint) is
3563 begin
3564 pragma Assert (False
3565 or else NT (N).Nkind = N_Character_Literal);
3566 Set_Uint2 (N, Val);
3567 end Set_Char_Literal_Value;
3568
3569 procedure Set_Chars
3570 (N : Node_Id; Val : Name_Id) is
3571 begin
3572 pragma Assert (False
3573 or else NT (N).Nkind in N_Has_Chars);
3574 Set_Name1 (N, Val);
3575 end Set_Chars;
3576
3577 procedure Set_Check_Address_Alignment
3578 (N : Node_Id; Val : Boolean := True) is
3579 begin
3580 pragma Assert (False
3581 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3582 Set_Flag11 (N, Val);
3583 end Set_Check_Address_Alignment;
3584
3585 procedure Set_Choice_Parameter
3586 (N : Node_Id; Val : Node_Id) is
3587 begin
3588 pragma Assert (False
3589 or else NT (N).Nkind = N_Exception_Handler);
3590 Set_Node2_With_Parent (N, Val);
3591 end Set_Choice_Parameter;
3592
3593 procedure Set_Choices
3594 (N : Node_Id; Val : List_Id) is
3595 begin
3596 pragma Assert (False
3597 or else NT (N).Nkind = N_Component_Association);
3598 Set_List1_With_Parent (N, Val);
3599 end Set_Choices;
3600
3601 procedure Set_Class_Present
3602 (N : Node_Id; Val : Boolean := True) is
3603 begin
3604 pragma Assert (False
3605 or else NT (N).Nkind = N_Aspect_Specification
3606 or else NT (N).Nkind = N_Pragma);
3607 Set_Flag6 (N, Val);
3608 end Set_Class_Present;
3609
3610 procedure Set_Classifications
3611 (N : Node_Id; Val : Node_Id) is
3612 begin
3613 pragma Assert (False
3614 or else NT (N).Nkind = N_Contract);
3615 Set_Node3 (N, Val); -- semantic field, no parent set
3616 end Set_Classifications;
3617
3618 procedure Set_Cleanup_Actions
3619 (N : Node_Id; Val : List_Id) is
3620 begin
3621 pragma Assert (False
3622 or else NT (N).Nkind = N_Block_Statement);
3623 Set_List5 (N, Val); -- semantic field, no parent set
3624 end Set_Cleanup_Actions;
3625
3626 procedure Set_Comes_From_Extended_Return_Statement
3627 (N : Node_Id; Val : Boolean := True) is
3628 begin
3629 pragma Assert (False
3630 or else NT (N).Nkind = N_Simple_Return_Statement);
3631 Set_Flag18 (N, Val);
3632 end Set_Comes_From_Extended_Return_Statement;
3633
3634 procedure Set_Compile_Time_Known_Aggregate
3635 (N : Node_Id; Val : Boolean := True) is
3636 begin
3637 pragma Assert (False
3638 or else NT (N).Nkind = N_Aggregate);
3639 Set_Flag18 (N, Val);
3640 end Set_Compile_Time_Known_Aggregate;
3641
3642 procedure Set_Component_Associations
3643 (N : Node_Id; Val : List_Id) is
3644 begin
3645 pragma Assert (False
3646 or else NT (N).Nkind = N_Aggregate
3647 or else NT (N).Nkind = N_Extension_Aggregate);
3648 Set_List2_With_Parent (N, Val);
3649 end Set_Component_Associations;
3650
3651 procedure Set_Component_Clauses
3652 (N : Node_Id; Val : List_Id) is
3653 begin
3654 pragma Assert (False
3655 or else NT (N).Nkind = N_Record_Representation_Clause);
3656 Set_List3_With_Parent (N, Val);
3657 end Set_Component_Clauses;
3658
3659 procedure Set_Component_Definition
3660 (N : Node_Id; Val : Node_Id) is
3661 begin
3662 pragma Assert (False
3663 or else NT (N).Nkind = N_Component_Declaration
3664 or else NT (N).Nkind = N_Constrained_Array_Definition
3665 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
3666 Set_Node4_With_Parent (N, Val);
3667 end Set_Component_Definition;
3668
3669 procedure Set_Component_Items
3670 (N : Node_Id; Val : List_Id) is
3671 begin
3672 pragma Assert (False
3673 or else NT (N).Nkind = N_Component_List);
3674 Set_List3_With_Parent (N, Val);
3675 end Set_Component_Items;
3676
3677 procedure Set_Component_List
3678 (N : Node_Id; Val : Node_Id) is
3679 begin
3680 pragma Assert (False
3681 or else NT (N).Nkind = N_Record_Definition
3682 or else NT (N).Nkind = N_Variant);
3683 Set_Node1_With_Parent (N, Val);
3684 end Set_Component_List;
3685
3686 procedure Set_Component_Name
3687 (N : Node_Id; Val : Node_Id) is
3688 begin
3689 pragma Assert (False
3690 or else NT (N).Nkind = N_Component_Clause);
3691 Set_Node1_With_Parent (N, Val);
3692 end Set_Component_Name;
3693
3694 procedure Set_Componentwise_Assignment
3695 (N : Node_Id; Val : Boolean := True) is
3696 begin
3697 pragma Assert (False
3698 or else NT (N).Nkind = N_Assignment_Statement);
3699 Set_Flag14 (N, Val);
3700 end Set_Componentwise_Assignment;
3701
3702 procedure Set_Condition
3703 (N : Node_Id; Val : Node_Id) is
3704 begin
3705 pragma Assert (False
3706 or else NT (N).Nkind = N_Accept_Alternative
3707 or else NT (N).Nkind = N_Delay_Alternative
3708 or else NT (N).Nkind = N_Elsif_Part
3709 or else NT (N).Nkind = N_Entry_Body_Formal_Part
3710 or else NT (N).Nkind = N_Exit_Statement
3711 or else NT (N).Nkind = N_If_Statement
3712 or else NT (N).Nkind = N_Iteration_Scheme
3713 or else NT (N).Nkind = N_Quantified_Expression
3714 or else NT (N).Nkind = N_Raise_Constraint_Error
3715 or else NT (N).Nkind = N_Raise_Program_Error
3716 or else NT (N).Nkind = N_Raise_Storage_Error
3717 or else NT (N).Nkind = N_Terminate_Alternative);
3718 Set_Node1_With_Parent (N, Val);
3719 end Set_Condition;
3720
3721 procedure Set_Condition_Actions
3722 (N : Node_Id; Val : List_Id) is
3723 begin
3724 pragma Assert (False
3725 or else NT (N).Nkind = N_Elsif_Part
3726 or else NT (N).Nkind = N_Iteration_Scheme);
3727 Set_List3 (N, Val); -- semantic field, no parent set
3728 end Set_Condition_Actions;
3729
3730 procedure Set_Config_Pragmas
3731 (N : Node_Id; Val : List_Id) is
3732 begin
3733 pragma Assert (False
3734 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3735 Set_List4_With_Parent (N, Val);
3736 end Set_Config_Pragmas;
3737
3738 procedure Set_Constant_Present
3739 (N : Node_Id; Val : Boolean := True) is
3740 begin
3741 pragma Assert (False
3742 or else NT (N).Nkind = N_Access_Definition
3743 or else NT (N).Nkind = N_Access_To_Object_Definition
3744 or else NT (N).Nkind = N_Object_Declaration);
3745 Set_Flag17 (N, Val);
3746 end Set_Constant_Present;
3747
3748 procedure Set_Constraint
3749 (N : Node_Id; Val : Node_Id) is
3750 begin
3751 pragma Assert (False
3752 or else NT (N).Nkind = N_Subtype_Indication);
3753 Set_Node3_With_Parent (N, Val);
3754 end Set_Constraint;
3755
3756 procedure Set_Constraints
3757 (N : Node_Id; Val : List_Id) is
3758 begin
3759 pragma Assert (False
3760 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
3761 Set_List1_With_Parent (N, Val);
3762 end Set_Constraints;
3763
3764 procedure Set_Context_Installed
3765 (N : Node_Id; Val : Boolean := True) is
3766 begin
3767 pragma Assert (False
3768 or else NT (N).Nkind = N_With_Clause);
3769 Set_Flag13 (N, Val);
3770 end Set_Context_Installed;
3771
3772 procedure Set_Context_Items
3773 (N : Node_Id; Val : List_Id) is
3774 begin
3775 pragma Assert (False
3776 or else NT (N).Nkind = N_Compilation_Unit);
3777 Set_List1_With_Parent (N, Val);
3778 end Set_Context_Items;
3779
3780 procedure Set_Context_Pending
3781 (N : Node_Id; Val : Boolean := True) is
3782 begin
3783 pragma Assert (False
3784 or else NT (N).Nkind = N_Compilation_Unit);
3785 Set_Flag16 (N, Val);
3786 end Set_Context_Pending;
3787
3788 procedure Set_Contract_Test_Cases
3789 (N : Node_Id; Val : Node_Id) is
3790 begin
3791 pragma Assert (False
3792 or else NT (N).Nkind = N_Contract);
3793 Set_Node2 (N, Val); -- semantic field, no parent set
3794 end Set_Contract_Test_Cases;
3795
3796 procedure Set_Controlling_Argument
3797 (N : Node_Id; Val : Node_Id) is
3798 begin
3799 pragma Assert (False
3800 or else NT (N).Nkind = N_Function_Call
3801 or else NT (N).Nkind = N_Procedure_Call_Statement);
3802 Set_Node1 (N, Val); -- semantic field, no parent set
3803 end Set_Controlling_Argument;
3804
3805 procedure Set_Conversion_OK
3806 (N : Node_Id; Val : Boolean := True) is
3807 begin
3808 pragma Assert (False
3809 or else NT (N).Nkind = N_Type_Conversion);
3810 Set_Flag14 (N, Val);
3811 end Set_Conversion_OK;
3812
3813 procedure Set_Convert_To_Return_False
3814 (N : Node_Id; Val : Boolean := True) is
3815 begin
3816 pragma Assert (False
3817 or else NT (N).Nkind = N_Raise_Expression);
3818 Set_Flag13 (N, Val);
3819 end Set_Convert_To_Return_False;
3820
3821 procedure Set_Corresponding_Aspect
3822 (N : Node_Id; Val : Node_Id) is
3823 begin
3824 pragma Assert (False
3825 or else NT (N).Nkind = N_Pragma);
3826 Set_Node3 (N, Val);
3827 end Set_Corresponding_Aspect;
3828
3829 procedure Set_Corresponding_Body
3830 (N : Node_Id; Val : Node_Id) is
3831 begin
3832 pragma Assert (False
3833 or else NT (N).Nkind = N_Entry_Declaration
3834 or else NT (N).Nkind = N_Generic_Package_Declaration
3835 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
3836 or else NT (N).Nkind = N_Package_Body_Stub
3837 or else NT (N).Nkind = N_Package_Declaration
3838 or else NT (N).Nkind = N_Protected_Body_Stub
3839 or else NT (N).Nkind = N_Protected_Type_Declaration
3840 or else NT (N).Nkind = N_Subprogram_Body_Stub
3841 or else NT (N).Nkind = N_Subprogram_Declaration
3842 or else NT (N).Nkind = N_Task_Body_Stub
3843 or else NT (N).Nkind = N_Task_Type_Declaration);
3844 Set_Node5 (N, Val); -- semantic field, no parent set
3845 end Set_Corresponding_Body;
3846
3847 procedure Set_Corresponding_Formal_Spec
3848 (N : Node_Id; Val : Node_Id) is
3849 begin
3850 pragma Assert (False
3851 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
3852 Set_Node3 (N, Val); -- semantic field, no parent set
3853 end Set_Corresponding_Formal_Spec;
3854
3855 procedure Set_Corresponding_Generic_Association
3856 (N : Node_Id; Val : Node_Id) is
3857 begin
3858 pragma Assert (False
3859 or else NT (N).Nkind = N_Object_Declaration
3860 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3861 Set_Node5 (N, Val); -- semantic field, no parent set
3862 end Set_Corresponding_Generic_Association;
3863
3864 procedure Set_Corresponding_Integer_Value
3865 (N : Node_Id; Val : Uint) is
3866 begin
3867 pragma Assert (False
3868 or else NT (N).Nkind = N_Real_Literal);
3869 Set_Uint4 (N, Val); -- semantic field, no parent set
3870 end Set_Corresponding_Integer_Value;
3871
3872 procedure Set_Corresponding_Spec
3873 (N : Node_Id; Val : Node_Id) is
3874 begin
3875 pragma Assert (False
3876 or else NT (N).Nkind = N_Expression_Function
3877 or else NT (N).Nkind = N_Package_Body
3878 or else NT (N).Nkind = N_Protected_Body
3879 or else NT (N).Nkind = N_Subprogram_Body
3880 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
3881 or else NT (N).Nkind = N_Task_Body
3882 or else NT (N).Nkind = N_With_Clause);
3883 Set_Node5 (N, Val); -- semantic field, no parent set
3884 end Set_Corresponding_Spec;
3885
3886 procedure Set_Corresponding_Spec_Of_Stub
3887 (N : Node_Id; Val : Entity_Id) is
3888 begin
3889 pragma Assert (False
3890 or else NT (N).Nkind = N_Package_Body_Stub
3891 or else NT (N).Nkind = N_Protected_Body_Stub
3892 or else NT (N).Nkind = N_Subprogram_Body_Stub
3893 or else NT (N).Nkind = N_Task_Body_Stub);
3894 Set_Node2 (N, Val); -- semantic field, no parent set
3895 end Set_Corresponding_Spec_Of_Stub;
3896
3897 procedure Set_Corresponding_Stub
3898 (N : Node_Id; Val : Node_Id) is
3899 begin
3900 pragma Assert (False
3901 or else NT (N).Nkind = N_Subunit);
3902 Set_Node3 (N, Val);
3903 end Set_Corresponding_Stub;
3904
3905 procedure Set_Dcheck_Function
3906 (N : Node_Id; Val : Entity_Id) is
3907 begin
3908 pragma Assert (False
3909 or else NT (N).Nkind = N_Variant);
3910 Set_Node5 (N, Val); -- semantic field, no parent set
3911 end Set_Dcheck_Function;
3912
3913 procedure Set_Declarations
3914 (N : Node_Id; Val : List_Id) is
3915 begin
3916 pragma Assert (False
3917 or else NT (N).Nkind = N_Accept_Statement
3918 or else NT (N).Nkind = N_Block_Statement
3919 or else NT (N).Nkind = N_Compilation_Unit_Aux
3920 or else NT (N).Nkind = N_Entry_Body
3921 or else NT (N).Nkind = N_Package_Body
3922 or else NT (N).Nkind = N_Protected_Body
3923 or else NT (N).Nkind = N_Subprogram_Body
3924 or else NT (N).Nkind = N_Task_Body);
3925 Set_List2_With_Parent (N, Val);
3926 end Set_Declarations;
3927
3928 procedure Set_Default_Expression
3929 (N : Node_Id; Val : Node_Id) is
3930 begin
3931 pragma Assert (False
3932 or else NT (N).Nkind = N_Formal_Object_Declaration
3933 or else NT (N).Nkind = N_Parameter_Specification);
3934 Set_Node5 (N, Val); -- semantic field, no parent set
3935 end Set_Default_Expression;
3936
3937 procedure Set_Default_Storage_Pool
3938 (N : Node_Id; Val : Node_Id) is
3939 begin
3940 pragma Assert (False
3941 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3942 Set_Node3 (N, Val); -- semantic field, no parent set
3943 end Set_Default_Storage_Pool;
3944
3945 procedure Set_Default_Name
3946 (N : Node_Id; Val : Node_Id) is
3947 begin
3948 pragma Assert (False
3949 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3950 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
3951 Set_Node2_With_Parent (N, Val);
3952 end Set_Default_Name;
3953
3954 procedure Set_Defining_Identifier
3955 (N : Node_Id; Val : Entity_Id) is
3956 begin
3957 pragma Assert (False
3958 or else NT (N).Nkind = N_Component_Declaration
3959 or else NT (N).Nkind = N_Defining_Program_Unit_Name
3960 or else NT (N).Nkind = N_Discriminant_Specification
3961 or else NT (N).Nkind = N_Entry_Body
3962 or else NT (N).Nkind = N_Entry_Declaration
3963 or else NT (N).Nkind = N_Entry_Index_Specification
3964 or else NT (N).Nkind = N_Exception_Declaration
3965 or else NT (N).Nkind = N_Exception_Renaming_Declaration
3966 or else NT (N).Nkind = N_Formal_Object_Declaration
3967 or else NT (N).Nkind = N_Formal_Package_Declaration
3968 or else NT (N).Nkind = N_Formal_Type_Declaration
3969 or else NT (N).Nkind = N_Full_Type_Declaration
3970 or else NT (N).Nkind = N_Implicit_Label_Declaration
3971 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3972 or else NT (N).Nkind = N_Iterator_Specification
3973 or else NT (N).Nkind = N_Loop_Parameter_Specification
3974 or else NT (N).Nkind = N_Number_Declaration
3975 or else NT (N).Nkind = N_Object_Declaration
3976 or else NT (N).Nkind = N_Object_Renaming_Declaration
3977 or else NT (N).Nkind = N_Package_Body_Stub
3978 or else NT (N).Nkind = N_Parameter_Specification
3979 or else NT (N).Nkind = N_Private_Extension_Declaration
3980 or else NT (N).Nkind = N_Private_Type_Declaration
3981 or else NT (N).Nkind = N_Protected_Body
3982 or else NT (N).Nkind = N_Protected_Body_Stub
3983 or else NT (N).Nkind = N_Protected_Type_Declaration
3984 or else NT (N).Nkind = N_Single_Protected_Declaration
3985 or else NT (N).Nkind = N_Single_Task_Declaration
3986 or else NT (N).Nkind = N_Subtype_Declaration
3987 or else NT (N).Nkind = N_Task_Body
3988 or else NT (N).Nkind = N_Task_Body_Stub
3989 or else NT (N).Nkind = N_Task_Type_Declaration);
3990 Set_Node1_With_Parent (N, Val);
3991 end Set_Defining_Identifier;
3992
3993 procedure Set_Defining_Unit_Name
3994 (N : Node_Id; Val : Node_Id) is
3995 begin
3996 pragma Assert (False
3997 or else NT (N).Nkind = N_Function_Instantiation
3998 or else NT (N).Nkind = N_Function_Specification
3999 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
4000 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
4001 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
4002 or else NT (N).Nkind = N_Package_Body
4003 or else NT (N).Nkind = N_Package_Instantiation
4004 or else NT (N).Nkind = N_Package_Renaming_Declaration
4005 or else NT (N).Nkind = N_Package_Specification
4006 or else NT (N).Nkind = N_Procedure_Instantiation
4007 or else NT (N).Nkind = N_Procedure_Specification);
4008 Set_Node1_With_Parent (N, Val);
4009 end Set_Defining_Unit_Name;
4010
4011 procedure Set_Delay_Alternative
4012 (N : Node_Id; Val : Node_Id) is
4013 begin
4014 pragma Assert (False
4015 or else NT (N).Nkind = N_Timed_Entry_Call);
4016 Set_Node4_With_Parent (N, Val);
4017 end Set_Delay_Alternative;
4018
4019 procedure Set_Delay_Statement
4020 (N : Node_Id; Val : Node_Id) is
4021 begin
4022 pragma Assert (False
4023 or else NT (N).Nkind = N_Delay_Alternative);
4024 Set_Node2_With_Parent (N, Val);
4025 end Set_Delay_Statement;
4026
4027 procedure Set_Delta_Expression
4028 (N : Node_Id; Val : Node_Id) is
4029 begin
4030 pragma Assert (False
4031 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
4032 or else NT (N).Nkind = N_Delta_Constraint
4033 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
4034 Set_Node3_With_Parent (N, Val);
4035 end Set_Delta_Expression;
4036
4037 procedure Set_Digits_Expression
4038 (N : Node_Id; Val : Node_Id) is
4039 begin
4040 pragma Assert (False
4041 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
4042 or else NT (N).Nkind = N_Digits_Constraint
4043 or else NT (N).Nkind = N_Floating_Point_Definition);
4044 Set_Node2_With_Parent (N, Val);
4045 end Set_Digits_Expression;
4046
4047 procedure Set_Discr_Check_Funcs_Built
4048 (N : Node_Id; Val : Boolean := True) is
4049 begin
4050 pragma Assert (False
4051 or else NT (N).Nkind = N_Full_Type_Declaration);
4052 Set_Flag11 (N, Val);
4053 end Set_Discr_Check_Funcs_Built;
4054
4055 procedure Set_Discrete_Choices
4056 (N : Node_Id; Val : List_Id) is
4057 begin
4058 pragma Assert (False
4059 or else NT (N).Nkind = N_Case_Expression_Alternative
4060 or else NT (N).Nkind = N_Case_Statement_Alternative
4061 or else NT (N).Nkind = N_Variant);
4062 Set_List4_With_Parent (N, Val);
4063 end Set_Discrete_Choices;
4064
4065 procedure Set_Discrete_Range
4066 (N : Node_Id; Val : Node_Id) is
4067 begin
4068 pragma Assert (False
4069 or else NT (N).Nkind = N_Slice);
4070 Set_Node4_With_Parent (N, Val);
4071 end Set_Discrete_Range;
4072
4073 procedure Set_Discrete_Subtype_Definition
4074 (N : Node_Id; Val : Node_Id) is
4075 begin
4076 pragma Assert (False
4077 or else NT (N).Nkind = N_Entry_Declaration
4078 or else NT (N).Nkind = N_Entry_Index_Specification
4079 or else NT (N).Nkind = N_Loop_Parameter_Specification);
4080 Set_Node4_With_Parent (N, Val);
4081 end Set_Discrete_Subtype_Definition;
4082
4083 procedure Set_Discrete_Subtype_Definitions
4084 (N : Node_Id; Val : List_Id) is
4085 begin
4086 pragma Assert (False
4087 or else NT (N).Nkind = N_Constrained_Array_Definition);
4088 Set_List2_With_Parent (N, Val);
4089 end Set_Discrete_Subtype_Definitions;
4090
4091 procedure Set_Discriminant_Specifications
4092 (N : Node_Id; Val : List_Id) is
4093 begin
4094 pragma Assert (False
4095 or else NT (N).Nkind = N_Formal_Type_Declaration
4096 or else NT (N).Nkind = N_Full_Type_Declaration
4097 or else NT (N).Nkind = N_Incomplete_Type_Declaration
4098 or else NT (N).Nkind = N_Private_Extension_Declaration
4099 or else NT (N).Nkind = N_Private_Type_Declaration
4100 or else NT (N).Nkind = N_Protected_Type_Declaration
4101 or else NT (N).Nkind = N_Task_Type_Declaration);
4102 Set_List4_With_Parent (N, Val);
4103 end Set_Discriminant_Specifications;
4104
4105 procedure Set_Discriminant_Type
4106 (N : Node_Id; Val : Node_Id) is
4107 begin
4108 pragma Assert (False
4109 or else NT (N).Nkind = N_Discriminant_Specification);
4110 Set_Node5_With_Parent (N, Val);
4111 end Set_Discriminant_Type;
4112
4113 procedure Set_Do_Accessibility_Check
4114 (N : Node_Id; Val : Boolean := True) is
4115 begin
4116 pragma Assert (False
4117 or else NT (N).Nkind = N_Parameter_Specification);
4118 Set_Flag13 (N, Val);
4119 end Set_Do_Accessibility_Check;
4120
4121 procedure Set_Do_Discriminant_Check
4122 (N : Node_Id; Val : Boolean := True) is
4123 begin
4124 pragma Assert (False
4125 or else NT (N).Nkind = N_Assignment_Statement
4126 or else NT (N).Nkind = N_Selected_Component
4127 or else NT (N).Nkind = N_Type_Conversion);
4128 Set_Flag1 (N, Val);
4129 end Set_Do_Discriminant_Check;
4130
4131 procedure Set_Do_Division_Check
4132 (N : Node_Id; Val : Boolean := True) is
4133 begin
4134 pragma Assert (False
4135 or else NT (N).Nkind = N_Op_Divide
4136 or else NT (N).Nkind = N_Op_Mod
4137 or else NT (N).Nkind = N_Op_Rem);
4138 Set_Flag13 (N, Val);
4139 end Set_Do_Division_Check;
4140
4141 procedure Set_Do_Length_Check
4142 (N : Node_Id; Val : Boolean := True) is
4143 begin
4144 pragma Assert (False
4145 or else NT (N).Nkind = N_Assignment_Statement
4146 or else NT (N).Nkind = N_Op_And
4147 or else NT (N).Nkind = N_Op_Or
4148 or else NT (N).Nkind = N_Op_Xor
4149 or else NT (N).Nkind = N_Type_Conversion);
4150 Set_Flag4 (N, Val);
4151 end Set_Do_Length_Check;
4152
4153 procedure Set_Do_Overflow_Check
4154 (N : Node_Id; Val : Boolean := True) is
4155 begin
4156 pragma Assert (False
4157 or else NT (N).Nkind in N_Op
4158 or else NT (N).Nkind = N_Attribute_Reference
4159 or else NT (N).Nkind = N_Case_Expression
4160 or else NT (N).Nkind = N_If_Expression
4161 or else NT (N).Nkind = N_Type_Conversion);
4162 Set_Flag17 (N, Val);
4163 end Set_Do_Overflow_Check;
4164
4165 procedure Set_Do_Range_Check
4166 (N : Node_Id; Val : Boolean := True) is
4167 begin
4168 pragma Assert (False
4169 or else NT (N).Nkind in N_Subexpr);
4170 Set_Flag9 (N, Val);
4171 end Set_Do_Range_Check;
4172
4173 procedure Set_Do_Storage_Check
4174 (N : Node_Id; Val : Boolean := True) is
4175 begin
4176 pragma Assert (False
4177 or else NT (N).Nkind = N_Allocator
4178 or else NT (N).Nkind = N_Subprogram_Body);
4179 Set_Flag17 (N, Val);
4180 end Set_Do_Storage_Check;
4181
4182 procedure Set_Do_Tag_Check
4183 (N : Node_Id; Val : Boolean := True) is
4184 begin
4185 pragma Assert (False
4186 or else NT (N).Nkind = N_Assignment_Statement
4187 or else NT (N).Nkind = N_Extended_Return_Statement
4188 or else NT (N).Nkind = N_Function_Call
4189 or else NT (N).Nkind = N_Procedure_Call_Statement
4190 or else NT (N).Nkind = N_Simple_Return_Statement
4191 or else NT (N).Nkind = N_Type_Conversion);
4192 Set_Flag13 (N, Val);
4193 end Set_Do_Tag_Check;
4194
4195 procedure Set_Elaborate_All_Desirable
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_Flag9 (N, Val);
4201 end Set_Elaborate_All_Desirable;
4202
4203 procedure Set_Elaborate_All_Present
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_Flag14 (N, Val);
4209 end Set_Elaborate_All_Present;
4210
4211 procedure Set_Elaborate_Desirable
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_Flag11 (N, Val);
4217 end Set_Elaborate_Desirable;
4218
4219 procedure Set_Elaborate_Present
4220 (N : Node_Id; Val : Boolean := True) is
4221 begin
4222 pragma Assert (False
4223 or else NT (N).Nkind = N_With_Clause);
4224 Set_Flag4 (N, Val);
4225 end Set_Elaborate_Present;
4226
4227 procedure Set_Elaboration_Boolean
4228 (N : Node_Id; Val : Node_Id) is
4229 begin
4230 pragma Assert (False
4231 or else NT (N).Nkind = N_Function_Specification
4232 or else NT (N).Nkind = N_Procedure_Specification);
4233 Set_Node2 (N, Val);
4234 end Set_Elaboration_Boolean;
4235
4236 procedure Set_Else_Actions
4237 (N : Node_Id; Val : List_Id) is
4238 begin
4239 pragma Assert (False
4240 or else NT (N).Nkind = N_If_Expression);
4241 Set_List3_With_Parent (N, Val); -- semantic field, but needs parents
4242 end Set_Else_Actions;
4243
4244 procedure Set_Else_Statements
4245 (N : Node_Id; Val : List_Id) is
4246 begin
4247 pragma Assert (False
4248 or else NT (N).Nkind = N_Conditional_Entry_Call
4249 or else NT (N).Nkind = N_If_Statement
4250 or else NT (N).Nkind = N_Selective_Accept);
4251 Set_List4_With_Parent (N, Val);
4252 end Set_Else_Statements;
4253
4254 procedure Set_Elsif_Parts
4255 (N : Node_Id; Val : List_Id) is
4256 begin
4257 pragma Assert (False
4258 or else NT (N).Nkind = N_If_Statement);
4259 Set_List3_With_Parent (N, Val);
4260 end Set_Elsif_Parts;
4261
4262 procedure Set_Enclosing_Variant
4263 (N : Node_Id; Val : Node_Id) is
4264 begin
4265 pragma Assert (False
4266 or else NT (N).Nkind = N_Variant);
4267 Set_Node2 (N, Val); -- semantic field, no parent set
4268 end Set_Enclosing_Variant;
4269
4270 procedure Set_End_Label
4271 (N : Node_Id; Val : Node_Id) is
4272 begin
4273 pragma Assert (False
4274 or else NT (N).Nkind = N_Enumeration_Type_Definition
4275 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
4276 or else NT (N).Nkind = N_Loop_Statement
4277 or else NT (N).Nkind = N_Package_Specification
4278 or else NT (N).Nkind = N_Protected_Body
4279 or else NT (N).Nkind = N_Protected_Definition
4280 or else NT (N).Nkind = N_Record_Definition
4281 or else NT (N).Nkind = N_Task_Definition);
4282 Set_Node4_With_Parent (N, Val);
4283 end Set_End_Label;
4284
4285 procedure Set_End_Span
4286 (N : Node_Id; Val : Uint) is
4287 begin
4288 pragma Assert (False
4289 or else NT (N).Nkind = N_Case_Statement
4290 or else NT (N).Nkind = N_If_Statement);
4291 Set_Uint5 (N, Val);
4292 end Set_End_Span;
4293
4294 procedure Set_Entity
4295 (N : Node_Id; Val : Node_Id) is
4296 begin
4297 pragma Assert (False
4298 or else NT (N).Nkind in N_Has_Entity
4299 or else NT (N).Nkind = N_Aspect_Specification
4300 or else NT (N).Nkind = N_Attribute_Definition_Clause
4301 or else NT (N).Nkind = N_Freeze_Entity
4302 or else NT (N).Nkind = N_Freeze_Generic_Entity);
4303 Set_Node4 (N, Val); -- semantic field, no parent set
4304 end Set_Entity;
4305
4306 procedure Set_Entry_Body_Formal_Part
4307 (N : Node_Id; Val : Node_Id) is
4308 begin
4309 pragma Assert (False
4310 or else NT (N).Nkind = N_Entry_Body);
4311 Set_Node5_With_Parent (N, Val);
4312 end Set_Entry_Body_Formal_Part;
4313
4314 procedure Set_Entry_Call_Alternative
4315 (N : Node_Id; Val : Node_Id) is
4316 begin
4317 pragma Assert (False
4318 or else NT (N).Nkind = N_Conditional_Entry_Call
4319 or else NT (N).Nkind = N_Timed_Entry_Call);
4320 Set_Node1_With_Parent (N, Val);
4321 end Set_Entry_Call_Alternative;
4322
4323 procedure Set_Entry_Call_Statement
4324 (N : Node_Id; Val : Node_Id) is
4325 begin
4326 pragma Assert (False
4327 or else NT (N).Nkind = N_Entry_Call_Alternative);
4328 Set_Node1_With_Parent (N, Val);
4329 end Set_Entry_Call_Statement;
4330
4331 procedure Set_Entry_Direct_Name
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_Node1_With_Parent (N, Val);
4337 end Set_Entry_Direct_Name;
4338
4339 procedure Set_Entry_Index
4340 (N : Node_Id; Val : Node_Id) is
4341 begin
4342 pragma Assert (False
4343 or else NT (N).Nkind = N_Accept_Statement);
4344 Set_Node5_With_Parent (N, Val);
4345 end Set_Entry_Index;
4346
4347 procedure Set_Entry_Index_Specification
4348 (N : Node_Id; Val : Node_Id) is
4349 begin
4350 pragma Assert (False
4351 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
4352 Set_Node4_With_Parent (N, Val);
4353 end Set_Entry_Index_Specification;
4354
4355 procedure Set_Etype
4356 (N : Node_Id; Val : Node_Id) is
4357 begin
4358 pragma Assert (False
4359 or else NT (N).Nkind in N_Has_Etype);
4360 Set_Node5 (N, Val); -- semantic field, no parent set
4361 end Set_Etype;
4362
4363 procedure Set_Exception_Choices
4364 (N : Node_Id; Val : List_Id) is
4365 begin
4366 pragma Assert (False
4367 or else NT (N).Nkind = N_Exception_Handler);
4368 Set_List4_With_Parent (N, Val);
4369 end Set_Exception_Choices;
4370
4371 procedure Set_Exception_Handlers
4372 (N : Node_Id; Val : List_Id) is
4373 begin
4374 pragma Assert (False
4375 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4376 Set_List5_With_Parent (N, Val);
4377 end Set_Exception_Handlers;
4378
4379 procedure Set_Exception_Junk
4380 (N : Node_Id; Val : Boolean := True) is
4381 begin
4382 pragma Assert (False
4383 or else NT (N).Nkind = N_Block_Statement
4384 or else NT (N).Nkind = N_Goto_Statement
4385 or else NT (N).Nkind = N_Label
4386 or else NT (N).Nkind = N_Object_Declaration
4387 or else NT (N).Nkind = N_Subtype_Declaration);
4388 Set_Flag8 (N, Val);
4389 end Set_Exception_Junk;
4390
4391 procedure Set_Exception_Label
4392 (N : Node_Id; Val : Node_Id) is
4393 begin
4394 pragma Assert (False
4395 or else NT (N).Nkind = N_Exception_Handler
4396 or else NT (N).Nkind = N_Push_Constraint_Error_Label
4397 or else NT (N).Nkind = N_Push_Program_Error_Label
4398 or else NT (N).Nkind = N_Push_Storage_Error_Label);
4399 Set_Node5 (N, Val); -- semantic field, no parent set
4400 end Set_Exception_Label;
4401
4402 procedure Set_Expansion_Delayed
4403 (N : Node_Id; Val : Boolean := True) is
4404 begin
4405 pragma Assert (False
4406 or else NT (N).Nkind = N_Aggregate
4407 or else NT (N).Nkind = N_Extension_Aggregate);
4408 Set_Flag11 (N, Val);
4409 end Set_Expansion_Delayed;
4410
4411 procedure Set_Explicit_Actual_Parameter
4412 (N : Node_Id; Val : Node_Id) is
4413 begin
4414 pragma Assert (False
4415 or else NT (N).Nkind = N_Parameter_Association);
4416 Set_Node3_With_Parent (N, Val);
4417 end Set_Explicit_Actual_Parameter;
4418
4419 procedure Set_Explicit_Generic_Actual_Parameter
4420 (N : Node_Id; Val : Node_Id) is
4421 begin
4422 pragma Assert (False
4423 or else NT (N).Nkind = N_Generic_Association);
4424 Set_Node1_With_Parent (N, Val);
4425 end Set_Explicit_Generic_Actual_Parameter;
4426
4427 procedure Set_Expression
4428 (N : Node_Id; Val : Node_Id) is
4429 begin
4430 pragma Assert (False
4431 or else NT (N).Nkind = N_Allocator
4432 or else NT (N).Nkind = N_Aspect_Specification
4433 or else NT (N).Nkind = N_Assignment_Statement
4434 or else NT (N).Nkind = N_At_Clause
4435 or else NT (N).Nkind = N_Attribute_Definition_Clause
4436 or else NT (N).Nkind = N_Case_Expression
4437 or else NT (N).Nkind = N_Case_Expression_Alternative
4438 or else NT (N).Nkind = N_Case_Statement
4439 or else NT (N).Nkind = N_Code_Statement
4440 or else NT (N).Nkind = N_Component_Association
4441 or else NT (N).Nkind = N_Component_Declaration
4442 or else NT (N).Nkind = N_Delay_Relative_Statement
4443 or else NT (N).Nkind = N_Delay_Until_Statement
4444 or else NT (N).Nkind = N_Discriminant_Association
4445 or else NT (N).Nkind = N_Discriminant_Specification
4446 or else NT (N).Nkind = N_Exception_Declaration
4447 or else NT (N).Nkind = N_Expression_Function
4448 or else NT (N).Nkind = N_Expression_With_Actions
4449 or else NT (N).Nkind = N_Free_Statement
4450 or else NT (N).Nkind = N_Mod_Clause
4451 or else NT (N).Nkind = N_Modular_Type_Definition
4452 or else NT (N).Nkind = N_Number_Declaration
4453 or else NT (N).Nkind = N_Object_Declaration
4454 or else NT (N).Nkind = N_Parameter_Specification
4455 or else NT (N).Nkind = N_Pragma_Argument_Association
4456 or else NT (N).Nkind = N_Qualified_Expression
4457 or else NT (N).Nkind = N_Raise_Expression
4458 or else NT (N).Nkind = N_Raise_Statement
4459 or else NT (N).Nkind = N_Simple_Return_Statement
4460 or else NT (N).Nkind = N_Type_Conversion
4461 or else NT (N).Nkind = N_Unchecked_Expression
4462 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4463 Set_Node3_With_Parent (N, Val);
4464 end Set_Expression;
4465
4466 procedure Set_Expressions
4467 (N : Node_Id; Val : List_Id) is
4468 begin
4469 pragma Assert (False
4470 or else NT (N).Nkind = N_Aggregate
4471 or else NT (N).Nkind = N_Attribute_Reference
4472 or else NT (N).Nkind = N_Extension_Aggregate
4473 or else NT (N).Nkind = N_If_Expression
4474 or else NT (N).Nkind = N_Indexed_Component);
4475 Set_List1_With_Parent (N, Val);
4476 end Set_Expressions;
4477
4478 procedure Set_First_Bit
4479 (N : Node_Id; Val : Node_Id) is
4480 begin
4481 pragma Assert (False
4482 or else NT (N).Nkind = N_Component_Clause);
4483 Set_Node3_With_Parent (N, Val);
4484 end Set_First_Bit;
4485
4486 procedure Set_First_Inlined_Subprogram
4487 (N : Node_Id; Val : Entity_Id) is
4488 begin
4489 pragma Assert (False
4490 or else NT (N).Nkind = N_Compilation_Unit);
4491 Set_Node3 (N, Val); -- semantic field, no parent set
4492 end Set_First_Inlined_Subprogram;
4493
4494 procedure Set_First_Name
4495 (N : Node_Id; Val : Boolean := True) is
4496 begin
4497 pragma Assert (False
4498 or else NT (N).Nkind = N_With_Clause);
4499 Set_Flag5 (N, Val);
4500 end Set_First_Name;
4501
4502 procedure Set_First_Named_Actual
4503 (N : Node_Id; Val : Node_Id) is
4504 begin
4505 pragma Assert (False
4506 or else NT (N).Nkind = N_Entry_Call_Statement
4507 or else NT (N).Nkind = N_Function_Call
4508 or else NT (N).Nkind = N_Procedure_Call_Statement);
4509 Set_Node4 (N, Val); -- semantic field, no parent set
4510 end Set_First_Named_Actual;
4511
4512 procedure Set_First_Real_Statement
4513 (N : Node_Id; Val : Node_Id) is
4514 begin
4515 pragma Assert (False
4516 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4517 Set_Node2 (N, Val); -- semantic field, no parent set
4518 end Set_First_Real_Statement;
4519
4520 procedure Set_First_Subtype_Link
4521 (N : Node_Id; Val : Entity_Id) is
4522 begin
4523 pragma Assert (False
4524 or else NT (N).Nkind = N_Freeze_Entity);
4525 Set_Node5 (N, Val); -- semantic field, no parent set
4526 end Set_First_Subtype_Link;
4527
4528 procedure Set_Float_Truncate
4529 (N : Node_Id; Val : Boolean := True) is
4530 begin
4531 pragma Assert (False
4532 or else NT (N).Nkind = N_Type_Conversion);
4533 Set_Flag11 (N, Val);
4534 end Set_Float_Truncate;
4535
4536 procedure Set_Formal_Type_Definition
4537 (N : Node_Id; Val : Node_Id) is
4538 begin
4539 pragma Assert (False
4540 or else NT (N).Nkind = N_Formal_Type_Declaration);
4541 Set_Node3_With_Parent (N, Val);
4542 end Set_Formal_Type_Definition;
4543
4544 procedure Set_Forwards_OK
4545 (N : Node_Id; Val : Boolean := True) is
4546 begin
4547 pragma Assert (False
4548 or else NT (N).Nkind = N_Assignment_Statement);
4549 Set_Flag5 (N, Val);
4550 end Set_Forwards_OK;
4551
4552 procedure Set_From_Aspect_Specification
4553 (N : Node_Id; Val : Boolean := True) is
4554 begin
4555 pragma Assert (False
4556 or else NT (N).Nkind = N_Attribute_Definition_Clause
4557 or else NT (N).Nkind = N_Pragma);
4558 Set_Flag13 (N, Val);
4559 end Set_From_Aspect_Specification;
4560
4561 procedure Set_From_At_End
4562 (N : Node_Id; Val : Boolean := True) is
4563 begin
4564 pragma Assert (False
4565 or else NT (N).Nkind = N_Raise_Statement);
4566 Set_Flag4 (N, Val);
4567 end Set_From_At_End;
4568
4569 procedure Set_From_At_Mod
4570 (N : Node_Id; Val : Boolean := True) is
4571 begin
4572 pragma Assert (False
4573 or else NT (N).Nkind = N_Attribute_Definition_Clause);
4574 Set_Flag4 (N, Val);
4575 end Set_From_At_Mod;
4576
4577 procedure Set_From_Default
4578 (N : Node_Id; Val : Boolean := True) is
4579 begin
4580 pragma Assert (False
4581 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4582 Set_Flag6 (N, Val);
4583 end Set_From_Default;
4584
4585 procedure Set_Generalized_Indexing
4586 (N : Node_Id; Val : Node_Id) is
4587 begin
4588 pragma Assert (False
4589 or else NT (N).Nkind = N_Indexed_Component);
4590 Set_Node4 (N, Val);
4591 end Set_Generalized_Indexing;
4592
4593 procedure Set_Generic_Associations
4594 (N : Node_Id; Val : List_Id) is
4595 begin
4596 pragma Assert (False
4597 or else NT (N).Nkind = N_Formal_Package_Declaration
4598 or else NT (N).Nkind = N_Function_Instantiation
4599 or else NT (N).Nkind = N_Package_Instantiation
4600 or else NT (N).Nkind = N_Procedure_Instantiation);
4601 Set_List3_With_Parent (N, Val);
4602 end Set_Generic_Associations;
4603
4604 procedure Set_Generic_Formal_Declarations
4605 (N : Node_Id; Val : List_Id) is
4606 begin
4607 pragma Assert (False
4608 or else NT (N).Nkind = N_Generic_Package_Declaration
4609 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
4610 Set_List2_With_Parent (N, Val);
4611 end Set_Generic_Formal_Declarations;
4612
4613 procedure Set_Generic_Parent
4614 (N : Node_Id; Val : Node_Id) is
4615 begin
4616 pragma Assert (False
4617 or else NT (N).Nkind = N_Function_Specification
4618 or else NT (N).Nkind = N_Package_Specification
4619 or else NT (N).Nkind = N_Procedure_Specification);
4620 Set_Node5 (N, Val);
4621 end Set_Generic_Parent;
4622
4623 procedure Set_Generic_Parent_Type
4624 (N : Node_Id; Val : Node_Id) is
4625 begin
4626 pragma Assert (False
4627 or else NT (N).Nkind = N_Subtype_Declaration);
4628 Set_Node4 (N, Val);
4629 end Set_Generic_Parent_Type;
4630
4631 procedure Set_Handled_Statement_Sequence
4632 (N : Node_Id; Val : Node_Id) is
4633 begin
4634 pragma Assert (False
4635 or else NT (N).Nkind = N_Accept_Statement
4636 or else NT (N).Nkind = N_Block_Statement
4637 or else NT (N).Nkind = N_Entry_Body
4638 or else NT (N).Nkind = N_Extended_Return_Statement
4639 or else NT (N).Nkind = N_Package_Body
4640 or else NT (N).Nkind = N_Subprogram_Body
4641 or else NT (N).Nkind = N_Task_Body);
4642 Set_Node4_With_Parent (N, Val);
4643 end Set_Handled_Statement_Sequence;
4644
4645 procedure Set_Handler_List_Entry
4646 (N : Node_Id; Val : Node_Id) is
4647 begin
4648 pragma Assert (False
4649 or else NT (N).Nkind = N_Object_Declaration);
4650 Set_Node2 (N, Val);
4651 end Set_Handler_List_Entry;
4652
4653 procedure Set_Has_Created_Identifier
4654 (N : Node_Id; Val : Boolean := True) is
4655 begin
4656 pragma Assert (False
4657 or else NT (N).Nkind = N_Block_Statement
4658 or else NT (N).Nkind = N_Loop_Statement);
4659 Set_Flag15 (N, Val);
4660 end Set_Has_Created_Identifier;
4661
4662 procedure Set_Has_Dereference_Action
4663 (N : Node_Id; Val : Boolean := True) is
4664 begin
4665 pragma Assert (False
4666 or else NT (N).Nkind = N_Explicit_Dereference);
4667 Set_Flag13 (N, Val);
4668 end Set_Has_Dereference_Action;
4669
4670 procedure Set_Has_Dynamic_Length_Check
4671 (N : Node_Id; Val : Boolean := True) is
4672 begin
4673 pragma Assert (False
4674 or else NT (N).Nkind in N_Subexpr);
4675 Set_Flag10 (N, Val);
4676 end Set_Has_Dynamic_Length_Check;
4677
4678 procedure Set_Has_Dynamic_Range_Check
4679 (N : Node_Id; Val : Boolean := True) is
4680 begin
4681 pragma Assert (False
4682 or else NT (N).Nkind = N_Subtype_Declaration
4683 or else NT (N).Nkind in N_Subexpr);
4684 Set_Flag12 (N, Val);
4685 end Set_Has_Dynamic_Range_Check;
4686
4687 procedure Set_Has_Init_Expression
4688 (N : Node_Id; Val : Boolean := True) is
4689 begin
4690 pragma Assert (False
4691 or else NT (N).Nkind = N_Object_Declaration);
4692 Set_Flag14 (N, Val);
4693 end Set_Has_Init_Expression;
4694
4695 procedure Set_Has_Local_Raise
4696 (N : Node_Id; Val : Boolean := True) is
4697 begin
4698 pragma Assert (False
4699 or else NT (N).Nkind = N_Exception_Handler);
4700 Set_Flag8 (N, Val);
4701 end Set_Has_Local_Raise;
4702
4703 procedure Set_Has_No_Elaboration_Code
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_Flag17 (N, Val);
4709 end Set_Has_No_Elaboration_Code;
4710
4711 procedure Set_Has_Pragma_Suppress_All
4712 (N : Node_Id; Val : Boolean := True) is
4713 begin
4714 pragma Assert (False
4715 or else NT (N).Nkind = N_Compilation_Unit);
4716 Set_Flag14 (N, Val);
4717 end Set_Has_Pragma_Suppress_All;
4718
4719 procedure Set_Has_Private_View
4720 (N : Node_Id; Val : Boolean := True) is
4721 begin
4722 pragma Assert (False
4723 or else NT (N).Nkind in N_Op
4724 or else NT (N).Nkind = N_Character_Literal
4725 or else NT (N).Nkind = N_Expanded_Name
4726 or else NT (N).Nkind = N_Identifier
4727 or else NT (N).Nkind = N_Operator_Symbol);
4728 Set_Flag11 (N, Val);
4729 end Set_Has_Private_View;
4730
4731 procedure Set_Has_Relative_Deadline_Pragma
4732 (N : Node_Id; Val : Boolean := True) is
4733 begin
4734 pragma Assert (False
4735 or else NT (N).Nkind = N_Subprogram_Body
4736 or else NT (N).Nkind = N_Task_Definition);
4737 Set_Flag9 (N, Val);
4738 end Set_Has_Relative_Deadline_Pragma;
4739
4740 procedure Set_Has_Self_Reference
4741 (N : Node_Id; Val : Boolean := True) is
4742 begin
4743 pragma Assert (False
4744 or else NT (N).Nkind = N_Aggregate
4745 or else NT (N).Nkind = N_Extension_Aggregate);
4746 Set_Flag13 (N, Val);
4747 end Set_Has_Self_Reference;
4748
4749 procedure Set_Has_SP_Choice
4750 (N : Node_Id; Val : Boolean := True) is
4751 begin
4752 pragma Assert (False
4753 or else NT (N).Nkind = N_Case_Expression_Alternative
4754 or else NT (N).Nkind = N_Case_Statement_Alternative
4755 or else NT (N).Nkind = N_Variant);
4756 Set_Flag15 (N, Val);
4757 end Set_Has_SP_Choice;
4758
4759 procedure Set_Has_Storage_Size_Pragma
4760 (N : Node_Id; Val : Boolean := True) is
4761 begin
4762 pragma Assert (False
4763 or else NT (N).Nkind = N_Task_Definition);
4764 Set_Flag5 (N, Val);
4765 end Set_Has_Storage_Size_Pragma;
4766
4767 procedure Set_Has_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_Flag11 (N, Val);
4773 end Set_Has_Wide_Character;
4774
4775 procedure Set_Has_Wide_Wide_Character
4776 (N : Node_Id; Val : Boolean := True) is
4777 begin
4778 pragma Assert (False
4779 or else NT (N).Nkind = N_String_Literal);
4780 Set_Flag13 (N, Val);
4781 end Set_Has_Wide_Wide_Character;
4782
4783 procedure Set_Header_Size_Added
4784 (N : Node_Id; Val : Boolean := True) is
4785 begin
4786 pragma Assert (False
4787 or else NT (N).Nkind = N_Attribute_Reference);
4788 Set_Flag11 (N, Val);
4789 end Set_Header_Size_Added;
4790
4791 procedure Set_Hidden_By_Use_Clause
4792 (N : Node_Id; Val : Elist_Id) is
4793 begin
4794 pragma Assert (False
4795 or else NT (N).Nkind = N_Use_Package_Clause
4796 or else NT (N).Nkind = N_Use_Type_Clause);
4797 Set_Elist4 (N, Val);
4798 end Set_Hidden_By_Use_Clause;
4799
4800 procedure Set_High_Bound
4801 (N : Node_Id; Val : Node_Id) is
4802 begin
4803 pragma Assert (False
4804 or else NT (N).Nkind = N_Range
4805 or else NT (N).Nkind = N_Real_Range_Specification
4806 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4807 Set_Node2_With_Parent (N, Val);
4808 end Set_High_Bound;
4809
4810 procedure Set_Identifier
4811 (N : Node_Id; Val : Node_Id) is
4812 begin
4813 pragma Assert (False
4814 or else NT (N).Nkind = N_Aspect_Specification
4815 or else NT (N).Nkind = N_At_Clause
4816 or else NT (N).Nkind = N_Block_Statement
4817 or else NT (N).Nkind = N_Designator
4818 or else NT (N).Nkind = N_Enumeration_Representation_Clause
4819 or else NT (N).Nkind = N_Label
4820 or else NT (N).Nkind = N_Loop_Statement
4821 or else NT (N).Nkind = N_Record_Representation_Clause);
4822 Set_Node1_With_Parent (N, Val);
4823 end Set_Identifier;
4824
4825 procedure Set_Implicit_With
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_Flag16 (N, Val);
4831 end Set_Implicit_With;
4832
4833 procedure Set_Implicit_With_From_Instantiation
4834 (N : Node_Id; Val : Boolean := True) is
4835 begin
4836 pragma Assert (False
4837 or else NT (N).Nkind = N_With_Clause);
4838 Set_Flag12 (N, Val);
4839 end Set_Implicit_With_From_Instantiation;
4840
4841 procedure Set_Interface_List
4842 (N : Node_Id; Val : List_Id) is
4843 begin
4844 pragma Assert (False
4845 or else NT (N).Nkind = N_Derived_Type_Definition
4846 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4847 or else NT (N).Nkind = N_Private_Extension_Declaration
4848 or else NT (N).Nkind = N_Protected_Type_Declaration
4849 or else NT (N).Nkind = N_Record_Definition
4850 or else NT (N).Nkind = N_Single_Protected_Declaration
4851 or else NT (N).Nkind = N_Single_Task_Declaration
4852 or else NT (N).Nkind = N_Task_Type_Declaration);
4853 Set_List2_With_Parent (N, Val);
4854 end Set_Interface_List;
4855
4856 procedure Set_Interface_Present
4857 (N : Node_Id; Val : Boolean := True) is
4858 begin
4859 pragma Assert (False
4860 or else NT (N).Nkind = N_Derived_Type_Definition
4861 or else NT (N).Nkind = N_Record_Definition);
4862 Set_Flag16 (N, Val);
4863 end Set_Interface_Present;
4864
4865 procedure Set_Import_Interface_Present
4866 (N : Node_Id; Val : Boolean := True) is
4867 begin
4868 pragma Assert (False
4869 or else NT (N).Nkind = N_Pragma);
4870 Set_Flag16 (N, Val);
4871 end Set_Import_Interface_Present;
4872
4873 procedure Set_In_Present
4874 (N : Node_Id; Val : Boolean := True) is
4875 begin
4876 pragma Assert (False
4877 or else NT (N).Nkind = N_Formal_Object_Declaration
4878 or else NT (N).Nkind = N_Parameter_Specification);
4879 Set_Flag15 (N, Val);
4880 end Set_In_Present;
4881
4882 procedure Set_Includes_Infinities
4883 (N : Node_Id; Val : Boolean := True) is
4884 begin
4885 pragma Assert (False
4886 or else NT (N).Nkind = N_Range);
4887 Set_Flag11 (N, Val);
4888 end Set_Includes_Infinities;
4889
4890 procedure Set_Incomplete_View
4891 (N : Node_Id; Val : Node_Id) is
4892 begin
4893 pragma Assert (False
4894 or else NT (N).Nkind = N_Full_Type_Declaration);
4895 Set_Node2 (N, Val); -- semantic field, no Parent set
4896 end Set_Incomplete_View;
4897
4898 procedure Set_Inherited_Discriminant
4899 (N : Node_Id; Val : Boolean := True) is
4900 begin
4901 pragma Assert (False
4902 or else NT (N).Nkind = N_Component_Association);
4903 Set_Flag13 (N, Val);
4904 end Set_Inherited_Discriminant;
4905
4906 procedure Set_Instance_Spec
4907 (N : Node_Id; Val : Node_Id) is
4908 begin
4909 pragma Assert (False
4910 or else NT (N).Nkind = N_Formal_Package_Declaration
4911 or else NT (N).Nkind = N_Function_Instantiation
4912 or else NT (N).Nkind = N_Package_Instantiation
4913 or else NT (N).Nkind = N_Procedure_Instantiation);
4914 Set_Node5 (N, Val); -- semantic field, no Parent set
4915 end Set_Instance_Spec;
4916
4917 procedure Set_Intval
4918 (N : Node_Id; Val : Uint) is
4919 begin
4920 pragma Assert (False
4921 or else NT (N).Nkind = N_Integer_Literal);
4922 Set_Uint3 (N, Val);
4923 end Set_Intval;
4924
4925 procedure Set_Is_Accessibility_Actual
4926 (N : Node_Id; Val : Boolean := True) is
4927 begin
4928 pragma Assert (False
4929 or else NT (N).Nkind = N_Parameter_Association);
4930 Set_Flag13 (N, Val);
4931 end Set_Is_Accessibility_Actual;
4932
4933 procedure Set_Is_Asynchronous_Call_Block
4934 (N : Node_Id; Val : Boolean := True) is
4935 begin
4936 pragma Assert (False
4937 or else NT (N).Nkind = N_Block_Statement);
4938 Set_Flag7 (N, Val);
4939 end Set_Is_Asynchronous_Call_Block;
4940
4941 procedure Set_Is_Boolean_Aspect
4942 (N : Node_Id; Val : Boolean := True) is
4943 begin
4944 pragma Assert (False
4945 or else NT (N).Nkind = N_Aspect_Specification);
4946 Set_Flag16 (N, Val);
4947 end Set_Is_Boolean_Aspect;
4948
4949 procedure Set_Is_Checked
4950 (N : Node_Id; Val : Boolean := True) is
4951 begin
4952 pragma Assert (False
4953 or else NT (N).Nkind = N_Aspect_Specification
4954 or else NT (N).Nkind = N_Pragma);
4955 Set_Flag11 (N, Val);
4956 end Set_Is_Checked;
4957
4958 procedure Set_Is_Component_Left_Opnd
4959 (N : Node_Id; Val : Boolean := True) is
4960 begin
4961 pragma Assert (False
4962 or else NT (N).Nkind = N_Op_Concat);
4963 Set_Flag13 (N, Val);
4964 end Set_Is_Component_Left_Opnd;
4965
4966 procedure Set_Is_Component_Right_Opnd
4967 (N : Node_Id; Val : Boolean := True) is
4968 begin
4969 pragma Assert (False
4970 or else NT (N).Nkind = N_Op_Concat);
4971 Set_Flag14 (N, Val);
4972 end Set_Is_Component_Right_Opnd;
4973
4974 procedure Set_Is_Controlling_Actual
4975 (N : Node_Id; Val : Boolean := True) is
4976 begin
4977 pragma Assert (False
4978 or else NT (N).Nkind in N_Subexpr);
4979 Set_Flag16 (N, Val);
4980 end Set_Is_Controlling_Actual;
4981
4982 procedure Set_Is_Delayed_Aspect
4983 (N : Node_Id; Val : Boolean := True) is
4984 begin
4985 pragma Assert (False
4986 or else NT (N).Nkind = N_Aspect_Specification
4987 or else NT (N).Nkind = N_Attribute_Definition_Clause
4988 or else NT (N).Nkind = N_Pragma);
4989 Set_Flag14 (N, Val);
4990 end Set_Is_Delayed_Aspect;
4991
4992 procedure Set_Is_Disabled
4993 (N : Node_Id; Val : Boolean := True) is
4994 begin
4995 pragma Assert (False
4996 or else NT (N).Nkind = N_Aspect_Specification
4997 or else NT (N).Nkind = N_Pragma);
4998 Set_Flag15 (N, Val);
4999 end Set_Is_Disabled;
5000
5001 procedure Set_Is_Dynamic_Coextension
5002 (N : Node_Id; Val : Boolean := True) is
5003 begin
5004 pragma Assert (False
5005 or else NT (N).Nkind = N_Allocator);
5006 Set_Flag18 (N, Val);
5007 end Set_Is_Dynamic_Coextension;
5008
5009 procedure Set_Is_Elsif
5010 (N : Node_Id; Val : Boolean := True) is
5011 begin
5012 pragma Assert (False
5013 or else NT (N).Nkind = N_If_Expression);
5014 Set_Flag13 (N, Val);
5015 end Set_Is_Elsif;
5016
5017 procedure Set_Is_Entry_Barrier_Function
5018 (N : Node_Id; Val : Boolean := True) is
5019 begin
5020 pragma Assert (False
5021 or else NT (N).Nkind = N_Subprogram_Body);
5022 Set_Flag8 (N, Val);
5023 end Set_Is_Entry_Barrier_Function;
5024
5025 procedure Set_Is_Expanded_Build_In_Place_Call
5026 (N : Node_Id; Val : Boolean := True) is
5027 begin
5028 pragma Assert (False
5029 or else NT (N).Nkind = N_Function_Call);
5030 Set_Flag11 (N, Val);
5031 end Set_Is_Expanded_Build_In_Place_Call;
5032
5033 procedure Set_Is_Finalization_Wrapper
5034 (N : Node_Id; Val : Boolean := True) is
5035 begin
5036 pragma Assert (False
5037 or else NT (N).Nkind = N_Block_Statement);
5038 Set_Flag9 (N, Val);
5039 end Set_Is_Finalization_Wrapper;
5040
5041 procedure Set_Is_Folded_In_Parser
5042 (N : Node_Id; Val : Boolean := True) is
5043 begin
5044 pragma Assert (False
5045 or else NT (N).Nkind = N_String_Literal);
5046 Set_Flag4 (N, Val);
5047 end Set_Is_Folded_In_Parser;
5048
5049 procedure Set_Is_Ignored
5050 (N : Node_Id; Val : Boolean := True) is
5051 begin
5052 pragma Assert (False
5053 or else NT (N).Nkind = N_Aspect_Specification
5054 or else NT (N).Nkind = N_Pragma);
5055 Set_Flag9 (N, Val);
5056 end Set_Is_Ignored;
5057
5058 procedure Set_Is_In_Discriminant_Check
5059 (N : Node_Id; Val : Boolean := True) is
5060 begin
5061 pragma Assert (False
5062 or else NT (N).Nkind = N_Selected_Component);
5063 Set_Flag11 (N, Val);
5064 end Set_Is_In_Discriminant_Check;
5065
5066 procedure Set_Is_Machine_Number
5067 (N : Node_Id; Val : Boolean := True) is
5068 begin
5069 pragma Assert (False
5070 or else NT (N).Nkind = N_Real_Literal);
5071 Set_Flag11 (N, Val);
5072 end Set_Is_Machine_Number;
5073
5074 procedure Set_Is_Null_Loop
5075 (N : Node_Id; Val : Boolean := True) is
5076 begin
5077 pragma Assert (False
5078 or else NT (N).Nkind = N_Loop_Statement);
5079 Set_Flag16 (N, Val);
5080 end Set_Is_Null_Loop;
5081
5082 procedure Set_Is_Overloaded
5083 (N : Node_Id; Val : Boolean := True) is
5084 begin
5085 pragma Assert (False
5086 or else NT (N).Nkind in N_Subexpr);
5087 Set_Flag5 (N, Val);
5088 end Set_Is_Overloaded;
5089
5090 procedure Set_Is_Power_Of_2_For_Shift
5091 (N : Node_Id; Val : Boolean := True) is
5092 begin
5093 pragma Assert (False
5094 or else NT (N).Nkind = N_Op_Expon);
5095 Set_Flag13 (N, Val);
5096 end Set_Is_Power_Of_2_For_Shift;
5097
5098 procedure Set_Is_Prefixed_Call
5099 (N : Node_Id; Val : Boolean := True) is
5100 begin
5101 pragma Assert (False
5102 or else NT (N).Nkind = N_Selected_Component);
5103 Set_Flag17 (N, Val);
5104 end Set_Is_Prefixed_Call;
5105
5106 procedure Set_Is_Protected_Subprogram_Body
5107 (N : Node_Id; Val : Boolean := True) is
5108 begin
5109 pragma Assert (False
5110 or else NT (N).Nkind = N_Subprogram_Body);
5111 Set_Flag7 (N, Val);
5112 end Set_Is_Protected_Subprogram_Body;
5113
5114 procedure Set_Is_Static_Coextension
5115 (N : Node_Id; Val : Boolean := True) is
5116 begin
5117 pragma Assert (False
5118 or else NT (N).Nkind = N_Allocator);
5119 Set_Flag14 (N, Val);
5120 end Set_Is_Static_Coextension;
5121
5122 procedure Set_Is_Static_Expression
5123 (N : Node_Id; Val : Boolean := True) is
5124 begin
5125 pragma Assert (False
5126 or else NT (N).Nkind in N_Subexpr);
5127 Set_Flag6 (N, Val);
5128 end Set_Is_Static_Expression;
5129
5130 procedure Set_Is_Subprogram_Descriptor
5131 (N : Node_Id; Val : Boolean := True) is
5132 begin
5133 pragma Assert (False
5134 or else NT (N).Nkind = N_Object_Declaration);
5135 Set_Flag16 (N, Val);
5136 end Set_Is_Subprogram_Descriptor;
5137
5138 procedure Set_Is_Task_Allocation_Block
5139 (N : Node_Id; Val : Boolean := True) is
5140 begin
5141 pragma Assert (False
5142 or else NT (N).Nkind = N_Block_Statement);
5143 Set_Flag6 (N, Val);
5144 end Set_Is_Task_Allocation_Block;
5145
5146 procedure Set_Is_Task_Master
5147 (N : Node_Id; Val : Boolean := True) is
5148 begin
5149 pragma Assert (False
5150 or else NT (N).Nkind = N_Block_Statement
5151 or else NT (N).Nkind = N_Subprogram_Body
5152 or else NT (N).Nkind = N_Task_Body);
5153 Set_Flag5 (N, Val);
5154 end Set_Is_Task_Master;
5155
5156 procedure Set_Iteration_Scheme
5157 (N : Node_Id; Val : Node_Id) is
5158 begin
5159 pragma Assert (False
5160 or else NT (N).Nkind = N_Loop_Statement);
5161 Set_Node2_With_Parent (N, Val);
5162 end Set_Iteration_Scheme;
5163
5164 procedure Set_Iterator_Specification
5165 (N : Node_Id; Val : Node_Id) is
5166 begin
5167 pragma Assert (False
5168 or else NT (N).Nkind = N_Iteration_Scheme
5169 or else NT (N).Nkind = N_Quantified_Expression);
5170 Set_Node2_With_Parent (N, Val);
5171 end Set_Iterator_Specification;
5172
5173 procedure Set_Itype
5174 (N : Node_Id; Val : Entity_Id) is
5175 begin
5176 pragma Assert (False
5177 or else NT (N).Nkind = N_Itype_Reference);
5178 Set_Node1 (N, Val); -- no parent, semantic field
5179 end Set_Itype;
5180
5181 procedure Set_Kill_Range_Check
5182 (N : Node_Id; Val : Boolean := True) is
5183 begin
5184 pragma Assert (False
5185 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5186 Set_Flag11 (N, Val);
5187 end Set_Kill_Range_Check;
5188
5189 procedure Set_Label_Construct
5190 (N : Node_Id; Val : Node_Id) is
5191 begin
5192 pragma Assert (False
5193 or else NT (N).Nkind = N_Implicit_Label_Declaration);
5194 Set_Node2 (N, Val); -- semantic field, no parent set
5195 end Set_Label_Construct;
5196
5197 procedure Set_Last_Bit
5198 (N : Node_Id; Val : Node_Id) is
5199 begin
5200 pragma Assert (False
5201 or else NT (N).Nkind = N_Component_Clause);
5202 Set_Node4_With_Parent (N, Val);
5203 end Set_Last_Bit;
5204
5205 procedure Set_Last_Name
5206 (N : Node_Id; Val : Boolean := True) is
5207 begin
5208 pragma Assert (False
5209 or else NT (N).Nkind = N_With_Clause);
5210 Set_Flag6 (N, Val);
5211 end Set_Last_Name;
5212
5213 procedure Set_Left_Opnd
5214 (N : Node_Id; Val : Node_Id) is
5215 begin
5216 pragma Assert (False
5217 or else NT (N).Nkind = N_And_Then
5218 or else NT (N).Nkind = N_In
5219 or else NT (N).Nkind = N_Not_In
5220 or else NT (N).Nkind = N_Or_Else
5221 or else NT (N).Nkind in N_Binary_Op);
5222 Set_Node2_With_Parent (N, Val);
5223 end Set_Left_Opnd;
5224
5225 procedure Set_Library_Unit
5226 (N : Node_Id; Val : Node_Id) is
5227 begin
5228 pragma Assert (False
5229 or else NT (N).Nkind = N_Compilation_Unit
5230 or else NT (N).Nkind = N_Package_Body_Stub
5231 or else NT (N).Nkind = N_Protected_Body_Stub
5232 or else NT (N).Nkind = N_Subprogram_Body_Stub
5233 or else NT (N).Nkind = N_Task_Body_Stub
5234 or else NT (N).Nkind = N_With_Clause);
5235 Set_Node4 (N, Val); -- semantic field, no parent set
5236 end Set_Library_Unit;
5237
5238 procedure Set_Limited_View_Installed
5239 (N : Node_Id; Val : Boolean := True) is
5240 begin
5241 pragma Assert (False
5242 or else NT (N).Nkind = N_Package_Specification
5243 or else NT (N).Nkind = N_With_Clause);
5244 Set_Flag18 (N, Val);
5245 end Set_Limited_View_Installed;
5246
5247 procedure Set_Limited_Present
5248 (N : Node_Id; Val : Boolean := True) is
5249 begin
5250 pragma Assert (False
5251 or else NT (N).Nkind = N_Derived_Type_Definition
5252 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5253 or else NT (N).Nkind = N_Formal_Private_Type_Definition
5254 or else NT (N).Nkind = N_Private_Extension_Declaration
5255 or else NT (N).Nkind = N_Private_Type_Declaration
5256 or else NT (N).Nkind = N_Record_Definition
5257 or else NT (N).Nkind = N_With_Clause);
5258 Set_Flag17 (N, Val);
5259 end Set_Limited_Present;
5260
5261 procedure Set_Literals
5262 (N : Node_Id; Val : List_Id) is
5263 begin
5264 pragma Assert (False
5265 or else NT (N).Nkind = N_Enumeration_Type_Definition);
5266 Set_List1_With_Parent (N, Val);
5267 end Set_Literals;
5268
5269 procedure Set_Local_Raise_Not_OK
5270 (N : Node_Id; Val : Boolean := True) is
5271 begin
5272 pragma Assert (False
5273 or else NT (N).Nkind = N_Exception_Handler);
5274 Set_Flag7 (N, Val);
5275 end Set_Local_Raise_Not_OK;
5276
5277 procedure Set_Local_Raise_Statements
5278 (N : Node_Id; Val : Elist_Id) is
5279 begin
5280 pragma Assert (False
5281 or else NT (N).Nkind = N_Exception_Handler);
5282 Set_Elist1 (N, Val);
5283 end Set_Local_Raise_Statements;
5284
5285 procedure Set_Loop_Actions
5286 (N : Node_Id; Val : List_Id) is
5287 begin
5288 pragma Assert (False
5289 or else NT (N).Nkind = N_Component_Association);
5290 Set_List2 (N, Val); -- semantic field, no parent set
5291 end Set_Loop_Actions;
5292
5293 procedure Set_Loop_Parameter_Specification
5294 (N : Node_Id; Val : Node_Id) is
5295 begin
5296 pragma Assert (False
5297 or else NT (N).Nkind = N_Iteration_Scheme
5298 or else NT (N).Nkind = N_Quantified_Expression);
5299 Set_Node4_With_Parent (N, Val);
5300 end Set_Loop_Parameter_Specification;
5301
5302 procedure Set_Low_Bound
5303 (N : Node_Id; Val : Node_Id) is
5304 begin
5305 pragma Assert (False
5306 or else NT (N).Nkind = N_Range
5307 or else NT (N).Nkind = N_Real_Range_Specification
5308 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
5309 Set_Node1_With_Parent (N, Val);
5310 end Set_Low_Bound;
5311
5312 procedure Set_Mod_Clause
5313 (N : Node_Id; Val : Node_Id) is
5314 begin
5315 pragma Assert (False
5316 or else NT (N).Nkind = N_Record_Representation_Clause);
5317 Set_Node2_With_Parent (N, Val);
5318 end Set_Mod_Clause;
5319
5320 procedure Set_More_Ids
5321 (N : Node_Id; Val : Boolean := True) is
5322 begin
5323 pragma Assert (False
5324 or else NT (N).Nkind = N_Component_Declaration
5325 or else NT (N).Nkind = N_Discriminant_Specification
5326 or else NT (N).Nkind = N_Exception_Declaration
5327 or else NT (N).Nkind = N_Formal_Object_Declaration
5328 or else NT (N).Nkind = N_Number_Declaration
5329 or else NT (N).Nkind = N_Object_Declaration
5330 or else NT (N).Nkind = N_Parameter_Specification);
5331 Set_Flag5 (N, Val);
5332 end Set_More_Ids;
5333
5334 procedure Set_Must_Be_Byte_Aligned
5335 (N : Node_Id; Val : Boolean := True) is
5336 begin
5337 pragma Assert (False
5338 or else NT (N).Nkind = N_Attribute_Reference);
5339 Set_Flag14 (N, Val);
5340 end Set_Must_Be_Byte_Aligned;
5341
5342 procedure Set_Must_Not_Freeze
5343 (N : Node_Id; Val : Boolean := True) is
5344 begin
5345 pragma Assert (False
5346 or else NT (N).Nkind = N_Subtype_Indication
5347 or else NT (N).Nkind in N_Subexpr);
5348 Set_Flag8 (N, Val);
5349 end Set_Must_Not_Freeze;
5350
5351 procedure Set_Must_Not_Override
5352 (N : Node_Id; Val : Boolean := True) is
5353 begin
5354 pragma Assert (False
5355 or else NT (N).Nkind = N_Entry_Declaration
5356 or else NT (N).Nkind = N_Function_Instantiation
5357 or else NT (N).Nkind = N_Function_Specification
5358 or else NT (N).Nkind = N_Procedure_Instantiation
5359 or else NT (N).Nkind = N_Procedure_Specification);
5360 Set_Flag15 (N, Val);
5361 end Set_Must_Not_Override;
5362
5363 procedure Set_Must_Override
5364 (N : Node_Id; Val : Boolean := True) is
5365 begin
5366 pragma Assert (False
5367 or else NT (N).Nkind = N_Entry_Declaration
5368 or else NT (N).Nkind = N_Function_Instantiation
5369 or else NT (N).Nkind = N_Function_Specification
5370 or else NT (N).Nkind = N_Procedure_Instantiation
5371 or else NT (N).Nkind = N_Procedure_Specification);
5372 Set_Flag14 (N, Val);
5373 end Set_Must_Override;
5374
5375 procedure Set_Name
5376 (N : Node_Id; Val : Node_Id) is
5377 begin
5378 pragma Assert (False
5379 or else NT (N).Nkind = N_Assignment_Statement
5380 or else NT (N).Nkind = N_Attribute_Definition_Clause
5381 or else NT (N).Nkind = N_Defining_Program_Unit_Name
5382 or else NT (N).Nkind = N_Designator
5383 or else NT (N).Nkind = N_Entry_Call_Statement
5384 or else NT (N).Nkind = N_Exception_Renaming_Declaration
5385 or else NT (N).Nkind = N_Exit_Statement
5386 or else NT (N).Nkind = N_Formal_Package_Declaration
5387 or else NT (N).Nkind = N_Function_Call
5388 or else NT (N).Nkind = N_Function_Instantiation
5389 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5390 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5391 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5392 or else NT (N).Nkind = N_Goto_Statement
5393 or else NT (N).Nkind = N_Iterator_Specification
5394 or else NT (N).Nkind = N_Object_Renaming_Declaration
5395 or else NT (N).Nkind = N_Package_Instantiation
5396 or else NT (N).Nkind = N_Package_Renaming_Declaration
5397 or else NT (N).Nkind = N_Procedure_Call_Statement
5398 or else NT (N).Nkind = N_Procedure_Instantiation
5399 or else NT (N).Nkind = N_Raise_Expression
5400 or else NT (N).Nkind = N_Raise_Statement
5401 or else NT (N).Nkind = N_Requeue_Statement
5402 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
5403 or else NT (N).Nkind = N_Subunit
5404 or else NT (N).Nkind = N_Variant_Part
5405 or else NT (N).Nkind = N_With_Clause);
5406 Set_Node2_With_Parent (N, Val);
5407 end Set_Name;
5408
5409 procedure Set_Names
5410 (N : Node_Id; Val : List_Id) is
5411 begin
5412 pragma Assert (False
5413 or else NT (N).Nkind = N_Abort_Statement
5414 or else NT (N).Nkind = N_Use_Package_Clause);
5415 Set_List2_With_Parent (N, Val);
5416 end Set_Names;
5417
5418 procedure Set_Next_Entity
5419 (N : Node_Id; Val : Node_Id) is
5420 begin
5421 pragma Assert (False
5422 or else NT (N).Nkind = N_Defining_Character_Literal
5423 or else NT (N).Nkind = N_Defining_Identifier
5424 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5425 Set_Node2 (N, Val); -- semantic field, no parent set
5426 end Set_Next_Entity;
5427
5428 procedure Set_Next_Exit_Statement
5429 (N : Node_Id; Val : Node_Id) is
5430 begin
5431 pragma Assert (False
5432 or else NT (N).Nkind = N_Exit_Statement);
5433 Set_Node3 (N, Val); -- semantic field, no parent set
5434 end Set_Next_Exit_Statement;
5435
5436 procedure Set_Next_Implicit_With
5437 (N : Node_Id; Val : Node_Id) is
5438 begin
5439 pragma Assert (False
5440 or else NT (N).Nkind = N_With_Clause);
5441 Set_Node3 (N, Val); -- semantic field, no parent set
5442 end Set_Next_Implicit_With;
5443
5444 procedure Set_Next_Named_Actual
5445 (N : Node_Id; Val : Node_Id) is
5446 begin
5447 pragma Assert (False
5448 or else NT (N).Nkind = N_Parameter_Association);
5449 Set_Node4 (N, Val); -- semantic field, no parent set
5450 end Set_Next_Named_Actual;
5451
5452 procedure Set_Next_Pragma
5453 (N : Node_Id; Val : Node_Id) is
5454 begin
5455 pragma Assert (False
5456 or else NT (N).Nkind = N_Pragma);
5457 Set_Node1 (N, Val); -- semantic field, no parent set
5458 end Set_Next_Pragma;
5459
5460 procedure Set_Next_Rep_Item
5461 (N : Node_Id; Val : Node_Id) is
5462 begin
5463 pragma Assert (False
5464 or else NT (N).Nkind = N_Aspect_Specification
5465 or else NT (N).Nkind = N_Attribute_Definition_Clause
5466 or else NT (N).Nkind = N_Enumeration_Representation_Clause
5467 or else NT (N).Nkind = N_Pragma
5468 or else NT (N).Nkind = N_Record_Representation_Clause);
5469 Set_Node5 (N, Val); -- semantic field, no parent set
5470 end Set_Next_Rep_Item;
5471
5472 procedure Set_Next_Use_Clause
5473 (N : Node_Id; Val : Node_Id) is
5474 begin
5475 pragma Assert (False
5476 or else NT (N).Nkind = N_Use_Package_Clause
5477 or else NT (N).Nkind = N_Use_Type_Clause);
5478 Set_Node3 (N, Val); -- semantic field, no parent set
5479 end Set_Next_Use_Clause;
5480
5481 procedure Set_No_Ctrl_Actions
5482 (N : Node_Id; Val : Boolean := True) is
5483 begin
5484 pragma Assert (False
5485 or else NT (N).Nkind = N_Assignment_Statement);
5486 Set_Flag7 (N, Val);
5487 end Set_No_Ctrl_Actions;
5488
5489 procedure Set_No_Elaboration_Check
5490 (N : Node_Id; Val : Boolean := True) is
5491 begin
5492 pragma Assert (False
5493 or else NT (N).Nkind = N_Function_Call
5494 or else NT (N).Nkind = N_Procedure_Call_Statement);
5495 Set_Flag14 (N, Val);
5496 end Set_No_Elaboration_Check;
5497
5498 procedure Set_No_Entities_Ref_In_Spec
5499 (N : Node_Id; Val : Boolean := True) is
5500 begin
5501 pragma Assert (False
5502 or else NT (N).Nkind = N_With_Clause);
5503 Set_Flag8 (N, Val);
5504 end Set_No_Entities_Ref_In_Spec;
5505
5506 procedure Set_No_Initialization
5507 (N : Node_Id; Val : Boolean := True) is
5508 begin
5509 pragma Assert (False
5510 or else NT (N).Nkind = N_Allocator
5511 or else NT (N).Nkind = N_Object_Declaration);
5512 Set_Flag13 (N, Val);
5513 end Set_No_Initialization;
5514
5515 procedure Set_No_Minimize_Eliminate
5516 (N : Node_Id; Val : Boolean := True) is
5517 begin
5518 pragma Assert (False
5519 or else NT (N).Nkind = N_In
5520 or else NT (N).Nkind = N_Not_In);
5521 Set_Flag17 (N, Val);
5522 end Set_No_Minimize_Eliminate;
5523
5524 procedure Set_No_Truncation
5525 (N : Node_Id; Val : Boolean := True) is
5526 begin
5527 pragma Assert (False
5528 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5529 Set_Flag17 (N, Val);
5530 end Set_No_Truncation;
5531
5532 procedure Set_Non_Aliased_Prefix
5533 (N : Node_Id; Val : Boolean := True) is
5534 begin
5535 pragma Assert (False
5536 or else NT (N).Nkind = N_Attribute_Reference);
5537 Set_Flag18 (N, Val);
5538 end Set_Non_Aliased_Prefix;
5539
5540 procedure Set_Null_Present
5541 (N : Node_Id; Val : Boolean := True) is
5542 begin
5543 pragma Assert (False
5544 or else NT (N).Nkind = N_Component_List
5545 or else NT (N).Nkind = N_Procedure_Specification
5546 or else NT (N).Nkind = N_Record_Definition);
5547 Set_Flag13 (N, Val);
5548 end Set_Null_Present;
5549
5550 procedure Set_Null_Exclusion_Present
5551 (N : Node_Id; Val : Boolean := True) is
5552 begin
5553 pragma Assert (False
5554 or else NT (N).Nkind = N_Access_Definition
5555 or else NT (N).Nkind = N_Access_Function_Definition
5556 or else NT (N).Nkind = N_Access_Procedure_Definition
5557 or else NT (N).Nkind = N_Access_To_Object_Definition
5558 or else NT (N).Nkind = N_Allocator
5559 or else NT (N).Nkind = N_Component_Definition
5560 or else NT (N).Nkind = N_Derived_Type_Definition
5561 or else NT (N).Nkind = N_Discriminant_Specification
5562 or else NT (N).Nkind = N_Formal_Object_Declaration
5563 or else NT (N).Nkind = N_Function_Specification
5564 or else NT (N).Nkind = N_Object_Declaration
5565 or else NT (N).Nkind = N_Object_Renaming_Declaration
5566 or else NT (N).Nkind = N_Parameter_Specification
5567 or else NT (N).Nkind = N_Subtype_Declaration);
5568 Set_Flag11 (N, Val);
5569 end Set_Null_Exclusion_Present;
5570
5571 procedure Set_Null_Exclusion_In_Return_Present
5572 (N : Node_Id; Val : Boolean := True) is
5573 begin
5574 pragma Assert (False
5575 or else NT (N).Nkind = N_Access_Function_Definition);
5576 Set_Flag14 (N, Val);
5577 end Set_Null_Exclusion_In_Return_Present;
5578
5579 procedure Set_Null_Record_Present
5580 (N : Node_Id; Val : Boolean := True) is
5581 begin
5582 pragma Assert (False
5583 or else NT (N).Nkind = N_Aggregate
5584 or else NT (N).Nkind = N_Extension_Aggregate);
5585 Set_Flag17 (N, Val);
5586 end Set_Null_Record_Present;
5587
5588 procedure Set_Object_Definition
5589 (N : Node_Id; Val : Node_Id) is
5590 begin
5591 pragma Assert (False
5592 or else NT (N).Nkind = N_Object_Declaration);
5593 Set_Node4_With_Parent (N, Val);
5594 end Set_Object_Definition;
5595
5596 procedure Set_Of_Present
5597 (N : Node_Id; Val : Boolean := True) is
5598 begin
5599 pragma Assert (False
5600 or else NT (N).Nkind = N_Iterator_Specification);
5601 Set_Flag16 (N, Val);
5602 end Set_Of_Present;
5603
5604 procedure Set_Original_Discriminant
5605 (N : Node_Id; Val : Node_Id) is
5606 begin
5607 pragma Assert (False
5608 or else NT (N).Nkind = N_Identifier);
5609 Set_Node2 (N, Val); -- semantic field, no parent set
5610 end Set_Original_Discriminant;
5611
5612 procedure Set_Original_Entity
5613 (N : Node_Id; Val : Entity_Id) is
5614 begin
5615 pragma Assert (False
5616 or else NT (N).Nkind = N_Integer_Literal
5617 or else NT (N).Nkind = N_Real_Literal);
5618 Set_Node2 (N, Val); -- semantic field, no parent set
5619 end Set_Original_Entity;
5620
5621 procedure Set_Others_Discrete_Choices
5622 (N : Node_Id; Val : List_Id) is
5623 begin
5624 pragma Assert (False
5625 or else NT (N).Nkind = N_Others_Choice);
5626 Set_List1_With_Parent (N, Val);
5627 end Set_Others_Discrete_Choices;
5628
5629 procedure Set_Out_Present
5630 (N : Node_Id; Val : Boolean := True) is
5631 begin
5632 pragma Assert (False
5633 or else NT (N).Nkind = N_Formal_Object_Declaration
5634 or else NT (N).Nkind = N_Parameter_Specification);
5635 Set_Flag17 (N, Val);
5636 end Set_Out_Present;
5637
5638 procedure Set_Parameter_Associations
5639 (N : Node_Id; Val : List_Id) is
5640 begin
5641 pragma Assert (False
5642 or else NT (N).Nkind = N_Entry_Call_Statement
5643 or else NT (N).Nkind = N_Function_Call
5644 or else NT (N).Nkind = N_Procedure_Call_Statement);
5645 Set_List3_With_Parent (N, Val);
5646 end Set_Parameter_Associations;
5647
5648 procedure Set_Parameter_List_Truncated
5649 (N : Node_Id; Val : Boolean := True) is
5650 begin
5651 pragma Assert (False
5652 or else NT (N).Nkind = N_Function_Call
5653 or else NT (N).Nkind = N_Procedure_Call_Statement);
5654 Set_Flag17 (N, Val);
5655 end Set_Parameter_List_Truncated;
5656
5657 procedure Set_Parameter_Specifications
5658 (N : Node_Id; Val : List_Id) is
5659 begin
5660 pragma Assert (False
5661 or else NT (N).Nkind = N_Accept_Statement
5662 or else NT (N).Nkind = N_Access_Function_Definition
5663 or else NT (N).Nkind = N_Access_Procedure_Definition
5664 or else NT (N).Nkind = N_Entry_Body_Formal_Part
5665 or else NT (N).Nkind = N_Entry_Declaration
5666 or else NT (N).Nkind = N_Function_Specification
5667 or else NT (N).Nkind = N_Procedure_Specification);
5668 Set_List3_With_Parent (N, Val);
5669 end Set_Parameter_Specifications;
5670
5671 procedure Set_Parameter_Type
5672 (N : Node_Id; Val : Node_Id) is
5673 begin
5674 pragma Assert (False
5675 or else NT (N).Nkind = N_Parameter_Specification);
5676 Set_Node2_With_Parent (N, Val);
5677 end Set_Parameter_Type;
5678
5679 procedure Set_Parent_Spec
5680 (N : Node_Id; Val : Node_Id) is
5681 begin
5682 pragma Assert (False
5683 or else NT (N).Nkind = N_Function_Instantiation
5684 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5685 or else NT (N).Nkind = N_Generic_Package_Declaration
5686 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5687 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5688 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5689 or else NT (N).Nkind = N_Package_Declaration
5690 or else NT (N).Nkind = N_Package_Instantiation
5691 or else NT (N).Nkind = N_Package_Renaming_Declaration
5692 or else NT (N).Nkind = N_Procedure_Instantiation
5693 or else NT (N).Nkind = N_Subprogram_Declaration
5694 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5695 Set_Node4 (N, Val); -- semantic field, no parent set
5696 end Set_Parent_Spec;
5697
5698 procedure Set_Position
5699 (N : Node_Id; Val : Node_Id) is
5700 begin
5701 pragma Assert (False
5702 or else NT (N).Nkind = N_Component_Clause);
5703 Set_Node2_With_Parent (N, Val);
5704 end Set_Position;
5705
5706 procedure Set_Pragma_Argument_Associations
5707 (N : Node_Id; Val : List_Id) is
5708 begin
5709 pragma Assert (False
5710 or else NT (N).Nkind = N_Pragma);
5711 Set_List2_With_Parent (N, Val);
5712 end Set_Pragma_Argument_Associations;
5713
5714 procedure Set_Pragma_Identifier
5715 (N : Node_Id; Val : Node_Id) is
5716 begin
5717 pragma Assert (False
5718 or else NT (N).Nkind = N_Pragma);
5719 Set_Node4_With_Parent (N, Val);
5720 end Set_Pragma_Identifier;
5721
5722 procedure Set_Pragmas_After
5723 (N : Node_Id; Val : List_Id) is
5724 begin
5725 pragma Assert (False
5726 or else NT (N).Nkind = N_Compilation_Unit_Aux
5727 or else NT (N).Nkind = N_Terminate_Alternative);
5728 Set_List5_With_Parent (N, Val);
5729 end Set_Pragmas_After;
5730
5731 procedure Set_Pragmas_Before
5732 (N : Node_Id; Val : List_Id) is
5733 begin
5734 pragma Assert (False
5735 or else NT (N).Nkind = N_Accept_Alternative
5736 or else NT (N).Nkind = N_Delay_Alternative
5737 or else NT (N).Nkind = N_Entry_Call_Alternative
5738 or else NT (N).Nkind = N_Mod_Clause
5739 or else NT (N).Nkind = N_Terminate_Alternative
5740 or else NT (N).Nkind = N_Triggering_Alternative);
5741 Set_List4_With_Parent (N, Val);
5742 end Set_Pragmas_Before;
5743
5744 procedure Set_Pre_Post_Conditions
5745 (N : Node_Id; Val : Node_Id) is
5746 begin
5747 pragma Assert (False
5748 or else NT (N).Nkind = N_Contract);
5749 Set_Node1 (N, Val); -- semantic field, no parent set
5750 end Set_Pre_Post_Conditions;
5751
5752 procedure Set_Prefix
5753 (N : Node_Id; Val : Node_Id) is
5754 begin
5755 pragma Assert (False
5756 or else NT (N).Nkind = N_Attribute_Reference
5757 or else NT (N).Nkind = N_Expanded_Name
5758 or else NT (N).Nkind = N_Explicit_Dereference
5759 or else NT (N).Nkind = N_Indexed_Component
5760 or else NT (N).Nkind = N_Reference
5761 or else NT (N).Nkind = N_Selected_Component
5762 or else NT (N).Nkind = N_Slice);
5763 Set_Node3_With_Parent (N, Val);
5764 end Set_Prefix;
5765
5766 procedure Set_Premature_Use
5767 (N : Node_Id; Val : Node_Id) is
5768 begin
5769 pragma Assert (False
5770 or else NT (N).Nkind = N_Incomplete_Type_Declaration);
5771 Set_Node5 (N, Val);
5772 end Set_Premature_Use;
5773
5774 procedure Set_Present_Expr
5775 (N : Node_Id; Val : Uint) is
5776 begin
5777 pragma Assert (False
5778 or else NT (N).Nkind = N_Variant);
5779 Set_Uint3 (N, Val);
5780 end Set_Present_Expr;
5781
5782 procedure Set_Prev_Ids
5783 (N : Node_Id; Val : Boolean := True) is
5784 begin
5785 pragma Assert (False
5786 or else NT (N).Nkind = N_Component_Declaration
5787 or else NT (N).Nkind = N_Discriminant_Specification
5788 or else NT (N).Nkind = N_Exception_Declaration
5789 or else NT (N).Nkind = N_Formal_Object_Declaration
5790 or else NT (N).Nkind = N_Number_Declaration
5791 or else NT (N).Nkind = N_Object_Declaration
5792 or else NT (N).Nkind = N_Parameter_Specification);
5793 Set_Flag6 (N, Val);
5794 end Set_Prev_Ids;
5795
5796 procedure Set_Print_In_Hex
5797 (N : Node_Id; Val : Boolean := True) is
5798 begin
5799 pragma Assert (False
5800 or else NT (N).Nkind = N_Integer_Literal);
5801 Set_Flag13 (N, Val);
5802 end Set_Print_In_Hex;
5803
5804 procedure Set_Private_Declarations
5805 (N : Node_Id; Val : List_Id) is
5806 begin
5807 pragma Assert (False
5808 or else NT (N).Nkind = N_Package_Specification
5809 or else NT (N).Nkind = N_Protected_Definition
5810 or else NT (N).Nkind = N_Task_Definition);
5811 Set_List3_With_Parent (N, Val);
5812 end Set_Private_Declarations;
5813
5814 procedure Set_Private_Present
5815 (N : Node_Id; Val : Boolean := True) is
5816 begin
5817 pragma Assert (False
5818 or else NT (N).Nkind = N_Compilation_Unit
5819 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5820 or else NT (N).Nkind = N_With_Clause);
5821 Set_Flag15 (N, Val);
5822 end Set_Private_Present;
5823
5824 procedure Set_Procedure_To_Call
5825 (N : Node_Id; Val : Node_Id) is
5826 begin
5827 pragma Assert (False
5828 or else NT (N).Nkind = N_Allocator
5829 or else NT (N).Nkind = N_Extended_Return_Statement
5830 or else NT (N).Nkind = N_Free_Statement
5831 or else NT (N).Nkind = N_Simple_Return_Statement);
5832 Set_Node2 (N, Val); -- semantic field, no parent set
5833 end Set_Procedure_To_Call;
5834
5835 procedure Set_Proper_Body
5836 (N : Node_Id; Val : Node_Id) is
5837 begin
5838 pragma Assert (False
5839 or else NT (N).Nkind = N_Subunit);
5840 Set_Node1_With_Parent (N, Val);
5841 end Set_Proper_Body;
5842
5843 procedure Set_Protected_Definition
5844 (N : Node_Id; Val : Node_Id) is
5845 begin
5846 pragma Assert (False
5847 or else NT (N).Nkind = N_Protected_Type_Declaration
5848 or else NT (N).Nkind = N_Single_Protected_Declaration);
5849 Set_Node3_With_Parent (N, Val);
5850 end Set_Protected_Definition;
5851
5852 procedure Set_Protected_Present
5853 (N : Node_Id; Val : Boolean := True) is
5854 begin
5855 pragma Assert (False
5856 or else NT (N).Nkind = N_Access_Function_Definition
5857 or else NT (N).Nkind = N_Access_Procedure_Definition
5858 or else NT (N).Nkind = N_Derived_Type_Definition
5859 or else NT (N).Nkind = N_Record_Definition);
5860 Set_Flag6 (N, Val);
5861 end Set_Protected_Present;
5862
5863 procedure Set_Raises_Constraint_Error
5864 (N : Node_Id; Val : Boolean := True) is
5865 begin
5866 pragma Assert (False
5867 or else NT (N).Nkind in N_Subexpr);
5868 Set_Flag7 (N, Val);
5869 end Set_Raises_Constraint_Error;
5870
5871 procedure Set_Range_Constraint
5872 (N : Node_Id; Val : Node_Id) is
5873 begin
5874 pragma Assert (False
5875 or else NT (N).Nkind = N_Delta_Constraint
5876 or else NT (N).Nkind = N_Digits_Constraint);
5877 Set_Node4_With_Parent (N, Val);
5878 end Set_Range_Constraint;
5879
5880 procedure Set_Range_Expression
5881 (N : Node_Id; Val : Node_Id) is
5882 begin
5883 pragma Assert (False
5884 or else NT (N).Nkind = N_Range_Constraint);
5885 Set_Node4_With_Parent (N, Val);
5886 end Set_Range_Expression;
5887
5888 procedure Set_Real_Range_Specification
5889 (N : Node_Id; Val : Node_Id) is
5890 begin
5891 pragma Assert (False
5892 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
5893 or else NT (N).Nkind = N_Floating_Point_Definition
5894 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
5895 Set_Node4_With_Parent (N, Val);
5896 end Set_Real_Range_Specification;
5897
5898 procedure Set_Realval
5899 (N : Node_Id; Val : Ureal) is
5900 begin
5901 pragma Assert (False
5902 or else NT (N).Nkind = N_Real_Literal);
5903 Set_Ureal3 (N, Val);
5904 end Set_Realval;
5905
5906 procedure Set_Reason
5907 (N : Node_Id; Val : Uint) is
5908 begin
5909 pragma Assert (False
5910 or else NT (N).Nkind = N_Raise_Constraint_Error
5911 or else NT (N).Nkind = N_Raise_Program_Error
5912 or else NT (N).Nkind = N_Raise_Storage_Error);
5913 Set_Uint3 (N, Val);
5914 end Set_Reason;
5915
5916 procedure Set_Record_Extension_Part
5917 (N : Node_Id; Val : Node_Id) is
5918 begin
5919 pragma Assert (False
5920 or else NT (N).Nkind = N_Derived_Type_Definition);
5921 Set_Node3_With_Parent (N, Val);
5922 end Set_Record_Extension_Part;
5923
5924 procedure Set_Redundant_Use
5925 (N : Node_Id; Val : Boolean := True) is
5926 begin
5927 pragma Assert (False
5928 or else NT (N).Nkind = N_Attribute_Reference
5929 or else NT (N).Nkind = N_Expanded_Name
5930 or else NT (N).Nkind = N_Identifier);
5931 Set_Flag13 (N, Val);
5932 end Set_Redundant_Use;
5933
5934 procedure Set_Renaming_Exception
5935 (N : Node_Id; Val : Node_Id) is
5936 begin
5937 pragma Assert (False
5938 or else NT (N).Nkind = N_Exception_Declaration);
5939 Set_Node2 (N, Val);
5940 end Set_Renaming_Exception;
5941
5942 procedure Set_Result_Definition
5943 (N : Node_Id; Val : Node_Id) is
5944 begin
5945 pragma Assert (False
5946 or else NT (N).Nkind = N_Access_Function_Definition
5947 or else NT (N).Nkind = N_Function_Specification);
5948 Set_Node4_With_Parent (N, Val);
5949 end Set_Result_Definition;
5950
5951 procedure Set_Return_Object_Declarations
5952 (N : Node_Id; Val : List_Id) is
5953 begin
5954 pragma Assert (False
5955 or else NT (N).Nkind = N_Extended_Return_Statement);
5956 Set_List3_With_Parent (N, Val);
5957 end Set_Return_Object_Declarations;
5958
5959 procedure Set_Return_Statement_Entity
5960 (N : Node_Id; Val : Node_Id) is
5961 begin
5962 pragma Assert (False
5963 or else NT (N).Nkind = N_Extended_Return_Statement
5964 or else NT (N).Nkind = N_Simple_Return_Statement);
5965 Set_Node5 (N, Val); -- semantic field, no parent set
5966 end Set_Return_Statement_Entity;
5967
5968 procedure Set_Reverse_Present
5969 (N : Node_Id; Val : Boolean := True) is
5970 begin
5971 pragma Assert (False
5972 or else NT (N).Nkind = N_Iterator_Specification
5973 or else NT (N).Nkind = N_Loop_Parameter_Specification);
5974 Set_Flag15 (N, Val);
5975 end Set_Reverse_Present;
5976
5977 procedure Set_Right_Opnd
5978 (N : Node_Id; Val : Node_Id) is
5979 begin
5980 pragma Assert (False
5981 or else NT (N).Nkind in N_Op
5982 or else NT (N).Nkind = N_And_Then
5983 or else NT (N).Nkind = N_In
5984 or else NT (N).Nkind = N_Not_In
5985 or else NT (N).Nkind = N_Or_Else);
5986 Set_Node3_With_Parent (N, Val);
5987 end Set_Right_Opnd;
5988
5989 procedure Set_Rounded_Result
5990 (N : Node_Id; Val : Boolean := True) is
5991 begin
5992 pragma Assert (False
5993 or else NT (N).Nkind = N_Op_Divide
5994 or else NT (N).Nkind = N_Op_Multiply
5995 or else NT (N).Nkind = N_Type_Conversion);
5996 Set_Flag18 (N, Val);
5997 end Set_Rounded_Result;
5998
5999 procedure Set_SCIL_Controlling_Tag
6000 (N : Node_Id; Val : Node_Id) is
6001 begin
6002 pragma Assert (False
6003 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
6004 Set_Node5 (N, Val); -- semantic field, no parent set
6005 end Set_SCIL_Controlling_Tag;
6006
6007 procedure Set_SCIL_Entity
6008 (N : Node_Id; Val : Node_Id) is
6009 begin
6010 pragma Assert (False
6011 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
6012 or else NT (N).Nkind = N_SCIL_Dispatching_Call
6013 or else NT (N).Nkind = N_SCIL_Membership_Test);
6014 Set_Node4 (N, Val); -- semantic field, no parent set
6015 end Set_SCIL_Entity;
6016
6017 procedure Set_SCIL_Tag_Value
6018 (N : Node_Id; Val : Node_Id) is
6019 begin
6020 pragma Assert (False
6021 or else NT (N).Nkind = N_SCIL_Membership_Test);
6022 Set_Node5 (N, Val); -- semantic field, no parent set
6023 end Set_SCIL_Tag_Value;
6024
6025 procedure Set_SCIL_Target_Prim
6026 (N : Node_Id; Val : Node_Id) is
6027 begin
6028 pragma Assert (False
6029 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
6030 Set_Node2 (N, Val); -- semantic field, no parent set
6031 end Set_SCIL_Target_Prim;
6032
6033 procedure Set_Scope
6034 (N : Node_Id; Val : Node_Id) is
6035 begin
6036 pragma Assert (False
6037 or else NT (N).Nkind = N_Defining_Character_Literal
6038 or else NT (N).Nkind = N_Defining_Identifier
6039 or else NT (N).Nkind = N_Defining_Operator_Symbol);
6040 Set_Node3 (N, Val); -- semantic field, no parent set
6041 end Set_Scope;
6042
6043 procedure Set_Select_Alternatives
6044 (N : Node_Id; Val : List_Id) is
6045 begin
6046 pragma Assert (False
6047 or else NT (N).Nkind = N_Selective_Accept);
6048 Set_List1_With_Parent (N, Val);
6049 end Set_Select_Alternatives;
6050
6051 procedure Set_Selector_Name
6052 (N : Node_Id; Val : Node_Id) is
6053 begin
6054 pragma Assert (False
6055 or else NT (N).Nkind = N_Expanded_Name
6056 or else NT (N).Nkind = N_Generic_Association
6057 or else NT (N).Nkind = N_Parameter_Association
6058 or else NT (N).Nkind = N_Selected_Component);
6059 Set_Node2_With_Parent (N, Val);
6060 end Set_Selector_Name;
6061
6062 procedure Set_Selector_Names
6063 (N : Node_Id; Val : List_Id) is
6064 begin
6065 pragma Assert (False
6066 or else NT (N).Nkind = N_Discriminant_Association);
6067 Set_List1_With_Parent (N, Val);
6068 end Set_Selector_Names;
6069
6070 procedure Set_Shift_Count_OK
6071 (N : Node_Id; Val : Boolean := True) is
6072 begin
6073 pragma Assert (False
6074 or else NT (N).Nkind = N_Op_Rotate_Left
6075 or else NT (N).Nkind = N_Op_Rotate_Right
6076 or else NT (N).Nkind = N_Op_Shift_Left
6077 or else NT (N).Nkind = N_Op_Shift_Right
6078 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
6079 Set_Flag4 (N, Val);
6080 end Set_Shift_Count_OK;
6081
6082 procedure Set_Source_Type
6083 (N : Node_Id; Val : Entity_Id) is
6084 begin
6085 pragma Assert (False
6086 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
6087 Set_Node1 (N, Val); -- semantic field, no parent set
6088 end Set_Source_Type;
6089
6090 procedure Set_Specification
6091 (N : Node_Id; Val : Node_Id) is
6092 begin
6093 pragma Assert (False
6094 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
6095 or else NT (N).Nkind = N_Expression_Function
6096 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
6097 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
6098 or else NT (N).Nkind = N_Generic_Package_Declaration
6099 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
6100 or else NT (N).Nkind = N_Package_Declaration
6101 or else NT (N).Nkind = N_Subprogram_Body
6102 or else NT (N).Nkind = N_Subprogram_Body_Stub
6103 or else NT (N).Nkind = N_Subprogram_Declaration
6104 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
6105 Set_Node1_With_Parent (N, Val);
6106 end Set_Specification;
6107
6108 procedure Set_Split_PPC
6109 (N : Node_Id; Val : Boolean) is
6110 begin
6111 pragma Assert (False
6112 or else NT (N).Nkind = N_Aspect_Specification
6113 or else NT (N).Nkind = N_Pragma);
6114 Set_Flag17 (N, Val);
6115 end Set_Split_PPC;
6116
6117 procedure Set_Statements
6118 (N : Node_Id; Val : List_Id) is
6119 begin
6120 pragma Assert (False
6121 or else NT (N).Nkind = N_Abortable_Part
6122 or else NT (N).Nkind = N_Accept_Alternative
6123 or else NT (N).Nkind = N_Case_Statement_Alternative
6124 or else NT (N).Nkind = N_Delay_Alternative
6125 or else NT (N).Nkind = N_Entry_Call_Alternative
6126 or else NT (N).Nkind = N_Exception_Handler
6127 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
6128 or else NT (N).Nkind = N_Loop_Statement
6129 or else NT (N).Nkind = N_Triggering_Alternative);
6130 Set_List3_With_Parent (N, Val);
6131 end Set_Statements;
6132
6133 procedure Set_Storage_Pool
6134 (N : Node_Id; Val : Node_Id) is
6135 begin
6136 pragma Assert (False
6137 or else NT (N).Nkind = N_Allocator
6138 or else NT (N).Nkind = N_Extended_Return_Statement
6139 or else NT (N).Nkind = N_Free_Statement
6140 or else NT (N).Nkind = N_Simple_Return_Statement);
6141 Set_Node1 (N, Val); -- semantic field, no parent set
6142 end Set_Storage_Pool;
6143
6144 procedure Set_Subpool_Handle_Name
6145 (N : Node_Id; Val : Node_Id) is
6146 begin
6147 pragma Assert (False
6148 or else NT (N).Nkind = N_Allocator);
6149 Set_Node4_With_Parent (N, Val);
6150 end Set_Subpool_Handle_Name;
6151
6152 procedure Set_Strval
6153 (N : Node_Id; Val : String_Id) is
6154 begin
6155 pragma Assert (False
6156 or else NT (N).Nkind = N_Operator_Symbol
6157 or else NT (N).Nkind = N_String_Literal);
6158 Set_Str3 (N, Val);
6159 end Set_Strval;
6160
6161 procedure Set_Subtype_Indication
6162 (N : Node_Id; Val : Node_Id) is
6163 begin
6164 pragma Assert (False
6165 or else NT (N).Nkind = N_Access_To_Object_Definition
6166 or else NT (N).Nkind = N_Component_Definition
6167 or else NT (N).Nkind = N_Derived_Type_Definition
6168 or else NT (N).Nkind = N_Iterator_Specification
6169 or else NT (N).Nkind = N_Private_Extension_Declaration
6170 or else NT (N).Nkind = N_Subtype_Declaration);
6171 Set_Node5_With_Parent (N, Val);
6172 end Set_Subtype_Indication;
6173
6174 procedure Set_Subtype_Mark
6175 (N : Node_Id; Val : Node_Id) is
6176 begin
6177 pragma Assert (False
6178 or else NT (N).Nkind = N_Access_Definition
6179 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
6180 or else NT (N).Nkind = N_Formal_Object_Declaration
6181 or else NT (N).Nkind = N_Object_Renaming_Declaration
6182 or else NT (N).Nkind = N_Qualified_Expression
6183 or else NT (N).Nkind = N_Subtype_Indication
6184 or else NT (N).Nkind = N_Type_Conversion
6185 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
6186 Set_Node4_With_Parent (N, Val);
6187 end Set_Subtype_Mark;
6188
6189 procedure Set_Subtype_Marks
6190 (N : Node_Id; Val : List_Id) is
6191 begin
6192 pragma Assert (False
6193 or else NT (N).Nkind = N_Unconstrained_Array_Definition
6194 or else NT (N).Nkind = N_Use_Type_Clause);
6195 Set_List2_With_Parent (N, Val);
6196 end Set_Subtype_Marks;
6197
6198 procedure Set_Suppress_Assignment_Checks
6199 (N : Node_Id; Val : Boolean := True) is
6200 begin
6201 pragma Assert (False
6202 or else NT (N).Nkind = N_Assignment_Statement
6203 or else NT (N).Nkind = N_Object_Declaration);
6204 Set_Flag18 (N, Val);
6205 end Set_Suppress_Assignment_Checks;
6206
6207 procedure Set_Suppress_Loop_Warnings
6208 (N : Node_Id; Val : Boolean := True) is
6209 begin
6210 pragma Assert (False
6211 or else NT (N).Nkind = N_Loop_Statement);
6212 Set_Flag17 (N, Val);
6213 end Set_Suppress_Loop_Warnings;
6214
6215 procedure Set_Synchronized_Present
6216 (N : Node_Id; Val : Boolean := True) is
6217 begin
6218 pragma Assert (False
6219 or else NT (N).Nkind = N_Derived_Type_Definition
6220 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
6221 or else NT (N).Nkind = N_Private_Extension_Declaration
6222 or else NT (N).Nkind = N_Record_Definition);
6223 Set_Flag7 (N, Val);
6224 end Set_Synchronized_Present;
6225
6226 procedure Set_Tagged_Present
6227 (N : Node_Id; Val : Boolean := True) is
6228 begin
6229 pragma Assert (False
6230 or else NT (N).Nkind = N_Formal_Incomplete_Type_Definition
6231 or else NT (N).Nkind = N_Formal_Private_Type_Definition
6232 or else NT (N).Nkind = N_Incomplete_Type_Declaration
6233 or else NT (N).Nkind = N_Private_Type_Declaration
6234 or else NT (N).Nkind = N_Record_Definition);
6235 Set_Flag15 (N, Val);
6236 end Set_Tagged_Present;
6237
6238 procedure Set_Target_Type
6239 (N : Node_Id; Val : Entity_Id) is
6240 begin
6241 pragma Assert (False
6242 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
6243 Set_Node2 (N, Val); -- semantic field, no parent set
6244 end Set_Target_Type;
6245
6246 procedure Set_Task_Definition
6247 (N : Node_Id; Val : Node_Id) is
6248 begin
6249 pragma Assert (False
6250 or else NT (N).Nkind = N_Single_Task_Declaration
6251 or else NT (N).Nkind = N_Task_Type_Declaration);
6252 Set_Node3_With_Parent (N, Val);
6253 end Set_Task_Definition;
6254
6255 procedure Set_Task_Present
6256 (N : Node_Id; Val : Boolean := True) is
6257 begin
6258 pragma Assert (False
6259 or else NT (N).Nkind = N_Derived_Type_Definition
6260 or else NT (N).Nkind = N_Record_Definition);
6261 Set_Flag5 (N, Val);
6262 end Set_Task_Present;
6263
6264 procedure Set_Then_Actions
6265 (N : Node_Id; Val : List_Id) is
6266 begin
6267 pragma Assert (False
6268 or else NT (N).Nkind = N_If_Expression);
6269 Set_List2_With_Parent (N, Val); -- semantic field, but needs parents
6270 end Set_Then_Actions;
6271
6272 procedure Set_Then_Statements
6273 (N : Node_Id; Val : List_Id) is
6274 begin
6275 pragma Assert (False
6276 or else NT (N).Nkind = N_Elsif_Part
6277 or else NT (N).Nkind = N_If_Statement);
6278 Set_List2_With_Parent (N, Val);
6279 end Set_Then_Statements;
6280
6281 procedure Set_Treat_Fixed_As_Integer
6282 (N : Node_Id; Val : Boolean := True) is
6283 begin
6284 pragma Assert (False
6285 or else NT (N).Nkind = N_Op_Divide
6286 or else NT (N).Nkind = N_Op_Mod
6287 or else NT (N).Nkind = N_Op_Multiply
6288 or else NT (N).Nkind = N_Op_Rem);
6289 Set_Flag14 (N, Val);
6290 end Set_Treat_Fixed_As_Integer;
6291
6292 procedure Set_Triggering_Alternative
6293 (N : Node_Id; Val : Node_Id) is
6294 begin
6295 pragma Assert (False
6296 or else NT (N).Nkind = N_Asynchronous_Select);
6297 Set_Node1_With_Parent (N, Val);
6298 end Set_Triggering_Alternative;
6299
6300 procedure Set_Triggering_Statement
6301 (N : Node_Id; Val : Node_Id) is
6302 begin
6303 pragma Assert (False
6304 or else NT (N).Nkind = N_Triggering_Alternative);
6305 Set_Node1_With_Parent (N, Val);
6306 end Set_Triggering_Statement;
6307
6308 procedure Set_TSS_Elist
6309 (N : Node_Id; Val : Elist_Id) is
6310 begin
6311 pragma Assert (False
6312 or else NT (N).Nkind = N_Freeze_Entity);
6313 Set_Elist3 (N, Val); -- semantic field, no parent set
6314 end Set_TSS_Elist;
6315
6316 procedure Set_Type_Definition
6317 (N : Node_Id; Val : Node_Id) is
6318 begin
6319 pragma Assert (False
6320 or else NT (N).Nkind = N_Full_Type_Declaration);
6321 Set_Node3_With_Parent (N, Val);
6322 end Set_Type_Definition;
6323
6324 procedure Set_Unit
6325 (N : Node_Id; Val : Node_Id) is
6326 begin
6327 pragma Assert (False
6328 or else NT (N).Nkind = N_Compilation_Unit);
6329 Set_Node2_With_Parent (N, Val);
6330 end Set_Unit;
6331
6332 procedure Set_Unknown_Discriminants_Present
6333 (N : Node_Id; Val : Boolean := True) is
6334 begin
6335 pragma Assert (False
6336 or else NT (N).Nkind = N_Formal_Type_Declaration
6337 or else NT (N).Nkind = N_Incomplete_Type_Declaration
6338 or else NT (N).Nkind = N_Private_Extension_Declaration
6339 or else NT (N).Nkind = N_Private_Type_Declaration);
6340 Set_Flag13 (N, Val);
6341 end Set_Unknown_Discriminants_Present;
6342
6343 procedure Set_Unreferenced_In_Spec
6344 (N : Node_Id; Val : Boolean := True) is
6345 begin
6346 pragma Assert (False
6347 or else NT (N).Nkind = N_With_Clause);
6348 Set_Flag7 (N, Val);
6349 end Set_Unreferenced_In_Spec;
6350
6351 procedure Set_Variant_Part
6352 (N : Node_Id; Val : Node_Id) is
6353 begin
6354 pragma Assert (False
6355 or else NT (N).Nkind = N_Component_List);
6356 Set_Node4_With_Parent (N, Val);
6357 end Set_Variant_Part;
6358
6359 procedure Set_Variants
6360 (N : Node_Id; Val : List_Id) is
6361 begin
6362 pragma Assert (False
6363 or else NT (N).Nkind = N_Variant_Part);
6364 Set_List1_With_Parent (N, Val);
6365 end Set_Variants;
6366
6367 procedure Set_Visible_Declarations
6368 (N : Node_Id; Val : List_Id) is
6369 begin
6370 pragma Assert (False
6371 or else NT (N).Nkind = N_Package_Specification
6372 or else NT (N).Nkind = N_Protected_Definition
6373 or else NT (N).Nkind = N_Task_Definition);
6374 Set_List2_With_Parent (N, Val);
6375 end Set_Visible_Declarations;
6376
6377 procedure Set_Uninitialized_Variable
6378 (N : Node_Id; Val : Node_Id) is
6379 begin
6380 pragma Assert (False
6381 or else NT (N).Nkind = N_Formal_Private_Type_Definition
6382 or else NT (N).Nkind = N_Private_Extension_Declaration);
6383 Set_Node3 (N, Val);
6384 end Set_Uninitialized_Variable;
6385
6386 procedure Set_Used_Operations
6387 (N : Node_Id; Val : Elist_Id) is
6388 begin
6389 pragma Assert (False
6390 or else NT (N).Nkind = N_Use_Type_Clause);
6391 Set_Elist5 (N, Val);
6392 end Set_Used_Operations;
6393
6394 procedure Set_Was_Originally_Stub
6395 (N : Node_Id; Val : Boolean := True) is
6396 begin
6397 pragma Assert (False
6398 or else NT (N).Nkind = N_Package_Body
6399 or else NT (N).Nkind = N_Protected_Body
6400 or else NT (N).Nkind = N_Subprogram_Body
6401 or else NT (N).Nkind = N_Task_Body);
6402 Set_Flag13 (N, Val);
6403 end Set_Was_Originally_Stub;
6404
6405 procedure Set_Withed_Body
6406 (N : Node_Id; Val : Node_Id) is
6407 begin
6408 pragma Assert (False
6409 or else NT (N).Nkind = N_With_Clause);
6410 Set_Node1 (N, Val);
6411 end Set_Withed_Body;
6412
6413 -------------------------
6414 -- Iterator Procedures --
6415 -------------------------
6416
6417 procedure Next_Entity (N : in out Node_Id) is
6418 begin
6419 N := Next_Entity (N);
6420 end Next_Entity;
6421
6422 procedure Next_Named_Actual (N : in out Node_Id) is
6423 begin
6424 N := Next_Named_Actual (N);
6425 end Next_Named_Actual;
6426
6427 procedure Next_Rep_Item (N : in out Node_Id) is
6428 begin
6429 N := Next_Rep_Item (N);
6430 end Next_Rep_Item;
6431
6432 procedure Next_Use_Clause (N : in out Node_Id) is
6433 begin
6434 N := Next_Use_Clause (N);
6435 end Next_Use_Clause;
6436
6437 ------------------
6438 -- End_Location --
6439 ------------------
6440
6441 function End_Location (N : Node_Id) return Source_Ptr is
6442 L : constant Uint := End_Span (N);
6443 begin
6444 if L = No_Uint then
6445 return No_Location;
6446 else
6447 return Source_Ptr (Int (Sloc (N)) + UI_To_Int (L));
6448 end if;
6449 end End_Location;
6450
6451 --------------------
6452 -- Get_Pragma_Arg --
6453 --------------------
6454
6455 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id is
6456 begin
6457 if Nkind (Arg) = N_Pragma_Argument_Association then
6458 return Expression (Arg);
6459 else
6460 return Arg;
6461 end if;
6462 end Get_Pragma_Arg;
6463
6464 ----------------------
6465 -- Set_End_Location --
6466 ----------------------
6467
6468 procedure Set_End_Location (N : Node_Id; S : Source_Ptr) is
6469 begin
6470 Set_End_Span (N,
6471 UI_From_Int (Int (S) - Int (Sloc (N))));
6472 end Set_End_Location;
6473
6474 --------------
6475 -- Nkind_In --
6476 --------------
6477
6478 function Nkind_In
6479 (T : Node_Kind;
6480 V1 : Node_Kind;
6481 V2 : Node_Kind) return Boolean
6482 is
6483 begin
6484 return T = V1 or else
6485 T = V2;
6486 end Nkind_In;
6487
6488 function Nkind_In
6489 (T : Node_Kind;
6490 V1 : Node_Kind;
6491 V2 : Node_Kind;
6492 V3 : Node_Kind) return Boolean
6493 is
6494 begin
6495 return T = V1 or else
6496 T = V2 or else
6497 T = V3;
6498 end Nkind_In;
6499
6500 function Nkind_In
6501 (T : Node_Kind;
6502 V1 : Node_Kind;
6503 V2 : Node_Kind;
6504 V3 : Node_Kind;
6505 V4 : Node_Kind) return Boolean
6506 is
6507 begin
6508 return T = V1 or else
6509 T = V2 or else
6510 T = V3 or else
6511 T = V4;
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) return Boolean
6521 is
6522 begin
6523 return T = V1 or else
6524 T = V2 or else
6525 T = V3 or else
6526 T = V4 or else
6527 T = V5;
6528 end Nkind_In;
6529
6530 function Nkind_In
6531 (T : Node_Kind;
6532 V1 : Node_Kind;
6533 V2 : Node_Kind;
6534 V3 : Node_Kind;
6535 V4 : Node_Kind;
6536 V5 : Node_Kind;
6537 V6 : Node_Kind) return Boolean
6538 is
6539 begin
6540 return T = V1 or else
6541 T = V2 or else
6542 T = V3 or else
6543 T = V4 or else
6544 T = V5 or else
6545 T = V6;
6546 end Nkind_In;
6547
6548 function Nkind_In
6549 (T : Node_Kind;
6550 V1 : Node_Kind;
6551 V2 : Node_Kind;
6552 V3 : Node_Kind;
6553 V4 : Node_Kind;
6554 V5 : Node_Kind;
6555 V6 : Node_Kind;
6556 V7 : Node_Kind) return Boolean
6557 is
6558 begin
6559 return T = V1 or else
6560 T = V2 or else
6561 T = V3 or else
6562 T = V4 or else
6563 T = V5 or else
6564 T = V6 or else
6565 T = V7;
6566 end Nkind_In;
6567
6568 function Nkind_In
6569 (T : Node_Kind;
6570 V1 : Node_Kind;
6571 V2 : Node_Kind;
6572 V3 : Node_Kind;
6573 V4 : Node_Kind;
6574 V5 : Node_Kind;
6575 V6 : Node_Kind;
6576 V7 : Node_Kind;
6577 V8 : Node_Kind) return Boolean
6578 is
6579 begin
6580 return T = V1 or else
6581 T = V2 or else
6582 T = V3 or else
6583 T = V4 or else
6584 T = V5 or else
6585 T = V6 or else
6586 T = V7 or else
6587 T = V8;
6588 end Nkind_In;
6589
6590 function Nkind_In
6591 (T : Node_Kind;
6592 V1 : Node_Kind;
6593 V2 : Node_Kind;
6594 V3 : Node_Kind;
6595 V4 : Node_Kind;
6596 V5 : Node_Kind;
6597 V6 : Node_Kind;
6598 V7 : Node_Kind;
6599 V8 : Node_Kind;
6600 V9 : Node_Kind) return Boolean
6601 is
6602 begin
6603 return T = V1 or else
6604 T = V2 or else
6605 T = V3 or else
6606 T = V4 or else
6607 T = V5 or else
6608 T = V6 or else
6609 T = V7 or else
6610 T = V8 or else
6611 T = V9;
6612 end Nkind_In;
6613
6614 -----------------
6615 -- Pragma_Name --
6616 -----------------
6617
6618 function Pragma_Name (N : Node_Id) return Name_Id is
6619 begin
6620 return Chars (Pragma_Identifier (N));
6621 end Pragma_Name;
6622
6623 end Sinfo;