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