[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 Spec_PPC_List
2770 (N : Node_Id) return Node_Id is
2771 begin
2772 pragma Assert (False
2773 or else NT (N).Nkind = N_Contract);
2774 return Node1 (N);
2775 end Spec_PPC_List;
2776
2777 function Spec_TC_List
2778 (N : Node_Id) return Node_Id is
2779 begin
2780 pragma Assert (False
2781 or else NT (N).Nkind = N_Contract);
2782 return Node2 (N);
2783 end Spec_TC_List;
2784
2785 function Specification
2786 (N : Node_Id) return Node_Id is
2787 begin
2788 pragma Assert (False
2789 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
2790 or else NT (N).Nkind = N_Expression_Function
2791 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
2792 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
2793 or else NT (N).Nkind = N_Generic_Package_Declaration
2794 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2795 or else NT (N).Nkind = N_Package_Declaration
2796 or else NT (N).Nkind = N_Subprogram_Body
2797 or else NT (N).Nkind = N_Subprogram_Body_Stub
2798 or else NT (N).Nkind = N_Subprogram_Declaration
2799 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2800 return Node1 (N);
2801 end Specification;
2802
2803 function Split_PPC
2804 (N : Node_Id) return Boolean is
2805 begin
2806 pragma Assert (False
2807 or else NT (N).Nkind = N_Aspect_Specification
2808 or else NT (N).Nkind = N_Pragma);
2809 return Flag17 (N);
2810 end Split_PPC;
2811
2812 function Statements
2813 (N : Node_Id) return List_Id is
2814 begin
2815 pragma Assert (False
2816 or else NT (N).Nkind = N_Abortable_Part
2817 or else NT (N).Nkind = N_Accept_Alternative
2818 or else NT (N).Nkind = N_Case_Statement_Alternative
2819 or else NT (N).Nkind = N_Delay_Alternative
2820 or else NT (N).Nkind = N_Entry_Call_Alternative
2821 or else NT (N).Nkind = N_Exception_Handler
2822 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
2823 or else NT (N).Nkind = N_Loop_Statement
2824 or else NT (N).Nkind = N_Triggering_Alternative);
2825 return List3 (N);
2826 end Statements;
2827
2828 function Static_Processing_OK
2829 (N : Node_Id) return Boolean is
2830 begin
2831 pragma Assert (False
2832 or else NT (N).Nkind = N_Aggregate);
2833 return Flag4 (N);
2834 end Static_Processing_OK;
2835
2836 function Storage_Pool
2837 (N : Node_Id) return Node_Id is
2838 begin
2839 pragma Assert (False
2840 or else NT (N).Nkind = N_Allocator
2841 or else NT (N).Nkind = N_Extended_Return_Statement
2842 or else NT (N).Nkind = N_Free_Statement
2843 or else NT (N).Nkind = N_Return_Statement);
2844 return Node1 (N);
2845 end Storage_Pool;
2846
2847 function Subpool_Handle_Name
2848 (N : Node_Id) return Node_Id is
2849 begin
2850 pragma Assert (False
2851 or else NT (N).Nkind = N_Allocator);
2852 return Node4 (N);
2853 end Subpool_Handle_Name;
2854
2855 function Strval
2856 (N : Node_Id) return String_Id is
2857 begin
2858 pragma Assert (False
2859 or else NT (N).Nkind = N_Operator_Symbol
2860 or else NT (N).Nkind = N_String_Literal);
2861 return Str3 (N);
2862 end Strval;
2863
2864 function Subtype_Indication
2865 (N : Node_Id) return Node_Id is
2866 begin
2867 pragma Assert (False
2868 or else NT (N).Nkind = N_Access_To_Object_Definition
2869 or else NT (N).Nkind = N_Component_Definition
2870 or else NT (N).Nkind = N_Derived_Type_Definition
2871 or else NT (N).Nkind = N_Iterator_Specification
2872 or else NT (N).Nkind = N_Private_Extension_Declaration
2873 or else NT (N).Nkind = N_Subtype_Declaration);
2874 return Node5 (N);
2875 end Subtype_Indication;
2876
2877 function Suppress_Assignment_Checks
2878 (N : Node_Id) return Boolean is
2879 begin
2880 pragma Assert (False
2881 or else NT (N).Nkind = N_Assignment_Statement
2882 or else NT (N).Nkind = N_Object_Declaration);
2883 return Flag18 (N);
2884 end Suppress_Assignment_Checks;
2885
2886 function Suppress_Loop_Warnings
2887 (N : Node_Id) return Boolean is
2888 begin
2889 pragma Assert (False
2890 or else NT (N).Nkind = N_Loop_Statement);
2891 return Flag17 (N);
2892 end Suppress_Loop_Warnings;
2893
2894 function Subtype_Mark
2895 (N : Node_Id) return Node_Id is
2896 begin
2897 pragma Assert (False
2898 or else NT (N).Nkind = N_Access_Definition
2899 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2900 or else NT (N).Nkind = N_Formal_Object_Declaration
2901 or else NT (N).Nkind = N_Object_Renaming_Declaration
2902 or else NT (N).Nkind = N_Qualified_Expression
2903 or else NT (N).Nkind = N_Subtype_Indication
2904 or else NT (N).Nkind = N_Type_Conversion
2905 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2906 return Node4 (N);
2907 end Subtype_Mark;
2908
2909 function Subtype_Marks
2910 (N : Node_Id) return List_Id is
2911 begin
2912 pragma Assert (False
2913 or else NT (N).Nkind = N_Unconstrained_Array_Definition
2914 or else NT (N).Nkind = N_Use_Type_Clause);
2915 return List2 (N);
2916 end Subtype_Marks;
2917
2918 function Synchronized_Present
2919 (N : Node_Id) return Boolean is
2920 begin
2921 pragma Assert (False
2922 or else NT (N).Nkind = N_Derived_Type_Definition
2923 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2924 or else NT (N).Nkind = N_Private_Extension_Declaration
2925 or else NT (N).Nkind = N_Record_Definition);
2926 return Flag7 (N);
2927 end Synchronized_Present;
2928
2929 function Tagged_Present
2930 (N : Node_Id) return Boolean is
2931 begin
2932 pragma Assert (False
2933 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2934 or else NT (N).Nkind = N_Incomplete_Type_Declaration
2935 or else NT (N).Nkind = N_Private_Type_Declaration
2936 or else NT (N).Nkind = N_Record_Definition);
2937 return Flag15 (N);
2938 end Tagged_Present;
2939
2940 function Target_Type
2941 (N : Node_Id) return Entity_Id is
2942 begin
2943 pragma Assert (False
2944 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2945 return Node2 (N);
2946 end Target_Type;
2947
2948 function Task_Definition
2949 (N : Node_Id) return Node_Id is
2950 begin
2951 pragma Assert (False
2952 or else NT (N).Nkind = N_Single_Task_Declaration
2953 or else NT (N).Nkind = N_Task_Type_Declaration);
2954 return Node3 (N);
2955 end Task_Definition;
2956
2957 function Task_Present
2958 (N : Node_Id) return Boolean is
2959 begin
2960 pragma Assert (False
2961 or else NT (N).Nkind = N_Derived_Type_Definition
2962 or else NT (N).Nkind = N_Record_Definition);
2963 return Flag5 (N);
2964 end Task_Present;
2965
2966 function Then_Actions
2967 (N : Node_Id) return List_Id is
2968 begin
2969 pragma Assert (False
2970 or else NT (N).Nkind = N_Conditional_Expression);
2971 return List2 (N);
2972 end Then_Actions;
2973
2974 function Then_Statements
2975 (N : Node_Id) return List_Id is
2976 begin
2977 pragma Assert (False
2978 or else NT (N).Nkind = N_Elsif_Part
2979 or else NT (N).Nkind = N_If_Statement);
2980 return List2 (N);
2981 end Then_Statements;
2982
2983 function Treat_Fixed_As_Integer
2984 (N : Node_Id) return Boolean is
2985 begin
2986 pragma Assert (False
2987 or else NT (N).Nkind = N_Op_Divide
2988 or else NT (N).Nkind = N_Op_Mod
2989 or else NT (N).Nkind = N_Op_Multiply
2990 or else NT (N).Nkind = N_Op_Rem);
2991 return Flag14 (N);
2992 end Treat_Fixed_As_Integer;
2993
2994 function Triggering_Alternative
2995 (N : Node_Id) return Node_Id is
2996 begin
2997 pragma Assert (False
2998 or else NT (N).Nkind = N_Asynchronous_Select);
2999 return Node1 (N);
3000 end Triggering_Alternative;
3001
3002 function Triggering_Statement
3003 (N : Node_Id) return Node_Id is
3004 begin
3005 pragma Assert (False
3006 or else NT (N).Nkind = N_Triggering_Alternative);
3007 return Node1 (N);
3008 end Triggering_Statement;
3009
3010 function TSS_Elist
3011 (N : Node_Id) return Elist_Id is
3012 begin
3013 pragma Assert (False
3014 or else NT (N).Nkind = N_Freeze_Entity);
3015 return Elist3 (N);
3016 end TSS_Elist;
3017
3018 function Type_Definition
3019 (N : Node_Id) return Node_Id is
3020 begin
3021 pragma Assert (False
3022 or else NT (N).Nkind = N_Full_Type_Declaration);
3023 return Node3 (N);
3024 end Type_Definition;
3025
3026 function Unit
3027 (N : Node_Id) return Node_Id is
3028 begin
3029 pragma Assert (False
3030 or else NT (N).Nkind = N_Compilation_Unit);
3031 return Node2 (N);
3032 end Unit;
3033
3034 function Unknown_Discriminants_Present
3035 (N : Node_Id) return Boolean is
3036 begin
3037 pragma Assert (False
3038 or else NT (N).Nkind = N_Formal_Type_Declaration
3039 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3040 or else NT (N).Nkind = N_Private_Extension_Declaration
3041 or else NT (N).Nkind = N_Private_Type_Declaration);
3042 return Flag13 (N);
3043 end Unknown_Discriminants_Present;
3044
3045 function Unreferenced_In_Spec
3046 (N : Node_Id) return Boolean is
3047 begin
3048 pragma Assert (False
3049 or else NT (N).Nkind = N_With_Clause);
3050 return Flag7 (N);
3051 end Unreferenced_In_Spec;
3052
3053 function Variant_Part
3054 (N : Node_Id) return Node_Id is
3055 begin
3056 pragma Assert (False
3057 or else NT (N).Nkind = N_Component_List);
3058 return Node4 (N);
3059 end Variant_Part;
3060
3061 function Variants
3062 (N : Node_Id) return List_Id is
3063 begin
3064 pragma Assert (False
3065 or else NT (N).Nkind = N_Variant_Part);
3066 return List1 (N);
3067 end Variants;
3068
3069 function Visible_Declarations
3070 (N : Node_Id) return List_Id is
3071 begin
3072 pragma Assert (False
3073 or else NT (N).Nkind = N_Package_Specification
3074 or else NT (N).Nkind = N_Protected_Definition
3075 or else NT (N).Nkind = N_Task_Definition);
3076 return List2 (N);
3077 end Visible_Declarations;
3078
3079 function Used_Operations
3080 (N : Node_Id) return Elist_Id is
3081 begin
3082 pragma Assert (False
3083 or else NT (N).Nkind = N_Use_Type_Clause);
3084 return Elist5 (N);
3085 end Used_Operations;
3086
3087 function Was_Originally_Stub
3088 (N : Node_Id) return Boolean is
3089 begin
3090 pragma Assert (False
3091 or else NT (N).Nkind = N_Package_Body
3092 or else NT (N).Nkind = N_Protected_Body
3093 or else NT (N).Nkind = N_Subprogram_Body
3094 or else NT (N).Nkind = N_Task_Body);
3095 return Flag13 (N);
3096 end Was_Originally_Stub;
3097
3098 function Withed_Body
3099 (N : Node_Id) return Node_Id is
3100 begin
3101 pragma Assert (False
3102 or else NT (N).Nkind = N_With_Clause);
3103 return Node1 (N);
3104 end Withed_Body;
3105
3106 --------------------------
3107 -- Field Set Procedures --
3108 --------------------------
3109
3110 procedure Set_ABE_Is_Certain
3111 (N : Node_Id; Val : Boolean := True) is
3112 begin
3113 pragma Assert (False
3114 or else NT (N).Nkind = N_Formal_Package_Declaration
3115 or else NT (N).Nkind = N_Function_Call
3116 or else NT (N).Nkind = N_Function_Instantiation
3117 or else NT (N).Nkind = N_Package_Instantiation
3118 or else NT (N).Nkind = N_Procedure_Call_Statement
3119 or else NT (N).Nkind = N_Procedure_Instantiation);
3120 Set_Flag18 (N, Val);
3121 end Set_ABE_Is_Certain;
3122
3123 procedure Set_Abort_Present
3124 (N : Node_Id; Val : Boolean := True) is
3125 begin
3126 pragma Assert (False
3127 or else NT (N).Nkind = N_Requeue_Statement);
3128 Set_Flag15 (N, Val);
3129 end Set_Abort_Present;
3130
3131 procedure Set_Abortable_Part
3132 (N : Node_Id; Val : Node_Id) is
3133 begin
3134 pragma Assert (False
3135 or else NT (N).Nkind = N_Asynchronous_Select);
3136 Set_Node2_With_Parent (N, Val);
3137 end Set_Abortable_Part;
3138
3139 procedure Set_Abstract_Present
3140 (N : Node_Id; Val : Boolean := True) is
3141 begin
3142 pragma Assert (False
3143 or else NT (N).Nkind = N_Derived_Type_Definition
3144 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3145 or else NT (N).Nkind = N_Formal_Private_Type_Definition
3146 or else NT (N).Nkind = N_Private_Extension_Declaration
3147 or else NT (N).Nkind = N_Private_Type_Declaration
3148 or else NT (N).Nkind = N_Record_Definition);
3149 Set_Flag4 (N, Val);
3150 end Set_Abstract_Present;
3151
3152 procedure Set_Accept_Handler_Records
3153 (N : Node_Id; Val : List_Id) is
3154 begin
3155 pragma Assert (False
3156 or else NT (N).Nkind = N_Accept_Alternative);
3157 Set_List5 (N, Val); -- semantic field, no parent set
3158 end Set_Accept_Handler_Records;
3159
3160 procedure Set_Accept_Statement
3161 (N : Node_Id; Val : Node_Id) is
3162 begin
3163 pragma Assert (False
3164 or else NT (N).Nkind = N_Accept_Alternative);
3165 Set_Node2_With_Parent (N, Val);
3166 end Set_Accept_Statement;
3167
3168 procedure Set_Access_Definition
3169 (N : Node_Id; Val : Node_Id) is
3170 begin
3171 pragma Assert (False
3172 or else NT (N).Nkind = N_Component_Definition
3173 or else NT (N).Nkind = N_Formal_Object_Declaration
3174 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3175 Set_Node3_With_Parent (N, Val);
3176 end Set_Access_Definition;
3177
3178 procedure Set_Access_To_Subprogram_Definition
3179 (N : Node_Id; Val : Node_Id) is
3180 begin
3181 pragma Assert (False
3182 or else NT (N).Nkind = N_Access_Definition);
3183 Set_Node3_With_Parent (N, Val);
3184 end Set_Access_To_Subprogram_Definition;
3185
3186 procedure Set_Access_Types_To_Process
3187 (N : Node_Id; Val : Elist_Id) is
3188 begin
3189 pragma Assert (False
3190 or else NT (N).Nkind = N_Freeze_Entity);
3191 Set_Elist2 (N, Val); -- semantic field, no parent set
3192 end Set_Access_Types_To_Process;
3193
3194 procedure Set_Actions
3195 (N : Node_Id; Val : List_Id) is
3196 begin
3197 pragma Assert (False
3198 or else NT (N).Nkind = N_And_Then
3199 or else NT (N).Nkind = N_Case_Expression_Alternative
3200 or else NT (N).Nkind = N_Compilation_Unit_Aux
3201 or else NT (N).Nkind = N_Expression_With_Actions
3202 or else NT (N).Nkind = N_Freeze_Entity
3203 or else NT (N).Nkind = N_Or_Else);
3204 Set_List1_With_Parent (N, Val);
3205 end Set_Actions;
3206
3207 procedure Set_Activation_Chain_Entity
3208 (N : Node_Id; Val : Node_Id) is
3209 begin
3210 pragma Assert (False
3211 or else NT (N).Nkind = N_Block_Statement
3212 or else NT (N).Nkind = N_Entry_Body
3213 or else NT (N).Nkind = N_Generic_Package_Declaration
3214 or else NT (N).Nkind = N_Package_Declaration
3215 or else NT (N).Nkind = N_Subprogram_Body
3216 or else NT (N).Nkind = N_Task_Body);
3217 Set_Node3 (N, Val); -- semantic field, no parent set
3218 end Set_Activation_Chain_Entity;
3219
3220 procedure Set_Acts_As_Spec
3221 (N : Node_Id; Val : Boolean := True) is
3222 begin
3223 pragma Assert (False
3224 or else NT (N).Nkind = N_Compilation_Unit
3225 or else NT (N).Nkind = N_Subprogram_Body);
3226 Set_Flag4 (N, Val);
3227 end Set_Acts_As_Spec;
3228
3229 procedure Set_Actual_Designated_Subtype
3230 (N : Node_Id; Val : Node_Id) is
3231 begin
3232 pragma Assert (False
3233 or else NT (N).Nkind = N_Explicit_Dereference
3234 or else NT (N).Nkind = N_Free_Statement);
3235 Set_Node4 (N, Val);
3236 end Set_Actual_Designated_Subtype;
3237
3238 procedure Set_Address_Warning_Posted
3239 (N : Node_Id; Val : Boolean := True) is
3240 begin
3241 pragma Assert (False
3242 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3243 Set_Flag18 (N, Val);
3244 end Set_Address_Warning_Posted;
3245
3246 procedure Set_Aggregate_Bounds
3247 (N : Node_Id; Val : Node_Id) is
3248 begin
3249 pragma Assert (False
3250 or else NT (N).Nkind = N_Aggregate);
3251 Set_Node3 (N, Val); -- semantic field, no parent set
3252 end Set_Aggregate_Bounds;
3253
3254 procedure Set_Aliased_Present
3255 (N : Node_Id; Val : Boolean := True) is
3256 begin
3257 pragma Assert (False
3258 or else NT (N).Nkind = N_Component_Definition
3259 or else NT (N).Nkind = N_Object_Declaration);
3260 Set_Flag4 (N, Val);
3261 end Set_Aliased_Present;
3262
3263 procedure Set_All_Others
3264 (N : Node_Id; Val : Boolean := True) is
3265 begin
3266 pragma Assert (False
3267 or else NT (N).Nkind = N_Others_Choice);
3268 Set_Flag11 (N, Val);
3269 end Set_All_Others;
3270
3271 procedure Set_All_Present
3272 (N : Node_Id; Val : Boolean := True) is
3273 begin
3274 pragma Assert (False
3275 or else NT (N).Nkind = N_Access_Definition
3276 or else NT (N).Nkind = N_Access_To_Object_Definition
3277 or else NT (N).Nkind = N_Quantified_Expression
3278 or else NT (N).Nkind = N_Use_Type_Clause);
3279 Set_Flag15 (N, Val);
3280 end Set_All_Present;
3281
3282 procedure Set_Alternatives
3283 (N : Node_Id; Val : List_Id) is
3284 begin
3285 pragma Assert (False
3286 or else NT (N).Nkind = N_Case_Expression
3287 or else NT (N).Nkind = N_Case_Statement
3288 or else NT (N).Nkind = N_In
3289 or else NT (N).Nkind = N_Not_In);
3290 Set_List4_With_Parent (N, Val);
3291 end Set_Alternatives;
3292
3293 procedure Set_Ancestor_Part
3294 (N : Node_Id; Val : Node_Id) is
3295 begin
3296 pragma Assert (False
3297 or else NT (N).Nkind = N_Extension_Aggregate);
3298 Set_Node3_With_Parent (N, Val);
3299 end Set_Ancestor_Part;
3300
3301 procedure Set_Array_Aggregate
3302 (N : Node_Id; Val : Node_Id) is
3303 begin
3304 pragma Assert (False
3305 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
3306 Set_Node3_With_Parent (N, Val);
3307 end Set_Array_Aggregate;
3308
3309 procedure Set_Aspect_Rep_Item
3310 (N : Node_Id; Val : Node_Id) is
3311 begin
3312 pragma Assert (False
3313 or else NT (N).Nkind = N_Aspect_Specification);
3314 Set_Node2 (N, Val);
3315 end Set_Aspect_Rep_Item;
3316
3317 procedure Set_Assignment_OK
3318 (N : Node_Id; Val : Boolean := True) is
3319 begin
3320 pragma Assert (False
3321 or else NT (N).Nkind = N_Object_Declaration
3322 or else NT (N).Nkind in N_Subexpr);
3323 Set_Flag15 (N, Val);
3324 end Set_Assignment_OK;
3325
3326 procedure Set_Associated_Node
3327 (N : Node_Id; Val : Node_Id) is
3328 begin
3329 pragma Assert (False
3330 or else NT (N).Nkind in N_Has_Entity
3331 or else NT (N).Nkind = N_Aggregate
3332 or else NT (N).Nkind = N_Extension_Aggregate
3333 or else NT (N).Nkind = N_Selected_Component);
3334 Set_Node4 (N, Val); -- semantic field, no parent set
3335 end Set_Associated_Node;
3336
3337 procedure Set_At_End_Proc
3338 (N : Node_Id; Val : Node_Id) is
3339 begin
3340 pragma Assert (False
3341 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3342 Set_Node1 (N, Val);
3343 end Set_At_End_Proc;
3344
3345 procedure Set_Attribute_Name
3346 (N : Node_Id; Val : Name_Id) is
3347 begin
3348 pragma Assert (False
3349 or else NT (N).Nkind = N_Attribute_Reference);
3350 Set_Name2 (N, Val);
3351 end Set_Attribute_Name;
3352
3353 procedure Set_Aux_Decls_Node
3354 (N : Node_Id; Val : Node_Id) is
3355 begin
3356 pragma Assert (False
3357 or else NT (N).Nkind = N_Compilation_Unit);
3358 Set_Node5_With_Parent (N, Val);
3359 end Set_Aux_Decls_Node;
3360
3361 procedure Set_Backwards_OK
3362 (N : Node_Id; Val : Boolean := True) is
3363 begin
3364 pragma Assert (False
3365 or else NT (N).Nkind = N_Assignment_Statement);
3366 Set_Flag6 (N, Val);
3367 end Set_Backwards_OK;
3368
3369 procedure Set_Bad_Is_Detected
3370 (N : Node_Id; Val : Boolean := True) is
3371 begin
3372 pragma Assert (False
3373 or else NT (N).Nkind = N_Subprogram_Body);
3374 Set_Flag15 (N, Val);
3375 end Set_Bad_Is_Detected;
3376
3377 procedure Set_Body_Required
3378 (N : Node_Id; Val : Boolean := True) is
3379 begin
3380 pragma Assert (False
3381 or else NT (N).Nkind = N_Compilation_Unit);
3382 Set_Flag13 (N, Val);
3383 end Set_Body_Required;
3384
3385 procedure Set_Body_To_Inline
3386 (N : Node_Id; Val : Node_Id) is
3387 begin
3388 pragma Assert (False
3389 or else NT (N).Nkind = N_Subprogram_Declaration);
3390 Set_Node3 (N, Val);
3391 end Set_Body_To_Inline;
3392
3393 procedure Set_Box_Present
3394 (N : Node_Id; Val : Boolean := True) is
3395 begin
3396 pragma Assert (False
3397 or else NT (N).Nkind = N_Component_Association
3398 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3399 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
3400 or else NT (N).Nkind = N_Formal_Package_Declaration
3401 or else NT (N).Nkind = N_Generic_Association);
3402 Set_Flag15 (N, Val);
3403 end Set_Box_Present;
3404
3405 procedure Set_By_Ref
3406 (N : Node_Id; Val : Boolean := True) is
3407 begin
3408 pragma Assert (False
3409 or else NT (N).Nkind = N_Extended_Return_Statement
3410 or else NT (N).Nkind = N_Return_Statement);
3411 Set_Flag5 (N, Val);
3412 end Set_By_Ref;
3413
3414 procedure Set_Char_Literal_Value
3415 (N : Node_Id; Val : Uint) is
3416 begin
3417 pragma Assert (False
3418 or else NT (N).Nkind = N_Character_Literal);
3419 Set_Uint2 (N, Val);
3420 end Set_Char_Literal_Value;
3421
3422 procedure Set_Chars
3423 (N : Node_Id; Val : Name_Id) is
3424 begin
3425 pragma Assert (False
3426 or else NT (N).Nkind in N_Has_Chars);
3427 Set_Name1 (N, Val);
3428 end Set_Chars;
3429
3430 procedure Set_Check_Address_Alignment
3431 (N : Node_Id; Val : Boolean := True) is
3432 begin
3433 pragma Assert (False
3434 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3435 Set_Flag11 (N, Val);
3436 end Set_Check_Address_Alignment;
3437
3438 procedure Set_Choice_Parameter
3439 (N : Node_Id; Val : Node_Id) is
3440 begin
3441 pragma Assert (False
3442 or else NT (N).Nkind = N_Exception_Handler);
3443 Set_Node2_With_Parent (N, Val);
3444 end Set_Choice_Parameter;
3445
3446 procedure Set_Choices
3447 (N : Node_Id; Val : List_Id) is
3448 begin
3449 pragma Assert (False
3450 or else NT (N).Nkind = N_Component_Association);
3451 Set_List1_With_Parent (N, Val);
3452 end Set_Choices;
3453
3454 procedure Set_Class_Present
3455 (N : Node_Id; Val : Boolean := True) is
3456 begin
3457 pragma Assert (False
3458 or else NT (N).Nkind = N_Aspect_Specification
3459 or else NT (N).Nkind = N_Pragma);
3460 Set_Flag6 (N, Val);
3461 end Set_Class_Present;
3462
3463 procedure Set_Comes_From_Extended_Return_Statement
3464 (N : Node_Id; Val : Boolean := True) is
3465 begin
3466 pragma Assert (False
3467 or else NT (N).Nkind = N_Return_Statement);
3468 Set_Flag18 (N, Val);
3469 end Set_Comes_From_Extended_Return_Statement;
3470
3471 procedure Set_Compile_Time_Known_Aggregate
3472 (N : Node_Id; Val : Boolean := True) is
3473 begin
3474 pragma Assert (False
3475 or else NT (N).Nkind = N_Aggregate);
3476 Set_Flag18 (N, Val);
3477 end Set_Compile_Time_Known_Aggregate;
3478
3479 procedure Set_Component_Associations
3480 (N : Node_Id; Val : List_Id) is
3481 begin
3482 pragma Assert (False
3483 or else NT (N).Nkind = N_Aggregate
3484 or else NT (N).Nkind = N_Extension_Aggregate);
3485 Set_List2_With_Parent (N, Val);
3486 end Set_Component_Associations;
3487
3488 procedure Set_Component_Clauses
3489 (N : Node_Id; Val : List_Id) is
3490 begin
3491 pragma Assert (False
3492 or else NT (N).Nkind = N_Record_Representation_Clause);
3493 Set_List3_With_Parent (N, Val);
3494 end Set_Component_Clauses;
3495
3496 procedure Set_Component_Definition
3497 (N : Node_Id; Val : Node_Id) is
3498 begin
3499 pragma Assert (False
3500 or else NT (N).Nkind = N_Component_Declaration
3501 or else NT (N).Nkind = N_Constrained_Array_Definition
3502 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
3503 Set_Node4_With_Parent (N, Val);
3504 end Set_Component_Definition;
3505
3506 procedure Set_Component_Items
3507 (N : Node_Id; Val : List_Id) is
3508 begin
3509 pragma Assert (False
3510 or else NT (N).Nkind = N_Component_List);
3511 Set_List3_With_Parent (N, Val);
3512 end Set_Component_Items;
3513
3514 procedure Set_Component_List
3515 (N : Node_Id; Val : Node_Id) is
3516 begin
3517 pragma Assert (False
3518 or else NT (N).Nkind = N_Record_Definition
3519 or else NT (N).Nkind = N_Variant);
3520 Set_Node1_With_Parent (N, Val);
3521 end Set_Component_List;
3522
3523 procedure Set_Component_Name
3524 (N : Node_Id; Val : Node_Id) is
3525 begin
3526 pragma Assert (False
3527 or else NT (N).Nkind = N_Component_Clause);
3528 Set_Node1_With_Parent (N, Val);
3529 end Set_Component_Name;
3530
3531 procedure Set_Componentwise_Assignment
3532 (N : Node_Id; Val : Boolean := True) is
3533 begin
3534 pragma Assert (False
3535 or else NT (N).Nkind = N_Assignment_Statement);
3536 Set_Flag14 (N, Val);
3537 end Set_Componentwise_Assignment;
3538
3539 procedure Set_Condition
3540 (N : Node_Id; Val : Node_Id) is
3541 begin
3542 pragma Assert (False
3543 or else NT (N).Nkind = N_Accept_Alternative
3544 or else NT (N).Nkind = N_Delay_Alternative
3545 or else NT (N).Nkind = N_Elsif_Part
3546 or else NT (N).Nkind = N_Entry_Body_Formal_Part
3547 or else NT (N).Nkind = N_Exit_Statement
3548 or else NT (N).Nkind = N_If_Statement
3549 or else NT (N).Nkind = N_Iteration_Scheme
3550 or else NT (N).Nkind = N_Quantified_Expression
3551 or else NT (N).Nkind = N_Raise_Constraint_Error
3552 or else NT (N).Nkind = N_Raise_Program_Error
3553 or else NT (N).Nkind = N_Raise_Storage_Error
3554 or else NT (N).Nkind = N_Terminate_Alternative);
3555 Set_Node1_With_Parent (N, Val);
3556 end Set_Condition;
3557
3558 procedure Set_Condition_Actions
3559 (N : Node_Id; Val : List_Id) is
3560 begin
3561 pragma Assert (False
3562 or else NT (N).Nkind = N_Elsif_Part
3563 or else NT (N).Nkind = N_Iteration_Scheme);
3564 Set_List3 (N, Val); -- semantic field, no parent set
3565 end Set_Condition_Actions;
3566
3567 procedure Set_Config_Pragmas
3568 (N : Node_Id; Val : List_Id) is
3569 begin
3570 pragma Assert (False
3571 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3572 Set_List4_With_Parent (N, Val);
3573 end Set_Config_Pragmas;
3574
3575 procedure Set_Constant_Present
3576 (N : Node_Id; Val : Boolean := True) is
3577 begin
3578 pragma Assert (False
3579 or else NT (N).Nkind = N_Access_Definition
3580 or else NT (N).Nkind = N_Access_To_Object_Definition
3581 or else NT (N).Nkind = N_Object_Declaration);
3582 Set_Flag17 (N, Val);
3583 end Set_Constant_Present;
3584
3585 procedure Set_Constraint
3586 (N : Node_Id; Val : Node_Id) is
3587 begin
3588 pragma Assert (False
3589 or else NT (N).Nkind = N_Subtype_Indication);
3590 Set_Node3_With_Parent (N, Val);
3591 end Set_Constraint;
3592
3593 procedure Set_Constraints
3594 (N : Node_Id; Val : List_Id) is
3595 begin
3596 pragma Assert (False
3597 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
3598 Set_List1_With_Parent (N, Val);
3599 end Set_Constraints;
3600
3601 procedure Set_Context_Installed
3602 (N : Node_Id; Val : Boolean := True) is
3603 begin
3604 pragma Assert (False
3605 or else NT (N).Nkind = N_With_Clause);
3606 Set_Flag13 (N, Val);
3607 end Set_Context_Installed;
3608
3609 procedure Set_Context_Items
3610 (N : Node_Id; Val : List_Id) is
3611 begin
3612 pragma Assert (False
3613 or else NT (N).Nkind = N_Compilation_Unit);
3614 Set_List1_With_Parent (N, Val);
3615 end Set_Context_Items;
3616
3617 procedure Set_Context_Pending
3618 (N : Node_Id; Val : Boolean := True) is
3619 begin
3620 pragma Assert (False
3621 or else NT (N).Nkind = N_Compilation_Unit);
3622 Set_Flag16 (N, Val);
3623 end Set_Context_Pending;
3624
3625 procedure Set_Controlling_Argument
3626 (N : Node_Id; Val : Node_Id) is
3627 begin
3628 pragma Assert (False
3629 or else NT (N).Nkind = N_Function_Call
3630 or else NT (N).Nkind = N_Procedure_Call_Statement);
3631 Set_Node1 (N, Val); -- semantic field, no parent set
3632 end Set_Controlling_Argument;
3633
3634 procedure Set_Conversion_OK
3635 (N : Node_Id; Val : Boolean := True) is
3636 begin
3637 pragma Assert (False
3638 or else NT (N).Nkind = N_Type_Conversion);
3639 Set_Flag14 (N, Val);
3640 end Set_Conversion_OK;
3641
3642 procedure Set_Corresponding_Body
3643 (N : Node_Id; Val : Node_Id) is
3644 begin
3645 pragma Assert (False
3646 or else NT (N).Nkind = N_Entry_Declaration
3647 or else NT (N).Nkind = N_Generic_Package_Declaration
3648 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
3649 or else NT (N).Nkind = N_Package_Body_Stub
3650 or else NT (N).Nkind = N_Package_Declaration
3651 or else NT (N).Nkind = N_Protected_Body_Stub
3652 or else NT (N).Nkind = N_Protected_Type_Declaration
3653 or else NT (N).Nkind = N_Subprogram_Body_Stub
3654 or else NT (N).Nkind = N_Subprogram_Declaration
3655 or else NT (N).Nkind = N_Task_Body_Stub
3656 or else NT (N).Nkind = N_Task_Type_Declaration);
3657 Set_Node5 (N, Val); -- semantic field, no parent set
3658 end Set_Corresponding_Body;
3659
3660 procedure Set_Corresponding_Formal_Spec
3661 (N : Node_Id; Val : Node_Id) is
3662 begin
3663 pragma Assert (False
3664 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
3665 Set_Node3 (N, Val); -- semantic field, no parent set
3666 end Set_Corresponding_Formal_Spec;
3667
3668 procedure Set_Corresponding_Generic_Association
3669 (N : Node_Id; Val : Node_Id) is
3670 begin
3671 pragma Assert (False
3672 or else NT (N).Nkind = N_Object_Declaration
3673 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3674 Set_Node5 (N, Val); -- semantic field, no parent set
3675 end Set_Corresponding_Generic_Association;
3676
3677 procedure Set_Corresponding_Integer_Value
3678 (N : Node_Id; Val : Uint) is
3679 begin
3680 pragma Assert (False
3681 or else NT (N).Nkind = N_Real_Literal);
3682 Set_Uint4 (N, Val); -- semantic field, no parent set
3683 end Set_Corresponding_Integer_Value;
3684
3685 procedure Set_Corresponding_Spec
3686 (N : Node_Id; Val : Node_Id) is
3687 begin
3688 pragma Assert (False
3689 or else NT (N).Nkind = N_Package_Body
3690 or else NT (N).Nkind = N_Protected_Body
3691 or else NT (N).Nkind = N_Subprogram_Body
3692 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
3693 or else NT (N).Nkind = N_Task_Body
3694 or else NT (N).Nkind = N_With_Clause);
3695 Set_Node5 (N, Val); -- semantic field, no parent set
3696 end Set_Corresponding_Spec;
3697
3698 procedure Set_Corresponding_Stub
3699 (N : Node_Id; Val : Node_Id) is
3700 begin
3701 pragma Assert (False
3702 or else NT (N).Nkind = N_Subunit);
3703 Set_Node3 (N, Val);
3704 end Set_Corresponding_Stub;
3705
3706 procedure Set_Dcheck_Function
3707 (N : Node_Id; Val : Entity_Id) is
3708 begin
3709 pragma Assert (False
3710 or else NT (N).Nkind = N_Variant);
3711 Set_Node5 (N, Val); -- semantic field, no parent set
3712 end Set_Dcheck_Function;
3713
3714 procedure Set_Declarations
3715 (N : Node_Id; Val : List_Id) is
3716 begin
3717 pragma Assert (False
3718 or else NT (N).Nkind = N_Accept_Statement
3719 or else NT (N).Nkind = N_Block_Statement
3720 or else NT (N).Nkind = N_Compilation_Unit_Aux
3721 or else NT (N).Nkind = N_Entry_Body
3722 or else NT (N).Nkind = N_Package_Body
3723 or else NT (N).Nkind = N_Protected_Body
3724 or else NT (N).Nkind = N_Subprogram_Body
3725 or else NT (N).Nkind = N_Task_Body);
3726 Set_List2_With_Parent (N, Val);
3727 end Set_Declarations;
3728
3729 procedure Set_Default_Expression
3730 (N : Node_Id; Val : Node_Id) is
3731 begin
3732 pragma Assert (False
3733 or else NT (N).Nkind = N_Formal_Object_Declaration
3734 or else NT (N).Nkind = N_Parameter_Specification);
3735 Set_Node5 (N, Val); -- semantic field, no parent set
3736 end Set_Default_Expression;
3737
3738 procedure Set_Default_Storage_Pool
3739 (N : Node_Id; Val : Node_Id) is
3740 begin
3741 pragma Assert (False
3742 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3743 Set_Node3 (N, Val); -- semantic field, no parent set
3744 end Set_Default_Storage_Pool;
3745
3746 procedure Set_Default_Name
3747 (N : Node_Id; Val : Node_Id) is
3748 begin
3749 pragma Assert (False
3750 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3751 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
3752 Set_Node2_With_Parent (N, Val);
3753 end Set_Default_Name;
3754
3755 procedure Set_Defining_Identifier
3756 (N : Node_Id; Val : Entity_Id) is
3757 begin
3758 pragma Assert (False
3759 or else NT (N).Nkind = N_Component_Declaration
3760 or else NT (N).Nkind = N_Defining_Program_Unit_Name
3761 or else NT (N).Nkind = N_Discriminant_Specification
3762 or else NT (N).Nkind = N_Entry_Body
3763 or else NT (N).Nkind = N_Entry_Declaration
3764 or else NT (N).Nkind = N_Entry_Index_Specification
3765 or else NT (N).Nkind = N_Exception_Declaration
3766 or else NT (N).Nkind = N_Exception_Renaming_Declaration
3767 or else NT (N).Nkind = N_Formal_Object_Declaration
3768 or else NT (N).Nkind = N_Formal_Package_Declaration
3769 or else NT (N).Nkind = N_Formal_Type_Declaration
3770 or else NT (N).Nkind = N_Full_Type_Declaration
3771 or else NT (N).Nkind = N_Implicit_Label_Declaration
3772 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3773 or else NT (N).Nkind = N_Iterator_Specification
3774 or else NT (N).Nkind = N_Loop_Parameter_Specification
3775 or else NT (N).Nkind = N_Number_Declaration
3776 or else NT (N).Nkind = N_Object_Declaration
3777 or else NT (N).Nkind = N_Object_Renaming_Declaration
3778 or else NT (N).Nkind = N_Package_Body_Stub
3779 or else NT (N).Nkind = N_Parameter_Specification
3780 or else NT (N).Nkind = N_Private_Extension_Declaration
3781 or else NT (N).Nkind = N_Private_Type_Declaration
3782 or else NT (N).Nkind = N_Protected_Body
3783 or else NT (N).Nkind = N_Protected_Body_Stub
3784 or else NT (N).Nkind = N_Protected_Type_Declaration
3785 or else NT (N).Nkind = N_Single_Protected_Declaration
3786 or else NT (N).Nkind = N_Single_Task_Declaration
3787 or else NT (N).Nkind = N_Subtype_Declaration
3788 or else NT (N).Nkind = N_Task_Body
3789 or else NT (N).Nkind = N_Task_Body_Stub
3790 or else NT (N).Nkind = N_Task_Type_Declaration);
3791 Set_Node1_With_Parent (N, Val);
3792 end Set_Defining_Identifier;
3793
3794 procedure Set_Defining_Unit_Name
3795 (N : Node_Id; Val : Node_Id) is
3796 begin
3797 pragma Assert (False
3798 or else NT (N).Nkind = N_Function_Instantiation
3799 or else NT (N).Nkind = N_Function_Specification
3800 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
3801 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
3802 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
3803 or else NT (N).Nkind = N_Package_Body
3804 or else NT (N).Nkind = N_Package_Instantiation
3805 or else NT (N).Nkind = N_Package_Renaming_Declaration
3806 or else NT (N).Nkind = N_Package_Specification
3807 or else NT (N).Nkind = N_Procedure_Instantiation
3808 or else NT (N).Nkind = N_Procedure_Specification);
3809 Set_Node1_With_Parent (N, Val);
3810 end Set_Defining_Unit_Name;
3811
3812 procedure Set_Delay_Alternative
3813 (N : Node_Id; Val : Node_Id) is
3814 begin
3815 pragma Assert (False
3816 or else NT (N).Nkind = N_Timed_Entry_Call);
3817 Set_Node4_With_Parent (N, Val);
3818 end Set_Delay_Alternative;
3819
3820 procedure Set_Delay_Statement
3821 (N : Node_Id; Val : Node_Id) is
3822 begin
3823 pragma Assert (False
3824 or else NT (N).Nkind = N_Delay_Alternative);
3825 Set_Node2_With_Parent (N, Val);
3826 end Set_Delay_Statement;
3827
3828 procedure Set_Delta_Expression
3829 (N : Node_Id; Val : Node_Id) is
3830 begin
3831 pragma Assert (False
3832 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3833 or else NT (N).Nkind = N_Delta_Constraint
3834 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
3835 Set_Node3_With_Parent (N, Val);
3836 end Set_Delta_Expression;
3837
3838 procedure Set_Digits_Expression
3839 (N : Node_Id; Val : Node_Id) is
3840 begin
3841 pragma Assert (False
3842 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3843 or else NT (N).Nkind = N_Digits_Constraint
3844 or else NT (N).Nkind = N_Floating_Point_Definition);
3845 Set_Node2_With_Parent (N, Val);
3846 end Set_Digits_Expression;
3847
3848 procedure Set_Discr_Check_Funcs_Built
3849 (N : Node_Id; Val : Boolean := True) is
3850 begin
3851 pragma Assert (False
3852 or else NT (N).Nkind = N_Full_Type_Declaration);
3853 Set_Flag11 (N, Val);
3854 end Set_Discr_Check_Funcs_Built;
3855
3856 procedure Set_Discrete_Choices
3857 (N : Node_Id; Val : List_Id) is
3858 begin
3859 pragma Assert (False
3860 or else NT (N).Nkind = N_Case_Expression_Alternative
3861 or else NT (N).Nkind = N_Case_Statement_Alternative
3862 or else NT (N).Nkind = N_Variant);
3863 Set_List4_With_Parent (N, Val);
3864 end Set_Discrete_Choices;
3865
3866 procedure Set_Discrete_Range
3867 (N : Node_Id; Val : Node_Id) is
3868 begin
3869 pragma Assert (False
3870 or else NT (N).Nkind = N_Slice);
3871 Set_Node4_With_Parent (N, Val);
3872 end Set_Discrete_Range;
3873
3874 procedure Set_Discrete_Subtype_Definition
3875 (N : Node_Id; Val : Node_Id) is
3876 begin
3877 pragma Assert (False
3878 or else NT (N).Nkind = N_Entry_Declaration
3879 or else NT (N).Nkind = N_Entry_Index_Specification
3880 or else NT (N).Nkind = N_Loop_Parameter_Specification);
3881 Set_Node4_With_Parent (N, Val);
3882 end Set_Discrete_Subtype_Definition;
3883
3884 procedure Set_Discrete_Subtype_Definitions
3885 (N : Node_Id; Val : List_Id) is
3886 begin
3887 pragma Assert (False
3888 or else NT (N).Nkind = N_Constrained_Array_Definition);
3889 Set_List2_With_Parent (N, Val);
3890 end Set_Discrete_Subtype_Definitions;
3891
3892 procedure Set_Discriminant_Specifications
3893 (N : Node_Id; Val : List_Id) is
3894 begin
3895 pragma Assert (False
3896 or else NT (N).Nkind = N_Formal_Type_Declaration
3897 or else NT (N).Nkind = N_Full_Type_Declaration
3898 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3899 or else NT (N).Nkind = N_Private_Extension_Declaration
3900 or else NT (N).Nkind = N_Private_Type_Declaration
3901 or else NT (N).Nkind = N_Protected_Type_Declaration
3902 or else NT (N).Nkind = N_Task_Type_Declaration);
3903 Set_List4_With_Parent (N, Val);
3904 end Set_Discriminant_Specifications;
3905
3906 procedure Set_Discriminant_Type
3907 (N : Node_Id; Val : Node_Id) is
3908 begin
3909 pragma Assert (False
3910 or else NT (N).Nkind = N_Discriminant_Specification);
3911 Set_Node5_With_Parent (N, Val);
3912 end Set_Discriminant_Type;
3913
3914 procedure Set_Do_Accessibility_Check
3915 (N : Node_Id; Val : Boolean := True) is
3916 begin
3917 pragma Assert (False
3918 or else NT (N).Nkind = N_Parameter_Specification);
3919 Set_Flag13 (N, Val);
3920 end Set_Do_Accessibility_Check;
3921
3922 procedure Set_Do_Discriminant_Check
3923 (N : Node_Id; Val : Boolean := True) is
3924 begin
3925 pragma Assert (False
3926 or else NT (N).Nkind = N_Selected_Component);
3927 Set_Flag13 (N, Val);
3928 end Set_Do_Discriminant_Check;
3929
3930 procedure Set_Do_Division_Check
3931 (N : Node_Id; Val : Boolean := True) is
3932 begin
3933 pragma Assert (False
3934 or else NT (N).Nkind = N_Op_Divide
3935 or else NT (N).Nkind = N_Op_Mod
3936 or else NT (N).Nkind = N_Op_Rem);
3937 Set_Flag13 (N, Val);
3938 end Set_Do_Division_Check;
3939
3940 procedure Set_Do_Length_Check
3941 (N : Node_Id; Val : Boolean := True) is
3942 begin
3943 pragma Assert (False
3944 or else NT (N).Nkind = N_Assignment_Statement
3945 or else NT (N).Nkind = N_Op_And
3946 or else NT (N).Nkind = N_Op_Or
3947 or else NT (N).Nkind = N_Op_Xor
3948 or else NT (N).Nkind = N_Type_Conversion);
3949 Set_Flag4 (N, Val);
3950 end Set_Do_Length_Check;
3951
3952 procedure Set_Do_Overflow_Check
3953 (N : Node_Id; Val : Boolean := True) is
3954 begin
3955 pragma Assert (False
3956 or else NT (N).Nkind in N_Op
3957 or else NT (N).Nkind = N_Attribute_Reference
3958 or else NT (N).Nkind = N_Type_Conversion);
3959 Set_Flag17 (N, Val);
3960 end Set_Do_Overflow_Check;
3961
3962 procedure Set_Do_Range_Check
3963 (N : Node_Id; Val : Boolean := True) is
3964 begin
3965 pragma Assert (False
3966 or else NT (N).Nkind in N_Subexpr);
3967 Set_Flag9 (N, Val);
3968 end Set_Do_Range_Check;
3969
3970 procedure Set_Do_Storage_Check
3971 (N : Node_Id; Val : Boolean := True) is
3972 begin
3973 pragma Assert (False
3974 or else NT (N).Nkind = N_Allocator
3975 or else NT (N).Nkind = N_Subprogram_Body);
3976 Set_Flag17 (N, Val);
3977 end Set_Do_Storage_Check;
3978
3979 procedure Set_Do_Tag_Check
3980 (N : Node_Id; Val : Boolean := True) is
3981 begin
3982 pragma Assert (False
3983 or else NT (N).Nkind = N_Assignment_Statement
3984 or else NT (N).Nkind = N_Extended_Return_Statement
3985 or else NT (N).Nkind = N_Function_Call
3986 or else NT (N).Nkind = N_Procedure_Call_Statement
3987 or else NT (N).Nkind = N_Return_Statement
3988 or else NT (N).Nkind = N_Type_Conversion);
3989 Set_Flag13 (N, Val);
3990 end Set_Do_Tag_Check;
3991
3992 procedure Set_Elaborate_All_Desirable
3993 (N : Node_Id; Val : Boolean := True) is
3994 begin
3995 pragma Assert (False
3996 or else NT (N).Nkind = N_With_Clause);
3997 Set_Flag9 (N, Val);
3998 end Set_Elaborate_All_Desirable;
3999
4000 procedure Set_Elaborate_All_Present
4001 (N : Node_Id; Val : Boolean := True) is
4002 begin
4003 pragma Assert (False
4004 or else NT (N).Nkind = N_With_Clause);
4005 Set_Flag14 (N, Val);
4006 end Set_Elaborate_All_Present;
4007
4008 procedure Set_Elaborate_Desirable
4009 (N : Node_Id; Val : Boolean := True) is
4010 begin
4011 pragma Assert (False
4012 or else NT (N).Nkind = N_With_Clause);
4013 Set_Flag11 (N, Val);
4014 end Set_Elaborate_Desirable;
4015
4016 procedure Set_Elaborate_Present
4017 (N : Node_Id; Val : Boolean := True) is
4018 begin
4019 pragma Assert (False
4020 or else NT (N).Nkind = N_With_Clause);
4021 Set_Flag4 (N, Val);
4022 end Set_Elaborate_Present;
4023
4024 procedure Set_Elaboration_Boolean
4025 (N : Node_Id; Val : Node_Id) is
4026 begin
4027 pragma Assert (False
4028 or else NT (N).Nkind = N_Function_Specification
4029 or else NT (N).Nkind = N_Procedure_Specification);
4030 Set_Node2 (N, Val);
4031 end Set_Elaboration_Boolean;
4032
4033 procedure Set_Else_Actions
4034 (N : Node_Id; Val : List_Id) is
4035 begin
4036 pragma Assert (False
4037 or else NT (N).Nkind = N_Conditional_Expression);
4038 Set_List3 (N, Val); -- semantic field, no parent set
4039 end Set_Else_Actions;
4040
4041 procedure Set_Else_Statements
4042 (N : Node_Id; Val : List_Id) is
4043 begin
4044 pragma Assert (False
4045 or else NT (N).Nkind = N_Conditional_Entry_Call
4046 or else NT (N).Nkind = N_If_Statement
4047 or else NT (N).Nkind = N_Selective_Accept);
4048 Set_List4_With_Parent (N, Val);
4049 end Set_Else_Statements;
4050
4051 procedure Set_Elsif_Parts
4052 (N : Node_Id; Val : List_Id) is
4053 begin
4054 pragma Assert (False
4055 or else NT (N).Nkind = N_If_Statement);
4056 Set_List3_With_Parent (N, Val);
4057 end Set_Elsif_Parts;
4058
4059 procedure Set_Enclosing_Variant
4060 (N : Node_Id; Val : Node_Id) is
4061 begin
4062 pragma Assert (False
4063 or else NT (N).Nkind = N_Variant);
4064 Set_Node2 (N, Val); -- semantic field, no parent set
4065 end Set_Enclosing_Variant;
4066
4067 procedure Set_End_Label
4068 (N : Node_Id; Val : Node_Id) is
4069 begin
4070 pragma Assert (False
4071 or else NT (N).Nkind = N_Enumeration_Type_Definition
4072 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
4073 or else NT (N).Nkind = N_Loop_Statement
4074 or else NT (N).Nkind = N_Package_Specification
4075 or else NT (N).Nkind = N_Protected_Body
4076 or else NT (N).Nkind = N_Protected_Definition
4077 or else NT (N).Nkind = N_Record_Definition
4078 or else NT (N).Nkind = N_Task_Definition);
4079 Set_Node4_With_Parent (N, Val);
4080 end Set_End_Label;
4081
4082 procedure Set_End_Span
4083 (N : Node_Id; Val : Uint) is
4084 begin
4085 pragma Assert (False
4086 or else NT (N).Nkind = N_Case_Statement
4087 or else NT (N).Nkind = N_If_Statement);
4088 Set_Uint5 (N, Val);
4089 end Set_End_Span;
4090
4091 procedure Set_Entity
4092 (N : Node_Id; Val : Node_Id) is
4093 begin
4094 pragma Assert (False
4095 or else NT (N).Nkind in N_Has_Entity
4096 or else NT (N).Nkind = N_Aspect_Specification
4097 or else NT (N).Nkind = N_Attribute_Definition_Clause
4098 or else NT (N).Nkind = N_Freeze_Entity);
4099 Set_Node4 (N, Val); -- semantic field, no parent set
4100 end Set_Entity;
4101
4102 procedure Set_Entry_Body_Formal_Part
4103 (N : Node_Id; Val : Node_Id) is
4104 begin
4105 pragma Assert (False
4106 or else NT (N).Nkind = N_Entry_Body);
4107 Set_Node5_With_Parent (N, Val);
4108 end Set_Entry_Body_Formal_Part;
4109
4110 procedure Set_Entry_Call_Alternative
4111 (N : Node_Id; Val : Node_Id) is
4112 begin
4113 pragma Assert (False
4114 or else NT (N).Nkind = N_Conditional_Entry_Call
4115 or else NT (N).Nkind = N_Timed_Entry_Call);
4116 Set_Node1_With_Parent (N, Val);
4117 end Set_Entry_Call_Alternative;
4118
4119 procedure Set_Entry_Call_Statement
4120 (N : Node_Id; Val : Node_Id) is
4121 begin
4122 pragma Assert (False
4123 or else NT (N).Nkind = N_Entry_Call_Alternative);
4124 Set_Node1_With_Parent (N, Val);
4125 end Set_Entry_Call_Statement;
4126
4127 procedure Set_Entry_Direct_Name
4128 (N : Node_Id; Val : Node_Id) is
4129 begin
4130 pragma Assert (False
4131 or else NT (N).Nkind = N_Accept_Statement);
4132 Set_Node1_With_Parent (N, Val);
4133 end Set_Entry_Direct_Name;
4134
4135 procedure Set_Entry_Index
4136 (N : Node_Id; Val : Node_Id) is
4137 begin
4138 pragma Assert (False
4139 or else NT (N).Nkind = N_Accept_Statement);
4140 Set_Node5_With_Parent (N, Val);
4141 end Set_Entry_Index;
4142
4143 procedure Set_Entry_Index_Specification
4144 (N : Node_Id; Val : Node_Id) is
4145 begin
4146 pragma Assert (False
4147 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
4148 Set_Node4_With_Parent (N, Val);
4149 end Set_Entry_Index_Specification;
4150
4151 procedure Set_Etype
4152 (N : Node_Id; Val : Node_Id) is
4153 begin
4154 pragma Assert (False
4155 or else NT (N).Nkind in N_Has_Etype);
4156 Set_Node5 (N, Val); -- semantic field, no parent set
4157 end Set_Etype;
4158
4159 procedure Set_Exception_Choices
4160 (N : Node_Id; Val : List_Id) is
4161 begin
4162 pragma Assert (False
4163 or else NT (N).Nkind = N_Exception_Handler);
4164 Set_List4_With_Parent (N, Val);
4165 end Set_Exception_Choices;
4166
4167 procedure Set_Exception_Handlers
4168 (N : Node_Id; Val : List_Id) is
4169 begin
4170 pragma Assert (False
4171 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4172 Set_List5_With_Parent (N, Val);
4173 end Set_Exception_Handlers;
4174
4175 procedure Set_Exception_Junk
4176 (N : Node_Id; Val : Boolean := True) is
4177 begin
4178 pragma Assert (False
4179 or else NT (N).Nkind = N_Block_Statement
4180 or else NT (N).Nkind = N_Goto_Statement
4181 or else NT (N).Nkind = N_Label
4182 or else NT (N).Nkind = N_Object_Declaration
4183 or else NT (N).Nkind = N_Subtype_Declaration);
4184 Set_Flag8 (N, Val);
4185 end Set_Exception_Junk;
4186
4187 procedure Set_Exception_Label
4188 (N : Node_Id; Val : Node_Id) is
4189 begin
4190 pragma Assert (False
4191 or else NT (N).Nkind = N_Exception_Handler
4192 or else NT (N).Nkind = N_Push_Constraint_Error_Label
4193 or else NT (N).Nkind = N_Push_Program_Error_Label
4194 or else NT (N).Nkind = N_Push_Storage_Error_Label);
4195 Set_Node5 (N, Val); -- semantic field, no parent set
4196 end Set_Exception_Label;
4197
4198 procedure Set_Expansion_Delayed
4199 (N : Node_Id; Val : Boolean := True) is
4200 begin
4201 pragma Assert (False
4202 or else NT (N).Nkind = N_Aggregate
4203 or else NT (N).Nkind = N_Extension_Aggregate);
4204 Set_Flag11 (N, Val);
4205 end Set_Expansion_Delayed;
4206
4207 procedure Set_Explicit_Actual_Parameter
4208 (N : Node_Id; Val : Node_Id) is
4209 begin
4210 pragma Assert (False
4211 or else NT (N).Nkind = N_Parameter_Association);
4212 Set_Node3_With_Parent (N, Val);
4213 end Set_Explicit_Actual_Parameter;
4214
4215 procedure Set_Explicit_Generic_Actual_Parameter
4216 (N : Node_Id; Val : Node_Id) is
4217 begin
4218 pragma Assert (False
4219 or else NT (N).Nkind = N_Generic_Association);
4220 Set_Node1_With_Parent (N, Val);
4221 end Set_Explicit_Generic_Actual_Parameter;
4222
4223 procedure Set_Expression
4224 (N : Node_Id; Val : Node_Id) is
4225 begin
4226 pragma Assert (False
4227 or else NT (N).Nkind = N_Allocator
4228 or else NT (N).Nkind = N_Aspect_Specification
4229 or else NT (N).Nkind = N_Assignment_Statement
4230 or else NT (N).Nkind = N_At_Clause
4231 or else NT (N).Nkind = N_Attribute_Definition_Clause
4232 or else NT (N).Nkind = N_Case_Expression
4233 or else NT (N).Nkind = N_Case_Expression_Alternative
4234 or else NT (N).Nkind = N_Case_Statement
4235 or else NT (N).Nkind = N_Code_Statement
4236 or else NT (N).Nkind = N_Component_Association
4237 or else NT (N).Nkind = N_Component_Declaration
4238 or else NT (N).Nkind = N_Delay_Relative_Statement
4239 or else NT (N).Nkind = N_Delay_Until_Statement
4240 or else NT (N).Nkind = N_Discriminant_Association
4241 or else NT (N).Nkind = N_Discriminant_Specification
4242 or else NT (N).Nkind = N_Exception_Declaration
4243 or else NT (N).Nkind = N_Expression_Function
4244 or else NT (N).Nkind = N_Expression_With_Actions
4245 or else NT (N).Nkind = N_Free_Statement
4246 or else NT (N).Nkind = N_Mod_Clause
4247 or else NT (N).Nkind = N_Modular_Type_Definition
4248 or else NT (N).Nkind = N_Number_Declaration
4249 or else NT (N).Nkind = N_Object_Declaration
4250 or else NT (N).Nkind = N_Parameter_Specification
4251 or else NT (N).Nkind = N_Pragma_Argument_Association
4252 or else NT (N).Nkind = N_Qualified_Expression
4253 or else NT (N).Nkind = N_Raise_Statement
4254 or else NT (N).Nkind = N_Return_Statement
4255 or else NT (N).Nkind = N_Type_Conversion
4256 or else NT (N).Nkind = N_Unchecked_Expression
4257 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4258 Set_Node3_With_Parent (N, Val);
4259 end Set_Expression;
4260
4261 procedure Set_Expressions
4262 (N : Node_Id; Val : List_Id) is
4263 begin
4264 pragma Assert (False
4265 or else NT (N).Nkind = N_Aggregate
4266 or else NT (N).Nkind = N_Attribute_Reference
4267 or else NT (N).Nkind = N_Conditional_Expression
4268 or else NT (N).Nkind = N_Extension_Aggregate
4269 or else NT (N).Nkind = N_Indexed_Component);
4270 Set_List1_With_Parent (N, Val);
4271 end Set_Expressions;
4272
4273 procedure Set_First_Bit
4274 (N : Node_Id; Val : Node_Id) is
4275 begin
4276 pragma Assert (False
4277 or else NT (N).Nkind = N_Component_Clause);
4278 Set_Node3_With_Parent (N, Val);
4279 end Set_First_Bit;
4280
4281 procedure Set_First_Inlined_Subprogram
4282 (N : Node_Id; Val : Entity_Id) is
4283 begin
4284 pragma Assert (False
4285 or else NT (N).Nkind = N_Compilation_Unit);
4286 Set_Node3 (N, Val); -- semantic field, no parent set
4287 end Set_First_Inlined_Subprogram;
4288
4289 procedure Set_First_Name
4290 (N : Node_Id; Val : Boolean := True) is
4291 begin
4292 pragma Assert (False
4293 or else NT (N).Nkind = N_With_Clause);
4294 Set_Flag5 (N, Val);
4295 end Set_First_Name;
4296
4297 procedure Set_First_Named_Actual
4298 (N : Node_Id; Val : Node_Id) is
4299 begin
4300 pragma Assert (False
4301 or else NT (N).Nkind = N_Entry_Call_Statement
4302 or else NT (N).Nkind = N_Function_Call
4303 or else NT (N).Nkind = N_Procedure_Call_Statement);
4304 Set_Node4 (N, Val); -- semantic field, no parent set
4305 end Set_First_Named_Actual;
4306
4307 procedure Set_First_Real_Statement
4308 (N : Node_Id; Val : Node_Id) is
4309 begin
4310 pragma Assert (False
4311 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4312 Set_Node2 (N, Val); -- semantic field, no parent set
4313 end Set_First_Real_Statement;
4314
4315 procedure Set_First_Subtype_Link
4316 (N : Node_Id; Val : Entity_Id) is
4317 begin
4318 pragma Assert (False
4319 or else NT (N).Nkind = N_Freeze_Entity);
4320 Set_Node5 (N, Val); -- semantic field, no parent set
4321 end Set_First_Subtype_Link;
4322
4323 procedure Set_Float_Truncate
4324 (N : Node_Id; Val : Boolean := True) is
4325 begin
4326 pragma Assert (False
4327 or else NT (N).Nkind = N_Type_Conversion);
4328 Set_Flag11 (N, Val);
4329 end Set_Float_Truncate;
4330
4331 procedure Set_Formal_Type_Definition
4332 (N : Node_Id; Val : Node_Id) is
4333 begin
4334 pragma Assert (False
4335 or else NT (N).Nkind = N_Formal_Type_Declaration);
4336 Set_Node3_With_Parent (N, Val);
4337 end Set_Formal_Type_Definition;
4338
4339 procedure Set_Forwards_OK
4340 (N : Node_Id; Val : Boolean := True) is
4341 begin
4342 pragma Assert (False
4343 or else NT (N).Nkind = N_Assignment_Statement);
4344 Set_Flag5 (N, Val);
4345 end Set_Forwards_OK;
4346
4347 procedure Set_From_Aspect_Specification
4348 (N : Node_Id; Val : Boolean := True) is
4349 begin
4350 pragma Assert (False
4351 or else NT (N).Nkind = N_Attribute_Definition_Clause
4352 or else NT (N).Nkind = N_Pragma);
4353 Set_Flag13 (N, Val);
4354 end Set_From_Aspect_Specification;
4355
4356 procedure Set_From_At_End
4357 (N : Node_Id; Val : Boolean := True) is
4358 begin
4359 pragma Assert (False
4360 or else NT (N).Nkind = N_Raise_Statement);
4361 Set_Flag4 (N, Val);
4362 end Set_From_At_End;
4363
4364 procedure Set_From_At_Mod
4365 (N : Node_Id; Val : Boolean := True) is
4366 begin
4367 pragma Assert (False
4368 or else NT (N).Nkind = N_Attribute_Definition_Clause);
4369 Set_Flag4 (N, Val);
4370 end Set_From_At_Mod;
4371
4372 procedure Set_From_Default
4373 (N : Node_Id; Val : Boolean := True) is
4374 begin
4375 pragma Assert (False
4376 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4377 Set_Flag6 (N, Val);
4378 end Set_From_Default;
4379
4380 procedure Set_From_Dynamic_Predicate
4381 (N : Node_Id; Val : Boolean := True) is
4382 begin
4383 pragma Assert (False
4384 or else NT (N).Nkind = N_Pragma);
4385 Set_Flag7 (N, Val);
4386 end Set_From_Dynamic_Predicate;
4387
4388 procedure Set_From_Static_Predicate
4389 (N : Node_Id; Val : Boolean := True) is
4390 begin
4391 pragma Assert (False
4392 or else NT (N).Nkind = N_Pragma);
4393 Set_Flag8 (N, Val);
4394 end Set_From_Static_Predicate;
4395
4396 procedure Set_Generic_Associations
4397 (N : Node_Id; Val : List_Id) is
4398 begin
4399 pragma Assert (False
4400 or else NT (N).Nkind = N_Formal_Package_Declaration
4401 or else NT (N).Nkind = N_Function_Instantiation
4402 or else NT (N).Nkind = N_Package_Instantiation
4403 or else NT (N).Nkind = N_Procedure_Instantiation);
4404 Set_List3_With_Parent (N, Val);
4405 end Set_Generic_Associations;
4406
4407 procedure Set_Generic_Formal_Declarations
4408 (N : Node_Id; Val : List_Id) is
4409 begin
4410 pragma Assert (False
4411 or else NT (N).Nkind = N_Generic_Package_Declaration
4412 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
4413 Set_List2_With_Parent (N, Val);
4414 end Set_Generic_Formal_Declarations;
4415
4416 procedure Set_Generic_Parent
4417 (N : Node_Id; Val : Node_Id) is
4418 begin
4419 pragma Assert (False
4420 or else NT (N).Nkind = N_Function_Specification
4421 or else NT (N).Nkind = N_Package_Specification
4422 or else NT (N).Nkind = N_Procedure_Specification);
4423 Set_Node5 (N, Val);
4424 end Set_Generic_Parent;
4425
4426 procedure Set_Generic_Parent_Type
4427 (N : Node_Id; Val : Node_Id) is
4428 begin
4429 pragma Assert (False
4430 or else NT (N).Nkind = N_Subtype_Declaration);
4431 Set_Node4 (N, Val);
4432 end Set_Generic_Parent_Type;
4433
4434 procedure Set_Handled_Statement_Sequence
4435 (N : Node_Id; Val : Node_Id) is
4436 begin
4437 pragma Assert (False
4438 or else NT (N).Nkind = N_Accept_Statement
4439 or else NT (N).Nkind = N_Block_Statement
4440 or else NT (N).Nkind = N_Entry_Body
4441 or else NT (N).Nkind = N_Extended_Return_Statement
4442 or else NT (N).Nkind = N_Package_Body
4443 or else NT (N).Nkind = N_Subprogram_Body
4444 or else NT (N).Nkind = N_Task_Body);
4445 Set_Node4_With_Parent (N, Val);
4446 end Set_Handled_Statement_Sequence;
4447
4448 procedure Set_Handler_List_Entry
4449 (N : Node_Id; Val : Node_Id) is
4450 begin
4451 pragma Assert (False
4452 or else NT (N).Nkind = N_Object_Declaration);
4453 Set_Node2 (N, Val);
4454 end Set_Handler_List_Entry;
4455
4456 procedure Set_Has_Created_Identifier
4457 (N : Node_Id; Val : Boolean := True) is
4458 begin
4459 pragma Assert (False
4460 or else NT (N).Nkind = N_Block_Statement
4461 or else NT (N).Nkind = N_Loop_Statement);
4462 Set_Flag15 (N, Val);
4463 end Set_Has_Created_Identifier;
4464
4465 procedure Set_Has_Dynamic_Length_Check
4466 (N : Node_Id; Val : Boolean := True) is
4467 begin
4468 pragma Assert (False
4469 or else NT (N).Nkind in N_Subexpr);
4470 Set_Flag10 (N, Val);
4471 end Set_Has_Dynamic_Length_Check;
4472
4473 procedure Set_Has_Dynamic_Range_Check
4474 (N : Node_Id; Val : Boolean := True) is
4475 begin
4476 pragma Assert (False
4477 or else NT (N).Nkind = N_Subtype_Declaration
4478 or else NT (N).Nkind in N_Subexpr);
4479 Set_Flag12 (N, Val);
4480 end Set_Has_Dynamic_Range_Check;
4481
4482 procedure Set_Has_Init_Expression
4483 (N : Node_Id; Val : Boolean := True) is
4484 begin
4485 pragma Assert (False
4486 or else NT (N).Nkind = N_Object_Declaration);
4487 Set_Flag14 (N, Val);
4488 end Set_Has_Init_Expression;
4489
4490 procedure Set_Has_Local_Raise
4491 (N : Node_Id; Val : Boolean := True) is
4492 begin
4493 pragma Assert (False
4494 or else NT (N).Nkind = N_Exception_Handler);
4495 Set_Flag8 (N, Val);
4496 end Set_Has_Local_Raise;
4497
4498 procedure Set_Has_No_Elaboration_Code
4499 (N : Node_Id; Val : Boolean := True) is
4500 begin
4501 pragma Assert (False
4502 or else NT (N).Nkind = N_Compilation_Unit);
4503 Set_Flag17 (N, Val);
4504 end Set_Has_No_Elaboration_Code;
4505
4506 procedure Set_Has_Pragma_CPU
4507 (N : Node_Id; Val : Boolean := True) is
4508 begin
4509 pragma Assert (False
4510 or else NT (N).Nkind = N_Subprogram_Body
4511 or else NT (N).Nkind = N_Task_Definition);
4512 Set_Flag14 (N, Val);
4513 end Set_Has_Pragma_CPU;
4514
4515 procedure Set_Has_Pragma_Priority
4516 (N : Node_Id; Val : Boolean := True) is
4517 begin
4518 pragma Assert (False
4519 or else NT (N).Nkind = N_Protected_Definition
4520 or else NT (N).Nkind = N_Subprogram_Body
4521 or else NT (N).Nkind = N_Task_Definition);
4522 Set_Flag6 (N, Val);
4523 end Set_Has_Pragma_Priority;
4524
4525 procedure Set_Has_Pragma_Suppress_All
4526 (N : Node_Id; Val : Boolean := True) is
4527 begin
4528 pragma Assert (False
4529 or else NT (N).Nkind = N_Compilation_Unit);
4530 Set_Flag14 (N, Val);
4531 end Set_Has_Pragma_Suppress_All;
4532
4533 procedure Set_Has_Private_View
4534 (N : Node_Id; Val : Boolean := True) is
4535 begin
4536 pragma Assert (False
4537 or else NT (N).Nkind in N_Op
4538 or else NT (N).Nkind = N_Character_Literal
4539 or else NT (N).Nkind = N_Expanded_Name
4540 or else NT (N).Nkind = N_Identifier
4541 or else NT (N).Nkind = N_Operator_Symbol);
4542 Set_Flag11 (N, Val);
4543 end Set_Has_Private_View;
4544
4545 procedure Set_Has_Relative_Deadline_Pragma
4546 (N : Node_Id; Val : Boolean := True) is
4547 begin
4548 pragma Assert (False
4549 or else NT (N).Nkind = N_Subprogram_Body
4550 or else NT (N).Nkind = N_Task_Definition);
4551 Set_Flag9 (N, Val);
4552 end Set_Has_Relative_Deadline_Pragma;
4553
4554 procedure Set_Has_Self_Reference
4555 (N : Node_Id; Val : Boolean := True) is
4556 begin
4557 pragma Assert (False
4558 or else NT (N).Nkind = N_Aggregate
4559 or else NT (N).Nkind = N_Extension_Aggregate);
4560 Set_Flag13 (N, Val);
4561 end Set_Has_Self_Reference;
4562
4563 procedure Set_Has_Storage_Size_Pragma
4564 (N : Node_Id; Val : Boolean := True) is
4565 begin
4566 pragma Assert (False
4567 or else NT (N).Nkind = N_Task_Definition);
4568 Set_Flag5 (N, Val);
4569 end Set_Has_Storage_Size_Pragma;
4570
4571 procedure Set_Has_Task_Info_Pragma
4572 (N : Node_Id; Val : Boolean := True) is
4573 begin
4574 pragma Assert (False
4575 or else NT (N).Nkind = N_Task_Definition);
4576 Set_Flag7 (N, Val);
4577 end Set_Has_Task_Info_Pragma;
4578
4579 procedure Set_Has_Task_Name_Pragma
4580 (N : Node_Id; Val : Boolean := True) is
4581 begin
4582 pragma Assert (False
4583 or else NT (N).Nkind = N_Task_Definition);
4584 Set_Flag8 (N, Val);
4585 end Set_Has_Task_Name_Pragma;
4586
4587 procedure Set_Has_Wide_Character
4588 (N : Node_Id; Val : Boolean := True) is
4589 begin
4590 pragma Assert (False
4591 or else NT (N).Nkind = N_String_Literal);
4592 Set_Flag11 (N, Val);
4593 end Set_Has_Wide_Character;
4594
4595 procedure Set_Has_Wide_Wide_Character
4596 (N : Node_Id; Val : Boolean := True) is
4597 begin
4598 pragma Assert (False
4599 or else NT (N).Nkind = N_String_Literal);
4600 Set_Flag13 (N, Val);
4601 end Set_Has_Wide_Wide_Character;
4602
4603 procedure Set_Hidden_By_Use_Clause
4604 (N : Node_Id; Val : Elist_Id) is
4605 begin
4606 pragma Assert (False
4607 or else NT (N).Nkind = N_Use_Package_Clause
4608 or else NT (N).Nkind = N_Use_Type_Clause);
4609 Set_Elist4 (N, Val);
4610 end Set_Hidden_By_Use_Clause;
4611
4612 procedure Set_High_Bound
4613 (N : Node_Id; Val : Node_Id) is
4614 begin
4615 pragma Assert (False
4616 or else NT (N).Nkind = N_Range
4617 or else NT (N).Nkind = N_Real_Range_Specification
4618 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4619 Set_Node2_With_Parent (N, Val);
4620 end Set_High_Bound;
4621
4622 procedure Set_Identifier
4623 (N : Node_Id; Val : Node_Id) is
4624 begin
4625 pragma Assert (False
4626 or else NT (N).Nkind = N_Aspect_Specification
4627 or else NT (N).Nkind = N_At_Clause
4628 or else NT (N).Nkind = N_Block_Statement
4629 or else NT (N).Nkind = N_Designator
4630 or else NT (N).Nkind = N_Enumeration_Representation_Clause
4631 or else NT (N).Nkind = N_Label
4632 or else NT (N).Nkind = N_Loop_Statement
4633 or else NT (N).Nkind = N_Record_Representation_Clause
4634 or else NT (N).Nkind = N_Subprogram_Info);
4635 Set_Node1_With_Parent (N, Val);
4636 end Set_Identifier;
4637
4638 procedure Set_Implicit_With
4639 (N : Node_Id; Val : Boolean := True) is
4640 begin
4641 pragma Assert (False
4642 or else NT (N).Nkind = N_With_Clause);
4643 Set_Flag16 (N, Val);
4644 end Set_Implicit_With;
4645
4646 procedure Set_Interface_List
4647 (N : Node_Id; Val : List_Id) is
4648 begin
4649 pragma Assert (False
4650 or else NT (N).Nkind = N_Derived_Type_Definition
4651 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4652 or else NT (N).Nkind = N_Private_Extension_Declaration
4653 or else NT (N).Nkind = N_Protected_Type_Declaration
4654 or else NT (N).Nkind = N_Record_Definition
4655 or else NT (N).Nkind = N_Single_Protected_Declaration
4656 or else NT (N).Nkind = N_Single_Task_Declaration
4657 or else NT (N).Nkind = N_Task_Type_Declaration);
4658 Set_List2_With_Parent (N, Val);
4659 end Set_Interface_List;
4660
4661 procedure Set_Interface_Present
4662 (N : Node_Id; Val : Boolean := True) is
4663 begin
4664 pragma Assert (False
4665 or else NT (N).Nkind = N_Derived_Type_Definition
4666 or else NT (N).Nkind = N_Record_Definition);
4667 Set_Flag16 (N, Val);
4668 end Set_Interface_Present;
4669
4670 procedure Set_Import_Interface_Present
4671 (N : Node_Id; Val : Boolean := True) is
4672 begin
4673 pragma Assert (False
4674 or else NT (N).Nkind = N_Pragma);
4675 Set_Flag16 (N, Val);
4676 end Set_Import_Interface_Present;
4677
4678 procedure Set_In_Present
4679 (N : Node_Id; Val : Boolean := True) is
4680 begin
4681 pragma Assert (False
4682 or else NT (N).Nkind = N_Formal_Object_Declaration
4683 or else NT (N).Nkind = N_Parameter_Specification);
4684 Set_Flag15 (N, Val);
4685 end Set_In_Present;
4686
4687 procedure Set_Includes_Infinities
4688 (N : Node_Id; Val : Boolean := True) is
4689 begin
4690 pragma Assert (False
4691 or else NT (N).Nkind = N_Range);
4692 Set_Flag11 (N, Val);
4693 end Set_Includes_Infinities;
4694
4695 procedure Set_Inherited_Discriminant
4696 (N : Node_Id; Val : Boolean := True) is
4697 begin
4698 pragma Assert (False
4699 or else NT (N).Nkind = N_Component_Association);
4700 Set_Flag13 (N, Val);
4701 end Set_Inherited_Discriminant;
4702
4703 procedure Set_Instance_Spec
4704 (N : Node_Id; Val : Node_Id) is
4705 begin
4706 pragma Assert (False
4707 or else NT (N).Nkind = N_Formal_Package_Declaration
4708 or else NT (N).Nkind = N_Function_Instantiation
4709 or else NT (N).Nkind = N_Package_Instantiation
4710 or else NT (N).Nkind = N_Procedure_Instantiation);
4711 Set_Node5 (N, Val); -- semantic field, no Parent set
4712 end Set_Instance_Spec;
4713
4714 procedure Set_Intval
4715 (N : Node_Id; Val : Uint) is
4716 begin
4717 pragma Assert (False
4718 or else NT (N).Nkind = N_Integer_Literal);
4719 Set_Uint3 (N, Val);
4720 end Set_Intval;
4721
4722 procedure Set_Is_Accessibility_Actual
4723 (N : Node_Id; Val : Boolean := True) is
4724 begin
4725 pragma Assert (False
4726 or else NT (N).Nkind = N_Parameter_Association);
4727 Set_Flag13 (N, Val);
4728 end Set_Is_Accessibility_Actual;
4729
4730 procedure Set_Is_Asynchronous_Call_Block
4731 (N : Node_Id; Val : Boolean := True) is
4732 begin
4733 pragma Assert (False
4734 or else NT (N).Nkind = N_Block_Statement);
4735 Set_Flag7 (N, Val);
4736 end Set_Is_Asynchronous_Call_Block;
4737
4738 procedure Set_Is_Boolean_Aspect
4739 (N : Node_Id; Val : Boolean := True) is
4740 begin
4741 pragma Assert (False
4742 or else NT (N).Nkind = N_Aspect_Specification);
4743 Set_Flag16 (N, Val);
4744 end Set_Is_Boolean_Aspect;
4745
4746 procedure Set_Is_Component_Left_Opnd
4747 (N : Node_Id; Val : Boolean := True) is
4748 begin
4749 pragma Assert (False
4750 or else NT (N).Nkind = N_Op_Concat);
4751 Set_Flag13 (N, Val);
4752 end Set_Is_Component_Left_Opnd;
4753
4754 procedure Set_Is_Component_Right_Opnd
4755 (N : Node_Id; Val : Boolean := True) is
4756 begin
4757 pragma Assert (False
4758 or else NT (N).Nkind = N_Op_Concat);
4759 Set_Flag14 (N, Val);
4760 end Set_Is_Component_Right_Opnd;
4761
4762 procedure Set_Is_Controlling_Actual
4763 (N : Node_Id; Val : Boolean := True) is
4764 begin
4765 pragma Assert (False
4766 or else NT (N).Nkind in N_Subexpr);
4767 Set_Flag16 (N, Val);
4768 end Set_Is_Controlling_Actual;
4769
4770 procedure Set_Is_Delayed_Aspect
4771 (N : Node_Id; Val : Boolean := True) is
4772 begin
4773 pragma Assert (False
4774 or else NT (N).Nkind = N_Aspect_Specification
4775 or else NT (N).Nkind = N_Attribute_Definition_Clause
4776 or else NT (N).Nkind = N_Pragma);
4777 Set_Flag14 (N, Val);
4778 end Set_Is_Delayed_Aspect;
4779
4780 procedure Set_Is_Dynamic_Coextension
4781 (N : Node_Id; Val : Boolean := True) is
4782 begin
4783 pragma Assert (False
4784 or else NT (N).Nkind = N_Allocator);
4785 Set_Flag18 (N, Val);
4786 end Set_Is_Dynamic_Coextension;
4787
4788 procedure Set_Is_Elsif
4789 (N : Node_Id; Val : Boolean := True) is
4790 begin
4791 pragma Assert (False
4792 or else NT (N).Nkind = N_Conditional_Expression);
4793 Set_Flag13 (N, Val);
4794 end Set_Is_Elsif;
4795
4796 procedure Set_Is_Entry_Barrier_Function
4797 (N : Node_Id; Val : Boolean := True) is
4798 begin
4799 pragma Assert (False
4800 or else NT (N).Nkind = N_Subprogram_Body);
4801 Set_Flag8 (N, Val);
4802 end Set_Is_Entry_Barrier_Function;
4803
4804 procedure Set_Is_Expanded_Build_In_Place_Call
4805 (N : Node_Id; Val : Boolean := True) is
4806 begin
4807 pragma Assert (False
4808 or else NT (N).Nkind = N_Function_Call);
4809 Set_Flag11 (N, Val);
4810 end Set_Is_Expanded_Build_In_Place_Call;
4811
4812 procedure Set_Is_Folded_In_Parser
4813 (N : Node_Id; Val : Boolean := True) is
4814 begin
4815 pragma Assert (False
4816 or else NT (N).Nkind = N_String_Literal);
4817 Set_Flag4 (N, Val);
4818 end Set_Is_Folded_In_Parser;
4819
4820 procedure Set_Is_In_Discriminant_Check
4821 (N : Node_Id; Val : Boolean := True) is
4822 begin
4823 pragma Assert (False
4824 or else NT (N).Nkind = N_Selected_Component);
4825 Set_Flag11 (N, Val);
4826 end Set_Is_In_Discriminant_Check;
4827
4828 procedure Set_Is_Machine_Number
4829 (N : Node_Id; Val : Boolean := True) is
4830 begin
4831 pragma Assert (False
4832 or else NT (N).Nkind = N_Real_Literal);
4833 Set_Flag11 (N, Val);
4834 end Set_Is_Machine_Number;
4835
4836 procedure Set_Is_Null_Loop
4837 (N : Node_Id; Val : Boolean := True) is
4838 begin
4839 pragma Assert (False
4840 or else NT (N).Nkind = N_Loop_Statement);
4841 Set_Flag16 (N, Val);
4842 end Set_Is_Null_Loop;
4843
4844 procedure Set_Is_Overloaded
4845 (N : Node_Id; Val : Boolean := True) is
4846 begin
4847 pragma Assert (False
4848 or else NT (N).Nkind in N_Subexpr);
4849 Set_Flag5 (N, Val);
4850 end Set_Is_Overloaded;
4851
4852 procedure Set_Is_Power_Of_2_For_Shift
4853 (N : Node_Id; Val : Boolean := True) is
4854 begin
4855 pragma Assert (False
4856 or else NT (N).Nkind = N_Op_Expon);
4857 Set_Flag13 (N, Val);
4858 end Set_Is_Power_Of_2_For_Shift;
4859
4860 procedure Set_Is_Protected_Subprogram_Body
4861 (N : Node_Id; Val : Boolean := True) is
4862 begin
4863 pragma Assert (False
4864 or else NT (N).Nkind = N_Subprogram_Body);
4865 Set_Flag7 (N, Val);
4866 end Set_Is_Protected_Subprogram_Body;
4867
4868 procedure Set_Is_Static_Coextension
4869 (N : Node_Id; Val : Boolean := True) is
4870 begin
4871 pragma Assert (False
4872 or else NT (N).Nkind = N_Allocator);
4873 Set_Flag14 (N, Val);
4874 end Set_Is_Static_Coextension;
4875
4876 procedure Set_Is_Static_Expression
4877 (N : Node_Id; Val : Boolean := True) is
4878 begin
4879 pragma Assert (False
4880 or else NT (N).Nkind in N_Subexpr);
4881 Set_Flag6 (N, Val);
4882 end Set_Is_Static_Expression;
4883
4884 procedure Set_Is_Subprogram_Descriptor
4885 (N : Node_Id; Val : Boolean := True) is
4886 begin
4887 pragma Assert (False
4888 or else NT (N).Nkind = N_Object_Declaration);
4889 Set_Flag16 (N, Val);
4890 end Set_Is_Subprogram_Descriptor;
4891
4892 procedure Set_Is_Task_Allocation_Block
4893 (N : Node_Id; Val : Boolean := True) is
4894 begin
4895 pragma Assert (False
4896 or else NT (N).Nkind = N_Block_Statement);
4897 Set_Flag6 (N, Val);
4898 end Set_Is_Task_Allocation_Block;
4899
4900 procedure Set_Is_Task_Master
4901 (N : Node_Id; Val : Boolean := True) is
4902 begin
4903 pragma Assert (False
4904 or else NT (N).Nkind = N_Block_Statement
4905 or else NT (N).Nkind = N_Subprogram_Body
4906 or else NT (N).Nkind = N_Task_Body);
4907 Set_Flag5 (N, Val);
4908 end Set_Is_Task_Master;
4909
4910 procedure Set_Iteration_Scheme
4911 (N : Node_Id; Val : Node_Id) is
4912 begin
4913 pragma Assert (False
4914 or else NT (N).Nkind = N_Loop_Statement);
4915 Set_Node2_With_Parent (N, Val);
4916 end Set_Iteration_Scheme;
4917
4918 procedure Set_Iterator_Specification
4919 (N : Node_Id; Val : Node_Id) is
4920 begin
4921 pragma Assert (False
4922 or else NT (N).Nkind = N_Iteration_Scheme
4923 or else NT (N).Nkind = N_Quantified_Expression);
4924 Set_Node2_With_Parent (N, Val);
4925 end Set_Iterator_Specification;
4926
4927 procedure Set_Itype
4928 (N : Node_Id; Val : Entity_Id) is
4929 begin
4930 pragma Assert (False
4931 or else NT (N).Nkind = N_Itype_Reference);
4932 Set_Node1 (N, Val); -- no parent, semantic field
4933 end Set_Itype;
4934
4935 procedure Set_Kill_Range_Check
4936 (N : Node_Id; Val : Boolean := True) is
4937 begin
4938 pragma Assert (False
4939 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4940 Set_Flag11 (N, Val);
4941 end Set_Kill_Range_Check;
4942
4943 procedure Set_Label_Construct
4944 (N : Node_Id; Val : Node_Id) is
4945 begin
4946 pragma Assert (False
4947 or else NT (N).Nkind = N_Implicit_Label_Declaration);
4948 Set_Node2 (N, Val); -- semantic field, no parent set
4949 end Set_Label_Construct;
4950
4951 procedure Set_Last_Bit
4952 (N : Node_Id; Val : Node_Id) is
4953 begin
4954 pragma Assert (False
4955 or else NT (N).Nkind = N_Component_Clause);
4956 Set_Node4_With_Parent (N, Val);
4957 end Set_Last_Bit;
4958
4959 procedure Set_Last_Name
4960 (N : Node_Id; Val : Boolean := True) is
4961 begin
4962 pragma Assert (False
4963 or else NT (N).Nkind = N_With_Clause);
4964 Set_Flag6 (N, Val);
4965 end Set_Last_Name;
4966
4967 procedure Set_Left_Opnd
4968 (N : Node_Id; Val : Node_Id) is
4969 begin
4970 pragma Assert (False
4971 or else NT (N).Nkind = N_And_Then
4972 or else NT (N).Nkind = N_In
4973 or else NT (N).Nkind = N_Not_In
4974 or else NT (N).Nkind = N_Or_Else
4975 or else NT (N).Nkind in N_Binary_Op);
4976 Set_Node2_With_Parent (N, Val);
4977 end Set_Left_Opnd;
4978
4979 procedure Set_Library_Unit
4980 (N : Node_Id; Val : Node_Id) is
4981 begin
4982 pragma Assert (False
4983 or else NT (N).Nkind = N_Compilation_Unit
4984 or else NT (N).Nkind = N_Package_Body_Stub
4985 or else NT (N).Nkind = N_Protected_Body_Stub
4986 or else NT (N).Nkind = N_Subprogram_Body_Stub
4987 or else NT (N).Nkind = N_Task_Body_Stub
4988 or else NT (N).Nkind = N_With_Clause);
4989 Set_Node4 (N, Val); -- semantic field, no parent set
4990 end Set_Library_Unit;
4991
4992 procedure Set_Limited_View_Installed
4993 (N : Node_Id; Val : Boolean := True) is
4994 begin
4995 pragma Assert (False
4996 or else NT (N).Nkind = N_Package_Specification
4997 or else NT (N).Nkind = N_With_Clause);
4998 Set_Flag18 (N, Val);
4999 end Set_Limited_View_Installed;
5000
5001 procedure Set_Limited_Present
5002 (N : Node_Id; Val : Boolean := True) is
5003 begin
5004 pragma Assert (False
5005 or else NT (N).Nkind = N_Derived_Type_Definition
5006 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5007 or else NT (N).Nkind = N_Formal_Private_Type_Definition
5008 or else NT (N).Nkind = N_Private_Extension_Declaration
5009 or else NT (N).Nkind = N_Private_Type_Declaration
5010 or else NT (N).Nkind = N_Record_Definition
5011 or else NT (N).Nkind = N_With_Clause);
5012 Set_Flag17 (N, Val);
5013 end Set_Limited_Present;
5014
5015 procedure Set_Literals
5016 (N : Node_Id; Val : List_Id) is
5017 begin
5018 pragma Assert (False
5019 or else NT (N).Nkind = N_Enumeration_Type_Definition);
5020 Set_List1_With_Parent (N, Val);
5021 end Set_Literals;
5022
5023 procedure Set_Local_Raise_Not_OK
5024 (N : Node_Id; Val : Boolean := True) is
5025 begin
5026 pragma Assert (False
5027 or else NT (N).Nkind = N_Exception_Handler);
5028 Set_Flag7 (N, Val);
5029 end Set_Local_Raise_Not_OK;
5030
5031 procedure Set_Local_Raise_Statements
5032 (N : Node_Id; Val : Elist_Id) is
5033 begin
5034 pragma Assert (False
5035 or else NT (N).Nkind = N_Exception_Handler);
5036 Set_Elist1 (N, Val);
5037 end Set_Local_Raise_Statements;
5038
5039 procedure Set_Loop_Actions
5040 (N : Node_Id; Val : List_Id) is
5041 begin
5042 pragma Assert (False
5043 or else NT (N).Nkind = N_Component_Association);
5044 Set_List2 (N, Val); -- semantic field, no parent set
5045 end Set_Loop_Actions;
5046
5047 procedure Set_Loop_Parameter_Specification
5048 (N : Node_Id; Val : Node_Id) is
5049 begin
5050 pragma Assert (False
5051 or else NT (N).Nkind = N_Iteration_Scheme
5052 or else NT (N).Nkind = N_Quantified_Expression);
5053 Set_Node4_With_Parent (N, Val);
5054 end Set_Loop_Parameter_Specification;
5055
5056 procedure Set_Low_Bound
5057 (N : Node_Id; Val : Node_Id) is
5058 begin
5059 pragma Assert (False
5060 or else NT (N).Nkind = N_Range
5061 or else NT (N).Nkind = N_Real_Range_Specification
5062 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
5063 Set_Node1_With_Parent (N, Val);
5064 end Set_Low_Bound;
5065
5066 procedure Set_Mod_Clause
5067 (N : Node_Id; Val : Node_Id) is
5068 begin
5069 pragma Assert (False
5070 or else NT (N).Nkind = N_Record_Representation_Clause);
5071 Set_Node2_With_Parent (N, Val);
5072 end Set_Mod_Clause;
5073
5074 procedure Set_More_Ids
5075 (N : Node_Id; Val : Boolean := True) is
5076 begin
5077 pragma Assert (False
5078 or else NT (N).Nkind = N_Component_Declaration
5079 or else NT (N).Nkind = N_Discriminant_Specification
5080 or else NT (N).Nkind = N_Exception_Declaration
5081 or else NT (N).Nkind = N_Formal_Object_Declaration
5082 or else NT (N).Nkind = N_Number_Declaration
5083 or else NT (N).Nkind = N_Object_Declaration
5084 or else NT (N).Nkind = N_Parameter_Specification);
5085 Set_Flag5 (N, Val);
5086 end Set_More_Ids;
5087
5088 procedure Set_Must_Be_Byte_Aligned
5089 (N : Node_Id; Val : Boolean := True) is
5090 begin
5091 pragma Assert (False
5092 or else NT (N).Nkind = N_Attribute_Reference);
5093 Set_Flag14 (N, Val);
5094 end Set_Must_Be_Byte_Aligned;
5095
5096 procedure Set_Must_Not_Freeze
5097 (N : Node_Id; Val : Boolean := True) is
5098 begin
5099 pragma Assert (False
5100 or else NT (N).Nkind = N_Subtype_Indication
5101 or else NT (N).Nkind in N_Subexpr);
5102 Set_Flag8 (N, Val);
5103 end Set_Must_Not_Freeze;
5104
5105 procedure Set_Must_Not_Override
5106 (N : Node_Id; Val : Boolean := True) is
5107 begin
5108 pragma Assert (False
5109 or else NT (N).Nkind = N_Entry_Declaration
5110 or else NT (N).Nkind = N_Function_Instantiation
5111 or else NT (N).Nkind = N_Function_Specification
5112 or else NT (N).Nkind = N_Procedure_Instantiation
5113 or else NT (N).Nkind = N_Procedure_Specification);
5114 Set_Flag15 (N, Val);
5115 end Set_Must_Not_Override;
5116
5117 procedure Set_Must_Override
5118 (N : Node_Id; Val : Boolean := True) is
5119 begin
5120 pragma Assert (False
5121 or else NT (N).Nkind = N_Entry_Declaration
5122 or else NT (N).Nkind = N_Function_Instantiation
5123 or else NT (N).Nkind = N_Function_Specification
5124 or else NT (N).Nkind = N_Procedure_Instantiation
5125 or else NT (N).Nkind = N_Procedure_Specification);
5126 Set_Flag14 (N, Val);
5127 end Set_Must_Override;
5128
5129 procedure Set_Name
5130 (N : Node_Id; Val : Node_Id) is
5131 begin
5132 pragma Assert (False
5133 or else NT (N).Nkind = N_Assignment_Statement
5134 or else NT (N).Nkind = N_Attribute_Definition_Clause
5135 or else NT (N).Nkind = N_Defining_Program_Unit_Name
5136 or else NT (N).Nkind = N_Designator
5137 or else NT (N).Nkind = N_Entry_Call_Statement
5138 or else NT (N).Nkind = N_Exception_Renaming_Declaration
5139 or else NT (N).Nkind = N_Exit_Statement
5140 or else NT (N).Nkind = N_Formal_Package_Declaration
5141 or else NT (N).Nkind = N_Function_Call
5142 or else NT (N).Nkind = N_Function_Instantiation
5143 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5144 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5145 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5146 or else NT (N).Nkind = N_Goto_Statement
5147 or else NT (N).Nkind = N_Iterator_Specification
5148 or else NT (N).Nkind = N_Object_Renaming_Declaration
5149 or else NT (N).Nkind = N_Package_Instantiation
5150 or else NT (N).Nkind = N_Package_Renaming_Declaration
5151 or else NT (N).Nkind = N_Procedure_Call_Statement
5152 or else NT (N).Nkind = N_Procedure_Instantiation
5153 or else NT (N).Nkind = N_Raise_Statement
5154 or else NT (N).Nkind = N_Requeue_Statement
5155 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
5156 or else NT (N).Nkind = N_Subunit
5157 or else NT (N).Nkind = N_Variant_Part
5158 or else NT (N).Nkind = N_With_Clause);
5159 Set_Node2_With_Parent (N, Val);
5160 end Set_Name;
5161
5162 procedure Set_Names
5163 (N : Node_Id; Val : List_Id) is
5164 begin
5165 pragma Assert (False
5166 or else NT (N).Nkind = N_Abort_Statement
5167 or else NT (N).Nkind = N_Use_Package_Clause);
5168 Set_List2_With_Parent (N, Val);
5169 end Set_Names;
5170
5171 procedure Set_Next_Entity
5172 (N : Node_Id; Val : Node_Id) is
5173 begin
5174 pragma Assert (False
5175 or else NT (N).Nkind = N_Defining_Character_Literal
5176 or else NT (N).Nkind = N_Defining_Identifier
5177 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5178 Set_Node2 (N, Val); -- semantic field, no parent set
5179 end Set_Next_Entity;
5180
5181 procedure Set_Next_Exit_Statement
5182 (N : Node_Id; Val : Node_Id) is
5183 begin
5184 pragma Assert (False
5185 or else NT (N).Nkind = N_Exit_Statement);
5186 Set_Node3 (N, Val); -- semantic field, no parent set
5187 end Set_Next_Exit_Statement;
5188
5189 procedure Set_Next_Implicit_With
5190 (N : Node_Id; Val : Node_Id) is
5191 begin
5192 pragma Assert (False
5193 or else NT (N).Nkind = N_With_Clause);
5194 Set_Node3 (N, Val); -- semantic field, no parent set
5195 end Set_Next_Implicit_With;
5196
5197 procedure Set_Next_Named_Actual
5198 (N : Node_Id; Val : Node_Id) is
5199 begin
5200 pragma Assert (False
5201 or else NT (N).Nkind = N_Parameter_Association);
5202 Set_Node4 (N, Val); -- semantic field, no parent set
5203 end Set_Next_Named_Actual;
5204
5205 procedure Set_Next_Pragma
5206 (N : Node_Id; Val : Node_Id) is
5207 begin
5208 pragma Assert (False
5209 or else NT (N).Nkind = N_Pragma);
5210 Set_Node1 (N, Val); -- semantic field, no parent set
5211 end Set_Next_Pragma;
5212
5213 procedure Set_Next_Rep_Item
5214 (N : Node_Id; Val : Node_Id) is
5215 begin
5216 pragma Assert (False
5217 or else NT (N).Nkind = N_Aspect_Specification
5218 or else NT (N).Nkind = N_Attribute_Definition_Clause
5219 or else NT (N).Nkind = N_Enumeration_Representation_Clause
5220 or else NT (N).Nkind = N_Pragma
5221 or else NT (N).Nkind = N_Record_Representation_Clause);
5222 Set_Node5 (N, Val); -- semantic field, no parent set
5223 end Set_Next_Rep_Item;
5224
5225 procedure Set_Next_Use_Clause
5226 (N : Node_Id; Val : Node_Id) is
5227 begin
5228 pragma Assert (False
5229 or else NT (N).Nkind = N_Use_Package_Clause
5230 or else NT (N).Nkind = N_Use_Type_Clause);
5231 Set_Node3 (N, Val); -- semantic field, no parent set
5232 end Set_Next_Use_Clause;
5233
5234 procedure Set_No_Ctrl_Actions
5235 (N : Node_Id; Val : Boolean := True) is
5236 begin
5237 pragma Assert (False
5238 or else NT (N).Nkind = N_Assignment_Statement);
5239 Set_Flag7 (N, Val);
5240 end Set_No_Ctrl_Actions;
5241
5242 procedure Set_No_Elaboration_Check
5243 (N : Node_Id; Val : Boolean := True) is
5244 begin
5245 pragma Assert (False
5246 or else NT (N).Nkind = N_Function_Call
5247 or else NT (N).Nkind = N_Procedure_Call_Statement);
5248 Set_Flag14 (N, Val);
5249 end Set_No_Elaboration_Check;
5250
5251 procedure Set_No_Entities_Ref_In_Spec
5252 (N : Node_Id; Val : Boolean := True) is
5253 begin
5254 pragma Assert (False
5255 or else NT (N).Nkind = N_With_Clause);
5256 Set_Flag8 (N, Val);
5257 end Set_No_Entities_Ref_In_Spec;
5258
5259 procedure Set_No_Initialization
5260 (N : Node_Id; Val : Boolean := True) is
5261 begin
5262 pragma Assert (False
5263 or else NT (N).Nkind = N_Allocator
5264 or else NT (N).Nkind = N_Object_Declaration);
5265 Set_Flag13 (N, Val);
5266 end Set_No_Initialization;
5267
5268 procedure Set_No_Truncation
5269 (N : Node_Id; Val : Boolean := True) is
5270 begin
5271 pragma Assert (False
5272 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5273 Set_Flag17 (N, Val);
5274 end Set_No_Truncation;
5275
5276 procedure Set_Null_Present
5277 (N : Node_Id; Val : Boolean := True) is
5278 begin
5279 pragma Assert (False
5280 or else NT (N).Nkind = N_Component_List
5281 or else NT (N).Nkind = N_Procedure_Specification
5282 or else NT (N).Nkind = N_Record_Definition);
5283 Set_Flag13 (N, Val);
5284 end Set_Null_Present;
5285
5286 procedure Set_Null_Exclusion_Present
5287 (N : Node_Id; Val : Boolean := True) is
5288 begin
5289 pragma Assert (False
5290 or else NT (N).Nkind = N_Access_Definition
5291 or else NT (N).Nkind = N_Access_Function_Definition
5292 or else NT (N).Nkind = N_Access_Procedure_Definition
5293 or else NT (N).Nkind = N_Access_To_Object_Definition
5294 or else NT (N).Nkind = N_Allocator
5295 or else NT (N).Nkind = N_Component_Definition
5296 or else NT (N).Nkind = N_Derived_Type_Definition
5297 or else NT (N).Nkind = N_Discriminant_Specification
5298 or else NT (N).Nkind = N_Formal_Object_Declaration
5299 or else NT (N).Nkind = N_Function_Specification
5300 or else NT (N).Nkind = N_Object_Declaration
5301 or else NT (N).Nkind = N_Object_Renaming_Declaration
5302 or else NT (N).Nkind = N_Parameter_Specification
5303 or else NT (N).Nkind = N_Subtype_Declaration);
5304 Set_Flag11 (N, Val);
5305 end Set_Null_Exclusion_Present;
5306
5307 procedure Set_Null_Exclusion_In_Return_Present
5308 (N : Node_Id; Val : Boolean := True) is
5309 begin
5310 pragma Assert (False
5311 or else NT (N).Nkind = N_Access_Function_Definition);
5312 Set_Flag14 (N, Val);
5313 end Set_Null_Exclusion_In_Return_Present;
5314
5315 procedure Set_Null_Record_Present
5316 (N : Node_Id; Val : Boolean := True) is
5317 begin
5318 pragma Assert (False
5319 or else NT (N).Nkind = N_Aggregate
5320 or else NT (N).Nkind = N_Extension_Aggregate);
5321 Set_Flag17 (N, Val);
5322 end Set_Null_Record_Present;
5323
5324 procedure Set_Object_Definition
5325 (N : Node_Id; Val : Node_Id) is
5326 begin
5327 pragma Assert (False
5328 or else NT (N).Nkind = N_Object_Declaration);
5329 Set_Node4_With_Parent (N, Val);
5330 end Set_Object_Definition;
5331
5332 procedure Set_Of_Present
5333 (N : Node_Id; Val : Boolean := True) is
5334 begin
5335 pragma Assert (False
5336 or else NT (N).Nkind = N_Iterator_Specification);
5337 Set_Flag16 (N, Val);
5338 end Set_Of_Present;
5339
5340 procedure Set_Original_Discriminant
5341 (N : Node_Id; Val : Node_Id) is
5342 begin
5343 pragma Assert (False
5344 or else NT (N).Nkind = N_Identifier);
5345 Set_Node2 (N, Val); -- semantic field, no parent set
5346 end Set_Original_Discriminant;
5347
5348 procedure Set_Original_Entity
5349 (N : Node_Id; Val : Entity_Id) is
5350 begin
5351 pragma Assert (False
5352 or else NT (N).Nkind = N_Integer_Literal
5353 or else NT (N).Nkind = N_Real_Literal);
5354 Set_Node2 (N, Val); -- semantic field, no parent set
5355 end Set_Original_Entity;
5356
5357 procedure Set_Others_Discrete_Choices
5358 (N : Node_Id; Val : List_Id) is
5359 begin
5360 pragma Assert (False
5361 or else NT (N).Nkind = N_Others_Choice);
5362 Set_List1_With_Parent (N, Val);
5363 end Set_Others_Discrete_Choices;
5364
5365 procedure Set_Out_Present
5366 (N : Node_Id; Val : Boolean := True) is
5367 begin
5368 pragma Assert (False
5369 or else NT (N).Nkind = N_Formal_Object_Declaration
5370 or else NT (N).Nkind = N_Parameter_Specification);
5371 Set_Flag17 (N, Val);
5372 end Set_Out_Present;
5373
5374 procedure Set_Parameter_Associations
5375 (N : Node_Id; Val : List_Id) is
5376 begin
5377 pragma Assert (False
5378 or else NT (N).Nkind = N_Entry_Call_Statement
5379 or else NT (N).Nkind = N_Function_Call
5380 or else NT (N).Nkind = N_Procedure_Call_Statement);
5381 Set_List3_With_Parent (N, Val);
5382 end Set_Parameter_Associations;
5383
5384 procedure Set_Parameter_List_Truncated
5385 (N : Node_Id; Val : Boolean := True) is
5386 begin
5387 pragma Assert (False
5388 or else NT (N).Nkind = N_Function_Call
5389 or else NT (N).Nkind = N_Procedure_Call_Statement);
5390 Set_Flag17 (N, Val);
5391 end Set_Parameter_List_Truncated;
5392
5393 procedure Set_Parameter_Specifications
5394 (N : Node_Id; Val : List_Id) is
5395 begin
5396 pragma Assert (False
5397 or else NT (N).Nkind = N_Accept_Statement
5398 or else NT (N).Nkind = N_Access_Function_Definition
5399 or else NT (N).Nkind = N_Access_Procedure_Definition
5400 or else NT (N).Nkind = N_Entry_Body_Formal_Part
5401 or else NT (N).Nkind = N_Entry_Declaration
5402 or else NT (N).Nkind = N_Function_Specification
5403 or else NT (N).Nkind = N_Procedure_Specification);
5404 Set_List3_With_Parent (N, Val);
5405 end Set_Parameter_Specifications;
5406
5407 procedure Set_Parameter_Type
5408 (N : Node_Id; Val : Node_Id) is
5409 begin
5410 pragma Assert (False
5411 or else NT (N).Nkind = N_Parameter_Specification);
5412 Set_Node2_With_Parent (N, Val);
5413 end Set_Parameter_Type;
5414
5415 procedure Set_Parent_Spec
5416 (N : Node_Id; Val : Node_Id) is
5417 begin
5418 pragma Assert (False
5419 or else NT (N).Nkind = N_Function_Instantiation
5420 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5421 or else NT (N).Nkind = N_Generic_Package_Declaration
5422 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5423 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5424 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5425 or else NT (N).Nkind = N_Package_Declaration
5426 or else NT (N).Nkind = N_Package_Instantiation
5427 or else NT (N).Nkind = N_Package_Renaming_Declaration
5428 or else NT (N).Nkind = N_Procedure_Instantiation
5429 or else NT (N).Nkind = N_Subprogram_Declaration
5430 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5431 Set_Node4 (N, Val); -- semantic field, no parent set
5432 end Set_Parent_Spec;
5433
5434 procedure Set_Position
5435 (N : Node_Id; Val : Node_Id) is
5436 begin
5437 pragma Assert (False
5438 or else NT (N).Nkind = N_Component_Clause);
5439 Set_Node2_With_Parent (N, Val);
5440 end Set_Position;
5441
5442 procedure Set_Pragma_Argument_Associations
5443 (N : Node_Id; Val : List_Id) is
5444 begin
5445 pragma Assert (False
5446 or else NT (N).Nkind = N_Pragma);
5447 Set_List2_With_Parent (N, Val);
5448 end Set_Pragma_Argument_Associations;
5449
5450 procedure Set_Pragma_Identifier
5451 (N : Node_Id; Val : Node_Id) is
5452 begin
5453 pragma Assert (False
5454 or else NT (N).Nkind = N_Pragma);
5455 Set_Node4_With_Parent (N, Val);
5456 end Set_Pragma_Identifier;
5457
5458 procedure Set_Pragmas_After
5459 (N : Node_Id; Val : List_Id) is
5460 begin
5461 pragma Assert (False
5462 or else NT (N).Nkind = N_Compilation_Unit_Aux
5463 or else NT (N).Nkind = N_Terminate_Alternative);
5464 Set_List5_With_Parent (N, Val);
5465 end Set_Pragmas_After;
5466
5467 procedure Set_Pragmas_Before
5468 (N : Node_Id; Val : List_Id) is
5469 begin
5470 pragma Assert (False
5471 or else NT (N).Nkind = N_Accept_Alternative
5472 or else NT (N).Nkind = N_Delay_Alternative
5473 or else NT (N).Nkind = N_Entry_Call_Alternative
5474 or else NT (N).Nkind = N_Mod_Clause
5475 or else NT (N).Nkind = N_Terminate_Alternative
5476 or else NT (N).Nkind = N_Triggering_Alternative);
5477 Set_List4_With_Parent (N, Val);
5478 end Set_Pragmas_Before;
5479
5480 procedure Set_Prefix
5481 (N : Node_Id; Val : Node_Id) is
5482 begin
5483 pragma Assert (False
5484 or else NT (N).Nkind = N_Attribute_Reference
5485 or else NT (N).Nkind = N_Expanded_Name
5486 or else NT (N).Nkind = N_Explicit_Dereference
5487 or else NT (N).Nkind = N_Indexed_Component
5488 or else NT (N).Nkind = N_Reference
5489 or else NT (N).Nkind = N_Selected_Component
5490 or else NT (N).Nkind = N_Slice);
5491 Set_Node3_With_Parent (N, Val);
5492 end Set_Prefix;
5493
5494 procedure Set_Present_Expr
5495 (N : Node_Id; Val : Uint) is
5496 begin
5497 pragma Assert (False
5498 or else NT (N).Nkind = N_Variant);
5499 Set_Uint3 (N, Val);
5500 end Set_Present_Expr;
5501
5502 procedure Set_Prev_Ids
5503 (N : Node_Id; Val : Boolean := True) is
5504 begin
5505 pragma Assert (False
5506 or else NT (N).Nkind = N_Component_Declaration
5507 or else NT (N).Nkind = N_Discriminant_Specification
5508 or else NT (N).Nkind = N_Exception_Declaration
5509 or else NT (N).Nkind = N_Formal_Object_Declaration
5510 or else NT (N).Nkind = N_Number_Declaration
5511 or else NT (N).Nkind = N_Object_Declaration
5512 or else NT (N).Nkind = N_Parameter_Specification);
5513 Set_Flag6 (N, Val);
5514 end Set_Prev_Ids;
5515
5516 procedure Set_Print_In_Hex
5517 (N : Node_Id; Val : Boolean := True) is
5518 begin
5519 pragma Assert (False
5520 or else NT (N).Nkind = N_Integer_Literal);
5521 Set_Flag13 (N, Val);
5522 end Set_Print_In_Hex;
5523
5524 procedure Set_Private_Declarations
5525 (N : Node_Id; Val : List_Id) is
5526 begin
5527 pragma Assert (False
5528 or else NT (N).Nkind = N_Package_Specification
5529 or else NT (N).Nkind = N_Protected_Definition
5530 or else NT (N).Nkind = N_Task_Definition);
5531 Set_List3_With_Parent (N, Val);
5532 end Set_Private_Declarations;
5533
5534 procedure Set_Private_Present
5535 (N : Node_Id; Val : Boolean := True) is
5536 begin
5537 pragma Assert (False
5538 or else NT (N).Nkind = N_Compilation_Unit
5539 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5540 or else NT (N).Nkind = N_With_Clause);
5541 Set_Flag15 (N, Val);
5542 end Set_Private_Present;
5543
5544 procedure Set_Procedure_To_Call
5545 (N : Node_Id; Val : Node_Id) is
5546 begin
5547 pragma Assert (False
5548 or else NT (N).Nkind = N_Allocator
5549 or else NT (N).Nkind = N_Extended_Return_Statement
5550 or else NT (N).Nkind = N_Free_Statement
5551 or else NT (N).Nkind = N_Return_Statement);
5552 Set_Node2 (N, Val); -- semantic field, no parent set
5553 end Set_Procedure_To_Call;
5554
5555 procedure Set_Proper_Body
5556 (N : Node_Id; Val : Node_Id) is
5557 begin
5558 pragma Assert (False
5559 or else NT (N).Nkind = N_Subunit);
5560 Set_Node1_With_Parent (N, Val);
5561 end Set_Proper_Body;
5562
5563 procedure Set_Protected_Definition
5564 (N : Node_Id; Val : Node_Id) is
5565 begin
5566 pragma Assert (False
5567 or else NT (N).Nkind = N_Protected_Type_Declaration
5568 or else NT (N).Nkind = N_Single_Protected_Declaration);
5569 Set_Node3_With_Parent (N, Val);
5570 end Set_Protected_Definition;
5571
5572 procedure Set_Protected_Present
5573 (N : Node_Id; Val : Boolean := True) is
5574 begin
5575 pragma Assert (False
5576 or else NT (N).Nkind = N_Access_Function_Definition
5577 or else NT (N).Nkind = N_Access_Procedure_Definition
5578 or else NT (N).Nkind = N_Derived_Type_Definition
5579 or else NT (N).Nkind = N_Record_Definition);
5580 Set_Flag6 (N, Val);
5581 end Set_Protected_Present;
5582
5583 procedure Set_Raises_Constraint_Error
5584 (N : Node_Id; Val : Boolean := True) is
5585 begin
5586 pragma Assert (False
5587 or else NT (N).Nkind in N_Subexpr);
5588 Set_Flag7 (N, Val);
5589 end Set_Raises_Constraint_Error;
5590
5591 procedure Set_Range_Constraint
5592 (N : Node_Id; Val : Node_Id) is
5593 begin
5594 pragma Assert (False
5595 or else NT (N).Nkind = N_Delta_Constraint
5596 or else NT (N).Nkind = N_Digits_Constraint);
5597 Set_Node4_With_Parent (N, Val);
5598 end Set_Range_Constraint;
5599
5600 procedure Set_Range_Expression
5601 (N : Node_Id; Val : Node_Id) is
5602 begin
5603 pragma Assert (False
5604 or else NT (N).Nkind = N_Range_Constraint);
5605 Set_Node4_With_Parent (N, Val);
5606 end Set_Range_Expression;
5607
5608 procedure Set_Real_Range_Specification
5609 (N : Node_Id; Val : Node_Id) is
5610 begin
5611 pragma Assert (False
5612 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
5613 or else NT (N).Nkind = N_Floating_Point_Definition
5614 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
5615 Set_Node4_With_Parent (N, Val);
5616 end Set_Real_Range_Specification;
5617
5618 procedure Set_Realval
5619 (N : Node_Id; Val : Ureal) is
5620 begin
5621 pragma Assert (False
5622 or else NT (N).Nkind = N_Real_Literal);
5623 Set_Ureal3 (N, Val);
5624 end Set_Realval;
5625
5626 procedure Set_Reason
5627 (N : Node_Id; Val : Uint) is
5628 begin
5629 pragma Assert (False
5630 or else NT (N).Nkind = N_Raise_Constraint_Error
5631 or else NT (N).Nkind = N_Raise_Program_Error
5632 or else NT (N).Nkind = N_Raise_Storage_Error);
5633 Set_Uint3 (N, Val);
5634 end Set_Reason;
5635
5636 procedure Set_Record_Extension_Part
5637 (N : Node_Id; Val : Node_Id) is
5638 begin
5639 pragma Assert (False
5640 or else NT (N).Nkind = N_Derived_Type_Definition);
5641 Set_Node3_With_Parent (N, Val);
5642 end Set_Record_Extension_Part;
5643
5644 procedure Set_Redundant_Use
5645 (N : Node_Id; Val : Boolean := True) is
5646 begin
5647 pragma Assert (False
5648 or else NT (N).Nkind = N_Attribute_Reference
5649 or else NT (N).Nkind = N_Expanded_Name
5650 or else NT (N).Nkind = N_Identifier);
5651 Set_Flag13 (N, Val);
5652 end Set_Redundant_Use;
5653
5654 procedure Set_Renaming_Exception
5655 (N : Node_Id; Val : Node_Id) is
5656 begin
5657 pragma Assert (False
5658 or else NT (N).Nkind = N_Exception_Declaration);
5659 Set_Node2 (N, Val);
5660 end Set_Renaming_Exception;
5661
5662 procedure Set_Result_Definition
5663 (N : Node_Id; Val : Node_Id) is
5664 begin
5665 pragma Assert (False
5666 or else NT (N).Nkind = N_Access_Function_Definition
5667 or else NT (N).Nkind = N_Function_Specification);
5668 Set_Node4_With_Parent (N, Val);
5669 end Set_Result_Definition;
5670
5671 procedure Set_Return_Object_Declarations
5672 (N : Node_Id; Val : List_Id) is
5673 begin
5674 pragma Assert (False
5675 or else NT (N).Nkind = N_Extended_Return_Statement);
5676 Set_List3_With_Parent (N, Val);
5677 end Set_Return_Object_Declarations;
5678
5679 procedure Set_Return_Statement_Entity
5680 (N : Node_Id; Val : Node_Id) is
5681 begin
5682 pragma Assert (False
5683 or else NT (N).Nkind = N_Extended_Return_Statement
5684 or else NT (N).Nkind = N_Return_Statement);
5685 Set_Node5 (N, Val); -- semantic field, no parent set
5686 end Set_Return_Statement_Entity;
5687
5688 procedure Set_Reverse_Present
5689 (N : Node_Id; Val : Boolean := True) is
5690 begin
5691 pragma Assert (False
5692 or else NT (N).Nkind = N_Iterator_Specification
5693 or else NT (N).Nkind = N_Loop_Parameter_Specification);
5694 Set_Flag15 (N, Val);
5695 end Set_Reverse_Present;
5696
5697 procedure Set_Right_Opnd
5698 (N : Node_Id; Val : Node_Id) is
5699 begin
5700 pragma Assert (False
5701 or else NT (N).Nkind in N_Op
5702 or else NT (N).Nkind = N_And_Then
5703 or else NT (N).Nkind = N_In
5704 or else NT (N).Nkind = N_Not_In
5705 or else NT (N).Nkind = N_Or_Else);
5706 Set_Node3_With_Parent (N, Val);
5707 end Set_Right_Opnd;
5708
5709 procedure Set_Rounded_Result
5710 (N : Node_Id; Val : Boolean := True) is
5711 begin
5712 pragma Assert (False
5713 or else NT (N).Nkind = N_Op_Divide
5714 or else NT (N).Nkind = N_Op_Multiply
5715 or else NT (N).Nkind = N_Type_Conversion);
5716 Set_Flag18 (N, Val);
5717 end Set_Rounded_Result;
5718
5719 procedure Set_SCIL_Controlling_Tag
5720 (N : Node_Id; Val : Node_Id) is
5721 begin
5722 pragma Assert (False
5723 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
5724 Set_Node5 (N, Val); -- semantic field, no parent set
5725 end Set_SCIL_Controlling_Tag;
5726
5727 procedure Set_SCIL_Entity
5728 (N : Node_Id; Val : Node_Id) is
5729 begin
5730 pragma Assert (False
5731 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
5732 or else NT (N).Nkind = N_SCIL_Dispatching_Call
5733 or else NT (N).Nkind = N_SCIL_Membership_Test);
5734 Set_Node4 (N, Val); -- semantic field, no parent set
5735 end Set_SCIL_Entity;
5736
5737 procedure Set_SCIL_Tag_Value
5738 (N : Node_Id; Val : Node_Id) is
5739 begin
5740 pragma Assert (False
5741 or else NT (N).Nkind = N_SCIL_Membership_Test);
5742 Set_Node5 (N, Val); -- semantic field, no parent set
5743 end Set_SCIL_Tag_Value;
5744
5745 procedure Set_SCIL_Target_Prim
5746 (N : Node_Id; Val : Node_Id) is
5747 begin
5748 pragma Assert (False
5749 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
5750 Set_Node2 (N, Val); -- semantic field, no parent set
5751 end Set_SCIL_Target_Prim;
5752
5753 procedure Set_Scope
5754 (N : Node_Id; Val : Node_Id) is
5755 begin
5756 pragma Assert (False
5757 or else NT (N).Nkind = N_Defining_Character_Literal
5758 or else NT (N).Nkind = N_Defining_Identifier
5759 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5760 Set_Node3 (N, Val); -- semantic field, no parent set
5761 end Set_Scope;
5762
5763 procedure Set_Select_Alternatives
5764 (N : Node_Id; Val : List_Id) is
5765 begin
5766 pragma Assert (False
5767 or else NT (N).Nkind = N_Selective_Accept);
5768 Set_List1_With_Parent (N, Val);
5769 end Set_Select_Alternatives;
5770
5771 procedure Set_Selector_Name
5772 (N : Node_Id; Val : Node_Id) is
5773 begin
5774 pragma Assert (False
5775 or else NT (N).Nkind = N_Expanded_Name
5776 or else NT (N).Nkind = N_Generic_Association
5777 or else NT (N).Nkind = N_Parameter_Association
5778 or else NT (N).Nkind = N_Selected_Component);
5779 Set_Node2_With_Parent (N, Val);
5780 end Set_Selector_Name;
5781
5782 procedure Set_Selector_Names
5783 (N : Node_Id; Val : List_Id) is
5784 begin
5785 pragma Assert (False
5786 or else NT (N).Nkind = N_Discriminant_Association);
5787 Set_List1_With_Parent (N, Val);
5788 end Set_Selector_Names;
5789
5790 procedure Set_Shift_Count_OK
5791 (N : Node_Id; Val : Boolean := True) is
5792 begin
5793 pragma Assert (False
5794 or else NT (N).Nkind = N_Op_Rotate_Left
5795 or else NT (N).Nkind = N_Op_Rotate_Right
5796 or else NT (N).Nkind = N_Op_Shift_Left
5797 or else NT (N).Nkind = N_Op_Shift_Right
5798 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
5799 Set_Flag4 (N, Val);
5800 end Set_Shift_Count_OK;
5801
5802 procedure Set_Source_Type
5803 (N : Node_Id; Val : Entity_Id) is
5804 begin
5805 pragma Assert (False
5806 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5807 Set_Node1 (N, Val); -- semantic field, no parent set
5808 end Set_Source_Type;
5809
5810 procedure Set_Spec_PPC_List
5811 (N : Node_Id; Val : Node_Id) is
5812 begin
5813 pragma Assert (False
5814 or else NT (N).Nkind = N_Contract);
5815 Set_Node1 (N, Val); -- semantic field, no parent set
5816 end Set_Spec_PPC_List;
5817
5818 procedure Set_Spec_TC_List
5819 (N : Node_Id; Val : Node_Id) is
5820 begin
5821 pragma Assert (False
5822 or else NT (N).Nkind = N_Contract);
5823 Set_Node2 (N, Val); -- semantic field, no parent set
5824 end Set_Spec_TC_List;
5825
5826 procedure Set_Specification
5827 (N : Node_Id; Val : Node_Id) is
5828 begin
5829 pragma Assert (False
5830 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
5831 or else NT (N).Nkind = N_Expression_Function
5832 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
5833 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
5834 or else NT (N).Nkind = N_Generic_Package_Declaration
5835 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5836 or else NT (N).Nkind = N_Package_Declaration
5837 or else NT (N).Nkind = N_Subprogram_Body
5838 or else NT (N).Nkind = N_Subprogram_Body_Stub
5839 or else NT (N).Nkind = N_Subprogram_Declaration
5840 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5841 Set_Node1_With_Parent (N, Val);
5842 end Set_Specification;
5843
5844 procedure Set_Split_PPC
5845 (N : Node_Id; Val : Boolean) is
5846 begin
5847 pragma Assert (False
5848 or else NT (N).Nkind = N_Aspect_Specification
5849 or else NT (N).Nkind = N_Pragma);
5850 Set_Flag17 (N, Val);
5851 end Set_Split_PPC;
5852
5853 procedure Set_Statements
5854 (N : Node_Id; Val : List_Id) is
5855 begin
5856 pragma Assert (False
5857 or else NT (N).Nkind = N_Abortable_Part
5858 or else NT (N).Nkind = N_Accept_Alternative
5859 or else NT (N).Nkind = N_Case_Statement_Alternative
5860 or else NT (N).Nkind = N_Delay_Alternative
5861 or else NT (N).Nkind = N_Entry_Call_Alternative
5862 or else NT (N).Nkind = N_Exception_Handler
5863 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
5864 or else NT (N).Nkind = N_Loop_Statement
5865 or else NT (N).Nkind = N_Triggering_Alternative);
5866 Set_List3_With_Parent (N, Val);
5867 end Set_Statements;
5868
5869 procedure Set_Static_Processing_OK
5870 (N : Node_Id; Val : Boolean) is
5871 begin
5872 pragma Assert (False
5873 or else NT (N).Nkind = N_Aggregate);
5874 Set_Flag4 (N, Val);
5875 end Set_Static_Processing_OK;
5876
5877 procedure Set_Storage_Pool
5878 (N : Node_Id; Val : Node_Id) is
5879 begin
5880 pragma Assert (False
5881 or else NT (N).Nkind = N_Allocator
5882 or else NT (N).Nkind = N_Extended_Return_Statement
5883 or else NT (N).Nkind = N_Free_Statement
5884 or else NT (N).Nkind = N_Return_Statement);
5885 Set_Node1 (N, Val); -- semantic field, no parent set
5886 end Set_Storage_Pool;
5887
5888 procedure Set_Subpool_Handle_Name
5889 (N : Node_Id; Val : Node_Id) is
5890 begin
5891 pragma Assert (False
5892 or else NT (N).Nkind = N_Allocator);
5893 Set_Node4_With_Parent (N, Val);
5894 end Set_Subpool_Handle_Name;
5895
5896 procedure Set_Strval
5897 (N : Node_Id; Val : String_Id) is
5898 begin
5899 pragma Assert (False
5900 or else NT (N).Nkind = N_Operator_Symbol
5901 or else NT (N).Nkind = N_String_Literal);
5902 Set_Str3 (N, Val);
5903 end Set_Strval;
5904
5905 procedure Set_Subtype_Indication
5906 (N : Node_Id; Val : Node_Id) is
5907 begin
5908 pragma Assert (False
5909 or else NT (N).Nkind = N_Access_To_Object_Definition
5910 or else NT (N).Nkind = N_Component_Definition
5911 or else NT (N).Nkind = N_Derived_Type_Definition
5912 or else NT (N).Nkind = N_Iterator_Specification
5913 or else NT (N).Nkind = N_Private_Extension_Declaration
5914 or else NT (N).Nkind = N_Subtype_Declaration);
5915 Set_Node5_With_Parent (N, Val);
5916 end Set_Subtype_Indication;
5917
5918 procedure Set_Subtype_Mark
5919 (N : Node_Id; Val : Node_Id) is
5920 begin
5921 pragma Assert (False
5922 or else NT (N).Nkind = N_Access_Definition
5923 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5924 or else NT (N).Nkind = N_Formal_Object_Declaration
5925 or else NT (N).Nkind = N_Object_Renaming_Declaration
5926 or else NT (N).Nkind = N_Qualified_Expression
5927 or else NT (N).Nkind = N_Subtype_Indication
5928 or else NT (N).Nkind = N_Type_Conversion
5929 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5930 Set_Node4_With_Parent (N, Val);
5931 end Set_Subtype_Mark;
5932
5933 procedure Set_Subtype_Marks
5934 (N : Node_Id; Val : List_Id) is
5935 begin
5936 pragma Assert (False
5937 or else NT (N).Nkind = N_Unconstrained_Array_Definition
5938 or else NT (N).Nkind = N_Use_Type_Clause);
5939 Set_List2_With_Parent (N, Val);
5940 end Set_Subtype_Marks;
5941
5942 procedure Set_Suppress_Assignment_Checks
5943 (N : Node_Id; Val : Boolean := True) is
5944 begin
5945 pragma Assert (False
5946 or else NT (N).Nkind = N_Assignment_Statement
5947 or else NT (N).Nkind = N_Object_Declaration);
5948 Set_Flag18 (N, Val);
5949 end Set_Suppress_Assignment_Checks;
5950
5951 procedure Set_Suppress_Loop_Warnings
5952 (N : Node_Id; Val : Boolean := True) is
5953 begin
5954 pragma Assert (False
5955 or else NT (N).Nkind = N_Loop_Statement);
5956 Set_Flag17 (N, Val);
5957 end Set_Suppress_Loop_Warnings;
5958
5959 procedure Set_Synchronized_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_Formal_Derived_Type_Definition
5965 or else NT (N).Nkind = N_Private_Extension_Declaration
5966 or else NT (N).Nkind = N_Record_Definition);
5967 Set_Flag7 (N, Val);
5968 end Set_Synchronized_Present;
5969
5970 procedure Set_Tagged_Present
5971 (N : Node_Id; Val : Boolean := True) is
5972 begin
5973 pragma Assert (False
5974 or else NT (N).Nkind = N_Formal_Private_Type_Definition
5975 or else NT (N).Nkind = N_Incomplete_Type_Declaration
5976 or else NT (N).Nkind = N_Private_Type_Declaration
5977 or else NT (N).Nkind = N_Record_Definition);
5978 Set_Flag15 (N, Val);
5979 end Set_Tagged_Present;
5980
5981 procedure Set_Target_Type
5982 (N : Node_Id; Val : Entity_Id) is
5983 begin
5984 pragma Assert (False
5985 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5986 Set_Node2 (N, Val); -- semantic field, no parent set
5987 end Set_Target_Type;
5988
5989 procedure Set_Task_Definition
5990 (N : Node_Id; Val : Node_Id) is
5991 begin
5992 pragma Assert (False
5993 or else NT (N).Nkind = N_Single_Task_Declaration
5994 or else NT (N).Nkind = N_Task_Type_Declaration);
5995 Set_Node3_With_Parent (N, Val);
5996 end Set_Task_Definition;
5997
5998 procedure Set_Task_Present
5999 (N : Node_Id; Val : Boolean := True) is
6000 begin
6001 pragma Assert (False
6002 or else NT (N).Nkind = N_Derived_Type_Definition
6003 or else NT (N).Nkind = N_Record_Definition);
6004 Set_Flag5 (N, Val);
6005 end Set_Task_Present;
6006
6007 procedure Set_Then_Actions
6008 (N : Node_Id; Val : List_Id) is
6009 begin
6010 pragma Assert (False
6011 or else NT (N).Nkind = N_Conditional_Expression);
6012 Set_List2 (N, Val); -- semantic field, no parent set
6013 end Set_Then_Actions;
6014
6015 procedure Set_Then_Statements
6016 (N : Node_Id; Val : List_Id) is
6017 begin
6018 pragma Assert (False
6019 or else NT (N).Nkind = N_Elsif_Part
6020 or else NT (N).Nkind = N_If_Statement);
6021 Set_List2_With_Parent (N, Val);
6022 end Set_Then_Statements;
6023
6024 procedure Set_Treat_Fixed_As_Integer
6025 (N : Node_Id; Val : Boolean := True) is
6026 begin
6027 pragma Assert (False
6028 or else NT (N).Nkind = N_Op_Divide
6029 or else NT (N).Nkind = N_Op_Mod
6030 or else NT (N).Nkind = N_Op_Multiply
6031 or else NT (N).Nkind = N_Op_Rem);
6032 Set_Flag14 (N, Val);
6033 end Set_Treat_Fixed_As_Integer;
6034
6035 procedure Set_Triggering_Alternative
6036 (N : Node_Id; Val : Node_Id) is
6037 begin
6038 pragma Assert (False
6039 or else NT (N).Nkind = N_Asynchronous_Select);
6040 Set_Node1_With_Parent (N, Val);
6041 end Set_Triggering_Alternative;
6042
6043 procedure Set_Triggering_Statement
6044 (N : Node_Id; Val : Node_Id) is
6045 begin
6046 pragma Assert (False
6047 or else NT (N).Nkind = N_Triggering_Alternative);
6048 Set_Node1_With_Parent (N, Val);
6049 end Set_Triggering_Statement;
6050
6051 procedure Set_TSS_Elist
6052 (N : Node_Id; Val : Elist_Id) is
6053 begin
6054 pragma Assert (False
6055 or else NT (N).Nkind = N_Freeze_Entity);
6056 Set_Elist3 (N, Val); -- semantic field, no parent set
6057 end Set_TSS_Elist;
6058
6059 procedure Set_Type_Definition
6060 (N : Node_Id; Val : Node_Id) is
6061 begin
6062 pragma Assert (False
6063 or else NT (N).Nkind = N_Full_Type_Declaration);
6064 Set_Node3_With_Parent (N, Val);
6065 end Set_Type_Definition;
6066
6067 procedure Set_Unit
6068 (N : Node_Id; Val : Node_Id) is
6069 begin
6070 pragma Assert (False
6071 or else NT (N).Nkind = N_Compilation_Unit);
6072 Set_Node2_With_Parent (N, Val);
6073 end Set_Unit;
6074
6075 procedure Set_Unknown_Discriminants_Present
6076 (N : Node_Id; Val : Boolean := True) is
6077 begin
6078 pragma Assert (False
6079 or else NT (N).Nkind = N_Formal_Type_Declaration
6080 or else NT (N).Nkind = N_Incomplete_Type_Declaration
6081 or else NT (N).Nkind = N_Private_Extension_Declaration
6082 or else NT (N).Nkind = N_Private_Type_Declaration);
6083 Set_Flag13 (N, Val);
6084 end Set_Unknown_Discriminants_Present;
6085
6086 procedure Set_Unreferenced_In_Spec
6087 (N : Node_Id; Val : Boolean := True) is
6088 begin
6089 pragma Assert (False
6090 or else NT (N).Nkind = N_With_Clause);
6091 Set_Flag7 (N, Val);
6092 end Set_Unreferenced_In_Spec;
6093
6094 procedure Set_Variant_Part
6095 (N : Node_Id; Val : Node_Id) is
6096 begin
6097 pragma Assert (False
6098 or else NT (N).Nkind = N_Component_List);
6099 Set_Node4_With_Parent (N, Val);
6100 end Set_Variant_Part;
6101
6102 procedure Set_Variants
6103 (N : Node_Id; Val : List_Id) is
6104 begin
6105 pragma Assert (False
6106 or else NT (N).Nkind = N_Variant_Part);
6107 Set_List1_With_Parent (N, Val);
6108 end Set_Variants;
6109
6110 procedure Set_Visible_Declarations
6111 (N : Node_Id; Val : List_Id) is
6112 begin
6113 pragma Assert (False
6114 or else NT (N).Nkind = N_Package_Specification
6115 or else NT (N).Nkind = N_Protected_Definition
6116 or else NT (N).Nkind = N_Task_Definition);
6117 Set_List2_With_Parent (N, Val);
6118 end Set_Visible_Declarations;
6119
6120 procedure Set_Used_Operations
6121 (N : Node_Id; Val : Elist_Id) is
6122 begin
6123 pragma Assert (False
6124 or else NT (N).Nkind = N_Use_Type_Clause);
6125 Set_Elist5 (N, Val);
6126 end Set_Used_Operations;
6127
6128 procedure Set_Was_Originally_Stub
6129 (N : Node_Id; Val : Boolean := True) is
6130 begin
6131 pragma Assert (False
6132 or else NT (N).Nkind = N_Package_Body
6133 or else NT (N).Nkind = N_Protected_Body
6134 or else NT (N).Nkind = N_Subprogram_Body
6135 or else NT (N).Nkind = N_Task_Body);
6136 Set_Flag13 (N, Val);
6137 end Set_Was_Originally_Stub;
6138
6139 procedure Set_Withed_Body
6140 (N : Node_Id; Val : Node_Id) is
6141 begin
6142 pragma Assert (False
6143 or else NT (N).Nkind = N_With_Clause);
6144 Set_Node1 (N, Val);
6145 end Set_Withed_Body;
6146
6147 -------------------------
6148 -- Iterator Procedures --
6149 -------------------------
6150
6151 procedure Next_Entity (N : in out Node_Id) is
6152 begin
6153 N := Next_Entity (N);
6154 end Next_Entity;
6155
6156 procedure Next_Named_Actual (N : in out Node_Id) is
6157 begin
6158 N := Next_Named_Actual (N);
6159 end Next_Named_Actual;
6160
6161 procedure Next_Rep_Item (N : in out Node_Id) is
6162 begin
6163 N := Next_Rep_Item (N);
6164 end Next_Rep_Item;
6165
6166 procedure Next_Use_Clause (N : in out Node_Id) is
6167 begin
6168 N := Next_Use_Clause (N);
6169 end Next_Use_Clause;
6170
6171 ------------------
6172 -- End_Location --
6173 ------------------
6174
6175 function End_Location (N : Node_Id) return Source_Ptr is
6176 L : constant Uint := End_Span (N);
6177 begin
6178 if L = No_Uint then
6179 return No_Location;
6180 else
6181 return Source_Ptr (Int (Sloc (N)) + UI_To_Int (L));
6182 end if;
6183 end End_Location;
6184
6185 --------------------
6186 -- Get_Pragma_Arg --
6187 --------------------
6188
6189 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id is
6190 begin
6191 if Nkind (Arg) = N_Pragma_Argument_Association then
6192 return Expression (Arg);
6193 else
6194 return Arg;
6195 end if;
6196 end Get_Pragma_Arg;
6197
6198 ----------------------
6199 -- Set_End_Location --
6200 ----------------------
6201
6202 procedure Set_End_Location (N : Node_Id; S : Source_Ptr) is
6203 begin
6204 Set_End_Span (N,
6205 UI_From_Int (Int (S) - Int (Sloc (N))));
6206 end Set_End_Location;
6207
6208 --------------
6209 -- Nkind_In --
6210 --------------
6211
6212 function Nkind_In
6213 (T : Node_Kind;
6214 V1 : Node_Kind;
6215 V2 : Node_Kind) return Boolean
6216 is
6217 begin
6218 return T = V1 or else
6219 T = V2;
6220 end Nkind_In;
6221
6222 function Nkind_In
6223 (T : Node_Kind;
6224 V1 : Node_Kind;
6225 V2 : Node_Kind;
6226 V3 : Node_Kind) return Boolean
6227 is
6228 begin
6229 return T = V1 or else
6230 T = V2 or else
6231 T = V3;
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) return Boolean
6240 is
6241 begin
6242 return T = V1 or else
6243 T = V2 or else
6244 T = V3 or else
6245 T = V4;
6246 end Nkind_In;
6247
6248 function Nkind_In
6249 (T : Node_Kind;
6250 V1 : Node_Kind;
6251 V2 : Node_Kind;
6252 V3 : Node_Kind;
6253 V4 : Node_Kind;
6254 V5 : Node_Kind) return Boolean
6255 is
6256 begin
6257 return T = V1 or else
6258 T = V2 or else
6259 T = V3 or else
6260 T = V4 or else
6261 T = V5;
6262 end Nkind_In;
6263
6264 function Nkind_In
6265 (T : Node_Kind;
6266 V1 : Node_Kind;
6267 V2 : Node_Kind;
6268 V3 : Node_Kind;
6269 V4 : Node_Kind;
6270 V5 : Node_Kind;
6271 V6 : Node_Kind) return Boolean
6272 is
6273 begin
6274 return T = V1 or else
6275 T = V2 or else
6276 T = V3 or else
6277 T = V4 or else
6278 T = V5 or else
6279 T = V6;
6280 end Nkind_In;
6281
6282 function Nkind_In
6283 (T : Node_Kind;
6284 V1 : Node_Kind;
6285 V2 : Node_Kind;
6286 V3 : Node_Kind;
6287 V4 : Node_Kind;
6288 V5 : Node_Kind;
6289 V6 : Node_Kind;
6290 V7 : Node_Kind) return Boolean
6291 is
6292 begin
6293 return T = V1 or else
6294 T = V2 or else
6295 T = V3 or else
6296 T = V4 or else
6297 T = V5 or else
6298 T = V6 or else
6299 T = V7;
6300 end Nkind_In;
6301
6302 function Nkind_In
6303 (T : Node_Kind;
6304 V1 : Node_Kind;
6305 V2 : Node_Kind;
6306 V3 : Node_Kind;
6307 V4 : Node_Kind;
6308 V5 : Node_Kind;
6309 V6 : Node_Kind;
6310 V7 : Node_Kind;
6311 V8 : Node_Kind) return Boolean
6312 is
6313 begin
6314 return T = V1 or else
6315 T = V2 or else
6316 T = V3 or else
6317 T = V4 or else
6318 T = V5 or else
6319 T = V6 or else
6320 T = V7 or else
6321 T = V8;
6322 end Nkind_In;
6323
6324 function Nkind_In
6325 (T : Node_Kind;
6326 V1 : Node_Kind;
6327 V2 : Node_Kind;
6328 V3 : Node_Kind;
6329 V4 : Node_Kind;
6330 V5 : Node_Kind;
6331 V6 : Node_Kind;
6332 V7 : Node_Kind;
6333 V8 : Node_Kind;
6334 V9 : Node_Kind) return Boolean
6335 is
6336 begin
6337 return T = V1 or else
6338 T = V2 or else
6339 T = V3 or else
6340 T = V4 or else
6341 T = V5 or else
6342 T = V6 or else
6343 T = V7 or else
6344 T = V8 or else
6345 T = V9;
6346 end Nkind_In;
6347
6348 -----------------
6349 -- Pragma_Name --
6350 -----------------
6351
6352 function Pragma_Name (N : Node_Id) return Name_Id is
6353 begin
6354 return Chars (Pragma_Identifier (N));
6355 end Pragma_Name;
6356
6357 end Sinfo;