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